/* Native dialogs keep focus, Escape and top-layer semantics; only their visual changes. */
body dialog:not([popover]){position:fixed!important;inset:0 0 0 auto!important;margin:0!important;width:min(760px,100vw)!important;max-width:100vw!important;height:100dvh!important;max-height:100dvh!important;box-sizing:border-box;border:0!important;border-left:1px solid var(--ws-line,#e1e7ef)!important;border-radius:0!important;background:var(--ws-panel,#fff)!important;color:var(--ws-ink,#29384d)!important;box-shadow:-16px 0 60px #172c4b18!important;overflow:auto!important;overscroll-behavior:contain;transform:translateX(100%);opacity:0;transition:transform 280ms cubic-bezier(.32,.72,0,1),opacity 180ms ease-out,display 280ms allow-discrete,overlay 280ms allow-discrete}
body dialog[open]:not([popover]){transform:translateX(0);opacity:1}
@starting-style{body dialog[open]:not([popover]){transform:translateX(100%);opacity:0}}
body dialog::backdrop{background:rgb(20 35 55 / .36);opacity:0;transition:opacity 200ms ease-out,display 280ms allow-discrete,overlay 280ms allow-discrete}
body dialog[open]::backdrop{opacity:1}
@starting-style{body dialog[open]::backdrop{opacity:0}}
html:has(dialog:modal),body:has(dialog:modal){overflow:hidden!important}
body dialog :is(.noa-form-shell,.noa-form-main,.modalbody,.dialog-body,.staff-content){min-width:0}
body dialog .noa-form-layout{grid-template-columns:180px minmax(0,1fr)}
body dialog :is(.noa-form-head,.dialog-head,.wheel-head){position:sticky;top:0;z-index:2;background:var(--ws-panel,#fff)}
body dialog :is(.noa-form-foot,.dialog-foot,.wheel-foot){position:sticky;bottom:0;background:var(--ws-panel,#fff);z-index:2}
body dialog.time-wheel-dialog{width:min(400px,100vw)!important}
.noa-context-panel{padding:0!important}
.noa-context-head{position:sticky;top:0;z-index:2;display:flex;align-items:flex-start;gap:24px;justify-content:space-between;padding:24px;border-bottom:1px solid var(--ws-line,#e1e7ef);background:var(--ws-panel,#fff)}
.noa-context-head h2{font-size:22px;font-weight:500;margin:4px 0 0;line-height:1.4}
.noa-context-head small{color:var(--ws-muted,#617187)}
.noa-context-head button{flex-shrink:0;min-height:44px;min-width:44px;border:1px solid var(--ws-line,#e1e7ef);background:var(--ws-soft,#eff3f8);color:inherit;border-radius:8px;cursor:pointer}
.noa-context-body{padding:24px;overflow-wrap:anywhere}
.noa-context-body .report-day-details button{width:100%}
.noa-context-body .report-day-details button{display:flex;align-items:center;gap:12px;border:0;border-bottom:1px solid var(--ws-line);border-radius:0;background:transparent;color:inherit;padding:16px 0;text-align:left;cursor:pointer}
.noa-context-body .report-day-details button:hover{background:var(--ws-soft)}
.noa-context-body .report-day-details strong{flex:0 0 auto;margin-left:auto;font-size:13px;font-weight:500;white-space:nowrap}
.noa-context-body .report-day-details small{font-size:12px;color:var(--ws-muted)}
.noa-context-body .report-day-details span{flex:1;display:grid;gap:4px;min-width:80px}
.noa-context-body .report-day-details b{font-weight:500;font-size:14px}
body #plannerEditorSheet .planner-editor{border:0;box-shadow:none;margin:0;padding:24px;background:var(--ws-panel)}
body #plannerEditorSheet .planner-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
body #plannerEditorSheet .planner-editor-heading{position:sticky;top:0;background:var(--ws-panel);padding-bottom:20px}
.noa-notice-drawer:not([hidden]){animation:noa-sheet-notices 280ms cubic-bezier(.32,.72,0,1)}
@keyframes noa-sheet-notices{from{transform:translateX(100%);opacity:0}to{transform:none;opacity:1}}
.noa-preview{position:fixed;inset:auto;z-index:2147483647;width:max-content;max-width:min(340px,calc(100vw - 24px));max-height:min(360px,60dvh);overflow:auto;margin:0;padding:14px 16px;border:1px solid var(--ws-line,#dce4ef);border-radius:10px;background:var(--ws-panel,#fff);color:var(--ws-ink,#29384d);box-shadow:0 8px 30px #172c4b20;font:400 13px/1.65 system-ui,sans-serif;white-space:pre-line;opacity:1}
.noa-preview[hidden]{display:none!important}
@media(max-width:700px){body dialog :is(.noa-form-preview,.noa-form-aside,.noa-form-hero){display:none!important}body dialog :is(.noa-form-layout,.noa-form-shell){display:block!important}body dialog :is(.noa-form-head,.dialog-head,.wheel-head){padding:18px!important}.noa-context-head,.noa-context-body{padding:18px}body dialog :is(.noa-form-foot,.dialog-foot){flex-wrap:wrap;padding:14px!important;padding-bottom:max(14px,env(safe-area-inset-bottom))!important}body dialog :is(input,textarea,select){font-size:16px}}
@media(prefers-reduced-motion:reduce){body dialog:not([popover]),body dialog::backdrop{transition:none!important;transform:none!important}.noa-notice-drawer:not([hidden]){animation:none!important}}
