/* css/styles.css — стили приложения «Школьный Дневник» */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Tahoma, sans-serif; background: #f3f0fa; min-height: 100vh; color: #333; transition: background 0.3s; }
.app-layout { display: flex; min-height: 100vh; align-items: flex-start; }
body.theme-purple { background: #f3f0fa; }
body.theme-pink { background: #fdf2f8; }
body.theme-blue { background: #eff6ff; }
body.theme-green { background: #f0fdf4; }
body.theme-dark { background: #1f2937; color: #e5e7eb; }
body.theme-dark .content-box { background: #374151; color: #e5e7eb; }
body.theme-dark h1, body.theme-dark h2, body.theme-dark h3 { color: #e9d5ff; }
body.theme-dark .card { background: #4b5563; border-color: #6b7280; }
body.theme-dark .diary-table { background: #374151; }
body.theme-dark .diary-table td { border-color: #4b5563; color: #e5e7eb; }
body.theme-dark .diary-table td.subject-name { background: #4b5563; color: #e9d5ff; }
body.theme-dark p { color: #d1d5db; }
body.theme-dark .format-hint { color: #c4b5fd; background: #4c1d95; border-left-color: #a78bfa; }
body.theme-dark .topic-locked { background: #4b5563; border-color: #6b7280; }
body.theme-dark .solved-task-card { background: #4b5563; border-color: #6b7280; }
body.theme-dark .task-visual { background: #4b5563; border-color: #6b7280; }
body.theme-dark .choice-btn { background: #4b5563; border-color: #6b7280; color: #e5e7eb; }
body.theme-dark .choice-btn:hover { background: #6b7280; }
body.theme-dark .olympiad-item { background: #4b5563; border-color: #6b7280; }
body.theme-dark .olympiad-item .oi-title { color: #e9d5ff; }

.sidebar {
  width: 232px;
  background: #5a3d8a;
  color: #fff;
  padding: 14px 0 10px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  transition: background 0.3s;
}
body.theme-pink .sidebar { background: #9d174d; }
body.theme-blue .sidebar { background: #1e40af; }
body.theme-green .sidebar { background: #166534; }
body.theme-dark .sidebar { background: #111827; }
.sidebar-header { padding: 0 16px 12px; border-bottom: 1px solid rgba(255,255,255,0.15); }
.student-info { display: flex; align-items: center; gap: 10px; }
.student-avatar { font-size: 32px; background: rgba(255,255,255,0.15); width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform 0.2s; overflow: hidden; flex-shrink: 0; }
.student-avatar:hover { transform: scale(1.08); }
.student-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.student-name { font-weight: 700; font-size: 16px; line-height: 1.15; }
.student-stars { font-size: 12px; color: #e9d5ff; margin-top: 2px; }
.sb-streak { font-size: 12px; color: #fed7aa; margin-top: 2px; font-weight: 600; min-height: 15px; }
.sidebar-section-title { padding: 10px 16px 4px; font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: #c4b5fd; font-weight: 700; }
.subject-tabs { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; }
.subject-tabs::-webkit-scrollbar { width: 6px; }
.subject-tabs::-webkit-scrollbar-track { background: transparent; }
.subject-tabs::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.22); border-radius: 3px; }
.subject-tabs::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.4); }
.subject-tabs { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.22) transparent; }
.subject-tab { padding: 8px 16px; display: flex; align-items: center; gap: 10px; cursor: pointer; transition: background 0.15s; font-size: 13px; font-weight: 500; line-height: 1.2; }
.subject-tab:hover { background: rgba(255,255,255,0.08); }
.subject-tab.active { background: rgba(255,255,255,0.15); border-left: 3px solid #d8b4fe; padding-left: 13px; }
.subject-tab .tab-emoji { font-size: 17px; width: 22px; text-align: center; flex-shrink: 0; }
.subject-tab .tab-progress { margin-left: auto; font-size: 11px; color: #c4b5fd; flex-shrink: 0; }
.subject-tab.disabled { opacity: 0.4; cursor: not-allowed; }
.sidebar-footer { padding: 10px 10px 0; border-top: 1px solid rgba(255,255,255,0.15); display: flex; flex-direction: column; gap: 5px; }
.side-btn { padding: 7px 12px; border-radius: 8px; border: none; background: rgba(255,255,255,0.1); color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; text-align: left; font-family: inherit; transition: background 0.15s; display: flex; align-items: center; gap: 8px; }
.side-btn:hover { background: rgba(255,255,255,0.2); }
.side-btn.active { background: #f59e0b; }

/* Кнопка синхронизации в сайдбаре — статусные цвета */
.side-btn.sync-btn { position: relative; }
.side-btn.sync-idle { background: rgba(255,255,255,0.06); color: #cbd5e1; }
.side-btn.sync-idle:hover { background: rgba(255,255,255,0.16); }
.side-btn.sync-syncing { background: rgba(250,204,21,0.25); color: #fef3c7; }
.side-btn.sync-syncing::after { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #facc15; margin-left: auto; animation: syncPulse 1s infinite; }
.side-btn.sync-synced { background: rgba(34,197,94,0.2); color: #bbf7d0; }
.side-btn.sync-synced::after { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; margin-left: auto; }
.side-btn.sync-offline { background: rgba(239,68,68,0.2); color: #fecaca; }
.side-btn.sync-offline::after { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #ef4444; margin-left: auto; }
.side-btn.sync-error { background: rgba(239,68,68,0.25); color: #fecaca; }
.side-btn.sync-error::after { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #ef4444; margin-left: auto; animation: syncPulse 0.8s infinite; }
.side-btn.sync-unauth { background: rgba(250,204,21,0.2); color: #fef3c7; }
@keyframes syncPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

/* Roblox-логотип в сайдбаре — по умолчанию скрыт */
.roblox-brand { display: none; }

.main-content {
  flex: 1;
  min-width: 0;
  padding: 30px 30px 60px;
}
.content-box {
  background: #fff;
  border-radius: 20px;
  padding: 30px 30px 40px;
  box-shadow: 0 4px 20px rgba(90, 61, 138, 0.08);
  max-width: 900px;
  margin: 0 auto;
  transition: background 0.3s;
}

h1 { font-size: 26px; color: #5a3d8a; margin-bottom: 8px; }
h2 { font-size: 20px; color: #5a3d8a; margin-bottom: 14px; }
h3 { font-size: 17px; color: #6b4fa0; margin-bottom: 10px; }
p { line-height: 1.6; margin-bottom: 12px; }
.btn { display: inline-block; padding: 12px 24px; border-radius: 12px; border: none; font-size: 15px; font-weight: 600; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s; font-family: inherit; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.15); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn:disabled:hover { transform: none; box-shadow: none; }
.btn-primary { background: #8b5cf6; color: #fff; }
.btn-secondary { background: #e9d5ff; color: #5a3d8a; }
.btn-success { background: #22c55e; color: #fff; }
.btn-warning { background: #f59e0b; color: #fff; }
.btn-danger { background: #ef4444; color: #fff; }
.btn-big { padding: 18px 28px; font-size: 17px; width: 100%; }
.card { background: #faf5ff; border: 2px solid #e9d5ff; border-radius: 14px; padding: 18px; margin-bottom: 12px; cursor: pointer; transition: all 0.2s; }
.card:hover { border-color: #8b5cf6; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(139,92,246,0.15); }
.topic-item { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; }
.topic-item .topic-title { font-weight: 600; color: #5a3d8a; margin-bottom: 4px; }
.topic-item .topic-progress { font-size: 13px; color: #888; }
.topic-item .stars { font-size: 18px; }
.topic-locked { background: #f3f4f6 !important; border-color: #d1d5db !important; opacity: 0.7; cursor: not-allowed; }
.topic-locked:hover { transform: none; box-shadow: none; border-color: #d1d5db !important; }
.topic-locked .topic-title { color: #6b7280; }
.topic-locked .lock-icon { font-size: 24px; }
.topic-test-ready { border-color: #f59e0b !important; background: #fef3c7 !important; }
.mode-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.mode-card { padding: 28px 22px; border-radius: 16px; text-align: center; cursor: pointer; border: 3px solid transparent; transition: all 0.2s; }
.mode-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,0.12); }
.mode-card.study { background: #fef3c7; border-color: #fbbf24; }
.mode-card.practice { background: #dbeafe; border-color: #60a5fa; }
.mode-card.test { background: #ede9fe; border-color: #8b5cf6; }
.mode-card.test.passed { background: #dcfce7; border-color: #22c55e; }
.mode-card.test.locked { background: #f3f4f6; border-color: #d1d5db; cursor: not-allowed; opacity: 0.7; }
.mode-card.test.locked:hover { transform: none; box-shadow: none; }
.mode-card .mode-emoji { font-size: 44px; display: block; margin-bottom: 12px; }
.mode-card .mode-title { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.mode-card.study .mode-title { color: #92400e; }
.mode-card.practice .mode-title { color: #1e40af; }
.mode-card.test .mode-title { color: #5b21b6; }
.mode-card.test.passed .mode-title { color: #166534; }
.mode-card .mode-desc { font-size: 13px; color: #666; line-height: 1.5; }
@media (max-width: 600px) { .mode-choice { grid-template-columns: 1fr; } }
.course-block-heading { font-size: 20px; color: #5a3d8a; font-weight: 700; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid #e9d5ff; margin-top: 20px; }
.course-block-text { font-size: 16px; line-height: 1.7; color: #333; }
.course-block-text p { margin-bottom: 10px; }
.course-rule { background: #ecfdf5; border-left: 5px solid #10b981; padding: 16px 20px; border-radius: 10px; margin: 12px 0; }
.course-rule-label { font-size: 12px; font-weight: 700; color: #047857; text-transform: uppercase; margin-bottom: 6px; }
.course-rule-text { color: #065f46; font-size: 16px; line-height: 1.6; }
.course-example { background: #eff6ff; border-radius: 12px; padding: 18px 22px; margin: 14px 0; border: 2px solid #bfdbfe; }
.course-example-label { font-size: 12px; font-weight: 700; color: #1e40af; text-transform: uppercase; margin-bottom: 10px; }
.course-example-problem { font-size: 16px; color: #1e3a8a; font-weight: 600; margin-bottom: 12px; }
.course-example-steps { list-style: none; counter-reset: step; padding: 0; margin: 0; }
.course-example-steps li { counter-increment: step; position: relative; padding: 8px 0 8px 42px; font-size: 15px; line-height: 1.6; color: #1e3a8a; }
.course-example-steps li::before { content: counter(step); position: absolute; left: 0; top: 6px; width: 28px; height: 28px; background: #3b82f6; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }
.course-example-answer { margin-top: 12px; padding-top: 12px; border-top: 1px dashed #93c5fd; font-weight: 700; color: #1e40af; font-size: 16px; }
.course-mistake { background: #fef2f2; border-left: 5px solid #ef4444; padding: 14px 20px; border-radius: 10px; margin: 12px 0; }
.course-mistake-label { font-size: 12px; font-weight: 700; color: #b91c1c; text-transform: uppercase; margin-bottom: 6px; }
.course-mistake-text { color: #7f1d1d; font-size: 15px; line-height: 1.6; }
.course-tip { background: #fef9c3; border-left: 5px solid #eab308; padding: 14px 20px; border-radius: 10px; margin: 12px 0; }
.course-tip-label { font-size: 12px; font-weight: 700; color: #854d0e; text-transform: uppercase; margin-bottom: 6px; }
.course-tip-text { color: #713f12; font-size: 15px; line-height: 1.6; }
.course-list { list-style: none; padding: 0; margin: 8px 0; }
.course-list li { padding: 6px 0 6px 26px; position: relative; font-size: 15px; line-height: 1.6; }
.course-list li::before { content: '•'; position: absolute; left: 8px; color: #8b5cf6; font-weight: 700; font-size: 20px; line-height: 1; top: 7px; }
.task-question { font-size: 19px; line-height: 1.5; margin-bottom: 18px; }
.task-type-badge { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 11px; font-weight: 700; text-transform: uppercase; margin-bottom: 12px; }
.badge-simple { background: #dbeafe; color: #1e40af; }
.badge-medium { background: #fed7aa; color: #9a3412; }
.badge-olympiad { background: #fecaca; color: #991b1b; }
.badge-test { background: #ede9fe; color: #5b21b6; }
.badge-test-star { background: linear-gradient(135deg,#fef3c7,#fde68a); color: #92400e; }
.answer-input { width: 100%; padding: 14px 18px; font-size: 17px; border: 2px solid #d8b4fe; border-radius: 12px; margin-bottom: 14px; font-family: inherit; outline: none; }
.answer-input:focus { border-color: #8b5cf6; box-shadow: 0 0 0 3px rgba(139,92,246,0.2); }
.answer-input:disabled { background: #f3f4f6; color: #9ca3af; cursor: not-allowed; }
.format-hint { font-size: 13px; color: #8b5cf6; margin-top: -8px; margin-bottom: 14px; padding: 8px 12px; background: #f5f3ff; border-radius: 8px; font-style: italic; border-left: 3px solid #c4b5fd; }
.feedback { padding: 14px 18px; border-radius: 12px; margin-bottom: 14px; font-weight: 600; line-height: 1.7; }
.feedback.correct { background: #dcfce7; color: #166534; }
.feedback.wrong { background: #fee2e2; color: #991b1b; }
.feedback.hint { background: #fef3c7; color: #92400e; font-weight: 400; line-height: 1.8; }
.feedback.hint strong { color: #78350f; }
.feedback.explanation { background: #f0fdf4; color: #166534; font-weight: 400; }
.feedback.explanation strong { color: #14532d; }
.feedback.blocked { background: #fef2f2; color: #7f1d1d; border: 2px dashed #ef4444; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.progress-bar-container { background: #e9d5ff; border-radius: 10px; height: 18px; overflow: hidden; margin: 6px 0; }
.progress-bar-fill { background: linear-gradient(90deg, #8b5cf6, #d946ef); height: 100%; transition: width 0.4s; }
.back-link { color: #8b5cf6; cursor: pointer; font-weight: 600; margin-bottom: 14px; display: inline-block; font-size: 14px; }
.center { text-align: center; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.empty-state { text-align: center; padding: 60px 20px; color: #888; }
.empty-state .big-emoji { font-size: 64px; display: block; margin-bottom: 16px; }
.daily-goal-card { background: linear-gradient(135deg, #f5f3ff, #ede9fe); border-color: #a78bfa; border-width: 2px; }
.daily-goal-card.daily-goal-done { background: linear-gradient(135deg, #dcfce7, #bbf7d0); border-color: #22c55e; }
.daily-goal-card h3 { color: #5b21b6; }
.daily-goal-card.daily-goal-done h3 { color: #166534; }
.review-card { transition: transform 0.2s, box-shadow 0.2s; }
.review-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,0.15); }
.review-card h3 { margin-bottom: 6px; }
.test-review-block { margin-top: 20px; }
.test-review-block h3 { color: #5a3d8a; margin-bottom: 12px; padding-bottom: 6px; border-bottom: 2px solid #e9d5ff; }
.test-review-item { padding: 12px 16px; border-radius: 10px; margin-bottom: 10px; border-left: 4px solid #d1d5db; background: #fafafa; }
.test-review-item.test-review-ok { border-left-color: #22c55e; background: #f0fdf4; }
.test-review-item.test-review-no { border-left-color: #ef4444; background: #fef2f2; }
.test-review-item.test-review-star { border-left-width: 6px; }
.test-review-item.test-review-star.test-review-ok { background: linear-gradient(135deg,#fffbeb,#fef3c7); }
.test-review-q { font-weight: 600; color: #333; line-height: 1.5; margin-bottom: 6px; }
.test-review-a { font-size: 14px; color: #555; line-height: 1.5; }
.test-review-a strong { color: #333; }
.test-review-a strong.ok { color: #166534; }
.test-review-exp { font-size: 13px; color: #666; margin-top: 6px; font-style: italic; }
.dictation-audio-box { text-align: center; padding: 20px; background: #eff6ff; border: 2px solid #bfdbfe; border-radius: 14px; margin: 16px 0; }
.dictation-audio-box .btn-big { width: auto; padding: 16px 32px; }
.dictation-sentence-input { text-align: left; font-size: 18px; line-height: 1.5; }
.streak-card { background: linear-gradient(135deg, #fff7ed, #fed7aa); border: 2px solid #f59e0b; border-radius: 14px; padding: 12px 16px; margin-bottom: 14px; }
.streak-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; flex-wrap: wrap; gap: 6px; }
.streak-title { font-size: 13px; font-weight: 700; color: #92400e; text-transform: uppercase; letter-spacing: 0.5px; }
.streak-count { font-size: 13px; font-weight: 700; color: #78350f; background: #fff; padding: 3px 10px; border-radius: 10px; }
.streak-strip { display: flex; gap: 4px; flex-wrap: wrap; }
.streak-dot { width: 14px; height: 14px; border-radius: 50%; background: #fef3c7; border: 1.5px solid #fcd34d; display: inline-block; flex-shrink: 0; }
.streak-dot.active { background: linear-gradient(135deg, #f59e0b, #ea580c); border-color: #c2410c; box-shadow: 0 1px 3px rgba(245,158,11,0.5); }
.streak-dot.today { border-color: #7c2d12; border-width: 2.5px; }
.streak-hint { font-size: 11px; color: #92400e; margin-top: 8px; }
@media (max-width: 600px) { .streak-dot { width: 11px; height: 11px; } .streak-strip { gap: 3px; } }
.task-kind-hint { background: #f5f3ff; border-left: 4px solid #8b5cf6; padding: 10px 14px; border-radius: 8px; margin: 8px 0 16px; font-size: 14px; color: #5b21b6; }
.task-kind-hint strong { color: #4c1d95; }
.match-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 14px 0; }
.match-col { display: flex; flex-direction: column; gap: 10px; }
.match-item { padding: 14px 16px; border: 2px solid #d8b4fe; background: #faf5ff; border-radius: 12px; font-size: 16px; cursor: pointer; transition: all 0.15s; text-align: center; user-select: none; }
.match-item:hover { border-color: #8b5cf6; background: #f3e8ff; }
.match-item.selected { border-color: #8b5cf6; background: #ede9fe; box-shadow: 0 0 0 3px rgba(139,92,246,0.25); }
.match-item.matched { background: #dcfce7; border-color: #22c55e; color: #166534; cursor: default; }
.match-item.matched:hover { transform: none; }
.match-item.match-error { background: #fee2e2; border-color: #ef4444; color: #991b1b; animation: shake 0.35s; }
@keyframes shake { 0%,100%{transform:translateX(0);} 25%{transform:translateX(-6px);} 50%{transform:translateX(6px);} 75%{transform:translateX(-3px);} }
@media (max-width: 500px) { .match-wrap { grid-template-columns: 1fr; } }
.odd-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 14px 0; }
.odd-item { padding: 18px 16px; border: 2px solid #d8b4fe; background: #faf5ff; border-radius: 12px; font-size: 17px; text-align: center; cursor: pointer; transition: all 0.15s; user-select: none; }
.odd-item:hover { border-color: #8b5cf6; background: #f3e8ff; transform: translateY(-1px); }
.odd-item.selected { border-color: #8b5cf6; background: #ede9fe; box-shadow: 0 0 0 3px rgba(139,92,246,0.25); }
.blank-text { background: #faf5ff; border: 2px solid #e9d5ff; border-radius: 12px; padding: 18px 22px; font-size: 18px; line-height: 1.9; margin: 14px 0; }
.classify-wrap { margin: 14px 0; }
.classify-pool { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px; background: #faf5ff; border: 2px dashed #d8b4fe; border-radius: 12px; min-height: 70px; margin-bottom: 16px; }
.classify-pool:empty::before { content: 'Все элементы разложены ✅'; color: #888; font-size: 14px; }
.classify-item { padding: 10px 16px; background: #fff; border: 2px solid #d8b4fe; border-radius: 10px; font-size: 15px; cursor: pointer; transition: all 0.15s; user-select: none; }
.classify-item:hover { border-color: #8b5cf6; transform: translateY(-1px); }
.classify-item.selected { background: #ede9fe; border-color: #8b5cf6; box-shadow: 0 0 0 3px rgba(139,92,246,0.25); }
.classify-buckets { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.classify-bucket { border: 2px solid #d8b4fe; border-radius: 14px; padding: 12px; background: #faf5ff; min-height: 120px; cursor: pointer; transition: all 0.15s; }
.classify-bucket:hover { border-color: #8b5cf6; background: #f3e8ff; }
.classify-bucket .bucket-title { font-size: 14px; font-weight: 700; color: #5a3d8a; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; padding-bottom: 6px; border-bottom: 2px solid #e9d5ff; }
.classify-bucket .bucket-items { display: flex; flex-wrap: wrap; gap: 6px; }
.classify-bucket .bucket-items .classify-item { padding: 6px 12px; font-size: 14px; }
.order-list { margin: 14px 0; display: flex; flex-direction: column; gap: 8px; }
.order-row { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border: 2px solid #d8b4fe; background: #faf5ff; border-radius: 12px; font-size: 16px; }
.order-row .order-num { min-width: 32px; height: 32px; border-radius: 50%; background: #ede9fe; color: #5b21b6; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex-shrink: 0; }
.order-row .order-text { flex: 1; color: #333; }
.order-row .order-btns { display: flex; gap: 4px; }
.order-row .order-btns button { width: 34px; height: 34px; border-radius: 8px; border: none; background: #e9d5ff; color: #5a3d8a; font-size: 16px; font-weight: 700; cursor: pointer; transition: all 0.15s; }
.order-row .order-btns button:hover:not(:disabled) { background: #c4b5fd; }
.order-row .order-btns button:disabled { opacity: 0.4; cursor: not-allowed; }
.test-progress { display: flex; justify-content: center; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.test-dot { width: 14px; height: 14px; border-radius: 50%; background: #e9d5ff; }
.test-dot.done { background: #22c55e; }
.test-dot.current { background: #8b5cf6; transform: scale(1.3); }
.test-dot.wrong { background: #ef4444; }
.test-dot.starred { border: 2px solid #f59e0b; width: 16px; height: 16px; }
.test-dot.starred.done { background: #f59e0b; }
.test-grade-big { font-size: 80px; font-weight: 700; text-align: center; line-height: 1; }
.test-grade-5 { color: #22c55e; }
.test-grade-4 { color: #3b82f6; }
.test-grade-3 { color: #f59e0b; }
.test-grade-2 { color: #ef4444; }
.choices-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
@media (max-width: 500px) { .choices-grid { grid-template-columns: 1fr; } }
.choice-btn { padding: 14px 18px; border: 2px solid #d8b4fe; background: #faf5ff; border-radius: 12px; font-size: 16px; font-weight: 500; font-family: inherit; cursor: pointer; text-align: left; transition: all 0.15s; color: #333; line-height: 1.4; }
.choice-btn:hover { border-color: #8b5cf6; background: #f3e8ff; transform: translateY(-1px); }
.choice-btn:disabled { cursor: not-allowed; opacity: 0.75; }
.choice-btn:disabled:hover { transform: none; border-color: #d8b4fe; background: #faf5ff; }
.task-visual { background: #faf5ff; border: 2px solid #e9d5ff; border-radius: 14px; padding: 18px; margin: 14px 0; text-align: center; font-size: 30px; line-height: 1.6; overflow-x: auto; }
.olympiad-item { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: #fff; border: 2px solid #e9d5ff; border-radius: 12px; margin-bottom: 10px; cursor: pointer; transition: all 0.15s; }
.olympiad-item:hover { border-color: #8b5cf6; transform: translateX(4px); }
.olympiad-item.solved { background: #f0fdf4; border-color: #22c55e; }
.olympiad-item.locked { opacity: 0.55; cursor: not-allowed; background: #f3f4f6; }
.olympiad-item.locked:hover { transform: none; border-color: #e9d5ff; }
.olympiad-item .oi-emoji { font-size: 26px; }
.olympiad-item .oi-info { flex: 1; min-width: 0; }
.olympiad-item .oi-title { font-weight: 600; color: #5a3d8a; font-size: 14px; margin-bottom: 3px; }
.olympiad-item .oi-sub { font-size: 12px; color: #888; }
.olympiad-item .oi-status { font-size: 22px; }
.diary-cover { background: linear-gradient(135deg, #5a3d8a, #7c3aed); border-radius: 16px; padding: 20px 24px; color: #fff; margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; }
.diary-cover .cover-title { font-size: 20px; font-weight: 700; }
.diary-cover .cover-sub { font-size: 13px; color: #e9d5ff; margin-top: 4px; }
.diary-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; padding: 12px 16px; background: #faf5ff; border: 2px solid #e9d5ff; border-radius: 12px; margin-top: 20px; }
.diary-nav-btn { background: #8b5cf6; color: #fff; border: none; width: 40px; height: 40px; border-radius: 50%; font-size: 18px; font-weight: 700; cursor: pointer; font-family: inherit; }
.diary-nav-btn:disabled { background: #d8b4fe; cursor: not-allowed; }
.diary-week-label { font-weight: 700; color: #5a3d8a; font-size: 16px; text-align: center; }
.diary-table { width: 100%; border-collapse: collapse; background: #fffdf7; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(90, 61, 138, 0.08); }
.diary-table th { background: #5a3d8a; color: #fff; padding: 12px 8px; font-size: 13px; font-weight: 700; text-align: center; border-right: 1px solid rgba(255,255,255,0.15); }
.diary-table th.subject-col { text-align: left; padding-left: 14px; }
.diary-table td { padding: 8px 8px; border-bottom: 1px solid #ede9fe; border-right: 1px solid #ede9fe; text-align: center; vertical-align: middle; }
.diary-table td.subject-name { text-align: left; padding-left: 14px; font-weight: 600; color: #5a3d8a; background: #faf5ff; font-size: 14px; }
.grade { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; font-weight: 700; font-size: 15px; line-height: 1; padding: 0; box-sizing: border-box; }
.grade-5 { background: #dcfce7; color: #166534; }
.grade-4 { background: #dbeafe; color: #1e40af; }
.grade-3 { background: #fed7aa; color: #9a3412; }
.grade-2 { background: #fecaca; color: #991b1b; }
.grade-empty { color: #d8b4fe; font-size: 18px; }
.grade-info { font-size: 10px; color: #888; margin-top: 3px; line-height: 1.2; }
.diary-legend { margin-top: 16px; display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: #666; padding: 12px 16px; background: #faf5ff; border-radius: 10px; }
.diary-legend .legend-item { display: flex; align-items: center; gap: 6px; }
.diary-legend .grade { width: 26px; height: 26px; font-size: 13px; }
.trainer-section { margin-top: 24px; background: #fffbeb; border-left: 5px solid #f59e0b; border-radius: 12px; padding: 18px 22px; }
.trainer-section h3 { color: #92400e; margin-bottom: 12px; }
.trainer-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed #fde68a; font-size: 14px; }
.trainer-row .day-name { font-weight: 600; color: #78350f; }
.trainer-row .day-result { color: #92400e; }
.trainer-avg { margin-top: 12px; padding-top: 12px; border-top: 2px solid #fde68a; font-size: 15px; color: #78350f; }
.trainer-timer { font-size: 42px; font-weight: 700; text-align: center; color: #5a3d8a; margin-bottom: 8px; letter-spacing: 2px; }
.trainer-timer.warning { color: #ef4444; }
.trainer-stats-row { display: flex; justify-content: space-around; text-align: center; margin-bottom: 24px; padding: 14px; background: #faf5ff; border-radius: 12px; flex-wrap: wrap; gap: 10px; }
.trainer-stat .value { font-size: 24px; font-weight: 700; color: #5a3d8a; }
.trainer-stat .label { font-size: 12px; color: #888; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 4px; }
.trainer-setup { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 12px; }
.trainer-option { padding: 20px; border: 3px solid #e9d5ff; border-radius: 14px; cursor: pointer; text-align: center; transition: all 0.2s; background: #faf5ff; }
.trainer-option:hover { border-color: #8b5cf6; }
.trainer-option.selected { border-color: #8b5cf6; background: #f3e8ff; }
.trainer-option .opt-title { font-size: 16px; font-weight: 700; color: #5a3d8a; margin-bottom: 4px; }
.trainer-option .opt-desc { font-size: 13px; color: #888; }
.trainer-option .opt-emoji { font-size: 32px; display: block; margin-bottom: 8px; }
.trainer-option-disabled { opacity: 0.5; cursor: not-allowed; background: #f3f4f6; border-color: #d1d5db; }
.trainer-option-disabled:hover { border-color: #d1d5db; }
.trainer-option-disabled .opt-title { color: #6b7280; }
.trainer-option-disabled .opt-desc { color: #9ca3af; }
.medals-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-top: 16px; }
.medal-card { background: #fff; border: 2px solid #e9d5ff; border-radius: 14px; padding: 14px 12px; text-align: center; transition: all 0.2s; }
.medal-card.locked { opacity: 0.45; }
.medal-emoji { font-size: 40px; display: block; margin-bottom: 6px; }
.medal-title { font-size: 13px; font-weight: 700; color: #5a3d8a; margin-bottom: 4px; }
.medal-desc { font-size: 11px; color: #888; line-height: 1.3; }
.medal-card.tier-1.earned { background: linear-gradient(135deg, #f0fdf4, #bbf7d0); border-color: #22c55e; }
.medal-card.tier-2.earned { background: linear-gradient(135deg, #f0f9ff, #bae6fd); border-color: #0ea5e9; }
.medal-card.tier-3.earned { background: linear-gradient(135deg, #eef2ff, #c7d2fe); border-color: #6366f1; }
.medal-card.tier-4.earned { background: linear-gradient(135deg, #f5f3ff, #ddd6fe); border-color: #8b5cf6; }
.medal-card.tier-5.earned { background: linear-gradient(135deg, #fffbeb, #fde68a); border-color: #f59e0b; }
.medal-card.tier-6.earned { background: linear-gradient(135deg, #fdf2f8, #fbcfe8); border-color: #ec4899; }
.medal-card.tier-7.earned { background: linear-gradient(135deg, #fef3c7, #fbbf24); border-color: #d97706; }
.medal-section-title { font-size: 18px; font-weight: 700; color: #5a3d8a; margin-top: 24px; margin-bottom: 10px; padding-bottom: 6px; border-bottom: 2px solid #e9d5ff; display: flex; justify-content: space-between; align-items: center; }
.medal-section-title .count { font-size: 13px; color: #888; font-weight: 600; }
.medals-summary { background: linear-gradient(135deg, #faf5ff, #f3e8ff); border-radius: 14px; padding: 16px 20px; margin-bottom: 12px; }
.medals-summary .total { font-size: 32px; font-weight: 700; color: #5a3d8a; }
.medals-summary .total-label { font-size: 13px; color: #888; }
@keyframes confetti-fall { 0% { transform: translateY(-100vh) rotate(0deg); opacity: 1; } 100% { transform: translateY(100vh) rotate(720deg); opacity: 0; } }
.confetti { position: fixed; top: 0; width: 12px; height: 12px; pointer-events: none; z-index: 9999; animation: confetti-fall 2.5s linear forwards; }
@keyframes star-pop { 0% { transform: scale(0) rotate(0deg); opacity: 0; } 50% { transform: scale(1.4) rotate(180deg); opacity: 1; } 100% { transform: scale(1) rotate(360deg); opacity: 0; } }
.star-pop { position: fixed; font-size: 60px; pointer-events: none; z-index: 9998; animation: star-pop 1.2s ease-out forwards; }
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.6); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-box { background: #fff; border-radius: 16px; padding: 24px; max-width: 600px; width: 100%; max-height: 90vh; overflow-y: auto; }
.modal-box h2 { margin-bottom: 14px; }
.modal-icon { font-size: 56px; text-align: center; display: block; margin-bottom: 12px; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; margin-top: 12px; }
.choice-card { padding: 16px 10px; border: 3px solid #e9d5ff; border-radius: 14px; cursor: pointer; text-align: center; transition: all 0.2s; background: #faf5ff; }
.choice-card:hover { transform: translateY(-3px); }
.choice-card.selected { border-color: #8b5cf6; background: #f3e8ff; }
.choice-card .cc-emoji { font-size: 36px; display: block; margin-bottom: 6px; }
.choice-card .cc-label { font-size: 13px; font-weight: 600; color: #5a3d8a; }
.theme-preview { width: 100%; height: 30px; border-radius: 6px; margin-bottom: 6px; }
.avatar-upload-box { text-align: center; padding: 16px; background: #faf5ff; border-radius: 14px; margin-top: 12px; }
.avatar-preview { width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 12px; background: #f3e8ff; display: flex; align-items: center; justify-content: center; overflow: hidden; border: 3px solid #d8b4fe; }
.avatar-preview img { width: 100%; height: 100%; object-fit: cover; }
.avatar-preview .avatar-emoji-big { font-size: 64px; }
.report-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 12px; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 8px rgba(90, 61, 138, 0.06); }
.report-table th { background: #5a3d8a; color: #fff; padding: 10px 12px; text-align: left; font-weight: 700; font-size: 13px; border-right: 1px solid rgba(255,255,255,0.12); }
.report-table th:last-child { border-right: none; }
.report-table th.rt-num { text-align: center; width: 88px; }
.report-table td { padding: 8px 12px; border-bottom: 1px solid #ede9fe; border-right: 1px solid #ede9fe; vertical-align: middle; color: #333; }
.report-table td:last-child { border-right: none; }
.report-table tr:last-child td { border-bottom: none; }
.report-table .subject-row td { background: #f3e8ff; font-weight: 700; color: #5a3d8a; padding: 8px 12px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; border-right: none; border-bottom: 1px solid #e9d5ff; }
.report-table .rt-topic { text-align: left; }
.report-table .rt-num { text-align: center; color: #666; font-variant-numeric: tabular-nums; }
.report-table .rt-num.rt-good { color: #166534; font-weight: 700; }
.report-table .rt-test { text-align: center; }
.report-table .rt-mark { display: inline-block; padding: 2px 10px; border-radius: 10px; font-size: 12px; font-weight: 700; }
.report-table .rt-mark.passed { background: #dcfce7; color: #166534; }
.report-table .rt-mark.empty { color: #c4b5fd; }
body.theme-dark .report-table { background: #374151; box-shadow: none; }
body.theme-dark .report-table th { background: #4c1d95; }
body.theme-dark .report-table td { border-color: #4b5563; color: #e5e7eb; }
body.theme-dark .report-table .subject-row td { background: #4b5563; color: #e9d5ff; border-color: #6b7280; }
@media (max-width: 600px) {
  .report-table { font-size: 12px; }
  .report-table th, .report-table td { padding: 6px 8px; }
  .report-table th.rt-num { width: 60px; }
}
.attempt-badge { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 700; background: #fef3c7; color: #92400e; margin-left: 8px; }
.attempt-badge.danger { background: #fee2e2; color: #991b1b; }
.block-timer { text-align: center; padding: 20px; background: #fef2f2; border: 2px dashed #ef4444; border-radius: 14px; margin-bottom: 14px; }
.block-timer .bt-label { font-size: 14px; color: #991b1b; font-weight: 700; text-transform: uppercase; margin-bottom: 8px; }
.block-timer .bt-time { font-size: 42px; font-weight: 700; color: #dc2626; letter-spacing: 3px; }
.block-timer .bt-hint { font-size: 13px; color: #7f1d1d; margin-top: 8px; }
.solved-task-card { background: #fafafa; border: 2px dashed #d1d5db; border-radius: 14px; padding: 16px 20px; margin-top: 12px; opacity: 0.55; transition: opacity 0.25s; }
.solved-task-card:hover { opacity: 0.95; }
.solved-task-card .stc-header { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #6b7280; font-weight: 700; text-transform: uppercase; margin-bottom: 8px; }
.solved-task-card .stc-question { font-size: 15px; color: #4b5563; line-height: 1.5; margin-bottom: 10px; }
.solved-task-card .stc-row { font-size: 14px; color: #6b7280; line-height: 1.6; padding: 3px 0; }
.solved-task-card .stc-answer-ok { color: #166534; font-weight: 700; }
.solved-task-card .stc-answer-no { color: #991b1b; font-weight: 700; }
@media (max-width: 700px) {
  .app-layout { flex-direction: column; align-items: stretch; }
  .sidebar { position: static; width: 100%; height: auto; padding: 10px 0; }
  .sidebar-header { padding: 6px 14px; display: flex; justify-content: space-between; align-items: center; }
  .student-avatar { width: 40px; height: 40px; font-size: 26px; }
  .student-name { font-size: 15px; }
  .subject-tabs { display: flex; overflow-x: auto; overflow-y: hidden; padding: 8px; }
  .subject-tab { flex-shrink: 0; flex-direction: column; padding: 8px 12px; gap: 3px; font-size: 11px; }
  .subject-tab.active { border-left: none; border-bottom: 3px solid #d8b4fe; padding-left: 12px; }
  .subject-tab .tab-emoji { font-size: 20px; }
  .subject-tab .tab-progress { display: none; }
  .sidebar-footer { flex-direction: row; padding: 8px; flex-wrap: wrap; gap: 6px; }
  .side-btn { flex: 1 1 45%; justify-content: center; font-size: 12px; padding: 8px; }
  .main-content { padding: 16px 16px 40px; }
  .content-box { padding: 20px 20px 30px; border-radius: 16px; }
  .sidebar-section-title { display: none; }
  .diary-table th, .diary-table td { padding: 6px 4px; font-size: 12px; }
  .grade { width: 26px; height: 26px; font-size: 13px; }
  .trainer-setup { grid-template-columns: 1fr; }
}

/* ============================================================
   ██  ТЕМА ROBLOX — тёмная, красный акцент, «пластик»  ██
   ============================================================ */
body.theme-roblox {
  background: #0D0E12;
  color: #E8EAED;
  font-family: 'Gotham', 'Builder Sans', 'Montserrat', 'Segoe UI Variable', 'Segoe UI', 'Inter', system-ui, -apple-system, sans-serif;
  letter-spacing: -0.01em;
}
body.theme-roblox .content-box {
  background: #1A1C22;
  box-shadow: 0 4px 24px rgba(0,0,0,0.6);
  border-radius: 8px;
  position: relative;
  border-top: 4px solid #E2231A;
  border-bottom: 4px solid #E2231A;
}
body.theme-roblox h1, body.theme-roblox h2, body.theme-roblox h3 { color: #F0F2F5; letter-spacing: -0.02em; }
body.theme-roblox h1 { font-weight: 900; font-size: 32px; transform: skew(-4deg); text-transform: uppercase; letter-spacing: 0.02em; display: flex; align-items: center; gap: 14px; }
body.theme-roblox h1::before {
  content: '';
  display: inline-block;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background-color: #E2231A;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><g transform='rotate(-15 50 50)'><rect x='10' y='10' width='80' height='80' rx='14' fill='%23E2231A'/><ellipse cx='50' cy='50' rx='20' ry='24' fill='none' stroke='white' stroke-width='9'/></g></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 10px;
  transform: rotate(-4deg);
}
body.theme-roblox h2, body.theme-roblox h3 { font-weight: 800; transform: skew(-2deg); }
body.theme-roblox p { color: #B8BEC9; }
body.theme-roblox .sidebar { background: #0A0B0E; border-right: 1px solid #1F2128; }
body.theme-roblox .sidebar-header { border-bottom: 1px solid #1F2128; position: relative; }
body.theme-roblox .roblox-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid #1F2128; }
body.theme-roblox .roblox-logo { width: 36px; height: 36px; flex-shrink: 0; filter: drop-shadow(0 0 10px rgba(226,35,26,0.5)); }
body.theme-roblox .roblox-wordmark { font-family: 'Gotham', 'Builder Sans', 'Montserrat', 'Segoe UI', sans-serif; font-weight: 900; font-size: 15px; letter-spacing: 0.15em; color: #F0F2F5; transform: skew(-6deg); text-transform: uppercase; }
body.theme-roblox .student-avatar { background: rgba(226,35,26,0.2); border: 2px solid #E2231A; border-radius: 8px; }
body.theme-roblox .student-name { color: #F0F2F5; font-weight: 800; }
body.theme-roblox .student-stars { color: #E2231A; font-weight: 800; }
body.theme-roblox .sb-streak { color: #FFA726; }
body.theme-roblox .sidebar-section-title { color: #4B5563; font-weight: 800; }
body.theme-roblox .subject-tab { color: #B8BEC9; font-weight: 600; margin: 4px 8px; padding: 10px 12px; border-radius: 6px; border-left: 3px solid transparent; transition: all 0.15s; }
body.theme-roblox .subject-tab:hover { background: rgba(226,35,26,0.1); color: #F0F2F5; border-left-color: rgba(226,35,26,0.5); }
body.theme-roblox .subject-tab.active { background: linear-gradient(90deg, rgba(226,35,26,0.25), rgba(226,35,26,0.05)); color: #fff; border-left: 3px solid #E2231A; padding-left: 12px; box-shadow: inset 0 0 20px rgba(226,35,26,0.15); }
body.theme-roblox .subject-tab .tab-emoji { filter: drop-shadow(0 0 4px rgba(0,0,0,0.5)); }
body.theme-roblox .subject-tab .tab-progress { color: #E2231A; font-weight: 800; }
body.theme-roblox .sidebar-footer { border-top: 1px solid #1F2128; }
body.theme-roblox .side-btn { background: linear-gradient(180deg, #2D3037 0%, #1F2128 100%); color: #E8EAED; border: 1px solid #353944; border-bottom: 2px solid #0A0B0E; border-radius: 6px; font-weight: 700; box-shadow: inset 0 1px 0 rgba(255,255,255,0.05); transition: all 0.1s; }
body.theme-roblox .side-btn:hover { background: linear-gradient(180deg, #353944 0%, #23252C 100%); border-color: #E2231A; color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 0 12px rgba(226,35,26,0.3); }
body.theme-roblox .side-btn:active { transform: translateY(2px); box-shadow: none; }
body.theme-roblox .side-btn.active { background: linear-gradient(180deg, #E2231A 0%, #B71C1C 100%); color: #fff; border-color: #E2231A; border-bottom: 2px solid #7A1010; box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 0 16px rgba(226,35,26,0.5); }
body.theme-roblox .card { background: #23252C; border-color: #353944; color: #E8EAED; border-radius: 6px; border-width: 2px; position: relative; }
body.theme-roblox .card:hover { border-color: #E2231A; transform: translateY(-2px); box-shadow: 0 6px 22px rgba(226,35,26,0.25); }
body.theme-roblox .topic-item .topic-title { color: #F0F2F5; font-weight: 800; }
body.theme-roblox .topic-item .topic-progress { color: #8B92A0; }
body.theme-roblox .topic-item .stars { color: #FFA726; }
body.theme-roblox .topic-locked { background: #1A1C22 !important; border-color: #2D3037 !important; }
body.theme-roblox .topic-locked .topic-title { color: #4B5563; }
body.theme-roblox .topic-locked .lock-icon { color: #4B5563; }
body.theme-roblox .topic-test-ready { background: #4A3419 !important; border-color: #FFA726 !important; }
body.theme-roblox .btn { border-radius: 8px; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase; font-size: 13px; padding: 13px 26px; position: relative; border: none; transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.15s; font-family: inherit; }
body.theme-roblox .btn:active:not(:disabled) { transform: translateY(3px); }
body.theme-roblox .btn-primary { background: linear-gradient(180deg, #F03228 0%, #E2231A 50%, #B71C1C 100%); color: #fff; box-shadow: 0 4px 0 #7A1010, inset 0 1px 0 rgba(255,255,255,0.3); }
body.theme-roblox .btn-primary:hover:not(:disabled) { background: linear-gradient(180deg, #FF4035 0%, #E2231A 50%, #C71C1C 100%); box-shadow: 0 4px 0 #7A1010, inset 0 1px 0 rgba(255,255,255,0.4), 0 0 20px rgba(226,35,26,0.6); transform: translateY(-1px); }
body.theme-roblox .btn-primary:active:not(:disabled) { box-shadow: 0 1px 0 #7A1010, inset 0 2px 4px rgba(0,0,0,0.4); }
body.theme-roblox .btn-secondary { background: linear-gradient(180deg, #3E4249 0%, #2D3037 100%); color: #E8EAED; box-shadow: 0 4px 0 #181A1F, inset 0 1px 0 rgba(255,255,255,0.08); }
body.theme-roblox .btn-secondary:hover:not(:disabled) { background: linear-gradient(180deg, #4E5259 0%, #353944 100%); border-color: #E2231A; color: #fff; box-shadow: 0 4px 0 #181A1F, inset 0 1px 0 rgba(255,255,255,0.15); }
body.theme-roblox .btn-secondary:active:not(:disabled) { box-shadow: 0 1px 0 #181A1F, inset 0 2px 4px rgba(0,0,0,0.4); }
body.theme-roblox .btn-success { background: linear-gradient(180deg, #00CC80 0%, #00B06F 50%, #008C58 100%); color: #fff; box-shadow: 0 4px 0 #005538, inset 0 1px 0 rgba(255,255,255,0.3); }
body.theme-roblox .btn-success:hover:not(:disabled) { background: linear-gradient(180deg, #00E08C 0%, #00C97F 50%, #009C62 100%); box-shadow: 0 4px 0 #005538, inset 0 1px 0 rgba(255,255,255,0.4), 0 0 20px rgba(0,176,111,0.5); }
body.theme-roblox .btn-success:active:not(:disabled) { box-shadow: 0 1px 0 #005538, inset 0 2px 4px rgba(0,0,0,0.4); }
body.theme-roblox .btn-warning { background: linear-gradient(180deg, #FFB84D 0%, #FFA726 50%, #E08700 100%); color: #1A1C22; box-shadow: 0 4px 0 #8A5500, inset 0 1px 0 rgba(255,255,255,0.4); }
body.theme-roblox .btn-warning:hover:not(:disabled) { background: linear-gradient(180deg, #FFC566 0%, #FFB84D 50%, #F09500 100%); box-shadow: 0 4px 0 #8A5500, inset 0 1px 0 rgba(255,255,255,0.5), 0 0 20px rgba(255,167,38,0.5); }
body.theme-roblox .btn-warning:active:not(:disabled) { box-shadow: 0 1px 0 #8A5500, inset 0 2px 4px rgba(0,0,0,0.3); }
body.theme-roblox .btn-danger { background: linear-gradient(180deg, #F03228 0%, #E2231A 50%, #B71C1C 100%); color: #fff; box-shadow: 0 4px 0 #7A1010, inset 0 1px 0 rgba(255,255,255,0.3); }
body.theme-roblox .btn-danger:active:not(:disabled) { box-shadow: 0 1px 0 #7A1010, inset 0 2px 4px rgba(0,0,0,0.4); }
body.theme-roblox .btn-big { padding: 20px 32px; font-size: 15px; }
body.theme-roblox .btn:disabled { opacity: 0.4; filter: grayscale(0.6); }
body.theme-roblox .progress-bar-container { background: #2D3037; border-radius: 4px; box-shadow: inset 0 2px 4px rgba(0,0,0,0.3); height: 14px; }
body.theme-roblox .progress-bar-fill { background: linear-gradient(90deg, #B71C1C, #E2231A, #FF3B30); border-radius: 4px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 0 12px rgba(226,35,26,0.5); }
body.theme-roblox .back-link { color: #E2231A; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; font-size: 12px; }
body.theme-roblox .back-link:hover { color: #FF3B30; text-shadow: 0 0 8px rgba(226,35,26,0.6); }
body.theme-roblox .task-type-badge { border-radius: 4px; letter-spacing: 0.08em; font-weight: 900; }
body.theme-roblox .badge-simple { background: #1E3A5F; color: #93C5FD; }
body.theme-roblox .badge-medium { background: #4A3419; color: #FBBF24; }
body.theme-roblox .badge-olympiad { background: #4C1D1D; color: #FCA5A5; }
body.theme-roblox .badge-test { background: #2D1B4E; color: #C4B5FD; }
body.theme-roblox .badge-test-star { background: linear-gradient(135deg,#4A3419,#78350F); color: #FCD34D; }
body.theme-roblox .choice-btn { background: linear-gradient(180deg, #2D3037 0%, #23252C 100%); border: 1px solid #353944; border-bottom: 3px solid #0A0B0E; color: #E8EAED; border-radius: 6px; font-weight: 600; box-shadow: inset 0 1px 0 rgba(255,255,255,0.05); }
body.theme-roblox .choice-btn:hover:not(:disabled) { background: linear-gradient(180deg, #3E4249 0%, #2D3037 100%); border-color: #E2231A; color: #fff; transform: translateY(-1px); box-shadow: 0 4px 0 #0A0B0E, 0 0 16px rgba(226,35,26,0.35); }
body.theme-roblox .choice-btn:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 0 0 #0A0B0E; }
body.theme-roblox .choice-btn:disabled { opacity: 0.6; }
body.theme-roblox .answer-input { background: #1A1C22; color: #E8EAED; border-color: #353944; border-radius: 6px; font-weight: 600; }
body.theme-roblox .answer-input:focus { border-color: #E2231A; box-shadow: 0 0 0 3px rgba(226,35,26,0.25), 0 0 16px rgba(226,35,26,0.2); }
body.theme-roblox .answer-input::placeholder { color: #6B7280; }
body.theme-roblox .answer-input:disabled { background: #2D3037; color: #6B7280; }
body.theme-roblox .feedback { border-radius: 6px; font-weight: 700; }
body.theme-roblox .feedback.correct { background: linear-gradient(135deg, #0F3D2A, #14532D); color: #86EFAC; border-left: 4px solid #00B06F; }
body.theme-roblox .feedback.wrong { background: linear-gradient(135deg, #4C1D1D, #3B1F2B); color: #FCA5A5; border-left: 4px solid #E2231A; }
body.theme-roblox .feedback.hint { background: linear-gradient(135deg, #4A3419, #3A2814); color: #FCD34D; border-left: 4px solid #FFA726; }
body.theme-roblox .feedback.hint strong { color: #FDE68A; }
body.theme-roblox .feedback.explanation { background: linear-gradient(135deg, #0F3D2A, #14532D); color: #86EFAC; border-left: 4px solid #00B06F; }
body.theme-roblox .feedback.explanation strong { color: #BBF7D0; }
body.theme-roblox .feedback.blocked { background: #4C1D1D; color: #FCA5A5; border-color: #E2231A; }
body.theme-roblox .course-rule { background: #0F3D2A; border-left-color: #00B06F; border-radius: 6px; }
body.theme-roblox .course-rule-label { color: #86EFAC; }
body.theme-roblox .course-rule-text { color: #BBF7D0; }
body.theme-roblox .course-example { background: #0F2A40; border-color: #1E5A8A; border-radius: 6px; }
body.theme-roblox .course-example-label { color: #93C5FD; }
body.theme-roblox .course-example-problem { color: #BFDBFE; }
body.theme-roblox .course-example-steps li { color: #BFDBFE; }
body.theme-roblox .course-example-steps li::before { background: linear-gradient(180deg, #E2231A, #B71C1C); box-shadow: inset 0 1px 0 rgba(255,255,255,0.3); border-radius: 4px; }
body.theme-roblox .course-example-answer { border-top-color: #1E5A8A; color: #BFDBFE; }
body.theme-roblox .course-mistake { background: #4C1D1D; border-left-color: #E2231A; border-radius: 6px; }
body.theme-roblox .course-mistake-label { color: #FCA5A5; }
body.theme-roblox .course-mistake-text { color: #FECACA; }
body.theme-roblox .course-tip { background: #4A3419; border-left-color: #FBBF24; border-radius: 6px; }
body.theme-roblox .course-tip-label { color: #FCD34D; }
body.theme-roblox .course-tip-text { color: #FDE68A; }
body.theme-roblox .course-block-heading { color: #F0F2F5; border-bottom-color: #353944; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; transform: skew(-2deg); }
body.theme-roblox .course-block-text { color: #E8EAED; }
body.theme-roblox .course-list li { color: #E8EAED; }
body.theme-roblox .course-list li::before { color: #E2231A; }
body.theme-roblox .course-example.course-check { background: #3B1F2B !important; border-color: #E2231A !important; }
body.theme-roblox .course-example.course-check .course-example-label { color: #FCA5A5 !important; }
body.theme-roblox .course-example.course-check .course-example-problem { color: #FECACA !important; }
body.theme-roblox .mode-card { border-radius: 8px; border-width: 2px; position: relative; }
body.theme-roblox .mode-card.study { background: linear-gradient(180deg,#4A3419,#3A2814); border-color: #FBBF24; }
body.theme-roblox .mode-card.study .mode-title { color: #FCD34D; }
body.theme-roblox .mode-card.practice { background: linear-gradient(180deg,#0F2A40,#0A1F30); border-color: #60A5FA; }
body.theme-roblox .mode-card.practice .mode-title { color: #BFDBFE; }
body.theme-roblox .mode-card.test { background: linear-gradient(180deg,#3B1F2B,#2A1520); border-color: #E2231A; }
body.theme-roblox .mode-card.test .mode-title { color: #FECACA; }
body.theme-roblox .mode-card.test.passed { background: linear-gradient(180deg,#0F3D2A,#0A2A1C); border-color: #00B06F; }
body.theme-roblox .mode-card.test.passed .mode-title { color: #86EFAC; }
body.theme-roblox .mode-card.test.locked { background: #23252C; border-color: #353944; }
body.theme-roblox .mode-card.test.locked .mode-title { color: #6B7280; }
body.theme-roblox .mode-card .mode-desc { color: #9AA0A6; }
body.theme-roblox .mode-card .mode-title { font-weight: 900; text-transform: uppercase; letter-spacing: 0.05em; }
body.theme-roblox .match-item { background: linear-gradient(180deg, #2D3037 0%, #23252C 100%); border-color: #353944; color: #E8EAED; border-radius: 6px; border-bottom-width: 3px; border-bottom-color: #0A0B0E; }
body.theme-roblox .match-item:hover { border-color: #E2231A; background: linear-gradient(180deg,#3E4249,#2D3037); }
body.theme-roblox .match-item.selected { border-color: #E2231A; background: linear-gradient(180deg,#4C1D1D,#3B1F2B); box-shadow: 0 0 0 3px rgba(226,35,26,0.25), 0 0 16px rgba(226,35,26,0.3); }
body.theme-roblox .match-item.matched { background: linear-gradient(180deg,#0F3D2A,#14532D); border-color: #00B06F; color: #86EFAC; }
body.theme-roblox .match-item.match-error { background: #4C1D1D; border-color: #E2231A; color: #FCA5A5; }
body.theme-roblox .odd-item { background: linear-gradient(180deg, #2D3037 0%, #23252C 100%); border-color: #353944; color: #E8EAED; border-radius: 6px; border-bottom-width: 3px; border-bottom-color: #0A0B0E; }
body.theme-roblox .odd-item:hover { border-color: #E2231A; background: linear-gradient(180deg,#3E4249,#2D3037); }
body.theme-roblox .odd-item.selected { border-color: #E2231A; background: linear-gradient(180deg,#4C1D1D,#3B1F2B); box-shadow: 0 0 0 3px rgba(226,35,26,0.25); }
body.theme-roblox .blank-text { background: #23252C; border-color: #353944; color: #E8EAED; border-radius: 6px; }
body.theme-roblox .classify-pool { background: #1A1C22; border-color: #353944; border-radius: 6px; }
body.theme-roblox .classify-pool:empty::before { color: #4B5563; }
body.theme-roblox .classify-item { background: linear-gradient(180deg,#2D3037,#23252C); border-color: #353944; color: #E8EAED; border-radius: 6px; }
body.theme-roblox .classify-item:hover { border-color: #E2231A; }
body.theme-roblox .classify-item.selected { background: linear-gradient(180deg,#4C1D1D,#3B1F2B); border-color: #E2231A; box-shadow: 0 0 0 3px rgba(226,35,26,0.25); }
body.theme-roblox .classify-bucket { background: #1A1C22; border-color: #353944; border-radius: 8px; }
body.theme-roblox .classify-bucket:hover { border-color: #E2231A; background: #23252C; }
body.theme-roblox .classify-bucket .bucket-title { color: #F0F2F5; border-bottom-color: #353944; font-weight: 800; letter-spacing: 0.08em; }
body.theme-roblox .order-row { background: linear-gradient(180deg,#2D3037,#23252C); border-color: #353944; color: #E8EAED; border-radius: 6px; border-bottom-width: 3px; border-bottom-color: #0A0B0E; }
body.theme-roblox .order-row .order-num { background: linear-gradient(180deg,#E2231A,#B71C1C); color: #fff; border-radius: 6px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.3); }
body.theme-roblox .order-row .order-text { color: #E8EAED; }
body.theme-roblox .order-row .order-btns button { background: linear-gradient(180deg,#3E4249,#2D3037); color: #E8EAED; border-radius: 6px; border-bottom: 2px solid #0A0B0E; }
body.theme-roblox .order-row .order-btns button:hover:not(:disabled) { background: linear-gradient(180deg,#E2231A,#B71C1C); color: #fff; }
body.theme-roblox .task-kind-hint { background: #3B1F2B; border-left-color: #E2231A; color: #FECACA; border-radius: 6px; font-weight: 600; }
body.theme-roblox .task-kind-hint strong { color: #FCA5A5; }
body.theme-roblox .task-visual { background: #23252C; border-color: #353944; color: #E8EAED; border-radius: 8px; }
body.theme-roblox .block-timer { background: linear-gradient(135deg,#3B1F2B,#4C1D1D); border-color: #E2231A; border-radius: 8px; }
body.theme-roblox .block-timer .bt-label { color: #FCA5A5; }
body.theme-roblox .block-timer .bt-time { color: #E2231A; font-weight: 900; }
body.theme-roblox .block-timer .bt-hint { color: #FECACA; }
body.theme-roblox .solved-task-card { background: #1A1C22; border-color: #353944; border-radius: 6px; }
body.theme-roblox .solved-task-card .stc-header { color: #6B7280; }
body.theme-roblox .solved-task-card .stc-question { color: #B8BEC9; }
body.theme-roblox .solved-task-card .stc-row { color: #8B92A0; }
body.theme-roblox .solved-task-card .stc-answer-ok { color: #86EFAC; }
body.theme-roblox .solved-task-card .stc-answer-no { color: #FCA5A5; }
body.theme-roblox .format-hint { background: #2D3037; color: #9AA0A6; border-left-color: #E2231A; border-radius: 6px; }
body.theme-roblox .trainer-timer { color: #F0F2F5; font-weight: 900; }
body.theme-roblox .trainer-timer.warning { color: #E2231A; text-shadow: 0 0 16px rgba(226,35,26,0.6); }
body.theme-roblox .trainer-stats-row { background: #23252C; border-radius: 6px; border: 1px solid #353944; }
body.theme-roblox .trainer-stat .value { color: #E2231A; font-weight: 900; }
body.theme-roblox .trainer-stat .label { color: #8B92A0; font-weight: 700; }
body.theme-roblox .trainer-option { background: linear-gradient(180deg,#2D3037,#23252C); border-color: #353944; border-radius: 8px; border-bottom-width: 3px; border-bottom-color: #0A0B0E; }
body.theme-roblox .trainer-option:hover { border-color: #E2231A; }
body.theme-roblox .trainer-option.selected { border-color: #E2231A; background: linear-gradient(180deg,#4C1D1D,#3B1F2B); box-shadow: 0 0 20px rgba(226,35,26,0.3); }
body.theme-roblox .trainer-option .opt-title { color: #F0F2F5; font-weight: 800; }
body.theme-roblox .trainer-option .opt-desc { color: #8B92A0; }
body.theme-roblox .trainer-option-disabled { background: #23252C; border-color: #2D3037; }
body.theme-roblox .trainer-option-disabled .opt-title { color: #6B7280; }
body.theme-roblox .trainer-option-disabled .opt-desc { color: #4B5563; }
body.theme-roblox .trainer-option-disabled:hover { border-color: #2D3037; }
body.theme-roblox .medal-card { background: linear-gradient(180deg,#2D3037,#23252C); border-color: #353944; border-radius: 6px; border-bottom-width: 3px; border-bottom-color: #0A0B0E; }
body.theme-roblox .medal-title { color: #F0F2F5; font-weight: 800; }
body.theme-roblox .medal-desc { color: #8B92A0; }
body.theme-roblox .medal-section-title { color: #F0F2F5; border-bottom-color: #353944; font-weight: 900; text-transform: uppercase; }
body.theme-roblox .medal-section-title .count { color: #8B92A0; }
body.theme-roblox .medals-summary { background: linear-gradient(135deg,#1A1C22,#23252C); }
body.theme-roblox .medals-summary .total { color: #E2231A; font-weight: 900; }
body.theme-roblox .medals-summary .total-label { color: #8B92A0; }
body.theme-roblox .medal-card.tier-1.earned { background: linear-gradient(180deg, #0F3D2A, #14532D); border-color: #00B06F; border-bottom-color: #005538; }
body.theme-roblox .medal-card.tier-2.earned { background: linear-gradient(180deg, #0F2A40, #1E3A5F); border-color: #3B82F6; border-bottom-color: #1E3A5F; }
body.theme-roblox .medal-card.tier-3.earned { background: linear-gradient(180deg, #1E1B4B, #312E81); border-color: #6366F1; border-bottom-color: #1E1B4B; }
body.theme-roblox .medal-card.tier-4.earned { background: linear-gradient(180deg, #3B1F2B, #4C1D95); border-color: #A855F7; border-bottom-color: #3B1F2B; }
body.theme-roblox .medal-card.tier-5.earned { background: linear-gradient(180deg, #4A3419, #78350F); border-color: #FBBF24; border-bottom-color: #4A3419; }
body.theme-roblox .medal-card.tier-6.earned { background: linear-gradient(180deg, #3B1F2B, #831843); border-color: #EC4899; border-bottom-color: #3B1F2B; }
body.theme-roblox .medal-card.tier-7.earned { background: linear-gradient(180deg, #4A3419, #B45309); border-color: #F59E0B; border-bottom-color: #4A3419; }
body.theme-roblox .diary-cover { background: linear-gradient(135deg, #0A0B0E 0%, #E2231A 200%); border-radius: 8px; border-top: 4px solid #E2231A; }
body.theme-roblox .diary-cover .cover-title { font-weight: 900; text-transform: uppercase; letter-spacing: 0.05em; }
body.theme-roblox .diary-cover .cover-sub { color: #FECACA; }
body.theme-roblox .diary-nav { background: #23252C; border-color: #353944; border-radius: 6px; }
body.theme-roblox .diary-week-label { color: #F0F2F5; font-weight: 800; }
body.theme-roblox .diary-nav-btn { background: linear-gradient(180deg,#E2231A,#B71C1C); color: #fff; box-shadow: 0 3px 0 #7A1010, inset 0 1px 0 rgba(255,255,255,0.3); }
body.theme-roblox .diary-nav-btn:hover:not(:disabled) { background: linear-gradient(180deg,#F03228,#E2231A); box-shadow: 0 3px 0 #7A1010, inset 0 1px 0 rgba(255,255,255,0.4), 0 0 16px rgba(226,35,26,0.5); }
body.theme-roblox .diary-nav-btn:disabled { background: #3B1F2B; box-shadow: none; }
body.theme-roblox .diary-table { background: #1A1C22; box-shadow: 0 2px 8px rgba(0,0,0,0.6); border-radius: 6px; }
body.theme-roblox .diary-table th { background: #0A0B0E; color: #F0F2F5; border-right-color: #23252C; text-transform: uppercase; font-weight: 800; letter-spacing: 0.05em; }
body.theme-roblox .diary-table td { border-color: #23252C; color: #E8EAED; }
body.theme-roblox .diary-table td.subject-name { background: #23252C; color: #F0F2F5; font-weight: 700; }
body.theme-roblox .diary-legend { background: #23252C; color: #8B92A0; border-radius: 6px; }
body.theme-roblox .trainer-section { background: #4A3419; border-left-color: #FBBF24; border-radius: 6px; }
body.theme-roblox .trainer-section h3 { color: #FCD34D; }
body.theme-roblox .trainer-row { border-bottom-color: #5A4420; }
body.theme-roblox .trainer-row .day-name { color: #FDE68A; }
body.theme-roblox .trainer-row .day-result { color: #FCD34D; }
body.theme-roblox .trainer-avg { border-top-color: #5A4420; color: #FDE68A; }
body.theme-roblox .streak-card { background: linear-gradient(135deg,#2D1B0E,#4A3419); border-color: #FFA726; border-radius: 6px; }
body.theme-roblox .streak-title { color: #FCD34D; font-weight: 800; }
body.theme-roblox .streak-count { background: #0A0B0E; color: #FDE68A; }
body.theme-roblox .streak-dot { background: #4A3419; border-color: #78350F; border-radius: 3px; }
body.theme-roblox .streak-dot.active { background: linear-gradient(180deg, #FFA726, #E2231A); border-color: #E2231A; box-shadow: 0 0 8px rgba(255,167,38,0.6); }
body.theme-roblox .streak-dot.today { border-color: #FDE68A; border-width: 2.5px; }
body.theme-roblox .streak-hint { color: #FCD34D; }
body.theme-roblox .daily-goal-card { background: linear-gradient(135deg,#1A1C22,#3B1F2B) !important; border-color: #E2231A !important; border-radius: 6px; }
body.theme-roblox .daily-goal-card h3 { color: #FECACA !important; font-weight: 900; text-transform: uppercase; letter-spacing: 0.03em; }
body.theme-roblox .daily-goal-card p { color: #B8BEC9 !important; }
body.theme-roblox .daily-goal-card.daily-goal-done { background: linear-gradient(135deg,#0F3D2A,#14532D) !important; border-color: #00B06F !important; }
body.theme-roblox .daily-goal-card.daily-goal-done h3 { color: #86EFAC !important; }
body.theme-roblox .review-card.wrong-card { background: linear-gradient(135deg,#3B1F2B,#4C1D1D) !important; border-color: #E2231A !important; border-radius: 6px; }
body.theme-roblox .review-card.wrong-card h3 { color: #FCA5A5 !important; font-weight: 800; }
body.theme-roblox .review-card.wrong-card p { color: #FECACA !important; }
body.theme-roblox .review-card.due-card { background: linear-gradient(135deg,#0F2A40,#1E3A5F) !important; border-color: #3B82F6 !important; border-radius: 6px; }
body.theme-roblox .review-card.due-card h3 { color: #93C5FD !important; font-weight: 800; }
body.theme-roblox .review-card.due-card p { color: #BFDBFE !important; }
body.theme-roblox .olympiad-item { background: linear-gradient(180deg,#2D3037,#23252C); border-color: #353944; border-radius: 6px; border-bottom-width: 3px; border-bottom-color: #0A0B0E; }
body.theme-roblox .olympiad-item:hover { border-color: #E2231A; transform: translateX(4px); box-shadow: 0 0 16px rgba(226,35,26,0.25); }
body.theme-roblox .olympiad-item.solved { background: linear-gradient(180deg,#0F3D2A,#14532D); border-color: #00B06F; }
body.theme-roblox .olympiad-item.locked { background: #1A1C22; border-color: #2D3037; }
body.theme-roblox .olympiad-item.locked:hover { border-color: #2D3037; transform: none; }
body.theme-roblox .olympiad-item .oi-title { color: #F0F2F5; font-weight: 700; }
body.theme-roblox .olympiad-item .oi-sub { color: #8B92A0; }
body.theme-roblox .test-dot { background: #353944; }
body.theme-roblox .test-dot.done { background: #00B06F; box-shadow: 0 0 8px rgba(0,176,111,0.5); }
body.theme-roblox .test-dot.current { background: #E2231A; box-shadow: 0 0 12px rgba(226,35,26,0.7); }
body.theme-roblox .test-dot.wrong { background: #E2231A; }
body.theme-roblox .test-dot.starred { border-color: #FFA726; }
body.theme-roblox .test-dot.starred.done { background: #FFA726; }
body.theme-roblox .test-grade-5 { color: #00B06F; }
body.theme-roblox .test-grade-4 { color: #60A5FA; }
body.theme-roblox .test-grade-3 { color: #FFA726; }
body.theme-roblox .test-grade-2 { color: #E2231A; }
body.theme-roblox .test-review-block h3 { color: #F0F2F5; border-bottom-color: #353944; }
body.theme-roblox .test-review-item { background: #23252C; border-left-color: #353944; border-radius: 6px; }
body.theme-roblox .test-review-item.test-review-ok { background: #0F3D2A; border-left-color: #00B06F; }
body.theme-roblox .test-review-item.test-review-no { background: #3B1F2B; border-left-color: #E2231A; }
body.theme-roblox .test-review-item.test-review-star.test-review-ok { background: linear-gradient(135deg,#4A3419,#3B1F2B); }
body.theme-roblox .test-review-q { color: #E8EAED; }
body.theme-roblox .test-review-a { color: #B8BEC9; }
body.theme-roblox .test-review-a strong { color: #F0F2F5; }
body.theme-roblox .test-review-a strong.ok { color: #86EFAC; }
body.theme-roblox .test-review-exp { color: #8B92A0; }
body.theme-roblox .dictation-audio-box { background: linear-gradient(135deg,#0F2A40,#0A1F30); border-color: #1E5A8A; border-radius: 6px; }
body.theme-roblox .grade { border-radius: 6px; font-weight: 900; }
body.theme-roblox .grade-5 { background: linear-gradient(180deg,#00B06F,#008C58); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,0.3); }
body.theme-roblox .grade-4 { background: linear-gradient(180deg,#3B82F6,#1E40AF); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,0.3); }
body.theme-roblox .grade-3 { background: linear-gradient(180deg,#FFA726,#E08700); color: #1A1C22; box-shadow: inset 0 1px 0 rgba(255,255,255,0.3); }
body.theme-roblox .grade-2 { background: linear-gradient(180deg,#E2231A,#B71C1C); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,0.3); }
body.theme-roblox .grade-empty { color: #353944; }
body.theme-roblox .grade-info { color: #8B92A0; }
body.theme-roblox .report-table { background: #1A1C22; box-shadow: 0 2px 8px rgba(0,0,0,0.6); }
body.theme-roblox .report-table th { background: #0A0B0E; color: #F0F2F5; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
body.theme-roblox .report-table td { border-color: #23252C; color: #E8EAED; }
body.theme-roblox .report-table .subject-row td { background: #23252C; color: #F0F2F5; border-color: #353944; font-weight: 800; }
body.theme-roblox .report-table .rt-num { color: #B8BEC9; }
body.theme-roblox .report-table .rt-num.rt-good { color: #86EFAC; }
body.theme-roblox .report-table .rt-mark.passed { background: #0F3D2A; color: #86EFAC; }
body.theme-roblox .report-table .rt-mark.empty { color: #4B5563; }
body.theme-roblox .attempt-badge { background: #4A3419; color: #FCD34D; border-radius: 4px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; }
body.theme-roblox .attempt-badge.danger { background: #3B1F2B; color: #FCA5A5; }
body.theme-roblox .modal-overlay { background: rgba(0,0,0,0.8); }
body.theme-roblox .modal-box { background: #1A1C22; border: 1px solid #353944; border-top: 4px solid #E2231A; border-radius: 8px; color: #E8EAED; }
body.theme-roblox .modal-box h2 { color: #F0F2F5; font-weight: 900; text-transform: uppercase; letter-spacing: 0.03em; }
body.theme-roblox .choice-card { background: linear-gradient(180deg,#2D3037,#23252C); border-color: #353944; border-radius: 6px; border-bottom-width: 3px; border-bottom-color: #0A0B0E; }
body.theme-roblox .choice-card:hover { border-color: #E2231A; }
body.theme-roblox .choice-card.selected { border-color: #E2231A; background: linear-gradient(180deg,#4C1D1D,#3B1F2B); box-shadow: 0 0 16px rgba(226,35,26,0.35); }
body.theme-roblox .choice-card .cc-label { color: #F0F2F5; font-weight: 800; }
body.theme-roblox .avatar-upload-box { background: #23252C; }
body.theme-roblox .avatar-preview { background: linear-gradient(180deg,#4C1D1D,#3B1F2B); border-color: #E2231A; box-shadow: 0 0 24px rgba(226,35,26,0.4); }
body.theme-roblox .continue-card { background: linear-gradient(135deg,#1A1C22,#3B1F2B) !important; border-color: #E2231A !important; border-radius: 6px; border-bottom-width: 3px !important; box-shadow: 0 0 20px rgba(226,35,26,0.15); }
body.theme-roblox .continue-card h3 { color: #FECACA !important; font-weight: 900; text-transform: uppercase; }
body.theme-roblox .continue-card p { color: #B8BEC9 !important; }
body.theme-roblox .empty-state { color: #8B92A0; }
body.theme-roblox .empty-state h2 { color: #F0F2F5; }
body.theme-roblox .empty-state .big-emoji { filter: drop-shadow(0 0 16px rgba(226,35,26,0.4)); }
body.theme-roblox ::-webkit-scrollbar { width: 10px; height: 10px; }
body.theme-roblox ::-webkit-scrollbar-track { background: #0A0B0E; }
body.theme-roblox ::-webkit-scrollbar-thumb { background: linear-gradient(180deg,#E2231A,#B71C1C); border-radius: 4px; border: 2px solid #0A0B0E; }
body.theme-roblox ::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg,#FF3B30,#E2231A); }
@media (max-width: 700px) {
  body.theme-roblox .roblox-brand { margin-bottom: 6px; padding-bottom: 6px; border-bottom: none; }
  body.theme-roblox .roblox-logo { width: 28px; height: 28px; }
  body.theme-roblox .roblox-wordmark { display: none; }
  body.theme-roblox h1 { font-size: 24px; gap: 10px; }
  body.theme-roblox h1::before { width: 32px; height: 32px; }
}

/* ============================================================
   СИНХРОНИЗАЦИЯ — модалка логина и статуса
   ============================================================ */
.login-box { animation: loginAppear 0.3s ease-out; }
@keyframes loginAppear { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.sync-modal .modal-box, .sync-modal { max-width: 520px; }
.sync-modal h2 { font-size: 20px; margin-bottom: 6px; }
.sync-modal .btn-row .btn { min-width: 160px; }

/* В тёмной теме модалка логина — тёмная */
body.theme-dark .modal-box { background: #374151; color: #e5e7eb; }
body.theme-dark .modal-box h2 { color: #e9d5ff; }
body.theme-dark .modal-box p { color: #d1d5db; }