:root{font-family:system-ui,Avenir,Helvetica,Arial,sans-serif;color:#213547;background:#f6f7fb;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*{box-sizing:border-box}html,body{min-width:320px;min-height:100vh;margin:0}body{background:#f6f7fb}a{color:inherit}#app,.app{min-height:100vh}.app{display:flex;flex-direction:column}.body{flex:1;display:grid;grid-template-columns:auto 1fr;min-height:0}.content{padding:18px;overflow:auto}.topbar{position:sticky;top:0;z-index:10;display:flex;align-items:center;gap:12px;padding:10px 14px;border-bottom:1px solid #e8e8e8;background:#fff}.topbarRight{margin-left:auto;display:flex;align-items:center;gap:8px}.brand{display:flex;flex-direction:column;line-height:1.1}.brandTitle{font-weight:800}.brandSub{font-size:12px;color:#666}.sidebar{width:260px;padding:12px;overflow:hidden;border-right:1px solid #e8e8e8;transition:width .18s ease,padding .18s ease}.sidebar.closed{width:0;padding:12px 0;border-right:none}.nav{min-width:220px;display:flex;flex-direction:column;gap:6px}.navItem{display:block;padding:10px;border-radius:12px;text-decoration:none;color:#111;background:#fafafa;border:1px solid #f0f0f0}.navItem:hover{background:#f4f4f4}.navLabel{margin-top:8px;padding:0 6px;font-size:12px;color:#777}.divider{height:1px;margin:10px 0;background:#eee}.hero{min-height:calc(100vh - 37px);display:flex;align-items:center;justify-content:center;padding:32px;background-image:linear-gradient(#00000094,#00000094),url(/assets/memorix-hero-CEBYQyF6.jpg);background-size:cover;background-position:center}.heroContent{width:min(760px,100%);padding:48px;border-radius:28px;text-align:center;color:#fff;background:#00000059;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);box-shadow:0 24px 80px #00000059}.heroContent h1{margin:0 0 20px;font-size:clamp(2.4rem,6vw,5rem);line-height:1}.heroContent p{margin:0 0 32px;font-size:1.2rem;line-height:1.7}.heroOverlay,.heroImage,.heroCard{display:none}.btn,.iconBtn{border:1px solid rgba(0,0,0,.14);background:#fff;color:inherit;cursor:pointer;text-decoration:none;font:inherit}.btn{display:inline-flex;align-items:center;justify-content:center;padding:10px 14px;border-radius:12px;font-weight:600}.btn:hover,.iconBtn:hover{background:#f6f6f6}.btn.primary{background:#aa6783;color:#fff;border-color:#aa6783}.btn.secondary{background:#ffffff2e;color:#fff;border-color:#ffffff80}.btn.danger{color:#b42318}.btn:disabled{opacity:.6;cursor:not-allowed}.iconBtn{padding:8px 10px;border-radius:10px}.page{padding:16px;display:flex;flex-direction:column;gap:12px}.head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.head h1{margin:0 0 6px}.layout{display:flex;flex-direction:column;gap:16px}.actions,.inlineBtns,.pager{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.actions{justify-content:center}.muted{color:#666;opacity:.85}.mutedSmall{color:#666;font-size:13px}.card,.authCard,.deck{border:1px solid #eee;border-radius:18px;padding:16px;background:#fff;box-shadow:0 10px 28px #0000000f}.cardInner{border:1px solid rgba(0,0,0,.08);border-radius:14px;padding:14px;background:#00000005}.cardTitle{margin-bottom:10px;font-weight:700}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:14px}.categories_grid{display:grid;grid-template-columns:repeat(1,minmax(0,1fr));gap:14px;margin-top:14px}.deck{min-height:170px;display:flex;flex-direction:column;justify-content:space-between;gap:10px}.authPage{display:grid;place-items:start center;padding:18px}.authCard{width:min(520px,100%)}.form,.formGrid{display:grid;gap:12px}.formGrid{grid-template-columns:repeat(2,minmax(0,1fr))}.label,.field{display:flex;flex-direction:column;gap:6px;font-size:14px}.fieldWide{grid-column:span 2}.input{padding:10px 12px;border-radius:12px;border:1px solid #e6e6e6;outline:none;font:inherit}.input:focus{border-color:#7c3aed}.textarea{min-height:90px;resize:vertical}.error{color:#b42318;margin-top:8px}.sectionHead,.flashcardTop,.titleRow,.results .row.space{display:flex;align-items:center;justify-content:space-between;gap:12px}.sectionHead,.results .row.space{margin-bottom:12px}.flashcardList{display:flex;flex-direction:column;gap:12px}.flashcardTop h3,.title{margin:0}.title{font-size:16px}.kv{display:grid;grid-template-columns:100px 1fr;gap:8px 12px}.k{color:#666}.v{font-weight:600}.meta{display:flex;flex-wrap:wrap;gap:6px}.pill,.chip{border-radius:999px;font-size:12px}.pill{padding:3px 8px;border:1px solid rgba(0,0,0,.14)}.chip{padding:4px 8px;background:#0000000d}.empty,.emptyBlock{padding:18px;text-align:center}.success{color:#067647;background:#ecfdf3;border:1px solid #abefc6;padding:10px 12px;border-radius:12px}.filters .row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.dashboard{gap:18px}.dashboardHero{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:28px;background:radial-gradient(circle at top left,rgba(124,58,237,.16),transparent 32%),#fff}.dashboardHero h1{margin:0 0 8px;font-size:clamp(2rem,4vw,3.5rem)}.eyebrow{margin:0 0 6px;color:#c17699;font-weight:800;text-transform:uppercase;letter-spacing:.08em;font-size:12px}.dashboardGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.dashboardCard{min-height:220px}.quickActions,.miniList,.categoryChips{display:grid;gap:10px}.quickAction,.miniItem{display:grid;gap:4px;padding:14px;border-radius:14px;border:1px solid #eee;text-decoration:none;background:#fafafa}.quickAction:hover,.miniItem:hover{background:#f3f0ff;border-color:#ddd6fe}.quickAction span,.miniItem span{color:#666;font-size:14px}.categoryChips{display:flex;flex-wrap:wrap}.categoryChips .chip{text-decoration:none}.table-tools{margin-bottom:1rem}.search-input{width:100%;max-width:420px;padding:.75rem .9rem;border:1px solid #d1d5db;border-radius:10px;font:inherit}.users-table{width:100%;border-collapse:separate;border-spacing:0 .75rem}.users-table th,.users-table td{text-align:left;padding:.5rem .75rem;vertical-align:middle}.users-table th{color:#666;font-weight:700}.users-table tbody tr{background:#f9fafb}.users-table tbody td:first-child{border-top-left-radius:10px;border-bottom-left-radius:10px}.users-table tbody td:last-child{border-top-right-radius:10px;border-bottom-right-radius:10px}.pill{padding:.25rem .55rem;border-radius:999px;font-size:.85rem;background:#e5e7eb}.pill.active{background:#dcfce7;color:#166534}.pill.suspended{background:#fee2e2;color:#991b1b}.study-header{display:flex;align-items:center;justify-content:space-between;padding:auto 0;margin-bottom:.75rem;top:0;z-index:10}.study-header h1{font-size:1.25rem;margin:0}.study-header .muted{margin:0;font-size:.9rem}.back{font-size:.9rem;text-decoration:none;color:#4f46e5}.study-page{min-height:100vh;padding:1rem;box-sizing:border-box}.study-layout{height:calc(100vh - 120px);max-width:900px;margin:0 auto;display:flex;flex-direction:column;gap:1rem}.study-card{flex:1;display:flex;flex-direction:column;justify-content:space-between;overflow:hidden}.flash-section,.hidden-back{flex:1;display:flex;flex-direction:column;justify-content:center;min-height:0}.content{font-size:clamp(1rem,2vw,1.5rem);line-height:1.5;overflow-y:auto;max-height:100%}.actions{flex-shrink:0;padding-top:1rem}.card{background:#fff;border-radius:14px;padding:1.25rem;box-shadow:0 4px 14px #00000012}.empty,.finished{text-align:center}.progress-card{display:flex;flex-direction:column;gap:.5rem}.progress-info{display:flex;justify-content:space-between;font-weight:600}.progress-bar{width:100%;height:14px;background:#e5e7eb;border-radius:999px;overflow:hidden}.progress-fill{height:100%;background:#4f46e5;transition:width .25s ease}.card-count{color:#666;font-size:.9rem}.flash-section.answer{background:#f9fafb}.label{margin-bottom:.5rem;color:#666;font-size:.85rem;font-weight:700;text-transform:uppercase}.content{font-size:1.25rem;line-height:1.6}.hidden-back:hover{background:#f3f4f6}@media(max-width:1000px){.filters .row,.grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.body{grid-template-columns:1fr}.sidebar{width:100%;border-right:none;border-bottom:1px solid #e8e8e8}.sidebar.closed{display:none}.hero{min-height:calc(100vh - 37px);padding:20px}.heroContent{padding:32px 22px}.heroContent p{font-size:1rem}.actions,.inlineBtns,.pager,.sectionHead,.flashcardTop,.titleRow,.results .row.space{flex-direction:column;align-items:stretch}.btn{width:100%}.formGrid,.filters .row,.grid{grid-template-columns:1fr}.fieldWide{grid-column:span 1}.dashboardHero,.dashboardGrid{grid-template-columns:1fr}.dashboardHero{flex-direction:column;align-items:stretch}}
