/*
  SimiTree role-first authentication portal styles.
  Author: Mildred Ojomah-Christopher
  Email: mildred.ojomah-christopher@simitreehc.com
*/

:root {
  color-scheme: light;
  /*
    SimiTree corporate design guideline: navy primary, teal accent.
    --green and --amber are legacy aliases kept so earlier class rules
    resolve to on-guideline colors without touching every declaration.
  */
  --ink: #14203E;
  --muted: #4B5C6F;
  --line: #DAE1E9;
  --paper: #ffffff;
  --surface: #F2F5F7;
  --navy: #203465;
  --navy-dark: #18284E;
  --royal: #4F69B0;
  --royal-subtle: #EEF1F7;
  --teal: #0E7C8B;
  --teal-light: #E3F3F5;
  --green: var(--teal);
  --amber: var(--navy);
  --focus: rgba(79, 105, 176, 0.4);
  /* Brand type: Proxima Nova (Adobe Fonts / Typekit) — matches the
     simitreehc.com corporate site. Kit ships weights 400 / 600 / 700. */
  --font-brand: "proxima-nova", ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--surface);
  color: var(--ink);
  /* Brand type: Proxima Nova (Typekit), matching the simitreehc.com site. */
  font-family: var(--font-brand);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

button {
  cursor: pointer;
}

.app-shell-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 28px;
  background: var(--navy);
  color: #fff;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 260px;
}

.brand-mark img {
  width: 112px;
  height: auto;
}

.brand-mark strong,
.brand-mark span {
  display: block;
}

.brand-mark span {
  color: #dbe6f3;
  font-size: 0.88rem;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dashboard-mode .app-shell-header {
  display: none;
}

.dashboard-mode .portal-layout {
  width: min(1320px, calc(100% - 24px));
  margin-top: 16px;
}

.nav-button {
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 6px;
  background: transparent;
  color: #fff;
  padding: 0 14px;
}

.nav-button.is-active,
.nav-button:hover {
  background: #fff;
  color: var(--navy);
}

.portal-layout {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto;
}

.workflow-view {
  display: none;
}

.workflow-view.is-active {
  display: block;
}

.panel-header {
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

/* Headings: Proxima Nova semibold (600), matching the SimiTree site's type
   system (site uses 600 for h1–h5). Replaces the app's former extrabold look. */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
}

h2 {
  font-size: 1.12rem;
}

.auth-grid,
.dashboard-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 18px;
}

.auth-panel,
.callback-panel,
.registration-form,
.identity-card,
.dashboard-panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  padding: 22px;
  box-shadow: 0 16px 40px rgba(24, 32, 51, 0.06);
}

.callback-panel {
  margin-top: 18px;
}

.segmented-control {
  display: grid;
  gap: 10px;
}

.segmented-control label,
.field-row label,
.registration-form label,
.field-group {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.segmented-control label {
  min-height: 46px;
  align-items: center;
  grid-template-columns: auto 1fr;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  padding: 0 12px;
}

.field-group,
.field-row,
.registration-form label {
  margin-top: 14px;
}

/* Text-like fields fill their row. Checkboxes/radios are excluded — the
   width:100% + padding here otherwise blows them up (e.g. a 171px-wide ROS
   checkbox that shoves its label out of the card). They get sized below. */
input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 11px 12px;
}

input[type="checkbox"],
input[type="radio"] {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  accent-color: var(--teal);
  cursor: pointer;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible {
  outline: 3px solid rgba(38, 103, 255, 0.22);
  outline-offset: 2px;
}

.provider-actions {
  display: grid;
  gap: 12px;
}

.primary-action,
.secondary-action {
  min-height: 44px;
  border-radius: 6px;
  padding: 0 16px;
  font-weight: 700;
}

.primary-action {
  border: 1px solid var(--navy);
  background: var(--navy);
  color: #ffffff;
}

.primary-action:hover {
  border-color: var(--navy-dark);
  background: var(--navy-dark);
}

.secondary-action {
  border: 1px solid var(--navy);
  background: #fff;
  color: var(--navy);
}

.secondary-action:hover {
  background: var(--royal-subtle);
}

.status-box {
  min-height: 46px;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f9fbfd;
  padding: 12px;
  color: var(--muted);
}

.status-box strong,
.status-box span,
.status-box a {
  display: block;
  overflow-wrap: anywhere;
}

.compact-form,
.registration-form {
  display: grid;
  gap: 10px;
}

.split-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.identity-card {
  align-self: start;
  display: grid;
  gap: 10px;
}

.identity-card strong {
  font-size: 1.35rem;
}

.dashboard-content {
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding-top: 16px;
}

.dashboard-content dl {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
}

.dashboard-content dl div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
}

.dashboard-content dt {
  color: var(--muted);
  font-weight: 700;
}

.dashboard-content dd {
  margin: 0;
}

.vendor-workspace {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.vendor-section-header p {
  color: var(--muted);
  margin-bottom: 0;
}

.vendor-capabilities,
.vendor-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.vendor-capability,
.vendor-metric,
.vendor-connection-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
  padding: 14px;
}

.vendor-capability {
  display: grid;
  gap: 8px;
}

.vendor-capability span,
.vendor-metric span {
  color: var(--muted);
  font-size: 0.9rem;
}

.vendor-metric strong {
  display: block;
  margin-top: 4px;
  font-size: 1.8rem;
}

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

.vendor-connection-form h3,
.vendor-connection-form .standard-options,
.vendor-connection-form .status-box,
.vendor-connection-form button {
  grid-column: 1 / -1;
}

.standard-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.standard-options legend {
  color: var(--muted);
  font-weight: 700;
}

.standard-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}

.standard-options input {
  width: auto;
}

.vendor-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.vendor-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.vendor-table th,
.vendor-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px;
  text-align: left;
  vertical-align: top;
}

.vendor-table th {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.status-pill {
  display: inline-block;
  border-radius: 999px;
  background: #e8f4f0;
  color: var(--green);
  font-weight: 700;
  padding: 4px 9px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 820px) {
  .app-shell-header,
  .auth-grid,
  .dashboard-shell,
  .split-fields,
  .vendor-capabilities,
  .vendor-metrics,
  .vendor-connection-form,
  .standard-options {
    grid-template-columns: 1fr;
  }

  .app-shell-header {
    display: grid;
  }

  .brand-mark {
    min-width: 0;
  }

  .top-nav {
    align-items: stretch;
  }

  .nav-button {
    flex: 1 1 160px;
  }
}

/*
  Home overview page (restored CliniSphere landing content).
  Author: Mildred Ojomah-Christopher
  Email: mildred.ojomah-christopher@simitreehc.com
*/
.hero-section {
  padding: 26px 0 8px;
}

.hero-kicker {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-section h1 {
  max-width: 820px;
}

.hero-lead {
  max-width: 720px;
  margin: 14px 0 18px;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.workflow-pipeline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  padding: 14px;
}

.pipeline-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--royal-subtle);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 700;
  padding: 7px 13px;
}

.pipeline-step.is-complete {
  border-color: var(--teal);
  background: var(--teal-light);
  color: var(--teal);
}

.pipeline-step.is-active {
  border-color: var(--navy);
  background: var(--navy);
  color: #ffffff;
}

.pipeline-arrow {
  color: var(--muted);
  font-size: 0.8rem;
}

.section-heading {
  margin: 26px 0 14px;
}

.section-heading p {
  max-width: 720px;
  color: var(--muted);
  margin-bottom: 0;
}

.section-heading .eyebrow {
  color: var(--teal);
  margin-bottom: 6px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.feature-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  border-color: var(--royal);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.feature-card i {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
  border-radius: 10px;
  background: var(--royal-subtle);
  color: var(--royal);
  font-size: 1.05rem;
}

.feature-card h3 {
  margin-bottom: 6px;
  font-size: 1.02rem;
}

.feature-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.feature-card .card-cta {
  margin-top: 14px;
}

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

/*
  Empty-state guard: content containers stay hidden until script or
  server responses give them content. Keep these elements truly empty
  in markup (no whitespace) so :empty matches.
*/
.status-box:empty,
.dashboard-content:empty,
#dashboardEmail:empty,
#dashboardRole:empty {
  display: none;
}

@media (max-width: 980px) {
  .feature-grid,
  .role-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .feature-grid,
  .role-grid {
    grid-template-columns: 1fr;
  }
}

/*
  Legal & Compliance template pages (Terms of Use, Privacy Policy,
  Data Processing & Security Policy). Reuses the corporate palette and
  existing card styles; adds document-specific typography helpers.
  Author: Mildred Ojomah-Christopher
  Email: mildred.ojomah-christopher@simitreehc.com
*/
.legal-page .auth-panel {
  margin-bottom: 18px;
}

.legal-page .auth-panel:last-child {
  margin-bottom: 0;
}

.legal-page h1 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  margin-bottom: 10px;
}

.legal-page h2 {
  font-size: 1.28rem;
  margin-bottom: 10px;
  color: var(--navy);
}

.legal-page h3 {
  font-size: 1.02rem;
  margin: 18px 0 8px;
  color: var(--ink);
}

.legal-page p,
.legal-page li {
  color: var(--muted);
}

.legal-page .auth-panel > p:last-child,
.legal-page .auth-panel > ul:last-child {
  margin-bottom: 0;
}

.legal-page ul,
.legal-page ol {
  margin: 0 0 14px;
  padding-left: 22px;
}

.legal-page li {
  margin-bottom: 6px;
}

.legal-page strong {
  color: var(--ink);
}

.legal-page a {
  color: var(--teal);
}

.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.doc-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.last-updated {
  display: inline-block;
  border-radius: 999px;
  background: var(--teal-light);
  color: var(--teal);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 4px 12px;
}

.template-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid #E4C24A;
  border-left: 5px solid #C9971A;
  border-radius: 10px;
  background: #FCF7E6;
  color: #6B5310;
  padding: 14px 16px;
  margin-bottom: 18px;
}

.template-banner i {
  margin-top: 2px;
  color: #C9971A;
  font-size: 1.1rem;
}

.template-banner strong {
  color: #5C470D;
}

.template-banner p {
  margin: 0;
  color: #6B5310;
  font-size: 0.92rem;
}

.legal-toc {
  columns: 2;
  column-gap: 26px;
  margin: 6px 0 0;
  padding-left: 20px;
}

.legal-toc li {
  break-inside: avoid;
}

.legal-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  margin: 4px 0 14px;
}

.legal-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.legal-table th,
.legal-table td {
  border-bottom: 1px solid var(--line);
  padding: 11px 13px;
  text-align: left;
  vertical-align: top;
  color: var(--muted);
}

.legal-table th {
  color: var(--navy);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  background: var(--royal-subtle);
}

.legal-table tr:last-child td {
  border-bottom: none;
}

.legal-footer {
  margin: 8px 0 40px;
  color: var(--muted);
  font-size: 0.86rem;
  text-align: center;
}

@media (max-width: 640px) {
  .legal-toc {
    columns: 1;
  }
}

/*
  Registration forms, role dashboards (admin console + agency side-panel),
  and shared UI primitives (pills, sheets, tabs, payment card).
  Author: Mildred Ojomah-Christopher
  Email: mildred.ojomah-christopher@simitreehc.com
*/

/* ── Shared status-box variants ── */
.status-box.is-error {
  border-color: #d64545;
  background: #fdf3f3;
  color: #9a2a2a;
}
.status-box.is-success {
  border-color: var(--teal);
  background: var(--teal-light);
  color: #0a5f6b;
}
.muted-note { color: var(--muted); font-size: 0.88rem; }
.block-title { margin: 22px 0 12px; font-size: 1.05rem; }

/* ── Registration forms ── */
.form-lede { max-width: 720px; color: var(--muted); margin-top: 10px; }
.form-hint { color: var(--muted); font-size: 0.85rem; margin: 10px 0 0; }
.reg-card { display: grid; gap: 6px; }
.form-section-label {
  margin: 14px 0 2px; color: var(--navy);
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.reg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.field { display: grid; gap: 6px; color: var(--muted); font-size: 0.9rem; font-weight: 700; margin: 0; }
.field input, .field select, .field textarea { font-weight: 500; color: var(--ink); }
.field .req { color: var(--teal); }
input.has-error, .field input.has-error, .field select.has-error { border-color: #d64545; background: #fdf3f3; }
.reg-success-lead { margin: 8px 0; font-weight: 500; color: inherit; }
.reg-steps { margin: 8px 0 0; padding-left: 20px; font-weight: 500; }
.reg-steps li { margin-bottom: 4px; }

details.callback-panel { margin-top: 18px; }
details.callback-panel summary { cursor: pointer; color: var(--muted); font-size: 0.9rem; }
details.callback-panel[open] summary { margin-bottom: 12px; }

/* ── Pills ── */
.pill {
  display: inline-block; border-radius: 999px; padding: 3px 10px;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.02em; white-space: nowrap;
}
.pill-green { background: var(--teal-light); color: #0a5f6b; }
.pill-amber { background: #fdf1dc; color: #8a5a12; }
.pill-red { background: #fbe4e4; color: #9a2a2a; }
.pill-navy { background: var(--royal-subtle); color: var(--navy); }
.pill-grey { background: #eef1f5; color: var(--muted); }

/* ── Sheet (Smartsheet-style grid) ── */
.sheet-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.sheet { width: 100%; min-width: 720px; border-collapse: collapse; }
.sheet thead th {
  position: sticky; top: 0; background: var(--royal-subtle); color: var(--navy);
  text-align: left; font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 11px 14px; border-bottom: 2px solid var(--line);
}
.sheet tbody td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 0.92rem; }
.sheet tbody tr:hover { background: #f7fafd; }
.sheet .cell-sub { display: block; color: var(--muted); font-size: 0.8rem; margin-top: 2px; }
.sheet-empty { text-align: center; color: var(--muted); padding: 26px; }
.cell-actions { white-space: nowrap; }

.mini-action {
  border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink);
  padding: 5px 10px; font-size: 0.8rem; font-weight: 700; margin-right: 4px;
}
.mini-action.approve { border-color: var(--teal); color: #0a5f6b; }
.mini-action.approve:hover { background: var(--teal-light); }
.mini-action.reject { border-color: #d64545; color: #9a2a2a; }
.mini-action.reject:hover { background: #fdf3f3; }

/* ── Admin console ── */
.admin-console { display: grid; gap: 18px; }
.admin-topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.admin-topbar h1 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.admin-user { display: flex; align-items: center; gap: 14px; }
.admin-user strong { display: block; }
.admin-user span { display: block; color: var(--muted); font-size: 0.85rem; }
.admin-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat-card {
  display: flex; align-items: center; gap: 12px; border: 1px solid var(--line);
  border-radius: 12px; background: #fff; padding: 16px; box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.stat-card i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  background: var(--royal-subtle); color: var(--navy); font-size: 1.05rem; }
.stat-card strong { display: block; font-size: 1.5rem; line-height: 1; }
.stat-card span { color: var(--muted); font-size: 0.82rem; }
.admin-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.admin-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted);
  padding: 6px 14px; font-size: 0.85rem; font-weight: 700;
}
.chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ── Admin / agency side-panel shell ── */
.workspace-shell,
.vendor-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 18px; align-items: start; }
.side-panel {
  position: sticky; top: 16px; display: flex; flex-direction: column; gap: 14px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--navy); color: #fff; padding: 16px;
}
.side-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; padding: 4px 6px; }
.side-brand i { color: #9fd0d8; }
.side-user { display: flex; gap: 10px; align-items: center; background: rgba(255,255,255,0.08); border-radius: 10px; padding: 10px; }
.side-avatar {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--teal); color: #fff; font-weight: 700; flex-shrink: 0;
}
.side-user-meta { display: grid; gap: 2px; min-width: 0; }
.side-user-meta strong { font-size: 0.92rem; }
.side-user-meta span { font-size: 0.76rem; color: #cdd8ea; overflow: hidden; text-overflow: ellipsis; }
.side-status { margin-top: 3px; }
.side-nav { display: grid; gap: 4px; }
.side-nav-item {
  display: flex; align-items: center; gap: 11px; width: 100%; text-align: left;
  border: none; border-radius: 8px; background: transparent; color: #dbe6f3;
  padding: 10px 12px; font-size: 0.92rem; font-weight: 600;
}
.side-nav-item i:first-child { width: 18px; text-align: center; }
.side-nav-item:hover:not(:disabled) { background: rgba(255,255,255,0.1); color: #fff; }
.side-nav-item.is-active { background: #fff; color: var(--navy); font-weight: 700; }
.side-nav-item.is-locked { color: #8fa1c0; cursor: not-allowed; }
.lock-badge { margin-left: auto; font-size: 0.72rem; }

/* Collapsible side-nav dropdown group (clinician "My Work"). */
.side-nav-group { display: grid; gap: 4px; }
.side-nav-group-toggle {
  display: flex; align-items: center; gap: 11px; width: 100%; text-align: left;
  border: none; border-radius: 8px; background: transparent; color: #dbe6f3;
  padding: 10px 12px; font-size: 0.92rem; font-weight: 600; cursor: pointer;
}
.side-nav-group-toggle i:first-child { width: 18px; text-align: center; }
.side-nav-group-toggle:hover { background: rgba(255,255,255,0.1); color: #fff; }
.side-nav-group-toggle .group-caret { margin-left: auto; font-size: 0.72rem; transition: transform .18s ease; }
.side-nav-group.is-open .group-caret { transform: rotate(180deg); }
.side-nav-sub {
  display: none; margin: 2px 0 2px 14px; padding-left: 8px; gap: 3px;
  border-left: 2px solid rgba(255,255,255,0.14);
}
.side-nav-group.is-open .side-nav-sub { display: grid; }
.side-nav-subitem { font-size: 0.88rem; padding: 8px 10px; }

/* Two-factor reset overlay + shared QR presentation. */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(20,33,61,0.6); z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal-card {
  background: #fff; border-radius: 14px; padding: 28px 32px; max-width: 420px;
  width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: 0 12px 40px rgba(20,33,61,0.3);
}
.modal-card h2 { margin: 0 0 8px; color: var(--navy); }
.modal-card ol { padding-left: 20px; color: #3d4a63; font-size: 0.9rem; }
/* Wide modal variant (EMR chart) + EMR sections + modal action row. */
.modal-card--wide { max-width: 660px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 14px; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.row-actions .secondary-action { padding: 5px 10px; font-size: 0.82rem; }
.emr-block { border-top: 1px solid var(--line); padding: 12px 0; }
.emr-block:first-child { border-top: none; }
.emr-block h3 { margin: 0 0 6px; color: var(--navy); font-size: 1rem; }
.emr-block ul { margin: 0; padding-left: 18px; color: #3d4a63; font-size: 0.9rem; }
.emr-block li { margin: 2px 0; }

/* ── Ambient visit workflow (consent → record → process → review) ──────────── */
.amb-stepper { display: flex; align-items: center; gap: 6px; margin: 4px 0 18px; flex-wrap: wrap; }
.amb-step { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; font-size: 0.9rem; }
.amb-step-dot { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--surface); color: var(--muted); border: 2px solid var(--line); font-size: 0.8rem; }
.amb-step.is-current { color: var(--navy); }
.amb-step.is-current .amb-step-dot { background: var(--navy); color: #fff; border-color: var(--navy); }
.amb-step.is-done .amb-step-dot { background: var(--teal); color: #fff; border-color: var(--teal); }
.amb-step-line { flex: 1; min-width: 14px; height: 2px; background: var(--line); }

.amb-patient { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.amb-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--royal-subtle); color: var(--navy); display: grid; place-items: center; font-size: 1.2rem; flex-shrink: 0; }

.amb-toggle { display: flex; align-items: center; gap: 12px; margin: 14px 0; cursor: pointer; font-size: 0.95rem; }
.amb-toggle input { display: none; }
.amb-switch { width: 44px; height: 26px; border-radius: 999px; background: var(--line); position: relative; flex-shrink: 0; transition: background .2s; }
.amb-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.amb-toggle input:checked + .amb-switch { background: var(--teal); }
.amb-toggle input:checked + .amb-switch::after { transform: translateX(18px); }

.amb-record-card { text-align: center; }
.amb-record-card .field { text-align: left; }
.amb-live { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 8px 0 14px; }
.amb-pulse { width: 16px; height: 16px; border-radius: 50%; background: #e5484d; animation: ambpulse 1.4s infinite; }
.amb-pulse.is-paused { background: var(--muted); animation: none; }
@keyframes ambpulse { 0% { box-shadow: 0 0 0 0 rgba(229,72,77,.5); } 70% { box-shadow: 0 0 0 14px rgba(229,72,77,0); } 100% { box-shadow: 0 0 0 0 rgba(229,72,77,0); } }
.amb-timer { font-size: 1.8rem; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.amb-live-label { color: var(--muted); font-weight: 600; }
.amb-lang { margin-left: auto; color: var(--teal); font-size: 0.85rem; font-weight: 700; }
.amb-record-actions { display: flex; gap: 10px; justify-content: center; margin-top: 12px; }

.amb-processing { text-align: center; padding: 40px 24px; }
.amb-spinner { width: 46px; height: 46px; border-radius: 50%; border: 4px solid var(--royal-subtle); border-top-color: var(--navy); margin: 0 auto 18px; animation: ambspin 0.9s linear infinite; }
@keyframes ambspin { to { transform: rotate(360deg); } }

.amb-review { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 900px) { .amb-review { grid-template-columns: 1fr; } }
.amb-review-head { display: flex; align-items: center; justify-content: space-between; }
.amb-review-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.amb-captured { margin-top: 12px; padding: 12px 14px; background: var(--teal-light); border-radius: 10px; }
.amb-captured h4 { margin: 0 0 6px; color: var(--teal); font-size: 0.9rem; }
.amb-captured ul { margin: 0; padding-left: 18px; font-size: 0.9rem; }

/* ── Tabbed review: symptom review, two-option coding, OASIS check ─────────── */
.review-panel { border: 1px solid var(--line); border-radius: 14px; background: var(--paper); padding: 24px 28px; margin-top: 4px; }
.review-panel > h2 { margin-top: 0; }

/* Review of Systems — each organ system its own card. align-items:start keeps
   cards top-aligned (no ragged stretching); min-width:0 lets them shrink so
   nothing overflows the card edge. */
.ros-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 16px; margin-top: 16px; align-items: start; }
.ros-group { min-width: 0; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 16px; background: var(--surface); }
.ros-group h3 {
  margin: 0 0 10px; padding-bottom: 8px; font-size: 0.9rem; font-weight: 700;
  color: var(--navy); border-bottom: 1px solid var(--line);
}
.ros-boxes { display: flex; flex-direction: column; gap: 2px; }
.ros-check {
  display: flex; align-items: flex-start; gap: 9px; min-width: 0;
  padding: 6px 8px; border-radius: 8px; font-size: 0.9rem; line-height: 1.35;
  color: var(--ink); cursor: pointer;
}
.ros-check input[type="checkbox"] { margin-top: 1px; }
.ros-check span { min-width: 0; overflow-wrap: anywhere; }
.ros-check:hover { background: rgba(20, 33, 61, 0.04); }
/* Ticked symptoms read as selected, so the clinician sees the picture at a glance. */
.ros-check:has(input:checked) { background: var(--teal-light); color: var(--navy); font-weight: 600; }

/* Redaction notice + two-option coding samples */
.redaction-notice { display: flex; align-items: center; gap: 10px; background: var(--teal-light); color: #0b5a66; border-radius: 10px; padding: 10px 14px; font-size: 0.88rem; margin: 8px 0 16px; }
.coding-samples { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 820px) { .coding-samples { grid-template-columns: 1fr; } }
.coding-sample { border: 2px solid var(--line); border-radius: 12px; padding: 16px 18px; background: var(--paper); }
.coding-sample.is-selected { border-color: var(--teal); box-shadow: 0 0 0 2px var(--teal-light); }
.coding-sample-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.coding-sample-head h3 { margin: 0; font-size: 0.98rem; }
.coding-editor { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.coding-editor input { width: 100%; }

/* OASIS completeness — red ✗ / green ✓ */
.oasis-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; margin-top: 14px; }
.oasis-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; font-size: 0.9rem; border: 1px solid var(--line); }
.oasis-item.is-found { background: #e9f7ef; border-color: #b6e3c7; color: #1c7a43; }
.oasis-item.is-missing { background: #fdecec; border-color: #f4c4c4; color: #b3261e; }
.oasis-item .oasis-domain { font-weight: 700; }
.oasis-item .oasis-label { opacity: 0.9; }
.oasis-dx { margin-top: 22px; }
.oasis-dx h3 { font-size: 1rem; color: var(--navy); }
.oasis-dx .oasis-item { margin-bottom: 8px; }

/* Live OASIS capture (during recording) */
.oasis-live { margin: 14px 0 4px; text-align: left; }
.oasis-live-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.oasis-live-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.oasis-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: 0.76rem; font-weight: 700; border: 1px solid var(--line); }
.oasis-chip.is-found { background: #e9f7ef; border-color: #b6e3c7; color: #1c7a43; }
.oasis-chip.is-missing { background: #fdecec; border-color: #f4c4c4; color: #b3261e; }
/* Two side-by-side cards that stack on small screens. */
.split-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 820px) { .split-cards { grid-template-columns: 1fr; } }

/* MyChart quick-action buttons wrap responsively. */
.mychart-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.mychart-actions .secondary-action { flex: 0 0 auto; }
.qr-holder { text-align: center; margin: 16px 0; }
.qr-holder svg { width: 200px; height: 200px; border: 6px solid #fff; box-shadow: 0 1px 6px rgba(20,33,61,0.15); border-radius: 8px; }
.setup-key {
  font-family: monospace; font-size: 1.05rem; letter-spacing: 2px; text-align: center;
  background: #14213d; color: #fff; padding: 10px; border-radius: 6px; word-break: break-all;
}

/* Resource link sits just above the sign-out button, pinned to the bottom. */
.side-resource {
  display: flex; align-items: center; gap: 10px; margin-top: auto; margin-bottom: 8px;
  width: 100%; text-decoration: none; border-radius: 8px;
  color: #cfe0e6; padding: 10px 12px; font-weight: 600; font-size: 0.9rem;
}
.side-resource i:first-child { width: 18px; text-align: center; }
.side-resource:hover { background: rgba(255,255,255,0.1); color: #fff; }
.side-signout {
  display: flex; align-items: center; gap: 10px; width: 100%;
  border: 1px solid rgba(255,255,255,0.22); border-radius: 8px; background: transparent;
  color: #fff; padding: 10px 12px; font-weight: 700;
}
.side-signout:hover { background: rgba(255,255,255,0.12); }

.workspace-content,
.vendor-content {
  border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 22px;
  box-shadow: 0 16px 40px rgba(24,32,51,0.06); min-height: 60vh;
}
.content-head { margin-bottom: 16px; }
.content-head h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.pending-card {
  display: flex; gap: 16px; align-items: flex-start; border: 1px dashed var(--border-strong, #bfcbd9);
  border-radius: 12px; background: var(--royal-subtle); padding: 20px;
}
.pending-card i { font-size: 1.8rem; color: var(--navy); }
.pending-card h2 { font-size: 1.1rem; margin-bottom: 6px; }

.service-config-form {
  gap: 12px;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  border: 0;
  padding: 0;
  margin: 0;
}

.option-grid label {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  color: var(--ink);
  font-weight: 700;
}

.option-grid input {
  width: auto;
  margin-top: 4px;
}

.option-grid small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
}

/* ── Tabs ── */
.tabbar { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 2px solid var(--line); margin-bottom: 16px; }
.tab {
  border: none; background: transparent; color: var(--muted); font-weight: 700;
  padding: 10px 14px; border-bottom: 3px solid transparent; margin-bottom: -2px;
}
.tab.is-active { color: var(--navy); border-bottom-color: var(--teal); }
.tab:hover { color: var(--navy); }

/* ── FHIR config cards ── */
.parse-card { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 16px; margin-bottom: 16px; }
.inline-form { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.inline-form input { flex: 1 1 320px; }
.inline-form select { flex: 1 1 130px; min-width: 120px; }
.config-card { border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 16px; margin-bottom: 12px; }
.config-card header { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.config-card header h3 { margin: 0; font-size: 1.02rem; }
.config-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; margin: 0; }
.config-grid div { display: grid; grid-template-columns: 130px 1fr; gap: 8px; }
.config-grid dt { color: var(--muted); font-weight: 700; font-size: 0.82rem; }
.config-grid dd { margin: 0; font-size: 0.85rem; overflow-wrap: anywhere; }
.config-note { margin: 12px 0 0; color: var(--muted); font-size: 0.85rem; border-top: 1px solid var(--line); padding-top: 10px; }

/* ── Artifacts ── */
.artifact-head { margin-bottom: 12px; }
.artifact-form { display: grid; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: var(--surface); margin-bottom: 16px; }
.artifact-card { border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 14px; margin-bottom: 10px; }
.artifact-card header { display: flex; align-items: center; gap: 8px; }
.artifact-card header strong { margin-right: auto; }
.artifact-code {
  margin: 10px 0 0; background: #0f1a2e; color: #dbe6f3; border-radius: 8px; padding: 12px;
  font-size: 0.82rem; overflow-x: auto; white-space: pre-wrap; word-break: break-word;
}

/* ── Payment ── */
.pay-layout { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 20px; align-items: start; }
.pay-card {
  aspect-ratio: 1.6 / 1; border-radius: 16px; padding: 22px; color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 16px 40px rgba(24,32,51,0.2);
}
.pay-card-top { display: flex; align-items: center; justify-content: space-between; }
.pay-chip { width: 42px; height: 30px; border-radius: 6px; background: linear-gradient(135deg, #e6c766, #b8912f); }
.pay-brand { font-weight: 700; letter-spacing: 0.08em; font-style: italic; }
.pay-number { font-size: 1.3rem; letter-spacing: 0.12em; font-family: "Courier New", monospace; }
.pay-card-bottom { display: flex; justify-content: space-between; font-size: 0.8rem; }
.pay-card-bottom span { display: block; color: #cfe3e8; font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.06em; }
.pay-form { display: grid; gap: 12px; }

/* ── Profile + questions ── */
#profileBody { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; align-items: start; }
.questions-card { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 16px; }
.questions-list { margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: 0.86rem; }
.questions-list li { margin-bottom: 8px; }

/* ── API settings standards ── */
.standards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.standard-card { border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 16px; display: grid; gap: 8px; align-content: start; }
.standard-card h3 { margin: 0; font-size: 1rem; }
.standard-card p { margin: 0; color: var(--muted); font-size: 0.86rem; }
.scope-line { display: block; background: var(--surface); border-radius: 6px; padding: 8px; font-size: 0.78rem; overflow-x: auto; }

/* ── Collapsible workspace nav (mobile-first) ────────────────────────────────
   Desktop (>1024px): the side panel is a static column, the mobile chrome is
   hidden. Medium and below (<=1024px): the menu COLLAPSES into an off-canvas
   drawer opened by the hamburger in a mobile top bar. */
.mobile-topbar { display: none; }
.nav-scrim { display: none; }
.mobile-nav-toggle {
  display: none; align-items: center; justify-content: center; width: 42px; height: 42px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--navy);
  font-size: 1.1rem; cursor: pointer;
}

@media (max-width: 1024px) {
  .workspace-shell, .vendor-shell { grid-template-columns: 1fr; }
  /* Mobile top bar with the hamburger + workspace title. */
  .mobile-topbar {
    display: flex; align-items: center; gap: 12px; grid-column: 1 / -1;
    background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px;
    position: sticky; top: 8px; z-index: 40;
  }
  .mobile-topbar-title { font-weight: 700; color: var(--navy); }
  .mobile-nav-toggle { display: inline-flex; }
  /* Side panel becomes an off-canvas drawer, hidden until opened. */
  .side-panel {
    position: fixed; top: 0; left: 0; height: 100dvh; width: 268px; max-width: 84vw;
    border-radius: 0; z-index: 1000; transform: translateX(-100%);
    transition: transform .25s ease; overflow-y: auto;
  }
  .workspace-shell.nav-open .side-panel { transform: translateX(0); box-shadow: 0 0 40px rgba(0,0,0,.4); }
  .workspace-shell.nav-open .nav-scrim {
    display: block; position: fixed; inset: 0; background: rgba(20,33,61,.5); z-index: 900;
  }
}

@media (max-width: 900px) {
  .reg-grid, .config-grid, .admin-stats, .pay-layout, #profileBody, .option-grid { grid-template-columns: 1fr; }
}

/* ── Activation page ── */
.activate-summary { margin-bottom: 8px; }
.legal-accept { display: grid; gap: 10px; margin: 8px 0 4px; }
.legal-check {
  display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start;
  border: 1px solid var(--line); border-radius: 8px; padding: 12px; color: var(--ink); font-weight: 500;
}
.legal-check input { width: 18px; height: 18px; margin-top: 2px; }
.legal-check a { color: var(--teal); font-weight: 700; }
/* On-brand "document" link chip for the legal agreements (opens in a new tab). */
.legal-doc-link {
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
  color: var(--teal); font-weight: 700; padding: 3px 10px; border-radius: 999px;
  background: var(--royal-subtle); border: 1px solid var(--line);
  transition: background .15s ease, border-color .15s ease;
}
.legal-doc-link:hover { background: #e6f0f3; border-color: var(--teal); }
.legal-doc-link .legal-doc-ext { font-size: 0.72em; opacity: 0.75; }
.password-hint { color: var(--muted); font-size: 0.82rem; margin: 4px 0 12px; }
.twofa-wrap { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: start; margin-top: 8px; }
.twofa-qr { width: 190px; height: 190px; border: 1px solid var(--line); border-radius: 12px; padding: 10px; background: #fff; }
.twofa-qr svg { width: 100%; height: 100%; }
.twofa-detail { display: grid; gap: 10px; align-content: start; }
.secret-key {
  display: inline-block; background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 12px; font-size: 1rem; letter-spacing: 0.12em; word-break: break-all;
}
@media (max-width: 640px) {
  .twofa-wrap { grid-template-columns: 1fr; }
}

/*
  Login restructure (regular login first), provider credential-guide pages,
  and the walkthrough tooltip callout.
  Author: Mildred Ojomah-Christopher
  Email: mildred.ojomah-christopher@simitreehc.com
*/

/* ── Login: regular first, then provider options ── */
.login-primary { max-width: 560px; }
.login-divider {
  display: flex; align-items: center; gap: 14px; max-width: 560px;
  margin: 20px 0; color: var(--muted); font-size: 0.85rem; font-weight: 700;
}
.login-divider::before, .login-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.provider-choice { display: grid; gap: 12px; max-width: 560px; }
.provider-option {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05); transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.provider-option:hover { border-color: var(--royal); box-shadow: 0 6px 18px rgba(0,0,0,0.08); transform: translateY(-1px); }
.provider-icon {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  background: var(--royal-subtle); color: var(--navy); font-size: 1.25rem;
}
.provider-copy { display: grid; gap: 2px; flex: 1; }
.provider-copy strong { font-size: 1.02rem; color: var(--ink); }
.provider-copy span { color: var(--muted); font-size: 0.88rem; }
.provider-option > .fa-chevron-right { color: var(--muted); }

/* ── Provider login pages (guide + sign-in) ── */
.back-link {
  display: inline-flex; align-items: center; gap: 8px; border: none; background: transparent;
  color: var(--navy); font-weight: 700; padding: 0; margin-bottom: 12px;
}
.back-link:hover { color: var(--teal); }
.provider-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr); gap: 20px; align-items: start; }
.provider-guide {
  border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 22px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.provider-guide h2 { font-size: 1.1rem; margin-bottom: 14px; }
.guide-steps { display: grid; gap: 14px; margin: 0; padding: 0; counter-reset: step; list-style: none; }
.guide-steps li {
  position: relative; padding-left: 46px; color: var(--muted); font-size: 0.92rem; line-height: 1.55;
}
.guide-steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: var(--navy); color: #fff; font-weight: 700; font-size: 0.9rem;
}
.guide-steps strong { color: var(--ink); }
.guide-steps code {
  background: var(--surface); border: 1px solid var(--line); border-radius: 5px;
  padding: 1px 6px; font-size: 0.82rem; overflow-wrap: anywhere;
}
.provider-signin { position: sticky; top: 16px; }
.provider-go { display: inline-block; margin-top: 10px; text-decoration: none; text-align: center; }

/* ── Header Guide button ── */
.nav-guide { display: inline-flex; align-items: center; gap: 6px; }

/* ── Walkthrough callout ── */
.walkthrough {
  position: fixed; left: 50%; top: 84px; z-index: 1200;
  width: min(360px, calc(100vw - 24px)); padding: 16px 18px;
  background: #fff; border: 1px solid var(--border-strong, #bfcbd9); border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.18);
}
.walkthrough::before {
  content: ""; position: absolute; display: none; width: 14px; height: 14px;
  background: #fff; border: 1px solid var(--border-strong, #bfcbd9); transform: rotate(45deg);
}
.walkthrough[data-arrow="up"]::before { display: block; top: -8px; left: calc(var(--wt-arrow, 40px) - 7px); border-right-color: transparent; border-bottom-color: transparent; }
.walkthrough[data-arrow="down"]::before { display: block; bottom: -8px; left: calc(var(--wt-arrow, 40px) - 7px); border-top-color: transparent; border-left-color: transparent; }
.walkthrough[data-arrow="left"]::before { display: block; left: -8px; top: calc(var(--wt-arrow, 40px) - 7px); border-top-color: transparent; border-right-color: transparent; }
.walkthrough[data-arrow="right"]::before { display: block; right: -8px; top: calc(var(--wt-arrow, 40px) - 7px); border-bottom-color: transparent; border-left-color: transparent; }
.walkthrough-kicker {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 6px;
  color: var(--teal); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.walkthrough-kicker span { color: var(--muted); font-weight: 700; letter-spacing: 0.03em; text-transform: none; }
.walkthrough h2 { font-size: 1.05rem; margin: 0 0 6px; }
.walkthrough > p { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.5; }
.walkthrough-actions { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.walkthrough-actions .primary-action, .walkthrough-actions .secondary-action { min-height: 36px; padding: 4px 14px; font-size: 0.85rem; }
.walkthrough-skip { margin-left: auto; border: none; background: transparent; color: var(--muted); font-weight: 700; }
.walkthrough-skip:hover { color: var(--ink); }
.walkthrough-highlight {
  position: relative; z-index: 1120; outline: 3px solid var(--teal-bright, #17a2b8); outline-offset: 3px;
  border-radius: 8px; box-shadow: 0 0 0 7px rgba(23,162,184,0.18);
}

@media (max-width: 900px) {
  .provider-layout { grid-template-columns: 1fr; }
  .provider-signin { position: static; }
}
