:root {
  color-scheme: light;
  --ink: #17201d;
  --muted: #6c756f;
  --paper: #fffefa;
  --canvas: #f3f0e9;
  --line: #ddd9cf;
  --line-dark: #c8c2b6;
  --green: #176b50;
  --green-soft: #e4f1eb;
  --blue: #315ec8;
  --blue-soft: #e7edfc;
  --orange: #b75d24;
  --orange-soft: #fae9dd;
  --rose: #a94168;
  --rose-soft: #f7e3eb;
  --gold: #9a6a13;
  --gold-soft: #f4ead1;
  --danger: #b83b35;
  --shadow: 0 18px 55px rgba(46, 42, 33, .10);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--canvas); }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--canvas); }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(31px, 5vw, 51px); line-height: .98; letter-spacing: -.055em; }
h2 { font-size: 22px; letter-spacing: -.035em; }

.app-shell { width: min(1240px, 100%); min-height: 100vh; margin: 0 auto; padding: max(18px, env(safe-area-inset-top)) 24px 112px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 34px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; color: #fff; background: var(--ink); font: 800 18px/1 Georgia, serif; border-radius: 10px 10px 10px 3px; }
.brand b, .brand small { display: block; }
.brand b { font-size: 15px; letter-spacing: -.02em; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.shift-chip { display: flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 12px; color: var(--muted); background: rgba(255, 254, 250, .72); border: 1px solid var(--line); border-radius: 9px; font-size: 12px; }
.shift-chip span { width: 8px; height: 8px; background: #9ca39f; border-radius: 50%; }
.shift-chip.online span { background: #20a474; box-shadow: 0 0 0 4px rgba(32, 164, 116, .12); }
.shift-chip.closed span { background: var(--orange); }
.icon-button { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; color: var(--muted); background: var(--paper); border: 1px solid var(--line); border-radius: 9px; cursor: pointer; }
.icon-button:hover { color: var(--ink); border-color: var(--line-dark); }

.view { display: none; animation: view-in .2s ease; }
.view.active { display: block; }
@keyframes view-in { from { opacity: 0; transform: translateY(5px); } }
.overline { display: block; margin-bottom: 7px; color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.hero-line, .section-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.hero-line p, .section-title p { max-width: 640px; margin-top: 11px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 15px; color: var(--ink); background: var(--paper); border: 1px solid var(--line-dark); border-radius: 8px; font-size: 13px; font-weight: 720; cursor: pointer; text-decoration: none; }
.button.primary { color: #fff; background: var(--green); border-color: var(--green); box-shadow: 0 7px 20px rgba(23, 107, 80, .17); }
.button.danger { color: var(--danger); border-color: #e0b9b5; background: #fff8f7; }
.button.ghost { background: transparent; }
.button:disabled { opacity: .48; cursor: wait; box-shadow: none; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.stats article { display: flex; align-items: flex-end; justify-content: space-between; min-height: 82px; padding: 16px; background: rgba(255, 254, 250, .82); border: 1px solid var(--line); border-radius: 12px; }
.stats span { max-width: 90px; color: var(--muted); font-size: 12px; line-height: 1.3; }
.stats strong { font-size: 31px; line-height: 1; letter-spacing: -.06em; }

.office-room { position: relative; overflow: hidden; background: #d9c9ae; border: 1px solid #c8b89d; border-radius: 20px; box-shadow: 0 24px 60px rgba(46,42,33,.16); }
.office-roombar { position: relative; z-index: 8; display: flex; align-items: center; justify-content: space-between; min-height: 58px; padding: 0 18px; color: #f8f5ec; background: #17211e; border-bottom: 1px solid rgba(255,255,255,.08); }
.office-roombar > div:first-child { display: grid; grid-template-columns: auto auto; align-items: center; column-gap: 8px; }.office-roombar b { font-size: 13px; }.office-roombar small { grid-column: 2; color: #aebbb5; font-size: 9px; }
.room-live { grid-row: 1 / 3; width: 9px; height: 9px; background: #35d399; border-radius: 50%; box-shadow: 0 0 0 5px rgba(53,211,153,.12); }
.office-clock { min-width: 64px; padding: 7px 10px; color: #aee8d3; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 8px; font: 750 12px/1 ui-monospace, monospace; text-align: center; }
.office-scene { position: relative; min-height: 580px; overflow: hidden; isolation: isolate; background: linear-gradient(#f6f0e5 0 25%, transparent 25%), linear-gradient(145deg, #e3d6c1, #cab797); }
.office-scene::before { content: ""; position: absolute; z-index: -2; inset: 25% 0 0; background-image: linear-gradient(30deg, rgba(255,255,255,.18) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,.18) 87.5%), linear-gradient(150deg, rgba(255,255,255,.18) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,.18) 87.5%); background-size: 56px 96px; }
.office-scene::after { content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 25%; height: 13px; background: #aa8e67; box-shadow: 0 5px 12px rgba(75,57,35,.18); }
.scene-window { position: absolute; left: 36px; top: 25px; width: 176px; height: 92px; overflow: hidden; background: linear-gradient(#9fd0e9 0 68%, #9db98a 68%); border: 8px solid #fffefa; box-shadow: 0 7px 14px rgba(66,57,43,.15); }.scene-window::before, .scene-window::after { content: ""; position: absolute; z-index: 2; background: rgba(255,255,255,.9); }.scene-window::before { left: 50%; top: 0; width: 5px; height: 100%; }.scene-window::after { left: 0; top: 50%; width: 100%; height: 5px; }.scene-window i { position: absolute; left: 0; bottom: 24px; width: 105px; height: 28px; background: #6f8d80; clip-path: polygon(0 100%, 34% 12%, 56% 68%, 78% 0, 100% 100%); }.scene-window i:last-child { left: 75px; background: #537466; }
.scene-board { position: absolute; left: 50%; top: 27px; display: flex; align-items: center; gap: 10px; padding: 13px 16px; color: #d7e3dd; background: #25322e; border: 6px solid #d9c5a3; box-shadow: 0 6px 14px rgba(55,47,35,.16); transform: translateX(-50%) rotate(-.5deg); }.scene-board b { margin-right: 5px; color: #fff; font: 800 13px/1 Georgia,serif; letter-spacing: .12em; }.scene-board span { padding: 4px 6px; background: rgba(255,255,255,.08); border-radius: 3px; font-size: 7px; letter-spacing: .08em; }
.server-rack { position: absolute; z-index: 2; right: 30px; top: 31px; width: 58px; height: 106px; padding: 12px 8px; background: #33403c; border: 5px solid #202a27; border-radius: 5px; box-shadow: 0 8px 15px rgba(45,43,35,.2); }.server-rack i { display: block; height: 12px; margin-bottom: 8px; background: #18221f; border: 1px solid #59645f; }.server-rack i::after { content: ""; display: block; width: 4px; height: 4px; margin: 3px 0 0 5px; background: #48d9a5; border-radius: 50%; }.server-rack span { position: absolute; right: -12px; bottom: -10px; width: 24px; height: 34px; background: #a4b19f; border-radius: 50% 50% 7px 7px; }
.scene-plant { position: absolute; z-index: 2; bottom: 20px; width: 54px; height: 72px; }.scene-plant::after { content: ""; position: absolute; left: 11px; bottom: 0; width: 34px; height: 29px; background: #a9643f; border-radius: 5px 5px 13px 13px; }.scene-plant i, .scene-plant i::before, .scene-plant i::after { position: absolute; width: 23px; height: 42px; background: #3b8063; border-radius: 90% 10% 80% 20%; transform-origin: bottom; }.scene-plant i { left: 18px; bottom: 23px; }.scene-plant i::before, .scene-plant i::after { content: ""; left: 0; bottom: 0; }.scene-plant i::before { transform: rotate(-48deg); }.scene-plant i::after { transform: rotate(48deg) scale(.9); }.plant-left { left: 25px; }.plant-right { right: 25px; transform: scale(.8); }
.meeting-zone { position: absolute; z-index: 1; left: 50%; top: 310px; width: 220px; height: 90px; color: #72583d; background: #ba8a5e; border: 8px solid #9b6d48; border-radius: 50%; box-shadow: 0 14px 0 #745238, 0 23px 25px rgba(68,50,32,.17); transform: translateX(-50%); }.meeting-zone::before, .meeting-zone::after { content: ""; position: absolute; top: 17px; width: 40px; height: 48px; background: #6b7772; border-radius: 14px 14px 5px 5px; }.meeting-zone::before { left: -58px; }.meeting-zone::after { right: -58px; }.meeting-zone span { position: absolute; left: 50%; top: 20px; width: 55px; height: 38px; background: #ece6d9; border-radius: 4px; transform: translateX(-50%) rotate(-4deg); }.meeting-zone b { position: absolute; left: 50%; bottom: -38px; width: 100px; margin-left: -50px; padding: 5px; color: #f6f2e9; background: #4c5c55; border-radius: 5px; font-size: 8px; text-align: center; }
.studio-team { position: relative; z-index: 5; display: grid; grid-template-columns: repeat(2, minmax(220px, 1fr)); gap: 48px 300px; width: min(1080px, 100%); margin: 0 auto; padding: 74px 96px 45px; }
.station { --agent: var(--green); position: relative; min-width: 0; min-height: 205px; cursor: pointer; transition: transform .18s ease; }.station:hover { transform: translateY(-4px); }.station[data-tone="blue"] { --agent: var(--blue); }.station[data-tone="rose"] { --agent: var(--rose); }.station[data-tone="orange"] { --agent: var(--orange); }.station[data-tone="gold"] { --agent: var(--gold); }
.station-label { position: relative; z-index: 7; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 8px; width: min(235px, 100%); min-height: 50px; margin: 0 auto 8px; padding: 8px 10px; background: rgba(255,254,250,.95); border: 1px solid rgba(91,76,57,.18); border-radius: 11px 11px 11px 3px; box-shadow: 0 8px 20px rgba(65,51,34,.12); }.station-avatar { display: grid; place-items: center; width: 31px; height: 31px; color: #fff; background: var(--agent); border-radius: 9px 9px 9px 3px; font-size: 10px; font-weight: 850; }.station-copy { min-width: 0; }.station-copy b,.station-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.station-copy b { font-size: 11px; }.station-copy small { margin-top: 2px; color: var(--muted); font-size: 8px; }.agent-light { width: 8px; height: 8px; background: #a6ada9; border-radius: 50%; }.station.busy .agent-light { background: #21a374; box-shadow: 0 0 0 4px rgba(33,163,116,.12); animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .4; } }
.office-person { position: absolute; z-index: 2; left: 50%; top: 78px; width: 58px; height: 82px; margin-left: -29px; }.person-head { position: absolute; z-index: 3; left: 18px; top: 0; width: 23px; height: 25px; background: #d8a67d; border: 3px solid #4b3730; border-radius: 48% 48% 43% 43%; }.person-head::before { content: ""; position: absolute; left: -2px; top: -4px; width: 21px; height: 9px; background: #4b3730; border-radius: 12px 12px 5px 5px; }.person-body { position: absolute; z-index: 2; left: 9px; top: 21px; width: 41px; height: 49px; background: var(--agent); border-radius: 16px 16px 7px 7px; box-shadow: inset 0 -8px rgba(0,0,0,.12); }.person-chair { position: absolute; left: 2px; top: 35px; width: 54px; height: 46px; background: #5b6863; border-radius: 17px 17px 7px 7px; box-shadow: 0 8px 0 -4px #394440; }
.station-desk { position: absolute; z-index: 4; left: 50%; top: 128px; width: min(210px, 92%); height: 53px; background: #b78356; border-bottom: 10px solid #956842; border-radius: 6px 6px 3px 3px; box-shadow: 0 10px 17px rgba(74,53,31,.16); transform: translateX(-50%); }.station-desk::before,.station-desk::after { content: ""; position: absolute; top: 51px; width: 9px; height: 45px; background: #6e4d35; }.station-desk::before { left: 15px; }.station-desk::after { right: 15px; }
.station-monitor { position: absolute; left: 50%; top: -47px; width: 86px; height: 55px; padding: 7px; background: #182320; border: 5px solid #414c48; border-radius: 6px; box-shadow: 0 7px 12px rgba(32,39,36,.25); transform: translateX(-50%); }.station-monitor::before { content: ""; display: block; height: 3px; background: var(--agent); box-shadow: 0 8px rgba(255,255,255,.3), 0 16px rgba(255,255,255,.14); }.station-monitor::after { content: ""; position: absolute; left: 35px; bottom: -21px; width: 9px; height: 18px; background: #58635f; box-shadow: -13px 17px 0 -2px #58635f,13px 17px 0 -2px #58635f; }.station-mug { position: absolute; right: 13px; top: 12px; width: 18px; height: 21px; background: color-mix(in srgb,var(--agent) 72%,white); border-radius: 3px 3px 7px 7px; }.station-mug::after { content: ""; position: absolute; right: -7px; top: 4px; width: 8px; height: 9px; border: 3px solid color-mix(in srgb,var(--agent) 72%,white); border-left: 0; border-radius: 0 6px 6px 0; }.station-state { position: absolute; z-index: 6; left: 50%; top: 187px; width: min(210px, 94%); color: #38423d; font-size: 9px; text-align: center; transform: translateX(-50%); }.station-state b { color: var(--agent); }.station-state span { color: #6d756f; }
.hire-fab { position: absolute; z-index: 9; right: 18px; bottom: 17px; display: flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 13px; color: #fff; background: #17211e; border: 1px solid rgba(255,255,255,.14); border-radius: 19px; box-shadow: 0 9px 24px rgba(34,31,25,.24); cursor: pointer; }.hire-fab svg { width: 16px; height: 16px; }.hire-fab span { font-size: 10px; font-weight: 750; }

.workspace-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 14px; margin-top: 14px; }
.content-card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.content-card > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 19px 20px; border-bottom: 1px solid var(--line); }
.content-card > header > svg { color: var(--green); }
.dialogue { max-height: 430px; overflow: auto; padding: 5px 20px 18px; }
.message { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 11px; padding: 15px 0; border-bottom: 1px solid #ebe7de; }
.message:last-child { border-bottom: 0; }
.message-avatar { display: grid; place-items: center; width: 34px; height: 34px; color: #fff; background: var(--green); border-radius: 9px 9px 9px 3px; font-size: 11px; font-weight: 800; }
.message:nth-child(4n+2) .message-avatar { background: var(--blue); }.message:nth-child(4n+3) .message-avatar { background: var(--rose); }.message:nth-child(4n+4) .message-avatar { background: var(--orange); }
.message-meta { display: flex; align-items: center; gap: 7px; margin-bottom: 4px; font-size: 11px; }.message-meta b { font-size: 12px; }.message-meta span, .message-meta time { color: var(--muted); }
.message p { color: #3d4641; font-size: 12px; line-height: 1.52; white-space: pre-wrap; overflow-wrap: anywhere; }
.current-card > div { padding: 20px; }
.current-focus h3 { font-size: 17px; line-height: 1.25; }.current-focus p { margin-top: 9px; color: var(--muted); font-size: 12px; line-height: 1.5; }.current-focus .progress { margin-top: 18px; }

.usage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 13px; }
.usage-card { min-height: 122px; padding: 17px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.usage-card span, .usage-card small, .usage-card strong { display: block; }.usage-card span { color: var(--muted); font-size: 11px; }.usage-card strong { margin: 12px 0 7px; font-size: 27px; letter-spacing: -.04em; }.usage-card small { color: var(--muted); font-size: 10px; }.usage-card.accent { color: #fff; background: var(--green); border-color: var(--green); }.usage-card.accent span, .usage-card.accent small { color: rgba(255,255,255,.72); }
.notice, .security-note { display: flex; align-items: flex-start; gap: 12px; padding: 15px 17px; margin-bottom: 14px; color: #51441f; background: #faf2d9; border: 1px solid #ead89d; border-radius: 11px; }.notice > svg, .security-note > svg { flex: 0 0 20px; }.notice p, .security-note p { font-size: 11px; line-height: 1.5; }.notice a { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; color: inherit; font-size: 11px; font-weight: 700; white-space: nowrap; }.notice a svg { width: 15px; height: 15px; }
.security-note { color: #23503f; background: var(--green-soft); border-color: #bbd9cd; }.security-note b { font-size: 13px; }.security-note p { margin-top: 3px; }
.staff-grid, .server-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.staff-card, .server-card { position: relative; padding: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 13px; }
.staff-card-head, .server-card-head { display: flex; align-items: flex-start; gap: 12px; }
.staff-icon { display: grid; place-items: center; width: 42px; height: 42px; color: var(--green); background: var(--green-soft); border-radius: 10px; font-weight: 800; }.staff-copy { min-width: 0; }.staff-copy h3, .server-card h3 { font-size: 15px; }.staff-copy p, .server-card p { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.card-actions { display: flex; gap: 6px; margin-left: auto; }.card-actions button { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 7px; cursor: pointer; }.card-actions svg { width: 16px; height: 16px; }
.staff-meta, .server-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 15px; }.tag { display: inline-flex; align-items: center; min-height: 25px; padding: 0 8px; color: #52605a; background: #f2f1ec; border: 1px solid #e2dfd7; border-radius: 6px; font-size: 10px; }.tag.ok { color: var(--green); background: var(--green-soft); border-color: #bad9cc; }.tag.warn { color: var(--orange); background: var(--orange-soft); border-color: #efc8ae; }.tag.off { opacity: .58; }
.staff-controls { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 8px; margin-top: 14px; }.staff-controls label { margin: 0; }.tiny-button { min-height: 36px; padding: 0 10px; color: var(--ink); background: #f8f7f2; border: 1px solid var(--line); border-radius: 7px; font-size: 11px; font-weight: 700; cursor: pointer; }
.server-card { padding-left: 22px; }.server-card::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px; background: #a8afa9; border-radius: 0 3px 3px 0; }.server-card.verified::before { background: var(--green); }.server-address { margin-top: 14px; padding: 10px; background: #f6f5f0; border-radius: 7px; font: 11px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }.server-actions { display: flex; gap: 7px; margin-top: 14px; }.server-actions .button { flex: 1; min-height: 36px; font-size: 11px; }
.deployments { margin-top: 14px; }.list-card { overflow: hidden; }.list { display: grid; }.list-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 16px 19px; border-bottom: 1px solid var(--line); cursor: pointer; }.list-row:last-child { border-bottom: 0; }.row-main { min-width: 0; }.row-meta { display: flex; gap: 7px; margin-bottom: 6px; color: var(--muted); font-size: 10px; }.row-title { overflow: hidden; font-size: 13px; font-weight: 720; text-overflow: ellipsis; white-space: nowrap; }.row-side { display: flex; align-items: center; gap: 9px; }.status { display: inline-flex; align-items: center; min-height: 27px; padding: 0 8px; color: #58615c; background: #f3f2ee; border: 1px solid #dfdcd4; border-radius: 6px; font-size: 10px; font-weight: 700; }.status.running, .status.queued { color: var(--blue); background: var(--blue-soft); border-color: #c2d0f4; }.status.waiting_approval { color: var(--orange); background: var(--orange-soft); border-color: #edc4a9; }.status.completed { color: var(--green); background: var(--green-soft); border-color: #bdd9cd; }.status.failed, .status.deployment_failed { color: var(--danger); background: #fbe8e6; border-color: #e9bbb7; }
.progress { height: 4px; overflow: hidden; margin-top: 10px; background: #e9e6de; border-radius: 2px; }.progress span { display: block; height: 100%; background: var(--green); transition: width .25s ease; }

.settings-form { overflow: hidden; }.form-section { padding: 22px; border-bottom: 1px solid var(--line); }.form-section > p { margin: 6px 0 17px; color: var(--muted); font-size: 11px; line-height: 1.5; }.form-grid { display: grid; gap: 11px; }.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }.form-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 17px 22px; }.modal .form-actions { padding: 10px 0 0; }
label { display: block; margin-bottom: 13px; color: #46504b; font-size: 11px; font-weight: 700; } label small { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; font-weight: 500; line-height: 1.4; } input, textarea, select { width: 100%; margin-top: 6px; padding: 11px 12px; color: var(--ink); background: #fbfaf6; border: 1px solid var(--line-dark); border-radius: 7px; outline: 0; font-size: 12px; } input:focus, textarea:focus, select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(23,107,80,.09); } textarea { resize: vertical; line-height: 1.5; }.optional { color: var(--muted); font-weight: 500; }.file-input { padding: 8px; }
.switch-row { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; cursor: pointer; }.switch-row input { position: absolute; opacity: 0; width: 1px; }.switch-row > span { position: relative; width: 38px; height: 22px; flex: 0 0 38px; background: #c5c9c6; border-radius: 11px; transition: .18s; }.switch-row > span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; background: #fff; border-radius: 50%; transition: .18s; }.switch-row input:checked + span { background: var(--green); }.switch-row input:checked + span::after { transform: translateX(16px); }.switch-row b, .switch-row small { display: block; }.switch-row b { font-size: 11px; }.switch-row small { margin-top: 2px; color: var(--muted); font-size: 9px; font-weight: 500; }.check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; }

.bottom-nav { position: fixed; z-index: 12; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); display: flex; gap: 3px; width: min(580px, calc(100% - 28px)); padding: 5px; background: rgba(255,254,250,.94); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 40px rgba(40,37,30,.16); backdrop-filter: blur(18px); transform: translateX(-50%); }.bottom-nav button { display: flex; flex: 1; align-items: center; justify-content: center; gap: 6px; min-height: 43px; padding: 0 8px; color: var(--muted); background: transparent; border: 0; border-radius: 9px; font-size: 10px; font-weight: 700; cursor: pointer; }.bottom-nav button.active { color: #fff; background: var(--ink); }.bottom-nav svg { width: 18px; height: 18px; }

.overlay { position: fixed; z-index: 20; inset: 0; background: rgba(28,31,28,.43); backdrop-filter: blur(3px); }.drawer, .modal { position: fixed; z-index: 30; background: var(--paper); box-shadow: var(--shadow); }.drawer { top: 0; right: 0; bottom: 0; width: min(600px, 100%); padding-bottom: env(safe-area-inset-bottom); overflow: auto; transform: translateX(105%); transition: transform .22s ease; }.drawer.open { transform: translateX(0); }.drawer > header, .modal > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 21px 22px; border-bottom: 1px solid var(--line); }.drawer > header { position: sticky; z-index: 2; top: 0; background: rgba(255,254,250,.94); backdrop-filter: blur(14px); }.drawer-body { padding: 22px; }.detail-section { padding: 17px 0; border-bottom: 1px solid var(--line); }.detail-section:first-child { padding-top: 0; }.detail-section:last-child { border: 0; }.detail-section h3 { margin-bottom: 8px; font-size: 12px; }.detail-section p { color: #3c4641; font-size: 12px; line-height: 1.58; white-space: pre-wrap; overflow-wrap: anywhere; }.event { display: grid; grid-template-columns: 10px 1fr; gap: 9px; margin-top: 13px; }.event-dot { width: 7px; height: 7px; margin-top: 5px; background: var(--green); border-radius: 50%; }.event p { font-size: 11px; }.event time { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }.technical { margin-top: 10px; padding: 10px; background: #f5f3ed; border: 1px solid var(--line); border-radius: 7px; }.technical summary { cursor: pointer; font-size: 11px; font-weight: 700; }.technical pre { overflow: auto; max-height: 300px; margin: 10px 0 0; color: #3e4843; font: 10px/1.5 ui-monospace, monospace; white-space: pre-wrap; }
.modal { left: 50%; top: 50%; width: min(520px, calc(100% - 28px)); max-height: min(820px, calc(100vh - 28px)); overflow: auto; border-radius: 15px; opacity: 0; pointer-events: none; transform: translate(-50%, -47%) scale(.98); transition: .18s ease; }.modal.wide { width: min(720px, calc(100% - 28px)); }.modal.open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }.modal form { padding: 20px 22px; }
.empty { padding: 38px 14px; color: var(--muted); font-size: 12px; text-align: center; }.blocked { padding: 60px 25px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; text-align: center; }.blocked > svg { width: 36px; height: 36px; margin-bottom: 15px; color: var(--orange); }.blocked p { max-width: 480px; margin: 8px auto 0; color: var(--muted); font-size: 12px; line-height: 1.55; }.toast { position: fixed; z-index: 50; left: 50%; bottom: 88px; max-width: calc(100% - 28px); padding: 11px 14px; color: #fff; background: #26312d; border-radius: 8px; box-shadow: var(--shadow); font-size: 11px; transform: translateX(-50%); }

@media (max-width: 900px) {
  .studio-team { gap: 48px 145px; padding-inline: 58px; }
  .meeting-zone { transform: translateX(-50%) scale(.8); }
  .workspace-grid { grid-template-columns: 1fr; }
  .usage-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .app-shell { padding: max(14px, env(safe-area-inset-top)) 12px 103px; }
  .topbar { margin-bottom: 24px; }.brand small { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.shift-chip b { display: none; }.shift-chip { width: 38px; padding: 0; justify-content: center; }
  .hero-line, .section-title { align-items: flex-start; }.hero-line .button, .section-title .button { flex: 0 0 43px; width: 43px; padding: 0; font-size: 0; }.hero-line .button svg, .section-title .button svg { width: 21px; height: 21px; }
  h1 { font-size: 34px; }.hero-line p, .section-title p { font-size: 12px; }
  .stats { grid-template-columns: repeat(2, 1fr); }.stats article { min-height: 72px; }.stats strong { font-size: 27px; }
  .office-roombar { min-height: 54px; padding: 0 12px; }.office-roombar b { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.office-roombar small { max-width: 205px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .office-scene { min-height: 650px; }.scene-window { left: 18px; top: 22px; width: 122px; height: 76px; }.scene-board { left: auto; right: 17px; padding: 11px 12px; transform: rotate(-.5deg); }.scene-board span { display: none; }.server-rack { right: 17px; top: 108px; transform: scale(.75); transform-origin: top right; }.meeting-zone { display: none; }.plant-left { left: 9px; }.plant-right { right: 9px; }
  .studio-team { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 68px 16px; padding: 64px 10px 75px; }.station { min-height: 225px; }.station-label { padding-inline: 7px; }.station-copy small { max-width: 94px; }.station-desk { width: 90%; }.hire-fab { right: 12px; bottom: 12px; }
  .staff-grid, .server-grid { grid-template-columns: 1fr; }.notice { flex-wrap: wrap; }.notice a { margin-left: 32px; }
  .form-grid.two, .form-grid.three, .check-grid { grid-template-columns: 1fr; }.form-section { padding: 18px 15px; }
  .bottom-nav { bottom: max(8px, env(safe-area-inset-bottom)); width: calc(100% - 16px); }.bottom-nav button { min-height: 47px; flex-direction: column; gap: 2px; font-size: 8px; }.bottom-nav svg { width: 17px; height: 17px; }
  .drawer-body { padding: 18px 15px; }.modal form { padding: 17px 15px; }.modal > header { padding: 17px 15px; }
  .list-row { padding: 14px 13px; }.row-side .status { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
