/* Approved shared panels. Cash and S.U.P. retain their bars; the day clock sits in the blue header. */
.agency-shell.agency-panels .shell-office-tools{display:grid;grid-template-columns:repeat(3,1fr);gap:0;width:354px;max-width:calc(100% - 48px);background:var(--paper);border:1px solid var(--blue);box-shadow:var(--control-shadow)}
.agency-shell.agency-panels .shell-office-tools .button{min-height:48px;height:48px;min-width:0;padding:0 14px;gap:8px;justify-content:center;font-size:14px;border:0;box-shadow:none;background:transparent;transform:none}
.agency-shell.agency-panels .shell-office-tools .button+.button{border-left:1px solid var(--line)}
.agency-shell.agency-panels .shell-office-tools .button:hover:enabled{background:#e9eefb;color:var(--blue)}
.agency-shell.agency-panels .shell-office-tools .button[aria-expanded=true]{background:var(--blue);color:var(--paper)}
.agency-shell.agency-panels .shell-office-tools .button:focus-visible{position:relative;z-index:1;outline-offset:-4px}
.agency-shell.agency-panels .shell-office-tools svg{width:18px;height:18px;flex:none}
.agency-shell.agency-panels .shell-context{width:354px;box-shadow:var(--control-shadow)}
.agency-shell.agency-panels .shell-context-heading{padding:12px 16px;min-height:48px}
.agency-shell.agency-panels .shell-context-heading h2{font-size:16px}
.agency-shell.agency-panels .shell-context-heading button{width:44px;height:44px;margin:-8px -8px -8px 0}
.agency-shell.agency-panels .shell-office-card{padding:16px}
.agency-shell.agency-panels .shell-office-card h3{font:400 28px/1.15 larken,Georgia,serif;letter-spacing:-.03em;margin:0 0 8px}
.agency-shell.agency-panels .shell-office-status{font-size:14px;margin:0 0 12px}
.agency-shell.agency-panels .shell-office-benefit{font-size:14px;line-height:1.45;color:var(--muted);margin:0 0 16px}
.agency-shell.agency-panels .shell-office-card .button{width:100%;min-height:48px;border:1px solid var(--blue);box-shadow:var(--control-shadow);text-align:left;justify-content:space-between}
.agency-shell.agency-panels .shell-office-card .button:hover:enabled{background:var(--blue);color:var(--paper)}
.agency-shell.agency-panels .shell-office-card .button:disabled{border-color:var(--line);box-shadow:none}
.agency-shell.agency-panels .shell-rooms-note{font-size:13px;line-height:1.45;padding:0 16px 16px;color:var(--muted)}
.agency-shell.agency-panels .board-toggle{padding:0 16px;box-shadow:3px 0 0 var(--blue)}
.agency-shell.agency-panels .board{box-shadow:var(--control-shadow)}
.agency-shell.agency-panels .account-heading{padding:16px;min-height:80px;gap:12px}
.agency-shell.agency-panels .account-content{padding:0 16px 16px}
.agency-shell.agency-panels .client-product{width:48px;height:44px;flex:none}
.agency-shell.agency-panels .client-identity h3{font-size:28px}
.agency-shell.agency-panels .account-content>.agency-work-stage{margin:0 0 12px}
.agency-shell.agency-panels .agency-work-stage .agency-work-stage__header{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;margin:0}
.agency-shell.agency-panels .agency-work-stage:is([data-kind=working],[data-kind=assignment]) .agency-work-stage__header:has(.agency-work-stage__lanes[hidden]){display:grid}
.agency-shell.agency-panels .agency-work-stage__header h4{font-size:14px;line-height:1.4;font-weight:500}
.agency-shell.agency-panels .agency-work-stage__toggle{min-height:44px;padding:6px 0 6px 8px;font:inherit;font-size:13px;color:var(--blue);border:0;background:transparent;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.agency-shell.agency-panels .agency-work-stage__toggle:hover{color:var(--ink)}
.agency-shell.agency-panels .agency-work-stage__lanes{grid-column:1/-1;display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:0;padding:0;border:1px solid var(--line);margin-bottom:4px}
.agency-shell.agency-panels .agency-work-stage__lanes button{min-height:44px;font-size:13px;padding:8px}
.agency-shell.agency-panels .agency-work-stage__lanes button+button{border-left:1px solid var(--line)}
.agency-shell.agency-panels .agency-work-stage__lanes button[aria-pressed=true]{background:var(--blue);color:var(--paper)}
.agency-shell.agency-panels .agency-work-stage__frame{margin-top:8px}
.agency-shell.agency-panels .agency-work-stage:is([data-kind=routine],[data-kind=review]) .agency-work-stage__caption{display:block}
.agency-shell.agency-panels .agency-work-stage:is([data-kind=routine],[data-kind=review]) .agency-work-stage__status{display:block}
.agency-shell.agency-panels .account-content:has(.agency-work-stage:not([hidden])) .job-copy p{display:block;font-size:12px;line-height:1.4;margin:4px 0 0;color:var(--muted)}
.agency-shell.agency-panels .agency-work-stage[data-kind=assisted] .agency-work-stage__caption{display:none}
.agency-shell.agency-panels .account-content>.account-actions,.agency-shell.agency-panels .assignments{gap:12px;margin-top:8px}
.agency-shell.agency-panels .assign-row>.button,.agency-shell.agency-panels .job-line>.button,.agency-shell.agency-panels .handoff-actions .button,.agency-shell.agency-panels .account-actions>.button{min-height:48px;border:1px solid var(--blue);box-shadow:var(--control-shadow)}
.agency-shell.agency-panels .assign-row>.button:disabled,.agency-shell.agency-panels .job-line>.button:disabled,.agency-shell.agency-panels .handoff-actions .button:disabled,.agency-shell.agency-panels .account-actions>.button:disabled{border-color:var(--line);box-shadow:none}
.agency-shell.agency-panels .assign-row>.button:hover:enabled,.agency-shell.agency-panels .job-line>.button:hover:enabled,.agency-shell.agency-panels .handoff-actions .button:hover:enabled,.agency-shell.agency-panels .account-actions>.button:hover:enabled{border-color:var(--blue);background:var(--blue);color:var(--paper)}
.agency-shell.agency-panels .account-content>.job-line{padding-bottom:3px}
.agency-shell.agency-panels .office-caption{bottom:90px;max-width:min(354px,calc(100% - var(--shell-board) - 64px))}
.agency-shell.agency-panels .play-grid[data-tool-panel]:not([data-tool-panel=""]) .office-caption{visibility:hidden}
@media(max-width:760px){
 .agency-shell.agency-panels .shell-office-tools{width:auto;max-width:none;left:12px;right:15px;bottom:max(12px,env(safe-area-inset-bottom))}
 .agency-shell.agency-panels .shell-office-tools .button,.agency-shell.agency-panels .shell-office-tools [data-shell-panel=rooms]{padding:0 8px;font-size:14px;gap:7px}
 .agency-shell.agency-panels .shell-context{width:auto;inset:auto 15px calc(74px + env(safe-area-inset-bottom)) 12px;max-height:calc(100dvh - 152px)}
 .agency-shell.agency-panels .play-grid[data-tool-panel]:not([data-tool-panel=""])>.board,.agency-shell.agency-panels .play-grid[data-tool-panel]:not([data-tool-panel=""])>.board-toggle{display:none}
 .agency-shell.agency-panels .office-caption{inset:auto;max-width:none}
 .agency-shell.agency-panels .account-heading{padding:14px 16px;min-height:76px}
 .agency-shell.agency-panels .client-identity h3{font-size:26px}
 .agency-shell.agency-panels .agency-work-stage__toggle{min-height:44px}
}

/* The connected pitch has its own compact phone grid; retain that grid and HUD,
   but expose the same three tools and put the work heading above its actions. */
.agency-shell.agency-panels.connected-pitch-slice .account-content>.agency-work-stage{order:1;margin:0 0 12px}
.agency-shell.agency-panels.connected-pitch-slice .account-content>.cp-lane{order:2}
.agency-shell.agency-panels.connected-pitch-slice .account-content>.assignments,
.agency-shell.agency-panels.connected-pitch-slice .account-content>.job-line,
.agency-shell.agency-panels.connected-pitch-slice .account-content>.account-actions{order:3}
@media(max-width:760px),(max-height:540px){
 .agency-shell.agency-panels.connected-pitch-slice .shell-office-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;width:100%;max-width:none}
 .agency-shell.agency-panels.connected-pitch-slice .shell-office-tools [data-shell-panel=rooms]{display:flex}
 .agency-shell.agency-panels.connected-pitch-slice .shell-office-tools .button{height:46px;min-height:46px;padding:0 8px}
 .agency-shell.agency-panels.connected-pitch-slice .play-grid[data-tool-panel]:not([data-tool-panel=""])>.board,
 .agency-shell.agency-panels.connected-pitch-slice .play-grid[data-tool-panel]:not([data-tool-panel=""])>.board-toggle{display:none}
}

/* The staffed journey owns its purchase; legacy extra-desk buttons would imply
   the old staffing rule and duplicate the price. Keep them in the legacy game. */
.agency-shell.agency-panels #shell-rooms[data-staffed=true]>.grow{display:none}
.agency-shell.agency-panels .agency-work-stage__progress{display:block;width:100%;margin:8px 0 4px}

/* Research notes keep a single divider, without a second empty framed section. */
.agency-shell.agency-panels.connected-pitch-slice .cp-lane{border:0;padding:0;margin:0}

/* Owner refinement: day/time in the blue band, no redundant full-charge label. */
.agency-shell.agency-panels .agency-bar{position:relative}
.agency-shell.agency-panels .agency-bar .shell-header-clock{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;align-items:center;justify-content:center;min-height:0;min-width:0;width:auto;height:auto;padding:0;margin:0;gap:0;border:0;background:transparent;color:var(--paper);box-shadow:none;white-space:nowrap;pointer-events:none}
.agency-shell.agency-panels .agency-bar .shell-header-clock>div{display:flex;align-items:baseline;gap:12px}
.agency-shell.agency-panels .agency-bar .shell-header-clock #day-phase{font-size:14px;color:inherit}
.agency-shell.agency-panels .agency-bar .shell-header-clock p{margin:0;font-size:13px;color:inherit}
.agency-shell.agency-panels .agency-bar .shell-header-clock strong{font-size:17px;font-weight:500;font-variant-numeric:tabular-nums;color:inherit}
.agency-shell.agency-panels .agency-bar .shell-header-clock p span{font-size:12px;color:inherit}
.agency-shell.agency-panels .agency-bar .shell-header-clock [data-resource-icon]{display:none}
.agency-shell.agency-panels #charge-recharge:empty{visibility:hidden}
@media(max-width:640px){
 .agency-shell.agency-panels .simulation>.agency-bar{height:74px;min-height:74px;display:flex;flex-wrap:wrap;align-content:start;gap:0 8px}
 .agency-shell.agency-panels .agency-bar .agency-wordmark{flex:1;min-width:0;height:44px;display:flex;align-items:center}
 .agency-shell.agency-panels .agency-bar .controls{height:44px;align-items:center}
 .agency-shell.agency-panels .agency-bar .shell-header-clock{position:static;transform:none;order:3;flex:0 0 100%;height:30px;width:100%;padding-bottom:6px}
 .agency-shell.agency-panels .agency-bar .shell-header-clock #day-phase{font-size:12px}
 .agency-shell.agency-panels .agency-bar .shell-header-clock strong{font-size:15px}
 .agency-shell.agency-panels .simulation>.play-grid:not([data-shift-phase=intro]){height:calc(100dvh - 74px);min-height:0}
 .agency-shell.agency-panels .simulation>.play-grid[data-shift-phase=intro]:has(#opening:not([data-day="1"])){height:calc(100dvh - 74px);min-height:0}
 .agency-shell.agency-panels .simulation:has(.play-grid[data-shift-phase=intro] #opening[data-day="1"])>.agency-bar{display:none}
}
