/* Triva v0.2.1 — clean, mobile-first design system */
:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#1b2940;background:#f6f8fc;font-synthesis:none;--ink:#1b2940;--muted:#6b7890;--blue:#255ac9;--border:#e5eaf2;--sidebar:#fff;--surface:#fff;--radius:16px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-width:320px}button,input,textarea,select{font:inherit}a{color:var(--blue);text-decoration:none}a:hover{text-decoration:none}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #8cb6ff;outline-offset:2px}.app-shell{display:flex;min-height:100vh}.sidebar{position:sticky;top:0;align-self:flex-start;width:248px;min-width:248px;height:100vh;display:flex;flex-direction:column;background:var(--sidebar);border-right:1px solid var(--border);padding:26px 15px 20px}.brand{display:flex;align-items:center;gap:11px;margin:0 9px 42px;color:#203d78;font-size:27px;font-weight:850;letter-spacing:-1.5px}.brand-mark{display:grid;place-items:center;width:36px;height:36px;border-radius:12px;background:var(--blue);color:white;font-size:25px;line-height:1}.brand-dot{color:#447de1}.nav-caption{padding:0 17px;margin-bottom:12px;font-size:10px;letter-spacing:1.4px;font-weight:800;color:#98a4b7}.nav{display:flex;flex-direction:column;gap:5px}.nav-link{display:flex;align-items:center;gap:12px;padding:12px 14px;color:#627087;border-radius:12px;font-size:14px;font-weight:650;transition:background .15s,color .15s}.nav-link svg{width:19px;height:19px;flex-shrink:0}.nav-link:hover{background:#f3f6fc;color:#1f4fb7}.nav-link.active{background:#eaf1ff;color:#275ac1}.logout-link{margin-top:12px;border-top:1px solid var(--border);border-radius:0;padding-top:18px}.sidebar-bottom{margin-top:auto;padding:14px 5px 0;border-top:1px solid var(--border)}.user-chip{display:flex;align-items:center;gap:10px;min-width:0}.avatar{width:35px;height:35px;flex:0 0 35px;display:grid;place-items:center;background:#edf2fc;color:#2859ba;border-radius:11px;font-weight:800}.user-details{min-width:0;display:flex;flex-direction:column;gap:2px}.user-details b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px}.user-details small{font-size:11px;color:var(--muted)}.sidebar-note{font-size:12px;color:var(--muted)}.app-body{flex:1;min-width:0;display:flex;flex-direction:column}.topbar{height:75px;background:rgba(255,255,255,.92);border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 clamp(20px,3.5vw,55px)}.topbar-title{display:flex;flex-direction:column;gap:3px;font-size:15px;font-weight:750}.topbar-eyebrow{font-size:10px;color:#9ba8bb;letter-spacing:1.3px;font-weight:800}.topbar-version{font-size:12px;color:#8391a4;border:1px solid var(--border);background:#fff;border-radius:50px;padding:6px 12px}.wrap{width:100%;max-width:1220px;padding:36px clamp(18px,3.5vw,55px) 60px;margin:0 auto;flex:1}.page-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:28px}.page-heading p{margin:7px 0 0}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:25px;margin-bottom:18px;box-shadow:0 7px 32px rgba(25,52,91,.035)}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr));gap:20px}.grid>.card{min-width:0}.card h2:first-child,.card h3:first-child{margin-top:0}h1{font-size:clamp(25px,3vw,34px);line-height:1.18;letter-spacing:-1.1px;margin:0 0 14px;font-weight:800}h2{font-size:19px;line-height:1.3;letter-spacing:-.4px;margin:0 0 16px;font-weight:750}h3{font-size:16px;line-height:1.4;margin:16px 0 10px}p{line-height:1.65}label{display:block;margin:18px 0 8px;font-weight:650;font-size:13px;color:#34445d}input:not([type=radio]):not([type=checkbox]),select,textarea{display:block;width:100%;min-height:44px;padding:12px 14px;background:#fff;border:1px solid #d9e1ec;border-radius:11px;color:var(--ink);font-size:14px}textarea{min-height:112px;resize:vertical}input::placeholder,textarea::placeholder{color:#9ca8b8}.btn,button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:43px;padding:11px 17px;margin:9px 5px 5px 0;border:1px solid transparent;border-radius:11px;background:var(--blue);color:white;font-weight:700;font-size:13px;cursor:pointer;transition:background .15s,transform .15s}.btn:hover,button:hover{background:#1c479f;color:white}.btn:active,button:active{transform:translateY(1px)}.btn.secondary,button.secondary{background:#edf3ff;color:#2253b6}.btn.secondary:hover,button.secondary:hover{background:#dce9ff}.btn.danger,button.danger{background:#bf454e;color:#fff}.small,.muted{color:var(--muted);font-size:13px}.small{font-size:12px}.eyebrow{font-size:10px;letter-spacing:1.35px;font-weight:800;color:#6383b2;margin-bottom:10px}.notice,.error{padding:15px 17px;border-radius:12px;margin:15px 0;font-size:14px}.notice{background:#ecf5ff;border:1px solid #cee3fb;color:#244c81}.error{background:#fff0f0;border:1px solid #ffd4d4;color:#a73644}.pill{display:inline-flex;align-items:center;border-radius:50px;background:#eaf4ff;color:#285ba3;padding:4px 10px;font-size:11px;font-weight:700}.scroll{overflow-x:auto;max-width:100%}table{width:100%;border-collapse:collapse}th,td{text-align:left;border-bottom:1px solid #eef1f6;padding:15px 13px;vertical-align:middle;font-size:13px}th{font-size:11px;letter-spacing:.3px;color:#7d899c;font-weight:800;background:#fafbfd}tr:last-child td{border-bottom:0}.progress{height:9px;border-radius:20px;background:#e9edf5;overflow:hidden}.progress span{display:block;height:100%;background:#34a889;border-radius:20px}.empty-state{text-align:center;padding:45px 25px;grid-column:1/-1}.empty-state svg{width:32px;height:32px;color:#688acf;margin-bottom:12px}.empty-state h2{margin:0 0 6px}.empty-state p{margin:0}.card iframe{border:0;border-radius:12px;aspect-ratio:16/9;height:auto}.card a:not(.btn){font-weight:650}footer{text-align:center;color:#9aa6b7;font-size:11px;padding:20px;border-top:1px solid var(--border)}.guest .sidebar{width:225px;min-width:225px}.guest .wrap{display:flex;flex-direction:column;justify-content:center}.guest .wrap>.card{width:100%}@media(max-width:900px){.sidebar{width:205px;min-width:205px}.wrap{padding:26px 22px 50px}}@media(max-width:680px){.app-shell{display:block}.sidebar{position:relative;width:100%;height:auto;min-width:0;padding:11px 14px 0;border-right:0;border-bottom:1px solid var(--border)}.brand{margin:0 0 9px 2px;font-size:22px}.brand-mark{width:30px;height:30px;font-size:21px;border-radius:10px}.nav-caption,.sidebar-bottom{display:none}.nav{flex-direction:row;gap:5px;overflow-x:auto;padding-bottom:9px;scrollbar-width:none}.nav::-webkit-scrollbar{display:none}.nav-link{flex-shrink:0;gap:6px;white-space:nowrap;padding:9px 10px;font-size:12px}.nav-link svg{width:16px;height:16px}.logout-link{margin:0;border:0;padding:9px 10px}.topbar{height:57px;padding:0 18px}.topbar-title{font-size:13px}.topbar-eyebrow{font-size:9px}.wrap{padding:25px 15px 35px}.page-heading{margin-bottom:20px}.card{padding:19px;border-radius:14px}.grid{gap:12px}.btn,button{min-height:44px}h1{font-size:26px}th,td{padding:12px 10px}.guest .sidebar{width:100%;min-width:0}.guest .wrap>.card{max-width:100%!important}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;scroll-behavior:auto!important}}

/* 0.2.2 deployment review */
.release-notes{background:#f5f8fc;border:1px solid #e0e8f3;border-radius:12px;padding:18px;line-height:1.7;white-space:normal;font-size:14px;margin:16px 0;overflow-wrap:anywhere}.deploy-check{display:flex;align-items:center;gap:11px;margin:17px 0}.deploy-check input{width:18px;height:18px;accent-color:#255ac9;flex:none}

/* Triva v0.4 reporting charts (CSS-native, no external chart dependency) */
.report-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:20px 0}.report-number{font-size:32px;font-weight:760;letter-spacing:-1.2px;margin-top:7px}.report-columns{display:grid;grid-template-columns:1fr 1.4fr;gap:16px;margin:18px 0}.report-bar-row{margin:18px 0}.report-bar-label{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:7px 0}.report-track,.stacked-bar,.mini-progress{display:flex;overflow:hidden;background:#edf0f5;border-radius:20px;height:11px}.report-track span,.stacked-bar span,.mini-progress span{display:block;height:100%;transition:width .25s ease}.report-green{background:#22a66a}.report-blue{background:#527be8}.report-gray{background:#a8b5c8}.course-report{margin:17px 0 25px}.stacked-bar{height:14px}.mini-progress{min-width:72px;max-width:130px;height:7px;margin-bottom:5px}.mini-progress span{background:#527be8} .report-columns .card{min-width:0}@media(max-width:850px){.report-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.report-columns{grid-template-columns:1fr}}

.course-comparison{display:grid;gap:20px;margin-top:18px}.compare-title{display:flex;justify-content:space-between;gap:12px;margin-bottom:8px;font-weight:650}.compare-track{height:16px;background:#edf1f7;border-radius:99px;overflow:hidden}.compare-track span{height:100%;background:#5379d9;display:block;border-radius:99px}.compare-row>.muted{margin-top:6px}
