/* Job folders open on the workshop desk; the footer stays outside the scroll. */
.entrance-dialog{width:1180px;max-width:calc(100vw - 24px);height:min(960px,calc(100svh - 24px));max-height:calc(100svh - 24px);padding:0;background:#101a32;color:#f5e9cb;border:1px solid #8792a2;border-radius:5px;overflow:hidden}
.entrance-dialog[open]{display:flex;flex-direction:column}.entrance-dialog::backdrop{background:#071020eb}.entrance-scroll{min-height:0;overflow:auto;padding:28px}.entrance-heading{display:flex;justify-content:space-between;gap:20px;align-items:start;margin-bottom:28px}.entrance-heading h1{font:800 clamp(38px,5vw,60px)/1 Barlow,sans-serif;margin:6px 0}.entrance-heading p{font-size:14px;color:#f2bd53}.entrance-dialog button,.entrance-dialog a{min-height:44px}.entrance-dialog button{background:#26375a;border:1px solid #8290a4;color:#f5e9cb;padding:10px 18px;font:700 20px/1.1 Barlow,sans-serif;cursor:pointer}.entrance-dialog button:disabled{opacity:.5;cursor:default}.entrance-dialog button:focus-visible,.entrance-dialog a:focus-visible{outline:3px solid #f2bd53;outline-offset:3px}.entrance-save{border-left:5px solid #f2bd53;background:#26375a;padding:25px;max-width:650px}.entrance-save h2,.entrance-paper h2{font:800 clamp(36px,4vw,55px)/1 Barlow,sans-serif;margin:10px 0 18px}.entrance-save p,.entrance-notice,.entrance-welcome{line-height:1.6}.entrance-save p+p{margin-top:10px}.entrance-quota{font-size:13px;line-height:1.6;margin:24px 0 0;max-width:70ch;color:#dacba8}.entrance-modes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:28px}.entrance-modes button{min-height:64px;text-align:left;font-size:27px}.entrance-modes button[aria-pressed=true]{border-color:#f2bd53;box-shadow:inset 0 -4px #f2bd53}.entrance-desk{display:grid;grid-template-columns:230px minmax(0,1fr);gap:24px}.entrance-folders{display:flex;flex-direction:column;gap:18px;padding-top:7px}.entrance-dialog .entrance-folder{position:relative;display:flex;align-items:center;gap:10px;text-align:left;border-left:5px solid #b85c42;padding:9px;min-height:96px}.entrance-folder:before{content:'';position:absolute;top:-7px;left:8px;width:55px;height:6px;background:#b85c42;border-radius:3px 5px 0 0}.entrance-folder img{width:65px;height:75px;object-fit:contain}.entrance-folder strong{display:block;font-size:24px}.entrance-folder small{display:block;margin-top:7px;font:11px/1.4 Bricolage,sans-serif}.entrance-dialog .entrance-folder[aria-pressed=true]{background:#f5e9cb;color:#101a32;transform:translateX(5px);box-shadow:0 4px 0 #ae915b}.entrance-job{display:grid;grid-template-columns:minmax(0,1fr) 155px;gap:20px;padding:22px;background:#1b2b44;border:1px solid #63748b;align-items:start}.entrance-paper{background:#f5e9cb;color:#101a32;padding:23px;box-shadow:0 5px 0 #bda87c;min-width:0}.entrance-paper p{font-size:14px;line-height:1.6}.entrance-paper blockquote{margin:20px 0;padding:4px 0 4px 12px;border-left:3px solid #b85c42;font-size:14px;line-height:1.55}.entrance-folder-art{display:block;max-width:100%;height:150px;margin:0 auto 15px;object-fit:contain}.entrance-villain{align-self:center;text-align:center}.entrance-villain img{width:100%;height:220px;object-fit:contain;filter:drop-shadow(0 9px 7px #0005)}.entrance-villain p{font-size:11px;margin:10px 0}.entrance-villain strong{font:700 26px/1 Barlow,sans-serif}.entrance-route-sheet{grid-column:1/-1}.entrance-route-sheet h3{font:700 26px/1 Barlow,sans-serif;margin-bottom:18px}.entrance-route{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px 9px;list-style:none;padding:0;margin:0}.entrance-route b{display:grid;place-items:center;width:30px;height:30px;border:1px solid #7c8da4;border-radius:50%;margin-bottom:9px}.entrance-route li[data-kind=boss] b{border-radius:2px;border-color:#f2bd53;color:#f2bd53}.entrance-route strong,.entrance-route span,.entrance-route small{display:block;font-size:11px;line-height:1.35}.entrance-route span{color:#b5c2d5;margin-top:5px}.entrance-route small{color:#f2bd53;margin-top:5px}.entrance-desk:not([data-mode=campaigns]){display:block}.entrance-other{max-width:720px;padding:30px}.entrance-other p+p{margin-top:20px}.entrance-footer{flex:none;padding:16px 28px;background:#101d30;border-top:1px solid #73849a}.entrance-footer>p{font-size:12px;line-height:1.4;margin-bottom:8px}.entrance-actions{display:flex;gap:12px;align-items:center;justify-content:flex-end;flex-wrap:wrap}.entrance-actions a{display:inline-flex;align-items:center;color:#f5e9cb;font-size:12px}.entrance-dialog .entrance-primary{background:#f2bd53;border-color:#f6d58d;color:#101a32;box-shadow:0 3px 0 #976c31;font-size:26px}.entrance-earned img{width:90px;height:90px;object-fit:contain}.entrance-earned strong{display:block}.entrance-plaque{margin:25px 0 0;display:flex;align-items:center;gap:16px;font:700 28px Barlow,sans-serif}.entrance-plaque img{width:130px;height:85px;object-fit:contain}.report-campaign{padding:15px 0}.report-campaign img{width:100px;height:100px;object-fit:contain}.report-campaign strong{display:block;font:700 26px Barlow,sans-serif}.report-campaign p{font-size:12px;line-height:1.5}
@media(max-width:760px){.entrance-scroll{padding:18px 15px}.entrance-heading{margin-bottom:20px}.entrance-heading h1{font-size:40px}.entrance-modes{gap:8px}.entrance-modes button{font-size:22px;padding:10px;min-height:60px}.entrance-desk{display:block}.entrance-folders{margin-bottom:25px;gap:16px}.entrance-dialog .entrance-folder{min-height:75px}.entrance-folder img{height:60px}.entrance-dialog .entrance-folder[aria-pressed=true]{transform:none}.entrance-job{padding:15px;grid-template-columns:minmax(0,1fr);gap:24px}.entrance-paper{padding:20px}.entrance-folder-art{height:125px}.entrance-villain{display:grid;grid-template-columns:120px minmax(0,1fr);text-align:left;gap:8px 15px}.entrance-villain img{height:145px;grid-row:1/3}.entrance-villain p{align-self:end;margin:0}.entrance-villain strong{align-self:start}.entrance-route{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.entrance-footer{padding:12px 15px max(16px,env(safe-area-inset-bottom))}.entrance-actions{justify-content:space-between}.entrance-actions button{flex:1}.entrance-quota{font-size:12px}.entrance-save{padding:18px}.entrance-heading>button{flex:none}}
@media(max-height:500px){.entrance-heading h1{font-size:32px}.entrance-heading{margin-bottom:16px}.entrance-scroll{padding:14px 20px}.entrance-footer{padding:9px 20px max(9px,env(safe-area-inset-bottom))}.entrance-footer>p:empty{display:none}.entrance-actions button{min-height:44px}}
@media(prefers-reduced-motion:no-preference){.entrance-folder{transition:transform .14s ease}.entrance-paper{animation:folder-open .18s ease-out}@keyframes folder-open{from{transform:translateY(4px);opacity:.6}to{transform:none;opacity:1}}}

/* The open job keeps its own material and ink, like the folders on this desk. */
.entrance-dialog [data-campaign]{--folder-ink:#b85c42;--folder-stock:#f5e9cb}
.entrance-dialog [data-campaign=everything-is-fine]{--folder-ink:#547f95;--folder-stock:#e0e9e5}
.entrance-dialog [data-campaign=pending-approval]{--folder-ink:#973e45;--folder-stock:#ecdcb5}
.entrance-dialog [data-campaign=line-goes-up]{--folder-ink:#397d69;--folder-stock:#e4e9cc}
.entrance-dialog [data-campaign=friday-459]{--folder-ink:#796490;--folder-stock:#e8e1ec}
.entrance-scroll{flex:1;overscroll-behavior:contain;scroll-padding:12px;scrollbar-color:#73849a #101a32}
.entrance-dialog .entrance-folder{border-left-color:var(--folder-ink);box-shadow:0 4px 0 #091426}
.entrance-folder:before{background:var(--folder-ink)}
.entrance-folder>span,.entrance-actions>*,.entrance-job>*{min-width:0}
.entrance-dialog .entrance-folder[aria-pressed=true]{background:var(--folder-stock);border-color:var(--folder-stock);border-left-color:var(--folder-ink)}
.entrance-modes strong{display:block;font:inherit}
.entrance-modes span{display:block;font:12px/1.45 Bricolage,sans-serif;margin-top:8px;color:#c6d2df}
.entrance-job{position:relative;grid-template-columns:minmax(0,1fr) 190px;border-top:7px solid var(--folder-ink);box-shadow:0 10px 28px #07102066}
.entrance-job>.entrance-paper{background:var(--folder-stock);border-top:1px solid #fff7df;box-shadow:0 5px 0 #a99571}
.entrance-job-meta{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px 12px;font-size:10px;line-height:1.45;border-bottom:1px solid #26375a55;padding-bottom:12px}
.entrance-folder-art{width:100%;height:170px;margin:12px 0 18px}
.entrance-paper blockquote{border-color:var(--folder-ink)}
.entrance-paper .entrance-stamp-note{display:flex;gap:12px;align-items:center;border-top:1px dashed #26375a55;padding-top:15px;font-size:11px}
.entrance-stamp-note>.ui-icon{width:27px;height:32px;flex:none;color:var(--folder-ink)}
.entrance-stamp-note strong{display:block;margin-top:5px;font-size:15px;line-height:1.4}
.entrance-villain{text-align:left;align-self:center}
.entrance-villain img{height:300px}
.entrance-villain p{color:#d2c4a9}
.entrance-villain strong{display:block;font-size:30px;line-height:1.08}
.entrance-route-sheet{border-top:1px dashed #8290a488;padding-top:20px}
.entrance-route-head{margin-bottom:22px}
.entrance-route-head h3{margin:0 0 8px}
.entrance-route-head p{font-size:11px;line-height:1.5;color:#cfdbc9}
.entrance-route li{position:relative;min-width:0}
.entrance-route li:not(:nth-child(5n)):after{content:'';position:absolute;top:18px;left:38px;right:-9px;border-top:1px dashed #8290a4}
.entrance-route b,.entrance-route li[data-kind=boss] b{position:relative;width:36px;height:36px;border:0;color:#c0d0dd}
.entrance-route b>.ui-icon{position:absolute;width:36px;height:36px;stroke-width:1}
.entrance-route b>span{position:relative;color:inherit;font-size:12px;margin:0;padding:0 2px;background:#1b2b44}
.entrance-route li[data-kind=boss] b{color:#f2bd53}
.entrance-route small{display:flex;gap:4px;align-items:center;font-size:10px}
.entrance-route small .ui-icon{flex:none;width:13px;height:15px}
.entrance-route strong{overflow-wrap:anywhere}
.entrance-footer>p:empty{display:none}
.entrance-actions{justify-content:flex-start}
.entrance-actions .entrance-primary{display:inline-flex;align-items:center;justify-content:space-between;gap:15px}
.entrance-actions .ui-icon{flex:none}
.entrance-actions button{overflow-wrap:anywhere}
.entrance-plaque{flex-wrap:wrap}
@media(max-width:1050px) and (min-width:761px){.entrance-desk{grid-template-columns:200px minmax(0,1fr);gap:18px}.entrance-job{grid-template-columns:minmax(0,1fr) 130px;gap:15px;padding:16px}.entrance-paper{padding:18px}.entrance-villain img{height:220px}.entrance-villain strong{font-size:26px}}
@media(max-width:760px){.entrance-job{grid-template-columns:minmax(0,1fr)}.entrance-villain img{height:180px}.entrance-villain strong{font-size:28px}.entrance-route li:after{display:none}.entrance-route li:nth-child(odd):after{display:block;right:-14px}.entrance-modes span{font-size:10px}.entrance-folder-art{height:145px}.entrance-job-meta{font-size:10px}.entrance-actions{justify-content:flex-start}}
@media(max-width:360px){.entrance-modes button{font-size:20px;padding:9px 7px}.entrance-job{padding:12px}.entrance-paper{padding:16px}.entrance-villain{grid-template-columns:100px minmax(0,1fr)}.entrance-villain img{height:160px}.entrance-villain strong{font-size:25px}.entrance-actions{gap:8px}.entrance-actions button{padding:10px 12px}.entrance-dialog .entrance-primary{font-size:24px}}

/* A job note sits on preparation or the receipt; the next action stays available. */
.campaign-story{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;margin:0 0 18px;border-left:4px solid #b85c42;background:#f5e9cb;color:#101a32;box-shadow:0 3px 0 #a99571;text-align:left}
.campaign-story[hidden],.report-campaign[hidden]{display:none}
.campaign-story-title{font:700 12px/1.5 Bricolage,sans-serif;color:#5c493b;margin:0 0 6px}
.campaign-story-copy{font:700 17px/1.5 Bricolage,sans-serif;max-width:65ch;margin:0}
.campaign-story button{flex:none;min-width:44px;min-height:44px;padding:10px 12px;border:1px solid #6f695a;color:#26375a;background:transparent;font:700 12px Bricolage,sans-serif;cursor:pointer}
.campaign-story button:focus-visible{outline:3px solid #b85c42;outline-offset:3px}
#report-story{align-items:flex-start;margin:20px 0;padding:12px;background:#eadcbb;box-shadow:none}
#report-story .campaign-story-copy{font-size:14px}
#report-story .campaign-story-title{font-size:10px}
@media(max-width:600px){.campaign-story{padding:12px;gap:10px}.campaign-story-copy{font-size:14px}.campaign-story-title{font-size:10px}#report-story{flex-wrap:wrap}#report-story button{margin-left:auto}}

/* Large translated labels can scroll independently without pushing actions offscreen. */
.entrance-footer{max-height:45svh;overflow:auto;overscroll-behavior:contain;scroll-padding:8px}
@media(max-width:760px){.entrance-actions .entrance-primary{flex:2 1 0}.entrance-actions button{overflow-wrap:normal}}
@media(max-width:360px){.entrance-modes button{font-size:18px;padding:10px 5px}.entrance-dialog .entrance-primary{font-size:23px;gap:10px}.entrance-actions button{padding:10px}.entrance-heading{gap:12px}.entrance-heading>button{padding:10px 12px}}

/* Keep the desk and decoded slots still while another folder becomes ready. */
.entrance-dialog [hidden]{display:none}
.entrance-stamp-slot{width:90px;height:90px}
.entrance-art-slot{background:linear-gradient(135deg,#bda87c22,#bda87c08);border-radius:3px}
.entrance-folder-slot{height:170px;margin:12px 0 18px}
.entrance-folder-slot .entrance-folder-art{height:100%;margin:0}
.entrance-villain-slot{height:300px}
.entrance-villain-slot img{height:100%}
@media(max-width:1050px) and (min-width:761px){.entrance-villain-slot{height:220px}}
@media(max-width:760px){.entrance-folder-slot{height:145px}.entrance-villain-slot{height:180px;grid-row:1/3}}
@media(max-width:360px){.entrance-villain-slot{height:160px}}

/* Raised enamel controls and two route clerks make each choice tangible. */
.entrance-dialog .entrance-actions button,.starter-dialog .starter-methods button,.starter-dialog .starter-summary button{min-height:48px;border:1px solid #9aacbe;border-radius:5px;background:#263e59;color:#f5e9cb;box-shadow:inset 0 1px #d4e5eb33,0 4px 0 #071322;padding:12px 20px;font:700 23px/1.15 Barlow,sans-serif;text-align:center;cursor:pointer}
.entrance-dialog .entrance-actions .entrance-primary{background:#f2bd53;color:#101a32;border-color:#ffe4a6;box-shadow:inset 0 1px #fff4d7,0 4px 0 #94672b;font-size:26px;min-width:175px;justify-content:center}
.entrance-dialog .entrance-actions button:active:not(:disabled),.starter-dialog .starter-methods button:active:not(:disabled),.starter-dialog .starter-summary button:active:not(:disabled){transform:translateY(2px);box-shadow:inset 0 2px 4px #07132244,0 2px 0 #071322}
.entrance-dialog .entrance-actions button:disabled,.starter-dialog .starter-methods button:disabled,.starter-dialog .starter-summary button:disabled{background:#334354;color:#b4bfce;border-color:#64768b;box-shadow:0 3px 0 #071322;opacity:1;cursor:default}
.starter-dialog .starter-methods button[aria-pressed=true]{border-color:#f2bd53;background:#3a4c5a;color:#ffe1a4;box-shadow:inset 0 -3px #f2bd53,0 3px 0 #071322}
.starter-dialog .starter-methods button:focus-visible,.starter-dialog .starter-summary button:focus-visible{outline:3px solid #f2bd53;outline-offset:3px}
.entrance-dialog .entrance-modes button{display:flex;align-items:center;gap:12px;min-height:106px;padding:12px;text-align:left;border-radius:4px;box-shadow:inset 0 1px #d4e5eb22,0 4px 0 #071322}
.entrance-modes img{width:64px;height:80px;object-fit:contain;flex:none}
.entrance-modes .entrance-mode-label{margin:0;min-width:0;color:inherit;font:inherit}
.entrance-mode-label small{display:block;font:12px/1.45 Bricolage,sans-serif;margin-top:8px;color:#c6d2df}
.entrance-dialog .entrance-modes button[aria-pressed=true]{background:#354758;border-color:#f2bd53;box-shadow:inset 0 -4px #f2bd53,0 4px 0 #071322}
.entrance-dialog .entrance-other{display:grid;grid-template-columns:minmax(180px,.9fr) minmax(0,1.1fr);align-items:center;gap:28px;max-width:880px;padding:24px;background:#1b2b44;border:1px solid #63748b;border-top:6px solid #397d69;box-shadow:0 8px 24px #07102055}
.entrance-dialog .entrance-other[hidden]{display:none}
.entrance-desk[data-mode=endless] .entrance-other{border-top-color:#f2bd53}
.entrance-mode-art-slot{width:100%;height:360px;background:none}
.entrance-mode-art-slot img{display:block;width:100%;height:100%;object-fit:contain}
.entrance-mode-paper{align-self:center}
.entrance-mode-paper h2{font-size:clamp(36px,4vw,52px)}
.entrance-mode-paper blockquote{border-color:#397d69;font-size:15px}
.entrance-desk[data-mode=endless] .entrance-mode-paper blockquote{border-color:#b3863b}
@media(max-width:760px){.entrance-dialog .entrance-modes button{flex-direction:column;gap:6px;padding:9px 7px;font-size:22px;min-height:144px}.entrance-modes img{width:54px;height:60px}.entrance-mode-label small{font-size:10px;margin-top:5px}.entrance-dialog .entrance-other{grid-template-columns:minmax(0,1fr);gap:14px;padding:16px}.entrance-mode-art-slot{height:230px}.entrance-mode-paper{padding:20px}.entrance-dialog .entrance-actions button{padding:12px 16px;flex:1 1 auto;font-size:22px}.entrance-dialog .entrance-actions .entrance-primary{min-width:0;flex:2 1 auto;font-size:24px}.starter-dialog .starter-methods button{font-size:21px;flex:1;padding:12px}}
@media(max-width:360px){.entrance-dialog .entrance-modes button{font-size:20px;padding:8px 5px;min-height:145px}.entrance-mode-label small{font-size:9px}.entrance-mode-art-slot{height:205px}.entrance-mode-paper{padding:16px}.entrance-dialog .entrance-actions button{padding:12px;font-size:21px}}
@media(max-height:500px) and (min-width:600px){.entrance-dialog .entrance-modes button{flex-direction:row;min-height:74px;font-size:23px}.entrance-modes img{width:48px;height:50px}.entrance-dialog .entrance-other{grid-template-columns:minmax(140px,.7fr) minmax(0,1.3fr);padding:16px;gap:20px}.entrance-mode-art-slot{height:220px}.entrance-mode-paper{padding:18px}.entrance-mode-paper h2{font-size:36px}.entrance-dialog .entrance-actions button{min-height:44px;padding:10px 16px}}

.entrance-difficulties{min-width:0;margin:22px 0 0;padding:16px;border:1px solid #63748b;background:#15243b}
.entrance-difficulties legend{padding:0 8px;font-weight:700;color:#f2bd53}
.entrance-difficulties [role=radiogroup]{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.entrance-difficulties button{min-width:0;min-height:64px;padding:10px 8px;text-align:center;color:inherit;background:#1b2b44;border:1px solid #63748b}
.entrance-difficulties button[aria-checked=true]{border-color:#f2bd53;box-shadow:inset 0 0 0 1px #f2bd53;background:#343d49}
.entrance-difficulties strong,.entrance-difficulties small{display:block;overflow-wrap:anywhere}
.entrance-difficulties small{margin-top:4px;font-size:11px}
.entrance-difficulties p{margin:12px 0 0;font-size:12px;line-height:1.5}
.entrance-difficulties button:focus-visible{outline:3px solid #fff;outline-offset:3px}
.entrance-difficulties[hidden]{display:none}
@media(max-width:360px){.entrance-difficulties{padding:12px}.entrance-difficulties [role=radiogroup]{gap:5px}.entrance-difficulties button{padding:9px 4px;font-size:13px}.entrance-difficulties small{font-size:10px}}
