.desk-dialog{position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;border:0;border-radius:0;padding:0;background:#6c8050 url(assets/generated/willowbrook-meadow-map.webp) center/cover;color:#4f3928}.desk-dialog[open]{display:flex;flex-direction:column}.desk-head{display:flex;align-items:center;justify-content:space-between;padding:14px max(18px,env(safe-area-inset-right));color:#fff8e6;text-shadow:0 2px 4px #352211;background:#2e3c2533}.desk-head h2{font-size:24px;margin:3px 0}.desk-head small{font-size:10px;letter-spacing:1px}.desk-head>button{width:44px;height:44px;font-size:25px;background:#fff7e7;border:0;border-radius:12px}.desk-tabs{display:flex;gap:8px;padding:8px 16px;overflow-x:auto;flex:none}.desk-dialog button{min-height:42px;border:1px solid #bf9e72;background:#fff5e4;color:#5a4128;border-radius:11px;padding:8px 13px;font-weight:700}.desk-tabs [aria-pressed=true]{background:#e7c58b;border-color:#fff2d1}.desk-dialog main{min-height:0;flex:1;overflow:auto;padding:8px 16px 28px;overscroll-behavior:contain}.desk-card{background:#fff7eaf5;border:1px solid #d3b891;border-radius:18px;padding:16px;max-width:1040px;margin:0 auto 12px}.desk-card h3{margin:0 0 5px}.desk-card p{line-height:1.4;font-size:14px;margin:5px 0}.desk-card>header{display:flex;align-items:center;justify-content:space-between;gap:10px}.desk-jobs{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px;margin-top:12px}.desk-jobs button{text-align:left;display:grid;gap:3px}.desk-jobs span,.desk-card small{font-size:12px;color:#7b644c}.desk-helper,.desk-goal{display:flex;align-items:center;gap:14px}.desk-helper img,.desk-goal img{width:85px;height:100px;object-fit:contain}.desk-helper>div,.desk-goal>div{flex:1}.desk-goal progress{display:block;width:100%;height:9px;accent-color:#bc844c;margin:10px 0}.desk-links{display:flex;gap:8px;flex-wrap:wrap}.desk-dialog button:focus-visible{outline:3px solid #e6ba6e;outline-offset:2px}@media(max-width:600px){.desk-head h2{font-size:20px}.desk-helper,.desk-goal{flex-wrap:wrap}.desk-helper img,.desk-goal img{width:64px;height:80px}.desk-helper>button,.desk-goal>button{width:100%}.desk-jobs{grid-template-columns:1fr 1fr}.desk-tabs button{white-space:nowrap;font-size:12px}}

/* Keep title, followed project and guide controls in one compact header. */
.desk-head{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr) minmax(64px,1fr);gap:12px;padding:calc(var(--game-safe-top,0px) + 6px) max(12px,var(--game-safe-right,0px)) 6px max(12px,var(--game-safe-left,0px));background:none;flex:none}.desk-heading,.desk-project-slot{min-width:0}.desk-head h2{font-size:clamp(18px,2.5vw,24px);line-height:1.15}.desk-head small{letter-spacing:.06em;font-size:9px}.desk-head-actions{justify-self:end;display:grid;justify-items:end;gap:4px}.desk-head-actions #desk-close{width:44px;height:44px;padding:0;font-size:24px}.desk-head-actions #desk-listen{display:flex;align-items:center;justify-content:center;gap:4px;min-height:44px;padding:3px 7px;font-size:11px;text-shadow:none}.desk-head-actions #desk-listen img{width:24px;height:30px;object-fit:contain}.desk-head .journey-desk-link{width:100%;max-width:420px;margin:auto;min-height:58px;padding:6px 8px;gap:7px;text-shadow:none}.desk-head .journey-desk-link img{width:40px;height:40px;flex:none}.desk-head .journey-desk-link span{min-width:0}.desk-head .journey-desk-link strong{font-size:11px;line-height:1.25}.desk-head .journey-desk-link small{font-size:11px;line-height:1.35;letter-spacing:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.desk-tabs{padding:3px 12px 6px;gap:6px}.desk-dialog main{padding-top:3px}
@media(max-width:600px){.desk-head{grid-template-columns:minmax(74px,.85fr) minmax(0,1.25fr) auto;gap:6px}.desk-heading>small{display:none}.desk-head h2{font-size:18px;margin:0}.desk-head .journey-desk-link{padding:6px;gap:4px;min-height:62px}.desk-head .journey-desk-link img{width:28px;height:34px}.desk-head .journey-desk-link strong,.desk-head .journey-desk-link small{font-size:10px}.desk-head-actions #desk-listen{font-size:10px;padding:3px 5px}.desk-head-actions #desk-listen img{width:20px;height:28px}.desk-tabs button{flex:1;padding:7px 8px;font-size:11px}}

/* One header row: title, project and Rhys beside Close. Main owns all remaining height. */
.desk-head{grid-template-columns:minmax(100px,1fr) minmax(0,1.4fr) auto;align-items:center;gap:8px;padding-top:calc(var(--game-safe-top,0px) + 4px);padding-bottom:4px}
.desk-head-actions{display:flex;align-items:center;gap:6px;justify-content:flex-end}.desk-head .desk-heading>small{display:none}.desk-head h2{margin:0;font-size:20px}.desk-head .journey-desk-link{min-height:44px;height:44px;max-height:44px;padding:3px 6px;gap:5px}.desk-head .journey-desk-link img{width:32px;height:32px}.desk-head .journey-desk-link small{display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:11px}.desk-head .journey-desk-link strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.desk-tabs{padding-top:0;padding-bottom:4px}.desk-tabs button{min-height:40px;padding:5px 10px}.desk-dialog #desk-body{flex:1 1 0%;min-height:0;height:auto;max-height:none;padding-top:2px}
@media(max-width:600px){.desk-head{grid-template-columns:minmax(80px,.85fr) minmax(0,1fr) auto;gap:5px;padding-left:max(8px,var(--game-safe-left,0px));padding-right:max(8px,var(--game-safe-right,0px))}.desk-head h2{font-size:16px}.desk-head-actions{gap:4px}.desk-head-actions #desk-listen{width:44px;height:44px;padding:2px}.desk-head-actions #desk-listen span{display:none}.desk-head-actions #desk-listen img{width:29px;height:34px}.desk-head .journey-desk-link img{display:none}.desk-head .journey-desk-link strong,.desk-head .journey-desk-link small{font-size:10px}.desk-tabs{gap:4px;padding-left:8px;padding-right:8px}.desk-tabs button{font-size:11px}}
