/* Read-only hosted variant. Palette, controls, focus and scrollbars remain shared. */
.history-main h1{font-size:clamp(1.9rem,4vw,2.6rem);max-width:none;margin-bottom:16px}
.history-main .connected-lead{font-size:1.05rem;max-width:76ch;margin-bottom:12px}
.history-main{padding-top:32px}
.history-account{display:grid;gap:2px;text-align:right;max-width:34ch;overflow-wrap:anywhere}
.history-account strong{font-size:.95rem}
.history-account>span{font-size:.9rem}
.history-connection-note,.history-retained-note{max-width:78ch;font-size:.95rem;line-height:1.55}
.history-connection-note{margin:12px 0 20px}
.history-retained-note{border-top:1px solid var(--border);padding-top:22px;margin:32px 0 0}
.history-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:16px 0}
.history-toolbar h2{margin:0 0 4px;font-size:1.4rem}
.history-toolbar p{margin:0;min-height:1.55em}
.history-pagination{display:flex;gap:8px;flex-wrap:wrap}
.history-pagination button{min-width:100px}
.history-toolbar #history-refresh{min-width:165px}
.history-scroll-hint{font-size:.9rem;margin:10px 0}
.history-table-region{min-height:18rem;scroll-margin-top:16px}
.history-table{font-size:.98rem;min-width:850px}
.history-table caption{text-align:left;padding:12px 0;font-weight:600}
.history-table th,.history-table td{padding:14px 16px}
.history-table th[scope=row]{font-weight:700;background:transparent;overflow-wrap:anywhere}
.history-table td{overflow-wrap:anywhere;max-width:32ch}
.history-table td small{margin-top:4px}
.history-table .history-count{font-variant-numeric:tabular-nums;text-align:right}
.history-table button{white-space:nowrap}
.history-page button:active:not(:disabled){transform:translateY(1px)}
.history-page button[aria-busy=true]{cursor:wait}
.history-detail{scroll-margin-top:24px}
.history-detail h3{margin:24px 0 12px;font-size:1.15rem}
.history-detail .history-table{min-width:600px}
.history-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 28px;margin:24px 0}
.history-facts>div{min-width:0}
.history-facts dt{font-size:.9rem;margin-bottom:4px}
.history-facts dd{margin:0;font-weight:650;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.history-detail details{margin:18px 0;border-top:1px solid var(--border);padding-top:12px}
.history-detail summary{min-height:48px;padding:12px 0;cursor:pointer;font-weight:650}
.history-detail summary:hover{text-decoration:underline;text-underline-offset:.2em}
.history-detail details button{margin:12px 0}
.history-detail .history-subtable-count{font-size:.9rem;margin:12px 0}
.history-access{max-width:none;margin:24px 0}
.history-access h2{font-size:1.3rem}
.history-skip{position:absolute;left:16px;top:-100px;padding:12px 18px;background:Canvas;color:CanvasText;z-index:20;min-height:48px}
.history-skip:focus{top:12px}
.history-page a:active{text-decoration-thickness:2px}
@media(max-width:700px){.history-main{padding-top:24px}.history-account{text-align:left}.history-page .connected-header{flex-wrap:wrap}.history-page .connected-header nav{justify-content:space-between;width:100%;align-items:center}.history-facts{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.history-toolbar .connected-actions{width:100%}.history-table-region{min-height:15rem}.history-table th,.history-table td{padding:12px}.history-main .connected-lead{font-size:1rem}}
@media(max-width:420px){.history-facts{grid-template-columns:1fr}.history-toolbar .connected-actions{align-items:stretch}.history-pagination{flex:1}.history-pagination button{flex:1;min-width:88px}.history-toolbar #history-refresh{flex-basis:100%}}
@media(prefers-reduced-motion:reduce){.history-page button:active:not(:disabled){transform:none}}
@media print{.history-page .connected-header,.history-toolbar button,.history-pagination,.history-skip{display:none!important}.history-table{min-width:0}.connected-table-wrap{overflow:visible}.history-account{display:none}}
