/* ADMIFMS visual system. Attendance and authentication logic are independent. */
:root {
  --blue:#134074; --navy:#13315c; --ink:#0b2545; --sky:#8da9c4; --paper:#eef4ed;
  --muted:#4c647c; --line:#d6e1e9; --white:#fff;
  font-family:Roboto,Aptos,"Segoe UI",Arial,sans-serif;
  font-size:17px; line-height:1.6; color:var(--ink); background:var(--paper);
  font-synthesis:none; text-rendering:optimizeLegibility;
}
*{box-sizing:border-box}body{margin:0;min-width:320px}button,input{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}[hidden]{display:none!important}button:disabled{opacity:.65;cursor:wait}button,a,input{touch-action:manipulation}:focus-visible{outline:3px solid var(--blue);outline-offset:4px}button{transition:background .18s,box-shadow .18s,transform .18s}h1,h2,h3,p{overflow-wrap:anywhere}h1,h2,h3{line-height:1.18}button,input{border-radius:12px}.site-header{max-width:1400px;min-height:106px;padding:22px 48px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid #8da9c44d}.brand{display:flex;align-items:center;gap:14px;font-size:23px;font-weight:800;letter-spacing:.025em}.brand-icon{width:50px;height:54px;display:grid;place-items:center;background:var(--navy);color:var(--paper);border-radius:15px 15px 21px 21px;font-size:32px;font-weight:700;box-shadow:0 5px 12px #0b254514}.brand small{display:block;font-size:11px;letter-spacing:.2em;color:var(--muted);font-weight:600;margin-top:1px}.semester{font-size:13px;font-weight:600;letter-spacing:.07em;color:var(--blue);padding:9px 15px;border:1px solid #8da9c466;border-radius:30px}.semester span{margin:0 8px;color:#526f8c}main{max-width:1304px;margin:auto;padding:0 40px}.login-layout{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);gap:80px;align-items:center;padding:64px 0;min-height:calc(100svh - 194px)}.eyebrow{display:block;font-size:12px;font-weight:700;letter-spacing:.12em;color:var(--blue);line-height:1.6}.intro h1{font-size:clamp(42px,4.5vw,66px);font-weight:750;letter-spacing:-.055em;line-height:1.07;margin:22px 0 24px}.intro h1 em{font-style:normal;color:var(--blue)}.intro>p{font-size:18px;line-height:1.8;max-width:470px;color:var(--muted)}.illustration{position:relative;max-width:470px;height:247px;margin:25px 0 20px}.orbit{position:absolute;inset:6px 90px 0 50px;border:1px solid #8da9c480;border-radius:50%;background:radial-gradient(ellipse,#8da9c426,transparent 70%)}.orbit:after{content:'';position:absolute;inset:18px;border:1px dashed #8da9c480;border-radius:50%}.mini-card{position:absolute;top:26px;left:24px;padding:23px 27px;background:var(--white);width:285px;border:1px solid var(--line);border-radius:20px;box-shadow:0 18px 40px #0b25450c;transform:rotate(-4deg)}.mini-card>span{font-size:11px;letter-spacing:.1em;color:var(--muted);font-weight:600}.mini-card strong{display:block;font-size:64px;letter-spacing:-.06em;line-height:1.15;margin:8px 0;font-weight:700}.mini-card strong span{font-size:32px;color:var(--blue)}.mini-track{height:8px;background:#e4ebf1;border-radius:8px;overflow:hidden;margin:12px 0}.mini-track i{display:block;width:75%;height:100%;background:var(--blue);border-radius:8px}.mini-card small{font-size:12px;color:var(--muted)}.spark{position:absolute;left:338px;top:20px;color:var(--blue);font-size:40px}.floating{position:absolute;bottom:9px;left:190px;background:var(--navy);color:white;padding:13px 18px;border-radius:12px;font-size:13px;white-space:nowrap;box-shadow:0 10px 22px #0b25451a;transform:rotate(3deg)}.intro-foot{display:flex;align-items:center;gap:9px;font-size:13px;color:var(--muted)}.dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--blue);flex-shrink:0}.login-card{position:relative;background:var(--white);border:1px solid #d2dee7;border-radius:26px;padding:40px;box-shadow:0 24px 70px #0b25450a;overflow:hidden}.login-card:before{content:'';position:absolute;inset:0 0 auto;height:5px;background:linear-gradient(90deg,var(--navy),var(--blue),var(--sky))}.card-symbol{display:grid;place-items:center;width:52px;height:52px;background:#e9f0f7;color:var(--blue);font-size:30px;border-radius:15px;margin-bottom:25px}.login-card h2{font-size:31px;letter-spacing:-.04em;margin:11px 0 12px}.login-card>p{font-size:16px;color:var(--muted);margin:0 0 28px}label{display:block;font-size:15px;font-weight:650;margin:22px 0 9px}input{display:block;width:100%;min-height:56px;border:1px solid #b9cada;background:#fbfcfe;color:var(--ink);padding:14px 16px;font-size:17px;transition:border-color .18s,box-shadow .18s}input:hover{border-color:var(--sky)}input:focus{border-color:var(--blue);box-shadow:0 0 0 3px #13407412}input::placeholder{color:#64788b}.password-wrap{position:relative}.password-wrap input{padding-right:78px}.password-wrap button{position:absolute;right:6px;top:6px;min-height:44px;padding:0 12px;border:0;background:transparent;color:var(--blue);font-size:14px;font-weight:650}.password-wrap button:hover{background:#e9f0f7}.field-help{font-size:13px;line-height:1.7;color:var(--muted);margin:11px 0 24px}.button{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:50px;border:1px solid transparent;padding:12px 19px;font-size:15px;font-weight:650;line-height:1.5}.primary{width:100%;background:var(--blue);color:white;min-height:56px;font-size:16px;box-shadow:0 6px 15px #1340741f}.primary:hover{background:var(--navy);box-shadow:0 9px 20px #13407430}.button-label{display:flex;align-items:center;justify-content:space-between;width:100%}.secondary{background:white;border-color:#bacbdc;color:var(--navy)}.secondary:hover{background:#e9f0f7;border-color:var(--sky)}.login-note{display:flex;align-items:flex-start;gap:12px;border-top:1px solid var(--line);padding-top:20px;margin-top:25px;color:var(--muted)}.login-note>span{color:var(--blue);font-size:19px;line-height:1.4}.login-note p{font-size:13px;line-height:1.7;margin:0}.site-footer{display:flex;justify-content:space-between;gap:20px;max-width:1304px;padding:25px 40px;margin:auto;color:var(--muted);font-size:13px}.dashboard-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:44px 0 30px}.dashboard-heading h1{font-size:clamp(32px,3vw,43px);letter-spacing:-.045em;margin:10px 0 12px}.dashboard-heading h1 span{color:var(--sky)}.dashboard-heading p{font-size:16px;color:var(--muted);margin:0}.actions{display:flex;align-items:center;gap:20px;flex-shrink:0}.text-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:10px 12px;background:transparent;border:1px solid transparent;color:var(--blue);font-size:14px;font-weight:650;white-space:nowrap}.text-button:hover{background:#dfe9f0;border-color:#c3d2de}.student-card{display:flex;align-items:center;justify-content:space-between;gap:44px;background:linear-gradient(115deg,var(--ink),var(--navy) 65%,var(--blue));color:white;border:1px solid var(--navy);border-radius:24px;padding:36px 40px;box-shadow:0 12px 25px #0b25450d}.student-info{min-width:0;flex:1}.student-info .eyebrow{color:#c4d6e7}.student-info h2{font-size:clamp(28px,2.5vw,36px);letter-spacing:-.03em;margin:14px 0}.student-meta{color:#d4e1ec;font-size:16px;margin:0 0 20px}.badge{display:inline-flex;align-items:center;gap:7px;white-space:nowrap;font-size:12px;font-weight:700;line-height:1.4;padding:7px 11px;border-radius:30px;border:1px solid transparent;letter-spacing:.02em}.badge:before{content:'';width:6px;height:6px;border-radius:50%;background:currentColor}.safe{background:#e7f4eb;color:#256343;border-color:#cbe5d3}.warning{background:#fff4d9;color:#805b0b;border-color:#f0dfad}.danger{background:#ffebe9;color:#a53131;border-color:#f2ceca}.neutral{background:#e9eff5;color:#425d76;border-color:#d1dfeb}.overall{width:38%;min-width:260px;padding-left:36px;border-left:1px solid #8da9c455}.metric-line{display:flex;align-items:flex-start;flex-direction:column;gap:6px;font-size:15px;color:#d4e1ec}.metric-line strong{font-size:64px;line-height:1.12;letter-spacing:-.055em;font-weight:700;color:white;font-variant-numeric:tabular-nums}.progress{height:10px;background:#8da9c44d;border-radius:10px;overflow:hidden;margin:18px 0 13px}.progress i{display:block;height:100%;border-radius:10px;background:#adc9e3;border:0}.progress i.danger{background:#f1a9a4}.progress i.warning{background:#e8c97c}.overall>p{font-size:16px;color:#e0e9f1;margin:0}.insight{display:flex;gap:20px;align-items:flex-start;border:1px solid #b9ccdd;background:#e3ecf4;border-radius:20px;padding:28px 30px;margin-top:24px}.insight-icon{display:grid;place-items:center;width:48px;height:48px;flex-shrink:0;border-radius:14px;background:var(--blue);color:white;font-size:26px}.insight h3{font-size:25px;letter-spacing:-.025em;margin:9px 0 10px}.insight p{font-size:16px;color:#385570;margin:0;line-height:1.75}.insight .flag-note{margin-top:10px;font-size:14px}.sync-row{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:21px 0;color:var(--muted);font-size:14px}.sync-row>span{display:flex;align-items:center;gap:9px}.subjects-card{background:white;border:1px solid var(--line);border-radius:22px;overflow:hidden;box-shadow:0 5px 20px #0b254504}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:30px}.section-heading h2{font-size:27px;letter-spacing:-.03em;margin:8px 0 0}.subject-count{flex-shrink:0;padding:8px 13px;border:1px solid #c9d8e4;border-radius:30px;background:#f0f5f9;color:var(--blue);font-size:13px;font-weight:600}.table-scroll{overflow-x:auto;overscroll-behavior-x:contain;scrollbar-color:var(--sky) #e9eff5}table{width:100%;border-collapse:collapse;text-align:left}th{font-size:13px;line-height:1.5;font-weight:650;color:#3c5871;background:#f1f5f9;border-block:1px solid var(--line);padding:17px 20px}td{font-size:16px;line-height:1.5;padding:19px 20px;border-bottom:1px solid #e5ecf2}tbody tr:hover{background:#f7fafd}tr:last-child td{border-bottom:0}td:first-child{min-width:290px}.subject-code{display:inline-grid;vertical-align:middle;place-items:center;width:45px;min-height:37px;margin-right:12px;border-radius:9px;border:1px solid #cfdeea;background:#edf3f9;color:var(--blue);font-size:12px;font-weight:700}.subject-name{font-weight:500;vertical-align:middle}.numeric,.percentage{font-variant-numeric:tabular-nums}.percentage{font-weight:700;color:var(--blue)}.muted{color:var(--muted)}.table-note{margin:0;border-top:1px solid var(--line);padding:19px 25px;font-size:14px;color:var(--muted);line-height:1.7}.report-note{font-size:13px;color:var(--muted);margin:20px 4px 28px;line-height:1.8}.error{padding:15px 18px;background:#fff0ed;color:#9b2929;border:1px solid #e8b7b1;border-radius:12px;font-size:15px;line-height:1.65;margin:0 0 20px}.spinner{width:18px;height:18px;flex-shrink:0;border:2px solid #ffffff66;border-top-color:white;border-radius:50%;animation:spin 1s linear infinite}.loading .refresh-icon{display:inline-block;animation:spin 1s linear infinite}.refresh-icon{font-size:22px;line-height:1}.print-heading,.print-footer{display:none}@keyframes spin{to{transform:rotate(360deg)}}
@media(min-width:1600px){.login-layout{min-height:760px}}
@media(max-width:1100px){.login-layout{gap:40px}.login-card{padding:32px}.intro h1{font-size:48px}.dashboard-heading{align-items:flex-start}.actions{flex-direction:column;align-items:flex-end;gap:5px}.student-card{gap:28px;padding:32px}.overall{padding-left:28px}td,th{padding:17px 14px}td{font-size:15px}.subject-name{display:inline-block;max-width:230px}}
@media(max-width:820px){.site-header{padding:22px 28px}main{padding:0 28px}.login-layout{gap:30px;grid-template-columns:1fr;max-width:580px;margin:auto;padding:40px 0}.intro h1{font-size:48px}.intro>p{max-width:none;margin-bottom:0}.illustration,.intro-foot{display:none}.login-card{padding:35px}.intro .eyebrow{font-size:11px}.student-card{align-items:stretch;flex-direction:column;gap:26px}.overall{width:100%;padding:24px 0 0;border-left:0;border-top:1px solid #8da9c455;min-width:0}.metric-line{flex-direction:row;align-items:center;justify-content:space-between}.metric-line strong{font-size:56px}.overall>p{text-align:right}.student-info h2{font-size:30px}table{min-width:800px}td:first-child{min-width:330px}.subject-name{max-width:220px}.site-footer{padding:24px 28px}}
@media(max-width:520px){:root{font-size:16px}.site-header{padding:18px 20px;min-height:88px;gap:10px}.brand{font-size:18px;gap:10px}.brand-icon{width:39px;height:44px;font-size:26px}.brand small{font-size:9px}.semester{font-size:10px;padding:7px 9px;letter-spacing:0}.semester span{margin:0 3px}main{padding:0 18px}.login-layout{padding:30px 0;gap:24px}.intro h1{font-size:clamp(36px,10vw,47px);margin:17px 0}.intro>p{font-size:16px;line-height:1.7}.intro .eyebrow{font-size:10px;letter-spacing:.08em}.login-card{padding:27px 23px;border-radius:20px}.login-card h2{font-size:28px}.card-symbol{margin-bottom:20px}.login-note p,.field-help{font-size:13px}.site-footer{flex-direction:column;gap:5px;padding:20px 18px;font-size:12px}.dashboard-heading{flex-direction:column;margin:30px 0 24px;gap:22px}.dashboard-heading h1{font-size:34px}.dashboard-heading p{font-size:15px}.actions{width:100%;flex-direction:row;align-items:center;justify-content:space-between;gap:10px}.actions .button{font-size:13px;padding:11px 13px}.text-button{font-size:13px;padding:9px}.student-card{padding:27px 24px;border-radius:20px}.student-info h2{font-size:28px}.student-meta{font-size:15px}.metric-line{gap:10px;font-size:14px}.metric-line strong{font-size:49px}.insight{padding:23px 20px;gap:13px;border-radius:18px}.insight-icon{width:35px;height:35px;border-radius:10px;font-size:22px}.insight .eyebrow{font-size:10px}.insight h3{font-size:23px}.insight p{font-size:15px}.sync-row{gap:7px;margin:18px 0;font-size:12px}.sync-row>span{gap:6px}.sync-row .text-button{font-size:12px;padding:9px 5px}.section-heading{padding:23px 20px;gap:12px}.section-heading h2{font-size:23px}.section-heading .eyebrow{font-size:10px}.subject-count{font-size:11px;padding:6px 9px}.subjects-card{border-radius:18px}.table-note{padding:17px 20px;font-size:13px}.report-note{font-size:12px}.badge{font-size:12px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@page{size:A4 portrait;margin:12mm}
@media print{*{-webkit-print-color-adjust:exact;print-color-adjust:exact}body{background:white;color:#0b2545;font-size:10px;min-width:0}.no-print,#login-view{display:none!important}main{padding:0;max-width:none}.print-heading{display:block;border-bottom:2px solid #134074;padding-bottom:10px;margin-bottom:14px}.print-heading>strong{font-size:15px;letter-spacing:.1em}.print-heading h1{font-size:18px;margin:7px 0}.print-heading p{font-size:9px;margin:4px 0}.student-card{padding:17px 20px;border-radius:8px;flex-direction:row;gap:22px;box-shadow:none;break-inside:avoid}.student-info .eyebrow,.eyebrow{font-size:8px}.student-info h2{font-size:21px;margin:8px 0}.student-meta{font-size:10px;margin:0 0 10px}.overall{width:35%;min-width:0;padding:0 0 0 18px;border-top:0;border-left:1px solid #8da9c455}.metric-line{font-size:10px;flex-direction:column;gap:4px;align-items:flex-start}.metric-line strong{font-size:35px}.progress{height:6px;margin:9px 0}.overall>p{font-size:10px;text-align:left}.badge{font-size:8px;padding:4px 7px;gap:4px}.badge:before{width:4px;height:4px}.insight{padding:12px 16px;margin-top:12px;gap:12px;border-radius:8px;break-inside:avoid}.insight-icon{width:28px;height:28px;font-size:19px;border-radius:7px}.insight h3{font-size:15px;margin:4px 0}.insight p,.insight .flag-note{font-size:9px;line-height:1.5}.insight .flag-note{margin-top:5px}.subjects-card{margin-top:14px;border-radius:8px;box-shadow:none}.section-heading{padding:12px 16px}.section-heading h2{font-size:17px;margin-top:4px}.subject-count{font-size:9px;padding:4px 8px}.table-scroll{overflow:visible}table{min-width:0;width:100%}td,th{padding:8px 9px;font-size:10px;line-height:1.4}td:first-child{min-width:0;width:47%}.subject-code{font-size:8px;width:30px;min-height:24px;margin-right:6px;border-radius:5px}.subject-name{display:inline;max-width:none;font-size:10px}tr{break-inside:avoid}.table-note{padding:9px 12px;font-size:8px}.report-note{font-size:8px;line-height:1.5;margin:10px 0}.print-footer{display:block;border-top:1px solid #d6e1e9;padding-top:10px;margin-top:12px;font-size:9px}}

/* Community identity and author credits */
.community-notice{display:flex;align-items:flex-start;gap:20px;padding:20px 24px;margin:26px 0 0;border:1px solid #c7d7e5;border-radius:16px;background:#e4edf5;color:var(--muted)}
.community-label{flex-shrink:0;font-size:12px;font-weight:700;line-height:1.5;color:var(--blue);background:white;border:1px solid #c7d7e5;border-radius:25px;padding:7px 12px}
.community-notice p{margin:0;font-size:14px;line-height:1.75}.community-notice strong{font-weight:600;color:var(--ink)}
.site-footer{border-top:1px solid var(--line);margin-top:18px;padding-top:30px;padding-bottom:32px;align-items:flex-start;gap:40px}
.footer-context{max-width:630px}.footer-context>strong{font-size:17px;font-weight:650;color:var(--navy)}.footer-context p{margin:8px 0;font-size:14px;line-height:1.7}.footer-context>span{font-size:13px}
.footer-authors{min-width:265px}.footer-authors ul{list-style:none;padding:0;margin:10px 0 0}.footer-authors li{display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:15px;color:var(--ink)}.footer-authors small{font-size:13px;color:var(--muted)}
.author-link{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:10px;color:var(--blue);flex-shrink:0}.author-link:hover{background:#dce7f0}.linkedin-icon{display:block}
@media(min-width:821px){.login-layout{min-height:calc(100svh - 330px)}}
@media(max-width:820px){.community-notice{flex-direction:column;gap:12px;padding:20px}.site-footer{flex-direction:column;gap:25px}.footer-authors{width:100%;max-width:340px}}
@media(max-width:520px){.brand{font-size:16px}.brand small{font-size:8px;letter-spacing:.08em}.community-notice{padding:16px;margin-top:20px}.community-notice p{font-size:13px}.community-label{font-size:11px}.footer-context>strong{font-size:16px}.footer-context p{font-size:13px}}
@media print{.print-heading>strong{font-size:12px;letter-spacing:0;line-height:1.4;display:block}.print-heading p{font-size:9px}.site-footer,.community-notice{display:none!important}}
