:root {
  --paper: oklch(0.978 0.004 90);
  --surface: #fff;
  --ink: oklch(0.25 0.015 165);
  --muted: oklch(0.48 0.015 165);
  --rule: oklch(0.91 0.008 150);
  --green: oklch(0.48 0.095 163);
  --green-soft: oklch(0.96 0.025 163);
  --amber: oklch(0.65 0.135 55);
  --amber-soft: oklch(0.975 0.025 65);
  --sidebar: oklch(0.245 0.04 165);
  --font: "Space Grotesk", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 82px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 14px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button, a, input, select { outline-offset: 4px; }
:focus-visible { outline: 2px solid var(--green); }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
button:disabled { cursor: default; opacity: .35; }
[hidden] { display: none !important; }
h1, h2, p { margin: 0; }
h2 { font-size: 18px; font-weight: 600; letter-spacing: -.5px; line-height: 1.5; }
button { transition: background .16s, color .16s, border-color .16s; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: -100px; left: 24px; z-index: 99; padding: 12px 20px; background: white; }
.skip-link:focus { top: 10px; }
.preview-bar { min-height: 52px; background: #f0f0eb; border-bottom: 1px solid #dddfd8; padding: 8px 24px; display: flex; justify-content: space-between; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 30; font-size: 11px; }
.preview-bar > span { display: flex; align-items: center; gap: 9px; }
.preview-dot { width: 6px; height: 6px; background: var(--amber); border-radius: 50%; }
.preview-note { color: var(--muted); }
.design-controls { display: flex; align-items: center; gap: 18px; }
.layout-switch { display: flex; gap: 2px; }
.layout-switch button { border: 0; border-radius: 4px; background: transparent; padding: 6px 10px; font-size: 11px; }
.layout-switch button span { opacity: .6; margin-right: 4px; }
.layout-switch button[aria-pressed="true"] { background: var(--ink); color: white; }
.layout-switch button:hover:not([aria-pressed="true"]) { background: #e1e4dd; }
.scenario-label { display: flex; align-items: center; gap: 7px; color: var(--muted); white-space: nowrap; }
.scenario-label select { background: transparent; border: 1px solid #cdd2c8; border-radius: 4px; padding: 5px 25px 5px 8px; font-size: 11px; color: var(--ink); }
.app-shell { display: grid; grid-template-columns: 216px minmax(0, 1fr); min-height: calc(100vh - 52px); }
.sidebar { background: var(--sidebar); color: #e8f0e8; padding: 33px 18px 24px; display: flex; flex-direction: column; position: sticky; top: 52px; height: calc(100vh - 52px); background-image: repeating-linear-gradient(135deg, transparent, transparent 4px, #ffffff01 4px, #ffffff01 5px); }
.brand { display: flex; align-items: center; gap: 11px; padding-left: 8px; font-size: 22px; font-weight: 600; letter-spacing: -.9px; line-height: 1.25; }
.brand-mark { width: 27px; height: 27px; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; transform: rotate(-8deg); }
.brand-mark i { background: #c9e7cd; border-radius: 1px; }
.brand-mark i:last-child { background: var(--amber); }
.brand-sub { display: block; font-size: 8px; font-weight: 400; letter-spacing: 2px; padding-top: 7px; color: #a8c0b4; }
.nav-group { margin-top: 58px; }
.nav-label { color: #a2b9ac; font-size: 9px; letter-spacing: 2px; padding-left: 14px; margin-bottom: 15px; }
.nav-link { display: flex; align-items: center; gap: 15px; padding: 12px 13px; margin: 5px 0; border-radius: 5px; font-size: 13px; color: #bed0c5; }
.nav-link:hover { background: #ffffff09; color: #fff; }
.nav-link.active { color: #f0f6ed; background: #ffffff10; box-shadow: inset 0 0 0 1px #ffffff0a; }
.nav-number { font-size: 10px; opacity: .65; }
.nav-arrow { margin-left: auto; font-size: 17px; }
.sidebar-bottom { margin-top: auto; padding: 30px 8px 0; }
.read-only { color: #bdd1c2; font-size: 11px; padding-bottom: 22px; border-bottom: 1px solid #ffffff19; }
.tiny-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--green); margin-right: 7px; vertical-align: middle; }
.read-only .tiny-dot { background: #a7d4b3; }
.read-only p { font-size: 10px; padding-left: 13px; margin-top: 4px; color: #94afa1; }
.account { display: flex; gap: 10px; align-items: center; margin-top: 20px; font-size: 12px; }
.avatar { width: 31px; height: 31px; border-radius: 50%; border: 1px solid #769582; display: grid; place-items: center; font-size: 10px; }
.account small { display: block; font-size: 9px; color: #a7bfb0; }
.account-note { display: block; margin-top: 11px; font-size: 9px; color: #a7bfb0; }
main { padding: 23px 38px 0; min-width: 0; max-width: 1720px; width: 100%; margin: 0 auto; }
.topline { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; align-items: center; }
.topline strong { color: var(--ink); font-weight: 500; }
.breadcrumb-slash { padding: 0 12px; color: #afb8ae; }
.environment { display: flex; align-items: center; }
.utc-tag { border-left: 1px solid var(--rule); margin-left: 14px; padding-left: 14px; font-size: 10px; letter-spacing: 1px; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin: 33px 0 25px; }
.eyebrow { font-size: 9px; letter-spacing: 1.65px; font-weight: 500; color: var(--muted); margin-bottom: 7px; }
.eyebrow span { color: #9ca99d; margin-left: 6px; }
h1 { font-size: 33px; letter-spacing: -1.3px; font-weight: 600; line-height: 1.4; }
.heading-dot { color: var(--green); margin-left: 3px; }
.heading-description { font-size: 12px; color: var(--muted); margin-top: 8px; }
.heading-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 9px; }
.heading-actions > span { font-size: 10px; color: var(--muted); }
.button { padding: 10px 15px; min-height: 40px; border-radius: 5px; font-size: 12px; border: 1px solid transparent; white-space: nowrap; display: inline-flex; justify-content: center; align-items: center; gap: 8px; }
.primary { background: var(--green); color: #fff; border-color: var(--green); }
.primary:hover { background: oklch(.4 .08 163); }
.secondary { background: var(--surface); border-color: #cfd8cf; }
.secondary:hover { background: var(--green-soft); border-color: var(--green); }
.secondary > span { font-size: 17px; line-height: 1; }
.filter-bar { display: flex; gap: 16px; background: var(--surface); padding: 16px 19px; align-items: flex-end; border: 1px solid var(--rule); border-radius: 7px; flex-wrap: wrap; }
.filter-bar > label { flex: 1; min-width: 135px; }
.filter-bar label { display: flex; flex-direction: column; gap: 6px; font-size: 10px; color: var(--muted); font-weight: 500; }
.filter-bar input, .filter-bar select { font-size: 12px; color: var(--ink); width: 100%; min-height: 39px; padding: 8px 10px; background: var(--surface); border: 1px solid #d9dfd7; border-radius: 4px; }
.filter-bar input:hover, .filter-bar select:hover { border-color: #8fa999; }
.date-filter { display: flex; min-width: 0; gap: 8px; align-items: flex-end; flex: 1.8; }
.date-filter label { flex: 1; min-width: 125px; }
.date-separator { padding-bottom: 8px; color: #b9c1b8; }
.filter-actions { display: flex; gap: 15px; align-items: center; }
.reset-button { border: 0; padding: 10px 0; background: transparent; color: var(--muted); font-size: 12px; min-height: 40px; }
.reset-button:hover { color: var(--green); }
.filter-error { width: 100%; font-size: 12px; color: #9c481e; }
.scope-line { display: flex; justify-content: space-between; gap: 8px 20px; flex-wrap: wrap; margin: 11px 1px 18px; font-size: 10px; color: var(--muted); }
.scope-divider { padding: 0 10px; color: #bbc2b7; }
.workspace { display: flex; flex-direction: column; gap: 21px; }
.freshness { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 14px; background: #eaf0e8; border-radius: 4px; font-size: 11px; color: #385a45; }
.freshness strong { font-weight: 500; }
.freshness .freshness-secondary { color: #54715d; }
.freshness a { margin-left: auto; text-decoration: underline; text-underline-offset: 3px; font-size: 10px; }
.freshness.is-warning { background: var(--amber-soft); color: #8a4c20; border: 1px solid #ecdac4; }
.freshness.is-warning .freshness-secondary { color: #795435; }
.status-mark { width: 17px; height: 17px; border: 1px solid currentColor; border-radius: 50%; display: inline-grid; place-items: center; font-size: 10px; margin-right: 3px; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); border-top: 1px solid #cbd5ca; border-bottom: 1px solid #cbd5ca; padding: 22px 0; }
.metric { padding: 0 23px; border-right: 1px solid var(--rule); min-width: 0; }
.metric:first-child { padding-left: 0; }
.metric:last-child { border: 0; }
.metric-label { font-size: 12px; display: flex; align-items: center; gap: 8px; }
.metric-index { color: var(--muted); font-size: 9px; }
.metric-number { font-size: clamp(28px, 3vw, 43px); font-weight: 500; letter-spacing: -1.8px; line-height: 1.35; margin: 9px 0 8px; font-variant-numeric: tabular-nums; }
.metric-number.risk-number { color: var(--amber); }
.metric-number small { font-size: 14px; letter-spacing: 0; color: var(--muted); padding-left: 4px; }
.metric-description { font-size: 10px; color: var(--muted); }
.metric-description strong { color: var(--green); font-weight: 500; }
.definition { position: relative; }
.definition summary { list-style: none; width: 16px; height: 16px; border: 1px solid #b3beb3; border-radius: 50%; display: inline-grid; place-items: center; color: var(--muted); cursor: pointer; font-size: 9px; }
.definition summary::-webkit-details-marker { display: none; }
.definition p { position: absolute; z-index: 10; width: 235px; top: 23px; right: -20px; padding: 14px; background: var(--ink); color: white; font-size: 11px; border-radius: 5px; box-shadow: 0 10px 30px #152e2426; font-weight: 400; }
.analytics { display: grid; grid-template-columns: minmax(0,1.8fr) minmax(260px,1fr); gap: 20px; }
.panel { padding: 22px 23px; background: var(--surface); border: 1px solid var(--rule); border-radius: 7px; min-width: 0; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.section-heading .eyebrow { font-size: 8px; letter-spacing: 1.5px; margin-bottom: 5px; }
.section-index { font-size: 24px; color: #d7dfd4; letter-spacing: -1px; align-self: flex-start; }
.section-subtitle { font-size: 10px; color: var(--muted); margin-top: 7px; }
.legend { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; font-size: 9px; color: var(--muted); }
.legend > span { display: flex; align-items: center; gap: 5px; }
.legend-swatch { display: inline-block; width: 6px; height: 6px; border-radius: 1px; }
.traffic { background: var(--green); }
.risk { background: var(--amber); }
.trend-chart { position: relative; min-height: 206px; margin-top: 14px; }
.chart-area { display: flex; height: 195px; gap: 12px; padding-top: 4px; }
.y-axis { width: 29px; display: flex; flex-direction: column; justify-content: space-between; font-size: 9px; color: var(--muted); padding-bottom: 26px; text-align: right; }
.plot { flex: 1; min-width: 0; display: flex; justify-content: space-around; gap: 12px; position: relative; background: repeating-linear-gradient(to top, transparent 0, transparent calc(25% - 1px), #e9eee6 calc(25% - 1px), #e9eee6 25%); margin-bottom: 26px; border-bottom: 1px solid #d9e0d4; }
.bar-column { flex: 1; min-width: 0; max-width: 62px; display: flex; align-items: flex-end; justify-content: center; position: relative; outline-offset: 3px; }
.plot.is-dense { gap: 2px; }
.plot.is-dense .bar-stack { width: 72%; min-width: 1px; }
.bar-stack { width: 54%; max-width: 34px; min-width: 4px; background: var(--green); border-radius: 3px 3px 0 0; display: flex; align-items: flex-start; flex-direction: column-reverse; overflow: hidden; transition: height .35s ease; }
.bar-scam { background: var(--amber); width: 100%; min-height: 0; }
.bar-label { position: absolute; bottom: -25px; font-size: 9px; color: var(--muted); white-space: nowrap; }
.bar-tooltip { opacity: 0; pointer-events: none; position: absolute; bottom: 60%; left: 50%; transform: translateX(-50%); background: var(--ink); color: white; padding: 9px 11px; border-radius: 4px; white-space: nowrap; font-size: 10px; z-index: 5; box-shadow: 0 4px 20px #152e2420; }
.bar-column:hover .bar-tooltip, .bar-column:focus .bar-tooltip { opacity: 1; }
.bar-column:hover .bar-stack, .bar-column:focus .bar-stack { filter: brightness(1.1); }
.chart-footer { margin-top: 12px; border-top: 1px solid #eef1ec; padding-top: 11px; display: flex; justify-content: space-between; gap: 12px; font-size: 9px; color: var(--muted); }
.distribution-stack { display: flex; height: 8px; overflow: hidden; border-radius: 2px; margin: 22px 0 17px; }
.distribution-stack span { min-width: 0; }
.outcome-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; font-size: 11px; padding: 6px 0; }
.outcome-row > span:first-child { display: flex; align-items: center; gap: 7px; }
.outcome-row i { width: 5px; height: 5px; border-radius: 1px; }
.outcome-row strong { font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.outcome-row .percentage { color: var(--muted); width: 38px; text-align: right; font-size: 10px; }
.panel-footnote { font-size: 10px; color: var(--muted); border-top: 1px solid #edf0e9; padding-top: 12px; margin-top: 14px; line-height: 1.9; }
.count-label { color: var(--muted); font-size: 11px; font-weight: 400; margin-left: 9px; }
.quiet-label { font-size: 10px; color: var(--muted); white-space: nowrap; }
.records-panel { padding-bottom: 0; }
.records-toolbar { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; font-size: 10px; color: var(--muted); }
.table-scroll { position: relative; overflow-x: auto; margin: 0 -23px; padding: 0 23px; }
table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
th { background: #f7f9f4; color: var(--muted); font-size: 10px; padding: 11px 12px; font-weight: 500; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
th span { margin-left: 4px; font-size: 8px; font-weight: 400; }
td { font-size: 11px; padding: 12px; border-bottom: 1px solid #edf0e9; font-variant-numeric: tabular-nums; }
th:first-child, td:first-child { padding-left: 0; }
th:last-child, td:last-child { padding-right: 0; }
tbody tr:hover { background: #f8faf6; }
.time-cell { color: var(--muted); font-size: 10px; }
.partner-cell strong { display: block; font-weight: 500; }
.channel-name { color: var(--muted); font-size: 9px; }
.pill { display: inline-block; font-size: 10px; padding: 3px 7px; border-radius: 3px; background: #eff2ec; color: #556252; }
.pill.scam { background: #fcf0e0; color: #935524; }
.pill.safe { background: #eaf3eb; color: #3d684a; }
.pill.undetermined, .pill.not_checkable { background: #f1f0e8; color: #746737; }
.pill.dependency_error, .pill.timeout { background: #faece6; color: #994b32; }
.delivery-status { color: var(--muted); font-size: 10px; }
.delivery-status.is-unknown { color: #8a6328; }
.numeric { text-align: right; }
.duration-unit { color: var(--muted); font-size: 9px; margin-left: 3px; }
.correlation { font-size: 10px; color: var(--muted); letter-spacing: .1px; }
.detail-button { border: 0; border-radius: 4px; background: transparent; width: 31px; height: 31px; font-size: 17px; color: var(--green); }
.detail-button:hover { background: var(--green-soft); }
.pagination { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; color: var(--muted); font-size: 10px; gap: 12px; }
.pagination > div { display: flex; align-items: center; gap: 7px; }
.pagination #page-label { margin-right: 9px; }
.pagination button { width: 29px; height: 29px; border: 1px solid var(--rule); border-radius: 4px; background: white; }
.pagination button:hover:enabled { border-color: var(--green); color: var(--green); }
.records-empty { padding: 35px 16px; text-align: center; color: var(--muted); font-size: 12px; line-height: 2; }
.empty-chart { min-height: 195px; display: grid; place-content: center; text-align: center; color: var(--muted); font-size: 12px; line-height: 2; }
.empty-chart strong { font-weight: 500; color: var(--ink); }
.support-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; }
.progress-steps { display: flex; align-items: center; margin-top: 24px; gap: 13px; }
.progress-step { flex: 1; }
.progress-step .step-label { color: var(--muted); font-size: 10px; }
.progress-step strong { display: block; font-size: 20px; font-weight: 500; margin-top: 5px; letter-spacing: -.5px; }
.progress-step small { color: var(--muted); font-size: 9px; }
.step-arrow { color: #b6c3b3; font-size: 20px; }
.progress-note { font-size: 10px; color: var(--muted); margin-top: 16px; line-height: 1.9; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 4px; }
.delivery-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin-top: 26px; }
.delivery-grid strong { font-size: 19px; font-weight: 500; letter-spacing: -.5px; display: block; }
.delivery-grid span { display: block; font-size: 9px; color: var(--muted); margin-top: 4px; }
.page-footer { padding: 24px 0; display: flex; justify-content: space-between; gap: 12px; font-size: 9px; color: var(--muted); }
.page-footer strong { font-size: 12px; font-weight: 500; letter-spacing: -.4px; margin-right: 5px; }
.unavailable { text-align: center; border: 1px solid var(--rule); border-radius: 7px; padding: 70px 20px; background: white; }
.empty-symbol { margin: 0 auto 20px; width: 42px; height: 42px; border-radius: 50%; background: var(--amber-soft); color: var(--amber); display: grid; place-items: center; font-size: 22px; }
.unavailable h2 { font-size: 24px; margin: 12px 0; }
.unavailable > p:not(.eyebrow) { font-size: 13px; color: var(--muted); line-height: 1.9; }
.unavailable .button { margin: 24px 0 12px; }
.unavailable small { display: block; color: var(--muted); font-size: 10px; }
dialog { width: min(560px, calc(100% - 32px)); max-height: calc(100vh - 48px); border: 1px solid var(--rule); border-radius: 10px; padding: 25px 28px; color: var(--ink); background: var(--surface); box-shadow: 0 30px 100px #162c2933; }
dialog::backdrop { background: #10251f88; backdrop-filter: blur(3px); }
.dialog-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 17px; }
.dialog-header .eyebrow { margin: 0; }
.dialog-header button { width: 32px; height: 32px; background: #f0f3ed; border: 0; border-radius: 4px; font-size: 22px; }
dialog h2 { font-size: 25px; }
.detail-id { padding: 12px; background: #f5f7f1; border-radius: 4px; word-break: break-all; font-size: 11px; margin: 17px 0; }
.detail-id span { display: block; color: var(--muted); font-size: 9px; margin-bottom: 6px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0; }
.detail-grid dt { font-size: 10px; color: var(--muted); }
.detail-grid dd { font-size: 12px; margin: 6px 0 0; }
.detail-note { padding: 12px; background: var(--amber-soft); color: #80552f; border-radius: 4px; font-size: 11px; line-height: 1.8; }
.dialog-footer { display: flex; gap: 12px; align-items: center; border-top: 1px solid var(--rule); padding-top: 20px; margin-top: 22px; }
#copy-status { color: var(--muted); font-size: 11px; }
body[data-layout="focus"] .app-shell { display: block; }
body[data-layout="focus"] .sidebar { position: static; height: auto; padding: 16px 38px; display: flex; flex-direction: row; align-items: center; gap: 45px; }
body[data-layout="focus"] .brand { font-size: 20px; padding: 0; }
body[data-layout="focus"] .brand-sub { display: none; }
body[data-layout="focus"] .nav-group { margin: 0; }
body[data-layout="focus"] .nav-label, body[data-layout="focus"] .sidebar-bottom { display: none; }
body[data-layout="focus"] .nav-group nav { display: flex; gap: 12px; }
body[data-layout="focus"] .nav-link { padding: 7px 14px; margin: 0; }
body[data-layout="focus"] main { max-width: 1600px; }
body[data-layout="focus"] .workspace { display: grid; grid-template-columns: minmax(0,1fr) 335px; align-items: start; }
body[data-layout="focus"] .freshness { grid-column: 1 / -1; }
body[data-layout="focus"] .metrics { grid-column: 1 / -1; }
body[data-layout="focus"] .records-panel { grid-column: 1; grid-row: 3; }
body[data-layout="focus"] .analytics { grid-column: 2; grid-row: 3; display: grid; grid-template-columns: 1fr; }
body[data-layout="focus"] .support-grid { grid-column: 1 / -1; }
body[data-layout="focus"] .legend { display: none; }
body[data-layout="focus"] .trend-panel { padding: 20px; }
body[data-layout="focus"] .records-toolbar span:last-child { display: none; }
body[data-layout="analysis"] .app-shell { grid-template-columns: 185px minmax(0,1fr); }
body[data-layout="analysis"] .sidebar { background: #eff2eb; color: var(--ink); border-right: 1px solid var(--rule); }
body[data-layout="analysis"] .brand { font-size: 20px; gap: 8px; }
body[data-layout="analysis"] .brand-mark { width: 22px; height: 22px; }
body[data-layout="analysis"] .brand-mark i { background: var(--green); }
body[data-layout="analysis"] .brand-sub, body[data-layout="analysis"] .nav-label, body[data-layout="analysis"] .nav-link, body[data-layout="analysis"] .sidebar-bottom * { color: var(--muted); }
body[data-layout="analysis"] .nav-link.active { background: #dde6d8; color: var(--ink); }
body[data-layout="analysis"] .read-only { border-color: var(--rule); }
body[data-layout="analysis"] .workspace { display: grid; grid-template-columns: 225px minmax(0,1fr); align-items: start; }
body[data-layout="analysis"] .freshness { grid-column: 1 / -1; }
body[data-layout="analysis"] .metrics { grid-column: 1; grid-row: 2; display: flex; flex-direction: column; padding: 0 20px; background: var(--green-soft); border: 1px solid #dce7d8; border-radius: 7px; }
body[data-layout="analysis"] .metric { padding: 19px 0; border: 0; border-bottom: 1px solid #d5e1d1; }
body[data-layout="analysis"] .metric:last-child { border: 0; }
body[data-layout="analysis"] .metric-number { font-size: 34px; }
body[data-layout="analysis"] .analytics { grid-column: 2; grid-row: 2; grid-template-columns: 1fr; }
body[data-layout="analysis"] .outcome-row { padding: 4px 0; }
body[data-layout="analysis"] .records-panel, body[data-layout="analysis"] .support-grid { grid-column: 1 / -1; }
@media (min-width: 1650px) { main { padding-left: 52px; padding-right: 52px; } .panel { padding: 26px 28px; } }
@media (max-width: 1220px) {
  .app-shell { grid-template-columns: 184px minmax(0,1fr); }
  .sidebar { padding-left: 13px; padding-right: 13px; }
  .brand { font-size: 19px; gap: 9px; }
  main { padding-left: 25px; padding-right: 25px; }
  .preview-note { display: none; }
  .analytics { grid-template-columns: minmax(0,1.5fr) minmax(245px,1fr); }
  .legend { gap: 6px; max-width: 110px; }
  .filter-bar { gap: 12px; }
  .filter-actions { margin-left: auto; }
  .metric { padding-left: 16px; padding-right: 16px; }
  .metric-description { min-height: 32px; }
  body[data-layout="focus"] .workspace { grid-template-columns: minmax(0,1fr) 295px; }
  .support-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  .app-shell, body[data-layout="analysis"] .app-shell { grid-template-columns: 1fr; }
  .sidebar, body[data-layout="focus"] .sidebar { position: static; height: auto; padding: 18px 24px; display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 18px; }
  .brand-sub, .nav-label, .sidebar-bottom { display: none; }
  .nav-group { margin: 0; }
  .nav-group nav { display: flex; gap: 8px; }
  .nav-link { margin: 0; padding: 8px 12px; }
  .nav-number, .nav-arrow { display: none; }
  main { padding: 23px 24px 0; }
  .analytics { grid-template-columns: minmax(0,1.6fr) minmax(240px,1fr); }
  body[data-layout="focus"] .workspace, body[data-layout="analysis"] .workspace { display: flex; flex-direction: column; align-items: stretch; }
  body[data-layout="focus"] .analytics { grid-template-columns: 1fr 1fr; }
  body[data-layout="focus"] .records-panel { order: 2; }
  body[data-layout="focus"] .analytics { order: 3; }
  body[data-layout="focus"] .support-grid { order: 4; }
  body[data-layout="analysis"] .metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); padding: 18px; }
  body[data-layout="analysis"] .metric { border: 0; padding: 0 12px; }
  body[data-layout="analysis"] .analytics { grid-template-columns: 1.5fr 1fr; }
}
@media (max-width: 700px) {
  html { scroll-padding-top: 155px; }
  .preview-bar { padding: 9px 16px; align-items: flex-start; flex-direction: column; gap: 8px; }
  .preview-bar > span { font-size: 10px; }
  .preview-note { display: inline; font-size: 9px; }
  .design-controls { width: 100%; justify-content: space-between; gap: 6px; }
  .layout-switch { gap: 0; }
  .layout-switch button { font-size: 10px; padding: 8px; min-height: 44px; }
  .layout-switch button span { display: none; }
  .scenario-label { font-size: 0; gap: 0; }
  .scenario-label select { font-size: 10px; width: 100px; min-height: 44px; padding-right: 10px; }
  .sidebar, body[data-layout="focus"] .sidebar { padding: 15px 16px; gap: 8px; }
  .brand, body[data-layout="focus"] .brand { font-size: 18px; gap: 8px; }
  .brand-mark { width: 21px; height: 21px; gap: 2px; }
  .nav-group nav, body[data-layout="focus"] .nav-group nav { gap: 0; }
  .nav-link, body[data-layout="focus"] .nav-link { padding: 8px; font-size: 10px; min-height: 44px; display: flex; align-items: center; }
  .nav-link:first-child { display: none; }
  main { padding: 20px 16px 0; }
  .page-heading { margin: 28px 0 22px; align-items: flex-start; }
  h1 { font-size: 27px; }
  .heading-description { font-size: 11px; max-width: 200px; }
  .heading-actions { padding-top: 24px; }
  .heading-actions > span { display: none; }
  .heading-actions .button { font-size: 0; padding: 10px; min-width: 44px; min-height: 44px; }
  .heading-actions .button span { font-size: 20px; }
  .filter-bar { padding: 13px; gap: 12px; }
  .filter-bar > label { width: calc(50% - 6px); min-width: 0; flex: auto; }
  .date-filter { flex-basis: 100%; gap: 5px; }
  .date-filter label { min-width: 0; }
  .filter-bar input, .filter-bar select { min-height: 44px; font-size: 12px; min-width: 0; }
  .date-separator { padding-bottom: 10px; }
  .filter-actions { width: 100%; margin: 0; }
  .filter-actions .button { flex: 1; min-height: 44px; }
  .reset-button { padding: 10px 13px; min-height: 44px; }
  .scope-line { font-size: 9px; margin-bottom: 15px; }
  .freshness { font-size: 10px; gap: 6px; line-height: 1.8; }
  .freshness-secondary { width: 100%; padding-left: 22px; }
  .freshness a { min-height: 44px; display: flex; align-items: center; margin-left: 22px; margin-top: -5px; }
  .workspace { gap: 17px; }
  .metrics, body[data-layout="analysis"] .metrics { grid-template-columns: 1fr 1fr; padding: 0; gap: 0; }
  .metric, body[data-layout="analysis"] .metric { padding: 17px 12px; border: 0; }
  .metric:nth-child(odd) { padding-left: 0; border-right: 1px solid var(--rule); }
  .metric:nth-child(even) { padding-left: 19px; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
  body[data-layout="analysis"] .metric:nth-child(odd) { padding-left: 15px; }
  .metric-label { font-size: 11px; gap: 5px; }
  .metric-index { font-size: 8px; }
  .metric-number, body[data-layout="analysis"] .metric-number { font-size: 34px; }
  .metric-description { min-height: 0; font-size: 9px; }
  .definition summary { width: 44px; height: 44px; border: 0; background: radial-gradient(circle, transparent 10px, #a9b3a9 10px, #a9b3a9 11px, transparent 11px); }
  .definition p { right: -80px; width: 195px; }
  .analytics, body[data-layout="analysis"] .analytics, body[data-layout="focus"] .analytics, .support-grid { grid-template-columns: 1fr; }
  .panel { padding: 19px 17px; }
  h2 { font-size: 17px; }
  .section-heading { gap: 8px; }
  .legend { max-width: 100px; font-size: 8px; }
  .trend-chart { margin-top: 18px; }
  .plot { gap: 7px; }
  .bar-tooltip { left: auto; right: 0; transform: none; }
  .chart-footer { font-size: 8px; }
  .distribution-stack { margin-top: 20px; }
  .outcome-row { padding: 7px 0; }
  .records-toolbar { font-size: 9px; }
  .records-toolbar span:last-child { display: none; }
  .records-panel { padding-bottom: 0; }
  .table-scroll { margin: 0 -17px; padding: 0 17px; }
  .quiet-label { font-size: 9px; }
  .count-label { font-size: 10px; margin-left: 4px; }
  .detail-button, .pagination button { min-height: 44px; min-width: 44px; }
  .pagination { font-size: 9px; }
  .pagination #page-label { margin-right: 0; }
  .pagination > div { gap: 3px; }
  .delivery-grid { margin-top: 20px; }
  .page-footer { flex-direction: column; padding: 22px 0; gap: 8px; }
  dialog { padding: 20px; }
  .dialog-header button { width: 44px; height: 44px; }
  .dialog-footer .button { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

/* 共用品牌層：依 2026-10-26 trendlife.com 的實際視覺調整。 */
:root {
  --paper: #fcfaf8;
  --surface: #fff;
  --ink: #222;
  --muted: #656367;
  --rule: #e9e4e1;
  --green: #087e8c;
  --green-soft: #edf6f6;
  --amber: #b80006;
  --amber-soft: #fff6ed;
  --brand: #c52c30;
  --brand-dark: #a91c23;
  --brand-soft: #fff0ef;
  --font: "Geist", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --brand-ribbon: linear-gradient(120deg, #ce343a, #ce839e 54%, #a59bc6);
}
:focus-visible { outline-color: var(--brand); }
.preview-bar { background: #f6f2f0; border-color: var(--rule); }
.preview-page-link { padding: 4px 0; margin-left: 8px; border-bottom: 1px solid #c8b9b8; }
.preview-page-link:hover { color: var(--brand); border-color: var(--brand); }
.layout-switch button[aria-pressed="true"] { background: var(--brand); }
.layout-switch button:hover:not([aria-pressed="true"]) { background: #eee5e2; }
.scenario-label select { border-color: #d5ccca; }
.sidebar { background: white; color: var(--ink); border-right: 1px solid var(--rule); }
.brand, body[data-layout="focus"] .brand, body[data-layout="analysis"] .brand { display: block; padding: 0 7px; line-height: 1; }
.brand-logo { display: block; width: 154px; max-width: 100%; height: auto; }
.brand-sub { color: #4b494d; font-size: 9px; letter-spacing: 1px; padding-top: 16px; font-weight: 600; }
.brand-sub > span { color: #989095; font-weight: 400; font-size: 8px; margin-left: 2px; }
.nav-group { margin-top: 43px; }
.nav-label { color: #898287; }
.nav-link { color: #666068; border-radius: 25px; }
.nav-link:hover { background: #fbf4f2; color: var(--brand); }
.nav-link.active { background: var(--brand-soft); color: var(--brand-dark); box-shadow: none; }
.read-only { color: #676168; border-color: var(--rule); }
.read-only p, .account small, .account-note { color: #7a7279; }
.read-only .tiny-dot { background: var(--green); }
.avatar { background: #f9f0ee; color: var(--brand-dark); border-color: #ead9d8; }
.page-heading { position: relative; }
.heading-dot { color: var(--brand); }
.button { border-radius: 24px; }
.primary { background: var(--brand); border-color: var(--brand); }
.primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.secondary { border-color: #dcd4d0; }
.secondary:hover { background: #fff6f4; border-color: var(--brand); }
.reset-button:hover { color: var(--brand); }
.filter-bar { border-radius: 11px; border-color: var(--rule); box-shadow: 0 3px 16px #58202003; }
.filter-bar input, .filter-bar select { border-color: #e1d9d5; border-radius: 6px; }
.filter-bar input:hover, .filter-bar select:hover { border-color: #bc8e8d; }
.freshness { background: #eff6f4; color: #3e625d; border-radius: 7px; }
.freshness .freshness-secondary { color: #52706c; }
.metrics { border-color: #e1d7d2; }
.metric-description strong { color: #3d686b; }
.panel { border-radius: 11px; }
.metric-number.risk-number { color: #b80006; }
.section-index { color: #ddd4d2; }
.plot { border-color: #e4dbd5; background-image: repeating-linear-gradient(to top, transparent 0, transparent calc(25% - 1px), #f0eae5 calc(25% - 1px), #f0eae5 25%); }
th { background: #faf7f5; }
td, .panel-footnote, .chart-footer { border-color: #f0eae5; }
tbody tr:hover { background: #fcf8f6; }
.pill.scam { background: #ffeded; color: #a91c23; }
.pill.safe { background: #edf5f4; color: #366c6c; }
.detail-button { color: var(--brand); }
.detail-button:hover { background: var(--brand-soft); }
.progress-note { border-color: var(--rule); background: #fcfaf8; }
.page-footer strong { color: #4a4248; }
body[data-layout="focus"] .sidebar { border-bottom: 1px solid var(--rule); }
body[data-layout="focus"] .brand-logo { width: 146px; }
body[data-layout="analysis"] .sidebar { background: #fbf5ed; }
body[data-layout="analysis"] .nav-link.active { background: #f6e6e1; color: var(--brand-dark); }
body[data-layout="analysis"] .metrics { background: #fff8f4; border-color: #eaded8; }
body[data-layout="analysis"] .metric { border-color: #eaded8; }
.login-page { background: #fbf5ed; min-height: 100vh; }
.login-page .preview-bar { background: #fffaf5; }
.login-preview-nav { display: flex; align-items: center; gap: 20px; }
.login-preview-nav a { text-decoration: underline; text-underline-offset: 4px; }
.login-scenario-label { font-size: 11px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.login-scenario-label select { min-height: 34px; border: 1px solid #ddd1ca; padding: 5px 9px; background: white; border-radius: 5px; font-size: 11px; }
.login-shell { max-width: 1520px; margin: 0 auto; min-height: calc(100vh - 52px); display: grid; grid-template-columns: 1.08fr 1fr; }
.login-story { padding: 50px 65px 35px; display: flex; flex-direction: column; align-items: flex-start; position: relative; overflow: hidden; }
.login-brand img { width: 190px; height: auto; display: block; }
.login-story-main { position: relative; z-index: 1; padding-top: clamp(65px, 10vh, 125px); width: 100%; }
.login-kicker { display: inline-block; font-size: 10px; letter-spacing: 2.4px; color: #8c7776; padding: 7px 12px; border: 1px solid #e5d5d0; border-radius: 20px; }
.login-story h2 { margin: 25px 0 20px; font-size: clamp(34px, 3.5vw, 51px); letter-spacing: -1.8px; line-height: 1.45; font-weight: 600; }
.login-story h2 span { color: #b80006; }
.login-story-main > p { font-size: 14px; color: #6e6163; line-height: 2; max-width: 365px; }
.login-value-line { display: flex; gap: 0; margin: 34px 0 28px; font-size: 11px; color: #594d51; }
.login-value-line span + span { margin-left: 16px; padding-left: 16px; border-left: 1px solid #d9c8c4; }
.brand-orbit { width: 360px; height: 210px; margin-top: 8px; position: relative; transform: rotate(-22deg); }
.brand-orbit::before, .brand-orbit::after { content: ""; position: absolute; border-radius: 50%; background: var(--brand-ribbon); padding: 3px; mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); mask-composite: exclude; }
.brand-orbit::before { width: 300px; height: 154px; inset: 15px auto auto 0; }
.brand-orbit::after { width: 205px; height: 112px; top: 71px; left: 135px; transform: rotate(-15deg); opacity: .45; }
.login-story-footer { margin-top: auto; padding-top: 20px; color: #8e7e80; font-size: 10px; position: relative; z-index: 1; }
.login-workspace { background: white; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 70px 60px; border-radius: 38px 0 0 38px; position: relative; }
.login-workspace::before { content: ""; position: absolute; top: 0; left: 38px; right: 0; height: 3px; background: var(--brand-ribbon); }
.login-card { width: 100%; max-width: 368px; }
.login-card .eyebrow { color: #b80006; font-size: 10px; letter-spacing: 2px; margin-bottom: 16px; }
.login-card h1 { font-size: 31px; line-height: 1.5; letter-spacing: -1px; font-weight: 600; }
.login-intro { color: var(--muted); font-size: 13px; line-height: 1.9; margin-top: 13px; }
.login-provider-label { margin-top: 35px; font-size: 11px; color: #6e666b; margin-bottom: 9px; }
.google-signin { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 50px; border: 1px solid #747775; border-radius: 25px; padding: 12px; background: #fff; color: #1f1f1f; font-family: "Google Sans", "Geist", "Noto Sans TC", sans-serif; font-size: 14px; font-weight: 500; position: relative; }
.google-signin:hover { background: #f8fafd; box-shadow: 0 1px 4px #20212420; }
.google-signin:active { background: #edf2fc; }
.google-signin img { display: block; width: 20px; height: auto; object-fit: contain; }
.login-provider-note { margin-top: 10px; color: #847a7f; font-size: 10px; text-align: center; }
.login-status { padding: 13px 15px; margin-top: 17px; background: #fff6ec; color: #87512b; font-size: 12px; line-height: 1.8; border-radius: 7px; }
.login-access { margin-top: 27px; padding-top: 21px; border-top: 1px solid var(--rule); display: flex; gap: 12px; }
.access-symbol { margin-top: 3px; width: 22px; height: 22px; border: 1px solid #c8b8b8; color: #9d6c6d; border-radius: 50%; font-size: 11px; display: grid; place-items: center; flex-shrink: 0; }
.login-access strong { display: block; font-size: 12px; font-weight: 500; }
.login-access p { color: #7b7279; font-size: 11px; line-height: 1.9; margin-top: 5px; }
.login-demo { margin-top: 32px; padding: 17px 18px; border-radius: 9px; background: #faf7f5; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.login-demo p { font-size: 10px; color: #80727a; }
.login-demo a { color: var(--brand-dark); font-size: 11px; font-weight: 500; display: inline-flex; align-items: center; gap: 12px; min-height: 24px; }
.login-demo a:hover { text-decoration: underline; text-underline-offset: 4px; }
.login-bottom-note { text-align: center; font-size: 10px; line-height: 1.8; color: #8a7e85; max-width: 368px; margin-top: 30px; }
@media (min-width: 1520px) { .login-shell { border-left: 1px solid #f2e8e0; border-right: 1px solid #f2e8e0; } }
@media (max-width: 1220px) { .brand-logo { width: 137px; } .login-story { padding-left: 40px; padding-right: 35px; } .login-workspace { padding: 60px 40px; } }
@media (max-width: 980px) {
  .brand-sub { display: none; }
  .login-shell { grid-template-columns: .9fr 1fr; }
  .login-story { padding: 38px 30px; }
  .login-story h2 { font-size: 34px; }
  .login-value-line { flex-direction: column; gap: 8px; }
  .login-value-line span + span { margin: 0; padding: 0; border: 0; }
  .brand-orbit { width: 270px; transform: scale(.8) rotate(-22deg); transform-origin: top left; }
  .login-workspace { padding: 50px 30px; }
  .login-card h1 { font-size: 27px; }
}
@media (max-width: 700px) {
  .preview-bar > span { flex-wrap: wrap; gap: 7px; }
  .preview-note { display: none; }
  .preview-page-link { margin-left: 5px; min-height: 32px; display: inline-flex; align-items: center; }
  .brand, body[data-layout="focus"] .brand { padding: 0; }
  .brand-logo, body[data-layout="focus"] .brand-logo, body[data-layout="analysis"] .brand-logo { width: 125px; }
  .sidebar { background: white; }
  .login-page .preview-bar { min-height: 58px; flex-direction: row; align-items: center; }
  .login-page .preview-bar > span { font-size: 10px; }
  .login-preview-nav { gap: 12px; }
  .login-preview-nav > a { display: none; }
  .login-scenario-label { font-size: 0; }
  .login-scenario-label select { font-size: 10px; min-height: 44px; max-width: 140px; }
  .login-shell { display: flex; flex-direction: column; min-height: calc(100vh - 58px); }
  .login-story { padding: 28px 24px 25px; }
  .login-brand img { width: 154px; }
  .login-story-main { padding-top: 26px; }
  .login-kicker { font-size: 8px; padding: 5px 10px; }
  .login-story h2 { font-size: 28px; margin: 14px 0 10px; letter-spacing: -.8px; line-height: 1.4; }
  .login-story h2 br { display: none; }
  .login-story-main > p { font-size: 11px; max-width: 310px; }
  .login-value-line, .brand-orbit, .login-story-footer { display: none; }
  .login-workspace { border-radius: 25px 25px 0 0; padding: 36px 24px 28px; flex: 1; }
  .login-workspace::before { left: 25px; right: 25px; }
  .login-card h1 { font-size: 26px; }
  .login-card .eyebrow { font-size: 9px; margin-bottom: 10px; }
  .login-intro { font-size: 12px; margin-top: 10px; }
  .login-provider-label { margin-top: 26px; }
  .login-demo { margin-top: 24px; padding: 12px 15px; }
  .login-demo a { min-height: 44px; }
  .login-access { margin-top: 23px; }
  .login-bottom-note { margin-top: 22px; font-size: 9px; }
}

/* 產品整合：同源資源、真實資料與漸進增強。 */
.runtime-bar { height: 52px; padding: 0 26px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 11px; background: #fff; border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 30; }
.runtime-divider { padding: 0 12px; color: #bdaeb2; }
.runtime-notice { padding: 12px 15px; margin-bottom: 18px; border: 1px solid #eeddd2; border-radius: 7px; background: #fff8f0; color: #825c43; font-size: 11px; line-height: 1.9; }
.logout-form { margin-top: 13px; }
.logout-form button { min-height: 40px; padding: 6px 15px; border: 1px solid #e5d7d3; border-radius: 22px; background: white; color: #9f3033; font-size: 11px; }
.logout-form button:hover { background: var(--brand-soft); }
.sidebar .account > span:last-child { min-width: 0; }
.account small { overflow-wrap: anywhere; }
.sidebar { overflow-y: auto; }
.sidebar .brand { min-height: 44px; max-width: 100%; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 12px; flex-shrink: 0; }
.sidebar .brand .brand-sub { padding-top: 0; line-height: 1.5; max-width: 100%; white-space: nowrap; }
#filters { display: grid; grid-template-columns: repeat(3, minmax(100px, 1fr)) minmax(270px, 1.8fr) auto; align-items: end; gap: 16px; }
#filters > label { width: auto; min-width: 0; }
#filters .date-filter { display: grid; grid-template-columns: minmax(0, 1fr) 12px minmax(0, 1fr); gap: 8px; min-width: 0; }
#filters .date-filter label { min-width: 0; }
#filters .date-separator { align-self: end; }
#filters .filter-actions { margin: 0; min-width: 0; justify-self: end; }
#filters .filter-error { grid-column: 1 / -1; }
.heading-actions .button { font-size: 12px; }
.runtime-outcomes, .runtime-delivery { margin-top: 20px; }
.outcome-row { grid-template-columns: minmax(0, 1fr) auto auto; }
.outcome-row .percentage { width: auto; max-width: 90px; font-size: 8px; overflow-wrap: anywhere; }
.trend-svg { width: 100%; height: 215px; display: block; margin-top: 10px; overflow: visible; }
.chart-baseline { stroke: #e4dbd5; }
.traffic-bar { fill: #087e8c; }
.scam-bar { fill: #b80006; }
.chart-date { fill: #656367; font: 17px var(--font); }
.record-detail { position: relative; }
.record-detail > summary { display: grid; place-items: center; list-style: none; cursor: pointer; }
.record-detail > summary::-webkit-details-marker { display: none; }
.record-detail[open] > .detail-content { padding: 16px; max-width: 380px; white-space: normal; }
.detail-content { white-space: normal; }
.detail-grid dd { overflow-wrap: anywhere; }
.detail-reasons { grid-column: 1 / -1; }
.login-workspace .google-signin small { display: block; font-size: 10px; font-weight: 400; margin-top: 3px; color: #777; }
.google-signin { text-decoration: none; }
.login-brand { display: inline-flex; align-items: center; min-height: 44px; }
.login-page .login-shell { min-height: calc(100vh - 52px); }
@media (max-width: 1199px) {
  #filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #filters .date-filter { grid-column: 1 / 3; }
  #filters .filter-actions { grid-column: 3; }
}
@media (max-width: 980px) {
  .sidebar { overflow: visible; }
  .sidebar .brand .brand-sub { display: none; }
  .sidebar .nav-group { margin: 0; }
  .sidebar-bottom { display: flex; align-items: center; padding: 0; margin: 0; gap: 10px; }
  .sidebar-bottom .read-only, .sidebar-bottom .account { display: none; }
  .logout-form { margin: 0; }
  .sidebar { flex-wrap: wrap; }
}
@media (max-width: 700px) {
  .runtime-bar { padding: 0 16px; font-size: 9px; }
  .runtime-divider { padding: 0 6px; }
  .runtime-bar .utc-tag { display: none; }
  .sidebar { gap: 7px; }
  .sidebar .brand { min-height: 44px; }
  .sidebar .nav-group { margin-left: auto; }
  .sidebar .sidebar-bottom { width: 100%; justify-content: flex-end; }
  .sidebar-bottom .account { display: flex; margin: 0 auto 0 0; font-size: 10px; }
  .sidebar-bottom .account .avatar { display: none; }
  .logout-form button { min-height: 44px; }
  .filter-bar > label { flex-basis: calc(50% - 6px); }
  .filter-bar > label:last-of-type { flex-basis: 100%; }
  #filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  #filters > label:last-of-type, #filters .date-filter, #filters .filter-actions { grid-column: 1 / -1; }
  #filters .filter-actions { justify-self: stretch; width: 100%; }
  #filters .filter-actions .primary { min-width: 0; flex: 1; }
  .metric-label { min-height: 44px; }
  .filter-actions .reset-button { display: flex; align-items: center; }
  .heading-actions .button { font-size: 0; min-width: 44px; min-height: 44px; }
  .trend-svg { height: 185px; }
  .chart-date { font-size: 22px; }
  .definition p { right: -80px; width: 195px; }
  .pagination .button { padding: 8px 12px; min-height: 44px; font-size: 10px; }
  .detail-button { min-width: 44px; min-height: 44px; }
}
@font-face { font-family: "Geist"; font-style: normal; font-weight: 400; font-display: swap; src: url("/ops/assets/geist-400.ttf") format("truetype"); }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 500; font-display: swap; src: url("/ops/assets/geist-500.ttf") format("truetype"); }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 600; font-display: swap; src: url("/ops/assets/geist-600.ttf") format("truetype"); }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 700; font-display: swap; src: url("/ops/assets/geist-700.ttf") format("truetype"); }
.fixture-form { display: grid; gap: 12px; margin-top: 28px; }
.fixture-form .button { width: 100%; min-height: 48px; font-size: 12px; }
@media (max-width: 360px) {
  .sidebar .brand-logo { width: min(125px, calc(100vw - 230px)); }
}
