:root {
  color-scheme: light;
  --ink:#142b46;
  --muted:#4d637b;
  --navy:#143856;
  --primary:#1b527c;
  --blue:#e9f2fa;
  --paper:#fff;
  --bg:#f3f7fb;
  --line:#d8e3ed;
  --gold:#805c16;
  --gold-light:#fcf1d7;
  --positive:#16624f;
  --negative:#942c43;
  --radius:18px;
  --shadow:0 8px 25px rgba(30,66,101,.055);
  font: 16px/1.65 -apple-system,BlinkMacSystemFont,"Hiragino Sans","Yu Gothic","Meiryo",sans-serif;
}
*,*::before,*::after { box-sizing:border-box; }
body { margin:0; color:var(--ink); background:var(--bg); min-height:100vh; display:flex; flex-direction:column; overflow-wrap:anywhere; }
[hidden] { display:none !important; }
a { color:var(--primary); text-underline-offset:.22em; }
button,input,select,textarea { font:inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline:3px solid #2477b0; outline-offset:3px;
}
h1,h2,h3,p,dl { margin:0; }
h1,h2,h3 { line-height:1.35; letter-spacing:.02em; }
h1 { font-size:clamp(2rem,4.5vw,3.5rem); }
h2 { font-size:clamp(1.25rem,2vw,1.52rem); }
h3 { font-size:1.06rem; }
p + p { margin-top:.65rem; }
.shell { width:min(1184px, calc(100% - 64px)); margin-inline:auto; }
.main { padding-block:38px 74px; flex:1; }
.skip { position:absolute; top:-4rem; left:12px; background:white; padding:.5rem; z-index:3; }
.skip:focus { top:2px; }
.demo-strip { display:flex; justify-content:center; align-items:center; gap:.55rem; padding:.34rem .75rem; background:var(--gold-light); color:#65480f; font-size:.875rem; font-weight:650; }
.demo-dot { width:8px; height:8px; background:#a8751c; border-radius:50%; }
.top { background:#fff; border-bottom:1px solid var(--line); }
.top-inner { display:flex; align-items:center; justify-content:space-between; gap:1.4rem; min-height:77px; }
.brand { display:inline-flex; align-items:center; gap:.68rem; text-decoration:none; color:var(--navy); flex-shrink:0; font-size:1.08rem; font-weight:800; line-height:1.24; }
.brand-mark { display:grid; place-items:center; width:37px; height:37px; border-radius:11px; background:var(--navy); color:#fff; font-size:1rem; }
.brand-sub { display:block; margin-top:.16rem; font-size:.81rem; font-weight:650; }
.top nav { display:flex; gap:clamp(.7rem,2vw,1.7rem); align-items:center; }
.top nav a { color:#425970; text-decoration:none; white-space:nowrap; font-size:.9rem; font-weight:700; padding:.6rem 0; border-bottom:2px solid transparent; }
.top nav a[aria-current="page"] { color:var(--primary); border-color:#b58b48; }
.session { display:flex; gap:.55rem; align-items:center; justify-content:flex-end; }
.session-name { color:var(--muted); font-size:.85rem; }
.session .button { min-height:40px; padding:.42rem .8rem; white-space:nowrap; font-size:.86rem; }
.hero { min-height:380px; border:1px solid #dbe9f5; border-radius:24px; background:linear-gradient(115deg,#e8f2fa,#f0f7fc 62%,#e4eff8); display:grid; grid-template-columns:1.4fr .85fr; align-items:center; gap:1rem; padding:clamp(30px,5.8vw,76px); overflow:hidden; }
.hero h1 { color:var(--navy); font-size:clamp(2.3rem,5.5vw,4.05rem); letter-spacing:.015em; }
.hero-label { margin-bottom:.68rem; color:var(--primary); font-weight:750; font-size:.97rem; }
.hero-summary { color:#3a5875; margin-top:1.1rem; }
.hero .actions { margin-top:1.45rem; }
.hero-art { min-height:235px; position:relative; display:grid; place-items:center; }
.art-orbit { position:absolute; width:min(100%,350px); aspect-ratio:1; border-radius:50%; background:radial-gradient(circle,#fff9 25%,#cbdfee 75%); }
.art-board { position:relative; width:76%; max-width:275px; height:177px; border:1px solid #b5cde2; background:#fefeff; border-radius:20px; box-shadow:0 18px 30px #345c8026; transform:rotate(-8deg); }
.art-top { height:45px; background:#b9d4ea; border-radius:19px 19px 0 0; position:relative; }
.art-top::before,.art-top::after { position:absolute; width:7px; height:15px; top:8px; background:#426785; border-radius:9px; content:""; }
.art-top::before { left:21%; } .art-top::after { right:21%; }
.art-body { display:grid; grid-template-columns:repeat(3,1fr); gap:9px; padding:14px 21px; }
.art-block { height:23px; border-radius:5px; background:#edf4fa; }
.art-selected { background:#bdd8ea; }
.art-check { position:absolute; bottom:-13px; right:-20px; border:4px solid #f8fbff; border-radius:50%; width:60px; height:60px; line-height:52px; text-align:center; background:#e9d29d; color:#4b3b16; font-size:1.8rem; font-weight:800; }
.home-flow { margin-top:34px; }
.home-flow h2,.list-heading { margin-bottom:14px; }
.flow h3 { margin:.5rem 0; }
.flow p { color:var(--muted); }
.flow-icon { display:grid; place-items:center; width:39px; height:39px; border-radius:10px; background:var(--blue); color:var(--primary); font-size:1.2rem; font-weight:750; }
.page-heading { margin:0 0 24px; }
.page-heading h1 { color:var(--navy); }
.page-heading p { color:var(--muted); margin-top:.6rem; }
.back { display:inline-block; margin-bottom:.7rem; font-size:.9rem; }
.panel { min-width:0; margin:0 0 18px; background:var(--paper); padding:clamp(16px,3.1vw,28px); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); }
.panel h2 { margin-bottom:16px; color:var(--navy); }
.panel h3 { margin-block:.25rem; }
.panel p { max-width:74ch; }
.narrow { max-width:700px; }
.grid { display:grid; gap:16px; align-items:start; }
.grid.two { grid-template-columns:repeat(2,minmax(0,1fr)); }
.grid.three { grid-template-columns:repeat(3,minmax(0,1fr)); }
.grid.clinic-detail { grid-template-columns:minmax(0,1fr) minmax(0,1.15fr); }
.grid.clinics { align-items:stretch; }
.actions { display:flex; gap:.65rem; align-items:center; flex-wrap:wrap; }
.lead-actions { margin-bottom:1rem; }
.stack { display:grid; gap:.8rem; justify-items:start; }
.stack > label,.stack > .grid,.stack > fieldset { width:100%; }
.stack > .button { justify-self:start; }
.inline { display:inline-flex; margin:0; }
.button { padding:.59rem 1rem; display:inline-flex; min-height:44px; align-items:center; justify-content:center; text-align:center; border:1px solid transparent; border-radius:9px; font-weight:710; cursor:pointer; text-decoration:none; line-height:1.43; }
.button.primary { background:var(--primary); color:white; }
.button.primary:hover { background:#143d60; }
.button.secondary { background:#eff6fc; color:var(--primary); border-color:#c6dbed; }
.button.secondary:hover { background:#e1effb; }
.button.ghost { background:transparent; color:var(--primary); border-color:var(--line); }
.button.ghost:hover { background:#edf4fa; }
.button.danger { color:var(--negative); background:#fff2f5; border-color:#ebcbd4; }
.button:disabled { opacity:.6; cursor:not-allowed; }
form:not(.inline) .actions { margin-top:.4rem; }
label { display:grid; gap:.33rem; font-size:.92rem; font-weight:700; }
label.check { display:flex; align-items:flex-start; gap:.55rem; font-weight:550; min-height:32px; }
label.check input { margin:.26rem 0 0; width:18px; height:18px; accent-color:var(--primary); flex:0 0 auto; }
input:not([type=checkbox]), select,textarea { color:var(--ink); border:1px solid #b8cadb; background:white; border-radius:8px; width:100%; min-width:0; padding:.6rem .72rem; min-height:44px; }
input::placeholder,textarea::placeholder { color:#657d95; }
select { appearance:none; padding-right:2rem; background-image:linear-gradient(45deg,transparent 50%,#516d88 50%),linear-gradient(135deg,#516d88 50%,transparent 50%); background-position:calc(100% - 18px) 53%,calc(100% - 13px) 53%; background-size:5px 5px; background-repeat:no-repeat; }
textarea { resize:vertical; }
.filters .actions { margin-top:15px !important; }
.filters .check { margin-right:auto; align-items:center; }
.filters .check input { margin:0; }
.list-heading { display:flex; align-items:center; gap:1rem; }
.list-heading p { color:var(--muted); }
.clinic-card { display:flex; flex-direction:column; justify-content:space-between; gap:1rem; }
.clinic-card-end { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:.65rem; border-top:1px solid var(--line); padding-top:.75rem; }
.clinic-card p:last-child { color:var(--muted); font-size:.94rem; }
.tags { display:flex; gap:.45rem; flex-wrap:wrap; margin:.5rem 0; }
.tags span,.pill { display:inline-block; border-radius:999px; background:var(--blue); color:var(--navy); padding:.23rem .6rem; font-size:.82rem; font-weight:750; }
.pill.positive { color:var(--positive); background:#e7f5ed; }
.pill.negative { color:var(--negative); background:#fbe7ed; }
.pill.attention { color:#66490c; background:#fbefcf; }
.pill.neutral { color:#3f566e; background:#edf3f8; }
.facts { display:grid; gap:0; margin-block:.7rem; }
.facts > div { display:grid; grid-template-columns:minmax(125px,1fr) minmax(0,2fr); gap:.8rem; padding:.48rem 0; border-bottom:1px solid #e9eff5; }
.facts dt { color:var(--muted); font-size:.9rem; font-weight:650; }
.facts dd { margin:0; font-weight:650; }
.small { font-size:.87rem; }
.muted { color:var(--muted); }
.hint { color:var(--muted); padding:.7rem .86rem; border:1px solid var(--line); border-radius:8px; background:#f5f9fc; margin-block:.5rem; }
.empty { color:var(--muted); padding:.48rem 0; }
.plain,.rows { margin:.6rem 0; padding:0; }
.plain { padding-left:1.3rem; }
.list-row { display:flex; align-items:center; justify-content:space-between; gap:.85rem; border-bottom:1px solid var(--line); padding:.7rem 0; }
.list-row:last-child { border-bottom:0; }
.list-row p { color:var(--muted); }
.list-row .actions { justify-content:flex-end; }
details { border-top:1px solid var(--line); margin-top:.8rem; padding:.65rem 0; }
summary { cursor:pointer; font-weight:720; }
details[open] > :not(summary) { margin-top:.65rem; }
.record-bar { display:flex; gap:.75rem; align-items:center; justify-content:space-between; margin:-.4rem 0 .75rem; color:var(--muted); }
.record-bar .pill { margin-right:.4rem; }
.record-nav { display:flex; gap:.6rem; margin:20px 0; flex-wrap:wrap; }
.record-nav a { color:var(--primary); background:#fff; border:1px solid var(--line); border-radius:99px; font-weight:680; font-size:.89rem; padding:.48rem .75rem; text-decoration:none; }
.record-nav a:hover { background:var(--blue); }
#checks,#questionnaire,#video,#billing,#prescription { scroll-margin-top:14px; }
.required { display:inline; color:var(--negative); font-size:.77rem; }
fieldset { min-width:0; border:1px solid var(--line); border-radius:9px; padding:.6rem .85rem; }
legend { color:var(--navy); font-weight:730; }
.table-wrap { overflow-x:auto; margin:.7rem 0 1rem; }
table { border-collapse:collapse; width:100%; min-width:560px; }
th,td { padding:.56rem .65rem; border-bottom:1px solid var(--line); text-align:left; vertical-align:top; }
thead th { background:#edf4fa; color:var(--navy); font-size:.88rem; }
tr.highlight { background:#fdf6e6; }
.callout,.flash { padding:.74rem 1rem; border:1px solid var(--line); border-radius:10px; margin:.75rem 0; }
.callout.attention { border-color:#e6cf94; background:#fff4d7; color:#5b4210; }
.flash { margin:0 0 16px; max-width:850px; }
.flash.success { border-color:#b7dace; color:var(--positive); background:#e9f6f0; }
.flash.error { border-color:#e7bbc7; color:var(--negative); background:#fff1f4; }
.video-self { width:min(100%,420px); aspect-ratio:16/9; position:relative; border-radius:10px; overflow:hidden; background:#1d3350; color:white; display:grid; place-items:center; }
.video-self video { width:100%; height:100%; object-fit:cover; }
.video-self .video-placeholder { position:absolute; inset:0; display:grid; place-items:center; background:inherit; }
.consultation-room { max-width:960px; margin-top:1.1rem; overflow:hidden; background:#fff; border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); }
.consultation-stage { position:relative; isolation:isolate; display:grid; place-items:center; min-height:clamp(320px,48vw,490px); padding:65px 16px 125px; background:radial-gradient(ellipse at center,#254662,#11273d 70%); color:#fff; }
.consultation-status { position:absolute; inset:16px auto auto 16px; display:flex; align-items:center; gap:.55rem; border:1px solid #56728c; border-radius:999px; padding:.42rem .8rem; background:#142c44; font-size:.9rem; font-weight:700; }
.consultation-status span { width:.55rem; height:.55rem; border-radius:50%; background:#e4c57d; }
.consultation-remote { display:grid; justify-items:center; gap:.4rem; text-align:center; }
.consultation-avatar { display:grid; place-items:center; width:clamp(66px,12vw,104px); aspect-ratio:1; border-radius:50%; margin-bottom:.35rem; border:1px solid #7d9ab3; background:#395d79; color:#fff; font-size:1.65rem; font-weight:700; }
.consultation-remote > span,.consultation-self > span { color:#d6e5f4; font-size:.82rem; }
.consultation-self { position:absolute; right:16px; bottom:12px; width:clamp(126px,24vw,220px); text-align:center; }
.consultation-self .video-self { width:100%; border:1px solid #66839c; background:#243e57; font-size:.78rem; }
.consultation-self video { position:absolute; inset:0; }
.consultation-info,.consultation-devices { display:grid; gap:.65rem; padding:clamp(14px,3vw,24px); }
.consultation-devices { border-top:1px solid var(--line); }
.consultation-devices h2 { font-size:1.05rem; }
.amount { font-size:1.4rem; }
.footer { border-top:1px solid var(--line); background:#fff; color:var(--muted); font-size:.87rem; }
.foot-inner { min-height:70px; padding-block:12px; display:flex; gap:.6rem 1.5rem; flex-wrap:wrap; align-items:center; justify-content:space-between; }
@media(max-width:920px) {
  .shell { width:calc(100% - 36px); }
  .hero { padding:36px; }
  .top-inner { flex-wrap:wrap; gap:.45rem 1rem; padding-block:12px 0; }
  .top nav { order:3; width:100%; overflow:auto; }
  .session { margin-left:auto; }
}
@media(max-width:640px) {
  .shell { width:calc(100% - 24px); }
  .main { padding-block:20px 45px; }
  .hero { min-height:0; display:block; padding:27px 20px; border-radius:16px; }
  .hero-art,.wide,.session-name { display:none; }
  .hero h1 { font-size:clamp(1.88rem,8.8vw,2.7rem); }
  .grid.two,.grid.three,.grid.clinic-detail { grid-template-columns:minmax(0,1fr); gap:11px; }
  .filters .actions { align-items:flex-start; }
  .filters .check { flex:1 0 100%; }
  .list-row { align-items:flex-start; flex-direction:column; gap:.4rem; }
  .list-row .actions { justify-content:flex-start; }
  .facts > div { grid-template-columns:1fr 1.5fr; gap:.5rem; }
}

/* Desktop workspace, based on the supplied role-screen references. */
:root { --navy:#153247; --primary:#286488; --bg:#f0f5f8; --radius:12px; --line:#d7e2ea; }
.brand-mark { background:none; position:relative; width:37px; height:39px; border-radius:0; }
.brand-mark::before,.brand-mark::after { position:absolute; content:""; transform:rotate(25deg); }
.brand-mark::before { left:6px; top:12px; width:15px; height:24px; border-radius:12px 2px 12px 2px; background:#2d6a87; }
.brand-mark::after { left:22px; top:5px; width:11px; height:19px; border-radius:9px 2px 9px 2px; background:#b18e4d; }
.grid.clinics { grid-template-columns:1fr; max-width:1000px; }
.clinic-card { flex-direction:row; align-items:center; }
.clinic-card-end { border:0; padding:0; max-width:300px; }
.sr-only { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.workspace-body { color:#25394a; }
.workspace-strip { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:9px 24px; background:#112f45; color:#edf5fb; font-size:.88rem; }
.workspace-strip strong { color:#f3d895; }
.demo-detail { margin-left:1.1rem; color:#d6e5ef; }
.work-area { min-height:calc(100vh - 42px); display:grid; grid-template-columns:224px minmax(0,1fr); }
.work-sidebar { display:flex; flex-direction:column; align-items:stretch; min-width:0; background:#fff; border-right:1px solid var(--line); padding:25px 15px 18px; }
.work-sidebar .brand { margin:0 6px 29px; }
.work-sidebar > p, .side-footer { color:var(--muted); font-size:.8rem; padding-inline:9px; }
.work-sidebar nav { display:grid; gap:4px; margin-top:9px; }
.work-sidebar nav a { display:flex; gap:10px; align-items:center; padding:.6rem .6rem; min-height:43px; color:#425a6d; text-decoration:none; font-size:.92rem; font-weight:700; border-left:3px solid transparent; border-radius:7px; }
.work-sidebar nav a:hover { background:#f0f6fa; }
.work-sidebar nav a[aria-current="page"] { border-color:#367a9c; background:#e6f0f6; color:#1c5474; }
.side-glyph { font-weight:650; width:1.2rem; color:#4b7187; text-align:center; }
.side-footer { margin-top:auto; padding-top:38px; }
.work-content { min-width:0; display:flex; flex-direction:column; }
.work-header { min-height:72px; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; padding:12px clamp(15px,3vw,34px); background:#fff; border-bottom:1px solid var(--line); }
.work-account,.workspace-filter { display:flex; align-items:center; gap:9px; }
.work-account > div { display:grid; line-height:1.35; font-size:.88rem; }
.work-account > div span { color:var(--muted); font-size:.8rem; }
.work-account .button { font-size:.83rem; min-height:36px; }
.work-avatar { width:34px; height:34px; display:grid; place-items:center; border-radius:50%; color:#315e79; background:#e6f0f6; font-weight:800; }
.workspace-filter select,.workspace-filter button { min-height:36px; font-size:.89rem; }
.workspace-main { width:min(100%, 1460px); margin-inline:auto; padding:clamp(16px,3vw,34px); flex:1; }
.workspace-main .page-heading { margin-bottom:20px; }
.workspace-main .page-heading h1 { font-size:clamp(1.75rem,2.65vw,2.45rem); }
.workspace-main .page-heading p { margin-top:.35rem; }
.workspace-title { display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; align-items:center; }
.date-chip { background:#fff; border:1px solid var(--line); padding:.45rem .7rem; border-radius:8px; color:#4f6578; font-size:.88rem; margin-bottom:12px; }
.workspace-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin-bottom:18px; }
.workspace-metric { display:grid; gap:.38rem; background:#fff; padding:15px 17px; border:1px solid var(--line); border-radius:10px; color:var(--muted); }
.workspace-metric.blue-edge { border-top:3px solid #5f8aa3; }
.workspace-metric.gold-edge { border-top:3px solid #ad8b55; }
.workspace-metric p { font-size:.9rem; }
.workspace-metric strong { color:var(--navy); font-size:1.92rem; line-height:1; }
.workspace-metric small { font-size:.81rem; }
.work-next { display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:18px; align-items:center; padding:16px 20px; background:linear-gradient(110deg,#e8f2f9,#fff); border:1px solid var(--line); border-radius:10px; margin-bottom:18px; }
.work-next > div:first-child { border-right:1px solid var(--line); padding-right:18px; }
.work-next p { color:var(--muted); font-size:.88rem; }
.work-next > div:first-child strong { font-size:1.8rem; color:var(--primary); }
.work-next h2 { margin:.22rem 0; font-size:1.17rem; }
.workspace-dashboard { display:grid; grid-template-columns:minmax(0,2fr) minmax(210px,1fr); gap:16px; align-items:start; }
.workspace-panel { border-radius:10px; padding:16px; }
.workspace-panel h2 { font-size:1.15rem; }
.workspace-checks > div { border-top:1px solid var(--line); padding:.65rem 0; font-size:.92rem; }
.workspace-checks p { display:inline-block; margin-left:.5rem; color:var(--muted); }
.workspace-checks a { display:block; font-size:.86rem; }
.work-footer { color:var(--muted); font-size:.83rem; padding:12px 20px; border-top:1px solid var(--line); }
@media(max-width:1050px) {
  .work-area { grid-template-columns:190px minmax(0,1fr); }
  .workspace-dashboard { grid-template-columns:1fr; }
}
@media(max-width:720px) {
  .work-area { grid-template-columns:minmax(0,1fr); }
  .work-sidebar { padding:12px; border-bottom:1px solid var(--line); }
  .work-sidebar > p,.side-footer { display:none; }
  .work-sidebar .brand { margin:0 0 5px; }
  .work-sidebar nav { display:flex; flex-wrap:wrap; margin:0; }
  .work-sidebar nav a { padding:.35rem .42rem; font-size:.81rem; min-height:36px; }
  .workspace-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .work-next { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
  .work-next > a { grid-column:1 / -1; justify-self:start; }
  .clinic-card { flex-direction:column; align-items:stretch; }
}
@media(max-width:430px) {
  .workspace-strip { padding-inline:12px; }
  .demo-detail { display:none; }
  .work-account .work-avatar { display:none; }
  .clinic-card-end { width:100%; max-width:none; }
}
.workspace-table th,.workspace-table td { white-space:nowrap; padding-inline:.53rem; font-size:.91rem; }
.workspace-table td:nth-child(2) { white-space:normal; min-width:125px; }
.patient-progress { display:flex; justify-content:space-between; flex-wrap:wrap; gap:.4rem; padding:.55rem; background:#fff; border:1px solid var(--line); border-radius:10px; margin:0 0 .8rem; list-style:none; }
.patient-progress li { padding:.23rem .5rem; color:var(--muted); font-size:.88rem; font-weight:650; }
.patient-progress li[aria-current="step"] { color:var(--primary); background:var(--blue); border-radius:8px; }

.catalog-pick { padding: 0.65rem 0; border-bottom: 1px solid #dee5ed; }
.catalog-pick [data-medication-detail] { margin: 0.6rem 0 0.2rem; }
[data-medication-picker] > label { margin-top: 0.6rem; }

.booking-days { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,13rem),1fr)); gap:1rem; margin-block:1rem; }
.booking-days h3 { font-size:1rem; }
.booking-slots { flex-direction:column; align-items:stretch; }
.booking-slots .button { text-align:center; }

body:has([data-call-frame]:not([hidden])) .oc-product-link{display:none}


.patient-booking { flex-wrap: wrap; }
.patient-booking-steps { flex: 0 0 100%; min-width: 0; }
.patient-booking-steps .facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(8.5rem, 100%), 1fr));
    gap: .65rem;
    margin: .5rem 0 .85rem;
}
.patient-booking-steps .facts > div { display: block; }
.patient-booking-steps .facts dd { margin: .15rem 0 0; }
