:root {
  color-scheme: light;
  --paper: #f6f4ef;
  --surface: #fffefb;
  --surface-strong: #ffffff;
  --ink: #242421;
  --muted: #73716b;
  --line: rgba(36, 36, 33, 0.11);
  --line-strong: rgba(36, 36, 33, 0.19);
  --coral: #e45145;
  --coral-soft: #fbe8e4;
  --mint: #25886f;
  --mint-soft: #dff2ea;
  --blue: #4778b8;
  --blue-soft: #e7eef8;
  --amber: #ad7622;
  --amber-soft: #f8ecd6;
  --sidebar: #232724;
  --shadow: 0 1px 1px rgba(25, 25, 22, 0.03), 0 10px 30px rgba(35, 31, 24, 0.045);
  --radius: 18px;
  --font: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--paper); scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--paper); font-family: var(--font); font-size: 14px; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid rgba(71, 120, 184, 0.35); outline-offset: 2px; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 40; display: flex; width: 244px; flex-direction: column; background: var(--sidebar); color: #f8f5ee; }
.brand { display: flex; align-items: center; gap: 11px; min-height: 86px; padding: 20px 22px; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand-mark { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px 12px 12px 4px; background: var(--coral); color: white; font-size: 17px; font-weight: 800; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.brand-copy strong, .brand-copy span { display: block; }
.brand-copy strong { font-size: 15px; letter-spacing: -.02em; }
.brand-copy span { margin-top: 3px; color: rgba(255,255,255,.47); font-size: 11px; }
.nav { flex: 1; padding: 18px 12px; }
.nav-label { margin: 3px 11px 10px; color: rgba(255,255,255,.35); font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.nav-link { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; margin: 4px 0; padding: 0 12px; border: 0; border-radius: 11px; background: transparent; color: rgba(255,255,255,.62); cursor: pointer; text-align: left; transition: .18s ease; }
.nav-link:hover { color: white; background: rgba(255,255,255,.06); }
.nav-link.active { color: white; background: rgba(255,255,255,.1); box-shadow: inset 3px 0 var(--coral); }
.nav-icon { display: grid; width: 22px; height: 22px; place-items: center; border: 1px solid rgba(255,255,255,.16); border-radius: 7px; font-size: 10px; font-weight: 800; }
.nav-link.active .nav-icon { border-color: rgba(228,81,69,.7); background: rgba(228,81,69,.16); }
.sidebar-foot { padding: 14px 14px 18px; border-top: 1px solid rgba(255,255,255,.08); }
.mode-card { padding: 12px; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; background: rgba(255,255,255,.035); }
.mode-row { display: flex; align-items: center; justify-content: space-between; }
.mode-card strong { font-size: 12px; }
.mode-card p { margin: 6px 0 0; color: rgba(255,255,255,.4); font-size: 10px; line-height: 1.5; }
.mode-badge { padding: 3px 7px; border-radius: 999px; color: #f8c3bb; background: rgba(228,81,69,.16); font-size: 9px; font-weight: 800; letter-spacing: .06em; }

.main { min-height: 100vh; margin-left: 244px; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 30px; border-bottom: 1px solid var(--line); background: rgba(246,244,239,.9); backdrop-filter: blur(16px); }
.mobile-menu { display: none; }
.title-block p { margin: 0 0 4px; color: var(--muted); font-size: 11px; font-weight: 650; letter-spacing: .03em; }
.title-block h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 23px; font-weight: 600; letter-spacing: -.025em; }
.top-actions { display: flex; align-items: center; gap: 9px; }
.sync-state { display: flex; align-items: center; gap: 7px; margin-right: 5px; color: var(--muted); font-size: 11px; }
.sync-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(37,136,111,.11); }
.icon-btn, .soft-btn, .primary-btn, .segmented button { border: 1px solid var(--line); background: var(--surface); cursor: pointer; transition: .18s ease; }
.icon-btn:hover, .soft-btn:hover { border-color: var(--line-strong); background: white; transform: translateY(-1px); }
.icon-btn { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 11px; font-weight: 800; }
.avatar-button { display: flex; align-items: center; gap: 9px; padding: 4px 10px 4px 4px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); cursor: pointer; }
.avatar { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 9px; background: var(--ink); color: white; font-size: 11px; font-weight: 750; }
.avatar-button span:last-child { font-size: 11px; font-weight: 650; }

.content { width: min(1500px, 100%); margin: 0 auto; padding: 28px 30px 56px; }
.page-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 22px; }
.page-intro h2 { margin: 0 0 7px; font-size: 19px; letter-spacing: -.03em; }
.page-intro p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.page-actions { display: flex; align-items: center; gap: 8px; }
.soft-btn, .primary-btn { min-height: 38px; padding: 0 14px; border-radius: 11px; font-size: 12px; font-weight: 700; }
.primary-btn { border-color: var(--ink); background: var(--ink); color: white; }
.primary-btn:hover { background: #3a3a36; }
.primary-btn.danger { border-color: var(--coral); background: var(--coral); }
.segmented { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.45); }
.segmented button { min-height: 30px; padding: 0 11px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; font-size: 11px; font-weight: 700; }
.segmented button.active { color: var(--ink); background: white; box-shadow: 0 2px 8px rgba(30,30,26,.08); }

.notice { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding: 12px 15px; border: 1px solid rgba(173,118,34,.18); border-radius: 13px; background: var(--amber-soft); color: #76521c; font-size: 11px; line-height: 1.5; }
.notice strong { font-weight: 800; }
.notice .notice-icon { display: grid; width: 24px; height: 24px; flex: 0 0 auto; place-items: center; border-radius: 8px; background: rgba(173,118,34,.13); font-weight: 800; }

.grid { display: grid; gap: 16px; }
.kpi-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 16px; }
.kpi-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.two-col { grid-template-columns: minmax(0, 1.8fr) minmax(280px, 1fr); margin-bottom: 16px; }
.equal-col { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 16px; }
.card { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.card-pad { padding: 20px; }
.kpi-card { position: relative; min-height: 142px; overflow: hidden; padding: 18px 19px; }
.kpi-card::after { position: absolute; right: -18px; bottom: -24px; width: 90px; height: 90px; border-radius: 50%; background: var(--wash, var(--coral-soft)); content: ''; opacity: .7; }
.kpi-card.coral { --accent: var(--coral); --wash: var(--coral-soft); }
.kpi-card.mint { --accent: var(--mint); --wash: var(--mint-soft); }
.kpi-card.blue { --accent: var(--blue); --wash: var(--blue-soft); }
.kpi-card.amber { --accent: var(--amber); --wash: var(--amber-soft); }
.kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 11px; font-weight: 650; }
.kpi-swatch { width: 9px; height: 9px; border: 2px solid white; border-radius: 50%; background: var(--accent, var(--coral)); box-shadow: 0 0 0 1px var(--accent, var(--coral)); }
.kpi-value { position: relative; z-index: 1; margin: 16px 0 8px; font-family: Georgia, "Times New Roman", serif; font-size: 31px; font-weight: 600; letter-spacing: -.04em; }
.kpi-foot { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; }
.delta { color: var(--mint); font-size: 11px; font-weight: 800; }
.delta.negative { color: var(--coral); }

.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.card-head h3 { margin: 0 0 5px; font-size: 14px; letter-spacing: -.02em; }
.card-head p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.text-link { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 11px; font-weight: 700; }
.text-link:hover { color: var(--ink); }
.chart-wrap { position: relative; height: 250px; }
.chart-wrap.compact { height: 188px; }
.chart-canvas { width: 100%; height: 100%; }
.chart-legend { display: flex; align-items: center; gap: 15px; margin-top: 12px; color: var(--muted); font-size: 10px; }
.legend-item { display: flex; align-items: center; gap: 6px; }
.legend-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--color); }

.bar-list { display: grid; gap: 17px; }
.bar-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 7px; font-size: 11px; }
.bar-meta strong { font-size: 12px; }
.bar-track { height: 7px; overflow: hidden; border-radius: 999px; background: #ece9e2; }
.bar-fill { height: 100%; border-radius: inherit; background: var(--coral); }
.bar-row:nth-child(2) .bar-fill { background: var(--blue); }
.bar-row:nth-child(3) .bar-fill { background: var(--mint); }
.bar-row:nth-child(4) .bar-fill { background: var(--amber); }
.alert-list { display: grid; }
.alert-item { display: grid; grid-template-columns: 9px 1fr auto; gap: 12px; align-items: start; padding: 14px 0; border-top: 1px solid var(--line); }
.alert-item:first-child { padding-top: 0; border-top: 0; }
.status-dot { width: 8px; height: 8px; margin-top: 4px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px var(--mint-soft); }
.status-dot.warning { background: var(--amber); box-shadow: 0 0 0 4px var(--amber-soft); }
.status-dot.info { background: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.status-dot.error { background: var(--coral); box-shadow: 0 0 0 4px var(--coral-soft); }
.alert-copy strong { display: block; margin-bottom: 4px; font-size: 11px; }
.alert-copy span { color: var(--muted); font-size: 10px; }
.alert-time { color: var(--muted); font-size: 10px; }

.search-box { position: relative; width: min(420px, 100%); }
.search-box input { width: 100%; height: 42px; padding: 0 42px 0 38px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); outline: none; }
.search-box input:focus { border-color: rgba(71,120,184,.55); box-shadow: 0 0 0 3px rgba(71,120,184,.1); }
.search-icon { position: absolute; top: 50%; left: 14px; color: var(--muted); transform: translateY(-50%); }
.search-count { position: absolute; top: 50%; right: 12px; color: var(--muted); font-size: 10px; transform: translateY(-50%); }
.table-card { overflow: hidden; }
.table-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.filter-group { display: flex; align-items: center; gap: 7px; }
.filter-chip { min-height: 30px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--muted); cursor: pointer; font-size: 10px; font-weight: 700; }
.filter-chip.active { border-color: var(--ink); background: var(--ink); color: white; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { height: 42px; padding: 0 16px; border-bottom: 1px solid var(--line); background: rgba(246,244,239,.6); color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .06em; text-align: left; text-transform: uppercase; white-space: nowrap; }
td { height: 66px; padding: 0 16px; border-bottom: 1px solid var(--line); font-size: 11px; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { cursor: pointer; transition: background .15s ease; }
tbody tr:hover { background: rgba(246,244,239,.72); }
.user-cell { display: flex; align-items: center; gap: 10px; }
.user-avatar { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 10px; background: var(--blue-soft); color: var(--blue); font-size: 11px; font-weight: 800; }
.user-cell strong, .user-cell span { display: block; }
.user-cell strong { margin-bottom: 3px; font-size: 11px; }
.user-cell span { color: var(--muted); font-size: 9px; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 0 8px; border-radius: 999px; background: var(--mint-soft); color: var(--mint); font-size: 9px; font-weight: 800; }
.status-pill::before { width: 5px; height: 5px; border-radius: 50%; background: currentColor; content: ''; }
.status-pill.review, .status-pill.investigating { background: var(--amber-soft); color: var(--amber); }
.status-pill.new { background: var(--coral-soft); color: var(--coral); }
.status-pill.reviewing { background: var(--amber-soft); color: var(--amber); }
.status-pill.suspended { background: var(--coral-soft); color: var(--coral); }
.status-pill.resolved { background: var(--blue-soft); color: var(--blue); }
.category-pill { display: inline-flex; min-height: 24px; align-items: center; padding: 0 9px; border-radius: 8px; background: var(--paper); color: var(--muted); font-size: 9px; font-weight: 800; }
.category-pill.bug { background: var(--coral-soft); color: var(--coral); }
.category-pill.suggestion { background: var(--blue-soft); color: var(--blue); }
.category-pill.general { background: var(--mint-soft); color: var(--mint); }
.feedback-cell { max-width: 520px; white-space: normal; }
.feedback-cell strong, .feedback-cell span { display: block; }
.feedback-cell strong { line-height: 1.45; }
.feedback-cell span { margin-top: 4px; color: var(--muted); font-size: 9px; }
.empty { padding: 54px 20px; color: var(--muted); text-align: center; }

.drawer-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(25,25,22,.32); animation: fade .18s ease; }
.drawer { position: fixed; inset: 0 0 0 auto; z-index: 61; width: min(440px, 100%); overflow-y: auto; background: var(--surface-strong); box-shadow: -20px 0 60px rgba(20,20,18,.16); animation: slide .22s ease; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 15px; }
.drawer-body { padding: 22px; }
.profile { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.profile .user-avatar { width: 48px; height: 48px; border-radius: 15px; font-size: 15px; }
.profile h3 { margin: 0 0 5px; font-size: 16px; }
.profile p { margin: 0; color: var(--muted); font-size: 11px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.detail-item { padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.detail-item span, .detail-item strong { display: block; }
.detail-item span { margin-bottom: 6px; color: var(--muted); font-size: 9px; }
.detail-item strong { font-size: 11px; }
.section-title { margin: 22px 0 11px; font-size: 11px; }
.activity { display: flex; gap: 11px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 11px; }
.activity::before { width: 7px; height: 7px; margin-top: 3px; border: 2px solid white; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 1px var(--blue); content: ''; }
.drawer-actions { display: flex; gap: 8px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.feedback-heading { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.feedback-message { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); font-size: 12px; line-height: 1.8; white-space: pre-wrap; word-break: break-word; }

.funnel { display: grid; gap: 9px; }
.funnel-row { display: grid; grid-template-columns: 104px minmax(80px, 1fr) 56px; align-items: center; gap: 10px; }
.funnel-label { font-size: 10px; font-weight: 700; }
.funnel-bar { height: 29px; overflow: hidden; border-radius: 8px; background: #ece9e2; }
.funnel-fill { display: flex; height: 100%; min-width: 38px; align-items: center; justify-content: flex-end; padding-right: 8px; border-radius: inherit; background: var(--coral); color: white; font-size: 9px; font-weight: 800; }
.funnel-row:nth-child(2) .funnel-fill { opacity: .88; }
.funnel-row:nth-child(3) .funnel-fill { opacity: .76; }
.funnel-row:nth-child(4) .funnel-fill { opacity: .65; }
.funnel-row:nth-child(5) .funnel-fill { opacity: .54; }
.funnel-value { color: var(--muted); font-size: 10px; text-align: right; }
.retention-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.retention-cell { display: grid; aspect-ratio: 1.15; place-items: center; border-radius: 9px; background: color-mix(in srgb, var(--blue) var(--intensity), white); color: var(--ink); font-size: 10px; font-weight: 800; }
.retention-labels { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 7px; color: var(--muted); font-size: 8px; text-align: center; }

.system-hero { display: grid; grid-template-columns: 180px 1fr; gap: 24px; align-items: center; margin-bottom: 16px; }
.health-score { position: relative; display: grid; width: 150px; height: 150px; place-items: center; margin: 0 auto; border-radius: 50%; background: conic-gradient(var(--mint) 99.96%, #e5e2da 0); }
.health-score::before { position: absolute; width: 124px; height: 124px; border-radius: 50%; background: var(--surface); content: ''; }
.health-score-inner { position: relative; z-index: 1; text-align: center; }
.health-score strong { display: block; font-family: Georgia, serif; font-size: 27px; }
.health-score span { color: var(--muted); font-size: 9px; }
.health-copy h2 { margin: 0 0 8px; font-size: 19px; }
.health-copy p { max-width: 580px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.service-list { display: grid; }
.service-row { display: grid; grid-template-columns: minmax(120px, 1.5fr) 110px 80px 80px minmax(110px, 1fr); align-items: center; gap: 12px; min-height: 61px; padding: 0 4px; border-top: 1px solid var(--line); font-size: 10px; }
.service-row:first-child { border-top: 0; }
.service-row strong { font-size: 11px; }
.service-row .detail { color: var(--muted); text-align: right; }

.cost-hero { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; margin-bottom: 16px; }
.money { margin: 12px 0 7px; font-family: Georgia, serif; font-size: 34px; letter-spacing: -.035em; }
.budget-track { height: 10px; margin-top: 22px; overflow: hidden; border-radius: 999px; background: #e9e6df; }
.budget-fill { height: 100%; border-radius: inherit; background: var(--coral); }
.budget-labels { display: flex; justify-content: space-between; margin-top: 7px; color: var(--muted); font-size: 9px; }
.cost-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cost-metric { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.cost-metric span { display: block; margin-bottom: 8px; color: var(--muted); font-size: 9px; }
.cost-metric strong { font-family: Georgia, serif; font-size: 18px; }
.provider-row { display: grid; grid-template-columns: minmax(210px, 1.45fr) minmax(90px, 1fr) 106px 92px; align-items: center; gap: 14px; min-height: 68px; border-top: 1px solid var(--line); font-size: 10px; }
.provider-row:first-child { border-top: 0; }
.provider-name strong, .provider-name span { display: block; }
.provider-name span { display: -webkit-box; margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 9px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.provider-bar { height: 7px; overflow: hidden; border-radius: 999px; background: #e9e6df; }
.provider-bar span { display: block; height: 100%; border-radius: inherit; background: var(--blue); }
.provider-amount { font-weight: 800; text-align: right; }
.provider-change { display: grid; justify-items: end; gap: 4px; color: var(--muted); text-align: right; }
.provider-change small { font-size: 8px; }

.login-page { display: grid; min-height: 100vh; grid-template-columns: minmax(320px, .9fr) minmax(420px, 1.1fr); background: var(--paper); }
.login-brand { display: flex; flex-direction: column; justify-content: space-between; padding: 48px; background: var(--sidebar); color: white; }
.login-brand h1 { max-width: 510px; margin: auto 0 20px; font-family: Georgia, serif; font-size: clamp(36px, 5vw, 66px); font-weight: 500; line-height: 1.03; letter-spacing: -.05em; }
.login-brand p { max-width: 430px; color: rgba(255,255,255,.5); line-height: 1.7; }
.login-form-wrap { display: grid; place-items: center; padding: 30px; }
.login-form { width: min(390px, 100%); }
.login-form h2 { margin: 0 0 8px; font-size: 22px; }
.login-form > p { margin: 0 0 28px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.field { margin-bottom: 15px; }
.field label { display: block; margin-bottom: 7px; font-size: 10px; font-weight: 750; }
.field input { width: 100%; height: 44px; padding: 0 13px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.login-form .primary-btn { width: 100%; min-height: 44px; margin-top: 7px; }
.login-hint { padding: 12px; border-radius: 11px; background: var(--amber-soft); color: #76521c; font-size: 10px; line-height: 1.6; }

.loading { display: grid; min-height: 60vh; place-items: center; color: var(--muted); }
.spinner { width: 24px; height: 24px; margin: 0 auto 12px; border: 2px solid var(--line); border-top-color: var(--coral); border-radius: 50%; animation: spin .8s linear infinite; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 100; max-width: 360px; padding: 13px 16px; border-radius: 12px; background: var(--ink); color: white; box-shadow: 0 12px 34px rgba(20,20,18,.2); font-size: 11px; animation: toast .22s ease; }
.mobile-overlay { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { transform: translateX(30px); opacity: .5; } }
@keyframes toast { from { transform: translateY(10px); opacity: 0; } }

@media (max-width: 1120px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .system-hero { grid-template-columns: 150px 1fr; }
  .service-row { grid-template-columns: minmax(110px, 1.2fr) 100px 70px 70px; }
  .service-row .detail { display: none; }
}

@media (max-width: 820px) {
  .sidebar { width: 260px; transform: translateX(-100%); transition: transform .22s ease; }
  body.menu-open .sidebar { transform: translateX(0); }
  .mobile-overlay { position: fixed; inset: 0; z-index: 35; display: none; background: rgba(25,25,22,.35); }
  body.menu-open .mobile-overlay { display: block; }
  .main { margin-left: 0; }
  .topbar { min-height: 68px; padding: 11px 18px; }
  .mobile-menu { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
  .title-block { margin-right: auto; }
  .title-block p { display: none; }
  .title-block h1 { font-size: 19px; }
  .sync-state, .avatar-button span:last-child { display: none; }
  .avatar-button { padding-right: 4px; }
  .content { padding: 22px 18px 44px; }
  .two-col, .equal-col, .cost-hero { grid-template-columns: 1fr; }
  .login-page { grid-template-columns: 1fr; }
  .login-brand { display: none; }
}

@media (max-width: 560px) {
  .top-actions .icon-btn { display: none; }
  .content { padding-right: 14px; padding-left: 14px; }
  .page-intro { align-items: stretch; flex-direction: column; }
  .page-actions { justify-content: space-between; }
  .kpi-grid, .kpi-grid.three { grid-template-columns: 1fr; gap: 10px; }
  .kpi-card { min-height: 120px; }
  .card-pad { padding: 16px; }
  .chart-wrap { height: 210px; }
  .table-toolbar { align-items: stretch; flex-direction: column; }
  .search-box { width: 100%; }
  .filter-group { overflow-x: auto; }
  .detail-grid { grid-template-columns: 1fr; }
  .funnel-row { grid-template-columns: 84px minmax(64px, 1fr) 46px; }
  .system-hero { grid-template-columns: 1fr; text-align: center; }
  .health-copy p { margin: 0 auto; }
  .service-row { grid-template-columns: 1fr auto; padding: 12px 4px; }
  .service-row > :nth-child(3), .service-row > :nth-child(4), .service-row .detail { display: none; }
  .cost-metrics { grid-template-columns: 1fr; }
  .provider-row { grid-template-columns: 1fr auto; padding: 12px 0; }
  .provider-bar, .provider-change { display: none; }
  .login-form-wrap { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
