:root {
  color-scheme: light;
  --ink: #17201e;
  --muted: #5d6966;
  --surface: #f7f8f4;
  --panel: #ffffff;
  --teal: #126b61;
  --teal-dark: #0d514a;
  --teal-soft: #e5f2ef;
  --mint: #c9ebe3;
  --border: #d8e0dc;
  --warning: #fff6d9;
  --warning-border: #e8cf75;
  --danger: #a32920;
  --success: #126b41;
  --shadow: 0 16px 45px rgb(20 49 43 / 8%);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgb(201 235 227 / 55%), transparent 34rem),
    var(--surface);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

.shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 64px;
}

.site-header {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 102px;
  border-bottom: 1px solid var(--border);
}

.site-header h1,
.site-header p,
.welcome-row h2,
.welcome-row p,
.section-heading h3,
.section-heading p {
  margin: 0;
}

.site-header h1 {
  font-size: clamp(1.2rem, 3vw, 1.65rem);
}

.site-header h1 span {
  margin-left: 8px;
  font-weight: 500;
}

.brand-mark {
  display: grid;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 16px;
  color: white;
  background: var(--teal);
  font-size: 1.75rem;
  box-shadow: 0 8px 24px rgb(18 107 97 / 22%);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.eyebrow {
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.86rem;
  white-space: nowrap;
}

.status-dot::before {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #9aa4a1;
  content: "";
}

.status-dot.online::before {
  background: #24a46d;
  box-shadow: 0 0 0 4px rgb(36 164 109 / 12%);
}

.status-dot.offline::before {
  background: #c94a3d;
}

.hidden {
  display: none !important;
}

.demo-account-list {
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
}

.demo-account-list summary {
  color: var(--teal-dark);
  cursor: pointer;
  font-weight: 700;
}

.demo-account-list code {
  display: block;
  margin-top: 0.45rem;
  overflow-wrap: anywhere;
}

.login-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  align-items: center;
  gap: clamp(32px, 7vw, 96px);
  min-height: calc(100vh - 102px);
  padding: 52px 0;
}

.hero-copy {
  max-width: 690px;
}

.hero-copy h2 {
  max-width: 650px;
  margin: 12px 0 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 630px;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.7;
}

.privacy-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.privacy-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
}

.privacy-list li::before {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: var(--teal);
  background: var(--teal-soft);
  content: "✓";
}

.panel {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgb(255 255 255 / 92%);
  box-shadow: var(--shadow);
}

.login-card {
  padding: 34px;
}

.login-card h2 {
  margin: 9px 0;
  font-size: 1.75rem;
}

.shield {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 22px;
  place-items: center;
  border: 1px solid #add8cf;
  border-radius: 19px;
  color: var(--teal);
  background: var(--teal-soft);
  font-size: 2rem;
}

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

label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #34413e;
  font-size: 0.88rem;
  font-weight: 700;
}

.form-hint {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.45;
}

.login-card label {
  margin: 24px 0 16px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #bccbc6;
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--ink);
  outline: none;
  background: #fff;
  font-weight: 500;
}

textarea {
  min-height: 86px;
  resize: vertical;
  line-height: 1.5;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgb(18 107 97 / 12%);
}

.button {
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  padding: 10px 17px;
  font-weight: 800;
}

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

.button-primary:hover {
  background: var(--teal-dark);
}

.button-secondary {
  border: 1px solid var(--teal);
  color: var(--teal);
  background: transparent;
}

.button-danger {
  border: 1px solid var(--danger);
  color: var(--danger);
  background: transparent;
}

.button-danger:hover {
  color: #fff;
  background: var(--danger);
}

.button-small {
  min-height: 36px;
  padding: 7px 11px;
  font-size: 0.76rem;
}

.button-quiet {
  color: var(--teal-dark);
  background: var(--teal-soft);
}

.button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.login-card .button {
  width: 100%;
}

.safety-note,
.form-message,
.error-message {
  min-height: 1.2em;
  margin: 12px 0 0;
  font-size: 0.83rem;
}

.safety-note {
  color: var(--muted);
  text-align: center;
}

.error-message,
.form-message.error {
  color: var(--danger);
}

.form-message.success {
  color: var(--success);
}

#portal {
  padding-top: 40px;
}

.welcome-row,
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.welcome-row h2 {
  margin: 7px 0 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
}

.warning-banner {
  margin: 28px 0;
  border: 1px solid var(--warning-border);
  border-radius: 15px;
  padding: 15px 18px;
  color: #594915;
  background: var(--warning);
  line-height: 1.5;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  display: flex;
  min-height: 112px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  background: #fff;
}

.stat-card span {
  color: var(--muted);
  font-size: 0.9rem;
}

.stat-card strong {
  color: var(--teal-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.25rem;
  font-weight: 500;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 24px;
  align-items: start;
}

.workspace-grid > .panel,
.data-panel {
  padding: 26px;
}

.section-heading {
  margin-bottom: 22px;
}

.section-heading h3 {
  margin-top: 5px;
  font-size: 1.3rem;
}

.pill {
  border-radius: 999px;
  padding: 7px 11px;
  color: #685619;
  background: var(--warning);
  font-size: 0.73rem;
  font-weight: 800;
  text-transform: uppercase;
}

.pill-private {
  color: var(--teal-dark);
  background: var(--teal-soft);
}

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

.form-grid .full {
  grid-column: 1 / -1;
}

.stack-form {
  display: grid;
  gap: 17px;
}

fieldset {
  display: grid;
  gap: 12px;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 15px;
}

legend {
  padding: 0 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.check-row {
  display: flex;
  min-height: 30px;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.check-row input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--teal);
}

.policy-box {
  border-left: 4px solid var(--teal);
  border-radius: 10px;
  padding: 14px 15px;
  color: #38514c;
  background: var(--teal-soft);
  font-size: 0.88rem;
  line-height: 1.55;
}

.data-panel {
  margin-top: 24px;
}

.command-center {
  margin-bottom: 24px;
  border-color: #8fc8bd;
  padding: 26px;
  background:
    linear-gradient(135deg, rgb(229 242 239 / 92%), rgb(255 255 255 / 96%));
}

.command-center-heading {
  align-items: flex-start;
}

.command-center-heading .muted {
  max-width: 760px;
  margin: 8px 0 0;
  line-height: 1.55;
}

.live-controls,
.governance-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  flex-wrap: wrap;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--success);
  background: #e4f5ec;
  font-size: 0.78rem;
  font-weight: 800;
}

.live-indicator::before {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #24a46d;
  box-shadow: 0 0 0 5px rgb(36 164 109 / 12%);
  content: "";
}

.live-indicator.paused {
  color: #685619;
  background: var(--warning);
}

.live-indicator.paused::before {
  background: #bf9227;
  box-shadow: none;
}

.command-stats {
  margin: 20px 0 10px;
}

.command-stats .stat-card {
  min-height: 94px;
}

.live-timestamp {
  margin: 0 0 18px;
  font-size: 0.8rem;
}

.live-grid,
.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.incident-center {
  margin-bottom: 24px;
}

.incident-summary,
.operational-checks,
.incident-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.incident-critical {
  border-color: #d79a94;
  color: #922f26;
  background: #fff3f1;
}

.operational-checks {
  margin: 18px 0 8px;
}

.operational-check {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 0.76rem;
  font-weight: 700;
}

.operational-check.healthy {
  color: #12695e;
  background: #eaf7f3;
}

.operational-check.unavailable {
  color: #922f26;
  background: #fff3f1;
  border-color: #d79a94;
}

.incident-list {
  margin-top: 16px;
}

.incident-card.active {
  border-left: 4px solid #b33a30;
}

.incident-card.recovered {
  border-left: 4px solid #1b7568;
}

.incident-actions {
  max-width: 260px;
  justify-content: flex-end;
}

.incident-actions select {
  max-width: 260px;
}

.live-grid > section {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 15px;
  background: rgb(255 255 255 / 82%);
}

.live-grid h4 {
  margin: 0 0 12px;
}

.live-feed {
  display: grid;
  max-height: 360px;
  gap: 8px;
  overflow: auto;
}

.live-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  padding: 9px 3px 11px;
}

.live-row:last-child {
  border-bottom: 0;
}

.live-row p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.4;
}

.live-row time {
  color: var(--muted);
  font-size: 0.7rem;
  white-space: nowrap;
}

.admin-grid {
  margin-bottom: 24px;
  align-items: start;
}

.admin-panel {
  padding: 26px;
}

.admin-panel > .muted {
  margin: -8px 0 18px;
  line-height: 1.55;
}

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

.governance-list {
  max-height: 680px;
  margin-top: 22px;
  overflow: auto;
}

.governance-card {
  align-items: start;
}

.card-list {
  display: grid;
  gap: 12px;
}

.empty-state {
  border: 1px dashed #b8c7c2;
  border-radius: 14px;
  padding: 28px;
  color: var(--muted);
  text-align: center;
}

.data-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 17px;
  background: #fbfcfa;
}

.data-card h4,
.data-card p {
  margin: 0;
}

.data-card .operator-reason {
  margin-top: 10px;
  color: #34413e;
  font-size: 0.8rem;
}

.data-card h4 {
  margin-bottom: 6px;
}

.data-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.data-card .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 11px;
}

.candidate-card-actions {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 10px;
}

.meta span,
.workflow-status {
  border-radius: 999px;
  padding: 5px 9px;
  color: #3f4e4a;
  background: #e9eeec;
  font-size: 0.72rem;
  font-weight: 800;
}

.consultant-chat {
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow: auto;
  margin: 12px 0 18px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fbfcfa;
}

.consultant-message {
  width: min(78%, 620px);
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  white-space: pre-wrap;
}

.consultant-message.mine {
  justify-self: end;
  background: var(--teal-soft);
}

.consultant-message.theirs {
  justify-self: start;
  background: white;
}

.consultant-message small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
}

.recommendation-controls,
.recommendation-actions {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.case-dialog {
  width: min(980px, calc(100% - 28px));
  max-height: calc(100vh - 28px);
  border: 0;
  border-radius: 24px;
  padding: 0;
  color: var(--ink);
  background: var(--panel);
  box-shadow: 0 24px 80px rgb(8 30 26 / 28%);
}

.case-dialog::backdrop {
  background: rgb(10 28 25 / 58%);
  backdrop-filter: blur(4px);
}

.verification-identity {
  border: 1px solid var(--warning-border);
  border-radius: 16px;
  padding: 16px;
  background: var(--warning);
}

#verification-identity {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.verification-fact {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.verification-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.verification-media-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  background: var(--surface);
}

.verification-media-card img,
.verification-media-card video {
  width: 100%;
  max-height: 420px;
  border-radius: 12px;
  object-fit: contain;
  background: #101513;
}

.verification-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.case-shell {
  padding: clamp(22px, 4vw, 38px);
}

.case-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
}

.case-header h2,
.case-header p,
.case-content h3 {
  margin: 0;
}

.case-header h2 {
  margin: 5px 0 6px;
}

.case-close {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: var(--teal-soft);
  font-size: 1.7rem;
}

.case-content {
  display: grid;
  gap: 26px;
  padding-top: 24px;
}

.case-content section {
  min-width: 0;
}

.case-content h3 {
  margin-bottom: 12px;
  font-size: 1.05rem;
}

.case-candidates,
.case-two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.case-candidate {
  display: grid;
  gap: 5px;
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 16px;
  background: #fbfcfa;
  font-size: 0.84rem;
}

.case-candidate strong {
  font-size: 1rem;
}

.case-label {
  color: var(--teal);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-gates {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.case-gates li {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 12px;
  padding: 11px 13px;
  font-size: 0.84rem;
  font-weight: 700;
}

.gate-complete {
  color: #164b38;
  background: #e3f4eb;
}

.gate-pending {
  color: #66551a;
  background: var(--warning);
}

.gate-icon {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  place-items: center;
  border-radius: 50%;
  background: rgb(255 255 255 / 70%);
}

.case-record-list {
  display: grid;
  gap: 8px;
}

.case-record-row {
  display: grid;
  gap: 3px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  font-size: 0.78rem;
}

.case-record-row time,
.timeline-entry time {
  color: var(--muted);
  font-size: 0.7rem;
}

.case-empty {
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 16px;
  color: var(--muted);
  font-size: 0.82rem;
}

.case-note-form {
  display: grid;
  grid-template-columns: minmax(150px, 0.35fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 16px;
  background: #fbfcfa;
}

.case-note-body textarea {
  min-height: 72px;
}

.case-note-form .safety-note,
.case-note-form .form-message {
  grid-column: 1 / -1;
  margin: 0;
  text-align: left;
}

.case-timeline {
  display: grid;
}

.timeline-entry {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  gap: 12px;
  position: relative;
  padding: 0 0 18px;
}

.timeline-entry:not(:last-child)::before {
  position: absolute;
  top: 13px;
  bottom: 0;
  left: 5px;
  width: 2px;
  background: var(--border);
  content: "";
}

.timeline-marker {
  z-index: 1;
  width: 12px;
  height: 12px;
  margin-top: 4px;
  border: 3px solid var(--teal-soft);
  border-radius: 50%;
  background: var(--teal);
}

.timeline-entry.note .timeline-marker {
  border-color: var(--warning);
  background: #a77e09;
}

.timeline-entry p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.recommendation-controls {
  flex-direction: column;
}

.recommendation-actions {
  max-width: 220px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.workflow-status {
  align-self: start;
  color: var(--teal-dark);
  background: var(--teal-soft);
  white-space: nowrap;
}

@media (max-width: 900px) {
  .login-layout,
  .workspace-grid,
  .live-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .login-layout {
    min-height: auto;
  }

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

@media (max-width: 620px) {
  #verification-identity,
  .verification-media-grid {
    grid-template-columns: 1fr;
  }
  .shell {
    width: min(100% - 22px, 1240px);
  }

  .site-header {
    flex-wrap: wrap;
    padding: 18px 0;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .hero-copy h2 {
    font-size: 2.65rem;
  }

  .privacy-list,
  .form-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .form-grid .full {
    grid-column: auto;
  }

  .welcome-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .command-center-heading,
  .live-row {
    grid-template-columns: 1fr;
  }

  .command-center-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .live-controls {
    justify-content: flex-start;
  }

  .role-fieldset {
    grid-template-columns: 1fr;
  }

  .data-card {
    grid-template-columns: 1fr;
  }

  .candidate-card-actions {
    align-items: flex-start;
  }

  .recommendation-controls {
    align-items: flex-start;
  }

  .recommendation-actions {
    max-width: none;
    justify-content: flex-start;
  }

  .case-candidates,
  .case-two-column,
  .case-gates,
  .case-note-form {
    grid-template-columns: 1fr;
  }

  .case-note-form .safety-note,
  .case-note-form .form-message {
    grid-column: auto;
  }

  .timeline-entry {
    grid-template-columns: 16px minmax(0, 1fr);
  }

  .timeline-entry time {
    grid-column: 2;
  }
}

/* Milestone 10.6 — focused, role-aware workspace navigation */
.workspace-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 1.25rem;
  padding: 0.45rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
}

.workspace-tab {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  line-height: 1;
  min-height: 40px;
  padding: 0.7rem 0.95rem;
  white-space: nowrap;
}

.workspace-tab:hover {
  border-color: var(--border);
  color: var(--ink);
}

.workspace-tab:focus-visible {
  outline: 3px solid rgba(18, 123, 113, 0.2);
  outline-offset: 2px;
}

.workspace-tab.active {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.tab-hidden {
  display: none !important;
}

[data-workspace-tab]:not(.tab-hidden) {
  animation: workspace-tab-in 120ms ease-out;
}

@keyframes workspace-tab-in {
  from { opacity: 0.72; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  [data-workspace-tab]:not(.tab-hidden) {
    animation: none;
  }
}

@media (max-width: 760px) {
  .workspace-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0.4rem;
    scrollbar-width: thin;
  }

  .workspace-tab {
    flex: 0 0 auto;
  }
}

.environment-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line, #d9e4df);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #315249;
  background: #f6faf8;
}

.environment-badge.local {
  color: #70531e;
  background: #fff8df;
  border-color: #ead7a5;
}

/* Privileged staff MFA enrollment */
.mfa-qr {
  width: fit-content;
  margin: 18px auto 22px;
  padding: 14px;
  background: #fff;
  border-radius: 12px;
}

.mfa-qr img,
.mfa-qr canvas {
  display: block;
}
