:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#15233b;background:#f3f6fa;font-synthesis:none;--ink: #15233b;--muted: #607089;--line: #dce4ed;--surface: #ffffff;--navy: #0d2547;--navy-soft: #173c69;--blue: #1769aa;--blue-dark: #0d548f;--blue-pale: #eaf4fc;--teal: #24a39a;--shadow: 0 16px 40px rgba(23, 46, 78, .09)}*{box-sizing:border-box}body{margin:0;min-width:20rem;min-height:100vh;background:radial-gradient(circle at 85% 5%,rgba(36,163,154,.08),transparent 24rem),#f3f6fa}main{max-width:72rem;margin:2rem auto;padding:0 1.25rem 3rem;line-height:1.5}h1{margin:0;font-size:clamp(1.8rem,4vw,2.45rem);font-weight:750;letter-spacing:-.035em}h2{margin:0;font-size:1.2rem;letter-spacing:-.015em}a{color:var(--blue-dark)}button,input,select{font:inherit}button,.button-link{min-height:2.5rem;border:1px solid #bac7d6;border-radius:.65rem;background:#fff;color:var(--ink);padding:.55rem .9rem;cursor:pointer;font-weight:650;transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease}button:not(:disabled):hover,.button-link:hover{border-color:#7f94aa;box-shadow:0 5px 14px #16335417;transform:translateY(-1px)}.button-link{display:inline-flex;align-items:center;min-height:1.6rem;text-decoration:none}button:disabled{cursor:not-allowed;opacity:.55}:focus-visible{outline:3px solid #f2a900;outline-offset:2px}.visually-hidden{position:absolute;overflow:hidden;width:1px;height:1px;clip-path:inset(50%);white-space:nowrap}.boot-state{display:flex;min-height:60vh;flex-direction:column;align-items:center;justify-content:center;gap:.75rem;color:var(--muted);text-align:center}.app-shell{display:grid;min-height:100vh;grid-template-columns:17rem 1fr}.shell-body{display:flex;min-width:0;flex-direction:column}.shell-body>main{width:100%;flex:1;margin-inline:auto}.sidebar{display:flex;flex-direction:column;gap:1.75rem;background:linear-gradient(185deg,var(--navy),#0a1d38);color:#fff;padding:1.5rem 1.15rem}.sidebar a{color:#fff}.brand{display:flex;align-items:center;gap:.75rem;text-decoration:none}.brand-text{display:grid;min-width:0}.brand strong{font-size:.97rem;letter-spacing:-.015em}.brand small{margin-top:.1rem;color:#a9bdd4;font-size:.72rem;font-weight:500}.sidebar-nav{display:grid;gap:.3rem}.sidebar-nav a{display:flex;align-items:center;gap:.7rem;border-radius:.65rem;padding:.68rem .75rem;text-decoration:none;font-size:.9rem;font-weight:650;transition:background .15s ease}.sidebar-nav a:hover{background:#ffffff14}.sidebar-nav a.active{background:#46a6d633;box-shadow:inset 3px 0 #58c3e8}.nav-icon{width:1.15rem;color:#8fb9d8;text-align:center}.sidebar-note{margin-top:auto;border:1px solid rgba(255,255,255,.11);border-radius:.8rem;background:#ffffff0d;padding:.9rem;font-size:.82rem}.sidebar-note .eyebrow{color:#74d7c9}.sidebar-note p{margin:0 0 .3rem;font-weight:650}.sidebar-note small{color:#a9bdd4;font-size:.72rem;line-height:1.45}.topbar{position:sticky;z-index:5;top:0;display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:4rem;border-bottom:1px solid var(--line);background:#ffffffeb;padding:.7rem clamp(1rem,3vw,2rem);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.topbar-title{font-weight:750;letter-spacing:-.015em}.topbar-actions{display:flex;min-width:0;align-items:center;gap:.75rem}.nav-toggle{display:none;min-height:2.4rem;padding:.4rem .65rem}.nav-scrim{display:none;border:0}.app-footer{margin-top:auto;border-top:1px solid var(--line);background:#fff;padding:1.5rem clamp(1rem,3vw,2rem);font-size:.8rem}.app-footer p{max-width:60rem;margin:0 0 .35rem}.app-footer p:last-child{margin-bottom:0}.brand-mark{display:inline-grid;width:2.45rem;height:2.45rem;place-items:center;border:1px solid rgba(255,255,255,.28);border-radius:.75rem;background:linear-gradient(145deg,#2389c8,#22a49b);color:#fff;box-shadow:0 6px 16px #071a3133;font-size:.78rem;font-weight:800;letter-spacing:.06em}.nav-link{border-radius:.55rem;padding:.5rem .7rem;text-decoration:none;font-size:.9rem;font-weight:650}.nav-link:hover{background:#ffffff1a}.account-chip{display:inline-flex;min-width:0;align-items:center;gap:.45rem;max-width:16rem;border:1px solid var(--line);border-radius:999px;background:#f7f9fc;color:#42536a;padding:.4rem .8rem;font-size:.8rem}.account-email{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.status-dot{width:.48rem;height:.48rem;flex:0 0 auto;border-radius:999px;background:#51d5b3;box-shadow:0 0 0 3px #51d5b321}.sign-out-button{min-height:2.35rem;font-size:.85rem}.workspace{max-width:82rem;padding-top:2rem}.panel,.record-card,.patient-header,.warning{border:1px solid var(--line);border-radius:.9rem;background:var(--surface);padding:1.25rem}.form-row,.patient-header,.page-heading,.pagination,.document-row{display:flex;align-items:end;gap:1rem;flex-wrap:wrap}.form-row>label{min-width:9rem}.form-row>.search-label{min-width:min(100%,18rem);flex:1}.patient-header,.page-heading{align-items:center;justify-content:space-between}.directory-hero{display:flex;align-items:center;justify-content:space-between;gap:2rem;margin-bottom:1.5rem}.directory-hero h1{margin-bottom:.45rem}.directory-hero>div>p:last-child{margin:0;color:var(--muted)}.eyebrow{margin:0 0 .3rem;color:var(--blue);font-size:.72rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase}.privacy-note{display:flex;max-width:17rem;align-items:center;gap:.65rem;border:1px solid #cae4e1;border-radius:.75rem;background:#f2fbf9;color:#285e5a;padding:.7rem .9rem;font-size:.82rem;font-weight:650}.privacy-icon{display:inline-grid;width:1.5rem;height:1.5rem;flex:0 0 auto;place-items:center;border-radius:999px;background:#d3f1eb;color:#167b72}.search-panel{box-shadow:var(--shadow)}.section-heading,.results-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1.15rem}.quiet-button{min-height:2.1rem;border-color:transparent;background:var(--blue-pale);color:var(--blue-dark);font-size:.82rem}.active-filters{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap;margin-top:1.1rem;border-top:1px dashed var(--line);padding-top:1rem}.active-filters-label{color:var(--muted);font-size:.72rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase}.active-filters ul{display:flex;gap:.5rem;flex-wrap:wrap;margin:0;padding:0;list-style:none}.active-filters li{display:inline-flex;max-width:22rem;align-items:center;gap:.4rem;border:1px solid #cfe0f0;border-radius:999px;background:var(--blue-pale);color:var(--blue-dark);padding:.3rem .35rem .3rem .75rem;font-size:.8rem;font-weight:650}.active-filters li>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.active-filters button{display:grid;width:1.4rem;min-height:1.4rem;height:1.4rem;place-items:center;border:0;border-radius:50%;background:#0d548f1c;color:inherit;padding:0;line-height:1}.active-filters button:hover{background:#0d548f33;box-shadow:none;transform:none}label{display:grid;gap:.3rem;color:#34435a;font-size:.82rem;font-weight:600}input,select{min-height:2.65rem;border:1px solid #b9c5d3;border-radius:.6rem;background:#fff;color:var(--ink);padding:0 .7rem;transition:border-color .16s ease,box-shadow .16s ease}input:focus,select:focus{border-color:#3a83ba;box-shadow:0 0 0 3px #287db91f;outline:none}input::placeholder{color:#91a0b2}form{display:grid;gap:1rem}.auth-page{display:grid;max-width:none;min-height:100vh;grid-template-columns:minmax(20rem,.9fr) minmax(28rem,1.1fr);margin:0;padding:0;background:#f6f8fb;line-height:1.5}.auth-visual{position:relative;display:flex;overflow:hidden;min-height:100vh;flex-direction:column;justify-content:space-between;background:radial-gradient(circle at 22% 75%,rgba(38,169,157,.28),transparent 20rem),radial-gradient(circle at 88% 14%,rgba(72,146,205,.25),transparent 18rem),linear-gradient(145deg,#0b2140,#123c68);color:#fff;padding:clamp(2rem,5vw,4.5rem)}.auth-visual:after{position:absolute;right:-8rem;bottom:-10rem;width:25rem;height:25rem;border:1px solid rgba(255,255,255,.08);border-radius:50%;box-shadow:0 0 0 4rem #ffffff06,0 0 0 8rem #ffffff05;content:""}.auth-brand{z-index:1;display:flex;align-items:center;gap:.85rem}.auth-brand>span:last-child{display:grid}.auth-brand strong{font-size:1.05rem}.auth-brand small{color:#bbcee2;font-size:.76rem}.brand-mark-large{width:2.9rem;height:2.9rem}.auth-message{z-index:1;max-width:30rem}.auth-message .eyebrow{color:#70ddd1}.auth-message h2{max-width:28rem;margin-bottom:1rem;font-size:clamp(2.1rem,4.5vw,3.6rem);line-height:1.08;letter-spacing:-.045em}.auth-message>p:last-child{max-width:28rem;color:#c7d6e7;font-size:1.02rem}.auth-assurances{z-index:1;display:grid;gap:.65rem;margin:0;padding:0;color:#c9d9e8;font-size:.82rem;list-style:none}.auth-assurances li{display:flex;align-items:center;gap:.55rem}.auth-assurances li span{display:inline-grid;width:1.35rem;height:1.35rem;place-items:center;border-radius:50%;background:#59dac721;color:#65decf}.auth-card-shell{display:grid;min-height:100vh;place-items:center;padding:clamp(1.5rem,5vw,5rem)}.auth-card{width:min(100%,30rem);border:1px solid var(--line);border-radius:1.2rem;background:var(--surface);box-shadow:0 24px 65px #172e4e1f;padding:clamp(1.6rem,4vw,2.5rem)}.auth-card-header{position:relative;margin-bottom:1.65rem;padding-right:2rem}.auth-card-header h1{margin-bottom:.55rem}.auth-card-header>p:last-child{margin:0;color:var(--muted)}.auth-lock{position:absolute;top:0;right:0;display:inline-grid;width:1.8rem;height:1.8rem;place-items:center;border-radius:50%;background:#e6f5f2;color:var(--teal);font-size:.55rem}.auth-form{gap:1.05rem}.auth-form label{gap:.42rem}.auth-form input{min-height:3rem;font-size:.95rem}.challenge-field{border:1px solid #dce6ef;border-radius:.75rem;background:#f7f9fc;padding:.8rem}.recaptcha-frame{overflow:hidden;border-radius:.55rem}.primary-button{width:100%;min-height:3rem;border-color:var(--blue);background:linear-gradient(135deg,var(--blue),var(--blue-dark));color:#fff;box-shadow:0 9px 20px #105e9733}.primary-button:not(:disabled):hover{border-color:var(--blue-dark);box-shadow:0 11px 25px #105e9740}.form-error{border:1px solid #f0caca;border-radius:.65rem;background:#fff5f5;padding:.7rem .8rem;font-size:.85rem}.auth-help{border:1px solid #d8e5ef;border-radius:.75rem;background:#f4f8fb;color:#42536a;padding:1rem}.auth-help p{margin:0}.auth-card-footer{display:flex;align-items:flex-start;gap:.55rem;margin-top:1.5rem;border-top:1px solid #e7ecf2;color:#7c899a;padding-top:1rem;font-size:.72rem}.auth-card code{display:inline-block;border-radius:.25rem;background:#e9eef4;padding:.15rem .35rem;overflow-wrap:anywhere}.enrollment{display:grid;gap:.75rem;justify-items:start;border:1px solid #cfe2ef;border-radius:.8rem;background:#f6fafc;padding:1rem;margin-bottom:1.2rem;font-size:.85rem}.enrollment p{margin:0}.enrollment-qr{justify-self:center;border:1px solid #d8dee6;border-radius:.35rem;background:#fff;padding:.5rem}[role=alert]{margin:0;color:#8a1c1c;font-weight:600}.results-panel{margin-top:1.25rem;overflow:hidden;border:1px solid var(--line);border-radius:.9rem;background:var(--surface);box-shadow:0 10px 28px #172e4e0e}.results-heading{margin:0;border-bottom:1px solid #e7ecf2;padding:1.15rem 1.25rem}.result-count{border-radius:999px;background:var(--blue-pale);color:var(--blue-dark);padding:.35rem .7rem;font-size:.78rem;font-weight:750}.loading-state,.empty-results{display:flex;min-height:10rem;align-items:center;justify-content:center;gap:.65rem;margin:0;color:var(--muted);padding:2rem}.empty-results{flex-direction:column;text-align:center}.empty-results p{margin:0;color:var(--ink);font-weight:650}.spinner{width:1.05rem;height:1.05rem;border:2px solid #c9d7e4;border-top-color:var(--blue);border-radius:50%;animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.table-scroll{overflow-x:auto}table{width:100%;border-collapse:collapse;background:#fff}th,td{border-bottom:1px solid #e7ecf2;padding:.9rem 1.25rem;text-align:left;vertical-align:top}th{background:#f7f9fc;color:#68778b;font-size:.72rem;letter-spacing:.055em;text-transform:uppercase}.patient-table tbody tr{transition:background .14s ease}.patient-table tbody tr:hover{background:#f8fbfd}.patient-identity{display:flex;align-items:center;gap:.75rem}.patient-avatar{display:inline-grid;width:2.25rem;height:2.25rem;flex:0 0 auto;place-items:center;border-radius:.7rem;background:linear-gradient(145deg,#e7f2fb,#e1f4f0);color:#176a7d;font-size:.72rem;font-weight:800}.patient-name-link{color:var(--ink);font-weight:700;text-decoration:none}.patient-name-link:hover{color:var(--blue);text-decoration:underline}.patient-identifier{display:inline-block;border-radius:.4rem;background:#f1f4f8;color:#3e4e64;padding:.25rem .45rem;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.78rem}.muted{color:var(--muted)}.pagination{align-items:center;justify-content:flex-end;margin-top:0;border-top:1px solid #e7ecf2;padding:1rem 1.25rem}.empty-state{display:grid;min-height:24rem;place-items:center;align-content:center;border:1px solid var(--line);border-radius:1rem;background:var(--surface);box-shadow:var(--shadow);text-align:center;padding:2rem}.empty-state p{margin:.35rem 0 0}.empty-state-icon{display:grid;width:3.5rem;height:3.5rem;place-items:center;margin-bottom:1rem;border-radius:50%;background:var(--blue-pale);color:var(--blue);font-size:1.5rem}.tabs{display:flex;gap:.4rem;overflow-x:auto;padding:1rem 0}.tabs button{white-space:nowrap}.tabs button[aria-current=page]{border-color:#1557a0;background:#dcecff;font-weight:700}.warning{border-color:#9c6a00;background:#fff8df;margin:1rem 0}.record-list{display:grid;gap:.75rem}.record-card h3{margin-top:0}dl{display:grid;gap:.5rem}dl div{display:grid;grid-template-columns:minmax(8rem,12rem) 1fr;gap:1rem}dt{font-weight:700}dd{margin:0;overflow-wrap:anywhere}.document-tree,.document-tree ul{list-style:none;padding-left:1rem}.document-row{align-items:center;border-bottom:1px solid #d8dee6;padding:.5rem 0}.availability{color:#42536a}@media(max-width:64rem){.auth-page{grid-template-columns:1fr}.auth-visual{min-height:auto;gap:2.5rem;padding:2rem}.auth-message{display:none}.auth-assurances{grid-template-columns:repeat(3,1fr)}.auth-card-shell{min-height:auto;padding:2rem 1rem 3rem}}@media(max-width:62rem){.app-shell{grid-template-columns:1fr}.sidebar{position:fixed;z-index:20;top:0;bottom:0;left:0;width:17rem;transform:translate(-100%);transition:transform .2s ease}.app-shell.nav-open .sidebar{transform:translate(0)}.app-shell.nav-open .nav-scrim{position:fixed;z-index:10;display:block;inset:0;background:#09182c73}.nav-toggle{display:inline-flex;align-items:center}}@media(max-width:48rem){.patient-header,.directory-hero{align-items:stretch;flex-direction:column}.topbar-title{display:none}.account-chip{max-width:11rem}.privacy-note{max-width:none}.auth-assurances{grid-template-columns:1fr}.auth-card{padding:1.35rem}th,td{padding:.75rem}dl div{grid-template-columns:1fr;gap:.1rem}}@media(max-width:34rem){.account-chip{display:none}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}
