/* Mline web app — single stylesheet (no external dependencies, offline-safe).
   Inter is self-hosted under static/web/fonts so the site still works offline. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/inter-latin-ext.1ad231aac0a8.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/inter-latin.260c81a4759b.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --teal: #0b7285;
  --teal-600: #0a5f70;
  --teal-700: #084c59;
  --accent: #15a2ad;
  --ink: #0f2b33;
  --ink-2: #40616b;
  --muted: #6b8894;
  --bg: #f4f7f8;
  --card: #ffffff;
  --line: #e2eaed;
  --line-2: #d4e0e4;
  --amber: #b7791f;
  --amber-bg: #fdf3e2;
  --green: #1f7a4d;
  --green-bg: #e6f5ec;
  --red: #b23a3a;
  --red-bg: #fdecec;
  --blue: #1d5fa8;
  --blue-bg: #e9f1fb;
  --slate: #5a6b73;
  --slate-bg: #eef2f4;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --max: 1180px;
  --radius: 12px;
  --radius-lg: 20px;
  --grad: linear-gradient(135deg, var(--accent), var(--teal));
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(15, 43, 51, .06), 0 8px 24px -12px rgba(15, 43, 51, .18);
  --shadow-sm: 0 1px 2px rgba(15, 43, 51, .08);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.5;
}
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5rem; letter-spacing: -.01em; }
h1 { font-size: 1.7rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.05rem; }
h4 { font-size: .95rem; }
p { margin: 0 0 .8rem; }
img { max-width: 100%; }
svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.muted { color: var(--muted); }
.small { font-size: .85rem; }
.mono { font-family: var(--mono); }
.nowrap { white-space: nowrap; }
.text-right { text-align: right; }
.center { text-align: center; }
.hidden { display: none !important; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  border: 1px solid transparent; border-radius: 999px;
  padding: .58rem 1.15rem; font: inherit; font-weight: 600; font-size: .92rem;
  cursor: pointer; background: var(--teal); color: #fff;
  transition: background .15s ease, border-color .15s ease, transform .05s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { background: var(--teal-600); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--teal); }
.btn--secondary { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn--secondary:hover { background: #fff; border-color: var(--teal); color: var(--teal); }
.btn--ghost { background: transparent; color: var(--ink-2); border-color: var(--line-2); }
.btn--ghost:hover { background: #fff; color: var(--teal); }
.btn--danger { background: var(--red); }
.btn--danger:hover { background: #992f2f; }
.btn--link { background: none; color: var(--teal); padding: .2rem .4rem; font-weight: 600; }
.btn--link:hover { background: none; text-decoration: underline; }
.btn--sm { padding: .35rem .8rem; font-size: .84rem; }
.btn--block { width: 100%; }
.btn--lg { padding: .8rem 1.6rem; font-size: 1rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }

/* ------------------------------------------------------------------ brand */
.brand { display: inline-flex; align-items: center; gap: .6rem; color: inherit; }
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--teal));
  color: #fff; font-weight: 800; font-size: 1.05rem; letter-spacing: -.02em;
}
.brand__name { font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; color: var(--ink); }
.brand__text { display: flex; flex-direction: column; font-weight: 800; line-height: 1.15; color: #fff; }
.brand__text small { font-weight: 500; font-size: .72rem; opacity: .75; text-transform: capitalize; }
.brand--footer .brand__mark { width: 30px; height: 30px; }

/* ------------------------------------------------------------------ topnav */
.topnav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: clamp(1rem, 3vw, 2rem);
  padding: .6rem var(--gutter);
  background: rgba(255, 255, 255, .78);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid rgba(226, 234, 237, .85);
  transition: box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.topnav.is-scrolled {
  background: rgba(255, 255, 255, .95);
  border-color: var(--line);
  box-shadow: 0 16px 34px -28px rgba(5, 38, 46, .9);
}
.topnav .brand__mark { box-shadow: 0 6px 16px -8px rgba(11, 114, 133, .9); }
.brand__name { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name small {
  font-size: .6rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
}
.topnav__links { display: flex; gap: .25rem; margin-left: auto; }
.topnav__links a {
  color: var(--ink-2); font-weight: 600; font-size: .9rem;
  padding: .45rem .75rem; border-radius: 999px;
  transition: background .15s ease, color .15s ease;
}
.topnav__links a:hover { background: #eaf4f6; color: var(--teal-700); text-decoration: none; }
.topnav__actions { display: flex; gap: .5rem; align-items: center; }
.topnav__actions form { margin: 0; }
.topnav__toggle {
  display: none; flex-direction: column; justify-content: center; gap: 4px;
  width: 40px; height: 36px; padding: 0 8px; margin-left: auto;
  background: #fff; border: 1px solid var(--line-2); border-radius: 10px; cursor: pointer;
}
.topnav__toggle span {
  display: block; height: 2px; border-radius: 2px; background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}
.topnav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.topnav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.topnav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.container { max-width: 1140px; margin: 0 auto; padding: clamp(1.25rem, 3vw, 2.5rem) clamp(1rem, 4vw, 2rem); }
.container--narrow { max-width: 780px; }
.container--wide { max-width: 1320px; }


/* ------------------------------------------------------- shared page bits */

.eyebrow { color: var(--accent); font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .5rem; }

.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem 1.25rem; box-shadow: var(--shadow);
}
.stat__value { font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; color: var(--teal); line-height: 1.1; }
.stat__label { color: var(--muted); font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.stat--plain { box-shadow: none; background: #fbfdfd; }

.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  background: #fff; border: 1px solid var(--line-2); border-radius: 999px;
  padding: .38rem .85rem; font-size: .87rem; font-weight: 600; color: var(--ink-2);
}
a.chip:hover { border-color: var(--teal); color: var(--teal); text-decoration: none; }
.chip--solid { background: var(--teal); border-color: var(--teal); color: #fff; }

/* ----------------------------------------------------------------- footer */
.footer { background: #06272f; color: #9fbfc7; padding: clamp(2.5rem, 5vw, 3.5rem) var(--gutter) 1.5rem; margin-top: auto; }
.footer__grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 2rem clamp(1.5rem, 4vw, 3rem);
}
.footer__about p { max-width: 34ch; font-size: .93rem; line-height: 1.6; margin: .9rem 0 1rem; }
.footer__badges { display: flex; flex-wrap: wrap; gap: .4rem; }
.footer h4 { color: #fff; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .85rem; }
.footer a { display: block; color: #9fbfc7; padding: .22rem 0; font-size: .92rem; transition: color .15s ease, transform .15s ease; }
.footer a:hover { color: #fff; transform: translateX(3px); text-decoration: none; }
.footer .brand__name { color: #fff; }
.footer .brand__name small { color: #6f949d; }
.footer__bottom {
  max-width: var(--max); margin: 2.25rem auto 0; padding-top: 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
  font-size: .82rem; color: #6f949d;
}

/* --------------------------------------------------------------- messages */
.messages { display: grid; gap: .5rem; margin-bottom: 1rem; }
.messages--bar { max-width: 1140px; margin: 1rem auto 0; padding: 0 clamp(1rem, 4vw, 2rem); }
.msg { padding: .7rem 1rem; border-radius: var(--radius-sm); font-size: .93rem; border: 1px solid transparent; }
.msg--success { background: var(--green-bg); color: var(--green); border-color: #c6e8d5; }
.msg--error { background: var(--red-bg); color: var(--red); border-color: #f3cdcd; }
.msg--info { background: var(--blue-bg); color: var(--blue); border-color: #cddff5; }
.msg--warning { background: var(--amber-bg); color: var(--amber); border-color: #f1dfbc; }

/* ------------------------------------------------------------------ cards */
.page-head { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; justify-content: space-between; margin-bottom: 1.25rem; }
.page-head h1 { margin: 0 0 .2rem; }
.page-head p { margin: 0; color: var(--muted); }
.page-head .btn-row { margin-left: auto; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.card + .card { margin-top: 1rem; }
.card__head {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .9rem 1.15rem; border-bottom: 1px solid var(--line); background: #fbfdfd;
}
.card__head h2, .card__head h3 { margin: 0; font-size: 1rem; }
.card__body { padding: 1.15rem; }
.card__foot { padding: .85rem 1.15rem; border-top: 1px solid var(--line); background: #fbfdfd; display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.card--flush .card__body { padding: 0; }

.grid--2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; }
.grid--3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.grid--4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; }
.stack { display: grid; gap: 1rem; }
.stack--sm { display: grid; gap: .55rem; }

/* ------------------------------------------------------------------ tables */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { padding: .7rem .9rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: #fbfdfd; font-weight: 700; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #f8fbfc; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table a { font-weight: 600; }

.empty { padding: 2.5rem 1.25rem; text-align: center; color: var(--muted); }
.empty strong { display: block; color: var(--ink); font-size: 1.02rem; margin-bottom: .35rem; }
.empty .btn { margin-top: .9rem; }

/* ------------------------------------------------------------------ badges */
.badge {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .16rem .55rem; border-radius: 999px;
  font-size: .74rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap;
}
.badge--green { background: var(--green-bg); color: var(--green); }
.badge--amber { background: var(--amber-bg); color: var(--amber); }
.badge--red { background: var(--red-bg); color: var(--red); }
.badge--blue { background: var(--blue-bg); color: var(--blue); }
.badge--teal { background: #e2f4f6; color: var(--teal); }
.badge--slate { background: var(--slate-bg); color: var(--slate); }

/* ------------------------------------------------------------------ forms */
.form { display: grid; gap: 1rem; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .85rem 1rem; }
.form-grid .field--full { grid-column: 1 / -1; }
.field { display: grid; gap: .32rem; }
.field > label { font-size: .84rem; font-weight: 700; color: var(--ink-2); }
.field .req { color: var(--red); }
.field input[type="text"], .field input[type="password"], .field input[type="email"],
.field input[type="tel"], .field input[type="number"], .field input[type="date"],
.field input[type="time"], .field input[type="url"], .field select, .field textarea {
  width: 100%; padding: .58rem .72rem; font: inherit; color: var(--ink);
  background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 78px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 17px) 55%, calc(100% - 12px) 55%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 2rem; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(21, 162, 173, .16);
}
.field .help { color: var(--muted); font-size: .8rem; }
.field .error, .errorlist { color: var(--red); font-size: .83rem; margin: 0; padding: 0; list-style: none; }
.field--error input, .field--error select, .field--error textarea { border-color: var(--red); }
.field--check { display: flex; align-items: center; gap: .5rem; }
.field--check input { width: 17px; height: 17px; accent-color: var(--teal); }
.field--check label { font-size: .92rem; font-weight: 600; color: var(--ink); margin: 0; }
.non_field_errors { color: var(--red); background: var(--red-bg); border: 1px solid #f3cdcd; padding: .6rem .8rem; border-radius: var(--radius-sm); font-size: .9rem; }
.checkbox-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .4rem .75rem; padding: 0; margin: 0; list-style: none; }
.checkbox-grid li { display: flex; align-items: center; gap: .45rem; font-size: .9rem; }
.checkbox-grid input { accent-color: var(--teal); width: 16px; height: 16px; }
.form-actions { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; padding-top: .25rem; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .9rem 1rem 1.1rem; margin: 0; }
legend { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 0 .35rem; }

/* phone group (cc select + number, grey box) */
.phone-group { display: flex; align-items: stretch; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: #fff; overflow: hidden; }
.phone-group:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(21, 162, 173, .16); }
.phone-group .phone-cc {
  width: auto; min-width: 118px; border: 0; border-right: 1px solid var(--line-2); border-radius: 0;
  background: #eef2f4; color: var(--ink); font-weight: 600; font-size: .92rem;
  padding: .55rem .6rem; appearance: none; cursor: pointer;
}
.phone-group .phone-input { border: 0; border-radius: 0; background: transparent; font-size: 1rem; letter-spacing: .01em; }
.phone-group .phone-input:focus { box-shadow: none; }
.code-input { font-family: var(--mono); letter-spacing: .35em; font-size: 1.05rem !important; }

/* auth card */
.auth-wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 2rem; align-items: center; min-height: calc(100vh - 66px); padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 4vw, 2rem); max-width: 1080px; margin: 0 auto; }
.auth-aside h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.auth-aside ul { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .7rem; }
.auth-aside li { display: flex; gap: .6rem; align-items: flex-start; color: var(--ink-2); font-size: .95rem; }
.auth-aside li svg { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 2px; }
.auth-card { background: var(--card); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow); padding: clamp(1.25rem, 3vw, 2rem); }
.auth-card h1 { font-size: 1.4rem; margin-bottom: .25rem; }
.auth-card > p.muted { margin-bottom: 1.1rem; }
.tabs { display: flex; gap: .35rem; background: var(--slate-bg); border-radius: 999px; padding: .28rem; margin-bottom: 1.15rem; }
.tab { flex: 1; text-align: center; padding: .5rem .7rem; border-radius: 999px; font-size: .89rem; font-weight: 700; color: var(--ink-2); }
.tab:hover { text-decoration: none; }
.tab.is-active { background: #fff; color: var(--teal); box-shadow: var(--shadow-sm); }
.dev-otp { background: var(--amber-bg); border: 1px dashed var(--amber); color: var(--amber); border-radius: var(--radius-sm); padding: .6rem .8rem; font-size: .88rem; margin-bottom: 1rem; }
.dev-otp code { font-family: var(--mono); font-size: 1.05rem; letter-spacing: .2em; font-weight: 700; }

/* ------------------------------------------------------------- pagination */
.pagination { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; justify-content: space-between; padding: .9rem 1.15rem; border-top: 1px solid var(--line); }
.pagination__info { color: var(--muted); font-size: .86rem; }
.page-link { min-width: 32px; text-align: center; padding: .3rem .55rem; border: 1px solid var(--line-2); border-radius: 7px; font-size: .86rem; font-weight: 600; color: var(--ink-2); background: #fff; }
.page-link:hover { border-color: var(--teal); color: var(--teal); text-decoration: none; }
.page-link.is-current { background: var(--teal); border-color: var(--teal); color: #fff; }

/* ---------------------------------------------------------------- filters */
.filters { display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-end; margin-bottom: 1.1rem; }
.filters .field { min-width: 170px; }
.filters .field--grow { flex: 1; min-width: 230px; }
.filter-pills { display: flex; flex-wrap: wrap; gap: .4rem; }
.filter-pills a { padding: .32rem .8rem; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.filter-pills a:hover { border-color: var(--teal); color: var(--teal); text-decoration: none; }
.filter-pills a.is-active { background: var(--teal); border-color: var(--teal); color: #fff; }

/* ------------------------------------------------------------ doctor card */
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 1rem; }
.doc-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; display: flex; flex-direction: column; gap: .55rem; box-shadow: var(--shadow-sm); }
.doc-card:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.doc-card__top { display: flex; gap: .8rem; align-items: flex-start; }
.avatar { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, #d8f0f3, #b8e4ea); color: var(--teal-700); font-weight: 800; font-size: 1.1rem; flex: none; }
.avatar--lg { width: 76px; height: 76px; font-size: 1.6rem; border-radius: 18px; }
.doc-card h3 { margin: 0; font-size: 1.05rem; }
.doc-card__meta { color: var(--muted); font-size: .87rem; }
.doc-card__tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.doc-card__tags .chip { font-size: .76rem; padding: .2rem .6rem; }
.doc-card__foot { margin-top: auto; padding-top: .75rem; border-top: 1px dashed var(--line); display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.doc-card__foot .next { font-size: .84rem; color: var(--teal); font-weight: 700; }
.rating { color: var(--amber); font-weight: 700; font-size: .87rem; }

/* --------------------------------------------------------- detail / kv */
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .85rem 1.25rem; margin: 0; }
.kv div { min-width: 0; }
.kv dt { font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; margin-bottom: .18rem; }
.kv dd { margin: 0; font-weight: 600; word-break: break-word; }

/* ----------------------------------------------------------------- tokens */
.token-no {
  display: inline-grid; place-items: center; min-width: 46px; height: 46px; padding: 0 .4rem;
  background: var(--teal); color: #fff; border-radius: 12px;
  font-weight: 800; font-size: 1.1rem; font-variant-numeric: tabular-nums;
}
.token-no--muted { background: var(--slate-bg); color: var(--slate); }
.token-no--live { background: linear-gradient(135deg, var(--accent), var(--teal)); box-shadow: 0 4px 12px -4px rgba(11, 114, 133, .6); }
.queue-row { display: flex; align-items: center; gap: .9rem; padding: .75rem .95rem; border-bottom: 1px solid var(--line); }
.queue-row:last-child { border-bottom: 0; }
.queue-row__who { flex: 1; min-width: 0; }
.queue-row__who strong { display: block; font-size: .96rem; }
.queue-row__who small { color: var(--muted); }
.queue-row__actions { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: flex-end; }
.queue-board { display: grid; gap: 1rem; }

/* ------------------------------------------------------------- bill builder */
.bill-lines { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.bill-line { display: grid; grid-template-columns: 1.7fr 78px 105px 90px auto; gap: .55rem; align-items: center; padding: .6rem .75rem; border-bottom: 1px solid var(--line); }
.bill-line:last-child { border-bottom: 0; }
.bill-line--head { background: #fbfdfd; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.bill-line input { width: 100%; padding: .4rem .5rem; border: 1px solid var(--line-2); border-radius: 7px; font: inherit; font-size: .88rem; }
.bill-line .line-name strong { display: block; font-size: .93rem; }
.bill-line .line-name small { color: var(--muted); }
.bill-total { display: flex; justify-content: space-between; align-items: center; padding: .9rem .2rem; font-size: 1.05rem; font-weight: 800; }
.med-search { position: relative; }
.med-results { position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; right: 0; background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius-sm); box-shadow: var(--shadow); max-height: 280px; overflow: auto; }
.med-results button { display: flex; width: 100%; justify-content: space-between; gap: .75rem; padding: .55rem .75rem; background: none; border: 0; border-bottom: 1px solid var(--line); font: inherit; font-size: .9rem; text-align: left; cursor: pointer; }
.med-results button:last-child { border-bottom: 0; }
.med-results button:hover { background: #f2f9fa; }
.med-results .stock { color: var(--muted); font-size: .82rem; white-space: nowrap; }
.med-results .stock.is-low { color: var(--red); font-weight: 700; }

/* --------------------------------------------------------------- rx sheet */
.rx-sheet { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.rx-sheet__head { display: flex; justify-content: space-between; gap: 1rem; padding: 1.25rem; border-bottom: 2px dashed var(--line-2); background: linear-gradient(180deg, #fbfefe, #fff); }
.rx-sheet__body { padding: 1.25rem; display: grid; gap: 1.15rem; }
.rx-meds { width: 100%; border-collapse: collapse; font-size: .93rem; }
.rx-meds th, .rx-meds td { padding: .6rem .55rem; border-bottom: 1px solid var(--line); text-align: left; }
.rx-meds th { font-size: .74rem; text-transform: uppercase; color: var(--muted); letter-spacing: .05em; }

/* ------------------------------------------------------------ misc blocks */
.banner { border: 1px solid var(--line); background: #fbfdfd; border-radius: var(--radius-sm); padding: .85rem 1rem; font-size: .93rem; color: var(--ink-2); display: flex; gap: .6rem; align-items: flex-start; }
.banner--warn { background: var(--amber-bg); border-color: #f1dfbc; color: var(--amber); }
.mini-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.mini-list li { display: flex; gap: .7rem; align-items: center; justify-content: space-between; padding: .6rem .75rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fbfdfd; font-size: .92rem; }
.mini-list li .when { color: var(--muted); font-size: .85rem; white-space: nowrap; }
.tabs-row { display: flex; gap: 1.25rem; border-bottom: 1px solid var(--line); margin-bottom: 1.25rem; }
.tabs-row a { padding: .6rem .1rem; font-weight: 700; font-size: .93rem; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs-row a:hover { color: var(--ink); text-decoration: none; }
.tabs-row a.is-active { color: var(--teal); border-bottom-color: var(--teal); }
.date-strip { display: flex; gap: .45rem; overflow-x: auto; padding-bottom: .35rem; margin-bottom: 1rem; }
.date-pill { flex: none; text-align: center; padding: .5rem .7rem; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: #fff; min-width: 76px; }
.date-pill small { display: block; font-size: .72rem; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.date-pill strong { font-size: 1rem; font-variant-numeric: tabular-nums; }
.date-pill:hover { text-decoration: none; border-color: var(--teal); }
.date-pill.is-active { background: var(--teal); border-color: var(--teal); color: #fff; }
.date-pill.is-active small { color: rgba(255, 255, 255, .8); }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: .55rem; }
.slot-grid label { position: relative; }
.slot-grid input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.slot {
  display: block; text-align: center; padding: .6rem .5rem; border: 1px solid var(--line-2);
  border-radius: var(--radius-sm); background: #fff; font-weight: 700; font-size: .92rem;
  font-variant-numeric: tabular-nums;
}
.slot-grid input:checked + .slot { background: var(--teal); border-color: var(--teal); color: #fff; }
.slot-grid input:focus-visible + .slot { outline: 2px solid var(--accent); outline-offset: 2px; }
.slot.is-disabled { opacity: .5; background: var(--slate-bg); }
.slot-grid input:disabled + .slot { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
.notice { padding: 1rem; text-align: center; color: var(--muted); background: #fbfdfd; border: 1px dashed var(--line-2); border-radius: var(--radius-sm); }

/* ------------------------------------------------------------ portal shell */
.portal-body { background: var(--bg); }
.app { display: grid; grid-template-columns: 246px 1fr; min-height: 100vh; }
.sidebar {
  background: linear-gradient(180deg, #08262d, #0b3742 65%, #0a4451);
  color: #cfe6ea; padding: 1.1rem .8rem; display: flex; flex-direction: column; gap: 1.1rem;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.sidebar .brand { padding: 0 .45rem; }
.sidebar .brand__mark { background: linear-gradient(135deg, var(--accent), #58d0dc); }
.nav { display: grid; gap: .18rem; }
.nav__item {
  display: flex; align-items: center; gap: .7rem; padding: .6rem .7rem;
  border-radius: 9px; color: #bcd8de; font-size: .93rem; font-weight: 600; position: relative;
}
.nav__item:hover { background: rgba(255, 255, 255, .08); color: #fff; text-decoration: none; }
.nav__item.is-active { background: rgba(255, 255, 255, .14); color: #fff; }
.nav__item.is-active::before { content: ""; position: absolute; left: -.8rem; top: 20%; bottom: 20%; width: 3px; background: var(--accent); border-radius: 0 3px 3px 0; }
.nav__icon { width: 18px; height: 18px; flex: none; opacity: .9; }
.nav__badge { margin-left: auto; background: var(--accent); color: #062830; border-radius: 999px; padding: .05rem .45rem; font-size: .74rem; font-weight: 800; }
.sidebar__footer { margin-top: auto; display: grid; gap: .6rem; }
.userchip { display: flex; align-items: center; gap: .6rem; padding: .5rem .55rem; background: rgba(255, 255, 255, .07); border-radius: 10px; }
.userchip__avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #062830; font-weight: 800; font-size: .85rem; flex: none; }
.userchip__meta { min-width: 0; display: grid; line-height: 1.25; }
.userchip__meta strong { color: #fff; font-size: .87rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.userchip__meta small { color: #9cc2cb; font-size: .76rem; text-transform: capitalize; }
.sidebar .btn--ghost { color: #cfe6ea; border-color: rgba(255, 255, 255, .25); }
.sidebar .btn--ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: 1rem clamp(1rem, 3vw, 1.75rem); background: #fff; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.topbar__title { font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; }
.topbar__title small { display: block; font-size: .82rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.topbar__actions { margin-left: auto; display: flex; gap: .5rem; flex-wrap: wrap; }
.content { padding: clamp(1rem, 3vw, 1.75rem); flex: 1; }

/* =========================================================== landing page */
/* The marketing homepage (base.html + web/home.html). Everything is prefixed
   lp- so it can never collide with the portal stylesheets above. */

.lp-main { display: block; max-width: none; padding: 0; }

.lp-hero {
  position: relative; overflow: hidden; color: #e6fafc;
  background:
    radial-gradient(760px 420px at 88% -12%, rgba(28, 186, 200, .45), transparent 62%),
    radial-gradient(620px 380px at -8% 18%, rgba(7, 66, 80, .95), transparent 60%),
    linear-gradient(163deg, #052a33 0%, #073b48 52%, #0a5a6b 100%);
}
.lp-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: radial-gradient(125% 95% at 50% 0%, #000 25%, transparent 78%);
  mask-image: radial-gradient(125% 95% at 50% 0%, #000 25%, transparent 78%);
}
.lp-hero__glow {
  position: absolute; left: 35%; right: -15%; bottom: -45%; height: 90%;
  background: radial-gradient(closest-side, rgba(45, 214, 224, .38), transparent 70%);
  filter: blur(12px); pointer-events: none;
}
.lp-hero__inner {
  position: relative; z-index: 1;
  max-width: var(--max); margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.25rem) var(--gutter) clamp(4.75rem, 9vw, 7rem);
  display: grid; grid-template-columns: 1.02fr .98fr;
  gap: clamp(2rem, 5vw, 3.75rem); align-items: center;
}
.lp-hero h1 {
  font-size: clamp(2.15rem, 5vw, 3.5rem); font-weight: 800;
  letter-spacing: -.035em; line-height: 1.06; color: #fff;
  margin: 1.1rem 0 1rem; max-width: 15ch;
}
.lp-accent {
  background: linear-gradient(115deg, #8ff2f8, #45cfdd 70%);
  -webkit-background-clip: text; background-clip: text; color: #6ce4ee;
  -webkit-text-fill-color: transparent;
}
.lp-pill {
  display: inline-flex; align-items: center; gap: .55rem;
  border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px;
  background: rgba(255, 255, 255, .08); padding: .4rem .95rem;
  font-size: .76rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(230, 250, 252, .9);
}
.lp-pill__dot, .lp-live__dot {
  width: 7px; height: 7px; border-radius: 50%; background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, .7); animation: lp-pulse 2.2s ease-out infinite;
}
@keyframes lp-pulse {
  70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}
.lp-lede {
  font-size: clamp(1rem, 1.4vw, 1.12rem); line-height: 1.65;
  color: rgba(226, 247, 250, .82); max-width: 54ch; margin-bottom: 1.75rem;
}
.lp-cta { display: flex; flex-wrap: wrap; gap: .7rem; }
.lp-hero .btn--primary {
  background: linear-gradient(135deg, #22c1d1, #0d92a6);
  color: #04222a; box-shadow: 0 16px 34px -18px rgba(34, 193, 209, .95);
}
.lp-hero .btn--primary:hover { background: linear-gradient(135deg, #38ccdb, #14a0b5); }
.lp-hero .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .42); }
.lp-hero .btn--ghost:hover { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .7); }
.lp-trust {
  list-style: none; margin: 2rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .7rem 1.5rem;
  font-size: .86rem; color: rgba(214, 240, 244, .78);
}
.lp-trust li { display: flex; align-items: center; gap: .45rem; }
.lp-trust svg { width: 17px; height: 17px; color: #5fdce9; flex: none; }

/* --- hero product mock ---------------------------------------------------- */
.lp-hero__visual { position: relative; }
.lp-mock {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .5);
  box-shadow: 0 40px 80px -40px rgba(1, 20, 26, .95), 0 0 0 1px rgba(6, 40, 50, .25);
  transform: rotate(-.6deg);
}
.lp-mock__bar {
  display: flex; align-items: center; gap: .8rem;
  padding: .55rem .9rem; background: #f4f9fa; border-bottom: 1px solid var(--line);
}
.lp-mock__dots { display: flex; gap: 5px; }
.lp-mock__dots i { width: 9px; height: 9px; border-radius: 50%; background: #d9e6ea; display: block; }
.lp-mock__url {
  font-family: var(--mono); font-size: .7rem; color: var(--muted);
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .12rem .7rem;
}
.lp-mock__body { padding: 1rem; display: grid; gap: .85rem; }
.lp-mock__head { display: flex; align-items: center; gap: .7rem; }
.lp-ava {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(135deg, #d8f0f3, #b8e4ea); color: var(--teal-700);
  font-weight: 800; font-size: .85rem; flex: none;
}
.lp-mock__title { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.lp-mock__title strong { font-size: .95rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-mock__title small { color: var(--muted); font-size: .8rem; }
.lp-live {
  display: inline-flex; align-items: center; gap: .38rem; flex: none;
  background: var(--green-bg); color: var(--green); border: 1px solid #c6e8d5;
  border-radius: 999px; padding: .2rem .6rem; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
}
.lp-live__dot { background: var(--green); animation: none; }
.lp-q { display: grid; gap: .45rem; }
.lp-q__row {
  display: flex; align-items: center; gap: .75rem;
  padding: .55rem .65rem; border: 1px solid var(--line); border-radius: 12px; background: #fbfdfd;
}
.lp-q__row.is-active {
  border-color: #bde7ec; background: #f0fbfc;
  box-shadow: 0 10px 22px -16px rgba(21, 162, 173, 1);
}
.lp-q__row.is-done { opacity: .7; }
.lp-q__row .token-no { min-width: 54px; height: 40px; font-size: 1rem; }
.lp-q__who { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.lp-q__who strong { font-size: .88rem; color: var(--ink); }
.lp-q__who small { font-size: .76rem; color: var(--muted); }
.lp-me {
  border: 1px dashed var(--line-2); border-radius: 12px; background: #fff;
  padding: .7rem .8rem; display: grid; gap: .5rem;
}
.lp-me__top { display: flex; justify-content: space-between; align-items: baseline; font-size: .85rem; color: var(--ink-2); }
.lp-me__top b { font-size: 1.05rem; color: var(--teal-700); letter-spacing: -.02em; }
.lp-me__eta { color: var(--teal); font-weight: 700; }
.lp-bar { height: 8px; background: #e7eff2; border-radius: 999px; overflow: hidden; }
.lp-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--teal)); }
.lp-me__foot { font-size: .75rem; color: var(--muted); }

.lp-float {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: .6rem;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: .55rem .8rem; box-shadow: 0 24px 46px -26px rgba(1, 20, 26, .95);
}
.lp-float > span:last-child { display: grid; line-height: 1.3; }
.lp-float strong { font-size: .84rem; color: var(--ink); }
.lp-float small { font-size: .74rem; color: var(--muted); }
.lp-float__icon {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  display: grid; place-items: center; background: #e6f4f6; color: var(--teal);
}
.lp-float__icon--ok { background: var(--green-bg); color: var(--green); }
.lp-float__icon svg { width: 16px; height: 16px; }
.lp-float--a { top: -30px; left: -34px; animation: lp-float 6s ease-in-out infinite; }
.lp-float--b { bottom: -30px; right: -30px; animation: lp-float 7s ease-in-out infinite .9s; }
@keyframes lp-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* --- stats ---------------------------------------------------------------- */
.lp-stats {
  position: relative; z-index: 4;
  width: min(var(--max), calc(100% - (2 * var(--gutter))));
  margin: -3.5rem auto 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: 0 34px 70px -40px rgba(1, 20, 26, .8); overflow: hidden;
}
.lp-stats__item { padding: 1.35rem 1.5rem; }
.lp-stats__item + .lp-stats__item { border-left: 1px solid var(--line); }
.lp-stats__value {
  font-size: clamp(1.6rem, 2.6vw, 2.15rem); font-weight: 800; letter-spacing: -.035em;
  color: var(--teal-700); line-height: 1.05; font-variant-numeric: tabular-nums;
}
.lp-stats__label {
  margin-top: .3rem; color: var(--muted); font-size: .74rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase;
}

/* --- trust strip ---------------------------------------------------------- */
.lp-strip {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(1.75rem, 4vw, 2.5rem) var(--gutter) 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem;
}
.lp-strip__label {
  font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); flex: none;
}
.lp-strip__row { display: flex; flex-wrap: wrap; gap: .5rem .9rem; }
.lp-strip__item {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .88rem; font-weight: 600; color: var(--ink-2);
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .35rem .85rem;
}
.lp-strip__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }

/* --- section shells ------------------------------------------------------- */
.lp-section {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(3rem, 6.5vw, 5rem) var(--gutter);
}
.lp-section--tint {
  max-width: none;
  padding-inline: max(var(--gutter), calc((100% - var(--max)) / 2));
  background: linear-gradient(180deg, #eef5f7 0%, #e8f1f4 100%);
}
.lp-head { max-width: 700px; margin: 0 auto clamp(2rem, 4vw, 3rem); text-align: center; }
.lp-head h2 {
  font-size: clamp(1.65rem, 3.2vw, 2.4rem); font-weight: 800;
  letter-spacing: -.03em; line-height: 1.14; margin-bottom: .7rem;
}
.lp-head p { color: var(--ink-2); font-size: 1.03rem; margin: 0; }
.lp-center { text-align: center; margin-top: 1.75rem; }

/* --- steps ---------------------------------------------------------------- */
.lp-steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.15rem;
  counter-reset: lpstep;
}
.lp-step {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.5rem 1.35rem 1.4rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.lp-step:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); }
.lp-step__n {
  position: absolute; top: 1.15rem; right: 1.2rem;
  font-size: .78rem; font-weight: 800; color: var(--teal);
  background: #e6f4f6; border-radius: 999px; padding: .18rem .6rem;
  letter-spacing: .05em;
}
.lp-step__icon {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, #e4f6f8, #d2eff3); color: var(--teal-700);
  margin-bottom: 1rem;
}
.lp-step__icon svg { width: 22px; height: 22px; }
.lp-step h3 { font-size: 1.02rem; margin-bottom: .4rem; letter-spacing: -.015em; }
.lp-step p { color: var(--ink-2); font-size: .92rem; line-height: 1.55; margin: 0; }

/* --- feature / role cards ------------------------------------------------- */
.lp-grid { display: grid; gap: 1.15rem; }
.lp-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.lp-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.6rem 1.45rem; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.lp-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cfe4e9; }
.lp-card__icon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--grad); color: #fff; margin-bottom: 1.05rem;
  box-shadow: 0 12px 24px -14px rgba(11, 114, 133, 1);
}
.lp-card__icon svg { width: 23px; height: 23px; }
.lp-card h3 { font-size: 1.05rem; margin-bottom: .45rem; letter-spacing: -.015em; }
.lp-card p { color: var(--ink-2); font-size: .93rem; line-height: 1.55; margin: 0; }

/* --- product tour rows ---------------------------------------------------- */
.lp-row {
  display: grid; grid-template-columns: .95fr 1.05fr;
  gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.lp-row:last-child { margin-bottom: 0; }
.lp-row--flip .lp-row__copy { order: 2; }
.lp-tag {
  display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .11em;
  text-transform: uppercase; color: var(--teal-700);
  background: #e6f4f6; border: 1px solid #cde9ee; border-radius: 999px;
  padding: .28rem .75rem; margin-bottom: .9rem;
}
.lp-row__copy h3 {
  font-size: clamp(1.35rem, 2.6vw, 1.9rem); font-weight: 800; letter-spacing: -.03em;
  line-height: 1.15; margin-bottom: .7rem;
}
.lp-row__copy > p { color: var(--ink-2); font-size: 1rem; line-height: 1.6; margin-bottom: 1rem; }
.lp-ticks { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; gap: .5rem; }
.lp-ticks li { position: relative; padding-left: 1.7rem; color: var(--ink); font-size: .94rem; font-weight: 500; }
.lp-ticks li::before {
  content: "\2713"; position: absolute; left: 0; top: .1rem;
  width: 17px; height: 17px; border-radius: 50%;
  background: #e0f5f8; color: var(--teal-700);
  font-size: .68rem; font-weight: 800; line-height: 17px; text-align: center;
}

.lp-frame {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow);
}
.lp-frame__bar {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .75rem 1.1rem; background: #fbfdfd; border-bottom: 1px solid var(--line);
  font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.lp-frame__body { padding: 1.1rem; display: grid; gap: .9rem; }
.lp-frame__body--flush { padding: .35rem 0 0; gap: 0; }
.lp-frame__foot {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  flex-wrap: wrap; padding: .85rem 1.1rem; border-top: 1px dashed var(--line-2);
  background: #fbfdfd; margin-top: .9rem;
}
.lp-frame__foot--total strong { font-size: 1.1rem; color: var(--teal-700); }
.lp-frame__body > .lp-frame__foot { margin-top: 0; }
.lp-frame__body--flush > .lp-frame__foot { margin-top: .9rem; }
.lp-frame .date-strip, .lp-frame .slot-grid { margin: 0; }
.lp-frame .queue-row { padding-inline: 1.1rem; }
.lp-frame .bill-line { border-radius: 0; }
.lp-frame .line-name strong { display: block; font-size: .9rem; }
.lp-frame .line-name small { color: var(--muted); font-size: .74rem; }
.lp-frame .bill-line > span:not(.line-name) { font-variant-numeric: tabular-nums; }

/* --- doctors -------------------------------------------------------------- */
.lp-section .doc-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }

/* --- specialties ---------------------------------------------------------- */
.lp-chips { display: flex; flex-wrap: wrap; gap: .55rem; justify-content: center; }
.lp-chips .chip { padding: .45rem 1rem; font-size: .9rem; transition: transform .15s ease, border-color .15s ease, color .15s ease; }
.lp-chips .chip:hover { transform: translateY(-2px); border-color: var(--teal); color: var(--teal); text-decoration: none; }

/* --- portals -------------------------------------------------------------- */
.lp-role {
  display: flex; flex-direction: column; gap: .5rem;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem; transition: transform .2s ease, box-shadow .2s ease;
}
.lp-role:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.lp-role__icon {
  width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center;
  background: #e6f4f6; color: var(--teal-700); margin-bottom: .35rem;
}
.lp-role__icon svg { width: 24px; height: 24px; }
.lp-role h3 { margin: 0 0 .15rem; font-size: 1.2rem; letter-spacing: -.02em; }
.lp-role ul { list-style: none; margin: .35rem 0 1.25rem; padding: 0; display: grid; gap: .5rem; }
.lp-role li { position: relative; padding-left: 1.35rem; color: var(--ink-2); font-size: .93rem; }
.lp-role li::before {
  content: ""; position: absolute; left: 0; top: .5rem;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.lp-role .btn { align-self: flex-start; margin-top: auto; }
.lp-role--feature {
  background: linear-gradient(160deg, #062f39, #0a5a6b); border-color: transparent; color: #dcf5f8;
  box-shadow: 0 30px 60px -40px rgba(6, 47, 57, 1);
}
.lp-role--feature .lp-role__icon { background: rgba(255, 255, 255, .14); color: #8ff2f8; }
.lp-role--feature h3 { color: #fff; }
.lp-role--feature li { color: rgba(220, 245, 248, .82); }
.lp-role--feature li::before { background: #5fdce9; }
.lp-role--feature .btn--secondary {
  background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .38);
}
.lp-role--feature .btn--secondary:hover { background: #fff; color: var(--teal-700); border-color: #fff; }

/* --- faq ------------------------------------------------------------------ */
.lp-faq { max-width: 800px; margin: 0 auto; display: grid; gap: .7rem; }
.lp-faq__item {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 0 1.2rem; transition: border-color .15s ease, box-shadow .15s ease;
}
.lp-faq__item[open] { border-color: #cde6eb; box-shadow: var(--shadow-sm); }
.lp-faq__item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center;
  justify-content: space-between; gap: 1rem;
  padding: 1.05rem 0; font-weight: 700; font-size: 1rem; color: var(--ink);
}
.lp-faq__item summary::-webkit-details-marker { display: none; }
.lp-faq__item summary::after {
  content: "+"; flex: none; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.05rem; font-weight: 600;
  background: #e6f4f6; color: var(--teal-700); transition: transform .2s ease, background .2s ease;
}
.lp-faq__item[open] summary::after { content: "–"; transform: rotate(180deg); background: var(--teal); color: #fff; }
.lp-faq__item p { margin: 0 0 1.15rem; color: var(--ink-2); font-size: .95rem; line-height: 1.6; }

/* --- closing cta ---------------------------------------------------------- */
.lp-cta-band {
  max-width: var(--max); margin: 0 auto clamp(3rem, 6vw, 4.5rem);
  padding-inline: var(--gutter);
}
.lp-cta-band__inner {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, #0a5f70 0%, #0d8ba1 55%, #16b6c6 100%);
  color: #fff; border-radius: 26px; padding: clamp(2rem, 4.5vw, 3.25rem);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.75rem; box-shadow: 0 40px 70px -45px rgba(10, 95, 112, 1);
}
.lp-cta-band__inner::after {
  content: ""; position: absolute; right: -80px; top: -120px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .28), transparent 70%);
  pointer-events: none;
}
.lp-cta-band h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -.03em; margin-bottom: .5rem; }
.lp-cta-band p { color: rgba(255, 255, 255, .86); max-width: 48ch; margin: 0; font-size: 1rem; }
.lp-cta-band__inner > * { position: relative; z-index: 1; }
.lp-cta-band__actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.btn--light { background: #fff; color: var(--teal-700); }
.btn--light:hover { background: #eefbfc; color: var(--teal-700); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn--outline-light:hover { background: rgba(255, 255, 255, .15); color: #fff; border-color: #fff; }

/* --- motion --------------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(20px); }
.js .reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .55s ease, transform .55s cubic-bezier(.2, .7, .3, 1);
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .lp-float, .lp-pill__dot { animation: none !important; }
}

/* --- landing responsive --------------------------------------------------- */
@media (max-width: 1040px) {
  .lp-hero__inner { grid-template-columns: 1fr; padding-bottom: clamp(4rem, 8vw, 5.5rem); }
  .lp-hero__copy { text-align: center; }
  .lp-hero h1 { margin-inline: auto; max-width: 18ch; }
  .lp-lede { margin-inline: auto; }
  .lp-cta, .lp-trust { justify-content: center; }
  .lp-hero__visual { max-width: 560px; margin: 1.5rem auto 0; }
  .lp-steps { grid-template-columns: repeat(2, 1fr); }
  .lp-row, .lp-row--flip { grid-template-columns: 1fr; }
  .lp-row--flip .lp-row__copy { order: 0; }
  .lp-row__copy { max-width: 640px; }
}
@media (max-width: 760px) {
  .lp-stats { grid-template-columns: repeat(2, 1fr); }
  .lp-stats__item { padding: 1.1rem 1.2rem; }
  .lp-stats__item + .lp-stats__item { border-left: 0; }
  .lp-stats__item:nth-child(even) { border-left: 1px solid var(--line); }
  .lp-stats__item:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .lp-strip { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .lp-float--a { top: -22px; left: -8px; }
  .lp-float--b { bottom: -22px; right: -6px; }
  .lp-mock { transform: none; }
  .lp-frame .bill-line { grid-template-columns: 1fr auto auto; }
  .lp-frame .bill-line > span:nth-child(4), .lp-frame .bill-line > span:nth-child(5) { display: none; }
  .lp-frame__foot { padding-inline: .9rem; }
}
@media (max-width: 560px) {
  .lp-steps { grid-template-columns: 1fr; }
  .lp-float { display: none; }
  .lp-mock__url { display: none; }
}

/* --- topnav: collapsible menu -------------------------------------------- */
.topnav__mobile-only { display: none; }
@media (min-width: 641px) and (max-width: 940px) {
  .lp-frame .bill-line { grid-template-columns: 1.7fr 70px 95px 80px auto; }
}
@media (max-width: 860px) {
  .topnav { flex-wrap: wrap; row-gap: 0; }
  .topnav__toggle { display: flex; }
  .topnav__actions { margin-left: auto; }
  .topnav__links {
    display: none; order: 3; width: 100%; margin-left: 0;
    flex-direction: column; gap: .1rem;
    padding: .35rem 0 .55rem; border-top: 1px solid var(--line);
  }
  .topnav__links.is-open { display: flex; }
  .topnav__links a { padding: .7rem .8rem; border-radius: 10px; font-size: .95rem; }
}
@media (max-width: 640px) {
  .brand__name small { display: none; }
  .topnav__mobile-only { display: block; }
  .topnav--anon .topnav__actions .btn--ghost { display: none; }
}

/* ------------------------------------------------------------ responsive */
@media (max-width: 940px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: column; }
  .nav { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); display: grid; }
  .nav__item.is-active::before { display: none; }
  .sidebar__footer { margin-top: 0; grid-auto-flow: column; align-items: center; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .bill-line { grid-template-columns: 1fr 1fr; }
  .bill-line--head { display: none; }
}
@media (max-width: 640px) {
  .page-head { align-items: flex-start; }
  .queue-row { flex-wrap: wrap; }
  .queue-row__actions { justify-content: flex-start; width: 100%; }
}
@media print {
  .sidebar, .topbar, .footer, .topnav, .btn { display: none !important; }
  .app { grid-template-columns: 1fr; }
  body { background: #fff; }
}
