/* C original company rooms. Scene plates carry material; live DOM carries people. */
:root{--scene-navy:#14263e;--scene-ink:#182a43;--scene-gold:#c49a53;--scene-paper:#faf6ed;--scene-edge:#ded6c5;--scene-focus:#176eab;}
body{background:#eeeae2;color:var(--scene-ink);}
body .office-page{max-width:1600px;padding:20px 24px 0;margin:auto;}
body .office-header{background:var(--scene-navy);color:#fff;border-radius:14px 14px 0 0;padding:16px 22px;gap:20px;margin:0;}
body .office-title{font-size:26px;letter-spacing:.08em;color:#e6c384;}
body .office-subtitle{font-size:12px;color:#e4ddd1;}
body .office-logo{width:38px;height:38px;object-fit:contain;}
body .office-online{color:#e4ddd1;font-size:12px;}
body .office-header-right{gap:18px;}
body .side-rail{position:static;transform:none;display:flex;flex-direction:row;flex-wrap:wrap;background:var(--scene-navy);padding:0 20px 10px;gap:4px;width:auto;z-index:2;}
body .side-tab{writing-mode:horizontal-tb;display:flex;flex-direction:row;align-items:center;gap:8px;width:auto;min-height:44px;min-width:44px;padding:10px 14px;border:0;border-radius:5px;background:transparent;color:#ece8df;box-shadow:none;}
body .side-tab:hover{background:#293e57;transform:none;}
body .side-tab-icon{font-size:18px;}
body .side-tab-text{font-size:14px;letter-spacing:0;}
body .side-tab--active{background:#d2ad70;color:#14263e;}
body #officePage>.office-window{display:none;}
body #officeFloor2{display:grid;grid-template-columns:minmax(0,1fr) 250px;padding:0;border:0;border-radius:0 0 14px 14px;overflow:hidden;background:var(--scene-paper);box-shadow:0 12px 32px #16283d18;}
.scene-canvas{position:relative;min-width:0;isolation:isolate;overflow:hidden;container-type:size;background:#2b2118;}
.scene-canvas::after{content:'';position:absolute;inset:0;box-shadow:inset 0 -75px 60px -50px #261b14aa;pointer-events:none;z-index:0;}
body #deskGrid{position:absolute;inset:0;display:block;padding:0;z-index:2;}
.scene-portrait{display:flex;align-items:center;justify-content:center;width:clamp(48px,5.8vw,88px);aspect-ratio:1;margin:0 auto 7px;border:3px solid #c0d2dc;border-radius:50%;background:#263c53;overflow:hidden;box-shadow:0 4px 8px #0c1b3240;color:white;}
.scene-portrait img,.scene-person-photo img{height:100%;width:100%;object-fit:cover;}
.scene-person[aria-pressed=true] .scene-portrait{border-color:#e9bb58;outline:2px solid #fff4c7;outline-offset:3px;}
.scene-person:hover .scene-portrait{border-color:#e9bb58;}
.scene-detail{padding:28px 20px;display:flex;flex-direction:column;align-items:center;text-align:center;background:var(--scene-paper);border-left:1px solid var(--scene-edge);gap:10px;min-width:0;}
.scene-detail h2{font-size:20px;margin:0 0 12px;}
.scene-person-photo{display:flex;align-items:center;justify-content:center;width:132px;aspect-ratio:1;background:#243a51;border:3px solid #c8a05e;border-radius:50%;overflow:hidden;}
.scene-detail h3{font-size:24px;margin:12px 0 0;}
.scene-person-title{font-size:15px;font-weight:600;margin:0;color:#34506b;}
.scene-detail p{line-height:1.7;}
.scene-description{font-size:14px;color:#4d535a;margin:6px 0 20px;}
.scene-action{width:100%;min-height:54px;border:0;border-radius:10px;background:var(--scene-navy);color:#fff;font-size:17px;font-weight:600;cursor:pointer;padding:12px;}
.scene-action-gold{background:#dbb875;color:#192638;}
.scene-action:disabled{opacity:.55;cursor:not-allowed;}
.scene-voice-note{font-size:12px;color:#615641;margin:0;}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #fff;outline-offset:3px;box-shadow:0 0 0 7px #14263e;}
.scene-directory{margin:auto;width:min(860px,92vw);max-height:85dvh;border:1px solid var(--scene-edge);border-radius:14px;background:var(--scene-paper);color:var(--scene-ink);padding:24px;box-shadow:0 20px 60px #0b1c3a55;}
.scene-directory::backdrop{background:#102239b3;}
.scene-directory-head,.scene-directory-filters{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px;}
.scene-directory h2{margin:0;font-size:24px;}
.scene-directory button,.scene-directory input,.scene-directory select{min-height:44px;font:inherit;}
.scene-directory-head button{background:transparent;border:1px solid var(--scene-edge);border-radius:6px;padding:8px 14px;color:inherit;cursor:pointer;}
.scene-directory-filters label{display:flex;flex-direction:column;gap:6px;flex:1;font-size:13px;}
.scene-directory-filters input,.scene-directory-filters select{width:100%;padding:8px;border:1px solid #b2ab9d;border-radius:6px;background:white;color:var(--scene-ink);box-sizing:border-box;}
.scene-directory-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;}
.scene-directory-person{display:flex;flex-direction:column;align-items:center;gap:5px;padding:14px;background:white;border:1px solid var(--scene-edge);border-radius:8px;color:inherit;cursor:pointer;}
.scene-directory-person>span:last-child{font-size:13px;color:#4d535a;}
/* 數位員工擴編（E5）：召開全員會議前挑與會同事（沿用員工名單的版型；選了的用金色細框，同 Warm Selection） */
.meeting-picker-note{margin:-8px 0 6px;color:#4d535a;font-size:14px;line-height:1.6;}
.meeting-picker-status{margin:0 0 14px;font-size:14px;font-weight:700;color:var(--scene-ink);}
/* 只讓名單捲動：標題、說明、按鈕一直看得到（小手機也一樣） */
.meeting-picker[open]{display:flex;flex-direction:column;overflow:hidden;}
.meeting-picker>*{flex:none;}
.meeting-picker h2:focus{outline:none;}
.meeting-picker .meeting-picker-list{flex:1 1 auto;min-height:0;overflow-y:auto;padding:8px;margin:0 -8px;grid-auto-rows:max-content;align-content:start;}
.meeting-picker-person>*{flex:none;}   /* 卡片不被壓扁：名單高度不夠時捲動 */
.meeting-picker-person{position:relative;}
.meeting-picker-person>span:last-child{word-break:keep-all;text-align:center;}
.meeting-picker-person[aria-pressed=true]{border-color:#c49a53;background:#fdf6e6;box-shadow:inset 0 0 0 1px #c49a53;}
/* 選了的再加一個勾，不只靠顏色分辨 */
.meeting-picker-person[aria-pressed=true]::after{content:'';position:absolute;top:10px;right:10px;width:22px;height:22px;border-radius:50%;
  background:#14263e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;}
.meeting-picker-person[aria-disabled=true]{opacity:.45;cursor:not-allowed;}
.meeting-picker-person:focus-visible{outline:3px solid var(--scene-focus);outline-offset:2px;box-shadow:none;}
.meeting-picker-person[aria-pressed=true]:focus-visible{box-shadow:inset 0 0 0 1px #c49a53;}
.meeting-picker-photo{position:relative;width:56px;height:56px;border-radius:50%;overflow:hidden;display:grid;place-items:center;
  border:3px solid var(--agent-color,#d8d2c4);background:var(--agent-color,#9aa3b8);color:#fff;font-size:15px;font-weight:700;}
.meeting-picker-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;}
.meeting-picker-foot{display:flex;justify-content:flex-end;margin-top:18px;}
.meeting-picker-start{min-height:54px;padding:0 26px;border:0;border-radius:10px;background:var(--scene-navy);color:#fff;font:inherit;font-weight:700;cursor:pointer;}
.meeting-picker-start:hover:not(:disabled){background:#1f3654;}
.meeting-picker-start:disabled{opacity:.5;cursor:not-allowed;}
.meeting-picker-start:focus-visible{outline:3px solid var(--scene-focus);outline-offset:2px;}
/* Godzilla stands far off, behind the city (the chairman, 2026-10-09): it lives in .scene-glass, which has the glass box of
   the rain and a per-view sky mask (views/<city>/kaiju-*.png, scripts/build_sky_masks.py) — every building, tower, mountain,
   window bar and anything in front of the glass hides it. Its window stands on the view's skyline (--kaiju-sky-*, % of the
   plate, set by office-view.js) so the head, shoulders and spines clear the roofs in every city; the coordinates below are
   % of the glass box. A cool haze gradient and a hair of blur put it at a distance. */
.scene-glass{position:absolute;pointer-events:none;z-index:1;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;}
.scene-stage-lobby .scene-glass{left:22.01%;top:0;width:77.99%;height:46.12%;-webkit-mask-image:var(--kaiju-lobby,url('/assets/scenes/views/taipei/kaiju-lobby.png?v=kaiju-3'));mask-image:var(--kaiju-lobby,url('/assets/scenes/views/taipei/kaiju-lobby.png?v=kaiju-3'));}
/* 2026-10-09 the chairman: the position is right, the size 70% of the first cut (same centre, still standing on the skyline). */
/* Where the sky reaches low between towers, the box's bottom edge would show as a straight cut: the body fades into the haze instead. */
.scene-kaiju-window{position:absolute;left:49.24%;width:14.45%;height:42.5%;top:calc((var(--kaiju-sky-lobby,30.5) - 14.31) * 2.1683%);overflow:hidden;pointer-events:none;-webkit-mask-image:linear-gradient(#000 58%,transparent 90%);mask-image:linear-gradient(#000 58%,transparent 90%);}
.scene-kaiju{position:absolute;width:70%;height:66%;left:5%;bottom:-6%;background:linear-gradient(#5a6d85,#8b9cb2);clip-path:inset(2px);mask:url('/assets/kaiju-user-mask-20261014.svg') center/contain no-repeat;-webkit-mask:url('/assets/kaiju-user-mask-20261014.svg') center/contain no-repeat;display:none;animation:scene-kaiju-walk 24s ease-in-out infinite;opacity:.72;filter:blur(.35px);}
.office-kaiju .scene-kaiju{display:block;}
@keyframes scene-kaiju-walk{0%,100%{transform:translate(0,30%) scaleX(1)}40%{transform:translate(35%,0) scaleX(1)}60%{transform:translate(35%,0) scaleX(-1)}95%{transform:translate(0,30%) scaleX(-1)}}
/* The same company's executive room and conference room; existing call controls remain live. */
body .chairman-room,body.office-day .chairman-room{background:#b89973 var(--view-chairman-day,url('/assets/scenes/chairman-c.png')) center/cover no-repeat;border-radius:0 0 14px 14px;border:0;}
/* 董事長辦公室也跟著日夜：夜晚是原圖的室內夜間燈光＋各城市夜景（台北預設在 views/taipei）。 */
body:not(.office-day) .chairman-room{background-color:#2a2119;background-image:var(--view-chairman-night,url('/assets/scenes/views/taipei/chairman-night.webp?v=recut-1'));}
body .chairman-room-head{background:#faf6edee;color:var(--scene-ink);padding:18px 24px;}
body .chairman-title{color:var(--scene-ink);}
body .chairman-sub{color:#4d535a;}
body .chairman-body{background:transparent;grid-template-columns:210px minmax(0,1fr);min-height:620px;}
body .chairman-roster{background:#faf6edf2;color:var(--scene-ink);border-right:1px solid var(--scene-edge);}
body .chairman-emp{color:var(--scene-ink);background:#fff9;}
body .chairman-emp-title{color:#465a70;}
body .chairman-emp.active{background:#e9cc96;border-color:#bb9150;}
body .chairman-stage,body.office-day .chairman-stage{background:transparent;min-height:570px;}
body .chairman-wall,body .chairman-guest-sofa,body .chairman-foreground{visibility:hidden;}
body .chairman-stage-hint{color:var(--scene-ink);background:#faf6edee;border-radius:8px;padding:12px;}
body .floor3-room,body.office-day .floor3-room{background:#b89c78 var(--view-meeting-day,url('/assets/scenes/meeting-c.png')) center/cover no-repeat;border:0;border-radius:0 0 12px 12px;min-height:740px;}
/* Window views (設定 → 窗外景致): office-view.js sets --view-* to the chosen city's plates; unset means Taipei, the original plates. */
body:not(.office-day) .floor3-room{background-color:#2a2119;background-image:var(--view-meeting-night,url('/assets/scenes/views/taipei/meeting-night.webp?v=recut-1'));}
body .floor3-table-top,body .floor3-table-left,body .floor3-table-right,body .floor3-entrance{display:none;}
body #floor3Seats{position:absolute;left:3%;right:33%;bottom:6%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 10px;}
body .floor3-seat{position:relative;inset:auto!important;transform:none!important;width:auto;min-height:105px;background:#15283adb;border:1px solid #d3b67f;border-radius:10px;padding:8px;}
body .floor3-seat-avatar{width:56px;height:56px;margin:auto;}
body .floor3-seat-name{color:white;}
body .floor3-seat-label{color:#eee1c4;}
body .floor3-seat.active{outline:3px solid #edc060;outline-offset:3px;}
body .floor3-screen{top:5%;left:24%;width:35%;height:260px;transform:none;max-height:none;background:#14263eef;}
body .floor3-board{top:4%;right:2%;width:27%;height:86%;background:#faf6edf2;}
body .floor3-boss{top:7%;left:3%;transform:none;background:#faf6edf2;padding:8px;border-radius:8px;}
body .floor3-controls{background:var(--scene-paper);color:var(--scene-ink);padding:16px;}
body .floor3-status{color:var(--scene-ink);}
@media(max-width:1050px){body #officeFloor2{grid-template-columns:minmax(0,1fr) 205px;}.scene-detail{padding:20px 12px;}.scene-person-photo{width:106px;}.scene-detail h3{font-size:21px;}.scene-detail h2{font-size:17px;}body .office-clock{display:none;}body .office-header-right{gap:8px;}}
@media(max-width:700px){body .office-page{padding:8px 8px 0;}body .office-header{padding:12px;flex-wrap:wrap;}body .office-title{font-size:20px;}body .office-subtitle{font-size:10px;}body .office-header-right{width:100%;justify-content:space-between;}body .side-rail{padding:0 6px 8px;flex-wrap:nowrap;overflow-x:auto;}body .side-tab{flex-shrink:0;padding:8px 10px;}body .side-tab-icon{display:none;}body .side-tab-text{font-size:12px;}body #officeFloor2{display:flex;flex-direction:column;}.scene-canvas{aspect-ratio:1.05;width:100%;}.scene-detail{display:grid;grid-template-columns:64px 1fr 1fr;gap:8px;padding:16px;text-align:left;border-left:0;border-top:1px solid var(--scene-edge);}.scene-detail h2,.scene-description{display:none;}.scene-person-photo{width:56px;}.scene-detail #scenePersonAvatar{grid-column:1;grid-row:1/3;}.scene-detail h3{grid-column:2/4;font-size:20px;margin:0;}.scene-person-title{grid-column:2/4;}.scene-action{font-size:15px;min-height:48px;}.scene-detail #sceneText{grid-column:2;}.scene-detail #sceneVoice{grid-column:3;}.scene-voice-note{grid-column:2/4;}.scene-directory{padding:16px;}.scene-directory-list{grid-template-columns:repeat(2,minmax(0,1fr));}.scene-directory-filters{flex-direction:column;align-items:stretch;}body .chairman-body{display:flex;flex-direction:column;min-height:660px;}body .chairman-roster{width:auto;}body .chairman-roster-list{display:flex;overflow:auto;gap:8px;}body .chairman-emp{flex-shrink:0;width:150px;}body .chairman-stage,body.office-day .chairman-stage{min-height:440px;}body .floor3-room,body.office-day .floor3-room{min-height:1070px;}body #floor3Seats{left:3%;right:3%;bottom:38%;gap:10px;}body .floor3-screen{left:30%;top:3%;width:64%;height:225px;}body .floor3-board{left:3%;right:3%;width:auto;top:auto;bottom:2%;height:330px;}body .floor3-boss{top:4%;left:4%;}body .floor3-seat-avatar{width:48px;height:48px;}}
@media(prefers-reduced-motion:reduce){.scene-kaiju{animation:none;transform:translateY(15%);}}

body .chairman-stage-empty{background:#faf6ede6;color:var(--scene-ink);border-radius:10px;padding:18px;}
/* Override legacy vertical tabs and dark-room headings on the C surfaces. */
body .side-tab-text{writing-mode:horizontal-tb;text-orientation:mixed;}
body #officeFloor2{margin-top:0;}
.scene-canvas{aspect-ratio:16/9;}
.scene-detail h2,.scene-detail h3{color:var(--scene-ink);}
@media(min-width:1051px){body .office-page{max-width:1400px;}}
@media(max-width:700px){.scene-canvas{aspect-ratio:1.05;}}
body .office-footer{color:#596372;}
body .office-footer button{color:#344d69;}
body .chairman-back,body.office-day .chairman-back{background:#14263e;color:#fff;border:1px solid #14263e;}
body .chairman-roster-head{color:#182a43;}
body .floor3-boss-label{color:#574321;}
body .floor3-screen{left:27.5%;top:12.5%;width:33%;height:34%;}
body .floor3-seat.speaking{outline:3px solid #edc060;outline-offset:3px;}
@media(max-width:700px){body .floor3-screen{left:30%;top:3%;width:64%;height:225px;}}
body button:focus-visible,body a:focus-visible,body input:focus-visible,body select:focus-visible{outline:3px solid #fff;outline-offset:3px;box-shadow:0 0 0 7px #14263e;}
body .side-tab:focus-visible,body .scene-person:focus-visible{outline:3px solid #fff;outline-offset:3px;box-shadow:0 0 0 7px #14263e;}

body.office-day{background:#eeeae2;}
body .office-title,body.office-day .office-title{background:none;color:#e6c384;-webkit-text-fill-color:#e6c384;}
body .office-header .office-clock{color:#e4ddd1;}
/* Original C fills the browser: one navy bar (brand · navigation · status) above the room. */
@font-face{font-family:'Ensemo Display';src:url('/assets/fonts/noto-serif-tc-display.woff2') format('woff2');font-weight:600;font-style:normal;font-display:swap;}
body .office-page{width:100%;max-width:none;padding:0;margin:0;box-sizing:border-box;position:relative;}
body .office-header{display:flex;align-items:center;flex-wrap:nowrap;gap:clamp(14px,2vw,32px);min-height:76px;box-sizing:border-box;border-radius:0;padding:10px clamp(16px,2vw,28px);box-shadow:0 2px 10px #0b18291f;position:relative;z-index:5;}
body .office-brand{display:flex;align-items:center;gap:12px;flex-shrink:0;}
.office-mark{fill:#dcb56a;flex-shrink:0;}
body .office-title{font-size:24px;letter-spacing:.1em;margin:0;}
body .office-subtitle{font-size:11px;margin:2px 0 0;opacity:.85;}
body .office-header-right{display:flex;align-items:center;gap:14px;margin-left:auto;flex-shrink:0;}
body .office-clock{font-size:18px;font-variant-numeric:tabular-nums;}
body .office-online{font-size:11px;}
body .side-rail{position:static;transform:none;display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;gap:2px;padding:0;margin:0;background:transparent;pointer-events:auto;min-width:0;}
body .side-tab{position:relative;gap:8px;min-height:44px;padding:8px 12px;border-radius:6px;background:transparent;color:#ece8df;font-weight:500;white-space:nowrap;flex-shrink:0;}
body .side-tab:hover{background:#293e57;transform:none;box-shadow:none;filter:none;}
body .side-tab:active{transform:none;}
.side-tab-icon{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0;}
body .side-tab-text{font-size:14px;letter-spacing:.02em;}
body .side-tab--active,body .side-tab--active:hover{background:transparent;color:#e6c384;}
body .side-tab--active::after{content:'';position:absolute;left:12px;right:12px;bottom:3px;height:2px;border-radius:1px;background:#d2ad70;}
body.chairman-open #officeTab{color:#ece8df;}
body.chairman-open #officeTab::after{display:none;}
body #officeFloor2{border-radius:0;min-height:calc(100dvh - 76px - 27px);grid-template-columns:minmax(0,1fr) clamp(230px,18vw,300px);box-shadow:none;}
.scene-canvas{aspect-ratio:auto;min-height:600px;}
.scene-detail{justify-content:center;}
body .office-footer{margin:0;padding:5px 12px;font-size:11px;}
/* The wall sign sits on the left wood panel of the plate (stage coordinates); it is decoration, never a control. */
.scene-wall-brand{position:absolute;top:9%;left:2.6%;width:17%;display:flex;flex-direction:column;align-items:flex-start;gap:.35em;color:#d7a957;font-family:'Ensemo Display',serif;font-weight:600;text-shadow:0 1px 0 #fff2c94d,1px 2px 2px #2b1906cc,2px 4px 10px #2b190659;transform:perspective(1100px) rotateY(14deg) skewY(4deg);transform-origin:left center;z-index:1;pointer-events:none;}
.scene-brand-mark{width:clamp(30px,3.3vw,54px);height:auto;fill:#d7a957;filter:drop-shadow(1px 2px 2px #2b1906cc);margin-left:.15em;}
.scene-wall-brand strong{font-size:clamp(22px,2.3vw,40px);letter-spacing:.06em;line-height:1;}
.scene-wall-brand>span{font-size:clamp(9px,.85vw,14px);letter-spacing:.08em;color:#f6e4b8;white-space:nowrap;padding:.2em .55em;margin-left:-.55em;border-radius:3px;background:#3a26128c;text-shadow:none;}
body .floor3-room,body.office-day .floor3-room{min-height:clamp(560px,calc(100dvh - 76px - 78px),920px);border-radius:0;}
body .floor3-controls{position:sticky;bottom:0;z-index:12;border-top:1px solid #d1c6b2;box-shadow:0 -4px 15px #14263e18;}
body .chairman-room,body.office-day .chairman-room{border-radius:0;}
/* Medium widths: navigation takes its own row inside the navy bar and scrolls if needed. */
@media(max-width:1180px){body .office-header{flex-wrap:wrap;row-gap:4px;padding-bottom:4px;}body .side-rail{order:3;width:100%;overflow-x:auto;scrollbar-width:none;margin:0 -8px;}body .side-rail::-webkit-scrollbar{display:none;}body #officeFloor2{min-height:calc(100dvh - 128px - 27px);}.scene-canvas{min-height:540px;}}
@media(max-width:700px){body .office-header{padding:10px 12px 2px;gap:8px;}body .office-title{font-size:20px;}body .office-header-right{width:auto;gap:8px;}body .office-online{display:none;}body .side-tab{padding:8px 10px;}body .side-tab-text{font-size:13px;}body #officeFloor2{min-height:0;}.scene-canvas{aspect-ratio:1.05;min-height:0;}.scene-wall-brand{top:6%;left:2.5%;width:26%;}.scene-wall-brand strong{font-size:19px;}.scene-brand-mark{width:24px;}.scene-wall-brand>span{font-size:7.5px;letter-spacing:.02em;}.scene-detail{justify-content:normal;}body .floor3-room,body.office-day .floor3-room{min-height:1070px;}body .floor3-controls{gap:8px;padding:10px;}}
/* Godzilla rises from behind the window sill instead of being cut off mid-sky. */
@media(max-width:700px){body .office-subtitle{display:none;}body .office-brand{gap:8px;}.office-mark{width:28px;height:28px;}body .meeting-call-btn{font-size:13px;padding:7px 12px;min-height:40px;}.scene-wall-brand strong{font-size:16px;}.scene-brand-mark{width:20px;}}
body .meeting-call-btn{display:inline-flex;align-items:center;gap:7px;}
.meeting-call-icon{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0;}
body .chairman-scene,body .floor3-scene{margin-top:0;}
/* Legacy danger red (#f87171) fails contrast with white text; the C meeting bar uses a deeper red. */
body .floor3-controls .voice-btn-danger{background:#b23a2e;border-color:#b23a2e;color:#fff;}
body .floor3-controls .voice-btn-danger:hover{background:#9c2f25;}
/* 延長時間鈕在紙色控制列上：白底深字；最後 5 分鐘亮起暖金 */
body .floor3-controls .voice-btn-extend{background:#fff;border:1.5px solid #cdbb98;color:var(--scene-navy);}
body .floor3-controls .voice-btn-extend:hover:not(:disabled){background:#fffaf0;border-color:#b8975a;}
body .floor3-controls .voice-btn-extend.is-due{background:linear-gradient(135deg,#e4c88b,#cfab66);border-color:#b8975a;color:var(--scene-navy);}
/* Approved C home: the room runs edge to edge; the selected-colleague card floats over its right side. */
:root{--detail-w:clamp(236px,17.5vw,296px);}
@media(min-width:701px){
 body #officeFloor2{display:block;position:relative;}
 .scene-canvas{min-height:inherit;height:100%;}
 body #officeFloor2>.scene-canvas{min-height:calc(100dvh - 76px - 27px);}
 body #deskGrid{inset:0 calc(var(--detail-w) + 28px) 0 0;}
 .scene-detail{position:absolute;z-index:4;top:16px;right:16px;bottom:16px;width:var(--detail-w);box-sizing:border-box;padding:26px 20px 22px;border:1px solid #e7dcc6;border-left:1px solid #e7dcc6;border-radius:18px;background:#faf6edf7;box-shadow:0 14px 34px #1a120a40,0 2px 6px #1a120a1f;overflow:auto;}
 .scene-detail h2{position:relative;padding-bottom:12px;}
 .scene-detail h2::after{content:'';position:absolute;left:50%;bottom:0;width:62%;height:1px;transform:translateX(-50%);background:#cdae74;}
}
@media(min-width:701px) and (max-width:1180px){body #officeFloor2>.scene-canvas{min-height:calc(100dvh - 128px - 27px);}}
/* Identity ring + presence dot. */
.scene-portrait-wrap,.scene-person-photo-wrap{position:relative;display:block;width:max-content;margin:0 auto 7px;}
.scene-portrait-wrap .scene-portrait{margin:0;border-color:var(--agent-color,#c0d2dc);}
.scene-person-photo-wrap{margin:0 auto;}
.scene-person-photo-wrap .scene-person-photo{border-color:#c8a05e;}
.scene-online{position:absolute;right:6%;bottom:6%;width:22%;max-width:16px;min-width:9px;aspect-ratio:1;border-radius:50%;background:#43c46b;border:2px solid #fff;box-sizing:border-box;box-shadow:0 1px 3px #0c1b3266;}
.scene-person-photo-wrap .scene-online{right:9%;top:9%;bottom:auto;max-width:18px;}
.meeting-custody .scene-online{background:#d8962e;}
.scene-person[aria-pressed=true] .scene-portrait{border-color:#e9bb58;}
.scene-name strong{font-weight:700;}
.scene-name span{color:#e9c98d;}
.scene-person-heading{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:center;gap:4px 8px;}
.scene-person-heading .scene-person-title{font-size:inherit;font-weight:700;color:#2f6fae;margin:0;}
.scene-action{display:flex;align-items:center;justify-content:center;gap:10px;}
.scene-action-icon{width:22px;height:22px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;}
.scene-action-icon circle{fill:currentColor;stroke:none;}
.scene-detail #sceneText .scene-action-icon circle{fill:currentColor;}
.scene-detail .scene-action{border-radius:14px;box-shadow:0 4px 10px #14263e2e;}
.scene-detail .scene-action-gold{background:linear-gradient(180deg,#e4c88b,#cfab66);}
/* The sun sits behind Godzilla's head and only appears with it (the kaiju itself is a mask, so the sun lives on its window). */
.office-kaiju .scene-kaiju-window::before{content:'';position:absolute;left:87%;top:30%;width:10%;aspect-ratio:1;border-radius:50%;background:radial-gradient(circle,#fffbe8 0 30%,#ffeeb0 46%,#ffe19a00 70%);box-shadow:0 0 34px 16px #fff2c466;opacity:.95;}
@media(max-width:700px){.scene-detail .scene-action{border-radius:10px;}.scene-person-heading{justify-content:flex-start;grid-column:2/4;margin:0;}.scene-online{border-width:1.5px;}}
/* Godzilla faces the way it walks: right on the way out (toward the sun), left on the way back. */
@keyframes scene-kaiju-walk{0%,100%{transform:translate(0,30%) scaleX(-1)}40%{transform:translate(35%,0) scaleX(-1)}60%{transform:translate(35%,0) scaleX(1)}95%{transform:translate(0,30%) scaleX(1)}}
/* Quota used up: the chairman keeps every tab; the meeting button explains itself instead of vanishing. */
body .meeting-call-btn.is-exhausted,body .meeting-call-btn.is-exhausted:hover{background:#3a4c63;color:#d9d2c4;border-color:#55687f;box-shadow:none;filter:none;cursor:not-allowed;}
body .meeting-call-btn.is-exhausted .meeting-call-icon{opacity:.6;}
/* Meeting transcript board: the legacy 92px text area left most of the tall C board empty. */
body .floor3-board{display:flex;flex-direction:column;}
body .floor3-board-head{flex:none;padding:8px 14px;font-size:13px;}
body .floor3-board-body{flex:1 1 auto;min-height:0;max-height:none;padding:10px 14px 14px;font-size:14px;line-height:1.75;}
body .floor3-board.collapsed{height:auto;}
@media(max-width:700px){body .floor3-board-body{font-size:13px;}}

/* 正式會議紀錄（散會後的投影幕）：整理中 → 結論、待辦、下載 PDF。 */
body .floor3-screen.minutes{display:flex;flex-direction:column;width:33%;text-align:left;padding:12px 14px;}
body .floor3-screen.minutes .floor3-screen-avatarwrap,body .floor3-screen.minutes .floor3-screen-caption{display:none;}
body .floor3-screen.minutes .floor3-screen-status{color:#e9cf98;}
body .floor3-screen.minutes .floor3-screen-name{margin-top:2px;font-size:15px;line-height:1.45;overflow-wrap:anywhere;}
.floor3-minutes{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;margin-top:6px;}
.floor3-minutes[hidden]{display:none;}
.floor3-minutes-body{flex:1 1 auto;min-height:0;overflow-y:auto;font-size:12.5px;line-height:1.7;color:#dfe5ef;padding-right:6px;scrollbar-width:thin;scrollbar-color:#566a86 transparent;}
.floor3-minutes-body h4{margin:6px 0 2px;font-size:12.5px;font-weight:700;color:#e9cf98;}
.floor3-minutes-body p{margin:0;}
.floor3-minutes-body ol{margin:0;padding-left:1.4em;}
.floor3-minutes-body li+li{margin-top:2px;}
.floor3-minutes-body .floor3-minutes-note{margin-top:6px;color:#b6c0d0;}
.floor3-minutes-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px;}
.floor3-minutes-actions button,.floor3-minutes-actions a{display:inline-flex;align-items:center;min-height:36px;padding:6px 12px;border-radius:6px;font:inherit;font-size:13px;font-weight:650;text-decoration:none;cursor:pointer;}
.floor3-minutes-actions button{background:#dbb875;color:#192638;border:0;}
.floor3-minutes-actions button:hover:not(:disabled){background:#e6c78a;}
.floor3-minutes-actions button:disabled{opacity:.65;cursor:progress;}
.floor3-minutes-actions a{color:#f2ead9;border:1px solid #6b7f9c;}
.floor3-minutes-actions a:hover{border-color:#dbb875;}
@media(max-width:700px){body .floor3-screen.minutes{width:64%;}}
/* Desktop: grow into the free wall above the seats (seat block about 238px tall, 6% from the floor), keeping an 18px gap. */
@media(min-width:701px){body .floor3-screen.minutes{height:clamp(34%,calc(81.5% - 256px),50%);}}

/* ===== Approved B (2026-10-05): company lobby in 7 / 6 / 5 depth rows, office door cards, and 1–3 號辦公室.
   Plates sit in a cover-fitted stage, so rain, Godzilla, the plaque and desk anchors use photo coordinates. ===== */
body #officeFloor2{position:relative;}
#officeFloor2 [hidden]{display:none!important;}
.scene-stage{position:absolute;left:50%;top:40%;transform:translate(-50%,-40%);background:#2b2118 center/100% 100% no-repeat;}
.scene-stage-lobby{width:max(100cqw,100cqh * 1.7768);height:max(100cqh,100cqw / 1.7768);background-image:var(--view-lobby-day,url('/assets/scenes/office-c.png'));}
body:not(.office-day) .scene-stage-lobby{background-image:var(--view-lobby-night,url('/assets/scenes/office-c-night.jpg'));}
body:not(.office-day) .scene-wall-brand>span{background:#1d130a99;}
/* Lobby people: same 1/7 lattice for every row (partial rows centred), rows anchored on the plate's desks. */
.scene-canvas{--hs:max(100cqh,100cqw / 1.7768);}
.scene-person{position:absolute;left:var(--seat-x);top:calc((100cqh - var(--hs)) * .4 + var(--hs) * var(--row-y));transform:translate(-50%,calc(var(--ps) / -2));display:flex;flex-direction:column;align-items:center;gap:5px;width:calc(100% / 7);padding:0;border:0;background:transparent;color:#fff;font:inherit;text-align:center;cursor:pointer;}
.scene-person::after{content:'';position:absolute;inset:-6px 4px;}
.scene-row-front{--row-y:.645;--ps:clamp(46px,calc(var(--hs) * .118),104px);--name-fs:clamp(11px,calc(var(--hs) * .018),15px);z-index:3;}
.scene-row-middle{--row-y:.49;--ps:clamp(38px,calc(var(--hs) * .094),84px);--name-fs:clamp(10px,calc(var(--hs) * .0158),13.5px);z-index:2;}
.scene-row-back{--row-y:.445;--ps:clamp(32px,calc(var(--hs) * .076),66px);--name-fs:clamp(10px,calc(var(--hs) * .0145),12.5px);width:calc(var(--ps) * 1.35);z-index:2;}
.scene-person .scene-portrait-wrap,.room-person .scene-portrait-wrap{margin:0;}
.scene-person .scene-portrait,.room-person .scene-portrait{width:var(--ps);border-width:3px;box-shadow:0 6px 14px #0b131f73;}
.scene-row-back .scene-portrait,.room-desk-rear .scene-portrait{border-width:2px;}
.scene-name{display:block;box-sizing:border-box;max-width:100%;min-width:min(100%,calc(var(--ps) * 1.2));padding:.3em 1em;border:1px solid #ffffff2b;border-radius:999px;background:#14263eed;color:#fff;font-size:var(--name-fs);font-weight:700;line-height:1.3;letter-spacing:.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;box-shadow:0 3px 9px #0a14248c;}
.scene-role{font-size:calc(var(--name-fs) * .88);font-weight:600;line-height:1.35;color:#f8efdd;white-space:nowrap;text-shadow:0 1px 3px #000d,0 0 10px #000a;}
.scene-person[aria-pressed=true] .scene-portrait,.room-person[aria-pressed=true] .scene-portrait{border-color:#e9bb58;outline:2px solid #fff4c7;outline-offset:3px;box-shadow:0 0 22px #f2c76a8c,0 6px 14px #0b131f73;}
.scene-person:hover .scene-portrait,.room-person:hover .scene-portrait{border-color:#e9bb58;}
.scene-person:hover .scene-name,.room-person:hover .scene-name{background:#1d3352;}
.scene-person:focus-visible,.room-person:focus-visible{outline:none;box-shadow:none;}
.scene-person:focus-visible .scene-portrait,.room-person:focus-visible .scene-portrait{outline:3px solid #fff;outline-offset:3px;box-shadow:0 0 0 7px #14263e;}
/* Rain: falling streaks plus an overcast tint, only on the window glass. The layer is the glass's bounding box and the
   mask is the glass itself (scripts/build_glass_masks.py), so ceiling, frames, wall, monitors and plants stay dry. */
.scene-rain{position:absolute;overflow:hidden;pointer-events:none;opacity:0;transition:opacity .6s ease;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;}
.office-rain .scene-rain{opacity:1;}
.scene-rain::before{content:'';position:absolute;inset:0;background:linear-gradient(#08142a73,#0a162b40);}
body.office-day .scene-rain::before{background:linear-gradient(#77838fb8,#8792a08c 70%,#8792a066);}
.scene-rain i{position:absolute;top:0;width:1px;height:100%;background:linear-gradient(to bottom,transparent,#d6e4fb99 var(--len),transparent var(--len));animation:scene-rain-fall .7s linear infinite;will-change:transform;}
body.office-day .scene-rain i{background:linear-gradient(to bottom,transparent,#4d5f7cb3 var(--len),transparent var(--len));}
@keyframes scene-rain-fall{from{transform:rotate(13deg) translateY(-14%)}to{transform:rotate(13deg) translateY(100%)}}
.scene-stage-lobby .scene-rain{left:22.01%;top:0;width:77.99%;height:46.12%;-webkit-mask-image:url('/assets/scenes/lobby-glass.png');mask-image:url('/assets/scenes/lobby-glass.png');}
/* Godzilla is a dark silhouette at night; the sun behind it only shows by day. */
body:not(.office-day) .scene-kaiju{background:linear-gradient(#0c1526,#1c2943);opacity:.86;}
body:not(.office-day) .scene-kaiju-window::before{display:none;}
/* Door cards: bottom-right of the lobby, beside 查看全部員工 in the rail. */
/* Door cards live in the colleague card, grouped with 查看全部員工 at its foot (moved off the floor so no seat is ever covered). */
.scene-doors{display:flex;flex-direction:column;gap:8px;align-self:stretch;margin-top:auto;padding-top:14px;border-top:1px solid #e3d6bb;text-align:left;container-type:inline-size;}
.scene-doors-head{margin:0;font-size:13px;font-weight:700;letter-spacing:.1em;color:#6b5b3e;}
.scene-door-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;}
.scene-door{display:flex;flex-direction:column;align-items:stretch;gap:2px;min-width:0;box-sizing:border-box;padding:4px 4px 6px;border:1px solid #e2d6bd;border-radius:8px;background:#fff;color:#192c43;font:inherit;text-align:left;cursor:pointer;transition:border-color .15s,box-shadow .15s;}
.scene-door:hover{border-color:#c9a25e;box-shadow:0 3px 10px #6b4a1a29;}
.scene-door-thumb{display:block;width:100%;aspect-ratio:1.7;border-radius:5px;background:#3a2a1c var(--view-room-day-thumb,url('/assets/scenes/office-room-day-thumb.jpg')) center 58%/cover no-repeat;}
body:not(.office-day) .scene-door-thumb{background-image:var(--view-room-night-thumb,url('/assets/scenes/office-room-night-thumb.jpg'));}
.scene-door strong{margin-top:3px;padding:0 2px;font-size:12px;font-weight:700;line-height:1.3;white-space:nowrap;overflow:hidden;}
.scene-door-meta{display:flex;align-items:center;gap:3px;padding:0 2px;font-size:11.5px;line-height:1.3;color:#4a5566;white-space:nowrap;}
@container (max-width:228px){.scene-door-suffix{display:none;}}
.scene-door-meta svg,.scene-directory-open svg,.room-back svg,.room-popover svg,.room-empty svg{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0;}
.scene-door-meta svg{width:13px;height:13px;}
.scene-door.is-locked{border:1px dashed #bcb3a3;background:#f5f2eb;color:#7a828d;}
.scene-door.is-locked .scene-door-thumb{filter:grayscale(1) brightness(1.2);opacity:.5;}
.scene-door.is-locked .scene-door-meta{color:#8a919b;}
/* 總經理、董事長辦公室：辦公室卡片下面一排，總經理在左、董事長在右（董事長 2026-10-09）；每人只看得到自己的那間，位置固定 */
.scene-suite-list{grid-template-columns:repeat(2,minmax(0,1fr));}
.scene-suite-list[hidden]{display:none;}
.scene-suite-list .scene-door[data-suite="gm"]{grid-column:1;}
.scene-suite-list .scene-door[data-suite="chairman"]{grid-column:2;}
.scene-suite-list .scene-door-thumb{background:#b89973 var(--view-chairman-day,url('/assets/scenes/chairman-c.png')) center 62%/cover no-repeat;}
body:not(.office-day) .scene-suite-list .scene-door-thumb{background-image:var(--view-chairman-night,url('/assets/scenes/views/taipei/chairman-night.webp?v=recut-1'));}
.scene-note{position:absolute;z-index:9;margin:0;padding:8px 12px;border-radius:8px;background:#14263e;color:#fff;font-size:13px;font-weight:600;white-space:nowrap;transform:translate(-50%,calc(-100% - 10px));box-shadow:0 8px 20px #0b18294d;pointer-events:none;}
.scene-note::after{content:'';position:absolute;left:calc(50% + var(--arrow,0px));top:100%;transform:translateX(-50%);border:6px solid transparent;border-top-color:#14263e;}
/* Rail: status line for wandering colleagues, and the directory button at the bottom (as in B-1). */
.scene-person-status{margin:-10px 0 12px;font-size:13px;font-weight:600;color:#8a6424;}
.scene-person-status:empty{display:none;}
.scene-directory-open{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:48px;margin-top:2px;padding:10px 12px;border:0;border-radius:12px;background:var(--scene-navy);color:#fff;font:inherit;font-size:14.5px;font-weight:600;cursor:pointer;box-shadow:0 4px 10px #14263e2e;}
.scene-directory-open:hover{background:#1f3654;}
.scene-doors[hidden]+.scene-directory-open{margin-top:auto;}
.scene-directory-icon{width:20px;height:20px;}
.scene-directory-chevron{width:16px;height:16px;margin-left:-2px;opacity:.8;}
.scene-voice-note:empty{display:none;}
/* ---------- Offices ---------- */
.room-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:46px;box-sizing:border-box;padding:4px clamp(12px,2vw,24px);background:#1b2f4a;border-top:1px solid #2c4262;}
.room-back{display:inline-flex;align-items:center;gap:4px;min-height:40px;padding:6px 12px 6px 4px;border:0;border-radius:6px;background:transparent;color:#eef1f5;font:inherit;font-size:14px;font-weight:600;cursor:pointer;}
.room-back:hover{background:#2a4262;}
.room-back svg{width:20px;height:20px;stroke-width:2;}
.room-tabs{display:flex;align-items:stretch;border:1px solid #3c5577;border-radius:7px;background:#15263d;overflow:hidden;}
.room-tab{min-height:36px;padding:6px 18px;border:0;border-left:1px solid #3c5577;border-radius:0;background:transparent;color:#c9d2de;font:inherit;font-size:13px;letter-spacing:.02em;cursor:pointer;}
.room-tab:first-child{border-left:0;}
.room-tab:hover{background:#1f3654;color:#fff;}
.room-tab[aria-current=page]{background:#203856;color:#e6c384;font-weight:700;box-shadow:inset 0 -2px 0 #d2ad70,inset 0 0 0 1px #c9a25e;}
.room-tab.is-locked{color:#7f8da0;}
.room-tab:focus-visible{outline-offset:-3px;box-shadow:inset 0 0 0 3px #fff;}
.room-canvas{position:relative;overflow:hidden;isolation:isolate;min-height:calc(100dvh - 76px - 27px - 46px);background:#2a1d12;}
.room-canvas::before{content:'';position:absolute;inset:-30px;background:var(--view-room-day,url('/assets/scenes/office-room-day.jpg')) right center/cover no-repeat;filter:blur(16px) brightness(.72);}
body:not(.office-day) .room-canvas::before{background-image:var(--view-room-night,url('/assets/scenes/office-room-night.jpg'));}
.room-frame{position:absolute;inset:0;overflow:hidden;container-type:size;}
.room-stage{width:max(100cqw,100cqh * 1.791);height:max(100cqh,100cqw / 1.791);background-image:var(--view-room-day,url('/assets/scenes/office-room-day.jpg'));container-type:inline-size;}
body:not(.office-day) .room-stage{background-image:var(--view-room-night,url('/assets/scenes/office-room-night.jpg'));}
.room-stage .scene-rain{left:11.15%;top:0;width:88.85%;height:65.86%;-webkit-mask-image:url('/assets/scenes/room-glass.png?v=recut-1');mask-image:url('/assets/scenes/room-glass.png?v=recut-1');}
.room-stage .scene-glass{left:11.15%;top:0;width:88.85%;height:65.86%;-webkit-mask-image:var(--kaiju-room,url('/assets/scenes/views/taipei/kaiju-room.png?v=recut-1'));mask-image:var(--kaiju-room,url('/assets/scenes/views/taipei/kaiju-room.png?v=recut-1'));}
.room-stage .scene-kaiju-window{left:58.83%;width:17.96%;height:27.63%;top:calc((var(--kaiju-sky-room,26.7) - 13.29) * 1.5184%);}
.office-kaiju .room-stage .scene-kaiju-window::before{left:84%;top:16%;width:9%;}
.room-frame{--sw:max(100cqw,100cqh * 1.791);--sh:max(100cqh,100cqw / 1.791);}
/* The plaque lives in the frame: it tracks the plate's left wall but never slides out of the cropped view. */
.room-plaque{position:absolute;z-index:2;left:max(12px,calc((100cqw - var(--sw)) / 2 + var(--sw) * .016));top:calc((100cqh - var(--sh)) * .4 + var(--sh) * .085);display:flex;align-items:baseline;gap:.25em;box-sizing:border-box;margin:0;padding:.45em .8em .5em;border:2px solid #6f5330;border-radius:4px;background:linear-gradient(165deg,#3f2b18,#20140a 70%);color:#e9c67f;font-family:'Ensemo Display','Microsoft JhengHei',serif;font-size:clamp(12px,calc(var(--sw) * .0165),26px);font-weight:600;letter-spacing:.06em;line-height:1;white-space:nowrap;text-shadow:0 1px 0 #00000080;box-shadow:4px 8px 16px #000a,inset 0 0 0 3px #00000038,inset 0 1px 0 #ffffff1a;transform:perspective(900px) rotateY(20deg) rotateZ(-2deg);transform-origin:left center;}
.room-plaque-n{font-size:1.6em;line-height:.9;}
.room-desks{position:absolute;inset:0;z-index:2;}
.room-desk{position:absolute;inset:0;pointer-events:none;}
.room-desk-rear{--ps:clamp(30px,6.1cqw,84px);--name-fs:clamp(9px,1.05cqw,14px);}
.room-desk-front{--ps:clamp(34px,6.9cqw,96px);--name-fs:clamp(10px,1.15cqw,15px);}
.room-person{position:absolute;left:var(--x);top:var(--y);transform:translate(-50%,calc(var(--ps) / -2));display:flex;flex-direction:column;align-items:center;gap:4px;padding:0;border:0;background:transparent;color:#fff;font:inherit;cursor:pointer;pointer-events:auto;}
.room-person::after{content:'';position:absolute;inset:-6px -10px;}
.room-person.is-away .scene-portrait-wrap{visibility:hidden;}
.room-person.is-away .scene-name{opacity:.7;}
/* 數位員工擴編（E4）：已聘用、工作說明書待董事長生效的員工坐在位子上，但還不能撥打（頭像淡化＋「待生效」小牌，不可點） */
.room-pending{position:absolute;left:var(--x);top:var(--y);transform:translate(-50%,calc(var(--ps) / -2));display:flex;flex-direction:column;align-items:center;gap:4px;color:#fff;pointer-events:none;}
.room-pending .scene-portrait-wrap{margin:0;}
.room-pending .scene-portrait{width:var(--ps);border-width:3px;box-shadow:0 6px 14px #0b131f73;filter:grayscale(.6);opacity:.7;}
.room-desk-rear .room-pending .scene-portrait{border-width:2px;}
.room-pending .scene-online{display:none;}
.room-pending-tag{padding:.12em .75em;border-radius:999px;background:#fdfaf3eb;color:#5b4a2c;font-size:calc(var(--name-fs) * .85);font-weight:700;line-height:1.35;white-space:nowrap;box-shadow:0 2px 6px #0006;}
.room-empty{position:absolute;left:var(--x);top:var(--chair);transform:translate(-50%,-50%);display:inline-flex;align-items:center;gap:6px;padding:.42em 1.05em .42em .8em;border:1px solid #ffffff24;border-radius:999px;background:#1c1a18c7;color:#ece5d7;font-size:var(--name-fs);font-weight:600;white-space:nowrap;box-shadow:0 2px 8px #0007;}
.room-empty svg{width:1.25em;height:1.25em;}
.room-popover{position:absolute;z-index:6;transform:translateX(-50%);display:flex;gap:6px;padding:6px;border:1px solid #e3d7bf;border-radius:12px;background:#fdfaf3;box-shadow:0 12px 26px #120a0466,0 2px 6px #120a0430;}
.room-popover::before{content:'';position:absolute;left:calc(50% + var(--arrow,0px));top:-6px;width:10px;height:10px;border-left:1px solid #e3d7bf;border-top:1px solid #e3d7bf;background:#fdfaf3;transform:translateX(-50%) rotate(45deg);}
.room-popover button{display:inline-flex;align-items:center;gap:6px;min-height:38px;padding:6px 12px;border:1px solid #e0d5bf;border-radius:8px;background:#fff;color:#192c43;font:inherit;font-size:13.5px;font-weight:600;white-space:nowrap;cursor:pointer;}
.room-popover button:hover:not(:disabled){border-color:#c9a25e;background:#fffaf0;}
.room-popover button:disabled{opacity:.5;cursor:not-allowed;}
.room-popover svg{width:17px;height:17px;}
/* Wandering colleague: clone of the seated portrait, white 「…」 bubble as in B-2. */
.room-walker{position:absolute;z-index:5;}
.room-walker .scene-portrait-wrap{width:100%;height:100%;margin:0;}
.room-walker .scene-portrait{width:100%;border-width:3px;box-shadow:0 6px 14px #0b131f73;}
.room-walker.walking .scene-portrait-wrap{animation:walkerBob .46s ease-in-out infinite;}
.room-walker.chatting .scene-portrait-wrap{animation:walkerChat 1.5s ease-in-out infinite;}
.room-walker .office-walker-bubble{background:#fff;border-color:#e3d7bf;box-shadow:0 3px 8px #0005;}
.room-walker .office-walker-bubble::after{border-top-color:#fff;}
.room-walker .office-walker-bubble i{background:#2a3647;}
/* Size containers need a definite height (a min-height alone reports 0 to cq units in Chrome). */
@media(min-width:701px){
 #officeFloor2>.scene-canvas{height:max(600px,calc(100dvh - 76px - 27px));}
 #officeFloor2[data-view=office] .scene-detail{top:62px;}
 .room-frame{right:calc(var(--detail-w) + 16px);}
}
@media(min-width:701px) and (max-width:1180px){
 #officeFloor2>.scene-canvas{height:max(540px,calc(100dvh - 128px - 27px));}
 .room-canvas{min-height:calc(100dvh - 128px - 27px - 46px);}
 .scene-directory-open{gap:6px;padding:10px 8px;font-size:13.5px;}
 .scene-directory-open span{white-space:nowrap;}
}
@media(max-width:700px){
 .scene-row-front{--ps:42px;--name-fs:10px;}
 .scene-row-middle{--ps:32px;}
 .scene-row-back{--ps:26px;}
 .scene-row-middle .scene-name,.scene-row-back .scene-name,.scene-role{display:none;}
 .scene-name{padding:.25em .7em;}
 .scene-person .scene-portrait,.room-person .scene-portrait{border-width:2px;}
 .scene-detail .scene-doors{grid-column:1/-1;margin-top:6px;padding-top:12px;}
 .scene-door{padding:5px 5px 7px;}
 .scene-door strong{font-size:12.5px;}
 .room-bar{padding:4px 8px;gap:6px;}
 .room-back{font-size:13px;padding:6px 6px 6px 0;}
 .room-tab{padding:6px 8px;font-size:12px;letter-spacing:0;}
 .room-canvas{min-height:0;aspect-ratio:1.35;}
 .room-canvas::before{display:none;}
 .room-desk-rear{--ps:30px;--name-fs:9px;}
 .room-desk-front{--ps:34px;--name-fs:10px;}
 .room-empty{padding:.3em .7em .3em .55em;gap:4px;}
 .room-plaque{font-size:9px;padding:.6em .2em;}
 .room-popover button{min-height:40px;padding:6px 10px;font-size:13px;}
 .scene-detail .scene-person-status{grid-column:2/4;margin:0;}
 .scene-detail .scene-directory-open{grid-column:1/-1;margin-top:4px;min-height:44px;}
}
/* Short desktop windows: the card tightens so the offices and 查看全部員工 stay in view without scrolling. */
@media(min-width:701px) and (max-height:820px){
 .scene-detail{gap:8px;padding:18px 18px 16px;}
 .scene-detail h2{margin:0 0 4px;padding-bottom:8px;font-size:18px;}
 .scene-person-photo{width:96px;}
 .scene-detail h3{margin-top:4px;}
 .scene-description{margin:2px 0 8px;font-size:13px;line-height:1.55;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;}
 .scene-detail .scene-action{min-height:46px;font-size:16px;padding:8px 12px;}
 .scene-doors{padding-top:10px;gap:6px;}
 .scene-door-thumb{aspect-ratio:2.2;}
 .scene-directory-open{min-height:44px;}
}
@media(prefers-reduced-motion:reduce){.scene-rain i{animation:none;transform:rotate(13deg) translateY(var(--rest,30%));}}
/* 董事長辦公室標題：比照客戶會談室，左上角一張米白標題卡（不再拉滿整列，房間照片露出來）；「返回辦公室」收在卡片裡。
   日間規則（office.css 的 body.office-day .chairman-*）一併蓋過，日夜都是同一張卡。 */
body .chairman-room-head,body.office-day .chairman-room-head{width:fit-content;max-width:min(460px,100%);box-sizing:border-box;margin:0 0 16px;flex-direction:column;align-items:flex-start;gap:12px;padding:18px 24px 16px;border-radius:18px;background:#faf6edf7;box-shadow:0 14px 34px #1a120a40,0 2px 6px #1a120a1f;}
body .chairman-head-text{order:-1;}
body .chairman-room-head .chairman-title,body.office-day .chairman-room-head .chairman-title{margin:0;color:#14263e;font-size:clamp(28px,2.75vw,44px);font-weight:800;line-height:1.15;letter-spacing:.06em;}
body .chairman-room-head .chairman-sub,body.office-day .chairman-room-head .chairman-sub{margin:8px 0 0;color:#4d535a;font-size:clamp(13px,1vw,15px);line-height:1.5;}
body .chairman-room-head .chairman-back,body.office-day .chairman-room-head .chairman-back{padding:6px 14px;font-size:13px;border-radius:999px;}
@media(max-width:700px){body .chairman-room-head,body.office-day .chairman-room-head{padding:10px 14px;border-radius:14px;gap:8px;}body .chairman-room-head .chairman-title,body.office-day .chairman-room-head .chairman-title{font-size:22px;}body .chairman-room-head .chairman-sub,body.office-day .chairman-room-head .chairman-sub{margin-top:4px;font-size:12px;}}
/* 頁首分頁放不下一列時（office.js 量實際寬度後加 body.header-wrapped）：與 1180px 以下相同，分頁改到第二列、可橫向捲動；
   頁首變高（約 128px），各場景的高度跟著扣。 */
body.header-wrapped .office-header{flex-wrap:wrap;row-gap:4px;padding-bottom:4px;}
body.header-wrapped .side-rail{order:3;width:100%;overflow-x:auto;scrollbar-width:none;margin:0 -8px;}
body.header-wrapped .side-rail::-webkit-scrollbar{display:none;}
body.header-wrapped #officeFloor2{min-height:calc(100dvh - var(--office-head,128px) - 27px);}
body.header-wrapped #officeFloor2>.scene-canvas{min-height:calc(100dvh - var(--office-head,128px) - 27px);height:max(540px,calc(100dvh - var(--office-head,128px) - 27px));}
body.header-wrapped .room-canvas{min-height:calc(100dvh - var(--office-head,128px) - 27px - 46px);}
body.header-wrapped .floor3-room,body.header-wrapped.office-day .floor3-room{min-height:clamp(560px,calc(100dvh - var(--office-head,128px) - 78px),920px);}
body.header-wrapped .client-canvas{height:max(540px,calc(100dvh - var(--office-head,128px) - 27px));}
/* 公司 LOGO（董事長 2026-10-09）：公司名稱右邊、頁籤之前（左邊是身分、右邊是狀態與操作），
   整張圖直接顯示（四周留白也是 LOGO 的一部分，不加底框、不裁切），
   高度和「召開全員會議」鈕一樣（桌機 35px、手機 40px）；沒上傳就不顯示 */
body .office-company-logo{display:flex;align-items:center;flex-shrink:0;}
body .office-company-logo[hidden]{display:none;}
body .office-company-logo img{display:block;height:35px;width:auto;max-width:160px;object-fit:contain;border-radius:6px;}
@media(max-width:700px){body .office-company-logo{margin-left:6px;}body .office-company-logo img{height:40px;max-width:110px;}}
/* 頂端列右側各項同一條中線：會議鈕舊版直排時留下的上邊距在這一列裡會讓它比 LOGO、時間低 4px */
body .office-header .meeting-call-btn{margin-top:0;}
/* 文件審閱（董事長 2026-10-09 從頂端列移進總經理／董事長辦公室）：頁首卡片「返回辦公室」右邊 */
body .chairman-head-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;}
body .chairman-docs{display:inline-flex;align-items:center;gap:6px;padding:6px 14px;border-radius:999px;border:1px solid #14263e;color:#14263e;background:transparent;font-size:13px;font-weight:600;text-decoration:none;white-space:nowrap;}
body .chairman-docs:hover{background:#14263e14;}
body .chairman-docs:focus-visible{outline:2px solid #b8862f;outline-offset:2px;}
body .chairman-docs svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;}
body .chairman-docs-count{min-width:20px;height:20px;padding:0 6px;box-sizing:border-box;border-radius:999px;background:#b8862f;color:#fff;font-size:12px;line-height:20px;text-align:center;font-variant-numeric:tabular-nums;}
body .chairman-docs-count[hidden]{display:none;}
/* 頁首放不下一列時先收緊（office.js 量過才加 body.header-compact）：線上人數只留數字（文字留給讀屏）、分頁與間距變窄；還放不下才換列 */
body.header-compact .office-header{gap:16px;padding-left:16px;padding-right:16px;}
body.header-compact .office-header-right{gap:10px;}
body.header-compact .side-tab{padding:8px 9px;}
body.header-compact #onlineLabel{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;}
/* 手機頂端固定兩排（董事長 2026-10-10）：第一排 ENSEMO＋公司名稱、公司 LOGO、召開全員會議；第二排可橫向滑動的分頁＋待辦鈴鐺。
   鈴鐺加入後，原本的換列會把右側群組擠成第三排；改用格線，右側群組 display:contents，讓鈴鐺與會議鈕各自排位。
   公司名稱原本在手機隱藏（省寬度），董事長要看得到：縮成 10.5px、太長就省略。分頁右緣淡出，提示還可以往右滑。 */
@media(max-width:700px){
body .office-header{display:grid;grid-template-columns:auto auto minmax(0,1fr) auto auto;grid-template-areas:"brand logo . call call" "rail rail rail rail bell";align-items:center;column-gap:8px;row-gap:2px;}
body .office-brand{grid-area:brand;min-width:0;}
body .office-brand>div{min-width:0;}
body .office-subtitle{display:block;margin:1px 0 0;font-size:10.5px;line-height:1.3;max-width:42vw;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
body .office-company-logo{grid-area:logo;margin-left:0;}
body .office-header-right{display:contents;}
body .office-header .meeting-call-btn{grid-area:call;justify-self:end;}
body .office-header .notice-bell{grid-area:bell;}
body .office-header .office-clock,body .office-header .office-online{display:none;}
body .office-header .side-rail{grid-area:rail;order:0;width:auto;margin:0;padding:0 24px 0 0;min-width:0;overflow-x:auto;scrollbar-width:none;-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent);}
body .office-header .side-rail::-webkit-scrollbar{display:none;}
}
@media(max-width:374px){body .office-header .meeting-call-btn{padding:7px 10px;font-size:12.5px;}body .office-header .meeting-call-icon{display:none;}body .office-title{font-size:18px;}}
/* 頁首固定在頂端，只捲下面的畫面（董事長 2026-10-11：手機 PWA 滑動時頂端列不該跟著捲走，和管理頁一致）。
   z-index 40：在場景、員工頭像之上；對話、通話、會談控制列與各種彈窗（60 以上，或固定在底部的 30）照樣不受影響。 */
body .office-header{position:sticky;top:0;z-index:40;}
