:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #667085;
  --soft: #98a2b3;
  --line: #e4e8ee;
  --surface: #ffffff;
  --canvas: #f4f6f9;
  --navy: #172b4d;
  --blue: #2f6fed;
  --blue-soft: #eaf1ff;
  --green: #16865c;
  --green-soft: #e9f8f1;
  --amber: #a85f00;
  --amber-soft: #fff4df;
  --red: #bf3b4d;
  --red-soft: #ffedf0;
  --violet: #7657d6;
}

* { box-sizing: border-box; }
html { background: var(--canvas); }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid rgba(47, 111, 237, .22); outline-offset: 2px; }
.icon-mask { display: inline-block; width: 22px; height: 22px; background: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }

.dashboard-shell { min-height: 100vh; }
.topbar { min-height: 76px; display: flex; align-items: center; gap: 14px; padding: 12px 40px; background: var(--navy); color: white; border-bottom: 1px solid rgba(255,255,255,.1); }
.brand-mark { flex: 0 0 38px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: var(--blue); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); font-weight: 800; letter-spacing: -.04em; }
.brand-copy h1 { margin: 2px 0 0; font-size: 20px; line-height: 1.2; letter-spacing: -.02em; }
.eyebrow { margin: 0; color: #8c97a9; font-size: 10.5px; line-height: 1.4; font-weight: 800; letter-spacing: .12em; }
.topbar .eyebrow { color: #aebbd2; }
.topbar-actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.data-badge { display: inline-flex; align-items: center; gap: 7px; color: #d7e2f5; font-size: 12px; }
.data-badge i { width: 7px; height: 7px; border-radius: 50%; background: #39c28b; box-shadow: 0 0 0 4px rgba(57,194,139,.12); }
.month-control { display: flex; align-items: center; gap: 10px; font-size: 12px; color: #b9c5d9; }
.month-control select { min-width: 150px; padding: 9px 32px 9px 11px; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; background: #21395f; color: #fff; }

.content { width: min(1440px, calc(100% - 64px)); margin: 0 auto; padding: 34px 0 30px; }
.page-intro, .section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.page-intro { margin-bottom: 30px; }
.page-intro h2 { margin: 5px 0 0; font-size: clamp(25px, 2.2vw, 32px); letter-spacing: -.035em; }
.intro-copy, .section-heading p { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.primary-button, .secondary-button { border-radius: 8px; padding: 10px 14px; font-weight: 700; font-size: 13px; }
.primary-button { border: 1px solid var(--blue); background: var(--blue); color: #fff; box-shadow: 0 1px 2px rgba(27,68,145,.16); }
.primary-button:hover { background: #285fc9; }
.compact-heading { align-items: center; margin-bottom: 14px; }
.section-heading h3 { margin: 4px 0 0; font-size: 21px; letter-spacing: -.025em; }
.compact-heading h3 { margin: 0; font-size: 16px; }
.compact-heading p { margin-top: 3px; font-size: 12px; }
.availability { display: inline-flex; align-items: center; gap: 7px; color: var(--green); font-size: 12px; font-weight: 700; }
.availability::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

.metric-grid { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 12px; }
.metric-card, .kpi-card, .chart-card, .source-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 1px 2px rgba(16,24,40,.03); }
.metric-card { position: relative; min-height: 129px; overflow: hidden; padding: 18px; }
.metric-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--accent, var(--blue)); opacity: .85; }
.metric-card p { margin: 0; color: var(--muted); font-size: 12px; font-weight: 650; }
.metric-card strong { display: block; margin-top: 17px; font-size: 28px; line-height: 1; letter-spacing: -.045em; }
.metric-card span { display: block; margin-top: 10px; color: var(--soft); font-size: 10.5px; line-height: 1.35; }
.metric-card.missing { background: #fbfbfc; }
.metric-card.missing strong { color: var(--soft); }

.kpi-section, .charts-section { margin-top: 36px; }
.kpi-section > .section-heading, .charts-section > .section-heading { margin-bottom: 15px; }
.source-note { color: var(--soft); font-size: 11px; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.kpi-card { min-height: 226px; padding: 20px; }
.kpi-title { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 11.5px; font-weight: 800; letter-spacing: .07em; }
.kpi-card h4 { margin: 17px 0 7px; font-size: 18px; letter-spacing: -.02em; }
.kpi-actual { display: flex; align-items: baseline; gap: 7px; margin-bottom: 20px; }
.kpi-actual strong { font-size: 28px; letter-spacing: -.04em; }
.kpi-actual span { color: var(--muted); font-size: 12px; }
.status { border-radius: 999px; padding: 5px 8px; letter-spacing: 0; font-size: 10.5px; }
.status.success { background: var(--green-soft); color: var(--green); }
.status.warning { background: var(--amber-soft); color: var(--amber); }
.status.danger { background: var(--red-soft); color: var(--red); }
.status.neutral { background: #eef1f5; color: #667085; }
.progress { height: 7px; overflow: hidden; background: #edf0f4; border-radius: 99px; }
.progress span { display: block; height: 100%; border-radius: inherit; background: var(--bar-color, var(--blue)); transition: width .25s ease; }
.progress-detail { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; color: var(--muted); font-size: 11px; }
.progress-detail strong { color: var(--ink); }
.tele-lines { margin-top: 18px; }
.tele-row { padding: 10px 0; border-top: 1px solid var(--line); }
.tele-row:first-child { border-top: 0; padding-top: 0; }
.tele-row-top { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 11.5px; }
.tele-row-top strong { color: var(--ink); }
.mini-progress { height: 5px; margin-top: 7px; overflow: hidden; border-radius: 99px; background: #edf0f4; }
.mini-progress span { display: block; height: 100%; border-radius: inherit; background: var(--blue); }
.bonus-card { background: linear-gradient(145deg,#fff,#f8fafc); }
.bonus-card.qualified { border-color: #b9e5d1; background: linear-gradient(145deg,#fff,#eefaf5); }
.bonus-value { display: block; margin: 18px 0 8px; font-size: 34px; letter-spacing: -.055em; }
.bonus-copy { min-height: 34px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }

.chart-layout { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.chart-card { min-width: 0; padding: 20px 20px 15px; }
.chart-wide { grid-column: 1 / -1; }
.chart-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 8px; }
.chart-header h4 { margin: 0; font-size: 15px; letter-spacing: -.015em; }
.chart-header p { margin: 4px 0 0; color: var(--muted); font-size: 11.5px; }
.legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; color: var(--muted); font-size: 10.5px; }
.legend span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.legend i { width: 7px; height: 7px; border-radius: 50%; background: #bbb; }
.legend i.blue { background: var(--blue); }.legend i.green { background: var(--green); }.legend i.amber { background: #d38a20; }.legend i.violet { background: var(--violet); }
.legend i.red-line { width: 11px; height: 2px; border-radius: 0; background: var(--red); }
canvas { display: block; width: 100%; height: 260px; }
.chart-wide canvas { height: 280px; }
.chart-note { margin: 2px 0 0; padding-top: 11px; border-top: 1px solid #eef0f3; color: var(--muted); font-size: 10.5px; }

.source-card { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: 36px; padding: 18px 20px; }
.source-summary { display: flex; align-items: center; gap: 14px; }
.source-icon { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 42px; border-radius: 9px; background: var(--blue-soft); color: var(--blue); font-size: 10px; font-weight: 900; }
.source-summary h3 { margin: 3px 0 0; font-size: 15px; }
.source-summary > div > p:last-child { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
details { width: min(520px, 48%); }
summary { color: var(--blue); font-size: 12px; font-weight: 700; text-align: right; cursor: pointer; }
.field-map { margin-top: 12px; border-top: 1px solid var(--line); }
.field-row { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid #eef0f3; color: var(--muted); font-size: 10.5px; }
.field-row strong { color: var(--ink); }

footer { display: flex; justify-content: space-between; gap: 20px; padding: 20px 2px 0; color: var(--soft); font-size: 10.5px; }

/* Reference-inspired management dashboard shell */
body { background: #f7f9fc; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.topbar { min-height: 82px; padding: 14px 30px; background: rgba(255,255,255,.97); color: #102847; border-bottom: 1px solid #e6ebf2; box-shadow: 0 1px 8px rgba(25,49,78,.035); }
.brand-copy h1 { margin: 0; font-size: clamp(22px,2.2vw,31px); font-weight: 850; letter-spacing: -.035em; }
.topbar-actions { gap: 18px; }
.language-toggle { min-width: 48px; height: 38px; padding: 0 11px; border: 1px solid #cfd8e5; border-radius: 9px; background: #fff; color: #17314f; font-size: 12px; font-weight: 850; box-shadow: 0 2px 8px rgba(25,49,78,.04); }
.language-toggle:hover { border-color: #2f6fed; color: #2f6fed; }
.sync-pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid #eadfbf; border-radius: 999px; background: #fff9e9; color: #946200; font-size: 11px; white-space: nowrap; }
.sync-pill i { width: 8px; height: 8px; border-radius: 50%; background: #d59a1e; box-shadow: 0 0 0 4px rgba(213,154,30,.12); }
.sync-pill.is-live { border-color: #c9e8d8; background: #effaf4; color: #16865c; }
.sync-pill.is-live i { background: #16865c; box-shadow: 0 0 0 4px rgba(22,134,92,.12); }
.month-control { min-height: 40px; gap: 9px; padding: 0 8px 0 12px; border: 1px solid #d9e0e9; border-radius: 9px; background: #fff; color: #17314f; box-shadow: 0 2px 8px rgba(25,49,78,.04); }
.calendar-mark { width: 19px; height: 19px; color: #17314f; }
.month-control select { min-width: 138px; padding: 8px 26px 8px 2px; border: 0; background: #fff; color: #17314f; font-weight: 700; }
.data-cutoff { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; font-size: 11.5px; }
.data-cutoff strong { font-size: 12px; color: #17314f; }
.data-cutoff span { color: #7d8998; }
.refresh-button { width: 38px; height: 38px; display: grid; place-items: center; border: 0; background: transparent; color: #163453; line-height: 1; }
.refresh-button .icon-mask { width: 24px; height: 24px; }
.refresh-button.spinning { animation: spin .42s ease-in-out; }
@keyframes spin { to { transform: rotate(360deg); } }
.content { width: min(1540px,calc(100% - 32px)); padding: 22px 0 30px; }
.connection-banner { display: grid; grid-template-columns: 46px minmax(280px,1.25fr) minmax(420px,1fr); align-items: center; gap: 18px; margin-bottom: 18px; padding: 17px 20px; border: 1px solid #b9dccb; border-radius: 10px; background: linear-gradient(105deg,#f2fbf7 0%,#fff 72%); box-shadow: 0 5px 16px rgba(31,87,62,.07); }
.connection-status { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: #daf3e6; }
.connection-status span { width: 14px; height: 14px; border-radius: 50%; background: #16865c; box-shadow: 0 0 0 6px rgba(22,134,92,.12); }
.connection-copy h2 { margin: 3px 0 5px; color: #17314f; font-size: 18px; letter-spacing: -.015em; }
.connection-copy > p:last-child { max-width: 720px; margin: 0; color: #56677a; font-size: 11.5px; line-height: 1.5; }
.connection-facts { display: grid; grid-template-columns: 1.35fr 1fr .85fr; gap: 0; border-left: 1px solid #d9e7df; }
.connection-facts div { min-width: 0; padding: 2px 16px; border-right: 1px solid #e2ebe6; }
.connection-facts div:last-child { border-right: 0; }
.connection-facts span,.connection-facts strong { display: block; }
.connection-facts span { margin-bottom: 5px; color: #7c8b82; font-size: 10px; }
.connection-facts strong { overflow: hidden; color: #17314f; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.connection-facts .pending-label { color: #a85f00; }
.dashboard-panel { padding: 20px 16px 17px; background: #fff; border: 1px solid #e5eaf0; border-radius: 10px; box-shadow: 0 7px 18px rgba(31,58,87,.08); }
.section-title { display: flex; align-items: center; gap: 9px; }
.section-symbol { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; font-weight: 900; }
.section-symbol .icon-mask { width: 15px; height: 15px; }
.section-symbol.purple { background: #efe9ff; color: #7047de; }
.compact-heading { margin-bottom: 14px; }
.compact-heading h2 { margin: 0; font-size: clamp(19px,1.35vw,22px); font-weight: 850; letter-spacing: -.01em; }
.overview-actions { display: flex; align-items: center; gap: 14px; }
.period-label { color: #64748b; font-size: 11px; font-weight: 700; }
.metric-grid { gap: 14px; }
.metric-card { min-height: 148px; display: grid; grid-template-columns: 64px minmax(0,1fr); align-items: center; gap: 6px 14px; padding: 18px 15px; border-radius: 9px; box-shadow: 0 5px 15px rgba(30,55,84,.08); }
.metric-card::before { display: none; }
.metric-icon { width: 64px; height: 64px; display: grid; place-items: center; align-self: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.metric-icon .icon-mask { width: 27px; height: 27px; }
.metric-main { min-width: 0; height: 104px; display: grid; grid-template-rows: 32px 42px 24px; align-content: center; justify-items: center; text-align: center; }
.metric-card p { width: 100%; min-height: 32px; display: flex; align-items: center; justify-content: center; margin: 0; color: #1c2d43; font-size: clamp(11.5px,.86vw,13.5px); font-weight: 850; line-height: 1.15; text-align: center; text-transform: uppercase; }
.metric-card strong { align-self: center; margin: 0; color: var(--accent); font-size: clamp(29px,2.15vw,35px); line-height: 1; }
.metric-change { align-self: center; display: block; margin: 0; color: #657386; font-size: clamp(10.5px,.78vw,12px); line-height: 1; text-align: center; }
.metric-change b { margin-left: 4px; color: #229246; }
.metric-change.negative b { color: #d24757; }
.kpi-actions { display: flex; align-items: center; gap: 12px; }
.section-symbol.blue { background: #e9f0ff; color: #326ce5; }
.kpi-section { width: 100%; margin-top: 18px; }
.kpi-grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr) minmax(0,1.45fr) minmax(210px,.7fr); gap: 14px; }
.kpi-card { min-height: 306px; display: flex; flex-direction: column; overflow: hidden; padding: 0; border-top: 2px solid var(--kpi-accent,#f08b24); border-radius: 9px; box-shadow: 0 5px 14px rgba(31,58,87,.09); }
.kpi-title { min-height: 48px; padding: 11px 16px; color: var(--kpi-accent,#e4770e); font-size: clamp(12px,.84vw,13.5px); font-weight: 850; letter-spacing: 0; }
.target-chip { padding: 6px 9px; border-radius: 8px; background: color-mix(in srgb,var(--kpi-accent,#2f6fed) 10%,white); color: var(--kpi-accent,#2f6fed); font-size: 11px; }
.target-chip.orange { background: #fff2e4; color: #db7210; }
.claim-card-body { display: grid; grid-template-columns: 132px 1fr; align-items: center; flex: 1; gap: 12px; padding: 20px 16px 17px; }
.donut { width: 118px; height: 118px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--kpi-accent) 0 var(--ring-angle),#e7ebee var(--ring-angle) 360deg); box-shadow: inset 0 0 0 1px rgba(32,54,79,.05); }
.donut::before { content: ""; grid-area: 1/1; width: 90px; height: 90px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 12px rgba(30,54,82,.025); }
.donut strong { grid-area: 1/1; z-index: 1; font-size: 30px; letter-spacing: -.035em; }
.claim-stats { min-width: 84px; display: flex; flex-direction: column; align-self: center; justify-self: center; gap: 12px; margin: 0; text-align: center; }
.claim-stats div { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.claim-stats dt { color: #4d5868; font-size: 12.5px; }
.claim-stats dd { margin: 0; color: #102847; font-size: 28px; font-weight: 850; }
.claim-stats .kpi-today { padding-top: 9px; border-top: 1px solid #e5eaf0; }
.claim-stats .kpi-today dt,.claim-stats .kpi-today dd { color: #16865c; }
.claim-stats .kpi-today dd { font-size: 19px; }
.kpi-result { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding: 12px 17px; font-size: 11.5px; }
.kpi-result.passed { background: #edf9f0; color: #237b35; }
.kpi-result.failed { background: #fff0f2; color: #c53045; }
.kpi-result strong { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.kpi-result i { position: relative; width: 19px; height: 19px; display: grid; place-items: center; flex: 0 0 19px; border-radius: 50%; color: #fff; font-size: 0; font-style: normal; }
.kpi-result.passed i { background: #2fa650; }
.kpi-result.failed i { background: #d8394f; }
.kpi-result.failed i::before,.kpi-result.failed i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 2px; border-radius: 2px; background: #fff; transform: translate(-50%,-50%) rotate(45deg); }
.kpi-result.failed i::after { transform: translate(-50%,-50%) rotate(-45deg); }
.kpi-result.passed i::before { content: ""; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.kpi-result span { font-weight: 700; }
.tele-card { --kpi-accent:#f08b24; }
.tele-lines { flex: 1; margin: 0; padding: 16px 18px 8px; }
.tele-row { display: grid; grid-template-columns: 42px 1fr; gap: 13px; align-items: center; padding: 18px 0; }
.tele-row:first-child { padding-top: 12px; }
.tele-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: #fff0e2; color: #ef831b; }
.tele-icon .icon-mask { width: 19px; height: 19px; }
.tele-measure { min-width: 0; }
.tele-row-top { align-items: center; color: #17283d; font-size: 12.5px; font-weight: 800; }
.tele-row-top strong { font-size: 23px; }
.tele-measure small { display: block; margin-top: 7px; color: #59677a; font-size: 11px; }
.tele-today { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; color: #16865c; font-size: 11px; font-weight: 750; }
.tele-today b { font-weight: 850; }
.mini-progress { height: 8px; margin-top: 6px; background: #ffe4c7; }
.mini-progress span { background: linear-gradient(90deg,#ff870f,#ff9c32); }
.bonus-card { --kpi-accent:#7b39d1; align-items: center; padding: 0 15px 18px; text-align: center; background: #fff; }
.bonus-card .kpi-title { width: calc(100% + 30px); justify-content: center; color: #6f2cc1; font-size: 11.5px; }
.bonus-status { position: relative; width: 72px; height: 72px; display: grid; place-items: center; margin-top: 10px; border-radius: 50%; color: #fff; line-height: 1; }
.bonus-status.failed { background: #d9042b; }.bonus-status.passed { background: #22a45a; }
.bonus-status-icon { position: absolute; inset: 0; width: 34px; height: 34px; margin: auto; color: #fff; }
.bonus-card h4 { margin: 14px 0 0; color: #c80b2c; font-size: 18px; }
.bonus-card.qualified h4 { color: #22834b; }
.bonus-value { margin: 14px 0 9px; font-size: 28px; }
.bonus-rule { width: 100%; margin: 5px 0 13px; border-top: 2px dashed #cfd6df; }
.bonus-copy { min-height: 0; color: #31435a; font-size: 11px; line-height: 1.5; }
.charts-section { margin-top: 18px; }
.chart-layout { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.chart-card { position: relative; min-width: 0; min-height: 292px; padding: 13px 11px 9px; border-radius: 9px; box-shadow: 0 5px 14px rgba(31,58,87,.075); }
.chart-wide { grid-column: auto; }
.chart-header { min-height: 48px; flex-direction: column; gap: 8px; margin-bottom: 3px; }
.chart-header h4 { padding-left: 9px; border-left: 3px solid #2f80ed; color: #17314f; font-size: clamp(13px,.9vw,15px); font-weight: 850; }
.chart-card:nth-child(2) .chart-header h4,.chart-card:nth-child(3) .chart-header h4 { border-color: #39a9a1; }
.chart-card:nth-child(4) .chart-header h4 { border-color: #e94f7d; }
.legend { justify-content: flex-start; gap: 10px; font-size: clamp(10.5px,.72vw,12px); }
.legend b { font-weight: 550; }
.legend i.teal { background: #269aae; }
canvas,.chart-wide canvas { height: clamp(180px,14vw,220px); cursor: crosshair; touch-action: pan-y; }
.chart-note { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: clamp(10.5px,.72vw,11.5px); }
.chart-tooltip { position: absolute; z-index: 5; min-width: 150px; max-width: 210px; display: none; padding: 10px 11px; border: 1px solid #d8e0ea; border-radius: 9px; background: rgba(255,255,255,.98); color: #17314f; box-shadow: 0 10px 28px rgba(20,45,73,.18); pointer-events: none; }
.chart-tooltip.visible { display: block; }
.chart-tooltip > strong { display: block; margin-bottom: 7px; font-size: 12px; }
.chart-tooltip span { display: grid; grid-template-columns: 8px 1fr auto; align-items: center; gap: 6px; padding: 2px 0; color: #5a687b; font-size: 11px; }
.chart-tooltip span i { width: 7px; height: 7px; border-radius: 50%; }
.chart-tooltip span i.target-dot { height: 2px; border-radius: 0; background: var(--red); }
.chart-tooltip span b { color: #17314f; font-size: 11.5px; }
.conversion-content { min-height: 202px; display: grid; grid-template-columns: minmax(105px,1fr) minmax(105px,.9fr); align-items: center; gap: 8px; }
.conversion-funnel { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.funnel-step { min-height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; clip-path: polygon(8% 0,92% 0,80% 100%,20% 100%); }
.funnel-step strong { font-size: 20px; }.funnel-step span { font-size: 10px; }
.funnel-step.lead { width: 100%; background: #4b91e7; }.funnel-step.register { width: 75%; background: #56aa49; }.funnel-step.verify { width: 53%; background: #8253d8; }
.conversion-rates { display: flex; flex-direction: column; gap: 23px; }
.conversion-rates div { display: flex; flex-direction: column; gap: 3px; }
.conversion-rates strong { color: #112b47; font-size: 19px; }.conversion-rates span { color: #66758a; font-size: 10.5px; }
.notes-bar { display: grid; grid-template-columns: 110px repeat(4,1fr); align-items: center; gap: 0; margin-top: 18px; padding: 14px 18px; border: 1px solid #cfe1fb; border-radius: 9px; background: #edf5ff; color: #17314f; }
.notes-label { display: flex; align-items: center; gap: 8px; }
.notes-label span { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: #4f91ec; color: #fff; }
.notes-label .icon-mask { width: 11px; height: 11px; }
.notes-bar p { min-height: 34px; display: flex; align-items: center; margin: 0; padding: 0 18px; border-left: 1px solid #cdddf1; font-size: 11px; line-height: 1.45; text-align: center; }
.source-card { margin-top: 12px; padding: 12px 16px; box-shadow: none; }
.source-icon.sheets-icon { background: #e7f6ee; color: #16865c; }

dialog { width: min(560px, calc(100% - 28px)); padding: 0; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); box-shadow: 0 24px 80px rgba(15,30,55,.22); }
dialog::backdrop { background: rgba(20,31,48,.48); backdrop-filter: blur(2px); }
dialog form { padding: 24px; }
.dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.dialog-header h2 { margin: 5px 0 0; font-size: 23px; letter-spacing: -.03em; }
.icon-button { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--muted); font-size: 22px; line-height: 1; }
.dialog-copy { margin: 10px 0 22px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.form-grid label { display: flex; flex-direction: column; gap: 3px; }
.form-grid label > span { font-size: 12px; font-weight: 750; }
.form-grid small { color: var(--muted); font-size: 10.5px; }
.form-grid input { width: 100%; margin-top: 6px; padding: 10px 11px; border: 1px solid #cfd5df; border-radius: 8px; color: var(--ink); }
.form-grid input:focus { border-color: var(--blue); }
.full-width { grid-column: 1 / -1; }
.money-input { position: relative; }
.money-input b { position: absolute; left: 11px; top: 17px; color: var(--muted); font-size: 11px; }
.money-input input { padding-left: 37px; }
.dialog-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.text-button { margin-right: auto; border: 0; background: transparent; color: var(--muted); font-size: 12px; }

@media (min-width: 901px) and (max-width: 1200px) {
  .topbar { padding-inline: 22px; }
  .brand-copy h1 { font-size: 24px; }
  .metric-grid { gap: 9px; }
  .metric-card { grid-template-columns: 46px minmax(0,1fr); gap: 5px 8px; min-height: 126px; padding: 12px 8px 10px; }
  .metric-icon { width: 46px; height: 46px; }
  .metric-icon .icon-mask { width: 22px; height: 22px; }
  .metric-main { height: 84px; grid-template-rows: 28px 34px 18px; }
  .metric-card p { min-height: 28px; font-size: 11.5px; }
  .metric-card strong { margin: 0; font-size: 28px; }
  .metric-change { margin: 0; font-size: 10.5px; }
  .kpi-grid { grid-template-columns: 1fr 1fr 1.2fr .72fr; gap: 9px; }
  .kpi-card { min-height: 278px; }
  .kpi-title { min-height: 43px; padding: 9px 11px; font-size: 12px; }
  .target-chip { padding: 5px 6px; font-size: 10.5px; }
  .claim-card-body { grid-template-columns: 103px 1fr; gap: 7px; padding: 14px 10px 12px; }
  .donut { width: 96px; height: 96px; }
  .donut::before { width: 72px; height: 72px; }
  .donut strong { font-size: 23px; }
  .claim-stats { min-width: 76px; gap: 9px; }
  .claim-stats dt { font-size: 11.5px; }
  .claim-stats dd { font-size: 24px; }
  .claim-stats .kpi-today { padding-top: 7px; }
  .claim-stats .kpi-today dd { font-size: 17px; }
  .tele-lines { padding: 10px 11px 5px; }
  .tele-row { grid-template-columns: 34px 1fr; gap: 8px; padding: 13px 0; }
  .tele-icon { width: 32px; height: 32px; }
  .tele-row-top { font-size: 11.5px; }
  .tele-row-top strong { font-size: 21px; }
  .tele-measure small { font-size: 10.5px; }
  .tele-today { margin-top: 4px; font-size: 10px; }
  .kpi-result { min-height: 46px; padding: 9px 11px; font-size: 10.5px; }
  .kpi-result strong { font-size: 13px; }
  .bonus-card { padding-inline: 9px; }
  .bonus-status { width: 58px; height: 58px; }
  .bonus-status-icon { width: 28px; height: 28px; }
  .bonus-card h4 { font-size: 14.5px; }
  .bonus-value { font-size: 23px; }
  .bonus-copy { font-size: 10.5px; }
  .chart-layout { gap: 9px; }
  .chart-card { min-height: 275px; }
  canvas,.chart-wide canvas { height: 170px; }
  .conversion-content { min-height: 184px; grid-template-columns: 1fr .85fr; }
  .funnel-step { min-height: 45px; }
  .conversion-rates { gap: 16px; }
  .notes-bar { grid-template-columns: 95px repeat(4,1fr); padding-inline: 12px; }
  .notes-bar p { padding-inline: 10px; font-size: 9.5px; }
}

@media (max-width: 900px) {
  .connection-banner { grid-template-columns: 42px 1fr; }
  .connection-facts { grid-column: 1 / -1; border-top: 1px solid #d9e7df; border-left: 0; padding-top: 12px; }
  .metric-grid { grid-template-columns: repeat(3,1fr); }
  .kpi-grid { grid-template-columns: repeat(2,1fr); }
  .chart-layout { grid-template-columns: repeat(2,1fr); }
  .notes-bar { grid-template-columns: 1fr; }
  .notes-bar p { min-height: 0; padding: 9px 0; border-left: 0; border-top: 1px solid #cdddf1; text-align: left; }
}

@media (max-width: 800px) {
  .topbar { padding: 12px 18px; }
  .data-badge, .month-control > span { display: none; }
  .data-cutoff { display: none; }
  .content { width: calc(100% - 28px); padding-top: 25px; }
  .connection-banner { grid-template-columns: 1fr; }
  .connection-status { display: none; }
  .connection-facts { grid-column: auto; grid-template-columns: 1fr; gap: 10px; }
  .connection-facts div { padding: 0; border-right: 0; }
  .page-intro, .section-heading { align-items: flex-start; }
  .chart-layout { grid-template-columns: 1fr; }
  .chart-wide { grid-column: auto; }
  .source-card { align-items: flex-start; flex-direction: column; }
  details { width: 100%; }
  summary { text-align: left; }
  .notes-bar { grid-template-columns: 1fr; }
  .notes-bar p { min-height: 0; padding: 9px 0; border-left: 0; border-top: 1px solid #cdddf1; text-align: left; }
}

@media (max-width: 560px) {
  .brand-copy .eyebrow { display: none; }
  .brand-copy h1 { font-size: 16px; }
  .month-control select { min-width: 124px; }
  .page-intro { align-items: stretch; flex-direction: column; }
  .primary-button { align-self: flex-start; }
  .metric-grid, .kpi-grid { grid-template-columns: 1fr; }
  .claim-card-body { grid-template-columns: 140px 1fr; }
  .section-heading { flex-direction: column; gap: 10px; }
  .chart-header { flex-direction: column; }
  .legend { justify-content: flex-start; }
  canvas, .chart-wide canvas { height: 230px; }
  .form-grid { grid-template-columns: 1fr; }
  .full-width { grid-column: auto; }
  footer { flex-direction: column; gap: 5px; }
}

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