/* portal-style.css — modern look for imedical-portal.html (load AFTER the inline <style>) */
:root{--blue:#005BAC;--sky:#00A3E0;--navy:#032b52;--line:#e3edf6;--shadow:0 1px 2px rgba(0,91,172,.04),0 14px 36px rgba(0,91,172,.08)}
html{scroll-behavior:smooth}
::selection{background:rgba(0,163,224,.25)}
body{background:radial-gradient(900px 520px at 100% -10%,rgba(0,163,224,.12),transparent 60%),radial-gradient(700px 520px at -10% 35%,rgba(0,91,172,.08),transparent 60%),#f4f9fd;background-attachment:fixed}

/* shared components */
.card{border-radius:22px;border-color:var(--line);box-shadow:var(--shadow)}
.inp{border-radius:14px;padding:.8rem 1rem;border-color:#d3e0ec}
.inp:focus{border-color:var(--sky);box-shadow:0 0 0 4px rgba(0,163,224,.16)}
.btn{border-radius:14px;padding:.85rem 1.25rem;letter-spacing:.01em;box-shadow:0 10px 26px rgba(0,91,172,.28)}
.btn:active{transform:translateY(0) scale(.99)}
.opt{border-radius:14px;padding:.8rem 1rem}
.opt.sel{background:linear-gradient(135deg,#eaf7fd,#d9f0fb)}
.chip{box-shadow:0 2px 8px rgba(0,91,172,.06)}
.row:hover{background:#f3faff}
.av{box-shadow:0 4px 10px rgba(0,0,0,.12)}
h1{letter-spacing:-.03em}

/* login */
#authView aside > div.absolute{background:linear-gradient(180deg,rgba(3,43,82,.30) 0%,rgba(3,43,82,.88) 72%,#032b52 100%)}
#authView aside h1{font-size:2.6rem;line-height:1.1}
#authView aside ul{display:grid;gap:.75rem}
#authView aside ul li{padding:.75rem 1rem;border-radius:16px;background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.18);backdrop-filter:blur(10px)}
#authView aside ul li i{width:34px!important;height:34px;display:grid;place-items:center;border-radius:11px;background:rgba(255,255,255,.16);color:#d3f1ff}
#authView main{background:linear-gradient(180deg,#eef7fd,#f8fbfe)}
#authView main .card{border-radius:30px;box-shadow:0 30px 70px rgba(0,91,172,.15)}
#authView main .card > span:first-child{width:3.5rem;height:3.5rem;border-radius:1.1rem;font-size:1.4rem;box-shadow:0 12px 28px rgba(0,91,172,.32)}
#authView main h2{font-size:1.75rem}
#authView .btn{padding:.95rem 1rem;font-size:1.02rem}

/* onboarding */
#obView > header{background:rgba(255,255,255,.8);backdrop-filter:blur(16px)}
#obView .card{border-radius:28px;box-shadow:0 26px 60px rgba(0,91,172,.12)}

/* header + navigation */
#appView > header{background:rgba(255,255,255,.78);backdrop-filter:saturate(1.5) blur(18px);border-bottom:1px solid rgba(227,237,246,.9)}
.tab{border-radius:14px}
.tab.on{box-shadow:0 10px 24px rgba(0,163,224,.35)}
@media(min-width:1024px){
  #nav{background:#fff;border:1px solid var(--line);border-radius:22px;padding:.75rem;box-shadow:var(--shadow)}
  #nav .tab{padding:.75rem 1rem}
}
@media(max-width:1023px){
  #nav{left:.75rem;right:.75rem;bottom:.75rem;border:1px solid var(--line);border-radius:22px;padding:.4rem;background:rgba(255,255,255,.92);backdrop-filter:blur(16px);box-shadow:0 14px 40px rgba(3,43,82,.2)}
  #nav .tab{padding:.65rem .4rem;border-radius:16px}
}

/* overview / lists */
#p-ov > h1{font-size:2rem}
#p-ov button.card{transition:transform .25s,box-shadow .25s}
#p-ov button.card:hover{box-shadow:0 22px 46px rgba(0,91,172,.16)}
#p-ov .from-\[\#005BAC\]{background:linear-gradient(135deg,#032b52 0%,#005BAC 55%,#00A3E0 100%);box-shadow:0 18px 40px rgba(0,91,172,.3)}

/* messages */
.bub.me{background:linear-gradient(135deg,#005BAC,#0a86d1);box-shadow:0 6px 14px rgba(0,91,172,.2)}
.bub.doc{box-shadow:0 4px 12px rgba(0,91,172,.06)}
#log{background:linear-gradient(180deg,#f1f8fd,#fff)!important}

/* modal + toast */
#modal{backdrop-filter:blur(8px)}
#modal .card{border-radius:26px;box-shadow:0 30px 80px rgba(3,43,82,.3)}
#toast{background:linear-gradient(135deg,#0b2a4a,#16324f);box-shadow:0 14px 34px rgba(3,43,82,.35)}

/* scrollbars */
*{scrollbar-width:thin;scrollbar-color:#c4d6e6 transparent}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}


/* Cloudflare Turnstile box on the sign-in form */
.ts-box{display:none}
.ts-box.ts-on{display:flex;justify-content:center}
.ts-box.hidden{display:none}

/* Text vertically centred in the language button, its menu rows and the login menu.
   text-box trims the font's built-in top/bottom space so the CAPITALS sit in the middle of the box (Chrome/Edge/Safari);
   the padding gives the trimmed box room back so descenders (g, y, p) are not clipped by "truncate". Other browsers keep line-height:1. */
.ldb,.ll,.lo .truncate{line-height:1}
@supports (text-box:trim-both cap alphabetic){
.ldb .ll,.lo .truncate{text-box:trim-both cap alphabetic;padding-block:.3em}
}
