/* air-web-studio — 콘솔 전용 스타일. 토큰은 tokens.css(단일 출처)에서 온다. */

/* 다크 토큰은 tokens.css 의 #shell 규칙이 담당. 아래는 다크에서 추가로 필요한 요소별 조정만. */
#shell #main{ background:var(--canvas); }
#shell input,#shell select,#shell textarea{ background:var(--deep); color:var(--ink); border-color:var(--line-strong); }
#shell table.dtab th{ color:var(--ink-mut); }
#shell .badge{ background:var(--chip); color:var(--ink-mut); }
#shell .badge.brand{ background:var(--brand-050); color:var(--brand); }
#shell .card{ background:transparent; border:1px solid var(--line); }

*{ box-sizing:border-box; }
html,body{ min-height:100%; }
body{
  margin:0; font-family:var(--font); color:var(--ink); background:var(--canvas);
  font-size:14px; line-height:1.5; min-width:1280px;
}
a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; }

/* ---- Shell ---- */
#shell{ display:flex; flex-direction:column; min-height:100vh; color:var(--ink); }   /* 다크 스코프 기본 텍스트색 — 색 미지정 요소 상속 */
#header{
  height:60px; flex:0 0 60px; display:flex; align-items:center; gap:12px;
  padding:0 20px; background:var(--surface); border-bottom:1px solid var(--line);
}
#header .logo{ font-weight:700; font-size:16px; color:var(--brand); display:flex; align-items:center; gap:8px; }
#header .logo .badge{ background:var(--brand-050); color:var(--brand-600); font-size:11px; padding:2px 8px; border-radius:99px; }
#header .spacer{ flex:1; }
#header .who{ color:var(--ink-mut); font-size:13px; }
#header button.ghost{
  background:transparent; border:1px solid var(--line); color:var(--ink); border-radius:8px;
  padding:6px 12px; cursor:pointer; font-size:13px;
}
#header button.ghost:hover{ background:var(--canvas); }

#body{ flex:1; display:flex; align-items:stretch; }   /* 개별 스크롤 없음 — 페이지 전체가 함께 스크롤 */

#sidebar{
  width:236px; flex:0 0 236px; background:var(--side-bg); color:var(--side-fg);
  padding:12px 0 24px;
}
#sidebar .nav-group{ margin-bottom:6px; }
#sidebar .nav-group-title{
  padding:14px 20px 6px; font-size:11px; letter-spacing:.06em; text-transform:uppercase;
  color:var(--side-mut); font-weight:700;
}
#sidebar .nav-item{
  display:flex; align-items:center; gap:8px; padding:8px 20px; font-size:13.5px;
  color:var(--side-fg); cursor:pointer; border-left:3px solid transparent;
}
#sidebar .nav-item:hover{ background:rgba(255,255,255,.05); }
#sidebar .nav-item.active{
  background:rgba(0,102,255,.16); border-left-color:var(--side-active); color:#fff; font-weight:600;
}
#sidebar .nav-item .dot{ width:6px; height:6px; border-radius:50%; flex:0 0 6px; }
#sidebar .nav-item .dot.wired{ background:var(--ok); }
#sidebar .nav-item .dot.stub{ background:var(--side-mut); }
#sidebar .nav-item .ttl{ flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

#main{ flex:1; padding:24px 86px; min-width:0; }   /* GUI 실측: 좌우 86 (사이드바 182 + 86 = 콘텐츠 시작 268) */
#view{ max-width:1565px; }   /* GUI 실측: 콘텐츠 내부 폭 (카드 380x4+15x3 = 표 폭과 동일) */

/* ---- Cards / typography ---- */
.card{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius);
  padding:20px; margin-bottom:var(--gap);
}
.page-head{ margin-bottom:16px; }
.page-head h1{ font-size:20px; margin:0 0 4px; color:var(--ink); }
.page-head .crumb{ color:var(--ink-mut); font-size:12.5px; }
.page-desc{ color:var(--ink-mut); font-size:13.5px; margin:8px 0 0; }
h2.section-title{ font-size:14px; margin:0 0 12px; color:var(--ink-mut); text-transform:uppercase; letter-spacing:.04em; }
.muted{ color:var(--ink-mut); }
.dim{ color:var(--ink-dim); font-size:12.5px; }

/* ---- Forms ---- */
label{ display:block; color:var(--ink-mut); font-size:12px; margin:10px 0 4px; }
input,select,textarea{
  background:var(--surface); border:1px solid var(--line); color:var(--ink);
  border-radius:8px; padding:8px 10px; width:100%; font-size:13.5px; font-family:inherit;
}
input:focus,select:focus,textarea:focus{ outline:2px solid var(--brand-050); border-color:var(--brand); }
.row{ display:flex; gap:10px; align-items:flex-end; flex-wrap:wrap; }
.row > *{ flex:1; min-width:160px; }

button.btn{
  background:var(--brand); color:#fff; border:0; border-radius:8px; padding:9px 16px;
  cursor:pointer; font-weight:600; font-size:13.5px;
}
button.btn:hover{ background:var(--brand-600); }
button.btn.ghost{
  background:transparent; border:1px solid var(--line); color:var(--ink); font-weight:500;
}
button.btn.ghost:hover{ background:var(--canvas); }
button.btn.sm{ padding:5px 10px; font-size:12.5px; }
button.btn[disabled]{ opacity:.5; cursor:not-allowed; }

/* ---- Table ---- */
table.dtab{ width:100%; border-collapse:collapse; font-size:13px; }
table.dtab th,table.dtab td{ text-align:left; padding:9px 10px; border-bottom:1px solid var(--line); vertical-align:middle; }
table.dtab th{ color:var(--ink-mut); font-weight:600; font-size:12px; text-transform:uppercase; letter-spacing:.02em; }
table.dtab tr:last-child td{ border-bottom:0; }

/* ---- Badges ---- */
.badge{ display:inline-block; padding:2px 10px; border-radius:99px; font-size:12px; background:var(--canvas); color:var(--ink-mut); }
.badge.ok{ background:rgba(18,183,106,.12); color:var(--ok); }
.badge.warn{ background:rgba(247,144,9,.12); color:var(--warn); }
.badge.err{ background:rgba(240,68,56,.12); color:var(--err); }
.badge.info{ background:rgba(46,144,250,.12); color:var(--info); }
.badge.brand{ background:var(--brand-050); color:var(--brand-600); }

/* ---- Status text colors (studio pipeline) ---- */
.st-uploading,.st-analysis_pending{ color:var(--warn); }
.st-analyzed,.st-editing{ color:var(--info); }
.st-draft_ready,.st-approved{ color:var(--ok); }
.st-rejected{ color:var(--err); }
.st-in_review,.st-edit_done{ color:var(--warn); }

/* ---- Error / loading ---- */
.err-box{ background:rgba(240,68,56,.08); border:1px solid rgba(240,68,56,.3); color:var(--err); border-radius:8px; padding:12px 14px; font-size:13px; }
.loading{ color:var(--ink-mut); font-size:13px; padding:8px 0; }

/* ---- Stub page ---- */
.stub-panel{
  border:1px dashed var(--line); border-radius:var(--radius); padding:24px; background:var(--canvas);
  text-align:center; color:var(--ink-mut); margin-top:12px;
}
.stub-panel .big{ font-size:28px; margin-bottom:8px; }
.tbd-note{
  background:rgba(247,144,9,.08); border:1px solid rgba(247,144,9,.3); border-radius:8px;
  padding:10px 14px; font-size:12.5px; color:#8a5a00; margin:12px 0; /* GUI tbd 경고 텍스트 고정색 */
}
.dep-badges{ display:flex; gap:8px; margin:8px 0; }

/* ---- Login page — UI 정본 7:12088/12138/12189 (1440 폭) ----
   구조·정렬·여백은 UI 파일 계측값. GUI 미제공 → 색은 토큰만. */
#login-page{ min-height:100%; display:flex; flex-direction:column; background:var(--canvas); }

/* 헤더 — 로고 없음. 메뉴 가운데, 로그인/도입문의는 우측 버튼. */
#lp-header{ background:var(--surface); border-bottom:1px solid var(--line); flex:0 0 auto; }
.lp-hbar{ height:44px; display:flex; align-items:center; padding:0 20px; }
.lp-hside{ flex:1; display:flex; }
.lp-hright{ justify-content:flex-end; gap:8px; }
.lp-nav{ display:flex; gap:36px; font-size:14px; color:var(--ink); }
.lp-hbtn{
  background:var(--surface); border:1px solid var(--line); color:var(--ink);
  border-radius:4px; padding:5px 14px; font-size:11.5px; cursor:pointer; font-family:inherit;
}
.lp-hbtn.on{ border-color:var(--brand); color:var(--brand); }
.lp-hbtn:hover{ background:var(--canvas); }

/* 본문 — 회색 캔버스 위 320px 컬럼(카드 없음), 내용은 왼쪽 정렬. */
#lp-main{ flex:1; display:flex; justify-content:center; padding:136px 20px 80px; }
.lp-col{ width:320px; }
.lp-col h2{ font-size:15px; margin:0 0 6px; font-weight:600; }
.lp-desc{ color:var(--ink-mut); font-size:12px; margin:0 0 22px; line-height:1.6; }
.lp-col label{ display:block; color:var(--ink); font-size:13px; margin:0 0 6px; }
.lp-col input[type=email],.lp-col input[type=password],.lp-col input[type=tel]{
  width:100%; padding:11px 12px; font-size:13.5px; border:1px solid var(--ink-dim);
  border-radius:6px; background:var(--surface);
}
#lp-step1 label[for=lp-pw]{ margin-top:18px; }

.lp-pwwrap{ position:relative; }
.lp-eye{
  position:absolute; right:10px; top:50%; transform:translateY(-50%);
  background:none; border:0; cursor:pointer; font-size:14px; opacity:.55; padding:0;
}

.lp-row{ display:flex; align-items:center; justify-content:space-between; margin-top:10px; }
.lp-check{ display:flex; align-items:center; gap:6px; margin:0; color:var(--ink-mut); font-size:12px; }
.lp-check input{ width:auto; margin:0; }
.lp-link{ color:var(--ink-mut); cursor:pointer; font-size:12px; }
.lp-link.ul{ color:var(--brand); text-decoration:underline; }
.lp-link:hover{ text-decoration:underline; }
.lp-time{ color:var(--ink-mut); font-size:12px; }

.lp-btn{
  width:100%; margin-top:18px; padding:13px 16px; border:0; border-radius:6px;
  background:var(--brand); color:#fff; font-weight:600; font-size:13.5px;
  cursor:pointer; font-family:inherit;
}
.lp-btn:hover{ background:var(--brand-600); }
.lp-btn[disabled]{ opacity:.5; cursor:not-allowed; }
.lp-btn.ghost{
  background:var(--surface); border:1px solid var(--ink-dim); color:var(--ink);
  font-weight:500; margin-top:8px; display:flex; align-items:center; justify-content:center; gap:8px;
}
.lp-btn.ghost:hover{ background:var(--canvas); }
.lp-gicon{
  width:17px; height:17px; border-radius:50%; background:var(--surface); border:1px solid var(--line);
  font-size:11px; font-weight:700; color:var(--brand); display:inline-flex;
  align-items:center; justify-content:center; flex:0 0 auto;
}

.lp-note{ color:var(--ink-mut); font-size:12px; margin:16px 0 0; line-height:1.6; }
.lp-hint{ color:var(--ink-mut); font-size:11.5px; margin:8px 0 0; line-height:1.6; }
.lp-back{ margin:10px 0 0; }

.lp-phone{ display:flex; gap:10px; }
.lp-phone select{
  flex:0 0 92px; padding:11px 8px; font-size:13px; border:1px solid var(--ink-dim);
  border-radius:6px; background:var(--surface); font-family:inherit;
}

/* 인증 코드 — 개별 박스 6개 */
.lp-otp{ display:flex; gap:8px; }
.lp-otp input{
  width:44px; height:42px; text-align:center; font-size:16px; font-weight:600;
  border:1px solid var(--ink-dim); border-radius:6px; background:var(--surface); padding:0;
}
.lp-otp input:focus{ outline:2px solid var(--brand-050); border-color:var(--brand); }

/* 검증 실패 — 입력란 border + 하단 안내문구 (UI 7:12291) */
.lp-fmsg{ color:var(--err); font-size:12px; margin:6px 0 0; line-height:1.5; }
.lp-col input.err, .lp-otp input.err{ border-color:var(--err); }
.lp-col input.err:focus{ outline-color:rgba(240,68,56,.18); }

/* Footer — 흰 배경, 1130 컬럼(1440 기준 좌 155에서 시작), 왼쪽 정렬 */
#lp-footer{ background:var(--surface); border-top:1px solid var(--line); flex:0 0 auto; padding:56px 20px 40px; }
.lp-finner{ max-width:1130px; margin:0 auto; }
.lp-fgrid{ display:grid; grid-template-columns:390px 100px 105px auto; gap:0; }
.lp-fmark{ color:var(--ink); font-size:20px; font-weight:800; letter-spacing:-.02em; }
.lp-fbrand p{ color:var(--ink-mut); font-size:13px; margin:22px 0 0; line-height:1.7; }
#lp-footer h4{ font-size:13px; margin:0 0 18px; color:var(--ink); font-weight:600; }
#lp-footer p{ color:var(--ink-mut); font-size:13px; margin:0 0 8px; }
.lp-biz{ margin-top:76px; }
.lp-biz p{ color:var(--ink-mut); font-size:12.5px; margin:0 0 4px; }
.lp-copy{ margin-top:20px !important; }

.hidden{ display:none !important; }

/* ══ 진입 전 public 페이지 (서비스 소개·요금제·FAQ) — 흰색. 왼쪽 메뉴 없이 상단/하단만 ══ */
.lp-brand2{ font-weight:700; font-size:18px; color:var(--ink); cursor:pointer; letter-spacing:-.02em; }
.lp-nav span{ cursor:pointer; }
.lp-nav span.on{ color:var(--brand); font-weight:600; }
/* public 모드: lp-main 을 전체 폭·상단정렬로. 로그인 모드: 가운데 카드 */
#login-page.mode-public #lp-main{ display:block; padding:0; }
#login-page.mode-public .lp-col{ display:none; }
#login-page:not(.mode-public) #lp-public{ display:none; }
#lp-public{ background:var(--canvas); }
.pub-wrap{ max-width:1130px; margin:0 auto; padding:0 20px; }
/* Hero */
.pub-hero{ text-align:center; padding:96px 20px 72px; background:var(--surface); border-bottom:1px solid var(--line); }
.pub-hero h1{ font-size:40px; font-weight:700; letter-spacing:-.02em; margin:0 0 16px; color:var(--ink); }
.pub-hero p{ font-size:16px; color:var(--ink-mut); margin:0 0 28px; }
.pub-cta{ display:flex; gap:12px; justify-content:center; }
.pub-cta .btn, .pub-cta .btn-light{ height:46px; padding:0 24px; font-size:15px; }
/* 섹션 */
.pub-sec{ padding:72px 20px; }
.pub-sec.alt{ background:var(--surface); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.pub-kicker{ text-align:center; color:var(--brand); font-size:13px; font-weight:600; letter-spacing:.08em; }
.pub-sec h2{ text-align:center; font-size:28px; font-weight:700; margin:8px 0 8px; color:var(--ink); }
.pub-sub{ text-align:center; color:var(--ink-mut); margin:0 0 40px; }
.pub-steps, .pub-feats{ display:grid; gap:20px; }
.pub-steps{ grid-template-columns:repeat(5,1fr); }
.pub-feats{ grid-template-columns:repeat(3,1fr); }
.pub-step, .pub-feat{ background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-lg); padding:22px; }
#login-page.mode-public .pub-sec.alt .pub-step{ background:var(--canvas); }
.pub-step-n{ color:var(--brand); font-weight:700; font-size:14px; }
.pub-step h3, .pub-feat h3{ font-size:16px; margin:10px 0 8px; color:var(--ink); }
.pub-step p, .pub-feat p{ color:var(--ink-mut); font-size:13.5px; line-height:1.6; margin:0; }
/* 요금제 */
.pub-plans{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; align-items:start; }
.pub-plan{ background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-lg); padding:28px 24px; }
.pub-plan.reco{ border:2px solid var(--brand); box-shadow:0 8px 28px rgba(0,82,255,.10); }
.pub-plan-tag{ display:inline-block; font-size:12px; color:var(--brand); font-weight:600; background:var(--brand-050); padding:3px 10px; border-radius:99px; }
.pub-plan h3{ font-size:20px; margin:14px 0 4px; color:var(--ink); }
.pub-plan .price{ font-size:30px; font-weight:700; color:var(--ink); }
.pub-plan .price small{ font-size:14px; color:var(--ink-mut); font-weight:400; }
.pub-plan .who{ color:var(--ink-mut); font-size:13px; margin:4px 0 18px; }
.pub-plan ul{ list-style:none; padding:0; margin:0 0 22px; }
.pub-plan li{ font-size:13.5px; color:var(--ink-2); padding:7px 0 7px 22px; position:relative; border-top:1px solid var(--line); }
.pub-plan li:before{ content:"✓"; color:var(--brand); position:absolute; left:0; }
.pub-plan .btn, .pub-plan .btn-light{ width:100%; }
.pub-note{ text-align:center; color:var(--ink-dim); font-size:12.5px; margin-top:24px; }
/* FAQ */
.pub-faq{ max-width:820px; }
.pub-faq-search{ display:flex; gap:8px; margin:0 0 20px; }
.pub-faq-search input{ flex:1; height:44px; }
.pub-faq-tabs{ display:flex; gap:8px; margin:0 0 20px; flex-wrap:wrap; }
.pub-faq-tab{ height:34px; padding:0 16px; border:1px solid var(--line-strong); background:var(--surface); color:var(--ink-mut); border-radius:99px; cursor:pointer; font:inherit; font-size:13px; }
.pub-faq-tab.on{ background:var(--brand); color:#fff; border-color:var(--brand); }
.pub-faq-item{ background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); margin-bottom:10px; overflow:hidden; }
.pub-faq-q{ padding:16px 18px; font-weight:600; color:var(--ink); cursor:pointer; display:flex; justify-content:space-between; gap:12px; }
.pub-faq-q .cat{ font-size:12px; color:var(--brand); font-weight:500; }
.pub-faq-a{ padding:0 18px 16px; color:var(--ink-mut); font-size:14px; line-height:1.7; }
.pub-faq-empty{ text-align:center; color:var(--ink-dim); padding:48px 0; }

/* ---- Grid helpers ---- */
.grid-2{ display:grid; grid-template-columns:1fr 1fr; gap:var(--gap); }
.grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:var(--gap); }
.kpi-tile{ background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:16px; }
.kpi-tile .num{ font-size:24px; font-weight:700; }
.kpi-tile .lbl{ color:var(--ink-mut); font-size:12.5px; margin-top:4px; }

/* ══ 콘솔 헤더 — GUI 3:18488 실측 (1920x56 · #16181C) ══
   로고셋(8,6) · 타이틀 x196 18/500 · 구분선 1x12(흰20%) · 브레드크럼 14/500(현재 #15AF8B)
   우측 버튼 = var(--ink-2) opacity .08 · r8 · 검색/알림 36x36 · 크레딧 71x36 · 아바타 36 원형 */
#shell #header{
  height:56px; flex:0 0 56px; background:var(--head-bg); border-bottom:0;
  padding:0 8px; gap:0; align-items:center;
  position:sticky; top:0; z-index:30;
}
.hd-logo{ display:flex; align-items:center; gap:8px; padding:0 10px; height:50px; border-radius:8px; cursor:pointer; }
.hd-logo:hover{ background:rgba(241,242,243,.06); }
.hd-mark{ width:30px; height:30px; flex:0 0 30px; }
img.hd-mark{ border-radius:8px; object-fit:contain; background:transparent; }
.hd-brand{ font-size:18px; font-weight:700; color:var(--ink-2); white-space:nowrap; }

.hd-title{ font-size:18px; font-weight:500; color:#FFF; margin-left:30px; white-space:nowrap; }
.hd-tsep{ width:1px; height:12px; background:#FFF; opacity:.2; border-radius:2px; margin:0 6px; flex:0 0 1px; }
.hd-crumb{ display:flex; align-items:center; gap:0; font-size:14px; font-weight:500; }
.hd-crumb .cb{ color:var(--ink-2); white-space:nowrap; }
.hd-crumb .cb.on{ color:var(--brand); }
.hd-crumb .chev{ width:24px; text-align:center; color:#FFF; opacity:.55; font-size:11px; }

#shell #header .spacer{ flex:1; }
.hd-ic{
  width:36px; height:36px; border:0; border-radius:8px; cursor:pointer; font-family:inherit;
  background:rgba(241,242,243,.08); color:#FFF; margin-left:8px;
  display:inline-flex; align-items:center; justify-content:center; flex:0 0 36px;
}
.hd-ic:hover{ background:rgba(241,242,243,.16); }
.hd-credit{
  height:36px; min-width:71px; display:flex; align-items:center; justify-content:center; gap:4px;
  padding:0 10px; border-radius:8px; background:rgba(241,242,243,.08);
  color:var(--ink-2); font-size:18px; cursor:default; margin-left:8px;
}
.hd-flash{ color:var(--brand); display:inline-flex; }
.hd-sep{ width:1px; height:26px; background:rgba(241,242,243,.28); margin:0 8px; border-radius:1px; flex:0 0 1px; }
.hd-avatar{
  width:36px; height:36px; border-radius:50%; background:var(--chip); color:var(--ink);
  display:flex; align-items:center; justify-content:center; cursor:pointer;
  font-size:13px; font-weight:600; position:relative; flex:0 0 36px;
}
.hd-menu{
  position:absolute; right:0; top:42px; background:var(--deep); border:1px solid var(--line-strong);
  border-radius:8px; padding:8px; min-width:220px; z-index:50; text-align:left;
}
.hd-who{ color:var(--ink-mut); font-size:12px; padding:6px 8px; word-break:break-all; }
.hd-mi-sep{ height:1px; background:var(--line); margin:4px 8px; }
.hd-mi{
  width:100%; text-align:left; background:transparent; border:0; color:var(--ink);
  padding:8px; border-radius:6px; cursor:pointer; font-family:inherit; font-size:13px;
}
.hd-mi:hover{ background:var(--chip); }

/* ══ 사이드바 — GUI gnb: 182px / 축소 60px · 항목 44 · 아이콘 24 · 간격 48 · 상단 40 ══ */
#shell #sidebar{
  width:182px; flex:0 0 182px; background:var(--side-bg); padding:40px 8px 24px;
  transition:width .12s, flex-basis .12s;
  /* 자체 스크롤 없음 — 본문과 함께 페이지 스크롤 (메뉴 30개라 화면보다 길다) */
}
#shell.nav-min #sidebar{ width:60px; flex:0 0 60px; padding:40px 6px 24px; }
/* GUI gnb(48:16114) 실측 — 대메뉴는 **아이콘+15px 흰 글씨의 정식 행**이고,
   하위는 아이콘 없이 42px 들여쓰기 + 옅은 배경 블록이다. 하위는 **항상 펼쳐져 있다**
   (대메뉴는 토글이 아니다). 종전에는 대메뉴를 11px 회색 대문자 라벨로 만들고 하위마다
   같은 아이콘을 반복해 넣어 대·소 구분이 사라져 있었다. */
#sidebar .nav-group{ margin-bottom:5px; }

/* 대메뉴 — 아이콘 24 + 라벨 15px, 배경 없음, radius 8 */
#sidebar .nav-group-title{
  display:flex; align-items:center; gap:8px; padding:10px; border-radius:8px;
  font-size:15px; font-weight:400; color:#fff; letter-spacing:0; text-transform:none;
  white-space:nowrap; cursor:pointer;
}
#sidebar .nav-group-title .g-ic{
  width:24px; height:24px; flex:0 0 24px;
  display:inline-flex; align-items:center; justify-content:center;
}
#sidebar .nav-group-title:hover{ background:rgba(255,255,255,.06); }
/* 활성 그룹 — 브랜드색 + medium (GUI: #15af8b) */
#sidebar .nav-group.on > .nav-group-title{ color:var(--brand); font-weight:500; }
#shell.nav-min #sidebar .nav-group-title{ display:none; }

/* 하위 — 아이콘 없음. 왼쪽 42px 들여쓰기, 옅은 배경 블록, radius 2, 흰색 60% */
#sidebar .nav-item{
  display:flex; align-items:center; gap:8px;
  padding:10px 10px 10px 42px; margin-bottom:0; border-radius:2px; border-left:0;
  background:rgba(255,255,255,.08); color:#fff; opacity:.6;
  font-size:15px; font-weight:400; line-height:normal; cursor:pointer;
}
#sidebar .nav-item + .nav-item{ margin-top:0; }   /* 블록이 붙어 보이는 것이 원안이다 */
#sidebar .nav-item:hover{ background:rgba(255,255,255,.12); opacity:.85; }
#shell #sidebar .nav-item.active{
  background:rgba(255,255,255,.15); color:#fff; opacity:1; font-weight:500;
}
/* 하위에는 아이콘을 넣지 않는다 — 대메뉴와 구분되는 핵심이다 */
#sidebar .nav-item .nav-ic{ display:none; }
#sidebar .nav-item .dot{ display:none; }
#shell.nav-min #sidebar .nav-item .ttl{ display:none; }
#shell.nav-min #sidebar .nav-item{ justify-content:center; padding:0; }

/* 축소 상태 — 그룹 아이콘만 (GUI 3:19007) */
.nav-gicon{
  display:none; width:44px; height:44px; margin:2px auto; border-radius:8px;
  align-items:center; justify-content:center; color:#FFF; cursor:pointer;
}
.nav-gicon:hover{ background:rgba(241,242,243,.06); }
.nav-gicon.active{ color:var(--brand); }
#shell.nav-min .nav-gicon{ display:flex; }
#shell.nav-min .nav-item{ display:none; }

/* 좁은 화면 — 자동으로 아이콘 레일로 줄인다(사용자가 편 상태여도 폭이 모자라면 접는다).
   본문이 최소 폭을 못 받으면 카드·표가 깨지므로, 사이드바를 먼저 양보시킨다.
   넓어지면 사용자가 고른 상태(localStorage)로 돌아간다 — 강제로 펴지 않는다. */
@media (max-width:1100px){
  #shell #sidebar{ width:60px; flex:0 0 60px; padding:40px 6px 24px; }
  #shell #sidebar .nav-group-title{ display:none; }
  #shell #sidebar .nav-item{ display:none; }
  #shell #sidebar .nav-gicon{ display:flex; }
  #main{ padding:24px 20px; }        /* 좌우 86 → 20: 좁은 화면에서 본문 폭을 살린다 */
}

/* ---- 인사이트 (KPI 분석) — GUI 16:13417 실측값 그대로 ---- */
.ins-banner{
  display:flex; gap:12px; align-items:center; background:var(--deep);
  border-radius:8px; padding:16px 18px; margin:12px 0 20px; width:800px; max-width:100%; min-height:71px;
}
.ins-banner .ins-ic{ color:var(--brand); font-size:18px; flex:0 0 auto; }
.ins-banner b{ font-weight:500; font-size:16px; display:block; color:var(--ink-2); }
.ins-more{ color:var(--ink-2); font-size:14px; cursor:pointer; }
.ins-more:hover{ text-decoration:underline; }

/* 필터 줄 — 라벨 15/400 · 세그먼트 192x36 · 날짜 187x36 · 플랫폼칩 104x36 */
.ins-filters{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:14px; }
.ins-flabel{ color:var(--ink-2); font-size:15px; }

/* 세그먼트: 컨테이너 #0B0B0C r8 192x36 / 항목 54x24 r6 / 활성 흰바탕+검정글씨 / 구분선 1x18 8%(15%) */
.seg{
  display:inline-flex; align-items:center; background:var(--deep); border-radius:8px;
  height:36px; padding:0 6px; gap:0;
}
.seg-b{
  width:54px; height:24px; border:0; border-radius:6px; background:transparent;
  color:rgba(241,242,243,.5); font-family:inherit; font-size:14px; font-weight:400;
  cursor:pointer; padding:0; white-space:nowrap;
}
.seg-b.on{ background:var(--ink-2); color:#000; font-weight:500; }
.seg-div{ width:1px; height:18px; background:rgba(241,242,243,.15); border-radius:4px; margin:0 4px; flex:0 0 1px; }

.ins-date{
  height:36px; display:inline-flex; align-items:center; padding:0 10px;
  border-radius:8px; background:rgba(241,242,243,.08);
  font-size:15px; color:var(--ink-2); white-space:nowrap;
}
/* 플랫폼 칩 104x36 #303035 r8 · 체크 16x16 r3.2 #15AF8B · 라벨 12/400 */
.ins-chk{
  height:36px; min-width:104px; display:inline-flex; align-items:center; gap:8px;
  margin:0; padding:0 12px; border-radius:8px; background:var(--chip-2);
  font-size:12px; color:var(--ink-2); cursor:pointer;
}
.ins-chk input{ width:16px; height:16px; margin:0; border-radius:3px; accent-color:var(--brand); flex:0 0 16px; }

/* 탭 — 밑줄 2px */
.ins-tabs{ display:flex; gap:20px; border-bottom:2px solid rgba(240,241,245,.12); margin-bottom:4px; }
.ins-tab{
  background:none; border:0; border-bottom:2px solid transparent; color:var(--ink-dim);
  font-family:inherit; font-size:14px; padding:8px 2px; margin-bottom:-2px; cursor:pointer;
}
.ins-tab.on{ color:#FFF; border-bottom-color:var(--ink-2); font-weight:600; }

/* KPI 카드 380x150 r8 · 투명 + 테두리 8% · 칩 #353640 r8 h26 · 숫자 40/500 · 단위 25/400 · 증감 18/400 */
.ins-kpis{ display:grid; grid-template-columns:repeat(4,380px); gap:15px; margin-bottom:22px; }   /* GUI 실측 고정 */
.ins-kpi{
  height:150px; border:1px solid rgba(241,242,243,.08); border-radius:8px; padding:18px 20px;
  display:flex; flex-direction:column; justify-content:space-between;
  background:linear-gradient(180deg, #494A56 0%, #343540 100%);   /* GUI 실측 그라데이션 */
}
.ins-chip{
  height:26px; display:inline-flex; align-items:center; gap:6px; background:var(--chip);
  color:var(--ink-2); border-radius:8px; padding:0 10px; font-size:12.5px; align-self:flex-start;
}
.ins-chip .ic{ opacity:.9; }
.ins-num{ font-size:40px; font-weight:500; text-align:right; line-height:1; color:#F5F5FD; /* GUI KPI 숫자 고정색 */ }
.ins-unit{ font-size:25px; font-weight:400; margin-left:2px; }
.ins-up,.ins-down{ font-size:18px; text-align:right; }
.ins-up{ color:var(--up); }
.ins-down{ color:var(--down); }

/* 표 — 행 50px · 헤더 16/500 · 셀 14/400 · 배경 var(--ink-2) 8% */
.ins-tbar{ display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; }
.ins-tab-tbl{ width:100%; border-collapse:collapse; }
.ins-tab-tbl th{
  height:50px; background:rgba(250,250,250,.08); color:#FFF; font-size:16px; font-weight:500;
  text-transform:none; letter-spacing:0; cursor:pointer; user-select:none; white-space:nowrap;
  padding:0 10px; border-bottom:0;
}
.ins-tab-tbl td{
  height:50px; color:#FFF; font-size:14px; font-weight:400; padding:0 10px;
  border-bottom:1px solid rgba(250,250,250,.08);
}
.ins-tab-tbl th.num, .ins-tab-tbl td.num{ text-align:right; }
.ins-tab-tbl .srt{ display:inline-flex; vertical-align:middle; margin-left:6px; opacity:.45; }
.ins-tab-tbl .srt.on{ opacity:1; color:var(--brand); }
.sent-pos{ color:var(--down); }
.sent-neg{ color:var(--up); }

/* 엑셀 버튼 138x38 · 밝은 면 var(--ink-2) · 검정 글씨 · r8 */
/* 보조(secondary) 버튼 — 기본은 밝은 면(surface)+표준 텍스트+테두리(양 테마에서 읽힘),
   hover 시 어두운 톤(--ink) 배경 + 밝은 폰트(--surface). 디자인 시스템 정본. */
.btn-light{
  height:38px; min-width:138px; display:inline-flex; align-items:center; justify-content:center; gap:8px;
  background:var(--surface); color:var(--ink); border:1px solid var(--line-strong); border-radius:8px; font-family:inherit;
  font-size:14px; font-weight:500; cursor:pointer; padding:0 14px;
}
.btn-light:hover{ background:var(--ink); color:var(--surface); border-color:var(--ink); }

/* 페이징 — 24x24 r4 · 활성 흰바탕+검정 14/500 · 비활성 8% 바탕 14/400 · 간격 1 */
.ins-page{ display:flex; gap:1px; justify-content:center; align-items:center; margin-top:20px; }
.pg{
  width:24px; height:24px; border:0; border-radius:4px; cursor:pointer; font-family:inherit;
  background:rgba(241,242,243,.08); color:#FFF; font-size:14px; font-weight:400; padding:0;
  display:inline-flex; align-items:center; justify-content:center;
}
.pg:hover:not([disabled]):not(.on){ background:rgba(241,242,243,.18); }
.pg.on{ background:#FFF; color:#0B0B0C; /* GUI 활성 페이지 */ font-weight:500; }
.pg[disabled]{ opacity:.35; cursor:not-allowed; }
.pg.nav{ margin:0 20px; }

/* 아이콘 컴포넌트 — icons.js 의 인라인 SVG. 색은 부모의 color 를 따른다(currentColor). */
.ic{ display:inline-flex; align-items:center; justify-content:center; flex:0 0 auto; }
.ic svg{ width:100%; height:100%; display:block; }
img.hd-mark{ border-radius:8px; object-fit:contain; background:transparent; }

/* 표 — GUI 실측 컬럼 폭을 그대로 쓰기 위해 고정 레이아웃 */
.ins-tab-tbl{ table-layout:fixed; width:1565px; }
.ins-tab-tbl td:first-child{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* ---- 디자인 시스템 갤러리 (#/gallery, 개발용) ---- */
.gl-sec{ margin:28px 0; }
.gl-h{ font-size:15px; font-weight:600; margin:0 0 4px; color:var(--ink); }
.gl-note{ color:var(--ink-mut); font-size:12.5px; margin:0 0 12px; }
.gl-body{ border:1px solid var(--line); border-radius:var(--radius); padding:20px; background:var(--surface); }
.gl-row{ display:flex; gap:12px; align-items:center; flex-wrap:wrap; }
.gl-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(170px,1fr)); gap:12px; }
.gl-sw{ display:flex; align-items:center; gap:10px; }
.gl-chip{ width:36px; height:36px; border-radius:8px; border:1px solid var(--line); flex:0 0 36px; }
.gl-sw b{ display:block; font-size:12.5px; }
.gl-sw code, .gl-body code{ font-size:11px; color:var(--ink-dim); font-family:var(--font-mono); }

/* ══ 재사용 모달 — GUI 3:2847 / 3:2953 ══ */
.modal-ov{ position:fixed; inset:0; background:rgba(0,0,0,.6); display:flex; align-items:center; justify-content:center; z-index:100; color:var(--ink); }
.modal{ background:var(--modal-bg); border-radius:12px; padding:28px; width:420px; max-width:92vw; max-height:88vh; overflow-y:auto; position:relative; }
.modal.wide{ width:760px; }
.modal.confirm{ width:400px; background:var(--popup); }   /* 삭제 확인 팝업 (GUI 3:2953 #45454C) */
.modal.confirm .modal-msg{ color:var(--ink-2); }
.modal.confirm .modal-acts .btn.ghost{ background:rgba(241,242,243,.15); border:0; color:#fff; }
.modal.confirm .modal-acts .btn.ghost:hover{ background:rgba(241,242,243,.25); }
.modal-x{ position:absolute; right:16px; top:16px; background:none; border:0; color:var(--ink-mut); font-size:15px; cursor:pointer; }
.modal-x:hover{ color:var(--ink); }
.modal-h{ font-size:18px; font-weight:600; text-align:center; margin:0 0 20px; }
.modal-msg{ text-align:center; color:var(--ink-mut); font-size:14px; line-height:1.6; margin:0 0 8px; }
.modal-label{ display:block; font-size:14px; margin:0 0 8px; color:var(--ink); }
.modal-label .req{ color:var(--err); }
.modal-input{ width:100%; background:var(--deep); border:1px solid var(--line-strong); border-radius:8px; padding:12px 14px; color:var(--ink); font-size:14px; }
.modal-asset{ background:var(--surface); border-radius:8px; padding:16px; margin-top:14px; }
.modal-asset h4{ margin:0 0 12px; font-size:15px; font-weight:500; }
.modal-acts{ display:flex; gap:10px; justify-content:center; margin-top:24px; }
.modal-acts .btn.ghost, .modal-acts .btn-light{ min-width:120px; }

/* ══ 브랜드 설정 — GUI 3:2663 ══ */
.bs-grid{ display:grid; grid-template-columns:1fr 1fr; gap:40px; align-items:start; }
.bs-col-h{ font-size:16px; font-weight:500; margin:0 0 6px; color:var(--ink-2); }
.bs-col-desc{ color:var(--ink-mut); font-size:14px; margin:0 0 16px; }
.bs-panel{ background:var(--deep); border-radius:8px; padding:20px; }
.bs-panel-h{ font-size:16px; font-weight:500; margin:0 0 16px; color:var(--ink-2); }
.bs-tpl-grid{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }

/* 템플릿 카드 362x244 #222223 r7 */
.bs-tpl{ background:var(--card); border-radius:8px; padding:10px; display:flex; gap:12px; }
.bs-tpl-preview{ width:126px; height:224px; flex:0 0 126px; border-radius:8px; background:#000;
  display:flex; align-items:flex-start; justify-content:center; padding-top:10px; overflow:hidden; }
.bs-tpl-cap{ color:#fff; font-size:11px; font-weight:600; text-align:center; }
.bs-tpl-body{ flex:1; display:flex; flex-direction:column; }
.bs-tpl-title{ font-size:14px; line-height:1.3; color:var(--ink-2); }
.bs-tpl-applied{ color:var(--ink-mut); font-size:12px; margin-top:6px; }
.bs-tpl-applied b{ color:var(--brand); font-weight:400; }
.bs-tpl-acts{ margin-top:auto; display:flex; gap:6px; justify-content:flex-end; }
.bs-ic{ width:30px; height:30px; border:0; border-radius:6px; background:var(--chip); color:var(--ink); cursor:pointer;
  display:inline-flex; align-items:center; justify-content:center; font-size:13px; }
.bs-ic:hover{ background:var(--line-strong); }
.bs-tpl-new{ border:1px dashed var(--line-strong); border-radius:8px; background:transparent; color:var(--ink-mut);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; cursor:pointer; min-height:234px; font-size:14px; font-family:inherit; }
.bs-tpl-new:hover{ border-color:var(--brand); color:var(--ink); }
.bs-plus{ font-size:28px; }
/* 활성(적용 중) 템플릿 강조 + 적용 버튼 */
.bs-tpl{ border:1.5px solid transparent; }
.bs-tpl.on{ border-color:var(--brand); }
.bs-tpl-status{ margin-top:6px; }
.bs-active-badge{ color:var(--brand); font-size:12px; font-weight:600; }
.bs-apply{ background:none; border:1px solid var(--line-strong); color:var(--ink-2); border-radius:6px;
  font-size:12px; padding:2px 10px; cursor:pointer; font-family:inherit; }
.bs-apply:hover{ border-color:var(--brand); color:var(--brand); }
/* 템플릿 편집기 모달 */
.bs-ed{ display:flex; gap:20px; align-items:flex-start; }
.bs-ed-prev{ width:126px; height:224px; flex:0 0 126px; border-radius:8px; background:#000;
  display:flex; align-items:flex-start; justify-content:center; padding-top:14px; overflow:hidden; }
.bs-ed-form{ flex:1; display:flex; flex-direction:column; }
.bs-ed-form label{ font-size:12px; color:var(--ink-mut); margin:10px 0 4px; }
.bs-ed-form label:first-child{ margin-top:0; }
.bs-ed-row{ display:flex; gap:16px; }
.bs-ed-row span{ display:flex; flex-direction:column; }

/* 자산 섹션 */
.bs-asset{ background:var(--deep); border-radius:8px; padding:20px; margin-top:16px; }
.bs-asset-h{ font-size:16px; font-weight:500; margin:0 0 16px; color:var(--ink-2); }
.bs-asset-grid{ display:flex; gap:14px; flex-wrap:wrap; }
.bs-tile{ width:120px; text-align:center; }
.bs-tile-box{ width:120px; height:120px; border-radius:8px; background:var(--card); display:flex; align-items:center; justify-content:center; }
.bs-font{ font-size:44px; font-weight:500; }
.bs-logo{ font-size:15px; font-weight:700; }
.bs-tile-name{ font-size:13px; margin-top:8px; color:var(--ink-2); }
.bs-del{ background:none; border:1px solid var(--err); color:var(--err); border-radius:6px; font-size:11px; padding:2px 8px; margin-top:6px; cursor:pointer; font-family:inherit; }
.bs-tile-add{ width:102px; height:102px; border:1px dashed var(--line-strong); border-radius:8px; background:transparent;
  color:var(--ink-mut); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; cursor:pointer; font-size:12px; font-family:inherit; align-self:flex-start; margin-top:9px; }
.bs-tile-add:hover{ border-color:var(--brand); color:var(--ink); }

/* 자막 스타일 239x80 */
.bs-sub-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:14px 8px; }
.bs-sub-preview{ height:80px; border-radius:8px; background:var(--card); display:flex; align-items:center; justify-content:center; font-size:15px; font-weight:600; padding:0 12px; text-align:center; }
.bs-sub-label{ font-size:14px; color:var(--ink-mut); margin-top:8px; }
/* 자막 효과(프리뷰용) */
.st-pink{ color:#FF6DAE; }   /* GUI 자막 효과 프리뷰 원본색 */
.st-green{ color:#15E29A; }  /* GUI 자막 효과 프리뷰 원본색 */
.st-shadow{ font-style:italic; text-shadow:2px 2px 3px rgba(0,0,0,.8); }
.st-underline{ text-decoration:underline; }
.st-outline{ color:transparent; -webkit-text-stroke:1px #fff; }

/* 선택 상태(모달 자산 선택) */
.bs-pick{ cursor:pointer; border-radius:8px; }
.bs-pick .bs-tile-box, .bs-pick .bs-sub-preview{ border:2px solid transparent; }
.bs-pick.on .bs-tile-box, .bs-pick.on .bs-sub-preview{ border-color:var(--brand); }
.bs-pick.on .bs-tile-name, .bs-pick.on .bs-sub-label{ color:var(--brand); }

/* ══ 라이브러리 원본영상 — UI 7:14171 ══ */
/* 업로드 방식 탭 */
.up-card{ max-width:none; margin:0 0 var(--gap); }
.up-tabs{ display:flex; gap:24px; background:none; border-bottom:1px solid var(--line); padding:0; margin-bottom:16px; }
.up-tab{ flex:0 0 auto; height:auto; padding:10px 2px; border:0; border-bottom:2px solid transparent; border-radius:0; background:none; color:var(--ink-mut); font-family:inherit; font-size:14px; cursor:pointer; }
.up-tab.on{ background:none; color:var(--ink); border-bottom-color:var(--brand); font-weight:600; }
.up-url{ display:flex; align-items:center; gap:8px; background:#0F1012; border:1px solid var(--line); border-radius:8px; padding:0 14px; }
.up-url .up-link-ic{ color:var(--ink-dim); flex:0 0 auto; }
.up-url input{ flex:1; border:0; background:transparent; padding:13px 0; }
.up-drop{ display:flex; flex-direction:column; align-items:center; gap:4px; border:1px dashed var(--line-strong); border-radius:8px; padding:16px; cursor:pointer; text-align:center; color:var(--ink-mut); }
.up-drop:hover{ border-color:var(--brand); }
.up-drop-ic{ font-size:24px; }
.up-drop-sub{ font-size:12px; color:var(--ink-dim); }
.up-submit{ width:auto; margin-top:16px; padding:11px 26px; background:var(--brand); border:0; color:#fff; font-weight:600; border-radius:8px; }
.up-submit:hover{ filter:brightness(1.06); }
.up-submit:disabled{ opacity:.6; cursor:progress; }
/* 파일을 고른 뒤 — 드롭존이 "선택됨" 임을 색으로 알린다(파일명은 안내문 자리에 표시). */
.up-drop.picked{ border-style:solid; border-color:var(--brand); color:var(--ink); background:var(--brand-050); }
.up-drop.picked .up-drop-ic{ color:var(--brand); }
.up-drop.over{ border-color:var(--brand); background:var(--brand-050); }
/* 진행률 — 로컬은 순식간이라 완료 후 잠깐 남겨 "올라갔다"는 것이 보이게 한다. */
.up-prog{ margin-top:10px; height:18px; background:var(--canvas); border:1px solid var(--line); border-radius:99px; overflow:hidden; }
.up-prog-bar{ height:100%; width:0; background:var(--brand); color:#fff; font-size:11px; line-height:18px;
  text-align:center; transition:width .15s linear; white-space:nowrap; }

/* 툴바 */
.lib-tbar{ display:flex; align-items:center; gap:12px; margin-bottom:16px; flex-wrap:wrap; }
.lib-search{ display:flex; align-items:center; gap:8px; background:var(--deep); border:1px solid var(--line-strong); border-radius:8px; padding:0 12px; color:var(--ink-dim); }
.lib-search input{ border:0; background:transparent; padding:9px 0; width:220px; }
.lib-sort{ width:auto; height:36px; border:1px solid var(--line-strong); border-radius:8px; background:var(--deep); color:var(--ink); padding:0 10px; font-family:inherit; font-size:13px; }

/* 미디어 카드 그리드 (재사용 — 원본·생성클립 공용) */
.mgrid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(180px, 1fr)); gap:16px; }
.mcard{ cursor:pointer; border-radius:8px; }
.mcard-thumb{ position:relative; aspect-ratio:16/10; border-radius:8px; overflow:hidden;
  background:repeating-conic-gradient(var(--chip) 0% 25%, var(--deep) 0% 50%) 50% / 20px 20px; }
.mcard.on .mcard-thumb{ outline:2px solid var(--brand); outline-offset:1px; }
.mcard-dur{ position:absolute; right:8px; bottom:8px; background:rgba(0,0,0,.7); color:#fff; font-size:11px; padding:1px 6px; border-radius:4px; }
.mcard-chk{ position:absolute; right:8px; top:8px; width:18px; height:18px; accent-color:var(--brand); }
.mcard-name{ margin-top:8px; font-size:13.5px; color:var(--ink); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.mcard-meta{ margin-top:4px; font-size:12px; color:var(--ink-mut); display:flex; align-items:center; gap:6px; }

/* ══ AI 클립 3단 검수 — UI 7:18059 ══ */
.ed-wrap{ display:grid; grid-template-columns:300px 1fr 340px; gap:16px; align-items:start; }
/* 좌 리스트 */
.ed-list{ background:var(--deep); border-radius:8px; padding:14px; }
.ed-list-head{ margin-bottom:10px; }
.ed-cards{ display:flex; flex-direction:column; gap:10px; max-height:calc(100vh - 160px); overflow-y:auto; }
.ec-card{ display:flex; gap:10px; padding:10px; border:1px solid var(--line); border-radius:8px; cursor:pointer; }
.ec-card.on{ border-color:var(--brand); background:var(--brand-050); }
.ec-no{ font-size:12px; color:var(--ink-mut); }
.ec-thumb{ position:relative; width:56px; height:96px; flex:0 0 56px; border-radius:6px;
  background:repeating-conic-gradient(var(--chip) 0% 25%, var(--surface) 0% 50%) 50% / 12px 12px; }
.ec-dur{ position:absolute; left:4px; bottom:4px; font-size:9px; color:#fff; background:rgba(0,0,0,.7); padding:0 3px; border-radius:3px; }
.ec-title{ font-size:13px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ec-tags{ margin-top:6px; }
/* 중앙 플레이어 9:16 */
.ed-player{ display:flex; flex-direction:column; align-items:center; }
.ed-video{ width:280px; aspect-ratio:9/16; background:#000; border-radius:12px; overflow:hidden; position:relative;
  display:flex; flex-direction:column; align-items:center; justify-content:space-between; padding:20px 0; }
.ed-vtop{ color:#fff; font-size:18px; font-weight:600; text-align:center; padding:0 12px; }
.ed-vph{ flex:1; align-self:stretch; margin:10px 0;
  background:repeating-conic-gradient(#222 0% 25%, #111 0% 50%) 50% / 24px 24px; /* GUI 영상 placeholder 고정색 */ }
.ed-vbottom{ color:#fff; font-size:22px; font-weight:800; text-align:center; line-height:1.1; }
.ed-controls{ display:flex; align-items:center; gap:10px; width:280px; margin-top:12px; background:var(--deep); border-radius:8px; padding:8px 12px; }
.ed-play{ background:none; border:0; color:var(--brand); font-size:16px; cursor:pointer; }
.ed-time{ color:var(--brand); font-size:12px; }
.ed-cbtn{ background:none; border:0; color:var(--ink-mut); cursor:pointer; font-size:14px; }
/* 우 정보 */
.ed-info{ background:transparent; }
.ed-info-head{ display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:8px; }
.ed-hint{ color:var(--ink-mut); font-size:12px; margin:0 0 16px; line-height:1.5; }
.ed-info label{ display:block; font-size:13px; margin:14px 0 6px; }
.ed-ta{ width:100%; background:var(--deep); border:1px solid var(--line-strong); border-radius:8px; color:var(--ink); padding:10px 12px; font-family:inherit; font-size:13.5px; resize:vertical; }
.ed-ta.over{ border-color:var(--err); }
.ed-count{ text-align:right; font-size:11px; color:var(--ink-dim); margin-top:4px; }
.ed-count.over{ color:var(--err); }
.ed-tags{ display:flex; flex-wrap:wrap; gap:6px; }
.ed-tag{ display:inline-flex; align-items:center; gap:4px; background:var(--chip); color:var(--ink); border-radius:99px; padding:3px 10px; font-size:12px; }
.ed-tag button{ background:none; border:0; color:var(--ink-mut); cursor:pointer; font-size:11px; }
.ed-tag-in{ width:100%; margin-top:8px; background:var(--deep); border:1px solid var(--line-strong); border-radius:8px; color:var(--ink); padding:8px 10px; font-size:13px; }
.ed-acts{ display:flex; flex-direction:column; gap:8px; margin-top:20px; }
.ed-acts .btn{ width:100%; }

/* ══ 홈 대시보드 — UI 7:13294 ══ */
.tbd-inline{ font-size:11px; color:var(--warn); font-weight:400; margin-left:6px; }
.hp-stages{ display:grid; grid-template-columns:repeat(5,1fr); gap:16px; margin-bottom:24px; }
.hp-stage{ border:1px solid var(--line); border-radius:8px; padding:18px 20px; cursor:pointer; }
.hp-stage:hover{ border-color:var(--brand); }
.hp-stage-n{ font-size:32px; font-weight:500; }
.hp-stage-l{ color:var(--ink-mut); font-size:13px; margin-top:4px; }
.hp-2col{ display:grid; grid-template-columns:1fr 1fr; gap:24px; align-items:start; }
.hp-recent{ padding:12px 16px; border-bottom:1px solid var(--line); cursor:pointer; }
.hp-recent:last-child{ border-bottom:0; }
.hp-recent:hover{ background:var(--deep); }
.hp-recent-t{ font-size:13.5px; }
.hp-recent-m{ color:var(--ink-mut); font-size:12px; margin-top:4px; display:flex; align-items:center; gap:8px; }
.hp-quick{ display:flex; flex-wrap:wrap; gap:8px; }
.hp-kpi{ border:1px solid var(--line); border-radius:8px; padding:14px 16px; margin-top:10px; }
.hp-kpi-top{ display:flex; justify-content:space-between; font-size:14px; }
.hp-kpi-row{ display:flex; gap:16px; color:var(--ink-mut); font-size:12.5px; margin-top:8px; flex-wrap:wrap; }

/* pill (상태) — 다크 wash 재사용 (SNS 이력 등) */
.pill{ display:inline-block; padding:2px 10px; border-radius:99px; font-size:12px; background:var(--chip); color:var(--ink-mut); }
.pill.ok{ background:var(--ok-wash); color:var(--ok-ink); }
.pill.warn{ background:var(--warn-wash); color:var(--warn-ink); }
.pill.err{ background:var(--err-wash); color:var(--err-ink); }

/* ══ 캘린더 — UI 7:42178 ══ */
.cal-bar{ display:flex; align-items:center; gap:12px; margin-bottom:16px; flex-wrap:wrap; }
.cal-nav{ display:flex; align-items:center; gap:8px; }
.cal-nav b{ font-size:22px; margin-right:4px; }
.cal-navb{ width:28px; height:28px; border:0; border-radius:6px; background:var(--chip); color:var(--ink); cursor:pointer; font-family:inherit; }
.cal-grid{ display:grid; grid-template-columns:repeat(7,1fr); border:1px solid var(--line); border-radius:8px; overflow:hidden; }
.cal-wd{ padding:10px 12px; font-size:12px; color:var(--ink-mut); background:var(--deep); border-bottom:1px solid var(--line); }
.cal-cell{ min-height:120px; border-right:1px solid var(--line); border-bottom:1px solid var(--line); padding:8px; }
.cal-cell:nth-child(7n){ border-right:0; }
.cal-empty{ background:var(--deep); }
.cal-date{ font-size:13px; color:var(--ink-mut); margin-bottom:6px; }
.cal-ev{ display:flex; align-items:center; gap:4px; font-size:11px; margin-bottom:3px; }
.cal-ev-dot{ width:6px; height:6px; border-radius:50%; background:var(--brand); flex:0 0 6px; }
.cal-ev-t{ color:var(--ink); }
.cal-ev-p{ color:var(--ink-mut); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; flex:1; }
.cal-ev-st{ color:var(--ink-mut); }
.cal-more{ font-size:11px; color:var(--brand); cursor:pointer; }

/* 순위 뱃지 (인사이트 순위현황) */
.rank-badge{ display:inline-flex; align-items:center; justify-content:center; width:24px; height:24px; border-radius:6px; background:var(--chip); color:var(--ink); font-size:12px; font-weight:600; }
.rank-badge.top{ background:var(--brand-050); color:var(--brand); }

/* ══ 서비스 소개 랜딩 — UI 7:11584 ══ */
.ld{ max-width:1000px; margin:0 auto; }
.ld-hero{ text-align:center; padding:60px 0 40px; }
.ld-hero h1{ font-size:36px; font-weight:700; margin:0 0 12px; }
.ld-hero p{ color:var(--ink-mut); font-size:16px; margin:0 0 24px; }
.ld-cta{ display:flex; gap:12px; justify-content:center; }
.ld-cta .btn{ padding:12px 28px; }
.ld-sec{ padding:48px 0; border-top:1px solid var(--line); }
.ld-kicker{ font-size:12px; letter-spacing:.08em; color:var(--ink-dim); font-weight:700; margin-bottom:8px; }
.ld-sec h2{ font-size:28px; font-weight:700; margin:0 0 6px; }
.ld-sub{ color:var(--ink-mut); font-size:14px; margin:0 0 28px; }
.ld-steps{ display:grid; grid-template-columns:repeat(5,1fr); gap:16px; }
.ld-step-n{ font-size:14px; color:var(--ink-dim); margin-bottom:12px; }
.ld-step h3{ font-size:15px; margin:0 0 8px; }
.ld-step p{ font-size:12.5px; color:var(--ink-mut); line-height:1.6; }
.ld-feats{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.ld-feat{ border:1px solid var(--line); border-radius:10px; padding:20px; }
.ld-feat h3{ font-size:16px; margin:0 0 10px; }
.ld-feat p{ font-size:13px; color:var(--ink-mut); line-height:1.6; }
.ld-stats{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.ld-stat{ font-size:32px; font-weight:700; margin-bottom:8px; }
.ld-why p{ color:var(--ink-mut); font-size:14px; }
.ld-final{ text-align:center; }
.ld-final .ld-cta{ margin-top:24px; }

/* ── 약관 모달(footer 보기 · 이용 동의) — body 부착 = 라이트 :root 토큰 ── */
.lp-flink{ cursor:pointer; }
.lp-flink:hover{ color:var(--brand); text-decoration:underline; }
.air-modal-ov{ position:fixed; inset:0; z-index:300; background:rgba(20,24,35,.45); display:flex; align-items:center; justify-content:center; padding:20px; }
.air-modal{ width:520px; max-width:100%; max-height:86vh; display:flex; flex-direction:column; background:var(--surface); color:var(--ink); border-radius:12px; box-shadow:0 24px 70px rgba(0,0,0,.3); }
.air-modal-h{ display:flex; align-items:center; justify-content:space-between; padding:16px 18px; border-bottom:1px solid var(--line); }
.air-modal-h h3{ font-size:15px; margin:0; }
.air-modal-x{ border:0; background:transparent; font-size:16px; cursor:pointer; color:var(--ink-mut); }
.air-modal-b{ padding:18px; overflow:auto; }
.air-modal-f{ padding:14px 18px; border-top:1px solid var(--line); display:flex; justify-content:flex-end; }
.air-modal-f .btn{ background:var(--brand); }
.term-body{ white-space:pre-wrap; font-size:13.5px; line-height:1.75; color:var(--ink-2); }
.air-modal .dim{ color:var(--ink-dim); }
.cs-row{ display:flex; align-items:center; gap:8px; padding:10px 0; border-bottom:1px solid var(--chip); font-size:13.5px; cursor:default; }
.cs-row input{ width:auto; }
.cs-tag{ font-size:11px; padding:1px 7px; border-radius:99px; background:var(--chip); color:var(--ink-mut); }
.cs-tag.req{ background:var(--brand-050); color:var(--brand); }
.cs-title{ flex:1; color:var(--ink); }
.cs-view{ color:var(--brand); cursor:pointer; font-size:12.5px; }
.cs-view:hover{ text-decoration:underline; }
.cs-msg{ color:var(--err); font-size:12.5px; margin:10px 0 0; min-height:16px; }
.lp-msicon{ flex:0 0 auto; margin-right:2px; }

/* 마크다운으로 렌더된 약관 본문 — pre-wrap 대신 블록 요소 간격으로 읽는다. */
.term-body.md{ white-space:normal; }
.term-body.md h3,.term-body.md h4,.term-body.md h5{ margin:16px 0 6px; color:var(--ink); }
.term-body.md h3:first-child{ margin-top:0; }
.term-body.md p{ margin:0 0 10px; }
.term-body.md ul,.term-body.md ol{ margin:0 0 10px; padding-left:20px; }
.term-body.md li{ margin:2px 0; }

/* 라이브러리 카드 대표 이미지 — 없으면 기존 회색 자리표시자가 그대로 보인다. */
.mcard-img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }

/* 언어 전환 — 진입 전 헤더 · 앱 헤더 공용. 텍스트만 있는 가벼운 버튼. */
.lp-lang{ height:32px; padding:0 12px; border:1px solid var(--line-strong); border-radius:var(--radius-pill);
  background:transparent; color:var(--ink-mut); font:inherit; font-size:12.5px; cursor:pointer; }
.lp-lang:hover{ color:var(--ink); border-color:var(--ink-mut); }
.hd-lang{ height:32px; padding:0 12px; border:1px solid var(--hd-line, var(--line)); border-radius:var(--radius-pill);
  background:transparent; color:var(--hd-fg, var(--ink-mut)); font:inherit; font-size:12.5px; cursor:pointer; }
.hd-lang:hover{ opacity:.85; }

/* ── 클립 검수 화면 — 왼쪽 카드 그리드 / 오른쪽 상세 패널 ── */
.clip-split{ display:grid; grid-template-columns:1fr 380px; gap:var(--gap); align-items:start; }
@media (max-width:1200px){ .clip-split{ grid-template-columns:1fr; } }
.clip-panel{ background:var(--surface); border:1px solid var(--line); border-radius:var(--radius);
  padding:16px; position:sticky; top:calc(var(--header-h) + 12px); max-height:calc(100vh - var(--header-h) - 32px); overflow:auto; }
.clip-head{ display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:10px; }
.clip-head h3{ font-size:14px; margin:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.clip-video{ width:100%; border-radius:8px; background:var(--canvas); aspect-ratio:9/16; max-height:340px; }
.clip-sec{ margin-top:14px; border-top:1px solid var(--line); padding-top:12px; }
.clip-sec h4{ font-size:12px; margin:0 0 8px; color:var(--ink-mut); text-transform:uppercase; letter-spacing:.04em; }
.clip-sec input, .clip-sec textarea{ width:100%; margin-bottom:6px; }
/* 카드 위 상태 배지 — 렌더 중·자막 유무를 목록에서 바로 본다. */
.mcard-badge{ position:absolute; top:6px; left:6px; font-size:10.5px; padding:2px 7px; border-radius:99px;
  background:rgba(20,24,35,.72); color:#fff; }
.mcard-badge.sub{ left:auto; right:6px; background:var(--brand); }
.warn-text{ color:var(--warn); font-size:12.5px; }

/* 장면 요청 — 목록 위에 두어 "원본 고르고 → 원하는 장면 말하기" 흐름이 자연스럽게. */
.scene-ask h3{ font-size:14px; margin:0 0 4px; }
.mcard-intent{ font-size:11.5px; color:var(--brand-600); margin-top:4px;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* 타임라인 — 슬라이더와 숫자 입력을 함께(끌어 맞추고, 정확히 찍기) */
.tl{ display:flex; align-items:center; gap:8px; margin-bottom:6px; }
.tl input[type=range]{ flex:1; }
.tl input[type=number]{ width:80px; margin:0; }
.dim.sm{ font-size:11.5px; min-width:26px; }

/* ── AI 스튜디오 통합 작업대 (SPEC_작업대) ───────────────────────── */
.wb-wrap{ display:grid; grid-template-columns:320px 1fr 400px; gap:var(--gap); align-items:start; }
@media (max-width:1280px){ .wb-wrap{ grid-template-columns:280px 1fr; } .wb-right{ grid-column:1 / -1; } }
@media (max-width:900px){ .wb-wrap{ grid-template-columns:1fr; } }
.wb-left{ background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:16px;
  position:sticky; top:calc(var(--header-h) + 12px); }
.wb-lbl{ display:block; font-size:12px; color:var(--ink-mut); margin:4px 0; font-weight:600; }
.wb-pick{ width:100%; margin-bottom:12px; }
.wb-poster{ width:100%; aspect-ratio:16/9; object-fit:cover; border-radius:8px; background:var(--canvas); display:block; }
.wb-noposter{ display:flex; align-items:center; justify-content:center; color:var(--ink-dim); font-size:12px; }
.wb-meta{ font-size:12px; color:var(--ink-mut); margin:8px 0; display:flex; align-items:center; gap:6px; }
.wb-summary{ font-size:12px; color:var(--ink-mut); line-height:1.5; margin:6px 0 0; }
.wb-ask{ margin-top:14px; border-top:1px solid var(--line); padding-top:12px; }
.wb-star{ color:var(--brand); }
.wb-intent{ width:100%; resize:vertical; }
.wb-chips{ display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; }
.wb-chip{ font-size:12px; padding:4px 10px; border:1px solid var(--line); border-radius:14px;
  background:var(--chip); color:var(--ink-mut); cursor:pointer; }
.wb-chip:hover{ border-color:var(--brand); color:var(--brand); }
.wb-mid{ min-height:200px; }
.wb-right{ background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:16px;
  position:sticky; top:calc(var(--header-h) + 12px); max-height:calc(100vh - var(--header-h) - 32px); overflow:auto; }
.wb-empty{ grid-column:1 / -1; text-align:center; color:var(--ink-mut); padding:48px 16px; line-height:1.7; }
.wb-spin{ width:28px; height:28px; margin:0 auto 12px; border:3px solid var(--line);
  border-top-color:var(--brand); border-radius:50%; animation:wb-spin 0.9s linear infinite; }
@keyframes wb-spin{ to{ transform:rotate(360deg); } }

/* 알림함 — 미읽음 행 강조. 읽은 것과 구분이 안 되면 알림함을 열 이유가 없다. */
.dtab tr.unread{ background:var(--brand-050); }
.dtab tr.unread td{ font-weight:500; }

/* ── 요금제 비교표 — 세로 한 줄이 한 플랜 ─────────────────────────
   종전에는 자기 플랜 기능 49개를 한 표에 늘어놓아 "올리면 뭐가 열리는지"가 안 보였다.
   현재 플랜 열을 강조해 어디에 서 있는지부터 알게 한다. */
.pl-cols{ display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin:6px 0 18px; }
.pl-col{ border:1px solid var(--line); border-radius:var(--radius); padding:16px; background:var(--card); }
.pl-col.on{ border-color:var(--brand); box-shadow:0 0 0 1px var(--brand) inset; }
.pl-name{ font-size:18px; font-weight:600; color:var(--ink); }
.pl-sub{ font-size:13px; color:var(--ink-mut); margin-top:2px; }
.pl-cnt{ font-size:13px; color:var(--ink-dim); margin:10px 0 12px; }
.pl-badge{ display:inline-block; font-size:12px; font-weight:600; color:var(--brand);
  border:1px solid var(--brand); border-radius:var(--radius-pill); padding:4px 12px; }

.pl-tbl{ width:100%; border-collapse:collapse; font-size:14px; }
.pl-tbl th, .pl-tbl td{ padding:9px 10px; border-bottom:1px solid var(--line); }
.pl-tbl thead th{ position:sticky; top:var(--header-h); background:var(--card);
  font-weight:600; color:var(--ink); text-align:center; }
.pl-tbl thead th.pl-ft{ text-align:left; }
.pl-tbl .pl-ft{ width:46%; text-align:left; color:var(--ink-2); }
.pl-tbl .pl-cell{ width:18%; text-align:center; }
/* 현재 플랜 열 — 표 전체에서 세로로 이어져 보이게 옅게 깐다 */
.pl-tbl .pl-cell.on{ background:var(--brand-050); }
.pl-tbl tr.pl-grp th{ text-align:left; font-size:12.5px; letter-spacing:.04em;
  color:var(--ink-dim); background:var(--chip); padding:7px 10px; }
.pl-o{ color:var(--ok); font-weight:700; }
.pl-d{ color:var(--warn); font-weight:700; }
.pl-x{ color:var(--ink-dim); }
@media (max-width:900px){ .pl-cols{ grid-template-columns:1fr; } }

/* 자막 스타일 프리셋 색 — 브랜드 화면의 Subtitle Styles·템플릿 프리뷰에서 쓴다.
   **테마 토큰을 쓰지 않는다.** 여기 색은 UI 색이 아니라 영상에 실제로 구워지는 자막 색이라,
   라이트/다크에 따라 변하면 거짓 미리보기가 된다(RULES.md 1 의 예외 — 근거 표기). */
.st-base{ color:#fff; text-shadow:0 0 3px #000,0 0 3px #000; }
.st-bold-yellow{ color:#ffd400; text-shadow:0 0 3px #000,0 0 3px #000; }  /* 원본: 자막 노랑 */
.st-box-dark{ color:#fff; background:#111; padding:2px 8px; border-radius:3px; }  /* 원본: 반투명 박스 */
.st-outline-thick{ color:#fff; -webkit-text-stroke:1.5px #000; }

/* ── 크레딧 사용 — 운영·상황파악용(정식 지표 아님) ────────────────── */
.cu-kpis{ display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-bottom:var(--gap); }
.cu-kpi{ background:var(--card); border:1px solid var(--line); border-radius:var(--radius); padding:16px; }
.cu-k{ font-size:13px; color:var(--ink-mut); }
.cu-v{ font-size:26px; font-weight:700; color:var(--ink); margin-top:4px; font-variant-numeric:tabular-nums; }
/* 막대 — 라이브러리 없이 높이 비율로. 0인 날도 자리를 남긴다(빠지면 추세가 왜곡된다). */
.cu-chart{ display:flex; align-items:flex-end; gap:6px; height:160px; margin-top:12px;
  padding:8px 4px 0; border-bottom:1px solid var(--line); overflow-x:auto; }
.cu-bar{ flex:1 0 26px; display:flex; flex-direction:column; justify-content:flex-end;
  align-items:center; height:100%; }
.cu-bar-fill{ width:100%; min-height:2px; background:var(--brand); border-radius:3px 3px 0 0; }
.cu-bar-x{ font-size:10.5px; color:var(--ink-dim); margin-top:5px; white-space:nowrap; }
.dtab td.num, .dtab th.num{ text-align:right; font-variant-numeric:tabular-nums; }
@media (max-width:900px){ .cu-kpis{ grid-template-columns:1fr; } }

/* 실제 원가 카드 — 내부 관리용임을 눈에 띄게 구분한다 */
.cu-kpis{ grid-template-columns:repeat(4,1fr); }
.cu-kpi.cu-cost{ border-color:var(--warn); }
.cu-tag{ font-size:10.5px; font-weight:700; color:var(--warn);
  border:1px solid var(--warn); border-radius:var(--radius-pill); padding:1px 7px; margin-left:6px; }
.cu-sub{ font-size:12px; color:var(--ink-dim); margin-top:4px; }
@media (max-width:1100px){ .cu-kpis{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:700px){ .cu-kpis{ grid-template-columns:1fr; } }

/* 크레딧 두 갈래(충전/구독) 표시 */
.cr-split{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin:8px 0; }
.cr-chip{ background:var(--chip); border-radius:14px; padding:4px 12px; font-size:13px; color:var(--ink-2); }
.cr-chip b{ color:var(--brand); }
.cr-chip.cr-sub b{ color:var(--warn); }   /* 구독=월 리셋 대상이라 색을 달리해 구분 */
.cr-total{ font-size:13px; color:var(--ink-mut); margin-left:auto; }

/* 편집 반영 진행표시 */
.cl-render{ margin:8px 0; }
.cl-render-bar{ height:4px; border-radius:2px; background:var(--line-strong,#334); overflow:hidden; }
.cl-render-fill{ height:100%; width:40%; border-radius:2px; background:var(--brand,#15af8b);
  animation:cl-render-move 1.1s ease-in-out infinite; }
@keyframes cl-render-move{ 0%{ margin-left:-40%; } 100%{ margin-left:100%; } }

/* 세로 크롭 위치 미리보기 — 원본 가로 프레임 위에 9:16 창을 표시 */
.crop-prev{ position:relative; width:100%; aspect-ratio:16/9; border-radius:8px;
  background:#000 center/cover no-repeat; overflow:hidden; margin:8px 0; }
.crop-box{ position:absolute; top:0; height:100%; left:40%; width:20%;
  border:2px solid var(--brand,#15af8b); box-shadow:0 0 0 9999px rgba(0,0,0,.55);
  box-sizing:border-box; transition:left .05s linear; }
.crop-hint{ position:absolute; left:8px; bottom:6px; font-size:11px; color:#fff;
  text-shadow:0 0 3px #000; pointer-events:none; }

/* 검수 미리보기(근사) — 렌더 없이 크롭·자막·로고 조합 */
.cprev9{ position:relative; width:170px; aspect-ratio:9/16; border-radius:8px;
  background:#000 center/cover no-repeat; overflow:hidden; margin:8px 0; }
.cprev-sub{ position:absolute; left:6px; right:6px; bottom:10px; text-align:center;
  font-size:13px; font-weight:700; line-height:1.25; word-break:keep-all; }
.cprev-logo{ position:absolute; font-size:10px; font-weight:800; letter-spacing:.5px;
  background:rgba(0,0,0,.45); color:#fff; padding:2px 5px; border-radius:3px; }
.cprev-logo.cp-tl{ top:6px; left:6px; } .cprev-logo.cp-tr{ top:6px; right:6px; }
.cprev-logo.cp-bl{ bottom:34px; left:6px; } .cprev-logo.cp-br{ bottom:34px; right:6px; }

/* ── 공지 배너(대시보드 상단) ── */
.ntc-banner{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 14px;padding:12px 16px;
  border:1px solid var(--line,#e5e7eb);border-left:3px solid var(--warn,#e0a800);border-radius:10px;
  background:var(--warn-wash,#fff8e6);cursor:pointer}
.ntc-banner .ntc-ic{font-size:18px}
.ntc-banner .ins-more{margin-left:auto;color:var(--brand,#5b5bd6);font-weight:600}

/* ── 사용자 가이드 ── */
.gd-guide .gd-step{display:flex;gap:14px;align-items:flex-start;padding:12px 0;border-bottom:1px solid var(--line,#eee)}
.gd-guide .gd-step:last-of-type{border-bottom:0}
.gd-guide .gd-n{flex:0 0 32px;height:32px;border-radius:50%;background:var(--brand,#5b5bd6);color:#fff;
  display:flex;align-items:center;justify-content:center;font-weight:700}
.gd-guide .gd-step h3{margin:2px 0 4px}
.gd-guide .gd-tip{margin-top:14px;padding:10px 14px;border-radius:8px;background:var(--subtle,#f5f6fa)}

/* ── 1:1 문의 답변 블록 ── */
.sup-answer{margin-top:8px;padding:10px 14px;border-radius:8px;background:var(--subtle,#f5f6fa)}

/* ── 토스트 (일시 피드백 · 네이티브 alert 대체) ── */
.toast-host{position:fixed;right:20px;bottom:20px;z-index:2000;display:flex;flex-direction:column;gap:8px;
  align-items:flex-end;pointer-events:none}
.toast{min-width:220px;max-width:380px;padding:11px 15px;border-radius:10px;font-size:14px;line-height:1.45;
  color:#fff;background:#2b2f3a;box-shadow:0 8px 24px rgba(0,0,0,.28);
  opacity:0;transform:translateY(8px);transition:opacity .22s,transform .22s;pointer-events:auto}
.toast.show{opacity:1;transform:translateY(0)}
.toast.info{background:var(--brand,#5b5bd6)}
.toast.error{background:var(--err,#e5484d)}
.toast.ok{background:var(--ok,#30a46c)}

/* 확인/입력 모달 본문 여백 */
.modal-msg{margin:0 0 4px;white-space:normal;line-height:1.55}

/* ── 상단 검색 (버튼 → 인라인 확장 입력) ── */
.hd-search-wrap{display:flex;align-items:center;position:relative}
.hd-search-input{width:0;padding:0;border:0;outline:0;opacity:0;
  height:32px;border-radius:8px;background:var(--surface,#fff);color:inherit;font-size:14px;
  transition:width .22s ease,opacity .18s ease,padding .22s ease,margin .22s ease;
  border:1px solid transparent}
.hd-search-wrap.open .hd-search-input{width:240px;opacity:1;padding:0 12px;margin-left:6px;
  border-color:var(--line,#e5e7eb)}
@media (max-width:640px){ .hd-search-wrap.open .hd-search-input{width:150px} }

/* ── 홈 대시보드 (GUI 홈 대시보드 90:44078 재현) ────────────────── */
.wf-grid{ display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:12px; margin-bottom:4px; }
.wf-card{ position:relative; display:flex; flex-direction:column; min-height:126px; padding:15px 16px 14px;
  background:#2E313A; border:1px solid rgba(241,242,243,.06); border-radius:12px; cursor:pointer; }
.wf-card:hover{ border-color:var(--line-strong); }
.wf-hero{ background:linear-gradient(135deg,#5B4BE0,#8B5CF6); border:0; }
.wf-badge{ align-self:flex-start; font-size:11.5px; padding:3px 10px; border-radius:99px;
  background:rgba(241,242,243,.10); color:var(--ink); }
.wf-hero .wf-badge{ background:rgba(255,255,255,.20); color:#fff; }
.wf-num{ margin-top:auto; text-align:right; font-size:32px; font-weight:700; line-height:1.1; }
.wf-hero .wf-num{ color:#fff; }
.wf-sub{ text-align:right; font-size:12.5px; color:var(--ink-mut); margin-top:2px; }
.wf-hero .wf-sub{ color:rgba(255,255,255,.85); }

.dash-2col{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:24px; margin-top:20px; align-items:start; }
.act-card{ background:#26282F; border:1px solid rgba(241,242,243,.06); border-radius:12px; margin-bottom:var(--gap); overflow:hidden; }
.act-hd{ padding:14px 16px; border-bottom:1px solid var(--line); font-weight:600; font-size:14px; }
.act-list{ max-height:640px; overflow-y:auto; }
.act-item{ padding:11px 16px; border-bottom:1px solid var(--line); cursor:pointer; }
.act-item:last-child{ border-bottom:0; }
.act-item:hover{ background:#1A1B20; }
.act-row1{ display:flex; align-items:center; gap:8px; }
.act-title{ flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:13.5px; }
.act-view{ color:var(--brand); font-size:12.5px; white-space:nowrap; }
.act-row2{ margin-top:5px; display:flex; gap:8px; }
.act-badge{ font-size:11px; padding:2px 8px; border-radius:6px; white-space:nowrap; flex:0 0 auto; }
.b-green{ background:rgba(21,175,139,.18); color:var(--ok); }
.b-orange{ background:rgba(247,144,9,.18); color:var(--warn); }
.b-blue{ background:rgba(85,145,255,.18); color:var(--info); }
.b-gray{ background:var(--card-2); color:var(--ink-mut); }

.qa-row{ display:flex; gap:10px; }
.qa-btn{ flex:1; display:flex; flex-direction:column; align-items:center; gap:8px; padding:15px 4px;
  background:#26282F; border:1px solid rgba(241,242,243,.06); border-radius:12px; color:var(--ink-mut); cursor:pointer; }
.qa-btn:hover{ border-color:var(--line-strong); color:var(--ink); }
.qa-btn.on{ background:#fff; color:#111; border-color:#fff; }
.qa-l{ font-size:12px; }

.kpi-card{ background:#26282F; border:1px solid rgba(241,242,243,.06); border-radius:12px; margin-bottom:var(--gap); padding:16px; }
.kpi-tabbar{ display:inline-flex; gap:2px; background:var(--card-2); border-radius:8px; padding:3px; margin-bottom:8px; }
.kpi-tab{ background:none; border:0; color:var(--ink-mut); padding:5px 14px; border-radius:6px; cursor:pointer; font-size:12.5px; width:auto; }
.kpi-tab.on{ background:#fff; color:#111; }
.kpi-plat{ border-top:1px solid var(--line); padding:12px 0; }
.kpi-plat:first-of-type{ border-top:0; padding-top:4px; }
.kpi-plat-hd{ display:flex; align-items:center; gap:8px; font-size:14px; }
.kpi-dot{ width:16px; height:16px; border-radius:4px; flex:0 0 auto; }
.kpi-yt{ background:#FF0000; } .kpi-ig{ background:#E1306C; } .kpi-tt{ background:#111; }
.kpi-views{ margin-left:auto; }
.kpi-metrics{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin-top:10px; }
.kpi-metric{ background:#1A1B20; border-radius:8px; padding:12px 8px; text-align:center; }
.kpi-metric-l{ font-size:11.5px; color:var(--ink-mut); }
.kpi-metric-v{ font-size:20px; font-weight:700; margin-top:4px; }

/* 결제 내역·청구서 표 — 긴 텍스트가 다른 열을 밀지 않게 고정 레이아웃 + 말줄임 */
.pay-tbl{ table-layout:fixed; width:100%; }
.pay-tbl td, .pay-tbl th{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* 랜딩 배너 — 관리자 '운영/랜딩/배포/알림' 설정값 노출. 비면 렌더 안 함(슬롯 빈 채) */
.ld-banner{ display:flex; align-items:center; gap:12px; padding:12px 16px; margin-bottom:20px;
  border-radius:10px; background:var(--card,#26282F); border:1px solid var(--line); }
.ld-banner-img{ height:36px; border-radius:6px; flex:0 0 auto; }
.ld-banner-t{ font-size:14px; color:var(--ink); }
.pub-ld-banner{ display:flex; align-items:center; gap:12px; justify-content:center;
  padding:12px 16px; background:#EAF1FF; color:#1B2B4A; border-bottom:1px solid #D6E1F5; font-size:14px; }
.pub-ld-banner img{ height:36px; border-radius:6px; }
