:root {
  --black: #0a0b0c;
  --ink: #16191d;
  --muted: #626973;
  --canvas: #eef0f2;
  --line: #d9dde2;
  --white: #ffffff;
  --yellow: #ffd400;
  --yellow-soft: #fff4ad;
  --red: #df1b24;
  --red-soft: #ffedef;
  --blue: #1769c7;
  --blue-soft: #eaf3ff;
  --green: #14804a;
  --green-soft: #e7f6ee;
  --teal: #007f82;
  --teal-soft: #e6f7f6;
  --orange: #d96800;
  --radius: 6px;
  font-family: Arial, Helvetica, sans-serif;
}

/* Essential transition workspace */
.transition-heading { align-items: flex-end; }
.transition-status-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 16px; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.transition-status-strip > button { display: flex; gap: 12px; align-items: center; min-height: 74px; padding: 13px 16px; color: var(--ink); background: var(--white); border: 0; border-right: 1px solid var(--line); font: inherit; text-align: left; cursor: pointer; }
.transition-status-strip > button:last-child { border-right: 0; }
.transition-status-strip > button:hover { background: #f7f8fa; }
.transition-status-strip > button:focus-visible { position: relative; z-index: 1; outline: 3px solid rgba(23, 105, 199, .28); outline-offset: -3px; }
.transition-status-strip > button[aria-pressed="true"] { background: var(--blue-soft); box-shadow: inset 0 -3px 0 var(--blue); }
.transition-status-strip > button > svg { width: 20px; height: 20px; color: #5e6873; }
.transition-status-strip small, .transition-status-strip strong { display: block; }
.transition-status-strip small { color: var(--muted); font-size: .8125rem; font-weight: 760; }
.transition-status-strip strong { margin-top: 2px; font-size: 1.2rem; }
.transition-status-strip strong em { color: var(--muted); font-size: .8125rem; font-style: normal; font-weight: 700; }
.transition-data-board, .transition-requirements-board, .transition-export-center { margin-bottom: 16px; overflow: hidden; }
.transition-data-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.transition-data-grid button { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto 18px; gap: 11px; align-items: center; min-height: 100px; padding: 15px 16px; color: var(--ink); background: var(--white); border: 0; border-top: 1px solid var(--line); border-right: 1px solid var(--line); font: inherit; text-align: left; cursor: pointer; }
.transition-data-grid button:nth-child(4n) { border-right: 0; }
.transition-data-grid button:hover { background: #f7f8fa; }
.transition-data-grid button > span { display: grid; place-items: center; width: 38px; height: 38px; color: #4e5863; background: #f0f2f4; border-radius: var(--radius); }
.transition-data-grid button > span svg { width: 19px; height: 19px; }
.transition-data-grid button > div { min-width: 0; }
.transition-data-grid strong, .transition-data-grid small { display: block; }
.transition-data-grid strong { font-size: .9375rem; line-height: 1.25; }
.transition-data-grid small { margin-top: 4px; color: var(--muted); font-size: .78rem; line-height: 1.35; }
.transition-data-grid b { min-width: 30px; color: #3e4750; font-size: 1rem; text-align: right; }
.transition-data-grid button > svg { width: 16px; height: 16px; color: #77818b; }
.transition-board-heading { align-items: center; }
.transition-board-heading > div:first-child { min-width: 0; }
.transition-board-summary { display: grid; gap: 5px; justify-items: end; }
.transition-board-summary > span { color: var(--muted); font-size: .8125rem; font-weight: 780; white-space: nowrap; }
.transition-board-summary .plain-action { min-height: 30px; font-size: .75rem; }
.transition-requirement-list { display: grid; }
.transition-requirement-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 13px; align-items: center; min-height: 92px; padding: 14px 17px; border-bottom: 1px solid var(--line); }
.transition-requirement-row:last-child { border-bottom: 0; }
.transition-requirement-row.needs-attention { box-shadow: inset 4px 0 0 #e1be18; }
.transition-requirement-state { display: grid; place-items: center; width: 30px; height: 30px; color: #747d87; background: #f1f3f5; border-radius: 50%; }
.transition-requirement-row.is-ready .transition-requirement-state { color: #16864b; background: #e8f6ee; }
.transition-requirement-state svg { width: 18px; height: 18px; }
.transition-requirement-copy { min-width: 0; }
.transition-requirement-copy > div { display: flex; gap: 10px; align-items: center; }
.transition-requirement-copy h3 { font-size: 1rem; line-height: 1.3; }
.transition-requirement-copy p { margin-top: 5px; color: #555f6b; font-size: .875rem; line-height: 1.4; }
.transition-requirement-copy p strong { color: #303841; }
.transition-requirement-copy small { display: block; margin-top: 5px; color: var(--muted); font-size: .8rem; font-weight: 690; }
.transition-requirement-actions { display: flex; flex-direction: column; gap: 7px; min-width: 190px; }
.transition-requirement-actions .button { min-height: 40px; padding: 8px 12px; font-size: .8125rem; }
.transition-requirement-actions svg { width: 15px; }
.transition-export-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.transition-export-list button { display: grid; grid-template-columns: minmax(0, 1fr) 20px; gap: 12px; align-items: center; min-height: 82px; padding: 14px 16px; color: var(--ink); background: var(--white); border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font: inherit; text-align: left; cursor: pointer; }
.transition-export-list button:nth-child(2n) { border-right: 0; }
.transition-export-list button:last-child { border-bottom: 0; }
.transition-export-list button:hover { background: #f7f8fa; }
.transition-export-list strong, .transition-export-list small { display: block; }
.transition-export-list strong { font-size: .9375rem; }
.transition-export-list small { margin-top: 4px; color: var(--muted); font-size: .8125rem; line-height: 1.4; }
.transition-export-list button > svg { width: 18px; color: #65707a; }
.transition-export-center .form-message { min-height: 0; padding: 0 16px 12px; }
.transition-source-register { margin-bottom: 16px; overflow: hidden; scroll-margin-top: 92px; }
.transition-source-register > summary { display: grid; grid-template-columns: minmax(0, 1fr) auto 20px; gap: 16px; align-items: center; padding: 16px 18px; cursor: pointer; list-style: none; }
.transition-source-register > summary::-webkit-details-marker { display: none; }
.transition-source-register > summary > div p:last-child { margin-top: 4px; color: var(--muted); font-size: .875rem; line-height: 1.4; }
.transition-source-register > summary > span { color: var(--muted); font-size: .8125rem; font-weight: 800; white-space: nowrap; }
.transition-source-register > summary > svg { width: 18px; transition: transform .2s ease; }
.transition-source-register[open] > summary > svg { transform: rotate(180deg); }
.transition-source-register table { width: 100%; border-collapse: collapse; }
.transition-source-register th { padding: 12px 14px; color: #68717c; background: #f3f5f7; border-bottom: 1px solid var(--line); font-size: .75rem; letter-spacing: .035em; text-align: left; text-transform: uppercase; }
.transition-source-register td { padding: 13px 14px; border-bottom: 1px solid var(--line); font-size: .8125rem; vertical-align: middle; }
.transition-source-register tr:last-child td { border-bottom: 0; }
.transition-source-register td strong, .transition-source-register td small { display: block; }
.transition-source-register td small { margin-top: 4px; color: var(--muted); font-size: .75rem; }
.essential-requirement-fields { padding: 15px 16px; background: #f5f7f8; border: 1px solid var(--line); border-radius: var(--radius); }
.essential-requirement-fields header { margin-bottom: 12px; }
.essential-requirement-fields h3 { margin-top: 3px; font-size: 1rem; }
.essential-requirement-fields > header > p:not(.eyebrow) { margin-top: 6px; color: #56616d; font-size: .84rem; line-height: 1.45; }
.essential-requirement-fields > header > p strong { color: #303841; }
.essential-first-pass { display: grid; gap: 12px; margin: 0 0 14px; padding: 14px; background: #fffaf0; border: 1px solid #ead47b; border-left: 4px solid var(--yellow); border-radius: var(--radius); }
.essential-first-pass > div { display: flex; gap: 10px; align-items: flex-start; }
.essential-first-pass > div > svg { width: 20px; height: 20px; flex: 0 0 auto; margin-top: 1px; color: #8b6d00; }
.essential-first-pass > div span, .essential-first-pass > div strong, .essential-first-pass > div small { display: block; }
.essential-first-pass > div strong { color: #34312a; font-size: .9rem; }
.essential-first-pass > div small { margin-top: 3px; color: #665f4d; font-size: .8rem; line-height: 1.45; }
.essential-first-pass section { padding-top: 10px; border-top: 1px solid #eadfab; }
.essential-first-pass section > strong { color: #49402b; font-size: .78rem; letter-spacing: .02em; text-transform: uppercase; }
.essential-first-pass ul { display: grid; gap: 4px; margin: 7px 0 0 18px; padding: 0; color: #585141; font-size: .8rem; line-height: 1.4; }
.essential-first-pass nav { display: flex; gap: 7px; flex-wrap: wrap; }
.essential-first-pass nav a { display: inline-flex; gap: 5px; align-items: center; min-height: 30px; padding: 5px 8px; color: #41566b; background: #fff; border: 1px solid #d8d4c4; border-radius: 6px; font-size: .72rem; font-weight: 750; text-decoration: none; }
.essential-first-pass nav a:hover { color: var(--blue); border-color: #9eb9d3; }
.essential-first-pass nav svg { width: 13px; height: 13px; }
.essential-first-pass-use { justify-self: start; }
.essential-crosswalk-customer-stack { vertical-align: top; }
.essential-crosswalk-customer-stack > span { display: grid; gap: 2px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.essential-crosswalk-customer-stack > span:last-child { padding-bottom: 0; border-bottom: 0; }
.essential-first-pass.is-saved { background: #f1faf5; border-color: #add9c0; border-left-color: #218a50; }
.essential-first-pass.is-saved > div > svg { color: #218a50; }
.essential-requirement-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.essential-requirement-field-grid label { display: grid; gap: 7px; align-content: start; color: #30353b; font-size: .8125rem; font-weight: 780; }
.essential-requirement-field-grid textarea { resize: vertical; }
.essential-repeatable-field { grid-column: 1 / -1; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.essential-repeatable-field > header { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin: 0; padding: 11px 12px; border-bottom: 1px solid var(--line); }
.essential-repeatable-field > header > div:first-child { min-width: 0; }
.essential-repeatable-field > header strong, .essential-repeatable-field > header small { display: block; }
.essential-repeatable-field > header strong { font-size: .875rem; }
.essential-repeatable-field > header small { margin-top: 3px; color: var(--muted); font-size: .75rem; font-weight: 600; }
.essential-repeatable-field > header > div:last-child { display: flex; flex: 0 0 auto; gap: 7px; }
.essential-repeatable-field .button { min-height: 36px; padding: 7px 10px; font-size: .75rem; }
.essential-repeatable-field .button svg { width: 15px; }
.essential-repeatable-table { overflow-x: auto; }
.essential-repeatable-table table { width: 100%; min-width: 690px; border-collapse: collapse; }
.essential-repeatable-table th { padding: 9px 8px; color: #68717c; background: #f5f6f7; border-bottom: 1px solid var(--line); font-size: .68rem; letter-spacing: .03em; text-align: left; text-transform: uppercase; }
.essential-repeatable-table td { padding: 6px 5px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.essential-repeatable-table tr:last-child td { border-bottom: 0; }
.essential-repeatable-table input, .essential-repeatable-table select { min-width: 120px; min-height: 38px; padding: 7px 8px; font-size: .78rem; }
.essential-repeatable-remove { width: 44px; }
.essential-repeatable-remove .icon-button { width: 34px; height: 34px; color: var(--red); }
.essential-repeatable-empty { padding: 18px; color: var(--muted); font-size: .8125rem; text-align: center; }

@media (max-width: 1180px) {
  .transition-data-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .transition-data-grid button:nth-child(4n) { border-right: 1px solid var(--line); }
  .transition-data-grid button:nth-child(2n) { border-right: 0; }
}

@media (max-width: 860px) {
  .transition-heading { align-items: flex-start; }
  .transition-status-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .transition-status-strip > button:nth-child(2) { border-right: 0; }
  .transition-status-strip > button:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .transition-board-heading { flex-direction: column; align-items: flex-start; }
  .transition-board-summary { justify-items: start; }
  .transition-requirement-row { grid-template-columns: 30px minmax(0, 1fr); }
  .transition-requirement-actions { grid-column: 2; flex-flow: row wrap; min-width: 0; }
  .transition-export-list { grid-template-columns: 1fr; }
  .transition-export-list button, .transition-export-list button:nth-child(2n) { border-right: 0; }
}

@media (max-width: 560px) {
  .transition-status-strip { grid-template-columns: 1fr; }
  .transition-status-strip > button, .transition-status-strip > button:nth-child(2) { min-height: 70px; border-right: 0; border-bottom: 1px solid var(--line); }
  .transition-status-strip > button:last-child { border-bottom: 0; }
  .transition-data-grid { grid-template-columns: 1fr; }
  .transition-data-grid button, .transition-data-grid button:nth-child(2n), .transition-data-grid button:nth-child(4n) { min-height: 88px; border-right: 0; }
  .transition-requirement-row { grid-template-columns: 1fr; padding: 15px; }
  .transition-requirement-state { display: none; }
  .transition-requirement-actions { grid-column: 1; }
  .transition-requirement-actions .button { flex: 1; }
  .essential-requirement-field-grid { grid-template-columns: 1fr; }
  .essential-repeatable-field > header { align-items: flex-start; flex-direction: column; }
  .essential-repeatable-field > header > div:last-child { width: 100%; flex-wrap: wrap; }
  .transition-source-register > summary { grid-template-columns: minmax(0, 1fr) 18px; }
  .transition-source-register > summary > span { grid-column: 1; grid-row: 2; }
  .transition-source-register > summary > svg { grid-column: 2; grid-row: 1 / span 2; }
  .transition-source-register table, .transition-source-register tbody, .transition-source-register tr, .transition-source-register td { display: block; width: 100%; }
  .transition-source-register thead { display: none; }
  .transition-source-register tr { padding: 10px 14px; border-bottom: 1px solid var(--line); }
  .transition-source-register td { display: grid; grid-template-columns: 94px minmax(0, 1fr); padding: 6px 0; border: 0; }
  .transition-source-register td::before { content: attr(data-label); color: #737c86; font-size: .6875rem; font-weight: 820; text-transform: uppercase; }
}

* { box-sizing: border-box; }
html { min-width: 320px; max-width: 100%; overflow-x: hidden; background: var(--canvas); }
body { max-width: 100%; margin: 0; overflow-x: hidden; color: var(--ink); background: var(--canvas); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; letter-spacing: 0; }
[hidden] { display: none !important; }
dialog:not([open]) { display: none !important; }
html.dialog-fallback body.dialog-fallback-open { overflow: hidden; }
html.dialog-fallback body.dialog-fallback-open::before { content: ""; position: fixed; z-index: 999; inset: 0; background: rgba(5, 6, 7, .72); }
html.dialog-fallback dialog[open] { position: fixed; z-index: 1000; top: 50%; left: 50%; margin: 0; transform: translate(-50%, -50%); }
html.dialog-fallback .service-quick-panel[open] { top: 0; right: 0; bottom: 0; left: auto; transform: none; }
html.dialog-fallback .service-department-workspace[open] { top: 50%; left: 50%; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(23, 105, 199, .28); outline-offset: 2px; }
.eyebrow { color: #69717b; font-size: .75rem; font-weight: 800; letter-spacing: .08em; line-height: 1.3; text-transform: uppercase; }
.sr-only { position: absolute !important; overflow: hidden; width: 1px; height: 1px; padding: 0; margin: -1px; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Access screen */
.auth-screen { display: flex; min-height: 100vh; overflow: auto; flex-direction: column; color: var(--white); background: var(--black); }
.auth-header { position: relative; z-index: 2; display: flex; align-items: center; min-height: 88px; padding: 0 max(32px, calc((100vw - 1440px) / 2)); background: var(--black); border-bottom: 4px solid var(--yellow); }
.auth-header a { width: 252px; height: 60px; }
.auth-header img { width: 100%; height: 100%; object-fit: contain; object-position: left center; }
.auth-stage { display: grid; flex: 1; grid-template-columns: minmax(0, 1fr) clamp(500px, 36vw, 620px); min-height: calc(100vh - 88px); }
.auth-visual { position: relative; min-height: 600px; overflow: hidden; background: #090a0b url("../assets/tnt-cutter.jpg") center center / cover no-repeat; }
.auth-visual::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .16); box-shadow: inset -80px 0 100px rgba(0, 0, 0, .35); }
.auth-panel { display: flex; align-items: center; min-width: 0; padding: 0; color: var(--ink); background: #fbfbfc; border-left: 5px solid var(--yellow); }
.auth-panel-inner { width: min(420px, calc(100% - 80px)); margin: 0 auto; padding: 48px 0 38px; }
.auth-panel-head { display: flex; gap: 14px; align-items: center; }
.auth-lock { display: grid; place-items: center; width: 46px; height: 46px; color: var(--black); background: var(--yellow); border-radius: 4px; }
.auth-lock svg { width: 22px; }
.auth-panel-head p { color: var(--muted); font-size: .68rem; font-weight: 820; letter-spacing: .08em; text-transform: uppercase; }
.auth-panel-head h1 { margin-top: 3px; font-size: 2rem; line-height: 1.1; }
.auth-copy { margin-top: 21px; color: var(--muted); font-size: .86rem; line-height: 1.55; }
.auth-panel form { display: grid; gap: 10px; margin-top: 25px; }
.auth-panel label, .modal-form label { color: #30353b; font-size: .72rem; font-weight: 780; }
.label-line { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.plain-action { padding: 0; color: var(--blue); background: transparent; border: 0; font-size: .7rem; font-weight: 760; cursor: pointer; }
.field { position: relative; }
.field > svg { position: absolute; top: 50%; left: 13px; width: 18px; transform: translateY(-50%); color: #858c95; }
.field input, .modal-form input, .modal-form select { width: 100%; height: 47px; padding: 0 13px; color: var(--ink); background: var(--white); border: 1px solid #cbd0d6; border-radius: 4px; }
.field input { padding-left: 42px; }
.field input:focus, .modal-form input:focus, .modal-form select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23, 105, 199, .1); outline: 0; }
.field-button { position: absolute; top: 50%; right: 7px; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; transform: translateY(-50%); color: #737a84; background: transparent; border: 0; cursor: pointer; }
.field-button svg { width: 18px; }
.check-line { display: flex; gap: 8px; align-items: center; margin: 3px 0 6px; color: var(--muted) !important; font-weight: 560 !important; cursor: pointer; }
.check-line input, .readiness-list input { width: 17px; height: 17px; accent-color: var(--red); }
.form-message { min-height: 17px; color: var(--red); font-size: .7rem; line-height: 1.4; }
.button { display: inline-flex; gap: 8px; align-items: center; justify-content: center; min-height: 41px; padding: 9px 14px; border-radius: 4px; font-size: .72rem; font-weight: 820; cursor: pointer; }
.button svg { width: 16px; }
.button.primary { color: var(--white); background: var(--red); border: 1px solid var(--red); }
.button.primary:hover { background: #bd151d; }
.button.secondary { color: var(--ink); background: var(--white); border: 1px solid var(--line); }
.button.secondary:hover { background: #f6f7f8; border-color: #b9bec5; }
.button:disabled { opacity: .5; cursor: not-allowed; }
.button:disabled:hover { transform: none; }
.button.dark { color: var(--white); background: var(--black); border: 1px solid var(--black); }
.button.dark:hover { color: var(--yellow); }
.button.full { width: 100%; min-height: 48px; }
.review-entry { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-top: 21px; padding: 16px 0 0; background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.review-entry strong, .review-entry span { display: block; }
.review-entry strong { color: #42484f; font-size: .64rem; text-transform: uppercase; }
.review-entry span { margin-top: 3px; color: var(--muted); font-size: .59rem; }
.review-entry button { display: inline-flex; gap: 7px; align-items: center; min-height: 34px; padding: 6px 0 6px 8px; color: var(--blue); background: transparent; border: 0; font-size: .72rem; font-weight: 800; cursor: pointer; }
.review-entry svg { width: 16px; }
.return-link { display: inline-flex; gap: 7px; align-items: center; margin-top: 22px; color: var(--muted); font-size: .68rem; font-weight: 700; }
.return-link svg { width: 15px; }

/* Global workspace */
.workspace { width: 100%; min-width: 0; min-height: 100vh; overflow-x: clip; background: var(--canvas); }
.fixture-preview-banner { position: sticky; z-index: 100; top: 0; display: flex; gap: 12px; align-items: center; justify-content: center; min-height: 52px; padding: 10px 18px; color: #fff; background: #a20f19; border-bottom: 4px solid var(--yellow); box-shadow: 0 4px 18px rgba(0, 0, 0, .28); text-align: center; }
.fixture-preview-banner strong { flex: 0 0 auto; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.fixture-preview-banner span { font-size: .7rem; font-weight: 720; line-height: 1.35; }
.fixture-preview-active .workspace-header { top: 52px; }
.workspace-header { position: sticky; z-index: 50; top: 0; display: flex; align-items: center; width: 100%; max-width: 100vw; min-width: 0; min-height: 74px; overflow: hidden; padding: 0 clamp(20px, 3vw, 46px); color: var(--white); background: var(--black); border-bottom: 4px solid var(--yellow); }
.workspace-brand { flex: 0 0 auto; width: 210px; height: 54px; margin-right: 26px; }
.workspace-brand img { width: 100%; height: 100%; object-fit: contain; object-position: left center; }
.workspace-nav { display: flex; align-self: stretch; min-width: 0; }
.nav-tab { position: relative; display: flex; gap: 7px; align-items: center; justify-content: center; min-width: 78px; padding: 0 12px; color: #bfc4ca; background: transparent; border: 0; cursor: pointer; }
.nav-tab::after { content: ""; position: absolute; right: 12px; bottom: -4px; left: 12px; height: 4px; background: transparent; }
.nav-tab svg { width: 16px; }
.nav-tab span { font-size: .7rem; font-weight: 760; white-space: nowrap; }
.nav-tab b { display: grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px; color: var(--black); background: #c8cdd2; border-radius: 10px; font-size: .58rem; }
.nav-tab:hover { color: var(--white); background: #181a1d; }
.nav-tab.is-active { color: var(--white); }
.nav-tab.is-active::after { background: var(--yellow); }
.nav-tab.is-active svg { color: var(--yellow); }
.nav-tab.is-active b { color: var(--white); background: var(--red); }
.settings-tab { min-width: 67px; }
.workspace-tools { display: flex; flex: 0 0 auto; gap: 7px; align-items: center; margin-left: auto; }
.system-link { display: flex; gap: 7px; align-items: center; min-height: 37px; padding: 0 10px; border-radius: 4px; font-size: .66rem; font-weight: 800; }
.system-link > svg:first-child { width: 16px; }
.system-link > svg:last-child { width: 12px; opacity: .7; }
.essential-link { color: var(--black); background: var(--yellow); border: 1px solid var(--yellow); }
.email-link { color: var(--white); background: #1b1d20; border: 1px solid #34373b; }
.owner-button { display: grid; place-items: center; width: 37px; height: 37px; padding: 0; color: var(--white); background: #24272a; border: 1px solid #41454a; border-radius: 4px; cursor: pointer; }
.owner-button span { font-size: .66rem; font-weight: 850; }
.icon-button.mobile-menu-button, .mobile-nav-heading { display: none; }
.nav-scrim { display: none; }
.workspace-main { width: min(1480px, 100%); max-width: 100%; min-width: 0; margin: 0 auto; padding: 38px clamp(20px, 3vw, 44px) 64px; }
.view { display: none; min-width: 0; }
.view.is-active { display: block; animation: view-in .17s ease-out; }
@keyframes view-in { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.view-heading { display: flex; gap: 24px; align-items: flex-end; justify-content: space-between; min-width: 0; min-height: 82px; margin-bottom: 25px; }
.view-heading > div { min-width: 0; }
.view-heading h1 { margin-top: 6px; font-size: 2rem; line-height: 1.12; }
.view-heading > div > p:last-child { max-width: 760px; margin-top: 8px; color: var(--muted); font-size: .94rem; line-height: 1.5; }
.heading-actions { display: flex; gap: 8px; align-items: center; }
.period-select { display: flex; gap: 8px; align-items: center; height: 40px; padding: 0 10px; color: var(--muted); background: var(--white); border: 1px solid var(--line); border-radius: 4px; }
.period-select svg { width: 16px; }
.period-select select { color: var(--ink); background: transparent; border: 0; font-size: .7rem; font-weight: 760; outline: 0; }
.surface { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.surface-heading { display: flex; gap: 18px; align-items: center; justify-content: space-between; min-height: 66px; padding: 14px 17px; border-bottom: 1px solid var(--line); }
.surface-heading h2 { margin-top: 4px; font-size: 1.08rem; }
.count-label, .source-status { padding: 6px 9px; color: #5e4b00; background: var(--yellow-soft); border-radius: 4px; font-size: .72rem; font-weight: 800; }
.result-count { display: inline-flex; align-items: center; min-height: 32px; padding: 6px 10px; color: #49515a; background: #f0f2f4; border: 1px solid #d8dde1; border-radius: 999px; font-size: .78rem; font-weight: 800; line-height: 1; white-space: nowrap; }
.source-status.connected { color: var(--green); background: var(--green-soft); }
.source-status.stale { color: #775d00; background: #fff0ae; }
.icon-button { display: grid; place-items: center; flex: 0 0 auto; width: 38px; height: 38px; padding: 0; color: #555d66; background: var(--white); border: 1px solid var(--line); border-radius: 4px; cursor: pointer; }
.icon-button svg { width: 18px; }

/* Company overview */
.metric-ribbon { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--black); border-radius: var(--radius); }
.metric-ribbon.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metric-ribbon article { display: grid; grid-template-columns: 39px minmax(0, 1fr); gap: 12px; align-items: center; min-height: 114px; padding: 16px 19px; border-right: 1px solid var(--line); }
.metric-ribbon article:last-child { border-right: 0; }
.signal-icon { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 4px; }
.signal-icon svg { width: 19px; }
.signal-icon.blue { color: var(--blue); background: var(--blue-soft); }
.signal-icon.red { color: var(--red); background: var(--red-soft); }
.signal-icon.yellow { color: #705900; background: var(--yellow-soft); }
.signal-icon.green { color: var(--green); background: var(--green-soft); }
.metric-ribbon small, .metric-ribbon em { display: block; }
.metric-ribbon small { color: var(--muted); font-size: .64rem; font-weight: 720; }
.metric-ribbon strong { display: block; margin-top: 4px; font-size: 1.65rem; line-height: 1; }
.metric-ribbon em { margin-top: 6px; color: #858c95; font-size: .58rem; font-style: normal; }
.briefing-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(330px, .72fr); gap: 16px; align-items: stretch; margin-top: 16px; }
.attention-board { display: grid; grid-template-rows: auto 1fr auto; min-width: 0; overflow: hidden; }
.attention-heading { min-height: 76px; }
.attention-controls { display: flex; gap: 8px; align-items: center; }
.attention-filter { flex: 0 0 auto; }
.attention-add { width: 34px; height: 34px; color: var(--white); background: var(--black); border-color: var(--black); }
.attention-add:hover { color: var(--yellow); }
.decision-list { display: grid; }
.decision-list:focus-visible { outline: 3px solid rgba(24, 105, 180, .28); outline-offset: -3px; }
#attention-list { grid-auto-rows: minmax(112px, 1fr); }
.attention-footer { display: flex; gap: 16px; align-items: center; justify-content: space-between; min-height: 52px; padding: 9px 17px; background: #f7f8f9; border-top: 1px solid var(--line); }
.attention-footer > span { color: var(--muted); font-size: .64rem; line-height: 1.4; }
.attention-footer .section-link { flex: 0 0 auto; }
.attention-row { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto 16px; gap: 14px; align-items: center; min-height: 112px; padding: 16px 17px; background: transparent; border: 0; border-bottom: 1px solid var(--line); text-align: left; cursor: pointer; }
.attention-row:last-child { border-bottom: 0; }
.attention-row:hover { background: #fafbfc; }
.decision-state { width: 8px; height: 38px; border-radius: 2px; }
.decision-state.urgent { background: var(--red); }
.decision-state.important { background: var(--yellow); }
.decision-state.standard { background: #aeb4bc; }
.decision-state.complete { background: var(--green); }
.attention-copy { min-width: 0; }
.attention-title-line { display: flex; gap: 9px; align-items: center; }
.attention-title-line strong { min-width: 0; overflow-wrap: anywhere; line-height: 1.35; white-space: normal; }
.attention-status { display: inline-flex; flex: 0 0 auto; padding: 4px 6px; border-radius: 3px; font-size: .58rem; font-weight: 820; text-transform: uppercase; }
.attention-status.open { color: #5f4c00; background: var(--yellow-soft); }
.attention-status.in_progress { color: var(--blue); background: var(--blue-soft); }
.attention-status.waiting { color: #5f6670; background: #edf0f2; }
.attention-status.complete { color: var(--green); background: var(--green-soft); }
.decision-list strong { font-size: .76rem; }
.decision-list p { margin-top: 5px; color: var(--muted); font-size: .65rem; line-height: 1.45; }
.attention-meta { display: flex; gap: 14px; align-items: center; margin-top: 9px; color: #777f88; }
.attention-meta span { display: inline-flex; gap: 5px; align-items: center; font-size: .62rem; }
.attention-meta svg { width: 13px; }
.attention-row time { color: #8a9199; font-size: .58rem; font-weight: 760; text-transform: uppercase; }
.attention-row > svg { width: 15px; color: #9da3aa; }
.attention-empty { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 13px; align-items: center; min-height: 112px; padding: 17px; }
.attention-empty > span { display: grid; place-items: center; width: 42px; height: 42px; color: var(--green); background: var(--green-soft); border-radius: 50%; }
.attention-empty svg { width: 19px; }
.attention-empty strong { font-size: .79rem; }
.attention-empty p { margin-top: 5px; color: var(--muted); font-size: .69rem; line-height: 1.45; }
.grant-spotlight { padding: 21px; color: var(--black); background: var(--yellow); border: 1px solid #ddb900; border-top: 5px solid var(--red); border-radius: var(--radius); }
.grant-spotlight-top { display: flex; gap: 10px; align-items: center; }
.grant-spotlight-top > span { display: grid; place-items: center; width: 34px; height: 34px; color: var(--white); background: var(--black); border-radius: 4px; }
.grant-spotlight-top svg { width: 18px; }
.grant-spotlight-top p { color: #5d4b00; font-size: .62rem; font-weight: 850; text-transform: uppercase; }
.grant-spotlight > strong { display: block; margin-top: 24px; font-size: 2.3rem; line-height: 1; }
.grant-spotlight h2 { margin-top: 5px; font-size: 1.15rem; }
.grant-spotlight > p { margin-top: 12px; color: #594a00; font-size: .69rem; line-height: 1.55; }
.overview-sidebar { display: grid; grid-template-rows: auto 1fr; gap: 16px; min-width: 0; }
.overview-sidebar .marketing-brief { align-self: stretch; }
.spotlight-progress, .readiness-track, .project-track { height: 6px; overflow: hidden; background: rgba(0, 0, 0, .16); border-radius: 3px; }
.spotlight-progress { margin-top: 22px; }
.spotlight-progress span, .readiness-track span, .project-track span { display: block; height: 100%; background: var(--green); border-radius: inherit; }
.spotlight-meta { display: flex; justify-content: space-between; margin: 9px 0 20px; color: #594a00; font-size: .59rem; }
.spotlight-meta b { color: var(--black); }
.briefing-lower { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(330px, .72fr); gap: 16px; align-items: stretch; margin-top: 22px; }
.briefing-lower > * { min-width: 0; }
.briefing-signal-panel { display: grid; grid-template-rows: auto 1fr; overflow: hidden; }
.briefing-signal-panel .metric-ribbon { grid-template-columns: 1fr; border: 0; border-radius: 0; }
.briefing-signal-panel .metric-ribbon article { border-right: 0; border-bottom: 1px solid var(--line); }
.briefing-signal-panel .metric-ribbon article:last-child { border-bottom: 0; }
.segmented { display: inline-flex; padding: 3px; background: #eff1f3; border-radius: 4px; }
.segmented button { min-height: 28px; padding: 5px 10px; color: var(--muted); background: transparent; border: 0; border-radius: 3px; font-size: .61rem; font-weight: 760; cursor: pointer; }
.segmented button.is-active { color: var(--ink); background: var(--white); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.segmented.large button { min-height: 37px; padding: 7px 14px; font-size: .69rem; }
.section-link { display: inline-flex; gap: 6px; align-items: center; padding: 6px 0; color: var(--blue); background: transparent; border: 0; font-size: .64rem; font-weight: 800; cursor: pointer; }
.section-link svg { width: 14px; }
.section-link:hover { color: #0b54aa; }
.service-outlook-panel, .marketing-brief { overflow: hidden; }
.service-outlook-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: #f6f7f8; border-bottom: 1px solid var(--line); }
.service-outlook-metrics article { min-height: 96px; padding: 16px 18px; border-right: 1px solid var(--line); }
.service-outlook-metrics article:last-child { border-right: 0; }
.service-outlook-metrics small, .service-outlook-metrics strong, .service-outlook-metrics span { display: block; }
.service-outlook-metrics small { color: var(--muted); font-size: .61rem; font-weight: 800; text-transform: uppercase; }
.service-outlook-metrics strong { margin-top: 7px; color: var(--ink); font-size: 1.35rem; }
.service-outlook-metrics article:nth-child(2) strong { color: var(--red); }
.service-outlook-metrics article:nth-child(3) strong { color: #786000; }
.service-outlook-metrics span { margin-top: 4px; color: #858c94; font-size: .58rem; }
.service-outlook-list-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; min-height: 50px; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.service-outlook-list-heading strong { color: var(--ink); font-size: .72rem; }
.service-outlook-list-heading span { color: var(--muted); font-size: .61rem; }
.service-outlook-row { display: grid; grid-template-columns: minmax(112px, .58fr) minmax(210px, 1.2fr) auto 16px; gap: 13px; align-items: center; width: 100%; min-height: 68px; padding: 11px 18px; color: var(--ink); background: var(--white); border: 0; border-bottom: 1px solid var(--line); text-align: left; cursor: pointer; }
.service-outlook-row:hover { background: #fafbfc; }
.service-outlook-row > svg { width: 15px; color: #9ba1a8; }
.service-outlook-date small, .service-outlook-date strong, .service-outlook-department strong, .service-outlook-department small { display: block; }
.service-outlook-date small { color: var(--muted); font-size: .57rem; font-weight: 820; text-transform: uppercase; }
.service-outlook-date strong { margin-top: 4px; font-size: .7rem; }
.service-outlook-department strong { overflow-wrap: anywhere; font-size: .76rem; line-height: 1.35; white-space: normal; }
.service-outlook-department small { margin-top: 4px; color: var(--muted); font-size: .61rem; }
.service-outlook-symbol { display: grid; place-items: center; width: 38px; height: 38px; color: #6a5500; background: var(--yellow-soft); border-radius: 4px; }
.service-outlook-symbol svg { width: 18px; }
.service-outlook-row.needs-date { grid-template-columns: 42px minmax(210px, 1fr) auto 16px; }
.service-outlook-more { display: flex; gap: 7px; align-items: center; justify-content: center; width: 100%; min-height: 44px; color: var(--blue); background: #f8f9fa; border: 0; font-size: .62rem; font-weight: 800; cursor: pointer; }
.service-outlook-more svg { width: 14px; }
.service-outlook-empty { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 13px; align-items: center; min-height: 104px; padding: 17px 18px; }
.service-outlook-empty > span { display: grid; place-items: center; width: 42px; height: 42px; color: var(--teal); background: var(--teal-soft); border-radius: 4px; }
.service-outlook-empty > span svg { width: 20px; }
.service-outlook-empty strong { font-size: .76rem; }
.service-outlook-empty p { margin-top: 4px; color: var(--muted); font-size: .63rem; line-height: 1.4; }
.marketing-brief-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.marketing-brief-grid article { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 11px; align-items: center; min-height: 91px; padding: 14px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.marketing-brief-grid article:nth-child(even) { border-right: 0; }
.marketing-brief-grid article:nth-last-child(-n+2) { border-bottom: 0; }
.marketing-brief-grid .signal-icon { width: 38px; height: 38px; }
.marketing-brief-grid .signal-icon svg { width: 18px; }
.marketing-brief-grid small, .marketing-brief-grid strong { display: block; }
.marketing-brief-grid small { color: var(--muted); font-size: .59rem; font-weight: 760; }
.marketing-brief-grid strong { margin-top: 4px; font-size: 1rem; }
.marketing-brief-update { padding: 11px 16px; color: #727981; background: #f6f7f8; border-top: 1px solid var(--line); font-size: .58rem; }
.briefing-systems { margin-top: 16px; overflow: hidden; }
.systems-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.systems-links > a, .systems-links > button { display: grid; grid-template-columns: 39px minmax(0, 1fr) 15px; gap: 11px; align-items: center; min-height: 84px; width: 100%; padding: 12px 16px; background: transparent; border: 0; border-right: 1px solid var(--line); text-align: left; cursor: pointer; }
.systems-links > :last-child { border-right: 0; }
.systems-links > a:hover, .systems-links > button:hover { background: #fafbfc; }
.system-mark, .source-mark { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 4px; }
.system-mark svg, .source-mark svg { width: 18px; }
.system-mark.essential { color: var(--black); background: var(--yellow); }
.system-mark.grants { color: var(--red); background: var(--red-soft); }
.system-mark.service { color: var(--teal); background: var(--teal-soft); }
.system-mark.email { color: var(--blue); background: var(--blue-soft); }
.systems-panel strong { font-size: .72rem; }
.systems-panel p { margin-top: 4px; color: var(--muted); font-size: .61rem; line-height: 1.4; }
.systems-links > a > svg, .systems-links > button > svg { width: 15px; color: #9198a0; }

/* Grants */
.grant-window { display: grid; grid-template-columns: 245px minmax(0, 1fr); color: var(--white); background: var(--black); border-top: 5px solid var(--yellow); border-radius: var(--radius); }
.grant-window > div { padding: 22px 24px; border-right: 1px solid #34373b; }
.grant-window .eyebrow { color: var(--yellow); }
.grant-window > div > strong, .grant-window > div > span { display: block; }
.grant-window > div > strong { margin-top: 9px; font-size: 2rem; }
.grant-window > div > span { margin-top: 4px; color: #ccd1d6; font-size: .78rem; font-weight: 700; }
.grant-window dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.grant-window dl div { display: grid; align-content: center; min-height: 95px; padding: 15px 18px; border-right: 1px solid #34373b; }
.grant-window dt { color: #8e959d; font-size: .58rem; text-transform: uppercase; }
.grant-window dd { margin: 7px 0 0; font-size: .75rem; font-weight: 780; line-height: 1.35; }
.grant-window > p { grid-column: 1 / -1; display: flex; gap: 9px; align-items: center; padding: 11px 24px; color: #5f4d00; background: var(--yellow-soft); font-size: .65rem; line-height: 1.45; }
.grant-window > p svg { flex: 0 0 auto; width: 17px; }
.grant-work-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(320px, .62fr); gap: 16px; margin-top: 16px; }
.grant-work-grid > * { min-width: 0; }
.pipeline { display: grid; grid-template-columns: repeat(9, minmax(106px, 1fr)); width: 100%; min-width: 0; padding: 19px 17px 17px; overflow-x: auto; }
.pipeline div { position: relative; min-height: 72px; padding: 14px 9px; background: #f5f6f7; border-right: 1px solid var(--line); }
.pipeline div:first-child { border-radius: 4px 0 0 4px; }
.pipeline div:last-child { border-right: 0; border-radius: 0 4px 4px 0; }
.pipeline div.is-current { color: var(--black); background: var(--yellow-soft); box-shadow: inset 0 4px var(--yellow); }
.pipeline b, .pipeline span { display: block; }
.pipeline b { font-size: 1rem; }
.pipeline span { margin-top: 8px; color: var(--muted); font-size: .56rem; font-weight: 720; line-height: 1.35; }
.form-sources { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.form-sources > div { display: grid; grid-template-columns: 39px minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 78px; padding: 12px 16px; border-right: 1px solid var(--line); }
.form-sources > div:last-child { border-right: 0; }
.source-mark.blue { color: var(--blue); background: var(--blue-soft); }
.source-mark.red { color: var(--red); background: var(--red-soft); }
.source-mark.teal { color: var(--teal); background: var(--teal-soft); }
.source-mark.orange { color: var(--orange); background: #fff1e4; }
.form-sources strong, .form-sources small, .connection-list strong, .connection-list small, .role-list strong, .role-list small { display: block; }
.form-sources strong, .connection-list strong, .role-list strong { font-size: .69rem; }
.form-sources small, .connection-list small, .role-list small { margin-top: 4px; color: var(--muted); font-size: .58rem; line-height: 1.35; }
.form-sources > div > b { font-size: 1.1rem; }
.form-sources em, .connection-list em { padding: 5px 6px; color: #675300; background: var(--yellow-soft); border-radius: 3px; font-size: .54rem; font-style: normal; font-weight: 820; white-space: nowrap; }
.readiness-panel .surface-heading > strong { font-size: 1.1rem; }
.readiness-track { margin: 18px 17px 9px; background: #e4e7ea; }
.readiness-list { display: grid; gap: 2px; padding: 6px 17px 17px; }
.readiness-list label { display: flex; gap: 9px; align-items: center; min-height: 31px; color: #454b52; font-size: .64rem; cursor: pointer; }
.readiness-list p { display: flex; gap: 9px; align-items: flex-start; min-height: 38px; margin: 0; padding: 7px 0; color: #454b52; font-size: .68rem; line-height: 1.45; border-bottom: 1px solid var(--line); }
.readiness-list p:last-child { border-bottom: 0; }
.readiness-list p svg { flex: 0 0 auto; width: 17px; color: var(--green); }
.lead-board { margin-top: 16px; }
.lead-columns, .lead-row { display: grid; grid-template-columns: 1.15fr .75fr 1.4fr .72fr .62fr; }
.lead-columns { min-height: 42px; align-items: center; color: #747b84; background: #f5f6f7; border-bottom: 1px solid var(--line); }
.lead-columns span { padding: 8px 15px; font-size: .56rem; font-weight: 820; text-transform: uppercase; }
.lead-rows { display: grid; }
.lead-row { min-height: 63px; align-items: center; width: 100%; padding: 0; color: #383e45; background: var(--white); border: 0; border-bottom: 1px solid var(--line); text-align: left; cursor: pointer; }
.lead-row:hover { background: #fafbfc; }
.lead-row > span { min-width: 0; padding: 10px 15px; overflow-wrap: anywhere; font-size: .65rem; line-height: 1.35; white-space: normal; }
.lead-row strong, .lead-row small { display: block; }
.lead-row strong { overflow-wrap: anywhere; color: var(--ink); font-size: .7rem; line-height: 1.35; white-space: normal; }
.lead-row small { margin-top: 3px; color: var(--muted); font-size: .57rem; }
.sample-tag { display: inline-flex; width: fit-content; padding: 4px 6px; color: #5d4a00; background: var(--yellow-soft); border-radius: 3px; font-size: .55rem; font-weight: 820; }
.empty-state { display: grid; justify-items: center; padding: 44px 20px 50px; text-align: center; }
.empty-state > span { display: grid; place-items: center; width: 49px; height: 49px; color: #777f88; background: #eef0f2; border-radius: 50%; }
.empty-state > span svg { width: 22px; }
.empty-state h3 { margin-top: 14px; font-size: .85rem; }
.empty-state p { max-width: 470px; margin-top: 6px; color: var(--muted); font-size: .66rem; line-height: 1.5; }
.empty-state .button { margin-top: 16px; }

/* Service history */
.service-priority-ribbon { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.service-priority-ribbon > button { display: grid; grid-template-columns: 43px minmax(0, 1fr); gap: 11px; align-items: center; min-height: 104px; padding: 15px 16px; color: var(--ink); background: transparent; border: 0; border-right: 1px solid var(--line); text-align: left; cursor: pointer; }
.service-priority-ribbon > button:last-child { border-right: 0; }
.service-priority-ribbon > button:hover { background: #fafbfc; }
.service-priority-ribbon .signal-icon { width: 43px; height: 43px; }
.service-priority-ribbon small, .service-priority-ribbon strong, .service-priority-ribbon em { display: block; }
.service-priority-ribbon small { color: var(--muted); font-size: .58rem; font-weight: 820; text-transform: uppercase; }
.service-priority-ribbon strong { margin-top: 3px; font-size: 1.3rem; }
.service-priority-ribbon em { margin-top: 3px; color: #7b828a; font-size: .58rem; font-style: normal; line-height: 1.35; }
.service-record-summary { display: flex; gap: 6px 18px; align-items: center; flex-wrap: wrap; margin: 9px 2px 0; color: var(--muted); font-size: .62rem; }
.service-record-summary span { display: inline-flex; gap: 4px; align-items: center; }
.service-record-summary strong { color: var(--ink); }
.service-intake-tile { display: grid; grid-template-columns: 54px minmax(320px, 1fr) minmax(220px, auto) auto; gap: 17px; align-items: center; margin-bottom: 16px; padding: 18px; background: linear-gradient(135deg, #fffdf0, #fff); border: 1px solid #dfc339; border-left: 5px solid var(--yellow); border-radius: var(--radius); }
.service-intake-icon { display: grid; place-items: center; width: 54px; height: 54px; color: var(--black); background: var(--yellow); border-radius: 4px; }
.service-intake-icon svg { width: 25px; }
.service-intake-tile h2 { margin-top: 4px; font-size: 1rem; line-height: 1.3; }
.service-intake-tile > div > p:last-child { max-width: 720px; margin-top: 6px; color: var(--muted); font-size: .68rem; line-height: 1.5; }
.service-intake-tile ul { display: grid; gap: 7px; margin: 0; padding: 0; color: #4c545d; font-size: .64rem; font-weight: 720; list-style: none; }
.service-intake-tile li { display: flex; gap: 7px; align-items: center; }
.service-intake-tile li svg { width: 15px; color: var(--green); }
.service-upcoming-board { margin-top: 16px; overflow: hidden; }
.service-upcoming-heading { min-height: 76px; }
.service-upcoming-heading > div:first-child > p:last-child { max-width: 720px; margin-top: 5px; color: var(--muted); font-size: .66rem; line-height: 1.45; }
.service-upcoming-controls { display: flex; gap: 9px; align-items: center; }
.service-upcoming-controls > span { color: var(--muted); font-size: .64rem; font-weight: 740; }
.service-upcoming-controls select { height: 39px; padding: 0 10px; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 4px; font-size: .68rem; }
.service-upcoming-columns, .service-upcoming-row { display: grid; grid-template-columns: minmax(250px, 1.3fr) minmax(150px, .75fr) minmax(135px, .68fr) minmax(105px, .5fr) minmax(105px, .52fr) 32px; align-items: center; }
.service-upcoming-columns { min-height: 41px; color: #747b84; background: #f5f6f7; border-bottom: 1px solid var(--line); }
.service-upcoming-columns span { padding: 8px 14px; font-size: .61rem; font-weight: 820; text-transform: uppercase; }
.service-upcoming-list { display: grid; }
.service-upcoming-row { width: 100%; min-height: 69px; padding: 0; color: #3c4249; background: var(--white); border: 0; border-bottom: 1px solid var(--line); text-align: left; cursor: pointer; }
.service-upcoming-row:last-child { border-bottom: 0; }
.service-upcoming-row:hover { background: #fafbfc; }
.service-upcoming-row > span { min-width: 0; padding: 10px 14px; overflow-wrap: anywhere; font-size: .72rem; line-height: 1.4; white-space: normal; }
.service-upcoming-department strong, .service-upcoming-department small, .service-upcoming-date strong, .service-upcoming-date small { display: block; }
.service-upcoming-department strong, .service-upcoming-date strong { color: var(--ink); font-size: .78rem; }
.service-upcoming-department small, .service-upcoming-date small { margin-top: 3px; color: var(--muted); font-size: .64rem; }
.service-upcoming-row > svg { width: 16px; color: #8b929a; }
.service-upcoming-empty { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 13px; align-items: center; min-height: 100px; padding: 18px; }
.service-upcoming-empty > span { display: grid; place-items: center; width: 44px; height: 44px; color: var(--blue); background: var(--blue-soft); border-radius: 4px; }
.service-upcoming-empty svg { width: 21px; }
.service-upcoming-empty strong { font-size: .8rem; }
.service-upcoming-empty p { margin-top: 4px; color: var(--muted); font-size: .68rem; line-height: 1.45; }
.service-upcoming-boundary { display: flex; gap: 8px; align-items: flex-start; padding: 11px 14px; color: #545c65; background: #f5f6f7; border-top: 1px solid var(--line); font-size: .64rem; line-height: 1.45; }
.service-upcoming-boundary svg { flex: 0 0 auto; width: 15px; color: var(--blue); }
.service-board { margin-top: 16px; overflow: hidden; }
.service-board-heading { min-height: 82px; }
.service-board-heading > div:first-child > p:last-child { margin-top: 4px; color: var(--muted); font-size: .64rem; }
.service-filters { display: flex; gap: 8px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.service-filters .search-box { width: 270px; }
.service-filters select { width: 168px; height: 41px; padding: 0 9px; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 4px; font-size: .68rem; }
.service-columns, .service-row { display: grid; grid-template-columns: minmax(250px, 1.4fr) minmax(125px, .7fr) 70px 60px minmax(140px, .78fr) minmax(110px, .62fr) 38px; align-items: center; }
.service-columns { min-height: 42px; color: #747b84; background: #f5f6f7; border-bottom: 1px solid var(--line); }
.service-columns span { padding: 8px 14px; font-size: .63rem; font-weight: 820; text-transform: uppercase; }
.service-list { display: grid; }
.service-department-group { border-bottom: 1px solid var(--line); }
.service-department-group:last-child { border-bottom: 0; }
.service-row { width: 100%; min-height: 76px; padding: 0; color: #3c4249; background: var(--white); border: 0; text-align: left; cursor: pointer; }
.service-row:hover { background: #fafbfc; }
.service-department-row .status-tag[title] { cursor: pointer; }
.service-row > span { min-width: 0; padding: 10px 14px; overflow-wrap: anywhere; font-size: .74rem; line-height: 1.4; white-space: normal; }
.service-department strong, .service-department small { display: block; }
.service-department strong { overflow-wrap: anywhere; color: var(--ink); font-size: .88rem; line-height: 1.35; white-space: normal; }
.service-department small { margin-top: 4px; color: var(--muted); font-size: .7rem; }
.service-summary-value small, .service-summary-value strong { display: block; }
.service-summary-value small { display: none; color: var(--muted); font-size: .61rem; font-weight: 760; text-transform: uppercase; }
.service-summary-value strong { color: var(--ink); font-size: .76rem; }
.service-expand-icon { display: grid; place-items: center; color: #8b929a; }
.service-expand-icon svg { width: 18px; transition: transform .18s ease; }
.service-department-group.is-expanded .service-expand-icon svg { transform: rotate(180deg); }
.service-visit-panel { padding: 0 18px 16px 34px; background: #f6f7f8; border-top: 1px solid var(--line); }
.service-department-context { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) auto; gap: 18px; align-items: center; margin: 0 -18px 0 -34px; padding: 14px 18px 14px 34px; background: #eef1f4; border-bottom: 1px solid #d8dce0; }
.service-department-context > div { min-width: 0; }
.service-department-context small, .service-department-context strong { display: block; }
.service-department-context small { color: var(--muted); font-size: .56rem; font-weight: 820; text-transform: uppercase; }
.service-department-context strong { margin-top: 3px; font-size: .76rem; }
.service-department-context p { margin-top: 3px; overflow-wrap: anywhere; color: #68717a; font-size: .62rem; line-height: 1.4; }
.service-visit-columns, .service-visit-row { display: grid; grid-template-columns: minmax(260px, 1.45fr) minmax(130px, .68fr) minmax(140px, .72fr) 64px minmax(105px, .6fr) 36px; align-items: center; }
.service-visit-columns { min-height: 36px; color: #7b828a; border-bottom: 1px solid #d8dce0; }
.service-visit-columns span { padding: 8px 12px; font-size: .59rem; font-weight: 820; text-transform: uppercase; }
.service-visit-row { width: 100%; min-height: 66px; padding: 0; color: #41474e; background: transparent; border: 0; border-bottom: 1px solid #dde0e3; text-align: left; cursor: pointer; }
.service-visit-row:last-child { border-bottom: 0; }
.service-visit-row:hover { background: var(--white); }
.service-visit-row > span { min-width: 0; padding: 9px 12px; overflow-wrap: anywhere; font-size: .73rem; line-height: 1.4; white-space: normal; }
.service-visit-date strong, .service-visit-date small { display: block; }
.service-visit-date strong { color: var(--ink); font-size: .78rem; }
.service-visit-date small { margin-top: 3px; overflow-wrap: anywhere; color: var(--muted); font-size: .65rem; line-height: 1.35; white-space: normal; }
.confidence-tag { display: inline-flex; padding: 4px 6px; border-radius: 3px; font-size: .63rem; font-weight: 800; }
.confidence-tag.exact { color: var(--green); background: var(--green-soft); }
.confidence-tag.month { color: var(--blue); background: var(--blue-soft); }
.confidence-tag.year, .confidence-tag.unknown { color: #685300; background: var(--yellow-soft); }
.service-form-intro { padding: 12px 13px; color: #3e4954; background: #f1f4f7; border-left: 3px solid var(--blue); font-size: .75rem; line-height: 1.5; }
.service-existing-files { display: grid; gap: 6px; padding: 12px; background: #f7f8f9; border: 1px solid var(--line); border-radius: 4px; }
.service-existing-files > strong { color: var(--muted); font-size: .7rem; text-transform: uppercase; }
.service-existing-files button, .service-existing-files a { display: grid; grid-template-columns: 19px minmax(0, 1fr) 16px; gap: 9px; align-items: center; min-height: 38px; padding: 7px 9px; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 4px; text-align: left; text-decoration: none; cursor: pointer; }
.service-existing-files button:hover, .service-existing-files a:hover { border-color: #aeb5bd; }
.service-existing-files button svg, .service-existing-files a svg { width: 17px; color: var(--green); }
.service-existing-files button svg:last-child, .service-existing-files a svg:last-child { color: #8b929a; }
.service-existing-files button span, .service-existing-files a span { min-width: 0; overflow-wrap: anywhere; font-size: .72rem; font-weight: 720; line-height: 1.35; white-space: normal; }
.service-email-intake-notice { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 11px; align-items: center; padding: 13px 14px; color: #234b42; background: #eef8f4; border: 1px solid #b8ded1; border-left: 4px solid var(--green); border-radius: 4px; }
.service-email-intake-notice[hidden] { display: none; }
.service-email-intake-notice > svg { width: 23px; color: var(--green); }
.service-email-intake-notice strong, .service-email-intake-notice small { display: block; }
.service-email-intake-notice strong { font-size: .72rem; }
.service-email-intake-notice small { margin-top: 3px; color: #516b65; font-size: .62rem; line-height: 1.45; }
.service-boundary { align-items: flex-start; }
.service-history-modal { width: min(1120px, calc(100vw - 32px)); }
.service-department-status-modal { width: min(620px, calc(100vw - 32px)); }
.service-department-status-modal .modal-body { display: grid; gap: 14px; padding: 18px 19px; }
.service-department-status-modal .modal-body label { display: grid; gap: 7px; color: #30353b; font-size: .72rem; font-weight: 780; }
.service-department-status-modal select, .service-department-status-modal input, .service-department-status-modal textarea { width: 100%; padding: 0 13px; color: var(--ink); background: var(--white); border: 1px solid #cbd0d6; border-radius: 4px; }
.service-department-status-modal select, .service-department-status-modal input { height: 47px; }
.service-department-status-modal textarea { min-height: 86px; padding-top: 11px; resize: vertical; line-height: 1.45; }
.service-status-behavior, .service-plan-behavior { padding: 11px 12px; color: #42505d; background: var(--blue-soft); border-left: 3px solid var(--blue); font-size: .67rem; line-height: 1.45; }
.service-plan-behavior { background: #fff8d6; border-left-color: var(--yellow); }
.service-plan-source { margin-top: -5px; color: var(--muted); font-size: .62rem; line-height: 1.45; }
.service-report-modal { width: min(1280px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: hidden; }
.service-report-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); min-height: min(610px, calc(100vh - 180px)); }
.service-report-options { display: grid; align-content: start; padding: 12px; background: #f3f4f5; border-right: 1px solid var(--line); }
.service-report-options button { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; align-items: center; min-height: 72px; padding: 11px 12px; color: #3f464e; background: transparent; border: 1px solid transparent; border-radius: 4px; text-align: left; cursor: pointer; }
.service-report-options button:hover { background: var(--white); }
.service-report-options button.is-active { color: var(--ink); background: var(--white); border-color: #d5d9dd; box-shadow: inset 4px 0 0 var(--yellow); }
.service-report-options button > svg { width: 20px; color: var(--blue); }
.service-report-options strong, .service-report-options small { display: block; }
.service-report-options strong { font-size: .72rem; }
.service-report-options small { margin-top: 4px; color: var(--muted); font-size: .6rem; line-height: 1.4; }
.service-report-preview { min-width: 0; padding: 20px; overflow: auto; }
.service-report-preview > header h3 { margin-top: 4px; font-size: 1.25rem; }
.service-report-preview > header > p:last-child { max-width: 780px; margin-top: 5px; color: var(--muted); font-size: .7rem; line-height: 1.45; }
.service-report-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 17px; overflow: hidden; border: 1px solid var(--line); border-radius: 4px; }
.service-report-metrics article { min-width: 0; padding: 12px 14px; border-right: 1px solid var(--line); }
.service-report-metrics article:last-child { border-right: 0; }
.service-report-metrics small, .service-report-metrics strong { display: block; }
.service-report-metrics small { color: var(--muted); font-size: .56rem; font-weight: 800; text-transform: uppercase; }
.service-report-metrics strong { margin-top: 4px; font-size: 1.1rem; }
.service-report-table-scroll { max-height: 390px; margin-top: 16px; border: 1px solid var(--line); }
.service-report-table-scroll table { min-width: 780px; }
.service-report-table-scroll th { position: sticky; z-index: 1; top: 0; background: #f4d51c; }
.service-report-table-scroll td { max-width: 260px; overflow-wrap: anywhere; white-space: normal; }
.service-report-preview-note { margin-top: 14px; padding: 11px 12px; color: #525b64; background: #f4f5f6; border-left: 3px solid var(--yellow); font-size: .64rem; line-height: 1.45; }
.service-report-actions { position: sticky; z-index: 3; bottom: 0; background: var(--white); }
.service-report-actions > span { margin-right: auto; color: var(--muted); font-size: .64rem; font-weight: 740; }
.service-record-details { overflow: hidden; border: 1px solid var(--line); border-radius: 5px; }
.service-record-details-heading { display: flex; gap: 18px; align-items: flex-start; justify-content: space-between; padding: 16px; background: #f7f8f9; border-bottom: 1px solid var(--line); }
.service-record-details-heading h3 { margin-top: 2px; font-size: 1rem; }
.service-record-details-heading p:last-child { max-width: 720px; margin-top: 5px; color: var(--muted); font-size: .68rem; line-height: 1.45; }
.service-detail-metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.service-detail-metrics article { min-width: 0; padding: 11px 14px; border-right: 1px solid var(--line); }
.service-detail-metrics article:last-child { border-right: 0; }
.service-detail-metrics small, .service-detail-metrics strong { display: block; }
.service-detail-metrics small { color: var(--muted); font-size: .58rem; font-weight: 760; text-transform: uppercase; }
.service-detail-metrics strong { margin-top: 4px; font-size: 1rem; }
.service-contact-line { color: #4f667b !important; font-weight: 700; overflow-wrap: anywhere; }
.service-contact-history { border-bottom: 1px solid var(--line); }
.service-contact-history-heading { display: flex; gap: 18px; align-items: flex-start; justify-content: space-between; padding: 14px 16px; background: #fbfbfc; border-bottom: 1px solid var(--line); }
.service-contact-history-heading h4 { margin-top: 2px; color: var(--ink); font-size: .9rem; }
.service-contact-history-heading p:last-child { max-width: 720px; margin-top: 4px; color: var(--muted); font-size: .66rem; line-height: 1.45; }
.service-contact-history-heading > span { flex: 0 0 auto; color: var(--muted); font-size: .64rem; font-weight: 760; }
.service-contact-list { display: grid; }
.service-contact-card { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(210px, .7fr) auto; gap: 14px; align-items: center; min-height: 78px; padding: 11px 16px; border-bottom: 1px solid var(--line); }
.service-contact-card:last-child { border-bottom: 0; }
.service-contact-card.is-suggested { background: #f8fbfe; box-shadow: inset 3px 0 0 var(--blue); }
.service-contact-card-main { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 10px; align-items: center; min-width: 0; }
.service-contact-avatar { display: grid; place-items: center; width: 38px; height: 38px; color: var(--blue); background: var(--blue-soft); border-radius: 50%; }
.service-contact-avatar svg { width: 18px; }
.service-contact-card-main p { color: var(--muted); font-size: .56rem; font-weight: 820; text-transform: uppercase; }
.service-contact-card-main strong { display: block; margin-top: 2px; overflow-wrap: anywhere; color: var(--ink); font-size: .78rem; }
.service-contact-card-main small { display: block; margin-top: 3px; overflow-wrap: anywhere; color: var(--muted); font-size: .62rem; line-height: 1.4; }
.service-contact-card-meta { display: grid; gap: 6px; justify-items: start; min-width: 0; }
.service-contact-links { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; min-width: 0; }
.service-contact-links a { display: inline-flex; gap: 4px; align-items: center; max-width: 100%; overflow-wrap: anywhere; color: var(--blue); font-size: .62rem; font-weight: 700; }
.service-contact-links svg { flex: 0 0 auto; width: 13px; }
.service-contact-actions { display: flex; gap: 5px; justify-content: flex-end; flex-wrap: wrap; }
.service-contact-actions button { min-height: 29px; padding: 5px 7px; color: #4e5862; background: var(--white); border: 1px solid #cfd4d9; border-radius: 3px; font-size: .59rem; font-weight: 760; cursor: pointer; }
.service-contact-actions button:first-child { color: var(--green); border-color: #a9c6b6; }
.service-contact-actions button:hover { background: #f5f6f7; }
.service-contact-actions button:disabled { opacity: .55; cursor: wait; }
.service-observation-scroll { max-height: 360px; }
.service-observation-scroll table { min-width: 880px; }
.service-observation-scroll td { vertical-align: top; white-space: normal; }
.service-observation-scroll td:nth-child(4) { min-width: 300px; line-height: 1.45; }
.service-observation-result { color: var(--muted); font-size: .65rem; line-height: 1.45; }
.service-observation-empty { padding: 16px; color: var(--muted); font-size: .72rem; }
.service-history-modal .modal-actions { position: sticky; z-index: 3; bottom: 0; background: var(--white); }

/* Marketing */
.marketing-stack { display: grid; min-width: 0; gap: 30px; }
.marketing-pane, .marketing-context-grid > * { display: block; min-width: 0; }
.marketing-section-heading { display: flex; gap: 20px; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }
.marketing-section-heading > div { min-width: 0; }
.marketing-section-heading h2 { margin-top: 3px; font-size: 1.3rem; }
.marketing-section-heading > div > p:last-child { max-width: 720px; margin-top: 5px; overflow-wrap: anywhere; color: var(--muted); font-size: .72rem; line-height: 1.45; }
.website-report-status { display: flex; gap: 8px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.website-report-status .source-status { max-width: 360px; text-align: center; }
.button.compact { min-height: 34px; padding: 7px 11px; }
.reporting-notice { margin: -2px 0 14px; padding: 10px 12px; color: #5e4b00; background: var(--yellow-soft); border-left: 4px solid var(--yellow); border-radius: 3px; font-size: .67rem; line-height: 1.45; }
.reporting-notice.is-warning { color: #6d5600; }
.marketing-context-grid { display: grid; grid-template-columns: minmax(340px, .72fr) minmax(0, 1.28fr); gap: 16px; margin-top: 16px; }
.website-trend { display: grid; grid-template-columns: minmax(190px, .8fr) minmax(220px, 1.2fr); align-items: stretch; }
.website-trend-copy { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; flex-direction: column; padding: 16px 18px; border-right: 1px solid var(--line); }
.website-trend-copy h2 { margin-top: 4px; font-size: .95rem; }
.website-trend-copy p:last-child { margin-top: 6px; color: var(--muted); font-size: .61rem; line-height: 1.45; }
.website-trend-visual { min-width: 0; padding: 10px 14px 11px; }
.session-chart { display: grid; grid-template-columns: repeat(20, 1fr); gap: 4px; align-items: end; height: 82px; padding-top: 6px; border-bottom: 1px solid var(--line); }
.session-chart span { min-height: 4px; height: var(--bar); background: var(--red); border-radius: 2px 2px 0 0; opacity: .82; }
.session-chart .session-bar-level-1 { height: 10%; }
.session-chart .session-bar-level-2 { height: 20%; }
.session-chart .session-bar-level-3 { height: 30%; }
.session-chart .session-bar-level-4 { height: 40%; }
.session-chart .session-bar-level-5 { height: 50%; }
.session-chart .session-bar-level-6 { height: 60%; }
.session-chart .session-bar-level-7 { height: 70%; }
.session-chart .session-bar-level-8 { height: 80%; }
.session-chart .session-bar-level-9 { height: 90%; }
.session-chart .session-bar-level-10 { height: 100%; }
.chart-axis { display: flex; justify-content: space-between; margin-top: 5px; color: var(--muted); font-size: .53rem; }
.connection-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0 14px 12px; }
.connection-list > a { display: grid; grid-template-columns: 39px minmax(0, 1fr); gap: 10px; align-items: center; min-height: 91px; padding: 10px 12px; border-right: 1px solid var(--line); }
.connection-list > a:last-child { border-right: 0; }
.connection-list > a:hover { background: #fafbfc; }
.connection-list > a > span:last-child { display: none; }
.connection-list > a > span:last-child svg { width: 14px; }
.connection-list b { padding: 4px 6px; color: var(--green); background: var(--green-soft); border-radius: 3px; font-size: .54rem; }
.social-status { display: flex; gap: 10px; align-items: center; justify-content: flex-end; color: var(--muted); font-size: .67rem; white-space: nowrap; }
.platform-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.platform-card { overflow: hidden; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--black); border-radius: var(--radius); }
.platform-card header { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 13px; align-items: center; padding: 19px; }
.platform-card header > span { display: grid; place-items: center; width: 46px; height: 46px; color: var(--white); background: var(--black); border-radius: 4px; }
.platform-card.instagram { border-top-color: #b72172; }
.platform-card.instagram header > span { background: #b72172; }
.platform-card.facebook { border-top-color: #1769c7; }
.platform-card.facebook header > span { background: #1769c7; }
.platform-card.twitter { border-top-color: #17191c; }
.platform-card header svg { width: 21px; }
.platform-card header p { color: var(--muted); font-size: .7rem; font-weight: 800; }
.platform-card header strong { display: block; margin-top: 5px; font-size: 1.65rem; line-height: 1; }
.platform-card header small { display: block; margin-top: 4px; color: var(--muted); font-size: .64rem; }
.platform-card dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; background: #f7f8f9; border-top: 1px solid var(--line); }
.platform-card dl div { padding: 12px 14px; border-right: 1px solid var(--line); }
.platform-card dl div:last-child { border-right: 0; }
.platform-card dt { color: var(--muted); font-size: .57rem; text-transform: uppercase; }
.platform-card dd { margin: 6px 0 0; font-size: .76rem; font-weight: 820; }
.social-board { margin-top: 16px; }
.table-scroll { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { height: 43px; padding: 8px 15px; color: #747b84; background: #f5f6f7; border-bottom: 1px solid var(--line); font-size: .57rem; font-weight: 820; text-align: left; text-transform: uppercase; white-space: nowrap; }
td { height: 58px; padding: 10px 15px; color: #393f46; border-bottom: 1px solid var(--line); font-size: .66rem; }
tbody tr:last-child td { border-bottom: 0; }
.channel { display: inline-flex; padding: 4px 6px; color: #1458a9; background: var(--blue-soft); border-radius: 3px; font-size: .56rem; font-weight: 820; }
.post-link { color: var(--ink); font-weight: 690; }
.post-link:hover { color: var(--blue); }
.post-link svg { display: inline; width: 13px; vertical-align: -2px; }

/* Library */
.library-home { padding: 2px 0 0; }
.library-home-heading { display: flex; gap: 20px; align-items: flex-end; justify-content: space-between; margin-bottom: 15px; }
.library-home-heading h2 { margin-top: 5px; font-size: 1.2rem; }
.library-home-heading .plain-action { display: inline-flex; gap: 6px; align-items: center; }
.library-home-heading .plain-action svg { width: 15px; }
.document-intake-tile { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto auto; gap: 16px; align-items: center; margin-bottom: 17px; padding: 17px; background: linear-gradient(135deg, #fffdf0, #fff); border: 1px solid #dfc339; border-left: 5px solid var(--yellow); border-radius: var(--radius); }
.document-intake-tile[hidden] { display: none; }
.document-intake-icon { display: grid; place-items: center; width: 52px; height: 52px; color: #685300; background: var(--yellow); border-radius: 4px; }
.document-intake-icon svg { width: 25px; }
.document-intake-copy h2 { margin-top: 4px; font-size: 1rem; }
.document-intake-copy > p:last-child { max-width: 720px; margin-top: 5px; color: var(--muted); font-size: .64rem; line-height: 1.45; }
.document-intake-count { min-width: 92px; padding: 8px 14px; border-left: 1px solid #e8d76c; text-align: center; }
.document-intake-count strong, .document-intake-count span { display: block; }
.document-intake-count strong { font-size: 1.35rem; line-height: 1; }
.document-intake-count span { margin-top: 5px; color: var(--muted); font-size: .56rem; font-weight: 780; text-transform: uppercase; }
.document-intake-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.folder-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.folder-card { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto 16px; gap: 13px; align-items: center; min-height: 106px; padding: 16px; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); text-align: left; cursor: pointer; }
.folder-card:hover { border-color: #aeb4bc; box-shadow: 0 4px 12px rgba(0, 0, 0, .05); transform: translateY(-1px); }
.folder-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 4px; }
.folder-icon svg { width: 21px; }
.folder-icon.yellow { color: #685300; background: var(--yellow-soft); }
.folder-icon.blue { color: var(--blue); background: var(--blue-soft); }
.folder-icon.red { color: var(--red); background: var(--red-soft); }
.folder-icon.teal { color: var(--teal); background: var(--teal-soft); }
.folder-icon.green { color: var(--green); background: var(--green-soft); }
.folder-icon.orange { color: var(--orange); background: #fff1e4; }
.folder-card strong, .folder-card small { display: block; }
.folder-card strong { font-size: .79rem; }
.folder-card small { margin-top: 5px; color: var(--muted); font-size: .65rem; line-height: 1.4; }
.folder-card > b { display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 7px; color: #5c636c; background: #f0f2f4; border-radius: 14px; font-size: .65rem; }
.folder-card > svg { width: 15px; color: #949ba3; }
.library-location-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; margin-bottom: 12px; }
.library-breadcrumb { display: flex; gap: 8px; align-items: center; min-width: 0; min-height: 42px; overflow-x: auto; color: var(--muted); white-space: nowrap; }
.library-breadcrumb button { display: inline-flex; gap: 6px; align-items: center; padding: 0; color: var(--blue); background: transparent; border: 0; font-size: .7rem; font-weight: 780; cursor: pointer; }
.library-breadcrumb button svg, .library-breadcrumb > svg { width: 15px; }
.library-breadcrumb strong { color: var(--ink); font-size: .72rem; }
.library-export-folder { flex: 0 0 auto; white-space: nowrap; }
.library-subfolders { margin-bottom: 13px; padding: 15px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.library-subfolders-heading { display: flex; gap: 18px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.library-subfolders-heading h3 { margin-top: 4px; font-size: .92rem; }
.schematic-folder-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.schematic-folder { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto 15px; gap: 10px; align-items: center; min-height: 74px; padding: 11px; color: var(--ink); background: #f6f7f8; border: 1px solid transparent; border-radius: 4px; text-align: left; cursor: pointer; }
.schematic-folder:hover, .schematic-folder.is-active { background: var(--yellow-soft); border-color: #e1c834; }
.schematic-folder > span:first-child { display: grid; place-items: center; width: 38px; height: 38px; color: #685300; background: var(--yellow); border-radius: 4px; }
.schematic-folder svg { width: 18px; }
.schematic-folder strong, .schematic-folder small { display: block; }
.schematic-folder strong { font-size: .72rem; }
.schematic-folder small { margin-top: 3px; color: var(--muted); font-size: .57rem; line-height: 1.35; }
.schematic-folder > b { color: #5c636c; font-size: .64rem; }
.schematic-folder > svg { width: 14px; color: #8f969e; }
.library-toolbar { display: grid; grid-template-columns: minmax(300px, 1fr) 180px 180px 180px; gap: 10px; margin-bottom: 13px; }
.search-box { position: relative; }
.search-box svg { position: absolute; top: 50%; left: 13px; width: 17px; transform: translateY(-50%); color: #838a93; }
.search-box input, .library-toolbar select { width: 100%; height: 41px; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 4px; font-size: .68rem; }
.search-box input { padding: 0 12px 0 39px; }
.library-toolbar select { padding: 0 10px; }
.file-board-head { display: flex; gap: 20px; align-items: center; min-height: 54px; padding: 12px 16px; color: var(--muted); border-bottom: 1px solid var(--line); font-size: .63rem; }
.file-board-head span { display: inline-flex; gap: 6px; align-items: center; }
.file-board-head svg { width: 14px; }
.file-board-head small { margin-left: auto; color: #858c95; font-size: .58rem; }
.file-columns, .file-row { display: grid; grid-template-columns: minmax(320px, 2fr) minmax(150px, .75fr) minmax(180px, .9fr) minmax(100px, .45fr) 105px 42px; }
.file-columns { min-height: 42px; align-items: center; color: #747b84; background: #f5f6f7; border-bottom: 1px solid var(--line); }
.file-columns span { padding: 8px 15px; font-size: .56rem; font-weight: 820; text-transform: uppercase; }
.file-row { min-height: 67px; align-items: center; width: 100%; padding: 0; color: var(--ink); background: var(--white); border: 0; border-bottom: 1px solid var(--line); text-align: left; cursor: pointer; }
.file-row:last-child { border-bottom: 0; }
.file-row:hover { background: #fafbfc; }
.file-row > div, .file-row > span { min-width: 0; padding: 10px 15px; overflow-wrap: anywhere; font-size: .64rem; line-height: 1.35; white-space: normal; }
.file-name { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; align-items: center; }
.file-name > span { display: grid; place-items: center; width: 36px; height: 40px; color: var(--red); background: var(--red-soft); border-radius: 4px; }
.file-name svg { width: 19px; }
.file-name strong, .file-name small { display: block; }
.file-name strong { overflow-wrap: anywhere; font-size: .7rem; line-height: 1.35; white-space: normal; }
.file-name small { margin-top: 3px; color: var(--muted); overflow-wrap: anywhere; font-size: .57rem; line-height: 1.4; }
.file-type-cell strong, .file-type-cell small { display: block; }
.file-type-cell strong { overflow-wrap: anywhere; line-height: 1.3; white-space: normal; }
.file-type-cell small { width: fit-content; margin-top: 4px; padding: 3px 5px; color: #555d66; background: #eef0f2; border-radius: 3px; font-size: .54rem; font-weight: 820; line-height: 1; }
.status-tag { display: inline-flex; width: fit-content; padding: 4px 6px; border-radius: 3px; font-size: .54rem; font-weight: 820; text-transform: uppercase; }
.file-row .status-tag { max-width: 100%; overflow-wrap: normal; line-height: 1.25; text-align: left; white-space: normal; word-break: normal; }
.status-tag.current { color: var(--green); background: var(--green-soft); }
.status-tag.reference { color: var(--blue); background: var(--blue-soft); }
.status-tag.amber { color: #685300; background: var(--yellow-soft); }
.status-tag.pending, .status-tag.quote_needed, .status-tag.drafting, .status-tag.department_review { color: #685300; background: var(--yellow-soft); }
.status-tag.filing { color: var(--teal); background: var(--teal-soft); }
.status-tag.unfiled { color: #a8131b; background: var(--red-soft); }
.status-tag.new, .status-tag.qualifying { color: var(--blue); background: var(--blue-soft); }
.status-tag.submitted { color: var(--teal); background: var(--teal-soft); }
.status-tag.awarded { color: var(--green); background: var(--green-soft); }
.status-tag.not_awarded, .status-tag.rejected { color: #a8131b; background: var(--red-soft); }
.status-tag.closed, .status-tag.archived { color: #5f6670; background: #eceef1; }
.status-tag.neutral { color: #5f6670; background: #eceef1; }
.file-action { width: 31px; height: 31px; border: 0; }
.file-open-icon { display: grid; place-items: center; width: 31px; height: 31px; margin: auto; color: #7b838c; }
.file-open-icon svg { width: 17px; }

/* Projects */
.work-assignments { margin-bottom: 22px; }
.work-assignments-heading { min-height: 82px; }
.work-assignment-actions { display: flex; gap: 10px; align-items: center; }
.work-assignment-filter { flex: 0 0 auto; }
.work-assignment-toolbar { display: grid; grid-template-columns: minmax(280px, 1fr) 190px 170px; gap: 10px; padding: 14px 17px; background: #f7f8f9; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.work-assignment-toolbar select { width: 100%; min-height: 39px; padding: 0 34px 0 11px; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 4px; font: inherit; font-size: .66rem; }
.work-assignment-summary { display: flex; gap: 14px; align-items: center; justify-content: space-between; min-height: 45px; padding: 8px 17px; border-bottom: 1px solid var(--line); }
.work-assignment-summary span { color: var(--ink); font-size: .64rem; font-weight: 820; }
.work-assignment-summary small { color: var(--muted); font-size: .6rem; }
.work-assignment-list { max-height: 620px; overflow-y: auto; }
.work-systems-heading { margin: 30px 0 14px; }
.work-systems-heading h2 { margin-top: 5px; font-size: 1.05rem; }
.work-systems-heading > p:last-child { margin-top: 6px; color: var(--muted); font-size: .69rem; line-height: 1.5; }
.project-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.project-board article { min-height: 255px; padding: 18px; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--black); border-radius: var(--radius); }
.project-line { display: grid; grid-template-columns: 39px minmax(0, 1fr) auto; gap: 11px; align-items: center; }
.project-icon { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 4px; }
.project-icon svg { width: 19px; }
.project-icon.red { color: var(--red); background: var(--red-soft); }
.project-icon.yellow { color: #6d5700; background: var(--yellow-soft); }
.project-icon.blue { color: var(--blue); background: var(--blue-soft); }
.project-line p { color: var(--muted); font-size: .57rem; font-weight: 820; text-transform: uppercase; }
.project-line h2 { margin-top: 4px; font-size: .9rem; }
.project-line > b { font-size: .95rem; }
.project-board article > p { min-height: 60px; margin-top: 22px; color: var(--muted); font-size: .68rem; line-height: 1.5; }
.project-track { margin-top: 14px; background: #e4e7ea; }
.project-board footer { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.project-board footer span { color: #808790; font-size: .58rem; }
.project-board footer button, .project-board footer a { padding: 0; color: var(--blue); background: transparent; border: 0; font-size: .62rem; font-weight: 780; cursor: pointer; }
.work-history { margin-top: 16px; }
.history-list { display: grid; padding: 7px 17px 15px; }
.history-list > div { display: grid; grid-template-columns: 70px 11px minmax(0, 1fr); gap: 12px; min-height: 70px; align-items: center; }
.history-list time { color: #808790; font-size: .6rem; }
.history-list > div > span { width: 9px; height: 9px; background: var(--green); border: 2px solid var(--green-soft); border-radius: 50%; }
.history-list strong, .history-list small { display: block; }
.history-list strong { font-size: .71rem; }
.history-list small { margin-top: 4px; color: var(--muted); font-size: .61rem; line-height: 1.4; }
.workspace-guide, .access-guide, .access-audit { margin-top: 16px; overflow: hidden; }
.workspace-guide summary, .access-guide summary, .access-audit summary { display: flex; gap: 16px; align-items: center; justify-content: space-between; min-height: 68px; padding: 13px 17px; cursor: pointer; list-style: none; }
.workspace-guide summary::-webkit-details-marker, .access-guide summary::-webkit-details-marker, .access-audit summary::-webkit-details-marker { display: none; }
.workspace-guide summary > span, .access-guide summary > span, .access-audit summary > span { display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 11px; align-items: center; min-width: 0; }
.workspace-guide summary > span > svg, .access-guide summary > span > svg, .access-audit summary > span > svg { grid-row: 1 / span 2; width: 20px; color: var(--blue); }
.access-audit summary > span > svg { color: var(--green); }
.workspace-guide summary strong, .workspace-guide summary small, .access-guide summary strong, .access-guide summary small, .access-audit summary strong, .access-audit summary small { display: block; grid-column: 2; }
.workspace-guide summary strong, .access-guide summary strong, .access-audit summary strong { font-size: .78rem; }
.workspace-guide summary small, .access-guide summary small, .access-audit summary small { margin-top: 4px; color: var(--muted); font-size: .68rem; line-height: 1.4; }
.workspace-guide summary > svg, .access-guide summary > svg, .access-audit summary > svg { flex: 0 0 auto; width: 18px; color: #737b84; transition: transform .18s ease; }
.workspace-guide[open] summary > svg, .access-guide[open] summary > svg, .access-audit[open] summary > svg { transform: rotate(180deg); }
.workspace-guide[open] summary, .access-guide[open] summary, .access-audit[open] summary { border-bottom: 1px solid var(--line); }
.access-guide .access-grid { gap: 0; }
.access-guide .access-grid > section { min-width: 0; }
.access-guide .access-grid > section:first-child { border-right: 1px solid var(--line); }

/* Access */
.user-board { margin-bottom: 16px; }
.access-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.user-cell { display: flex; gap: 9px; align-items: center; min-width: 210px; }
.user-avatar { display: grid; place-items: center; width: 33px; height: 33px; color: var(--white); background: var(--black); border-radius: 4px; font-size: .58rem; font-weight: 850; }
.user-cell strong, .user-cell small { display: block; }
.user-cell strong { font-size: .68rem; }
.user-cell small { margin-top: 3px; color: var(--muted); font-size: .56rem; }
.role-tag { display: inline-flex; padding: 4px 6px; color: #4e555d; background: #edf0f2; border-radius: 3px; font-size: .55rem; font-weight: 780; }
.role-tag.owner { color: #675300; background: var(--yellow-soft); }
.user-status { display: grid; gap: 5px; justify-items: start; }
.active-label { color: var(--green); font-size: .58rem; font-weight: 820; }
.active-label.inactive { color: #8b3036; }
.user-login-activity { color: var(--muted); font-size: .56rem; line-height: 1.35; white-space: nowrap; }
.role-list { display: grid; padding: 4px 16px 14px; }
.role-list > div { display: grid; grid-template-columns: 39px minmax(0, 1fr); gap: 11px; align-items: center; min-height: 74px; border-bottom: 1px solid var(--line); }
.role-list > div:last-child { border-bottom: 0; }
.security-list { display: grid; gap: 0; margin: 0; padding: 10px 17px 16px; list-style: none; }
.security-list li { display: flex; gap: 9px; align-items: center; min-height: 38px; color: #454b52; font-size: .65rem; }
.security-list svg { width: 15px; color: var(--green); }
.signout-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) 17px; gap: 12px; align-items: center; width: 100%; min-height: 72px; margin-top: 16px; padding: 12px 16px; color: #41474e; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); text-align: left; cursor: pointer; }
.signout-row > svg:first-child { width: 20px; color: var(--red); }
.signout-row > svg:last-child { width: 16px; color: #8d949c; }
.signout-row strong, .signout-row small { display: block; }
.signout-row strong { font-size: .7rem; }
.signout-row small { margin-top: 4px; color: var(--muted); font-size: .59rem; }

/* Modals */
.modal { width: min(720px, calc(100% - 32px)); max-height: calc(100vh - 40px); padding: 0; overflow: auto; color: var(--ink); background: var(--white); border: 0; border-radius: var(--radius); box-shadow: 0 25px 70px rgba(0, 0, 0, .35); }
.modal::backdrop { background: rgba(5, 6, 7, .72); backdrop-filter: blur(2px); }
.modal-head { display: flex; gap: 18px; align-items: center; justify-content: space-between; min-height: 76px; padding: 15px 19px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin-top: 4px; font-size: 1.05rem; }
.sample-notice { display: flex; gap: 10px; align-items: center; margin: 18px 19px 0; padding: 12px; color: #604d00; background: var(--yellow-soft); border-left: 3px solid var(--yellow); }
.sample-notice > svg { flex: 0 0 auto; width: 18px; }
.sample-notice strong, .sample-notice span { display: block; }
.sample-notice strong { font-size: .66rem; }
.sample-notice span { margin-top: 3px; font-size: .61rem; line-height: 1.4; }
.lead-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 17px 19px 19px; border: 1px solid var(--line); }
.lead-details div { min-height: 92px; padding: 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lead-details div:nth-child(even), .lead-details .wide { border-right: 0; }
.lead-details div:nth-last-child(-n+2) { border-bottom: 0; }
.lead-details .wide { grid-column: 1 / -1; min-height: 82px; }
.lead-details dt, .document-meta dt { color: var(--muted); font-size: .56rem; font-weight: 820; text-transform: uppercase; }
.lead-details dd, .document-meta dd { margin: 7px 0 0; font-size: .71rem; font-weight: 750; line-height: 1.4; }
.lead-details small { display: block; margin-top: 5px; color: var(--muted); font-size: .59rem; line-height: 1.4; }
.lead-management { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin: 0 19px 19px; padding: 17px; background: #f6f7f8; border: 1px solid var(--line); }
.lead-management .wide { grid-column: 1 / -1; }
.document-review-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin: 0 19px 19px; padding: 16px; background: var(--yellow-soft); border: 1px solid #e4c93c; }
.document-review-fields label { display: grid; gap: 7px; color: #494f57; font-size: .68rem; font-weight: 760; }
.document-review-fields input, .document-review-fields textarea { width: 100%; padding: 10px 11px; color: var(--ink); background: var(--white); border: 1px solid #cdd2d8; border-radius: 4px; }
.is-disabled { opacity: .48; pointer-events: none; }
.modal-actions { display: flex; gap: 8px; align-items: center; justify-content: flex-end; padding: 13px 19px; border-top: 1px solid var(--line); }
.document-modal { width: min(920px, calc(100% - 32px)); }
.document-modal-actions { flex-wrap: wrap; }
.document-modal-actions #archive-document { margin-right: auto; }
.library-manager-modal { width: min(1280px, calc(100% - 32px)); }
.library-manager-body { display: grid; gap: 14px; padding: 18px 19px; }
.library-manager-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; }
.library-manager-stats article { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 11px; align-items: center; min-height: 74px; padding: 12px; background: #f6f7f8; border: 1px solid var(--line); border-radius: 4px; }
.library-manager-stats article > span { display: grid; place-items: center; width: 42px; height: 42px; color: var(--blue); background: var(--blue-soft); border-radius: 4px; }
.library-manager-stats article:nth-child(2) > span { color: var(--green); background: var(--green-soft); }
.library-manager-stats article:nth-child(3) > span { color: var(--red); background: var(--red-soft); }
.library-manager-stats article:nth-child(4) > span { color: #8a5b00; background: var(--yellow-soft); }
.library-manager-stats svg { width: 20px; }
.library-manager-stats strong, .library-manager-stats small { display: block; }
.library-manager-stats strong { font-size: 1rem; }
.library-manager-stats small { margin-top: 3px; color: var(--muted); font-size: .64rem; }
.library-manager-toolbar { display: grid; grid-template-columns: minmax(320px, 1fr) 190px auto; gap: 10px; align-items: center; }
.library-manager-toolbar select { width: 100%; height: 41px; padding: 0 10px; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 4px; font-size: .68rem; }
.library-manager-selection { min-width: 78px; color: var(--muted); font-size: .65rem; font-weight: 760; text-align: right; }
.library-manager-table-wrap { max-height: min(52vh, 520px); overflow: auto; border: 1px solid var(--line); }
.library-manager-table { width: 100%; min-width: 1180px; border-collapse: collapse; }
.library-manager-table th { position: sticky; z-index: 1; top: 0; padding: 11px 12px; color: #747b84; background: #f5f6f7; border-bottom: 1px solid var(--line); font-size: .56rem; line-height: 1.3; text-align: left; text-transform: uppercase; white-space: normal; }
.library-manager-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; font-size: .64rem; line-height: 1.35; vertical-align: middle; white-space: normal; }
.library-manager-table .library-manager-check { width: 42px; padding-right: 4px; text-align: center; }
.library-manager-check input { width: 16px; height: 16px; accent-color: var(--red); }
.library-manager-table tbody tr:last-child td { border-bottom: 0; }
.library-manager-table tbody tr:hover { background: #fafbfc; }
.library-manager-file strong, .library-manager-file small { display: block; }
.library-manager-file strong { overflow-wrap: anywhere; font-size: .7rem; line-height: 1.35; }
.library-manager-file small { margin-top: 4px; color: var(--muted); overflow-wrap: anywhere; font-size: .58rem; line-height: 1.4; }
.library-owner-cell strong, .library-owner-cell small { display: block; }
.library-owner-cell strong { overflow-wrap: anywhere; font-size: .64rem; line-height: 1.35; }
.library-owner-cell small { margin-top: 4px; color: var(--muted); overflow-wrap: anywhere; font-size: .57rem; line-height: 1.4; }
.library-manager-empty { padding: 28px !important; color: var(--muted); text-align: center; }
.library-manager-note { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); font-size: .62rem; line-height: 1.45; }
.library-manager-note svg { flex: 0 0 auto; width: 16px; color: var(--blue); }
.library-manager-actions { flex-wrap: wrap; }
.library-manager-actions .button:first-child { margin-right: auto; }
.library-export-modal { width: min(620px, calc(100% - 32px)); }
.library-export-shield { display: grid; place-items: center; width: 42px; height: 42px; color: var(--green); background: var(--green-soft); border-radius: 4px; }
.library-export-shield svg { width: 21px; }
.library-export-body { display: grid; gap: 18px; padding: 22px 19px; }
.library-export-intro { color: #4e555e; font-size: .72rem; line-height: 1.55; }
.library-export-progress { display: grid; gap: 10px; }
.library-export-progress > div { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; }
.library-export-progress strong { font-size: .72rem; line-height: 1.35; }
.library-export-progress span { flex: 0 0 auto; color: var(--muted); font-size: .65rem; }
.library-export-progress progress { width: 100%; height: 10px; overflow: hidden; accent-color: var(--green); background: #e5e8eb; border: 0; border-radius: 5px; }
.library-export-progress progress::-webkit-progress-bar { background: #e5e8eb; border-radius: 5px; }
.library-export-progress progress::-webkit-progress-value { background: var(--green); border-radius: 5px; transition: width .18s ease; }
.library-export-note { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; padding: 12px; color: #42534d; background: #f1f8f5; border: 1px solid #cbe3d8; border-radius: 4px; font-size: .64rem; line-height: 1.5; }
.library-export-note svg { width: 19px; color: var(--green); }
.library-export-body .form-message { min-height: 0; }
.library-manager-file .status-tag { display: inline-flex; margin-left: 5px; vertical-align: 1px; }
.library-manager-table .status-tag { max-width: 100%; overflow-wrap: normal; line-height: 1.25; text-align: left; white-space: normal; word-break: normal; }
.library-manager-row-actions { display: flex; gap: 6px; width: max-content; }
.library-manager-row-actions .button { overflow-wrap: normal; white-space: nowrap; word-break: normal; }
.library-activity-modal { width: min(920px, calc(100% - 32px)); }
.library-activity-body { display: grid; gap: 14px; padding: 18px 19px; }
.library-activity-toolbar { display: grid; grid-template-columns: minmax(280px, 1fr) 220px auto; gap: 10px; align-items: center; }
.library-activity-toolbar select { width: 100%; height: 41px; padding: 0 10px; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 4px; font-size: .68rem; }
.library-activity-toolbar > span { min-width: 72px; color: var(--muted); font-size: .64rem; font-weight: 760; text-align: right; }
.library-activity-list { max-height: min(56vh, 520px); overflow: auto; border: 1px solid var(--line); }
.library-activity-row { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 12px; padding: 13px 14px; background: var(--white); border-bottom: 1px solid var(--line); }
.library-activity-row:last-child { border-bottom: 0; }
.library-activity-icon { display: grid; place-items: center; width: 42px; height: 42px; color: var(--blue); background: var(--blue-soft); border-radius: 4px; }
.library-activity-row.filing .library-activity-icon { color: var(--green); background: var(--green-soft); }
.library-activity-row.removal .library-activity-icon { color: var(--red); background: var(--red-soft); }
.library-activity-row.system .library-activity-icon { color: var(--teal); background: var(--teal-soft); }
.library-activity-icon svg { width: 20px; }
.library-activity-row header { display: flex; gap: 14px; align-items: center; justify-content: space-between; }
.library-activity-row header strong { color: #454c54; font-size: .61rem; text-transform: uppercase; }
.library-activity-row time { color: var(--muted); font-size: .58rem; white-space: nowrap; }
.library-activity-row h3 { margin-top: 4px; font-size: .75rem; }
.library-activity-row p { margin-top: 5px; color: #555d66; font-size: .65rem; line-height: 1.45; }
.library-activity-row small { display: block; margin-top: 6px; color: var(--muted); font-size: .58rem; }
.library-activity-empty { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 12px; align-items: center; min-height: 96px; padding: 18px; color: var(--muted); }
.library-activity-empty > span { display: grid; place-items: center; width: 42px; height: 42px; color: var(--blue); background: var(--blue-soft); border-radius: 4px; }
.library-activity-empty svg { width: 20px; }
.library-activity-empty strong, .library-activity-empty p { display: block; }
.library-activity-empty strong { color: var(--ink); font-size: .72rem; }
.library-activity-empty p { margin-top: 4px; font-size: .62rem; }
.bulk-document-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.bulk-document-option { display: grid; gap: 7px; padding: 11px; background: #f6f7f8; border: 1px solid var(--line); border-radius: 4px; }
.bulk-document-option > .bulk-document-toggle { display: flex; gap: 7px; align-items: center; min-height: 22px; }
.bulk-document-toggle input { width: 16px; height: 16px; accent-color: var(--red); }
.bulk-document-option > input:disabled, .bulk-document-option > select:disabled { color: #8a9199; background: #eceef1; }
.bulk-route-preview { overflow: hidden; border: 1px solid #b8ded1; border-radius: 4px; }
.bulk-route-preview > header { padding: 10px 12px; color: #24423b; background: #eef8f4; border-bottom: 1px solid #b8ded1; }
.bulk-route-preview > header strong, .bulk-route-preview > header small { display: block; }
.bulk-route-preview > header strong { font-size: .68rem; }
.bulk-route-preview > header small { margin-top: 3px; color: #4e6862; font-size: .59rem; }
.bulk-route-preview > div { display: grid; max-height: 180px; overflow: auto; }
.bulk-route-preview p { display: grid; grid-template-columns: minmax(130px, .7fr) minmax(220px, 1.3fr); gap: 12px; margin: 0; padding: 9px 12px; border-bottom: 1px solid #d7ebe4; font-size: .61rem; line-height: 1.4; }
.bulk-route-preview p:last-child { border-bottom: 0; }
.bulk-route-preview p strong { min-width: 0; overflow-wrap: anywhere; }
.bulk-route-preview p span { min-width: 0; color: #4e6862; overflow-wrap: anywhere; }
#bulk-document-dialog .modal-actions, .classification-modal .modal-actions { position: sticky; z-index: 3; bottom: 0; background: var(--white); }
.classification-modal { width: min(780px, calc(100% - 32px)); }
.classification-key { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; align-items: center; padding: 11px 12px; color: #4c535b; background: #f5f6f7; border: 1px solid var(--line); border-radius: 4px; }
.classification-key > svg { width: 20px; color: var(--blue); }
.classification-key strong, .classification-key small { display: block; }
.classification-key strong { font-size: .67rem; }
.classification-key small { margin-top: 3px; color: var(--muted); font-size: .59rem; }
.classification-types { overflow: hidden; border: 1px solid var(--line); border-radius: 4px; }
.classification-types > header { display: flex; gap: 14px; align-items: center; justify-content: space-between; padding: 11px 12px; background: #f5f6f7; border-bottom: 1px solid var(--line); }
.classification-types > header strong, .classification-types > header small { display: block; }
.classification-types > header strong { font-size: .69rem; }
.classification-types > header small { margin-top: 3px; color: var(--muted); font-size: .58rem; }
.classification-types > div { display: grid; max-height: 280px; overflow: auto; }
.classification-type-row { display: grid; grid-template-columns: minmax(0, 1fr) 36px; gap: 9px; align-items: center; padding: 9px 11px; border-bottom: 1px solid var(--line); }
.classification-type-row:last-child { border-bottom: 0; }
.classification-type-row input { height: 40px; font-size: .66rem; }
.classification-type-row .icon-button { width: 34px; height: 34px; color: var(--red); border: 0; }
.document-stage { display: grid; gap: 12px; min-height: 470px; padding: 19px; background: #e7e9ec; }
.document-preview-frame { position: relative; display: grid; place-items: center; width: 100%; min-height: 390px; overflow: hidden; background-color: #fff; background-image: linear-gradient(45deg, #edf0f2 25%, transparent 25%), linear-gradient(-45deg, #edf0f2 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #edf0f2 75%), linear-gradient(-45deg, transparent 75%, #edf0f2 75%); background-position: 0 0, 0 10px, 10px -10px, -10px 0; background-size: 20px 20px; border: 1px solid #c9ced4; }
.document-preview-frame [hidden] { display: none !important; }
.document-preview-frame > img { display: block; width: 100%; height: 100%; max-height: 520px; padding: 28px; object-fit: contain; }
.document-preview-frame > iframe { width: 100%; height: min(58vh, 520px); background: var(--white); border: 0; }
.document-preview-loading { display: flex; gap: 9px; align-items: center; color: #626a73; font-size: .68rem; font-weight: 760; }
.document-preview-loading svg { width: 20px; animation: preview-spin 1s linear infinite; }

.view.is-loading-data > .view-heading::after {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  margin-left: auto;
  border: 2px solid #d7dce1;
  border-top-color: var(--red);
  border-radius: 50%;
  animation: preview-spin .8s linear infinite;
}
.document-generic-preview { display: flex; align-items: center; flex-direction: column; max-width: 520px; padding: 35px; text-align: center; }
.document-generic-preview > span { display: grid; place-items: center; width: 58px; height: 58px; color: var(--red); background: var(--red-soft); border-radius: 4px; }
.document-generic-preview > span svg { width: 28px; }
.document-generic-preview small { margin-top: 24px; color: var(--red); font-size: .62rem; font-weight: 850; text-transform: uppercase; }
.document-generic-preview strong { margin-top: 10px; overflow-wrap: anywhere; font-size: 1.05rem; }
.document-generic-preview em { margin-top: 14px; color: var(--muted); font-size: .62rem; font-style: normal; }
.document-generic-preview p { margin-top: 8px; color: #747b84; font-size: .64rem; }
.document-access-note { display: flex; gap: 8px; align-items: center; width: 100%; padding: 11px 12px; color: var(--white); background: #16181b; border-radius: 4px; }
.document-access-note > svg { flex: 0 0 auto; width: 18px; color: var(--yellow); }
.document-access-note strong, .document-access-note span { display: block; }
.document-access-note strong { font-size: .64rem; }
.document-access-note span { margin-top: 3px; font-size: .57rem; line-height: 1.4; }
.document-intake-source { display: flex; gap: 8px; align-items: center; width: 100%; margin: 0; padding: 11px 12px; color: #073b57; background: #e6f6ff; border: 1px solid #acd9ef; border-radius: 4px; }
.document-intake-source[hidden] { display: none; }
.document-intake-source > svg { flex: 0 0 auto; width: 18px; color: var(--blue); }
.document-intake-source strong, .document-intake-source span { display: block; }
.document-intake-source strong { font-size: .64rem; }
.document-intake-source span { margin-top: 3px; font-size: .57rem; line-height: 1.4; }
@keyframes preview-spin { to { transform: rotate(360deg); } }
.document-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 0; margin: 0; padding: 13px 19px; }
.document-meta div { padding: 0 14px; border-right: 1px solid var(--line); }
.document-meta div:first-child { padding-left: 0; }
.document-meta div:last-child { border-right: 0; }
.document-meta div:nth-child(4) { border-right: 0; }
.document-review-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; background: #f5f6f7; border: 1px solid var(--line); }
.document-review-summary div { min-width: 0; padding: 12px; border-right: 1px solid var(--line); }
.document-review-summary div:last-child { border-right: 0; }
.document-review-summary dt { color: var(--muted); font-size: .58rem; font-weight: 820; text-transform: uppercase; }
.document-review-summary dd { margin: 6px 0 0; overflow-wrap: anywhere; font-size: .68rem; font-weight: 760; }
.document-lifecycle-review-modal { width: min(680px, calc(100% - 32px)); }
.modal-form { display: grid; gap: 13px; padding: 18px 19px; }
.modal-form label { display: grid; gap: 7px; }
.modal-form label[hidden] { display: none; }
.modal-form textarea { width: 100%; min-height: 96px; padding: 12px 13px; resize: vertical; color: var(--ink); background: var(--white); border: 1px solid #cbd0d6; border-radius: 4px; line-height: 1.45; }
.modal-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23, 105, 199, .1); outline: 0; }
.attention-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.attention-form-grid .wide { grid-column: 1 / -1; }
.attention-modal-actions { display: grid; grid-template-columns: auto 1fr auto auto auto; }
.button.danger-text { padding-left: 0; color: var(--red); background: transparent; border: 0; }
.button.danger-text.is-armed { padding: 9px 12px; color: var(--white); background: var(--red); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.file-drop { display: grid !important; grid-template-columns: 34px minmax(0, 1fr); gap: 10px !important; align-items: center; padding: 13px; background: #f7f8f9; border: 1px dashed #b9bfc6; border-radius: 4px; cursor: pointer; }
.file-drop > svg { width: 23px; color: var(--red); }
.file-drop strong, .file-drop small { display: block; }
.file-drop strong { font-size: .68rem; }
.file-drop small { margin-top: 3px; color: var(--muted); font-size: .58rem; }
.file-drop input { grid-column: 1 / -1; height: auto; padding: 0; border: 0; font-size: .6rem; }
.file-drop[hidden] { display: none !important; }
.document-batch { overflow: hidden; border: 1px solid var(--line); border-radius: 4px; }
.document-batch[hidden] { display: none; }
.document-batch > header { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 11px 12px; background: #f5f6f7; border-bottom: 1px solid var(--line); }
.document-batch > header strong, .document-batch > header small { display: block; }
.document-batch > header strong { font-size: .68rem; }
.document-batch > header small { margin-top: 3px; color: var(--muted); font-size: .58rem; }
.document-batch-list { display: grid; max-height: 310px; overflow: auto; }
.document-batch-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) minmax(0, 1fr) 32px; gap: 9px; align-items: end; padding: 11px 12px; border-bottom: 1px solid var(--line); }
.document-batch-row:last-child { border-bottom: 0; }
.document-batch-row > span { display: grid; place-items: center; align-self: center; width: 36px; height: 40px; color: var(--red); background: var(--red-soft); border-radius: 4px; }
.document-batch-row > span svg { width: 18px; }
.document-batch-row label { gap: 5px; min-width: 0; font-size: .59rem; }
.document-batch-row input { height: 38px; min-width: 0; padding: 0 9px; font-size: .63rem; }
.document-batch-row .icon-button { align-self: end; width: 32px; height: 38px; color: var(--red); border: 0; }
.document-duplicate-warning { display: grid; gap: 11px; padding: 12px; color: #5c4800; background: var(--yellow-soft); border: 1px solid #dfc339; border-radius: 4px; }
.document-duplicate-warning[hidden] { display: none; }
.document-duplicate-warning > header { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 9px; align-items: center; }
.document-duplicate-warning > header svg { width: 21px; }
.document-duplicate-warning > header strong, .document-duplicate-warning > header small { display: block; }
.document-duplicate-warning > header strong { font-size: .68rem; }
.document-duplicate-warning > header small { margin-top: 3px; font-size: .59rem; line-height: 1.4; }
.document-duplicate-warning ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.document-duplicate-warning li { display: grid; gap: 3px; padding: 8px 9px; background: rgba(255, 255, 255, .58); border: 1px solid rgba(117, 90, 0, .18); }
.document-duplicate-warning li strong { overflow-wrap: anywhere; font-size: .62rem; }
.document-duplicate-warning li span { font-size: .59rem; line-height: 1.4; }
.document-duplicate-warning > label { display: grid; grid-template-columns: 17px minmax(0, 1fr); gap: 8px; align-items: start; font-size: .62rem; font-weight: 760; line-height: 1.4; }
.document-duplicate-warning > label input { width: 16px; height: 16px; accent-color: var(--red); }
.document-review-duplicate-warning { margin: 0 19px 16px; }
.filing-preview { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; align-items: center; padding: 11px 12px; color: #24423b; background: #eef8f4; border: 1px solid #b8ded1; border-radius: 4px; }
.filing-preview > svg { width: 21px; color: #13846f; }
.filing-preview strong, .filing-preview small { display: block; }
.filing-preview strong { font-size: .68rem; }
.filing-preview small { margin-top: 3px; color: #4e6862; font-size: .61rem; line-height: 1.35; }
.form-note { display: flex; gap: 8px; align-items: center; padding: 10px; color: #624f00; background: var(--yellow-soft); font-size: .6rem; line-height: 1.4; }
.form-note svg { flex: 0 0 auto; width: 16px; }
.invite-preview { overflow: hidden; background: #edf0f3; border: 1px solid var(--line); border-radius: 4px; }
.invite-preview[hidden] { display: none; }
.invite-preview-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; padding: 12px 14px; background: var(--white); border-bottom: 1px solid var(--line); }
.invite-preview-meta div { min-width: 0; padding: 7px 10px; }
.invite-preview-meta dt { color: var(--muted); font-size: .52rem; font-weight: 820; text-transform: uppercase; }
.invite-preview-meta dd { margin: 4px 0 0; overflow-wrap: anywhere; font-size: .61rem; font-weight: 700; line-height: 1.35; }
.invite-email { width: min(100% - 28px, 520px); margin: 20px auto; background: var(--white); border: 1px solid #d9dde2; box-shadow: 0 8px 24px rgba(15, 18, 21, .1); }
.invite-email header { padding: 17px 24px; background: #0b0c0e; border-bottom: 4px solid var(--yellow); }
.invite-email header img { display: block; width: 210px; max-width: 100%; height: auto; }
.invite-email-body { padding: 28px 30px 26px; }
.invite-email-body small { color: #6b727c; font-size: .54rem; font-weight: 800; text-transform: uppercase; }
.invite-email-body h3 { margin-top: 9px; font-size: 1rem; }
.invite-email-body p { margin-top: 12px; color: #545c66; font-size: .64rem; line-height: 1.6; }
.invite-email-features { margin-top: 16px; border: 1px solid #e2e5e8; }
.invite-email-features p { display: grid; gap: 2px; margin: 0; padding: 9px 11px; background: #f7f8f9; border-bottom: 1px solid #e2e5e8; }
.invite-email-features p:last-child { border-bottom: 0; }
.invite-email-features strong { color: var(--ink); font-size: .59rem; }
.invite-email-features span { color: #626a73; font-size: .55rem; line-height: 1.4; }
.invite-email-button { display: inline-block; margin-top: 19px; padding: 11px 17px; color: var(--white); background: var(--red); font-size: .62rem; font-weight: 800; }
.invite-email-body .invite-email-private { margin-top: 20px; color: #767e88; font-size: .56rem; }
.invite-email footer { padding: 14px 30px; color: #767e88; background: #f7f8f9; border-top: 1px solid #e2e5e8; font-size: .53rem; line-height: 1.55; }
.invite-preview-button { margin-right: auto; }
.toast { position: fixed; z-index: 100; right: 22px; bottom: 22px; display: flex; gap: 9px; align-items: center; max-width: min(420px, calc(100vw - 44px)); padding: 12px 14px; color: var(--white); background: #15171a; border: 1px solid #383b40; border-radius: 4px; box-shadow: 0 12px 34px rgba(0, 0, 0, .25); opacity: 0; transform: translateY(12px); pointer-events: none; transition: .2s ease; }
.toast.is-visible { opacity: 1; transform: none; }
.toast.is-error { background: #8f161c; border-color: #b82830; }
.toast svg { flex: 0 0 auto; width: 17px; color: var(--yellow); }
.toast span { font-size: .65rem; line-height: 1.4; }

@media (max-width: 1180px) {
  .workspace-brand { width: 185px; margin-right: 13px; }
  .nav-tab { min-width: 62px; padding: 0 8px; }
  .nav-tab svg { display: none; }
  .system-link > svg:last-child { display: none; }
  .briefing-grid, .briefing-lower { grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); }
  .project-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-board article:last-child { grid-column: 1 / -1; }
  .folder-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-intake-tile { grid-template-columns: 54px minmax(0, 1fr) auto; }
  .service-intake-tile ul { grid-column: 2; }
  .service-intake-tile > .button { grid-column: 3; grid-row: 1 / span 2; }
  .service-priority-ribbon { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-priority-ribbon > button:nth-child(2) { border-right: 0; }
  .service-priority-ribbon > button:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .service-report-layout { grid-template-columns: 230px minmax(0, 1fr); }
}

@media (max-height: 760px) and (min-width: 681px) {
  .auth-panel-inner { padding-top: 25px; padding-bottom: 22px; }
  .auth-copy { margin-top: 16px; }
  .auth-panel form { margin-top: 18px; }
  .return-link { margin-top: 16px; }
}

@media (max-width: 920px) {
  .auth-header { padding: 0 24px; }
  .auth-stage { grid-template-columns: minmax(0, 1fr) 460px; }
  .auth-panel-inner { width: min(380px, calc(100% - 56px)); }
  .workspace-header { min-height: 70px; }
  .icon-button.mobile-menu-button { display: grid; margin-right: 10px; color: var(--white); background: #1a1c1f; border-color: #34373b; }
  .workspace-brand { width: 190px; }
  .workspace-nav { position: fixed; z-index: 60; top: 0; bottom: 0; left: 0; display: flex; align-items: stretch; flex-direction: column; width: 260px; padding: 14px; background: var(--black); box-shadow: 12px 0 34px rgba(0, 0, 0, .3); transform: translateX(-105%); transition: transform .2s ease; }
  .workspace-nav.is-open { transform: none; }
  .mobile-nav-heading { display: flex; align-items: center; justify-content: space-between; min-height: 62px; margin-bottom: 10px; padding: 0 5px 10px; color: #aeb4bb; border-bottom: 1px solid #303338; font-size: .7rem; font-weight: 820; text-transform: uppercase; }
  .mobile-nav-heading .icon-button { color: var(--white); background: #1b1d20; border-color: #35383d; }
  .nav-tab { justify-content: flex-start; min-height: 46px; min-width: 0; padding: 0 12px; border-radius: 4px; }
  .nav-tab::after { top: 9px; right: auto; bottom: 9px; left: -14px; width: 3px; height: auto; }
  .nav-tab svg { display: block; }
  .nav-tab span { font-size: .74rem; }
  .settings-tab { margin-top: auto; }
  .nav-scrim { position: fixed; z-index: 45; inset: 0; display: block; background: rgba(0, 0, 0, .5); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
  .nav-scrim.is-open { opacity: 1; pointer-events: auto; }
  .briefing-grid, .briefing-lower, .marketing-context-grid, .grant-work-grid { grid-template-columns: 1fr; }
  .overview-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; align-items: start; }
  .briefing-signal-panel .metric-ribbon { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .briefing-signal-panel .metric-ribbon article { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .briefing-signal-panel .metric-ribbon article:nth-child(even) { border-right: 0; }
  .briefing-signal-panel .metric-ribbon article:nth-last-child(-n+2) { border-bottom: 0; }
  .systems-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .systems-links > a, .systems-links > button { border-bottom: 1px solid var(--line); }
  .systems-links > :nth-child(even) { border-right: 0; }
  .systems-links > :nth-last-child(-n+2) { border-bottom: 0; }
  .platform-grid { grid-template-columns: 1fr; }
  .metric-ribbon { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-ribbon article:nth-child(2) { border-right: 0; }
  .metric-ribbon article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .grant-window { grid-template-columns: 220px minmax(0, 1fr); }
  .grant-window dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grant-window dl div:nth-child(2) { border-right: 0; }
  .grant-window dl div:nth-child(-n+2) { border-bottom: 1px solid #34373b; }
  .service-board { overflow-x: auto; }
  .service-columns, .service-row { min-width: 940px; }
  .service-upcoming-board { overflow-x: auto; }
  .service-upcoming-heading, .service-upcoming-empty, .service-upcoming-boundary { min-width: 760px; }
  .service-upcoming-columns, .service-upcoming-row { min-width: 760px; }
  .service-board-heading { align-items: flex-start; flex-direction: column; }
  .service-filters { justify-content: flex-start; width: 100%; }
  .service-filters .search-box { flex: 1 1 260px; width: auto; }
  .service-filters select { flex: 1 1 160px; width: auto; }
  .service-report-modal { overflow: auto; }
  .service-report-layout { grid-template-columns: 1fr; min-height: 0; }
  .service-report-options { grid-template-columns: repeat(2, minmax(0, 1fr)); border-right: 0; border-bottom: 1px solid var(--line); }
  .service-department-context { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-department-context .button { grid-column: 1 / -1; width: fit-content; }
  .library-toolbar { grid-template-columns: minmax(260px, 1fr) 165px 165px; }
  .library-toolbar #type-filter { display: none; }
  .work-assignment-toolbar { grid-template-columns: minmax(240px, 1fr) 180px; }
  .work-assignment-toolbar #work-assignment-area { grid-column: 1 / -1; }
  .document-intake-tile { grid-template-columns: 52px minmax(0, 1fr) auto; }
  .document-intake-actions { grid-column: 2 / -1; justify-content: flex-start; }
  .schematic-folder-grid { grid-template-columns: 1fr; }
  .file-columns, .file-row { grid-template-columns: minmax(230px, 1.5fr) minmax(120px, .65fr) minmax(135px, .75fr) minmax(85px, .45fr) 42px; }
  .file-columns span:nth-child(5), .file-row > span:nth-child(5) { display: none; }
}

@media (max-width: 760px) {
  .fixture-preview-banner { align-items: flex-start; flex-direction: column; gap: 2px; min-height: 72px; padding: 10px 14px; text-align: left; }
  .fixture-preview-active .workspace-header { position: relative; top: 0; }
  .auth-stage { display: block; min-height: calc(100vh - 88px); background: #fbfbfc; }
  .auth-visual { display: none; }
  .auth-panel { min-height: calc(100vh - 88px); border-top: 4px solid var(--yellow); border-left: 0; }
  .auth-panel-inner { width: min(420px, calc(100% - 48px)); padding: 44px 0 36px; }
}

/* Leads, grants, procurement, and Essential commercial handoff */
.opportunity-view-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.opportunity-view-tabs button {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  cursor: pointer;
  font-size: .875rem;
  font-weight: 720;
}

.opportunity-view-tabs button:last-child { border-right: 0; }
.opportunity-view-tabs button:hover { background: #fafbfc; }
.opportunity-view-tabs button.is-active { color: var(--ink); background: var(--yellow-soft); box-shadow: inset 0 -4px var(--yellow); }
.opportunity-view-tabs strong { display: grid; place-items: center; min-width: 29px; height: 29px; padding: 0 7px; color: var(--ink); background: #edf0f2; border-radius: 99px; font-size: .75rem; }
.opportunity-board[hidden], .opportunity-intake-board[hidden], [data-grant-workspace][hidden] { display: none; }
.opportunity-intake-board { margin-bottom: 16px; border-left: 4px solid var(--yellow); }
.opportunity-intake-board .surface-heading { min-height: 82px; }
.opportunity-intake-rows { display: grid; }
.opportunity-intake-row { display: grid; grid-template-columns: 42px minmax(240px, 1.2fr) minmax(150px, .65fr) minmax(230px, .9fr) 24px; gap: 12px; align-items: center; width: 100%; min-height: 76px; padding: 12px 18px; color: var(--ink); background: var(--white); border: 0; border-top: 1px solid var(--line); text-align: left; cursor: pointer; }
.opportunity-intake-row:hover { background: #fffdf4; }
.opportunity-intake-row > span:first-child { display: grid; place-items: center; width: 38px; height: 38px; color: #765d00; background: var(--yellow-soft); border-radius: 8px; }
.opportunity-intake-row strong, .opportunity-intake-row b, .opportunity-intake-row small { display: block; }
.opportunity-intake-row strong, .opportunity-intake-row b { font-size: .875rem; }
.opportunity-intake-row small { margin-top: 3px; color: var(--muted); font-size: .75rem; line-height: 1.35; }
.opportunity-board .surface-heading { min-height: 86px; }
.opportunity-board .heading-actions { flex: 1 1 auto; justify-content: flex-end; }
.opportunity-search { width: min(390px, 42vw); }
.opportunity-search input { height: 44px; }
#opportunity-stage-filter { min-width: 160px; height: 44px; padding: 0 35px 0 12px; color: var(--ink); background: var(--white); border: 1px solid #cbd0d6; border-radius: 4px; font-size: .75rem; font-weight: 700; }
.opportunity-columns,
.opportunity-row { display: grid; grid-template-columns: minmax(220px, 1.45fr) minmax(125px, .7fr) minmax(120px, .7fr) minmax(145px, .8fr) minmax(115px, .65fr) minmax(135px, .75fr); }
.opportunity-columns { min-height: 46px; align-items: center; color: #747b84; background: #f5f6f7; border-bottom: 1px solid var(--line); }
.opportunity-columns span { padding: 9px 15px; font-size: .75rem; font-weight: 750; letter-spacing: .035em; text-transform: uppercase; }
.opportunity-rows { display: grid; }
.opportunity-row { width: 100%; min-height: 78px; align-items: center; padding: 0; color: #383e45; background: var(--white); border: 0; border-bottom: 1px solid var(--line); text-align: left; cursor: pointer; }
.opportunity-row:hover { background: #fafbfc; }
.opportunity-row > span { min-width: 0; padding: 12px 15px; overflow-wrap: anywhere; font-size: .8125rem; line-height: 1.42; }
.opportunity-row strong,
.opportunity-row small,
.opportunity-row b { display: block; }
.opportunity-row strong,
.opportunity-row b { color: var(--ink); font-size: .875rem; }
.opportunity-row small { margin-top: 4px; color: var(--muted); font-size: .75rem; }
.opportunity-row .status-tag { display: inline-flex; width: fit-content; }

.opportunity-modal { width: min(1080px, calc(100% - 32px)); }
.opportunity-modal form { display: grid; }
.opportunity-form-section,
.commercial-handoff-section { border-bottom: 1px solid var(--line); }
.opportunity-form-section > header,
.commercial-handoff-section > header { display: flex; gap: 14px; align-items: flex-end; justify-content: space-between; padding: 18px 20px 0; }
.opportunity-form-section > header h3,
.commercial-handoff-section > header h3 { margin-top: 4px; font-size: 1.05rem; }
.commercial-handoff-section > header span { max-width: 420px; color: var(--muted); font-size: .75rem; text-align: right; }
.commercial-handoff-section > summary { display: flex; align-items: center; justify-content: space-between; min-height: 72px; padding: 14px 20px; list-style: none; cursor: pointer; }
.commercial-handoff-section > summary::-webkit-details-marker { display: none; }
.commercial-handoff-section > summary > span { display: grid; grid-template-columns: 24px 1fr; gap: 2px 10px; align-items: center; }
.commercial-handoff-section > summary > span > svg { grid-row: 1 / 3; color: var(--blue); }
.commercial-handoff-section > summary strong { font-size: .95rem; }
.commercial-handoff-section > summary small { color: var(--muted); font-size: .75rem; }
.commercial-handoff-section[open] > summary > svg { transform: rotate(180deg); }
.commercial-handoff-section:not([open]) .commercial-handoff-grid { display: none; }
.opportunity-upload-modal { width: min(680px, calc(100% - 32px)); }
.form-guidance { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 14px; color: #34504a; background: #edf8f5; border: 1px solid #b8ded3; border-radius: 6px; font-size: .8rem; line-height: 1.5; }
.opportunity-intake-source[hidden] { display: none; }
.opportunity-intake-source-content { display: grid; gap: 12px; padding: 14px 20px 20px; }
.opportunity-intake-source-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.opportunity-intake-source-summary > span { padding: 10px 12px; background: #f5f7f8; border: 1px solid var(--line); }
.opportunity-intake-source-summary small, .opportunity-intake-source-summary strong { display: block; }
.opportunity-intake-source-summary small { color: var(--muted); font-size: .68rem; font-weight: 740; letter-spacing: .04em; text-transform: uppercase; }
.opportunity-intake-source-summary strong { margin-top: 4px; font-size: .8rem; overflow-wrap: anywhere; }
.opportunity-intake-source-message { margin: 0; padding: 12px 14px; color: #4f5862; background: #fffdf4; border-left: 4px solid var(--yellow); font-size: .8rem; line-height: 1.5; }
.opportunity-intake-source-warning { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 14px; color: #744c00; background: #fff5d8; border: 1px solid #ead28d; border-radius: 5px; font-size: .8rem; line-height: 1.45; }
.opportunity-intake-source-warning svg { flex: 0 0 auto; margin-top: 1px; }
.opportunity-intake-source-warning strong { display: block; margin-bottom: 2px; color: #5d3d00; }
.opportunity-intake-source-confirmed { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 14px; color: #285f4e; background: #edf8f5; border: 1px solid #b8ded3; border-radius: 5px; font-size: .8rem; line-height: 1.45; }
.opportunity-intake-source-confirmed svg { flex: 0 0 auto; margin-top: 1px; }
.opportunity-intake-source-confirmed strong { display: block; margin-bottom: 2px; color: #19483b; }
.opportunity-correspondence[hidden] { display: none; }
.opportunity-correspondence > header { align-items: flex-start; }
.opportunity-correspondence > header small { max-width: 520px; color: var(--muted); font-size: .75rem; line-height: 1.45; text-align: right; }
.opportunity-correspondence-list { display: grid; padding: 14px 20px 20px; }
.opportunity-correspondence-list article { display: grid; grid-template-columns: 40px minmax(0, 1fr) 28px; gap: 12px; align-items: start; padding: 12px 0; border-top: 1px solid var(--line); }
.opportunity-correspondence-list article:first-child { border-top: 0; }
.opportunity-correspondence-list article .signal-icon { width: 36px; height: 36px; }
.opportunity-correspondence-list article strong,
.opportunity-correspondence-list article small { display: block; }
.opportunity-correspondence-list article small { margin-top: 3px; color: var(--muted); font-size: .72rem; }
.opportunity-correspondence-list article p { display: -webkit-box; margin: 7px 0 0; overflow: hidden; color: #515b66; font-size: .78rem; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.opportunity-correspondence-list article > a { display: grid; place-items: center; width: 28px; height: 28px; color: var(--muted); }
.opportunity-correspondence-empty { margin: 0; padding: 12px 14px; color: var(--muted); background: #f5f7f8; border: 1px solid var(--line); font-size: .8rem; }
.opportunity-intake-attachment { display: flex; gap: 12px; align-items: flex-end; padding: 12px 14px; background: #fffdf7; border: 1px solid #ead28d; border-radius: 5px; }
.opportunity-intake-attachment label { flex: 1 1 auto; min-width: 0; }
.opportunity-intake-attachment input { margin-top: 7px; }
.opportunity-intake-attachment small { display: block; margin-top: 5px; color: var(--muted); font-size: .72rem; }
.opportunity-intake-attachment .button { flex: 0 0 auto; margin-bottom: 20px; }
.opportunity-intake-attachments { display: flex; flex-wrap: wrap; gap: 8px; }
.button.secondary.danger { color: #a91e27; border-color: #e1b3b7; }
.opportunity-form-grid,
.commercial-handoff-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 14px; }
.opportunity-form-grid .wide,
.commercial-handoff-grid .wide { grid-column: 1 / -1; }
.lead-modal { width: min(940px, calc(100% - 32px)); }
.lead-modal .lead-management,
.lead-modal .commercial-handoff-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lead-modal .wide { grid-column: 1 / -1; }
.opportunity-modal .modal-actions,
.lead-modal .modal-actions { position: sticky; z-index: 4; bottom: 0; background: var(--white); }

@media (max-width: 980px) {
  .opportunity-intake-attachment { align-items: stretch; flex-direction: column; }
  .opportunity-intake-attachment .button { width: 100%; margin-bottom: 0; }
  .opportunity-board .surface-heading { align-items: stretch; flex-direction: column; }
  .opportunity-board .heading-actions { display: grid; grid-template-columns: minmax(0, 1fr) 170px; width: 100%; }
  .opportunity-search { width: 100%; }
  .opportunity-columns { display: none; }
  .opportunity-row { grid-template-columns: minmax(0, 1fr) minmax(120px, .45fr) minmax(120px, .45fr); padding: 10px 14px; }
  .opportunity-row > span { padding: 7px 8px; }
  .opportunity-row > span:nth-child(3) { display: none; }
  .opportunity-row > span:nth-child(4) { grid-column: 2; }
  .opportunity-row > span:nth-child(5) { grid-column: 3; grid-row: 1; }
  .opportunity-row > span:nth-child(6) { grid-column: 3; grid-row: 2; }
  .opportunity-intake-row { grid-template-columns: 42px minmax(0, 1fr) minmax(180px, .7fr) 22px; }
  .opportunity-intake-row > span:nth-child(3) { display: none; }
}

@media (max-width: 760px) {
  .opportunity-view-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .opportunity-view-tabs button:nth-child(2) { border-right: 0; }
  .opportunity-view-tabs button:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .opportunity-board .heading-actions { grid-template-columns: 1fr; }
  #opportunity-stage-filter { width: 100%; }
  .opportunity-row { grid-template-columns: minmax(0, 1fr) auto; }
  .opportunity-row > span:nth-child(2),
  .opportunity-row > span:nth-child(3),
  .opportunity-row > span:nth-child(4) { display: none; }
  .opportunity-row > span:nth-child(5) { grid-column: 2; grid-row: 1; }
  .opportunity-row > span:nth-child(6) { grid-column: 1 / -1; grid-row: 2; padding-top: 0; }
  .opportunity-intake-row { grid-template-columns: 38px minmax(0, 1fr) 20px; padding: 12px; }
  .opportunity-intake-row > span:nth-child(4) { display: none; }
  .opportunity-form-grid,
  .commercial-handoff-grid,
  .lead-modal .lead-management,
  .lead-modal .commercial-handoff-grid { grid-template-columns: 1fr; }
  .opportunity-form-grid .wide,
  .commercial-handoff-grid .wide,
  .lead-modal .wide { grid-column: 1; }
  .opportunity-form-section > header,
  .commercial-handoff-section > header { align-items: flex-start; flex-direction: column; }
  .opportunity-correspondence > header small { text-align: left; }
  .commercial-handoff-section > header span { text-align: left; }
  .opportunity-intake-source-summary { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .auth-header { min-height: 74px; padding: 0 16px; }
  .auth-header a { width: 215px; height: 52px; }
  .auth-stage, .auth-panel { min-height: calc(100vh - 74px); }
  .auth-panel-inner { width: min(420px, calc(100% - 36px)); padding: 38px 0 30px; }
  .workspace-header { padding: 0 12px; }
  .workspace-brand { width: 158px; min-width: 0; margin-right: 0; }
  .workspace-tools { gap: 5px; }
  .system-link { width: 36px; min-height: 36px; justify-content: center; padding: 0; }
  .system-link span, .system-link > svg:last-child { display: none; }
  .owner-button { display: none; }
  .workspace-main { padding: 24px 14px 46px; }
  .view-heading { align-items: flex-start; flex-direction: column; min-height: 0; margin-bottom: 20px; }
  .view-heading > div { width: 100%; }
  .view-heading h1 { font-size: 1.55rem; }
  .view-heading > div > p:last-child { max-width: 100%; overflow-wrap: anywhere; }
  .view-heading .heading-actions, .view-heading .period-select, .view-heading .segmented { width: 100%; }
  .view-heading .heading-actions { align-items: stretch; }
  .view-heading .heading-actions .button { flex: 1; }
  .view-heading .segmented button { flex: 1; }
  .view-heading .segmented button { min-width: 0; white-space: normal; }
  .period-select select { flex: 1; }
  .metric-ribbon, .metric-ribbon.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-ribbon article, .metric-ribbon article:nth-child(2) { grid-template-columns: 34px minmax(0, 1fr); gap: 9px; min-height: 94px; padding: 13px 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .metric-ribbon article:nth-child(even) { border-right: 0; }
  .metric-ribbon article:nth-last-child(-n+2) { border-bottom: 0; }
  .metric-ribbon.three article:last-child { grid-column: 1 / -1; border-right: 0; border-bottom: 0; }
  .metric-ribbon .signal-icon { width: 34px; height: 34px; }
  .metric-ribbon strong { font-size: 1.35rem; }
  .attention-heading { align-items: flex-start; flex-direction: column; }
  .attention-controls { width: 100%; }
  .attention-filter { flex: 1; }
  .attention-filter button { flex: 1; }
  .attention-footer { align-items: flex-start; flex-direction: column; gap: 4px; }
  .overview-sidebar { grid-template-columns: 1fr; }
  .attention-row { grid-template-columns: 7px minmax(0, 1fr) 15px; }
  .attention-row time { display: none; }
  .attention-title-line { align-items: flex-start; flex-direction: column; gap: 6px; }
  .attention-title-line strong { white-space: normal; }
  .attention-meta { align-items: flex-start; flex-direction: column; gap: 5px; }
  .work-assignments-heading { align-items: flex-start; flex-direction: column; }
  .work-assignment-actions { align-items: stretch; flex-direction: column; width: 100%; }
  .work-assignment-filter { display: flex; width: 100%; }
  .work-assignment-filter button { flex: 1; }
  .work-assignment-actions .button { width: 100%; }
  .work-assignment-toolbar { grid-template-columns: 1fr; }
  .work-assignment-toolbar #work-assignment-area { grid-column: auto; }
  .work-assignment-summary { align-items: flex-start; flex-direction: column; gap: 3px; }
  .work-assignment-list { max-height: none; }
  .service-outlook-metrics article { min-height: 88px; padding: 13px 11px; }
  .service-outlook-metrics small { font-size: .54rem; line-height: 1.3; }
  .service-outlook-metrics strong { font-size: 1.16rem; }
  .service-outlook-list-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .service-outlook-row, .service-outlook-row.needs-date { grid-template-columns: minmax(0, 1fr) auto 14px; gap: 9px; padding: 12px 14px; }
  .service-outlook-row .service-outlook-date, .service-outlook-row .service-outlook-symbol { grid-column: 1; grid-row: 1; }
  .service-outlook-row .service-outlook-department { grid-column: 1; grid-row: 2; }
  .service-outlook-row > .status-tag { grid-column: 2; grid-row: 1; }
  .service-outlook-row > svg { grid-column: 3; grid-row: 1 / span 2; }
  .service-outlook-row.needs-date .service-outlook-department { margin-top: 2px; }
  .service-outlook-department strong { white-space: normal; }
  .service-outlook-empty { grid-template-columns: 42px minmax(0, 1fr); }
  .service-outlook-empty .button { grid-column: 1 / -1; width: 100%; }
  .marketing-brief-grid article { min-height: 84px; padding: 12px; }
  .marketing-section-heading, .service-record-details-heading { align-items: flex-start; flex-direction: column; }
  .service-contact-card { grid-template-columns: minmax(240px, 1fr) minmax(190px, .7fr); }
  .service-contact-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .website-trend { grid-template-columns: 1fr; }
  .website-trend-copy { align-items: center; flex-direction: row; border-right: 0; border-bottom: 1px solid var(--line); }
  .connection-list { grid-template-columns: 1fr; padding-right: 12px; padding-left: 12px; }
  .connection-list > a { min-height: 70px; border-right: 0; border-bottom: 1px solid var(--line); }
  .connection-list > a:last-child { border-bottom: 0; }
  .social-status { align-items: flex-start; justify-content: flex-start; flex-wrap: wrap; }
  .social-status > span:last-child { overflow-wrap: anywhere; }
  .platform-card, .platform-card header, .platform-card dl { min-width: 0; }
  .platform-card dl div { min-width: 0; padding: 12px 10px; }
  .platform-card dd { overflow-wrap: anywhere; }
  .systems-links { grid-template-columns: 1fr; }
  .systems-links > a, .systems-links > button, .systems-links > :nth-child(even), .systems-links > :nth-last-child(-n+2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .systems-links > :last-child { border-bottom: 0; }
  .grant-window { grid-template-columns: 1fr; }
  .grant-window > div { border-right: 0; border-bottom: 1px solid #34373b; }
  .grant-window dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-intake-tile { grid-template-columns: 46px minmax(0, 1fr); padding: 14px; }
  .service-intake-icon { width: 46px; height: 46px; }
  .service-intake-tile ul { grid-column: 1 / -1; grid-template-columns: 1fr; padding: 11px 0; border-top: 1px solid #e8d76c; border-bottom: 1px solid #e8d76c; }
  .service-intake-tile > .button { grid-column: 1 / -1; grid-row: auto; width: 100%; }
  .service-priority-ribbon { grid-template-columns: 1fr; }
  .service-priority-ribbon > button, .service-priority-ribbon > button:nth-child(2) { min-height: 91px; border-right: 0; border-bottom: 1px solid var(--line); }
  .service-priority-ribbon > button:last-child { border-bottom: 0; }
  .service-record-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 14px; align-items: start; }
  .service-record-summary .plain-action { grid-column: 1 / -1; width: fit-content; margin: 5px 0 0 auto; }
  .service-upcoming-board { overflow: hidden; }
  .service-upcoming-heading { align-items: flex-start; flex-direction: column; min-width: 0; }
  .service-upcoming-controls { align-items: stretch; flex-direction: column; width: 100%; }
  .service-upcoming-controls select { width: 100%; }
  .service-upcoming-columns { display: none; }
  .service-upcoming-list, .service-upcoming-empty, .service-upcoming-boundary { min-width: 0; }
  .service-upcoming-row { grid-template-columns: minmax(0, 1fr) auto; min-width: 0; padding: 11px 14px; }
  .service-upcoming-row > span { padding: 3px 0; }
  .service-upcoming-row > span:nth-child(1) { grid-column: 1; grid-row: 1; }
  .service-upcoming-row > span:nth-child(2) { grid-column: 1; grid-row: 2; }
  .service-upcoming-row > span:nth-child(3), .service-upcoming-row > span:nth-child(4) { grid-column: 1; color: var(--muted); }
  .service-upcoming-row > span:nth-child(5) { grid-column: 2; grid-row: 1; padding-left: 10px; }
  .service-upcoming-row > svg { grid-column: 2; grid-row: 2 / span 3; align-self: center; margin-left: 10px; }
  .service-contact-history-heading { align-items: flex-start; flex-direction: column; }
  .service-contact-card { grid-template-columns: 1fr; gap: 9px; padding: 13px 14px; }
  .service-contact-card-meta { padding-left: 48px; }
  .service-contact-actions { grid-column: 1; justify-content: flex-start; padding-left: 48px; }
  .service-board { overflow: hidden; }
  .service-board-heading { align-items: flex-start; flex-direction: column; }
  .service-filters { display: grid; grid-template-columns: 1fr; width: 100%; }
  .service-filters .search-box, .service-filters select { width: 100%; }
  .service-columns { display: none; }
  .service-department-row { grid-template-columns: minmax(0, 1fr) auto; min-width: 0; padding: 12px 14px; }
  .service-department-row > span { padding: 4px 0; }
  .service-department-row > span:nth-child(1) { grid-column: 1; grid-row: 1; }
  .service-department-row > span:nth-child(2) { grid-column: 1; grid-row: 2; }
  .service-department-row > span:nth-child(3), .service-department-row > span:nth-child(4) { display: none; }
  .service-department-row > span:nth-child(5) { grid-column: 1; grid-row: 3; }
  .service-department-row > span:nth-child(6) { grid-column: 2; grid-row: 1; padding-left: 10px; }
  .service-department-row > span:nth-child(7) { grid-column: 2; grid-row: 2 / span 2; }
  .service-summary-value { display: flex; gap: 6px; align-items: baseline; }
  .service-summary-value small { display: inline; }
  .service-summary-value strong { font-size: .74rem; }
  .service-visit-panel { padding: 0 12px 10px; }
  .service-department-context { grid-template-columns: 1fr; margin: 0 -12px; padding: 13px 12px; }
  .service-department-context .button { grid-column: auto; width: 100%; }
  .service-visit-columns { display: none; }
  .service-visit-row { grid-template-columns: minmax(0, 1fr) auto; min-width: 0; padding: 10px 8px; }
  .service-visit-row > span { padding: 3px 0; }
  .service-visit-row > span:nth-child(1) { grid-column: 1; grid-row: 1; }
  .service-visit-row > span:nth-child(2) { grid-column: 1; grid-row: 2; }
  .service-visit-row > span:nth-child(3) { grid-column: 1; grid-row: 3; color: var(--muted); }
  .service-visit-row > span:nth-child(3)::before { content: "Proposed next: "; font-weight: 720; }
  .service-visit-row > span:nth-child(4) { display: none; }
  .service-visit-row > span:nth-child(5) { grid-column: 2; grid-row: 1; padding-left: 10px; }
  .service-visit-row > span:nth-child(6) { grid-column: 2; grid-row: 2 / span 2; }
  .service-history-modal { width: calc(100vw - 20px); }
  .service-report-modal { width: calc(100vw - 20px); }
  .service-report-options { grid-template-columns: 1fr; }
  .service-report-options button { min-height: 64px; }
  .service-report-preview { padding: 15px 12px; }
  .service-report-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-report-metrics article { border-bottom: 1px solid var(--line); }
  .service-report-metrics article:nth-child(even) { border-right: 0; }
  .service-report-metrics article:nth-last-child(-n+2) { border-bottom: 0; }
  .service-report-actions > span { width: 100%; margin: 0 0 5px; text-align: center; }
  .service-detail-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-detail-metrics article { border-bottom: 1px solid var(--line); }
  .service-detail-metrics article:nth-child(even) { border-right: 0; }
  .service-detail-metrics article:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .pipeline { grid-template-columns: repeat(9, 106px); min-width: 0; }
  .pipeline div { border-bottom: 0; }
  .form-sources { grid-template-columns: 1fr; }
  .form-sources > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .form-sources > div:last-child { border-bottom: 0; }
  .lead-columns { display: none; }
  .lead-row { grid-template-columns: minmax(0, 1fr) auto; padding: 11px 14px; }
  .lead-row > span { padding: 4px 0; }
  .lead-row > span:nth-child(2), .lead-row > span:nth-child(4) { display: none; }
  .lead-row > span:nth-child(3) { grid-column: 1; }
  .lead-row > span:last-child { grid-column: 2; grid-row: 1 / span 2; padding-left: 10px; }
  .library-toolbar { grid-template-columns: 1fr; }
  .library-toolbar select { display: none; }
  .library-toolbar #status-filter { display: block; }
  .library-location-bar { grid-template-columns: 1fr; gap: 7px; }
  .library-export-folder { width: 100%; }
  .document-intake-tile { grid-template-columns: 46px minmax(0, 1fr); padding: 14px; }
  .document-intake-icon { width: 46px; height: 46px; }
  .document-intake-count { grid-column: 1 / -1; padding: 10px 0; border-top: 1px solid #e8d76c; border-left: 0; text-align: left; }
  .document-intake-count strong, .document-intake-count span { display: inline-block; }
  .document-intake-count span { margin: 0 0 0 8px; }
  .document-intake-actions { grid-column: 1 / -1; }
  .document-intake-actions .button { flex: 1; }
  .library-manager-stats { grid-template-columns: 1fr; }
  .library-manager-modal.is-intake .library-manager-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .library-manager-modal.is-intake .library-manager-stats article { grid-template-columns: 36px minmax(0, 1fr); min-height: 66px; padding: 9px; }
  .library-manager-modal.is-intake .library-manager-stats article > span { width: 36px; height: 36px; }
  .library-manager-modal.is-intake .library-manager-table { width: 100%; min-width: 0; table-layout: fixed; }
  .library-manager-modal.is-intake .library-manager-table th:nth-child(n+3):nth-child(-n+8),
  .library-manager-modal.is-intake .library-manager-table td:nth-child(n+3):nth-child(-n+8) { display: none; }
  .library-manager-modal.is-intake .library-manager-table th:last-child,
  .library-manager-modal.is-intake .library-manager-table td:last-child { width: 94px; padding-right: 7px; padding-left: 7px; }
  .library-manager-modal.is-intake .library-manager-file strong,
  .library-manager-modal.is-intake .library-manager-file small { overflow-wrap: anywhere; }
  .library-manager-modal.is-intake .library-manager-row-actions { flex-direction: column; }
  .library-manager-modal.is-intake .library-manager-row-actions .button { width: 100%; padding: 7px 5px; }
  .library-manager-toolbar { grid-template-columns: 1fr; }
  .library-manager-selection { text-align: left; }
  .library-manager-actions .button:first-child { margin-right: 0; }
  .library-activity-toolbar { grid-template-columns: 1fr; }
  .library-activity-toolbar > span { text-align: left; }
  .library-activity-row header { align-items: flex-start; flex-direction: column; gap: 3px; }
  .bulk-document-fields { grid-template-columns: 1fr; }
  .bulk-route-preview p { grid-template-columns: 1fr; gap: 4px; }
  .document-batch-row { grid-template-columns: 36px minmax(0, 1fr) 32px; }
  .document-batch-row label:nth-of-type(2) { grid-column: 2 / -1; }
  .document-batch-row .icon-button { grid-column: 3; grid-row: 1; }
  .file-board-head span:nth-child(2), .file-board-head small { display: none; }
  .file-columns { display: none; }
  .file-row { grid-template-columns: minmax(0, 1fr) 40px; min-width: 0; min-height: 82px; padding: 9px 12px; }
  .file-row > div, .file-row > span { padding: 3px 0; }
  .file-row > span:nth-child(2), .file-row > span:nth-child(3), .file-row > span:nth-child(4), .file-row > span:nth-child(5) { display: none; }
  .file-open-icon { grid-column: 2; grid-row: 1; }
  .folder-grid { grid-template-columns: 1fr; }
  .library-home-heading { align-items: flex-start; flex-direction: column; }
  .library-subfolders-heading { align-items: flex-start; flex-direction: column; }
  .library-subfolders-heading .button { width: 100%; }
  .service-filters { align-items: stretch; flex-direction: column; }
  .service-filters select { width: 100%; }
  .project-board, .access-grid { grid-template-columns: 1fr; }
  .project-board article:last-child { grid-column: auto; }
  .access-guide .access-grid > section:first-child { border-right: 0; border-bottom: 1px solid var(--line); }
  .user-board .table-scroll { overflow: visible; }
  .user-board table, .user-board tbody { display: block; width: 100%; }
  .user-board thead { display: none; }
  .user-board tr { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 12px; padding: 13px 14px; border-bottom: 1px solid var(--line); }
  .user-board tr:last-child { border-bottom: 0; }
  .user-board td { display: block; width: auto; height: auto; padding: 5px 0; border: 0; }
  .user-board td:first-child { grid-column: 1 / -1; padding: 0 44px 11px 0; border-bottom: 1px solid #e5e8eb; }
  .user-board td:nth-child(2) { grid-column: 1; }
  .user-board td:nth-child(3) { grid-column: 1 / -1; color: var(--muted); line-height: 1.4; }
  .user-board td:nth-child(4) { grid-column: 1; }
  .user-board td:last-child { position: absolute; top: 13px; right: 13px; padding: 0; }
  .user-cell { min-width: 0; }
  .modal-actions { align-items: stretch; flex-direction: column-reverse; }
  .modal-actions .button { width: 100%; }
  .invite-preview-button { margin-right: 0; }
  .invite-preview-meta { grid-template-columns: 1fr; }
  .invite-email { width: calc(100% - 18px); margin: 12px auto; }
  .invite-email-body { padding: 22px 20px; }
  .attention-form-grid { grid-template-columns: 1fr; }
  .attention-form-grid .wide { grid-column: auto; }
  .attention-modal-actions { display: flex; }
  .attention-modal-actions > span { display: none; }
  .lead-details { grid-template-columns: 1fr; }
  .lead-details div, .lead-details div:nth-child(even), .lead-details div:nth-last-child(-n+2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .lead-details div:last-child { border-bottom: 0; }
  .lead-details .wide { grid-column: auto; }
  .lead-management, .document-review-fields { grid-template-columns: 1fr; }
  .lead-management .wide { grid-column: auto; }
  .document-review-summary { grid-template-columns: 1fr; }
  .document-review-summary div { border-right: 0; border-bottom: 1px solid var(--line); }
  .document-review-summary div:last-child { border-bottom: 0; }
  .document-stage { min-height: 340px; }
  .document-stage { display: flex; align-items: center; flex-direction: column; }
}

@media (max-width: 460px) {
  .auth-panel-inner { width: calc(100% - 32px); padding: 32px 0 26px; }
  .review-entry { align-items: flex-start; flex-direction: column; }
  .review-entry button { justify-content: flex-start; width: auto; min-height: 34px; padding-left: 0; }
  .workspace-header { padding: 0 9px; }
  .icon-button.mobile-menu-button { margin-right: 7px; }
  .workspace-brand { width: 140px; }
  .workspace-tools { gap: 4px; }
  .system-link { width: 35px; min-height: 35px; }
  .workspace-main { padding-right: 12px; padding-left: 12px; }
  .view-heading .heading-actions { flex-direction: column; }
  .grant-window dl { grid-template-columns: 1fr; }
  .grant-window dl div, .grant-window dl div:nth-child(2) { border-right: 0; border-bottom: 1px solid #34373b; }
  .grant-window dl div:last-child { border-bottom: 0; }
  .spotlight-meta { align-items: flex-start; flex-direction: column; gap: 6px; }
  .form-grid, .document-meta { grid-template-columns: 1fr; }
  .document-meta { gap: 10px; }
  .document-meta div { padding: 0 0 9px; border-right: 0; border-bottom: 1px solid var(--line); }
  .document-meta div:last-child { border-bottom: 0; }
}

/* Readability pass: keep the workspace compact without relying on sub-11px text. */
.auth-copy { font-size: .9rem; }
.auth-panel label, .modal-form label { font-size: .78rem; }
.plain-action, .form-message, .return-link { font-size: .75rem; }
.button { font-size: .78rem; }
.review-entry strong { font-size: .7rem; }
.review-entry span { font-size: .66rem; }
.review-entry button { font-size: .76rem; }

.workspace .eyebrow { font-size: .72rem; }
.nav-tab span, .system-link, .owner-button span { font-size: .75rem; }
.nav-tab b { font-size: .64rem; }
.view-heading > div > p:last-child { font-size: .86rem; }
.period-select select { font-size: .75rem; }
.surface-heading h2 { font-size: 1.12rem; }
.count-label, .source-status { font-size: .72rem; }

.metric-ribbon small { font-size: .72rem; }
.metric-ribbon em { font-size: .65rem; }
.decision-list strong { font-size: .82rem; }
.decision-list p { font-size: .74rem; }
.attention-row time { font-size: .64rem; }
.attention-status { font-size: .63rem; }
.attention-meta span { font-size: .67rem; }
.grant-spotlight-top p { font-size: .69rem; }
.grant-spotlight > p { font-size: .76rem; }
.spotlight-meta { font-size: .66rem; }
.segmented button { font-size: .68rem; }
.segmented.large button { font-size: .75rem; }
.pulse-total span { font-size: .72rem; }
.chart-axis { font-size: .63rem; }
.systems-panel strong { font-size: .79rem; }
.systems-panel p { font-size: .7rem; }

.grant-window dt { font-size: .64rem; }
.grant-window dd { font-size: .82rem; }
.grant-window > p { font-size: .72rem; }
.pipeline span { font-size: .64rem; }
.form-sources strong, .connection-list strong, .role-list strong { font-size: .76rem; }
.form-sources small, .connection-list small, .role-list small { font-size: .66rem; }
.form-sources em, .connection-list em { font-size: .61rem; }
.readiness-list label { font-size: .72rem; }
.lead-columns span { font-size: .63rem; }
.lead-row > span { font-size: .72rem; }
.lead-row strong { font-size: .79rem; }
.lead-row small { font-size: .64rem; }
.sample-tag { font-size: .62rem; }
.empty-state p { font-size: .74rem; }

th { font-size: .64rem; }
td { font-size: .74rem; }
.channel { font-size: .63rem; }
.search-box input, .library-toolbar select { font-size: .76rem; }
.file-board-head { font-size: .7rem; }
.file-board-head small { font-size: .64rem; }
.file-columns span { font-size: .63rem; }
.file-row > div, .file-row > span { font-size: .72rem; }
.file-name strong { font-size: .79rem; }
.file-name small { font-size: .64rem; }
.status-tag { font-size: .61rem; }

.project-line p { font-size: .64rem; }
.project-line h2 { font-size: .97rem; }
.project-board article > p { font-size: .75rem; }
.project-board footer span { font-size: .65rem; }
.project-board footer button, .project-board footer a { font-size: .7rem; }
.history-list time { font-size: .66rem; }
.history-list strong { font-size: .78rem; }
.history-list small { font-size: .7rem; }
.user-cell strong { font-size: .76rem; }
.user-cell small { font-size: .64rem; }
.role-tag { font-size: .62rem; }
.active-label { font-size: .65rem; }
.security-list li { font-size: .72rem; }
.signout-row strong { font-size: .77rem; }
.signout-row small { font-size: .66rem; }

.sample-notice strong { font-size: .72rem; }
.sample-notice span { font-size: .68rem; }
.lead-details dt, .document-meta dt { font-size: .63rem; }
.lead-details dd, .document-meta dd { font-size: .78rem; }
.lead-details small { font-size: .66rem; }
.document-generic-preview small { font-size: .68rem; }
.document-generic-preview em { font-size: .66rem; }
.document-access-note strong { font-size: .71rem; }
.document-access-note span { font-size: .64rem; }
.file-drop strong { font-size: .76rem; }
.file-drop small, .file-drop input, .form-note, .filing-preview small { font-size: .66rem; }
.toast span { font-size: .72rem; }

/* Owner access screen */
.auth-screen { position: relative; display: block; min-height: 100vh; isolation: isolate; overflow: auto; background: #0b0e11; }
.auth-screen::before, .auth-screen::after { content: none; }
.auth-stage { position: relative; display: grid; grid-template-columns: 1fr; width: 100%; min-height: 100vh; padding: 48px; place-items: center; }
.auth-shell { display: grid; grid-template-columns: 460px minmax(0, 1fr); gap: 0; width: min(1120px, 100%); min-height: 720px; overflow: hidden; background: #f7f7f5; border: 1px solid rgba(255, 255, 255, .26); border-radius: 8px; box-shadow: 0 30px 80px rgba(0, 0, 0, .42); }

.auth-panel { display: flex; align-items: stretch; flex-direction: column; min-width: 0; padding: 38px 44px 34px; color: var(--ink); background: #f7f7f5; border: 0; border-right: 4px solid var(--yellow); border-radius: 0; box-shadow: none; backdrop-filter: none; }
.auth-panel-top { display: flex; gap: 20px; align-items: center; justify-content: space-between; min-height: 76px; }
.auth-panel-top a { width: 250px; height: 76px; }
.auth-panel-top img { width: 100%; height: 100%; object-fit: contain; object-position: left center; }
.auth-panel-top > span { display: inline-flex; gap: 7px; align-items: center; color: #555d66; font-size: .66rem; font-weight: 820; letter-spacing: .04em; white-space: nowrap; text-transform: uppercase; }
.auth-panel-top > span svg { width: 16px; color: var(--red); }
.auth-panel-inner { display: flex; flex: 1; flex-direction: column; width: 100%; margin: 0; padding: 0; }
.auth-kicker { color: var(--red); font-size: .68rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.auth-panel-inner > h1 { margin-top: auto; font-family: Georgia, "Times New Roman", serif; font-size: 3.25rem; font-weight: 500; line-height: 1.02; }
.auth-copy { max-width: 340px; margin-top: 16px; color: #555c63; font-size: .93rem; font-weight: 500; line-height: 1.55; }
.auth-panel form { display: grid; gap: 0; margin-top: 32px; }
.auth-field-group { display: grid; gap: 9px; margin-bottom: 20px; }
.auth-panel .auth-field-group label { color: #2b3035; font-size: .75rem; font-weight: 800; letter-spacing: .02em; }
.auth-panel .field { margin: 0; }
.auth-panel .field > svg { left: 18px; width: 20px; color: #545c64; }
.auth-panel .field input { height: 64px; padding-right: 49px; padding-left: 52px; color: var(--ink); background: #f1f1ee; border: 1px solid #d2d5d7; border-radius: 7px; box-shadow: inset 0 1px 2px rgba(18, 22, 26, .045), 0 1px 0 rgba(255, 255, 255, .8); font-size: .94rem; transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease; }
.auth-panel .field input:focus { background: #fff; border-color: #999fa5; box-shadow: 0 0 0 3px rgba(228, 29, 38, .1), inset 0 1px 2px rgba(18, 22, 26, .04); }
.auth-panel .field input::placeholder { color: #7b8187; opacity: 1; }
.auth-panel .field-button { right: 11px; width: 38px; height: 38px; }
.auth-options { display: flex; gap: 18px; align-items: center; justify-content: space-between; margin: 5px 0 30px; }
.auth-panel .check-line { margin: 0; color: #42484e !important; font-size: .8rem; font-weight: 650; }
.auth-panel .check-line input { flex: 0 0 auto; width: 20px; height: 20px; accent-color: #e31d26; }
.auth-panel .plain-action { color: #a9151b; font-size: .8rem; font-weight: 750; }
.auth-panel .form-message { min-height: 2px; margin-top: -7px; }
.auth-panel .button.primary.full { justify-content: space-between; min-height: 60px; padding: 0 22px; background: linear-gradient(180deg, #ed2530 0%, #d9151f 100%); border-radius: 7px; box-shadow: 0 10px 22px rgba(210, 20, 30, .22), inset 0 1px 0 rgba(255, 255, 255, .2); font-size: .94rem; transition: transform 180ms ease, box-shadow 180ms ease; }
.auth-panel .button.primary.full:hover { transform: translateY(-2px); box-shadow: 0 14px 26px rgba(210, 20, 30, .27), inset 0 1px 0 rgba(255, 255, 255, .22); }
.auth-panel .button.primary.full svg { width: 22px; }
.auth-panel .review-entry { margin-top: 20px; padding-top: 14px; }
.auth-panel .review-entry[hidden] { display: none !important; }
.auth-panel .review-entry button { color: #a9151d; }
.auth-panel .return-link { margin-top: auto; padding-top: 25px; color: #62686e; border-top: 1px solid #dedfdd; font-size: .75rem; font-weight: 700; }

.auth-showcase { position: relative; min-width: 0; overflow: hidden; color: var(--white); background: #090a0b; border: 0; border-radius: 0; box-shadow: none; }
.auth-showcase > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center center; }
.auth-showcase::after { position: absolute; z-index: 0; inset: 0; content: ""; background: linear-gradient(180deg, rgba(0, 0, 0, .02) 55%, rgba(0, 0, 0, .55) 100%); pointer-events: none; }
.auth-showcase-copy { position: relative; z-index: 1; padding: 40px 40px 0; text-shadow: 0 2px 18px rgba(0, 0, 0, .72); }
.auth-showcase-copy p { color: #d5d8dc; font-size: .68rem; font-weight: 820; letter-spacing: .12em; text-transform: uppercase; }
.auth-showcase-copy h2 { margin-top: 19px; font-family: Georgia, "Times New Roman", serif; font-size: 2.45rem; font-weight: 500; line-height: 1.04; }
.auth-showcase-copy > span { display: block; width: 52px; height: 4px; margin-top: 15px; background: var(--yellow); }
.auth-showcase-foot { position: absolute; z-index: 1; right: 38px; bottom: 32px; left: 38px; display: flex; gap: 13px; align-items: center; padding-top: 0; border-top: 0; text-shadow: 0 2px 14px rgba(0, 0, 0, .8); }
.auth-showcase-foot > svg { width: 34px; height: 38px; color: var(--yellow); stroke-width: 1.7; }
.auth-showcase-foot span, .auth-showcase-foot strong, .auth-showcase-foot small { display: block; }
.auth-showcase-foot strong { font-size: .88rem; letter-spacing: .01em; }
.auth-showcase-foot small { margin-top: 3px; color: rgba(255, 255, 255, .74); font-size: .75rem; }

@media (max-height: 800px) and (min-width: 901px) {
  .auth-stage { padding: 20px; }
  .auth-shell { width: min(1000px, calc(100vw - 40px)); min-height: calc(100vh - 40px); }
  .auth-panel { padding: 24px 31px 20px; }
  .auth-panel-top { min-height: 48px; }
  .auth-panel-top a { width: 244px; height: 58px; }
  .auth-panel-inner > h1 { margin-top: 0; font-size: 2.8rem; }
  .auth-copy { margin-top: 11px; }
  .auth-panel form { margin-top: 18px; }
  .auth-field-group { gap: 6px; margin-bottom: 11px; }
  .auth-panel .field input { height: 53px; }
  .auth-panel .button.primary.full { min-height: 51px; }
  .auth-panel .review-entry { margin-top: 13px; padding-top: 9px; }
  .auth-panel .return-link { padding-top: 10px; }
  .auth-showcase-copy { padding: 35px 35px 0; }
  .auth-showcase-copy h2 { margin-top: 13px; font-size: 2.15rem; }
  .auth-showcase-copy > span { margin-top: 17px; }
  .auth-showcase-foot { right: 30px; bottom: 22px; left: 30px; padding-top: 0; }
}

@media (max-width: 900px) {
  .auth-stage { padding: 26px; }
  .auth-shell { display: flex; flex-direction: column; width: min(520px, calc(100vw - 52px)); min-height: calc(100vh - 52px); }
  .auth-showcase { order: 1; display: block; min-height: 250px; border-bottom: 4px solid var(--yellow); }
  .auth-showcase > img { object-position: 52% 60%; }
  .auth-showcase::after { background: linear-gradient(180deg, rgba(0, 0, 0, .08) 35%, rgba(0, 0, 0, .58) 100%); }
  .auth-showcase-foot { right: 24px; bottom: 20px; left: 24px; }
  .auth-panel { order: 2; min-height: 594px; border-right: 0; }
}

@media (max-width: 560px) {
  .auth-stage { display: block; min-height: 100vh; padding: 0; }
  .auth-shell { display: flex; width: 100%; min-height: 100vh; border: 0; border-radius: 0; box-shadow: none; }
  .auth-showcase { min-height: 238px; }
  .auth-panel { min-height: 606px; padding: 24px 24px 26px; border: 0; border-radius: 0; box-shadow: none; }
  .auth-panel-top { min-height: 54px; }
  .auth-panel-top a { width: 210px; height: 54px; }
  .auth-panel-top > span { font-size: .6rem; }
  .auth-panel-inner { padding: 0; }
  .auth-panel-inner > h1 { margin-top: 20px; font-size: 2.625rem; }
  .auth-copy { margin-top: 10px; font-size: .88rem; }
  .auth-panel form { margin-top: 23px; }
  .auth-field-group { margin-bottom: 15px; }
  .auth-panel .field input { height: 58px; }
  .auth-options { margin: 4px 0 23px; }
  .auth-panel .button.primary.full { min-height: 58px; }
  .auth-panel .return-link { margin-top: auto; }
  .auth-panel .review-entry { align-items: center; flex-direction: row; }
  .auth-panel .review-entry button { justify-content: flex-end; width: auto; min-height: 34px; padding-left: 8px; background: transparent; border: 0; border-radius: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
.service-workspace-list { margin-top: 18px; overflow: hidden; }
.service-view-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: #f4f6f8; border-bottom: 1px solid var(--line); }
.service-view-tabs button { display: flex; gap: 10px; align-items: center; justify-content: center; min-height: 58px; padding: 11px 14px; color: #5f6872; background: transparent; border: 0; border-right: 1px solid var(--line); font: inherit; font-size: .72rem; font-weight: 800; cursor: pointer; }
.service-view-tabs button:last-child { border-right: 0; }
.service-view-tabs button:hover { color: var(--ink); background: #fff; }
.service-view-tabs button.is-active { color: var(--ink); background: #fff; box-shadow: inset 0 -4px 0 var(--yellow); }
.service-view-tabs strong { display: grid; place-items: center; min-width: 25px; height: 25px; padding: 0 6px; color: #313840; background: #e6e9ed; border-radius: 20px; font-size: .68rem; }
.service-list-heading { display: flex; gap: 20px; align-items: end; justify-content: space-between; padding: 20px 22px 14px; }
.service-list-heading h2 { margin-top: 3px; font-size: 1.25rem; }
.service-list-heading p:last-child { margin-top: 4px; color: var(--muted); font-size: .68rem; }
.service-list-heading > span { color: var(--muted); font-size: .7rem; font-weight: 750; }
.service-list-toolbar { position: sticky; top: 0; z-index: 2; display: grid; grid-template-columns: minmax(260px, 1fr) 190px 190px auto; gap: 9px; padding: 11px 22px; background: #f7f8f9; border-block: 1px solid var(--line); }
.service-list-toolbar select { min-height: 42px; padding: 0 34px 0 12px; color: #30363d; background: #fff; border: 1px solid #cfd4da; border-radius: 4px; font: inherit; font-size: .69rem; }
.service-list-toolbar .button { min-height: 42px; white-space: nowrap; }
.service-list-toolbar .button b { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-left: 4px; background: #e6e9ed; border-radius: 20px; }
.service-list-toolbar .button.is-active { color: #5d4900; background: var(--yellow-soft); border-color: #e4c838; }
.service-list-toolbar .button.is-active b { background: var(--yellow); }
.service-table-wrap { overflow-x: auto; }
.service-department-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.service-department-table th { padding: 10px 12px; color: #707984; background: #f3f5f7; border-bottom: 1px solid var(--line); font-size: .58rem; text-align: left; text-transform: uppercase; letter-spacing: .05em; }
.service-department-table th:first-child { width: 22%; padding-left: 22px; }
.service-department-table th:nth-child(2) { width: 12%; }
.service-department-table th:nth-child(3) { width: 12%; }
.service-department-table th:nth-child(4) { width: 20%; }
.service-department-table th:nth-child(5) { width: 17%; }
.service-department-table th:last-child { width: 17%; }
.service-department-table.is-record-issues th:first-child { width: 16%; }
.service-department-table.is-record-issues th:nth-child(2) { width: 25%; }
.service-department-table.is-record-issues th:nth-child(3) { width: 13%; }
.service-department-table.is-record-issues th:nth-child(4) { width: 24%; }
.service-department-table.is-record-issues th:nth-child(5) { width: 11%; }
.service-department-table.is-record-issues th:last-child { width: 11%; }
.service-department-table td { padding: 12px; vertical-align: middle; border-bottom: 1px solid var(--line); font-size: .7rem; line-height: 1.38; overflow-wrap: anywhere; }
.service-department-table td:first-child { padding-left: 22px; }
.service-department-table tr:hover td { background: #fbfcfd; }
.service-department-table td > strong, .service-department-table td > small { display: block; }
.service-department-table td > small { margin-top: 3px; color: var(--muted); font-size: .61rem; }
.service-fix-record { min-height: 35px; padding: 7px 10px; }
.service-department-link { display: block; width: 100%; padding: 0; color: var(--ink); background: transparent; border: 0; text-align: left; cursor: pointer; }
.service-department-link strong, .service-department-link small { display: block; }
.service-department-link strong { font-size: .76rem; }
.service-department-link small { margin-top: 3px; color: var(--muted); font-size: .61rem; }
.service-department-table button.status-tag { border: 0; font: inherit; }
.service-list-footer { display: flex; gap: 20px; align-items: center; justify-content: space-between; padding: 13px 22px; background: #f7f8f9; }
.service-list-footer > p { display: flex; gap: 8px; max-width: 820px; color: #68717b; font-size: .61rem; line-height: 1.45; }
.service-list-footer svg { flex: 0 0 auto; width: 15px; }
.service-pagination { display: flex; gap: 10px; align-items: center; white-space: nowrap; }
.service-pagination span { color: var(--muted); font-size: .65rem; font-weight: 700; }
.service-pagination .button { min-height: 36px; padding-inline: 10px; }
.service-record-summary .plain-action { margin-left: auto; }

.service-quick-panel { width: min(590px, 100vw); max-width: 100vw; height: 100vh; max-height: 100vh; margin: 0 0 0 auto; padding: 0; color: var(--ink); background: #f1f3f5; border: 0; }
.service-quick-panel[open] { display: grid; grid-template-rows: auto 1fr auto; }
.service-quick-panel::backdrop, .service-department-workspace::backdrop { background: rgb(20 25 30 / 55%); }
.service-panel-head, .service-workspace-head { display: flex; gap: 18px; align-items: flex-start; justify-content: space-between; padding: 22px 24px; background: #fff; border-bottom: 1px solid var(--line); }
.service-panel-head h2, .service-workspace-head h2 { margin-top: 4px; font-size: 1.35rem; }
.service-panel-head p:last-child, .service-workspace-head p:last-child { margin-top: 4px; color: var(--muted); font-size: .68rem; }
.service-panel-body { overflow-y: auto; padding: 20px 24px; }
.service-panel-status, .service-panel-section, .service-panel-metrics { margin-bottom: 14px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.service-panel-status h3 { margin-top: 10px; }
.service-panel-status p, .service-panel-section p { margin-top: 6px; color: var(--muted); font-size: .7rem; line-height: 1.5; }
.service-panel-section small { display: block; margin-top: 8px; color: #7b838c; font-size: .61rem; }
.service-panel-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.service-panel-metrics dt { color: var(--muted); font-size: .56rem; font-weight: 800; text-transform: uppercase; }
.service-panel-metrics dd { margin-top: 5px; font-size: .78rem; font-weight: 800; }
.service-panel-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 15px 24px; background: #fff; border-top: 1px solid var(--line); }
.service-panel-actions .button:last-child { margin-left: auto; }
.service-assignment-link { display: block; width: 100%; margin-top: 8px; padding: 10px; color: var(--ink); background: #f5f6f7; border: 1px solid var(--line); text-align: left; cursor: pointer; }
.service-assignment-link strong, .service-assignment-link small { display: block; }

.service-department-workspace { width: calc(100vw - 32px); max-width: 1500px; height: calc(100vh - 32px); max-height: calc(100vh - 32px); padding: 0; color: var(--ink); background: #eef1f4; border: 0; border-radius: 8px; }
.service-department-workspace[open] { display: grid; grid-template-rows: auto auto 1fr; }
.service-workspace-tabs { display: flex; overflow-x: auto; background: #fff; border-bottom: 1px solid var(--line); }
.service-workspace-tabs button { min-height: 52px; padding: 0 18px; color: #68717b; background: #fff; border: 0; border-right: 1px solid var(--line); font: inherit; font-size: .68rem; font-weight: 800; white-space: nowrap; cursor: pointer; }
.service-workspace-tabs button.is-active { color: var(--ink); box-shadow: inset 0 -4px 0 var(--yellow); }
.service-workspace-body { overflow-y: auto; padding: 22px; }
.service-workspace-section, .service-workspace-hero, .service-workspace-cards article { padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.service-workspace-section-head { display: flex; gap: 15px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.service-workspace-overview { display: grid; gap: 16px; }
.service-workspace-hero h3 { margin-top: 10px; font-size: 1.45rem; }
.service-workspace-hero p, .service-workspace-cards p { margin-top: 6px; color: var(--muted); font-size: .7rem; line-height: 1.5; }
.service-workspace-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.service-workspace-cards h3 { margin-top: 7px; font-size: .95rem; }
.service-workspace-cards article.service-cycle-skip-card { background: #fffaf0; border-color: #e5d49e; }
.service-workspace-cards article.service-retention-risk-card { background: #fff7f4; border-color: #e9b7a9; }
.service-workspace-cards article.service-planning-overview-card { background: #f3f7f8; border-color: #bdcdd2; }
.service-cycle-skip-card .plain-action { margin-top: 10px; }
.service-cycle-skip-context { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 13px; background: #f5f7f8; border: 1px solid var(--line); }
.service-cycle-skip-context span, .service-cycle-skip-context strong { display: block; }
.service-cycle-skip-context span { color: var(--muted); font-size: .58rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.service-cycle-skip-context strong { margin-top: 4px; font-size: .74rem; }
.service-risk-check { margin: 4px 0 0; }
.service-competitor-fields { padding: 14px; border: 1px solid #e9b7a9; background: #fffaf8; }
.service-risk-rule { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0 0; padding: 12px 14px; border-left: 4px solid var(--yellow); background: #fff9df; color: var(--muted); font-size: .72rem; line-height: 1.45; }
.service-risk-rule svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--deep-blue); }
.service-risk-rule strong { display: block; color: var(--ink); }
.service-inventory-reconciliation { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin: 0 0 16px; padding: 15px 17px; border: 1px solid #e3bd4e; border-left: 5px solid var(--yellow); background: #fff8d8; }
.service-inventory-reconciliation > span { display: flex; gap: 12px; align-items: flex-start; }
.service-inventory-reconciliation svg { width: 22px; height: 22px; flex: 0 0 auto; color: var(--deep-blue); }
.service-inventory-reconciliation strong, .service-inventory-reconciliation small { display: block; }
.service-inventory-reconciliation small { margin-top: 3px; color: var(--muted); line-height: 1.4; }
.service-equipment-table tr.needs-reconciliation td { background: #fffdf2; }
.service-equipment-table tr.needs-reconciliation td:first-child { box-shadow: inset 4px 0 0 var(--yellow); }
.service-relationship-events { display: grid; gap: 10px; margin-bottom: 18px; }
.service-relationship-events article { padding: 14px 15px; border: 1px solid var(--line); background: #fff; }
.service-relationship-events header { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.service-relationship-events h4 { margin: 0; }
.service-relationship-events time { color: var(--muted); font-size: .68rem; white-space: nowrap; }
.service-relationship-events p { margin: 7px 0 0; color: var(--muted); font-size: .75rem; line-height: 1.45; }
.service-relationship-events small { display: block; margin-top: 7px; color: var(--deep-blue); font-weight: 700; }
.service-timeline { margin-top: 18px; }
.service-timeline article { display: grid; grid-template-columns: 140px 1fr; gap: 18px; padding: 15px 0; border-top: 1px solid var(--line); }
.service-timeline time { font-weight: 800; }
.service-timeline p { margin: 4px 0; color: var(--muted); font-size: .68rem; }
.service-visit-staff-row { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin: 8px 0 2px; }
.service-visit-staff { display: inline-flex; gap: 6px; align-items: center; color: #315f4d; font-size: .66rem; line-height: 1.4; }
.service-visit-staff svg { flex: 0 0 auto; width: 16px; }
.service-evidence-notice { display: flex; gap: 12px; margin-top: 14px; padding: 14px; color: #5f6871; background: #fff8d6; border-left: 4px solid var(--yellow); font-size: .7rem; line-height: 1.5; }
.service-evidence-notice svg { flex: 0 0 auto; }
.service-planning-context-notice { background: #eef6f7; border-left-color: #5c8188; }
.service-planning-context-counts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.service-planning-context-counts span { padding: 8px 10px; color: #66717a; background: #f3f5f6; border: 1px solid var(--line); font-size: .62rem; }
.service-planning-context-counts strong { color: var(--ink); }
.service-planning-context-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 14px; margin-top: 16px; }
.service-planning-context-card { overflow: hidden; background: #f8f9fa; border: 1px solid var(--line); border-radius: 5px; }
.service-planning-context-card > header { display: grid; grid-template-columns: auto 1fr auto; gap: 11px; align-items: center; padding: 14px; background: #fff; border-bottom: 1px solid var(--line); }
.service-planning-context-card > header h4 { margin-top: 3px; font-size: .86rem; }
.service-planning-context-icon { display: grid; width: 34px; height: 34px; place-items: center; color: #42656c; background: #e8f0f2; border-radius: 50%; }
.service-planning-context-icon svg { width: 17px; height: 17px; }
.service-planning-context-summary { padding: 14px 14px 0; color: #48515a; font-size: .7rem; line-height: 1.5; }
.service-planning-context-card dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 14px; background: var(--line); border: 1px solid var(--line); }
.service-planning-context-card dl > div { min-width: 0; padding: 11px; background: #fff; }
.service-planning-context-card dt { color: #717b84; font-size: .55rem; font-weight: 800; text-transform: uppercase; letter-spacing: .035em; }
.service-planning-context-card dd { margin-top: 4px; font-size: .68rem; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.service-planning-context-card footer { display: flex; gap: 9px; align-items: center; padding: 11px 14px; color: #725d22; background: #fff8d6; border-top: 1px solid #e8dca6; font-size: .62rem; line-height: 1.4; }
.service-planning-context-card footer span { flex: 1; }
.service-planning-context-card footer .plain-action { flex: 0 0 auto; }
.service-planning-context-card footer svg { flex: 0 0 auto; width: 16px; }
.service-planning-context-empty { margin-top: 16px; padding: 30px; color: var(--muted); background: #f7f8f9; border: 1px solid var(--line); text-align: center; }
.service-planning-context-empty h4 { margin-top: 9px; color: var(--ink); }
.service-planning-context-empty p { max-width: 640px; margin: 6px auto 0; font-size: .68rem; line-height: 1.5; }
.service-equipment-summary, .service-contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.service-equipment-summary article, .service-contact-cards article { padding: 15px; background: #f7f8f9; border: 1px solid var(--line); }
.service-equipment-summary strong, .service-equipment-summary span { display: block; }
.service-equipment-summary span, .service-contact-cards p, .service-contact-cards small { margin-top: 5px; color: var(--muted); font-size: .64rem; }
.service-equipment-toolbar { display: flex; gap: 16px; align-items: end; justify-content: space-between; margin-top: 18px; }
.service-equipment-toolbar > label { display: grid; gap: 6px; min-width: 210px; color: var(--muted); font-size: .61rem; font-weight: 800; }
.service-equipment-toolbar select { min-height: 40px; padding: 0 34px 0 11px; color: var(--ink); background: #fff; border: 1px solid #cfd4da; border-radius: 4px; font: inherit; font-size: .68rem; }
.service-equipment-count { display: flex; flex: 1; gap: 10px; align-items: baseline; padding: 12px 14px; background: #f5f7f8; border: 1px solid var(--line); }
.service-equipment-count strong { font-size: 1.1rem; }
.service-equipment-count span { color: var(--muted); font-size: .68rem; }
.service-equipment-groups { display: grid; gap: 14px; margin-top: 14px; }
.service-equipment-group { overflow: hidden; border: 1px solid var(--line); border-radius: 5px; }
.service-equipment-group > header { display: flex; gap: 14px; align-items: center; justify-content: space-between; padding: 12px 14px; background: #f5f7f8; border-bottom: 1px solid var(--line); }
.service-equipment-group > header h4 { margin-top: 3px; font-size: .84rem; }
.service-equipment-group > header > span { color: var(--muted); font-size: .64rem; font-weight: 780; }
.service-equipment-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.service-equipment-table th { padding: 10px 12px; color: #707984; background: #f3f5f7; border: 1px solid var(--line); font-size: .58rem; text-align: left; text-transform: uppercase; letter-spacing: .04em; }
.service-equipment-table td { padding: 12px; vertical-align: top; border: 1px solid var(--line); font-size: .7rem; overflow-wrap: anywhere; }
.service-equipment-table td strong, .service-equipment-table td small { display: block; }
.service-equipment-table td small { margin-top: 4px; color: var(--muted); font-size: .61rem; }
.service-equipment-table td:last-child { width: 76px; }
.service-equipment-loading, .service-equipment-empty { margin-top: 18px; padding: 24px; background: #f7f8f9; border: 1px solid var(--line); text-align: center; }
.service-equipment-loading { display: flex; gap: 10px; align-items: center; justify-content: center; color: var(--muted); font-size: .7rem; }
.service-equipment-loading svg { animation: preview-spin 1s linear infinite; }
.service-equipment-empty h4 { font-size: .86rem; }
.service-equipment-empty p { max-width: 720px; margin: 7px auto 0; color: var(--muted); font-size: .68rem; line-height: 1.5; }
.service-equipment-empty > div { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 14px; }
.service-file-cards, .service-activity-list { display: grid; gap: 8px; margin-top: 16px; }
.service-file-cards > button, .service-activity-list > button { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 13px; color: var(--ink); background: #f7f8f9; border: 1px solid var(--line); text-align: left; cursor: pointer; }
.service-file-cards strong, .service-file-cards small, .service-activity-list strong, .service-activity-list small { display: block; }
.service-file-cards small, .service-activity-list small { margin-top: 4px; color: var(--muted); font-size: .61rem; }
.service-status-help { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 20px; }
.service-status-help article { padding: 15px; background: #f5f6f7; border: 1px solid var(--line); }
.service-status-help p, .service-transfer-body > p { margin-top: 6px; color: var(--muted); font-size: .7rem; line-height: 1.5; }
.service-transfer-body { padding: 20px; }
.service-transfer-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.service-transfer-options label { display: grid; gap: 7px; color: #30353b; font-size: .7rem; font-weight: 780; }
.service-transfer-options select, .service-transfer-options input[type="date"] { height: 44px; padding: 0 12px; background: #fff; border: 1px solid #cbd0d6; }
.service-transfer-options .check-row { display: flex; grid-column: 1 / -1; align-items: center; }
.service-transfer-review { margin-top: 16px; padding: 14px; background: #f7f8f9; border: 1px solid var(--line); font-size: .7rem; line-height: 1.5; }

@media (max-width: 920px) {
  .service-view-tabs { grid-template-columns: repeat(2, 1fr); }
  .service-list-toolbar { grid-template-columns: 1fr 1fr; }
  .service-list-toolbar .search-box { grid-column: 1 / -1; }
  .service-workspace-cards, .service-equipment-summary, .service-contact-cards { grid-template-columns: 1fr; }
  .service-equipment-toolbar { align-items: stretch; flex-direction: column; }
  .service-equipment-toolbar > label { min-width: 0; }
}
@media (max-width: 700px) {
  .service-view-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-cycle-skip-context { grid-template-columns: 1fr; }
  .service-inventory-reconciliation { align-items: flex-start; flex-direction: column; }
  .service-workspace-section-head { align-items: flex-start; flex-direction: column; }
  .service-planning-context-counts { justify-content: flex-start; }
  .service-planning-context-list { grid-template-columns: 1fr; }
  .service-planning-context-card > header { grid-template-columns: auto 1fr; }
  .service-planning-context-card > header .status-tag { grid-column: 1 / -1; justify-self: start; }
  .service-planning-context-card dl { grid-template-columns: 1fr; }
  .service-view-tabs button { justify-content: space-between; min-height: 54px; padding: 9px 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .service-view-tabs button:nth-child(even) { border-right: 0; }
  .service-view-tabs button:nth-last-child(-n+2) { border-bottom: 0; }
  .service-list-toolbar { position: static; grid-template-columns: 1fr; padding: 11px 14px; }
  .service-list-toolbar .search-box { grid-column: auto; }
  .service-list-heading { align-items: flex-start; flex-direction: column; padding-inline: 14px; }
  .service-table-wrap { overflow: visible; }
  .service-department-table, .service-department-table tbody, .service-department-table tr, .service-department-table td { display: block; width: 100%; }
  .service-department-table thead { display: none; }
  .service-department-table tr { padding: 10px 14px; border-bottom: 1px solid var(--line); }
  .service-department-table td, .service-department-table td:first-child { display: grid; grid-template-columns: 105px minmax(0, 1fr); padding: 7px 0; border: 0; }
  .service-department-table td::before { content: attr(data-label); color: #737c86; font-size: .56rem; font-weight: 800; text-transform: uppercase; }
  .service-department-table td > * { grid-column: 2; }
  .service-list-footer { align-items: flex-start; flex-direction: column; padding-inline: 14px; }
  .service-pagination { width: 100%; justify-content: space-between; }
  .service-quick-panel { width: 100vw; }
  .service-panel-metrics { grid-template-columns: 1fr; }
  .service-panel-actions .button { width: 100%; }
  .service-panel-actions .button:last-child { margin-left: 0; }
  .service-department-workspace { width: 100vw; height: 100vh; max-height: 100vh; border-radius: 0; }
  .service-workspace-head { padding: 15px; }
  .service-workspace-head .heading-actions .button { display: none; }
  .service-workspace-body { padding: 12px; }
  .service-timeline article { grid-template-columns: 1fr; gap: 6px; }
  .service-equipment-table { min-width: 1040px; }
  .service-status-help, .service-transfer-options { grid-template-columns: 1fr; }
}

/* Essential onboarding readiness */
.essential-rollout-message { margin-bottom: 16px; padding: 12px 14px; color: #6a5500; background: var(--yellow-soft); border: 1px solid #e5cc48; border-radius: 4px; font-size: .68rem; line-height: 1.5; }
.essential-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 16px; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.essential-metrics button { min-height: 84px; padding: 13px 16px; color: var(--ink); background: transparent; border: 0; border-right: 1px solid var(--line); font: inherit; text-align: left; cursor: pointer; }
.essential-metrics button:last-child { border-right: 0; }
.essential-metrics button:hover { background: #f8f9fa; }
.essential-metrics small, .essential-metrics strong, .essential-metrics span { display: block; }
.essential-metrics small { color: var(--muted); font-size: .57rem; font-weight: 820; letter-spacing: .04em; text-transform: uppercase; }
.essential-metrics strong { margin-top: 6px; font-size: 1.38rem; }
.essential-metrics span { display: flex; gap: 5px; align-items: center; margin-top: 3px; color: #1267c4; font-size: .58rem; font-weight: 760; }
.essential-metrics span svg { width: 13px; }
.essential-config { overflow: hidden; }
.essential-config .surface-heading > span { color: var(--muted); font-size: .61rem; font-weight: 800; }
.essential-config-list { max-height: 376px; overflow-y: auto; }
.essential-config-list p { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 9px; align-items: center; min-height: 52px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.essential-config-list p:last-child { border-bottom: 0; }
.essential-config-list svg { width: 16px; color: #77808a; }
.essential-config-list strong, .essential-config-list small { display: block; }
.essential-config-list strong { font-size: .67rem; }
.essential-config-list small { margin-top: 3px; color: var(--muted); font-size: .57rem; }
.essential-config-list b { padding: 4px 6px; color: #5d646d; background: #eef0f2; border-radius: 3px; font-size: .51rem; text-transform: uppercase; white-space: nowrap; }
.essential-customer-board { overflow: hidden; }
.essential-customer-register { margin-bottom: 16px; overflow: hidden; }
.essential-customer-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.essential-customer-summary > div { min-height: 70px; padding: 12px 14px; border-right: 1px solid var(--line); }
.essential-customer-summary > div:last-child { border-right: 0; }
.essential-customer-summary strong, .essential-customer-summary span { display: block; }
.essential-customer-summary strong { font-size: 1.15rem; }
.essential-customer-summary span { margin-top: 4px; color: var(--muted); font-size: .75rem; font-weight: 720; }
.essential-customer-register-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.essential-customer-register-table th { padding: 11px 12px; color: #707984; background: #f3f5f7; border-bottom: 1px solid var(--line); font-size: .75rem; letter-spacing: .035em; text-align: left; text-transform: uppercase; }
.essential-customer-register-table td { padding: 12px; vertical-align: middle; border-bottom: 1px solid var(--line); font-size: .8125rem; overflow-wrap: anywhere; }
.essential-customer-register-table tr:last-child td { border-bottom: 0; }
.essential-customer-register-table th:nth-child(1) { width: 21%; }
.essential-customer-register-table th:nth-child(2) { width: 12%; }
.essential-customer-register-table th:nth-child(3) { width: 19%; }
.essential-customer-register-table th:nth-child(4) { width: 12%; }
.essential-customer-register-table th:nth-child(5) { width: 18%; }
.essential-customer-register-table th:nth-child(6) { width: 10%; }
.essential-customer-register-table th:nth-child(7) { width: 8%; }
.essential-customer-register-table td strong, .essential-customer-register-table td small { display: block; }
.essential-customer-register-table td small { margin-top: 4px; color: var(--muted); font-size: .75rem; }
.essential-customer-register-table .button { min-height: 34px; padding: 6px 10px; font-size: .75rem; }
.essential-customer-heading > div > p:last-child { max-width: 880px; margin-top: 4px; color: var(--muted); font-size: .62rem; line-height: 1.45; }
.essential-customer-heading > span { color: var(--muted); font-size: .62rem; font-weight: 800; white-space: nowrap; }
.essential-toolbar { display: grid; grid-template-columns: minmax(280px, 1fr) 210px 190px; gap: 10px; padding: 11px 14px; background: #f5f6f7; border-bottom: 1px solid var(--line); }
.essential-toolbar select { min-height: 40px; padding: 0 34px 0 11px; color: var(--ink); background: var(--white); border: 1px solid #cfd4da; border-radius: 4px; font-size: .66rem; font-weight: 700; }
.essential-customer-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.essential-customer-table th { padding: 10px 12px; color: #707984; background: #f3f5f7; border-bottom: 1px solid var(--line); font-size: .56rem; letter-spacing: .04em; text-align: left; text-transform: uppercase; }
.essential-customer-table td { padding: 11px 12px; vertical-align: middle; border-bottom: 1px solid var(--line); font-size: .66rem; overflow-wrap: anywhere; }
.essential-customer-table th:nth-child(1) { width: 23%; }
.essential-customer-table th:nth-child(2) { width: 21%; }
.essential-customer-table th:nth-child(3) { width: 14%; }
.essential-customer-table th:nth-child(4) { width: 20%; }
.essential-customer-table th:nth-child(5) { width: 13%; }
.essential-customer-table th:nth-child(6) { width: 9%; }
.essential-customer-table td strong, .essential-customer-table td small { display: block; }
.essential-customer-table td small { margin-top: 3px; color: var(--muted); font-size: .57rem; }
.essential-customer-table .button { min-height: 32px; padding: 5px 9px; font-size: .61rem; }
.essential-status { display: inline-block; padding: 4px 6px; color: #555d66; background: #eef0f2; border-radius: 3px; font-size: .52rem; font-weight: 820; text-transform: uppercase; }
.essential-status.matched, .essential-status.approved, .essential-status.ready, .essential-status.provided { color: var(--green); background: var(--green-soft); }
.essential-status.needs-review, .essential-status.unreviewed { color: #6a5500; background: var(--yellow-soft); }
.essential-status.excluded { color: var(--red); background: var(--red-soft); }
.essential-status.ready-to-submit, .essential-status.submitted, .essential-status.rma-assigned, .essential-status.shipped, .essential-status.received { color: #155fa8; background: #e6f1ff; }
.essential-status.resolved { color: var(--green); background: var(--green-soft); }
.essential-status.denied { color: var(--red); background: var(--red-soft); }
.essential-customer-empty { min-height: 210px; }
.essential-customer-footer { display: flex; gap: 12px; align-items: center; justify-content: space-between; min-height: 60px; padding: 10px 14px; background: #f7f8f9; }
.essential-customer-footer > span { color: var(--muted); font-size: .62rem; font-weight: 750; }
.essential-customer-footer > div { display: flex; gap: 8px; }
.essential-customer-modal { width: min(720px, calc(100vw - 28px)); }
.essential-customer-context { padding: 13px 14px; background: #f5f7f8; border: 1px solid var(--line); border-left: 4px solid var(--yellow); border-radius: 4px; }
.essential-customer-context strong, .essential-customer-context span { display: block; }
.essential-customer-context strong { font-size: .77rem; }
.essential-customer-context span { margin-top: 4px; color: var(--muted); font-size: .62rem; }
.essential-customer-modal .modal-body { display: grid; gap: 13px; padding: 18px 20px; }
.essential-customer-modal .modal-body > label, .essential-customer-modal .form-grid label { display: grid; gap: 7px; color: #30353b; font-size: .7rem; font-weight: 780; }
.essential-customer-modal select, .essential-customer-modal textarea { width: 100%; min-height: 44px; padding: 9px 11px; color: var(--ink); background: var(--white); border: 1px solid #cbd0d6; border-radius: 4px; }

@media (max-width: 820px) {
  .essential-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .essential-metrics button:nth-child(2) { border-right: 0; }
  .essential-metrics button:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .essential-toolbar { grid-template-columns: 1fr 1fr; }
  .essential-toolbar .search-box { grid-column: 1 / -1; }
  .essential-customer-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .essential-customer-summary > div:nth-child(2) { border-right: 0; }
  .essential-customer-summary > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 680px) {
  .essential-metrics { grid-template-columns: 1fr; }
  .essential-metrics button, .essential-metrics button:nth-child(2) { min-height: 76px; border-right: 0; border-bottom: 1px solid var(--line); }
  .essential-metrics button:last-child { border-bottom: 0; }
  .essential-toolbar { grid-template-columns: 1fr; }
  .essential-toolbar .search-box { grid-column: auto; }
  .essential-customer-heading { align-items: flex-start; flex-direction: column; }
  .essential-customer-table, .essential-customer-table tbody, .essential-customer-table tr, .essential-customer-table td { display: block; width: 100%; }
  .essential-customer-table thead { display: none; }
  .essential-customer-table tr { padding: 10px 13px; border-bottom: 1px solid var(--line); }
  .essential-customer-table td { display: grid; grid-template-columns: 105px minmax(0, 1fr); align-items: start; padding: 7px 0; border: 0; }
  .essential-customer-table td::before { content: attr(data-label); color: #737c86; font-size: .54rem; font-weight: 820; letter-spacing: .04em; text-transform: uppercase; }
  .essential-customer-table td > * { grid-column: 2; }
  .essential-customer-table td .button { width: fit-content; }
  .essential-customer-register-table, .essential-customer-register-table tbody, .essential-customer-register-table tr, .essential-customer-register-table td { display: block; width: 100%; }
  .essential-customer-register-table thead { display: none; }
  .essential-customer-register-table tr { padding: 10px 13px; border-bottom: 1px solid var(--line); }
  .essential-customer-register-table td { display: grid; grid-template-columns: 105px minmax(0, 1fr); align-items: start; padding: 7px 0; border: 0; }
  .essential-customer-register-table td::before { content: attr(data-label); color: #737c86; font-size: .6875rem; font-weight: 820; letter-spacing: .035em; text-transform: uppercase; }
  .essential-customer-register-table td > * { grid-column: 2; }
  .essential-customer-register-table td .button { width: fit-content; }
  .essential-customer-footer { align-items: stretch; flex-direction: column; }
  .essential-customer-footer > div { display: grid; grid-template-columns: 1fr 1fr; }
  .essential-customer-modal .form-grid { grid-template-columns: 1fr; }
}

/* Essential transition workspace */
.essential-section-nav { display: flex; gap: 0; margin-bottom: 16px; overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); scrollbar-width: thin; }
.essential-section-nav button { display: inline-flex; flex: 1 0 auto; gap: 7px; align-items: center; justify-content: center; min-height: 48px; padding: 10px 14px; color: #616a74; background: transparent; border: 0; border-right: 1px solid var(--line); border-bottom: 4px solid transparent; font: inherit; font-size: .63rem; font-weight: 800; cursor: pointer; white-space: nowrap; }
.essential-section-nav button:last-child { border-right: 0; }
.essential-section-nav button:hover, .essential-section-nav button.is-active { color: var(--ink); background: #fafbfc; border-bottom-color: var(--yellow); }
.essential-section-nav svg { width: 16px; }
.essential-section-nav b { min-width: 21px; padding: 3px 6px; color: #49515a; background: #eceff2; border-radius: 999px; font-size: .53rem; }
.essential-pane { min-width: 0; }
.essential-overview-label { margin: 0 0 8px; font-size: .78rem; }
.essential-action-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 12px; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.essential-action-grid button { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 64px; padding: 10px 13px; color: var(--ink); background: transparent; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font: inherit; text-align: left; cursor: pointer; }
.essential-action-grid button:nth-child(even) { border-right: 0; }
.essential-action-grid button:nth-last-child(-n+2) { border-bottom: 0; }
.essential-action-grid button:hover { background: #f8f9fa; }
.essential-action-grid button > span:first-child { display: grid; place-items: center; width: 32px; height: 32px; color: #5d646c; background: #f0f2f4; border-radius: 4px; }
.essential-action-grid button svg { width: 17px; }
.essential-action-grid strong, .essential-action-grid small { display: block; }
.essential-action-grid strong { font-size: .67rem; }
.essential-action-grid small { display: flex; gap: 4px; align-items: center; margin-top: 3px; color: #1267c4; font-size: .55rem; font-weight: 760; }
.essential-action-grid small svg { width: 12px; }
.essential-action-grid b { font-size: 1rem; }
.essential-pending-input { padding: 9px 12px; color: #59626c; background: #f7f8f9; border: 1px solid var(--line); border-radius: 4px; font-size: .6rem; }
.essential-config-list { max-height: none; }
.essential-config-list p, .essential-config-list button { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 9px; align-items: center; width: 100%; min-height: 58px; padding: 10px 14px; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line); font: inherit; text-align: left; }
.essential-config-list button { cursor: pointer; }
.essential-config-list button:hover { background: #f8f9fa; }
.essential-config-list button:last-child { border-bottom: 0; }
.essential-work-board, .essential-reference-board, .essential-service-board, .essential-export-board { overflow: hidden; }
.essential-work-board .surface-heading p:last-child, .essential-config .surface-heading p:last-child, .essential-reference-board .surface-heading p:last-child, .essential-service-board .surface-heading p:last-child, .essential-export-board .surface-heading p:last-child { max-width: 900px; margin-top: 4px; color: var(--muted); font-size: .62rem; line-height: 1.45; }
.essential-work-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.essential-work-list > button { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; min-height: 126px; padding: 15px 17px; color: var(--ink); background: var(--white); border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font: inherit; text-align: left; cursor: pointer; }
.essential-work-list > button:nth-child(even) { border-right: 0; }
.essential-work-list > button:hover { background: #fafbfc; }
.essential-work-list strong, .essential-work-list small, .essential-work-list em { display: block; }
.essential-work-list strong { font-size: .72rem; }
.essential-work-list small { margin-top: 5px; color: var(--muted); font-size: .59rem; line-height: 1.45; }
.essential-work-list em { margin-top: 10px; color: #59626c; font-size: .56rem; font-style: normal; font-weight: 750; }
.essential-work-list .essential-work-state { display: grid; gap: 7px; justify-items: end; }
.essential-priority { display: inline-block; padding: 4px 6px; color: #5d646d; background: #eef0f2; border-radius: 3px; font-size: .5rem; font-weight: 820; text-transform: uppercase; }
.essential-priority.urgent { color: var(--red); background: var(--red-soft); }
.essential-priority.high { color: #6a5500; background: var(--yellow-soft); }
.essential-customer-guidance { display: grid; gap: 3px; padding: 11px 14px; color: #5d510b; background: #fff9d8; border-bottom: 1px solid #eadb7e; }
.essential-customer-guidance strong { font-size: .64rem; }
.essential-customer-guidance span { font-size: .58rem; line-height: 1.4; }
.essential-bulk-bar { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 9px 14px; background: #eef6ff; border-bottom: 1px solid #cbdff5; }
.essential-bulk-bar span { color: #34526f; font-size: .62rem; }
.essential-customer-table th:nth-child(1) { width: 42px; }
.essential-customer-table th:nth-child(2) { width: 21%; }
.essential-customer-table th:nth-child(3) { width: 19%; }
.essential-customer-table th:nth-child(4) { width: 13%; }
.essential-customer-table th:nth-child(5) { width: 19%; }
.essential-customer-table th:nth-child(6) { width: 13%; }
.essential-customer-table th:nth-child(7) { width: 9%; }
.essential-customer-table .essential-select-column, .essential-customer-table td:first-child { padding-inline: 8px; text-align: center; }
.essential-customer-table input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--blue); }
.essential-customer-modal .modal-body, .essential-editor-modal .modal-body { display: grid; gap: 13px; padding: 18px 20px; }
.essential-customer-modal .modal-body > label, .essential-customer-modal .form-grid label, .essential-editor-modal .modal-body > label, .essential-editor-modal .form-grid label { display: grid; gap: 7px; color: #30353b; font-size: .7rem; font-weight: 780; }
.essential-customer-modal select, .essential-customer-modal textarea, .essential-editor-modal select, .essential-editor-modal textarea, .essential-editor-modal input { width: 100%; min-height: 44px; padding: 9px 11px; color: var(--ink); background: var(--white); border: 1px solid #cbd0d6; border-radius: 4px; }
.essential-customer-modal, .essential-editor-modal { overflow: hidden; }
.essential-customer-modal > form, .essential-editor-modal > form { display: flex; flex-direction: column; max-height: calc(100vh - 40px); }
.essential-customer-modal .modal-header, .essential-editor-modal .modal-header { display: flex; flex: 0 0 auto; gap: 18px; align-items: center; justify-content: space-between; min-height: 76px; padding: 15px 19px; border-bottom: 1px solid var(--line); }
.essential-customer-modal .modal-header > div, .essential-editor-modal .modal-header > div { min-width: 0; }
.essential-customer-modal .modal-header h2, .essential-editor-modal .modal-header h2 { margin-top: 4px; font-size: 1.05rem; line-height: 1.2; overflow-wrap: anywhere; }
.essential-customer-modal .modal-header .icon-button, .essential-editor-modal .modal-header .icon-button { flex: 0 0 auto; }
.essential-customer-modal .modal-body, .essential-editor-modal .modal-body { overflow-y: auto; }
.essential-customer-modal .modal-footer, .essential-editor-modal .modal-footer { display: flex; flex: 0 0 auto; gap: 8px; align-items: center; justify-content: flex-end; padding: 13px 19px; background: var(--white); border-top: 1px solid var(--line); }
.essential-editor-modal { width: min(760px, calc(100vw - 28px)); }
#essential-configuration-dialog { width: min(1080px, calc(100vw - 28px)); }
.essential-editor-context { padding: 12px 14px; color: #53606d; background: #f5f7f8; border-left: 4px solid var(--yellow); font-size: .84rem; line-height: 1.5; }
.essential-decision-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.essential-decision-panel { min-width: 0; }
.essential-decision-panel:first-child { border-right: 1px solid var(--line); }
.essential-decision-panel > header { min-height: 66px; padding: 12px 15px; background: #f5f6f7; border-bottom: 1px solid var(--line); }
.essential-decision-panel > header h3 { margin-top: 3px; font-size: .78rem; }
.essential-readiness-list button, .essential-service-queue button { display: grid; grid-template-columns: minmax(0, 1fr) 110px auto 16px; gap: 11px; align-items: center; width: 100%; min-height: 62px; padding: 10px 14px; color: var(--ink); background: var(--white); border: 0; border-bottom: 1px solid var(--line); font: inherit; text-align: left; cursor: pointer; }
.essential-readiness-list button:last-child, .essential-service-queue button:last-child { border-bottom: 0; }
.essential-readiness-list button:hover, .essential-service-queue button:hover { background: #f8fafb; }
.essential-readiness-list strong, .essential-readiness-list small, .essential-service-queue strong, .essential-service-queue small, .essential-coverage-row strong, .essential-coverage-row small { display: block; }
.essential-readiness-list strong, .essential-service-queue strong, .essential-coverage-row strong { font-size: .65rem; }
.essential-readiness-list small, .essential-service-queue small, .essential-coverage-row small { margin-top: 3px; color: var(--muted); font-size: .55rem; line-height: 1.35; }
.essential-readiness-list button > b, .essential-service-queue button > b { font-size: .65rem; white-space: nowrap; }
.essential-readiness-list button > svg, .essential-service-queue button > svg { width: 15px; color: #68717a; }
.essential-progress { display: block; height: 7px; overflow: hidden; background: #e5e8eb; border-radius: 999px; }
.essential-progress i { display: block; height: 100%; background: var(--green); border-radius: inherit; }
.essential-service-queue button { grid-template-columns: 32px minmax(0, 1fr) auto 16px; }
.essential-queue-icon { display: grid; place-items: center; width: 32px; height: 32px; color: #5a626b; background: #eef0f2; border-radius: 4px; }
.essential-queue-icon svg { width: 17px; }
.essential-reference-groups section { padding: 11px 14px; border-bottom: 1px solid var(--line); }
.essential-reference-groups section:last-of-type { border-bottom: 0; }
.essential-reference-groups h4 { margin-bottom: 5px; font-size: .63rem; }
.essential-coverage-row { display: grid; grid-template-columns: minmax(0, 1fr) 92px auto; gap: 10px; align-items: center; min-height: 47px; padding: 7px 0; border-bottom: 1px solid #eceff1; }
.essential-coverage-row:last-child { border-bottom: 0; }
.essential-coverage-row > b { font-size: .59rem; white-space: nowrap; }
.essential-reference-groups > footer, .essential-coverage-list > footer { display: flex; gap: 6px; align-items: baseline; padding: 10px 14px; color: #5d6670; background: #f7f8f9; border-top: 1px solid var(--line); font-size: .57rem; }
.essential-coverage-list > footer strong { color: var(--ink); font-size: .75rem; }
.essential-no-data { padding: 14px 0; color: var(--muted); font-size: .6rem; }
.essential-coverage-list { padding: 0 14px; }
.essential-board-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; padding: 11px 14px; background: #f7f8f9; }
.essential-export-content { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 15px; align-items: center; padding: 22px; }
.essential-export-content strong { display: block; font-size: .75rem; }
.essential-export-content p { max-width: 820px; margin-top: 5px; color: var(--muted); font-size: .62rem; line-height: 1.5; }
.essential-onboarding-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.essential-onboarding-layout > .surface { overflow: hidden; }
.essential-onboarding-layout .essential-work-list { grid-template-columns: 1fr; }
.essential-onboarding-layout .essential-work-list > button { min-height: 90px; border-right: 0; }
.essential-handoff-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 14px; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.essential-handoff-strip button { display: grid; grid-template-columns: minmax(0, 1fr) auto 14px; gap: 8px; align-items: center; min-height: 58px; padding: 10px 13px; color: var(--ink); background: transparent; border: 0; border-right: 1px solid var(--line); font: inherit; text-align: left; cursor: pointer; }
.essential-handoff-strip button:last-child { border-right: 0; }
.essential-handoff-strip button:hover { background: #f8f9fa; }
.essential-handoff-strip span { color: var(--muted); font-size: .58rem; font-weight: 720; }
.essential-handoff-strip strong { font-size: .82rem; }
.essential-handoff-strip svg { width: 14px; color: #66707a; }
.essential-crosswalk-board { overflow: hidden; }
.essential-crosswalk-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.essential-crosswalk-summary button { display: flex; gap: 8px; align-items: baseline; justify-content: center; min-height: 48px; padding: 8px 10px; color: var(--ink); background: #f7f8f9; border: 0; border-right: 1px solid var(--line); font: inherit; cursor: pointer; }
.essential-crosswalk-summary button:last-child { border-right: 0; }
.essential-crosswalk-summary button:hover { background: #eef1f3; }
.essential-crosswalk-summary strong { font-size: .78rem; }
.essential-crosswalk-summary span { color: var(--muted); font-size: .57rem; font-weight: 760; }
.essential-crosswalk-toolbar { grid-template-columns: minmax(280px, 1fr) 240px; }
.essential-crosswalk-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.essential-crosswalk-table th { padding: 10px 12px; color: #707984; background: #f3f5f7; border-bottom: 1px solid var(--line); font-size: .56rem; letter-spacing: .04em; text-align: left; text-transform: uppercase; }
.essential-crosswalk-table td { padding: 11px 12px; vertical-align: middle; border-bottom: 1px solid var(--line); font-size: .66rem; overflow-wrap: anywhere; }
.essential-crosswalk-table th:nth-child(1) { width: 42px; }
.essential-crosswalk-table th:nth-child(2) { width: 19%; }
.essential-crosswalk-table th:nth-child(3) { width: 13%; }
.essential-crosswalk-table th:nth-child(4) { width: 22%; }
.essential-crosswalk-table th:nth-child(5) { width: 18%; }
.essential-crosswalk-table th:nth-child(6) { width: 15%; }
.essential-crosswalk-table th:nth-child(7) { width: 12%; }
.essential-crosswalk-table td strong, .essential-crosswalk-table td small { display: block; }
.essential-crosswalk-table td small { margin-top: 3px; color: var(--muted); font-size: .57rem; }
.essential-crosswalk-table .essential-select-column, .essential-crosswalk-table td:first-child { padding-inline: 8px; text-align: center; }
.essential-crosswalk-table input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--blue); }
.essential-crosswalk-table .button { min-height: 32px; padding: 5px 9px; font-size: .59rem; }
.essential-catalog-status { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 8px; align-items: center; padding: 8px 14px; color: #5b4c08; background: #fff9dc; border-top: 1px solid #eadb7e; border-bottom: 1px solid #eadb7e; }
.essential-catalog-status > svg { width: 16px; }
.essential-catalog-status strong, .essential-catalog-status small { display: block; }
.essential-catalog-status strong { font-size: .61rem; }
.essential-catalog-status small { margin-top: 1px; color: #706429; font-size: .54rem; }
.essential-price-list-updates { border-bottom: 1px solid var(--line); }
.essential-price-list-updates > header { display: flex; gap: 16px; align-items: center; justify-content: space-between; min-height: 58px; padding: 10px 14px; background: #faf7e7; }
.essential-price-list-updates > header h3 { margin-top: 2px; font-size: .72rem; }
.essential-price-list-update-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; align-items: center; min-height: 58px; padding: 9px 14px; border-top: 1px solid var(--line); }
.essential-price-list-update-row strong, .essential-price-list-update-row small { display: block; }
.essential-price-list-update-row strong { font-size: .64rem; }
.essential-price-list-update-row small { margin-top: 3px; color: var(--muted); font-size: .54rem; }
.essential-price-list-update-counts { display: flex; flex-wrap: wrap; gap: 5px; justify-content: flex-end; }
.essential-price-list-update-counts b { padding: 3px 7px; color: #535c65; background: #eef0f2; border-radius: 3px; font-size: .51rem; }
.essential-price-list-dialog { width: min(1180px, calc(100vw - 28px)); overflow: hidden; }
.essential-price-list-dialog .modal-body { display: grid; gap: 12px; max-height: calc(100vh - 174px); padding: 15px 18px; overflow-y: auto; }
.essential-price-list-summary { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.essential-price-list-summary div { min-width: 0; padding: 9px 11px; border-right: 1px solid var(--line); }
.essential-price-list-summary div:last-child { border-right: 0; }
.essential-price-list-summary strong, .essential-price-list-summary small { display: block; }
.essential-price-list-summary strong { font-size: .76rem; }
.essential-price-list-summary small { margin-top: 2px; color: var(--muted); font-size: .51rem; }
.essential-price-list-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 10px; }
.essential-price-list-toolbar .search-box { min-height: 42px; border: 1px solid #cbd0d6; border-radius: 4px; }
.essential-price-list-toolbar select { min-height: 42px; padding: 8px 10px; background: var(--white); border: 1px solid #cbd0d6; border-radius: 4px; font: inherit; font-size: .6rem; }
.essential-price-list-table-wrap { max-height: 52vh; overflow: auto; border: 1px solid var(--line); border-radius: 4px; }
.essential-price-list-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.essential-price-list-table th { position: sticky; top: 0; z-index: 1; padding: 8px 10px; color: #707984; background: #f3f5f7; border-bottom: 1px solid var(--line); font-size: .51rem; letter-spacing: .04em; text-align: left; text-transform: uppercase; }
.essential-price-list-table td { padding: 8px 10px; vertical-align: middle; border-bottom: 1px solid var(--line); font-size: .57rem; overflow-wrap: anywhere; }
.essential-price-list-table tr:last-child td { border-bottom: 0; }
.essential-price-list-table strong, .essential-price-list-table small { display: block; }
.essential-price-list-table small { margin-top: 2px; color: var(--muted); font-size: .49rem; }
.essential-price-list-table select { width: 100%; min-height: 34px; padding: 5px 7px; background: var(--white); border: 1px solid #cbd0d6; border-radius: 3px; font: inherit; font-size: .53rem; }
.essential-catalog-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.essential-catalog-metrics button { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 54px; padding: 9px 14px; color: var(--ink); background: var(--white); border: 0; border-right: 1px solid var(--line); font: inherit; text-align: left; cursor: pointer; }
.essential-catalog-metrics button:last-child { border-right: 0; }
.essential-catalog-metrics button:hover { background: #f7f8f9; }
.essential-catalog-metrics strong, .essential-catalog-metrics small { display: block; }
.essential-catalog-metrics strong { font-size: .6rem; }
.essential-catalog-metrics small { margin-top: 2px; color: var(--muted); font-size: .52rem; }
.essential-catalog-metrics b { font-size: .78rem; }
.essential-catalog-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: #f5f6f7; border-bottom: 1px solid var(--line); }
.essential-catalog-tabs button { display: flex; gap: 7px; align-items: center; justify-content: center; min-height: 44px; padding: 8px 10px; color: #606a74; background: transparent; border: 0; border-right: 1px solid var(--line); border-bottom: 3px solid transparent; font: inherit; font-size: .6rem; font-weight: 780; cursor: pointer; }
.essential-catalog-tabs button:last-child { border-right: 0; }
.essential-catalog-tabs button:hover { color: var(--ink); background: #eef0f2; }
.essential-catalog-tabs button.is-active { color: var(--ink); background: var(--white); border-bottom-color: var(--yellow); }
.essential-catalog-tabs b { min-width: 20px; padding: 2px 6px; background: #e6e9ec; border-radius: 999px; font-size: .53rem; }
.essential-catalog-toolbar { grid-template-columns: minmax(280px, 1fr) 220px 220px; }
.essential-catalog-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.essential-catalog-table th { padding: 9px 12px; color: #707984; background: #f3f5f7; border-bottom: 1px solid var(--line); font-size: .53rem; letter-spacing: .04em; text-align: left; text-transform: uppercase; }
.essential-catalog-table td { padding: 10px 12px; vertical-align: middle; border-bottom: 1px solid var(--line); font-size: .62rem; overflow-wrap: anywhere; }
.essential-catalog-table tr[data-essential-catalog-open] { cursor: pointer; }
.essential-catalog-table tr[data-essential-catalog-open]:hover td { background: #f8f9fa; }
.essential-catalog-table td strong, .essential-catalog-table td small { display: block; }
.essential-catalog-table td small { margin-top: 2px; color: var(--muted); font-size: .54rem; line-height: 1.35; }
.essential-catalog-table th:first-child { width: 29%; }
.essential-catalog-table th:last-child { width: 44px; }
.essential-catalog-table .essential-catalog-open-icon { color: #66707a; text-align: right; }
.essential-catalog-table .essential-catalog-open-icon svg { width: 15px; }
.essential-catalog-footer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 14px; background: #f7f8f9; }
.essential-catalog-footer .essential-board-actions { padding: 0; border-top: 0; }
.essential-catalog-footer .essential-customer-footer { padding: 0; border-top: 0; }
.essential-catalog-dialog { width: min(1050px, calc(100vw - 30px)); overflow: hidden; }
.essential-catalog-dialog .modal-body { display: grid; gap: 14px; max-height: calc(100vh - 168px); padding: 15px 18px; overflow-y: auto; }
.essential-catalog-detail { display: grid; gap: 12px; }
.essential-catalog-identity { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; align-items: start; }
.essential-catalog-identity img { width: 92px; height: 92px; object-fit: contain; background: #f4f5f6; border: 1px solid var(--line); border-radius: 4px; }
.essential-catalog-identity > span { display: grid; place-items: center; width: 92px; height: 92px; color: #757e87; background: #f4f5f6; border: 1px solid var(--line); border-radius: 4px; }
.essential-catalog-identity > span svg { width: 30px; }
.essential-catalog-identity h3 { font-size: .88rem; }
.essential-catalog-identity p { margin-top: 4px; color: var(--muted); font-size: .61rem; line-height: 1.45; }
.essential-catalog-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.essential-catalog-tags b { padding: 3px 7px; color: #515a63; background: #eef0f2; border-radius: 3px; font-size: .51rem; text-transform: uppercase; }
.essential-catalog-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.essential-catalog-detail-grid section { min-width: 0; border-right: 1px solid var(--line); }
.essential-catalog-detail-grid section:last-child { border-right: 0; }
.essential-catalog-detail-grid header { padding: 9px 11px; background: #f4f5f6; border-bottom: 1px solid var(--line); }
.essential-catalog-detail-grid h4 { font-size: .61rem; }
.essential-catalog-detail-list { max-height: 290px; overflow-y: auto; }
.essential-catalog-detail-list article, .essential-catalog-detail-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; min-height: 50px; padding: 8px 11px; color: var(--ink); border-bottom: 1px solid var(--line); text-decoration: none; }
.essential-catalog-detail-list article:last-child, .essential-catalog-detail-list a:last-child { border-bottom: 0; }
.essential-catalog-detail-list a:hover { background: #f8f9fa; }
.essential-catalog-detail-list strong, .essential-catalog-detail-list small { display: block; }
.essential-catalog-detail-list strong { font-size: .59rem; }
.essential-catalog-detail-list small { margin-top: 2px; color: var(--muted); font-size: .51rem; line-height: 1.35; }
.essential-catalog-detail-list b { font-size: .56rem; }
.essential-catalog-review { padding-top: 12px; border-top: 1px solid var(--line); }
.essential-catalog-review h3 { margin-bottom: 10px; font-size: .7rem; }
.essential-reference-row, .essential-reference-group-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; min-height: 58px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.essential-reference-row:last-child, .essential-reference-group-row:last-child { border-bottom: 0; }
.essential-reference-row strong, .essential-reference-row small, .essential-reference-group-row strong, .essential-reference-group-row small { display: block; }
.essential-reference-row strong, .essential-reference-group-row strong { font-size: .65rem; }
.essential-reference-row small, .essential-reference-group-row small { margin-top: 3px; color: var(--muted); font-size: .55rem; line-height: 1.35; }
.essential-reference-row b, .essential-reference-group-row b { font-size: .72rem; }
.essential-match-modal { width: min(720px, calc(100vw - 28px)); overflow: hidden; }
.essential-match-modal .modal-header { display: flex; gap: 18px; align-items: center; justify-content: space-between; min-height: 76px; padding: 15px 19px; border-bottom: 1px solid var(--line); }
.essential-match-modal .modal-header h2 { margin-top: 4px; font-size: 1.05rem; line-height: 1.2; }
.essential-match-modal .modal-body { display: grid; gap: 12px; max-height: calc(100vh - 180px); padding: 16px 18px; overflow-y: auto; }
.essential-match-modal .modal-footer { display: flex; justify-content: flex-end; padding: 13px 19px; border-top: 1px solid var(--line); }
.essential-match-modal .search-box { min-height: 44px; border: 1px solid #cbd0d6; border-radius: 4px; }
.essential-match-list { overflow: hidden; border: 1px solid var(--line); border-radius: 4px; }
.essential-match-list button, .essential-match-choice { display: grid; grid-template-columns: minmax(0, 1fr) 18px; gap: 10px; align-items: center; width: 100%; min-height: 58px; padding: 10px 12px; color: var(--ink); background: var(--white); border: 0; border-bottom: 1px solid var(--line); font: inherit; text-align: left; cursor: pointer; }
.essential-match-choice { grid-template-columns: 20px minmax(0, 1fr); margin: 0; }
.essential-match-choice input { width: 17px; height: 17px; margin: 0; accent-color: var(--blue); }
.essential-match-list button:last-child, .essential-match-choice:last-child { border-bottom: 0; }
.essential-match-list button:hover, .essential-match-choice:hover, .essential-match-choice:has(input:checked) { background: #f1f7fb; }
.essential-match-list strong, .essential-match-list small { display: block; }
.essential-match-list strong { font-size: .66rem; }
.essential-match-list small { margin-top: 3px; color: var(--muted); font-size: .57rem; line-height: 1.35; }
.essential-match-list svg { width: 16px; color: #68717a; }

@media (max-width: 1100px) {
  .essential-action-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .essential-handoff-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .essential-handoff-strip button:nth-child(2) { border-right: 0; }
  .essential-handoff-strip button:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 820px) {
  .essential-work-list { grid-template-columns: 1fr; }
  .essential-work-list > button { border-right: 0; }
  .essential-decision-layout { grid-template-columns: 1fr; }
  .essential-decision-panel:first-child { border-right: 0; border-bottom: 1px solid var(--line); }
  .essential-onboarding-layout { grid-template-columns: 1fr; }
  .essential-crosswalk-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .essential-crosswalk-summary button:nth-child(2) { border-right: 0; }
  .essential-crosswalk-summary button:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .essential-catalog-metrics, .essential-catalog-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .essential-price-list-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .essential-price-list-summary div { border-bottom: 1px solid var(--line); }
  .essential-price-list-summary div:nth-child(even) { border-right: 0; }
  .essential-price-list-summary div:last-child { border-bottom: 0; }
  .essential-catalog-metrics button:nth-child(2), .essential-catalog-tabs button:nth-child(2) { border-right: 0; }
  .essential-catalog-metrics button:nth-child(-n+2), .essential-catalog-tabs button:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .essential-catalog-toolbar { grid-template-columns: 1fr 1fr; }
  .essential-catalog-toolbar .search-box { grid-column: 1 / -1; }
  .essential-catalog-footer { grid-template-columns: 1fr; }
  .essential-catalog-detail-grid { grid-template-columns: 1fr; }
  .essential-catalog-detail-grid section { border-right: 0; border-bottom: 1px solid var(--line); }
  .essential-catalog-detail-grid section:last-child { border-bottom: 0; }
}

@media (max-width: 680px) {
  .essential-catalog-toolbar { grid-template-columns: 1fr; }
  .essential-price-list-updates > header, .essential-price-list-update-row { align-items: stretch; grid-template-columns: 1fr; flex-direction: column; }
  .essential-price-list-update-counts { justify-content: flex-start; }
  .essential-price-list-toolbar { grid-template-columns: 1fr; }
  .essential-price-list-table { min-width: 850px; }
  .essential-catalog-toolbar .search-box { grid-column: auto; }
  .essential-catalog-table { min-width: 760px; }
  .essential-catalog-footer .essential-board-actions { display: grid; grid-template-columns: 1fr; }
  .essential-catalog-footer .essential-customer-footer { gap: 8px; align-items: stretch; }
  .essential-catalog-identity { grid-template-columns: 1fr; }
  .essential-catalog-identity img, .essential-catalog-identity > span { width: 72px; height: 72px; }
  .essential-action-grid { grid-template-columns: 1fr; }
  .essential-action-grid button, .essential-action-grid button:nth-child(even), .essential-action-grid button:nth-last-child(-n+2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .essential-action-grid button:last-child { border-bottom: 0; }
  .essential-bulk-bar { align-items: stretch; flex-direction: column; }
  .essential-export-content { grid-template-columns: 1fr; }
  .essential-customer-table td:first-child { text-align: left; }
  .essential-editor-modal .form-grid { grid-template-columns: 1fr; }
  .essential-readiness-list button { grid-template-columns: minmax(0, 1fr) auto 14px; }
  .essential-readiness-list button .essential-progress { grid-column: 1 / -1; grid-row: 2; }
  .essential-service-queue button { grid-template-columns: 30px minmax(0, 1fr) auto 14px; }
  .essential-coverage-row { grid-template-columns: minmax(0, 1fr) auto; }
  .essential-coverage-row .essential-progress { grid-column: 1 / -1; grid-row: 2; }
  .essential-board-actions { align-items: stretch; flex-direction: column; }
  .essential-board-actions .button { width: 100%; }
  .essential-customer-modal .modal-footer, .essential-editor-modal .modal-footer { align-items: stretch; flex-direction: column-reverse; }
  .essential-customer-modal .modal-footer .button, .essential-editor-modal .modal-footer .button { width: 100%; }
  .essential-handoff-strip { grid-template-columns: 1fr; }
  .essential-handoff-strip button, .essential-handoff-strip button:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .essential-handoff-strip button:last-child { border-bottom: 0; }
  .essential-crosswalk-toolbar { grid-template-columns: 1fr; }
  .essential-crosswalk-table, .essential-crosswalk-table tbody, .essential-crosswalk-table tr, .essential-crosswalk-table td { display: block; width: 100%; }
  .essential-crosswalk-table thead { display: none; }
  .essential-crosswalk-table tr { padding: 10px 13px; border-bottom: 1px solid var(--line); }
  .essential-crosswalk-table td { display: grid; grid-template-columns: 115px minmax(0, 1fr); align-items: start; padding: 7px 0; border: 0; }
  .essential-crosswalk-table td::before { content: attr(data-label); color: #737c86; font-size: .54rem; font-weight: 820; letter-spacing: .04em; text-transform: uppercase; }
  .essential-crosswalk-table td > * { grid-column: 2; }
  .essential-crosswalk-table td:first-child { text-align: left; }
  .essential-crosswalk-table td .button { width: fit-content; }
  .essential-match-modal .modal-footer { align-items: stretch; flex-direction: column-reverse; }
  .essential-match-modal .modal-footer .button { width: 100%; }
}

/* Products & Service Catalog */
.catalog-primary-nav button { min-height: 58px; padding: 12px 17px; font-size: .84rem; }
.catalog-primary-nav button:last-child { margin-left: 8px; border-left: 1px solid var(--line); }
.catalog-heading { align-items: center; min-height: 94px; padding: 19px 22px; }
.catalog-heading h2 { font-size: 1.35rem; }
.catalog-heading > div > p:last-child { max-width: 800px; margin-top: 6px; font-size: .86rem; line-height: 1.45; }
.essential-catalog-tabs { display: none; }
.essential-setup-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.essential-setup-nav button { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: center; min-height: 72px; padding: 12px 14px; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); font: inherit; text-align: left; cursor: pointer; }
.essential-setup-nav button:hover, .essential-setup-nav button.is-active { border-color: #c7ab15; box-shadow: inset 0 -3px 0 var(--yellow); }
.essential-setup-nav svg { width: 20px; color: #5e6770; }
.essential-setup-nav strong, .essential-setup-nav small { display: block; }
.essential-setup-nav strong { font-size: .82rem; }
.essential-setup-nav small { margin-top: 4px; color: var(--muted); font-size: .72rem; line-height: 1.4; }
.essential-price-list-updates.is-focus { scroll-margin-top: 82px; outline: 3px solid rgba(255, 213, 0, .32); outline-offset: -3px; }
.essential-price-list-updates > header { min-height: 72px; padding: 13px 18px; }
.essential-price-list-updates > header h3 { font-size: .88rem; }
.essential-commercial-profiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 14px 18px; background: #f5f7f8; border-top: 1px solid var(--line); }
.essential-commercial-profile { overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 5px; }
.essential-commercial-profile > header { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; padding: 14px; border-bottom: 1px solid var(--line); }
.essential-commercial-profile > header span { min-width: 0; }
.essential-commercial-profile > header strong, .essential-commercial-profile > header small { display: block; }
.essential-commercial-profile > header strong { font-size: .75rem; }
.essential-commercial-profile > header small { margin-top: 4px; color: var(--muted); font-size: .59rem; line-height: 1.4; }
.essential-commercial-profile > header b { flex: 0 0 auto; }
.essential-commercial-profile > div { display: grid; grid-template-columns: 1fr 1fr; }
.essential-commercial-profile > div > span { min-height: 70px; padding: 12px 14px; border-right: 1px solid var(--line); }
.essential-commercial-profile > div > span:last-child { border-right: 0; }
.essential-commercial-profile > div small, .essential-commercial-profile > div strong { display: block; }
.essential-commercial-profile > div small { color: var(--muted); font-size: .53rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.essential-commercial-profile > div strong { margin-top: 5px; font-size: .66rem; line-height: 1.35; }
.essential-commercial-profile > footer { display: flex; gap: 12px; align-items: center; justify-content: space-between; min-height: 54px; padding: 10px 14px; background: #fbfcfc; border-top: 1px solid var(--line); }
.essential-commercial-profile > footer p { max-width: 74%; color: var(--muted); font-size: .56rem; line-height: 1.4; }
.essential-commercial-profile > footer .plain-action { flex: 0 0 auto; }
.essential-commercial-profile > footer > div { display: flex; flex: 0 0 auto; gap: 10px; align-items: center; }
.essential-price-list-update-row { min-height: 70px; padding: 11px 18px; }
.essential-price-list-update-row strong { font-size: .7rem; }
.essential-price-list-update-row small { font-size: .58rem; }
.essential-price-list-actions { display: flex; gap: 8px; align-items: center; }
.essential-catalog-status { min-height: 54px; padding: 10px 18px; }
.essential-catalog-status strong { font-size: .68rem; }
.essential-catalog-status small { font-size: .57rem; }
.essential-catalog-metrics button { min-height: 68px; padding: 12px 18px; }
.essential-catalog-metrics strong { font-size: .67rem; }
.essential-catalog-metrics small { font-size: .56rem; line-height: 1.35; }
.essential-catalog-metrics b { font-size: .92rem; }
.essential-catalog-tabs button { min-height: 52px; font-size: .66rem; }
.essential-catalog-toolbar { padding: 12px 18px; }
.essential-catalog-table th { padding: 12px 15px; font-size: .7rem; }
.essential-catalog-table td { min-height: 72px; padding: 14px 15px; font-size: .84rem; }
.essential-catalog-table td strong { font-size: .88rem; line-height: 1.35; }
.essential-catalog-table td strong em { color: var(--muted); font-size: .65rem; font-style: normal; font-weight: 700; text-transform: uppercase; }
.essential-catalog-table td small { margin-top: 5px; font-size: .74rem; line-height: 1.4; }
.essential-catalog-family-row th { padding: 10px 15px; color: #3d454d; background: #e9edf0; border-top: 1px solid #cfd5da; border-bottom: 1px solid #cfd5da; font-size: .76rem; letter-spacing: .03em; text-transform: none; }
.catalog-product-cell { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 10px; align-items: center; }
.catalog-image-frame { display: grid; place-items: center; width: 48px; height: 48px; overflow: hidden; color: #78828c; background: #f3f5f6; border: 1px solid var(--line); border-radius: 4px; }
.catalog-image-frame img { width: 100%; height: 100%; object-fit: contain; }
.catalog-image-frame svg { width: 22px; height: 22px; }
.essential-catalog-dialog { width: min(1120px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: hidden; }
.essential-catalog-dialog > form { display: flex; flex-direction: column; max-height: calc(100vh - 32px); }
.essential-catalog-dialog .modal-header, .essential-price-list-dialog .modal-header { display: flex; flex: 0 0 auto; gap: 18px; align-items: center; justify-content: space-between; min-height: 86px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.essential-catalog-dialog .modal-header > div, .essential-price-list-dialog .modal-header > div { min-width: 0; }
.essential-catalog-dialog .modal-header h2, .essential-price-list-dialog .modal-header h2 { max-width: 920px; margin-top: 5px; font-size: 1.25rem; line-height: 1.18; overflow-wrap: anywhere; }
.essential-catalog-dialog .modal-header .icon-button, .essential-price-list-dialog .modal-header .icon-button { flex: 0 0 auto; }
.essential-catalog-dialog .modal-body { gap: 18px; max-height: none; padding: 20px 22px; }
.essential-catalog-dialog .modal-footer, .essential-price-list-dialog .modal-footer { display: flex; flex: 0 0 auto; gap: 8px; align-items: center; justify-content: flex-end; padding: 13px 22px; background: var(--white); border-top: 1px solid var(--line); }
.essential-catalog-detail { gap: 16px; }
.essential-catalog-hero { grid-template-columns: 170px minmax(0, 1fr); gap: 20px; align-items: start; padding-bottom: 2px; }
.essential-catalog-hero .catalog-hero-image { display: grid; place-items: center; width: 170px; height: 170px; overflow: hidden; color: #78828c; background: #f3f5f6; border: 1px solid var(--line); border-radius: 5px; }
.essential-catalog-hero .catalog-hero-image img { width: 100%; height: 100%; object-fit: contain; }
.essential-catalog-hero .catalog-hero-image svg { width: 42px; }
.essential-catalog-item-number { color: #41484f !important; font-size: .88rem !important; font-weight: 800; }
.essential-catalog-description { max-width: 800px; margin-top: 10px !important; color: #5a646e !important; font-size: .88rem !important; line-height: 1.55 !important; }
.essential-catalog-description.is-missing { color: #8a6e00 !important; }
.catalog-configuration-row { align-items: flex-start !important; gap: 24px; }
.catalog-configuration-status { display: grid; justify-items: end; gap: 6px; text-align: right; }
.catalog-configuration-status small { color: #5a646e; font-size: .82rem; font-weight: 700; line-height: 1.35; }

@media (max-width: 720px) {
  .catalog-configuration-row { display: grid !important; gap: 12px; }
  .catalog-configuration-status { justify-items: start; text-align: left; }
}
.essential-catalog-tags { gap: 7px; margin-top: 12px; }
.essential-catalog-tags b { padding: 6px 9px; font-size: .68rem; }
.catalog-source-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.catalog-source-button { width: fit-content; margin-top: 0; }
.catalog-source-button small { color: inherit; font-size: 0.72rem; font-weight: 700; opacity: 0.72; }
.essential-catalog-detail-grid { gap: 14px; border: 0; border-radius: 0; overflow: visible; }
.essential-catalog-detail-grid.single { grid-template-columns: 1fr; }
.essential-catalog-detail-grid section { overflow: hidden; background: var(--white); border: 1px solid var(--line) !important; border-radius: 5px; }
.essential-catalog-detail-grid header { padding: 12px 14px; }
.essential-catalog-detail-grid h4 { font-size: .84rem; }
.essential-catalog-detail-list article, .essential-catalog-detail-list a { min-height: 60px; padding: 11px 14px; }
.essential-catalog-detail-list strong { font-size: .82rem; }
.essential-catalog-detail-list small { font-size: .72rem; }
.catalog-specifications { max-height: 340px; overflow: auto; }
.catalog-specifications table { width: 100%; border-collapse: collapse; }
.catalog-specifications th,
.catalog-specifications td { padding: 9px 12px; border-bottom: 1px solid var(--line); font-size: .72rem; line-height: 1.35; text-align: left; vertical-align: top; }
.catalog-specifications thead th { position: sticky; top: 0; color: var(--muted); background: #f7f8f9; font-size: .62rem; letter-spacing: .05em; text-transform: uppercase; }
.catalog-specifications tbody th { width: 50%; color: var(--ink); font-weight: 700; }
.essential-price-cards { display: grid; gap: 0; }
.essential-price-cards article { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; min-height: 64px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.essential-price-cards article:last-child { border-bottom: 0; }
.essential-price-cards small { color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.essential-price-cards strong { grid-column: 2; grid-row: 1 / span 2; font-size: .94rem; }
.essential-price-cards span { color: var(--muted); font-size: .72rem; }
.essential-catalog-review { padding: 16px; background: #f6f8f9; border: 1px solid var(--line); border-radius: 5px; }
.essential-catalog-review h3 { margin-bottom: 14px; font-size: .94rem; }
.essential-catalog-review label { display: grid; gap: 7px; font-size: .82rem; font-weight: 700; }
.essential-catalog-review select, .essential-catalog-review textarea { width: 100%; min-height: 46px; padding: 10px 12px; color: var(--ink); background: var(--white); border: 1px solid #cbd0d6; border-radius: 4px; font: inherit; font-size: .86rem; }

@media (max-width: 980px) {
  .essential-setup-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .essential-commercial-profiles { grid-template-columns: 1fr; }
  .essential-price-list-update-row { grid-template-columns: minmax(0, 1fr) auto; }
  .essential-price-list-update-counts { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; }
  .essential-price-list-actions { grid-column: 2; grid-row: 1; }
}

@media (max-width: 680px) {
  .catalog-primary-nav button { min-height: 50px; padding: 9px 12px; }
  .catalog-primary-nav button:last-child { margin-left: 0; }
  .essential-setup-nav { grid-template-columns: 1fr; }
  .essential-commercial-profiles { padding: 10px; }
  .essential-commercial-profile > div { grid-template-columns: 1fr; }
  .essential-commercial-profile > div > span { border-right: 0; border-bottom: 1px solid var(--line); }
  .essential-commercial-profile > footer { align-items: flex-start; flex-direction: column; }
  .essential-commercial-profile > footer p { max-width: 100%; }
  .essential-price-list-update-row { display: grid; grid-template-columns: 1fr; }
  .essential-price-list-actions { grid-column: 1; grid-row: auto; align-items: stretch; flex-direction: column; }
  .essential-price-list-actions .button { width: 100%; }
  .essential-catalog-table-wrap { overflow: visible; }
  .essential-catalog-table, .essential-catalog-table tbody { display: block; width: 100%; min-width: 0; }
  .essential-catalog-table thead { display: none; }
  .essential-catalog-table tr:not(.essential-catalog-family-row) { position: relative; display: grid; grid-template-columns: 1fr; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .essential-catalog-table tr:not(.essential-catalog-family-row) td { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; align-items: start; min-height: 0; padding: 8px 0; border: 0; font-size: .82rem; }
  .essential-catalog-table tr:not(.essential-catalog-family-row) td::before { content: attr(data-label); color: #707984; font-size: .66rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
  .essential-catalog-table tr:not(.essential-catalog-family-row) td > * { grid-column: 2; }
  .essential-catalog-table tr:not(.essential-catalog-family-row) td:first-child { display: block; padding: 2px 28px 12px 0; border-bottom: 1px solid #e2e5e8; }
  .essential-catalog-table tr:not(.essential-catalog-family-row) td:first-child::before { display: none; }
  .essential-catalog-table tr:not(.essential-catalog-family-row) td:first-child > * { grid-column: auto; }
  .essential-catalog-table tr:not(.essential-catalog-family-row) .essential-catalog-open-icon { position: absolute; top: 28px; right: 12px; display: block; width: 18px; padding: 0; }
  .essential-catalog-family-row { display: block; }
  .essential-catalog-family-row th { display: block; width: 100%; }
  .essential-catalog-hero { grid-template-columns: 1fr; }
  .essential-catalog-hero .catalog-hero-image { width: 120px; height: 120px; }
  .essential-catalog-dialog .modal-header h2, .essential-price-list-dialog .modal-header h2 { font-size: 1rem; }
  .essential-catalog-dialog .modal-body { padding: 15px; }
  .essential-catalog-dialog .modal-footer { align-items: stretch; flex-direction: column-reverse; }
  .essential-catalog-dialog .modal-footer .button { width: 100%; }
}

/* Portal navigation and catalog operations */
@media (min-width: 921px) {
  .workspace-header {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr) auto;
    gap: 18px;
    min-height: 78px;
    overflow: visible;
    padding-inline: clamp(22px, 2.2vw, 38px);
  }
  .workspace-brand { width: 190px; height: 52px; margin-right: 0; }
  .workspace-nav { display: flex; align-self: stretch; justify-content: center; min-width: 0; }
  .nav-tab { flex: 0 1 auto; min-width: 0; padding: 0 clamp(8px, .72vw, 13px); }
  .nav-tab::after { right: 8px; left: 8px; }
  .nav-tab svg { flex: 0 0 auto; width: 15px; }
  .nav-tab span { font-size: clamp(.72rem, .7vw, .8rem); }
  .nav-tab .nav-counter {
    display: inline-grid;
    flex: 0 0 auto;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    color: #202327;
    background: #d8dde2;
    border: 1px solid #eef1f3;
    border-radius: 999px;
    font-size: .66rem;
    line-height: 1;
  }
  .nav-tab .nav-counter[hidden] { display: none; }
  .nav-tab.is-active .nav-counter { color: #161719; background: var(--yellow); border-color: var(--yellow); }
  .workspace-tools { margin-left: 0; }
}

@media (min-width: 921px) and (max-width: 1220px) {
  .workspace-header { grid-template-columns: 150px minmax(0, 1fr) auto; gap: 10px; padding-inline: 16px; }
  .workspace-brand { width: 150px; }
  .nav-tab { gap: 5px; padding-inline: 7px; }
  .nav-tab span { font-size: .68rem; }
  .nav-tab svg { width: 14px; }
  .system-link { width: 37px; justify-content: center; padding: 0; }
  .system-link span, .system-link > svg:last-child { display: none; }
}

.catalog-primary-nav { align-items: stretch; }
.catalog-primary-nav button { flex: 1 0 auto; min-height: 58px; padding: 12px 15px; font-size: .82rem; }
.catalog-primary-nav .catalog-setup-tab { margin-left: 8px; border-left: 1px solid var(--line); }
.essential-catalog-metrics { background: #f6f7f8; }
.essential-catalog-metrics button { min-height: 50px; padding: 9px 16px; background: #f6f7f8; }
.essential-catalog-metrics button:hover { background: #eceff1; }
.essential-catalog-metrics small { display: none; }
.essential-catalog-metrics strong { font-size: .78rem; }
.essential-catalog-metrics b { font-size: 1rem; }

.warranty-status { display: inline-flex; align-items: center; width: fit-content; padding: 4px 7px; border-radius: 3px; font-size: .54rem; font-weight: 840; line-height: 1.2; }
.warranty-status.forever, .warranty-status.lifetime_blade { color: #0f6c43; background: #e4f6ed; }
.warranty-status.five_year { color: #0f6c43; background: #e4f6ed; }
.warranty-status.one_year, .warranty-status.two_year { color: #145f83; background: #e5f4fb; }
.warranty-status.three_year { color: #755c00; background: #fff3b8; }
.warranty-status.not_covered, .warranty-status.accessory_excluded { color: #9f1e27; background: #fde8ea; }
.warranty-status.review_required { color: #4f5963; background: #e9edf0; }
.catalog-warranty-card { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px; background: #f7faf8; border: 1px solid #cbded3; border-radius: 5px; }
.catalog-warranty-card > span:first-child { display: grid; place-items: center; width: 38px; height: 38px; color: #16734c; background: #e4f6ed; border-radius: 4px; }
.catalog-warranty-card svg { width: 20px; }
.catalog-warranty-card strong, .catalog-warranty-card small { display: block; }
.catalog-warranty-card strong { font-size: .7rem; }
.catalog-warranty-card small { margin-top: 4px; color: #59636c; font-size: .58rem; line-height: 1.45; }
.catalog-warranty-card a { color: #1767c7; font-size: .59rem; font-weight: 800; text-decoration: none; white-space: nowrap; }

.tnt-request-heading { min-height: 92px; padding: 18px 21px; }
.tnt-request-heading h2 { font-size: 1.3rem; }
.tnt-request-heading p:last-child { margin-top: 6px; color: var(--muted); font-size: .86rem; line-height: 1.45; }
.tnt-policy-strip { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 18px; color: #24453a; background: #edf8f3; border-bottom: 1px solid #c3dfd2; }
.tnt-policy-strip > span { display: grid; place-items: center; width: 38px; height: 38px; color: #138653; background: #fff; border: 1px solid #c3dfd2; border-radius: 4px; }
.tnt-policy-strip svg { width: 20px; }
.tnt-policy-strip strong, .tnt-policy-strip small { display: block; }
.tnt-policy-strip strong { font-size: .84rem; }
.tnt-policy-strip small { margin-top: 4px; color: #506d63; font-size: .73rem; line-height: 1.4; }
.tnt-policy-strip a { display: inline-flex; gap: 5px; align-items: center; color: #0d6a44; font-size: .75rem; font-weight: 800; text-decoration: none; }
.tnt-policy-strip a svg { width: 14px; }
.tnt-request-toolbar { grid-template-columns: minmax(300px, 1fr) 220px; padding: 11px 18px; }
.tnt-request-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.tnt-request-table th { padding: 11px 14px; color: #707984; background: #f3f5f7; border-bottom: 1px solid var(--line); font-size: .68rem; letter-spacing: .04em; text-align: left; text-transform: uppercase; }
.tnt-request-table td { padding: 14px; border-bottom: 1px solid var(--line); font-size: .82rem; line-height: 1.4; vertical-align: middle; }
.tnt-request-table tbody tr { cursor: pointer; }
.tnt-request-table tbody tr:hover td { background: #f8f9fa; }
.tnt-request-table strong, .tnt-request-table small { display: block; }
.tnt-request-table strong { font-size: .86rem; }
.tnt-request-table small { margin-top: 4px; color: var(--muted); font-size: .72rem; }
.tnt-request-table th:first-child { width: 22%; }
.tnt-request-table th:last-child { width: 42px; }
.tnt-request-resources { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: #f7f8f9; border-top: 1px solid var(--line); }
.tnt-request-resources > a, .tnt-request-resources > div { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 74px; padding: 12px 15px; color: var(--ink); border-right: 1px solid var(--line); text-decoration: none; }
.tnt-request-resources > *:last-child { border-right: 0; }
.tnt-request-resources > a:hover { background: #eef0f2; }
.tnt-request-resources > * > svg:first-child { width: 20px; color: #59636c; }
.tnt-request-resources > * > svg:last-child { width: 14px; color: #6c7580; }
.tnt-request-resources strong, .tnt-request-resources small { display: block; }
.tnt-request-resources strong { font-size: .8rem; }
.tnt-request-resources small { margin-top: 4px; color: var(--muted); font-size: .68rem; line-height: 1.4; }

.tnt-request-dialog { width: min(1040px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: hidden; }
.tnt-request-dialog > form { display: flex; flex-direction: column; max-height: calc(100vh - 32px); }
.tnt-request-dialog .modal-header { display: flex; flex: 0 0 auto; gap: 18px; align-items: center; justify-content: space-between; min-height: 82px; padding: 15px 20px; border-bottom: 1px solid var(--line); }
.tnt-request-dialog .modal-header h2 { margin-top: 4px; font-size: 1.35rem; line-height: 1.2; }
.tnt-request-dialog .modal-body { display: grid; gap: 14px; padding: 17px 20px; overflow-y: auto; }
.tnt-request-dialog .modal-footer { display: flex; flex: 0 0 auto; gap: 8px; align-items: center; justify-content: flex-end; padding: 12px 20px; background: #fff; border-top: 1px solid var(--line); }
.tnt-request-stage { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 12px; background: #f2f4f5; border: 1px solid var(--line); border-radius: 5px; }
.tnt-request-stage label, .tnt-form-section label { display: grid; gap: 7px; color: #343a40; font-size: .82rem; font-weight: 700; }
.tnt-request-stage select, .tnt-form-section input, .tnt-form-section select, .tnt-form-section textarea { width: 100%; min-height: 46px; padding: 10px 12px; color: var(--ink); background: #fff; border: 1px solid #c8ced4; border-radius: 4px; font: inherit; font-size: .88rem; }
.tnt-form-section label > small { color: var(--muted); font-size: .72rem; font-weight: 400; line-height: 1.4; }
.tnt-form-section { display: grid; gap: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 5px; }
.tnt-form-section > header { display: flex; gap: 14px; align-items: center; justify-content: space-between; padding-bottom: 10px; border-bottom: 1px solid #e2e5e8; }
.tnt-form-section > header h3 { margin-top: 4px; font-size: 1rem; }
.tnt-form-section .form-grid { gap: 10px 12px; }
.tnt-form-section .form-grid .wide { grid-column: 1 / -1; }
.tnt-form-section .check-row { display: flex; grid-template-columns: none; flex-direction: row; gap: 8px; align-items: center; }
.tnt-form-section .check-row input { width: 16px; min-height: 16px; }
.tnt-paid-extras { display: flex; flex-wrap: wrap; gap: 10px 18px; padding: 11px 12px; border: 1px solid var(--line); }
.tnt-paid-extras legend { padding: 0 5px; font-size: .76rem; font-weight: 800; }
.tnt-paid-extras label { display: flex; flex-direction: row; align-items: center; }
.tnt-paid-extras input { width: 15px; min-height: 15px; }
.tnt-shipping-checklist { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 11px 12px; color: #5d5014; background: #fff9dd; border: 1px solid #e7d57b; border-radius: 4px; font-size: .72rem; }
.tnt-shipping-checklist strong { margin-right: 4px; }
.tnt-shipping-checklist span::before { content: "•"; margin-right: 7px; }
.tnt-team-stage { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; align-items: center; min-height: 58px; padding: 10px 12px; color: #175e41; background: #eaf7f0; border: 1px solid #bcdcca; border-radius: 4px; }
.tnt-team-stage > svg { width: 20px; }
.tnt-team-stage strong, .tnt-team-stage small { display: block; }
.tnt-team-stage strong { font-size: .84rem; }
.tnt-team-stage small { margin-top: 3px; color: #527063; font-size: .72rem; line-height: 1.4; }
.tnt-evidence-section > header > span { color: var(--muted); font-size: .75rem; font-weight: 800; }
.tnt-evidence-drop { display: grid !important; grid-template-columns: 36px minmax(0, 1fr); gap: 11px !important; align-items: center; min-height: 76px; padding: 12px 14px; background: #f7f9fa; border: 2px dashed #bcc4cb; border-radius: 5px; cursor: pointer; }
.tnt-evidence-drop:hover { border-color: #858e97; background: #f1f4f5; }
.tnt-evidence-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.tnt-evidence-drop > svg { width: 24px; color: #5f6972; }
.tnt-evidence-drop strong, .tnt-evidence-drop small { display: block; }
.tnt-evidence-drop strong { font-size: .86rem; }
.tnt-evidence-drop small { margin-top: 4px; color: var(--muted); font-size: .74rem; font-weight: 400; line-height: 1.4; }
.tnt-evidence-list { display: grid; gap: 7px; }
.tnt-evidence-list > button, .tnt-evidence-list > div { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 54px; padding: 9px 11px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 4px; font: inherit; text-align: left; }
.tnt-evidence-list > button { cursor: pointer; }
.tnt-evidence-list > button:hover { background: #f5f7f8; }
.tnt-evidence-list > * > svg:first-child { width: 19px; color: #68727c; }
.tnt-evidence-list strong, .tnt-evidence-list small { display: block; }
.tnt-evidence-list strong { font-size: .8rem; }
.tnt-evidence-list small { margin-top: 3px; color: var(--muted); font-size: .7rem; }
.work-rma-board { margin-top: 16px; overflow: hidden; }
.work-rma-list > button { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto 54px 90px 18px; gap: 12px; align-items: center; width: 100%; min-height: 72px; padding: 12px 16px; color: var(--ink); background: #fff; border: 0; border-bottom: 1px solid var(--line); font: inherit; text-align: left; cursor: pointer; }
.work-rma-list > button:last-child { border-bottom: 0; }
.work-rma-list > button:hover { background: #f7f8f9; }
.work-rma-icon { display: grid; place-items: center; width: 40px; height: 40px; color: #725f00; background: var(--yellow-soft); border-radius: 4px; }
.work-rma-icon svg { width: 20px; }
.work-rma-copy strong, .work-rma-copy small { display: block; }
.work-rma-copy strong { font-size: .88rem; }
.work-rma-copy small { margin-top: 4px; color: var(--muted); font-size: .74rem; }
.work-rma-evidence { display: inline-flex; gap: 4px; align-items: center; color: var(--muted); font-size: .72rem; font-weight: 700; }
.work-rma-evidence svg { width: 14px; }
.work-rma-list time { color: var(--muted); font-size: .72rem; text-align: right; }
.work-rma-list > button > svg:last-child { width: 17px; color: #737c85; }
.empty-state.compact { min-height: 180px; padding: 24px; }

@media (max-width: 920px) {
  .catalog-primary-nav button { flex: 1 0 auto; }
  .catalog-primary-nav .catalog-setup-tab { margin-left: 0; }
  .tnt-request-resources { grid-template-columns: 1fr; }
  .tnt-request-resources > a, .tnt-request-resources > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .tnt-request-resources > *:last-child { border-bottom: 0; }
  .work-rma-list > button { grid-template-columns: 40px minmax(0, 1fr) auto 18px; }
  .work-rma-evidence, .work-rma-list time { display: none; }
}

@media (max-width: 680px) {
  .catalog-primary-nav { margin-inline: -14px; border-right: 0; border-left: 0; border-radius: 0; }
  .catalog-primary-nav button { min-height: 48px; padding: 9px 11px; }
  .tnt-request-heading { align-items: flex-start; flex-direction: column; }
  .tnt-request-heading .button { width: 100%; }
  .tnt-policy-strip { grid-template-columns: 34px minmax(0, 1fr); padding: 11px 13px; }
  .tnt-policy-strip > span { width: 34px; height: 34px; }
  .tnt-policy-strip a { grid-column: 2; }
  .tnt-request-toolbar { grid-template-columns: 1fr; padding: 10px 13px; }
  .tnt-request-table, .tnt-request-table tbody, .tnt-request-table tr, .tnt-request-table td { display: block; width: 100%; }
  .tnt-request-table thead { display: none; }
  .tnt-request-table tr { position: relative; padding: 10px 13px; border-bottom: 1px solid var(--line); }
  .tnt-request-table td { display: grid; grid-template-columns: 102px minmax(0, 1fr); gap: 10px; padding: 6px 0; border: 0; }
  .tnt-request-table td::before { content: attr(data-label); color: #727b85; font-size: .66rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
  .tnt-request-table td > * { grid-column: 2; }
  .tnt-request-table td:first-child { padding-right: 24px; }
  .tnt-request-stage, .tnt-form-section .form-grid { grid-template-columns: 1fr; }
  .tnt-form-section .form-grid .wide { grid-column: auto; }
  .tnt-form-section > header { align-items: flex-start; flex-direction: column; }
  .tnt-form-section > header .button { width: 100%; }
  .tnt-request-dialog { width: 100vw; height: 100vh; max-height: 100vh; border-radius: 0; }
  .tnt-request-dialog > form { height: 100vh; max-height: 100vh; }
  .tnt-request-dialog .modal-header { min-height: 72px; padding: 13px 15px; }
  .tnt-request-dialog .modal-header h2 { font-size: 1.1rem; }
  .tnt-request-dialog .modal-body { padding: 12px; }
  .tnt-request-stage select, .tnt-form-section input, .tnt-form-section select, .tnt-form-section textarea { font-size: 1rem; }
  .tnt-request-dialog .modal-footer { align-items: stretch; flex-direction: column-reverse; padding: 11px 12px; }
  .tnt-request-dialog .modal-footer .button { width: 100%; }
  .catalog-warranty-card { grid-template-columns: 34px minmax(0, 1fr); }
  .catalog-warranty-card a { grid-column: 2; }
  .catalog-heading { align-items: flex-start; flex-direction: column; }
  .work-rma-list > button { grid-template-columns: 38px minmax(0, 1fr) 18px; min-height: 82px; padding: 12px 13px; }
  .work-rma-list .essential-status { grid-column: 2; width: fit-content; }
  .work-rma-list > button > svg:last-child { grid-column: 3; grid-row: 1 / span 2; }
}

/* Product and service reference usability */
.essential-catalog-metrics {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.essential-catalog-metrics button {
  min-height: 62px;
  padding: 11px 14px;
}
.essential-catalog-metrics strong {
  font-size: .72rem;
  line-height: 1.3;
}
.essential-catalog-metrics small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: .55rem;
  line-height: 1.3;
}
.essential-catalog-metrics b {
  font-size: 1rem;
}
.essential-catalog-toolbar {
  position: sticky;
  top: 0;
  z-index: 3;
  grid-template-columns: minmax(340px, 2fr) repeat(3, minmax(155px, 1fr));
  gap: 10px;
  background: #f7f8f9;
  border-bottom: 1px solid var(--line);
}
.essential-catalog-toolbar select {
  min-width: 0;
  font-size: .78rem;
}
.essential-catalog-toolbar select:disabled {
  color: #7a838c;
  background: #eceff1;
  cursor: wait;
}
.essential-catalog-toolbar .search-box {
  align-self: start;
  grid-row: span 2;
  height: 44px;
}
.warranty-status.source_needed {
  color: #755c00;
  background: #fff3b8;
}
.catalog-warranty-card.source_needed {
  background: #fffbeb;
  border-color: #e6d57c;
}
.catalog-warranty-card.source_needed > span:first-child {
  color: #755c00;
  background: #fff3b8;
}
.essential-catalog-review[hidden] {
  display: none !important;
}

@media (max-width: 1180px) {
  .essential-catalog-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .essential-catalog-metrics button:nth-child(3n) {
    border-right: 0;
  }
  .essential-catalog-toolbar {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }
  .essential-catalog-toolbar .search-box {
    grid-row: auto;
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .essential-catalog-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .essential-catalog-metrics button:nth-child(3n) {
    border-right: 1px solid var(--line);
  }
  .essential-catalog-metrics button:nth-child(even) {
    border-right: 0;
  }
  .essential-catalog-toolbar {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .essential-catalog-toolbar {
    grid-template-columns: 1fr;
  }
  .essential-catalog-toolbar .search-box {
    grid-column: auto;
  }
}

/* Portal design system: readable operational hierarchy */
:root {
  --canvas: #f2f4f6;
  --canvas-muted: #f5f6f7;
  --line: #d7dce2;
  --muted: #606975;
  --radius: 7px;
  --text-caption: .8125rem;
  --text-table: .875rem;
  --text-body: .9375rem;
  --text-control: .875rem;
  --text-card-title: 1.125rem;
  --text-section-title: 1.375rem;
  --text-page-title: 2.125rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  font-size: var(--text-body);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.workspace {
  color: #1b1e22;
}

.workspace-header {
  min-height: 76px;
  padding-inline: clamp(20px, 2.5vw, 40px);
  overflow: visible;
}

.workspace-brand {
  width: 202px;
  height: 52px;
  margin-right: 22px;
}

.workspace-nav {
  gap: 1px;
}

.nav-tab {
  min-width: 0;
  padding-inline: 11px;
}

.nav-tab span {
  font-size: .84375rem;
  font-weight: 650;
  letter-spacing: -.01em;
}

.nav-tab svg {
  width: 17px;
}

.nav-tab b {
  min-width: 22px;
  height: 22px;
  padding-inline: 6px;
  border-radius: 11px;
  font-size: .75rem;
  font-weight: 750;
}

.system-link {
  min-height: 42px;
  padding-inline: 13px;
  color: #fff;
  background: #1b1d20;
  border: 1px solid #3a3e43;
  font-size: .8125rem;
  font-weight: 700;
}

.workspace-tools .essential-link {
  color: #fff;
  background: #1b1d20;
  border-color: #3a3e43;
}

.workspace-tools .essential-link > svg:first-child {
  color: var(--yellow);
}

.workspace-tools .system-link:hover {
  background: #292c30;
  border-color: #545960;
}

.owner-button {
  width: 42px;
  height: 42px;
}

.owner-button span {
  font-size: .8125rem;
  font-weight: 750;
}

.workspace-main {
  width: min(1520px, 100%);
  padding: 30px clamp(20px, 3vw, 44px) 60px;
}

.view-heading {
  align-items: center;
  min-height: 68px;
  margin-bottom: 22px;
}

.view-heading h1 {
  margin-top: 5px;
  font-size: var(--text-page-title);
  font-weight: 750;
  letter-spacing: -.035em;
  line-height: 1.08;
}

.view-heading > div > p:last-child {
  max-width: 820px;
  margin-top: 9px;
  font-size: 1rem;
  line-height: 1.5;
}

.workspace .eyebrow {
  font-size: var(--text-caption);
  font-weight: 750;
  letter-spacing: .07em;
  line-height: 1.3;
}

.heading-actions {
  gap: 10px;
}

.surface {
  border-color: var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(17, 24, 32, .035);
}

.surface-heading {
  min-height: 72px;
  padding: 17px 21px;
}

.surface-heading h2 {
  margin-top: 4px;
  font-size: var(--text-card-title);
  font-weight: 725;
  letter-spacing: -.015em;
  line-height: 1.25;
}

.surface-heading > div > p:last-child,
.catalog-heading > div > p:last-child,
.marketing-section-heading > div > p:last-child,
.library-home-heading > div > p:last-child {
  margin-top: 5px;
  color: var(--muted);
  font-size: var(--text-table);
  line-height: 1.45;
}

.button {
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 5px;
  font-size: var(--text-control);
  font-weight: 700;
  line-height: 1.2;
}

.button svg {
  width: 18px;
}

.icon-button {
  width: 42px;
  height: 42px;
  border-radius: 5px;
}

.icon-button svg {
  width: 19px;
}

.plain-action,
.section-link {
  font-size: var(--text-control);
  font-weight: 700;
}

.period-select,
.search-box input,
.library-toolbar select,
.service-filters select,
.service-upcoming-controls select,
.library-manager-toolbar select,
.library-activity-toolbar select,
.essential-toolbar select,
.essential-catalog-toolbar select,
.work-assignment-toolbar select {
  min-height: 44px;
  border-radius: 5px;
  font-size: var(--text-control);
}

.period-select {
  height: 44px;
  padding-inline: 12px;
}

.period-select select {
  font-size: var(--text-control);
}

.search-box input {
  height: 44px;
  padding-left: 43px;
}

.search-box svg {
  left: 14px;
  width: 19px;
}

.modal-form label,
.document-review-fields label,
.service-department-status-modal .modal-body label,
.form-grid label,
.tnt-form-section label {
  font-size: var(--text-control);
  font-weight: 650;
  line-height: 1.35;
}

.field input,
.modal-form input,
.modal-form select,
.modal-form textarea,
.document-review-fields input,
.document-review-fields textarea,
.service-department-status-modal select,
.service-department-status-modal input,
.service-department-status-modal textarea,
.tnt-form-section input,
.tnt-form-section select,
.tnt-form-section textarea {
  min-height: 44px;
  border-radius: 5px;
  font-size: var(--text-body);
}

.modal-form textarea,
.document-review-fields textarea,
.service-department-status-modal textarea,
.tnt-form-section textarea {
  line-height: 1.5;
}

.segmented {
  gap: 2px;
  padding: 4px;
  border-radius: 6px;
}

.segmented button,
.segmented.large button {
  min-height: 36px;
  padding: 7px 12px;
  border-radius: 4px;
  font-size: .8125rem;
  font-weight: 650;
}

.segmented.large button {
  min-height: 42px;
  padding-inline: 15px;
  font-size: var(--text-control);
}

.count-label,
.source-status,
.result-count {
  font-size: .8125rem;
  font-weight: 700;
}

.status-tag,
.role-tag,
.active-label,
.essential-status,
.warranty-status,
.sample-tag,
.channel {
  font-size: .75rem;
  font-weight: 750;
  line-height: 1.25;
}

.metric-ribbon {
  border-top-width: 3px;
}

.metric-ribbon article {
  min-height: 108px;
  padding: 17px 20px;
}

.metric-ribbon small,
.service-outlook-metrics small,
.service-priority-ribbon small,
.service-report-metrics small,
.service-detail-metrics small {
  font-size: .8125rem;
  font-weight: 700;
  line-height: 1.3;
}

.metric-ribbon strong {
  margin-top: 5px;
  font-size: 1.75rem;
}

.metric-ribbon em,
.service-outlook-metrics span,
.service-priority-ribbon em {
  margin-top: 5px;
  font-size: .75rem;
  line-height: 1.35;
}

.service-outlook-metrics strong,
.service-priority-ribbon strong {
  font-size: 1.5rem;
}

.service-outlook-list-heading strong,
.service-outlook-row strong,
.service-upcoming-row strong,
.service-row strong,
.service-visit-row strong {
  font-size: var(--text-table);
}

.service-outlook-list-heading span,
.service-outlook-row small,
.service-upcoming-row small,
.service-row small,
.service-visit-row small,
.service-record-summary,
.service-department-context p,
.service-plan-source {
  font-size: var(--text-caption);
  line-height: 1.4;
}

.service-outlook-row,
.service-upcoming-row,
.service-row,
.service-visit-row,
.file-row {
  min-height: 68px;
}

.service-columns span,
.service-upcoming-columns span,
.service-visit-columns span,
.file-columns span,
.lead-columns span {
  font-size: .75rem;
  font-weight: 750;
  letter-spacing: .035em;
}

.service-row > span,
.service-upcoming-row > span,
.service-visit-row > span,
.file-row > div,
.file-row > span {
  font-size: var(--text-table);
  line-height: 1.45;
}

.service-department strong,
.service-upcoming-department strong,
.service-upcoming-date strong,
.service-visit-date strong,
.file-name strong {
  font-size: .9375rem;
  font-weight: 700;
}

.service-department small,
.service-upcoming-department small,
.service-upcoming-date small,
.service-visit-date small,
.file-name small {
  font-size: var(--text-caption);
}

th,
.library-manager-table th {
  height: auto;
  padding: 12px 15px;
  font-size: .75rem;
  font-weight: 750;
  letter-spacing: .045em;
  line-height: 1.35;
}

td,
.library-manager-table td {
  height: auto;
  padding: 14px 15px;
  font-size: var(--text-table);
  line-height: 1.45;
}

table strong,
.library-manager-file strong,
.library-owner-cell strong {
  font-size: .90625rem;
  font-weight: 700;
  line-height: 1.35;
}

table small,
.library-manager-file small,
.library-owner-cell small {
  font-size: var(--text-caption);
  line-height: 1.4;
}

.library-manager-selection,
.library-activity-toolbar > span,
.library-manager-note,
.library-export-intro,
.library-export-progress strong,
.library-export-progress span,
.library-export-note {
  font-size: var(--text-caption);
}

.library-activity-row header strong {
  font-size: .75rem;
}

.library-activity-row time,
.library-activity-row small {
  font-size: .75rem;
}

.library-activity-row h3 {
  font-size: 1rem;
}

.library-activity-row p {
  font-size: var(--text-caption);
}

.empty-state {
  min-height: 180px;
  align-content: center;
  padding: 28px 22px 32px;
}

.empty-state > span {
  width: 46px;
  height: 46px;
}

.empty-state h3 {
  margin-top: 13px;
  font-size: 1.0625rem;
  font-weight: 700;
}

.empty-state p,
.service-outlook-empty p,
.service-upcoming-empty p,
.library-activity-empty p {
  font-size: var(--text-table);
  line-height: 1.5;
}

.empty-state.compact {
  min-height: 150px;
  padding: 24px;
}

.modal {
  border-radius: 9px;
}

.modal-head,
.modal-header {
  min-height: 80px;
  padding: 17px 23px;
}

.modal-head h2,
.modal-header h2 {
  margin-top: 4px;
  font-size: 1.5rem;
  font-weight: 725;
  letter-spacing: -.025em;
  line-height: 1.2;
}

.modal-body,
.modal-form {
  gap: 16px;
  padding: 22px 23px;
}

.modal-actions,
.modal-footer {
  gap: 10px;
  padding: 15px 23px;
}

.lead-details dt,
.document-meta dt,
.document-review-summary dt,
.invite-preview-meta dt {
  font-size: .75rem;
  font-weight: 750;
  letter-spacing: .04em;
}

.lead-details dd,
.document-meta dd,
.document-review-summary dd,
.invite-preview-meta dd {
  font-size: var(--text-table);
}

.lead-details small {
  font-size: var(--text-caption);
}

.document-stage {
  min-height: 400px;
  padding: 18px 23px;
  background: #e9ecef;
}

.document-preview-frame {
  min-height: 320px;
}

.document-preview-loading,
.document-generic-preview em,
.document-generic-preview p,
.document-access-note span,
.document-intake-source span {
  font-size: var(--text-caption);
}

.document-generic-preview small,
.document-access-note strong,
.document-intake-source strong {
  font-size: .8125rem;
}

.file-drop strong,
.document-batch > header strong,
.document-duplicate-warning > header strong,
.filing-preview strong,
.classification-key strong,
.classification-types > header strong {
  font-size: var(--text-control);
}

.file-drop small,
.file-drop input,
.document-batch > header small,
.document-duplicate-warning > header small,
.filing-preview small,
.form-note,
.classification-key small,
.classification-types > header small {
  font-size: var(--text-caption);
}

.service-intake-tile h2,
.service-record-details-heading h3 {
  font-size: var(--text-card-title);
}

.service-intake-tile > div > p:last-child,
.service-intake-tile ul,
.service-upcoming-heading > div:first-child > p:last-child,
.service-board-heading > div:first-child > p:last-child,
.service-record-details-heading p:last-child,
.service-contact-history-heading p:last-child,
.service-report-preview > header > p:last-child,
.service-report-preview-note,
.service-status-behavior,
.service-plan-behavior {
  font-size: var(--text-caption);
  line-height: 1.5;
}

.service-contact-card-main p,
.service-department-context small,
.service-visit-columns span,
.service-contact-history-heading > span {
  font-size: .75rem;
}

.service-contact-card-main strong {
  font-size: .9375rem;
}

.service-contact-card-main small,
.service-contact-links a,
.service-observation-result,
.service-observation-empty {
  font-size: var(--text-caption);
}

.service-contact-actions button {
  min-height: 34px;
  padding: 7px 10px;
  font-size: .75rem;
}

.essential-catalog-metrics button {
  min-height: 72px;
  padding: 13px 16px;
}

.essential-catalog-metrics strong {
  font-size: .8125rem;
}

.essential-catalog-metrics small {
  font-size: .75rem;
}

.essential-catalog-metrics b {
  font-size: 1.25rem;
}

.essential-catalog-toolbar {
  gap: 12px;
  padding-block: 14px;
}

.essential-catalog-table td,
.essential-customer-table td,
.essential-crosswalk-table td,
.tnt-request-table td,
.essential-price-list-table td {
  font-size: var(--text-table);
}

.essential-catalog-table small,
.essential-customer-table small,
.essential-crosswalk-table small,
.tnt-request-table small,
.essential-price-list-table small {
  font-size: var(--text-caption);
}

.essential-catalog-table th,
.essential-customer-table th,
.essential-crosswalk-table th,
.tnt-request-table th,
.essential-price-list-table th {
  font-size: .75rem;
}

.essential-section-nav button {
  font-size: var(--text-control);
}

.essential-section-nav b,
.essential-priority,
.essential-price-list-update-counts b {
  font-size: .75rem;
}

.essential-work-list strong,
.essential-config-list strong,
.essential-readiness-list strong,
.essential-service-queue strong,
.essential-coverage-row strong {
  font-size: var(--text-table);
}

.essential-work-list small,
.essential-config-list small,
.essential-readiness-list small,
.essential-service-queue small,
.essential-coverage-row small,
.essential-work-list em,
.essential-no-data,
.essential-export-content p,
.essential-handoff-strip span,
.essential-crosswalk-summary span {
  font-size: var(--text-caption);
}

.essential-price-list-updates > header h3 {
  font-size: 1rem;
}

.essential-commercial-profile > header strong {
  font-size: .9375rem;
}

.essential-commercial-profile > header small,
.essential-commercial-profile > div strong,
.essential-commercial-profile > footer p,
.essential-price-list-update-row small {
  font-size: var(--text-caption);
}

.essential-commercial-profile > div small,
.essential-price-list-summary small {
  font-size: .75rem;
}

.essential-price-list-update-row strong,
.essential-price-list-summary strong {
  font-size: var(--text-table);
}

.essential-price-list-toolbar select,
.essential-price-list-table select {
  font-size: var(--text-control);
}

.catalog-warranty-card strong {
  font-size: var(--text-table);
}

.catalog-warranty-card small,
.catalog-warranty-card a {
  font-size: var(--text-caption);
}

.toast span {
  font-size: var(--text-table);
}

.auth-panel-head p,
.auth-panel label {
  font-size: .8125rem;
}

.auth-copy {
  font-size: .9375rem;
}

.review-entry strong,
.review-entry span,
.review-entry button,
.return-link,
.form-message {
  font-size: .8125rem;
}

@media (max-width: 1280px) {
  .workspace-brand {
    width: 182px;
    margin-right: 12px;
  }

  .nav-tab {
    padding-inline: 9px;
  }

  .nav-tab span {
    font-size: .8125rem;
  }

  .nav-tab svg {
    display: none;
  }
}

@media (max-width: 1380px) and (min-width: 921px) {
  .workspace-tools .system-link {
    width: 42px;
    padding: 0;
  }

  .workspace-tools .system-link > span,
  .workspace-tools .system-link > svg:last-child {
    display: none;
  }
}

@media (min-width: 921px) and (max-width: 1500px) {
  .workspace-header {
    grid-template-columns: 160px minmax(0, 1fr) auto;
    gap: 8px;
    padding-inline: 12px;
  }

  .workspace-brand {
    width: 160px;
    height: 48px;
    margin-right: 0;
  }

  .workspace-nav {
    gap: 0;
  }

  .nav-tab {
    gap: 4px;
    padding-inline: 6px;
  }

  .nav-tab svg {
    display: none;
  }

  .nav-tab span {
    font-size: .72rem;
  }

  .workspace-tools {
    gap: 5px;
  }
}

@media (max-width: 920px) {
  .workspace-header {
    min-height: 70px;
    overflow: hidden;
  }

  .workspace-brand {
    width: 186px;
  }

  .workspace-nav {
    gap: 2px;
  }

  .nav-tab {
    min-height: 48px;
  }

  .nav-tab svg {
    display: block;
  }

  .nav-tab span,
  .mobile-nav-heading {
    font-size: .875rem;
  }
}

@media (max-width: 680px) {
  .workspace-main {
    padding: 22px 14px 46px;
  }

  .view-heading {
    gap: 16px;
    margin-bottom: 20px;
  }

  .view-heading h1 {
    font-size: 1.75rem;
  }

  .view-heading > div > p:last-child {
    font-size: .9375rem;
  }

  .surface-heading {
    min-height: 66px;
    padding: 15px 16px;
  }

  .surface-heading h2 {
    font-size: 1.125rem;
  }

  .button {
    min-height: 44px;
    font-size: .875rem;
  }

  th {
    font-size: .75rem;
  }

  td {
    font-size: .875rem;
  }

  .modal {
    width: 100vw;
    max-height: 100vh;
    border-radius: 0;
  }

  .modal-head,
  .modal-header {
    min-height: 72px;
    padding: 14px 16px;
  }

  .modal-head h2,
  .modal-header h2 {
    font-size: 1.25rem;
  }

  .modal-body,
  .modal-form {
    padding: 17px 16px;
  }

  .modal-actions,
  .modal-footer {
    padding: 13px 16px;
  }

  .document-stage {
    min-height: 300px;
    padding: 14px 16px;
  }

  .document-preview-frame {
    min-height: 260px;
  }
}

/* Operational workflow refinements */
.operational-signal-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 20px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.operational-signal-strip > button {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 16px;
  gap: 11px;
  align-items: center;
  min-height: 78px;
  padding: 14px 16px;
  text-align: left;
  background: #fff;
  border: 0;
  border-right: 1px solid var(--line);
  cursor: pointer;
}

.operational-signal-strip > button:last-child {
  border-right: 0;
}

.operational-signal-strip > button:hover,
.operational-signal-strip > button:focus-visible {
  background: #fffdf3;
  outline: 2px solid var(--yellow);
  outline-offset: -2px;
}

.operational-signal-strip > button > span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--red);
  background: var(--red-soft);
  border-radius: var(--radius);
}

.operational-signal-strip > button > span svg,
.operational-signal-strip > button > svg {
  width: 18px;
  height: 18px;
}

.operational-signal-strip > button > svg {
  color: var(--muted);
}

.operational-signal-strip small,
.operational-signal-strip strong {
  display: block;
}

.operational-signal-strip small {
  color: var(--muted);
  font-size: var(--text-caption);
  font-weight: 650;
}

.operational-signal-strip strong {
  margin-top: 1px;
  font-size: 1.375rem;
  line-height: 1.1;
}

.service-table-wrap {
  position: relative;
  max-height: min(64vh, 760px);
  overflow: auto;
}

.service-department-table thead {
  position: sticky;
  top: 0;
  z-index: 3;
}

.service-department-table thead th {
  background: var(--canvas-muted);
  box-shadow: inset 0 -1px var(--line);
}

.service-department-row {
  cursor: pointer;
  transition: background-color 140ms ease, box-shadow 140ms ease;
}

.service-department-row:hover,
.service-department-row:focus-visible {
  background: #fffdf3;
  box-shadow: inset 3px 0 var(--yellow);
  outline: none;
}

.service-overdue-days {
  color: var(--red);
  font-size: .9375rem;
}

.catalog-product-cell {
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
}

.catalog-image-frame {
  width: 64px;
  height: 64px;
  padding: 4px;
  background: #fff;
  border-radius: var(--radius);
}

.catalog-image-frame svg {
  width: 25px;
  height: 25px;
}

.library-home-tools {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) auto auto auto;
  gap: 12px;
  align-items: center;
  margin: 0 0 24px;
}

.library-home-tools .search-box {
  min-width: 0;
}

.library-sync-state {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  color: var(--muted);
  font-size: var(--text-caption);
  white-space: nowrap;
}

.library-sync-state svg {
  width: 17px;
  height: 17px;
  color: var(--green);
}

.system-exceptions {
  margin-bottom: 24px;
}

.system-exception-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.system-exception-list > button {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto 18px;
  gap: 12px;
  align-items: center;
  min-height: 82px;
  padding: 16px 18px;
  color: var(--ink);
  text-align: left;
  background: #fff;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.system-exception-list > button:nth-child(2n) {
  border-right: 0;
}

.system-exception-list > button:hover,
.system-exception-list > button:focus-visible {
  background: #fffdf3;
  outline: 2px solid var(--yellow);
  outline-offset: -2px;
}

.system-exception-list > button > span:first-child {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--red);
  background: #fff0f1;
  border-radius: var(--radius);
}

.system-exception-list > button > span svg {
  width: 20px;
  height: 20px;
}

.system-exception-list > button strong,
.system-exception-list > button small {
  display: block;
}

.system-exception-list > button strong {
  font-size: var(--text-table);
}

.system-exception-list > button small {
  margin-top: 3px;
  color: var(--muted);
  font-size: var(--text-caption);
  line-height: 1.4;
}

.system-exception-list > button > b {
  font-size: 1.25rem;
}

.system-exception-list > button > svg {
  width: 18px;
  height: 18px;
  color: var(--muted);
}

.system-exception-clear,
.access-audit-empty {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 78px;
  padding: 16px 20px;
  color: var(--muted);
}

.system-exception-clear > svg,
.access-audit-empty > svg {
  width: 24px;
  height: 24px;
  color: var(--green);
}

.system-exception-clear strong,
.system-exception-clear small,
.access-audit-empty strong,
.access-audit-empty small {
  display: block;
}

.system-exception-clear strong,
.access-audit-empty strong {
  color: var(--ink);
  font-size: var(--text-table);
}

.system-exception-clear small,
.access-audit-empty small {
  margin-top: 2px;
  font-size: var(--text-caption);
}

.access-audit-list article {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 68px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
}

.access-audit-list article > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--green);
  background: #eaf7f0;
  border-radius: var(--radius);
}

.access-audit-list article > span svg {
  width: 19px;
  height: 19px;
}

.access-audit-list article strong,
.access-audit-list article small {
  display: block;
}

.access-audit-list article strong {
  font-size: var(--text-table);
}

.access-audit-list article small,
.access-audit-list article time {
  color: var(--muted);
  font-size: var(--text-caption);
}

.marketing-outcomes {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(420px, 1.4fr);
  align-items: stretch;
  margin-bottom: 24px;
}

.marketing-outcomes > div {
  padding: 20px 24px;
}

.marketing-outcomes > div h2 {
  margin: 4px 0 0;
  font-size: var(--text-section-title);
}

.marketing-outcomes dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border-left: 1px solid var(--line);
}

.marketing-outcomes dl > div {
  display: grid;
  align-content: center;
  padding: 16px 22px;
  border-left: 1px solid var(--line);
}

.marketing-outcomes dl > div:first-child {
  border-left: 0;
}

.marketing-outcomes dt,
.marketing-outcomes small {
  color: var(--muted);
  font-size: var(--text-caption);
}

.marketing-outcomes dd {
  margin: 4px 0;
  font-size: 1.5rem;
  font-weight: 700;
}

.staff-email-guide {
  display: grid;
  grid-template-columns: minmax(210px, .62fr) minmax(0, 1.38fr);
  align-items: stretch;
  margin-bottom: 16px;
  overflow: hidden;
}

.staff-email-guide > header {
  display: grid;
  align-content: center;
  padding: 18px 20px;
  border-right: 1px solid var(--line);
}

.staff-email-guide > header h2 {
  margin: 4px 0 0;
  font-size: var(--text-section-title);
}

.staff-email-guide > header p:last-child {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: var(--text-caption);
  line-height: 1.45;
}

.staff-email-addresses {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.staff-email-addresses article {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 32px;
  gap: 11px;
  align-items: center;
  min-width: 0;
  padding: 15px 14px;
  border-right: 1px solid var(--line);
}

.staff-email-addresses article:last-child {
  border-right: 0;
}

.staff-email-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 7px;
}

.staff-email-icon svg {
  width: 19px;
}

.staff-email-icon.blue { color: var(--blue); background: var(--blue-soft); }
.staff-email-icon.red { color: var(--red); background: var(--red-soft); }
.staff-email-icon.yellow { color: #836600; background: var(--yellow-soft); }
.staff-email-icon.green { color: var(--green); background: var(--green-soft); }

.staff-email-addresses strong,
.staff-email-addresses small,
.staff-email-addresses a {
  display: block;
}

.staff-email-addresses strong {
  color: var(--ink);
  font-size: .8rem;
}

.staff-email-addresses small {
  margin-top: 3px;
  color: var(--muted);
  font-size: .7rem;
  line-height: 1.35;
}

.staff-email-addresses a {
  margin-top: 6px;
  overflow: hidden;
  color: #1766b0;
  font-size: .72rem;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staff-email-addresses article > button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  color: #66707a;
  background: var(--white);
  border: 1px solid #cfd4d9;
  border-radius: 5px;
  cursor: pointer;
}

.staff-email-addresses article > button:hover {
  color: var(--ink);
  background: #f5f7f8;
}

.staff-email-addresses article > button svg {
  width: 16px;
}

.staff-email-guide--single {
  grid-template-columns: minmax(280px, .72fr) minmax(420px, 1.28fr);
}

.staff-email-guide--single .staff-email-addresses {
  grid-template-columns: 1fr;
}

.staff-email-guide--directory {
  margin-top: 16px;
  grid-template-columns: minmax(210px, .5fr) minmax(0, 1.5fr);
}

.staff-email-guide--directory .staff-email-addresses {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.staff-email-guide--directory .staff-email-addresses article:nth-child(2) {
  border-right: 0;
}

.staff-email-guide--directory .staff-email-addresses article:nth-child(-n + 2) {
  border-bottom: 1px solid var(--line);
}

@media (max-width: 1100px) {
  .staff-email-guide,
  .staff-email-guide--single,
  .staff-email-guide--directory {
    grid-template-columns: 1fr;
  }

  .staff-email-guide > header {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .operational-signal-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .operational-signal-strip > button:nth-child(2) {
    border-right: 0;
  }

  .operational-signal-strip > button:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .library-home-tools {
    grid-template-columns: minmax(260px, 1fr) auto auto;
  }

  .library-sync-state {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .staff-email-addresses,
  .staff-email-guide--directory .staff-email-addresses {
    grid-template-columns: 1fr;
  }

  .staff-email-addresses article,
  .staff-email-guide--directory .staff-email-addresses article:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .staff-email-addresses article:last-child {
    border-bottom: 0;
  }

  .operational-signal-strip {
    grid-template-columns: 1fr;
  }

  .operational-signal-strip > button,
  .operational-signal-strip > button:nth-child(2) {
    min-height: 70px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .operational-signal-strip > button:last-child {
    border-bottom: 0;
  }

  .service-table-wrap {
    max-height: none;
    overflow: visible;
  }

  .service-department-table thead {
    position: static;
  }

  .catalog-product-cell {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .catalog-image-frame {
    width: 56px;
    height: 56px;
  }

  .library-home-tools,
  .system-exception-list,
  .marketing-outcomes,
  .marketing-outcomes dl {
    grid-template-columns: 1fr;
  }

  .library-home-tools .button {
    width: 100%;
  }

  .system-exception-list > button,
  .system-exception-list > button:nth-child(2n) {
    border-right: 0;
  }

  .marketing-outcomes dl {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .marketing-outcomes dl > div,
  .marketing-outcomes dl > div:first-child {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .marketing-outcomes dl > div:first-child {
    border-top: 0;
  }

  .access-audit-list article {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .access-audit-list article time {
    grid-column: 2;
  }
}
