/* CROWN BOXING 관리 화면. 색·간격은 디자인 시안(캔버스) 기준 */
:root {
  --ink: #15171C; --ink-2: #3A3F4A; --muted: #5B616E;
  --bg: #F2F3F5; --surface: #FFFFFF; --hover: #F7F8FA;
  --line: #DADDE3; --line-2: #ECEEF1; --field: #C9CDD5;
  --yellow: #FFC21A; --yellow-2: #F2B300;
  --card: #2F5BD3; --cash: #D98E04;           /* 차트: 카드 / 현금 */
  --ok-bg: #E3F2EF; --ok: #0B5D50; --ok-dot: #0B7A68;
  --warn-bg: #FFF4EC; --warn-line: #F3B58A; --warn: #8A3A06;
  --err-bg: #FDECEA; --err: #9A1C12; --err-line: #B42318;
  --note-bg: #FFF4D6; --note-line: #E8B730; --note: #5C4000;
  --display: 'Black Han Sans', sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'IBM Plex Sans KR', system-ui, sans-serif; line-height: 1.45; }
a { color: var(--ink); }
a:hover { color: var(--ink-2); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
h1 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 40px; line-height: 1.1; }
h2 { margin: 0; font-size: 18px; font-weight: 700; }
p { margin: 0; }
code { font-family: ui-monospace, monospace; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 글자 */
.b { font-weight: 700; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.err-text { color: var(--err-line); }
.eyebrow { font-size: 13px; font-weight: 600; color: var(--muted); }
.lead { max-width: 680px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.help { font-size: 13px; line-height: 1.5; color: var(--muted); }
.help.md { font-size: 14px; line-height: 1.6; }
.help.md strong { color: var(--ink); }
.help.sep { padding-top: 12px; border-top: 1px solid var(--line-2); }
.sub { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; color: var(--muted); }
.tag { font-size: 12px; font-weight: 400; color: var(--muted); }
.label-sm { font-size: 13px; font-weight: 600; color: var(--muted); }
.h-count { font-size: 15px; font-weight: 500; color: var(--muted); }
.h-danger { color: var(--err); }

/* 배치 */
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.row.between { justify-content: space-between; }
.row.top { align-items: flex-start; flex-wrap: nowrap; }
.col { display: flex; flex-direction: column; gap: 8px; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.grow { flex: 1 1 320px; }
.scroll { position: relative; overflow-x: auto; }  /* .sr(절대위치)이 표 밖으로 새어 가로 스크롤이 생기지 않게 */
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.split { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 20px; }
.split > .wide { flex: 3 1 560px; min-width: 0; }
.split > .narrow { flex: 2 1 340px; min-width: 0; }
.narrow-page { max-width: 720px; display: flex; flex-direction: column; gap: 24px; }

/* ---- 사이드바 셸 ---- */
.shell { min-height: 100vh; display: flex; flex-wrap: wrap; }
.side { flex: 1 1 232px; padding: 28px 20px; display: flex; flex-direction: column; gap: 32px; background: var(--ink); color: #E7E9EE; }
.side :focus-visible { outline-color: var(--yellow); }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px; color: inherit; text-decoration: none; }
.brand:hover { color: inherit; }
.brand > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.brand b { font-family: var(--display); font-weight: 400; font-size: 18px; letter-spacing: 0.02em; white-space: nowrap; }
.brand small, .who small { font-size: 12px; color: #9AA1AE; }
.logo { width: 40px; height: 40px; flex: none; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--yellow); color: var(--ink); font-family: var(--display); font-size: 18px; }
.logo.lg { width: 44px; height: 44px; font-size: 20px; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 8px; color: #C9CDD5; font-size: 15px; font-weight: 500; text-decoration: none; }
.nav a:hover { background: #232731; color: #FFFFFF; }
.nav a[aria-current=page] { background: #262A33; color: #FFFFFF; font-weight: 600; }
.nav a[aria-current=page] svg { color: var(--yellow); }
.who { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 8px 0; border-top: 1px solid #2A2E37; }
.who > span { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.who a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; color: #C9CDD5; font-size: 13px; }
.who a:hover { color: #FFFFFF; }
.main { flex: 999 1 560px; min-width: 0; padding: 40px var(--gutter) 56px; display: flex; flex-direction: column; gap: 24px; }
.main.flush { padding-bottom: 0; }
.head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.back { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 14px; font-weight: 600; text-decoration: none; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---- 버튼 ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1px solid var(--field); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer; }
.btn:hover { background: var(--bg); color: var(--ink); }
.btn-sm { min-height: 40px; padding: 0 14px; }
.btn-lg { min-height: 48px; padding: 0 20px; font-size: 15px; }
.wide-btn { padding: 0 32px; font-size: 16px; }
.btn-primary { background: var(--yellow); border-color: var(--yellow); font-size: 15px; font-weight: 700; }
.btn-primary:hover { background: var(--yellow-2); }
.btn-dark { background: var(--ink); border-color: var(--ink); color: #FFFFFF; font-weight: 700; }
.btn-dark:hover { background: #2A2E37; color: #FFFFFF; }
.btn-danger { border-color: var(--err-line); color: var(--err-line); font-weight: 700; }
.btn-danger:hover { background: var(--err-bg); color: var(--err); }
.btn-danger-solid { background: var(--err-line); border-color: var(--err-line); color: #FFFFFF; font-weight: 700; }
.btn-danger-solid:hover { background: var(--err); color: #FFFFFF; }
.btn:disabled, .btn:disabled:hover { background: #E4E6EA; border-color: #E4E6EA; color: #6B717D; cursor: not-allowed; }
.btns { display: flex; flex-wrap: wrap; gap: 8px; }
.btns.end { justify-content: flex-end; }
.icon-btn { width: 44px; height: 44px; flex: none; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--ink-2); cursor: pointer; }
.icon-btn:hover { background: var(--bg); color: var(--ink); }
.icon-btn.del { color: var(--muted); }
.icon-btn.del:hover { background: var(--err-bg); color: var(--err); }
.link-44 { display: inline-flex; align-items: center; min-height: 44px; color: inherit; }
summary.btn { list-style: none; width: max-content; }
summary.btn::-webkit-details-marker { display: none; }
details.confirm[open] > summary { margin-bottom: 12px; }

/* ---- 카드·요약 ---- */
.card { padding: 24px; display: flex; flex-direction: column; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.kpi { padding: 20px 24px; display: flex; flex-direction: column; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.kpi > span { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.kpi strong { font-family: var(--display); font-weight: 400; font-size: 36px; line-height: 1.1; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.kpi small { font-size: 13px; color: var(--muted); }
.kpi.dark { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.kpi.dark strong { color: var(--yellow); }
.kpi.dark > span, .kpi.dark small { color: #C9CDD5; }
.kpi.warn { background: var(--warn-bg); border-color: var(--warn-line); }
.kpi.warn > span, .kpi.warn small { color: var(--warn); }

/* ---- 배지·알림 ---- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--bg); color: var(--ink-2); font-size: 13px; font-weight: 600; white-space: nowrap; }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.off { background: var(--surface); border: 1px dashed var(--field); color: var(--muted); }
.head .badge:not(.ok, .warn, .off) { background: var(--surface); border: 1px solid var(--line); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.badge.ok .dot { background: var(--ok-dot); }
.dot.sq { border-radius: 1px; }
.alert { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 16px; border-radius: 10px; font-size: 14px; line-height: 1.5; }
.alert > svg { flex: none; }
.alert.top { align-items: flex-start; flex-wrap: nowrap; }
.alert.col { flex-direction: column; align-items: stretch; gap: 12px; }
.alert.err { background: var(--err-bg); color: var(--err); }
.alert.ok { background: var(--ok-bg); color: var(--ok); }
.alert.warn { background: var(--warn-bg); border: 1px solid var(--warn-line); color: #6E2E04; }
.alert.warn a { color: inherit; display: inline-flex; align-items: center; min-height: 44px; }
.alert.note { background: var(--note-bg); border: 1px solid var(--note-line); color: var(--note); }

/* ---- 입력 ---- */
.fg { display: flex; flex-direction: column; gap: 6px; }
.fg > label { font-size: 14px; font-weight: 600; }
.field { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--field); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; }
.field:focus { border-color: var(--ink); outline: 2px solid var(--ink); outline-offset: 0; }
.field.bad, .pwbox.bad { border-color: var(--err-line); }
.w120 { width: 120px; }
.req { color: var(--err-line); }
.ferr { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--err-line); }
.okmsg { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ok); }
.pwbox { display: flex; align-items: center; min-height: 48px; padding: 0 4px 0 14px; border: 1px solid var(--field); border-radius: 8px; background: var(--surface); }
.pwbox:focus-within { border-color: var(--ink); outline: 2px solid var(--ink); outline-offset: 0; }
.pwbox input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 15px; }
.pwbox button { width: 44px; height: 40px; flex: none; display: flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; }
.pwbox button[aria-pressed=true] { color: var(--ink); }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--ink); }

/* ---- 표 ---- */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.tbl thead th { padding: 10px 12px; text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td, .tbl tbody th { padding: 12px; text-align: left; font-weight: 400; border-bottom: 1px solid var(--line-2); }
.tbl tbody th { font-weight: 600; }
.tbl tbody tr:last-child > * { border-bottom: 0; }
.tbl tbody tr:hover { background: var(--hover); }
.tbl tfoot > tr > * { padding: 14px 12px; text-align: left; font-weight: 700; border-top: 2px solid var(--ink); border-bottom: 0; }
.tbl .r { text-align: right; }
.tbl .c { text-align: center; }
.tbl .b { font-weight: 700; }
.tbl-sm { font-size: 13px; }
.tbl-sm td, .tbl-sm tbody th { padding: 10px; }

/* ---- 일별 매출 차트 (서버에서 막대 높이 % 계산, 호버는 CSS) ---- */
.legend { display: flex; gap: 16px; font-size: 13px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; }
.chart { position: relative; height: 280px; padding: 0 0 28px 44px; }
.chart .grid { position: absolute; left: 0; right: 0; top: 0; bottom: 28px; display: flex; flex-direction: column; justify-content: space-between; }
.chart .grid div { height: 0; display: flex; align-items: center; gap: 8px; }
.chart .grid span { width: 36px; text-align: right; font-size: 11px; color: var(--muted); }
.chart .grid i { flex: 1; border-top: 1px solid var(--line-2); }
.chart .grid div:last-child i { border-color: #B8BDC7; }
.bars { position: relative; height: 100%; display: flex; align-items: flex-end; gap: 4px; }
.bar { position: relative; flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; }
.bar > i { display: block; }
.bar > i:first-child { border-radius: 4px 4px 0 0; }
.s-card { background: var(--card); }
.s-cash { background: var(--cash); }
.bars:hover .bar:not(:hover) { opacity: 0.45; }
.tip { position: absolute; z-index: 2; top: 0; left: 50%; transform: translateX(-50%); min-width: 150px; padding: 10px 12px; display: none; flex-direction: column; gap: 4px; background: var(--ink); color: #FFFFFF; border-radius: 8px; font-size: 13px; white-space: nowrap; pointer-events: none; }
.tip.tl { left: 0; transform: none; }
.tip.tr { left: auto; right: 0; transform: none; }
.bar:hover .tip { display: flex; }
.tip span { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }
.tip em { font-style: normal; color: #C9CDD5; }
.xs { position: absolute; left: 44px; right: 0; bottom: 0; height: 20px; display: flex; gap: 4px; }
.xs span { flex: 1; min-width: 0; display: flex; justify-content: center; font-size: 11px; color: var(--muted); white-space: nowrap; }
.daytbl { border-top: 1px solid var(--line-2); padding-top: 12px; }
.daytbl summary { min-height: 32px; font-size: 14px; font-weight: 600; cursor: pointer; }
.daytbl .scroll-y { margin-top: 8px; max-height: 280px; overflow-y: auto; }
.daytbl .tbl { font-size: 13px; }
.daytbl .tbl td, .daytbl .tbl tbody th { padding: 8px 4px; }

/* ---- 관리자: 검색·필터 ---- */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.search { flex: 1 1 260px; min-height: 44px; padding: 0 12px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--field); border-radius: 8px; background: var(--surface); color: var(--muted); }
.search:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 0 14px; border: 1px solid var(--field); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.chip:hover { background: var(--bg); }
.chip[aria-pressed=true] { background: var(--ink); border-color: var(--ink); color: #FFFFFF; font-weight: 600; }

/* ---- 모달 (장비 상세 시트, 광고 삭제 확인) ---- */
dialog { color: var(--ink); }
dialog::backdrop { background: rgba(21, 23, 28, 0.55); }
.sheet { margin: 0 0 0 auto; width: min(560px, 100%); max-width: 100%; height: 100%; max-height: 100%; padding: 28px 28px 40px; border: 0; background: var(--surface); overflow-y: auto; }
.sheet[open] { display: flex; flex-direction: column; gap: 28px; }
.sheet h1 { font-size: 32px; }
.sect { display: flex; flex-direction: column; gap: 12px; }
.sect h2 { font-size: 16px; }
.box { display: flex; flex-direction: column; gap: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
.box.row { flex-direction: row; flex-wrap: nowrap; }
.box.danger { border-color: #F1B0A9; }
.box > .btn { align-self: flex-start; }
.modal { width: min(460px, calc(100% - 32px)); padding: 24px; border: 0; border-radius: 14px; text-align: left; }
.modal[open] { display: flex; flex-direction: column; gap: 16px; }
.modal h2 { font-size: 19px; overflow-wrap: anywhere; }
.modal p { font-size: 14px; line-height: 1.6; }
.switch { position: relative; width: 56px; height: 32px; flex: none; padding: 0; border: 0; border-radius: 999px; background: #8A909C; cursor: pointer; }
.switch span { position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: #FFFFFF; transition: left 0.15s; }
.switch[aria-checked=true] { background: var(--ok-dot); }
.switch[aria-checked=true] span { left: 28px; }
.mitt { display: grid; grid-template-columns: 44px minmax(0, 1fr) 84px; align-items: center; gap: 12px; font-size: 14px; }
.mitt > span:first-child { font-weight: 600; }
.mitt > span:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.mitt.over > span:last-child { font-weight: 700; color: var(--warn); }
.track { position: relative; height: 12px; border-radius: 6px; background: var(--line-2); }
.track i { display: block; height: 100%; border-radius: 6px; background: var(--ink-2); }
.mitt.over .track i { background: #C2410C; }
.track b { position: absolute; top: -4px; bottom: -4px; left: 80%; width: 2px; background: var(--ink); }
.stats { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.stats dt { font-size: 12px; font-weight: 600; color: var(--muted); }
.stats dd { margin: 4px 0 0; font-family: var(--display); font-size: 24px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.log { margin: 0; padding: 0; list-style: none; font-size: 13px; font-variant-numeric: tabular-nums; }
.log li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.log li:last-child { border-bottom: 0; }

/* ---- 광고 관리 ---- */
.drop { position: relative; min-height: 120px; padding: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; background: var(--hover); border: 2px dashed #B8BDC7; border-radius: 12px; cursor: pointer; }
.drop:hover { border-color: var(--ink); }
.drop:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.drop-icon { width: 48px; height: 48px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--yellow); color: var(--ink); }
.drop-title { font-size: 16px; font-weight: 600; }
.drop-title u { text-underline-offset: 3px; }
progress { width: 100%; height: 8px; border: 0; border-radius: 4px; overflow: hidden; background: #E4E6EA; appearance: none; -webkit-appearance: none; }
progress::-webkit-progress-bar { background: #E4E6EA; }
progress::-webkit-progress-value { background: var(--ink); border-radius: 4px; }
progress::-moz-progress-bar { background: var(--ink); border-radius: 4px; }
.file { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 44px; padding: 0; border: 0; background: none; color: var(--muted); font: inherit; text-align: left; cursor: pointer; }
.file b { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.thumb { position: relative; flex: none; width: 96px; aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 6px; background: var(--line-2); color: var(--muted); }
.thumb.sm { width: 64px; border-radius: 4px; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.file:hover b { text-decoration: underline; text-underline-offset: 3px; }
.file:hover svg { color: var(--ink); }
.player { width: min(860px, calc(100% - 32px)); }
.player video { display: block; width: 100%; max-height: 70vh; border-radius: 8px; background: #000; }
.tbl .stale { color: var(--warn); font-weight: 700; }
.seg { align-self: flex-start; display: inline-flex; padding: 3px; border: 1px solid var(--field); border-radius: 10px; background: var(--surface); }
.seg label { position: relative; display: flex; }
.seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.seg span { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.seg input:checked + span { background: var(--ink); color: #FFFFFF; }
.seg input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.tbl .ck { width: 44px; padding-right: 0; }
.ck input, .picklist input { width: 20px; height: 20px; margin: 0; accent-color: var(--ink); }
.badge.sel { background: var(--ink); color: #FFFFFF; }
.lib-scroll { max-height: 560px; overflow: auto; }
.lib-scroll thead th { position: sticky; top: 0; z-index: 1; background: var(--surface); }
.picker { width: min(640px, calc(100% - 32px)); max-height: calc(100% - 32px); }
.picker > form { display: flex; flex-direction: column; gap: 16px; }
.picklist { margin: 0; padding: 0; list-style: none; max-height: 46vh; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; }
.picklist li { display: flex; align-items: center; gap: 4px; padding-right: 4px; border-bottom: 1px solid var(--line-2); }
.picklist li:last-child { border-bottom: 0; }
.picklist li:has(input:checked) { background: #FFFBEB; }
.picklist label { flex: 1; min-width: 0; min-height: 48px; padding: 0 12px; display: flex; align-items: center; gap: 12px; cursor: pointer; }
.picklist .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 600; }
.picklist .empty { padding: 16px; }
.savebar { position: sticky; bottom: 0; z-index: 5; margin: 0 calc(-1 * var(--gutter)); padding: 16px var(--gutter); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; background: var(--surface); border-top: 1px solid var(--line); }

/* ---- 로그인 ---- */
.login { min-height: 100vh; display: flex; flex-wrap: wrap; }
.login-hero { flex: 1 1 420px; padding: 56px clamp(24px, 5vw, 64px); display: flex; flex-direction: column; justify-content: space-between; gap: 48px; background: var(--ink); color: #E7E9EE; }
.hero-sub { font-size: 14px; color: #9AA1AE; }
.hero-title { font-family: var(--display); font-size: clamp(48px, 6vw, 80px); line-height: 0.95; color: #FFFFFF; }
.hero-lead { max-width: 380px; font-size: 16px; line-height: 1.6; color: #C9CDD5; }
.hero-lines { display: block; width: 100%; height: 120px; }
.login-main { flex: 1 1 420px; padding: 56px 16px; display: flex; align-items: center; justify-content: center; }
.login-form { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 22px; }
.login-form h1 { font-size: 36px; }

/* ---- 좁은 화면 ---- */
@media (max-width: 820px) {
  .side { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 12px 16px; }
  .brand small, .who > span { display: none; }
  .who { margin: 0 0 0 auto; padding: 0; border: 0; }
  .nav { order: 3; width: 100%; flex-direction: row; flex-wrap: wrap; }
  .nav a { min-height: 40px; font-size: 14px; }
  .main { padding-top: 24px; }
  h1 { font-size: 32px; }
  .kpi strong { font-size: 30px; }
  .login-hero { padding: 24px 16px; gap: 16px; }
  .hero-title { font-size: 40px; }
  .hero-lines { display: none; }
  .login-main { padding: 32px 16px; align-items: flex-start; }
  .sheet { padding: 20px 16px 32px; }
  .stats { grid-template-columns: 1fr 1fr; }
}
