/* BoraMello's own layer. The scene's styles are the copied /office.css; nothing here edits them, it only overrides for the service.
 * `body.service` = what visitors see: the scene fills the window and the workshop's controls are hidden (they stay in the page: Jarvis presses them).
 * Without that class (?dev=1) the workshop layout shows with every control. */
:root{font-family:"Segoe UI","Malgun Gothic","Apple SD Gothic Neo",sans-serif;font-synthesis:none;color-scheme:dark}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;background:#0d2a31;color:#eef8f6;font-size:14px}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #7fe0cf;outline-offset:2px}
body:not(.service){background:#f6f7f4;color:#243331;color-scheme:light}
body:not(.service) #main{max-width:1500px;margin:0 auto;padding:16px}

/* ---- service: the scene is the page ---- */
body.service{overflow:hidden;height:100dvh}
body.service .office{border:0;border-radius:0;margin:0;background:none;box-shadow:none;overflow:visible}
body.service .office>:not(.office-stage){display:none!important}
body.service .campus .office-stage{position:fixed;inset:0;z-index:1;width:100vw!important;height:100vh!important;height:100dvh!important;max-width:none;max-height:none;border:0;border-radius:0;margin:0}
body.service .office-stage canvas{touch-action:none}
body.service .office-stage :is(.office-caption,.campus-metrics,.office-hint,.office-zoom,.campus-fullscreen-tools,.office-menu-tab){display:none!important}

/* ---- top bar ---- */
.bm-top{position:absolute;z-index:20;top:max(12px,env(safe-area-inset-top));left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right));display:flex;align-items:center;gap:8px;pointer-events:none}
.bm-top>*{pointer-events:auto}
.bm-brand{font-weight:700;letter-spacing:.02em;font-size:16px;color:#fff;text-shadow:0 1px 8px #0009;margin-right:4px}
.bm-weather{flex:0 1 auto;min-width:0;margin-right:auto;padding:6px 11px;border-radius:999px;background:#0c2228b8;color:#e2f4f0;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;backdrop-filter:blur(6px)}
.bm-icon{flex:none;padding:6px 11px;border:1px solid #ffffff2e;border-radius:999px;background:#0c2228b8;color:#eafaf6;font-size:12px;text-decoration:none;backdrop-filter:blur(6px)}
.bm-icon:hover{background:#12343cd9}
.bm-icon[aria-pressed="true"]{border-color:#7fe0cf;color:#b9f4e8}
.is-walking .bm-top,.is-flying .bm-top,.is-driving .bm-top{opacity:.0;pointer-events:none;transition:opacity .3s}
.is-walking .bm-top>*,.is-flying .bm-top>*,.is-driving .bm-top>*{pointer-events:none}
@media(max-width:640px){.bm-brand{font-size:14px}.bm-icon{padding:6px 9px}.bm-top a.bm-icon{display:none}}

/* ---- welcome ---- */
.bm-intro{position:fixed;inset:0;z-index:50;display:grid;place-items:center;padding:20px;background:radial-gradient(120% 90% at 50% 20%,#0d2a3180,#0a1d23e6);transition:opacity .55s ease}
.bm-intro[hidden]{display:none}
.bm-intro.is-leaving{opacity:0;pointer-events:none}
.bm-intro-card{width:min(460px,100%);padding:30px 28px 24px;border:1px solid #ffffff24;border-radius:18px;background:#0c2228d9;box-shadow:0 20px 60px #0008;backdrop-filter:blur(10px)}
.bm-kicker{margin:0 0 6px;font-size:11px;letter-spacing:.22em;color:#8fd6c9}
.bm-intro h1{margin:0 0 10px;font-size:38px;line-height:1.1;letter-spacing:-.01em;color:#fff}
.bm-lead{margin:0 0 16px;font-size:16px;line-height:1.55;color:#e3f3f0}
.bm-points{margin:0 0 22px;padding:0 0 0 18px;display:grid;gap:7px;color:#c2dcd7;line-height:1.5}
.bm-points b{color:#fff}
.bm-enter{width:100%;padding:14px 18px;border:0;border-radius:12px;background:#59d2bd;color:#06231f;font-weight:700;font-size:16px}
.bm-enter:hover:not(:disabled){background:#74e3cf}
.bm-enter:disabled{background:#35585a;color:#a9c6c2;cursor:progress}
.bm-small{margin:14px 0 0;font-size:12px;line-height:1.5;color:#93b3ae}
.bm-small a{color:#b9f4e8}
@media(prefers-reduced-motion:reduce){.bm-intro{transition:none}}

/* ---- Jarvis: the service's additions to the panel ---- */
body.service .jv-panel{background:rgba(10,28,34,.72);backdrop-filter:blur(8px);height:min(520px,70vh)}
.bm-chips{display:flex;gap:6px;padding:8px 10px 2px;overflow-x:auto;scrollbar-width:none}
.bm-chips::-webkit-scrollbar{display:none}
.bm-chips[hidden]{display:none}
.bm-chip{flex:none;padding:5px 10px;border:1px solid #4d7f7b;border-radius:999px;background:#12333a99;color:#d6f1ec;font-size:12px;white-space:nowrap}
.bm-chip:hover{background:#1b4750}
.bm-mic{flex:none;width:36px;border:1px solid #3e6a68;border-radius:8px;background:#12333a;color:#eafaf6}
.bm-mic.is-on{background:#7a2c2c;border-color:#d98a8a}
.bm-mic[hidden]{display:none}
.bm-links{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.bm-link{display:inline-block;padding:6px 11px;border:1px solid #59d2bd;border-radius:8px;background:#113a3a;color:#c9fbf0;font-size:12px;text-decoration:none}
.bm-link:hover{background:#18504e}

/* ---- the secretary's desk ---- */
.bm-desk{width:min(520px,calc(100vw - 24px));max-height:min(680px,calc(100dvh - 24px));padding:22px;border:1px solid #3e6a68;border-radius:16px;background:#0e262d;color:#eef8f6;overflow:auto}
.bm-desk::backdrop{background:#04121699;backdrop-filter:blur(3px)}
.bm-desk h2{margin:0 0 4px;font-size:22px}
.bm-desk h3{margin:0 0 10px;font-size:14px;color:#9fe0d4;letter-spacing:.02em}
.bm-desk-sub,.bm-desk-note{margin:0 0 12px;color:#a9c6c2;font-size:12.5px;line-height:1.55}
.bm-desk-close{float:right;padding:6px 12px;border:1px solid #3e6a68;border-radius:8px;background:none;color:#d6f1ec}
.bm-desk-part{margin-top:18px;padding-top:16px;border-top:1px solid #244349}
.bm-desk-list{list-style:none;margin:0 0 12px;padding:0;display:grid;gap:6px}
.bm-desk-list li{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:8px;background:#143139}
.bm-desk-list a{color:#fff;font-weight:600;text-decoration:none}
.bm-desk-list small{margin-right:auto;color:#8fb0ab}
.bm-desk-list button{padding:4px 9px;border:1px solid #5d4a4a;border-radius:6px;background:none;color:#e6b9b9;font-size:12px}
.bm-desk-empty{color:#8fb0ab}
.bm-desk-row{display:grid;grid-template-columns:1fr 1.4fr auto;gap:8px;margin-bottom:8px}
.bm-desk-col{display:grid;gap:8px;margin-bottom:10px}
.bm-desk :is(input,select){min-width:0;padding:9px 10px;border:1px solid #33575b;border-radius:8px;background:#0a1d23;color:#eef8f6}
.bm-desk form button{padding:9px 14px;border:0;border-radius:8px;background:#59d2bd;color:#06231f;font-weight:600}
.bm-desk form button[type=button]{background:none;border:1px solid #5d4a4a;color:#e6b9b9}
@media(max-width:520px){.bm-desk-row{grid-template-columns:1fr}}

/* ---- credits page ---- */
.bm-page{max-width:760px;margin:0 auto;padding:40px 22px 60px;line-height:1.65}
.bm-page h1{font-size:28px;margin:0 0 6px}
.bm-page h2{font-size:17px;margin:30px 0 8px;color:#9fe0d4}
.bm-page a{color:#b9f4e8}
.bm-page li{margin:4px 0}
.bm-page p,.bm-page li{color:#cfe3df}

/* while walking, driving or flying the panel is shorter, so the mode's own gauges stay in view */
body.service :is(.is-walking,.is-driving,.is-flying) .jv-panel{height:min(300px,44vh)}
body.service :is(.is-walking,.is-driving,.is-flying) .bm-chips{display:none}
