:root {
  color-scheme: light;
  --ink: #10233b;
  --muted: #617086;
  --navy: #0b2748;
  --blue: #1468a8;
  --sky: #eaf5fb;
  --ice: #f5f8fb;
  --line: #d7e1eb;
  --white: #ffffff;
  --amber: #b8610a;
  --amber-bg: #fff4df;
  --green: #13795b;
  --green-bg: #e9f7f1;
  --red: #a43a3a;
  --shadow: 0 18px 46px rgba(8, 33, 62, 0.12);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { background: #dfe8f0; }
body { margin: 0; color: var(--ink); background: linear-gradient(145deg, #dce7f0, #f6f9fb); min-height: 100vh; }
button { font: inherit; }

.app-shell {
  width: min(100%, 520px);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--ice);
  position: relative;
  padding-bottom: 92px;
  box-shadow: var(--shadow);
}

.topbar { display: grid; grid-template-columns: 48px 1fr 44px; gap: 12px; align-items: center; padding: 22px 20px 14px; background: var(--white); }
.brand-mark { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--navy); color: var(--white); font-size: 1.35rem; font-weight: 800; }
.eyebrow, .section-label { margin: 0 0 3px; color: var(--blue); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: 1.28rem; letter-spacing: -.02em; }
h2 { margin-bottom: 0; font-size: 1.35rem; letter-spacing: -.025em; }
.icon-button { border: 0; background: var(--sky); color: var(--blue); width: 42px; height: 42px; border-radius: 50%; cursor: pointer; font-size: 1.15rem; }
.icon-button:hover, .icon-button:focus-visible { outline: 3px solid rgba(20,104,168,.18); }

main { padding: 16px 18px 28px; }
.date-line, .page-heading { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin: 2px 2px 14px; }
.date-line p:last-child { margin: 0; font-size: 1rem; font-weight: 650; }
.device-badge { padding: 7px 10px; border-radius: 999px; color: var(--green); background: var(--green-bg); font-size: .77rem; font-weight: 800; }

.focus-panel { display: grid; grid-template-columns: 1fr 88px; gap: 16px; padding: 20px; border-radius: 22px; background: linear-gradient(135deg, var(--navy), #174f7c); color: var(--white); box-shadow: 0 12px 30px rgba(11,39,72,.22); }
.focus-kicker { display: block; margin-bottom: 5px; color: #9dd6fa; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.focus-copy strong { font-size: 1.42rem; letter-spacing: -.025em; }
.focus-copy p { margin: 7px 0 0; color: #d6e8f5; line-height: 1.45; font-size: .92rem; }
.progress-ring { width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center; align-self: center; background: radial-gradient(circle at center, var(--navy) 56%, transparent 58%), conic-gradient(#6cc5ec var(--progress, 0%), rgba(255,255,255,.18) 0); font-weight: 850; }

.rule-note { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; margin: 14px 0; padding: 12px 14px; border: 1px solid #f0d19e; border-radius: 15px; background: var(--amber-bg); color: #6f470f; }
.rule-note span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #f3d295; font-weight: 900; }
.rule-note p { margin: 1px 0 0; font-size: .9rem; line-height: 1.45; }

.task-stack { display: grid; gap: 13px; }
.task-card { border: 1px solid var(--line); border-radius: 20px; background: var(--white); padding: 17px; box-shadow: 0 8px 24px rgba(16,35,59,.06); }
.task-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.priority { display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px; border-radius: 999px; background: #fee9e2; color: #983b20; font-size: .76rem; font-weight: 850; }
.priority::before { content: ""; width: 7px; height: 7px; background: #d65b36; border-radius: 50%; }
.due, .task-meta { color: var(--muted); font-size: .8rem; font-weight: 700; text-align: right; }
.task-card h2 { margin: 12px 0 8px; font-size: 1.08rem; line-height: 1.32; }
.automation-chip { display: inline-block; margin-top: 10px; padding: 5px 8px; border-radius: 999px; background: var(--green-bg); color: var(--green); font-size: .72rem; font-weight: 800; }
.task-reason { margin-bottom: 13px; color: var(--muted); line-height: 1.48; font-size: .92rem; }
.impact { display: grid; grid-template-columns: 26px 1fr; gap: 9px; align-items: start; padding: 10px 11px; border-radius: 12px; background: var(--sky); color: #234c6a; font-size: .87rem; line-height: 1.4; }
.impact span { font-weight: 900; color: var(--blue); }
.task-actions { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; margin-top: 14px; }
.approve, .secondary-button, .action-icon, .filter-button, .filter-chip { min-height: 44px; border-radius: 12px; cursor: pointer; font-weight: 800; }
.approve { border: 0; background: var(--blue); color: var(--white); padding: 0 15px; }
.approve:hover, .approve:focus-visible { background: #0d578f; outline: 3px solid rgba(20,104,168,.18); }
.action-icon { width: 46px; border: 1px solid var(--line); background: var(--white); color: var(--muted); font-size: 1.12rem; }
.action-icon:hover, .action-icon:focus-visible { border-color: var(--blue); color: var(--blue); outline: none; }

.empty-state { text-align: center; padding: 36px 20px; border: 1px dashed #b7c8d8; border-radius: 20px; background: var(--white); }
.empty-check { width: 58px; height: 58px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 50%; background: var(--green-bg); color: var(--green); font-size: 1.7rem; font-weight: 900; }
.empty-state p { color: var(--muted); line-height: 1.5; }
.secondary-button { border: 1px solid var(--line); background: var(--white); color: var(--navy); padding: 0 16px; }

.filter-button { border: 1px solid var(--line); background: var(--white); color: var(--navy); padding: 0 14px; }
.filter-row { display: flex; gap: 8px; overflow-x: auto; padding: 0 1px 12px; }
.filter-chip { border: 1px solid var(--line); background: var(--white); color: var(--muted); padding: 0 14px; white-space: nowrap; }
.filter-chip.selected { background: var(--navy); color: var(--white); border-color: var(--navy); }
.backlog, .source-list { display: grid; gap: 10px; }
.backlog-item, .source-item { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.backlog-head, .source-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.backlog-item strong, .source-item strong { display: block; line-height: 1.35; }
.backlog-item p, .source-item p { margin: 6px 0 0; color: var(--muted); line-height: 1.45; font-size: .88rem; }
.mini-status { flex: 0 0 auto; padding: 5px 8px; border-radius: 999px; background: var(--ice); color: var(--muted); font-size: .74rem; font-weight: 800; }
.mini-status.warn { color: #8c5510; background: var(--amber-bg); }
.mini-status.good { color: var(--green); background: var(--green-bg); }
.privacy-note { margin: 16px 2px; color: var(--muted); font-size: .85rem; line-height: 1.5; }

.capacity-panel { margin: 14px 0; padding: 15px; border: 1px solid var(--line); border-radius: 17px; background: var(--white); }
.capacity-panel p { margin-bottom: 11px; color: var(--muted); font-size: .88rem; line-height: 1.45; }
.capacity-panel .section-label { margin-bottom: 3px; color: var(--blue); }
.capacity-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(76px, 1fr)); gap: 7px; }
.capacity-options button { min-height: 42px; padding: 5px; border: 1px solid var(--line); border-radius: 11px; background: var(--ice); color: var(--muted); cursor: pointer; font-weight: 800; font-size: .78rem; }
.capacity-options button.selected { border-color: var(--blue); background: var(--blue); color: var(--white); }
.autopilot-card { margin: 14px 0; padding: 17px; border: 1px solid #b8d7e9; border-radius: 20px; background: linear-gradient(145deg, #f8fcff, #eaf5fb); box-shadow: 0 8px 24px rgba(16,35,59,.06); }
.autopilot-head { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: start; }
.autopilot-head h2 { font-size: 1.05rem; line-height: 1.3; }
.active-automation { border-color: #a8d8c7; background: linear-gradient(145deg, #f9fefd, #e9f7f1); }
.automation-live { display: inline-flex; align-items: center; gap: 6px; padding: 7px 9px; border-radius: 999px; background: var(--green-bg); color: var(--green); font-size: .72rem; font-weight: 850; white-space: nowrap; }
.automation-live > span { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(19,121,91,.1); }
.switch-control { width: 52px; height: 30px; padding: 3px; border: 0; border-radius: 999px; background: #9cabb8; cursor: pointer; transition: background .18s ease; }
.switch-control span { width: 24px; height: 24px; display: block; border-radius: 50%; background: var(--white); box-shadow: 0 2px 7px rgba(16,35,59,.25); transition: transform .18s ease; }
.switch-control[aria-checked="true"] { background: var(--green); }
.switch-control[aria-checked="true"] span { transform: translateX(22px); }
.autopilot-summary { margin: 9px 0 13px; color: var(--muted); font-size: .85rem; line-height: 1.45; }
.autopilot-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.autopilot-stats div { padding: 10px 6px; border: 1px solid rgba(20,104,168,.12); border-radius: 12px; background: rgba(255,255,255,.74); text-align: center; }
.autopilot-stats strong { display: block; color: var(--navy); font-size: 1.12rem; }
.autopilot-stats span { display: block; margin-top: 2px; color: var(--muted); font-size: .68rem; line-height: 1.25; }
.automation-boundaries { display: grid; gap: 8px; margin-top: 10px; }
.automation-boundaries > div { display: grid; grid-template-columns: 30px 1fr; gap: 9px; align-items: start; padding: 10px; border-radius: 12px; background: rgba(255,255,255,.8); }
.boundary-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; font-size: .78rem; font-weight: 900; }
.boundary-icon.automatic { background: var(--green-bg); color: var(--green); }
.boundary-icon.approval { background: var(--amber-bg); color: var(--amber); }
.automation-boundaries p { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.4; }
.automation-boundaries strong { display: block; margin-bottom: 1px; color: var(--ink); }
.autopilot-action { width: 100%; min-height: 43px; margin-top: 11px; border: 1px solid var(--blue); border-radius: 12px; background: var(--white); color: var(--blue); cursor: pointer; font-weight: 800; }
.autopilot-action:disabled { border-color: var(--line); color: #8d9baa; cursor: not-allowed; }
.view-intro { margin: -3px 2px 15px; color: var(--muted); line-height: 1.5; font-size: .9rem; }
.inline-action { margin-top: 11px; min-height: 40px; padding: 0 13px; border: 1px solid #b8d7e9; border-radius: 11px; background: var(--sky); color: var(--blue); cursor: pointer; font-weight: 800; }

.content-idea-card { padding: 17px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); box-shadow: 0 8px 24px rgba(16,35,59,.06); }
.content-idea-card > label { display: block; margin-bottom: 8px; font-weight: 800; }
.content-idea-card textarea { width: 100%; min-height: 92px; resize: vertical; padding: 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--ice); font: inherit; line-height: 1.45; }
.content-idea-card textarea:focus { outline: 3px solid rgba(20,104,168,.16); border-color: var(--blue); }
.channel-picks { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0; }
.channel-picks label { padding: 8px 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--ice); color: var(--muted); font-size: .8rem; font-weight: 750; }
.content-idea-card .approve { width: 100%; min-height: 46px; }
.subheading { margin: 22px 2px 11px; font-size: 1rem; }
.channel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.channel-card { display: grid; grid-template-columns: 38px 1fr; gap: 9px; padding: 13px; border: 1px solid var(--line); border-radius: 15px; background: var(--white); }
.channel-initial { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: var(--navy); color: var(--white); font-weight: 900; }
.channel-card strong { font-size: .9rem; }
.channel-card p { margin: 3px 0; color: var(--muted); font-size: .77rem; line-height: 1.35; }
.channel-card small { color: var(--blue); font-size: .7rem; font-weight: 750; }

.upload-zone { min-height: 190px; display: grid; place-items: center; align-content: center; gap: 7px; padding: 24px; border: 2px dashed #9fc4da; border-radius: 20px; background: var(--sky); color: var(--navy); text-align: center; cursor: pointer; }
.upload-zone > span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--white); color: var(--blue); font-size: 1.5rem; box-shadow: 0 7px 18px rgba(16,35,59,.1); }
.upload-zone small { max-width: 300px; color: var(--muted); line-height: 1.4; }
.media-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 14px; }
.media-grid figure { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.media-grid img { width: 100%; aspect-ratio: 1 / 1; display: block; object-fit: cover; }
.media-grid figcaption { padding: 9px; overflow: hidden; color: var(--muted); font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
.empty-media { margin-top: 14px; padding: 18px; border-radius: 14px; background: var(--white); color: var(--muted); text-align: center; font-size: .86rem; }

.north-star-card { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; padding: 19px; border-radius: 20px; background: linear-gradient(135deg, var(--navy), #174f7c); color: var(--white); box-shadow: 0 12px 30px rgba(11,39,72,.18); }
.north-star-card strong { display: block; font-size: 1.3rem; }
.north-star-card p { margin: 6px 0 0; max-width: 320px; color: #d6e8f5; font-size: .86rem; line-height: 1.45; }
.no-data { max-width: 92px; padding: 8px 9px; border: 1px solid rgba(255,255,255,.25); border-radius: 11px; color: #b9e2f7; text-align: center; font-size: .72rem; font-weight: 800; }
.metric-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin: 12px 0; }
.metric-grid article { min-height: 120px; display: grid; align-content: space-between; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.metric-grid span { color: var(--muted); font-size: .8rem; font-weight: 750; }
.metric-grid strong { font-size: 1.8rem; color: var(--navy); }
.metric-grid small { color: var(--amber); font-size: .72rem; line-height: 1.3; }
.honesty-note { padding: 12px 13px; border: 1px solid #c8dce8; border-radius: 13px; background: var(--sky); color: #34536b; font-size: .82rem; line-height: 1.45; }
.measurement-card { margin-top: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 19px; background: var(--white); }
.live-audit-card, .gsc-card { margin-top: 14px; padding: 16px; border: 1px solid #b8d7e9; border-radius: 19px; background: linear-gradient(145deg, #f9fefd, #eef7fb); }
.gsc-card { border-color: #b9d9c9; background: linear-gradient(145deg, #fbfffd, #edf8f2); }
.gsc-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 12px 0; }
.gsc-summary div { min-width: 0; padding: 10px 5px; border-radius: 10px; background: rgba(255,255,255,.9); text-align: center; }
.gsc-summary strong { display: block; overflow: hidden; color: var(--navy); font-size: 1rem; text-overflow: ellipsis; }
.gsc-summary span { display: block; margin-top: 3px; color: var(--muted); font-size: .65rem; line-height: 1.2; }
.gsc-opportunities { display: grid; gap: 7px; margin-top: 10px; }
.gsc-opportunity { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 9px 10px; border-radius: 10px; background: var(--white); }
.gsc-opportunity strong { overflow: hidden; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.gsc-opportunity span { color: var(--blue); font-size: .7rem; font-weight: 800; white-space: nowrap; }
.gsc-connect { width: 100%; min-height: 44px; display: grid; place-items: center; margin-top: 10px; border-radius: 12px; background: var(--blue); color: var(--white); font-size: .84rem; font-weight: 850; text-decoration: none; }
.audit-updated { margin: 8px 0 12px; color: var(--muted); font-size: .78rem; line-height: 1.4; }
.audit-sites { display: grid; gap: 9px; }
.audit-site { padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: var(--white); }
.audit-site-head { display: flex; justify-content: space-between; gap: 10px; align-items: start; }
.audit-site-head strong { font-size: .9rem; line-height: 1.3; }
.audit-status { padding: 5px 8px; border-radius: 999px; background: var(--green-bg); color: var(--green); font-size: .7rem; font-weight: 850; white-space: nowrap; }
.audit-status.problem { background: var(--red-bg); color: var(--red); }
.audit-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.audit-metrics span { padding: 8px 5px; border-radius: 9px; background: var(--ice); color: var(--muted); text-align: center; font-size: .66rem; line-height: 1.3; }
.audit-metrics strong { display: block; color: var(--navy); font-size: .82rem; }
.audit-warning { margin: 9px 0 0; color: var(--amber); font-size: .72rem; line-height: 1.4; }
.measurement-head { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.measurement-head h3 { margin: 0; font-size: 1rem; }
.measurement-head > span { padding: 5px 8px; border-radius: 999px; background: var(--ice); color: var(--muted); font-size: .72rem; font-weight: 800; white-space: nowrap; }
.measurement-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin: 14px 0; }
.measurement-steps span { padding: 7px 3px; border-radius: 8px; background: var(--sky); color: var(--blue); text-align: center; font-size: .7rem; font-weight: 800; }
.impact-list { display: grid; gap: 8px; }
.impact-result { display: grid; gap: 8px; padding: 11px; border-left: 3px solid var(--blue); background: var(--ice); }
.impact-result p { margin: 3px 0 0; color: var(--muted); font-size: .76rem; }
.impact-result > span { color: var(--green); font-size: .75rem; font-weight: 800; }
.measurement-empty { margin: 0; padding: 14px; border: 1px dashed #b7c8d8; border-radius: 12px; color: var(--muted); font-size: .82rem; line-height: 1.45; }

.local-tracker, .coverage-card, .competitor-card, .knowledge-card { margin-top: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 19px; background: var(--white); }
.tracker-controls { display: grid; grid-template-columns: 1.25fr 1fr; gap: 8px; margin: 14px 0; }
.tracker-controls label { color: var(--muted); font-size: .76rem; font-weight: 750; }
.tracker-controls select { width: 100%; min-height: 43px; margin-top: 5px; padding: 0 10px; border: 1px solid var(--line); border-radius: 11px; background: var(--ice); color: var(--ink); font: inherit; font-size: .82rem; }
.rank-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-bottom: 12px; }
.rank-summary > div { min-height: 94px; display: grid; align-content: space-between; padding: 10px; border-radius: 12px; background: var(--ice); }
.rank-summary span { color: var(--muted); font-size: .7rem; font-weight: 750; }
.rank-summary strong { font-size: 1.3rem; }
.rank-summary small { color: var(--amber); font-size: .64rem; line-height: 1.25; }
.map-stage { position: relative; overflow: hidden; min-height: 310px; border: 1px solid #cad9e4; border-radius: 16px; background: linear-gradient(30deg, #edf2ed 12%, #e3ece5 12%, #e3ece5 24%, #edf2ed 24%, #edf2ed 38%, #e8efe9 38%, #e8efe9 52%, #eef3ef 52%); }
.map-road { position: absolute; z-index: 0; height: 12px; border: 3px solid rgba(255,255,255,.92); background: #c9d3d8; border-radius: 999px; }
.road-one { width: 135%; left: -20%; top: 42%; transform: rotate(-18deg); }
.road-two { width: 115%; left: -8%; top: 66%; transform: rotate(25deg); }
.road-three { width: 80%; left: 36%; top: 18%; transform: rotate(72deg); }
.geo-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(13, 1fr); gap: 5px; padding: 18px; }
.geo-point, .geo-point-spacer { width: 27px; height: 27px; justify-self: center; }
.geo-point { display: grid; place-items: center; border: 2px solid var(--white); border-radius: 50%; box-shadow: 0 2px 7px rgba(16,35,59,.2); font-size: .61rem; font-weight: 900; }
.geo-point.top3 { background: #1b946f; color: var(--white); }
.geo-point.top10 { background: #e4a82d; color: #3f2b05; }
.geo-point.top20 { background: #df7538; color: var(--white); }
.geo-point.low { background: #ba4141; color: var(--white); }
.geo-point.unknown { background: #8b9ba9; color: var(--white); }
.grid-legend { display: flex; flex-wrap: wrap; gap: 9px; margin: 11px 0 0; color: var(--muted); font-size: .7rem; }
.grid-legend span { display: inline-flex; align-items: center; gap: 4px; }
.grid-legend i { width: 10px; height: 10px; border-radius: 50%; }
.grid-legend .top3 { background: #1b946f; }.grid-legend .top10 { background: #e4a82d; }.grid-legend .top20 { background: #df7538; }.grid-legend .low { background: #ba4141; }.grid-legend .unknown { background: #8b9ba9; }
.local-cost { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--ice); color: var(--muted); font-size: .78rem; line-height: 1.45; }
#competitorList { display: grid; gap: 7px; margin-top: 12px; }
#competitorList article { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 10px; border-radius: 11px; background: var(--ice); }
#competitorList article span { color: var(--muted); font-size: .76rem; }
.tracker-note, .competitor-card > p { margin: 11px 0 0; color: var(--muted); font-size: .8rem; line-height: 1.45; }
.coverage-list { display: grid; gap: 7px; margin-top: 13px; }
.coverage-list article { display: grid; grid-template-columns: 1fr auto; gap: 9px; padding: 10px; border-radius: 11px; background: var(--ice); }
.coverage-list strong { font-size: .82rem; }
.coverage-list p { margin: 3px 0 0; color: var(--muted); font-size: .7rem; line-height: 1.35; }
.coverage-list article > span { align-self: start; padding: 5px 7px; border-radius: 999px; background: var(--amber-bg); color: var(--amber); font-size: .66rem; font-weight: 800; white-space: nowrap; }
.knowledge-card { border-color: #b8d7e9; background: var(--sky); }
.knowledge-card h3 { margin: 0; font-size: 1rem; }
.knowledge-card p { margin: 7px 0 0; color: var(--muted); font-size: .82rem; line-height: 1.45; }
.knowledge-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 13px; }
.knowledge-stats span { padding: 9px 5px; border-radius: 10px; background: var(--white); color: var(--muted); text-align: center; font-size: .66rem; line-height: 1.3; }
.knowledge-stats strong { display: block; color: var(--navy); font-size: 1rem; }

.security-card { display: grid; grid-template-columns: 66px 1fr; gap: 14px; align-items: center; padding: 18px; background: var(--navy); border-radius: 20px; color: var(--white); }
.security-score { width: 60px; height: 60px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; color: #a9dafa; font-size: .85rem; }
.security-score span { font-size: 1.35rem; font-weight: 900; }
.security-card p { margin: 5px 0 0; color: #d3e5f3; font-size: .88rem; line-height: 1.42; }
.check-list { list-style: none; margin: 14px 0; padding: 0; display: grid; gap: 9px; }
.check-list li { display: grid; grid-template-columns: 35px 1fr; gap: 11px; padding: 14px; border-radius: 15px; border: 1px solid var(--line); background: var(--white); }
.check-list li > span { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 10px; background: var(--sky); color: var(--blue); font-weight: 900; }
.check-list p { margin: 3px 0 0; color: var(--muted); font-size: .86rem; line-height: 1.4; }
.danger-link { border: 0; background: transparent; color: var(--red); padding: 12px 2px; font-weight: 800; cursor: pointer; }

.bottom-nav { position: fixed; z-index: 20; left: 50%; bottom: 0; transform: translateX(-50%); width: min(100%, 520px); display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(12px); padding: 8px 4px max(8px, env(safe-area-inset-bottom)); }
.nav-item { border: 0; background: transparent; color: #758297; min-height: 58px; display: grid; justify-items: center; align-content: center; gap: 3px; cursor: pointer; font-size: .76rem; font-weight: 750; }
.nav-item span { font-size: 1.3rem; line-height: 1; }
.nav-item.active { color: var(--blue); }

dialog { width: min(calc(100% - 28px), 480px); max-height: 75vh; border: 0; border-radius: 22px; padding: 18px; color: var(--ink); box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(5,23,42,.56); backdrop-filter: blur(4px); }
.dialog-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.activity-list { display: grid; gap: 10px; overflow: auto; }
.activity-item { border-left: 3px solid var(--blue); padding: 4px 0 4px 12px; }
.activity-item p { margin: 3px 0 0; color: var(--muted); font-size: .84rem; }
.activity-empty { color: var(--muted); text-align: center; padding: 24px; }
.toast { position: fixed; z-index: 30; left: 50%; bottom: 92px; transform: translate(-50%, 20px); width: min(calc(100% - 36px), 470px); padding: 13px 15px; border-radius: 13px; background: var(--navy); color: var(--white); box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: .22s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 760px) {
  body { padding: 24px 0; }
  .app-shell { min-height: calc(100vh - 48px); border-radius: 28px; overflow: hidden; }
  .bottom-nav { bottom: 24px; border-radius: 0 0 28px 28px; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }

@media (max-width: 390px) {
  .topbar { grid-template-columns: 42px 1fr 40px; padding-inline: 15px; }
  .brand-mark { width: 41px; height: 41px; }
  .eyebrow { font-size: .68rem; }
  h1 { font-size: 1.08rem; }
  main { padding-inline: 13px; }
  .focus-panel { grid-template-columns: 1fr 72px; padding: 17px; }
  .progress-ring { width: 68px; height: 68px; }
  .capacity-options { grid-template-columns: 1fr 1fr; }
  .channel-grid { grid-template-columns: 1fr; }
  .north-star-card { grid-template-columns: 1fr; }
  .no-data { max-width: none; justify-self: start; }
  .tracker-controls { grid-template-columns: 1fr; }
  .geo-grid { gap: 8px; padding: 15px 8px; }
  .geo-point { width: 34px; height: 34px; }
  .nav-item { font-size: .68rem; }
}
