:root { --navy:#182433; --ink:#253246; --muted:#758196; --line:#e4e9f0; --soft:#f5f7fb; --blue:#2764e8; --blue-soft:#edf3ff; --green:#1a9a68; --amber:#d18c27; --red:#cf4b5b; --shadow:0 12px 30px #172b4d0d; }
* { box-sizing:border-box; }
[hidden] { display:none !important; }
body { margin:0; color:var(--ink); background:#f7f9fc; font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
button,input,select,textarea { font:inherit; } button { cursor:pointer; } button:disabled { cursor:not-allowed; opacity:.5; }
.auth-screen { min-height:100vh; display:grid; place-items:center; padding:24px; background:radial-gradient(circle at top right,#dce8ff 0,#f7f9fc 46%,#eef3fb 100%); }
.auth-card { width:min(420px,100%); padding:34px; background:#fff; border:1px solid var(--line); border-radius:16px; box-shadow:0 20px 60px #172b4d18; }
.auth-brand { padding:0 0 30px; }
.auth-card h1 { margin:8px 0 8px; color:var(--navy); font-size:28px; letter-spacing:-.6px; }
.auth-card p { margin-bottom:24px; color:var(--muted); font-size:13px; line-height:1.5; }
.auth-form { display:grid; gap:9px; }
.auth-form label { color:#536278; font-size:11px; font-weight:750; }
.auth-form input { width:100%; padding:12px; color:var(--ink); border:1px solid #dce3ec; border-radius:8px; outline:0; background:#fff; font-size:15px; letter-spacing:3px; }
.auth-form input:focus { border-color:var(--blue); box-shadow:0 0 0 3px var(--blue-soft); }
.auth-form .primary { margin-top:7px; }
.auth-error { color:var(--red); font-size:12px; }
.app-shell { min-height:100vh; display:flex; }.sidebar { width:252px; flex:0 0 252px; display:flex; flex-direction:column; padding:28px 16px 20px; background:#fff; border-right:1px solid var(--line); }.brand { display:flex; align-items:center; gap:11px; padding:0 12px 35px; color:var(--navy); }.brand-mark { width:38px; height:38px; display:grid; place-items:center; border-radius:11px; background:linear-gradient(135deg,#2864e8,#7b56dc); color:#fff; font-weight:800; letter-spacing:-1px; }.brand strong { display:block; font-size:17px; line-height:1.1; }.brand small { color:var(--muted); font-size:11px; font-weight:700; }.sidebar-label,.eyebrow { color:#8994a7; font-size:10px; font-weight:800; letter-spacing:1.2px; }.sidebar-label { padding:0 12px 10px; }.main-nav { display:grid; gap:5px; }.nav-button { width:100%; display:flex; align-items:center; gap:11px; padding:12px; border:0; border-radius:9px; color:#68768b; background:transparent; text-align:left; font-size:13px; font-weight:650; }.nav-button span { width:18px; text-align:center; font-size:18px; }.nav-button:hover,.nav-button.active { color:var(--blue); background:var(--blue-soft); }.sidebar-foot { margin-top:auto; padding:15px 12px 0; color:#8793a5; font-size:11px; border-top:1px solid var(--line); }.status-dot { display:inline-block; width:7px; height:7px; margin-right:5px; border-radius:50%; background:#20b879; box-shadow:0 0 0 3px #dff7ec; }
.content { width:min(1400px,100%); margin:0 auto; padding:32px 42px 60px; }.topbar { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; margin-bottom:28px; }.topbar h1 { margin:5px 0 0; font-size:25px; letter-spacing:-.5px; }.topbar-note { color:#8a95a7; font-size:11px; padding-top:10px; }.view { display:none; }.view.active { display:block; }h2,h3,p { margin-top:0; }.section-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:20px; margin-bottom:22px; }.section-heading h2 { margin:6px 0 6px; color:var(--navy); font-size:27px; letter-spacing:-.6px; }.section-heading p { margin:0; color:var(--muted); font-size:13px; }.eyebrow { display:block; }.eyebrow.light { color:#c9d7ff; }.panel,.setup-panel { background:#fff; border:1px solid var(--line); border-radius:14px; box-shadow:var(--shadow); }.hero-card { position:relative; display:flex; justify-content:space-between; overflow:hidden; min-height:245px; padding:35px 40px; margin-bottom:20px; border-radius:16px; color:#fff; background:linear-gradient(117deg,#1e4bb4,#2c6ee7 58%,#537fe8); }.hero-card h2 { max-width:560px; margin:9px 0 10px; font-size:30px; line-height:1.12; letter-spacing:-.8px; }.hero-card p { max-width:540px; margin-bottom:24px; color:#dfe9ff; font-size:14px; }.hero-symbol { position:absolute; right:80px; bottom:-40px; color:#ffffff20; font-size:280px; font-weight:200; line-height:1; }.primary,.secondary,.text-button { border:0; border-radius:8px; padding:11px 16px; font-size:12px; font-weight:750; }.primary { color:#fff; background:var(--blue); }.hero-card .primary { color:var(--blue); background:#fff; }.primary span { margin-left:8px; }.secondary { color:#50617a; border:1px solid var(--line); background:#fff; }.text-button { padding:0; color:var(--blue); background:transparent; }.stats-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin-bottom:20px; }.stat-card { padding:19px 20px; background:#fff; border:1px solid var(--line); border-radius:12px; }.stat-card strong { display:block; color:var(--navy); font-size:27px; letter-spacing:-.6px; }.stat-card span { color:var(--muted); font-size:11px; }.dashboard-grid { display:grid; grid-template-columns:1.4fr 1fr; gap:20px; }.panel { padding:23px; }.panel-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:15px; margin-bottom:17px; }.panel-heading h3 { margin:5px 0 0; color:var(--navy); font-size:17px; }.empty-state { padding:30px 10px; color:var(--muted); text-align:center; font-size:13px; }.mini-attempt { display:flex; align-items:center; justify-content:space-between; gap:15px; padding:13px 0; border-bottom:1px solid var(--line); }.mini-attempt:last-child { border-bottom:0; }.mini-attempt strong,.topic-row strong { display:block; color:var(--navy); font-size:12px; }.mini-attempt small,.topic-row small { color:var(--muted); font-size:11px; }.score { min-width:45px; color:var(--green); font-size:17px; font-weight:800; text-align:right; }.topic-row { display:grid; grid-template-columns:1fr 80px; align-items:center; gap:12px; padding:12px 0; border-bottom:1px solid var(--line); }.topic-row:last-child { border-bottom:0; }.progress { height:6px; margin-top:7px; overflow:hidden; border-radius:99px; background:#edf0f5; }.progress i { display:block; height:100%; border-radius:inherit; background:var(--blue); }
.setup-panel { max-width:850px; padding:30px; }.step-badge { padding:7px 10px; color:var(--blue); background:var(--blue-soft); border-radius:99px; font-size:11px; font-weight:800; }.setup-form { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-top:26px; }.setup-form label,.note-form label { display:grid; gap:7px; color:#536278; font-size:11px; font-weight:750; }.setup-form select,.bank-toolbar select,.bank-toolbar input,.note-form textarea,.note-form input[type=file],.note-editor textarea { width:100%; padding:11px 12px; color:var(--ink); border:1px solid #dce3ec; border-radius:8px; outline:0; background:#fff; font-size:13px; }.setup-form select:focus,.bank-toolbar input:focus,.note-form textarea:focus,.note-editor textarea:focus { border-color:var(--blue); box-shadow:0 0 0 3px var(--blue-soft); }.setup-actions { display:flex; align-items:center; gap:10px; grid-column:1/-1; margin-top:8px; }.setup-note { margin-top:23px; padding:12px 14px; color:#7b879a; background:#f8fafc; border-radius:8px; font-size:11px; line-height:1.5; }.topic-picker { grid-column:1/-1; min-width:0; margin:0; padding:16px; border:1px solid #dce3ec; border-radius:10px; }.topic-picker legend { padding:0 5px; color:#536278; font-size:11px; font-weight:750; }.topic-dropdown { position:relative; }.topic-dropdown-toggle { width:100%; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:11px 12px; color:var(--ink); border:1px solid #dce3ec; border-radius:8px; background:#fff; font-size:13px; text-align:left; }.topic-dropdown-toggle:hover,.topic-dropdown.open .topic-dropdown-toggle { border-color:var(--blue); box-shadow:0 0 0 3px var(--blue-soft); }.topic-picker-menu { position:absolute; top:calc(100% + 8px); left:0; right:0; z-index:4; display:none; gap:6px; max-height:310px; overflow:auto; padding:8px; border:1px solid #dce3ec; border-radius:10px; background:#fff; box-shadow:0 15px 35px #172b4d24; }.topic-dropdown.open .topic-picker-menu { display:grid; }.topic-choice { display:flex !important; grid-template-columns:none !important; align-items:flex-start; gap:9px; padding:10px; border:1px solid #e4e9f0; border-radius:8px; background:#fff; cursor:pointer; }.topic-choice:hover,.topic-choice:has(input:checked) { border-color:#b7cbf4; background:var(--blue-soft); }.topic-choice input { flex:0 0 auto; width:16px; height:16px; margin:1px 0 0; accent-color:var(--blue); }.topic-choice span { display:grid; gap:3px; min-width:0; }.topic-choice strong { color:var(--navy); font-size:11px; line-height:1.25; }.topic-choice small { color:var(--muted); font-size:10px; }.topic-picker-footer { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:11px; padding-top:11px; border-top:1px solid var(--line); }.topic-picker-footer span { color:var(--muted); font-size:11px; }.setup-actions + .setup-note { grid-column:1/-1; }
.quiz-card { max-width:950px; }.quiz-header { display:flex; justify-content:space-between; align-items:center; gap:20px; margin-bottom:16px; }.quiz-header h2 { margin:4px 0 0; color:var(--navy); font-size:20px; }.quiz-progress-label { color:var(--muted); font-size:12px; font-weight:700; }.quiz-progress { height:7px; margin-bottom:26px; overflow:hidden; border-radius:99px; background:#e8edf4; }.quiz-progress i { display:block; height:100%; border-radius:inherit; background:var(--blue); transition:width .25s ease; }.question-meta { display:flex; gap:8px; margin-bottom:14px; }.tag { display:inline-flex; align-items:center; padding:5px 8px; color:#5270a4; background:var(--blue-soft); border-radius:99px; font-size:10px; font-weight:800; }.tag.gray { color:#768397; background:#f0f3f7; }.question-text { margin:0 0 22px; color:var(--navy); font-size:21px; line-height:1.35; }.options { display:grid; gap:10px; }.option-button { display:flex; align-items:flex-start; gap:12px; width:100%; padding:14px; color:#405069; border:1px solid #dfe5ee; border-radius:10px; background:#fff; text-align:left; }.option-button:hover:not(:disabled) { border-color:var(--blue); background:#f8faff; }.option-key { display:grid; place-items:center; flex:0 0 25px; width:25px; height:25px; color:#66758c; border:1px solid #dbe2ed; border-radius:50%; font-size:11px; font-weight:800; }.option-button.correct { color:#176f4d; border-color:#5bc692; background:#effbf5; }.option-button.incorrect { color:#a43c4a; border-color:#e8919c; background:#fff2f3; }.option-button.correct .option-key { color:#fff; border-color:#22a771; background:#22a771; }.option-button.incorrect .option-key { color:#fff; border-color:#d55d6b; background:#d55d6b; }.answer-feedback { margin-top:22px; padding:17px; border-radius:10px; background:#f7f9fc; }.answer-feedback.correct { border-left:4px solid var(--green); }.answer-feedback.incorrect { border-left:4px solid var(--red); }.answer-feedback h3 { margin:0 0 7px; font-size:14px; }.answer-feedback p { margin:0; color:#526177; font-size:13px; line-height:1.6; }.quiz-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:22px; }.quiz-actions .secondary { margin-right:auto; }.notes-box { margin-top:24px; padding-top:22px; border-top:1px solid var(--line); }.notes-box h3 { margin-bottom:13px; color:var(--navy); font-size:15px; }.note-list { display:grid; gap:11px; }.note-editor { padding:12px; border:1px solid #e2e8f0; border-radius:9px; background:#fafbfd; }.note-editor textarea { min-height:70px; resize:vertical; }.note-editor img,.saved-note img { display:block; max-width:180px; max-height:130px; margin:10px 0; border-radius:7px; object-fit:cover; }.note-editor-actions { display:flex; gap:8px; margin-top:8px; }.note-editor-actions button { padding:7px 10px; border:0; border-radius:6px; font-size:11px; font-weight:750; }.save-note { color:#fff; background:var(--blue); }..delete-note { color:#b54655; background:#fff0f2; }.note-form { display:grid; gap:9px; margin-top:12px; }.note-form textarea { min-height:70px; resize:vertical; }.note-form-row { display:flex; justify-content:space-between; align-items:center; gap:10px; }.note-form input[type=file] { max-width:360px; padding:8px; color:#758196; font-size:11px; }.note-empty { padding:12px; color:#8a95a7; border:1px dashed #dbe2eb; border-radius:8px; font-size:11px; }
.bank-toolbar { display:flex; align-items:center; gap:10px; margin-bottom:16px; }.bank-toolbar input { max-width:390px; }.bank-toolbar select { width:210px; }.bank-toolbar span { margin-left:auto; color:var(--muted); font-size:12px; font-weight:700; }.bank-list { display:grid; gap:11px; }.bank-card { display:grid; grid-template-columns:27px 1fr auto; align-items:start; gap:14px; padding:17px 18px; background:#fff; border:1px solid var(--line); border-radius:12px; }.bank-card:hover { border-color:#b9ccef; box-shadow:var(--shadow); }.bank-card input { width:17px; height:17px; margin-top:2px; accent-color:var(--blue); }.bank-card h3 { margin:7px 0 7px; color:var(--navy); font-size:14px; line-height:1.4; }.bank-card p { margin:0; color:var(--muted); font-size:12px; line-height:1.45; }.bank-card-actions { display:flex; align-items:center; gap:8px; }.bank-card-actions button { padding:7px 9px; color:var(--blue); border:1px solid #dbe5fb; border-radius:7px; background:var(--blue-soft); font-size:11px; font-weight:750; }.bank-card-actions button:first-child { color:#5d6b80; border-color:var(--line); background:#fff; }.note-count { display:inline-block; margin-top:8px; color:var(--amber); font-size:10px; font-weight:800; }
.attempts-list { display:grid; gap:12px; }.attempt-card { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:18px 20px; background:#fff; border:1px solid var(--line); border-radius:12px; }.attempt-card h3 { margin:0 0 6px; color:var(--navy); font-size:14px; }.attempt-card p { margin:0; color:var(--muted); font-size:11px; }.attempt-card-right { display:flex; align-items:center; gap:17px; }.attempt-score { color:var(--green); font-size:22px; font-weight:850; }.attempt-card button { padding:8px 10px; color:var(--blue); border:0; border-radius:7px; background:var(--blue-soft); font-size:11px; font-weight:750; }
.modal { width:min(850px,calc(100% - 28px)); max-height:88vh; padding:0; color:var(--ink); border:0; border-radius:15px; box-shadow:0 20px 70px #14233c35; }.modal::backdrop { background:#12213966; backdrop-filter:blur(2px); }.modal > div { padding:27px; }.modal-header { display:flex; justify-content:space-between; gap:15px; align-items:flex-start; margin-bottom:18px; }.modal-header h2 { margin:5px 0; color:var(--navy); font-size:20px; }.close-button { width:30px; height:30px; border:0; border-radius:50%; color:#718098; background:#f0f3f7; }.detail-explanation { padding:16px; margin:18px 0; color:#536177; border-left:4px solid var(--blue); border-radius:8px; background:#f5f8ff; font-size:13px; line-height:1.6; }.review-list { display:grid; gap:12px; }.review-item { padding:14px; border:1px solid var(--line); border-radius:9px; }.review-item strong { display:block; margin-bottom:8px; color:var(--navy); font-size:13px; }.review-item p { margin:5px 0 0; color:#5e6c80; font-size:12px; line-height:1.5; }.review-item .right { color:var(--green); }.review-item .wrong { color:var(--red); }.toast { position:fixed; right:24px; bottom:24px; z-index:5; max-width:330px; padding:12px 15px; color:#fff; border-radius:8px; background:#1e2c3f; box-shadow:var(--shadow); font-size:12px; opacity:0; transform:translateY(10px); transition:.2s; pointer-events:none; }.toast.show { opacity:1; transform:none; }
@media(max-width:900px) { .sidebar { width:210px; flex-basis:210px; }.content { padding:28px 24px 50px; }.dashboard-grid { grid-template-columns:1fr; }.setup-form { grid-template-columns:1fr 1fr; }.hero-symbol { right:10px; } }
@media(max-width:650px) { .app-shell { display:block; }.sidebar { width:auto; border-right:0; border-bottom:1px solid var(--line); padding:16px; }.brand { padding:0 5px 16px; }.sidebar-label,.sidebar-foot { display:none; }.main-nav { display:flex; overflow:auto; gap:4px; }.nav-button { min-width:max-content; padding:9px 10px; font-size:11px; }.nav-button span { font-size:15px; }.content { padding:22px 15px 40px; }.topbar-note { display:none; }.hero-card { min-height:280px; padding:25px; }.hero-card h2 { font-size:25px; }.hero-symbol { right:-20px; font-size:210px; }.stats-grid { grid-template-columns:1fr 1fr; }.section-heading { display:block; }.section-heading > button { margin-top:15px; }.setup-form { grid-template-columns:1fr; }.setup-actions { display:grid; }.topic-picker-footer { align-items:flex-start; flex-direction:column; }.topic-picker-menu { max-height:55vh; }.bank-toolbar { flex-wrap:wrap; }.bank-toolbar input,.bank-toolbar select { max-width:none; width:100%; }.bank-toolbar span { margin-left:0; }.bank-card { grid-template-columns:23px 1fr; }.bank-card-actions { grid-column:2; }.attempt-card { align-items:flex-start; flex-direction:column; }.attempt-card-right { width:100%; justify-content:space-between; }.quiz-header { align-items:flex-start; }.question-text { font-size:18px; }.note-form-row { align-items:flex-start; flex-direction:column; }.note-form input[type=file] { width:100%; max-width:none; } }
.completion-panel { max-width:1050px; }.completion-panel > p { color:var(--muted); font-size:14px; }.completion-summary { margin-top:28px; padding-top:22px; border-top:1px solid var(--line); }.completion-summary .panel-heading { align-items:end; }.completion-summary .panel-heading h3 { margin:5px 0 0; color:var(--navy); font-size:17px; }.completion-summary .panel-heading small { color:var(--muted); font-size:11px; }.completion-row { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:17px 0; border-bottom:1px solid var(--line); }.completion-row:last-child { border-bottom:0; }.completion-row > div { min-width:0; }.completion-row strong { display:block; color:var(--navy); font-size:13px; line-height:1.45; }.completion-number { display:inline-grid; place-items:center; width:23px; height:23px; margin-right:8px; color:var(--blue); border-radius:50%; background:var(--blue-soft); font-size:11px; font-weight:800; vertical-align:middle; }.completion-row p { margin:6px 0 0 32px; font-size:11px; }.completion-correct { color:var(--green); }.completion-wrong { color:var(--red); }.completion-row button { flex:0 0 auto; white-space:nowrap; }
.modal-actions { display:flex; justify-content:flex-end; margin-top:18px; }.question-edit-form { display:grid; grid-template-columns:1fr 1fr; gap:14px; }.question-edit-form label { display:grid; gap:7px; color:#536278; font-size:11px; font-weight:750; }.question-edit-form input,.question-edit-form select,.question-edit-form textarea { width:100%; padding:10px 11px; color:var(--ink); border:1px solid #dce3ec; border-radius:8px; outline:0; background:#fff; font-size:13px; }.question-edit-form textarea { min-height:78px; resize:vertical; }.question-edit-form input:focus,.question-edit-form select:focus,.question-edit-form textarea:focus { border-color:var(--blue); box-shadow:0 0 0 3px var(--blue-soft); }.full-field { grid-column:1/-1; }.answer-edit-grid { display:grid; grid-template-columns:1fr 1fr; grid-column:1/-1; gap:14px; }.question-edit-form .setup-actions { margin:3px 0 0; }
