:root{--pearl:#f1f2f4;--paper:#fff;--ink:#37393d;--blue:#286bff;--action-ink:#37393d;--accent:#286bff;--line:#89a9df;font:16px/1.5 "Helvetica Neue",Helvetica,Arial,sans-serif;color:var(--ink);background:var(--pearl)}*{box-sizing:border-box}body{margin:0}header{display:flex;align-items:center;gap:24px;padding:20px 6%;background:var(--paper);border-bottom:1px solid var(--line)}.brand{font-size:38px;font-weight:300;letter-spacing:-.5px}header span:nth-child(2){font-size:12px;color:#666b73}header button{margin-left:auto}main{max-width:1100px;margin:auto;padding:36px 24px}h1{font-size:34px;font-weight:400}h2{font-size:22px;font-weight:400}.card{border:1px solid var(--line);background:var(--paper);padding:26px;margin:24px 0}.login{max-width:430px;margin:40px auto}label{display:block;margin:14px 0}input,select,button{font:inherit;padding:10px 14px;border:1px solid var(--line);border-radius:0;background:var(--paper);color:inherit}input,select{width:100%;display:block;margin-top:5px}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}.primary{font-weight:500}nav{display:flex;gap:10px;flex-wrap:wrap;margin:28px 0}nav button[aria-current=page]{text-underline-offset:5px}.muted{color:#666b73;font-size:14px}.bird{width:110px;height:110px;object-fit:contain}.status{display:flex;align-items:center;gap:20px;background:#e9ecf1}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;text-align:left}th,td{padding:12px;border-bottom:1px solid var(--line);white-space:nowrap}th{font-weight:400;color:#666b73}#message{position:sticky;bottom:0;margin:0;background:#37393d;color:white;text-align:center;padding:14px}#message:empty{display:none}.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}@media(max-width:600px){header{padding:16px;gap:12px}main{padding:20px 16px}.card{padding:18px}.form-grid{grid-template-columns:1fr}h1{font-size:28px}}

fieldset{border:1px solid var(--line);margin:20px 0;padding:14px}.check{display:flex;gap:10px;align-items:center}.check input{width:auto;margin:0}details{border-top:1px solid var(--line);padding:16px 0}summary{cursor:pointer}.invite-row{display:flex;align-items:center;justify-content:space-between;gap:14px;border-top:1px solid var(--line);padding:14px 0}#invite-result input{font-size:13px}

h1,h2,h3{color:var(--ink)}input:focus-visible,select:focus-visible,button:focus-visible{outline:2px solid #286bff;outline-offset:3px}.check input{accent-color:#286bff}#message[data-kind="error"]{background:#80513e}.confirmed{color:#37393d;background:#e5e9f0;padding:4px 8px}button[data-approve]{border-color:var(--line);color:#37393d;background:#e5e9f0}

#taxi-alert:not(:empty){margin-top:20px;padding:14px 18px;background:#e9ecf1;border:1px solid var(--line);color:#444a54}

/* Phone layout: controls remain reachable; wide tables scroll within their card. */
main,.card,.form-grid>*{min-width:0}button,input,select{min-height:44px}button{touch-action:manipulation}#connection{margin:0;padding:12px 20px;background:#e9ecf1;color:#444a54;border-bottom:1px solid var(--line)}#connection[hidden]{display:none}#message{overflow-wrap:anywhere;padding-bottom:max(14px,env(safe-area-inset-bottom))}
@media(max-width:600px){
 body{padding-bottom:env(safe-area-inset-bottom)}header{padding-top:max(12px,env(safe-area-inset-top));gap:10px}.brand{font-size:32px}header button{font-size:14px;padding:8px 12px}header span:nth-child(2){max-width:75px;line-height:1.3}main{padding:20px 14px}nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:20px 0}nav button{font-size:14px;padding:10px 8px}h1{margin:20px 0 12px}h2{font-size:21px}.card{padding:16px;margin:18px 0}.status{align-items:flex-start;gap:12px}.bird{width:66px;height:80px;flex-shrink:0}.status>div{min-width:0;flex:1}.status h2{margin-top:0}.status button{width:100%}.form-grid{gap:0}input,select{max-width:100%;font-size:16px}label{overflow-wrap:anywhere}.invite-row{align-items:flex-start;flex-wrap:wrap}.invite-row>div{min-width:0;overflow-wrap:anywhere}fieldset{min-width:0;padding:10px}th,td{padding:10px;font-size:14px}.login{margin:16px auto}
}

/* Silver-pearl foundation with blue lines and graphite controls. */
body{background:var(--pearl);color:var(--ink)}
nav button{background:var(--paper);border-color:var(--line);color:var(--action-ink)}
nav button[aria-current=page]{text-decoration:none}
h1{letter-spacing:-.025em;line-height:1.2}h2{line-height:1.3}
.status{border:1px solid var(--line)}
.bird{mix-blend-mode:multiply}
input:hover,select:hover{border-color:var(--blue)}
a{color:var(--action-ink);text-underline-offset:3px}
a:focus-visible,summary:focus-visible{outline:2px solid #286bff;outline-offset:3px}
.confirmed{display:inline-block;border:1px solid var(--line)}
input[type=checkbox]{accent-color:#286bff;min-height:20px;min-width:20px}
summary{min-height:44px;padding-block:9px}
@media(max-width:600px){.primary{min-height:48px}header{flex-wrap:wrap}.brand{letter-spacing:-.4px}h1{overflow-wrap:anywhere}nav button{line-height:1.35}.contact{min-width:0}}

.install-help{max-width:1052px;margin:0 auto 32px;padding:0 24px;color:var(--action-ink)}.install-help[hidden]{display:none}.install-help p{max-width:650px;font-size:14px}.install-help summary{font-size:14px}.install-help button[hidden]{display:none}

#library-list { margin-top: 1rem; overflow-wrap: anywhere; }
#library-list > * + * { border-top: 1px solid var(--line); }
#library-list > details, #library-list > div { padding: .75rem 0; }
#library-list summary { cursor: pointer; }
.library-body { white-space: pre-wrap; }
#library-editor textarea { width: 100%; box-sizing: border-box; font: inherit; }

/* Safari date controls must fit their card at every viewport width. */
#check-day {
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin-inline: auto;
    text-align: center;
}
#check-day::-webkit-date-and-time-value {
    min-width: 0;
    text-align: center;
}

.weekly-task {
    display: inline-block;
    padding: 3px 9px;
    background: #e5e9f0;
    border: 1px solid var(--line);
    color: var(--action-ink);
    font-size: 12px;
}
.checklist-history-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid var(--line);
    font-size: 14px;
}

#checklist-confirm {
    width: min(440px, calc(100% - 32px));
    box-sizing: border-box;
    padding: 24px;
    color: var(--ink);
    background: var(--pearl);
    border: 1px solid var(--line);
}
#checklist-confirm::backdrop { background: rgb(55 59 57 / 45%); }
.confirmation-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.checklist-greeting { background: #e5e9f0; }

/* Employee navigation stays within thumb reach; the account is always central. */
.employee-view main{position:relative}
.employee-view .account-menu{display:none}
.employee-view main>div.muted:first-child{display:none}
.employee-nav{position:fixed;z-index:20;bottom:0;left:0;right:0;display:grid;gap:0;margin:0}
.employee-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;border:0;font-size:11px;line-height:1.2;min-width:0}
.employee-nav svg,.news-button svg{width:24px;height:24px;flex-shrink:0}
.employee-nav button:not([aria-current=page]){background:var(--paper);box-shadow:none}
.news-button{display:flex;align-items:center;gap:8px;margin-bottom:24px;border:0;background:transparent;color:var(--action-ink)}
.quick-actions{display:flex;flex-wrap:wrap;gap:12px;margin:20px 0}
.employee-view #message:not(:empty){z-index:21}
.news-filters{display:flex;gap:8px;overflow-x:auto;padding:4px 2px 12px}
.news-filters button{white-space:nowrap;border-radius:24px;font-size:14px}
.checklist-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:20px}
.checklist-choices button{text-align:left;white-space:normal;min-height:76px}
.checklist-choices button:disabled{cursor:default;background:#e9ecf1;opacity:1;color:#666b73}
@media(max-width:600px){.checklist-choices{grid-template-columns:1fr}}

/* App wordmark supplied by the owner. */
.brand{display:flex;align-items:center;flex-shrink:0}.brand img{display:block;width:144px;height:75px;object-fit:contain}@media(max-width:600px){.brand img{width:116px;height:60px}}

/* Graphite actions; navigation uses a single active highlight. */
button,.primary,button[data-approve]{background:#37393d;color:#fff;border-color:var(--line)}button:hover:not(:disabled),.primary:hover:not(:disabled),button[data-approve]:hover:not(:disabled){background:#4a4e55;color:#fff}nav button,.news-button{background:var(--paper);color:var(--ink)}nav button[aria-current=page],.news-filters button[aria-pressed=true]{background:#37393d;color:#fff;border-color:var(--blue);box-shadow:inset 0 -3px var(--blue)}nav button[aria-current=page]:hover:not(:disabled){background:#4a4e55;color:#fff}.employee-nav button:not([aria-current=page]){background:var(--paper);color:var(--ink);box-shadow:none}#message[data-kind="success"]{background:#37393d}.login-intro{color:#666b73;margin-top:0}

/* Bottom navigation: only the selected icon changes colour. */
.employee-nav button,
.employee-nav button[aria-current=page],
.employee-nav button:hover:not(:disabled),
.employee-nav button[aria-current=page]:hover:not(:disabled){
 background:var(--paper);color:var(--ink);box-shadow:none;border:0;text-decoration:none;
 -webkit-tap-highlight-color:transparent;
}
.employee-nav button svg{color:var(--ink)}
.employee-nav button[aria-current=page] svg{color:var(--blue)}

/* Soft outlined controls; only the selected news topic has a dark fill. */
/* Keep rounded action buttons; hover must preserve each row's own corners. */
button,.primary,button[data-approve],nav:not(.employee-nav) button[aria-current=page]{border-radius:999px}
button,.primary,button[data-approve],
button:hover:not(:disabled),.primary:hover:not(:disabled),button[data-approve]:hover:not(:disabled),
nav:not(.employee-nav) button[aria-current=page],
nav:not(.employee-nav) button[aria-current=page]:hover:not(:disabled){
 background:transparent;color:var(--ink);box-shadow:none;
}
input:not([type=checkbox]):not([type=radio]),select{border-radius:22px}
.card,fieldset,#checklist-confirm{border-radius:22px}
.checklist-choices button:disabled{background:transparent;color:#666b73}
.news-filters button{border-radius:999px;background:transparent;color:var(--ink);box-shadow:none}
.news-filters button[aria-pressed=true],
.news-filters button[aria-pressed=true]:hover:not(:disabled){
 background:var(--ink);color:#fff;border-color:var(--ink);box-shadow:none;
}
.employee-nav button,.employee-nav button[aria-current=page],
.employee-nav button:hover:not(:disabled),.employee-nav button[aria-current=page]:hover:not(:disabled){
 background:transparent;color:var(--ink);box-shadow:none;
}

body:not(.employee-view) > header {
 background:var(--pearl);
 border-bottom-color:transparent;
}

/* Equal space above and below the sign-in card when the viewport allows it. */
body:has(> main #login) {
 display:grid;
 grid-template-rows:1fr auto auto 1fr auto;
}
body:has(> main #login) > header{grid-row:1;align-self:start}
body:has(> main #login) > #connection{grid-row:2}
main:has(#login) {
 grid-row:3;
 width:100%;
 margin:0 auto;
 padding-block:12px;
}
main:has(#login) > .login {
 max-width:360px;
 padding:20px;
 margin:0 auto;
}
.login:has(> #login) h1{font-size:28px;line-height:1.2;margin:0 0 8px}
.login:has(> #login) label{margin:12px 0}
body:has(> main #login) > .install-help{grid-row:4;align-self:end}
body:has(> main #login) > #message{grid-row:5}
body:has(> main #login) > #message[data-kind="error"] {
 background:var(--ink);
 padding-block:10px max(10px, env(safe-area-inset-bottom));
}
@media(max-height:600px){
 main:has(#login){padding-block:8px}
 body:has(> main #login) > .install-help{margin-bottom:8px}
}

/* Caption fits the letter height of the wordmark, excluding the dots. */
header .brand-caption{display:block;flex-shrink:0;font-size:12px;line-height:18px;height:54px;letter-spacing:.01em;font-weight:400;color:#666b73;transform:translateY(7px)}
@media(max-width:600px){header .brand-caption{line-height:14px;height:42px;transform:translateY(6px)}}

/* Icon-only navigation and sign out. Labels remain available to screen readers. */
header #logout,header #logout:hover:not(:disabled){border:0;border-radius:0;background:transparent;box-shadow:none;color:var(--ink);padding:8px;min-width:44px;min-height:44px;-webkit-tap-highlight-color:transparent}
header #logout svg{display:block;width:28px;height:28px}
header #logout:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
:is(#logout,[data-scene-logout]):active svg,
#logout.is-signing-out svg {
 stroke:var(--blue);
}
#logout.is-signing-out:disabled{opacity:1}

.recipe-actions{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}
.recipe-actions button,.recipe-common button{font-size:14px}
.recipe-common{padding:12px;background:var(--paper,#f1f2f4);border-radius:12px}
.recipe-card{overflow-wrap:anywhere}
#recipe-category{max-width:100%}

/* Reference library: consistent label/control spacing and a quiet title list. */
.library-filters{display:grid;gap:20px}
.library-filters>label{display:grid;gap:8px;margin:0;min-width:0}
.library-filters input,.library-filters select{margin:0;min-height:46px}
.library-card #library-list{margin-top:20px}
.library-card #library-list>.recipe-card{border-top:0;padding:12px 0}
.library-card #library-list>.recipe-card>summary{line-height:1.5}

/* Weekly staffing: seven days, two AB places and weekend master reinforcement. */
body.schedule-page main{max-width:1480px}
.schedule-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin:32px 0 18px}
.schedule-heading h1{margin:4px 0 0}.eyebrow{font-size:12px;letter-spacing:.1em;text-transform:uppercase;color:#666b73;margin:0}
.week-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.week-controls>span{font-size:15px;min-width:145px;text-align:center}.week-controls button{padding:8px 12px}
.schedule-legend{display:flex;gap:24px;flex-wrap:wrap;font-size:13px;color:#666b73;margin:16px 0}
.schedule-wrap{border:1px solid var(--line);background:var(--paper);margin-top:18px;border-radius:12px;isolation:isolate}
.week-table{min-width:1120px;table-layout:fixed;border-collapse:separate;border-spacing:0}
.week-table th,.week-table td{white-space:normal;padding:10px;border-right:1px solid #dfe5ee;border-bottom:1px solid #dfe5ee;vertical-align:top}
.week-table thead th{height:95px;background:#f5f6f8;color:var(--ink);font-size:13px;text-align:left}
.week-table thead th>span,.week-table thead strong,.week-table thead small{display:block}.week-table thead strong{font-size:17px;font-weight:500;margin:3px 0}.week-table thead small{font-size:11px}
.week-table thead th.is-today{background:#286bff;color:#fff}
.week-table .place-label{width:106px;position:sticky;left:0;z-index:1;background:#f5f6f8}.week-table tbody .place-label{padding:20px 12px;color:var(--ink)}.place-label span{font-weight:500;font-size:14px}.place-label small{display:block;color:#666b73;font-size:11px;margin-top:6px}
.week-table td{height:160px}.week-table .today-column{background:#eef4ff;border-left:1px solid var(--blue);border-right:1px solid var(--blue)}.week-table tr:last-child>*{border-bottom:0}.week-table tr>*:last-child{border-right:0}
.schedule-assignment{display:flex;flex-direction:column;align-items:flex-start;gap:10px;white-space:normal;text-align:left;width:100%;min-height:137px;padding:12px 9px;border:1px solid #dfe5ee;border-radius:8px;background:#fff;color:var(--ink);font-size:12px;line-height:1.4;overflow-wrap:anywhere}
button.schedule-assignment:hover:not(:disabled){border-color:var(--blue);background:#f6f8ff;color:var(--ink)}.schedule-assignment strong{font-size:15px;font-weight:500}.schedule-assignment .muted{font-size:11px}.schedule-assignment+.schedule-assignment{margin-top:8px}
.schedule-actual{color:#1455db;font-weight:600}.schedule-actual::before{content:'●';font-size:8px;margin-right:6px;vertical-align:middle}
.empty-assignment{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-height:137px;width:100%;background:transparent;color:#666b73;border:1px dashed var(--line);border-radius:8px;font-size:12px}.empty-assignment>span{font-size:23px;font-weight:300}.empty-assignment:hover:not(:disabled){background:#f5f8ff;color:#1455db;border-color:#286bff}
.week-table .unused-place{background:#f7f8fa;color:#b4bac4;text-align:center;vertical-align:middle}.schedule-footnote{font-size:12px;line-height:1.6;margin-bottom:24px}
.plan-dialog{width:min(520px,calc(100vw - 32px));max-height:90vh;overflow:auto;border:1px solid var(--line);border-radius:14px;padding:28px;background:#fff;color:var(--ink)}.plan-dialog::backdrop{background:#1e26396b}.plan-dialog h2{margin-top:0}.dialog-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:24px}.dialog-actions button{font-size:14px}#remove-plan{background:transparent;color:#666b73}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.team-member>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.team-member>summary strong{font-weight:500}.access-badge{display:inline-block;padding:5px 9px;border:1px solid #d7dce5;border-radius:20px;font-size:11px;color:#666b73;background:#f5f6f8}.access-confirmed{border-color:var(--line);color:#1455db;background:#eef4ff}.invite-access{margin-top:22px}.invite-access>summary{color:#1455db}
@media(max-width:700px){.schedule-heading{align-items:flex-start;flex-direction:column;margin-top:24px;gap:16px}.week-controls{gap:6px}.week-controls>span{min-width:125px;font-size:14px}.schedule-legend{gap:8px;flex-direction:column}.week-table .place-label{width:86px}.week-table{min-width:1070px}.plan-dialog{padding:20px}.team-member>summary{align-items:flex-start;gap:8px}}

.time-history-filter{display:flex;align-items:flex-end;gap:16px;flex-wrap:wrap}.time-history-filter label{flex:1;min-width:180px;margin:0}.time-history-filter button{margin:0}
.shift-mark-fields{border:0;margin:16px 0;padding:0;min-inline-size:0}
.shift-mark-fields legend{padding:0}
.shift-mark-inputs{display:grid;grid-template-columns:minmax(0,1fr) minmax(92px,8rem);gap:12px}
.shift-mark-inputs label{min-width:0;margin:6px 0 0;color:#666b73;font-size:13px}
.shift-mark-inputs input{width:100%;min-width:0;min-height:46px;font-size:16px;color:var(--ink)}
.time-history-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.time-history-heading h2{margin:0 0 4px}.time-history-times{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:24px 0}.time-history-times span{display:block;color:#666b73;font-size:13px}.time-history-times strong{display:block;margin-top:6px;font-size:18px;font-weight:500;color:#1455db}.time-edited{padding:12px 16px;border-left:3px solid #286bff;background:#eef4ff;font-size:14px}.time-events ol{padding-left:22px}.time-events li{padding:14px 0 14px 12px;border-bottom:1px solid #dfe5ee}.time-events li p{margin:6px 0;overflow-wrap:anywhere}.time-events .is-correction{border-left:2px solid #286bff}.time-history-card button{margin-top:12px}#time-correction textarea{width:100%;font:inherit;padding:12px;border:1px solid var(--line)}
@media(max-width:600px){.time-history-times{grid-template-columns:1fr;gap:14px}.time-history-filter{align-items:stretch}.time-history-filter label{min-width:100%}.time-history-filter input,.time-history-filter select,#time-correction input{max-width:100%;min-width:0}.time-history-times strong{font-size:17px}}

button.section-back{display:inline-flex;align-items:center;gap:8px;min-height:44px;margin:0 0 16px;padding:8px 12px 8px 6px;border:0;background:transparent;color:var(--ink);border-radius:8px;font-size:15px}
button.section-back svg{width:24px;height:24px;flex-shrink:0}button.section-back:hover:not(:disabled){background:#e7edf8;color:#1455db}
@media(max-width:600px){button.section-back{margin:0 0 12px;min-width:96px}}

/* Responsive PWA shell: compact phones, large iPhones and expanded foldable displays. */
:root{-webkit-text-size-adjust:100%;text-size-adjust:100%;color-scheme:light}
html{min-height:100%;scroll-padding-top:16px;scroll-padding-bottom:calc(var(--bottom-nav-height,80px) + 24px)}
body{min-height:100vh;min-height:100dvh}
header{padding-left:max(6%,env(safe-area-inset-left));padding-right:max(6%,env(safe-area-inset-right));padding-top:max(20px,env(safe-area-inset-top))}
main{padding-left:max(24px,env(safe-area-inset-left));padding-right:max(24px,env(safe-area-inset-right))}
input,select,textarea{box-sizing:border-box;min-width:0;max-width:100%}
textarea{font:inherit;padding:12px;min-height:88px;border:1px solid var(--line);border-radius:12px}
button,summary,a,input,select,textarea{-webkit-tap-highlight-color:transparent}
img,svg{max-width:100%}.card p,.card h2,.card strong,.card summary{overflow-wrap:anywhere}
input[type=date],input[type=time],input[type=month],input[type=datetime-local]{-webkit-appearance:none;appearance:none;max-width:100%;min-width:0;min-height:46px}
input::-webkit-date-and-time-value{min-height:1.5em;text-align:left}
.table-wrap,.news-filters{max-width:100%;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
.employee-nav{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);padding-left:max(8px,env(safe-area-inset-left),calc((100vw - 760px)/2));padding-right:max(8px,env(safe-area-inset-right),calc((100vw - 760px)/2))}
.employee-view main{padding-bottom:calc(var(--bottom-nav-height,88px) + 24px)}
.employee-view #message:not(:empty){bottom:calc(var(--bottom-nav-height,88px) + 8px)}
.employee-view .install-help{margin-bottom:calc(var(--bottom-nav-height,88px) + 24px)}
.install-help{padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right))}
.plan-dialog,#checklist-confirm{max-width:calc(100vw - max(16px,env(safe-area-inset-left)) - max(16px,env(safe-area-inset-right)));max-height:calc(var(--visible-height,100vh) - 32px);overflow-y:auto;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch}
.keyboard-open .employee-nav{display:none}
.keyboard-open .plan-dialog[open],.keyboard-open #checklist-confirm[open]{position:fixed;top:calc(var(--visual-top,0px) + 12px);bottom:auto;left:0;right:0;margin:0 auto;max-height:calc(var(--visible-height,100vh) - 24px)}
@media(any-pointer:coarse){input,select,textarea{font-size:16px!important}button,input,select,summary{min-height:44px}.dialog-actions button,.confirmation-actions button{min-height:48px}}
@media(max-width:700px){header{padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right));padding-top:max(12px,env(safe-area-inset-top))}main{padding-left:max(14px,env(safe-area-inset-left));padding-right:max(14px,env(safe-area-inset-right))}.plan-dialog,#checklist-confirm{padding:20px}.dialog-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.dialog-actions button{white-space:normal}.dialog-actions button:last-child:nth-child(odd){grid-column:1/-1}.quick-actions button{flex:1 1 150px}.news-filters button{min-height:44px}}
.schedule-scroll-hint{font-size:12px;color:#666b73;margin:8px 0}.schedule-scroll-hint[hidden]{display:none}
@media(max-width:360px){header{gap:8px}.brand img{width:100px;height:54px}header .brand-caption{font-size:11px}.week-controls{gap:4px}.week-controls button{padding:8px 10px}.week-controls>span{min-width:118px}h1{font-size:26px}.card{padding:14px}.plan-dialog,#checklist-confirm{padding:16px}}
@media(max-height:500px) and (orientation:landscape){header{padding-top:max(8px,env(safe-area-inset-top));padding-bottom:8px}.brand img{height:48px}.plan-dialog,#checklist-confirm{padding:16px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}


/* Approved light-gray design: raised home cards and a straight, compact shelf. */
:root{--app-surround:var(--pearl);--app-shell-radius:28px}
header{border-bottom-color:var(--pearl)}
.card.home-shift,.card.home-arrivals{background:var(--paper);border:0;box-shadow:0 12px 26px -10px #22345635,0 3px 7px #2234560b;transform:translateY(-2px)}
.employee-nav{padding-top:0;padding-bottom:var(--nav-safe-bottom,env(safe-area-inset-bottom,0px));min-height:48px;border-top:1px solid var(--pearl);border-radius:0;align-items:center;background:var(--paper);box-shadow:none}
.employee-nav button{height:48px;min-height:44px;padding:0 2px;align-items:center;justify-content:center}
.employee-nav button svg{width:28px;height:28px}
nav.employee-nav button[aria-current=page],nav.employee-nav button[aria-current=page]:hover:not(:disabled){background:radial-gradient(circle at center,#eef3ff 0 20px,transparent 21px)}
@media(any-pointer:coarse){
 /* A non-interactive corner mask shapes the app viewport without changing scroll or dialog behavior. */
 html::after{content:"";position:fixed;inset:0;z-index:30;border-radius:0 var(--app-shell-radius) var(--app-shell-radius) 0;border:0;background:radial-gradient(circle at left bottom,transparent var(--app-shell-radius),var(--app-surround) calc(var(--app-shell-radius) + .5px)) right top/var(--app-shell-radius) var(--app-shell-radius) no-repeat,radial-gradient(circle at left top,transparent var(--app-shell-radius),var(--app-surround) calc(var(--app-shell-radius) + .5px)) right bottom/var(--app-shell-radius) var(--app-shell-radius) no-repeat;pointer-events:none}
}

#time-correction input:disabled{opacity:1;color:#666b73;background:#f1f2f4;cursor:not-allowed}#time-correction .correction-error{color:#9c3026;background:#fff0ee;border:1px solid #d9a29a;padding:12px;overflow-wrap:anywhere}#time-correction .correction-error:empty{display:none}

/* Responsibility and punctuality follow the shared pearl-and-blue app palette. */
.responsibility-badge{display:inline-block;padding:3px 9px;border:1px solid var(--line);background:var(--paper);color:var(--ink);font-size:12px;line-height:1.5;font-weight:400;vertical-align:middle}
.responsibility-badge.is-pending{background:var(--pearl)}
.responsibility-note{margin:16px 0;border:1px solid var(--line);padding:10px 14px}
.responsibility-note summary{display:flex;align-items:center}
.responsibility-rule>summary,.responsibility-incident>summary{overflow-wrap:anywhere}
.responsibility-rule:first-child{border-top:0}
.responsibility-rule>summary .responsibility-badge,.responsibility-incident>summary .responsibility-badge{margin:4px 0 4px 8px}
.responsibility-rule h3,.responsibility-incident h3{font-size:16px;font-weight:500;margin:20px 0 6px}
.responsibility-text{white-space:pre-wrap;overflow-wrap:anywhere}
.responsibility-tabs,.responsibility-actions,.responsibility-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.responsibility-tabs{margin:24px 0 12px}
.responsibility-tabs button[aria-pressed=true]{background:var(--ink);color:var(--paper);border-color:var(--ink)}
#responsibility-editor textarea,[data-punctuality-exception] textarea{display:block;width:100%;max-width:100%;font:inherit;padding:12px;border:1px solid var(--line);background:var(--paper);color:var(--ink);resize:vertical}
#responsibility-editor textarea:focus-visible,[data-punctuality-exception] textarea:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
.responsibility-history{padding:12px 0;border-top:1px solid var(--line)}
.punctuality-value{margin:16px 0 8px}
.punctuality-shift{padding:18px 0;border-top:1px solid var(--line);overflow-wrap:anywhere}
.punctuality-shift:first-of-type{border-top:0}
.responsibility-row{justify-content:space-between}
@media(max-width:600px){.responsibility-rule>summary .responsibility-badge,.responsibility-incident>summary .responsibility-badge{margin-left:0}.responsibility-actions>*{flex:1 1 160px}.responsibility-note{padding:8px 12px}#responsibility-editor textarea,[data-punctuality-exception] textarea{font-size:16px}.responsibility-tabs>*{flex:1 1 120px}}

.knowledge-photo{margin:16px 0}.knowledge-photo img{display:block;width:100%;height:auto;border-radius:14px}.knowledge-photo figcaption{font-size:13px;margin-top:8px;color:var(--muted,#687080)}

.checklist-camera{width:min(520px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow-y:auto;border:0;border-radius:22px;padding:20px}
.checklist-camera::backdrop{background:rgb(30 35 35 / 60%)}
.checklist-camera video,.checklist-camera img{width:100%;max-height:50dvh;object-fit:contain;background:#182020;border-radius:12px}
.checklist-report-thumb{width:110px;height:85px;object-fit:cover;border-radius:10px;margin:8px 8px 8px 0}

.home-arrivals .home-history-link{display:block;width:100%;margin-top:20px;white-space:normal;text-align:center}

/* Keep home text aligned with the next card; the bird sits beside the copy. */
.home-shift{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start}
.home-shift h2{margin-top:0}
.home-shift p{margin-bottom:0}
.home-shift .bird{justify-self:end}
.home-shift #clock{grid-column:1/-1;width:100%}

/* Correction notices occupy their own row below attendance times. */
span.time-edited{display:block;margin-top:12px;overflow-wrap:anywhere}

#clock-out-confirm .dialog-actions{display:flex;flex-direction:column}#clock-out-confirm .dialog-actions button{width:100%;min-height:48px;white-space:normal}#clock-out-error:empty{display:none}#clock-out-error{color:#9c3026;overflow-wrap:anywhere}

/* Employee home: compact shift, checklist steps and assigned tasks. */
.employee-view header .brand img{width:88px;height:46px}
.employee-view header .brand-caption{display:none}
.employee-view.home-page .card{border:0;background:var(--paper);box-shadow:0 12px 26px -10px #22345635,0 3px 7px #2234560b}
.home-page .home-shift{display:block;transform:none}
.home-shift-heading,.home-shift-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}
.home-shift-heading h2{margin:0}.home-shift-heading p{margin:0;font-size:13px;color:#666b73}
.home-shift-actions{margin-top:16px}.home-shift-actions #clock{width:60%}.home-shift-actions [data-page]{border:0;padding:10px 0;font-size:14px}
.home-section-label{font-size:14px;color:#666b73;margin:24px 0 10px}
button.home-step{display:flex;align-items:center;gap:12px;text-align:left;width:100%;border-radius:22px;white-space:normal;margin:12px 0;padding:18px}
.home-step-marker{display:grid;place-items:center;flex-shrink:0;width:30px;height:30px;border-radius:50%;background:#eef3ff;color:#286bff;font-size:14px}
.home-step>span:nth-child(2){flex:1;min-width:0}.home-step strong{display:block;font-weight:400;font-size:16px}.home-step small{display:block;margin-top:6px;font-size:13px;color:#666b73}
.home-task summary{font-size:16px}.home-task textarea,#personal-task-create textarea{width:100%;font:inherit;border:1px solid var(--line);border-radius:12px;padding:10px;box-sizing:border-box}
.employee-view #taxi-alert{display:none}
/* Match approved home mockup: compact typography and plain secondary links. */
.employee-view.home-page header{background:var(--pearl);border:0;padding:12px 18px 0;gap:12px}
.employee-view.home-page header .brand img{width:88px;height:46px}
.employee-view.home-page main{padding:18px 18px calc(var(--bottom-nav-height,88px) + 24px)}
.employee-view.home-page main>h1{font-size:25px;line-height:1.25;font-weight:400;margin:0 44px 4px 0;letter-spacing:0}
.employee-view.home-page main>h1+p{font-size:13px;line-height:1.45;color:#686c74;margin:0}
.employee-view.home-page main>.news-button{position:absolute;right:18px;top:12px;margin:0;padding:8px;min-width:44px;min-height:44px;background:transparent;border:0;box-shadow:none}
.employee-view.home-page .news-button span{display:none}
.employee-view.home-page main>button[data-page="terms"]{border:0;border-radius:0;background:transparent;padding:0;min-height:44px;margin:4px 0 10px;font-size:14px;text-align:left}
.employee-view.home-page .card{padding:18px;border-radius:22px;margin:18px 0;line-height:1.45}
.employee-view.home-page .home-shift{margin-top:0}
.employee-view.home-page .home-shift-heading{flex-wrap:wrap;gap:4px 12px}
.employee-view.home-page .home-shift-heading h2{font-size:19px;line-height:1.25;margin:0}
.employee-view.home-page .home-shift-heading p{font-size:13px;line-height:1.45}
.employee-view.home-page .home-shift-actions{margin-top:12px;gap:16px}
.employee-view.home-page .home-shift-actions #clock{font-size:16px;font-weight:400;min-height:46px;padding:10px 14px;width:60%}
.employee-view.home-page .home-shift-actions [data-page]{flex:1;text-align:center;font-size:14px;font-weight:400}
.employee-view.home-page .home-section-label{font-size:14px;line-height:1.45;font-weight:400;margin:24px 0 10px}
.employee-view.home-page .home-step strong{font-size:16px;line-height:1.35}
.employee-view.home-page .home-step small{font-size:13px;line-height:1.45;margin-top:6px}
.employee-view.home-page main>section.card:not(.home-shift)>h2{font-size:18px;line-height:1.25;font-weight:400;margin:0 0 8px}
.employee-view.home-page main>section.card>button[data-page="responsibility"],.employee-view.home-page main>section.card>button[data-page="review"]{border:0;border-radius:0;background:transparent;padding:0;min-height:36px;font-size:14px;font-weight:400;text-align:left}

/* Approved quiet home: one checklist surface and a consistent type scale. */
.employee-view.home-page{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:16px;line-height:1.45}
.employee-view.home-page header{padding:20px 20px 0}
.employee-view.home-page main{padding:22px 20px calc(var(--bottom-nav-height,88px) + 26px)}
.employee-view.home-page main>h1{font-size:26px;line-height:1.2;margin-bottom:6px;letter-spacing:-.02em}
.employee-view.home-page main>h1+p{font-size:13px;line-height:1.45}
.employee-view.home-page main>button[data-page="terms"]{font-size:13px;min-height:44px;margin:4px 0 16px;padding:10px 0}
.employee-view.home-page .card{padding:20px;border-radius:20px;margin:18px 0;box-shadow:0 8px 20px -8px #22345628}
.employee-view.home-page .home-shift{margin-top:0}
.employee-view.home-page .home-shift-heading{align-items:baseline}
.employee-view.home-page .home-shift-heading h2{font-size:18px;font-weight:400;line-height:1.3}
.employee-view.home-page .home-shift-actions{margin-top:16px;gap:12px}
.employee-view.home-page .home-shift-actions #clock{width:58%;font-size:16px;font-weight:400}
.employee-view.home-page main>.home-checklists.card>h2{font-size:18px;line-height:1.3;margin:0 0 4px}
.employee-view.home-page .home-checklists .home-step{background:transparent;border:0;border-radius:0;box-shadow:none;padding:16px 0;margin:0;min-height:76px}
.employee-view.home-page .home-checklists .home-step+.home-step{border-top:1px solid #edf0f3}
.employee-view.home-page .home-step-marker{width:28px;height:28px;font-size:13px}
.employee-view.home-page .home-step strong{font-size:16px;font-weight:400;line-height:1.35}
.employee-view.home-page .home-step small{font-size:13px;line-height:1.45;margin-top:4px}
.employee-view.home-page button.home-responsibility{display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;text-align:left;padding:18px 20px;white-space:normal;font-weight:400}
.home-responsibility strong{display:block;font-size:18px;font-weight:400;line-height:1.3}
.home-responsibility small{display:block;font-size:13px;color:#686c74;margin-top:4px;line-height:1.45}
@media(max-width:380px){.employee-view.home-page main{padding-left:18px;padding-right:18px}.employee-view.home-page .card{padding:18px}}
/* Shared employee typography and mobile spacing, aligned with quiet home. */
.employee-view{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:16px;line-height:1.45}
.employee-view header{background:var(--pearl);border:0;padding:20px 20px 0;gap:12px}
.employee-view main{padding:22px 20px calc(var(--bottom-nav-height,88px) + 26px)}
.employee-view main h1{font-size:26px;line-height:1.2;letter-spacing:-.02em;font-weight:400;margin:0 0 18px}
.employee-view main h2,.employee-view dialog h2{font-size:18px;line-height:1.3;font-weight:400;margin:0 0 12px}
.employee-view main h3{font-size:16px;line-height:1.35;font-weight:500;margin:18px 0 8px}
.employee-view main h1::first-letter,.employee-view main h2::first-letter{text-transform:uppercase}
.employee-view main>.news-button{position:absolute;right:20px;top:14px;min-height:44px;min-width:44px;border:0;background:transparent;box-shadow:none;margin:0;padding:8px}
.employee-view main>.news-button span{display:none}
.employee-view #section-back{min-height:44px;margin:0 44px 12px 0;padding:8px 0;font-size:14px}
.employee-view main .card{background:var(--paper);border:0;border-radius:20px;padding:20px;margin:18px 0;box-shadow:0 8px 20px -8px #22345628}
.employee-view .card p{margin:0 0 12px}.employee-view .card p:last-child{margin-bottom:0}
.employee-view .muted,.employee-view .card small{font-size:13px;line-height:1.45;color:#686c74}
.employee-view label{font-size:14px;line-height:1.45;margin:14px 0}
.employee-view input:not([type=checkbox]):not([type=radio]),.employee-view select,.employee-view textarea{font-size:16px;line-height:1.45;min-height:46px;padding:10px 14px;border-radius:14px}
.employee-view textarea{min-height:100px}
.employee-view button{font-size:14px;line-height:1.45;font-weight:400;white-space:normal}
.employee-view .check{font-size:16px;line-height:1.45;align-items:flex-start;gap:10px}
.employee-view .check input{margin-top:2px;flex-shrink:0}
.employee-view .checklist-choices{gap:12px;margin-top:16px}
.employee-view .checklist-choices button{font-size:16px;line-height:1.35;padding:14px 16px;border-radius:16px}
.employee-view .library-filters{gap:16px}.employee-view .library-filters>label{margin:0}
.employee-view .library-body{font-size:16px;line-height:1.5}
.employee-view .plan-dialog,.employee-view #checklist-confirm{padding:20px;border:0;border-radius:20px}
.employee-view .time-history-times{gap:16px;margin:18px 0}.employee-view .time-history-times strong{font-size:18px;font-weight:400}
.employee-view .time-history-heading{gap:12px}.employee-view .time-history-heading h2{margin-bottom:4px}
.employee-view .time-edited{font-size:13px;line-height:1.45;border-radius:0 12px 12px 0}
.employee-view .schedule-heading{margin:0 0 18px;gap:16px}.employee-view .schedule-heading h1{margin:4px 0 0}
.employee-view .schedule-wrap{max-width:100%;border:0;border-radius:20px;box-shadow:0 8px 20px -8px #22345628}
.employee-view .week-controls{gap:8px}.employee-view .week-controls>span{font-size:14px}
.employee-view .week-table button{font-size:12px}.employee-view .week-table .muted{font-size:12px}
.employee-view .install-help{padding:0 20px}.employee-view .install-help summary{font-size:13px}
/* Preserve the approved home card hierarchy and its unboxed checklist rows. */
.employee-view.home-page main>h1{margin:0 44px 6px 0}
.employee-view.home-page .home-shift{margin-top:0}
.employee-view.home-page .home-shift-heading h2{margin:0;line-height:1.3}
.employee-view.home-page .home-shift-heading p{margin:0;font-size:13px}
.employee-view.home-page .home-shift-actions #clock{font-size:16px}
.employee-view.home-page main>.home-checklists.card>h2{margin:0 0 4px;line-height:1.3}
.employee-view.home-page .home-section-label{font-size:14px;line-height:1.45;margin:24px 0 10px}
.employee-view.home-page button.home-responsibility{padding:18px 20px;font-size:16px}
.employee-view.home-page .home-responsibility small{margin-top:4px}
.employee-view .employee-nav button{padding:0 2px;white-space:normal}
@media(max-width:380px){.employee-view header{padding-left:18px;padding-right:18px}.employee-view main{padding-left:18px;padding-right:18px}.employee-view main .card{padding:18px}}
.employee-view .card>[data-check-back]{margin-bottom:12px}
@media(max-width:700px){.employee-view main>.news-button,.employee-view.home-page main>.news-button{top:-46px;right:68px}.employee-view.home-page main>h1{margin-right:0}}

/* Approved AB layout: common heading baseline and consistent title/caption spacing. */
.header-actions{display:flex;align-items:center;gap:4px;margin-left:auto;flex-shrink:0}
.header-actions button,.header-actions #logout{display:flex;align-items:center;justify-content:center;width:44px;height:44px;min-height:44px;margin:0;padding:8px;border:0;background:transparent;box-shadow:none}
.header-actions button[hidden]{display:none}
.header-actions svg{display:block;width:28px;height:28px}
.employee-view header,.employee-view.home-page header{flex-wrap:nowrap;padding:20px 20px 0;gap:12px}
.employee-view main,.employee-view.home-page main{padding:22px 20px calc(var(--bottom-nav-height,88px) + 26px)}
.employee-view .page-heading{margin:0 0 18px;min-height:32.5px}
.employee-view .page-heading h1{font-size:26px;line-height:1.25;font-weight:400;margin:0;letter-spacing:-.02em}
.employee-view .page-heading:has(+p),.employee-view .page-heading:has(+.section-text-link){margin-bottom:8px}
.employee-view .page-heading+p{margin:0 0 8px;font-size:13px;line-height:1.45}
.employee-view button.section-text-link,.employee-view.home-page main>button[data-page="terms"]{display:block;min-height:44px;margin:0 0 16px;padding:10px 0;border:0;border-radius:0;background:transparent;box-shadow:none;text-align:left;font-size:13px;line-height:1.45}
.employee-view main h2,.employee-view.home-page .home-shift-heading h2,.employee-view.home-page main>.home-checklists.card>h2,.employee-view .home-responsibility strong{font-size:19px;font-weight:400;line-height:1.35;margin:0 0 8px}
.employee-view.home-page .home-shift-heading{display:grid;gap:8px;align-items:start}
.employee-view.home-page .home-shift-heading h2,.employee-view.home-page .home-shift-heading p{margin:0}
.employee-view.home-page .home-shift-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:24px;align-items:center;margin-top:20px}
.employee-view.home-page .home-shift-actions #clock{grid-column:auto;width:100%;margin:0;min-height:44px}
.employee-view.home-page .home-shift-actions [data-page="time_history"]{min-width:80px;justify-self:end;text-align:right;white-space:nowrap;border:0;background:transparent;box-shadow:none;padding:10px 0;margin:0}
.employee-view .home-step,.employee-view.home-page .home-checklists .home-step{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:64px;width:100%;padding:16px 0;margin:0;border:0;border-radius:0;background:transparent;box-shadow:none;text-align:left}
.employee-view .home-step+ .home-step{border-top:1px solid #edf0f3}
.employee-view .home-step>span:first-child{flex:1;min-width:0}
.employee-view .home-step>span:last-child{flex:none}
.employee-view .home-step strong{display:block;font-size:16px;font-weight:400;line-height:1.35}
.employee-view .home-step small,.employee-view.home-page .home-step small,.employee-view.home-page .home-responsibility small{display:block;font-size:13px;line-height:1.45;margin-top:8px}
.employee-view .home-responsibility strong{margin:0}
.employee-view .home-missed .missed-count{font-size:36px;line-height:1.2;margin:16px 0 0}
.employee-view .missed-count span{font-size:13px;color:#686c74}
.employee-view .schedule-heading{display:block;margin:16px 0 12px}
.employee-view .week-controls{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:12px;width:100%}
.employee-view .week-controls>span{min-width:0;text-align:center;font-size:14px}
.employee-view .week-controls>button{width:44px;height:44px;min-height:44px;border-radius:50%;padding:0;margin:0;font-size:20px;line-height:1}
.employee-view .schedule-heading>[data-week-today]{display:block;border:0;background:transparent;box-shadow:none;padding:8px 0;margin:4px auto 0}
.employee-view .schedule-scroll-hint{display:flex;align-items:center;gap:8px;margin:12px 0;font-size:13px;line-height:1.45}
.employee-view .schedule-scroll-hint svg{flex-shrink:0}
.employee-view .duty-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:16px}
.employee-view .duty-transfer{margin-top:16px}
.employee-view .duty-transfer summary{font-size:14px}
.employee-view .recipe-card summary{margin-bottom:8px}
@media(max-width:600px){
 .employee-view header,.employee-view.home-page header{padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right))}
 .employee-view main,.employee-view.home-page main{padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right))}
}

/* Reference sections follow the approved category → list → full material layout. */
.reference-search{display:block;font-size:14px;margin:14px 0}
.reference-search input,.employee-view .reference-search input:not([type=checkbox]){display:block;width:100%;min-width:0;min-height:44px;margin-top:6px;padding:10px 12px;border-radius:16px;font-size:16px}
.reference-menu,.reference-article,.reference-method-card,.employee-view main .reference-menu,.employee-view main .reference-article,.employee-view main .reference-method-card{border:0;border-radius:22px;background:#fff;padding:20px;margin:18px 0;box-shadow:0 8px 20px -8px #22345628}
.reference-menu .reference-menu-link,.employee-view .reference-menu .reference-menu-link{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:44px;padding:16px 0;margin:0;border:0;border-top:1px solid #e3e6eb;border-radius:0;background:transparent;box-shadow:none;text-align:left;font-size:15px;line-height:1.4;font-weight:400;white-space:normal}
.reference-menu .reference-menu-link:first-child,.employee-view .reference-menu .reference-menu-link:first-child{border-top:0;padding-top:0}
.reference-menu .reference-menu-link:last-child,.employee-view .reference-menu .reference-menu-link:last-child{padding-bottom:0}
.reference-label{display:grid;gap:8px;min-width:0;overflow-wrap:anywhere}
.reference-label>span{display:block}
.reference-label small,.employee-view .reference-label small{display:block;margin:0;font-size:13px;line-height:1.4;color:#686c74}
.reference-menu-link svg{flex-shrink:0;width:20px;height:20px}
.reference-back,.employee-view button.reference-back{display:block;min-height:44px;padding:10px 0;margin:0 0 8px;border:0;background:transparent;box-shadow:none;text-align:left;font-size:13px}
.reference-category-title{margin:0 0 8px;font-size:19px;font-weight:400;line-height:1.35}
.reference-method-card details{border:0;padding:0}
.reference-method-card summary{padding:0;min-height:24px;font-size:15px;line-height:1.4}
.reference-method-card details[open] summary{margin-bottom:8px}
.reference-article .reference-topic,.employee-view .reference-article .reference-topic{margin:0 0 8px;font-size:13px;color:#686c74}
.reference-article h2{margin:0 0 8px;font-size:19px;font-weight:400;line-height:1.35}
.reference-article .library-body,.reference-method-card .library-body,.employee-view .reference-article .library-body,.employee-view .reference-method-card .library-body{font-size:14px;line-height:1.55;color:#4b4e55;margin:8px 0 0}
.reference-article .reference-method h3{margin:20px 0 8px}
.reference-article .recipe-actions:empty{display:none}
.reference-editor-actions{display:flex;gap:12px;flex-wrap:wrap}
@media(max-width:360px){.reference-menu,.reference-article,.reference-method-card,.employee-view main .reference-menu,.employee-view main .reference-article,.employee-view main .reference-method-card{padding:16px}}

/* Remaining AB screens: shared layout from the approved complete prototype. */
.employee-view .header-actions{gap:8px}
.employee-view .page-heading{margin-bottom:8px}
.employee-view main .card,.employee-view.home-page .card{border-radius:22px}
.employee-view .primary:not(#clock){background:#37393d;color:#fff;border-color:#37393d}
.employee-view button:disabled{cursor:default}
.employee-view .home-step svg{width:20px;height:20px;flex-shrink:0}
.employee-view .home-step strong{font-size:15px;line-height:1.4}
.employee-view .home-checklists .home-step:first-of-type{padding-top:0}
.employee-view .home-checklists .home-step:last-child{padding-bottom:0}
.employee-view .missed-count,.employee-view .home-missed .missed-count{font-size:34px;line-height:1.2;margin:6px 0}
.employee-view .missed-count span{font-size:15px}
.full-action{width:100%;margin-top:12px}
.audit-check{padding:18px 0;border-bottom:1px solid #e3e6eb}
.employee-view .audit-check h3{margin:0 0 8px}
.employee-view .checklist-detail #library-list>div{padding:18px 0;border-top:0;border-bottom:1px solid #e3e6eb}
.employee-view .checklist-detail .check{font-size:15px;font-weight:500;line-height:1.4;margin:0 0 8px}
.employee-view .checklist-detail .library-body{font-size:14px;line-height:1.55;color:#4b4e55}
.employee-view .checklist-detail small{font-size:12px}
.employee-view .week-controls button{display:flex;align-items:center;justify-content:center}
.employee-view .week-controls svg{width:20px;height:20px}
.employee-view .week-controls>span{font-size:16px}
.employee-view .schedule-legend[hidden],.employee-view .schedule-footnote[hidden]{display:none}
.employee-view .schedule-wrap{margin-top:14px;border-radius:0;box-shadow:none}
.employee-view .week-table{min-width:1060px;font-size:13px}
.employee-view .week-table th,.employee-view .week-table td{padding:12px 10px;font-weight:400;font-size:13px;vertical-align:top;min-width:135px}
.employee-view .schedule-assignment{min-height:0;background:transparent;border:0;padding:0;box-shadow:none}
.employee-view .schedule-assignment strong{font-weight:400}
.employee-view .news-filters,.employee-view .responsibility-tabs{gap:8px;margin:16px 0}
.employee-view .news-filters button[aria-pressed=true],.employee-view .responsibility-tabs button[aria-pressed=true]{background:#37393d;color:#fff;border-color:#37393d}
.employee-view .responsibility-rule>summary{font-size:15px;font-weight:400}
.employee-view .responsibility-text{font-size:14px;line-height:1.55;color:#4b4e55}
.employee-view .scene-dialog[open]{display:block;position:fixed;inset:0;width:100%;max-width:none;height:100%;max-height:none;margin:0;padding:0;border:0;border-radius:0;background:#f1f2f4;color:#37393d;overflow:auto}
.scene-shell{max-width:1100px;margin:auto;min-height:100%;padding-bottom:70px}
.scene-header{display:flex;align-items:center;gap:12px;padding:20px 20px 0}
.scene-brand{padding:0;border:0;background:transparent;min-height:46px}
.scene-brand img{display:block;width:88px;height:46px;object-fit:contain}
.scene-main{padding:22px 20px 16px}
.employee-view .scene-main h1{font-size:26px;line-height:1.25;font-weight:400;margin:0}
.employee-view .scene-main h2{font-size:19px;line-height:1.35;font-weight:400;margin:0 0 8px}
.employee-view .scene-main .card{padding:20px;border:0;border-radius:22px;margin:18px 0;box-shadow:0 8px 20px -8px #22345628}
.employee-view .scene-main .dialog-actions,.employee-view #clock-out-confirm.scene-dialog .dialog-actions{display:flex;flex-direction:row;gap:10px;flex-wrap:wrap}
.employee-view .scene-main .dialog-actions>*{flex:1}
.employee-view .scene-main video,.employee-view .scene-main img:not(.scene-brand img){max-width:100%}
@media(max-width:600px){.scene-header{padding-left:16px;padding-right:16px}.scene-main{padding-left:16px;padding-right:16px}}
@media(max-width:360px){.employee-view main .card,.employee-view.home-page .card,.employee-view .scene-main .card{padding:16px}}
.employee-view .week-table td{height:auto}
.employee-view .week-table .place-label{min-width:105px;width:105px}
.employee-view .week-table .place-label span,.employee-view .week-table th strong{font-size:13px;font-weight:400}
.employee-view .week-table .place-label small,.employee-view .week-table thead small{display:none}
.employee-view .week-table tbody>tr:last-child{display:none}
.employee-view .time-history-filter{margin:14px 0}
.employee-view .time-history-filter label{font-size:14px}
.employee-view .time-history-filter input{margin-top:6px;padding:10px 12px;border-radius:16px}
.employee-view .responsibility-rule,.employee-view .time-events,.employee-view .duty-card~.card details{border-color:#e3e6eb}
.employee-view .responsibility-rule>summary,.employee-view .time-events>summary{min-height:44px;padding:8px 0;font-size:15px}
.employee-view .responsibility-rule>.responsibility-badge{display:inline-block;margin-bottom:8px}
.employee-view .scene-header .header-actions{margin-left:auto}
.employee-view .scene-header .header-actions button{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border:0;background:transparent;padding:8px}
.employee-view .scene-header .header-actions svg{width:28px;height:28px}
.employee-view .scene-main>[data-scene-back]{display:block;margin:0;min-height:44px}
.employee-view #section-back{display:block;margin:0;min-height:44px;padding:10px 0;font-size:14px;line-height:1.4}
.employee-view .responsibility-tabs>button{flex:0 0 auto}
.employee-view .news-filters{flex-wrap:wrap;padding:0;overflow:visible}
.employee-view .news-filters button[aria-pressed=true]{box-shadow:none}
.employee-view .week-table thead th{height:auto}
.employee-view .week-table thead strong{margin:0}
.employee-view .scene-main .dialog-actions{margin-top:16px}
.employee-view #clock-out-confirm.scene-dialog .dialog-actions button{min-height:44px;line-height:1.4}
.employee-view .reference-menu>.home-step:first-child{padding-top:0}
.employee-view .reference-menu>.home-step:last-child{padding-bottom:0}
.employee-view .reference-menu>.home-step:first-child{border-top:0}
.employee-view [data-personal-task] label,.employee-view [data-duty-transfer] label{display:block;font-size:14px;margin:14px 0}
.employee-view [data-personal-task] textarea,.employee-view [data-duty-transfer] select{display:block;width:100%;margin-top:6px;border:1px solid #89a9df;border-radius:16px;padding:10px 12px;font:inherit;font-size:16px;background:#fff}
.employee-view button[data-check-back].section-text-link{margin:0;font-size:14px;line-height:1.4}

/* Owner cabinet, using the approved employee shell and original navigation icons. */
.owner-view .management-nav{display:none}
.owner-view .owner-badge{display:inline-block;font-size:12px;line-height:1.35;font-weight:400;padding:6px 8px;border-radius:10px;background:#f2f1eb;color:#666252;text-align:center;overflow-wrap:normal}
.owner-view .owner-badge.is-done{background:#e9f1ec;color:#536d5e}
.owner-view .owner-push-badge{box-sizing:border-box;max-width:100%;margin-top:8px}
.owner-view .owner-task-heading{display:grid;grid-template-columns:minmax(0,1fr) 92px;align-items:start;gap:12px;margin-bottom:8px}
.owner-view .owner-task-heading :is(h2,h3){margin:0;min-width:0;overflow-wrap:anywhere}
.owner-view .owner-task-heading .owner-badge{box-sizing:border-box;width:92px}
.owner-view .owner-task-heading+p{margin-top:8px}
.owner-view .owner-attendance{table-layout:fixed;width:100%;margin-top:12px;font-size:13px;line-height:1.4}
.owner-view .owner-attendance .owner-time-col{width:48px}
.owner-view .owner-attendance :is(th,td){padding:10px 2px;text-align:right;vertical-align:middle;border-bottom:1px solid #e3e6eb;font-weight:400;min-width:0}
.owner-view .owner-attendance th:first-child{text-align:left;padding-left:0;padding-right:6px}
.owner-view .owner-attendance thead th{font-size:12px;color:#686c74;white-space:nowrap;padding-top:0;padding-bottom:8px}
.owner-view .owner-attendance thead span{display:block}
.owner-view .owner-attendance-name{display:block;font-size:14px;line-height:1.35;overflow-wrap:anywhere}
.owner-view .owner-attendance-role{display:block;color:#686c74;font-size:12px;margin-top:3px}
.owner-view .owner-attendance td{white-space:nowrap;font-variant-numeric:tabular-nums}
.owner-view .owner-attendance tbody tr:last-child :is(th,td){border-bottom:0}
.owner-view .card .owner-attendance-note{color:#686c74;font-size:12px;margin:6px 0 0}
.owner-view .owner-attendance~.section-text-link{margin-top:6px}
.owner-view .card>.section-text-link:last-child{margin-bottom:0}
.owner-view .card>.section-text-link+.section-text-link{margin-top:8px}
.owner-view .owner-pairs{margin:16px 0}
.owner-view .owner-pairs>div{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;border-bottom:1px solid #e3e6eb;padding:10px 0;align-items:baseline}
.owner-view .owner-pairs>div:last-child{border-bottom:0}
.owner-view .owner-pairs dt{font-size:13px;color:#686c74}
.owner-view .owner-pairs dd{margin:0;text-align:right;overflow-wrap:anywhere;font-size:14px}
.owner-view .owner-total{font-size:20px;font-weight:500}
.owner-view .owner-field-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}
.owner-view .owner-field-grid>label{min-width:0}
.owner-view :is(input,select,textarea){max-width:100%;box-sizing:border-box;width:100%}
.owner-view input[type=checkbox]{width:22px}
.owner-view .owner-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}
.owner-view .owner-actions button{margin:0;min-height:42px}
.owner-view .owner-tabs{display:flex;gap:10px;margin:16px 0;flex-wrap:wrap}
.owner-view .owner-tabs button[aria-pressed=true]{background:#e1e5e9}
.owner-view .owner-point{padding:16px 0;border-bottom:1px solid #e3e6eb;margin-bottom:12px}
.owner-view .owner-point summary{font-size:16px;line-height:1.45;overflow-wrap:anywhere}
.owner-view .owner-form-error{color:#9f3d31;font-size:13px;margin:12px 0 0}
.owner-view .owner-inline-editor{width:218px;min-width:218px;box-sizing:border-box;padding:10px;text-align:left;white-space:normal}
.owner-view .owner-inline-editor label{margin:12px 0;font-size:12px}
.owner-view .owner-inline-editor :is(input,select){font-size:14px;padding:8px 10px;min-height:40px}
.owner-view .owner-inline-editor h3{margin:0 0 6px}
.owner-view .owner-inline-editor .owner-actions{margin-top:12px;gap:8px}
.owner-view .owner-inline-editor button{font-size:13px}
.owner-view .week-table .place-label{min-width:110px;width:110px;white-space:normal;word-break:normal;overflow-wrap:normal}
.owner-view .week-table .owner-cell-open{padding:0;min-width:218px;background:#f3f4f6}
.owner-view.home-page .home-step{padding:16px 0;margin:0;border:0;border-radius:0;box-shadow:none;background:transparent;min-height:64px}
.owner-view.home-page .home-step+.home-step{border-top:1px solid #edf0f3}
.owner-view .reference-editor-actions{margin:0 0 16px}
.owner-view .card>form>h2:not(:first-child){margin-top:24px}
.owner-view [hidden]{display:none!important}
@media(max-width:380px){.owner-view .owner-field-grid{gap:8px}.owner-view .owner-pairs>div{gap:8px}}
.owner-view .schedule-legend,.owner-view .schedule-footnote,.owner-view [data-week-today]{display:none}
.owner-view .schedule-assignment .schedule-actual{color:#686c74;font-weight:400}
.owner-view .schedule-assignment .schedule-actual::before{content:none}
.owner-view .owner-cell-cue{color:#686c74;font-size:12px;margin-top:4px}
.owner-view .reference-editor-actions button{border:0;border-radius:0;background:none;box-shadow:none;padding:10px 0;min-height:44px}
.owner-view #library-list>div{padding:20px 0;border-bottom:1px solid #e3e6eb}
.owner-view #library-list>div:last-child{border-bottom:0}
.owner-view #library-list .check{font-size:16px;line-height:1.45}

/* Home cards: consistent content edges with the current reference-menu layout. */
.employee-view.home-page :is(.home-checklists,.home-tasks)>.home-step:first-of-type{padding-top:0}
.employee-view.home-page :is(.home-checklists,.home-tasks,.home-missed)>.home-step:last-child{padding-bottom:0;min-height:44px}
.employee-view.home-page .home-missed>.home-step:last-child{padding-top:16px}
.employee-view.home-page .home-missed>p.muted,
.employee-view.home-page .home-tasks>p.muted{margin:0}
.employee-view.home-page .home-missed>.missed-count{margin:16px 0 0;display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}

/* Owner and master cards share the employee content insets and row rhythm. */
.employee-view.home-page button.home-responsibility{padding:20px}
@media(max-width:380px){.employee-view.home-page button.home-responsibility{padding:18px}}
.employee-view.owner-view.home-page main>section.card>h2{font-size:19px;line-height:1.35;margin:0 0 8px}
.owner-view .card>.home-step:first-child,
.owner-view .card>h2+.home-step{padding-top:0}
.owner-view .card>.home-step:last-child,
.owner-view .card>.home-step:has(+.section-text-link){padding-bottom:0;min-height:44px}
.employee-view.owner-view main>section.card>button.section-text-link{display:flex;align-items:flex-end;margin:0;padding:0;min-height:44px;font-size:13px;line-height:1.45}
.owner-view .card>.section-text-link+.section-text-link{margin-top:0}
.owner-view .card>.owner-pairs:first-child{margin-top:0}
.owner-view .card>.owner-pairs:first-child>div:first-child{padding-top:0}
.owner-view .owner-attendance th[scope=row]{white-space:normal}
.owner-view .card>p:has(+.section-text-link),
.owner-view .card>.owner-pairs:has(+.section-text-link){margin-bottom:0}
.owner-view .card>.owner-pairs>div:last-child{padding-bottom:0}

/* Owner attendance: planned and actual arrival/departure, compact four-column header. */
.owner-view .owner-shift-caption span{display:block;margin-top:4px}
.owner-view .owner-attendance-four thead th{padding:0 2px 8px;text-align:right}
.owner-view .owner-attendance-four thead th:first-child{padding-left:0;text-align:left}
.owner-view .owner-attendance-four td:last-child,.owner-view .owner-attendance-four thead th:last-child{padding-right:0}
@media(max-width:360px){.owner-view .owner-attendance-four .owner-time-col{width:44px}.owner-view .owner-attendance-four td{font-size:13px}}

/* Forgotten departure cards share the profile card spacing. */
.shift-notice>h2,.shift-notice-heading h2{margin:0}
.shift-notice>p.muted{margin:10px 0 16px}
.shift-notice-pill{display:inline-block;background:#f2f1eb;color:#75613e;font-size:12px;line-height:1.4;padding:6px 10px;border-radius:10px;margin:4px 0 16px}
.shift-notice-pill.is-done{background:#e9f1ec;color:#536d5e}
.shift-notice-copy{font-size:15px;line-height:1.45;margin:0}
.shift-notice-actions{display:grid;gap:8px;margin-top:20px}
.shift-notice-actions button{width:100%;min-height:44px;margin:0}
.shift-notice-actions .primary{background:#37393d;border-color:#37393d;color:white}
.shift-notice-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}
.shift-notice-count{display:inline-grid;place-items:center;min-width:28px;height:28px;flex-shrink:0;padding:0 7px;border-radius:9px;background:#f2f1eb;color:#75613e;font-size:13px}
button.shift-notice-row{display:flex;align-items:center;gap:12px;text-align:left;width:100%;padding:16px 0;margin:0;border:0;border-top:1px solid #e7e8eb;border-radius:0;background:transparent;color:inherit}
.shift-notice-row>span{flex:1;min-width:0;overflow-wrap:anywhere}
.shift-notice-row strong{display:block;font-size:16px;line-height:1.35;font-weight:400}
.shift-notice-row small{display:block;font-size:13px;line-height:1.45;color:#686c74;margin-top:8px}
.shift-notice-row svg{flex-shrink:0}
.shift-notice-row:last-child{padding-bottom:0}
.shift-notice-pairs{display:grid;gap:12px;margin:16px 0 20px}
.shift-notice-pairs>div{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.shift-notice-pairs dt{font-size:13px;color:#686c74;line-height:1.45}
.shift-notice-pairs dd{margin:0;text-align:right;font-size:14px;line-height:1.45;font-variant-numeric:tabular-nums}
.shift-notice .section-text-link{padding-left:0;padding-right:0;min-height:44px;margin:12px 0 0}
.shift-notice form{margin-top:20px}
#shift-report-error:empty{display:none}
#shift-report-error{color:#a13c30}

.push-card>p{margin:0}
.push-install-steps{padding-left:20px;margin:18px 0;font-size:15px;line-height:1.5}
.push-install-steps li+li{margin-top:14px}
.push-toggle{display:flex;align-items:center;gap:12px;margin:18px 0 0;font-size:15px;min-height:44px}
.push-toggle input{width:20px;height:20px;flex:none;accent-color:#37393d}
[data-push-result]:empty{display:none}
.shift-notice [data-push-result]{margin-top:16px}

/* Team news is a plain list; the editor uses the existing owner card layout. */
.employee-view .news-list{margin:4px 0 0;padding:0}
.employee-view .news-entry{padding:20px 0;margin:0;border:0;border-top:1px solid #dfe3e9;border-radius:0;background:transparent;box-shadow:none;min-width:0}
.employee-view .news-entry:first-child{border-top:0;padding-top:12px}
.employee-view .news-entry h2{margin:0 0 6px;font-size:19px;line-height:1.35;font-weight:400}
.employee-view .news-entry .news-meta{margin:0 0 8px;font-size:13px;line-height:1.45;color:#686c74}
.employee-view .news-body{margin:0 0 10px;white-space:pre-line;font-size:14px;line-height:1.55;color:#4b4e55;overflow-wrap:anywhere}
.employee-view .news-entry .news-event{margin:12px 0 0}
.employee-view .news-entry .section-text-link{margin:0;padding-bottom:0}
.employee-view .news-empty{padding:24px 0}
.news-error{font-size:13px;color:#a13c30;line-height:1.45}
.news-error:empty{display:none}

.push-card>p{margin:0}
.push-install-steps{padding-left:20px;margin:18px 0;font-size:15px;line-height:1.5}
.push-install-steps li+li{margin-top:14px}
.push-toggle{display:flex;align-items:center;gap:12px;margin:18px 0 0;font-size:15px;min-height:44px}
.push-toggle input{width:20px;height:20px;flex:none;accent-color:#37393d}
[data-push-result]:empty{display:none}
.shift-notice [data-push-result]{margin-top:16px}

/* Shared spacing below AB grade tables, including all three owner grades. */
.employee-view main .card .grade-rate-table{margin-bottom:0}
.employee-view main .card .grade-rate-table~p{margin:20px 0 0}

/* Only the task counter beside the employee's existing profile heading. */
.employee-view .page-heading.personal-task-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.employee-view .personal-task-heading h1{min-width:0;flex:1;overflow-wrap:anywhere}
.employee-view button.personal-task-badge,.employee-view button.personal-task-badge:hover:not(:disabled){position:relative;flex-shrink:0;min-height:32px;margin:0;padding:7px 11px;border:0;border-radius:12px;background:#f2eee4;color:#75613e;box-shadow:none;font-size:13px;line-height:1.35;font-weight:500;font-variant-numeric:tabular-nums;white-space:nowrap}
.employee-view button.personal-task-badge::before{content:"";position:absolute;inset:-6px 0}

/* Checklist completion and the approved compact owner summary only. */
.employee-view .home-checklist-progress .checklist-progress-copy{font-size:15px;line-height:1.45;color:#686c74;margin:8px 0 0;min-height:44px}
.employee-view .card.checklist-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding-top:16px;padding-bottom:16px}
.employee-view .checklist-summary p{font-size:25px;line-height:1.2;margin:0;font-variant-numeric:tabular-nums}
.employee-view .checklist-summary span{display:block;font-size:12px;color:#686c74;line-height:1.4;margin-top:4px}
.employee-view .checklist-stats table{width:100%;table-layout:fixed;border-collapse:collapse;font-variant-numeric:tabular-nums}
.employee-view .checklist-stats th,.employee-view .checklist-stats td{padding:2px;border-bottom:1px solid #e3e6eb;font-weight:400;font-size:14px;text-align:center;vertical-align:middle;white-space:normal}
.employee-view .checklist-stats th:first-child{width:35%;text-align:left;padding-left:0}
.employee-view .checklist-stats thead th{font-size:11px;line-height:1.4;color:#686c74;padding:0 2px 10px}
.employee-view .checklist-stats thead th:nth-child(2){width:16%}
.employee-view .checklist-stats thead th:nth-child(3){width:24%}
.employee-view .checklist-stats thead th:nth-child(4){width:25%}
.employee-view .checklist-stats tbody>tr:last-child>*,.employee-view .checklist-stats tbody>tr:nth-last-child(2):has(+tr[hidden])>*{border-bottom:0;padding-bottom:0}
.employee-view .checklist-stats [data-checklist-person]{display:block;width:100%;min-height:44px;text-align:left;background:transparent;border:0;border-radius:0;padding:3px 0;margin:0;font-size:14px;line-height:1.35;text-decoration:none;overflow-wrap:anywhere;box-shadow:none}
.employee-view .checklist-stats [data-checklist-person][aria-expanded=true]{font-weight:500}
.employee-view .checklist-stats [data-checklist-person] small{display:block;font-size:11px;line-height:1.25;color:#686c74;margin-top:2px;font-weight:400}
.employee-view .checklist-stat-count{display:inline-flex;justify-content:center;min-width:26px;padding:3px 7px;border-radius:8px;background:#f3e9df;color:#80513e;font-size:13px}
.employee-view .checklist-stat-rules{border-top:1px solid #e3e6eb;margin-top:12px;padding:12px 0 0;font-size:12px;color:#686c74;line-height:1.5}
.employee-view .checklist-stat-rules summary{min-height:32px;padding:0}
.employee-view .checklist-stat-rules p{margin:8px 0}
.employee-view .checklist-stat-details td{text-align:left;padding:16px 0}
.employee-view .checklist-stat-details h3{font-size:13px;font-weight:400;line-height:1.4;color:#686c74;margin:16px 0 12px}
.employee-view .checklist-stat-details h3:first-child{margin-top:0}
.employee-view .checklist-stat-item{padding:0 0 16px}
.employee-view .checklist-stat-item:last-child{padding-bottom:0}
.employee-view .checklist-stat-item>div{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.employee-view .checklist-stat-item p{font-size:14px;line-height:1.4;margin:0;min-width:0}
.employee-view .checklist-stat-item small{display:block;font-size:12px;line-height:1.45;color:#686c74;margin-top:8px}
.employee-view .checklist-stat-status{font-size:11px;line-height:1.4;padding:4px 7px;border-radius:7px;color:#80513e;background:#f3e9df;flex-shrink:0;max-width:88px;text-align:center}
.employee-view .checklist-stat-status.is-done{color:#537362;background:#e8f1ed}
@media(max-width:360px){.employee-view .checklist-stats [data-checklist-person]{font-size:13px}.employee-view .checklist-stat-item>div{gap:8px}.employee-view .checklist-stat-status{max-width:78px}}

/* Hide header branding without moving any existing layout; keep launch screen intact. */
body.employee-view>header>.brand,.employee-view .scene-header>.scene-brand{visibility:hidden;pointer-events:none}

/* Keep the review divider equally spaced from actions and shift history. */
.owner-view #owner-review+details{margin-top:20px;padding:20px 0 0}
.owner-view #owner-review+details>summary{padding:0;min-height:44px}

/* Shared section dividers: a 20px gap on both sides of the line. */
.employee-view .card details:not([class]),
.employee-view .card details:is(.time-events,.responsibility-rule,.responsibility-incident,.team-member,.invite-access){margin-top:20px;padding:20px 0 0}
.employee-view .card details:not([class])>summary,
.employee-view .card details:is(.time-events,.responsibility-rule,.responsibility-incident,.team-member,.invite-access)>summary{padding-block:0;min-height:44px}
.employee-view .card>details:not([class]):first-child,
.employee-view .card>details:is(.time-events,.responsibility-rule,.responsibility-incident,.team-member):first-child{margin-top:0}
.employee-view .card details:not([class])>:last-child:not(summary),
.employee-view .card details:is(.time-events,.responsibility-rule,.responsibility-incident,.team-member,.invite-access)>:last-child:not(summary){margin-bottom:0}
.employee-view .card details:not(.owner-point)+ :is(button,form,.owner-actions,[data-correction-controls]){margin-top:20px}
.employee-view .card .table-wrap+ :is(p,button,form,.owner-actions){margin-top:20px}
.employee-view .card .checklist-history-row,
.employee-view .card .responsibility-history,
.employee-view .card .invite-row{padding-block:20px}
.employee-view .card summary+ :is(.checklist-history-row,.responsibility-history){margin-top:20px}
.employee-view .card .responsibility-history>p:last-child,
.employee-view .card .invite-row p:last-child{margin-bottom:0}
/* Editor points have a bottom divider; keep the following add button clear. */
.owner-view .owner-point{border-top:0;padding:20px 0;margin:0 0 20px}
.owner-view .owner-point>summary{padding-block:0;min-height:44px}
.owner-view .owner-point>:last-child:not(summary){margin-bottom:0}

/* Personal unread news: approved blue badge, no changes to app navigation. */
.employee-view .header-actions .news-button{position:relative;overflow:visible}
.employee-view .header-actions .news-count{position:absolute;top:0;right:0;display:flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:var(--blue);color:#fff;font-size:12px;line-height:1;font-weight:500;font-variant-numeric:tabular-nums;box-shadow:0 0 0 2px var(--pearl);pointer-events:none}
.employee-view .news-entry .news-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.employee-view .news-unread-label,.employee-view .news-read-link{color:var(--blue)}

/* Approved minimal page actions: only the five section headers. */
.employee-view .section-minimal-link,.employee-view [data-section-minimal]{color:var(--blue,#286bff);font-size:14px;line-height:1.45;min-height:44px;background:none;border:0;box-shadow:none;padding:10px 0;text-align:left}
.employee-view .reference-editor-actions.section-minimal-actions{display:flex;gap:10px;margin:0 0 16px}
.employee-view .section-minimal-actions .section-add-menu{position:relative;margin:0;padding:0;border:0}
.employee-view .section-minimal-actions .section-create,.employee-view .section-add-menu>summary{display:flex;align-items:center;gap:8px;box-sizing:border-box;min-height:44px;padding:10px 14px;border:1px solid #89a9df;border-radius:24px;background:transparent;box-shadow:none;font:inherit;font-size:14px;line-height:1.4;list-style:none;cursor:pointer}
.employee-view .section-add-menu>summary::-webkit-details-marker,.employee-view .section-check-date>summary::-webkit-details-marker{display:none}
.employee-view .section-add-options{position:absolute;z-index:10;left:0;top:50px;width:220px;max-width:calc(100vw - 64px);padding:4px 16px;background:#fff;border-radius:18px;box-shadow:0 8px 24px #22345630}
.employee-view .section-add-options button{display:block;width:100%;text-align:left;padding:16px 0;border:0;border-radius:0;background:none;font-size:14px}
.employee-view .section-add-options button+button{border-top:1px solid #e3e6eb}
.employee-view .section-check-date{margin:12px 0 20px;padding:0;border:0}
.employee-view .section-check-date>summary{display:flex;align-items:center;gap:10px;min-height:44px;padding:0;list-style:none;font-size:15px;cursor:pointer}
.employee-view .section-check-date svg{width:20px;height:20px;flex-shrink:0}
.employee-view .section-check-date input{max-width:240px;margin-top:8px;font-size:16px}
.employee-view .owner-tabs.section-check-tabs{gap:20px;margin:20px 0 12px}
.employee-view .section-check-tabs button{padding:9px 0;min-height:44px;border:0;border-radius:0;box-shadow:none;background:none;font-size:14px}
.employee-view .section-check-tabs button[aria-pressed=true]{color:var(--blue,#286bff);border-bottom:2px solid var(--blue,#286bff);background:none}

/* Employee home tasks: approved soft highlight, scoped to task buttons only. */
.employee-view.home-page:not(.owner-view) .home-tasks>.home-step[data-task-open]{padding:18px 16px;margin:16px 0 0;min-height:64px;border:0;border-radius:16px;background:#eef3ff;box-shadow:none;gap:14px}
.employee-view.home-page:not(.owner-view) .home-tasks>.home-step[data-task-open]+.home-step[data-task-open]{margin-top:12px}
.employee-view.home-page:not(.owner-view) .home-tasks>.home-step[data-task-open] strong{font-size:19px;font-weight:400;line-height:1.35;color:#37393d;overflow-wrap:anywhere}
.employee-view.home-page:not(.owner-view) .home-tasks>.home-step[data-task-open] small{font-size:13px;font-weight:400;line-height:1.45;color:#686c74;margin-top:8px}

/* Minimal header links: override the existing section-text-link font size only. */
.employee-view button.section-text-link.section-minimal-link,.employee-view button.section-text-link[data-section-minimal]{font-size:14px}

/* Employee profile: muted role and grade above the salary link. */
.employee-view.home-page:not(.owner-view) .page-heading:has(+ .employee-role-grade){margin-bottom:5px}
.employee-view.home-page:not(.owner-view) .employee-role-grade{margin:0 0 5px;color:#666b73}
.employee-view.home-page:not(.owner-view) .employee-role-grade + button.section-text-link.employee-my-salary{margin:0 0 13px;padding:0}
.employee-view.home-page:not(.owner-view) button.section-text-link.employee-salary-link{color:#37393d;font-size:14px}

/* Text back-link: no coloured touch/focus perimeter; task titles have breathing room. */
.employee-view #section-back,
.employee-view #section-back:hover:not(:disabled),
.employee-view #section-back:active,
.employee-view #section-back:focus{background:transparent;color:var(--ink);border:0;box-shadow:none;outline:none;text-align:left;-webkit-tap-highlight-color:transparent}
.employee-view #section-back[data-task-back]{margin-bottom:12px}
html[data-keyboard-navigation="true"] .employee-view #section-back:focus-visible{text-decoration:underline;text-underline-offset:4px}

/* Archive-only additions; the active team's layout remains unchanged. */
.employee-archive-list>summary,.personal-archive>details>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;cursor:pointer;list-style:none;padding:8px 0}
.employee-archive-list>summary::after,.personal-archive>details>summary::after{content:'⌄';flex:none}
.employee-archive-list[open]>summary::after,.personal-archive>details[open]>summary::after{content:'⌃'}
.employee-archive-list>summary::-webkit-details-marker,.personal-archive>details>summary::-webkit-details-marker{display:none}
.employee-archive-list[open]>summary{margin-bottom:16px}
.personal-archive .archive-details{padding-top:16px}
.personal-archive .archive-row{padding:20px 0;border-bottom:1px solid #e2e5ea}
.personal-archive .archive-row:first-child{padding-top:0}
.personal-archive .archive-row:last-child{border-bottom:0;padding-bottom:0}
.personal-archive .archive-row p{margin:8px 0 0}
.personal-archive .archive-row small{display:block;color:#6b7079;font-weight:400;margin-top:8px}
.personal-archive .archive-point{padding-top:16px}
.employee-view .card .employee-archive-list,.employee-view .personal-archive details{border:0;margin:0;padding:0}
.employee-view .personal-archive>details>summary{padding:0;min-height:44px}
.personal-archive>details>summary>.muted{margin-left:auto;font-variant-numeric:tabular-nums}

/* Owner payroll and manual settlement. */
.owner-view .payroll-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  align-items:start;
  gap:12px;
  margin:12px 0 20px;
}
.owner-view main .payroll-choice,
.owner-view main .payroll-shift {margin:0}
.owner-view main .payroll-choice {
  display:grid;
  gap:6px;
  width:100%;
  text-align:left;
  color:var(--ink);
  background:var(--paper);
  font-size:15px;
  font-weight:400;
  white-space:normal;
}
.owner-view main .payroll-choice:hover:not(:disabled) {background:#f9faff;color:var(--ink)}
.owner-view .payroll-card-top {display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.owner-view .payroll-card-link {min-height:0;padding:4px 0 0}
.owner-view .payroll-paid {color:#536d5e}
.owner-view .payroll-merge {display:flex;align-items:center;gap:8px;min-height:44px;margin:0 0 8px;font-size:14px}
.owner-view .payroll-merge input {width:17px;height:17px;margin:0;accent-color:var(--blue)}
.owner-view .payroll-part-shifts > summary {min-height:44px;padding:10px 0;color:var(--blue);font-size:14px}
.owner-view .payroll-summary {
  display:grid;
  gap:4px;
  margin:0;
  font-size:15px;
  line-height:1.4;
  font-variant-numeric:tabular-nums;
}
.owner-view .payroll-summary > :is(div,span) {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px}
.owner-view .payroll-summary :is(dt,.payroll-label) {color:#686c74}
.owner-view .payroll-summary small {font-size:12px;white-space:nowrap}
.owner-view .payroll-summary dd {margin:0}
.owner-view .payroll-summary > :last-child {padding-top:3px;font-weight:500}
.owner-view .payroll-summary > :last-child :is(dt,.payroll-label) {color:inherit}
.owner-view .payroll-summary > :is(div,span) > :last-child {text-align:right;white-space:nowrap}
.owner-view #pay-settlement {margin:14px 0 0}
.owner-view #pay-settlement :is(h2,.check) {margin:0;font-size:15px}
.owner-view #pay-settlement .check {min-height:44px}
.owner-view #pay-settlement .check input {width:17px;height:17px;accent-color:var(--blue)}
.owner-view .payroll-fields {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 12px}
.owner-view .payroll-fields label {display:grid;align-content:end;gap:4px;margin:0;font-size:13px}
.owner-view .payroll-fields input {min-width:0;min-height:40px;margin:0;padding:6px 8px;font-size:16px}
.owner-view #pay-settlement button {margin:10px 0 0;min-height:44px}
.owner-view .payroll-warning {margin:8px 0 0}
.owner-view .payroll-advances {margin-top:12px}
.owner-view .payroll-advances > summary {width:fit-content;min-height:44px;padding:10px 0;color:var(--blue);font-size:14px}
.owner-view .payroll-advances ul {list-style:none;padding:0;margin:0 0 10px}
.owner-view .payroll-advances li {display:flex;justify-content:space-between;gap:10px;padding:3px 0;font-size:14px}
.owner-view .payroll-advances li > span {white-space:nowrap}
.owner-view .payroll-advance-note {display:block;overflow-wrap:anywhere;margin-top:2px}
.owner-view .payroll-advances form {margin:0}
.owner-view .payroll-advances .payroll-fields {grid-template-columns:repeat(2,minmax(0,1fr))}
.owner-view .payroll-advances form > label {margin:8px 0 0;font-size:13px}
.owner-view .payroll-advances form > label input {min-height:40px;margin:4px 0 0;padding:6px 8px;font-size:16px}
.owner-view .payroll-advances button {margin:10px 0 0;min-height:44px}
.owner-view main .payroll-shift {padding:0}
.owner-view .payroll-shift[open] {grid-column:1/-1}
.owner-view .payroll-shift > summary {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:2px 8px;
  padding:12px 16px;
  font-size:15px;
  font-weight:400;
  list-style:none;
}
.owner-view .payroll-shift > summary::-webkit-details-marker {display:none}
.owner-view .payroll-shift > summary > :nth-child(even) {text-align:right}
.owner-view .payroll-expand {color:var(--blue)}
.owner-view .payroll-shift:not([open]) .payroll-expand span:last-child,
.owner-view .payroll-shift[open] .payroll-expand span:first-child {display:none}
.owner-view .payroll-shift > :not(summary) {margin:8px 16px 12px}
.owner-view .payroll-shift .owner-pairs > div {border:0;padding:3px 0}
@media(max-width:600px) {
  .owner-view .payroll-grid:has(.payroll-choice) {grid-template-columns:minmax(0,1fr)}
  .owner-view :is(.payroll-fields,.payroll-advances .payroll-fields) {grid-template-columns:minmax(0,1fr)}
  .owner-view .payroll-fields label {grid-template-columns:minmax(0,1fr) minmax(124px,46%);align-items:center;gap:8px}
}
@media(max-width:390px) {
  .owner-view .payroll-shift > summary {grid-template-columns:minmax(0,1fr);padding:10px 12px}
  .owner-view .payroll-shift > summary > :nth-child(even) {text-align:left}
}

/* Personal salary, under the employee's role and grade. */
.employee-view button.section-text-link.employee-my-salary {
  display:flex;
  align-items:center;
  gap:6px;
  color:var(--blue);
  font-size:14px;
}
.employee-view .employee-my-salary svg,.employee-view .my-salary-shift > summary svg {
  flex:none;
  width:16px;
  height:16px;
  color:var(--blue);
}
.employee-view .my-salary {
  max-width:600px;
}
.employee-view .my-salary-month {
  display:grid;
  width:fit-content;
  gap:4px;
}
.employee-view .my-salary-month select {margin:0}
.employee-view .my-salary-periods {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  margin:14px 0 10px;
}
.employee-view .my-salary-periods button {
  display:grid;
  min-height:52px;
  padding:8px 10px;
  text-align:left;
  border-radius:14px;
  background:transparent;
  box-shadow:none;
}
.employee-view .my-salary-periods small {color:#686c74;font-size:13px}
.employee-view .my-salary-periods button[aria-pressed=true] {background:#edf2ff;border-color:var(--blue);color:var(--blue)}
.employee-view main .my-salary-summary {margin:0 0 16px;padding:13px 15px}
.employee-view .my-salary-total,.employee-view .my-salary-lines > div {
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  gap:4px 9px;
}
.employee-view .my-salary-total {flex-wrap:wrap}
.employee-view .my-salary-total strong {font-size:20px;font-weight:500}
.employee-view .my-salary-total strong,.employee-view .my-salary-amount {white-space:nowrap;font-variant-numeric:tabular-nums}
.employee-view .my-salary-lines {display:grid;gap:3px;margin:7px 0;font-size:14px}
.employee-view .my-salary-lines dt {color:#686c74}
.employee-view .my-salary-lines dd {margin:0;text-align:right;font-variant-numeric:tabular-nums}
.employee-view .my-salary-summary p.muted {margin:0}
.employee-view .my-salary-summary .my-salary-lines + p {margin-top:8px}
.employee-view .my-salary-shifts {display:grid;gap:7px}
.employee-view main .my-salary-shift {padding:0;margin:0}
.employee-view .my-salary-shift > summary {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto 16px;
  align-items:center;
  gap:8px;
  min-height:48px;
  padding:8px 13px;
  list-style:none;
  cursor:pointer;
}
.employee-view .my-salary-shift > summary::-webkit-details-marker {display:none}
.employee-view .my-salary-shift > summary small {display:block}
.employee-view .my-salary-shift[open] > summary svg {transform:rotate(180deg)}
.employee-view .my-salary-shift > :not(summary) {margin:0 13px 10px}
.employee-view .my-salary > .employee-my-salary {margin:6px 0 0}

/* Employee key handovers: selected status and history profile layout. */
.owner-view .owner-keys-caption{margin:12px 0 18px}
.owner-view #owner-key-event h3{margin:20px 0 8px;font-size:15px;font-weight:500}
.owner-view #owner-key-event .owner-field-grid{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr)}
.owner-view #owner-key-event label{font-size:13px;min-width:0}
.owner-view #owner-key-event input{min-width:0;padding:10px;min-height:44px}
.owner-view .owner-key-history{list-style:none;padding:0;margin:0}
.owner-view .owner-key-history li{display:grid;grid-template-columns:22px minmax(0,1fr);gap:12px;padding:16px 0;border-bottom:1px solid #e3e6eb}
.owner-view .owner-key-history li:last-child{border-bottom:0;padding-bottom:0}
.owner-view .owner-key-history li>span{color:#686c74}
.owner-view .owner-key-history strong{font-size:15px;font-weight:400}
.owner-view .owner-key-history p{margin:5px 0 0;font-size:13px}
.owner-view #owner-key-error:empty{display:none}

/* Key date corrections keep the original handover and every edit visible. */
.owner-view .owner-key-correction-form h3{margin:14px 0 8px;font-size:15px;font-weight:500}
.owner-view .owner-key-correction-form label{min-width:0;font-size:13px}
.owner-view .owner-key-correction-form input{min-width:0;padding:10px;min-height:44px}
.owner-view .owner-key-corrections{border:0;padding:0;margin-top:8px}
.owner-view .owner-key-corrections>summary{font-size:13px;color:#686c74;min-height:44px;padding:10px 0}
.owner-view .owner-key-change{padding:12px 0;border-bottom:1px solid #e3e6eb}
.owner-view .owner-key-change:last-child{border-bottom:0;padding-bottom:0}
.owner-view .owner-key-change>p{overflow-wrap:anywhere}
.owner-view .owner-key-change dl{margin:8px 0 0;font-size:13px}
.owner-view .owner-key-change dl>div{display:grid;grid-template-columns:42px minmax(0,1fr);gap:8px;margin:6px 0}
.owner-view .owner-key-change dt{color:#686c74}
.owner-view .owner-key-change dd{margin:0;overflow-wrap:anywhere}
.owner-view .owner-key-correction-form [data-key-error]:empty{display:none}
@media(max-width:380px){.owner-view .owner-key-correction-form .owner-field-grid{grid-template-columns:minmax(0,1fr)}}

/* Cancelled key handovers remain readable in the journal. */
.owner-view .owner-key-event-heading{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.owner-view .owner-key-event-actions{display:flex;flex-direction:column;align-items:flex-start}
.owner-view .owner-key-cancellation-form h3{margin:14px 0 8px;font-size:15px;font-weight:500}
.owner-view .owner-key-cancellation-form>p{margin:10px 0 0}
.owner-view .owner-key-cancelled .owner-key-event-heading>strong{color:#686c74}
.owner-view .owner-key-cancellation-note{padding-top:8px;overflow-wrap:anywhere}
.owner-view .owner-key-cancellation-form [data-key-error]:empty{display:none}

/* Task rating and cash-shift periods: scoped to the task feature. */
.task-rating{margin:18px 0 20px}.task-rating-heading{display:flex;align-items:baseline;gap:8px;margin-bottom:12px}.task-rating-heading strong{font-size:30px;font-weight:500;line-height:1.2}.task-rating-bar{display:flex;overflow:hidden;height:8px;border-radius:8px;background:#e8ebee}.task-rating-bar>span{height:100%}.task-rating-completed{background:#66917a}.task-rating-failed{background:#c47c73}.task-rating-assigned{background:#e8ebee}.task-rating-legend{display:flex;flex-wrap:wrap;gap:8px 14px;margin-top:12px;color:#686d76;font-size:12px;line-height:1.5}.task-rating-legend span{display:inline-flex;align-items:center;gap:5px}.task-rating-legend i{display:inline-block;width:7px;height:7px;border-radius:50%;flex:none}.task-rating-note{font-size:13px;line-height:1.5}.task-rating-person{padding:18px 0;border-bottom:1px solid #e1e4e9}.task-rating-person:last-child{border-bottom:0;padding-bottom:0}.task-rating-person>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;list-style:none;cursor:pointer}.task-rating-person>summary::-webkit-details-marker{display:none}.task-rating-person>summary>span:first-child{min-width:0}.task-rating-person>summary strong{display:block;font-weight:500;overflow-wrap:anywhere}.task-rating-person>summary small{display:block;color:#686d76;margin-top:6px}.task-rating-person>.task-rating .task-rating-heading{display:none}.task-rating-percent{flex:none;font-size:22px}.task-rating-task>span{min-width:0;overflow-wrap:anywhere}.task-rating-task small{display:block}.task-status-completed{color:#527660!important}.task-status-failed{color:#995e57!important}.task-period-fields{border:0;padding:0;margin:20px 0;min-width:0}.task-period-fields legend{font-weight:500;margin-bottom:12px}.task-period-fields .owner-field-grid{margin-top:0}.task-period-info{line-height:1.6}

.task-rating-person>summary{display:block}.task-rating-person-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.task-rating-person-head>span:first-child{min-width:0}.task-rating-person summary .task-rating-heading{display:none}.task-rating-person summary .task-rating{margin:12px 0 0}
.task-rating-person{border-top:0}.task-rating-person>summary{padding:0}.task-rating-person:last-child{border-bottom:0}

/* Employee dossier: employment terms history. */
.owner-condition-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap}
.owner-condition-heading h2{margin:0;overflow-wrap:anywhere}
.owner-condition-records ol,.owner-condition-events{list-style:none;padding:0;margin:16px 0 0}
.owner-condition-records li,.owner-condition-events li{padding:16px 0;border-top:1px solid var(--line,#dedbd4);overflow-wrap:anywhere}
.owner-view .owner-condition-records{border-top:0}
.owner-condition-records summary{cursor:pointer}
