.ops-bar {position:sticky;top:0;z-index:2;min-height:60px;height:auto;padding-block:6px}
.ops-bar .signature {text-decoration:none;color:var(--text)}
.ops-bar nav {min-width:0;gap:4px}
.ops-popover {position:relative;min-width:0}
.ops-popover > summary {display:flex;align-items:center;justify-content:center;gap:8px;min-height:36px;padding:6px 11px;border:1px solid transparent;border-radius:8px;color:var(--muted);font-weight:650;white-space:nowrap;list-style:none;cursor:pointer;outline-offset:2px}
.ops-popover > summary::-webkit-details-marker {display:none}
.ops-popover > summary::after {content:"";width:6px;height:6px;flex:none;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:translateY(-2px) rotate(45deg)}
.ops-popover[open] > summary::after {transform:translateY(1px) rotate(225deg)}
.ops-popover > summary:hover,.ops-popover[open] > summary,.ops-popover[data-active] > summary {background:var(--accent-wash);color:var(--text)}
.ops-popover[data-active] > summary {border-color:var(--strong-line)}
.ops-nav-menu {position:absolute;top:calc(100% + 5px);left:0;z-index:1;display:grid;gap:2px;width:max-content;min-width:168px;max-width:calc(100vw - 20px);max-height:65dvh;overflow:auto;padding:5px;border:1px solid var(--strong-line);border-radius:10px;background:var(--surface);box-shadow:0 12px 32px #060d1b42}
.ops-popover:not([open]) > .ops-nav-menu {display:none}
.ops-nav-menu > :is(a,button) {display:flex;align-items:center;justify-content:space-between;min-height:37px;padding:7px 9px;border:0;border-radius:6px;background:transparent;color:var(--muted);font:inherit;font-weight:600;text-align:left;text-decoration:none;white-space:nowrap;outline-offset:-2px}
.ops-nav-menu > :is(a,button):hover,.ops-nav-menu > a[aria-current="page"] {background:var(--accent-wash);color:var(--text)}
.ops-account {margin-left:auto}
.ops-account > summary {background:var(--surface);border-color:var(--line);font-size:12px}
#ops-actor {display:block;max-width:14em;overflow:hidden;text-overflow:ellipsis}
.ops-account .ops-nav-menu {right:0;left:auto;min-width:192px}
.ops-account-theme {display:flex;align-items:center;justify-content:space-between;gap:12px;margin-block:3px;padding:8px 9px;border-top:1px solid var(--line);color:var(--muted);font-size:12px}
.ops-content {max-width:1660px;margin:0 auto;padding:24px 22px 34px}
.ops-heading {display:flex;align-items:start;justify-content:space-between;gap:12px;margin-bottom:16px}
.ops-heading p {color:var(--muted);margin-top:5px;font-size:13px}
.ops-live {display:inline-flex;align-items:center;gap:7px;flex-shrink:0;border:1px solid var(--line);background:var(--surface);color:var(--green);font-size:12px;padding:5px 9px;border-radius:7px}
.ops-view {display:grid;grid-template-columns:minmax(225px,1fr) minmax(280px,2.02fr) minmax(270px,1.1fr);gap:12px;align-items:start}
.ops-panel {min-width:0;border:1px solid var(--line);background:var(--surface);border-radius:10px;overflow:hidden}
.ops-panel header {padding:13px 14px 11px}
.ops-panel header p {color:var(--muted);font-size:12px;margin-top:4px}
.ops-panel-body {padding:0 14px 13px;overflow-wrap:anywhere}
.ops-pane {display:grid;min-width:0;gap:12px}
.ops-side {background:linear-gradient(155deg,var(--raised),var(--surface) 76%);border-color:var(--strong-line)}
.ops-nav-list {display:grid;gap:5px;max-height:62vh;overflow:auto;margin-top:10px}
.ops-entry {display:block;text-decoration:none;color:var(--text);padding:9px;border-radius:7px;border:1px solid var(--line);background:var(--bg-inline)}
.ops-entry:hover,.ops-entry[aria-current=true] {background:var(--accent-wash);border-color:var(--strong-line);box-shadow:inset 2px 0 var(--accent)}
.ops-entry strong {display:block;overflow-wrap:anywhere}
.ops-row-meta {display:flex;gap:6px;flex-wrap:wrap;color:var(--subtle);font-size:11.5px;margin-top:4px}
.ops-filters {display:flex;gap:5px;flex-wrap:wrap}
.ops-filters button {font-size:12px;padding:4px 7px}
.ops-filters button[aria-pressed=true] {color:var(--text);background:var(--accent-wash);border-color:var(--strong-line)}
.ops-form {display:grid;grid-template-columns:1fr 1fr;gap:8px}
.ops-form label {display:grid;gap:3px;color:var(--muted);font-size:12px;min-width:0}
.ops-form .full,.ops-form .primary {grid-column:1/-1}
.ops-form .ops-check {display:flex;align-items:flex-start;gap:7px}
.ops-form .ops-check input {margin-top:4px}
.ops-form input:not([type=checkbox]),.ops-form textarea {width:100%;font-size:13px}
.ops-field-grid {margin:0 0 10px}
.ops-transcript {display:grid;gap:11px;list-style:none;margin:0;padding:0;max-height:55vh;overflow:auto}
.ops-transcript li {display:grid;grid-template-columns:29px minmax(0,1fr);align-items:start;gap:8px}
.ops-transcript time {color:var(--subtle);font-size:11px;margin-left:6px}
.ops-transcript p {margin-top:2px;white-space:pre-wrap;color:var(--ink)}
.ops-actions {display:flex;gap:8px;flex-wrap:wrap;margin-top:11px}
.ops-empty {padding:12px 0;color:var(--muted)}
.ops-text {white-space:pre-wrap;color:var(--ink)}
.ops-stat {color:var(--accent)}
.ops-inquiry-detail {display:grid;grid-template-columns:minmax(0,2fr) minmax(245px,1fr);gap:12px;margin-bottom:12px;align-items:start}
.ops-inquiry-table {overflow:auto;max-height:54vh}
.ops-inquiry-table th {position:sticky;top:0}
.ops-selected-row {background:var(--accent-wash)}
.ops-link-actions {margin-top:0}
.ops-customer-name {font-size:17px;font-weight:700;margin-top:3px}
.ops-customer-stats {display:flex;flex-wrap:wrap;gap:8px;list-style:none;padding:0;margin:12px 0 0}
.ops-customer-stats li {background:var(--bg-inline);border:1px solid var(--line);border-radius:7px;color:var(--muted);padding:5px 9px;font-size:12px}
.ops-customer-stats strong {color:var(--accent);font-family:var(--mono);font-size:14px}
.ops-search {display:flex;gap:6px;align-items:stretch}
.ops-search input {width:100%;min-width:0;font-size:13px;padding-block:5px}
.ops-search button {flex-shrink:0}
.ops-catalog > header {display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px}
.ops-catalog > header .primary,.ops-catalog-search-row > :is(input,button) {min-height:44px}
.ops-catalog-search {display:grid;gap:5px;margin-bottom:12px}
.ops-catalog-search label {color:var(--muted);font-size:13px}
.ops-catalog-search-row {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
.ops-catalog-search-row button {min-width:68px}
.ops-catalog-empty,.ops-catalog-result-head {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px}
.ops-catalog-empty {padding:12px;border:1px solid var(--line);border-radius:8px;background:var(--raised)}
.ops-catalog-empty .subtle {margin-top:4px;font-size:13px}
.ops-catalog-result-head {color:var(--muted);font-size:13px}
.ops-catalog .ops-record-head > div {min-width:0}
.ops-catalog .ops-actions:empty {display:none}
.ops-records {display:grid;gap:7px;margin:10px 0 0;padding:0;list-style:none}
.ops-records>li {padding:9px 10px;border:1px solid var(--line);border-radius:7px;background:var(--bg-inline);overflow-wrap:anywhere}
.ops-record-head {display:flex;align-items:start;justify-content:space-between;gap:7px;margin-bottom:5px}
.ops-record-head button {flex-shrink:0}

.ops-material-library {max-width:1240px;margin-inline:auto}
.ops-material-library.is-empty,.ops-material-library.is-single {max-width:820px}
.ops-material-library.is-pair {max-width:940px}
.ops-material-library .ops-catalog > header {padding:16px 18px 12px}
.ops-material-library .ops-panel-body {padding:0 18px 18px}
.ops-material-toolbar {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:stretch;gap:10px;margin-bottom:14px}
.ops-material-toolbar .ops-catalog-search {margin:0}
.ops-material-toolbar > button {min-height:44px;white-space:nowrap}
.ops-material-library .ops-catalog-empty {min-height:104px;padding:16px}
.ops-material-grid {grid-template-columns:repeat(auto-fit,minmax(min(100%,315px),1fr));gap:12px;margin-top:10px}
.ops-material-grid > li {display:flex;flex-direction:column;gap:10px;min-width:0;padding:13px 14px}
.ops-material-grid .ops-record-head {margin-bottom:0;flex-wrap:wrap}
.ops-material-grid h3 {margin-top:4px}
.ops-material-grid .ops-record-head a {font-weight:700}
.ops-material-grid .ops-actions {margin-top:auto}
@media(max-width:620px){
  .ops-material-library .ops-catalog > header {padding:13px 12px 9px}
  .ops-material-library .ops-panel-body {padding:0 12px 12px}
  .ops-material-toolbar {grid-template-columns:minmax(0,1fr);gap:8px}
  .ops-material-toolbar > button {justify-self:start}
}
.ops-record-head .subtle,.ops-contact-values,.ops-record-source {font-size:12px}
.ops-contact-values {margin:0;display:flex;flex-wrap:wrap;gap:5px 14px}
.ops-contact-values div {display:flex;align-items:baseline;gap:6px;min-width:0}
.ops-contact-values dt {color:var(--muted);white-space:nowrap}
.ops-contact-values dd {margin:0;overflow-wrap:anywhere}
.ops-source-records {margin:0}
.ops-source-records h3 {margin-top:3px}
.ops-followups {border-left:2px solid var(--strong-line);padding-left:8px}
.ops-record-source {display:inline-block;margin-top:5px}
.ops-editor .ops-form select {width:100%;min-width:0;font-size:13px}
.ops-editor-hint {color:var(--muted);font-size:13px;margin-bottom:9px}
.ops-editor-search {margin-bottom:7px}
.ops-editor :is([data-kind=create-customer],[data-kind=create-opportunity])>label {grid-column:1/-1}
.ops-editor .error:empty {display:none}
.ops-opportunity-detail {display:grid;grid-template-columns:minmax(0,2fr) minmax(265px,1fr);gap:12px;align-items:start}
.ops-stages {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0;padding:0;list-style:none}
.ops-stages li {display:grid;gap:5px;justify-items:start;align-content:start;min-width:0;padding:10px;border:1px solid var(--line);border-radius:8px;background:var(--bg-inline);border-top-color:var(--strong-line)}
.ops-stages h3 {color:var(--muted)}
.ops-stages strong {color:var(--accent);font-size:16px}
.ops-stages time,.ops-event-list time,.ops-event-actor {font-size:12px;color:var(--muted)}
.ops-stages button {margin-top:4px}
.ops-opportunity-states {display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 0;font-size:12px}
.ops-opportunity-states>div {display:flex;align-items:baseline;gap:5px;border:1px solid var(--line);border-radius:6px;padding:3px 7px;background:var(--surface)}
.ops-opportunity-states dt {color:var(--muted)}
.ops-opportunity-states dd {margin:0;color:var(--accent);font-weight:650}
.ops-event-list {margin-top:0}
.ops-event-list dl {margin-top:8px;margin-bottom:0}
.ops-event-actor {margin-bottom:5px}
.ops-version-list {display:grid;list-style:none;padding:0;margin:0;gap:6px;max-height:380px;overflow:auto}
.ops-document-table {min-width:495px}
.ops-document-table :is(td,th):is(:nth-child(2),:nth-child(4),:nth-child(5)) {text-align:right;white-space:nowrap}
.ops-line-spec {display:block;font-size:12px}
.ops-document-total {display:flex;flex-wrap:wrap;justify-content:end;align-items:baseline;gap:10px;margin:5px 0 10px;padding:9px 10px;background:var(--accent-wash);border-radius:7px;color:var(--muted);font-size:13px}
.ops-document-total strong {color:var(--accent);font-size:18px;overflow-wrap:anywhere}
.ops-editor:has([data-kind=create-quote],[data-kind=revise-quote]) {width:min(calc(100% - 28px),860px)}
.ops-quote-lines {min-width:0;margin:0;padding:7px 9px 9px;border:1px solid var(--line);border-radius:8px}
.ops-quote-lines legend {padding:0 5px;color:var(--muted);font-size:13px}
.ops-quote-line {display:grid;grid-template-columns:minmax(110px,2fr) minmax(80px,1.3fr) minmax(60px,.85fr) minmax(50px,.6fr) minmax(70px,1fr) auto;gap:7px;align-items:end;margin-bottom:8px}
.ops-quote-line button {margin-bottom:2px}
.ops-delivery-status {display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:7px 0 10px;color:var(--muted);font-size:12px}
.ops-delivery-exception {color:var(--danger);font-weight:650}
.ops-delivery-table .data-table {min-width:530px}
.ops-delivery-table :is(td,th):nth-child(n+3) {text-align:right;white-space:nowrap}
.ops-records>.ops-shipment-card {padding:12px;scroll-margin-top:104px}
.ops-records>.ops-shipment-card[aria-current=true] {border-color:var(--accent);box-shadow:inset 3px 0 var(--accent)}
.ops-shipment-state {display:grid;justify-items:end;gap:4px;font-size:12px}
.ops-shipment-card .ops-field-grid {margin-top:8px}
.ops-shipment-lines {list-style:none;margin:7px 0;padding:0}
.ops-shipment-lines li {display:flex;justify-content:space-between;align-items:start;gap:12px;padding:6px 0;border-top:1px solid var(--line)}
.ops-shipment-lines small,.ops-shipment-input small {display:block;color:var(--muted);line-height:1.35}
.ops-shipment-lines strong {color:var(--accent);text-align:right}
.ops-shipment-history {margin-top:10px;color:var(--muted);font-size:12px}
.ops-shipment-history summary {width:fit-content;cursor:pointer}
.ops-shipment-history ol {list-style:none;margin:6px 0 0;padding:0 0 0 9px;border-left:2px solid var(--line)}
.ops-shipment-history li+li {margin-top:6px}
.ops-form .ops-shipment-input {grid-template-columns:minmax(0,1fr) minmax(100px,.5fr);align-items:center;gap:9px;padding:6px 0;border-top:1px solid var(--line)}
.ops-batch-after-sales {display:flex;flex-wrap:wrap;align-items:baseline;gap:7px;margin-top:9px;color:var(--muted);font-size:12px}
.ops-after-sale-result {margin-top:5px}
.ops-revisit-demand {margin-bottom:11px}
.ops-metrics,.ops-stage-links,.ops-board-cards,.ops-timeline,.ops-timeline ol {list-style:none;margin:0;padding:0}
.ops-metrics,.ops-stage-links {display:grid;gap:9px}
.ops-metrics {grid-template-columns:repeat(6,minmax(0,1fr))}
.ops-stage-links {grid-template-columns:repeat(7,minmax(0,1fr))}
.ops-metric,.ops-stage-link {display:block;border:1px solid var(--line);border-radius:8px;padding:11px 13px;text-decoration:none;color:var(--muted)}
.ops-metric {background:linear-gradient(135deg,var(--raised),var(--surface));border-top-color:var(--strong-line)}
.ops-metric span,.ops-stage-link>span:first-child {display:block;font-weight:650;color:var(--text)}
.ops-metric strong,.ops-stage-link strong {color:var(--accent);font-size:25px;line-height:1.1}
.ops-metric strong {display:block;margin-top:7px}
.ops-stage-link {background:var(--bg-inline)}
.ops-stage-link strong {display:inline-block;margin-top:6px;font-size:22px}
.ops-stage-link small {display:block;margin-top:4px}
.ops-dashboard-controls {display:flex;flex-wrap:wrap;align-items:end;gap:8px;margin-bottom:12px}
.ops-dashboard-controls label {display:grid;gap:4px;color:var(--muted);font-size:12px;min-width:0}
.ops-dashboard-controls :is(input,select) {min-width:150px;max-width:min(100%,360px);font-size:13px;padding-block:5px;min-height:32px}
.ops-dashboard-filters {display:flex;flex-wrap:wrap;gap:6px;margin-bottom:7px}
.ops-dashboard-filters a {padding:5px 9px;border-radius:6px;border:1px solid var(--line);color:var(--muted);text-decoration:none;font-size:12px}
.ops-dashboard-filters a span {color:var(--accent);margin-left:3px}
.ops-dashboard-filters a[aria-current=page],.ops-dashboard-filters a:hover,.ops-metric:hover,.ops-stage-link:hover {background:var(--accent-wash);border-color:var(--strong-line);color:var(--text)}
.ops-work-filters {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin-bottom:12px}
.ops-work-filters a {display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:5px;padding:8px 10px;border:1px solid var(--line);border-radius:7px;color:var(--muted);background:var(--bg-inline);text-decoration:none;font-size:13px}
.ops-work-filters strong {color:var(--accent);font-size:16px}
.ops-work-filters a[aria-current=page],.ops-work-filters a:hover {color:var(--text);background:var(--accent-wash);border-color:var(--strong-line)}
.ops-overview-table .ops-actions {margin-top:0}
.ops-board {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:start}
.ops-board-focused {grid-template-columns:minmax(0,1fr)}
.ops-board-focused .ops-board-cards {grid-template-columns:repeat(auto-fit,minmax(min(100%,265px),1fr))}
.ops-board-cards {display:grid;gap:7px}
.ops-board-card,.ops-timeline-event {display:block;padding:9px;border:1px solid var(--line);border-radius:7px;background:var(--bg-inline);color:var(--text);text-decoration:none}
.ops-board-card:hover,.ops-timeline-event:hover {background:var(--accent-wash);border-color:var(--strong-line)}
.ops-board-exception {border-left:2px solid var(--danger)}
.ops-task-editable>.ops-board-card {border-radius:7px 7px 0 0;border-bottom:0}
.ops-board-card-footer {padding:6px 9px;border:1px solid var(--line);border-radius:0 0 7px 7px;background:var(--raised)}
.ops-board-card-footer .small {min-height:28px}
.ops-task-meta {display:flex;flex-wrap:wrap;gap:3px 10px;margin-top:7px;color:var(--muted);font-size:12px}
.ops-task-owner {color:var(--text)}
.ops-task-meta time {margin:0}
.ops-task-alert {margin-top:5px;font-size:12px;font-weight:700}
.ops-due-soon {border-left:2px solid var(--amber)}
.ops-due-overdue {border-left:2px solid var(--danger)}
.ops-due-soon .ops-task-alert {color:var(--amber)}
.ops-due-overdue .ops-task-alert {color:var(--danger)}
.ops-board-card-top,.ops-timeline-marker {display:flex;flex-wrap:wrap;align-items:center;gap:5px 8px}
.ops-board-card-top {justify-content:space-between}
.ops-board-title {margin-top:5px}
.ops-board-card time,.ops-timeline-event time {font-size:12px;color:var(--subtle)}
.ops-board-card time {display:block;margin-top:4px}
.ops-timeline-layout {display:grid;grid-template-columns:minmax(0,2.35fr) minmax(260px,1fr);gap:12px;align-items:start}
.ops-timeline>li {margin-top:12px}
.ops-timeline>li>h3 {color:var(--accent);margin:0 0 6px 12px}
.ops-timeline>li>ol {display:grid;gap:6px;border-left:2px solid var(--strong-line);margin-left:3px;padding-left:9px}
.ops-timeline-event {display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:start;gap:9px}
.ops-timeline-event time,.ops-timeline-link {line-height:22px}
.ops-timeline-link {font-size:12px;color:var(--accent);white-space:nowrap}
.ops-timeline-marker .pill {background:var(--accent-wash);color:var(--accent)}
.ops-report-metrics {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;margin:0;padding:0;list-style:none}
.ops-report-metric {display:flex;flex-direction:column;gap:5px;height:100%;padding:12px;border:1px solid var(--line);border-top-color:var(--strong-line);border-radius:8px;background:linear-gradient(135deg,var(--raised),var(--surface));color:var(--text);text-decoration:none;overflow-wrap:anywhere}
.ops-report-metric[aria-current=page],.ops-report-metric:hover {border-color:var(--accent);background:var(--accent-wash)}
.ops-report-metric>span {font-weight:650}
.ops-report-metric strong {color:var(--accent);font-size:clamp(17px,1.65vw,25px);line-height:1.25}
.ops-report-metric small {color:var(--muted);margin-top:auto}
.ops-report-metric progress {width:100%;height:5px;border:0;border-radius:3px;background:var(--line);accent-color:var(--accent);margin-top:2px}
.ops-report-metric progress::-webkit-progress-bar {border-radius:3px;background:var(--line)}
.ops-report-metric progress::-webkit-progress-value {border-radius:3px;background:var(--accent)}
.ops-report-filters {margin-bottom:5px}
.ops-report-filter-error {align-self:center;width:100%;margin:0}
.ops-report-filter-error:empty {display:none}
.ops-report-export {margin-left:auto}
.ops-report-extra {color:var(--muted);font-size:13px;margin-bottom:8px}
.ops-report-table tr:hover {background:var(--bg-inline)}
.ops-report-table :is(th,td) {min-width:84px}
.ops-report-table .ops-report-amount {text-align:right;white-space:nowrap}
.ops-notice {position:fixed;bottom:18px;right:18px;z-index:5;padding:11px 14px;color:var(--text);background:var(--raised);border:1px solid var(--strong-line);border-radius:8px;max-width:min(90vw,400px)}
@media(max-width:1120px){.ops-view{grid-template-columns:minmax(195px,1fr) minmax(250px,1.5fr) minmax(231px,1.1fr)}.ops-content{padding-inline:15px}.ops-bar{gap:12px}}
@media(max-width:820px){.ops-view{grid-template-columns:minmax(170px,.8fr) minmax(0,1.35fr)}.ops-side{grid-column:1/-1}.ops-nav-list{max-height:46vh}.ops-bar .signature-divider,.ops-bar .app-section{display:none}}
@media(max-width:610px){.ops-bar{padding-inline:8px;flex-wrap:wrap;height:auto;min-height:60px;padding-block:6px;gap:5px}.ops-bar .signature{font-size:13px;gap:6px}.ops-bar .signature-mark{width:25px;height:25px;font-size:14px}.ops-bar nav{order:3;flex-basis:100%}.ops-bar nav > .ops-popover{flex:1 1 auto}.ops-bar nav > .ops-popover > summary{padding-inline:6px;gap:6px}.ops-bar nav > .ops-popover:nth-child(n+3) > .ops-nav-menu{right:0;left:auto}.ops-bar .ops-nav-menu{min-width:min(168px,65vw)}.ops-bar #ops-actor{max-width:10em}.ops-view{grid-template-columns:1fr}.ops-side{grid-column:auto}.ops-content{padding:12px 9px}.ops-heading h1{font-size:21px}.ops-form{grid-template-columns:1fr}.ops-transcript{max-height:none}}
@media(max-width:760px){.ops-bar{flex-wrap:wrap}.ops-bar nav{order:3;flex-basis:100%}}
@media(max-width:720px){.ops-opportunity-detail{grid-template-columns:minmax(0,1fr)}}
@media(max-width:610px){.ops-inquiry-detail{grid-template-columns:minmax(0,1fr)}.ops-customers .ops-nav-list{max-height:26vh}}
@media(max-width:680px){.ops-quote-line{grid-template-columns:repeat(3,minmax(0,1fr));border-bottom:1px solid var(--line);padding-bottom:8px}.ops-quote-line label:first-child{grid-column:span 2}}
@media(max-width:420px){.ops-stages li{padding:7px}.ops-stages .small{padding-inline:5px;font-size:11px}}
@media(max-width:930px){.ops-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.ops-stage-links{grid-template-columns:repeat(4,minmax(0,1fr))}.ops-board:not(.ops-board-focused){grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:930px){.ops-report-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:710px){.ops-timeline-layout{grid-template-columns:minmax(0,1fr)}}
@media(max-width:510px){.ops-metrics,.ops-stage-links,.ops-work-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.ops-board:not(.ops-board-focused){grid-template-columns:1fr}.ops-timeline-event{grid-template-columns:auto minmax(0,1fr)}.ops-timeline-link{grid-column:2}}
@media(max-width:510px){.ops-report-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.ops-report-export{margin-left:0}}

.ops-access-roles {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,205px),1fr));gap:10px;list-style:none;padding:0;margin:0}
.ops-access-roles>li {padding:12px;border:1px solid var(--line);border-radius:8px;background:var(--bg-inline);border-top:2px solid var(--accent)}
.ops-access-roles h3 {color:var(--ink);margin-bottom:5px}
.ops-access-roles p {color:var(--muted);font-size:12px;min-height:34px}
.ops-access-tags {display:flex;flex-wrap:wrap;gap:4px;list-style:none;padding:0;margin:9px 0 0}
.ops-access-tags li {border-radius:4px;padding:2px 5px;background:var(--accent-wash);color:var(--ink);font-size:11.5px}
.ops-access-table .data-table {width:100%;min-width:480px}
.ops-access-table th {vertical-align:top}
.ops-audit-list {list-style:none;margin:0;padding:0;display:grid;gap:6px}
.ops-audit-list details {background:var(--bg-inline);border:1px solid var(--line);border-radius:8px}
.ops-audit-list summary {cursor:pointer;padding:9px 12px;color:var(--ink)}
.ops-audit-list summary:hover,.ops-audit-list details[open] summary {background:var(--accent-wash);border-radius:7px}
.ops-audit-list summary>span,.ops-audit-list summary>strong {margin-inline-start:10px}
.ops-audit-list time {color:var(--muted);white-space:nowrap;margin-inline-start:5px}
.ops-audit-object {color:var(--accent);font-weight:650}
.ops-audit-details {padding:8px 12px 12px}
.ops-audit-details :is(td,th) {white-space:normal;overflow-wrap:anywhere}
.ops-audit-details :is(td,th):first-child {width:20%}
.ops-audit-details td {width:40%;white-space:pre-wrap;vertical-align:top}
.ops-audit-details pre {max-height:260px;overflow:auto;white-space:pre-wrap;margin:0;font-size:12px}
@media (max-width:620px) {
  .ops-audit-list summary {line-height:1.95}
  .ops-access-roles p {min-height:0}
}

.ops-customer-import-entry {margin:0 0 13px}
.ops-import-workspace {max-width:1120px;margin-inline:auto}
.ops-import-back {display:inline-flex;align-items:center;gap:8px;margin:3px 0 15px;color:var(--muted);font-size:13px;text-decoration:none}
.ops-import-back:hover {color:var(--accent);text-decoration:underline}
.ops-import-back span {color:var(--accent);font-size:17px;line-height:1}
.ops-import-workspace .ops-heading {margin-bottom:22px;align-items:center}
.ops-import-workspace .ops-heading h1 {font-size:clamp(24px,3.1vw,34px);letter-spacing:-.035em;line-height:1.22}
.ops-import-workspace .ops-heading p {margin-top:8px}
.ops-import-layout {display:grid;grid-template-columns:minmax(0,1fr) minmax(255px,300px);gap:16px}
.ops-import-card {min-width:0;border:1px solid var(--line);border-radius:15px;background:var(--surface);padding:24px}
.ops-import-card h2 {font-size:19px;line-height:1.35}
.ops-import-card header p {margin-top:5px;font-size:13px;color:var(--muted)}
.ops-import-upload {margin-top:20px}
.ops-import-drop {position:relative;display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:138px;padding:22px;
  border:1px dashed var(--strong-line);border-radius:12px;
  background:linear-gradient(125deg,color-mix(in srgb,var(--accent-wash) 55%,var(--surface)),var(--surface) 82%);
  transition:background-color .16s,border-color .16s,box-shadow .16s}
.ops-import-drop.is-dragging,.ops-import-drop:focus-within {border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-wash)}
.ops-import-drop.is-dragging {background:var(--accent-wash)}
.ops-import-drop.has-file {border-style:solid;min-height:112px}
.ops-import-drop input[type=file] {position:absolute;inline-size:1px;block-size:1px;padding:0;margin:0;opacity:0;pointer-events:none}
.ops-import-file-info {display:flex;align-items:center;gap:15px;min-width:0}
.ops-import-file-icon {width:56px;height:56px;border-radius:12px;border:1px solid var(--line);background:var(--surface);
  display:grid;place-items:center;color:var(--accent);flex:none}
.ops-import-file-icon i {position:relative;width:23px;height:28px;border:1.5px solid currentColor;border-radius:4px}
.ops-import-file-icon i::after {content:'';position:absolute;inset:12px 4px 4px;border:1px solid currentColor;
  background:linear-gradient(90deg,transparent 46%,currentColor 46% 54%,transparent 54%),
  linear-gradient(transparent 44%,currentColor 44% 56%,transparent 56%)}
.ops-import-file-icon i::before {content:'';position:absolute;height:2px;width:8px;top:6px;left:4px;background:currentColor;border-radius:8px}
.ops-import-file-copy {min-width:0}
.ops-import-file-name {font-size:16px;font-weight:700;color:var(--text);overflow-wrap:anywhere;line-height:1.35}
.ops-import-file-meta {margin-top:5px;color:var(--muted);font-size:12px}
.ops-import-file-actions {display:flex;align-items:center;flex:none;gap:3px}
.ops-import-file-actions button {white-space:nowrap}
.ops-import-upload-error {margin-top:9px}
.ops-import-upload .error:empty,.ops-import-confirm .error:empty {display:none}
.ops-import-upload-footer {display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:17px}
.ops-import-upload-footer p {font-size:12px;color:var(--muted)}
.ops-import-upload-footer .primary {min-height:41px;padding-inline:14px;white-space:nowrap}
.ops-import-upload-footer .primary span {font-size:17px}
.ops-import-template {display:flex;flex-direction:column;align-items:stretch;background:linear-gradient(145deg,var(--surface) 25%,var(--raised))}
.ops-import-template-icon {display:grid;place-items:center;width:44px;height:33px;margin-bottom:11px;border:1px solid var(--strong-line);
  border-radius:7px;background:var(--accent-wash);color:var(--accent);font:700 11px var(--mono);letter-spacing:.035em}
.ops-import-sheets {display:grid;gap:0;margin:14px 0;color:var(--muted);font-size:12px}
.ops-import-sheets div {display:flex;align-items:baseline;gap:9px;justify-content:space-between;padding:6px 0;border-top:1px solid var(--line)}
.ops-import-sheets dt {color:var(--text);font-weight:650;white-space:nowrap}
.ops-import-sheets dd {margin:0;text-align:right}
.ops-import-download {margin-top:auto;font-size:13px}
.ops-import-download span {font-size:17px;color:var(--accent);line-height:1}
.ops-import-steps {display:flex;align-items:center;gap:14px;list-style:none;margin:18px 0;padding:0 6px;color:var(--muted);font-size:12px}
.ops-import-steps li {display:flex;align-items:center;gap:7px;white-space:nowrap}
.ops-import-steps li::before {content:'';width:8px;height:8px;border:1px solid var(--strong-line);border-radius:50%}
.ops-import-steps li:not(:last-child)::after {content:'';width:24px;height:1px;margin-left:9px;background:var(--line)}
.ops-import-steps li[aria-current=step] {color:var(--accent);font-weight:700}
.ops-import-steps li[aria-current=step]::before {background:var(--accent);border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-wash)}
.ops-import-steps li[data-complete]::before {background:var(--green);border-color:var(--green)}
@media (max-width:830px) {
  .ops-import-layout {grid-template-columns:minmax(0,1fr)}
  .ops-import-template {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px 18px}
  .ops-import-template .ops-import-sheets {margin:0;align-self:end}
  .ops-import-download {justify-self:start}
}
@media (max-width:500px) {
  .ops-import-workspace .ops-heading {align-items:start}
  .ops-import-workspace .ops-live {display:none}
  .ops-import-card {padding:16px}
  .ops-import-drop {align-items:start;flex-direction:column;gap:12px;min-height:auto;padding:15px}
  .ops-import-file-icon {width:44px;height:44px}
  .ops-import-upload-footer {align-items:start;flex-direction:column-reverse}
  .ops-import-upload-footer .primary {width:100%}
  .ops-import-file-name {font-size:14px}
  .ops-import-template {display:flex}
  .ops-import-template .ops-import-sheets {align-self:stretch}
  .ops-import-steps {gap:9px;padding-inline:2px}
  .ops-import-steps li:not(:last-child)::after {width:10px;margin-left:2px}
}
@media (prefers-reduced-motion:reduce) {.ops-import-drop {transition:none}}
#ops-import-preview {scroll-margin-top:105px}
#ops-import-preview:empty {display:none}
.ops-import-metrics {list-style:none;margin:10px 0 8px;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(118px,1fr));gap:8px}
.ops-import-metrics li {display:flex;flex-direction:column;gap:3px;padding:8px 10px;background:var(--bg-inline);border:1px solid var(--line);border-radius:7px}
.ops-import-metrics strong {font-size:20px;color:var(--accent)}
.ops-import-metrics span {font-size:12px;color:var(--muted)}
.ops-import-bulk {margin:0 0 8px}
.ops-import-table {max-height:440px;overflow:auto}
.ops-import-table .data-table {min-width:570px}
.ops-import-table .data-table th {position:sticky;top:0;z-index:1}
.ops-import-table td {vertical-align:top;white-space:normal}
.ops-import-table td:last-child {min-width:160px}
.ops-import-table select {max-width:100%}
.ops-import-status {display:inline-block;padding:2px 7px;border-radius:5px;background:var(--bg-inline);color:var(--muted);font-size:12px}
.ops-import-status.good {color:var(--green);background:var(--accent-wash)}
.ops-import-status.bad {color:var(--danger);font-weight:700}
.ops-import-errors {margin:4px 0 0;padding-left:17px;font-size:12px;color:var(--danger)}
.ops-import-confirm {display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px}
.ops-import-confirm .error {width:100%}
.ops-state-filter {margin:0 0 9px}
.ops-state-filter label {display:flex;align-items:center;gap:8px;color:var(--muted)}

.ops-affected-picker{max-height:22rem;overflow:auto}
.ops-affected{display:grid;grid-template-columns:1fr 1fr;gap:.5rem 1rem;padding:.65rem 0;border-bottom:1px solid var(--line)}
.ops-affected p{grid-column:1/-1;margin:0}
.ops-approval{margin-top:1rem;padding-top:1rem;border-top:1px solid var(--line)}
.ops-escalation{color:var(--amber);background:var(--amber-wash);font-weight:650}
.ops-report-insights{display:flex;flex-wrap:wrap;gap:.6rem}
.ops-report-insights a{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;padding:.55rem .8rem;border:1px solid var(--line);border-radius:7px;text-decoration:none;background:var(--raised)}
.ops-report-insights a[aria-current=page]{border-color:var(--accent)}
.ops-report-insights strong{color:var(--text)}
@media(max-width:540px){.ops-affected{grid-template-columns:1fr}}


.ops-quote-line-extension{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.ops-quote-line-extension label:first-child{grid-column:auto}
.ops-lot-row{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) auto;gap:8px;align-items:end;padding-block:.4rem}
.ops-invite-link{display:grid;gap:.5rem;padding:1rem}
.ops-invite-link input{width:100%;font-family:var(--mono)}
.ops-invite-result{display:grid;gap:10px;padding:0 1rem 1rem}
.ops-invite-result .ops-invite-link{padding:0}
.ops-invite-result .ops-actions{align-items:center;margin:0}
#ops-copy-status{color:var(--green);font-size:13px}
.ops-portal-scope{display:grid;gap:4px;padding:10px 12px;border:1px solid var(--line);border-radius:7px;background:var(--raised);color:var(--text)}
.ops-portal-scope span{color:var(--muted);font-size:12px}
.portal-page{max-width:1100px;margin-inline:auto}
.portal-page h3{margin:.9rem 0 .35rem}
.portal-page .ops-records>li{margin-block:.35rem}
@media(max-width:620px){
  .ops-quote-line-extension{grid-template-columns:minmax(0,1fr)}
  .ops-lot-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .ops-lot-row button{justify-self:start}
}

.ops-five-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:var(--ops-gap,16px); align-items:start; }
.ops-five-disclosure { margin-block:12px; padding:10px 12px; border:1px solid var(--line); border-radius:10px; }
.ops-five-disclosure > summary { color:var(--accent); font-weight:650; cursor:pointer; }
.ops-five-disclosure[open] > summary { margin-bottom:10px; }
.ops-five-form + .ops-five-form { margin-top:16px; }
.ops-five-form .error:empty, [data-fifth-workbook] .error:empty, .ops-workbook-form .error:empty { display:none; }
.ops-workbook,.ops-workbook-form {display:grid;gap:10px}
.ops-workbook-template,.ops-workbook-picker {
  display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;
  padding:12px;border:1px solid var(--line);border-radius:9px;background:var(--raised)
}
.ops-workbook-picker {background:var(--bg-inline);border-color:var(--strong-line)}
.ops-workbook :is(.ops-workbook-template,.ops-workbook-picker) p {font-size:12px;color:var(--muted);margin-top:3px}
.ops-workbook :is(button,.secondary) {min-height:44px;max-width:100%;text-align:center;white-space:normal}
.ops-workbook-select {position:relative;cursor:pointer}
.ops-workbook-select:focus-within {outline:2px solid var(--accent);outline-offset:2px}
.ops-workbook-select:has(input:disabled) {opacity:.56;cursor:default}
.ops-workbook-help {padding:0 3px;color:var(--muted);font-size:13px}
.ops-workbook-help summary {cursor:pointer;min-height:34px;padding-block:7px;color:var(--accent);font-weight:650}
.ops-workbook-help p {padding:0 0 8px 14px;overflow-wrap:anywhere}
.ops-workbook-result {padding:12px;border:1px solid var(--line);border-radius:9px;background:var(--bg-inline);overflow-wrap:anywhere}
.ops-workbook-result h3 {color:var(--green)}
.ops-workbook-name {color:var(--muted);font-size:13px;margin-top:3px}
.ops-workbook-counts {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0}
.ops-workbook-counts div {background:var(--raised);border-radius:7px;padding:8px 10px}
.ops-workbook-counts dt {color:var(--muted);font-size:12px}
.ops-workbook-counts dd {margin:2px 0 0;font-size:16px;font-weight:700}
.ops-workbook-actions {display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}
.ops-receipt-name {overflow-wrap:anywhere}
#ops-receipt-preview {scroll-margin-top:112px}
#ops-receipt-preview:focus-visible {outline:2px solid var(--accent);outline-offset:2px;border-radius:10px}
.ops-receipts [data-receipt-commit] {margin-top:12px}
.ops-receipts .ops-workbook-actions .primary,.ops-receipts .ops-records .ops-actions :is(a,button) {min-height:44px}
.ops-receipt-empty {display:flex;gap:12px;align-items:center;padding:12px;border:1px solid var(--line);border-radius:9px;background:var(--raised)}
.ops-receipt-empty p {margin-top:3px;font-size:13px;color:var(--muted)}
.ops-receipt-empty-mark {display:grid;place-items:center;flex:none;width:32px;height:32px;border-radius:50%;background:var(--accent-wash);color:var(--green);font-weight:700}
.ops-push {display:grid;gap:9px}
.ops-push-actions {display:flex;flex-wrap:wrap;gap:8px}
.ops-push-actions button {min-height:44px;flex:0 1 auto}
@media(max-width:500px){.ops-push-actions button {flex:1 1 120px}}
.ops-five-table { overflow:auto; }
.ops-five-table table { min-width:max-content; }
.ops-five-table th, .ops-five-table td { padding:8px 10px; }
.ops-five-allocation { min-width:0; padding:10px; border:1px solid var(--line); border-radius:8px; }
.ops-five-allocation label + label { margin-top:8px; }
.ops-form .ops-five-check { display:flex; align-items:center; gap:8px; }
.ops-five-check input { min-width:0; width:auto; }
@media(max-width:700px) {
  .ops-five-grid { grid-template-columns:1fr; }
  .ops-workbook-actions button {flex:1 1 125px}
}
@media(max-width:350px) {
  .ops-workbook-template,.ops-workbook-picker {grid-template-columns:minmax(0,1fr);gap:8px}
}

.ops-portal-options {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.ops-portal-options section {display:flex;flex-direction:column;align-items:flex-start;min-width:0;gap:8px;padding:12px;border:1px solid var(--line);border-radius:8px;background:var(--bg-inline)}
.ops-portal-options section p {color:var(--muted);font-size:12px}
.ops-portal-options section button {margin-top:auto}
.ops-portal-history {display:grid;gap:6px;margin-top:14px}
.ops-portal-history > h3:not(:first-child) {margin-top:8px}
@media(max-width:680px){.ops-portal-options {grid-template-columns:1fr}}

@media(max-width:680px) {
  .ops-body .responsive-table {max-height:none;overflow:visible}
  .ops-body .responsive-table .data-table,.ops-body .responsive-table :is(th,td) {min-width:0}
  .ops-body .responsive-table tbody :is(th,td) {width:auto;text-align:start;white-space:normal}
  .ops-audit-details pre {overflow-wrap:anywhere}
  .ops-heading,.ops-record-head {flex-wrap:wrap}
  .ops-dashboard-controls label {max-width:100%}
  .ops-dashboard-controls :is(input,select) {min-width:0;max-width:100%;width:100%}
  .ops-form :is(button,input,select,textarea),.ops-actions :is(button,a),.ops-record-head :is(button,a) {
    min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere
  }
  .ops-actions :is(button,a),.ops-record-head :is(button,a) {min-height:40px}
}
@media(max-width:610px) {
  .ops-view,.ops-form {grid-template-columns:minmax(0,1fr)}
  .ops-actions + .ops-five-form[data-fifth-path^="notifications/"][data-fifth-path$="/acknowledge"] {margin-block-start:12px}
  .ops-bar nav {position:relative}
  .ops-bar nav > .ops-popover {position:static}
  .ops-bar nav > .ops-popover > .ops-nav-menu {left:0;right:0;width:auto;min-width:0}
  .ops-bar .ops-nav-menu > :is(a,button) {white-space:normal;overflow-wrap:anywhere}
}
@media(max-width:420px) {
  .ops-stages {grid-template-columns:repeat(2,minmax(0,1fr))}
  .ops-stages .small {max-width:100%;white-space:normal;overflow-wrap:anywhere}
}
