/* Lucent Psych patient portal (EHR flow rebuild, Slice 16). Always light: warm cream, deep plum, soft peach, lavender
   (lucentpsych.com palette). Mobile first; every tap target is at least 48px. */
:root{color-scheme:light only;--ink:#281a39;--muted:#5c5168;--plum:#5b2a86;--plum-2:#47206a;--peach:#f9c5b4;--peach-ink:#7f2d12;--lav:#f3eafd;--sky:#e3f3fc;--sage:#eaf3e7;--bg:#fcf9f5;--card:#ffffff;--line:#ece3f3;--ok:#2f7a4b;--warn:#9a5b00;--bad:#b3261e}
*{box-sizing:border-box}
html,body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.5 Avenir,"Avenir Next","Segoe UI",system-ui,sans-serif}
h1,h2,h3{font-family:Georgia,"Times New Roman",serif;font-weight:600;margin:0 0 6px;color:var(--ink)}
h1{font-size:26px}h2{font-size:21px}h3{font-size:17px}
a{color:var(--plum)}
.hidden{display:none!important}
.lp-top{position:sticky;top:0;z-index:5;display:flex;align-items:center;justify-content:space-between;padding:12px 16px;background:rgba(252,249,245,.94);backdrop-filter:blur(8px);border-bottom:1px solid var(--line)}
.lp-brand{display:flex;align-items:center;gap:10px}.lp-brand small{display:block;color:var(--muted);font-size:12px}
.lp-mark{width:38px;height:38px;border-radius:12px;background:linear-gradient(140deg,var(--plum),#8a4fc0);color:#fff;display:grid;place-items:center;font:700 19px Georgia,serif}
.lp-main{max-width:720px;margin:0 auto;padding:18px 16px 140px}
.lp-card{background:var(--card);border:1px solid var(--line);border-radius:20px;padding:18px;margin-bottom:14px;box-shadow:0 8px 24px rgba(91,42,134,.06)}
.lp-center{text-align:center}
.lp-hello{padding:22px 18px;border-radius:22px;background:linear-gradient(135deg,var(--lav),#fff 70%);border:1px solid var(--line);margin-bottom:14px}
.lp-hello p{margin:4px 0 0;color:var(--muted)}
.lp-tiles{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:14px}
.lp-tile{position:relative;min-height:112px;border:1px solid var(--line);border-radius:20px;background:var(--card);padding:16px;text-align:left;font:inherit;color:var(--ink);cursor:pointer;display:flex;flex-direction:column;gap:6px;box-shadow:0 6px 18px rgba(91,42,134,.05)}
.lp-tile:hover,.lp-tile:focus-visible{border-color:var(--plum);outline:none;transform:translateY(-1px)}
.lp-tile .lp-ico{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;font-size:20px}
.lp-tile strong{font-size:16px}.lp-tile small{color:var(--muted);font-size:13px;line-height:1.35}
.lp-tile.t-refill .lp-ico{background:var(--peach);color:var(--peach-ink)}.lp-tile.t-appt .lp-ico{background:var(--sky)}.lp-tile.t-paper .lp-ico{background:var(--sage)}.lp-tile.t-msg .lp-ico{background:var(--lav);color:var(--plum)}.lp-tile.t-bill .lp-ico{background:#fff1d6}.lp-tile.t-docs .lp-ico{background:#eef0f7}
.lp-badge{position:absolute;top:12px;right:12px;min-width:24px;height:24px;border-radius:999px;background:var(--plum);color:#fff;font-size:12px;font-weight:700;display:grid;place-items:center;padding:0 7px}
.lp-back{border:0;background:none;color:var(--plum);font:inherit;font-weight:600;padding:8px 0;margin-bottom:6px;cursor:pointer;min-height:44px}
.lp-field{display:flex;flex-direction:column;gap:6px;margin-bottom:14px}
.lp-field span{font-weight:600;font-size:14px}.lp-field small{color:var(--muted);font-size:13px}
.lp-field input,.lp-field select,.lp-field textarea{font:inherit;color:var(--ink);min-height:48px;padding:12px 14px;border:1.5px solid var(--line);border-radius:14px;background:#fff;width:100%}
.lp-field textarea{min-height:110px;resize:vertical}
.lp-field input:focus,.lp-field select:focus,.lp-field textarea:focus{outline:none;border-color:var(--plum);box-shadow:0 0 0 3px var(--lav)}
.lp-choices{display:grid;gap:8px;margin-bottom:14px}
.lp-choice{display:flex;align-items:center;gap:12px;min-height:52px;padding:12px 14px;border:1.5px solid var(--line);border-radius:14px;background:#fff;cursor:pointer;font:inherit;color:var(--ink);text-align:left}
.lp-choice.on{border-color:var(--plum);background:var(--lav)}
.lp-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:50px;padding:12px 20px;border-radius:999px;border:0;background:var(--plum);color:#fff;font:inherit;font-weight:700;cursor:pointer;width:100%}
.lp-btn:hover{background:var(--plum-2)}.lp-btn:disabled{opacity:.6;cursor:wait}
.lp-btn.ghost{background:#fff;color:var(--plum);border:1.5px solid var(--plum)}
.lp-link{border:0;background:none;color:var(--plum);font:inherit;font-weight:600;cursor:pointer;min-height:44px}
.lp-note{padding:12px 14px;border-radius:14px;background:var(--lav);color:var(--ink);font-size:14px;margin-bottom:14px}
.lp-note.ok{background:var(--sage)}.lp-note.warn{background:#fff3df;color:#6b3f00}.lp-note.urgent{background:#fde8e6;color:#7a1d16;border:1px solid #f3b8b2}
.lp-list{list-style:none;margin:0;padding:0}
.lp-list li{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:12px 0;border-top:1px solid var(--line)}
.lp-list li:first-child{border-top:0}
.lp-list .lp-sub{color:var(--muted);font-size:13px;display:block}
.lp-pill{font-size:12px;font-weight:700;padding:4px 10px;border-radius:999px;background:var(--lav);color:var(--plum);white-space:nowrap}
.lp-pill.ok{background:var(--sage);color:var(--ok)}.lp-pill.warn{background:#fff3df;color:var(--warn)}.lp-pill.bad{background:#fde8e6;color:var(--bad)}
.lp-thread{display:flex;flex-direction:column;gap:10px;margin-bottom:14px}
.lp-msg{max-width:86%;padding:12px 14px;border-radius:18px;white-space:pre-wrap;overflow-wrap:anywhere}
.lp-msg small{display:block;font-size:11.5px;opacity:.75;margin-top:4px}
.lp-msg.me{align-self:flex-end;background:var(--plum);color:#fff;border-bottom-right-radius:6px}
.lp-msg.team{align-self:flex-start;background:var(--lav);border-bottom-left-radius:6px}
.lp-appt{display:flex;gap:14px;align-items:center}
.lp-date{min-width:62px;text-align:center;border-radius:16px;background:var(--sky);padding:8px 6px}
.lp-date b{display:block;font:700 22px Georgia,serif}.lp-date span{font-size:12px;text-transform:uppercase;letter-spacing:.06em}
.lp-card-el{border:1.5px solid var(--line);border-radius:14px;padding:14px;background:#fff;margin-bottom:14px}
.lp-amount{font:700 30px Georgia,serif;margin:4px 0 10px}
.lp-crisis{position:fixed;left:0;right:0;bottom:0;padding:10px 16px calc(10px + env(safe-area-inset-bottom));background:#fff7f4;border-top:1px solid #f4d6cc;font-size:13px;color:#4a1d0e;text-align:center;z-index:6}
.lp-crisis a{color:var(--peach-ink);font-weight:700}
/* The Practice Current logo (owner RJ 2026-11-20): it rises into the main column's bottom padding and keeps its own room above the fixed crisis bar. */
.lp-powered{display:flex;align-items:center;justify-content:center;gap:8px;max-width:720px;margin:-112px auto 0;padding:0 16px 112px;color:var(--muted);font-size:12px}
.lp-powered img{display:block;width:auto;height:20px}
@media(min-width:620px){.lp-tiles{grid-template-columns:repeat(3,1fr)}.lp-btn{width:auto}}
.mt{margin-top:12px}
.lp-sign-cta{display:block;width:100%;text-align:left;font:inherit;color:var(--ink);background:#fff3df;border-color:#f2d9a8;cursor:pointer}
.lp-sign-cta strong{display:block;font-size:16px}
fieldset.lp-field{border:0;padding:0;margin:0 0 16px}fieldset.lp-field legend{font-weight:600;font-size:15px;margin-bottom:8px;padding:0}
.lp-req{font-size:11px;font-weight:700;color:var(--peach-ink);background:var(--peach);border-radius:999px;padding:1px 7px;margin-left:4px}
.lp-choice input{accent-color:var(--plum);width:20px;height:20px}
.lp-yn{grid-template-columns:1fr 1fr}
.lp-choice:has(input:checked){border-color:var(--plum);background:var(--lav)}
