:root {
  color-scheme: light;
  --bg: #f3f1eb;
  --surface: #fffdf8;
  --surface-soft: #f8f6f0;
  --ink: #17191f;
  --muted: #606773;
  --line: rgba(23, 25, 31, 0.14);
  --line-strong: rgba(23, 25, 31, 0.24);
  --primary: #496f5d;
  --primary-soft: #eef5ef;
  --accent: #496f5d;
  --warning-bg: #fff6e8;
  --warning-ink: #8a5a19;
  --success-bg: #eef5ef;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "IBM Plex Sans", "Segoe UI", Tahoma, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(19, 32, 44, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(19, 32, 44, 0.03) 1px, transparent 1px),
    linear-gradient(180deg, #f8fafc 0%, var(--bg) 100%);
  background-size: 32px 32px, 32px 32px, auto;
}

h1,
h2,
h3,
p,
strong,
span,
button,
a {
  overflow-wrap: anywhere;
}

a {
  color: inherit;
}

.app-shell {
  width: min(1480px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 18px 0 28px;
}

.product-header,
.product-header__actions,
.action-row,
.draft-head {
  display: flex;
  align-items: center;
}

.product-header {
  justify-content: space-between;
  gap: 14px;
  min-height: 46px;
  border-bottom: 1px solid var(--line);
  padding: 0 0 10px;
}

.product-header__actions {
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.product-header .ghost-btn {
  min-height: 34px;
  padding: 9px 12px;
  font-size: 0.84rem;
}

.gallery-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #365646;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.9rem;
}

.gallery-link::before {
  content: "";
  width: 18px;
  height: 10px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: 3px;
}

.shift-status,
.eyebrow,
.request-queue__meta {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.business-intro {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  width: min(430px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 58px rgba(18, 34, 49, 0.2);
  padding: 16px;
}

.business-intro[hidden] {
  display: none;
}

.business-intro.is-tour-visible {
  z-index: 95;
  background: #ffffff;
  box-shadow: 0 28px 72px rgba(8, 19, 32, 0.26);
}

.business-intro__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.business-intro h2 {
  margin: 6px 0 8px;
  font-size: 1.25rem;
  line-height: 1.1;
}

.business-intro p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.business-intro__close {
  border: 0;
  background: transparent;
  color: #2e4c67;
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 4px 0;
}

.business-intro__points {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.business-intro__points article {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  display: grid;
  gap: 5px;
}

.business-intro__points span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.business-intro__points strong {
  font-size: 0.92rem;
  line-height: 1.3;
}

.demo-stage {
  margin-top: 12px;
}

.demo-scenarios {
  display: grid;
  grid-template-columns: minmax(220px, 0.24fr) minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  overflow: hidden;
}

.demo-scenarios .workspace-head {
  margin: 0;
  padding: 7px 10px;
  border-right: 1px solid var(--line);
}

.demo-scenarios .workspace-head h1 {
  margin: 1px 0 3px;
  font-size: 0.94rem;
  line-height: 1.08;
}

.demo-scenarios .workspace-head p {
  font-size: 0.74rem;
  line-height: 1.16;
}

.demo-scenarios .request-queue__list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
}

.demo-scenarios .request-queue__item {
  min-height: 68px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  padding: 7px 9px;
  gap: 3px;
}

.demo-scenarios .request-queue__item:last-child {
  border-right: 0;
}

.demo-scenarios .request-queue__item:hover {
  transform: none;
}

.demo-scenarios .request-queue__meta {
  font-size: 0.66rem;
  line-height: 1.14;
}

.demo-scenarios .request-queue__item strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.82rem;
  line-height: 1.12;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.demo-scenarios .request-queue__item span:last-child {
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.74rem;
  line-height: 1.12;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(420px, 1fr);
  margin-top: 18px;
  min-height: calc(100vh - 320px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.operator-workspace {
  border-color: #91a4b6;
  box-shadow: 0 22px 52px rgba(20, 36, 51, 0.16);
}

.operator-app-chrome {
  grid-column: 1 / -1;
  min-height: 50px;
  padding: 11px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: #0d1823;
  color: #eff6ff;
  border-bottom: 1px solid #25394d;
}

.operator-app-title {
  display: grid;
  gap: 2px;
}

.operator-app-title strong {
  font-size: 0.98rem;
}

.operator-app-title span {
  color: #9fb5c9;
  font-size: 0.82rem;
}

.operator-app-status {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.operator-app-status span,
.locked-mode,
.readonly-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
}

.operator-app-status span {
  border: 1px solid rgba(159, 181, 201, 0.34);
  background: rgba(255, 255, 255, 0.06);
  color: #d9e7f5;
}

.operator-app-status .locked-mode {
  border-color: rgba(255, 202, 133, 0.48);
  background: rgba(255, 202, 133, 0.12);
  color: #ffd99c;
}

.locked-mode {
  white-space: nowrap;
}

.request-detail,
.ai-work-card {
  min-width: 0;
  padding: 18px;
}

.request-detail {
  border-right: 1px solid var(--line);
}

.operator-workspace__bar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 18px;
  background: #f8fbfe;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.operator-workspace__bar .eyebrow {
  color: #326da8;
}

.operator-workspace__bar h2 {
  margin: 3px 0 0;
  font-size: 1.22rem;
  line-height: 1.1;
}

.operator-workspace__bar p {
  max-width: 500px;
  margin: 0;
  color: var(--muted);
  line-height: 1.35;
}

.workspace-head {
  margin-bottom: 14px;
}

.workspace-head h2 {
  margin: 3px 0 5px;
  font-size: 1.25rem;
  line-height: 1.1;
}

.workspace-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

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

.task-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.task-title-row h2 {
  margin-bottom: 4px;
}

.task-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border-radius: 999px;
  border: 1px solid #bcd3e8;
  background: #eef6ff;
  color: #245a87;
  padding: 7px 10px;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.task-context-grid {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #f8fbfe;
}

.task-context-grid div {
  min-width: 0;
  padding: 10px 11px;
  border-right: 1px solid var(--line);
}

.task-context-grid div:last-child {
  border-right: 0;
}

.task-context-grid dt {
  margin: 0 0 4px;
  color: #62778d;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.task-context-grid dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
}

.client-topic {
  border-left: 3px solid var(--primary);
  background: #f5f9fe;
  padding: 10px 12px;
}

.client-topic span {
  display: block;
  margin-bottom: 4px;
  color: #577087;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.client-topic strong {
  display: block;
  font-size: 1rem;
  line-height: 1.25;
}

.request-queue__list,
.fact-list,
.missing-list,
.attachments-list {
  display: grid;
  gap: 10px;
}

.request-queue__item {
  width: 100%;
  padding: 13px;
  display: grid;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.request-queue__item:hover,
.request-queue__item.is-active {
  border-color: #b9cce0;
  background: var(--primary-soft);
}

.request-queue__item:hover {
  transform: translateX(2px);
}

.request-queue__item strong {
  font-size: 0.96rem;
}

.request-queue__item span:last-child {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.request-source {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.field-label-row,
.draft-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.field-label-row {
  margin-bottom: 8px;
}

.input-label {
  display: block;
  margin: 0;
  color: #31465b;
  font-size: 0.86rem;
  font-weight: 800;
}

.readonly-badge {
  border: 1px solid #c7d4df;
  background: #eef3f7;
  color: #455d73;
}

.locked-field-note {
  margin: 0 0 14px;
  border: 1px solid #ead2a7;
  border-radius: var(--radius);
  background: #fff8eb;
  color: #6f4a16;
  padding: 10px 12px;
  font-size: 0.9rem;
  line-height: 1.35;
}

textarea {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: #fbfdff;
  color: var(--ink);
  font: inherit;
  line-height: 1.45;
  resize: vertical;
  padding: 12px;
}

textarea:focus {
  outline: 2px solid #91c4ef;
  border-color: #61a4d8;
}

textarea[readonly] {
  resize: none;
  background:
    linear-gradient(135deg, rgba(37, 54, 70, 0.025) 25%, transparent 25%) 0 0 / 10px 10px,
    #f6f9fc;
  cursor: not-allowed;
}

.attachments-wrap {
  margin-top: 14px;
}

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

.attachments-list li {
  border: 1px solid #d8e6f3;
  border-radius: var(--radius);
  background: #f6fbff;
  color: #335a7c;
  padding: 8px 10px;
  font-size: 0.9rem;
}

.action-row {
  margin-top: 14px;
  flex-wrap: wrap;
  gap: 12px;
}

.action-row p {
  margin: 0;
  color: #405a72;
  font-size: 0.9rem;
}

.parse-action {
  width: 100%;
  max-width: 100%;
}

.ghost-btn,
.primary-btn,
.secondary-btn,
.primary-link {
  min-height: 40px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1;
  padding: 12px 14px;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  overflow-wrap: normal;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.ghost-btn {
  background: #ffffff;
  border-color: var(--line);
  color: #2e4c67;
}

.ghost-btn:hover {
  border-color: #a3b7cc;
  background: #f8fbfe;
}

.primary-btn,
.primary-link {
  background: var(--primary);
  color: #ffffff;
}

.primary-btn:hover:not(:disabled),
.primary-link:hover {
  background: #0c57bd;
  transform: translateY(-1px);
}

.secondary-btn {
  background: #ecf7f1;
  color: #1c5f41;
  border-color: #b6d8c4;
}

.secondary-btn:hover {
  background: #e1f0e5;
}

.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.result-block,
.systems-block,
.routing-block,
.draft-block {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.systems-block,
.routing-block,
.draft-block {
  margin-top: 14px;
}

.result-block h3,
.systems-block h3,
.routing-block h3,
.draft-block h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.fact-list,
.missing-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fact-list li,
.missing-list li {
  border-radius: var(--radius);
  padding: 8px 10px;
}

.fact-list li {
  border: 1px solid #dbe8f7;
  background: #f6fbff;
}

.fact-list li p,
.missing-list li p {
  margin: 0;
  color: #3e5f7f;
  font-size: 0.82rem;
}

.fact-list li strong {
  display: block;
  margin-top: 4px;
}

.fact-list li span {
  display: inline-flex;
  margin-top: 6px;
  border-radius: 999px;
  font-size: 0.74rem;
  padding: 4px 8px;
  background: #e8f4ff;
  color: #225886;
}

.missing-list li {
  border: 1px solid #f1cdbb;
  background: var(--warning-bg);
}

.missing-list li span {
  display: block;
  margin-top: 4px;
  font-size: 0.84rem;
  color: var(--warning-ink);
}

.system-insights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.system-insight {
  min-width: 0;
  border-left: 3px solid #2b8a78;
  border-top: 1px solid #c7ddd8;
  background: #f4fbf8;
  padding: 9px 10px;
}

.system-insight span {
  display: inline-flex;
  margin-bottom: 6px;
  color: #1f6a5d;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.system-insight strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.92rem;
}

.system-insight p {
  margin: 0;
  color: #24475f;
  font-size: 0.88rem;
  line-height: 1.35;
}

.system-insight small {
  display: block;
  margin-top: 7px;
  color: #587087;
  font-size: 0.78rem;
  line-height: 1.3;
}

.placeholder {
  color: #5f7890;
  font-style: italic;
  background: #f4f8fc;
  border: 1px dashed #c7d8ea;
}

.success-state {
  color: #176147;
  border: 1px solid #a6d4bf;
  background: var(--success-bg);
}

.routing-card {
  border: 1px solid #bfd6ea;
  border-radius: var(--radius);
  background: #f4f9ff;
  padding: 10px 12px;
}

.routing-label {
  margin: 0 0 4px;
  color: #58738c;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.routing-queue {
  margin: 0 0 8px;
  font-weight: 800;
  color: #0f4d85;
}

.routing-card p {
  margin: 0;
}

.routing-card ul {
  margin: 8px 0;
  padding-left: 18px;
  color: #314c67;
}

.routing-card .risk {
  color: #1e5f41;
  font-weight: 800;
}

.draft-head {
  justify-content: space-between;
  gap: 10px;
}

.draft-title-row h3 {
  margin: 0;
}

.draft-head .ghost-btn {
  padding: 10px 12px;
}

.crm-update-log {
  margin: 0;
  color: #405a72;
  font-size: 0.9rem;
  line-height: 1.35;
}

.crm-update-log.is-synced {
  flex: 1 1 320px;
  border: 1px solid #a6d4bf;
  border-radius: var(--radius);
  background: var(--success-bg);
  color: #174d38;
  padding: 10px 12px;
}

.crm-update-log strong {
  display: block;
  margin-bottom: 6px;
}

.crm-update-log ul {
  margin: 0;
  padding-left: 18px;
}

#tourOverlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
}

#tourOverlay[hidden] {
  display: none;
}

#tourSpotlight,
.tour-popover {
  transition:
    top 520ms cubic-bezier(0.2, 0.9, 0.2, 1),
    left 520ms cubic-bezier(0.2, 0.9, 0.2, 1),
    width 520ms cubic-bezier(0.2, 0.9, 0.2, 1),
    height 520ms cubic-bezier(0.2, 0.9, 0.2, 1),
    opacity 520ms cubic-bezier(0.2, 0.9, 0.2, 1);
  will-change: top, left, width, height;
}

.tour-scrim {
  position: fixed;
  background: rgba(6, 14, 24, 0.72);
  pointer-events: auto;
  transition: none;
}

#tourSpotlight {
  position: fixed;
  border-radius: var(--radius);
  border: 2px solid #7ec7ff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.55) inset, 0 0 26px rgba(126, 199, 255, 0.42);
  pointer-events: none;
}

.tour-popover {
  width: 340px;
  position: fixed;
  border-radius: var(--radius);
  border: 1px solid #9ec6e6;
  background: #f8fcff;
  color: #17334d;
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.23);
  padding: 14px;
  pointer-events: auto;
}

.tour-step-label {
  margin: 0 0 8px;
  color: #0e4f85;
  font-size: 0.82rem;
  font-weight: 800;
}

.tour-popover p {
  margin: 0;
}

.tour-controls {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.tour-controls button {
  justify-content: center;
}

.tour-controls button[hidden] {
  display: none;
}

.tour-controls .ghost-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.tour-controls .primary-btn.is-muted-action:disabled {
  background: #eef3f8;
  border-color: #d5dde8;
  color: #748197;
  cursor: default;
  transform: none;
  box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  #tourSpotlight,
  .tour-popover {
    transition: none;
  }
}

@media (max-width: 1180px) {
  .workspace {
    grid-template-columns: 1fr;
  }

  .ai-work-card {
    border-top: 1px solid var(--line);
  }

  .request-detail {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 760px) {
  .app-shell {
    width: min(360px, calc(100% - 24px));
    max-width: 360px;
    margin: 0 12px;
    padding-top: 12px;
  }

  .product-header,
  .product-header__actions {
    align-items: center;
  }

  .product-header {
    flex-wrap: wrap;
  }

  .product-header__actions {
    width: auto;
    margin-left: auto;
    flex-direction: row;
    gap: 6px;
  }

  .product-header .ghost-btn {
    min-height: 32px;
    padding: 8px 9px;
    font-size: 0.78rem;
  }

  .gallery-link {
    font-size: 0.82rem;
  }

  .shift-status {
    font-size: 0.68rem;
    text-align: right;
  }

  .demo-scenarios,
  .workspace,
  .system-insights,
  .result-grid {
    grid-template-columns: 1fr;
  }

  .business-intro {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
    max-height: min(580px, calc(100vh - 24px));
    overflow: auto;
  }

  .operator-workspace__bar,
  .task-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .task-context-grid {
    grid-template-columns: 1fr 1fr;
  }

  .task-context-grid div:nth-child(2n) {
    border-right: 0;
  }

  .task-context-grid div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .demo-scenarios .workspace-head {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .demo-scenarios .request-queue__list {
    grid-template-columns: repeat(5, minmax(156px, 1fr));
    overflow-x: auto;
  }

  .demo-scenarios .request-queue__item {
    min-height: 68px;
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }

  .demo-scenarios .request-queue__item:last-child {
    border-right: 0;
  }

  .request-detail {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .draft-head {
    align-items: stretch;
    flex-direction: column;
  }

  .draft-head .ghost-btn {
    width: 100%;
  }

  .tour-popover {
    width: min(340px, calc(100vw - 24px));
  }
}

/* Singularno unified color layer: safe shell/form/tour palette only. */
:root {
  color-scheme: light;
  --bg: #f3f1eb;
  --page: #f3f1eb;
  --surface: #fffdf8;
  --surface-soft: #f8f6f0;
  --surface-panel: #fffdf8;
  --ink: #17191f;
  --ink-2: #243040;
  --ink-soft: #606773;
  --muted: #606773;
  --line: rgba(23, 25, 31, 0.14);
  --line-strong: rgba(23, 25, 31, 0.24);
  --primary: #496f5d;
  --primary-dark: #365646;
  --primary-soft: #eef5ef;
  --accent: #496f5d;
  --accent-dark: #365646;
  --accent-soft: #eef5ef;
  --blue: #536d84;
  --blue-soft: #eef2f1;
  --warning: #b37a28;
  --warning-bg: #fff6e8;
  --warning-soft: #fff6e8;
  --warning-ink: #8a5a19;
  --success: #496f5d;
  --success-bg: #eef5ef;
  --danger: #8b4052;
  --danger-soft: #f8eef1;
}

body {
  background:
    linear-gradient(90deg, rgba(23, 25, 31, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(23, 25, 31, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, #fbfaf6 0%, var(--bg) 58%, #eceff1 100%);
  background-size: 48px 48px, 48px 48px, auto;
}

.product-header {
  border-color: var(--line);
  color: var(--ink);
}

.gallery-link,
.business-intro__close {
  color: var(--primary-dark);
}

.business-intro,
.demo-scenarios {
  border-color: var(--line);
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 22px 56px rgba(23, 25, 31, 0.12);
}

.demo-scenarios .request-queue__item,
.request-queue__item {
  border-color: var(--line);
  background: rgba(255, 253, 248, 0.72);
}

.demo-scenarios .request-queue__item:hover,
.request-queue__item:hover,
.request-queue__item.is-active {
  border-color: rgba(73, 111, 93, 0.48);
  background: var(--primary-soft);
}

.ghost-btn {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink-2);
}

.ghost-btn:hover {
  border-color: rgba(73, 111, 93, 0.42);
  background: var(--primary-soft);
}

.primary-btn,
.primary-link {
  border-color: var(--primary);
  background: var(--primary);
  color: #fffdf8;
}

.primary-btn:hover:not(:disabled),
.primary-link:hover {
  background: var(--primary-dark);
}

.secondary-btn {
  border-color: rgba(73, 111, 93, 0.28);
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.secondary-btn:hover {
  background: #e3eee5;
}

.readonly-badge {
  border-color: var(--line);
  background: var(--surface-soft);
  color: var(--blue);
}

.locked-field-note {
  border-color: rgba(179, 122, 40, 0.32);
  background: var(--warning-soft);
  color: var(--warning-ink);
}

textarea,
textarea[readonly] {
  border-color: var(--line-strong);
  background:
    linear-gradient(135deg, rgba(23, 25, 31, 0.025) 25%, transparent 25%) 0 0 / 10px 10px,
    var(--surface-soft);
  color: var(--ink);
}

textarea:focus {
  border-color: rgba(73, 111, 93, 0.62);
  outline: 2px solid rgba(73, 111, 93, 0.2);
}

.crm-update-log.is-synced {
  border-color: rgba(73, 111, 93, 0.32);
  background: var(--success-bg);
  color: var(--primary-dark);
}

.tour-scrim {
  background: rgba(23, 25, 31, 0.72);
}

#tourSpotlight {
  border-color: rgba(179, 122, 40, 0.9);
  box-shadow: 0 0 0 1px rgba(255, 253, 248, 0.65) inset, 0 0 26px rgba(179, 122, 40, 0.34);
}

.tour-popover {
  border-color: rgba(179, 122, 40, 0.42);
  background: #fffdf8;
  color: var(--ink);
  box-shadow: 0 24px 44px rgba(23, 25, 31, 0.24);
}

.tour-step-label {
  color: var(--warning);
}

.tour-controls .primary-btn {
  background: var(--primary);
  color: #fffdf8;
}

.tour-controls .primary-btn.is-muted-action:disabled {
  border-color: var(--line);
  background: var(--surface-soft);
  color: var(--muted);
}
