:root {
  font-family: system-ui, "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  font-size: 13px;
  color: #25292e;
  background: #fff;
  color-scheme: light;
  --muted: #657078;
  --border: #dce1e4;
  --subtle: #f5f7f8;
  --accent: #176d8a;
  --selection: #e9f3f7;
  --danger: #b72f3c;
}
* { box-sizing: border-box; letter-spacing: 0; }
body { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button, input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea {
  border: 1px solid #cbd3d8; border-radius: 4px; background: #fff; min-height: 32px;
}
button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 6px 10px; cursor: pointer; line-height: 1.4; overflow-wrap: anywhere; }
button:hover:not(:disabled) { background: var(--subtle); border-color: #a9b6be; }
button:active:not(:disabled) { background: #e9eef0; }
button.primary { color: #fff; background: var(--accent); border-color: var(--accent); }
button.primary:hover:not(:disabled) { background: #125a73; }
button.danger { color: var(--danger); border-color: #e4bac0; background: #fff8f8; }
button.danger:hover:not(:disabled) { background: #fcebed; border-color: var(--danger); }
button[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); background: var(--selection); }
input, select, textarea { padding: 5px 8px; max-width: 100%; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); width: 16px; height: 16px; margin: 0; flex: 0 0 auto; }
input[type="range"] { accent-color: var(--accent); min-width: 90px; width: 100%; padding: 0; }
textarea { resize: vertical; width: 100%; min-height: 100px; line-height: 1.6; }
input[readonly], textarea[readonly] { background: var(--subtle); }
:disabled { cursor: default; opacity: .58; }
:focus-visible { outline: 2px solid #3185a4; outline-offset: 2px; }
[hidden] { display: none !important; }
.icon { display: inline-block; width: 17px; height: 17px; flex: 0 0 17px; background: currentColor; mask: var(--icon) center / contain no-repeat; }
.icon-camera { --icon: url("icons/camera.svg"); }
.icon-sliders { --icon: url("icons/sliders.svg"); }
.icon-scan { --icon: url("icons/scan.svg"); }
.icon-check { --icon: url("icons/check.svg"); }
.icon-circle { --icon: url("icons/circle.svg"); }
.icon-folder { --icon: url("icons/folder.svg"); }
.icon-activity { --icon: url("icons/activity.svg"); }
.icon-settings { --icon: url("icons/settings.svg"); }
.icon-refresh { --icon: url("icons/refresh.svg"); }
.icon-square { --icon: url("icons/square.svg"); }
.icon-download { --icon: url("icons/download.svg"); }
.icon-plus { --icon: url("icons/plus.svg"); }
.icon-left { --icon: url("icons/chevron-left.svg"); }
.icon-right { --icon: url("icons/chevron-right.svg"); }
.icon-up { --icon: url("icons/chevron-up.svg"); }
.icon-shield { --icon: url("icons/shield.svg"); }
.icon-unplug { --icon: url("icons/unplug.svg"); }
.icon-button { width: 32px; min-width: 32px; height: 32px; padding: 6px; }
.auth-shell { width: min(440px, 100%); min-height: 100dvh; margin: 0 auto; padding: 64px 24px 32px; }
.auth-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 30px; }
.auth-brand img { flex: 0 0 48px; }
.auth-brand h1 { font-size: 26px; margin: 0; }
.auth-brand p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.auth-panel { border-top: 1px solid var(--border); padding-top: 24px; }
.auth-panel h2 { font-size: 20px; font-weight: 600; margin: 0 0 20px; }
.auth-modes { display: flex; border-bottom: 1px solid var(--border); gap: 16px; margin-bottom: 24px; }
.auth-modes button { border: 0; border-radius: 0; background: transparent; border-bottom: 2px solid transparent; min-height: 44px; padding: 8px 0; }
.auth-modes button[aria-pressed="true"] { color: var(--accent); background: transparent; border-bottom-color: var(--accent); font-weight: 600; }
#auth-fields { display: grid; gap: 18px; min-width: 0; border: 0; padding: 0; margin: 0; }
.auth-field { display: grid; gap: 7px; min-width: 0; }
.auth-field label { font-weight: 500; }
.auth-field input { width: 100%; min-height: 44px; font-size: 16px; }
#auth-submit { width: 100%; min-height: 44px; margin-top: 4px; }
.auth-progress { color: var(--muted); margin: 0 0 16px; }
.auth-message, .members-message { margin: 0 0 18px; padding: 10px 12px; border-left: 3px solid var(--danger); background: var(--subtle); color: var(--danger); white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }
.auth-message[data-level="success"], .members-message[data-level="success"] { border-color: #2d865b; color: #24714b; }
#auth-retry { margin-top: 20px; min-height: 44px; }
.auth-pending p { color: var(--muted); margin: 0 0 24px; line-height: 1.6; }
.auth-pending button { min-height: 44px; }
.account-controls { display: flex; align-items: center; gap: 8px; min-width: 0; border-left: 1px solid var(--border); padding-left: 10px; }
.account-label { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 12px; }
#auth-logout { flex-shrink: 0; }
.sidebar-command[aria-current="page"] { color: var(--accent); background: var(--selection); font-weight: 600; }
.members-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.members-header h1 { margin: 0; }
.members-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 18px; }
#members-filter { min-width: 100px; }
#members-summary { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.members-scroll { max-height: none; }
.members-table { table-layout: fixed; }
.members-table th:first-child { width: 30%; }
.members-table th:nth-child(2) { width: 10%; }
.members-table th:nth-child(3) { width: 12%; }
.members-table th:nth-child(4) { width: 22%; }
.members-table th:last-child { width: 26%; }
.members-table td { min-width: 0; padding-block: 12px; }
.member-name, .member-email { display: block; overflow-wrap: anywhere; }
.member-name { font-weight: 500; margin-bottom: 4px; }
.member-email, .member-date, .member-admin-note { color: var(--muted); }
.member-status { color: var(--muted); white-space: nowrap; }
.member-status[data-status="pending"] { color: #865f18; }
.member-status[data-status="approved"] { color: #24714b; }
.member-status[data-status="rejected"] { color: var(--danger); }
.member-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.workspace { height: 100dvh; display: grid; grid-template-columns: 204px minmax(0, 1fr); }
.sidebar { display: flex; flex-direction: column; gap: 18px; padding: 20px 12px 14px; border-right: 1px solid var(--border); min-height: 0; overflow: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 6px; color: inherit; text-decoration: none; }
.brand strong { display: block; font-size: 16px; font-weight: 600; }
.brand small { display: block; font-size: 10px; color: var(--muted); margin-top: 3px; }
#navigation { display: flex; flex-direction: column; gap: 4px; }
.nav-button { justify-content: flex-start; text-align: left; border: 1px solid transparent; background: transparent; min-height: 39px; width: 100%; padding: 8px 10px; }
.nav-button[aria-current="page"] { color: var(--accent); background: var(--selection); font-weight: 600; }
.sidebar-bottom { margin-top: auto; border-top: 1px solid var(--border); padding-top: 12px; }
.sidebar-command { border: 0; justify-content: flex-start; width: 100%; }
.sidebar-bottom > small { display: block; color: var(--muted); font-size: 11px; padding: 10px; }
.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 18px; padding: 10px 20px; border-bottom: 1px solid var(--border); }
.toolbar-actions, .connection { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.connection { font-size: 12px; color: var(--muted); }
.connection-dot { width: 7px; height: 7px; border-radius: 50%; background: #87939b; }
body[data-connection="live"] .connection-dot { background: #2d865b; }
body[data-connection="stale"] .connection-dot { background: #ac791d; }
body[data-connection="disconnected"] .connection-dot { background: var(--danger); }
.host { max-width: 260px; overflow-wrap: anywhere; }
.mode { border-left: 1px solid var(--border); padding-left: 8px; }
.connection-banner { background: #fff7e5; color: #795618; padding: 9px 20px; border-bottom: 1px solid #ecd9af; font-size: 12px; }
body[data-connection="disconnected"] .connection-banner { background: #fff0f1; color: #9e2836; border-color: #f0c9ce; }
.page-scroll { overflow: auto; overscroll-behavior: contain; min-height: 0; flex: 1; padding: 20px; }
h1 { font-size: 21px; font-weight: 600; line-height: 1.4; margin: 0 0 18px; }
.page-tree { min-width: 0; }
.empty-state { padding: 50px 16px; color: var(--muted); text-align: center; }
.statusbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: 11px; }
#status { white-space: pre-wrap; overflow-wrap: anywhere; }
#last-update { flex: 0 0 auto; }
.node { min-width: 0; max-width: 100%; }
.node-container { display: flex; gap: 10px; }
.flow-column { flex-direction: column; }
.flow-row { flex-direction: row; align-items: flex-start; flex-wrap: wrap; }
.flow-row.control-row, .flow-row[data-role="topbar"], .flow-row[data-role="samplingToolbar"] { align-items: center; }
.flow-row > .node[data-role="calibrationInspector"] { flex: 0 0 320px; width: 320px; min-width: 320px; max-width: 360px; }
.node[data-role="calibrationInspector"] { padding-top: 12px; border-top: 1px solid var(--border); }
.node[data-role="cameraGeometryWorkspace"] { align-items: flex-start; flex-wrap: nowrap; }
.node[data-role="cameraGeometryWorkspace"] > .node:not([data-role="calibrationInspector"]) { flex: 1 1 0%; min-width: 0; }
.flow-grid { display: grid; grid-template-columns: repeat(var(--columns, 2), minmax(0, 1fr)); align-items: start; }
.grid-item { grid-row: var(--grid-row, auto) / span var(--row-span, 1); grid-column: var(--grid-column, auto) / span var(--column-span, 1); }
.flow-row > .node { flex: var(--stretch, 0) 1 auto; }
.flow-row > .node-container, .flow-row > .node-text, .flow-row > .node-table { flex-grow: max(1, var(--stretch, 1)); }
.node-label { display: block; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }
.node[data-role="pageTitle"] { font-size: 21px; font-weight: 600; }
.node[data-role="sectionTitle"], .node[data-role="cardTitle"] { font-size: 14px; font-weight: 600; }
.node[data-role="muted"], .node[data-role="pageSubtitle"], .node[data-role="sidebarFooter"] { color: var(--muted); font-size: 12px; }
.node[data-role="panel"], .node[data-role="calibrationResults"], .node[data-role="calibrationEntryPanel"] { padding: 12px 0; border-top: 1px solid var(--border); }
.node[data-role="topbar"] { padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.node[data-role="workflowStep"] { color: var(--accent); font-weight: 600; font-size: 12px; }
.node[data-role="separator"] { border-top: 1px solid var(--border); }
.node-button > button { max-width: 100%; }
.node-input > input, .node-combo > select, .node-list > select { width: 100%; min-width: 100px; }
.node-check > label, .node-radio > label { display: flex; align-items: flex-start; gap: 8px; line-height: 1.5; cursor: pointer; }
.node-check input, .node-radio input { margin-top: 2px; }
.node-number { display: flex; align-items: center; gap: 6px; }
.node-number input { width: 116px; min-width: 74px; }
.suffix { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.node-slider { display: flex; align-items: center; gap: 10px; }
.node-slider output { font-variant-numeric: tabular-nums; min-width: 40px; text-align: right; }
.node-progress { display: flex; gap: 8px; align-items: center; }
progress { accent-color: var(--accent); width: 100%; height: 10px; }
.node-progress span { font-size: 12px; white-space: pre-wrap; min-width: 40px; }
.node-image { position: relative; min-height: 60px; background: #f0f3f4; }
.node-image img { display: block; max-width: 100%; width: auto; height: auto; object-fit: contain; margin: auto; }
.node[data-role="preview"] { display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 3; min-height: 120px; overflow: hidden; background: #f0f3f4; }
.node[data-role="preview"] > .node { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.node[data-role="preview"] .node-label { color: var(--muted); text-align: center; }
.node[data-role="preview"] img { width: 100%; height: 100%; object-fit: contain; }
.interactive-image img { cursor: crosshair; }
.interactive-image[aria-disabled="true"] img { cursor: default; }
.group-title { margin: 0 0 4px; font-size: 14px; font-weight: 600; }
.preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cell-text { white-space: pre-wrap; }
.recent-files { margin-top: 20px; border-top: 1px solid var(--border); padding-top: 12px; }
.recent-files h2 { font-size: 13px; font-weight: 600; margin: 0 0 8px; }
#recent-links { display: flex; flex-wrap: wrap; gap: 6px; }
.recent-download { color: var(--accent); font-size: 12px; text-align: left; }
.image-error { display: block; padding: 22px 12px; color: var(--muted); text-align: center; }
.node-spacer { min-height: 6px; }
.node-tabs { display: flex; flex-direction: column; gap: 12px; }
.flow-row[data-role="splitter"] { flex-wrap: nowrap; align-items: flex-start; }
.flow-row[data-role="splitter"] > .node:first-child { flex: 0 0 250px; width: 250px; min-width: 0; }
.flow-row[data-role="splitter"] > .node:not(:first-child) { flex: 1 1 0; min-width: 0; }
dialog:has(.node[data-role="splitter"]) { width: min(1120px, calc(100vw - 32px)); max-width: 1120px; }
.tab-bar { display: flex; gap: 2px; overflow-x: auto; border-bottom: 1px solid var(--border); padding-bottom: 1px; }
.tab-bar button { flex: 0 0 auto; border: 0; border-radius: 0; border-bottom: 2px solid transparent; background: transparent; padding: 8px 12px; }
.tab-bar button[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.table-scroll { overflow: auto; max-height: 480px; border: 1px solid var(--border); border-radius: 4px; }
table { width: 100%; border-collapse: separate; border-spacing: 0; text-align: left; font-size: 12px; }
th, td { padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; overflow-wrap: anywhere; min-width: 80px; }
th { position: sticky; top: 0; z-index: 1; color: #4f5a62; background: var(--subtle); font-weight: 600; white-space: nowrap; }
tbody tr:last-child > td { border-bottom: 0; }
tbody tr[aria-selected="true"] { background: var(--selection); }
tbody tr:hover { background: #f2f6f8; }
.selection-cell { width: 34px; min-width: 34px; text-align: center; padding: 8px; }
td > input:not([type="checkbox"]):not([type="radio"]) { width: 100%; min-width: 110px; font-size: 12px; }
.table-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding-top: 8px; color: var(--muted); font-size: 12px; }
.pager-controls { display: flex; gap: 5px; align-items: center; }
.pager-controls select { width: 83px; min-height: 28px; font-size: 12px; }
.pager-controls .icon-button { height: 28px; min-height: 28px; width: 28px; min-width: 28px; }
.notifications:empty { display: none; }
.notice { display: flex; align-items: flex-start; gap: 10px; padding: 8px 20px; font-size: 12px; border-bottom: 1px solid var(--border); background: #f4f8fa; }
.notice-message { flex: 1; white-space: pre-wrap; overflow-wrap: anywhere; }
.notice[data-level="error"], .notice[data-level="danger"] { color: #a62837; background: #fff2f3; }
.notice[data-level="warning"] { color: #865f18; background: #fff8e9; }
.notice-dismiss { border: 0; min-height: 20px; width: 22px; padding: 0; background: transparent; font-size: 18px; }
dialog { width: min(820px, calc(100vw - 32px)); max-width: 1100px; max-height: calc(100dvh - 40px); padding: 0; border: 1px solid #bec8ce; border-radius: 6px; box-shadow: 0 12px 44px #18242b26; color: inherit; }
dialog::backdrop { background: #16242d55; }
.dialog-header { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.dialog-header h2 { flex: 1; margin: 0; font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.dialog-body { padding: 16px; overflow: auto; max-height: calc(100dvh - 180px); }
.dialog-connection { color: #a62837; background: #fff2f3; padding: 8px 16px; font-size: 12px; }
.dialog-footer { display: flex; justify-content: flex-end; gap: 8px; align-items: center; flex-wrap: wrap; padding: 12px 16px; border-top: 1px solid var(--border); }
.file-dialog { width: min(900px, calc(100vw - 32px)); }
.file-controls { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.file-controls select { width: 170px; }
.file-path-form { display: flex; gap: 6px; flex: 1; min-width: 180px; }
.file-path-form input { flex: 1; min-width: 0; }
.file-table { min-width: 420px; }
.file-name { border: 0; background: transparent; padding: 2px 0; min-height: 24px; justify-content: flex-start; text-align: left; }
.file-name:hover:not(:disabled) { color: var(--accent); background: transparent; }
.file-size { width: 110px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.file-summary, .file-filter { color: var(--muted); font-size: 12px; margin: 8px 0; overflow-wrap: anywhere; }
.file-error { color: var(--danger); padding: 8px 0; white-space: pre-wrap; }
.file-save { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.file-save input { flex: 1; min-width: 0; }
.file-download { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); text-decoration: none; border: 1px solid #cbd3d8; border-radius: 4px; padding: 6px 10px; min-height: 32px; }
.file-download[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.noscript { margin: 20px; color: var(--danger); }
@media (max-width: 1000px) {
  .node[data-role="cameraGeometryWorkspace"] { flex-direction: column; align-items: stretch; }
  .node[data-role="cameraGeometryWorkspace"] > .node { flex: 0 0 auto; width: 100%; }
  .node[data-role="cameraGeometryWorkspace"] > .node[data-role="calibrationInspector"] { flex: 0 0 auto; width: 100%; min-width: 0; max-width: 100%; }
}
@media (max-width: 980px) {
  .workspace { grid-template-columns: 176px minmax(0, 1fr); }
  .sidebar { padding-inline: 8px; }
  .brand { gap: 7px; }
  .brand small { font-size: 9px; }
  .page-scroll, .toolbar { padding-inline: 14px; }
  .flow-grid { grid-template-columns: repeat(min(var(--columns, 2), 2), minmax(0, 1fr)); }
  .grid-item { grid-column: auto / span min(var(--column-span, 1), 2); grid-row: auto; }
}
@media (max-width: 680px) {
  .auth-shell { padding-top: 36px; }
  .workspace { display: flex; flex-direction: column; }
  .sidebar { overflow: visible; padding: 10px 12px 0; border-right: 0; border-bottom: 1px solid var(--border); gap: 10px; }
  .brand { padding: 0; }
  .brand strong { font-size: 15px; }
  .brand small { font-size: 10px; }
  #navigation { flex-direction: row; overflow-x: auto; padding-bottom: 6px; gap: 3px; }
  .nav-button { width: auto; min-height: 35px; padding: 6px 9px; flex: 0 0 auto; white-space: nowrap; font-size: 12px; }
  .nav-button .icon { display: none; }
  .sidebar-bottom { display: flex; align-items: center; position: static; margin: 0; padding: 0 0 8px; border: 0; gap: 8px; }
  .sidebar-command { width: 32px; font-size: 0; padding: 6px; }
  .sidebar-command .icon { font-size: 13px; }
  #members-toggle { width: auto; min-height: 44px; padding: 6px 9px; font-size: 12px; }
  #members-toggle .icon { display: inline-block; }
  .sidebar-bottom > small { display: none; }
  .main { flex: 1; }
  .toolbar { padding: 8px 12px; gap: 8px; }
  .host { max-width: 150px; }
  .toolbar-actions { gap: 5px; }
  .toolbar-actions > button { min-height: 34px; }
  .stop-command { font-size: 12px; padding-inline: 8px; }
  .page-scroll { padding: 14px 12px; }
  h1, .node[data-role="pageTitle"] { font-size: 18px; margin-bottom: 12px; }
  .flow-grid { display: flex; flex-direction: column; align-items: stretch; }
  .flow-grid > .node { width: 100%; }
  .flow-row { gap: 8px; }
  .flow-row[data-role="splitter"] { flex-direction: column; }
  .flow-row[data-role="splitter"] > .node:first-child { flex: 0 0 auto; width: 100%; }
  .flow-row[data-role="splitter"] > .node:not(:first-child) { width: 100%; }
  dialog:has(.node[data-role="splitter"]) { width: calc(100vw - 16px); }
  .flow-row > .node-container, .flow-row > .node-text, .flow-row > .node-table, .flow-row > .node-image { flex-basis: 100%; }
  .flow-row > .node[data-role="calibrationInspector"] { flex: 0 0 100%; width: 100%; min-width: 0; max-width: 100%; }
  .statusbar { padding: 6px 12px; }
  .connection-banner, .notice { padding-inline: 12px; }
  dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); }
  .dialog-header { padding: 10px 12px; gap: 8px; }
  .dialog-header h2 { font-size: 14px; }
  .dialog-body { padding: 12px; max-height: calc(100dvh - 172px); }
  .dialog-footer { padding: 10px 12px; }
  .file-controls select { width: 100%; }
  .file-path-form { flex-basis: 100%; }
  .table-scroll { max-height: 360px; }
  .account-controls { width: 100%; border-left: 0; border-top: 1px solid var(--border); padding: 8px 0 0; justify-content: space-between; }
  .account-label { max-width: calc(100% - 110px); }
  #auth-logout { min-height: 44px; }
  .members-tools label, #members-filter { min-height: 44px; }
  .members-tools label { display: flex; align-items: center; }
  #members-summary { width: 100%; }
  .members-header .icon-button { min-width: 44px; width: 44px; height: 44px; }
  .members-scroll { max-height: none; }
  .members-table, .members-table tbody { display: block; }
  .members-table thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .members-table tr { display: block; padding: 12px; border-bottom: 1px solid var(--border); }
  .members-table tr:last-child { border-bottom: 0; }
  .members-table td { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border: 0; padding: 5px 0; }
  .members-table td::before { content: attr(data-label); color: var(--muted); flex: 0 0 56px; font-weight: 400; }
  .members-table .member-account { display: block; padding: 0 0 10px; }
  .members-table .member-account::before, .members-empty td::before { display: none; }
  .members-table .member-date time { text-align: right; }
  .member-actions button { min-height: 44px; }
  .members-table .members-empty td { display: block; text-align: center; padding: 20px 0; }
}
@media (max-width: 699px) {
  .preview-grid { display: flex; flex-direction: column; }
  .preview-grid > .node { width: 100%; }
}
:root[data-text-size="large"] { font-size: 15px; }
:root[data-text-size="large"] .node[data-role="muted"],
:root[data-text-size="large"] .node[data-role="pageSubtitle"],
:root[data-text-size="large"] .suffix,
:root[data-text-size="large"] table,
:root[data-text-size="large"] td > input,
:root[data-text-size="large"] .tab-bar button { font-size: 14px; }
:root[data-theme="dark"] { color-scheme: dark; color: #e2e7ea; background: #1c1f21; --muted: #abb5bb; --border: #42484c; --subtle: #292e31; --accent: #69bcd5; --selection: #233e47; --danger: #ff98a4; }
:root[data-theme="dark"] button,
:root[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
:root[data-theme="dark"] select,
:root[data-theme="dark"] textarea { background: #24282b; border-color: #566068; }
:root[data-theme="dark"] button.primary { color: #10232a; background: #69bcd5; border-color: #69bcd5; }
:root[data-theme="dark"] button.danger { color: #ff98a4; background: #37272b; border-color: #8d515b; }
:root[data-theme="dark"] button:hover:not(:disabled),
:root[data-theme="dark"] tbody tr:hover { background: #343c41; }
:root[data-theme="dark"] .nav-button { background: transparent; border-color: transparent; }
:root[data-theme="dark"] .nav-button[aria-current="page"],
:root[data-theme="dark"] button[aria-pressed="true"] { background: var(--selection); }
:root[data-theme="dark"] .node-image { background: #262b2e; }
:root[data-theme="dark"] .node[data-role="preview"] { background: #262b2e; }
:root[data-theme="dark"] th { color: #cbd5db; }
:root[data-theme="dark"] dialog { background: #1c1f21; border-color: #566068; }
:root[data-theme="dark"] .notice { color: #c0dae4; background: #26343b; }
:root[data-theme="dark"] .notice[data-level="error"],
:root[data-theme="dark"] .notice[data-level="danger"],
:root[data-theme="dark"] .dialog-connection,
:root[data-theme="dark"] body[data-connection="disconnected"] .connection-banner { color: #ffb2bc; background: #40272d; border-color: #71414a; }
:root[data-theme="dark"] .notice[data-level="warning"],
:root[data-theme="dark"] .connection-banner { color: #efd29b; background: #3c3425; border-color: #74613e; }
:root[data-theme="dark"] .member-status[data-status="pending"] { color: #efd29b; }
:root[data-theme="dark"] .member-status[data-status="approved"],
:root[data-theme="dark"] .members-message[data-level="success"] { color: #86d9aa; }
