@font-face{font-family:"IBM Plex Sans";font-weight:400;font-display:swap;src:url("ibm-plex-sans-latin-400-normal.woff2") format("woff2");}
@font-face{font-family:"IBM Plex Sans";font-weight:600;font-display:swap;src:url("ibm-plex-sans-latin-600-normal.woff2") format("woff2");}
@font-face{font-family:"IBM Plex Sans";font-weight:700;font-display:swap;src:url("ibm-plex-sans-latin-700-normal.woff2") format("woff2");}
:root{--brand:#0b2545; --brand2:#13315c; --acc:#2f6fed; --acc-soft:#e8f0ff; --line:#e2e7ef; --muted:#64748b; --text:#0f1b2d; --bg:#f3f5f9; --ok:#16a34a; --bad:#dc2626;}
*{box-sizing:border-box;} body{margin:0; font-family:"IBM Plex Sans","Segoe UI",Arial,sans-serif; background:var(--bg); color:var(--text); font-size:15px;}
a{color:var(--acc);}
.pub-top{background:linear-gradient(135deg, var(--brand), var(--brand2)); color:#fff; padding:22px 20px 70px;}
.pub-top .in{max-width:1040px; margin:0 auto; display:flex; gap:14px; align-items:center; justify-content:space-between; flex-wrap:wrap;}
.pub-top .brand{display:flex; gap:12px; align-items:center; min-width:0;}
.pub-top .brand img{width:52px; height:52px; object-fit:contain; background:#fff; border-radius:12px; padding:4px; flex:none;}
.pub-top h1{margin:0; font-size:22px; letter-spacing:-.01em;} .pub-top p{margin:3px 0 0; color:#c9d6ea; font-size:13.5px;}
.pub-top .tops{display:flex; gap:8px; flex-wrap:wrap;}
.pub-top .ph{background:rgba(255,255,255,.12); border-radius:999px; padding:8px 14px; font-size:13px; color:#fff; text-decoration:none; white-space:nowrap;}
.pub-wrap{max-width:1040px; margin:-50px auto 40px; padding:0 14px;}
.pub-card{background:#fff; border:1px solid var(--line); border-radius:18px; box-shadow:0 12px 40px rgba(15,27,45,.08); padding:22px;}
.flash{padding:11px 14px; border-radius:10px; margin-bottom:14px; font-size:14px;} .flash-error{background:#fdecec; color:#a12727;} .flash-success{background:#e7f7ed; color:#177249;}
label{display:block; font-size:12.5px; font-weight:600; color:#475569; margin-bottom:5px;}
input, select, textarea{width:100%; padding:11px 12px; border:1px solid #cfd7e3; border-radius:10px; font:inherit; font-size:14.5px; background:#fff; color:var(--text);}
input:focus, select:focus, textarea:focus{outline:none; border-color:var(--acc); box-shadow:0 0 0 3px rgba(47,111,237,.15);}
.btn{display:inline-flex; align-items:center; justify-content:center; gap:6px; border:0; border-radius:12px; padding:13px 20px; font:600 15px inherit; font-family:inherit; cursor:pointer; text-decoration:none;}
.btn-primary{background:var(--brand); color:#fff;} .btn-primary:disabled{opacity:.45; cursor:not-allowed;}
.btn-outline{background:#fff; border:1px solid #cfd7e3; color:var(--text);}
.btn-danger{background:var(--bad); color:#fff;}
.muted{color:var(--muted); font-size:13px;}
.pub-foot{text-align:center; color:var(--muted); font-size:12.5px; margin:24px 0;}
/* booking page */
.steps{display:flex; gap:8px; margin-bottom:18px; flex-wrap:wrap;}
.steps span{flex:1; min-width:110px; text-align:center; font-size:12.5px; font-weight:600; color:var(--muted); padding:8px; border-radius:10px; background:var(--bg);}
.steps span.on{background:var(--acc-soft); color:var(--acc);} .steps span.done{background:#e7f7ed; color:var(--ok);}
.grid{display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:20px; align-items:start;}
.sec{margin-bottom:22px;} .sec h3{margin:0 0 10px; font-size:16px;}
.chips{display:flex; gap:8px; flex-wrap:wrap; margin-bottom:10px;}
.chip{border:1px solid var(--line); background:#fff; border-radius:999px; padding:7px 13px; font-weight:600; font-size:13px; font-family:inherit; cursor:pointer; color:var(--text);}
.chip.on{background:var(--brand); border-color:var(--brand); color:#fff;}
.docs{display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:10px;}
.doc{border:1.5px solid var(--line); border-radius:14px; padding:12px 14px; cursor:pointer; background:#fff; text-align:left; font-family:inherit; color:var(--text);}
.doc:hover{border-color:var(--acc);} .doc.on{border-color:var(--acc); background:var(--acc-soft);}
.doc b{display:block; font-size:14.5px;} .doc small{display:block; color:var(--muted); font-size:12.5px; margin-top:2px;}
.av{width:38px; height:38px; border-radius:12px; background:var(--acc-soft); color:var(--acc); display:inline-flex; align-items:center; justify-content:center; font-weight:700; float:right;}
.dates{display:flex; gap:8px; overflow-x:auto; padding-bottom:6px;}
.date{min-width:64px; border:1.5px solid var(--line); border-radius:12px; padding:8px 6px; text-align:center; background:#fff; cursor:pointer; font-family:inherit; color:var(--text);}
.date b{display:block; font-size:18px;} .date small{display:block; font-size:11px; color:var(--muted); text-transform:uppercase;}
.date.on{border-color:var(--acc); background:var(--acc-soft);}
.slots{display:grid; grid-template-columns:repeat(auto-fill,minmax(88px,1fr)); gap:8px;}
.slot{border:1.5px solid var(--line); border-radius:10px; padding:7px 4px; background:#fff; font-weight:600; font-size:13px; font-family:inherit; cursor:pointer; color:var(--text); line-height:1.25;}
.slot small{display:block; font-weight:400; font-size:10.5px; color:var(--muted);}
.slot:disabled{background:var(--bg); color:#b6c0cf; cursor:not-allowed; text-decoration:line-through;}
.slot.on{background:var(--acc); border-color:var(--acc); color:#fff;} .slot.on small{color:#dbe6ff;}
.form2{display:grid; grid-template-columns:1fr 1fr; gap:12px;}
.sum{position:sticky; top:14px; background:var(--bg); border-radius:16px; padding:16px;}
.sum div{display:flex; justify-content:space-between; gap:10px; padding:7px 0; border-bottom:1px dashed var(--line); font-size:13.5px;}
.sum div span:first-child{color:var(--muted);}
.hp{position:absolute; left:-9999px;}
/* confirmation */
.ok{width:58px; height:58px; border-radius:50%; background:#e7f7ed; color:var(--ok); display:flex; align-items:center; justify-content:center; font-size:30px; margin:0 auto 10px;}
.ref{font-size:28px; font-weight:700; letter-spacing:2px; text-align:center; color:var(--brand); margin:6px 0 4px;}
.tok{display:flex; justify-content:center; gap:10px; margin:10px 0 4px;}
.tok div{background:var(--acc-soft); color:var(--acc); border-radius:14px; padding:8px 18px; text-align:center;}
.tok b{display:block; font-size:24px;} .tok small{font-size:11px; text-transform:uppercase; letter-spacing:.05em;}
.det div{display:flex; justify-content:space-between; gap:10px; padding:10px 0; border-bottom:1px dashed var(--line);}
.det div span:first-child{color:var(--muted);}
.acts{display:flex; gap:10px; flex-wrap:wrap; justify-content:center; margin-top:18px;}
.badge{display:inline-block; padding:3px 10px; border-radius:999px; font-size:12px; font-weight:600; background:var(--bg);}
.badge.Booked{background:#e8f0ff; color:#2f6fed;} .badge.Arrived{background:#e7f7ed; color:#177249;} .badge.Cancelled,.badge.No-show{background:#fdecec; color:#a12727;}
@media (max-width:820px){ .grid{grid-template-columns:minmax(0,1fr);} .sum{position:static;} .form2{grid-template-columns:1fr;} .pub-top h1{font-size:19px;} }
@media print{ .no-print{display:none !important;} body{background:#fff;} .pub-top{padding:14px; color:#000; background:none;} .pub-top p{color:#333;} .pub-wrap{margin:0;} .pub-card{box-shadow:none;} }

/* live queue / today box */
.live{border:1.5px solid #bfe3cb; background:#f3fbf6; border-radius:14px; padding:12px 14px; margin:14px 0;}
.live-h{font-weight:700; font-size:13px; color:#177249; display:flex; align-items:center; gap:8px; margin-bottom:6px;}
.dot{width:9px; height:9px; border-radius:50%; background:#16a34a; box-shadow:0 0 0 0 rgba(22,163,74,.6); animation:pulse 1.6s infinite;}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(22,163,74,.55);}70%{box-shadow:0 0 0 9px rgba(22,163,74,0);}100%{box-shadow:0 0 0 0 rgba(22,163,74,0);}}
.late{background:#fff7e6; border:1px solid #f5d27a; color:#7a4b00; border-radius:10px; padding:7px 10px; font-size:13px; margin:6px 0;}
.doc .late{margin:6px 0 0; padding:4px 8px; font-size:12px;}
.date small.cnt{font-weight:600; text-transform:none; margin-top:2px;}
.date small.cnt.c-ok{color:#177249;} .date small.cnt.c-no{color:#a12727;}
.date:disabled{opacity:.5; cursor:not-allowed;}
.qgrid{display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:12px;}
.qcard{border:1.5px solid var(--line); border-radius:14px; padding:14px; background:#fff;}
.qcard h3{margin:0; font-size:15px;} .qcard .dept{color:var(--muted); font-size:12.5px;}
.qnow{margin:10px 0 6px; text-align:center; background:var(--acc-soft); border-radius:12px; padding:10px;}
.qnow small{display:block; font-size:11px; text-transform:uppercase; letter-spacing:.05em; color:var(--acc);}
.qnow b{font-size:32px; color:var(--brand);}
.qmeta{display:flex; justify-content:space-between; font-size:13px; color:var(--muted);}
.resch{border-top:1px dashed var(--line); margin-top:16px; padding-top:12px;}
.live .tok{display:grid; grid-template-columns:repeat(auto-fit,minmax(88px,1fr)); gap:8px; margin:8px 0 4px;}
.live .tok div{padding:8px 6px; min-width:0;} .live .tok b{font-size:22px;} .live .tok small{display:block; line-height:1.25;}

/* ===== v1.4 - refreshed look ===== */
body{background:radial-gradient(900px 420px at 85% 0%, color-mix(in srgb, var(--acc) 10%, transparent), transparent 70%), var(--bg);}
.pub-top{position:relative; overflow:hidden; padding:26px 20px 84px;
  background:radial-gradient(700px 300px at 15% -20%, color-mix(in srgb, var(--brand2) 60%, #4f7cff), transparent 70%), linear-gradient(135deg, var(--brand), var(--brand2));}
.pub-top::after{content:""; position:absolute; right:-80px; top:-80px; width:300px; height:300px; border-radius:50%; border:44px solid rgba(255,255,255,.05);}
.pub-top .in{position:relative; z-index:1;}
.pub-top h1{font-size:24px;}
.pub-top .ph{backdrop-filter:blur(6px); border:1px solid rgba(255,255,255,.14); transition:background .15s;}
.pub-top .ph:hover{background:rgba(255,255,255,.22);}
.pub-wrap{margin-top:-60px; position:relative; z-index:2;}
.pub-card{border-radius:22px; padding:24px; box-shadow:0 1px 2px rgba(15,27,45,.05), 0 24px 60px rgba(15,27,45,.12);}
.trust{display:flex; flex-wrap:wrap; gap:8px; margin:-4px 0 18px;}
.trust span{font-size:12.5px; font-weight:600; color:#334155; background:#f6f8fc; border:1px solid var(--line); border-radius:999px; padding:6px 12px;}
.steps{counter-reset:st;}
.steps span{position:relative; border:1px solid transparent; padding:10px 8px;}
.steps span.done::before{content:"\2713  ";}
.steps span.on{border-color:color-mix(in srgb, var(--acc) 35%, transparent); box-shadow:0 4px 14px color-mix(in srgb, var(--acc) 15%, transparent);}
.sec h3{font-size:17px; letter-spacing:-.01em;}
.doc{position:relative; padding:14px 14px 12px; border-radius:16px; transition:border-color .15s, box-shadow .15s, transform .12s;}
.doc:hover{box-shadow:0 8px 22px rgba(15,27,45,.08); transform:translateY(-1px);}
.doc.on{box-shadow:0 0 0 3px color-mix(in srgb, var(--acc) 22%, transparent);}
.av{width:44px; height:44px; border-radius:14px; font-size:18px; color:#fff;
  background:linear-gradient(135deg, hsl(var(--h, 220) 70% 55%), hsl(calc(var(--h, 220) + 35) 70% 45%)); box-shadow:0 6px 14px hsl(var(--h, 220) 60% 50% / .3);}
.nx{display:inline-block; margin-top:8px; font-size:11.5px; font-weight:600; padding:3px 9px; border-radius:999px; background:#f1f5f9; color:#64748b; min-height:20px;}
.nx:empty{background:linear-gradient(90deg,#f1f5f9,#e2e8f0,#f1f5f9); background-size:200% 100%; animation:shim 1.2s infinite; width:120px;}
@keyframes shim{to{background-position:-200% 0;}}
.nx.ok{background:#e7f7ed; color:#177249;} .nx.soon{background:#e8f0ff; color:#2f6fed;} .nx.no{background:#fdecec; color:#a12727;}
.date{min-width:68px; border-radius:14px; transition:border-color .15s, transform .12s;}
.date:not(:disabled):hover{border-color:var(--acc); transform:translateY(-1px);}
.date.on{box-shadow:0 0 0 3px color-mix(in srgb, var(--acc) 20%, transparent);}
.slot{border-radius:12px; padding:9px 4px;}
.slot:not(:disabled):hover{border-color:var(--acc);}
.me{background:#f6f8fc; border:1px dashed var(--line); border-radius:12px; padding:8px 12px; font-size:13px; margin-bottom:12px;}
.sum{background:#fff; border:1px solid var(--line); box-shadow:0 10px 30px rgba(15,27,45,.06);}
.btn-primary{background:linear-gradient(180deg, color-mix(in srgb, var(--brand) 82%, #5b8dff), var(--brand)); box-shadow:0 6px 16px color-mix(in srgb, var(--brand) 30%, transparent);}
.how{max-width:1040px; margin:22px auto 0;}
.how h3{text-align:center; font-size:15px; color:var(--muted); font-weight:600; margin:0 0 12px;}
.how-g{display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:12px;}
.how-g div{background:#fff; border:1px solid var(--line); border-radius:16px; padding:14px; display:flex; gap:12px; align-items:center; font-weight:600; font-size:14px;}
.how-g b{width:34px; height:34px; border-radius:50%; background:var(--acc-soft); color:var(--acc); display:flex; align-items:center; justify-content:center; flex:none;}
.pub-info{max-width:1040px; margin:22px auto 0; background:#fff; border:1px solid var(--line); border-radius:16px; padding:14px 18px;
  display:flex; gap:12px; align-items:center; justify-content:space-between; flex-wrap:wrap;}
.pub-info span{display:block; color:var(--muted); font-size:13px; margin-top:2px;}
.pi-acts{display:flex; gap:8px; flex-wrap:wrap;} .pi-acts .btn{padding:9px 14px; font-size:13.5px;}
/* ticket */
.ticket{margin:16px 0 6px; border-radius:18px; overflow:hidden; border:1px solid var(--line); box-shadow:0 12px 30px rgba(15,27,45,.08); background:#fff;}
.tk-head{display:flex; justify-content:space-between; align-items:center; gap:10px; padding:12px 16px; color:#fff; background:linear-gradient(135deg, var(--brand), var(--brand2));}
.tk-head small{display:block; font-size:11px; letter-spacing:.06em; text-transform:uppercase; opacity:.75;} .tk-head b{font-size:14px;}
.tk-main{display:flex; gap:16px; align-items:center; padding:18px 16px 14px;}
.tk-token{width:96px; height:96px; border-radius:50%; flex:none; display:flex; flex-direction:column; align-items:center; justify-content:center;
  background:var(--acc-soft); color:var(--acc); border:3px solid #fff; box-shadow:0 0 0 2px color-mix(in srgb, var(--acc) 30%, transparent);}
.tk-token small{font-size:10.5px; text-transform:uppercase; letter-spacing:.05em;} .tk-token b{font-size:36px; line-height:1;}
.tk-when{display:flex; flex-direction:column; gap:3px; min-width:0;} .tk-when b{font-size:17px;} .tk-when span{color:var(--muted); font-size:13.5px;}
.tk-when .tk-time{font-size:22px; font-weight:700; color:var(--text);}
.tk-cut{position:relative; border-top:2px dashed var(--line); margin:0 14px;}
.tk-cut::before, .tk-cut::after{content:""; position:absolute; top:-12px; width:22px; height:22px; border-radius:50%; background:var(--bg); border:1px solid var(--line);}
.tk-cut::before{left:-26px;} .tk-cut::after{right:-26px;}
.tk-ref{text-align:center; padding:12px 16px 16px;}
.tk-ref small{display:block; color:var(--muted); font-size:11.5px; text-transform:uppercase; letter-spacing:.06em;}
.tk-ref b{display:block; font-size:28px; letter-spacing:3px; color:var(--brand); margin:2px 0;}
.tk-ref span{font-size:12.5px; color:var(--muted);}
@media (max-width:820px){
  .pub-top{padding:20px 16px 76px;} .pub-top h1{font-size:19px;}
  .pub-card{padding:16px; border-radius:18px;}
  .how-g{grid-template-columns:1fr;}
  .sum{position:sticky; bottom:8px; top:auto; z-index:5; padding:12px; box-shadow:0 -6px 24px rgba(15,27,45,.14);}
  .sum > div:not(#sFeeRow), .sum p, .sum h3{display:none;}
  .sum::before{content:attr(data-line); display:block; font-size:13px; font-weight:600; margin-bottom:8px; color:var(--text);}
}
@media print{ .ticket{box-shadow:none;} .tk-head{color:#000; background:none; border-bottom:1px solid #000;} }
/* ---------------- patient login & health records (1.5) */
.pt-auth{display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr); gap:18px; align-items:start;}
.pt-form h2{margin:6px 0 6px; font-size:21px;}
.pt-tabs{display:flex; gap:4px; background:var(--bg); border-radius:12px; padding:4px; margin-bottom:16px;}
.pt-tabs a{flex:1; text-align:center; padding:9px 6px; border-radius:9px; font-size:13px; font-weight:600; color:var(--muted); text-decoration:none;}
.pt-tabs a.on{background:#fff; color:var(--brand); box-shadow:0 1px 4px rgba(15,27,45,.1);}
input.pin{letter-spacing:6px; font-size:18px;}
.pt-side{background:linear-gradient(160deg, #fff, var(--acc-soft)); border:1px solid var(--line); border-radius:18px; padding:22px;}
.pt-side h3{margin:0 0 10px; font-size:17px;} .pt-side ul{list-style:none; padding:0; margin:0 0 12px;}
.pt-side li{padding:7px 0; font-size:14px; border-bottom:1px dashed var(--line);}
.pt-spin{width:42px; height:42px; border-radius:50%; border:4px solid var(--acc-soft); border-top-color:var(--acc); margin:0 auto 10px; animation:ptspin 1s linear infinite;}
@keyframes ptspin{to{transform:rotate(360deg);}}
.pt-wrap{max-width:1040px;}
.pt-fam{display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin-bottom:12px; background:#fff; border:1px solid var(--line); border-radius:14px; padding:8px 12px;}
.pt-fam .chip{text-decoration:none;}
.pt-head{display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:16px; align-items:center;}
.pt-av{width:62px; height:62px; border-radius:18px; background:linear-gradient(135deg, var(--brand), var(--acc)); color:#fff; display:flex; align-items:center; justify-content:center; font-size:28px; font-weight:700;}
.pt-who h2{margin:0 0 4px; font-size:21px;}
.pt-kv{display:flex; gap:6px 14px; flex-wrap:wrap; font-size:13.5px;}
.pt-alg{margin-top:8px; display:inline-block; background:#fdecec; color:#a12727; font-weight:600; font-size:13px; padding:5px 11px; border-radius:999px;}
.pt-next{display:flex; flex-direction:column; gap:8px; min-width:220px;}
.pt-nx{background:var(--acc-soft); border-radius:12px; padding:8px 12px; display:flex; flex-direction:column;}
.pt-nx small{font-size:11px; text-transform:uppercase; letter-spacing:.05em; color:var(--acc); font-weight:700;} .pt-nx b{font-size:14.5px;} .pt-nx span{font-size:12.5px; color:var(--muted);}
.pt-nx.amber{background:#fff4dc;} .pt-nx.amber small{color:#92400e;}
.pt-nav{display:flex; gap:6px; overflow-x:auto; margin:16px 0 14px; padding-bottom:2px;}
.pt-nav a{white-space:nowrap; padding:9px 15px; border-radius:999px; background:#fff; border:1px solid var(--line); color:var(--text); text-decoration:none; font-size:13.5px; font-weight:600;}
.pt-nav a.on{background:var(--brand); border-color:var(--brand); color:#fff;}
.pt-grid{display:grid; grid-template-columns:minmax(0,1.25fr) minmax(0,1fr); gap:16px; align-items:start;}
.pt-h{margin:0 0 12px; font-size:16px; display:flex; flex-wrap:wrap; align-items:center; gap:6px;} .pt-h .muted{font-weight:400;}
.pt-h .pt-dbtn{margin-left:auto;}
.pt-vh{display:flex; gap:6px; align-items:center; flex-wrap:wrap; font-size:14px; margin-bottom:8px;} .pt-vh .pt-dbtn{margin-left:auto;}
.pt-vit{display:flex; flex-wrap:wrap; gap:6px; margin:10px 0;}
.pt-vit span{background:var(--bg); border-radius:10px; padding:5px 10px; font-weight:600; font-size:13.5px;}
.pt-vit small{display:block; font-weight:400; font-size:10.5px; color:var(--muted); text-transform:uppercase; letter-spacing:.04em;}
.pt-tw{overflow-x:auto; margin:10px 0;}
.pt-t{width:100%; border-collapse:collapse; font-size:13.5px;}
.pt-t th{text-align:left; font-size:11.5px; text-transform:uppercase; letter-spacing:.04em; color:var(--muted); padding:7px 8px; border-bottom:1px solid var(--line); white-space:nowrap;}
.pt-t td{padding:8px; border-bottom:1px dashed var(--line); vertical-align:top;} .pt-t td small{display:block; color:var(--muted); font-size:12px;}
.pt-lab tr.abn td:first-child, .pt-lab tr.abn td:nth-child(2) b{color:#b91c1c;}
.pt-hl{display:inline-block; background:#fdecec; color:#b91c1c; border-radius:6px; padding:0 6px; font-weight:700;}
.pt-prev{display:inline-block; margin:0 8px 2px 0; white-space:nowrap; color:var(--text);} .pt-prev small{color:var(--muted); font-size:11px;}
.pt-lt{margin-bottom:12px;} .pt-ltn{font-weight:700; font-size:14px;}
.pt-pre{background:var(--bg); border-radius:10px; padding:10px 12px; font-size:13.5px;}
.pt-dbtn{display:inline-flex; align-items:center; gap:4px; font-size:12.5px; font-weight:600; padding:5px 11px; border-radius:999px; background:var(--acc-soft); color:var(--acc); text-decoration:none; white-space:nowrap;}
.pt-dbtn.wait{background:var(--bg); color:var(--muted);}
.pt-doc{display:flex; gap:10px; align-items:center; padding:10px 12px; border:1px solid var(--line); border-radius:12px; text-decoration:none; color:var(--text); margin-bottom:8px; background:#fff;}
.pt-doc:hover{border-color:var(--acc); background:var(--acc-soft);}
.pt-doc i{font-style:normal; font-size:22px; width:30px; text-align:center;} .pt-doc b{display:block; font-size:14px;} .pt-doc small{color:var(--muted); font-size:12.5px;}
.pt-docs{display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:0 10px;}
.pt-more{display:inline-block; margin-top:6px; font-weight:600; font-size:13.5px; text-decoration:none;}
.pt-acc{padding:0; margin-bottom:10px; overflow:hidden;}
.pt-acc summary{list-style:none; display:flex; gap:12px; align-items:center; padding:14px 16px; cursor:pointer;}
.pt-acc summary::-webkit-details-marker{display:none;}
.pt-acc[open] summary{border-bottom:1px solid var(--line);}
.pt-acc .pt-body{padding:6px 16px 14px;}
.pt-dt{flex:none; width:52px; text-align:center; background:var(--acc-soft); color:var(--acc); border-radius:12px; padding:5px 0;}
.pt-dt b{display:block; font-size:19px; line-height:1.1;} .pt-dt small{font-size:10.5px; text-transform:uppercase;}
.pt-sm{flex:1; min-width:0;} .pt-sm b{display:block; font-size:14.5px;} .pt-sm small{display:block; color:var(--muted); font-size:12.5px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.pt-flag{font-size:11.5px; font-weight:700; background:#fdecec; color:#b91c1c; padding:3px 9px; border-radius:999px; white-space:nowrap;}
.pt-fu{background:#fff4dc; color:#7c4a03; border-radius:10px; padding:8px 12px; font-size:13.5px;}
.pt-chart{width:100%; height:auto; display:block; margin:4px 0;} .pt-chart text{font-size:10px; fill:#64748b; font-family:inherit;}
.pt-leg{display:flex; gap:12px; font-size:12px; color:var(--muted); margin-bottom:10px;} .pt-leg i{display:inline-block; width:10px; height:10px; border-radius:3px; margin-right:4px; vertical-align:-1px;}
.pt-disc{text-align:center; margin-top:18px;}
@media (max-width:820px){
  .pt-auth, .pt-grid{grid-template-columns:1fr;}
  .pt-head{grid-template-columns:auto minmax(0,1fr);} .pt-next{grid-column:1 / -1; min-width:0;}
  .pt-acc summary{flex-wrap:wrap;} .pt-acc summary .pt-dbtn{margin-left:64px;}
  .pt-lab th:nth-child(4), .pt-lab td:nth-child(4){display:none;}
}
@media print{ .pt-nav, .pt-fam, .pt-dbtn, .pt-side{display:none !important;} }
.pt-lab{table-layout:fixed;} .pt-lab th:nth-child(1){width:34%;} .pt-lab th:nth-child(2){width:20%;} .pt-lab th:nth-child(3){width:20%;}
@media (max-width:820px){ .pt-lab th:nth-child(1){width:44%;} .pt-lab th:nth-child(2){width:28%;} }
.pt-t:not(.pt-lab) td:nth-child(2){white-space:nowrap;}
/* ---------------- patient login page (1.5.1) */
.lg{min-height:100vh; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr);}
.lg-hero{position:relative; overflow:hidden; color:#fff; padding:28px 48px 40px; display:flex; flex-direction:column;
  background:radial-gradient(1200px 600px at -10% -20%, rgba(255,255,255,.14), transparent 60%), linear-gradient(150deg, var(--brand), var(--brand2) 60%, color-mix(in srgb, var(--brand2) 70%, var(--acc)));}
.lg-hero::before, .lg-hero::after{content:""; position:absolute; border-radius:50%; border:1px solid rgba(255,255,255,.12);}
.lg-hero::before{width:520px; height:520px; right:-200px; bottom:-200px; box-shadow:0 0 0 60px rgba(255,255,255,.03), 0 0 0 130px rgba(255,255,255,.025);}
.lg-hero::after{width:180px; height:180px; left:-60px; top:42%; background:rgba(255,255,255,.04);}
.lg-top{display:flex; justify-content:space-between; align-items:center; gap:12px; position:relative; z-index:1;}
.lg-brand{display:flex; gap:12px; align-items:center; color:#fff; text-decoration:none; min-width:0;}
.lg-brand img{width:50px; height:50px; object-fit:contain; background:#fff; border-radius:14px; padding:4px; flex:none;}
.lg-brand b{display:block; font-size:18px; letter-spacing:-.01em; line-height:1.2;} .lg-brand small{display:block; color:#c9d6ea; font-size:12.5px; margin-top:2px;}
.lg-tl .ph{background:rgba(255,255,255,.14); border-radius:999px; padding:8px 14px; font-size:13px; color:#fff; text-decoration:none; white-space:nowrap;}
.lg-pitch{margin:auto 0; padding:40px 0 10px; max-width:520px; position:relative; z-index:1;}
.lg-pitch h1{font-size:40px; line-height:1.12; letter-spacing:-.02em; margin:0 0 14px;}
.lg-pitch p{color:#d6e2f3; font-size:16px; line-height:1.55; margin:0 0 26px;}
.lg-feat{list-style:none; padding:0; margin:0 0 26px; display:grid; gap:12px;}
.lg-feat li{display:flex; gap:12px; align-items:center; font-size:14.5px;}
.lg-feat i{font-style:normal; width:40px; height:40px; flex:none; border-radius:12px; background:rgba(255,255,255,.12); display:flex; align-items:center; justify-content:center; font-size:19px;}
.lg-trust{display:flex; gap:8px; flex-wrap:wrap;}
.lg-trust span{font-size:12.5px; font-weight:600; padding:7px 12px; border-radius:999px; background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.16);}
.lg [hidden]{display:none !important;}
.lg-main{position:relative; z-index:1; background:var(--bg); padding:40px 28px 24px; display:flex; flex-direction:column; align-items:center; justify-content:center;}
.lg-card{width:100%; max-width:460px; background:#fff; border:1px solid var(--line); border-radius:22px; box-shadow:0 20px 60px rgba(15,27,45,.10); padding:26px 28px;}
.lg-card h2{margin:4px 0 6px; font-size:24px; letter-spacing:-.01em;}
.lg-sub{margin:0 0 16px; font-size:14px;}
.lg-tabs{display:flex; gap:4px; background:var(--bg); border-radius:14px; padding:4px; margin-bottom:18px;}
.lg-tabs a{flex:1; text-align:center; padding:9px 4px; border-radius:10px; font-size:12.5px; font-weight:600; color:var(--muted); text-decoration:none; line-height:1.25;}
.lg-tabs a.on{background:#fff; color:var(--brand); box-shadow:0 1px 5px rgba(15,27,45,.12);}
.lg-card label{margin-top:14px;} .lg-card form > label:first-of-type, .lg-card fieldset > label:first-of-type{margin-top:0;}
.lg-card input, .lg-card select{padding:13px 14px; font-size:16px; border-radius:12px;}
.lg-id{display:flex; align-items:stretch; border:1px solid #cfd7e3; border-radius:12px; background:#fff; overflow:hidden;}
.lg-id:focus-within{border-color:var(--acc); box-shadow:0 0 0 3px rgba(47,111,237,.15);}
.lg-id input{border:0; box-shadow:none !important; border-radius:0; min-width:0;}
.lg-cc{display:flex; align-items:center; padding:0 0 0 14px; color:var(--muted); font-weight:600; font-size:15px;}
.lg-pin{position:relative;}
.lg-pin input{letter-spacing:8px; font-size:22px; font-weight:700; padding-right:52px; text-align:left;}
.lg-pin input::placeholder{letter-spacing:6px; color:#c3cad6;}
.lg-eye{position:absolute; right:6px; top:50%; transform:translateY(-50%); border:0; background:transparent; font-size:18px; cursor:pointer; padding:8px; border-radius:8px; opacity:.55;}
.lg-eye.on{opacity:1; background:var(--acc-soft);}
.lg-code{letter-spacing:12px; font-size:26px !important; font-weight:700; text-align:center; font-family:ui-monospace, Menlo, Consolas, monospace;}
.lg-chk{display:flex !important; gap:8px; align-items:center; font-weight:500 !important; color:var(--text) !important; font-size:13.5px !important; margin-top:14px !important;}
.lg-chk input{width:auto; margin:0; accent-color:var(--brand);}
.lg-btn{width:100%; margin-top:16px; padding:15px 20px; font-size:16px; border-radius:14px;}
.lg-btn.busy{opacity:.7; cursor:progress;}
.btn-primary.lg-btn{background:linear-gradient(135deg, var(--brand), var(--brand2)); box-shadow:0 8px 20px color-mix(in srgb, var(--brand) 30%, transparent);}
.lg-btn + .lg-btn{margin-top:8px;}
.lg-alert{display:flex; gap:10px; align-items:flex-start; padding:11px 13px; border-radius:12px; font-size:14px; margin-bottom:14px; line-height:1.4;}
.lg-alert b{flex:none; width:22px; height:22px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:12px; color:#fff;}
.lg-alert small{display:block; margin-top:3px; font-size:12.5px; opacity:.85;}
.lg-alert.lg-bad{background:#fdecec; color:#8f1d1d;} .lg-alert.lg-bad b{background:#dc2626;}
.lg-alert.lg-ok{background:#e7f7ed; color:#14532d;} .lg-alert.lg-ok b{background:#16a34a;}
.lg-alert.lg-warn{background:#fff4dc; color:#7c4a03;} .lg-alert.lg-warn b{background:#d97706;}
.lg-known{display:flex; gap:12px; align-items:center; background:var(--acc-soft); border-radius:14px; padding:10px 12px; margin-bottom:4px;}
.lg-av{width:38px; height:38px; border-radius:50%; background:var(--brand); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; flex:none;}
.lg-known small{display:block; font-size:11.5px; color:var(--muted);} .lg-known b{font-size:16px; letter-spacing:.5px;}
.lg-link{margin-left:auto; border:0; background:none; color:var(--acc); font:600 13px inherit; font-family:inherit; cursor:pointer; text-decoration:underline;}
.lg-or{display:flex; align-items:center; gap:10px; color:var(--muted); font-size:12.5px; margin:22px 0 12px;}
.lg-or::before, .lg-or::after{content:""; flex:1; height:1px; background:var(--line);}
.lg-2{display:grid; grid-template-columns:1fr 1fr; gap:10px;}
.lg-opt{display:flex; flex-direction:column; gap:2px; border:1.5px solid var(--line); border-radius:14px; padding:12px; text-decoration:none; color:var(--text);}
.lg-opt:hover{border-color:var(--acc); background:var(--acc-soft);}
.lg-opt i{font-style:normal; font-size:20px;} .lg-opt b{font-size:14px;} .lg-opt small{font-size:12px; color:var(--muted);}
.lg-steps{list-style:none; display:flex; gap:6px; padding:0; margin:10px 0 16px;}
.lg-steps li{flex:1; display:flex; gap:6px; align-items:center; font-size:12px; font-weight:600; color:var(--muted); background:var(--bg); padding:7px 8px; border-radius:10px;}
.lg-steps li span{width:20px; height:20px; border-radius:50%; background:#cbd5e1; color:#fff; display:flex; align-items:center; justify-content:center; font-size:11px; flex:none;}
.lg-steps li.on{color:var(--brand); background:var(--acc-soft);} .lg-steps li.on span{background:var(--brand);}
.lg-f fieldset{border:0; padding:0; margin:0 0 6px;}
.lg-f legend{display:flex; gap:8px; align-items:center; font-weight:700; font-size:14px; margin:6px 0 10px; padding:0;}
.lg-f legend span{width:22px; height:22px; border-radius:7px; background:var(--brand); color:#fff; display:flex; align-items:center; justify-content:center; font-size:12px;}
.lg-f fieldset + fieldset{border-top:1px dashed var(--line); padding-top:12px; margin-top:16px;}
.lg-dob{display:grid; grid-template-columns:.8fr 1.4fr 1fr; gap:8px;}
.lg-q{border:1px solid var(--line); background:#fff; width:20px; height:20px; border-radius:50%; font-size:11px; font-weight:700; cursor:pointer; color:var(--acc); padding:0; margin-left:4px; vertical-align:1px;}
.lg-tip{background:var(--acc-soft); color:#1e3a8a; border-radius:10px; padding:9px 12px; font-size:13px; margin-top:8px;}
.lg-meter{display:flex; align-items:center; gap:10px; margin-top:10px; font-size:12.5px; font-weight:600;}
.lg-meter i{flex:1; height:6px; border-radius:6px; background:var(--line); position:relative; overflow:hidden;}
.lg-meter i::after{content:""; position:absolute; inset:0 auto 0 0; width:33%; background:#dc2626; border-radius:6px; transition:width .2s;}
.lg-meter.s1 span{color:#b91c1c;} .lg-meter.s2 i::after{width:66%; background:#d97706;} .lg-meter.s2 span{color:#92400e;}
.lg-meter.s3 i::after{width:100%; background:#16a34a;} .lg-meter.s3 span{color:#15803d;}
.lg-small{font-size:12.5px; margin:8px 0 0;}
.lg-ic{width:60px; height:60px; border-radius:18px; background:var(--acc-soft); display:flex; align-items:center; justify-content:center; font-size:28px; margin:0 auto 6px;}
.lg-ic.bad{background:#fdecec; color:#b91c1c;}
.lg-card > .lg-ic + h2{text-align:center;}
.lg-wait{text-align:center; padding:10px 0;}
.lg-prog{list-style:none; padding:0; margin:16px auto; max-width:330px; text-align:left;}
.lg-prog li{position:relative; padding:8px 0 8px 32px; font-size:14px; color:var(--muted);}
.lg-prog li::before{content:""; position:absolute; left:4px; top:9px; width:16px; height:16px; border-radius:50%; border:2px solid #cbd5e1; box-sizing:border-box;}
.lg-prog li.done{color:var(--text);} .lg-prog li.done::before{background:#16a34a; border-color:#16a34a;}
.lg-prog li.done::after{content:"\2713"; position:absolute; left:8px; top:8px; color:#fff; font-size:10px; font-weight:700;}
.lg-prog li.now{color:var(--brand); font-weight:600;} .lg-prog li.now::before{border-color:var(--acc); border-top-color:transparent; animation:ptspin 1s linear infinite;}
.lg-help{width:100%; max-width:460px; margin-top:14px; background:#fff; border:1px solid var(--line); border-radius:16px; padding:0 16px;}
.lg-help summary{cursor:pointer; padding:13px 0; font-weight:600; font-size:14px; list-style:none;}
.lg-help summary::-webkit-details-marker{display:none;}
.lg-help summary::after{content:"+"; float:right; color:var(--muted); font-size:18px; line-height:1;} .lg-help[open] summary::after{content:"\2212";}
.lg-help dl{margin:0 0 12px;} .lg-help dt{font-weight:600; font-size:13.5px; margin-top:10px;} .lg-help dd{margin:2px 0 0; color:var(--muted); font-size:13px; line-height:1.45;}
.lg-quick{width:100%; max-width:460px; display:grid; grid-template-columns:repeat(auto-fit, minmax(100px, 1fr)); gap:8px; margin-top:12px;}
.lg-quick a{text-align:center; background:#fff; border:1px solid var(--line); border-radius:12px; padding:10px 6px; font-size:12.5px; font-weight:600; color:var(--text); text-decoration:none;}
.lg-quick a:hover{border-color:var(--acc); color:var(--acc);}
.lg-foot{color:var(--muted); font-size:12px; text-align:center; margin:18px 0 0; line-height:1.6;}
@media (max-width:900px){
  .lg{grid-template-columns:1fr;}
  .lg-hero{padding:18px 18px 64px;}
  .lg-pitch{padding:18px 0 0;} .lg-pitch h1{font-size:24px; margin-bottom:6px;} .lg-pitch p{font-size:14px; margin:0;}
  .lg-feat, .lg-trust{display:none;}
  .lg-main{padding:0 14px 24px; margin-top:-48px; justify-content:flex-start; background:transparent;}
  .lg{background:var(--bg);}
  .lg-card{padding:20px 18px; border-radius:20px;}
  .lg-brand b{font-size:15.5px;} .lg-brand img{width:42px; height:42px;}
}
@media (max-width:420px){ .lg-2{grid-template-columns:1fr;} .lg-dob{grid-template-columns:1fr 1.5fr 1.1fr;} .lg-tabs a{font-size:11.5px;} }
.lg-f .form2 > div > label:first-child{margin-top:4px;}
.nx{white-space:nowrap; max-width:100%; overflow:hidden; text-overflow:ellipsis; vertical-align:top;}
.nx.ok{width:auto; height:auto; min-height:20px; display:inline-block; border-radius:999px; margin:8px 0 0; font-size:11.5px; justify-content:initial;}
/* ---------------- 1.5.2: line icons + professional patient pages */
.ic{width:1.1em; height:1.1em; flex:none; vertical-align:-.18em;}
.lg-feat i .ic{width:20px; height:20px;} .lg-trust span{display:inline-flex; align-items:center; gap:6px;} .lg-trust .ic{width:15px; height:15px;}
.lg-ic .ic{width:28px; height:28px; color:var(--brand);} .lg-ic.bad .ic{color:#b91c1c;}
.lg-alert b .ic{width:13px; height:13px; color:#fff; stroke-width:2.6;}
.lg-opt i{color:var(--brand); display:flex; width:36px; height:36px; border-radius:10px; background:var(--acc-soft); align-items:center; justify-content:center; margin-bottom:6px;} .lg-opt i .ic{width:19px; height:19px;}
.lg-quick a{display:flex; align-items:center; justify-content:center; gap:6px;} .lg-quick .ic{width:16px; height:16px; color:var(--brand);}
.lg-help summary{display:flex; align-items:center; gap:8px;} .lg-help summary::after{margin-left:auto;} .lg-help summary .ic{width:18px; height:18px; color:var(--brand);}
.lg-eye{display:flex; align-items:center;} .lg-eye .ic{width:20px; height:20px; color:#475569;} .lg-eye.on .ic{color:var(--brand);}
.lg-foot .ic{width:13px; height:13px;}
.lg-feat i{color:#fff;}
/* records */
body:has(.rx-top){background:#f2f5fa;}
.rx-top{background:linear-gradient(120deg, var(--brand), var(--brand2)); color:#fff; position:sticky; top:0; z-index:20; box-shadow:0 2px 14px rgba(15,27,45,.18);}
.rx-in{max-width:1180px; margin:0 auto; padding:10px 18px; display:flex; align-items:center; justify-content:space-between; gap:12px;}
.rx-brand{display:flex; align-items:center; gap:10px; color:#fff; text-decoration:none; min-width:0;}
.rx-brand img{width:38px; height:38px; border-radius:10px; background:#fff; padding:3px; object-fit:contain; flex:none;}
.rx-brand b{display:block; font-size:15.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;} .rx-brand small{display:block; color:#c9d6ea; font-size:12px;}
.rx-acts{display:flex; gap:8px; align-items:center;}
.rx-acts .ph{background:rgba(255,255,255,.12); border-radius:999px; padding:7px 13px; font-size:13px; color:#fff; text-decoration:none;}
.rx-out{display:inline-flex; align-items:center; gap:6px; background:#fff; color:var(--brand); border-radius:999px; padding:7px 14px; font-size:13px; font-weight:600; text-decoration:none;}
.rx-out .ic{width:16px; height:16px;}
.rx-wrap{max-width:1180px; margin:0 auto; padding:18px;}
.rx-hero{display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:18px; align-items:center; background:#fff; border:1px solid var(--line); border-radius:20px; padding:20px 22px; box-shadow:0 6px 24px rgba(15,27,45,.06);}
.rx-av{width:68px; height:68px; border-radius:20px; background:linear-gradient(135deg, var(--brand), var(--acc)); color:#fff; display:flex; align-items:center; justify-content:center; font-size:24px; font-weight:700; letter-spacing:.02em;}
.rx-who h1{margin:0; font-size:23px; letter-spacing:-.01em;}
.rx-tags{display:flex; gap:6px; flex-wrap:wrap; margin-top:8px;}
.rx-tag{display:inline-flex; align-items:center; gap:5px; font-size:12.5px; padding:4px 10px; border-radius:999px; background:#f1f5f9; color:#334155;}
.rx-tag.red{background:#fff1f2; color:#be123c;} .rx-tag.alert{background:#fdecec; color:#991b1b; font-weight:600;}
.rx-tag .ic{width:13px; height:13px;}
.rx-upd{font-size:12px; color:var(--muted); margin-top:6px;}
.rx-switch summary{list-style:none; cursor:pointer; display:flex; align-items:center; gap:10px; flex-wrap:wrap;}
.rx-switch summary::-webkit-details-marker{display:none;}
.rx-sw{display:inline-flex; align-items:center; gap:5px; font-size:12px; font-weight:600; color:var(--acc); background:var(--acc-soft); padding:4px 10px; border-radius:999px;}
.rx-sw .ic{width:14px; height:14px;} .rx-sw .rot{transform:rotate(90deg); transition:transform .2s;} .rx-switch[open] .rot{transform:rotate(-90deg);}
.rx-switch{position:relative;}
.rx-menu{position:absolute; top:calc(100% + 8px); left:0; z-index:30; background:#fff; border:1px solid var(--line); border-radius:14px; box-shadow:0 18px 40px rgba(15,27,45,.16); padding:6px; min-width:270px;}
.rx-menu a{display:flex; align-items:center; gap:10px; padding:8px 10px; border-radius:10px; color:var(--text); text-decoration:none;}
.rx-menu a:hover, .rx-menu a.on{background:var(--acc-soft);}
.rx-menu b{display:block; font-size:14px;} .rx-menu small{color:var(--muted); font-size:12px;} .rx-menu .ic{margin-left:auto; color:var(--acc);}
.rx-mav{width:32px; height:32px; border-radius:10px; background:var(--brand); color:#fff; display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:700; flex:none;}
.rx-next{display:flex; flex-direction:column; gap:8px; min-width:250px;}
.rx-nx{display:flex; gap:10px; align-items:center; background:var(--acc-soft); border-radius:14px; padding:9px 12px;}
.rx-nx i{width:34px; height:34px; border-radius:10px; background:#fff; color:var(--acc); display:flex; align-items:center; justify-content:center; flex:none;}
.rx-nx small{display:block; font-size:10.5px; text-transform:uppercase; letter-spacing:.06em; font-weight:700; color:var(--acc);}
.rx-nx b{display:block; font-size:14px;} .rx-nx em{display:block; font-style:normal; font-size:12px; color:var(--muted);}
.rx-nx.amber{background:#fff6e6;} .rx-nx.amber i{color:#b45309;} .rx-nx.amber small{color:#b45309;}
.rx-book{display:inline-flex; align-items:center; justify-content:center; gap:8px; background:var(--brand); color:#fff; text-decoration:none; border-radius:12px; padding:11px 16px; font-weight:600; font-size:14px;}
.rx-body{display:grid; grid-template-columns:220px minmax(0,1fr); gap:18px; margin-top:18px; align-items:start;}
.rx-nav{position:sticky; top:76px; background:#fff; border:1px solid var(--line); border-radius:16px; padding:8px; display:flex; flex-direction:column; gap:2px;}
.rx-nav a{display:flex; align-items:center; gap:10px; padding:10px 12px; border-radius:11px; color:#334155; text-decoration:none; font-size:14px; font-weight:600;}
.rx-nav a .ic{width:18px; height:18px; color:#64748b;}
.rx-nav a em{margin-left:auto; font-style:normal; font-size:11.5px; background:#f1f5f9; color:#475569; border-radius:999px; padding:1px 8px;}
.rx-nav a:hover{background:#f6f8fc;}
.rx-nav a.on{background:var(--brand); color:#fff;} .rx-nav a.on .ic{color:#fff;} .rx-nav a.on em{background:rgba(255,255,255,.2); color:#fff;}
.rx-main{min-width:0;}
.rx-main .pub-card{border-radius:16px; box-shadow:0 4px 18px rgba(15,27,45,.05);}
.rx-stats{display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:12px; margin-bottom:16px;}
.rx-st{background:#fff; border:1px solid var(--line); border-radius:16px; padding:14px; text-decoration:none; color:var(--text); display:grid; grid-template-columns:auto 1fr; grid-template-rows:auto auto; column-gap:12px; align-items:center;}
.rx-st:hover{border-color:var(--acc);}
.rx-st i{grid-row:span 2; width:42px; height:42px; border-radius:12px; display:flex; align-items:center; justify-content:center;}
.rx-st i .ic{width:21px; height:21px;}
.rx-st b{font-size:22px; line-height:1.1;} .rx-st span{font-size:12.5px; color:var(--muted);}
.rx-st .c1{background:#e8f0ff; color:#2f6fed;} .rx-st .c2{background:#e0f7f4; color:#0d9488;} .rx-st .c3{background:#f3e8ff; color:#7c3aed;} .rx-st .c4{background:#ffe8ee; color:#e11d48;}
.rx-main .pt-doc i{width:38px; height:38px; border-radius:11px; background:var(--acc-soft); color:var(--acc); display:flex; align-items:center; justify-content:center;}
.rx-main .pt-doc i .ic{width:19px; height:19px;}
.pt-dbtn .ic{width:14px; height:14px;}
.pt-h .ic{width:19px; height:19px; color:var(--acc);}
.pt-fu .ic{width:15px; height:15px;}
.rx-main .pt-grid{gap:16px;}
.rx-foot{text-align:center; color:var(--muted); font-size:12px; padding:18px 14px 90px;}
.rx-foot .ic{width:13px; height:13px;}
.rx-main .pt-disc{margin-top:14px;}
@media (max-width:900px){
  .rx-wrap{padding:12px;}
  .rx-hero{grid-template-columns:auto minmax(0,1fr); padding:16px; gap:12px;}
  .rx-av{width:54px; height:54px; font-size:19px; border-radius:16px;} .rx-who h1{font-size:19px;}
  .rx-next{grid-column:1 / -1; min-width:0;}
  .rx-body{grid-template-columns:1fr; margin-top:12px;}
  .rx-nav{position:fixed; top:auto; bottom:0; left:0; right:0; z-index:25; flex-direction:row; overflow-x:auto; border-radius:0; border-width:1px 0 0; padding:6px 6px calc(6px + env(safe-area-inset-bottom)); gap:2px; box-shadow:0 -6px 20px rgba(15,27,45,.08);}
  .rx-nav a{flex:1 0 auto; flex-direction:column; gap:3px; padding:6px 10px; font-size:10.5px; min-width:64px; text-align:center;}
  .rx-nav a em{display:none;}
  .rx-stats{grid-template-columns:repeat(2, minmax(0,1fr));}
  .rx-brand small{display:none;} .rx-out span{display:none;}
}
.rx-brand span{min-width:0;} .rx-acts{flex:none;} @media (max-width:900px){ .rx-brand b{font-size:13.5px;} .rx-acts .ph{padding:6px 10px;} .rx-out{padding:7px 10px;} }
@media (max-width:900px){ .rx-hero.compact .rx-next, .rx-hero.compact .rx-upd{display:none;} .pt-t th{letter-spacing:0; white-space:normal;} }

/* ---------------- 1.6: ABHA, appointments, quick actions ---------------- */
.abha-b{display:inline-flex; align-items:center; justify-content:center; background:#f97316; color:#fff; font-weight:800; font-size:9.5px; letter-spacing:.05em; border-radius:5px; padding:2px 5px; line-height:1.2;}
.rx-tag.abha{background:#fff7ed; color:#9a3412; text-decoration:none; font-weight:600; border:1px solid #fed7aa;}
.rx-quick{display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:12px; margin-bottom:14px;}
.rx-quick a{display:flex; gap:12px; align-items:center; background:#fff; border:1px solid var(--line); border-radius:16px; padding:14px; text-decoration:none; color:var(--text); transition:border-color .15s, transform .15s, box-shadow .15s;}
.rx-quick a:hover{border-color:var(--acc); transform:translateY(-1px); box-shadow:0 8px 20px rgba(15,27,45,.07);}
.rx-quick i{width:42px; height:42px; border-radius:12px; display:inline-flex; align-items:center; justify-content:center; background:var(--acc-soft); color:var(--acc); flex:none;}
.rx-quick i.ab{background:#fff7ed;} .rx-quick i .ic{width:20px; height:20px;}
.rx-quick b{display:block; font-size:14.5px;} .rx-quick small{color:var(--muted); font-size:12.5px;}
.rx-bk.dim{opacity:.6;}
.rx-bk-h{display:flex; gap:12px; align-items:center;} .rx-bk-h .pt-sm{flex:1; min-width:0;}
.rx-st-b{font-size:12px; font-weight:700; padding:4px 10px; border-radius:999px; background:#e8f0ff; color:#1d4ed8; white-space:nowrap;}
.rx-st-b.s-cancelled,.rx-st-b.s-no-show{background:#fdecec; color:#b91c1c;} .rx-st-b.s-arrived,.rx-st-b.s-completed{background:#e7f7ed; color:#15803d;}
.abha-card{border-top:5px solid #cbd5e1;} .abha-card.on{border-top-color:#f97316; background:linear-gradient(180deg,#fff7ed 0,#fff 120px);}
.abha-top{display:flex; gap:12px; align-items:center; margin-bottom:12px;} .abha-top b{display:block;} .abha-top small{color:var(--muted);}
.abha-logo{width:52px; height:52px; border-radius:14px; background:#f97316; color:#fff; font-weight:800; font-size:13px; display:flex; align-items:center; justify-content:center; letter-spacing:.05em; flex:none;}
.abha-ids{display:grid; grid-template-columns:1fr 1fr; gap:10px; margin:6px 0 10px;} .abha-ids div{background:#fff; border:1px dashed #fdba74; border-radius:12px; padding:10px 12px;}
.abha-ids small{display:block; color:var(--muted); font-size:12px;} .abha-ids b{font-size:15.5px; letter-spacing:.02em; word-break:break-all;}
.abha-st{font-size:13.5px;} .abha-st .ic{width:15px; height:15px; color:var(--ok); vertical-align:-2px;}
.abha-how{padding-left:18px; line-height:1.7; font-size:14px;}
.abha-in small{display:block; margin-top:4px; font-size:12px;}
.pt-who{display:flex; flex-wrap:wrap; gap:6px; align-items:center; font-size:13.5px; color:var(--muted);} .pt-who .ic{width:16px; height:16px;}
.pt-who .chip{text-decoration:none;}
@media (max-width:760px){ .rx-quick{grid-template-columns:1fr;} .abha-ids{grid-template-columns:1fr;} }

/* 1.7 */
.lg-wa{display:flex; align-items:center; justify-content:center; gap:8px; margin-top:10px; border-color:#22c55e !important; color:#15803d !important;}
.lg-wa .ic{width:18px; height:18px;}

.upi{border:1px solid #c7d2fe; background:#f5f7ff; border-radius:14px; padding:12px 14px; margin-top:14px;}
.upi-h{display:flex; gap:8px; align-items:center; margin-bottom:8px;} .upi-h .ic{width:20px; height:20px; color:#4338ca;}
.upi-b{display:flex; gap:14px; align-items:flex-start; flex-wrap:wrap;} .upi-b > div{flex:1; min-width:220px; display:flex; flex-direction:column; gap:8px;}
.upi-qr{width:132px; height:132px; border-radius:10px; background:#fff; border:1px solid var(--line); padding:4px;}
.upi-f{display:flex; gap:6px;} .upi-f input{flex:1; min-width:0;}
.upi.done{display:flex; gap:10px; align-items:center; background:#ecfdf5; border-color:#a7f3d0;} .upi.done .ic{width:22px; height:22px; color:#15803d;}
.upi.done small{display:block; color:#065f46;}
@media print{ .upi{display:none;} }

/* ===== Health card & case history (patient login / app) ===== */
.rx-quick{grid-template-columns:repeat(auto-fit, minmax(200px, 1fr));}
.hcw{max-width:980px;}
.hc-card{position:relative; overflow:hidden; border-radius:22px; padding:18px 20px 14px; color:#fff; max-width:560px; margin:0 auto 12px;
  background:radial-gradient(420px 220px at 100% 0%, rgba(255,255,255,.16), transparent 70%), linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow:0 18px 40px rgba(11,37,69,.28); -webkit-print-color-adjust:exact; print-color-adjust:exact;}
.hc-card::after{content:""; position:absolute; right:-60px; bottom:-80px; width:220px; height:220px; border-radius:50%; border:34px solid rgba(255,255,255,.06);}
.hc-card > *{position:relative; z-index:1;}
.hc-top{display:flex; justify-content:space-between; align-items:center; gap:10px; font-size:12.5px;}
.hc-h{display:flex; align-items:center; gap:8px; min-width:0;} .hc-h img{width:26px; height:26px; border-radius:7px; background:#fff; object-fit:contain;}
.hc-h b{white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.hc-lbl{font-weight:700; letter-spacing:.14em; font-size:11px; opacity:.85; white-space:nowrap;}
.hc-mid{display:flex; gap:14px; align-items:flex-start; justify-content:space-between; margin:12px 0 10px;}
.hc-name{display:block; font-size:21px; letter-spacing:-.01em; margin-bottom:8px;}
.hc-grid{display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:6px 16px; font-size:14px; font-weight:600;}
.hc-grid small{display:block; font-size:10.5px; font-weight:600; opacity:.7; text-transform:uppercase; letter-spacing:.06em;}
.hc-bg{display:inline-block; background:#ef4444; border-radius:7px; padding:0 8px;}
.hc-qr{width:88px; height:88px; border-radius:10px; background:#fff; padding:5px; image-rendering:pixelated; flex:none;}
.hc-em{display:flex; gap:8px; align-items:flex-start; background:rgba(239,68,68,.22); border:1px solid rgba(254,202,202,.5); border-radius:12px; padding:8px 10px; font-size:14px;}
.hc-em.hc-ok{background:rgba(34,197,94,.18); border-color:rgba(187,247,208,.45);} .hc-em .ic{width:18px; height:18px; flex:none; margin-top:1px;}
.hc-lt{margin-top:8px; display:flex; flex-wrap:wrap; gap:6px; align-items:center;}
.hc-lt small{width:100%; font-size:10.5px; text-transform:uppercase; letter-spacing:.06em; opacity:.7; font-weight:600;}
.hc-lt span{background:rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.2); border-radius:999px; padding:3px 10px; font-size:13px; font-weight:600;}
.hc-lt.meds span em{font-style:normal; opacity:.75; font-weight:500;}
.hc-foot{margin-top:12px; font-size:11.5px; opacity:.7;}
.hc-acts{display:flex; gap:8px; flex-wrap:wrap; justify-content:center; margin:0 0 16px;}
.hc-acts .btn{display:inline-flex; gap:7px; align-items:center;} .hc-acts .ic{width:17px; height:17px;}
.hc-sec{margin-top:14px;}
.hc-li{display:flex; gap:10px; justify-content:space-between; align-items:baseline; padding:8px 0; border-bottom:1px dashed var(--line);}
.hc-li:last-child{border-bottom:0;} .hc-li span small{display:block; color:var(--muted); font-size:12.5px;} .hc-li > small{color:var(--muted); white-space:nowrap; font-size:12.5px;}
.hc-tag{font-style:normal; font-size:11px; font-weight:700; background:#fff4dc; color:#92400e; border-radius:6px; padding:1px 6px;}
.hc-vit{display:grid; grid-template-columns:repeat(auto-fill, minmax(118px, 1fr)); gap:8px;}
.hc-vit div{background:#f6f8fc; border:1px solid var(--line); border-radius:12px; padding:8px 10px;}
.hc-vit small{display:block; color:var(--muted); font-size:12px;} .hc-vit b{font-size:19px;} .hc-vit em{font-style:normal; color:var(--muted); font-size:12px;}
.hc-vit i{display:block; font-style:normal; color:var(--muted); font-size:11px;}
.hc-labs{display:flex; flex-direction:column; gap:6px;}
.hc-lab{border:1px solid var(--line); border-radius:12px; background:#fff;} .hc-lab.ab{border-color:#fecaca; background:#fffafa;}
.hc-lab summary{list-style:none; display:flex; justify-content:space-between; gap:10px; padding:9px 12px; cursor:pointer;}
.hc-lab summary::-webkit-details-marker{display:none;}
.hc-lab .n{font-weight:600; min-width:0;} .hc-lab .n small{display:block; color:var(--muted); font-weight:400; font-size:12px;}
.hc-lab .v{text-align:right; white-space:nowrap;} .hc-lab .v small{display:block; color:var(--muted); font-size:12px;}
.hc-lab .fl{font-style:normal; font-size:11.5px; font-weight:700; color:#b91c1c; background:#fee2e2; border-radius:6px; padding:1px 6px;}
.hc-ch{padding:0 10px 10px;}
.ch-tl{position:relative;}
.ch-yr{font-weight:800; font-size:13px; color:var(--brand); margin:14px 0 6px 4px; letter-spacing:.04em;}
.ch-it{background:#fff; border:1px solid var(--line); border-left:4px solid #94a3b8; border-radius:14px; margin-bottom:8px;}
.ch-it.k-op{border-left-color:#2563eb;} .ch-it.k-lab{border-left-color:#0891b2;} .ch-it.k-ip{border-left-color:#7c3aed;} .ch-it.k-img{border-left-color:#4f46e5;}
.ch-it.k-vacc{border-left-color:#16a34a;} .ch-it.k-ot{border-left-color:#0d9488;}
.ch-it summary{list-style:none; display:flex; gap:10px; align-items:center; padding:10px 12px; cursor:pointer;}
.ch-it summary::-webkit-details-marker{display:none;}
.ch-it summary > i .ic{width:20px; height:20px; color:var(--muted);}
.ch-d{display:flex; flex-direction:column; align-items:center; min-width:38px; line-height:1.1;} .ch-d b{font-size:18px;} .ch-d small{font-size:11px; color:var(--muted); text-transform:uppercase;}
.ch-s{min-width:0; flex:1;} .ch-s small{display:block; color:var(--muted); font-size:12.5px; overflow:hidden; text-overflow:ellipsis;}
.ch-b{padding:0 14px 12px;}
@media (max-width:560px){ .hc-card{border-radius:18px; padding:16px;} .hc-name{font-size:19px;} .hc-qr{width:70px; height:70px;} .hc-grid{font-size:13px;} }
@media print{
  .rx-top, .rx-hero, .rx-nav, .rx-foot, .pt-disc, .hc-acts, .rx-tabbar, .ob-install{display:none !important;}
  .rx-body{display:block !important;} .rx-wrap{padding:0 !important; margin:0 !important;}
  .hc-card{box-shadow:none; margin:0 0 10px;} .hc-lab summary{padding:5px 10px;} .pub-card{break-inside:avoid;}
  .ch-it{break-inside:avoid;} .ch-it:not([open]) .ch-b{display:none;}
}

/* ===== App mode & install bar ===== */
.ob-install{position:fixed; left:12px; right:12px; bottom:12px; z-index:60; display:flex; gap:12px; align-items:center; max-width:520px; margin:0 auto;
  background:#fff; border:1px solid var(--line); border-radius:18px; padding:10px 12px; box-shadow:0 18px 44px rgba(15,27,45,.22);
  transform:translateY(140%); transition:transform .35s ease;}
.ob-install.show{transform:none;}
.ob-install img{width:44px; height:44px; border-radius:12px; flex:none;}
.ob-install div{flex:1; min-width:0;} .ob-install b{display:block; font-size:14.5px;} .ob-install span{display:block; font-size:12.5px; color:var(--muted);}
.ob-install .btn{padding:8px 14px; white-space:nowrap;}
.ob-x{border:0; background:none; font-size:24px; line-height:1; color:var(--muted); cursor:pointer; padding:0 4px;}
html.has-appbar .ob-install{bottom:84px;}
.ob-appbar{position:fixed; left:0; right:0; bottom:0; z-index:50; display:grid; grid-template-columns:repeat(4, 1fr); background:rgba(255,255,255,.97);
  border-top:1px solid var(--line); padding:6px 4px calc(6px + env(safe-area-inset-bottom)); backdrop-filter:blur(8px);}
.ob-appbar a{display:flex; flex-direction:column; align-items:center; gap:3px; text-decoration:none; color:#64748b; font-size:11.5px; font-weight:600; padding:4px 0; border-radius:12px;}
.ob-appbar a svg{width:22px; height:22px;} .ob-appbar a.on{color:var(--brand); background:var(--acc-soft);}
html.has-appbar body{padding-bottom:78px;}
html.app .pub-info .pi-map, html.in-android-app .ob-install{display:none !important;}
html.app body{-webkit-tap-highlight-color:transparent; overscroll-behavior-y:contain;}
.ob-getapp{display:inline-flex; align-items:center; gap:8px;}
.lg-app{display:flex; gap:8px; justify-content:center; flex-wrap:wrap; margin:10px 0 0;}
.lg-appb{display:inline-flex; align-items:center; gap:7px; padding:9px 14px; border-radius:12px; border:1px solid var(--line); background:#fff; color:var(--brand); font-weight:600; font-size:13.5px; text-decoration:none;}
.lg-appb .ic{width:17px; height:17px;} .ob-getapp .ic{width:16px; height:16px;}
html.app .ob-getapp:not(.ob-android), html.in-android-app .ob-android{display:none !important;}
@media (max-width:860px){ html.has-appbar .sum{bottom:84px;} }
html.has-appbar .pub-top .tops a.ph[href="queue.php"], html.has-appbar .pub-top .tops a.ph[href="portal.php"], html.has-appbar .pub-top .tops a.ph[href="manage.php"]{display:none;}

/* ===== Doctor login (1.9) ===== */
.dr-pw input{letter-spacing:normal !important; font-size:16px !important;}
.dr-tabs{display:flex; gap:6px; flex-wrap:wrap; margin:14px 0;}
.dr-tabs a{display:inline-flex; align-items:center; gap:7px; padding:9px 14px; border-radius:12px; background:#fff; border:1px solid var(--line); color:#334155; text-decoration:none; font-weight:600; font-size:14px;}
.dr-tabs a .ic{width:17px; height:17px;} .dr-tabs a em{font-style:normal; font-size:11.5px; background:#f1f5f9; border-radius:999px; padding:0 7px;}
.dr-tabs a.on{background:var(--brand); border-color:var(--brand); color:#fff;} .dr-tabs a.on em{background:rgba(255,255,255,.2); color:#fff;}
.dr-tabs.sub{margin-top:0; overflow-x:auto; flex-wrap:nowrap;} .dr-tabs.sub a{white-space:nowrap;}
.dr-hello{display:flex; flex-wrap:wrap; gap:4px 14px; align-items:baseline; margin:4px 0 12px;} .dr-hello h1{margin:0; font-size:22px;}
.dr-stats{display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:10px; margin-bottom:14px;}
.dr-stats div{background:#fff; border:1px solid var(--line); border-radius:14px; padding:10px 14px;} .dr-stats b{display:block; font-size:24px; color:var(--brand);} .dr-stats span{font-size:12.5px; color:var(--muted);}
.dr-row{display:flex; gap:12px; align-items:center; padding:10px 6px; border-bottom:1px solid var(--line); text-decoration:none; color:var(--text);}
.dr-row:last-child{border-bottom:0;} a.dr-row:hover{background:#f6f8fc; border-radius:10px;}
.dr-tok{min-width:52px; height:44px; border-radius:12px; background:var(--acc-soft); color:var(--acc); font-weight:800; display:flex; flex-direction:column; align-items:center; justify-content:center; font-size:15px; padding:0 6px;}
.dr-tok.ip{background:#f3e8ff; color:#7c3aed; font-size:13px;} .dr-tok.ap{background:#ecfdf5; color:#047857; font-size:13px; line-height:1.1;} .dr-tok small{font-size:10.5px; font-weight:600;}
.dr-av{width:40px; height:40px; border-radius:12px; background:var(--brand); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; flex:none;}
.dr-who{flex:1; min-width:0;} .dr-who b{display:block;} .dr-who small{display:block; color:var(--muted); font-size:12.5px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.dr-st{font-size:12px; font-weight:700; border-radius:999px; padding:3px 10px; background:#f1f5f9; color:#475569; white-space:nowrap;}
.dr-st.s-waiting{background:#fff7ed; color:#c2410c;} .dr-st.s-inprogress{background:#eff6ff; color:#1d4ed8;} .dr-st.s-cleared, .dr-st.s-saved{background:#ecfdf5; color:#047857;}
.dr-st.s-pending{background:#fffbeb; color:#b45309;} .dr-st.s-error{background:#fef2f2; color:#b91c1c;}
.dr-search{width:100%; margin-bottom:8px;}
.dr-pt{margin-top:0;}
.dr-note label{display:block; font-size:13px; font-weight:600; color:#334155; margin:8px 0 4px;}
.dr-note textarea, .dr-note input, .dr-note select{width:100%;}
.dr-target{display:flex; flex-direction:column; gap:6px; background:#f6f8fc; border-radius:12px; padding:10px 12px; margin-bottom:6px;}
.dr-target label{display:flex; gap:8px; align-items:center; margin:0; font-weight:500;} .dr-target input{width:auto;}
.dr-vin{display:grid; grid-template-columns:repeat(5, minmax(0,1fr)); gap:8px;}
.dr-more{margin-top:10px; border:1px dashed var(--line); border-radius:12px; padding:6px 12px;} .dr-more summary{cursor:pointer; font-weight:600; color:var(--acc);}
.dr-meds{display:flex; flex-direction:column; gap:6px;}
.dr-med{display:grid; grid-template-columns:2.2fr .9fr 1.1fr .7fr 1.4fr; gap:6px;}
.dr-spin{width:42px; height:42px; margin:0 auto; border-radius:50%; border:4px solid var(--acc-soft); border-top-color:var(--acc); animation:drs 1s linear infinite;}
@keyframes drs{to{transform:rotate(360deg);}}
@media (max-width:640px){
  .dr-stats{grid-template-columns:repeat(2, minmax(0,1fr));} .dr-vin{grid-template-columns:repeat(3, minmax(0,1fr));}
  .dr-med{grid-template-columns:1fr 1fr; padding:8px; border:1px solid var(--line); border-radius:12px;} .dr-med input:first-child{grid-column:1 / -1;}
}
