/* Phone is the baseline: a reading-order stack, with an explicit desktop expansion. */
.home-heading{margin:0 0 22px;overflow-wrap:anywhere}.home-heading .eyebrow{font-size:12px;line-height:1.6;letter-spacing:1px;margin-bottom:10px}.home-heading h1{font-size:28px;line-height:1.25;letter-spacing:-.8px;margin:0}
.avatar{width:44px;height:44px;min-height:44px}.segmented button{min-height:44px}
.home-flow{display:grid;grid-template-columns:minmax(0,1fr);gap:18px}.home-flow>section{min-width:0;margin:0}.home-flow h2{font-size:18px;line-height:1.4;margin:0}.home-flow .panel-heading{padding:20px;flex-wrap:wrap}.home-flow .panel-heading svg{color:var(--muted)}
.home-shift{padding:0 20px 16px}.home-shift+.home-shift{border-top:1px solid var(--line);padding-top:16px}.home-shift-title{display:flex;flex-wrap:wrap;gap:8px;justify-content:space-between;font-size:14px;margin:0 0 10px}.home-shift-title>span{color:var(--muted)}
.clock-details,.period-breakdown{margin:0}.clock-details>div,.period-breakdown>div{display:flex;align-items:baseline;justify-content:space-between;gap:16px;padding:9px 0}.clock-details dt,.period-breakdown dt{font-size:16px;color:var(--muted)}.clock-details dd,.period-breakdown dd{margin:0;font:700 18px 'Manrope',system-ui;white-space:nowrap}.empty-clocks{padding:0 20px}.home-empty-note{font-size:14px;padding:0 20px;margin:12px 0 20px}.overnight-note{font-size:13px;margin:8px 0 0}
.home-total{padding:18px 20px;border-top:1px solid var(--line);display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;font-size:16px}.home-total strong{font-size:28px;letter-spacing:-.8px;white-space:nowrap}.home-today .home-total{background:var(--soft)}.home-card-action{padding:0 20px 20px}.home-today .home-card-action{padding-top:16px}.home-card-action button{width:100%;min-height:52px;font-size:16px}.home-metric{padding:0 20px 20px}.home-metric>strong{font-size:32px;letter-spacing:-1px}.home-metric p{font-size:14px;margin:9px 0 0}.home-range{padding:0 20px;margin:0 0 12px;font-size:14px}.period-breakdown{padding:0 20px 16px}.home-period .home-total{margin-bottom:4px}.home-period .home-total strong{font-size:25px}
.home-payday{border-radius:14px;padding:22px;background:#d92d38;color:#fff}.payday-label{display:flex;gap:10px;align-items:center}.home-payday p{color:#fff;font:700 25px/1.45 'Manrope',system-ui;margin:16px 0;overflow-wrap:anywhere}.home-payday>span{display:inline-block;background:white;color:#b51c28;border-radius:5px;padding:6px 10px;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:1px}
.home-import{display:flex;flex-direction:column;align-items:stretch;padding:22px}.home-import .import-icon{align-self:flex-start;margin:0 0 15px}.home-import h2,.home-import p{max-width:none}.home-import p{font-size:14px;margin:8px 0 18px}.home-import .secondary{width:100%;min-height:52px;border:1px solid var(--line);background:var(--surface);justify-content:center;font-size:16px;padding:12px}.home-recent .panel-heading{align-items:flex-start}.home-recent .text-button{font-size:14px;min-height:44px}
.setup.setup-mobile-first{display:block;min-height:100dvh;background:var(--surface);border-top:8px solid #ffc629}.setup-mobile-first .setup-form{width:100%;max-width:480px;margin:0 auto;padding:32px 24px max(28px,env(safe-area-inset-bottom));align-self:auto}.setup-mobile-first .setup-brand{margin:0 0 24px;align-items:center;font:800 24px/1.3 'Manrope',system-ui;letter-spacing:-.6px;gap:14px}.setup-mobile-first .setup-brand img{width:56px;height:56px;flex-shrink:0}.setup-mobile-first .setup-brand small{display:block;font:400 16px/1.5 'DM Sans',system-ui;letter-spacing:0;margin-top:5px}.setup-mobile-first .setup-lang{display:flex;gap:12px;margin:0 0 32px}.setup-mobile-first .setup-lang button{font-size:14px;min-height:48px;padding:8px 14px;border:1px solid var(--line);border-radius:8px}.setup-mobile-first .setup-lang [aria-pressed=true]{background:#fff1bd;color:#493200;border-color:#edcc65}.setup-mobile-first .eyebrow{font-size:12px;margin-bottom:18px}.setup-mobile-first form{margin:0}.setup-question{font:700 24px/1.4 'Manrope',system-ui;letter-spacing:-.5px}.setup-mobile-first input:not([type=checkbox]):not([type=hidden]){min-height:56px;margin:18px 0 22px;font-size:18px}.setup-mobile-first .primary{min-height:56px;font-size:16px}.setup-mobile-first .day-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:22px 0 16px}.setup-mobile-first .day-picker span{min-height:52px;font-size:16px}.setup-mobile-first .hint{font-size:16px}.setup-mobile-first .setup-privacy{font-size:14px!important;margin:26px 0 0}
@media(max-width:1023px){
 html{scrollbar-width:none}html::-webkit-scrollbar{width:0;height:0}
 .export-buttons button.secondary{min-height:48px;font-size:16px;padding:12px 16px}
 .sidebar{display:none!important}.workspace{margin:0}.topbar{height:auto;min-height:68px;padding:calc(10px + env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) 10px max(16px,env(safe-area-inset-left));gap:10px}.breadcrumb,.local-label{display:none}.mobile-brand{display:flex;gap:9px;align-items:center;font-size:17px;font-weight:800;letter-spacing:-.4px;min-width:0}.mobile-brand img{width:34px;height:34px}.top-actions{gap:0;flex-shrink:0}.avatar{min-width:44px;width:44px;min-height:44px;height:44px}.desktop-add{display:none}
 main{width:100%;max-width:640px;padding:24px max(16px,env(safe-area-inset-right)) calc(116px + env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));margin:0 auto}.home-flow,.stats,.dashboard-grid,.settings-grid,.week-columns{grid-template-columns:minmax(0,1fr)}.home-flow>section{grid-column:auto}.page-heading{align-items:flex-start;flex-wrap:wrap;gap:16px}.page-heading h1{font-size:28px;overflow-wrap:anywhere}.page-heading p{font-size:14px}.settings-form{padding:20px}.form-two{grid-template-columns:minmax(0,1fr);gap:0}.form-two label+label{margin-top:10px}.check-label{min-height:48px}.check-label input{flex-shrink:0}.day-picker label{min-width:44px;min-height:48px}.day-picker span{min-height:48px;min-width:44px;font-size:14px}
 .bottom-nav{position:fixed;z-index:5;inset:auto 0 0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:stretch;gap:0;background:var(--surface);border-top:1px solid var(--line);padding:8px max(4px,env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(4px,env(safe-area-inset-left));box-shadow:0 -4px 20px #29242608}.bottom-nav button{min-width:0;min-height:64px;padding:4px 1px;display:flex;flex-direction:column;justify-content:flex-end;gap:6px;font-size:12px;line-height:1.25;color:var(--muted);overflow-wrap:normal}.bottom-nav button>span{min-height:30px;display:flex;align-items:center;text-align:center;justify-content:center;width:100%}.bottom-nav svg{width:23px;height:23px}.bottom-nav button.active{color:var(--green);font-weight:800}.bottom-nav .nav-add{color:var(--ink);font-weight:800}.bottom-nav .nav-add svg{width:52px;height:48px;padding:11px;border-radius:14px;background:#ffc629;color:#292426;margin-top:-15px;box-shadow:0 3px 9px #a3750025}
 button.primary,button.secondary,button.danger,.split-button{min-height:48px;font-size:16px}.text-button{min-height:44px}.icon-button,.range-header .icon-button,.modal-close{width:44px;min-width:44px;min-height:44px}.modal-close{top:10px;right:10px}.modal{padding:30px 20px 22px;max-height:calc(100dvh - 20px - env(safe-area-inset-top) - env(safe-area-inset-bottom));width:calc(100% - 20px)}.modal h2{font-size:23px;line-height:1.4;overflow-wrap:anywhere;padding-right:35px}.modal-actions{flex-direction:column}.modal-actions button{width:100%}.duplicate>div{display:grid;grid-template-columns:1fr}.shift-field-footer{flex-wrap:wrap;gap:5px}.shift-field-footer span{font-size:14px}.shift-field-footer button{font-size:14px}.shift-fields legend{font-size:14px}.shift-fields .form-two input{margin-bottom:12px}.shift-row{flex-wrap:wrap}.shift-row>div{min-width:0}.shift-row strong{font-size:15px;overflow-wrap:anywhere}.shift-row>b{margin-left:auto}.segmented button{min-height:48px;font-size:14px;white-space:normal}.history-controls{display:flex;flex-direction:column;align-items:stretch;gap:20px}.history-controls form{width:100%}.history-controls form label{font-size:14px}.history-controls form>div{display:flex;min-width:0}.history-controls input{min-width:0;flex:1;width:100%;max-width:100%}.range-header{gap:10px}.range-header>div{min-width:0}.range-header h2{font-size:18px;line-height:1.5}.range-header p{font-size:14px}.history-day{grid-template-columns:62px minmax(0,1fr) auto;gap:8px;padding:14px 12px}.history-day span:nth-child(2){font-size:13px;overflow-wrap:anywhere}.history-day small{font-size:12px}.history-day strong{font-size:14px}.period-total{flex-wrap:wrap;gap:12px}.record-row{padding:16px;gap:10px;min-width:0;flex-wrap:wrap}.date-tile{flex-shrink:0}.row-info{min-width:0}.record-row>b{font-size:15px;white-space:nowrap}.record-row>svg{display:none}.row-info small{font-size:13px}.home-recent .panel-heading{flex-direction:column;gap:2px}
 .calendar-panel{margin-inline:-16px;padding:0;border:0;border-radius:0;overflow:visible}.calendar-grid{grid-template-columns:repeat(7,minmax(0,1fr))}.weekdays div{font-size:12px}.calendar-day{min-height:124px;height:auto;min-width:0;padding:8px 2px;gap:6px}.calendar-day b{font-size:15px;width:30px;height:30px}.calendar-day span,.calendar-day small,.calendar-day em{font-size:12px;white-space:normal;overflow-wrap:normal;line-height:1.25;max-width:100%;letter-spacing:0}.calendar-day .split-mark{display:none}.calendar-day em{padding:3px}.legend{gap:14px}.legend span{font-size:13px}
 .setup-mobile-first .setup-form{padding-top:calc(28px + env(safe-area-inset-top));padding-left:max(20px,env(safe-area-inset-left));padding-right:max(20px,env(safe-area-inset-right))}#toast{bottom:calc(108px + env(safe-area-inset-bottom))}.home-import .secondary{min-height:52px}.home-total>span{max-width:100%;overflow-wrap:anywhere}input[type=date],input[type=time]{max-width:100%;width:100%;min-width:0}
}
@media(min-width:1024px){.home-heading h1{font-size:36px}.home-flow{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:24px}.home-today{grid-row:span 2}.home-recent{grid-column:1/-1}.home-card-action button{width:auto;min-width:180px}.home-heading{margin-bottom:30px}.setup-mobile-first .setup-form{padding-top:70px}}
@media print{.bottom-nav{display:none!important}}

/* Match native home-screen icon treatment for in-app branding. */
.brand img,.mobile-brand img,.setup-brand img{border-radius:22%}
.weekly-review{display:flex;align-items:center;gap:8px;margin:0 0 20px;padding:12px;border:1px solid #edc65d;border-left:4px solid #d92d38;border-radius:14px;background:#fff6d5;color:#242426}.review-open{display:flex;align-items:center;gap:12px;min-height:60px;text-align:left;flex:1;min-width:0;padding:6px;color:inherit}.review-open>svg{flex-shrink:0;width:24px;height:24px}.review-open span{min-width:0;overflow-wrap:anywhere}.review-open strong{display:block;font-size:16px;line-height:1.5}.review-open small{display:block;font-size:13px;margin-top:5px}.weekly-review>.icon-button{flex-shrink:0;color:#242426}.summary-name{overflow-wrap:anywhere;font-weight:600}.personal-notice{margin:28px 0 0;font-size:13px;line-height:1.65;color:var(--muted);overflow-wrap:anywhere}.save-receipt{padding:20px;margin-bottom:24px;background:#fff6d5;color:#242426;border:1px solid #edc65d;border-radius:14px}.save-receipt h2{font-size:20px;margin:0}.save-receipt p{color:#49443b;overflow-wrap:anywhere}.save-receipt dl{margin:0}.save-receipt dl>div{display:flex;justify-content:space-between;gap:12px;margin:12px 0}.save-receipt dd{font-weight:800;margin:0;white-space:nowrap}.hours-actions{position:sticky;bottom:-22px;background:var(--surface);padding:12px 0 max(12px,env(safe-area-inset-bottom));border-top:1px solid var(--line);z-index:2}.hours-actions>.primary{background:#ffc629;color:#242426;min-height:56px;font-size:18px;font-weight:800}.hours-actions button:disabled{opacity:.65;cursor:wait}@media(max-width:430px){.review-open>svg:last-child{display:none}.save-receipt{padding:16px}.hours-actions{gap:6px}.hours-actions>.text-button{min-height:44px}}
.entry-danger{margin-top:32px;padding-top:24px;border-top:1px solid var(--line)}.entry-danger .danger{min-height:48px;width:100%}.undo-delete{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;background:var(--surface);border:1px solid var(--line);padding:14px 18px;margin-bottom:16px;border-radius:12px}.undo-delete .secondary{min-height:48px}
/* Decorative only: the saved receipt/toast announces success without taking focus. */
#save-success{position:fixed;z-index:10000;left:50%;top:35%;transform:translate(-50%,-50%);pointer-events:none;display:flex;flex-direction:column;align-items:center;gap:14px;max-width:calc(100vw - 40px);width:240px;padding:28px 22px;background:#fff;color:#242426;border:1px solid #d9e8df;border-radius:20px;box-shadow:0 12px 48px #24242626;text-align:center;animation:save-feedback 1.6s ease both}#save-success svg{width:76px;height:76px;flex-shrink:0}#save-success circle{fill:#eaf6ed;stroke:#cee7d5;stroke-width:2}#save-success path{stroke:#22643c;stroke-width:5;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:48;stroke-dashoffset:0;animation:save-check .45s ease-out both}#save-success strong{font-size:20px;line-height:1.4}@keyframes save-check{from{stroke-dashoffset:48}to{stroke-dashoffset:0}}@keyframes save-feedback{0%{opacity:0;transform:translate(-50%,-45%) scale(.96)}15%,80%{opacity:1;transform:translate(-50%,-50%) scale(1)}100%{opacity:0;transform:translate(-50%,-53%) scale(1)}}@media(prefers-reduced-motion:reduce){#save-success,#save-success path{animation:none}}
.summary-tools{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:12px}.summary-tools .primary{min-height:52px}.screenshot-summary{max-width:620px;margin:22px auto 0;background:#fff;color:#242426;border:1px solid #e3ded4;border-radius:16px;overflow:hidden}.screenshot-summary header{padding:22px;background:#ffc629;color:#242426}.screenshot-summary header>span{font-size:14px;font-weight:800}.screenshot-summary h2{font-size:24px;margin:10px 0;overflow-wrap:anywhere}.screenshot-summary header p{color:#242426;margin:0;line-height:1.5}.summary-days{padding:8px 20px}.summary-days>div,.summary-totals>div{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid #eee9df;font-size:14px}.summary-days strong,.summary-totals dd{white-space:nowrap}.summary-totals{padding:8px 20px;margin:0}.summary-totals dd{margin:0;font-weight:800}.summary-payday{background:#ba2432;color:#fff;padding:16px 20px;font-weight:700;font-size:15px}.summary-footnote{font-size:12px;padding:12px 20px;margin:0;color:#555}.export-buttons{flex-wrap:wrap}@media(max-width:430px){.screenshot-summary header{padding:18px}.summary-days,.summary-totals{padding-left:16px;padding-right:16px}.summary-days>div{font-size:13px;padding:7px 0}.summary-tools>button{flex:1;min-width:120px}}
@media(max-width:1023px){.summary-workspace>.topbar,.summary-workspace>.bottom-nav{display:none}.summary-workspace main{padding:calc(12px + env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) calc(16px + env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))}.summary-workspace .summary-tools{margin:0 0 8px}.summary-workspace .summary-tools+.hint{font-size:12px;margin:6px 0}.summary-workspace .screenshot-summary{margin-top:8px}.summary-workspace .screenshot-summary header{padding:12px 16px}.summary-workspace .screenshot-summary h2{font-size:20px;margin:6px 0}.summary-workspace .screenshot-summary header p{font-size:13px}.summary-workspace .summary-days>div{padding:5px 0;font-size:12px}.summary-workspace .summary-totals>div{padding:6px 0;font-size:13px}.summary-workspace .summary-payday{padding:10px 16px;font-size:13px}.summary-workspace .summary-footnote{padding:8px 16px;font-size:11px}.summary-workspace .personal-notice{display:none}}
.adp-review{margin:0 0 20px;padding:18px;background:#fff6d5;color:#242426;border:1px solid #edc65d;border-left:4px solid #ba2432;border-radius:14px;animation:adp-enter .7s ease-out both}.adp-copy{display:flex;align-items:flex-start;gap:12px}.adp-copy>svg{width:26px;height:26px;flex-shrink:0;color:#ba2432}.adp-copy strong{font-size:16px}.adp-copy p{margin:6px 0 16px;color:#49443b;font-size:15px;line-height:1.55}.adp-review>.primary{min-height:48px;background:#ffc629;color:#242426}.adp-review.reviewed{animation:adp-dismiss .45s ease-in both}.adp-review.reviewed button svg{animation:adp-check .35s ease-out both}@keyframes adp-enter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@keyframes adp-dismiss{0%,50%{opacity:1;transform:translateY(0)}100%{opacity:0;transform:translateY(-4px)}}@keyframes adp-check{from{transform:scale(.8)}to{transform:scale(1)}}@media(prefers-reduced-motion:reduce){.adp-review,.adp-review.reviewed,.adp-review.reviewed button svg{animation:none}}
.about-app h2:not(:first-child){margin-top:28px}.about-app h3{font-size:17px;line-height:1.45;margin:18px 0 12px}.install-steps{padding-left:24px;margin:12px 0 20px}.install-steps li{padding:4px 0 8px 5px;font-size:15px;line-height:1.6;overflow-wrap:anywhere}.install-steps li::marker{font-weight:800;color:var(--ink)}.about-app details{border-top:1px solid var(--line);padding:8px 0}.about-app summary{min-height:48px;cursor:pointer;display:list-item;align-content:center;font-weight:700}.about-app .primary{min-height:52px;white-space:normal;text-align:center;color:#242426;background:#ffc629}.app-share-copy{width:100%;min-height:180px;font:16px/1.6 system-ui;padding:12px;border:1px solid var(--line);border-radius:8px;resize:vertical}.about-app .hint{line-height:1.6}
.app-share-copy+p a{overflow-wrap:anywhere}
.home-heading{position:relative;padding-right:56px}.home-share{position:absolute;right:0;top:0;color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:12px;width:44px;height:44px;min-height:44px}.home-share svg{width:23px;height:23px}.responsibility-copy{font-size:15px;line-height:1.7;overflow-wrap:anywhere}.setup-form .responsibility-copy{font-size:17px;margin:20px 0 28px}.app-update-notice{position:fixed;z-index:10001;left:50%;bottom:calc(108px + env(safe-area-inset-bottom));transform:translateX(-50%);width:max-content;max-width:calc(100vw - 32px);padding:14px 18px;border-radius:12px;background:#fff6d5;color:#242426;border:1px solid #edc65d;box-shadow:0 4px 20px #24242615;font-size:14px;line-height:1.55;white-space:pre-line;pointer-events:none;animation:update-notice 6.5s ease both}@keyframes update-notice{0%{opacity:0}7%,85%{opacity:1}100%{opacity:0}}@media(prefers-reduced-motion:reduce){.app-update-notice{animation:none}}
/* Readable onboarding typography on iPhone and Android. */
@media(max-width:768px){
 .setup-mobile-first .setup-brand small{font-size:22px;font-weight:600}
 .setup-mobile-first .primary{font-size:22px;font-weight:700;line-height:1.2}
}
.responsibility-icon{display:flex;align-items:center;justify-content:center;width:44px;height:44px;margin-bottom:14px;border-radius:12px;background:#fff1bd;color:#242426}.responsibility-icon svg{width:27px;height:27px}
/* Keep the full garage name readable without widening the mobile header. */
.mobile-brand span{min-width:0;white-space:normal;line-height:1.25;font-size:16px}.setup-brand>div,.brand>span{min-width:0;overflow-wrap:normal}
.weekly-review .review-open>svg:first-child{width:32px;height:32px}
/* Onboarding header: text left, approved bus artwork right. */
.setup-mobile-first .setup-brand>div{flex:1}
.setup-mobile-first .setup-brand>img{order:2}
@media(max-width:768px){.setup-form .responsibility-copy{font-size:19px;line-height:1.6;font-weight:400}}
@media(max-width:768px){.setup-mobile-first .setup-brand>img{width:63px;height:63px;margin-right:8px}}

@media(max-width:768px){
 .setup-mobile-first .setup-brand{display:grid;grid-template-columns:minmax(0,1fr) 83px;column-gap:14px;row-gap:5px;align-items:center}
 .setup-mobile-first .setup-brand>div{display:contents}
 .setup-mobile-first .setup-brand .setup-name{grid-column:1/-1;grid-row:1}
 .setup-mobile-first .setup-brand small{grid-column:1;grid-row:2;margin-top:0}
 .setup-mobile-first .setup-brand>img{grid-column:2;grid-row:2;margin-right:0;justify-self:start}
}

/* Shared onboarding content alignment, including native fieldset legends. */
.setup-mobile-first .setup-form legend{padding:0}
.setup-mobile-first .setup-brand small{min-width:0}
/* The selected tab paints its own background, beneath its icon and label. */
@media(max-width:1023px){
 .bottom-nav{gap:3px}
 .bottom-nav button{padding:8px 3px;border-radius:14px;justify-content:center;color:#68686f;font-weight:600}
 .bottom-nav button.active{background:#ffc629;color:#242426;font-weight:800}
 .bottom-nav button>svg,.bottom-nav button>span{opacity:1;color:inherit}
 .bottom-nav .nav-add{color:#68686f;font-weight:600}
 .bottom-nav .nav-add svg{width:32px;height:32px;padding:0;margin-top:0;background:transparent;color:inherit;box-shadow:none}
 .bottom-nav .nav-add.active{color:#242426;font-weight:800}
}
@media(max-width:1023px){
 .topbar{display:grid;grid-template-columns:minmax(0,1fr) 44px;align-items:center;column-gap:10px}
 .topbar .mobile-brand{display:grid;grid-template-columns:34px minmax(0,1fr);align-items:center;column-gap:10px;width:100%}
 .topbar .mobile-brand span{font-size:17px;font-weight:800;line-height:1.25;text-align:center}
 .topbar .top-actions{align-self:center;justify-self:end}
}
/* Complete dark surfaces with readable text; brand actions retain gold/dark contrast. */
:root[data-theme=dark]{--bg:#1b1c20;--surface:#27282e;--ink:#f7f7fa;--muted:#c8c9d1;--line:#575963;--green:#ffd25a;--accent:#ffc629;--soft:#34353d;color-scheme:dark;background:var(--bg);color:var(--ink)}
:root[data-theme=dark] body{background:var(--bg);color:var(--ink)}
:root[data-theme=dark] :is(.topbar,.sidebar,.bottom-nav,.panel,.modal,.setup){background:var(--surface);color:var(--ink)}
:root[data-theme=dark] :is(input,select,textarea){background:#202127;color:var(--ink);border-color:#72747e}
:root[data-theme=dark] input::placeholder,:root[data-theme=dark] textarea::placeholder{color:#bfc1ca;opacity:1}
:root[data-theme=dark] :is(.weekly-review,.adp-review,.save-receipt,.app-update-notice,.undo-delete){background:#393326;color:#fff4d5;border-color:#9b803d;border-left-color:#ef6976}
:root[data-theme=dark] :is(.weekly-review>.icon-button,.adp-copy p,.save-receipt p){color:#fff4d5}
:root[data-theme=dark] .adp-copy>svg{color:#ff8993}
:root[data-theme=dark] .import-card{background:#34312a;border-color:#9b803d;color:var(--ink)}
:root[data-theme=dark] .import-card p{color:var(--muted)}
:root[data-theme=dark] .bottom-nav button:not(.active){color:#d1d2da}
:root[data-theme=dark] .bottom-nav button.active{color:#242426;background:#ffc629}
:root[data-theme=dark] .avatar{background:#484131;color:#ffe29a}
:root[data-theme=dark] :is(.primary,.hours-actions>.primary,.about-app .primary){background:#ffc629;color:#242426}
:root[data-theme=dark] .secondary{background:var(--surface);color:var(--ink);border-color:var(--line)}
:root[data-theme=dark] .danger{background:#752331;color:#fff;border-color:#ed7381}
:root[data-theme=dark] .danger-zone h2,:root[data-theme=dark] .error{color:#ffadb5}
:root[data-theme=dark] .calendar-day em{background:#a92230;color:#fff}
:root[data-theme=dark] .calendar-day.worked-day{background:#403823;color:#fff4d5}
:root[data-theme=dark] .calendar-day.muted{color:#bfc1ca;opacity:1}
:root[data-theme=dark] .day-picker input:checked+span{color:#242426;background:#ffc629}
:root[data-theme=dark] .home-payday{background:#a92230;color:#fff}
:root[data-theme=dark] .home-payday p{color:#fff}
.reset-warning{font-size:17px;line-height:1.6;border-left:4px solid #c3293b;padding-left:14px}
:root[data-theme=dark] #save-success{background:var(--surface);color:var(--ink);border:1px solid var(--line)}

/* Support stays within About and inherits both accessible themes. */
.support-section{border-bottom:1px solid var(--line);padding-bottom:24px;margin-bottom:24px}.support-section dl{margin:16px 0}.support-section dt{color:var(--muted);font-size:15px;margin-top:14px}.support-section dd{margin:4px 0 0;font-size:18px;font-weight:600}.support-modal h2{padding-right:36px}.support-modal label{display:block;font-size:19px;font-weight:600;margin:24px 0 12px}.support-modal textarea{display:block;box-sizing:border-box;width:100%;min-height:180px;resize:vertical;font:inherit;font-size:18px;line-height:1.5;padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink)}.support-modal .hint{font-size:15px;line-height:1.5}.support-modal .modal-actions button{font-size:18px;min-height:48px}.support-modal button:disabled{cursor:not-allowed;opacity:.55}[data-theme=dark] .support-modal textarea{background:#202127;border-color:#72747e;color:#f7f7fa}

.calendar-heading{margin-bottom:18px}.month-navigation{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:8px;max-width:540px}.month-navigation h1{margin:0;text-align:center;min-width:0}.month-title{font:800 23px/1.3 'Manrope',system-ui;color:var(--ink);padding:10px 4px;min-height:48px;width:100%}.month-title span{font-size:16px}.month-navigation .icon-button{width:44px;min-height:48px;color:var(--ink)}.calendar-hint{display:flex;align-items:center;justify-content:space-between;gap:12px}.calendar-hint p{color:var(--muted);font-size:14px}.calendar-hint .secondary{min-height:44px}#month-picker-form label{display:block;margin:20px 0;font-size:18px}#month-picker-form select,#month-picker-form input{display:block;width:100%;margin-top:8px;font-size:18px;min-height:48px}#month-picker-form .modal-actions button{font-size:18px;min-height:48px}@media(max-width:600px){.calendar-day{min-height:96px;gap:3px;padding:5px 2px}.calendar-day .split-mark{display:block;font-size:11px}.month-title{font-size:21px}}

.push-settings{margin-top:24px}.push-settings label{display:block;margin-top:18px}.push-settings input,.push-settings select{width:100%;min-height:48px}.push-settings button{min-height:48px;font-size:17px}.push-pending{padding:14px;border-left:4px solid #d92d38;background:var(--soft);color:var(--ink);font-size:15px;line-height:1.5}

/* Intrinsic sizing keeps long names, translated labels and native inputs in flow. */
fieldset,.settings-grid>*,.settings-stack>*,.form-two>*,.setup-form,.panel{min-width:0}
input,select,textarea{max-width:100%}
.panel :is(h2,h3,p,legend),.setup-name,.summary-name,.home-metric p{overflow-wrap:anywhere}
.form-total,.save-receipt dl>div,.summary-totals>div{flex-wrap:wrap}
@media(max-width:1023px){
 .topbar{height:auto}
 .bottom-nav button{padding-inline:0}
 .bottom-nav button>span{overflow-wrap:anywhere}
 .calendar-hint{flex-wrap:wrap}
 .calendar-hint p{flex:1;min-width:160px}
 .calendar-hint .secondary{flex-shrink:0}
 .settings-form button{max-width:100%;white-space:normal}
 .modal{margin:auto;max-width:calc(100% - max(10px,env(safe-area-inset-left)) - max(10px,env(safe-area-inset-right)))}
 .setup-mobile-first .setup-form{padding-bottom:calc(28px + env(safe-area-inset-bottom))}
}
@media(max-width:360px){
 .bottom-nav{grid-template-columns:minmax(0,.88fr) minmax(0,1.16fr) minmax(0,1.08fr) minmax(0,.96fr) minmax(0,.92fr)}
 .settings-form{padding:16px}
 .history-day{grid-template-columns:58px minmax(0,1fr);align-items:start}
 .history-day strong{grid-column:2;justify-self:start}
 .home-flow .panel-heading{padding:18px;gap:10px}
}

.route-field{min-width:0;margin-bottom:18px}.route-field input{margin-bottom:8px}.route-field small{font-weight:400}.route-suggestions{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 14px}.route-suggestions[hidden]{display:none}.route-suggestions button{min-width:52px;min-height:48px;max-width:100%;overflow-wrap:anywhere;white-space:normal;font-size:16px}.segment-route{display:block;overflow-wrap:anywhere;line-height:1.5;margin:0 0 4px;color:var(--ink);font-size:inherit;font-weight:700}@media print{.segment-route{color:#222}}

/* Shared report preview and Letter-sized print sheet. */
.hours-report{background:#fff!important;color:#252528!important;font:14px/1.5 system-ui,sans-serif;padding:24px;overflow-wrap:anywhere;text-align:left}
.hours-report p,.hours-report small,.hours-report dt,.hours-report dd,.hours-report h1,.hours-report h2,.hours-report h3,.hours-report strong,.hours-report td,.hours-report th{color:#252528!important}
.hours-report .report-brand{display:flex;align-items:center;gap:16px}.report-brand img{width:130px;height:130px;flex-shrink:0;object-fit:contain;border-radius:12px}.hours-report h1{font-size:26px;letter-spacing:-.5px;margin:0 0 4px}.report-brand p{margin:0;font-size:16px}.report-divider{height:0;border-top:4px solid #ffc629;border-bottom:2px solid #b32432;margin:18px 0}
.report-meta{margin:0 0 24px}.report-meta>div{display:grid;grid-template-columns:130px 1fr;gap:12px;padding:4px 0}.hours-report dt{font-weight:600}.hours-report dd{margin:0}.hours-report h2{font-size:17px;line-height:1.5;letter-spacing:0;margin:20px 0 8px}.hours-report h2 small{font-size:12px;font-weight:400}.hours-report table{border-collapse:collapse;width:100%;table-layout:fixed;margin:0}.hours-report th,.hours-report td{padding:10px 7px;border-bottom:1px solid #ccc;text-align:left;vertical-align:top;font-size:12px}.hours-report th{background:#fff8e3;border-top:2px solid #e4b529}.hours-report th:first-child{width:32%}.hours-report .segment-route{font-size:12px;margin:3px 0 0}.report-overnight{display:block;font-size:10px}.report-daily-total{display:flex;justify-content:space-between;margin:0;padding:9px 7px;border-bottom:1px solid #777}.report-totals>div,.report-period dl>div{display:flex;justify-content:space-between;gap:16px;padding:7px 0}.report-totals,.report-period{break-inside:avoid}.report-grand-total{border-top:2px solid #ffc629;font-weight:700}.hours-report .report-context-title{border-top:2px solid #b32432;padding-top:12px}.hours-report h3{font-size:14px;letter-spacing:0;line-height:1.5;margin:12px 0}.report-period dl{margin:0 0 18px}.report-footer{border-top:2px solid #b32432;margin-top:24px;padding-top:12px;font-size:11px;color:#444}.report-actions{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:20px}
@media(max-width:480px){.hours-report{padding:12px;font-size:13px}.hours-report .report-brand{gap:10px}.hours-report .report-brand img{width:96px;height:96px}.hours-report h1{font-size:21px}.report-brand p{font-size:14px}.report-meta>div{display:block}.hours-report td,.hours-report th{padding:8px 3px;font-size:11px}.hours-report .segment-route{font-size:11px}}
@media print{
 @page{size:Letter;margin:14mm}
 body{background:#fff!important;color:#252528!important}
 body>*:not(#print-report){display:none!important}
 #print-report.hours-report{display:block;padding:0;font:10pt/1.45 system-ui,sans-serif;color:#252528!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
 #print-report .report-brand img{width:1.35in;height:1.35in}#print-report h1{font-size:23pt}#print-report h2{font-size:13pt;break-after:avoid}#print-report h3{font-size:11pt}#print-report p{color:#252528}#print-report table{margin:0}#print-report th,#print-report td{font-size:9pt;padding:7px 6px}#print-report tr{break-inside:avoid}#print-report thead{display:table-header-group}#print-report .report-meta>div{display:grid}#print-report .report-daily-total{break-before:avoid}#print-report .report-brand,#print-report .report-meta,#print-report .report-footer{break-inside:avoid}#print-report .report-brand p{font-size:12pt}
}

/* Readability scale: phone values remain prominent instead of shrinking to fit. */
@media screen and (max-width:1023px){
 body{font-size:17px;line-height:1.55}
 main{padding-bottom:calc(148px + env(safe-area-inset-bottom))}
 .page-heading h1,.home-heading h1{font-size:30px;line-height:1.3}
 .panel h2,.home-flow h2,.range-header h2,.about-app h3{font-size:22px;line-height:1.4}
 label,.shift-fields legend,.history-controls form label{font-size:18px;line-height:1.5}
 input,select,textarea{font-size:20px;line-height:1.5}
 input[type=time],input[type=date],.route-field input{font-size:22px;min-height:54px}
 input::placeholder,textarea::placeholder{font-size:18px;opacity:1;color:var(--muted)}
 button.primary,button.secondary,button.danger,.split-button,.text-button,.export-buttons button.secondary,.push-settings button,.home-card-action button,.home-import .secondary,.home-recent .text-button{font-size:18px;line-height:1.4;white-space:normal}
 .hours-actions>.primary{font-size:22px}
 .segmented button,.day-picker span,.setup-mobile-first .day-picker span,.setup-mobile-first .setup-lang button{font-size:17px;line-height:1.45}
 .hint,.page-heading p,.range-header p,.home-range,.home-metric p,.home-empty-note,.overnight-note,.home-import p,.calendar-hint p,.legend span,.personal-notice,.responsibility-copy,.install-steps li,.support-modal .hint,.push-pending,.route-field small,.support-section dt,.review-open small,.app-update-notice{font-size:17px;line-height:1.6}
 .setup-mobile-first .setup-privacy{font-size:17px!important}
 .eyebrow,.home-heading .eyebrow,.setup-mobile-first .eyebrow{font-size:16px;line-height:1.5}
 .clock-details dt,.period-breakdown dt,.home-total{font-size:18px}
 .clock-details dd,.period-breakdown dd,.shift-row strong,.shift-row>b,.shift-field-footer span,.record-row>b,.history-day strong,.save-receipt dd{font-size:22px;line-height:1.45}
 .home-total strong,.home-period .home-total strong,.form-total strong,.period-total strong{font-size:28px;line-height:1.35}
 .clock-details>div,.period-breakdown>div{flex-wrap:wrap;gap:6px 14px}
 .home-shift-title,.row-info strong{font-size:18px;line-height:1.5}
 .segment-route,.route-suggestions button{font-size:22px;line-height:1.4}
 .shift-field-footer button{font-size:18px}
 .history-day{grid-template-columns:62px minmax(0,1fr);align-items:start;gap:10px}
 .history-day strong{grid-column:2;justify-self:start}
 .history-day span:nth-child(2),.row-info small{font-size:20px;line-height:1.5}
 .history-day small,.date-tile small{font-size:16px;line-height:1.4}
 .date-tile{min-width:58px;min-height:64px}.date-tile b{font-size:24px}
 .home-payday p{font-size:26px}.home-payday>span{font-size:16px;letter-spacing:.5px}
 .review-open strong,.adp-copy strong,.adp-copy p{font-size:18px;line-height:1.55}
 .calendar-day{height:auto;min-height:112px;padding:8px 2px;gap:6px}
 .calendar-day b{font-size:22px;width:34px;height:34px}
 .calendar-day span{font-size:20px;line-height:1.3;overflow-wrap:anywhere}
 .calendar-day small,.calendar-day em,.calendar-day .split-mark,.weekdays div{font-size:16px;line-height:1.3;overflow-wrap:anywhere}
 .bottom-nav button{font-size:16px;line-height:1.3;padding:8px 2px;min-height:88px}
 .bottom-nav button>span{min-height:42px}
 #toast,.app-update-notice{font-size:17px;bottom:calc(132px + env(safe-area-inset-bottom))}
 .summary-workspace .summary-tools+.hint,.summary-workspace .screenshot-summary header p,.summary-workspace .summary-footnote,.summary-footnote{font-size:17px;line-height:1.55}
 .summary-workspace .screenshot-summary h2{font-size:26px}
 .screenshot-summary header>span{font-size:18px}
 .summary-workspace .summary-days>div,.summary-workspace .summary-totals>div{font-size:18px;padding:12px 0;flex-wrap:wrap}
 .summary-days strong,.summary-totals dd{font-size:24px;line-height:1.4}
 .summary-workspace .summary-payday{font-size:22px;line-height:1.5;padding:16px}
 .hours-report{font-size:17px;line-height:1.6}
 .hours-report h1{font-size:26px}.hours-report h2{font-size:22px}.hours-report h3{font-size:20px}
 .hours-report h2 small,.report-brand p,.report-footer,.report-overnight{font-size:17px}
 .report-daily-total,.report-totals>div,.report-period dl>div{flex-wrap:wrap}
 .report-daily-total strong,.report-totals dd,.report-period dd{font-size:24px}
 .hours-report table,.hours-report tbody{display:block}
 .hours-report thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .hours-report tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border-top:2px solid #e4b529;padding:12px 0}
 .hours-report td{display:block;font-size:20px;padding:8px 4px;min-width:0}
 .hours-report td:first-child,.hours-report td:last-child{grid-column:1/-1}
 .hours-report td::before{content:attr(data-label);display:block;font-size:17px;font-weight:600}
 .hours-report .segment-route{font-size:22px}
}
@media screen and (max-width:1023px){
 .bottom-nav{grid-template-columns:minmax(0,.8fr) minmax(0,1.45fr) minmax(0,1.1fr) minmax(0,1.2fr) minmax(0,1.05fr);gap:2px}
 .bottom-nav button{letter-spacing:-.4px;padding-inline:0}
 .bottom-nav button>span{overflow-wrap:normal;word-break:normal}
 .settings-form legend,.settings-form .check-label{font-size:18px;line-height:1.5}
 .report-grand-total strong{font-size:26px}
}
@media screen and (max-width:1023px){
 .modal .eyebrow,.page-heading .eyebrow,.pill,.shift-number,.shift-row small,.history-day>span:first-child{font-size:16px;line-height:1.5}
 .modal-actions .primary,.modal-actions .secondary,.modal-actions .danger{font-size:20px}
 .today-total,.today-total span,.form-total span,.period-total span{font-size:18px}
 .today-total strong,.form-total strong{font-size:28px}
 .week-columns .panel-heading>span,.home-shift-title>span{font-size:22px}
 .calendar-day{padding-inline:0}.calendar-day span{letter-spacing:-.6px}
 .report-totals strong{font-size:24px}
 .hours-report td{overflow-wrap:normal}
}
@media screen and (max-width:1023px){
 .settings-form p,.settings-form .hint,.settings-form .push-pending,#push-status strong{font-size:17px;line-height:1.6}
 .about-app summary{font-size:18px;line-height:1.5}
 .history-day b{font-size:17px}
 .empty-history strong,.empty-history p{font-size:17px}
}
@media screen and (max-width:1023px){
 .history-day>span:first-child>b{font-size:17px}
 .calendar-day em{padding:3px 0;letter-spacing:-.5px;width:100%;font-size:16px}
 .calendar-day .split-mark{hyphens:auto;overflow-wrap:break-word}
}
/* Final phone reading scale; dense calendar/navigation labels retain 16px. */
@media screen and (max-width:1023px){
 label,.settings-form legend,.settings-form .check-label,.shift-fields legend,.history-controls form label,.clock-details dt,.period-breakdown dt,.home-total{font-size:20px}
 input,select,textarea{font-size:21px}
 input[type=time],input[type=date],.route-field input,.clock-details dd,.period-breakdown dd,.shift-row strong,.shift-row>b,.shift-field-footer span,.record-row>b,.history-day strong,.save-receipt dd,.segment-route,.route-suggestions button,.home-shift-title>span{font-size:23px}
 button.primary,button.secondary,button.danger,.split-button,.text-button,.export-buttons button.secondary,.push-settings button,.home-card-action button,.home-import .secondary,.home-recent .text-button,.shift-field-footer button{font-size:20px}
 .modal-actions .primary,.modal-actions .secondary,.modal-actions .danger,.hours-actions>.primary{font-size:22px}
 .hint,.settings-form p,.settings-form .hint,.settings-form .push-pending,#push-status strong,.page-heading p,.range-header p,.home-range,.home-metric p,.home-empty-note,.overnight-note,.home-import p,.calendar-hint p,.personal-notice,.responsibility-copy,.install-steps li,.support-modal .hint,.push-pending,.route-field small,.support-section dt,.review-open small{font-size:18px;line-height:1.6}
 .review-open strong,.adp-copy strong,.adp-copy p{font-size:20px}
 .summary-workspace .summary-tools+.hint,.summary-workspace .screenshot-summary header p,.summary-workspace .summary-footnote{font-size:18px}
 .form-total span,.today-total span,.period-total span{font-size:20px}
 .range-header p{font-size:22px}
 .setup-mobile-first .primary{font-size:22px}
}
@media screen and (max-width:1023px){
 .shift-row{display:grid;grid-template-columns:24px minmax(0,1fr);gap:8px;align-items:start}
 .shift-row>b{grid-column:2;justify-self:start;margin-left:0}
 .shift-time{white-space:nowrap}
}
.entry-notes{margin:16px 0 22px}.entry-notes summary{cursor:pointer;min-height:44px;align-content:center;font-size:18px;color:var(--muted)}.entry-notes input{margin-top:8px}.saved-day-summary{scroll-margin-top:16px}.saved-day-summary .shift-list{padding:0}.saved-day-summary .home-total{padding:18px 0 0}.saved-day-summary .shift-row:last-child{border-bottom:0}.saved-day-summary:focus{outline:none}
/* Shared, non-native time entry on phones and desktop. */
.time-control{min-width:0}.time-label{display:block;font-size:20px;font-weight:600;margin-bottom:8px}.time-parts{display:flex;gap:8px;align-items:start}.time-part{flex:1;min-width:0;position:relative}.time-part summary{list-style:none;display:flex;justify-content:space-between;gap:4px;align-items:center;min-height:52px;padding:8px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);font-size:22px;font-weight:600;cursor:pointer}.time-part summary::-webkit-details-marker{display:none}.time-options{position:absolute;top:100%;left:0;z-index:10;min-width:100%;max-height:230px;overflow-y:auto;border:1px solid var(--line);border-radius:10px;background:var(--surface);box-shadow:0 4px 14px #0002;padding:4px}.time-options button{display:block;width:100%;min-height:48px;padding:8px;font-size:22px;color:var(--ink);background:var(--surface);border:0;border-radius:6px}.time-options button[aria-pressed=true]{background:#ffd43b;color:#17181d}.time-part summary:focus-visible,.time-options button:focus-visible{outline:3px solid #db8b00;outline-offset:2px}#hours-form .form-two{grid-template-columns:1fr;gap:18px}

.route-pair{display:inline-flex;gap:6px;flex-wrap:wrap;max-width:100%}

.draft-notice{border:1px solid var(--line);border-left:4px solid #ffc629;border-radius:12px;padding:14px 16px;margin:0 0 20px;background:var(--surface);color:var(--ink)}.draft-notice p{margin:0 0 10px;font-size:18px;line-height:1.5}.draft-notice>div{display:flex;flex-wrap:wrap;gap:8px}.draft-notice button{min-height:48px;font-size:18px}

.recent-saved-entry{scroll-margin-top:16px}.recent-saved-entry:focus{outline:none}.home-recent .saved-day-summary{margin:0 16px 16px}.recent-saved-entry>.record-row{background:#fff6d5;color:#242426;width:100%}:root[data-theme=dark] .recent-saved-entry>.record-row{background:#393326;color:#fff4d5}@media(min-width:1024px){.home-payday,.home-import{grid-column:1/-1}}
.recent-accumulated{margin:0;padding:22px 18px;text-align:center;background:#ffdc67;color:#202126;border-top:1px solid #d6ab32;border-radius:0 0 16px 16px}.recent-accumulated h3{font-size:18px;line-height:1.4;font-weight:800;margin:0 0 8px;letter-spacing:.04em}.recent-accumulated strong{display:block;font-size:34px;line-height:1.25;font-weight:850;font-variant-numeric:tabular-nums}.recent-accumulated p{font-size:17px;line-height:1.5;margin:8px 0 0;color:inherit}:root[data-theme=dark] .recent-accumulated{background:#ffdc67;color:#202126;border-color:#d6ab32}
/* Home installation help stays in document flow; no floating controls. */
.home-share svg{width:28px;height:28px}
.home-install-help{display:flex;align-items:center;gap:10px;margin-top:18px;padding:12px 16px;min-height:48px;border:1px solid #e5ad10;border-radius:12px;background:#ffc629;color:#252528;font-size:18px;font-weight:700;line-height:1.4;text-align:left;max-width:100%;white-space:normal}
.home-install-help svg{width:25px;height:25px;flex-shrink:0}
.install-help-modal{width:min(560px,calc(100vw - 24px));max-width:calc(100vw - 24px);padding:24px;overflow:auto;overscroll-behavior:contain;box-sizing:border-box}
.install-help-modal h2{padding-right:40px;font-size:26px;line-height:1.25;overflow-wrap:anywhere}
.install-help-modal .modal-close{font-size:32px;line-height:1;width:44px;height:44px;min-height:44px}
.install-art{display:flex;align-items:center;justify-content:center;gap:24px;margin:20px 0}
.install-approved-icon{width:112px;height:112px;object-fit:contain;border-radius:24px;flex-shrink:0}
.install-help-modal details{border-top:1px solid var(--line);padding:10px 0}
.install-help-modal summary{cursor:pointer;font-size:20px;font-weight:700;min-height:48px;align-content:center}
.install-help-modal h3{font-size:21px;line-height:1.4;margin:6px 0 12px}
.install-help-modal ol{padding-left:24px;margin:0 0 16px}
.install-help-modal li{font-size:18px;line-height:1.55;padding:0 0 12px 4px;overflow-wrap:anywhere}
.install-help-modal [data-install-close].full{font-size:20px;min-height:50px;margin-top:14px}
@media(max-width:360px){.install-help-modal{padding:20px}.install-art{gap:14px}.install-approved-icon{width:88px;height:88px}}

.install-device-example{margin:8px 0 22px;text-align:center}
.install-device-example figcaption{font-size:16px;line-height:1.4;margin:10px 0;color:var(--muted)}
.mock-phone{width:min(100%,248px);margin:auto;border:6px solid #27292d;border-radius:32px;padding:10px 12px 6px;background:radial-gradient(ellipse at 5% 5%,#e9b5a4,transparent 60%),linear-gradient(145deg,#7063a0,#294665 65%,#b8774c);color:white;box-shadow:0 4px 12px #0002}
.mock-status{display:flex;justify-content:space-between;align-items:center;font-size:10px;line-height:18px;margin:0 2px 14px;position:relative}
.mock-camera{position:absolute;left:50%;transform:translateX(-50%);width:62px;height:17px;border-radius:14px;background:#17191b}
.mock-app-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 10px}
.mock-app{min-width:0;display:flex;flex-direction:column;align-items:center;gap:5px;font:10px/1.2 system-ui;color:#fff;text-shadow:0 1px 2px #0008}
.mock-tile,.mock-hg img{width:48px;height:48px;max-width:100%;aspect-ratio:1;border-radius:12px;display:flex;align-items:center;justify-content:center;box-sizing:border-box}
.mock-tile svg{width:28px;height:28px}.tile-0{background:#f7f2e9;color:#cf3c45}.tile-1{background:#27292f}.tile-2{background:#dde1e7;color:#373d45}.tile-3{background:#39a96b}.tile-4{background:#3b88cf}.tile-5{background:#288f68}
.mock-hg img{outline:2px solid #ffdf76;outline-offset:2px}.mock-hg>span{font-weight:700}
.mock-dots{font-size:9px;letter-spacing:3px;margin:14px 0 10px}
.mock-dock{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding:10px 8px;background:#ffffff30;border:1px solid #ffffff22;border-radius:20px}.mock-dock .mock-app>span:last-child{display:none}
.mock-home-indicator{height:3px;width:72px;background:#fff;border-radius:3px;margin:10px auto 0}
.mock-android{border-radius:25px;background:radial-gradient(circle at 90% 20%,#9fcfbb,transparent 55%),linear-gradient(145deg,#304b65,#476b5d)}
.mock-android .mock-camera{width:8px;height:8px}.mock-android .mock-tile,.mock-android .mock-hg img{border-radius:50%}.mock-android .mock-date{font:28px/1.2 system-ui;margin:2px 0 15px;text-align:left}.mock-android .mock-dock{background:transparent;border-color:transparent;padding-bottom:0}

/* Reference-inspired iPhone dock; the HG icon remains in the main grid. */
.mock-ios{width:min(100%,224px);aspect-ratio:9/17;padding:9px 10px 6px;border:5px solid #25272b;border-radius:32px;background:radial-gradient(ellipse at 20% 25%,#eaf5ff 0%,transparent 65%),radial-gradient(ellipse at 70% 10%,#fce7d4,transparent 60%),linear-gradient(145deg,#88bfdc,#ffd4b5 55%,#ff496e);box-shadow:0 0 0 2px #92959b,0 4px 12px #0002}
.mock-ios>div{height:100%;display:flex;flex-direction:column}
.mock-ios .mock-status{color:#252528;margin-bottom:20px}
.mock-ios .mock-app-grid{flex:1;align-content:start;gap:14px 9px}
.mock-ios .mock-app-grid .mock-app{color:#252528;text-shadow:none}
.mock-ios .mock-dock{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:10px 8px;background:#ffffff70;border:1px solid #ffffff50;border-radius:20px}
.mock-ios .mock-dock .mock-app>.mock-tile{display:flex;width:100%;height:auto;aspect-ratio:1;border-radius:10px}
.mock-ios .mock-dock svg{width:82%;height:82%}
.mock-ios .mock-dock .ios-dock-phone,.mock-ios .mock-dock .ios-dock-messages{background:#19d957;color:white}
.mock-ios .mock-dock .ios-dock-safari{background:#fff;color:#1db5f2}
.mock-ios .mock-dock .ios-dock-music{background:#fff;color:#ec447b}
.mock-ios .mock-dots{color:#fff;margin:10px 0}
.mock-ios .mock-home-indicator{background:#242426;margin-top:8px}
.mock-ios .mock-app-grid .tile-1,.mock-ios .mock-app-grid .tile-3,.mock-ios .mock-app-grid .tile-4{color:#fff}
