/* Phone palette is scoped here; desktop, TV and print retain their own tokens. */
*{box-sizing:border-box}
body{--primary:#1d3557;--primary-hover:#2b4a74;--primary-soft:#eaeef4;--accent:#e2601c;--danger:#d23c3c;--page:#f4f5f7;--surface:#ffffff;--line:#e5e7eb;--text:#1c2333;--secondary:#6b7280;--radius-control:14px;--radius-mobile:16px;margin:0;background:#f4f5f7;background:var(--page);color:#1c2333;color:var(--text);font:17px/1.5 "DIN Alternate",-apple-system,"PingFang SC","Helvetica Neue",Roboto,sans-serif;font-variant-numeric:tabular-nums;overflow-wrap:break-word}
main{max-width:680px;margin:0 auto;padding:20px 18px 40px}h1{font-size:26px;line-height:1.3;margin:16px 0}h2{font-size:21px}h3{font-size:19px}p{margin:14px 0}small{font-size:15px}a{color:#1d3557;text-decoration:none}button,.button{display:inline-block;min-height:56px;min-width:56px;padding:14px 18px;border:1px solid #e5e7eb;border-radius:14px;background:#ffffff;color:#1d3557;font:inherit;font-size:18px;cursor:pointer;text-align:center;text-decoration:none;margin:6px 0;vertical-align:middle}button:disabled{opacity:.5;cursor:default}button:active,.button:active{transform:translateY(4px)}button:focus,a:focus{outline:3px solid #1d3557;outline-offset:2px}.primary{width:100%;min-height:64px;background:#1d3557;color:#fff;font-size:26px;font-weight:800;border:0;border-radius:16px;box-shadow:0 3px 0 #12233a;margin-bottom:16px}.primary:active{box-shadow:0 1px 0 #12233a}.selected{border-color:#1d3557;background:#eaeef4;color:#1d3557;box-shadow:inset 0 0 0 1px #1d3557}
.card,.home-list{background:#ffffff;border:1px solid #e5e7eb;border-radius:16px;padding:18px;margin:16px 0}.home-list{padding:0;overflow:hidden}.big{font-size:38px;font-weight:800;color:#1d3557}.error,.negative{color:#d23c3c}.negative{font-weight:700}.muted,.section-title{color:#6b7280}.section-title{font-size:17px;margin:22px 4px 10px}.me{font-size:18px}.me,.proxy,.notice,.warning{background:#eaeef4;padding:16px;border-radius:22px;margin:14px 0}.proxy{background:#fbe9dc;border:3px solid #e2601c;font-weight:700}.proxy button{display:block;width:100%}.notice,.warning{background:#f1f3f6;border:1px solid #e5e7eb}#notice{white-space:pre-wrap}.failure-mark{font-size:69px;width:128px;height:128px;line-height:128px;background:#fbe1e1;color:#d23c3c;text-align:center;border-radius:50%;margin:24px auto}.inline{width:auto}
input,select,textarea{font:inherit;font-size:17px;padding:16px;width:100%;min-height:64px;margin:8px 0 16px;border:1px solid #e5e7eb;border-radius:18px;background:#ffffff;color:#1c2333}input:focus,select:focus,textarea:focus{outline:3px solid #eaeef4;border-color:#1d3557}label{display:block}textarea{height:176px}pre{font-size:15px;white-space:pre-wrap;overflow-wrap:break-word}nav{display:flex;flex-wrap:wrap}nav a{display:inline-block;min-height:56px;padding:14px;margin-right:8px}main>a{display:inline-block;min-height:56px;padding:14px}.text-link{display:block;min-height:56px;padding:14px 0;margin:8px 0;color:#1d3557;text-align:center;background:transparent;border:0;font-size:16px}.small-link{display:block;min-height:56px;line-height:1.6;font-size:16px;padding:16px 0}.scroll{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:15px}th,td{padding:16px;text-align:left;border-bottom:1px solid #e5e7eb;white-space:nowrap}.numeric{text-align:right}.qr{display:block;width:100%;max-width:340px;margin:16px auto}details{margin:16px 0}summary{min-height:56px;cursor:pointer}.wage-day p{border-top:1px solid #e5e7eb;padding-top:16px}.wage-months a{background:#ffffff;border:1px solid #e5e7eb;border-radius:18px;margin-bottom:8px}.mobile-report .pending-joins{padding:0}.mobile-report .pending-joins h2{display:none}.mobile-report .form-actions button{margin-right:12px}.mobile-report .result{white-space:pre-wrap}.mobile-report nav a[aria-current=page]{border-color:#1d3557;font-weight:700}.agree{display:flex;flex-wrap:wrap;align-items:center;font-size:17px;line-height:1.6;margin:8px 0 16px}.agree>*{margin-right:8px}.agree input{width:32px;height:32px;min-height:32px;flex:none;padding:0;margin:12px}.agree a{display:inline-block;min-height:56px;padding:12px 0}.legal{max-width:760px;font-size:16px;line-height:1.8}.legal h1{font-size:24px}.legal h2{font-size:20px;margin:28px 0 8px}.legal-meta{color:#6b7280;font-size:15px}
/* Home: one continuous navy block meets the native mini-program bar. */
.home-page{padding:0 0 32px}.hero{background:#1d3557;color:#fff;padding:22px;border-radius:0 0 28px 28px;margin:0 -18px 22px}.home-page .hero{margin:0 0 22px}.hello{font-size:15px;color:#d2dae5}.home-heading h1{display:flex;flex-wrap:wrap;align-items:center;margin:4px 0 18px;font-size:24px}.role-chip{display:inline-block;font-size:15px;font-weight:600;color:#ffffff;background:rgba(255,255,255,.14);border-radius:22px;padding:4px 10px;margin:6px 0 0 10px}.stats{display:flex;margin:0 -5px}.stat{flex:1;min-width:0;background:#2b4a74;border-radius:18px;padding:14px 12px;margin:0 5px}.stat-label{font-size:15px;color:#d2dae5}.stat-number{display:block;font-size:34px;line-height:1.2;font-weight:800;margin-top:6px;overflow-wrap:break-word;overflow-wrap:anywhere}.stat-number small{font-size:15px;margin-left:4px}.stat.hot .stat-number{color:#ffffff}.home-body{padding:0 18px}.scan-main,.scan-circle{display:flex;align-items:center;justify-content:center;width:100%;min-height:92px;margin:6px 0 20px;border:0;border-radius:20px;background:#e2601c;background:linear-gradient(180deg,#ef7a2b,#e2601c);color:#fff;font-size:29px;font-weight:800;box-shadow:0 4px 0 #b9480f,0 10px 20px rgba(226,96,28,.16)}.scan-main:active,.scan-circle:active{box-shadow:0 1px 0 #b9480f}.scan-main .icon,.scan-circle .icon{width:42px;height:42px;margin-right:12px}.home-item{display:flex;align-items:center;width:100%;border:0;border-radius:0;border-top:1px solid #e5e7eb;margin:0;min-height:90px;padding:16px;color:#1c2333;font-size:17px;text-align:left;background:#ffffff}.home-item:first-child{border-top:0}.entry-icon{display:flex;align-items:center;justify-content:center;width:40px;height:40px;flex:none;background:#eaeef4;color:#1d3557;border-radius:12px;font-size:18px;font-weight:800;margin-right:14px}.entry-today,.entry-scan,.entry-rework,.entry-pending,.entry-payroll,.entry-month{background:#eaeef4;color:#1d3557}.entry-text{flex:1;min-width:0}.entry-text small{display:block;color:#6b7280;font-size:15px;margin-top:3px}.chevron{color:#b8bcc4;font-size:22px;margin-left:8px}.badge{display:inline-block;min-width:30px;border-radius:18px;background:#d23c3c;color:#fff;font-size:15px;text-align:center;padding:2px 8px;margin-left:8px}.alert-strip{display:block;padding:18px;background:#fbe9dc;border:1px solid #f3c9a9;color:#9c410f;border-radius:22px;font-size:18px;font-weight:700;margin:0 0 18px}.danger-strip{background:#fbe1e1;border-color:#f1b7b7;color:#d23c3c}.home-actions{display:flex;margin:0 -6px}.action-tile{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;min-height:112px;padding:14px;margin:6px;border-radius:22px;background:#ffffff;border:1px solid #e5e7eb;font-size:20px;font-weight:700;color:#1d3557}.action-tile .icon{width:34px;height:34px;display:block;margin:0 auto 8px}.orange{background:#e2601c;color:#fff;border:0;box-shadow:0 3px 0 #b9480f}.orange:active{box-shadow:0 1px 0 #b9480f}.rank{display:flex;align-items:center;padding:10px 0;font-size:15px}.rank-index{width:26px;color:#6b7280}.rank-name{width:80px;flex:none}.rank progress{flex:1;min-width:20px;height:12px;color:#1d3557}.rank-quantity{min-width:60px;text-align:right;font-size:18px}.record-row{display:flex;align-items:center;padding:16px 12px;border-top:1px solid #e5e7eb;color:#1c2333;min-height:90px}.record-row:first-child{border-top:0}.record-row time{width:54px;flex:none;font-size:15px;color:#6b7280;margin-right:10px}.record-description{flex:1;min-width:0;font-size:17px;font-weight:700}.record-description small{display:block;font-size:15px;font-weight:400;color:#6b7280}.record-numbers{text-align:right;margin-left:8px}.record-numbers small{display:block;color:#6b7280}.record-quantity{font-size:22px;text-align:right}.record-undo{font-size:15px;padding:8px 12px;margin:8px 0 0}.empty-state{padding:18px;color:#6b7280}
/* Scan result: flex also works on old Android, with no CSS grid dependency. */
.scan-page,.success-page{padding-bottom:180px}.job{display:flex;align-items:center;padding:16px}.job-thumb{width:120px;height:120px;flex:none;background:#e9edf2;border-radius:16px;margin-right:14px;overflow:hidden}.photo{display:block;width:120px;height:120px;object-fit:cover}.job-info{min-width:0;font-size:18px}.job-info h1{font-size:28px;margin:0 0 4px}.steps{display:flex;flex-wrap:wrap;margin:0 -5px}.steps button{width:46%;width:calc(50% - 10px);margin:5px;padding:12px 14px;min-height:82px;border:2px solid #e5e7eb;text-align:left;font-size:21px;font-weight:700}.steps button small{display:block;font-size:15px;font-weight:500;color:#6b7280}.steps button.selected{border-color:#1d3557;background:#eaeef4}.steps .selected small{color:#1d3557}.quantity-row{display:flex;align-items:center;justify-content:space-between;flex-wrap:nowrap;background:#ffffff;border:1px solid #e5e7eb;border-radius:22px;padding:8px;margin-top:20px}.quantity-row button{flex:none;min-width:56px;width:56px;min-height:64px;padding:8px 0;background:#eef0f3;font-size:21px;font-weight:800}.qty{font-size:40px;font-weight:800;text-align:center;margin:16px 0;color:#1d3557}.quantity-row .qty{flex:1;min-width:0;width:110px;padding:8px 0;font-size:36px;white-space:nowrap;margin:0 3px}input.qty{font-size:36px;font-weight:800;text-align:center;max-width:160px;min-height:56px;border:1px solid #e5e7eb;border-radius:14px;color:#1d3557;background:#ffffff}.qty.prompt{font-size:19px;white-space:normal}.quantity-row input.qty{font-size:36px;font-weight:800;text-align:center;max-width:160px;min-height:56px;border:1px solid #e5e7eb;border-radius:14px;color:#1d3557;background:#ffffff}.qty.prompt{font-size:15px;white-space:normal}.adjust{display:flex;flex-wrap:nowrap}.adjust button{flex:1;margin:4px;min-width:56px;padding:12px 0}.confirm-dock{position:fixed;z-index:10;bottom:0;left:0;right:0;max-width:680px;margin:0 auto;padding:14px 18px 24px;padding-bottom:calc(24px + constant(safe-area-inset-bottom));padding-bottom:calc(24px + env(safe-area-inset-bottom));background:#f4f5f7}.confirm-dock .primary{margin:0 0 8px;box-shadow:0 3px 0 #12233a;min-height:64px;border-radius:16px}.success{padding:36px 8px 12px;text-align:center}.success h1{font-size:31px;margin:42px 0 8px}.success p{font-size:18px}.tick{position:relative;display:flex;align-items:center;justify-content:center;width:150px;height:150px;background:#e2601c;color:#fff;border-radius:50%;font-size:77px;line-height:1;margin:18px auto 0;box-shadow:0 0 0 16px rgba(226,96,28,.12)}.tick:after{content:"";position:absolute;top:-30px;left:-30px;right:-30px;bottom:-30px;border:12px solid #e2601c;border-radius:50%;opacity:0}.success-total{display:inline-block;font-size:17px}.success-total .big{font-size:36px;color:#1d3557}.success-dock .scan-main{font-size:30px;min-height:76px;margin-bottom:14px}.success-dock .text-link{padding:8px;margin:0;font-size:16px}.success a.button{display:block}.records-page .hero{margin-top:20px}
/* Reports, filters, and production cards. Native progress is accessible without JS. */
.segments{display:flex;flex-wrap:nowrap;background:#edeff2;padding:4px;border-radius:16px;margin-bottom:14px}.segments a{flex:1;min-width:0;text-align:center;padding:12px 4px;margin:0;font-size:15px;font-weight:700;border-radius:12px;color:#5b6170}.segments .selected{background:#ffffff;border:0;box-shadow:0 2px 6px rgba(0,0,0,.08);color:#1d3557}.progress-summary a,.progress-sort a{font-size:15px;border:1px solid #e5e7eb;border-radius:16px;padding:12px;margin-bottom:8px;background:#ffffff}.progress-summary .selected,.progress-sort .selected{border-color:#1d3557;background:#ffffff;box-shadow:inset 0 0 0 1px #1d3557}.progress-search{font-size:15px}.progress-search>div{display:flex;align-items:center}.progress-search input{min-width:0;font-size:15px;flex:1;margin:8px 8px 8px 0}.progress-row{display:block;padding:18px;background:#ffffff;border:1px solid #e5e7eb;border-radius:22px;margin:14px 0;color:#1c2333}.progress-line{display:flex;justify-content:space-between;align-items:flex-start}.progress-name{flex:1;min-width:0;margin-right:8px}.progress-name strong{font-size:19px}.progress-name small{display:block;color:#6b7280;font-size:15px}.due{background:#f1f3f6;color:#4b5563;font-size:15px;font-weight:700;border-radius:12px;padding:5px 10px;max-width:48%}.due.overdue{background:#fbe1e1;color:#d23c3c}.due.soon{background:#fdeee4;color:#c2410c}.progress-meter{display:flex;align-items:center;margin-top:14px}.progress-meter progress{flex:1;min-width:0;color:#1d3557}.progress-meter span{min-width:66px;text-align:right;font-size:17px}.progress-total{font-size:15px;margin-top:8px}.progress-total b{font-size:21px}.progress-note{font-size:15px;color:#6b7280}.progress-step{margin:24px 0}.step-line{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap}.step-line h3{font-size:18px}.step-line span{font-size:15px}.progress-step progress{width:100%;color:#1d3557}progress{height:14px;width:100%;border:0;border-radius:7px;background:#edeff2;color:#1d3557;overflow:hidden;appearance:none;-webkit-appearance:none}progress::-webkit-progress-bar{background:#edeff2;border-radius:7px}progress::-webkit-progress-value{background:#1d3557;border-radius:7px}progress::-moz-progress-bar{background:#1d3557;border-radius:7px}.late-row progress{color:#d23c3c}.late-row progress::-webkit-progress-value{background:#d23c3c}.late-row progress::-moz-progress-bar{background:#d23c3c}
body[data-screen=login] main{max-width:448px;margin:32px auto;padding:24px;background:#ffffff;border:1px solid #e5e7eb;border-radius:22px}body[data-screen=login] h1{font-size:24px;margin:0 0 8px}.login-caption{color:#6b7280}body[data-screen=register] form,body[data-screen=lookup] form{background:#ffffff;padding:22px;border:1px solid #e5e7eb;border-radius:22px}body[data-screen=login] #notice{background:none;border:0;color:#d23c3c;padding:0}body[data-screen=login] .primary{font-size:26px;box-shadow:0 3px 0 #12233a;min-height:64px;border-radius:16px}
/* Theme's general transitions are disabled here: phone motion is transform/opacity only. */
@media (prefers-reduced-motion: no-preference){
 button,.button,a,input,select,textarea{transition:transform 140ms}main,details[open]>form,details[open]>div{animation:none}
 .card,.home-list,.stat,.progress-row,.action-tile{animation:phone-in 120ms ease-out both}.card:nth-child(2),.home-list:nth-child(2),.stat:nth-child(2),.progress-row:nth-child(2){animation-delay:40ms}.card:nth-child(3),.home-list:nth-child(3),.progress-row:nth-child(3){animation-delay:80ms}.card:nth-child(4),.progress-row:nth-child(4){animation-delay:120ms}.card:nth-child(5),.progress-row:nth-child(5){animation-delay:160ms}.card:nth-child(6),.progress-row:nth-child(6){animation-delay:200ms}.card:nth-child(7),.progress-row:nth-child(7){animation-delay:240ms}.card:nth-child(8),.progress-row:nth-child(8){animation-delay:280ms}
 .card:nth-child(n+9),.home-list:nth-child(n+9),.progress-row:nth-child(n+9){animation:none}
 .tick{animation:tick-pop 600ms ease-out both}.tick:after{animation:tick-halo 600ms ease-out both}progress::-webkit-progress-value{transform-origin:left;animation:meter-in 500ms ease-out both}progress::-moz-progress-bar{transform-origin:left;animation:meter-in 500ms ease-out both}
 @keyframes phone-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes tick-pop{0%{transform:scale(.6);opacity:0}65%{transform:scale(1.08);opacity:1}100%{transform:scale(1);opacity:1}}@keyframes tick-halo{0%{transform:scale(.6);opacity:.18}100%{transform:scale(1.2);opacity:0}}@keyframes meter-in{from{transform:scaleX(0)}to{transform:scaleX(1)}}
}
[hidden]{display:none!important}
@media(max-width:370px){main{padding-left:10px;padding-right:10px}.hero{margin-left:-10px;margin-right:-10px;padding:18px 10px}.home-body{padding:0 10px}.stat{padding:12px 8px}.quantity-row{padding:6px}.quantity-row .qty{font-size:36px}.quantity-row button{width:56px;font-size:21px}.role-chip{margin-left:0}.scan-main{font-size:26px}.record-row{padding:14px 8px}.record-row time{width:46px;margin-right:6px}.job-thumb{width:120px;height:120px;margin-right:10px}.photo{width:120px;height:120px}.job-info h1{font-size:28px}body[data-screen=login] main{margin:24px 10px}}

.wage-day{margin:0;padding:0 16px;border-top:1px solid #e5e7eb}.wage-day:first-child{border-top:0}.wage-day summary{list-style:none}.wage-day summary:after{content:"›";margin-left:8px;color:#6b7280}.wage-day p{font-size:15px}

.quantity-row .qty small{font-size:15px;margin-left:3px}@media(max-width:370px){.quantity-row{padding:4px}.quantity-row .qty{font-size:36px;margin:0}.quantity-row .qty small{display:block;line-height:1.1;margin:0}}

.stat-fraction{margin-left:0!important}.toast{background:#ffffff;border-color:#e5e7eb;border-radius:22px;color:#1d3557;font-size:15px}.scan-page,.success-page{padding-bottom:220px;padding-bottom:calc(220px + constant(safe-area-inset-bottom));padding-bottom:calc(220px + env(safe-area-inset-bottom))}

.urgent progress{color:#d23c3c}.urgent progress::-webkit-progress-value{background:#d23c3c}.urgent progress::-moz-progress-bar{background:#d23c3c}body[data-screen=b] #app{padding-bottom:220px}

.success{padding-top:12px}.success .tick{width:128px;height:128px;font-size:65px}.success h1{margin-top:34px}.success-links{display:flex;justify-content:center;margin-top:10px}.success-links .text-link{display:inline-block;padding:10px 14px;margin:0;font-size:16px}.success-dock .text-link{display:block;width:100%;text-align:center;font-size:16px}

.scan-rework{display:flex;align-items:center;justify-content:center;width:100%;min-height:72px;margin:0 0 16px;border:2px solid #1d3557;border-radius:20px;background:#ffffff;color:#1d3557;font-size:23px;font-weight:700;box-shadow:none}.scan-rework .icon{width:30px;height:30px;margin-right:12px}
