:root {
  color-scheme: light;
  --powder: #0b1930;
  --powder-2: #122747;
  --steel: #3d506c;
  --steel-soft: #687894;
  --canvas: #f3f6fb;
  --surface: #ffffff;
  --surface-soft: #f8fafd;
  --surface-inset: #eef3f9;
  --label: #ffffff;
  --ink: #17223b;
  --ink-soft: #40506a;
  --ink-muted: #728098;
  --line: #dce4ef;
  --line-soft: #edf1f6;
  --line-strong: #bcc9da;
  --trace: #276ef1;
  --trace-soft: #edf4ff;
  --success: #16815b;
  --success-soft: #e8f7f0;
  --warning: #a76508;
  --warning-soft: #fff5dc;
  --danger: #c23f4c;
  --danger-soft: #fff0f2;
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 10px;
  --font: "Public Sans Variable", -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  --font-data: "Bahnschrift", "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  --shadow-sm: 0 1px 2px rgba(23, 34, 59, 0.05);
  --shadow-md: 0 8px 24px rgba(23, 34, 59, 0.08);
  --shadow-blue: 0 7px 18px rgba(39, 110, 241, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 1180px;
  min-height: 100%;
  background: var(--canvas);
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
  max-width: 100%;
  border-radius: var(--radius-sm);
  font: inherit;
  letter-spacing: 0;
}

button,
select {
  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.56;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p,
dl,
dd,
pre {
  margin: 0;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--trace);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.muted {
  color: var(--ink-muted);
}

/* Event campaign V1: audience review stays isolated from the outbound mail domain. */
.event-campaign-page {
  min-width: 0;
}

.event-campaign-page .page-head {
  align-items: center;
}

.event-campaign-select {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-muted);
  font-size: 13px;
}

.event-campaign-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.event-campaign-actions .button {
  flex: 0 0 auto;
}

.event-campaign-select select {
  min-width: 260px;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 8px 34px 8px 10px;
  color: var(--ink);
}

.event-create {
  display: flex;
  justify-content: flex-end;
  margin: -48px 0 14px;
  pointer-events: none;
}

.event-create > button,
.event-create-form {
  pointer-events: auto;
}

.event-create.is-open {
  display: block;
  margin: 0 0 14px;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
}

.event-create.is-open > button {
  float: right;
}

.event-create-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding-top: 44px;
}

.event-create-form label,
.event-decision-reason {
  display: grid;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 650;
}

.event-create-form input,
.event-create-form textarea,
.event-decision-reason textarea,
.event-toolbar input,
.event-toolbar select {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 9px 10px;
  color: var(--ink);
}

.event-create-wide {
  grid-column: span 2;
}

.event-create-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line-soft);
  padding-top: 12px;
  color: var(--ink-muted);
}

.event-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(100px, 1fr)) minmax(220px, 1.5fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.event-summary > div {
  min-height: 82px;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 14px 18px;
  border-right: 1px solid var(--line-soft);
}

.event-summary-metric {
  min-height: 82px;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 14px 18px;
  border: 0;
  border-right: 1px solid var(--line-soft);
  border-radius: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.event-summary-metric:hover,
.event-summary-metric:focus-visible {
  background: var(--surface-hover);
  outline: none;
}

.event-summary-metric small {
  opacity: 0;
  transition: opacity 120ms ease;
}

.event-summary-metric:hover small,
.event-summary-metric:focus-visible small {
  opacity: 1;
}

.event-summary > div:last-child {
  border-right: 0;
}

.event-summary span,
.event-summary small {
  color: var(--ink-muted);
  font-size: 12px;
}

.event-summary strong {
  font-family: var(--font-data);
  font-size: 23px;
  font-weight: 650;
}

.event-summary-guard {
  background: var(--warning-soft);
}

.event-summary-metric.event-summary-guard {
  border-right: 0;
}

.event-summary-outreach-actions {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.event-summary-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--warning);
  font: 650 16px var(--font);
  cursor: pointer;
}

.event-summary-link:hover,
.event-summary-link:focus-visible {
  text-decoration: underline;
  outline: none;
}

.event-summary-guard strong {
  color: var(--warning);
  font-family: var(--font);
  font-size: 16px;
}

.event-workspace {
  display: grid;
  grid-template-columns: minmax(520px, 44%) minmax(560px, 56%);
  min-height: 660px;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.event-workspace.is-event-detail-closed {
  grid-template-columns: minmax(0, 1fr);
}

.event-workspace.is-event-detail-closed .event-list-pane {
  border-right: 0;
}

.event-list-pane {
  min-width: 0;
  border-right: 1px solid var(--line);
}

.event-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 0.42fr) 150px;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.event-list-head,
.event-candidate-row {
  display: grid;
  grid-template-columns: 34px minmax(150px, 1.45fr) minmax(120px, 1fr) minmax(0, 3.1fr);
  align-items: center;
  gap: 10px;
}

.event-list-head {
  grid-template-columns: 34px minmax(150px, 1.45fr) minmax(120px, 1fr) minmax(88px, .7fr) 48px minmax(88px, .8fr) minmax(100px, .9fr);
  min-height: 40px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--ink-muted);
  font-size: 11px;
  font-weight: 700;
}

.event-candidate-list {
  max-height: 566px;
  overflow: auto;
}

.event-candidate-row {
  align-items: stretch;
  width: 100%;
  min-height: 62px;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  border-radius: 0;
  background: transparent;
  padding: 0 14px;
  color: var(--ink-soft);
  text-align: left;
}

.event-row-check {
  display: grid;
  place-items: center;
}

.event-row-check input,
.event-bulk-bar input {
  width: 16px;
  min-height: 16px;
}

.event-candidate-open {
  display: grid;
  grid-template-columns: minmax(88px, .7fr) 48px minmax(88px, .8fr) minmax(100px, .9fr);
  grid-column: 4;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  min-height: 61px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.event-bulk-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.event-bulk-bar label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.event-candidate-row:hover,
.event-candidate-row.is-active {
  background: var(--trace-soft);
}

.event-candidate-row.is-active {
  box-shadow: inset 3px 0 0 var(--trace);
}

.event-company,
.event-contact,
.event-candidate-open > span:last-child {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.event-name-cell {
  align-content: center;
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.event-name-cell:hover strong,
.event-name-cell:focus-visible strong {
  color: var(--trace);
}

.event-company strong,
.event-company small,
.event-contact strong,
.event-contact small,
.event-blocker {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-company strong {
  color: var(--ink);
  font-size: 13px;
}

.event-contact strong {
  color: var(--ink-soft);
  font-size: 12px;
}

.event-company small,
.event-contact small,
.event-blocker {
  color: var(--ink-muted);
  font-size: 10px;
}

.event-score {
  color: var(--success);
  font-family: var(--font-data);
  font-weight: 700;
}

.event-status {
  width: max-content;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
}

.event-status.eligible,
.event-status.enrolled {
  background: var(--success-soft);
  color: var(--success);
}

.event-status.ineligible {
  background: var(--warning-soft);
  color: var(--warning);
}

.event-status.excluded,
.event-status.stopped {
  background: var(--danger-soft);
  color: var(--danger);
}

.event-list-pane > footer {
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 12px;
}

.event-detail-pane {
  min-width: 0;
  background: var(--surface);
}

.event-detail-record > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}

.event-detail-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.event-detail-close {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink-muted);
  font: 400 21px/1 var(--font);
  cursor: pointer;
}

.event-detail-close:hover,
.event-detail-close:focus-visible {
  border-color: var(--trace);
  color: var(--trace);
  outline: none;
}

.event-detail-record h2 {
  margin-top: 3px;
  font-size: 20px;
  line-height: 1.25;
}

.event-detail-record header p {
  max-width: 560px;
  margin-top: 5px;
  overflow: hidden;
  color: var(--ink-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-route-lock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

.event-route-lock div {
  display: grid;
  gap: 3px;
}

.event-route-lock span {
  color: var(--ink-muted);
  font-size: 12px;
}

.event-route-lock b {
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
}

.event-route-lock b.clear {
  background: var(--success-soft);
  color: var(--success);
}

.event-route-lock b.blocked {
  background: var(--danger-soft);
  color: var(--danger);
}

.event-detail-section {
  padding: 16px 24px;
  border-bottom: 1px solid var(--line-soft);
}

.event-detail-section h3 {
  margin-bottom: 10px;
  font-size: 14px;
}

.event-editable-fact {
  display: grid;
  width: 100%;
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  color: var(--ink);
  text-align: left;
}

.event-editable-fact:hover,
.event-editable-fact:focus-visible {
  border-color: var(--trace);
  background: var(--trace-soft);
}

.event-editable-fact span,
.event-editable-fact small {
  color: var(--ink-muted);
  font-size: 11px;
}

.event-editable-fact strong {
  margin: 3px 0;
  overflow-wrap: anywhere;
  font-size: 13px;
}

.event-inline-editor {
  display: grid;
  gap: 9px;
  margin-bottom: 10px;
  padding: 12px;
  border: 1px solid var(--trace);
  border-radius: var(--radius-sm);
  background: var(--trace-soft);
}

.event-inline-editor > p {
  color: var(--ink-muted);
  font-size: 11px;
}

.event-inline-editor > div {
  display: flex;
  gap: 8px;
}

.event-manual-confirm {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.event-manual-confirm input {
  width: 16px;
  min-height: 16px;
  margin-top: 2px;
}

.event-manual-confirm span {
  margin: 0;
}

.event-decision-reason {
  padding: 16px 24px 0;
}

.event-detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 14px 24px 22px;
}

.event-detail-actions-single {
  grid-template-columns: minmax(180px, 280px);
  justify-content: end;
}

.event-outreach-compact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px 18px;
}

.event-outreach-compact .detail-section-head {
  grid-column: 1 / -1;
}

.event-draft-summary {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.event-draft-summary span,
.event-draft-summary small {
  color: var(--ink-muted);
  font-size: 11px;
}

.event-draft-summary strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-draft-modal {
  width: min(860px, calc(100vw - 32px));
  max-width: none;
  max-height: min(88dvh, 820px);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(16, 35, 60, 0.24);
}

.event-draft-modal::backdrop {
  background: rgba(14, 25, 40, 0.52);
}

.event-draft-modal-shell {
  display: grid;
  min-height: 0;
  max-height: min(88dvh, 820px);
  grid-template-rows: auto minmax(0, 1fr);
}

.event-draft-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

.event-draft-modal-head h2 {
  margin-top: 4px;
  font-size: 20px;
  line-height: 1.3;
}

.event-draft-modal-head p {
  margin-top: 4px;
  color: var(--ink-muted);
  font-size: 12px;
}

.event-draft-modal-head .icon-button {
  width: 36px;
  min-width: 36px;
  padding: 0;
  font-size: 20px;
}

.event-draft-modal-form {
  display: grid;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr) auto;
}

.event-draft-modal-body {
  display: grid;
  min-height: 0;
  gap: 14px;
  overflow-y: auto;
  padding: 20px;
  overscroll-behavior: contain;
}

.event-draft-modal-body label {
  display: grid;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 650;
}

.event-draft-modal-body input,
.event-draft-modal-body textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface-inset);
  padding: 10px 12px;
  color: var(--ink);
  resize: vertical;
}

.event-draft-modal-body textarea[name="body"] {
  min-height: min(36dvh, 330px);
  line-height: 1.6;
}

.event-draft-modal-body > small {
  color: var(--warning);
}

.event-draft-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
}

.event-draft-modal-actions .event-send-note {
  margin-right: auto;
  color: var(--ink-muted);
  font-size: 12px;
}

.event-followup-schedule {
  display: grid;
  gap: 12px;
}

.event-followup-schedule > p,
.event-followup-rule {
  color: var(--ink-muted);
  font-size: 11px;
}

.event-followup-list {
  display: grid;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.event-followup-entry {
  display: grid;
  grid-template-columns: 76px minmax(180px, 1fr) 118px auto;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 10px 12px;
  background: var(--surface);
}

.event-followup-entry + .event-followup-entry {
  border-top: 1px solid var(--line-soft);
}

.event-followup-round,
.event-followup-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.event-followup-round b {
  color: var(--trace);
  font-family: var(--font-data);
  font-size: 12px;
}

.event-followup-round span,
.event-followup-copy small {
  color: var(--ink-muted);
  font-size: 10px;
}

.event-followup-copy strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-followup-status {
  color: var(--trace);
  font-size: 11px;
  font-weight: 650;
}

.event-followup-entry.is-sent .event-followup-status {
  color: var(--success);
}

.event-followup-entry.is-stopped .event-followup-status,
.event-followup-entry.is-skipped .event-followup-status,
.event-followup-entry.is-pending .event-followup-status {
  color: var(--ink-muted);
}

.event-followup-entry.is-failed .event-followup-status {
  color: var(--danger);
}

.event-followup-dialog-meta {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 6px 12px;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--ink-muted);
  font-size: 11px;
}

.event-followup-dialog-meta strong {
  color: var(--ink);
  font-weight: 650;
}

.event-detail-empty,
.event-empty-state {
  min-height: 420px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  padding: 30px;
  color: var(--ink-muted);
  text-align: center;
}

.event-empty-state {
  min-height: 360px;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.event-empty-state div {
  max-width: 520px;
}

.event-empty-state h2 {
  margin: 6px 0;
  color: var(--ink);
  font-size: 22px;
}

@media (max-width: 1280px) {
  .event-workspace {
    grid-template-columns: minmax(500px, 1fr);
  }

  .event-list-pane {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .event-candidate-list {
    max-height: 420px;
  }

  .event-summary {
    grid-template-columns: repeat(4, 1fr);
  }

  .event-summary-guard {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .event-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .event-toolbar {
    grid-template-columns: minmax(0, 1fr);
  }

  .event-list-head {
    display: none;
  }

  .event-candidate-row {
    grid-template-columns: 34px minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 8px;
    padding-block: 8px;
  }

  .event-candidate-open {
    grid-column: 2 / -1;
    grid-template-columns: minmax(0, 1fr) auto auto;
    justify-items: start;
  }

  .event-candidate-open > :nth-child(4) {
    grid-column: span 1;
  }

  .event-bulk-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .event-detail-record > header,
  .event-route-lock,
  .event-detail-section {
    padding-inline: 14px;
  }

}

@media (max-width: 560px) {
  .event-outreach-compact {
    grid-template-columns: minmax(0, 1fr);
  }

  .event-outreach-compact .button {
    width: 100%;
  }

  .event-draft-modal {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
  }

  .event-draft-modal-shell {
    max-height: calc(100dvh - 20px);
  }

  .event-draft-modal-head,
  .event-draft-modal-body {
    padding: 14px;
  }

  .event-draft-modal-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 10px 14px 14px;
  }

  .event-draft-modal-actions .event-send-note {
    grid-column: 1 / -1;
    margin-right: 0;
  }

  .event-draft-modal-actions .button:last-child:nth-child(3) {
    grid-column: 1 / -1;
  }
}

.button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink-soft);
  font-weight: 700;
  white-space: nowrap;
}

.button {
  gap: 6px;
  padding: 0 13px;
}

.icon-button {
  width: 36px;
  padding: 0;
  font-size: 18px;
}

.button:hover:not(:disabled),
.icon-button:hover:not(:disabled) {
  border-color: var(--steel);
  color: var(--ink);
}

.button-primary {
  border-color: var(--trace);
  background: var(--trace);
  color: var(--label);
}

.button-primary:hover:not(:disabled) {
  border-color: #1d57aa;
  background: #1d57aa;
  color: var(--label);
}

.button-external {
  border-color: var(--powder);
  background: var(--powder);
  color: var(--label);
}

.button-danger {
  border-color: #d9a3a8;
  background: var(--danger-soft);
  color: var(--danger);
}

.button-quiet {
  background: transparent;
}

.text-link {
  color: var(--trace);
  font-weight: 700;
  overflow-wrap: anywhere;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line-strong);
  background: var(--surface-soft);
  color: var(--ink);
}

input,
select {
  min-height: 36px;
  padding: 0 10px;
}

textarea {
  padding: 9px 10px;
  line-height: 1.55;
  resize: vertical;
}

input:hover:not(:disabled),
select:hover:not(:disabled),
textarea:hover:not(:disabled) {
  border-color: var(--steel-soft);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--trace);
  background: var(--surface);
}

label > span,
.field > span {
  display: block;
  margin-bottom: 5px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
}

.brand-lock {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 4px);
  align-items: end;
  justify-content: center;
  gap: 3px;
  width: 34px;
  height: 34px;
  border: 1px solid #707b84;
  border-radius: var(--radius-sm);
  background: var(--powder-2);
}

.brand-lock::before {
  position: absolute;
  top: 6px;
  width: 13px;
  height: 8px;
  border: 2px solid #c8d0d6;
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
  content: "";
}

.brand-lock i {
  height: 10px;
  background: #d6dde2;
}

.app-shell {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  width: 224px;
  height: 100vh;
  min-width: 0;
  overflow: hidden;
  border-right: 1px solid #30373d;
  background: var(--powder);
  color: #edf1f4;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 64px;
  padding: 12px 16px;
  border-bottom: 1px solid #30373d;
}

.brand-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.brand-copy strong {
  font-size: 16px;
  line-height: 1.1;
}

.brand-copy small {
  color: #929da6;
  font-family: var(--font-data);
  font-size: 9px;
}

.nav {
  flex: 1;
  min-height: 0;
  padding: 12px 9px 18px;
  overflow-y: auto;
}

.nav-section + .nav-section {
  margin-top: 13px;
}

.nav-section h2 {
  margin: 0 0 4px;
  padding: 2px 9px;
  color: #7f8a93;
  font-size: 10px;
  font-weight: 700;
}

.nav-link {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-height: 37px;
  padding: 4px 8px;
  border-left: 2px solid transparent;
  color: #bdc5cb;
  font-size: 13px;
}

.nav-link:hover {
  background: #20262b;
  color: var(--label);
}

.nav-link.is-active {
  border-left-color: #6ea5fb;
  background: #222b34;
  color: var(--label);
}

.nav-code {
  color: #84909a;
  font-family: var(--font-data);
  font-size: 11px;
  font-weight: 700;
}

.nav-link.is-active .nav-code {
  color: #82b2ff;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 62px;
  padding: 10px 14px;
  border-top: 1px solid #30373d;
}

.user-initial {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border: 1px solid #5c6871;
  border-radius: var(--radius-sm);
  color: var(--label);
  font-family: var(--font-data);
  font-size: 11px;
}

.sidebar-user > span:last-child {
  display: grid;
  min-width: 0;
}

.sidebar-user strong,
.sidebar-user small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-user strong {
  font-size: 12px;
}

.sidebar-user small {
  color: #89949d;
  font-size: 10px;
}

.workspace {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  min-width: 0;
  min-height: 64px;
  padding: 8px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(238, 241, 243, 0.96);
}

.topbar-title {
  display: grid;
  min-width: 0;
}

.topbar-title span {
  color: var(--ink-muted);
  font-family: var(--font-data);
  font-size: 10px;
}

.topbar-title strong {
  font-size: 14px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.health-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink-muted);
  font-size: 11px;
}

.health-state i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line-strong);
}

.health-state.is-ready i {
  background: var(--success);
}

.health-state.is-error i {
  background: var(--danger);
}

.owner-select {
  display: flex;
  align-items: center;
  gap: 7px;
}

.owner-select > span {
  margin: 0;
  color: var(--ink-muted);
  font-size: 11px;
}

.owner-select select {
  width: auto;
  min-width: 132px;
  min-height: 34px;
  background: var(--surface);
}

.main {
  position: relative;
  min-width: 0;
  max-width: 100%;
  outline: 0;
  overflow-x: clip;
}

.main.is-refreshing::before {
  position: absolute;
  z-index: 4;
  top: 0;
  left: 0;
  width: 22%;
  height: 2px;
  background: var(--trace);
  content: "";
  transform: translateX(-100%);
  animation: page-refresh-progress 1.1s ease-in-out infinite;
}

.page {
  display: grid;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
  padding: 18px 20px 28px;
}

.page-loading {
  min-height: calc(100vh - 58px);
}

.loading-skeleton {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.loading-skeleton i,
.loading-skeleton b {
  display: block;
  border-radius: 4px;
  background: var(--surface-inset);
  animation: loading-skeleton-pulse 850ms ease-in-out infinite alternate;
}

.loading-skeleton-toolbar,
.loading-skeleton-metrics {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.loading-skeleton-toolbar {
  grid-template-columns: minmax(180px, 1fr) repeat(3, 120px);
}

.loading-skeleton-toolbar i {
  height: 34px;
}

.loading-skeleton-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.loading-skeleton-metrics i {
  height: 48px;
}

.loading-skeleton-board {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
  min-width: 0;
  min-height: 430px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.loading-skeleton-board > div,
.loading-skeleton-board > aside {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  padding: 14px;
}

.loading-skeleton-board > div {
  border-right: 1px solid var(--line);
}

.loading-skeleton-board b {
  width: 38%;
  height: 20px;
}

.loading-skeleton-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px 64px;
  gap: 10px;
  min-height: 46px;
  padding-block: 7px;
  border-top: 1px solid var(--line-soft);
}

.loading-skeleton-row i,
.loading-skeleton-board > aside i {
  height: 30px;
}

.queue-page-loading {
  min-height: 320px;
  padding: 6px 12px 12px;
}

.queue-page-loading .loading-skeleton-row:first-child {
  border-top: 0;
}

.loading-skeleton-board > aside i:nth-of-type(1) {
  height: 72px;
}

.loading-skeleton-board > aside i:nth-of-type(2) {
  height: 112px;
}

@keyframes loading-skeleton-pulse {
  from { opacity: 0.58; }
  to { opacity: 1; }
}

@keyframes page-refresh-progress {
  from { transform: translateX(-100%); }
  to { transform: translateX(560%); }
}

@media (prefers-reduced-motion: reduce) {
  .loading-skeleton i,
  .loading-skeleton b {
    animation: none;
  }

  .main.is-refreshing::before {
    width: 100%;
    opacity: 0.7;
    transform: none;
    animation: none;
  }
}

.page-head,
.section-head,
.detail-content > header,
.workflow-lane > header,
.job-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.page-head {
  min-height: 43px;
}

.page-head > div:first-child {
  display: grid;
  gap: 2px;
}

.section-code,
.eyebrow {
  color: var(--trace);
  font-family: var(--font-data);
  font-size: 10px;
  font-weight: 700;
}

.page-head h1 {
  font-size: 20px;
  line-height: 1.2;
}

.page-head-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.process-rail {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  min-width: 0;
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.process-step {
  position: relative;
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  min-width: 0;
  min-height: 48px;
  padding: 7px 10px;
  border-right: 1px solid var(--line);
}

.process-step:last-child {
  border-right: 0;
}

.process-step b {
  color: var(--steel-soft);
  font-family: var(--font-data);
  font-size: 11px;
}

.process-step span {
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.process-step:hover,
.process-step.is-current {
  background: var(--trace-soft);
}

.process-step.is-current::after {
  position: absolute;
  right: 10px;
  bottom: -1px;
  left: 10px;
  height: 2px;
  background: var(--trace);
  content: "";
}

.process-step.is-current b,
.process-step.is-current span {
  color: var(--trace);
}

.process-map {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  min-width: 0;
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.process-map a {
  position: relative;
  display: grid;
  align-content: center;
  gap: 3px;
  min-width: 0;
  min-height: 68px;
  padding: 10px 11px;
  border-right: 1px solid var(--line);
}

.process-map a:last-child {
  border-right: 0;
}

.process-map a:hover {
  background: var(--trace-soft);
}

.process-map b {
  color: var(--trace);
  font-family: var(--font-data);
  font-size: 11px;
}

.process-map span {
  overflow: hidden;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.process-map i {
  position: absolute;
  right: 10px;
  bottom: 9px;
  width: 12px;
  height: 1px;
  background: var(--trace);
}

.section-band,
.config-workbench,
.queue-pane,
.detail-pane,
.workflow-lane {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.section-band,
.config-workbench {
  padding: 14px;
}

.section-band {
  display: grid;
  gap: 12px;
}

.section-head {
  min-height: 30px;
}

.section-head > div:first-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.section-head h2 {
  font-size: 14px;
}

.section-head span {
  color: var(--ink-muted);
  font-size: 11px;
}

.section-actions,
.toolbar-actions,
.detail-actions,
.form-command-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  min-width: 0;
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.metric {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 3px 10px;
  min-width: 0;
  min-height: 60px;
  padding: 9px 13px;
  border-right: 1px solid var(--line);
}

.metric:last-child {
  border-right: 0;
}

.metric span,
.metric small {
  overflow: hidden;
  color: var(--ink-muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric strong {
  color: var(--ink);
  font-family: var(--font-data);
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.metric small {
  grid-column: 1 / -1;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 23px;
  padding: 2px 7px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  white-space: normal;
  text-align: center;
}

.status-pill.success {
  border-color: #9fc7af;
  background: var(--success-soft);
  color: var(--success);
}

.status-pill.running {
  border-color: #a7c2e9;
  background: var(--trace-soft);
  color: var(--trace);
}

.status-pill.warning {
  border-color: #dfc187;
  background: var(--warning-soft);
  color: var(--warning);
}

.status-pill.error {
  border-color: #dda5aa;
  background: var(--danger-soft);
  color: var(--danger);
}

.state-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 112px;
  padding: 16px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-soft);
  text-align: left;
}

.state-box > div {
  display: grid;
  gap: 3px;
}

.state-box strong {
  font-size: 13px;
}

.state-box small {
  color: var(--ink-muted);
  font-size: 11px;
}

.state-mark {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
}

.state-box.loading .state-mark {
  border-color: var(--trace);
  border-right-color: transparent;
  animation: spin 0.8s linear infinite;
}

.state-box.error {
  border-color: #d9a3a8;
  background: var(--danger-soft);
}

.state-box.error .state-mark {
  border-color: var(--danger);
  background: var(--danger);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(330px, 0.7fr);
  gap: 12px;
  min-width: 0;
}

.task-lines,
.lane-lines,
.workflow-registry {
  display: grid;
  min-width: 0;
}

.task-lines a {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) minmax(90px, 0.45fr) 90px 105px;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 42px;
  padding: 6px 8px;
  border-top: 1px solid var(--line-soft);
}

.task-lines a:first-child,
.lane-lines > div:first-child,
.workflow-registry > :first-child {
  border-top: 0;
}

.task-lines a:hover,
.workflow-registry a:hover {
  background: var(--trace-soft);
}

.task-lines a > span:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.task-lines b,
.workflow-registry b {
  color: var(--trace);
  font-family: var(--font-data);
  font-size: 10px;
}

.task-lines strong,
.task-lines small,
.task-lines time {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-lines small,
.task-lines time {
  color: var(--ink-muted);
  font-size: 10px;
}

.lane-lines > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px 120px;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 6px 8px;
  border-top: 1px solid var(--line-soft);
}

.lane-lines span {
  display: grid;
}

.lane-lines small,
.lane-lines b {
  color: var(--ink-muted);
  font-size: 10px;
}

.workflow-registry {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-soft);
  border-left: 1px solid var(--line-soft);
}

.workflow-registry > a,
.workflow-registry > div {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 3px 8px;
  min-width: 0;
  min-height: 54px;
  padding: 8px 10px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.workflow-registry .status-pill {
  grid-column: 2;
  justify-self: start;
}

.workflow-registry span {
  display: grid;
  min-width: 0;
  font-size: 11px;
  font-weight: 700;
}

.workflow-registry span small {
  color: var(--ink-muted);
  font-size: 9px;
  font-weight: 500;
}

.workflow-form,
.config-workbench {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.form-grid {
  display: grid;
  gap: 10px 12px;
  min-width: 0;
}

.form-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.span-2 {
  grid-column: span 2;
}

.downward-picker {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.downward-picker.is-open {
  z-index: 12;
}

.downward-picker input[type="hidden"] {
  display: none;
}

.downward-picker-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 36px;
  padding: 0 10px 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  color: var(--ink);
  text-align: left;
}

.downward-picker-trigger:hover:not(:disabled) {
  border-color: var(--steel-soft);
}

.downward-picker.is-open .downward-picker-trigger {
  border-color: var(--trace);
  background: var(--surface);
}

.downward-picker-trigger b {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.downward-picker-trigger i {
  flex: 0 0 auto;
  margin-left: 10px;
  color: var(--ink-muted);
  font-family: var(--font-data);
  font-size: 15px;
  font-style: normal;
  line-height: 1;
  transition: transform 160ms ease-out;
}

.downward-picker.is-open .downward-picker-trigger i {
  transform: rotate(180deg);
}

.downward-picker-menu {
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
  left: 0;
  display: grid;
  max-height: 268px;
  overflow-y: auto;
  padding: 4px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.downward-picker-option {
  width: 100%;
  min-height: 34px;
  padding: 0 9px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  text-align: left;
}

.downward-picker-option:hover,
.downward-picker-option:focus-visible {
  background: var(--trace-soft);
  color: var(--ink);
  outline: 0;
}

.downward-picker-option.is-selected {
  background: var(--powder);
  color: var(--label);
}

.query-override {
  display: block;
}

.query-preview-block {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(380px, 0.65fr);
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--trace);
  background: var(--surface-soft);
}

.query-preview-main {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
}

.query-preview-main > span {
  color: var(--trace);
  font-size: 11px;
  font-weight: 800;
}

.query-preview-main code {
  color: var(--ink);
  font-family: var(--font-data);
  font-size: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.query-preview-main small {
  color: var(--ink-muted);
  font-size: 10px;
  overflow-wrap: anywhere;
}

.provider-params {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.provider-params div {
  min-width: 0;
  padding: 7px 8px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.provider-params dt {
  color: var(--ink-muted);
  font-family: var(--font-data);
  font-size: 9px;
}

.provider-params dd {
  overflow: hidden;
  margin-top: 2px;
  font-family: var(--font-data);
  font-size: 10px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.term-validation {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: stretch;
  min-width: 0;
  border: 1px solid var(--line);
  border-left: 3px solid var(--warning);
  background: var(--surface-soft);
}

.term-validation.success {
  border-left-color: var(--success);
}

.term-validation.error {
  border-left-color: var(--danger);
}

.term-validation > div {
  min-width: 0;
  padding: 7px 9px;
  border-right: 1px solid var(--line-soft);
}

.term-validation span,
.term-validation strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.term-validation span {
  color: var(--ink-muted);
  font-size: 9px;
}

.term-validation strong {
  margin-top: 2px;
  font-family: var(--font-data);
  font-size: 10px;
}

.term-validation > .term-validation-wide {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line-soft);
  border-right: 0;
}

.term-validation > .term-validation-wide strong {
  overflow-wrap: anywhere;
  white-space: normal;
}

.term-validation-reason {
  grid-column: 1 / -1;
  margin: 0;
  padding: 6px 9px;
  border-top: 1px solid var(--line-soft);
  color: var(--ink-muted);
  font-size: 9px;
}

.term-catalog-rail {
  display: grid;
  grid-template-columns: minmax(190px, 0.5fr) minmax(0, 1.5fr);
  align-items: center;
  min-width: 0;
  padding: 8px 10px;
  border-block: 1px solid var(--line-soft);
  background: var(--surface-soft);
}

.term-catalog-rail header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 8px;
  min-width: 0;
}

.term-catalog-rail header span,
.term-catalog-rail dt {
  color: var(--ink-muted);
  font-size: 9px;
}

.term-catalog-rail header strong {
  font-size: 11px;
}

.term-catalog-rail header b {
  grid-column: 1 / -1;
  color: var(--ink-soft);
  font-family: var(--font-data);
  font-size: 10px;
}

.term-catalog-rail progress {
  grid-column: 1 / -1;
  width: 100%;
  height: 5px;
  margin-block: 7px;
}

.term-catalog-rail dl {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--line-soft);
}

.term-catalog-rail dl div {
  min-width: 0;
  padding-top: 6px;
}

.term-catalog-rail dd {
  overflow: hidden;
  margin: 2px 0 0;
  font-family: var(--font-data);
  font-size: 10px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.form-command-row {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.wf01-start-row {
  justify-content: flex-end;
}

.wf01-start-button {
  min-width: 180px;
  min-height: 40px;
}

.wf01-automation-workbench {
  border-top: 2px solid var(--accent);
}

.wf01-manual-plan-summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 2px;
  cursor: pointer;
  list-style: none;
}

.wf01-manual-plan-summary::-webkit-details-marker {
  display: none;
}

.wf01-manual-plan-summary::after {
  content: "+";
  color: var(--ink-muted);
  font: 700 18px/1 var(--font-data);
}

.wf01-manual-plan[open] .wf01-manual-plan-summary::after {
  content: "-";
}

.wf01-manual-plan-summary span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.wf01-manual-plan-summary small {
  color: var(--ink-muted);
  font-size: 11px;
}

.automation-plan-status {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 36px;
  margin-bottom: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  color: var(--ink-muted);
  font-size: 11px;
}

.automation-plan-status strong {
  color: var(--ink);
  font-size: 12px;
}

.automation-plan-status span:last-child {
  font-family: var(--font-data);
  text-align: right;
}

.automation-order {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  color: var(--ink-muted);
  font-size: 11px;
  font-weight: 750;
}

.automation-order i {
  color: var(--ink-faint);
  font-style: normal;
}

.automation-matrix-progress {
  display: grid;
  grid-template-columns: minmax(150px, auto) minmax(240px, 1fr) 42px;
  gap: 12px;
  align-items: center;
  padding: 9px 10px;
  border-block: 1px solid var(--line-soft);
}

.automation-matrix-progress div {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.automation-matrix-progress strong,
.automation-matrix-progress b {
  font-family: var(--font-data);
  color: var(--ink);
}

.automation-matrix-progress span {
  color: var(--ink-muted);
  font-size: 11px;
}

.automation-matrix-progress progress {
  width: 100%;
  height: 8px;
  accent-color: var(--accent);
}

.automation-current-step {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 0;
  border-bottom: 1px solid var(--line-soft);
}

.automation-current-step div {
  min-width: 0;
  padding: 9px 10px;
  border-right: 1px solid var(--line-soft);
}

.automation-current-step div:last-child {
  border-right: 0;
}

.automation-current-step dt {
  margin-bottom: 3px;
  color: var(--ink-muted);
  font-size: 10px;
}

.automation-current-step dd {
  overflow: hidden;
  margin: 0;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.automation-matrix-selection {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.automation-matrix-selection label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--ink-muted);
  font-size: 11px;
  font-weight: 700;
}

.automation-matrix-selection select {
  min-height: 176px;
  padding: 4px;
}

.automation-matrix-selection option,
.automation-matrix-selection optgroup {
  padding-block: 3px;
}

.inline-hint {
  margin: 0;
  color: var(--ink-muted);
  font-size: 11px;
  line-height: 1.5;
}

.wf01-search-preview {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
}

.wf01-search-preview span {
  color: var(--ink-muted);
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}

.wf01-search-preview code {
  overflow: hidden;
  color: var(--ink);
  font-family: var(--font-data);
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wf01-run-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
}

.wf01-run-metrics div {
  min-width: 0;
  padding: 8px 10px;
  border-right: 1px solid var(--line-soft);
}

.wf01-run-metrics div:last-child {
  border-right: 0;
}

.wf01-run-metrics dt {
  overflow: hidden;
  color: var(--ink-muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wf01-run-metrics dd {
  margin: 3px 0 0;
  color: var(--ink);
  font-family: var(--font-data);
  font-size: 16px;
  font-weight: 750;
  line-height: 1;
}

.wf01-filter-breakdown {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: -1px 0 0;
  border: 1px solid var(--line-soft);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  background: var(--surface);
}

.wf01-filter-breakdown div {
  min-width: 0;
  padding: 7px 10px;
  border-right: 1px solid var(--line-soft);
}

.wf01-filter-breakdown div:last-child {
  border-right: 0;
}

.wf01-filter-breakdown dt {
  overflow: hidden;
  color: var(--ink-muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wf01-filter-breakdown dd {
  margin: 3px 0 0;
  color: var(--ink);
  font-family: var(--font-data);
  font-size: 13px;
  font-weight: 750;
  line-height: 1;
}

.gate-copy {
  color: var(--warning);
  font-size: 11px;
  font-weight: 700;
}

.gate-copy.is-open {
  color: var(--success);
}

.inline-alert,
.reply-impact {
  padding: 9px 11px;
  border-left: 3px solid var(--warning);
  background: var(--warning-soft);
  color: var(--warning);
  font-size: 11px;
}

.inline-alert.error {
  border-left-color: var(--danger);
  background: var(--danger-soft);
  color: var(--danger);
}

.job-run-state {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.35fr);
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 9px 11px;
  border-left: 3px solid var(--trace);
  background: var(--surface-soft);
}

.job-run-state > div:first-child {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 4px 8px;
  min-width: 0;
}

.job-run-state > div:first-child small {
  grid-column: 2;
  color: var(--ink-muted);
  font-size: 10px;
}

.job-run-state > p {
  grid-column: 1 / -1;
  color: var(--danger);
  font-size: 11px;
}

.job-progress {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  align-items: center;
  gap: 7px;
}

progress {
  width: 100%;
  height: 7px;
  border: 0;
  border-radius: 2px;
  overflow: hidden;
  accent-color: var(--trace);
}

.job-progress b {
  font-family: var(--font-data);
  font-size: 10px;
}

.filter-toolbar {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.filter-toolbar > label {
  width: 142px;
}

.filter-toolbar > label.filter-search {
  width: auto;
  min-width: 220px;
  flex: 1 1 260px;
}

.filter-toolbar label > span {
  margin: 0;
}

.toolbar-actions {
  margin-left: auto;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.status-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  padding: 8px 11px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink-soft);
}

.status-summary:last-child {
  border-right: 0;
}

.status-summary span {
  font-size: 11px;
  font-weight: 700;
}

.status-summary strong {
  font-family: var(--font-data);
  font-size: 16px;
}

.status-summary:hover,
.status-summary.is-active {
  background: var(--trace-soft);
  color: var(--trace);
}

.status-summary.completed.is-active {
  background: var(--success-soft);
  color: var(--success);
}

.status-summary.exception.is-active {
  background: var(--danger-soft);
  color: var(--danger);
}

.status-summary.pending.is-active {
  background: var(--warning-soft);
  color: var(--warning);
}

.queue-board {
  display: grid;
  grid-template-columns: minmax(520px, 1.24fr) minmax(340px, 0.76fr);
  align-items: start;
  gap: 12px;
  min-width: 0;
}

.queue-pane {
  overflow: hidden;
}

.queue-pane > .section-head {
  min-height: 52px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
}

.select-visible,
.row-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-muted);
  font-size: 10px;
}

.select-visible input,
.row-check input {
  width: 15px;
  min-height: 15px;
  accent-color: var(--trace);
}

.queue-list {
  min-height: 168px;
}

.queue-entry {
  display: grid;
  grid-template-columns: 29px minmax(0, 1fr);
  align-items: stretch;
  min-width: 0;
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface);
}

.queue-entry:last-child {
  border-bottom: 0;
}

.queue-entry:hover,
.queue-entry.is-active {
  background: var(--trace-soft);
}

.queue-entry.is-active {
  box-shadow: inset 3px 0 0 var(--trace);
}

.row-check {
  justify-content: center;
  min-width: 0;
  padding-left: 3px;
}

.row-check.is-disabled span {
  color: var(--line-strong);
}

.queue-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 68px;
  padding: 8px 10px 8px 7px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.queue-row > span {
  display: grid;
  align-content: center;
  gap: 2px;
  min-width: 0;
}

.queue-row strong,
.queue-row b,
.queue-row small {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.queue-row strong,
.queue-row b {
  font-size: 11px;
}

.queue-row small {
  color: var(--ink-muted);
  font-size: 9px;
}

.queue-email strong,
.queue-context b {
  font-family: var(--font-data);
  font-size: 10px;
}

.queue-score {
  justify-items: center;
}

.queue-score strong {
  font-family: var(--font-data);
  font-size: 18px;
}

.queue-state {
  justify-items: end;
  text-align: right;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 46px;
  padding: 7px 10px;
  border-top: 1px solid var(--line);
}

.pagination > span {
  color: var(--ink-muted);
  font-family: var(--font-data);
  font-size: 10px;
}

.pagination > div {
  display: flex;
  gap: 6px;
}

.pagination .button {
  min-height: 30px;
  padding-inline: 9px;
  font-size: 10px;
}

.detail-pane {
  position: sticky;
  top: 76px;
  max-height: calc(100vh - 92px);
  overflow-y: auto;
}

.queue-detail-loading {
  align-content: start;
  min-height: 420px;
  padding: 16px;
}

.queue-detail-loading b {
  width: min(52%, 260px);
  height: 26px;
}

.queue-detail-loading i {
  height: 48px;
}

.queue-detail-loading i:nth-of-type(2) {
  height: 96px;
}

.queue-detail-loading i:nth-of-type(4) {
  height: 132px;
}

.detail-content,
.detail-empty {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
}

.detail-content > header {
  align-items: flex-start;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.detail-content > header > div:first-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.detail-content h2,
.detail-empty h2 {
  font-size: 16px;
  overflow-wrap: anywhere;
}

.detail-content h3 {
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.detail-content header p {
  color: var(--ink-muted);
  font-size: 10px;
  overflow-wrap: anywhere;
}

.detail-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.detail-facts div {
  min-width: 0;
  padding: 8px 9px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.detail-facts dt {
  color: var(--ink-muted);
  font-size: 9px;
}

.detail-facts dd {
  margin-top: 3px;
  font-size: 11px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.detail-section {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.detail-section > span,
.detail-section-head {
  color: var(--ink-muted);
  font-size: 10px;
  font-weight: 800;
}

.detail-section p,
.detail-section small {
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.detail-empty-note,
.detail-policy-copy {
  margin: 0;
}

.detail-policy-copy {
  padding: 8px 9px;
  border-left: 2px solid var(--trace);
  background: var(--trace-soft);
}

.detail-tag-list,
.detail-source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.detail-tag-list span {
  max-width: 100%;
  padding: 3px 6px;
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--surface-soft);
  font-size: 9px;
  font-weight: 700;
}

.detail-source-list {
  display: grid;
  gap: 5px;
  padding-top: 7px;
  border-top: 1px solid var(--line-soft);
}

.detail-source-list .text-link {
  width: fit-content;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.detail-writing-contract .detail-facts dd,
.detail-execution-audit .detail-facts dd,
.detail-followup-strategy .detail-facts dd {
  font-size: 10px;
}

.email-copy pre {
  max-height: 270px;
  padding: 10px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  font-family: var(--font);
  font-size: 11px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.detail-form {
  display: grid;
  gap: 9px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.detail-form textarea {
  min-height: 60px;
}

.first-email-editor textarea[name="body"] {
  min-height: 220px;
}

.detail-actions small,
.detail-form > small {
  flex-basis: 100%;
  color: var(--ink-muted);
  font-size: 10px;
}

.detail-empty > div:first-child {
  display: grid;
  gap: 7px;
  justify-items: start;
}

.handoff-track {
  display: grid;
  grid-template-columns: minmax(75px, 1fr) 16px minmax(75px, 1fr) 16px minmax(75px, 1fr);
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.handoff-track b {
  min-width: 0;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  color: var(--ink-muted);
  font-size: 9px;
  text-align: center;
}

.handoff-track b.active {
  border-color: #a7c2e9;
  background: var(--trace-soft);
  color: var(--trace);
}

.handoff-track i {
  height: 1px;
  background: var(--trace);
}

.wf02-action-group {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px 9px;
  min-width: 0;
}

.wf02-action-group .gate-copy {
  max-width: 230px;
  line-height: 1.35;
  white-space: normal;
}

.wf07-pitch-control {
  display: grid;
  gap: 3px;
  width: 176px;
  min-width: 0;
}

.wf07-pitch-control > span {
  color: var(--ink-muted);
  font-size: 11px;
}

.wf02-bulk-bar {
  position: sticky;
  bottom: 12px;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 58px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 8px 24px rgba(21, 25, 29, 0.13);
  backdrop-filter: blur(8px);
}

.page:has(.wf02-bulk-bar) .queue-board {
  height: clamp(340px, calc(100vh - 608px), 520px);
  overflow: hidden;
}

.page:has(.wf02-bulk-bar) .queue-pane,
.page:has(.wf02-bulk-bar) .detail-pane {
  height: 100%;
  max-height: none;
  overflow-y: auto;
}

.page:has(.wf02-bulk-bar) .queue-pane > .section-head {
  position: sticky;
  top: 0;
  z-index: 3;
}

.page:has(.wf02-bulk-bar) .detail-pane {
  position: static;
}

.wf02-bulk-summary {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.wf02-bulk-summary strong {
  color: var(--ink);
  font-size: 12px;
}

.wf02-bulk-summary span {
  color: var(--ink-muted);
  font-size: 10px;
}

.wf02-bulk-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}

.wf02-detail .detail-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.wf02-detail .detail-section-head em {
  min-width: 0;
  color: var(--ink-muted);
  font-size: 9px;
  font-style: normal;
  font-weight: 600;
  overflow-wrap: anywhere;
  text-align: right;
}

.wf02-detail {
  gap: 0;
  color: var(--ink);
}

.wf02-detail > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 0;
}

.wf02-detail-title {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.wf02-detail-title > span {
  overflow: hidden;
  color: var(--ink-muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wf02-detail-title > p {
  color: var(--ink-soft);
}

.wf02-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
  flex: 0 0 auto;
}

.wf02-open-site.button {
  min-height: 30px;
  padding-inline: 9px;
  color: var(--ink-soft);
  font-size: 9px;
}

.wf02-decision-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-width: 0;
  margin: 0;
  padding: 12px 0;
  overflow: visible;
  border: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  list-style: none;
}

.wf02-decision-track li {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  justify-items: center;
  gap: 5px;
  min-width: 0;
  min-height: 40px;
  padding: 0 4px;
  border-right: 0;
  background: transparent;
  color: var(--ink-muted);
  font-size: 9px;
  text-align: center;
}

.wf02-decision-track li:not(:last-child)::after {
  position: absolute;
  top: 12px;
  left: calc(50% + 12px);
  z-index: 0;
  width: calc(100% - 24px);
  height: 1px;
  background: var(--line-strong);
  content: "";
}

.wf02-decision-track li > b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink-muted);
  font-family: var(--font-data);
  font-size: 8px;
  z-index: 1;
}

.wf02-decision-track li > span {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wf02-decision-track li.done {
  background: transparent;
}

.wf02-decision-track li.done > b {
  border-color: #9fc7af;
  background: var(--success-soft);
  color: var(--success);
}

.wf02-decision-track li.active {
  background: transparent;
}

.wf02-decision-track li.active > b {
  border-color: #a7c2e9;
  background: var(--trace-soft);
  color: var(--trace);
}

.wf02-decision-track li.blocked {
  background: transparent;
}

.wf02-decision-track li.blocked > b {
  border-color: #dfc187;
  background: var(--warning-soft);
  color: var(--warning);
}

.wf02-decision-track li.locked > b,
.wf02-decision-track li.pending > b {
  background: var(--surface-soft);
}

.wf02-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 8px;
  margin: 12px 0 0;
  min-width: 0;
}

.wf02-overview-grid > div {
  min-width: 0;
  min-height: 50px;
  padding: 8px 10px;
  background: var(--surface-inset);
}

.wf02-overview-grid dt {
  color: var(--ink-muted);
  font-size: 9px;
}

.wf02-overview-grid dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.wf02-empty-value {
  display: block;
  min-width: 32px;
  min-height: 1.45em;
}

.wf02-empty-status {
  display: inline-block;
  min-width: 58px;
  min-height: 19px;
}

.wf02-empty-badge {
  min-width: 58px;
  min-height: 19px;
}

.wf02-empty-copy {
  min-height: 54px;
}

.wf02-detail > .detail-section,
.wf02-detail > .detail-form {
  padding-block: 14px;
}

.wf02-detail > .detail-section {
  gap: 10px;
}

.wf02-section-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.wf02-section-actions .text-link {
  font-size: 9px;
  font-weight: 650;
}

.wf02-recommendation p {
  color: var(--ink) !important;
  font-size: 11px !important;
  line-height: 1.7 !important;
}

.wf02-recommendation .detail-section-head > span:first-child,
.wf02-score-composition .detail-section-head > span:first-child,
.wf02-evidence-section .detail-section-head > span:first-child,
.wf02-search-context .detail-section-head > span:first-child {
  color: var(--trace);
}

.wf02-recommendation > small {
  color: var(--ink-muted);
  font-size: 9px;
}

.wf02-recommendation-badge {
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 750;
}

.wf02-recommendation-badge.success {
  background: var(--success-soft);
  color: var(--success);
}

.wf02-recommendation-badge.warning {
  background: var(--warning-soft);
  color: var(--warning);
}

.wf02-recommendation-badge.danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.wf02-recommendation-badge.neutral {
  background: var(--surface-inset);
  color: var(--ink-muted);
}

.wf02-evidence-error {
  padding: 7px 8px;
  border: 1px solid #d9a3a8;
  background: var(--danger-soft);
  color: var(--danger) !important;
  font-size: 9px !important;
  overflow-wrap: anywhere;
}

.wf02-evidence-record {
  display: grid;
  min-width: 0;
  margin: 0;
}

.wf02-evidence-record > div {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
}

.wf02-evidence-record dt {
  color: var(--ink-muted);
  font-size: 8px;
}

.wf02-evidence-record dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: 9px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.wf02-score-composition dl {
  display: grid;
  min-width: 0;
  margin: 0;
}

.wf02-score-composition dl > div {
  display: grid;
  gap: 4px;
  min-width: 0;
  min-height: 42px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
}

.wf02-score-composition dt,
.wf02-search-context dt {
  color: var(--ink-muted);
  font-size: 8px;
}

.wf02-score-composition dd {
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--font-data);
  font-size: 9px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.wf02-search-context .wf02-evidence-record > div:last-child,
.wf02-score-composition dl > div:last-child {
  border-bottom: 0;
}

.wf02-empty-history {
  min-height: 28px;
}

.wf02-empty-detail {
  min-height: 1040px;
}

.wf02-history-list {
  display: grid;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wf02-history-section {
  background: var(--surface-soft);
  margin-inline: -16px;
  padding-inline: 16px;
}

.wf02-history-list li {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  padding: 7px 0;
  border-bottom: 1px solid var(--line-soft);
}

.wf02-history-list time {
  color: var(--ink-muted);
  font-family: var(--font-data);
  font-size: 8px;
}

.wf02-history-list li > span {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.wf02-history-list strong {
  font-size: 9px;
}

.wf02-history-list small {
  color: var(--ink-muted);
  font-size: 8px;
}

.wf02-decision-form .detail-section-head {
  margin-bottom: 1px;
}

.wf02-decision-form {
  border-bottom: 0;
}

.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.category-chips span {
  padding: 3px 6px;
  border: 1px solid #a7c2e9;
  border-radius: var(--radius-sm);
  background: var(--trace-soft);
  color: var(--trace);
  font-size: 9px;
  font-weight: 700;
}

.detail-record {
  gap: 11px;
}

.detail-record > header .eyebrow {
  margin-bottom: 3px;
}

.detail-header-actions {
  display: grid;
  justify-items: end;
  gap: 6px;
  min-width: 0;
}

.detail-header-actions .text-link {
  font-size: 10px;
  white-space: nowrap;
}

.detail-journey {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  list-style: none;
}

.detail-journey li {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 4px;
  min-width: 0;
  min-height: 50px;
  padding: 6px 5px;
  border-right: 1px solid var(--line);
  background: var(--surface-soft);
}

.detail-journey li:last-child {
  border-right: 0;
}

.detail-journey li > b {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink-muted);
  font-family: var(--font-data);
  font-size: 8px;
  font-weight: 700;
}

.detail-journey li > span {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.detail-journey strong,
.detail-journey small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-journey strong {
  color: var(--ink-soft);
  font-size: 8px;
}

.detail-journey small {
  color: var(--ink-muted);
  font-size: 8px;
}

.detail-journey li.done {
  background: var(--success-soft);
}

.detail-journey li.done > b {
  border-color: #9fc7af;
  color: var(--success);
}

.detail-journey li.active {
  background: var(--trace-soft);
}

.detail-journey li.active > b {
  border-color: #a7c2e9;
  color: var(--trace);
}

.detail-journey li.pending {
  background: var(--warning-soft);
}

.detail-journey li.pending > b {
  border-color: #e2ca96;
  color: var(--warning);
}

.detail-journey li.blocked {
  background: var(--danger-soft);
}

.detail-journey li.blocked > b {
  border-color: #dcaeb3;
  color: var(--danger);
}

.detail-qualification {
  gap: 8px;
}

.detail-company-intro {
  padding-top: 7px;
  border-top: 1px solid var(--line-soft);
}

.detail-context-facts {
  display: grid;
  min-width: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.detail-context-facts > div {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 7px 8px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

.detail-context-facts > div:last-child {
  border-bottom: 0;
}

.detail-context-facts dt {
  color: var(--ink-muted);
  font-size: 8px;
}

.detail-context-facts dd {
  min-width: 0;
  margin: 0;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 650;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.detail-context-facts .text-link {
  font-size: 9px;
}

.contact-review-form .detail-actions {
  padding-top: 2px;
}

.detail-product-fit .category-chips {
  margin-top: -1px;
}

.detail-link-row {
  padding-top: 6px;
  border-top: 1px solid var(--line-soft);
}

.detail-delivery-signals .detail-facts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-delivery-signals .detail-facts dd {
  font-size: 10px;
}

.reply-impact {
  display: grid;
  gap: 3px;
}

.reply-impact span {
  color: var(--ink-soft);
}

.wf05-detail {
  gap: 0;
  padding: 0;
}

.wf05-detail > header {
  padding: 16px 18px 14px;
}

.wf05-detail > header h2 {
  margin-top: 5px;
  font-size: 16px;
  line-height: 1.35;
}

.wf05-detail > header p {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 10px;
}

.wf05-detail .detail-header-actions > div {
  display: grid;
  align-items: center;
  justify-items: end;
  gap: 6px;
}

.wf05-detail-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 42px;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink-muted);
  font-size: 10px;
  font-weight: 650;
  line-height: 1;
}

.wf05-detail-close:hover {
  border-color: var(--steel);
  color: var(--ink);
}

.reply-overview,
.reply-decision {
  padding: 12px 18px;
}

.wf05-detail .detail-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  overflow: visible;
  border: 0;
  border-radius: 0;
}

.wf05-detail .detail-facts div {
  min-height: 48px;
  padding: 8px 10px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--surface-inset);
}

.wf05-detail .detail-facts dt {
  color: var(--ink-muted);
  font-size: 9px;
}

.wf05-detail .detail-facts dd {
  margin-top: 3px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}

.reply-message {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 13px 18px 14px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.reply-message > span,
.reply-review > span {
  color: var(--trace);
  font-size: 10px;
  font-weight: 800;
}

.reply-message h3 {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
}

.reply-message > pre {
  max-height: 260px;
  overflow: auto;
  color: var(--ink-soft);
  font-family: var(--font);
  font-size: 11px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.reply-source-context {
  width: fit-content;
  max-width: 100%;
}

.reply-source-context[open] {
  width: 100%;
}

.reply-source-context summary {
  width: fit-content;
  padding: 5px 8px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--trace);
  background: var(--surface);
  font-size: 10px;
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}

.reply-source-context summary::-webkit-details-marker {
  display: none;
}

.reply-source-placeholder {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink-muted);
  font-size: 10px;
  font-weight: 750;
}

.reply-source-context .detail-section-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 11px 0 7px;
}

.reply-source-context .detail-section-head em {
  color: var(--ink-muted);
  font-size: 9px;
  font-style: normal;
}

.reply-decision {
  display: grid;
  gap: 8px;
}

.wf05-detail .reply-impact {
  padding: 8px 10px;
  border: 1px solid #ead4a2;
  border-radius: var(--radius-sm);
  background: var(--warning-soft);
}

.wf05-detail .reply-impact strong,
.wf05-detail .reply-impact span {
  font-size: 10px;
  line-height: 1.45;
}

.reply-review {
  display: grid;
  gap: 8px;
  padding: 13px 18px 16px;
  border-top: 1px solid var(--line);
}

.reply-review .detail-actions {
  gap: 7px;
}

.reply-review .button {
  min-height: 32px;
  padding-inline: 11px;
  font-size: 10px;
}

.table-frame {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.data-table th,
.data-table td {
  min-width: 0;
  padding: 8px 9px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  font-size: 10px;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.data-table th:last-child,
.data-table td:last-child {
  border-right: 0;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table th {
  background: var(--surface-inset);
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 800;
}

.data-table tbody tr:hover {
  background: var(--trace-soft);
}

.data-table td strong {
  display: block;
  font-size: 10px;
}

.data-table td small {
  display: block;
  margin-top: 2px;
  color: var(--ink-muted);
  font-size: 9px;
}

.wf01-results th:nth-child(1) { width: 25%; }
.wf01-results th:nth-child(2) { width: 18%; }
.wf01-results th:nth-child(3) { width: 18%; }
.wf01-results th:nth-child(4) { width: 13%; }
.wf01-results th:nth-child(5) { width: 26%; }

.wf01-results td {
  overflow-wrap: anywhere;
  vertical-align: top;
  white-space: normal;
}

.wf01-company-cell {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.wf01-company-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.wf01-company-meta .status-pill {
  min-height: 22px;
  padding-inline: 7px;
}

.wf01-evidence-retry-button {
  min-height: 26px;
  padding: 3px 8px;
  font-size: 10px;
}

.wf01-cn-description {
  color: var(--ink-soft);
  line-height: 1.55;
}

.mini-round-track {
  display: grid;
  grid-template-columns: repeat(8, 18px);
  gap: 2px;
}

.mini-round-track b {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  color: var(--ink-muted);
  font-family: var(--font-data);
  font-size: 8px;
}

.mini-round-track b.success {
  border-color: #9fc7af;
  background: var(--success-soft);
  color: var(--success);
}

.mini-round-track b.running {
  border-color: #a7c2e9;
  background: var(--trace-soft);
  color: var(--trace);
}

.round-timeline {
  display: grid;
  min-width: 0;
}

.round-timeline article {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 68px;
  align-items: start;
  gap: 8px;
  min-width: 0;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
}

.round-timeline article:last-child {
  border-bottom: 0;
}

.round-timeline article > b {
  color: var(--trace);
  font-family: var(--font-data);
  font-size: 10px;
}

.round-timeline article > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.round-timeline strong,
.round-timeline small,
.round-timeline p {
  overflow-wrap: anywhere;
}

.round-timeline strong {
  font-size: 10px;
}

.round-timeline small,
.round-timeline p {
  color: var(--ink-muted);
  font-size: 9px;
}

.round-timeline .round-contract {
  display: block;
  margin-top: 1px;
  color: var(--ink-soft);
}

.report-form {
  padding-top: 3px;
}

.report-form label > span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.field-requirement {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 1px 5px;
  border: 1px solid color-mix(in srgb, var(--danger) 32%, transparent);
  border-radius: 4px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
}

.report-form [aria-invalid="true"] {
  border-color: var(--danger);
  background: var(--danger-soft);
}

.wf32-research-track {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  min-width: 0;
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.wf32-research-track > div {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 7px 9px;
  border-right: 1px solid var(--line);
  color: var(--ink-muted);
}

.wf32-research-track > div:last-child {
  border-right: 0;
}

.wf32-research-track b {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  font-family: var(--font-data);
  font-size: 8px;
}

.wf32-research-track span {
  overflow-wrap: anywhere;
  font-size: 9px;
  font-weight: 700;
}

.wf32-research-track > div.is-active {
  background: var(--trace-soft);
  color: var(--trace);
}

.wf32-research-track > div.is-active b {
  border-color: var(--trace);
}

.wf32-research-track > div.is-complete {
  background: var(--success-soft);
  color: var(--success);
}

.wf32-research-track > div.is-complete b {
  border-color: var(--success);
}

.wf32-detail {
  gap: 10px;
}

.wf32-insight-block,
.wf32-source-list {
  display: grid;
  gap: 5px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.wf32-insight-block h3,
.wf32-source-list h3 {
  color: var(--ink-soft);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.wf32-insight-block ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 17px;
}

.wf32-insight-block li {
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.55;
}

.wf32-source-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wf32-source-list h3 {
  grid-column: 1 / -1;
}

.wf32-source-list a,
.wf32-source-list span {
  overflow: hidden;
  color: var(--trace);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wf32-customs-block {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
}

.wf32-block-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.wf32-block-heading h3 {
  color: var(--ink);
  font-size: 11px;
}

.wf32-block-heading small {
  color: var(--ink-muted);
  font-size: 9px;
}

.wf32-customs-status {
  flex: 0 0 auto;
  padding: 3px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--surface-soft);
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 700;
}

.wf32-customs-status[data-status="has_rows"] {
  border-color: color-mix(in srgb, var(--success) 40%, var(--line));
  background: var(--success-soft);
  color: var(--success);
}

.wf32-customs-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
}

.wf32-customs-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  table-layout: fixed;
}

.wf32-customs-table th,
.wf32-customs-table td {
  padding: 6px 7px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
  text-align: left;
  vertical-align: top;
  font-size: 9px;
  line-height: 1.45;
}

.wf32-customs-table th {
  background: var(--surface-soft);
  color: var(--ink-muted);
  font-weight: 700;
}

.wf32-customs-table th:nth-child(1),
.wf32-customs-table th:nth-child(3),
.wf32-customs-table th:nth-child(5),
.wf32-customs-table th:nth-child(6) {
  width: 12%;
}

.wf32-customs-table[data-columns="5"] {
  min-width: 100%;
}

.wf32-customs-table[data-columns="5"] th:nth-child(1) { width: 16%; }
.wf32-customs-table[data-columns="5"] th:nth-child(2) { width: 36%; }
.wf32-customs-table[data-columns="5"] th:nth-child(3) { width: 18%; }
.wf32-customs-table[data-columns="5"] th:nth-child(4) { width: 12%; }
.wf32-customs-table[data-columns="5"] th:nth-child(5) { width: 18%; }

.wf32-customs-findings,
.wf32-customs-limitations ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 16px;
  color: var(--ink-soft);
  font-size: 9px;
  line-height: 1.5;
}

.wf32-customs-limitations {
  display: grid;
  gap: 4px;
  padding-top: 7px;
  border-top: 1px solid var(--line);
}

.wf32-customs-limitations b {
  color: var(--ink-muted);
  font-size: 9px;
}

.safety-strip {
  display: grid;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.safety-strip div {
  display: grid;
  gap: 2px;
  min-height: 47px;
  padding: 7px 9px;
  border-right: 1px solid var(--line);
}

.safety-strip div:last-child {
  border-right: 0;
}

.safety-strip span {
  color: var(--ink-muted);
  font-size: 9px;
}

.safety-strip strong {
  color: var(--warning);
  font-size: 11px;
}

.safety-strip strong.is-on {
  color: var(--success);
}

.workflow-command {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.segmented {
  display: inline-flex;
  align-items: center;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-inset);
}

.segmented button {
  min-height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
}

.segmented button.is-active {
  background: var(--surface);
  color: var(--trace);
}

.segmented b {
  margin-left: 4px;
  font-family: var(--font-data);
}

.workflow-lane {
  display: grid;
  gap: 12px;
  padding: 13px;
}

.workflow-lane > header h2 {
  font-size: 14px;
}

.workflow-lane > header span {
  color: var(--ink-muted);
  font-family: var(--font-data);
  font-size: 9px;
}

.lane-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--line);
}

.lane-stats div {
  display: grid;
  gap: 2px;
  padding: 7px 9px;
  border-right: 1px solid var(--line);
}

.lane-stats div:last-child {
  border-right: 0;
}

.lane-stats dt {
  color: var(--ink-muted);
  font-size: 9px;
}

.lane-stats dd {
  font-family: var(--font-data);
  font-size: 11px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.job-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 8px;
  min-width: 0;
}

.job-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--trace);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.job-card.error {
  border-left-color: var(--danger);
}

.job-card > header {
  justify-content: flex-start;
}

.job-card > header strong {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-card time {
  color: var(--ink-muted);
  font-size: 9px;
}

.job-card dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.job-card dl div {
  padding-top: 6px;
}

.job-card dt {
  color: var(--ink-muted);
  font-size: 8px;
}

.job-card dd {
  margin-top: 2px;
  font-family: var(--font-data);
  font-size: 9px;
  font-weight: 700;
}

.job-card > p {
  display: grid;
  gap: 2px;
  color: var(--danger);
  font-size: 9px;
  overflow-wrap: anywhere;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  max-width: 360px;
  padding: 11px 14px;
  border: 1px solid #9fc7af;
  border-radius: var(--radius);
  background: var(--success-soft);
  color: var(--success);
  font-size: 12px;
  font-weight: 700;
}

.toast.error {
  border-color: #dda5aa;
  background: var(--danger-soft);
  color: var(--danger);
}

html.login-page {
  min-width: 0;
  background: oklch(21% 0.052 257);
}

.login-body {
  min-width: 0;
  overflow: hidden;
  background: oklch(21% 0.052 257);
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(480px, 0.47fr) minmax(560px, 0.53fr);
  min-height: 100vh;
  min-height: 100svh;
}

.login-brand {
  --safe-scale: 1;
  --safe-rotate-x: -7deg;
  --safe-rotate-y: -17deg;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto minmax(390px, 1fr) auto;
  min-width: 0;
  overflow: hidden;
  padding: 38px 48px 42px;
  background:
    radial-gradient(circle at 58% 43%, oklch(37% 0.09 252 / 0.42), transparent 35%),
    linear-gradient(145deg, oklch(25% 0.062 257), oklch(18% 0.043 257) 68%);
  color: oklch(97% 0.006 255);
}

.login-brand::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  background-image:
    linear-gradient(oklch(75% 0.08 254 / 0.065) 1px, transparent 1px),
    linear-gradient(90deg, oklch(75% 0.08 254 / 0.065) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(135deg, oklch(0% 0 0) 0%, transparent 76%);
  content: "";
}

.login-brand::after {
  position: absolute;
  z-index: -1;
  right: -19%;
  bottom: -26%;
  width: 76%;
  aspect-ratio: 1;
  border: 1px solid oklch(73% 0.12 251 / 0.16);
  border-radius: 50%;
  box-shadow:
    0 0 0 70px oklch(59% 0.13 254 / 0.027),
    0 0 0 140px oklch(59% 0.13 254 / 0.018);
  content: "";
}

.login-brand-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
}

.company-logo {
  display: block;
  width: 210px;
  height: auto;
}

.company-logo-light {
  filter: brightness(0) invert(1);
  opacity: 0.96;
}

.brand-product {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.brand-product span {
  color: oklch(75% 0.14 250);
  font-family: var(--font-data);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.brand-product strong {
  color: oklch(95% 0.012 250);
  font-size: 1rem;
  font-weight: 720;
  letter-spacing: 0.06em;
}

.safe-stage {
  position: relative;
  z-index: 2;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 420px;
  perspective: 1100px;
  perspective-origin: 52% 48%;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.safe-stage::before {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  width: 480px;
  height: 560px;
  border-radius: 44%;
  background:
    radial-gradient(ellipse, oklch(67% 0.14 250 / 0.25) 0%, oklch(55% 0.13 254 / 0.13) 42%, transparent 72%);
  filter: blur(24px);
  pointer-events: none;
  content: "";
  animation: safe-aura-breathe 4.2s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

@keyframes safe-aura-breathe {
  0%, 100% {
    opacity: 0.42;
    transform: translate(-50%, -50%) scale(0.92);
  }

  50% {
    opacity: 0.78;
    transform: translate(-50%, -50%) scale(1.07);
  }
}

.safe-stage:active,
.safe-stage.is-dragging {
  cursor: grabbing;
}

.safe-stage:focus-visible {
  outline: 2px solid oklch(76% 0.13 250);
  outline-offset: 8px;
  border-radius: 24px;
}

.safe-floor {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 8%;
  width: 370px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(ellipse, oklch(7% 0.03 257 / 0.58), transparent 68%);
  filter: blur(7px);
  transform: translateX(-50%);
}

.safe-object {
  --safe-width: 320px;
  --safe-height: 398px;
  --safe-depth: 180px;
  position: relative;
  z-index: 2;
  width: var(--safe-width);
  height: var(--safe-height);
  transform: scale(var(--safe-scale)) rotateX(var(--safe-rotate-x)) rotateY(var(--safe-rotate-y));
  transform-style: preserve-3d;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.safe-stage.is-dragging .safe-object {
  transition-duration: 0ms;
}

.safe-face {
  position: absolute;
  border: 1px solid oklch(71% 0.055 249 / 0.28);
  background: oklch(31% 0.055 253);
  backface-visibility: hidden;
}

.safe-front,
.safe-back {
  inset: 0;
  border-radius: 26px;
}

.safe-front {
  overflow: visible;
  background:
    linear-gradient(145deg, oklch(48% 0.065 251), oklch(30% 0.052 254) 42%, oklch(24% 0.046 256));
  box-shadow:
    inset 1px 1px 0 oklch(91% 0.025 247 / 0.28),
    inset -10px -13px 24px oklch(12% 0.038 257 / 0.34),
    28px 38px 58px oklch(8% 0.035 257 / 0.4);
  transform: translateZ(calc(var(--safe-depth) / 2));
}

.safe-front::before {
  position: absolute;
  inset: 10px;
  border: 1px solid oklch(81% 0.048 249 / 0.2);
  border-radius: 20px;
  box-shadow: inset 0 0 0 5px oklch(18% 0.04 257 / 0.24);
  content: "";
}

.safe-back {
  background: oklch(22% 0.043 256);
  transform: rotateY(180deg) translateZ(calc(var(--safe-depth) / 2));
}

.safe-right,
.safe-left {
  top: 0;
  left: calc((var(--safe-width) - var(--safe-depth)) / 2);
  width: var(--safe-depth);
  height: var(--safe-height);
  border-radius: 22px;
  background:
    linear-gradient(90deg, oklch(42% 0.06 252), oklch(28% 0.05 255) 46%, oklch(19% 0.038 258));
  box-shadow:
    inset 12px 0 22px oklch(71% 0.045 249 / 0.08),
    inset -18px 0 28px oklch(8% 0.028 258 / 0.3);
}

.safe-right {
  transform: rotateY(90deg) translateZ(calc(var(--safe-width) / 2));
}

.safe-left {
  transform: rotateY(-90deg) translateZ(calc(var(--safe-width) / 2));
}

.safe-right::before,
.safe-left::before {
  position: absolute;
  inset: 22px 18px;
  border: 1px solid oklch(72% 0.045 249 / 0.13);
  border-radius: 15px;
  box-shadow: inset 0 0 0 6px oklch(14% 0.034 258 / 0.14);
  content: "";
}

.safe-top,
.safe-bottom {
  top: calc((var(--safe-height) - var(--safe-depth)) / 2);
  left: 0;
  width: var(--safe-width);
  height: var(--safe-depth);
  border-radius: 22px;
  background:
    linear-gradient(180deg, oklch(51% 0.064 250), oklch(31% 0.052 254) 55%, oklch(22% 0.042 257));
  box-shadow: inset 0 14px 26px oklch(86% 0.03 248 / 0.08);
}

.safe-top {
  transform: rotateX(90deg) translateZ(calc(var(--safe-height) / 2));
}

.safe-bottom {
  transform: rotateX(-90deg) translateZ(calc(var(--safe-height) / 2));
}

.safe-door {
  position: absolute;
  inset: 24px 22px 25px;
  border: 1px solid oklch(75% 0.05 248 / 0.36);
  border-radius: 19px;
  background:
    radial-gradient(circle at 40% 34%, oklch(46% 0.068 250 / 0.5), transparent 35%),
    linear-gradient(150deg, oklch(39% 0.063 252), oklch(25% 0.047 256) 74%);
  box-shadow:
    inset 0 0 0 7px oklch(17% 0.038 257 / 0.42),
    inset 2px 2px 0 oklch(89% 0.032 247 / 0.18),
    0 8px 15px oklch(9% 0.032 257 / 0.3);
  transform: translateZ(7px);
  transform-style: preserve-3d;
}

.safe-maker {
  position: absolute;
  top: 26px;
  left: 27px;
  display: grid;
  gap: 2px;
}

.safe-maker span {
  color: oklch(91% 0.026 249);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.safe-maker small,
.safe-serial {
  color: oklch(65% 0.052 250);
  font-family: var(--font-data);
  font-size: 0.42rem;
  letter-spacing: 0.12em;
}

.safe-display {
  position: absolute;
  top: 71px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 86px;
  min-height: 27px;
  padding: 0 10px;
  border: 1px solid oklch(68% 0.057 250 / 0.32);
  border-radius: 5px;
  background: oklch(14% 0.035 260 / 0.86);
  color: oklch(76% 0.16 152);
  font-family: var(--font-data);
  font-size: 0.5rem;
  letter-spacing: 0.1em;
  transform: translateX(-50%) translateZ(4px);
}

.safe-display i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: oklch(73% 0.17 151);
  box-shadow: 0 0 9px oklch(73% 0.17 151 / 0.7);
}

.safe-wheel {
  position: absolute;
  top: 123px;
  left: 50%;
  width: 154px;
  height: 154px;
  border: 13px solid oklch(70% 0.046 248);
  border-radius: 50%;
  background:
    radial-gradient(circle, oklch(38% 0.056 252) 0 28%, transparent 29%),
    oklch(22% 0.043 257 / 0.82);
  box-shadow:
    inset 0 0 0 4px oklch(24% 0.04 256),
    inset 0 0 18px oklch(8% 0.025 257 / 0.52),
    0 0 0 4px oklch(19% 0.039 257),
    0 12px 20px oklch(8% 0.03 257 / 0.45);
  transform: translateX(-50%) translateZ(12px);
  transform-style: preserve-3d;
}

.safe-wheel::before {
  position: absolute;
  inset: 12px;
  border: 2px solid oklch(78% 0.045 247 / 0.38);
  border-radius: 50%;
  content: "";
}

.safe-wheel-hub {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: 33px;
  height: 33px;
  border: 4px solid oklch(82% 0.04 247);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, oklch(86% 0.035 247), oklch(46% 0.05 251));
  box-shadow: 0 5px 10px oklch(7% 0.028 257 / 0.45);
  transform: translate(-50%, -50%) translateZ(8px);
}

.safe-wheel-spoke {
  position: absolute;
  z-index: 2;
  top: calc(50% - 5px);
  left: 50%;
  width: 55px;
  height: 10px;
  border: 1px solid oklch(85% 0.035 247 / 0.55);
  border-radius: 999px;
  background: linear-gradient(oklch(79% 0.038 247), oklch(45% 0.047 251));
  box-shadow: 0 3px 7px oklch(7% 0.025 257 / 0.4);
  transform-origin: 0 50%;
}

.safe-wheel-spoke-a { transform: rotate(0deg); }
.safe-wheel-spoke-b { transform: rotate(120deg); }
.safe-wheel-spoke-c { transform: rotate(240deg); }

.safe-wheel-tick {
  position: absolute;
  top: -8px;
  left: calc(50% - 1px);
  width: 2px;
  height: 9px;
  border-radius: 999px;
  background: oklch(94% 0.018 248 / 0.84);
  transform-origin: 1px 85px;
}

.safe-wheel-tick-a { transform: rotate(0deg); }
.safe-wheel-tick-b { transform: rotate(120deg); }
.safe-wheel-tick-c { transform: rotate(240deg); }

.safe-serial {
  position: absolute;
  right: 24px;
  bottom: 20px;
}

.login-brand-copy {
  position: relative;
  z-index: 3;
  display: grid;
  justify-items: start;
  padding-top: 10px;
}

.tenant-login-visual {
  align-self: center;
  justify-self: center;
  width: min(88%, 680px);
  max-height: min(58vh, 620px);
  object-fit: contain;
  filter: drop-shadow(0 24px 32px oklch(8% 0.02 255 / 0.38));
}

.tenant-login-visual[hidden],
.safe-stage[hidden] {
  display: none;
}

.brand-kicker {
  margin-bottom: 9px;
  color: oklch(70% 0.085 250);
  font-family: var(--font-data);
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.login-brand-copy h2 {
  color: oklch(97% 0.008 250);
  font-size: 1.78rem;
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: 0;
  white-space: pre-line;
}

.login-entry {
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 48px 64px;
  background:
    radial-gradient(circle at 55% 48%, oklch(99% 0.004 254), transparent 42%),
    oklch(97% 0.009 255);
}

.login-entry-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(470px, 100%);
  min-height: min(660px, calc(100svh - 96px));
}

.login-form {
  display: grid;
  gap: 18px;
  width: 100%;
  padding: 42px 44px 34px;
  border: 1px solid oklch(88% 0.021 253);
  border-radius: 22px;
  background: oklch(99.2% 0.004 255);
  box-shadow:
    0 26px 70px oklch(31% 0.055 256 / 0.13),
    0 2px 7px oklch(31% 0.055 256 / 0.04);
}

.login-heading {
  display: grid;
  gap: 7px;
  margin-bottom: 13px;
}

.login-heading .section-code {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  color: oklch(56% 0.19 257);
  font-family: var(--font-data);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.09em;
}

.login-heading .section-code i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: oklch(61% 0.2 256);
  box-shadow: 0 0 0 4px oklch(91% 0.047 256);
}

.login-heading h1 {
  color: oklch(23% 0.052 257);
  font-size: 1.78rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.login-heading p {
  color: oklch(54% 0.035 255);
  font-size: 0.83rem;
}

.login-field {
  display: grid;
  gap: 7px;
}

.login-field > label {
  color: oklch(35% 0.042 256);
  font-size: 0.82rem;
  font-weight: 700;
}

.login-input-shell {
  position: relative;
  display: grid;
  grid-template-columns: 21px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 54px;
  padding: 0 14px;
  border: 1px solid oklch(82% 0.033 254);
  border-radius: 10px;
  background: oklch(97% 0.011 255);
  color: oklch(58% 0.04 255);
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.login-input-shell:hover {
  border-color: oklch(69% 0.05 254);
}

.login-input-shell:focus-within {
  border-color: oklch(58% 0.19 257);
  background: oklch(99.5% 0.003 255);
  box-shadow: 0 0 0 4px oklch(91% 0.047 256 / 0.78);
}

.login-input-shell > svg,
.login-security-note svg,
.password-toggle svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.login-input-shell input {
  min-height: 52px;
  padding: 0 10px;
  border: 0;
  outline: 0;
  background: transparent;
  color: oklch(24% 0.045 257);
  font-size: 0.92rem;
  box-shadow: none;
}

.login-input-shell input::placeholder {
  color: oklch(69% 0.028 254);
}

.login-input-shell input:focus,
.login-input-shell input:hover {
  border: 0;
  outline: 0;
  background: transparent;
}

.login-input-shell:has(input[aria-invalid="true"]) {
  border-color: oklch(58% 0.2 25);
  background: oklch(97% 0.026 22);
  box-shadow: 0 0 0 4px oklch(92% 0.054 22 / 0.62);
}

.password-toggle {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: oklch(53% 0.038 255);
}

.password-toggle:hover {
  background: oklch(92% 0.026 255);
  color: oklch(36% 0.052 256);
}

.password-toggle .eye-closed,
.password-toggle[aria-pressed="true"] .eye-open {
  display: none;
}

.password-toggle[aria-pressed="true"] .eye-closed {
  display: block;
}

.form-error {
  min-height: 19px;
  margin: -2px 0 -3px;
  color: oklch(52% 0.2 25);
  font-size: 0.72rem;
  font-weight: 650;
}

.button-wide {
  position: relative;
  width: 100%;
  min-height: 54px;
  margin-top: 3px;
  overflow: hidden;
  border-color: oklch(56% 0.2 257);
  border-radius: 10px;
  background: oklch(56% 0.2 257);
  color: oklch(98% 0.004 255);
  font-size: 0.92rem;
  transition:
    transform 160ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 160ms ease,
    background-color 160ms ease;
}

.button-wide:hover:not(:disabled) {
  border-color: oklch(49% 0.19 257);
  background: oklch(49% 0.19 257);
  box-shadow: 0 12px 24px oklch(48% 0.18 257 / 0.23);
  transform: translateY(-1px);
}

.button-wide:active:not(:disabled) {
  box-shadow: 0 5px 12px oklch(48% 0.18 257 / 0.18);
  transform: translateY(0);
}

.login-submit-arrow {
  position: absolute;
  right: 19px;
  font-size: 1.15rem;
  font-weight: 400;
  transition: transform 160ms cubic-bezier(0.22, 1, 0.36, 1);
}

.button-wide:hover:not(:disabled) .login-submit-arrow {
  transform: translateX(3px);
}

.login-submit-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid oklch(98% 0.004 255 / 0.38);
  border-top-color: oklch(98% 0.004 255);
  border-radius: 50%;
  animation: login-spin 700ms linear infinite;
}

.button-wide.is-loading .login-submit-label,
.button-wide.is-loading .login-submit-arrow {
  visibility: hidden;
}

.button-wide.is-loading .login-submit-spinner {
  position: absolute;
  display: block;
}

@keyframes login-spin {
  to { transform: rotate(360deg); }
}

.login-security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 1px;
  color: oklch(57% 0.03 255);
  font-size: 0.68rem;
}

.login-security-note svg {
  width: 16px;
  height: 16px;
  color: oklch(51% 0.12 162);
}

.login-footer {
  margin-top: 19px;
  color: oklch(65% 0.025 255);
  font-family: var(--font-data);
  font-size: 0.57rem;
  letter-spacing: 0.1em;
  text-align: center;
}

.login-footer span {
  padding: 0 4px;
  color: oklch(75% 0.022 255);
}

@media (min-width: 1700px) {
  .login-brand {
    --safe-scale: 1.2;
    grid-template-rows: auto minmax(520px, 1fr) auto;
    padding: 42px 64px 48px;
  }

  .company-logo {
    width: 240px;
  }

  .brand-product span {
    font-size: 0.78rem;
  }

  .brand-product strong {
    font-size: 1.14rem;
  }

  .safe-stage {
    min-height: 540px;
  }

  .safe-stage::before {
    width: 570px;
    height: 650px;
  }

  .safe-floor {
    width: 430px;
    height: 84px;
  }

  .login-brand-copy h2 {
    font-size: 2rem;
  }

  .login-entry-inner {
    width: min(540px, 100%);
    min-height: min(720px, calc(100svh - 110px));
  }

  .login-form {
    gap: 20px;
    padding: 50px 50px 40px;
  }

  .login-heading {
    margin-bottom: 16px;
  }

  .login-heading h1 {
    font-size: 2rem;
  }

  .login-input-shell {
    min-height: 58px;
  }

  .login-input-shell input {
    min-height: 56px;
  }

  .button-wide {
    min-height: 58px;
  }
}

@media (max-width: 1180px) {
  .login-shell {
    grid-template-columns: minmax(420px, 0.44fr) minmax(520px, 0.56fr);
  }

  .login-brand {
    --safe-scale: 0.88;
    padding-inline: 36px;
  }

  .login-entry {
    padding-inline: 42px;
  }
}

@media (max-width: 900px) {
  .login-body {
    overflow: auto;
  }

  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-brand {
    --safe-scale: 0.5;
    grid-template-rows: auto 1fr;
    min-height: 245px;
    padding: 26px 32px;
  }

  .safe-stage {
    position: absolute;
    right: -20px;
    bottom: -72px;
    width: 420px;
    min-height: 420px;
    opacity: 0.78;
  }

  .safe-floor {
    bottom: 22%;
  }

  .login-brand-copy {
    align-self: end;
    max-width: 330px;
    padding-bottom: 8px;
  }

  .brand-kicker {
    display: none;
  }

  .login-brand-copy h2 {
    font-size: 1.4rem;
  }

  .login-entry {
    min-height: calc(100svh - 245px);
    padding: 36px 28px 42px;
  }

  .login-entry-inner {
    min-height: 0;
  }
}

@media (max-width: 560px) {
  .login-brand {
    --safe-scale: 0.38;
    min-height: 190px;
    padding: 22px 21px;
  }

  .login-brand::after,
  .login-brand-copy {
    display: none;
  }

  .safe-stage {
    right: -94px;
    bottom: -105px;
    opacity: 0.62;
  }

  .login-entry {
    min-height: calc(100svh - 190px);
    padding: 24px 16px 34px;
  }

  .login-form {
    gap: 16px;
    padding: 30px 22px 26px;
    border-radius: 18px;
  }

  .login-heading {
    margin-bottom: 8px;
  }
}



/* Direction C operational workspace. The sidebar navigation remains unchanged. */
body:not(.login-body) .page {
  gap: 0;
  padding: 0 4px 24px;
  background: #f5f6f7;
}

body:not(.login-body) .page-head {
  min-height: 44px;
  padding: 0 16px;
  border-bottom: 1px solid #dcdfe3;
  background: #ffffff;
}

body:not(.login-body) .page-head h1 {
  font-size: 14px;
}

body:not(.login-body) .page-head h1 span {
  margin-right: 8px;
  color: #2a62ee;
  font-size: 12px;
}

body:not(.login-body) .process-rail {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  min-height: 56px;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid #dcdfe3;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

body:not(.login-body) .process-step {
  position: relative;
  min-height: 56px;
  border: 0;
  border-right: 1px solid #eceef0;
  border-radius: 0;
  background: #ffffff;
  color: #777d84;
}

body:not(.login-body) .process-step:last-child {
  border-right: 0;
}

body:not(.login-body) .process-step:hover,
body:not(.login-body) .process-step.is-current {
  background: #ffffff;
}

body:not(.login-body) .process-step.is-current::after {
  right: 18%;
  bottom: 0;
  left: 18%;
  height: 3px;
  border-radius: 0;
  background: #2a62ee;
}

body:not(.login-body) .process-step.is-current b,
body:not(.login-body) .process-step.is-current span {
  color: #2a62ee;
}

body:not(.login-body) .filter-toolbar {
  min-height: 58px;
  padding: 9px 16px;
  border: 0;
  border-bottom: 1px solid #dcdfe3;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

body:not(.login-body) .filter-toolbar input,
body:not(.login-body) .filter-toolbar select,
body:not(.login-body) .filter-toolbar .button,
body:not(.login-body) .filter-toolbar .icon-button {
  min-height: 34px;
}

body:not(.login-body) .section-band,
body:not(.login-body) .config-workbench {
  padding: 10px 16px;
  border: 0;
  border-bottom: 1px solid #dcdfe3;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

body:not(.login-body) .section-band .section-head,
body:not(.login-body) .config-workbench .section-head {
  min-height: 32px;
}

body:not(.login-body) .section-head h2 {
  font-size: 13px;
}

body:not(.login-body) .metric-strip,
body:not(.login-body) .status-strip {
  border: 0;
  border-bottom: 1px solid #dcdfe3;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

body:not(.login-body) .metric,
body:not(.login-body) .status-summary {
  min-height: 48px;
  padding-block: 6px;
  border-color: #eceef0;
}

body:not(.login-body) .status-summary.is-active {
  background: #ffffff;
  box-shadow: inset 0 -3px 0 #2a62ee;
}

body:not(.login-body) .queue-board,
body:not(.login-body) .wf02-page .queue-board,
body:not(.login-body) .wf03-page .queue-board,
body:not(.login-body) .wf05-page .queue-board,
body:not(.login-body) .wf07-page .queue-board,
body:not(.login-body) .wf08-page .queue-board,
body:not(.login-body) .wf09-page .queue-board {
  grid-template-columns: minmax(520px, 1.05fr) minmax(560px, 0.95fr);
  gap: 0;
  margin-top: 0;
  border: 1px solid #dcdfe3;
  border-top: 0;
  background: #ffffff;
}

body:not(.login-body) .queue-pane,
body:not(.login-body) .detail-pane {
  border: 0;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

body:not(.login-body) .queue-pane {
  border-right: 1px solid #dcdfe3;
}

body:not(.login-body) .queue-pane > .section-head {
  min-height: 44px;
  padding: 8px 12px;
  border-bottom: 1px solid #dcdfe3;
  background: #f2f2f3;
}

body:not(.login-body) .queue-entry {
  border-bottom-color: #eceef0;
}

body:not(.login-body) .queue-row {
  min-height: 48px;
  padding: 6px 10px 6px 6px;
}

body:not(.login-body) .queue-row strong,
body:not(.login-body) .queue-row b {
  font-size: 11px;
}

body:not(.login-body) .pagination {
  min-height: 44px;
  border-top: 1px solid #dcdfe3;
  background: #ffffff;
}

body:not(.login-body) .pagination .button {
  min-height: 30px;
}

body:not(.login-body) .detail-pane {
  top: 64px;
  max-height: calc(100vh - 80px);
}

body:not(.login-body) .detail-content,
body:not(.login-body) .detail-empty {
  gap: 0;
  padding: 0;
}

body:not(.login-body) .detail-content > header,
body:not(.login-body) .detail-empty > div:first-child {
  min-height: 62px;
  padding: 12px 14px;
  border-bottom: 1px solid #dcdfe3;
}

body:not(.login-body) .detail-content h2,
body:not(.login-body) .detail-empty h2 {
  font-size: 15px;
}

body:not(.login-body) .detail-content > .detail-facts,
body:not(.login-body) .detail-empty > .detail-facts,
body:not(.login-body) .wf02-detail > .wf02-decision-track,
body:not(.login-body) .wf02-detail > .wf02-overview-grid,
body:not(.login-body) .wf03-detail > .detail-journey,
body:not(.login-body) .wf03-detail > .detail-facts,
body:not(.login-body) .wf07-detail > .detail-facts {
  margin: 10px 14px;
}

body:not(.login-body) .detail-facts {
  border: 0;
  border-radius: 0;
}

body:not(.login-body) .detail-facts div {
  min-height: 42px;
  padding: 6px 9px;
  border-color: #ffffff;
  background: #f1f2f3;
}

body:not(.login-body) .detail-section,
body:not(.login-body) .detail-form,
body:not(.login-body) .wf07-signal-section,
body:not(.login-body) .wf07-market-editor,
body:not(.login-body) .wf03-detail .detail-section,
body:not(.login-body) .wf03-detail .detail-form,
body:not(.login-body) .wf03-contact-profile-facts {
  gap: 7px;
  margin: 0;
  padding: 10px 14px 12px;
  border-top: 1px solid #dcdfe3;
}

body:not(.login-body) .detail-section-head {
  min-height: 24px;
  margin: -10px -14px 4px;
  padding: 5px 14px;
  background: #f2f2f3;
  color: #181a1d;
  font-size: 10px;
  font-weight: 700;
}

body:not(.login-body) .wf02-recommendation .detail-section-head > span:first-child,
body:not(.login-body) .wf02-score-composition .detail-section-head > span:first-child,
body:not(.login-body) .wf02-evidence-section .detail-section-head > span:first-child,
body:not(.login-body) .wf02-search-context .detail-section-head > span:first-child,
body:not(.login-body) .wf03-detail .detail-section-head,
body:not(.login-body) .wf07-market-editor .detail-section-head,
body:not(.login-body) .wf07-detail .detail-section-head {
  color: #181a1d;
}

body:not(.login-body) .wf07-product-bridge {
  background: #ffffff;
}

body:not(.login-body) .wf07-product-bridge dl > div {
  border-color: #dcdfe3;
  border-radius: 0;
  background: #ffffff;
}

body:not(.login-body) .detail-content > .detail-form:last-child .detail-actions,
body:not(.login-body) .reply-review,
body:not(.login-body) .event-detail-actions {
  position: sticky;
  bottom: 0;
  z-index: 4;
  min-height: 54px;
  margin: 8px -14px -12px;
  padding: 9px 14px;
  border-top: 1px solid #dcdfe3;
  background: rgba(255, 255, 255, 0.98);
}

body:not(.login-body) .wf02-bulk-bar,
body:not(.login-body) .wf07-bulk-bar,
body:not(.login-body) .wf32-bulk-bar {
  bottom: 0;
  min-height: 54px;
  margin: 0;
  border: 1px solid #dcdfe3;
  border-top: 0;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

body:not(.login-body) .button,
body:not(.login-body) .icon-button {
  min-height: 32px;
}

@media (max-width: 1180px) and (min-width: 901px) {
  body:not(.login-body) .queue-board,
  body:not(.login-body) .wf02-page .queue-board,
  body:not(.login-body) .wf03-page .queue-board,
  body:not(.login-body) .wf05-page .queue-board,
  body:not(.login-body) .wf07-page .queue-board,
  body:not(.login-body) .wf08-page .queue-board,
  body:not(.login-body) .wf09-page .queue-board {
    grid-template-columns: minmax(390px, 0.85fr) minmax(500px, 1.15fr);
  }
}

@media (max-width: 900px) {
  body:not(.login-body) .page {
    padding: 0 10px 24px;
  }

  body:not(.login-body) .page-head,
  body:not(.login-body) .process-rail,
  body:not(.login-body) .filter-toolbar,
  body:not(.login-body) .section-band,
  body:not(.login-body) .config-workbench,
  body:not(.login-body) .metric-strip,
  body:not(.login-body) .status-strip {
    margin-inline: -10px;
  }

  body:not(.login-body) .process-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body:not(.login-body) .process-step {
    min-height: 44px;
  }

  body:not(.login-body) .queue-board,
  body:not(.login-body) .wf02-page .queue-board,
  body:not(.login-body) .wf03-page .queue-board,
  body:not(.login-body) .wf05-page .queue-board,
  body:not(.login-body) .wf07-page .queue-board,
  body:not(.login-body) .wf08-page .queue-board,
  body:not(.login-body) .wf09-page .queue-board {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 10px;
    border-top: 1px solid #dcdfe3;
  }

  body:not(.login-body) .queue-pane {
    border-right: 0;
    border-bottom: 1px solid #dcdfe3;
  }
}

/* Direction C visual token definition. */
body:not(.login-body) {
  --powder: #222526;
  --powder-2: #1d2021;
  --steel: #60666d;
  --steel-soft: #858b92;
  --canvas: #f5f6f7;
  --surface: #ffffff;
  --surface-soft: #f8f8f9;
  --surface-inset: #f1f2f3;
  --ink: #181a1d;
  --ink-soft: #484d53;
  --ink-muted: #777d84;
  --line: #dcdfe3;
  --line-soft: #eceef0;
  --line-strong: #c5c9ce;
  --trace: #2a62ee;
  --trace-soft: #edf2ff;
  --success: #149447;
  --success-soft: #e9f7ee;
  --warning: #d98a0c;
  --warning-soft: #fff4df;
  --danger: #df383e;
  --danger-soft: #fff0f0;
  --radius-sm: 4px;
  --radius: 4px;
  --radius-lg: 5px;
  --font: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei UI", "Segoe UI", Arial, sans-serif;
  --font-data: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei UI", "Segoe UI", Arial, sans-serif;
  --shadow-sm: none;
  --shadow-blue: none;
  background: #f5f6f7;
  color: #181a1d;
  font-family: var(--font);
  font-weight: 400;
}

body:not(.login-body) .sidebar {
  border-right-color: #383c40;
  background: #222526;
  color: #ffffff;
  box-shadow: none;
}

body:not(.login-body) .brand {
  border-bottom-color: #dfe3e8;
  background: #ffffff;
}

body:not(.login-body) .sidebar-brand-logo {
  display: block;
  max-width: 100%;
  max-height: 49px;
  object-fit: contain;
  object-position: center;
  filter: none;
}

body:not(.login-body) .brand-lock {
  border-color: #f2f3f4;
  background: #f2f3f4;
  box-shadow: none;
}

body:not(.login-body) .brand-lock::before {
  background: #242729;
}

body:not(.login-body) .brand-copy strong,
body:not(.login-body) .sidebar-user-primary strong {
  color: #ffffff;
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: 0;
}

body:not(.login-body) .sidebar-user-primary {
  border-color: #3b3f42;
  background: #292c2e;
}

body:not(.login-body) .sidebar-user-primary .user-initial {
  border-color: #505559;
  background: #363a3d;
  color: #ffffff;
}

body:not(.login-body) .sidebar-user-primary small,
body:not(.login-body) .nav-section h2 {
  color: #8f969c;
}

body:not(.login-body) .nav-link {
  color: #d0d4d7;
  font-family: var(--font);
  font-weight: 450;
}

body:not(.login-body) .nav-link:hover {
  background: #303437;
  color: #ffffff;
}

body:not(.login-body) .nav-link.is-active {
  background: #2a62ee;
  color: #ffffff;
  box-shadow: none;
}

body:not(.login-body) .nav-code,
body:not(.login-body) .nav-link.is-active .nav-code {
  color: inherit;
  font-family: var(--font);
  font-weight: 650;
}

body:not(.login-body) .workspace,
body:not(.login-body) .main {
  background: #f5f6f7;
}

body:not(.login-body) .topbar {
  border-bottom-color: #dcdfe3;
  background: #ffffff;
  backdrop-filter: none;
}

body:not(.login-body) .topbar-title strong,
body:not(.login-body) .page-head h1 {
  color: #181a1d;
  font-family: var(--font);
  font-weight: 650;
  letter-spacing: 0;
}

body:not(.login-body) .topbar-title span,
body:not(.login-body) .owner-select > span,
body:not(.login-body) .page-head h1 span,
body:not(.login-body) .section-head span,
body:not(.login-body) .detail-section-head em,
body:not(.login-body) .muted,
body:not(.login-body) small {
  color: #777d84;
  font-family: var(--font);
}

body:not(.login-body) .section-head h2,
body:not(.login-body) .detail-content h2,
body:not(.login-body) .detail-empty h2,
body:not(.login-body) .workflow-lane h2,
body:not(.login-body) .job-card h3 {
  color: #202327;
  font-family: var(--font);
  font-weight: 650;
  letter-spacing: 0;
}

body:not(.login-body) .section-band,
body:not(.login-body) .config-workbench,
body:not(.login-body) .queue-pane,
body:not(.login-body) .detail-pane,
body:not(.login-body) .workflow-lane,
body:not(.login-body) .job-card,
body:not(.login-body) .metric-strip,
body:not(.login-body) .status-strip,
body:not(.login-body) .table-frame {
  border-color: #dcdfe3;
  border-radius: 4px;
  background: #ffffff;
  box-shadow: none;
}

body:not(.login-body) .detail-section-head,
body:not(.login-body) .queue-pane > .section-head,
body:not(.login-body) .workflow-module-head,
body:not(.login-body) .table-frame thead {
  border-color: #dcdfe3;
  background: #f2f2f3;
}

body:not(.login-body) input,
body:not(.login-body) select,
body:not(.login-body) textarea {
  border-color: #d3d6da;
  border-radius: 4px;
  background: #ffffff;
  color: #202327;
  font-family: var(--font);
}

body:not(.login-body) input:focus,
body:not(.login-body) select:focus,
body:not(.login-body) textarea:focus {
  border-color: #2a62ee;
  box-shadow: 0 0 0 3px rgba(42, 98, 238, 0.12);
  outline: 0;
}

body:not(.login-body) .button,
body:not(.login-body) .icon-button {
  border-color: #cfd3d7;
  border-radius: 4px;
  background: #ffffff;
  color: #34383d;
  font-family: var(--font);
  font-weight: 550;
  box-shadow: none;
}

body:not(.login-body) .button-primary,
body:not(.login-body) .button-external {
  border-color: #2a62ee;
  background: #2a62ee;
  color: #ffffff;
  box-shadow: none;
}

body:not(.login-body) .button-primary:hover:not(:disabled),
body:not(.login-body) .button-external:hover:not(:disabled) {
  border-color: #1f52d8;
  background: #1f52d8;
  color: #ffffff;
  box-shadow: none;
}

body:not(.login-body) .button-danger {
  border-color: #df383e;
  background: #df383e;
  color: #ffffff;
}

body:not(.login-body) .status-summary:hover,
body:not(.login-body) .status-summary.is-active,
body:not(.login-body) .queue-entry:hover,
body:not(.login-body) .queue-entry.is-active {
  background: #edf2ff;
  color: #2a62ee;
}

body:not(.login-body) .queue-entry.is-active {
  box-shadow: inset 3px 0 0 #2a62ee;
}

/* End Direction C visual token definition. */

/* Direction C global visual theme. Layout and workflow structure stay unchanged. */
body:not(.login-body) {
  --powder: #222526;
  --powder-2: #1d2021;
  --steel: #60666d;
  --steel-soft: #858b92;
  --canvas: #f5f6f7;
  --surface: #ffffff;
  --surface-soft: #f8f8f9;
  --surface-inset: #f1f2f3;
  --label: #ffffff;
  --ink: #181a1d;
  --ink-soft: #484d53;
  --ink-muted: #777d84;
  --line: #dcdfe3;
  --line-soft: #eceef0;
  --line-strong: #c5c9ce;
  --trace: #2a62ee;
  --trace-soft: #edf2ff;
  --success: #149447;
  --success-soft: #e9f7ee;
  --warning: #d98a0c;
  --warning-soft: #fff4df;
  --danger: #df383e;
  --danger-soft: #fff0f0;
  --radius-sm: 4px;
  --radius: 4px;
  --radius-lg: 5px;
  --font: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei UI", "Segoe UI", Arial, sans-serif;
  --font-data: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei UI", "Segoe UI", Arial, sans-serif;
  --shadow-sm: none;
  --shadow-md: 0 8px 24px rgba(24, 26, 29, 0.1);
  --shadow-blue: none;
  background: #f5f6f7;
  color: #181a1d;
  font-family: var(--font);
  font-weight: 400;
}

body:not(.login-body) .sidebar {
  border-right-color: #383c40;
  background: #222526;
  color: #ffffff;
}

body:not(.login-body) .brand {
  border-bottom-color: #383c40;
  background: #1d2021;
}

body:not(.login-body) .brand-lock {
  background: #f2f3f4;
}

body:not(.login-body) .brand-lock::before {
  background: #242729;
}

body:not(.login-body) .brand-copy strong {
  color: #ffffff;
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: 0;
}

body:not(.login-body) .nav-section h2 {
  color: #838a90;
  font-weight: 600;
}

body:not(.login-body) .nav-link {
  color: #d0d4d7;
  font-family: var(--font);
  font-weight: 450;
}

body:not(.login-body) .nav-link:hover {
  background: #303437;
  color: #ffffff;
}

body:not(.login-body) .nav-link.is-active {
  background: #2a62ee;
  color: #ffffff;
}

body:not(.login-body) .nav-code,
body:not(.login-body) .nav-link.is-active .nav-code {
  color: inherit;
  font-family: var(--font);
  font-weight: 650;
}

body:not(.login-body) .workspace,
body:not(.login-body) .main {
  background: #f5f6f7;
}

body:not(.login-body) .topbar {
  border-bottom-color: #dcdfe3;
  background: #ffffff;
  backdrop-filter: none;
}

body:not(.login-body) .topbar-title span,
body:not(.login-body) .owner-select > span {
  color: #7b8188;
  font-family: var(--font);
  font-weight: 400;
}

body:not(.login-body) .topbar-title strong {
  color: #181a1d;
  font-family: var(--font);
  font-weight: 650;
}

body:not(.login-body) .health-state,
body:not(.login-body) .owner-select select,
body:not(.login-body) #logout-button {
  border-color: #d7dade;
  border-radius: 4px;
  background: #ffffff;
  color: #4b5056;
}

body:not(.login-body) .page-head h1 {
  color: #181a1d;
  font-family: var(--font);
  font-weight: 650;
  letter-spacing: 0;
}

body:not(.login-body) .page-head h1 span {
  color: #60666d;
  font-family: var(--font);
  font-weight: 550;
}

body:not(.login-body) .section-head h2,
body:not(.login-body) .detail-content h2,
body:not(.login-body) .detail-empty h2,
body:not(.login-body) .workflow-lane h2,
body:not(.login-body) .job-card h3 {
  color: #202327;
  font-family: var(--font);
  font-weight: 650;
  letter-spacing: 0;
}

body:not(.login-body) .section-head span,
body:not(.login-body) .detail-section-head em,
body:not(.login-body) .muted,
body:not(.login-body) small {
  color: #777d84;
}

body:not(.login-body) .section-band,
body:not(.login-body) .config-workbench,
body:not(.login-body) .queue-pane,
body:not(.login-body) .detail-pane,
body:not(.login-body) .workflow-lane,
body:not(.login-body) .job-card,
body:not(.login-body) .metric-strip,
body:not(.login-body) .status-strip,
body:not(.login-body) .table-frame {
  border-color: #dcdfe3;
  border-radius: 4px;
  background: #ffffff;
  box-shadow: none;
}

body:not(.login-body) .detail-section-head,
body:not(.login-body) .queue-pane > .section-head,
body:not(.login-body) .workflow-module-head,
body:not(.login-body) .table-frame thead {
  border-color: #dcdfe3;
  background: #f2f2f3;
}

body:not(.login-body) .detail-section-head > span:first-child,
body:not(.login-body) .queue-pane > .section-head h2 {
  color: #202327;
  font-weight: 650;
}

body:not(.login-body) input,
body:not(.login-body) select,
body:not(.login-body) textarea {
  border-color: #d3d6da;
  border-radius: 4px;
  background: #ffffff;
  color: #202327;
  font-family: var(--font);
}

body:not(.login-body) input::placeholder,
body:not(.login-body) textarea::placeholder {
  color: #969ba1;
}

body:not(.login-body) input:focus,
body:not(.login-body) select:focus,
body:not(.login-body) textarea:focus {
  border-color: #2a62ee;
  background: #ffffff;
  outline-color: #2a62ee;
}

body:not(.login-body) .button,
body:not(.login-body) .icon-button {
  border-color: #cfd3d7;
  border-radius: 4px;
  background: #ffffff;
  color: #34383d;
  font-family: var(--font);
  font-weight: 550;
  box-shadow: none;
}

body:not(.login-body) .button:hover:not(:disabled),
body:not(.login-body) .icon-button:hover:not(:disabled) {
  border-color: #aeb4ba;
  background: #f6f6f7;
  color: #181a1d;
}

body:not(.login-body) .button-primary,
body:not(.login-body) .button-external {
  border-color: #2a62ee;
  background: #2a62ee;
  color: #ffffff;
}

body:not(.login-body) .button-primary:hover:not(:disabled),
body:not(.login-body) .button-external:hover:not(:disabled) {
  border-color: #1f52d8;
  background: #1f52d8;
  color: #ffffff;
}

body:not(.login-body) .button-danger {
  border-color: #df383e;
  background: #df383e;
  color: #ffffff;
}

body:not(.login-body) .metric,
body:not(.login-body) .status-summary {
  border-color: #e1e3e6;
  background: #ffffff;
  color: #555b61;
}

body:not(.login-body) .metric strong,
body:not(.login-body) .status-summary strong,
body:not(.login-body) .queue-score strong {
  color: #202327;
  font-family: var(--font);
  font-weight: 650;
}

body:not(.login-body) .status-summary:hover,
body:not(.login-body) .status-summary.is-active,
body:not(.login-body) .queue-entry:hover,
body:not(.login-body) .queue-entry.is-active {
  background: #edf2ff;
  color: #2a62ee;
}

body:not(.login-body) .queue-entry.is-active {
  box-shadow: inset 3px 0 0 #2a62ee;
}

body:not(.login-body) .queue-row strong,
body:not(.login-body) .queue-row b,
body:not(.login-body) table td,
body:not(.login-body) table th,
body:not(.login-body) dl dd,
body:not(.login-body) dl dt {
  font-family: var(--font);
  letter-spacing: 0;
}

body:not(.login-body) .status-pill {
  border-radius: 3px;
  font-family: var(--font);
  font-weight: 600;
}

body:not(.login-body) .status-pill.success {
  background: #e9f7ee;
  color: #149447;
}

body:not(.login-body) .status-pill.warning {
  background: #fff4df;
  color: #c97d08;
}

body:not(.login-body) .status-pill.danger {
  background: #fff0f0;
  color: #df383e;
}

.login-body {
  --font: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei UI", "Segoe UI", Arial, sans-serif;
  --font-data: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei UI", "Segoe UI", Arial, sans-serif;
  background: #f5f6f7;
  color: #181a1d;
  font-family: var(--font);
}

.login-body .login-brand {
  background: #222526;
  color: #ffffff;
}

.login-body .login-entry {
  background: #f5f6f7;
}

.login-body .login-form {
  border-color: #dcdfe3;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(24, 26, 29, 0.1);
}

.login-body .login-heading h1,
.login-body .field-label {
  color: #181a1d;
  font-family: var(--font);
}

.login-body .login-heading p,
.login-body .login-security-note,
.login-body .login-footer {
  color: #777d84;
  font-family: var(--font);
}

.login-body .login-input-shell {
  border-color: #d3d6da;
  background: #ffffff;
  box-shadow: none;
}

.login-body .login-input-shell:focus-within {
  border-color: #2a62ee;
  box-shadow: 0 0 0 3px rgba(42, 98, 238, 0.12);
}

.login-body .button-wide {
  border-color: #2a62ee;
  background: #2a62ee;
  color: #ffffff;
  font-family: var(--font);
  box-shadow: none;
}

.login-body .button-wide:hover:not(:disabled) {
  border-color: #1f52d8;
  background: #1f52d8;
  box-shadow: none;
}

/* End Direction C global visual theme. */

@media (max-width: 1280px) {
  .app-shell {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .sidebar {
    width: 210px;
  }

  .page {
    padding-inline: 16px;
  }

  .queue-board {
    grid-template-columns: minmax(500px, 1.18fr) minmax(330px, 0.82fr);
  }

  .process-map a {
    padding-inline: 8px;
  }

  .query-preview-block {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 0.7fr);
  }
}

/* Enterprise blue visual system */
button,
input,
select,
textarea,
.nav-link,
.process-step,
.process-map a,
.queue-entry,
.status-summary {
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.button,
.icon-button {
  border-color: var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--ink-soft);
}

.button:hover:not(:disabled),
.icon-button:hover:not(:disabled) {
  border-color: #8fa3bf;
  background: #f8faff;
  color: var(--ink);
  transform: translateY(-1px);
}

.button-primary {
  border-color: var(--trace);
  background: var(--trace);
  box-shadow: var(--shadow-blue);
  color: var(--label);
}

.button-primary:hover:not(:disabled) {
  border-color: #1f5fd6;
  background: #1f5fd6;
  box-shadow: 0 9px 22px rgba(39, 110, 241, 0.26);
}

.button-external {
  border-color: #17294a;
  background: #17294a;
  color: var(--label);
}

.button-danger {
  border-color: #efb3ba;
}

input,
select,
textarea {
  border-color: var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: inset 0 1px 1px rgba(23, 34, 59, 0.025);
}

input:hover:not(:disabled),
select:hover:not(:disabled),
textarea:hover:not(:disabled) {
  border-color: #8fa3bf;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--trace);
  box-shadow: 0 0 0 3px rgba(39, 110, 241, 0.12);
  outline: 0;
}

.brand-lock {
  border-color: #42638d;
  border-radius: 8px;
  background: #122747;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.035);
}

.brand-lock::before {
  border-color: #d5e4ff;
}

.brand-lock i {
  border-radius: 1px 1px 0 0;
  background: #e7f0ff;
}

.app-shell {
  background: var(--canvas);
}

.sidebar {
  border-right-color: #1c3150;
  background: linear-gradient(180deg, #0b1930 0%, #0a172b 100%);
  box-shadow: 8px 0 28px rgba(8, 21, 42, 0.08);
}

.brand {
  min-height: 68px;
  border-bottom-color: #1c3150;
  background: rgba(255,255,255,0.018);
}

.brand-copy strong {
  color: #f7faff;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.045em;
}

.brand-copy small {
  color: #7890b0;
  letter-spacing: 0.08em;
}

.nav {
  padding: 13px 10px 20px;
}

.nav-section h2 {
  color: #6f83a1;
  font-size: 10px;
  letter-spacing: 0.06em;
}

.nav-link {
  min-height: 39px;
  border-left: 0;
  border-radius: 7px;
  color: #aebbd0;
}

.nav-link:hover {
  background: #112746;
  color: #f7faff;
}

.nav-link.is-active {
  border-left-color: transparent;
  background: #17345d;
  box-shadow: inset 3px 0 0 #5f9bff, 0 5px 14px rgba(0,0,0,0.1);
  color: #ffffff;
}

.nav-code {
  color: #7489a8;
}

.nav-link.is-active .nav-code {
  color: #8eb8ff;
}

.sidebar-user {
  border-top-color: #1c3150;
  background: rgba(3, 12, 27, 0.18);
}

.user-initial {
  border: 0;
  border-radius: 8px;
  background: var(--trace);
  box-shadow: 0 5px 16px rgba(39, 110, 241, 0.28);
}

.sidebar-user small {
  color: #7f93b1;
}

.topbar {
  min-height: 68px;
  padding-inline: 24px;
  border-bottom-color: rgba(188, 201, 218, 0.75);
  background: rgba(246, 248, 252, 0.92);
  box-shadow: 0 1px 0 rgba(255,255,255,0.85), 0 7px 20px rgba(23,34,59,0.035);
  backdrop-filter: blur(14px);
}

.health-state {
  border-color: var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  box-shadow: var(--shadow-sm);
}

.health-state i {
  box-shadow: 0 0 0 3px rgba(114,128,152,0.12);
}

.health-state.is-ready i {
  box-shadow: 0 0 0 3px rgba(22,129,91,0.12);
}

.owner-select select {
  min-height: 36px;
}

.page {
  gap: 14px;
  padding: 20px 24px 32px;
}

.page-head {
  min-height: 48px;
}

.page-head h1 {
  color: #14203a;
  font-size: 23px;
  font-weight: 780;
  letter-spacing: -0.025em;
}

.section-code,
.eyebrow {
  letter-spacing: 0.08em;
}

.process-rail,
.process-map {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.process-step {
  min-height: 50px;
}

.process-step:hover,
.process-step.is-current,
.process-map a:hover {
  background: #edf4ff;
}

.process-step.is-current::after {
  right: 12px;
  left: 12px;
  height: 3px;
  border-radius: 3px 3px 0 0;
}

.process-step.is-current b,
.process-step.is-current span {
  color: #1f64df;
}

.section-band,
.config-workbench,
.queue-pane,
.detail-pane,
.workflow-lane {
  border-color: var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.section-band,
.config-workbench {
  padding: 16px;
}

.section-head h2,
.workflow-lane > header h2 {
  color: #1b2944;
  font-weight: 750;
}

.metric-strip,
.status-strip,
.safety-strip,
.lane-stats {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.metric-strip,
.lane-stats {
  border-block: 1px solid var(--line);
}

.metric {
  min-height: 64px;
}

.metric strong,
.status-summary strong {
  color: #14203a;
  font-weight: 700;
}

.status-pill {
  min-height: 24px;
  border-radius: 999px;
  padding-inline: 8px;
  background: #f5f8fc;
}

.status-pill.success {
  border-color: #a9d5c2;
}

.status-pill.running {
  border-color: #b8cff5;
}

.status-pill.warning {
  border-color: #ead09a;
}

.status-pill.error {
  border-color: #edb5bb;
}

.state-box {
  border-color: #b8c8dc;
  border-radius: var(--radius-lg);
  background: #f8fafd;
}

.filter-toolbar,
.workflow-command {
  border-color: var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.filter-toolbar {
  padding: 11px;
}

.status-summary {
  min-height: 50px;
}

.status-summary:hover,
.status-summary.is-active {
  background: #edf4ff;
}

.status-summary.is-active {
  box-shadow: inset 0 -3px var(--trace);
}

.queue-board {
  gap: 14px;
}

.queue-pane > .section-head {
  min-height: 56px;
  background: #fbfcfe;
}

.queue-entry {
  border-bottom-color: var(--line-soft);
}

.queue-entry:hover,
.queue-entry.is-active {
  background: #edf4ff;
}

.queue-entry.is-active {
  box-shadow: inset 3px 0 0 var(--trace), inset 0 0 0 1px rgba(39,110,241,0.06);
}

.queue-row {
  min-height: 70px;
}

.queue-row strong,
.queue-row b {
  color: #20304d;
  font-weight: 750;
}

.detail-pane {
  top: 80px;
  max-height: calc(100vh - 98px);
  box-shadow: var(--shadow-md);
}

.detail-content,
.detail-empty {
  padding: 16px;
}

.detail-content h2,
.detail-empty h2 {
  color: #14203a;
  font-size: 17px;
}

.detail-facts {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.detail-facts div {
  border-color: var(--line);
}

.email-copy pre,
.wf32-insight-block,
.wf32-source-list {
  border-radius: var(--radius);
  background: #f8fafd;
}

.handoff-track b {
  border-radius: var(--radius-sm);
}

.wf02-bulk-bar {
  border-color: #bfd0e8;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.96);
  box-shadow: 0 14px 32px rgba(23,34,59,0.13);
}

.table-frame {
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.data-table th {
  background: #eef3f9;
  color: #42526d;
  letter-spacing: 0.025em;
}

.data-table tbody tr:hover {
  background: #f2f7ff;
}

.wf32-research-track {
  border-radius: var(--radius-lg);
}

.wf32-research-track b {
  box-shadow: var(--shadow-sm);
}

.segmented {
  border-radius: var(--radius);
  background: #edf2f8;
}

.segmented button.is-active {
  box-shadow: var(--shadow-sm);
}

.workflow-lane {
  padding: 15px;
}

.job-grid {
  gap: 10px;
}

.workflow-modules {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
}

.workflow-module {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.workflow-module-head {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) auto minmax(360px, 0.9fr);
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 11px 14px;
  background: linear-gradient(90deg, #f7faff 0%, #ffffff 48%);
}

.workflow-module-title {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.workflow-module-title > b {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid #bcd1f4;
  border-radius: 10px;
  background: var(--trace-soft);
  color: var(--trace);
  font-family: var(--font-data);
  font-size: 12px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.7);
}

.workflow-module-title > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.workflow-module-title h2 {
  overflow: hidden;
  color: #172540;
  font-size: 15px;
  font-weight: 780;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-module-title span {
  overflow: hidden;
  color: var(--ink-muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-module-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(72px, 1fr));
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.86);
}

.workflow-module-stats div {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 7px 9px;
  border-right: 1px solid var(--line);
}

.workflow-module-stats div:last-child {
  border-right: 0;
}

.workflow-module-stats dt {
  color: var(--ink-muted);
  font-size: 9px;
}

.workflow-module-stats dd {
  color: #172540;
  font-family: var(--font-data);
  font-size: 13px;
  font-weight: 700;
}

.workflow-task-region {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 10px 12px 12px;
  border-top: 1px solid var(--line);
  background: #fbfcfe;
}

.workflow-task-region-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--ink-muted);
  font-size: 10px;
  font-weight: 700;
}

.workflow-task-region-head b {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--trace-soft);
  color: var(--trace);
  font-family: var(--font-data);
}

.workflow-module .job-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 9px;
}

.workflow-module .job-card dl {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.workflow-task-empty {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 12px;
  border: 1px dashed #c5d2e2;
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink-muted);
  font-size: 10px;
}

@media (max-width: 1280px) {
  .workflow-module-head {
    grid-template-columns: minmax(210px, 1fr) auto minmax(330px, 0.9fr);
    gap: 10px;
    padding-inline: 11px;
  }

  .workflow-module-stats div {
    padding-inline: 7px;
  }
}

.job-card {
  border-color: var(--line);
  border-left-width: 3px;
  border-radius: var(--radius);
  background: #f8fafd;
  box-shadow: var(--shadow-sm);
}

/* Desktop sales-console skin: matches the established CRM's quiet, dense
   operational surface while leaving the animated login experience untouched. */
body:not(.login-body) {
  --powder: #f3f5f7;
  --powder-2: #ffffff;
  --steel: #59636e;
  --steel-soft: #7e8994;
  --canvas: #f7f8fa;
  --surface: #ffffff;
  --surface-soft: #f6f7f9;
  --surface-inset: #eef1f5;
  --label: #ffffff;
  --ink: #1e242c;
  --ink-soft: #444d57;
  --ink-muted: #747d87;
  --line: #d8dde3;
  --line-soft: #e9edf1;
  --line-strong: #bcc5ce;
  --trace: #0966b8;
  --trace-soft: #eaf3ff;
  --success: #28785a;
  --success-soft: #eaf6ef;
  --warning: #9b6b16;
  --warning-soft: #fff6e3;
  --danger: #b95258;
  --danger-soft: #fff0f1;
  --radius-sm: 5px;
  --radius: 6px;
  --radius-lg: 7px;
  --font: "HarmonyOS Sans SC", "MiSans", "PingFang SC", "Microsoft YaHei UI", "Segoe UI", sans-serif;
  --font-data: "Bahnschrift", "DIN Alternate", "Segoe UI", "Microsoft YaHei UI", sans-serif;
  --shadow-sm: none;
  --shadow-md: 0 10px 26px rgba(28, 35, 43, 0.11);
  --shadow-blue: none;
}

body:not(.login-body) .app-shell {
  grid-template-columns: 240px minmax(0, 1fr);
}

body:not(.login-body) .sidebar {
  width: 240px;
  border-right-color: var(--line);
  background: #f1f3f6;
  color: var(--ink);
}

body:not(.login-body) .brand {
  min-height: 64px;
  padding: 13px 17px;
  border-bottom-color: var(--line);
}

body:not(.login-body) .brand-lock {
  display: block;
  width: 35px;
  height: 25px;
  border: 0;
  border-radius: 4px;
  background: var(--trace);
}

body:not(.login-body) .brand-lock::before {
  top: 8px;
  width: 15px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
}

body:not(.login-body) .brand-lock i,
body:not(.login-body) .brand-copy small,
body:not(.login-body) .sidebar-user-bottom {
  display: none;
}

body:not(.login-body) .brand-copy strong {
  color: #20262e;
  font-size: 17px;
  font-weight: 760;
  letter-spacing: 0.01em;
}

body:not(.login-body) .sidebar-user-primary {
  min-height: 90px;
  margin: 14px 14px 9px;
  padding: 13px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

body:not(.login-body) .sidebar-user-primary .user-initial {
  width: 32px;
  height: 32px;
  border-color: #c8d4e2;
  background: #eaf3ff;
  color: var(--trace);
}

body:not(.login-body) .sidebar-user-primary > span:last-child {
  gap: 2px;
}

body:not(.login-body) .sidebar-user-primary strong {
  color: var(--ink);
  font-size: 13px;
}

body:not(.login-body) .sidebar-user-primary small {
  color: var(--ink-muted);
  font-size: 10px;
}

body:not(.login-body) .nav {
  padding: 6px 10px 18px;
}

body:not(.login-body) .nav-section + .nav-section {
  margin-top: 15px;
}

body:not(.login-body) .nav-section h2 {
  margin-bottom: 6px;
  padding-inline: 10px;
  color: #6c7580;
  font-size: 11px;
  font-weight: 650;
}

body:not(.login-body) .nav-link {
  grid-template-columns: 29px minmax(0, 1fr);
  min-height: 40px;
  padding: 5px 9px;
  border-left: 0;
  border-radius: 4px;
  color: #4f5964;
  font-size: 13px;
}

body:not(.login-body) .nav-link:hover {
  background: #e7edf4;
  color: var(--ink);
}

body:not(.login-body) .nav-link.is-active {
  background: #dcebff;
  color: #075da8;
}

body:not(.login-body) .nav-code,
body:not(.login-body) .nav-link.is-active .nav-code {
  color: inherit;
  font-size: 11px;
  font-weight: 650;
}

body:not(.login-body) .workspace {
  background: var(--canvas);
}

body:not(.login-body) .topbar {
  justify-content: space-between;
  min-height: 64px;
  padding: 8px 24px;
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

body:not(.login-body) .topbar-title span {
  color: #707983;
  font-family: var(--font);
  font-size: 11px;
}

body:not(.login-body) .topbar-title strong {
  color: #252b33;
  font-size: 14px;
  font-weight: 760;
}

body:not(.login-body) .topbar-actions {
  gap: 10px;
}

body:not(.login-body) .health-state,
body:not(.login-body) .owner-select strong {
  min-height: 34px;
  border-color: var(--line);
  border-radius: 5px;
  background: #ffffff;
}

body:not(.login-body) .owner-select strong {
  display: inline-flex;
  align-items: center;
  padding-inline: 11px;
  color: #3e4751;
  font-size: 11px;
}

body:not(.login-body) .page {
  gap: 13px;
  padding: 24px 24px 34px;
}

body:not(.login-body) .page-head {
  min-height: 38px;
}

body:not(.login-body) .page-head h1 {
  color: #20262e;
  font-size: 23px;
  font-weight: 760;
  letter-spacing: -0.025em;
}

body:not(.login-body) .page-head h1 span {
  margin-right: 7px;
  color: #4f5964;
  font-family: var(--font-data);
  font-size: 18px;
  font-weight: 650;
  letter-spacing: 0;
}

body:not(.login-body) .process-rail {
  display: none;
}

body:not(.login-body) .section-band,
body:not(.login-body) .config-workbench,
body:not(.login-body) .queue-pane,
body:not(.login-body) .detail-pane,
body:not(.login-body) .workflow-lane {
  border-color: var(--line);
  border-radius: var(--radius);
  box-shadow: none;
}

body:not(.login-body) .section-band,
body:not(.login-body) .config-workbench {
  padding: 16px;
}

body:not(.login-body) .section-head h2 {
  color: #2a3038;
  font-size: 16px;
  font-weight: 760;
}

body:not(.login-body) input,
body:not(.login-body) select,
body:not(.login-body) textarea {
  border-color: #c7cdd4;
  border-radius: 5px;
  background: #f4f6f8;
}

body:not(.login-body) input:focus,
body:not(.login-body) select:focus,
body:not(.login-body) textarea:focus {
  border-color: #4b90cf;
  background: #ffffff;
}

body:not(.login-body) .button,
body:not(.login-body) .icon-button {
  min-height: 36px;
  border-color: #bdc5ce;
  border-radius: 5px;
  background: #ffffff;
  box-shadow: none;
}

body:not(.login-body) .button-primary {
  border-color: var(--trace);
  background: var(--trace);
  color: #ffffff;
}

body:not(.login-body) .button-external {
  border-color: var(--trace);
  background: var(--trace);
}

body:not(.login-body) .metric-strip,
body:not(.login-body) .status-strip {
  border-color: var(--line);
  border-radius: 0;
}

body:not(.login-body) .metric,
body:not(.login-body) .status-summary {
  min-height: 62px;
  border-color: var(--line);
}

body:not(.login-body) .metric strong,
body:not(.login-body) .status-summary strong {
  color: #2a3038;
  font-family: var(--font-data);
}

body:not(.login-body) .filter-toolbar {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body:not(.login-body) .filter-toolbar > label.filter-search {
  flex-basis: 320px;
}

body:not(.login-body) .queue-board {
  grid-template-columns: minmax(560px, 1.3fr) minmax(350px, 0.7fr);
  gap: 14px;
}

body:not(.login-body) .queue-pane > .section-head {
  min-height: 58px;
  padding: 11px 14px;
  background: #ffffff;
}

body:not(.login-body) .queue-pane > .section-head h2 {
  white-space: nowrap;
}

body:not(.login-body) .queue-entry {
  border-bottom-color: var(--line);
}

body:not(.login-body) .queue-entry:hover,
body:not(.login-body) .queue-entry.is-active {
  background: #e4f0ff;
}

body:not(.login-body) .queue-entry.is-active {
  box-shadow: inset 3px 0 0 var(--trace);
}

body:not(.login-body) .queue-row {
  min-height: 72px;
  padding: 9px 12px 9px 8px;
}

body:not(.login-body) .queue-row strong,
body:not(.login-body) .queue-row b {
  color: #252b33;
  font-size: 12px;
}

body:not(.login-body) .detail-pane {
  top: 80px;
  max-height: calc(100vh - 96px);
}

body:not(.login-body) .detail-content,
body:not(.login-body) .detail-empty {
  padding: 16px;
}

body:not(.login-body) .detail-content h2,
body:not(.login-body) .detail-empty h2 {
  color: #252b33;
  font-size: 17px;
}

body:not(.login-body) .detail-facts div {
  background: #f4f6f8;
}

body:not(.login-body) .wf02-page .queue-board {
  grid-template-columns: minmax(420px, 0.78fr) minmax(640px, 1.22fr);
}

body:not(.login-body) .wf03-page .queue-board {
  grid-template-columns: minmax(520px, 0.94fr) minmax(600px, 1.06fr);
}

body:not(.login-body) .wf05-page .queue-board {
  grid-template-columns: minmax(500px, 0.92fr) minmax(620px, 1.08fr);
}

body:not(.login-body) .wf05-page .queue-list {
  min-height: 236px;
}

body:not(.login-body) .wf05-detail {
  padding: 0;
}

body:not(.login-body) .wf05-empty-detail {
  min-height: 620px;
}

body:not(.login-body) .wf05-empty-detail .reply-message-empty {
  min-height: 176px;
  align-content: start;
}

body:not(.login-body) .wf05-empty-detail .detail-facts dd,
body:not(.login-body) .wf05-empty-detail .reply-message h3,
body:not(.login-body) .wf05-empty-detail .reply-message pre {
  color: var(--ink-muted);
}

body:not(.login-body) .wf05-empty-detail .button:disabled,
body:not(.login-body) .wf05-empty-detail .wf05-detail-close:disabled {
  opacity: 1;
  color: var(--ink-muted);
  background: #f4f6f8;
}

@media (max-width: 1280px) {
  body:not(.login-body) .wf05-page .queue-board {
    grid-template-columns: minmax(390px, 0.88fr) minmax(540px, 1.12fr);
  }
}

body:not(.login-body) .wf03-detail {
  gap: 0;
  padding: 0;
}

body:not(.login-body) .wf03-detail > header {
  padding: 16px 18px 14px;
}

body:not(.login-body) .wf03-detail h2 {
  margin-top: 5px;
  font-size: 15px;
  line-height: 1.35;
}

body:not(.login-body) .wf03-empty-value {
  display: block;
  min-width: 32px;
  min-height: 1.45em;
}

body:not(.login-body) .wf03-empty-status {
  display: inline-block;
  min-width: 48px;
  min-height: 19px;
}

body:not(.login-body) .wf03-open-site {
  min-height: 30px;
  padding-inline: 9px;
  font-size: 9px;
}

body:not(.login-body) .wf03-detail header p {
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 10px;
}

body:not(.login-body) .wf03-detail .detail-header-actions > div:first-child {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

body:not(.login-body) .wf03-detail-close {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink-muted);
  font-size: 17px;
  line-height: 1;
}

body:not(.login-body) .wf03-detail-close:hover {
  border-color: var(--steel-soft);
  color: var(--ink);
}

body:not(.login-body) .wf03-detail > .detail-journey {
  position: relative;
  margin: 12px 18px;
  overflow: visible;
  border: 0;
  border-radius: 0;
}

body:not(.login-body) .wf03-detail > .detail-journey::before {
  position: absolute;
  top: 13px;
  right: 9%;
  left: 9%;
  height: 1px;
  background: var(--line-strong);
  content: "";
}

body:not(.login-body) .wf03-detail > .detail-journey li {
  grid-template-columns: 26px minmax(0, 1fr);
  min-height: 35px;
  padding: 0 5px;
  border: 0;
  background: var(--surface);
}

body:not(.login-body) .wf03-detail > .detail-journey li > b {
  position: relative;
  z-index: 1;
  width: 26px;
  height: 26px;
  background: var(--surface);
}

body:not(.login-body) .wf03-detail > .detail-journey li.done,
body:not(.login-body) .wf03-detail > .detail-journey li.active,
body:not(.login-body) .wf03-detail > .detail-journey li.pending,
body:not(.login-body) .wf03-detail > .detail-journey li.blocked {
  background: var(--surface);
}

body:not(.login-body) .wf03-detail > .detail-facts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 18px 12px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  gap: 6px 10px;
}

body:not(.login-body) .wf03-detail > .detail-facts div {
  min-height: 49px;
  padding: 8px 10px;
  border: 0;
  background: var(--surface-inset);
}

body:not(.login-body) .wf03-detail > .detail-facts div:last-child {
  grid-column: 1;
}

body:not(.login-body) .wf03-hunter-status-note {
  margin: 0 18px 12px;
  padding: 9px 10px;
  border-left: 3px solid var(--trace);
  background: var(--surface-inset);
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.55;
}

body:not(.login-body) .wf03-detail .detail-section,
body:not(.login-body) .wf03-detail .detail-form,
body:not(.login-body) .wf03-contact-profile-facts {
  margin: 0;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
}

body:not(.login-body) .wf03-detail .detail-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--trace);
  font-size: 10px;
}

body:not(.login-body) .wf03-detail .detail-section-head em {
  color: var(--ink-muted);
  font-size: 9px;
  font-style: normal;
  font-weight: 600;
}

body:not(.login-body) .wf03-detail .detail-qualification {
  gap: 8px;
}

body:not(.login-body) .wf03-basis-verdict {
  display: grid;
  gap: 7px;
  padding: 10px 11px;
  border-left: 3px solid var(--trace);
  background: var(--trace-soft);
}

body:not(.login-body) .wf03-basis-verdict > div,
body:not(.login-body) .wf03-basis-subhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

body:not(.login-body) .wf03-basis-verdict > div > span,
body:not(.login-body) .wf03-basis-subhead > span {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 750;
}

body:not(.login-body) .wf03-basis-verdict p {
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.65;
}

body:not(.login-body) .wf03-basis-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-soft);
  border-left: 1px solid var(--line-soft);
}

body:not(.login-body) .wf03-basis-grid > div {
  min-width: 0;
  padding: 8px 9px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

body:not(.login-body) .wf03-basis-grid dt,
body:not(.login-body) .wf03-basis-evidence dt,
body:not(.login-body) .wf03-basis-context dt {
  color: var(--ink-muted);
  font-size: 9px;
}

body:not(.login-body) .wf03-basis-grid dd,
body:not(.login-body) .wf03-basis-evidence dd,
body:not(.login-body) .wf03-basis-context dd {
  margin: 3px 0 0;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

body:not(.login-body) .wf03-basis-block {
  display: grid;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--line-soft);
}

body:not(.login-body) .wf03-basis-subhead .text-link {
  font-size: 9px;
}

body:not(.login-body) .wf03-basis-evidence,
body:not(.login-body) .wf03-basis-context {
  display: grid;
  margin: 0;
}

body:not(.login-body) .wf03-basis-evidence > div,
body:not(.login-body) .wf03-basis-context > div {
  min-width: 0;
  padding: 6px 0;
  border-bottom: 1px solid var(--line-soft);
}

body:not(.login-body) .wf03-basis-evidence > div:last-child,
body:not(.login-body) .wf03-basis-context > div:last-child {
  border-bottom: 0;
}

body:not(.login-body) .wf03-detail .detail-context-facts {
  border: 0;
  border-radius: 0;
}

body:not(.login-body) .wf03-detail .detail-context-facts > div {
  min-height: 38px;
  padding: 6px 0;
  border-right: 0;
  background: var(--surface);
}

body:not(.login-body) .wf03-detail .detail-form {
  gap: 8px;
  background: var(--surface-inset);
}

body:not(.login-body) .wf03-qualification-basis > .wf03-manual-form {
  margin-inline: -18px;
  padding-inline: 18px;
}

body:not(.login-body) .wf03-detail .detail-form input,
body:not(.login-body) .wf03-detail .detail-form select,
body:not(.login-body) .wf03-detail .detail-form textarea {
  background: #f4f6f8;
}

body:not(.login-body) .wf03-detail .detail-form label > small {
  display: block;
  margin-top: 4px;
  color: var(--ink-muted);
  font-size: 9px;
}

body:not(.login-body) .wf03-confirm-check {
  display: flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
}

body:not(.login-body) .wf03-confirm-check input {
  width: 14px;
  min-height: 14px;
  margin: 0;
  accent-color: var(--trace);
}

body:not(.login-body) .wf03-confirm-check > span {
  margin: 0;
  color: var(--ink-soft);
  font-size: 10px;
}

body:not(.login-body) .wf03-form-submit {
  display: flex;
  justify-content: flex-end;
}

body:not(.login-body) .wf03-detail .detail-actions {
  justify-content: flex-end;
}

body:not(.login-body) .wf03-detail .detail-actions .button {
  min-height: 32px;
  padding-inline: 11px;
  font-size: 10px;
}

body:not(.login-body) .wf03-contact-profile-facts .detail-facts {
  border-radius: 0;
}

body:not(.login-body) .wf03-qualification-copy {
  min-height: 32px;
  margin: 0;
  padding: 7px 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.65;
}

body:not(.login-body) .wf03-qualification-record {
  display: grid;
  min-width: 0;
  margin: 0;
}

body:not(.login-body) .wf03-qualification-record > div {
  min-width: 0;
  min-height: 40px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line-soft);
}

body:not(.login-body) .wf03-qualification-record > div:last-child {
  border-bottom: 0;
}

body:not(.login-body) .wf03-qualification-record dt {
  color: var(--ink-muted);
  font-size: 9px;
}

body:not(.login-body) .wf03-qualification-record dd {
  margin: 3px 0 0;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

body:not(.login-body) .wf03-empty-detail {
  min-height: 1080px;
}

body:not(.login-body) .wf03-empty-detail .button:disabled,
body:not(.login-body) .wf03-empty-detail .wf03-detail-close:disabled {
  opacity: 1;
  color: var(--ink-muted);
  background: #f4f6f8;
}

body:not(.login-body) .reactivation-import-band {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-block: 1px solid var(--line);
  background: var(--surface-soft);
}

body:not(.login-body) .reactivation-import-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

body:not(.login-body) .reactivation-import-actions .button {
  min-height: 31px;
  font-size: 10px;
}

body:not(.login-body) .reactivation-import-actions .button b {
  margin-left: 4px;
  font-family: var(--font-data);
}

body:not(.login-body) .reactivation-import-result {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
  color: var(--ink-soft);
  font-size: 10px;
}

body:not(.login-body) .reactivation-import-result > strong {
  max-width: min(280px, 35vw);
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:not(.login-body) .reactivation-import-result details {
  position: relative;
}

body:not(.login-body) .reactivation-import-result summary {
  color: var(--danger);
  font-weight: 700;
  cursor: pointer;
}

body:not(.login-body) .reactivation-import-result ul {
  position: absolute;
  z-index: 4;
  right: 0;
  width: min(420px, 80vw);
  max-height: 240px;
  margin: 7px 0 0;
  padding: 9px 12px 9px 28px;
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink-soft);
}

body:not(.login-body) .wf09-page .queue-board {
  grid-template-columns: minmax(400px, 0.72fr) minmax(650px, 1.28fr);
}

body:not(.login-body) .wf09-page .queue-row {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  gap: 7px 10px;
  min-height: 88px;
}

body:not(.login-body) .wf09-page .queue-company,
body:not(.login-body) .wf09-page .queue-rounds {
  grid-column: 1;
}

body:not(.login-body) .wf09-page .queue-state,
body:not(.login-body) .wf09-page .queue-context {
  grid-column: 2;
  justify-items: end;
  text-align: right;
}

body:not(.login-body) .wf09-page .queue-company,
body:not(.login-body) .wf09-page .queue-state {
  grid-row: 1;
}

body:not(.login-body) .wf09-page .queue-rounds,
body:not(.login-body) .wf09-page .queue-context {
  grid-row: 2;
}

body:not(.login-body) .reactivation-track {
  grid-template-columns: repeat(8, minmax(0, 1fr));
}

/* WF08 follow-up dossier: one continuous customer record with the first email
   and all eight rounds visible in the same independently scrolling pane. */
body:not(.login-body) .wf08-page .queue-board {
  grid-template-columns: minmax(400px, 0.72fr) minmax(650px, 1.28fr);
}

body:not(.login-body) .wf08-page .queue-row {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  gap: 7px 10px;
  min-height: 88px;
}

body:not(.login-body) .wf08-page .queue-company {
  grid-column: 1;
  grid-row: 1;
}

body:not(.login-body) .wf08-page .queue-state {
  grid-column: 2;
  grid-row: 1;
}

body:not(.login-body) .wf08-page .queue-rounds {
  grid-column: 1;
  grid-row: 2;
  overflow: hidden;
}

body:not(.login-body) .wf08-page .queue-context {
  grid-column: 2;
  grid-row: 2;
  justify-items: end;
  text-align: right;
}

body:not(.login-body) .wf08-detail {
  gap: 0;
  padding: 0;
}

body:not(.login-body) .wf08-detail > header {
  min-height: 126px;
  padding: 22px 14px 14px;
}

body:not(.login-body) .wf08-detail > header h2 {
  margin-top: 6px;
  font-size: 16px;
}

body:not(.login-body) .wf08-detail > header p {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.5;
}

body:not(.login-body) .wf08-detail > header p a:hover {
  color: var(--trace);
  text-decoration: underline;
}

body:not(.login-body) .wf08-header-actions {
  display: grid;
  align-content: start;
  justify-items: end;
  gap: 6px;
  min-width: 84px;
}

body:not(.login-body) .wf08-header-actions .button {
  min-height: 27px;
  padding-inline: 8px;
  font-size: 9px;
}

body:not(.login-body) .wf08-header-actions .status-pill.running {
  background: var(--warning-soft);
  color: var(--warning);
}

body:not(.login-body) .wf08-header-actions .button-danger {
  border-color: #dca3aa;
  background: var(--surface);
  box-shadow: none;
  color: var(--danger);
}

body:not(.login-body) .wf08-header-actions .button-danger:hover:not(:disabled) {
  border-color: var(--danger);
  background: var(--danger-soft);
  color: var(--danger);
}

body:not(.login-body) .wf08-detail > .detail-facts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 12px 14px 13px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  gap: 6px 10px;
}

body:not(.login-body) .wf08-detail > .detail-facts div {
  min-height: 46px;
  padding: 8px 10px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--surface-inset);
}

body:not(.login-body) .wf08-detail > .detail-facts dt,
body:not(.login-body) .followup-signal-grid dt {
  color: var(--ink-muted);
  font-size: 9px;
}

body:not(.login-body) .wf08-detail > .detail-facts dd,
body:not(.login-body) .followup-signal-grid dd {
  margin-top: 3px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

body:not(.login-body) .followup-journey {
  display: grid;
  gap: 8px;
  padding: 13px 14px 14px;
  border-top: 1px solid var(--line);
}

body:not(.login-body) .followup-journey .detail-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--trace);
}

body:not(.login-body) .followup-journey .detail-section-head em {
  color: var(--ink-muted);
  font-size: 9px;
  font-style: normal;
  font-weight: 600;
}

body:not(.login-body) .followup-track {
  display: grid;
  grid-template-columns: 1.18fr repeat(8, minmax(0, 1fr));
  gap: 5px;
  min-width: 0;
}

body:not(.login-body) .followup-track span {
  display: grid;
  place-items: center;
  min-width: 0;
  height: 23px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: var(--surface);
  color: var(--ink-muted);
  font-family: var(--font-data);
  font-size: 9px;
  font-weight: 700;
}

body:not(.login-body) .followup-track .is-sent {
  border-color: #aec8f4;
  background: var(--trace-soft);
  color: var(--trace);
}

body:not(.login-body) .followup-track .is-current,
body:not(.login-body) .followup-track .is-ready,
body:not(.login-body) .followup-track .is-due {
  border-color: #e7c67e;
  background: var(--warning-soft);
  color: var(--warning);
}

body:not(.login-body) .followup-track .is-stopped,
body:not(.login-body) .followup-track .is-failed {
  border-color: #e5a7ad;
  background: var(--danger-soft);
  color: var(--danger);
}

body:not(.login-body) .followup-mail-list {
  display: grid;
  padding: 0 14px 18px;
}

body:not(.login-body) .followup-mail-entry {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 9px;
  min-width: 0;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

body:not(.login-body) .followup-round-badge {
  display: grid;
  place-items: center;
  width: 32px;
  height: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: var(--surface);
  color: var(--ink-muted);
  font-family: var(--font-data);
  font-size: 8px;
  font-weight: 700;
}

body:not(.login-body) .followup-mail-entry.is-sent .followup-round-badge {
  border-color: #aec8f4;
  background: var(--trace-soft);
  color: var(--trace);
}

body:not(.login-body) .followup-mail-entry.is-ready .followup-round-badge,
body:not(.login-body) .followup-mail-entry.is-due .followup-round-badge {
  border-color: #e7c67e;
  background: var(--warning-soft);
  color: var(--warning);
}

body:not(.login-body) .followup-mail-entry.is-stopped .followup-round-badge,
body:not(.login-body) .followup-mail-entry.is-failed .followup-round-badge {
  border-color: #e5a7ad;
  background: var(--danger-soft);
  color: var(--danger);
}

body:not(.login-body) .followup-mail-main {
  display: grid;
  gap: 8px;
  min-width: 0;
}

body:not(.login-body) .followup-manual-actions {
  justify-content: flex-end;
  margin-top: 2px;
}

body:not(.login-body) .followup-manual-actions .button {
  min-height: 30px;
  padding-inline: 10px;
  font-size: 10px;
}

body:not(.login-body) .followup-mail-title {
  display: grid;
  gap: 2px;
  min-width: 0;
}

body:not(.login-body) .followup-mail-title h3 {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.45;
}

body:not(.login-body) .followup-mail-title p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

body:not(.login-body) .followup-mail-title small {
  color: var(--ink-muted);
  font-size: 9px;
}

body:not(.login-body) .followup-preview-trigger {
  min-height: 30px;
  justify-self: start;
  padding-inline: 10px;
  font-size: 10px;
}

body:not(.login-body) .followup-edit-form {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-inset);
}

body:not(.login-body) .followup-edit-form label {
  display: grid;
  gap: 4px;
  color: var(--ink-muted);
  font-size: 10px;
}

body:not(.login-body) .followup-edit-form input,
body:not(.login-body) .followup-edit-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  padding: 7px 8px;
}

body:not(.login-body) .followup-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink-soft);
  font-size: 10px;
}

body:not(.login-body) .event-followup-toolbar,
body:not(.login-body) .event-followup-upload,
body:not(.login-body) .event-followup-summary,
body:not(.login-body) .event-followup-card-list {
  margin: 14px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

body:not(.login-body) .event-followup-toolbar,
body:not(.login-body) .event-followup-upload {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

body:not(.login-body) .event-followup-toolbar h2,
body:not(.login-body) .event-followup-upload h3,
body:not(.login-body) .event-followup-card-list h2 {
  margin: 0;
  color: var(--ink);
}

body:not(.login-body) .event-followup-toolbar p,
body:not(.login-body) .event-followup-upload p {
  margin: 5px 0 0;
  color: var(--ink-muted);
  font-size: 11px;
}

body:not(.login-body) .event-followup-actions,
body:not(.login-body) .event-followup-summary {
  display: flex;
  align-items: center;
  gap: 12px;
}

body:not(.login-body) .event-followup-actions label {
  display: grid;
  gap: 4px;
  color: var(--ink-muted);
  font-size: 10px;
}

body:not(.login-body) .event-followup-upload-button input { display: none; }
body:not(.login-body) .event-followup-upload-actions { display: flex; flex-wrap: wrap; gap: 8px; }
body:not(.login-body) .event-followup-upload-queue { margin: 14px 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
body:not(.login-body) .event-followup-upload-queue > header,
body:not(.login-body) .event-followup-upload-queue > footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
body:not(.login-body) .event-followup-upload-queue > header span,
body:not(.login-body) .event-followup-upload-queue > footer small { color: var(--ink-muted); font-size: 10px; }
body:not(.login-body) .event-followup-upload-queue > div { display: grid; gap: 6px; margin: 12px 0; }
body:not(.login-body) .event-followup-upload-item { display: grid; grid-template-columns: 54px minmax(0,1fr) auto; align-items: center; gap: 10px; min-height: 54px; padding: 7px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-inset); }
body:not(.login-body) .event-followup-upload-item img,
body:not(.login-body) .event-followup-file-badge { width: 54px; height: 40px; border-radius: 4px; object-fit: cover; background: var(--surface); }
body:not(.login-body) .event-followup-file-badge { display: grid; place-items: center; color: var(--ink-muted); font: 700 10px var(--font-data); }
body:not(.login-body) .event-followup-upload-item > div { display: grid; gap: 3px; min-width: 0; }
body:not(.login-body) .event-followup-upload-item strong { overflow: hidden; color: var(--ink); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
body:not(.login-body) .event-followup-upload-item small { color: var(--ink-muted); font-size: 10px; }
body:not(.login-body) .event-followup-upload-item.uploading small,
body:not(.login-body) .event-followup-upload-item.compressing small { color: var(--warning); }
body:not(.login-body) .event-followup-upload-item.completed small { color: var(--success); }
body:not(.login-body) .event-followup-upload-item.failed small { color: var(--danger); }
body:not(.login-body) .event-followup-summary { justify-content: flex-start; background: var(--surface-inset); }
body:not(.login-body) .event-followup-summary span { color: var(--ink-muted); font-size: 11px; }
body:not(.login-body) .event-followup-summary b { margin-left: 5px; color: var(--ink); font-family: var(--font-data); }
body:not(.login-body) .event-followup-card-list > header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
body:not(.login-body) .event-followup-card-list > header span { color: var(--ink-muted); font-size: 10px; }
body:not(.login-body) .event-followup-card-row { display: grid; grid-template-columns: 180px minmax(0,1fr) auto auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
body:not(.login-body) .event-followup-card-preview { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--ink-muted); font-size: 10px; }
body:not(.login-body) .event-followup-card-preview img { width: 58px; height: 38px; object-fit: cover; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--surface-inset); }
body:not(.login-body) .event-followup-card-fields { display: grid; gap: 3px; min-width: 0; }
body:not(.login-body) .event-followup-card-fields strong { color: var(--ink); font-size: 12px; }
body:not(.login-body) .event-followup-card-fields span,
body:not(.login-body) .event-followup-card-fields small,
body:not(.login-body) .event-followup-card-status small { color: var(--ink-muted); font-size: 10px; overflow-wrap: anywhere; }
body:not(.login-body) .event-followup-card-status { display: grid; gap: 3px; text-align: right; }
body:not(.login-body) .event-followup-card-status b { color: var(--warning); font-size: 11px; }
body:not(.login-body) .event-followup-review-form { display: grid; grid-template-columns: repeat(2, minmax(150px, 1fr)); gap: 7px; min-width: min(440px, 100%); }
body:not(.login-body) .event-followup-review-form input { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 6px; padding: 8px 9px; background: var(--surface); color: var(--ink); font: inherit; }
body:not(.login-body) .event-followup-review-form > div { display: flex; grid-column: 1 / -1; justify-content: flex-end; gap: 7px; }
body:not(.login-body) .event-followup-mail-editors { grid-column: 1 / -1; display: grid; gap: 12px; margin-top: 10px; }
body:not(.login-body) .event-followup-mail-editor { display: grid; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 92%, var(--accent) 8%); }
body:not(.login-body) .event-followup-mail-editor-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
body:not(.login-body) .event-followup-mail-editor input, body:not(.login-body) .event-followup-mail-editor textarea { width: 100%; border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; font: inherit; background: var(--surface); color: var(--ink); }
body:not(.login-body) .event-followup-round-list { grid-column: 1 / -1; display: grid; gap: 0; margin-top: 10px; border-top: 1px solid var(--line); }
body:not(.login-body) .event-followup-round-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 12px; align-items: center; min-width: 0; padding: 10px 0; border-bottom: 1px solid var(--line); }
body:not(.login-body) .event-followup-round-row > div:first-child { display: grid; gap: 3px; }
body:not(.login-body) .event-followup-round-row strong { color: var(--ink); font-size: 11px; }
body:not(.login-body) .event-followup-round-row small { color: var(--ink-muted); font-size: 10px; }
body:not(.login-body) .event-followup-round-copy { display: grid; gap: 3px; min-width: 0; }
body:not(.login-body) .event-followup-round-copy span { overflow: hidden; color: var(--ink); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
body:not(.login-body) .event-followup-mail-dialog { width: min(720px, calc(100vw - 32px)); max-width: none; padding: 0; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
body:not(.login-body) .event-followup-mail-dialog::backdrop { background: rgb(10 18 30 / 45%); }
body:not(.login-body) .event-followup-mail-dialog-shell { display: grid; max-height: min(760px, calc(100vh - 48px)); }
body:not(.login-body) .event-followup-mail-dialog-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding: 18px 20px; border-bottom: 1px solid var(--line); }
body:not(.login-body) .event-followup-mail-dialog-head h2 { margin: 4px 0; font-size: 18px; }
body:not(.login-body) .event-followup-mail-dialog-head p { margin: 0; color: var(--ink-muted); font-size: 11px; }
body:not(.login-body) .event-followup-mail-dialog-body { display: grid; gap: 14px; overflow-y: auto; padding: 20px; }
body:not(.login-body) .event-followup-mail-dialog-body label { display: grid; gap: 6px; }
body:not(.login-body) .event-followup-mail-dialog-body label > span { color: var(--ink-muted); font-size: 11px; }
body:not(.login-body) .event-followup-mail-dialog-body input, body:not(.login-body) .event-followup-mail-dialog-body textarea { width: 100%; border: 1px solid var(--line); border-radius: 6px; padding: 9px 10px; background: var(--surface); color: var(--ink); font: inherit; }
body:not(.login-body) .event-followup-mail-dialog-body textarea { min-height: 260px; resize: vertical; }
body:not(.login-body) .event-followup-mail-meta { display: grid; grid-template-columns: auto 1fr; gap: 5px 12px; padding: 10px; background: var(--surface-inset); font-size: 11px; }
body:not(.login-body) .event-followup-mail-meta span { color: var(--ink-muted); }
body:not(.login-body) .event-followup-mail-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--line); }
body:not(.login-body) .event-followup-empty,
body:not(.login-body) .event-followup-empty-state { padding: 36px 20px; color: var(--ink-muted); text-align: center; }

@media (max-width: 760px) {
  body:not(.login-body) .event-followup-toolbar,
  body:not(.login-body) .event-followup-upload { align-items: stretch; flex-direction: column; }
  body:not(.login-body) .event-followup-actions { flex-wrap: wrap; }
  body:not(.login-body) .event-followup-upload-actions,
  body:not(.login-body) .event-followup-upload-actions .button { width: 100%; }
  body:not(.login-body) .event-followup-upload-queue > footer { align-items: stretch; flex-direction: column; }
  body:not(.login-body) .event-followup-upload-queue > footer .button { min-height: 44px; width: 100%; }
  body:not(.login-body) .event-followup-card-row { grid-template-columns: 1fr; gap: 8px; }
  body:not(.login-body) .event-followup-card-status { text-align: left; }
  body:not(.login-body) .event-followup-review-form { grid-template-columns: 1fr; min-width: 0; }
  body:not(.login-body) .event-followup-review-form > div { position: sticky; bottom: 8px; z-index: 2; display: grid; grid-column: auto; padding: 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); box-shadow: var(--shadow); }
  body:not(.login-body) .event-followup-review-form > div .button { min-height: 44px; width: 100%; }
  body:not(.login-body) .event-followup-round-row { grid-template-columns: 1fr auto; gap: 8px; }
  body:not(.login-body) .event-followup-round-copy { grid-column: 1 / -1; grid-row: 2; }
  body:not(.login-body) .event-followup-mail-dialog { inset: 0; width: 100%; height: 100%; max-height: none; border: 0; border-radius: 0; }
  body:not(.login-body) .event-followup-mail-dialog-shell { height: 100%; max-height: none; }
  body:not(.login-body) .event-followup-mail-dialog-body { padding: 16px; }
  body:not(.login-body) .event-followup-mail-dialog-actions { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  body:not(.login-body) .event-followup-create-form { grid-template-columns: 1fr; }
  body:not(.login-body) .event-followup-create-form .event-create-wide { grid-column: auto; }
  body:not(.login-body) .event-followup-create-form .event-create-actions { align-items: stretch; flex-direction: column; gap: 10px; }
}

body:not(.login-body) .followup-signal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 10px;
  min-width: 0;
}

body:not(.login-body) .followup-signal-grid div {
  min-width: 0;
  min-height: 44px;
  padding: 7px 9px;
  border-radius: var(--radius-sm);
  background: var(--surface-inset);
}

body:not(.login-body) .followup-signal-grid div:last-child {
  grid-column: 1 / -1;
}

body:not(.login-body) .wf08-recovery-action {
  display: flex;
  justify-content: flex-end;
  padding: 0 14px 16px;
}

body:not(.login-body) .wf08-recovery-action .button {
  min-height: 30px;
  font-size: 10px;
}

@media (max-width: 1280px) {
  body:not(.login-body) .wf08-page .queue-board,
  body:not(.login-body) .wf09-page .queue-board {
    grid-template-columns: minmax(380px, 0.74fr) minmax(580px, 1.26fr);
  }
}

@media (max-width: 1180px) {
  html:has(.wf08-page),
  html:has(.wf09-page) {
    min-width: 0;
  }

  body:not(.login-body):has(.wf08-page) .app-shell,
  body:not(.login-body):has(.wf09-page) .app-shell {
    grid-template-columns: 200px minmax(0, 1fr);
  }

  body:not(.login-body):has(.wf08-page) .sidebar,
  body:not(.login-body):has(.wf09-page) .sidebar {
    width: 200px;
  }

  body:not(.login-body) .wf08-page,
  body:not(.login-body) .wf09-page {
    padding-inline: 16px;
  }

  body:not(.login-body) .wf08-page .queue-board,
  body:not(.login-body) .wf09-page .queue-board {
    grid-template-columns: minmax(250px, 0.7fr) minmax(500px, 1.3fr);
  }
}

@media (max-width: 900px) {
  body:not(.login-body) .wf08-page .queue-board,
  body:not(.login-body) .wf09-page .queue-board {
    grid-template-columns: 1fr;
  }

  body:not(.login-body) .wf08-page .detail-pane,
  body:not(.login-body) .wf09-page .detail-pane {
    position: static;
    max-height: none;
  }

  body:not(.login-body) .reactivation-import-band {
    grid-template-columns: 1fr;
  }

  body:not(.login-body) .reactivation-import-result {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 1280px) {
  body:not(.login-body) .wf02-page .queue-board {
    grid-template-columns: minmax(430px, 0.96fr) minmax(430px, 1.04fr);
  }

  body:not(.login-body) .wf03-page .queue-board {
    grid-template-columns: minmax(460px, 0.92fr) minmax(510px, 1.08fr);
  }
}

body:not(.login-body) .status-pill {
  border-width: 0;
  border-radius: 999px;
  font-weight: 650;
}

/* WF07 approval dossier: compact evidence-first layout aligned with the
   established sales approval card. */
body:not(.login-body) .wf07-page .queue-board {
  grid-template-columns: minmax(430px, 0.82fr) minmax(570px, 1.18fr);
}

body:not(.login-body) .wf07-detail {
  gap: 0;
  padding: 0;
}

body:not(.login-body) .wf07-detail > header {
  padding: 16px 14px 15px;
}

body:not(.login-body) .wf07-detail > header h2 {
  margin-top: 5px;
  font-size: 17px;
}

body:not(.login-body) .wf07-detail > header p {
  margin-top: 3px;
  color: var(--ink-soft);
  line-height: 1.5;
}

body:not(.login-body) .wf07-detail > header p a {
  color: inherit;
  text-decoration: none;
}

body:not(.login-body) .wf07-detail > header p a:hover {
  color: var(--trace);
  text-decoration: underline;
}

body:not(.login-body) .wf07-detail .detail-header-actions {
  align-content: start;
  gap: 7px;
}

body:not(.login-body) .wf07-detail .detail-header-actions > div {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

body:not(.login-body) .wf07-reset,
body:not(.login-body) .wf07-detail-close {
  min-height: 27px;
  padding: 0 8px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink-soft);
  font: inherit;
  font-size: 9px;
  white-space: nowrap;
}

body:not(.login-body) .wf07-reset:hover,
body:not(.login-body) .wf07-detail-close:hover {
  border-color: #7f8a95;
  color: var(--ink);
}

body:not(.login-body) .wf07-reset:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

body:not(.login-body) .wf07-detail > .detail-facts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 10px;
  margin: 12px 14px;
  overflow: visible;
  border: 0;
  border-radius: 0;
}

body:not(.login-body) .wf07-detail > .detail-facts > div,
body:not(.login-body) .wf07-signal-section .detail-facts > div {
  min-height: 46px;
  padding: 8px 9px;
  border: 0;
  background: var(--surface-inset);
}

body:not(.login-body) .wf07-detail .detail-facts dt {
  color: var(--ink-muted);
  font-size: 9px;
}

body:not(.login-body) .wf07-detail .detail-facts dd {
  margin-top: 3px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 650;
}

body:not(.login-body) .wf07-signal-section {
  padding: 12px 14px;
  border-top: 1px solid var(--line);
}

body:not(.login-body) .wf07-signal-section .detail-facts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 10px;
  overflow: visible;
  border: 0;
  border-radius: 0;
}

body:not(.login-body) .wf07-market-editor {
  display: grid;
  gap: 9px;
  padding: 13px 14px 12px;
  border-top: 1px solid var(--line);
}

body:not(.login-body) .wf07-market-editor .detail-section-head,
body:not(.login-body) .wf07-detail .detail-section-head {
  color: var(--trace);
  font-size: 10px;
  font-weight: 760;
}

body:not(.login-body) .wf07-market-editor label {
  display: grid;
  gap: 5px;
}

body:not(.login-body) .wf07-market-editor label > span {
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 650;
}

body:not(.login-body) .wf07-market-editor input {
  min-height: 31px;
  padding-inline: 9px;
  font-size: 10px;
}

body:not(.login-body) .wf07-market-command {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

body:not(.login-body) .wf07-market-command small {
  color: var(--ink-muted);
  font-size: 9px;
}

body:not(.login-body) .wf07-market-command .button {
  min-height: 31px;
  font-size: 10px;
}

body:not(.login-body) .wf07-detail > .detail-section {
  gap: 8px;
  margin: 0;
  padding: 13px 14px 14px;
  border-top: 1px solid var(--line);
}

body:not(.login-body) .wf07-product-bridge {
  background: #f3f6fc;
}

body:not(.login-body) .wf07-product-bridge .detail-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

body:not(.login-body) .wf07-product-bridge .detail-section-head em {
  color: var(--ink-muted);
  font-size: 9px;
  font-style: normal;
}

body:not(.login-body) .wf07-product-bridge dl {
  display: grid;
  gap: 6px;
  margin: 0;
}

body:not(.login-body) .wf07-product-bridge dl > div {
  padding: 8px 9px;
  border: 1px solid #b8cbed;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.7);
}

body:not(.login-body) .wf07-product-bridge dt {
  color: var(--ink-muted);
  font-size: 9px;
}

body:not(.login-body) .wf07-product-bridge dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 10px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

body:not(.login-body) .wf07-draft-preview h3 {
  margin: 0;
  color: var(--ink);
  font-size: 11px;
  font-weight: 720;
}

body:not(.login-body) .wf07-draft-preview > p,
body:not(.login-body) .wf07-ai-basis > p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.6;
  white-space: pre-line;
}

body:not(.login-body) .wf07-empty-detail input:disabled {
  color: var(--ink-muted);
  opacity: 1;
}

body:not(.login-body) .wf07-empty-detail .button:disabled {
  background: #e8edf3;
  color: var(--ink-muted);
  opacity: 1;
}

body:not(.login-body) .wf07-empty-preview {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 29px;
  padding: 0 9px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink-muted);
  font: inherit;
  font-size: 9px;
}

body:not(.login-body) .wf07-preview-trigger {
  margin-top: 8px;
}

body:not(.login-body) .email-preview-modal {
  width: min(760px, calc(100vw - 32px));
  max-width: none;
  max-height: min(86dvh, 760px);
  padding: 0;
  overflow: hidden;
  border: 1px solid #b8cbed;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(16, 35, 60, 0.28);
}

body:not(.login-body) .email-preview-modal::backdrop {
  background: rgba(14, 25, 40, 0.52);
}

body:not(.login-body) .email-preview-modal-shell {
  display: grid;
  min-height: 0;
  max-height: min(86dvh, 760px);
  grid-template-rows: auto minmax(0, 1fr);
}

body:not(.login-body) .email-preview-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--line);
  background: #f7faff;
}

body:not(.login-body) .email-preview-modal-head h2 {
  margin: 5px 0 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

body:not(.login-body) .email-preview-modal-body {
  min-height: 0;
  overflow-y: auto;
  padding: 22px 24px 28px;
  overscroll-behavior: contain;
}

body:not(.login-body) .email-preview-modal-body pre {
  margin: 0;
  color: var(--ink-soft);
  font: inherit;
  font-size: 15px;
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

@media (max-width: 560px) {
  body:not(.login-body) .email-preview-modal {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
  }

  body:not(.login-body) .email-preview-modal-shell {
    max-height: calc(100dvh - 20px);
  }

  body:not(.login-body) .email-preview-modal-head {
    padding: 14px 15px 12px;
  }

  body:not(.login-body) .email-preview-modal-head h2 {
    font-size: 18px;
  }

  body:not(.login-body) .email-preview-modal-body {
    padding: 18px 15px 22px;
  }
}

/* Direction C final binding. Visual tokens only; existing layout remains authoritative. */
body:not(.login-body) {
  --powder: #222526;
  --powder-2: #1d2021;
  --canvas: #f5f6f7;
  --surface: #ffffff;
  --surface-soft: #f8f8f9;
  --surface-inset: #f1f2f3;
  --ink: #181a1d;
  --ink-soft: #484d53;
  --ink-muted: #777d84;
  --line: #dcdfe3;
  --line-soft: #eceef0;
  --line-strong: #c5c9ce;
  --trace: #2a62ee;
  --trace-soft: #edf2ff;
  --success: #1f913f;
  --success-soft: #eef8f0;
  --warning: #e7992c;
  --warning-soft: #fff7e9;
  --danger: #ec534a;
  --danger-soft: #fff1ef;
  --font: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei UI", "Segoe UI", Arial, sans-serif;
  --font-data: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei UI", "Segoe UI", Arial, sans-serif;
  background: #f5f6f7;
  color: #181a1d;
  font-family: var(--font);
}

body:not(.login-body) .sidebar {
  border-right-color: #383c40;
  background: #222526;
  color: #ffffff;
  box-shadow: none;
}

body:not(.login-body) .brand {
  border-bottom-color: #383c40;
  background: #1d2021;
}

body:not(.login-body) .brand-copy strong,
body:not(.login-body) .sidebar-user-primary strong {
  color: #ffffff;
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: 0;
}

body:not(.login-body) .sidebar-user-primary {
  border-color: #3b3f42;
  background: #292c2e;
}

body:not(.login-body) .sidebar-user-primary .user-initial {
  border-color: #505559;
  background: #363a3d;
  color: #ffffff;
}

body:not(.login-body) .sidebar-user-primary small,
body:not(.login-body) .nav-section h2 {
  color: #8f969c;
}

body:not(.login-body) .nav-link {
  color: #d0d4d7;
  font-family: var(--font);
  font-weight: 450;
}

body:not(.login-body) .nav-link:hover {
  background: #303437;
  color: #ffffff;
}

body:not(.login-body) .nav-link.is-active {
  background: #2a62ee;
  color: #ffffff;
  box-shadow: none;
}

body:not(.login-body) .nav-code,
body:not(.login-body) .nav-link.is-active .nav-code {
  color: inherit;
  font-family: var(--font);
  font-weight: 650;
}

body:not(.login-body) .workspace,
body:not(.login-body) .main {
  background: #f5f6f7;
}

body:not(.login-body) .topbar {
  border-bottom-color: #dcdfe3;
  background: #ffffff;
  backdrop-filter: none;
}

body:not(.login-body) .topbar-title strong,
body:not(.login-body) .page-head h1,
body:not(.login-body) .section-head h2,
body:not(.login-body) .detail-content h2,
body:not(.login-body) .detail-empty h2,
body:not(.login-body) .workflow-lane h2,
body:not(.login-body) .job-card h3 {
  color: #181a1d;
  font-family: var(--font);
  font-weight: 650;
  letter-spacing: 0;
}

body:not(.login-body) .topbar-title span,
body:not(.login-body) .owner-select > span,
body:not(.login-body) .page-head h1 span,
body:not(.login-body) .section-head span,
body:not(.login-body) .detail-section-head em,
body:not(.login-body) .muted,
body:not(.login-body) small {
  color: #777d84;
  font-family: var(--font);
}

body:not(.login-body) input,
body:not(.login-body) select,
body:not(.login-body) textarea,
body:not(.login-body) .button,
body:not(.login-body) .icon-button {
  border-color: #cfd3d7;
  border-radius: 4px;
  background: #ffffff;
  color: #34383d;
  font-family: var(--font);
  box-shadow: none;
}

body:not(.login-body) input:focus,
body:not(.login-body) select:focus,
body:not(.login-body) textarea:focus {
  border-color: #2a62ee;
  box-shadow: 0 0 0 3px rgba(42, 98, 238, 0.12);
  outline: 0;
}

body:not(.login-body) .button-primary,
body:not(.login-body) .button-external {
  border-color: #2a62ee;
  background: #2a62ee;
  color: #ffffff;
  box-shadow: none;
}

body:not(.login-body) .button-primary:hover:not(:disabled),
body:not(.login-body) .button-external:hover:not(:disabled) {
  border-color: #1f52d8;
  background: #1f52d8;
  color: #ffffff;
  box-shadow: none;
}

body:not(.login-body) .status-pill.success {
  background: #eef8f0;
  color: #1f913f;
}

body:not(.login-body) .status-pill.running,
body:not(.login-body) .status-pill.warning {
  background: #fff7e9;
  color: #e7992c;
}

body:not(.login-body) .status-pill.error,
body:not(.login-body) .status-pill.danger {
  background: #fff1ef;
  color: #ec534a;
}

body:not(.login-body) .button-danger {
  border-color: #ec534a;
  background: #ec534a;
  color: #ffffff;
}

body:not(.login-body) .button-danger:hover:not(:disabled) {
  border-color: #dc473f;
  background: #dc473f;
  color: #ffffff;
}

/* End Direction C final binding. */

body:not(.login-body) .wf07-ai-basis > small {
  color: var(--ink-muted);
  font-size: 9px;
  line-height: 1.5;
}

@media (max-width: 1180px) {
  html:has(.wf07-page) {
    min-width: 0;
  }

  body:not(.login-body):has(.wf07-page) .app-shell {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  body:not(.login-body):has(.wf07-page) .sidebar {
    width: 210px;
  }

  body:not(.login-body) .wf07-page .queue-board {
    grid-template-columns: minmax(280px, 0.72fr) minmax(430px, 1.28fr);
  }
}

@media (max-width: 900px) {
  body:not(.login-body) .wf07-page .queue-board {
    grid-template-columns: 1fr;
  }
}

.toast {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

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

@media (max-width: 900px) {
  html:has(.wf01-page) {
    min-width: 0;
  }

  body:not(.login-body):has(.wf01-page) .app-shell {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  body:not(.login-body):has(.wf01-page) .sidebar {
    width: 58px;
  }

  body:not(.login-body):has(.wf01-page) .brand {
    justify-content: center;
    padding-inline: 8px;
  }

  body:not(.login-body):has(.wf01-page) .brand-copy,
  body:not(.login-body):has(.wf01-page) .nav-section h2,
  body:not(.login-body):has(.wf01-page) .nav-link > span:last-child {
    display: none;
  }

  body:not(.login-body):has(.wf01-page) .nav {
    padding-inline: 6px;
  }

  body:not(.login-body):has(.wf01-page) .nav-link {
    grid-template-columns: 1fr;
    justify-items: center;
    padding-inline: 4px;
  }

  body:not(.login-body):has(.wf01-page) .topbar {
    padding-inline: 10px;
  }

  body:not(.login-body):has(.wf01-page) .health-state {
    width: 34px;
    padding: 0;
    justify-content: center;
  }

  body:not(.login-body):has(.wf01-page) .health-state b {
    display: none;
  }

  body:not(.login-body) .wf01-page {
    padding: 12px 10px 24px;
  }

  body:not(.login-body) .wf01-page .form-grid-3,
  body:not(.login-body) .wf01-search-preview {
    grid-template-columns: 1fr;
  }

  body:not(.login-body) .wf01-page .automation-plan-status {
    grid-template-columns: 1fr;
  }

  body:not(.login-body) .wf01-page .automation-plan-status span:last-child {
    text-align: left;
  }

  body:not(.login-body) .wf01-page .automation-order {
    overflow-x: auto;
    white-space: nowrap;
  }

  body:not(.login-body) .wf01-page .automation-matrix-progress {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  body:not(.login-body) .wf01-page .automation-matrix-progress progress {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  body:not(.login-body) .wf01-page .automation-current-step {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body:not(.login-body) .wf01-page .automation-current-step div:nth-child(2n) {
    border-right: 0;
  }

  body:not(.login-body) .wf01-page .automation-matrix-selection {
    grid-template-columns: minmax(0, 1fr);
  }

  body:not(.login-body) .wf01-run-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body:not(.login-body) .wf01-page .metric-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body:not(.login-body) .wf01-page .filter-toolbar > label,
  body:not(.login-body) .wf01-page .filter-toolbar > label.filter-search {
    width: 100%;
    min-width: 0;
    flex-basis: 100%;
  }

  body:not(.login-body) .wf01-page .toolbar-actions {
    width: 100%;
    margin-left: 0;
  }

  body:not(.login-body) .wf01-page .toolbar-actions .button {
    flex: 1 1 auto;
  }

  body:not(.login-body) .wf01-page .table-frame {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
  }

  body:not(.login-body) .wf01-results {
    min-width: 760px;
  }
}

/* Keep tablet-width workspaces fluid before the compact layout takes over. */
@media (max-width: 1180px) {
  html {
    min-width: 0;
  }

  body:not(.login-body):has(.page) .app-shell {
    grid-template-columns: 200px minmax(0, 1fr);
  }

  body:not(.login-body):has(.page) .sidebar {
    width: 200px;
  }

  body:not(.login-body) .page .queue-board {
    grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
  }

  body:not(.login-body) .workflow-module-head {
    grid-template-columns: minmax(210px, 1fr) auto minmax(260px, 0.9fr);
  }
}

/* Keep every authenticated route usable for narrow-window verification. */
@media (max-width: 900px) {
  html {
    min-width: 0;
  }

  body:not(.login-body):has(.page) .app-shell {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  body:not(.login-body):has(.page) .sidebar {
    width: 58px;
  }

  body:not(.login-body) .brand {
    justify-content: center;
    padding-inline: 8px;
  }

  body:not(.login-body) .sidebar-brand-logo {
    width: 34px;
    height: 34px;
    object-fit: cover;
    object-position: left center;
  }

  body:not(.login-body) .brand-copy,
  body:not(.login-body) .nav-section h2,
  body:not(.login-body) .topbar-title > span {
    display: none;
  }

  body:not(.login-body) .nav-link > span:last-child,
  body:not(.login-body) .health-state b {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }

  body:not(.login-body) .nav {
    padding-inline: 6px;
  }

  body:not(.login-body) .nav-section + .nav-section {
    margin-top: 7px;
  }

  body:not(.login-body) .nav-link {
    grid-template-columns: 1fr;
    justify-items: center;
    min-height: 44px;
    padding-inline: 4px;
  }

  body:not(.login-body) .workspace,
  body:not(.login-body) .topbar-title,
  body:not(.login-body) .topbar-actions,
  body:not(.login-body) .main,
  body:not(.login-body) .page {
    min-width: 0;
  }

  body:not(.login-body) .topbar {
    gap: 8px;
    padding-inline: 10px;
  }

  body:not(.login-body) .topbar-title {
    overflow: hidden;
  }

  body:not(.login-body) .topbar-title strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body:not(.login-body) .topbar-actions {
    gap: 6px;
    flex: 0 0 auto;
  }

  body:not(.login-body) .health-state {
    width: 34px;
    padding: 0;
    justify-content: center;
  }

  body:not(.login-body) #logout-button {
    min-height: 44px;
  }

  body:not(.login-body) .page {
    gap: 10px;
    padding: 12px 10px 24px;
  }

  body:not(.login-body) #main .page button,
  body:not(.login-body) #main .page input:not([type="checkbox"]):not([type="radio"]),
  body:not(.login-body) #main .page select {
    min-height: 44px;
  }

  body:not(.login-body) .page-head,
  body:not(.login-body) .section-head,
  body:not(.login-body) .detail-content > header {
    flex-wrap: wrap;
  }

  body:not(.login-body) .page .filter-toolbar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
    width: 100%;
  }

  body:not(.login-body) .page .filter-toolbar > label,
  body:not(.login-body) .page .filter-toolbar > label.filter-search {
    width: 100%;
    min-width: 0;
    flex-basis: auto;
  }

  body:not(.login-body) .page .filter-toolbar > label.filter-search,
  body:not(.login-body) .page .toolbar-actions {
    grid-column: 1 / -1;
  }

  body:not(.login-body) .page .toolbar-actions {
    width: 100%;
    margin-left: 0;
  }

  body:not(.login-body) .page .toolbar-actions > .wf02-action-group {
    width: 100%;
    justify-content: flex-start;
  }

  body:not(.login-body) .page .toolbar-actions .button {
    flex: 1 1 auto;
  }

  body:not(.login-body) .wf07-pitch-control {
    width: 100%;
  }

  body:not(.login-body) .page .metric-strip,
  body:not(.login-body) .page .status-strip,
  body:not(.login-body) .safety-strip,
  body:not(.login-body) .wf32-research-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body:not(.login-body) .page .status-summary {
    min-width: 0;
    min-height: 44px;
  }

  body:not(.login-body) .page .job-run-state {
    grid-template-columns: minmax(0, 1fr);
  }

  body:not(.login-body) .loading-skeleton-toolbar,
  body:not(.login-body) .loading-skeleton-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body:not(.login-body) .loading-skeleton-board {
    grid-template-columns: minmax(0, 1fr);
  }

  body:not(.login-body) .loading-skeleton-board > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  body:not(.login-body) .page .queue-board {
    grid-template-columns: minmax(0, 1fr);
  }

  body:not(.login-body) .page .detail-pane {
    position: static;
    max-height: none;
    overflow: visible;
  }

  body:not(.login-body) .page:has(.wf02-bulk-bar) .queue-board {
    height: auto;
    overflow: visible;
  }

  body:not(.login-body) .page:has(.wf02-bulk-bar) .queue-pane,
  body:not(.login-body) .page:has(.wf02-bulk-bar) .detail-pane {
    height: auto;
    max-height: none;
  }

  body:not(.login-body) .page:has(.wf02-bulk-bar) .queue-pane {
    overflow: hidden;
  }

  body:not(.login-body) .wf02-bulk-bar {
    position: static;
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  body:not(.login-body) .wf02-bulk-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  body:not(.login-body) .detail-header-actions,
  body:not(.login-body) .wf08-header-actions {
    width: 100%;
    justify-content: flex-start;
    justify-items: start;
  }

  body:not(.login-body) .detail-header-actions > div,
  body:not(.login-body) .wf07-detail .detail-header-actions > div {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  body:not(.login-body) .wf08-header-actions {
    display: flex;
    flex-wrap: wrap;
  }

  body:not(.login-body) .wf02-detail-close,
  body:not(.login-body) .wf03-detail-close,
  body:not(.login-body) .wf05-detail-close,
  body:not(.login-body) .wf07-detail-close {
    min-width: 44px;
  }

  body:not(.login-body) .workflow-command,
  body:not(.login-body) .workflow-module-head {
    grid-template-columns: minmax(0, 1fr);
    flex-wrap: wrap;
  }

  body:not(.login-body) .segmented {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  body:not(.login-body) .workflow-module-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body:not(.login-body) .job-grid,
  body:not(.login-body) .workflow-module .job-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  body:not(.login-body) .page .filter-toolbar,
  body:not(.login-body) .loading-skeleton-toolbar,
  body:not(.login-body) .page .form-grid,
  body:not(.login-body) .page .form-grid-2,
  body:not(.login-body) .page .form-grid-3,
  body:not(.login-body) .query-preview-block,
  body:not(.login-body) .wf01-search-preview,
  body:not(.login-body) .wf32-source-list {
    grid-template-columns: minmax(0, 1fr);
  }

  body:not(.login-body) .page .form-grid > .span-2 {
    grid-column: auto;
  }

  body:not(.login-body) .wf32-page .report-form label {
    width: 100%;
    min-width: 0;
  }

  body:not(.login-body) .wf32-page .report-form input,
  body:not(.login-body) .wf32-page .report-form select {
    width: 100%;
    min-width: 0;
  }
}

/* Direction C operational final binding. Sidebar navigation is intentionally excluded. */
body:not(.login-body):has(.page) .page {
  gap: 0;
  padding: 0 4px 24px;
  background: #eef2fb;
}

body:not(.login-body):has(.page) .main,
body:not(.login-body):has(.page) .workspace {
  background: #eef2fb;
}

body:not(.login-body):has(.page) .page-head {
  min-height: 44px;
  padding: 0 16px;
  border-bottom: 1px solid #dcdfe3;
  background: #ffffff;
}

body:not(.login-body):has(.page) .page-head h1 {
  font-size: 14px;
}

body:not(.login-body):has(.page) .nav-link {
  grid-template-columns: minmax(0, 1fr);
}

/* Reference shell: narrow navigation below a visually continuous white top layer. */
body:not(.login-body):has(.page) .app-shell {
  grid-template-columns: 140px minmax(0, 1fr);
}

body:not(.login-body):has(.page) .sidebar {
  isolation: isolate;
  width: 140px;
  border-right-color: rgba(194, 202, 255, 0.28);
  background: linear-gradient(180deg, rgba(61, 63, 126, 0.94) 0%, rgba(26, 34, 79, 0.96) 48%, rgba(13, 20, 57, 0.98) 100%);
  color: #d9defb;
  box-shadow: inset -1px 0 rgba(255, 255, 255, 0.09), 8px 0 28px rgba(25, 31, 78, 0.12);
  backdrop-filter: blur(18px) saturate(132%);
  -webkit-backdrop-filter: blur(18px) saturate(132%);
}

body:not(.login-body):has(.page) .sidebar::before {
  position: absolute;
  z-index: -1;
  inset: 64px 0 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.025) 36%, rgba(124, 139, 255, 0.08) 100%);
  content: "";
  pointer-events: none;
}

body:not(.login-body):has(.page) .nav-section h2 {
  color: #aeb7e5;
}

body:not(.login-body):has(.page) .nav-link {
  border: 1px solid transparent;
  border-left-width: 2px;
  border-radius: 6px;
  color: #c8cff1;
  transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease, color 150ms ease;
}

body:not(.login-body):has(.page) .nav-link:hover {
  border-color: rgba(220, 225, 255, 0.2);
  border-left-color: rgba(220, 225, 255, 0.42);
  background: rgba(207, 215, 255, 0.12);
  color: #ffffff;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.09);
}

body:not(.login-body):has(.page) .nav-link.is-active {
  border-color: rgba(215, 221, 255, 0.34);
  border-left-color: #aab2ff;
  background: linear-gradient(135deg, rgba(102, 118, 246, 0.84), rgba(66, 82, 204, 0.72));
  color: #ffffff;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.23), 0 8px 18px rgba(8, 16, 66, 0.22);
}

body:not(.login-body):has(.page) .sidebar-user {
  border-top-color: rgba(218, 224, 255, 0.18);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.05);
}

/* WF02 keeps the queue full-width and opens evidence in a focused side dialog. */
body:not(.login-body):has(.wf02-page) .queue-board.has-modal-detail {
  grid-template-columns: minmax(0, 1fr);
}

body:not(.login-body):has(.wf02-page) .queue-board.has-modal-detail > .queue-pane {
  border-right: 0;
}

body:not(.login-body):has(.wf02-page) .queue-board.is-detail-closed > .detail-pane {
  display: none;
}

body:not(.login-body):has(.wf02-page) .wf02-detail-backdrop {
  position: fixed;
  z-index: 80;
  inset: 0;
  border: 0;
  border-radius: 0;
  background: rgba(20, 27, 56, 0.24);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

body:not(.login-body):has(.wf02-page) .queue-board.has-active-detail > .detail-pane {
  position: fixed;
  z-index: 81;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(720px, calc(100vw - 180px));
  max-height: none;
  overflow-y: auto;
  border: 0;
  border-left: 1px solid rgba(116, 126, 175, 0.22);
  border-radius: 0;
  background: #ffffff;
  box-shadow: -18px 0 44px rgba(19, 27, 67, 0.18);
}

body:not(.login-body):has(.wf02-page) .wf02-detail-close {
  position: sticky;
  z-index: 3;
  top: 12px;
  float: right;
  width: 34px;
  height: 34px;
  margin: 12px 12px -46px 0;
  padding: 0;
  border: 1px solid #d7dce8;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  color: #596275;
  font-size: 22px;
  line-height: 1;
  box-shadow: 0 5px 16px rgba(27, 36, 75, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body:not(.login-body):has(.wf02-page) .wf02-detail-close:hover {
  border-color: #aeb7cf;
  background: #ffffff;
  color: #20283a;
}

body:not(.login-body):has(.page) .brand,
body:not(.login-body):has(.page) .topbar {
  min-height: 64px;
  border-bottom-color: #dfe3e8;
  background: #ffffff;
}

body:not(.login-body):has(.page) .brand {
  padding: 10px 12px;
  border-right: 0;
}

body:not(.login-body):has(.page) .topbar {
  padding: 8px 20px;
  box-shadow: none;
  backdrop-filter: none;
}

body:not(.login-body):has(.page) .sidebar-brand-logo {
  width: 96px;
  max-height: 40px;
}

body:not(.login-body):has(.page) .nav {
  padding-inline: 8px;
}

body:not(.login-body):has(.page) .nav-link {
  min-height: 38px;
  padding-inline: 10px;
}

body:not(.login-body):has(.page) .brand {
  justify-content: center;
  padding: 10px 4px;
  border-bottom-color: #dfe3e8;
  background: #ffffff;
}

body:not(.login-body):has(.page) .sidebar-brand-logo {
  width: 108px;
  height: auto;
  max-height: 46px;
  object-fit: contain;
  object-position: center;
  filter: none;
}

body:not(.login-body):has(.page) .sidebar-brand-wordmark {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  width: 100%;
  max-width: 132px;
  overflow: visible;
  color: #3e4653;
  font-family: Arial, "Helvetica Neue", sans-serif;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
}

body:not(.login-body):has(.page) .sidebar-brand-wordmark strong {
  color: #075cff;
  background: #ffffff;
  font-size: inherit;
  font-weight: 700;
}

body:not(.login-body):has(.page) .sidebar-brand-suffix {
  color: #3e4653;
  font: inherit;
  font-weight: 400;
}

body:not(.login-body):has(.page) .sidebar-brand-product {
  position: relative;
  display: inline-block;
  margin-right: 13px;
  font-size: inherit;
  font-weight: 400;
}

body:not(.login-body):has(.page) .sidebar-brand-product sup {
  position: absolute;
  top: -8px;
  right: -16px;
  box-sizing: border-box;
  min-width: 14px;
  height: 14px;
  padding: 0 1px;
  border: 1px solid #075cff;
  border-radius: 2px;
  color: #075cff;
  background: #ffffff;
  font-size: 8px;
  font-weight: 700;
  line-height: 12px;
  text-align: center;
  z-index: 2;
}
body:not(.login-body):has(.page) .process-rail {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  min-height: 56px;
  border: 0;
  border-bottom: 1px solid #dcdfe3;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

body:not(.login-body):has(.page) .process-step {
  min-height: 56px;
  border: 0;
  border-right: 1px solid #eceef0;
  border-radius: 0;
  background: #ffffff;
}

body:not(.login-body):has(.page) .filter-toolbar {
  min-height: 58px;
  padding: 9px 16px;
  border: 0;
  border-bottom: 1px solid #dcdfe3;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

body:not(.login-body):has(.page) .section-band,
body:not(.login-body):has(.page) .config-workbench {
  padding: 10px 16px;
  border: 0;
  border-bottom: 1px solid #dcdfe3;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

body:not(.login-body):has(.page) .metric-strip,
body:not(.login-body):has(.page) .status-strip {
  border: 0;
  border-bottom: 1px solid #dcdfe3;
  border-radius: 0;
  box-shadow: none;
}

body:not(.login-body):has(.page) .metric,
body:not(.login-body):has(.page) .status-summary {
  min-height: 48px;
}

body:not(.login-body):has(.page) .queue-board,
body:not(.login-body):has(.page) .wf02-page .queue-board,
body:not(.login-body):has(.page) .wf03-page .queue-board,
body:not(.login-body):has(.page) .wf05-page .queue-board,
body:not(.login-body):has(.page) .wf07-page .queue-board,
body:not(.login-body):has(.page) .wf08-page .queue-board,
body:not(.login-body):has(.page) .wf09-page .queue-board {
  grid-template-columns: minmax(520px, 1.05fr) minmax(560px, 0.95fr);
  gap: 0;
  margin-top: 0;
  border: 1px solid #dcdfe3;
  border-top: 0;
  background: #ffffff;
}

body:not(.login-body):has(.page) .queue-pane,
body:not(.login-body):has(.page) .detail-pane {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body:not(.login-body):has(.page) .queue-pane {
  border-right: 1px solid #dcdfe3;
}

body:not(.login-body):has(.page) .queue-pane > .section-head {
  min-height: 44px;
  padding: 8px 12px;
  border-bottom: 1px solid #dcdfe3;
  background: #f2f2f3;
}

body:not(.login-body):has(.page) .queue-row {
  min-height: 48px;
  padding: 6px 10px 6px 6px;
}

body:not(.login-body):has(.page) .detail-content,
body:not(.login-body):has(.page) .detail-empty {
  gap: 0;
  padding: 0;
}

body:not(.login-body):has(.page) .detail-content > header,
body:not(.login-body):has(.page) .detail-empty > div:first-child {
  min-height: 62px;
  padding: 12px 14px;
  border-bottom: 1px solid #dcdfe3;
}

body:not(.login-body):has(.page) .detail-section,
body:not(.login-body):has(.page) .detail-form,
body:not(.login-body):has(.page) .wf07-signal-section,
body:not(.login-body):has(.page) .wf07-market-editor,
body:not(.login-body):has(.page) .wf03-detail .detail-section,
body:not(.login-body):has(.page) .wf03-detail .detail-form,
body:not(.login-body):has(.page) .wf03-contact-profile-facts {
  margin: 0;
  padding: 10px 14px 12px;
  border-top: 1px solid #dcdfe3;
}

body:not(.login-body):has(.page) .detail-section-head {
  min-height: 24px;
  margin: -10px -14px 4px;
  padding: 5px 14px;
  background: #f2f2f3;
}

body:not(.login-body):has(.page) .detail-content > .detail-form:last-child .detail-actions,
body:not(.login-body):has(.page) .reply-review,
body:not(.login-body):has(.page) .event-detail-actions {
  position: sticky;
  bottom: 0;
  z-index: 4;
  min-height: 54px;
  margin: 8px -14px -12px;
  padding: 9px 14px;
  border-top: 1px solid #dcdfe3;
  background: rgba(255, 255, 255, 0.98);
}

body:not(.login-body):has(.page) .wf02-bulk-bar,
body:not(.login-body):has(.page) .wf07-bulk-bar,
body:not(.login-body):has(.page) .wf32-bulk-bar {
  bottom: 0;
  margin: 0;
  border: 1px solid #dcdfe3;
  border-top: 0;
  border-radius: 0;
  box-shadow: none;
}

@media (max-width: 900px) {
  body:not(.login-body):has(.page) .app-shell {
    grid-template-columns: 140px minmax(0, 1fr);
  }

  body:not(.login-body):has(.page) .sidebar {
    width: 140px;
  }

  body:not(.login-body):has(.page) .brand {
    padding: 12px 8px;
  }

  body:not(.login-body):has(.page) .sidebar-brand-logo {
    width: 108px;
    height: auto;
    max-height: 34px;
    object-fit: contain;
    object-position: center;
  }

  body:not(.login-body):has(.page) .sidebar-brand-wordmark {
    font-size: 13px;
  }

  body:not(.login-body):has(.page) .nav-link > span:last-child {
    display: block;
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
  }

  body:not(.login-body) .nav-link {
    justify-items: start;
    padding-inline: 10px;
  }

  body:not(.login-body):has(.page) .page {
    padding: 0 10px 24px;
  }

  body:not(.login-body):has(.page) .process-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body:not(.login-body):has(.page) .queue-board,
  body:not(.login-body):has(.page) .wf02-page .queue-board,
  body:not(.login-body):has(.page) .wf03-page .queue-board,
  body:not(.login-body):has(.page) .wf05-page .queue-board,
  body:not(.login-body):has(.page) .wf07-page .queue-board,
  body:not(.login-body):has(.page) .wf08-page .queue-board,
  body:not(.login-body):has(.page) .wf09-page .queue-board {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 10px;
    border-top: 1px solid #dcdfe3;
  }

  body:not(.login-body):has(.page) .queue-pane {
    border-right: 0;
    border-bottom: 1px solid #dcdfe3;
  }
}

/* End Direction C operational final binding. */

/* WF02 reference workspace: vertical status rail beside the qualification queue. */
body:not(.login-body):has(.wf02-page) .wf02-data-workspace {
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr);
  min-width: 0;
  min-height: 540px;
  border-bottom: 1px solid #dcdfe3;
  background: #ffffff;
}

body:not(.login-body):has(.wf02-page) .wf02-data-workspace > .status-strip {
  display: block;
  align-self: stretch;
  border: 0;
  border-right: 1px solid #dcdfe3;
  background: #ffffff;
}

body:not(.login-body):has(.wf02-page) .wf02-data-workspace .status-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border: 0;
  border-bottom: 1px solid #eef0f2;
  background: transparent;
  color: #35383d;
  text-align: left;
}

body:not(.login-body):has(.wf02-page) .wf02-data-workspace .status-summary span,
body:not(.login-body):has(.wf02-page) .wf02-data-workspace .status-summary strong {
  font-size: 13px;
}

body:not(.login-body):has(.wf02-page) .wf02-data-workspace .status-summary span {
  font-weight: 500;
}

body:not(.login-body):has(.wf02-page) .wf02-data-workspace .status-summary.is-active {
  background: #f3f5f8;
  color: #1e47d8;
  box-shadow: inset 3px 0 0 #4360f7;
}

body:not(.login-body):has(.wf02-page) .wf02-queue-region {
  min-width: 0;
  overflow: hidden;
}

body:not(.login-body):has(.wf02-page) .wf02-queue-region .queue-board {
  margin: 0;
  border: 0;
}

body:not(.login-body):has(.wf02-page) .wf02-queue-region .queue-board.has-modal-detail {
  grid-template-columns: minmax(0, 1fr);
}

body:not(.login-body):has(.wf02-page) .wf02-queue-region .queue-board.has-modal-detail > .queue-pane {
  width: 100%;
  border-right: 0;
}

@media (max-width: 900px) {
  body:not(.login-body):has(.wf02-page) .wf02-data-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  body:not(.login-body):has(.wf02-page) .wf02-data-workspace > .status-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-right: 0;
  }
}

/* WF03 reference workspace: category rail, dense customer table, on-demand detail drawer. */
body:not(.login-body):has(.wf03-page) .wf03-data-workspace {
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr);
  min-height: 540px;
  border-bottom: 1px solid #dcdfe3;
  background: #ffffff;
}

body:not(.login-body):has(.wf03-page) .wf03-data-workspace > .status-strip {
  display: block;
  align-self: stretch;
  border: 0;
  border-right: 1px solid #dcdfe3;
  background: #ffffff;
}

body:not(.login-body):has(.wf03-page) .wf03-data-workspace .status-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border: 0;
  border-bottom: 1px solid #eef0f2;
  background: transparent;
  color: #35383d;
  text-align: left;
}

body:not(.login-body):has(.wf03-page) .wf03-data-workspace .status-summary span {
  font-size: 13px;
  font-weight: 500;
}

body:not(.login-body):has(.wf03-page) .wf03-data-workspace .status-summary strong {
  font-size: 13px;
}

body:not(.login-body):has(.wf03-page) .wf03-data-workspace .status-summary.is-active {
  background: #f3f5f8;
  color: #1e47d8;
  box-shadow: inset 3px 0 0 #4360f7;
}

body:not(.login-body):has(.wf03-page) .wf03-table-region {
  position: relative;
  min-width: 0;
  overflow: hidden;
}

body:not(.login-body):has(.wf03-page) .wf03-table-head {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 1.05fr 0.7fr;
  min-height: 46px;
  padding: 0 54px 0 18px;
  border-bottom: 1px solid #dcdfe3;
  background: #fafafa;
}

body:not(.login-body):has(.wf03-page) .wf03-table-head span {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 0 14px;
  border-right: 1px solid #e3e5e8;
  color: #20242a;
  font-size: 13px;
  font-weight: 700;
}

body:not(.login-body):has(.wf03-page) .wf03-table-head span:last-child {
  border-right: 0;
  justify-content: flex-end;
}

body:not(.login-body):has(.wf03-page) .wf03-page .queue-board {
  display: block;
  position: relative;
  margin: 0;
  border: 0;
  background: #ffffff;
}

body:not(.login-body):has(.wf03-page) .wf03-page .queue-pane {
  border: 0;
}

body:not(.login-body):has(.wf03-page) .wf03-page .queue-pane > .section-head {
  min-height: 50px;
  padding: 9px 16px;
  background: #ffffff;
}

body:not(.login-body):has(.wf03-page) .wf03-page .queue-row {
  grid-template-columns: 1.2fr 0.9fr 1.05fr 0.7fr;
  min-height: 58px;
  padding: 6px 14px 6px 4px;
}

body:not(.login-body):has(.wf03-page) .wf03-page .queue-row strong,
body:not(.login-body):has(.wf03-page) .wf03-page .queue-row b {
  color: #20242a;
  font-size: 13px;
  font-weight: 650;
}

body:not(.login-body):has(.wf03-page) .wf03-page .queue-row small {
  font-size: 10px;
}

body:not(.login-body):has(.wf03-page) .wf03-page .detail-pane {
  display: none;
}

body:not(.login-body):has(.wf03-page) .wf03-page .queue-board.has-active-detail .detail-pane {
  display: block;
  position: fixed;
  z-index: 40;
  top: 64px;
  right: 0;
  bottom: 0;
  width: min(610px, calc(100vw - 140px));
  max-height: none;
  overflow: auto;
  border-left: 1px solid #d3d7dd;
  background: #ffffff;
  box-shadow: -14px 0 30px rgba(30, 36, 45, 0.16);
}

body:not(.login-body):has(.wf03-page) .wf03-page .wf03-detail-close {
  width: 36px;
  min-height: 36px;
}

@media (max-width: 900px) {
  body:not(.login-body):has(.wf03-page) .wf03-data-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  body:not(.login-body):has(.wf03-page) .wf03-data-workspace > .status-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-right: 0;
  }

  body:not(.login-body):has(.wf03-page) .wf03-table-head {
    display: none;
  }

  body:not(.login-body):has(.wf03-page) .wf03-page .queue-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Keep the WF07 approval workspace flush with the bottom of the viewport. */
@media (min-width: 901px) {
  body:not(.login-body):has(.wf07-page) .wf07-page {
    height: calc(100dvh - 64px);
    min-height: 0;
    grid-template-rows: auto auto auto auto minmax(0, 1fr) auto;
  }

  body:not(.login-body):has(.wf07-page) .wf07-page .queue-board {
    height: 100%;
    min-height: 0;
  }
}

@media (max-width: 900px) {
  body:not(.login-body):has(.wf07-page) .wf07-page {
    height: auto;
    min-height: 0;
    grid-template-rows: none;
  }

  body:not(.login-body):has(.wf07-page) .wf07-page .queue-board {
    height: auto;
    min-height: 0;
  }
}

/* Kewi tenant login: global B2B market network. */
html.login-page {
  min-width: 0;
  background: #e8edf3;
}

.login-body {
  min-width: 0;
  min-height: 100svh;
  overflow: auto;
  padding: clamp(18px, 3vw, 42px);
  background:
    linear-gradient(#dce3eb 1px, transparent 1px),
    linear-gradient(90deg, #dce3eb 1px, transparent 1px),
    #e8edf3;
  background-size: 42px 42px;
  color: #18202a;
  font-family: "Microsoft YaHei UI", "PingFang SC", sans-serif;
}

.login-body .login-shell {
  display: grid;
  grid-template-columns: minmax(540px, 1.16fr) minmax(440px, 0.84fr);
  width: min(1440px, 100%);
  min-height: min(820px, calc(100svh - clamp(36px, 6vw, 84px)));
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #c9d1db;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(25, 36, 52, 0.16);
}

.login-body .login-brand {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto minmax(480px, 1fr) auto;
  min-width: 0;
  overflow: hidden;
  padding: 38px 42px 34px;
  background: #0d1724;
  color: #f5f9ff;
}

.login-body .login-brand::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(rgba(98, 153, 211, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(98, 153, 211, 0.07) 1px, transparent 1px);
  background-size: 44px 44px;
  content: "";
}

.login-body .login-brand::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(19, 54, 88, 0.45), transparent 42%),
    linear-gradient(315deg, rgba(5, 79, 70, 0.3), transparent 38%);
  content: "";
}

.kewi-brand-header {
  position: relative;
  z-index: 5;
  display: grid;
  justify-items: start;
  gap: 16px;
}

.kewi-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-height: 48px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
}

.kewi-group-logo {
  display: block;
  width: auto;
  height: 31px;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.kewi-brand-divider {
  width: 1px;
  height: 26px;
  background: rgba(255, 255, 255, 0.2);
}

.kewi-logo {
  display: block;
  width: auto;
  height: 41px;
  filter: brightness(0) invert(1);
}

.kewi-brand-header h2 {
  margin: 0;
  color: #ffffff;
  font-size: 27px;
  font-weight: 760;
  line-height: 1.2;
  letter-spacing: 0;
}

.kewi-brand-header h2 span {
  margin-right: 7px;
  color: #76e3ff;
  font-weight: 420;
}

.kewi-market-visual {
  position: relative;
  align-self: center;
  justify-self: center;
  width: min(100%, 650px);
  aspect-ratio: 6 / 5;
  margin: 14px 0 8px;
}

.market-routes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.market-orbit,
.route-base,
.route-stream {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.market-orbit {
  stroke: rgba(111, 171, 225, 0.11);
  stroke-width: 1;
  stroke-dasharray: 3 7;
}

.route-base {
  stroke: rgba(95, 161, 220, 0.22);
  stroke-width: 1.3;
}

.route-stream {
  stroke: url(#kewi-route);
  stroke-width: 2;
  stroke-dasharray: 24 210;
  animation: kewi-data-stream 6s linear infinite;
}

@keyframes kewi-data-stream {
  to { stroke-dashoffset: -468; }
}

.market-node {
  position: absolute;
  z-index: 3;
  display: grid;
  justify-items: center;
  min-width: 92px;
  color: #8fb7db;
  transform: translate(-50%, -50%);
}

.market-node i {
  display: block;
  width: 9px;
  height: 9px;
  border: 2px solid #72c3ff;
  border-radius: 50%;
  background: #f8fcff;
  box-shadow: 0 0 0 4px rgba(61, 151, 223, 0.12), 0 0 18px rgba(85, 187, 255, 0.75);
  animation: kewi-node-pulse 2.8s ease-in-out infinite alternate;
}

.market-node strong,
.market-node span {
  margin-top: 7px;
  font-family: "Segoe UI", sans-serif;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.market-node span {
  margin-top: 2px;
  color: #5f89ad;
  font-size: 7px;
}

.market-hq { left: 50%; top: 50%; color: #ffffff; }
.market-hq i {
  width: 19px;
  height: 19px;
  border: 0;
  background: #42e2b1;
  box-shadow: 0 0 0 8px rgba(66, 226, 177, 0.09), 0 0 32px rgba(66, 226, 177, 0.82);
}
.market-hq strong { font-size: 10px; }
.market-na { left: 82%; top: 19%; }
.market-eu { left: 17%; top: 23%; }
.market-me { left: 14%; top: 52%; }
.market-la { left: 88%; top: 47%; }
.market-af { left: 29%; top: 82%; }
.market-ap { left: 65%; top: 84%; }
.market-oc { left: 86%; top: 69%; }

@keyframes kewi-node-pulse {
  from { opacity: 0.72; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1.16); }
}

.kewi-category {
  position: absolute;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 3px;
  color: rgba(118, 186, 226, 0.22);
}

.kewi-category svg {
  width: 64px;
  height: 64px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.kewi-category span {
  font-family: "Segoe UI", sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.category-garden { left: 1%; top: 1%; transform: rotate(-8deg); }
.category-living { right: 0; top: 1%; transform: rotate(8deg); }
.category-pet { left: 0; bottom: 0; transform: rotate(7deg); }
.category-appliance { right: 0; bottom: 0; transform: rotate(-8deg); }

.login-body .login-entry {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 64px clamp(42px, 6vw, 88px);
  background: #ffffff;
}

.login-body .login-entry::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 110px;
  height: 110px;
  border-top: 2px solid #2a62ee;
  border-right: 2px solid #2a62ee;
  content: "";
}

.login-body .login-entry-inner {
  width: min(410px, 100%);
}

.login-body .login-form {
  display: grid;
  gap: 23px;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.login-body .login-heading {
  display: grid;
  gap: 12px;
  margin-bottom: 13px;
}

.login-body .login-heading .section-code {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #2a62ee;
  font-family: "Segoe UI", sans-serif;
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.09em;
}

.login-body .login-heading .section-code i {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 0;
  background: #2a62ee;
}

.login-body .login-heading h1 {
  margin: 0;
  color: #18202a;
  font-size: 34px;
  font-weight: 760;
  line-height: 1.2;
  letter-spacing: 0;
}

.login-body .login-heading p {
  margin: 0;
  color: #69727d;
  font-size: 14px;
  line-height: 1.7;
}

.login-body .login-field {
  display: grid;
  gap: 9px;
}

.login-body .login-field > label {
  color: #313943;
  font-size: 13px;
  font-weight: 650;
}

.login-body .login-input-shell {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 54px;
  overflow: hidden;
  border: 1px solid #d8dde4;
  border-radius: 6px;
  background: #f8fafc;
  box-shadow: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.login-body .login-input-shell:hover {
  border-color: #aeb7c2;
  background: #ffffff;
}

.login-body .login-input-shell:focus-within {
  border-color: #2a62ee;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(42, 98, 238, 0.12);
}

.login-body .login-input-shell > svg {
  width: 18px;
  height: 18px;
  margin-left: 15px;
  fill: none;
  stroke: #7a8490;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-body .login-input-shell input {
  width: 100%;
  min-width: 0;
  height: 52px;
  padding: 0 12px 0 4px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #18202a;
  font: inherit;
  font-size: 14px;
}

.login-body .login-input-shell input::placeholder { color: #99a1aa; }

.login-body .password-toggle {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-right: 5px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #69727d;
  cursor: pointer;
}

.login-body .password-toggle:hover,
.login-body .password-toggle:focus-visible {
  background: #edf1f5;
  color: #18202a;
  outline: 0;
}

.login-body .password-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-body .password-toggle[aria-pressed="false"] .eye-closed,
.login-body .password-toggle[aria-pressed="true"] .eye-open { display: none; }

.login-body .form-error {
  min-height: 20px;
  margin: -6px 0 -4px;
  color: #c63737;
  font-size: 13px;
  line-height: 1.5;
}

.login-body .button-wide {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  overflow: hidden;
  border: 0;
  border-radius: 6px;
  background: #2a62ee;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(42, 98, 238, 0.2);
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.login-body .button-wide:hover:not(:disabled) {
  background: #164fdc;
  box-shadow: 0 15px 28px rgba(42, 98, 238, 0.28);
  transform: translateY(-1px);
}

.login-body .button-wide:focus-visible {
  outline: 3px solid rgba(42, 98, 238, 0.24);
  outline-offset: 3px;
}

.login-body .button-wide:disabled { cursor: wait; opacity: 0.68; }
.login-body .login-submit-arrow { font-size: 19px; transition: transform 160ms ease; }
.login-body .button-wide:hover .login-submit-arrow { transform: translateX(4px); }
.login-body .login-submit-spinner {
  display: none;
  width: 17px;
  height: 17px;
  border: 2px solid rgba(255, 255, 255, 0.34);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: kewi-spin 700ms linear infinite;
}
.login-body .button-wide.is-loading .login-submit-arrow { display: none; }
.login-body .button-wide.is-loading .login-submit-spinner { display: block; }
@keyframes kewi-spin { to { transform: rotate(360deg); } }

.login-body .login-security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: -2px 0 0;
  color: #7a8490;
  font-size: 11px;
}

.login-body .login-security-note svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: #4f9b78;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-body .login-footer {
  margin-top: 58px;
  color: #a1a8b0;
  font-family: "Segoe UI", sans-serif;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-align: center;
}

.login-body .login-footer span { margin: 0 3px; }

@media (max-width: 1080px) {
  .login-body .login-shell { grid-template-columns: minmax(480px, 1.05fr) minmax(400px, 0.95fr); }
  .login-body .login-brand { padding-inline: 32px; }
  .login-body .login-entry { padding-inline: 42px; }
}

@media (max-width: 860px) {
  .login-body { padding: 0; background: #ffffff; }
  .login-body .login-shell {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    min-height: 100svh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .login-body .login-brand { display: none; }
  .login-body .login-entry { min-height: 100svh; padding: 48px 24px; }
  .login-body .login-entry::before { width: 68px; height: 68px; }
  .login-body .login-footer { margin-top: 46px; }
}

@media (max-width: 420px) {
  .login-body .login-entry { padding: 40px 20px; }
  .login-body .login-heading h1 { font-size: 30px; }
  .login-body .login-heading .section-code { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .route-stream,
  .market-node i,
  .login-body .login-submit-spinner { animation: none; }
}

/* Event follow-up is used from phones on the exhibition floor. */
@media (max-width: 600px) {
  body:not(.login-body):has(.event-followup-page) .app-shell {
    display: block;
    padding-bottom: 62px;
  }

  body:not(.login-body):has(.event-followup-page) .sidebar {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 50;
    display: block;
    width: 100%;
    height: 62px;
    min-height: 0;
    overflow-x: auto;
    overflow-y: hidden;
    border-top: 1px solid rgba(255,255,255,0.16);
  }

  body:not(.login-body):has(.event-followup-page) .sidebar .brand,
  body:not(.login-body):has(.event-followup-page) .sidebar .nav-section h2,
  body:not(.login-body):has(.event-followup-page) .sidebar .sidebar-user,
  body:not(.login-body):has(.event-followup-page) .sidebar .sidebar-footer {
    display: none;
  }

  body:not(.login-body):has(.event-followup-page) .sidebar nav,
  body:not(.login-body):has(.event-followup-page) .sidebar .nav-section {
    display: flex;
    width: max-content;
    height: 100%;
    gap: 2px;
  }

  body:not(.login-body):has(.event-followup-page) .sidebar .nav-link {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    min-width: 86px;
    height: 100%;
    padding: 8px 10px;
    font-size: 11px;
    text-align: center;
  }

  body:not(.login-body):has(.event-followup-page) .workspace,
  body:not(.login-body):has(.event-followup-page) .main,
  body:not(.login-body):has(.event-followup-page) .page {
    width: 100%;
    min-width: 0;
  }

  body:not(.login-body):has(.event-followup-page) .page {
    padding: 12px;
    overflow-x: hidden;
  }

  body:not(.login-body):has(.event-followup-page) .event-followup-toolbar,
  body:not(.login-body):has(.event-followup-page) .event-followup-upload,
  body:not(.login-body):has(.event-followup-page) .event-followup-summary,
  body:not(.login-body):has(.event-followup-page) .event-followup-card-list {
    padding: 14px;
  }
}

/* Login page final layout pass. Keep the tenant artwork, but make the access flow the primary task. */
html.login-page,
html.login-page body.login-body {
  min-width: 0;
}

.login-body .login-shell {
  width: min(1320px, 100%);
  min-height: min(760px, calc(100svh - 48px));
  grid-template-columns: minmax(0, 1.04fr) minmax(420px, 0.96fr);
  border-radius: 10px;
}

.login-body .login-brand {
  grid-template-rows: auto minmax(360px, 1fr);
  padding: 34px 38px 30px;
}

.login-body .kewi-brand-lockup { gap: 12px; padding: 7px 12px; }
.login-body .kewi-group-logo { height: 27px; }
.login-body .kewi-logo { height: 36px; }
.login-body .kewi-brand-header h2 { font-size: clamp(24px, 2.2vw, 30px); }
.login-body .kewi-market-visual { width: min(100%, 590px); margin-top: 4px; }

.login-body .login-entry { padding: 52px clamp(42px, 5vw, 72px); }
.login-body .login-entry-inner { width: min(430px, 100%); }
.login-body .login-form { gap: 21px; }
.login-body .login-heading { gap: 10px; margin-bottom: 12px; }
.login-body .login-heading h1 { font-size: clamp(32px, 3vw, 40px); letter-spacing: -0.02em; }
.login-body .login-heading p { font-size: 15px; }
.login-body .login-field { gap: 8px; }
.login-body .login-field > label { font-size: 14px; }
.login-body .login-input-shell { min-height: 58px; background: #f7f9fb; }
.login-body .login-input-shell input { height: 56px; font-size: 15px; }
.login-body .button-wide { min-height: 58px; font-size: 16px; }
.login-body .login-security-note { font-size: 12px; }

@media (max-width: 900px) {
  .login-body { padding: 0; overflow: auto; background: #fff; }
  .login-body .login-shell {
    width: 100%;
    min-height: 100svh;
    grid-template-columns: minmax(0, 1fr);
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .login-body .login-brand { display: none; }
  .login-body .login-entry { width: 100%; min-height: 100svh; padding: 56px 24px 42px; }
  .login-body .login-entry-inner { width: min(460px, 100%); }
  .login-body .login-entry::before { width: 72px; height: 72px; }
  .login-body .login-footer { margin-top: 44px; }
}

@media (max-width: 480px) {
  .login-body .login-entry { padding: 44px 20px 32px; }
  .login-body .login-heading h1 { font-size: 32px; }
  .login-body .login-heading p { font-size: 14px; }
  .login-body .login-form { gap: 19px; }
}

/* Yumi legacy login entry: match the CORNCOMP eco-packaging brand. */
html.login-page { background: #f5f7f3; }
.login-body {
  background: linear-gradient(rgba(21, 59, 45, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(21, 59, 45, .055) 1px, transparent 1px), #f5f7f3;
  background-size: 42px 42px;
  color: #153b2d;
  font-family: "DM Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
}
.login-body .login-shell { border-color: #dae0d9; border-radius: 4px; box-shadow: 0 24px 70px rgba(22, 61, 48, .16); }
.login-body .login-brand { background: #163d30; }
.login-body .login-brand::after { background: linear-gradient(135deg, rgba(23, 139, 77, .36), transparent 48%), linear-gradient(315deg, rgba(213, 244, 106, .14), transparent 42%); }
.login-body .kewi-brand-lockup { min-height: 72px; padding: 8px 16px; border-color: rgba(213, 244, 106, .34); border-radius: 3px; background: #f5f7f3; box-shadow: 0 12px 28px rgba(5, 36, 23, .18); }
.login-body .kewi-logo { height: 58px; max-width: 168px; filter: none; }
.login-body .kewi-brand-header h2 span { color: #d5f46a; }
.login-body .market-orbit, .login-body .route-base { stroke: rgba(213, 244, 106, .2); }
.login-body .route-stream { stroke: url(#yumi-route); }
.login-body .market-node { color: #c7e1ca; }
.login-body .market-node i { border-color: #d5f46a; box-shadow: 0 0 0 4px rgba(213, 244, 106, .14), 0 0 18px rgba(213, 244, 106, .6); }
.login-body .market-hq { color: #fff; }
.login-body .login-heading .section-code { color: #5e813b; }
.login-body .login-input-shell { border-color: #dae0d9; background: #f5f7f3; }
.login-body .login-input-shell:focus-within { border-color: #6e8d40; box-shadow: 0 0 0 3px rgba(110, 141, 64, .14); }
.login-body .button-wide { border-color: #163d30; background: #163d30; box-shadow: 0 12px 24px rgba(22, 61, 48, .18); }
.login-body .button-wide:hover:not(:disabled) { background: #2b5340; }

/* Dedicated Yumi left panel: paper-packaging editorial composition. */
.login-body .login-brand {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto minmax(390px, 1fr);
  padding: clamp(28px, 4vw, 52px);
  overflow: hidden;
  background: #163d30;
}
.login-body .login-brand::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: radial-gradient(circle at 12% 12%, rgba(213, 244, 106, .22), transparent 30%), radial-gradient(circle at 85% 82%, rgba(23, 139, 77, .42), transparent 38%);
  content: "";
}
.login-body .login-brand::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(213, 244, 106, .075) 1px, transparent 1px), linear-gradient(90deg, rgba(213, 244, 106, .075) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
}
.login-body .yumi-brand-header { position: relative; z-index: 2; display: grid; gap: 13px; }
.login-body .yumi-brand-lockup {
  display: flex;
  width: fit-content;
  min-width: 184px;
  min-height: 86px;
  align-items: center;
  justify-content: flex-start;
  padding: 8px 13px;
  border: 1px solid rgba(213, 244, 106, .55);
  border-radius: 5px;
  background: #fffdf7;
  box-shadow: 0 16px 32px rgba(4, 29, 20, .28), 0 0 0 5px rgba(255, 253, 247, .08);
}
.login-body .yumi-logo {
  display: block !important;
  width: 158px !important;
  height: auto !important;
  max-width: none !important;
  max-height: 72px !important;
  object-fit: contain !important;
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
}
.login-body .yumi-brand-header h2 { margin: 18px 0 0; color: #fff; font-size: clamp(24px, 2.6vw, 37px); font-weight: 500; line-height: 1.18; letter-spacing: 0; }
.login-body .yumi-brand-header h2 span { display: inline-block; }
.login-body .yumi-ai-mark { margin-right: 9px; color: #d5f46a; font-weight: 800; letter-spacing: .08em; text-shadow: 0 0 18px rgba(213, 244, 106, .26); }
.login-body .yumi-title-rest { color: #fff; }
.login-body .yumi-packaging-visual { position: relative; z-index: 1; min-height: 390px; margin: 22px calc(clamp(28px, 4vw, 52px) * -1) calc(clamp(28px, 4vw, 52px) * -1); overflow: hidden; }
.login-body .yumi-packaging-visual::before { position: absolute; top: 0; left: 0; right: 0; height: 92px; z-index: 2; background: linear-gradient(180deg, #163d30 0%, rgba(22, 61, 48, .9) 24%, rgba(22, 61, 48, .35) 68%, transparent 100%); content: ""; pointer-events: none; }
.login-body .yumi-packaging-visual::after { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 0, transparent 78%, rgba(22, 61, 48, .34) 100%); content: ""; pointer-events: none; }
.login-body .yumi-packaging-visual img { display: block; width: 100%; height: 100%; min-height: 390px; object-fit: cover; object-position: 54% center; }
@media (max-width: 760px) {
  .login-body .login-brand { grid-template-rows: auto minmax(220px, 1fr); min-height: 470px; }
  .login-body .yumi-packaging-visual { min-height: 220px; }
  .login-body .yumi-packaging-visual img { min-height: 220px; }
}

/* Final Yumi access surface: a clean vector lockup and a tactile paper-white form. */
.login-body .login-brand {
  display: block;
  padding: 0;
  background: #163d30;
}
.login-body .login-brand::before {
  background: linear-gradient(180deg, rgba(7, 32, 24, .94) 0%, rgba(12, 48, 34, .74) 25%, rgba(22, 61, 48, .12) 54%, rgba(8, 33, 25, .24) 100%), linear-gradient(135deg, rgba(213, 244, 106, .14), transparent 44%);
}
.login-body .login-brand::after {
  inset: 0;
  right: auto;
  bottom: auto;
  width: auto;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  z-index: -1;
  background-image: linear-gradient(rgba(213, 244, 106, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(213, 244, 106, .045) 1px, transparent 1px);
  background-size: 52px 52px;
  mix-blend-mode: screen;
  opacity: .7;
}
.login-body .yumi-brand-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 4;
  display: block;
  padding: clamp(24px, 3.2vw, 40px) clamp(24px, 3.2vw, 40px) 0;
}
.login-body .yumi-brand-lockup {
  display: block;
  width: fit-content;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.login-body .yumi-brand-header h2 { margin: 14px 0 0; font-size: clamp(24px, 2.45vw, 35px); line-height: 1.12; white-space: nowrap; }
.login-body .yumi-packaging-visual {
  position: absolute;
  inset: 0;
  z-index: 1;
  min-height: 0;
  margin: 0;
  overflow: hidden;
}
.login-body .yumi-packaging-visual::before {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  height: auto;
  background: linear-gradient(180deg, rgba(8, 33, 24, .8) 0%, rgba(22, 61, 48, .2) 42%, transparent 66%);
  content: "";
  pointer-events: none;
}
.login-body .yumi-packaging-visual::after {
  background: linear-gradient(180deg, rgba(10, 37, 27, .08) 0%, transparent 32%, rgba(8, 31, 23, .18) 100%);
}
.login-body .yumi-packaging-visual img {
  width: 100%;
  min-height: 0;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  object-position: 52% center;
  filter: saturate(.94) contrast(1.04);
}
.login-body .login-entry {
  position: relative;
  isolation: isolate;
  background: #eef2ed;
}
.login-body .login-entry::before {
  position: absolute;
  inset: 18px;
  z-index: -1;
  border: 1px solid rgba(22, 61, 48, .08);
  border-radius: 14px;
  content: "";
}
.login-body .login-entry-inner { width: min(470px, 100%); }
.login-body .login-form {
  position: relative;
  overflow: hidden;
  padding: 42px 44px 36px;
  border: 1px solid rgba(22, 61, 48, .14);
  border-radius: 16px;
  background: rgba(255, 255, 253, .94);
  box-shadow: 0 28px 72px rgba(22, 61, 48, .14), 0 3px 10px rgba(22, 61, 48, .06);
}
.login-body .login-form::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: #d5f46a;
  content: "";
}
.login-body .login-heading {
  gap: 10px;
  margin-bottom: 15px;
  padding-bottom: 21px;
  border-bottom: 1px solid rgba(22, 61, 48, .1);
}
.login-body .login-heading .section-code { color: #557b43; letter-spacing: .12em; }
.login-body .login-heading .section-code i { background: #168b4d; box-shadow: 0 0 0 4px rgba(22, 139, 77, .12); }
.login-body .login-heading h1 { color: #163d30; font-size: 38px; font-weight: 700; letter-spacing: -.025em; }
.login-body .login-heading p { color: #65736b; font-size: 14px; }
.login-body .login-field > label { color: #294b3d; font-size: 13px; letter-spacing: .02em; }
.login-body .login-input-shell {
  min-height: 60px;
  border-color: #d6dfd8;
  border-radius: 9px;
  background: #f8faf7;
}
.login-body .login-input-shell:hover { border-color: #a6bca8; }
.login-body .login-input-shell:focus-within {
  border-color: #168b4d;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(22, 139, 77, .12), 0 8px 20px rgba(22, 61, 48, .06);
}
.login-body .login-input-shell > svg { color: #789083; }
.login-body .login-input-shell input { height: 58px; color: #163d30; }
.login-body .button-wide {
  min-height: 60px;
  margin-top: 7px;
  border-color: #163d30;
  border-radius: 9px;
  background: #163d30;
  box-shadow: 0 12px 22px rgba(22, 61, 48, .2), inset 0 1px 0 rgba(255, 255, 255, .12);
  font-size: 15px;
  letter-spacing: .04em;
}
.login-body .button-wide:hover:not(:disabled) { border-color: #0f2e24; background: #0f2e24; box-shadow: 0 16px 28px rgba(22, 61, 48, .26); }
.login-body .login-security-note { color: #718078; }
.login-body .login-footer { color: #799087; }
.login-body .yumi-logo {
  width: 132px !important;
  max-height: 88px !important;
  image-rendering: auto;
}
@media (max-width: 900px) {
  .login-body .login-entry::before { inset: 0; border: 0; border-radius: 0; }
  .login-body .login-form { border-radius: 14px; }
}
