.history-toolbar{display:flex;align-items:flex-end;gap:20px;justify-content:space-between;margin:24px 0}.history-toolbar label{flex:1;max-width:420px;margin:0}.history-toolbar button{flex:0 0 auto}.history-entry{padding:18px 0}.history-entry>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;list-style:none}.history-entry>summary::-webkit-details-marker{display:none}.history-entry>summary:after{content:'+';color:#bd916d;font-size:20px}.history-entry[open]>summary:after{content:'−'}.history-entry>summary>div{display:flex;flex-direction:column;gap:5px;min-width:0;flex:1}.history-date{font-size:12px;color:#bca58f}.history-entry strong{font-size:15px;font-weight:500;color:#ede6de;overflow-wrap:anywhere}.history-body{max-width:740px;margin-top:22px;padding-left:18px;border-left:2px solid #67503c}.history-body h3{font-size:12px;letter-spacing:.4px;color:#bd916d;margin:20px 0 8px}.history-body p{white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0 16px}.history-private{padding:2px 16px;background:#211c17;border-radius:4px;margin:20px 0}.history-label{font-size:11px;color:#bca58f}.history-dialog{width:min(720px,calc(100% - 24px));max-height:90dvh;overflow:auto;border:1px solid #64503f;border-radius:10px;padding:28px;background:#151412;color:#f0ede9}.history-dialog::backdrop{background:#000b}.history-dialog .calendar-dialog-top{display:flex;gap:20px;justify-content:space-between;align-items:center}.history-dialog h2{margin:0}.history-dialog form{margin-top:24px}.history-dialog label{font-size:13px}.history-dialog textarea{resize:vertical}.history-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.history-link-row{display:grid;grid-template-columns:1fr 2fr;gap:12px;align-items:end;margin:20px 0;border-top:1px solid #493629;padding-top:16px}.history-link-row label{margin:0}.history-link-row button{grid-column:2;justify-self:end}.history-dialog .actions{display:flex;gap:12px;margin-top:24px}.history-dialog .actions button{flex:1}#history-editor-status{white-space:pre-wrap}#history-status:empty,#history-original-date:empty{display:none}#history-more{margin-top:20px}@media(max-width:600px){.history-toolbar{align-items:stretch;flex-direction:column;gap:14px}.history-toolbar label{max-width:none}.history-form-grid,.history-link-row{grid-template-columns:1fr;gap:0}.history-link-row label{margin-bottom:16px}.history-link-row button{grid-column:1}.history-dialog{padding:20px}.history-body{padding-left:12px}.history-label{max-width:70px}.history-dialog .actions{flex-direction:column}}
.history-calendar-jump{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin:12px 0 20px}.history-calendar-jump label{font-size:12px;max-width:210px;margin:0}.history-calendar-jump input{min-height:36px;padding:6px 10px}.history-calendar-scroll{overflow:auto;border:1px solid #383029;border-radius:6px;scrollbar-color:#695443 #151412}.history-date-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));min-width:700px}.history-weekday{padding:12px;text-align:center;background:#211b17;color:#baa998;font-size:12px}.history-date-cell{padding:7px;min-height:120px;border-top:1px solid #383029;border-right:1px solid #383029;display:flex;flex-direction:column;gap:6px;min-width:0}.history-date-cell:nth-child(7n){border-right:0}.history-other-month{background:#11100f;color:#877c72}.history-other-month>.history-day-number{opacity:.5}.history-today{background:#211a15}.history-date-calendar .history-day-number{border:0;background:none;padding:3px;min-height:30px;align-self:flex-start;color:#c9b4a0}.history-date-calendar .history-date-event{display:flex;flex-direction:column;gap:4px;min-height:48px;text-align:left;width:100%;padding:7px 8px;line-height:1.3;border:0;border-left:2px solid #c87a3b;background:#36271d;color:#f0dfce}.history-date-event strong,.history-date-event span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.history-date-event strong{font-size:12px;font-weight:550}.history-date-event span{font-size:10px;color:#c6aa91}.history-date-week .history-date-cell{min-height:220px}.history-date-calendar details button{display:block;margin:10px 0}.history-popup-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:24px 0 12px}.history-popup-heading h3{margin:0;font-size:16px;font-weight:500}.history-popup-heading button{font-size:13px}.calendar-pupil-history{margin-top:24px;padding-top:8px;border-top:1px solid #47362a}.calendar-history-entries .history-entry{padding:18px 0}.calendar-history-entries .history-entry[open]{padding-bottom:24px}.calendar-history-entries .history-body{margin-left:0}.calendar-appointment-controls{margin-top:28px;border-top:1px solid #514034;padding-top:20px}.calendar-appointment-controls>summary{color:#d5c2b0}.calendar-appointment-controls form{max-width:650px}@media(max-width:600px){.history-calendar-jump{flex-wrap:wrap;gap:12px}.history-popup-heading{align-items:stretch;flex-direction:column}.history-popup-heading button{width:100%}.history-date-calendar .ldc-toolbar h3{font-size:16px}.history-date-grid{min-width:650px}.calendar-pupil-history{margin-top:18px}}

.history-discard-prompt{padding:16px;border:1px solid var(--copper,#c87a3b);border-radius:12px;margin-top:16px}.history-discard-prompt button{margin:4px 8px 4px 0}

.history-load-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:12px 0 16px}.history-load-actions p{margin:0}.history-load-actions button{min-height:44px;font-size:.85rem}.history-load-actions button[hidden]{display:none}@media(max-width:600px){.history-load-actions{align-items:stretch;flex-direction:column}.history-load-actions button{width:100%}}
