.operator-page {
  --operator-surface: var(--surface, #ffffff);
  --operator-surface-2: var(--surface-2, #f1f5f9);
  --operator-ink: var(--ink, #0f172a);
  --operator-muted: var(--muted, #64748b);
  --operator-line: var(--line, #e2e8f0);
  --operator-accent: var(--accent, #4f46e5);
  --operator-accent-soft: var(--accent-soft, #eef2ff);
  --operator-danger: var(--danger, #be123c);
  --operator-warning: var(--warning, #a76712);
  --operator-success: var(--success, #047857);
  --operator-radius: var(--radius, 16px);
  color: var(--operator-ink);
  display: grid;
  gap: 22px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 6px 0 40px;
}

.operator-page *,
.operator-page *::before,
.operator-page *::after {
  box-sizing: border-box;
}

.operator-page-heading {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.operator-eyebrow {
  color: var(--operator-accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.4;
  margin: 0 0 7px;
  text-transform: uppercase;
}

.operator-page-heading h1 {
  color: var(--operator-ink);
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 0;
}

.operator-greeting {
  color: var(--operator-muted);
  font-size: 0.9rem;
  margin: -8px 0 0;
}

.operator-snapshot {
  background: var(--operator-surface);
  border: 1px solid var(--operator-line);
  border-radius: 999px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 16px;
  text-align: right;
}

.operator-snapshot strong {
  font-size: 0.76rem;
}

.operator-snapshot span {
  color: var(--operator-muted);
  font-size: 0.7rem;
}

.operator-snapshot--stale strong,
.operator-snapshot--unknown strong {
  color: var(--operator-warning);
}

.operator-snapshot--current strong {
  color: var(--operator-success);
}

.operator-layout {
  align-items: start;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.9fr);
}

.operator-primary,
.operator-aside {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.operator-card {
  background: var(--operator-surface);
  border: 1px solid var(--operator-line);
  border-radius: var(--operator-radius);
  box-shadow: 0 10px 28px rgb(15 23 42 / 4%);
  min-width: 0;
  padding: clamp(18px, 2vw, 26px);
}

.operator-section-heading {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: space-between;
  margin-bottom: 20px;
}

.operator-section-heading h2 {
  font-size: 1.18rem;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0;
}

.operator-section-note,
.operator-help {
  color: var(--operator-muted);
  font-size: 0.78rem;
  line-height: 1.45;
  margin: 0;
}

.operator-section-note {
  max-width: 230px;
  text-align: right;
}

.operator-notice {
  align-items: start;
  background: var(--operator-surface-2);
  border: 1px solid var(--operator-line);
  border-radius: calc(var(--operator-radius) - 5px);
  color: var(--operator-muted);
  display: flex;
  flex-direction: column;
  font-size: 0.84rem;
  gap: 5px;
  line-height: 1.5;
  padding: 14px 16px;
}

.operator-notice strong {
  color: var(--operator-ink);
  font-size: 0.9rem;
}

.operator-notice--warning {
  background: color-mix(in srgb, var(--operator-warning) 8%, var(--operator-surface));
  border-color: color-mix(in srgb, var(--operator-warning) 26%, var(--operator-line));
}

.operator-notice--warning strong {
  color: var(--operator-warning);
}

.operator-notice--danger {
  background: color-mix(in srgb, var(--operator-danger) 7%, var(--operator-surface));
  border-color: color-mix(in srgb, var(--operator-danger) 25%, var(--operator-line));
}

.operator-notice--danger strong {
  color: var(--operator-danger);
}

.operator-notice--success {
  background: color-mix(in srgb, var(--operator-success) 8%, var(--operator-surface));
  border-color: color-mix(in srgb, var(--operator-success) 25%, var(--operator-line));
}

.operator-notice--success strong {
  color: var(--operator-success);
}

.operator-status-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.operator-status-tile {
  background: var(--operator-surface-2);
  border: 1px solid var(--operator-line);
  border-radius: calc(var(--operator-radius) - 5px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 123px;
  padding: 15px;
}

.operator-status-tile--good {
  background: color-mix(in srgb, var(--operator-success) 7%, var(--operator-surface));
  border-color: color-mix(in srgb, var(--operator-success) 22%, var(--operator-line));
}

.operator-status-tile--pending {
  background: color-mix(in srgb, var(--operator-warning) 5%, var(--operator-surface));
}

.operator-status-caption {
  color: var(--operator-muted);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.operator-status-value {
  font-size: 1rem;
  line-height: 1.2;
}

.operator-status-detail {
  color: var(--operator-muted);
  font-size: 0.75rem;
  line-height: 1.45;
}

.operator-session-meta,
.operator-call-details,
.operator-attributes {
  display: grid;
  gap: 15px 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 18px 0 0;
}

.operator-attributes {
  border-top: 1px solid var(--operator-line);
  padding-top: 18px;
}

.operator-field {
  min-width: 0;
}

.operator-field-label,
.operator-field-value {
  margin: 0;
}

.operator-field-label {
  color: var(--operator-muted);
  font-size: 0.72rem;
  margin-bottom: 5px;
}

.operator-field-value {
  font-size: 0.83rem;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.operator-action-row {
  align-items: center;
  border-top: 1px solid var(--operator-line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
}

.operator-action-hint {
  color: var(--operator-muted);
  flex: 1 1 180px;
  font-size: 0.73rem;
  line-height: 1.45;
}

.operator-button {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.25;
  min-height: 39px;
  padding: 9px 14px;
  transition: background 120ms ease, transform 120ms ease;
}

.operator-button:not(:disabled):hover {
  transform: translateY(-1px);
}

.operator-button:focus-visible,
.operator-select:focus-visible,
.operator-input:focus-visible {
  outline: 3px solid var(--operator-accent);
  outline-offset: 2px;
}

.operator-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.operator-button--primary {
  background: var(--operator-accent);
  color: #fff;
}

.operator-button--secondary {
  background: var(--operator-accent-soft);
  border-color: color-mix(in srgb, var(--operator-accent) 22%, var(--operator-line));
  color: var(--operator-accent);
}

.operator-call-strip {
  align-items: center;
  background: var(--operator-accent-soft);
  border-radius: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px 16px;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 10px 13px;
}

.operator-call-strip--waiting {
  background: color-mix(in srgb, var(--operator-warning) 10%, var(--operator-surface));
}

.operator-call-state {
  color: var(--operator-accent);
  font-size: 0.82rem;
  font-weight: 800;
}

.operator-call-strip--waiting .operator-call-state {
  color: var(--operator-warning);
}

.operator-call-id {
  color: var(--operator-muted);
  font-size: 0.67rem;
  overflow-wrap: anywhere;
}

.operator-call .operator-notice {
  margin-bottom: 16px;
}

.operator-contact h3,
.operator-script h3,
.operator-callback-form h3 {
  font-size: 0.96rem;
  margin: 0 0 4px;
}

.operator-contact p {
  color: var(--operator-muted);
  font-size: 0.82rem;
  margin: 0;
}

.operator-script {
  background: var(--operator-surface-2);
  border: 1px solid var(--operator-line);
  border-radius: 10px;
  margin-top: 20px;
  padding: 15px;
}

.operator-script p {
  font-size: 0.83rem;
  line-height: 1.6;
  margin: 8px 0 0;
  white-space: pre-wrap;
}

.operator-disposition-form,
.operator-callback-form {
  align-items: start;
  display: grid;
  gap: 10px;
}

.operator-callback-form {
  border-top: 1px solid var(--operator-line);
  margin-top: 22px;
  padding-top: 20px;
}

.operator-label {
  font-size: 0.77rem;
  font-weight: 700;
}

.operator-select,
.operator-input {
  background: var(--operator-surface);
  border: 1px solid var(--operator-line);
  border-radius: 9px;
  color: var(--operator-ink);
  font: inherit;
  font-size: 0.83rem;
  min-height: 40px;
  padding: 8px 11px;
  width: 100%;
}

.operator-select:disabled,
.operator-input:disabled {
  color: var(--operator-muted);
  opacity: 0.72;
}

.operator-disposition-form .operator-button,
.operator-callback-form .operator-button {
  justify-self: start;
}

.operator-disposition .operator-help {
  margin-top: 8px;
}

.operator-callback-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.operator-callback-item {
  align-items: start;
  border-top: 1px solid var(--operator-line);
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 14px 0;
}

.operator-callback-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.operator-callback-item:last-child {
  padding-bottom: 0;
}

.operator-callback-item div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.operator-callback-item strong,
.operator-callback-item span {
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}

.operator-callback-item small {
  color: var(--operator-muted);
  font-size: 0.71rem;
  overflow-wrap: anywhere;
}

.operator-callback-when {
  text-align: right;
}

@media (max-width: 1040px) {
  .operator-layout {
    grid-template-columns: minmax(0, 1fr);
  }

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

@media (max-width: 680px) {
  .operator-page {
    gap: 16px;
  }

  .operator-snapshot {
    border-radius: 10px;
    text-align: left;
    width: 100%;
  }

  .operator-aside,
  .operator-status-grid,
  .operator-session-meta,
  .operator-call-details,
  .operator-attributes {
    grid-template-columns: minmax(0, 1fr);
  }

  .operator-section-note {
    max-width: none;
    text-align: left;
  }
}
