:root {
  --rail-width: 88px;
  --topbar-height: 56px;
  --directory-width: 224px;
  --drawer-width: 360px;
  --bg: #f5f7f6;
  --surface: #ffffff;
  --surface-soft: #f5f7f6;
  --surface-strong: #f0f3f2;
  --line: #dce3df;
  --line-strong: #bcc7c2;
  --ink: #1c2925;
  --text: #34413d;
  --muted: #5c6d66;
  --rail: #172820;
  --rail-hover: #263a34;
  --accent: #147d68;
  --accent-strong: #0c5c4e;
  --accent-soft: #e6f3ee;
  --amber: #805616;
  --amber-soft: #fff3da;
  --red: #a63d3d;
  --red-soft: #fbe8e7;
  --blue: #356f9e;
  --blue-soft: #e7f0f8;
  --soft: var(--surface-strong);
  --grid-line: #e5eae8;
  --grid-head: #edf1ef;
  --grid-hover: #f5faf8;
  --grid-selected: #e6f4f0;
  --priority-bg: #fffaf0;
  --shadow: 0 10px 28px rgba(22, 35, 30, 0.12);
  --font-ui: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  --font-data: "Geist Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --ui-font-size: 13px;
  --data-font-size: 11px;
  --data-font-weight: 600;
}

html[data-theme-preset="high_readability"] {
  --bg: #edf1ef;
  --surface-soft: #f5f7f6;
  --surface-strong: #e3e8e5;
  --line: #c3ccc8;
  --line-strong: #8e9c96;
  --ink: #0d1512;
  --text: #26332f;
  --muted: #5b6964;
  --accent: #0d6b5b;
  --accent-strong: #075044;
  --accent-soft: #d8eee7;
  --grid-head: #e1e7e4;
}

html[data-theme-preset="dark_onset"] {
  --bg: #151916;
  --surface: #1d231f;
  --surface-soft: #222925;
  --surface-strong: #2c3530;
  --line: #3b4640;
  --line-strong: #5a6861;
  --ink: #f1f5f2;
  --text: #d2dbd6;
  --muted: #97a59e;
  --rail: #0c100e;
  --rail-hover: #202c27;
  --accent: #42a58f;
  --accent-strong: #6ac3af;
  --accent-soft: #233c34;
  --amber: #e0a94f;
  --amber-soft: #3f321d;
  --red: #ef8585;
  --red-soft: #442626;
  --blue: #87b9df;
  --blue-soft: #243747;
  --grid-head: #28312c;
  --grid-hover: #24342e;
  --grid-selected: #28453c;
  --priority-bg: #332b1c;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.34);
}

html[data-theme-preset="print_review"] {
  --bg: #eeeeec;
  --surface-soft: #f5f5f3;
  --surface-strong: #e4e4e1;
  --line: #c7c7c2;
  --line-strong: #8f8f88;
  --ink: #111311;
  --text: #292c2a;
  --muted: #626762;
  --rail: #252825;
  --rail-hover: #3c403c;
  --accent: #3e5d54;
  --accent-strong: #223d35;
  --accent-soft: #e0e6e3;
  --grid-head: #e4e4e1;
  --grid-hover: #f4f4f1;
  --grid-selected: #e6ebe8;
}

html[data-theme-border="subtle"] { --grid-line: color-mix(in srgb, var(--line) 62%, transparent); }
html[data-theme-border="medium"] { --grid-line: var(--line); }
html[data-theme-border="strong"] { --grid-line: var(--line-strong); }
html[data-theme-contrast="high"] { --muted: color-mix(in srgb, var(--text) 72%, var(--muted)); }

* { box-sizing: border-box; }
html, body { width: 100%; min-width: 0; min-height: 100%; margin: 0; }
body { overflow: hidden; color: var(--text); background: var(--bg); font-family: var(--font-ui); font-size: var(--ui-font-size); letter-spacing: 0; }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
button { color: inherit; }
button, select { cursor: pointer; }
input, select, textarea { color: var(--ink); }
:where(button, a, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
h1, h2, h3, p { margin: 0; }
h1 { color: var(--ink); font-size: 24px; line-height: 1.25; }
h2 { color: var(--ink); font-size: 16px; line-height: 1.35; }
h3 { color: var(--ink); font-size: 13px; line-height: 1.35; }
.hidden { display: none !important; }
.eyebrow { color: var(--muted); font-size: 10px; font-weight: 750; line-height: 1.4; text-transform: uppercase; }

.app-shell {
  width: 100vw;
  height: 100dvh;
  display: grid;
  grid-template-columns: var(--rail-width) minmax(0, 1fr);
  grid-template-rows: var(--topbar-height) minmax(0, 1fr) var(--release-bar-height, 0px);
  overflow: hidden;
}

.app-topbar {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  z-index: 20;
}

.brand-button, .project-switcher, .review-center-button, .rail-button, .icon-button, .text-button, .tool-button {
  border: 0;
  background: transparent;
}

.vds-icon { width: 16px; height: 16px; flex: none; display: inline-block; vertical-align: middle; pointer-events: none; }
[data-icon] { display: inline-flex; align-items: center; justify-content: center; flex: none; }
.brand-button { width: 64px; height: 40px; flex: none; display: grid; place-items: center; padding: 0; }
.brand-mark { color: #fff; font-size: 18px; font-weight: 700; }
.brand-name { color: var(--muted); font-size: 13px; font-weight: 500; white-space: nowrap; }
.project-switcher { max-width: 300px; min-width: 100px; height: 34px; display: flex; flex: 0 1 auto; align-items: center; gap: 7px; padding: 0 12px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); font-size: 13px; overflow: hidden; }
.project-switcher:hover { border-color: var(--line-strong); background: var(--surface-soft); }
.project-switcher #current-project-name { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-switcher small { flex: none; color: var(--muted); font-family: var(--font-data); font-size: 9px; }
.project-state-dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--accent); }
.current-location { min-width: 0; max-width: 280px; display: flex; flex: 0 1 auto; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; overflow: hidden; white-space: nowrap; }
.current-location span, .current-location strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.current-location span { flex: 0 1 auto; }
.current-location strong { flex: 0 1 auto; color: var(--ink); font-weight: 700; }
.current-location i { flex: none; color: var(--line-strong); font-style: normal; }
.topbar-spacer { flex: 1; }
.global-search-overlay { position: fixed; inset: 0; z-index: 90; display: grid; place-items: start center; padding: max(82px, 10vh) 20px 20px; }
.global-search-backdrop { position: absolute; inset: 0; border: 0; background: rgba(23, 40, 32, .42); cursor: default; }
.global-search-panel { position: relative; width: min(680px, calc(100vw - 40px)); max-height: min(620px, calc(100dvh - 110px)); display: grid; grid-template-rows: 62px 38px minmax(160px, 1fr) 38px; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); box-shadow: 0 18px 46px rgba(23, 40, 32, .24); }
.global-search-input-row { min-width: 0; display: flex; align-items: center; gap: 10px; padding: 0 14px 0 16px; }
.global-search-input-row > [data-icon] { color: var(--accent); }
.global-search-input-row input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 16px; font-weight: 650; }
.global-search-scope { display: flex; align-items: center; gap: 8px; padding: 0 16px; border-block: 1px solid var(--line); color: var(--muted); background: var(--surface-strong); }
.global-search-scope strong { min-width: 0; overflow: hidden; font-size: 10px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.global-search-scope small { margin-left: auto; color: var(--blue); font-size: 9px; font-weight: 700; white-space: nowrap; }
.global-search-results { min-height: 0; overflow: auto; padding: 8px 0; }
.global-search-summary { display: flex; align-items: center; gap: 8px; padding: 3px 16px 8px; color: var(--muted); font-size: 9px; }
.global-search-summary strong { color: var(--ink); font-size: 10px; }
.global-search-result { width: 100%; min-height: 58px; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 16px; border: 0; border-top: 1px solid var(--line); background: var(--surface); text-align: left; }
.global-search-result:hover, .global-search-result:focus-visible { background: var(--accent-soft); }
.global-search-result > em { min-width: 34px; padding: 6px 5px; border-radius: 4px; color: var(--accent-strong); background: var(--accent-soft); font-family: var(--font-data); font-size: 9px; font-style: normal; font-weight: 800; text-align: center; }
.global-search-result > span { min-width: 0; }
.global-search-result strong, .global-search-result small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.global-search-result strong { color: var(--ink); font-family: var(--font-data); font-size: 11px; }
.global-search-result small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.global-search-result > b { color: var(--blue); font-size: 9px; font-weight: 700; }
.global-search-empty { min-height: 170px; display: grid; place-content: center; gap: 7px; padding: 28px; color: var(--muted); text-align: center; }
.global-search-empty strong { color: var(--ink); font-size: 12px; }
.global-search-empty small { max-width: 360px; font-size: 10px; line-height: 1.5; }
.global-search-footer { display: flex; align-items: center; gap: 14px; padding: 0 16px; border-top: 1px solid var(--line); color: var(--muted); background: var(--surface-strong); font-family: var(--font-data); font-size: 9px; }
.global-search-footer small { margin-left: auto; font-family: var(--font-ui); }
.directory-search input, .table-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; font-size: 11px; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.review-center-button { height: 32px; display: inline-flex; flex: none; align-items: center; gap: 5px; padding: 0 4px; border: 0; color: var(--muted); background: transparent; white-space: nowrap; }
.review-center-button:hover, .icon-button:hover { background: var(--surface-strong); }
.review-center-button strong { font-size: 12px; font-weight: 500; }
.review-center-button small { min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 4px; border-radius: 4px; color: var(--amber); background: var(--amber-soft); font-family: var(--font-data); font-size: 8px; }
.review-center-icon { color: var(--accent-strong); font-size: 13px; }
.top-feedback-link { height: 30px; display: inline-flex; flex: none; align-items: center; gap: 5px; padding: 0 4px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.top-feedback-link:hover { border-color: var(--line-strong); background: var(--surface-strong); }
.top-feedback-link span { color: var(--accent-strong); font-size: 12px; }
.top-feedback-link strong { font-size: 12px; font-weight: 500; }
.sync-state { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.sync-state i { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.sync-state.ok i { background: var(--accent); }
.avatar { width: 22px; height: 22px; flex: none; color: var(--muted); }
.avatar .vds-icon { width: 22px; height: 22px; }

.project-rail { grid-column: 1; grid-row: 1 / 3; width: var(--rail-width); min-height: 0; overflow-y: auto; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px; color: #c3d0ca; background: var(--rail); }
.rail-button { width: 72px; height: 50px; min-height: 50px; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border-radius: 5px; color: #c3d0ca; }
.rail-button .vds-icon { width: 18px; height: 18px; }
.rail-button small { font-size: 11px; line-height: 1.2; }
.rail-button:hover { color: #fff; background: var(--rail-hover); }
.rail-button.active { color: #fff; background: #2c4f42; }

.app-main { grid-column: 2; grid-row: 2; min-width: 0; min-height: 0; overflow: hidden; }
.module-view { display: none; width: 100%; height: 100%; min-width: 0; min-height: 0; }
.module-view.active { display: block; }

.button { min-height: 32px; padding: 0 11px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); font-size: 11px; font-weight: 650; }
.button:hover { border-color: var(--line-strong); }
.button.primary { border-color: var(--accent); color: #fff; background: var(--accent); }
.button.primary:hover { background: var(--accent-strong); }
.button.secondary { color: var(--text); }
.button:disabled { opacity: .45; cursor: default; }
.icon-button { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 5px; color: var(--muted); font-weight: 700; }
.text-button { padding: 4px 0; color: var(--accent); font-size: 11px; font-weight: 700; }

.project-launcher { position: absolute; inset: var(--topbar-height) 0 var(--release-bar-height, 0px) var(--rail-width); padding: 30px; overflow: auto; background: var(--bg); z-index: 30; }
.project-transition { position: absolute; inset: var(--topbar-height) 0 var(--release-bar-height, 0px) var(--rail-width); z-index: 40; display: grid; place-items: center; background: var(--bg); }
.project-transition.hidden { display: none; }
.project-transition-card { width: min(440px, calc(100% - 36px)); padding: 30px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 18px 42px rgba(22, 40, 33, .08); }
.project-transition-card h1 { margin-top: 9px; font-size: 22px; }
.project-transition-card p:not(.eyebrow) { margin-top: 8px; color: var(--muted); font-size: 12px; }
.project-transition-progress { display: block; height: 3px; margin-top: 26px; overflow: hidden; border-radius: 2px; background: var(--accent-soft); }
.project-transition-progress::after { content: ""; display: block; width: 36%; height: 100%; background: var(--accent); animation: project-transition-progress 1.2s ease-in-out infinite alternate; }
@keyframes project-transition-progress { from { transform: translateX(0); } to { transform: translateX(180%); } }
.launcher-head { max-width: 1120px; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin: 0 auto 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.launcher-head h1 { margin-top: 5px; }
.launcher-head p:last-child { margin-top: 8px; color: var(--muted); font-size: 12px; }
.project-list { max-width: 1120px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 auto; }
.project-card { min-height: 150px; display: flex; flex-direction: column; padding: 16px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.project-card.review { border-color: #8fc1b5; box-shadow: inset 3px 0 var(--accent); }
.project-card header { display: flex; justify-content: space-between; gap: 12px; }
.project-card h2 { margin-top: 4px; font-size: 17px; }
.project-card p { margin-top: 10px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.project-card footer { display: flex; align-items: center; gap: 7px; margin-top: auto; padding-top: 14px; }
.badge { display: inline-flex; align-items: center; min-height: 20px; padding: 2px 7px; border-radius: 4px; color: var(--accent-strong); background: var(--accent-soft); font-size: 9px; font-weight: 700; white-space: nowrap; }
.badge.neutral { color: var(--muted); background: var(--surface-strong); }
.badge.warning { color: var(--amber); background: var(--amber-soft); }
.badge.danger { color: var(--red); background: var(--red-soft); }
.badge.info { color: var(--blue); background: var(--blue-soft); }

.project-dashboard { overflow: auto; padding: 26px 28px 40px; background: var(--bg); }
.dashboard-head, .module-page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.dashboard-head h1, .module-page-head h1 { margin-top: 5px; }
.dashboard-head > div:first-child > p:last-child, .module-page-head > div > p:last-child { margin-top: 7px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.dashboard-context { min-width: 132px; padding: 10px 12px; border-left: 3px solid var(--accent); background: var(--surface); }
.dashboard-context span { display: block; color: var(--muted); font-size: 9px; }
.dashboard-context strong { display: block; margin-top: 5px; color: var(--ink); font-size: 13px; }
.dashboard-help-button { margin-top: 10px; white-space: nowrap; }
.metric-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: 18px; border: 1px solid var(--line); background: var(--surface); }
.metric-item { min-width: 0; padding: 14px 15px; border-right: 1px solid var(--line); }
.metric-item:last-child { border-right: 0; }
.metric-item span { display: block; color: var(--muted); font-size: 9px; }
.metric-item strong { display: block; margin-top: 5px; color: var(--ink); font-family: var(--font-data); font-size: 22px; }
.metric-item small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; margin-top: 24px; }
.dashboard-primary, .dashboard-side { min-width: 0; }
.dashboard-side { padding-left: 20px; border-left: 1px solid var(--line); }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.section-heading h2 { margin-top: 4px; }
.section-heading p:not(.eyebrow) { margin-top: 4px; color: var(--muted); font-size: 10px; }
.dashboard-table-list { border-top: 1px solid var(--line); }
.dashboard-table-row { width: 100%; min-height: 58px; display: grid; grid-template-columns: 48px minmax(170px, 1fr) minmax(180px, 1.4fr) 90px 28px; align-items: center; gap: 10px; padding: 0 10px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; }
.dashboard-table-row:hover { background: var(--surface); }
.dashboard-table-row em { color: var(--accent); font-family: var(--font-data); font-size: 11px; font-style: normal; font-weight: 800; }
.dashboard-table-row strong { color: var(--ink); font-size: 12px; }
.dashboard-table-row small { color: var(--muted); font-size: 10px; line-height: 1.35; }
.dashboard-table-row b { color: var(--ink); font-family: var(--font-data); font-size: 12px; text-align: right; }
.work-entry { width: 100%; min-height: 72px; display: grid; grid-template-columns: 34px minmax(0, 1fr) 18px; align-items: center; gap: 10px; padding: 10px 8px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; text-decoration: none; }
.work-entry:hover { background: var(--surface); }
.work-entry.priority-entry { border-left: 3px solid var(--amber); background: var(--priority-bg); }
.work-entry.priority-entry:hover { background: var(--amber-soft); }
.work-entry-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 5px; color: var(--accent-strong); background: var(--accent-soft); }
.work-entry strong, .work-entry small { display: block; }
.work-entry strong { color: var(--ink); font-size: 11px; }
.work-entry small { margin-top: 5px; color: var(--muted); font-size: 9px; line-height: 1.4; }
.project-home-summary { display: flex; gap: 1px; margin-top: 18px; border: 1px solid var(--line); background: var(--line); }
.project-home-summary > span { flex: 1; min-width: 0; padding: 14px 18px; background: var(--surface); }
.project-home-summary strong, .project-home-summary small { display: block; }
.project-home-summary strong { color: var(--ink); font-family: var(--font-data); font-size: 22px; }
.project-home-summary small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.project-home-section { margin-top: 26px; }
.project-module-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.project-module-card { min-height: 154px; display: flex; flex-direction: column; align-items: flex-start; gap: 7px; padding: 18px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); text-align: left; cursor: pointer; }
.project-module-card:hover, .project-module-card:focus-visible { border-color: var(--accent); background: var(--accent-soft); }
.project-module-card small { color: var(--accent-strong); font-size: 10px; }
.project-module-card strong { color: var(--ink); font-size: 17px; }
.project-module-card span { color: var(--muted); font-size: 11px; line-height: 1.5; }
.project-module-card em { margin-top: auto; color: var(--accent-strong); font-size: 11px; font-style: normal; font-weight: 700; }
.project-home-empty { padding: 20px; border: 1px dashed var(--line); color: var(--muted); font-size: 11px; }
.project-table-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; gap: 12px; }
.project-table-group { min-width: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.project-table-group summary { display: flex; justify-content: space-between; gap: 10px; padding: 13px 15px; cursor: pointer; }
.project-table-group summary strong { color: var(--ink); font-size: 12px; }
.project-table-group summary span { color: var(--muted); font-size: 10px; }
.project-table-group[open] summary { border-bottom: 1px solid var(--line); }
.project-table-row { width: 100%; display: grid; grid-template-columns: 32px minmax(0, 1fr) auto 12px; align-items: center; gap: 8px; padding: 11px 15px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; }
.project-table-row:last-child { border-bottom: 0; }
.project-table-row:hover, .project-table-row:focus-visible { background: var(--accent-soft); }
.project-table-row em { color: var(--accent-strong); font-family: var(--font-data); font-size: 10px; font-style: normal; }
.project-table-row strong { overflow: hidden; color: var(--ink); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.project-table-row small { color: var(--muted); font-size: 10px; }
.project-home-continue { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.project-home-continue .work-entry { min-height: 76px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); cursor: pointer; }
.project-home-continue .work-entry:hover { background: var(--accent-soft); }

.table-workspace.active { display: grid; grid-template-columns: var(--directory-width) minmax(0, 1fr); background: var(--surface); }
.table-directory { min-width: 0; overflow: auto; padding: 12px 9px; border-right: 1px solid var(--line); background: var(--surface-soft); }
.directory-head { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 10px; }
.directory-head h2 { margin-top: 3px; font-size: 14px; }
.directory-search { height: 30px; display: flex; align-items: center; gap: 6px; margin-bottom: 10px; padding: 0 8px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); color: var(--muted); }
.directory-group { margin-top: 12px; }
.directory-group:first-child { margin-top: 2px; }
.directory-group-title { display: flex; align-items: center; justify-content: space-between; height: 26px; padding: 0 7px; color: var(--muted); font-size: 9px; font-weight: 750; text-transform: uppercase; }
.directory-group-title b { min-width: 19px; padding: 2px 4px; border-radius: 3px; background: var(--surface-strong); text-align: center; font-size: 8px; }
.table-directory-row { width: 100%; min-height: 35px; display: grid; grid-template-columns: 31px minmax(0, 1fr) auto; align-items: center; gap: 7px; padding: 0 7px; border: 0; border-radius: 5px; background: transparent; text-align: left; }
.table-directory-row:hover { background: var(--surface-strong); }
.table-directory-row.active { color: var(--accent-strong); background: var(--accent-soft); }
.table-directory-row em { font-family: var(--font-data); font-size: 9px; font-style: normal; font-weight: 800; }
.table-directory-row span { min-width: 0; overflow: hidden; color: var(--ink); font-size: 10px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.table-directory-row small { color: var(--muted); font-family: var(--font-data); font-size: 8px; }
.table-canvas { position: relative; min-width: 0; min-height: 0; display: grid; grid-template-rows: 36px 58px 36px 40px auto minmax(0, 1fr) 34px; background: var(--surface); }
.open-table-tabs { grid-row: 1; display: flex; align-items: end; gap: 1px; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--surface-soft); }
.open-tab { height: 35px; min-width: 118px; max-width: 190px; display: flex; align-items: center; gap: 7px; padding: 0 9px; border: 0; border-right: 1px solid var(--line); background: transparent; font-size: 10px; }
.open-tab.active { background: var(--surface); box-shadow: inset 0 2px var(--accent); }
.open-tab span { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.open-tab i { color: var(--muted); font-style: normal; }
.table-titlebar { grid-row: 2; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 12px; border-bottom: 1px solid var(--line); }
.table-help-panel { position: absolute; top: 94px; left: 12px; right: 12px; z-index: 25; padding: 8px 12px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); box-shadow: var(--shadow); }
.table-help-panel p { max-width: 100ch; color: var(--ink-soft); font-size: 11px; line-height: 1.45; }
.table-help-panel p.empty { color: var(--muted); }
.table-help-panel p.long:not(.full) { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 1; }
.table-help-panel p.full { overflow-wrap: anywhere; }
.mobile-directory-button { display: none; flex: 0 0 auto; }
.table-identity { min-width: 0; display: flex; align-items: center; gap: 9px; }
.table-number { min-width: 32px; height: 22px; display: grid; place-items: center; border-radius: 4px; color: var(--accent-strong); background: var(--accent-soft); font-family: var(--font-data); font-size: 9px; font-weight: 800; }
.table-heading-copy { min-width: 0; }
.table-heading-title { min-width: 0; display: flex; align-items: center; gap: 7px; }
.table-identity h1 { max-width: 420px; overflow: hidden; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.table-help-toggle { flex: 0 0 auto; padding: 3px 7px; border: 1px solid var(--line-strong); border-radius: 4px; color: var(--accent-strong); background: var(--surface); font-size: 9px; }
.table-help-toggle:hover, .table-help-toggle[aria-expanded="true"] { border-color: var(--accent); background: var(--accent-soft); }
.table-identity p { margin-top: 2px; color: var(--muted); font-size: 9px; }
.title-actions { display: flex; align-items: center; gap: 6px; }
.application-help-button { flex: none; white-space: nowrap; }
.table-view-tabs { grid-row: 3; display: flex; align-items: flex-end; gap: 2px; padding: 0 10px; border-bottom: 1px solid var(--line); overflow: hidden; }
.view-tab { height: 35px; padding: 0 10px; border: 0; border-bottom: 2px solid transparent; color: var(--muted); background: transparent; font-size: 10px; }
.view-tab.active { border-bottom-color: var(--accent); color: var(--ink); font-weight: 700; }
.saved-view-tab { display: inline-flex; align-items: stretch; height: 35px; border-bottom: 2px solid transparent; }
.saved-view-tab.active { border-bottom-color: var(--accent); background: #eef5f2; }
.saved-view-tab > button { border: 0; color: var(--muted); background: transparent; font-size: 10px; }
.saved-view-tab > button:first-child { padding: 0 4px 0 10px; }
.saved-view-tab > button:last-child { width: 24px; color: var(--muted); font-size: 13px; }
.saved-view-tab.active > button:first-child { color: var(--ink); font-weight: 700; }
.save-view-tab { height: 35px; margin-left: 4px; padding: 0 9px; border: 0; color: var(--accent-strong); background: transparent; font-size: 10px; font-weight: 700; }
.table-toolbar { grid-row: 4; min-width: 0; display: flex; align-items: center; gap: 6px; padding: 0 9px; border-bottom: 1px solid var(--line); background: #fbfcfb; }
.toolbar-primary { display: flex; align-items: center; gap: 3px; }
.tool-button { height: 28px; padding: 0 8px; border-radius: 4px; color: var(--muted); font-size: 9px; }
.tool-button:hover, .tool-button.active { color: var(--ink); background: var(--surface-strong); }
.tool-button b { min-width: 15px; display: inline-grid; place-items: center; margin-left: 3px; border-radius: 3px; color: var(--accent-strong); background: var(--accent-soft); font-size: 8px; }
.page-refresh-action { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.page-refresh-action .vds-icon { width: 15px; height: 15px; }
.page-refresh-action[aria-busy="true"] .vds-icon { animation: page-refresh-spin .8s linear infinite; }
@keyframes page-refresh-spin { to { transform: rotate(360deg); } }
.table-search { width: min(220px, 22vw); height: 28px; display: flex; align-items: center; gap: 6px; margin-left: auto; padding: 0 8px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); color: var(--muted); }
.selection-bar { grid-row: 5; min-height: 36px; display: flex; align-items: center; gap: 8px; padding: 4px 10px; border-bottom: 1px solid #a9c9c1; background: #edf7f4; }
.selection-bar strong { font-size: 10px; }
.selection-bar span { flex: 1; }
.grid-viewport { grid-row: 6; position: relative; min-width: 0; min-height: 0; overflow: auto; background: var(--surface); }
.data-grid { width: max-content; min-width: 0; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.data-grid th, .data-grid td { height: 40px; min-width: 138px; max-width: 260px; padding: 0 10px; border-right: 1px solid var(--grid-line); border-bottom: 1px solid var(--grid-line); overflow: hidden; color: var(--text); font-size: var(--data-font-size); text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.data-grid td { font-weight: var(--data-font-weight); }
.data-grid th { position: sticky; top: 0; z-index: 5; height: 34px; color: var(--muted); background: var(--grid-head); font-size: calc(var(--data-font-size) - 1px); font-weight: 700; }
.data-grid th > span { display: block; overflow: hidden; cursor: grab; text-overflow: ellipsis; }
.data-grid th.dragging-column { opacity: .55; }
.data-grid th.column-drop-before::before, .data-grid th.column-drop-after::after { content: ""; position: absolute; top: 0; bottom: 0; z-index: 9; width: 3px; background: var(--accent); }
.data-grid th.column-drop-before::before { left: -1px; }
.data-grid th.column-drop-after::after { right: -1px; }
.column-resizer { position: absolute; top: 0; right: -3px; bottom: 0; width: 7px; cursor: col-resize; z-index: 8; }
.column-resizer::after { content: ""; position: absolute; top: 8px; right: 3px; bottom: 8px; width: 1px; background: transparent; }
.data-grid th:hover .column-resizer::after, .resizing-column .column-resizer::after { background: var(--accent); }
.resizing-column, .resizing-column * { cursor: col-resize !important; user-select: none !important; }
.data-grid th.select-column, .data-grid td.select-column { width: 38px; min-width: 38px; max-width: 38px; padding: 0; text-align: center; }
.data-grid th.row-number, .data-grid td.row-number { width: 42px; min-width: 42px; max-width: 42px; color: var(--muted); text-align: right; }
.data-grid th:first-child, .data-grid td:first-child { position: sticky; left: 0; z-index: 4; background: inherit; }
.data-grid tr:hover td { background: var(--grid-hover); }
.data-grid tr.selected td { background: var(--grid-selected); }
.data-grid td.primary-cell { color: var(--accent-strong); font-family: var(--font-data); font-weight: 700; }
.data-grid td.empty { color: #9ca8a3; font-style: italic; }
.data-grid.wrap td { height: auto; min-height: 46px; padding-top: 8px; padding-bottom: 8px; white-space: normal; word-break: break-word; }
.data-grid.density-compact td { height: 32px; }
.data-grid.density-standard td { height: 40px; }
.data-grid.density-comfortable td { height: 52px; }
.data-grid.density-spacious td { height: 64px; }
.relation-chip { display: inline-flex; max-width: 150px; align-items: center; padding: 3px 6px; border: 0; border-radius: 4px; color: var(--accent-strong); background: var(--accent-soft); overflow: hidden; font-size: 9px; text-overflow: ellipsis; vertical-align: middle; }
.relation-chip:hover { background: #cfe7df; }
.relation-more { margin-left: 4px; color: var(--muted); font-size: 9px; }
.related-rollup-button { min-width: 54px; height: 25px; display: inline-flex; align-items: center; justify-content: center; gap: 3px; padding: 0 7px; border: 1px solid #a9cec4; border-radius: 4px; color: var(--accent-strong); background: var(--accent-soft); font-size: 9px; }
.related-rollup-button:hover { border-color: var(--accent); background: #cfe7df; }
.related-rollup-button strong { font-family: var(--font-data); }
.rollup-zero { color: var(--muted); font-family: var(--font-data); font-size: 9px; }
.group-row td { position: relative; height: 28px !important; min-width: 0; max-width: none; padding: 0 10px; color: var(--text); background: #f3f6f5; font-size: 9px; font-style: normal; }
.group-row[data-group-level="1"] td { border-top: 1px solid var(--line-strong); background: #e8efec; }
.group-row td > * { display: inline-block; vertical-align: middle; }
.group-row small { margin-right: 7px; color: var(--muted); }
.group-row strong { color: var(--ink); }
.group-row em { margin-left: 7px; color: var(--muted); font-style: normal; }
.group-toggle { width: 100%; height: 100%; padding: 0; border: 0; color: inherit; background: transparent; text-align: left; }
.group-toggle > * { display: inline-block; vertical-align: middle; }
.group-toggle i { width: 15px; color: var(--accent-strong); font-size: 12px; font-style: normal; }
.group-row.collapsed td { background: #e3ece8; }
.group-indent { height: 1px; }
.grid-loading { position: absolute; inset: 34px 0 0; display: grid; place-items: center; color: var(--muted); background: rgba(255, 255, 255, .86); font-size: 12px; z-index: 10; }
.table-statusbar { grid-row: 7; display: flex; align-items: center; gap: 18px; padding: 0 10px; border-top: 1px solid var(--line); color: var(--muted); background: var(--surface-soft); font-size: 9px; }
.table-load-metric { display: inline-flex; min-width: 124px; align-items: center; gap: 6px; padding-left: 12px; border-left: 1px solid var(--line); font-family: var(--font-data); font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-load-metric::before { width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); content: ""; }
.table-load-metric[data-load-state="loading"]::before { border: 1px solid var(--line-strong); border-top-color: var(--accent); background: transparent; animation: page-refresh-spin .8s linear infinite; }
.table-load-metric[data-load-state="complete"]::before { background: var(--accent); }
.table-load-metric[data-load-state="complete"].slow { color: var(--amber); }
.table-load-metric[data-load-state="complete"].slow::before { background: var(--amber); }
.table-load-metric[data-load-state="error"] { color: var(--red); }
.table-load-metric[data-load-state="error"]::before { background: var(--red); }
.table-statusbar .pagination { margin-left: auto; display: flex; align-items: center; gap: 7px; }

@media (min-width: 821px) {
  .table-workspace.directory-collapsed { grid-template-columns: 0 minmax(0, 1fr); }
  .table-workspace.directory-collapsed .table-directory { padding-right: 0; padding-left: 0; border-right: 0; visibility: hidden; }
  .table-workspace.directory-collapsed .mobile-directory-button { display: inline-grid; }
}

.panel-workspace.active { display: block; overflow: hidden; padding: 0; background: var(--bg); }
.operations-workspace.active, .review-workspace.active, .settings-workspace.active { display: block; overflow: auto; padding: 24px 26px 40px; background: var(--bg); }
.panel-context-strip { min-height: 48px; display: flex; align-items: center; gap: 8px; margin: 16px 0; padding: 0 12px; border: 1px solid var(--line); background: var(--surface); }
.context-chip { display: flex; flex-direction: column; gap: 2px; padding-right: 12px; border-right: 1px solid var(--line); }
.context-chip:last-child { border-right: 0; }
.context-chip span { color: var(--muted); font-size: 8px; }
.context-chip strong { color: var(--ink); font-size: 10px; }
.panel-layout { min-height: 600px; display: grid; grid-template-columns: 240px minmax(0, 1fr) 270px; border: 1px solid var(--line); background: var(--surface); }
.panel-list, .panel-review { padding: 14px; background: var(--surface-soft); overflow: auto; }
.panel-list { border-right: 1px solid var(--line); }
.panel-review { border-left: 1px solid var(--line); }
.panel-main { min-width: 0; padding: 18px; overflow: auto; }
.panel-empty-state { height: 100%; min-height: 420px; display: grid; place-content: center; gap: 8px; color: var(--muted); text-align: center; }
.panel-empty-state strong { color: var(--ink); font-size: 14px; }
.panel-dailies-row { width: 100%; display: grid; gap: 4px; padding: 9px 7px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; }
.panel-dailies-row:hover, .panel-dailies-row.active { background: var(--accent-soft); }
.panel-dailies-row strong { color: var(--ink); font-size: 10px; }
.panel-dailies-row span { color: var(--muted); font-size: 9px; }
.health-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 10px; }
.health-row strong { color: var(--amber); font-family: var(--font-data); }
.boundary-note { margin-top: 18px; padding: 11px; border-left: 3px solid var(--blue); background: var(--blue-soft); }
.boundary-note strong { color: var(--ink); font-size: 10px; }
.boundary-note p { margin-top: 5px; color: var(--muted); font-size: 9px; line-height: 1.5; }

.operations-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 22px; }
.operations-layout > section { min-width: 0; }
.import-workbench-shell { max-width: 1180px; margin-top: 22px; border-top: 1px solid var(--line-strong); }
.import-workbench-shell > section { padding: 20px 0 24px; border-bottom: 1px solid var(--line); }
.import-boundary { align-self: flex-start; padding: 5px 8px; border: 1px solid var(--line-strong); border-radius: 4px; color: var(--accent-strong); background: var(--accent-soft); font-size: 10px; font-weight: 700; }
.import-workbench-form { display: grid; grid-template-columns: minmax(240px, 1.35fr) minmax(220px, 1fr) minmax(300px, 1.45fr) auto; gap: 14px; align-items: end; margin-top: 16px; }
.import-workbench-form > label, .import-mode-control { min-width: 0; }
.import-workbench-form > label > span, .import-mode-control legend { display: block; margin-bottom: 7px; color: var(--ink); font-size: 10px; font-weight: 700; }
.import-workbench-form input[type="file"], .import-workbench-form select { width: 100%; min-height: 38px; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--surface); }
.import-workbench-form input[type="file"] { padding: 6px; }
.import-workbench-form select { padding: 0 10px; }
.import-file-control small { display: block; min-height: 14px; margin-top: 5px; color: var(--muted); font-size: 9px; }
.import-mode-control { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0; padding: 0; border: 0; }
.import-mode-control legend { grid-column: 1 / -1; }
.import-mode-control label { position: relative; min-height: 52px; }
.import-mode-control input { position: absolute; opacity: 0; pointer-events: none; }
.import-mode-control span { display: flex; height: 100%; flex-direction: column; justify-content: center; padding: 7px 9px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
.import-mode-control input:checked + span { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.import-mode-control strong { color: var(--ink); font-size: 10px; }
.import-mode-control small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.source-profile-reference { margin-top: 14px; color: var(--muted); font-size: 10px; }
.source-profile-reference summary { width: max-content; cursor: pointer; }
.source-profile-reference #source-profile-list { max-width: 760px; margin-top: 8px; border: 1px solid var(--line); }
.import-session-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.import-session-head p:last-child { margin-top: 5px; color: var(--muted); font-size: 10px; }
.import-step-rail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 18px 0 0; padding: 0; list-style: none; border-bottom: 1px solid var(--line); }
.import-step-rail li { position: relative; padding: 0 0 10px 20px; color: var(--muted); font-size: 10px; font-weight: 700; }
.import-step-rail li::before { position: absolute; left: 0; top: 0; width: 13px; height: 13px; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface); content: ""; }
.import-step-rail li.complete, .import-step-rail li.active { color: var(--accent-strong); }
.import-step-rail li.complete::before { border-color: var(--accent); background: var(--accent); }
.import-step-rail li.active::before { border: 4px solid var(--accent); }
.import-assistant-note { margin-top: 14px; padding: 9px 10px; border-left: 3px solid var(--blue); background: var(--blue-soft); color: var(--text); font-size: 10px; }
.import-review-block { margin-top: 16px; }
.import-mapping-review-details > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 10px; border: 1px solid var(--line); background: var(--surface-soft); cursor: pointer; list-style: none; }
.import-mapping-review-details > summary::-webkit-details-marker { display: none; }
.import-mapping-review-details > summary strong, .import-mapping-review-details > summary small { display: block; }
.import-mapping-review-details > summary strong { color: var(--ink); font-size: 11px; }
.import-mapping-review-details > summary small, .import-mapping-review-details > summary > span:last-child { margin-top: 2px; color: var(--muted); font-size: 8px; }
.import-review-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.import-review-toolbar p { color: var(--muted); font-size: 9px; }
.import-mapping-review-details .import-review-toolbar { margin: 10px 0 8px; }
.import-review-toolbar-actions { display: flex; gap: 7px; }
.import-mapping-table, .import-preview-table { width: 100%; overflow: auto; border: 1px solid var(--line); background: var(--surface); }
.import-mapping-row, .import-preview-row { display: grid; min-width: 820px; align-items: center; border-bottom: 1px solid var(--grid-line); font-size: 10px; }
.import-mapping-row { grid-template-columns: 110px minmax(150px, 1fr) 130px minmax(160px, 1fr) 124px 86px; }
.import-preview-row { grid-template-columns: 88px 94px minmax(160px, 1fr) minmax(220px, 1.5fr) 90px; }
.import-mapping-row:last-child, .import-preview-row:last-child { border-bottom: 0; }
.import-mapping-row > *, .import-preview-row > * { min-width: 0; padding: 8px 9px; }
.import-mapping-row.header, .import-preview-row.header { position: sticky; top: 0; z-index: 1; color: var(--muted); background: var(--grid-head); font-size: 9px; font-weight: 700; }
.import-mapping-row code, .import-preview-row code { color: var(--ink); font-family: var(--font-data); font-size: var(--data-font-size); font-weight: var(--data-font-weight); overflow-wrap: anywhere; }
.import-mapping-row select { width: 100%; min-height: 30px; border: 1px solid var(--line); border-radius: 3px; background: var(--surface); font-size: 9px; }
.import-field-candidate { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(210px, 1fr) 180px 180px 150px auto; gap: 8px; align-items: end; border-top: 1px dashed var(--line-strong); background: var(--amber-soft); }
.import-field-candidate.hidden { display: none; }
.import-field-candidate > span:first-child strong, .import-field-candidate > span:first-child small { display: block; }
.import-field-candidate > span:first-child small { margin-top: 3px; color: var(--muted); font-size: 8px; line-height: 1.4; }
.import-field-candidate label { display: grid; gap: 4px; color: var(--muted); font-size: 8px; }
.import-field-candidate input, .import-field-candidate select { width: 100%; min-height: 30px; padding: 0 7px; border: 1px solid var(--line); border-radius: 3px; color: var(--ink); background: var(--surface); font-size: 9px; }
.import-preview-diff { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.import-preview-diff small { display: block; color: var(--muted); font-size: 8px; }
.import-preview-diff code { display: block; max-height: 54px; overflow: hidden; }
.import-counts { display: flex; flex-wrap: wrap; gap: 6px; }
.import-count { min-width: 86px; padding: 7px 8px; border: 1px solid var(--line); background: var(--surface-soft); }
.import-count strong { display: block; color: var(--ink); font-size: 14px; }
.import-count small { color: var(--muted); font-size: 8px; }
.import-session-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.import-activity-list { border-top: 1px solid var(--line); }
.import-activity-row { display: grid; grid-template-columns: minmax(220px, 1fr) 150px minmax(260px, 1fr) 140px; gap: 12px; align-items: center; min-height: 58px; border-bottom: 1px solid var(--line); }
.import-activity-row button { min-width: 0; padding: 0; border: 0; color: var(--ink); background: transparent; text-align: left; }
.import-activity-row strong, .import-activity-row small { display: block; }
.import-activity-row strong { font-size: 10px; }
.import-activity-row small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.import-activity-counts { color: var(--text); font-family: var(--font-data); font-size: 9px; }
.dashboard-import-activity { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.dashboard-import-activity .import-activity-row { grid-template-columns: minmax(200px, 1fr) 130px minmax(220px, 1fr) 120px; }
.source-row, .batch-row, .review-row { min-height: 58px; display: grid; align-items: center; gap: 10px; padding: 9px 10px; border-bottom: 1px solid var(--line); background: var(--surface); }
.source-row { grid-template-columns: minmax(0, 1fr) auto; }
.source-row strong, .batch-row strong, .review-row strong { display: block; color: var(--ink); font-size: 10px; }
.source-row small, .batch-row small, .review-row small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.review-tabs { display: flex; gap: 2px; margin-top: 18px; border-bottom: 1px solid var(--line); }
.review-tabs button { height: 34px; padding: 0 12px; border: 0; border-bottom: 2px solid transparent; color: var(--muted); background: transparent; font-size: 10px; }
.review-tabs button.active { border-bottom-color: var(--accent); color: var(--ink); font-weight: 700; }
.review-list { max-width: 980px; margin-top: 12px; border-top: 1px solid var(--line); }
.review-row { grid-template-columns: 120px minmax(0, 1fr) 86px auto; }
.relation-review-head { align-items: flex-start; }
.relation-review-actions { display: flex; align-items: center; gap: 8px; }
.review-boundary { min-height: 34px; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 2px; padding: 4px 8px; border-left: 3px solid var(--amber); background: var(--amber-soft); }
.review-boundary strong { color: var(--amber); font-size: 9px; }
.review-boundary code { color: var(--muted); font-family: var(--font-data); font-size: 7px; }
.relation-audit-summary { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 18px; border: 1px solid var(--line); background: var(--surface); }
.relation-summary-stat { min-height: 72px; display: flex; flex-direction: column; justify-content: center; padding: 11px 14px; border-right: 1px solid var(--line); }
.relation-summary-stat:last-child { border-right: 0; }
.relation-summary-stat small { color: var(--muted); font-size: 9px; }
.relation-summary-stat strong { margin-top: 7px; color: var(--ink); font-family: var(--font-data); font-size: 18px; }
.relation-summary-loading { grid-column: 1 / -1; min-height: 72px; display: grid; place-items: center; color: var(--muted); font-size: 10px; }
.review-next-step { min-height: 54px; display: grid; grid-template-columns: 88px minmax(0, 1fr); align-items: center; gap: 14px; margin-top: 10px; padding: 8px 12px; border: 1px solid var(--line); border-left: 3px solid var(--accent); background: var(--surface); }
.review-next-step > span { color: var(--accent-strong); font-size: 9px; font-weight: 750; }
.review-next-step strong { display: block; color: var(--ink); font-size: 10px; }
.review-next-step p { margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.relation-audit-section, .relation-candidate-section { margin-top: 24px; }
.relation-audit-section .section-heading, .relation-candidate-section .section-heading { max-width: 1120px; }
.relation-audit-section .section-heading > span, .relation-candidate-section .section-heading > span { color: var(--muted); font-size: 9px; }
.relation-audit-list { max-width: 1120px; margin-top: 10px; border-top: 1px solid var(--line-strong); background: var(--surface); }
.relation-audit-row { border-bottom: 1px solid var(--line); }
.relation-audit-row[open] { background: var(--surface-soft); }
.relation-audit-row > summary { min-height: 64px; display: grid; grid-template-columns: minmax(230px, 1fr) 76px 110px 110px 74px 132px; align-items: center; gap: 10px; padding: 9px 12px; list-style: none; cursor: pointer; }
.relation-audit-row > summary::-webkit-details-marker { display: none; }
.relation-audit-row > summary::before { content: "›"; width: 12px; color: var(--muted); font-size: 15px; transform-origin: center; transition: transform .12s ease; }
.relation-audit-row[open] > summary::before { transform: rotate(90deg); }
.relation-audit-row > summary { grid-template-columns: 12px minmax(220px, 1fr) 76px 110px 110px 74px 132px; }
.relation-audit-identity { min-width: 0; }
.relation-audit-identity strong { display: block; color: var(--ink); font-size: 10px; }
.relation-audit-identity small { display: block; margin-top: 5px; color: var(--muted); font-family: var(--font-data); font-size: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.relation-audit-metric { min-width: 0; }
.relation-audit-metric > small { display: block; color: var(--muted); font-size: 8px; }
.relation-audit-metric > strong { display: inline-block; margin-top: 5px; color: var(--ink); font-family: var(--font-data); font-size: 10px; }
.relation-audit-metric > strong + small { display: inline-block; margin-left: 5px; }
.relation-audit-state { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.relation-audit-state > small { color: var(--red); font-size: 8px; }
.relation-audit-evidence { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 0 12px 14px 34px; }
.relation-evidence-group { min-width: 0; padding: 10px; border: 1px solid var(--line); background: var(--surface); }
.relation-evidence-group h3 { margin-bottom: 7px; font-size: 9px; }
.relation-evidence-item { min-width: 0; padding: 5px 0; border-top: 1px solid var(--line); }
.relation-evidence-item code { display: block; color: var(--accent-strong); font-family: var(--font-data); font-size: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.relation-evidence-item span, .relation-evidence-empty { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; line-height: 1.4; }
.relation-candidate-section .review-list { max-width: 1120px; }
.relation-queue-tabs { display: flex; gap: 4px; max-width: 1120px; margin-top: 12px; border-bottom: 1px solid var(--line); }
.relation-queue-tabs button { min-height: 34px; padding: 0 12px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); }
.relation-queue-tabs button.active { border-bottom-color: var(--accent); color: var(--accent-strong); font-weight: 750; }
.relation-queue-tabs span { margin-left: 4px; font-family: var(--font-data); }
.relation-queue-toolbar { min-height: 44px; max-width: 1120px; display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 6px 0; }
.relation-queue-toolbar > span { margin-right: auto; color: var(--muted); font-size: 11px; }
.relation-queue-item { min-height: 82px; display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 10px; border-top: 1px solid var(--line); background: var(--surface); padding: 10px 12px; }
.relation-queue-item:last-child { border-bottom: 1px solid var(--line); }
.relation-queue-item > div { min-width: 0; display: grid; gap: 6px; }
.relation-queue-item header, .relation-queue-item p, .relation-queue-item footer { display: flex; align-items: center; gap: 8px; margin: 0; }
.relation-queue-item p button { border: 0; background: transparent; color: var(--accent-strong); padding: 0; font-weight: 700; }
.relation-queue-item small { color: var(--muted); }
.relation-queue-item > footer { justify-content: flex-end; }
.relation-queue-select { display: grid; place-items: center; }
.relation-preview-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); }
.relation-preview-metrics > div { display: grid; gap: 5px; border-right: 1px solid var(--line); padding: 10px; }
.relation-preview-metrics > div:last-child { border-right: 0; }
.relation-preview-metrics span { color: var(--muted); font-size: 10px; }
.relation-preview-metrics strong { font-family: var(--font-data); font-size: 18px; }
.operation-recovery-bar { max-width: 1120px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 14px 0; border: 1px solid var(--accent); border-radius: 7px; background: var(--accent-soft); padding: 10px 12px; }
.operation-recovery-bar span { color: var(--accent-strong); font-size: 11px; }
.settings-workspace.active { padding: 0; background: var(--surface); }
.settings-home { display: flex; flex-direction: column; min-height: 100%; padding: 24px 32px 0; }
.settings-home > header, .settings-home > h2, .settings-grid, #settings-recent { flex: none; }
#settings-recent { margin-bottom: 32px; }
.config-home-scope { display: flex; align-items: center; gap: 8px; min-height: 48px; flex: none; margin: 0 -32px; margin-top: auto; padding: 0 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.config-home-scope > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.settings-home > header { height: 94px; }
.settings-home h1 { font-size: 24px; font-weight: 600; color: var(--ink); }
.settings-home > header p { margin-top: 8px; color: var(--muted); }
.settings-home > h2 { height: 40px; margin: 0; display: flex; align-items: center; font-size: 15px; font-weight: 600; }
.settings-grid + h2 { height: 60px; padding-top: 22px; }
.settings-grid { display: flex; flex-direction: column; margin: 0; gap: 0; }
.settings-entry { display: grid; grid-template-columns: 22px 270px minmax(0, 1fr) auto 18px; gap: 18px; align-items: center; min-height: 86px; padding: 16px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; text-align: left; }
.settings-entry:first-child { background: var(--accent-soft); }
.settings-entry:first-child .settings-entry-icon, .settings-entry:first-child .settings-entry-state { color: var(--accent); }
.settings-entry-icon .vds-icon { width: 22px; height: 22px; }
.settings-entry > * { min-width: 0; overflow-wrap: anywhere; }
.settings-entry:hover, .settings-entry:focus-visible { background: var(--accent-soft); }
.settings-entry strong { color: var(--ink); font-size: 15px; font-weight: 600; }
.settings-entry small { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; font-weight: 400; }
.settings-entry span { color: var(--muted); font-size: 13px; }
.settings-entry .settings-entry-state { font-size: 12px; }
.settings-entry b { font-weight: 400; }
.config-recent-row { width: 100%; min-height: 54px; display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto 18px; align-items: center; gap: 20px; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; text-align: left; }
.config-recent-row strong { max-width: 220px; font-weight: 600; }
.config-recent-row > * { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.config-recent-row span { color: var(--muted); }
.config-recent-row .config-recent-state { color: var(--amber); font-size: 12px; }
.settings-detail { margin: 0; min-height: 0; }
.settings-detail:empty { display: none; }
.settings-detail:has(.theme-settings-head), .settings-detail:has(> .review-list) { padding: 24px; }
.config-table-page, .config-table-page .settings-detail { height: 100%; overflow: hidden; }
.config-table-workbench { position: relative; height: 100%; min-height: 0; display: grid; grid-template-columns: 216px minmax(0, 1fr); background: var(--surface); }
.value-set-workbench { min-height: 100%; display: grid; grid-template-columns: 236px minmax(0, 1fr); background: var(--surface); }
.value-set-directory { min-width: 0; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: var(--surface-muted); }
.value-set-directory > header { min-height: 64px; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.value-set-directory > header strong, .value-set-directory > header small { display: block; }
.value-set-directory > header small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.value-set-directory > div { flex: 1; min-height: 0; overflow: auto; padding: 8px; }
.value-set-directory > footer { padding: 10px 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.value-set-directory-row { width: 100%; min-height: 58px; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 2px 8px; align-items: center; padding: 8px; border: 1px solid transparent; border-radius: 4px; background: transparent; text-align: left; }
.value-set-directory-row:hover, .value-set-directory-row.active { border-color: var(--line-strong); background: var(--surface); }
.value-set-directory-row.active { box-shadow: inset 3px 0 0 var(--accent); }
.value-set-directory-row > span { grid-row: 1 / 3; color: var(--muted); font: 600 11px/1 var(--mono); }
.value-set-directory-row > strong { min-width: 0; overflow: hidden; color: var(--ink); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.value-set-directory-row > small { grid-column: 2; color: var(--muted); font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.value-set-directory-row > em { grid-column: 3; grid-row: 1 / 3; color: var(--muted); font-size: 10px; font-style: normal; }
.value-set-main { min-width: 0; overflow: auto; }
.value-set-empty { max-width: 520px; margin: 88px auto; padding: 0 24px; text-align: center; }
.value-set-empty strong { color: var(--ink); font-size: 18px; }
.value-set-empty p { color: var(--muted); line-height: 1.7; }
.value-set-detail { max-width: 980px; margin: 0 auto; padding: 28px 32px 56px; }
.value-set-detail > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.value-set-detail h2, .value-set-detail h3 { margin: 0; color: var(--ink); }
.value-set-detail header p { margin: 6px 0 0; color: var(--muted); }
.value-set-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; padding: 24px 0 30px; border-bottom: 1px solid var(--line); }
.value-set-form label { display: grid; gap: 7px; color: var(--muted); font-size: 12px; }
.value-set-form input, .value-set-form select, .value-set-form textarea, .value-set-item-row input, .value-set-item-row select { width: 100%; min-width: 0; min-height: 36px; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--surface); color: var(--ink); padding: 7px 9px; }
.value-set-form .span-all { grid-column: 1 / -1; }
.value-set-form footer { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.value-set-form footer [role="alert"] { margin-right: auto; color: var(--danger); }
.value-set-items { padding-top: 26px; }
.value-set-items > header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }
.value-set-items > header p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.value-set-item-head, .value-set-item-row { display: grid; grid-template-columns: minmax(130px, 1fr) minmax(160px, 1.3fr) 88px 110px 74px; gap: 8px; align-items: center; }
.value-set-item-head { padding: 0 4px 7px; color: var(--muted); font-size: 11px; }
.value-set-item-row { padding: 8px 4px; border-top: 1px solid var(--line); }
.value-set-item-row.new { margin-top: 8px; border: 1px dashed var(--line-strong); background: var(--surface-muted); }
.config-switch { display: flex !important; align-items: center; justify-content: space-between; gap: 12px; }
.config-switch strong, .config-switch small { display: block; }
.config-switch small { margin-top: 4px; color: var(--muted); font-weight: 400; }
.config-switch input { width: 18px; height: 18px; flex: 0 0 auto; }
.config-table-directory { min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 10px; padding: 20px 12px; border-right: 1px solid var(--line); background: var(--bg); }
.config-back { min-height: 30px; flex: none; display: flex; align-items: center; gap: 7px; padding: 0; border: 0; background: transparent; text-align: left; color: var(--muted); font-size: 13px; }
.config-table-directory > header { height: 32px; flex: none; display: flex; align-items: center; justify-content: space-between; }
.config-directory-actions { display: flex; align-items: center; gap: 4px; }
.config-search { padding: 0; }
.config-search[hidden] { display: none; }
.config-search input { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); padding: 8px; color: var(--ink); }
.config-table-list { flex: 1; min-height: 0; overflow: auto; }
.config-table-list button { width: 100%; min-height: 38px; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 0; border-radius: 4px; color: var(--text); background: transparent; text-align: left; font-size: 13px; }
.config-table-list button:hover { background: var(--surface-strong); }
.config-table-list button.active { background: var(--accent-soft); color: var(--accent-strong); }
.config-table-list strong { display: block; min-width: 0; font-size: inherit; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.config-table-number { flex: none; color: var(--muted); font-family: var(--font-data); font-size: 12px; }
.config-directory-scope { min-height: 40px; flex: none; display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; color: var(--muted); font-size: 12px; }
.config-table-detail { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.new-table-wizard { height: 100%; min-height: 0; display: flex; flex-direction: column; background: var(--surface); }
.new-table-wizard-body { flex: 1; min-height: 0; overflow: auto; padding: 0 24px 28px; }
.new-table-wizard-body > section { padding: 22px 0; border-top: 1px solid var(--line); }
.new-table-section-title { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.new-table-section-title > span:first-child { flex: none; color: var(--accent-strong); font-family: var(--font-data); font-size: 12px; font-weight: 700; }
.new-table-section-title > div { min-width: 0; flex: 1; }
.new-table-section-title h3 { color: var(--ink); font-size: 15px; font-weight: 600; }
.new-table-section-title p { margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.new-table-form-grid { display: grid; gap: 14px; padding-left: 34px; }
.new-table-form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.new-table-form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.new-table-form-grid .span-all { grid-column: 1 / -1; }
.new-table-form-grid label { display: grid; gap: 6px; color: var(--text); font-size: 12px; }
.new-table-form-grid label[hidden] { display: none; }
.new-table-form-grid label > small { color: var(--muted); font-size: 11px; line-height: 1.45; }
.new-table-form-grid input, .new-table-form-grid select, .new-table-form-grid textarea,
.new-table-field-row input, .new-table-field-row select { width: 100%; min-width: 0; min-height: 36px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); background: var(--surface); font-size: var(--ui-font-size); }
.new-table-form-grid textarea { resize: vertical; }
.new-table-field-head, .new-table-field-row { display: grid; grid-template-columns: minmax(110px, 1fr) minmax(130px, 1.2fr) minmax(130px, 1fr) 74px 34px; gap: 8px; align-items: center; margin-left: 34px; }
.new-table-field-head { min-height: 30px; color: var(--muted); font-size: 11px; }
.new-table-field-row { min-height: 46px; padding: 5px 0; border-top: 1px solid var(--line); }
.new-table-field-options { grid-column: 1 / 4; }
.new-table-field-options[hidden] { display: none; }
.new-table-required { display: flex; align-items: center; gap: 6px; color: var(--text); font-size: 12px; }
.new-table-required input { width: 14px; min-height: 14px; }
.context-help-button { width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 4px; color: var(--muted); background: transparent; vertical-align: middle; }
.context-help-button:hover, .context-help-button:focus-visible { color: var(--accent-strong); background: var(--accent-soft); }
.context-help-button svg { width: 15px; height: 15px; }
.context-help-drawer { position: fixed; z-index: 80; top: 56px; right: 0; bottom: 32px; width: min(392px, 100vw); display: flex; flex-direction: column; border-left: 1px solid var(--line-strong); background: var(--surface); box-shadow: -16px 0 36px rgb(20 36 32 / 14%); }
.context-help-drawer > header { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.context-help-drawer > header small { color: var(--accent-strong); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.context-help-drawer > header h2 { margin-top: 3px; font-size: 16px; }
.context-help-content { flex: 1; overflow: auto; padding: 18px 18px 28px; }
.context-help-summary { padding: 12px; border-left: 3px solid var(--accent); background: var(--surface-strong); color: var(--ink); font-weight: 600; line-height: 1.6; }
.context-help-content section { padding: 16px 0; border-bottom: 1px solid var(--line); }
.context-help-content h3 { margin-bottom: 6px; font-size: 12px; }
.context-help-content p { color: var(--text); font-size: 12px; line-height: 1.65; }
.context-help-content details { margin-top: 18px; }
.context-help-content summary { cursor: pointer; color: var(--accent-strong); font-size: 12px; font-weight: 600; }
.context-help-content nav { display: grid; gap: 4px; margin-top: 8px; }
.context-help-content nav button { min-height: 34px; border: 0; border-radius: 4px; padding: 8px 10px; background: transparent; color: var(--text); text-align: left; }
.context-help-content nav button:hover, .context-help-content nav button.active { background: var(--accent-soft); color: var(--accent-strong); }
.config-table-group { padding: 8px 0; border-bottom: 1px solid var(--line); }
.config-table-group > header { min-height: 28px; color: var(--muted); }
.config-table-group > header button { width: 100%; min-height: 28px; display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 6px; align-items: center; padding: 0 10px; border: 0; border-radius: 0; background: transparent; color: inherit; text-align: left; }
.config-table-group > header button:hover { color: var(--ink); background: var(--grid-hover); }
.config-table-group > header .vds-icon { width: 12px; height: 12px; transition: transform 120ms ease; transform: rotate(90deg); }
.config-table-group.collapsed > header .vds-icon { transform: rotate(0deg); }
.config-table-group > header strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 600; }
.config-table-group > header span { min-width: 22px; padding: 2px 6px; border-radius: 4px; background: var(--surface-strong); font-size: 10px; text-align: center; }
.config-table-group.collapsed .config-table-group-items { display: none; }
.config-table-group .config-table-number { min-width: 30px; }
.new-table-impact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-left: 34px; border: 1px solid var(--line); }
.new-table-impact-grid > span { min-width: 0; padding: 14px; border-right: 1px solid var(--line); }
.new-table-impact-grid > span:last-child { border-right: 0; }
.new-table-impact-grid strong, .new-table-impact-grid small { display: block; }
.new-table-impact-grid strong { color: var(--ink); font-size: 12px; }
.new-table-impact-grid small { margin-top: 7px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.new-table-wizard-footer { min-height: 72px; flex: none; display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 12px 24px; border-top: 1px solid var(--line); background: var(--bg); }
#new-table-error { margin-right: auto; color: var(--red); font-size: 12px; }
.config-loading { padding: 30px; color: var(--muted); display: grid; gap: 18px; justify-items: start; }
.config-detail-head { min-height: 84px; flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 24px; }
.config-detail-head > div:first-child { min-width: 0; overflow-wrap: anywhere; }
.config-detail-head h2 { color: var(--ink); font-size: 22px; font-weight: 600; margin: 0 0 6px; }
.config-detail-head small { color: var(--muted); font-size: 12px; }
.config-detail-actions { display: flex; flex: none; gap: 12px; flex-wrap: wrap; }
.settings-workspace .button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 34px; font-size: 13px; font-weight: 500; }
.config-detail-actions [data-toggle-config-directory] { display: none; }
.config-tabs { display: flex; flex-shrink: 0; height: 46px; gap: 22px; padding: 0 24px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.config-tabs button { padding: 0; white-space: nowrap; border: 0; border-bottom: 1px solid transparent; border-radius: 0; background: transparent; color: var(--muted); font-size: 13px; }
.config-tabs button.active { color: var(--accent-strong); border-bottom-color: var(--accent); }
.config-change-strip { display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; padding: 7px 24px; min-height: 48px; margin: 0; border: 0; border-bottom: 1px solid var(--line); background: var(--bg); font-size: 12px; }
.config-change-strip > span { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.config-change-strip.has-drafts > span { color: var(--amber); }
.config-workspace-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.config-list-pane { display: grid; min-width: 0; min-height: 0; grid-template-rows: 48px minmax(0, 1fr) 40px; }
.config-list-toolbar { display: flex; align-items: center; gap: 8px; padding: 6px 16px; border-bottom: 1px solid var(--line); }
.config-list-toolbar input { flex: 1; min-width: 50px; border: 0; padding: 8px 0; outline-offset: 2px; background: transparent; color: var(--ink); font-size: 13px; }
.config-list-toolbar > span { color: var(--muted); font-size: 11px; white-space: nowrap; }
.config-list { min-height: 0; overflow: auto; }
.config-field-row { width: 100%; height: 36px; display: grid; grid-template-columns: 176px 98px 156px minmax(0, 1fr); gap: 12px; align-items: center; padding: 0 16px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; color: var(--text); background: transparent; text-align: left; }
.config-field-row > * { min-width: 0; padding: 0; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.config-field-row strong { color: var(--ink); font-weight: 600; }
.config-field-row > span { color: var(--ink); font-size: 13px; }
.config-field-row > :last-child { color: var(--muted); }
.config-field-row.header { height: 32px; }
.config-field-row.header > * { color: var(--muted); font-size: 12px; }
.config-field-row.selected, .config-relation-row.selected { background: var(--accent-soft); color: var(--accent-strong); }
.config-field-row.selected > *, .config-relation-row.selected > * { color: var(--accent-strong); }
.config-field-row:hover, .config-relation-row:hover { background: var(--grid-hover); }
.config-field-row.header, .config-relation-row.header { position: sticky; top: 0; z-index: 1; background: var(--surface-soft); color: var(--muted); font-size: 12px; }
.config-relation-row { width: 100%; display: grid; grid-template-columns: 128px 16px minmax(0, 1fr) 154px; gap: 16px; padding: 0 20px; align-items: center; min-height: 74px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--text); text-align: left; }
.config-relation-row > * { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.config-relation-row.header { min-height: 36px; }
.config-relation-row.header > :first-child { grid-column: 1 / 3; }
.config-relation-target strong, .config-relation-target small, .config-relation-policy small { display: block; overflow: hidden; text-overflow: ellipsis; }
.config-relation-target strong { font-size: 14px; font-weight: 600; }
.config-relation-target small { margin-top: 6px; color: var(--muted); font-family: var(--font-data); font-size: 11px; }
.config-relation-policy small { margin-top: 6px; color: var(--muted); font-size: 12px; }
.config-list-pane:has(.config-relation-row) { grid-template-rows: 54px minmax(0, 1fr) 56px; }
.config-readonly-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.config-readonly-row > span { min-width: 0; overflow-wrap: anywhere; }
.config-readonly-row strong, .config-readonly-row small { display: block; }
.config-readonly-row small { color: var(--muted); margin-top: 6px; }
.config-list-footer { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding: 8px 16px; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.config-list-footer > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.config-list-footer .button { margin-left: auto; }
.config-list-footer:has(button) { padding: 0 12px; }
.config-empty-line { padding: 16px; color: var(--muted); font-size: 12px; }
#config-inspector { width: 352px; min-width: 0; min-height: 0; border-left: 1px solid var(--line); }
#config-inspector[hidden] { display: none; }
.config-editor { height: 100%; display: flex; flex-direction: column; margin: 0; background: var(--surface); }
.config-editor > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-shrink: 0; min-height: 66px; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.config-mobile-back { display: none; }
.config-editor > header > div { min-width: 0; }
.config-editor h3 { font-size: 18px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.config-editor header small { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }
#config-editor-state { color: var(--amber); }
.config-form-grid { display: flex; flex-direction: column; gap: 14px; padding: 20px; flex: 1; min-height: 0; overflow: auto; }
.config-form-grid label { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 0; border: 0; color: var(--text); font-size: 12px; }
.config-form-grid input, .config-form-grid select, .config-form-grid textarea { width: 100%; min-width: 0; min-height: 36px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); background: var(--surface); font-size: var(--ui-font-size); }
.config-form-grid input[readonly], .config-form-grid select:disabled { background: var(--surface-soft); color: var(--muted); }
.config-input-wrap { position: relative; display: block; }
.config-input-wrap input[readonly] { padding-right: 34px; }
.config-input-wrap > .vds-icon { position: absolute; right: 10px; top: 10px; color: var(--muted); }
.config-form-grid textarea { resize: vertical; }
.config-form-grid textarea[name="description"] { height: 72px; min-height: 72px; }
.config-checks { display: flex; flex-wrap: wrap; gap: 14px; }
.config-checks label { flex-direction: row; align-items: center; }
.config-checks input { width: 14px; height: 14px; min-height: 0; }
.config-advanced summary { cursor: pointer; color: var(--muted); font-size: 12px; padding: 8px 0; }
.config-advanced label { margin-top: 12px; }
.config-editor > footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; flex-shrink: 0; min-height: 64px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg); }
.config-editor > footer .button { font-size: 13px; }
#config-editor-error { flex-basis: 100%; font-size: 12px; color: var(--red); overflow-wrap: anywhere; }
#config-editor-error:empty { display: none; }
.config-property-summary { font-size: 12px; color: var(--muted); }
.config-property-summary pre { max-height: 150px; overflow: auto; font-size: 11px; }
.config-versions-page { height: calc(100dvh - var(--topbar-height) - var(--release-bar-height, 0px)); display: flex; flex-direction: column; }
.config-versions-page > header { min-height: 68px; flex: none; display: flex; gap: 10px; align-items: center; padding: 12px 28px; border-bottom: 1px solid var(--line); }
.config-versions-page > header > strong { font-size: 17px; font-weight: 600; }
.config-versions-page > header > button:last-child { margin-left: auto; }
.config-review-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); flex: 1; min-height: 0; }
.config-draft-directory { overflow: auto; padding: 20px; border-right: 1px solid var(--line); background: var(--bg); }
.config-draft-directory h3 { font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.config-draft-directory button { display: block; width: 100%; min-height: 78px; margin-bottom: 12px; padding: 12px; border: 0; border-radius: 4px; text-align: left; background: transparent; color: var(--text); }
.config-draft-directory button.active { background: var(--accent-soft); color: var(--accent-strong); }
.config-draft-directory strong, .config-draft-directory small { display: block; overflow-wrap: anywhere; }
.config-draft-directory small { margin-top: 8px; color: var(--muted); }
.config-review-detail { min-width: 0; min-height: 0; display: flex; flex-direction: column; padding: 28px; }
.config-review-scroll { min-height: 0; flex: 1; overflow: auto; }
.config-review-key { margin-top: 8px; color: var(--muted); font-family: var(--font-data); font-size: 13px; overflow-wrap: anywhere; }
.config-review-detail h2 { font-size: 22px; color: var(--ink); overflow-wrap: anywhere; }
.config-review-scope { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 20px 0; padding: 14px 16px; background: var(--bg); gap: 24px; font-size: 12px; }
.config-review-scope strong { display: block; margin-top: 8px; color: var(--ink); overflow-wrap: anywhere; }
.config-diff { border: 1px solid var(--line); }
.config-bundle-item { margin: 0 0 18px; }
.config-bundle-item > header { min-height: 38px; display: flex; align-items: center; gap: 10px; padding: 6px 10px; border: 1px solid var(--line); border-bottom: 0; background: var(--surface-soft); }
.config-bundle-item > header > span { color: var(--accent-strong); font-family: var(--font-data); font-size: 11px; font-weight: 700; }
.config-bundle-item > header > strong { min-width: 0; flex: 1; color: var(--ink); font-family: var(--font-data); font-size: 12px; overflow-wrap: anywhere; }
.config-bundle-item > header > small { color: var(--muted); font-size: 11px; }
.config-diff-row { display: grid; grid-template-columns: minmax(100px, .7fr) repeat(2, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.config-diff-row:last-child { border-bottom: 0; }
.config-diff-row > * { padding: 14px 16px; font-size: 12px; margin: 0; min-width: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.config-diff-row > pre:last-child { color: var(--accent-strong); }
.config-diff-row.header { background: var(--surface-soft); color: var(--muted); }
.config-preflight { margin: 24px 0; }
.config-preflight h3 { font-size: 15px; margin-bottom: 16px; }
.config-preflight p { margin: 10px 0; font-size: 12px; overflow-wrap: anywhere; }
.config-error { color: var(--red); overflow-wrap: anywhere; }
.config-publish-footer { display: flex; flex: none; align-items: center; flex-wrap: wrap; gap: 14px; min-height: 100px; margin-top: 20px; padding: 16px 0 0; border-top: 1px solid var(--line); background: var(--surface); }
.config-publish-footer > label { flex-basis: 100%; }
.config-publish-footer label { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.config-publish-footer small { color: var(--muted); font-size: 12px; }
.config-publish-footer button { margin-left: auto; }

.button.danger { border-color: color-mix(in srgb, var(--red) 45%, var(--line)); color: var(--red); }
.lifecycle-page { height: calc(100dvh - var(--topbar-height) - var(--release-bar-height, 0px)); display: flex; flex-direction: column; min-height: 0; }
.lifecycle-page > header { min-height: 92px; display: flex; flex: none; align-items: center; gap: 18px; padding: 16px 28px; border-bottom: 1px solid var(--line); }
.lifecycle-page > header > div { min-width: 0; flex: 1; }
.lifecycle-page > header h2 { margin-top: 3px; color: var(--ink); font-size: 20px; }
.lifecycle-page > header p:last-child { margin-top: 5px; color: var(--muted); font-size: 12px; }
.lifecycle-list { min-height: 0; flex: 1; overflow: auto; padding: 24px 28px 56px; }
.lifecycle-list > h3 { margin: 28px 0 10px; font-size: 15px; }
.lifecycle-row { min-height: 78px; display: grid; grid-template-columns: minmax(220px, 1.3fr) minmax(180px, .8fr) auto auto; align-items: center; gap: 18px; padding: 14px 16px; border: 1px solid var(--line); border-bottom: 0; color: var(--text); background: var(--surface); text-align: left; }
.lifecycle-row:last-child { border-bottom: 1px solid var(--line); }
.lifecycle-row.activity { width: 100%; grid-template-columns: minmax(220px, 1.3fr) 80px 90px 18px; }
.lifecycle-row.audit { grid-template-columns: minmax(220px, 1.3fr) 120px 90px; opacity: .82; }
.lifecycle-row > div:first-child { min-width: 0; }
.lifecycle-row strong, .lifecycle-row code, .lifecycle-row small { display: block; overflow-wrap: anywhere; }
.lifecycle-row code { margin-top: 4px; color: var(--accent-strong); font-family: var(--font-data); font-size: 11px; }
.lifecycle-row small { margin-top: 5px; color: var(--muted); font-size: 11px; }
.lifecycle-row-metrics { display: flex; flex-wrap: wrap; gap: 8px 14px; color: var(--muted); font-size: 12px; }
.lifecycle-tabs { min-height: 48px; display: flex; flex: none; align-items: center; gap: 24px; padding: 0 28px; border-bottom: 1px solid var(--line); font-size: 12px; }
.lifecycle-tabs span { color: var(--muted); }
.lifecycle-empty { padding: 52px 20px; border: 1px dashed var(--line-strong); color: var(--muted); text-align: center; }
.lifecycle-empty strong { display: block; margin-bottom: 8px; color: var(--ink); }
.lifecycle-review { max-width: 1040px; width: 100%; margin: 0 auto; }
.lifecycle-impact-grid { display: grid; grid-template-columns: repeat(3, minmax(120px, 1fr)); margin: 20px 0; border: 1px solid var(--line); }
.lifecycle-impact-grid > span { min-height: 74px; padding: 13px 15px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.lifecycle-impact-grid > span:nth-child(3n) { border-right: 0; }
.lifecycle-impact-grid strong { display: block; margin-top: 9px; color: var(--ink); font-size: 17px; overflow-wrap: anywhere; }
.lifecycle-warning { margin: 18px 0; padding: 16px; border: 1px solid color-mix(in srgb, var(--red) 45%, var(--line)); background: color-mix(in srgb, var(--red) 6%, var(--surface)); color: var(--red); }
.lifecycle-warning p { margin-top: 8px; font-size: 12px; }
.lifecycle-safe { margin: 18px 0; padding: 16px; border: 1px solid var(--line); background: var(--accent-soft); color: var(--accent-strong); }
.lifecycle-safe p { margin-top: 7px; color: var(--muted); font-size: 12px; }
.lifecycle-commit { min-height: 74px; display: flex; align-items: center; gap: 18px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.lifecycle-commit label { display: flex; flex: 1; align-items: center; gap: 8px; font-size: 13px; }
.operation-detail { max-width: 1100px; width: 100%; margin: 0 auto; }
.operation-change { margin-top: 22px; }
.operation-change > header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }

.theme-settings-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.theme-settings-head h2 { margin-top: 4px; font-size: 18px; }
.theme-settings-head > div:first-child > p:last-child { margin-top: 6px; color: var(--muted); font-size: 10px; }
.theme-governance-state { display: grid; grid-template-columns: repeat(3, minmax(118px, 1fr)); border: 1px solid var(--line); background: var(--surface); }
.theme-governance-state span { min-width: 0; padding: 9px 10px; border-right: 1px solid var(--line); }
.theme-governance-state span:last-child { border-right: 0; }
.theme-governance-state small, .theme-governance-state strong { display: block; }
.theme-governance-state small { color: var(--muted); font-size: 8px; }
.theme-governance-state strong { margin-top: 4px; overflow: hidden; color: var(--ink); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.theme-governance-state .dirty strong { color: var(--amber); }
.theme-governance-state .saved strong { color: var(--accent-strong); }
.theme-preset-section, .theme-editor-layout { margin-top: 20px; }
.theme-preset-section .section-heading > span { color: var(--accent-strong); font-size: 10px; font-weight: 700; }
.theme-preset-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.theme-preset-option { min-width: 0; min-height: 130px; display: flex; flex-direction: column; align-items: flex-start; padding: 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--text); background: var(--surface); text-align: left; }
.theme-preset-option:hover { border-color: var(--line-strong); }
.theme-preset-option.active { border-color: var(--accent); box-shadow: inset 0 -3px var(--accent); }
.theme-preset-option strong { margin-top: 9px; color: var(--ink); font-size: 11px; }
.theme-preset-option small { margin-top: 5px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.theme-preset-swatch { width: 100%; height: 34px; display: grid; grid-template-columns: 28% 1fr 22%; overflow: hidden; border: 1px solid var(--line); border-radius: 4px; background: #f2f4f3; }
.theme-preset-swatch i { display: block; border-right: 1px solid rgba(0, 0, 0, .1); background: #fff; }
.theme-preset-swatch i:first-child { background: #17231f; }
.theme-preset-swatch i:last-child { border-right: 0; background: #147565; }
.theme-preset-swatch[data-preview-theme="high_readability"] { background: #edf1ef; }
.theme-preset-swatch[data-preview-theme="high_readability"] i:first-child { background: #0d1512; }
.theme-preset-swatch[data-preview-theme="high_readability"] i:last-child { background: #0d6b5b; }
.theme-preset-swatch[data-preview-theme="compact_onset"] { background: #f7f9f8; }
.theme-preset-swatch[data-preview-theme="compact_onset"] i:first-child { background: #263a34; }
.theme-preset-swatch[data-preview-theme="dark_onset"] { background: #151916; }
.theme-preset-swatch[data-preview-theme="dark_onset"] i { background: #1d231f; }
.theme-preset-swatch[data-preview-theme="dark_onset"] i:first-child { background: #0c100e; }
.theme-preset-swatch[data-preview-theme="dark_onset"] i:last-child { background: #42a58f; }
.theme-preset-swatch[data-preview-theme="print_review"] { background: #eeeeec; }
.theme-preset-swatch[data-preview-theme="print_review"] i:first-child { background: #252825; }
.theme-preset-swatch[data-preview-theme="print_review"] i:last-child { background: #3e5d54; }
.theme-editor-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); gap: 24px; }
.theme-preview-section { padding-left: 20px; border-left: 1px solid var(--line); }
.theme-control-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.theme-control-grid label { min-width: 0; display: grid; gap: 7px; padding: 11px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.theme-control-grid label > span { color: var(--muted); font-size: 9px; }
.theme-control-grid select { width: 100%; height: 31px; padding: 0 7px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); background: var(--surface-soft); font-size: 10px; }
.theme-table-preview { border-top: 1px solid var(--grid-line); border-left: 1px solid var(--grid-line); background: var(--surface); }
.theme-preview-head, .theme-preview-row { display: grid; grid-template-columns: 1.3fr .8fr .8fr; }
.theme-preview-head { color: var(--muted); background: var(--grid-head); font-size: calc(var(--data-font-size) - 1px); }
.theme-preview-head span, .theme-preview-row > * { min-width: 0; padding: 9px; border-right: 1px solid var(--grid-line); border-bottom: 1px solid var(--grid-line); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.theme-preview-row { color: var(--text); font-family: var(--font-data); font-size: var(--data-font-size); font-weight: var(--data-font-weight); }
.theme-preview-row b, .theme-preview-row em, .theme-preview-row i { align-self: center; justify-self: start; padding: 3px 5px; border: 0; border-radius: 3px; font-size: 8px; font-style: normal; }
.theme-preview-row b { color: var(--accent-strong); background: var(--accent-soft); }
.theme-preview-row em { color: var(--amber); background: var(--amber-soft); }
.theme-preview-row i { color: var(--red); background: var(--red-soft); }
.theme-settings-actions { display: flex; align-items: center; gap: 8px; margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); }
.theme-settings-actions > div { min-width: 0; flex: 1; }
.theme-settings-actions strong, .theme-settings-actions small { display: block; }
.theme-settings-actions strong { color: var(--ink); font-size: 10px; }
.theme-settings-actions small { margin-top: 3px; color: var(--muted); font-family: var(--font-data); font-size: 8px; }

.drawer { position: fixed; top: var(--topbar-height); right: 0; bottom: 0; width: min(var(--drawer-width), calc(100vw - var(--rail-width))); display: flex; flex-direction: column; border-left: 1px solid var(--line-strong); background: var(--surface); box-shadow: var(--shadow); transform: translateX(105%); transition: transform .16s ease; z-index: 60; }
.drawer.open { transform: translateX(0); }
.drawer > header { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.drawer > header h2 { margin-top: 3px; }
.drawer-actions { display: flex; gap: 6px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.drawer-body { min-height: 0; flex: 1; overflow: auto; padding: 12px; }
.detail-section { padding: 12px 0; border-bottom: 1px solid var(--line); }
.detail-section h3 { margin-bottom: 9px; }
.detail-row { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; padding: 6px 0; font-size: 10px; }
.detail-row dt { color: var(--muted); }
.detail-row dd { min-width: 0; margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.record-editor { min-height: 0; flex: 1; overflow: auto; padding: 12px; }
.record-editor label, .workspace-settings-drawer label { display: grid; gap: 5px; margin-bottom: 10px; color: var(--muted); font-size: 9px; font-weight: 650; }
.record-editor input, .record-editor select, .record-editor textarea, .workspace-settings-drawer select { width: 100%; min-height: 34px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 4px; outline: 0; background: var(--surface); font-size: 11px; }
.record-editor textarea { min-height: 72px; resize: vertical; }
.record-editor .field-choice-group, .panel-action-form .field-choice-group { min-width: 0; margin: 0 0 10px; padding: 8px; border: 1px solid var(--line); border-radius: 4px; }
.field-choice-group legend { padding: 0 4px; color: var(--muted); font-size: 11px; font-weight: 650; }
.field-choice-options { display: grid; gap: 6px; max-height: 180px; overflow: auto; }
.record-editor .field-choice-option, .panel-action-form .field-choice-option { display: flex; align-items: center; gap: 7px; margin: 0; font-size: 11px; min-width: 0; }
.record-editor .field-choice-option input, .panel-action-form .field-choice-option input { flex: 0 0 16px; width: 16px; height: 16px; min-height: 16px; padding: 0; accent-color: var(--accent); }
.field-choice-option span { overflow-wrap: anywhere; }
.field-choice-empty { color: var(--muted); font-size: 11px; }
.record-editor footer { display: flex; justify-content: flex-end; gap: 7px; padding-top: 12px; border-top: 1px solid var(--line); }
.workspace-settings-drawer section { padding: 12px 0; border-bottom: 1px solid var(--line); }
.workspace-settings-drawer h3 { margin-bottom: 10px; }
.field-visibility-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; color: var(--text); font-size: 10px; }
.field-visibility-row code { color: var(--muted); font-family: var(--font-data); font-size: 8px; }
.column-width-control { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; padding-top: 9px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.settings-note { margin: -4px 0 9px; color: var(--muted); font-size: 9px; line-height: 1.55; }
.field-health-summary { margin-top: 9px; color: var(--muted); font-size: 9px; }
.field-health-head { display: grid; gap: 3px; margin-bottom: 7px; }
.field-health-head strong { color: var(--ink); font-size: 10px; }
.field-health-list { max-height: 250px; overflow: auto; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
.field-health-list > div { display: grid; grid-template-columns: minmax(0, 1fr) 34px; gap: 2px 6px; padding: 6px 7px; border-bottom: 1px solid var(--line); }
.field-health-list > div:last-child { border-bottom: 0; }
.field-health-list span { overflow: hidden; color: var(--text); font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.field-health-list strong { color: var(--accent-strong); text-align: right; }
.field-health-list small { grid-column: 1 / -1; color: var(--muted); }
.provenance-section details { margin-top: 8px; }
.provenance-section summary { cursor: pointer; color: var(--accent-strong); font-size: 9px; font-weight: 700; line-height: 1.5; }
.provenance-warning { margin-top: 7px; padding: 7px; border-left: 2px solid var(--amber); background: var(--amber-soft); color: var(--text); font-size: 9px; line-height: 1.5; }
.provenance-field-list { margin-top: 7px; border: 1px solid var(--line); border-radius: 4px; }
.provenance-field-list > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; padding: 6px 7px; border-bottom: 1px solid var(--line); }
.provenance-field-list > div:last-child { border-bottom: 0; }
.provenance-field-list span { overflow: hidden; font-size: 9px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.provenance-field-list strong { color: var(--muted); font-size: 8px; }
.provenance-field-list small { grid-column: 1 / -1; overflow-wrap: anywhere; color: var(--muted); font-family: var(--font-data); font-size: 8px; }
.provenance-field-list [data-provenance-state="source_empty"] { color: var(--amber); }
.provenance-field-list [data-provenance-state="relation_unlinked"] { color: var(--accent-strong); }
.mobile-scrim { position: fixed; inset: var(--topbar-height) 0 0 0; background: rgba(11, 19, 16, .28); z-index: 55; }
.popover { position: fixed; min-width: 220px; max-width: 360px; max-height: min(620px, calc(100vh - 90px)); padding: 9px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); box-shadow: var(--shadow); overflow: auto; z-index: 70; }
.popover h3 { margin: 4px 5px 8px; }
.popover label { display: flex; align-items: center; gap: 8px; min-height: 30px; padding: 4px 6px; color: var(--text); font-size: 10px; }
.popover select { min-width: 130px; height: 28px; margin-left: auto; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
.popover-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.popover-heading h3 { margin: 2px 0 8px; }
.popover-note { padding: 8px 5px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.group-level-list { display: grid; gap: 2px; }
.popover-actions { display: flex; justify-content: flex-end; gap: 6px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.related-record-list { max-height: 410px; overflow: auto; }
.related-record-row { width: 100%; min-height: 38px; display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 7px; padding: 4px 5px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; }
.related-record-row:hover { background: var(--surface-soft); }
.related-record-row span { color: var(--muted); font-family: var(--font-data); font-size: 8px; }
.related-record-row strong { min-width: 0; overflow: hidden; color: var(--ink); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.related-record-row small { color: var(--muted); font-family: var(--font-data); font-size: 8px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); max-width: min(560px, 80vw); padding: 9px 13px; border-radius: 5px; color: #fff; background: #26342f; box-shadow: var(--shadow); font-size: 11px; z-index: 100; }

@media (max-width: 1279px) {
  :root { --directory-width: 198px; --drawer-width: 330px; }
  .brand-name { display: none; }
  .metric-strip { grid-template-columns: repeat(3, 1fr); }
  .metric-item:nth-child(3) { border-right: 0; }
  .metric-item:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .dashboard-grid { grid-template-columns: minmax(0, 1fr) 300px; }
  .panel-layout { grid-template-columns: 220px minmax(0, 1fr); }
  .panel-review { display: none; }
  .settings-grid { grid-template-columns: repeat(2, 1fr); }
  .theme-preset-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .theme-editor-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; }
  .theme-control-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .relation-audit-row > summary { grid-template-columns: 12px minmax(220px, 1fr) 72px 104px 104px 64px 118px; gap: 7px; }
  .relation-audit-evidence { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .data-grid th, .data-grid td { min-width: 124px; }
}

@media (max-width: 1320px) {
  .project-switcher { max-width: 220px; }
  .current-location { max-width: 200px; }
  .sync-state { display: none; }
}

@media (max-width: 820px) {
  :root { --rail-width: 52px; --topbar-height: 48px; }
  .app-topbar { gap: 8px; padding: 0 10px; }
  .brand-button { width: 44px; height: 40px; }
  .brand-mark { font-size: 14px; }
  .project-switcher { min-width: 0; max-width: 180px; flex: 1; padding: 0 8px; }
  .project-switcher small, .current-location, .brand-name, .sync-state { display: none; }
  .review-center-button strong, .top-feedback-link strong { display: none; }
  .global-search-overlay { padding: 62px 10px 10px; }
  .global-search-panel { width: calc(100vw - 20px); max-height: calc(100dvh - 72px); }
  .topbar-spacer { display: none; }
  .project-rail { padding: 8px 4px; }
  .rail-button { width: 44px; min-height: 44px; }
  .rail-button small { display: none; }
  .project-dashboard, .operations-workspace.active, .review-workspace.active, .settings-workspace.active { padding: 16px 14px 28px; }
  .dashboard-head, .module-page-head { gap: 12px; }
  .dashboard-context { display: none; }
  .metric-strip { grid-template-columns: repeat(2, 1fr); }
  .metric-item:nth-child(2n) { border-right: 0; }
  .metric-item:nth-child(-n+4) { border-bottom: 1px solid var(--line); }
  .dashboard-grid, .operations-layout { grid-template-columns: 1fr; }
  .import-workbench-form { grid-template-columns: 1fr; }
  .import-mode-control { grid-template-columns: 1fr 1fr; }
  .import-activity-row { grid-template-columns: 1fr auto; padding: 10px 0; }
  .import-activity-counts { grid-column: 1 / -1; }
  .dashboard-side { padding: 18px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .project-home-summary > span { padding: 11px; }
  .project-home-summary strong { font-size: 18px; }
  .project-table-groups, .project-module-grid, .project-home-continue { grid-template-columns: minmax(0, 1fr); }
  .project-list { grid-template-columns: 1fr; }
  .table-workspace.active { grid-template-columns: minmax(0, 1fr); }
  .table-directory { position: fixed; top: var(--topbar-height); left: var(--rail-width); bottom: var(--release-bar-height, 0px); width: min(280px, calc(100vw - var(--rail-width) - 24px)); display: none; z-index: 58; box-shadow: var(--shadow); }
  .table-workspace.directory-open .table-directory { display: block; }
  .table-canvas { grid-template-rows: 34px 54px 34px 40px auto minmax(0, 1fr) 34px; }
  .table-titlebar { justify-content: flex-start; gap: 8px; padding-left: 8px; }
  .mobile-directory-button { display: inline-grid; }
  .table-identity { flex: 1; }
  .table-identity h1 { max-width: min(42vw, 260px); }
  .table-help-panel { top: 88px; left: 6px; right: 6px; }
  .table-help-panel { padding-left: 12px; }
  .toolbar-primary .tool-button:nth-child(n+4) { display: none; }
  .table-search { width: 150px; }
  .title-actions .secondary { display: none; }
  #table-data-source { display: none; }
  .table-statusbar { gap: 10px; }
  .table-load-metric { min-width: 112px; padding-left: 8px; }
  .panel-layout { grid-template-columns: 1fr; }
  .panel-list { border-right: 0; border-bottom: 1px solid var(--line); }
  .panel-main { min-height: 420px; }
  .settings-grid { grid-template-columns: 1fr; }
  .import-field-candidate { grid-template-columns: 1fr 180px 180px 150px; }
  .import-field-candidate > span:first-child { grid-column: 1 / -1; }
  .theme-settings-head { flex-direction: column; }
  .theme-governance-state { width: 100%; grid-template-columns: 1fr; }
  .theme-governance-state span { border-right: 0; border-bottom: 1px solid var(--line); }
  .theme-governance-state span:last-child { border-bottom: 0; }
  .theme-preset-grid { grid-template-columns: 1fr; }
  .theme-preset-option { min-height: 104px; }
  .theme-editor-layout { grid-template-columns: 1fr; }
  .theme-preview-section { padding: 16px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .theme-control-grid { grid-template-columns: 1fr; }
  .theme-settings-actions { align-items: stretch; flex-wrap: wrap; }
  .theme-settings-actions > div { flex-basis: 100%; }
  .relation-review-head { flex-direction: column; }
  .review-boundary { align-items: flex-start; }
  .relation-audit-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review-next-step { grid-template-columns: 1fr; gap: 4px; }
  .relation-summary-stat { border-bottom: 1px solid var(--line); }
  .relation-audit-row > summary { grid-template-columns: 12px minmax(0, 1fr) 90px; }
  .relation-audit-metric, .relation-audit-state > small { display: none; }
  .relation-audit-state { display: flex; }
  .relation-audit-evidence { grid-template-columns: 1fr; padding-left: 28px; }
  .review-row { grid-template-columns: 90px minmax(0, 1fr); }
  .review-row > :nth-child(n+3) { display: none; }
}

@media (max-width: 1350px) {
  .config-detail-actions [data-toggle-config-directory] { display: inline-flex; }
  .settings-entry { grid-template-columns: 22px 230px minmax(0, 1fr) auto 18px; }
  .config-table-workbench.has-inspector { grid-template-columns: minmax(0, 1fr); }
  .config-table-workbench.has-inspector > .config-table-directory { display: none; }
  .config-table-workbench.directory-expanded > .config-table-directory { position: absolute; display: flex; z-index: 6; inset: 0 auto 0 0; width: 216px; box-shadow: var(--shadow); }
}

@media (max-width: 999px) {
  .value-set-workbench { grid-template-columns: 200px minmax(0, 1fr); }
  .value-set-detail { padding: 22px 18px 44px; }
  .value-set-item-head, .value-set-item-row { grid-template-columns: minmax(110px, 1fr) minmax(130px, 1.2fr) 72px 96px 66px; }
  .config-table-workbench { grid-template-columns: minmax(0, 1fr); }
  .config-table-workbench > .config-table-directory { display: none; }
  .config-table-workbench.has-inspector .config-list-pane,
  .config-table-workbench.has-inspector .config-detail-head,
  .config-table-workbench.has-inspector .config-tabs,
  .config-table-workbench.has-inspector .config-change-strip { display: none; }
  .config-workspace-body { grid-template-columns: minmax(0, 1fr); }
  #config-inspector { width: 100%; border-left: 0; }
  .config-editor > header { min-height: 66px; }
  .config-mobile-back { display: inline-grid; flex: none; }
  .config-editor > header > div { flex: 1; }
  .config-inspector-back { order: -1; flex: none; }
  .config-desktop-close { display: none; }
  .config-review-layout { grid-template-columns: 190px minmax(0, 1fr); }
  .config-review-detail { padding: 20px 16px 0; }
  .config-review-scope { grid-template-columns: 1fr; }
  .config-review-scope > span { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 16px; }
  .config-review-scope strong { margin-top: 0; }
  .new-table-form-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .new-table-field-head, .new-table-field-row { grid-template-columns: minmax(100px, 1fr) minmax(120px, 1fr) 120px 62px 34px; }
}

@media (max-width: 600px) {
  .settings-workspace.active { padding: 0; }
  .value-set-workbench { display: block; }
  .value-set-directory { border-right: 0; }
  .value-set-directory > div { max-height: 220px; }
  .value-set-detail { padding: 18px 12px 36px; }
  .value-set-form { grid-template-columns: 1fr; }
  .value-set-form .span-all { grid-column: 1; }
  .value-set-item-head { display: none; }
  .value-set-item-row { grid-template-columns: 1fr 1fr; }
  .value-set-item-row > :nth-child(n+3) { min-width: 0; }
  .settings-home { padding: 22px 16px 0; }
  .config-home-scope { margin-left: -16px; margin-right: -16px; padding: 8px 16px; }
  .settings-home > header { height: 86px; }
  .settings-entry { grid-template-columns: 22px minmax(0, 1fr) 18px; gap: 8px 12px; padding: 14px 8px; }
  .settings-entry .settings-entry-icon { grid-column: 1; grid-row: 1; }
  .settings-entry > strong { grid-column: 2; grid-row: 1; }
  .settings-entry .settings-entry-description { grid-column: 2; grid-row: 2; }
  .settings-entry .settings-entry-state { grid-column: 2; grid-row: 3; }
  .settings-entry > span:last-child { grid-column: 3; grid-row: 1 / 4; }
  .lifecycle-page > header { min-height: 112px; align-items: flex-start; padding: 12px; }
  .lifecycle-page > header > .badge { display: none; }
  .lifecycle-list { padding: 14px 12px 40px; }
  .lifecycle-row, .lifecycle-row.activity, .lifecycle-row.audit { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
  .lifecycle-row-metrics { grid-column: 1 / -1; }
  .lifecycle-row > .badge { grid-column: 2; grid-row: 1; }
  .lifecycle-row > .button { grid-column: 1 / -1; }
  .lifecycle-impact-grid { grid-template-columns: 1fr 1fr; }
  .lifecycle-impact-grid > span:nth-child(3n) { border-right: 1px solid var(--line); }
  .lifecycle-impact-grid > span:nth-child(2n) { border-right: 0; }
  .lifecycle-commit { align-items: stretch; flex-direction: column; }
  .lifecycle-commit .button { width: 100%; }
  .config-recent-row { grid-template-columns: minmax(0, 1fr) auto 18px; gap: 6px 12px; }
  .config-recent-row > span:nth-child(2) { grid-column: 1; grid-row: 2; }
  .config-recent-row .config-recent-state { grid-column: 2; grid-row: 1 / 3; }
  .config-recent-row > .vds-icon { grid-column: 3; grid-row: 1 / 3; }
  .config-detail-head { padding: 14px; align-items: flex-start; flex-direction: column; }
  .config-detail-head h2 { font-size: 20px; }
  .config-detail-actions { width: 100%; gap: 5px; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; }
  .config-detail-actions .button { flex: none; }
  .config-tabs { padding: 0 12px; gap: 18px; }
  .config-tabs button { padding: 10px 0; }
  .config-list-toolbar { padding: 6px 10px; }
  .config-field-row { grid-template-columns: minmax(0, 1.1fr) 76px minmax(0, 1fr); gap: 8px; padding: 0 10px; }
  .config-field-row > :nth-child(4) { display: none; }
  .config-relation-row { grid-template-columns: minmax(0, 1fr) 16px minmax(0, 1fr); gap: 8px; padding: 12px; }
  .config-relation-row > * { white-space: normal; overflow-wrap: anywhere; }
  .config-relation-policy { grid-column: 1 / -1; }
  .config-relation-row.header > :first-child { grid-column: 1; }
  .config-relation-row.header > :nth-child(2) { grid-column: 3; }
  .config-relation-row.header > :last-child { display: none; }
  .config-versions-page > header { padding: 12px; }
  .config-review-layout { display: flex; flex-direction: column; }
  .config-draft-directory { flex-shrink: 0; max-height: 155px; padding: 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .config-draft-directory h3 { margin-bottom: 8px; }
  .config-draft-directory button { padding: 10px; }
  .config-review-detail { flex: 1; min-height: 0; padding: 18px 12px 12px; }
  .config-diff-row { grid-template-columns: minmax(70px, .7fr) repeat(2, minmax(0, 1fr)); }
  .config-diff-row > * { padding: 10px 8px; }
  .config-publish-footer > small { flex-basis: 100%; }
  .config-readonly-row { align-items: flex-start; flex-wrap: wrap; }
  .config-form-grid { padding: 18px 16px; }
  .new-table-wizard-body { padding: 0 16px 24px; }
  .new-table-form-grid, .new-table-field-head, .new-table-field-row, .new-table-impact-grid { margin-left: 0; padding-left: 0; }
  .new-table-form-grid.two, .new-table-form-grid.three, .new-table-impact-grid { grid-template-columns: 1fr; }
  .new-table-impact-grid > span { border-right: 0; border-bottom: 1px solid var(--line); }
  .new-table-impact-grid > span:last-child { border-bottom: 0; }
  .new-table-field-head { display: none; }
  .new-table-field-row { grid-template-columns: minmax(0, 1fr) 34px; padding: 10px 0; }
  .new-table-field-row > :not(button) { grid-column: 1; }
  .new-table-field-row > button { grid-column: 2; grid-row: 1; }
}
.linked-record-field { display: grid; gap: 8px; min-width: 0; }
.linked-record-field-label { color: var(--muted); font-size: 12px; font-weight: 650; }
.linked-records { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-width: 0; }
.linked-record-chip, .linked-record-edit, .link-records-empty { border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); min-height: 28px; padding: 4px 10px; }
.linked-record-chip { display: inline-flex; align-items: center; gap: 5px; max-width: 220px; }
.linked-record-chip span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.linked-record-chip small { color: var(--muted); }
.linked-record-edit, .link-records-empty { border-style: dashed; color: var(--accent); }
.linked-record-overflow { color: var(--muted); font-size: 12px; }
.linked-records-compact_list, .linked-records-detail_list { display: grid; align-items: stretch; }
.linked-record-row, .linked-record-detail { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); padding: 9px 10px; text-align: left; }
.linked-record-row { display: flex; justify-content: space-between; gap: 10px; }
.linked-record-row small, .linked-record-detail small, .linked-record-detail > span { color: var(--muted); }
.linked-record-detail { display: grid; gap: 5px; }
.linked-record-detail > button { display: flex; justify-content: space-between; border: 0; background: transparent; color: inherit; padding: 0; text-align: left; }
.link-picker-backdrop { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 20px; background: rgb(18 25 31 / 24%); }
.link-picker { width: min(520px, 100%); max-height: min(720px, calc(100vh - 40px)); display: grid; grid-template-rows: auto auto auto minmax(160px, 1fr) auto auto; gap: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 22px 70px rgb(18 25 31 / 22%); padding: 18px; }
.link-picker header, .link-picker footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.link-picker header h3 { margin: 2px 0 0; }
.link-picker header small { color: var(--muted); }
.link-picker-selected { display: flex; flex-wrap: wrap; gap: 6px; min-height: 30px; }
.link-picker-search { display: grid; gap: 6px; }
.link-picker-search span { color: var(--muted); font-size: 12px; }
.link-picker-search input { width: 100%; }
.link-picker-options { overflow: auto; display: grid; align-content: start; gap: 5px; border-block: 1px solid var(--line); padding-block: 8px; }
.link-picker-option { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--text); padding: 9px 10px; text-align: left; }
.link-picker-option:hover, .link-picker-option.active { border-color: var(--line-strong); background: var(--surface-soft); }
.link-picker-option[aria-selected="true"] { border-color: var(--accent); }
.link-picker-option span:first-child { display: grid; gap: 2px; }
.link-picker-option small, .link-picker-empty, .link-picker-no-selection, .link-picker-live { color: var(--muted); }
.link-picker-error { color: var(--red); }
@media (max-width: 640px) { .link-picker-backdrop { align-items: end; padding: 0; } .link-picker { width: 100%; max-height: 86vh; border-radius: 16px 16px 0 0; } }
