/* عيادات د. محمد عطية مسامير — design tokens
   Layout: one app column (phone first, wider on tablet), sticky header, bottom tab bar;
   a dark ink "now" card is the only hero; everything else is quiet lists. */
:root{
  --bg:#eef2f3; --surface:#ffffff; --sunk:#e4eaec; --ink:#0f2433; --muted:#5b6d78; --line:#d5dee2;
  --brand:#123b52; --brand-2:#1d5774; --on-brand:#f2f7f9; --on-brand-mute:#a9c3cf;
  --accent:#0e7f72; --accent-ink:#ffffff; --accent-soft:#d5eeea;
  --brass:#a7813f; --brass-soft:#f3ead9;
  /* text on the soft tag backgrounds: darker so small labels pass 4.5:1 */
  --accent-text:#075a51; --brass-text:#6e5120;
  --warn:#94600f; --warn-soft:#f7ebd3; --danger:#b5372c; --danger-soft:#f9e1de; --ok:#2a7a50; --ok-soft:#dbf0e3;
  --paper:#ffffff; --paper-ink:#18272e; --paper-line:#cdd6d6; --paper-mute:#5a6a6e;
  --f-display:"Alexandria","IBM Plex Sans Arabic",Tahoma,sans-serif;
  --f-body:"IBM Plex Sans Arabic",Tahoma,"Segoe UI",sans-serif;
  --r:14px;
  color-scheme:light;
}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){
  --bg:#0a151c; --surface:#111f28; --sunk:#0d1a22; --ink:#e3edf1; --muted:#93a7b2; --line:#22363f;
  --brand:#16405a; --brand-2:#1f5877; --on-brand:#eef6f9; --on-brand-mute:#9dbccb;
  --accent:#3dbfae; --accent-ink:#04201c; --accent-soft:#12372f;
  --brass:#d2ad6c; --brass-soft:#33291a;
  --accent-text:#3dbfae; --brass-text:#d2ad6c;
  --warn:#e2aa50; --warn-soft:#33281a; --danger:#f07d71; --danger-soft:#3a1c1a; --ok:#62c792; --ok-soft:#153123;
  color-scheme:dark}}
:root[data-theme="dark"]{
  --bg:#0a151c; --surface:#111f28; --sunk:#0d1a22; --ink:#e3edf1; --muted:#93a7b2; --line:#22363f;
  --brand:#16405a; --brand-2:#1f5877; --on-brand:#eef6f9; --on-brand-mute:#9dbccb;
  --accent:#3dbfae; --accent-ink:#04201c; --accent-soft:#12372f;
  --brass:#d2ad6c; --brass-soft:#33291a;
  --accent-text:#3dbfae; --brass-text:#d2ad6c;
  --warn:#e2aa50; --warn-soft:#33281a; --danger:#f07d71; --danger-soft:#3a1c1a; --ok:#62c792; --ok-soft:#153123;
  color-scheme:dark}

*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--f-body);font-size:15px;line-height:1.6;
  padding:env(safe-area-inset-top,0px) max(16px,env(safe-area-inset-right,0px)) 0 max(16px,env(safe-area-inset-left,0px));
  -webkit-tap-highlight-color:transparent}
body::before{content:"";position:fixed;inset:0 0 auto;height:env(safe-area-inset-top,0px);z-index:10;background:var(--bg)}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
img{max-width:100%}
[hidden]{display:none!important}
.app{max-width:560px;margin:0 auto;padding-bottom:110px;min-width:0}
.app.bare{padding-bottom:24px}
.num{font-variant-numeric:tabular-nums}
h1,h2,h3{font-family:var(--f-display);margin:0;text-wrap:balance;line-height:1.35;font-weight:600}
h1{font-size:21px} h2{font-size:16px} h3{font-size:14.5px}
p{margin:0}
.muted{color:var(--muted)} .small{font-size:13px} .tiny{font-size:11.5px}
.stack{display:flex;flex-direction:column;gap:14px} .stack.tight{gap:8px}
.row{display:flex;align-items:center;gap:10px} .between{justify-content:space-between} .wrap{flex-wrap:wrap}
.grow{flex:1;min-width:0}
.sec{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin-top:4px}
.sec h2{font-size:15px}
/* a count after a section title sits beside it as a small pill, not alone at the far edge */
.sec>h2+span.small.muted{margin-inline-end:auto;align-self:center;background:var(--sunk);color:var(--muted);border-radius:999px;padding:1px 9px;font-size:12px;font-weight:600}
.center{text-align:center}
.danger-text{color:var(--danger)} .ok-text{color:var(--ok)} .warn-text{color:var(--warn)}

/* header */
.top{position:sticky;top:env(safe-area-inset-top,0px);z-index:5;background:var(--bg);padding-block:12px;display:flex;align-items:center;gap:10px}
.top .title{min-width:0;flex:1}
.top .title h1{overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow-wrap:anywhere}   /* a long patient name wraps to 2 lines instead of being cut */
.me{display:flex;align-items:center;gap:10px;min-width:0;border:0;background:none;padding:0;text-align:start;flex:1}
.mono{width:40px;height:40px;border-radius:12px;background:var(--brand);color:var(--on-brand);display:grid;place-items:center;font-family:var(--f-display);font-weight:700;font-size:14px;flex:none;position:relative}
.mono::after{content:"";position:absolute;inset:3px;border-radius:9px;border:1px solid var(--brass)}
.mono.lg{width:92px;height:92px;border-radius:28px;font-size:28px}
.mono.lg::after{inset:6px;border-radius:22px;border-width:1.5px}
.me .t1{font-size:12px;color:var(--muted)}
.me .t2{font-family:var(--f-display);font-weight:600;font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.iconbtn{border:0;background:var(--sunk);border-radius:12px;width:44px;height:44px;display:grid;place-items:center;flex:none}
.iconbtn svg{width:20px;height:20px}
.backbtn{border:0;background:var(--sunk);border-radius:12px;height:44px;padding:0 12px;flex:none;display:flex;align-items:center;gap:4px}
.backbtn svg{width:18px;height:18px}
.sync{font-size:11px;color:var(--muted);display:flex;align-items:center;gap:5px}
.sync i{width:7px;height:7px;border-radius:50%;background:var(--ok)}

/* surfaces */
.card{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:14px}
.card.flush{padding:0;overflow:hidden}
.list{background:var(--surface);border:1px solid var(--line);border-radius:16px;overflow:hidden}
.li{display:flex;align-items:center;gap:12px;padding:12px 14px;border:0;border-bottom:1px solid var(--line);background:transparent;width:100%;text-align:start}
.li:last-child{border-bottom:0}
.li .grow b{display:block;font-weight:600}
.li .chev{color:var(--muted);flex:none}
.li .chev svg{width:16px;height:16px}
.li>svg{width:22px;height:22px;flex:none;color:var(--muted)}
button.li:active{background:var(--sunk)}
/* a list row with its own call button on the side (patients list) */
.li-call{display:flex;align-items:center;border-bottom:1px solid var(--line)}
.li-call:last-child{border-bottom:0}
.li-call>.li{border-bottom:0;flex:1;min-width:0}
.li-call>a.iconbtn{margin-inline-end:12px;color:var(--accent-text)}
a.btn svg{flex:none}
.tap{display:block;width:100%;text-align:start}
.empty{padding:28px 16px;text-align:center;color:var(--muted);font-size:14px}

/* now card */
.now{background:var(--brand);color:var(--on-brand);border-radius:20px;padding:16px;display:flex;flex-direction:column;gap:12px;position:relative;overflow:hidden}
.now::before{content:"";position:absolute;inset:auto -40px -60px auto;width:180px;height:180px;border-radius:50%;border:24px solid var(--brand-2);opacity:.7;pointer-events:none}
.now>*{position:relative}
.now .lbl{font-size:12px;color:var(--on-brand-mute)}
.now .where{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--on-brand-mute)}
.now .where i{width:8px;height:8px;border-radius:50%;background:#55e0c5;box-shadow:0 0 0 4px rgba(85,224,197,.2)}
.now .where i.off{background:var(--on-brand-mute);box-shadow:none}
.now .pt{font-family:var(--f-display);font-size:22px;font-weight:600;line-height:1.3}
.now .stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.now .stats div{background:rgba(255,255,255,.08);border-radius:12px;padding:8px 10px}
.now .stats b{font-family:var(--f-display);font-size:19px;display:block;line-height:1.2}
.now .stats span{font-size:11.5px;color:var(--on-brand-mute)}
.btn.light{background:var(--on-brand);color:var(--brand)}
.now-wx{margin-inline-start:auto;display:inline-flex;align-items:center;gap:6px;color:var(--on-brand);white-space:nowrap;font-size:15px;font-weight:600;background:rgba(255,255,255,.1);border-radius:999px;padding:3px 12px}
.now-wx .wx-ic{width:1.35em;height:1.35em}
.now .where{flex-wrap:wrap;row-gap:6px}
/* two-card choice (first run: demo data or empty) */
.choice2{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.choice{position:relative;display:flex;flex-direction:column;gap:2px;border:1.5px solid var(--line);background:var(--surface);border-radius:14px;padding:12px;cursor:pointer;min-height:44px}
.choice input{position:absolute;opacity:0;pointer-events:none}
.choice b{font-size:14px}.choice span{font-size:12px;color:var(--muted);line-height:1.5}
.choice:has(input:checked){border-color:var(--accent);background:var(--accent-soft)}
.choice:has(input:focus-visible){outline:2px solid var(--accent);outline-offset:2px}
/* first-run checklist inside the dark card */
.setup{display:flex;flex-direction:column}
.setup-step{display:flex;align-items:center;gap:10px;min-height:48px;padding:6px 0;border:0;border-top:1px solid rgba(255,255,255,.12);background:none;color:var(--on-brand);text-align:start;font-size:14px;width:100%}
.setup-step .opt{color:var(--on-brand-mute);font-size:12px}
.setup-step.done{color:var(--on-brand-mute)}
.setup-dot{width:24px;height:24px;border-radius:50%;border:2px solid var(--on-brand-mute);display:grid;place-items:center;font-size:13px;flex:none}
.setup-step.done .setup-dot{background:var(--ok);border-color:var(--ok);color:#fff}
.setup-go{border-radius:10px;min-height:36px;padding:0 12px;display:grid;place-items:center;background:var(--accent);color:var(--accent-ink);font-family:var(--f-display);font-weight:600;font-size:13px;flex:none}
.seg{display:flex;background:var(--sunk);border-radius:12px;padding:3px;gap:3px;overflow-x:auto}
.seg button{border:0;background:transparent;border-radius:9px;padding:6px 12px;font-size:13px;color:var(--muted);white-space:nowrap;flex:1;min-height:38px}
.seg button[aria-pressed="true"]{background:var(--surface);color:var(--ink);font-weight:600;box-shadow:0 1px 2px rgba(0,0,0,.08)}
.now .seg{background:rgba(255,255,255,.1)}
.now .seg button{color:var(--on-brand-mute)}
.now .seg button[aria-pressed="true"]{background:var(--on-brand);color:var(--brand)}

/* alerts */
.alert{border-radius:14px;padding:11px 12px;font-size:14px;display:flex;gap:10px;align-items:flex-start;border:0;width:100%;text-align:start}
.alert svg{width:18px;height:18px;flex:none;margin-top:2px}
.alert.warn{background:var(--warn-soft);color:var(--warn)}
.alert.danger{background:var(--danger-soft);color:var(--danger)}
.alert.info{background:var(--accent-soft);color:var(--accent-text)}
.alert.ok{background:var(--ok-soft);color:var(--ok)}

/* tags */
.tag{font-size:11.5px;font-weight:600;padding:2px 9px;border-radius:999px;white-space:nowrap;display:inline-block}
.t-new{background:var(--accent-soft);color:var(--accent-text)}
.t-re{background:var(--sunk);color:var(--muted)}
.t-op{background:var(--brass-soft);color:var(--brass-text)}
.t-bad{background:var(--danger-soft);color:var(--danger)}
.t-ok{background:var(--ok-soft);color:var(--ok)}
.t-warn{background:var(--warn-soft);color:var(--warn)}

/* buttons */
.btn{border:0;border-radius:14px;padding:12px 16px;font-weight:600;font-family:var(--f-display);font-size:14.5px;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:46px}
.btn svg{width:18px;height:18px}
.btn.primary{background:var(--accent);color:var(--accent-ink)}
.btn.dark{background:var(--brand);color:var(--on-brand)}
.btn.ghost{background:var(--sunk)}
.btn.outline{background:transparent;border:1px solid var(--line)}
.btn.danger{background:var(--danger-soft);color:var(--danger)}
.btn.sm{min-height:44px;padding:6px 12px;font-size:13px;border-radius:10px}
.btn.block{width:100%}
.btn[disabled]{opacity:.45;cursor:not-allowed}
.btns{display:flex;gap:8px}
.btns>.btn{flex:1}

/* queue */
.q{display:grid;grid-template-columns:36px 1fr auto;gap:10px;align-items:center;padding:10px 12px;background:var(--surface);border:1px solid var(--line);border-radius:14px;width:100%;text-align:start}
.q .n{font-family:var(--f-display);font-weight:600;font-size:15px;width:36px;height:36px;border-radius:11px;background:var(--sunk);display:grid;place-items:center}
.q.inside{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}
.q.inside .n{background:var(--accent);color:var(--accent-ink)}
.q.done,.q.noshow{opacity:.55}
.q b{font-weight:600}
.q .side{display:flex;flex-direction:column;align-items:flex-end;gap:4px}

/* patient */
.ph{display:flex;gap:12px;align-items:center}
.avatar{width:52px;height:52px;border-radius:16px;background:var(--accent-soft);color:var(--accent);display:grid;place-items:center;font-family:var(--f-display);font-weight:700;font-size:20px;flex:none}
.avatar.sm{width:40px;height:40px;border-radius:12px;font-size:16px}
.tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);overflow-x:auto}
.tabs button{border:0;background:transparent;padding:8px 10px;color:var(--muted);border-bottom:2px solid transparent;margin-bottom:-1px;font-size:14px;white-space:nowrap}
.tabs button[aria-selected="true"]{color:var(--ink);border-color:var(--accent);font-weight:600}
.visits{display:flex;flex-direction:column}
.visit{display:grid;grid-template-columns:14px 1fr;gap:12px}
.visit .dot{width:10px;height:10px;border-radius:50%;background:var(--accent);margin-top:7px;position:relative}
.visit .dot.op{background:var(--brass)}
.visit:not(:last-child) .dot::after{content:"";position:absolute;top:14px;right:4px;width:2px;height:400px;max-height:calc(100% + 200px);background:var(--line)}
.visits .visit{overflow:hidden}
.visit .vb{padding-bottom:18px;min-width:0;display:flex;flex-direction:column;gap:3px}
.visit .meta{font-size:12px;color:var(--muted)}
.rxline{font-size:13px;color:var(--muted);direction:ltr;text-align:right;overflow-wrap:anywhere}
.imgs{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.thumb{border-radius:12px;overflow:hidden;background:var(--sunk);border:1px solid var(--line);aspect-ratio:1/1;max-width:100%;padding:0;position:relative}
.thumb img{width:100%;height:100%;object-fit:cover;display:block}
.thumb span{position:absolute;inset:auto 0 0 0;font-size:11px;background:rgba(0,0,0,.55);color:#fff;padding:2px 6px;text-align:start}
.kv{display:grid;grid-template-columns:auto 1fr;gap:6px 14px;font-size:14px}
.kv dt{color:var(--muted)} .kv dd{margin:0;min-width:0;overflow-wrap:anywhere}

/* forms */
.field{display:flex;flex-direction:column;gap:4px;min-width:0}
.field>label,.flabel{font-size:13px;color:var(--muted);font-weight:500}
.input,.field input,.field select,.field textarea{padding:11px 12px;border-radius:12px;border:1px solid var(--line);background:var(--surface);width:100%;min-height:46px}
.field textarea{min-height:84px;resize:vertical}
.field .hint{font-size:12px;color:var(--muted)}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.grid2>*{min-width:0}
.check-row{display:flex;align-items:center;gap:10px;padding:10px 0}
.check-row input{width:20px;height:20px;accent-color:var(--accent);flex:none}
.switch{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-bottom:1px solid var(--line)}
.switch:last-child{border-bottom:0}
.switch input{width:44px;height:26px;accent-color:var(--accent);flex:none}
.search{position:relative}
.search input{padding-inline-start:40px}
.search svg{position:absolute;inset-inline-start:12px;top:13px;width:20px;height:20px;color:var(--muted)}

/* chips */
.group{display:flex;flex-direction:column;gap:10px}
.group h3 .step{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:7px;background:var(--brand);color:var(--on-brand);font-size:12px;margin-inline-end:6px}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{border:1px solid var(--line);background:var(--surface);border-radius:999px;padding:6px 14px;font-size:14px;min-height:44px}
.chip[aria-pressed="true"]{background:var(--brand);border-color:var(--brand);color:var(--on-brand)}
.chip.tpl{border-style:dashed}
.chip.ai-on{box-shadow:0 0 0 3px var(--accent-soft)}
.chip.x{display:inline-flex;align-items:center;gap:6px}
.sides{display:grid;grid-template-columns:1fr 1fr;gap:12px}
/* exam: one block per part, a strong title, choices in an even grid instead of a ragged row */
.exam-part{display:flex;flex-direction:column;gap:10px;padding-top:14px;border-top:1px solid var(--line)}
.group>h3+.exam-part{border-top:0;padding-top:2px}
.group>h3{display:flex;align-items:center;gap:0;font-size:18px}
.group>h3 .step{width:26px;height:26px;font-size:13px;border-radius:8px}
.exam-h{font-size:15px}
.group>h3 .exam-n{font-family:var(--f-body)}
.exam-h{margin:0;display:flex;align-items:center;gap:8px;font-family:var(--f-display);font-size:16px;font-weight:600;color:var(--ink)}
.exam-h::before{content:"";width:4px;height:18px;border-radius:2px;background:var(--accent);flex:none}
.exam-n{margin-inline-start:auto;background:var(--accent-soft);color:var(--accent-text);border-radius:999px;padding:0 9px;font-size:12px;font-weight:600}
.exam-side{font-size:12px;font-weight:600;color:var(--muted);background:var(--sunk);border-radius:8px;padding:3px 10px;margin-bottom:8px;text-align:center}
.chips.exam-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:8px}
.chips.exam-grid .chip{border-radius:12px;padding:6px 8px;line-height:1.35;text-align:center}
.sides .chips.exam-grid{grid-template-columns:repeat(auto-fill,minmax(96px,1fr))}
.sides>div{min-width:0}
/* visit: "show all" for long lists, the one-tap normal exam, and a normal exam part folded into one line */
.chip.more{border-style:dashed;color:var(--accent-text);font-weight:600}
.exam-ok{border:1px solid var(--line);min-height:48px}
.exam-fold{display:flex;align-items:center;gap:10px;width:100%;min-height:48px;padding:10px 2px 0;border:0;border-top:1px solid var(--line);background:none;color:var(--ink);font:inherit;text-align:start;cursor:pointer}
.exam-fold b{font-family:var(--f-display);font-weight:600}
.exam-fold .grow{color:var(--accent-text)}
.side-h{font-size:12px;font-weight:600;color:var(--muted);margin-bottom:6px}
.med{display:grid;grid-template-columns:1fr auto;gap:6px;align-items:center;padding:9px 11px;background:var(--sunk);border-radius:12px}
.med.bad{background:var(--danger-soft);color:var(--danger)}
.med input{border:0;background:transparent;width:100%;padding:2px 0;font-size:13px;color:inherit}
.med .x{border:0;background:transparent;font-size:20px;line-height:1;padding:4px 8px;color:var(--muted)}
.note-mic{display:flex;gap:10px;align-items:flex-start;background:var(--accent-soft);color:var(--accent-text);border-radius:12px;padding:10px 12px;font-size:14px;line-height:1.7}
.note-mic svg{width:20px;height:20px;flex:none;margin-top:3px}
/* dose in a few taps (under each drug in the visit) */
.dose-tgl{border:0;background:transparent;color:var(--accent-text);font-weight:600;font-size:13px;padding:6px 0;min-height:36px;text-align:start}
.dose-pick{display:flex;flex-direction:column;gap:8px;padding:8px 0 4px;border-top:1px dashed var(--line);margin-top:4px}
.dose-row{display:flex;flex-direction:column;gap:4px}
.dose-l{font-size:12px;color:var(--muted);font-weight:600}
.dose-pick .chip{min-height:40px;font-size:13px;padding:4px 12px}
/* row editors (drug list, ready prescriptions) */
.mrows{display:flex;flex-direction:column;gap:8px}
.mrow{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr) 44px;gap:6px;align-items:center}
.mrow input{min-height:44px;padding:8px 10px;border:1px solid var(--line);border-radius:10px;background:var(--surface);width:100%;font-size:14px}
.mrow .x{width:44px;height:44px;border:0;border-radius:10px;background:var(--sunk);color:var(--muted);font-size:20px;line-height:1}
.mrows-h{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr) 44px;gap:6px;font-size:12px;color:var(--muted);font-weight:600}
.suggest{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--surface)}
.suggest button{border:0;border-bottom:1px solid var(--line);background:transparent;text-align:start;padding:9px 12px;direction:ltr}
.suggest button:last-child{border-bottom:0}

/* AI */
.ai{border:1px solid var(--line);background:linear-gradient(135deg,var(--accent-soft),var(--surface) 65%);border-radius:16px;padding:14px;display:flex;flex-direction:column;gap:10px}
.ai-lbl{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:600;color:var(--accent)}
.ai-lbl svg{width:15px;height:15px}
.mic{display:flex;align-items:center;gap:12px;border:0;background:var(--brand);color:var(--on-brand);border-radius:14px;padding:10px 12px;width:100%;text-align:start}
.mic .md{width:38px;height:38px;border-radius:50%;background:var(--accent);color:var(--accent-ink);display:grid;place-items:center;flex:none}
.mic .md svg{width:18px;height:18px}
.mic b{font-family:var(--f-display);font-weight:600;display:block}
.mic .sub{font-size:12px;color:var(--on-brand-mute)}
.mic.listen .md{background:#e5484d;color:#fff;box-shadow:0 0 0 6px rgba(229,72,77,.25)}
.wave{display:flex;gap:3px;align-items:center;height:22px;margin-inline-start:auto}
.wave i{width:3px;border-radius:2px;background:var(--on-brand);height:6px}
.dtext{font-size:14px;line-height:1.85}
.ai-note{font-size:12px;color:var(--muted)}
.neg{color:var(--danger)}
/* visit: the specialty's measurements, one compact card above the visit; a reading out of range turns red (or amber when low) */
.measures{padding:12px 14px}
.meas-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(128px,1fr));gap:10px 12px}
.meas{display:flex;flex-direction:column;gap:4px;min-width:0}
.meas-n{font-size:13px;font-weight:600;color:var(--ink)}
.meas-n i{font-style:normal;font-weight:400;color:var(--muted);font-size:12px}
.meas .input{text-align:center;font-weight:600;min-height:44px}
.meas-h{min-height:1.3em;color:var(--muted);line-height:1.4}
.meas.hi .input{border-color:var(--danger);color:var(--danger)}
.meas.hi .meas-h b{color:var(--danger)}
.meas.lo .input{border-color:var(--warn);color:var(--warn)}
.meas.lo .meas-h b{color:var(--warn)}
.meas-bmi{margin-top:8px;color:var(--muted)}
.rx-vitals{padding-top:6px}
/* ophthalmology: the glasses prescription (entry grid in the visit, table on the optician's sheet) */
.gl-grid{display:grid;grid-template-columns:72px repeat(3,minmax(0,1fr));gap:8px;align-items:center}
.gl-grid b{font-size:13px;text-align:center}
.gl-grid .input{text-align:center;font-weight:600;min-height:44px}
.gl-title{text-align:center;margin:10px 0 6px;font-family:var(--f-display)}
.gl-tbl{width:100%;border-collapse:collapse;font-size:15px;margin:4px 0 8px}
.gl-tbl th,.gl-tbl td{border:1px solid #c9d3d8;padding:8px 6px;text-align:center}
.gl-tbl th{background:#f1f5f6;font-weight:600}
/* dentistry: the tooth chart (FDI), patient's right on the viewer's left */
.tooth-chart{display:flex;flex-direction:column;gap:6px;padding:6px 0;overflow-x:auto}
.tooth-row{display:flex;gap:3px;justify-content:center;min-width:max-content}
.tooth-row:first-child{border-bottom:1px dashed var(--line);padding-bottom:6px}
.tooth-mid{width:8px;border-inline-start:1px dashed var(--line);margin-inline-start:4px}
.tooth{width:34px;height:42px;border:1px solid var(--line);border-radius:10px 10px 14px 14px;background:var(--surface);color:var(--ink);font:inherit;font-size:12px;font-weight:600;padding:0;cursor:pointer}
.tooth:disabled{cursor:default;opacity:1}
.tooth.bad{background:var(--danger-soft);border-color:var(--danger)}
.tooth.plan{background:var(--accent-soft);border-color:var(--accent)}
.tooth.done{background:var(--ok-soft);border-color:var(--ok)}
.tooth.out{background:var(--sunk);color:var(--muted);text-decoration:line-through}
.tooth-legend{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;color:var(--muted)}
.tooth-legend span::before{content:"";display:inline-block;width:10px;height:10px;border-radius:3px;margin-inline-end:4px;vertical-align:middle;border:1px solid var(--line)}
.tooth-legend .bad::before{background:var(--danger-soft);border-color:var(--danger)}.tooth-legend .plan::before{background:var(--accent-soft);border-color:var(--accent)}
.tooth-legend .done::before{background:var(--ok-soft);border-color:var(--ok)}.tooth-legend .out::before{background:var(--sunk)}
/* lab and imaging request sheet */
.labs-ol{margin:0 0 8px;padding-inline-start:22px;display:flex;flex-direction:column;gap:6px;font-size:15px}
/* queue: what reception should know at a glance */
.q-flags{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}
.q-flags .tag{font-size:11px;padding:1px 8px}
/* session packages */
.pkg-row{background:var(--accent-soft);border-radius:12px;padding:8px 10px}
.pkg-bar{height:8px;border-radius:99px;background:var(--sunk);overflow:hidden}
.pkg-bar i{display:block;height:100%;background:var(--accent);border-radius:99px}
/* pediatrics: the vaccination card */
.vax-list{display:flex;flex-direction:column;gap:12px}
.vax-age{display:flex;flex-direction:column;gap:6px}
.vax-h{display:flex;align-items:baseline;gap:8px}
.vax{display:flex;align-items:center;gap:10px;width:100%;min-height:48px;padding:8px 12px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);font:inherit;text-align:start;cursor:pointer}
.vax .vax-s{font-size:12px;font-weight:600;white-space:nowrap}
.vax.given{background:var(--ok-soft);border-color:transparent}.vax.given .vax-s{color:var(--ok)}
.vax.late{border-color:var(--danger)}.vax.late .vax-s{color:var(--danger)}
.vax.soon .vax-s{color:var(--warn)}
.gl-extra{display:flex;gap:18px;justify-content:center;padding:4px 0 8px;font-size:14px}
/* visit: a finished part folded into one line, treatment suggestions, and save always in reach */
.fold-line{display:flex;align-items:center;gap:10px;width:100%;min-height:52px;padding:10px 14px;border:1px solid var(--line);background:var(--surface);color:var(--ink);font:inherit;text-align:start;cursor:pointer}
.fold-line b{font-family:var(--f-display);font-weight:600;flex:none}
.fold-line .grow{color:var(--accent-text);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fold-line .step{display:inline-grid;place-items:center;width:26px;height:26px;font-size:13px;border-radius:8px;flex:none;background:var(--brand);color:var(--on-brand)}
.rx-sugg{gap:8px}
.sugg-row{display:flex;align-items:center;gap:10px;width:100%;padding:10px 12px;border:1px dashed var(--accent);border-radius:12px;background:var(--accent-soft);color:var(--ink);font:inherit;text-align:start;cursor:pointer}
.sugg-row .grow{display:flex;flex-direction:column;gap:2px;min-width:0}
.sugg-row .small{text-align:left;overflow-wrap:anywhere}
.save-bar{position:sticky;bottom:calc(64px + env(safe-area-inset-bottom,0px));z-index:5;padding-top:10px;background:linear-gradient(to bottom,transparent,var(--bg) 35%)}
@media (min-width:600px){.save-bar{bottom:12px}}
/* «ده اللي فهمته»: what the assistant understood, in one place, with save right there */
.ai.review{border-color:var(--accent);background:var(--surface)}
.rev{margin:0;display:flex;flex-direction:column;gap:8px}
.rev>div{display:grid;grid-template-columns:76px 1fr;gap:10px;align-items:start;padding-bottom:8px;border-bottom:1px solid var(--line)}
.rev>div:last-child{border-bottom:0;padding-bottom:0}
.rev dt{font-size:13px;font-weight:600;color:var(--muted)}
.rev dd{margin:0;font-size:15px;line-height:1.7;white-space:pre-line;overflow-wrap:anywhere}
.ai-ways{gap:8px;flex-wrap:wrap}
.ai-ways svg{width:16px;height:16px}

/* surgery */
.pbar{height:6px;border-radius:999px;background:var(--sunk);overflow:hidden}
.pbar i{display:block;height:100%;background:var(--accent);border-radius:999px}
.check{display:flex;align-items:center;gap:10px;padding:11px 12px;border-radius:12px;background:var(--surface);border:1px solid var(--line);width:100%;text-align:start}
.box{width:22px;height:22px;border-radius:7px;border:2px solid var(--muted);display:grid;place-items:center;flex:none;color:var(--accent-ink);font-size:13px}
.check.on .box{background:var(--ok);border-color:var(--ok)}
.check.on{color:var(--ok)}
.check .by{margin-inline-start:auto;font-size:11px;color:var(--muted)}
.money{display:flex;flex-direction:column;gap:7px}
.money .row{justify-content:space-between}
.money .total{border-top:1px solid var(--line);padding-top:9px;font-weight:600}
.big{font-family:var(--f-display);font-size:28px;font-weight:700;line-height:1.1}

/* reports */
.hbar{display:grid;grid-template-columns:84px 1fr auto;gap:10px;align-items:center;font-size:13px}
.hbar>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hbar .tr{height:12px;background:var(--sunk);border-radius:999px;overflow:hidden}
.hbar .tr i{display:block;height:100%;border-radius:999px;background:var(--brand-2)}
.hbar.c0 .tr i{background:var(--accent)} .hbar.c1 .tr i{background:var(--brand-2)} .hbar.c2 .tr i{background:var(--brass)} .hbar.c3 .tr i{background:var(--muted)}
.kpis{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.kpi{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:12px}
.kpi b{font-family:var(--f-display);font-size:20px;display:block;line-height:1.3}
.kpi span{font-size:12px;color:var(--muted)}

/* login */
.login{min-height:100%;display:flex;flex-direction:column;justify-content:center;gap:24px;padding-block:32px;max-width:420px;margin:0 auto}
.brandname{text-align:center;display:flex;flex-direction:column;gap:4px;align-items:center}
.brandname h1{font-size:23px}
.brandname .spec{color:var(--brass);font-family:var(--f-display);font-size:14px;font-weight:500}
.users{display:flex;flex-direction:column;gap:8px}
.pin{display:flex;justify-content:center;gap:12px;direction:ltr}
.pin i{width:14px;height:14px;border-radius:50%;border:2px solid var(--muted)}
.pin i.on{background:var(--brand);border-color:var(--brand)}
.pad{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;direction:ltr;max-width:300px;margin:0 auto;width:100%}
.pad button{border:0;background:var(--surface);border:1px solid var(--line);border-radius:16px;height:58px;font-family:var(--f-display);font-size:22px;font-weight:600}
.pad button:active{background:var(--sunk)}
.pad .fn{font-size:14px;background:transparent;border-color:transparent}

/* nav */
.nav{position:fixed;inset:auto 0 0 0;z-index:6;background:var(--surface);border-top:1px solid var(--line);
  padding:6px max(16px,env(safe-area-inset-right,0px)) calc(6px + env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px))}
.nav-in{max-width:560px;margin:0 auto;display:grid;grid-template-columns:repeat(var(--cols,5),1fr)}
.nav button{border:0;background:transparent;display:flex;flex-direction:column;align-items:center;gap:2px;font-size:11.5px;color:var(--muted);padding:4px 2px;position:relative}
.nav button svg{width:22px;height:22px}
.nav button[aria-current="page"]{color:var(--accent);font-weight:600}
.badge{position:absolute;top:0;left:calc(50% - 22px);background:var(--danger);color:#fff;border-radius:999px;font-size:10px;padding:0 5px;line-height:16px;min-width:16px}

/* sheets */
.overlay{position:fixed;inset:0;z-index:20;background:rgba(4,14,20,.55);display:flex;align-items:flex-end;justify-content:center;
  padding:max(16px,env(safe-area-inset-top,0px)) max(16px,env(safe-area-inset-right,0px)) 0 max(16px,env(safe-area-inset-left,0px))}
.sheet{background:var(--bg);width:100%;max-width:560px;max-height:92%;overflow:auto;border-radius:20px 20px 0 0;padding:16px 16px calc(16px + env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;gap:12px}
.sheet-h{display:flex;justify-content:space-between;align-items:center;gap:10px}
.toast{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(90px + env(safe-area-inset-bottom,0px));z-index:40;background:var(--ink);color:var(--bg);padding:10px 16px;border-radius:12px;font-size:14px;max-width:calc(100% - 32px);text-align:center;box-shadow:0 6px 20px rgba(0,0,0,.2)}
.toast.has-act{display:flex;align-items:center;gap:12px;text-align:start;padding-block:6px;padding-inline:14px 6px;width:min(440px,calc(100% - 32px))}
.toast.has-act span{flex:1;min-width:0}
.toast button{border:0;border-radius:10px;min-height:40px;padding:0 16px;background:var(--accent);color:var(--accent-ink);font-family:var(--f-display);font-weight:600;flex:none}
.viewer{position:fixed;inset:0;z-index:30;background:#000;display:flex;flex-direction:column}
.viewer img{flex:1;object-fit:contain;min-height:0;width:100%}
.viewer .vbar{display:flex;gap:8px;padding:12px max(16px,env(safe-area-inset-right,0px)) calc(12px + env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px));color:#fff;align-items:center}

/* nurse call */
.callbox{position:fixed;inset:0;z-index:50;background:rgba(4,14,20,.72);display:grid;place-items:center;
  padding:max(16px,env(safe-area-inset-top,0px)) max(16px,env(safe-area-inset-right,0px)) max(16px,env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px))}
.callcard{background:var(--brand);color:var(--on-brand);border-radius:24px;padding:24px 20px;width:100%;max-width:420px;display:flex;flex-direction:column;gap:16px;text-align:center;box-shadow:0 20px 60px rgba(0,0,0,.4)}
.callcard .small{color:var(--on-brand-mute)}
.calltext{font-family:var(--f-display);font-size:26px;font-weight:700;line-height:1.35;text-wrap:balance}
.callbox.urgent .callcard{background:#9b2c22}
@media (prefers-reduced-motion:no-preference){.callcard{animation:callpulse 1.2s ease-in-out infinite}@keyframes callpulse{50%{transform:scale(1.03)}}}

/* rx (screen preview + print) */
.rx{background:var(--paper);color:var(--paper-ink);border-radius:6px;padding:18px 16px 14px;box-shadow:0 1px 4px rgba(0,0,0,.18);font-size:14px;position:relative;overflow:hidden}
.rx-head{display:flex;justify-content:space-between;align-items:center;gap:10px;padding-bottom:12px;border-bottom:2px solid #123b52}
.rx-head h2{font-size:18px;color:#123b52}
.rx-head .spec{font-size:12.5px;color:var(--paper-mute)}
.rx-head .en{direction:ltr;text-align:left;font-size:12px;color:var(--paper-mute)}
.rx-seal{width:48px;height:48px;border-radius:14px;background:#123b52;color:#f2f7f9;display:grid;place-items:center;font-family:var(--f-display);font-weight:700;font-size:15px;flex:none;position:relative}
.rx-seal::after{content:"";position:absolute;inset:3px;border-radius:11px;border:1px solid #a7813f}
.rx-pt{display:flex;justify-content:space-between;gap:8px;padding:8px 0;border-bottom:1px dashed var(--paper-line);font-size:13px;flex-wrap:wrap}
.rx-sym{font-family:Georgia,"Times New Roman",serif;font-size:30px;font-weight:700;direction:ltr;text-align:left;margin:6px 0 2px;color:#123b52}
.rx-meds{direction:ltr;text-align:left;display:flex;flex-direction:column;gap:9px;padding:2px 0 12px}
.rx-meds b{display:block}
.rx-meds span{font-size:12.5px;color:var(--paper-mute)}
.rx-foot{border-top:1px solid var(--paper-line);padding-top:8px;font-size:11px;display:grid;grid-template-columns:repeat(auto-fit,minmax(90px,1fr));gap:6px;text-align:center;color:var(--paper-mute)}
.rx-foot b{display:block;font-size:11.5px;color:var(--paper-ink)}
.rep-title{font-family:var(--f-display);font-size:18px;font-weight:700;text-align:center;padding:10px 0 6px;color:#123b52}
.rep-grid{display:flex;flex-wrap:wrap;gap:4px 16px;font-size:13px;padding:6px 0;border-bottom:1px dashed var(--paper-line);margin-bottom:6px}
.rep-h{font-weight:700;font-size:13.5px;margin:12px 0 4px;color:#123b52}
.rep-table{width:100%;border-collapse:collapse;font-size:12.5px}
.rep-table th,.rep-table td{border:1px solid var(--paper-line);padding:5px 6px;text-align:start;vertical-align:top}
.rep-table th{background:#f2f5f5}
.rep-body{font-size:14px;line-height:2;white-space:pre-line;padding:10px 0;min-height:120px}
.rep-sign{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:28px;font-size:12.5px}
.report{overflow-x:auto}
.cmp{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.cmp figure{margin:0;background:#000;border-radius:12px;overflow:hidden;display:flex;flex-direction:column}
.cmp img{width:100%;aspect-ratio:1/1;object-fit:contain;max-width:100%}
.cmp figcaption{font-size:12px;color:#fff;padding:6px 8px;background:rgba(255,255,255,.08)}
.thumb.picked{outline:3px solid var(--accent);outline-offset:-3px}
#print-area{display:none}
@media print{
  @page{margin:10mm}
  body{background:#fff;padding:0}
  body>*:not(#print-area){display:none!important}
  #print-area{display:block!important}
  #print-area .rx{box-shadow:none;border-radius:0;padding:0;font-size:13pt}
}

@media (min-width:700px){ .imgs{grid-template-columns:repeat(4,1fr)} }
@media (prefers-reduced-motion:no-preference){
  .sheet{animation:up .22s ease-out}@keyframes up{from{transform:translateY(30px);opacity:.6}}
  .view{animation:fade .18s ease-out}@keyframes fade{from{opacity:.5;transform:translateY(4px)}}
  .wave i{animation:wv .9s ease-in-out infinite}.wave i:nth-child(2){animation-delay:.15s}.wave i:nth-child(3){animation-delay:.3s}.wave i:nth-child(4){animation-delay:.45s}.wave i:nth-child(5){animation-delay:.6s}
  @keyframes wv{50%{height:20px}}
  .chip.ai-on{animation:pop .5s ease-out}@keyframes pop{from{transform:scale(.9)}}
}

/* ---------- adaptive layout, following Material Design 3 "window size classes" ----------
   compact  < 600px : phone        → bottom navigation bar, single column (default above)
   medium   600–839 : tablet       → navigation rail on the side, dialogs centred
   expanded ≥ 840   : big tablet / computer → rail + wider content, lists in 2 columns
   large    ≥ 1200  : computer     → lists in 3 columns */
@media (min-width:600px){
  body{padding-right:calc(96px + env(safe-area-inset-right,0px))}
  body:has(#nav[hidden]){padding-right:max(16px,env(safe-area-inset-right,0px))}
  .app{max-width:720px;padding-bottom:40px}
  /* bottom bar becomes a navigation rail (right side, RTL) */
  .nav{inset:0 0 0 auto;width:calc(80px + env(safe-area-inset-right,0px));border-top:0;border-inline-start:1px solid var(--line);
    padding:max(16px,env(safe-area-inset-top,0px)) env(safe-area-inset-right,0px) 16px 0;display:flex;flex-direction:column}
  .nav-in{display:flex;flex-direction:column;gap:4px;max-width:none;margin:0}
  .nav button{padding:10px 4px;border-radius:16px;font-size:12px;min-height:56px}
  .nav button[aria-current="page"]{background:var(--accent-soft)}
  .badge{top:6px;left:calc(50% - 24px)}
  .toast{bottom:24px}
  /* dialogs float in the middle instead of sliding from the bottom */
  .overlay{align-items:center;padding:24px}
  .sheet{border-radius:24px;max-height:86vh;max-width:560px}
  .login{max-width:440px}
  .imgs{grid-template-columns:repeat(4,1fr)}
}
@media (min-width:840px){
  .app{max-width:1000px}
  h1{font-size:24px}
  .kpis{grid-template-columns:repeat(4,1fr)}
  .imgs{grid-template-columns:repeat(5,1fr)}
  .view.stack{gap:16px}
  .stack.tight:has(> .q){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  /* the queue screen: one column for the queue, the side panel beside it */
  .app .qwrap{flex-direction:row;align-items:flex-start;gap:24px}
  .app .qmain{flex:0 1 560px}
  .app .qside{flex:1 1 0}
  .app .qwrap .stack.tight:has(> .q){display:flex;flex-direction:column;gap:8px}
  .app .desk-only{display:flex}
  .now .pt{font-size:28px}
  .sheet{max-width:620px}
}
@media (min-width:1200px){
  .app{max-width:1160px}
  .stack.tight:has(> .q){grid-template-columns:repeat(3,minmax(0,1fr))}
}
/* very small phones */
@media (max-width:360px){
  body{font-size:14px}
  .grid2,.sides{grid-template-columns:1fr}
  .now .stats b{font-size:16px}
  .nav button{font-size:10.5px}
}

a.btn{text-decoration:none;color:inherit}
a.btn.primary{color:var(--accent-ink)}

/* new version bar */
.update-bar{position:fixed;z-index:45;left:50%;transform:translateX(-50%);top:calc(10px + env(safe-area-inset-top,0px));display:flex;align-items:center;gap:12px;background:var(--brand);color:var(--on-brand);border-radius:14px;padding:8px 8px 8px 14px;box-shadow:0 8px 24px rgba(0,0,0,.25);font-size:14px;max-width:calc(100% - 32px)}

/* queue screen layout: stacked on a phone, side by side on a computer (see the 840px rules) */
.qwrap{display:flex;flex-direction:column;gap:14px}
.qmain,.qside{display:flex;flex-direction:column;gap:12px;min-width:0}
.desk-only{display:none}
.qs-in,.qs-cash{flex-direction:column;gap:2px;text-align:start;width:100%;border:1px solid var(--line)}
.qs-in b{font-family:var(--f-display);font-size:19px;font-weight:600}
.qs-cash{flex-direction:row;align-items:center}
.qs-cash b{display:block;font-family:var(--f-display);font-size:19px}
/* what the coloured edge on each queue card means */
.q-legend{display:flex;gap:14px;flex-wrap:wrap;font-size:12px;color:var(--muted)}
.q-legend span{display:inline-flex;align-items:center;gap:6px}
.q-legend i{width:4px;height:14px;border-radius:2px;display:inline-block}
.lg-book{background:var(--accent)}.lg-walk{background:var(--brass)}.lg-wait{border-inline-start:2px dashed var(--muted);width:0!important}
/* queue: booked ahead (teal edge) vs walk-in (brass edge) vs waitlist (dashed) */
.q.src-book{border-inline-start:4px solid var(--accent)}
.q.src-walk{border-inline-start:4px solid var(--brass)}
.q.src-wait{border-inline-start:4px dashed var(--muted)}

/* polish: soft depth on surfaces, steadier logo letters, colored patient avatars */
:root{--shadow:0 1px 2px rgba(15,36,51,.04),0 6px 18px -10px rgba(15,36,51,.14)}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){--shadow:0 1px 2px rgba(0,0,0,.3)}}
:root[data-theme="dark"]{--shadow:0 1px 2px rgba(0,0,0,.3)}
.card,.list,.q{box-shadow:var(--shadow)}
.mono{font-size:12.5px;white-space:nowrap;overflow:hidden}
.mono.lg{font-size:26px}
.avatar{background:var(--av-bg,var(--accent-soft));color:var(--av-fg,var(--accent))}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .avatar{background:var(--accent-soft);color:var(--accent)}}
:root[data-theme="dark"] .avatar{background:var(--accent-soft);color:var(--accent)}
/* dark mode: things that melted into the background — the grey tag («إعادة»), grey buttons («+ مريض»), and sheets */
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) .t-re{background:#2b3f49;color:#d3e0e6}
  :root:not([data-theme="light"]) .btn.ghost,:root:not([data-theme="light"]) .backbtn,:root:not([data-theme="light"]) .iconbtn{background:#1c2e38;border:1px solid #2c4350}
  :root:not([data-theme="light"]) .sheet{background:var(--surface);border-top:1px solid #2c4350}}
:root[data-theme="dark"] .t-re{background:#2b3f49;color:#d3e0e6}
:root[data-theme="dark"] .btn.ghost,:root[data-theme="dark"] .backbtn,:root[data-theme="dark"] .iconbtn{background:#1c2e38;border:1px solid #2c4350}
:root[data-theme="dark"] .sheet{background:var(--surface);border-top:1px solid #2c4350}

.iconbtn svg{width:20px;height:20px}
.stars{color:#e0a531;letter-spacing:1px}.stars i{font-style:normal;color:var(--line)}
/* on/off switch inside a list row (e.g. «اهتزاز مع التنبيهات») */
.tgl{width:46px;height:28px;border-radius:999px;background:var(--line);position:relative;flex:none;transition:background .2s}
.tgl::after{content:"";position:absolute;top:3px;inset-inline-start:3px;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.3);transition:inset-inline-start .2s}
.tgl.on{background:var(--accent)}
.tgl.on::after{inset-inline-start:21px}
