:root {
  color-scheme: light;
  font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #182d28;
  background: #f2f5f3;
  font-synthesis: none;
  --pine: #153f36;
  --green: #257359;
  --muted: #576b64;
  --border: #dce4df;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; padding-bottom: calc(94px + env(safe-area-inset-bottom)); }
button, select, input { font: inherit; }
button, select, summary { cursor: pointer; }
button { color: inherit; }
button:focus-visible, a:focus-visible, summary:focus-visible, select:focus-visible, .date-picker:focus-within { outline: 3px solid #c29343; outline-offset: 2px; }
h1, h2, p, figure { margin: 0; }
h2 { font-size: 1.08rem; letter-spacing: .012em; }
svg { width: 18px; height: 18px; flex-shrink: 0; stroke-width: 1.8; }
.shell { width: min(100% - 40px, 940px); margin-inline: auto; }
.topbar { background: #fff; border-bottom: 1px solid var(--border); }
.top-inner, .brand, .brand-account, .heading, .demo, .filters, .store-picker, .date-tools, .date-picker, .card-head, .summary-head, .legend, .meal-title, .issue-title { display: flex; align-items: center; }
.top-inner { height: 62px; gap: 12px; }
.brand { gap: 9px; font-size: 1.08rem; font-weight: 750; letter-spacing: .06em; }
.brand-icon { background: var(--pine); color: #fff; border-radius: 9px; display: grid; place-items: center; width: 32px; height: 32px; }
.role { border-left: 1px solid var(--border); padding-left: 12px; font-size: .84rem; color: var(--muted); }
.brand-account { margin-left: auto; gap: 6px; color: var(--muted); font-size: .88rem; }
.heading { justify-content: space-between; margin: 32px 0 20px; }
.eyebrow { font-size: .88rem; color: var(--muted); }
h1 { font-size: clamp(1.9rem, 4vw, 2.65rem); line-height: 1.2; margin-top: 5px; letter-spacing: -.045em; }
.demo { font-size: .8rem; gap: 5px; color: #5a6b60; background: #e7eee8; border-radius: 20px; padding: 6px 10px; }
.demo svg { width: 14px; height: 14px; }
.filters { justify-content: space-between; gap: 8px; margin-bottom: 14px; min-height: 42px; }
.store-picker, .date-tools { border: 1px solid var(--border); border-radius: 10px; background: #fff; color: var(--pine); }
.store-picker { gap: 7px; position: relative; padding-left: 12px; }
.store-picker select { border: 0; appearance: none; background: transparent; color: inherit; font-size: .9rem; padding: 11px 28px 11px 0; font-weight: 600; }
.store-picker svg:last-child { position: absolute; width: 14px; right: 8px; pointer-events: none; }
.date-tools { padding-inline: 2px; }
.date-tools button { border: 0; background: none; min-width: 36px; min-height: 40px; display: grid; place-items: center; border-radius: 8px; }
.date-tools button:hover { background: #edf4ee; }
.date-picker { position: relative; font-size: .88rem; gap: 6px; cursor: pointer; min-height: 40px; padding-inline: 4px; font-variant-numeric: tabular-nums; }
.date-picker svg { width: 15px; }
.date-picker input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; padding: 0; cursor: pointer; }
.date-picker input::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: auto; height: auto; cursor: pointer; }
.summary { background: linear-gradient(110deg, #174b3c, #153e35 72%, #214d40); color: #fff; border-radius: 17px; padding: 24px 28px 28px; }
.summary-head, .card-head { justify-content: space-between; gap: 8px; }
.summary-head { border-bottom: 1px solid #ffffff2b; padding-bottom: 16px; }
.summary-head span { font-size: .8rem; color: #ccdfcf; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 18px; }
.kpis > div { padding-left: 12%; border-left: 1px solid #ffffff33; }
.kpis > div:first-child { border: 0; padding-left: 0; }
.kpis span { display: block; color: #d5e5db; font-size: .9rem; }
.kpis strong { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.2; font-weight: 550; font-variant-numeric: tabular-nums; }
.kpis small { font-size: .8rem; margin-left: 5px; color: #d5e5db; }
.dashboard { display: grid; grid-template-columns: 1.16fr 1fr; gap: 14px; margin-top: 14px; }
.card { min-width: 0; padding: 21px; border-radius: 15px; border: 1px solid var(--border); background: #fff; }
.card-head { margin-bottom: 18px; }
.card-head > span, .meal-row small, .issue-meta, .diagnostics p { color: var(--muted); font-size: .82rem; }
.legend { gap: 5px; }
.legend i { width: 8px; height: 8px; background: var(--green); border-radius: 3px; }
.chart { display: grid; grid-template-columns: repeat(7,1fr); height: 116px; }
.bar-col { display: grid; grid-template-rows: 1fr auto; min-width: 0; text-align: center; gap: 5px; }
.bar-track { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; border-bottom: 1px solid var(--border); background: repeating-linear-gradient(to top,transparent 0,transparent 29px,#eff3f0 30px); }
.bar-track b, .bar-col small { font-size: .76rem; font-variant-numeric: tabular-nums; }
.bar-track b { padding-bottom: 3px; font-weight: 550; }
.bar-col small { color: var(--muted); }
.bar { width: min(45%,24px); border-radius: 4px 4px 0 0; background: #b1cdbd; }
.bar-col:last-child .bar { background: var(--green); }
.ad { position: relative; min-width: 0; align-self: start; border-radius: 15px; }
.ad-label { position: absolute; z-index: 1; top: 9px; right: 10px; color: #fff; background: #132b24d9; font-size: .75rem; padding: 2px 7px; border-radius: 5px; pointer-events: none; }
.network-slot { background: #fff; border: 1px solid var(--border); padding: 8px; }
.network-slot .ad-label { position: static; display: table; margin: 0 0 6px auto; }
.house-ad { display: flex; align-items: flex-end; position: relative; overflow: hidden; min-height: 210px; height: 100%; border-radius: 15px; color: #fff; text-decoration: none; background: #26382f; }
.house-ad img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 54%; }
.house-ad::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #0e221ddb, #0e211a83 64%, transparent); }
.ad-copy { display: grid; gap: 4px; position: relative; z-index: 1; padding: 22px; }
.ad-copy small { font-size: .8rem; letter-spacing: .12em; color: #eee5c9; }
.ad-copy strong { font-size: 1.55rem; font-weight: 650; }
.ad-copy span { font-size: .84rem; margin-top: 4px; text-decoration: underline; text-underline-offset: 4px; }
.meal-row, .source-row { margin: 13px 0; }
.meal-row:last-child, .source-row:last-child { margin-bottom: 0; }
.meal-row { display: flex; align-items: center; justify-content: space-between; }
.meal-title { gap: 8px; }
.meal-title svg { width: 17px; color: #876723; }
.meal-row b { font-size: 1.02rem; }
.meal-row small { padding-left: 7px; }
.split { display: flex; gap: 3px; height: 7px; background: #eff2ed; border-radius: 9px; overflow: hidden; }
.split i { background: #c69c51; }
.split i + i { background: #367b63; }
.source-row { display: grid; gap: 8px; align-items: center; grid-template-columns: 6em 1fr 3.5em; font-size: .88rem; }
.source-row b { font-weight: 550; text-align: right; }
.meter { border-radius: 6px; height: 7px; overflow: hidden; background: #eef3ef; }
.meter i { display: block; height: 100%; background: #559479; border-radius: inherit; }
.comparison { grid-column: 1/-1; }
table { border-collapse: collapse; width: 100%; font-size: .94rem; }
td, th { text-align: right; padding: 11px 2px; font-variant-numeric: tabular-nums; }
th { font-size: .82rem; font-weight: 500; color: var(--muted); }
td:first-child, th:first-child { text-align: left; }
tbody tr { border-top: 1px solid #e9eeea; }
.empty { color: var(--muted); font-size: .92rem; padding: 10px 0; }
.bottom-nav { position: fixed; bottom: 0; inset-inline: 0; z-index: 5; background: #fffffff7; border-top: 1px solid var(--border); padding-bottom: env(safe-area-inset-bottom); }
.bottom-nav > div { width: min(100%, 520px); margin: auto; display: flex; }
.bottom-nav button { flex: 1; border: 0; background: none; padding: 12px 6px; display: flex; align-items: center; justify-content: center; gap: 7px; color: var(--muted); font-size: .9rem; }
.bottom-nav button[aria-current] { color: #165c43; font-weight: 700; }
.issue { border-top: 1px solid var(--border); padding: 14px 0; }
.issue-title { gap: 8px; justify-content: space-between; }
.issue-meta { display: block; margin: 6px 0; }
.status { color: var(--green); font-size: .82rem; white-space: nowrap; }
.issue button, .landing-link { background: var(--pine); color: white; border: 0; padding: 8px 14px; border-radius: 8px; font-size: .9rem; }
.diagnostics { margin-top: 14px; }
.diagnostics p { margin-block: 10px; }
.landing { max-width: 620px; margin: 28px auto; }
.landing img { width: 100%; display: block; border-radius: 13px; margin: 18px 0; }
.landing p { line-height: 1.7; margin: 12px 0 22px; }
.landing-link { display: inline-block; text-decoration: none; }
@media (max-width: 650px) {
  .shell { width: calc(100% - 32px); }
  .top-inner { height: 52px; }
  .heading { margin: 22px 0 16px; }
  .dashboard { grid-template-columns: minmax(0,1fr); gap: 11px; margin-top: 11px; }
  .summary { padding: 17px 18px 20px; }
  .summary-head { padding-bottom: 12px; }
  .kpis { margin-top: 14px; }
  .kpis strong { font-size: 2.1rem; }
  .kpis > div { padding-left: 13%; }
  .kpis span { font-size: .82rem; }
  .card { padding: 16px; }
  .card-head { margin-bottom: 12px; }
  .chart { height: 100px; }
  .house-ad { min-height: 116px; }
  .ad-copy { padding: 13px 17px; gap: 1px; }
  .ad-copy strong { font-size: 1.24rem; }
  .bottom-nav button { flex-direction: column; gap: 3px; padding: 8px; font-size: .8rem; }
}
@media (max-width: 355px) {
  .shell { width: calc(100% - 20px); }
  .date-tools button { min-width: 28px; }
  .date-picker { font-size: .81rem; }
}

