.report-ui, .report-ui *, .report-ui *::before, .report-ui *::after { box-sizing: border-box; }
body.report-ui {
  --tint: color-mix(in srgb,var(--plate-mid) 52%,var(--sheet));
  --hair: color-mix(in srgb,var(--rule) 78%,var(--sheet));
  --signal: #245d52;
  margin: 0; min-height: 100vh; background: var(--canvas); color: var(--ink); font: 500 15px/1.5 var(--cn);
}
[data-theme="night"] body.report-ui { --signal: #a4d6c5; }
.report-ui :is(h1,h2,h3,p,figure,fieldset) { margin: 0; }
.report-ui a { color: inherit; text-decoration: none; }
.report-ui :is(input,select,button) { font: inherit; color: inherit; }
.report-ui button, .report-ui summary { cursor: pointer; }
.report-ui :is(a,button,summary,input,select):focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.report-ui [hidden] { display: none !important; }
.report-ui .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.report-ui .skip:focus { position: fixed; top: 8px; left: 8px; padding: 8px 13px; z-index: 20; background: var(--sheet); }
.report-ui header .mast-pull {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%); z-index: 2;
  width: 48px; height: 27px; border: 0; background: transparent; pointer-events: auto; touch-action: none; cursor: grab;
}
.report-ui .mast-pull::before { content: ""; position: absolute; inset: 0 3px auto; height: 14px; background: var(--sheet); border: 1px solid var(--rule); border-top: 0; border-radius: 0 0 8px 8px; }
.report-ui .mast-pull::after { content: ""; position: absolute; width: 6px; height: 6px; top: 3px; left: 21px; border: solid var(--secondary); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.report-ui .inner-main, .report-ui footer {
  width: min(var(--shell-width),calc(100% - 2 * var(--gutter))); margin: 0 auto;
}
.report-ui .inner-main { padding-top: clamp(12px,1.7vw,25px); }
.report-ui footer { padding: 24px 0 30px; font-size: 14px; color: var(--secondary); }
body.report-ui .report-heading {
  position: relative; z-index: 2; display: grid; align-items: center; grid-template-columns: 1fr auto auto;
  grid-template-areas: "title back tools"; gap: 15px; margin-bottom: clamp(13px,1.6vw,22px);
  border: 0; border-radius: 0; background: transparent;
}
.report-heading h1 { grid-area: title; margin: 0; color: var(--title-ink); font: 690 clamp(26px,2.75vw,38px)/1.15 var(--cn); letter-spacing: -.055em; }
.report-heading > .trail {
  grid-area: back; justify-self: start; min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  color: var(--secondary); white-space: nowrap; font-size: 13px; border-radius: 5px;
}
.report-heading > .trail::before { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 0 1.5px 1.5px; transform: rotate(45deg); }
.report-heading > .trail:hover { color: var(--ink); }
.report-icon { width: 17px; height: 17px; flex: none; display: inline-block; vertical-align: middle; }
.tool-chooser { grid-area: tools; justify-self: end; }
.tool-chooser summary, .more-filters {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap;
  min-height: 40px; padding: 0 12px; border: 1px solid var(--paper-edge); border-radius: 8px;
  background: var(--sheet); color: var(--ink); font: 600 13px/1 var(--cn); touch-action: manipulation;
}
.tool-chooser summary { list-style: none; }
.tool-chooser summary::-webkit-details-marker { display: none; }
.tool-chooser summary .report-icon:last-child,.more-filters .report-icon:last-child { width: 13px; height: 13px; color: var(--secondary); }
.tool-chooser[open] summary .report-icon:last-child,.more-filters[aria-expanded="true"] .report-icon:last-child { transform: rotate(180deg); }
.tool-menu {
  position: absolute; top: calc(100% + 7px); right: 0; z-index: 4; display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px 17px; width: min(430px,100%); padding: 16px;
  background: var(--sheet); border: 1px solid var(--paper-edge); box-shadow: 0 8px 28px #13212822; border-radius: 12px;
}
.tool-menu section { min-width: 0; }
.tool-menu h2 { color: var(--secondary); font: 600 12px/1.4 var(--cn); padding: 0 5px 5px; border-bottom: 1px solid var(--hair); }
.tool-menu a { display: flex; align-items: center; justify-content: space-between; gap: 4px; padding: 5px; min-height: 37px; font-size: 14px; border-radius: 4px; }
.tool-menu a .report-icon { width: 11px; height: 11px; color: var(--secondary); }
.tool-menu a:is([aria-current],:hover,:focus-visible) { color: var(--sum); background: var(--quiet); }
#stats { overflow: visible; min-width: 0; background: var(--sheet); border: 1px solid var(--paper-edge); border-radius: 14px; box-shadow: var(--skin-shadow); }
.filter-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 14px; padding: 13px clamp(12px,1.75vw,26px); border-bottom: 1px solid var(--rule); }
.fast-ranges { display: inline-flex; align-items: stretch; padding: 3px; gap: 2px; border-radius: 9px; background: var(--quiet); }
.fast-ranges a { display: grid; place-items: center; min-width: 67px; min-height: 34px; padding: 0 9px; color: var(--secondary); border-radius: 6px; font-size: 13px; white-space: nowrap; }
.fast-ranges a[aria-current] { background: #263e40; color: #fff; font-weight: 650; box-shadow: inset 0 1px 0 #ffffff23; }
[data-theme="night"] .fast-ranges a[aria-current] { background: #d4e7e1; color: #152d2b; }
.fast-ranges a:not([aria-current]):hover { color: var(--ink); }
.report-ui .more-filters { border-color: transparent; background: transparent; font-size: 13px; }
.more-filters:is([data-active="true"],[aria-expanded="true"],:hover) { color: var(--sum); background: var(--quiet); }
.search-control { display: flex; align-items: center; gap: 8px; margin-left: auto; width: min(256px,100%); min-height: 40px; padding: 0 11px; border: 1px solid var(--paper-edge); border-radius: 8px; background: var(--sheet); color: var(--secondary); }
.search-control input { width: 100%; min-width: 0; border: 0; padding: 6px 0; outline: 0 !important; font-size: 14px; background: transparent; color: var(--ink); }
.search-control input::placeholder { color: var(--secondary); opacity: 1; }
.search-control:focus-within { outline: 2px solid var(--focus); outline-offset: 1px; }
.advanced-filters { padding: 13px clamp(12px,1.75vw,26px); border-bottom: 1px solid var(--rule); background: var(--tint); }
.advanced-fields { display: flex; flex-wrap: wrap; align-items: end; gap: 10px 16px; }
.advanced-fields > label { display: grid; gap: 5px; font-size: 13px; color: var(--secondary); }
.advanced-fields :is(input,select) { max-width: 100%; min-width: 0; min-height: 39px; border: 1px solid var(--paper-edge); border-radius: 6px; padding: 4px 8px; background: var(--sheet); color: var(--ink); }
.advanced-fields fieldset { display: flex; align-items: center; gap: 6px; padding: 0; border: 0; min-width: 0; }
.advanced-fields legend { font-size: 13px; color: var(--secondary); padding: 0 0 5px; }
.apply-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.apply-line p,.method-note { color: var(--secondary); font-size: 12px; }
.apply-line button,.jump-form button { border: 1px solid var(--paper-edge); border-radius: 6px; padding: 5px 12px; background: var(--sheet); font-size: 13px; min-height: 35px; }
.apply-line button { background: var(--ink); color: var(--sheet); border-color: var(--ink); }
#feedback:not(:empty) { margin-top: 8px; font-size: 13px; color: var(--maple); }
#report { min-width: 0; scroll-margin-block-start: 95px; }
#report:focus { outline: 0; }
.result-summary {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 5px 12px; min-height: 48px;
  padding: 8px clamp(12px,1.75vw,26px); color: var(--secondary); font-size: 13px;
}
.scope-dates { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 5px 8px; color: var(--ink); font: 600 17px/1.2 var(--numerals); font-variant-numeric: tabular-nums; }
.scope-dates .report-icon { width: 15px; height: 15px; color: var(--secondary); }
.scope-hours { color: var(--secondary); font: 520 12px/1.2 var(--cn); }
.sample-total b { font: 600 17px/1 var(--numerals); color: var(--ink); }
.metric-filter { padding: 0 clamp(12px,1.75vw,26px) 10px; }
.metric-filter a { display: inline-flex; align-items: center; gap: 8px; padding: 3px 9px; border: 1px solid var(--paper-edge); border-radius: 5px; color: var(--sum); font-size: 13px; }
.report-ui table { width: 100%; margin: 0; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-variant-numeric: tabular-nums; }
.report-ui table :is(th,td) { padding: 7px 5px; text-align: center; font-weight: 500; vertical-align: middle; }
.report-ui table thead th { height: 35px; background: var(--tint); border-block: 1px solid var(--rule); font-size: 12px; font-weight: 600; color: var(--secondary); }
.report-ui table tbody tr:not(.date-band) > * { border-bottom: 1px solid var(--hair); }
.report-ui table tr:not(.date-band) > :first-child { text-align: left; padding-inline-start: clamp(12px,1.75vw,26px); }
.report-ui table tr:last-child > * { border-bottom-color: var(--rule); }
.records-ledger .period-col { width: 24%; }
.records-ledger .clock-cell { width: 17%; }
.records-ledger .ball-col { width: 21%; }
.records-ledger .sum-col { width: 10%; }
.records-ledger .marks-col { width: 13%; }
.records-ledger .check-cell { width: 12%; }
.report-ui table .arrow-cell { width: 27px; padding: 0 7px 0 0; color: var(--secondary); }
.arrow-cell .report-icon { width: 12px; height: 12px; }
.records-ledger .date-band th { padding: 4px clamp(12px,1.75vw,26px); height: 28px; color: var(--secondary); background: color-mix(in srgb,var(--quiet) 42%,var(--sheet)); text-align: left; font: 600 15px/1.25 var(--numerals); letter-spacing: .045em; }
.records-ledger .ledger-row { height: 49px; }
.records-ledger .compact-band { display: none; }
.ledger-row, .matrix-row, .measure-table tbody tr { position: relative; }
:is(.ledger-row,.matrix-row,.measure-table tbody tr):is(:hover,:focus-within) { background: var(--tint); }
.row-hit { position: static; color: var(--ink); }
.row-hit::after { content: ""; position: absolute; z-index: 1; inset: 0; }
.report-ui .row-hit:focus-visible { outline: 0; }
.row-hit:focus-visible::after { outline: 2px solid var(--focus); outline-offset: -2px; border-radius: 3px; }
.period-id { display: inline-flex; align-items: baseline; white-space: nowrap; font-variant-numeric: tabular-nums; }
.issue-major { color: var(--secondary); font: 600 20px/1 var(--numerals); }
.issue-tail { color: #142025; font: italic 700 24px/1 var(--numerals); }
[data-theme="night"] .issue-tail { margin-left: .05em; padding: .015em .1em .04em .04em; color: #172327; background: #dce7e4; border-radius: .13em; }
.clock-cell time { color: var(--secondary); font: 600 17px/1 var(--numerals); }
.records-ledger .recent-balls { display: inline-flex; align-items: center; gap: 5px; }
.records-ledger .recent-balls i { width: 27px; font-size: 18px; }
.records-ledger .sum-cell { color: var(--sum); font: 600 24px/1 var(--numerals); }
.result-marks { display: inline-flex; align-items: center; gap: 4px; vertical-align: middle; }
.result-marks [data-value] { display: inline-grid; place-items: center; height: 1.46em; width: 1.46em; border-radius: .27em; color: #fff; font: 680 15px/1 "Noto Marks",var(--cn); box-shadow: inset 0 1px 0 #fff3,inset 0 -1px 0 #11273a30; }
.result-marks [data-value="大"] { background: #b83242; }
.result-marks [data-value="小"] { background: #355fa8; }
.result-marks [data-value="单"] { background: #6945a0; }
.result-marks [data-value="双"] { background: #246c50; }
.check-state { display: inline-flex; align-items: center; gap: 5px; color: var(--signal); font: 550 12px/1.4 var(--cn); white-space: nowrap; }
.check-state::before { content: ""; flex: none; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.check-state.pending { color: #885312; }
[data-theme="night"] .check-state.pending { color: #f8c87f; }
.compact-time,.compact-check,.compact-meta { display: none; }
.page-controls { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px clamp(12px,1.75vw,26px); }
.page-step,.plain-link,.detail-list-link { display: inline-flex; align-items: center; gap: 5px; min-height: 38px; color: var(--sum); font-size: 13px; }
.page-step .report-icon,.plain-link .report-icon { width: 12px; height: 12px; }
.page-step.disabled { color: var(--secondary); opacity: .62; }
.page-step:not(.disabled):hover,.plain-link:hover,.detail-list-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.jump-form,.jump-form label { display: inline-flex; align-items: center; gap: 6px; font: 500 13px/1.3 var(--cn); color: var(--secondary); white-space: nowrap; }
.jump-form input { width: 3.7em; min-height: 36px; padding: 2px 3px; border: 1px solid var(--paper-edge); border-radius: 5px; background: var(--sheet); text-align: center; color: var(--ink); font: 600 17px/1 var(--numerals); appearance: textfield; }
.jump-form input::-webkit-inner-spin-button { appearance: none; }
.jump-form button { color: var(--ink); }
.trend-plot { padding: 6px clamp(12px,1.75vw,26px) 16px; }
.trend-plot figcaption { display: flex; align-items: baseline; justify-content: space-between; padding: 5px 0; }
.trend-plot figcaption strong,.measure-block h2 { font: 650 16px/1.4 var(--cn); color: var(--ink); }
.trend-plot figcaption span { font-size: 12px; color: var(--secondary); }
.plot-columns { display: grid; grid-template-columns: repeat(20,minmax(0,1fr)); gap: 0; }
.plot-point { display: flex; flex-direction: column; justify-content: end; align-items: center; gap: 2px; height: 107px; border-bottom: 1px solid var(--rule); border-radius: 3px; color: var(--sum); }
.plot-point:is(:focus-visible,:hover) { background: var(--quiet); }
.plot-score { font: 600 16px/1 var(--numerals); }
.plot-point i { display: block; width: min(46%,23px); height: max(1px,var(--plot-h)); background: color-mix(in srgb,var(--sum) 58%,var(--plate-mid)); border-radius: 3px 3px 0 0; }
.plot-point:last-child i { background: var(--sum); }
.plot-period { font: 600 12px/1.4 var(--numerals); color: var(--secondary); padding: 2px 0; }
.matrix-families,.omit-groups { display: flex; flex-wrap: wrap; gap: 4px; padding: 2px clamp(12px,1.75vw,26px) 12px; }
.matrix-families { display: none; }
.matrix-families a,.omit-groups a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 10px; font-size: 13px; color: var(--secondary); border-radius: 5px; }
.matrix-families a[aria-current],.omit-groups a[aria-current] { color: var(--sum); background: var(--quiet); font-weight: 650; }
.calendar-matrix { font: 600 16px/1.3 var(--numerals),var(--cn); }
.calendar-matrix thead th { font-family: var(--cn); }
.calendar-matrix tr > :first-child { width: 17%; }
.calendar-matrix tr > .matrix-info { width: 8%; }
.calendar-matrix tbody .matrix-info { color: var(--secondary); font-size: 14px; }
.calendar-matrix tbody tr { height: 48px; }
.matrix-date { font: 600 17px/1.1 var(--numerals); white-space: nowrap; }
.measure-sections { padding-bottom: 13px; }
.measure-sections.is-sizes { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; align-items: start; padding: 4px clamp(12px,1.75vw,26px) 18px; }
.measure-block { min-width: 0; scroll-margin-top: 95px; }
.is-sizes .measure-block { border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; }
.measure-block h2 { background: var(--tint); padding: 10px 12px 7px; }
.measure-table th:first-child { width: 31%; }
.measure-table th:nth-child(2) { width: 25%; }
.measure-table tbody td,.omit-count { font: 600 20px/1.2 var(--numerals),var(--cn); }
.measure-table .pct { white-space: nowrap; color: var(--ink); font-size: 16px; }
.measure-table .pct-track { display: inline-block; width: min(9vw,130px); height: 4px; margin-right: 10px; border-radius: 4px; background: var(--quiet); vertical-align: middle; overflow: hidden; }
.pct-track i { display: block; height: 100%; background: var(--sum); }
.measure-table .measure-name { font: 600 18px/1 var(--numerals),var(--cn); }
.measure-table tbody tr,.omit-table tbody tr { height: 43px; }
.is-sizes .measure-table tr > :first-child { padding-inline-start: 12px; width: 29%; }
.is-sizes .measure-table .pct-track { width: min(2.5vw,36px); margin-right: 4px; }
.is-sizes .measure-table tr:last-child > * { border-bottom: 0; }
.omit-table th:first-child { width: 40%; }
.omit-table .plain-link { font-size: 12px; }
.omit-table tr > :last-child { width: 22%; }
.method-note { padding: 10px clamp(12px,1.75vw,26px) 14px; }
.empty-state { display: grid; justify-items: center; align-content: center; padding: 30px 14px; gap: 4px; color: var(--secondary); text-align: center; }
#detail { max-width: 820px; margin: 0 auto; }
.inner-main:has(#detail) .report-heading { max-width: 820px; margin-inline: auto; }
.period-sheet { padding: clamp(18px,3vw,38px); border-radius: 15px; border: 1px solid var(--plate-edge); background: linear-gradient(115deg,var(--plate-top),var(--plate-mid) 57%,var(--plate-base)); box-shadow: var(--skin-shadow); }
.period-sheet-head,.period-stamp { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.period-sheet-head h2 { display: flex; align-items: baseline; white-space: nowrap; color: var(--secondary); font: 600 clamp(27px,3.5vw,40px)/1 var(--numerals); }
.period-sheet-head h2 .issue-major { font: inherit; }
.period-sheet-head h2 .issue-tail { font-size: 1.27em; }
.period-sheet-head h2 > span:not(.issue-major) { margin: 0 .25em; font: 600 .51em/1 var(--cn); }
.period-score { display: flex; align-items: center; justify-content: start; flex-wrap: nowrap; gap: clamp(8px,2.3vw,23px); margin: clamp(20px,3.8vw,40px) 0; }
.detail-total { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; padding-left: clamp(7px,1.7vw,19px); border-left: 1px solid var(--plate-edge); color: var(--secondary); font-size: 13px; }
.detail-total b { color: var(--sum); font: 600 clamp(29px,3.4vw,43px)/1 var(--numerals); }
.period-score .result-marks [data-value] { font-size: clamp(17px,2vw,23px); }
.period-stamp { justify-content: start; border-top: 1px solid var(--plate-edge); padding-top: 11px; color: var(--secondary); font-size: 12px; }
.period-stamp time { font: 600 17px/1 var(--numerals); }
.period-neighbors { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.record-neighbor { display: flex; align-items: center; gap: 6px; min-height: 48px; padding: 8px 12px; color: var(--secondary); background: var(--sheet); border: 1px solid var(--paper-edge); border-radius: 8px; font-size: 13px; }
.record-neighbor:last-child { justify-content: end; }
.record-neighbor b { margin-inline: 3px; font: 600 17px/1.1 var(--numerals); color: var(--ink); white-space: nowrap; }
.record-neighbor .report-icon { width: 12px; height: 12px; }
.record-neighbor.unavailable { background: transparent; }
.detail-list-link { margin-top: 9px; }
@media(min-width:1025px) { .calendar-matrix td[data-family] { display: table-cell; } }
@media(max-width:1024px) {
  .matrix-families { display: flex; }
  .calendar-matrix [data-family] { display: none; }
  .calendar-matrix[data-shown-family="base"] [data-family="base"],.calendar-matrix[data-shown-family="extremes"] [data-family="extremes"],.calendar-matrix[data-shown-family="combos"] [data-family="combos"] { display: table-cell; }
  .calendar-matrix tr > :first-child { width: 22%; }
  .calendar-matrix tr > .matrix-info { width: 12%; }
  .is-sizes .measure-table .pct-track { display: none; }
}
@media(max-width:760px) {
  body.report-ui .report-heading { gap: 6px; grid-template-areas: "back title tools"; grid-template-columns: 36px minmax(0,1fr) auto; }
  .report-heading > .trail { width: 36px; min-height: 42px; font-size: 0; gap: 0; }
  .report-heading > .trail::before { width: 10px; height: 10px; }
  .report-heading h1 { font-size: clamp(23px,5.7vw,29px); }
  .tool-chooser summary { padding: 0 8px; min-height: 40px; }
  .tool-menu { width: min(395px,100%); }
  .records-ledger .clock-cell,.records-ledger .check-cell { display: none; }
  .records-ledger .wide-band { display: none; }
  .records-ledger .compact-band { display: table-cell; }
  .records-ledger .period-col { width: 31%; }
  .records-ledger .ball-col { width: 29%; }
  .records-ledger .sum-col { width: 14%; }
  .records-ledger .marks-col { width: 20%; }
  .records-ledger .ledger-row { height: 53px; }
  .records-ledger .compact-time,.records-ledger .compact-check { display: block; }
  .records-ledger thead .compact-time { font: 500 10px/1.3 var(--cn); }
  .records-ledger tbody .compact-time { color: var(--secondary); font: 600 13px/1.35 var(--numerals); }
  .compact-check .check-state { font-size: 10px; line-height: 1.3; }
  .compact-check .check-state::before { width: 4px; height: 4px; }
  .issue-major { font-size: 17px; } .issue-tail { font-size: 21px; }
  .plot-columns { grid-template-columns: repeat(10,minmax(0,1fr)); row-gap: 6px; }
  .measure-sections.is-sizes { grid-template-columns: 1fr; }
  .is-sizes .measure-table .pct-track { display: inline-block; width: min(13vw,72px); }
  #report,.measure-block { scroll-margin-top: 103px; }
}
@media(max-width:560px) {
  .report-ui .inner-main { padding-top: 11px; }
  .filter-bar { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; padding: 9px 10px; }
  .fast-ranges { justify-self: start; width: min(100%,270px); display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
  .fast-ranges a { min-height: 37px; min-width: 0; padding: 0 4px; }
  .report-ui .more-filters { padding: 0 7px; gap: 4px; min-height: 42px; }
  .search-control { grid-column: 1/-1; width: 100%; min-height: 39px; }
  .advanced-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .advanced-fields > label:first-child,.advanced-fields fieldset { grid-column: 1/-1; }
  .advanced-fields fieldset > label { min-width: 0; }
  .advanced-fields input[type="time"] { width: min(109px,100%); }
  .apply-line button { min-height: 40px; }
  .result-summary { min-height: 42px; padding: 7px 10px; column-gap: 7px; font-size: 12px; }
  .scope-dates { gap: 4px; font-size: 15px; }
  .scope-dates .report-icon { width: 13px; height: 13px; }
  .sample-total b { font-size: 15px; }
  .records-ledger thead th { height: 36px; }
  .report-ui table :is(th,td) { padding-inline: 2px; }
  .report-ui table tr:not(.date-band) > :first-child,.records-ledger .date-band th { padding-inline-start: 10px; }
  .records-ledger .recent-balls { gap: 3px; }
  .records-ledger .recent-balls i { width: clamp(21px,5.8vw,25px); font-size: 15px; }
  .records-ledger .sum-cell { font-size: 21px; }
  .result-marks { gap: 3px; } .records-ledger .result-marks [data-value] { font-size: 14px; }
  .report-ui table .arrow-cell { width: 15px; padding: 0 3px 0 0; }
  .tool-menu { gap: 9px 12px; padding: 12px; }
  .tool-menu a { min-height: 42px; font-size: 13px; }
  .page-controls { padding: 10px 9px; gap: 4px; }
  .page-step { gap: 2px; min-height: 42px; }
  .jump-form,.jump-form label { gap: 3px; font-size: 12px; }
  .jump-form input { width: 2.7em; }
  .jump-form button { padding: 4px 6px; min-height: 38px; }
  .calendar-matrix .matrix-info { display: none; }
  .calendar-matrix tr > :first-child { width: 35%; }
  .calendar-matrix td[data-family] { font-size: clamp(14px,3.9vw,17px); }
  .calendar-matrix .compact-meta { display: block; margin-top: 4px; color: var(--secondary); font: 500 11px/1.35 var(--cn); }
  .calendar-matrix .matrix-date { font-size: 16px; }
  .calendar-matrix tbody tr { height: 55px; }
  .matrix-families a,.omit-groups a { min-height: 39px; padding-inline: 8px; }
  .period-sheet { padding: 15px; }
  .period-score .draw-balls { gap: 4px; }
  .period-score .draw-balls b { width: clamp(36px,10.4vw,48px); font-size: clamp(22px,6.3vw,29px); }
  .period-score { margin: 23px 0; gap: clamp(7px,2.3vw,12px); }
  .period-neighbors { gap: 7px; }
  .record-neighbor { padding-inline: 7px; }
  .plot-point { height: 101px; }
}
@media(forced-colors:active) {
  .result-marks [data-value],.recent-balls i { outline: 1px solid CanvasText; }
  .fast-ranges [aria-current],.omit-groups [aria-current],.matrix-families [aria-current] { outline: 1px solid Highlight; }
}

