:root {
  --navy: #0a1e46;
  --navy-2: #12295c;
  --blue: #1a6ce8;
  --blue-d: #1457c2;
  --blue-l: #e8f0fe;
  --bg: #f2f4f8;
  --card: #fff;
  --line: #e5e8ef;
  --text: #0f172a;
  --muted: #64748b;
  --green: #16a34a;
  --green-l: #dcfce7;
  --red: #dc2626;
  --red-l: #fee2e2;
  --amber: #d97706;
  --amber-l: #fef3c7;
  --violet: #7c3aed;
  --violet-l: #ede9fe;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 1px 3px rgba(15, 23, 42, .06);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 14px/1.45 Inter, system-ui, -apple-system, Segoe UI, sans-serif; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.green { color: var(--green); }
.red { color: var(--red); }
.strong { font-weight: 600; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.mt8 { margin-top: 8px; }
.ic { flex: none; vertical-align: middle; }
small { display: block; color: var(--muted); font-size: 12px; }

/* ---------- shell ---------- */
.shell { display: flex; min-height: 100vh; }
.sidebar { width: 236px; flex: none; background: linear-gradient(180deg, var(--navy), #081838); color: #cfd8ee; display: flex; flex-direction: column; padding: 18px 12px; position: sticky; top: 0; height: 100vh; }
.brand { display: block; padding: 4px 10px 22px; color: #fff; text-decoration: none !important; }
.brand-word { display: block; font-weight: 800; font-size: 27px; letter-spacing: .06em; line-height: 1; }
.brand-sub { display: block; font-size: 10.5px; letter-spacing: .42em; color: #8fb3ff; margin-top: 6px; font-weight: 600; }
.brand-dark { color: var(--navy); text-align: center; padding-bottom: 8px; }
.brand-dark .brand-sub { color: var(--blue); }
.nav { display: flex; flex-direction: column; gap: 3px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; color: #dbe3f5; font-weight: 500; font-size: 14.5px; text-decoration: none; }
.nav a:hover { background: rgba(255, 255, 255, .07); }
.nav a.active { background: var(--blue); color: #fff; box-shadow: 0 4px 12px rgba(26, 108, 232, .35); }
.nav-bottom { margin-top: auto; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 16px; padding: 12px 24px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.search { flex: 1; max-width: 640px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; background: #f8fafc; color: var(--muted); }
.search input { border: 0; background: none; outline: none; padding: 10px 0; font: inherit; width: 100%; color: var(--text); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; border: 0; background: none; color: #475569; cursor: pointer; }
.icon-btn:hover { background: #f1f5f9; text-decoration: none; }
.badge-dot { position: absolute; top: 1px; right: 0; background: var(--red); color: #fff; font-size: 10.5px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; border: 2px solid #fff; }
.me { display: flex; align-items: center; gap: 10px; }
.me-text strong { display: block; font-size: 14px; }
.avatar { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #fff; font-weight: 700; font-size: 14px; flex: none; }
.avatar.sm { width: 26px; height: 26px; font-size: 11px; }
.menu-btn { display: none; }
.content { padding: 22px 24px 40px; max-width: 1600px; width: 100%; }
.flash { margin: 14px 24px 0; padding: 10px 14px; border-radius: 10px; background: var(--green-l); color: #14532d; font-weight: 500; display: flex; gap: 8px; align-items: center; }
.alert { padding: 10px 12px; border-radius: 8px; background: var(--red-l); color: #7f1d1d; margin-bottom: 12px; }

/* ---------- cards & buttons ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin-bottom: 18px; }
.card-h { font-size: 16px; margin-bottom: 12px; }
.card-h small { display: inline; margin-left: 6px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 16px; border-radius: 8px; border: 1px solid transparent; font: 600 14px Inter, sans-serif; cursor: pointer; text-decoration: none !important; white-space: nowrap; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-d); }
.btn-ghost { background: #fff; color: #1e293b; border-color: var(--line); }
.btn-ghost:hover { background: #f8fafc; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-block { width: 100%; padding: 11px; }
.page-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.page-head h1 { font-size: 24px; }
.page-head .btn, .page-head .seg { margin-left: auto; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; margin-bottom: 12px; }

/* ---------- home ---------- */
.hello { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 18px; flex-wrap: wrap; }
.hello-left { display: flex; align-items: center; gap: 16px; }
.sun { color: #f59e0b; display: grid; }
.hello h1 { font-size: 32px; font-weight: 800; }
.hello p { margin: 2px 0 0; font-size: 15px; }
.hello-quote { margin: 0; text-align: right; font-style: italic; color: #1e293b; font-size: 15px; max-width: 460px; }
.hello-quote cite { display: block; font-style: normal; color: var(--muted); font-size: 13px; margin-top: 4px; }
.hello-quote cite::before { content: "— "; }
.kpi-row { display: grid; grid-template-columns: 1.9fr repeat(5, 1fr); gap: 14px; margin-bottom: 18px; }
.kpi-row .card { margin: 0; }
.progress-card h2 { font-size: 17px; margin-bottom: 8px; }
.progress-inner { display: flex; align-items: center; gap: 18px; }
.ring { transform: rotate(-90deg); flex: none; }
.ring-bg { fill: none; stroke: #e2e8f0; stroke-width: 8; }
.ring-fg { fill: none; stroke: var(--green); stroke-width: 8; stroke-linecap: round; transition: stroke-dashoffset .6s; }
.ring text { transform: rotate(90deg); transform-origin: 50px 50px; text-anchor: middle; }
.ring-num { font: 800 17px Inter, sans-serif; fill: var(--text); }
.ring-lbl { font: 500 7.5px Inter, sans-serif; fill: var(--muted); }
.progress-msg { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.togo { background: var(--green-l); border-radius: 10px; padding: 10px 14px; }
.togo strong { display: block; font-size: 22px; color: #15803d; }
.togo span { color: #166534; font-size: 13px; }
.progress-msg small { display: flex; gap: 5px; align-items: center; color: #334155; }
.progress-msg small .ic { color: var(--green); }
.kpi { display: flex; flex-direction: column; justify-content: space-between; gap: 12px; }
.kpi-top { display: flex; gap: 12px; align-items: flex-start; }
.kpi-icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex: none; }
.kpi-icon.sm { width: 30px; height: 30px; }
.kpi-icon.violet { background: #8b5cf6; } .kpi-icon.blue { background: #2563eb; } .kpi-icon.green { background: #22c55e; }
.kpi-icon.orange { background: #f97316; } .kpi-icon.gold { background: #f59e0b; } .kpi-icon.red { background: #ef4444; }
.kpi-val { font-size: 25px; font-weight: 800; line-height: 1.1; }
.kpi-lbl { color: #334155; font-size: 13px; line-height: 1.3; }
.kpi-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 10px; font-size: 13px; }
.delta { display: inline-flex; align-items: center; gap: 2px; font-weight: 700; }
.delta.up { color: var(--green); } .delta.down { color: var(--red); }

/* ---------- tabs & tables ---------- */
.table-card { padding: 0; overflow: hidden; }
.table-card > .card-h { padding: 16px 18px 0; }
.tabs { display: flex; align-items: center; gap: 4px; border-bottom: 1px solid var(--line); padding: 0 14px; overflow-x: auto; }
.tabs a { padding: 15px 12px 13px; color: #334155; font-weight: 500; border-bottom: 2px solid transparent; white-space: nowrap; text-decoration: none; }
.tabs a.active { color: var(--text); font-weight: 700; border-color: var(--blue); }
.tabs .count { background: var(--red-l); color: var(--red); border-radius: 10px; font-size: 11px; padding: 1px 7px; font-weight: 700; margin-left: 4px; }
.tabs-cta { margin-left: auto; }
.tabs-flush { padding: 0; margin: 4px -18px 16px; padding-left: 8px; }
.table-wrap { overflow-x: auto; }
.grid { width: 100%; border-collapse: collapse; }
.grid th { text-align: left; font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: #475569; font-weight: 600; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #fafbfd; white-space: nowrap; }
.grid td { padding: 13px 14px; border-bottom: 1px solid #eef1f6; vertical-align: middle; }
.grid tbody tr:hover { background: #fafcff; }
.grid tbody tr:last-child td { border-bottom: 0; }
.grid td small { margin-top: 1px; }
.grid.compact td, .grid.compact th { padding: 9px 12px; }
.grid a.strong { color: var(--text); }
.actions-table .why { font-size: 13px; color: #1e293b; min-width: 170px; }
.actions-table .conv { font-size: 13px; color: #1e293b; max-width: 340px; min-width: 240px; }
.notes { font-size: 13px; color: #334155; max-width: 320px; }
.pill { display: inline-block; padding: 6px 14px; border-radius: 7px; font-weight: 600; font-size: 13px; min-width: 64px; text-align: center; }
.pill.high { background: var(--red-l); color: var(--red); }
.pill.medium { background: var(--amber-l); color: #b45309; }
.pill.low { background: var(--green-l); color: #15803d; }
.act { display: flex; gap: 10px; align-items: flex-start; }
.act-ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.act-ic.blue { background: var(--blue-l); color: var(--blue); } .act-ic.amber { background: var(--amber-l); color: #d97706; }
.act-ic.violet { background: var(--violet-l); color: var(--violet); } .act-ic.green { background: var(--green-l); color: var(--green); }
.act-ic.pink { background: #fce7f3; color: #db2777; }
.act-name { font-weight: 600; }
.tag { display: inline-block; background: #f1f5f9; color: #334155; border-radius: 6px; padding: 2px 8px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 6px; font-size: 11.5px; font-weight: 600; vertical-align: middle; }
.badge.blue { background: var(--blue-l); color: var(--blue); } .badge.gray { background: #f1f5f9; color: #475569; }
.badge.green { background: var(--green-l); color: #15803d; } .badge.amber { background: var(--amber-l); color: #b45309; }
.badge.red { background: var(--red-l); color: var(--red); } .badge.score { background: var(--violet-l); color: var(--violet); }
.stage { font-weight: 600; font-size: 12.5px; }
.stage-select { border: 1px solid var(--line); border-radius: 7px; padding: 5px 8px; font: 600 12.5px Inter, sans-serif; background: #fff; }
.stage-won { color: var(--green); } .stage-lost { color: var(--muted); } .stage-proposal { color: var(--violet); } .stage-open { color: var(--blue); }
.kebab { display: inline-block; position: relative; vertical-align: middle; }
.kebab summary { list-style: none; }
.kebab summary::-webkit-details-marker { display: none; }
.kebab .menu { position: absolute; right: 0; top: 38px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(15, 23, 42, .12); min-width: 170px; z-index: 30; padding: 6px; text-align: left; }
.kebab .menu a, .kebab .menu button { display: block; width: 100%; text-align: left; padding: 8px 10px; border: 0; background: none; font: 500 13px Inter, sans-serif; color: var(--text); border-radius: 6px; cursor: pointer; }
.kebab .menu a:hover, .kebab .menu button:hover { background: #f1f5f9; text-decoration: none; }
.empty { text-align: center; color: var(--muted); padding: 40px 20px; }
.empty .ic { color: #94a3b8; }
.empty p { margin: 8px 0 0; }
.hint { color: var(--muted); font-size: 13px; display: flex; gap: 6px; align-items: center; }
.bar { width: 70px; height: 6px; background: #e2e8f0; border-radius: 3px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--blue); }

/* ---------- filters ---------- */
.filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; }
.filters input, .filters select, .form-grid input, .form-grid select, .field input, .field select, .field textarea {
  border: 1px solid #d7dce6; border-radius: 8px; padding: 9px 11px; font: 14px Inter, sans-serif; background: #fff; color: var(--text); min-width: 0; }
.filters input[name=q] { flex: 1; min-width: 200px; }
.filters label { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.seg { display: inline-flex; background: #f1f5f9; border-radius: 9px; padding: 3px; }
.seg a { padding: 6px 12px; border-radius: 7px; color: #334155; font-weight: 500; font-size: 13px; text-decoration: none; }
.seg a.active { background: #fff; color: var(--text); font-weight: 700; box-shadow: var(--shadow); }
.hits { margin: 0; padding: 0; list-style: none; }
.hits li { padding: 6px 0; border-bottom: 1px solid #f1f5f9; }

/* ---------- account ---------- */
.acct-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 18px; align-items: start; }
.acct-head { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.logo { width: 58px; height: 58px; border-radius: 14px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 20px; background: var(--c); flex: none; }
.acct-title h1 { font-size: 26px; }
.badges { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.acct-actions { margin-left: auto; display: flex; gap: 8px; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 16px; }
.stat { padding: 14px 16px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-size: 22px; font-weight: 800; }
.stat span { color: #334155; font-size: 12.5px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sub-card { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.sub-card h3 { font-size: 14.5px; margin-bottom: 10px; }
.sub-card h3 small { display: inline; font-weight: 400; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 8px 10px; margin: 0; font-size: 13.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.cats { width: 100%; font-size: 13.5px; border-collapse: collapse; }
.cats td { padding: 5px 0; }
.yn { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 1px 7px; border-radius: 5px; }
.yn.yes { background: var(--green-l); color: #15803d; }
.yn.no { background: var(--red-l); color: var(--red); }
.flags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.flag { display: inline-flex; gap: 5px; align-items: center; background: var(--amber-l); color: #92400e; border-radius: 7px; padding: 4px 10px; font-size: 12.5px; font-weight: 500; }
.acct-side .card { margin-bottom: 14px; }
.violet-h { color: var(--violet); display: flex; gap: 8px; align-items: center; font-size: 15px; margin-bottom: 8px; }
.insight p { margin: 0 0 6px; color: #1e293b; font-size: 13.5px; }
.why-list { margin: 0 0 4px; padding-left: 18px; font-size: 13.5px; }
.rec { display: flex; gap: 12px; background: #fffbeb; border-color: #fde68a; }
.rec-ic { color: #f59e0b; }
.rec small { color: #92400e; font-weight: 600; }
.rec h3 { font-size: 20px; }
.rec p { margin: 2px 0 0; font-size: 13px; color: #334155; }
.convo { background: #eff6ff; border-color: #bfdbfe; }
.convo h3 { color: var(--blue-d); font-size: 15px; margin-bottom: 8px; }
.convo blockquote { margin: 0; border-left: 3px solid #93c5fd; padding-left: 12px; color: #1e293b; font-size: 13.5px; }
.side-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f1f5f9; }
.timeline p { margin: 6px 0 0; font-size: 13.5px; }
.inline-form { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 14px; }
.inline-form h3 { font-size: 14.5px; margin-bottom: 10px; }
.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.form-grid.wide { grid-template-columns: repeat(2, 1fr); }
.form-grid .full { grid-column: 1 / -1; }
.edit-form .btn { margin-top: 4px; }
.coverage { white-space: nowrap; }
.cov { display: inline-grid; place-items: center; width: 26px; height: 22px; border-radius: 5px; font-size: 10.5px; font-weight: 700; background: #f1f5f9; color: #94a3b8; margin-right: 3px; }
.cov.on { background: var(--green-l); color: #15803d; }

/* ---------- forms & modal ---------- */
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.field > span { font-size: 13px; font-weight: 600; color: #334155; }
.field b { color: var(--red); }
.check { display: flex; align-items: center; gap: 7px; font-size: 13.5px; color: #334155; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: center; }
.stack { display: flex; flex-direction: column; align-items: flex-start; }
.stack .field { width: 100%; max-width: 360px; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); display: grid; place-items: center; z-index: 100; padding: 16px; }
.modal-backdrop[hidden] { display: none; }
body.modal-open { overflow: hidden; }
.modal { background: #fff; border-radius: 14px; width: 100%; max-width: 440px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(15, 23, 42, .3); }
.modal-wide { max-width: 680px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 17px; }
.modal-body { padding: 16px 18px 4px; overflow-y: auto; }
.modal-foot { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--line); }
.toggle-row { display: flex; justify-content: space-between; align-items: center; margin: 4px 0 12px; }
.toggle-label { display: flex; gap: 6px; align-items: center; font-weight: 600; font-size: 13.5px; color: #334155; }
.toggle-label .ic { background: var(--blue); color: #fff; border-radius: 4px; padding: 1px; }
.switch { position: relative; width: 44px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #cbd5e1; border-radius: 12px; cursor: pointer; transition: .2s; }
.switch span::before { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::before { transform: translateX(20px); }
.opp-fields { background: #f8fafc; border-radius: 10px; padding: 12px 12px 1px; margin-bottom: 12px; }

/* ---------- scorecards ---------- */
.tile-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.tile-row .card { margin: 0; }
.tile-top { display: flex; align-items: center; gap: 10px; }
.tile-top strong { font-size: 24px; font-weight: 800; }
.tile .kpi-foot { border: 0; padding-top: 6px; }
.score-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; }
.grid.compact th { white-space: normal; }
.who { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.bars { display: flex; align-items: flex-end; gap: 14px; height: 230px; padding: 8px 4px 0; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.bar-val { font-size: 12px; font-weight: 700; margin-bottom: 4px; }
.bar-fill { width: 100%; max-width: 64px; border-radius: 4px 4px 0 0; }
.bar-lbl { font-size: 11.5px; color: #334155; margin-top: 6px; text-align: center; line-height: 1.2; height: 28px; }

/* ---------- login ---------- */
.login-body { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(160deg, var(--navy), #1a3a85); padding: 16px; }
.login-card { background: #fff; border-radius: 16px; padding: 30px 28px; width: 100%; max-width: 380px; box-shadow: 0 30px 80px rgba(0, 0, 0, .3); }
.login-quote { text-align: center; color: var(--muted); font-style: italic; font-size: 13px; margin: 6px 0 20px; }

/* ---------- responsive ---------- */
@media (max-width: 1280px) {
  .kpi-row { grid-template-columns: repeat(3, 1fr); }
  .progress-card { grid-column: span 3; }
  .acct-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .sidebar { position: fixed; left: 0; z-index: 50; transform: translateX(-100%); transition: transform .2s; }
  .sidebar.open { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, .3); }
  .menu-btn { display: inline-grid; }
  .me-text { display: none; }
  .content { padding: 16px; }
  .topbar { padding: 10px 16px; }
  .hello-quote { display: none; }
  .hello h1 { font-size: 24px; }
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .progress-card { grid-column: span 2; }
  .tile-row, .score-grid, .two-col { grid-template-columns: 1fr 1fr; }
  .score-grid, .two-col { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .form-grid, .form-grid.wide { grid-template-columns: 1fr; }
  .acct-actions { margin-left: 0; }
  .kpi-row > *, .tile-row > * { min-width: 0; }
}
@media (max-width: 520px) {
  .kpi-row, .tile-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .progress-inner { flex-direction: column; align-items: stretch; }
  .ring { align-self: center; }
  .kpi { padding: 14px; }
  .kpi-top { flex-direction: column; gap: 8px; }
  .kpi-icon { width: 36px; height: 36px; }
  .kpi-val { font-size: 21px; }
}
