/* @ekm-tags: style, misc */
/* GLP-1 Treatment program - clinician workspace (js/ekm-glp1.js). Built on the portal's theme tokens (--c-*, --status-*),
   so it follows the active theme, light or dark (html[data-dark]). Layout: sticky glass header, two-column enrollment
   view with a progress rail, soft elevated cards, pill badges with status dots, segmented tabs. */
.g1, .g1-ws {
  --g1-bg: var(--c-bg, #F3EDE4);
  --g1-card: var(--c-box, #FAF6EF);
  --g1-border: var(--c-box-border, #D9D0C4);
  --g1-hair: color-mix(in srgb, var(--g1-border) 60%, transparent);
  --g1-ink: var(--c-ink, #1C1814);
  --g1-ink2: var(--c-ink2, #3D3830);
  --g1-muted: var(--c-muted, #5A5248);
  --g1-danger: var(--status-danger-ink, #B23A2E);
  --g1-danger-bg: var(--status-danger-bg, rgba(178, 58, 46, 0.10));
  --g1-ok: var(--status-success-ink, #2E7051);
  --g1-ok-bg: var(--status-success-bg, rgba(46, 112, 81, 0.11));
  --g1-wait: var(--status-pending-ink, #9A5F1F);
  --g1-wait-bg: var(--status-pending-bg, rgba(217, 166, 92, 0.17));
  --g1-soft: color-mix(in srgb, var(--g1-ink) 6%, transparent);
  --g1-softer: color-mix(in srgb, var(--g1-ink) 3%, transparent);
  --g1-shadow: 0 1px 2px rgba(28, 24, 20, 0.05), 0 8px 24px -12px rgba(28, 24, 20, 0.14);
  --g1-shadow-hover: 0 2px 4px rgba(28, 24, 20, 0.06), 0 14px 32px -14px rgba(28, 24, 20, 0.22);
  --g1-radius: 16px;
  --g1-radius-sm: 10px;
  --g1-font: var(--font-ui, 'DM Sans', -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif);
  font-family: var(--g1-font);
  color: var(--g1-ink);
  -webkit-font-smoothing: antialiased;
}
html[data-dark] .g1, html[data-dark] .g1-ws {
  --g1-shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 10px 28px -14px rgba(0, 0, 0, 0.6);
  --g1-shadow-hover: 0 2px 4px rgba(0, 0, 0, 0.4), 0 16px 36px -14px rgba(0, 0, 0, 0.7);
}

/* ---- Follows each user's own EKM OS colour theme (owner 2026-11-12: "it should match the users color choices but make the boxes look
   way better and more high tech modern"). Every colour comes from the theme tokens (--c-*, --status-*); the cards get layered
   surfaces, a crisp top highlight, accent-tinted icon wells and a soft accent glow on hover. The portal's own font throughout. ---- */
.g1, .g1-ws {
  --g1-accent: var(--c-accent, var(--c-ink, #1C1814));
  --g1-font: var(--font-ui, 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif); --g1-display: var(--g1-font);
  --g1-radius: 18px; --g1-radius-sm: 12px;
  --g1-edge: color-mix(in srgb, var(--g1-ink) 9%, transparent);
  --g1-glow: color-mix(in srgb, var(--g1-accent) 22%, transparent);
  --g1-well: color-mix(in srgb, var(--g1-accent) 14%, var(--g1-card));
  --g1-t1: var(--g1-well); --g1-i1: var(--g1-accent); --g1-t2: var(--g1-danger-bg); --g1-i2: var(--g1-danger); --g1-t3: var(--g1-well); --g1-i3: var(--g1-accent);
  --g1-t4: var(--g1-well); --g1-i4: var(--g1-accent); --g1-t5: var(--g1-well); --g1-i5: var(--g1-accent);
}
.g1, .g1-ws { font-family: var(--g1-font); }
.g1 .g1-h, .g1-ws-title, .g1-home-title, .g1-acc-title, .g1-tile-title, .g1-stage-n, .g1-stat-n, .g1-appr-ghead h4, .g1-now-h { font-family: var(--g1-font); }
.g1 .g1-h { font-weight: 600; font-size: 26px; letter-spacing: -.025em; }
.g1-ws-title { font-weight: 600; }
/* modern surfaces: cards, tiles, stage and stat boxes, rows */
.g1 .g1-card, .g1 .g1-tile, .g1 .g1-stage, .g1 .g1-stat, .g1 .g1-row, .g1 .g1-acc, .g1 .g1-now, .g1 .g1-appr-item, .g1 .g1-how-step {
  background: linear-gradient(180deg, color-mix(in srgb, var(--g1-card) 92%, #fff 8%), var(--g1-card)) !important;
  border: 1px solid var(--g1-edge) !important;
  box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 14%, transparent), 0 1px 2px rgba(0, 0, 0, .06), 0 14px 34px -22px rgba(0, 0, 0, .45) !important;
}
.g1 .g1-tile { position: relative; overflow: hidden; }
.g1 .g1-tile::before { content: ""; position: absolute; inset: -40% -30% auto auto; width: 70%; height: 90%; pointer-events: none;
  background: radial-gradient(closest-side, var(--g1-glow), transparent); opacity: 0; transition: opacity .25s ease; }
.g1 .g1-tile:hover:not([disabled]), .g1 .g1-stage:hover:not([disabled]), .g1 .g1-row:hover {
  border-color: color-mix(in srgb, var(--g1-accent) 45%, var(--g1-edge)) !important;
  box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 16%, transparent), 0 0 0 3px color-mix(in srgb, var(--g1-accent) 12%, transparent), 0 20px 44px -22px rgba(0, 0, 0, .55) !important; }
.g1 .g1-tile:hover:not([disabled])::before { opacity: 1; }
.g1 .g1-tile-ico { border-radius: 14px !important; width: 46px !important; height: 46px !important;
  background: linear-gradient(145deg, var(--g1-tint, var(--g1-well)), color-mix(in srgb, var(--g1-tint, var(--g1-well)) 55%, var(--g1-card))) !important;
  color: var(--g1-icol, var(--g1-accent)) !important; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--g1-icol, var(--g1-accent)) 22%, transparent); }
.g1 .g1-tile-go { color: var(--g1-accent) !important; }
.g1 .g1-stage { border-top: 2px solid color-mix(in srgb, var(--g1-accent) 55%, transparent) !important; }

/* ---- Workspace shell ---- */
/* Shared EKM OS modals (the password re-check before an approval, confirmations) open above the full-screen workspace (z 9000). */
body.g1-ws-open #modal.modal-bg { z-index: 9500; }
.g1-ws { position: fixed; inset: 0; z-index: 9000; display: flex; flex-direction: column;
  background: radial-gradient(1200px 600px at 100% -10%, var(--g1-soft), transparent 60%), var(--g1-bg); }
.g1-ws[hidden] { display: none; }
.g1-ws-top { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 28px; border-bottom: 1px solid var(--g1-hair);
  background: color-mix(in srgb, var(--g1-card) 82%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); }
.g1-ws-brand { display: flex; align-items: center; gap: 12px; }
.g1-ws-mark { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none;
  background: var(--g1-ink); color: var(--g1-card); font-weight: 700; font-size: 12px; letter-spacing: .02em; }
.g1-eyebrow { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--g1-muted); }
.g1-ws-title { margin: 1px 0 0; font-size: 18px; font-weight: 650; letter-spacing: -0.015em; }
.g1-ws-body { flex: 1; overflow: auto; padding: 24px 28px 64px; }
.g1-ws-body > .g1 { max-width: 1180px; margin: 0 auto; }

/* ---- Type ---- */
.g1 { font-size: 14px; line-height: 1.5; }
.g1 h4 { margin: 0 0 12px; font-size: 15px; font-weight: 650; letter-spacing: -0.01em; color: var(--g1-ink); }
.g1 h5 { margin: 16px 0 6px; font-size: 12.5px; font-weight: 600; letter-spacing: .02em; color: var(--g1-muted); }
.g1-h { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.g1-sub { margin: 6px 0 14px; color: var(--g1-muted); font-size: 13.5px; }
.g1-muted { color: var(--g1-muted); font-size: 12.5px; margin: 4px 0; }
.g1-ok { color: var(--g1-ok); margin: 4px 0; font-weight: 500; }
.g1-empty { color: var(--g1-muted); padding: 18px; margin: 0; text-align: center; border: 1px dashed var(--g1-border);
  border-radius: var(--g1-radius-sm); background: var(--g1-softer); }

/* ---- Callouts ---- */
.g1-alert, .g1-warn { position: relative; border-radius: 12px; padding: 12px 14px 12px 42px; margin: 0 0 14px; font-size: 13.5px; }
.g1-alert::before, .g1-warn::before { content: "!"; position: absolute; left: 14px; top: 12px; width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center; font-size: 11px; font-weight: 800; color: var(--g1-card); }
.g1-alert { background: var(--g1-danger-bg); color: var(--g1-danger); border: 1px solid color-mix(in srgb, var(--g1-danger) 22%, transparent); }
.g1-alert::before { background: var(--g1-danger); }
.g1-alert[role="note"] { background: var(--g1-wait-bg); color: var(--g1-ink2); border-color: color-mix(in srgb, var(--g1-wait) 25%, transparent); }
.g1-alert[role="note"]::before { background: var(--g1-wait); }
.g1-warn { background: var(--g1-wait-bg); color: var(--g1-ink2); border: 1px solid color-mix(in srgb, var(--g1-wait) 22%, transparent); }
.g1-warn::before { background: var(--g1-wait); }
.g1-alert p { margin: 0; }
.g1-alert ul { margin: 6px 0 0; padding-left: 18px; }

/* ---- Bars, actions, buttons ---- */
.g1-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.g1-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.g1-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0; }
.g1-bar .g1-actions { margin: 0; }
.g1-btn { font: inherit; font-size: 13px; font-weight: 550; min-height: 36px; padding: 0 14px; border-radius: var(--g1-radius-sm);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; white-space: nowrap;
  border: 1px solid var(--g1-border); background: var(--g1-card); color: var(--g1-ink);
  box-shadow: 0 1px 1px rgba(28, 24, 20, 0.04); transition: background .15s, border-color .15s, box-shadow .15s, transform .05s; }
.g1-btn:hover:not(:disabled) { border-color: color-mix(in srgb, var(--g1-ink) 35%, var(--g1-border)); background: color-mix(in srgb, var(--g1-card) 92%, var(--g1-ink)); }
.g1-btn:active:not(:disabled) { transform: translateY(1px); }
.g1-btn:disabled { opacity: .5; cursor: default; }
.g1-btn--primary { background: var(--g1-ink); color: var(--g1-card); border-color: var(--g1-ink);
  box-shadow: 0 1px 2px rgba(28, 24, 20, 0.2), 0 4px 12px -6px rgba(28, 24, 20, 0.5); }
.g1-btn--primary:hover:not(:disabled) { background: color-mix(in srgb, var(--g1-ink) 86%, var(--g1-card)); border-color: transparent; }
.g1-btn svg { width: 16px; height: 16px; }
.g1-btn--icon { width: 36px; padding: 0; }
.g1-btn:focus-visible, .g1-row-btn:focus-visible, .g1-input:focus-visible, .g1-tab:focus-visible, .g1 summary:focus-visible {
  outline: none; box-shadow: 0 0 0 2px var(--g1-card), 0 0 0 4px color-mix(in srgb, var(--g1-ink) 55%, transparent); }

/* ---- Cards ---- */
.g1-card { background: var(--g1-card); border: 1px solid var(--g1-hair); border-radius: var(--g1-radius); padding: 20px 22px; margin: 0 0 16px; box-shadow: var(--g1-shadow); }
.g1 details { border-top: 1px solid var(--g1-hair); margin-top: 14px; }
details.g1-card { border: 1px solid var(--g1-hair); margin-top: 0; padding-top: 6px; padding-bottom: 6px; }
.g1 details > summary { cursor: pointer; list-style: none; font-weight: 600; font-size: 13.5px; padding: 12px 0; display: flex; align-items: center; gap: 8px; border-radius: 8px; }
.g1 details > summary::-webkit-details-marker { display: none; }
.g1 details > summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(-45deg); transition: transform .15s; opacity: .55; margin: 0 4px 0 2px; }
.g1 details[open] > summary::before { transform: rotate(45deg); }

/* ---- Enrollment view: content beside a sticky progress rail ---- */
.g1-hero { display: flex; align-items: center; gap: 14px; margin: 2px 0 20px; flex-wrap: wrap; }
.g1-hero .g1-avatar { width: 48px; height: 48px; border-radius: 15px; font-size: 14px; }
.g1-hero .g1-sub { margin: 4px 0 0; }
.g1-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.g1-main { min-width: 0; grid-column: 1; grid-row: 1; }
.g1-side { grid-column: 2; grid-row: 1; position: sticky; top: 8px; }
.g1-side .g1-card { padding: 18px; }
@media (max-width: 980px) {
  .g1-layout { grid-template-columns: minmax(0, 1fr); }
  .g1-side, .g1-main { grid-column: 1; grid-row: auto; position: static; }
}

/* ---- Progress steps (vertical rail) ---- */
.g1-steps { list-style: none; padding: 0; margin: 0; }
.g1-step { position: relative; display: flex; align-items: center; gap: 12px; padding: 6px 0; font-size: 13px; color: var(--g1-muted); }
.g1-step::before { content: ""; position: absolute; left: 11px; top: -8px; height: 16px; width: 2px; background: var(--g1-border); }
.g1-step:first-child::before { display: none; }
.g1-step-dot { width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700;
  border: 2px solid var(--g1-border); background: var(--g1-card); color: var(--g1-muted); position: relative; z-index: 1; }
.g1-step.is-done { color: var(--g1-ink2); }
.g1-step.is-done::before { background: var(--g1-ok); }
.g1-step.is-done .g1-step-dot { background: var(--g1-ok); border-color: var(--g1-ok); color: var(--g1-card); }
.g1-step.is-current { color: var(--g1-ink); font-weight: 650; }
.g1-step.is-current .g1-step-dot { border-color: var(--g1-ink); color: var(--g1-ink); box-shadow: 0 0 0 4px var(--g1-soft); }

/* ---- Lists ---- */
.g1-todo { list-style: none; margin: 0 0 12px; padding: 0; }
.g1-todo li { position: relative; padding: 8px 0 8px 26px; font-size: 13px; border-top: 1px solid var(--g1-hair); }
.g1-todo li:first-child { border-top: 0; }
.g1-todo li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 14px; height: 14px; border-radius: 5px; border: 2px solid var(--g1-wait); }
.g1-plain { margin: 0; padding-left: 18px; }
.g1-plain li { margin: 5px 0; }
.g1-plain li::marker { color: var(--g1-muted); }
.g1-item { border-top: 1px solid var(--g1-hair); padding: 12px 0; }

/* ---- Enrollment list ---- */
.g1-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.g1-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: var(--g1-card); border: 1px solid var(--g1-hair); border-radius: 14px; padding: 12px 16px; box-shadow: var(--g1-shadow);
  transition: box-shadow .15s, transform .15s, border-color .15s; }
.g1-row:hover { box-shadow: var(--g1-shadow-hover); transform: translateY(-1px); border-color: var(--g1-border); }
.g1-card .g1-list { gap: 0; }
.g1-card .g1-row { border: 0; border-top: 1px solid var(--g1-hair); border-radius: 0; box-shadow: none; padding: 10px 0; }
.g1-card .g1-row:first-child { border-top: 0; }
.g1-card .g1-row:hover { transform: none; box-shadow: none; }
.g1-row-btn { font: inherit; text-align: left; background: none; border: 0; padding: 2px 0; color: inherit; cursor: pointer;
  display: flex; align-items: center; gap: 12px; flex: 1; min-width: 220px; border-radius: 8px; }
.g1-avatar { width: 38px; height: 38px; border-radius: 12px; flex: none; display: grid; place-items: center; font-size: 12px; font-weight: 700;
  background: var(--g1-soft); color: var(--g1-ink2); }
.g1-row-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.g1-row-title { font-weight: 650; }
.g1-row-sub { color: var(--g1-muted); font-size: 12.5px; }
.g1-row-right { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---- Badges ---- */
.g1-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 550; line-height: 1; padding: 6px 10px; border-radius: 7px;
  background: var(--g1-soft); color: var(--g1-ink2); white-space: nowrap; }
.g1-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .75; }
.g1-chip--pending { background: var(--g1-wait-bg); color: var(--g1-wait); }
.g1-chip--stable { background: var(--g1-ok-bg); color: var(--g1-ok); }
.g1-chip--danger { background: var(--g1-danger-bg); color: var(--g1-danger); }
.g1-chip--quiet { background: var(--g1-softer); color: var(--g1-muted); }

/* ---- Tables and definition lists ---- */
.g1-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.g1-table th { text-align: left; font-weight: 600; font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--g1-muted);
  border-bottom: 1px solid var(--g1-hair); padding: 8px 12px 8px 0; }
.g1-table td { vertical-align: top; border-bottom: 1px solid var(--g1-hair); padding: 12px 12px 12px 0; }
.g1-table tr:last-child td { border-bottom: 0; }
.g1-table tbody tr { transition: background .12s; }
.g1-table tbody tr:hover { background: var(--g1-softer); }
.g1-table th[scope="row"] { width: 28%; text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--g1-ink2); font-weight: 600;
  vertical-align: top; padding-top: 12px; }
.g1-table tr:last-child th[scope="row"] { border-bottom: 0; }
.g1-scroll { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.g1-scroll .g1-table { min-width: 620px; }
.g1-dl { display: grid; grid-template-columns: minmax(140px, 30%) 1fr; gap: 0; margin: 0; font-size: 13.5px; border: 1px solid var(--g1-hair); border-radius: 12px; overflow: hidden; }
.g1-dl dt, .g1-dl dd { padding: 9px 12px; border-top: 1px solid var(--g1-hair); }
.g1-dl dt:first-of-type, .g1-dl dt:first-of-type + dd { border-top: 0; }
.g1-dl dt { color: var(--g1-muted); background: var(--g1-softer); }
.g1-dl dd { margin: 0; white-space: pre-wrap; }

/* ---- Forms ---- */
.g1-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px 16px; margin: 6px 0 14px; }
.g1-grid > .g1-actions, .g1-grid > .g1-checks { grid-column: 1 / -1; }
.g1-field { display: flex; flex-direction: column; gap: 6px; }
.g1-label { font-size: 12.5px; color: var(--g1-ink2); font-weight: 600; }
.g1-hint { font-size: 12px; color: var(--g1-muted); }
.g1-input { font: inherit; font-size: 13.5px; min-height: 40px; padding: 8px 12px; border-radius: var(--g1-radius-sm); border: 1px solid var(--g1-border);
  background: color-mix(in srgb, var(--g1-bg) 55%, var(--g1-card)); color: var(--g1-ink); box-sizing: border-box; width: 100%; transition: border-color .15s, background .15s; }
.g1-input:hover { border-color: color-mix(in srgb, var(--g1-ink) 30%, var(--g1-border)); }
.g1-input:focus { background: var(--g1-card); border-color: var(--g1-ink); }
textarea.g1-input { min-height: 76px; resize: vertical; line-height: 1.45; }
.g1-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px 16px; padding: 12px; border-radius: 12px; background: var(--g1-softer); }
.g1-check { display: flex; gap: 10px; align-items: center; font-size: 13px; cursor: pointer; }
.g1-check input { width: 18px; height: 18px; accent-color: var(--g1-ink); flex: none; }
.g1-inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
.g1-inline .g1-input { width: auto; min-width: 150px; flex: 1; }

/* ---- Tabs (segmented) ---- */
.g1-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin: 14px 0 18px; border-radius: 12px; background: var(--g1-soft); width: fit-content; max-width: 100%; }
.g1-tab { font: inherit; font-size: 13px; font-weight: 550; background: none; border: 0; padding: 7px 12px; border-radius: 9px; color: var(--g1-muted); cursor: pointer;
  transition: background .15s, color .15s; }
.g1-tab:hover { color: var(--g1-ink); }
.g1-tab.is-active { background: var(--g1-card); color: var(--g1-ink); box-shadow: 0 1px 2px rgba(28, 24, 20, 0.08), 0 2px 8px -4px rgba(28, 24, 20, 0.2); }

/* ---- Patient wording preview: a calm reading card ---- */
.g1-patient { max-width: 680px; padding: 28px 32px; font-size: 15.5px; line-height: 1.65; }
.g1-patient h5 { font-size: 16px; font-weight: 650; letter-spacing: -0.01em; color: var(--g1-ink); margin: 22px 0 6px; }
.g1-patient p { margin: 6px 0; }
.g1-patient .g1-plain li { margin: 6px 0; }
.g1-pre { white-space: pre-wrap; font-size: 12px; }

@media (max-width: 640px) {
  .g1-ws-top { padding: 12px 16px; }
  .g1-ws-body { padding: 16px 16px 48px; }
  .g1-card { padding: 16px; border-radius: 14px; }
  .g1-h { font-size: 19px; }
  .g1-dl { grid-template-columns: 1fr; }
  .g1-dl dd { border-top: 0; }
  .g1-patient { padding: 20px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .g1-row, .g1-btn, .g1-tab, .g1 details > summary::before { transition: none; }
}

/* ---- Side rail details ---- */
.g1-side .g1-next .g1-actions { flex-direction: column; align-items: stretch; }
.g1-side .g1-next .g1-btn { width: 100%; }
.g1-side .g1-open-items h4 { font-size: 13.5px; margin-bottom: 6px; }
.g1-side .g1-open-items h4 + .g1-todo, .g1-side .g1-open-items h4 + .g1-ok { margin-bottom: 14px; }
.g1-side .g1-warn { margin-bottom: 12px; }

/* ---- Hero and status-toned badges ---- */
.g1-hero { flex-wrap: nowrap; align-items: flex-start; }
.g1-hero-text { flex: 1; min-width: 0; }
.g1-avatar--pending { background: var(--g1-wait-bg); color: var(--g1-wait); }
.g1-avatar--stable { background: var(--g1-ok-bg); color: var(--g1-ok); }
.g1-avatar--danger { background: var(--g1-danger-bg); color: var(--g1-danger); }
.g1-avatar--quiet { background: var(--g1-softer); color: var(--g1-muted); }
.g1-step.is-optional .g1-step-dot { border-style: dashed; }
.g1-step .g1-muted { font-size: 12px; margin: 0; font-weight: 400; }
.g1-step-label { flex: 1; min-width: 0; }
.g1-step-label .g1-muted { display: inline; white-space: nowrap; }
/* Narrow screens: wide tables scroll inside their card, never the page */
.g1-table .g1-chip { white-space: normal; line-height: 1.2; }
@media (max-width: 640px) {
  .g1-card { overflow-x: auto; }
  .g1-card > .g1-table { min-width: 520px; }
}

/* ---- Program home (owner 2026-11-12: clickable sections instead of a bare list) ---- */
.g1 { --g1-accent: var(--c-accent, #A7865A); }
.g1-home-hero { background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 8px 0 6px !important; }
.g1-home-title { font-weight: 600 !important; font-size: clamp(30px, 3.6vw, 40px) !important; letter-spacing: -.035em !important; }
.g1 .g1-eyebrow { font-weight: 600; letter-spacing: .14em; color: var(--g1-muted); }
.g1-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; grid-auto-rows: 1fr; gap: 18px !important; }
@media (max-width: 980px) { .g1-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 560px) { .g1-tiles { grid-template-columns: 1fr !important; } }
.g1-setup { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: -6px 0 30px; }
.g1-setup-label { font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--g1-muted); margin-right: 6px; }
.g1-setup-link { font: inherit; font-size: 13.5px; font-weight: 500; min-height: 40px; padding: 0 16px; border-radius: 10px; cursor: pointer;
  color: var(--g1-ink2); background: var(--g1-card); border: 1px solid var(--g1-hair); }
.g1-setup-link:hover { border-color: var(--g1-border); color: var(--g1-ink); }
.g1-setup-link:focus-visible { outline: 2px solid var(--g1-accent); outline-offset: 2px; }
.g1 .g1-home-h { font-size: 12px; font-weight: 500; letter-spacing: .16em; color: var(--g1-muted); }
.g1 > .g1-alert[role="alert"] { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px 12px 44px; border-radius: 16px; }
.g1 > .g1-alert[role="alert"] .g1-btn { flex: none; }
.g1 .g1-note { font-size: 13px; border-radius: 14px; }
.g1 .g1-btn { border-radius: 10px; padding: 0 16px; min-height: 38px; }
.g1-tile { border-radius: 18px !important; padding: 24px 24px 22px !important; min-height: 148px !important; }
.g1-tile-ico { border-radius: 50% !important; width: 48px !important; height: 48px !important; background: var(--g1-tint, var(--g1-soft)) !important; color: var(--g1-icol, var(--g1-muted)) !important; }
.g1-tile-title { font-weight: 600 !important; font-size: 17px !important; letter-spacing: -.02em; }
.g1-tile[data-act="patients"] { --g1-tint: var(--g1-t1); --g1-icol: var(--g1-i1); }
.g1-tile[data-act="alerts"] { --g1-tint: var(--g1-t2); --g1-icol: var(--g1-i2); }
.g1-tile[data-act="approvals"] { --g1-tint: var(--g1-t5); --g1-icol: var(--g1-i5); }
.g1-tile[data-act="wording"], .g1-tile[data-act="cl-handout"] { --g1-tint: var(--g1-t3); --g1-icol: var(--g1-i3); }
.g1-tile[data-act="ref"], .g1-tile[data-act="catalog"], .g1-tile[data-act="authority"], .g1-tile[data-act="settings"] { --g1-tint: var(--g1-t4); --g1-icol: var(--g1-i4); }
.g1-stage, .g1-stat { border-radius: 18px !important; }
.g1-stage-n, .g1-stat-n { font-weight: 600 !important; letter-spacing: -.03em; }
.g1-how-step { border-radius: 18px !important; background: var(--g1-card) !important; }
.g1-home-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 24px; margin: 0 0 18px;
  border: 1px solid var(--g1-hair); border-radius: var(--g1-radius);
  background: linear-gradient(135deg, color-mix(in srgb, var(--g1-accent) 14%, var(--g1-card)), var(--g1-card) 60%); box-shadow: var(--g1-shadow); }
.g1-eyebrow { margin: 0 0 4px; font-size: 11.5px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--g1-accent); }
.g1-home-title { margin: 0; font-size: 26px; line-height: 1.15; font-weight: 650; letter-spacing: -.01em; color: var(--g1-ink); }
.g1-home-lead { margin: 6px 0 0; max-width: 62ch; font-size: 14px; line-height: 1.5; color: var(--g1-muted); }
.g1-note { margin: 0 0 16px; padding: 10px 14px; border-radius: var(--g1-radius-sm); font-size: 13px; line-height: 1.45; color: var(--g1-muted);
  background: var(--g1-softer); border: 1px solid var(--g1-hair); }

.g1-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin: 0 0 26px; }
.g1-tile { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr; column-gap: 14px; align-items: start;
  min-height: 118px; padding: 18px 18px 16px; text-align: left; font: inherit; color: inherit; cursor: pointer;
  background: var(--g1-card); border: 1px solid var(--g1-hair); border-radius: var(--g1-radius); box-shadow: var(--g1-shadow);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.g1-tile:hover:not([disabled]) { transform: translateY(-2px); box-shadow: var(--g1-shadow-hover); border-color: color-mix(in srgb, var(--g1-accent) 55%, var(--g1-hair)); }
.g1-tile:focus-visible { outline: 2px solid var(--g1-accent); outline-offset: 2px; }
.g1-tile[disabled] { cursor: default; opacity: .6; }
.g1-tile-ico { grid-row: 1 / span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  color: var(--g1-accent); background: color-mix(in srgb, var(--g1-accent) 14%, transparent); }
.g1-ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.g1-tile-body { display: flex; flex-direction: column; gap: 5px; padding-right: 22px; }
.g1-tile-title { font-size: 15.5px; font-weight: 650; color: var(--g1-ink); line-height: 1.25; }
.g1-tile-text { font-size: 13px; line-height: 1.45; color: var(--g1-muted); }
.g1-tile-badge { grid-column: 2; justify-self: start; margin-top: 10px; padding: 3px 10px; border-radius: 7px; font-size: 12px; font-weight: 600;
  background: var(--g1-soft); color: var(--g1-ink2); }
.g1-tile-badge--danger { background: var(--g1-danger-bg); color: var(--g1-danger); }
.g1-tile-badge--pending { background: var(--g1-wait-bg); color: var(--g1-wait); }
.g1-tile-badge--stable { background: var(--g1-ok-bg); color: var(--g1-ok); }
.g1-tile-go { position: absolute; top: 18px; right: 16px; color: var(--g1-muted); opacity: .55; transition: transform .16s ease, opacity .16s ease; }
.g1-tile-go .g1-ico { width: 18px; height: 18px; }
.g1-tile:hover:not([disabled]) .g1-tile-go { opacity: 1; transform: translateX(3px); color: var(--g1-accent); }
.g1-tile--danger { border-color: color-mix(in srgb, var(--g1-danger) 45%, var(--g1-hair)); }
.g1-tile--danger .g1-tile-ico { color: var(--g1-danger); background: var(--g1-danger-bg); }

.g1-home-sec { margin: 0 0 26px; }
.g1-home-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.g1-home-h { margin: 0 0 12px; font-size: 13px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--g1-muted); }
.g1-home-sec-head .g1-home-h { margin: 0; }
.g1 .g1-home-h--sub { margin-top: 22px; }
.g1-stages { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 8px; }
.g1-stage { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px 16px; font: inherit; color: inherit; text-align: left; cursor: pointer;
  background: var(--g1-card); border: 1px solid var(--g1-hair); border-radius: var(--g1-radius-sm); transition: border-color .15s ease, transform .15s ease; }
.g1-stage:hover:not([disabled]) { border-color: var(--g1-accent); transform: translateY(-1px); }
.g1-stage:focus-visible { outline: 2px solid var(--g1-accent); outline-offset: 2px; }
.g1-stage-n { font-size: 26px; font-weight: 650; line-height: 1.1; color: var(--g1-ink); font-variant-numeric: tabular-nums; }
.g1-stage--empty .g1-stage-n { color: var(--g1-muted); opacity: .6; }
.g1-stage-label { font-size: 13.5px; font-weight: 600; color: var(--g1-ink2); }
.g1-stage-hint { font-size: 12px; color: var(--g1-muted); }

.g1-how { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; counter-reset: none; }
.g1-how-step { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: var(--g1-radius-sm); background: var(--g1-softer); border: 1px solid var(--g1-hair); }
.g1-how-n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-size: 13px; font-weight: 700;
  color: var(--g1-accent); border: 1.5px solid color-mix(in srgb, var(--g1-accent) 60%, transparent); }
.g1-how-title { font-size: 14px; font-weight: 650; color: var(--g1-ink); }
.g1-how-text { font-size: 12.5px; line-height: 1.45; color: var(--g1-muted); }

.g1-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 16px; }
.g1-pill { font: inherit; font-size: 13px; font-weight: 550; min-height: 34px; padding: 0 14px; border-radius: 10px; cursor: pointer;
  color: var(--g1-ink2); background: var(--g1-card); border: 1px solid var(--g1-hair); }
.g1-pill:hover { border-color: var(--g1-accent); }
.g1-pill.is-on { color: var(--g1-card); background: var(--g1-ink); border-color: var(--g1-ink); }
.g1-pill:focus-visible { outline: 2px solid var(--g1-accent); outline-offset: 2px; }
.g1-pill-n { margin-left: 4px; opacity: .7; font-variant-numeric: tabular-nums; }
.g1-search { margin-left: auto; min-width: 220px; }
.g1-search .g1-input { width: 100%; }
.g1-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 900px) {
  .g1-stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g1-how { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .g1-tiles, .g1-how { grid-template-columns: 1fr; }
  .g1-home-hero { padding: 18px; }
  .g1-home-title { font-size: 22px; }
  .g1-search { margin-left: 0; min-width: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .g1-tile, .g1-tile-go, .g1-stage { transition: none; } }

/* ---- Easier reading (owner 2026-11-12: "miserable to look at, especially for someone with ADHD") ----
   Short line length, more air between items, one section open at a time, sources hidden until asked for,
   on-the-label vs research told apart by a coloured edge, not by reading the heading. */
.g1 { --g1-read: 76ch; }
.g1 .g1-plain li { margin: 9px 0; line-height: 1.55; max-width: var(--g1-read); }
.g1 .g1-lead { margin: 0 0 16px; max-width: var(--g1-read); font-size: 15px; line-height: 1.6; color: var(--g1-ink2); }
.g1-cite { display: block; margin-top: 2px; font-size: 11.5px; line-height: 1.4; color: var(--g1-muted); opacity: .85; }
.g1-draft-tag { margin-left: 6px; font-size: 11px; vertical-align: 1px; }
/* Source type on every reference item: FDA label / FDA communication / EKM protocol (not approved) / Research */
.g1-src { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 7px; font-size: 11px; font-weight: 600; line-height: 1.5; vertical-align: 1px; white-space: nowrap; }
.g1-src--label { background: var(--g1-ok-bg); color: var(--g1-ok); }
.g1-src--fda { background: var(--g1-softer); color: var(--g1-ink2); border: 1px solid var(--g1-hair); }
.g1-src--protocol { background: var(--g1-wait-bg); color: var(--g1-wait); }
.g1-src--research { background: var(--g1-soft); color: var(--g1-accent); }
.g1-tabs--ref { margin-top: -10px; }
.g1-indications { margin: 0 0 16px; }
.g1-indications h4 { margin: 0 0 10px; }
.g1-toggle.is-on { background: var(--g1-ink); color: var(--g1-card); border-color: var(--g1-ink); }

.g1-jump { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; }
.g1-jump-label { font-size: 12px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--g1-muted); margin-right: 4px; }

.g1-acc { margin: 0 0 10px; background: var(--g1-card); border: 1px solid var(--g1-hair); border-radius: var(--g1-radius); box-shadow: var(--g1-shadow); scroll-margin-top: 90px; }
.g1-acc-sum { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 20px; cursor: pointer; list-style: none; }
.g1-acc-sum::-webkit-details-marker { display: none; }
.g1 details.g1-acc > summary::before { display: none; }
.g1 details.g1-acc > summary { padding: 12px 20px; font-size: inherit; border-radius: var(--g1-radius); }
.g1-acc-sum:focus-visible { outline: 2px solid var(--g1-accent); outline-offset: 2px; border-radius: var(--g1-radius); }
.g1-acc-title { font-size: 16px; font-weight: 650; color: var(--g1-ink); }
.g1-acc-meta { font-size: 12.5px; color: var(--g1-muted); }
.g1-acc-chev { margin-left: auto; width: 9px; height: 9px; border-right: 2px solid var(--g1-muted); border-bottom: 2px solid var(--g1-muted); transform: rotate(45deg); transition: transform .15s ease; }
.g1-acc[open] .g1-acc-chev { transform: rotate(225deg); }
.g1-acc[open] .g1-acc-sum { border-bottom: 1px solid var(--g1-hair); }
.g1-acc-body { padding: 18px 22px 20px; }

.g1-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.g1-cols > .g1-col:only-child { grid-column: 1 / -1; }
.g1-col { padding: 14px 16px; border-radius: var(--g1-radius-sm); background: var(--g1-softer); border-left: 4px solid var(--g1-hair); }
.g1-col h5 { margin: 0 0 6px; font-size: 13px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.g1-col--label { border-left-color: var(--g1-ok); }
.g1-col--label h5 { color: var(--g1-ok); }
.g1-col--research { border-left-color: var(--g1-wait); }
.g1-col--research h5 { color: var(--g1-wait); }
.g1-col--research h5 .g1-chip { text-transform: none; letter-spacing: 0; font-weight: 550; }
.g1-key { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 16px; font-size: 13px; color: var(--g1-muted); }
.g1-key-item { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; }
.g1-key-item::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: currentColor; }
.g1-key-item--label { color: var(--g1-ok); }
.g1-key-item--research { color: var(--g1-wait); margin-left: 8px; }

.g1-blocks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.g1-block { padding: 14px 16px; border-radius: var(--g1-radius-sm); background: var(--g1-softer); border: 1px solid var(--g1-hair); }
.g1-block--wide { grid-column: 1 / -1; }
.g1-block h5 { margin: 0 0 6px; font-size: 12.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--g1-accent); }
.g1-block p { margin: 0; line-height: 1.55; }
.g1-block .g1-plain li { margin: 6px 0; }

.g1-facts { display: grid; gap: 10px; margin: 6px 0; }
.g1-fact { display: grid; grid-template-columns: minmax(150px, 220px) 1fr; gap: 6px 18px; padding: 12px 14px; border-radius: var(--g1-radius-sm); background: var(--g1-softer); }
.g1-fact dt { font-weight: 650; color: var(--g1-ink); }
.g1-fact dd { margin: 0; line-height: 1.55; max-width: var(--g1-read); color: var(--g1-ink2); }
@media (max-width: 640px) { .g1-blocks, .g1-cols { grid-template-columns: 1fr; } .g1-fact { grid-template-columns: 1fr; } .g1-acc-body { padding: 14px; } .g1-acc-sum { padding: 12px 14px; } }
@media (prefers-reduced-motion: reduce) { .g1-acc-chev { transition: none; } }

/* "Needs you now", patient record tabs, the Alerts summary (owner 2026-11-12, easier to scan) */
.g1-now { margin: 0 0 16px; padding: 16px 18px; border-radius: var(--g1-radius); background: var(--g1-card); border: 1px solid var(--g1-hair); box-shadow: var(--g1-shadow); }
.g1-now-h { margin: 0 0 10px; font-size: 15px; font-weight: 650; color: var(--g1-ink); }
.g1-now-clear { margin: 0; font-weight: 600; color: var(--g1-ok); }
.g1-now-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.g1-now-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: var(--g1-radius-sm); background: var(--g1-softer); border-left: 4px solid var(--g1-wait); }
.g1-now-item--danger { border-left-color: var(--g1-danger); background: var(--g1-danger-bg); }
.g1-now-text { font-size: 14px; line-height: 1.45; max-width: var(--g1-read); }
.g1-now-text .g1-muted { font-weight: 400; margin-left: 4px; }
.g1-now-item .g1-btn { flex: none; }
.g1-ptabs { width: 100%; }
.g1-tab-dot { display: inline-block; width: 7px; height: 7px; margin-left: 7px; border-radius: 50%; background: var(--g1-wait); vertical-align: 2px; }
.g1-ptab > [data-sec] + [data-sec] { margin-top: 0; }
.g1-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 20px; }
.g1-stat { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: var(--g1-radius-sm); background: var(--g1-card); border: 1px solid var(--g1-hair); border-top: 3px solid var(--g1-hair); }
.g1-stat-n { font-size: 26px; font-weight: 650; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--g1-ink); }
.g1-stat-word { font-size: 19px; line-height: 1.5; }
.g1-stat-label { font-size: 12.5px; color: var(--g1-muted); }
.g1-stat--danger { border-top-color: var(--g1-danger); } .g1-stat--danger .g1-stat-n { color: var(--g1-danger); }
.g1-stat--pending { border-top-color: var(--g1-wait); } .g1-stat--pending .g1-stat-n { color: var(--g1-wait); }
.g1-stat--ok { border-top-color: var(--g1-ok); } .g1-stat--ok .g1-stat-n { color: var(--g1-ok); }
.g1-stat--clear .g1-stat-n { color: var(--g1-muted); opacity: .7; }
.g1 .g1-h--small { font-size: 16px; margin: 26px 0 8px; }
.g1-alerts > .g1-alert-row { padding: 16px 18px; margin: 0 0 10px; border: 1px solid var(--g1-hair); border-left: 4px solid var(--g1-hair); border-radius: var(--g1-radius-sm); background: var(--g1-card); }
.g1-alerts > .g1-alert-row--danger { border-left-color: var(--g1-danger); }
.g1-alerts > .g1-alert-row--pending { border-left-color: var(--g1-wait); }
.g1-alerts > .g1-alert-row--stable { border-left-color: var(--g1-ok); }
.g1-alerts > .g1-alert-row .g1-alert-q { font-size: 15.5px; line-height: 1.5; max-width: var(--g1-read); }
.g1-alerts-meta { padding: 14px 16px; border-radius: var(--g1-radius-sm); background: var(--g1-softer); }
@media (max-width: 760px) { .g1-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g1-now-item { flex-wrap: wrap; } }

/* Provider checklist grouped by what is needed (owner 2026-11-12) */
.g1-cl-group { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.g1-cl-statusgroup { border-left: 4px solid var(--g1-hair); }
.g1-cl-statusgroup--missing { border-left-color: var(--g1-wait); }
.g1-cl-statusgroup--attention { border-left-color: var(--g1-danger); }
.g1-cl-statusgroup--done { border-left-color: var(--g1-ok); }
.g1-cl-grouprow { display: grid; grid-template-columns: 28px 1fr; gap: 8px; align-items: start; }
.g1-cl-secno { display: grid; place-items: center; width: 24px; height: 24px; margin-top: 10px; border-radius: 6px; font-size: 11.5px; font-weight: 650; color: var(--g1-muted); background: var(--g1-soft); }

/* Approvals (owner 2026-11-12): three separate groups, one card per item */
.g1-appr-group { margin: 0 0 28px; }
.g1-appr-ghead h4 { margin: 0; font-size: 18px; font-weight: 650; color: var(--g1-ink); }
.g1-appr-ghead .g1-sub { margin: 4px 0 14px; }
.g1-appr-sub { margin: 20px 0 10px; font-size: 13px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--g1-muted); }
.g1-appr-item { margin: 0 0 12px; padding: 16px 18px; border-radius: var(--g1-radius); background: var(--g1-card); border: 1px solid var(--g1-hair); border-left: 4px solid var(--g1-hair); box-shadow: var(--g1-shadow); }
.g1-appr-item--pending { border-left-color: var(--g1-wait); }
.g1-appr-item--danger { border-left-color: var(--g1-danger); }
.g1-appr-item--stable { border-left-color: var(--g1-ok); }
.g1-appr-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.g1-appr-head h5 { margin: 0; font-size: 15.5px; font-weight: 650; color: var(--g1-ink); }
.g1-appr-row { display: grid; grid-template-columns: minmax(140px, 190px) 1fr; gap: 6px 16px; padding: 8px 0; border-top: 1px solid var(--g1-hair); }
.g1-appr-k { font-size: 12.5px; font-weight: 650; color: var(--g1-muted); }
.g1-appr-v { font-size: 14px; line-height: 1.55; color: var(--g1-ink2); min-width: 0; }
.g1-appr-v p { margin: 0 0 8px; }
.g1-appr-item .g1-actions { margin-top: 10px; align-items: flex-end; }
.g1-appr-item .g1-field { flex: 1 1 100%; }
@media (max-width: 640px) { .g1-appr-row { grid-template-columns: 1fr; } .g1-appr-head { flex-wrap: wrap; } }

/* Consent v5 preview: blanks and form lines */
.g1-patient h6 { margin: 18px 0 6px; font-size: 14px; font-weight: 650; color: var(--g1-ink); }
.g1-formline { margin: 6px 0; line-height: 1.55; }
.g1-blank { display: inline-block; padding: 1px 8px; border-radius: 6px; font-size: 12.5px; font-style: italic; color: var(--g1-muted); background: var(--g1-soft); }

/* The GLP-1 program inside the Clinical Workspace (owner 2026-11-12): the portal's navigation stays; it fills the content area */
.cw-glp1-mount { max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px) 64px; box-sizing: border-box; }

/* Patients page header, empty state and "Enroll a patient" (owner 2026-11-12) */
.g1-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 4px 0 18px; }
.g1-page-head .g1-sub { margin-bottom: 0; max-width: 64ch; }
.g1-page-head-actions { display: flex; gap: 8px; }
.g1-blank-state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 44px 24px; margin: 6px 0 0;
  border-radius: var(--g1-radius); border: 1px dashed color-mix(in srgb, var(--g1-ink) 18%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--g1-card) 70%, transparent), transparent); }
.g1-blank-ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; color: var(--g1-accent);
  background: color-mix(in srgb, var(--g1-accent) 14%, var(--g1-card)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--g1-accent) 22%, transparent); }
.g1-blank-ico .g1-ico { width: 26px; height: 26px; }
.g1-blank-title { margin: 6px 0 0; font-size: 18px; font-weight: 600; letter-spacing: -.01em; color: var(--g1-ink); }
.g1-blank-text { margin: 0 0 8px; max-width: 52ch; font-size: 14px; line-height: 1.55; color: var(--g1-muted); }
.g1-enroll { margin: 0 0 18px; padding: 18px 20px; border-radius: var(--g1-radius); border: 1px solid color-mix(in srgb, var(--g1-accent) 35%, var(--g1-hair));
  background: linear-gradient(180deg, color-mix(in srgb, var(--g1-card) 92%, #fff 8%), var(--g1-card)); box-shadow: var(--g1-shadow); }
.g1-enroll-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.g1-enroll-title { margin: 0; font-size: 16px; font-weight: 600; color: var(--g1-ink); }
.g1-enroll-search { display: block; margin: 8px 0 10px; max-width: 520px; }
.g1-enroll-search .g1-input { width: 100%; min-height: 44px; font-size: 15px; }
.g1-enroll-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.g1-enroll-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: var(--g1-radius-sm);
  background: var(--g1-softer); border: 1px solid var(--g1-hair); }
.g1-enroll-name { display: flex; flex-direction: column; gap: 2px; font-weight: 600; color: var(--g1-ink); }
.g1-enroll-name .g1-muted { font-weight: 400; margin: 0; }

/* ---- GLP-1 notes on the patient chart's Notes page (js/ekm-glp1-notes.js) ---- */
.g1n {
  --g1-bg: var(--c-bg, #F3EDE4); --g1-card: var(--c-box, #FAF6EF); --g1-border: var(--c-box-border, #D9D0C4);
  --g1-hair: color-mix(in srgb, var(--g1-border) 60%, transparent); --g1-ink: var(--c-ink, #1C1814); --g1-ink2: var(--c-ink2, #3D3830);
  --g1-muted: var(--c-muted, #5A5248); --g1-soft: color-mix(in srgb, var(--g1-ink) 6%, transparent); --g1-softer: color-mix(in srgb, var(--g1-ink) 3%, transparent);
  --g1-ok: var(--status-success-ink, #2E7051); --g1-ok-bg: var(--status-success-bg, rgba(46, 112, 81, 0.11));
  --g1-wait: var(--status-pending-ink, #9A5F1F); --g1-wait-bg: var(--status-pending-bg, rgba(217, 166, 92, 0.17));
  --g1-danger: var(--status-danger-ink, #B23A2E); --g1-danger-bg: var(--status-danger-bg, rgba(178, 58, 46, 0.10));
  font-family: var(--font-ui, 'DM Sans', -apple-system, "Segoe UI", Roboto, sans-serif); color: var(--g1-ink); font-size: 14px; line-height: 1.5;
  /* Open section on the chart's glass sheet (redesign 2030: no boxed panels, no pills, 44px targets) */
  border: 0; border-bottom: 1px solid var(--g1-hair); border-radius: 0; padding: 4px 0 18px; margin: 0 0 18px; background: none;
}
.g1n-host[hidden] { display: none; }
.g1n-bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.g1n-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--g1-muted); }
.g1n-title { margin: 2px 0 0; font-size: 16px; font-weight: 650; letter-spacing: -0.01em; }
.g1n-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.g1n-select, .g1n-input { font: inherit; font-size: 13.5px; min-height: 44px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--g1-border);
  background: var(--g1-card); color: var(--g1-ink); box-sizing: border-box; }
.g1n-select { font-weight: 550; cursor: pointer; }
.g1n-input { width: 100%; }
textarea.g1n-input { resize: vertical; line-height: 1.45; }
.g1n-select:focus-visible, .g1n-input:focus-visible, .g1n-btn:focus-visible, .g1n-row:focus-visible {
  outline: none; box-shadow: 0 0 0 2px var(--g1-card), 0 0 0 4px color-mix(in srgb, var(--g1-ink) 55%, transparent); }
.g1n-muted { color: var(--g1-muted); font-size: 12.5px; margin: 4px 0; }
.g1n-notice { background: var(--g1-ok-bg); color: var(--g1-ink2); border-radius: 6px; padding: 8px 12px; margin: 8px 0; font-size: 13px; }
.g1n-alert { background: var(--g1-danger-bg); color: var(--g1-danger); border-radius: 6px; padding: 9px 12px; margin: 8px 0; font-size: 13px; }
.g1n-alert p { margin: 0; } .g1n-alert ul { margin: 6px 0 0; padding-left: 18px; }
.g1n-btn { font: inherit; font-size: 13px; font-weight: 550; min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--g1-border);
  background: var(--g1-card); color: var(--g1-ink); cursor: pointer; }
.g1n-btn:hover:not(:disabled) { border-color: color-mix(in srgb, var(--g1-ink) 35%, var(--g1-border)); }
.g1n-btn:disabled { opacity: .5; cursor: default; }
.g1n-btn--primary { background: var(--g1-ink); color: var(--g1-card); border-color: var(--g1-ink); }
.g1n-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.g1n-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.g1n-list > li { border-top: 1px solid var(--g1-hair); }
.g1n-row { font: inherit; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; padding: 10px 2px; background: none; border: 0; text-align: left; color: inherit; cursor: pointer; }
.g1n-row-main { display: flex; flex-direction: column; gap: 2px; }
.g1n-row-title { font-weight: 650; }
.g1n-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 550; padding: 3px 0; border-radius: 0; background: none; color: var(--g1-ink2); white-space: nowrap; }
.g1n-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .75; }
.g1n-chip--pending { color: var(--g1-wait); }
.g1n-chip--stable { color: var(--g1-ok); }
.g1n-chip--quiet { color: var(--g1-muted); }
.g1n-note { padding: 4px 2px 16px; }
.g1n h5 { margin: 12px 0 4px; font-size: 12.5px; font-weight: 650; color: var(--g1-ink2); }
.g1n-text { margin: 0; white-space: pre-wrap; }
.g1n-plain { margin: 0; padding-left: 18px; } .g1n-plain li { margin: 3px 0; }
.g1n-facts-frozen { margin-top: 12px; border-top: 1px solid var(--g1-hair); padding-top: 6px; }
.g1n-facts-frozen summary { cursor: pointer; font-weight: 600; font-size: 13px; padding: 6px 0; min-height: 44px; display: flex; align-items: center; }
.g1n-facts p { margin: 0; font-size: 13px; }
.g1n-editor { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.g1n-form { padding: 4px 0 0; }
.g1n-editor-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.g1n-dos { max-width: 200px; }
.g1n-field { display: flex; flex-direction: column; gap: 5px; margin: 14px 0 0; }
.g1n-label { font-size: 13px; font-weight: 600; color: var(--g1-ink2); }
.g1n-req { color: var(--g1-danger); }
.g1n-hint { font-size: 12px; color: var(--g1-muted); }
.g1n-pull { display: flex; justify-content: flex-end; }
.g1n-pull .g1n-btn { font-size: 12.5px; padding: 0 12px; }
.g1n-sticky { position: sticky; bottom: 0; background: var(--g1-bg); padding: 10px 0 2px; border-top: 1px solid var(--g1-hair); }
.g1n-side { position: sticky; top: 8px; border-left: 1px solid var(--g1-hair); padding: 2px 0 2px 16px; font-size: 13px; max-height: 80vh; overflow: auto; }
.g1n-amend { margin-top: 10px; }
@media (max-width: 900px) { .g1n-editor { grid-template-columns: minmax(0, 1fr); } .g1n-side { position: static; max-height: none; border-left: 0; border-top: 1px solid var(--g1-hair); padding: 12px 0 0; } }

/* Provider checklist (js/ekm-glp1-checklist.js, 20270630090000): the owner's GLP1 Provider Checklist per enrollment and stage.
   Header card with a progress ring, segmented stage selector, collapsible numbered sections with a thin progress bar; each item
   is a row with its state box, the PDF wording, a subtle citation, a status pill, what EKM records ("From EKM") and the
   provider's own entry. Every control at least 44 px tall. */
.g1-cl-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.g1-cl-head-main { min-width: 0; flex: 1; }
.g1-cl-head .g1-eyebrow { margin: 0 0 4px; }
.g1-cl-meta { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 10px 0 0; }
.g1-cl-meta div { min-width: 0; }
.g1-cl-meta dt { font-size: 11px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--g1-muted); }
.g1-cl-meta dd { margin: 2px 0 0; font-size: 14px; color: var(--g1-ink); overflow-wrap: anywhere; }
.g1-cl-ring { --pct: 0; width: 84px; height: 84px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(var(--g1-ok) calc(var(--pct) * 1%), var(--g1-soft) 0); }
.g1-cl-ring span { width: 66px; height: 66px; border-radius: 50%; background: var(--g1-card); display: grid; place-items: center; font-weight: 700; font-size: 17px; }
.g1-cl-stages { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin: 14px 0 10px; border-radius: 14px; background: var(--g1-soft); }
.g1-cl-stage { flex: 1 1 auto; min-height: 44px; padding: 8px 14px; border: 0; border-radius: 10px; background: transparent; color: var(--g1-ink2);
  font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.g1-cl-stage.is-on { background: var(--g1-card); color: var(--g1-ink); box-shadow: var(--g1-shadow); }
.g1-cl-stage:focus-visible, .g1-cl-box:focus-visible, .g1-cl-segbtn:focus-visible, .g1-cl-navbtn:focus-visible { outline: 2px solid var(--g1-ink); outline-offset: 2px; }
.g1-cl-gate { margin: 6px 0 12px; }
.g1-cl-sec > summary { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; min-height: 44px; font-weight: 650; font-size: 15px; }
.g1-cl-sec > summary::-webkit-details-marker { display: none; }
.g1-cl-num { width: 28px; height: 28px; border-radius: 9px; display: inline-grid; place-items: center; flex: none; background: var(--g1-soft); font-size: 13px; font-weight: 700; }
.g1-cl-sec-title { flex: 1; min-width: 0; }
.g1-cl-bar { display: inline-block; width: 90px; height: 6px; border-radius: 99px; background: var(--g1-soft); overflow: hidden; flex: none; }
.g1-cl-bar i { display: block; height: 100%; background: var(--g1-ok); border-radius: inherit; }
.g1-cl-lead { margin: 10px 0; font-size: 13px; color: var(--g1-ink2); line-height: 1.5; }
.g1-cl-cite { font-size: 10px; color: var(--g1-muted); font-weight: 500; letter-spacing: .01em; vertical-align: super; line-height: 0; }
.g1-cl-item { display: flex; gap: 12px; padding: 12px 2px; border-top: 1px solid var(--g1-hair); }
.g1-cl-body { flex: 1; min-width: 0; }
.g1-cl-text { font-size: 14px; line-height: 1.5; color: var(--g1-ink); }
.g1-cl-text .g1-chip { margin-left: 4px; vertical-align: 1px; padding: 4px 8px; font-size: 11px; }
.g1-cl-box { width: 28px; height: 28px; flex: none; border-radius: 8px; border: 2px dashed var(--g1-border); background: var(--g1-card); color: #fff;
  display: inline-grid; place-items: center; font-size: 15px; font-weight: 700; margin: 8px; padding: 0; }
.g1-cl-box.is-on { background: var(--g1-ok); border: 2px solid var(--g1-ok); }
button.g1-cl-box { width: 44px; height: 44px; margin: 0; border: 0; background: transparent; cursor: pointer; position: relative; isolation: isolate; }
button.g1-cl-box::after { content: ""; position: absolute; inset: 8px; border-radius: 8px; border: 2px solid var(--g1-border); background: var(--g1-card); z-index: -1; }
button.g1-cl-box.is-on { background: transparent; border: 0; }
button.g1-cl-box.is-on::after { background: var(--g1-ok); border-color: var(--g1-ok); }
.g1-cl--attention .g1-cl-box.is-on, .g1-cl--attention button.g1-cl-box.is-on::after { background: var(--g1-danger); border-color: var(--g1-danger); }
.g1-cl--na .g1-cl-text { color: var(--g1-muted); }
.g1-cl-seg { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }
.g1-cl-segbtn { min-height: 44px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--g1-border); background: var(--g1-card); color: var(--g1-ink2);
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.g1-cl-segbtn.is-on { background: var(--g1-ink); border-color: var(--g1-ink); color: var(--g1-card); }
.g1-cl-segbtn.g1-cl-seg--present, .g1-cl-segbtn.g1-cl-seg--unresolved { background: var(--g1-danger); border-color: var(--g1-danger); color: #fff; }
.g1-cl-segbtn.g1-cl-seg--absent { background: var(--g1-ok); border-color: var(--g1-ok); color: #fff; }
.g1-cl-segbtn.g1-cl-seg--precaution_reviewed { background: var(--g1-wait); border-color: var(--g1-wait); color: #fff; }
.g1-cl-segbtn:disabled, button.g1-cl-box:disabled { cursor: not-allowed; opacity: .7; }
.g1-cl-choices { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 6px 0; }
.g1-cl-choices .g1-check { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; }
.g1-cl-input { width: 100%; max-width: 640px; min-height: 44px; margin-top: 6px; }
.g1-cl-ekm, .g1-cl-val { margin: 6px 0 0; font-size: 13.5px; color: var(--g1-ink2); }
.g1-cl-facts { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 4px; }
.g1-cl-facts li { font-size: 13px; color: var(--g1-ink2); line-height: 1.45; }
.g1-cl-src { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--g1-ok);
  background: var(--g1-ok-bg); padding: 2px 6px; border-radius: 6px; margin-right: 2px; }
.g1-cl-flabel { font-weight: 600; color: var(--g1-ink); }
.g1-cl-fmeta { color: var(--g1-muted); font-size: 12px; margin-left: 4px; }
.g1-cl-link { font: inherit; font-size: 12.5px; font-weight: 600; min-height: 32px; padding: 4px 6px; border: 0; background: none; color: var(--g1-ok); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.g1-cl-gatetext { margin: 6px 0 0; font-size: 13px; }
.g1-cl-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 8px; font-size: 12px; }
.g1-cl-foot .g1-actions { gap: 6px; }
.g1-cl-foot .g1-btn, .g1-cl-noteform .g1-btn, .g1-cl-decision .g1-btn, .g1-cl-send .g1-btn, .g1-cl-findform .g1-btn, .g1-cl-findings .g1-btn { min-height: 44px; }
.g1-cl-note { margin: 6px 0 0; padding: 8px 10px; border-radius: 10px; background: var(--g1-softer); font-size: 13px; white-space: pre-wrap; }
.g1-cl-noteform { margin-top: 8px; display: grid; gap: 6px; max-width: 640px; }
.g1-cl-hidden { font-size: 12.5px; margin: 8px 0 0; }
.g1-cl-table { font-size: 13px; }
.g1-cl-findform { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; align-items: end; margin: 8px 0 4px; }
.g1-cl-decision { margin-top: 16px; padding: 14px; border-radius: var(--g1-radius-sm); background: var(--g1-softer); border: 1px solid var(--g1-hair); }
.g1-cl-decision .g1-field { margin-top: 10px; }
.g1-cl-signed { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 8px; font-size: 13px; }
.g1-cl-nav ol { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 2px; }
.g1-cl-navbtn { width: 100%; min-height: 44px; display: grid; grid-template-columns: minmax(0, 1fr) 60px 36px; gap: 8px; align-items: center; padding: 6px 8px;
  border: 0; border-radius: 10px; background: transparent; color: var(--g1-ink2); font: inherit; font-size: 12.5px; text-align: left; cursor: pointer; }
.g1-cl-navbtn:hover { background: var(--g1-soft); }
.g1-cl-navbtn .g1-cl-bar { width: 60px; }
.g1-cl-frac { font-variant-numeric: tabular-nums; color: var(--g1-muted); text-align: right; }
.g1-cl-count { margin: 4px 0 0; font-size: 13px; color: var(--g1-ink2); }
.g1-cl-send { margin-top: 14px; }
.g1-cl-send .g1-btn--primary { width: 100%; }
.g1-cl-pick { list-style: none; padding: 0; margin: 8px 0 12px; display: grid; gap: 2px; }
.g1-cl-pick li { display: flex; flex-direction: column; padding: 4px 0; border-top: 1px solid var(--g1-hair); }
.g1-cl-pick .g1-check { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; }
.g1-cl-pick .g1-muted { font-size: 11.5px; margin-left: 26px; }
.g1-cl-reqs { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 10px; font-size: 13px; }
.g1-cl-reqs ul { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 4px; }
.g1-cl-reqs .g1-chip { padding: 3px 8px; font-size: 11px; }
.g1-cl-sources { margin: 10px 0 0; padding-left: 22px; font-size: 13px; display: grid; gap: 6px; }
@media (max-width: 980px) {
  .g1-cl-layout .g1-cl-side { order: 2; }
  .g1-cl-layout .g1-main { order: 1; }
}
@media (max-width: 640px) {
  .g1-cl-ring { width: 64px; height: 64px; }
  .g1-cl-ring span { width: 50px; height: 50px; font-size: 14px; }
  .g1-cl-sec .g1-cl-bar { display: none; }
  .g1-cl-stage { flex: 1 1 45%; }
  .g1-cl-item { gap: 8px; }
}

/* Strive setup (js/ekm-glp1-strive.js, owner 2026-11-13): one card per Strive candidate, a numbered list of the required steps,
   each done or needed. Theme tokens only; rounded rectangles (radius 10px), no pill shapes; controls at least 44 px tall. */
.g1-sv-title { margin-top: 26px; }
.g1-sv-steps { list-style: none; margin: 8px 0 0; padding: 0; }
.g1-sv-step { border-top: 1px solid var(--g1-hair); padding: 14px 2px; }
.g1-sv-step:first-child { border-top: 0; }
.g1-sv-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.g1-sv-head h6 { margin: 0; font-size: 14.5px; font-weight: 650; color: var(--g1-ink); flex: 1 1 auto; }
.g1-sv-n { width: 28px; height: 28px; flex: none; border-radius: 10px; display: grid; place-items: center; font-size: 12.5px; font-weight: 700;
  border: 1px solid var(--g1-border); background: var(--g1-softer); color: var(--g1-ink2); }
.g1-sv-step.is-done .g1-sv-n { background: var(--g1-ok-bg); border-color: color-mix(in srgb, var(--g1-ok) 40%, transparent); color: var(--g1-ok); }
.g1-sv-body { margin: 8px 0 0 40px; }
.g1-sv-body .g1-btn, .g1-sv-body .g1-input { min-height: 44px; border-radius: 10px; }
.g1-sv-act { white-space: nowrap; text-align: right; }
.g1-sv-act .g1-btn + .g1-btn { margin-left: 6px; }
.g1-sv-editrow td { background: var(--g1-softer); }
.g1-sv-values td:nth-child(2) { max-width: 320px; overflow-wrap: anywhere; }
.g1-sv-sched .g1-input { width: 110px; }
.g1-sv-sched tr.g1-sv-flag td { background: var(--g1-danger-bg); }
.g1-sv-body .g1-checks { display: flex; flex-direction: column; gap: 6px; }
.g1-dx { grid-column: 1 / -1; display: grid; gap: 10px; padding: 12px 14px; border: 1px solid var(--g1-hair); border-radius: 10px; background: var(--g1-softer); }
.g1-dx-prompt { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--g1-wait-bg); color: var(--g1-ink2); font-size: 13.5px; }
.g1-dx-list { font-size: 13px; color: var(--g1-ink2); }
@media (max-width: 640px) { .g1-sv-body { margin-left: 0; } .g1-sv-act { white-space: normal; text-align: left; } }
/* Strive Activation Review (js/ekm-glp1-strive.js reviewHtml, 20270827193953): both products side by side, one sign box. Theme tokens only. */
.g1-rv-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 16px; align-items: start; }
.g1-rv-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.g1-rv-head h5 { margin: 0; }
.g1-rv-pill { display: inline-flex; align-items: center; min-height: 28px; padding: 2px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; letter-spacing: .02em;
  text-transform: uppercase; border: 1px solid var(--g1-hair); background: var(--g1-softer); color: var(--g1-ink2); }
.g1-rv-pill--ok { background: var(--g1-ok-bg); color: var(--g1-ok); border-color: color-mix(in srgb, var(--g1-ok) 35%, transparent); }
.g1-rv-pill--wait { background: var(--g1-wait-bg); color: var(--g1-wait); border-color: color-mix(in srgb, var(--g1-wait) 35%, transparent); }
.g1-rv-pill--accent { background: color-mix(in srgb, var(--g1-accent, var(--g1-ink)) 14%, transparent); color: var(--g1-ink); border-color: color-mix(in srgb, var(--g1-accent, var(--g1-ink)) 40%, transparent); }
.g1-rv-tag { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 650; white-space: nowrap; background: var(--g1-softer); color: var(--g1-ink2); }
.g1-rv-tag--ok { background: var(--g1-ok-bg); color: var(--g1-ok); }
.g1-rv-tag--wait { background: var(--g1-wait-bg); color: var(--g1-wait); }
.g1-rv-tag--danger { background: var(--g1-danger-bg); color: var(--g1-danger); }
.g1-rv-tag--info { background: color-mix(in srgb, var(--g1-ink) 9%, transparent); color: var(--g1-ink); }
.g1-rv-tag--accent { background: color-mix(in srgb, var(--g1-accent, var(--g1-ink)) 16%, transparent); color: var(--g1-ink); }
.g1-rv-needed { margin: 10px 0 4px; padding: 10px 12px; border-radius: var(--g1-radius-sm); background: var(--g1-softer); border: 1px solid var(--g1-hair); }
.g1-rv-needed summary { cursor: pointer; font-weight: 650; }
.g1-rv-needed ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 6px; }
.g1-rv-needed .g1-hint, .g1-rv-table .g1-hint { display: block; }
.g1-rv-sec { border-top: 1px solid var(--g1-hair); padding: 12px 0 4px; }
.g1-rv-sec h6 { margin: 0 0 8px; font-size: 14px; font-weight: 650; color: var(--g1-ink); }
.g1-rv-table td { vertical-align: top; overflow-wrap: anywhere; }
.g1-rv-act { min-width: 200px; }
.g1-rv-entry { margin: 6px 0 10px; padding: 10px; border-radius: var(--g1-radius-sm); background: var(--g1-softer); display: grid; gap: 8px; }
.g1-rv-entry .g1-input, .g1-rv .g1-btn { min-height: 44px; border-radius: 10px; }
.g1-rv .g1-check { display: flex; align-items: flex-start; gap: 8px; min-height: 32px; }
.g1-rv-src summary { cursor: pointer; font-size: 12.5px; color: var(--g1-muted); }
.g1-rv-rx { padding: 10px 12px; border-radius: var(--g1-radius-sm); border: 1px dashed var(--g1-border); background: var(--g1-softer); font-size: 13.5px; }
.g1-rv-sign ol { margin: 6px 0 10px; padding-left: 20px; }
.g1-rv-program, .g1-rv-sign { margin: 12px 0; }
.g1-sv-legacy { margin-top: 18px; }
.g1-sv-legacy > summary { cursor: pointer; font-weight: 650; color: var(--g1-muted); }
@media (max-width: 640px) { .g1-rv-act { min-width: 0; } }

/* ---- Review & Decide (js/ekm-glp1-review.js; owner 2026-11-16, GLP-1 simplification PR3). One screen per patient: the findings and
   the decisions on the left, the Approve card with every outstanding item beside it (sticky on wide screens). The user's own theme
   colours (the --g1-* tokens above), the portal font, rounded rectangles (no pills), no overlay. ---- */
.g1-rd { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.g1-rd-main { min-width: 0; }
.g1-rd-side { position: sticky; top: 8px; display: grid; gap: 0; }
.g1-rd-side .g1-card { padding: 18px; }
@media (max-width: 980px) { .g1-rd { grid-template-columns: minmax(0, 1fr); } .g1-rd-side { position: static; } }
.g1 .g1-rd-urgent { border-color: color-mix(in srgb, var(--g1-danger) 45%, var(--g1-edge, var(--g1-hair))) !important;
  box-shadow: inset 4px 0 0 var(--g1-danger), 0 14px 34px -22px rgba(0, 0, 0, .45) !important; }
.g1-rd-urgent h4 { color: var(--g1-danger); }
.g1-rd-finding { padding: 12px 0; border-top: 1px solid var(--g1-hair); }
.g1-rd-finding:first-of-type { border-top: 0; }
.g1-rd-finding-q { margin: 0 0 8px; font-size: 14px; }
.g1-rd-done { margin-top: 10px; font-size: 13px; }
.g1-rd-stage { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 0 0 8px; }
.g1-rd-stage-name { font-weight: 650; font-size: 15px; }
.g1-rd-waiting { font-weight: 600; font-size: 13px; padding: 2px 10px; border-radius: 8px; background: var(--g1-softer); border: 1px solid var(--g1-hair); }
.g1-rd-waiting--patient { background: var(--g1-wait-bg); color: var(--g1-wait); }
.g1-rd-waiting--care_team { background: var(--g1-ok-bg); color: var(--g1-ok); }
.g1-rd-items { list-style: none; margin: 0; padding: 0; }
.g1-rd-items li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; padding: 7px 0; border-top: 1px solid var(--g1-hair); font-size: 13.5px; }
.g1-rd-items li:first-child { border-top: 0; }
.g1-rd-verify { margin: 6px 0 0; }
.g1-rd-verify .g1-btn { min-height: 32px; padding: 0 10px; font-size: 12.5px; }
.g1-rd-bmi { font-weight: 600; margin: 8px 0 6px; }
/* the reason the patient will see, asked under a ticked item or a "Repeat needed" reading */
.g1-rd-reason { margin: 6px 0 4px 26px; min-width: 240px; }
.g1-rd-reason .g1-input { width: 100%; box-sizing: border-box; }
.g1-rd-verify + .g1-rd-reason { margin-left: 0; }
.g1-rd-lab { padding: 10px 0; border-top: 1px solid var(--g1-hair); }
.g1-rd-lab:first-of-type { border-top: 0; }
.g1-rd-lab-name { margin: 0 0 4px; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; }
.g1-rd-block { padding: 14px 0; border-top: 1px solid var(--g1-hair); }
.g1-rd-block:first-of-type { border-top: 0; }
.g1-rd-block > h5 { margin-top: 0; font-size: 13px; color: var(--g1-ink); }
.g1-rd-block > .g1-field, .g1-rd-block > .g1-check { margin: 8px 0; }
.g1-rd-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.g1-rd-target { padding: 6px 0; }
.g1-rd-target .g1-dx-prompt { margin: 6px 0 0 28px; }
.g1-rd-target .g1-field { margin: 8px 0 0 28px; }
.g1-rd-labs { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.g1-rd-labrow { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.g1-rd-labrow .g1-field { flex: 1 1 260px; }
/* Labs: the individualized suggestions (20270824090000): one row per test, its reason, the result on file, the real state */
.g1-labs .g1-lab-row { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 4px 10px; padding: 10px 12px; border: 1px solid var(--g1-hair); border-radius: var(--g1-radius-sm); margin: 0 0 8px; background: var(--g1-card); }
.g1-labs .g1-lab-row--on { border-color: color-mix(in srgb, var(--g1-ok) 45%, var(--g1-border)); }
.g1-labs .g1-lab-row > input[type="checkbox"] { margin: 3px 0 0; width: 18px; height: 18px; }
.g1-labs .g1-lab-main { min-width: 0; }
.g1-labs .g1-lab-head { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.g1-labs .g1-lab-why { margin: 3px 0 0; font-size: 13px; color: var(--g1-ink2); }
.g1-labs .g1-lab-file { margin: 4px 0 0; font-size: 12.5px; color: var(--g1-ink2); }
.g1-labs .g1-lab-main .g1-field { margin-top: 8px; }
.g1-labs .g1-lab-add { margin-top: 10px; }
.g1-labs .g1-lab-results { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.g1-labs .g1-lab-how { margin: 12px 0 0; padding: 10px 12px; border-radius: var(--g1-radius-sm); background: var(--g1-softer); border: 1px dashed var(--g1-border); font-size: 12.5px; color: var(--g1-ink2); }
.g1-rd-use { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 4px; }
.g1-rd-use-chip { display: inline-flex; align-items: center; font-weight: 700; font-size: 13px; padding: 3px 10px; border-radius: 8px; border: 1px solid currentColor; }
.g1-rd-use--on { color: var(--g1-ok); background: var(--g1-ok-bg); }
.g1-rd-use--off { color: var(--g1-wait); background: var(--g1-wait-bg); }
.g1-rd-quote { margin: 4px 0; padding: 10px 12px; border-radius: 10px; background: var(--g1-softer); }
/* 20270901195429: the missed-dose instructions (the catalog rule beside them, reference only) and the compounded justification */
.g1-missed { grid-column: 1 / -1; display: grid; gap: 8px; margin-top: 8px; min-width: 0; }
.g1-missed-ref { padding: 10px 12px; border-radius: var(--g1-radius-sm); border: 1px dashed var(--g1-border); min-width: 0; }
.g1-missed-ref .g1-rd-quote { white-space: pre-wrap; overflow-wrap: anywhere; }
.g1-missed-ref .g1-actions { margin-top: 6px; }
.g1-rd-block.g1-justification .g1-field { margin-top: 8px; }
.g1-rd-guide summary { cursor: pointer; font-weight: 600; margin: 6px 0; }
.g1-rd-fromdecision { margin: 8px 0; display: flex; flex-direction: column; gap: 4px; }
.g1-rd-attest { align-items: flex-start; padding: 12px; margin-top: 12px; border-radius: 12px; border: 1px solid var(--g1-border); background: var(--g1-softer); font-weight: 600; }
.g1-rd-approve .g1-rd-go { width: 100%; min-height: 48px; font-size: 14px; margin: 6px 0 8px; white-space: normal; }
.g1-rd-approve .g1-rd-go[disabled] { opacity: .55; cursor: not-allowed; }
.g1-rd-count { font-weight: 650; margin: 0 0 6px; }
.g1-rd-after { font-size: 13px; color: var(--g1-ink2); }
@media (min-width: 981px) { .g1-rd-side { max-height: calc(100vh - 110px); overflow: auto; } }
/* The generated initial note (20270822090000): a wider note column beside the review; stacks below it on narrow screens. Source
   markers are small mono chips; a missing piece is red italic text; an edited section keeps a quiet left rule. */
.g1-rd--note { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
@media (max-width: 1100px) { .g1-rd--note { grid-template-columns: minmax(0, 1fr); } .g1-rd--note .g1-rd-side { position: static; max-height: none; overflow: visible; } }
.g1-note-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; }
.g1-note-head h4 { margin: 0; }
.g1-note-legend { font-size: 12.5px; margin: 6px 0 10px; }
.g1-note-doc { display: grid; gap: 12px; font-size: 13.5px; line-height: 1.5; overflow-wrap: anywhere; }
.g1-note-sec { padding: 8px 0 0; border-top: 1px solid var(--g1-hair); }
.g1-note-sec:first-child { border-top: 0; padding-top: 0; }
.g1-note-sec--edited { border-left: 3px solid var(--g1-ok); padding-left: 10px; }
.g1-note-sec-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 4px; }
.g1-note-sec-head h5 { margin: 0; margin-right: auto; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--g1-muted); }
.g1-note-sec-head .g1-btn { min-height: 32px; padding: 0 10px; font-size: 12.5px; }
.g1-note-line { margin: 0 0 3px; color: var(--g1-ink); }
.g1-note-text { white-space: pre-wrap; color: var(--g1-ink); }
.g1-note-gap { color: var(--g1-danger); font-style: italic; font-weight: 600; }
.g1-note-edit { width: 100%; box-sizing: border-box; font-size: 13.5px; line-height: 1.5; }
.g1 abbr.g1-src { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 10.5px; font-weight: 600; text-decoration: none; padding: 0 4px;
  margin-left: 3px; border-radius: 4px; vertical-align: 1px; color: var(--g1-ink2); background: var(--g1-soft); cursor: help; }
.g1 abbr.g1-src--p { color: var(--g1-wait); background: var(--g1-wait-bg); }
.g1 abbr.g1-src--v { color: var(--g1-ok); background: var(--g1-ok-bg); }
.g1 abbr.g1-src--k { color: var(--g1-accent); background: color-mix(in srgb, var(--g1-accent) 12%, transparent); }
.g1-note-copy textarea, .g1-note-amend textarea { width: 100%; box-sizing: border-box; }
.g1-note-amend { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--g1-hair); }
.g1-note-older { margin-top: 10px; font-size: 13px; }

/* ---- Prescribing & titration guide (js/ekm-glp1-titration.js, 20270828211920): calm stage-by-stage dose cards, a decision rail and
   the requirements beside them. Theme tokens only (light or dark follows the user's EKM OS theme). ---- */
.g1-tg { padding: 22px 24px; }
.g1-rd-decide .g1-tg { box-shadow: none; margin: 14px 0 0; background: var(--g1-softer); }
.g1-tg-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 12px; }
.g1-tg-head h4 { margin: 0; font-size: 1.05rem; letter-spacing: -0.01em; }
.g1-tg-products { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.g1-tg-prod { min-height: 44px; border: 1px solid var(--g1-hair); background: var(--g1-card); color: var(--g1-ink2); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: .85rem; cursor: pointer; }
.g1-tg-prod.is-on { background: color-mix(in srgb, var(--g1-accent) 16%, var(--g1-card)); border-color: color-mix(in srgb, var(--g1-accent) 55%, transparent); color: var(--g1-ink); font-weight: 600; }
.g1-tg-prod.is-off { opacity: .78; }
.g1-tg-unavail { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--g1-danger); margin-left: 4px; }
.g1-tg-src { color: var(--g1-muted); font-size: .78rem; margin: 4px 0 12px; }
.g1-tg-muted { color: var(--g1-muted); font-size: .85rem; }
.g1-tg-ok { color: var(--g1-ok); font-size: .88rem; }
.g1-tg-danger { color: var(--g1-danger); font-size: .88rem; font-weight: 600; }
.g1-tg-warnline { color: var(--g1-wait); font-size: .85rem; background: var(--g1-wait-bg); border-radius: var(--g1-radius-sm); padding: 8px 10px; }
.g1-tg-chip { display: inline-flex; align-items: center; border-radius: 999px; padding: 2px 9px; font-size: .74rem; font-weight: 600; letter-spacing: .01em; white-space: normal; max-width: 100%; }
.g1-tg-chip--ok { background: var(--g1-ok-bg); color: var(--g1-ok); }
.g1-tg-chip--warn { background: var(--g1-wait-bg); color: var(--g1-wait); }
.g1-tg-chip--danger { background: var(--g1-danger-bg); color: var(--g1-danger); }
.g1-tg-chip--quiet { background: var(--g1-soft); color: var(--g1-muted); }
.g1-tg-chip--accent { background: color-mix(in srgb, var(--g1-accent) 18%, transparent); color: var(--g1-ink); }
.g1-tg-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin: 0 0 14px; }
.g1-tg-stat { background: var(--g1-card); border: 1px solid var(--g1-hair); border-radius: var(--g1-radius-sm); padding: 9px 11px; display: flex; flex-direction: column; gap: 2px; }
.g1-tg-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--g1-muted); }
.g1-tg-val { font-size: .95rem; font-weight: 600; }
.g1-tg-steps { list-style: none; margin: 0 0 10px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.g1-tg-step { position: relative; background: var(--g1-card); border: 1px solid var(--g1-hair); border-radius: 14px; padding: 12px 12px 10px; display: flex; flex-direction: column; gap: 4px; }
.g1-tg-step.is-current { border-color: color-mix(in srgb, var(--g1-accent) 70%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--g1-accent) 18%, transparent); }
.g1-tg-step.is-next { border-style: dashed; border-color: color-mix(in srgb, var(--g1-accent) 55%, transparent); }
.g1-tg-step.is-separate { background: var(--g1-wait-bg); }
.g1-tg-weeks { font-size: .74rem; color: var(--g1-muted); text-transform: uppercase; letter-spacing: .05em; }
.g1-tg-dose { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; }
.g1-tg-sub { font-size: .78rem; color: var(--g1-ink2); }
.g1-tg-prelim { color: var(--g1-wait); }
.g1-tg-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.g1-tg-note { font-size: .76rem; color: var(--g1-muted); }
.g1-tg-body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; margin-top: 12px; }
.g1-tg-side h5, .g1-tg-main h5 { margin: 12px 0 6px; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--g1-muted); }
.g1-tg-req { border-top: 1px solid var(--g1-hair); padding-top: 4px; }
.g1-tg-list { margin: 4px 0 8px; padding-left: 18px; font-size: .86rem; }
.g1-tg-list li { margin: 3px 0; }
.g1-tg-list--warn li::marker { color: var(--g1-wait); }
.g1-tg-list--mon { list-style: "\25C9  "; color: var(--g1-ink2); }
.g1-tg-acts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin: 0 0 12px; }
.g1-tg-act { text-align: left; border: 1px solid var(--g1-hair); border-radius: 12px; padding: 10px 12px; background: var(--g1-card); color: var(--g1-ink); font: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 3px; }
.g1-tg-act.is-on { box-shadow: 0 0 0 2px color-mix(in srgb, var(--g1-accent) 60%, transparent); }
.g1-tg-act-name { font-weight: 600; font-size: .9rem; }
.g1-tg-act-state { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; }
.g1-tg-act--ok .g1-tg-act-state { color: var(--g1-ok); }
.g1-tg-act--accent .g1-tg-act-state { color: var(--g1-ink2); }
.g1-tg-act--blocked { opacity: .82; }
.g1-tg-act--blocked .g1-tg-act-state { color: var(--g1-danger); }
.g1-tg-act-why { font-size: .76rem; color: var(--g1-muted); }
.g1-tg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px 12px; }
.g1-tg-field { display: flex; flex-direction: column; gap: 4px; margin: 6px 0; font-size: .86rem; }
.g1-tg-field select, .g1-tg-field input, .g1-tg-field textarea { font: inherit; color: var(--g1-ink); background: var(--g1-card); border: 1px solid var(--g1-border); border-radius: 10px; padding: 7px 9px; }
.g1-tg-hint { font-size: .74rem; color: var(--g1-muted); }
.g1-tg-check { display: flex; gap: 8px; align-items: flex-start; font-size: .86rem; margin: 6px 0; }
.g1-tg-rx { margin-top: 12px; border: 1px solid var(--g1-hair); border-radius: 14px; padding: 12px 14px; background: var(--g1-card); }
.g1-tg-sig { font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace); font-size: .86rem; line-height: 1.5; background: var(--g1-soft); border-radius: 10px; padding: 10px 12px; margin: 0 0 8px; }
.g1-tg-dl { display: grid; grid-template-columns: max-content 1fr; gap: 3px 12px; font-size: .86rem; margin: 0 0 6px; }
.g1-tg-dl dt { color: var(--g1-muted); }
.g1-tg-dl dd { margin: 0; }
.g1-tg-blocked { background: var(--g1-danger-bg); color: var(--g1-ink); border-radius: 12px; padding: 10px 12px; margin: 10px 0; font-size: .86rem; }
.g1-tg-blocked p { margin: 0 0 4px; font-weight: 600; color: var(--g1-danger); }
.g1-tg-approve { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.g1-tg-btn { min-height: 44px; font: inherit; border-radius: 999px; padding: 8px 16px; border: 1px solid var(--g1-border); background: var(--g1-card); color: var(--g1-ink); cursor: pointer; font-weight: 600; }
.g1-tg-btn--primary { background: var(--g1-accent); color: var(--c-bg, #fff); border-color: transparent; }
.g1-tg-btn[disabled] { opacity: .5; cursor: not-allowed; }
.g1-tg-hand ol { list-style: none; margin: 0; padding: 0; }
.g1-tg-hs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 5px 0; font-size: .86rem; }
.g1-tg-hs .g1-tg-hint { flex-basis: 100%; padding-left: 18px; }
.g1-tg-dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--g1-border); flex: none; }
.g1-tg-hs--done .g1-tg-dot { background: var(--g1-ok); border-color: var(--g1-ok); }
.g1-tg-hs--now .g1-tg-dot { border-color: var(--g1-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--g1-accent) 22%, transparent); }
.g1-tg-hs--todo { color: var(--g1-muted); }
.g1-tg-two { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 14px; }
.g1-tg-aside { background: var(--g1-softer); border-radius: 12px; padding: 4px 12px 10px; }
.g1-tg-rules summary { cursor: pointer; font-size: .84rem; color: var(--g1-ink2); margin: 8px 0; }
.g1-tg-hd { border-left: 3px solid var(--g1-wait); padding-left: 10px; margin: 6px 0; }
@media (max-width: 900px) { .g1-tg-body, .g1-tg-two { grid-template-columns: 1fr; } }
.g1-tg-rx .g1-field { display: flex; flex-direction: column; gap: 4px; font-size: .86rem; }
.g1-tg-rx input { font: inherit; color: var(--g1-ink); background: var(--g1-card); border: 1px solid var(--g1-border); border-radius: 10px; padding: 7px 9px; }

/* Authorization gates (20270602090000_glp1_authorization_gates_v1): determinations, exam and baseline, education, labs, consent
   outcomes, prescribing authority and the in-app file viewer. Redesign 2030: rows separated by hairlines (no boxed panels), the
   state as a coloured dot and text (no pills), every control at least 44 px tall. */
.g1-gate-list { list-style: none; margin: 6px 0 12px; padding: 0; }
.g1-gate-row { border-top: 1px solid var(--g1-hair); padding: 10px 2px; }
.g1-gate-row:last-child { border-bottom: 1px solid var(--g1-hair); }
.g1-gate-state { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; font-size: 13.5px; color: var(--g1-ink2); }
.g1-gate-state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.g1-gate-state--ok { color: var(--g1-ok); }
.g1-gate-state--wait { color: var(--g1-wait); }
.g1-gate-state--danger { color: var(--g1-danger); }
.g1-gate-form { margin-top: 8px; }
.g1-gate-list .g1-btn, .g1-gate-form .g1-btn, .g1-viewer .g1-btn, .g1-gate-row .g1-input, .g1-gate-form .g1-input, .g1-card details .g1-btn { min-height: 44px; }
.g1-viewer { margin: 12px 0; border-top: 1px solid var(--g1-hair); padding-top: 10px; }
.g1-viewer-pdf { max-height: 75vh; overflow: auto; background: var(--g1-bg); padding: 8px; }
.g1-viewer-pdf .esx-page { position: relative; width: 100%; margin: 0 auto 6px; background: #fff; outline: 1px solid var(--g1-hair); }
.g1-viewer-pdf .esx-canvas { display: block; width: 100%; height: 100%; }
.g1-viewer-pdf .esx-layer { display: none; }
.g1-viewer-pdf .esx-pagenum { font-size: 12px; text-align: center; margin: 0 0 10px; opacity: .75; }
.g1-viewer-img { display: block; max-width: 100%; height: auto; }

/* Urgent alerts and the check-in Needs Review queue (20270601090000_glp1_safety_alerts_v1). Redesign 2030: rows separated by
   hairlines (no boxed panels), the state as a coloured dot and text (no pills), every control at least 44 px tall. */
.g1-alerts { list-style: none; margin: 0 0 22px; padding: 0; }
.g1-alert-row { border-top: 1px solid var(--g1-hair); padding: 14px 2px; }
.g1-alert-row:last-child { border-bottom: 1px solid var(--g1-hair); }
.g1-alert-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.g1-alert-state { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; font-size: 13.5px; }
.g1-alert-state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.g1-alert-row--danger .g1-alert-state { color: var(--g1-danger); }
.g1-alert-row--pending .g1-alert-state { color: var(--g1-wait); }
.g1-alert-row--stable .g1-alert-state { color: var(--g1-ok); }
.g1-alert-q { margin: 8px 0 4px; font-size: 14px; }
.g1-alert-row .g1-muted, .g1-alerts-meta .g1-muted { margin: 4px 0; font-size: 12.5px; }
.g1-alerts-meta { padding: 4px 2px 14px; }
.g1-alerts-meta p { margin: 4px 0; }
.g1-alerts-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin-top: 8px; }
.g1-alerts .g1-btn, .g1-alerts-actions .g1-btn, .g1-alerts-meta .g1-btn, .g1 .g1-alert .g1-btn { min-height: 44px; }
.g1-alerts .g1-input, .g1-alerts-meta .g1-input { min-height: 44px; }
.g1-h5 { margin: 14px 0 6px; font-size: 12.5px; font-weight: 650; color: var(--g1-ink2); }



/* ---- Review & Decide, design v3 (owner approved 2026-11-17): a compact header (name, one status pill, a quiet chip for the
   prescribing hold, "Open chart" and a "More" menu), "Waiting on the patient" while the patient still has steps (Review & Decide
   and the note are not shown then), and the review cards as one-line summaries until opened, with subtle depth and a sticky note
   panel with a soft glow. Every colour comes from the user's EKM OS theme tokens, like the rest of this workspace (dark in a dark
   theme). js/ekm-glp1.js rdHeadHtml, js/ekm-glp1-review.js waitingHtml / foldCard. ---- */
.g1-ph-wrap { margin: 2px 0 26px; }
.g1-ph-back { font: inherit; font-size: 13.5px; color: var(--g1-muted); background: none; border: 0; padding: 6px 0; min-height: 36px; cursor: pointer; }
.g1-ph-back:hover { color: var(--g1-ink); }
.g1-ph { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; margin-top: 10px; }
.g1-ph-left { display: flex; gap: 18px; align-items: flex-start; min-width: 0; flex: 1 1 420px; }
.g1-ph-avatar { width: 48px; height: 48px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 500; letter-spacing: .02em; margin-top: 2px;
  color: var(--g1-accent); background: color-mix(in srgb, var(--g1-accent) 10%, var(--g1-card)); border: 1px solid color-mix(in srgb, var(--g1-accent) 35%, transparent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--g1-accent) 7%, transparent); }
.g1-ph-id { min-width: 0; }
.g1 .g1-ph-name { font-family: var(--g1-serif, "Newsreader", "Iowan Old Style", Palatino, Georgia, serif); font-weight: 400; font-size: 36px; line-height: 1.1; letter-spacing: -.02em; margin: 0; }
.g1-ph-tags { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin-top: 12px; }
.g1-ph-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--g1-ink);
  background: color-mix(in srgb, var(--g1-accent) 13%, var(--g1-card)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--g1-accent) 26%, transparent) inset; }
.g1-ph-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--g1-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--g1-accent) 18%, transparent); }
.g1-ph-chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; font-size: 12.5px; color: var(--g1-muted); border: 1px solid var(--g1-hair); }
.g1-ph-chip svg { width: 12px; height: 12px; flex: none; }
.g1-ph-meta { font-size: 13px; color: var(--g1-muted); margin: 12px 0 0; line-height: 1.6; }
.g1-ph-actions { display: flex; gap: 8px; position: relative; align-items: center; }
.g1-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 220px; padding: 6px; border-radius: 16px; background: var(--g1-card);
  border: 1px solid var(--g1-hair); box-shadow: 0 18px 40px rgba(0, 0, 0, .28); }
.g1-menu[hidden] { display: none; }
.g1-menu-item { font: inherit; display: block; width: 100%; text-align: left; background: none; border: 0; color: var(--g1-ink); padding: 10px 12px; min-height: 40px; border-radius: 10px; font-size: 13.5px; cursor: pointer; }
.g1-menu-item:hover, .g1-menu-item:focus-visible { background: var(--g1-soft); outline: none; }

/* waiting on the patient */
.g1-rd--waiting { display: block; max-width: 720px; }
.g1-wait { display: grid; gap: 12px; }
.g1-wcard, .g1-done-list { border-radius: 20px; background: linear-gradient(180deg, color-mix(in srgb, var(--g1-ink) 2%, var(--g1-card)), var(--g1-card));
  box-shadow: 0 0 0 1px var(--g1-edge, var(--g1-hair)) inset, 0 20px 40px -24px rgba(0, 0, 0, .45); }
.g1-wcard { padding: 30px 34px; }
.g1-wtop { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.g1-kicker { margin: 0; font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--g1-muted); font-weight: 500; }
.g1 .g1-wcard-h { font-family: var(--g1-serif, "Newsreader", "Iowan Old Style", Palatino, Georgia, serif); font-weight: 400; font-size: 26px; line-height: 1.25; margin: 12px 0 8px; letter-spacing: -.01em; }
.g1-wcard-line { display: flex; align-items: center; gap: 10px; margin: 14px 0 6px; color: var(--g1-ink); }
.g1-wcard-p { margin: 0; color: var(--g1-muted); line-height: 1.6; }
.g1-mring { position: relative; width: 64px; height: 64px; flex: none; display: grid; place-items: center; font-size: 12px; color: var(--g1-muted); }
.g1-mring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.g1-mring circle { fill: none; stroke-width: 3; }
.g1-mr-bg { stroke: var(--g1-hair); }
.g1-mr-fg { stroke: var(--g1-accent); stroke-linecap: round; stroke-dasharray: 100; }
.g1-mring b { font-family: var(--g1-serif, "Newsreader", "Iowan Old Style", Palatino, Georgia, serif); font-weight: 400; font-size: 22px; color: var(--g1-ink); }
.g1-dot { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--g1-muted); flex: none; display: inline-block; position: relative; }
.g1-dot--done { background: var(--g1-muted); }
.g1-dot--done::after { content: ""; position: absolute; left: 3.5px; top: 1.5px; width: 3px; height: 5.5px; border-right: 1.5px solid var(--g1-card); border-bottom: 1.5px solid var(--g1-card); transform: rotate(45deg); }
.g1 details.g1-done-list > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 32px; min-height: 52px; cursor: pointer; border-radius: 20px; }
.g1-done-list > summary::-webkit-details-marker { display: none; }
.g1-done-list > summary b { font-weight: 500; }
.g1-done-list > summary span { color: var(--g1-muted); font-size: 13px; display: inline-flex; align-items: center; gap: 12px; }
.g1-tchev, .g1-rd-chev { width: 8px; height: 8px; border-right: 1.5px solid var(--g1-muted); border-bottom: 1.5px solid var(--g1-muted); transform: rotate(45deg) translateY(-2px); transition: transform .2s; display: inline-block; flex: none; }
details[open] > summary .g1-tchev, details[open] > summary .g1-rd-chev { transform: rotate(225deg); }
.g1-wdl { list-style: none; margin: 0; padding: 0 32px 14px; }
.g1-wdl li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--g1-hair); }
.g1-wdl-st { font-size: 13px; color: var(--g1-muted); }
.g1-gate-line { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 8px 0 0; padding: 20px 24px; border-radius: 18px; border: 1px dashed var(--g1-hair);
  font-size: 13.5px; color: var(--g1-muted); text-align: center; }
.g1-gate-line::before { content: ""; width: 16px; height: 16px; flex: none; background: var(--g1-accent); opacity: .85;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.4'%3E%3Crect x='3.5' y='7' width='9' height='6.5' rx='1.6'/%3E%3Cpath d='M5.5 7V5.2a2.5 2.5 0 0 1 5 0V7'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.4'%3E%3Crect x='3.5' y='7' width='9' height='6.5' rx='1.6'/%3E%3Cpath d='M5.5 7V5.2a2.5 2.5 0 0 1 5 0V7'/%3E%3C/svg%3E") center / contain no-repeat; }

.g1 details.g1-done-list, .g1 details.g1-rd-fold { border-top: 0; margin-top: 0; }
.g1 details.g1-rd-fold { margin-top: 0; margin-bottom: 8px; }
.g1 details.g1-done-list > summary, .g1 details.g1-rd-fold > summary { font-weight: 400; font-size: inherit; }
.g1 details.g1-done-list > summary::before, .g1 details.g1-rd-fold > summary::before { display: none; }

/* ready for review: the title, cards with subtle depth shown as one line until opened, and the sticky note with a soft glow */
.g1-rd-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 0 0 18px; }
.g1 .g1-rd-title { font-family: var(--g1-serif, "Newsreader", "Iowan Old Style", Palatino, Georgia, serif); font-weight: 400; font-size: 30px; letter-spacing: -.02em; margin: 0; }
.g1 .g1-rd-main > .g1-rd-card { border-radius: 16px; box-shadow: 0 1px 0 color-mix(in srgb, var(--g1-ink) 4%, transparent) inset, 0 0 0 1px var(--g1-edge, var(--g1-hair)) inset, 0 20px 40px -24px rgba(0, 0, 0, .35); }
.g1-rd-fold { padding: 0 !important; }
.g1-rd-fold > .g1-rd-sum { list-style: none; display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; align-items: start; gap: 16px; padding: 18px 22px; min-height: 56px; cursor: pointer; border-radius: 16px; }
.g1-rd-fold > .g1-rd-sum::-webkit-details-marker { display: none; }
.g1-rd-fold:not([open]):hover { box-shadow: 0 0 0 1px color-mix(in srgb, var(--g1-accent) 22%, transparent) inset, 0 24px 44px -22px rgba(0, 0, 0, .45); }
.g1-rd-sum-t { display: block; font-size: 15px; font-weight: 500; color: var(--g1-ink); }
.g1-rd-sum-s { display: block; font-size: 13.5px; color: var(--g1-muted); margin-top: 3px; line-height: 1.45; }
.g1-rd-fold[open] .g1-rd-sum-s { display: none; }
.g1-rd-sum .g1-rd-chev { margin-top: 7px; }
.g1-rd-dot { width: 12px; height: 12px; margin-top: 4px; border-radius: 50%; border: 1.5px solid var(--g1-muted); }
.g1-rd-dot--done { background: var(--g1-muted); border-color: var(--g1-muted); }
.g1-rd-dot--attn { background: var(--g1-accent); border-color: var(--g1-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--g1-accent) 18%, transparent); }
.g1-rd-fold-body { padding: 0 22px 22px 52px; }
.g1 .g1-rd-urgent.g1-rd-fold .g1-rd-sum-t { color: var(--g1-danger); }
.g1 .g1-rd--note .g1-rd-side { top: 16px; }
.g1 .g1-rd--note .g1-rd-side > .g1-card:first-child { border-radius: 20px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--g1-accent) 14%, transparent) inset, inset 0 0 80px color-mix(in srgb, var(--g1-accent) 6%, transparent),
  0 30px 60px -28px rgba(0, 0, 0, .55); }
/* the same finish on the prescribing & titration guide (js/ekm-glp1-titration.js) and the Strive Activation Review
   (js/ekm-glp1-strive.js): cards with subtle depth, the sign box with the note's soft glow. Look only; nothing about them changes. */
.g1 .g1-tg:not(.g1-rd-decide .g1-tg), .g1 .g1-sv-card, .g1 .g1-rv-prod, .g1 .g1-rv-program { border-radius: 16px;
  box-shadow: 0 1px 0 color-mix(in srgb, var(--g1-ink) 4%, transparent) inset, 0 0 0 1px var(--g1-edge, var(--g1-hair)) inset, 0 20px 40px -24px rgba(0, 0, 0, .35); }
.g1 .g1-rd-decide .g1-tg { border-radius: 14px; box-shadow: 0 0 0 1px var(--g1-edge, var(--g1-hair)) inset; }
.g1 .g1-tg-head h4 { font-family: var(--g1-serif, "Newsreader", "Iowan Old Style", Palatino, Georgia, serif); font-weight: 400; font-size: 1.3rem; letter-spacing: -.015em; }
.g1 .g1-rv-sign { border-radius: 20px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--g1-accent) 14%, transparent) inset, inset 0 0 80px color-mix(in srgb, var(--g1-accent) 6%, transparent),
  0 30px 60px -28px rgba(0, 0, 0, .55); }
@media (max-width: 640px) {
  .g1 .g1-ph-name { font-size: 28px; }
  .g1-wcard { padding: 24px 20px; }
  .g1 details.g1-done-list > summary { padding: 16px 20px; }
  .g1-wdl { padding: 0 20px 12px; }
  .g1-rd-fold-body { padding: 0 18px 20px; }
  .g1-mring { width: 52px; height: 52px; }
}
@media (prefers-reduced-motion: reduce) { .g1-tchev, .g1-rd-chev { transition: none; } }

/* ---- Prescribing & titration guide, Strive pricing increment (migration 20270830164728; js/ekm-glp1-titration.js): the step line
   (patient -> medication -> dosing guide -> stage -> dose & safety -> package & pricing -> review Rx -> authorize), the context
   every decision shows, and the package & pricing step (ESTIMATE until every input is verified). Theme tokens only. ---- */
.g1-tg-flow { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 4px; margin: 4px 0 10px; padding: 0; counter-reset: g1flow; }
.g1-tg-fs { counter-increment: g1flow; display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; color: var(--g1-muted); padding: 4px 10px 4px 4px;
  border-radius: 999px; border: 1px solid var(--g1-hair); background: var(--g1-softer); }
.g1-tg-fs::before { content: counter(g1flow); width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; font-weight: 700;
  background: var(--g1-soft); color: var(--g1-ink2); flex: none; }
.g1-tg-fs.is-done { color: var(--g1-ink2); }
.g1-tg-fs.is-done::before { content: "\2713"; background: var(--g1-ok-bg); color: var(--g1-ok); }
.g1-tg-fs.is-now { color: var(--g1-ink); font-weight: 600; border-color: color-mix(in srgb, var(--g1-accent) 55%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--g1-accent) 14%, transparent); background: color-mix(in srgb, var(--g1-accent) 10%, var(--g1-card)); }
.g1-tg-fs.is-now::before { background: var(--g1-accent); color: var(--c-bg, #fff); }
.g1-tg-acts { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.g1-tg-act-name { text-transform: uppercase; letter-spacing: .03em; font-size: .8rem; }
.g1-tg-ctx { display: grid; grid-template-columns: minmax(130px, max-content) minmax(0, 1fr); gap: 6px 14px; margin: 4px 0 12px; padding: 12px 14px; font-size: .86rem;
  border-radius: 14px; background: var(--g1-softer); border: 1px solid var(--g1-hair); }
.g1-tg-ctx dt { color: var(--g1-muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; padding-top: 2px; }
.g1-tg-ctx dd { margin: 0; color: var(--g1-ink); overflow-wrap: anywhere; }
.g1-tg-price { margin-top: 12px; border: 1px solid var(--g1-hair); border-radius: 14px; padding: 12px 14px; background: var(--g1-card); }
.g1-tg-est { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: baseline; margin: 0 0 8px; padding: 6px 10px; border-radius: 10px; font-size: .84rem;
  background: var(--g1-wait-bg); color: var(--g1-wait); }
.g1-tg-est strong { letter-spacing: .08em; }
.g1-tg-scroll { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 8px 0; }
.g1-tg-ptable { width: 100%; border-collapse: collapse; font-size: .82rem; min-width: 560px; }
.g1-tg-ptable th { text-align: left; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--g1-muted); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--g1-hair); }
.g1-tg-ptable td { padding: 7px 8px; border-bottom: 1px solid var(--g1-hair); color: var(--g1-ink2); vertical-align: top; }
@media (max-width: 640px) { .g1-tg-ctx { grid-template-columns: 1fr; gap: 2px; } .g1-tg-ctx dd { margin-bottom: 6px; } .g1-tg-fs { font-size: .72rem; } }

/* ---- Strive Activation Review in three categories and the consolidated compounded wording review (migration 20270830164728;
   js/ekm-glp1-strive.js boardHtml, js/ekm-glp1-approvals.js cwHtml). Theme tokens only. ---- */
.g1-rv-board { margin: 14px 0; padding: 18px 20px; }
.g1-rv-board > h5 { margin: 0 0 10px; }
.g1-rv-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.g1-rv-group { border-radius: 14px; padding: 12px 14px; background: var(--g1-softer); border: 1px solid var(--g1-hair); border-top: 3px solid var(--g1-hair); min-width: 0; }
.g1-rv-group--ready { border-top-color: var(--g1-ok); }
.g1-rv-group--awaiting { border-top-color: var(--g1-wait); }
.g1-rv-group--approval { border-top-color: var(--g1-accent); }
.g1-rv-group h6 { margin: 0; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--g1-ink); display: flex; align-items: center; gap: 8px; }
.g1-rv-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--g1-soft); font-size: .72rem; color: var(--g1-ink2); }
.g1-rv-group ol { margin: 8px 0 0; padding-left: 18px; font-size: .84rem; color: var(--g1-ink2); }
.g1-rv-group li { margin: 0 0 8px; overflow-wrap: anywhere; }
.g1-rv-group li .g1-hint { display: block; margin-top: 2px; }
.g1-rv-group li ul.g1-hint { padding-left: 16px; margin: 4px 0 0; }
.g1-rv-who { display: inline-block; font-size: .7rem; padding: 1px 7px; border-radius: 999px; background: var(--g1-soft); color: var(--g1-muted); margin-left: 2px; }
.g1-rv-prices { margin-top: 10px; }
.g1-rv-prices > summary { cursor: pointer; font-size: .84rem; color: var(--g1-ink2); }
.g1-rv-obs { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--g1-wait-bg); font-size: .86rem; }
.g1-rv-obs p { margin: 0 0 4px; }
/* compounded wording review: each document as Current beside Revised, material changes marked (2026-11-18) */
.g1-cw-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.g1-cw-doc { padding: 16px 18px; min-width: 0; }
.g1-cw-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 8px 0 12px; }
.g1-cw-side { min-width: 0; padding: 10px 12px; border: 1px solid var(--g1-hair); border-radius: var(--g1-radius-sm); background: var(--g1-softer); }
.g1-cw-side-h { margin: 0 0 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-weight: 600; color: var(--g1-ink); overflow-wrap: anywhere; }
.g1-cw-side-k { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--g1-muted); }
.g1-cw-diff { border: 1px solid var(--g1-hair); border-radius: var(--g1-radius-sm); overflow: hidden; }
.g1-cw-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--g1-hair); }
.g1-cw-row:first-child { border-top: 0; }
.g1-cw-row--head { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--g1-muted); background: var(--g1-soft); }
.g1-cw-row--skip { display: block; padding: 6px 12px; font-size: .78rem; color: var(--g1-muted); background: var(--g1-softer); font-style: italic; }
.g1-cw-cell { min-width: 0; padding: 8px 12px; overflow-wrap: anywhere; }
.g1-cw-cell + .g1-cw-cell { border-left: 1px solid var(--g1-hair); }
.g1-cw-row--added .g1-cw-cell[data-side="revised"] { background: var(--g1-ok-bg); box-shadow: inset 3px 0 0 var(--g1-ok); }
.g1-cw-row--changed .g1-cw-cell, .g1-cw-row--moved .g1-cw-cell[data-side="revised"] { background: var(--g1-wait-bg); }
.g1-cw-row--moved .g1-cw-cell[data-side="revised"] { box-shadow: inset 3px 0 0 var(--g1-wait); }
.g1-cw-row--changed .g1-cw-cell[data-side="revised"] { box-shadow: inset 3px 0 0 var(--g1-wait); }
.g1-cw-row--removed .g1-cw-cell[data-side="current"] { background: var(--g1-danger-bg); box-shadow: inset 3px 0 0 var(--g1-danger); }
.g1-cw-b { margin: 0; font-size: .86rem; color: var(--g1-ink2); }
.g1-cw-b--h { font-weight: 700; color: var(--g1-ink); }
.g1-cw-b--h3 { font-weight: 600; color: var(--g1-ink); }
.g1-cw-b--field { font-family: var(--g1-font); }
.g1-cw-note { font-size: .78rem; color: var(--g1-muted); }
.g1-cw-none { margin: 0; font-size: .78rem; color: var(--g1-muted); font-style: italic; }
.g1-cw-cell ins { text-decoration: none; background: color-mix(in srgb, var(--g1-ok) 22%, transparent); border-radius: 3px; padding: 0 1px; }
.g1-cw-cell del { color: var(--g1-danger); }
.g1-cw-tag, .g1-cw-key { display: inline-block; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 1px 7px; border-radius: 999px; margin: 0 0 4px; }
.g1-cw-tag--added, .g1-cw-key--added { background: var(--g1-ok-bg); color: var(--g1-ok); }
.g1-cw-tag--changed, .g1-cw-key--changed, .g1-cw-tag--moved, .g1-cw-key--moved { background: var(--g1-wait-bg); color: var(--g1-wait); }
.g1-cw-tag--removed, .g1-cw-key--removed { background: var(--g1-danger-bg); color: var(--g1-danger); }
.g1-cw-sum { font-size: .86rem; font-weight: 600; color: var(--g1-ink); margin: 6px 0; }
.g1-cw-topics { list-style: none; margin: 6px 0 10px; padding: 0; font-size: .86rem; }
.g1-cw-t { display: flex; gap: 8px; align-items: baseline; padding: 4px 0; border-top: 1px solid var(--g1-hair); }
.g1-cw-mark { width: 18px; flex: none; text-align: center; font-weight: 700; }
.g1-cw-t { flex-wrap: wrap; }
.g1-cw-tl { flex: 1 1 auto; min-width: 0; }
.g1-cw-st { flex: 0 1 auto; font-size: .74rem; color: var(--g1-muted); text-align: right; }
.g1-cw-t--covered .g1-cw-mark { color: var(--g1-ok); }
.g1-cw-t--linked .g1-cw-mark, .g1-cw-t--linked_draft .g1-cw-mark { color: var(--g1-wait); }
.g1-cw-t--linked_draft .g1-cw-st { color: var(--g1-wait); }
.g1-cw-t--missing { color: var(--g1-danger); font-weight: 600; }
.g1-cw-t--missing .g1-cw-st { color: var(--g1-danger); }
.g1-cw-t--na { color: var(--g1-muted); }
.g1-cw-na > summary { cursor: pointer; font-size: .78rem; color: var(--g1-muted); margin: 4px 0; }
.g1-cw-text > summary { cursor: pointer; font-size: .84rem; color: var(--g1-ink2); margin: 6px 0; }
.g1-cw-text .g1-patient { max-height: 60vh; overflow: auto; font-size: .86rem; }
.g1-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 1100px) { .g1-rv-groups { grid-template-columns: 1fr; } }
/* phones: the two columns stack; an unchanged paragraph shows once, a changed one shows Current then Revised, labelled */
@media (max-width: 700px) {
  .g1-cw-pair, .g1-cw-row { grid-template-columns: minmax(0, 1fr); }
  .g1-cw-row--head { display: none; }
  .g1-cw-cell + .g1-cw-cell { border-left: 0; border-top: 1px dashed var(--g1-hair); }
  .g1-cw-row--same .g1-cw-cell[data-side="current"], .g1-cw-row--added .g1-cw-cell[data-side="current"], .g1-cw-row--moved .g1-cw-cell[data-side="current"] { display: none; }
  .g1-cw-row--removed .g1-cw-cell[data-side="revised"] { display: none; }
  .g1-cw-row--changed .g1-cw-cell::before { content: attr(data-label); display: block; font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; color: var(--g1-muted); margin-bottom: 2px; }
}

/* ---- Clinical workspace v2 (owner 2026-11-19: "a beautifully designed, intelligent, efficient clinical workspace"). One organized
   workspace: a step bar (Review \00b7  Decide \00b7  Review & sign \00b7  Strive reference & pricing), the full width used intelligently, comfortable
   type, glossy layered cards, status dots instead of loud pills, the note as a spacious document at the end. Every colour still comes
   from the user's EKM OS theme tokens (light and dark), with a champagne accent derived from the theme accent. ---- */
.g1, .g1-ws {
  --g1-champ: color-mix(in srgb, var(--g1-accent) 55%, #B8955F 45%);
  --g1-champ-soft: color-mix(in srgb, var(--g1-champ) 12%, transparent);
  --g1-gloss: linear-gradient(180deg, color-mix(in srgb, #fff 55%, var(--g1-card)) 0%, var(--g1-card) 46px);
  --g1-lift: 0 1px 0 color-mix(in srgb, #fff 60%, transparent) inset, 0 0 0 1px var(--g1-hair) inset, 0 1px 2px rgba(28, 24, 20, .04), 0 18px 40px -26px rgba(28, 24, 20, .28);
}
html[data-dark] .g1, html[data-dark] .g1-ws {
  --g1-gloss: linear-gradient(180deg, color-mix(in srgb, #fff 4%, var(--g1-card)) 0%, var(--g1-card) 46px);
  --g1-lift: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 0 0 1px var(--g1-hair) inset, 0 20px 44px -24px rgba(0, 0, 0, .7);
}
/* use the screen: wider on large displays, still centred */
.cw-glp1-mount, .g1-ws-body > .g1 { max-width: 1520px; }

/* the step bar */
.g1-rd-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin: 6px 0 22px; }
.g1 .g1-rd-title { font-size: 22px; font-weight: 600; letter-spacing: -.01em; margin: 0; }
.g1-rd-steps { display: flex; flex-wrap: wrap; gap: 4px; padding: 5px; border-radius: 14px; background: var(--g1-softer); box-shadow: 0 0 0 1px var(--g1-hair) inset; }
.g1-rd-step { display: inline-flex; align-items: center; gap: 9px; min-height: 40px; padding: 8px 16px; border: 0; border-radius: 10px; background: transparent;
  font: 500 14.5px/1.2 var(--g1-font); color: var(--g1-muted); cursor: pointer; transition: background-color .18s, color .18s, box-shadow .18s; }
.g1-rd-step:hover { color: var(--g1-ink); background: var(--g1-soft); }
.g1-rd-step.is-on { color: var(--g1-ink); background: var(--g1-card); box-shadow: 0 1px 2px rgba(28, 24, 20, .08), 0 0 0 1px color-mix(in srgb, var(--g1-champ) 35%, transparent) inset; }
.g1-rd-step-n { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 12px; font-weight: 600;
  color: var(--g1-muted); box-shadow: 0 0 0 1px color-mix(in srgb, var(--g1-muted) 40%, transparent) inset; }
.g1-rd-step.is-on .g1-rd-step-n { color: var(--g1-card); background: var(--g1-champ); box-shadow: none; }
.g1-rd-step--ref { margin-left: 6px; }
.g1-rd-step--ref::before { content: ""; width: 1px; height: 20px; margin: 0 8px 0 -10px; background: var(--g1-hair); }
.g1-rd-step:focus-visible { outline: 2px solid var(--g1-champ); outline-offset: 2px; }

/* each step uses the full width */
.g1-rd-wide { display: grid; gap: 20px; font-size: 15.5px; line-height: 1.6; }
.g1-rd-wide > .g1-card, .g1-rd-wide > section, .g1-rd-grid > .g1-card { margin: 0; }
.g1-rd-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.g1-rd-grid > :first-child:only-child { grid-column: 1 / -1; }
@media (max-width: 1100px) { .g1-rd-grid { grid-template-columns: minmax(0, 1fr); } }
.g1 .g1-rd-wide .g1-card, .g1 .g1-rd-signgrid .g1-card { border-radius: 18px; border: 0; background: var(--g1-gloss); box-shadow: var(--g1-lift); padding: 24px 26px; }
.g1 .g1-rd-wide .g1-card h4, .g1 .g1-rd-signgrid .g1-card h4 { font-size: 17px; font-weight: 600; letter-spacing: -.005em; margin: 0 0 12px; }
.g1-rd-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 4px 0 8px; }
.g1-rd-foot .g1-btn { min-height: 44px; padding: 0 20px; font-size: 14.5px; border-radius: 12px; }
.g1-linkbtn { border: 0; background: none; padding: 0 0 0 10px; font: inherit; font-weight: 600; color: var(--g1-accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Review & sign: the note as a spacious document; approval beside it */
.g1-rd-signgrid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.g1-rd-doc { display: grid; gap: 16px; min-width: 0; }
.g1-rd-signside { position: sticky; top: 12px; display: grid; gap: 16px; }
.g1-rd-signside > .g1-card { margin: 0; }
@media (max-width: 1100px) { .g1-rd-signgrid { grid-template-columns: minmax(0, 1fr); } .g1-rd-signside { position: static; } }
.g1 .g1-rd-doc .g1-note { padding: 40px 48px; }
.g1 .g1-rd-doc .g1-note-head h4 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: 26px; letter-spacing: -.01em; }
.g1 .g1-rd-doc .g1-note-doc { max-width: 82ch; }
.g1 .g1-rd-doc .g1-note-sec { padding: 18px 0; border-top: 1px solid var(--g1-hair); }
.g1 .g1-rd-doc .g1-note-sec h5 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--g1-champ); margin: 0; }
.g1 .g1-rd-doc .g1-note-line, .g1 .g1-rd-doc .g1-note-text { font-size: 15.5px; line-height: 1.75; color: var(--g1-ink); }
/* a gap in the note: identified, never shouted */
.g1 .g1-note-gap { background: none; color: var(--g1-muted); font-style: italic; border-bottom: 1px dashed color-mix(in srgb, var(--g1-champ) 70%, transparent); padding: 0 1px; }

/* status dots (instead of loud pills) */
.g1-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; flex: none; background: var(--g1-muted); }
.g1-dot--ok { background: var(--g1-ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--g1-ok) 16%, transparent); }
.g1-dot--warn { background: var(--g1-wait); box-shadow: 0 0 0 3px color-mix(in srgb, var(--g1-wait) 16%, transparent); }
.g1-dot--muted { background: color-mix(in srgb, var(--g1-muted) 55%, transparent); }

/* ---- Strive reference & pricing ---- */
.g1-ref { display: grid; gap: 20px; font-size: 15px; line-height: 1.55; }
.g1-ref-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; padding: 26px 30px; border-radius: 20px;
  background: var(--g1-gloss); box-shadow: var(--g1-lift); }
.g1-ref-kicker { margin: 0 0 4px; font-size: 11.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--g1-champ); }
.g1 .g1-ref-title { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: 30px; letter-spacing: -.015em; }
.g1-ref-sub { margin: 6px 0 0; color: var(--g1-muted); font-size: 14px; }
.g1-ref-status { display: inline-flex; flex-wrap: wrap; align-items: center; margin: 0; font-size: 13.5px; color: var(--g1-ink2); }
.g1-ref-status--inline { display: flex; margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; background: var(--g1-softer); }
.g1-ref-sep { margin: 0 12px; color: var(--g1-muted); }
.g1-ref-switch { display: inline-flex; gap: 6px; padding: 5px; border-radius: 14px; background: var(--g1-softer); box-shadow: 0 0 0 1px var(--g1-hair) inset; width: fit-content; max-width: 100%; flex-wrap: wrap; }
.g1-ref-seg { display: grid; gap: 2px; min-width: 200px; padding: 10px 18px; border: 0; border-radius: 10px; background: transparent; text-align: left; cursor: pointer; font: inherit; color: var(--g1-muted); }
.g1-ref-seg.is-on { background: var(--g1-card); color: var(--g1-ink); box-shadow: 0 1px 2px rgba(28, 24, 20, .08), 0 0 0 1px color-mix(in srgb, var(--g1-champ) 35%, transparent) inset; }
.g1-ref-seg-n { font-weight: 600; font-size: 15px; }
.g1-ref-seg-s { font-size: 12.5px; color: var(--g1-muted); }
.g1-ref-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 20px; align-items: start; }
.g1-ref-grid--b { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
@media (max-width: 1180px) { .g1-ref-grid, .g1-ref-grid--b { grid-template-columns: minmax(0, 1fr); } }
/* the catalog and the estimate each take the full width, so every price column shows (no clipped or scrolling tables beside the EKM OS sidebar) */
.g1-ref-grid:not(.g1-ref-grid--b) { grid-template-columns: minmax(0, 1fr); }
.g1-ref-card { min-width: 0; padding: 24px 26px; border-radius: 18px; background: var(--g1-gloss); box-shadow: var(--g1-lift); }
.g1-ref-card-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; margin: 0 0 14px; }
.g1 .g1-ref-card-head h4 { margin: 0; font-size: 17px; font-weight: 600; }
.g1-ref-count, .g1-ref-tag { font-size: 12.5px; color: var(--g1-muted); }
.g1-ref-tag { padding: 3px 10px; border-radius: 999px; background: var(--g1-champ-soft); color: var(--g1-ink2); }
.g1-ref-scroll { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.g1-ref-table { width: 100%; border-collapse: collapse; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.g1-ref-table th { padding: 0 12px 10px; text-align: left; font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--g1-muted); border-bottom: 1px solid var(--g1-hair); white-space: nowrap; }
.g1-ref-table td { padding: 11px 12px; border-bottom: 1px solid color-mix(in srgb, var(--g1-hair) 70%, transparent); vertical-align: middle; }
.g1-ref-table tbody tr:last-child td { border-bottom: 0; }
.g1-ref-table tbody tr:hover td { background: var(--g1-softer); }
.g1-ref-table .num { text-align: right; white-space: nowrap; }
.g1-ref-best { margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--g1-champ-soft); color: var(--g1-ink); }
.g1-ref-foot { margin: 14px 0 0; font-size: 13px; line-height: 1.55; color: var(--g1-muted); }
.g1-ref-muted { margin: 4px 0; color: var(--g1-muted); }
.g1-ref-alert { margin: 0; padding: 14px 16px; border-radius: 12px; background: var(--g1-danger-bg); color: var(--g1-danger); }
.g1-ref-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: end; margin: 0 0 16px; }
@media (max-width: 760px) { .g1-ref-form { grid-template-columns: minmax(0, 1fr); } }
.g1-ref-field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--g1-ink2); }
.g1-ref-in { display: flex; align-items: center; border-radius: 12px; background: var(--g1-card); box-shadow: 0 0 0 1px var(--g1-border) inset; overflow: hidden; }
.g1-ref-in input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border: 0; background: transparent; font: 500 16px var(--g1-font); color: var(--g1-ink); }
.g1-ref-in em { padding: 0 14px; font-style: normal; font-size: 13.5px; color: var(--g1-muted); }
.g1-ref-in:focus-within { box-shadow: 0 0 0 2px var(--g1-champ) inset; }
.g1-ref-field select { height: 46px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--g1-border); background: var(--g1-card); font: 500 14.5px var(--g1-font); color: var(--g1-ink); }
.g1-ref-check { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--g1-ink2); min-height: 32px; }
.g1-ref-check input { width: 18px; height: 18px; accent-color: var(--g1-champ); }
.g1-ref-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 16px; }
@media (max-width: 760px) { .g1-ref-kpis { grid-template-columns: minmax(0, 1fr); } }
.g1-ref-kpis > div { padding: 14px 16px; border-radius: 14px; background: var(--g1-softer); box-shadow: 0 0 0 1px var(--g1-hair) inset; }
.g1-ref-kpis dt { font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--g1-muted); }
.g1-ref-kpis dd { margin: 4px 0 2px; font-size: 22px; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.g1-ref-kpis span { font-size: 12.5px; color: var(--g1-muted); }
.g1-ref-flag { display: flex; align-items: center; margin: 0 0 14px; font-size: 14px; color: var(--g1-ink2); }
.g1-ref-assume { margin-top: 14px; font-size: 13.5px; color: var(--g1-muted); }
.g1-ref-assume summary { cursor: pointer; font-weight: 600; color: var(--g1-ink2); }
.g1-ref-assume ul { margin: 10px 0 0; padding-left: 18px; line-height: 1.6; }
.g1-ref-facts { display: grid; gap: 0; margin: 0; }
.g1-ref-facts > div { display: grid; grid-template-columns: minmax(150px, .8fr) minmax(0, 1.2fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid color-mix(in srgb, var(--g1-hair) 70%, transparent); font-size: 14.5px; }
.g1-ref-facts > div:last-child { border-bottom: 0; }
.g1-ref-facts dt { color: var(--g1-muted); }
.g1-ref-facts dd { margin: 0; }
.g1-ref-st { margin-left: 6px; font-size: 12px; color: var(--g1-muted); }
.g1-ref-st--ok { color: var(--g1-ok); }
.g1-rd--steps { grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; }
@media (max-width: 1100px) { .g1-rd--steps { grid-template-columns: minmax(0, 1fr); } }
.g1 .g1-rd-rail .g1-card { border-radius: 18px; border: 0; background: var(--g1-gloss); box-shadow: var(--g1-lift); padding: 20px 22px; }
.g1 .g1-rd-ready .g1-rd-go { width: 100%; min-height: 44px; margin-top: 12px; border-radius: 12px; }
.g1-rd-doc { display: grid; gap: 16px; min-width: 0; }
.g1-ref-table td:first-child, .g1-ref-table td:nth-child(2) { white-space: nowrap; }
.g1-ref-table[data-tg="ref-configs"] td:first-child { white-space: normal; min-width: 170px; }
.g1-ref-table[data-tg="ref-steps"] td:last-child { white-space: nowrap; }
.g1 .g1-rd-rail .g1-todo li { font-size: 13.5px; line-height: 1.45; padding: 7px 0 7px 26px; }
.g1 .g1-rd-rail .g1-todo li::before { top: 9px; }
.g1 .g1-rd-rail .g1-rd-count { font-size: 14px; }

/* ---- Fast review (owner 2026-11-19: "click click click") ---- */
/* the review cards: one per row unless the review area itself is wide (the EKM OS sidebar narrows it), so no table is clipped */
.g1-rd-grid { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1900px) { .g1-rd--steps .g1-rd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* determinations: write the rationale once, then one click on the determination saves it */
.g1-rd-det-opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.g1-rd-det { min-height: 40px; padding: 8px 16px; font-weight: 600; }
.g1-rd-det--stop { color: var(--g1-danger, #b42318); border-color: color-mix(in srgb, var(--g1-danger, #b42318) 45%, transparent); }
.g1-rd-finding + .g1-rd-finding { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--g1-hair); }
.g1-rd-vall { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 4px 0 14px; }
.g1-rd-vall .g1-muted { font-size: 13px; }
/* vitals: the clinician buttons sit on one line under the status */
.g1-rd-verify { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.g1-rd-verify .g1-btn { min-height: 34px; padding: 6px 12px; font-size: 13px; white-space: nowrap; }
/* the rail: what is open, one click away */
.g1-rd-next { list-style: none; margin: 4px 0 14px; padding: 0; display: grid; gap: 6px; }
.g1-rd-next li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px 10px; padding: 10px 12px; border-radius: 12px; background: var(--g1-softer); box-shadow: 0 0 0 1px var(--g1-hair) inset; }
.g1-rd-next-go { grid-column: 2; justify-self: start; border: 0; padding: 0; background: none; font: inherit; font-weight: 600; color: var(--g1-ink); cursor: pointer; text-align: left; }
.g1-rd-next-go:hover { text-decoration: underline; text-underline-offset: 3px; }
.g1-rd-next-n { grid-column: 2; font-size: 12.5px; color: var(--g1-muted); }
.g1-rd-next .g1-dot { grid-row: 1 / span 2; }
.g1-rd-next-act { grid-column: 3; grid-row: 1 / span 2; min-height: 34px; padding: 6px 12px; font-size: 13px; }
.g1-rd-all { margin: 0 0 12px; }
.g1-rd-all > summary { cursor: pointer; font-size: 13px; color: var(--g1-muted); padding: 4px 0 8px; }

/* =====================================================================================================================
   PROVIDER WORKSPACE (owner 2026-11-19 layout, EKM_GLP1_Provider_HighTech_Interactive.html): glass cards, Inter, spacious.
   Scoped to the patient workspace and the Strive reference (.g1--ht, set by js/ekm-glp1.js render for the detail and pricing
   views). Owner 2026-11-22: "it should match the employee theme preference" - every colour comes from the signed-in employee's
   EKM OS theme (--c-*, --status-*, light or dark), never a fixed palette. The --ht-* tokens below are the only place they mix.
   ===================================================================================================================== */
.g1.g1--ht {
  --ht-ink: var(--c-ink, #1C1814); --ht-ink2: var(--c-ink2, var(--c-ink, #3D3830)); --ht-muted: var(--c-muted, #5A5248); --ht-soft: var(--c-muted2, var(--c-muted, #72685C));
  --ht-accent: var(--c-accent, #9C9A93); --ht-accent-ink: var(--c-accent-fg, var(--c-accent, #6A645C)); --ht-on-accent: var(--c-accent-text, #fff);
  --ht-cyan: var(--ht-accent); --ht-mint: var(--g1-ok); --ht-warn: var(--g1-danger);
  /* surfaces, from deepest to most raised: the page, inset fields, inner boxes, the glass cards, raised chips */
  --ht-page: var(--c-bg, #F3EDE4);
  --ht-field: color-mix(in srgb, var(--c-bg, #F3EDE4) 70%, var(--c-box, #FAF6EF));
  --ht-inner: color-mix(in srgb, var(--c-bg, #F3EDE4) 38%, var(--c-box, #FAF6EF));
  --ht-panel: color-mix(in srgb, var(--c-box, #FAF6EF) 90%, transparent); --ht-panel2: var(--c-box, #FAF6EF);
  --ht-raise: color-mix(in srgb, var(--c-ink, #1C1814) 5%, var(--c-box, #FAF6EF));
  --ht-sel: color-mix(in srgb, var(--c-accent, #9C9A93) 16%, var(--c-box, #FAF6EF));
  --ht-line: color-mix(in srgb, var(--c-ink, #1C1814) 11%, transparent); --ht-line2: color-mix(in srgb, var(--c-ink, #1C1814) 17%, transparent);
  --ht-sel-line: color-mix(in srgb, var(--c-accent, #9C9A93) 60%, transparent);
  --ht-hint: var(--ht-panel2);
  --ht-shadow: inset 0 1px 0 color-mix(in srgb, #fff 9%, transparent), 0 1px 2px rgba(0, 0, 0, .05), 0 18px 48px -26px rgba(0, 0, 0, .34);
  --ht-grad: linear-gradient(180deg, color-mix(in srgb, var(--c-accent, #9C9A93) 86%, #fff 14%), var(--c-accent, #9C9A93) 55%, color-mix(in srgb, var(--c-accent, #9C9A93) 88%, #000 12%));
  /* the shared GLP-1 tokens, so every existing control in here takes the same palette */
  --g1-bg: var(--ht-page); --g1-card: var(--ht-panel); --g1-border: var(--ht-line); --g1-hair: var(--ht-line); --g1-edge: var(--ht-line);
  --g1-ink: var(--ht-ink); --g1-ink2: var(--ht-ink2); --g1-muted: var(--ht-muted); --g1-accent: var(--ht-accent);
  --g1-well: color-mix(in srgb, var(--ht-accent) 12%, transparent); --g1-glow: color-mix(in srgb, var(--ht-accent) 20%, transparent);
  --g1-soft: color-mix(in srgb, var(--c-ink, #1C1814) 5%, transparent); --g1-softer: color-mix(in srgb, var(--c-ink, #1C1814) 3%, transparent);
  --g1-champ: var(--ht-accent); --g1-gloss: transparent; --g1-lift: var(--ht-shadow);
  --g1-wait: var(--status-warning-ink, #855D1C); --g1-wait-bg: color-mix(in srgb, var(--status-warning-ink, #855D1C) 12%, transparent);
  --g1-font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  container-type: inline-size; container-name: ght;
  font-family: var(--g1-font); color: var(--ht-ink); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased;
  padding: 26px clamp(18px, 3vw, 46px) 46px; border-radius: 24px;
  background: radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--ht-accent) 10%, transparent), transparent 30%), var(--ht-page);
}
html[data-dark] .g1.g1--ht {
  color-scheme: dark;
  --ht-shadow: inset 0 1px 0 color-mix(in srgb, #fff 5%, transparent), 0 1px 2px rgba(0, 0, 0, .3), 0 22px 60px -28px rgba(0, 0, 0, .7);
  --ht-raise: color-mix(in srgb, var(--c-ink, #EDE6DA) 7%, var(--c-box, #1C1814));
  --ht-line: color-mix(in srgb, var(--c-ink, #EDE6DA) 12%, transparent); --ht-line2: color-mix(in srgb, var(--c-ink, #EDE6DA) 19%, transparent);
  --ht-sel: color-mix(in srgb, var(--c-accent, #D2B48A) 20%, var(--c-box, #1C1814));
}
.g1--ht h2, .g1--ht h3, .g1--ht h4, .g1--ht h5 { color: var(--ht-ink); }
.g1--ht .g1-muted, .g1--ht .g1-sub, .g1--ht .g1-hint { color: var(--ht-muted); }

/* glass surfaces */
.g1.g1--ht .g1-card, .g1.g1--ht .g1-rd-card, .g1.g1--ht .g1-ht-panel, .g1.g1--ht .g1-ht-tile, .g1.g1--ht .g1-ref-card, .g1.g1--ht .g1-ref-head, .g1.g1--ht .g1-ph,
.g1.g1--ht .g1-acc, .g1.g1--ht .g1-row, .g1.g1--ht .g1-tile {
  background: var(--ht-panel) !important; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--ht-line) !important; box-shadow: var(--ht-shadow) !important; border-radius: 22px; color: var(--ht-ink);
}
.g1--ht .g1-ht-panel, .g1--ht .g1-rd-card { padding: 26px clamp(20px, 2.5vw, 30px); margin: 0; min-width: 0; }
.g1--ht .g1-ht-gap { display: flex; flex-direction: column; gap: 21px; min-width: 0; }
.g1--ht .g1-ht-grid2 { display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(0, .9fr); gap: 20px; align-items: start; }
.g1--ht .g1-ht-grid2--sign { grid-template-columns: minmax(0, 1.7fr) minmax(280px, .77fr); }
.g1--ht .g1-ht-headline { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.g1--ht .g1-ht-headline .g1-actions { flex-wrap: wrap; justify-content: flex-end; }
.g1--ht .g1-ht-h2 { font: 780 30px/1.2 var(--g1-font); letter-spacing: -.045em; margin: 0 0 4px; color: var(--ht-ink); }
.g1--ht .g1-ht-h3, .g1--ht .g1-rd-approve > h4 { font: 780 26px/1.2 var(--g1-font); letter-spacing: -.045em; margin: 0 0 8px; color: var(--ht-ink); text-transform: none; }
.g1--ht .g1-ht-note { font-size: 13px; line-height: 1.6; color: var(--ht-muted); margin: 3px 0 0; }
.g1--ht .g1-ht-micro { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ht-muted); font-weight: 750; margin: 0; }
.g1--ht .g1-ht-hint { color: var(--ht-muted); font-size: 11.5px; line-height: 1.5; }
.g1--ht .g1-ht-div { height: 1px; background: var(--ht-line); margin: 19px 0; }
.g1--ht .g1-ht-chip, .g1--ht .g1-ht-status { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 7px; white-space: nowrap; font-size: 11px; font-weight: 700;
  background: color-mix(in srgb, var(--c-ink) 4%, transparent); border: 1px solid color-mix(in srgb, var(--c-ink) 11%, transparent); color: var(--ht-ink); }
.g1--ht .g1-ht-status { padding: 8px 10px; border-radius: 9px; font-weight: 600; color: var(--ht-muted); }
.g1--ht .g1-ht-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; margin-right: 7px; vertical-align: middle; flex: none; background: var(--ht-cyan); }
.g1--ht .g1-ht-dot--ok { background: var(--ht-mint); }
.g1--ht .g1-ht-dot--warn { background: var(--ht-warn); }
.g1--ht .g1-ht-quiet { padding: 15px 17px; border-radius: 10px; font-size: 13px; line-height: 1.65; background: color-mix(in srgb, var(--c-ink) 3%, transparent); color: var(--ht-ink2); margin: 12px 0 0; }
.g1--ht .g1-ht-callout { padding: 15px 16px; border-radius: 10px; font-size: 13px; line-height: 1.65; margin: 0; color: var(--ht-ink);
  background: linear-gradient(180deg, var(--ht-inner), var(--ht-field)); border: 1px solid color-mix(in srgb, var(--c-ink) 14%, transparent); }
.g1--ht .g1-ht-check { display: flex; align-items: center; gap: 0; border-bottom: 1px solid var(--ht-line); padding: 13px 0; margin: 0; font-size: 13px; line-height: 1.5; }
.g1--ht .g1-ht-check:last-of-type { border-bottom: 0; }
.g1--ht .g1-ht-warntext { color: var(--ht-warn); font-weight: 750; }

/* header: breadcrumb, title, the four-section workflow */
.g1--ht .g1-ph-back { color: var(--ht-muted); }
.g1--ht .g1-ph { padding: 14px 18px !important; border-radius: 16px; }
.g1--ht .g1-ph-avatar { background: var(--ht-grad) !important; color: var(--ht-on-accent) !important; border: 0 !important; box-shadow: 0 10px 28px color-mix(in srgb, var(--c-accent) 30%, transparent); font-weight: 800; }
.g1--ht .g1-ph-name { font: 780 26px/1.15 var(--g1-font) !important; letter-spacing: -.04em; color: var(--ht-ink); }
.g1--ht .g1-ph-pill, .g1--ht .g1-chip { background: color-mix(in srgb, var(--c-ink) 4%, transparent) !important; border: 1px solid color-mix(in srgb, var(--c-ink) 11%, transparent) !important; color: var(--ht-ink) !important; }
.g1--ht .g1-chip--danger { color: var(--ht-warn) !important; background: color-mix(in srgb, var(--g1-danger) 8%, transparent) !important; border-color: color-mix(in srgb, var(--g1-danger) 33%, transparent) !important; }
.g1--ht .g1-ph-meta { color: var(--ht-muted); }
.g1--ht .g1-rd-head { display: block; margin: 26px 0 23px; }
.g1--ht .g1-ht-crumb { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; font-weight: 650; color: var(--ht-muted); margin: 0 0 10px; }
.g1--ht .g1-ht-crumb span { margin: 0 9px; color: var(--ht-accent-ink); }
.g1--ht .g1-rd-title { font: 780 clamp(32px, 3.1vw, 46px)/1.1 var(--g1-font) !important; letter-spacing: -.045em; margin: 0 0 22px; color: var(--ht-ink); }
.g1--ht .g1-rd-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 4px; padding: 7px; border-radius: 18px; width: auto;
  background: color-mix(in srgb, var(--c-ink) 3%, transparent); border: 1px solid var(--ht-line); box-shadow: var(--ht-shadow); }
.g1--ht .g1-rd-steps:has(> :nth-child(4)) { grid-template-columns: 1fr 1fr 1.2fr 1.5fr; }
.g1--ht .g1-rd-step { min-height: 56px; display: flex; align-items: center; justify-content: center; gap: 12px; border: 1px solid transparent; border-radius: 14px;
  background: transparent; color: var(--ht-ink2); font: 670 13px var(--g1-font); padding: 12px 10px; white-space: nowrap; transition: background .15s, color .15s; }
.g1--ht .g1-rd-step:hover { background: color-mix(in srgb, var(--c-ink) 4%, transparent); color: var(--ht-accent-ink); }
.g1--ht .g1-rd-step.is-on { background: var(--ht-grad); border-color: color-mix(in srgb, var(--c-ink) 7%, transparent); color: var(--ht-on-accent); box-shadow: 0 12px 26px color-mix(in srgb, var(--c-accent) 30%, transparent); }
.g1--ht .g1-rd-step-n { width: 26px; height: 26px; flex: none; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px;
  background: color-mix(in srgb, var(--c-ink) 5%, transparent); border: 1px solid color-mix(in srgb, var(--c-ink) 11%, transparent); color: var(--ht-accent-ink); }
.g1--ht .g1-rd-step.is-on .g1-rd-step-n { background: color-mix(in srgb, var(--ht-on-accent) 18%, transparent); color: var(--ht-on-accent); border-color: color-mix(in srgb, var(--ht-on-accent) 22%, transparent); }
.g1--ht .g1-rd-step--ref { border-left: 0; margin-left: 0; }

/* controls */
.g1.g1--ht .g1-btn { min-height: 41px; padding: 10px 15px; border-radius: 13px; border: 1px solid color-mix(in srgb, var(--c-ink) 13%, transparent); background: color-mix(in srgb, var(--c-ink) 4%, transparent); color: var(--ht-ink);
  font: 680 12.5px/1.35 var(--g1-font); box-shadow: none; transition: transform .15s, filter .15s, border-color .15s; }
.g1.g1--ht .g1-btn:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.05); border-color: color-mix(in srgb, var(--c-accent) 35%, transparent); }
.g1.g1--ht .g1-btn--primary, .g1.g1--ht .g1-btn-primary { background: var(--ht-grad); border-color: transparent; color: var(--ht-on-accent); box-shadow: 0 12px 28px color-mix(in srgb, var(--c-accent) 30%, transparent); }
.g1.g1--ht .g1-btn:disabled { opacity: .52; cursor: not-allowed; transform: none; }
.g1.g1--ht .g1-ht-tiny { min-height: 34px; padding: 7px 11px; font-size: 11px; }
.g1.g1--ht .g1-input, .g1--ht input[type=text], .g1--ht input[type=number], .g1--ht input[type=date], .g1--ht input[type=search], .g1--ht select, .g1--ht textarea {
  background: var(--ht-field) !important; border: 1px solid color-mix(in srgb, var(--c-ink) 16%, transparent) !important; color: var(--ht-ink) !important; border-radius: 14px !important;
  padding: 12px 13px; font: 13px/1.45 var(--g1-font); box-shadow: none; }
.g1--ht .g1-input:focus, .g1--ht select:focus, .g1--ht textarea:focus, .g1--ht input:focus { border-color: var(--ht-mint) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--g1-ok) 14%, transparent) !important; outline: none; }
.g1--ht textarea { min-height: 98px; resize: vertical; line-height: 1.55; }
.g1--ht textarea::placeholder, .g1--ht input::placeholder { color: var(--ht-soft); }
.g1--ht .g1-label { color: var(--ht-ink2); font-weight: 650; font-size: 12px; letter-spacing: .01em; }
.g1--ht .g1-field { display: flex; flex-direction: column; gap: 8px; margin-top: 19px; }
.g1--ht input[type=checkbox], .g1--ht input[type=radio] { accent-color: var(--c-accent); }
.g1--ht .g1-table th, .g1--ht .g1-ref-table th { color: var(--ht-muted); background: color-mix(in srgb, var(--c-ink) 3%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--c-ink) 11%, transparent); font-size: 10px; letter-spacing: .12em; font-weight: 800; }
.g1--ht .g1-table td, .g1--ht .g1-ref-table td { border-bottom: 1px solid color-mix(in srgb, var(--c-ink) 7%, transparent); }
.g1--ht .g1-warn, .g1--ht .g1-alert { background: color-mix(in srgb, var(--g1-danger) 8%, transparent); border: 1px solid color-mix(in srgb, var(--g1-danger) 33%, transparent); color: var(--g1-danger); border-radius: 12px; }
.g1--ht .g1-ok { color: var(--ht-mint); }
.g1--ht .g1-gate-state--ok { color: var(--ht-mint); }
.g1--ht .g1-gate-state--wait, .g1--ht .g1-gate-state--danger { color: var(--ht-warn); }
.g1--ht details > summary { color: var(--ht-ink); }

/* Clinical review: summary tiles */
.g1--ht .g1-ht-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.g1.g1--ht .g1-ht-tile { position: relative; padding: 22px 23px 20px; overflow: hidden; min-width: 0; }
.g1--ht .g1-ht-tile::after { content: ""; position: absolute; right: 20px; top: 23px; width: 46px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--c-accent), color-mix(in srgb, var(--c-accent) 40%, transparent), transparent); }
.g1.g1--ht .g1-ht-tile:first-child { background: linear-gradient(120deg, color-mix(in srgb, var(--g1-ok) 14%, var(--c-box)), color-mix(in srgb, var(--g1-ok) 14%, var(--c-box))) !important; border-color: var(--ht-line2) !important; }
.g1--ht .g1-ht-tile:first-child .g1-ht-micro { color: var(--ht-ink2); }
.g1--ht .g1-ht-tile:first-child .g1-ht-small { color: var(--ht-ink2); }
.g1--ht .g1-ht-big { font: 400 28px/1.2 Georgia, "Times New Roman", serif; letter-spacing: -.025em; margin: 10px 0 5px; color: var(--ht-ink); font-variant-numeric: tabular-nums; }
.g1--ht .g1-ht-small { color: var(--ht-muted); font-size: 12px; line-height: 1.4; margin: 0; }
.g1--ht .g1-ht-mini { margin: 10px 0 0; padding-left: 18px; font-size: 12px; color: var(--ht-ink2); }

/* verified measurements */
.g1.g1--ht [data-rd="vitals"].g1-ht-panel { background: linear-gradient(160deg, var(--ht-panel), var(--ht-panel2)) !important; }
.g1--ht .g1-ht-vitals { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 11px; margin: 18px 0 0; }
.g1--ht .g1-ht-vital { padding: 18px 15px 16px; border-radius: 12px; border: 1px solid var(--ht-line); background: var(--ht-panel2); min-width: 0; }
.g1--ht .g1-ht-vital .g1-ht-micro { font-size: 9px; letter-spacing: .11em; }
.g1--ht .g1-ht-vnum { font-size: 25px; line-height: 1.1; font-weight: 700; letter-spacing: -.035em; margin: 13px 0 12px; color: var(--ht-ink); font-variant-numeric: tabular-nums; }
.g1--ht .g1-ht-unit { font-size: 12px; font-weight: 500; letter-spacing: 0; color: var(--ht-muted); }
.g1--ht .g1-ht-vstate { display: flex; align-items: center; color: var(--ht-ink); font-size: 10.5px; margin: 0; white-space: nowrap; }
.g1--ht .g1-ht-vmeta { margin: 6px 0 0; font-size: 10.5px; color: var(--ht-soft); }
.g1--ht .g1-ht-vacts { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 11px; }
.g1.g1--ht .g1-ht-vacts .g1-btn { min-height: 30px; padding: 5px 9px; font-size: 10.5px; border-radius: 9px; }
.g1--ht .g1-ht-source { font-size: 12px; color: var(--ht-muted); line-height: 1.7; background: var(--ht-hint); border: 1px solid var(--ht-line); padding: 13px 16px; border-radius: 10px; margin-top: 15px; }
.g1--ht .g1-ht-source p { margin: 0; }
.g1--ht [data-rd="bmi"] { margin: 12px 0 0; }
.g1--ht .g1-rd-reason { margin-top: 14px; }

/* screening findings and the focused assessment */
.g1--ht .g1-ht-finding { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 17px 0; border-bottom: 1px solid var(--ht-line); }
.g1--ht .g1-ht-overline { color: var(--ht-ink); font-size: 13px; font-weight: 700; margin: 0; }
.g1--ht .g1-ht-urgent { color: var(--ht-warn); font-weight: 750; margin-right: 4px; }
.g1--ht .g1-ht-resp { font-size: 13px; color: var(--ht-muted); margin: 5px 0 0; }
.g1--ht .g1-ht-ans { color: var(--g1-wait); }
.g1--ht .g1-ht-by { color: var(--ht-soft); }
.g1--ht .g1-ht-mark { display: inline-flex; align-items: center; font-size: 11px; color: var(--ht-mint); white-space: nowrap; }
.g1--ht .g1-ht-focus { background: linear-gradient(135deg, var(--ht-hint), var(--ht-panel2)); border: 1px solid var(--ht-line); border-left: 3px solid var(--ht-mint); padding: 23px 22px; border-radius: 13px; margin-top: 21px; }
.g1--ht .g1-ht-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.g1--ht .g1-ht-row--end { margin-top: 14px; }
.g1--ht .g1-ht-question { font-size: 17px; line-height: 1.5; font-weight: 590; letter-spacing: -.015em; color: var(--ht-ink); margin: 13px 0 5px; }
.g1--ht .g1-ht-quote { color: var(--ht-mint); font-weight: 650; font-size: 12px; margin: 1px 0 0; }
.g1.g1--ht .g1-rd-urgent { border-left: 1px solid var(--ht-line) !important; }

/* patient context and what remains */
.g1--ht .g1-ht-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.g1--ht .g1-ht-tag { padding: 7px 10px; background: var(--ht-hint); border: 1px solid var(--ht-line); color: var(--ht-ink); border-radius: 7px; font-size: 11px; font-weight: 550; }
.g1--ht .g1-rd-rail { position: static; }
.g1--ht .g1-rd-next { gap: 0; margin: 14px 0 6px; }
.g1--ht .g1-rd-next li { background: none; box-shadow: none; border-radius: 0; padding: 13px 0; border-bottom: 1px solid var(--ht-line); }
.g1--ht .g1-rd-next li:last-child { border-bottom: 0; }
.g1--ht .g1-rd-next .g1-dot { background: var(--ht-warn); box-shadow: none; width: 7px; height: 7px; }
.g1--ht .g1-rd-next .g1-dot--muted { background: var(--ht-cyan); }
.g1--ht .g1-rd-next-go { color: var(--ht-ink); font-size: 13px; }
.g1--ht .g1-rd-next-n { color: var(--ht-muted); }
.g1--ht .g1-rd-go { width: 100%; margin-top: 12px; }
.g1--ht .g1-todo li { border-top-color: var(--ht-line); color: var(--ht-ink); }
.g1--ht .g1-todo li::before { border-color: var(--ht-warn); }
.g1--ht .g1-rd-count { color: var(--ht-ink); }
.g1--ht .g1-rd-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 4px 0 10px; min-height: 48px; padding-top: 10px; }

/* Decide: the existing decision form sits inside the panel (no second card frame) */
.g1.g1--ht .g1-ht-decide .g1-rd-decide { background: none !important; border: 0 !important; box-shadow: none !important; padding: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
.g1--ht .g1-ht-decide .g1-rd-decide > h4, .g1--ht .g1-ht-decide .g1-rd-decide > .g1-sub:first-of-type { display: none; }
.g1--ht .g1-rd-block { border-top: 1px solid var(--ht-line); padding-top: 18px; margin-top: 18px; }
.g1--ht .g1-rd-block h5 { font-size: 12px; letter-spacing: .04em; color: var(--ht-accent-ink); font-weight: 750; margin: 0 0 4px; }

/* Review & sign: the note as a paper document, the approval beside it */
.g1--ht .g1-rd--sign .g1-note { padding: 26px clamp(20px, 2.5vw, 30px); }
.g1--ht .g1-note-doc { background: var(--c-box); color: var(--ht-ink); border: 1px solid color-mix(in srgb, var(--g1-wait) 45%, transparent); border-radius: 12px; padding: 43px clamp(24px, 4.4vw, 60px); box-shadow: 0 7px 23px rgba(0, 0, 0, .05); line-height: 1.7; gap: 0; }
.g1--ht .g1-note-doc .g1-note-sec { border-top: 0; padding: 0; }
.g1--ht .g1-note-doc .g1-note-sec-head h5, .g1--ht .g1-note-doc .g1-note-sec > h5 { font: 750 11px var(--g1-font); text-transform: uppercase; letter-spacing: .14em; color: var(--ht-accent-ink);
  border-bottom: 1px solid var(--ht-line); padding-bottom: 10px; margin: 29px 0 10px; width: 100%; }
.g1--ht .g1-note-doc .g1-note-sec:first-child .g1-note-sec-head h5 { margin-top: 0; }
.g1--ht .g1-note-doc .g1-note-text, .g1--ht .g1-note-doc .g1-note-line { font-size: 14px; line-height: 1.85; color: var(--ht-ink2); }
.g1--ht .g1-note-doc .g1-note-gap { color: var(--g1-wait); font-weight: 700; font-style: normal; border: 0; border-bottom: 1px dashed currentColor; background: none; }
.g1--ht .g1-note-doc .g1-btn { background: var(--g1-wait); color: var(--ht-ink); border-color: color-mix(in srgb, var(--g1-wait) 45%, transparent); }
.g1--ht .g1-note-doc .g1-note-sec--edited { border-left: 3px solid var(--ht-accent-ink); padding-left: 14px; }
.g1--ht .g1-note-doc textarea, .g1--ht .g1-note-doc .g1-note-edit { background: var(--c-box) !important; color: var(--ht-ink) !important; border-color: var(--ht-line) !important; font: 14px/1.85 Georgia, serif !important; }
.g1--ht .g1-note-doc .g1-src { background: var(--g1-wait); color: var(--ht-ink2); }

/* Strive reference & pricing */
.g1--ht .g1-ref-head { padding: 26px clamp(20px, 2.5vw, 30px) !important; }
.g1--ht .g1-ref-title { font: 780 30px/1.2 var(--g1-font) !important; letter-spacing: -.045em; color: var(--ht-ink); }
.g1--ht .g1-ref-kicker { color: var(--ht-accent-ink); letter-spacing: .22em; }
.g1--ht .g1-ref-quiet { padding: 15px 17px; border-radius: 10px; font-size: 13px; line-height: 1.65; background: color-mix(in srgb, var(--c-ink) 3%, transparent); color: var(--ht-ink2); margin: 0; }
.g1--ht .g1-ref-tabs, .g1--ht .g1-ref-switch { display: flex; gap: 7px; flex-wrap: wrap; background: none; box-shadow: none; padding: 0; }
.g1--ht .g1-ref-tab, .g1--ht .g1-ref-seg { border: 1px solid color-mix(in srgb, var(--c-ink) 11%, transparent); background: color-mix(in srgb, var(--c-ink) 4%, transparent); color: var(--ht-ink); padding: 11px 16px; border-radius: 9px; font: 680 12px var(--g1-font); cursor: pointer; }
.g1--ht .g1-ref-tab.is-on, .g1--ht .g1-ref-seg.is-on { background: linear-gradient(180deg, var(--ht-sel), var(--ht-inner)); border-color: color-mix(in srgb, var(--c-accent) 22%, transparent); color: var(--ht-accent-ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c-accent) 6%, transparent); }
.g1--ht .g1-ref-seg-s { color: var(--ht-muted); }
.g1--ht .g1-ref-status { color: var(--ht-muted); }
.g1--ht .g1-ref-kpi, .g1--ht .g1-ref-kpis > div { background: var(--ht-hint) !important; border: 1px solid var(--ht-line) !important; border-radius: 12px; }
.g1--ht .g1-ref-tag, .g1--ht .g1-ref-count { background: color-mix(in srgb, var(--c-ink) 4%, transparent); border: 1px solid color-mix(in srgb, var(--c-ink) 11%, transparent); color: var(--ht-ink); }
.g1--ht .g1-ref-table tbody tr:hover td { background: color-mix(in srgb, var(--c-accent) 5%, transparent); }

/* the review area itself narrows beside the EKM OS sidebar: follow its own width, never clip */
@container ght (max-width: 1180px) {
  .g1--ht .g1-ht-vitals { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g1--ht .g1-rd-steps:has(> :nth-child(4)) { grid-template-columns: 1fr 1fr 1fr 1.5fr; }
  .g1--ht .g1-rd-step { font-size: 12px; }
}
@container ght (max-width: 980px) {
  .g1--ht .g1-ht-grid2, .g1--ht .g1-ht-grid2--sign { grid-template-columns: minmax(0, 1fr); }
  .g1--ht .g1-ht-vitals { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@container ght (max-width: 700px) {
  .g1--ht .g1-ht-summary, .g1--ht .g1-ht-vitals { grid-template-columns: 1fr 1fr; }
  .g1--ht .g1-rd-steps:has(> :nth-child(4)) { grid-template-columns: 1fr 1fr; }
  .g1--ht .g1-rd-step { justify-content: flex-start; white-space: normal; }
  .g1--ht .g1-ht-headline, .g1--ht .g1-rd-foot { flex-wrap: wrap; }
}
/* the steps own their layout (no outer main + side grid) */
.g1.g1--ht .g1-rd--ht { display: block; max-width: none; }
.g1--ht .g1-rd-wide { max-width: none; }
/* laboratory summary */
.g1--ht .g1-ht-tablebox { border: 1px solid var(--ht-line); border-radius: 11px; overflow-x: auto; margin-top: 4px; }
.g1--ht .g1-ht-labs { width: 100%; border-collapse: collapse; font-size: 13px; }
.g1--ht .g1-ht-labs th, .g1--ht .g1-ht-labs td { padding: 13px 14px; text-align: left; vertical-align: top; }
.g1--ht .g1-ht-labs tbody tr:last-child td { border-bottom: 0; }
.g1--ht .g1-ht-sub { display: block; font-size: 11px; color: var(--ht-muted); margin-top: 2px; }
.g1--ht .g1-ht-labact { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--ht-line); }
/* calculator inputs: the unit sits inside the one field */
.g1--ht .g1-ref-in { background: var(--ht-field); border: 1px solid color-mix(in srgb, var(--c-ink) 16%, transparent); border-radius: 14px; }
.g1--ht .g1-ref-in input { border: 0 !important; background: transparent !important; box-shadow: none !important; }
/* Clinical review: the two views, labs and trends (approved labs design) */
.g1--ht .g1-ht-summary4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g1.g1--ht .g1-ht-summary4 .g1-ht-tile { padding: 19px 19px 17px; }
.g1--ht .g1-ht-summary4 .g1-ht-big { font: 770 clamp(21px, 2vw, 29px)/1.2 var(--g1-font); letter-spacing: -.045em; color: var(--ht-accent-ink); }
.g1.g1--ht .g1-ht-summary4 .g1-ht-tile:first-child { background: linear-gradient(150deg, var(--ht-raise), var(--ht-inner)) !important; border-color: color-mix(in srgb, var(--c-accent) 23%, transparent) !important; }
.g1--ht .g1-ht-summary4 .g1-ht-tile:first-child .g1-ht-micro { color: var(--ht-accent-ink); }
.g1--ht .g1-ht-summary4 .g1-ht-tile:first-child .g1-ht-small { color: var(--ht-ink2); }
.g1--ht .g1-ht-subnav { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 16px 15px 21px; border: 1px solid color-mix(in srgb, var(--c-ink) 14%, transparent); border-radius: 16px; background: color-mix(in srgb, var(--c-ink) 3%, transparent); }
.g1--ht .g1-ht-subnav > div:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.g1--ht .g1-ht-subnav strong { font-size: 14px; line-height: 1.4; color: var(--ht-accent-ink); }
.g1--ht .g1-ht-kicker { color: var(--ht-accent-ink); font-size: 10px; letter-spacing: .12em; font-weight: 760; }
.g1--ht .g1-ht-subbtns { display: flex; gap: 5px; background: color-mix(in srgb, var(--c-accent) 42%, transparent); border: 1px solid var(--ht-line); padding: 5px; border-radius: 12px; flex-wrap: wrap; }
.g1--ht .g1-ht-subbtn { border: 1px solid transparent; background: transparent; border-radius: 9px; padding: 10px 13px; font: 680 12px var(--g1-font); color: var(--ht-muted); white-space: nowrap; cursor: pointer; }
.g1--ht .g1-ht-subbtn.is-on { background: color-mix(in srgb, var(--c-accent) 20%, transparent); border-color: color-mix(in srgb, var(--c-ink) 25%, transparent); color: var(--ht-accent-ink); box-shadow: 0 7px 15px rgba(0, 0, 0, .13); }
.g1--ht .g1-ht-subcount { display: inline-flex; min-width: 19px; height: 19px; align-items: center; justify-content: center; margin-left: 5px; border-radius: 6px; background: color-mix(in srgb, var(--c-accent) 15%, transparent); color: var(--ht-accent-ink); font-size: 10px; }
.g1--ht .g1-ht-acc { color: var(--ht-accent-ink); }
.g1.g1--ht .g1-ht-peek { background: linear-gradient(114deg, var(--ht-inner), var(--ht-inner)) !important; }
.g1--ht .g1-ht-peekgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.g1--ht .g1-ht-peektest { border: 1px solid color-mix(in srgb, var(--c-ink) 14%, transparent); background: color-mix(in srgb, var(--c-accent) 35%, transparent); border-radius: 14px; padding: 16px 17px; min-width: 0; }
.g1--ht .g1-ht-peektest strong { display: block; font-size: 19px; color: var(--ht-accent-ink); font-weight: 750; margin: 7px 0; letter-spacing: -.03em; }
.g1--ht .g1-ht-grid2--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g1--ht .g1-ht-railrow .g1-rd-approve { margin-top: 0; }
.g1--ht .g1-ht-trends { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.g1--ht .g1-ht-trend { padding: 16px; border: 1px solid color-mix(in srgb, var(--c-ink) 12%, transparent); background: color-mix(in srgb, var(--c-accent) 28%, transparent); border-radius: 14px; min-width: 0; }
.g1--ht .g1-ht-trendv { font-size: 25px; font-weight: 750; letter-spacing: -.035em; color: var(--ht-accent-ink); margin: 7px 0 0; }
.g1--ht .g1-ht-trendv small { font-size: 10px; font-weight: 550; color: var(--ht-muted); }
.g1--ht .g1-ht-spark { display: block; width: 100%; height: 54px; margin: 12px 0 4px; color: var(--ht-muted); }
.g1--ht .g1-ht-track { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid color-mix(in srgb, var(--c-ink) 10%, transparent); }
.g1--ht .g1-ht-track > div { min-width: 0; flex: 1; }
.g1--ht .g1-ht-track strong { display: block; color: var(--ht-accent-ink); font-weight: 700; font-size: 12px; }
.g1--ht .g1-ht-track small { display: block; color: var(--ht-muted); font-size: 11px; margin-top: 4px; }
.g1--ht .g1-ht-ticon { width: 30px; height: 30px; min-width: 30px; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--c-accent) 10%, transparent); color: var(--ht-accent-ink); border: 1px solid color-mix(in srgb, var(--c-ink) 18%, transparent); border-radius: 10px; font-weight: 800; }
.g1--ht .g1-ht-ticon--available { color: var(--g1-ok); background: color-mix(in srgb, var(--g1-ok) 9%, transparent); border-color: color-mix(in srgb, var(--g1-ok) 34%, transparent); }
.g1--ht .g1-ht-ticon--review { color: var(--g1-wait); background: color-mix(in srgb, var(--g1-wait) 9%, transparent); border-color: color-mix(in srgb, var(--g1-wait) 35%, transparent); }
.g1--ht .g1-ht-tstate { font-size: 11px; color: var(--ht-ink); white-space: nowrap; }
/* Decide: the lab choices as option tiles */
.g1--ht [data-rd="labs-decide"] .g1-check { display: flex; align-items: center; gap: 9px; padding: 13px 14px; margin: 0 0 8px; border: 1px solid var(--ht-line); border-radius: 12px; background: var(--ht-panel2); }
.g1--ht [data-rd="labs-decide"] .g1-check:has(input:checked) { background: color-mix(in srgb, var(--g1-ok) 10%, transparent); border-color: color-mix(in srgb, var(--g1-ok) 50%, transparent); }
@container ght (max-width: 1180px) { .g1--ht .g1-ht-summary4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g1--ht .g1-ht-trends, .g1--ht .g1-ht-peekgrid { grid-template-columns: 1fr; } }
@container ght (max-width: 980px) { .g1--ht .g1-ht-grid2--even { grid-template-columns: 1fr; } }
.g1--ht .g1-note-doc .g1-note-sec-head { border-bottom: 1px solid var(--ht-line); padding-bottom: 8px; margin: 29px 0 10px; align-items: center; }
.g1--ht .g1-note-doc .g1-note-sec:first-child .g1-note-sec-head { margin-top: 0; }
.g1--ht .g1-note-doc .g1-note-sec-head h5 { border: 0; padding: 0; margin: 0 auto 0 0 !important; width: auto; }
/* Screening review by clinical category (20270905174312): one finding open at a time, dispositions as one segmented choice */
.g1--ht .g1-ht-cat { margin-top: 18px; border: 1px solid var(--ht-line); border-radius: 14px; background: color-mix(in srgb, var(--c-ink) 2%, transparent); overflow: hidden; }
.g1--ht .g1-ht-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: color-mix(in srgb, var(--c-ink) 3%, transparent); border-bottom: 1px solid var(--ht-line); }
.g1--ht .g1-ht-cat-t { font: 720 13px var(--g1-font); letter-spacing: .02em; margin: 0; color: var(--ht-accent-ink); }
.g1--ht .g1-ht-cat-n { display: inline-flex; align-items: center; font-size: 11px; color: var(--ht-muted); white-space: nowrap; }
.g1--ht .g1-ht-frow { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 16px; border-top: 1px solid color-mix(in srgb, var(--c-ink) 7%, transparent); }
.g1--ht .g1-ht-cat-head + .g1-ht-frow { border-top: 0; }
.g1--ht .g1-ht-frow.is-open { background: color-mix(in srgb, var(--c-accent) 5%, transparent); }
.g1--ht .g1-ht-fmain { min-width: 0; }
.g1--ht .g1-ht-fmain .g1-ht-overline { font-weight: 650; }
.g1--ht .g1-ht-fmain .g1-ht-resp { margin-top: 3px; }
.g1--ht .g1-ht-fstate { display: flex; align-items: center; flex-wrap: wrap; gap: 0; margin: 5px 0 0; font-size: 11.5px; color: var(--ht-ink); }
.g1--ht .g1-ht-fact { flex: none; }
.g1--ht .g1-ht-cat .g1-ht-focus { margin: 0; border-radius: 0; border-left-width: 3px; border-right: 0; border-bottom: 0; }
.g1--ht .g1-ht-ask { font-size: 13px; line-height: 1.55; margin: 0 0 6px; color: var(--ht-ink); }
.g1--ht .g1-ht-label { font-size: 11.5px; line-height: 1.55; margin: 0 0 14px; color: var(--ht-ink2); padding: 9px 11px; border-radius: 9px; background: var(--ht-field); border: 1px solid color-mix(in srgb, var(--c-ink) 13%, transparent); }
.g1--ht .g1-ht-disp { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }
.g1--ht .g1-ht-dopt { border: 1px solid color-mix(in srgb, var(--c-ink) 16%, transparent); background: color-mix(in srgb, var(--c-ink) 4%, transparent); color: var(--ht-accent-ink); border-radius: 10px; padding: 9px 12px; font: 650 12px var(--g1-font); cursor: pointer; }
.g1--ht .g1-ht-dopt:hover { border-color: color-mix(in srgb, var(--c-accent) 40%, transparent); }
.g1--ht .g1-ht-dopt.is-on { background: var(--ht-grad); border-color: transparent; color: var(--ht-on-accent); box-shadow: 0 8px 18px color-mix(in srgb, var(--c-accent) 28%, transparent); }
.g1--ht .g1-ht-dopt--stop { color: var(--g1-danger); border-color: color-mix(in srgb, var(--g1-danger) 50%, transparent); }
.g1--ht .g1-ht-dopt--stop.is-on { background: var(--g1-danger); color: var(--c-box, #fff); }
.g1--ht .g1-ht-fix { border-left-color: var(--ht-warn) !important; }
/* medications: the chart list and the patient's own report, kept apart */
.g1--ht .g1-ht-medsrc { font-size: 11px; color: var(--ht-muted); margin: 10px 0 0; }
.g1--ht .g1-ht-tag--reported { border-color: color-mix(in srgb, var(--g1-wait) 50%, transparent); color: var(--g1-wait); background: color-mix(in srgb, var(--g1-danger) 7%, transparent); }
/* EKM program contraindications (anorexia / bulimia nervosa) inside "Eating and weight" */
.g1--ht .g1-ht-pc { border-top: 1px solid color-mix(in srgb, var(--g1-danger) 37%, transparent); background: color-mix(in srgb, var(--g1-danger) 5%, transparent); }
.g1--ht .g1-ht-pc-head { padding: 12px 16px 4px; }
.g1--ht .g1-ht-pc-head .g1-ht-micro { color: var(--g1-danger); }
.g1--ht .g1-ht-pc-head .g1-ht-hint { margin: 4px 0 0; }
.g1--ht .g1-ht-pc .g1-ht-fact { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* ---- Smart Clinical Review (owner 2026-11-20; the approved EKM_GLP1_Smart_Review_Documentation_Interactive design) ---- */
.g1--ht .g1-sm { --sm-panel: linear-gradient(154deg, var(--ht-panel2), color-mix(in srgb, var(--ht-panel2) 70%, var(--ht-page))); --sm-line: var(--ht-line); --sm-line2: color-mix(in srgb, var(--ht-accent) 34%, transparent);
  --sm-cyan: var(--ht-accent-ink); --sm-mint: var(--g1-ok); --sm-amber: var(--g1-wait); --sm-red: var(--g1-danger); --sm-muted: var(--ht-muted); display: flex; flex-direction: column; gap: 16px; font-size: 13px; }
.g1--ht .g1-sm-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.g1--ht .g1-sm-eyebrow { color: var(--ht-accent-ink); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; font-weight: 800; margin: 0; }
.g1--ht .g1-sm-h1 { font-size: 30px; line-height: 1.14; letter-spacing: -.045em; margin: 7px 0; font-weight: 810; color: var(--ht-ink); }
.g1--ht .g1-sm-h2 { font-size: 17px; letter-spacing: -.025em; margin: 0 0 4px; color: var(--ht-ink); font-weight: 760; }
.g1--ht .g1-sm-save { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; color: var(--ht-muted); padding: 7px 11px; border-radius: 9px; border: 1px solid var(--ht-line2); background: var(--ht-inner); }
.g1--ht .g1-sm-save--err { color: var(--g1-danger); border-color: color-mix(in srgb, var(--g1-danger) 45%, transparent); background: color-mix(in srgb, var(--g1-danger) 14%, var(--c-box)); }
.g1--ht .g1-sm-save--off { color: var(--g1-danger); }
.g1--ht .g1-sm-status { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-radius: 14px; background: linear-gradient(100deg, var(--ht-sel), var(--ht-inner)); border: 1px solid var(--ht-line2); }
.g1--ht .g1-sm-sitem { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--ht-ink2); }
.g1--ht .g1-sm-sitem b { color: var(--ht-ink); font-weight: 750; }
.g1--ht .g1-sm-sep { width: 1px; height: 21px; background: var(--ht-raise); }
.g1--ht .g1-sm-spacer { flex: 1; }
.g1--ht .g1-sm-visit { font-size: 10.5px; font-weight: 750; padding: 7px 10px; border-radius: 9px; border: 1px solid var(--ht-sel-line); background: var(--ht-sel); color: var(--ht-accent-ink); }
.g1--ht .g1-sm-vitals { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.g1--ht .g1-sm-vital { padding: 12px 13px; background: var(--ht-inner); border: 1px solid var(--sm-line); border-radius: 13px; min-width: 0; }
.g1--ht .g1-sm-vital span { display: block; font-size: 10px; color: var(--ht-muted); letter-spacing: .04em; }
.g1--ht .g1-sm-vital strong { display: block; font-size: 17px; letter-spacing: -.035em; margin: 3px 0; color: var(--ht-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g1--ht .g1-sm-vital small { font-size: 10px; color: var(--ht-muted); }
.g1--ht .g1-sm-vital.is-warn small { color: var(--sm-amber); }
.g1--ht .g1-sm-nav { display: flex; gap: 5px; padding: 5px; border-radius: 14px; background: var(--ht-inner); border: 1px solid var(--sm-line); overflow-x: auto; }
.g1--ht .g1-sm-nav button { flex: 1; min-width: max-content; border: 1px solid transparent; background: transparent; color: var(--ht-muted); font: 760 12px/1.2 var(--g1-font); padding: 12px 11px; border-radius: 10px; cursor: pointer; }
.g1--ht .g1-sm-nav button.is-on { background: var(--ht-grad); color: var(--ht-on-accent); border-color: var(--ht-sel-line); box-shadow: 0 7px 23px color-mix(in srgb, var(--c-accent) 25%, transparent); }
.g1--ht .g1-sm-work { display: grid; grid-template-columns: minmax(0, 1.11fr) minmax(360px, .89fr); gap: 19px; align-items: start; }
.g1--ht .g1-sm-left { min-width: 0; display: flex; flex-direction: column; gap: 15px; }
.g1--ht .g1-sm-cardtop { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.g1--ht .g1-sm-tag { border: 1px solid var(--ht-line2); background: var(--ht-sel); color: var(--ht-ink2); border-radius: 8px; padding: 5px 9px; font-size: 10px; font-weight: 740; white-space: nowrap; }
.g1--ht .g1-sm-tag--mint { color: var(--g1-ok); border-color: var(--ht-line2); background: var(--ht-inner); }
.g1--ht .g1-sm-tag--cyan { color: var(--ht-accent-ink); border-color: var(--ht-line2); background: var(--ht-inner); }
.g1--ht .g1-sm-srcgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-top: 16px; }
.g1--ht .g1-sm-src { min-width: 0; padding: 12px; background: var(--ht-inner); border-radius: 11px; border: 1px solid var(--ht-line2); }
.g1--ht .g1-sm-src span { font-size: 10px; color: var(--ht-muted); display: block; }
.g1--ht .g1-sm-src strong { font-size: 12.5px; display: block; margin: 4px 0 3px; line-height: 1.3; color: var(--ht-accent-ink); overflow-wrap: anywhere; }
.g1--ht .g1-sm-src small { font-size: 10px; color: var(--ht-accent-ink); }
.g1--ht .g1-sm-banner { margin: 11px 0 0; color: var(--ht-ink2); font-size: 11px; background: var(--ht-inner); border: 1px solid var(--ht-line2); border-radius: 10px; padding: 10px 12px; }
.g1--ht .g1-sm-link { border: 0; background: none; color: var(--ht-accent-ink); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }
.g1--ht .g1-sm-qnav { display: flex; gap: 7px; overflow-x: auto; padding: 1px 0 13px; margin-top: 15px; scrollbar-width: thin; }
.g1--ht .g1-sm-qtab { display: flex; align-items: center; gap: 8px; flex-shrink: 0; border: 1px solid var(--ht-line2); background: var(--ht-inner); color: var(--ht-ink2); padding: 9px 11px; border-radius: 10px; font: 740 11px/1.2 var(--g1-font); cursor: pointer; }
.g1--ht .g1-sm-qtab.is-on { background: var(--ht-sel); border-color: var(--ht-sel-line); color: var(--ht-ink); }
.g1--ht .g1-sm-qtab.is-done:not(.is-on) { border-color: color-mix(in srgb, var(--g1-ok) 45%, transparent); color: var(--g1-ok); }
.g1--ht .g1-sm-qtab.is-urgent:not(.is-on) { border-color: color-mix(in srgb, var(--g1-danger) 45%, transparent); color: var(--g1-danger); }
.g1--ht .g1-sm-qnum { display: grid; place-items: center; width: 18px; height: 18px; font-size: 9px; border: 1px solid var(--ht-line2); border-radius: 6px; color: var(--ht-accent-ink); }
.g1--ht .g1-sm-stephead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 2px 0 0; }
.g1--ht .g1-sm-micro { font-size: 9.5px; color: var(--ht-muted); text-transform: uppercase; letter-spacing: .12em; font-weight: 820; margin: 0; }
.g1--ht .g1-sm-steptitle { font-size: 18px; font-weight: 780; line-height: 1.3; letter-spacing: -.02em; margin: 4px 0 0; color: var(--ht-ink); }
.g1--ht .g1-sm-mini { font-size: 10.5px; color: var(--ht-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.g1--ht .g1-sm-bar { height: 4px; background: var(--ht-raise); overflow: hidden; border-radius: 9px; margin: 11px 0 16px; }
.g1--ht .g1-sm-bar span { display: block; height: 100%; background: var(--ht-grad); transition: width .25s; }
.g1--ht .g1-sm-evidence { padding: 13px; background: linear-gradient(100deg, var(--ht-inner), var(--ht-inner)); border: 1px solid var(--ht-line2); border-radius: 12px; margin: 0 0 16px; }
.g1--ht .g1-sm-evhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.g1--ht .g1-sm-evhead strong { font-size: 10px; color: var(--ht-accent-ink); text-transform: uppercase; letter-spacing: .11em; }
.g1--ht .g1-sm-evhead small { font-size: 10px; color: var(--ht-muted); }
.g1--ht .g1-sm-fact { display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; border-bottom: 1px solid color-mix(in srgb, var(--c-ink) 7%, transparent); font-size: 12px; color: var(--ht-ink); }
.g1--ht .g1-sm-fact:last-child { border-bottom: 0; }
.g1--ht .g1-sm-flab { flex: 0 0 180px; color: var(--ht-muted); font-size: 11px; display: inline-flex; align-items: center; gap: 6px; }
.g1--ht .g1-sm-fval { min-width: 0; }
.g1--ht .g1-sm-fval strong { font-weight: 640; line-height: 1.45; display: block; color: var(--ht-accent-ink); overflow-wrap: anywhere; }
.g1--ht .g1-sm-fsrc { display: block; font-size: 10px; color: var(--ht-accent-ink); margin-top: 1px; }
.g1--ht .g1-sm-clin { font-size: 12px; color: var(--ht-ink); font-weight: 780; margin: 15px 0 8px; }
.g1--ht .g1-sm-choices { display: flex; flex-wrap: wrap; gap: 7px; }
.g1--ht .g1-sm-choice { border: 1px solid var(--ht-line2); border-radius: 11px; background: var(--ht-inner); color: var(--ht-ink2); padding: 10px 13px; font: 740 12px/1.3 var(--g1-font); min-height: 42px; text-align: left; cursor: pointer; }
.g1--ht .g1-sm-choice:hover { border-color: var(--ht-line2); }
.g1--ht .g1-sm-choice.is-on { border-color: var(--ht-sel-line); color: var(--ht-on-accent); background: var(--ht-grad); box-shadow: 0 6px 21px color-mix(in srgb, var(--c-accent) 21%, transparent); }
.g1--ht .g1-sm-choice.is-on.g1-sm-choice--danger { border-color: color-mix(in srgb, var(--g1-danger) 45%, transparent); background: color-mix(in srgb, var(--g1-danger) 14%, var(--c-box)); }
.g1--ht .g1-sm-choice.is-on.g1-sm-choice--warn { border-color: color-mix(in srgb, var(--g1-wait) 45%, transparent); background: color-mix(in srgb, var(--g1-wait) 14%, var(--c-box)); }
.g1--ht .g1-sm-choice--mini { padding: 8px 11px; font-size: 11px; min-height: 36px; }
.g1--ht .g1-sm-help { font-size: 11px; color: var(--ht-muted); margin: 8px 0 0; }
.g1--ht .g1-sm-notice { padding: 11px 13px; border: 1px solid var(--ht-line2); background: var(--ht-inner); border-radius: 11px; color: var(--ht-ink2); font-size: 12px; margin: 12px 0 0; }
.g1--ht .g1-sm-notice.is-warn { border-color: color-mix(in srgb, var(--g1-danger) 45%, transparent); background: color-mix(in srgb, var(--g1-danger) 14%, var(--c-box)); color: var(--g1-danger); }
.g1--ht .g1-sm-notice.is-good { border-color: color-mix(in srgb, var(--g1-ok) 45%, transparent); background: var(--ht-inner); color: var(--g1-ok); }
.g1--ht .g1-sm-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.g1--ht .g1-sm-inner { background: var(--ht-inner); border: 1px solid var(--ht-line2); border-radius: 12px; padding: 14px; min-width: 0; }
.g1--ht .g1-sm-inner h3 { font-size: 12.5px; margin: 0 0 8px; color: var(--ht-ink); }
.g1--ht .g1-sm-check { display: flex; gap: 9px; align-items: flex-start; background: var(--ht-inner); border: 1px solid var(--ht-line2); padding: 10px 11px; border-radius: 10px; margin-top: 7px; color: var(--ht-ink); font-size: 12px; cursor: pointer; }
.g1--ht .g1-sm-check input { accent-color: var(--c-accent); margin-top: 2px; width: 16px; height: 16px; }
.g1--ht .g1-sm-findings { display: flex; flex-direction: column; border: 1px solid var(--ht-line2); border-radius: 12px; overflow: hidden; margin-top: 4px; }
.g1--ht .g1-sm-foot { justify-content: space-between; gap: 9px; flex-wrap: wrap; border-top: 1px solid var(--sm-line); margin-top: 19px; padding-top: 16px; display: flex; align-items: center; }
.g1--ht .g1-sm-meta { font-size: 11px; color: var(--ht-muted); display: inline-flex; align-items: center; gap: 6px; }
/* the decision fields: in the page for every question (typing, the live note and Approve keep working); only this question's are shown */
.g1--ht .g1-sm-dec [data-wiz] { display: none; }
.g1--ht .g1-sm-dec[data-show~="1"] [data-wiz="1"], .g1--ht .g1-sm-dec[data-show~="2"] [data-wiz="2"], .g1--ht .g1-sm-dec[data-show~="3"] [data-wiz="3"],
.g1--ht .g1-sm-dec[data-show~="4"] [data-wiz="4"], .g1--ht .g1-sm-dec[data-show~="5"] [data-wiz="5"], .g1--ht .g1-sm-dec[data-show~="6"] [data-wiz="6"] { display: block; }
.g1--ht .g1-sm-dec[data-show~="4"] [data-wiz="4"].g1-rd-two { display: grid; }
.g1--ht .g1-sm-dec .g1-rd-decide { background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; margin: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
.g1--ht .g1-sm-dec .g1-rd-decide > h4, .g1--ht .g1-sm-dec .g1-rd-decide > .g1-sub:first-of-type { display: none; }
.g1--ht .g1-sm-dec[data-show=""] { display: none; }
/* the indication is chosen with the buttons above; its list box stays in the page for the form */
.g1--ht .g1-sm-qcard[data-q="indication"] [data-rd="target"] > .g1-field:first-of-type { display: none; }
.g1--ht .g1-sm-qcard[data-q="exam"] [data-rd="exam"] .g1-grid > .g1-field:first-child { display: none; }
.g1--ht .g1-sm-qcard[data-q="plan"] [data-rd="medication"] > .g1-field:first-of-type { display: none; }
/* the live note */
.g1--ht .g1-sm-note { position: sticky; top: 12px; background: var(--sm-panel); border: 1px solid var(--sm-line); border-radius: 17px; box-shadow: 0 16px 52px rgba(0, 0, 0, .23); overflow: hidden; min-width: 0; }
.g1--ht .g1-sm-notehead { padding: 18px 21px; border-bottom: 1px solid var(--sm-line2); background: linear-gradient(115deg, var(--ht-sel), var(--ht-inner)); }
.g1--ht .g1-sm-notectl { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 13px; }
.g1--ht .g1-sm-minis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin-top: 13px; }
.g1--ht .g1-sm-minibox { border: 1px solid var(--ht-line2); background: var(--ht-inner); border-radius: 9px; padding: 9px 10px; min-width: 0; }
.g1--ht .g1-sm-minibox span { display: block; color: var(--ht-muted); text-transform: uppercase; font-size: 9px; letter-spacing: .04em; }
.g1--ht .g1-sm-minibox b { font-size: 11.5px; color: var(--ht-accent-ink); display: block; margin-top: 3px; line-height: 1.3; }
.g1--ht .g1-sm-doc { max-height: calc(100vh - 290px); min-height: 420px; overflow: auto; background: linear-gradient(170deg, var(--ht-inner), var(--ht-field)); }
.g1--ht .g1-sm-doc .g1-note { background: none !important; border: 0 !important; box-shadow: none !important; border-radius: 0; margin: 0; }
.g1--ht .g1-sm-notefoot { border-top: 1px solid var(--sm-line); padding: 11px 18px; color: var(--ht-muted); font-size: 10.5px; background: var(--ht-inner); margin: 0; }
/* the sources drawer */
.g1--ht .g1-sm-drawer { position: fixed; inset: 0; z-index: 60; }
.g1--ht .g1-sm-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .42); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.g1--ht .g1-sm-drawer-panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(640px, 100vw); background: var(--ht-inner); border-left: 1px solid var(--ht-line2); padding: 24px; overflow-y: auto; box-shadow: -30px 0 65px #0007; color: var(--ht-ink); }
.g1--ht .g1-sm-sgroup { color: var(--ht-accent-ink); font-size: 10px; text-transform: uppercase; letter-spacing: .13em; margin: 20px 0 8px; font-weight: 830; }
.g1--ht .g1-sm-srow { padding: 10px 0; border-bottom: 1px solid var(--ht-line2); }
.g1--ht .g1-sm-srow strong { font-size: 11.5px; display: block; color: var(--ht-ink); }
.g1--ht .g1-sm-srow span { font-size: 12.5px; color: var(--ht-accent-ink); display: block; margin: 3px 0; }
.g1--ht .g1-sm-srow small { font-size: 10.5px; color: var(--ht-muted); }
@container ght (max-width: 1240px) {
  .g1--ht .g1-sm-srcgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g1--ht .g1-sm-flab { flex-basis: 140px; }
}
@container ght (max-width: 980px) {
  .g1--ht .g1-sm-work { grid-template-columns: minmax(0, 1fr); }
  .g1--ht .g1-sm-note { position: static; }
  .g1--ht .g1-sm-doc { max-height: 760px; }
  .g1--ht .g1-sm-vitals { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@container ght (max-width: 720px) {
  .g1--ht .g1-sm-srcgrid, .g1--ht .g1-sm-two, .g1--ht .g1-sm-minis { grid-template-columns: 1fr; }
  .g1--ht .g1-sm-vitals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g1--ht .g1-sm-fact { display: block; }
  .g1--ht .g1-sm-flab { display: block; margin-bottom: 3px; }
  .g1--ht .g1-sm-sep { display: none; }
}
/* a message caused by the button just pressed, shown right above it (owner 2026-11-20: "Save & next does nothing") */
.g1-inline-err { margin: 12px 0; padding: 12px 14px; border-radius: 12px; font-size: 14px; font-weight: 600; background: var(--g1-danger-bg); color: var(--g1-danger);
  border: 1px solid color-mix(in srgb, var(--g1-danger) 35%, transparent); }
.g1-inline-err p { margin: 0; }
.g1-inline-err ul { margin: 6px 0 0; padding-left: 18px; font-weight: 500; }
/* the live note in the dark document style of the approved design */
.g1--ht .g1-sm-doc .g1-note { padding: 18px 22px 24px !important; }
.g1--ht .g1-sm-doc .g1-note-head h4 { font: 760 15px/1.3 var(--g1-font); color: var(--ht-ink); }
.g1--ht .g1-sm-doc .g1-note-legend { font-size: 11px; color: var(--ht-muted); }
.g1--ht .g1-sm-doc .g1-note-doc { background: transparent; color: var(--ht-accent-ink); border: 0; border-top: 1px solid var(--ht-line2); border-radius: 0; padding: 14px 0 0; box-shadow: none; }
.g1--ht .g1-sm-doc .g1-note-doc .g1-note-sec { margin-bottom: 16px; }
.g1--ht .g1-sm-doc .g1-note-doc .g1-note-sec-head { border-bottom: 0; padding: 0; margin: 0 0 6px; }
.g1--ht .g1-sm-doc .g1-note-doc .g1-note-sec-head h5 { font: 780 10px/1.4 var(--g1-font); color: var(--ht-accent-ink); letter-spacing: .13em; text-transform: uppercase; margin: 0; }
.g1--ht .g1-sm-doc .g1-note-doc .g1-note-sec-head .g1-btn { min-height: 28px; padding: 0 9px; font-size: 11px; background: var(--ht-inner) !important; color: var(--ht-accent-ink) !important; border: 1px solid var(--ht-line2) !important; box-shadow: none !important; }
.g1--ht .g1-sm-doc .g1-note-doc .g1-note-line, .g1--ht .g1-sm-doc .g1-note-doc .g1-note-text { font-size: 12.5px; line-height: 1.65; color: var(--ht-ink); margin: 0 0 2px; }
.g1--ht .g1-sm-doc .g1-note-doc .g1-note-gap { color: var(--sm-amber, var(--g1-wait)); border-bottom-color: color-mix(in srgb, var(--g1-wait) 45%, transparent); }
.g1--ht .g1-sm-doc .g1-note-doc textarea { background: var(--ht-field); color: var(--ht-accent-ink); border: 1px solid var(--ht-line2); border-radius: 10px; font: 12px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; }
.g1--ht .g1-sm-doc abbr.g1-src { font-size: 9px; padding: 0 4px; border-radius: 4px; }
.g1--ht .g1-sm-stage { color: var(--ht-muted); font-size: 10.5px; }

/* (owner 2026-11-20: "I don't like that this is a page in a page with a lot of wasted space") the GLP-1 patient workspace fills the content
   area beside the portal navigation: no cream frame around it, no centred column, no second rounded panel; the back link sits on the same
   dark surface. Only the frame changes; the workspace inside is the approved design. */
.cw.cw-glp1-bar { max-width: none; padding: 0; margin: 0; }
.cw.cw-glp1-bar .cw-back { margin: 0; min-height: 34px; }
.cw-glp1-mount { max-width: none; margin: 0; padding: 0 0 16px; }
.nav-model-b-main:has(> #clinical-workspace-content > .cw-glp1-mount > .g1--ht) { padding: 0; }
/* (owner 2026-11-22: Black Lacquer, gold, Oil Slick boxes) on the Pearl looks the workspace is the same frosted glass as Home and the
   menus: no page colour of its own (the look's lacquer or ombre shows through), the cards are the look's glass with its metal edge
   and shadow (--lux-*, css/ekm-pearl-luxe.css), the ink and muted text are the look's, the accent is the person's. */
html:is([data-theme="pearl"], [data-theme="pearl_night"]) .g1.g1--ht {
  --ht-page: transparent;
  --ht-ink: var(--lux-ink, var(--c-ink)); --ht-muted: var(--lux-muted, var(--c-muted));
  --ht-panel: var(--lux-glass-strong, var(--c-box)); --ht-panel2: var(--lux-glass-strong, var(--c-box));
  --ht-inner: var(--lux-well, var(--c-box)); --ht-raise: var(--lux-well, var(--c-box));
  --ht-line: var(--lux-edge, var(--c-box-border)); --ht-line2: color-mix(in srgb, var(--lux-edge, var(--c-box-border)) 100%, var(--lux-ink, #fff) 10%);
  --ht-shadow: var(--lux-shadow); --ht-sel: color-mix(in srgb, var(--c-accent) 14%, transparent);
  --ht-field: rgba(255, 255, 255, .42);
  background: transparent;
}
html[data-theme="pearl_night"] .g1.g1--ht { --ht-field: rgba(0, 0, 0, .26); }
html:is([data-theme="pearl"], [data-theme="pearl_night"]) #clinical-workspace-content:has(> .cw-glp1-mount > .g1--ht) { background: transparent; }
/* Oil Slick boxes: the same iridescent rim and faint glow as the Home boxes, drawn in the person's box colour and accent */
html[data-box-style="oil_slick"]:is([data-theme="pearl"], [data-theme="pearl_night"]) .g1.g1--ht :is(.g1-ph, .g1-wcard, .g1-done-list, .g1-ht-panel, .g1-sm-status, .g1-sm-note, :is(.g1-rd-side, .g1-rd-rail, .g1-rd-main, .g1-ht-gap) > :is(.g1-card, .g1-rd-card)) {
  position: relative;
  box-shadow: var(--lux-shadow), 0 0 0 .5px color-mix(in srgb, var(--slick-1) 40%, transparent), 0 0 32px -8px color-mix(in srgb, var(--slick-2) 60%, transparent) !important;
}
html[data-box-style="oil_slick"]:is([data-theme="pearl"], [data-theme="pearl_night"]) .g1.g1--ht :is(.g1-ph, .g1-wcard, .g1-done-list, .g1-ht-panel, .g1-sm-status, .g1-sm-note, :is(.g1-rd-side, .g1-rd-rail, .g1-rd-main, .g1-ht-gap) > :is(.g1-card, .g1-rd-card))::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; background: var(--slick-film); pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}

/* (owner 2026-11-22) waiting on the patient, in the employee's theme: the full width of the workspace, one glass card with a slim step
   track (done, the step the patient is on, then the rest), the list of what the patient has done, and the quiet gate line */
.g1--ht .g1-rd--waiting { max-width: 1180px; }
.g1--ht .g1-wait { gap: 16px; }
.g1.g1--ht .g1-wcard, .g1.g1--ht .g1-done-list { background: var(--ht-panel); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--ht-line); box-shadow: var(--ht-shadow); border-radius: 22px; }
.g1--ht .g1-wcard { padding: clamp(24px, 3vw, 34px) clamp(22px, 3.2vw, 40px); }
.g1--ht .g1-kicker { color: var(--ht-accent-ink); font-weight: 650; font-size: 11px; letter-spacing: .18em; }
.g1.g1--ht .g1-wcard-h { font-size: clamp(24px, 2.3vw, 30px); color: var(--ht-ink); max-width: 30ch; }
.g1--ht .g1-mring { width: 72px; height: 72px; }
.g1--ht .g1-mr-bg { stroke: var(--ht-line2); }
.g1--ht .g1-wtrack { list-style: none; margin: 26px 0 0; padding: 22px 0 0; border-top: 1px solid var(--ht-line); display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 10px; }
.g1--ht .g1-wtrack-s { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.g1--ht .g1-wtrack-bar { height: 5px; border-radius: 999px; background: var(--ht-line2); }
.g1--ht .g1-wtrack-s.is-done .g1-wtrack-bar { background: var(--ht-accent); }
.g1--ht .g1-wtrack-s.is-now .g1-wtrack-bar { background: linear-gradient(90deg, var(--ht-accent) 0 38%, color-mix(in srgb, var(--ht-accent) 28%, transparent) 38%);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ht-accent) 14%, transparent); }
.g1--ht .g1-wtrack-l { font-size: 12.5px; line-height: 1.35; color: var(--ht-muted); overflow-wrap: anywhere; }
.g1--ht .g1-wtrack-s.is-done .g1-wtrack-l { color: var(--ht-ink2); }
.g1--ht .g1-wtrack-s.is-now .g1-wtrack-l { color: var(--ht-ink); font-weight: 650; }
.g1--ht .g1-wtrack-s.is-done .g1-wtrack-l::before { content: "\2713\00a0"; color: var(--ht-accent-ink); font-weight: 700; }
@container ght (max-width: 620px) { .g1--ht .g1-wtrack { grid-template-columns: 1fr; gap: 12px; } .g1--ht .g1-wtrack-s { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 12px; } }
.g1--ht .g1-dot { border-color: var(--ht-soft); }
.g1--ht .g1-dot--done { background: var(--ht-accent); border-color: var(--ht-accent); }
.g1--ht .g1-dot--done::after { border-color: var(--ht-on-accent); }
.g1.g1--ht details.g1-done-list > summary { padding: 20px clamp(22px, 3.2vw, 40px); }
.g1--ht .g1-done-list > summary b { color: var(--ht-ink); font-weight: 600; }
.g1--ht .g1-done-list > summary:hover b { color: var(--ht-accent-ink); }
.g1--ht .g1-done-list > summary:focus-visible { outline: 2px solid var(--ht-sel-line); outline-offset: 2px; }
.g1--ht .g1-wdl { padding: 0 clamp(22px, 3.2vw, 40px) 16px; }
.g1--ht .g1-wdl li { border-top-color: var(--ht-line); }
.g1--ht .g1-gate-line { border-color: var(--ht-line2); color: var(--ht-muted); background: color-mix(in srgb, var(--ht-panel2) 45%, transparent); border-radius: 18px; }
.g1--ht .g1-gate-line::before { background: var(--ht-accent); }

#clinical-workspace-content:has(> .cw-glp1-mount > .g1--ht) { min-height: 100vh; border-top-left-radius: 18px;
  background: radial-gradient(circle at 10% 0%, color-mix(in srgb, var(--c-accent, #9C9A93) 9%, transparent), transparent 32%), var(--c-bg, #F3EDE4); }
#clinical-workspace-content:has(> .cw-glp1-mount > .g1--ht) > .cw-glp1-bar { padding: 10px clamp(14px, 1.6vw, 24px) 0; background: transparent; }
#clinical-workspace-content:has(> .cw-glp1-mount > .g1--ht) > .cw-glp1-bar .cw-back { color: var(--c-muted, #5A5248); }
.cw-glp1-mount > .g1.g1--ht { border-radius: 0; padding: 6px clamp(14px, 1.6vw, 24px) 28px; background: transparent; }
.cw-glp1-mount > .g1--ht .g1-ph-wrap { margin: 0 0 12px; }
.cw-glp1-mount > .g1--ht .g1-sm-h1 { font-size: 24px; margin: 4px 0; }
.cw-glp1-mount > .g1:not(.g1--ht) { padding: 0 clamp(8px, 1.5vw, 20px); }

/* (owner 2026-11-20) the Psychiatric Treatment Rationale Builder: four numbered groups of one-click choices and a live preview */
.g1--ht .g1-rx .g1-rx-step { display: flex; align-items: center; gap: 9px; margin: 16px 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ht-muted); }
.g1--ht .g1-rx .g1-rx-step span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: color-mix(in srgb, var(--c-accent) 12%, transparent); color: var(--ht-cyan); font-size: 11px; letter-spacing: 0; }
.g1--ht .g1-rx .g1-rx-chip { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; }
.g1--ht .g1-rx .g1-rx-hint { font-size: 10.5px; font-weight: 500; color: var(--ht-mint); opacity: .9; }
.g1--ht .g1-rx .g1-rx-preview { margin-top: 16px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--ht-line); background: var(--ht-field); }
.g1--ht .g1-rx .g1-rx-text, .g1--ht .g1-rx .g1-rx-line { margin: 0 0 8px; color: var(--ht-ink); line-height: 1.55; }
.g1--ht .g1-rx .g1-rx-line { color: var(--ht-ink2); }

/* (owner 2026-11-20) BED diagnostic evidence collected during the patient intake: each DSM-5 element, the patient's answer, its status */
.g1--ht .g1-ev { margin: 14px 0; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--ht-line); background: var(--ht-field); }
.g1--ht .g1-ev-head h3 { margin: 0 0 4px; font-size: 14px; color: var(--ht-ink); }
.g1--ht .g1-ev-group { margin: 14px 0 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ht-muted); }
.g1--ht .g1-ev-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) auto auto; gap: 10px; align-items: center; padding: 7px 0; border-top: 1px solid color-mix(in srgb, var(--c-ink) 7%, transparent); }
.g1--ht .g1-ev-ans { font-size: 13px; color: var(--ht-ink2); }
.g1--ht .g1-ev-chip { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px; white-space: nowrap; background: color-mix(in srgb, var(--c-ink) 5%, transparent); color: var(--ht-muted); }
.g1--ht .g1-ev-chip--ok { background: color-mix(in srgb, var(--g1-ok) 12%, transparent); color: var(--ht-mint); }
.g1--ht .g1-ev-chip--warn { background: color-mix(in srgb, var(--g1-danger) 12%, transparent); color: var(--ht-warn); }
.g1--ht .g1-ev-picks { display: inline-flex; gap: 6px; }
.g1--ht .g1-ev-pick { min-height: 30px; padding: 4px 12px; }
.g1--ht .g1-ev-picks .g1-sm-help { align-self: center; margin: 0; }
.g1--ht .g1-ev-cols { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) auto auto; gap: 10px; padding: 4px 0 0; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ht-muted); }
.g1--ht .g1-ev-src { display: block; margin-top: 2px; font-size: 11px; color: var(--ht-muted); }
@media (max-width: 760px) { .g1--ht .g1-ev-row { grid-template-columns: minmax(0, 1fr); } .g1--ht .g1-ev-cols { display: none; } }
/* =====================================================================================================================
   CLINICAL WORKSPACE LUX FINISH (owner 2026-11-20: every Clinical Workspace screen gets "the upscale appearance modern lux
   look", not new colours). Only when the program opens inside Clinical Workspace (.cw-glp1-mount, js/ekm-clinical-workspace.js),
   and never on the approved provider design (.g1--ht). Colours stay on the theme tokens; this adds the finish the Clinical
   Workspace pages carry: a display-serif title (Cormorant Garamond) over an italic serif line (Instrument Serif) and a short
   accent rule, letter-spaced labels followed by a hairline, calm hairline cards with outlined square icons, pill buttons with a
   gradient primary. DM Sans for everything you read and click. Every font is already loaded by index.html.
   ===================================================================================================================== */
.cw-glp1-mount > .g1:not(.g1--ht) {
  --g1-lux-serif: 'Cormorant Garamond', Georgia, serif;
  --g1-lux-italic: 'Instrument Serif', 'Cormorant Garamond', Georgia, serif;
  --g1-lux-rule: color-mix(in srgb, var(--g1-accent) 70%, transparent);
  --g1-lux-line: color-mix(in srgb, var(--g1-ink) 10%, transparent);
  --g1-lux-outline: color-mix(in srgb, var(--g1-ink) 16%, transparent);
  --g1-lux-sheen: linear-gradient(180deg, color-mix(in srgb, var(--g1-card) 94%, #fff 6%), var(--g1-card));
  --g1-lux-pill: linear-gradient(180deg, color-mix(in srgb, var(--g1-ink) 84%, var(--g1-card)), var(--g1-ink));
  --g1-lux-glow: 0 10px 22px -14px color-mix(in srgb, var(--g1-ink) 60%, transparent);
  --g1-font: 'DM Sans', var(--font-ui, -apple-system, "Segoe UI", sans-serif);
  font-family: var(--g1-font);
  max-width: 1080px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px) 64px; box-sizing: border-box; line-height: 1.55;
}
/* header: letter-spaced eyebrow, thin serif title, italic line, short accent rule */
.cw-glp1-mount > .g1:not(.g1--ht) .g1-home-hero { position: relative; padding: 8px 0 26px !important; margin: 0 0 26px !important; align-items: flex-end; }
.cw-glp1-mount > .g1:not(.g1--ht) .g1-home-hero::after { content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 1px;
  background: linear-gradient(90deg, var(--g1-lux-rule), transparent); }
.cw-glp1-mount > .g1:not(.g1--ht) .g1-eyebrow { font-size: 11.5px; font-weight: 500; letter-spacing: .26em; color: var(--g1-muted); margin: 0 0 14px; }
.cw-glp1-mount > .g1:not(.g1--ht) .g1-home-title { font-family: var(--g1-lux-serif) !important; font-weight: 300 !important;
  font-size: clamp(36px, 4.6vw, 58px) !important; line-height: 1.04; letter-spacing: -.01em !important; color: var(--g1-ink); }
.cw-glp1-mount > .g1:not(.g1--ht) .g1-home-lead { font-family: var(--g1-lux-italic); font-style: italic; font-size: 18px; line-height: 1.45;
  color: var(--g1-ink2); margin: 12px 0 0; max-width: 60ch; }
.cw-glp1-mount > .g1:not(.g1--ht) .g1-h { font-family: var(--g1-lux-serif); font-weight: 400; font-size: 32px; letter-spacing: -.005em; line-height: 1.12; }
.cw-glp1-mount > .g1:not(.g1--ht) .g1-h--small { font-size: 22px; }
.cw-glp1-mount > .g1:not(.g1--ht) .g1-sub { font-family: var(--g1-lux-italic); font-style: italic; font-size: 16px; color: var(--g1-ink2); }
/* section labels: uppercase, letter-spaced, followed by a hairline */
.cw-glp1-mount > .g1:not(.g1--ht) .g1-home-h,
.cw-glp1-mount > .g1:not(.g1--ht) .g1-setup-label { display: flex; align-items: center; gap: 14px; font-size: 11.5px; font-weight: 500;
  letter-spacing: .24em; text-transform: uppercase; color: var(--g1-muted); }
.cw-glp1-mount > .g1:not(.g1--ht) .g1-home-h::after { content: ""; flex: 1; height: 1px; background: var(--g1-lux-line); }
.cw-glp1-mount > .g1:not(.g1--ht) .g1-home-sec-head .g1-home-h { flex: 1; }
/* calm cards: sheen surface, soft hairline, no heavy lift */
.cw-glp1-mount > .g1:not(.g1--ht) .g1-card, .cw-glp1-mount > .g1:not(.g1--ht) .g1-tile, .cw-glp1-mount > .g1:not(.g1--ht) .g1-stage,
.cw-glp1-mount > .g1:not(.g1--ht) .g1-stat, .cw-glp1-mount > .g1:not(.g1--ht) .g1-row, .cw-glp1-mount > .g1:not(.g1--ht) .g1-acc,
.cw-glp1-mount > .g1:not(.g1--ht) .g1-now, .cw-glp1-mount > .g1:not(.g1--ht) .g1-appr-item, .cw-glp1-mount > .g1:not(.g1--ht) .g1-how-step {
  background: var(--g1-lux-sheen) !important; border: 1px solid var(--g1-lux-line) !important; border-radius: 18px !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .03), 0 14px 34px -24px rgba(0, 0, 0, .28) !important; }
.cw-glp1-mount > .g1:not(.g1--ht) .g1-tile:hover:not([disabled]), .cw-glp1-mount > .g1:not(.g1--ht) .g1-stage:hover:not([disabled]),
.cw-glp1-mount > .g1:not(.g1--ht) .g1-row:hover { border-color: var(--g1-lux-outline) !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 22px 44px -26px rgba(0, 0, 0, .38) !important; }
.cw-glp1-mount > .g1:not(.g1--ht) .g1-tile { padding: 26px 26px 24px !important; }
.cw-glp1-mount > .g1:not(.g1--ht) .g1-tile::before { display: none; }
.cw-glp1-mount > .g1:not(.g1--ht) .g1-tile-ico { border-radius: 12px !important; width: 48px !important; height: 48px !important;
  border: 1px solid var(--g1-lux-outline); box-shadow: none !important; }
.cw-glp1-mount > .g1:not(.g1--ht) .g1-tile-title { font-family: var(--g1-lux-serif) !important; font-weight: 500 !important; font-size: 24px !important;
  letter-spacing: 0 !important; line-height: 1.15; }
.cw-glp1-mount > .g1:not(.g1--ht) .g1-tile-text { font-size: 13.5px; line-height: 1.55; color: var(--g1-ink2); }
.cw-glp1-mount > .g1:not(.g1--ht) .g1-tile-badge { border-radius: 999px; padding: 4px 12px; font-size: 12px; font-weight: 600; }
.cw-glp1-mount > .g1:not(.g1--ht) .g1-tile-go { top: 20px; right: 18px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--g1-lux-outline); opacity: .8; color: var(--g1-ink2) !important; transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease; }
.cw-glp1-mount > .g1:not(.g1--ht) .g1-tile-go .g1-ico { width: 15px; height: 15px; }
.cw-glp1-mount > .g1:not(.g1--ht) .g1-tile:hover:not([disabled]) .g1-tile-go,
.cw-glp1-mount > .g1:not(.g1--ht) .g1-tile:focus-visible .g1-tile-go { opacity: 1; background: var(--g1-lux-pill); border-color: transparent; color: var(--g1-card) !important; transform: none; }
.cw-glp1-mount > .g1:not(.g1--ht) .g1-stage { border-top: 1px solid var(--g1-lux-line) !important; padding: 18px 18px 16px; }
.cw-glp1-mount > .g1:not(.g1--ht) .g1-stage-n, .cw-glp1-mount > .g1:not(.g1--ht) .g1-stat-n { font-family: var(--g1-lux-serif) !important; font-weight: 300 !important;
  font-size: 34px; line-height: 1.05; letter-spacing: -.01em; }
.cw-glp1-mount > .g1:not(.g1--ht) .g1-stage-n { font-size: 40px; }
.cw-glp1-mount > .g1:not(.g1--ht) .g1-stage-label { font-size: 11.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--g1-ink2); margin-top: 8px; }
/* pill buttons; the primary is a gradient pill */
.cw-glp1-mount > .g1:not(.g1--ht) .g1-btn, .cw-glp1-mount > .g1:not(.g1--ht) .g1-setup-link {
  border-radius: 999px; min-height: 44px; padding: 0 20px; font-weight: 500; letter-spacing: .01em;
  background: var(--g1-card); border: 1px solid var(--g1-lux-outline); color: var(--g1-ink); box-shadow: none; }
.cw-glp1-mount > .g1:not(.g1--ht) .g1-btn:hover:not(:disabled), .cw-glp1-mount > .g1:not(.g1--ht) .g1-setup-link:hover {
  background: color-mix(in srgb, var(--g1-card) 94%, var(--g1-ink)); border-color: color-mix(in srgb, var(--g1-ink) 30%, transparent); color: var(--g1-ink); }
.cw-glp1-mount > .g1:not(.g1--ht) .g1-btn--primary { background: var(--g1-lux-pill); color: var(--g1-card); border-color: transparent;
  font-weight: 600; box-shadow: var(--g1-lux-glow); }
.cw-glp1-mount > .g1:not(.g1--ht) .g1-btn--primary:hover:not(:disabled) { background: var(--g1-lux-pill); color: var(--g1-card); border-color: transparent; filter: brightness(1.12); }
.cw-glp1-mount > .g1:not(.g1--ht) .g1-btn--icon { width: 44px; padding: 0; }
/* filter chips: pills; the chosen one is a gradient pill */
.cw-glp1-mount > .g1:not(.g1--ht) .g1-pill { border-radius: 999px; min-height: 38px; padding: 0 16px; font-weight: 500; border-color: var(--g1-lux-outline); }
.cw-glp1-mount > .g1:not(.g1--ht) .g1-pill.is-on { background: var(--g1-lux-pill); color: var(--g1-card); border-color: transparent; box-shadow: var(--g1-lux-glow); }
.cw-glp1-mount > .g1:not(.g1--ht) .g1-chip { border-radius: 999px; }
/* segmented tabs: a pill track, the active tab a gradient pill */
.cw-glp1-mount > .g1:not(.g1--ht) .g1-tabs { border-radius: 999px; padding: 4px; background: var(--g1-card); border: 1px solid var(--g1-lux-outline); }
.cw-glp1-mount > .g1:not(.g1--ht) .g1-tab { border-radius: 999px; min-height: 36px; padding: 6px 16px; }
.cw-glp1-mount > .g1:not(.g1--ht) .g1-tab.is-active { background: var(--g1-lux-pill); color: var(--g1-card); box-shadow: var(--g1-lux-glow); }
/* tables and fields: letter-spaced headers, hairlines, softer fields */
.cw-glp1-mount > .g1:not(.g1--ht) .g1-table th { font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--g1-muted); }
.cw-glp1-mount > .g1:not(.g1--ht) .g1-table th, .cw-glp1-mount > .g1:not(.g1--ht) .g1-table td { border-color: var(--g1-lux-line); }
.cw-glp1-mount > .g1:not(.g1--ht) .g1-label { font-size: 11.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--g1-muted); }
.cw-glp1-mount > .g1:not(.g1--ht) .g1-input { border-radius: 14px; min-height: 44px; border-color: var(--g1-lux-outline); }
.cw-glp1-mount > .g1:not(.g1--ht) .g1-note, .cw-glp1-mount > .g1:not(.g1--ht) .g1-warn { border-radius: 14px; }
.cw-glp1-mount > .g1:not(.g1--ht) .g1-row-title { font-family: var(--g1-lux-serif); font-weight: 500; font-size: 20px; line-height: 1.2; }
/* the Back to Clinical Workspace bar sits right above the program, not a page-height away */
#clinical-workspace-content > .cw.cw-glp1-bar { padding-bottom: 4px; }
@media (max-width: 720px) {
  .cw-glp1-mount > .g1:not(.g1--ht) { padding: 0 16px 48px; }
  .cw-glp1-mount > .g1:not(.g1--ht) .g1-home-hero-actions { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .cw-glp1-mount > .g1:not(.g1--ht) .g1-tile-go { transition: none; }
}
