:root{--nav:#14243b;--ink:#17263c;--muted:#64748b;--line:#dce4ee;--accent:#2459a8;--bg:#f3f6fa}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.55 system-ui,-apple-system,'Segoe UI',sans-serif}header{height:76px;background:white;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:18px;padding:0 32px}header b{font-size:25px;letter-spacing:3px;color:var(--accent)}header span{color:var(--muted);font-size:13px}main{max-width:1300px;margin:auto;padding:32px}h1{font-size:clamp(24px,3vw,34px);letter-spacing:-.8px;margin:0 0 24px}h3{margin-top:0}a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}.app-page header{margin-left:248px}.app-page main{margin-left:248px;max-width:none}.sidebar{position:fixed;inset:0 auto 0 0;width:248px;background:var(--nav);color:white;display:flex;flex-direction:column;padding:24px 16px;overflow:auto}.brand{font-size:30px;font-weight:800;letter-spacing:4px;padding:0 12px 28px}.brand small,.account small{display:block;font-size:12px;letter-spacing:0;font-weight:400;color:#aabbd2}.sidebar nav{display:grid;gap:5px}.sidebar nav a{display:flex;align-items:center;gap:12px;padding:12px;border-radius:8px;color:#cbd8e9;font-weight:500}.sidebar nav a span{width:24px;text-align:center;font-size:20px;line-height:1}.sidebar nav a:hover,.sidebar nav a.selected{background:#30496b;color:white;text-decoration:none}.account{margin-top:auto;padding:24px 12px 0;overflow-wrap:anywhere}.account form{background:none;border:0;padding:0;box-shadow:none}.account button{background:#30496b;width:100%}button,.btn{background:var(--accent);color:white;border:0;border-radius:8px;padding:11px 20px;font:inherit;font-weight:600;cursor:pointer}button:hover{filter:brightness(.92)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #78a8ec;outline-offset:2px}form,.panel,.scroll{background:white;border:1px solid var(--line);border-radius:14px;padding:24px;margin:16px 0;box-shadow:0 3px 12px #17263c08}label{display:block;margin:12px 0;font-weight:500}input:not([type=checkbox]):not([type=hidden]),select,textarea{display:block;width:100%;margin-top:6px;padding:11px 13px;border:1px solid #cbd5e1;border-radius:8px;background:#fbfcfe;color:var(--ink);font:inherit}input[type=checkbox]{accent-color:var(--accent);width:17px;height:17px;vertical-align:middle;margin-right:8px}table{width:100%;border-collapse:collapse;background:white}td,th{text-align:left;padding:14px;border-bottom:1px solid var(--line)}th{background:#edf2f8;color:#475569;font-size:13px}tr:hover td{background:#f8fafc}.scroll{overflow:auto;padding:0}.error,.late{color:#a51e28}.error:empty{display:none}.error:not(:empty){padding:12px 16px;background:#fff0f0;border-radius:8px}.ok{color:#167345}.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.cards div{background:white;border:1px solid var(--line);padding:24px;border-radius:14px;border-top:4px solid #547db6;color:var(--muted);box-shadow:0 3px 12px #17263c08}.cards b{display:block;font-size:38px;color:var(--ink);margin-top:10px}.cards div:nth-child(2){border-top-color:#c28a24}.cards div:nth-child(3){border-top-color:#24856a}.cards div:nth-child(4){border-top-color:#bd4552}.cards div:nth-child(4) b{color:#a51e28}.panel form{box-shadow:none;background:#f8fafc;padding:16px}.inline{display:inline;padding:0;border:0;background:none}.muted{color:var(--muted)}.login-page{min-height:100vh;background:linear-gradient(125deg,#14243b 0%,#243f61 48%,#e9eff7 48%,#f3f6fa 100%)}.login-page header{background:transparent;border:0;color:white}.login-page header b,.login-page header span{color:white}.login-page main{max-width:480px;margin:8vh auto;background:white;border-radius:20px;padding:36px;box-shadow:0 20px 70px #0003}.login-page form{padding:0;border:0;box-shadow:none}.login-page button{width:100%;margin-top:12px}.install-page main{max-width:800px}.protocol-page main{max-width:1000px}.protocol-page table{font-size:14px}@media(max-width:1100px){.cards{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){.app-page header,.app-page main{margin-left:0}.app-page header{display:none}.sidebar{position:static;width:auto;padding:16px;margin-bottom:20px}.app-page main{display:flex;flex-direction:column;padding:16px}.sidebar{order:-1}.brand{padding:0 0 12px}.sidebar nav{grid-template-columns:repeat(2,minmax(0,1fr))}.account{padding:12px 0 0}.account form{margin:8px 0 0}.account button{width:auto}.cards{gap:10px}.cards div{padding:14px}.cards b{font-size:30px}main{padding:18px}form,.panel{padding:16px}.login-page main{margin:5vh 16px;padding:24px}header{padding:0 18px}}@media print{header,.sidebar,nav,button,.no-print{display:none!important}body{background:white;color:black}main,.app-page main{margin:0;padding:0;max-width:none}table{font-size:12px!important}td,th{padding:8px}tr{break-inside:avoid}}
:root{--bg:#e8eef5;--surface:#f4f7fb;--field:#eaf0f7;--line:#cbd8e6;--ink:#20334b;--muted:#52657b;--accent:#2459a8;color-scheme:light}html[data-theme=dark]{--bg:#111c2c;--surface:#1d2b3e;--field:#152236;--line:#35475e;--ink:#e7edf7;--muted:#a9bad0;--accent:#83b4ff;color-scheme:dark}body{background:var(--bg)}header{background:#182c47;color:#fff;justify-content:space-between;height:auto;min-height:76px;flex-wrap:wrap;padding:14px 28px}header b,header span{color:#fff}.header-brand{display:flex;align-items:center;gap:14px}.header-brand img{max-width:110px;max-height:48px;object-fit:contain}.tools{display:flex;gap:8px}.tools button{background:#344e70;color:#fff;padding:8px 12px;font-size:13px;width:auto;margin:0}form,.panel,.scroll,table,.cards div,.login-page main{background:var(--surface);color:var(--ink)}input:not([type=checkbox]):not([type=hidden]),select,textarea,.panel form{background:var(--field);color:var(--ink);border-color:var(--line)}th,tr:hover td{background:var(--field);color:var(--ink)}button,.btn{background:#315fa8;color:#fff}.cards div:nth-child(1){background:color-mix(in srgb,var(--surface) 88%,#679bea)}.cards div:nth-child(2){background:color-mix(in srgb,var(--surface) 88%,#e7ac4e)}.cards div:nth-child(3){background:color-mix(in srgb,var(--surface) 88%,#44b99b)}.cards div:nth-child(4){background:color-mix(in srgb,var(--surface) 88%,#dc7185)}html[data-theme=dark] .error:not(:empty){background:#482a36;color:#ffc2c9}html[data-theme=dark] .late,html[data-theme=dark] .cards div:nth-child(4) b{color:#ffabb8}.hero{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:30px;border-radius:22px;background:linear-gradient(115deg,#183655,#285779 65%,#386b83);color:#fff;margin:0 0 24px;overflow:hidden}.hero h2{font-size:clamp(25px,3vw,40px);line-height:1.12;margin:12px 0}.hero p{color:#d9e8f4;max-width:440px}.hero img{width:48%;max-width:470px}.eyebrow{font-size:11px;letter-spacing:3px;color:#a8e1db;font-weight:700}.hero-link{display:inline-block;background:#d7eee9;color:#163d4b;padding:10px 15px;border-radius:9px;font-weight:700}.login-page{background:radial-gradient(ellipse at 10% 20%,#b5d5e0,transparent 55%),var(--bg)}.login-page header{background:#182c47}.login-page main{max-width:1000px;display:grid;grid-template-columns:1.15fr 1fr;gap:24px;align-items:center;margin:6vh auto;padding:32px}.login-page h1{grid-column:2;grid-row:1;margin:0}.login-page .hero{grid-column:1;grid-row:1 / 4;display:flex;flex-direction:column;align-items:start;margin:0;min-height:370px}.login-page .hero img{width:100%;max-width:none}.login-page form{grid-column:2;margin:0}.login-page .error{grid-column:2;margin:0}.login-page .tools button{width:auto}.login-page form button{width:100%}@media(max-width:760px){.app-page header{display:flex}.header-brand span{display:none}.hero{padding:20px;flex-direction:column;align-items:start}.hero img{width:100%}.login-page main{display:flex;flex-direction:column;align-items:stretch;margin:20px 12px;padding:20px}.login-page .hero{min-height:0}.login-page .hero img{max-height:180px}.login-page h1{order:1}.login-page form,.login-page .error{order:2}}@media print{html,body,main,table,th,td{background:#fff!important;color:#000!important}.hero,.tools{display:none!important}}

/* v1.3 photographic identity */
.header-brand img{width:auto;height:48px;max-width:36px;flex-shrink:0;object-fit:contain}
.hero{position:relative;isolation:isolate;min-height:290px;background:#10283a url('equipment.webp') center right/cover no-repeat;justify-content:flex-start;padding:34px;box-shadow:0 12px 30px #10283a25}
.hero::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(8,24,39,.96),rgba(8,24,39,.83) 32%,rgba(8,24,39,.15) 72%,transparent)}
.hero>div{max-width:46%;position:relative}.hero>img{display:none}.hero h2{color:#fff}.hero p{color:#e0eaf4}.hero .eyebrow{color:#9fe0d8}
.login-page .hero{min-height:450px;justify-content:flex-start;background-position:65% center}.login-page .hero>div{max-width:100%}.login-page .hero::before{background:linear-gradient(180deg,rgba(8,24,39,.95),rgba(8,24,39,.65) 36%,transparent 80%)}
@media(max-width:700px){.hero{min-height:380px;padding:24px;justify-content:flex-start;background-position:65% center}.hero>div{max-width:100%}.hero::before{background:linear-gradient(180deg,rgba(8,24,39,.97),rgba(8,24,39,.75) 40%,transparent 85%)}.login-page .hero{min-height:350px}.header-brand img{height:38px}}

/* Final beta: institutional branding */
.sidebar .brand{display:flex;align-items:center;gap:14px;letter-spacing:3px}.sidebar .brand img{height:64px;width:auto;max-width:38px;object-fit:contain;flex-shrink:0}.sidebar .brand small{line-height:1.4}.header-brand img{height:48px;width:auto;max-width:36px}.header-brand{min-width:0}.header-brand span{line-height:1.4}.app-page .header-brand img{display:none}@media(max-width:760px){.app-page .header-brand img{display:block}.sidebar .brand img{height:42px}}

/* v1.4 NATFA identity — visual-only update */
:root{--accent:#a51d35;--brand-red:#b51f38;--bg:#e9edf4;--surface:#f5f6fa;--field:#edf0f5}
html[data-theme=dark]{--accent:#ff9eaa;--brand-red:#b51f38;--bg:#111a29;--surface:#1d293b;--field:#152033}
header,.login-page header{background:linear-gradient(105deg,#14243b 55%,#47243a);border-bottom:3px solid var(--brand-red)}
.sidebar{background:linear-gradient(165deg,#17263c 55%,#302339)}
.sidebar .brand{border-bottom:2px solid var(--brand-red);margin-bottom:18px;padding-bottom:18px}
.sidebar nav a.selected{background:#a51d35;color:white;box-shadow:0 4px 12px #0002}
.sidebar nav a:hover{background:#733047;color:white}
button,.btn{background:var(--brand-red);color:#fff}.tools button,.account button{background:#34445c;color:#fff}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #d66b80;outline-offset:2px}
.hero{border-bottom:4px solid var(--brand-red)}.hero .eyebrow{color:#ffb5c1}.hero-link{background:#b51f38;color:white}.hero-link:hover{background:#94172e;color:white}
.cards div:nth-child(1){border-top-color:#547db6}.cards div:nth-child(4){border-top-color:#b51f38}
.login-page{background:radial-gradient(ellipse at 10% 20%,#b51f3820,transparent 55%),var(--bg)}
.login-page main{border-top:4px solid var(--brand-red)}
html[data-theme=dark] .ok{color:#86dcb0}
@media print{header,.sidebar,nav,button,.no-print{display:none!important}html,body,main,table,th,td{background:#fff!important;color:#000!important}a{color:#000!important}}

/* v1.5.2 login password visibility */
.login-password-wrap{position:relative;margin-top:-6px}
.login-page .login-password-wrap input{padding-right:52px}
.login-page .login-password-wrap .password-eye{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:40px;height:40px;margin:0;padding:0;display:grid;place-items:center;background:transparent;color:var(--ink);border-radius:6px}
.password-eye .eye-slash{display:none}.password-eye[aria-pressed="true"] .eye-slash{display:block}
