:root {
  color-scheme: light dark;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Segoe UI", sans-serif;
  --bg: #ffffff;
  --sidebar: #f7f7f5;
  --surface: #ffffff;
  --surface-subtle: #f7f7f6;
  --surface-hover: #f4f6fb;
  --border: #e3e3df;
  --border-strong: #d5d5d0;
  --text: #252522;
  --muted: #6f706b;
  --muted-strong: #555650;
  --accent: #5b78cf;
  --accent-hover: #4b69c2;
  --accent-soft: #eef2fd;
  --danger: #b43b32;
  --danger-soft: #fbeeed;
  --warning: #9a6412;
  --warning-soft: #fff4dd;
  --success: #2f8b61;
  --success-soft: #eaf5ef;
  --success-text: #287752;
  --warning-text: #9a6412;
  --danger-text: #b43b32;
  --page-subtle: #fafaf9;
  --neutral-fill: #efefec;
  --neutral-text: #5b5c56;
  --nav-hover: #eeeeeb;
  --nav-active: #e9e9e6;
  --placeholder: #a1a29d;
  --heading-muted: #858680;
  --mark-bg: #232832;
  --mark-text: #ffffff;
  --release-bg: #fbfcff;
  --button-hover-border: #b9bab4;
  --shadow: 0 16px 42px rgba(25, 28, 36, .12);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #18191b;
  --sidebar: #1e2023;
  --surface: #232529;
  --surface-subtle: #2a2c30;
  --surface-hover: #2a2f3a;
  --border: #37393e;
  --border-strong: #484b51;
  --text: #f1f1ee;
  --muted: #aaaBA6;
  --muted-strong: #c7c8c3;
  --accent: #829bed;
  --accent-hover: #93a9f2;
  --accent-soft: #2c3652;
  --danger: #ec8d85;
  --danger-soft: #472b2c;
  --warning: #e3b867;
  --warning-soft: #453a24;
  --success: #72c89d;
  --success-soft: #243e32;
  --success-text: #82d3aa;
  --warning-text: #e9c276;
  --danger-text: #f09a93;
  --page-subtle: #1a1b1e;
  --neutral-fill: #323438;
  --neutral-text: #d0d1cc;
  --nav-hover: #292b2f;
  --nav-active: #30333a;
  --placeholder: #777a80;
  --heading-muted: #a5a7a2;
  --mark-bg: #eef0f4;
  --mark-text: #1f2227;
  --release-bg: #20242d;
  --button-hover-border: #64676e;
  --shadow: 0 18px 46px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body { min-width: 920px; margin: 0; background: var(--bg); color: var(--text); font-size: 13px; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.ui-icon { width: 16px; height: 16px; flex: 0 0 16px; display: inline-block; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
button, input, select, textarea { font: inherit; }
button { min-height: 36px; border: 1px solid var(--border-strong); border-radius: 7px; background: var(--surface); color: var(--text); padding: 7px 12px; cursor: pointer; transition: border-color .15s ease, background .15s ease, color .15s ease; }
button:hover { border-color: var(--button-hover-border); background: var(--surface-subtle); }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(91, 120, 207, .2); outline-offset: 1px; }
button.primary { border-color: var(--accent); background: var(--accent); color: #fff; font-weight: 600; }
button.primary:hover { border-color: var(--accent-hover); background: var(--accent-hover); }
button.danger { color: var(--danger); }
button.small { min-height: 30px; padding: 4px 8px; font-size: 12px; }
.button-with-icon { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.icon-button { width: 36px; min-width: 36px; padding: 0; display: inline-grid; place-items: center; font-size: 17px; line-height: 1; }
.icon-button .ui-icon { width: 17px; height: 17px; flex-basis: 17px; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 240px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; z-index: 5; height: 100vh; display: flex; flex-direction: column; padding: 16px 10px 12px; background: var(--sidebar); border-right: 1px solid var(--border); }
.brand { min-height: 46px; display: flex; align-items: center; gap: 10px; padding: 5px 8px 15px; border-bottom: 1px solid var(--border); }
.brand-mark { width: 32px; height: 32px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 9px; background: var(--mark-bg); color: var(--mark-text); font-size: 11px; font-weight: 750; letter-spacing: .06em; }
.brand-copy { min-width: 0; flex: 1; }
.brand strong, .brand span { display: block; }
.brand strong { overflow: hidden; font-size: 13px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.brand-copy span { margin-top: 2px; color: var(--muted); font-size: 12px; }
.environment-badge { flex: 0 0 auto; border-radius: 5px; padding: 3px 6px; background: var(--neutral-fill); color: var(--muted-strong); font-size: 11px; font-weight: 600; }
#navigation { display: grid; gap: 20px; padding: 18px 0; overflow-y: auto; transition: opacity .15s ease; }
.nav-group { display: grid; gap: 3px; }
.nav-group-label { padding: 0 11px 6px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .06em; }
.nav-item { min-height: 34px; display: flex; align-items: center; gap: 9px; border: 0; border-radius: 6px; background: transparent; padding: 7px 10px; color: var(--muted-strong); text-align: left; }
.nav-item:hover { border-color: transparent; background: var(--nav-hover); color: var(--text); }
.nav-item.is-active { background: var(--nav-active); color: var(--text); font-weight: 650; }
.nav-icon { width: 18px; flex: 0 0 18px; display: grid; place-items: center; color: var(--muted); text-align: center; }
.nav-icon .ui-icon { width: 17px; height: 17px; flex-basis: 17px; stroke-width: 1.75; }
.nav-item.is-active .nav-icon { color: var(--accent); }
.sidebar-bottom { margin-top: auto; display: grid; gap: 8px; padding-top: 10px; border-top: 1px solid var(--border); }
.appearance-switcher { display: grid; gap: 7px; padding: 4px 8px 7px; }
.appearance-label { color: var(--muted); font-size: 11px; font-weight: 650; }
.appearance-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; padding: 2px; border-radius: 7px; background: var(--neutral-fill); }
.appearance-options button { min-width: 0; min-height: 30px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; border: 0; border-radius: 5px; background: transparent; padding: 4px 3px; color: var(--muted); font-size: 11px; }
.appearance-options .ui-icon { width: 13px; height: 13px; flex-basis: 13px; }
.appearance-options button:hover { border: 0; background: var(--surface-subtle); color: var(--text); }
.appearance-options button.is-active { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(25, 28, 36, .1); font-weight: 650; }
.sidebar-footer { display: flex; align-items: center; gap: 8px; padding: 5px 10px; color: var(--muted); font-size: 12px; }
.status-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--muted); }
.status-dot.is-connected { background: var(--success); }
.principal { min-width: 0; display: flex; align-items: center; gap: 9px; padding: 8px; border-radius: 7px; }
.principal:hover { background: var(--nav-hover); }
.principal-avatar { width: 30px; height: 30px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: var(--mark-bg); color: var(--mark-text); font-size: 11px; font-weight: 700; }
.principal-copy { min-width: 0; flex: 1; }
.principal-copy span, .principal-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.principal-copy span { font-size: 12px; font-weight: 600; }
.principal-copy small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.principal .icon-button { width: 28px; min-width: 28px; min-height: 28px; border: 0; background: transparent; color: var(--muted); font-size: 14px; }

.workspace { min-width: 0; padding: 0 40px 56px; }
.topbar { min-height: 108px; display: flex; justify-content: space-between; align-items: center; gap: 28px; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.topbar h1 { margin: 0; font-size: 24px; font-weight: 680; letter-spacing: -.03em; }
.topbar p { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.topbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.product-scope-switcher { display: flex; align-items: center; gap: 8px; }
.product-scope-switcher > span { margin: 0; color: var(--muted); font-size: 11px; white-space: nowrap; }
.product-scope-switcher select { width: 210px; }
.scope-badge { display: inline-flex; align-items: center; min-height: 24px; border-radius: 999px; padding: 3px 8px; background: var(--accent-soft); color: var(--accent); font-size: 10px; font-weight: 650; white-space: nowrap; }
.secure-badge { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }

.is-locked #navigation { opacity: .42; pointer-events: none; }
.is-locked .topbar, .is-locked .view { display: none !important; }
.is-locked .workspace { min-height: 100vh; display: grid; place-items: center; padding: 48px; background: var(--page-subtle); }
.login-panel { display: none; width: min(500px, 100%); }
.is-locked .login-panel { display: block; }
.login-panel.is-connected { display: none !important; }
.login-card { padding: 34px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); box-shadow: 0 18px 50px rgba(29, 32, 38, .08); }
.login-mark { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 24px; border-radius: 11px; background: var(--mark-bg); color: var(--mark-text); font-size: 12px; font-weight: 750; letter-spacing: .06em; }
.eyebrow { margin: 0 0 7px; color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.login-card h2 { margin: 0; font-size: 20px; letter-spacing: -.02em; }
.login-card > p:not(.eyebrow) { margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.login-form { display: grid; gap: 13px; margin-top: 24px; }
.login-form button { width: 100%; }
.login-note { display: grid; gap: 4px; margin-top: 18px; padding: 12px 13px; border-radius: 8px; background: var(--surface-subtle); color: var(--muted); font-size: 12px; line-height: 1.5; }
.login-note strong { color: var(--muted-strong); }

.view { display: none; }
.view.is-active { display: block; }
.section-actions { min-height: 40px; display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-bottom: 14px; }
.section-actions > .muted:first-child { margin-right: auto; }
.section-actions label { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }
.panel { margin-bottom: 18px; padding: 0; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); overflow: hidden; }
.panel > header { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.panel > header > div { min-width: 0; }
.panel h2 { margin: 0; font-size: 15px; font-weight: 650; }
.panel header p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.panel h3 { margin: 20px 18px 10px; font-size: 14px; }
.panel > .table-wrap, .panel > [id$="-table"] { padding: 0 8px; }
.help-anchor { display: inline-flex; align-items: center; gap: 6px; }
.help-button { width: 18px; height: 18px; min-height: 18px; flex: 0 0 auto; display: inline-grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); line-height: 1; }
.help-button .ui-icon { width: 16px; height: 16px; flex-basis: 16px; stroke-width: 1.7; }
.help-button:hover, .help-button[aria-expanded="true"] { border-color: rgba(91, 120, 207, .42); background: var(--accent-soft); color: var(--accent); }
.help-tooltip { position: fixed; z-index: 90; width: max-content; max-width: min(320px, calc(100vw - 24px)); padding: 10px 12px; border-radius: 8px; background: #272b33; color: #fff; box-shadow: var(--shadow); font-size: 12px; font-weight: 400; line-height: 1.55; text-align: left; }
.two-column { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.forms { align-items: start; margin-bottom: 18px; }
.form-card { display: grid; gap: 12px; margin-bottom: 18px; padding: 18px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.form-card h3 { margin: 0 0 4px; font-size: 14px; }
.wide-form { margin-bottom: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(5, minmax(120px, 1fr)); gap: 12px; }
.inline-form { display: flex; align-items: end; gap: 9px; }
.inline-form label { flex: 1; }
.inline-form.compact label { min-width: 300px; }
label > span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 12px; }
label.checkbox { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 12px; }
input, select, textarea { width: 100%; min-height: 36px; border: 1px solid var(--border-strong); border-radius: 7px; background: var(--surface); color: var(--text); padding: 7px 10px; }
input::placeholder, textarea::placeholder { color: var(--placeholder); }
textarea { min-height: 76px; resize: vertical; line-height: 1.45; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(140px, 1fr)); gap: 12px; margin-bottom: 18px; }
.compact-grid { grid-template-columns: repeat(5, minmax(120px, 1fr)); }
.metric-card { min-height: 92px; display: flex; flex-direction: column; justify-content: space-between; padding: 14px 16px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); }
.metric-card span { color: var(--muted); font-size: 12px; }
.metric-card strong { font-size: 20px; font-weight: 650; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.metric-card small { color: var(--muted); font-size: 11px; }
.summary-strip { gap: 0; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.summary-strip .metric-card { min-height: 84px; border: 0; border-right: 1px solid var(--border); border-radius: 0; }
.summary-strip .metric-card:last-child { border-right: 0; }

.page-tabs { display: flex; gap: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--border); }
.page-tab { min-height: 38px; display: inline-flex; align-items: center; gap: 7px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; padding: 0 1px; color: var(--muted); }
.page-tab > .ui-icon { width: 15px; height: 15px; flex-basis: 15px; }
.page-tab:hover { border-color: transparent; border-bottom-color: var(--border-strong); background: transparent; color: var(--text); }
.page-tab.is-active { border-bottom-color: var(--accent); color: var(--text); font-weight: 650; }
.ai-workspace-tabs { gap: 10px; margin-top: 18px; }
.ai-workspace-tabs .page-tab { min-width: 150px; align-items: center; gap: 8px; padding: 9px 10px 10px; text-align: left; }
.ai-workspace-tabs .page-tab > .ui-icon { width: 17px; height: 17px; flex-basis: 17px; }
.ai-tab-copy { min-width: 0; display: grid; gap: 2px; }
.ai-tab-copy > span { color: inherit; font-size: 12px; }
.ai-workspace-tabs .page-tab small { color: var(--muted); font-size: 10px; font-weight: 400; }
.ai-workspace-panel > .ai-section-label { margin-top: 8px; }
.ai-workspace-panel > .ai-section-label > span { display: none; }
.ai-workspace-panel > .ai-section-label { gap: 0; }
.panel-header-actions { min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.panel-header-actions > .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.count-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; min-height: 20px; border-radius: 999px; padding: 2px 7px; background: var(--neutral-fill); color: var(--muted-strong); font-size: 11px; font-weight: 650; white-space: nowrap; }
.release-banner { display: flex; justify-content: space-between; gap: 24px; margin-bottom: 16px; padding: 16px 18px; border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 9px; background: var(--release-bg); }
.release-banner > div { min-width: 0; flex: 1; }
.control-plane-banner { align-items: flex-start; border-left-color: var(--success); }
.control-plane-banner .product-posture-heading { margin-bottom: 7px; }
.control-plane-banner p { max-width: 820px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.workspace-banner { align-items: flex-start; }
.workspace-banner p { max-width: 820px; margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.ai-section-label { display: flex; align-items: flex-start; gap: 12px; margin: 30px 0 14px; }
.ai-section-label > span { width: 30px; height: 30px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 8px; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 750; }
.ai-section-label h2 { margin: 0; font-size: 16px; font-weight: 680; letter-spacing: -.01em; }
.ai-section-label p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.form-note { margin: -2px 0 0; padding: 10px 12px; border-radius: 7px; background: var(--surface-subtle); color: var(--muted); font-size: 11px; line-height: 1.55; }
.management-form-source { display: none; }
.management-form-storage { display: none; }
body.has-management-modal { overflow: hidden; }
.management-modal-backdrop { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 28px; background: rgba(18, 20, 24, .42); backdrop-filter: blur(3px); }
.management-modal { width: min(780px, calc(100vw - 56px)); max-height: calc(100vh - 56px); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); box-shadow: 0 26px 80px rgba(18, 20, 24, .28); }
.management-modal > header { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 20px; border-bottom: 1px solid var(--border); }
.management-modal > header h2 { margin: 0; font-size: 18px; letter-spacing: -.02em; }
.management-modal-body { overflow-y: auto; padding: 20px; }
.management-modal-body .management-form-source { display: grid; }
.management-modal-body .form-card { margin: 0; padding: 0; border: 0; border-radius: 0; }
.management-modal-body .form-card > h3:first-child { display: none; }
.management-modal-body .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.management-modal-body .form-card > button[type="submit"] { justify-self: end; min-width: 150px; }
.form-action-menu { position: relative; }
.form-action-menu summary { min-height: 36px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--accent); border-radius: 7px; background: var(--accent); color: #fff; padding: 7px 12px; cursor: pointer; font-weight: 600; list-style: none; }
.form-action-menu summary .ui-icon { width: 15px; height: 15px; flex-basis: 15px; }
.form-action-menu summary::-webkit-details-marker { display: none; }
.form-action-menu summary::after { content: "⌄"; margin-left: 8px; font-size: 11px; }
.form-action-menu-list { position: absolute; top: calc(100% + 6px); right: 0; z-index: 20; width: 190px; display: grid; gap: 2px; padding: 5px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow); }
.form-action-menu-list button { min-height: 32px; border: 0; background: transparent; text-align: left; }
.form-action-menu-list .button-with-icon { justify-content: flex-start; }
.form-action-menu-list button:hover { background: var(--surface-subtle); }
.product-posture { display: grid; gap: 7px; }
.product-posture-heading { display: flex; align-items: center; gap: 10px; }
.product-posture-heading h3 { margin: 0; font-size: 15px; }
.product-posture p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.product-posture .product-recommended-path { color: var(--text); }
.filter-toolbar { min-height: 56px; display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.filter-toolbar label { margin: 0; }
.filter-toolbar select { min-width: 124px; }
.search-field { position: relative; flex: 1; max-width: 560px; }
.search-field input { padding-left: 34px; }
.search-icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 17px; pointer-events: none; }
.task-panel > header { min-height: 62px; }
.product-phase-list { min-height: 180px; }
.product-task-table { min-width: 980px; }
.product-task-table th:first-child, .product-task-table td:first-child { padding-left: 12px; }
.product-task-table tbody tr { cursor: pointer; }
.product-task-table tbody tr:focus-within { background: var(--surface-hover); }
.task-title-cell { min-width: 230px; }
.task-title-cell strong { display: block; margin-bottom: 4px; font-size: 13px; }
.task-title-cell small, .evidence-cell { color: var(--muted); font-size: 11px; line-height: 1.45; }
.task-title-cell small { display: block; max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.phase-cell { min-width: 140px; color: var(--muted-strong); }
.evidence-cell { max-width: 270px; }
.evidence-cell span { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.task-action-button { width: 30px; min-width: 30px; min-height: 30px; border: 0; background: transparent; color: var(--muted); font-size: 18px; }
.task-action-button .ui-icon { width: 17px; height: 17px; flex-basis: 17px; }
.product-sync-panel p { margin: 0; padding: 18px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.document-panel table { min-width: 880px; }

.drawer-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(27, 29, 34, .2); backdrop-filter: blur(1px); }
.task-drawer { position: fixed; top: 0; right: 0; z-index: 51; width: min(500px, 45vw); height: 100vh; display: flex; flex-direction: column; background: var(--surface); box-shadow: -18px 0 48px rgba(25, 28, 36, .14); }
.task-drawer > header { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 22px; border-bottom: 1px solid var(--border); }
.task-drawer h2 { margin: 0; font-size: 19px; letter-spacing: -.02em; }
.task-drawer-content { overflow-y: auto; padding: 22px; }
.drawer-status-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.drawer-section { padding: 17px 0; border-top: 1px solid var(--border); }
.drawer-section:first-of-type { border-top: 0; padding-top: 0; }
.drawer-section h3 { margin: 0 0 8px; color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.drawer-section p { margin: 0; font-size: 13px; line-height: 1.65; }
.drawer-documents { display: flex; gap: 6px; flex-wrap: wrap; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { color: var(--heading-muted); font-size: 11px; font-weight: 750; letter-spacing: .04em; text-align: left; text-transform: uppercase; white-space: nowrap; }
th, td { padding: 10px 9px; border-bottom: 1px solid var(--border); vertical-align: middle; }
td { max-width: 320px; overflow-wrap: anywhere; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--surface-hover); }
.empty { padding: 34px 12px; color: var(--muted); text-align: center; }
.pill { display: inline-flex; align-items: center; border-radius: 999px; padding: 3px 8px; background: var(--neutral-fill); color: var(--neutral-text); font-size: 11px; white-space: nowrap; }
.pill.success { background: var(--success-soft); color: var(--success-text); }
.pill.warning { background: var(--warning-soft); color: var(--warning-text); }
.pill.danger { background: var(--danger-soft); color: var(--danger-text); }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.muted { color: var(--muted); font-size: 12px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; }
.is-hidden { display: none !important; }

.toast { position: fixed; z-index: 100; right: 28px; bottom: 26px; max-width: 420px; transform: translateY(18px); opacity: 0; pointer-events: none; transition: .18s ease; border-radius: 8px; padding: 11px 14px; background: #272b33; color: #fff; box-shadow: var(--shadow); font-size: 12px; }
.toast.is-visible { transform: translateY(0); opacity: 1; }
.toast.is-error { background: #8f2e28; }

@media (max-width: 1180px) {
  .app-shell { grid-template-columns: 210px minmax(0, 1fr); }
  .workspace { padding-right: 24px; padding-left: 24px; }
  .form-grid { grid-template-columns: repeat(3, minmax(120px, 1fr)); }
  .metric-grid { grid-template-columns: repeat(2, minmax(140px, 1fr)); }
  .summary-strip { grid-template-columns: repeat(4, minmax(120px, 1fr)); }
  .ai-workspace-tabs .page-tab { min-width: 126px; }
  .product-scope-switcher > span, .scope-badge { display: none; }
  .product-scope-switcher select { width: 180px; }
}
