/* Every APK attendance card has a viewport budget and explicit content pages. */
.att2-main:has(.att3){overflow:hidden!important;padding:0;display:flex;min-height:0}
.att2:has(.att3){gap:0;min-width:0}
.att3{display:flex;flex-direction:column;flex:1;min-height:0;min-width:0;gap:6px;color:#24455d}
.att3 [hidden],.att3-dialog [hidden]{display:none!important}
.att3 button{min-height:34px;line-height:1.25}
.att3-tabs,.att3-subtabs{display:flex;gap:5px;overflow-x:auto;overflow-y:hidden;flex:none;scrollbar-width:none;touch-action:pan-x}
.att3-tabs::-webkit-scrollbar,.att3-subtabs::-webkit-scrollbar{display:none}
.att3-tabs button,.att3-subtabs button{white-space:nowrap;flex:none;padding:7px 11px}
.att3-tabs button[aria-current=page]{background:#ffdb20;border-color:#dfc017;color:#183646;font-weight:700}
.att3-deck{display:flex;flex-direction:column;flex:1;min-height:0;gap:8px;border:1px solid #c7ddec;border-radius:20px;background:#f6fbff;padding:12px;overflow:hidden;touch-action:pan-y}
.att3-sync{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:28px;flex:none;font-size:12px;color:#52728a}
.att3-sync button{min-height:26px;width:32px;padding:3px}
.att3-today{display:grid;grid-template-columns:1fr;grid-template-rows:auto minmax(60px,1fr) auto minmax(120px,1.7fr) auto;min-height:0;height:100%;gap:8px}
.att3-today>header{gap:6px;flex-wrap:wrap}
.att3 h2{font-size:19px;line-height:1.2;overflow-wrap:anywhere}
.att3-live{display:flex;flex-direction:column;justify-content:center;text-align:center;gap:5px}
.att3-live>strong{font-size:clamp(28px,8vw,46px);line-height:1.1;color:#244f6e}
.att3-live>small{font-size:14px}
.att3-work-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.att3-work-actions button{min-height:54px;padding:8px 3px;font-size:18px;font-weight:700;border-radius:16px}
.att3-confirmations{display:flex;flex-direction:column;justify-content:space-evenly;min-height:0;gap:5px}
.att3-confirm{display:flex;gap:8px;align-items:center;min-height:37px;border:1px solid #d1e0ec;border-radius:13px;padding:6px 8px;background:white}
.att3-confirm.recorded{background:#edf9f1;border-color:#b3dcc1}
.att3-confirm>span:first-child{flex:1;min-width:0}
.att3-confirm b,.att3-confirm small{display:block;line-height:1.25}
.att3-confirm b{font-size:16px}.att3-confirm small{font-size:11px}
.att3-confirm>strong{font-size:19px;white-space:nowrap}
.att3-confirm .att2-circle{width:29px;height:29px;min-height:29px;padding:5px}
.att3-check{width:29px;text-align:center;color:#7894a7}
.att3-today-tools,.att3-tools{display:flex;gap:6px;flex:none}
.att3-today-tools button{flex:1;font-size:12px;padding:6px 4px;min-width:0}
.att3-period{display:flex;flex-wrap:wrap;align-items:center;gap:5px;flex:none}
.att3-period>b{flex:1;text-align:center;line-height:1.2;font-size:16px;min-width:0}
.att3-period>button{padding:6px 9px}.att3-period>select{width:100%;padding:6px}
.att3-heading{display:flex;justify-content:space-between;gap:8px;align-items:center;flex:none;min-height:32px}
.att3-content{flex:1;min-height:0;display:flex;flex-direction:column;gap:8px;overflow:hidden}
.att3-content>.att2-card{margin:0}.att3-content>h3{font-size:15px;margin:0}
.att3-content[data-kind=grid]>.att2-days,.att3-content>.att2-months,.att3-content>.att2-stats{display:grid;flex:1;min-height:0;gap:8px;margin:0;align-content:start}
.att3-content .att2-weeknames,.att3-content .att2-days>i{display:none!important}
.att3-content button.att2-day{min-height:0;padding:9px 5px;gap:5px;border-radius:16px;justify-content:center}
.att3-content button.att2-day>b{font-size:15px}.att3-content .att2-day strong{font-size:21px}.att3-content .att2-day small{font-size:11px;line-height:1.2}
.att3-content .att2-stat{padding:10px;display:flex;flex-direction:column;justify-content:center;gap:6px}.att3-content .att2-stat>b{font-size:21px;margin:0}
.att3-content[data-kind=jobs]>button{display:flex;flex-direction:column;gap:4px;text-align:left;padding:9px 12px;flex:none}
.att3-content .att2-record{font-size:14px;padding:6px 0;flex:none}.att3-content .att2-record small{font-size:11px;line-height:1.3}.att3-content .att2-record .att2-circle{width:29px;height:29px;min-height:29px}
.att3-pager{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:32px;flex:none;font-size:12px}
.att3-pager button{width:40px;padding:4px;min-height:30px;font-size:22px}
.att3-summary-link{flex:none}
.att3-content form,.att3-dialog>form{display:flex;flex-direction:column;flex:1;min-height:0;margin:0;gap:8px}
.att3-fields{flex:1;min-height:0;display:flex;flex-direction:column;gap:8px;overflow:hidden}
.att3-fields>fieldset,.att3-fields>div:not(.att2-checkdays),.att3-fields .att2-custom-field{display:contents}
.att3-fields legend{font-size:12px;padding:0}.att3-fields .att2-checkdays{display:flex;flex-wrap:wrap;gap:6px;margin:0}
.att3-fields label,.att3-dialog label{margin:0!important;color:#24455d;font-size:13px;gap:4px;flex:none;line-height:1.3}
.att3-fields input,.att3-fields select,.att3-fields textarea,.att3-dialog input,.att3-dialog select,.att3-dialog textarea{padding:8px;min-height:36px;font-size:16px;max-width:100%}
.att3-fields input[type=checkbox]{min-height:16px}
.att3-fields textarea,.att3-dialog textarea{min-height:65px;height:65px;resize:none}
.att3-submit{flex:none}
.att3-dialog[open]{display:flex;flex-direction:column;gap:8px;width:min(94vw,540px);height:min(560px,calc(100dvh - 16px));max-height:calc(100dvh - 16px);overflow:hidden!important;padding:12px;box-sizing:border-box}
.att3-dialog>header{flex:none;margin:0}.att3-dialog>p{flex:none}.att3-dialog .att3-pager{margin-top:0}
@media(max-height:520px){
 .shell[data-screen=clock]{padding:8px 12px 0}
 .shell[data-screen=clock]>.top{max-height:44px;margin-bottom:4px;flex:none}
 .shell[data-screen=clock]>.top .brand-logo{max-height:40px}
 .att3-deck:has(form)>.att3-heading{display:none}
 .att3-deck:has(form)>.att3-subtabs button{min-height:28px;padding:4px 10px;font-size:12px}
 .att3-fields label:not(.att2-check){flex-direction:row;align-items:center;justify-content:space-between}
 .att3-fields label:not(.att2-check)>input,.att3-fields label:not(.att2-check)>select{width:60%;flex:none}
 .att3{gap:4px}.att3-deck{padding:8px;gap:5px}.att3-tabs button{min-height:30px;padding:5px 10px;font-size:13px}.att3-sync{min-height:23px;font-size:11px}.att3 h2{font-size:16px}
 .att3-today{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto minmax(36px,1fr) auto auto;column-gap:12px;row-gap:4px}
 .att3-today>header{grid-column:1/-1}.att3-live{grid-column:1;grid-row:2;gap:2px}.att3-live>strong{font-size:30px}.att3-live>small{font-size:12px}
 .att3-work-actions{grid-column:1;grid-row:3}.att3-work-actions button{min-height:36px;font-size:15px;border-radius:10px}
 .att3-confirmations{grid-column:2;grid-row:2/5;gap:3px}.att3-confirm{min-height:34px;padding:4px 6px}.att3-confirm b{font-size:14px}.att3-confirm small{font-size:10px}.att3-confirm>strong{font-size:17px}
 .att3-today-tools{grid-column:1;grid-row:4}.att3-today-tools button{min-height:28px;font-size:11px;padding:4px}
 .att3-period select{width:auto;flex:1;padding:5px}.att3-period>b{font-size:14px}.att3-period>button,.att3-summary-link{min-height:29px;padding:4px 8px;font-size:12px}
 .att3-content button.att2-day{gap:3px;padding:5px}.att3-content .att2-day strong{font-size:18px}.att3-content .att2-day small{font-size:10px}
}

.att3-work-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.att3-work-actions.before-arrival{grid-template-columns:1fr}.att3-work-actions.working:has(>button:only-child){grid-template-columns:1fr}.att3-work-actions [data-action=business_in]{font-size:14px}.att3-warning{font-size:12px!important;padding:5px!important;background:#fff1ae!important}.att3-content .att2-day{min-height:0!important}.att3-content .att2-document{padding:7px;font-size:12px}.att3-content>.att2-alert{padding:8px;font-size:12px}.att3-content>.att2-card{padding:10px}.att3-content .att2-shift{flex:none}.att3-content .att2-day-facts{flex:none}.att3-content>.att2-card h2{font-size:16px}.att3-content>.att2-card>strong{font-size:22px}.att3-dialog>.att2-help{font-size:12px;padding:8px;margin:0}.att3-content .att2-finances{flex:none}

.att3-subtabs button[data-ac=admin-group]{font-size:12px;padding:6px 7px}

/* Visible period affordance; swipes move the selected period, tabs select sections. */
.att3-deck{position:relative}
.att3-deck:has(.att3-period)::before,.att3-deck:has(.att3-period)::after{position:absolute;top:52%;z-index:2;color:#477395;opacity:.28;font-size:26px;pointer-events:none;line-height:1}
.att3-deck:has(.att3-period)::before{content:'‹';left:2px}.att3-deck:has(.att3-period)::after{content:'›';right:2px}
.att3-today .att3-day-arrow{width:26px;min-height:26px;padding:1px;flex:none;border:1px solid #c7ddec;border-radius:9px;background:#f6fbff;color:#477395;font-size:23px}
.att3-today>header h2{flex:1;margin:0}.att3-today>header .att2-circle{width:27px;height:27px;min-height:27px;padding:2px}

/* One consistent daily card, one date, both ends always visible. */
.att3-today{grid-template-rows:auto auto minmax(45px,1fr) auto minmax(120px,1.7fr) auto}
.att3-today .att3-day-head{display:grid;grid-template-columns:26px minmax(0,1fr) auto 27px 26px;gap:5px;align-items:center;flex-wrap:nowrap}
.att3-day-head h2{text-align:center;white-space:nowrap;font-size:18px}.att3-day-now{min-height:28px!important;padding:4px 7px!important;font-size:12px}
.att3-day-status{display:flex;justify-content:center;gap:6px;align-items:center;font-size:12px}.att3-day-note{font-size:12px;text-align:center;color:#815620;overflow-wrap:anywhere}
@media(max-height:520px){.att3-today{grid-template-rows:auto auto minmax(36px,1fr) auto auto}.att3-today>.att3-day-head{grid-row:1;grid-column:1/-1}.att3-day-status{grid-row:2;grid-column:1/-1}.att3-live{grid-row:3}.att3-work-actions{grid-row:4}.att3-confirmations{grid-row:3/6}.att3-today-tools{grid-row:5}.att3-day-head h2{font-size:16px}.att3-day-note{grid-column:1;grid-row:4/6}}

.att3-day-status select{flex:1;min-width:0;max-width:220px;min-height:28px;padding:3px 7px;font-size:13px}.att3-day-status .att2-badge{flex:none}

.att3-confirm .att3-time{display:flex;flex-direction:column;align-items:flex-end;gap:2px}.att3-confirm .att3-time small{font-size:10px;white-space:nowrap}.att3-confirm .att3-time strong{font-size:23px}.att3-day-head h2{font-size:20px}


/* User's canonical day card: fixed slots, no reflow when browsing dates. */
.att3-today{grid-template-columns:1fr;grid-template-rows:28px 28px minmax(45px,1fr) 54px minmax(164px,1.7fr) 38px;gap:8px}.att3-today>.att3-day-head{grid-row:1;grid-column:1}.att3-day-status{grid-row:2;grid-column:1;display:grid;grid-template-columns:minmax(0,1fr) 65px;gap:6px}.att3-day-status select{max-width:none;width:100%}.att3-day-status .att2-badge{justify-self:center}.att3-live{grid-row:3;grid-column:1}.att3-live>strong{font-size:clamp(28px,8vw,46px)}.att3-work-actions{grid-row:4;grid-column:1;grid-template-columns:repeat(2,minmax(0,1fr))!important;position:relative}.att3-work-actions>button{height:54px;min-height:54px;position:relative}.att3-work-actions.readonly>button{visibility:hidden}.att3-confirmations{grid-row:5;grid-column:1;display:flex;flex-direction:column;justify-content:space-evenly;width:100%;min-height:164px;gap:5px}.att3-confirm{height:52px;min-height:52px;flex:none;box-sizing:border-box;padding:4px 8px;display:grid;grid-template-columns:minmax(0,1fr) 110px 30px;gap:5px;text-align:left;width:100%}.att3-confirm b{font-size:16px}.att3-confirm small{font-size:10px;line-height:1.1}.att3-confirm .att3-time{gap:1px;align-items:flex-end}.att3-confirm .att3-time strong{font-size:23px;line-height:1}.att3-confirm .att3-time small{font-size:9px;line-height:1}.att3-confirm .att3-meal-time strong{font-size:16px}.att3-meal{background:#fff;border:1px solid #c7ddec;border-radius:13px;color:inherit}.att3-meal.meal-missing{border-color:#dbaa13;background:#fff7c8;animation:att3-meal-pulse 1.8s ease-in-out infinite}.att3-today-tools{grid-row:6;grid-column:1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));height:38px}.att3-today-tools button{height:38px;min-height:38px;padding:4px;font-size:12px}.att3-confirm .att2-circle{width:29px;height:29px;min-height:29px}.att3-confirm .att3-check{text-align:center}.att3-day-insights{position:absolute;inset:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}.att3-day-insights>span,.att3-day-insights>button{border:1px solid #c7ddec;border-radius:13px;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:4px;min-height:0;height:54px;box-sizing:border-box;color:#24455d}.att3-day-insights small{font-size:10px;line-height:1.1}.att3-day-insights b{font-size:13px;line-height:1.2}.att3-action-price{position:absolute;bottom:3px;right:7px;font-size:10px;line-height:1}.att3-meal-options{display:flex;flex-direction:column;gap:10px}.att3-meal-options button{min-height:48px;font-size:17px}
@keyframes att3-meal-pulse{0%,100%{box-shadow:0 0 0 0 #dfb91900}50%{box-shadow:0 0 0 3px #dfb91955}}
@media(prefers-reduced-motion:reduce){.att3-meal.meal-missing{animation:none}}
@media(max-height:620px) and (orientation:portrait){.att3-today{grid-template-rows:26px 23px minmax(32px,1fr) 40px 119px 28px;gap:4px}.att3-work-actions>button,.att3-day-insights>span,.att3-day-insights>button{height:40px;min-height:40px}.att3-confirmations{min-height:119px;gap:4px}.att3-confirm{height:37px;min-height:37px;padding:3px 6px;grid-template-columns:minmax(0,1fr) 100px 25px}.att3-confirm b{font-size:14px}.att3-confirm small{font-size:8px}.att3-confirm .att3-time strong{font-size:19px}.att3-confirm .att3-time small{font-size:8px}.att3-live>strong{font-size:26px}.att3-live>small{font-size:12px}.att3-confirm .att2-circle{width:25px;height:25px;min-height:25px;padding:3px}.att3-today-tools,.att3-today-tools button{height:28px;min-height:28px;font-size:11px}}
@media(max-height:520px) and (orientation:landscape){.att3-today{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:26px 23px minmax(36px,1fr) 34px 28px;gap:4px 10px}.att3-today>.att3-day-head{grid-column:1/-1;grid-row:1}.att3-day-status{grid-column:1/-1;grid-row:2;display:flex}.att3-live{grid-column:1;grid-row:3}.att3-work-actions{grid-column:1;grid-row:4}.att3-work-actions>button,.att3-day-insights>span,.att3-day-insights>button{height:34px;min-height:34px}.att3-today-tools{grid-column:1;grid-row:5;height:28px}.att3-today-tools button{height:28px;min-height:28px;font-size:11px}.att3-confirmations{grid-column:2;grid-row:3/6;min-height:115px}.att3-confirm{height:37px;min-height:37px;padding:3px 6px}.att3-confirm b{font-size:14px}.att3-confirm .att3-time strong{font-size:19px}.att3-confirm .att3-time small{font-size:8px}.att3-live>strong{font-size:26px}}

/* Fixed upper summary; available height belongs to the three punch rows. */
@media(orientation:portrait){
 .att3-today{grid-template-rows:28px 28px 78px 54px minmax(180px,1fr) 38px;gap:8px}
 .att3-live{justify-content:center;gap:4px}
 .att3-confirmations{display:grid;grid-template-columns:minmax(0,1fr);justify-content:stretch;align-items:stretch;grid-template-rows:repeat(3,minmax(0,1fr));min-height:180px;gap:8px}
 .att3-confirm{height:100%;min-height:54px;padding:8px 10px}
 .att3-confirm b{font-size:18px}.att3-confirm small{font-size:11px}
 .att3-confirm .att3-time strong{font-size:26px}.att3-confirm .att3-time small{font-size:10px}
 .att3-confirm .att3-meal-time strong{font-size:17px}
}
.att3-confirm.att3-missing,.att3-meal.meal-missing{background:#fff0f1;border-color:#e29aa4;color:#803044}
.att3-meal.meal-missing{animation:att3-missing-pulse 1.8s ease-in-out infinite}
@keyframes att3-missing-pulse{0%,100%{box-shadow:0 0 0 0 #cc294100}50%{box-shadow:0 0 0 3px #cc29412b}}
@media(prefers-reduced-motion:reduce){.att3-meal.meal-missing{animation:none}}
@media(max-height:740px) and (orientation:portrait){
 .att3-today{grid-template-rows:26px 23px 52px 40px minmax(125px,1fr) 28px;gap:4px}
 .att3-confirmations{min-height:125px;gap:4px}.att3-confirm{min-height:39px;padding:4px 6px}
 .att3-confirm b{font-size:17px}.att3-confirm small{font-size:9px}
 .att3-confirm .att3-time strong{font-size:23px}.att3-confirm .att3-time small{font-size:8px}
 .att3-confirm .att3-meal-time strong{font-size:15px}
}

/* Period overview is a compact list; every row opens the canonical day card. */
.att3 .att3-period{display:grid;grid-template-columns:28px minmax(0,1fr) 28px auto;gap:6px;align-items:center;flex-wrap:nowrap}
.att3 .att3-period>b{font-size:13px;white-space:nowrap;line-height:1.2;overflow:hidden;text-overflow:ellipsis;min-width:0}
.att3 .att3-period>button{min-width:0;padding:4px 5px;min-height:30px}
.att3 .att3-period>select{grid-column:1/-1;width:100%;min-width:0;padding:5px 7px;font-size:13px}
.att3-content[data-kind=days]{gap:5px}
.att3-content>.att3-day-row{display:grid;grid-template-columns:66px minmax(0,1fr) 99px;grid-template-rows:1fr auto;gap:2px 7px;flex:none;min-height:54px;height:54px;width:100%;box-sizing:border-box;padding:5px 8px;border-radius:12px;border:1px solid #c7ddec;background:#fff;color:#24455d;text-align:left;line-height:1.15}
.att3-row-date{font-weight:700;font-size:12px;align-self:center}
.att3-row-work{display:flex;flex-direction:column;justify-content:center;gap:2px;min-width:0}
.att3-row-work strong{font-size:15px;white-space:nowrap;line-height:1.1}
.att3-row-work small{font-size:10px;line-height:1.1;white-space:nowrap}
.att3-row-meal{display:flex;flex-direction:column;justify-content:center;gap:2px;min-width:0;text-align:right}
.att3-row-meal b{font-size:10px;font-weight:600;line-height:1.1;white-space:nowrap}
.att3-row-meal small{font-size:9px;line-height:1.1;white-space:nowrap}
.att3 .att3-row-state{grid-column:1/-1;font-size:9px;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.att3-day-row.incomplete{background:#fff0f1;border-color:#e29aa4;color:#803044}
.att3-day-row.complete{background:#edf9f1;border-color:#b3dcc1}
.att3-day-row.future{background:#f6f9fc;color:#70899c}
@media(max-width:370px){.att3-content>.att3-day-row{grid-template-columns:60px minmax(0,1fr) 92px;gap:2px 5px;padding:5px 6px}.att3-row-work strong{font-size:14px}.att3-row-date{font-size:11px}.att3-row-meal b{font-size:9px}.att3 .att3-period>b{font-size:12px}}
@media(max-height:520px) and (orientation:landscape){.att3 .att3-period{grid-template-columns:28px minmax(0,1fr) 28px auto minmax(150px,1fr)}.att3 .att3-period>select{grid-column:auto}.att3-content>.att3-day-row{height:48px;min-height:48px}}

@media(max-height:520px) and (orientation:landscape){.att3-deck:has(>.att3-content[data-kind=days])>.att3-pager{min-height:24px;height:24px}.att3-deck:has(>.att3-content[data-kind=days])>.att3-pager button{min-height:24px;height:24px;padding:2px 8px}.att3-content>.att3-day-row{height:44px;min-height:44px}}

/* A complete week uses the entire card; no measured page groups or bottom controls. */
.att3-content[data-kind=week]{display:grid;grid-template-rows:repeat(7,minmax(0,1fr));gap:5px}
.att3-content[data-kind=week]>.att3-day-row{height:auto;min-height:0;padding:3px 6px;gap:1px 5px}
.att3-content[data-kind=week] .att3-row-work strong{font-size:14px}
.att3-content[data-kind=week] .att3-row-work small{font-size:9px}
.att3-content[data-kind=week] .att3-row-state{font-size:8px}
.att3-content[data-kind=week] .att3-row-meal b{font-size:9px}
.att3-deck:has(.att3-today.day-complete){border-color:#a9d4b8;background:#f1faf4}
.att3 .att3-meal.recorded{background:#edf9f1;border-color:#b3dcc1}
@media(max-height:520px) and (orientation:landscape){
 .att3-content[data-kind=week]{gap:3px}
 .att3-content[data-kind=week]>.att3-day-row{grid-template-columns:66px minmax(0,1fr) 180px minmax(80px,1fr);grid-template-rows:1fr;padding:1px 6px}
 .att3-content[data-kind=week] .att3-row-state{grid-column:auto;align-self:center}
 .att3-content[data-kind=week] .att3-row-work,.att3-content[data-kind=week] .att3-row-meal{flex-direction:row;gap:6px;align-items:center;justify-content:flex-start}
}

/* Reserve a complete status line even when Android's text metrics differ. */
.att3-deck:has(>.att3-content[data-kind=week]){padding:8px;gap:5px}
.att3-content[data-kind=week]{gap:3px;-webkit-text-size-adjust:100%;text-size-adjust:100%}
.att3-content[data-kind=week]>.att3-day-row{grid-template-rows:minmax(0,1fr) 11px;padding:3px 6px;align-items:center;overflow:hidden}
.att3-content[data-kind=week] .att3-row-work,.att3-content[data-kind=week] .att3-row-meal{min-height:0;gap:1px}
.att3-content[data-kind=week] .att3-row-work strong{line-height:15px}
.att3-content[data-kind=week] .att3-row-work small,.att3-content[data-kind=week] .att3-row-meal b,.att3-content[data-kind=week] .att3-row-meal small{line-height:10px;margin:0}
.att3-content[data-kind=week] .att3-row-state{height:11px;min-height:11px;line-height:11px;margin:0;align-self:end}
@media(max-height:520px) and (orientation:landscape){
 .att3-content[data-kind=week]>.att3-day-row{grid-template-rows:1fr;padding:1px 6px}
 .att3-content[data-kind=week] .att3-row-state{align-self:center}
}

@media(max-height:520px) and (orientation:landscape){
 .shell[data-screen=clock]:has(.att3[data-card-view=week]) .top{margin-bottom:4px}
 .shell[data-screen=clock]:has(.att3[data-card-view=week]) .brand-logo{height:30px;width:85px}
 .att3-content[data-kind=week] .att3-row-work strong{font-size:12px;line-height:13px}
 .att3-content[data-kind=week] .att3-row-date{font-size:10px;line-height:12px}
}

/* Month calendar: every day stays visible, with work time as the main value. */
.att3-deck:has(>.att3-content[data-kind=month]){padding:8px;gap:5px}
.att3-content[data-kind=month]{gap:4px;-webkit-text-size-adjust:100%;text-size-adjust:100%}
.att3-month-weekdays,.att3-month-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.att3-month-weekdays{flex:none;text-align:center;color:#607d95;font-size:11px;line-height:14px}
.att3-month-days{flex:1;min-height:0;grid-template-rows:repeat(var(--att3-month-weeks),minmax(0,1fr))}
.att3 .att3-month-day,.att3-month-outside{min-height:0;min-width:0;margin:0;padding:3px;display:flex;flex-direction:column;gap:1px;border:1px solid #c7ddec;border-radius:10px;background:#fff;color:#24455d;overflow:hidden}
.att3 .att3-month-day{text-align:left;align-items:stretch;justify-content:space-around}
.att3-month-date{font-size:10px;font-weight:600;line-height:11px}
.att3 .att3-month-day strong{font-size:clamp(12px,3.7vw,16px);font-weight:800;line-height:1.15;white-space:nowrap;text-align:center;letter-spacing:-.03em}
.att3 .att3-month-day.incomplete{background:#fff0f1;border-color:#e29aa4;color:#803044}
.att3 .att3-month-day.complete{background:#edf9f1;border-color:#b3dcc1;color:#244f3a}
.att3 .att3-month-day.future{background:#f6f9fc;color:#70899c}
.att3 .att3-month-day.is-today{border-color:#d8b514;box-shadow:inset 0 0 0 1px #d8b514}
.att3-month-outside{background:#f6f9fc;border-color:#e2ebf2;color:#9cabb8;font-size:10px;line-height:11px}
@media(max-height:520px) and (orientation:landscape){
 .shell[data-screen=clock]:has(.att3[data-card-view=month]) .top{margin-bottom:4px}
 .shell[data-screen=clock]:has(.att3[data-card-view=month]) .brand-logo{height:30px;width:85px}
 .att3-month-weekdays{font-size:9px;line-height:11px}
 .att3-month-days{gap:2px}
 .att3 .att3-month-day,.att3-month-outside{padding:1px 3px;border-radius:6px}
 .att3-month-date{font-size:9px;line-height:10px}
 .att3 .att3-month-day strong{font-size:12px;line-height:13px}
}

@media(max-height:520px) and (orientation:landscape){
 .att3 .att3-month-day{flex-direction:row;align-items:center;gap:3px}
 .att3-month-date{flex:none;width:16px}
 .att3 .att3-month-day strong{flex:1}
}
/* Twelve monthly totals fit in the yearly overview. */
.att3-deck:has(>.att3-content[data-kind=year]){padding:8px;gap:5px}
.att3-content[data-kind=year]{display:grid;grid-template-rows:repeat(12,minmax(0,1fr));gap:3px;text-size-adjust:100%;-webkit-text-size-adjust:100%}
.att3 .att3-year-row{min-height:0;min-width:0;padding:2px 6px;display:grid;grid-template-columns:72px minmax(0,1fr) 104px;align-items:center;gap:4px;border:1px solid #c7ddec;border-radius:9px;background:white;color:#24455d;text-align:left;overflow:hidden}
.att3-year-name,.att3-year-meals{display:flex;flex-direction:column;min-width:0;gap:1px}
.att3-year-name b,.att3-year-meals b{font-size:10px;line-height:11px;white-space:nowrap}
.att3 .att3-year-name small,.att3 .att3-year-meals small{font-size:8px;line-height:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.att3-year-meals{text-align:right}
.att3 .att3-year-row>strong{font-size:13px;line-height:14px;white-space:nowrap;text-align:center}
.att3 .att3-year-row.incomplete{background:#fff0f1;border-color:#e29aa4;color:#803044}
.att3 .att3-year-row.complete{background:#edf9f1;border-color:#b3dcc1;color:#244f3a}
.att3 .att3-year-row.future{background:#f6f9fc;color:#70899c}
@media(max-height:520px) and (orientation:landscape){
 .shell[data-screen=clock]:has(.att3[data-card-view=year]) .top{margin-bottom:4px}
 .shell[data-screen=clock]:has(.att3[data-card-view=year]) .brand-logo{height:30px;width:85px}
 .att3-content[data-kind=year]{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(6,minmax(0,1fr));grid-auto-flow:column;gap:3px}
}

@media(max-height:520px) and (orientation:landscape){
 .att3 .att3-year-row{grid-template-columns:72px minmax(0,1fr) 160px;padding:1px 6px}
 .att3-year-name small{display:none}
 .att3-year-meals{flex-direction:row;justify-content:flex-end;align-items:center;gap:6px}
 .att3 .att3-year-row>strong{font-size:12px;line-height:13px}
}

.att3 .att3-confirm.assigned{background:#fff0d9;border-color:#e0a34b;color:#835016}.att3 .att3-confirm.assigned>span:first-child small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* One shared compact date row, with view selection behind the filter icon. */
.att3 .att3-period{grid-template-columns:28px minmax(0,1fr) 28px 34px auto;gap:4px}
.att3 .att3-day-head{display:grid;grid-template-columns:28px minmax(0,1fr) 28px 34px auto 28px;gap:4px;flex-wrap:nowrap}
.att3 .att3-day-head h2{font-size:16px;white-space:nowrap;text-align:center;line-height:1.2;margin:0;overflow:hidden}
.att3 .att3-day-head button{min-width:0;min-height:30px;padding:4px 5px}
.att3 .att3-day-head .att2-circle{width:28px;height:28px;min-height:28px}
.att3 .att3-view-filter{position:relative;display:grid;place-items:center;width:34px;height:30px;border:1px solid #bed5e8;border-radius:10px;background:#fff;margin:0;padding:0}
.att3-view-filter svg{width:22px;height:22px;color:#285579}
.att3 .att3-view-filter select{position:absolute;inset:0;opacity:0;width:100%;height:100%;padding:0;cursor:pointer}
.att3 .att3-day-row.is-selected,.att3 .att3-month-day.is-selected,.att3 .att3-year-row.is-selected{border-color:#d8b514;box-shadow:inset 0 0 0 1px #d8b514}
@media(max-width:370px){.att3 .att3-day-head h2{font-size:14px}.att3 .att3-day-head{gap:3px}}
@media(max-height:520px) and (orientation:landscape){.att3 .att3-period{grid-template-columns:28px minmax(0,1fr) 28px 34px auto minmax(150px,1fr)}}

.att3-utility-head{display:flex;justify-content:flex-end;gap:6px;flex:none}.att3 .att3-utility-head button{min-height:30px;padding:4px 8px}

.att3-content[data-kind=summary]{display:block!important;min-height:0;overflow:hidden}.att3 .att-period-summary{height:100%;box-sizing:border-box;grid-template-rows:auto minmax(0,1fr) auto auto;padding:8px;gap:6px}.att3 .att-period-types{grid-template-rows:repeat(var(--summary-count),minmax(0,1fr));min-height:0}.att3 .att-period-type{min-height:0;padding:4px 7px;font-size:13px}.att3 .att-period-type span{font-size:12px}.att3 .att-period-summary>header button{padding:4px 8px;min-height:30px;font-size:12px}.att3-deck:has(>[data-kind=summary]){padding:8px;gap:5px}
@media(max-height:520px) and (orientation:landscape){.shell[data-screen=clock]:has(.att3[data-card-view=sum]) .brand-logo{height:30px;width:85px}.att3 .att-period-summary{gap:3px;padding:4px 7px}.att3 .att-period-summary>header strong{font-size:18px}.att3 .att-period-summary small{font-size:10px}.att3 .att-period-types{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr))}.att3 .att-period-type{padding:1px 5px;font-size:11px}.att3 .att-period-type span{font-size:10px}.att3 .att-period-meals{padding:2px 6px}.att3 .att-period-meals strong{font-size:16px}.att3 .att-period-note{font-size:10px;line-height:1.1}.att3[data-card-view=sum] .att3-subtabs button{padding:3px 9px;min-height:25px}}
.att3 .att-period-type b,.att3 .att-period-type span{line-height:1.2}
@media(max-height:520px) and (orientation:landscape){.att3 .att-period-summary>header>div{flex-direction:row;align-items:center;gap:8px;flex:1}.att3 .att-period-summary>header small{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.att3 .att-period-summary>header strong{flex:none}.att3 .att-period-meals>span{flex-direction:row;align-items:center;gap:6px}.att3 .att-period-note{padding:2px 6px}}

#att2-dialog:has(.att3-view-options){height:auto!important;min-height:0!important;max-height:calc(100dvh - 24px);overflow:auto!important}.att3-view-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px 0}.att3-view-options>button{min-height:52px;padding:10px 8px;background:#fff;color:#254c65;border:1px solid #bed5e8;border-radius:16px;font-size:16px;font-weight:700;white-space:normal}.att3-view-options>button.selected,.att3-view-options>button:active{background:#ffe42d;border-color:#dfc735}.att3-view-options>button:focus-visible{outline:3px solid #416e8e;outline-offset:2px}

.aw-export-scope{display:flex;flex-wrap:wrap;gap:12px;margin:12px 0}.aw-export-scope label,.aw-bulk-people label{display:flex;align-items:center;gap:8px;color:#254c65}.aw-export-scope input,.aw-bulk-people input{width:20px!important;min-height:20px!important;flex:none}.aw-bulk-picker[hidden]{display:none!important}.aw-bulk-picker{display:grid;gap:10px}.aw-bulk-tools{display:flex;flex-wrap:wrap;gap:8px}.aw-bulk-people{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:8px;max-height:35dvh;overflow:auto;padding:6px}.aw-bulk-people label{padding:10px;border:1px solid #c7ddec;border-radius:14px;background:#f6fbff}.aw-bulk-people label:has(input:checked){background:#fff8cf;border-color:#dfc735}.aw-export-formats{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}.aw-export-formats button{min-height:48px;font-weight:700}#att2-dialog.att3-dialog:has(.aw-export){height:auto!important;min-height:0!important;max-height:calc(100dvh - 24px);overflow:auto!important}.aw-export{padding:10px 0}.aw-export h3,.aw-export p{margin:0 0 10px}.aw-export [data-export-status]{margin-top:12px;color:#254c65}

@media(max-height:520px) and (orientation:landscape){.att3-view-options{grid-template-columns:repeat(3,minmax(0,1fr));padding:8px 0;gap:8px}.att3-view-options>button{font-size:14px;min-height:48px}}

#att2-dialog.att3-dialog:has(.att3-view-options){height:fit-content!important;min-height:0!important;max-height:calc(100dvh - 24px)!important;inset:0!important;margin:auto!important}.att3-view-options{flex:none}

.att3[data-card-view=people] .att3-deck{gap:8px}.att3[data-card-view=people] .att-presence{flex:1;overflow:hidden}.att3[data-card-view=people] .att-presence-list{overflow:auto;-webkit-overflow-scrolling:touch}.att3[data-card-view=people] .att-presence-row{height:auto!important;margin:0!important}.att3[data-card-view=people] .att-presence-times span{white-space:normal}.att3[data-card-view=people] .att-presence-more{max-height:130px;overflow:auto}
