/* ═══════════════════════════════════════════════════════
   WU PLAN · Elite Minimalist Design System
   ═══════════════════════════════════════════════════════ */

/* ── SHAKE ANIMATION (iOS-style login error) ─────────── */
@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  15% {
    transform: translateX(-8px);
  }

  30% {
    transform: translateX(7px);
  }

  45% {
    transform: translateX(-6px);
  }

  60% {
    transform: translateX(5px);
  }

  75% {
    transform: translateX(-3px);
  }

  90% {
    transform: translateX(2px);
  }
}

.shake {
  animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* ── TOAST NOTIFICATION ─────────────────────────────── */
.toast {
  position: fixed;
  top: calc(16px + var(--safe-top));
  left: 50%;
  transform: translateX(-50%) translateY(-80px);
  background: var(--destructive);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 20px;
  white-space: nowrap;
  z-index: 200;
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
  max-width: calc(100vw - 40px);
  text-align: center;
}

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

/* ── BUTTON LOADER ──────────────────────────────────── */
.btn-primary .btn-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-top-color: var(--bg);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}

[data-theme="light"] .btn-primary .btn-spinner {
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
}

/* ── OFFLINE BANNER ─────────────────────────────────── */
.offline-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--bg-secondary);
  border-bottom: 0.5px solid var(--border-strong);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  flex-shrink: 0;
  animation: fadeIn 0.3s ease;
}

.offline-banner svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  color: var(--text-tertiary);
}

/* ── RESET ──────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── DESIGN TOKENS ──────────────────────────────────── */
:root {
  /* Dark mode (default, OLED-ready) */
  --bg: #000000;
  --bg-secondary: #0A0A0A;
  --bg-elevated: #111111;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --text: #FFFFFF;
  --text-secondary: #888888;
  --text-tertiary: #555555;
  --accent: #0A84FF;
  --accent-dim: rgba(10, 132, 255, 0.12);
  --destructive: #FF453A;
  --skeleton-base: #111111;
  --skeleton-shine: #1A1A1A;
  --sheet-backdrop: rgba(0, 0, 0, 0.6);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);

  color-scheme: dark;
}

/* Light mode */
[data-theme="light"] {
  --bg: #FFFFFF;
  --bg-secondary: #F5F5F7;
  --bg-elevated: #FFFFFF;
  --border: rgba(0, 0, 0, 0.06);
  --border-strong: rgba(0, 0, 0, 0.12);
  --text: #000000;
  --text-secondary: #888888;
  --text-tertiary: #AAAAAA;
  --accent: #007AFF;
  --accent-dim: rgba(0, 122, 255, 0.08);
  --destructive: #FF3B30;
  --skeleton-base: #F0F0F0;
  --skeleton-shine: #E0E0E0;
  --sheet-backdrop: rgba(0, 0, 0, 0.3);

  color-scheme: light;
}

/* ── BASE ───────────────────────────────────────────── */
html,
body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

.selectable {
  -webkit-user-select: text;
  user-select: text;
}

/* ── SCREENS ────────────────────────────────────────── */
.screen {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding-top: var(--safe-top);
  padding-bottom: var(--safe-bottom);
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
  transition: opacity 0.3s ease, transform 0.3s ease;
  will-change: opacity, transform;
}

.screen.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

/* ═══════════════════════════════════════════════════════
   LOGIN SCREEN
   ═══════════════════════════════════════════════════════ */
#login-screen {
  align-items: center;
  justify-content: center;
  padding: 32px 28px;
  background: var(--bg);
}

.login-brand {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 56px;
}

.login-brand span {
  color: var(--text);
}

.login-title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  text-align: center;
}

.login-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  text-align: center;
}

/* Form fields */
.field {
  width: 100%;
  max-width: 360px;
  margin-bottom: 12px;
}

.field-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.field-input {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-secondary);
  border: 0.5px solid var(--border-strong);
  border-radius: 10px;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', monospace;
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.field-input:focus {
  border-color: var(--accent);
}

.field-input::placeholder {
  color: var(--text-tertiary);
}

/* Primary button */
.btn-primary {
  width: 100%;
  max-width: 360px;
  padding: 15px;
  background: var(--text);
  border: none;
  border-radius: 10px;
  color: var(--bg);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.1s ease;
  margin-top: 8px;
  -webkit-appearance: none;
  appearance: none;
}

.btn-primary:active {
  opacity: 0.7;
  transform: scale(0.98);
}

.btn-primary:disabled {
  opacity: 0.3;
  pointer-events: none;
}

.login-error {
  margin-top: 16px;
  font-size: 13px;
  color: var(--destructive);
  text-align: center;
  min-height: 20px;
  max-width: 360px;
}

/* ═══════════════════════════════════════════════════════
   APP SCREEN
   ═══════════════════════════════════════════════════════ */
#app-screen {
  background: var(--bg);
}

/* ── HEADER ─────────────────────────────────────────── */
.app-header {
  padding: 14px 20px 0;
  flex-shrink: 0;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.header-brand {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.header-brand span {
  color: var(--text);
}

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

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  border: 0.5px solid var(--border-strong);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
  flex-shrink: 0;
}

.icon-btn:active {
  background: var(--bg-secondary);
  color: var(--text);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

/* ── DAY HEADING ────────────────────────────────────── */
.day-heading {
  padding: 0 20px 16px;
  flex-shrink: 0;
}

.day-heading-main {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.day-heading-sub {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ── WEEK NAV ───────────────────────────────────────── */
.week-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px 12px;
  flex-shrink: 0;
}

.week-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  border: 0.5px solid var(--border-strong);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  -webkit-appearance: none;
  appearance: none;
  transition: background 0.15s ease;
}

.week-arrow:active {
  background: var(--bg-secondary);
}

.week-arrow svg {
  width: 16px;
  height: 16px;
}

.week-label {
  flex: 1;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.today-indicator {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ── DAY TABS ───────────────────────────────────────── */
.day-tabs {
  display: flex;
  gap: 2px;
  padding: 0 20px 12px;
  overflow-x: auto;
  flex-shrink: 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

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

.day-tab {
  flex: 1;
  min-width: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 6px;
  border-radius: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
  color: inherit;
}

.day-tab:active {
  background: var(--bg-secondary);
}

.day-tab-name {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.day-tab-num {
  font-size: 17px;
  font-weight: 600;
  margin-top: 4px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.15s ease, color 0.15s ease;
}

.day-tab.active .day-tab-num {
  background: var(--text);
  color: var(--bg);
}

.day-tab.today:not(.active) .day-tab-num {
  color: var(--accent);
}

.day-tab.today:not(.active) .day-tab-name {
  color: var(--accent);
}

/* Separator */
.separator {
  height: 0.5px;
  background: var(--border);
  margin: 0 20px;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════
   SCHEDULE LIST
   ═══════════════════════════════════════════════════════ */
.schedule-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  -webkit-overflow-scrolling: touch;
}

/* ── CLASS CARD ─────────────────────────────────────── */
.class-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 0.5px solid var(--border);
  cursor: pointer;
  transition: opacity 0.2s ease;
  position: relative;
}

.class-card:last-child {
  border-bottom: none;
}

.class-card:active {
  opacity: 0.6;
}

/* Past class */
.class-card.past {
  opacity: 0.35;
}

.class-card.past:active {
  opacity: 0.25;
}

/* Current class */
.class-card.current {
  opacity: 1;
  padding: 16px;
  margin: 0 -16px 0;
  border: 1px solid var(--accent);
  border-radius: 12px;
  border-bottom: 1px solid var(--accent);
  position: relative;
  overflow: hidden;
}

.class-card.current+.class-card {
  border-top: none;
}

/* Progress bar for current class */
.progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--accent);
  transition: width 1s linear;
  border-radius: 0 1px 0 0;
}

/* Time column */
.time-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 42px;
  flex-shrink: 0;
  padding-top: 1px;
}

.time-start {
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.time-end {
  font-size: 12px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}

/* Class content */
.class-content {
  flex: 1;
  min-width: 0;
}

.class-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.class-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.meta-item {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 3px;
}

.meta-item svg {
  width: 12px;
  height: 12px;
}

.meta-dot {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--text-tertiary);
  flex-shrink: 0;
}

.type-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}

/* Chevron */
.card-chevron {
  flex-shrink: 0;
  color: var(--text-tertiary);
  align-self: center;
}

.card-chevron svg {
  width: 16px;
  height: 16px;
}

/* ═══════════════════════════════════════════════════════
   EMPTY STATE
   ═══════════════════════════════════════════════════════ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 40px;
  text-align: center;
}

.empty-state-icon {
  color: var(--text-tertiary);
  margin-bottom: 16px;
}

.empty-state-icon svg {
  width: 40px;
  height: 40px;
  stroke-width: 1;
}

.empty-state-title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.empty-state-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ── FEEDBACK LINK ─────────────────────────────────────── */
.feedback-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 24px 0 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  opacity: 0.7;
  text-decoration: none;
  transition: opacity 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.feedback-link:active {
  opacity: 0.35;
}

.feedback-link svg {
  width: 13px;
  height: 13px;
}

.feedback-icon {
  color: var(--text-tertiary);
  transition: opacity 0.15s ease;
}

.feedback-icon:active {
  opacity: 0.4;
}

/* ═══════════════════════════════════════════════════════
   SKELETON LOADING
   ═══════════════════════════════════════════════════════ */
.skeleton-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 0.5px solid var(--border);
}

.skeleton-card:last-child {
  border-bottom: none;
}

.skeleton-bone {
  background: var(--skeleton-base);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}

.skeleton-bone::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
      transparent 0%,
      var(--skeleton-shine) 50%,
      transparent 100%);
  animation: shimmer 1.5s ease-in-out infinite;
  transform: translateX(-100%);
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

.skeleton-time {
  width: 42px;
  flex-shrink: 0;
}

.skeleton-time-1 {
  width: 36px;
  height: 14px;
  margin-bottom: 6px;
}

.skeleton-time-2 {
  width: 28px;
  height: 10px;
  margin-left: auto;
}

.skeleton-content {
  flex: 1;
}

.skeleton-title {
  height: 16px;
  width: 75%;
  margin-bottom: 10px;
}

.skeleton-meta-row {
  display: flex;
  gap: 8px;
}

.skeleton-meta-1 {
  height: 10px;
  width: 50px;
}

.skeleton-meta-2 {
  height: 10px;
  width: 70px;
}

/* ═══════════════════════════════════════════════════════
   BOTTOM SHEET
   ═══════════════════════════════════════════════════════ */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: var(--sheet-backdrop);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.sheet-backdrop.open {
  opacity: 1;
  pointer-events: all;
}

.sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-elevated);
  border-top: 0.5px solid var(--border-strong);
  border-radius: 16px 16px 0 0;
  padding: 0 24px calc(24px + var(--safe-bottom));
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  z-index: 51;
  max-height: 85vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

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

.sheet-handle {
  width: 36px;
  height: 4px;
  background: var(--border-strong);
  border-radius: 2px;
  margin: 10px auto 24px;
  flex-shrink: 0;
}

.sheet-header {
  margin-bottom: 24px;
}

.sheet-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.sheet-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Detail rows */
.detail-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 0.5px solid var(--border);
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-icon {
  flex-shrink: 0;
  color: var(--text-secondary);
  margin-top: 2px;
}

.detail-icon svg {
  width: 18px;
  height: 18px;
}

.detail-info {
  flex: 1;
  min-width: 0;
}

.detail-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 3px;
}

.detail-value {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
}

.detail-value a {
  color: var(--accent);
  text-decoration: none;
}

/* Sheet skeleton */
.sheet-skeleton .detail-row {
  border-bottom: 0.5px solid var(--border);
}

.sheet-skeleton .skeleton-bone {
  display: inline-block;
}

/* ═══════════════════════════════════════════════════════
   LANGUAGE DROPDOWN
   ═══════════════════════════════════════════════════════ */
.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-elevated);
  border: 0.5px solid var(--border-strong);
  border-radius: 10px;
  overflow: hidden;
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px) scale(0.97);
  transition: opacity 0.15s ease, transform 0.15s ease;
  min-width: 100px;
}

.lang-dropdown.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0) scale(1);
}

.lang-option {
  display: block;
  width: 100%;
  padding: 10px 16px;
  background: transparent;
  border: none;
  border-bottom: 0.5px solid var(--border);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: background 0.1s ease;
}

.lang-option:last-child {
  border-bottom: none;
}

.lang-option:active {
  background: var(--bg-secondary);
}

.lang-option.active {
  color: var(--accent);
}

/* ═══════════════════════════════════════════════════════
   iOS ADD TO HOME BANNER
   ═══════════════════════════════════════════════════════ */
.ios-banner {
  position: fixed;
  bottom: calc(16px + var(--safe-bottom));
  left: 16px;
  right: 16px;
  background: var(--bg-elevated);
  border: 0.5px solid var(--border-strong);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 100;
  font-size: 13px;
  color: var(--text-secondary);
  animation: bannerSlideUp 0.4s ease;
}

@keyframes bannerSlideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
}

.ios-banner strong {
  color: var(--text);
}

.ios-banner-icon {
  color: var(--accent);
  flex-shrink: 0;
}

.ios-banner-icon svg {
  width: 20px;
  height: 20px;
}

.ios-close {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ios-close svg {
  width: 18px;
  height: 18px;
}

/* ═══════════════════════════════════════════════════════
   UTILITIES
   ═══════════════════════════════════════════════════════ */

/* Hide visually but keep accessible */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Loading spinner */
.spinner {
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--border-strong);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Fade-in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeIn 0.3s ease forwards;
}

/* Relative container for dropdowns */
.relative {
  position: relative;
}

/* ═══════════════════════════════════════════════════════
   ONBOARDING SCREEN
   ═══════════════════════════════════════════════════════ */
#onboarding-screen {
  background: #000000;
  padding: 0;
  z-index: 300;
  transition: opacity 0.5s ease;
}

/* Slides container */
.ob-slides {
  position: absolute;
  inset: 0;
}

.ob-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 36px;
  padding-top: calc(80px + var(--safe-top));
  padding-bottom: calc(200px + var(--safe-bottom));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.ob-slide.active {
  opacity: 1;
  pointer-events: inherit;
}

/* SVG area */
.ob-illustration {
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 44px;
}

.ob-illustration svg {
  width: 100%;
  height: 100%;
}

/* Pulse — slide 1 */
@keyframes ob-pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.07);
    opacity: 0.8;
  }
}

.ob-pulse {
  animation: ob-pulse 2.5s ease-in-out infinite;
  transform-origin: center;
}

/* Float — slide 2 */
@keyframes ob-float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.ob-float {
  animation: ob-float 2.2s ease-in-out infinite;
}

/* Drop-in — slide 3 app icon */
@keyframes ob-drop {
  0% {
    transform: translateY(-28px);
    opacity: 0;
  }

  65% {
    transform: translateY(4px);
    opacity: 1;
  }

  82% {
    transform: translateY(-2px);
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.ob-drop {
  animation: ob-drop 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}

/* Text */
.ob-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-align: center;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 12px;
}

.ob-subtitle {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  line-height: 1.5;
  max-width: 280px;
}

/* Bottom controls */
.ob-controls {
  position: absolute;
  bottom: calc(40px + var(--safe-bottom));
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 0 32px;
}

/* Dots */
.ob-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.ob-dot {
  width: 5px;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.2);
  transition: width 0.3s ease, background 0.3s ease;
}

.ob-dot.active {
  width: 18px;
  background: #ffffff;
}

/* Skip / Next row */
.ob-btn-row {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
}

.ob-btn-skip {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.3);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 10px 0;
  -webkit-appearance: none;
}

.ob-btn-next {
  background: #ffffff;
  border: none;
  color: #000000;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 24px;
  cursor: pointer;
  -webkit-appearance: none;
  transition: opacity 0.15s ease, transform 0.1s ease;
}

.ob-btn-next:active,
.ob-btn-start:active {
  opacity: 0.8;
  transform: scale(0.97);
}

/* Start button (last slide) */
.ob-btn-start {
  display: none;
  width: 100%;
  background: #ffffff;
  border: none;
  color: #000000;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  padding: 16px;
  border-radius: 14px;
  cursor: pointer;
  -webkit-appearance: none;
  transition: opacity 0.15s ease, transform 0.1s ease;
}

.ob-btn-start.visible {
  display: block;
}

.day-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.day-tab-dots {
  display: flex;
  gap: 3px;
  height: 6px;
  align-items: center;
  min-height: 6px;
}

.load-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
}

.class-card {
  border-left: 3px solid transparent;
  transition: border-left-color 0.15s ease;
}

.class-card[data-form="wyklad"] { border-left-color: #8A2BE2; }
.class-card[data-form="laboratorium"] { border-left-color: #007AFF; }
.class-card[data-form="cwiczenia"] { border-left-color: #FF9500; }
.class-card[data-form="seminarium"] { border-left-color: #FF6B35; }
.class-card[data-form="default"] { border-left-color: #444; }

.pull-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 0;
  overflow: hidden;
  transition: height 0.2s ease;
  opacity: 0.6;
}

.pull-indicator.visible {
  height: 40px;
}

.week-sum-day {
  margin-bottom: 20px;
}

.week-sum-header {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 0.5px solid var(--border);
}

.week-sum-row {
  display: flex;
  gap: 10px;
  padding: 4px 0;
  font-size: 13px;
  line-height: 1.4;
}

.week-sum-time {
  color: var(--text-secondary);
  flex-shrink: 0;
  min-width: 36px;
  font-variant-numeric: tabular-nums;
}

.week-sum-info {
  color: var(--text);
}