/* The Agency: rich live office under quiet cream stationery.
   Accepted brand tokens: cream #fff8e5, blue #0055ff, square 5px panel /
   3px control offsets. Inner images, rows and progress tracks stay flat. */
@font-face{font-family:AgencyOnion;src:url("https://media.curiousendeavor.com/the-agency/play/five-day-curious-desktop-20261113-2/two-tier-office/agency-live/design/agency-composition-20261008/assets/fonts/onion-sans.woff2") format('woff2');font-style:normal;font-weight:300 900;font-display:swap}
.agency-shell{--shell-board:350px;--paper:#fff8e5;--blue:#0055ff;--ink:#263958;--muted:#626b76;--line:#d4d2c8;--corner:0;--shadow:5px 5px 0 var(--blue);--control-shadow:3px 3px 0 var(--blue);font-family:AgencyOnion,Arial,sans-serif;font-synthesis:none}
.agency-shell .simulation{min-height:580px;background:var(--paper)}
.agency-shell .paper{border-color:var(--blue);border-radius:0;box-shadow:var(--shadow)}
.agency-shell button,.agency-shell input,.agency-shell select{font-family:inherit}
.agency-shell :focus-visible{outline:3px solid #dfa544;outline-offset:4px}
.agency-shell .button{font-size:14px;min-height:40px;padding:8px 12px;border-radius:0;border-color:transparent;color:var(--blue);box-shadow:none;font-weight:400}
.agency-shell .button:hover:enabled{background:#e9eefb;color:var(--blue);border-color:transparent}
.agency-shell .button-primary,.agency-shell .assignments .button,.agency-shell .job-line>.button,.agency-shell .handoff-actions .button:first-child{background:var(--paper);color:var(--blue);border-color:transparent;box-shadow:var(--control-shadow)}
.agency-shell .button-primary:hover:enabled,.agency-shell .assignments .button:hover:enabled,.agency-shell .job-line>.button:hover:enabled{background:var(--blue);color:var(--paper)}
.agency-shell .button:active:enabled{transform:translate(2px,2px)}
.agency-shell .button-primary:active:enabled,.agency-shell .assignments .button:active:enabled,.agency-shell .job-line>.button:active:enabled{box-shadow:1px 1px 0 var(--blue)}
.agency-shell .button:disabled{color:var(--muted);background:#f3ecd8;border-color:transparent;box-shadow:none}
.agency-shell .button-primary>span,.agency-shell .pocket-actions .button-primary>span{color:inherit}
.agency-shell .agency-bar{height:44px;padding:0 24px;gap:12px}
.agency-shell .agency-wordmark{gap:16px}.agency-shell .agency-wordmark h1{font:400 25px/1 larken,Georgia,serif;letter-spacing:-.04em}.agency-shell .agency-wordmark>span{display:none}
.agency-shell .play-grid{height:calc(100% - 44px)}
@media(min-width:761px){.agency-shell .stage{position:absolute;inset:0;width:100%;height:100%;aspect-ratio:auto;transform:none}}
.agency-shell #start{display:none}.agency-shell .controls{gap:8px}
.agency-shell .agency-bar .button,.agency-menu>summary{min-height:38px;padding:7px 10px;border:0;border-radius:0;font-size:14px;color:var(--paper);background:transparent;box-shadow:none}
.agency-shell .agency-bar .button:hover:enabled,.agency-menu>summary:hover{background:#ffffff18;color:var(--paper)}
.agency-menu{position:relative}.agency-menu>summary{display:flex;align-items:center;justify-content:center;list-style:none;cursor:pointer}.agency-menu>summary::-webkit-details-marker{display:none}
.agency-menu[open]>summary{background:#ffffff26}
.agency-menu__items{max-height:var(--menu-height,calc(100dvh - 64px));overflow-y:auto;overscroll-behavior:contain;position:absolute;z-index:50;right:0;top:calc(100% + 9px);width:228px;padding:8px;display:grid;gap:2px;background:var(--paper);color:var(--ink);border:1px solid var(--blue);border-radius:0;box-shadow:var(--shadow)}
.agency-menu:not([open]) .agency-menu__items{display:none}
.agency-shell .agency-menu__items .button{width:100%;justify-content:flex-start;text-align:left;border:0;color:var(--ink);background:transparent;min-height:42px}
.agency-shell .agency-menu__items .button:hover:enabled{background:#e9eefb;color:var(--blue)}
/* One resource group, one floating day clock. */
.agency-shell .charge-recharge{display:block;margin-top:4px;font-size:11px;line-height:1.25;color:var(--muted);white-space:nowrap;min-height:14px}
.agency-shell .hud{top:20px;left:24px;right:calc(var(--shell-board) + 50px);gap:20px;align-items:stretch}
.agency-shell .resources{padding:12px 15px;gap:22px;min-height:68px}
.agency-shell .resource{gap:10px}.agency-shell .resource>div{width:116px}.agency-shell .resource p{font-size:13px;margin:0 0 6px;gap:8px;white-space:nowrap}.agency-shell .resource strong{font-size:18px}
.agency-shell .resource [data-resource-icon],.agency-shell .charge-icon{width:25px;height:25px}.agency-shell .resource>span{display:block!important}
.agency-shell progress{height:5px}.agency-shell .shift-clock{padding:12px 15px;gap:10px}.agency-shell .shift-clock [data-resource-icon]{display:none}.agency-shell .shift-clock span{font-size:12px}.agency-shell .shift-clock p{font-size:13px;margin:0}.agency-shell .shift-clock p strong{font-size:19px}.agency-shell .shift-clock p span{font-size:12px}
.agency-shell .agency-live__place{display:none}
/* Work is a single file: real independent room art and native choices. */
.agency-shell .board-toggle{top:20px;right:24px;width:var(--shell-board);max-width:var(--shell-board);gap:8px;padding:0 13px;height:42px;background:var(--paper);border:1px solid var(--blue);box-shadow:5px 0 0 var(--blue);z-index:13}
.shell-board-title{font-size:13px;margin-right:auto;white-space:nowrap;color:var(--ink)}
.agency-shell .board-toggle .button{padding:4px 3px;min-height:34px;border:0;background:transparent;box-shadow:none;font-size:13px}
.agency-shell .board-toggle:has(#work-toggle[aria-expanded=false]){box-shadow:var(--shadow)}
.agency-shell .board{top:61px;right:24px;bottom:auto;max-height:calc(100% - 81px);width:var(--shell-board);padding:0 0 5px;border:1px solid var(--blue);border-top:0;background:var(--paper);box-shadow:var(--shadow);scroll-padding-top:8px;scrollbar-width:thin}
.agency-shell .board:has(#cards:empty){background:var(--paper)}
.agency-shell .account{margin:0;border:0;border-radius:0;box-shadow:none;background:var(--paper)}
.agency-shell .account+.account{border-top:1px solid var(--line)}
.agency-shell .account-heading{min-height:100px;padding:18px;gap:14px}
.agency-shell .client-product{width:75px;height:57px}.agency-shell .client-product img{image-rendering:auto}
.agency-shell .client-identity h3{font:400 31px/1.08 larken,Georgia,serif;letter-spacing:-.04em;margin:0 0 5px}
.agency-shell .client-project{font-size:13px;line-height:1.3}.agency-shell .deadline{font-size:12px;margin-top:6px;gap:0 5px;flex-wrap:wrap}
.agency-shell .account-caret{font-size:20px}.agency-shell .account-content{padding:0 18px 18px}
.agency-shell .account[data-expanded=false] .account-heading{min-height:82px;padding:12px 18px;gap:12px}
.agency-shell .account[data-expanded=false] .client-product{width:52px;height:42px}.agency-shell .account[data-expanded=false] .client-identity h3{font:400 24px/1.1 larken,Georgia,serif;letter-spacing:-.035em}.agency-shell .account[data-expanded=false] .client-summary{font-size:13px;margin-top:3px}
.agency-shell .process{padding:0;margin-bottom:12px;gap:10px;border:0}
.agency-shell .process-stage{border-top:3px solid #d7d9d4;padding-top:7px;font-size:13px;gap:4px;line-height:18px}
.agency-shell .process-stage:not(:last-child)::after{display:none}.agency-shell .process-stage.current{border-color:var(--blue)}.agency-shell .process-stage.complete{border-color:#69788b;color:var(--ink)}.agency-shell .stage-number{font-size:11px;font-style:normal;font-weight:400}
.agency-shell .agency-work-stage{margin-bottom:10px}.agency-shell .agency-work-stage__header{min-height:24px;margin-bottom:6px;gap:4px}.agency-shell .agency-work-stage__header h4{font-size:13px;font-weight:500}
.agency-shell .agency-work-stage__lanes,.agency-shell .agency-work-stage__lanes button{border-radius:0}.agency-shell .agency-work-stage__lanes button{font-size:12px;min-height:32px;padding:4px 7px}
.agency-shell .agency-work-stage__frame{border:0;border-radius:0}.agency-shell .agency-work-stage__caption{padding:6px 0 0}.agency-shell .agency-work-stage__caption p{font-size:12px;line-height:1.4}.agency-shell .agency-work-stage__status{display:none}
.agency-shell .agency-work-stage__loading,.agency-shell .agency-work-stage__loading button,.agency-shell .agency-work-stage__travellers>span{border-radius:0}
.agency-shell .account-content:has(.agency-work-stage:not([hidden]))>.stage-title{display:none}
.agency-shell .account-content>p{font-size:13px;line-height:1.4;margin:10px 0}
.agency-shell .account-actions{gap:9px;margin-top:10px}.agency-shell .account-actions .button{min-height:42px;font-size:14px;padding:8px 10px}.agency-shell .account-actions .button>span{font-size:12px;color:inherit}
.agency-shell .assignments{grid-template-columns:1fr;gap:9px;padding-right:3px;padding-bottom:3px}.agency-shell .assign-row{position:relative;display:block}.agency-shell .assign-row>.assignment-avatar{position:absolute;left:10px;top:50%;transform:translateY(-50%);width:26px;height:36px;pointer-events:none;z-index:1}.agency-shell .assign-row>.button{display:flex;justify-content:space-between;align-items:center;flex-wrap:nowrap;min-height:49px;padding:10px 10px 10px 45px;text-align:left;line-height:1.35;gap:8px}.agency-shell .assign-row>.button>span{display:block;width:auto;flex:none;font-size:12px;margin:0;color:inherit;text-align:right;max-width:40%}.agency-shell .assign-row>.button strong{font-size:14px}
.agency-shell .job-line{padding-top:10px;margin-top:10px;grid-template-columns:32px minmax(0,1fr) auto;column-gap:8px}.agency-shell .job-avatar{width:32px;height:38px}.agency-shell .job-copy strong{font-size:14px}.agency-shell .job-copy p{font-size:12px}.agency-shell .account-content:has(.agency-work-stage:not([hidden])) .job-copy p{display:none}.agency-shell .job-line>.button{font-size:13px;padding:7px 9px;min-height:38px}.agency-shell .job-line progress{margin-top:8px}.agency-shell .receipt-complete{font-size:13px}
.agency-shell .incident{padding:15px 18px;border:0;border-bottom:1px solid var(--line);box-shadow:none}.agency-shell .board>.incident{margin:0;background:#f3ecd8}.agency-shell .incident header{gap:10px}.agency-shell .incident h2{font-size:16px;margin:0 0 3px}.agency-shell .board>.incident p{font-size:13px;margin:8px 0}.agency-shell .board>.incident .incident-stamp{width:30px;height:34px}.agency-shell .board>.incident .button{min-height:40px;font-size:13px}.agency-shell .incident #incident-time{font-size:12px}.agency-shell .incident .account-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.agency-shell .incident .account-actions .button>span{font-size:12px}
.agency-shell .first-day-guide{font-size:13px;line-height:1.4;margin:0;padding:12px 18px;background:#f3ecd8;color:var(--ink);border:0;border-bottom:1px solid var(--line);border-radius:0}
.agency-shell .settled{font-size:13px;padding:10px 18px;margin:0;border:0;border-top:1px solid var(--line);border-radius:0}.agency-shell .settled summary{min-height:32px;display:flex;align-items:center}
.agency-shell #handoff-tray{border:0;border-bottom:1px solid var(--line);border-radius:0;box-shadow:none;margin:0;padding:14px 18px}.agency-shell #handoff-tray>h2{font-size:16px;font-weight:500}
/* Actions precede the picture: parallel work never buries the second choice.
   Original DOM/action listeners and the independent room canvas stay intact. */
.agency-shell .account-content{display:flex;flex-direction:column}
.agency-shell .account-content>.process{order:0}
.agency-shell .account-content>.stage-title,.agency-shell .account-content>p{order:1}
.agency-shell .account-content>.job-line,.agency-shell .account-content>.account-handoffs,.agency-shell .account-content>.account-actions{order:2}
.agency-shell .account-content>.agency-work-stage{order:3;margin-top:12px;margin-bottom:0}
.agency-shell .job-line>.button{max-width:none;min-height:38px}
.agency-shell .sup-line .job-copy strong{color:var(--blue)}
.agency-shell .resource[data-sup-resource]{position:relative}
.shell-sup-view{position:absolute;inset:-8px;display:block;border:0;padding:0;border-radius:0;background:transparent;color:var(--blue);cursor:pointer}
.shell-sup-view:hover{background:#0055ff09}
.shell-sup-view:focus-visible{outline:2px solid var(--blue);outline-offset:0}
/* One contextual drawer. Its children remain native, focusable game controls. */
.shell-office-tools{position:absolute;left:24px;bottom:24px;z-index:20;display:flex;gap:10px}
.agency-shell .shell-office-tools .button{min-height:44px;padding:10px 15px;gap:9px;font-size:15px;box-shadow:var(--control-shadow)}
.shell-expand-label{display:block;text-align:left}.shell-expand-label small{display:block;font-size:11px;line-height:1.25;color:var(--muted);margin-top:2px}.agency-shell .shell-office-tools .button[aria-expanded=true] small{color:var(--paper)}.agency-shell .shell-office-tools [data-shell-panel=rooms][data-affordable=true]{border-color:transparent}.shell-office-tools svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linejoin:miter;stroke-linecap:square}
.agency-shell .shell-office-tools .button[aria-expanded=true]{color:var(--paper);background:var(--blue)}
.shell-context{position:absolute;left:24px;bottom:84px;z-index:21;width:354px;max-height:calc(100% - 195px);overflow:auto}
.shell-context-heading{position:sticky;top:0;z-index:2;background:var(--paper);display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-bottom:1px solid var(--line)}
.shell-context-heading h2{font-size:18px;line-height:1.3;margin:0;font-weight:500}.shell-context-heading button{border:0;border-radius:0;background:none;color:var(--muted);font-size:24px;min-height:44px;min-width:44px;flex-shrink:0;cursor:pointer}
.agency-shell .shell-context .team-dock{position:static;inset:auto;width:auto;max-width:none;padding:8px 12px 14px;margin:0;border:0;box-shadow:none}
.agency-shell .roster{grid-template-columns:1fr 1fr;gap:4px}.agency-shell .person{min-height:56px;padding:6px;gap:8px;border-radius:0}.agency-shell .person-portrait{width:34px;height:40px}.agency-shell .person strong{font-size:14px}.agency-shell .person-place{font-size:12px;line-height:1.3;max-width:104px}.agency-shell .staff-care{gap:9px;flex-wrap:wrap;margin-top:10px;padding-top:12px}.agency-shell .staff-care p{flex:1 1 100%;font-size:13px;max-width:none;line-height:1.4}.agency-shell .staff-care .selected-activity{font-size:14px}.agency-shell .staff-care .selected-summary{font-size:12px}.agency-shell .staff-care .button{flex:1;min-height:40px;font-size:13px;padding:7px 10px}
.agency-shell .shell-context .grow{position:static;inset:auto;width:auto;max-width:none;margin:0;border:0;box-shadow:none}.agency-shell .grow-toggle{display:none;min-height:44px;padding:12px 16px;font-size:14px}.agency-shell .grow-toggle span:nth-child(2){font-size:12px}.agency-shell #grow-detail{padding:12px 16px 16px}.shell-rooms-note{font-size:14px;line-height:1.5;margin:0;padding:16px}.agency-shell #grow-note{font-size:13px;line-height:1.45;margin:4px 0 12px}.agency-shell .annex-choices{display:grid;gap:8px}.agency-shell .annex-choices .button{width:100%;display:block;text-align:left;min-height:52px}.agency-shell .annex-choices .button strong,.agency-shell .annex-choices .button span{display:block;font-size:13px}.agency-shell .annex-choices .button span{color:var(--muted);margin-top:4px}
.agency-shell .shell-context .agency-live__navigation{position:static;inset:auto;max-width:none;margin:0;padding:12px;display:flex;flex-wrap:wrap;gap:6px;border:0;box-shadow:none;border-radius:0}.agency-shell .agency-live__navigation button{font-size:14px;min-height:40px;padding:7px 10px;border-radius:0}.agency-shell .agency-live__navigation output{font-family:inherit;font-size:13px}
.agency-shell .agency-live__person{font-family:inherit;font-size:12px;min-height:30px;padding:5px 7px;max-width:155px;white-space:normal;border-radius:0;border-color:var(--blue);background:var(--paper);box-shadow:2px 2px 0 var(--blue)}.agency-shell .agency-live__person[aria-pressed=true]{background:var(--blue);color:var(--paper)}.agency-shell .agency-live__activity{font-size:11px}.agency-shell .agency-live__bubble{border:1px solid var(--blue);border-radius:0;box-shadow:var(--control-shadow);background:var(--paper);font-family:inherit}.agency-shell .agency-live__bubble::after{border-top-color:var(--paper)}
.agency-shell .office-caption{position:absolute;left:24px;right:auto;bottom:84px;max-width:min(480px,calc(100% - var(--shell-board) - 64px));min-height:0;padding:0;background:transparent;border:0;pointer-events:none;z-index:19}
.agency-shell .cue-line{display:none}.agency-shell .toast:empty{display:none}.agency-shell .toast{max-width:none;padding:10px 13px;background:var(--paper);border:1px solid var(--blue);border-radius:0;font-size:13px;line-height:1.4;box-shadow:var(--control-shadow)}.agency-shell .office-caption[data-quiet=true]{visibility:hidden}
.agency-shell .agency-focus{top:106px;left:24px;width:min(470px,calc(100% - var(--shell-board) - 64px));max-height:calc(100% - 210px);border-radius:0;box-shadow:var(--shadow);border-color:var(--blue)}.agency-shell .agency-focus button,.agency-shell .agency-focus__loading{border-radius:0}
.agency-shell .agency-moments{top:106px;left:24px;right:auto;width:310px;max-width:calc(100% - var(--shell-board) - 64px)}.agency-shell .agency-moments__card{padding:12px 34px 12px 12px;gap:10px;grid-template-columns:48px 1fr;min-height:86px;border-radius:0;box-shadow:var(--shadow);border-color:var(--blue);background:var(--paper)}.agency-shell .agency-moments__picture{width:48px;height:54px}.agency-shell .agency-moments__copy h2{font-size:16px}.agency-shell .agency-moments__body,.agency-shell .agency-moments__detail,.agency-shell .agency-moments__eyebrow{font-size:12px}
/* Accepted opening: independent Reception artwork, held only on the title. */
.agency-shell .simulation:has(.play-grid[data-shift-phase=intro])>.agency-bar{display:none}
.agency-shell .play-grid[data-shift-phase=intro]{height:100%;min-height:100svh}
.agency-shell .play-grid[data-shift-phase=intro] .hud,.agency-shell .play-grid[data-shift-phase=intro] .shell-office-tools,.agency-shell .play-grid[data-shift-phase=intro] .agency-live__people,.agency-shell .play-grid[data-shift-phase=intro] .office-caption,.agency-shell .play-grid[data-shift-phase=intro] .board,.agency-shell .play-grid[data-shift-phase=intro] .board-toggle,.agency-shell .play-grid[data-shift-phase=intro] .agency-moments{visibility:hidden}
.agency-shell .opening{position:absolute;inset:0;transform:none;width:100%;height:100%;padding:0;background:#20343c;color:white;border:0;box-shadow:none;border-radius:0;z-index:25;overflow:hidden}
.opening-art{position:absolute;left:50%;top:50%;width:1600px;height:900px;transform:translate(-50%,-50%);transform-origin:center}.opening-art>img{display:block;width:1600px;height:900px}.opening-bubble{position:absolute;left:585px;top:245px;transform:translateX(-50%);padding:13px 19px;background:#fff;color:var(--blue);font-size:17px;line-height:1.45;border-radius:2px;white-space:nowrap}.opening-bubble::after{content:'';position:absolute;width:13px;height:13px;background:#fff;bottom:-6px;left:calc(50% - 6px);transform:rotate(45deg)}
.opening-signature{position:absolute;left:3.875%;top:5.11%;line-height:1.4}.opening-signature b{display:block;font:400 30px/1.12 larken,Georgia,serif;letter-spacing:-.04em}.opening-signature>span{display:block;font-size:12px;line-height:1.4;letter-spacing:.12em;margin-top:10px;text-transform:uppercase}
.opening-lockup{position:absolute;right:3.875%;top:31.44%;width:34.875%;max-width:600px}
.agency-shell .opening h2{font-family:larken,Georgia,serif;font-size:112px;line-height:1.12;letter-spacing:-.04em;margin:0 0 24px;font-weight:400;font-style:normal;white-space:nowrap}
.agency-shell .opening .title-small{display:block;font-size:clamp(38px,3.25vw,62px);line-height:1.1;letter-spacing:-.035em;margin-bottom:1px}
.agency-shell .opening .title-large{display:block;font-size:clamp(98px,9.75vw,180px);line-height:1.04;letter-spacing:-.04em}
.agency-shell .opening .title-day{display:block;font-size:clamp(56px,5.8vw,100px);line-height:1.1;letter-spacing:-.04em}
.agency-shell .opening #opening-copy{font-size:clamp(16px,1.32vw,23px);line-height:1.45;letter-spacing:0;font-weight:400;margin:0 0 34px;max-width:32ch;color:#fff}
.agency-shell .opening-actions{display:flex;flex-wrap:wrap;gap:16px}
.agency-shell .opening .button{min-height:56px;min-width:219px;width:auto;display:inline-flex;justify-content:space-between;align-items:center;gap:30px;background:var(--blue);color:#fff;border:1px solid var(--blue);border-radius:0;box-shadow:5px 5px 0 #fff;font-size:18px;padding:0 24px}
.agency-shell .opening .button:hover:enabled{background:#0047d6;color:#fff;border-color:#0047d6;box-shadow:5px 5px 0 #fff}.agency-shell .opening .button:active:enabled{transform:translate(3px,3px);box-shadow:2px 2px 0 #fff}.agency-shell .opening .button>span{font-size:23px;line-height:1;color:inherit}
.agency-shell .opening .button:focus-visible{outline:2px solid #fff;outline-offset:6px}
.agency-shell .opening[data-resumable=true] [data-start-shift]{min-width:0;order:2;background:transparent;box-shadow:none;border-color:#ffffff88;font-size:15px}
.week-ribbon{display:flex;gap:8px;padding:0;list-style:none;margin:0 0 22px;color:#fff;max-width:360px}.week-ribbon li{font-size:13px;flex:1;padding:8px 4px;border-top:3px solid #ffffff60;text-align:center}.week-ribbon li[aria-current=step]{border-color:#fff;font-weight:600}.week-ribbon li[data-complete=true]{border-color:#96b7ec;color:#ccdffa}
.agency-shell .opening .opening-note{font-size:13px;max-width:42ch;line-height:1.5;margin:20px 0 0;color:#fff}
.agency-shell .opening[data-day="1"] .week-ribbon{display:none}
.opening-foot{position:absolute;bottom:4.78%;left:3.875%;right:3.875%;display:flex;justify-content:space-between;gap:24px;align-items:center;font-size:13px;line-height:1.45}.opening-brand{font-size:13px;color:inherit}
/* Results and confirmation share the same paper language. */
.agency-shell .play-grid>#ending:not([hidden]),.agency-confirm{border:1px solid var(--blue);border-radius:0;background:var(--paper);box-shadow:var(--shadow);color:var(--ink)}
.agency-shell .play-grid>#ending:not([hidden]){width:min(920px,calc(100% - 48px));max-height:calc(100dvh - 90px);overflow:auto;padding:28px}
.agency-shell #ending h2,.agency-confirm h2{font:400 34px/1.1 larken,Georgia,serif;letter-spacing:-.04em}.agency-shell #ending p{font-size:14px}.agency-shell #ending .ending-actions{gap:12px}.agency-shell #ending .ending-actions .button{font-size:14px;min-height:44px}
.agency-confirm{width:min(430px,calc(100% - 40px));padding:24px}.agency-confirm::backdrop{background:#15263b80}.agency-confirm h2{margin:0 0 12px;font-size:30px}.agency-confirm p{font-size:14px;line-height:1.5}.agency-confirm form{display:flex;gap:10px;justify-content:flex-end;margin-top:22px}
.agency-shell .moment-card,.agency-shell .moment-receipt{border:1px solid var(--blue);border-radius:0;background:var(--paper);box-shadow:var(--shadow)}
.agency-shell .moment-result-title{font-family:larken,Georgia,serif;font-weight:400}.agency-shell .moment-result-art,.agency-shell .moment-result-close,.agency-shell .moment-result-continue{border-radius:0}.agency-shell .moment-result-continue{background:var(--paper);color:var(--blue);border-color:transparent;box-shadow:var(--control-shadow)}.agency-shell .moment-result-continue:hover{background:var(--blue);color:var(--paper)}
/* Tuesday and Wednesday are mornings in the same office, not another title. */
.agency-shell .opening:not([data-day="1"]){inset:auto;left:50%;top:50%;transform:translate(-50%,-50%);width:min(460px,calc(100% - 40px));height:auto;min-height:0;max-height:calc(100svh - 64px);overflow:auto;background:var(--paper);color:var(--ink);border:1px solid var(--blue);box-shadow:var(--shadow)}
.agency-shell .opening:not([data-day="1"]) .opening-art,.agency-shell .opening:not([data-day="1"]) .opening-signature,.agency-shell .opening:not([data-day="1"]) .opening-foot{display:none}
.agency-shell .opening:not([data-day="1"]) .opening-lockup{position:static;inset:auto;max-width:none;width:auto;padding:28px}
.agency-shell .opening:not([data-day="1"]) h2{margin:0 0 16px;white-space:normal}
.agency-shell .opening:not([data-day="1"]) .title-day{font-size:48px;line-height:1.08}
.agency-shell .opening:not([data-day="1"]) #opening-copy{font-size:16px;line-height:1.5;max-width:none;color:var(--ink);margin:0 0 20px}
.agency-shell .opening:not([data-day="1"]) .week-ribbon{max-width:none;margin:0 0 22px;color:var(--muted)}
.agency-shell .opening:not([data-day="1"]) .week-ribbon li{border-color:#d7d9d4}
.agency-shell .opening:not([data-day="1"]) .week-ribbon li[aria-current=step]{border-color:var(--blue);color:var(--blue)}
.agency-shell .opening:not([data-day="1"]) .week-ribbon li[data-complete=true]{border-color:#69788b;color:var(--ink)}
.agency-shell .opening:not([data-day="1"]) .button{background:var(--paper);color:var(--blue);box-shadow:var(--control-shadow);min-height:46px;font-size:16px;min-width:190px;padding:0 16px}
.agency-shell .opening:not([data-day="1"]) .button:hover:enabled{background:var(--blue);color:var(--paper);box-shadow:var(--control-shadow)}
.agency-shell .opening:not([data-day="1"]) .morning-expand{box-shadow:none;min-width:0;font-size:14px}.agency-shell .opening:not([data-day="1"]) .button:focus-visible{outline-color:#dfa544}
.agency-shell .opening:not([data-day="1"]) .opening-note{color:var(--muted);font-size:13px;line-height:1.5;max-width:none;margin:20px 0 0;white-space:pre-line}
.agency-shell .opening:not([data-day="1"])::before{display:none}
.agency-shell .simulation:has(.play-grid[data-shift-phase=intro] #opening:not([data-day="1"]))>.agency-bar{display:flex}
.agency-shell .play-grid[data-shift-phase=intro]:has(#opening:not([data-day="1"])){height:calc(100svh - 44px);min-height:0}
@media(min-width:761px) and (max-width:1280px){.agency-shell{--shell-board:326px}.agency-shell .hud{left:16px;gap:12px}.agency-shell .resources{padding:11px 12px;gap:16px}.agency-shell .resource>div{width:105px}.agency-shell .board,.agency-shell .board-toggle{right:16px}.agency-shell .shell-office-tools,.agency-shell .shell-context{left:16px}.agency-shell .client-identity h3{font-size:28px}.agency-shell .account-heading{padding:15px 16px;min-height:94px}.agency-shell .account-content{padding:0 16px 16px}.agency-shell .process{gap:7px}.agency-shell .process-stage{font-size:12px}}
@media(min-width:761px) and (max-width:1020px){.agency-shell{--shell-board:304px}.agency-shell .resource>div{width:92px}.agency-shell .resources{gap:12px}.agency-shell .resource{gap:6px}.agency-shell .resource [data-resource-icon],.agency-shell .charge-icon{width:20px;height:20px}.agency-shell .shift-clock{padding:10px}.agency-shell .resource p{font-size:12px}.agency-shell .client-product{width:58px}.agency-shell .client-identity h3{font-size:27px}.agency-shell .assign-row>.button{font-size:13px;padding-left:43px}.agency-shell .opening-lockup{width:43%;right:3%}}
@media(max-height:720px) and (min-width:761px){.agency-shell .opening-lockup{top:25%}.agency-shell .opening h2{margin-bottom:18px}.agency-shell .opening #opening-copy{margin-bottom:25px}.agency-shell .opening .button{min-height:48px;font-size:16px;min-width:195px}.agency-shell .opening .title-large{font-size:clamp(98px,9.4vw,145px)}.agency-shell .account-heading{min-height:84px;padding-block:12px}.agency-shell .agency-work-stage__frame{aspect-ratio:16/8}.agency-shell .first-day-guide{padding:9px 16px}.agency-shell .account-content>p{margin:8px 0}}
@media(max-width:760px){
 .agency-shell .simulation{height:auto;min-height:100svh;overflow:visible}.agency-shell .play-grid{height:auto;min-height:calc(100svh - 44px);padding:0 0 76px;display:flex;flex-direction:column}
 .agency-shell .agency-bar{height:44px;min-height:44px;padding:0 12px;flex-direction:row;align-items:center;justify-content:space-between;flex-wrap:nowrap;gap:8px}.agency-shell .agency-wordmark h1{font-size:22px}.agency-shell .controls{width:auto;flex-wrap:nowrap;gap:4px}.agency-shell .agency-bar .button,.agency-menu>summary{font-size:13px;padding:7px 8px}
 .agency-shell .hud{position:relative;inset:auto;margin:10px 12px 14px;gap:10px;order:0}.agency-shell .resources{flex:1;min-width:0;justify-content:space-between;gap:10px;padding:10px;min-height:64px}.agency-shell .resource{gap:5px}.agency-shell .resource>div{width:auto;min-width:66px}.agency-shell .resource [data-resource-icon],.agency-shell .charge-icon{width:20px;height:20px}.agency-shell .resource p{font-size:11px;gap:5px}.agency-shell .resource strong{font-size:16px}.agency-shell .shift-clock{padding:9px;min-width:88px}.agency-shell .shift-clock span{font-size:11px}.agency-shell .shift-clock p strong{font-size:18px}
 .agency-shell .stage-shell{height:56.25vw;order:1}.agency-shell .stage{width:100%}
 .agency-shell .board-toggle{position:relative;inset:auto;max-width:none;width:auto;margin:10px 12px 0;padding:0 12px;order:3;min-height:42px;flex-shrink:0}.agency-shell .board{position:relative;inset:auto;width:auto;max-height:none;padding:0 0 5px;margin:0 12px 12px;order:4;overflow:visible}
 .agency-shell .shell-office-tools{position:fixed;left:12px;right:12px;bottom:12px;justify-content:center;z-index:25}.agency-shell .shell-office-tools .button{flex:1;min-height:44px;padding:8px 10px;font-size:14px}.agency-shell .shell-context{position:fixed;inset:auto 12px 74px;width:auto;max-height:65svh;z-index:26}.agency-shell .shell-context .team-dock{position:static;inset:auto;margin:0;width:auto}.agency-shell .person{flex-direction:row;text-align:left}.agency-shell .person-place{display:block;max-width:110px}.agency-shell .person-portrait{width:34px;height:40px}
 .agency-shell .office-caption{position:relative;inset:auto;max-width:none;margin:10px 12px 0;order:2}.agency-shell .office-caption[data-quiet=true]{display:none}.agency-shell .agency-moments{position:relative;inset:auto;margin:10px 12px 0;width:auto;max-width:none;order:2}.agency-shell .agency-focus{position:fixed;top:auto;left:12px;right:12px;bottom:74px;width:auto;max-height:65svh;z-index:27}
 .agency-shell .agency-work-stage__frame{max-height:none;aspect-ratio:16/9}.agency-shell .agency-work-stage__frame canvas{height:100%;width:100%}.agency-shell .account-content{display:flex;flex-direction:column}.agency-shell .account-content>.process{order:0}.agency-shell .account-content>.assignments,.agency-shell .account-content>.job-line,.agency-shell .account-content>.account-handoffs{order:1}.agency-shell .account-content>.agency-work-stage{order:2;margin-top:12px}.agency-shell .account-content>.assignments{margin-top:2px;margin-bottom:0}.agency-shell .assign-row>.button{min-height:49px}
 .agency-shell .play-grid[data-shift-phase=intro]{height:100svh;min-height:620px;padding:0;overflow:hidden}.agency-shell .play-grid[data-shift-phase=intro]>.viewer{display:contents}.agency-shell .opening{position:absolute;inset:0;width:100%;height:100%;transform:none;min-height:620px}.agency-shell .opening::before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#0c202275,#0c20220a);z-index:1;pointer-events:none}.opening-art{left:44%}.opening-bubble{display:none}.opening-signature{left:24px;top:30px;z-index:2}.opening-signature b{font-size:25px}.opening-lockup{left:24px;right:24px;top:28%;width:auto;max-width:440px;z-index:2}.agency-shell .opening .title-small{font-size:38px}.agency-shell .opening .title-large{font-size:104px}.agency-shell .opening .title-day{font-size:62px}.agency-shell .opening h2{margin:0 0 24px}.agency-shell .opening #opening-copy{font-size:17px;margin-bottom:28px}.agency-shell .opening .button{min-height:52px;font-size:16px;min-width:208px}.opening-foot{left:24px;right:24px;bottom:28px;font-size:12px;z-index:2}.opening-foot .opening-brand{display:none}.agency-shell .opening .opening-note{font-size:12px;max-width:34ch}.week-ribbon{max-width:300px}
 .agency-shell .play-grid>#ending:not([hidden]){padding:22px;width:calc(100% - 32px)}.agency-shell #ending h2{font-size:30px}.agency-shell #ending .ending-actions .button{font-size:13px}
}
@media(max-width:380px){.agency-shell .resource [data-resource-icon],.agency-shell .charge-icon{display:none!important}.agency-shell .resource>div{min-width:68px}.agency-shell .opening .title-large{font-size:94px}}

@media(max-width:760px){.agency-shell .shell-office-tools [data-shell-panel=rooms]{flex:1.4;gap:6px;padding-inline:8px}.shell-expand-label{font-size:12px}.shell-expand-label small{font-size:10px}.agency-shell .opening:not([data-day="1"]) .opening-lockup{padding:22px}.agency-shell .opening:not([data-day="1"]) .title-day{font-size:40px}}

/* Read-only client library. Native dialog owns keyboard focus; the game pauses. */
.agency-library{width:min(660px,calc(100% - 40px));max-height:calc(100svh - 64px);padding:0;background:var(--paper);color:var(--ink);border:1px solid var(--blue);border-radius:0;box-shadow:var(--shadow);overflow:auto}
.agency-library::backdrop{background:#15263b80}
.agency-library>header{position:sticky;top:0;z-index:1;display:flex;align-items:start;justify-content:space-between;gap:20px;padding:22px 24px;background:var(--paper);border-bottom:1px solid var(--line)}
.agency-library h2{font:400 34px/1.1 larken,Georgia,serif;letter-spacing:-.04em;margin:0 0 8px}.agency-library header p{font-size:13px;line-height:1.45;margin:0;max-width:38ch}.agency-library header .button{flex:none;min-height:36px;font-size:13px}
.agency-library__entries{padding:4px 24px 22px}.agency-library__entries>section{padding:18px 0;border-bottom:1px solid var(--line)}.agency-library__entries>section:last-child{border:0;padding-bottom:0}.agency-library h3{font:400 26px/1.1 larken,Georgia,serif;letter-spacing:-.035em;color:var(--blue);margin:0 0 14px}.agency-library article+article{margin-top:16px}.agency-library h4{font-size:15px;font-weight:600;line-height:1.4;margin:0 0 4px}.agency-library article p{font-size:13px;line-height:1.5;margin:0;color:var(--muted)}
@media(max-width:760px){.agency-library{width:calc(100% - 28px);max-height:calc(100svh - 36px)}.agency-library>header{padding:18px;gap:12px}.agency-library h2{font-size:28px}.agency-library__entries{padding:0 18px 18px}}

.agency-shell .ending-posters{flex-wrap:wrap}.agency-shell .ending-poster{flex:1 1 280px;max-width:480px}.agency-shell .day-done{padding:18px}.agency-shell .day-done .button{min-height:44px}.agency-shell #ending .ending-actions{z-index:2}.agency-shell .moment-journal-row{border-radius:0}
@media(max-width:650px){.agency-shell .ending-poster{flex-basis:100%}.agency-shell .day-done{padding:16px}}

/* Compact HUD labels keep resources and the day clock separate on phones. */
.agency-shell .resource-spacer{display:block;height:18px}
@media(max-width:760px){.agency-shell .resource-long{display:none}.agency-shell .resource-label{text-transform:none}.agency-shell .resources{gap:8px}.agency-shell .resource p{gap:4px}.agency-shell .charge-recharge{font-size:11px;max-width:100%}}

/* Closing is one illustrated scene. Keepsakes unfold inside the paper, never size the scene. */
.agency-shell .play-grid>#ending.ending-cinematic:not([hidden]){position:fixed;inset:0;transform:none;width:100%;height:100dvh;max-height:none;margin:0;padding:clamp(20px,4vw,64px);border:0;box-shadow:none;background:#122332;overflow:hidden;display:flex;justify-content:flex-end;align-items:center;isolation:isolate}
.agency-shell #ending.ending-cinematic>.ending-scene{position:absolute;inset:0;z-index:-1;margin:0}
.agency-shell #ending.ending-cinematic>.ending-scene img{width:100%;height:100%;aspect-ratio:auto;object-fit:cover;object-position:40% center;image-rendering:auto}
.agency-shell #ending.ending-cinematic .ending-panel{width:min(390px,38vw);max-height:calc(100dvh - 80px);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;background:var(--paper);color:var(--ink);padding:28px;border:1px solid var(--blue);box-shadow:5px 5px 0 var(--blue)}
.agency-shell #ending.ending-cinematic h2{font:400 clamp(34px,3.2vw,52px)/1.02 larken,Georgia,serif;letter-spacing:-.04em;margin:0 0 20px}
.agency-shell #ending.ending-cinematic p{font-size:14px;line-height:1.45;margin:10px 0}
.agency-shell #ending.ending-cinematic .ending-result{margin:0;color:var(--ink)}
.agency-shell #ending.ending-cinematic .ending-earned{font:400 34px/1.15 larken,Georgia,serif;margin:8px 0 24px}
.agency-shell #ending.ending-cinematic .ending-earned span{font:400 14px/1.4 Inter,Arial,sans-serif;letter-spacing:0}
.agency-shell #ending.ending-cinematic .ending-tomorrow{margin-top:22px}
.agency-shell #ending.ending-cinematic .ending-recovery{color:var(--muted)}
.agency-shell #ending.ending-cinematic .ending-actions{position:static;padding:12px 5px 5px 0;margin:0;background:transparent;display:block}
.agency-shell #ending.ending-cinematic .ending-actions .button{width:100%;min-height:48px;margin:0;font-size:16px;justify-content:center}
.agency-shell #ending.ending-cinematic .ending-save{font-size:12px;color:var(--muted);min-height:18px;margin:8px 0 18px}
.agency-shell #ending.ending-cinematic .ending-details{margin:0;padding:0;border-top:1px solid var(--line)}
.agency-shell #ending.ending-cinematic .ending-details>summary{min-height:44px;font-size:14px;list-style:none;gap:10px}
.agency-shell #ending.ending-cinematic .ending-details>summary::-webkit-details-marker{display:none}
.agency-shell #ending.ending-cinematic .ending-details p{font-size:12px;color:var(--muted)}
.agency-shell #ending.ending-cinematic .ending-posters{display:grid;grid-template-columns:1fr;gap:22px;margin:12px 0 20px;justify-content:normal}
.agency-shell #ending.ending-cinematic .ending-poster{display:block;width:100%;max-width:none;margin:0}
.agency-shell #ending.ending-cinematic .ending-poster img{width:100%;height:auto;aspect-ratio:auto;object-fit:contain;box-shadow:none}
.agency-shell #ending.ending-cinematic .ending-poster figcaption{margin:10px 0 0;font-size:12px}
.agency-shell #ending.ending-cinematic .ending-poster strong{font-weight:400;font-size:16px}
.agency-shell #ending.ending-cinematic .ending-poster ul{margin:6px 0 0;padding-left:16px;color:var(--muted)}
.agency-shell #ending.ending-cinematic .ending-product{display:inline-block;color:var(--blue);font-size:12px;line-height:1.5;padding:10px 0 2px;text-underline-offset:3px}
@media(max-width:800px){
 .agency-shell .play-grid>#ending.ending-cinematic:not([hidden]){padding:20px;align-items:flex-end}
 .agency-shell #ending.ending-cinematic>.ending-scene img{object-position:30% center}
 .agency-shell #ending.ending-cinematic .ending-panel{width:min(390px,100%);max-height:calc(100dvh - 100px);padding:22px}
 .agency-shell #ending.ending-cinematic h2{font-size:34px;margin-bottom:12px}
 .agency-shell #ending.ending-cinematic .ending-earned{margin-bottom:14px}
}
@media(max-height:540px) and (min-width:801px){.agency-shell #ending.ending-cinematic .ending-panel{max-height:calc(100dvh - 32px);padding:20px}.agency-shell .play-grid>#ending.ending-cinematic:not([hidden]){padding:16px 28px}}

/* Internal actions have no perimeter; offset shadows and keyboard focus own their emphasis. */
.agency-shell .moment-journal-row,.agency-shell .moment-journal-row:hover,.agency-shell .agency-work-stage__loading button,.agency-shell .agency-live__navigation button,.agency-shell .opening:not([data-day="1"]) .button{border-color:transparent}

/* A client file has one visual focal point: its real work room.
   Joan's guide lives outside this file. Keep actor portraits in choices,
   not repeated beside the same actor already shown at their desk. */
.agency-shell .account-heading{min-height:82px;padding:14px 18px;gap:12px}
.agency-shell .client-product{width:52px;height:44px}
.agency-shell .client-identity h3{font-size:27px;margin-bottom:4px}
.agency-shell .deadline{margin-top:4px}
.agency-shell .account[data-expanded=false] .account-heading{min-height:72px}
.agency-shell .account[data-expanded=false] .client-product{width:44px;height:38px}
.agency-shell .process{margin-bottom:12px}
.agency-shell .account-content>.agency-work-stage{order:1;margin:0 0 10px}
.agency-shell .agency-work-stage__frame{aspect-ratio:16/9;max-height:none}
.agency-shell .agency-work-stage__caption{display:none}
.agency-shell .account-content>.stage-title,.agency-shell .account-content>p{order:2}
.agency-shell .account-content>.job-line,.agency-shell .account-content>.account-handoffs,.agency-shell .account-content>.account-actions{order:3}
.agency-shell .account-content:has(.agency-work-stage:not([hidden]))>.job-line{grid-template-columns:minmax(0,1fr) auto;padding-top:0;margin-top:0;border-top:0}
.agency-shell .account-content:has(.agency-work-stage:not([hidden]))>.job-line+.job-line{margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}
.agency-shell .account-content:has(.agency-work-stage:not([hidden]))>.job-line>.job-avatar,
.agency-shell .account-content:has(.agency-work-stage:not([hidden]))>.job-line>.sup-character{display:none}
.agency-shell .account-content:has(.agency-work-stage:not([hidden]))>.job-line>progress{grid-column:1/-1;margin-top:8px}
.agency-shell .account-content:has(.agency-work-stage:not([hidden]))>.job-line>.job-copy{grid-column:1;grid-row:1}
.agency-shell .account-content:has(.agency-work-stage:not([hidden]))>.job-line>.button,
.agency-shell .account-content:has(.agency-work-stage:not([hidden]))>.job-line>.receipt-complete{grid-column:2;grid-row:1}
.agency-shell .agency-work-stage[data-kind=working] .agency-work-stage__header:has(.agency-work-stage__lanes[hidden]),
.agency-shell .agency-work-stage[data-kind=assignment] .agency-work-stage__header:has(.agency-work-stage__lanes[hidden]){display:none}
.agency-shell .account-content>.assignments{margin-top:0}
@media(min-width:761px) and (max-height:720px){
 .agency-shell .account-heading{padding-block:11px;min-height:74px}
 .agency-shell .agency-work-stage__frame{aspect-ratio:16/8}
}
@media(max-width:760px){
 .agency-shell .account-heading{padding:12px 16px;gap:10px;min-height:76px}
 .agency-shell .client-product{width:48px;height:42px}
 .agency-shell .client-identity h3{font-size:26px}
 .agency-shell .account-content>.agency-work-stage{order:1;margin-top:0;margin-bottom:10px}
 .agency-shell .account-content>.assignments,.agency-shell .account-content>.job-line,.agency-shell .account-content>.account-handoffs{order:3}
}

.agency-shell .play-grid:has(>.monday-guide:not([hidden])) .office-caption{display:none}
@media(max-width:760px){.agency-shell .board-toggle{margin-top:calc(10px + var(--monday-guide-height,0px))}}
/* An interruption still needs its reason/countdown; ordinary work needs no
   repeated caption. Names and progress stay in the single work row. */
.agency-shell .agency-work-stage:is([data-kind=incident],[data-kind=paused],[data-kind=queued],[data-kind=assisted],[data-kind=assignment]) .agency-work-stage__caption{display:block;padding-top:7px}
.agency-shell .agency-work-stage:is([data-kind=incident],[data-kind=paused],[data-kind=queued],[data-kind=assisted],[data-kind=assignment]) .agency-work-stage__status{display:block}
.agency-shell .agency-work-stage__caption .agency-work-stage__location{display:none}

/* Photo-led moments: one image, one compact caption, the same square stationery. */
.agency-shell .shift-moments{font-family:inherit}
.agency-shell .shift-moments[data-open=true] .moment-card{width:min(760px,100%);border:1px solid var(--blue);border-radius:0;box-shadow:var(--shadow);background:var(--paper)}
.agency-shell .shift-moments[data-open=true] .moment-card.moment-story{padding:0;width:min(760px,max(320px,calc((100dvh - 180px) * 1.7778)),100%)}
.agency-shell .moment-story .moment-topline{position:sticky;top:0;z-index:2;gap:16px;margin:0;padding:10px 16px 10px 20px;background:var(--paper)}
.agency-shell .moment-story .moment-title{font:400 28px/1.12 larken,Georgia,serif;letter-spacing:-.03em;max-width:none}
.agency-shell .moment-close{flex:none;min-width:44px;min-height:44px;margin:0;border-radius:0}
.agency-shell .moment-close:hover,.agency-shell .moment-result-close:hover,.agency-shell .moment-history-button:hover:enabled{background:var(--blue);color:var(--paper)}
.agency-shell .moment-story .moment-mat{display:block;margin:0;padding:0;border:0;border-radius:0;background:transparent}
.agency-shell .moment-story .moment-art{width:100%;max-width:none;height:auto;aspect-ratio:auto;image-rendering:auto}
.agency-shell .moment-story-copy{padding:16px 20px}
.agency-shell .moment-story-copy .moment-client{margin:0 0 6px!important;color:var(--blue)}
.agency-shell .moment-story-copy .moment-message{max-width:none;font-size:14px;line-height:1.5}
.agency-shell .moment-story .moment-footer{margin-top:12px;gap:12px}
.agency-shell .moment-history-button{border-radius:0;min-height:44px}
.agency-shell .moment-story .moment-illustration{margin:0;border-radius:0}
.agency-shell .shift-moments[data-open=true] .moment-card.moment-result{width:min(760px,max(320px,calc((100dvh - 310px) * 1.7778)),100%)}
.agency-shell .moment-result-topline{position:sticky;top:0;z-index:2;min-height:44px;padding:0 12px 0 20px;border:0;background:var(--paper)}
.agency-shell .moment-result-layout{display:block;padding:0}
.agency-shell .moment-result-art{display:block;width:100%;max-width:none;margin:0;padding:0;border:0;border-radius:0;box-shadow:none;background:transparent}
.agency-shell .moment-result-art img{width:100%;height:auto;aspect-ratio:auto;object-fit:contain}
.agency-shell .moment-result-copy{display:grid;grid-template-columns:minmax(0,1fr);padding:16px 20px;text-align:left}
.agency-shell .moment-result-copy:has(.moment-campaign-keepsake){grid-template-columns:minmax(0,1fr) 116px;column-gap:20px}
.agency-shell .moment-result-copy>p,.agency-shell .moment-result-copy>h2{grid-column:1}
.agency-shell .moment-result-title{font-size:30px;line-height:1.08;margin:3px 0 8px!important}
.agency-shell .moment-result-message{max-width:none;margin:0!important;font-size:14px;line-height:1.45}
.agency-shell .moment-result-fee{font-size:22px;margin-top:10px!important}
.agency-shell .moment-result-credit{font-size:12px;margin-top:5px!important}
.agency-shell .moment-campaign-keepsake{grid-column:2;grid-row:1/span 5;align-self:center;width:116px;margin:0}
.agency-shell .moment-campaign-keepsake img{box-shadow:none}
.agency-shell .moment-result-bottom{position:sticky;bottom:0;z-index:2;padding:12px 20px;gap:16px;background:var(--paper);border-top:1px solid var(--line)}
.agency-shell .moment-result-continue{font-weight:400}
.agency-shell .moment-result-paused{max-width:23ch}
@media(max-width:480px){
 .agency-shell .moment-story .moment-topline{padding:8px 12px;gap:8px}
 .agency-shell .moment-story .moment-title{font-size:25px}
 .agency-shell .moment-story-copy,.agency-shell .moment-result-copy{padding:14px}
 .agency-shell .moment-result-copy:has(.moment-campaign-keepsake){grid-template-columns:minmax(0,1fr) 82px;column-gap:12px}
 .agency-shell .moment-campaign-keepsake{width:82px}
 .agency-shell .moment-result-title{font-size:27px}
 .agency-shell .moment-result-bottom{padding:12px 14px;gap:12px}
 .agency-shell .moment-result-paused{max-width:13ch}
}

/* One meaningful choice owns the foreground; ordinary chatter stays on the floor. */
.agency-shell .board>.incident[data-mode=decision]{padding:18px;background:var(--paper);border-bottom:1px solid var(--blue)}
.agency-shell .board>.incident[data-mode=decision] header{align-items:center;gap:14px}
.agency-shell .board>.incident[data-mode=decision] h2{font-size:19px;line-height:1.2}
.agency-shell .board>.incident[data-mode=decision] .incident-stamp{width:64px;height:72px}
.agency-shell .incident-portrait{display:block;width:100%;height:100%;background-size:contain;background-position:center;background-repeat:no-repeat}
.agency-shell .incident-line{display:block;margin:0 0 8px;line-height:1.45}
.agency-shell .board>.incident[data-mode=decision] .account-actions{grid-template-columns:1fr;gap:10px;padding-right:4px;padding-bottom:4px}
.agency-shell .board>.incident[data-mode=decision] .button{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px}
.agency-shell .board>.incident[data-mode=decision] .button>span{margin:0;max-width:45%;text-align:right}
.agency-shell .board[data-routine-decision=true] .agency-work-stage{display:none}

.agency-shell .board[data-routine-decision=true] .account[data-expanded=true] .assignments{display:none}

@media(max-width:760px){
 .agency-shell .account-content>.account-handoffs:not([hidden]){order:1}
 .agency-shell .account-content:has(>.account-handoffs:not([hidden]))>.agency-work-stage{order:2}
 .agency-shell .board button{scroll-margin-bottom:92px}
}

.agency-shell .board[data-routine-decision=true] .account[data-expanded=true] .job-line{display:none}

/* Foreground and fill switch together; avoid pale text during a fill fade. */
.agency-shell .button{transition:box-shadow .15s,transform .1s}

/* Keep the existing shared toolbar compact; show the expansion roadmap in its drawer. */
.agency-shell.agency-panels .shell-planned-rooms{padding:0 16px 16px}
.agency-shell.agency-panels .shell-planned-rooms>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;padding:14px 0 0;border-top:1px solid var(--line)}
.agency-shell.agency-panels .shell-planned-rooms>div+div{margin-top:14px}
.agency-shell.agency-panels .shell-planned-rooms h3{margin:0;font-family:inherit;font-weight:500;font-size:15px;line-height:1.4}
.agency-shell.agency-panels .shell-planned-rooms span{font-size:13px;line-height:1.6;color:var(--muted)}
.agency-shell.agency-panels .shell-planned-rooms p{grid-column:1/-1;font-size:13px;line-height:1.45;color:var(--muted);margin:0}

/* Utility panels keep their dismiss control reachable at enlarged text sizes. */
.agency-confirm{max-height:calc(100dvh - 24px);overflow:auto;overscroll-behavior:contain}
.agency-confirm h2{padding-right:44px}
.agency-confirm form{flex-wrap:wrap}
.agency-confirm form .button{min-height:44px;flex:1 1 130px;white-space:normal}
.shell-confirm-close{position:sticky;top:-16px;height:0;z-index:2;pointer-events:none}
.shell-confirm-close button{position:absolute;top:0;right:-16px;pointer-events:auto;width:44px;height:44px;padding:0;border:1px solid var(--line);border-radius:0;background:var(--paper);color:var(--ink);font:27px/1 Arial,sans-serif;cursor:pointer}
.shell-context-heading button:focus-visible,.shell-confirm-close button:focus-visible{outline:2px solid var(--blue);outline-offset:2px}

/* Phone navigation has a consistent touch area without another toolbar row. */
@media(max-width:760px){
 .agency-shell .agency-bar :is(.button,.agency-menu>summary){min-height:44px;min-width:44px}
 .agency-shell .agency-menu__items .button{min-height:44px}
 .agency-shell .staff-care .button,.agency-shell .agency-live__navigation button{min-height:44px;min-width:44px}
}


/* Opening: one play action, its saved context, then two quiet alternatives.
   The shell keeps this same order in the DOM; other morning scenes retain their layout. */
.agency-shell #opening[data-opening-hierarchy="true"] .opening-actions{
 display:grid;grid-template-columns:minmax(0,1fr) auto;
 grid-template-areas:"play play" "note note" "curious restart";
 align-items:center;column-gap:24px;row-gap:8px;width:min(100%,360px)
}
.agency-shell #opening[data-opening-hierarchy="true"] .opening-actions .button-primary{
 grid-area:play;order:0;width:100%;min-width:0;min-height:54px;
 padding:10px 20px;font-size:18px;justify-content:space-between;gap:16px
}
.agency-shell #opening[data-opening-hierarchy="true"] #opening-note{
 grid-area:note;position:static;inset:auto;margin:0;padding:2px 0 0;
 width:auto;max-width:none;background:none;color:#fff;font-size:12px;line-height:1.5;
 text-shadow:0 1px 2px #10273c
}
.agency-shell #opening[data-opening-hierarchy="true"] .curious-opening-link{grid-area:curious}
.agency-shell #opening[data-opening-hierarchy="true"][data-resumable="true"] [data-start-shift]{grid-area:restart}
.agency-shell #opening[data-opening-hierarchy="true"] .curious-opening-link,
.agency-shell #opening[data-opening-hierarchy="true"][data-resumable="true"] [data-start-shift]{
 order:0;width:auto;min-width:0;min-height:44px;padding:0;gap:8px;
 background:transparent;color:#fff;border:0;box-shadow:none;transform:none;
 font-size:14px;line-height:1.4;text-align:left;justify-content:flex-start;
 text-decoration:underline;text-decoration-color:#ffffff80;text-underline-offset:4px
}
.agency-shell #opening[data-opening-hierarchy="true"] .curious-opening-link:hover,
.agency-shell #opening[data-opening-hierarchy="true"][data-resumable="true"] [data-start-shift]:hover{
 background:transparent;color:#fff;border:0;box-shadow:none;text-decoration-color:currentColor
}
.agency-shell #opening[data-opening-hierarchy="true"] .curious-opening-link:active,
.agency-shell #opening[data-opening-hierarchy="true"][data-resumable="true"] [data-start-shift]:active{
 background:transparent;box-shadow:none;transform:none
}
.agency-shell #opening[data-opening-hierarchy="true"] .opening-actions .button:focus-visible{outline:2px solid #fff;outline-offset:4px}
@media(max-width:760px) and (orientation:portrait){
 .agency-shell #opening[data-opening-hierarchy="true"][data-portrait-morning="true"] .opening-actions{
  width:auto;max-width:none;bottom:max(18px,env(safe-area-inset-bottom,0px));column-gap:20px
 }
 .agency-shell #opening[data-opening-hierarchy="true"] .opening-actions .button-primary{min-height:50px;font-size:16px}
}
@media(max-height:500px) and (orientation:landscape){
 .agency-shell #opening[data-opening-hierarchy="true"] .opening-actions{row-gap:4px}
 .agency-shell #opening[data-opening-hierarchy="true"] .opening-actions .button-primary{min-height:44px;font-size:16px}
}
