:root {
  --ink: #252b31;
  --ink-2: #424b54;
  --muted: #626c75;
  --line: #dfe3e7;
  --line-strong: #aeb7bf;
  --surface: #ffffff;
  --surface-2: #f6f7f8;
  --canvas: #eef1f3;
  --red: #e60012;
  --red-dark: #bd0010;
  --red-soft: #fff0f1;
  --teal: #087a6f;
  --teal-soft: #e8f6f3;
  --amber: #9a6500;
  --amber-soft: #fff7e5;
  --blue: #316a9e;
  --blue-soft: #edf5fb;
  --danger: #b62d2d;
  --radius: 8px;
  --shadow: 0 16px 42px rgba(28, 35, 41, 0.12);
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  font-synthesis: none;
}

/* Shared opportunity workbench, field evidence and follow-up tasks. */
.workbench-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 20px; }
.workbench-scope-note { margin: 0 0 10px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.workbench-summary-card { display: grid; grid-template-columns: 1fr auto; gap: 8px; min-width: 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 8px; background: #fff; text-align: left; cursor: pointer; }
.workbench-summary-card:hover, .workbench-summary-card:focus-visible { border-color: var(--blue); background: var(--blue-soft); }
.workbench-summary-card > span { font-size: 13px; font-weight: 650; }
.workbench-summary-card > strong { font-size: 24px; line-height: 1; color: var(--blue); }
.workbench-summary-card > small { grid-column: 1 / -1; font-size: 11px; color: var(--muted); line-height: 1.5; }
.participation-pill { display: inline-block; width: fit-content; max-width: 100%; margin: 6px 0 3px; padding: 4px 7px; border-radius: 4px; background: var(--amber-soft); color: var(--amber); font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.participation-pill.open { background: var(--teal-soft); color: var(--teal); }
.participation-pill.closed { background: var(--surface-2); color: var(--muted); }
.task-date { display: block; margin-top: 7px; color: var(--blue); font-size: 11px; line-height: 1.5; }
.task-date.overdue { color: var(--danger); font-weight: 650; }
.task-date.due { color: var(--amber); font-weight: 650; }
.task-date.closed { color: var(--muted); }
.tag.run-new { background: var(--teal-soft); color: var(--teal); }
.tag.run-updated { background: var(--blue-soft); color: var(--blue); }
.due-task-panel { margin-bottom: 20px; }
.notification-event { display: inline-block; width: fit-content; margin-bottom: 5px; padding: 3px 6px; border-radius: 4px; color: var(--blue); background: var(--blue-soft); font-size: 11px; }
.spec-parse-warning p, .spec-parse-warning li { margin: 8px 0; line-height: 1.7; }
.spec-parse-warning details, .tracking-history { margin-top: 12px; }
.spec-parse-warning summary, .tracking-history > summary { cursor: pointer; padding: 10px 0; font-size: 13px; font-weight: 650; }
.parse-complete { color: var(--teal); font-size: 12px; line-height: 1.6; }
.unresolved-row { border-top: 1px solid #e8c784; padding: 10px 0; overflow-wrap: anywhere; }
.unresolved-row p { white-space: pre-wrap; }
.field-evidence { margin-top: 9px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.field-evidence.has-conflict { border-color: #ddb465; }
.field-evidence > summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 48px; padding: 12px; background: var(--surface-2); cursor: pointer; font-size: 13px; }
.field-evidence > summary::before { content: "+"; color: var(--blue); font-weight: 700; }
.field-evidence[open] > summary::before { content: "−"; }
.field-evidence > summary > span { flex: 1; }
.field-evidence > summary > b { font-size: 11px; color: var(--muted); }
.field-evidence-body { padding: 12px 14px; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.field-evidence-body dl { margin: 10px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.field-evidence-body dt { color: var(--muted); font-size: 11px; }
.field-evidence-body dd { margin: 3px 0 0; }
.field-evidence-body blockquote { margin: 12px 0; padding: 10px 12px; background: var(--surface-2); border-left: 3px solid var(--blue); white-space: pre-wrap; }
.evidence-value { margin: 0; font-weight: 650; white-space: pre-wrap; }
.evidence-conflict { color: var(--amber); }
.tracking-form small { color: var(--muted); font-size: 11px; line-height: 1.5; }
.tracking-history .revision-change { overflow-wrap: anywhere; }
.rule-preview-results { margin-top: 18px; padding: 14px; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.rule-preview-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.rule-preview-heading h4 { margin: 0; }
.rule-preview-heading > span { color: var(--muted); font-size: 12px; }
.rule-preview-row { padding: 12px 0; border-top: 1px solid var(--line); }
.rule-preview-row p { margin: 5px 0; }
.rule-preview-row small { color: var(--muted); }
.resolution-card { margin-top: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 6px; background: #fafbfc; overflow-wrap: anywhere; }
.resolution-card h4 { margin: 0 0 12px; font-size: 14px; }
.resolution-card > p { font-size: 12px; line-height: 1.7; }
.resolution-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.resolution-form .wide { grid-column: 1 / -1; }
.resolution-form small { color: var(--muted); line-height: 1.6; font-size: 11px; }
.mobile-detail-close { display: none; }

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); }
body { min-width: 320px; min-height: 100vh; margin: 0; overflow-x: hidden; background: var(--canvas); color: var(--ink); }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(49, 106, 158, 0.22); outline-offset: 2px; }
button:disabled { cursor: not-allowed; opacity: 0.5; }
.hidden { display: none !important; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.app { min-height: 100vh; }
.app.is-loading .app-header, .app.is-loading .main-shell { visibility: hidden; }
.app.is-authenticating > :not(.startup-state) { visibility: hidden; }

.app-header {
  position: sticky;
  z-index: 80;
  top: 0;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto minmax(260px, 1fr);
  align-items: center;
  min-height: 72px;
  padding: 0 32px;
  border-bottom: 1px solid rgba(255,255,255,.09);
  background: #252b31;
  color: #fff;
  box-shadow: 0 5px 18px rgba(20, 25, 29, .16);
}
.brand { display: flex; align-items: center; min-width: 0; gap: 13px; }
.brand-mark, .startup-mark { display: grid; place-items: center; flex: 0 0 auto; width: 40px; height: 40px; border-radius: 6px; background: var(--red); color: #fff; font-family: SimHei, "Microsoft YaHei", sans-serif; font-size: 22px; font-weight: 800; }
.brand-copy { min-width: 0; }
.brand h1 { overflow: hidden; margin: 0; font-size: 17px; font-weight: 650; letter-spacing: .02em; text-overflow: ellipsis; white-space: nowrap; }
.brand p { display: flex; align-items: center; gap: 7px; overflow: hidden; margin: 4px 0 0; color: #abb3ba; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.status-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: #98a1a9; box-shadow: 0 0 0 3px rgba(152,161,169,.12); }
.status-dot.online { background: #4dc4a8; box-shadow: 0 0 0 3px rgba(77,196,168,.14); }
.status-dot.running { background: #ffc65b; box-shadow: 0 0 0 3px rgba(255,198,91,.14); animation: pulse 1.4s infinite; }
.status-dot.failed { background: #ff7979; box-shadow: 0 0 0 3px rgba(255,121,121,.14); }

.primary-nav { align-self: stretch; display: flex; align-items: stretch; justify-content: center; gap: 4px; }
.nav-item { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 112px; padding: 0 18px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: #b8c0c7; cursor: pointer; font-size: 14px; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.04); }
.nav-item.active { border-bottom-color: var(--red); color: #fff; }
.nav-item svg { width: 17px; height: 17px; }
.nav-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #59636d; color: #fff; font-size: 10px; line-height: 1; }
.nav-badge.alert { background: var(--red); }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; margin: 0; padding: 0; border: 1px solid rgba(255,255,255,.16); border-radius: 6px; background: transparent; color: inherit; cursor: pointer; }
.icon-btn:hover { background: rgba(255,255,255,.08); }
.icon-btn.primary { border-color: var(--red); background: var(--red); }
.icon-btn.primary:hover { background: var(--red-dark); }
.icon-btn svg { width: 17px; height: 17px; }
.user-chip { display: flex; align-items: center; min-width: 0; margin-left: 4px; padding-left: 13px; border-left: 1px solid rgba(255,255,255,.13); gap: 9px; }
.user-chip > span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #424b54; color: #fff; font-size: 13px; font-weight: 700; }
.user-chip div { display: grid; min-width: 0; }
.user-chip strong { overflow: hidden; max-width: 100px; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.user-chip small { margin-top: 2px; color: #aab2b9; font-size: 10px; }

.main-shell { width: min(1560px, 100%); margin: 0 auto; padding: 32px 36px 56px; }
.view { display: none; }
.view.active { display: block; animation: fade-in .22s ease-out; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 24px; }
.page-heading h2 { margin: 3px 0 0; color: var(--ink); font-size: clamp(24px, 2.2vw, 34px); font-weight: 720; letter-spacing: -.03em; }
.eyebrow { margin: 0; color: var(--red); font-size: 11px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.heading-subtitle { margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.heading-aside { display: flex; align-items: center; gap: 18px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.text-btn { display: inline-flex; align-items: center; gap: 7px; margin: 0; padding: 0; border: 0; background: transparent; color: var(--blue); cursor: pointer; font-size: 12px; font-weight: 650; }
.text-btn:hover { color: #1d527f; }
.text-btn svg { width: 14px; height: 14px; }

.metric-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 20px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 3px 12px rgba(29,36,42,.04); }
.metric-card { position: relative; display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: center; min-height: 112px; padding: 20px; border: 0; border-right: 1px solid var(--line); background: var(--surface); text-align: left; cursor: pointer; gap: 13px; }
.metric-card:last-child { border-right: 0; }
.metric-card:hover { background: #fafbfb; }
.metric-card.active::after { position: absolute; right: 18px; bottom: 0; left: 18px; height: 3px; background: var(--red); content: ""; }
.metric-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 8px; }
.metric-icon svg { width: 20px; height: 20px; }
.metric-icon.slate { background: #eef1f3; color: #4b5660; }
.metric-icon.red { background: var(--red-soft); color: var(--red); }
.metric-icon.teal { background: var(--teal-soft); color: var(--teal); }
.metric-icon.amber { background: var(--amber-soft); color: var(--amber); }
.metric-icon.blue { background: var(--blue-soft); color: var(--blue); }
.metric-card div { display: grid; min-width: 0; }
.metric-card small { color: var(--muted); font-size: 11px; }
.metric-card strong { margin-top: 3px; font-size: 27px; line-height: 1; font-variant-numeric: tabular-nums; }
.metric-card em { overflow: hidden; margin-top: 7px; color: #68727b; font-size: 10px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }

.workspace-card, .panel, .admin-content > .admin-panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 4px 14px rgba(29,36,42,.04); }
.workspace-toolbar { display: flex; align-items: center; justify-content: space-between; min-height: 72px; padding: 14px 18px; border-bottom: 1px solid var(--line); gap: 20px; }
.segmented { display: flex; align-items: stretch; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 6px; }
.segmented button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 0 15px; border: 0; border-right: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2); cursor: pointer; font-size: 12px; font-weight: 620; white-space: nowrap; }
.segmented button:last-child { border-right: 0; }
.segmented button.active { background: var(--ink); color: #fff; }
.segmented b { display: inline-grid; place-items: center; min-width: 23px; height: 19px; padding: 0 5px; border-radius: 10px; background: #eef1f3; color: #65707a; font-size: 9px; }
.segmented .active b { background: rgba(255,255,255,.15); color: #fff; }
.toolbar-right { display: flex; align-items: center; justify-content: flex-end; min-width: 0; gap: 9px; }
.search-box { display: flex; align-items: center; width: min(360px, 30vw); height: 40px; padding: 0 11px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); color: #8a929a; gap: 8px; }
.search-box:focus-within { border-color: #8aa9c3; box-shadow: 0 0 0 3px rgba(49,106,158,.09); }
.search-box svg { width: 16px; height: 16px; flex: 0 0 auto; }
.search-box input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 12px; }
.search-box input::placeholder { color: #707a83; }
.clear-input { width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: #e9ecef; color: #68727b; cursor: pointer; line-height: 18px; }
.filter-btn, .sort-box { display: flex; align-items: center; height: 40px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); color: var(--ink-2); }
.filter-btn { position: relative; padding: 0 12px; cursor: pointer; gap: 7px; font-size: 12px; }
.filter-btn.active { border-color: var(--red); color: var(--red); }
.filter-btn svg { width: 15px; height: 15px; }
.filter-btn b { display: grid; place-items: center; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--red); color: #fff; font-size: 9px; }
.sort-box { padding-left: 10px; font-size: 11px; gap: 6px; }
.sort-box span { color: var(--muted); }
.sort-box select { height: 38px; padding: 0 25px 0 2px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 11px; }
.quick-filter-row { display: flex; align-items: center; flex-wrap: wrap; padding: 12px 18px; border-bottom: 1px solid var(--line); gap: 8px; }
.quick-filter-row button { min-height: 30px; padding: 0 12px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); color: #5a646d; cursor: pointer; font-size: 11px; }
.quick-filter-row button:hover { border-color: #abb3ba; }
.quick-filter-row button.active { border-color: var(--ink); background: var(--ink); color: #fff; }
.advanced-filters { display: grid; grid-template-columns: repeat(6, minmax(120px, 1fr)); padding: 18px; border-bottom: 1px solid var(--line); background: #fafbfb; gap: 13px; }
.advanced-filters label { display: grid; min-width: 0; gap: 6px; }
.advanced-filters fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.advanced-filters label > span { color: var(--muted); font-size: 10px; }
.advanced-filters select, .advanced-filters input, .form-control { width: 100%; min-width: 0; height: 38px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 5px; background: #fff; color: var(--ink); font-size: 11px; outline: 0; }
.advanced-filters select:focus, .advanced-filters input:focus, .form-control:focus { border-color: #8aa9c3; box-shadow: 0 0 0 3px rgba(49,106,158,.08); }
.date-range { grid-column: span 2; }
.date-range > legend { margin-bottom: 6px; padding: 0; color: var(--muted); font-size: 10px; }
.date-range div { display: flex; align-items: center; gap: 7px; }
.date-range i { color: var(--muted); font-size: 10px; font-style: normal; }
.filter-reset { align-self: end; }
.secondary-btn, .primary-btn, .danger-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 14px; border-radius: 5px; cursor: pointer; font-size: 11px; font-weight: 650; gap: 7px; }
.secondary-btn { border: 1px solid var(--line-strong); background: #fff; color: var(--ink-2); }
.secondary-btn:hover { background: var(--surface-2); }
.primary-btn { border: 1px solid var(--red); background: var(--red); color: #fff; }
.primary-btn:hover { border-color: var(--red-dark); background: var(--red-dark); }
.danger-btn { border: 1px solid #d79a9a; background: #fff5f5; color: var(--danger); }
.full { width: 100%; }
.secondary-btn svg, .primary-btn svg, .danger-btn svg { width: 14px; height: 14px; }

.result-heading { display: flex; align-items: center; justify-content: space-between; min-height: 58px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.result-heading > div { display: flex; align-items: baseline; gap: 9px; }
.result-heading h3, .panel h3 { margin: 0; font-size: 14px; font-weight: 680; }
.result-heading span, .result-heading p { color: var(--muted); font-size: 10px; }
.result-heading p { display: flex; align-items: center; margin: 0; gap: 7px; }
.legend-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.legend-clue { margin-left: 7px; padding: 3px 7px; border-radius: 3px; background: var(--amber-soft); color: var(--amber) !important; }
.opportunity-list { width: 100%; }
.opportunity-row { position: relative; display: grid; grid-template-columns: 86px minmax(280px, 2.2fr) minmax(170px, 1.1fr) minmax(170px, 1.1fr) 135px 125px 46px; align-items: center; min-height: 118px; padding: 14px 14px 14px 18px; border-bottom: 1px solid var(--line); cursor: pointer; gap: 14px; }
.opportunity-row:last-child { border-bottom: 0; }
.opportunity-row:hover { background: #fafbfb; }
.opportunity-row:focus-visible { z-index: 1; outline: 3px solid rgba(49, 106, 158, .3); outline-offset: -3px; background: #f8fafb; }
.opportunity-row.is-today::before { position: absolute; top: 18px; bottom: 18px; left: 0; width: 3px; background: var(--red); content: ""; }
.opportunity-row.is-unread .project-title { font-weight: 720; }
.capture-cell { display: grid; color: var(--muted); font-size: 10px; gap: 5px; }
.capture-cell strong { color: var(--ink-2); font-size: 12px; font-variant-numeric: tabular-nums; }
.capture-label { justify-self: start; padding: 3px 6px; border-radius: 3px; background: #eef1f3; color: #5f6972; font-size: 9px; }
.capture-label.today { background: var(--red-soft); color: var(--red); }
.project-cell, .buyer-cell, .material-cell, .deadline-cell, .track-cell { min-width: 0; }
.project-tags { display: flex; align-items: center; flex-wrap: wrap; margin-bottom: 7px; gap: 6px; }
.tag { display: inline-flex; align-items: center; min-height: 20px; padding: 0 6px; border-radius: 3px; background: #eef1f3; color: #58636d; font-size: 9px; white-space: nowrap; }
.tag.sector { background: var(--ink); color: #fff; }
.tag.clue { background: var(--amber-soft); color: var(--amber); }
.tag.notice { background: var(--blue-soft); color: var(--blue); }
.project-title { overflow: hidden; margin: 0; color: var(--ink); font-size: 13px; font-weight: 630; line-height: 1.45; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.project-code, .cell-meta { overflow: hidden; margin-top: 6px; color: #68727b; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.cell-label { display: block; margin-bottom: 5px; color: #66717a; font-size: 10px; }
.cell-main { overflow: hidden; color: var(--ink-2); font-size: 12px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.cell-sub { overflow: hidden; margin-top: 6px; color: var(--muted); font-size: 10px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.material-summary { overflow: hidden; color: var(--ink-2); font-size: 11px; line-height: 1.5; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.deadline-value { display: block; color: var(--ink); font-size: 11px; font-weight: 650; font-variant-numeric: tabular-nums; }
.deadline-value.pending { color: var(--amber); }
.status-pill { display: inline-flex; align-items: center; margin-top: 7px; min-height: 21px; padding: 0 7px; border-radius: 11px; background: #eef1f3; color: #5d6871; font-size: 9px; }
.status-pill.urgent { background: var(--red-soft); color: var(--danger); }
.status-pill.open { background: var(--teal-soft); color: var(--teal); }
.track-status { display: inline-flex; padding: 4px 7px; border-radius: 3px; background: #eef1f3; color: #5d6770; font-size: 9px; }
.track-owner { overflow: hidden; margin-top: 6px; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.favorite-btn { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: #a4abb1; cursor: pointer; font-size: 22px; }
.favorite-btn:hover { background: #f0f2f4; }
.favorite-btn.active { color: #c78200; }
.row-chevron { display: none; }

.state-panel { display: grid; place-items: center; min-height: 260px; padding: 40px; color: var(--muted); text-align: center; }
.state-panel svg { width: 34px; height: 34px; margin-bottom: 8px; color: #a4abb1; }
.state-panel h3 { margin: 7px 0 0; color: var(--ink-2); font-size: 14px; }
.state-panel p { margin: 7px 0 13px; font-size: 11px; }
.loader { display: inline-block; width: 24px; height: 24px; border: 2px solid #d4d9dd; border-top-color: var(--red); border-radius: 50%; animation: spin .8s linear infinite; }
.loader.light { border-color: rgba(255,255,255,.24); border-top-color: #fff; }

.subscription-layout { display: grid; grid-template-columns: minmax(320px, .75fr) minmax(420px, 1.25fr); align-items: start; gap: 20px; }
.panel { padding: 22px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.panel-heading p { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.switch { position: relative; display: inline-flex; flex: 0 0 auto; }
.switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.switch > span { position: relative; display: block; width: 38px; height: 22px; border-radius: 12px; background: #c8ced3; cursor: pointer; transition: .2s; }
.switch > span::after { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); content: ""; transition: .2s; }
.switch input:checked + span { background: var(--teal); }
.switch input:checked + span::after { transform: translateX(16px); }
.switch input:focus-visible + span { outline: 3px solid rgba(49,106,158,.32); outline-offset: 3px; }
.mini-metrics { display: grid; grid-template-columns: repeat(3, 1fr); margin: 20px 0; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: #fafbfb; }
.mini-metrics div { display: grid; place-items: center; min-height: 72px; border-right: 1px solid var(--line); }
.mini-metrics div:last-child { border-right: 0; }
.mini-metrics strong { font-size: 22px; font-variant-numeric: tabular-nums; }
.mini-metrics span { margin-top: 3px; color: var(--muted); font-size: 9px; }
.subscription-settings fieldset { margin: 0 0 19px; padding: 0; border: 0; }
.subscription-settings legend, .form-label { width: 100%; margin-bottom: 9px; color: var(--ink-2); font-size: 11px; font-weight: 650; }
.subscription-settings legend small { margin-left: 5px; color: var(--muted); font-size: 9px; font-weight: 400; }
.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.check-grid label { display: flex; align-items: center; min-height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 5px; color: var(--ink-2); font-size: 10px; gap: 8px; }
.check-grid input { accent-color: var(--teal); }
.material-checks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.setting-line { display: flex; align-items: center; justify-content: space-between; margin: 0 0 20px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); gap: 15px; }
.setting-line > div { display: grid; }
.setting-line strong { font-size: 11px; }
.setting-line small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.notification-list, .matched-list { display: grid; margin-top: 15px; gap: 8px; }
.notification-item, .matched-item { display: grid; grid-template-columns: 34px minmax(0, 1fr) 20px; align-items: center; min-height: 68px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: #fff; cursor: pointer; gap: 10px; }
.notification-item:hover, .matched-item:hover { background: #fafbfb; }
.notification-item.unread { border-left: 3px solid var(--red); }
.notification-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); }
.notification-icon svg { width: 16px; height: 16px; }
.notification-copy { min-width: 0; }
.notification-copy strong { display: block; overflow: hidden; color: var(--ink-2); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.notification-copy p { overflow: hidden; margin: 4px 0 0; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.notification-item > svg, .matched-item > svg { width: 15px; color: #a8afb5; }
.notification-selection-summary, .notification-selection-count { margin: 5px 0 10px; color: var(--muted); font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.notification-selection-missing { margin: 12px 0; padding: 10px; border: 1px solid #efd39b; border-radius: 6px; background: #fff8e9; color: #775514; font-size: 11px; line-height: 1.6; }
.notification-selection .matched-item { text-align: left; }
.notification-selection .notification-copy strong, .notification-selection .notification-copy p { white-space: normal; overflow-wrap: anywhere; }
.compact-empty { display: flex; align-items: center; justify-content: center; min-height: 110px; color: var(--muted); font-size: 10px; gap: 8px; }
.compact-empty svg { width: 18px; }
.matched-heading { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.matched-load-more { width: 100%; min-height: 44px; margin-top: 2px; }

.admin-tabs { display: flex; align-items: stretch; margin-bottom: 16px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.admin-tabs button { display: inline-flex; align-items: center; justify-content: center; min-width: 142px; min-height: 52px; flex: 1 0 auto; padding: 0 16px; border: 0; border-right: 1px solid var(--line); background: #fff; color: var(--muted); cursor: pointer; font-size: 11px; font-weight: 630; gap: 8px; }
.admin-tabs button:last-child { border-right: 0; }
.admin-tabs button.active { background: var(--ink); color: #fff; }
.admin-tabs svg { width: 15px; height: 15px; }
.admin-content { display: grid; gap: 16px; }
.admin-content > .admin-panel { padding: 20px; }
.admin-section-heading { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; gap: 18px; }
.admin-section-heading h3 { margin: 0; font-size: 14px; }
.admin-section-heading p { margin: 5px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.admin-section-heading .count-chip { flex: 0 0 auto; padding: 5px 8px; border-radius: 4px; background: #eef1f3; color: #5f6871; font-size: 9px; }
.admin-summary-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-bottom: 17px; border: 1px solid var(--line); border-radius: 6px; background: #fafbfb; }
.admin-summary-grid div { min-height: 74px; padding: 14px; border-right: 1px solid var(--line); }
.admin-summary-grid div:last-child { border-right: 0; }
.admin-summary-grid span { display: block; color: var(--muted); font-size: 9px; }
.admin-summary-grid strong { display: block; margin-top: 7px; font-size: 20px; font-variant-numeric: tabular-nums; }
.admin-summary-grid strong.warn { color: var(--danger); }
.recommendation-list { display: grid; margin: 0 0 16px; padding: 13px 16px 13px 31px; border-left: 3px solid var(--amber); background: var(--amber-soft); color: #6d531d; font-size: 10px; line-height: 1.6; gap: 4px; }
.data-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; }
.data-table { width: 100%; min-width: 720px; border-collapse: collapse; }
.data-table th { padding: 10px 12px; border-bottom: 1px solid var(--line); background: #f7f8f9; color: var(--muted); font-size: 10px; font-weight: 650; text-align: left; white-space: nowrap; }
.data-table td { padding: 12px; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 11px; line-height: 1.45; vertical-align: top; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fafbfb; }
.health-chip, .quality-chip { display: inline-flex; padding: 3px 6px; border-radius: 3px; background: #eef1f3; color: #5e6871; font-size: 8px; white-space: nowrap; }
.health-chip.good { background: var(--teal-soft); color: var(--teal); }
.health-chip.warn { background: var(--amber-soft); color: var(--amber); }
.health-chip.bad { background: var(--red-soft); color: var(--danger); }
.action-row { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.mini-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 28px; padding: 0 9px; border: 1px solid var(--line-strong); border-radius: 4px; background: #fff; color: var(--ink-2); cursor: pointer; font-size: 9px; white-space: nowrap; }
.mini-btn.primary { border-color: var(--red); background: var(--red); color: #fff; }
.mini-btn.teal { border-color: var(--teal); color: var(--teal); }
.mini-btn.warn { border-color: #d8b46d; color: var(--amber); }
.mini-btn.danger { border-color: #daa3a3; color: var(--danger); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.form-field { display: grid; min-width: 0; gap: 6px; }
.form-field.wide { grid-column: 1 / -1; }
.form-field > span { color: var(--muted); font-size: 9px; }
.form-field textarea.form-control { height: auto; min-height: 110px; padding: 10px; line-height: 1.5; resize: vertical; }
.form-actions { display: flex; align-items: center; justify-content: flex-end; margin-top: 15px; gap: 8px; }
.split-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 16px; }
.web-credential-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 16px; }
.web-credential-toolbar p { display: flex; align-items: center; margin: 0; color: #59636c; font-size: 11px; line-height: 1.5; gap: 7px; }
.web-credential-toolbar p svg { width: 16px; height: 16px; flex: 0 0 auto; color: var(--teal); }
.web-credential-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(340px, .65fr); align-items: start; gap: 16px; }
.web-credential-table-wrap .data-table { min-width: 640px; }
.credential-current-chip { margin-left: 5px; vertical-align: middle; }
.web-credential-editor { padding: 17px; border: 1px solid var(--line-strong); border-radius: 6px; background: #fafbfb; }
.web-credential-editor-heading { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 15px; gap: 12px; }
.web-credential-editor-heading h4 { margin: 0; color: var(--ink); font-size: 14px; }
.web-credential-editor-heading p { margin: 5px 0 0; color: #5f6871; font-size: 11px; line-height: 1.45; }
.web-credential-editor .form-field > span { color: #59636c; font-size: 11px; }
.web-credential-editor .form-control:disabled { border-color: var(--line); background: #eef1f3; color: #69737c; cursor: not-allowed; }
.web-credential-help { display: flex; align-items: flex-start; margin: 13px 0 0; color: #59636c; font-size: 11px; line-height: 1.55; gap: 7px; }
.web-credential-help svg { width: 15px; height: 15px; flex: 0 0 auto; margin-top: 1px; color: var(--teal); }
.web-credential-current-help { display: flex; align-items: flex-start; margin: 13px 0 0; padding: 10px 11px; border-left: 3px solid var(--blue); border-radius: 4px; background: var(--blue-soft); color: #294f70; font-size: 11px; line-height: 1.55; gap: 7px; }
.web-credential-current-help svg { width: 15px; height: 15px; flex: 0 0 auto; margin-top: 1px; }
.web-credential-form-error { margin: 12px 0 0; padding: 10px 11px; border-left: 3px solid var(--danger); border-radius: 4px; background: var(--red-soft); color: #8f2020; font-size: 11px; line-height: 1.5; }
.web-credential-editor [aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(182,45,45,.12); }
.stack-list { display: grid; gap: 8px; }
.stack-item { display: flex; align-items: flex-start; justify-content: space-between; padding: 12px; border: 1px solid var(--line); border-radius: 5px; gap: 14px; }
.stack-copy { min-width: 0; }
.stack-copy strong { display: block; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.stack-copy p { margin: 5px 0 0; color: var(--muted); font-size: 9px; line-height: 1.45; }
.code-result { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding: 12px; border: 1px solid #efd3d5; border-radius: 5px; background: var(--red-soft); gap: 12px; }
.code-result strong { color: var(--red); font-family: ui-monospace, Consolas, monospace; font-size: 16px; letter-spacing: .08em; }
.empty-inline { padding: 22px; color: var(--muted); font-size: 10px; text-align: center; }

.admin-content > .admin-panel { min-width: 0; max-width: 100%; }
.rule-catalog-workspace, .rule-catalog-workspace > *, .rule-catalog-group, .rule-catalog-entry { min-width: 0; max-width: 100%; }
.rule-catalog-scope { margin: 0 0 15px; padding: 11px 13px; border-left: 3px solid #7c8994; background: #f4f6f8; color: #53616c; font-size: 11px; line-height: 1.65; overflow-wrap: anywhere; }
.rule-catalog-toolbar { display: grid; grid-template-columns: minmax(220px, 1.6fr) minmax(140px, 1fr) minmax(120px, .8fr); padding: 14px; border: 1px solid var(--line); border-radius: 6px; background: #fafbfc; gap: 12px; }
.rule-catalog-toolbar .form-field > span { font-size: 11px; }
.rule-catalog-toolbar .form-control { width: 100%; min-width: 0; min-height: 40px; background: #fff; font-size: 12px; }
.rule-catalog-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 12px 0 16px; gap: 10px; }
.rule-catalog-actions > span { color: #64717c; font-size: 11px; line-height: 1.6; }
.rule-editor-link { color: #466d8b; text-decoration: underline; text-underline-offset: 3px; }
.rule-catalog-actions > div { display: flex; flex-wrap: wrap; gap: 7px; }
.rule-catalog-actions .mini-btn { min-height: 34px; font-size: 10px; }
.rule-catalog-result-count { margin: 0 0 12px; color: #596672; font-size: 11px; }
.rule-catalog-group + .rule-catalog-group { margin-top: 20px; }
.rule-catalog-group > header { display: flex; align-items: flex-start; justify-content: space-between; padding: 11px 13px; border-left: 3px solid var(--red); background: #f3f5f7; gap: 12px; }
.rule-catalog-group > header > div { min-width: 0; }
.rule-catalog-group h4 { margin: 0; color: var(--ink); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.rule-catalog-group > header p { margin: 4px 0 0; color: #65717c; font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.rule-catalog-group > header > span { flex-shrink: 0; padding-top: 3px; color: #596672; font-size: 10px; }
.rule-catalog-list { border: 1px solid var(--line); border-top: 0; border-radius: 0 0 5px 5px; }
.rule-catalog-entry + .rule-catalog-entry { border-top: 1px solid var(--line); }
.rule-catalog-entry > summary { position: relative; padding: 14px 16px 13px 33px; cursor: pointer; list-style: none; }
.rule-catalog-entry > summary::-webkit-details-marker { display: none; }
.rule-catalog-entry > summary::before { position: absolute; top: 18px; left: 15px; width: 6px; height: 6px; border-right: 1.5px solid #7a8792; border-bottom: 1.5px solid #7a8792; content: ""; transform: rotate(-45deg); }
.rule-catalog-entry[open] > summary::before { transform: rotate(45deg); }
.rule-catalog-entry > summary:hover { background: #fafbfc; }
.rule-catalog-entry > summary:focus-visible { outline: 3px solid rgba(49,106,158,.3); outline-offset: -3px; }
.rule-catalog-title { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 7px 12px; }
.rule-catalog-title > strong { min-width: 0; color: var(--ink-2); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.rule-mode { flex: 0 0 auto; padding: 3px 7px; border-radius: 3px; background: #edf0f3; color: #52616e; font-size: 9px; line-height: 1.4; }
.rule-mode.custom { background: #f8e9eb; color: #a53943; }
.rule-mode.runtime { background: #e9f0f6; color: #466d8b; }
.rule-mode.inactive { background: #fff4dc; color: #856719; }
.rule-catalog-summary { display: block; margin-top: 5px; color: #596773; font-size: 11px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.rule-catalog-expand { display: block; margin-top: 7px; color: #657481; font-size: 10px; }
.rule-catalog-entry[open] .rule-catalog-expand { color: #8b969f; }
.rule-catalog-body { padding: 0 16px 15px 33px; }
.rule-values { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 6px; }
.rule-values > span { max-width: 100%; padding: 5px 8px; border: 1px solid #dce3e8; border-radius: 3px; background: #f8fafb; color: #415363; font-size: 11px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.rule-details { display: grid; margin: 12px 0 0; padding-left: 18px; color: #566572; font-size: 11px; line-height: 1.75; gap: 5px; }
.rule-details > li { min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.rule-source { display: grid; grid-template-columns: auto minmax(0, 1fr); margin: 12px 0 0; padding-top: 10px; border-top: 1px dashed var(--line); color: #7a8690; font-size: 10px; line-height: 1.65; gap: 10px; }
.rule-source code { font-size: 10px; white-space: pre-wrap; overflow-wrap: anywhere; }
.rule-catalog-stamp { margin: 16px 0 0; color: #77838d; font-size: 10px; line-height: 1.7; overflow-wrap: anywhere; }
.rule-catalog-stamp + .rule-catalog-stamp { margin-top: 4px; }
.rule-catalog-workspace .empty-inline { font-size: 11px; line-height: 1.8; }
.rule-catalog-workspace .empty-inline .mini-btn { margin-top: 10px; }
.rejected-workspace, .rejected-workspace > *, .rejected-list, .rejected-card { min-width: 0; max-width: 100%; }
.rejected-workspace { display: grid; gap: 16px; }
.rejected-summary-grid { margin-bottom: 0; }
.rejected-toolbar { display: grid; grid-template-columns: minmax(260px, 1.5fr) repeat(4, minmax(140px, 1fr)); align-items: end; padding: 14px; border: 1px solid var(--line); border-radius: 6px; background: #f8f9fa; gap: 10px; }
.rejected-toolbar .form-field { min-width: 0; }
.rejected-toolbar .form-field > span { color: #59636c; font-size: 10px; }
.rejected-toolbar .form-control { min-height: 40px; border-color: #aeb7bf; background: #fff; font-size: 11px; }
.rejected-list { display: grid; gap: 11px; }
.rejected-card { padding: 16px 17px; border: 1px solid var(--line-strong); border-left: 3px solid #9aa5ae; border-radius: 6px; background: #fff; box-shadow: 0 2px 8px rgba(27,35,41,.04); }
.rejected-card:hover { border-color: #aab3bb; box-shadow: 0 5px 16px rgba(27,35,41,.08); }
.rejected-card-topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.rejected-meta { display: flex; align-items: center; flex-wrap: wrap; color: #5f6871; font-size: 10px; gap: 7px; }
.rejected-card h4 { margin: 11px 0 0; color: var(--ink); font-size: 14px; line-height: 1.5; }
.rejected-subline { margin: 6px 0 0; color: #66717a; font-size: 10px; line-height: 1.45; }
.rejected-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 13px; overflow: hidden; border: 1px solid var(--line); border-radius: 5px; background: #fafbfb; }
.rejected-facts > div { min-width: 0; min-height: 62px; padding: 10px 11px; border-right: 1px solid var(--line); }
.rejected-facts > div:last-child { border-right: 0; }
.rejected-facts span { display: block; color: #66717a; font-size: 9px; }
.rejected-facts strong { display: block; overflow: hidden; margin-top: 6px; color: var(--ink-2); font-size: 11px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.rejected-diagnosis { margin-top: 12px; padding: 12px 13px; border-left: 3px solid var(--amber); background: var(--amber-soft); color: #644e1e; }
.rejected-diagnosis.suspect { border-left-color: var(--red); background: var(--red-soft); color: #7e2727; }
.rejected-diagnosis > div:first-child { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.rejected-diagnosis strong { font-size: 11px; }
.rejected-diagnosis > div:first-child span { flex: 0 0 auto; color: inherit; font-size: 9px; opacity: .82; }
.rejected-diagnosis p { margin: 6px 0 0; font-size: 10px; line-height: 1.55; }
.rejected-evidence-tags, .rejected-workflow-tags { display: flex; align-items: center; flex-wrap: wrap; margin-top: 8px; gap: 6px; }
.rejected-evidence-tags span, .rejected-workflow-tags span { display: inline-flex; padding: 4px 7px; border: 1px solid rgba(101,79,30,.22); border-radius: 3px; background: rgba(255,255,255,.58); color: inherit; font-size: 9px; }
.rejected-evidence-tags span.strong { border-color: rgba(182,45,45,.3); color: #8f2020; font-weight: 650; }
.rejected-workflow-tags span { border-color: #bdd6d2; background: var(--teal-soft); color: #12685f; }
.rejected-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; color: #66717a; font-size: 9px; gap: 12px; }
.rejected-open-button { min-height: 38px; flex: 0 0 auto; }
.rejected-pagination { display: flex; align-items: center; justify-content: center; color: #5f6871; font-size: 10px; gap: 12px; }
.rejected-pagination button { min-width: 92px; min-height: 40px; }
.rejected-pagination button:disabled { opacity: .45; cursor: not-allowed; }
.rejected-analytics { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(220px, .65fr); align-items: stretch; gap: 12px; }
.rejected-analytics > section { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 6px; background: #fafbfb; }
.rejected-analytics h4 { margin: 0 0 11px; font-size: 11px; }
.compact-table { min-width: 480px; }
.compact-table th, .compact-table td { padding: 8px 9px; font-size: 9px; }
.rejected-suggestion-list { display: grid; gap: 7px; }
.rejected-suggestion { display: flex; align-items: center; justify-content: space-between; padding: 9px 10px; border: 1px solid var(--line); border-radius: 4px; background: #fff; gap: 10px; }
.rejected-suggestion strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.rejected-suggestion span { flex: 0 0 auto; color: #66717a; font-size: 9px; }
.rejected-task-summary { display: grid; grid-template-columns: auto 1fr; align-content: start; padding: 8px; gap: 4px 10px; }
.rejected-task-summary strong { color: var(--ink); font-size: 24px; font-variant-numeric: tabular-nums; }
.rejected-task-summary span { align-self: center; color: #5f6871; font-size: 10px; }
.rejected-task-summary small { grid-column: 1 / -1; margin-top: 8px; color: #66717a; font-size: 9px; }
.rejected-rule-alert { margin-bottom: 11px; }
.rejected-evidence-grid { margin-top: 10px; }
.rejected-review-note { margin-top: 11px; padding: 11px 13px; border-left: 3px solid var(--blue); background: var(--blue-soft); }
.rejected-review-history { display: grid; gap: 9px; }
.rejected-review-history-row { padding: 11px 12px; border: 1px solid var(--line); border-radius: 5px; background: #fafbfb; }
.rejected-review-history-row > div { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.rejected-review-history-row strong { color: var(--ink-2); font-size: 10px; }
.rejected-review-history-row small { color: #66717a; font-size: 9px; }
.rejected-review-history-row p { margin: 7px 0 0; color: #59636c; font-size: 10px; line-height: 1.5; }
.rejected-review-toggle { padding: 10px 11px; border: 1px solid var(--line); border-radius: 5px; background: #fafbfb; }
.rejected-review-toggle small { display: block; margin-top: 4px; color: #66717a; font-size: 9px; font-weight: 400; }
.rejected-fixed-actions .primary-btn { min-width: 150px; }

.backdrop { position: fixed; z-index: 110; inset: 0; background: rgba(20,25,29,.48); backdrop-filter: blur(2px); }
.detail-drawer { position: fixed; z-index: 120; top: 0; right: 0; bottom: 0; width: min(760px, 94vw); overflow: hidden; visibility: hidden; pointer-events: none; background: #fff; box-shadow: -18px 0 50px rgba(18,24,28,.22); transform: translateX(102%); transition: transform .24s ease, visibility 0s linear .24s; }
.detail-drawer.open { visibility: visible; pointer-events: auto; transform: translateX(0); transition-delay: 0s; }
.detail-content { height: 100%; overflow-y: auto; overscroll-behavior: contain; }
.detail-header { position: sticky; z-index: 4; top: 0; padding: 24px 28px 20px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.97); backdrop-filter: blur(12px); }
.detail-topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.detail-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.detail-actions { display: flex; flex: 0 0 auto; gap: 7px; }
.detail-actions .icon-btn { border-color: var(--line); color: var(--ink-2); }
.detail-actions .icon-btn:hover { background: #f3f5f6; }
.detail-actions .favorite-active { color: #c78200; }
.detail-header h2 { margin: 14px 0 0; font-size: 21px; line-height: 1.42; }
.detail-header .project-code { margin-top: 8px; }
.decision-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 18px; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; }
.decision-grid div { min-height: 62px; padding: 11px; border-right: 1px solid var(--line); background: #fafbfb; }
.decision-grid div:last-child { border-right: 0; }
.decision-grid span { display: block; color: var(--muted); font-size: 8px; }
.decision-grid strong { display: block; overflow: hidden; margin-top: 5px; color: var(--ink-2); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.detail-body { display: grid; padding: 0 28px 100px; }
.detail-section { padding: 22px 0; border-bottom: 1px solid var(--line); }
.detail-section h3 { display: flex; align-items: center; justify-content: space-between; margin: 0 0 12px; font-size: 13px; }
.detail-section h3 small { color: var(--muted); font-size: 9px; font-weight: 400; }
.detail-info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 6px; }
.detail-info-grid div { min-height: 60px; padding: 11px 13px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail-info-grid div:nth-child(2n) { border-right: 0; }
.detail-info-grid div:nth-last-child(-n+2) { border-bottom: 0; }
.detail-info-grid span { display: block; color: var(--muted); font-size: 8px; }
.detail-info-grid strong { display: block; margin-top: 5px; color: var(--ink-2); font-size: 10px; line-height: 1.45; }
.detail-copy { margin: 0; color: var(--ink-2); font-size: 11px; line-height: 1.75; white-space: pre-wrap; }
.alert-box { padding: 13px 15px; border-left: 3px solid var(--amber); background: var(--amber-soft); color: #71571f; font-size: 10px; line-height: 1.6; }
.alert-box + .alert-box { margin-top: 8px; }
.spec-table { width: 100%; border-collapse: collapse; border: 1px solid var(--line); }
.spec-table th, .spec-table td { padding: 8px 9px; border: 1px solid var(--line); color: var(--ink-2); font-size: 9px; line-height: 1.45; text-align: left; vertical-align: top; }
.spec-table th { background: #f7f8f9; color: var(--muted); font-weight: 650; }
.related-list, .revision-list { display: grid; gap: 7px; }
.related-item { display: flex; align-items: center; justify-content: space-between; padding: 11px 12px; border: 1px solid var(--line); border-radius: 5px; background: #fff; cursor: pointer; gap: 12px; }
.related-item:hover { background: #fafbfb; }
.related-item div { min-width: 0; }
.related-item strong { display: block; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.related-item span { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; }
.related-item svg { width: 15px; flex: 0 0 auto; color: #a3abb2; }
.revision-item { padding: 11px 13px; border-left: 2px solid var(--line-strong); background: #fafbfb; }
.revision-item > strong { display: block; margin-bottom: 7px; font-size: 9px; }
.revision-change { display: grid; grid-template-columns: 76px 1fr 18px 1fr; color: var(--muted); font-size: 8px; line-height: 1.5; gap: 5px; }
.revision-change b { color: var(--ink-2); font-weight: 600; }
.tracking-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tracking-form .wide { grid-column: 1 / -1; }
.detail-fixed-actions { position: fixed; right: 0; bottom: 0; display: flex; width: min(760px, 94vw); padding: 13px 28px calc(13px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(12px); gap: 9px; }
.detail-fixed-actions .primary-btn { flex: 1; }
.detail-link { text-decoration: none; }

.modal-backdrop { z-index: 130; }
.app-modal { position: fixed; z-index: 140; top: 50%; left: 50%; width: min(560px, calc(100vw - 30px)); max-height: calc(100vh - 40px); overflow: hidden; border-radius: 9px; background: #fff; box-shadow: var(--shadow); transform: translate(-50%, -50%); }
.app-modal > header { display: flex; align-items: flex-start; justify-content: space-between; padding: 20px 22px 16px; border-bottom: 1px solid var(--line); gap: 15px; }
.app-modal > header h2 { margin: 4px 0 0; font-size: 17px; }
.app-modal > header .icon-btn { border-color: var(--line); color: var(--ink-2); }
.modal-body { max-height: calc(100vh - 190px); overflow-y: auto; padding: 20px 22px; }
.modal-body > p { margin: 0; color: var(--ink-2); font-size: 11px; line-height: 1.65; }
.app-modal > footer { display: flex; align-items: center; justify-content: flex-end; padding: 14px 22px; border-top: 1px solid var(--line); background: #fafbfb; gap: 8px; }

.toast-region { position: fixed; z-index: 200; right: 20px; bottom: 20px; display: grid; width: min(360px, calc(100vw - 40px)); gap: 8px; pointer-events: none; }
.toast { display: flex; align-items: flex-start; padding: 12px 14px; border-left: 3px solid var(--teal); border-radius: 5px; background: #252b31; color: #fff; box-shadow: var(--shadow); font-size: 10px; line-height: 1.5; animation: toast-in .2s ease-out; gap: 9px; }
.toast.error { border-left-color: #f36a6a; }
.toast svg { width: 15px; height: 15px; flex: 0 0 auto; }
.startup-state { position: fixed; z-index: 300; inset: 0; display: grid; place-items: center; overflow-y: auto; padding: calc(24px + env(safe-area-inset-top)) 18px calc(24px + env(safe-area-inset-bottom)); background: #252b31; color: #fff; text-align: center; }
.startup-panel { display: grid; place-items: center; width: min(430px, 100%); }
.startup-state .startup-mark { width: 54px; height: 54px; font-size: 28px; }
.startup-state h2 { margin: 18px 0 0; font-size: 20px; }
.startup-status { min-height: 18px; margin: 8px 0 18px; color: #c1c8ce; font-size: 12px; line-height: 1.5; }
.startup-retry { margin-top: 4px; border-color: #8f989f; background: transparent; color: #fff; }
.startup-retry:hover { background: rgba(255,255,255,.08); }
.web-login-form { display: grid; width: 100%; margin-top: 4px; padding: 24px; border: 1px solid #d5dbe0; border-radius: 10px; background: #fff; color: var(--ink); box-shadow: 0 22px 56px rgba(8,13,17,.32); text-align: left; gap: 15px; }
.web-login-heading { display: flex; align-items: center; margin-bottom: 2px; gap: 12px; }
.web-login-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto; border-radius: 7px; background: var(--red-soft); color: var(--red); }
.web-login-icon svg { width: 19px; height: 19px; }
.web-login-heading h3 { margin: 0; font-size: 18px; }
.web-login-heading p { margin: 4px 0 0; color: #5f6871; font-size: 12px; }
.web-login-field { display: grid; gap: 7px; }
.web-login-field > span:first-child { color: var(--ink-2); font-size: 12px; font-weight: 650; }
.web-login-control { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border: 1px solid #8b959e; border-radius: 6px; background: #fff; color: #606b74; gap: 9px; }
.web-login-control:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(49,106,158,.24); }
.web-login-control svg { width: 17px; height: 17px; flex: 0 0 auto; }
.web-login-control input { min-width: 0; flex: 1; height: 42px; padding: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 14px; }
.web-login-error { margin: -2px 0 0; padding: 10px 11px; border-left: 3px solid var(--danger); border-radius: 4px; background: var(--red-soft); color: #8f2020; font-size: 12px; line-height: 1.5; }
.web-login-submit { width: 100%; min-height: 44px; font-size: 13px; }
.web-login-help { display: flex; align-items: flex-start; margin: -1px 0 0; color: #5f6871; font-size: 11px; line-height: 1.55; gap: 7px; }
.web-login-help svg { width: 15px; height: 15px; flex: 0 0 auto; margin-top: 1px; color: var(--teal); }
.web-login-form[aria-busy="true"] .web-login-control { background: #f5f6f7; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: .48; } }
@keyframes fade-in { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 1180px) {
  .app-header { grid-template-columns: minmax(220px, 1fr) auto auto; padding: 0 20px; }
  .user-chip div { display: none; }
  .main-shell { padding: 26px 24px 48px; }
  .metric-card { grid-template-columns: 34px minmax(0, 1fr); padding: 15px 12px; gap: 9px; }
  .metric-icon { width: 34px; height: 34px; }
  .metric-icon svg { width: 17px; }
  .metric-card strong { font-size: 23px; }
  .opportunity-row { grid-template-columns: 76px minmax(245px, 2fr) minmax(145px, 1fr) minmax(150px, 1fr) 122px 104px 40px; gap: 10px; }
  .advanced-filters { grid-template-columns: repeat(4, minmax(130px, 1fr)); }
  .admin-summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-summary-grid div:nth-child(3) { border-right: 0; }
  .admin-summary-grid div:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .web-credential-layout { grid-template-columns: 1fr; }
  .rejected-toolbar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rejected-search-field { grid-column: span 2; }
  .rejected-analytics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rejected-analytics > section:last-child { grid-column: span 2; }
}

@media (max-width: 1220px) and (min-width: 861px) {
  .opportunity-row { display: block; min-height: 0; padding: 16px 52px 16px 18px; }
  .capture-cell { display: flex; align-items: center; margin-bottom: 9px; gap: 7px; }
  .capture-cell strong { font-size: 10px; }
  .buyer-cell, .material-cell, .deadline-cell, .track-cell { margin-top: 10px; }
  .buyer-cell { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .buyer-cell .cell-sub { margin-top: 0; }
  .material-cell { padding: 10px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
  .deadline-cell, .track-cell { display: inline-block; width: calc(50% - 5px); vertical-align: top; }
  .favorite-btn { position: absolute; top: 13px; right: 12px; }
}

@media (max-width: 860px) {
  .app-header { grid-template-columns: 1fr auto; min-height: 64px; padding: 0 15px; }
  .brand-mark { width: 34px; height: 34px; font-size: 18px; }
  .brand h1 { max-width: 55vw; font-size: 14px; }
  .brand p { font-size: 9px; }
  .primary-nav { position: fixed; z-index: 90; right: 0; bottom: 0; left: 0; order: 3; min-height: calc(58px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid var(--line); background: #fff; box-shadow: 0 -7px 20px rgba(25,31,36,.09); }
  .nav-item { display: grid; place-items: center; align-content: center; min-width: 0; flex: 1; padding: 5px; border: 0; color: #65707a; font-size: 9px; gap: 3px; }
  .nav-item.active { border: 0; color: var(--red); }
  .nav-item:hover { background: #f8f9fa; color: var(--red); }
  .nav-item svg { width: 19px; height: 19px; }
  .nav-badge { position: absolute; top: 7px; left: calc(50% + 7px); }
  .header-actions { grid-column: 2; }
  .header-actions .user-chip, #exportBtn { display: none; }
  .main-shell { padding: 20px 14px calc(82px + env(safe-area-inset-bottom)); }
  .page-heading { align-items: flex-start; margin-bottom: 18px; }
  .heading-aside { display: none; }
  .metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .metric-card { min-height: 91px; border-bottom: 1px solid var(--line); }
  .metric-card:nth-child(3) { border-right: 0; }
  .metric-card:nth-child(n+4) { border-bottom: 0; }
  .metric-card:nth-child(4) { grid-column: span 1; }
  .metric-card:nth-child(5) { grid-column: span 2; border-right: 0; }
  .metric-card em, .metric-icon { display: none; }
  .metric-card { display: block; padding: 14px; }
  .metric-card strong { margin-top: 6px; font-size: 22px; }
  .workspace-toolbar { display: grid; padding: 13px; gap: 11px; }
  .segmented { width: 100%; }
  .segmented button { flex: 1; min-width: 0; padding: 0 7px; font-size: 10px; }
  .toolbar-right { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; width: 100%; }
  .search-box { width: 100%; }
  .sort-box span { display: none; }
  .quick-filter-row { flex-wrap: nowrap; overflow-x: auto; padding: 10px 13px; scrollbar-width: none; }
  .quick-filter-row::-webkit-scrollbar { display: none; }
  .quick-filter-row { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10px, #000 calc(100% - 28px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 10px, #000 calc(100% - 28px), transparent 100%); }
  .quick-filter-row button { flex: 0 0 auto; }
  .advanced-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 13px; }
  .date-range { grid-column: span 2; }
  .result-heading { min-height: 52px; padding: 0 13px; }
  .result-heading p { display: none; }
  .opportunity-row { display: block; min-height: 0; padding: 16px 48px 16px 16px; }
  .capture-cell { display: flex; align-items: center; margin-bottom: 9px; gap: 7px; }
  .capture-cell strong { font-size: 10px; }
  .project-title { font-size: 13px; }
  .buyer-cell, .material-cell, .deadline-cell, .track-cell { margin-top: 10px; }
  .buyer-cell { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .buyer-cell .cell-sub { margin-top: 0; }
  .material-cell { padding: 10px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
  .deadline-cell, .track-cell { display: inline-block; width: calc(50% - 5px); vertical-align: top; }
  .favorite-btn { position: absolute; top: 13px; right: 10px; }
  .subscription-layout, .split-panels { grid-template-columns: 1fr; }
  .material-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-tabs { margin-right: -14px; margin-left: -14px; border-right: 0; border-left: 0; border-radius: 0; }
  .admin-tabs button { min-width: 116px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field.wide { grid-column: auto; }
  .rule-catalog-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rule-catalog-search { grid-column: 1 / -1; }
  .rejected-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rejected-search-field { grid-column: span 2; }
  .rejected-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rejected-facts > div:nth-child(2) { border-right: 0; }
  .rejected-facts > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .rejected-analytics { grid-template-columns: 1fr; }
  .rejected-analytics > section:last-child { grid-column: auto; }
  .detail-drawer { width: 100vw; }
  .detail-header { padding: 20px 17px 16px; }
  .detail-header h2 { font-size: 18px; }
  .decision-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .decision-grid div:nth-child(2) { border-right: 0; }
  .decision-grid div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .detail-body { padding: 0 17px 94px; }
  .detail-fixed-actions { width: 100vw; padding: 11px 17px calc(11px + env(safe-area-inset-bottom)); }
  .toast-region { bottom: calc(78px + env(safe-area-inset-bottom)); }
}

@media (max-width: 520px) {
  .startup-state { align-items: start; }
  .startup-panel { padding-top: 4vh; }
  .startup-state h2 { font-size: 18px; }
  .web-login-form { padding: 20px 17px; }
  .web-credential-toolbar { align-items: stretch; flex-direction: column; }
  .web-credential-toolbar .secondary-btn { width: 100%; }
  .web-credential-editor { padding: 14px; }
  .web-credential-editor .form-actions { align-items: stretch; flex-direction: column; }
  .web-credential-editor .form-actions button { width: 100%; }
  .rejected-toolbar { grid-template-columns: 1fr; }
  .rule-catalog-toolbar { grid-template-columns: 1fr; padding: 12px; }
  .rule-catalog-search { grid-column: auto; }
  .rule-catalog-toolbar .form-control { min-height: 44px; }
  .rule-catalog-actions { align-items: stretch; flex-direction: column; }
  .rule-catalog-actions > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rule-catalog-actions .mini-btn { min-height: 44px; padding: 0 5px; }
  .rule-catalog-entry > summary { padding-right: 12px; padding-left: 28px; }
  .rule-catalog-entry > summary::before { left: 11px; }
  .rule-catalog-body { padding-right: 12px; padding-left: 28px; }
  .rule-source { grid-template-columns: 1fr; gap: 3px; }
  .rejected-search-field { grid-column: auto; }
  .rejected-card { padding: 14px; }
  .rejected-card-topline, .rejected-diagnosis > div:first-child, .rejected-card-footer { align-items: stretch; flex-direction: column; }
  .rejected-diagnosis > div:first-child span { flex: none; }
  .rejected-open-button { width: 100%; min-height: 44px; }
  .rejected-pagination { flex-wrap: wrap; }
  .rejected-pagination span { order: -1; width: 100%; text-align: center; }
  .rejected-pagination button { min-height: 44px; flex: 1; }
  .header-actions #refreshBtn { display: grid; }
  .brand p { max-width: 52vw; }
  .page-heading h2 { font-size: 25px; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-card:nth-child(odd) { border-right: 1px solid var(--line); }
  .metric-card:nth-child(even) { border-right: 0; }
  .metric-card:nth-child(n+4) { border-bottom: 1px solid var(--line); }
  .metric-card:last-child { grid-column: span 2; border-bottom: 0; }
  .toolbar-right { grid-template-columns: minmax(0, 1fr) auto; }
  .sort-box { grid-column: 1 / -1; justify-self: stretch; padding-left: 10px; }
  .sort-box span { display: inline; }
  .sort-box select { flex: 1; }
  .advanced-filters { grid-template-columns: 1fr; }
  .date-range { grid-column: span 1; }
  .date-range div { display: grid; grid-template-columns: 1fr 14px 1fr; }
  .admin-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-summary-grid div:nth-child(3) { border-right: 1px solid var(--line); }
  .admin-summary-grid div:nth-child(even) { border-right: 0; }
  .admin-summary-grid div:nth-child(-n+4) { border-bottom: 1px solid var(--line); }
  .panel, .admin-content > .admin-panel { padding: 16px; }
  .material-checks { grid-template-columns: 1fr; }
  .detail-info-grid { grid-template-columns: 1fr; }
  .detail-info-grid div, .detail-info-grid div:nth-child(2n) { border-right: 0; border-bottom: 1px solid var(--line); }
  .detail-info-grid div:last-child { border-bottom: 0; }
  .tracking-form { grid-template-columns: 1fr; }
  .revision-change { grid-template-columns: 60px 1fr; padding: 5px 0; }
  .revision-change span:nth-child(3) { color: var(--red); text-align: center; }
  .detail-fixed-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .detail-fixed-actions > * { min-height: 44px; }
  .detail-fixed-actions .primary-btn { grid-column: span 2; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (max-width: 1220px) and (min-width: 861px) {
  .app-header { grid-template-columns: minmax(200px, 1fr) auto auto; gap: 14px; padding-right: 20px; padding-left: 20px; }
  .primary-nav .nav-item { min-width: 92px; padding: 0 11px; font-size: 12px; }
  .header-actions .user-chip { display: none; }
}

@media (max-width: 860px) {
  .workbench-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .detail-header { position: relative; }
  .mobile-detail-close { display: inline-flex; justify-content: center; align-items: center; }
  .workbench-summary-card { min-height: 92px; padding: 13px; }
  .workbench-summary-card > span { font-size: 12px; }
  .workbench-summary-card > strong { font-size: 22px; }
  .opportunity-row .cell-sub, .opportunity-row .cell-main, .track-owner { font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }
  .project-title { font-size: 14px; line-height: 1.55; }
  .deadline-cell > .cell-sub { display: block; }
  .detail-body { padding-bottom: 170px; }
  .field-evidence-body, .detail-copy, .tracking-history { font-size: 13px; }
  .form-control, .tracking-form input, .tracking-form select { min-width: 0; max-width: 100%; min-height: 44px; font-size: 14px; }
  .tracking-form textarea { min-height: 82px; }
  .form-actions { flex-wrap: wrap; }
  .form-actions > button { min-height: 44px; }
  .due-task-panel .panel-heading { flex-wrap: wrap; }
}

@media (max-width: 390px) {
  .app-header { padding-right: 10px; padding-left: 10px; }
  .header-actions { gap: 5px; }
  .header-actions .icon-btn { width: 34px; }
  .brand { gap: 8px; }
  .brand h1 { max-width: 51vw; font-size: 12px; }
  .main-shell { padding-right: 10px; padding-left: 10px; }
  .workbench-summary-card { padding: 11px; gap: 6px; }
  .workbench-summary-card > span { font-size: 11px; }
  .workbench-summary-card > small { font-size: 10px; }
  .deadline-cell, .track-cell { display: block; width: 100%; }
  .field-evidence > summary { flex-wrap: wrap; gap: 7px; }
  .field-evidence > summary > b { flex-basis: 100%; padding-left: 16px; }
  .field-evidence-body dl { grid-template-columns: 1fr; }
  .detail-topline { align-items: flex-start; }
  .detail-badges { min-width: 0; }
  .detail-actions { flex-shrink: 0; }
  .notification-copy, .matched-item { min-width: 0; overflow-wrap: anywhere; }
  .rule-preview-results { padding: 10px; }
  .resolution-form { grid-template-columns: 1fr; }
}
.procurement-evidence h4 { margin: 24px 0 10px; font-size: 14px; }
.participation-source { display: inline-flex; margin: 16px 0 4px; }
.procurement-lot { margin: 10px 0; padding: 14px; border: 1px solid var(--line); border-radius: 6px; }
.procurement-lot summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; cursor: pointer; line-height: 1.65; }
.procurement-lot summary span { flex: 1; min-width: 180px; overflow-wrap: anywhere; }
.procurement-lot summary b { color: #725c37; font-size: 12px; }
.attachment-inventory { margin-top: 20px; padding: 14px; background: #f7f9f8; border: 1px solid var(--line); border-radius: 6px; }
.attachment-inventory summary { cursor: pointer; font-weight: 600; }
.attachment-inventory-row { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 13px; overflow-wrap: anywhere; }
.attachment-inventory-row:last-child { border-bottom: 0; }
.attachment-inventory-row strong { flex: 1; min-width: 150px; }
.attachment-inventory-row p { width: 100%; margin: 0; color: #795a28; }
.monitor-detail-progress { min-width: 145px; }
.monitor-detail-progress strong, .monitor-detail-progress small { display: block; line-height: 1.8; }
.coverage-state { display: inline-block; margin-top: 6px; font-size: 12px; }
.coverage-state.confirmed { color: #2f6b58; }
.coverage-state.pending { color: #8a6432; }
.monitor-coverage-note { margin: 16px 0; color: #64756d; font-size: 13px; line-height: 1.7; }
