/* 11-22 one OS 관제 페이지 — 밝은 판 기본 + 어두운 판(html[data-theme=dark]). 바깥 글꼴 · CDN 없음.
   본문 16px · 작은 글도 14px 아래로 내리지 않는다 · 글자 대비 4.5:1 이상(--ink3 까지).
   상태 = 모양 + 글자 + 색(동그라미 정상 · 세모 주의 · 네모 문제 · 빈 동그라미 확인 안 됨) — 색만으로 가르지 않는다. 글자는 늘 글자 색(상태 색을 입히지 않는다). */
:root {
  color-scheme: light;
  --page: #f6f5f1; --surface: #fdfdfc; --sunk: #efeee9;
  --ink: #0b0b0b; --ink2: #45443f; --ink3: #66655f;
  --line: #e1e0d9; --line2: #c3c2b7;
  --ok: #0a8f0a; --warn: #e79e00; --bad: #d03b3b; --none: #b9b8ae;
  --accent: #2a78d6; --accent-tr: #d9e6f7; --warn-tr: #fbe9bd; --bad-tr: #f5d5d5;
  --warn-wash: #fff6dc; --bad-wash: #fdeeee;
  --focus: #2a78d6; --s1: #2a78d6; --s2: #eb6834;
  --sans: "Pretendard Variable", Pretendard, "SUIT Variable", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Segoe UI", sans-serif;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0d0d0d; --surface: #1a1a19; --sunk: #232322;
  --ink: #f0efec; --ink2: #c9c8be; --ink3: #a3a299;
  --line: #2c2c2a; --line2: #45453f;
  --ok: #19b219; --warn: #fab219; --bad: #ee5a5a; --none: #5a5a54;
  --accent: #4a93ec; --accent-tr: #1d2f47; --warn-tr: #44360f; --bad-tr: #472020;
  --warn-wash: #2a2413; --bad-wash: #2b1818;
  --focus: #7db3f5; --s1: #3987e5; --s2: #d95926;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; letter-spacing: -0.005em; -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: anywhere; }
h1, h2, h3, h4, p, ul, dl, dd { margin: 0; padding: 0; }
ul { list-style: none; }
button { font: inherit; color: inherit; }
b { font-weight: 650; }
em { font-style: normal; }
code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 15px; letter-spacing: 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--page); padding: 10px 16px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 12px; }

/* 맨 위 띠 */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--page) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1360px; margin: 0 auto; padding: 0 40px; height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: baseline; gap: 8px; font-size: 18px; letter-spacing: -0.02em; white-space: nowrap; }
.brand b { font-weight: 800; }
.brand span { color: var(--ink3); font-weight: 500; }
.top-r { display: flex; align-items: center; gap: 10px; min-width: 0; }
.top-at { font-size: 14px; color: var(--ink2); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-out { margin: 0; }
.tbtn { height: 36px; padding: 0 14px; border: 1px solid var(--line2); border-radius: 18px; background: transparent; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.tbtn:hover { background: var(--sunk); }

.wrap { max-width: 1360px; margin: 0 auto; padding: 0 40px 96px; }

/* 상태 표시 — 모양 + 글자 */
.st { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 650; color: var(--ink); white-space: nowrap; }
.st i { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--none); }
.st[data-lv="ok"] i { background: var(--ok); }
.st[data-lv="warn"] i { width: 12px; height: 11px; border-radius: 0; background: var(--warn); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.st[data-lv="bad"] i { border-radius: 2px; background: var(--bad); }
.st[data-lv="unknown"] i { background: transparent; box-shadow: inset 0 0 0 2px var(--none); }
.st[data-lv="unknown"] { color: var(--ink2); font-weight: 550; }
.tag { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 9px; background: var(--sunk); color: var(--ink2); font-size: 13px; font-weight: 600; vertical-align: 1px; white-space: nowrap; }
.tag.w { background: var(--warn-wash); color: var(--ink); }
.z { color: var(--ink3); font-weight: 500; }

/* 한 문장 상태 */
.hero { padding: 56px 0 8px; }
.hero-k { font-size: 15px; font-weight: 650; color: var(--ink3); letter-spacing: 0.02em; }
.hero-t { display: flex; align-items: center; gap: 18px; margin-top: 8px; font-size: clamp(38px, 5.2vw, 68px); font-weight: 800; letter-spacing: -0.045em; line-height: 1.08; }
.hero-t i { flex: none; width: 0.36em; height: 0.36em; border-radius: 50%; background: var(--none); }
.hero-t[data-lv="ok"] i { background: var(--ok); }
.hero-t[data-lv="warn"] i { width: 0.44em; height: 0.4em; border-radius: 0; background: var(--warn); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.hero-t[data-lv="bad"] i { border-radius: 0.06em; background: var(--bad); }
.hero-s { margin-top: 14px; font-size: 18px; color: var(--ink2); }
.hero-stale { display: flex; align-items: flex-start; gap: 12px; margin-top: 22px; padding: 16px 18px; border: 1px solid var(--bad); border-radius: 12px; background: var(--bad-wash); font-size: 16px; }
.hero-stale .st { margin-top: 2px; }
.hero-list { margin-top: 26px; border-top: 1px solid var(--line2); max-width: 980px; }
.hero-list li { display: grid; grid-template-columns: 76px minmax(90px, 180px) minmax(0, 1fr); align-items: baseline; gap: 4px 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.hero-list li span:last-child { color: var(--ink2); overflow-wrap: anywhere; }
.hero-more { display: inline-block; margin-top: 12px; font-size: 15px; font-weight: 600; color: var(--ink); text-underline-offset: 3px; }

/* 구역 */
.sec { margin-top: 64px; }
.h { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; font-size: 22px; font-weight: 780; letter-spacing: -0.03em; margin-bottom: 18px; }
.h-s { font-size: 15px; font-weight: 500; color: var(--ink3); letter-spacing: 0; }
.empty { padding: 22px 24px; border: 1px dashed var(--line2); border-radius: 12px; color: var(--ink2); font-size: 16px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.note { margin-top: 10px; font-size: 15px; color: var(--ink2); }

/* 서버 카드 */
.svs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sv { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px 24px 20px; min-width: 0; display: flex; flex-direction: column; }
.sv[data-lv="bad"] { border-color: var(--bad); }
.sv header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sv h3 { font-size: 21px; font-weight: 780; letter-spacing: -0.03em; }
.sv-host { margin-top: 2px; font-size: 14px; color: var(--ink3); overflow-wrap: anywhere; }
.sv-big { display: flex; align-items: baseline; gap: 6px; margin-top: 20px; flex-wrap: wrap; }
.sv-big b { font-size: 44px; font-weight: 780; letter-spacing: -0.045em; line-height: 1; }
.sv-big span { font-size: 18px; font-weight: 650; color: var(--ink2); }
.sv-big em { margin-left: 8px; font-size: 14px; color: var(--ink3); }
.sv-down b { font-size: 34px; }
.msl { margin-left: auto; align-self: center; width: 132px; height: 30px; overflow: visible; }
.msl polyline { fill: none; stroke: var(--ink3); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.sv-why { margin-top: 10px; font-size: 15px; color: var(--ink2); overflow-wrap: anywhere; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.facts dt { font-size: 14px; color: var(--ink3); }
.facts dd { font-size: 16px; font-weight: 650; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.sv-bar { margin-top: 22px; }
.bar { display: flex; align-items: flex-end; gap: 1px; height: 34px; }
.bar i { flex: 1 1 0; min-width: 0; height: 16px; border-radius: 1.5px; background: var(--line); }
.bar i.c1 { background: var(--ok); }
.bar i.c2 { background: var(--warn); height: 25px; }
.bar i.c3 { background: var(--bad); height: 34px; }
.bar i:hover { outline: 2px solid var(--ink); outline-offset: 1px; }
.bar-ax { display: flex; justify-content: space-between; margin-top: 6px; font-size: 13px; color: var(--ink3); }
.bar-sum { margin-top: 6px; font-size: 15px; font-weight: 600; }
.bar-outs { margin-top: 2px; font-size: 14px; color: var(--ink2); }
.tip { position: absolute; z-index: 30; padding: 8px 12px; border-radius: 8px; background: var(--ink); color: var(--page); font-size: 14px; line-height: 1.4; pointer-events: none; white-space: nowrap; }
.tip b { display: block; font-variant-numeric: tabular-nums; }
.tip[hidden] { display: none; }

/* 자원 타일 */
.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.tile { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; min-width: 0; }
.tile[data-lv="bad"] { border-color: var(--bad); }
.tile-k { font-size: 15px; font-weight: 600; color: var(--ink2); }
.tile-v { display: flex; align-items: baseline; gap: 4px; margin-top: 6px; }
.tile-v b { font-size: 38px; font-weight: 780; letter-spacing: -0.04em; line-height: 1.1; }
.tile-v span { font-size: 18px; font-weight: 650; color: var(--ink2); }
.tile-t b { font-size: 26px; letter-spacing: -0.03em; line-height: 1.6; }
.tile-s { margin-top: 10px; font-size: 14px; color: var(--ink2); overflow-wrap: anywhere; }
.tile .st { margin-top: 10px; }
.meter { height: 8px; margin-top: 12px; border-radius: 4px; background: var(--accent-tr); overflow: hidden; }
.meter b { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--accent); }
.meter[data-lv="warn"] { background: var(--warn-tr); }
.meter[data-lv="warn"] b { background: var(--warn); }
.meter[data-lv="bad"] { background: var(--bad-tr); }
.meter[data-lv="bad"] b { background: var(--bad); }
.spark { position: absolute; right: 18px; top: 20px; width: 84px; height: 24px; overflow: visible; }
.spark polyline { fill: none; stroke: var(--line2); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.units { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 18px; font-size: 15px; }
.units li { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.units li span { color: var(--ink3); font-size: 14px; }
.watch { margin-top: 14px; font-size: 15px; }
.watch summary, .others summary { cursor: pointer; font-weight: 600; color: var(--ink2); padding: 6px 0; width: fit-content; }
.watch li { display: flex; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.watch time { flex: none; color: var(--ink3); font-variant-numeric: tabular-nums; }
.watch li span { overflow-wrap: anywhere; }

/* AI 비용 — 계열 색은 상태 색과 따로(one OS 파랑 · 릴스 서버 주황 — 색각 이상 구분 검사 통과 · 범례와 표를 같이 둔다) */
.ai-grid { display: grid; grid-template-columns: minmax(260px, 0.8fr) minmax(0, 2fr); gap: 16px; }
.ai-ks { display: grid; gap: 0; border-top: 2px solid var(--ink); align-content: start; }
.ai-k { padding: 14px 0 16px; border-bottom: 1px solid var(--line); }
.ai-k .kpi-v b { font-size: 34px; }
.ai-k:first-child .kpi-v b { font-size: 44px; }
.ai-p { margin-top: 2px; font-size: 14px; color: var(--ink2); }
.ai-chart { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px 16px; min-width: 0; }
.ai-chart figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; font-size: 15px; }
.ai-chart figcaption b { margin-right: auto; font-weight: 700; }
.lg { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--ink2); }
.lg i { width: 12px; height: 12px; border-radius: 3px; }
.s1 { background: var(--s1); }
.s2 { background: var(--s2); }
.ai-plot { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; margin-top: 16px; }
.ai-y { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; height: 168px; font-size: 13px; color: var(--ink3); font-variant-numeric: tabular-nums; }
.ai-bars { display: flex; align-items: flex-end; gap: 3px; height: 168px; border-bottom: 1px solid var(--line2); background: linear-gradient(var(--line), var(--line)) 0 0 / 100% 1px no-repeat, linear-gradient(var(--line), var(--line)) 0 50% / 100% 1px no-repeat; }
.ab { position: relative; flex: 1 1 0; min-width: 0; max-width: 24px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; cursor: default; }
.ab i { display: block; width: 100%; min-height: 2px; }
.ab i:first-of-type { border-radius: 4px 4px 0 0; }
.ab em { flex: none; align-self: center; width: 10px; height: 9px; margin-bottom: 2px; background: var(--warn); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.ab:hover { background: var(--sunk); }
.ai-x { display: flex; justify-content: space-between; margin: 6px 0 0 0; padding-left: 52px; font-size: 13px; color: var(--ink3); }
.ai-fl { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 14px; font-size: 15px; }
.ai-fl span { color: var(--ink2); }
.ai-notes { margin-top: 14px; font-size: 15px; }
.ai-notes li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 6px 0; }
.ai-notes li span { color: var(--ink2); }
.ai-t { margin-top: 26px; }
.h3 { font-size: 17px; font-weight: 750; letter-spacing: -0.02em; margin-bottom: 8px; }
.tile-u { font-size: 15px !important; margin-left: 6px; }

/* 매장 요약 */
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line2); margin-bottom: 20px; }
.kpi { padding: 16px 20px 18px 0; min-width: 0; }
.kpi + .kpi { padding-left: 20px; border-left: 1px solid var(--line); }
.kpi-k { font-size: 15px; font-weight: 600; color: var(--ink2); }
.kpi-v { display: flex; align-items: baseline; gap: 4px; margin-top: 4px; }
.kpi-v b { font-size: 40px; font-weight: 780; letter-spacing: -0.04em; line-height: 1.1; }
.kpi-v span { font-size: 17px; font-weight: 650; color: var(--ink2); }
.kpi[data-lv] .kpi-v b { box-shadow: inset 0 -0.14em 0 var(--warn); }
.kpi[data-lv="bad"] .kpi-v b { box-shadow: inset 0 -0.14em 0 var(--bad); }

/* 매장 표 */
.table { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; --cols: minmax(150px, 1.4fr) 72px minmax(132px, 1.1fr) 116px minmax(160px, 1.2fr) 96px 56px 84px 112px minmax(96px, 0.9fr) 18px; }
.thead, .row { display: grid; grid-template-columns: var(--cols); column-gap: 12px; align-items: start; padding: 0 22px; }
.thead { padding-top: 13px; padding-bottom: 12px; font-size: 14px; font-weight: 650; color: var(--ink2); border-bottom: 1px solid var(--line2); background: var(--sunk); }
.thead .r { text-align: right; }
.store + .store { border-top: 1px solid var(--line); }
.store[data-lv="bad"] > .row { box-shadow: inset 4px 0 0 var(--bad); }
.store[data-lv="warn"] > .row { box-shadow: inset 4px 0 0 var(--warn); }
.row { width: 100%; padding-top: 17px; padding-bottom: 17px; border: 0; background: transparent; text-align: left; cursor: pointer; font-size: 16px; }
.row:hover { background: var(--sunk); }
.row:focus-visible { outline-offset: -3px; border-radius: 10px; }
.c { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.c b { font-weight: 650; overflow-wrap: anywhere; }
.c small { font-size: 14px; color: var(--ink2); line-height: 1.4; overflow-wrap: anywhere; }
.c small.inl { display: inline; }
.c .w, .c b.w { box-shadow: inset 0 -0.42em 0 var(--warn-wash); color: var(--ink); }
.c small .w { font-weight: 650; }
.c-name b { font-size: 17px; font-weight: 750; letter-spacing: -0.02em; }
.c-name { flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 0; }
.c-name small { flex: 1 0 100%; color: var(--ink3); font-variant-numeric: tabular-nums; }
.c-n { align-items: flex-end; text-align: right; font-variant-numeric: tabular-nums; flex-direction: row; justify-content: flex-end; flex-wrap: wrap; align-items: baseline; }
.chev { justify-self: end; align-self: center; width: 10px; height: 10px; border-right: 2px solid var(--ink3); border-bottom: 2px solid var(--ink3); transform: rotate(45deg) translate(-2px, -2px); transition: transform .15s ease; }
[aria-expanded="true"] > .chev { transform: rotate(-135deg) translate(-2px, -2px); }
.others { margin-top: 14px; font-size: 15px; }
.others li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.others li span { color: var(--ink2); font-size: 14px; }

/* 매장 펼침 */
.detail { padding: 6px 22px 26px; background: var(--page); border-top: 1px solid var(--line); }
.detail[hidden] { display: none; }
.dg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.dbox { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; min-width: 0; }
.d-wide { grid-column: 1 / -1; }
.dbox h4 { display: flex; align-items: baseline; gap: 10px; font-size: 17px; font-weight: 750; letter-spacing: -0.02em; margin-bottom: 10px; }
.dbox h4 span { font-size: 14px; font-weight: 500; color: var(--ink3); }
.tw { overflow-x: auto; }
.tb { width: 100%; border-collapse: collapse; font-size: 15px; }
.tb th, .tb td { padding: 10px 14px 10px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.tb thead th { font-size: 14px; font-weight: 650; color: var(--ink2); border-bottom-color: var(--line2); white-space: nowrap; }
.tb tbody th { font-weight: 650; white-space: nowrap; }
.tb tbody tr:last-child th, .tb tbody tr:last-child td { border-bottom: 0; }
.tb td small { display: block; font-size: 14px; color: var(--ink2); }
.tb .r { text-align: right; font-variant-numeric: tabular-nums; }
.tb .path, .mail { overflow-wrap: anywhere; word-break: break-all; }
.lines li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.lines li:last-child { border-bottom: 0; }
.lines li span { color: var(--ink2); overflow-wrap: anywhere; }
.lines time { color: var(--ink3); font-variant-numeric: tabular-nums; min-width: 92px; }
.kv { display: grid; gap: 8px; margin-top: 4px; }
.kv > div { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; font-size: 15px; }
.kv dt { color: var(--ink2); white-space: nowrap; }
.kv dd { font-weight: 600; text-align: right; overflow-wrap: anywhere; }

/* 확인할 것 */
.issues { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.issues li { display: grid; grid-template-columns: 76px minmax(100px, 200px) minmax(0, 1fr) auto; align-items: baseline; gap: 4px 18px; padding: 16px 22px; font-size: 16px; }
.issues li + li { border-top: 1px solid var(--line); }
.issues li[data-lv="bad"] { box-shadow: inset 4px 0 0 var(--bad); }
.issues li[data-lv="warn"] { box-shadow: inset 4px 0 0 var(--warn); }
.it { color: var(--ink2); overflow-wrap: anywhere; }
.is { font-size: 14px; color: var(--ink3); white-space: nowrap; font-variant-numeric: tabular-nums; }

.cols { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; }
.cols .sec, #workers { min-width: 0; }
.kinds { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 12px; font-size: 15px; color: var(--ink2); }
.kinds b { margin-right: 6px; color: var(--ink); font-variant-numeric: tabular-nums; }
.wk li b { min-width: 170px; }
.ev li b { min-width: 90px; }
.more { margin-top: 12px; height: 40px; padding: 0 16px; border: 1px solid var(--line2); border-radius: 20px; background: transparent; font-size: 15px; font-weight: 600; cursor: pointer; }
.more:hover { background: var(--sunk); }
.foot { margin-top: 72px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink3); overflow-wrap: anywhere; }

/* 들어가기 */
body.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-box { width: 100%; max-width: 520px; }
.login-box h1 { margin-top: 28px; font-size: clamp(30px, 6vw, 42px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.18; word-break: keep-all; }
.login-p { margin-top: 18px; font-size: 17px; color: var(--ink2); word-break: keep-all; }
.login-msg { margin-top: 18px; padding: 14px 16px; border: 1px solid var(--line2); border-radius: 10px; background: var(--surface); font-size: 16px; font-weight: 600; }
.login-msg[hidden] { display: none; }
.login-btn { display: flex; align-items: center; justify-content: center; margin-top: 28px; min-height: 56px; padding: 0 24px; border-radius: 28px; background: var(--ink); color: var(--page); font-size: 17px; font-weight: 700; text-decoration: none; }
.login-btn:hover { opacity: 0.88; }
.login-s { margin-top: 18px; font-size: 15px; color: var(--ink3); word-break: keep-all; }

/* 좁은 화면 — 표는 카드로 */
@media (max-width: 1320px) {
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .thead { display: none; }
  .row { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 14px; padding-right: 48px; position: relative; }
  .c-name { grid-column: 1 / 4; }
  .c-st { grid-column: 4; justify-self: end; }
  .c::before { content: attr(data-l); font-size: 13px; font-weight: 600; color: var(--ink3); }
  .c-name::before, .c-st::before { content: none; }
  .c-n { text-align: left; justify-content: flex-start; }
  .c-n { flex-direction: row; align-items: baseline; flex-wrap: wrap; column-gap: 4px; }
  .c-n::before { flex: 1 0 100%; }
  .c-p { grid-column: span 2; }
  .row .chev { position: absolute; right: 22px; top: 26px; }
}
@media (max-width: 980px) {
  .ai-grid { grid-template-columns: 1fr; }
  .ai-ks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ai-k { padding-right: 14px; }
  .svs { grid-template-columns: 1fr; }
  .cols { grid-template-columns: 1fr; gap: 0; }
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpi:nth-child(4) { padding-left: 0; border-left: 0; }
  .kpi:nth-child(n+4) { border-top: 1px solid var(--line); }
}
@media (max-width: 700px) {
  .top-in { padding: 0 16px; height: 56px; }
  .top-at { display: none; }
  .wrap { padding: 0 16px 72px; }
  .hero { padding-top: 36px; }
  .hero-t { gap: 12px; }
  .hero-s { font-size: 16px; }
  .hero-list li { grid-template-columns: 70px minmax(0, 1fr); }
  .hero-list li span:last-child { grid-column: 1 / -1; }
  .sec { margin-top: 48px; }
  .h { font-size: 21px; }
  .sv { padding: 20px 18px 18px; }
  .ai-ks { grid-template-columns: 1fr; }
  .ai-chart { padding: 16px 14px 14px; }
  .ai-bars { gap: 2px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile { padding: 16px; }
  .tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .tile-v b { font-size: 32px; }
  .tile-t b { font-size: 21px; }
  .spark { display: none; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi, .kpi + .kpi { padding: 14px 12px 14px 0; border-left: 0; }
  .kpi:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
  .kpi:nth-child(n+3) { border-top: 1px solid var(--line); }
  .kpi-v b { font-size: 34px; }
  .row { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 16px 44px 16px 16px; }
  .c-name { grid-column: 1 / -1; }
  .c-st { grid-column: 1 / -1; justify-self: start; }
  .c-p { grid-column: 1 / -1; }
  .row .chev { right: 18px; top: 24px; }
  .detail { padding: 2px 12px 18px; }
  .dg { grid-template-columns: 1fr; }
  .dbox { padding: 16px; }
  .tb.stack thead { display: none; }
  .tb.stack tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .tb.stack tbody tr:last-child { border-bottom: 0; }
  .tb.stack th, .tb.stack td { display: flex; justify-content: space-between; gap: 14px; padding: 3px 0; border: 0; white-space: normal; text-align: right; }
  .tb.stack tbody th { font-size: 16px; text-align: left; justify-content: flex-start; }
  .tb.stack td::before { content: attr(data-l); flex: none; color: var(--ink3); font-size: 14px; text-align: left; }
  .tb.stack td small { text-align: right; }
  .issues li { grid-template-columns: 70px minmax(0, 1fr); padding: 14px 16px; }
  .issues .it, .issues .is { grid-column: 1 / -1; white-space: normal; }
  .wk li b, .ev li b { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) { .chev { transition: none; } }
@media (forced-colors: active) {
  .st i, .hero-t i, .bar i, .meter b { forced-color-adjust: none; }
}
