:root {
  color-scheme: light;
  --canvas: #f3f5f2;
  --surface: #ffffff;
  --surface-2: #f8faf7;
  --ink: #18221e;
  --muted: #67736d;
  --line: #dce3de;
  --line-strong: #cbd5ce;
  --green: #176b4b;
  --green-dark: #0d4f37;
  --green-soft: #e5f3eb;
  --blue: #315d87;
  --blue-soft: #e8f0f8;
  --amber: #8b6214;
  --amber-soft: #fff3d8;
  --red: #a23d34;
  --red-soft: #fbe9e7;
  --slate: #41524a;
  --shadow: 0 12px 30px rgba(31, 48, 39, 0.07);
}

* { box-sizing: border-box; }
html { background: var(--canvas); }
body {
  margin: 0;
  min-width: 320px;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif;
}
button, input, textarea, select { font: inherit; }
button {
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  min-height: 38px;
  padding: 0 13px;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}
button:hover { background: #f5f8f5; border-color: #afbeb5; }
button:active { transform: translateY(1px); }
button:disabled { cursor: not-allowed; opacity: .55; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid rgba(23, 107, 75, .18);
  outline-offset: 2px;
}
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  padding: 9px 10px;
}
textarea { resize: vertical; line-height: 1.55; }
h1, h2, h3, p { margin-top: 0; }
[hidden] { display: none !important; }

.primary { background: var(--green); color: #fff; border-color: var(--green); font-weight: 700; }
.primary:hover { background: var(--green-dark); border-color: var(--green-dark); }
.danger { color: var(--red); border-color: #e1bdb9; background: #fffafa; }
.danger:hover { background: var(--red-soft); border-color: #d9aaa5; }
.ghost { border-color: transparent; background: transparent; }
.small { min-height: 32px; padding: 0 10px; font-size: 12px; }
.muted { color: var(--muted); }
.error-text { color: var(--red); }

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, .9fr) minmax(420px, 1.1fr);
  background: #13251d;
}
.login-story {
  min-height: 100vh;
  padding: clamp(32px, 6vw, 88px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #f0f5f2;
  background:
    radial-gradient(circle at 18% 18%, rgba(42, 139, 96, .28), transparent 34%),
    linear-gradient(145deg, #102119 0%, #173329 58%, #0d1c16 100%);
  position: relative;
  overflow: hidden;
}
.login-story::after {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  right: -240px;
  bottom: -230px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(255,255,255,.025), 0 0 0 140px rgba(255,255,255,.018);
}
.login-brand { display: flex; gap: 12px; align-items: center; position: relative; z-index: 1; }
.login-brand-mark, .brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: #237b59;
  color: #fff;
  border: 1px solid rgba(255,255,255,.2);
  font-weight: 800;
  letter-spacing: .03em;
}
.login-brand strong { display: block; font-size: 15px; }
.login-brand span { display: block; color: #9eb2a7; margin-top: 2px; font-size: 11px; }
.login-copy { max-width: 580px; position: relative; z-index: 1; }
.login-copy .eyebrow { color: #75b697; }
.login-copy h1 { max-width: 520px; margin-bottom: 18px; font-size: clamp(34px, 3.7vw, 54px); line-height: 1.08; }
.login-copy p { max-width: 520px; color: #b6c9bf; line-height: 1.8; }
.login-facts { display: flex; gap: 28px; flex-wrap: wrap; position: relative; z-index: 1; }
.login-facts div { padding-left: 12px; border-left: 2px solid #3e8f6c; }
.login-facts strong { display: block; font-size: 13px; }
.login-facts span { display: block; margin-top: 4px; color: #91aa9d; font-size: 10px; }
.login-form-side { min-height: 100vh; display: grid; place-items: center; padding: 30px; background: #eef2ef; }
.login-card { width: min(420px, 100%); background: #fff; border: 1px solid var(--line); padding: clamp(26px, 5vw, 44px); box-shadow: 0 28px 80px rgba(21, 43, 32, .12); }
.login-card h2 { margin-bottom: 8px; font-size: 24px; }
.login-card > p { margin-bottom: 26px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field span { color: var(--slate); font-size: 12px; font-weight: 700; }
.login-card .primary { width: 100%; margin-top: 6px; }
.login-hint { padding-top: 18px; margin: 18px 0 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; line-height: 1.7; }
.form-error { min-height: 20px; margin: 0 0 9px; color: var(--red); font-size: 12px; }

.app-shell { display: grid; grid-template-columns: 226px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: #15251e;
  color: #e7efe9;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 0 6px; }
.brand strong { display: block; font-size: 15px; }
.brand span { display: block; margin-top: 2px; color: #9eb2a7; font-size: 11px; }
.nav { display: grid; gap: 5px; }
.nav button {
  color: #b9c8bf;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 11px;
  border-color: transparent;
  background: transparent;
  text-align: left;
  font-size: 14px;
}
.nav button.active { background: rgba(255,255,255,.09); color: #fff; }
.nav-index { width: 20px; color: #799288; font-size: 11px; font-variant-numeric: tabular-nums; }
.sidebar-note { margin-top: auto; border-top: 1px solid rgba(255,255,255,.12); padding: 16px 6px 0; color: #9eb2a7; font-size: 12px; line-height: 1.65; }
.sidebar-note strong { display: block; color: #d8e5dc; font-size: 13px; margin-bottom: 4px; }
.workspace { min-width: 0; }
.topbar {
  min-height: 72px;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid var(--line);
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
}
.topbar-title { min-width: 0; }
.topbar-title strong { display: block; font-size: 16px; }
.topbar-title span { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.role-badge { min-height: 36px; display: grid; align-content: center; padding: 0 11px; border: 1px solid var(--line); background: #fff; }
.role-badge strong { font-size: 11px; }
.role-badge span { color: var(--muted); font-size: 9px; }
main { padding: 26px 28px 44px; max-width: 1560px; margin: 0 auto; }

.page-heading, .workspace-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.eyebrow { color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 8px; }
h1 { margin-bottom: 8px; font-size: 27px; line-height: 1.25; }
.lead { margin-bottom: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.heading-actions, .workspace-heading-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.back-button { margin-bottom: 13px; padding-left: 8px; }
.workspace-title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.workspace-title-row h1 { margin-bottom: 0; }
.workspace-heading .lead { margin-top: 8px; }
.workspace-heading-actions { padding-top: 42px; }

.metrics { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); border: 1px solid var(--line); background: var(--surface); margin-bottom: 14px; box-shadow: var(--shadow); }
.metric { padding: 16px 18px; min-height: 98px; border-right: 1px solid var(--line); }
.metric:last-child { border-right: 0; }
.metric-label { color: var(--muted); font-size: 11px; }
.metric-value { display: flex; align-items: baseline; gap: 6px; margin: 7px 0 2px; }
.metric-value strong { font-size: 27px; line-height: 1; }
.metric-value span { color: var(--muted); font-size: 11px; }
.metric small { color: var(--muted); font-size: 10px; }
.workspace-metrics { margin-bottom: 0; box-shadow: none; }
.workspace-metrics .metric { min-height: 88px; padding: 14px 16px; }
.workspace-metrics .metric-value strong { font-size: 23px; }

.system-strip { display: grid; grid-template-columns: 1.25fr repeat(3,minmax(0,.65fr)) auto; border: 1px solid var(--line); background: #edf2ee; margin-bottom: 22px; }
.system-title, .system-item, .system-action { padding: 13px 14px; border-right: 1px solid var(--line-strong); }
.system-action { border-right: 0; display: flex; align-items: center; }
.system-title strong, .system-item strong { display: block; font-size: 12px; }
.system-title span, .system-item span { display: block; margin-top: 3px; font-size: 10px; color: var(--muted); }
.system-item.warn strong { color: var(--amber); }
.mode-banner { margin-bottom: 14px; padding: 10px 13px; border: 1px solid #e4cf9b; background: var(--amber-soft); color: #765510; font-size: 11px; line-height: 1.55; }

.board-grid { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 18px; align-items: start; }
.board-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.board-head h2 { margin-bottom: 3px; font-size: 18px; }
.board-head p { margin-bottom: 0; color: var(--muted); font-size: 11px; }
.filters { display: flex; gap: 5px; flex-wrap: wrap; }
.filter { min-height: 32px; border-color: transparent; background: transparent; color: var(--muted); font-size: 11px; }
.filter.active { background: #e6ece8; color: var(--ink); border-color: #d2dbd5; font-weight: 700; }
.room-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.room-card { background: var(--surface); border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(35,50,42,.05); min-width: 0; }
.room-card[data-tone="live"] { border-top: 3px solid var(--green); }
.room-card[data-tone="wait"] { border-top: 3px solid var(--blue); }
.room-card[data-tone="scan"] { border-top: 3px solid var(--amber); }
.room-card[data-tone="error"] { border-top: 3px solid var(--red); }
.room-main { padding: 15px 16px 13px; }
.room-top { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.room-identity { min-width: 0; }
.room-identity h3 { margin-bottom: 4px; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room-identity p { margin-bottom: 0; color: var(--muted); font-size: 10px; }
.status-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 9px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.status-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-chip.live { color: var(--green); background: var(--green-soft); }
.status-chip.wait { color: var(--blue); background: var(--blue-soft); }
.status-chip.scan { color: var(--amber); background: var(--amber-soft); }
.status-chip.error { color: var(--red); background: var(--red-soft); }
.room-callout { margin: 13px 0; min-height: 42px; padding: 10px 11px; background: var(--surface-2); border-left: 3px solid var(--line-strong); color: var(--slate); font-size: 11px; line-height: 1.55; }
.room-card[data-tone="error"] .room-callout { background: #fff8f7; border-left-color: #dba49f; color: #7f332c; }
.room-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.room-stat { padding: 10px 9px; border-right: 1px solid var(--line); min-width: 0; }
.room-stat:last-child { border-right: 0; }
.room-stat span { display: block; color: var(--muted); font-size: 9px; }
.room-stat strong { display: block; margin-top: 4px; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.health-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 11px; color: var(--muted); font-size: 10px; }
.health { display: inline-flex; align-items: center; gap: 5px; }
.health::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: #9eaaa4; }
.health.ok::before { background: var(--green); }
.health.bad::before { background: var(--red); }
.room-actions { display: flex; justify-content: space-between; gap: 8px; padding: 11px 16px; background: #fbfcfb; }
.room-actions-group { display: flex; gap: 6px; }
.empty-state { min-height: 280px; display: grid; place-items: center; text-align: center; padding: 30px; border: 1px dashed var(--line-strong); background: rgba(255,255,255,.55); }
.empty-state strong { display: block; margin-bottom: 7px; font-size: 16px; }
.empty-state p { max-width: 420px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.activity { background: var(--surface); border: 1px solid var(--line); position: sticky; top: 90px; }
.activity-head { padding: 14px 15px; border-bottom: 1px solid var(--line); }
.activity-head h2 { margin-bottom: 3px; font-size: 15px; }
.activity-head p { margin-bottom: 0; color: var(--muted); font-size: 10px; }
.activity-list { padding: 4px 15px 9px; }
.event { display: grid; grid-template-columns: 8px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid #edf0ee; }
.event:last-child { border-bottom: 0; }
.event-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-top: 5px; }
.event-dot.warn { background: var(--amber); }
.event-dot.error { background: var(--red); }
.event p { margin-bottom: 4px; font-size: 11px; line-height: 1.5; }
.event time { color: var(--muted); font-size: 9px; }

.room-workspace { display: grid; gap: 14px; }
.room-scope { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 18px; align-items: center; padding: 12px 15px; border: 1px solid #cbded3; border-left: 4px solid var(--green); background: #edf6f0; }
.room-scope strong { display: block; font-size: 12px; }
.room-scope span { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.scope-id { color: var(--green-dark); font-size: 10px; font-weight: 800; white-space: nowrap; }
.ops-panel { background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.ops-panel-head { min-height: 57px; padding: 11px 14px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ops-panel-head h2 { margin-bottom: 3px; font-size: 15px; }
.ops-panel-head p { margin-bottom: 0; color: var(--muted); font-size: 9px; }
.ops-panel-body { padding: 14px; }
.runtime-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
.runtime-control { min-height: 92px; padding: 14px; border-right: 1px solid var(--line); }
.runtime-control:last-child { border-right: 0; }
.runtime-control > span { display: block; margin-bottom: 10px; color: var(--muted); font-size: 10px; }
.runtime-control > small { display: block; margin-top: 7px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.toggle { min-height: 30px; padding: 0 10px; border-color: #d1d9d4; background: #f2f5f3; color: var(--slate); font-size: 10px; font-weight: 800; }
.toggle.active { border-color: #a8ceba; background: var(--green-soft); color: var(--green-dark); }
.toggle.warn { border-color: #e1c889; background: var(--amber-soft); color: var(--amber); }
.ops-grid { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(300px,.75fr); gap: 14px; align-items: start; }
.script-table { overflow-x: auto; }
.script-row { display: grid; grid-template-columns: 42px 118px 76px minmax(210px,1fr) 86px 132px; min-width: 740px; align-items: center; gap: 9px; min-height: 58px; padding: 8px 11px; border-bottom: 1px solid #edf0ee; font-size: 10px; }
.script-row:last-child { border-bottom: 0; }
.script-row.head { min-height: 34px; background: var(--surface-2); color: var(--muted); font-size: 9px; font-weight: 800; }
.script-row input, .script-row textarea { padding: 7px 8px; font-size: 10px; }
.script-row textarea { min-height: 50px; }
.next-due { color: var(--green); font-weight: 800; }
.row-buttons { display: flex; gap: 5px; justify-content: flex-end; }
.check-control { display: inline-flex; align-items: center; gap: 6px; }
.check-control input { accent-color: var(--green); width: 15px; height: 15px; }
.isolation-row { display: grid; grid-template-columns: 28px minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.isolation-row:last-child { border-bottom: 0; }
.isolation-num { width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center; background: #e9efeb; color: var(--green-dark); font-size: 10px; font-weight: 800; }
.isolation-row strong { display: block; font-size: 11px; }
.isolation-row span { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.isolation-state { color: var(--green); font-size: 10px; font-weight: 700; }
.log-list { display: grid; }
.log-item { padding: 11px 14px; border-bottom: 1px solid #edf0ee; }
.log-item:last-child { border-bottom: 0; }
.log-meta { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.log-meta strong { font-size: 10px; }
.log-meta span { color: var(--muted); font-size: 9px; }
.log-item p { margin: 5px 0 0; color: var(--slate); font-size: 10px; line-height: 1.55; }
.log-item small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.log-item.failed { border-left: 3px solid var(--red); }
.workspace-footnote { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.6; }

.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(16,27,22,.42); opacity: 0; pointer-events: none; transition: opacity 160ms ease; }
.overlay.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; z-index: 60; top: 0; right: 0; width: min(560px,100vw); height: 100vh; background: var(--surface); border-left: 1px solid var(--line); box-shadow: -18px 0 50px rgba(20,34,27,.16); transform: translateX(102%); transition: transform 180ms ease; display: flex; flex-direction: column; }
.drawer.open { transform: translateX(0); }
.drawer-head { min-height: 72px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin-bottom: 3px; font-size: 17px; }
.drawer-head p { margin-bottom: 0; color: var(--muted); font-size: 10px; }
.icon-button { width: 36px; padding: 0; display: grid; place-items: center; font-size: 20px; line-height: 1; }
.drawer-body { padding: 20px; overflow-y: auto; flex: 1; }
.drawer-footer { padding: 13px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; }
.browser-shot { width: 100%; aspect-ratio: 16/10; object-fit: contain; border: 1px solid var(--line-strong); background: #eef2ef; }
.scan-status { margin-top: 14px; padding: 12px; border-left: 3px solid var(--amber); background: var(--amber-soft); }
.scan-status strong { display: block; margin-bottom: 4px; font-size: 12px; }
.scan-status span { color: var(--muted); font-size: 10px; line-height: 1.55; }
.drawer-note { margin: 12px 0 0; color: var(--muted); font-size: 10px; line-height: 1.65; }
.detail-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); border: 1px solid var(--line); margin-bottom: 18px; }
.detail-item { padding: 13px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail-item:nth-child(2n) { border-right: 0; }
.detail-item:nth-last-child(-n+2) { border-bottom: 0; }
.detail-item span { display: block; color: var(--muted); font-size: 9px; }
.detail-item strong { display: block; margin-top: 5px; font-size: 11px; word-break: break-word; }
.modal-form { display: grid; gap: 14px; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translate(-50%,20px); background: #14241d; color: #fff; border-radius: 7px; padding: 11px 15px; font-size: 11px; opacity: 0; pointer-events: none; transition: opacity 160ms ease, transform 160ms ease; }
.toast.show { opacity: 1; transform: translate(-50%,0); }
.loading-line { height: 3px; position: fixed; top: 0; left: 0; right: 0; z-index: 100; overflow: hidden; background: transparent; }
.loading-line::after { content: ""; display: block; width: 34%; height: 100%; background: var(--green); animation: loading 900ms ease-in-out infinite; }
@keyframes loading { from { transform: translateX(-100%); } to { transform: translateX(400%); } }

@media (max-width: 1180px) {
  .board-grid, .ops-grid { grid-template-columns: 1fr; }
  .activity { position: static; }
  .activity-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 20px; }
  .system-strip { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .system-title, .system-item, .system-action { border-bottom: 1px solid var(--line-strong); }
}
@media (max-width: 900px) {
  .app-shell { grid-template-columns: 72px minmax(0,1fr); }
  .sidebar { padding: 18px 10px; align-items: center; }
  .brand { padding: 0; }
  .brand-copy, .nav-label, .sidebar-note { display: none; }
  .nav button { width: 46px; justify-content: center; padding: 0; }
  .nav-index { width: auto; color: #c8d6ce; }
  .topbar { padding: 0 18px; }
  main { padding: 22px 18px 38px; }
  .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .room-list { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .login-page { display: block; }
  .login-story { min-height: 280px; padding: 28px 22px; }
  .login-copy { margin-top: 44px; }
  .login-copy h1 { font-size: 34px; }
  .login-copy p, .login-facts { display: none; }
  .login-form-side { min-height: calc(100vh - 280px); padding: 18px; }
  .login-card { padding: 26px 22px; }
  .app-shell { display: block; }
  .sidebar { display: none; }
  .topbar { min-height: 62px; padding: 0 13px; }
  .topbar-title span { max-width: 180px; }
  .topbar-actions .role-badge, .topbar-actions .refresh-button { display: none; }
  .small, .filter, .toggle { min-height: 38px; }
  main { padding: 17px 13px 32px; }
  .page-heading, .workspace-heading { display: block; margin-bottom: 16px; }
  h1 { font-size: 22px; }
  .heading-actions, .workspace-heading-actions { justify-content: stretch; margin-top: 15px; padding-top: 0; }
  .heading-actions button, .workspace-heading-actions button { flex: 1; }
  .metrics { box-shadow: none; }
  .metric { padding: 13px; min-height: 86px; }
  .metric-value strong { font-size: 23px; }
  .system-strip { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .system-title, .system-action { grid-column: span 2; }
  .system-item:nth-child(odd) { border-right: 0; }
  .system-action button { width: 100%; }
  .board-head { display: block; }
  .filters { margin-top: 10px; }
  .room-main { padding: 14px 13px 12px; }
  .room-actions { padding: 10px 13px; }
  .room-actions .danger { font-size: 0; width: 38px; padding: 0; }
  .room-actions .danger::after { content: "停"; font-size: 12px; }
  .activity-list { display: block; }
  .room-scope { grid-template-columns: 1fr; gap: 8px; }
  .runtime-grid { grid-template-columns: 1fr; }
  .runtime-control { border-right: 0; border-bottom: 1px solid var(--line); }
  .runtime-control:last-child { border-bottom: 0; }
  .script-table { overflow: visible; }
  .script-row.head { display: none; }
  .script-row:not(.head) { grid-template-columns: 28px minmax(0,1fr) auto; min-width: 0; padding: 12px; gap: 8px; }
  .script-row:not(.head) > :nth-child(4) { grid-column: 2 / -1; }
  .script-row:not(.head) > :nth-child(5) { grid-column: 2; }
  .script-row:not(.head) > :nth-child(6) { grid-column: 3; }
  .script-row input, .script-row textarea { font-size: 12px; }
  .drawer { width: 100vw; }
  .drawer-body { padding: 16px; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-item { border-right: 0; }
  .detail-item:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .detail-item:last-child { border-bottom: 0; }
  .toast { width: calc(100vw - 26px); text-align: center; }
}
