/* Tapsi-inspired tokens; official design-system values pending. */
:root{color-scheme:light;--brand:#ff5722;--brand-press:#e64a19;--brand-soft:#fff0e9;--ink:#202326;--ink-2:#72767c;--line:#e9eaec;--bg:#f7f8fa;--surface:#fff;--radius:12px;--radius-sm:8px;--shadow:0 2px 5px #19202b03;--ok:#21835a;--warn:#97670c;--bad:#cf4343;--ok-soft:#eaf6ef;--warn-soft:#fff6df;--bad-soft:#fff0f0}
button:focus-visible,a:focus-visible{outline:3px solid #ffad8e;outline-offset:3px}.logo{color:var(--ink);font-size:26px}.logo small{font-size:11px;font-weight:400;letter-spacing:.04em}.card{border:1px solid var(--line)}.muted{color:var(--ink-2);font-size:13px;line-height:1.8}.eyebrow,.nav-caption{font-size:10px;font-weight:700;letter-spacing:.14em;color:var(--ink-2)}
#app{grid-template-columns:224px minmax(0,1fr)}aside{padding:30px 18px 20px}aside .logo{margin-bottom:50px}.nav-caption{padding:0 14px 14px}nav button{margin-bottom:5px;font-size:13px}nav button.on{border-left:3px solid var(--brand)}.nav-icon{display:inline-block;width:25px;font-size:20px;vertical-align:middle}main{padding:0 32px 28px}.workspace-bar{display:flex;align-items:center;justify-content:space-between;min-height:72px;border-bottom:1px solid var(--line);margin-bottom:28px;font-size:12px}.workspace-tag{font-size:10px;font-weight:700;letter-spacing:.13em}h1{font-size:28px;letter-spacing:-.8px;margin:8px 0}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:24px}.page-heading p{margin:6px 0 0}.page-heading .btn{font-size:12px;background:#fff}
.overview-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:20px 0 28px}.metric{background:white;border:1px solid var(--line);padding:18px 20px;border-radius:12px}.metric>span{font-size:12px;color:#62666b}.metric>b{display:block;font-size:32px;line-height:1.7;letter-spacing:-1px;font-weight:600}.metric>small{font-size:11px;color:var(--ink-2)}.metric-1{color:var(--ok)}.metric-2{color:var(--brand)}.metric-3{color:var(--warn)}.monitor-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px}.monitor-toolbar b{font-size:14px}.monitor-toolbar .muted{display:block;font-size:11px}.filters{display:flex;gap:8px}.filters input,.filters select{border:1px solid var(--line);border-radius:8px;background:white;padding:10px 12px;font-size:12px}
#p-live .split{height:calc(100vh - 398px);min-height:360px;grid-template-columns:300px minmax(0,1fr)}.row{border:1px solid var(--line);padding:16px;box-shadow:none}.row b{font-size:13px}.row small{font-size:11px;line-height:1.8}.pill{font-size:10px;padding:3px 8px}.map{border:1px solid var(--line);background:#eef0eb}.review-note{padding:16px 20px;background:var(--brand-soft);color:#87482e;border-radius:10px;font-size:13px;line-height:1.8;margin-bottom:24px}.empty-state{text-align:center;padding:32px 20px;color:var(--ink-2);font-size:13px}table{border:1px solid var(--line)}th{background:#fafafa;padding:15px}td{padding:17px 14px}#pageError:empty{display:none}
#login{max-width:440px;margin-top:10vh}#login .card{padding:32px}#login h1{margin:10px 0 4px}#login p{margin-bottom:28px}#login .logo{margin-bottom:36px}#login .field{margin-bottom:20px}.btn{font-size:13px}.field input{font-size:14px}.agent-body{background:#f7f8fa;padding-bottom:30px}.agent-body header{padding:24px 0}.agent-body h1{font-size:27px}.shift-intro{margin:24px 0}.location-orbit{width:92px;height:92px;display:grid;place-items:center;border-radius:50%;background:var(--brand-soft);color:var(--brand);font-size:56px;margin:0 auto 24px;border:12px solid #fff7f3}.agent-body .hero{padding:28px 20px}.agent-body .hero h2{font-size:19px}.agent-body .note{background:#f6f7f8;font-size:12px;line-height:1.8;padding:16px}.agent-body .stats{gap:12px;margin-top:24px}.agent-body .stats div{padding:16px}.agent-body .stats small{font-size:11px}.agent-body .stats b{font-weight:600;margin-top:6px}.agent-body .big{min-height:54px;font-size:15px}
@media(max-width:1100px){main{padding:0 20px 24px}#p-live .split{grid-template-columns:250px minmax(0,1fr)}.metric{padding:15px}.filters input{width:170px}}
@media(max-width:900px){#app{grid-template-columns:1fr}aside{padding:16px;border-bottom:1px solid var(--line)}aside .logo{margin:0 16px 0 0}.nav-caption{display:none}nav{display:flex;flex-wrap:wrap}nav button{width:auto;font-size:12px;padding:8px}aside #me{display:none}.workspace-bar{min-height:52px;margin-bottom:20px}#p-live .split{height:auto;grid-template-columns:1fr}#liveList{max-height:290px}.map{height:55vh}.overview-stats{gap:10px}.nav-icon{display:none}}
@media(max-width:560px){.overview-stats{grid-template-columns:repeat(2,1fr)}.monitor-toolbar{align-items:flex-start;flex-direction:column}.filters{width:100%}.filters input{min-width:0;flex:1}.page-heading h1{font-size:25px}.page-heading{align-items:flex-start}main{padding:0 16px 24px}#p-users,#p-alerts{overflow-x:auto}table{min-width:650px}.agent-body #login .card{padding:24px}.agent-body #login{margin-top:6vh}}
@media(prefers-reduced-motion:reduce){.dot.live{animation:none}}
.shift-switch{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;margin-top:24px;padding:18px;text-align:left;border:1px solid var(--line);border-radius:12px;background:var(--bg);cursor:pointer}.shift-switch b{display:block;font-size:17px}.shift-switch small{display:block;font-size:11px;color:var(--ink-2);margin-top:4px}.switch-track{flex-shrink:0;width:54px;height:32px;background:#a4a7ac;border-radius:20px;padding:4px;transition:background .2s}.switch-track>span{display:block;width:24px;height:24px;border-radius:50%;background:white;box-shadow:0 1px 4px #0002;transition:transform .2s}.shift-switch[aria-checked=true]{border-color:var(--brand);background:var(--brand-soft)}.shift-switch[aria-checked=true] .switch-track{background:var(--brand)}.shift-switch[aria-checked=true] .switch-track>span{transform:translateX(22px)}.shift-switch:disabled{opacity:.6;cursor:wait}.missing-alert{text-align:left;margin-top:18px;padding:16px;background:var(--bad-soft);border:1px solid #f5baba;border-radius:10px;color:#952d2d;font-size:13px}.missing-alert p{line-height:1.7}.reminder-card{margin-top:16px}.reminder-card h2{font-size:17px;margin-top:0}.reminder-actions{display:flex;gap:8px;flex-wrap:wrap}
/* The agent home is a single mobile viewport; secondary controls live in dialogs. */
.agent-body{max-width:480px;height:100dvh;min-height:0;padding:env(safe-area-inset-top) 16px env(safe-area-inset-bottom);overflow:hidden}.agent-body #main{height:100%;display:flex;flex-direction:column;min-height:0;gap:10px}.agent-body header{padding:12px 0;flex-shrink:0}.agent-body .hero{padding:18px;flex:1;min-height:0;display:flex;flex-direction:column;justify-content:center;gap:10px}.agent-body .location-orbit{width:58px;height:58px;font-size:34px;border-width:7px;margin:0 auto 2px;flex-shrink:0}.agent-body .hero h2{margin:0!important;font-size:18px}.agent-body .shift-switch{margin-top:4px;padding:12px 14px;min-height:64px}.agent-body .stats{margin-top:2px;gap:8px}.agent-body .stats div{padding:10px 12px}.agent-body .stats b{font-size:17px;margin-top:2px}.agent-body .note{margin-top:0;padding:8px 10px;font-size:11px;line-height:1.5}.agent-body #msg{margin:0!important;min-height:0;font-size:11px;line-height:1.5}.agent-body #msg:empty{display:none}.agent-footer{display:flex;justify-content:space-between;gap:8px;padding:2px 0 12px;flex-shrink:0}.missing-alert{margin-top:0;padding:10px;font-size:11px}.missing-alert p{margin:4px 0}.mobile-dialog{width:min(440px,calc(100vw - 24px));max-height:85dvh;overflow:auto;border:1px solid var(--line);border-radius:16px;padding:20px;color:var(--ink);background:var(--surface)}.mobile-dialog::backdrop{background:#17202b70}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.dialog-heading h2{font-size:18px;margin:0}.help-steps{padding-left:20px;font-size:13px;line-height:1.8}.help-steps li{margin-bottom:10px}.agent-body #login{margin:0;min-height:100%;display:flex;flex-direction:column;justify-content:center}.agent-body #login .logo{margin-bottom:20px}.agent-body #login .card{padding:24px}
@media(max-height:740px){.agent-body .hero{gap:7px;padding:12px}.agent-body .location-orbit{display:none}.agent-body .stats div{padding:7px 10px}.agent-body header{padding:9px 0}.agent-body .note{padding:6px}.agent-body .hero h2{font-size:16px}.agent-body .shift-switch{padding:10px;min-height:58px}}
@media(max-height:560px){.agent-body .hero{gap:4px;padding:8px}.agent-body .stats{grid-template-columns:repeat(4,1fr);gap:4px}.agent-body .stats div{padding:5px}.agent-body .stats small{font-size:9px}.agent-body .stats b{font-size:13px}.agent-body .note{display:none}.agent-body .shift-switch{min-height:48px;padding:6px 10px}.agent-body .hero>div[style]{font-size:11px}.agent-body #msg{font-size:10px}.agent-footer{padding-bottom:5px}.agent-body #main{gap:5px}.agent-body #login .card{padding:14px}.agent-body #login p{margin:4px 0 8px}.agent-body #login .field{margin-bottom:8px}.agent-body #login .logo{margin-bottom:8px}}
/* Tapsi Box field-team visual identity: vivid orange, ink, and warm surfaces. */
.agent-body{background:#f5f4f1;color:#202427;padding-left:18px;padding-right:18px}.agent-body #main{gap:12px}.agent-body header{padding:18px 2px 4px}.agent-body header .logo{gap:9px;font-size:25px;letter-spacing:-1.1px;line-height:1.1}.agent-body .logo small{margin-top:5px;font-size:9px;letter-spacing:.18em;font-weight:700;color:#858580}.agent-body .box-word{font-weight:400;color:var(--brand)}.agent-body header .logo img{width:32px;height:32px}.agent-body #logout{border:0;font-size:11px;color:#757873;padding-right:0}.agent-body .hero{background:transparent;border:0;box-shadow:none;padding:0;justify-content:flex-start;gap:14px}.team-banner{position:relative;isolation:isolate;overflow:hidden;display:flex;align-items:center;justify-content:space-between;flex:1;min-height:138px;max-height:220px;border-radius:22px;padding:24px 20px;background:#ff5722;color:white}.team-banner::after{content:'';position:absolute;width:200px;height:200px;border:34px solid #ffffff0a;border-radius:50%;right:-94px;bottom:-100px;z-index:-1}.banner-copy{position:relative;z-index:1;text-align:left}.team-kicker{font-size:8px;letter-spacing:.14em;font-weight:700;color:#ffdfd3;margin-bottom:11px}.team-title{font-size:clamp(19px,5.3vw,24px);line-height:1.25;font-weight:800;letter-spacing:-.8px}.agent-greeting{font-size:11px;color:#ffe6dd;margin-top:15px}.agent-greeting b{color:white}.agent-greeting>span{display:inline-block;margin-left:5px;font-size:16px}.field-art{width:98px;height:112px;position:relative;flex-shrink:0;margin-left:3px}.field-art svg{position:absolute;width:80px;height:80px;left:9px;top:12px;transform:rotate(-7deg)}.orbit{position:absolute;border:1px solid #ffffff38;border-radius:50%;inset:6px -7px}.orbit-two{inset:19px -19px;transform:rotate(-35deg);border-style:dashed}.art-label{position:absolute;bottom:0;left:23px;letter-spacing:.15em;font-size:7px;font-weight:700;color:#ffdfd3}.shift-heading{display:flex;align-items:center;justify-content:space-between;padding:0 2px;gap:8px}.section-label{font-size:9px;letter-spacing:.13em;font-weight:800;color:#8c8f89}.agent-body .hero .shift-heading h2{font-size:11px;letter-spacing:0;font-weight:600}.shift-heading .dot{height:7px;width:7px;margin-right:5px;background:#a3a69f}.shift-heading .dot.live{background:var(--ok)}.agent-body .shift-switch{margin:0;background:white;border:1px solid #e7e7e0;border-radius:16px;padding:16px 18px;min-height:78px;box-shadow:0 3px 7px #1e271503}.shift-switch b{font-size:18px;letter-spacing:-.5px}.shift-switch small{font-size:10px;color:#8b8d86}.agent-body .shift-switch[aria-checked=true]{background:#242a27;color:white;border-color:#242a27}.shift-switch[aria-checked=true] small{color:#bdc6be}.shift-switch[aria-checked=true] .switch-track{background:#ff652f}.switch-track{width:56px;height:34px;padding:4px;background:#d5d8d0}.switch-track>span{width:26px;height:26px}.shift-switch[aria-checked=true] .switch-track>span{transform:translateX(22px)}.agent-body .stats{gap:10px;margin:0}.agent-body .stats div{background:white;border:1px solid #e8e8e2;border-radius:14px;padding:13px 15px}.agent-body .stats small{font-size:10px;color:#92948c}.agent-body .stats small span{font-size:13px;margin-right:4px;color:#8c9184}.agent-body .stats b{font-size:21px;letter-spacing:-.6px;font-weight:700;margin-top:5px;line-height:1.2}.agent-body #next{color:var(--brand)}.agent-body .note{background:transparent;padding:0 3px;color:#92958d;font-size:10px;line-height:1.6;text-align:center}.note-dot{display:inline-block;width:4px;height:4px;border-radius:50%;background:var(--brand);vertical-align:middle;margin-right:3px}.agent-footer{padding:0 0 16px;gap:8px;justify-content:center}.agent-footer .btn{border:0;background:transparent;color:#777e73;font-size:10px;min-height:36px;flex:1}.agent-footer .btn+ .btn{border-left:1px solid #dcdfd6;border-radius:0}.agent-footer .btn span{margin-right:5px;font-size:15px}.agent-body .missing-alert{border-radius:14px}.agent-body #msg{padding:0 5px}.agent-body #login .logo{font-size:32px}.agent-body #login h1{letter-spacing:-1px}.agent-body #login .card{border-radius:20px;box-shadow:0 10px 35px #45392207}.agent-body #login .btn{border-radius:12px}
@media(max-height:760px){.agent-body #main{gap:9px}.agent-body header{padding-top:12px}.agent-body .hero{gap:10px}.team-banner{min-height:120px;padding:17px 18px;border-radius:18px}.team-kicker{margin-bottom:7px;font-size:7px}.team-title{font-size:20px}.agent-greeting{margin-top:9px}.field-art{transform:scale(.85);margin-right:-6px}.agent-body .shift-switch{min-height:65px;padding:12px 16px}.agent-body .stats div{padding:10px 13px}.agent-body .stats b{font-size:19px;margin-top:4px}.agent-footer{padding-bottom:8px}}
@media(max-height:660px){.team-banner{min-height:94px;padding:12px 16px}.team-kicker{display:none}.team-title{font-size:18px}.agent-greeting{margin-top:5px}.field-art{height:80px;width:80px;transform:scale(.75);transform-origin:center}.art-label{display:none}.agent-body .hero{gap:8px}.agent-body .stats div{padding:8px 12px}.agent-body .stats b{font-size:17px}.agent-body .note{font-size:9px}.agent-body .shift-switch{min-height:59px;padding:10px 14px}.agent-body .shift-switch b{font-size:16px}}
@media(max-height:540px){.team-banner{display:none}.agent-body .stats div{padding:8px}.agent-body .stats b{font-size:15px}.agent-body .hero{justify-content:center}.agent-body header{padding-top:8px}.agent-body .note{display:none}}
@media(prefers-reduced-motion:reduce){.switch-track,.switch-track>span{transition:none}}
@media(max-height:740px){.agent-body .hero:has(#missingAlert:not(.hidden)) .team-banner,.agent-body .hero:has(#msg:not(:empty)) .team-banner{display:none}}
.phone-check{display:block;margin-top:4px;padding:4px 8px;border-radius:6px;font-size:11px;line-height:1.6}.phone-check.ok{background:var(--ok-soft);color:var(--ok)}.phone-check.bad{background:var(--bad-soft);color:var(--bad)}
