/* 레벨업 홍보 도우미 — 디자인 시안 v1(Figma 8dHc20kj9gFMI7N9TPigXr) 적용. 휴대폰 390px 기준, 1024px 이상은 왼쪽 메뉴 + 2단.
   글자 17px 이상(보조 14px), 누르는 것 48px 이상·주 버튼 56px, 아이콘만 있는 버튼 없음. 남색=주색, 노랑=강조(지금 할 일·포커스)만.
   글꼴 Pretendard(OFL, /static/fonts 자체 호스팅 — 외부 요청 없음). 한글 2,350자 부분 글꼴이라 드문 글자는 시스템 글꼴로 보인다 */
@font-face{font-family:Pretendard;font-style:normal;font-weight:400;font-display:swap;src:url(/static/fonts/Pretendard-Regular.subset.woff2) format("woff2")}
@font-face{font-family:Pretendard;font-style:normal;font-weight:500;font-display:swap;src:url(/static/fonts/Pretendard-Medium.subset.woff2) format("woff2")}
@font-face{font-family:Pretendard;font-style:normal;font-weight:700;font-display:swap;src:url(/static/fonts/Pretendard-Bold.subset.woff2) format("woff2")}
:root{
  --navy:#00215b;--navy-800:#0b3175;--navy-700:#1e3b6e;--white-a72:rgba(255,255,255,.72);--white-a16:rgba(255,255,255,.16);--brand-tint:#e6ebf4;--brand-soft:#f2f5fa;--yellow:#fbc600;--yellow-soft:#fff3c4;
  --page:#f7f8fa;--surface:#fff;--subtle:#ebedf2;--muted:#dde1e8;--ink:#141a26;--sub:#555d6e;--line:#dde1e8;--line-strong:#9aa1ae;--link:#1e3b6e;
  --ok:#0b6e38;--okbg:#ddf4e6;--warn:#5c4300;--warnbg:#fff3c4;--err:#b3261e;--errbg:#fde3e1;--info:#00215b;--infobg:#f2f5fa;
  --s-generating:#4a5160;--s-generating-bg:#eef0f3;--s-ready:#5c4300;--s-ready-bg:#fff3c4;--s-approved:#00215b;--s-approved-bg:#e6ebf4;
  --s-sending:#0a5f8a;--s-sending-bg:#ddf0fa;--s-checking:#a3440a;--s-checking-bg:#ffe9d2;--s-posted:#0b6e38;--s-posted-bg:#ddf4e6;
  --s-failed:#b3261e;--s-failed-bg:#fde3e1;--s-attention:#5e35a0;--s-attention-bg:#eee6fa;
  --r-sm:8px;--r-md:12px;--r-lg:16px;--r-xl:24px;
  --shadow-card:0 1px 3px rgba(0,33,92,.08),0 4px 12px rgba(0,33,92,.06);--shadow-bar:0 -4px 16px rgba(0,33,92,.08);
  --side:240px
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{font-family:Pretendard,system-ui,-apple-system,"Apple SD Gothic Neo","Noto Sans KR",sans-serif;font-size:17px;line-height:26px;margin:0;background:var(--page);color:var(--ink);word-break:keep-all;overflow-wrap:anywhere}
main{max-width:480px;margin:0 auto;padding:16px 16px 140px}
h1{font-size:22px;line-height:30px;letter-spacing:-.01em;margin:8px 0 16px}
h2{font-size:19px;line-height:27px;margin:20px 0 10px}
p{margin:8px 0}
a{color:var(--link)}
img{max-width:100%}
:focus-visible{outline:3px solid var(--yellow);outline-offset:2px;box-shadow:0 0 0 2px var(--navy)}
[hidden]{display:none!important}
main .pc-only{display:none}
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.note{color:var(--sub)}
.muted{color:var(--sub)}
small{font-size:14px}

/* ---------------- 머리줄(휴대폰) */
header.top{position:sticky;top:0;z-index:5;display:flex;align-items:center;gap:8px;min-height:56px;padding:0 8px 0 16px;padding-top:env(safe-area-inset-top);background:var(--surface);border-bottom:1px solid var(--line)}
header.top a{display:inline-flex;align-items:center;min-height:48px;font-size:17px;font-weight:700;text-decoration:none;color:var(--link)}
header.top .brand{gap:8px;flex:1;min-width:0;font-size:19px;color:var(--navy)}
header.top .brand img{width:32px;height:32px;border-radius:8px;flex:none}
header.top .act{padding:0 12px;min-width:48px;justify-content:center}
header.top.detail{padding-left:4px}
header.top .back{gap:2px;padding:0 12px 0 8px;color:var(--navy)}
header.top .back img{width:22px;height:22px}
header.top .top-title{flex:1;min-width:0;font-size:19px;line-height:27px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* ---------------- PC 왼쪽 메뉴(1024px 이상에서만 보임) */
nav.side{display:none}
.side-brand{display:flex;align-items:center;gap:10px;padding:24px 16px 20px;color:#fff;text-decoration:none}
.side-brand img{width:36px;height:36px;border-radius:8px}
.side-brand b{display:block;font-size:17px;line-height:24px}
.side-brand small{display:block;color:#c9d2e3;font-size:14px;line-height:20px}
.side-menu{list-style:none;margin:0;padding:0 16px;display:flex;flex-direction:column;gap:6px}
.side-menu a,.side-menu button{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:48px;margin:0;padding:0 12px;border:0;border-radius:var(--r-sm);background:none;color:#fff;font:inherit;font-weight:700;text-decoration:none;text-align:left;cursor:pointer;box-shadow:none}
.side-menu a:hover{background:rgba(255,255,255,.08)}
.side-menu a[aria-current=page]{background:var(--navy-800);color:#fff;box-shadow:inset 3px 0 0 var(--white-a72)}
.side-menu .soon{color:#c9d2e3}
.side-menu .soon:hover{background:rgba(255,255,255,.05)}
.count{display:inline-block;min-width:24px;padding:0 8px;border-radius:999px;background:rgba(255,255,255,.14);font-size:14px;line-height:22px;text-align:center;font-weight:500}
.side-menu a[aria-current=page] .count{background:var(--white-a16);color:#fff}
.soon-tag{display:inline-block;padding:0 8px;border:1px solid currentColor;border-radius:999px;font-size:14px;line-height:20px;font-weight:500}
.side-user{margin:auto 16px 24px;padding:12px;border-radius:var(--r-md);background:rgba(255,255,255,.08);display:flex;align-items:center;gap:10px;color:#fff}
.side-user .ini{flex:none;width:32px;height:32px;border-radius:50%;background:var(--yellow);color:var(--navy);display:inline-flex;align-items:center;justify-content:center;font-weight:700}
.side-user .who{display:block;font-weight:700}
.side-user form{display:inline;margin:0}
.side-user button{display:inline;width:auto;min-height:0;margin:0;padding:0;background:none;border:0;color:#c9d2e3;font-size:14px;font-weight:500;text-decoration:underline;box-shadow:none;cursor:pointer}
.side-user small{color:#c9d2e3}

/* ---------------- 폼·버튼 */
label{display:block;margin:16px 0 6px;font-weight:700}
input,textarea{width:100%;font:inherit;font-size:17px;line-height:26px;min-height:56px;padding:14px 16px;border:1.5px solid var(--line);border-radius:var(--r-md);background:#fff;color:var(--ink)}
input::placeholder,textarea::placeholder{color:#6b7280}
input:focus,textarea:focus{border-color:var(--yellow);outline:2px solid var(--yellow);outline-offset:0;box-shadow:none}
input[readonly],textarea[readonly]{background:var(--page);border-color:transparent}
textarea{resize:vertical;min-height:120px}
input[type=checkbox],input[type=radio]{width:28px;height:28px;min-height:0;margin:0 12px 0 0;flex:none;vertical-align:middle;accent-color:var(--navy)}
button,.btn{display:flex;align-items:center;justify-content:center;width:100%;min-height:56px;font:inherit;font-size:18px;line-height:24px;font-weight:700;border:0;border-radius:var(--r-md);background:var(--navy);color:#fff;margin-top:14px;padding:14px 20px;text-align:center;text-decoration:none;cursor:pointer}
.btn.sub,button.sub{min-height:48px;font-size:17px;background:#fff;color:var(--navy);border:1.5px solid var(--navy)}
.btn.ghost{min-height:48px;background:none;color:var(--navy);font-size:17px}
.btn.danger,button.danger{min-height:48px;font-size:17px;background:#fff;color:var(--err);border:1.5px solid var(--err)}
button[disabled],.btn[disabled]{background:var(--subtle);color:var(--sub);border-color:var(--subtle);cursor:not-allowed}
button.copied,.btn.copied{background:var(--okbg);color:var(--ok);border-color:var(--okbg)}
.bottom{position:fixed;left:0;right:0;bottom:0;z-index:4;padding:12px 16px calc(16px + env(safe-area-inset-bottom));background:var(--surface);box-shadow:var(--shadow-bar)}
.bottom>*{max-width:448px;margin-left:auto;margin-right:auto}
.bottom .btn,.bottom button{margin-top:0}
.bottom .btn+.btn{margin-top:4px}
.bar-note{margin:0 auto 8px;text-align:center;font-size:14px;line-height:20px;color:var(--sub)}
.bottom form{margin:0 auto}

/* ---------------- 알림(배너·토스트·상태 칸) */
.err,.flash.err{background:var(--errbg);color:var(--err);padding:12px 16px;border-radius:var(--r-md);margin:0 0 12px;font-weight:700}
.flash.ok{background:var(--okbg);color:var(--ok);padding:12px 16px;border-radius:var(--r-md);margin:0 0 12px;font-weight:700}
.banner{padding:12px 16px;border-radius:var(--r-md);margin:0 0 10px;font-weight:700}
.banner.err{background:var(--errbg);color:var(--err)}
.banner.warn{background:var(--warnbg);color:var(--warn)}
.banner.info{background:var(--infobg);color:var(--info)}
.state{padding:14px 16px;border-radius:var(--r-md);margin:12px 0}
.state.ok{background:var(--okbg);color:var(--ok)}
.state.warn{background:var(--warnbg);color:var(--warn)}
.state.err{background:var(--errbg);color:var(--err)}
.state.info{background:var(--infobg);color:var(--info);border:1px solid var(--line)}
.state ul{margin:6px 0 0;padding-left:20px}
.toast{position:fixed;left:50%;bottom:calc(150px + env(safe-area-inset-bottom));transform:translateX(-50%);z-index:9;display:flex;align-items:center;gap:8px;max-width:calc(100% - 32px);padding:12px 20px;border-radius:999px;background:var(--navy);color:#fff;font-weight:700;box-shadow:0 6px 20px rgba(0,33,92,.25)}
.toast[hidden]{display:none}
.toast::before{content:"";width:20px;height:20px;border-radius:50%;background:var(--yellow);flex:none}

/* ---------------- 상태 배지(색 + 모양 + 글자) */
.chip{display:inline-flex;align-items:center;gap:6px;padding:4px 12px;border-radius:999px;font-size:15px;line-height:22px;font-weight:700;background:var(--s-generating-bg);color:var(--s-generating);white-space:nowrap;vertical-align:middle}
.chip img{width:16px;height:16px;flex:none}
.chip.s-ready{background:var(--s-ready-bg);color:var(--s-ready)}
.chip.s-approved{background:var(--s-approved-bg);color:var(--s-approved)}
.chip.s-sending{background:var(--s-sending-bg);color:var(--s-sending)}
.chip.s-checking{background:var(--s-checking-bg);color:var(--s-checking)}
.chip.s-posted{background:var(--s-posted-bg);color:var(--s-posted)}
.chip.s-failed{background:var(--s-failed-bg);color:var(--s-failed)}
.chip.s-manual_needed,.chip.s-interrupted{background:var(--s-attention-bg);color:var(--s-attention)}
.tag{display:inline-block;padding:0 8px;border-radius:6px;border:1px solid var(--line);color:var(--sub);background:#fff;font-size:14px;line-height:22px}
.ver{color:var(--sub);font-size:14px}

/* ---------------- 홈(초안함) */
.inbox-head h1{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;margin:0}
.seg{display:flex;gap:4px;padding:4px;margin:0 0 12px;border-radius:var(--r-md);background:var(--subtle)}
.seg>*{flex:1;display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;margin:0;padding:0 8px;border-radius:10px;font-size:17px;font-weight:700;background:none;color:var(--sub);border:0}
.seg .on{background:#fff;color:var(--navy);box-shadow:0 1px 2px rgba(0,33,92,.08)}
.seg .soon-tag{font-size:13px;line-height:18px}
.summary{background:var(--navy);color:#fff;border-radius:var(--r-lg);padding:18px 20px;margin:0 0 8px}
.summary .lead{margin:0;font-size:15px;line-height:22px;font-weight:500;color:#e6ebf4}
.summary .big{display:flex;align-items:baseline;gap:8px;margin:2px 0}
.summary .big b{font-size:32px;line-height:40px;letter-spacing:-.01em}
.summary .now{display:inline-block;padding:2px 10px;border-radius:999px;background:var(--yellow);color:var(--navy);font-size:15px;line-height:22px;font-weight:700}
.summary .sub{margin:0;font-size:14px;line-height:20px;color:#e6ebf4}
.sec-title{font-size:19px;line-height:27px;margin:20px 0 4px}
.card{position:relative;display:flex;gap:14px;align-items:center;background:#fff;border:2px solid transparent;border-radius:var(--r-lg);padding:14px;margin:12px 0;box-shadow:var(--shadow-card);text-decoration:none;color:inherit;min-height:104px}
.card[data-todo]{border-color:var(--yellow)}
.card:hover{border-color:var(--muted)}
.card[data-todo]:hover{border-color:var(--yellow)}
.card>img:first-child{width:72px;height:72px;object-fit:cover;border-radius:10px;background:var(--muted);flex:none}
.card .chev{width:20px;height:20px;flex:none}
.card-body{min-width:0;flex:1;display:flex;flex-direction:column;gap:4px}
.card-top{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.ctx{font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.meta{color:var(--sub);font-size:14px;line-height:20px}
.card-action{color:var(--navy);font-weight:700;font-size:15px;line-height:22px}
.empty{background:#fff;border-radius:var(--r-lg);padding:32px 24px 28px;text-align:center;color:var(--sub);margin-top:4px;display:flex;flex-direction:column;align-items:center;gap:12px}
.empty h2{margin:0;color:var(--ink);font-size:22px;line-height:30px}
.empty p{margin:0}
.tips{align-self:stretch;text-align:left;background:var(--page);border-radius:var(--r-md);padding:14px;color:var(--ink)}
.tips b{color:var(--navy);font-size:15px}
.tips ul{margin:6px 0 0;padding:0;list-style:none}
.tips li::before{content:"· "}
.filters{display:none}
.side-panel{display:none}

/* ---------------- 사진 올리기 */
.step{background:#fff;border-radius:var(--r-lg);padding:16px;margin:12px 0}
.step-h{display:flex;align-items:center;gap:10px;margin:0 0 10px;font-size:19px}
.num{display:inline-flex;align-items:center;justify-content:center;flex:none;width:28px;height:28px;border-radius:50%;background:var(--navy);color:#fff;font-size:15px;font-weight:700}
.num.done{background:var(--okbg);color:var(--ok)}
#s1.is-done{background:none;padding:0;margin-bottom:8px}
#s1.is-done .pick{display:none}
#s1.is-done #fileMsg:not(.bad){position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
#s1:not(.is-done) .num.done{display:none}
#s1.is-done .num:not(.done){display:none}
.bare{background:none;padding:0}
.photo-card{background:#fff;border-radius:var(--r-lg);padding:12px;box-shadow:var(--shadow-card)}
.photo-card .preview{margin:0 0 8px}
.photo-row{display:flex;align-items:center;justify-content:space-between;gap:8px}
.photo-row .note{margin:0;font-size:14px;line-height:20px}
.link-btn{flex:none;white-space:nowrap;display:inline-flex;align-items:center;min-height:48px;margin:0;padding:0 8px;font-size:17px;font-weight:700;color:var(--navy);cursor:pointer}
button.link-btn{width:auto;background:none;border:0;margin:0}
.check-card{display:flex;align-items:center;min-height:56px;margin:12px 0;padding:12px 16px;border:1.5px solid var(--navy);border-radius:var(--r-md);background:#fff;font-weight:700}
.step.done{text-align:center;padding:28px 16px}
.big-check{display:inline-flex;align-items:center;justify-content:center;width:80px;height:80px;border-radius:50%;background:var(--okbg);color:var(--ok);font-size:40px;line-height:1;margin:0 auto 8px}
.msg{font-weight:700;color:var(--ok);margin:10px 0}
.msg:empty{display:none}
.msg.bad{display:flex;gap:10px;align-items:flex-start;background:var(--errbg);color:var(--err);padding:14px 16px;border-radius:var(--r-md);margin:0 0 12px}
.msg.bad::before{content:"!";flex:none;width:22px;height:22px;margin-top:2px;border-radius:50%;background:var(--err);color:#fff;font-size:15px;line-height:22px;text-align:center}
.check,.radio{display:flex;align-items:center;font-weight:700;margin:12px 0;min-height:48px}
.preview{display:block;width:100%;border-radius:var(--r-md);background:var(--muted);margin:8px 0}
.thumb{display:block;width:120px;height:120px;object-fit:cover;border-radius:var(--r-md);margin:6px 0}

/* ---------------- 초안 확인(미리보기·승인) */
.status-line{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 14px;color:var(--sub);font-size:14px;line-height:20px}
.page-title{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;margin:0}
.approve{display:flex;flex-direction:column}
.ap-prev h2{margin-top:6px}
fieldset{border:0;border-radius:var(--r-md);padding:14px 16px;margin:0 0 14px;background:#fff;min-width:0}
legend{float:left;width:100%;padding:0;margin:0 0 10px;font-weight:700}
legend+*{clear:both}
.warns{background:var(--warnbg)}
.warns legend{color:var(--warn)}
.warns .check{background:#fff;border-radius:10px;padding:12px;margin:8px 0 0;font-weight:500;align-items:flex-start}
.warns .check small{color:var(--sub)}
.degree{background:none;padding:0;margin:14px 0 0}
.degree legend{font-size:15px;line-height:22px;font-weight:500;color:var(--sub);margin-bottom:8px}
.pills{display:flex;gap:8px}
.pill{position:relative;flex:1;display:flex;align-items:center;justify-content:center;min-height:48px;margin:0;padding:0 8px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--sub);font-weight:700;cursor:pointer;text-align:center}
.pill input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.pill:has(input:checked){background:var(--brand-tint);border:2px solid var(--navy);color:var(--navy)}
.pill:has(input:focus-visible){outline:3px solid var(--yellow);outline-offset:2px}
.ap-bar{position:fixed;left:0;right:0;bottom:0;z-index:4;padding:12px 16px calc(16px + env(safe-area-inset-bottom));background:var(--surface);box-shadow:var(--shadow-bar)}
.ap-bar>*{max-width:448px;margin-left:auto;margin-right:auto}
.ap-bar .btn{margin-top:0}
.lock-why{margin:0 auto 8px;text-align:center;font-size:14px;line-height:20px;font-weight:700;color:var(--warn)}
.ig{background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);overflow:hidden;margin:8px 0}
.ig-head{display:flex;align-items:center;gap:10px;padding:10px 12px}
.ig-avatar{width:32px;height:32px;border-radius:50%;flex:none;object-fit:cover}
.ig-head b{font-size:15px;line-height:20px}
.ig-photo{display:block;width:100%;height:auto;object-fit:contain;background:var(--muted)}
.ig-actions{padding:10px 12px 4px;line-height:0}
.ig-actions img{height:24px;width:334px;max-width:100%}
.ig-cap{padding:8px 12px 14px;font-size:17px;line-height:26px}
.ig-cap p{margin:0 0 8px;white-space:pre-wrap;word-break:break-word}
.ig-tags{color:var(--link)}
.locked{background:var(--subtle);border:1px dashed var(--line-strong);border-radius:10px;padding:10px 12px;margin:8px 0 0;color:var(--ink);font-size:14px;line-height:20px;white-space:normal}
.locked-h{display:flex;align-items:center;gap:6px;margin-bottom:4px;color:var(--sub);font-size:14px;font-weight:700}
.locked-h img{width:14px;height:14px}
.facts{display:grid;grid-template-columns:auto 1fr;gap:6px 14px;background:#fff;border-radius:var(--r-lg);padding:16px;margin:18px 0;font-size:15px;line-height:22px}
.facts dt{color:var(--sub)}
.facts dd{margin:0}
details.more{background:#fff;border-radius:var(--r-lg);margin:12px 0;padding:0 16px}
details.more summary{min-height:48px;display:flex;align-items:center;font-weight:700;cursor:pointer;color:var(--navy)}
details.more[open]{padding-bottom:12px}

/* ---------------- 게시 결과(완료 화면) */
.result{text-align:center;padding:16px 0 4px}
.result-icon{display:inline-flex;align-items:center;justify-content:center;width:80px;height:80px;border-radius:50%;margin:8px auto 12px}
.result-icon img{width:56px;height:56px}
.result-icon.ok{background:var(--okbg)}
.result-icon.checking{background:var(--s-checking-bg)}
.result-icon.sending{background:var(--s-sending-bg)}
.result-icon.generating{background:var(--s-generating-bg)}
.result h1{margin:0 0 4px}
.result .when{margin:0;color:var(--sub);font-size:15px}
.mini{display:flex;align-items:center;gap:12px;background:#fff;border-radius:var(--r-lg);padding:12px;margin:16px 0 12px;box-shadow:var(--shadow-card);text-align:left}
.mini>img:first-child{width:64px;height:64px;border-radius:10px;object-fit:cover;flex:none;background:var(--muted)}
.mini .ctx{margin-top:4px}
.next{background:var(--yellow-soft);border:1.5px solid var(--yellow);border-radius:var(--r-md);padding:14px 16px;margin:12px 0}
.next b{display:block;color:var(--navy);font-size:15px}
.next p{margin:4px 0 0}
.calm{background:var(--brand-soft);border:1px solid var(--line);border-radius:var(--r-md);padding:14px 16px;margin:12px 0}
.calm b{display:block;color:var(--navy);font-size:15px}
.calm p{margin:4px 0 0}

/* ---------------- 수동 게시·블로그 패키지 */
.steps{list-style:none;padding:0;margin:0}
.step-row{background:#fff;border-radius:var(--r-lg);padding:16px;margin:12px 0;box-shadow:var(--shadow-card)}
.step-head{display:flex;align-items:center;gap:10px;font-weight:700;font-size:19px;margin-bottom:10px}
.step-row textarea,.step-row input{min-height:0}
.pkg{background:#fff;border-radius:var(--r-lg);padding:4px 16px 16px;margin:12px 0}
.pkg .steps li{margin:12px 0;display:flex;flex-direction:column;gap:6px}
.inline-form{margin:12px 0}
.blog-lead{font-size:19px;line-height:27px;margin:4px 0 6px}

/* ---------------- 설정·관리 */
.set{background:#fff;border-radius:var(--r-lg);padding:4px 16px 16px;margin:12px 0}
.set h2{margin-top:14px}
code{font-size:15px;background:var(--subtle);padding:1px 4px;border-radius:4px}
.admin-grid{display:grid;gap:12px}
.admin-grid .set{margin:0}
.ok-line{color:var(--ok);font-weight:700}
.warn-line{color:var(--err);font-weight:700}
.check-box{border:1.5px solid var(--s-checking);background:#fff;border-radius:var(--r-lg);padding:16px;margin:12px 0}
.check-item{background:var(--page);border-radius:var(--r-md);padding:12px;margin-top:10px}
.check-item .mini{margin:0 0 8px;box-shadow:none;background:none;padding:0}
.behalf{list-style:none;margin:0;padding:0}
.behalf li{background:var(--page);border-radius:10px;padding:10px 12px;margin:8px 0;font-size:15px;line-height:22px}
.behalf li b{display:block}
.planned{border:1.5px dashed var(--line-strong);background:transparent;color:var(--sub)}
.planned h2{color:var(--sub)}
.planned .soon-tag{background:var(--yellow);color:var(--navy);border-color:var(--yellow);margin-left:6px;vertical-align:middle}

/* ---------------- 로그인 */
body:not(.has-side) main{max-width:440px}
.login-card{background:#fff;border-radius:var(--r-lg);padding:24px 20px;margin-top:32px;box-shadow:var(--shadow-card)}
.login-logo{display:flex;align-items:center;gap:10px;margin-bottom:8px}
.login-logo img{width:48px;height:48px;border-radius:10px}
.login-card h1{margin:0}

/* ---------------- 태블릿(641~1023px): 휴대폰 배치를 가운데 넓게 */
@media (min-width:641px){
  main{max-width:640px;padding-left:24px;padding-right:24px}
  .bottom>*,.ap-bar>*{max-width:592px}
}

/* ---------------- PC(1024px 이상): 240px 왼쪽 메뉴 + 2단 */
@media (min-width:1024px){
  body.has-side{padding-left:var(--side)}
  main .pc-only{display:flex}
  .status-line .chip{display:none}
  nav.side{display:flex;flex-direction:column;position:fixed;left:0;top:0;bottom:0;width:var(--side);background:var(--navy);z-index:6;overflow-y:auto}
  header.top{display:none}
  header.top.detail{display:flex;position:static;background:none;border:0;max-width:1200px;margin:0 auto;padding:16px 32px 0;min-height:0}
  header.top.detail .top-title{display:none}
  main{max-width:1200px;padding:24px 32px 48px}
  h1{font-size:28px;line-height:38px}
  .inbox-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}
  .inbox-head h1{position:static;width:auto;height:auto;overflow:visible;clip:auto;margin:0}
  .inbox-head .btn{width:auto;margin:0;min-height:48px;padding:0 20px}
  .seg{display:none}
  .filters:not([hidden]){display:flex;gap:8px;flex-wrap:wrap;margin:0 0 16px}
  .filters button{width:auto;min-height:44px;margin:0;padding:0 14px;border-radius:999px;background:#fff;color:var(--ink);border:1px solid var(--line);font-size:15px;font-weight:700}
  .filters button[aria-pressed=true]{background:var(--navy);color:#fff;border-color:var(--navy)}
  .inbox-cols{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:24px;align-items:start}
  .side-panel{display:block;position:sticky;top:24px}
  .side-panel .summary{margin-bottom:12px}
  .inbox-cols .summary.m-only,.inbox-cols .sec-title{display:none}
  .card{margin:0;border-radius:0;box-shadow:none;border:0;border-bottom:1px solid var(--line);min-height:84px;padding:12px 16px}
  .card[data-todo]{border:0;border-left:4px solid var(--yellow);border-bottom:1px solid var(--line);background:var(--brand-soft)}
  .card:hover,.card[data-todo]:hover{background:var(--brand-soft)}
  .card>img:first-child{width:56px;height:56px}
  .list{background:#fff;border-radius:var(--r-lg);overflow:hidden;box-shadow:var(--shadow-card)}
  .list .card:last-child{border-bottom:0}
  .bottom{position:static;box-shadow:none;background:none;padding:0 32px 48px;max-width:1200px;margin:0 auto}
  .bottom>*{max-width:420px;margin-left:0}
  body.home .bottom{display:none}
  .toast{bottom:32px;left:calc(50% + var(--side) / 2)}
  /* 승인 화면: 왼쪽 미리보기, 오른쪽 확인·승인 */
  .page-title{position:static;width:auto;height:auto;overflow:visible;clip:auto;white-space:normal;margin:4px 0 16px;font-size:24px;line-height:32px;display:flex;align-items:center;gap:10px}
  .status-line{margin-top:-8px}
  /* DOM 은 경고 → 미리보기 → 확인·승인(U12). 노랑 테두리 칸은 ::before 가 경고·확인 두 줄 뒤에 깔린다 */
  .approve{display:grid;grid-template-columns:minmax(0,400px) minmax(0,1fr);grid-template-rows:auto auto 1fr;column-gap:24px;align-items:start}
  .approve::before{content:"";grid-column:2;grid-row:1 / span 2;align-self:stretch;background:#fff;border:2px solid var(--yellow);border-radius:var(--r-lg)}
  .approve .ap-prev{grid-column:1;grid-row:1 / span 3}
  .approve .warns{grid-column:2;grid-row:1;margin:20px 20px 0}
  .approve .ap-rest{grid-column:2;grid-row:2;padding:4px 20px 20px}
  .approve:not(:has(.warns)) .ap-rest{padding-top:20px}
  .ap-bar{position:static;box-shadow:none;background:none;padding:8px 0 0}
  .ap-bar>*{max-width:none}
  .approve+.facts{max-width:400px}
  .detail-cols{display:grid;grid-template-columns:minmax(0,400px) minmax(0,1fr);gap:24px;align-items:start}
  .detail-cols>.col-main{grid-column:2;grid-row:1}
  .detail-cols>.col-prev{grid-column:1;grid-row:1 / span 2}
  .detail-cols>.facts{grid-column:2;margin:0}
  .result,.result~*{max-width:560px}
  .narrow{max-width:640px}
  .admin-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .admin-bottom{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:stretch}
  .admin-bottom .set{margin:0}
  .check-item{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);gap:16px;align-items:start}
  .check-item .mini{grid-row:1 / span 3}
  .steps.blog{display:grid;grid-template-columns:1fr 1fr;gap:16px}
  .steps.blog .step-row{margin:0}
  /* 작업 열(U14): 업로드·수정·게시 결과·블로그는 사진·폼·아래 버튼을 같은 720px 열에 맞춘다(뒤로 가기 링크도 같은 왼쪽 선) */
  body.work main{max-width:784px}
  body.work header.top.detail{max-width:784px}
  body.work .bottom{max-width:784px}
  body.work .bottom>*{max-width:none}
  body.work .narrow,body.work .result,body.work .result~*{max-width:none}
  body.work .steps.blog{display:block}
  body.work .steps.blog .step-row{margin:12px 0}
  body.work .photo-card .preview{max-height:540px;object-fit:contain}
}
/* ---------------- 성과 대시보드(Figma "04 성과 대시보드": KPI Tile·Insight Card·Filter Chip). 숫자는 표·축에 tabular-nums.
   차트 계열 색은 남색 하나 + 비교 회색(대비 2.5:1 → 값 라벨·범례·표로 보기 동반). 노랑은 강조(이벤트 띠·오늘 할 일)에만 */
select{font:inherit;font-size:17px;min-height:48px;padding:8px 12px;border:1.5px solid var(--line);border-radius:var(--r-md);background:#fff;color:var(--ink);max-width:100%}
select:focus{border-color:var(--yellow);outline:2px solid var(--yellow)}
.num-t,.n,.kpi-d,.chart text,.hbars .hb-v,table.ctable td{font-variant-numeric:tabular-nums}
.dash-head{display:flex;flex-direction:column;gap:10px;margin:0 0 12px}
.dash-head h1{margin:0}
.dh-title .note{margin:2px 0 0;font-size:14px;line-height:20px}
.period{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.fchip{display:inline-flex;align-items:center;min-height:40px;padding:0 16px;border-radius:999px;border:1px solid var(--line);background:#fff;color:var(--sub);font-size:15px;line-height:22px;font-weight:500;text-decoration:none;cursor:pointer;white-space:nowrap}
.fchip.on{background:var(--navy);border-color:var(--navy);color:#fff}
.fchip.ghost{border-style:dashed}
.fchip small{margin-left:4px;font-size:13px}
details.custom{position:relative}
details.custom>summary{list-style:none}
details.custom>summary::-webkit-details-marker{display:none}
.custom-f{position:absolute;z-index:7;top:48px;left:0;display:grid;gap:4px;width:260px;padding:12px 14px;background:#fff;border:1px solid var(--line);border-radius:var(--r-md);box-shadow:var(--shadow-card)}
.custom-f label{margin:4px 0 0;font-size:15px}
.custom-f input{min-height:44px;padding:8px 10px}
.head-acts{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.head-acts .btn{width:auto;margin:0;min-height:44px;padding:0 20px}
details.csv{position:relative}
details.csv summary{list-style:none;display:inline-flex;align-items:center;min-height:44px}
details.csv ul{position:absolute;z-index:7;right:0;top:44px;margin:0;padding:8px 0;list-style:none;background:#fff;border:1px solid var(--line);border-radius:var(--r-md);box-shadow:var(--shadow-card);min-width:180px}
details.csv li a{display:block;padding:10px 16px;font-weight:700;text-decoration:none}
.filterbar{display:flex;flex-wrap:wrap;gap:8px;align-items:flex-end;background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);padding:10px 14px;margin:0 0 16px}
.fb-l{flex-basis:100%;font-size:14px;color:var(--sub)}
.fsel{display:inline-flex;flex-direction:column;margin:0;font-size:13px;font-weight:500;color:var(--sub);gap:2px}
.fsel select,.fsel input{min-height:40px;padding:4px 10px;font-size:15px;border-radius:999px;border-width:1px}
.filterbar .btn{width:auto;margin:0;min-height:40px;padding:0 16px;font-size:15px}
.kpis{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0 0 20px}
.kpi{background:#fff;border-radius:var(--r-lg);padding:16px;box-shadow:var(--shadow-card);display:flex;flex-direction:column;gap:6px;min-width:0}
.kpi-l{margin:0;font-size:15px;line-height:22px;font-weight:500;color:var(--sub)}
.kpi-v{margin:0;display:flex;align-items:baseline;gap:4px;white-space:nowrap}
.kpi-v b{font-size:32px;line-height:40px;letter-spacing:-.01em}
.kpi-v span{color:var(--sub)}
.kpi-d,.kpi-n{margin:0;font-size:14px;line-height:20px;color:var(--sub)}
.kpi[data-kpi=consults]{border:2px solid var(--navy)}
.dash-sec{margin:0 0 20px}
.sec-h h2{display:inline;margin:0 8px 0 0}
.sec-h .note{display:inline;font-size:14px}
.sec-h{margin:0 0 10px}
.sec-h.row{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px}
.sec-h.row .note{display:block}
.insights{display:grid;gap:10px}
.insight{display:flex;gap:12px;align-items:flex-start;padding:16px;border-radius:var(--r-md);background:var(--warnbg)}
.insight.good{background:var(--okbg)}
.insight.info{background:var(--infobg);border:1px solid var(--line)}
.ic-i{flex:none;display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;background:var(--warn);color:#fff;font-size:15px;font-weight:700}
.insight.good .ic-i{background:var(--ok)}
.insight.info .ic-i{background:var(--info)}
.ic-b{min-width:0;display:flex;flex-direction:column;gap:4px}
.ic-t{margin:0;font-size:14px;line-height:20px;color:var(--warn)}
.insight.good .ic-t{color:var(--ok)}
.insight.info .ic-t{color:var(--info)}
.insight h3{margin:0;font-size:17px;line-height:26px}
/* 범위 표시(3절·Sol M6 재확인): 필터·기간을 바꾼 상태의 "전체 기준"은 눈에 띄게 */
.tag.scope-all-hot{background:var(--warnbg);color:var(--warn);border-color:var(--warn);font-weight:700}
.tag.scope-view{background:var(--infobg);color:var(--info);border-color:var(--info)}
.scope-warn{margin:8px 0 0;padding:8px 12px;border-left:4px solid var(--warn);border-radius:var(--r-md);background:var(--warnbg);color:var(--warn);font-size:14px;line-height:20px}
.ic-d{margin:0;font-size:14px;line-height:20px;color:var(--sub)}
.ic-a{font-size:15px;font-weight:500;color:var(--link)}
.ic-hide{margin:0}
.ic-hide .link-btn{min-height:32px;padding:0;font-size:14px;color:var(--sub);font-weight:500;text-decoration:underline}
.card-s{background:#fff;border-radius:var(--r-lg);padding:16px 18px;box-shadow:var(--shadow-card);margin:0 0 16px;min-width:0}
.card-s h2{margin:0 0 2px}
.card-s>.note{margin:0 0 12px;font-size:14px;line-height:20px}
.h3{font-size:17px;margin:16px 0 6px}
.goals{list-style:none;margin:0;padding:0}
.goals li{margin:0 0 14px}
.g-top{display:flex;justify-content:space-between;gap:8px}
.goals .note{margin:4px 0 0;font-size:14px;line-height:20px}
.prog{display:block;height:8px;border-radius:999px;background:var(--subtle);overflow:hidden;margin-top:6px}
.prog span{display:block;height:100%;background:var(--navy);border-radius:999px}
.more-f{margin:10px 0 0;border-top:1px solid var(--line)}
.more-f>summary{min-height:44px;display:flex;align-items:center;font-weight:700;color:var(--navy);cursor:pointer;font-size:15px}
.more-f label{font-size:15px;margin:10px 0 4px}
.more-f input{min-height:48px;padding:10px 12px}
.hbars{list-style:none;margin:6px 0;padding:0;display:flex;flex-direction:column;gap:8px}
.hbars li{display:grid;grid-template-columns:minmax(72px,34%) 1fr;align-items:center;gap:8px;font-size:15px;line-height:22px}
.hb-l{color:var(--sub);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hb-t{display:flex;align-items:center;gap:8px;min-width:0}
.hb-track{flex:1;min-width:0;display:block}
.hb-f{display:block;height:16px;border-radius:0 4px 4px 0;background:var(--navy)}
.hb-f.gray{background:var(--line-strong)}
.hb-v{white-space:nowrap;font-weight:700}
.hbars li.strong{background:var(--brand-soft);border-radius:8px;padding:4px 6px}
.conv{font-size:15px;line-height:22px;margin:8px 0}
.streak{margin:4px 0 10px;font-size:17px}
.streak b{font-size:32px;line-height:40px;margin-right:4px}
.rh-wrap{overflow-x:auto}
table.rhythm,table.dp{border-collapse:separate;border-spacing:3px;font-size:12px;line-height:16px}
table.rhythm th,table.dp th{font-weight:500;color:var(--sub);font-size:11px;white-space:nowrap}
table.rhythm td{width:18px;height:18px;text-align:center;background:var(--page);border-radius:3px;color:var(--navy);font-size:11px}
table.rhythm td.on{background:var(--brand-tint);font-weight:700}
table.rhythm td.fut{background:none}
table.rhythm .goal-row td{background:none;font-weight:700}
table.rhythm .st-done{color:var(--ok)}
table.rhythm .st-miss{color:var(--sub)}
.events{list-style:none;margin:10px 0 0;padding:10px 12px;background:var(--yellow-soft);border-radius:10px;font-size:14px;line-height:22px}
.events li{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.events form{margin:0 0 0 auto}
.events .link-btn{min-height:32px;font-size:14px;color:var(--sub);font-weight:500}
.channels{display:grid;gap:12px}
.ch{background:#fff;border-radius:var(--r-lg);padding:16px;box-shadow:var(--shadow-card);min-width:0}
.ch h3{margin:0 0 4px;font-size:17px}
.ch-v{margin:0}
.ch-v b{font-size:22px}
.ch .note{font-size:14px;line-height:20px;margin:4px 0}
.ch .off{color:var(--sub)}
.ch.soon{background:var(--subtle);box-shadow:none;color:var(--sub)}
.ch-empty{margin-top:12px;padding:24px 12px;border:1.5px dashed var(--line-strong);border-radius:var(--r-md);text-align:center;font-size:14px}
.fig{margin:8px 0}
.chart-wrap{overflow-x:auto}
svg.chart{display:block;max-width:none;height:auto;overflow:visible;flex-shrink:0}
.chart .bar{fill:var(--navy)}
.chart .bar.partial{fill:#fff;stroke:var(--navy);stroke-width:2;stroke-dasharray:4 3}
.chart .val{font-size:14px;fill:var(--ink);text-anchor:middle}
.chart .val.strong{font-weight:700;font-size:14px}
.chart .xl{font-size:12px;fill:var(--sub);text-anchor:middle}
.chart .yl{font-size:12px;fill:var(--sub);text-anchor:end}
.chart .miss{font-size:12px;fill:var(--sub);text-anchor:middle}
.chart .grid{stroke:var(--line);stroke-width:1}
.chart .ref{stroke:var(--line-strong);stroke-width:2;stroke-dasharray:6 4}
.chart .band{fill:var(--yellow-soft)}
.chart .band-t{font-size:12px;fill:var(--warn)}
.chart .hit{fill:transparent}
.chart .pt{outline:none}
.chart .pt:focus .hit,.chart .pt:hover .hit{fill:rgba(0,33,91,.06)}
.chart .pt:focus-visible .hit{stroke:var(--yellow);stroke-width:2}
.chart .main-line{fill:none;stroke:var(--navy);stroke-width:2}
.chart .ref-line{fill:none;stroke:var(--line-strong);stroke-width:2}
.chart .dot{fill:var(--navy);stroke:#fff;stroke-width:2}
.chart .end-l{font-size:12px;fill:var(--sub)}
.legend{margin:4px 0;font-size:13px;line-height:18px;color:var(--sub);display:flex;flex-wrap:wrap;gap:4px 10px;align-items:center}
.key{display:inline-block;width:12px;height:10px;margin-right:4px;vertical-align:middle}
.bar-key{background:var(--navy);border-radius:2px}
.ref-key{height:0;border-top:2px dashed var(--line-strong)}
.line-key{height:0;border-top:2px solid var(--navy)}
.part-key{border:2px dashed var(--navy);border-radius:2px}
details.tbl summary{display:inline-flex;min-height:36px;align-items:center;font-size:14px;font-weight:700;color:var(--navy);cursor:pointer}
details.tbl table,table.ctable{border-collapse:collapse;width:100%;font-size:14px;line-height:20px}
table.ctable{min-width:900px}
table.ctable td:nth-child(2){min-width:180px}
details.tbl th,details.tbl td{padding:4px 8px;border-bottom:1px solid var(--line);text-align:left}
.chart-tip{position:fixed;z-index:20;pointer-events:none;background:var(--ink);color:#fff;font-size:14px;line-height:20px;padding:6px 10px;border-radius:8px;max-width:260px}
.top3{list-style:none;margin:0 0 12px;padding:0;display:grid;gap:8px}
.top3 li{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:var(--r-md);padding:10px 12px}
.top3 .rank{flex:none;display:inline-flex;align-items:center;justify-content:center;min-width:40px;height:32px;border-radius:999px;background:var(--subtle);font-weight:700;font-size:14px}
.top3 li:first-child .rank{background:var(--yellow);color:var(--navy)}
.top3 a{display:flex;align-items:center;gap:10px;text-decoration:none;color:inherit;min-width:0}
.top3 img{width:48px;height:48px;border-radius:8px;object-fit:cover;flex:none;background:var(--muted)}
.top3 a>span{display:flex;flex-direction:column;min-width:0}
.top3 small{color:var(--sub);font-size:14px;line-height:20px}
.daypart{margin:0 0 12px}
table.dp td{min-width:56px;padding:4px;text-align:center;background:var(--page);border-radius:4px;font-size:13px}
table.dp td small{display:block;color:var(--sub);font-size:11px}
table.dp td.cand{background:var(--brand-tint);font-weight:700}
table.dp th small{display:block}
.tbl-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:var(--r-md)}
table.ctable th{font-size:13px;font-weight:500;color:var(--sub);text-align:left;padding:8px;border-bottom:1px solid var(--line);white-space:nowrap}
table.ctable td{padding:10px 8px;border-bottom:1px solid var(--line);vertical-align:top}
table.ctable td small{display:block;color:var(--sub);font-size:13px}
table.ctable .n{text-align:right}
table.ctable tr.collecting{background:var(--page)}
.collecting-chip{background:var(--s-generating-bg)}
.dash-row{display:grid;gap:0}
.minis{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.minis>div{background:var(--page);border-radius:var(--r-md);padding:12px;display:flex;flex-direction:column}
.minis span,.minis small{font-size:13px;line-height:18px;color:var(--sub)}
.minis b{font-size:20px;line-height:28px}
.conn{list-style:none;margin:0;padding:0}
.conn li{display:grid;grid-template-columns:28px minmax(0,1fr);gap:2px 8px;padding:10px 0;border-bottom:1px solid var(--line);align-items:center}
.conn li .note,.conn li form{grid-column:2;font-size:14px;line-height:20px;margin:0}
.ci{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;border:2px solid var(--line-strong);color:var(--sub);font-size:13px;font-weight:700}
.ci.ok{border-color:var(--ok);color:var(--ok)}
.ci.bad{border-color:var(--warn);color:var(--warn);background:var(--warnbg)}
.conn .link-btn{min-height:32px;font-size:14px;padding:0}
.crumb{margin:0 0 10px}
.crumb a{font-weight:700;text-decoration:none}
.cd-head{display:flex;flex-direction:column;gap:12px}
.cd-head img{width:120px;height:120px;object-fit:cover;border-radius:var(--r-md);background:var(--muted)}
.cd-head h1{margin:0 0 4px}
.labels-f{display:flex;flex-wrap:wrap;gap:8px;align-items:flex-end;margin:8px 0}
.labels-f .btn{width:auto;margin:0;min-height:40px;padding:0 14px;font-size:15px}
.labels-f .note{flex-basis:100%;margin:0;font-size:14px}
.links{display:flex;flex-wrap:wrap;gap:6px 16px;margin:6px 0 0}
.links a{font-weight:700;text-decoration:none}
.kpis.five .kpi-v b{font-size:28px}
.hist{list-style:none;margin:0;padding:0}
.hist li{display:flex;flex-wrap:wrap;gap:4px 12px;padding:6px 0;font-size:15px;line-height:22px}
.hist .num-t{color:var(--sub);min-width:84px}
.labels-ap{background:#fff;border-radius:var(--r-md);margin:12px 0 0;padding:0 12px}
.labels-ap summary{min-height:44px;display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-weight:700;font-size:15px;cursor:pointer;color:var(--navy)}
.labels-ap summary small{color:var(--sub);font-weight:500}
.labels-row{display:grid;gap:4px;padding:0 0 12px}
.labels-row label{margin:6px 0 2px;font-size:15px}
.labels-row input{min-height:48px;padding:10px 12px}
.seg-link a{text-decoration:none}
.week-page .note{font-size:15px}
.wk-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0 0 12px}
.kpi.wk p{margin:0;font-size:15px;line-height:22px}
.segs{display:flex;gap:4px;margin:4px 0}
.segs span{flex:1;height:8px;border-radius:4px;background:var(--subtle)}
.segs span.on{background:var(--navy)}
.best-a{display:flex;gap:12px;align-items:center;text-decoration:none;color:inherit}
.best-a img{width:80px;height:80px;border-radius:10px;object-fit:cover;flex:none;background:var(--muted)}
.best-a>span{display:flex;flex-direction:column}
.todo{background:#fff;border:2px solid var(--yellow);border-radius:var(--r-lg);padding:14px 16px;margin:0 0 16px}
.todo h2{margin:0 0 6px}
.todo ol{list-style:none;margin:0;padding:0}
.todo li{display:flex;justify-content:space-between;gap:8px;align-items:center;min-height:48px}
.todo li a{flex:none;font-weight:700;font-size:15px;text-decoration:none}
.last-week{border:1.5px solid var(--navy)}
.last-week ul{margin:4px 0;padding-left:20px}
.consult-f .pills.wrap{flex-wrap:wrap}
.pills.wrap .pill{flex:1 1 30%}
.cons-list{list-style:none;margin:0;padding:0}
.cons{display:flex;flex-wrap:wrap;gap:6px 12px;align-items:flex-end;padding:12px 0;border-bottom:1px solid var(--line)}
.cons>div{flex:1 1 100%}
.cons small{display:block;color:var(--sub)}
.cons form{margin:0}
.res-f{display:flex;gap:6px;align-items:flex-end}
.res-f .btn{width:auto;margin:0;min-height:40px;padding:0 12px;font-size:15px}
.danger-t{color:var(--err)!important;font-size:15px}
.weeks{display:flex;gap:6px;overflow-x:auto;padding:4px 0 8px}
.mi{background:none;padding:0;margin:12px 0}
.mi legend{font-size:17px}
.mi .note{margin:0 0 6px;font-size:14px}
.mi input[name=place_keywords]{margin:0 0 6px}
@media (min-width:641px){
  .kpis{grid-template-columns:repeat(3,minmax(0,1fr))}
  .insights{grid-template-columns:repeat(2,minmax(0,1fr))}
  .channels{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (min-width:1024px){
  .dash-head{flex-direction:row;align-items:flex-start;justify-content:space-between;flex-wrap:wrap}
  .dash-head .period{flex:1;justify-content:center}
  .fb-l{flex-basis:auto;align-self:center;margin-right:4px}
  .kpis{grid-template-columns:repeat(6,minmax(0,1fr))}
  .kpis.five{grid-template-columns:repeat(5,minmax(0,1fr))}
  .insights{grid-template-columns:repeat(4,minmax(0,1fr))}
  .dash-row.three{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:start}
  .dash-row.two{grid-template-columns:1fr 1fr;gap:16px;align-items:start}
  .channels{grid-template-columns:repeat(4,minmax(0,1fr))}
  .top3{grid-template-columns:repeat(3,minmax(0,1fr))}
  .cd-head{flex-direction:row;align-items:flex-start}
  .cd-head img{width:160px;height:160px}
  .cd-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);gap:16px;align-items:start}
  .labels-row{grid-template-columns:1fr 1fr 1.4fr;gap:8px}
  body.week-page main{max-width:640px}
  body.week-page .bottom{max-width:640px}
  body.week-page .bottom>*{max-width:none}
  body.week-page .seg{display:flex}
  .minis{grid-template-columns:repeat(4,1fr)}
}
@media (prefers-reduced-motion:no-preference){.card,.btn,button{transition:background-color .15s,border-color .15s}}

/* UX 1차: 사진 전체 검수, 역할별 요약, 읽을 수 있는 차트·조작 영역 */
input:focus,textarea:focus,select:focus{border-color:var(--yellow);outline:3px solid var(--navy);outline-offset:2px;box-shadow:0 0 0 2px var(--yellow)}
.mobile-nav{display:flex;flex-wrap:wrap;gap:4px;padding:4px 16px;background:var(--surface);border-bottom:1px solid var(--line)}
.mobile-nav a{display:inline-flex;align-items:center;min-height:48px;padding:0 10px;text-decoration:none;font-size:15px}
.mobile-nav [aria-current]{font-weight:700;border-bottom:3px solid var(--navy)}
.mobile-nav small{font-size:11px;margin-left:4px}
.home .seg-link,.week-page .seg-link{display:none}
.next-work{margin:12px 0}.next-work summary{min-height:48px;cursor:pointer}.next-work .card{margin-top:8px}.more-list summary{min-height:48px;display:flex;align-items:center;cursor:pointer;font-weight:600}
#sync-status{padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--yellow-soft)}
#sync-status button,#sync-status a{display:inline-flex;align-items:center;min-height:48px;margin-left:8px}
.ig-actions{display:none}.ig-tags{font-size:15px;color:var(--sub)}
.director-summary{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:12px}
.director-summary .kpi{padding:12px;margin:0}.director-summary .kpi-v{margin:4px 0}.director-summary .kpi-n{margin:2px 0;font-size:13px;line-height:18px}
.director-summary .kpi-v b{font-size:30px}.director-summary .channel-goal{grid-column:1/-1}
.director-summary .kpi-d{margin:2px 0;font-size:14px}.director-summary h3{font-size:16px}
.director-details>summary,.director-filters>summary{min-height:48px;display:flex;align-items:center;cursor:pointer;font-weight:700}
.channel-line{display:flex;justify-content:space-between;gap:8px;margin:6px 0;flex-wrap:wrap}
.channel-line small{font-size:14px}.channel-goal .note{margin:4px 0}
.dash-row>*,.dash-sec,.card-s,.chart-wrap,.fig{min-width:0;max-width:100%}
.chart-wrap{padding:8px 0}.tbl{overflow-x:auto}.rhythm-table{font-size:14px}
@media(max-width:1023px){.fchip,.fsel select,.filterbar .btn,details.tbl summary,.todo li a,.link-btn{min-height:48px}.todo li a{display:inline-flex;align-items:center}.todo li{flex-wrap:wrap}.filterbar input{min-height:48px}}
@media(min-width:1024px){.mobile-nav{display:none}.director-summary{grid-template-columns:1fr 1fr 1.5fr}.director-summary .channel-goal{grid-column:auto}}
.director-summary .kpi{gap:2px}
.director-summary .channel-line{margin:3px 0}
table.rhythm th,table.dp th{font-size:12px}table.rhythm td{font-size:14px;min-width:24px}

/* UX 후속(2026-10-03): U11 오류 필드, U12 파일 포커스, U15 단계 펼침, U19 필터 결과, B4 휴대폰 승인 줄 */
.field-err{margin:6px 0 0;color:var(--err);font-weight:700;font-size:15px;line-height:22px}
[aria-invalid=true]{border-color:var(--err)}
#up:has(#file:focus-visible) label[for=file]{outline:3px solid var(--navy);outline-offset:2px;box-shadow:0 0 0 5px var(--yellow)}
details.peek{margin:8px 0 0}
details.peek summary{min-height:48px;display:flex;align-items:center;font-weight:700;color:var(--navy);cursor:pointer}
details.peek textarea{margin-top:4px}
.step-head .now-copied{display:none;margin-left:auto;padding:0 10px;border-radius:999px;background:var(--okbg);color:var(--ok);font-size:14px;line-height:22px}
.step-row.is-current{box-shadow:inset 4px 0 0 var(--ok),var(--shadow-card)}
.step-row.is-current .now-copied{display:inline-block}
details.opt summary{color:var(--navy)}
.set details.opt{padding:0;margin:8px 0}
.filter-count{margin:0 0 8px;font-size:15px;line-height:22px;color:var(--sub)}
.filter-empty{background:#fff;border-radius:var(--r-lg);padding:12px 16px 16px;margin:0 0 16px;box-shadow:var(--shadow-card)}
.filter-empty button{width:auto;min-height:48px;padding:0 20px;margin-top:4px}
.list.is-empty{display:none}
.list.filtering details>summary,.list.filtering details>.note,.list.filtering details>.btn,.list.filtering>.btn,.list.filtering>.note{display:none}
@media (max-width:1023px){
  .ig-photo{width:auto;max-width:100%;max-height:min(calc(100vw - 34px),60vh);margin:0 auto}
  .ap-bar{padding:8px 16px calc(12px + env(safe-area-inset-bottom))}
  .ap-bar .bar-note,.ap-bar .lock-why{margin-bottom:4px}
  /* B4(Sol 후속 수정급 1): 승인 첫 화면(스크롤 0)에서 캡션 두 줄이 고정 승인 줄 위에 보이게. 사진은 비율 유지·잘림 없이 높이 상한만 화면 높이에 맞춘다.
     상한 = 화면 높이 − (사진 위 내용: 상단 바·탭·상태 줄·경고 1개·제목·계정 줄 399px) − 캡션 위 여백 8 − 캡션 두 줄 52 − 승인 줄 100 − 글꼴 차 여유 6 = 100svh − 565px.
     경고가 없으면 사진 위 내용이 152px 줄어 상한도 그만큼 크다. 아주 낮은 화면에서도 사진은 200px 아래로 줄이지 않는다(그때는 스크롤) */
  .status-line:has(+.approve){margin-bottom:10px}
  .approve .warns{margin-bottom:12px}
  .approve .ap-prev h2{margin:0 0 6px}
  .approve .ig{margin-top:0}
  .approve .ig-head{padding:6px 12px}
  .approve .ig-photo{max-height:min(calc(100vw - 34px),max(200px,calc(100vh - 565px)));max-height:min(calc(100vw - 34px),max(200px,calc(100svh - 565px)))}
  .approve:not(:has(.warns)) .ig-photo{max-height:min(calc(100vw - 34px),max(200px,calc(100vh - 413px)));max-height:min(calc(100vw - 34px),max(200px,calc(100svh - 413px)))}
}
/* Sol 2차 V02: 승인 화면 배치는 static/approve-fit.js 가 경고·배너 높이를 재서 사진만 줄이고(ap-fitted), 그래도 원고 첫 두 줄이 승인 줄에 가리면 승인 줄을 원고 아래 흐름으로(ap-inline) */
@media (max-width:1023px){
  .approve.ap-fitted .ig-photo{cursor:zoom-in}
  .approve .ig-photo[data-fit-expanded]{max-height:none;cursor:zoom-out}
  .approve.ap-inline .ap-bar{position:static;box-shadow:none;background:none;padding:12px 0 0}
  .approve.ap-inline .ap-bar>*{max-width:none}
}
/* Sol 2차 V05·V07: 채널별 상태 한 줄, 이 글에 없는 표시사항 칸 */
.channels{margin:4px 0 0;font-size:15px;line-height:22px;color:var(--sub);font-weight:500}
.result .channels{margin-top:8px}
.locked.off{border-style:dotted;background:#fff}
.blog-review dd.pre{white-space:pre-wrap;word-break:break-word}
#photoRatio{margin:8px 0 0}

/* ---------------- 캡션 스타일 1단계(D1 스타일 줄·D2 안 고르기·설정·업로드). 색은 기존 체계만(남색 주 버튼, 노랑은 강조) */
.style-row{margin:10px 0 0}
.style-row .note{margin:0 0 6px;font-size:15px;line-height:22px}
.btn-pair{display:flex;gap:8px}
.btn-pair>*{flex:1;margin-top:0}
.btn-pair .btn.sub{padding:10px 8px}
.degree-hint{margin:0 0 8px;font-size:14px;line-height:20px}
.alt-list{margin-top:8px}
.alt-card{background:#fff;border:1.5px solid var(--line);border-radius:var(--r-lg);padding:12px 14px;margin:12px 0}
.alt-card.is-current{border:2px solid var(--navy);background:var(--brand-soft)}
.alt-h{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.alt-h small{font-size:14px}
.alt-text{margin:8px 0;white-space:pre-wrap;word-break:break-word;font-size:17px;line-height:26px}
.alt-lead{margin:6px 0 0;font-size:16px;line-height:24px;color:var(--ink)}
.alt-card:has(.alt-peek[open]) .alt-lead{display:none}
.alt-card form{margin:0}
.style-list{border:0;margin:0;padding:0}
.style-opt{align-items:flex-start;margin:8px 0;padding:10px 12px;border:1px solid var(--line);border-radius:var(--r-md);background:#fff;font-weight:500}
.style-opt:has(input:checked){border:2px solid var(--navy);background:var(--brand-tint)}
.style-opt input{margin-top:2px}
.style-opt small.note{font-size:14px;line-height:20px}
details.style-pick{margin:10px 0 0}
details.style-pick summary{min-height:48px;display:flex;align-items:center;gap:6px;cursor:pointer;color:var(--sub)}
details.style-pick summary small{color:var(--navy);font-weight:700;text-decoration:underline}
details.style-pick select{width:100%}
