.stack{display:grid;gap:14px}.wf-brand,.wf-head,.month-nav,.actions{display:flex;align-items:center;gap:8px}
.wf-brand img{border-radius:10px}.wf-brand h1{font-size:1.28rem}.month-nav,.actions{flex-wrap:wrap}
.page-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:14px;flex-wrap:wrap}
.btn{min-height:44px}.wf-dialog{width:min(700px,calc(100% - 22px));max-height:calc(100dvh - 22px);padding:18px;border-radius:16px}
.wf-dialog::backdrop{background:#101a25bb}.dialog-head{justify-content:space-between;margin-bottom:12px}.dialog-head h2{margin:0}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(140px,100%),1fr));gap:10px}
.metrics .card{padding:12px}.metrics strong{font-size:1.25rem;margin-top:5px}
.legend,.label{font-size:.84rem;color:var(--muted)}.label{display:inline-block;border:1px solid var(--line);padding:2px 6px;border-radius:8px}
.calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.calendar .weekday{text-align:center;font-weight:700;padding:4px 0}
.day{display:grid;justify-items:center;align-content:center;min-height:54px;min-width:0;padding:3px;border-radius:9px}
.day[data-work]{background:var(--sage-bg);color:var(--sage-text)}
.day[data-reserve]{background:var(--blue-bg);color:var(--blue-text)}
.day[aria-pressed=true]{outline:2px solid var(--focus);outline-offset:-3px}
.day small{font-size:.72rem;line-height:1.15}.calendar-panel{padding:12px}
.record{padding:10px 0;border-bottom:1px solid var(--line);display:flex;gap:8px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.record p{margin:.35rem 0}.record .title{font-weight:700}.record:last-child{border-bottom:0}
.fields{display:grid;gap:9px;grid-template-columns:repeat(2,minmax(0,1fr))}
.field input,.field textarea,.field select{font-size:16px;min-height:42px;min-width:0}
summary{cursor:pointer;font-weight:700;padding-block:10px}#notice:empty,.form-error:empty{display:none}
#notice{margin-bottom:12px;padding:8px 12px;background:var(--selected);border-radius:10px}
#notice.error{background:var(--red-bg)}.annual-grid table{min-width:730px;table-layout:auto}
.annual-grid{overflow:auto;max-height:65vh}.annual-grid th:first-child{position:sticky;right:0;z-index:2;background:var(--table)}
.annual-grid thead th:first-child{z-index:3}.annual-grid td,.annual-grid th{padding:4px;text-align:center}
.breakdown{display:grid;gap:3px}.breakdown>div{display:flex;justify-content:space-between;gap:12px;padding:5px 0;border-bottom:1px solid var(--line)}
.auth-panel p{margin:0}.wf-dialog pre{white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:760px){.wf-dialog{padding:10px}.day{min-height:48px}.calendar-panel{padding:6px}.fields{grid-template-columns:1fr}.page-heading{margin-bottom:9px}.month-nav .btn{padding-inline:9px}}
