/* Midnight Studio — the presentation shell. Production controls retain their IDs. */
body.midnight-v2 {
  --studio-navy:#0d1d32;
  --studio-gold:#f1d196;
  --studio-ink:#e9eef8;
  --studio-muted:#96a6bd;
  --studio-line:rgba(190,208,229,.32);
  margin:0;
  min-width:320px;
  min-height:100svh;
  overflow-x:hidden;
  color:var(--studio-ink);
  font-family:Arial,Helvetica,sans-serif;
  font-size:14px;
  line-height:1.45;
  background:radial-gradient(ellipse at 50% 45%,#172c45 0%,#102139 48%,#0b192c 100%);
  image-rendering:auto;
  color-scheme:dark;
}
body.midnight-v2 *,body.midnight-v2 *::before,body.midnight-v2 *::after {box-sizing:border-box}
body.midnight-v2 button,body.midnight-v2 input,body.midnight-v2 select,body.midnight-v2 textarea {font:inherit}
body.midnight-v2 button {cursor:pointer}
body.midnight-v2 button:focus-visible,body.midnight-v2 a:focus-visible,body.midnight-v2 input:focus-visible,body.midnight-v2 select:focus-visible,body.midnight-v2 textarea:focus-visible,body.midnight-v2 summary:focus-visible {
  outline:2px solid #f1d196;
  outline-offset:4px;
}
body.midnight-v2 .studio-app {position:relative;width:100%;max-width:2300px;min-height:100svh;margin:0 auto;isolation:isolate}
body.midnight-v2 .studio-header {
  position:absolute;inset:16px 18px auto 18px;z-index:30;
  display:flex;align-items:flex-start;justify-content:space-between;gap:24px;
  width:auto;max-width:none;margin:0;padding:0;border:0;pointer-events:none;
}
body.midnight-v2 .studio-brand {display:flex;align-items:center;gap:12px;color:var(--studio-gold);flex-shrink:0;pointer-events:auto}
body.midnight-v2 .moon-logo {display:block;width:70px;height:70px;flex:none;filter:drop-shadow(0 3px 6px #020a1330)}
body.midnight-v2 .studio-brand h1 {
  margin:0;color:#f0d39f;font-family:Georgia,'Times New Roman',serif;
  font-size:clamp(23px,1.96vw,37px);font-weight:400;line-height:1.12;
  letter-spacing:.015em;text-transform:uppercase;text-shadow:0 2px 5px #0004;
}
body.midnight-v2 .studio-brand p {margin:5px 0 0 5px;color:#8e9bae;font-size:10px;line-height:1.4;letter-spacing:.59em;text-transform:uppercase;white-space:nowrap}
body.midnight-v2 .studio-status {
  display:grid;grid-template-columns:1fr auto;column-gap:23px;row-gap:6px;
  min-width:244px;padding:13px 14px 11px;border:1px solid var(--studio-line);border-radius:8px;
  color:#eef4ff;background:linear-gradient(125deg,#10223bdd,#0c1729e6);
  box-shadow:inset 0 1px 0 #ffffff06,0 5px 15px #02091519;pointer-events:auto;
}
body.midnight-v2 .connection-indicator {display:flex;align-items:center;gap:8px;color:#77e5ac;font-size:14px;white-space:nowrap}
body.midnight-v2 .connection-dot {width:11px;height:11px;flex:none;border-radius:50%;background:#43d98c;box-shadow:0 0 10px #43d98c19}
body.midnight-v2 .studio-status time {font-size:14px;font-variant-numeric:tabular-nums;white-space:nowrap}
body.midnight-v2 .studio-status small {grid-column:1 / -1;margin-left:18px;color:#8292ab;font-size:12px}
body.midnight-v2 .studio-nav {position:absolute;top:111px;left:15px;z-index:35;display:grid;gap:14px;width:133px}
body.midnight-v2 .studio-nav button {
  display:flex;align-items:center;gap:11px;width:100%;min-height:30px;padding:5px 4px;
  border:1px solid transparent;border-radius:5px;color:#d3dae7;background:transparent;
  text-align:left;font-size:13px;line-height:1.3;transition:color .16s,background .16s;
}
body.midnight-v2 .studio-nav button svg {width:21px;height:21px;flex:none;color:#d3d9e6}
body.midnight-v2 .studio-nav button:hover {color:#ffebc7;background:#e6c7890c}
body.midnight-v2 .studio-nav button:hover svg,body.midnight-v2 .studio-nav button[aria-current="page"] svg {color:#f0d39f}
body.midnight-v2 .studio-nav button[aria-current="page"] {color:#f0d39f}
body.midnight-v2 #studioMain {position:relative;display:flex;align-items:center;justify-content:center;width:100%;max-width:none;min-height:100svh;margin:0;padding:0;gap:0}
body.midnight-v2 .office-viewport {position:relative;width:100%;overflow:hidden;flex:none}
body.midnight-v2 #office.office {
  position:relative;width:100%;height:auto;min-height:0;aspect-ratio:1672 / 941;
  margin:0;padding:0;overflow:visible;border:0;outline:0;border-radius:0;
  background:transparent;box-shadow:none;isolation:isolate;
}
body.midnight-v2 .floating-card {
  position:absolute;z-index:25;bottom:18px;margin:0;padding:15px 17px 16px;
  border:1px solid rgba(190,208,229,.42);border-radius:8px;
  background:linear-gradient(135deg,rgba(12,25,44,.94),rgba(8,19,34,.9));
  box-shadow:0 8px 25px #030a161a,inset 0 1px 0 #ffffff06;
  backdrop-filter:blur(12px);color:#ecf0f8;
}
body.midnight-v2 .episode-card {left:16px;width:316px}
body.midnight-v2 .activity-card {right:16px;width:244px}
body.midnight-v2 .floating-card h2 {display:flex;align-items:center;gap:9px;margin:0 0 14px;color:#f0f2fa;font-size:16px;font-weight:600;line-height:1.25}
body.midnight-v2 .floating-card h2 svg {width:20px;height:20px;flex:none;color:#e0e8f6}
body.midnight-v2 .floating-card p {margin:0 0 10px}
body.midnight-v2 .floating-card .episode-title {margin:0 0 12px;color:#f0f1f7;font-size:16px;font-weight:500;line-height:1.4}
body.midnight-v2 .floating-card .card-kicker {margin:0 0 5px;color:#95a6bf;font-size:10px;font-weight:500;letter-spacing:.12em;text-transform:uppercase}
body.midnight-v2 .floating-card .empty-state {color:#96a6bc;font-size:13px;line-height:1.6}
body.midnight-v2 .floating-card .empty-state:last-child {margin-bottom:0}
body.midnight-v2 .progress-row {display:flex;align-items:center;gap:12px;color:#d9e3f1;font-size:14px;font-variant-numeric:tabular-nums}
body.midnight-v2 .episode-progress,body.midnight-v2 .progress-track {height:17px;flex:1;overflow:hidden;border:1px solid #3c5678;border-radius:99px;background:#0c1c31;box-shadow:inset 0 2px 6px #0003}
body.midnight-v2 .progress-fill {display:block;height:100%;min-width:0;border-radius:inherit;background:linear-gradient(90deg,#2269ec,#3c89ff);box-shadow:0 0 15px #2977e644;transition:width .4s ease}
body.midnight-v2 .activity-list {display:grid;gap:8px;margin:0;padding:0;list-style:none}
body.midnight-v2 .activity-list li {display:flex;align-items:center;gap:11px;margin:0;color:#cad3e2;font-size:12px;line-height:1.4;min-width:0}
body.midnight-v2 .activity-list li > span:last-child {min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.midnight-v2 .activity-dot {display:inline-block;width:11px;height:11px;flex:none;border-radius:50%;background:var(--agent-color,#5fbcdd)}
body.midnight-v2 .activity-name {color:#e3e9f3}
body.midnight-v2 .activity-state {color:#97a7be}
body.midnight-v2 .office-caption {position:absolute;bottom:12px;left:50%;z-index:26;max-width:calc(100% - 720px);margin:0;transform:translateX(-50%);color:#71869f;text-align:center;font-size:10px;line-height:1.6;letter-spacing:.11em;text-transform:uppercase}
body.midnight-v2 .office-caption span {color:#bdab87}
body.midnight-v2 .room-info {position:absolute;z-index:40;bottom:48px;left:50%;max-width:360px;padding:9px 14px;border:1px solid #d2bd8c55;border-radius:6px;transform:translateX(-50%);color:#ecd8ae;background:#0a192ced;box-shadow:0 5px 25px #02081555;text-align:center;font-size:12px;pointer-events:none}
body.midnight-v2 .room-info:empty {display:none}

/* Native dialogs keep the studio visible behind the working production tools. */
body.midnight-v2 .production-drawer,body.midnight-v2 .account-drawer {
  position:fixed;inset:18px 18px 18px auto;width:min(540px,calc(100vw - 36px));max-width:none;
  height:calc(100svh - 36px);max-height:calc(100svh - 36px);margin:0;padding:22px;overflow-y:auto;
  color:#e7edf6;border:1px solid #65759088;border-radius:12px;
  background:linear-gradient(145deg,#15263e,#0c1a2e);box-shadow:-15px 0 65px #01091666;
  overscroll-behavior:contain;
}
body.midnight-v2 .production-drawer:not([open]),body.midnight-v2 .account-drawer:not([open]) {display:none}
body.midnight-v2 .production-drawer::backdrop,body.midnight-v2 .account-drawer::backdrop {background:#020b195c;backdrop-filter:blur(3px)}
body.midnight-v2 .drawer-header {position:relative;display:flex;align-items:center;justify-content:space-between;gap:15px;max-width:none;margin:0 0 20px;padding:0 0 16px;border:0;border-bottom:1px solid #a5b6cf26}
body.midnight-v2 .drawer-header h2,body.midnight-v2 .drawer-header h1 {margin:0;color:#f1d196;font-family:Georgia,'Times New Roman',serif;font-size:24px;font-weight:400;letter-spacing:0;text-transform:none;text-shadow:none}
body.midnight-v2 [data-close-drawer] {display:grid;place-items:center;flex:none;width:34px;height:34px;padding:0;border:1px solid #7890b244;border-radius:6px;color:#cbd7e8;background:#20334d;font-size:23px;line-height:1}
body.midnight-v2 [data-close-drawer]:hover {color:#fff;background:#2b4260}
body.midnight-v2 .production-drawer > label {display:block;margin:0 0 7px;color:#9baec7;font-size:12px}
body.midnight-v2 #teamSelect {display:block;width:100%;padding:11px 12px;margin:0 0 20px;border:1px solid #8193ad66;border-radius:6px;color:#f0d5a2;background:#0c1b30}
body.midnight-v2 .production-drawer #panel {position:static;width:100%;min-width:0;margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none}
body.midnight-v2 #panel h2 {margin:0 0 5px;color:#f1d5a4;font-family:Georgia,'Times New Roman',serif;font-size:25px;font-weight:400;line-height:1.25}
body.midnight-v2 #panel .role {margin:0 0 18px;color:#8eabc8;font-size:13px}
body.midnight-v2 #panel .card {margin:12px 0;padding:14px;border:1px solid #b9cbe50c;border-radius:8px;background:#1c304b}
body.midnight-v2 #panel .card small {display:block;margin-bottom:5px;color:#9fb5d1}
body.midnight-v2 #panel .controls {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:15px}
body.midnight-v2 #panel .controls button {min-height:39px;padding:9px 10px;border:1px solid #e1cca355;border-radius:6px;color:#16233a;background:#e7cea0;font-weight:600;font-size:12px}
body.midnight-v2 #panel .controls button:hover {background:#f3ddaf}
body.midnight-v2 #panel .controls button:disabled {cursor:wait;opacity:.55}
body.midnight-v2 #panel input,body.midnight-v2 #panel textarea,body.midnight-v2 #panel select {max-width:100%;border:1px solid #7085a261;border-radius:5px;color:#ebf0f8;background:#0e2036;padding:9px}
body.midnight-v2 #panel textarea {width:100%;resize:vertical}
body.midnight-v2 #panel .event-log {max-height:220px;overflow:auto}
body.midnight-v2 #panel .event {margin:8px 0;padding:5px 0 5px 10px;border-left:2px solid #d6b879;color:#c8d5e6;font-size:12px}
body.midnight-v2 #panel .event time {margin-right:4px;color:#8da6c4;font-size:11px}
body.midnight-v2 .account-drawer #authPanel {width:100%;padding:0;margin:0;border:0;border-radius:0;background:none;box-shadow:none}
body.midnight-v2 #authPanel h2 {margin:0 0 7px;font-size:21px;line-height:1.3}
body.midnight-v2 #authPanel p {color:#a1b3cd;font-size:13px;line-height:1.6}
body.midnight-v2 .auth-fields {display:grid;gap:10px}
body.midnight-v2 .auth-fields input {width:100%;padding:11px 12px;border:1px solid #7085a261;border-radius:6px;color:#f0f4fa;background:#0d1d32}
body.midnight-v2 .auth-fields input::placeholder {color:#8195af}
body.midnight-v2 .auth-actions {display:flex;gap:9px;margin-top:3px}
body.midnight-v2 .auth-actions button {flex:1;padding:10px;border:1px solid #e1cca355;border-radius:6px;color:#16233a;background:#e7cea0;font-size:13px;font-weight:600}
body.midnight-v2 .auth-actions button:last-child {color:#d2dfef;border-color:#7890b244;background:#253c5b}
body.midnight-v2 .auth-message {min-height:18px;margin-top:11px!important;color:#e4c993!important}
body.midnight-v2 .signed-in {color:#80dba9;font-weight:600}
body.midnight-v2 .library-list {display:grid;gap:9px;margin-top:12px;max-height:50svh;overflow:auto}
body.midnight-v2 .library-entry {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px}
body.midnight-v2 .library-episode {width:100%;padding:11px;text-align:left;border:1px solid #7186a340;border-radius:6px;color:#e6edf7;background:#1d304a}
body.midnight-v2 .library-episode:hover {background:#2b4362}
body.midnight-v2 .library-episode small {display:block;margin-top:4px;color:#99aec8}
body.midnight-v2 .library-delete {padding:9px;border:1px solid #af71744d;border-radius:6px;color:#f4bdbe;background:#472932}
body.midnight-v2 .library-ready {margin:12px 0;padding:12px;border:1px solid #6aae8966;border-radius:7px;background:#193d35}
body.midnight-v2 .library-ready > small {color:#a9dfbb}
body.midnight-v2 .library-current,body.midnight-v2 .library-empty {color:#a4b8d0;text-align:center}
body.midnight-v2 .library-script {max-height:50svh;overflow:auto;padding-right:5px}
body.midnight-v2 .library-script details {margin:9px 0;padding:10px;border-radius:6px;background:#1b2d46}
body.midnight-v2 .library-script summary {color:#e0d0ac;cursor:pointer}
body.midnight-v2 .image-tabs {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:12px}
body.midnight-v2 .image-tab {padding:8px;border:1px solid #6e83a555;border-radius:6px;color:#e8d9b7;background:#172941}
body.midnight-v2 .image-tab.active,body.midnight-v2 .image-tab:hover {background:#365174}
body.midnight-v2 .image-preview {overflow:hidden;margin-top:12px;border:1px solid #6c85a766;border-radius:7px;background:#0e1e34}
body.midnight-v2 .image-preview img {display:block;width:100%;max-height:52svh;object-fit:contain;background:#081321}
body.midnight-v2 .image-preview p {padding:0 10px}
body.midnight-v2 .close-image {display:block;width:100%;padding:8px;border:0;color:#e7eef9;background:#314965}
body.midnight-v2 .card audio {width:100%;margin-top:5px}
body.midnight-v2 .download-video {display:block;padding:10px;border-radius:6px;color:#172035;background:#e7cea0;font-weight:600;text-align:center;text-decoration:none}
body.midnight-v2 .render-error {color:#ffb1b1}
body.midnight-v2 [hidden] {display:none!important}

@media (min-width:1800px) {
  body.midnight-v2 .studio-header {inset:23px 24px auto}
  body.midnight-v2 .studio-nav {top:132px;left:22px;gap:18px}
  body.midnight-v2 .studio-nav button {font-size:14px}
  body.midnight-v2 .floating-card {bottom:24px}
  body.midnight-v2 .episode-card {left:24px;width:335px}
  body.midnight-v2 .activity-card {right:24px;width:267px}
}
@media (min-width:901px) and (max-width:1200px) {
  body.midnight-v2 .studio-header {inset:13px 13px auto}
  body.midnight-v2 .studio-brand {gap:8px}
  body.midnight-v2 .moon-logo {width:47px;height:55px}
  body.midnight-v2 .studio-brand h1 {font-size:23px}
  body.midnight-v2 .studio-brand p {font-size:8px;letter-spacing:.5em}
  body.midnight-v2 .studio-status {min-width:218px;padding:10px 12px;column-gap:14px}
  body.midnight-v2 .connection-indicator,body.midnight-v2 .studio-status time {font-size:12px}
  body.midnight-v2 .studio-status small {font-size:10px}
  body.midnight-v2 .studio-nav {top:88px;left:11px;width:112px;gap:8px}
  body.midnight-v2 .studio-nav button {font-size:11px;gap:8px}
  body.midnight-v2 .studio-nav button svg {width:18px;height:18px}
  body.midnight-v2 .episode-card {width:264px;left:13px}
  body.midnight-v2 .activity-card {width:222px;right:13px}
  body.midnight-v2 .floating-card {bottom:14px;padding:12px 13px}
  body.midnight-v2 .floating-card h2 {font-size:14px;margin-bottom:10px}
  body.midnight-v2 .floating-card .episode-title {font-size:14px}
  body.midnight-v2 .activity-list {gap:5px}
  body.midnight-v2 .activity-list li {font-size:11px;gap:8px}
  body.midnight-v2 .office-caption {max-width:calc(100% - 555px);font-size:9px}
}
@media (max-width:900px) {
  body.midnight-v2 .studio-app {padding-top:138px}
  body.midnight-v2 .studio-header {inset:17px 18px auto;gap:12px;align-items:center}
  body.midnight-v2 .studio-brand {gap:9px}
  body.midnight-v2 .moon-logo {width:44px;height:51px}
  body.midnight-v2 .studio-brand h1 {font-size:24px}
  body.midnight-v2 .studio-brand p {font-size:8px;letter-spacing:.43em;margin-left:2px}
  body.midnight-v2 .studio-status {min-width:0;padding:9px 11px;column-gap:12px;row-gap:4px}
  body.midnight-v2 .connection-indicator,body.midnight-v2 .studio-status time {font-size:11px}
  body.midnight-v2 .connection-dot {width:8px;height:8px}
  body.midnight-v2 .studio-status small {font-size:9px;margin-left:16px}
  body.midnight-v2 .studio-nav {top:87px;left:16px;right:16px;width:auto;display:flex;gap:4px;padding:5px;border:1px solid #a6b5cd18;border-radius:8px;background:#07162970}
  body.midnight-v2 .studio-nav button {justify-content:center;gap:8px;width:auto;flex:1;min-height:33px;font-size:12px;padding:5px 9px;white-space:nowrap}
  body.midnight-v2 .studio-nav button svg {width:17px;height:17px}
  body.midnight-v2 .studio-nav button[aria-current="page"] {background:#edce8d0c}
  body.midnight-v2 #studioMain {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:stretch;gap:14px;min-height:0;padding:0 16px 16px}
  body.midnight-v2 .office-viewport {grid-column:1 / -1;width:calc(100% + 32px);margin:0 -16px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#52647f #0c1c32;touch-action:pan-x pan-y}
  body.midnight-v2 #office.office {width:1050px;min-width:1050px;aspect-ratio:1672 / 941;margin:0}
  body.midnight-v2 .floating-card {position:relative;inset:auto;width:auto;margin:0;padding:15px 16px;backdrop-filter:none}
  body.midnight-v2 .episode-card {align-self:start;min-height:138px}
  body.midnight-v2 .activity-card {align-self:start}
  body.midnight-v2 .office-caption {position:relative;inset:auto;max-width:none;margin:0 18px;padding:1px 0 18px;transform:none;font-size:9px;letter-spacing:.08em}
  body.midnight-v2 .room-info {position:fixed;bottom:18px;max-width:calc(100vw - 40px);width:max-content}
}
@media (max-width:540px) {
  body.midnight-v2 .studio-app {padding-top:154px}
  body.midnight-v2 .studio-header {inset:15px 15px auto;display:flex;flex-wrap:wrap;align-items:center;gap:9px}
  body.midnight-v2 .studio-brand {gap:8px}
  body.midnight-v2 .moon-logo {width:39px;height:45px}
  body.midnight-v2 .studio-brand h1 {font-size:22px}
  body.midnight-v2 .studio-brand p {font-size:7px;letter-spacing:.47em}
  body.midnight-v2 .studio-status {width:100%;display:flex;align-items:center;justify-content:space-between;padding:5px 0;border:0;border-radius:0;background:transparent;box-shadow:none}
  body.midnight-v2 .studio-status small {display:none}
  body.midnight-v2 .connection-indicator {gap:6px;font-size:10px}
  body.midnight-v2 .studio-status time {font-size:10px;color:#a3b2c8}
  body.midnight-v2 .studio-nav {top:107px;left:12px;right:12px;gap:0;padding:3px}
  body.midnight-v2 .studio-nav button {gap:6px;padding:5px 6px;font-size:10px;min-height:32px}
  body.midnight-v2 .studio-nav button svg {width:15px;height:15px}
  body.midnight-v2 #studioMain {grid-template-columns:minmax(0,1fr);gap:12px;padding:0 13px 14px}
  body.midnight-v2 .office-viewport {width:calc(100% + 26px);margin:0 -13px}
  body.midnight-v2 .floating-card {padding:15px}
  body.midnight-v2 .episode-card {min-height:0}
  body.midnight-v2 .floating-card h2 {font-size:15px;margin-bottom:12px}
  body.midnight-v2 .activity-list {grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 13px}
  body.midnight-v2 .activity-list li {gap:7px;font-size:11px}
  body.midnight-v2 .activity-dot {width:9px;height:9px}
  body.midnight-v2 .production-drawer,body.midnight-v2 .account-drawer {inset:8px;width:calc(100vw - 16px);height:calc(100svh - 16px);max-height:calc(100svh - 16px);padding:18px;border-radius:9px}
  body.midnight-v2 .drawer-header h2 {font-size:22px}
}
@media (prefers-reduced-motion:reduce) {
  body.midnight-v2 *,body.midnight-v2 *::before,body.midnight-v2 *::after {scroll-behavior:auto!important;transition:none!important;animation:none!important}
}
/* Scene components are independent atlas pieces in the original 1672 × 941 space. */
body.midnight-v2 .studio-brand{text-decoration:none}
body.midnight-v2 .office-region,body.midnight-v2 .office-furnishing,body.midnight-v2 .office-door{position:absolute;pointer-events:none;margin:0;padding:0;border:0;overflow:visible}
body.midnight-v2 .office-region{z-index:2}
body.midnight-v2 .office-region[data-room="central"]{z-index:1}
body.midnight-v2 .office-furnishing{z-index:3}
body.midnight-v2 .office-door{z-index:4}
body.midnight-v2 .region-art{display:block;width:100%;height:100%;overflow:visible}
body.midnight-v2 .region-outline{fill:none;stroke:transparent;stroke-width:3;pointer-events:none}
body.midnight-v2 .office-region:focus-within .region-outline,body.midnight-v2 .office-furnishing:focus-within .region-outline{stroke:#f2d095;stroke-dasharray:5 5;filter:drop-shadow(0 0 4px #f2ce8088)}
body.midnight-v2 .room-sign{position:absolute;z-index:8;margin:0;padding:0;transform:translate(-50%,-50%) rotate(-6deg);white-space:nowrap;pointer-events:auto;font-family:Arial,Helvetica,sans-serif;font-size:clamp(8px,.88vw,17px);line-height:1.2;font-weight:700;text-transform:uppercase;letter-spacing:-.02em}
body.midnight-v2 .room-sign button{display:block;margin:0;padding:.36em .53em;color:#fff6db;background:linear-gradient(#172636,#0b1623);border:1px solid #778291;border-radius:1px;box-shadow:0 3px 3px #0007,0 -2px #b99e6a;font:inherit;text-transform:inherit;line-height:inherit}
body.midnight-v2 .room-sign button:hover{background:#233e55;color:white;border-color:#f0d09a}
body.midnight-v2 .desk-sign{transform:translate(-50%,-50%);font-size:clamp(8px,.84vw,15px);font-weight:400;letter-spacing:0;text-transform:none}
body.midnight-v2 .desk-sign button{padding:.38em .75em;border-radius:4px;box-shadow:0 3px 8px #0005;background:#0c192ae8}
body.midnight-v2 .office-region[data-room="lounge"] .room-sign{font-size:clamp(7px,.65vw,13px)}
body.midnight-v2 .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
body.midnight-v2 .activity-list button{display:flex;gap:10px;align-items:center;min-width:0;width:100%;padding:0;border:0;color:inherit;background:transparent;text-align:left;font-size:inherit;line-height:inherit}
body.midnight-v2 .activity-list button>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
body.midnight-v2 .activity-list button:hover .activity-name{color:#f4d394}
body.midnight-v2 .episode-stage{color:#94a7c1;font-size:11px;margin:9px 0 0!important}
body.midnight-v2 .episode-open{padding:0;margin-top:11px;border:0;background:transparent;color:#e9d09e;font-size:11px}
body.midnight-v2 .episode-open span{margin-left:6px}
body.midnight-v2 .office-caption span{display:block}
body.midnight-v2 .office-caption span+span{font-size:9px;letter-spacing:.02em;color:#8795a9;text-transform:none}
body.midnight-v2 .office-notice{position:fixed;z-index:100;top:95px;left:50%;transform:translateX(-50%);max-width:min(600px,calc(100vw - 36px));padding:15px 20px;background:#382d21;color:#ffe1aa;border:1px solid #b69b68;border-radius:6px;box-shadow:0 10px 30px #0008}
body.midnight-v2 .office-notice[hidden]{display:none}
body.midnight-v2 .startup-status{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);color:#d4c099}
body.midnight-v2 dialog.room-info{position:fixed;inset:0;width:min(450px,calc(100vw - 36px));max-width:none;height:max-content;max-height:85svh;margin:auto;padding:24px;transform:none;text-align:left;pointer-events:auto;color:#d9e3f2;border:1px solid #65759088;border-radius:12px;background:#14243a;overflow:auto}
body.midnight-v2 dialog.room-info:not([open]){display:none}
body.midnight-v2 dialog.room-info::backdrop{background:#020b195c;backdrop-filter:blur(3px)}
body.midnight-v2 .drawer-header small{display:block;color:#94a7c1;font-size:10px;letter-spacing:.12em;margin-bottom:4px}
body.midnight-v2 .library-image-list img{width:100%;height:auto}
@media(max-width:900px){body.midnight-v2 .room-sign{font-size:11px}body.midnight-v2 .desk-sign{font-size:10px}body.midnight-v2 .office-region[data-room="lounge"] .room-sign{font-size:9px}}
@media(prefers-reduced-motion:reduce){body.midnight-v2 *{scroll-behavior:auto!important;transition:none!important}}
body.midnight-v2 .office-region,body.midnight-v2 .office-furnishing,body.midnight-v2 .office-door{z-index:auto}
body.midnight-v2 .office-region[data-room="central"]{z-index:0}
body.midnight-v2 .region-hit{position:absolute;inset:0;width:100%;height:100%;padding:0;margin:0;border:0;border-radius:0;background:transparent;pointer-events:auto;cursor:pointer}
body.midnight-v2 .room-sign{z-index:10}
body.midnight-v2 .office-region:has(.region-hit:hover) .room-sign button,body.midnight-v2 .office-furnishing:has(.region-hit:hover) .room-sign button{border-color:#f1d196;box-shadow:0 0 12px #f0ce7b55,0 3px 3px #0007}
body.midnight-v2 #panel .card button{padding:9px 12px;border:1px solid #d0b777;border-radius:5px;background:#e5cb92;color:#152438;font-weight:600;font-size:12px;line-height:1.35}
body.midnight-v2 #panel .card button:hover{background:#f4dfb2}
body.midnight-v2 #panel .card button:disabled{opacity:.6;cursor:wait}
body.midnight-v2 #panel .card .image-tab,body.midnight-v2 #panel .card .close-image{background:#2a405e;border-color:#5e7596;color:#e4edf8}
body.midnight-v2 #panel .card .image-tab.active{background:#536c90}
