:root{--primary: #2563eb;--primary-dark: #1d4ed8;--bg: #f5f7fb;--card-bg: #ffffff;--border: #e5e7eb;--text-main: #111827;--text-muted: #6b7280;--success: #16a34a;--draft: #facc15;--closed: #9ca3af}*{box-sizing:border-box}body{margin:0;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:var(--bg);color:var(--text-main)}.app-root{min-height:100vh;display:flex;flex-direction:column}.topbar{height:56px;background:#fff;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 24px}.logo{width:32px;height:32px;border-radius:6px;background:var(--primary);color:#fff;font-weight:700;display:flex;align-items:center;justify-content:center;margin-right:8px}.topbar-left{display:flex;align-items:center}.topbar-title{font-weight:600}.topbar-right{font-size:14px;color:var(--text-muted)}.page-container{padding:24px 32px}.page{max-width:1100px;margin:0 auto}.page-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.page-title{margin:0;font-size:22px}.page-subtitle{margin:4px 0 0;font-size:14px;color:var(--text-muted)}.catalog-user{text-align:right}.catalog-user-name{font-weight:600}.catalog-user-username{font-size:13px;color:var(--text-muted)}.code-hint{margin-top:8px;padding:10px 12px;background:#f9fafb;border:1px dashed var(--border);border-radius:10px;font-size:13px;color:var(--text-muted);overflow-x:auto}.exam-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.exam-card{background:var(--card-bg);border:1px solid var(--border);border-radius:16px;padding:16px 16px 14px;box-shadow:0 10px 24px #0f172a0f;display:flex;flex-direction:column;min-height:220px}.exam-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.exam-card-title{font-weight:700;font-size:16px;line-height:1.2}.exam-card-meta{margin-top:6px;font-size:13px;color:var(--text-muted);display:flex;align-items:center;gap:8px;flex-wrap:wrap}.exam-card-meta .dot{opacity:.65}.pill{font-size:12px;padding:6px 10px;border-radius:999px;background:#eff6ff;color:#1d4ed8;border:1px solid #dbeafe;white-space:nowrap}.exam-card-desc{margin:12px 0 0;font-size:14px;color:var(--text-main);opacity:.92;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.exam-card-bottom{margin-top:auto;padding-top:12px;display:flex;align-items:flex-end;justify-content:space-between;gap:12px}.exam-card-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.exam-card-stats .stat{background:#f9fafb;border:1px solid var(--border);border-radius:12px;padding:8px 10px;min-width:90px}.exam-card-stats .stat-k{font-size:11px;color:var(--text-muted)}.exam-card-stats .stat-v{margin-top:4px;font-weight:700}@media(max-width:1024px){.exam-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:640px){.page-container{padding:18px 14px}.exam-grid,.exam-card-stats{grid-template-columns:1fr}}.cards-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:24px}.card,.stat-card{background:var(--card-bg);border-radius:12px;border:1px solid var(--border);padding:16px 20px;box-shadow:0 1px 2px #00000008}.stat-label{color:var(--text-muted);font-size:13px}.stat-value{margin-top:8px;font-size:20px;font-weight:600}.card-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.card-title{margin:0;font-size:18px}.card-subtitle{margin:4px 0 12px;font-size:14px;color:var(--text-muted)}.table-wrapper{overflow-x:auto}.table{width:100%;border-collapse:collapse;font-size:14px}.table th,.table td{padding:10px 8px;border-bottom:1px solid var(--border);text-align:left}.cell-actions{display:flex;gap:8px}.link-button{border:none;background:none;cursor:pointer;font-size:16px}.badge{display:inline-flex;padding:2px 10px;border-radius:999px;font-size:12px;align-items:center}.badge-draft{background:#fef9c3;color:#854d0e}.badge-published{background:#dcfce7;color:#166534}.badge-closed{background:#e5e7eb;color:#374151}.btn-primary,.btn-secondary{border-radius:999px;padding:8px 18px;font-size:14px;font-weight:500;border:none;cursor:pointer}.btn-primary{background:var(--primary);color:#fff}.btn-primary:hover{background:var(--primary-dark)}.btn-secondary{background:#e5e7eb;color:#111827}.btn-secondary:hover{background:#d1d5db}.full-width{width:100%}.spacer{flex:1}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 24px;margin-top:12px}.form-group{display:flex;flex-direction:column;font-size:14px}.form-group.full{grid-column:1 / -1}.form-group label{margin-bottom:4px}.input,.textarea{border-radius:8px;border:1px solid var(--border);padding:8px 10px;font:inherit}.textarea{min-height:80px;resize:vertical}.checkbox-group{justify-content:flex-end}.checkbox-group label{display:flex;align-items:center;gap:8px}.wizard-steps{display:flex;gap:16px;margin:12px 0 16px}.wizard-step{display:flex;align-items:center;gap:6px;font-size:14px;color:var(--text-muted)}.wizard-step span{width:22px;height:22px;border-radius:999px;border:2px solid var(--border);display:flex;align-items:center;justify-content:center;font-size:12px}.wizard-step.active{color:var(--primary)}.wizard-step.active span{border-color:var(--primary)}.modules-list{margin-top:12px;display:flex;flex-direction:column;gap:8px}.module-row{display:grid;grid-template-columns:2fr 1fr 1fr;gap:12px;padding:10px 12px;border-radius:10px;background:#f9fafb}.module-name{font-weight:500}.card-footer{margin-top:16px;display:flex;align-items:center;gap:8px;border-top:1px solid var(--border);padding-top:12px}.centered-page{display:flex;align-items:center;justify-content:center;min-height:calc(100vh - 56px)}.welcome-card,.result-card{width:420px;background:#fff;border-radius:16px;border:1px solid var(--border);box-shadow:0 10px 30px #0f172a1f;overflow:hidden}.welcome-header{background:var(--primary);color:#fff;padding:18px 20px;text-align:center}.welcome-header h1{margin:0;font-size:18px}.welcome-subtitle{margin-top:4px;font-size:13px;opacity:.9}.welcome-body{padding:20px 22px 18px}.welcome-label{font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--text-muted)}.welcome-name{margin:4px 0 0;font-size:20px}.welcome-username{font-size:13px;color:var(--text-muted)}.info-box{margin:16px 0;background:#f3f4ff;border-radius:12px;padding:12px 14px;font-size:14px}.info-box ul{margin:0;padding-left:18px}.checkbox-row{display:flex;align-items:center;gap:8px;font-size:13px;margin-bottom:12px}.exam-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:12px}.exam-title-short{font-weight:600}.exam-student{font-size:13px;color:var(--text-muted)}.exam-progress{min-width:160px;font-size:12px}.progress-bar{margin-top:4px;width:100%;height:4px;border-radius:999px;background:#e5e7eb}.progress-bar-fill{height:100%;border-radius:inherit;background:var(--primary)}.question-card{margin-top:8px}.question-context{background:#eff6ff;border-radius:10px;padding:10px 12px;font-size:14px;margin-bottom:12px}.question-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px;font-size:13px}.badge-module{background:#e0f2fe;color:#075985}.question-text{font-size:18px;margin:6px 0 12px}.options-list{display:flex;flex-direction:column;gap:8px}.option-row{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:999px;border:1px solid var(--border);cursor:pointer}.option-row input{margin:0}.option-letter{font-weight:600}.option-row.selected{border-color:var(--primary);background:#eff6ff}.question-footer{margin-top:16px}.result-header{padding:20px 22px 12px;text-align:center}.check-icon{width:42px;height:42px;border-radius:999px;background:#dcfce7;color:#15803d;display:flex;align-items:center;justify-content:center;margin:0 auto 8px;font-size:22px}.result-body{padding:0 22px 20px}.result-thanks{font-weight:500;margin-bottom:14px}.score-box{border-radius:12px;border:1px solid var(--border);padding:12px 14px}.score-label{font-size:13px;color:var(--text-muted)}.score-value{font-size:22px;font-weight:600}.score-progress{margin:8px 0 4px;height:6px;background:#e5e7eb;border-radius:999px}.score-progress-fill{height:100%;border-radius:inherit;background:var(--primary)}.score-level{font-size:13px;color:var(--text-muted)}.result-note{font-size:13px;color:var(--text-muted);margin-top:12px}.exam-timer{text-align:right;font-size:12px;color:var(--text-muted)}.exam-timer-label{display:block}.exam-timer-value{display:block;font-size:18px;font-weight:600;color:var(--primary)}.text-muted{font-size:13px;color:var(--text-muted)}.exam-card--pretty{padding:18px 18px 16px;border-radius:14px;box-shadow:0 12px 26px #0f172a14;transition:transform .14s ease,box-shadow .14s ease}.exam-card--pretty:hover{transform:translateY(-2px);box-shadow:0 16px 34px #0f172a1f}.exam-badges{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.badge{font-size:12px;font-weight:700;padding:6px 10px;border-radius:8px;border:1px solid transparent;line-height:1;display:inline-flex;align-items:center;white-space:nowrap}.badge-blue{background:#eaf2ff;color:#1d4ed8;border-color:#cfe2ff}.badge-green{background:#eafff0;color:#15803d;border-color:#b7f7c8}.badge-yellow{background:#fff7db;color:#a16207;border-color:#ffe7a3}.badge-gray{background:#f3f4f6;color:#374151;border-color:#e5e7eb}.exam-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.exam-card-title2{font-size:20px;font-weight:800;letter-spacing:-.2px;line-height:1.15}.exam-card-desc2{margin:10px 0 0;color:var(--text-muted);font-size:13.5px;line-height:1.45;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.exam-card-desc2.open{-webkit-line-clamp:initial;overflow:visible}.exam-meta2{margin-top:14px;display:flex;gap:16px;align-items:center;flex-wrap:wrap;color:var(--text-muted);font-size:13px}.meta-item{display:inline-flex;align-items:center;gap:8px}.meta-ico{font-size:14px;line-height:1}.exam-actions2{margin-top:14px;display:flex;gap:10px;align-items:center;justify-content:space-between}.btn-outline{height:38px;padding:0 14px;border-radius:8px;border:1px solid #cbd5e1;background:#fff;color:#334155;font-weight:700;cursor:pointer}.btn-outline:hover{background:#f8fafc}.exam-card--pretty .btn-primary{height:38px;padding:0 14px;border-radius:8px;font-weight:800}@tailwind base;@tailwind components;@tailwind utilities;body{background-color:#f9fafb}
