:root {
  --ink: #17232b;
  --ink-soft: #34434d;
  --muted: #65737c;
  --subtle: #87939a;
  --line: #dce2e5;
  --line-strong: #c8d1d5;
  --canvas: #f4f6f7;
  --surface: #ffffff;
  --surface-soft: #f8fafb;
  --surface-hover: #f1f6f6;
  --sidebar-bg: #101c25;
  --sidebar-active: #1b303b;
  --primary: #147e84;
  --primary-hover: #0e6a70;
  --primary-soft: #e4f2f1;
  --green: #267157;
  --green-soft: #e6f2eb;
  --amber: #94641d;
  --amber-soft: #fbf0db;
  --red: #a3453f;
  --red-soft: #f8e9e7;
  --blue: #356d9b;
  --blue-soft: #e8f0f7;
  --sidebar: 248px;
  color: var(--ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-synthesis: none;
  letter-spacing: 0;
}

* { box-sizing: border-box; }
html { background: var(--canvas); overflow-x: hidden; }
body { margin: 0; min-width: 320px; }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid #5eb9bd; outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { clip: rect(0, 0, 0, 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }

.boot-screen { align-items: center; background: var(--canvas); color: var(--muted); display: flex; flex-direction: column; gap: 14px; height: 100vh; justify-content: center; }
.boot-screen img { border-radius: 6px; height: 54px; width: 54px; }
.boot-screen strong { font-size: 14px; }

.sidebar { background: var(--sidebar-bg); color: #d5e1e6; display: flex; flex-direction: column; height: 100vh; left: 0; padding: 20px 14px 16px; position: fixed; top: 0; width: var(--sidebar); z-index: 60; }
.brand { align-items: center; color: inherit; display: flex; gap: 12px; padding: 0 9px 20px; text-decoration: none; }
.brand img { background: #fff; border-radius: 5px; height: 40px; object-fit: contain; padding: 2px; width: 40px; }
.brand strong, .brand small { display: block; }
.brand strong { color: #fff; font-size: 18px; line-height: 1.2; }
.brand small { color: #8296a1; font-size: 11px; margin-top: 4px; }
html:not(.logos-visible) [data-brand-logo], html.logos-hidden [data-brand-logo] { pointer-events: none; visibility: hidden; }
.module-title { border-bottom: 1px solid #263640; border-top: 1px solid #263640; margin: 0 3px 16px; padding: 15px 10px; }
.module-title span, .module-title small { display: block; }
.module-title span { color: #f1f7f9; font-size: 13px; font-weight: 700; }
.module-title small { color: #7c929e; font-size: 11px; margin-top: 5px; }
.main-nav { display: grid; gap: 4px; }
.nav-item { align-items: center; background: transparent; border: 0; border-radius: 5px; color: #91a5af; cursor: pointer; display: flex; gap: 11px; min-height: 46px; padding: 0 12px; text-align: left; width: 100%; }
.nav-item:hover { background: #172832; color: #fff; }
.nav-item.is-active { background: var(--sidebar-active); box-shadow: inset 3px 0 0 #45b8ac; color: #fff; }
.nav-item svg { flex: 0 0 auto; height: 18px; width: 18px; }
.nav-item > span { flex: 1; font-size: 13px; min-width: 0; }
.nav-item em { background: #263a45; border-radius: 3px; color: #a7b8c0; font-size: 11px; font-style: normal; min-width: 25px; padding: 3px 6px; text-align: center; }
.nav-item.is-active em { background: #2b4b59; color: #fff; }
.sidebar-context { border-bottom: 1px solid #263640; border-top: 1px solid #263640; margin: 24px 10px 0; padding: 17px 0; }
.sidebar-context span, .sidebar-context strong, .sidebar-context small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-context span { color: #708791; font-size: 11px; }
.sidebar-context strong { color: #f0f6f8; font-size: 13px; margin-top: 8px; }
.sidebar-context small { color: #879ca6; font-size: 11px; margin-top: 5px; }
.sidebar-foot { display: grid; gap: 4px; margin-top: auto; }
.sidebar-foot a, .sidebar-foot button { align-items: center; background: transparent; border: 0; border-radius: 5px; color: #8499a3; cursor: pointer; display: flex; font-size: 12px; gap: 10px; min-height: 42px; padding: 0 12px; text-decoration: none; width: 100%; }
.sidebar-foot a:hover, .sidebar-foot button:hover { background: #172832; color: #fff; }
.sidebar-foot svg { height: 17px; width: 17px; }

.main-area { margin-left: var(--sidebar); min-height: 100vh; }
.topbar { align-items: center; background: rgba(255, 255, 255, .98); border-bottom: 1px solid var(--line); display: flex; gap: 20px; height: 66px; justify-content: space-between; padding: 0 30px; position: sticky; top: 0; z-index: 40; }
.global-search { align-items: center; background: #f3f5f6; border: 1px solid transparent; border-radius: 5px; display: flex; flex: 1; gap: 10px; max-width: 560px; min-width: 220px; padding: 0 12px; }
.global-search:focus-within { background: #fff; border-color: #78b9bc; box-shadow: 0 0 0 3px rgba(20, 126, 132, .08); }
.global-search svg { color: var(--muted); height: 17px; width: 17px; }
.global-search input { background: transparent; border: 0; color: var(--ink); font-size: 13px; height: 40px; min-width: 0; outline: 0; width: 100%; }
.global-search kbd { background: #fff; border: 1px solid var(--line); border-radius: 3px; color: var(--subtle); font-size: 11px; padding: 3px 6px; white-space: nowrap; }
.topbar-actions { align-items: center; display: flex; gap: 8px; }
.icon-button { align-items: center; background: transparent; border: 0; border-radius: 5px; color: var(--ink); cursor: pointer; display: inline-flex; height: 38px; justify-content: center; padding: 0; width: 38px; }
.icon-button:hover { background: #eef2f3; }
.icon-button svg { height: 18px; width: 18px; }
.mobile-menu { display: none; }
.primary-button, .secondary-button, .text-button, .danger-button { align-items: center; border-radius: 5px; cursor: pointer; display: inline-flex; font-size: 13px; font-weight: 650; gap: 7px; justify-content: center; min-height: 40px; padding: 0 15px; text-decoration: none; white-space: nowrap; }
.primary-button { background: var(--primary); border: 1px solid var(--primary); color: #fff; }
.primary-button:hover:not(:disabled) { background: var(--primary-hover); }
.secondary-button { background: #fff; border: 1px solid var(--line-strong); color: var(--ink); }
.secondary-button:hover:not(:disabled) { background: #f5f7f8; border-color: #aebbc1; }
.text-button { background: transparent; border: 0; color: var(--primary); min-height: 32px; padding: 0 5px; }
.danger-button { background: var(--red); border: 1px solid var(--red); color: #fff; }
button:disabled { cursor: not-allowed; opacity: .48; }
.primary-button svg, .secondary-button svg, .danger-button svg { height: 16px; width: 16px; }
.account { align-items: center; border-left: 1px solid var(--line); display: flex; gap: 10px; margin-left: 5px; padding-left: 15px; }
.avatar { align-items: center; background: #e1e9f0; border-radius: 50%; color: #315e81; display: flex; font-size: 12px; font-weight: 750; height: 36px; justify-content: center; width: 36px; }
.account strong, .account small { display: block; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account strong { font-size: 13px; }
.account small { color: var(--muted); font-size: 11px; margin-top: 3px; }

.entry-context { background: #edf6f5; border-bottom: 1px solid #c8dfdc; }
.entry-context-inner { align-items: center; display: grid; gap: 12px; grid-template-columns: 38px minmax(0, 1fr) auto; margin: 0 auto; max-width: 1628px; min-height: 66px; padding: 10px 34px; }
.entry-context-icon { align-items: center; background: #fff; border: 1px solid #c8dfdc; border-radius: 5px; color: var(--primary); display: flex; height: 38px; justify-content: center; width: 38px; }
.entry-context-icon svg { height: 18px; width: 18px; }
.entry-context-copy { min-width: 0; }
.entry-context-copy small, .entry-context-copy strong, .entry-context-copy > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.entry-context-copy small { color: var(--primary); font-size: 10px; font-weight: 700; }
.entry-context-copy strong { font-size: 13px; margin-top: 3px; }
.entry-context-copy > span { color: var(--muted); font-size: 11px; margin-top: 3px; }
.entry-context-actions { align-items: center; display: flex; gap: 8px; }
.context-state { align-items: center; color: var(--green); display: inline-flex; font-size: 11px; gap: 6px; margin-right: 4px; white-space: nowrap; }
.context-state svg { height: 14px; width: 14px; }
.context-state.is-unmatched { color: var(--amber); }
.entry-context-actions .secondary-button { min-height: 36px; }
.entry-context-actions .text-button { gap: 5px; }
.entry-context-actions .text-button svg { height: 14px; width: 14px; }
#intelligence-rows tr.is-entry-focus td { background: #f1faf9; }
#intelligence-rows tr.is-entry-focus td:first-child { box-shadow: inset 3px 0 0 var(--primary); }

.view { display: none; min-height: calc(100vh - 66px); padding: 30px 34px 52px; }
.view.is-visible { display: block; }
.page-heading { align-items: flex-end; display: flex; gap: 24px; justify-content: space-between; margin: 0 auto 24px; max-width: 1560px; }
.page-heading > div:first-child { min-width: 0; }
.page-heading p { color: var(--primary); font-size: 12px; font-weight: 700; margin: 0 0 7px; }
.page-heading h1 { font-size: 28px; line-height: 1.25; margin: 0 0 7px; }
.page-heading > div:first-child > span { color: var(--muted); font-size: 13px; line-height: 1.5; }
.compact-heading { align-items: center; }
.heading-actions { align-items: center; display: flex; gap: 9px; }
.heading-actions select, .item-detail select { background: #fff; border: 1px solid var(--line-strong); border-radius: 5px; color: var(--ink); font-size: 13px; height: 40px; padding: 0 34px 0 11px; }

.metric-band { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 auto 24px; max-width: 1560px; }
.metric-band > div { align-items: center; display: flex; gap: 14px; min-width: 0; padding: 19px 20px; }
.metric-band > div + div { border-left: 1px solid var(--line); }
.metric-band > div > div { min-width: 0; }
.metric-band span:not(.metric-icon), .metric-band small { color: var(--muted); display: block; }
.metric-band span:not(.metric-icon) { font-size: 12px; }
.metric-band strong { display: block; font-size: 26px; line-height: 1.1; margin: 5px 0 4px; }
.metric-band small { font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.metric-icon { align-items: center; background: var(--primary-soft); border-radius: 5px; color: var(--primary); display: flex; flex: 0 0 auto; height: 42px; justify-content: center; width: 42px; }
.metric-icon.document { background: var(--blue-soft); color: var(--blue); }
.metric-icon.pending { background: var(--amber-soft); color: var(--amber); }
.metric-icon.artifact { background: #eeeaf6; color: #67538b; }
.metric-icon svg { height: 20px; width: 20px; }

.workflow-launcher { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; margin: 0 auto 24px; max-width: 1560px; overflow: hidden; }
.workflow-launcher .section-heading { min-height: 58px; }
.workflow-shortcuts { background: var(--line); display: grid; gap: 1px; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.workflow-shortcut { align-items: center; background: #fff; border: 0; color: var(--ink); cursor: pointer; display: grid; gap: 9px; grid-template-columns: 22px 34px minmax(0, 1fr) 14px; min-height: 86px; padding: 10px 12px; text-align: left; }
.workflow-shortcut:hover { background: var(--surface-hover); }
.workflow-shortcut.is-recommended { background: #f2faf9; box-shadow: inset 0 3px 0 var(--primary); }
.workflow-shortcut.is-recommended:hover { background: #eaf7f5; }
.workflow-shortcut:hover .workflow-arrow { color: var(--primary); transform: translateX(2px); }
.workflow-rank { color: var(--subtle); font-size: 10px; font-weight: 750; }
.workflow-shortcut.is-recommended .workflow-rank { color: var(--primary); }
.workflow-icon { align-items: center; background: var(--primary-soft); border-radius: 4px; color: var(--primary); display: flex; height: 34px; justify-content: center; width: 34px; }
.workflow-icon svg { height: 16px; width: 16px; }
.workflow-copy { min-width: 0; }
.workflow-copy > strong { display: block; font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.workflow-copy > span { align-items: center; display: flex; flex-wrap: wrap; gap: 4px 8px; margin-top: 5px; }
.workflow-copy small, .workflow-copy em { font-size: 9px; line-height: 1.4; }
.workflow-copy small { color: var(--muted); }
.workflow-copy em { align-items: center; color: var(--subtle); display: inline-flex; font-style: normal; gap: 4px; }
.workflow-copy em::before { background: currentColor; border-radius: 50%; content: ""; height: 4px; width: 4px; }
.workflow-copy em.attention { color: var(--amber); }
.workflow-copy em.ready { color: var(--green); }
.workflow-arrow { color: var(--subtle); height: 14px; transition: color .15s ease, transform .15s ease; width: 14px; }

.workflow-guide-summary { align-items: center; background: var(--surface-soft); display: grid; gap: 11px; grid-column: 1 / -1; grid-template-columns: 40px minmax(0, 1fr); padding: 12px 13px; }
.workflow-guide-summary > span { align-items: center; background: var(--primary-soft); border-radius: 4px; color: var(--primary); display: flex; height: 38px; justify-content: center; width: 38px; }
.workflow-guide-summary svg { height: 18px; width: 18px; }
.workflow-guide-summary strong, .workflow-guide-summary small { display: block; }
.workflow-guide-summary strong { font-size: 13px; }
.workflow-guide-summary small { color: var(--muted); font-size: 11px; margin-top: 5px; }
.workflow-guide-steps { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; }
.workflow-guide-steps li { align-items: center; border-top: 1px solid var(--line); display: grid; gap: 11px; grid-template-columns: 28px minmax(0, 1fr); min-height: 54px; padding: 9px 2px; }
.workflow-guide-steps li:last-child { border-bottom: 1px solid var(--line); }
.workflow-guide-steps li > span { align-items: center; background: var(--primary-soft); border-radius: 50%; color: var(--primary); display: flex; font-size: 10px; font-weight: 750; height: 24px; justify-content: center; width: 24px; }
.workflow-guide-steps strong { font-size: 12px; font-weight: 600; line-height: 1.55; }

.overview-grid { align-items: start; display: grid; gap: 20px; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); margin: 0 auto 24px; max-width: 1560px; }
.work-section, .activity-section, .structure-section, .data-section { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; min-width: 0; overflow: hidden; }
.structure-section, .data-section { margin: 0 auto; max-width: 1560px; }
.section-heading { align-items: center; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; min-height: 68px; padding: 13px 18px; }
.section-heading h2 { font-size: 16px; margin: 0 0 5px; }
.section-heading p { color: var(--muted); font-size: 12px; margin: 0; }
.section-heading > span { background: #f1f4f5; border-radius: 3px; color: var(--muted); font-size: 11px; padding: 4px 7px; }
.pending-list { display: grid; }
.pending-item { align-items: center; display: grid; gap: 13px; grid-template-columns: 40px minmax(0, 1fr) auto; min-height: 74px; padding: 11px 17px; }
.pending-item + .pending-item { border-top: 1px solid var(--line); }
.pending-item:hover { background: #fafcfc; }
.pending-icon { align-items: center; background: var(--amber-soft); border-radius: 5px; color: var(--amber); display: flex; height: 38px; justify-content: center; width: 38px; }
.pending-icon.release { background: var(--blue-soft); color: var(--blue); }
.pending-icon svg { height: 18px; width: 18px; }
.pending-copy { min-width: 0; }
.pending-copy strong, .pending-copy span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pending-copy strong { font-size: 13px; }
.pending-copy span { color: var(--muted); font-size: 12px; margin-top: 5px; }
.pending-item button { min-height: 34px; padding: 0 11px; }
.timeline { max-height: 374px; overflow: auto; padding: 5px 18px 9px; }
.timeline-item { display: grid; gap: 11px; grid-template-columns: 10px minmax(0, 1fr); padding: 13px 0; position: relative; }
.timeline-item + .timeline-item { border-top: 1px solid var(--line); }
.timeline-dot { background: var(--primary); border: 3px solid var(--primary-soft); border-radius: 50%; height: 10px; margin-top: 4px; width: 10px; }
.timeline-copy strong { display: block; font-size: 12px; font-weight: 600; line-height: 1.5; }
.timeline-copy span { color: var(--subtle); display: block; font-size: 11px; margin-top: 4px; }
.product-rows { display: grid; }
.product-list-head, .product-row { align-items: center; display: grid; gap: 16px; grid-template-columns: minmax(260px, 1.2fr) minmax(210px, .8fr) 120px 40px; }
.product-list-head { background: var(--surface-soft); color: var(--muted); font-size: 11px; font-weight: 700; min-height: 38px; padding: 0 18px; }
.product-row { min-height: 74px; padding: 11px 18px; }
.product-row + .product-row { border-top: 1px solid var(--line); }
.product-row:hover { background: #fafcfc; }
.product-identity { align-items: center; display: flex; gap: 12px; min-width: 0; }
.product-identity > span { align-items: center; background: var(--primary-soft); border-radius: 5px; color: var(--primary); display: flex; flex: 0 0 auto; height: 40px; justify-content: center; width: 40px; }
.product-identity svg { height: 19px; width: 19px; }
.product-identity strong, .product-identity small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-identity strong { font-size: 13px; }
.product-identity small { color: var(--muted); font-size: 11px; margin-top: 5px; }
.structure-meter { min-width: 0; }
.structure-meter span { color: var(--muted); display: block; font-size: 11px; margin-bottom: 7px; }
.structure-meter div { background: #e8edef; height: 4px; overflow: hidden; }
.structure-meter i { background: var(--green); display: block; height: 100%; }
.product-row > small { color: var(--muted); font-size: 11px; }
.row-open { color: var(--muted); height: 34px; width: 34px; }

.item-workbench { margin: 0 auto; max-width: 1560px; min-height: 560px; }
.item-browser, .item-detail { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; min-width: 0; overflow: hidden; }
.item-detail { display: none; }
#items-view.is-detailing { padding-top: 20px; }
#items-view.is-detailing .page-heading, #items-view.is-detailing .item-browser { display: none; }
#items-view.is-detailing .item-detail { display: block; }
.list-toolbar { align-items: center; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; min-height: 60px; padding: 0 18px; }
.list-toolbar > div { align-items: center; display: flex; gap: 9px; }
.list-toolbar strong { font-size: 15px; }
.list-toolbar > div span { background: #eef2f3; border-radius: 3px; color: var(--muted); font-size: 11px; padding: 4px 7px; }
.list-toolbar > span { color: var(--muted); font-size: 12px; }
.table-wrap { overflow-x: auto; width: 100%; }
table { border-collapse: collapse; table-layout: fixed; width: 100%; }
th { background: #f7f9fa; color: #5e6c75; font-size: 11px; font-weight: 700; height: 42px; padding: 0 13px; text-align: left; white-space: nowrap; }
td { border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 13px; height: 62px; padding: 9px 13px; vertical-align: middle; }
td strong, td small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
td strong { color: var(--ink); font-size: 13px; }
td small { color: var(--muted); font-size: 11px; margin-top: 5px; }
.item-table { min-width: 1100px; }
.item-table th:nth-child(1) { width: 245px; }
.item-table th:nth-child(2) { width: 76px; }
.item-table th:nth-child(3) { width: 70px; }
.item-table th:nth-child(4) { width: 96px; }
.item-table th:nth-child(5) { width: 110px; }
.item-table th:nth-child(6) { width: 160px; }
.item-table th:nth-child(7) { width: 100px; }
.item-table th:nth-child(8) { width: 110px; }
.item-table th:nth-child(9) { width: 44px; }
.item-table tbody tr[data-item-id] { cursor: pointer; }
.item-table tbody tr[data-item-id]:hover { background: var(--surface-hover); }
.item-table tbody tr[data-item-id].is-selected { background: #edf6f5; box-shadow: inset 3px 0 0 var(--primary); }
.item-table td:last-child { color: var(--subtle); padding-left: 0; padding-right: 7px; text-align: right; }
.item-table td:last-child svg { height: 17px; width: 17px; }
.item-identity { align-items: center; display: flex; gap: 11px; min-width: 0; }
.item-identity > div { min-width: 0; }
.item-search-match { align-items: center; color: var(--primary); display: flex; font-size: 10px; gap: 5px; margin-top: 5px; min-width: 0; }
.item-search-match svg { flex: 0 0 auto; height: 12px; width: 12px; }
.item-search-match span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-thumbnail { align-items: center; background: #edf2f4; border: 1px solid #dae3e6; border-radius: 4px; color: #506771; display: inline-flex; flex: 0 0 auto; height: 38px; justify-content: center; width: 38px; }
.item-thumbnail.product { background: var(--primary-soft); border-color: #cce4e2; color: var(--primary); }
.item-thumbnail.assembly { background: var(--blue-soft); border-color: #d2e1ee; color: var(--blue); }
.item-thumbnail svg { height: 18px; width: 18px; }
.empty-row { color: var(--muted); height: 130px; text-align: center; }
.empty-state { align-items: center; color: var(--muted); display: flex; flex-direction: column; gap: 9px; height: 100%; justify-content: center; min-height: 430px; padding: 30px; text-align: center; }
.empty-state svg { color: var(--subtle); height: 28px; width: 28px; }
.empty-state strong { color: var(--ink); font-size: 14px; }
.empty-state span { font-size: 12px; }
.status { align-items: center; border-radius: 3px; display: inline-flex; font-size: 11px; font-weight: 700; gap: 6px; padding: 5px 8px; white-space: nowrap; }
.status::before { background: currentColor; border-radius: 50%; content: ""; height: 5px; width: 5px; }
.status.released, .status.accepted, .status.completed { background: var(--green-soft); color: var(--green); }
.status.in_review, .status.candidate, .status.paused { background: var(--amber-soft); color: var(--amber); }
.status.draft, .status.queued, .status.running { background: var(--blue-soft); color: var(--blue); }
.status.rejected, .status.obsolete, .status.failed, .status.cancelled { background: var(--red-soft); color: var(--red); }

.detail-breadcrumb { align-items: center; background: var(--surface-soft); border-bottom: 1px solid var(--line); display: flex; gap: 7px; min-height: 48px; padding: 0 20px; }
.detail-breadcrumb button { align-items: center; background: transparent; border: 0; color: var(--primary); cursor: pointer; display: inline-flex; font-size: 12px; gap: 7px; padding: 7px 0; }
.detail-breadcrumb > svg { color: var(--subtle); height: 14px; width: 14px; }
.detail-breadcrumb button svg { height: 16px; width: 16px; }
.detail-breadcrumb strong { color: var(--muted); font-size: 12px; }
.detail-head { border-bottom: 1px solid var(--line); padding: 26px 26px 22px; }
.detail-head-top { align-items: flex-start; display: flex; gap: 24px; justify-content: space-between; }
.object-title { align-items: flex-start; display: flex; gap: 16px; min-width: 0; }
.object-title > div { min-width: 0; }
.object-visual { align-items: center; background: #edf2f4; border: 1px solid #d9e1e4; border-radius: 6px; color: #506771; display: flex; flex: 0 0 auto; height: 64px; justify-content: center; width: 64px; }
.object-visual.product { background: var(--primary-soft); border-color: #cce4e2; color: var(--primary); }
.object-visual.assembly { background: var(--blue-soft); border-color: #d2e1ee; color: var(--blue); }
.object-visual svg { height: 29px; width: 29px; }
.object-kicker { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 7px; }
.object-kicker > strong { color: var(--primary); font-size: 13px; }
.object-kicker > span:not(.status) { background: #eef2f3; border-radius: 3px; color: var(--ink-soft); font-size: 11px; font-weight: 700; padding: 5px 7px; }
.detail-head h2 { font-size: 26px; line-height: 1.25; margin: 0; }
.detail-head p { color: var(--muted); font-size: 12px; line-height: 1.6; margin: 7px 0 0; max-width: 680px; }
.detail-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.detail-facts { background: #f7f9fa; border: 1px solid var(--line); display: grid; gap: 0; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 24px; }
.detail-facts > div { min-width: 0; padding: 12px 14px; }
.detail-facts > div + div { border-left: 1px solid var(--line); }
.detail-facts span, .detail-facts strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.detail-facts span { color: var(--subtle); font-size: 11px; margin-bottom: 6px; }
.detail-facts strong { font-size: 13px; }
.detail-tabs { align-items: center; background: #fff; border-bottom: 1px solid var(--line); display: flex; gap: 4px; min-height: 52px; overflow-x: auto; padding: 0 20px; }
.detail-tabs button { align-items: center; align-self: stretch; background: transparent; border: 0; border-bottom: 2px solid transparent; color: var(--muted); cursor: pointer; display: inline-flex; font-size: 13px; gap: 6px; padding: 0 13px; white-space: nowrap; }
.detail-tabs button:hover { color: var(--ink); }
.detail-tabs button.is-active { border-bottom-color: var(--primary); color: var(--ink); font-weight: 700; }
.detail-tabs button span { background: #eef2f3; border-radius: 3px; color: var(--muted); font-size: 10px; padding: 2px 5px; }
.detail-pane { display: none; min-width: 0; }
.detail-pane.is-active { display: block; }
[data-detail-pane="summary"].is-active { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .6fr); }
[data-detail-pane="summary"] .release-readiness, [data-detail-pane="summary"] .version-history { grid-column: 1 / -1; }
[data-detail-pane="summary"] .current-version, [data-detail-pane="summary"] .version-description, [data-detail-pane="summary"] .version-history { border-top: 1px solid var(--line); }
[data-detail-pane="summary"] .version-description { border-left: 1px solid var(--line); }
.detail-section { min-width: 0; padding: 24px 26px; }
.detail-pane:not([data-detail-pane="summary"]) .detail-section + .detail-section { border-top: 1px solid var(--line); }
.detail-section-head { align-items: center; display: flex; gap: 16px; justify-content: space-between; margin-bottom: 16px; }
.detail-section-head h3 { font-size: 15px; margin: 0; }
.detail-section-head span { color: var(--muted); font-size: 12px; }
.detail-section-head .document-lock { align-items: center; display: inline-flex; gap: 6px; }
.detail-section-head .document-lock svg { height: 14px; width: 14px; }
.detail-section-head .document-lock.is-review { color: var(--amber); }
.section-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.section-actions > span { margin-left: 4px; }
.attribute-list { border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.attribute-list div { border-bottom: 1px solid var(--line); min-width: 0; padding: 13px 0; }
.attribute-list div:nth-child(odd) { padding-right: 16px; }
.attribute-list div:nth-child(even) { border-left: 1px solid var(--line); padding-left: 16px; }
.attribute-list span, .attribute-list strong { display: block; }
.attribute-list span { color: var(--subtle); font-size: 11px; margin-bottom: 6px; }
.attribute-list strong { font-size: 13px; line-height: 1.5; }
.description-box { background: #f7f9fa; border-left: 3px solid var(--primary); color: var(--ink-soft); font-size: 13px; line-height: 1.75; min-height: 82px; padding: 13px 15px; }
.readiness-heading { align-items: center; display: flex; gap: 18px; justify-content: space-between; margin-bottom: 16px; }
.readiness-heading h3 { font-size: 15px; margin: 0 0 5px; }
.readiness-heading span { color: var(--muted); font-size: 12px; }
.readiness-score { background: var(--amber-soft); border-radius: 4px; color: var(--amber); font-size: 14px; padding: 6px 9px; }
.readiness-score.is-ready { background: var(--green-soft); color: var(--green); }
.readiness-checklist { border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.readiness-check { align-items: center; display: grid; gap: 10px; grid-template-columns: 30px minmax(0, 1fr) auto; min-height: 66px; padding: 10px 12px; }
.readiness-check:nth-child(even) { border-left: 1px solid var(--line); }
.readiness-check:nth-child(n+3) { border-top: 1px solid var(--line); }
.readiness-icon { align-items: center; background: var(--amber-soft); border-radius: 50%; color: var(--amber); display: flex; height: 28px; justify-content: center; width: 28px; }
.readiness-check.is-ready .readiness-icon { background: var(--green-soft); color: var(--green); }
.readiness-check.is-advisory .readiness-icon { background: var(--blue-soft); color: var(--blue); }
.readiness-icon svg { height: 15px; width: 15px; }
.readiness-check strong, .readiness-check small { display: block; }
.readiness-check strong { font-size: 12px; }
.readiness-check small { color: var(--muted); font-size: 11px; line-height: 1.45; margin-top: 4px; }
.readiness-check em { color: var(--subtle); font-size: 10px; font-style: normal; white-space: nowrap; }
.readiness-check button { background: #fff; border: 1px solid var(--line-strong); border-radius: 4px; color: var(--primary); cursor: pointer; font-size: 11px; min-height: 30px; padding: 0 9px; }
.readiness-checklist.compact { grid-column: 1 / -1; grid-template-columns: 1fr; }
.readiness-checklist.compact .readiness-check { border-left: 0; }
.readiness-checklist.compact .readiness-check + .readiness-check { border-top: 1px solid var(--line); }
.mini-table { min-width: 720px; }
.detail-pane .mini-table { min-width: 100%; }
.mini-table th { height: 40px; }
.mini-table td { height: 56px; padding: 8px 11px; }
.action-table th:last-child, .action-table td:last-child { background: #fff; position: sticky; right: 0; z-index: 2; }
.action-table th:last-child { background: #f7f9fa; }
.action-table td:last-child { box-shadow: -8px 0 12px rgba(23, 35, 43, .05); }
.document-table th:nth-child(1) { width: 40%; }
.document-table th:nth-child(2) { width: 10%; }
.document-table th:nth-child(3) { width: 15%; }
.document-table th:nth-child(4) { width: 13%; }
.document-table th:nth-child(5) { width: 22%; }
.bom-table th:nth-child(1) { width: 42%; }
.bom-table th:nth-child(2) { width: 10%; }
.bom-table th:nth-child(3) { width: 14%; }
.bom-table th:nth-child(4) { width: 24%; }
.bom-table th:nth-child(5) { width: 10%; }
.artifact-table th:nth-child(1) { width: 34%; }
.artifact-table th:nth-child(2) { width: 21%; }
.artifact-table th:nth-child(3) { width: 16%; }
.artifact-table th:nth-child(4) { width: 14%; }
.artifact-table th:nth-child(5) { width: 15%; }
.row-actions { align-items: center; display: flex; gap: 5px; justify-content: flex-end; }
.row-actions-start { justify-content: flex-start; }
.row-actions button, .row-actions a { align-items: center; background: #fff; border: 1px solid var(--line-strong); border-radius: 4px; color: var(--ink); cursor: pointer; display: inline-flex; font-size: 12px; gap: 5px; min-height: 32px; padding: 0 9px; text-decoration: none; white-space: nowrap; }
.row-actions button:hover, .row-actions a:hover { background: #f5f7f8; }
.row-actions .approve { border-color: #96c5ad; color: var(--green); }
.row-actions .reject { border-color: #dbafab; color: var(--red); }
.row-actions svg { height: 14px; width: 14px; }
.document-placeholder { color: var(--subtle); font-size: 11px; white-space: nowrap; }
.bom-root { align-items: center; background: #f7f9fa; border: 1px solid var(--line); display: grid; gap: 11px; grid-template-columns: 40px minmax(0, 1fr) auto; margin-bottom: 12px; min-height: 64px; padding: 10px 13px; }
.bom-root > span { align-items: center; background: var(--primary-soft); border-radius: 4px; color: var(--primary); display: flex; height: 38px; justify-content: center; width: 38px; }
.bom-root svg { height: 18px; width: 18px; }
.bom-root small, .bom-root strong { display: block; }
.bom-root small { color: var(--muted); font-size: 11px; margin-bottom: 4px; }
.bom-root strong { font-size: 13px; }
.bom-root em { color: var(--muted); font-size: 11px; font-style: normal; }
.bom-context { align-items: center; background: #f7f9fa; border: 1px solid var(--line); display: grid; gap: 11px; grid-template-columns: 34px minmax(0, 1fr) auto; margin: -4px 0 12px; padding: 10px 12px; }
.bom-context > span { align-items: center; background: #e9eef0; border-radius: 50%; color: var(--muted); display: flex; height: 32px; justify-content: center; width: 32px; }
.bom-context > span svg { height: 16px; width: 16px; }
.bom-context strong, .bom-context small { display: block; }
.bom-context strong { font-size: 12px; }
.bom-context small { color: var(--muted); font-size: 11px; line-height: 1.45; margin-top: 3px; }
.bom-context.editable { background: var(--green-soft); border-color: #bedfce; }
.bom-context.editable > span { background: #d8eee3; color: var(--green); }
.bom-context.released { background: var(--blue-soft); border-color: #c8dce8; }
.bom-context.released > span { background: #dceaf2; color: var(--blue); }
.bom-context.review { background: var(--amber-soft); border-color: #ead7ad; }
.bom-context.review > span { background: #f4e4bf; color: var(--amber); }
.bom-version-note { color: var(--muted); display: block; font-size: 10px; margin-top: 4px; white-space: nowrap; }
.bom-link { align-items: center; background: transparent; border: 0; color: var(--ink); cursor: pointer; display: flex; gap: 9px; max-width: 100%; padding: 0; text-align: left; }
.bom-link > span:last-child { min-width: 0; }
.bom-link .tree-branch { color: #9aa7ad; font-family: monospace; font-size: 17px; width: 16px; }
.bom-link:hover strong { color: var(--primary); }
.where-used { border-top: 1px solid var(--line); margin-top: 17px; padding-top: 16px; }
.where-used > span { color: var(--muted); display: block; font-size: 12px; margin-bottom: 10px; }
.where-used-list { display: flex; flex-wrap: wrap; gap: 7px; }
.where-used-list > span { color: var(--subtle); font-size: 12px; }
.where-used-list button { background: #f3f6f7; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); cursor: pointer; min-height: 42px; padding: 6px 10px; text-align: left; }
.where-used-list button strong, .where-used-list button small { display: block; }
.where-used-list button strong { font-size: 12px; }
.where-used-list button small { color: var(--muted); font-size: 10px; margin-top: 3px; }
.detail-timeline { padding: 0 2px; }
.detail-timeline .timeline-item { padding: 12px 0; }

.data-section table { min-width: 980px; }
.data-section table th:nth-child(1) { width: 210px; }
.data-section table th:nth-child(2) { width: 150px; }
.data-section table th:nth-child(3) { width: 100px; }
.data-section table th:nth-child(4) { width: 160px; }
.data-section table th:nth-child(5) { width: 180px; }
.data-section table th:nth-child(6) { width: 140px; }
.data-section td { height: 70px; }
.data-section .workflow-table { min-width: 0; }
.data-section .workflow-table th:nth-child(1) { width: 32%; }
.data-section .workflow-table th:nth-child(2) { width: 27%; }
.data-section .workflow-table th:nth-child(3) { width: 14%; }
.data-section .workflow-table th:nth-child(4) { width: 27%; }
.workflow-table .row-actions { flex-wrap: wrap; }
.workflow-next { display: grid; gap: 8px; min-width: 0; }
.workflow-next-hint { align-items: flex-start; color: var(--muted); display: grid; font-size: 11px; gap: 6px; grid-template-columns: 15px minmax(0, 1fr); line-height: 1.45; }
.workflow-next-hint svg { height: 14px; margin-top: 1px; width: 14px; }
.workflow-next.ready .workflow-next-hint { color: var(--green); }
.workflow-next.attention .workflow-next-hint, .workflow-next.waiting .workflow-next-hint { color: var(--amber); }
.scope-count { align-items: center; color: var(--muted); display: inline-flex; font-size: 12px; gap: 6px; }
.scope-count svg { height: 15px; width: 15px; }
.release-scope { display: grid; gap: 15px; grid-column: 1 / -1; min-width: 0; }
.baseline-object { align-items: center; background: var(--surface-soft); border-left: 3px solid var(--green); display: grid; gap: 11px; grid-template-columns: 38px minmax(0, 1fr); padding: 11px 13px; }
.baseline-object > span { align-items: center; background: var(--green-soft); border-radius: 4px; color: var(--green); display: flex; height: 36px; justify-content: center; width: 36px; }
.baseline-object svg { height: 18px; width: 18px; }
.baseline-object small, .baseline-object strong, .baseline-object em { display: block; }
.baseline-object small { color: var(--muted); font-size: 10px; margin-bottom: 4px; }
.baseline-object strong { font-size: 13px; }
.baseline-object em { color: var(--green); font-size: 11px; font-style: normal; margin-top: 5px; }
.release-object-list { border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); }
.release-object-head, .release-object-row { align-items: center; display: grid; gap: 9px; grid-template-columns: minmax(0, 1fr) 76px 42px 58px; min-width: 0; padding: 0 10px; }
.release-object-head { background: var(--surface-soft); color: var(--muted); font-size: 10px; min-height: 32px; }
.release-object-row { min-height: 52px; }
.release-object-row + .release-object-row { border-top: 1px solid var(--line); }
.release-object-row > div { min-width: 0; }
.release-object-row strong, .release-object-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.release-object-row strong { font-size: 11px; }
.release-object-row small { color: var(--muted); font-size: 10px; margin-top: 4px; }
.release-object-row > span:not(.status) { color: var(--ink-soft); font-size: 12px; text-align: center; }
.baseline-note { align-items: flex-start; background: var(--blue-soft); color: var(--blue); display: grid; font-size: 11px; gap: 8px; grid-template-columns: 16px minmax(0, 1fr); line-height: 1.55; padding: 10px 11px; }
.baseline-note.has-lineage { background: var(--green-soft); color: var(--green); }
.baseline-note svg { height: 15px; margin-top: 1px; width: 15px; }
.release-download { align-items: center; background: var(--green-soft); display: flex; gap: 14px; justify-content: space-between; padding: 11px 12px; }
.release-download strong, .release-download span { display: block; }
.release-download strong { color: var(--green); font-size: 12px; }
.release-download > div > span { color: var(--muted); font-size: 10px; margin-top: 4px; }
.release-download .secondary-button { flex: 0 0 auto; }
.impact-inline { align-items: center; color: var(--ink); display: inline-flex; font-size: 12px; gap: 6px; }
.impact-inline svg { color: var(--primary); height: 15px; width: 15px; }

.change-impact { display: grid; gap: 15px; grid-column: 1 / -1; min-width: 0; }
.impact-object { align-items: center; background: var(--surface-soft); border-left: 3px solid var(--primary); display: grid; gap: 11px; grid-template-columns: 38px minmax(0, 1fr); padding: 11px 13px; }
.impact-object > span { align-items: center; background: var(--primary-soft); border-radius: 4px; color: var(--primary); display: flex; height: 36px; justify-content: center; width: 36px; }
.impact-object svg { height: 18px; width: 18px; }
.impact-object small, .impact-object strong, .impact-object em { display: block; }
.impact-object small { color: var(--muted); font-size: 10px; margin-bottom: 4px; }
.impact-object strong { font-size: 13px; }
.impact-object em { color: var(--primary); font-size: 11px; font-style: normal; margin-top: 5px; }
.impact-metrics { border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.impact-metrics > div { min-width: 0; padding: 11px 12px; }
.impact-metrics > div + div { border-left: 1px solid var(--line); }
.impact-metrics span, .impact-metrics small { color: var(--muted); display: block; font-size: 10px; }
.impact-metrics strong { display: block; font-size: 19px; margin: 5px 0 4px; }
.impact-metrics small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.impact-notices { display: grid; gap: 7px; }
.impact-notices > div { align-items: flex-start; background: var(--surface-soft); color: var(--ink-soft); display: grid; font-size: 11px; gap: 8px; grid-template-columns: 16px minmax(0, 1fr); line-height: 1.55; padding: 9px 11px; }
.impact-notices svg { height: 15px; margin-top: 1px; width: 15px; }
.impact-notices .attention { background: var(--amber-soft); color: var(--amber); }
.impact-notices .warning { background: var(--red-soft); color: var(--red); }
.impact-notices .positive { background: var(--green-soft); color: var(--green); }
.change-diff-panel { border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); }
.change-diff-panel > header { align-items: center; background: var(--surface-soft); display: flex; justify-content: space-between; min-height: 46px; padding: 8px 12px; }
.change-diff-panel > header strong, .change-diff-panel > header span { display: block; }
.change-diff-panel > header strong { font-size: 12px; }
.change-diff-panel > header span { color: var(--muted); font-size: 10px; margin-top: 3px; }
.change-diff-panel > header em { background: #e8eef0; border-radius: 3px; color: var(--ink-soft); font-size: 10px; font-style: normal; padding: 4px 7px; }
.change-diff-metrics { border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.change-diff-metrics > div { min-width: 0; padding: 9px 12px; }
.change-diff-metrics > div + div { border-left: 1px solid var(--line); }
.change-diff-metrics span, .change-diff-metrics small { color: var(--muted); font-size: 10px; }
.change-diff-metrics strong { font-size: 16px; margin: 0 6px; }
.change-diff-list { border-top: 1px solid var(--line); max-height: 280px; overflow-y: auto; }
.change-diff-row { align-items: center; display: grid; gap: 8px; grid-template-columns: 72px minmax(130px, .7fr) minmax(220px, 1.3fr); min-height: 46px; padding: 7px 11px; }
.change-diff-row + .change-diff-row { border-top: 1px solid var(--line); }
.change-diff-row > span { border-radius: 3px; font-size: 10px; font-weight: 700; justify-self: start; padding: 4px 6px; }
.change-diff-row.added > span { background: var(--green-soft); color: var(--green); }
.change-diff-row.removed > span { background: var(--red-soft); color: var(--red); }
.change-diff-row.modified > span { background: var(--amber-soft); color: var(--amber); }
.change-diff-row strong { font-size: 11px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.change-diff-row small { align-items: center; color: var(--muted); display: flex; font-size: 10px; gap: 6px; min-width: 0; }
.change-diff-row del, .change-diff-row ins { min-width: 0; overflow: hidden; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.change-diff-row del { color: var(--red); }
.change-diff-row ins { color: var(--green); }
.change-diff-row i { color: var(--subtle); flex: 0 0 auto; font-style: normal; }
.change-diff-empty { align-items: center; color: var(--muted); display: flex; font-size: 11px; gap: 7px; justify-content: center; min-height: 62px; }
.change-diff-empty svg { height: 15px; width: 15px; }
.change-diff-more { background: var(--surface-soft); color: var(--muted); font-size: 10px; padding: 8px 11px; text-align: center; }

.intelligence-summary { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 auto 20px; max-width: 1560px; }
.intelligence-summary > button { background: transparent; border: 0; color: var(--ink); cursor: pointer; font: inherit; min-width: 0; padding: 16px 20px; text-align: left; }
.intelligence-summary > button + button { border-left: 1px solid var(--line); }
.intelligence-summary > button:hover { background: var(--surface-hover); }
.intelligence-summary > button.is-active { background: #f2faf9; box-shadow: inset 0 -3px 0 var(--primary); }
.intelligence-summary span, .intelligence-summary small { color: var(--muted); display: block; }
.intelligence-summary span { font-size: 12px; }
.intelligence-summary strong { display: block; font-size: 24px; margin: 5px 0 3px; }
.intelligence-summary small { font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-empty-state { align-items: center; display: flex; flex-direction: column; gap: 8px; justify-content: center; min-height: 170px; padding: 22px; }
.task-empty-state strong { color: var(--ink); font-size: 14px; }
.task-empty-state > span { color: var(--muted); font-size: 12px; line-height: 1.6; }
.task-empty-state .secondary-button { margin-top: 4px; }
.task-search { align-items: center; background: #fff; border: 1px solid var(--line-strong); border-radius: 5px; color: var(--muted); display: flex; height: 40px; min-width: 250px; padding: 0 8px 0 11px; }
.task-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.task-search > svg { flex: 0 0 auto; height: 16px; width: 16px; }
.task-search input { background: transparent; border: 0; color: var(--ink); font-size: 13px; height: 38px; min-width: 0; outline: 0; padding: 0 8px; width: 100%; }
.task-search input::-webkit-search-cancel-button { display: none; }
.task-search button { align-items: center; background: transparent; border: 0; border-radius: 4px; color: var(--muted); cursor: pointer; display: flex; flex: 0 0 auto; height: 28px; justify-content: center; padding: 0; width: 28px; }
.task-search button:hover { background: var(--surface-hover); color: var(--ink); }
.task-search button svg { height: 15px; width: 15px; }
.task-list-toolbar { min-height: 52px; }
.data-section .smart-task-table { min-width: 0; }
.data-section .smart-task-table th:nth-child(1) { width: 30%; }
.data-section .smart-task-table th:nth-child(2) { width: 20%; }
.data-section .smart-task-table th:nth-child(3) { width: 31%; }
.data-section .smart-task-table th:nth-child(4) { width: 19%; }
.task-identity { align-items: center; display: flex; gap: 11px; min-width: 0; }
.task-identity > div { min-width: 0; }
.task-kind-icon { align-items: center; background: #eeeaf6; border: 1px solid #ddd5eb; border-radius: 4px; color: #67538b; display: flex; flex: 0 0 auto; height: 38px; justify-content: center; width: 38px; }
.task-kind-icon svg { height: 18px; width: 18px; }
.lineage-copy small { margin-top: 6px; }
.lineage-state { align-items: center; border-radius: 3px; display: inline-flex; font-size: 11px; font-weight: 700; gap: 6px; padding: 5px 8px; white-space: nowrap; }
.lineage-state.ready { background: var(--amber-soft); color: var(--amber); }
.lineage-state.linked { background: var(--blue-soft); color: var(--blue); }
.lineage-state.accepted { background: var(--green-soft); color: var(--green); }
.lineage-state svg { height: 13px; width: 13px; }
.smart-task-table td:nth-child(4) small { margin-top: 5px; }
.read-only-note { color: var(--muted); font-size: 12px; white-space: nowrap; }
.smart-next-step, .smart-next-step .row-actions { min-width: 0; }
.smart-next-step .row-actions { align-items: flex-start; flex-direction: column; }
.match-suggestion { align-items: flex-start; color: var(--blue); display: grid; font-size: 11px; gap: 6px; grid-template-columns: 14px minmax(0, 1fr); line-height: 1.35; max-width: 100%; }
.match-suggestion.high { color: var(--green); }
.match-suggestion svg { height: 13px; margin-top: 1px; width: 13px; }
.match-suggestion > span { min-width: 0; }
.match-suggestion small { color: var(--muted); display: block; font-size: 10px; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.modal { background: transparent; border: 0; max-height: calc(100vh - 36px); max-width: 620px; padding: 0; width: calc(100% - 28px); }
.modal::backdrop { background: rgba(5, 20, 29, .5); }
.modal form { background: #fff; border-radius: 7px; box-shadow: 0 22px 60px rgba(9, 24, 34, .24); display: flex; flex-direction: column; max-height: calc(100vh - 36px); overflow: hidden; }
.modal header { align-items: flex-start; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; padding: 20px 22px; }
.modal header p { color: var(--primary); font-size: 11px; font-weight: 700; margin: 0 0 6px; }
.modal header h2 { font-size: 19px; margin: 0; }
.modal-body { display: grid; gap: 15px; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow-y: auto; padding: 21px 22px 24px; }
.modal-body label { display: grid; gap: 7px; min-width: 0; }
.modal-body label.full { grid-column: 1 / -1; }
.modal-body label > span { color: var(--muted); font-size: 12px; font-weight: 650; }
.modal-body input, .modal-body select, .modal-body textarea { background: #fff; border: 1px solid var(--line-strong); border-radius: 5px; color: var(--ink); font-size: 13px; min-width: 0; padding: 0 11px; width: 100%; }
.modal-body input, .modal-body select { height: 42px; }
.modal-body textarea { line-height: 1.6; min-height: 96px; padding-bottom: 10px; padding-top: 10px; resize: vertical; }
.modal-body input[type="file"] { height: auto; padding: 11px; }
.modal-note { background: #f5f7f8; border-left: 3px solid var(--primary); color: var(--muted); font-size: 12px; grid-column: 1 / -1; line-height: 1.65; padding: 11px 13px; }
.modal-note.blocking { background: var(--red-soft); border-left-color: var(--red); color: var(--red); }
.modal-note.warning { background: var(--amber-soft); border-left-color: var(--amber); color: #80651b; }
.modal-note.positive { background: var(--green-soft); border-left-color: var(--green); color: var(--green); }
.search-document-options { display: grid; grid-column: 1 / -1; min-width: 0; }
.search-document-option { align-items: start; background: #fff; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); display: grid; gap: 10px; grid-template-columns: 18px minmax(0, 1fr) 16px; padding: 14px 8px; text-align: left; width: 100%; }
.search-document-option:hover, .search-document-option:focus-visible { background: var(--primary-soft); }
.search-document-option > svg { height: 17px; margin-top: 2px; width: 17px; }
.search-document-option > span { display: grid; gap: 5px; min-width: 0; overflow-wrap: anywhere; }
.search-document-option strong { font-size: 13px; }
.search-document-option span > span { font-size: 12px; }
.search-document-option small { color: var(--muted); font-size: 11px; line-height: 1.5; }
.project-inheritance { align-items: center; background: var(--primary-soft); color: var(--primary); display: grid; font-size: 12px; gap: 9px; grid-column: 1 / -1; grid-template-columns: 18px minmax(0, 1fr); line-height: 1.5; padding: 10px 12px; }
.project-inheritance.is-warning { background: var(--amber-soft); color: var(--amber); }
.project-inheritance svg { height: 17px; width: 17px; }
.project-inheritance strong { color: var(--ink); margin-left: 4px; }
.modal-inline-actions { display: flex; flex-wrap: wrap; gap: 8px; grid-column: 1 / -1; justify-content: flex-start; }
.import-template { align-items: center; display: flex; gap: 10px; grid-column: 1 / -1; justify-content: space-between; }
.import-template > span { color: var(--muted); font-size: 11px; }
.modal footer { align-items: center; background: #f8fafb; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; padding: 14px 22px; }
.toast { background: #172b35; border-radius: 5px; bottom: 22px; color: #fff; font-size: 13px; left: 50%; max-width: calc(100vw - 36px); padding: 12px 16px; position: fixed; transform: translateX(-50%); z-index: 100; }

@media (max-width: 1200px) {
  :root { --sidebar: 226px; }
  .topbar { padding: 0 22px; }
  .view { padding-left: 24px; padding-right: 24px; }
  #intelligence-view .page-heading { display: block; }
  #intelligence-view .heading-actions { flex-wrap: wrap; justify-content: flex-start; margin-top: 14px; }
  .metric-band > div { gap: 11px; padding-left: 14px; padding-right: 14px; }
  .metric-icon { height: 38px; width: 38px; }
  .product-list-head, .product-row { grid-template-columns: minmax(240px, 1fr) minmax(180px, .75fr) 105px 36px; }
  .workflow-shortcuts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .sidebar { box-shadow: 10px 0 30px rgba(8, 29, 45, .2); transform: translateX(-100%); transition: transform .2s ease; }
  .sidebar.is-open { transform: translateX(0); }
  .main-area { margin-left: 0; }
  .entry-context-inner { padding-left: 24px; padding-right: 24px; }
  .mobile-menu { display: inline-flex; }
  .account > span:last-child { display: none; }
  .overview-grid { grid-template-columns: 1fr; }
  .timeline { max-height: none; }
  .metric-band { grid-template-columns: repeat(2, 1fr); }
  .metric-band > div:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .metric-band > div:nth-child(4) { border-top: 1px solid var(--line); }
  [data-detail-pane="summary"].is-active { grid-template-columns: 1fr; }
  [data-detail-pane="summary"] .version-description { border-left: 0; }
  .mini-table { min-width: 600px; }
  .item-browser { background: transparent; border: 0; overflow: visible; }
  .item-browser .list-toolbar { background: transparent; border: 0; min-height: 36px; padding: 0 0 10px; }
  .item-browser .table-wrap { overflow: visible; }
  .item-table { display: block; min-width: 0; }
  .item-table thead { display: none; }
  .item-table tbody { display: grid; gap: 10px; }
  .item-table tr { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); overflow: hidden; position: relative; width: 100%; }
  .item-table td { border: 0; height: auto; min-width: 0; padding: 10px 12px; }
  .item-table td:nth-child(1) { border-bottom: 1px solid var(--line); grid-column: 1 / -1; padding-bottom: 12px; padding-right: 52px; padding-top: 12px; }
  .item-table td:nth-child(2), .item-table td:nth-child(3), .item-table td:nth-child(4) { grid-column: span 2; }
  .item-table td:nth-child(5), .item-table td:nth-child(7) { grid-column: span 2; }
  .item-table td:nth-child(6), .item-table td:nth-child(8) { grid-column: span 4; }
  .item-table td:nth-child(5), .item-table td:nth-child(6), .item-table td:nth-child(7), .item-table td:nth-child(8) { background: #f8fafb; border-top: 1px solid var(--line); }
  .item-table td:nth-child(6), .item-table td:nth-child(8) { border-left: 1px solid var(--line); }
  .item-table td[data-label] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .item-table td[data-label]::before { color: var(--muted); content: attr(data-label); display: block; font-size: 10px; font-weight: 650; margin-bottom: 5px; }
  .item-table td:nth-child(9) { padding: 0; position: absolute; right: 10px; top: 14px; }
  .item-table td:nth-child(9) .row-open { height: 32px; width: 32px; }
  .item-table .empty-item-row { display: block; }
  .item-table .empty-item-row .empty-row { background: var(--surface); display: block; min-height: 130px; padding-top: 52px; width: 100%; }
  .smart-task-section { background: transparent; border: 0; overflow: visible; }
  .smart-task-section .task-list-toolbar { background: transparent; border: 0; min-height: 36px; padding: 0 0 10px; }
  .smart-task-section .table-wrap { overflow: visible; }
  .smart-task-table { display: block; min-width: 0 !important; }
  .smart-task-table thead { display: none; }
  .smart-task-table tbody { display: grid; gap: 10px; }
  .smart-task-table tr { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; width: 100%; }
  .smart-task-table td { border: 0; height: auto; min-width: 0; padding: 10px 13px; }
  .smart-task-table td:nth-child(1) { border-bottom: 1px solid var(--line); grid-column: 1 / -1; padding-bottom: 12px; padding-top: 12px; }
  .smart-task-table td:nth-child(2) { grid-column: 1 / -1; padding-bottom: 4px; }
  .smart-task-table td:nth-child(3) { grid-column: 1 / -1; padding-top: 4px; }
  .smart-task-table td:nth-child(4) { background: #f8fafb; border-top: 1px solid var(--line); grid-column: 1 / -1; overflow: hidden; }
  .smart-task-table td[data-label]::before { color: var(--muted); content: attr(data-label); display: block; font-size: 10px; font-weight: 650; margin-bottom: 5px; }
  .smart-task-table .lineage-copy { align-items: center; display: flex; gap: 8px; min-width: 0; }
  .smart-task-table .lineage-copy small { margin-top: 0; }
  .smart-task-table .smart-next-step .row-actions { align-items: center; flex-direction: row; flex-wrap: wrap; }
  .smart-task-table .match-suggestion { flex: 1 0 100%; }
  .smart-task-table .empty-task-row { display: block; }
  .smart-task-table .empty-task-row .empty-row { background: var(--surface); display: block; min-height: 130px; padding: 0; width: 100%; }
  .workflow-section { background: transparent; border: 0; overflow: visible; }
  .workflow-section .table-wrap { overflow: visible; }
  .workflow-table { display: block; min-width: 0 !important; }
  .workflow-table thead { display: none; }
  .workflow-table tbody { display: grid; gap: 10px; }
  .workflow-table tr { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; width: 100%; }
  .workflow-table td { border: 0; height: auto; min-width: 0; padding: 10px 13px; }
  .workflow-table td:nth-child(1) { border-bottom: 1px solid var(--line); grid-column: 1 / -1; padding-bottom: 12px; padding-top: 12px; }
  .workflow-table td:nth-child(2), .workflow-table td:nth-child(3), .workflow-table td:nth-child(4) { grid-column: 1 / -1; }
  .workflow-table td:nth-child(3) { padding-bottom: 4px; }
  .workflow-table td:nth-child(4) { padding-top: 4px; }
  .workflow-table td:nth-child(4) { background: #f8fafb; border-top: 1px solid var(--line); overflow: hidden; }
  .workflow-table td[data-label]::before { color: var(--muted); content: attr(data-label); display: block; font-size: 10px; font-weight: 650; margin-bottom: 5px; }
  .workflow-table .row-actions { flex-wrap: wrap; }
  .workflow-table tr:has(.empty-row) { display: block; }
  .workflow-table .empty-row { background: var(--surface); display: block; min-height: 130px; padding-top: 52px; width: 100%; }
}

@media (max-width: 680px) {
  .topbar { gap: 7px; height: 60px; padding: 0 12px; }
  .global-search { min-width: 0; }
  .global-search kbd, #refresh-button, .account { display: none; }
  .topbar-actions { gap: 3px; }
  .entry-context-inner { align-items: start; gap: 9px; grid-template-columns: 34px minmax(0, 1fr); padding: 10px 14px 11px; }
  .entry-context-icon { height: 34px; width: 34px; }
  .entry-context-copy > span { white-space: normal; }
  .entry-context-actions { grid-column: 2; justify-content: flex-start; }
  .context-state, .entry-context-actions .secondary-button span { display: none; }
  .entry-context-actions .secondary-button { min-height: 32px; padding: 0; width: 32px; }
  .entry-context-actions .text-button { min-height: 32px; }
  #archive-cad-button { height: 38px; padding: 0; width: 38px; }
  #archive-cad-button span { display: none; }
  .view { min-height: calc(100vh - 60px); padding: 22px 14px 38px; }
  .page-heading { align-items: flex-start; gap: 14px; margin-bottom: 20px; }
  .page-heading h1 { font-size: 23px; }
  .page-heading > .secondary-button span { display: none; }
  .page-heading > .secondary-button { padding: 0; width: 40px; }
  .metric-band > div { gap: 9px; padding: 14px 12px; }
  .metric-icon { height: 34px; width: 34px; }
  .metric-icon svg { height: 17px; width: 17px; }
  .metric-band strong { font-size: 22px; }
  .metric-band span:not(.metric-icon) { font-size: 11px; }
  .metric-band small { font-size: 10px; }
  .workflow-launcher { margin-bottom: 20px; }
  .workflow-launcher .section-heading { min-height: 58px; }
  .workflow-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workflow-shortcut { gap: 7px; grid-template-columns: 30px minmax(0, 1fr) 12px; min-height: 72px; padding: 9px 10px; }
  .workflow-rank { display: none; }
  .workflow-icon { height: 30px; width: 30px; }
  .workflow-copy > strong { font-size: 11px; white-space: normal; }
  .workflow-copy small, .workflow-copy em { font-size: 9px; }
  .compact-heading { align-items: flex-end; }
  .heading-actions { gap: 6px; }
  .heading-actions select { max-width: 126px; }
  .heading-actions .primary-button span { display: none; }
  .heading-actions .primary-button { padding: 0; width: 40px; }
  #intelligence-view .page-heading { display: block; }
  #intelligence-view .heading-actions { flex-wrap: wrap; justify-content: flex-start; margin-top: 14px; width: 100%; }
  #intelligence-view .task-search { flex: 1 0 100%; min-width: 0; order: -1; width: 100%; }
  #intelligence-view .heading-actions select { flex: 1 1 auto; max-width: none; min-width: 0; }
  #intelligence-view .heading-actions a { padding: 0; width: 40px; }
  #intelligence-view .heading-actions a span { display: none; }
  .intelligence-summary > button { padding: 13px 11px; }
  .intelligence-summary strong { font-size: 21px; }
  .intelligence-summary small { font-size: 10px; }
  .pending-item { grid-template-columns: 36px minmax(0, 1fr) auto; padding-left: 13px; padding-right: 13px; }
  .pending-icon { height: 34px; width: 34px; }
  .pending-item button { font-size: 12px; padding: 0 8px; }
  .product-list-head { display: none; }
  .product-row { gap: 10px; grid-template-columns: minmax(0, 1fr) 88px 32px; padding-left: 13px; padding-right: 13px; }
  .structure-meter { display: none; }
  .list-toolbar { align-items: flex-start; display: grid; gap: 6px; padding-bottom: 11px; padding-top: 11px; }
  .list-toolbar > span { font-size: 11px; }
  #items-view.is-detailing { padding-left: 0; padding-right: 0; padding-top: 0; }
  #items-view.is-detailing .item-detail { border-left: 0; border-radius: 0; border-right: 0; }
  .detail-breadcrumb { padding: 0 14px; }
  .detail-head { padding: 20px 16px 18px; }
  .detail-head-top { display: block; }
  .object-title { gap: 12px; }
  .object-visual { height: 52px; width: 52px; }
  .object-visual svg { height: 24px; width: 24px; }
  .detail-head h2 { font-size: 22px; }
  .detail-actions { justify-content: flex-start; margin-top: 18px; }
  .detail-actions .secondary-button, .detail-actions .primary-button { font-size: 12px; padding: 0 10px; }
  .detail-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 18px; }
  .detail-facts > div + div { border-left: 0; }
  .detail-facts > div:nth-child(even) { border-left: 1px solid var(--line); }
  .detail-facts > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .detail-tabs { padding: 0 8px; }
  .detail-tabs button { padding: 0 10px; }
  .detail-section { padding: 20px 16px; }
  .readiness-checklist { grid-template-columns: 1fr; }
  .readiness-check { border-left: 0 !important; }
  .readiness-check + .readiness-check { border-top: 1px solid var(--line); }
  .impact-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .impact-metrics > div:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .impact-metrics > div:nth-child(4) { border-top: 1px solid var(--line); }
  .change-diff-row { align-items: flex-start; grid-template-columns: 68px minmax(0, 1fr); }
  .change-diff-row small { grid-column: 1 / -1; }
  .release-object-head, .release-object-row { grid-template-columns: minmax(0, 1fr) 68px 38px 52px; padding-left: 8px; padding-right: 8px; }
  .release-object-row .status { font-size: 10px; padding-left: 6px; padding-right: 6px; }
  .release-download { align-items: stretch; flex-direction: column; }
  .release-download .secondary-button { align-self: flex-start; }
  .attribute-list { grid-template-columns: 1fr; }
  .attribute-list div:nth-child(odd), .attribute-list div:nth-child(even) { border-left: 0; padding-left: 0; padding-right: 0; }
  .bom-root { grid-template-columns: 38px minmax(0, 1fr); }
  .bom-root em { display: none; }
  .bom-context { align-items: start; grid-template-columns: 32px minmax(0, 1fr); }
  .bom-context .secondary-button { grid-column: 2; justify-self: start; }
  .data-section table { min-width: 900px; }
  .modal-body { grid-template-columns: 1fr; }
  .modal-body label.full, .modal-note, .project-inheritance { grid-column: 1; }
  .import-template { align-items: flex-start; flex-direction: column; grid-column: 1; }
}

.revision-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 12px 24px; border-bottom: 1px solid var(--line); background: #f5f8f7; }
.revision-toolbar label { font-size: 12px; color: #485754; }
.revision-toolbar select, #pending-mode { background: #fff; border: 1px solid #cbd5d0; border-radius: 4px; color: #263d35; padding: 7px 10px; font: inherit; font-size: 12px; max-width: 100%; min-width: 0; }
.revision-context { font-size: 12px; color: #426956; }
.revision-context.is-draft { color: #935f12; }
.revision-toolbar > .icon-button { margin-left: auto; flex: 0 0 36px; }
.version-history .text-button { min-height: 32px; }
.pending-copy > strong { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pending-list { max-height: 480px; overflow-y: auto; }
.pending-copy small { color: #697770; font-size: 11px; }
.pending-copy .status { font-size: 10px; }
.form-error { background: #fff4f3; border-top: 1px solid #efd3cd; color: #8c352e; padding: 14px 24px; font-size: 13px; overflow-wrap: anywhere; }
.form-error p { margin: 7px 0; }
.form-error strong { display: block; }
.form-error button { margin-top: 8px; }
.form-error:has(#unconfirmed-results) { flex-shrink: 0; max-height: 45vh; overflow-y: auto; }
.unconfirmed-records { color: var(--ink); font-size: 12px; line-height: 1.6; padding-top: 12px; }
.unconfirmed-records ul { padding-left: 18px; }
.unconfirmed-records li + li { margin-top: 6px; }
.import-preview, .archive-files, .review-handoff { grid-column: 1 / -1; min-width: 0; width: 100%; font-size: 13px; }
.import-preview { border-top: 1px solid var(--line); padding-top: 14px; }
.import-preview > strong { display: block; margin-bottom: 12px; color: #326248; }
.import-preview .table-wrap { max-height: 280px; overflow: auto; }
.import-preview p, .archive-files > p { color: #697770; margin: 10px 0 0; }
.import-warning { grid-column: 1 / -1; margin: 0; padding: 10px 12px; border-left: 3px solid #c99335; background: #fff8e9; color: #745318; font-size: 12px; overflow-wrap: anywhere; }
.archive-files > strong { display: block; padding: 10px 0; }
.modal-body .archive-file { display: flex; flex-direction: row; align-items: flex-start; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.modal-body .archive-file input { height: 18px; width: 18px; min-height: 18px; flex: 0 0 18px; margin: 0; accent-color: #28754f; }
.archive-file > span { min-width: 0; overflow-wrap: anywhere; }
.archive-file small { display: block; margin-top: 4px; color: #697770; }
.review-handoff { border-top: 1px solid var(--line); padding-top: 10px; }
.review-documents { margin: 10px 0; }
.review-documents > div { border-bottom: 1px solid var(--line); padding: 8px 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.review-documents button { max-width: 100%; white-space: normal; text-align: left; overflow-wrap: anywhere; }
.review-documents svg { flex: 0 0 16px; }
.preview-dialog { border: 1px solid #cad3ce; border-radius: 6px; padding: 0; color: #243c32; background: #fff; width: min(1120px, calc(100vw - 32px)); max-width: calc(100vw - 32px); height: min(850px, calc(100dvh - 40px)); max-height: calc(100dvh - 40px); overflow: hidden; }
.preview-dialog[open] { display: grid; grid-template-rows: auto auto minmax(0, 1fr); }
.preview-dialog::backdrop { background: rgb(20 30 25 / 42%); }
.preview-dialog > header { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.preview-dialog > header > div { min-width: 0; }
.preview-dialog > header > div:first-child { flex: 1; }
.preview-documents { display: flex; align-items: center; gap: 4px; margin-top: 10px; max-width: 600px; }
.preview-documents[hidden], .preview-notice[hidden] { display: none; }
.preview-documents .icon-button { flex: 0 0 30px; width: 30px; height: 32px; }
.preview-documents select { flex: 1; min-width: 0; width: 0; max-width: 100%; height: 32px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: #31483f; padding: 4px 6px; font-size: 12px; text-overflow: ellipsis; }
.preview-documents span { flex: 0 0 36px; text-align: center; font-size: 11px; font-variant-numeric: tabular-nums; }
.preview-documents button:disabled { opacity: .4; cursor: not-allowed; }
.preview-notice { margin-top: 8px; border-left: 3px solid #b74636; background: #fff3ef; color: #923e31; padding: 8px 10px; font-size: 12px; overflow-wrap: anywhere; }
.preview-dialog h2 { margin: 0; font-size: 17px; line-height: 1.4; overflow-wrap: anywhere; }
.preview-dialog header p { margin: 6px 0 0; font-size: 12px; color: #697770; overflow-wrap: anywhere; }
.preview-dialog header > button { flex: 0 0 36px; }
.preview-toolbar { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 16px; border-bottom: 1px solid var(--line); }
#preview-zoom-tools { display: flex; align-items: center; gap: 4px; }
#preview-zoom-tools[hidden] { display: none; }
#preview-scale { width: 46px; text-align: center; font-size: 12px; font-variant-numeric: tabular-nums; }
.preview-stage { overflow: auto; background: #edf1ef; position: relative; min-height: 0; overscroll-behavior: contain; }
.preview-image-surface { min-width: 100%; min-height: 100%; width: max-content; display: grid; place-items: center; padding: 16px; }
.preview-stage img { display: block; max-width: none; height: auto; background: #fff; cursor: grab; user-select: none; touch-action: none; }
.preview-stage img:active { cursor: grabbing; }
.preview-stage iframe { display: block; width: 100%; height: 100%; border: 0; background: #fff; }
.preview-stage .empty-state { min-height: 220px; max-width: 100%; padding: 24px; overflow-wrap: anywhere; }
.preview-stage .empty-state > span { white-space: normal; }
.preview-toolbar { flex-wrap: wrap; }
#preview-model-tools, #preview-pdf-tools { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; min-width: 0; }
#preview-model-tools[hidden], #preview-pdf-tools[hidden] { display: none; }
#preview-model-tools select { width: 96px; height: 34px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 4px; background: white; color: #31483f; font-size: 12px; }
#preview-pdf-tools input { width: 52px; height: 32px; border: 1px solid var(--line); border-radius: 4px; text-align: center; font-size: 12px; padding: 3px; }
#preview-pdf-tools span { font-size: 12px; min-width: 32px; }
.preview-toolbar > a { margin-left: auto; }
.preview-stage.is-3d { overflow: hidden; background: #f0f2f4; }
.step-viewer { width: 100%; height: 100%; position: relative; display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.step-canvas { min-height: 0; min-width: 0; overflow: hidden; }
.step-canvas canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.step-status { position: relative; font-size: 11px; line-height: 1.6; padding: 6px 12px; border-top: 1px solid #d8dfe3; background: #f7f8f9; color: #54656e; overflow-wrap: anywhere; }
.step-components { position: absolute; top: 0; left: 0; bottom: 44px; width: 206px; max-width: 60%; background: rgb(255 255 255 / 97%); border-right: 1px solid #d8dfe3; border-bottom: 1px solid #d8dfe3; overflow: auto; }
.step-components[hidden] { display: none; }
.step-components > header { display: flex; justify-content: space-between; align-items: center; padding: 7px 9px; border-bottom: 1px solid var(--line); font-size: 12px; position: sticky; top: 0; background: white; }
.step-components > header > div { display: flex; }
.step-body-row { display: flex; align-items: center; min-height: 36px; gap: 7px; padding: 2px 10px; }
.step-body-row input { accent-color: #3b677f; flex: 0 0 16px; width: 16px; height: 16px; }
.step-body-row button { flex: 1; min-width: 0; text-align: left; border: 0; background: transparent; color: #344e5b; padding: 7px 2px; font-size: 12px; overflow-wrap: anywhere; }
.step-body-row.is-selected { background: #e7eff4; }
.step-components button:disabled, .preview-toolbar button:disabled { opacity: .4; cursor: not-allowed; }
@media (max-width: 600px) {
  .detail-pane .document-table { display: block; width: 100%; min-width: 0; }
  .document-table thead { display: none; }
  .document-table tbody { display: block; }
  .document-table tr { display: grid; grid-template-columns: 1fr 1fr 1fr; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .document-table td { min-width: 0; height: auto; padding: 6px 4px; border: 0; white-space: normal; }
  .document-table td:first-child { grid-column: 1 / -1; padding-bottom: 10px; }
  .document-table td strong, .document-table td small { white-space: normal; overflow-wrap: anywhere; overflow: visible; text-overflow: clip; }
  .document-table td:nth-child(2)::before { content: "文档版 "; color: #697770; }
  .document-table td:nth-child(4) { text-align: right; }
  .document-table td:last-child { position: static; grid-column: 1 / -1; background: transparent; box-shadow: none; padding-top: 8px; }
  .document-table td:last-child .row-actions { justify-content: flex-end; }
  .document-table td.empty-row { text-align: center; }
  .revision-toolbar { gap: 8px; padding: 12px 16px; }
  .revision-toolbar select { flex: 1 1 180px; }
  .revision-context { order: 2; flex: 1 1 100%; }
  .preview-dialog { width: calc(100vw - 16px); max-width: calc(100vw - 16px); height: calc(100dvh - 20px); max-height: calc(100dvh - 20px); }
  .preview-dialog > header { padding: 12px; }
  .preview-toolbar { padding: 7px 10px; gap: 5px; }
  .preview-toolbar .secondary-button { width: 36px; min-width: 36px; padding: 0; }
  .preview-toolbar .secondary-button span { display: none; }
  .form-error { padding: 12px 16px; }
}
