/* 메인 개편: 편집 캔버스와 분리된 홈 전용 스타일 */
.main_pannel_wrap:has(#previous.editor_home:not(.hide)){min-height:calc(100% - 80px);height:auto;margin-bottom:0;padding-top:26px;}
.main_pannel_wrap:has(#previous.editor_home:not(.hide)) > .skin_favorites_area,
.main_pannel_wrap:has(#previous.editor_home:not(.hide)) > #main_pannel_wrap{display:none;}
#previous.editor_home{position:relative;inset:auto;display:flex;flex-direction:column;flex-wrap:nowrap;align-content:normal;gap:30px;width:100%;padding:0 36px 32px;background:transparent;font-family:'Noto Sans KR','Malgun Gothic',sans-serif;}
#previous.editor_home.hide{display:none;}
#previous.editor_home section{width:100%;margin:0;box-sizing:border-box;}
#previous.editor_home .sec_title{border:0;padding:0;margin:0;color:#f6f7fa;font-size:18px;font-weight:700;line-height:1.5;}
#previous.editor_home .home_feature{position:relative;min-height:252px;border:1px solid #5968ff;border-radius:10px;background:radial-gradient(ellipse at 70% 130%,#2381ff 0,transparent 60%),linear-gradient(115deg,#202575,#3448e9 65%,#21269b);overflow:hidden;margin-bottom:8px;}
.home_feature_link{display:flex;align-items:center;min-height:250px;color:#fff;position:relative;padding:30px;}
.home_feature_copy{position:relative;z-index:1;}
.home_feature_eyebrow{font-size:14px;color:#ccd5ff;margin:0 0 18px;}
.home_feature_eyebrow strong{color:#8eb4ff;font-style:italic;}
.home_feature_copy h2{color:#fff;font-size:30px;line-height:1.35;letter-spacing:-1.2px;font-weight:700;margin:0 0 16px;white-space:nowrap;}
.home_feature_description{font-size:15px;line-height:1.8;color:#edf0ff;margin:0;}
.home_feature_art{position:absolute;right:7px;top:14px;width:330px;height:220px;object-fit:contain;pointer-events:none;}
.home_feature_close{position:absolute;right:12px;top:8px;z-index:2;width:30px;height:30px;border-radius:4px;color:#fff;font-size:28px;line-height:1;font-weight:300;}
.home_feature_close:hover{background:#ffffff22;}
.home_feature_today{position:absolute;right:18px;bottom:15px;z-index:2;display:flex;align-items:center;gap:7px;color:#fff;font-size:12px;cursor:pointer;}
.home_feature_today input{appearance:auto;width:15px;height:15px;margin:0;accent-color:#567cff;}
#previous.editor_home .home_feature[hidden]{display:none;}
#previous.editor_home .new > .sec_title{font-size:22px;margin:0 0 12px;}
.home_work_panel,#previous.editor_home .home_notice,#previous.editor_home .home_recent{border-radius:7px;background:#1e222755;border:1px solid #ffffff04;padding:20px;}
.home_work_panel h4{font-size:15px;color:#f4f5f7;font-weight:600;margin:0 0 12px;}
#previous.editor_home .home_work_grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;}
#previous.editor_home .home_work_grid > li{width:auto;min-width:0;}
#previous.editor_home .home_work_groups .btn{position:relative;display:flex;flex-direction:column;align-items:flex-start;min-height:158px;padding:15px 12px;border:1px solid #ffffff06;border-radius:8px;background:linear-gradient(135deg,#2b3037,#24292f);text-align:left;color:#fff;transition:background .15s,transform .15s;}
#previous.editor_home .home_work_groups .btn:hover{transform:translateY(-2px);background:#303741;}
.home_work_icon{display:flex;align-items:center;justify-content:center;width:44px;height:44px;margin:0 0 12px;color:#d5dfff;}



#previous.editor_home .home_work_grid .title{font-size:13px;font-weight:700;color:#fff;white-space:normal;line-height:1.5;letter-spacing:-.35px;}
.home_work_arrow{position:absolute;right:9px;bottom:17px;width:23px;height:23px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:#59616e;color:#fff;font-size:24px;line-height:1;}
#previous.editor_home .home_section_header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;}
#previous.editor_home .home_section_header .sec_title{font-size:15px;}
.home_more{display:inline-flex;align-items:center;gap:7px;font-size:11px;color:#d3d6dc;white-space:nowrap;}
.home_more:hover{color:#fff;}
.home_more span{position:relative;top:-1px;font-size:19px;line-height:1;}
#previous.editor_home .home_notice{text-align:left;}
#previous.editor_home .home_notice_list{display:flex;flex-direction:column;gap:0;}
.home_notice_list > li{border-top:1px solid #ffffff10;min-width:0;}
.home_notice_list a{display:flex;align-items:center;gap:12px;padding:10px 7px;color:#e0e3e8;font-size:12px;}
.home_notice_list a::before{content:'';flex:none;width:6px;height:6px;border-radius:50%;background:#448cff;}
.home_notice_title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.home_notice_list time{margin-left:auto;flex:none;color:#a7afb9;font-size:11px;}
.home_notice_list a:hover .home_notice_title{text-decoration:underline;}
.home_notice_status{color:#a7afb9;font-size:12px;padding:12px 7px;}
#previous.editor_home .home_recent{height:auto;min-height:210px;}
#previous.editor_home .recent > ul{gap:12px;}
#previous.editor_home .recent > ul > li:not(.cmt){width:calc((100% - 48px)/5);min-width:0;}
#previous.editor_home .recent .thumb{aspect-ratio:1/1.5 !important;border-radius:7px;}
#previous.editor_home .recent .thumb img{width:100%;height:100%;object-fit:cover;object-position:top;}
#previous.editor_home .recent .title{font-size:11px;color:#e3e6eb;text-align:left;}
#previous.editor_home .recent .date{font-size:10px;color:#a5adb7;text-align:left;margin-top:5px;}
#previous.editor_home .recent .cmt{padding-top:95px;margin:5px 0 16px;min-height:130px;}
#previous.editor_home button:focus-visible,#previous.editor_home a:focus-visible{outline:2px solid #9abaff;outline-offset:3px;}
@media (min-width:800px) and (max-width:1100px){#previous.editor_home{padding-left:24px;padding-right:24px;}.home_feature_copy h2{font-size:27px;}.home_feature_art{width:300px;}}
@media(prefers-reduced-motion:reduce){#previous.editor_home .home_work_groups .btn{transition:none;}}

html:has(#previous.editor_home:not(.hide)) #right_pannel_show_hide{display:none;}

/* 상품상세 제작 3종만 묶고 AI 이미지는 독립 기능으로 배치한다. */
.home_work_groups{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,1fr);gap:12px;align-items:stretch;}
.home_work_groups > .home_work_panel{min-width:0;}
.home_work_groups .home_icon_ai,.home_work_groups .home_icon_skin,.home_work_groups .home_icon_blank{width:58px;height:52px;margin:0 0 10px;background:none;border:0;text-shadow:none;}
.home_work_groups .home_icon_ai svg,.home_work_groups .home_icon_skin svg,.home_work_groups .home_icon_blank svg{width:64px;height:56px;flex:none;}


/* AI 이미지 생성: 큰 결과 이미지와 설명을 가진 독립 카드 */

#previous.editor_home .home_work_grid .btn{height:100%;}

/* 생성 결과를 강조하는 차분한 라벤더 그레이 */

/* AI 이미지: 기존 콜라주에 색면과 배지로만 포인트를 더한다. */
#previous.editor_home .home_work_groups .btn.home_ai_image{position:relative;isolation:isolate;min-height:252px;padding:0;gap:0;align-items:stretch;justify-content:flex-end;overflow:hidden;border:1px solid #cfc2dd;background:linear-gradient(145deg,#f4edf1 0%,#e0d4ed 58%,#eee7f3 100%);color:#2f2938;}
#previous.editor_home .home_work_groups .btn.home_ai_image:hover{transform:translateY(0);border-color:#b8a4d1;background:linear-gradient(145deg,#faf4f7 0%,#e6daf3 58%,#f2edf6 100%);}
.home_ai_image::before{content:'';position:absolute;z-index:0;left:12px;top:45px;width:240px;height:152px;border-radius:50%;background:#cbb8df6b;transform:rotate(-26deg);pointer-events:none;}
.home_ai_image::after{content:'';position:absolute;z-index:0;width:255px;height:186px;top:-67px;right:-114px;border:1px solid #ffffffb3;border-radius:50%;transform:rotate(-30deg);pointer-events:none;}
.home_ai_image_label{position:absolute;left:13px;bottom:16px;z-index:3;display:flex;align-items:baseline;gap:2px;padding:5px 8px;border:1px solid #ffffffb8;border-radius:20px;background:#ffffff9c;color:#6c587e;font-size:10px;font-weight:500;line-height:1;}
.home_ai_image_label strong{font-size:12px;font-weight:700;color:#73558f;}
.home_ai_image_content{display:block;position:absolute;top:0;z-index:2;width:100%;padding:15px 14px 18px;text-align:left;}
#previous.editor_home .home_work_groups .btn.home_ai_image .title{display:block;font-size:16px;font-weight:700;line-height:1.5;letter-spacing:-.6px;color:#302939;}
#previous.editor_home .home_work_groups .btn.home_ai_image .home_work_arrow{z-index:3;right:12px;bottom:16px;background:#79628f;color:#fff;}

.home_work_arrow svg{display:block;flex:none;width:12px;height:12px;}

/* 사진 스택 → 펼친 다섯 장을 유지하며 앞 카드를 순환한다. */
.home_ai_image_visual{display:block;position:absolute;z-index:1;left:14px;right:14px;top:48px;bottom:51px;pointer-events:none;}
.home_ai_slide{display:block;position:absolute;inset:0 auto 0 15%;width:70%;overflow:hidden;border:3px solid #f9f7fb;border-radius:7px;background:#e0d7e7;box-shadow:0 5px 10px #32243d19;transition:transform .9s cubic-bezier(.22,.61,.36,1);transform:var(--fan);}
.home_ai_slide img{display:block;width:100%;height:100%;object-fit:cover;object-position:center;}
@media(prefers-reduced-motion:reduce){.home_ai_slide{transition:none;}}


#previous.editor_home .ban.img > img{display:block;width:100%;height:auto;flex:none;}
/* 시계 방향의 실제 위치 순서: 중앙 → 오른쪽 안/밖 → 왼쪽 밖/안. 사진과 카드의 연결은 유지한다. */
.home_ai_slide[data-fan-slot="0"]{--fan:rotate(0deg);--spread:rotate(0deg);z-index:5;}
.home_ai_slide[data-fan-slot="1"]{--fan:translateX(27%) rotate(10deg) scale(.94);--spread:translateX(32%) rotate(12deg) scale(.94);z-index:3;}
.home_ai_slide[data-fan-slot="2"]{--fan:translateX(43%) rotate(20deg) scale(.86);--spread:translateX(49%) rotate(24deg) scale(.86);z-index:1;}
.home_ai_slide[data-fan-slot="3"]{--fan:translateX(-43%) rotate(-20deg) scale(.86);--spread:translateX(-49%) rotate(-36deg) scale(.86);z-index:2;}
.home_ai_slide[data-fan-slot="4"]{--fan:translateX(-27%) rotate(-10deg) scale(.94);--spread:translateX(-32%) rotate(-12deg) scale(.94);z-index:4;}
.home_ai_image.is-spreading .home_ai_slide{transform:var(--spread);}

/* 상품상세 제작: 패널 높이를 활용하고 아이콘/제목/화살표의 간격을 정돈한다. */
.home_work_groups > .home_work_panel{display:flex;flex-direction:column;}
.home_work_panel h4{margin-bottom:14px;}
#previous.editor_home .home_work_grid{flex:1;gap:10px;}
#previous.editor_home .home_work_grid > li{display:flex;}
#previous.editor_home .home_work_grid .new_work{display:grid;grid-template-columns:minmax(0,1fr) 24px;grid-template-rows:minmax(70px,1fr) auto;column-gap:8px;row-gap:10px;align-items:center;min-height:0;padding:18px 14px;}
#previous.editor_home .home_work_grid .home_work_icon{grid-column:1/-1;justify-self:center;width:78px;height:68px;margin:0;}
#previous.editor_home .home_work_grid .home_work_icon svg{width:78px;height:68px;}
#previous.editor_home .home_work_grid .title{display:flex;align-items:center;grid-column:1;grid-row:2;min-height:42px;font-size:13px;font-weight:400;line-height:1.5;letter-spacing:-.45px;word-break:keep-all;white-space:nowrap;}
#previous.editor_home .home_work_grid .home_work_arrow{position:static;grid-column:2;grid-row:2;align-self:center;width:24px;height:24px;}

/* 관리자 새 기능 콘텐츠 — 공지사항 제목과 목록 사이에 자연스럽게 연결 */
.home_updates[hidden]{display:none;}
.home_updates{display:flex;flex-direction:column;gap:12px;margin:2px 0 15px;}
#previous.editor_home .home_update{display:flex;align-items:center;gap:20px;padding:14px;border:1px solid #ffffff0c;border-radius:7px;background:linear-gradient(110deg,#ffffff06,#ffffff02);}
.home_update_media{flex:0 0 190px;overflow:hidden;aspect-ratio:1/.58;border-radius:5px;background:#181c22;}
.home_update_media img,.home_update_media video{display:block;width:100%;height:100%;object-fit:contain;}
.home_update_body{flex:1;min-width:0;}
.home_update_badge{display:inline-block;margin-bottom:5px;padding:2px 6px;border-radius:4px;background:#a68be119;color:#448cff;font-size:10px;font-weight:600;}
.home_update_title{margin:0;color:#f2f3f7;font-size:16px;line-height:1.5;font-weight:600;word-break:keep-all;}
.home_update_description{margin:5px 0 0;color:#b5bdc8;font-size:12px;line-height:1.7;word-break:keep-all;}
.home_update_links{display:flex;flex-wrap:wrap;gap:14px;margin-top:11px;}
.home_update_links a{color:#a9b9dc;font-size:11px;line-height:1.5;}
.home_update_links a::after{content:'↗';margin-left:4px;font-size:10px;}
.home_update_links a:hover{color:#d2dcf5;text-decoration:underline;}
@media(max-width:1000px){.home_update_media{flex-basis:160px;}#previous.editor_home .home_update{gap:14px;}}

/* 공지사항 + 관리자 TIP: 정보 밀도에 맞춰 나눈 두 패널 */
.home_information_row{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;align-items:stretch;}
.home_information_row.has_tips{grid-template-columns:minmax(0,1.7fr) minmax(230px,1fr);}
#previous.editor_home .home_information_row > section{min-width:0;}
#previous.editor_home .home_tips{padding:20px;border:1px solid #ffffff04;border-radius:7px;background:#1e222755;text-align:left;}
#previous.editor_home .home_tips[hidden]{display:none;}
#previous.editor_home .home_tips .home_section_header{margin-bottom:8px;}
#previous.editor_home .home_tips .sec_title{font-size:14px;color:#ddd6eb;word-break:keep-all;}
#previous.editor_home .home_tip_list{display:flex;flex-direction:column;gap:0;}
.home_tip_list li{min-width:0;border-top:1px solid #ffffff08;}
.home_tip_list li:first-child{border-top:0;}
.home_tip_list a{display:flex;align-items:center;justify-content:space-between;gap:9px;padding:10px 0;color:#bfc5d0;font-size:12px;line-height:1.65;word-break:keep-all;}
.home_tip_list a::after{content:'↗';flex:none;color:#8e7ba6;font-size:12px;}
.home_tip_list a:hover{color:#e7e7e7;}
.home_information_row.has_tips .home_update{gap:12px;padding:12px;}
.home_information_row.has_tips .home_update_media{flex-basis:190px;}
.home_information_row.has_tips .home_update_title{font-size:14px;}
.home_information_row.has_tips .home_update_description{font-size:11px;}
.home_information_row.has_tips .home_update_links{gap:9px;}
@media(max-width:1100px){.home_information_row.has_tips{grid-template-columns:minmax(0,1fr);}.home_information_row.has_tips .home_update_media{flex-basis:180px;}}

/* 임시 저장된 디자인: 이어서 편집하는 문서 카드 */
#previous.editor_home .recent .btn[data-type="auto_save"] .thumb:not(:has(img)){border:1px solid #6c91cb38;background:url('/images/editor/home_draft_design.svg') center / 100% 100% no-repeat,radial-gradient(ellipse at 20% 0,#426da112,transparent 75%),linear-gradient(145deg,#292e36,#24292f);transition:border-color .18s;}
#previous.editor_home .recent .btn[data-type="auto_save"]:hover .thumb:not(:has(img)){filter:none;border-color:#81aafa88;}

/* 최근 디자인의 저장·발행 상태 태그 */
#previous.editor_home .recent .btn:is([data-type="save"],[data-type="distribute"],[data-type="auto_save"]) .part{display:inline-flex;align-items:center;gap:4px;top:7px;left:7px;box-sizing:border-box;height:20px;padding:0 6px;border:1px solid #ffffff24;border-radius:4px;background:#17212ddb;box-shadow:0 1px 3px #00000021;font-size:10px;font-weight:500;line-height:1;white-space:nowrap;}
#previous.editor_home .recent .btn[data-type="save"] .part{color:#b7d6ff;--home-state-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 2h9l2 2v9a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1Z'/%3E%3Cpath d='M5 2v4h6V2M5 14V9h6v5M9 3.5v1'/%3E%3C/svg%3E");}
#previous.editor_home .recent .btn[data-type="distribute"] .part{color:#a4e6d0;--home-state-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cellipse cx='8' cy='8' rx='2.5' ry='6'/%3E%3Cpath d='M2 8h12'/%3E%3C/svg%3E");}
#previous.editor_home .recent .btn:is([data-type="save"],[data-type="distribute"],[data-type="auto_save"]) .part::before{content:'';display:block;flex:none;width:11px;height:11px;background:currentColor;-webkit-mask:var(--home-state-icon) center/contain no-repeat;mask:var(--home-state-icon) center/contain no-repeat;}

#previous.editor_home .recent .btn[data-type="auto_save"] .part{color:#c8d3e4;--home-state-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 3v4h4M2.5 7a5.5 5.5 0 1 1 .5 4M8 4.5V8l2.5 1.5'/%3E%3C/svg%3E");}

/* 관리자 원본 HTML을 유지하고 기존 클래스에 메인 전용 표현만 적용한다. */
#homeUpdates .home_update_html{min-width:0;padding:14px;border:1px solid #ffffff0c;border-radius:7px;background:linear-gradient(110deg,#ffffff06,#ffffff02);}
#homeUpdates .home_update_html > .title{display:flex;align-items:baseline;gap:5px;margin:0 0 12px;padding:0;color:#d7d9e2;font-size:13px;font-weight:500;line-height:1.5;}
#homeUpdates .title .new{font-style:normal;color:#b89cd9;}
#homeUpdates .title .more{margin-left:auto;color:#a9b9dc;font-size:11px;font-weight:400;}
#homeUpdates .title .more:hover{text-decoration:underline;}
#homeUpdates .contents_list{width:100%;margin:0;overflow:visible;}
#homeUpdates .swiper-wrapper{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;height:auto;transform:none!important;}
#homeUpdates .swiper-slide{width:auto!important;height:auto;min-width:0;flex-shrink:1;}
#homeUpdates .contents{display:flex;align-items:center;gap:14px;}
#homeUpdates .images{flex:0 0 190px;width:190px;max-width:100%;overflow:hidden;border-radius:5px;background:#181c22;}
#homeUpdates .images img,#homeUpdates .images video{display:block;width:100%;height:auto;max-width:100%;object-fit:contain;}
#homeUpdates .text{flex:1;min-width:0;}
#homeUpdates .title{font-size:14px;font-weight:600;color:#e5daf3;line-height:1.5;word-break:keep-all;}
#homeUpdates .desc{margin:0;color:#bfc6d1;font-size:12px;line-height:1.8;word-break:keep-all;}
#homeUpdates .desc .point{color:#e5daf3;font-weight:600;}
#homeUpdates .link{margin:9px 0 0;font-size:11px;line-height:1.5;}
#homeUpdates .link a{color:#a9b9dc;}
#homeUpdates .link a:hover{text-decoration:underline;}

/* 관리자에서 바꾼 badge/title/desc/link 구조에 기존 소개 카드 디자인을 연결한다. */
#homeUpdates .contents{gap:20px;}
#homeUpdates .images{flex-basis:190px;width:190px;}
#homeUpdates .text > .home_update_badge{display:inline-block;margin-bottom:5px;vertical-align:top;}
#homeUpdates .text > .title{margin:0;color:#f2f3f7;font-size:16px;font-weight:600;line-height:1.5;word-break:keep-all;}
#homeUpdates .text > .title .point{color:inherit;font-weight:inherit;}
#homeUpdates .text > .desc{margin:5px 0 0;color:#b5bdc8;font-size:12px;line-height:1.7;word-break:keep-all;}
#homeUpdates .text > .link{display:flex;flex-wrap:wrap;gap:14px;margin:11px 0 0;}
#homeUpdates .text > .link a{color:#a9b9dc;font-size:11px;line-height:1.5;}
#homeUpdates .text > .link a::after{content:'↗';margin-left:4px;font-size:10px;}
.home_information_row.has_tips #homeUpdates .home_update_html{padding:12px;}
.home_information_row.has_tips #homeUpdates .contents{gap:12px;}
.home_information_row.has_tips #homeUpdates .text > .title{font-size:14px;}
.home_information_row.has_tips #homeUpdates .text > .desc{font-size:11px;}
.home_information_row.has_tips #homeUpdates .text > .link{gap:9px;}
@media(max-width:1100px){#homeUpdates .images{flex-basis:180px;width:180px;}}

#homeUpdates .link a::after{display:inline-block;text-decoration:none;}
