.ops-workspace { --ops-blue: #1769ec; --ops-ink: #142341; --ops-line: #e2eaf5; color: var(--ops-ink); }
.ops-layout { display: block; max-width: 1200px; margin: 0 auto; }
.ops-nav { background: #12243e; color: #d8e5fb; border-radius: 12px; padding: 18px 10px; display: flex; flex-direction: column; gap: 3px; position: sticky; top: 22px; min-height: 0; }
.ops-nav-title { color: white; font-size: 16px; font-weight: 750; padding: 5px 11px 17px; letter-spacing: -.02em; }
.ops-nav button { width: 100%; border: 0; border-radius: 7px; background: transparent; color: inherit; padding: 10px 11px; display: flex; align-items: center; gap: 9px; text-align: left; font: inherit; font-size: 12.5px; cursor: pointer; }
.ops-nav button:hover, .ops-nav button.active { background: #1e4785; color: white; }
.ops-nav button.active { box-shadow: inset 3px 0 0 #4d9cff; font-weight: 650; }
.ops-main { min-width: 0; }
.ops-page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.ops-eyebrow { font-size: 10px; letter-spacing: .12em; font-weight: 800; color: var(--ops-blue); margin-bottom: 4px; }
.ops-page-head h1 { font-size: clamp(22px, 2vw, 29px); letter-spacing: -.035em; font-weight: 750; line-height: 1.15; margin: 0; color: var(--ops-ink); }
.ops-page-head p { margin: 6px 0 0; font-size: 13px; color: #657797; }
.ops-head-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.ops-workspace .btn-accent { background: var(--ops-blue); border-color: var(--ops-blue); color: white; }
.ops-workspace .btn-accent:hover { background: #0d58d2; border-color: #0d58d2; }
.ops-section-stack { display: flex; flex-direction: column; gap: 18px; }
.ops-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ops-metric { min-width: 0; background: var(--bg-elev); border: 1px solid var(--ops-line); border-radius: 10px; padding: 15px; display: flex; align-items: flex-start; gap: 12px; text-align: left; color: var(--ops-ink); font: inherit; cursor: pointer; box-shadow: 0 2px 10px rgba(26, 53, 92, .025); }
.ops-metric:disabled { cursor: default; opacity: 1; }
.ops-metric:not(:disabled):hover { border-color: #9abdf5; box-shadow: 0 4px 16px rgba(34, 105, 225, .08); }
.ops-metric-icon { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 8px; color: #1769ec; background: #eaf2ff; }
.ops-metric.warn .ops-metric-icon { color: #c17a00; background: #fff4df; }
.ops-metric.danger .ops-metric-icon { color: #df4848; background: #ffeded; }
.ops-metric.success .ops-metric-icon { color: #159864; background: #e7f8f0; }
.ops-metric span:last-child { display: flex; flex-direction: column; min-width: 0; }
.ops-metric small { color: #697b98; font-size: 11px; line-height: 1.35; }
.ops-metric strong { font-size: 23px; line-height: 1.1; margin-top: 4px; letter-spacing: -.03em; }
.ops-metric em { font-size: 10.5px; font-style: normal; color: #788ba6; margin-top: 5px; }
.ops-overview-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 12px; }
.ops-panel { padding: 17px 18px; border-color: var(--ops-line); }
.ops-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 13px; }
.ops-panel-head h2 { margin: 0; font-size: 14px; font-weight: 750; color: var(--ops-ink); }
.ops-link { border: 0; padding: 0; background: transparent; color: var(--ops-blue); font: inherit; font-size: 11.5px; font-weight: 650; cursor: pointer; }
.ops-link:hover { text-decoration: underline; }
.ops-status-bars { display: flex; flex-direction: column; gap: 19px; padding: 14px 0; }
.ops-trend { min-height: 210px; }.ops-trend-legend { display: flex; justify-content: flex-end; gap: 14px; font-size: 10px; color: #667a98; }.ops-trend-legend span { display: flex; align-items: center; gap: 5px; }.ops-trend-legend i { width: 7px; height: 7px; border-radius: 50%; background: #1769ec; }.ops-trend-legend i.closed { background: #25bd92; }.ops-trend svg { display: block; width: 100%; height: auto; max-height: 180px; margin-top: 8px; }
.ops-donut { width: 112px; height: 112px; border-radius: 50%; margin: 4px auto 2px; display: grid; place-items: center; }.ops-donut>div { width: 79px; height: 79px; border-radius: 50%; background: var(--bg-elev); display: flex; flex-direction: column; align-items: center; justify-content: center; }.ops-donut strong { font-size: 19px; line-height: 1; }.ops-donut small { font-size: 9px; color: #7588a5; }
.ops-issue { width: 100%; border: 0; background: transparent; display: grid; grid-template-columns: 115px 1fr 24px; align-items: center; gap: 9px; padding: 9px 0; color: var(--ops-ink); text-align: left; font: inherit; font-size: 11px; cursor: pointer; }.ops-issue:hover { color: var(--ops-blue); }.ops-issue b { text-align: right; }.ops-issue .ops-bar i { background: #7d9af2; }
.ops-status-line { display: grid; grid-template-columns: 78px minmax(0, 1fr) 25px; align-items: center; gap: 12px; font-size: 11.5px; }
.ops-status-line b { text-align: right; }
.ops-bar, .ops-capacity { height: 9px; border-radius: 20px; overflow: hidden; background: #edf2f9; }
.ops-bar i, .ops-capacity i { display: block; height: 100%; min-width: 0; border-radius: inherit; background: #67a4ff; }
.ops-bar i.warn { background: #ffc23d; }.ops-bar i.success, .ops-capacity i { background: #4dcf98; }
.ops-attention { width: 100%; background: transparent; border: 0; border-top: 1px solid var(--ops-line); padding: 10px 0; display: flex; align-items: center; gap: 10px; text-align: left; font: inherit; cursor: pointer; }
.ops-attention:hover { background: #f8fbff; }
.ops-attention-icon { flex: 0 0 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; font-weight: 800; }
.ops-attention-icon.danger { background: #ffe9e9; color: #df4848; }.ops-attention-icon.warn { background: #fff3df; color: #bf7700; }.ops-attention-icon.info { background: #e7efff; color: #1769ec; }.ops-attention-icon.success { background: #e5f8ee; color: #159864; }
.ops-attention span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ops-attention strong { font-size: 11.5px; font-weight: 700; }.ops-attention small { color: #7183a0; font-size: 10.5px; margin-top: 2px; }.ops-attention b { font-size: 10px; color: var(--ops-blue); white-space: nowrap; }
.ops-tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--ops-line); }
.ops-tabs button { border: 0; border-bottom: 2px solid transparent; padding: 10px 13px; background: transparent; color: #667997; font: inherit; font-size: 12px; font-weight: 550; white-space: nowrap; cursor: pointer; }
.ops-tabs button.active { border-color: var(--ops-blue); color: var(--ops-blue); font-weight: 750; }.ops-tabs button:hover { color: var(--ops-blue); }
.ops-tabs button span { margin-left: 5px; font-size: 10px; }
.ops-filterbar { display: flex; gap: 8px; flex-wrap: wrap; }.ops-filterbar .input { width: auto; min-width: 135px; font-size: 12px; }.ops-filterbar input { flex: 1 1 230px; }
.ops-table-wrap { overflow-x: auto; border-color: var(--ops-line); }
.ops-table { width: 100%; border-collapse: collapse; font-size: 11.5px; color: #34496b; }
.ops-table th { color: #647996; font-size: 10.5px; font-weight: 700; background: #f4f7fb; text-align: left; white-space: nowrap; }
.ops-table th, .ops-table td { padding: 12px 13px; border-bottom: 1px solid var(--ops-line); }
.ops-table tbody tr:last-child td { border-bottom: 0; }.ops-table tbody tr[role="button"] { cursor: pointer; }.ops-table tbody tr[role="button"]:hover, .ops-table tbody tr[role="button"]:focus { background: #f4f8ff; outline: none; }
.ops-table td strong { display: block; color: var(--ops-ink); font-size: 11.5px; font-weight: 700; }.ops-cell-sub { display: block; font-size: 10px; color: #8493ab; margin-top: 3px; }
.ops-pill { display: inline-block; border-radius: 5px; padding: 4px 7px; font-size: 10px; font-weight: 700; white-space: nowrap; text-transform: capitalize; background: #edf2f9; color: #5c6f8f; }.ops-pill.info { background: #e9f2ff; color: #1769ec; }.ops-pill.warn { background: #fff2db; color: #c07d07; }.ops-pill.danger { background: #ffebeb; color: #d63c42; }.ops-pill.success { background: #e4f8ed; color: #11935b; }
.ops-empty-row td { text-align: center; color: #7688a3; padding: 32px; }.ops-danger-text { color: #d53e49; font-weight: 650; }.ops-footnote { text-align: right; color: #7487a3; font-size: 11px; }
.ops-help { padding: 13px 15px; color: #5d7091; font-size: 12px; border-color: var(--ops-line); }.ops-self-start { align-self: flex-start; }.ops-capacity { width: 110px; }.ops-muted { color: #667b98; font-size: 12.5px; }.ops-alert { background: #fff0f0; color: #bb3535; padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; font-size: 12px; }
.ops-review-toggle { align-self: flex-start; border: 0; background: transparent; color: var(--ops-blue); padding: 4px 0; font: inherit; font-size: 12px; font-weight: 650; cursor: pointer; }.ops-review-toggle span { margin-left: 5px; }
.ops-escalation-drawer { padding: 22px; }.ops-escalation-drawer h2 { margin: 0; font-size: 17px; }.ops-escalation-body { padding-top: 24px; }.ops-escalation-body h3 { font-size: 18px; line-height: 1.4; }.ops-escalation-body dl { display: grid; grid-template-columns: 100px 1fr; gap: 10px; font-size: 12px; margin: 20px 0; }.ops-escalation-body dt { color: #7687a0; }.ops-escalation-body dd { margin: 0; font-weight: 600; }
@media (max-width: 1100px) { .ops-layout { grid-template-columns: 164px minmax(0, 1fr); gap: 15px; }.ops-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .ops-layout { display: block; }.ops-nav { position: static; min-height: 0; flex-direction: row; overflow-x: auto; border-radius: 8px; padding: 6px; margin-bottom: 18px; }.ops-nav-title { display: none; }.ops-nav button { flex: 0 0 auto; width: auto; white-space: nowrap; }.ops-page-head { flex-wrap: wrap; }.ops-overview-grid { grid-template-columns: 1fr; } }
@media (max-width: 490px) { .ops-metrics { gap: 7px; }.ops-metric { padding: 10px; gap: 7px; }.ops-metric-icon { width: 26px; height: 26px; flex-basis: 26px; }.ops-metric strong { font-size: 19px; }.ops-page-head h1 { font-size: 22px; } }

/* A quiet default, with detail available on request. */
.ops-nav-count { margin-left: auto; padding: 2px 6px; background: #35517b; border-radius: 4px; font-size: 11px; }
.ops-more { margin-top: 14px; padding-top: 10px; border-top: 1px solid #30425c; }
.ops-more > button span:last-child { margin-left: auto; }
.ops-detail-nav { margin-top: 4px; }
.ops-calm { display: flex; align-items: center; gap: 16px; padding: 26px; border-color: #cbe9dc; }
.ops-calm-icon { display: grid; place-items: center; flex: 0 0 44px; height: 44px; border-radius: 50%; background: #e4f8ed; color: #11935b; }
.ops-calm h2, .ops-preparation h2 { margin: 0; font-size: 18px; line-height: 1.4; }
.ops-calm p, .ops-preparation p { margin: 6px 0 0; color: #657797; font-size: 13px; line-height: 1.6; }
.ops-preparation { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px; border-color: #e7d3a9; }
.ops-preparation .btn { flex-shrink: 0; }
.ops-quiet-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; color: #657797; font-size: 12px; }
.ops-quiet-summary .ops-link { margin-left: auto; }
.ops-disclosure { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: transparent; border: 0; padding: 0; text-align: left; color: var(--ops-ink); font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; }
.ops-disclosure span:last-child { color: var(--ops-blue); font-size: 12px; }
.ops-checklist { list-style: none; padding: 0; margin: 18px 0 0; }
.ops-checklist li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--ops-line); }
.ops-checklist li > svg { flex: 0 0 16px; color: #657797; }
.ops-checklist li > div { flex: 1; min-width: 0; }
.ops-checklist strong { font-size: 13px; font-weight: 600; }
.ops-checklist p { margin: 4px 0 0; font-size: 12px; line-height: 1.55; color: #657797; }
.ops-nav button:focus-visible, .ops-disclosure:focus-visible, .ops-attention:focus-visible { outline: 2px solid #6babff; outline-offset: 3px; }
.ops-main > .ops-tabs { margin-bottom: 18px; }
@media (max-width: 760px) {
  .ops-nav { flex-wrap: wrap; overflow: visible; }
  .ops-more { margin: 0; padding: 0; border: 0; flex: 1 1 100%; }
  .ops-more > button { width: 100%; }
  .ops-detail-nav { display: flex; flex-wrap: wrap; }
}
@media (max-width: 490px) {
  .ops-nav > button { font-size: 11.5px; padding: 9px 8px; gap: 5px; }
  .ops-calm, .ops-preparation { padding: 18px; }
  .ops-preparation { flex-direction: column; align-items: flex-start; gap: 14px; }
  .ops-calm h2, .ops-preparation h2 { font-size: 16px; }
  .ops-checklist li { gap: 8px; }
  .ops-checklist .ops-pill { font-size: 9px; padding: 4px; }
}

.ops-completed-checks { margin-top: 12px; font-size: 12px; color: #657797; }
.ops-completed-checks summary { cursor: pointer; }

/* Routing shows one question at a time. The specialist settings have their own views. */
.rc-routing { width: 100%; max-width: 920px; margin: 0 auto; }
.rc-start { padding: clamp(24px, 4vw, 48px); text-align: center; }
.rc-start-icon { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 18px; border-radius: 14px; color: var(--ops-blue); background: #eaf2ff; }
.rc-start h2 { margin: 0; font-size: clamp(21px, 2vw, 27px); letter-spacing: -.025em; }
.rc-start p { max-width: 510px; margin: 12px auto 22px; color: #657797; font-size: 14px; line-height: 1.7; }
.rc-start-steps { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 26px; color: #657797; font-size: 12px; }
.rc-wizard { width: 100%; max-width: 780px; margin: 0 auto; padding: 24px; }
.rc-wizard-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rc-stepper { display: flex; list-style: none; padding: 0; margin: 22px 0 30px; gap: 8px; }
.rc-stepper li { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; color: #7b8da6; text-align: center; }
.rc-stepper li > span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid #dce4ef; background: #f4f7fb; font-size: 12px; }
.rc-stepper li small { font-size: 11px; line-height: 1.35; }
.rc-stepper li.current { color: var(--ops-blue); font-weight: 650; }
.rc-stepper li.current > span { color: white; background: var(--ops-blue); border-color: var(--ops-blue); }
.rc-stepper li.complete > span { background: #e4f8ed; color: #11935b; border-color: #cbe9dc; }
.rc-wizard-content { padding: 0 12px 14px; }
.rc-step-caption { color: #657797; font-size: 11px; margin-bottom: 6px; }
.rc-wizard h2 { font-size: clamp(20px, 2vw, 25px); line-height: 1.3; letter-spacing: -.02em; margin: 0 0 16px; }
.rc-wizard h2:focus { outline: none; }
.rc-wizard fieldset, .rc-reminder-choices { border: 0; padding: 0; margin: 0; min-width: 0; }
.rc-wizard fieldset > p { margin: 0 0 18px; font-size: 13px; line-height: 1.7; color: #657797; }
.rc-wizard .field { display: block; margin: 18px 0; }
.rc-wizard label.field > span { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 8px; }
.rc-wizard input.input, .rc-wizard select.input { max-width: 100%; }
.rc-field-help { font-size: 12px; line-height: 1.6; color: #657797; }
.rc-wizard .rc-field-help { margin-top: 10px; }
.rc-wizard-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--ops-line); padding-top: 20px; }
.rc-choice { display: flex; align-items: flex-start; gap: 12px; padding: 16px; margin: 12px 0; border: 1px solid var(--ops-line); border-radius: 10px; cursor: pointer; font-size: 13px; }
.rc-choice:has(input:checked) { border-color: #94bafa; background: #f4f8ff; }
.rc-choice input { margin-top: 3px; flex-shrink: 0; }
.rc-choice strong { display: block; font-size: 13px; font-weight: 650; }
.rc-choice small { display: block; font-size: 12px; color: #657797; margin-top: 5px; line-height: 1.6; }
.rc-choice.disabled { opacity: .55; cursor: default; }
.rc-team-summary { border-radius: 10px; background: #f4f7fb; padding: 16px; font-size: 13px; margin: 18px 0; }
.rc-team-summary p { margin: 7px 0 12px; overflow-wrap: anywhere; color: #657797; }
.rc-rule-options { margin-top: 22px; font-size: 12px; color: #657797; }
.rc-rule-options summary, .rc-settings-menu summary, .rc-rule-menu summary { cursor: pointer; }
.rc-rule-options[open] { padding-bottom: 6px; }
.rc-review { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 0 16px; font-size: 13px; margin: 22px 0; }
.rc-review dt, .rc-review dd { padding: 12px 0; border-bottom: 1px solid var(--ops-line); }
.rc-review dt { color: #657797; }
.rc-review dd { margin: 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; overflow-wrap: anywhere; min-width: 0; }
.rc-review .ops-link { white-space: nowrap; }
.rc-settings-menu { font-size: 12px; color: #657797; padding: 6px 0; }
.rc-settings-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 20px 0 8px; }
.rc-settings-links button { text-align: left; }
.rc-rule-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px solid var(--ops-line); }
.rc-rule-row strong { font-size: 13px; font-weight: 650; }
.rc-rule-row p { margin: 7px 0 0; font-size: 12px; line-height: 1.7; color: #657797; }
.rc-rule-row p .ops-pill { margin-left: 10px; }
.rc-row-actions { display: flex; align-items: center; flex-shrink: 0; gap: 8px; }
.rc-rule-menu { position: relative; }
.rc-rule-menu summary { list-style: none; padding: 8px; letter-spacing: 2px; }
.rc-rule-menu[open] > button { position: absolute; right: 0; top: 100%; white-space: nowrap; background: var(--bg-elev); border: 1px solid var(--ops-line); box-shadow: 0 5px 20px #14234115; z-index: 2; color: #bb3535; }
.rc-settings-heading { font-size: 15px; margin: 0 0 14px; }
.rc-reminder-choices legend { font-size: 13px; font-weight: 600; }
@media (max-width: 490px) {
  .rc-wizard { padding: 16px; }
  .rc-wizard-content { padding: 0 0 14px; }
  .rc-stepper { gap: 4px; margin-bottom: 24px; }
  .rc-stepper li small { font-size: 10px; }
  .rc-review { grid-template-columns: 85px minmax(0, 1fr); gap: 0 10px; }
  .rc-settings-links { grid-template-columns: 1fr; }
  .rc-rule-row { align-items: flex-start; flex-wrap: wrap; gap: 8px; }
  .rc-choice { padding: 12px; }
  .rc-start { padding: 24px 18px; }
  .rc-start-steps { font-size: 11px; gap: 7px; }
}

/* Keep the assistant launcher clear of the wizard's navigation controls. */
body:has(.rc-wizard) .ask-mikaka-fab:not([aria-label^="Close"]) { display: none !important; }

/* Operations uses the existing app sidebar, with optional views beside the heading. */
.ops-layout { display: block; }
.ops-view-menu { position: relative; font-size: 12px; color: var(--fg-muted); }
.ops-view-menu summary { cursor: pointer; padding: 9px 12px; border: 1px solid var(--ops-line); border-radius: 6px; }
.ops-view-menu > div { position: absolute; right: 0; top: calc(100% + 6px); display: grid; gap: 14px; min-width: 180px; padding: 16px; border: 1px solid var(--ops-line); border-radius: 8px; background: var(--bg-elev); box-shadow: 0 5px 20px #14234115; z-index: 5; }
.ops-view-menu button { text-align: left; }

/* Keep wizard focus changes and its footer stable while moving between steps. */
html:has(.rc-wizard) { scroll-behavior: auto; }
