/* Published-number history: a readable chart with an equivalent round-by-round list. */
#main .history-trend-screen{--trend-ink:#173d29;--trend-muted:#516b59;--trend-green:#08733c;--trend-border:#d9e7d8;--trend-gold:#e5ba4f;min-width:0}
#main .history-trend-screen .history-trend-page{min-width:0;padding:14px 0 28px}
#main .history-trend-screen .history-trend-select{display:grid;gap:7px;min-width:0;margin:0 0 12px;color:var(--trend-ink);font-size:var(--subpage-body-size,14px);font-weight:750;line-height:1.4;overflow-wrap:anywhere}
#main .history-trend-screen .history-trend-select select{width:100%;min-width:0;min-height:48px;padding:10px 12px;border:1px solid #bdd6be;border-radius:12px;background:#fffdfa;color:var(--trend-ink);font:inherit;font-size:15px}
#main .history-trend-screen #historyTrendProductFilter[hidden]{display:none!important}
#main .history-trend-screen .history-trend-product-open{display:grid;grid-template-columns:minmax(0,1fr) 20px;align-items:center;gap:12px;width:100%;min-width:0;min-height:48px;margin:0;padding:10px 12px;border:1px solid #bdd6be;border-radius:12px;background:#fffdfa;color:var(--trend-ink);box-shadow:none;font:inherit;font-size:15px;font-weight:600;line-height:1.4;text-align:left;white-space:normal}
#main .history-trend-screen .history-trend-product-open>span{min-width:0;overflow-wrap:anywhere}
#main .history-trend-screen .history-trend-product-open>svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#main .history-trend-screen .history-trend-product-open:is(:hover,:active){background:#fffdfa;box-shadow:none;transform:none;filter:none}
#main .history-trend-screen .history-trend-product-open:disabled{opacity:1;cursor:default}
#main .history-trend-card{min-width:0;margin:0 0 14px;padding:16px;border:1px solid #dfebdd;border-radius:16px;background:#fffdfa;box-shadow:0 3px 12px #173e2410}
#main .history-trend-card h2{margin:0;color:var(--trend-ink,#173d29);font-size:18px;font-weight:800;line-height:1.35;overflow-wrap:anywhere}
#main .history-trend-screen .history-trend-card>h2{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
#main .history-trend-note,#main .history-trend-caption,#main .history-trend-range,#main .history-trend-empty{min-width:0;margin:8px 0 0;color:var(--trend-muted,#516b59);font-size:var(--subpage-body-size,14px);line-height:1.6;overflow-wrap:anywhere;word-break:normal}
#main .history-trend-empty{font-size:12px;line-height:1.5}
#main .history-trend-note{margin-top:0;padding:7px 10px;border:1px solid #f1dfaf;border-radius:10px;background:#fff8e6;color:#76521a;font-weight:700}
#main .history-trend-range{color:#315a3d;font-weight:700;font-variant-numeric:tabular-nums}
/* Only the applied range and position occupy the main chart. */
#main .history-trend-settings{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 12px;box-sizing:border-box;width:100%;min-width:0;min-height:48px;margin:0;padding:10px 12px;border:1px solid #d8e7d6;border-radius:12px;background:#f7faf4;color:#17482c;box-shadow:none;font:inherit;font-size:var(--subpage-action-size,14px);line-height:1.4;text-align:left;cursor:pointer}
#main .history-trend-settings:is(:hover,:active){background:#f7faf4;box-shadow:none;transform:none}
#main .history-trend-settings-current{min-width:0;color:#075c2e;font-size:14px;font-weight:800;overflow-wrap:anywhere}
#main .history-trend-settings-hint{min-width:0;color:#526b5a;font-size:12px;font-weight:700;overflow-wrap:anywhere}
#main .history-trend-range-control{min-width:0;margin:12px 0 0}
#main .history-trend-range-control>span,#main .history-trend-range-control>label,#main .history-trend-range-control>strong{display:block;margin:0 0 8px;color:var(--trend-ink,#173d29);font-size:var(--subpage-body-size,14px);font-weight:750;line-height:1.4;overflow-wrap:anywhere}
#main .history-trend-range-control>p{margin:8px 0 0;color:var(--trend-muted,#516b59);font-size:12px;line-height:1.5;overflow-wrap:anywhere}
#main .history-trend-range-buttons{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--filter-control-gap,6px);min-width:0}
#main .history-trend-range-button{display:flex;align-items:center;justify-content:center;min-width:0;min-height:var(--filter-control-min-height,44px);padding:7px 6px;border:1px solid #d3e2d1;border-radius:10px;background:#f6faf4;color:#315a3d;font:inherit;font-size:var(--subpage-action-size,14px);font-weight:750;line-height:1.25;text-align:center;white-space:normal;overflow-wrap:anywhere;word-break:normal;cursor:pointer}
#main .history-trend-range-button[aria-pressed="true"]{border-color:#08733c;background:#e4f4df;color:#075c2e;box-shadow:inset 0 0 0 1px #08733c}
#main .history-trend-range-button:disabled{opacity:.55;cursor:default}
#main .history-trend-graph-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 12px;min-width:0;margin:14px 0 0;color:var(--trend-ink,#173d29);font-size:14px;font-weight:750;line-height:1.4;overflow-wrap:anywhere}
#main .history-trend-graph-head>*{min-width:0}
#main .history-trend-graph-head h3{margin:0;color:var(--trend-ink,#173d29);font-size:var(--subpage-heading-size,16px);font-weight:800;line-height:1.4;overflow-wrap:anywhere}
#main .history-trend-legend{display:inline-flex;flex-wrap:wrap;align-items:center;gap:5px;color:var(--trend-muted,#516b59);font-size:12px;font-weight:650;line-height:1.4;overflow-wrap:anywhere}
#main .history-trend-legend::before{width:9px;height:9px;flex:0 0 9px;border:2px solid #fff;border-radius:50%;background:#c51d24;box-shadow:0 0 0 1px #c51d24;content:""}
/* Number-distribution board: the period column and digit headings remain visible while scrolling. */
#main .history-trend-position-control{min-width:0;margin:11px 0 0}
#main .history-trend-position-control>strong{display:block;margin:0 0 8px;color:var(--trend-ink,#173d29);font-size:var(--subpage-body-size,14px);line-height:1.4;overflow-wrap:anywhere}
#main .history-trend-position-buttons{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:var(--filter-control-gap,6px);min-width:0}
/* Longer translated place names need room to wrap at word boundaries. */
html:not(:lang(zh)) #main .history-trend-position-buttons{grid-template-columns:repeat(auto-fit,minmax(min(100%,72px),1fr))}
#main .history-trend-position-button{display:flex;align-items:center;justify-content:center;min-width:0;min-height:var(--filter-control-min-height,44px);padding:6px 3px;border:1px solid #d3e2d1;border-radius:10px;background:#f6faf4;color:#315a3d;font:inherit;font-size:var(--subpage-action-size,14px);font-weight:750;line-height:1.25;text-align:center;white-space:normal;overflow-wrap:anywhere;cursor:pointer}
#main .history-trend-position-button[aria-pressed="true"]{border-color:#08733c;background:#e4f4df;color:#075c2e;box-shadow:inset 0 0 0 1px #08733c}
#main .history-trend-grid-scroll{position:relative;max-width:100%;max-height:min(68vh,620px);margin:10px 0;overflow:auto;overscroll-behavior:contain;border:1px solid #d7e5d5;border-radius:12px;background:#fffdfa;scrollbar-color:#9fbea4 #edf4e9;scrollbar-width:thin;scrollbar-gutter:stable;-webkit-overflow-scrolling:touch}
#main .history-trend-digit-grid{width:max-content;min-width:100%;border-collapse:separate;border-spacing:0;color:#385442;font-size:12px;font-variant-numeric:tabular-nums;text-align:center}
#main .history-trend-digit-grid :is(th,td){height:38px;padding:4px;border-right:1px solid #edf1e9;border-bottom:1px solid #e4ece1;vertical-align:middle}
#main .history-trend-digit-grid thead th{position:sticky;top:0;z-index:3;height:42px;background:#eaf4e7;color:#244a30;font-size:12px;font-weight:800;line-height:1.25}
#main .history-trend-digit-grid .trend-round{position:sticky;left:0;z-index:2;min-width:48px;width:48px;padding:4px;background:#fffdfa;color:#245236;font-weight:750;line-height:1.3;overflow-wrap:anywhere;box-shadow:2px 0 4px #173e240e}
#main .history-trend-digit-grid thead .trend-round{z-index:4;background:#eaf4e7}
#main .history-trend-digit-grid .trend-result{min-width:60px;width:60px;padding:4px;line-height:1.55;overflow-wrap:anywhere}
/* Translated headers need enough room for complete words. The board already
   scrolls horizontally, so preserve legibility without squeezing the digits. */
html:not(:lang(zh)) #main .history-trend-digit-grid .trend-round{min-width:68px;width:68px;overflow-wrap:break-word;word-break:normal}
html:not(:lang(zh)) #main .history-trend-digit-grid .trend-result{min-width:96px;width:96px;overflow-wrap:break-word;word-break:normal}
#main .history-trend-expand{display:inline-flex;align-items:center;justify-content:center;min-height:44px;max-width:100%;padding:4px;border:0;background:transparent;color:#086b39;font:inherit;font-size:var(--subpage-action-size,14px);font-weight:750;line-height:1.2;text-align:center;white-space:normal;overflow-wrap:anywhere;cursor:pointer}
#main .history-trend-digit-grid .trend-digit{min-width:19px;width:19px;max-width:19px;padding:2px 0}
#main .history-trend-digit-grid tbody tr:nth-child(even) :is(td,th){background-color:#fafcf8}
#main .history-trend-digit-grid tbody tr:nth-child(even) .trend-round{background-color:#fafcf8}
#main .history-trend-digit-grid tbody tr:last-child :is(th,td){border-bottom:0}
#main .history-trend-hit{display:inline-flex;align-items:center;justify-content:center;width:17px;height:17px;border:1px solid #b91118;border-radius:50%;background:#d51b23;color:#fff;font-size:11px;font-weight:850;line-height:1;box-shadow:0 1px 2px #a9141729}
#main .history-trend-table-open{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-width:0;min-height:44px;margin:4px 0 0;padding:8px 0;border:0;border-radius:0;background:transparent;color:#086b39;box-shadow:none;font-size:13px;font-weight:600;line-height:1.4;text-align:left;white-space:normal;overflow-wrap:anywhere}
#main .history-trend-table-open:is(:hover,:active){background:transparent;box-shadow:none;transform:none}
#main .history-trend-table-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
#main .history-trend-numbers-dialog table{width:100%;border-collapse:collapse;text-align:left;font-size:13px;line-height:1.5}
#main .history-trend-numbers-dialog :is(th,td){padding:10px 12px;border-top:1px solid #e9f0e7;vertical-align:top;overflow-wrap:anywhere}
#main .history-trend-numbers-dialog thead th{border-top:0;background:#f7faf5;color:#405c4b;font-weight:700}
#main .history-trend-numbers-dialog tbody th{color:#254a32;font-weight:700}
#main .history-trend-number{display:inline-block;margin:2px 4px 2px 0;color:#b6191d;font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap}
#main .history-trend-number[data-trend-extra][hidden]{display:none}
#main .history-trend-screen #historyTrendStatus{min-width:0;margin:12px 0;padding:12px 14px;border:1px solid #dfebdd;border-radius:12px;background:#fffdfa;color:#405c4b;font-size:14px;line-height:1.5;overflow-wrap:anywhere}
#main .history-trend-screen #historyTrendRetry{min-width:100px;min-height:44px;margin:0 0 12px;padding:9px 16px;border:1px solid #b9d5bd;border-radius:10px;background:#eef7eb;color:#075c2e;font:inherit;font-size:14px;font-weight:750;line-height:1.4;white-space:normal;overflow-wrap:anywhere}
#main .history-trend-screen :is(#historyTrendStatus,#historyTrendRetry)[hidden]{display:none}
#main .history-trend-screen :is(select,button,summary,.history-trend-grid-scroll):focus-visible{outline:3px solid #c99716;outline-offset:2px}
@media(max-width:380px){#main .history-trend-range-button{padding:6px 3px}html:not(:lang(zh)) #main .history-trend-range-buttons{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:350px){#main .history-trend-card{padding:13px}#main .history-trend-numbers-dialog :is(th,td){padding:8px}}
/* Native dialogs keep analysis controls and the alternate table off the page. */
#main .history-trend-dialog{position:fixed;box-sizing:border-box;width:min(360px,calc(100vw - 28px));min-width:0;max-height:min(85dvh,720px);margin:auto;padding:0;overflow:hidden;overscroll-behavior:contain;border:1px solid #d8e3d3;border-radius:16px;background:#fffdf8;color:#254c35;box-shadow:0 16px 44px #103c2833}
#main .history-trend-dialog[open]{display:flex;flex-direction:column}
#main .history-trend-dialog:not([open]){display:none}
#main .history-trend-dialog::backdrop{background:#10382c73;backdrop-filter:blur(3px)}
#main .history-trend-dialog-head{display:flex;flex:none;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px 10px 16px;border-bottom:1px solid #e4eade}
#main .history-trend-dialog .history-trend-dialog-head h2{min-width:0;margin:0;font-size:17px;font-weight:600;line-height:1.4}
#main .history-trend-dialog-head button{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;min-height:44px;margin:0;padding:0;border:0;border-radius:9px;background:#eff5e9;color:#275b3c;box-shadow:none;font-size:26px;font-weight:400;line-height:1}
#main .history-trend-dialog-body{flex:1 1 auto;min-height:0;padding:16px;overflow:auto;overscroll-behavior:contain;scrollbar-width:none;-webkit-overflow-scrolling:touch}
#main .history-trend-dialog-body::-webkit-scrollbar{display:none}
#main .history-trend-settings-dialog .history-trend-dialog-body{display:grid;gap:20px;align-content:start}
#main .history-trend-dialog :is(.history-trend-range-control,.history-trend-position-control){margin:0}
#main .history-trend-dialog :is(.history-trend-range-control,.history-trend-position-control)>strong{font-size:13px;font-weight:600}
#main .history-trend-dialog :is(.history-trend-range-button,.history-trend-position-button){min-height:44px;font-size:13px;font-weight:600}
#main .history-trend-dialog-actions{flex:none;padding:0 16px 16px}
#main .history-trend-dialog-actions button{display:flex;align-items:center;justify-content:center;width:100%;min-height:44px;margin:0;padding:10px 12px;border:1px solid #087346;border-radius:10px;background:#087346;color:#fff;box-shadow:none;font-size:14px;font-weight:600;line-height:1.4}
#main .history-trend-numbers-dialog .history-trend-dialog-body{padding:0}
#main .history-trend-dialog button:focus-visible{outline:2px solid #b79038;outline-offset:2px}
#main .history-trend-dialog button:is(:hover,:active){box-shadow:none;transform:none;filter:none}
#main .history-trend-products-dialog{inset:0;max-height:min(80dvh,640px)}
#main .history-trend-products-dialog .history-trend-dialog-body{padding:4px 12px;scrollbar-gutter:auto}
#main .history-trend-products-dialog .history-trend-product-option{display:grid;grid-template-columns:minmax(0,1fr) 20px;align-items:center;gap:12px;width:100%;min-width:0;min-height:52px;margin:0;padding:12px 8px;border:0;border-bottom:1px solid #e5ebe0;border-radius:0;background:transparent;color:#244b34;box-shadow:none;font:inherit;font-size:14px;font-weight:500;line-height:1.5;text-align:left;white-space:normal}
#main .history-trend-products-dialog .history-trend-product-option:last-child{border-bottom:0}
#main .history-trend-products-dialog .history-trend-product-option>span{min-width:0;overflow-wrap:anywhere;word-break:normal}
#main .history-trend-products-dialog .history-trend-product-option>svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;visibility:hidden}
#main .history-trend-products-dialog .history-trend-product-option[aria-pressed="true"]{background:#edf5e9;color:#08683e;font-weight:600}
#main .history-trend-products-dialog .history-trend-product-option[aria-pressed="true"]>svg{visibility:visible}
/* A measured SVG layer connects only unambiguous neighboring rounds. */
#main .history-trend-grid-scroll>.history-trend-lines{position:absolute;left:0;top:0;z-index:1;display:block;max-width:none;overflow:hidden;pointer-events:none}
#main .history-trend-lines line{stroke:#bb4548;stroke-width:1.4;stroke-linecap:round;opacity:.78}
#main .history-trend-hit{position:relative;z-index:2}
#main .history-trend-omission{position:relative;z-index:2;color:#657969;font-size:10px;font-weight:500;line-height:1;text-shadow:0 0 2px #fffdfa,0 0 2px #fffdfa}

/* Product headings and period details follow the same hierarchy as other subpages. */
#main .history-screen .history-group-info>strong{font-size:var(--subpage-heading-size,16px);line-height:1.4;overflow-wrap:anywhere}
#main .history-screen .history-product-group .history-group-periods .history-card-head p{font-size:var(--subpage-meta-size,12px);line-height:1.45;overflow-wrap:anywhere}

/* Craft guidance adapted from unslop by Damir Sokolovsky (@heydamir), CC BY 4.0.
   Preserve space for the published number and its copy action on phones. */
#main .history-screen .history-controls{gap:8px;margin-bottom:12px;padding:12px;border-color:#e1e6e1;border-radius:16px;background:#fff;box-shadow:none}
#main .history-screen .history-search input{min-height:44px;font-size:16px}
#main .history-screen .history-filter-tabs button{font-weight:600}
#main .history-screen .history-filter-disclosure>summary{font-weight:600}
#main .history-screen .history-list-head h2{font-weight:600}
#main .history-screen .history-product-group .history-group-periods .history-result{padding:8px;border-color:#ead8a7;background:#fff9e9}
#main .history-screen .history-product-group .history-group-periods .history-number-label{font-weight:600}
#main .history-screen .history-product-group .history-group-periods .history-numbers span{font-weight:600;font-variant-numeric:tabular-nums}
#main .history-screen .history-product-group .history-group-periods .history-card-head p{line-height:1.5}
@media(max-width:430px){
  #main .history-screen .history-product-group .history-group-periods>.history-card{grid-template-columns:minmax(0,1fr);gap:8px;padding:12px 0}
  #main .history-screen .history-product-group .history-group-periods .history-result{grid-template-columns:minmax(0,1fr) 44px;gap:8px}
}
/* Align the list heading with its cards and use the same inset on small phones. */
#main .history-screen .history-list-head{margin-inline:0}
@media(max-width:350px){#main .history-trend-screen .history-trend-card{padding:12px}}

/* At iPhone width, keep all four Chinese period filters on a single line. */
@media(min-width:381px) and (max-width:430px){
  html:lang(zh) #main .history-trend-screen .history-trend-range-buttons{gap:4px}
  html:lang(zh) #main .history-trend-screen .history-trend-range-button{padding-inline:2px;font-size:12.5px;white-space:nowrap}
}

/* Published history uses a compact toolbar and two-step product/round disclosure. */
#main .history-screen.history-screen .history-page{padding-top:10px}
#main .history-screen.history-screen .history-controls{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 8px;margin:0 0 10px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
#main .history-screen.history-screen .history-search{grid-column:1/-1;min-width:0;gap:6px}
#main .history-screen.history-screen .history-search input{min-height:44px;margin:0;padding:9px 12px;border-color:#dce5da;border-radius:10px;background:#fff;font-size:16px}
#main .history-screen.history-screen .history-search button{min-height:44px;padding:6px 8px;font-size:12px}
#main .history-screen.history-screen .history-filter-tabs{grid-column:1;grid-row:2;display:flex;align-items:center;gap:2px;min-width:0}
#main .history-screen.history-screen .history-filter-tabs button{position:relative;min-height:44px;margin:0;padding:8px 12px;border:0;border-radius:0;background:transparent;color:#65776b;font-size:13px;font-weight:500;line-height:1.35;box-shadow:none}
#main .history-screen.history-screen .history-filter-tabs button::before{content:none}
#main .history-screen.history-screen .history-filter-tabs button[aria-pressed="true"]{color:#075f3d;font-weight:700}
#main .history-screen.history-screen .history-filter-tabs button[aria-pressed="true"]::after{content:'';position:absolute;bottom:2px;left:calc(50% - 10px);width:20px;height:3px;border-radius:2px;background:#b99c4b}
#main .history-screen.history-screen .history-filter-disclosure{position:relative;grid-column:2;grid-row:2;align-self:center;margin:0;border:0}
#main .history-screen.history-screen .history-filter-disclosure>summary{gap:5px;min-height:44px;padding:7px 10px;border:1px solid #dfe6db;border-radius:9px;background:#fff;color:#275c40;font-size:13px;font-weight:500}
#main .history-screen.history-screen .history-filter-disclosure>summary::after{margin-left:3px;font-size:16px}
#main .history-screen.history-screen .history-filter-count{padding:1px 5px;font-size:11px}
#main .history-screen.history-screen .history-filter-content{position:absolute;top:calc(100% + 5px);right:0;z-index:12;box-sizing:border-box;width:min(348px,calc(100vw - 28px));padding:12px;border:1px solid #dce5d8;border-radius:12px;background:#fffdfa;box-shadow:0 6px 20px #143e2b1f}
#main .history-screen.history-screen .history-filter{margin:0;font-weight:500}
#main .history-screen.history-screen #historyClearFilters{grid-column:1/-1;min-height:44px;margin:0;padding:6px 10px;border:0;background:transparent;font-size:12px;box-shadow:none}
#main .history-screen.history-screen .history-list-head{min-height:24px;margin:0 0 6px}
#main .history-screen.history-screen .history-list-head h2{font-size:13px;font-weight:600}
#main .history-screen.history-screen .history-list-head[hidden]{display:none}
#main .history-screen.history-screen .history-product-group{margin:0 0 8px;border:1px solid #dfe6dc;border-radius:12px;background:#fff;box-shadow:none}
#main .history-screen.history-screen .history-group-summary{grid-template-columns:44px minmax(0,1fr) auto 14px;gap:10px;min-height:70px;padding:10px 12px}
#main .history-screen.history-screen .history-group-summary>.history-card-icon{width:44px;height:46px;min-width:44px;border:0;border-radius:8px}
#main .history-screen.history-screen .history-group-info{gap:5px}
#main .history-screen.history-screen .history-group-info>strong{font-size:14px;font-weight:650;line-height:1.35}
#main .history-screen.history-screen .history-group-meta{display:flex;flex-wrap:wrap;gap:2px 8px;color:#66766a;font-size:11px;line-height:1.3}
#main .history-screen.history-screen .history-group-meta small{font-size:inherit}
#main .history-screen.history-screen .history-group-meta .history-group-count{color:#66766a!important;font-weight:400}
#main .history-screen.history-screen .history-group-number{display:inline-flex;align-items:baseline;gap:3px;color:#a42d22;font-size:15px;font-weight:650;font-variant-numeric:tabular-nums;white-space:nowrap}
#main .history-screen.history-screen .history-group-number small{font-size:10px;font-weight:500;color:#66766a}
#main .history-screen.history-screen .history-group-arrow{font-size:21px}
#main .history-screen.history-screen .history-group-periods{padding:0 12px 4px;border-top:1px solid transparent}
#main .history-screen.history-screen .history-product-group .history-group-periods>.history-compact-round{display:block;min-width:0;margin:0;padding:0;border:0;border-top:1px solid #e9eee5;border-radius:0;background:transparent;box-shadow:none}
#main .history-screen.history-screen .history-round-disclosure{margin:0}
#main .history-screen.history-screen .history-round-summary{display:grid;grid-template-columns:minmax(0,1fr) auto 14px;align-items:center;gap:10px;min-height:48px;padding:7px 0;list-style:none;cursor:pointer}
#main .history-screen.history-screen .history-round-summary::-webkit-details-marker{display:none}
#main .history-screen.history-screen .history-round-identity{display:flex;align-items:baseline;flex-wrap:wrap;gap:3px 9px;min-width:0}
#main .history-screen.history-screen .history-round-identity strong{font-size:12px;font-weight:500;color:#315d42;line-height:1.4}
#main .history-screen.history-screen .history-round-identity small{color:#68796d;font-size:11px;line-height:1.4}
#main .history-screen.history-screen .history-round-winning{display:flex;align-items:baseline;gap:4px;color:#a52e23;font-size:14px;font-weight:600;font-variant-numeric:tabular-nums;line-height:1.4;white-space:nowrap}
#main .history-screen.history-screen .history-round-winning small{color:#66766a;font-size:10px;font-weight:400}
#main .history-screen.history-screen .history-round-arrow{color:#75937e;font-size:19px;line-height:1}
#main .history-screen.history-screen .history-round-disclosure[open] .history-round-arrow{transform:rotate(90deg)}
#main .history-screen.history-screen .history-round-full{padding:0 0 12px}
#main .history-screen.history-screen .history-round-full .history-card-head{margin-bottom:8px}
#main .history-screen.history-screen .history-round-full .history-card-head p{font-size:11px;line-height:1.4}
#main .history-screen.history-screen .history-round-full .round-summary{font-size:11px;font-weight:400}
#main .history-screen.history-screen .history-round-full .history-card-info h2{font-size:12px;font-weight:500}
#main .history-screen.history-screen .history-round-full .history-result{padding:8px;border:1px solid #e5e9df;border-radius:8px;background:#f8faf4}
#main .history-screen.history-screen .history-round-full .history-number-label{font-size:11px;font-weight:500}
#main .history-screen.history-screen .history-pagination{margin:0;padding:8px 0 4px;gap:6px;border:0;border-top:1px solid #e9eee5;background:transparent}
#main .history-screen.history-screen .history-pagination-info{font-size:11px;font-weight:400;line-height:1.4}
#main .history-screen.history-screen .history-pagination-actions{gap:6px}
#main .history-screen.history-screen .history-page-button{min-height:44px;padding:7px 8px;font-size:12px;font-weight:500;border-radius:8px}
#main .history-screen.history-screen .history-page-jump{gap:6px;margin:0}
#main .history-screen.history-screen .history-page-input{min-height:44px;padding:7px;font-size:13px;border-radius:8px}
#main .history-screen.history-screen :is(#historyServerEmpty,#historyNoMatches){min-height:0;margin:0;padding:38px 12px;border:0;border-radius:0;background:transparent;box-shadow:none;text-align:center}
#main .history-screen.history-screen :is(#historyServerEmpty,#historyNoMatches)>.ui-icon{width:44px;height:44px;margin-bottom:10px;color:#7ba085}
#main .history-screen.history-screen :is(#historyServerEmpty,#historyNoMatches) h2{margin:0;color:#687c6b;font-size:14px;font-weight:500;line-height:1.5}
#main .history-screen.history-screen :is(.history-round-summary,.history-group-summary):focus-visible{outline:2px solid #0a7548;outline-offset:-2px}
@media(max-width:350px){#main .history-screen.history-screen .history-group-summary{gap:8px;padding-inline:10px}#main .history-screen.history-screen .history-group-number{font-size:13px}#main .history-screen.history-screen .history-group-meta{gap:2px 5px}}

#main .history-screen.history-screen .history-group-arrow{grid-column:4}

#main .history-screen.history-screen :is(#historyServerEmpty,#historyNoMatches)[hidden]{display:none}

/* Single-number results keep the label, number and copy control on one row. */
#main .history-screen.history-screen .history-round-full .history-result-body:has(.history-numbers>span:only-child){display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}
#main .history-screen.history-screen .history-round-full .history-result-body:has(.history-numbers>span:only-child) .history-number-label{display:grid;gap:2px;margin:0;line-height:1.4}
#main .history-screen.history-screen .history-round-full .history-result-body:has(.history-numbers>span:only-child) .history-numbers{flex:none;margin:0;padding:0}

html:lang(zh) .history-trend-settings-dialog [data-trend-range]{padding-inline:4px;font-size:13px;white-space:nowrap}

/* Focused filter fields share the same readable sizing as search and checkout. */
#main .history-screen.history-screen .history-filter :is(select,input){min-height:44px;margin-top:6px;font-size:16px;line-height:22px}
html:lang(zh) #main dialog.history-trend-settings-dialog [data-trend-range]{display:flex;align-items:center;justify-content:center;min-height:44px;height:44px;padding:6px 2px;font-size:12px;line-height:20px;white-space:nowrap}
