@font-face {
  font-family: "Lexend"; src: url("./lexend-latin-b7e7538f59bf.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Noto Sans SC UI"; src: url("./noto-sans-sc-ui-f9b3d5eb66e9.woff2") format("woff2");
  font-weight: 350 650; font-style: normal; font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #111827; --muted: #636970; --line: #e6e5e3; --fog: #f4f3f1;
  --blue: #39759d; --sky: #5a9cc7; --apricot: #e6a66d; --mint: #27755c;
  font: 400 15px/1.55 "Lexend","Noto Sans SC UI","PingFang SC","Microsoft YaHei",sans-serif;
  color: var(--ink); background: #fff; -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
button, input, select { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button:disabled { cursor: default; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(30px, 2.52vw, 42px); font-weight: 560; line-height: 1.25; letter-spacing: -.04em; }
h2 { font-size: clamp(19px, 1.54vw, 25px); font-weight: 550; line-height: 1.45; letter-spacing: -.025em; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #508cb5; outline-offset: 4px; }
.config-page #main { grid-column: 2 / -1; }
.config-page .page-heading { margin-bottom: 18px; }
.config-toolbar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 8px 0 16px; border-bottom: 1px solid var(--line); background: #fff; }
.config-version, .config-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.config-version strong { font-size: 14px; font-weight: 550; }
.config-version span, .config-feedback { color: var(--muted); font-size: 13px; }
.config-feedback { margin-left: auto; color: var(--blue); }
.config-toolbar .primary:disabled { background: var(--fog); color: var(--muted); }
.config-fields { min-width: 0; margin: 0; padding: 0; border: 0; }
.config-section { padding-top: clamp(24px,3vw,42px); }
.config-section h2 { margin-bottom: 16px; }
.config-daily, .config-groups { display: grid; gap: 16px; }
.config-daily { grid-template-columns: repeat(3,minmax(0,1fr)); }
.config-price { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; }
.config-number { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.config-number input { width: 72px; padding: 7px 9px; appearance: textfield; border: 1px solid #cdcfce; border-radius: 8px; color: var(--ink); background: white; font-size: 16px; font-variant-numeric: tabular-nums; text-align: right; }
.config-number input::-webkit-inner-spin-button { appearance: none; }
.config-number input { scroll-margin-block: 100px 16px; }
.config-number input[aria-invalid="true"] { border-color: #ac4230; }
.config-daily .config-price { padding: 18px; border-radius: 14px; background: #edf3f6; font-weight: 550; }
.config-daily .config-price:nth-child(2) { background: #f7f1e7; }
.config-daily .config-price:nth-child(3) { background: #eaf2ed; }
.config-groups { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px clamp(24px,4vw,70px); }
.config-group { min-width: 0; }
.config-group h3 { margin: 0; font-size: 15px; font-weight: 550; padding: 8px 0; border-bottom: 1px solid var(--ink); }
.config-group .config-price { padding: 8px 0; border-bottom: 1px solid var(--line); min-height: 52px; }
@media(max-width:900px) {
  .config-daily .config-price { padding: 14px; flex-wrap: wrap; }
}
@media(max-width:640px) {
  .config-groups { grid-template-columns: 1fr; }
  .config-daily { gap: 6px; }
  .config-daily .config-price { flex-direction: column; align-items: flex-start; gap: 9px; padding: 11px 8px; }
  .config-daily .config-number { gap: 3px; width: 100%; }
  .config-daily input { width: 100%; min-width: 0; }
  .config-feedback:not(:empty) { order: 1; flex-basis: 100%; }
  .config-actions { margin-left: auto; }
}
#main:focus { outline: none; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; left: 12px; top: 12px; padding: 10px 15px; background: #fff; z-index: 6; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.dashboard-shell {
  display: grid; grid-template-columns: clamp(175px, 16%, 264px) minmax(0, 1fr) clamp(250px, 24%, 384px);
  width: 100%; min-height: 100vh; min-height: 100dvh; background: #fff;
}
.sidebar { min-width: 0; display: flex; flex-direction: column; padding: 39px clamp(13px, 1.25vw, 23px) 22px; }
.brand-row { padding: 4px 10px; }
.brand, .login-brand { display: inline-flex; align-items: center; gap: 11px; }
.brand img { display: block; }
.wordmark { font-size: 22px; font-weight: 650; line-height: 1.3; letter-spacing: -.055em; white-space: nowrap; }
#navigation { display: flex; flex-direction: column; flex: 1; }
.sidebar nav { display: grid; gap: 9px; margin-top: 66px; }
.sidebar nav a, .sidebar-bottom button {
  display: flex; align-items: center; gap: 12px; text-align: left; color: #66696d; border-radius: 13px;
  font-weight: 410; padding: 11px 13px; min-height: 43px; white-space: nowrap;
}
.sidebar nav a:hover, .sidebar-bottom button:hover { background: #f6f5f3; color: var(--ink); }
.sidebar nav a[aria-current] { background: #f1f2f1; color: var(--ink); font-weight: 550; }
.sidebar nav a[aria-current]::after { content: ""; width: 5px; height: 5px; margin-left: auto; border-radius: 50%; background: #31475c; }
.sidebar-bottom { display: grid; gap: 1px; margin-top: auto; padding-top: 35px; }
.sidebar-bottom button { font-size: 13px; min-height: 37px; padding: 7px 13px; }
.sidebar-bottom .icon { width: 16px; height: 16px; }
.sidebar-bottom [data-action="definitions"] { border-bottom: 1px solid var(--line); border-radius: 0; margin-bottom: 8px; padding-bottom: 13px; }
.hosted-only, .sidebar-bottom .hosted-only, .menu-toggle { display: none; }
body[data-auth="ready"] .sidebar-bottom .hosted-only { display: flex; }
#main { min-width: 0; padding: clamp(32px, 2.85vw, 50px) clamp(25px, 3vw, 57px) 33px; }
.page-heading, .panel-top, .calendar-top, .dialog-header, .dialog-actions, .chart-meta, .pager, .pager > div, .rail-link, .header-meta { display: flex; align-items: center; }
.page-heading, .panel-top, .calendar-top, .dialog-header, .chart-meta, .pager, .rail-link { justify-content: space-between; }
.page-heading { gap: 18px; margin-bottom: 32px; }
.heading-copy { min-width: 0; }
.header-meta { gap: 8px; margin-top: 8px; }
.scope-line { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 7px; padding: 3px 0; color: var(--muted); text-align: left; font-size: 14px; line-height: 1.5; }
.scope-line span + span::before { content: "·"; color: #969899; margin-right: 7px; }
.scope-line .icon, .refresh-link .icon { width: 13px; height: 13px; }
.scope-line .icon { margin-left: 2px; }
.scope-line:hover, .refresh-link:hover, .scope-line.is-filtered { color: var(--blue); }
.refresh-link { width: 29px; height: 27px; display: inline-grid; place-items: center; border-left: 1px solid var(--line); color: var(--muted); }
.date-trigger { display: inline-flex; align-items: center; gap: 10px; padding: 0; white-space: nowrap; font-size: 13px; font-weight: 420; font-variant-numeric: tabular-nums; }
.date-disc, .icon-button { display: inline-grid; place-items: center; border-radius: 50%; background: var(--fog); }
.date-disc { width: 39px; height: 39px; }
.date-disc .icon { width: 18px; height: 18px; }
.date-trigger:hover .date-disc, .icon-button:hover, .pill:hover { background: #e9e9e6; }
.icon-button { width: 36px; min-width: 36px; height: 36px; }
.icon-button .icon, .pill .icon { width: 16px; height: 16px; }
.icon-button:disabled { opacity: .35; background: transparent; }
.pill, .primary, .text-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.pill, .primary { min-height: 38px; border-radius: 22px; padding: 7px 16px; font-size: 13px; font-weight: 470; }
.pill { border: 1px solid var(--line); background: #fff; }
.primary { background: var(--ink); color: #fff; }
.primary:hover { background: #31425a; }
.text-button { color: var(--blue); border-radius: 6px; padding: 6px 2px; font-size: 13px; }
.text-button:hover, .rail-link:hover { text-decoration: underline; }
#content { min-width: 0; }
.metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; border-block: 1px solid var(--line); padding: 22px 0; }
.metric { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.metric > span, .metric small { font-size: 12px; color: var(--muted); }
.metric strong { font-size: clamp(21px,1.75vw,29px); line-height: 1.22; font-weight: 490; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.metric small { font-size: 11px; }
.headline { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0; padding: 24px 0; }
.headline-item { display: flex; align-items: center; gap: clamp(7px,.78vw,15px); min-width: 0; padding: 0 5px 0 clamp(10px,1.24vw,23px); }
.headline-item:first-child { padding-left: 0; }
.headline-item + .headline-item { border-left: 1px solid var(--line); }
.icon-disc { width: clamp(36px,3.05vw,51px); height: clamp(36px,3.05vw,51px); display: grid; place-items: center; border-radius: 43% 48% 45% 47%; background: #e9f1f6; flex: 0 0 auto; color: #263d4f; }
.headline-item:nth-child(2) .icon-disc { background: #fcf0dc; color: #523e27; }
.headline-item:nth-child(3) .icon-disc { background: #e6f1eb; color: #314e40; }
.icon-disc .icon { width: 21px; height: 21px; }
.metric-label { display: block; font-size: 14px; font-weight: 480; }
.metric-value { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 7px; margin-top: 3px; }
.metric-value strong { font-size: clamp(26px,2.05vw,34px); line-height: 1.18; letter-spacing: -.065em; font-weight: 510; font-variant-numeric: tabular-nums; }
.delta { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; white-space: nowrap; color: var(--muted); font-weight: 400; }
.delta.up { color: #2b7d62; } .delta.down { color: #a25a40; }
.delta i { width: 0; height: 0; border-inline: 3px solid transparent; border-bottom: 4px solid currentColor; }
.delta.down i { transform: rotate(180deg); }
.trend-panel { margin: 36px 0 29px; }
.panel-top { gap: 10px; flex-wrap: wrap; }
.segmented, .detail-tabs, .group-tabs { display: inline-flex; align-items: center; gap: 3px; }
.segmented { padding: 3px; background: #f1f1ef; border-radius: 24px; }
.segmented button, .detail-tabs button, .group-tabs button { border-radius: 18px; color: var(--muted); padding: 5px 12px; font-size: 12px; font-weight: 420; white-space: nowrap; }
.segmented button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 4px #282e321e; }
.segmented button:hover, .detail-tabs button:hover, .group-tabs button:hover { color: var(--ink); }
.chart-meta { margin: 13px 0 6px; }
.legend { display: flex; gap: 17px; }
.legend button { display: inline-flex; align-items: center; gap: 6px; color: #585e64; font-size: 13px; padding: 3px 0; }
.legend button[aria-pressed="false"] { text-decoration: line-through; }
.legend button[aria-pressed="false"] .swatch { opacity: .3; }
.swatch { width: 7px; height: 7px; border-radius: 50%; }
.series-0 { background: var(--sky); } .series-1 { background: var(--apricot); }
.chart-unit { color: var(--muted); font-size: 11px; }
.plot { position: relative; height: clamp(190px,15.6vw,255px); width: 100%; }
.plot canvas { display: block; max-width: 100%; }
.trend-tooltip { position: absolute; top: 0; left: 0; z-index: 1; padding: 12px 15px; min-width: 158px; max-width: 100%; border-radius: 11px; color: #fff; background: #101a29; box-shadow: 0 4px 12px #151c2923; pointer-events: none; }
.trend-tooltip > strong { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 470; }
.tooltip-row { display: grid; grid-template-columns: 3px 1fr auto; align-items: center; gap: 8px; font-size: 12px; margin-top: 5px; color: #d1d7dd; }
.tooltip-row i { width: 3px; height: 12px; border-radius: 2px; }
.tooltip-row b { font-size: 12px; font-weight: 450; color: #fff; font-variant-numeric: tabular-nums; }
.empty-plot { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; background: repeating-linear-gradient(to top,transparent 0 calc(25% - 1px),#f5f4f2 calc(25% - 1px) 25%); }
.empty-plot > span { display: flex; align-items: center; gap: 8px; padding: 4px 10px; background: #fff; color: var(--muted); font-size: 13px; }
.empty-plot .icon { width: 16px; height: 16px; }
.empty-filter { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-size: 12px; }
.empty-filter .icon { width: 13px; }
.overview-details { padding-top: 13px; }
.overview-details .panel-top { margin-bottom: 15px; }
.detail-tabs { flex-wrap: wrap; }
.detail-tabs button { padding: 5px 9px; }
.detail-tabs button[aria-pressed="true"], .group-tabs button[aria-pressed="true"] { color: var(--ink); background: #eeefed; }
.table-scroll { overflow: auto; max-width: 100%; scrollbar-width: thin; scrollbar-color: #c3c5c4 transparent; }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; font-variant-numeric: tabular-nums; }
th, td { padding: 11px 11px; text-align: right; white-space: nowrap; }
thead th { color: var(--muted); border-block: 1px solid var(--line); font-size: 12px; font-weight: 400; background: #fff; }
th:first-child, td:first-child { left: 0; position: sticky; text-align: left; background: #fff; }
tbody td, tbody th { border-bottom: 1px solid #eeefed; }
tbody th { font-weight: 460; }
tbody tr:hover td, tbody tr:hover th { background: #f8f8f6; }
.daily-table td, .daily-table tbody th { padding-block: 9px; }
.day-link { display: inline-flex; align-items: center; padding: 0; gap: 8px; font-weight: 450; }
.day-link:hover { color: var(--blue); }
.day-icon { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; color: #565d65; background: #f2f2ef; }
.day-icon .icon { width: 14px; height: 14px; }
.day-link.weekend .day-icon { background: #faf0df; color: #785c3c; }
.day-link.selected .day-icon { background: #dfecf6; color: #375c78; }
.day-link small, .breakdown th small { font-size: 11px; color: var(--muted); font-weight: 390; }
.ratio-cell { display: inline-flex; align-items: center; justify-content: flex-end; gap: 9px; }
meter { appearance: none; width: 33px; height: 4px; border: 0; border-radius: 8px; background: #e6efec; }
meter::-webkit-meter-bar { height: 4px; border: 0; border-radius: 8px; background: #e6efec; }
meter::-webkit-meter-optimum-value { border-radius: 8px; background: #79b59f; }
meter::-moz-meter-bar { border-radius: 8px; background: #79b59f; }
.breakdown meter { width: clamp(70px,9vw,165px); background: #edf2f5; }
.breakdown meter::-webkit-meter-bar { background: #edf2f5; }
.breakdown meter::-webkit-meter-optimum-value { background: #79a9c9; }
.breakdown meter::-moz-meter-bar { background: #79a9c9; }
.breakdown th small { display: block; margin-top: 1px; }
.breakdown .ratio-cell { display: inline-grid; grid-template-columns: auto 55px; }
.more-metrics { padding-block: 7px; }
.more-metrics summary { color: var(--blue); cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 5px; padding: 6px 0; font-size: 12px; }
.more-metrics summary::-webkit-details-marker { display: none; }
.more-metrics summary .icon { width: 13px; height: 13px; }
.more-metrics[open] summary .icon { transform: rotate(90deg); }
.pager { margin-top: 12px; color: var(--muted); font-size: 12px; }
.pager > div { gap: 9px; }
.pager .icon-button { width: 29px; min-width: 29px; height: 29px; }
.group-tabs { flex-wrap: wrap; gap: 3px; margin: 26px 0 2px; }
.group-tabs button { padding: 6px 13px; font-size: 13px; }
.report-section { margin: 25px 0 30px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.section-heading span { color: var(--muted); font-size: 12px; }
.report-section:first-child { margin-top: 0; }
.empty { color: var(--muted); padding: 28px 16px; text-align: center; font-size: 13px; background: #f6f6f4; border-radius: 13px; }
.loading-state, .message-state { min-height: 390px; display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--muted); }
.message-state { flex-direction: column; text-align: center; }
.message-state h2 { font-size: 19px; color: var(--ink); } .message-state p { font-size: 13px; }
.spinner { width: 18px; height: 18px; border: 2px solid #dce6ef; border-top-color: #5283a5; border-radius: 50%; animation: turn 1s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }
.right-rail { min-width: 0; display: flex; flex-direction: column; border-left: 1px solid var(--line); padding: 19px clamp(14px,1.35vw,24px) 24px; }
.participation { padding: 20px 18px 15px; border-radius: 22px; background: #f3f2ef; text-align: center; }
.tile-portrait { position: relative; width: 112px; height: 106px; margin: 1px auto 9px; }
.tile-portrait::before { content: ""; position: absolute; inset: 4px 7px; border-radius: 50%; background: #f1dfba; box-shadow: 0 0 0 3px #ffffffd9; }
.tile-portrait::after { content: ""; position: absolute; inset: -2px -2px 0; background: url("./sudoku-tile-785f6f191249.webp") center / contain no-repeat; filter: drop-shadow(0 5px 4px #44372528); }
.participation-key { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.participation-key h2 { color: #59605f; font-size: 13px; font-weight: 430; letter-spacing: 0; }
.ring { font-variant-numeric: tabular-nums; }
.ring strong { font-size: 39px; font-weight: 470; line-height: 1.12; letter-spacing: -.065em; }
.ring strong small { font-size: 19px; margin-left: 3px; font-weight: 430; }
.active-totals { display: grid; grid-template-columns: 1fr 1fr; margin-top: 18px; padding: 12px 4px; border-radius: 14px; background: #ffffffcb; }
.active-totals > div + div { border-left: 1px solid var(--line); }
.active-totals span { display: block; font-size: 11px; color: var(--muted); }
.active-totals strong { display: block; font-weight: 490; font-size: 21px; letter-spacing: -.05em; margin-top: 1px; }
.rail-activity { margin-top: 33px; padding-inline: 3px; }
.rule-title { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 490; letter-spacing: 0; }
.rule-title::before, .rule-title::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.rail-activity ul { list-style: none; padding: 0; margin: 18px 0 9px; }
.rail-activity li { display: flex; align-items: flex-start; gap: 11px; padding: 9px 0 13px; }
.activity-icon { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 50%; flex: 0 0 auto; }
.activity-icon .icon { width: 16px; height: 16px; }
.activity-icon.blue { background: #dceaf4; color: #3b6986; }
.activity-icon.warm { background: #f7e9d5; color: #845d37; }
.activity-icon.mint { background: #e0eee6; color: #47735d; }
.rail-activity li div { flex: 1; min-width: 0; }
.rail-activity li div > span { display: block; font-size: 14px; font-weight: 460; margin: 4px 0 6px; }
.rail-activity li strong { display: block; width: fit-content; max-width: 100%; padding: 5px 10px; border-radius: 0 9px 9px 9px; background: #f3f4f3; color: #4c555c; font-size: 13px; font-weight: 400; }
.rail-activity li:first-child strong { background: #e8f1f8; color: #345d7a; }
.rail-link { margin-left: 46px; color: var(--blue); font-size: 12px; padding: 5px 0; }
.rail-link .icon { width: 14px; height: 14px; }
.update-time { display: flex; align-items: center; gap: 6px; margin: auto 3px 0; padding-top: 27px; font-size: 11px; color: var(--muted); }
.update-time .icon { width: 13px; height: 13px; }
dialog { color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 20px; width: min(370px,calc(100% - 32px)); max-height: 84dvh; padding: 23px; box-shadow: 0 20px 60px #22232225; }
dialog::backdrop { background: #20242a36; }
dialog[data-anchored] { position: fixed; margin: 0; left: var(--dialog-left); top: var(--dialog-top); right: auto; bottom: auto; }
dialog[data-anchored]::backdrop { background: #2625250d; }
.dialog-header { gap: 14px; margin-bottom: 20px; }
.dialog-header h2 { font-size: 19px; }
.dialog-header .icon-button { width: 30px; height: 30px; min-width: 30px; }
.dialog-actions { justify-content: space-between; gap: 9px; border-top: 1px solid var(--line); margin-top: 17px; padding-top: 16px; }
#filter-form, .password-form, #login-form { display: grid; gap: 14px; }
#filter-form label, .password-form label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; }
select, .password-form input, #login-form input { width: 100%; border: 1px solid #dededb; border-radius: 10px; min-height: 41px; padding: 9px 12px; background: #fff; color: var(--ink); }
select { appearance: none; padding-right: 36px; background: #fff url("./chevron-down-225c6b08d42d.svg") no-repeat right 12px center / 13px; }
#filter-form .dialog-actions { margin-top: 5px; }
.calendar-top { margin-bottom: 12px; } .calendar-top strong { font-size: 14px; font-weight: 500; }
.weekdays, .calendar-days { display: grid; grid-template-columns: repeat(7,1fr); gap: 2px; text-align: center; }
.weekdays { color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.calendar-days button { height: 36px; border-radius: 10px; font-size: 14px; }
.calendar-days button:hover:enabled { background: var(--fog); }
.calendar-days button[aria-current] { text-decoration: underline; text-underline-offset: 4px; }
.calendar-days button[aria-pressed="true"], .calendar-days button[aria-pressed="true"]:hover { background: var(--ink); color: #fff; }
.calendar-days button:disabled { color: #a6a7a4; }
.calendar-actions { justify-content: flex-end; }
.calendar-actions span { margin-right: auto; font-size: 12px; color: var(--muted); }
#detail { width: min(680px,calc(100% - 32px)); }
.definitions { margin: 0; } .definitions dt { font-weight: 530; }
.definitions dd { color: var(--muted); font-size: 14px; margin: 3px 0 15px; }
@media (min-width:761px) {
  .brand-row .menu-toggle { display: none; }
  .sidebar { align-self: start; position: sticky; top: 0; height: 100vh; height: 100dvh; overflow-y: auto; }
  #main { border-left: 1px solid var(--line); }
}
@media (min-width:1051px) and (max-width:1250px) {
  .dashboard-shell { grid-template-columns: 165px minmax(0,1fr) 244px; }
  #main { padding-inline: 25px; } .sidebar { padding-inline: 10px; }
  .headline-item { gap: 8px; padding-left: 10px; }
  .right-rail { padding-inline: 13px; }
}
@media (max-width:1050px) {
  .dashboard-shell { grid-template-columns: 160px minmax(0,1fr); }
  .sidebar { grid-row: span 2; padding-inline: 9px; }
  .right-rail { grid-column: 2; display: grid; align-items: start; grid-template-columns: 1fr 1fr; gap: 18px; border-left: 1px solid var(--line); border-top: 1px solid var(--line); padding: 23px 25px; }
  .right-rail:empty { display: none; }
  .rail-activity { margin: 0; } .rail-activity ul { margin-top: 9px; }
  .rail-activity li { padding-block: 6px; }
  .update-time { grid-column: 1/-1; margin: 0; padding: 0; justify-self: end; }
}
@media (max-width:760px) {
  .dashboard-shell { display: block; }
  .sidebar { padding: 13px 20px; border-bottom: 1px solid var(--line); }
  .brand-row { padding: 0; display: flex; align-items: center; justify-content: space-between; }
  .brand img { width: 29px; height: 29px; } .wordmark { font-size: 18px; }
  .menu-toggle { display: inline-grid; }
  #navigation { display: none; } .sidebar.expanded #navigation { display: flex; }
  .sidebar nav { margin-top: 15px; gap: 2px; }
  .sidebar-bottom { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; padding: 8px 0 0; border-top: 1px solid var(--line); }
  .sidebar-bottom button, .sidebar-bottom [data-action="definitions"] { padding: 6px 8px; border: 0; margin: 0; }
  #main { padding: 23px 20px 26px; }
  h1 { font-size: 29px; } h2 { font-size: 19px; }
  .page-heading { gap: 8px; margin-bottom: 21px; }
  .header-meta { gap: 5px; margin-top: 4px; }
  .scope-line { font-size: 12px; }
  .date-trigger { gap: 5px; font-size: 12px; }
  .date-disc { width: 33px; height: 33px; } .date-disc .icon { width: 16px; height: 16px; }
  .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .headline { grid-template-columns: repeat(3,minmax(0,1fr)); padding: 16px 0; }
  .headline-item { flex-direction: column; align-items: flex-start; gap: 8px; padding: 0 4px 0 13px; }
  .headline-item .icon-disc { width: 28px; height: 28px; } .icon-disc .icon { width: 16px; height: 16px; }
  .metric-label { font-size: 12px; } .metric-value strong { font-size: 25px; }
  .metric-value { gap: 2px 5px; } .delta { font-size: 10px; }
  .trend-panel { margin: 25px 0 18px; } .chart-meta { margin: 8px 0 4px; }
  .plot { height: 178px; } .trend-tooltip { padding: 9px 12px; min-width: 131px; }
  .overview-details { padding-top: 8px; } .overview-details .panel-top { gap: 7px; margin-bottom: 10px; }
  .detail-tabs button { font-size: 11px; padding: 5px 7px; }
  th, td { padding: 9px 8px; } .daily-table td, .daily-table th { padding: 8px 5px; font-size: 12px; }
  .day-link { gap: 5px; } .day-icon { width: 23px; height: 23px; }
  .day-link small, .daily-table meter { display: none; }
  .group-tabs { margin-top: 20px; }
  .right-rail { padding: 20px; border-left: 0; }
  #date-dialog, #filter-dialog { margin: auto auto 0; width: min(100%,470px); max-width: 100%; max-height: 90dvh; border-radius: 24px 24px 0 0; padding-bottom: max(22px,env(safe-area-inset-bottom)); }
}
@media (max-width:550px) {
  .right-rail { grid-template-columns: 1fr; }
  .participation { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 9px 12px; padding: 15px 17px; text-align: left; }
  .tile-portrait { width: 84px; height: 80px; margin: 0; }
  .participation-key { align-items: flex-start; gap: 3px; }
  .ring strong { font-size: 30px; } .ring strong small { font-size: 15px; }
  .active-totals { grid-column: 1/-1; margin: 0; padding: 8px; text-align: center; }
  .active-totals strong { font-size: 17px; }
  .rail-activity { padding: 0; } .update-time { justify-self: start; }
}
@media (max-width:380px) {
  #main, .sidebar { padding-inline: 14px; }
  .header-meta { gap: 2px; } .scope-line { gap: 4px; font-size: 11px; }
  .date-trigger { font-size: 11px; } .date-disc { width: 29px; height: 29px; }
  .headline-item { padding-left: 9px; } .day-link { gap: 3px; }
  .metric-value { gap: 3px; } .detail-tabs button { padding-inline: 5px; }
}
@media (prefers-reduced-motion:reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; } }
.daily-headline { grid-template-columns:repeat(4,minmax(0,1fr)); }
.daily-headline .headline-item { align-items:flex-start; gap:8px; }
.daily-headline .icon-disc { width:32px; height:32px; flex:none; }
.daily-headline .headline-item:nth-child(4) .icon-disc { background:#eae7f2; color:#625178; }
.daily-headline .metric-value { gap:3px; }
.daily-headline .metric-value small { font-size:12px; font-weight:450; color:var(--muted); }
.daily-links { margin-top:20px; font-size:13px; color:var(--muted); }
@media(max-width:1350px) and (min-width:1001px) { .daily-headline .icon-disc { display:none; } }
@media(max-width:650px) {
  .daily-headline { grid-template-columns:repeat(2,minmax(0,1fr)); gap:15px 0; }
  .daily-headline .headline-item:nth-child(3) { border-left:0; padding-left:0; }
  .daily-headline .headline-item { padding-block:2px; }
}
