:root {
  --bg-pure: #FFFFFF;
  --surface-glass: rgba(255, 255, 255, 0.86);
  --surface-card: rgba(255, 255, 255, 0.92);
  --surface-subtle: #FAF7FE;

  --violet-900: #1A1033;
  --violet-700: #5B21B6;
  --violet-600: #7C3AED;
  --violet-500: #8B5CF6;
  --violet-400: #A78BFA;
  --violet-200: #DDD6FE;
  --violet-100: #F3E8FF;
  --violet-50: #FAF5FF;

  --pink-600: #DB2777;
  --pink-500: #EC4899;
  --pink-400: #F472B6;
  --pink-200: #FBCFE8;
  --pink-100: #FCE7F3;
  --pink-50: #FDF2F8;

  --text-primary: #171126;
  --text-secondary: #685E7F;
  --text-muted: #9E94B4;

  --grad-primary: linear-gradient(135deg, #7C3AED 0%, #B83280 52%, #EC4899 100%);
  --grad-soft: linear-gradient(135deg, rgba(124, 58, 237, 0.08) 0%, rgba(236, 72, 153, 0.09) 100%);
  --grad-box-filled: linear-gradient(140deg, #7C3AED 0%, #A855F7 46%, #EC4899 100%);
  --grad-warning-card: linear-gradient(145deg, rgba(255, 255, 255, 0.96) 0%, rgba(250, 245, 255, 0.94) 50%, rgba(253, 242, 248, 0.94) 100%);
  --grad-limit-card: linear-gradient(140deg, rgba(243, 232, 255, 0.72) 0%, rgba(252, 231, 243, 0.85) 100%);

  --border-hairline: rgba(139, 92, 246, 0.13);
  --border-warning: rgba(236, 72, 153, 0.38);
  --border-limit: rgba(219, 39, 119, 0.58);

  --shadow-card: 0 10px 30px -10px rgba(124, 58, 237, 0.07), 0 2px 8px -2px rgba(236, 72, 153, 0.04);
  --shadow-warning: 0 14px 34px -10px rgba(236, 72, 153, 0.15), 0 4px 12px -2px rgba(124, 58, 237, 0.08);
  --shadow-limit: 0 16px 38px -8px rgba(236, 72, 153, 0.24), 0 6px 16px -4px rgba(124, 58, 237, 0.14);
  --shadow-pill: 0 8px 20px -6px rgba(124, 58, 237, 0.34);

  --radius-card: 26px;
  --radius-box: 18px;
  --radius-pill: 9999px;

  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  background-color: var(--bg-pure);
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-pure);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  position: relative;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: calc(env(safe-area-inset-bottom, 20px) + 92px);
  user-select: none;
  -webkit-user-select: none;
}

/* Google Antigravity Weightless Backdrop & Dot Texture */
.ag-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background: var(--bg-pure);
}

.ag-dot-matrix {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(139, 92, 246, 0.24) 1.15px, transparent 1.15px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 90% 65% at 50% 18%, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.35) 58%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 65% at 50% 18%, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.35) 58%, transparent 100%);
}

.ag-aura {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.45;
  will-change: transform;
}

.ag-aura--violet {
  width: 340px;
  height: 340px;
  top: -110px;
  left: -80px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.28) 0%, rgba(139, 92, 246, 0) 70%);
  animation: floatSlow 18s ease-in-out infinite alternate;
}

.ag-aura--pink {
  width: 320px;
  height: 320px;
  top: -60px;
  right: -90px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.25) 0%, rgba(236, 72, 153, 0) 70%);
  animation: floatSlow 22s ease-in-out infinite alternate-reverse;
}

.ag-aura--center {
  width: 420px;
  height: 260px;
  top: 28%;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(167, 139, 250, 0.10) 0%, rgba(244, 114, 182, 0.08) 45%, transparent 72%);
}

@keyframes floatSlow {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(18px, 24px, 0) scale(1.08);
  }
}

#agParticles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.75;
}

/* Main App Container */
.app-shell {
  position: relative;
  z-index: 1;
  max-width: 540px;
  margin: 0 auto;
  padding: 18px 18px 28px;
}

/* Hero Section */
.hero {
  padding: 8px 4px 18px;
}

.hero-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.faculty-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(139, 92, 246, 0.18);
  box-shadow: 0 2px 10px rgba(124, 58, 237, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--violet-700);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--grad-primary);
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.18);
}

.semester-badge {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--grad-soft);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(236, 72, 153, 0.16);
  font-variant-numeric: tabular-nums;
}

.hero-greeting {
  font-size: clamp(30px, 7.5vw, 38px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.hero-greeting-name {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.12em;
  padding-right: 4px;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
  line-height: 1.45;
  margin-bottom: 18px;
}

/* Weightless Semester Countdown & Overview Card */
.overview-card {
  position: relative;
  background: var(--surface-card);
  border: 1px solid rgba(139, 92, 246, 0.16);
  border-radius: 24px;
  padding: 16px 18px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
}

.overview-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad-primary);
  opacity: 0.75;
}

.overview-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}

.overview-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.overview-stat--center {
  text-align: center;
}

.overview-stat--right {
  text-align: right;
}

.overview-divider {
  width: 1px;
  height: 28px;
  background: linear-gradient(180deg, transparent, rgba(139, 92, 246, 0.2), transparent);
}

.stat-value {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

.stat-value--accent {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.timeline-bar-wrap {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(139, 92, 246, 0.09);
}

.timeline-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 7px;
  font-variant-numeric: tabular-nums;
}

.timeline-track {
  width: 100%;
  height: 5px;
  background: rgba(139, 92, 246, 0.10);
  border-radius: var(--radius-pill);
  overflow: hidden;
  position: relative;
}

.timeline-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  background: var(--grad-primary);
  transition: width 0.6s var(--ease-spring);
}

/* Sticky Day Filter Pill Bar */
.filter-sticky-wrap {
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + 8px);
  z-index: 30;
  margin: 14px -18px 18px;
  padding: 6px 18px;
}

.day-filter-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 5px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 24px -8px rgba(124, 58, 237, 0.10);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.day-filter-bar::-webkit-scrollbar {
  display: none;
}

.day-pill {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 8px 15px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  transition: all 0.25s var(--ease-spring);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.day-pill:active {
  transform: scale(0.95);
}

.day-pill.is-active {
  background: var(--grad-primary);
  color: #FFFFFF;
  box-shadow: var(--shadow-pill);
}

.day-pill-today-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--pink-500);
  transition: background 0.25s ease;
}

.day-pill.is-active .day-pill-today-dot {
  background: #FFFFFF;
}

/* Section Day Subheader (When viewing All or Specific Day) */
.section-summary-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.section-summary-hint {
  color: var(--violet-600);
  font-weight: 600;
  opacity: 0.85;
}

/* Course List & Cards */
.courses-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.course-card {
  position: relative;
  background: var(--surface-card);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-card);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.28s var(--ease-spring), border-color 0.3s ease, background 0.35s ease, box-shadow 0.35s ease;
  overflow: hidden;
}

/* Approaching limit state (1 slot left) */
.course-card.is-approaching {
  background: var(--grad-warning-card);
  border-color: var(--border-warning);
  box-shadow: var(--shadow-warning);
}

/* At or over limit state (0 slots left) */
.course-card.is-limit {
  background: var(--grad-limit-card);
  border-color: var(--border-limit);
  box-shadow: var(--shadow-limit);
}

.course-card.is-limit::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-primary);
}

.course-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.course-title-group {
  flex: 1;
  min-width: 0;
}

.course-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.type-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.type-badge--teorik {
  background: rgba(124, 58, 237, 0.09);
  color: var(--violet-700);
  border: 1px solid rgba(124, 58, 237, 0.16);
}

.type-badge--uygulama {
  background: rgba(236, 72, 153, 0.10);
  color: var(--pink-600);
  border: 1px solid rgba(236, 72, 153, 0.20);
}

.day-schedule-tag {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.classroom-pill {
  display: inline-flex;
  align-items: center;
  padding: 2.5px 8px;
  border-radius: var(--radius-pill);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--violet-600);
  background: rgba(139, 92, 246, 0.07);
  border: 1px solid rgba(139, 92, 246, 0.14);
}

.course-name {
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.28;
  color: var(--text-primary);
}

/* Right Status Pill on Card */
.status-pill {
  flex-shrink: 0;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  background: rgba(139, 92, 246, 0.08);
  color: var(--violet-700);
  border: 1px solid rgba(139, 92, 246, 0.14);
  transition: all 0.25s ease;
}

.course-card.is-approaching .status-pill {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.14) 0%, rgba(236, 72, 153, 0.18) 100%);
  color: var(--pink-600);
  border-color: rgba(236, 72, 153, 0.35);
}

.course-card.is-limit .status-pill {
  background: var(--grad-primary);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.30);
}

/* Absence Boxes Row ("Kutucuklar") */
.boxes-grid {
  display: grid;
  grid-template-columns: repeat(var(--box-count, 4), minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 13px;
}

.absence-box {
  position: relative;
  height: 62px;
  border-radius: var(--radius-box);
  border: 1.5px dashed rgba(139, 92, 246, 0.26);
  background: rgba(250, 247, 254, 0.65);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  transition: all 0.26s var(--ease-spring);
  padding: 6px 4px;
  overflow: hidden;
}

.absence-box:active {
  transform: scale(0.93);
}

.absence-box.is-empty:hover {
  border-color: rgba(236, 72, 153, 0.45);
  background: rgba(253, 242, 248, 0.65);
}

.box-slot-index {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.box-slot-hours {
  font-size: 12px;
  font-weight: 700;
  color: var(--violet-500);
  opacity: 0.72;
  font-variant-numeric: tabular-nums;
}

/* Filled Absence Box */
.absence-box.is-filled {
  border-style: solid;
  border-color: transparent;
  background: var(--grad-box-filled);
  box-shadow: 0 8px 18px -6px rgba(236, 72, 153, 0.42), 0 2px 6px -1px rgba(124, 58, 237, 0.25);
  color: #FFFFFF;
  justify-content: space-between;
  padding: 7px 4px 5px;
  animation: boxPop 0.34s var(--ease-spring);
}

@keyframes boxPop {
  0% {
    transform: scale(0.86);
  }
  60% {
    transform: scale(1.04);
  }
  100% {
    transform: scale(1);
  }
}

.box-filled-hours {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.82);
  font-variant-numeric: tabular-nums;
}

.box-filled-date-btn {
  appearance: none;
  border: none;
  background: rgba(255, 255, 255, 0.20);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  max-width: 94%;
  overflow: hidden;
  text-overflow: ellipsis;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.box-filled-date-btn:active {
  transform: scale(0.92);
  background: rgba(255, 255, 255, 0.34);
}

/* Card Footer Live Metrics */
.course-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(139, 92, 246, 0.09);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.course-card.is-approaching .course-footer,
.course-card.is-limit .course-footer {
  border-top-color: rgba(236, 72, 153, 0.18);
}

.footer-used {
  font-weight: 600;
  color: var(--text-secondary);
}

.footer-used strong {
  color: var(--text-primary);
  font-weight: 700;
}

.footer-remaining {
  font-weight: 600;
  color: var(--violet-700);
  text-align: right;
}

.course-card.is-approaching .footer-remaining {
  color: var(--pink-600);
}

.course-card.is-limit .footer-remaining {
  color: var(--pink-600);
  font-weight: 700;
}

/* Subtle Footer Preferences & Offline Status */
.app-footer {
  margin-top: 28px;
  padding: 18px 8px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.rounding-pill-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: rgba(250, 245, 255, 0.85);
  border: 1px solid rgba(139, 92, 246, 0.16);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.rounding-pill-toggle:active {
  transform: scale(0.97);
}

.rounding-pill-toggle strong {
  color: var(--violet-700);
}

.footer-caption {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Floating Contextual Toast Pill (Date Quick-Edit or Undo) */
.toast-bar {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 16px) + 18px);
  transform: translate3d(-50%, 130%, 0);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: calc(100% - 36px);
  max-width: 440px;
  padding: 11px 14px 11px 18px;
  border-radius: var(--radius-pill);
  background: rgba(23, 17, 38, 0.92);
  color: #FFFFFF;
  box-shadow: 0 16px 36px -6px rgba(23, 17, 38, 0.32), 0 0 0 1px rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: transform 0.36s var(--ease-spring), opacity 0.28s ease;
  opacity: 0;
  pointer-events: none;
}

.toast-bar.is-visible {
  transform: translate3d(-50%, 0, 0);
  opacity: 1;
  pointer-events: auto;
}

.toast-text {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.toast-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.toast-btn {
  appearance: none;
  border: none;
  background: var(--grad-primary);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.toast-btn--ghost {
  background: rgba(255, 255, 255, 0.14);
}

.toast-btn:active {
  transform: scale(0.94);
}

/* Weightless Bottom Sheet for Single-Tap Date & Hour Selection */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(23, 17, 38, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

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

.date-sheet {
  width: 100%;
  max-width: 500px;
  background: #FFFFFF;
  border-radius: 30px 30px 0 0;
  border-top: 1px solid rgba(139, 92, 246, 0.20);
  padding: 14px 20px calc(env(safe-area-inset-bottom, 20px) + 22px);
  box-shadow: 0 -16px 48px rgba(124, 58, 237, 0.16);
  transform: translateY(100%);
  transition: transform 0.36s var(--ease-spring);
}

.sheet-backdrop.is-open .date-sheet {
  transform: translateY(0);
}

.sheet-handle {
  width: 38px;
  height: 4px;
  border-radius: var(--radius-pill);
  background: rgba(139, 92, 246, 0.22);
  margin: 0 auto 16px;
}

.sheet-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.sheet-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.sheet-subtitle {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: 2px;
}

.sheet-close-btn {
  appearance: none;
  border: 1px solid rgba(139, 92, 246, 0.16);
  background: var(--surface-subtle);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  cursor: pointer;
}

.sheet-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.quick-dates-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 16px;
  max-height: 150px;
  overflow-y: auto;
  padding-bottom: 2px;
}

.quick-date-pill {
  appearance: none;
  border: 1px solid rgba(139, 92, 246, 0.18);
  background: var(--surface-subtle);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-variant-numeric: tabular-nums;
  transition: all 0.2s ease;
}

.quick-date-pill.is-selected {
  background: var(--grad-primary);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.28);
}

.sheet-custom-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.sheet-hours-section {
  margin-bottom: 16px;
}

.sheet-hours-section[hidden] {
  display: none;
}

.sheet-hours-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.sheet-date-input {
  flex: 1;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(139, 92, 246, 0.24);
  background: var(--surface-subtle);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 16px;
  outline: none;
}

.sheet-date-input:focus {
  border-color: var(--pink-500);
}

.sheet-actions {
  display: flex;
  gap: 10px;
}

.sheet-btn {
  flex: 1;
  appearance: none;
  border: none;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  padding: 12px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.sheet-btn:active {
  transform: scale(0.97);
}

.sheet-btn--delete {
  background: var(--pink-50);
  color: var(--pink-600);
  border: 1px solid rgba(236, 72, 153, 0.25);
}

.sheet-btn--save {
  background: var(--grad-primary);
  color: #FFFFFF;
  box-shadow: var(--shadow-pill);
}

@media (max-width: 390px) {
  .app-shell {
    padding: 14px 14px 24px;
  }
  .boxes-grid {
    gap: 6px;
  }
  .absence-box {
    height: 58px;
  }
}
