/* Shift Pocket V1.8 — 2026-10-25. One phone layout at every viewport width. */
:root{--phone-width:480px}
html{scroll-padding-bottom:155px}
body{min-height:100dvh;overscroll-behavior-y:contain}
.shell{width:100%;max-width:var(--phone-width);padding:0 14px;margin:0 auto}
.topbar{height:53px}
.brand{gap:8px;font-size:21px}
.brand-icon{width:29px;height:32px;border-radius:9px}
.brand-icon svg{width:21px;height:21px}
.brand small{display:none}
.header-right{gap:6px}
.connection{font-size:10px}
.icon-button{min-width:44px;min-height:44px;width:44px;height:44px}
.main-nav{display:flex;align-items:center;gap:5px;padding:5px 0 8px;min-height:53px}
.main-nav .nav-button{min-height:44px;font-size:12px;padding:8px 12px;border-radius:10px}
.main-nav .guide-help{margin-left:auto;min-height:44px;padding:8px 3px;font-size:12px}
.usage-notice{display:flex;align-items:center;gap:8px;width:100%;flex-basis:100%;margin:4px 0 0;padding:0;border:0;border-radius:0;background:transparent;line-height:1.45}
.usage-notice p{margin:0;font-size:12px;line-height:1.45;color:#3d5145;flex:1}
.usage-notice .text-button{font-size:12px;min-height:44px;padding:6px 1px;flex-shrink:0}
.shift-workspace{width:100%;max-width:none}
.identity-line{margin:0 0 6px;font-size:14px}
.identity-line .icon-button{width:44px;height:44px}
.identity-line strong{overflow-wrap:anywhere}
.shift-workspace .current-card{padding:12px 14px;border-radius:15px;margin-bottom:12px;min-height:0;animation:none}
.shift-workspace .status-line{margin-bottom:8px;gap:8px}
.live-tag{font-size:10px;letter-spacing:.8px}
.worker-name{font-size:12px;max-width:55%}
.live-main{display:flex;gap:8px;align-items:center;justify-content:space-between}
.current-task{display:flex;gap:8px;min-width:0}
.current-task h1{font-size:20px;line-height:1.2;letter-spacing:-.4px;margin:0;overflow-wrap:anywhere}
.task-symbol{width:27px;height:27px;flex-shrink:0}
.task-symbol svg{width:20px;height:20px}
.shift-workspace .timer{font-size:27px;letter-spacing:-.6px;line-height:1.25;margin:0;white-space:nowrap;flex-shrink:0;font-variant-numeric:tabular-nums}
.shift-workspace .timer-caption,.is-tracking .current-card .timer-caption{margin:7px 0 0;font-size:11px;line-height:1.4}
.task-section-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:46px;margin:0 0 6px}
.task-section-heading h2{font-size:19px;letter-spacing:-.5px;margin:0}
.task-navigation{display:flex;align-items:center;gap:9px;flex-shrink:0}
.task-navigation .text-button{min-height:44px;font-size:13px;padding:8px 3px}
.secondary.all-tasks-button{min-height:44px;font-size:12px;padding:9px 12px;border-radius:11px}
.task-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.task-card,.idle .task-card{min-height:70px;padding:11px;border-radius:13px;flex-direction:row;gap:9px;align-items:center;text-align:left;transform:none}
.task-card.is-active{padding:10px}
.task-card .card-icon{width:31px;height:31px;border-radius:9px;flex-shrink:0}
.task-card .card-icon svg{width:20px;height:20px}
.task-card strong{font-size:14px;line-height:1.3;overflow-wrap:anywhere}
.task-card:active,.run-number:active,.dock-shortcuts button:active,.current-actions button:active{filter:brightness(.95)}
.start-hint{font-size:12px;color:var(--muted);text-align:center;margin:14px 0 0}
.forgot-switch{min-height:44px;padding:8px 2px;margin:4px 0;font-size:12px}
.previous-entry{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:58px;border:1px solid #dfe5d9;background:#f0f3e9;padding:10px 12px;border-radius:11px;text-align:left;margin:0 0 8px}
.previous-entry>span:first-child{min-width:0;flex:1}
.previous-entry small{display:block;color:var(--muted);font-size:9px;letter-spacing:.5px;margin-bottom:3px}
.previous-entry strong{display:block;font-size:12px;line-height:1.3;overflow-wrap:anywhere}
.previous-entry-action{font-size:11px;color:var(--green);display:flex;align-items:center;gap:5px;text-align:right;max-width:48%}
.previous-entry-action svg{width:14px;height:14px}
.shift-totals,.timeline-wrap{margin:8px 0 0;border-top:1px solid var(--line)}
.shift-totals>summary,.timeline-wrap>summary{min-height:48px;display:flex;align-items:center;justify-content:space-between;gap:8px;cursor:pointer;font-size:13px;padding:10px 2px;list-style:none}
.shift-totals>summary span,.timeline-wrap>summary span{font-size:11px;color:var(--muted)}
.shift-totals>summary:after,.timeline-wrap>summary:after{content:'+';font-size:18px;color:var(--green)}
.shift-totals[open]>summary:after,.timeline-wrap[open]>summary:after{content:'−'}
.shift-workspace .summary-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:0;padding:10px 2px 16px}
.shift-workspace .summary-strip span{font-size:9px}
.shift-workspace .summary-strip strong{font-size:18px}
.shift-workspace .summary-strip div+div{padding-left:12px}
.timeline-entry{min-height:70px}
.timeline-content{min-width:0}
.timeline-content strong,.timeline-content small{overflow-wrap:anywhere}
body.is-tracking{padding-bottom:calc(143px + env(safe-area-inset-bottom))}
.action-dock,.is-tracking .action-dock{position:fixed;bottom:0;left:50%;right:auto;transform:translateX(-50%);width:100%;max-width:var(--phone-width);margin:0;border:1px solid #d7dfd0;border-bottom:0;border-radius:18px 18px 0 0;z-index:5;padding:9px 14px calc(10px + env(safe-area-inset-bottom));background:var(--white);box-shadow:0 -4px 18px #172b280d}
.dock-shortcuts{display:grid;grid-template-columns:1fr 1.6fr;gap:7px;margin-bottom:7px}
.dock-shortcuts button{display:flex;align-items:center;justify-content:center;gap:6px;min-width:0;min-height:44px;padding:7px 10px;border:1px solid #d7e1d0;border-radius:10px;background:#f0f4ea;font-size:12px;font-weight:600}
.dock-shortcuts svg{width:17px;height:17px}
.dock-shortcuts .return-shortcut{background:transparent}
.return-shortcut span{overflow-wrap:anywhere;line-height:1.25}
.dock-shortcuts .is-active{background:#dcebd5;border-color:#668862}
.dock-shortcuts button:disabled{opacity:.45;cursor:default}
.action-dock .current-actions{display:grid;grid-template-columns:1.15fr 1fr .95fr;gap:7px;margin:0}
.action-dock .current-actions button{display:flex;min-width:0;min-height:48px;align-items:center;justify-content:center;font-size:12px;padding:8px 6px;gap:5px;border-radius:10px}
.current-actions button svg{width:17px;height:17px}
.action-dock.needs-review .current-actions{grid-template-columns:1fr 1fr}
.is-tracking .toast{bottom:calc(140px + env(safe-area-inset-bottom))}
.is-tracking .global-error{bottom:calc(197px + env(safe-area-inset-bottom))}
.toast{max-width:calc(min(100vw,480px) - 28px);font-size:12px;min-width:0;width:max-content}
.global-error{max-width:452px}
.run-context{margin:0 0 8px;min-height:44px}
.run-context strong{font-size:12px}
.run-context small{font-size:11px;margin-top:3px}
.run-context .text-button{min-height:44px;font-size:12px}
.run-group h3{font-size:12px;letter-spacing:.15px;margin:8px 0}
.run-picker section+section{margin-top:14px}
.run-pair .run-number{min-height:88px;padding:13px 26px 12px 13px;border-radius:13px}
.run-number.is-active{padding:12px 25px 11px 12px}
.run-pair strong{font-size:18px}
.run-state{font-size:11px;margin-top:5px}
.run-pair .run-number small{font-size:12px}
.more-runs-link{min-height:44px;font-size:12px}
.other-runs{margin-top:16px}
.other-runs summary{min-height:48px;font-size:13px}
.run-number-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.run-number-grid .run-number{min-height:50px;font-size:13px}
dialog:not(.quick-guide){position:fixed;inset:auto 0 0;margin:0 auto;width:100%;max-width:var(--phone-width);max-height:calc(100dvh - 24px);padding:16px 16px calc(20px + env(safe-area-inset-bottom));border-radius:22px 22px 0 0;border-bottom:0;overflow-y:auto;overscroll-behavior:contain}
.sheet-head{position:sticky;top:-16px;background:var(--bg);z-index:1;min-height:48px;padding:8px 0;margin:-8px 0 12px}
.sheet-head h2{font-size:21px;letter-spacing:-.5px}
.sheet-head .icon-button{height:44px;min-width:44px}
.all-task-list section+section{margin-top:20px}
.all-task-list h3{font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.7px;margin:0 0 8px}
.all-task-list .task-card{min-height:64px}
.all-task-list .full-width{width:100%;justify-content:center;margin-top:20px}
.correction-tasks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:-8px}
.correction-tasks button{min-height:44px;border:1px solid #cad8c3;background:#edf3e6;border-radius:9px;font-size:12px;text-align:left;padding:8px 10px}
.correction-tasks button[aria-pressed=true]{border-color:var(--green);background:#dcead2}
input,select,textarea{font-size:16px}
.form-row{grid-template-columns:1fr}
.form-actions{flex-wrap:wrap}
.form-hint{font-size:12px}
.history-grid{display:grid;grid-template-columns:1fr;gap:12px}
.history-intro{margin-bottom:18px}
.history-intro .eyebrow{display:none}
.history-intro h1{font-size:29px;margin:8px 0}
.history-card{min-height:0;padding:18px;gap:10px}
.history-card strong{font-size:25px}
.simple-report{padding:18px 10px;border-radius:15px;max-width:100%}
.report-person h1{font-size:25px}
.report-table .clock-column{width:45px}
.report-table .duration-column{width:56px}
.report-task-name{font-size:12px}
.report-task-group td,.report-table .report-duration{font-size:11px}
.report-table thead th{font-size:10px}
.report-actions{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.report-actions .secondary,.report-actions .text-button{min-height:44px;font-size:12px;flex:initial}
.footer{padding:13px 0 20px;margin-top:17px;font-size:10px;line-height:1.4;gap:4px}
.footer .text-button{font-size:11px;min-height:44px}
.version{display:block;font-size:10px;margin-left:auto;flex-basis:auto}
.onboarding{max-width:none;margin:4px 0 0;padding:22px}
.onboarding h1{font-size:29px}
@media(max-width:350px){
 .shell{padding:0 10px}
 .brand{font-size:19px}
 .connection{display:none}
 .main-nav .nav-button{padding:8px 10px}
 .main-nav .guide-help{font-size:11px}
 .usage-notice{gap:6px;padding:0}
 .usage-notice p{font-size:12px}
 .current-task h1{font-size:18px}
 .shift-workspace .timer{font-size:23px}
 .task-symbol{display:none}
 .task-card,.idle .task-card{padding:9px;gap:7px;min-height:72px}
 .task-card.is-active{padding:8px}
 .task-card .card-icon{width:26px;height:26px}
 .task-card strong{font-size:13px}
 .task-navigation{gap:6px}
 .secondary.all-tasks-button{padding:8px 10px}
 .is-tracking .action-dock{padding-left:10px;padding-right:10px}
 .action-dock .current-actions button,.dock-shortcuts button{font-size:11px}
 .report-table .clock-column{width:40px}
 .report-table .duration-column{width:49px}
 .report-task-name{font-size:11px}
 .report-table td{padding-left:2px;padding-right:2px}
}
@media(max-height:500px){
 body.is-tracking{padding-bottom:0}
 .action-dock,.is-tracking .action-dock{position:static;transform:none;margin-top:12px;border-radius:14px;border:1px solid var(--line);padding:10px}
 .is-tracking .toast{bottom:12px}
}


.signup-sharing{font-size:12px;line-height:1.5;color:#3d5145;margin:12px 0 0}
