/* ==========================================================================
   ALLYNOTE — COMPONENTS DESIGN SYSTEM
   Buttons, Inputs, Cards, Modals, Tabs, Badges, Audio Player, Toasts
   ========================================================================== */

/* Buttons (Compact) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.825rem;
  padding: 6px 12px;
  border-radius: var(--radius-xs);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  user-select: none;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--text-inverse);
  border-color: var(--primary-border);
  box-shadow: none;
}

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: none;
  transform: none;
}

.btn-secondary {
  background-color: var(--bg-surface-secondary);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.btn-secondary:hover {
  background-color: var(--bg-hover);
  border-color: var(--border-default);
  color: var(--text-primary);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-primary);
  border-color: var(--border-default);
}

.btn-outline:hover {
  background-color: var(--bg-hover);
  border-color: var(--border-strong);
}

.btn-danger {
  background-color: var(--danger);
  color: #ffffff;
}

.btn-danger:hover {
  background-color: hsl(var(--color-danger-h), var(--color-danger-s), 48%);
}

.btn-ghost {
  background-color: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  background-color: var(--bg-hover);
  color: var(--text-primary);
}

.btn-sm {
  padding: 3px 8px;
  font-size: 0.75rem;
  border-radius: var(--radius-xs);
  gap: 4px;
}

.btn-lg {
  padding: 8px 18px;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
}

.btn-icon-only {
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: var(--radius-xs);
  font-size: 0.95rem;
}

/* Forms & Inputs (Compact) */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 11px;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.form-label .required {
  color: var(--danger);
}

.form-control,
.form-input,
.form-select,
.form-textarea,
input[type="text"],
input[type="search"],
input[type="date"],
input[type="time"],
input[type="number"],
input[type="password"],
input[type="email"],
select,
textarea {
  font-family: inherit;
  width: 100%;
  padding: 6px 10px;
  background-color: var(--bg-input);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.85rem;
  line-height: 1.4;
  outline: none;
  box-sizing: border-box;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.form-control::placeholder,
.form-input::placeholder,
input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}

.form-control:focus,
.form-input:focus,
.form-select:focus,
.form-textarea:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  background-color: var(--bg-surface);
  box-shadow: 0 0 0 1px var(--primary);
  outline: none;
}

select,
.form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239aa1ae' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 11px;
  padding-right: 28px !important;
  cursor: pointer;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.8) brightness(1.2);
  cursor: pointer;
  opacity: 0.7;
  transition: opacity var(--transition-fast);
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

.form-textarea {
  resize: vertical;
  min-height: 65px;
}

.form-hint {
  font-size: 0.725rem;
  color: var(--text-muted);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* ==========================================================================
   Universal Custom Checkbox & Radio (Fully Dark & Light Adapted)
   ========================================================================== */
.form-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.825rem;
  color: var(--text-primary);
  cursor: pointer;
  user-select: none;
}

input[type="checkbox"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 17px;
  height: 17px;
  min-width: 17px;
  min-height: 17px;
  margin: 0;
  border-radius: var(--radius-xs);
  background-color: var(--bg-surface-secondary);
  border: 1.5px solid var(--border-strong);
  display: inline-grid;
  place-content: center;
  cursor: pointer;
  vertical-align: middle;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
  flex-shrink: 0;
  box-sizing: border-box;
  position: relative;
}

[data-theme="dark"] input[type="checkbox"] {
  background-color: #181818;
  border-color: rgba(255, 255, 255, 0.35);
}

[data-theme="light"] input[type="checkbox"] {
  background-color: #f8fafc;
  border-color: #94a3b8;
}

input[type="checkbox"]:hover {
  border-color: var(--primary);
  background-color: var(--bg-hover);
}

[data-theme="dark"] input[type="checkbox"]:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background-color: #242424;
}

input[type="checkbox"]::before {
  content: "";
  width: 9px;
  height: 9px;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
  transform: scale(0);
  transform-origin: center;
  transition: transform 120ms cubic-bezier(0.4, 0, 0.2, 1);
  background-color: #ffffff;
}

/* Checked States */
input[type="checkbox"]:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

[data-theme="dark"] input[type="checkbox"]:checked {
  background-color: #ffffff;
  border-color: #ffffff;
}

[data-theme="dark"] input[type="checkbox"]:checked::before {
  background-color: #000000;
  transform: scale(1);
}

[data-theme="light"] input[type="checkbox"]:checked {
  background-color: #2563eb;
  border-color: #2563eb;
}

[data-theme="light"] input[type="checkbox"]:checked::before {
  background-color: #ffffff;
  transform: scale(1);
}

/* Success Checkboxes (Homework items & completed tasks) */
input[type="checkbox"].dash-hw-toggle:checked,
input[type="checkbox"].accent-success:checked {
  background-color: var(--success) !important;
  border-color: var(--success) !important;
}

[data-theme="dark"] input[type="checkbox"].dash-hw-toggle:checked::before,
[data-theme="dark"] input[type="checkbox"].accent-success:checked::before {
  background-color: #000000 !important;
  transform: scale(1);
}

[data-theme="light"] input[type="checkbox"].dash-hw-toggle:checked::before,
[data-theme="light"] input[type="checkbox"].accent-success:checked::before {
  background-color: #ffffff !important;
  transform: scale(1);
}

input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Universal Custom Radio */
input[type="radio"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 17px;
  height: 17px;
  min-width: 17px;
  min-height: 17px;
  margin: 0;
  border-radius: 50%;
  background-color: var(--bg-surface-secondary);
  border: 1.5px solid var(--border-strong);
  display: inline-grid;
  place-content: center;
  cursor: pointer;
  vertical-align: middle;
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
  flex-shrink: 0;
  box-sizing: border-box;
}

[data-theme="dark"] input[type="radio"] {
  background-color: #181818;
  border-color: rgba(255, 255, 255, 0.35);
}

[data-theme="light"] input[type="radio"] {
  background-color: #f8fafc;
  border-color: #94a3b8;
}

input[type="radio"]:hover {
  border-color: var(--primary);
  background-color: var(--bg-hover);
}

[data-theme="dark"] input[type="radio"]:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background-color: #242424;
}

input[type="radio"]::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transform: scale(0);
  transition: transform 120ms cubic-bezier(0.4, 0, 0.2, 1);
  background-color: var(--primary);
}

[data-theme="dark"] input[type="radio"]::before {
  background-color: #ffffff;
}

[data-theme="dark"] input[type="radio"]:checked {
  border-color: #ffffff;
}

[data-theme="light"] input[type="radio"]:checked {
  border-color: #2563eb;
}

input[type="radio"]:checked::before {
  transform: scale(1);
}

/* Form Select Dropdown Options */
select option,
.form-select option {
  background-color: var(--bg-surface);
  color: var(--text-primary);
}

/* Date & Time Picker Indicator in Dark Theme */
[data-theme="dark"] input[type="date"]::-webkit-calendar-picker-indicator,
[data-theme="dark"] input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  opacity: 0.85;
  cursor: pointer;
}

/* Search Highlights */
mark,
.search-highlight {
  border-radius: 2px;
  padding: 1px 4px;
}

[data-theme="dark"] mark,
[data-theme="dark"] .search-highlight {
  background-color: rgba(251, 191, 36, 0.25);
  color: #fbbf24;
}

[data-theme="light"] mark,
[data-theme="light"] .search-highlight {
  background-color: #fef08a;
  color: #854d0e;
}

/* Cards (Refined & Spacious) */
.card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.card:hover {
  border-color: var(--border-strong);
}

.card-interactive {
  cursor: pointer;
}

.card-interactive:hover {
  border-color: var(--border-strong);
  background-color: var(--bg-surface-elevated);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 10px;
}

.card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-body {
  flex: 1;
}

.card-footer {
  margin-top: 9px;
  padding-top: 7px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   NOTE CARDS & PINNING SYSTEM
   ========================================================================== */
.note-card {
  position: relative;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.note-card.is-pinned {
  border-color: var(--primary-border);
  border-top: 3px solid var(--primary);
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.05) 0%, var(--bg-surface) 100%);
  box-shadow: var(--shadow-sm), 0 0 0 1px rgba(59, 130, 246, 0.15);
}

[data-theme="dark"] .note-card.is-pinned {
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.09) 0%, var(--bg-surface) 100%);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.22), var(--shadow-sm);
}

.note-card.is-pinned:hover {
  box-shadow: var(--shadow-md), 0 0 0 1px var(--primary-border);
}

.btn-pin-note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  transition: all var(--transition-fast);
  user-select: none;
  line-height: 1;
  flex-shrink: 0;
}

.btn-pin-note:hover {
  background-color: var(--bg-hover);
  border-color: var(--border-default);
  color: var(--text-primary);
}

.btn-pin-note.is-pinned,
.btn-pin-note.active {
  background-color: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.35);
  color: var(--primary);
}

.btn-pin-note.is-pinned:hover,
.btn-pin-note.active:hover {
  background-color: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
  color: var(--danger);
}

.notes-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

/* Stat Widgets / Metric Chips (Compact) */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.stat-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-xs), var(--highlight-surface);
  transition: all var(--transition-fast);
}

.stat-card:hover {
  border-color: var(--border-default);
  transform: translateY(-1px);
}

.stat-icon-wrapper {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.stat-val {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.725rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* Badges and Tags */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  line-height: 1.4;
  white-space: nowrap;
}

.badge-primary { background: var(--primary-light); color: var(--primary); border: 1px solid var(--primary-border); }
.badge-success { background: var(--success-light); color: var(--success); border: 1px solid var(--success-border); }
.badge-warning { background: var(--warning-light); color: var(--warning); border: 1px solid var(--warning-border); }
.badge-danger { background: var(--danger-light); color: var(--danger); border: 1px solid var(--danger-border); }
.badge-purple { background: var(--purple-light); color: var(--purple); border: 1px solid var(--purple-light); }
.badge-neutral { background: var(--bg-surface-secondary); color: var(--text-secondary); border: 1px solid var(--border-subtle); }

/* Filter Tags / Tabs Bar (Compact) */
.filter-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  flex-shrink: 0;
  min-height: 36px;
  padding-bottom: 4px;
  margin-bottom: 12px;
  scrollbar-width: none;
}

.filter-tabs::-webkit-scrollbar {
  display: none;
}

.filter-tab-btn {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.775rem;
  font-weight: 500;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.filter-tab-btn:hover {
  background-color: var(--bg-hover);
  color: var(--text-primary);
}

.filter-tab-btn.active {
  background-color: var(--primary);
  color: var(--text-inverse);
  border-color: var(--primary);
  font-weight: 600;
}

/* Child Avatar Component */
.child-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: var(--shadow-xs);
}

.child-avatar.avatar-lg {
  width: 56px;
  height: 56px;
  font-size: 1.3rem;
}

/* Modals (Compact) */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: var(--backdrop-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 12px;
  backdrop-filter: blur(4px);
  animation: fadeIn 150ms ease-out;
}

.modal-content {
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-modal), var(--highlight-surface);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideUp 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-content.modal-lg {
  max-width: 720px;
}

.modal-header {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.modal-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-close-btn {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background-color: var(--bg-hover);
  color: var(--text-primary);
}

.modal-body {
  padding: 14px 16px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 10px 16px;
  border-top: 1px solid var(--border-subtle);
  background-color: var(--bg-surface-secondary);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

/* Toast Notifications Container */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 150;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-default);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  max-width: 420px;
  animation: slideUp 200ms ease-out;
  transition: all var(--transition-normal);
}

.toast-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.toast-body {
  flex: 1;
  font-size: 0.875rem;
  color: var(--text-primary);
  line-height: 1.4;
}

.toast-close {
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
}

/* Voice Recorder Box */
.voice-recorder-panel {
  background: var(--bg-surface-secondary);
  border: 1px dashed var(--border-default);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.voice-mic-btn {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.voice-mic-btn:hover {
  transform: scale(1.05);
}

.voice-mic-btn.recording {
  background: var(--danger);
  animation: pulseGlow 1.4s infinite ease-in-out;
  box-shadow: 0 0 0 10px rgba(239, 68, 68, 0.2);
}

.wave-visualizer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 36px;
}

.wave-bar {
  width: 4px;
  background-color: var(--primary);
  border-radius: var(--radius-full);
  height: 6px;
  transition: height var(--transition-fast);
}

.wave-visualizer.recording .wave-bar {
  background-color: var(--danger);
  animation: waveBar 1s infinite ease-in-out;
}

.wave-visualizer.recording .wave-bar:nth-child(2) { animation-delay: 0.15s; }
.wave-visualizer.recording .wave-bar:nth-child(3) { animation-delay: 0.3s; }
.wave-visualizer.recording .wave-bar:nth-child(4) { animation-delay: 0.45s; }
.wave-visualizer.recording .wave-bar:nth-child(5) { animation-delay: 0.2s; }
.wave-visualizer.recording .wave-bar:nth-child(6) { animation-delay: 0.35s; }

/* Audio Player */
.audio-player-widget {
  background: var(--bg-surface-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.audio-play-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
  cursor: pointer;
}

.audio-slider {
  flex: 1;
  accent-color: var(--primary);
  cursor: pointer;
}

.audio-time-label {
  font-size: 0.775rem;
  font-family: var(--font-family-mono);
  color: var(--text-muted);
  white-space: nowrap;
}

/* AI Voice Studio & Local Pipeline */
.voice-meter-bar-wrapper {
  width: 100%;
  height: 6px;
  background: var(--bg-surface-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.voice-meter-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #10b981 0%, #f59e0b 70%, #ef4444 100%);
  border-radius: var(--radius-full);
  transition: width 0.08s ease-out;
}

.voice-ai-progress-box {
  background: var(--bg-surface-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.voice-ai-progress-bar {
  width: 100%;
  height: 8px;
  background: var(--border-color);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.voice-ai-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, #8b5cf6 50%, #10b981 100%);
  border-radius: var(--radius-full);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.voice-note-markdown {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-primary);
}

.voice-note-markdown ul {
  margin: 4px 0 8px 16px;
  padding: 0;
}

.voice-note-markdown li {
  margin-bottom: 4px;
}

.voice-task-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 3px 0;
  cursor: pointer;
  user-select: none;
}

.voice-task-checkbox input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--primary);
  cursor: pointer;
}


/* Timeline Components (My Day & Child History) */
.timeline-list {
  position: relative;
  padding-left: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.timeline-list::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background-color: var(--border-default);
}

.timeline-item {
  position: relative;
}

.timeline-dot {
  position: absolute;
  left: -28px;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background-color: var(--bg-surface);
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
}

.timeline-dot.current {
  background-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 0 0 4px var(--primary-focus);
}

/* ==========================================================================
   Theme Picker Visual Cards
   ========================================================================== */
.theme-picker-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 640px) {
  .theme-picker-grid {
    grid-template-columns: 1fr;
  }
}

.theme-option-card {
  background: var(--bg-surface);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  user-select: none;
}

.theme-option-card:hover {
  border-color: var(--border-default);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.theme-option-card.active {
  border-color: var(--primary);
  background: var(--bg-surface);
  box-shadow: 0 0 0 1px var(--primary);
}

.theme-preview {
  height: 72px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  overflow: hidden;
}

.theme-preview-light {
  background: #f1f5f9;
}
.theme-preview-light .tp-header {
  height: 10px;
  background: #ffffff;
  border-radius: 3px;
  border: 1px solid #cbd5e1;
}
.theme-preview-light .tp-body {
  flex: 1;
  display: flex;
  gap: 5px;
}
.theme-preview-light .tp-sidebar {
  width: 22px;
  background: #ffffff;
  border-radius: 3px;
  border: 1px solid #cbd5e1;
}
.theme-preview-light .tp-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.theme-preview-light .tp-box {
  height: 18px;
  background: #ffffff;
  border-radius: 3px;
  border: 1px solid #cbd5e1;
}
.theme-preview-light .tp-box.accent {
  background: #2563eb;
  border-color: #1d4ed8;
}

.theme-preview-dark {
  background: #000000;
}
.theme-preview-dark .tp-header {
  height: 10px;
  background: #111111;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.theme-preview-dark .tp-body {
  flex: 1;
  display: flex;
  gap: 5px;
}
.theme-preview-dark .tp-sidebar {
  width: 22px;
  background: #050505;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.theme-preview-dark .tp-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.theme-preview-dark .tp-box {
  height: 18px;
  background: #161616;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.theme-preview-dark .tp-box.accent {
  background: #2a2a2a;
  border-color: rgba(255, 255, 255, 0.25);
}

.theme-preview-system {
  background: linear-gradient(90deg, #f1f5f9 50%, #09090b 50%);
}
.theme-preview-system .tp-header {
  height: 10px;
  background: linear-gradient(90deg, #ffffff 50%, #18181b 50%);
  border-radius: 3px;
  border: 1px solid rgba(148, 163, 184, 0.5);
}
.theme-preview-system .tp-body {
  flex: 1;
  display: flex;
  gap: 5px;
}
.theme-preview-system .tp-sidebar {
  width: 22px;
  background: #ffffff;
  border-radius: 3px;
  border: 1px solid #cbd5e1;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.theme-preview-system .tp-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.theme-preview-system .tp-box {
  height: 18px;
  background: linear-gradient(90deg, #ffffff 50%, #18181b 50%);
  border-radius: 3px;
  border: 1px solid rgba(148, 163, 184, 0.5);
}
.theme-preview-system .tp-box.accent {
  background: #2563eb;
  border-radius: 3px;
  border: 1px solid #1d4ed8;
}

.theme-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.theme-info-group {
  display: flex;
  align-items: center;
  gap: 6px;
}
.theme-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}
.theme-badge {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   School Schedule Board Table (Стенд / Дошка розкладу 5-А класу)
   ========================================================================== */
.school-board-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  margin-bottom: 16px;
}

.school-board-header {
  background: var(--bg-surface-secondary);
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.school-board-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
}

.school-board-badge {
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  background: var(--bg-surface-tertiary);
  color: var(--text-secondary);
  font-weight: 600;
}

.school-board-table-wrapper {
  overflow-x: auto;
}

.school-board-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.825rem;
}

.school-board-table th {
  background: var(--bg-surface-secondary);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  text-align: left;
}

.school-board-table th:last-child {
  border-right: none;
}

.school-board-table td {
  padding: 6px 10px;
  border-bottom: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  vertical-align: middle;
  color: var(--text-primary);
}

.school-board-table td:last-child {
  border-right: none;
}

.school-board-day-col {
  width: 110px;
  font-weight: 700;
  background: var(--bg-surface-secondary);
  border-right: 1px solid var(--border-subtle) !important;
  color: var(--text-primary);
  text-align: center;
  vertical-align: middle !important;
  font-size: 0.85rem;
}

.school-board-day-col.today {
  background: var(--primary-light);
  color: var(--text-primary);
}

.school-board-day-vertical {
  width: 44px;
  min-width: 44px;
  max-width: 48px;
  text-align: center;
  vertical-align: middle !important;
  background: var(--bg-surface-secondary);
  border-right: 1px solid var(--border-subtle) !important;
  padding: 8px 3px;
  user-select: none;
  box-sizing: border-box;
  overflow: hidden;
}

.school-board-day-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 auto;
}

.school-board-day-text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin: 0 auto;
  display: inline-block;
  white-space: nowrap;
}

.school-board-today-badge {
  display: inline-block;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  font-weight: 800;
  padding: 5px 3px;
  background: var(--primary);
  color: var(--text-inverse, #ffffff);
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
  box-sizing: border-box;
}

.school-board-day-vertical.today {
  background: var(--primary-light);
}

.school-board-day-vertical.today .school-board-day-text {
  color: var(--text-primary);
  font-weight: 900;
}

/* Split Lesson (2 Groups) Classroom Styles */
.split-classrooms {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.badge-group1 {
  background: rgba(59, 130, 246, 0.12) !important;
  color: var(--primary) !important;
  border: 1px solid rgba(59, 130, 246, 0.25) !important;
  font-size: 0.72rem !important;
  white-space: nowrap;
}

.badge-group2 {
  background: rgba(168, 85, 247, 0.12) !important;
  color: #a855f7 !important;
  border: 1px solid rgba(168, 85, 247, 0.25) !important;
  font-size: 0.72rem !important;
  white-space: nowrap;
}

[data-theme="dark"] .badge-group1 {
  background: rgba(59, 130, 246, 0.2) !important;
  color: #93c5fd !important;
  border-color: rgba(59, 130, 246, 0.35) !important;
}

[data-theme="dark"] .badge-group2 {
  background: rgba(168, 85, 247, 0.2) !important;
  color: #d8b4fe !important;
  border-color: rgba(168, 85, 247, 0.35) !important;
}

.school-board-day-separator td {
  border-bottom: 1px solid var(--border-default) !important;
}

.school-board-empty-cell {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.school-board-num-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-xs);
  background: var(--bg-surface-tertiary);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.75rem;
  border: 1px solid var(--border-subtle);
}

.school-board-row {
  transition: background-color var(--transition-fast);
}

.school-board-row:hover {
  background-color: var(--bg-hover);
}

.school-board-row.active-lesson {
  background-color: var(--success-light);
}

.school-board-subject {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.school-board-time {
  font-family: var(--font-family-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.school-board-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* 5-Column Weekly Board Grid (Compact) */
.weekly-board-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

@media (max-width: 1100px) {
  .weekly-board-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .weekly-board-grid {
    grid-template-columns: 1fr;
  }
}

.weekly-day-col {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xs), var(--highlight-surface);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all var(--transition-fast);
}

.weekly-day-col.today {
  border-color: var(--border-strong);
  box-shadow: 0 0 0 1px var(--primary), var(--shadow-sm);
}

.weekly-day-header {
  padding: 6px 10px;
  background: var(--bg-surface-secondary);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.weekly-day-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.weekly-day-lessons {
  display: flex;
  flex-direction: column;
  padding: 6px;
  gap: 4px;
}

.weekly-lesson-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  border-radius: var(--radius-xs);
  border: 1px solid transparent;
  background: var(--bg-surface);
  cursor: pointer;
  transition: all var(--transition-fast);
  gap: 8px;
}

.weekly-lesson-item:hover {
  background: var(--bg-hover);
  border-color: var(--border-subtle);
}

.weekly-lesson-item.active-now {
  background: var(--success-light);
  border-color: var(--success-border);
}

/* Integrated Bell Schedule & Lesson Numbering */
.school-board-lesson-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  border-radius: var(--radius-xs);
  background: var(--bg-surface-secondary);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.72rem;
  border: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.school-board-lesson-pill.active {
  background: var(--primary);
  color: var(--text-inverse);
  border-color: var(--primary);
}

.school-board-break-row {
  background: rgba(255, 255, 255, 0.015);
}

.school-board-break-cell {
  padding: 2px 10px !important;
  border-top: 1px dashed var(--border-subtle) !important;
  border-bottom: 1px dashed var(--border-subtle) !important;
}

.school-board-break-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.68rem;
  color: var(--text-muted);
  font-family: var(--font-family-mono);
}

.school-board-break-row.active-now {
  background: rgba(16, 185, 129, 0.08);
}

.school-board-break-row.active-now .school-board-break-pill {
  color: var(--success);
  font-weight: 700;
}

/* 5-Column Weekly Break Divider */
.weekly-break-divider {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 6px;
  margin: 1px 0;
  font-size: 0.65rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-xs);
  border: 1px dashed var(--border-subtle);
  font-family: var(--font-family-mono);
}

.weekly-break-divider.active-now {
  background: rgba(16, 185, 129, 0.12);
  border-color: var(--success);
  color: var(--success);
  font-weight: 700;
}

/* Bell Schedule Top Summary Bar */
.bell-schedule-bar {
  background: var(--bg-surface-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  margin-bottom: 12px;
}

.bell-schedule-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.bell-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-family: var(--font-family-mono);
  white-space: nowrap;
}

.bell-chip.active {
  border-color: var(--success);
  background: var(--success-light);
  color: var(--success);
  font-weight: 700;
}

/* Focused Lesson Highlight Animation (Calm, No Glow) */
@keyframes scheduleFocusFlash {
  0% {
    background-color: var(--primary-light);
  }
  50% {
    background-color: var(--bg-active);
  }
  100% {
    background-color: transparent;
  }
}

.schedule-highlight-target {
  animation: scheduleFocusFlash 1.2s ease-in-out 2;
  position: relative;
  z-index: 5;
}

/* Prevent whole-tr outer box-shadow on table rows */
tr.school-board-row.schedule-highlight-target,
tr.school-board-break-row.schedule-highlight-target {
  box-shadow: none !important;
  animation: none !important;
}

/* Highlight only lesson cells, never the vertical day cell */
tr.school-board-row.schedule-highlight-target td:not(.school-board-day-vertical) {
  background-color: var(--primary-light) !important;
  box-shadow: inset 0 1px 0 var(--primary), inset 0 -1px 0 var(--primary) !important;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

/* Left border on first lesson cell */
tr.school-board-row.schedule-highlight-target td.school-board-day-vertical + td,
tr.school-board-row.schedule-highlight-target td:not(.school-board-day-vertical):first-child {
  box-shadow: inset 1px 0 0 var(--primary), inset 0 1px 0 var(--primary), inset 0 -1px 0 var(--primary) !important;
}

/* Right border on last cell */
tr.school-board-row.schedule-highlight-target td:last-child {
  box-shadow: inset -1px 0 0 var(--primary), inset 0 1px 0 var(--primary), inset 0 -1px 0 var(--primary) !important;
}

/* Cell that is both first and last */
tr.school-board-row.schedule-highlight-target td.school-board-day-vertical + td:last-child,
tr.school-board-row.schedule-highlight-target td:not(.school-board-day-vertical):first-child:last-child {
  box-shadow: inset 0 0 0 1px var(--primary) !important;
}

/* Day cell must never be highlighted or have its background/borders overridden */
tr.school-board-row.schedule-highlight-target td.school-board-day-vertical {
  background-color: var(--bg-surface-secondary) !important;
  box-shadow: none !important;
}

tr.school-board-row.schedule-highlight-target td.school-board-day-vertical.today {
  background-color: var(--primary-light) !important;
}

tr.school-board-break-row.schedule-highlight-target td {
  background-color: rgba(245, 158, 11, 0.22) !important;
  box-shadow: inset 0 0 0 1px var(--warning) !important;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.weekly-lesson-item.schedule-highlight-target,
.card.lesson-card.schedule-highlight-target {
  outline: 2px solid var(--success) !important;
  outline-offset: 2px;
}

/* ==========================================================================
   CLASS 5-A JOURNAL & ATTENDANCE & CREDENTIALS
   ========================================================================== */

.btn-att-toggle {
  font-weight: 600;
  transition: all 0.15s ease;
  border-radius: var(--radius-xs);
  min-width: 26px;
  text-align: center;
}

.btn-att-toggle.active-present {
  background: #10b981 !important;
  color: #ffffff !important;
  border-color: #059669 !important;
  box-shadow: 0 1px 3px rgba(16, 185, 129, 0.3);
}

.btn-att-toggle.active-absent {
  background: #ef4444 !important;
  color: #ffffff !important;
  border-color: #dc2626 !important;
  box-shadow: 0 1px 3px rgba(239, 68, 68, 0.35);
  font-weight: 800;
}

.btn-att-toggle.active-sick {
  background: #f59e0b !important;
  color: #ffffff !important;
  border-color: #d97706 !important;
  box-shadow: 0 1px 3px rgba(245, 158, 11, 0.3);
}

.btn-att-toggle.active-late {
  background: #3b82f6 !important;
  color: #ffffff !important;
  border-color: #2563eb !important;
  box-shadow: 0 1px 3px rgba(59, 130, 246, 0.3);
}

.row-absent {
  background: rgba(239, 68, 68, 0.06) !important;
}

.student-cred-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.student-cred-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

@media print {
  .app-header, .app-sidebar, .mobile-nav-bar, .journal-tabs, .filter-tabs, button {
    display: none !important;
  }
}

/* ===================================================
   GOOGLE CLASSROOM CODES VIEW & QUICK CHIPS
   =================================================== */
.classroom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}

.classroom-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  position: relative;
  overflow: hidden;
}

.classroom-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.classroom-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.classroom-subj-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.classroom-code-box {
  background: var(--bg-surface-secondary);
  border: 1px dashed var(--border-default);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin: 8px 0 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.classroom-code-val {
  font-family: var(--font-family-mono);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--primary);
  user-select: all;
}

.classroom-links {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.classroom-quick-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--primary);
  padding: 2px 7px;
  border-radius: var(--radius-xs);
  font-size: 0.73rem;
  cursor: pointer;
  transition: background 0.12s ease, transform 0.1s ease;
}

.classroom-quick-chip:hover {
  background: rgba(99, 102, 241, 0.22);
  transform: scale(1.02);
}

.classroom-quick-chip .copy-icon {
  opacity: 0.7;
}

.classroom-quick-chip:hover .copy-icon {
  opacity: 1;
}

.classroom-print-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  font-size: 0.9rem;
}

.classroom-print-table th,
.classroom-print-table td {
  border: 1px solid #cbd5e1;
  padding: 8px 10px;
  text-align: left;
}

.classroom-print-table th {
  background: #f1f5f9;
  font-weight: bold;
}

/* Teacher Contact & Lesson Topic Badges */
.teacher-contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 2px 7px;
  font-size: 0.74rem;
  color: var(--text-secondary);
}

.teacher-contact-pill .teacher-name {
  font-weight: 600;
  color: var(--text-primary);
}

.teacher-contact-pill a.teacher-phone-link,
a.teacher-phone-link {
  color: var(--primary);
  text-decoration: none;
  font-family: var(--font-family-mono);
  font-weight: 600;
  font-size: 0.73rem;
  transition: color var(--transition-fast);
}

.teacher-contact-pill a.teacher-phone-link:hover,
a.teacher-phone-link:hover {
  text-decoration: underline;
  color: var(--primary-hover);
}

.phone-copy-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 2px;
  font-size: 0.72rem;
  color: var(--text-muted);
  transition: color var(--transition-fast), transform 0.1s ease;
  line-height: 1;
}

.phone-copy-btn:hover {
  color: var(--primary);
  transform: scale(1.2);
}

.lesson-topic-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-xs);
  padding: 2px 8px;
  font-size: 0.75rem;
  color: var(--text-primary);
}

.lesson-topic-chip strong {
  color: var(--success);
}

.lesson-hw-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-xs);
  padding: 2px 8px;
  font-size: 0.75rem;
  color: var(--text-primary);
}

.lesson-hw-chip strong {
  color: var(--primary);
}
