.history-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;margin-block:18px}.history-calendar button{min-height:64px;border:1px solid var(--border,#cde3e1);border-radius:12px;background:var(--surface,#fff);color:var(--ink,#10443f);padding:7px;cursor:pointer}.history-calendar small{display:block;font-size:11px;color:var(--muted,#507470)}.history-calendar .selected,.history-event-cards .selected{outline:3px solid var(--blue,#176c72);outline-offset:1px}.history-admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.history-inline{display:inline-flex;align-items:center;margin-inline-end:14px}.history-record{display:block;width:100%;text-align:start;padding:14px;margin-block:8px}.history-fields{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.history-admin label{display:block;margin-block:12px}.history-admin .history-inline{display:inline-flex}.history-admin input:not([type=checkbox]),.history-admin select,.history-admin textarea{width:100%}.history-admin fieldset{padding:16px;margin-block:16px;border:1px solid var(--border,#cde3e1);border-radius:12px}.history-editor textarea{line-height:1.8}.history-event-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px;margin-block:20px}.history-event-cards button{cursor:pointer;text-align:start;border:1px solid var(--border,#cde3e1)}.history-event-cards b,.history-event-cards small,.history-event-cards span{display:block;margin-block:6px}.history-public .panel{margin-block:20px;padding:22px}.history-audio .tool-actions,.history-public .tool-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center}.history-public button,.history-public select{min-height:44px}.history-public .reading-text{font-size:21px;line-height:2}.history-public .token{border:0;background:transparent;color:inherit;cursor:pointer;padding:2px 0;font:inherit}.history-public .token:focus-visible,.history-public .token:hover{background:var(--light,#d7eeec)}.history-public .translation{white-space:pre-wrap;line-height:2}.history-public .history-calendar small{font-size:11px}.history-public :focus-visible{outline:3px solid #dfad45;outline-offset:3px}@media(max-width:760px){.history-admin-grid{grid-template-columns:1fr}.history-fields{grid-template-columns:1fr 1fr}.history-calendar{gap:5px}.history-calendar button{padding:5px;min-height:58px}.history-public .panel{padding:16px}.history-public .reading-text{font-size:19px}}.history-home-widget{border:1px solid var(--border,#cde3e1);border-radius:24px;background:var(--surface,#fff);padding:28px}.history-widget-heading{display:flex;align-items:center;gap:16px;margin-bottom:22px}.history-widget-heading h2{margin:5px 0}.history-widget-icon{display:flex;align-items:center;justify-content:center;width:54px;height:54px;border-radius:16px;background:var(--light,#e2f3f1);color:var(--ink,#10443f);flex-shrink:0}.history-widget-heading>.home-v2-text-link{margin-inline-start:auto}.history-widget-story{display:flex;align-items:end;justify-content:space-between;gap:24px}.history-widget-story>div{min-width:0}.history-widget-story h3{margin:12px 0;font-size:25px}.history-widget-excerpt{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.8;color:var(--muted,#507470)}.history-widget-levels{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.history-widget-story .primary{flex-shrink:0;display:flex;align-items:center;gap:10px}.history-widget-empty{display:flex;align-items:center;justify-content:space-between;gap:20px}.app-shell .history-public{max-width:100%;margin:0}.app-shell .history-public .panel{background:var(--surface);color:var(--ink);border-radius:var(--radius,16px)}@media(max-width:650px){.history-home-widget{padding:20px}.history-widget-heading{gap:12px;flex-wrap:wrap}.history-widget-heading>.home-v2-text-link{margin-inline-start:0}.history-widget-empty,.history-widget-story{align-items:stretch;flex-direction:column;gap:14px}.history-widget-story h3{font-size:22px}.history-widget-story .primary{justify-content:center}}.history-admin-grid>section{min-width:0}.history-picker,.history-picker-list{min-width:0;max-width:100%}.history-picker-toolbar{padding-block:12px}.history-picker-toolbar label{max-width:100%}.history-picker-toolbar .history-inline{display:flex;align-items:center;gap:8px;margin-block:8px}.history-picker-list{display:grid;gap:10px;margin-block:12px}.history-auto-choice,.history-candidate{width:100%;max-width:100%;text-align:start;border:1px solid var(--border,#cde3e1);background:var(--surface,#fff);color:var(--ink,#10443f);border-radius:14px;padding:14px;white-space:normal;overflow-wrap:anywhere;cursor:pointer}.history-auto-choice.selected,.history-candidate.selected{border-color:var(--blue,#176c72);box-shadow:inset 0 0 0 2px var(--blue,#176c72)}.history-candidate strong{display:block;line-height:1.7;font-size:15px;margin-block:10px}.history-candidate-meta{display:flex;gap:8px;flex-wrap:wrap;font-size:12px;color:var(--muted,#507470)}.history-candidate-meta b{color:var(--ink,#10443f)}.history-candidate-footer{font-size:12px;color:var(--muted,#507470)}.history-picker-pagination{display:flex;justify-content:center;align-items:center;gap:12px}.history-candidate-preview{margin-block:16px;padding:16px;background:var(--light,#eaf6f5);border-radius:14px;overflow-wrap:anywhere}.history-candidate-preview details>div{padding-block:12px;border-bottom:1px solid var(--border,#cde3e1)}.history-candidate:disabled{opacity:.55;cursor:default}@media(max-width:600px){.history-candidate{padding:12px}.history-candidate strong{font-size:14px}.history-admin .history-fields{grid-template-columns:1fr 1fr}}.history-student-filters{display:flex;align-items:end;flex-wrap:wrap;gap:16px}.history-student-filters label{min-width:180px;flex:1}.history-student-filters input,.history-student-filters select{max-width:100%;width:100%}.history-picker-list .history-candidate strong{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.history-candidate-preview p{white-space:pre-wrap;line-height:1.8}.history-admin fieldset{min-inline-size:0;max-width:100%}.history-admin select{min-width:0;max-width:100%}.history-date-bar .history-date-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.history-date-heading h2{margin:4px 0;font-size:23px}.history-date-heading .eyebrow{font-size:11px}.history-date-bar .tool-actions{gap:8px}.history-date-bar .tool-actions button,.history-date-bar select{min-height:40px;font-size:13px}.history-calendar-picker{margin-top:14px;border-top:1px solid var(--border);padding-top:12px}.history-calendar-picker summary,.history-sources summary,.history-topics summary{cursor:pointer;font-weight:600;min-height:36px}.history-calendar-picker:not([open]){margin-bottom:0}.history-public .history-calendar button{min-height:48px}.history-public .history-student-filters{margin-block:12px;padding:14px 18px;gap:12px}.history-student-filters label{font-size:13px}.history-event-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:14px 0;color:var(--muted);font-size:13px}.history-event-meta span{background:var(--surface);border:1px solid var(--border);border-radius:18px;padding:5px 12px}.history-topics{padding:12px 18px;background:var(--surface);border:1px solid var(--border);border-radius:14px;margin-top:14px}.history-public .history-event-cards button{padding:14px;margin:0}.history-public .reading{max-width:920px;width:100%;margin:12px auto;padding:clamp(18px,3vw,32px)}.history-public .reading h1{font-size:clamp(24px,2.5vw,34px);line-height:1.45;margin-block:8px}.history-public .reading>.tool-actions{margin-block:12px}.history-public .reading .reading-text{margin-block:22px}.history-audio-notice{display:flex;justify-content:space-between;align-items:start;gap:12px;padding:12px 14px;border:1px solid var(--border);background:var(--light);border-radius:12px;font-size:13px;line-height:1.8;margin-top:12px}.history-audio-notice .icon-button{flex-shrink:0}.history-public .history-sources{padding:14px 18px;margin-top:16px}.word-dialog-layer{z-index:200!important;position:fixed!important;inset:0!important;overscroll-behavior:contain}body:has(.word-dialog-layer) .floating-audio{visibility:hidden;pointer-events:none}@media(max-width:650px){.history-date-heading{flex-wrap:wrap}.history-public .history-student-filters label{min-width:140px}.history-public .reading h1{font-size:24px}.word-dialog-layer{padding:12px!important}}