:root{
    --frame_top_h: 48px;
    --frame_content_h: calc(100% - var(--frame_top_h));
    --frame_left_w: 317px;
    --frame_area_w: calc(100% - var(--frame_left_w));
    --frame_area_bgc: #1c1c1c;
    --color00: #beff1d;
    --btn_hover_shadow: 0 0 24px #beff1dff;

    --color01: #ffffff;
    --btn_hover_shadow01: 0 0 24px #ffffffff;

    --color02: #2174ff;
}
/* 위븐공통 예외처리 */
#toastWrap .toast{ background-color: var(--color02) !important; }


/* 구조 */
.frame_page{ display: flex; flex-direction: column; height: 100vh; color: #fff; }
.frame_top{ flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; height: var(--frame_top_h); padding: 0 12px 1px 22px; background-color: #000; box-sizing: border-box; }
.frame_top > *{ display: flex; flex-direction: row; align-items: center; }
.frame_content{ flex: 1 0 auto; display: flex; max-height: var(--frame_content_h); }
.frame_left{ display: flex; flex-direction: column; justify-content: space-between; width: var(--frame_left_w); padding: 14px 20px; background-color: #121212; box-sizing: border-box; }
.frame_menu{ display: flex; flex-direction: column; overflow: hidden; }
.frame_textarea{ }
.frame_area{ position: relative; flex: 1 1 0; background-color: var(--frame_area_bgc); overflow: hidden auto; }
.frame_area::-webkit-scrollbar{ width: 13px; background: transparent; }
.frame_area::-webkit-scrollbar-thumb{ background-color: #575859; border-left: 3px solid var(--frame_area_bgc); border-right: 6px solid var(--frame_area_bgc); }
.frame_area::-webkit-scrollbar-track{ background-color: transparent; }


/* frame_top */
.zai_logo{ width: 75px; object-fit: contain; margin-right: 12px; }
.zai_logo img{ width: 100%; }

.state_label{ width: fit-content; padding: 5px 12px 4px; border-radius: 4px; background-color: #202020; font-size: 12px; line-height: 17px; font-weight: 600; color: #9e9e9e; cursor: default; }

ul.url_btn_con{ display: flex; gap: 0 33px; }
ul.url_btn_con li{ position: relative; display: inline-block; font-size: 14px; line-height: 17px; font-weight: 700; color: var(--color00); cursor: pointer; background-size: 18px; background-position: right 0 center; background-repeat: no-repeat; }
ul.url_btn_con li#urlBtnManual{ color: #fff; padding-right: 22px; background-image: url("/weven_service/asset/img/svg/youtube_fff.svg"); }
ul.url_btn_con li#urlBtnPrev{ padding-right: 21px; background-image: url("/weven_service/asset/img/svg/open_in_new_16dp_BEFF1D_FILL0_wght500_GRAD0_opsz20.svg"); }
ul.url_btn_con li#urlBtnAdm{ padding-right: 19px; background-image: url("/weven_service/asset/img/svg/north_east_24dp_BEFF1D_FILL0_wght500_GRAD0_opsz24.svg"); }
ul.url_btn_con li:not(:first-child)::before{ content: ''; width: 1px; height: 14px; background-color: #666666; position: absolute; top: 1px; left: -18px; }

ul.top_tab{ width: var(--frame_area_w); height: var(--frame_top_h); display: flex; justify-content: center; position: fixed; top: 0; right: 0; transform: translateY(-100%); box-sizing: border-box; background-color: #000; }
/* ul.top_tab li{ width: 150px; height: 100%; display: inline-flex; justify-content: center; align-items: center; padding: 0 20px; font-family: "Fugaz One"; font-size: 14px; line-height: 23px; font-weight: 500; color: rgba(255, 255, 255, 1); box-sizing: border-box; cursor: default; }
ul.top_tab li.disabled{ color: rgba(255, 255, 255, 0.3); cursor: default; }
ul.top_tab li.active{ padding-top: 12px; color: var(--color00); background-image: url("../img/top_tab_active.png"); background-size: contain; background-position: bottom 0 center; background-repeat: no-repeat; }
ul.top_tab li:not(.disabled):hover{ color: var(--color00); } */
ul.top_tab li#tabBtnX{ display: inline-flex; justify-content: center; align-items: center; font-size: 13px; line-height: 17px; font-weight: 600; color: var(--color00); padding-right: 32px; cursor: pointer; background-image: url("/weven_service/asset/img/svg/cancel_24dp_BEFF1D_FILL1_wght400_GRAD0_opsz24.svg"); background-size: 27px; background-position: right 0 center; background-repeat: no-repeat; }

/*include 'member_info'*/
.login_logout{ --point_wv_01: var(--color00); margin-left: 20px !important; }
.login_logout .header_member_list_con{ color: #000; }
.login_logout .profile_name svg{ fill: #fff !important; }


/* frame_menu */
.menu_title{ margin-bottom: 9px; font-size: 13px; line-height: 23px; font-weight: 500; color: #777777; text-indent: 2px; cursor: default; }
.menu_con{ overflow-y: auto; }
.menu_con::-webkit-scrollbar{ width: 8px; background: transparent; }
.menu_con::-webkit-scrollbar-thumb{ background-color: #444; border-left: 4px solid #212121; }
.menu_con::-webkit-scrollbar-track{ background-color: transparent; }
.bm_tree_con{ --tab_space: 30px; --tree_space: 4px; --height: 41px; --full_width: 232px; --fin_width: calc(var(--full_width) - var(--tab_space)); }
[data-wv-comp-tree-menu].tree_menu{ padding: 0; }

.bm_tree_con li{ position: relative; margin-top: var(--tree_space); display: flex; gap: 0 4px; }
.bm_tree_con li .label{ position: relative; width: var(--full_width); min-height: var(--height); padding: 9px 18px; margin-top: 0; border-radius: 5px; }
.bm_tree_con li .label:hover{ background-color: #575859 !important; }
.bm_tree_con li[data-tree-item-main] .label{ cursor: default; }
.bm_tree_con li.depth_0 .label{ background-color: #2b2c2e; }
.bm_tree_con li.depth_1 .label{ background-color: #1e1f20; }
.bm_tree_con li.active .label{ box-shadow: none; }
/* .bm_tree_con li .label{ opacity: 0.35; }
.bm_tree_con li.active .label{ opacity: 1; } */
.bm_tree_con li .label > span{ width: calc(100% - 50px); font-size: 13px; line-height: 17px; font-weight: 500; }
.bm_tree_con:not(.uneditable) li:not([data-tree-item-main]) .label > span{ cursor: text; }
.bm_tree_con li:hover .tree_item_control{ display: none; }
.bm_tree_con li .label:hover .tree_item_control{ display: inline-block; }
.bm_tree_con li .tree_item_control{ position: absolute; right: 7px; }
.bm_tree_con li .tree_item_control > div{ display: inline-flex; align-items: center; justify-content: center; width: 27px; height: 27px; border-radius: 4px; margin-right: 0 !important; }
.bm_tree_con li .tree_item_control > div:hover{ background-color: #67696a; }
.bm_tree_con li .tree_item_control > .tree_item_add{ background-size: 13px; }
/* .bm_tree_con li .tree_item_control > .tree_item_edit{ background-image: url("/weven_service/asset/img/svg/edit_icon_white.svg"); background-size: 11px; background-position: center; background-repeat: no-repeat; } */
/* .bm_tree_con li .tree_item_gen{ position: absolute; top: 50%; right: 6px; transform: translateY(-50%); height: 100%; display: inline-flex; align-items: center; padding-right: 21px; font-size: 13px; line-height: 17px; font-weight: 600; color: var(--color00); background-image: url("/weven_service/asset/img/svg/keyboard_arrow_right_24dp_BEFF1D_FILL0_wght500_GRAD0_opsz24.svg"); background-size: 22px; background-position: right 0 center; background-repeat: no-repeat; cursor: pointer; }
.bm_tree_con li.depth_0 .tree_item_gen{ right: calc(var(--height) + var(--tree_space)); }
.bm_tree_con li .tree_item_gen span{ font-family: "Fugaz One"; font-weight: 500; } */
.bm_tree_con li .label ~ [class^=tree_item]{ display: inline-flex; align-items: center; justify-content: center; width: var(--height); height: var(--height); border-radius: 5px; background-color: #1e1f20; font-size: 13px; line-height: 17px; font-weight: 600; color: rgba(255,255,255,0.3); box-sizing: border-box; cursor: pointer; transition: all 0.2s; }
.bm_tree_con li .label ~ [class^=tree_item]:hover{ background-color: var(--color00); font-weight: 700; color: #000; }
.bm_tree_con li .tree_item_gen{ color: rgba(190, 255, 29, 0.8) !important; }
.bm_tree_con li .tree_item_gen:hover{ color: #000 !important;; }

/* has-child = true:하위뎁스있음, false:하위뎁스없음 */
.bm_tree_con li[has-child=true] .tree_item_edit{ display: none !important; }
.bm_tree_con li[has-child=true] .tree_item_gen{ display: none !important; }
/* is-draft = true:생성전, false:생성완료 */
.bm_tree_con li[is-draft=true] .tree_item_edit{ display: none !important; }
.bm_tree_con li[is-draft=false] .tree_item_gen{ display: none !important; }
/*  */
/* .bm_tree_con li[is-draft=true] .tree_item_control{ display: none !important; } */
/* .bm_tree_con li[is-draft=false].depth_1 .label{ width: var(--fin_width); } */

/* (is_gen: 페이지 생성중) */
[curr-tab=ai] .tree_menu.is_gen .bm_tree_con li.now_gen:not(.fin_gen){ opacity: 1; }
[curr-tab=ai] .tree_menu.is_gen .bm_tree_con li.now_gen:not(.fin_gen) .label{ background-color: #575859; }
[curr-tab=ai] .tree_menu.is_gen .bm_tree_con li .label{ cursor: default; pointer-events: none; }
[curr-tab=ai] .tree_menu.is_gen .bm_tree_con li.depth_1 .label{ flex: 1 0 auto; }
[curr-tab=ai] .tree_menu.is_gen .bm_tree_con li span{ opacity: 0.3; }
[curr-tab=ai] .tree_menu.is_gen .bm_tree_con li .tree_item_control{ display: none; }
[curr-tab=ai] .tree_menu.is_gen .bm_tree_con li .tree_item_edit{ display: none; }
[curr-tab=ai] .tree_menu.is_gen .bm_tree_con li .tree_item_gen{ display: none; }
[curr-tab=ai] .tree_menu:not(.is_gen) .bm_tree_con li .tree_gen_state{ display: none; }
[curr-tab=ai] .tree_menu:not(.is_gen) .bm_tree_con li.depth_1 .label{ width: var(--fin_width); }
[curr-tab=editor] .tree_menu .bm_tree_con li .label{ cursor: default; }
[curr-tab=editor] .tree_menu .bm_tree_con li .tree_item_control .tree_item_add{ display: none; }
[curr-tab=editor] .tree_menu .bm_tree_con li .tree_item_control .tree_item_del{ display: none; }
[curr-tab=editor] .tree_menu .bm_tree_con li .tree_gen_state{ display: none; }
[curr-tab=editor] .tree_menu .bm_tree_con li.editor .label{ background-color: #575859; }
[curr-tab=editor] .tree_menu .bm_tree_con li.editor .tree_item_control{ display: none; }
[curr-tab=editor] .tree_menu .bm_tree_con li.editor .tree_gen_state{ display: block; }

/* (tree_gen_state : 페이지 상태) */
.bm_tree_con li .tree_gen_state{ position: absolute; width: 47px; height: 27px; top: 50%; right: 7px; transform: translateY(-50%); }
.bm_tree_con li .tree_gen_state::after{ position: absolute; top: 0; left: 0; display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: 5px; font-size: 12.5px; line-height: 17px; font-weight: 400; color: var(--color00) !important; }
.bm_tree_con li.now_gen .tree_gen_state::after{ content: '생성중'; background-color: #000; }
.bm_tree_con li.fin_gen .tree_gen_state::after{ content: '생성완료'; background-color: transparent; }
[curr-tab=editor] .bm_tree_con li.editor .tree_gen_state::after{ content: '편집중'; background-color: #000; }

.menu_btn_con{ margin-top: 20px; display: flex; gap: 9px; }
.menu_btn{ flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; padding: 10px 10px 11px 20px; border: 2px solid rgba(190,255,29,0.3); border-radius: 5px; font-size: 13px; line-height: 17px; font-weight: 800; color: var(--color00) !important; box-sizing: border-box; cursor: pointer;}
.menu_btn:hover{ border-color: var(--color00); }
.menu_btn span{ padding-right: 21px; background-size: 17px; background-position: right 0 center; background-repeat: no-repeat; }
.menu_btn.save span{ background-image: url("/weven_service/asset/img/svg/download_done_24dp_BEFF1D_FILL0_wght500_GRAD0_opsz24.svg"); }
.menu_btn.preview span{ background-image: url("/weven_service/asset/img/svg/open_in_new_16dp_BEFF1D_FILL0_wght500_GRAD0_opsz20.svg"); }
.menu_btn.add span{ background-image: url("/weven_service/asset/img/svg/add_circle_24dp_BEFF1D_FILL1_wght400_GRAD0_opsz24.svg"); }
.menu_btn.disabled{ opacity: 0.4; pointer-events: none; }


/* frame_textarea */
.frame_textarea{ position: relative; margin-top: 20px; }
.frame_textarea .title{ display: inline-flex; align-items: center; width: fit-content; font-size: 13px; line-height: 18px; font-weight: 600; color: #fff; text-indent: 2px; margin-bottom: 16px; }
.frame_textarea .title span{ margin-left: 3px; color: #727272; }
.frame_textarea .title .help_icon{ position: relative; margin-left: 6px; width: 17px; height: 17px; background-image: url("/weven_service/asset/img/svg/help_24dp_FFF_FILL1_wght600_GRAD0_opsz24.svg"); background-size: contain; background-position: right 0 center; background-repeat: no-repeat; cursor: pointer; }
.frame_textarea .textarea_box{ width: 100%; height: 157px; padding: 13px 3px 41px; background-color: #343537; border-radius: 8px;  box-sizing: border-box; }
.frame_textarea textarea{ width: 100%; min-height: 100%; background-color: transparent; padding: 0 15px; font-size: 15px; line-height: 27px; font-weight: 600; color: #fff; margin: 0; border: none; outline: none; resize: none; box-sizing: border-box; }
.frame_textarea textarea::-webkit-scrollbar{ width: 8px; background: transparent; }
.frame_textarea textarea::-webkit-scrollbar-thumb{ background-color: #575859; border-left: 4px solid #343537; }
.frame_textarea textarea::-webkit-scrollbar-track{ background-color: transparent; }
.frame_textarea .textarea_btn_con{ display: flex; gap: 4px; width: 100%; padding: 4px 5px 5px 18px; position: absolute; left: 0; bottom: 0; box-sizing: border-box; }
.frame_textarea .textarea_btn_con > *:first-child{ margin-right: auto; }
.frame_textarea .textarea_cnt{ display: inline-flex; align-items: center; gap: 4px; padding-top: 1px; font-size: 13px; line-height: 18px; font-weight: 400; color: #929292; cursor: default; }
.frame_textarea .textarea_cnt span{ font-weight: 700; color: var(--color00); }
.frame_textarea .textarea_btn{ position: relative; width: 32px; height: 32px; border-radius: 5px; background-color: transparent; }
.frame_textarea .textarea_btn:hover{ background-color: #121212; }
.frame_textarea .textarea_btn::after{ content: ''; opacity: 0.3; width: 100%; height: 100%; position: absolute; top: 0; left: 0; background-position: center; background-repeat: no-repeat; pointer-events: none; }
.frame_textarea .textarea_btn:hover::after{ opacity: 1; }
.frame_textarea .textarea_btn.wand::after{ background-image: url("/weven_service/asset/img/svg/wand_stars_16dp_FFF_FILL0_wght400_GRAD0_opsz20.svg"); background-size: 20px; }
.frame_textarea .textarea_btn.file::after{ background-image: url("/weven_service/asset/img/svg/attach_file_18dp_FFF_FILL0_wght400_GRAD0_opsz20.svg"); background-size: 20px; transform: rotate(45deg); }
.frame_textarea .textarea_btn.up::after{ background-image: url("/weven_service/asset/img/svg/arrow_downward_alt_24dp_FFF_FILL0_wght400_GRAD0_opsz24.svg"); background-size: 22px; transform: rotate(180deg); }
/* 도움말 */
.frame_textarea{ --help_gap: 1px; }
.frame_textarea .title .help_icon::after{ --arrow_width: 11px; content: ''; opacity: 0; transition: all 0.2s; border-top: var(--arrow_width) solid #fff; border-left: var(--arrow_width) solid transparent; border-right: var(--arrow_width) solid transparent; border-bottom: none; position: absolute; top: calc(-1 * var(--arrow_width) - 1px - var(--help_gap)); right: -4px; }
.frame_textarea .title .help_icon:hover::after{ opacity: 1; }
.frame_textarea .textarea_help{ --arrow_width: 11px; pointer-events: none; opacity: 0; top: calc(-1 * var(--arrow_width) - var(--help_gap)); transition: all 0.2s; width: 100%; font-size: 13px; line-height: 17px; font-weight: 600; color: #2d2d2d; padding: 16px 40px 15px 18px; background-color: #fff; border-radius: 8px; position: absolute; left: 50%; transform: translate(-50%, -100%); box-sizing: border-box; }
.frame_textarea .help_icon:hover + .textarea_help{ opacity: 1;}
.frame_textarea .textarea_help .help_close_btn{ display: none; width: 20px; height: 20px; position: absolute; top: 13px; right: 10px; background-image: url("/weven_service/asset/img/svg/cancel_24dp_000_FILL1_wght700_GRAD0_opsz24.svg"); background-size: contain; background-position: center; background-repeat: no-repeat; }
.frame_textarea .textarea_help ul li{ word-break: keep-all; }
.frame_textarea .textarea_help ul li:not(:last-child){ margin-bottom: 5px; }
.frame_textarea .textarea_help ul li:not(.bullet){ font-weight: 800; }
.frame_textarea .textarea_help ul li.bullet{ position: relative; padding-left: 11px; font-size: 12px; line-height: 16px; color: #7c7c7c; }
.frame_textarea .textarea_help ul li.bullet::before{ content: '※'; position: absolute; top: 0; left: 0; }
/* (not_clicked_closebtn : 페이지 초기 접근시 X버튼 누르기 전까지 도움말 보이도록) */
.frame_textarea.not_clicked_closebtn .title .help_icon::after{ opacity: 1; }
.frame_textarea.not_clicked_closebtn .textarea_help{ opacity: 1; pointer-events: auto; cursor: pointer; }
.frame_textarea.not_clicked_closebtn .textarea_help .help_close_btn{ display: block; }

/* frame_area */
[fr-area]{ width: 100%; height: 100%; top: 0; left: 0; box-sizing: border-box; word-break: keep-all; }

/* ai */
[fr-area="ai"]{ height: fit-content; padding: 50px 70px; }
[fr-area="ai"] .fugaz{ font-family: "Fugaz One"; }
[fr-area="ai"] .p_color{ color: var(--color00); }
[fr-area="ai"] .state_label{ background-color: #353535; }
[fr-area="ai"] .title{ font-size: 28px; line-height: 34px; font-weight: 700; color: #fff; }
[fr-area="ai"] .sub_title{ font-size: 18px; line-height: 28px; font-weight: 400; color: #fff; }
[fr-area="ai"] .desc{ max-width: 92%; font-size: 18px; line-height: 28px; font-weight: 400; color: #b2b2b2; }
[fr-area="ai"] .button{ display: inline-block; min-width: 220px; padding: 12px 30px 11px; background-color: var(--color00); border-radius: 7px; font-size: 13px; line-height: 19px; font-weight: 800; color: #000; text-align: center; margin-right: 9px; box-sizing: border-box; background-image: url("/weven_service/asset/img/svg/arrow_circle_right_16dp_000_FILL1_wght500_GRAD0_opsz20.svg"); background-size: 22px; background-position: right 8px center; background-repeat: no-repeat; transition: all 0.2s; }
[fr-area="ai"] .button.disabled{ opacity: 0.2; pointer-events: none; }
[fr-area="ai"] .button:hover{ box-shadow: var(--btn_hover_shadow); }
[fr-area="ai"] iframe{ width: 100%; min-height: 1000px; border-radius: 10px; }
/* 여백 ('+' 선택자로 컨트롤 가능하도록 mt로 조절할것) */
[fr-area="ai"] .state_label + .title{ margin-top: 13px; }
[fr-area="ai"] .sub_title{ margin-top: 20px; }
[fr-area="ai"] .desc{ margin-top: 20px; }
[fr-area="ai"] .button{ margin-top: 34px; }
[fr-area="ai"] .thinking{ margin-top: 72px; }
[fr-area="ai"] .thinking + .sub_title{ margin-top: 62px; }
[fr-area="ai"] .desc + .skeleton{ margin-top: 50px; }
[fr-area="ai"] iframe{ margin-top: 20px; }
[data-area-title] .sub_title{ margin-top: 62px; }
[data-area-content] + .skeleton{ margin-top: 50px; }
[data-area-skeleton] { margin-top: 34px; }
[data-area-skeleton] iframe{ margin-top: 0; }
[data-area-skeleton] .button{ margin-top: 0; }
[data-area-skeleton] + .skeleton{ margin-top: 54px; }
.gen_con + .title{ margin-top: 80px; }
[fr-area="ai"] iframe + .skeleton{ margin-top: 67px; }
[fr-area="ai"] .button + .desc{ margin-top: 74px; }

/* editor */
[fr-area="editor"]{ background-color: var(--frame_area_bgc); }
[fr-area="editor"] iframe{ width: 100%; height: 100%; }
[fr-area="editor"] #WEVEN_IFRAME{ height: 100% !important; }


/* 덮어나오는 모션 */
ul.top_tab{ transform: translateX(100%); transition: transform 0.3s; }
[fr-area][slide-area]{ position: fixed; width: var(--frame_area_w); height: var(--frame_content_h); top: unset; left: unset; bottom: 0; right: 0; transform: translateX(100%); transition: transform 0.3s; }

/* 버튼 확장 */
[fr-area="ai"] .button.white{ background-color: var(--color01); }
[fr-area="ai"] .button.white:hover{ box-shadow: var(--btn_hover_shadow01); }


/* 팝업 */
.zai_pop{ background-color: #262626 !important; border-radius: 15px; }
.zai_pop_wrap{ padding: 70px 60px 50px; color: #fff; text-align: center; }
.zai_pop_close{ position: absolute; top: 20px; right: 20px; display: inline-block; width: 30px; height: 30px; background-image: url("/weven_service/asset/img/svg/close_FILL0_wght400_GRAD0_opsz20_white.svg"); background-size: contain; background-position: center; background-repeat: no-repeat; }
.zai_pop_body{ word-break: keep-all; }
.zai_confirm_title{ font-weight: 700; font-size: 24px; line-height: 34px; letter-spacing: -0.02em; }
.zai_confirm_desc{ margin-top: 20px; font-size: 15px; line-height: 23px; font-weight: 300; color: rgba(256, 256, 256, 0.4); }
.zai_pop_footer{ margin-top: 40px; display: flex; align-items: center; justify-content: center; gap: 0 12px; }
.zai_pop_btn{ --out_spread: 6px; position: relative; min-width: 120px; padding: 10px 30px; font-size: 15px; font-weight: 700; color: #000 !important; background-color: #fff; border-radius: 50px; transition: padding 0.1s linear; box-sizing: border-box; }
.zai_pop_btn::before {content: ''; position: absolute; width: calc(100% + var(--out_spread)*2); height: calc(100% + var(--out_spread)*2); top: calc(-1*var(--out_spread)); left: calc(-1*var(--out_spread)); z-index: -1; background-color: #fff; border-radius: 50px; transition: opacity 0.3s ease; opacity: 0;}
.zai_pop_btn:hover::before { opacity:0.3;}
/*(버튼 컬러)*/
.zai_pop_btn.default{ background-color: #fff; }
.zai_pop_btn.default::before{ background-color: #fff; }
.zai_pop_btn.color{ background-color: #beff1d; }
.zai_pop_btn.color::before{ background-color: #beff1d; }
/*(disabled)*/
.zai_pop_btn.disabled { opacity: 0.35; cursor: pointer; pointer-events: none; }
.zai_pop_btn.disabled::before { content: none; }