:root{--green:#047857;--green2:#065f46;--green3:#10b981;--teal:#0f766e;--bg:#f4f7f6;--text:#1f2937;--muted:#6b7280;--border:#e5e7eb;--red:#dc2626;--blue:#2563eb;--purple:#7c3aed;--shadow:0 8px 30px rgba(15,23,42,.06);--radius:18px}*{box-sizing:border-box}html{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--text)}body{margin:0;background:var(--bg)}a{color:inherit;text-decoration:none}.icon{width:18px;height:18px;display:block;flex:0 0 auto}.app-shell{min-height:100vh;display:flex}.sidebar{width:254px;position:fixed;inset:0 auto 0 0;background:linear-gradient(180deg,#047857 0%,#065f46 100%);color:#fff;display:flex;flex-direction:column;z-index:30}.brand-box{padding:22px 22px 18px;display:flex;align-items:center;gap:12px;background:rgba(0,0,0,.12);border-bottom:1px solid rgba(255,255,255,.06)}.brand-logo,.mobile-brand-logo{width:42px;height:42px;border-radius:13px;background:#fff;display:grid;place-items:center;padding:5px;box-shadow:0 8px 24px rgba(0,0,0,.12)}.brand-logo img,.mobile-brand-logo img{width:100%;height:100%;object-fit:contain}.brand-text{display:flex;align-items:center;gap:7px;font-weight:800;letter-spacing:1.2px;font-size:16px}.brand-text span{color:#fff}.brand-text strong{color:#a7f3d0}.sidebar-nav{flex:1;padding:22px 13px;overflow:auto}.nav-item{width:100%;display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:13px;color:rgba(236,253,245,.76);background:none;border:0;font:inherit;cursor:pointer;transition:.18s}.nav-item:hover{background:rgba(255,255,255,.07);color:#fff}.nav-item.active{background:rgba(255,255,255,.11);color:#fff;border-left:3px solid #6ee7b7;padding-left:11px}.nav-item.danger:hover{background:rgba(239,68,68,.14);color:#fecaca}.sidebar-bottom{padding:14px;background:rgba(0,0,0,.1)}.sidebar-note{text-align:center;color:rgba(236,253,245,.55);font-size:10px;margin-top:8px;letter-spacing:.6px}.main-area{margin-left:254px;flex:1;min-width:0;min-height:100vh;display:flex;flex-direction:column}.topbar{height:72px;background:#fff;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 26px;position:sticky;top:0;z-index:20;box-shadow:0 2px 16px rgba(15,23,42,.03)}.topbar-title{display:flex;align-items:center;gap:12px}.desktop-title{font-size:14px;color:#6b7280}.mobile-title{display:none;font-weight:800;color:#111827}.user-chip{display:flex;align-items:center;gap:11px}.user-chip img{width:40px;height:40px;border-radius:50%;object-fit:cover;border:2px solid #d1fae5}.user-chip-text{text-align:right}.user-chip-text strong{display:block;font-size:13px}.user-chip-text small{text-transform:capitalize;color:#6b7280}.mobile-brand-logo{display:none;width:34px;height:34px;border-radius:11px}.content-area{flex:1 0 auto;padding:28px;max-width:1450px;width:100%;margin:0 auto}.page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:20px}.page-head h1{margin:0;font-size:28px;line-height:1.1}.page-head p{margin:7px 0 0;color:var(--muted);font-size:14px}.action-row{display:flex;gap:9px;flex-wrap:wrap}.btn{border:1px solid var(--border);padding:10px 14px;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:13px;font-weight:700;cursor:pointer;background:#fff;color:#374151;transition:.18s;white-space:nowrap}.btn:hover{transform:translateY(-1px);box-shadow:0 7px 18px rgba(15,23,42,.06)}.btn.primary{color:#fff;background:var(--green);border-color:var(--green)}.btn.primary:hover{background:#056b4f}.btn.ghost{background:#fff}.btn.soft{background:#ecfdf5;color:#047857;border-color:#d1fae5}.btn.full{width:100%}.btn.small{padding:8px 10px;font-size:12px}.btn.danger-solid{background:#dc2626;border-color:#dc2626;color:#fff}.card{background:#fff;border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}.card-head{padding:22px 24px;display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid #f0f1f3}.card-head.compact{padding:18px 20px}.card-head h2{font-size:17px;margin:0;display:flex;align-items:center;gap:9px}.card-head p{margin:4px 0 0;color:#6b7280;font-size:12px}.compact-search label,.file-search label{display:flex;align-items:center;gap:8px;border:1px solid var(--border);border-radius:11px;background:#fff;padding:0 10px}.compact-search input,.file-search input{border:0;outline:0;padding:9px 3px;width:215px;font:inherit;font-size:12px}.table-wrap{overflow-x:auto}.data-table{width:100%;border-collapse:collapse;font-size:12px}.data-table th{background:#f8faf9;color:#667085;font-weight:800;text-transform:uppercase;letter-spacing:.06em;font-size:10px;text-align:left;padding:13px 16px;border-bottom:1px solid #eef0f2;white-space:nowrap}.data-table td{padding:12px 16px;border-bottom:1px solid #f1f3f5;vertical-align:middle}.data-table tbody tr:hover{background:#fafdfb}.data-table th a{color:inherit}.center{text-align:center}.right{text-align:right}.user-link{display:flex;align-items:center;gap:9px;font-weight:700}.user-link img{width:27px;height:27px;border-radius:50%;object-fit:cover}.progress-cell{min-width:90px;display:flex;flex-direction:column;align-items:center;gap:4px}.progress-cell strong{font-size:11px}.progress-cell strong.good{color:#059669}.progress-cell strong.mid{color:#2563eb}.progress-cell strong.warn{color:#d97706}.progress{width:72px;height:6px;background:#e5e7eb;border-radius:999px;overflow:hidden}.progress i{display:block;height:100%;background:#10b981;border-radius:999px}.check-dot{width:24px;height:24px;border-radius:8px;display:inline-grid;place-items:center;font-weight:900;font-size:12px}.check-dot.yes{color:#047857;background:#d1fae5}.check-dot.no{color:#cbd5e1;background:#f3f4f6}.check-dot .icon{width:13px;height:13px}.legend-grid{padding:15px 17px;background:#fafafa;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;font-size:10px;color:#6b7280}.legend-grid b{color:#374151}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:20px}.online-list{padding:20px;display:flex;flex-wrap:wrap;gap:14px}.online-user{display:flex;flex-direction:column;align-items:center;gap:6px;font-size:11px;color:#4b5563;max-width:72px;text-align:center}.avatar-wrap{position:relative}.avatar-wrap img{width:46px;height:46px;border-radius:50%;object-fit:cover;box-shadow:0 6px 16px rgba(15,23,42,.1)}.avatar-wrap i{position:absolute;right:0;bottom:0;width:12px;height:12px;border-radius:50%;background:#22c55e;border:2px solid #fff}.activity-list{padding:18px 20px}.activity-item{display:flex;gap:10px;margin-bottom:14px}.activity-item:last-child{margin-bottom:0}.activity-item>i{width:7px;height:7px;background:#60a5fa;border-radius:50%;margin-top:6px;flex:0 0 auto}.activity-item p{margin:0;font-size:12px;line-height:1.45;color:#4b5563}.activity-item p strong{color:#111827}.activity-item small{color:#9ca3af}.muted{color:#9ca3af}.italic{font-style:italic}.empty,.empty-box{text-align:center;color:#9ca3af;padding:52px 20px}.empty-box .icon{margin:0 auto 9px;width:38px;height:38px}.flash{margin-bottom:16px;padding:11px 13px;border-radius:12px;display:flex;align-items:center;gap:8px;font-size:13px;border:1px solid}.flash.success{background:#ecfdf5;border-color:#bbf7d0;color:#047857}.flash.error{background:#fef2f2;border-color:#fecaca;color:#b91c1c}.file-toolbar{padding:13px 14px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;gap:15px;background:#fafafa}.breadcrumbs{display:flex;align-items:center;gap:8px;overflow:auto;white-space:nowrap;color:#64748b;font-size:12px}.breadcrumbs a.current{color:#047857;font-weight:800}.toolbar-right{display:flex;align-items:center;gap:7px}.view-toggle{width:33px;height:33px;border:1px solid var(--border);border-radius:9px;background:#fff;display:grid;place-items:center;color:#94a3b8}.view-toggle.active{color:#047857;background:#ecfdf5;border-color:#bbf7d0}.file-name{display:flex;align-items:center;gap:10px}.file-name a{font-weight:700;color:#374151;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:440px}.file-kind{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;flex:0 0 auto}.file-kind.folder{background:#fef3c7;color:#d97706}.file-kind.link{background:#dbeafe;color:#2563eb}.file-kind.file{background:#eff6ff;color:#2563eb}.badge{display:inline-flex;align-items:center;gap:5px;border-radius:999px;border:1px solid;padding:4px 8px;font-size:10px;font-weight:800}.badge .icon{width:11px;height:11px}.badge.public{background:#ecfdf5;border-color:#bbf7d0;color:#047857}.badge.private{background:#f3f4f6;border-color:#e5e7eb;color:#4b5563}.badge.neutral{background:#f3f4f6;border-color:#e5e7eb;color:#9ca3af}.small-text{font-size:11px;color:#667085}.row-actions{display:flex;justify-content:flex-end;align-items:center;gap:6px}.icon-btn{width:30px;height:30px;display:grid;place-items:center;border:1px solid var(--border);background:#fff;border-radius:9px;color:#64748b;cursor:pointer}.icon-btn:hover{background:#f8fafc;color:#047857}.icon-btn.danger:hover{color:#dc2626;background:#fef2f2}.file-grid{padding:18px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.file-tile{border:1px solid var(--border);border-radius:14px;padding:16px;background:#fff;transition:.18s}.file-tile:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(15,23,42,.07)}.tile-icon{width:43px;height:43px;border-radius:12px;display:grid;place-items:center;margin-bottom:12px}.tile-icon.folder{background:#fef3c7;color:#d97706}.tile-icon.file{background:#eff6ff;color:#2563eb}.tile-icon.link{background:#dbeafe;color:#2563eb}.tile-name{font-size:13px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tile-meta{font-size:10px;color:#9ca3af;margin:6px 0 12px;display:flex;align-items:center;gap:5px}.tile-meta .icon{width:11px;height:11px}.tile-actions{display:flex;gap:6px}.selector-card{padding:14px 18px;display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.selector-card>div:first-child{display:flex;align-items:center;gap:10px}.selector-card .label{font-size:11px;font-weight:800;color:#64748b}.selector-card select{border:1px solid var(--border);border-radius:10px;padding:9px 30px 9px 10px;font:inherit;font-size:12px;background:#fff}.completion-badge{font-size:11px;font-weight:800;color:#047857;background:#ecfdf5;padding:8px 10px;border:1px solid #bbf7d0;border-radius:999px}.hero-card{background:linear-gradient(115deg,#065f46,#0f766e);color:#fff;border-radius:18px;padding:20px;display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:18px;box-shadow:0 14px 28px rgba(6,95,70,.22)}.hero-profile{display:flex;align-items:center;gap:13px;min-width:0}.hero-profile img{width:52px;height:52px;border-radius:50%;border:2px solid rgba(255,255,255,.45);object-fit:cover}.hero-profile h2{margin:0;font-size:19px}.hero-profile p{margin:3px 0 5px;color:#a7f3d0;font-size:11px}.hero-profile small{display:block;color:#d1fae5;font-size:11px;max-width:640px;line-height:1.45}.hero-progress{width:180px;background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.15);padding:14px;border-radius:14px;text-align:center}.hero-progress>span{font-size:9px;letter-spacing:.08em;color:#a7f3d0}.hero-progress strong{display:block;font-size:28px;margin:2px 0 7px}.hero-progress em{font-size:11px;font-style:normal;color:#a7f3d0;font-weight:500}.progress.light{width:100%;background:rgba(255,255,255,.18)}.progress.light i{background:#a7f3d0}.table-desc{display:block;font-size:10px;color:#9ca3af;margin-top:3px;line-height:1.3}.record-stack{display:flex;flex-direction:column;gap:7px}.record{display:flex;justify-content:space-between;align-items:center;gap:12px;border:1px solid #edf0f2;border-radius:11px;padding:8px 10px;background:#fff}.record-main{display:flex;align-items:center;gap:8px;min-width:0}.record-main>.icon{color:#10b981}.record-main strong{display:block;font-size:11px;max-width:250px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.record-main small{display:block;color:#9ca3af;font-size:9px;margin-top:2px}.notice{padding:11px;border-radius:10px;background:#ecfdf5;color:#065f46;border:1px solid #d1fae5;font-size:11px;line-height:1.55}.profile-grid{display:grid;grid-template-columns:330px minmax(0,1fr);gap:20px}.profile-card{overflow:hidden}.profile-cover{height:108px;background:linear-gradient(120deg,#047857,#0f766e)}.profile-body{padding:0 22px 22px;text-align:center}.profile-avatar{width:96px;height:96px;border-radius:50%;object-fit:cover;border:4px solid #fff;box-shadow:0 10px 22px rgba(15,23,42,.12);margin-top:-48px}.profile-body h2{font-size:21px;margin:12px 0 3px}.role-text{color:#059669;font-size:12px;font-weight:800;text-transform:capitalize}.contact-box{margin:15px 0;padding:12px;background:#f8faf9;border:1px solid #edf1ef;border-radius:12px;text-align:left}.contact-box>div{display:flex;align-items:center;gap:8px;font-size:11px;color:#667085;margin-bottom:9px}.contact-box>div:last-child{margin-bottom:0}.contact-box .icon{width:14px;height:14px;color:#94a3b8}.status{width:10px;height:10px;border-radius:50%;background:#d1d5db;display:inline-block}.status.online{background:#22c55e}.social-block{text-align:left;margin-top:15px}.social-block h4{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:#9ca3af;margin:0 0 9px}.socials{display:flex;align-items:center;gap:7px}.socials a{width:31px;height:31px;display:grid;place-items:center;border-radius:50%;background:#eff6ff;color:#2563eb;font-weight:900}.profile-right{display:flex;flex-direction:column;gap:20px}.profile-progress{padding:20px}.profile-progress strong{font-size:27px;color:#059669}.profile-progress strong em{font-style:normal;color:#9ca3af;font-size:12px;font-weight:700}.profile-progress>span{float:right;background:#ecfdf5;color:#047857;border:1px solid #bbf7d0;padding:5px 8px;border-radius:8px;font-size:10px;font-weight:900}.profile-progress .progress{width:100%;margin-top:11px}.training-grid{padding:18px;display:grid;grid-template-columns:1fr 1fr;gap:10px}.training-item{display:flex;align-items:center;gap:9px;padding:10px;border-radius:11px;background:#faf5ff;border:1px solid #e9d5ff}.training-item>span{width:27px;height:27px;display:grid;place-items:center;border-radius:50%;background:#fff;border:1px solid #ddd6fe;color:#7c3aed;font-size:10px;font-weight:900}.training-item strong{font-size:11px;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.training-item a{width:29px;height:29px;display:grid;place-items:center;background:#fff;border-radius:8px;color:#7c3aed;border:1px solid #ddd6fe}.training-item a .icon{width:14px}.archive-card{min-height:380px}.archive-list{padding:18px;display:flex;flex-direction:column;gap:8px;max-height:440px;overflow:auto}.archive-row{display:flex;justify-content:space-between;align-items:center;gap:10px;border:1px solid #edf0f2;border-radius:11px;padding:10px}.archive-row>div:first-child{display:flex;align-items:center;gap:10px;min-width:0}.archive-row>div:first-child>.icon{color:#2563eb}.archive-row strong{display:block;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:470px}.archive-row small{display:block;color:#9ca3af;font-size:9px;margin-top:3px}.form-stack{padding:20px;display:flex;flex-direction:column;gap:13px}.form-stack label{font-size:11px;font-weight:800;color:#4b5563;display:flex;flex-direction:column;gap:6px}.form-stack input,.form-stack select{width:100%;padding:10px 11px;border:1px solid #dfe3e7;border-radius:10px;outline:none;background:#fff;font:inherit;font-size:12px}.form-stack input:focus,.form-stack select:focus{border-color:#6ee7b7;box-shadow:0 0 0 3px #ecfdf5}.check-label{flex-direction:row!important;align-items:center}.check-label input{width:auto}.help{font-size:10px;color:#94a3b8;line-height:1.5;margin:0}.form-divider{padding-top:8px;border-top:1px solid #edf0f2;font-size:11px;color:#374151}.modal{display:none;position:fixed;inset:0;background:rgba(15,23,42,.58);backdrop-filter:blur(3px);z-index:80;padding:20px;align-items:center;justify-content:center}.modal.show{display:flex}.modal-box{background:#fff;width:min(500px,100%);border-radius:18px;box-shadow:0 25px 65px rgba(15,23,42,.2);overflow:hidden}.modal-box.small{width:min(380px,100%);padding:23px;text-align:center}.modal-head{display:flex;align-items:center;justify-content:space-between;padding:15px 19px;border-bottom:1px solid #edf0f2;background:#fafafa}.modal-head h3{margin:0;font-size:15px;display:flex;align-items:center;gap:8px}.modal-head h3 .icon{color:#047857}.close-modal{border:0;background:#eef2f2;color:#64748b;width:30px;height:30px;border-radius:50%;font-size:19px;cursor:pointer}.modal-actions{display:flex;gap:8px;padding:0 20px 20px}.modal-box.small .modal-actions{padding:0}.modal-actions .btn{flex:1}.danger-icon{width:54px;height:54px;margin:0 auto 12px;border-radius:50%;display:grid;place-items:center;background:#fee2e2;color:#dc2626}.danger-icon .icon{width:25px;height:25px}.modal-box.small h3{margin:0 0 6px;font-size:18px}.modal-box.small p{margin:0 0 18px;color:#6b7280;font-size:12px;line-height:1.5}.modal-tabs{display:flex;border-bottom:1px solid #edf0f2;padding:0 12px}.tab{border:0;background:none;padding:11px 9px;font-size:11px;font-weight:800;color:#9ca3af;cursor:pointer}.tab.active{color:#047857;border-bottom:2px solid #10b981}.modal-tab-panel.hidden{display:none}.role-badge{display:inline-flex;align-items:center;padding:5px 9px;border-radius:999px;font-size:10px;font-weight:900;text-transform:capitalize}.role-badge.admin{background:#f3e8ff;color:#7c3aed}.role-badge.guru{background:#dbeafe;color:#2563eb}.role-badge.tamu{background:#ffedd5;color:#c2410c}.auth-page{min-height:100vh;display:grid;place-items:center;background:radial-gradient(circle at top left,#d1fae5 0,#f7faf9 38%,#eff6f5 100%);padding:25px}.login-wrap{width:min(430px,100%)}.login-card{background:#fff;border:1px solid #e7ecea;border-radius:23px;box-shadow:0 22px 60px rgba(15,23,42,.1);padding:34px 28px;text-align:center}.logo-orb{width:78px;height:78px;background:#fff;border:1px solid #edf0ef;border-radius:23px;display:grid;place-items:center;padding:9px;box-shadow:0 12px 28px rgba(15,23,42,.09);margin:0 auto 16px}.logo-orb img{width:100%;height:100%;object-fit:contain}.login-card h1{font-size:29px;margin:0;letter-spacing:-.03em}.login-card h1 span{color:#111827}.login-card h1 strong{color:#059669;margin-left:7px}.login-subtitle{font-size:12px;color:#6b7280;line-height:1.6;margin:8px 0 23px}.login-panel{padding:18px;border:1px solid #edf1ef;border-radius:16px;background:#fafcfb}.login-hint{font-size:11px;color:#4b5563;font-weight:700;margin-bottom:16px}.google-button{display:flex;justify-content:center;min-height:42px}.login-status{margin-top:11px;color:#64748b;font-size:10px}.login-foot{font-size:10px;color:#9ca3af;margin-top:16px}.mobile-nav{display:none}.footer-pill{position:static;align-self:flex-end;margin:12px 22px 18px;background:#fff;border:1px solid var(--border);box-shadow:0 4px 12px rgba(15,23,42,.05);padding:8px 12px;border-radius:999px;font-size:10px;color:#9ca3af;z-index:auto}.footer-pill span{color:#ef4444}.footer-pill a{color:#059669;font-weight:900}.hide-sm,.hide-md,.hide-lg{display:table-cell}@media(max-width:1100px){.file-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.legend-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.profile-grid{grid-template-columns:1fr}.profile-card{max-width:530px}.profile-right{min-width:0}}@media(max-width:900px){.sidebar{display:none}.main-area{margin-left:0}.topbar{height:64px;padding:0 16px}.desktop-title{display:none}.mobile-title{display:block}.mobile-brand-logo{display:grid}.content-area{padding:17px 14px 24px;margin:0 auto}.two-col{grid-template-columns:1fr}.file-toolbar{flex-direction:column;align-items:stretch}.toolbar-right{width:100%}.file-search{flex:1}.file-search label{width:100%}.file-search input{width:100%}.hero-card{flex-direction:column;align-items:stretch}.hero-progress{width:100%}.selector-card{flex-direction:column;align-items:stretch}.selector-card>div:first-child{flex-wrap:wrap}.selector-card select{width:100%}.completion-badge{width:max-content}.mobile-nav{position:fixed;left:0;right:0;bottom:0;display:flex;align-items:stretch;justify-content:space-around;background:rgba(255,255,255,.98);border-top:1px solid var(--border);box-shadow:0 -8px 22px rgba(15,23,42,.06);z-index:50}.mobile-nav-item{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:7px 4px;color:#9ca3af;font-size:9px;font-weight:700;gap:3px}.mobile-nav-item.active{color:#059669}.mobile-nav-item .icon{width:18px;height:18px}.footer-pill{align-self:flex-end;margin:8px 10px 78px;font-size:9px;opacity:.98}.file-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hide-lg{display:none}.record-main strong{max-width:180px}.page-head{flex-direction:column}.action-row{width:100%}.action-row .btn{flex:1}}
@media(max-width:600px){.page-head h1{font-size:23px}.page-head p{font-size:12px}.card-head{padding:16px}.legend-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hide-sm{display:none}.hide-md{display:none}.data-table td,.data-table th{padding:10px 11px}.file-grid{grid-template-columns:1fr 1fr;gap:9px;padding:11px}.file-tile{padding:12px}.file-name a{max-width:220px}.hero-profile small{font-size:10px}.training-grid{grid-template-columns:1fr}.profile-body{padding:0 16px 17px}.profile-grid{gap:14px}.two-col{gap:14px}.card{border-radius:15px}.topbar-title{min-width:0}.user-chip-text{display:none}.user-chip img{width:35px;height:35px}.action-row .btn{font-size:11px;padding:9px 10px}.btn{font-size:12px}.archive-row strong{max-width:220px}}

.files-table th.actions-head{text-align:right;width:130px}.files-table td.actions-cell{text-align:right}.files-table .row-actions{justify-content:flex-end;align-items:center;flex-wrap:nowrap}.file-link-button{border:0;background:transparent;padding:0;margin:0;font:inherit;font-size:inherit;font-weight:inherit;color:#047857;cursor:pointer;text-align:left}.file-link-button:hover{text-decoration:underline}.preview-box{width:min(1100px,96vw);height:min(86vh,800px);display:flex;flex-direction:column}.preview-box .modal-head{flex:0 0 auto}.preview-body{flex:1;min-height:0;background:#f8fafc;display:flex;align-items:stretch;justify-content:center}.preview-body iframe{width:100%;height:100%;border:0;background:#fff}.preview-message{width:100%;display:flex;align-items:center;justify-content:center;padding:30px;color:#64748b;font-size:13px;line-height:1.6;text-align:center}.preview-message.hidden,.preview-box iframe.hidden{display:none}.preview-actions{display:flex;gap:8px;justify-content:flex-end;padding:12px 16px;border-top:1px solid #edf0f2;background:#fff}.preview-actions .btn{min-width:110px}.preview-actions .hidden{display:none}@media(max-width:700px){.preview-box{height:82vh;width:96vw}.preview-actions{padding:10px}.preview-actions .btn{flex:1}.files-table th.actions-head{width:115px}}

/* v1.0.6 preview renderer: no native PDF toolbar, mobile/iOS friendly */
.preview-loading{display:flex;align-items:center;justify-content:center;min-height:160px;color:#64748b;font-size:13px;width:100%;}
.preview-pdf{width:100%;height:100%;overflow:auto;padding:12px 12px 18px;background:#3f3f46;display:flex;flex-direction:column;align-items:center;gap:14px;-webkit-overflow-scrolling:touch;}
.pdf-page{width:max-content;max-width:100%;background:#fff;box-shadow:0 8px 22px rgba(0,0,0,.22);}
.pdf-canvas{display:block;max-width:100%;height:auto;background:#fff;}
.preview-image{display:block;max-width:100%;max-height:100%;object-fit:contain;margin:auto;padding:12px;background:#fff;}
.preview-text{margin:0;width:100%;height:100%;overflow:auto;padding:20px;font:12px/1.6 ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;white-space:pre-wrap;word-break:break-word;background:#fff;color:#111827;}
.preview-body{position:relative;overflow:hidden;}
.preview-body > .hidden{display:none!important;}
.dashboard-monitor-title{min-width:0;}
.dashboard-monitor-title span{display:inline;}
@media(max-width:600px){
  .dashboard-monitor-head{display:block;padding:14px 14px 12px;}
  .dashboard-monitor-title-wrap{min-width:0;}
  .dashboard-monitor-title{font-size:15px;line-height:1.3;align-items:flex-start;gap:7px;}
  .dashboard-monitor-title .icon{width:16px;height:16px;margin-top:2px;}
  .dashboard-monitor-title span{display:block;}
  .dashboard-monitor-head .card-head p{font-size:10px;line-height:1.45;margin-top:6px;}
  .dashboard-monitor-head .compact-search{width:100%;margin-top:12px;}
  .dashboard-monitor-head .compact-search label{width:100%;} 
  .dashboard-monitor-head .compact-search input{width:100%;}
  .preview-box{width:calc(100vw - 18px);height:calc(100vh - 120px);max-height:78vh;border-radius:16px;}
  .preview-box .modal-head{padding:11px 13px;}
  .preview-box .modal-head h3{font-size:12px;line-height:1.3;min-width:0;padding-right:6px;}
  .preview-box .modal-head h3 span{display:block;max-width:calc(100vw - 90px);white-space:normal;overflow-wrap:anywhere;}
  .preview-body{min-height:0;}
  .preview-pdf{padding:8px 6px 14px;gap:9px;}
  .pdf-page{max-width:100%;}
  .preview-image{padding:6px;}
  .preview-actions{padding:9px;}
  .preview-actions .btn{min-width:0;}
}

/* v1.0.7 Office preview (Microsoft Office Online Viewer) */
.preview-office{width:100%;height:100%;min-height:420px;border:0;background:#fff;display:block;}
.preview-office.hidden{display:none!important;}
@media(max-width:700px){
  .preview-office{min-height:0;height:100%;} 
}


/* v1.0.8 file-manager context menu */
.file-context-menu{position:fixed;z-index:95;min-width:190px;padding:6px;background:rgba(255,255,255,.98);border:1px solid #e5e7eb;border-radius:12px;box-shadow:0 18px 45px rgba(15,23,42,.18);backdrop-filter:blur(8px);}
.file-context-menu[hidden]{display:none!important;}
.file-context-menu [hidden]{display:none!important;}
.context-menu-item{width:100%;display:flex;align-items:center;gap:10px;border:0;background:transparent;padding:9px 11px;border-radius:8px;color:#374151;font:inherit;font-size:12px;font-weight:700;text-align:left;cursor:pointer;white-space:nowrap;}
.context-menu-item:hover,.context-menu-item:focus-visible{background:#ecfdf5;color:#047857;outline:none;}
.context-menu-item.danger{color:#dc2626;}
.context-menu-item.danger:hover,.context-menu-item.danger:focus-visible{background:#fef2f2;color:#b91c1c;}
@media(max-width:600px){.file-context-menu{min-width:175px;padding:5px;}.context-menu-item{padding:10px;font-size:12px;}}


/* ============================================================
   SATUPINTU Pastel School UI Refresh
   Visual-only layer. Existing routes, permissions and controls
   remain unchanged.
   ============================================================ */
:root{
  --green:#6eaa9f;
  --green2:#4f8f84;
  --green3:#89c2b4;
  --teal:#6eaaa0;
  --bg:#fbf8f1;
  --text:#343832;
  --muted:#7b8078;
  --border:#e8e5db;
  --red:#e98170;
  --blue:#8faed0;
  --purple:#b7a2cf;
  --shadow:0 10px 28px rgba(105,91,74,.08);
  --radius:22px;
}
html,body{background:#fbf8f1;color:#343832}
body{background:linear-gradient(180deg,#fbf8f1 0%,#f6f7f1 100%)}
.app-shell{background:#fbf8f1}
.sidebar{
  width:254px;
  background:linear-gradient(180deg,#e0ece3 0%,#d9e7dc 100%);
  color:#3f4b43;
  border-right:1px solid #d0dfd5;
  box-shadow:5px 0 24px rgba(85,111,93,.06);
}
.brand-box{
  background:rgba(255,255,255,.28)!important;
  border-bottom:1px solid rgba(105,139,117,.12)!important;
  padding-top:19px!important;padding-bottom:17px!important;
}
.brand-box>span{color:#35463b!important;letter-spacing:.7px!important}
.sidebar .brand-logo,.sidebar .brand-box>img{
  box-shadow:0 5px 14px rgba(77,112,91,.11);
  border-radius:50%!important;
}
.sidebar-nav{padding:18px 12px}
.nav-item{
  color:#657369;
  border-radius:15px;
  margin:3px 0;
  padding:12px 13px;
  transition:background .18s ease,color .18s ease,box-shadow .18s ease,transform .18s ease;
}
.nav-item .icon{color:#7ba99c}
.nav-item:hover{background:rgba(255,255,255,.5);color:#3b5347;transform:translateX(1px)}
.nav-item.active{
  background:#fff!important;
  color:#35453b!important;
  border:1px solid rgba(180,202,185,.5);
  border-left:3px solid #79b7a7;
  padding-left:10px;
  box-shadow:0 5px 14px rgba(81,105,87,.09);
}
.nav-item.active .icon{color:#4d9987}
.nav-item.danger{color:#748177}
.nav-item.danger .icon{color:#d98678}
.nav-item.danger:hover{background:#fae7e2!important;color:#a45d52!important}
.sidebar-bottom{background:rgba(255,255,255,.25);border-top:1px solid rgba(105,139,117,.12);padding:13px}
.sidebar-note{color:#87978b}
.main-area{background:#fbf8f1}
.topbar{
  background:rgba(255,254,250,.94);
  border-bottom:1px solid #ece8df;
  box-shadow:0 3px 15px rgba(104,91,75,.035);
  backdrop-filter:blur(12px);
}
.sidebar-toggle{
  border:1px solid #e6e5dc!important;
  border-radius:14px!important;
  background:#fffefa!important;
  color:#548f82!important;
  box-shadow:0 2px 8px rgba(94,121,100,.05);
}
.sidebar-toggle:hover{background:#eaf4ed!important}
.header-app-name{color:#398b78!important;letter-spacing:.4px!important}
.header-long-text{color:#84877e!important}
.header-school-text{color:#3c4039!important}
.user-chip img{border:2px solid #d8e9df!important;box-shadow:0 3px 10px rgba(83,107,89,.08)}
.content-area{padding:25px 28px 30px;max-width:1550px}
.page-head{align-items:center;margin-bottom:18px}
.page-head h1{font-size:29px;letter-spacing:-.035em;color:#383b34}
.page-head p{color:#82867e;line-height:1.55}
.card,.settings-upgrade-card,.profile-card{
  background:#fffefa;
  border:1px solid #ebe7dd;
  border-radius:22px;
  box-shadow:0 8px 25px rgba(105,91,74,.065);
}
.card-head{border-bottom:1px solid #f0ede5;background:rgba(255,255,255,.4)}
.card-head h2{color:#3e413a}
.card-head p{color:#858980}
.btn{
  border-color:#e7e4db;
  border-radius:14px;
  padding:10px 15px;
  background:#fffefa;
  color:#525950;
  box-shadow:0 2px 7px rgba(105,91,74,.025);
  transition:transform .18s ease,box-shadow .18s ease,background .18s ease;
}
.btn:hover{transform:translateY(-1px);box-shadow:0 7px 16px rgba(105,91,74,.09)}
.btn.primary{
  color:#fff!important;
  background:linear-gradient(135deg,#ed947e 0%,#e77d69 100%)!important;
  border-color:#e98774!important;
  box-shadow:0 5px 13px rgba(226,125,104,.18);
}
.btn.primary:hover{background:linear-gradient(135deg,#e98774,#dc725f)!important}
.btn.soft,.btn.ghost{
  background:#f5f7ef;
  color:#548c7c;
  border-color:#e1eade;
}
.btn.danger-solid{background:#e98170!important;border-color:#e98170!important}
.icon-btn{
  border-color:#e8e5dc;
  border-radius:11px;
  background:#fffefa;
  color:#7b8b80;
}
.icon-btn:hover{background:#eaf4ed;color:#4c9280}
.icon-btn.danger:hover{background:#fce8e2;color:#d56d5d}
input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea{
  border-color:#e3e5dc;
  border-radius:13px;
  background:#fffefa;
  color:#41463f;
}
input:focus,select:focus,textarea:focus{
  border-color:#9acabb!important;
  box-shadow:0 0 0 3px rgba(147,197,180,.2)!important;
  outline:none;
}
.form-stack label,.settings-upgrade-body label{color:#596057}
.form-stack input,.form-stack select,.form-stack textarea{
  border-color:#e4e5dc;
  border-radius:12px;
  background:#fffefa;
}
.help,.form-stack small,.settings-upgrade-body small{color:#94978f}
.data-table{font-size:12px}
.data-table th{
  background:#f3f4ec;
  color:#7c8177;
  border-bottom-color:#e9e9df;
  letter-spacing:.075em;
}
.data-table td{border-bottom-color:#efeee7}
.data-table tbody tr:hover{background:#fff9f3}
.table-wrap{border-radius:0 0 22px 22px}
.flash{border-radius:15px}
.flash.success{background:#eaf5ec;border-color:#cfe5d4;color:#447e66}
.flash.error{background:#fcedea;border-color:#f0cfc6;color:#af5c50}
.badge.public{background:#e6f3e9;border-color:#cbe5d3;color:#4f8c71}
.badge.private,.badge.neutral{background:#f2f1ea;border-color:#e5e3d9;color:#7c8078}
.completion-badge{background:#e7f4e9;border-color:#cbe6d4;color:#4d907a}
.selector-card{background:#fffefa;border-color:#ebe7dd;border-radius:20px}
.selector-card select{border-color:#e1e4db;background:#fffefa}
.hero-card{
  background:linear-gradient(112deg,#f6d5ca 0%,#f8ded2 58%,#f3d4c9 100%);
  color:#53413a;
  border:1px solid #f3d0c5;
  border-radius:24px;
  box-shadow:0 12px 28px rgba(202,137,119,.14);
}
.hero-profile p,.hero-profile small{color:#785d52}
.hero-profile img{border-color:rgba(255,255,255,.85)}
.hero-progress{background:rgba(255,255,255,.32);border-color:rgba(255,255,255,.45)}
.hero-progress>span,.hero-progress em{color:#9e7264}
.progress.light{background:rgba(255,255,255,.55)}
.progress.light i{background:#7fb7a5}
.record,.archive-row{background:#fffefa;border-color:#ece8de;border-radius:13px}
.record-main>.icon{color:#79b5a4}
.file-toolbar{background:#faf8f1;border-bottom-color:#eee9df}
.breadcrumbs a.current{color:#598e7c}
.view-toggle.active{color:#538f7d;background:#e7f3e9;border-color:#cde4d3}
.file-kind.folder,.tile-icon.folder{background:#faedc9;color:#c89642}
.file-kind.link,.tile-icon.link{background:#e7eef9;color:#799cc7}
.file-kind.file,.tile-icon.file{background:#e8edf7;color:#718fb8}
.file-tile{background:#fffefa;border-color:#ece8df;border-radius:17px}
.file-tile:hover{box-shadow:0 12px 24px rgba(105,91,74,.1)}
.modal{background:rgba(81,77,67,.36);backdrop-filter:blur(5px)}
.modal-box{background:#fffefa;border:1px solid #ebe7dd;border-radius:22px;box-shadow:0 24px 70px rgba(87,79,66,.2)}
.modal-head{background:#f7f6ef;border-bottom-color:#ece8de}
.modal-head h3 .icon{color:#65a08e}
.close-modal{background:#edece4;color:#777d72}
.close-modal:hover{background:#e1eee5;color:#508d7a}
.modal-tabs{border-bottom-color:#eae8df}
.tab.active{color:#538f7d;border-bottom-color:#79b9a8}
.notice{background:#eaf5ec;color:#477b64;border-color:#cfe6d5}
.footer-pill{background:#fffefa;border-color:#e9e5dc;box-shadow:0 4px 12px rgba(105,91,74,.05)}
.pwa-install-button{
  border-color:#d5e9dc!important;
  background:linear-gradient(135deg,#e9f6ec,#d8ede0)!important;
  color:#518a75!important;
  box-shadow:0 4px 11px rgba(103,151,119,.1)!important;
  border-radius:14px!important;
}
.pwa-install-button:hover{box-shadow:0 7px 16px rgba(103,151,119,.16)!important}
.dashboard-monitor-card{background:#fffefa;border-color:#eae6dc;border-radius:23px}
.dashboard-monitor-head{background:transparent}
.dashboard-monitor-title{color:#41453d}
.dashboard-monitor-title .icon{color:#6ba79a}
.dashboard-document-popover{background:#fffdf7;border-color:#e8e5da;color:#3e433c;border-radius:18px;box-shadow:0 18px 45px rgba(94,84,68,.17)}
.dashboard-document-popover:before{background:#fffdf7;border-color:#e8e5da}
.dashboard-document-title{color:#568c7a}
.dashboard-document-close{background:#f0efe7;color:#7c8076}
.dashboard-document-item{background:#f9faf3;border-color:#e9ece1;border-radius:11px}
.dashboard-document-file-name{color:#4b5148}
.dashboard-class-progress.all,.dashboard-mapel-progress.all{background:#dcefe3;color:#4f8e76}
.dashboard-class-progress.partial,.dashboard-mapel-progress.partial{background:#fbefc9;color:#a37a34}
.dashboard-class-progress.none,.dashboard-mapel-progress.none{background:#eef1f4;color:#788698}
.dashboard-subject-badge{background:#e8f4e9!important;border-color:#cee8d5!important;color:#4a8b71!important}
.dashboard-subject-unassigned{background:#fff0e2!important;color:#b47850!important}
.perangkat-table-note{border-bottom-color:#eee9df}
.perangkat-table-note strong{color:#548f7c}
.perangkat-global-badge{background:#eeecfa;color:#8377b8}
.perangkat-class-badge{background:#def0e6;color:#4c8b76}
.legacy-perangkat-box{background:#fff8e8;border-color:#efc879;border-radius:15px}
.legacy-perangkat-box>strong,.legacy-perangkat-box>small{color:#a27638}
.training-item{background:#f5effa;border-color:#e7d9ef}
.training-item>span,.training-item a{color:#9b84b8;border-color:#e3d6ef}
.auth-page{background:radial-gradient(circle at 12% 8%,#e0eee2 0,#fbf8f1 42%,#f7e3db 100%)}
.login-card{background:#fffefa;border-color:#ebe6dc;box-shadow:0 22px 55px rgba(105,91,74,.12);border-radius:26px}
.login-panel{background:#f7f8f1;border-color:#ecebe1}
.login-card h1 strong{color:#609e89}
.login-card h1 span{color:#3b4038}
.role-badge.admin{background:#f1eafa;color:#9074b4}
.role-badge.guru{background:#e4eefb;color:#6d91bf}
.role-badge.tamu{background:#fff0df;color:#bd8650}
.file-context-menu{background:rgba(255,254,250,.98);border-color:#e8e4da}
.context-menu-item{color:#51584f}
.context-menu-item:hover,.context-menu-item:focus-visible{background:#eaf4eb;color:#548c78}
.context-menu-item.danger:hover,.context-menu-item.danger:focus-visible{background:#fceae6;color:#b85e51}
@media(max-width:900px){
  .content-area{padding:18px 14px 26px}
  .sidebar{box-shadow:0 5px 24px rgba(85,111,93,.08)}
  .page-head h1{font-size:25px}
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation-duration:.01ms!important;animation-iteration-count:1!important}
}
/* End SATUPINTU Pastel School UI Refresh */


/* Dashboard hero and metric tiles inspired by the pastel school reference. */
.pastel-welcome{position:relative;isolation:isolate;overflow:hidden;display:grid;grid-template-columns:76px minmax(0,1fr) auto;align-items:center;gap:18px;margin:0 0 18px;padding:23px 25px;border:1px solid #f0d0c5;border-radius:25px;background:linear-gradient(112deg,#f7d6ca 0%,#f9e2d4 56%,#f6d9cb 100%);box-shadow:0 12px 28px rgba(204,137,117,.13)}
.pastel-welcome:after{content:"";position:absolute;z-index:-1;right:14%;top:-78px;width:250px;height:250px;border-radius:50%;background:rgba(255,255,255,.18)}
.pastel-welcome-visual{display:grid;place-items:center;width:76px;height:76px;border:1px solid rgba(255,255,255,.68);border-radius:24px;background:rgba(255,255,255,.54);box-shadow:0 8px 19px rgba(174,112,94,.09)}
.pastel-welcome-visual span{font-size:36px;line-height:1}
.pastel-welcome-copy{min-width:0}
.pastel-welcome-kicker{display:inline-flex;align-items:center;margin:0 0 7px;padding:5px 9px;border:1px solid rgba(222,166,147,.27);border-radius:999px;background:rgba(255,255,255,.35);color:#a57968;font-size:10px;font-weight:800;line-height:1.2}
.pastel-welcome-copy h2{margin:0;color:#4c3e37;font-size:23px;line-height:1.2;letter-spacing:-.03em}
.pastel-welcome-copy p{max-width:690px;margin:7px 0 0;color:#7d6257;font-size:12px;line-height:1.55}
.pastel-welcome-actions{position:relative;z-index:1;display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;max-width:260px}
.pastel-welcome-actions .btn{font-size:11px;padding:10px 12px}
.pastel-welcome-actions .pastel-btn-coral{background:linear-gradient(135deg,#ee947b,#e67e68)!important;border-color:#e98a75!important;color:#fff!important}
.pastel-welcome-actions .pastel-btn-white{background:rgba(255,255,255,.8)!important;border-color:rgba(255,255,255,.9)!important;color:#6e655b!important}
.pastel-welcome-actions .icon{width:15px;height:15px}
.pastel-welcome-plant{position:absolute;right:15px;bottom:5px;z-index:-1;opacity:.26;font-size:39px;filter:saturate(.6);pointer-events:none}
.pastel-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin:0 0 20px}
.pastel-stat-card{position:relative;display:flex;flex-direction:column;align-items:flex-start;min-width:0;min-height:142px;padding:17px 18px 15px;overflow:hidden;border:1px solid rgba(255,255,255,.75);border-radius:22px;box-shadow:0 8px 20px rgba(104,95,78,.065)}
.pastel-stat-card:after{content:"";position:absolute;right:-20px;top:-25px;width:94px;height:94px;border-radius:50%;background:rgba(255,255,255,.18)}
.pastel-stat-mint{background:linear-gradient(140deg,#e0eee5,#d4e8df);color:#48695c}
.pastel-stat-peach{background:linear-gradient(140deg,#f8ded4,#f4d0c6);color:#865c50}
.pastel-stat-yellow{background:linear-gradient(140deg,#f8edce,#f4e4ba);color:#8b713b}
.pastel-stat-blue{background:linear-gradient(140deg,#e3eaf7,#d8e2f3);color:#5f789d}
.pastel-stat-icon{position:relative;z-index:1;display:grid;place-items:center;width:34px;height:34px;margin-bottom:9px;border-radius:12px;background:rgba(255,255,255,.67);box-shadow:0 4px 9px rgba(83,83,69,.05)}
.pastel-stat-icon .icon{width:17px;height:17px;color:currentColor}
.pastel-stat-label{position:relative;z-index:1;font-size:11px;font-weight:700;line-height:1.35;color:inherit;opacity:.9}
.pastel-stat-card>strong{position:relative;z-index:1;margin:3px 0 4px;font-size:27px;line-height:1.05;letter-spacing:-.04em;color:#3d4139}
.pastel-stat-card>small{position:relative;z-index:1;font-size:9px;line-height:1.4;color:inherit;opacity:.82}
.dashboard-year-filter[style]{background:#fffefa!important;border-color:#e8e5dc!important;border-radius:15px!important;box-shadow:0 4px 12px rgba(96,87,72,.04)!important}
.dashboard-year-filter label[style]{color:#7a8075!important}
#dashboardYearSelect[style]{background:#f8f7ef!important;border-color:#e4e5da!important;color:#424940!important;border-radius:11px!important}
#btn-absen[style]{border-radius:13px!important}
.dashboard-monitor-card .card-head{background:transparent}
.dashboard-monitor-card .compact-search label{border-color:#e8e7df;background:#fffefa;border-radius:13px}
.dashboard-monitor-card .compact-search input{background:transparent}
.dashboard-monitor-card .data-table th{background:#f3f4ec}
.dashboard-monitor-card .data-table tbody tr:nth-child(even){background:rgba(230,239,230,.15)}
.dashboard-monitor-card .data-table tbody tr:hover{background:#fff5ef}
.dashboard-monitor-card .legend-grid{background:#f6f5ed;color:#81857c;border-top:1px solid #efede4}
.dashboard-monitor-card .legend-grid b{color:#555c51}
.two-col>.card{border-radius:22px}
.online-user:hover{color:#4b927f}
.online-user .avatar-wrap img{box-shadow:0 5px 13px rgba(88,103,83,.12)}
.activity-item>i{background:#e9927c}
@media(max-width:1100px){.pastel-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pastel-welcome{grid-template-columns:68px minmax(0,1fr)}.pastel-welcome-visual{width:68px;height:68px;border-radius:21px}.pastel-welcome-actions{grid-column:2;justify-content:flex-start;max-width:none}}
@media(max-width:640px){.pastel-welcome{grid-template-columns:48px minmax(0,1fr);gap:12px;padding:16px;border-radius:20px}.pastel-welcome-visual{width:48px;height:48px;border-radius:16px}.pastel-welcome-visual span{font-size:26px}.pastel-welcome-copy h2{font-size:18px}.pastel-welcome-copy p{font-size:11px}.pastel-welcome-kicker{font-size:9px;margin-bottom:5px}.pastel-welcome-actions{grid-column:1/-1;gap:7px}.pastel-welcome-actions .btn{flex:1;min-width:0;white-space:normal}.pastel-welcome-plant{right:8px;bottom:0;font-size:27px}.pastel-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-bottom:15px}.pastel-stat-card{min-height:125px;padding:13px;border-radius:17px}.pastel-stat-icon{width:30px;height:30px;margin-bottom:7px;border-radius:10px}.pastel-stat-card>strong{font-size:24px}.pastel-stat-card>small{font-size:9px}.page-head{gap:12px}}


/* Page-local form styles harmonized without changing their behavior. */
.content-area .settings-upgrade-form .settings-upgrade-card{border-color:#ebe7dd;border-radius:22px;box-shadow:0 8px 25px rgba(105,91,74,.065)}
.content-area .settings-upgrade-form .settings-upgrade-body{gap:16px}
.content-area .settings-upgrade-form .settings-upgrade-body label{color:#596057}
.content-area .settings-upgrade-form .settings-upgrade-body input,
.content-area .settings-upgrade-form .settings-upgrade-body textarea,
.content-area .settings-upgrade-form .settings-upgrade-body select{
  border-color:#e3e5dc;border-radius:13px;background:#fffefa;color:#41463f;
}
.content-area .settings-upgrade-form .settings-upgrade-body input:focus,
.content-area .settings-upgrade-form .settings-upgrade-body textarea:focus,
.content-area .settings-upgrade-form .settings-upgrade-body select:focus{border-color:#9acabb;box-shadow:0 0 0 3px rgba(147,197,180,.2)}
.content-area .settings-note{background:#fff5df;border-color:#f2dfaa;color:#9c7842;border-radius:14px}
.content-area .settings-save-row .btn.primary{background:linear-gradient(135deg,#ed947e,#e77d69)!important}
.content-area .perangkat-filter-form select,
.content-area .perangkat-filter-fields select,
.content-area .kelas-select-label select{
  border-color:#e3e5dc;border-radius:13px;background:#fffefa;color:#41463f;
}
.content-area .perangkat-table-note{border-bottom-color:#efede4}
.content-area .perangkat-card,.content-area .settings-upgrade-card{background:#fffefa}
.content-area .perangkat-table-note strong{color:#548f7c}
.content-area .legacy-perangkat-box{background:#fff8e8;border-color:#efc879}
.content-area .legacy-perangkat-item{color:#565a50}
.content-area .users-table .user-link{color:#3b433b}
.content-area .users-table td{vertical-align:middle}
.content-area .user-avatar-fallback{background:#e2efe5;color:#598e78;border:1px solid #cfe4d5}
.content-area .profile-cover{background:linear-gradient(120deg,#f2cfc3,#e9d7c8)}
.content-area .profile-card,.content-area .profile-right>.card{border-color:#ebe7dd}
.content-area .profile-progress strong{color:#609e89}
.content-area .profile-progress>span{background:#e7f4e9;color:#4d907a;border-color:#cbe6d4}
.content-area .contact-box{background:#f7f8f1;border-color:#e9e9de}
.content-area .training-item{background:#f5effa;border-color:#e7d9ef}
.content-area .record .icon{color:#72aa9b}
.content-area .btn.ghost:hover,.content-area .btn.soft:hover{background:#eaf4eb}
.sidebar-nav .nav-item:nth-child(1) .icon{color:#72a99a}
.sidebar-nav .nav-item:nth-child(2) .icon{color:#8ba8d2}
.sidebar-nav .nav-item:nth-child(3) .icon{color:#e49a7f}
.sidebar-nav .nav-item:nth-child(4) .icon{color:#9b93c4}
.sidebar-nav .nav-item:nth-child(5) .icon{color:#82a9c8}
.sidebar-nav .nav-item:nth-child(6) .icon{color:#75ad9a}
.sidebar-nav .nav-item:nth-child(7) .icon{color:#d99977}
.sidebar-nav .nav-item:nth-child(8) .icon{color:#a58cbe}
.sidebar-nav .nav-item:nth-child(9) .icon{color:#ce9e55}
.sidebar-nav .nav-item.active .icon{color:#609c87}
@media(max-width:900px){
  .content-area .settings-upgrade-form .settings-upgrade-body{padding:17px}
  .content-area .settings-upgrade-form .settings-upgrade-card{border-radius:19px}
}


/* Final shared pastel accents for tables, mobile navigation and status indicators. */
.progress{background:#ecece4}
.progress i{background:linear-gradient(90deg,#74b5a1,#9bcbb6)}
.check-dot.yes{background:#dcefe3;color:#4f8e76}
.check-dot.no{background:#f0f1ed;color:#b2bbb1}
.status.online{background:#87c5a7}
.mobile-nav-item{border-radius:13px;transition:background .18s ease,color .18s ease}
.mobile-nav-item.active{background:#e5f1e7;color:#518d78!important}
.mobile-nav-item:hover{background:#f4e7de;color:#c87b68}
@media(max-width:900px){
  .mobile-nav{background:rgba(255,254,250,.96);border-top:1px solid #e7e4db;box-shadow:0 -8px 24px rgba(100,91,75,.08);backdrop-filter:blur(14px)}
  .mobile-nav-item{padding:7px 4px}
}


/* Dashboard P1–P13 spoiler: show detail cards only for the selected teacher. */
.dashboard-monitor-card #guruTable{width:100%;min-width:760px;table-layout:fixed}
.dashboard-monitor-card #guruTable>tbody>tr[hidden]{display:none!important}
.dashboard-monitor-card #guruTable .dashboard-progress-total-cell{gap:5px;min-width:0}
.dashboard-monitor-card #guruTable .dashboard-total-progress-trigger{
  display:flex;flex-direction:column;align-items:center;gap:4px;
  border:0;padding:0;background:transparent;color:inherit;font:inherit;cursor:pointer;
  text-decoration:none;white-space:normal;
}
.dashboard-monitor-card #guruTable .dashboard-total-progress-trigger>span{line-height:1.2}
.dashboard-monitor-card #guruTable .dashboard-progress-disclosure{
  display:inline-flex;align-items:center;gap:3px;color:#6e9f8b;font-size:9px;font-weight:800;line-height:1.2;
}
.dashboard-monitor-card #guruTable .dashboard-progress-disclosure span{font-size:12px}
.dashboard-monitor-card #guruTable .dashboard-total-progress-trigger:hover .dashboard-progress-disclosure{text-decoration:underline;text-underline-offset:2px}
.dashboard-monitor-card #guruTable .dashboard-total-progress-trigger:focus-visible,
.dashboard-monitor-card #guruTable .dashboard-total-documents-trigger:focus-visible,
.dashboard-progress-details-close:focus-visible{outline:2px solid #8fc7b3;outline-offset:3px}
.dashboard-monitor-card #guruTable .dashboard-total-documents-trigger{
  display:inline-flex;align-items:center;justify-content:center;gap:4px;
  border:1px solid #e7e6dc;border-radius:9px;background:#fffefa;color:#7f8f83;
  padding:4px 7px;font-size:9px;font-weight:700;cursor:pointer;
}
.dashboard-monitor-card #guruTable .dashboard-total-documents-trigger .icon{width:12px;height:12px}
.dashboard-monitor-card #guruTable .dashboard-total-documents-trigger:hover{background:#e8f3e9;color:#518f7b;border-color:#d0e5d4}
.dashboard-monitor-card #guruTable .dashboard-progress-details-row>td{padding:10px 12px!important;background:#f7f7ef!important;border-bottom-color:#e8e8dd}
.dashboard-progress-details{padding:14px;border:1px solid #e5e5d9;border-radius:17px;background:#fcfbf5}
.dashboard-progress-details-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px;padding-bottom:10px;border-bottom:1px solid #ecebe1}
.dashboard-progress-details-head>div{min-width:0;display:flex;flex-direction:column;gap:3px}
.dashboard-progress-details-head strong{font-size:12px;color:#4a574c}
.dashboard-progress-details-head small{font-size:10px;color:#92978c;overflow-wrap:anywhere}
.dashboard-progress-details-close{flex:0 0 auto;border:1px solid #e7e5db;border-radius:10px;padding:6px 9px;background:#fffefa;color:#778274;font:inherit;font-size:10px;font-weight:800;cursor:pointer}
.dashboard-progress-details-close:hover{background:#f7e9e1;border-color:#f1d5c9;color:#b87562}
.dashboard-progress-details-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.dashboard-detail-item{min-width:0;display:flex;flex-direction:column;align-items:stretch;gap:10px;padding:12px;border:1px solid #eae9df;border-radius:14px;background:#fffefa}
.dashboard-detail-item-general{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center}
.dashboard-detail-item-title{display:flex;align-items:center;gap:8px;min-width:0}
.dashboard-detail-item-title>div{display:flex;flex-direction:column;gap:3px;min-width:0}
.dashboard-detail-item-title strong{font-size:10px;line-height:1.3;color:#51594f;overflow-wrap:anywhere}
.dashboard-detail-item-title small{font-size:9px;line-height:1.3;color:#9a9d92}
.dashboard-detail-code{display:grid;place-items:center;flex:0 0 30px;height:28px;border-radius:9px;background:#e7f2e8;color:#65957f;font-size:10px;font-weight:900}
.dashboard-detail-check{width:27px;height:27px;justify-self:end}
.dashboard-detail-mapel-list{display:flex;flex-direction:column;gap:5px;min-width:0}
.dashboard-detail-mapel-list .dashboard-mapel-progress{justify-content:space-between;gap:8px;max-width:none;min-height:27px;padding:6px 8px;border:1px solid rgba(122,157,135,.12);border-radius:9px;font-family:inherit;text-align:left}
.dashboard-detail-mapel-list .dashboard-mapel-progress span{min-width:0;overflow-wrap:anywhere;white-space:normal;font-size:9px;font-weight:700}
.dashboard-detail-mapel-list .dashboard-mapel-progress b{font-size:10px}
.dashboard-detail-item>.dashboard-subject-unassigned{align-self:flex-start}
@media(max-width:1100px){.dashboard-progress-details-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){
  .dashboard-monitor-card #guruTable{min-width:680px}
  .dashboard-progress-details{padding:10px;border-radius:14px}
  .dashboard-progress-details-grid{grid-template-columns:minmax(0,1fr);gap:8px}
  .dashboard-detail-item{padding:10px;border-radius:12px}
  .dashboard-detail-item-general{grid-template-columns:minmax(0,1fr) auto}
}

/* Attendance geolocation/check-in card, visible only to Guru and TU in its view. */
.attendance-checkin-card{
  display:flex;flex-direction:column;gap:15px;margin:0 0 18px;padding:20px 22px;
  border:1px solid #dce9dc;border-radius:22px;
  background:linear-gradient(115deg,#e8f2e8 0%,#f7f5e9 65%,#f8e8df 100%);
  box-shadow:0 8px 22px rgba(105,122,98,.07);
}
.attendance-checkin-heading{display:flex;align-items:center;gap:12px;min-width:0}
.attendance-checkin-icon{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border:1px solid #d6e7d8;border-radius:14px;background:#fffefa;color:#649d88}
.attendance-checkin-icon .icon{width:20px;height:20px}
.attendance-checkin-heading h2{margin:0;color:#485548;font-size:17px}
.attendance-checkin-heading p{margin:5px 0 0;color:#81877a;font-size:11px;line-height:1.5}
.attendance-checkin-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.attendance-location-status{display:flex;align-items:flex-start;gap:8px;min-width:0;flex:1;color:#858a7d;font-size:12px;line-height:1.5}
.attendance-location-status:before{content:"";display:block;flex:0 0 9px;width:9px;height:9px;margin-top:4px;border-radius:50%;background:#c8ba89}
.attendance-location-status[data-state="inside"]{color:#4f896f}
.attendance-location-status[data-state="inside"]:before{background:#75b69a}
.attendance-location-status[data-state="outside"],.attendance-location-status[data-state="denied"]{color:#b86c5e}
.attendance-location-status[data-state="outside"]:before,.attendance-location-status[data-state="denied"]:before{background:#df8a77}
.attendance-checkin-button{min-width:185px}
.attendance-checkin-button:disabled{cursor:not-allowed;opacity:.72;box-shadow:none}
.attendance-checkin-note{color:#96998e;font-size:10px;line-height:1.5}
@media(max-width:600px){
  .attendance-checkin-card{padding:15px;border-radius:18px}
  .attendance-checkin-actions{align-items:stretch;flex-direction:column}
  .attendance-checkin-button{width:100%}
  .attendance-checkin-heading h2{font-size:15px}
}


/* Horizontal P1–P13 spoiler: restore the original component columns on demand. */
.dashboard-monitor-card .table-wrap{overflow-x:auto;overscroll-behavior-x:contain}
.dashboard-monitor-card #guruTable.dashboard-spoiler-table{width:100%;min-width:760px;table-layout:fixed}
.dashboard-monitor-card #guruTable.dashboard-spoiler-table col:nth-child(n+4),
.dashboard-monitor-card #guruTable.dashboard-spoiler-table th:nth-child(n+4),
.dashboard-monitor-card #guruTable.dashboard-spoiler-table td:nth-child(n+4){display:none}
.dashboard-monitor-card #guruTable.dashboard-spoiler-table col:nth-child(1){width:220px}
.dashboard-monitor-card #guruTable.dashboard-spoiler-table col:nth-child(2){width:130px}
.dashboard-monitor-card #guruTable.dashboard-spoiler-table col:nth-child(3){width:88px}
.dashboard-monitor-card #guruTable.dashboard-spoiler-table.dashboard-progress-open{width:max-content;min-width:1070px}
.dashboard-monitor-card #guruTable.dashboard-spoiler-table.dashboard-progress-open col:nth-child(n+4){display:table-column}
.dashboard-monitor-card #guruTable.dashboard-spoiler-table.dashboard-progress-open th:nth-child(n+4),
.dashboard-monitor-card #guruTable.dashboard-spoiler-table.dashboard-progress-open td:nth-child(n+4){display:table-cell}
.dashboard-monitor-card #guruTable.dashboard-spoiler-table.dashboard-progress-open col:nth-child(n+4){width:48px}
.dashboard-monitor-card #guruTable.dashboard-spoiler-table.dashboard-progress-open col:nth-child(4),
.dashboard-monitor-card #guruTable.dashboard-spoiler-table.dashboard-progress-open col:nth-child(5){width:38px}
.dashboard-monitor-card #guruTable.dashboard-spoiler-table tbody tr[data-progress-expanded="false"] td:nth-child(n+4){padding-left:0!important;padding-right:0!important}
.dashboard-monitor-card #guruTable.dashboard-spoiler-table tbody tr[data-progress-expanded="false"] td:nth-child(n+4)>*{display:none!important}
.dashboard-monitor-card #guruTable.dashboard-spoiler-table.dashboard-progress-open th:nth-child(n+4){min-width:38px;padding-left:3px;padding-right:3px}
.dashboard-monitor-card #guruTable .dashboard-progress-total-cell{gap:5px;min-width:0}
.dashboard-monitor-card #guruTable .dashboard-total-progress-trigger{
  display:flex;flex-direction:column;align-items:center;gap:4px;
  border:0;padding:0;background:transparent;color:inherit;font:inherit;cursor:pointer;
  text-decoration:none;white-space:normal;
}
.dashboard-monitor-card #guruTable .dashboard-total-progress-trigger>span{line-height:1.2}
.dashboard-monitor-card #guruTable .dashboard-progress-disclosure{display:inline-flex;align-items:center;gap:3px;color:#6e9f8b;font-size:9px;font-weight:800;line-height:1.2}
.dashboard-monitor-card #guruTable .dashboard-progress-disclosure span{font-size:12px}
.dashboard-monitor-card #guruTable .dashboard-total-progress-trigger:hover .dashboard-progress-disclosure{text-decoration:underline;text-underline-offset:2px}
.dashboard-monitor-card #guruTable .dashboard-total-progress-trigger:focus-visible{outline:2px solid #8fc7b3;outline-offset:3px}
.dashboard-monitor-card #guruTable .dashboard-total-documents-trigger{
  display:inline-flex;align-items:center;justify-content:center;gap:4px;
  border:1px solid #e7e6dc;border-radius:9px;background:#fffefa;color:#7f8f83;
  padding:4px 7px;font-size:9px;font-weight:700;cursor:pointer;
}
.dashboard-monitor-card #guruTable .dashboard-total-documents-trigger .icon{width:12px;height:12px}
.dashboard-monitor-card #guruTable .dashboard-total-documents-trigger:hover{background:#e8f3e9;color:#518f7b;border-color:#d0e5d4}
.dashboard-monitor-card #guruTable .dashboard-spoiler-cell .dashboard-mapel-progress-list{max-width:44px;gap:2px}
.dashboard-monitor-card #guruTable .dashboard-spoiler-cell .dashboard-mapel-progress{padding:3px 1px;min-height:19px;font-size:10px}
.dashboard-monitor-card #guruTable .dashboard-spoiler-cell .dashboard-mapel-progress b{font-size:10px}
@media(max-width:700px){
  .dashboard-monitor-card #guruTable.dashboard-spoiler-table.dashboard-progress-open{min-width:1050px}
  .dashboard-monitor-card #guruTable.dashboard-spoiler-table col:nth-child(1){width:190px}
  .dashboard-monitor-card #guruTable.dashboard-spoiler-table col:nth-child(2){width:120px}
  .dashboard-monitor-card #guruTable.dashboard-spoiler-table col:nth-child(3){width:88px}
}


/* Final alignment for the collapsed Dashboard and numeric-only progress trigger. */
.dashboard-monitor-card #guruTable.dashboard-spoiler-table{width:100%;min-width:760px;table-layout:fixed}
.dashboard-monitor-card #guruTable.dashboard-spoiler-table col:nth-child(1){width:220px!important}
.dashboard-monitor-card #guruTable.dashboard-spoiler-table col:nth-child(2){width:130px!important}
.dashboard-monitor-card #guruTable.dashboard-spoiler-table col:nth-child(3){width:88px!important}
.dashboard-monitor-card #guruTable.dashboard-spoiler-table col.dashboard-spoiler-col,
.dashboard-monitor-card #guruTable.dashboard-spoiler-table th.dashboard-spoiler-column,
.dashboard-monitor-card #guruTable.dashboard-spoiler-table td.dashboard-spoiler-cell{display:none!important}
.dashboard-monitor-card #guruTable.dashboard-spoiler-table col.dashboard-spoiler-filler{display:table-column!important;width:auto!important}
.dashboard-monitor-card #guruTable.dashboard-spoiler-table th.dashboard-spoiler-filler,
.dashboard-monitor-card #guruTable.dashboard-spoiler-table td.dashboard-spoiler-filler{display:table-cell!important;padding-left:0!important;padding-right:0!important;border-left-color:transparent;border-right-color:transparent}
.dashboard-monitor-card #guruTable.dashboard-spoiler-table.dashboard-progress-open{width:max-content;min-width:1042px}
.dashboard-monitor-card #guruTable.dashboard-spoiler-table.dashboard-progress-open col.dashboard-spoiler-col{display:table-column!important}
.dashboard-monitor-card #guruTable.dashboard-spoiler-table.dashboard-progress-open th.dashboard-spoiler-column,
.dashboard-monitor-card #guruTable.dashboard-spoiler-table.dashboard-progress-open td.dashboard-spoiler-cell{display:table-cell!important}
.dashboard-monitor-card #guruTable.dashboard-spoiler-table.dashboard-progress-open col.dashboard-spoiler-filler,
.dashboard-monitor-card #guruTable.dashboard-spoiler-table.dashboard-progress-open th.dashboard-spoiler-filler,
.dashboard-monitor-card #guruTable.dashboard-spoiler-table.dashboard-progress-open td.dashboard-spoiler-filler{display:none!important}
.dashboard-monitor-card #guruTable.dashboard-spoiler-table.dashboard-progress-open col:nth-child(1){width:220px!important}
.dashboard-monitor-card #guruTable.dashboard-spoiler-table.dashboard-progress-open col:nth-child(2){width:130px!important}
.dashboard-monitor-card #guruTable.dashboard-spoiler-table.dashboard-progress-open col:nth-child(3){width:88px!important}
.dashboard-monitor-card #guruTable .dashboard-total-progress-trigger{display:inline-block;padding:2px 0;border:0;background:transparent;font:inherit;font-weight:800;line-height:1.35;cursor:pointer;text-align:center;text-decoration:none!important;white-space:nowrap}
.dashboard-monitor-card #guruTable .dashboard-total-progress-trigger:hover{filter:brightness(.92);text-decoration:none!important}
.dashboard-monitor-card #guruTable .dashboard-total-progress-trigger:focus-visible{outline:2px solid #8fc7b3;outline-offset:3px;border-radius:4px}
.dashboard-monitor-card #guruTable .dashboard-progress-total-cell{display:flex;align-items:center;justify-content:center;gap:0}
.dashboard-monitor-card #guruTable .dashboard-progress-total-cell>strong{margin:0}
@media(max-width:700px){
  .dashboard-monitor-card #guruTable.dashboard-spoiler-table{min-width:760px}
  .dashboard-monitor-card #guruTable.dashboard-spoiler-table col:nth-child(1){width:190px!important}
  .dashboard-monitor-card #guruTable.dashboard-spoiler-table col:nth-child(2){width:120px!important}
  .dashboard-monitor-card #guruTable.dashboard-spoiler-table col:nth-child(3){width:88px!important}
  .dashboard-monitor-card #guruTable.dashboard-spoiler-table.dashboard-progress-open{min-width:1022px}
}


/* Username/password login and Admin credential-management UI. */
.login-divider{display:flex;align-items:center;gap:10px;margin:19px 0 14px;color:#9a9c91;font-size:9px;font-weight:900;letter-spacing:.09em}
.login-divider:before,.login-divider:after{content:"";height:1px;flex:1;background:#e9e6dc}
.login-divider span{white-space:nowrap}
.local-login-form{display:flex;flex-direction:column;gap:11px;text-align:left}
.local-login-form label{display:flex;flex-direction:column;gap:6px;color:#5d655b;font-size:11px;font-weight:800}
.local-login-form input{width:100%;min-height:42px;padding:10px 12px;border:1px solid #e3e5dc;border-radius:12px;background:#fffefa;color:#41463f;font:inherit;font-size:12px}
.local-login-form input:focus{border-color:#9acabb;box-shadow:0 0 0 3px rgba(147,197,180,.2);outline:none}
.local-login-submit{width:100%;justify-content:center;margin-top:2px}
.local-login-submit .icon{width:15px;height:15px}
.local-login-help{margin:0;color:#96998f;font-size:10px;line-height:1.5;text-align:center}
.local-account-cell{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:0}
.local-account-cell>strong{max-width:180px;overflow-wrap:anywhere;color:#485348;font-size:11px}
.local-account-status{display:inline-flex;align-items:center;padding:3px 7px;border-radius:999px;font-size:9px;font-weight:800;line-height:1.25}
.local-account-status.active{background:#e5f3e8;color:#4d8b70;border:1px solid #cfe7d5}
.local-account-status.inactive{background:#f3f1e9;color:#8a8c80;border:1px solid #e7e4d9}
#localLoginModal .modal-box{max-width:460px}
#localLoginModal .form-stack{gap:12px}
#localLoginModal .form-stack>label{color:#566054}
#localLoginModal input{border:1px solid #e3e5dc;border-radius:12px;background:#fffefa}
#localLoginModal input:focus{border-color:#9acabb;box-shadow:0 0 0 3px rgba(147,197,180,.2)}
#localLoginModal .help{color:#8a9085;font-size:10px;line-height:1.5}
@media(max-width:700px){
  .local-login-form{gap:10px}
  .login-divider{font-size:8px;letter-spacing:.06em}
  .local-account-cell>strong{max-width:115px}
}

/* Four selectable themes share the same page structure and controls. */
body[data-theme="glassmorphism"]{--bg:#eaf2f4;--text:#172b3a;--muted:#607585;--border:rgba(255,255,255,.72);--green:#087f8c;--green2:#075e69;--green3:#31aeb4;--teal:#147d8a;--shadow:0 12px 34px rgba(23,52,66,.12);--radius:20px;background:radial-gradient(ellipse at 10% 0%,#d6eff2 0,transparent 42%),linear-gradient(135deg,#edf3f7,#dce8ef)}
body[data-theme="glassmorphism"] .topbar,body[data-theme="glassmorphism"] .card,body[data-theme="glassmorphism"] .modal-box{backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
body[data-theme="glassmorphism"] .topbar,body[data-theme="glassmorphism"] .card{background:rgba(255,255,255,.76);border-color:rgba(255,255,255,.82)}
body[data-theme="glassmorphism"] .sidebar{background:linear-gradient(160deg,#087f8c,#254b71)}
body[data-theme="neumorphism"]{--bg:#e7e9ee;--text:#343943;--muted:#727987;--border:#d7dae1;--green:#526f9c;--green2:#405a83;--green3:#7f9ac3;--teal:#526f9c;--shadow:8px 8px 18px #c9cbd2,-8px -8px 18px #fff;--radius:20px;background:#e7e9ee}
body[data-theme="neumorphism"] .card,body[data-theme="neumorphism"] .topbar{background:#e7e9ee;border:0;box-shadow:var(--shadow)}
body[data-theme="neumorphism"] .sidebar{background:linear-gradient(180deg,#526f9c,#405a83)}
body[data-theme="claymorphism"]{--bg:#fff4ec;--text:#473438;--muted:#886f70;--border:#fff;--green:#d66e59;--green2:#b95549;--green3:#f09d79;--teal:#bd6270;--shadow:0 14px 26px rgba(173,92,83,.16),inset 0 2px 0 rgba(255,255,255,.85);--radius:24px;background:linear-gradient(135deg,#fff5eb,#fce5e3)}
body[data-theme="claymorphism"] .card,body[data-theme="claymorphism"] .topbar{background:#fff9f4;border-color:#fff;box-shadow:var(--shadow)}
body[data-theme="claymorphism"] .sidebar{background:linear-gradient(160deg,#d66e59,#a85373)}
body[data-theme="neo-brutalism"]{--bg:#fff9df;--text:#171717;--muted:#48433a;--border:#171717;--green:#b7f34b;--green2:#93cc31;--green3:#d2ff69;--teal:#4edbd0;--shadow:5px 5px 0 #171717;--radius:4px;background:#fff9df}
body[data-theme="neo-brutalism"] .card,body[data-theme="neo-brutalism"] .topbar{background:#fffef6;border:2px solid #171717;box-shadow:var(--shadow)}
body[data-theme="neo-brutalism"] .sidebar{background:#b7f34b;color:#171717;border-right:2px solid #171717}
body[data-theme="neo-brutalism"] .sidebar .nav-item{color:#171717}
body[data-theme="neo-brutalism"] .sidebar .nav-item.active{background:#4edbd0;border:2px solid #171717;color:#171717}
body[data-theme="neo-brutalism"] .btn,body[data-theme="neo-brutalism"] input,body[data-theme="neo-brutalism"] select,body[data-theme="neo-brutalism"] textarea{border:2px solid #171717;border-radius:4px}
body[data-theme="neo-brutalism"] .btn.primary{background:#4edbd0;color:#171717;border-color:#171717}
body[data-theme="neo-brutalism"] .settings-note{border:2px solid #171717;border-radius:4px}
body[data-theme] :focus-visible{outline-color:var(--green);outline-offset:3px}
@media(prefers-reduced-motion:reduce){body[data-theme] *,body[data-theme] *::before,body[data-theme] *::after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important}}


/* Keep navigation labels readable against every colored sidebar. */
body[data-theme]:not([data-theme="neo-brutalism"]) .sidebar .nav-item:not(.active){color:#fff!important}
body[data-theme]:not([data-theme="neo-brutalism"]) .sidebar .nav-item:not(.active):hover{color:#fff!important}
body[data-theme]:not([data-theme="neo-brutalism"]) .sidebar .nav-item.active{background:rgba(255,255,255,.18);border-left-color:#fff}
body[data-theme="claymorphism"] .sidebar{background:linear-gradient(180deg,#91483f,#68394f)}
body[data-theme="claymorphism"] .sidebar .nav-item{color:#fff!important}
body[data-theme="claymorphism"] .sidebar .nav-item.active{background:rgba(255,255,255,.2)}
body[data-theme="glassmorphism"] .sidebar .nav-item:focus-visible,
body[data-theme="neumorphism"] .sidebar .nav-item:focus-visible,
body[data-theme="claymorphism"] .sidebar .nav-item:focus-visible{outline:2px solid #fff;outline-offset:2px}
.color-mode-switch{display:inline-flex;align-items:center;gap:3px;flex:0 0 auto;margin-left:10px;padding:3px;border:1px solid var(--border);border-radius:13px;background:rgba(127,127,127,.08)}
.color-mode-option{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:36px;padding:7px 10px;border:0;border-radius:10px;background:transparent;color:var(--text);font:700 12px/1 inherit;cursor:pointer;white-space:nowrap}
.color-mode-option .icon{width:16px;height:16px}
.color-mode-option[aria-pressed="true"]{background:var(--green);color:#fff;box-shadow:0 2px 7px rgba(15,23,42,.14)}
.color-mode-option:focus-visible{outline:2px solid var(--green);outline-offset:2px}
@media(max-width:600px){.color-mode-switch{margin-left:5px}.color-mode-option{width:36px;min-width:36px;padding:7px}.color-mode-option span{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}}
/* Dark appearance is an independent per-browser preference layered over the selected visual theme. */
html[data-color-mode="dark"] body{--bg:#111827;--text:#e5edf6;--muted:#a8b5c5;--border:#344154;background:#0b1220;color:#e5edf6;color-scheme:dark}
html[data-color-mode="dark"] .main-area{background:#0b1220}
html[data-color-mode="dark"] .topbar{background:#151e2d!important;border-color:#344154;color:#e5edf6;box-shadow:0 3px 18px rgba(0,0,0,.28)}
html[data-color-mode="dark"] .content-area{color:#e5edf6}
html[data-color-mode="dark"] .content-area h1,html[data-color-mode="dark"] .content-area h2,html[data-color-mode="dark"] .content-area h3,
html[data-color-mode="dark"] .content-area label,html[data-color-mode="dark"] .content-area strong{color:#e5edf6}
html[data-color-mode="dark"] .content-area p,html[data-color-mode="dark"] .content-area small{color:#b4c0ce}
html[data-color-mode="dark"] .card,html[data-color-mode="dark"] .modal-box,html[data-color-mode="dark"] .dropdown-menu{background:#182334!important;border-color:#344154!important;color:#e5edf6;box-shadow:0 10px 28px rgba(0,0,0,.24)}
html[data-color-mode="dark"] .card-head{border-color:#344154}
html[data-color-mode="dark"] .btn.ghost,html[data-color-mode="dark"] .btn:not(.primary):not(.danger-solid){background:#202d40;color:#e5edf6;border-color:#46566b}
html[data-color-mode="dark"] input,html[data-color-mode="dark"] select,html[data-color-mode="dark"] textarea,
html[data-color-mode="dark"] .compact-search label,html[data-color-mode="dark"] .file-search label{background:#0f1724!important;color:#e5edf6!important;border-color:#46566b!important}
html[data-color-mode="dark"] input::placeholder,html[data-color-mode="dark"] textarea::placeholder{color:#93a3b7}
html[data-color-mode="dark"] .data-table th{background:#223146;color:#d4deea;border-color:#3a4a60}
html[data-color-mode="dark"] .data-table td{color:#e5edf6;border-color:#344154}
html[data-color-mode="dark"] .data-table tbody tr:hover{background:#223146}
html[data-color-mode="dark"] .flash.success{background:#12372e;color:#a7f3d0;border-color:#21634f}
html[data-color-mode="dark"] .flash.error{background:#3b2026;color:#fecaca;border-color:#71313c}
html[data-color-mode="dark"] .sidebar{background:linear-gradient(180deg,#172336,#0e1725)!important;border-right:1px solid #344154}
html[data-color-mode="dark"] .sidebar .brand-box,html[data-color-mode="dark"] .sidebar .sidebar-bottom{background:#101a29!important;border-color:#344154}
html[data-color-mode="dark"] .sidebar .nav-item,html[data-color-mode="dark"] .sidebar .nav-item:hover,
html[data-color-mode="dark"] .sidebar .nav-item.active{color:#f8fafc!important}
html[data-color-mode="dark"] .sidebar .nav-item.active{background:#29394e;border-left-color:#7dd3c7}
html[data-color-mode="dark"] .user-chip-text strong{color:#e5edf6!important}
html[data-color-mode="dark"] .header-app-name{color:#7dd3c7!important}
html[data-color-mode="dark"] .header-school-text,html[data-color-mode="dark"] .header-long-text{color:#b7c4d4!important}
html[data-color-mode="dark"] .footer-pill{background:#182334;color:#b4c0ce;border-color:#344154}
html[data-color-mode="dark"] .settings-note{background:#392f18;color:#f6d98b;border-color:#66542a}
html[data-color-mode="dark"] .mobile-nav{background:#121c2b;border-color:#344154}
html[data-color-mode="dark"] .mobile-nav-item{color:#b4c0ce}
html[data-color-mode="dark"] .mobile-nav-item.active{color:#7dd3c7}


/* Active navigation needs to contrast with its light selected pill in light mode. */
body[data-theme="glassmorphism"] .sidebar .nav-item.active,
body[data-theme="neumorphism"] .sidebar .nav-item.active,
body[data-theme="claymorphism"] .sidebar .nav-item.active{color:#243b43!important;background:#f8fffe!important;border-left-color:#087f8c}
body[data-theme="neo-brutalism"] .sidebar .nav-item.active{color:#171717!important;background:#4edbd0!important}
html[data-color-mode="dark"] .sidebar .nav-item.active{color:#f8fafc!important;background:#29394e!important;border-left-color:#7dd3c7}

/* Darken the Dashboard's pastel blocks and set explicit text colors in dark mode. */
html[data-color-mode="dark"] .pastel-welcome{background:linear-gradient(112deg,#3a2928,#332827 56%,#3b2b2a);border-color:#62413a}
html[data-color-mode="dark"] .pastel-welcome-copy h2{color:#fff4ed!important}
html[data-color-mode="dark"] .pastel-welcome-copy p{color:#ead1c5!important}
html[data-color-mode="dark"] .pastel-welcome-kicker{background:#513a35;border-color:#755449;color:#f2c7a7}
html[data-color-mode="dark"] .pastel-stat-mint{background:linear-gradient(140deg,#18382f,#1d4438);color:#d3f4e6}
html[data-color-mode="dark"] .pastel-stat-peach{background:linear-gradient(140deg,#402b29,#4a302c);color:#ffe0d5}
html[data-color-mode="dark"] .pastel-stat-yellow{background:linear-gradient(140deg,#3c351f,#4a4024);color:#f7e8b2}
html[data-color-mode="dark"] .pastel-stat-blue{background:linear-gradient(140deg,#24334c,#2b3d59);color:#d8e7ff}
html[data-color-mode="dark"] .pastel-stat-label,html[data-color-mode="dark"] .pastel-stat-card>strong,
html[data-color-mode="dark"] .pastel-stat-card>small{color:inherit!important;opacity:1}
html[data-color-mode="dark"] .pastel-stat-icon{background:rgba(255,255,255,.12);box-shadow:none}
html[data-color-mode="dark"] .dashboard-year-filter{background:#182334!important;border-color:#344154!important}
html[data-color-mode="dark"] .dashboard-year-filter label{color:#d1dbea!important}
html[data-color-mode="dark"] .dashboard-year-filter select{background:#0f1724!important;color:#e5edf6!important;border-color:#46566b!important}
html[data-color-mode="dark"] .pastel-welcome-actions .pastel-btn-white{background:#283448!important;color:#f1f5f9!important;border-color:#536176!important}
html[data-color-mode="dark"] .dashboard-monitor-card{background:#182334;border-color:#344154}
html[data-color-mode="dark"] .dashboard-monitor-title{color:#e5edf6}
html[data-color-mode="dark"] .dashboard-monitor-head .card-head p{color:#b4c0ce}
