/* points_preview styles - Ultra-sleek OLED Mobile Native iOS 18 Design */

:root {
  --bg-main: #0c0d11;
  --bg-card: #131418;
  --bg-card-hover: #181a20;
  --bg-card-active: #1e2029;
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.16);
  --border-active: rgba(255, 255, 255, 0.28);
  --text-main: rgba(255, 255, 255, 0.94);
  --text-muted: rgba(255, 255, 255, 0.44);
  --text-dim: rgba(255, 255, 255, 0.25);
  
  --accent-green: #a3be8c;
  --accent-green-bg: rgba(163, 190, 140, 0.1);
  --accent-yellow: #ebcb8b;
  --accent-yellow-bg: rgba(235, 203, 139, 0.1);
  --accent-red: #bf616a;
  --accent-red-bg: rgba(191, 97, 106, 0.1);
  --accent-blue: #88c0d0;
  --accent-blue-bg: rgba(136, 192, 208, 0.1);
  --accent-purple: #b48ead;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: 'Cascadia Code', -apple-system, BlinkMacSystemFont, 'SF Pro Display', Roboto, monospace;
  min-height: 100vh;
  min-height: -webkit-fill-available;
  overflow-x: hidden;
  user-select: none;
  -webkit-font-smoothing: antialiased;
}

/* Безопасные отступы под iPhone Dynamic Island / Notch */
body {
  padding-top: max(68px, calc(env(safe-area-inset-top, 50px) + 20px));
  padding-left: max(16px, env(safe-area-inset-left, 16px));
  padding-right: max(16px, env(safe-area-inset-right, 16px));
  padding-bottom: max(40px, env(safe-area-inset-bottom, 40px));
}

.container {
  max-width: 520px;
  margin: 0 auto;
}

/* ================= 1. ЭКРАН ВХОДА (ПАРОЛЬ) ================= */
.hidden {
  display: none !important;
}

.auth-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-main);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 24px;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
}

.auth-center-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 300px;
}

.auth-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.auth-lock-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(235, 203, 139, 0.08);
  border: 1px solid rgba(235, 203, 139, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-yellow);
  box-shadow: 0 8px 24px rgba(235, 203, 139, 0.12);
  margin-bottom: 16px;
}

.auth-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.auth-form {
  width: 100%;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-input-wrap {
  width: 100%;
}

.auth-input {
  width: 100%;
  height: 50px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 15px;
  padding: 0 16px;
  text-align: center;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-input:focus {
  border-color: var(--border-active);
  box-shadow: 0 0 0 1px var(--border-active);
}

.auth-submit-btn {
  width: 100%;
  height: 50px;
  background: #ffffff;
  color: #0c0d11;
  border: none;
  border-radius: 14px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
}

.auth-submit-btn:active {
  transform: scale(0.97);
  opacity: 0.85;
}

.auth-error-msg {
  font-size: 12px;
  color: var(--accent-red);
  margin-top: 4px;
  text-align: center;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.shake {
  animation: shake 0.35s ease;
}

/* Push Notifications Banner Card */
.push-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.2s;
}

.push-card.active {
  border-color: rgba(163, 190, 140, 0.3);
  background: rgba(163, 190, 140, 0.05);
}

.push-card-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.push-card-icon {
  font-size: 18px;
}

.push-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.push-card-desc {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.push-card-btn {
  height: 36px;
  padding: 0 14px;
  background: #ffffff;
  color: #0c0d11;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s, opacity 0.15s;
}

.push-card-btn:active {
  transform: scale(0.95);
}

.push-card-btn.enabled {
  background: var(--accent-green-bg);
  border: 1px solid rgba(163, 190, 140, 0.4);
  color: var(--accent-green);
}

/* ================= 2. ОСНОВНОЙ ДАШБОРД ================= */

/* Header */
.header-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-h1 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.user-badge {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-yellow);
  background: rgba(235, 203, 139, 0.1);
  border: 1px solid rgba(235, 203, 139, 0.25);
  padding: 2px 7px;
  border-radius: 6px;
  text-transform: uppercase;
}

.student-name-row {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 4px;
  letter-spacing: -0.01em;
}

.sync-status {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.spin {
  animation: spinAnim 0.9s linear infinite;
  display: inline-block;
}

@keyframes spinAnim {
  100% { transform: rotate(360deg); }
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
  display: inline-block;
  animation: pulse 2.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.action-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-pill {
  height: 36px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-pill:active {
  transform: scale(0.95);
  background: rgba(255, 255, 255, 0.1);
}

.btn-pill.active {
  border-color: rgba(163, 190, 140, 0.4);
  background: var(--accent-green-bg);
  color: var(--accent-green);
}

/* Bento Stats Overview */
.bento-hero {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}

.bento-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}

.bento-card-title {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  font-weight: 600;
}

.bento-card-val {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 4px;
}

.bento-card-sub {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ================= ДВА РАЗДЕЛА: ПРЕДМЕТЫ И ИСТОРИЯ БАЛЛОВ ================= */
.tabs-nav-bar {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 3px;
  gap: 4px;
  margin-bottom: 16px;
  width: 100%;
}

.tab-nav-btn {
  flex: 1;
  height: 40px;
  background: transparent;
  border: none;
  border-radius: 11px;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.tab-nav-btn.active {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* ================= РАЗДЕЛ ИСТОРИЯ БАЛЛОВ (ПО ДАТАМ) ================= */
.history-view {
  width: 100%;
}

#historyList {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-top: 4px;
  padding-bottom: 24px;
}

.history-date-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.history-date-header {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent-yellow);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-left: 4px;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.history-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  transition: all 0.14s ease;
}

.history-card:active {
  transform: scale(0.98);
  border-color: var(--border-hover);
}

.history-card-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.history-subj-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
}

.history-change-sub {
  font-size: 11.5px;
  color: var(--text-muted);
}

.history-points-badge {
  font-size: 13px;
  font-weight: 800;
  color: var(--accent-green);
  background: var(--accent-green-bg);
  border: 1px solid rgba(163, 190, 140, 0.3);
  padding: 4px 9px;
  border-radius: 10px;
  white-space: nowrap;
}

.history-empty-state {
  padding: 40px 16px;
  text-align: center;
  color: var(--text-dim);
  font-size: 12px;
}

/* Cards List */
.cards-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.subject-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.subject-item:active {
  transform: scale(0.985);
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
}

.item-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.item-name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.item-teacher {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
}

.item-score-badge {
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 17px;
  font-weight: 800;
  white-space: nowrap;
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.item-score-badge.excellent {
  background: var(--accent-green-bg);
  border: 1px solid rgba(163, 190, 140, 0.3);
  color: var(--accent-green);
}

.item-score-badge.good {
  background: var(--accent-blue-bg);
  border: 1px solid rgba(136, 192, 208, 0.3);
  color: var(--accent-blue);
}

.item-score-badge.warning {
  background: var(--accent-yellow-bg);
  border: 1px solid rgba(235, 203, 139, 0.3);
  color: var(--accent-yellow);
}

.item-score-badge.danger {
  background: var(--accent-red-bg);
  border: 1px solid rgba(191, 97, 106, 0.3);
  color: var(--accent-red);
}

.score-max {
  font-size: 11px;
  opacity: 0.5;
  font-weight: 500;
}

/* Progress bar */
.bar-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 20px;
  background: var(--accent-blue);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.bar-fill.excellent, .bar-fill.green { background: var(--accent-green); box-shadow: 0 0 8px rgba(163, 190, 140, 0.4); }
.bar-fill.good, .bar-fill.blue { background: var(--accent-blue); box-shadow: 0 0 8px rgba(136, 192, 208, 0.4); }
.bar-fill.warning, .bar-fill.yellow { background: var(--accent-yellow); box-shadow: 0 0 8px rgba(235, 203, 139, 0.4); }
.bar-fill.danger, .bar-fill.red { background: var(--accent-red); box-shadow: 0 0 8px rgba(191, 97, 106, 0.4); }
.bar-fill.gray { background: rgba(255, 255, 255, 0.18); }

.item-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
}

.tag-absence {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.recent-pts-tag {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-green);
  background: var(--accent-green-bg);
  border: 1px solid rgba(163, 190, 140, 0.25);
  padding: 1px 6px;
  border-radius: 5px;
}

.tag-absence.alert {
  color: var(--accent-red);
  font-weight: 700;
}

/* Modal Bottom Sheet */
.sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.sheet-overlay.open {
  opacity: 1;
  visibility: visible;
}

.sheet-card {
  width: 100%;
  background: #14161c;
  border-top: 1px solid var(--border-hover);
  border-radius: 26px 26px 0 0;
  padding: 24px;
  padding-bottom: max(32px, env(safe-area-inset-bottom, 32px));
  box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.8);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sheet-overlay.open .sheet-card {
  transform: translateY(0);
}

.sheet-grabber {
  width: 36px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  margin: -10px auto 16px;
}

/* Toast */
.toast-pill {
  position: fixed;
  top: max(20px, env(safe-area-inset-top, 20px));
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: rgba(28, 31, 38, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-hover);
  color: var(--text-main);
  padding: 10px 18px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  z-index: 99999;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  white-space: nowrap;
}

.toast-pill.show {
  transform: translateX(-50%) translateY(0);
}

/* ================= PASSKEY INSPECTOR MODAL ================= */
.inspector-sheet {
  max-height: 86vh;
  display: flex;
  flex-direction: column;
}

.inspector-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 14px;
}

.close-icon-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
}

.inspector-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 4px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.inspector-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 14px;
}

.inspector-card-title {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.badge-tag {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-tag.green {
  background: var(--accent-green-bg);
  color: var(--accent-green);
  border: 1px solid rgba(163, 190, 140, 0.25);
}

.badge-tag.yellow {
  background: var(--accent-yellow-bg);
  color: var(--accent-yellow);
  border: 1px solid rgba(235, 203, 139, 0.25);
}

.raw-json-block {
  background: #08090b;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 12px;
  font-size: 11px;
  line-height: 1.5;
  color: #a9b1d6;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 200px;
}

.field-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 8px;
}

.field-label {
  font-size: 10.5px;
  color: var(--text-dim);
}

.field-value {
  font-size: 12px;
  color: var(--text-main);
  word-break: break-all;
}

.inspector-actions-row {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.btn-inspector-action {
  flex: 1;
  height: 42px;
  border-radius: 14px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-inspector-action.primary {
  background: var(--accent-blue-bg);
  border: 1px solid rgba(136, 192, 208, 0.35);
  color: var(--accent-blue);
}

.btn-inspector-action.danger {
  background: var(--accent-red-bg);
  border: 1px solid rgba(191, 97, 106, 0.35);
  color: var(--accent-red);
}

/* ================= VIEW SWITCHER (ПРЕДМЕТЫ vs ЛЕНТА БАЛЛОВ) ================= */
.view-switcher-wrap {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 3px;
  margin-bottom: 16px;
  gap: 4px;
}

.view-switch-btn {
  flex: 1;
  height: 38px;
  background: transparent;
  border: none;
  border-radius: 11px;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.view-switch-btn.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ================= ЛЕНТА НАЧИСЛЕННЫХ БАЛЛОВ (TIMELINE) ================= */
.timeline-intro {
  margin-bottom: 14px;
  padding: 0 4px;
}

.timeline-intro-title {
  font-size: 14px;
  font-weight: 700;
}

.timeline-intro-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.timeline-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 13px 15px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.timeline-card:active {
  transform: scale(0.98);
  border-color: var(--border-hover);
}

.timeline-card-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.timeline-date-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  color: var(--text-muted);
}

.timeline-subj-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.timeline-topic {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.35;
  margin-top: 2px;
}

.timeline-points-badge {
  font-size: 13px;
  font-weight: 800;
  color: var(--accent-green);
  background: var(--accent-green-bg);
  border: 1px solid rgba(163, 190, 140, 0.3);
  padding: 4px 9px;
  border-radius: 10px;
  white-space: nowrap;
}

/* ================= ДЕТАЛИ ПРЕДМЕТА И СПИСОК ЗАНЯТИЙ ================= */
.subject-sheet {
  max-height: 88vh;
  display: flex;
  flex-direction: column;
}

.lessons-filter-bar {
  display: flex;
  gap: 6px;
  margin: 12px 0 10px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.lessons-filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  border-radius: 10px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}

.lessons-filter-btn.active {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  border-color: var(--border-hover);
}

.lessons-scroll-list {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 48vh;
  padding-right: 2px;
}

.lesson-row-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 13px;
  padding: 10px 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.lesson-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.lesson-topic-text {
  font-size: 11.5px;
  color: var(--text-main);
  line-height: 1.35;
}

.lesson-hw-text {
  font-size: 10.5px;
  color: var(--accent-yellow);
  margin-top: 3px;
}

.lesson-pts-pill {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--accent-green);
  background: var(--accent-green-bg);
  border: 1px solid rgba(163, 190, 140, 0.25);
  padding: 2px 7px;
  border-radius: 7px;
  white-space: nowrap;
}

.tag-missed {
  color: var(--accent-red);
  background: var(--accent-red-bg);
  border: 1px solid rgba(191, 97, 106, 0.25);
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 9.5px;
  font-weight: 700;
}

.tag-present {
  color: var(--accent-green);
  background: var(--accent-green-bg);
  border: 1px solid rgba(163, 190, 140, 0.25);
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 9.5px;
  font-weight: 700;
}


