/* =========================================================
   STRO Design Tokens & Base Styles
   - Ivory / Charcoal / Restrained Orange (from 기획서)
   - Status colors are separated from brand accent
   ========================================================= */
:root{
  --bg:#F5F6F7;          /* light gray - app background */
  --bg-2:#EEF0F2;        /* subtle fills, hover */
  --bg-3:#E2E5E9;
  --surface:#FFFFFF;
  --surface-2:#FAFBFC;
  --line:#E3E6EA;
  --line-2:#CED3D9;
  --ink:#1A1A1A;         /* charcoal */
  --ink-2:#3D3B37;
  --ink-3:#5F6670;
  --ink-4:#8A9099;       /* tertiary / meta (AA on white for >=14px bold only) */
  /* 브랜드 주색: 공식 로고에서 추출한 네이비 #081D2E */
  --navy:#081D2E;
  --accent:#0E2A42;      /* 버튼·선택 상태 (로고 네이비 기반, 흰 배경 대비 14:1) */
  --accent-hover:#081D2E;
  --accent-weak:#E8EEF4;
  --accent-line:#B9C8D6;
  --accent-ink:#0E2A42;
  /* 보조 포인트: 기존 오렌지 — 필요한 곳에만 */
  --point:#0E2A42;
  --point-weak:#E8EEF4;

  --ok:#2E6F4E;   --ok-bg:#E5F1EA;   --ok-line:#B9D9C6;
  --warn:#8A6100; --warn-bg:#FBF1D6; --warn-line:#EBD59A;
  --err:#B42318;  --err-bg:#FCEBE9;  --err-line:#F2C1BB;
  --info:#2F6690; --info-bg:#E6F1F8; --info-line:#BFD9EA;
  --neutral-bg:#EFECE6;

  --r-sm:6px; --r:8px; --r-lg:12px; --r-xl:16px;
  --sh-1:0 1px 2px rgba(26,26,26,.05);
  --sh-2:0 4px 16px rgba(26,26,26,.07), 0 1px 3px rgba(26,26,26,.05);
  --sh-3:0 18px 50px rgba(26,26,26,.16), 0 2px 8px rgba(26,26,26,.06);

  --font:'Pretendard Variable',Pretendard,-apple-system,'Apple SD Gothic Neo','Noto Sans KR',sans-serif;
  --mono:'JetBrains Mono','IBM Plex Mono',ui-monospace,monospace;

  --topbar-h:60px;
  --sidebar-w:232px;
}
*{box-sizing:border-box}
html,body{margin:0;height:100%}
body{font-family:var(--font);font-size:14px;line-height:1.55;color:var(--ink);background:var(--bg);-webkit-font-smoothing:antialiased;letter-spacing:-.005em;font-feature-settings:"tnum" 0}
button,input,select,textarea{font:inherit;color:inherit;letter-spacing:inherit}
a{color:inherit}
img{display:block;max-width:100%}
h1,h2,h3,h4,p{margin:0}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:4px}
.num{font-variant-numeric:tabular-nums}
.muted{color:var(--ink-3)}
.meta{font-size:12px;color:var(--ink-3)}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.pretty{text-wrap:pretty}

/* ---------- Layout: shell ---------- */
.shell{display:grid;grid-template-columns:var(--sidebar-w) 1fr;grid-template-rows:var(--topbar-h) 1fr;min-height:100vh}
.topbar{grid-column:1/-1;display:flex;align-items:center;gap:16px;padding:0 20px 0 20px;background:var(--surface);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:30}
.sidebar{background:var(--bg);border-right:1px solid var(--line);padding:16px 12px;position:sticky;top:var(--topbar-h);height:calc(100vh - var(--topbar-h));overflow:auto;display:flex;flex-direction:column;gap:2px}
.main{min-width:0;padding:28px 36px 96px}
.page{max-width:1280px;margin:0 auto}
.page.narrow{max-width:880px}
.page.wide{max-width:1480px}

.logo{display:inline-flex;align-items:center;gap:8px;text-decoration:none;cursor:pointer;border:0;background:none;padding:4px;margin:-4px;border-radius:8px;flex:none;min-height:44px}
.logo img{display:block;object-fit:contain}
.logo-plate{display:inline-flex;align-self:flex-start;background:#fff;border-radius:16px;padding:14px 18px}

.nav-item{display:flex;align-items:center;gap:10px;padding:9px 12px;border-radius:var(--r);color:var(--ink-2);text-decoration:none;cursor:pointer;border:0;background:none;width:100%;text-align:left;font-size:14px;position:relative}
.nav-item:hover{background:var(--bg-2)}
.nav-item.active{background:var(--surface);color:var(--ink);font-weight:600;box-shadow:var(--sh-1);outline:1px solid var(--line)}
.nav-item.active svg{color:var(--accent)}
.nav-item .count{margin-left:auto;font-size:11px;font-weight:700;background:var(--point);color:#fff;border-radius:999px;padding:1px 7px;min-width:20px;text-align:center}
.nav-group{font-size:11px;color:var(--ink-4);font-weight:600;letter-spacing:.04em;padding:14px 12px 6px}

/* ---------- Typography blocks ---------- */
.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:24px}
.page-head h1{font-size:24px;font-weight:700;letter-spacing:-.02em;line-height:1.3}
.page-head p{color:var(--ink-3);margin-top:6px}
.eyebrow{font-size:12px;letter-spacing:.08em;color:var(--ink-3);font-weight:600;text-transform:uppercase}
.h2{font-size:18px;font-weight:700;letter-spacing:-.01em}
.h3{font-size:16px;font-weight:700}
.h4{font-size:14px;font-weight:700}
.crumbs{display:flex;gap:6px;align-items:center;font-size:13px;color:var(--ink-3);margin-bottom:10px}
.crumbs a,.crumbs button{color:var(--ink-3);text-decoration:none;background:none;border:0;padding:0;cursor:pointer}
.crumbs a:hover,.crumbs button:hover{color:var(--ink)}

/* ---------- Cards ---------- */
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg)}
.card-pad{padding:20px 22px}
.card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px;border-bottom:1px solid var(--line)}
.card-head h2,.card-head h3{font-size:15px;font-weight:700}
.card-body{padding:18px 20px}
.card.hoverable{transition:border-color .15s, box-shadow .15s;cursor:pointer}
.card.hoverable:hover{border-color:var(--line-2);box-shadow:var(--sh-2)}
.divider{height:1px;background:var(--line);margin:16px 0}
.sec{margin-top:28px}
.sec-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}

/* ---------- Grid helpers ---------- */
.row{display:flex;align-items:center;gap:8px}
.row.wrap{flex-wrap:wrap}
.col{display:flex;flex-direction:column}
.gap-4{gap:4px}.gap-6{gap:6px}.gap-12{gap:12px}.gap-16{gap:16px}.gap-20{gap:20px}.gap-24{gap:24px}
.spacer{flex:1}
.grid{display:grid;gap:16px}
.g2{grid-template-columns:repeat(2,minmax(0,1fr))}
.g3{grid-template-columns:repeat(3,minmax(0,1fr))}
.g4{grid-template-columns:repeat(4,minmax(0,1fr))}
.split{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:24px;align-items:start}
.split-l{display:grid;grid-template-columns:260px minmax(0,1fr);gap:24px;align-items:start}
.sticky{position:sticky;top:calc(var(--topbar-h) + 20px)}

/* ---------- Buttons ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:38px;padding:0 16px;border-radius:var(--r);border:1px solid var(--line-2);background:var(--surface);color:var(--ink);font-weight:600;font-size:14px;cursor:pointer;white-space:nowrap;text-decoration:none;transition:background .12s,border-color .12s,color .12s}
.btn:hover{background:var(--bg-2)}
.btn:disabled,.btn[aria-disabled="true"]{opacity:.45;cursor:not-allowed}
.btn.primary{background:var(--accent);border-color:var(--accent);color:#fff}
.btn.primary:hover{background:var(--accent-hover);border-color:var(--accent-hover)}
.btn.dark{background:var(--ink);border-color:var(--ink);color:#fff}
.btn.dark:hover{background:#333}
.btn.ghost{border-color:transparent;background:transparent}
.btn.ghost:hover{background:var(--bg-2)}
.btn.danger{color:var(--err);border-color:var(--err-line)}
.btn.danger:hover{background:var(--err-bg)}
.btn.danger-solid{background:var(--err);border-color:var(--err);color:#fff}
.btn.sm{height:30px;padding:0 10px;font-size:13px;border-radius:6px}
.btn.lg{height:46px;padding:0 22px;font-size:15px}
.btn.block{width:100%}
.btn.icon{width:38px;padding:0}
.btn.sm.icon{width:30px}
.link{color:var(--accent-ink);font-weight:600;text-decoration:none;cursor:pointer;background:none;border:0;padding:0}
.link:hover{text-decoration:underline}
.link.muted{color:var(--ink-3);font-weight:500}

/* ---------- Form ---------- */
.field{display:flex;flex-direction:column;gap:6px;min-width:0}
.field>label,.label{font-size:13px;font-weight:600;color:var(--ink-2);display:flex;align-items:center;gap:6px}
.req{color:var(--accent);font-weight:700}
.opt{font-size:11px;font-weight:600;color:var(--ink-3);background:var(--bg-2);border-radius:4px;padding:1px 6px}
.hint{font-size:12px;color:var(--ink-3)}
.err-msg{font-size:12px;color:var(--err);display:flex;gap:4px;align-items:center}
.input,.select,.textarea{width:100%;height:40px;padding:0 12px;border:1px solid var(--line-2);border-radius:var(--r);background:var(--surface);font-size:14px;transition:border-color .12s, box-shadow .12s}
.textarea{height:auto;min-height:92px;padding:10px 12px;resize:vertical;line-height:1.55}
.input::placeholder,.textarea::placeholder{color:#A8A49B}
.input:hover,.select:hover,.textarea:hover{border-color:#BDB7AA}
.input:focus,.select:focus,.textarea:focus{outline:none;border-color:var(--ink);box-shadow:0 0 0 3px rgba(26,26,26,.08)}
.input.invalid,.select.invalid,.textarea.invalid{border-color:var(--err);box-shadow:0 0 0 3px rgba(180,35,24,.08)}
.input-group{display:flex;align-items:center;border:1px solid var(--line-2);border-radius:var(--r);background:var(--surface);height:40px;padding:0 12px;gap:8px}
.input-group:focus-within{border-color:var(--ink);box-shadow:0 0 0 3px rgba(26,26,26,.08)}
.input-group input{border:0;outline:0;flex:1;height:100%;background:transparent;min-width:0}
.input-group .affix{color:var(--ink-3);font-size:13px;white-space:nowrap}
.select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B6862' stroke-width='2.4'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;padding-right:34px}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 20px}
.form-grid .full{grid-column:1/-1}
.check{display:flex;align-items:flex-start;gap:10px;cursor:pointer;font-size:14px}
.check input{width:18px;height:18px;margin:1px 0 0;accent-color:var(--accent);flex:none}
.radio-card{display:flex;gap:12px;align-items:flex-start;padding:14px 16px;border:1px solid var(--line-2);border-radius:var(--r-lg);cursor:pointer;background:var(--surface);transition:border-color .12s, background .12s}
.radio-card:hover{border-color:#BDB7AA}
.radio-card.on{border-color:var(--accent);background:var(--accent-weak);box-shadow:0 0 0 1px var(--accent) inset}
.radio-card input{accent-color:var(--accent);margin-top:3px}
.switch{position:relative;width:38px;height:22px;flex:none;border-radius:999px;background:var(--line-2);border:0;cursor:pointer;transition:background .15s}
.switch::after{content:"";position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.2);transition:transform .15s}
.switch[aria-checked="true"]{background:var(--accent)}
.switch[aria-checked="true"]::after{transform:translateX(16px)}

/* ---------- Chips / tags / badges ---------- */
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 14px;border-radius:999px;border:1px solid var(--line-2);background:var(--surface);font-size:13px;font-weight:500;color:var(--ink-2);cursor:pointer;transition:all .12s;white-space:nowrap}
.chip:hover{border-color:#BDB7AA;background:var(--surface-2)}
.chip.on{background:var(--accent-weak);border-color:var(--accent);color:var(--accent-ink);font-weight:600}
.chip.sm{height:28px;padding:0 10px;font-size:12px}
.chip:disabled{opacity:.4;cursor:not-allowed}
.tag{display:inline-flex;align-items:center;gap:4px;height:24px;padding:0 9px;border-radius:6px;background:var(--bg-2);color:var(--ink-2);font-size:12px;font-weight:500;white-space:nowrap}
.tag.outline{background:transparent;border:1px solid var(--line-2)}
.tag.accent{background:var(--accent-weak);color:var(--accent-ink)}
.badge{display:inline-flex;align-items:center;gap:5px;height:22px;padding:0 8px;border-radius:999px;font-size:12px;font-weight:600;white-space:nowrap;background:var(--neutral-bg);color:var(--ink-2)}
.badge::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;opacity:.85}
.badge.plain::before{display:none}
.badge.ok{background:var(--ok-bg);color:var(--ok)}
.badge.warn{background:var(--warn-bg);color:var(--warn)}
.badge.err{background:var(--err-bg);color:var(--err)}
.badge.info{background:var(--info-bg);color:var(--info)}
.badge.accent{background:var(--accent-weak);color:var(--accent-ink)}
.badge.dark{background:var(--ink);color:#fff}
.src{display:inline-flex;align-items:center;gap:4px;font-size:11px;color:var(--ink-3);border:1px dashed var(--line-2);border-radius:4px;padding:0 6px;height:20px;white-space:nowrap}
.demo-chip{display:inline-flex;align-items:center;gap:4px;font-size:11px;font-weight:700;letter-spacing:.04em;color:var(--warn);background:var(--warn-bg);border:1px solid var(--warn-line);border-radius:4px;padding:0 6px;height:20px}

/* ---------- Alerts ---------- */
.alert{display:flex;gap:12px;align-items:flex-start;padding:12px 14px;border-radius:var(--r);border:1px solid var(--line);background:var(--surface-2);font-size:13px;color:var(--ink-2)}
.alert svg{flex:none;margin-top:1px}
.alert.info{background:var(--info-bg);border-color:var(--info-line);color:#1F3F6B}
.alert.warn{background:var(--warn-bg);border-color:var(--warn-line);color:#5E4300}
.alert.err{background:var(--err-bg);border-color:var(--err-line);color:#8A1B12}
.alert.ok{background:var(--ok-bg);border-color:var(--ok-line);color:#1F5038}
.alert.accent{background:var(--accent-weak);border-color:var(--accent-line);color:var(--accent-ink)}
.alert b{font-weight:700}

/* ---------- Tables ---------- */
.table{width:100%;border-collapse:separate;border-spacing:0;font-size:13px}
.table th{font-weight:600;color:var(--ink-3);text-align:left;padding:10px 14px;border-bottom:1px solid var(--line);background:var(--surface-2);white-space:nowrap;font-size:12px}
.table td{padding:12px 14px;border-bottom:1px solid var(--line);vertical-align:middle}
.table tr:last-child td{border-bottom:0}
.table tbody tr.click{cursor:pointer}
.table tbody tr.click:hover td{background:var(--surface-2)}
.table-wrap{overflow-x:auto}

/* ---------- Tabs ---------- */
.tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);margin-bottom:20px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none}
.tab{height:42px;padding:0 14px;border:0;background:none;cursor:pointer;color:var(--ink-3);font-weight:600;font-size:14px;border-bottom:2px solid transparent;margin-bottom:-1px;display:flex;align-items:center;gap:6px;white-space:nowrap}
.tab:hover{color:var(--ink)}
.tab[aria-selected="true"]{color:var(--ink);border-color:var(--ink)}
.tab .n{font-size:11px;background:var(--bg-2);color:var(--ink-2);padding:1px 7px;border-radius:999px}
.tab[aria-selected="true"] .n{background:var(--accent);color:#fff}
.seg{display:inline-flex;background:var(--bg-2);border-radius:var(--r);padding:3px;gap:2px}
.seg button{border:0;background:none;height:30px;padding:0 12px;border-radius:6px;font-size:13px;font-weight:600;color:var(--ink-3);cursor:pointer}
.seg button[aria-pressed="true"]{background:var(--surface);color:var(--ink);box-shadow:var(--sh-1)}

/* ---------- Avatar / media ---------- */
.avatar{border-radius:50%;object-fit:cover;background:var(--bg-3);flex:none}
.thumb{border-radius:var(--r);object-fit:cover;background:var(--bg-3);width:100%}
.ph{display:flex;align-items:center;justify-content:center;background:repeating-linear-gradient(135deg,var(--bg-2) 0 8px,var(--bg) 8px 16px);color:var(--ink-3);font-size:12px;border-radius:var(--r);border:1px dashed var(--line-2);text-align:center;font-family:var(--mono)}
.mono-logo{display:flex;align-items:center;justify-content:center;border-radius:10px;font-weight:800;letter-spacing:.02em;flex:none}

/* ---------- Stepper ---------- */
.stepper{display:flex;flex-direction:column;gap:2px}
.step{display:flex;gap:12px;align-items:center;padding:10px 12px;border-radius:var(--r);cursor:pointer;border:0;background:none;text-align:left;width:100%;color:var(--ink-3)}
.step:hover{background:var(--bg-2)}
.step .dot{width:26px;height:26px;border-radius:50%;border:1.5px solid var(--line-2);display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;background:var(--surface);flex:none}
.step.done .dot{background:var(--ink);border-color:var(--ink);color:#fff}
.step.current{color:var(--ink);background:var(--surface);box-shadow:var(--sh-1);outline:1px solid var(--line)}
.step.current .dot{border-color:var(--accent);color:var(--accent);border-width:2px}
.step.error .dot{border-color:var(--err);color:var(--err)}
.step .t{font-weight:600;font-size:14px}
.step .s{font-size:12px;color:var(--ink-3)}
.hstepper{display:flex;align-items:center;gap:0}
.hstep{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--ink-4);font-weight:600}
.hstep .dot{width:22px;height:22px;border-radius:50%;border:1.5px solid var(--line-2);display:flex;align-items:center;justify-content:center;font-size:11px}
.hstep.done{color:var(--ink-2)} .hstep.done .dot{background:var(--ink);border-color:var(--ink);color:#fff}
.hstep.current{color:var(--ink)} .hstep.current .dot{border-color:var(--accent);color:var(--accent)}
.hstep-line{flex:1;height:1.5px;background:var(--line-2);margin:0 10px;min-width:16px}
.progress{height:6px;border-radius:999px;background:var(--bg-3);overflow:hidden}
.progress>i{display:block;height:100%;background:var(--accent);border-radius:999px;transition:width .3s}

/* Wizard layout */
.wizard{display:grid;grid-template-columns:240px minmax(0,1fr) 320px;gap:24px;align-items:start}
.wizard.two{grid-template-columns:240px minmax(0,1fr)}
.wizard-foot{position:sticky;bottom:0;z-index:5;display:flex;align-items:center;gap:10px;padding:14px 20px;background:rgba(255,255,255,.96);border-top:1px solid var(--line);border-radius:0 0 var(--r-lg) var(--r-lg);backdrop-filter:blur(4px)}
.form-sec{padding:24px 26px;border-bottom:1px solid var(--line)}
.form-sec:last-of-type{border-bottom:0}
.form-sec h3{font-size:15px;font-weight:700;margin-bottom:4px}
.form-sec .desc{font-size:13px;color:var(--ink-3);margin-bottom:18px}
.save-state{font-size:12px;color:var(--ink-3);display:flex;align-items:center;gap:6px}

/* ---------- Modal / drawer / toast ---------- */
.overlay{position:fixed;inset:0;background:rgba(26,26,26,.38);z-index:100;display:flex;align-items:center;justify-content:center;padding:24px;animation:fade .15s}
.modal{background:var(--surface);border-radius:var(--r-xl);box-shadow:var(--sh-3);width:min(560px,100%);max-height:calc(100vh - 48px);display:flex;flex-direction:column;animation:pop .18s ease-out}
.modal.lg{width:min(760px,100%)}
.modal.xl{width:min(1000px,100%)}
.modal-head{padding:20px 24px 12px;display:flex;align-items:flex-start;gap:12px}
.modal-head h2{font-size:18px;font-weight:700}
.modal-body{padding:4px 24px 20px;overflow:auto}
.modal-foot{padding:14px 24px;border-top:1px solid var(--line);display:flex;gap:8px;justify-content:flex-end;align-items:center}
.drawer{position:fixed;top:0;right:0;bottom:0;width:min(520px,100%);background:var(--surface);box-shadow:var(--sh-3);z-index:101;display:flex;flex-direction:column;animation:slide .2s ease-out}
@keyframes fade{from{opacity:0}}
@keyframes pop{from{opacity:0;transform:translateY(8px) scale(.98)}}
@keyframes slide{from{transform:translateX(30px);opacity:0}}
.toasts{position:fixed;left:50%;bottom:28px;transform:translateX(-50%);display:flex;flex-direction:column;gap:8px;z-index:200;align-items:center}
.toast{background:var(--ink);color:#fff;padding:11px 16px;border-radius:10px;font-size:13px;box-shadow:var(--sh-3);display:flex;gap:10px;align-items:center;animation:pop .2s}
.toast.err{background:var(--err)}
.toast .demo{font-size:11px;background:rgba(255,255,255,.16);padding:1px 6px;border-radius:4px}

/* ---------- Dropdown ---------- */
.dropdown{position:absolute;top:calc(100% + 8px);right:0;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:var(--sh-3);z-index:50;min-width:240px;padding:6px;animation:pop .15s}
.menu-item{display:flex;gap:10px;align-items:center;padding:9px 10px;border-radius:6px;cursor:pointer;border:0;background:none;width:100%;text-align:left;font-size:13px}
.menu-item:hover{background:var(--bg-2)}

/* ---------- States ---------- */
.empty{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:48px 24px;gap:10px;color:var(--ink-3)}
.empty .ico{width:52px;height:52px;border-radius:14px;background:var(--bg-2);display:flex;align-items:center;justify-content:center;color:var(--ink-3);margin-bottom:4px}
.empty h3{font-size:16px;color:var(--ink);font-weight:700}
.empty p{max-width:420px;font-size:13px}
.skel{background:linear-gradient(90deg,var(--bg-2) 0%,var(--bg-3) 50%,var(--bg-2) 100%);background-size:200% 100%;animation:sk 1.2s infinite;border-radius:6px}
@keyframes sk{to{background-position:-200% 0}}
.spin{width:14px;height:14px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:rot .7s linear infinite;display:inline-block}
@keyframes rot{to{transform:rotate(360deg)}}

/* ---------- Stat / KPI ---------- */
.stat{padding:16px 18px;display:flex;flex-direction:column;gap:6px;cursor:pointer;border:0;background:none;text-align:left;border-radius:var(--r-lg)}
.stat:hover{background:var(--surface-2)}
.stat .l{font-size:13px;color:var(--ink-3);font-weight:500}
.stat .v{font-size:26px;font-weight:700;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.stat .d{font-size:12px;color:var(--ink-3)}
.kpis{display:grid;grid-template-columns:repeat(4,1fr)}
.kpis>*+*{border-left:1px solid var(--line)}

/* ---------- Kanban-ish status line ---------- */
.flow{display:flex;align-items:center;gap:0;overflow-x:auto;padding:4px 0}
.flow .st{display:flex;flex-direction:column;align-items:center;gap:6px;min-width:84px;font-size:12px;color:var(--ink-4);font-weight:600;position:relative;flex:1}
.flow .st .d{width:12px;height:12px;border-radius:50%;background:var(--bg-3);border:2px solid var(--bg-3);position:relative;z-index:1}
.flow .st::before{content:"";position:absolute;top:5px;left:-50%;right:50%;height:2px;background:var(--bg-3)}
.flow .st:first-child::before{display:none}
.flow .st.done{color:var(--ink-2)} .flow .st.done .d{background:var(--ink);border-color:var(--ink)} .flow .st.done::before{background:var(--ink)}
.flow .st.cur{color:var(--accent-ink)} .flow .st.cur .d{background:#fff;border-color:var(--accent);box-shadow:0 0 0 4px var(--accent-weak)} .flow .st.cur::before{background:var(--ink)}
.flow .st.bad{color:var(--err)} .flow .st.bad .d{background:#fff;border-color:var(--err)}

/* ---------- Timeline ---------- */
.tl{display:flex;flex-direction:column;gap:0}
.tl-item{display:grid;grid-template-columns:18px 1fr;gap:12px;position:relative;padding-bottom:16px}
.tl-item::before{content:"";position:absolute;left:8px;top:18px;bottom:0;width:1.5px;background:var(--line)}
.tl-item:last-child::before{display:none}
.tl-item .d{width:18px;height:18px;border-radius:50%;background:var(--surface);border:2px solid var(--line-2);margin-top:2px}
.tl-item.on .d{border-color:var(--accent)}
.tl-item.done .d{background:var(--ink);border-color:var(--ink)}

/* ---------- Chat ---------- */
.chat{display:flex;flex-direction:column;gap:12px}
.bubble{max-width:72%;padding:10px 14px;border-radius:14px;font-size:14px;line-height:1.55;background:var(--bg-2);white-space:pre-wrap}
.bubble.me{align-self:flex-end;background:var(--ink);color:#fff;border-bottom-right-radius:4px}
.bubble.them{align-self:flex-start;border-bottom-left-radius:4px;background:var(--surface);border:1px solid var(--line)}
.bubble.sys{align-self:center;background:transparent;color:var(--ink-3);font-size:12px;padding:2px 8px;max-width:90%;text-align:center}
.bubble.admin{align-self:flex-start;background:var(--info-bg);border:1px solid var(--info-line)}

/* ---------- Demo bar ---------- */
.demo-fab{position:fixed;right:16px;bottom:16px;z-index:150;display:flex;align-items:center;gap:8px;height:36px;padding:0 14px;border-radius:999px;background:#2A2825;color:#F5F2EB;border:0;font-size:12px;font-weight:700;letter-spacing:.02em;cursor:pointer;box-shadow:var(--sh-3)}
.demo-fab .dot{width:7px;height:7px;border-radius:50%;background:#F2B53A}
.demo-panel{position:fixed;right:16px;bottom:60px;max-height:calc(100vh - 80px);overflow:auto;z-index:150;width:320px;background:#2A2825;color:#F5F2EB;border-radius:14px;box-shadow:var(--sh-3);padding:16px;font-size:13px;animation:pop .15s}
.demo-panel h4{font-size:12px;letter-spacing:.06em;color:#B9B3A6;font-weight:700;margin:12px 0 8px}
.demo-panel h4:first-child{margin-top:0}
.demo-panel .db{display:flex;width:100%;align-items:center;gap:8px;padding:8px 10px;border-radius:8px;border:1px solid #454139;background:#34312C;color:#F5F2EB;cursor:pointer;font-size:13px;margin-bottom:6px;text-align:left}
.demo-panel .db:hover{background:#403C36}
.demo-panel .db.on{border-color:#F2B53A}
.demo-panel .db small{margin-left:auto;color:#A59F92;font-size:11px}
.demo-panel p{color:#B9B3A6;font-size:12px;line-height:1.5}

/* ---------- Gate ---------- */
.gate{min-height:100vh;display:flex;flex-direction:column;background:var(--bg)}
.gate-top{display:flex;align-items:center;justify-content:space-between;padding:22px 40px}
.gate-main{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px 24px 64px}
.gate-cards{display:grid;grid-template-columns:repeat(2,minmax(0,440px));gap:24px;margin-top:40px;width:100%;justify-content:center}
.role-card{position:relative;text-align:left;background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:0;cursor:pointer;overflow:hidden;display:flex;flex-direction:column;transition:border-color .15s, box-shadow .15s, transform .15s}
.role-card:hover{border-color:var(--ink);box-shadow:var(--sh-2);transform:translateY(-2px)}
.role-card:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.role-card .img{height:220px;display:grid;gap:4px;padding:4px;background:var(--bg-2);overflow:hidden;flex:none}
.role-card .img img{min-height:0;min-width:0}
.role-card .img img{width:100%;height:100%;object-fit:cover;border-radius:14px}
.role-card .body{padding:24px 26px 26px;display:flex;flex-direction:column;gap:8px}
.role-card h2{font-size:22px;font-weight:700;letter-spacing:-.02em}
.role-card p{color:var(--ink-3);font-size:15px}
.role-card .cta{margin-top:14px;display:inline-flex;align-items:center;gap:8px;height:44px;padding:0 18px;border-radius:10px;background:var(--ink);color:#fff;font-weight:600;align-self:flex-start;font-size:14px}
.role-card:hover .cta{background:var(--accent)}
.role-card .cta{background:var(--navy)}
.gate-foot{display:flex;gap:20px;justify-content:center;align-items:center;padding:22px;border-top:1px solid var(--line);font-size:12px;color:var(--ink-3)}
.gate-foot a{color:var(--ink-3);text-decoration:none;cursor:pointer}
.gate-foot a:hover{color:var(--ink)}

/* ---------- Auth ---------- */
.auth{min-height:100vh;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);background:var(--bg)}
.auth-side{background:var(--bg-2);color:var(--ink);border-right:1px solid var(--line);padding:40px 56px;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}
.auth-form{display:flex;align-items:center;justify-content:center;padding:40px}
.auth-box{width:100%;max-width:420px}

/* ---------- Creator card ---------- */
.cand{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:0}
.cand-left{padding:20px 22px;display:flex;flex-direction:column;gap:14px}
.cand-right{padding:20px 22px;background:var(--surface-2);border-left:1px solid var(--line);display:flex;flex-direction:column;gap:12px;border-radius:0 var(--r-lg) var(--r-lg) 0}
.reason{font-size:14px;line-height:1.65;color:var(--ink);text-wrap:pretty}
.reason-list{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:8px}
.reason-list li{display:grid;grid-template-columns:16px 1fr;gap:8px;font-size:13.5px;line-height:1.6;color:var(--ink-2)}
.reason-list li svg{margin-top:4px;color:var(--accent)}
.kv{display:grid;grid-template-columns:auto 1fr;gap:6px 14px;font-size:13px}
.kv dt{color:var(--ink-3)}
.kv dd{margin:0;color:var(--ink);font-weight:500}
.metric{display:flex;flex-direction:column;gap:2px}
.metric .v{font-size:16px;font-weight:700;font-variant-numeric:tabular-nums}
.metric .l{font-size:12px;color:var(--ink-3)}

.compare-tray{position:fixed;bottom:20px;left:50%;transform:translateX(calc(-50% + var(--sidebar-w)/2));z-index:40;background:var(--ink);color:#fff;border-radius:14px;padding:10px 10px 10px 18px;display:flex;align-items:center;gap:14px;box-shadow:var(--sh-3);animation:pop .2s}
.compare-tray .btn{height:34px}

/* ---------- Misc ---------- */
.scroll-x{overflow-x:auto}
.clamp2{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.clamp3{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.pill-count{font-size:11px;background:var(--bg-2);border-radius:999px;padding:1px 8px;color:var(--ink-3);font-weight:600}
.dot-sep::before{content:"·";margin:0 6px;color:var(--ink-4)}
.kbd{font-family:var(--mono);font-size:11px;border:1px solid var(--line-2);border-bottom-width:2px;border-radius:4px;padding:0 5px;background:var(--surface)}
.notice-bar{background:var(--warn-bg);border-bottom:1px solid var(--warn-line);color:#5E4300;font-size:12px;padding:6px 20px;text-align:center}
.ribbon{font-size:11px;color:var(--ink-3)}
.upload{border:1.5px dashed var(--line-2);border-radius:var(--r-lg);padding:18px;display:flex;align-items:center;gap:14px;background:var(--surface-2);cursor:pointer}
.upload:hover{border-color:var(--ink-3)}
.channel-ico{width:30px;height:30px;border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:800;flex:none;color:#fff}

@media (max-width:1360px){
  :root{--sidebar-w:212px}
  .main{padding:24px 26px 96px}
  .wizard{grid-template-columns:210px minmax(0,1fr) 290px}
  .split{grid-template-columns:minmax(0,1fr) 300px}
}

/* ---------- Landing (대문) ---------- */
.lp-wrap{max-width:1200px;margin:0 auto;padding:0 40px}
.lp-top{position:sticky;top:0;z-index:40;background:rgba(247,245,240,.94);backdrop-filter:blur(6px);border-bottom:1px solid var(--line)}
.lp-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:56px;padding-top:72px;padding-bottom:88px;align-items:center}
.lp-h1{font-size:48px;line-height:1.28;font-weight:700;letter-spacing:-.035em;text-wrap:balance}
.lp-h1 em{font-style:normal;color:var(--accent)}
.lp-lead{font-size:17px;line-height:1.75;color:var(--ink-2);max-width:520px}
.lp-hero-visual{position:relative;height:520px}
.lp-hv-main{position:absolute;right:0;top:0;width:82%;height:100%;object-fit:cover;border-radius:20px}
.lp-float{position:absolute;left:0;top:64px;width:340px;padding:18px;box-shadow:var(--sh-3)}
.lp-float2{position:absolute;right:24px;bottom:28px;padding:12px 14px;box-shadow:var(--sh-2)}
.lp-sec{padding:88px 0}
.lp-sec-head{margin-bottom:36px}
.lp-h2{font-size:32px;line-height:1.35;font-weight:700;letter-spacing:-.025em;margin-top:10px}
.lp-step{overflow:hidden}
.lp-step img{width:100%;aspect-ratio:16/10;object-fit:cover}
.lp-num{font-size:13px;font-weight:800;color:var(--accent);letter-spacing:.06em}
.lp-dark{background:var(--ink)}
.lp-why{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:56px;align-items:start}
.lp-why-card{padding:22px;border:1px solid #37342F;border-radius:14px;background:#211F1C}
.lp-role{display:grid;grid-template-columns:200px 1fr;overflow:hidden}
.lp-role img{width:100%;height:100%;object-fit:cover}
.lp-fields{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.lp-field{position:relative;aspect-ratio:4/3;border-radius:14px;overflow:hidden;background:var(--bg-2)}
.lp-field img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.lp-field span{position:absolute;left:12px;bottom:12px;background:rgba(255,255,255,.95);padding:5px 11px;border-radius:999px;font-size:13px;font-weight:700}
.lp-cta{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:36px 40px;background:var(--surface);border:1px solid var(--line);border-radius:20px}
@media (max-width:1360px){ .lp-h1{font-size:42px} .lp-nav{display:none!important} }

/* ---------- brand accents ---------- */
.lp-h1 em{color:var(--point)!important}
.lp-num{color:var(--point)!important}
.reason-list li svg{color:var(--point)}
.dot-badge{position:absolute;top:8px;right:8px;width:8px;height:8px;border-radius:50%;background:var(--point);border:2px solid #fff}
.gate-logo{display:flex;justify-content:center;margin-bottom:22px}
.gate-foot .foot-logo{display:flex;align-items:center}
.show-mobile{display:none!important}

/* ---------- drawer ---------- */
.drawer-overlay{position:fixed;inset:0;z-index:120;background:rgba(8,29,46,.36);animation:fade .15s}
.drawer-nav{position:absolute;top:0;left:0;bottom:0;width:min(300px,86vw);background:var(--bg);display:flex;flex-direction:column;box-shadow:var(--sh-3);animation:slideL .2s ease-out;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)}
@keyframes slideL{from{transform:translateX(-24px);opacity:0}}
.drawer-nav .nav-item{min-height:46px}

/* ---------- sheet / mobile wizard ---------- */
.wz-mobile-head{display:none}
.summary-toggle{display:none}
.sheet-filter .field{margin-bottom:14px}

/* ---------- text wrapping ---------- */
b,h1,h2,h3,p,td,.meta,dd,.bubble,a,.link{overflow-wrap:break-word;word-break:keep-all}
.url-text,.bubble{overflow-wrap:anywhere}
.btn,.chip,.tag,.badge,.cta,.demo-fab,.nav-item{word-break:keep-all;overflow-wrap:normal}
.crumbs>span{min-width:0}
input,textarea,select{scroll-margin-top:90px;scroll-margin-bottom:120px}
html{scroll-padding-bottom:110px}

/* ========== ≤1023px : 태블릿/좁은 화면 ========== */
@media (max-width:1023px){
  .shell{grid-template-columns:1fr}
  .topbar{padding:0 12px;gap:6px;padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right))}
  .main{padding:20px 20px 120px}
  .split,.split-l,.m1{grid-template-columns:minmax(0,1fr)!important}
  .split>aside.sticky,.split>.sticky{position:static}
  .split-l>aside{display:none}
  .wizard,.wizard.two{grid-template-columns:minmax(0,1fr)!important}
  .wizard>nav{display:none}
  .wizard>aside{display:none}
  .wz-mobile-head{display:block}
  .summary-toggle{display:block}
  .facts{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .kpis{grid-template-columns:repeat(2,1fr)}
  .kpis>*{border-left:0!important;border-top:1px solid var(--line)}
  .kpis>*:nth-child(-n+2){border-top:0}
  .kpis>*:nth-child(2n){border-left:1px solid var(--line)!important}
  .compare-tray{left:12px;right:12px;transform:none;justify-content:space-between;bottom:calc(12px + env(safe-area-inset-bottom))}
  .auth{grid-template-columns:1fr}
  .auth-side{display:none}
  .auth-mobile-logo{display:flex!important}
  .lp-hero{grid-template-columns:1fr;gap:32px;padding-top:40px;padding-bottom:56px}
  .lp-why{grid-template-columns:1fr;gap:28px}
  .hstepper{display:none!important}
  .hstep-mobile{display:inline-flex!important}
  .admin-pool{position:static!important;max-height:none!important}
  .aside-first>aside{order:-1}
}
.auth-mobile-logo{display:none;margin-bottom:20px}
.hstep-mobile{display:none}

/* ========== ≤767px : 모바일 ========== */
@media (max-width:767px){
  body{font-size:15px}
  .hide-mobile{display:none!important}
  .show-mobile{display:flex!important}
  .gate-top-role{justify-content:flex-end}
  .gate-logo{margin-bottom:14px}
  .main{padding:16px 14px calc(120px + env(safe-area-inset-bottom))}
  .page-head{flex-direction:column;align-items:stretch;gap:12px}
  .page-head h1{font-size:21px}
  .page-head>.row{flex-wrap:wrap}
  .page-head>.row>.btn{flex:1 1 auto}
  .crumbs{flex-wrap:wrap}
  .grid.g2,.grid.g3{grid-template-columns:minmax(0,1fr)}
  .grid.g4{grid-template-columns:repeat(2,minmax(0,1fr))}
  .form-grid{grid-template-columns:minmax(0,1fr)}
  .facts{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .card-pad{padding:16px}
  .card-head{padding:14px 16px;flex-wrap:wrap}
  .card-body{padding:16px}
  .form-sec{padding:20px 16px}
  .toolbar{flex-wrap:wrap}
  .toolbar>.input-group,.toolbar>form,.toolbar>.select{width:100%!important;max-width:none!important;flex:1 1 100%}
  .wrap-m{flex-wrap:wrap}
  .wrap-m>.select,.wrap-m>.input{width:100%!important;flex:1 1 100%}

  /* touch targets & inputs */
  .btn{min-height:44px;height:auto;padding-top:8px;padding-bottom:8px}
  .btn.sm{min-height:44px;font-size:14px;padding:0 12px}
  .btn.icon,.btn.sm.icon{min-width:44px;width:44px}
  .chip,.chip.sm{min-height:44px;height:auto;font-size:14px}
  .input,.select,.input-group{height:48px;font-size:16px}
  .input-group input{font-size:16px}
  .textarea{font-size:16px}
  .check input{width:22px;height:22px}
  .check{min-height:44px;align-items:center}
  .tab{height:46px}
  .seg button{min-height:40px}
  .chips{gap:8px}
  .nav-item{min-height:46px}
  .menu-item{min-height:44px}

  /* candidate card */
  .cand{grid-template-columns:minmax(0,1fr)}
  .cand-right{border-left:0;border-top:1px solid var(--line);border-radius:0 0 var(--r-lg) var(--r-lg)}
  .cand-left,.cand-right{padding:16px}
  .cand-actions{flex-wrap:wrap}
  .cand-actions>.btn{flex:1 1 auto}

  /* tables → card list */
  table.table:not(.no-rwd) thead{display:none}
  table.table:not(.no-rwd),table.table:not(.no-rwd) tbody,table.table:not(.no-rwd) tr,table.table:not(.no-rwd) td{display:block;width:100%}
  table.table:not(.no-rwd) tr{padding:12px 16px;border-bottom:1px solid var(--line)}
  table.table:not(.no-rwd) tr:last-child{border-bottom:0}
  table.table:not(.no-rwd) td{border:0!important;padding:3px 0!important;display:flex;gap:12px;justify-content:space-between;align-items:center;text-align:right!important;background:none!important}
  table.table:not(.no-rwd) td::before{content:attr(data-label);color:var(--ink-3);font-size:12px;font-weight:600;flex:none;text-align:left}
  table.table:not(.no-rwd) td:first-child{display:block;text-align:left!important;padding-bottom:6px!important}
  table.table:not(.no-rwd) td:first-child::before{display:none}
  table.table:not(.no-rwd) td[data-label=""]::before{display:none}
  table.table:not(.no-rwd) td:empty{display:none}
  .table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}

  /* modal → sheet / full screen */
  .overlay{padding:0;align-items:flex-end}
  .modal{width:100%!important;max-height:92dvh;border-radius:18px 18px 0 0;animation:sheet .22s ease-out}
  .modal.lg,.modal.xl{max-height:100dvh;height:100dvh;border-radius:0}
  .modal-head{padding:16px 16px 10px;padding-top:max(16px,env(safe-area-inset-top))}
  .modal-body{padding:4px 16px 16px}
  .modal-foot{padding:12px 16px calc(12px + env(safe-area-inset-bottom));flex-wrap:wrap}
  .modal-foot>.btn{flex:1 1 auto}
  .dropdown{position:fixed;left:8px!important;right:8px!important;top:calc(var(--topbar-h) + 4px);width:auto!important;max-height:70dvh;overflow:auto}

  /* wizard footer: in-flow sticky, safe area */
  .wizard-foot{padding:10px 12px calc(10px + env(safe-area-inset-bottom));border-radius:0;flex-wrap:wrap}
  .wizard-foot>.btn{flex:1 1 auto}
  .wizard-foot>.spacer{display:none}

  /* gate */
  .gate-top{padding:12px 16px}
  .gate-main{padding:20px 16px 36px;justify-content:flex-start}
  .gate-main h1{font-size:23px!important;line-height:1.35}
  .gate-cards{grid-template-columns:1fr;gap:12px;margin-top:20px}
  .role-card{flex-direction:row;border-radius:16px;align-items:stretch}
  .role-card .img{height:auto;width:104px;padding:3px;grid-template-columns:1fr!important;grid-template-rows:1fr!important}
  .role-card .img img:not(:first-child){display:none}
  .role-card .img img{grid-row:auto!important;grid-column:auto!important;border-radius:12px}
  .role-card .body{padding:14px 14px 14px 12px;gap:4px}
  .role-card h2{font-size:17px}
  .role-card p{font-size:13px}
  .role-card .cta{margin-top:8px;height:40px;padding:0 14px;font-size:13px}
  .role-card .eyebrow{display:none}
  .gate-foot{flex-wrap:wrap;gap:12px 16px;padding:18px 16px calc(18px + env(safe-area-inset-bottom))}

  /* landing */
  .lp-wrap{padding:0 16px}
  .lp-h1{font-size:30px}
  .lp-lead{font-size:15px}
  .lp-hero-visual{height:auto;display:flex;flex-direction:column;gap:12px}
  .lp-hv-main{position:static;width:100%;height:200px}
  .lp-float{position:static;width:100%}
  .lp-float2{display:none!important}
  .lp-sec{padding:52px 0}
  .lp-h2{font-size:23px}
  .lp-role{grid-template-columns:1fr}
  .lp-role img{height:160px}
  .lp-role>div{padding:20px!important}
  .lp-fields{grid-template-columns:repeat(2,1fr)}
  .lp-cta{flex-direction:column;align-items:stretch;padding:24px 20px}
  .lp-cta .btn{width:100%}
  .lp-hero .btn.lg{flex:1 1 auto}

  /* auth */
  .auth-form{padding:20px 16px 40px;align-items:flex-start}

  /* profile head */
  .prof-head{grid-template-columns:88px minmax(0,1fr)!important;gap:14px!important;padding:16px!important}
  .prof-head>img,.prof-head>.ph{width:88px!important;height:88px!important}

  /* messages */
  .msg-grid{grid-template-columns:1fr!important;height:calc(100dvh - var(--topbar-h) - 150px)!important;min-height:420px!important}
  .bubble{max-width:86%}

  /* collab */
  .flow .st{min-width:70px;font-size:11px}

  /* demo switcher */
  .demo-fab{right:10px;bottom:calc(84px + env(safe-area-inset-bottom));height:34px;padding:0 12px;font-size:11px;opacity:.94;white-space:nowrap}
  .demo-fab .lbl-role{display:none}
  .demo-panel{left:8px;right:8px;width:auto;bottom:calc(8px + env(safe-area-inset-bottom));max-height:80dvh}
  .toasts{bottom:calc(90px + env(safe-area-inset-bottom));left:12px;right:12px;transform:none}
  .toast{width:100%}

  .camp-head{grid-template-columns:64px minmax(0,1fr)!important;gap:12px!important}
  .camp-head>img,.camp-head>.ph{width:64px!important;height:64px!important}
  .cmp-table{min-width:640px}
  .cmp-table th:first-child,.cmp-table td:first-child{position:sticky;left:0;z-index:1;background:var(--surface-2)!important;box-shadow:1px 0 0 var(--line)}
  .stat .v{font-size:22px}
  .stat{padding:14px}
  .tl-item{padding-bottom:12px}
}
@keyframes sheet{from{transform:translateY(24px);opacity:0}}
@media (min-width:1600px){ .page{max-width:1360px} .page.wide{max-width:1560px} }

.filter-btn{display:none}
@media (max-width:1023px){
  .filter-btn{display:inline-flex}
  .desk-filters{display:none!important}
  .find-search{flex:1 1 200px;width:auto!important}
  .toolbar-search{flex-wrap:wrap}
  .toolbar-search>form{flex:1 1 100%!important;max-width:none!important}
  .camp-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:767px){ .camp-grid{grid-template-columns:minmax(0,1fr)} }

@media (max-width:1023px){
  .wz-wrap{padding:16px 16px 40px!important}
  .msg-grid{grid-template-columns:280px 1fr}
}
@media (max-width:767px){
  .wz-wrap{padding:0 0 24px!important}
  .wz-wrap .card{border-radius:0;border-left:0;border-right:0}
  .msg-grid{border-radius:12px}
  .msg-detail{height:calc(100dvh - var(--topbar-h) - 40px)!important}
  .todo-row{flex-wrap:wrap;padding:12px 16px!important}
  .todo-row>.btn{flex:1 1 100%}
  .cand-thumbs .thumb{aspect-ratio:16/9!important}
  table.table:not(.no-rwd) td .row{justify-content:flex-end}
  table.table:not(.no-rwd) td:first-child .row{justify-content:flex-start}
  .tabs{margin-left:-14px;margin-right:-14px;padding:0 14px}
  .compare-tray{padding:8px 8px 8px 14px;gap:8px}
  .compare-tray>span:first-child{font-size:12px}
}

.link{white-space:nowrap}
.role-card .cta{white-space:nowrap}
.todo-card h2{white-space:nowrap}
@media (max-width:767px){
  .crumbs>span{display:none}
  .crumbs>span:nth-last-child(2){display:inline-flex}
  .crumbs>span:nth-last-child(2) svg{display:none}
  .crumbs>span:nth-last-child(2) button{min-height:36px;font-weight:600}
  .crumbs>span:nth-last-child(2) button::before{content:"‹ ";font-size:16px}
  .page-head h1 .row,.page-head h1>span.row{flex-wrap:wrap}
}

.crumbs button,.crumbs span{white-space:nowrap}

/* ---------- 가로형 공식 로고 (헤더·푸터 전용) ---------- */
.logo-img{height:30px;width:auto;display:block}
.demo-fab{white-space:nowrap}
.gate-foot .logo-img{height:20px}
.auth-page{min-height:100vh;display:flex;flex-direction:column;background:var(--bg)}
.auth-page>.gate-top{border-bottom:1px solid var(--line);background:var(--surface)}
.auth-page>.auth{flex:1;min-height:0}
@media (max-width:767px){
  .logo-img{height:21px}
  .gate-foot .logo-img{height:18px}
  .gate-foot .foot-logo{flex-basis:100%;justify-content:center}
}

.demo-fab,.demo-fab *{white-space:nowrap}

.demo-chip{white-space:nowrap}
.table-wrap{overflow-y:hidden}

/* ================= v2: 검색·비교·보드 ================= */
.demo-banner{display:flex;gap:8px;align-items:center;font-size:12px;color:var(--ink-3);padding:8px 12px;border:1px dashed var(--line-2);border-radius:8px;background:var(--surface)}
.guest-banner{display:flex;align-items:center;gap:12px;justify-content:space-between;padding:10px 14px;border:1px solid var(--accent-line);background:var(--accent-weak);border-radius:10px;margin-bottom:14px;flex-wrap:wrap}
.find-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:14px}
.find-title{font-size:22px;font-weight:700;letter-spacing:-.02em}
.find-bar{display:flex;gap:10px;align-items:center;margin-bottom:14px;flex-wrap:wrap}
.ch-seg button{min-height:34px}
.find-q{flex:1;min-width:220px;max-width:420px}
.filter-open{display:none}
.filter-open .cnt{background:var(--accent);color:#fff;border-radius:999px;font-size:11px;padding:0 7px;margin-left:2px}
.find-grid{display:grid;grid-template-columns:288px minmax(0,1fr);gap:20px;align-items:start}
.fside{position:sticky;top:calc(var(--topbar-h) + 12px);max-height:calc(100vh - var(--topbar-h) - 24px);overflow:auto}
.fpanel{padding:4px 16px 16px}
.fsec{padding:12px 0;border-bottom:1px solid var(--line)}
.fsec:last-child{border-bottom:0}
.flabel{font-size:12px;font-weight:700;color:var(--ink-2);margin-bottom:8px}
.fmore{display:flex;align-items:center;gap:4px;padding:12px 0;font-size:13px}
.res-bar{display:flex;align-items:center;gap:8px;margin-bottom:10px;flex-wrap:wrap}
.sort-sel{width:auto;min-width:180px;height:34px;font-size:13px}
.applied{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin-bottom:12px}
.achip{display:inline-flex;align-items:center;gap:5px;height:28px;padding:0 10px;border-radius:999px;background:var(--surface);border:1px solid var(--line-2);font-size:12px;font-weight:600;color:var(--ink-2);cursor:pointer}
.achip:hover{border-color:var(--ink-3)}
.rgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:14px}
.rcard{background:var(--surface);border:1px solid var(--line);border-radius:12px;overflow:hidden;display:flex;flex-direction:column}
.rcard-thumb{position:relative;border:0;padding:0;cursor:pointer;background:var(--bg-2);height:128px;flex:none}
.rcard-thumb img{width:100%;height:100%;object-fit:cover;display:block;position:absolute;inset:0}
.rcard-fmt{position:absolute;left:6px;bottom:6px;background:rgba(14,20,28,.78);color:#fff;font-size:10px;font-weight:700;padding:2px 6px;border-radius:4px}
.rcard-body{padding:12px 14px 14px;display:flex;flex-direction:column;gap:10px;min-width:0;flex:1}
.rcard-facts{display:grid;gap:6px;font-size:13px}
.rcard-facts>div{display:grid;grid-template-columns:96px minmax(0,1fr);gap:8px;align-items:center}
.rcard-facts .k{color:var(--ink-3);font-size:12px}
.rcard-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:10px;margin-top:auto}
.cmp-check{font-size:13px;min-height:30px;align-items:center}
.match-chips{display:flex;flex-wrap:wrap;gap:4px}
.mchip{display:inline-flex;align-items:center;gap:3px;height:22px;padding:0 7px;border-radius:5px;font-size:11px;font-weight:600;background:var(--bg-2);color:var(--ink-3)}
.mchip.ok{background:var(--ok-bg);color:var(--ok)}
.mchip.no{background:var(--err-bg);color:var(--err)}
.mchip.unknown{background:var(--warn-bg);color:var(--warn)}
.mchip em{font-style:normal;font-weight:500;opacity:.9}
.need{color:var(--warn);font-weight:600}
.need.strong{font-size:14px}
.need-list{margin:0;padding-left:16px;font-size:12.5px;color:var(--ink-2)}
.need-list li{margin-bottom:3px}
.offer{border:1px solid var(--line);border-radius:10px;padding:12px 14px;display:flex;flex-direction:column;gap:8px}
.offer.on{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent) inset}
.offer-grid{display:grid;grid-template-columns:90px minmax(0,1fr);gap:4px 12px;margin:0;font-size:13px}
.offer-grid dt{color:var(--ink-3)} .offer-grid dd{margin:0}
.ch-block{padding:10px 12px;border:1px solid var(--line);border-radius:10px}
.parties-note{display:flex;gap:4px;align-items:flex-start}
.board-pick{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface);cursor:pointer;width:100%;font-size:13px;min-height:44px}
.board-pick:hover:not(:disabled){border-color:var(--ink-3)}
.board-pick:disabled{opacity:.6;cursor:default}
.pro-gate{padding:12px 14px;border:1px dashed var(--accent-line);border-radius:10px;background:var(--accent-weak)}
.spec-card{margin-bottom:14px}
.spec-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,.7fr) minmax(0,.7fr) minmax(0,1.4fr) minmax(0,1.7fr);gap:12px}
.sum-table td{padding:9px 14px;font-size:13px}
.plan-card{padding:20px}
.plan-card.on{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent) inset}
.plan-price{font-size:22px;font-weight:700;margin:6px 0}
.save-bar{position:sticky;bottom:0;display:flex;gap:10px;align-items:center;padding:12px 16px;background:rgba(255,255,255,.97);border:1px solid var(--line);border-radius:12px;margin-top:16px;box-shadow:var(--sh-2);z-index:5}
.onb-wrap{max-width:820px;margin:24px auto;padding:0 16px 40px}
.onb-head{padding:16px 22px;border-bottom:1px solid var(--line)}
.onb-steps{display:flex;gap:6px;margin-top:10px;overflow-x:auto}
.onb-step{display:flex;align-items:center;gap:6px;border:1px solid var(--line);background:var(--surface);border-radius:999px;padding:0 12px;height:34px;font-size:13px;font-weight:600;color:var(--ink-3);cursor:pointer;white-space:nowrap}
.onb-step span{width:20px;height:20px;border-radius:50%;background:var(--bg-2);display:inline-flex;align-items:center;justify-content:center;font-size:11px}
.onb-step.cur{border-color:var(--accent);color:var(--accent)} .onb-step.cur span{background:var(--accent);color:#fff}
.onb-step.done span{background:var(--ink);color:#fff}
.vis-card{display:flex;flex-direction:column;gap:4px}
.board-table td{vertical-align:middle}
.cmp-mobile .cmp-who{display:flex;gap:10px;overflow-x:auto;padding:4px 0}
.cmp-who-i{display:inline-flex;align-items:center;gap:6px;font-size:13px;white-space:nowrap}
.cmp-item{padding:12px 16px;border-bottom:1px solid var(--line)}
.cmp-item:last-child{border-bottom:0}
/* gate v2 */
.gate-v2{justify-content:flex-start;padding-top:40px}
.gate-v2 .gate-cards{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);max-width:1080px;margin-top:0;align-items:stretch}
.role-card2{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:28px;display:flex;flex-direction:column;gap:14px}
.role-card2.adv{border-color:var(--accent-line)}
.role-card2 h1,.role-card2 h2{font-size:24px;line-height:1.4;font-weight:700;letter-spacing:-.02em;text-wrap:balance}
.role-card2.inf h2{font-size:20px}
.gate-points{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:6px;font-size:14px;color:var(--ink-2)}
.gate-points li::before{content:"·";margin-right:8px;color:var(--accent);font-weight:800}
.gate-sample{display:flex;flex-wrap:wrap;gap:6px}
/* print */
.print-wrap{padding:20px}
.print-tools{display:flex;gap:10px;align-items:center;margin-bottom:16px;flex-wrap:wrap}
.print-page{background:#fff;border:1px solid var(--line);border-radius:8px;padding:28px;max-width:1100px}
.print-table th,.print-table td{font-size:12px;vertical-align:top;border:1px solid var(--line)}
@media print{ .no-print,.demo-fab,.topbar,.sidebar,.toasts{display:none!important} .shell{display:block} .main{padding:0} .print-page{border:0;padding:0;max-width:none} body{background:#fff} }
@media (max-width:1023px){
  .find-grid{grid-template-columns:minmax(0,1fr)}
  .filter-open{display:inline-flex}
  .spec-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .gate-v2 .gate-cards{grid-template-columns:1fr}
}
.sheet-overlay{position:fixed;inset:0;z-index:130;background:rgba(14,20,28,.4);display:flex;align-items:flex-end}
.sheet{background:var(--surface);width:100%;max-height:92dvh;border-radius:18px 18px 0 0;display:flex;flex-direction:column;animation:sheet .2s ease-out}
.sheet-head{display:flex;align-items:center;gap:8px;padding:10px 12px 10px 16px;border-bottom:1px solid var(--line)}
.sheet-body{overflow:auto;flex:1;-webkit-overflow-scrolling:touch}
.sheet-foot{display:flex;gap:8px;padding:10px 12px calc(10px + env(safe-area-inset-bottom));border-top:1px solid var(--line)}
.sheet-foot .btn{flex:1}
@media (max-width:767px){
  .find-head{flex-direction:column;align-items:flex-start}
  .ch-seg{width:100%;overflow-x:auto}
  .ch-seg button{flex:1 0 auto}
  .find-q{max-width:none;flex:1 1 60%}
  .rgrid{grid-template-columns:minmax(0,1fr)}
  .rcard-thumb{height:112px}
  .rcard-facts>div{grid-template-columns:82px minmax(0,1fr)}
  .rcard-actions .btn.sm{min-height:40px}
  .res-bar .sort-sel{width:100%;min-width:0;flex:1 1 100%}
  .spec-grid{grid-template-columns:minmax(0,1fr)}
  .role-card2{padding:18px}
  .role-card2 h1{font-size:20px}
  .role-card2 h2{font-size:17px}
  .gate-v2{padding-top:16px}
  .role-card2 .btn.lg{flex:1 1 100%}
  .offer-grid{grid-template-columns:80px minmax(0,1fr)}
  .save-bar{bottom:calc(8px + env(safe-area-inset-bottom))}
  .compare-tray{bottom:calc(10px + env(safe-area-inset-bottom))}
  .demo-fab{bottom:calc(140px + env(safe-area-inset-bottom))}
}

/* 모바일: 하단 저장 바와 데모 버튼 겹침 방지 */
@media (max-width:767px){
  body.has-savebar .demo-fab{bottom:calc(210px + env(safe-area-inset-bottom))}
  body.has-savebar .main{padding-bottom:calc(150px + env(safe-area-inset-bottom))}
  .save-bar{padding-right:16px}
  .save-bar .btn.primary{min-width:96px}
}

/* =========================================================
   v3 · 비교·제안 보조
   ========================================================= */
.chg-list{margin:4px 0 0;padding:0;list-style:none;display:flex;flex-direction:column;gap:4px;font-size:13px}
.chg-list li{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.chg-list .from{color:var(--ink-3);text-decoration:line-through;text-decoration-color:var(--ink-4)}
.chg-list .to{font-weight:600}
.ref-box{background:var(--surface-2);border:1px solid var(--line);border-radius:10px;padding:10px 12px}
.need{color:var(--warn);display:inline-flex;gap:4px;align-items:center}
.cmp-tabs{display:flex;gap:6px;margin:10px 0;overflow-x:auto;padding-bottom:4px;scrollbar-width:thin}
.cmp-tabs .chip{flex:none}
.demo-clock{position:fixed;left:50%;transform:translateX(-50%);top:6px;z-index:90;background:var(--warn-bg);color:var(--warn);border:1px solid var(--warn-line);font-size:12px;font-weight:600;padding:3px 10px;border-radius:999px}
.btn.xl{height:52px;padding:0 22px;font-size:16px;border-radius:10px}

/* =========================================================
   v3 · 첫 방문 메인
   ========================================================= */
.home{background:#fff;min-height:100vh}
.home-wrap{max-width:1240px;margin:0 auto;padding:0 32px}
.home-top{position:sticky;top:0;z-index:20;background:rgba(255,255,255,.94);border-bottom:1px solid var(--line);backdrop-filter:saturate(1.2) blur(6px)}
.home-top .home-wrap{height:64px}
.home-nav{display:flex;gap:4px;margin-left:20px}
.home-nav a{padding:8px 12px;border-radius:8px;text-decoration:none;color:var(--ink-2);font-size:14px;font-weight:500}
.home-nav a:hover{background:var(--bg-2);color:var(--ink)}
.home-hero{padding:56px 0 48px;background:linear-gradient(180deg,#fff 0%,var(--bg) 100%)}
.hero-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:56px;align-items:center}
.hero-copy h1{font-size:clamp(34px,3.6vw,50px);line-height:1.22;letter-spacing:-.035em;font-weight:800;text-wrap:balance}
.hero-sub{font-size:18px;color:var(--ink-2);margin-top:18px;line-height:1.6;text-wrap:pretty}
.hero-ctas{display:grid;grid-template-columns:repeat(2,minmax(0,max-content));gap:24px;margin-top:34px}
.hero-cta{display:flex;flex-direction:column;gap:8px;align-items:flex-start}
.hero-cta .who{font-size:12px;font-weight:700;color:var(--ink-3);letter-spacing:.02em}
.hero-cta .meta{max-width:220px}
/* 히어로 비주얼 */
.hv{position:relative;padding:0 0 40px 0}
.hv-win{background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:var(--sh-3);overflow:hidden}
.hv-bar{display:flex;align-items:center;gap:6px;padding:10px 14px;border-bottom:1px solid var(--line);background:var(--surface-2);font-size:13px}
.hv-bar>span:not(.hv-ex){width:9px;height:9px;border-radius:50%;background:var(--bg-3)}
.hv-bar b{margin-left:8px}
.hv-ex{margin-left:auto;font-size:11px;font-weight:600;color:var(--ink-3);background:var(--bg-2);border-radius:999px;padding:2px 8px;white-space:nowrap}
.hv-filter{display:flex;flex-wrap:wrap;gap:10px 18px;padding:14px 16px;border-bottom:1px solid var(--line)}
.hv-f{display:flex;align-items:center;gap:6px;font-size:13px}
.hv-f .k{color:var(--ink-3);font-size:12px;margin-right:2px}
.hv-chip{border:1px solid var(--line-2);border-radius:999px;padding:3px 10px;font-size:12px;background:#fff}
.hv-chip.on{background:var(--accent);border-color:var(--accent);color:#fff}
.hv-thumbs{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;padding:14px 16px 96px}
.hv-th{margin:0;position:relative;border-radius:10px;overflow:hidden;aspect-ratio:3/4;background:var(--bg-2)}
.hv-th img{width:100%;height:100%;object-fit:cover}
.hv-th figcaption{position:absolute;left:0;right:0;bottom:0;padding:22px 8px 8px;background:linear-gradient(0deg,rgba(8,29,46,.78),rgba(8,29,46,0));color:#fff;display:flex;flex-direction:column;font-size:11px;line-height:1.3}
.hv-th figcaption b{font-size:13px}
.hv-card{position:absolute;right:-12px;bottom:0;width:min(340px,78%);background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:var(--sh-3);padding:16px;display:flex;flex-direction:column;gap:12px}
.hv-av{width:44px;height:44px;border-radius:50%;object-fit:cover}
.hv-dl{display:grid;grid-template-columns:1fr 1fr;gap:10px 12px;margin:0}
.hv-dl>div{display:flex;flex-direction:column;gap:2px}
.hv-dl dt{font-size:11px;color:var(--ink-3)}
.hv-dl dd{margin:0;font-size:14px}
.hv-btn{display:inline-flex;align-items:center;height:30px;padding:0 12px;border:1px solid var(--line-2);border-radius:8px;font-size:12px;font-weight:600;background:#fff}
.hv-btn.primary{background:var(--accent);border-color:var(--accent);color:#fff}
.hv-thumbs-m{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:10px}
/* 섹션 */
.home-sec{padding:72px 0}
.home-sec.tint{background:var(--bg)}
.home-sec.ink{background:var(--navy);color:#fff}
.home-sec.ink .muted,.home-sec.ink .meta{color:#B7C3CF}
.hs-head{margin-bottom:28px}
.hs-head h2,.sh-copy h2{font-size:clamp(26px,2.4vw,34px);line-height:1.3;letter-spacing:-.03em;font-weight:800;text-wrap:balance}
.hs-head p{margin-top:8px}
.cat-rail{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px}
.cat-tile{position:relative;display:block;border-radius:14px;overflow:hidden;aspect-ratio:4/5;text-decoration:none;color:#fff;background:var(--bg-2)}
.cat-tile img{width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.cat-tile:hover img{transform:scale(1.04)}
.cat-cap{position:absolute;inset:auto 0 0 0;padding:40px 14px 14px;background:linear-gradient(0deg,rgba(8,29,46,.85),rgba(8,29,46,0));display:flex;flex-direction:column;gap:2px}
.cat-cap b{font-size:17px}
.cat-cap span{font-size:12px;opacity:.85}
.cat-tile:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.cr-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.cr-card{display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden;text-decoration:none;color:inherit;transition:box-shadow .2s, transform .2s}
.cr-card:hover{box-shadow:var(--sh-2);transform:translateY(-2px)}
.cr-thumb{position:relative;aspect-ratio:16/9;background:var(--bg-2)}
.cr-thumb img{width:100%;height:100%;object-fit:cover}
.cr-body{padding:14px 16px 16px}
.cr-av{width:30px;height:30px;border-radius:50%;object-fit:cover}
.split-home{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:56px;align-items:center}
.split-home.rev{grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr)}
.sh-copy p{margin-top:14px;font-size:16px;line-height:1.65;text-wrap:pretty}
.sh-points{margin:18px 0 24px;padding:0;list-style:none;display:flex;flex-direction:column;gap:8px;font-size:14px}
.sh-points li{padding-left:18px;position:relative}
.sh-points li:before{content:'';position:absolute;left:0;top:.6em;width:8px;height:2px;background:currentColor;opacity:.6}
.cmp-prev{background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:var(--sh-2);overflow:hidden}
.cmp-prev-head{display:flex;gap:8px;align-items:center;padding:12px 16px;border-bottom:1px solid var(--line);background:var(--surface-2)}
.cmp-prev-grid{display:grid;font-size:13px}
.cmp-prev-grid>*{padding:11px 12px;border-bottom:1px solid var(--line);min-width:0}
.cp-who{display:flex;align-items:center;gap:8px}
.cp-who img{width:30px;height:30px;border-radius:50%;object-fit:cover}
.cp-k{color:var(--ink-3);font-size:12px;font-weight:600}
.cp-v{overflow-wrap:anywhere}
.inf-visual{display:flex;flex-direction:column;gap:14px;color:var(--ink)}
.iv-prof{display:flex;gap:14px;background:#fff;border-radius:14px;padding:16px;align-items:flex-start}
.iv-prof img{width:64px;height:64px;border-radius:12px;object-fit:cover;flex:none}
.iv-inbox{background:#fff;border-radius:14px;padding:16px;margin-left:48px}
.iv-row{display:flex;gap:10px;align-items:center;padding:10px 0;border-top:1px solid var(--line)}
.iv-acts{display:flex;gap:6px;flex-wrap:wrap;padding-top:10px;border-top:1px solid var(--line)}
.btn.on-ink{background:#fff;color:var(--navy);border-color:#fff}
.btn.on-ink:hover{background:#EEF2F6}
.home-note{padding:24px 32px;text-align:center}
.reveal{opacity:0;transform:translateY(14px);transition:opacity .5s ease, transform .5s ease}
.reveal.in{opacity:1;transform:none}
@media (prefers-reduced-motion: reduce){ .reveal{opacity:1;transform:none;transition:none} .cat-tile img,.cr-card{transition:none} .cat-tile:hover img{transform:none} .cr-card:hover{transform:none} }
@media (max-width:1180px){ .cat-rail{grid-template-columns:repeat(3,minmax(0,1fr))} .hv-card{right:0} }
@media (max-width:1023px){ .hero-grid,.split-home,.split-home.rev{grid-template-columns:1fr;gap:32px} .split-home.rev .inf-visual{order:2} .hv{max-width:640px} .cr-grid{grid-template-columns:repeat(2,minmax(0,1fr))} }
@media (max-width:767px){
  .home-wrap{padding:0 16px}
  .home-hero{padding:28px 0 24px}
  .hero-copy h1{font-size:28px}
  .hero-sub{font-size:15px;margin-top:12px}
  .hero-ctas{grid-template-columns:1fr;gap:16px;margin-top:22px}
  .hero-cta{align-items:stretch}.hero-cta .btn{width:100%;justify-content:center}.hero-cta .meta{max-width:none}
  .hv{padding:0}
  .hv-card{position:static;width:auto;margin-top:10px;box-shadow:var(--sh-2)}
  .hv-win{box-shadow:var(--sh-2)}
  .home-sec{padding:44px 0}
  .cat-rail{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .cat-tile{aspect-ratio:4/3}
  .cr-grid{grid-template-columns:1fr;gap:12px}
  .cmp-prev-grid{grid-template-columns:84px repeat(3,minmax(0,1fr)) !important;font-size:12px}
  .cmp-prev-grid>*{padding:9px 6px}
  .cp-who{flex-direction:column;align-items:flex-start;gap:4px}
  .iv-inbox{margin-left:0}
  .home-nav{display:none}
}
/* 인쇄: 비교표만 */
@media print{
  body.printing-compare .demo-fab,body.printing-compare .demo-panel,body.printing-compare .toasts,body.printing-compare .topbar,body.printing-compare .sidebar,body.printing-compare .demo-clock,body.printing-compare .compare-tray,body.printing-compare .no-print,body.printing-compare button{display:none !important}
  body.printing-compare .main{padding:0 !important;margin:0 !important}
  body.printing-compare .shell{display:block}
}

.home-nav a,.hv-chip,.hv-btn,.hv-ex,.hero-cta .who{white-space:nowrap}
.cr-thumb,.hv-th,.cat-tile{position:relative;overflow:hidden}
.cr-thumb>img,.hv-th>img,.cat-tile>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.cr-thumb .rcard-fmt{z-index:1}
.cr-card{min-width:0}
@media (max-width:1180px){ .home-nav a{padding:8px 8px;font-size:13px} }
.hv-f .k{white-space:nowrap}
.hv-f{flex-wrap:nowrap}
@media print{.reveal{opacity:1!important;transform:none!important}}
.seg{flex-wrap:wrap;max-width:100%}.seg button{white-space:nowrap}
.modal .seg{display:inline-flex}
@media (max-width:1023px){ .home-nav{display:none} }

/* =========================================================
   1:1 메시지 (v4)
   ========================================================= */
.dm-navbtn{position:relative;display:inline-flex;align-items:center;gap:6px;height:38px;padding:0 12px;border-radius:var(--r);border:1px solid transparent;background:none;color:var(--ink-2);font-weight:600;font-size:14px;cursor:pointer;white-space:nowrap}
.dm-navbtn:hover{background:var(--bg-2)}
.dm-navbtn.on{background:var(--accent-weak);color:var(--accent-ink)}
.dm-navbadge{min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:var(--accent);color:#fff;font-size:11px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;line-height:1}
.dm-unread{min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:var(--accent);color:#fff;font-size:11px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;flex:none;line-height:1}
body.route-msg .main{padding:16px 20px 16px}
.dm-wrap{--dm-h:calc(100vh - var(--topbar-h) - 32px);height:var(--dm-h);min-height:520px;display:grid;grid-template-columns:320px minmax(0,1fr) 312px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);overflow:hidden;max-width:1560px;margin:0 auto}
.dm-wrap.no-aside{grid-template-columns:300px minmax(0,1fr)}
.dm-list{display:flex;flex-direction:column;min-height:0;border-right:1px solid var(--line);background:var(--surface)}
.dm-list-head{padding:16px 16px 10px;display:flex;flex-direction:column;gap:10px;border-bottom:1px solid var(--line)}
.dm-search{position:relative;display:flex;align-items:center}
.dm-search>svg{position:absolute;left:11px;color:var(--ink-4);pointer-events:none}
.dm-search .input{padding-left:34px;padding-right:34px;height:38px;background:var(--surface-2)}
.dm-search .btn{position:absolute;right:4px}
.dm-filter{display:flex;gap:6px}
.dm-filter button{flex:1;display:inline-flex;align-items:center;justify-content:center;gap:5px;height:32px;border-radius:999px;border:1px solid var(--line-2);background:var(--surface);font-size:13px;font-weight:600;color:var(--ink-2);cursor:pointer;white-space:nowrap;padding:0 8px}
.dm-filter button .n{font-size:11px;color:var(--ink-4);font-weight:700}
.dm-filter button[aria-pressed="true"]{background:var(--accent);border-color:var(--accent);color:#fff}
.dm-filter button[aria-pressed="true"] .n{color:#C7D3DE}
.dm-list-body{flex:1;min-height:0;overflow:auto}
.dm-item{display:flex;gap:12px;width:100%;padding:14px 16px;border:0;border-bottom:1px solid var(--line);background:none;text-align:left;cursor:pointer;position:relative;align-items:flex-start}
.dm-item:hover{background:var(--surface-2)}
.dm-item.on{background:var(--accent-weak)}
.dm-item.on::before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--accent)}
.dm-item-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.dm-item-top,.dm-item-bot{display:flex;align-items:center;gap:8px;min-width:0}
.dm-name{font-size:14px;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dm-time{font-size:11px;color:var(--ink-4);flex:none}
.dm-item-sub{font-size:12px;color:var(--ink-3);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dm-preview{flex:1;min-width:0;font-size:13px;color:var(--ink-3);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dm-item.unread .dm-preview{color:var(--ink);font-weight:600}
.dm-item-tags{display:flex;gap:4px;flex-wrap:wrap;margin-top:4px}
.dm-item-tags .badge{height:20px;font-size:11px}
.dm-tag{display:inline-flex;align-items:center;height:20px;padding:0 7px;border-radius:999px;font-size:11px;font-weight:600;background:var(--bg-2);color:var(--ink-3);white-space:nowrap}
.dm-tag.warn{background:var(--warn-bg);color:var(--warn)}
.dm-tag.err{background:var(--err-bg);color:var(--err)}
.dm-demo{position:relative;display:inline-flex}
.dm-demo .demo-chip{cursor:pointer;border:0;display:inline-flex;align-items:center;gap:4px}
.dm-pop{position:absolute;top:calc(100% + 6px);left:0;z-index:60;width:280px;background:#2A2825;color:#F5F2EB;font-size:12px;line-height:1.55;padding:12px 14px;border-radius:10px;box-shadow:var(--sh-3);font-weight:500}

.dm-chat{position:relative;display:flex;flex-direction:column;min-width:0;min-height:0;background:var(--surface)}
.dm-blank{align-items:center;justify-content:center;background:var(--surface-2)}
.dm-chat-head{display:flex;align-items:center;gap:10px;padding:12px 16px;border-bottom:1px solid var(--line);min-width:0}
.dm-chat-title{display:flex;flex-direction:column;min-width:0}
.dm-chat-title b{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dm-chat-title .meta{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dm-note{display:flex;align-items:center;gap:6px;padding:7px 16px;font-size:12px;color:var(--ink-3);background:var(--surface-2);border-bottom:1px solid var(--line);flex-wrap:wrap}
.dm-dl{display:flex;align-items:flex-start;gap:8px;padding:8px 16px;font-size:12.5px;line-height:1.5;border-bottom:1px solid var(--line);color:var(--ink-2);background:var(--surface)}
.dm-dl svg{flex:none;margin-top:2px}
.dm-dl.warn{background:var(--warn-bg);color:#5E4300;border-color:var(--warn-line)}
.dm-dl.err{background:var(--err-bg);color:#8A1B12;border-color:var(--err-line)}
.dm-dl.ok{color:var(--ok)}
.dm-scroll{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;padding:16px 20px 20px;display:flex;flex-direction:column;gap:6px;background:var(--surface);overscroll-behavior:contain}
.dm-day{display:flex;align-items:center;gap:12px;margin:14px 0 8px;font-size:12px;color:var(--ink-4);font-weight:600}
.dm-day::before,.dm-day::after{content:"";flex:1;height:1px;background:var(--line)}
.dm-row{display:flex;gap:8px;align-items:flex-end;max-width:100%;margin-top:6px}
.dm-row.grouped{margin-top:0}
.dm-row.me{justify-content:flex-end}
.dm-ava{width:32px;flex:none;align-self:flex-start}
.dm-bubble-wrap{display:flex;align-items:flex-end;gap:6px;max-width:min(72%,560px);min-width:0}
.dm-row.me .dm-bubble-wrap{flex-direction:row-reverse}
.dm-bubble{padding:9px 13px;border-radius:16px;font-size:14px;line-height:1.55;min-width:0;max-width:100%}
.dm-row.them .dm-bubble{background:var(--bg-2);color:var(--ink);border-top-left-radius:6px}
.dm-row.me .dm-bubble{background:var(--accent);color:#fff;border-top-right-radius:6px}
.dm-row.grouped.them .dm-bubble{border-top-left-radius:16px}
.dm-row.grouped.me .dm-bubble{border-top-right-radius:16px}
.dm-text{white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word}
.dm-at{font-size:11px;color:var(--ink-4);white-space:nowrap;flex:none;padding-bottom:2px}
.dm-sys{align-self:center;max-width:min(92%,520px);display:flex;flex-direction:column;align-items:center;gap:4px;margin:10px 0;text-align:center}
.dm-sys-line{display:inline-flex;align-items:center;gap:6px;padding:5px 12px;border-radius:999px;background:var(--bg-2);color:var(--ink-2);font-size:12px;font-weight:600}
.dm-sys-sub{font-size:11.5px;color:var(--ink-3);line-height:1.5}
.dm-sys-box{margin-top:2px;padding:9px 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface-2);font-size:13px;text-align:left;max-width:100%}
.dm-card-row{display:flex;margin:6px 0}
.dm-card-row.me{justify-content:flex-end}
.dm-card{width:min(100%,460px);border:1px solid var(--accent-line);border-radius:14px;background:var(--surface);overflow:hidden;box-shadow:var(--sh-1)}
.dm-card-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 14px;background:var(--accent);color:#fff;flex-wrap:wrap}
.dm-card-head .meta{color:#C7D3DE}
.dm-card-eyebrow{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:700}
.dm-card-chg{padding:10px 14px 0}
.dm-terms{display:grid;grid-template-columns:auto minmax(0,1fr);gap:7px 14px;padding:12px 14px;font-size:13px;margin:0}
.dm-terms dt{color:var(--ink-3);white-space:nowrap}
.dm-terms dd{margin:0;color:var(--ink);min-width:0;overflow-wrap:anywhere}
.dm-card-msg{margin:0 14px;padding:10px 12px;border-radius:10px;background:var(--surface-2);font-size:13px;color:var(--ink-2)}
.dm-card-foot{padding:10px 14px}
.dm-card-acts{display:flex;gap:6px;padding:0 14px 14px;flex-wrap:wrap}
.dm-card-acts .btn{flex:1 1 auto}
.dm-newpill{position:absolute;left:50%;transform:translateX(-50%);bottom:96px;z-index:5;display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 14px;border-radius:999px;border:0;background:var(--accent);color:#fff;font-weight:600;font-size:13px;box-shadow:var(--sh-2);cursor:pointer}
.dm-compose{padding:10px 16px 12px;border-top:1px solid var(--line);background:var(--surface)}
.dm-compose-box{display:flex;align-items:flex-end;gap:8px;border:1px solid var(--line-2);border-radius:14px;padding:6px 6px 6px 14px;background:var(--surface)}
.dm-compose-box:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-weak)}
.dm-compose-box textarea{flex:1;min-width:0;border:0;outline:0;resize:none;font:inherit;font-size:14px;line-height:1.5;padding:7px 0;max-height:140px;background:transparent;color:var(--ink)}
.dm-send{height:38px;border-radius:10px;flex:none}
.dm-compose-hint{padding:5px 4px 0;font-size:11px;color:var(--ink-4)}

.dm-info{border-left:1px solid var(--line);overflow-y:auto;background:var(--surface-2);min-height:0}
.dm-info-in{display:flex;flex-direction:column}
.dm-info-sec{padding:16px 18px;border-bottom:1px solid var(--line)}
.dm-info-sec h3{font-size:15px;font-weight:700}
.dm-info .dm-terms,.dm-sheet .dm-terms{padding:0;font-size:13px}
.dm-dlbox{display:flex;flex-direction:column;gap:2px;padding:10px 12px;border-radius:10px;border:1px solid var(--line);background:var(--surface)}
.dm-dlbox b{font-size:14px}
.dm-dlbox.warn{background:var(--warn-bg);border-color:var(--warn-line);color:#5E4300}
.dm-dlbox.err{background:var(--err-bg);border-color:var(--err-line);color:#8A1B12}
.dm-dlbox.ok{background:var(--ok-bg);border-color:var(--ok-line);color:#1F5038}
.dm-prog{height:4px;border-radius:4px;background:rgba(0,0,0,.08);margin-top:6px;overflow:hidden}
.dm-prog span{display:block;height:100%;background:var(--warn)}
.dm-sheet-ov{position:fixed;inset:0;z-index:120;background:rgba(8,29,46,.35);display:flex;justify-content:flex-end}
.dm-sheet{width:min(420px,100%);height:100%;background:var(--surface-2);display:flex;flex-direction:column;animation:pop .15s}
.dm-sheet-head{display:flex;align-items:center;padding:10px 12px 10px 18px;border-bottom:1px solid var(--line);background:var(--surface)}
.dm-sheet-body{flex:1;overflow:auto;padding-bottom:env(safe-area-inset-bottom)}
@media (max-width:1023px){
  body.route-msg .main{padding:12px}
  .dm-wrap{--dm-h:calc(100dvh - var(--topbar-h) - 24px)}
}
@media (max-width:767px){
  body.route-msg .main{padding:0}
  body.route-msg .demo-fab{bottom:calc(150px + env(safe-area-inset-bottom))}
  body.route-msg .toasts{bottom:calc(150px + env(safe-area-inset-bottom))}
  .dm-wrap,.dm-wrap.no-aside{--dm-h:calc(var(--vvh,100dvh) - var(--topbar-h));grid-template-columns:minmax(0,1fr);border:0;border-radius:0;min-height:0}
  .dm-list{border-right:0}
  .dm-chat-head{padding:8px 10px;gap:8px}
  .dm-chat-head .btn.sm{height:36px;padding:0 10px}
  .hide-xs{display:none}
  .dm-note{padding:6px 12px}
  .dm-dl{padding:7px 12px}
  .dm-scroll{padding:12px 12px 16px}
  .dm-bubble-wrap{max-width:82%}
  .dm-compose{padding:8px 10px calc(8px + env(safe-area-inset-bottom))}
  .dm-compose-box textarea{font-size:16px}
  .dm-send{width:42px;padding:0}
  .dm-item{padding:12px 14px}
  .dm-card-acts .btn{min-height:44px}
  .dm-sheet{width:100%;height:auto;max-height:88dvh;margin-top:auto;border-radius:16px 16px 0 0}
  .dm-sheet-ov{align-items:flex-end}
  .dm-newpill{bottom:84px}
  .dm-pop{position:fixed;left:12px;right:12px;top:calc(var(--topbar-h) + 100px);width:auto}
}

/* ===== 실제 서비스(index.html): 개발 서버 표시 — 운영 서버에서는 표시하지 않음 ===== */
.env-badge{pointer-events:none}
@media (max-width:767px){ .env-badge{top:auto;bottom:10px;left:10px;transform:none;font-size:11px;padding:2px 8px;opacity:.92} }
