*{box-sizing:border-box}body{margin:0;background:#f7f6ef;color:#40503c;font:15px -apple-system,BlinkMacSystemFont,sans-serif;max-width:820px;margin:auto}header{padding:24px 20px 16px}h1{font-size:24px;margin:0 0 9px}p{margin:8px 0}small,footer{color:#84907c;font-size:12px}main{padding:0 16px}.scene{aspect-ratio:1.65;background:url('/assets/office-front.png') center/cover;border-radius:20px}.legend{font-size:11px;text-align:center;margin:18px 0}#members{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.member{display:flex;align-items:center;gap:9px;padding:12px 10px;background:#fffef8;border:1px solid #e4e8da;border-radius:14px;min-width:0}.sprite{width:50px;height:54px;background:url('/assets/staff.png');background-size:500% 400%;flex-shrink:0}.info{min-width:0}.name{font-weight:650;font-size:15px;display:flex;align-items:center;gap:6px}.dot{width:8px;height:8px;border-radius:50%;background:#a7ada6;display:inline-block}.dot.running{background:#56a66b}.dot.queued,.dot.waiting,.dot.review,.dot.deliveryWaiting{background:#d2a853}.dot.error{background:#d27870}.caption,.project{font-size:11px;color:#7e8974;line-height:1.6;overflow-wrap:anywhere}.project{color:#687b5d;margin-top:3px}footer{text-align:center;padding:22px 12px;line-height:1.8}#error{color:#a16451;font-size:13px}@media(min-width:640px){#members{grid-template-columns:repeat(3,minmax(0,1fr))}.scene{aspect-ratio:2}}

.scene{position:relative}.figure{position:absolute;transform:translate(-50%,-50%);text-align:center}.figure .sprite{width:clamp(24px,7vw,50px);height:clamp(26px,7.5vw,54px)}.scene-name{font-size:clamp(6px,1.8vw,10px);white-space:nowrap;background:#fffef4e8;border-radius:4px;padding:2px 4px;display:inline-flex;gap:3px;align-items:center}.scene-name .dot{width:5px;height:5px}

body{font-size:15px}.scene{aspect-ratio:1.6;background-size:100% 100%;container-type:inline-size;overflow:hidden}.scene .staff.seat{position:absolute;width:5.8%;height:9.5%;transform:translate(-50%,-50%);opacity:1;cursor:default}.scene .desk-front{position:absolute}.scene .desk-front:before{content:'';position:absolute}.scene .staff.seat .seated-avatar{display:block!important;position:absolute;inset:0;z-index:1;clip-path:inset(0 0 23% 0)}.scene .animal.sprite{width:100%;height:100%;opacity:1!important}.scene .staff-name{position:absolute;top:90%;left:50%;transform:translateX(-50%);font-size:clamp(5px,1.1cqw,10px);background:#fffdf2ed;color:#4d503c;padding:2px 4px;white-space:nowrap;border-radius:4px;display:flex;gap:3px;align-items:center;line-height:1.3}.scene .dot{width:clamp(3px,.7cqw,6px);height:clamp(3px,.7cqw,6px)}.scene .lounge-guest{position:absolute;width:5.8%;height:9.5%;transform:translate(-50%,-50%);z-index:16}.scene .rest-area{border-radius:6px}.scene .rest-meeting:before,.scene .rest-meeting:after{box-shadow:none}.scene .rest-meeting:after{left:60%;box-shadow:none}.scene .staff.seat.running .desk-front:after{display:none}
@media(min-width:640px){.scene{aspect-ratio:1.6}}

.mobile-team #members{margin-top:10px}.mobile-team .scene{margin-top:10px}

/* Warm butter-yellow & soft cream card shell */
body.mobile-office-v2{--dash-paper:#FFFDF8;--dash-ink:#393733;--dash-muted:#6B6559;--dash-line:#EAE2CF;--dash-white:#FFFFFF;--dash-accent:#5D4A22;--office-butter:#F4CF65;--office-butter-soft:#FDF4D7;--office-green:#B4C7A6;--office-pink:#E8B5BC;background:linear-gradient(180deg,#FDF6DF 0%,#F9F3EC 34%,#F6F4EF 100%);min-height:100vh;max-width:560px;padding:max(14px,env(safe-area-inset-top)) 0 max(16px,env(safe-area-inset-bottom));color:var(--dash-ink)}
.mobile-office-v2 [hidden]{display:none!important}
.mobile-office-v2 ::selection{background:#f7dd92;color:#393733}

/* Header card with prominent butter yellow band, hand-drawn star & characters */
.office-reference .mobile-dash-header{display:flex;flex-direction:column;gap:10px;margin:0 14px;padding:14px;background:var(--dash-paper);border:1px solid #EFE5CA;border-radius:22px;box-shadow:0 6px 22px rgba(93,74,34,.06)}
.office-hero-band{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:16px;background:linear-gradient(135deg,#FCE8A6 0%,#FDF5D9 100%);border:1px solid #F2D888}
.mobile-office-v2 .dash-mascots{display:flex;align-items:center;gap:2px;background:#FFFDF6;padding:4px 7px;border-radius:14px;border:1px solid #F0DFAB;box-shadow:0 2px 6px rgba(93,74,34,.07)}
.mobile-office-v2 .dash-mascot{width:34px;height:36px}
.office-reference .office-identity{flex:1;min-width:0}
.office-reference .mobile-dash-header h1{font-size:22px;font-weight:750;line-height:1.18;letter-spacing:-.03em;margin:0 0 3px;display:flex;align-items:center;gap:4px}
.office-spark{flex:none;transform:rotate(-6deg);filter:drop-shadow(0 1px 1px rgba(57,55,51,.12))}
.office-subtitle{font-size:12px;color:#5D4A22;margin:0;font-weight:550}

.office-status-row{display:flex;align-items:center;justify-content:space-between;gap:8px}
.mobile-office-v2 .office-refresh{display:inline-flex;align-items:center;gap:5px;min-height:34px;padding:0 12px;border:1px solid var(--dash-line);border-radius:999px;color:var(--dash-ink);background:#FFFDF8;font-size:12px;font-weight:600;cursor:pointer}
.mobile-office-v2 .office-refresh:hover{background:#FDF4D7}
.mobile-office-v2 .office-refresh:disabled{opacity:.55}
.mobile-office-v2 #dash-source{font-size:11.5px;line-height:1.4;color:var(--dash-muted);margin:0;background:#FBF7EA;padding:5px 10px;border-radius:999px;border:1px solid #EFE5CA;font-variant-numeric:tabular-nums}

.office-reference .office-brief{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));background:#FAF5E4;border:1px solid #EFE4C4;border-radius:14px;padding:3px}
.office-brief button{display:flex;min-width:0;min-height:38px;align-items:center;justify-content:center;gap:5px;padding:0 4px;color:var(--dash-muted);font-size:11.5px;font-weight:500;border-radius:10px}
.office-brief button+button{border-left:1px solid #EAE0C4}
.office-brief button strong{font-size:13px;font-weight:700;white-space:nowrap;color:var(--dash-ink)}

/* Pill navigation tabs (2 tabs below pinned office map) */
.office-reference .office-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin:10px 0 0;padding:4px;gap:4px;background:var(--dash-paper);border:1px solid var(--dash-line);border-radius:16px;box-shadow:0 3px 12px rgba(93,74,34,.04)}
.office-map-pinned{margin-bottom:0}
.office-tabs button{min-height:40px;font-size:13px;font-weight:600;border-radius:12px;color:var(--dash-muted)}
.office-tabs button:hover{background:#FDF4D7}
.office-tabs button[aria-pressed=true]{background:var(--office-butter);color:var(--dash-ink);font-weight:700;box-shadow:0 2px 6px rgba(244,207,101,.4)}

.office-reference main{padding:10px 14px 0;display:grid;gap:10px}
.office-reference .mobile-sheet{padding:14px;background:var(--dash-paper);border:1px solid var(--dash-line);border-radius:22px;box-shadow:0 6px 22px rgba(93,74,34,.05)}
.mobile-office-v2 .dash-head{margin:0 0 10px;gap:7px}
.mobile-office-v2 .dash-head h2{font-size:19px;font-weight:720;line-height:1.28;letter-spacing:-.024em}
.mobile-office-v2 .dash-head p{font-size:12px;margin-top:2px;color:var(--dash-muted)}
.mobile-office-v2 .dash-notion{display:inline-flex;align-items:center;min-height:34px;padding:0 10px;border-radius:999px;background:#FAF5E4;border:1px solid #EADCA8;text-decoration:none;font-size:12px;font-weight:650;color:var(--dash-accent)}

.mobile-office-v2 .office-areas{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin:0 0 12px}
.mobile-office-v2 .office-areas button{min-height:34px;padding:2px 0;border:1px solid var(--dash-line);border-radius:10px;font-size:12px;font-weight:550;letter-spacing:-.02em;color:var(--dash-muted);background:#FFFEFB}
.mobile-office-v2 .office-areas button[aria-pressed=true]{background:#FCE8A6;border-color:#E7C867;color:var(--dash-ink);font-weight:700}

/* Cards */
.mobile-office-v2 .dash-list{gap:8px}
.mobile-office-v2 .dash-card{background:#FFFDF7;border:1px solid #EAE0C9;border-radius:16px}
.mobile-office-v2 .dash-card:has(.dash-toggle[aria-expanded=true]){border-color:#D8B652;box-shadow:0 3px 10px rgba(93,74,34,.06)}
.mobile-office-v2 .dash-toggle{min-height:84px;padding:11px 12px;gap:5px 8px}
.mobile-office-v2 .dash-meta{font-size:11px;font-weight:500;gap:6px;flex-wrap:wrap}
.mobile-office-v2 .dash-chip{color:#5F470D;background:#FCECB8;font-weight:650;padding:2px 7px;border-radius:6px}
.mobile-office-v2 .dash-chip[data-kind=review]{color:#2E4B2F;background:#E2EEDB}
.mobile-office-v2 .dash-chip[data-kind=waiting]{color:#6B3E47;background:#F6DFE3}
.mobile-office-v2 .dash-chip[data-kind=working]{color:#4E4A3F;background:#EEEAE0}
.dash-area-tag{background:#F3EFE4;color:#6B6559;padding:2px 6px;border-radius:6px;font-size:10.5px}
.mobile-office-v2 .dash-title{font-size:15px;font-weight:680;line-height:1.34;letter-spacing:-.015em}
.mobile-office-v2 .dash-line{font-size:12.5px;font-weight:450;line-height:1.42;color:#575247}

/* Honest result & evidence status badges */
.dash-checks{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:5px;margin-top:2px}
.dash-check{font-size:10.5px;font-weight:600;padding:2px 7px;border-radius:999px;border:1px solid transparent}
.dash-check.is-ok{background:#EAF3E6;color:#2D5731;border-color:#CBE0C3}
.dash-check.is-missing{background:#F6F3EB;color:#7C766A;border-color:#E4DEC9}

.mobile-office-v2 .dash-inline{background:#FAF3DF;border-radius:12px;margin:0 10px 10px;padding:12px}
.mobile-office-v2 .dash-inline h3{font-weight:680;font-size:15px}
.mobile-office-v2 .dash-more{margin-top:10px}
.mobile-office-v2 .dash-more>summary{border-bottom:0;font-size:13px;font-weight:620}
.mobile-office-v2 .dash-more[open]>summary{border-bottom:1px solid var(--dash-line)}
.mobile-office-v2 .dash-empty{border-color:#D8CCA8;border-radius:16px}
.mobile-office-v2 footer{padding:14px 16px;font-size:11.5px;color:var(--dash-muted)}

/* 2x2 Tracker grid inspired by reference */
.mobile-office-v2 .office-tally{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0 12px}
.office-tally div{padding:14px;min-width:0;border:1px solid var(--dash-line);border-radius:16px;background:#FFFEFB}
.office-tally div:nth-child(1){background:#FDF3D1;border-color:#F0DBA0}
.office-tally div:nth-child(2){background:#ECF3E7;border-color:#CDE0C2}
.office-tally div:nth-child(3){background:#F9E9EC;border-color:#ECCAD1}
.office-tally dt{font-size:12px;color:var(--dash-muted);font-weight:600}
.office-tally dd{margin:4px 0 0;font-size:30px;font-weight:750;font-variant-numeric:tabular-nums;line-height:1.15;color:var(--dash-ink)}
#tracker-note{font-size:12px;color:var(--dash-muted);margin:8px 0}

/* Office Map */
.office-reference .office-map-card{background:#FFFDFA;border:1px solid var(--dash-line);border-radius:16px;padding:10px}
.office-reference .mobile-team .scene{margin:0;border:0;border-radius:12px}
.office-reference .scene .staff.seat,.office-reference .scene .lounge-guest{cursor:pointer;padding:0}
.office-reference .scene [data-map-agent][aria-pressed=true] .staff-name{background:var(--office-butter);color:#393733}
.office-reference .scene .lounge-guest[aria-pressed=true]{outline:2px solid var(--office-butter);outline-offset:1px;border-radius:50%}
.office-map-caption{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 7px;margin:8px 0;color:var(--dash-muted);font-size:11px}
.office-map-caption small{font-size:11px}
.office-agent-detail{display:grid;grid-template-columns:33px minmax(0,1fr) auto;align-items:center;gap:3px 6px;padding:8px 10px;border:1px solid #EAD99E;background:#FAF0CF;border-radius:12px;font-size:12px}
.office-agent-detail .sprite{width:32px;height:32px;grid-row:span 2}
.office-agent-detail strong{font-weight:680}
.agent-detail-status,.agent-detail-project{color:var(--dash-muted)}
.agent-detail-project{grid-column:2/-1;overflow-wrap:anywhere}
.office-reference #members{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.office-reference .map-member{padding:0 9px 0 4px;gap:4px;min-height:38px;border:1px solid var(--dash-line);border-radius:999px;line-height:1.2;background:#FFFDF7}
.office-reference .map-member .sprite{width:23px;height:27px}
.office-reference .map-member-name{font-size:11.5px;font-weight:600;color:var(--dash-ink)}
.office-reference .map-member .dot{width:6px;height:6px}
.office-reference .map-member[aria-pressed=true]{background:#FCE8A6;border-color:#D8B652}
.chatter-bar{display:flex;align-items:center;gap:8px;margin-top:10px;padding-top:8px;border-top:1px solid #EFE7D4}
.chatter-toggle{display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:4px 10px 4px 12px;border-radius:999px;background:#F3EFE4;border:1px solid #E2D9C3;color:#6B6559;font-size:12px;font-weight:650;cursor:pointer}
.chatter-toggle strong{padding:2px 7px;border-radius:999px;background:#FFFDF8;font-size:11px;color:#6B6559}
.chatter-toggle[aria-pressed=true]{background:#FCE8A6;border-color:#E7C867;color:#393733}
.chatter-toggle[aria-pressed=true] strong{background:#393733;color:#FCE8A6}
.chatter-desc{font-size:11.5px;color:var(--dash-muted)}
.chatter-bubble{position:absolute;bottom:104%;left:50%;transform:translateX(-50%);white-space:nowrap;max-width:165px;overflow:hidden;text-overflow:ellipsis;background:#FFFDF8;border:1px solid #DFD3B4;border-radius:999px;padding:3px 8px;font-size:clamp(6px,1.2cqw,10.5px);font-weight:600;color:#393733;box-shadow:0 2px 6px rgba(57,55,51,.12);z-index:35;pointer-events:none}
body.chatter-off .chatter-bubble{display:none}
@media(max-width:370px){.office-reference .mobile-dash-header h1{font-size:20px}.mobile-office-v2 .dash-mascot{width:28px;height:30px}}
