/* ═══════════════════════════════════════════════════════════
   STUDY APP — STYLE.CSS
   iOS-native aesthetic · Pure black & white · Dark mode aware
   ═══════════════════════════════════════════════════════════ */

/* ───────────────────────────────────────────
   CSS CUSTOM PROPERTIES — THEME
─────────────────────────────────────────── */
:root {
  --bg: #ffffff;
  --fg: #000000;
  --fg-secondary: rgba(0,0,0,0.40);
  --fg-tertiary: rgba(0,0,0,0.20);
  --border: rgba(0,0,0,0.10);
  --border-strong: rgba(0,0,0,0.18);
  --card-bg: #ffffff;
  --card-shadow: 0 2px 24px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
  --deck-bg: #ffffff;
  --compose-bg: rgba(255,255,255,0.80);
  --input-bg: rgba(0,0,0,0.05);
  --bubble-out: #218AFF;
  --bubble-in: rgba(0,0,0,0.07);
  --bubble-out-text: #ffffff;
  --bubble-in-text: #000000;
  --overlay-blur: blur(20px) saturate(1.8);
  --radius-card: 18px;
  --radius-bubble: 18px;
  --font-system: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', sans-serif;
  --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);
  --transition-screen: 0.42s cubic-bezier(0.32, 0.72, 0, 1);
  --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --fg: #ffffff;
    --fg-secondary: rgba(255,255,255,0.40);
    --fg-tertiary: rgba(255,255,255,0.20);
    --border: rgba(255,255,255,0.10);
    --border-strong: rgba(255,255,255,0.18);
    --card-bg: #111111;
    --card-shadow: 0 2px 24px rgba(0,0,0,0.6), 0 1px 4px rgba(0,0,0,0.4);
    --deck-bg: #111111;
    --compose-bg: rgba(0,0,0,0.80);
    --input-bg: rgba(255,255,255,0.08);
    --bubble-in: rgba(255,255,255,0.10);
    --bubble-in-text: #ffffff;
  }
}

/* ───────────────────────────────────────────
   RESET & BASE
─────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  height: 100%;
  overflow: hidden;
}

body {
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-system);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  transition: background 0.3s ease, color 0.3s ease;
  touch-action: manipulation;
}

input, button, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  -webkit-appearance: none;
  appearance: none;
  border: none;
  background: none;
  outline: none;
}

button {
  cursor: pointer;
  user-select: none;
}

::selection {
  background: rgba(0,122,255,0.2);
}

/* ───────────────────────────────────────────
   SCREEN SYSTEM — LAYERED NAVIGATION
─────────────────────────────────────────── */
.screen {
  position: fixed;
  inset: 0;
  background: var(--bg);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
  transition:
    opacity var(--transition-screen),
    transform var(--transition-screen);
  transform: translateX(100%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.screen.active {
  opacity: 1;
  pointer-events: all;
  transform: translateX(0);
}

.screen.slide-left {
  transform: translateX(-28%);
  opacity: 0.4;
  pointer-events: none;
}

.screen.fade-out {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.96);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.screen.fade-in {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.04);
}

/* ───────────────────────────────────────────
   AUTH SCREEN
─────────────────────────────────────────── */
#screen-auth {
  transform: translateX(0);
  justify-content: center;
  align-items: center;
  padding: calc(var(--safe-top) + 20px) 40px calc(var(--safe-bottom) + 20px);
}

.auth-container {
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

.auth-logo {
  display: flex;
  justify-content: center;
}

.auth-logo-mark {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--fg);
  opacity: 0.06;
  border: 1.5px solid var(--fg);
  position: relative;
}

.auth-logo-mark::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 20px;
  border-top: 2px solid var(--fg);
  border-bottom: 2px solid var(--fg);
}

/* Make the logo visible in both modes */
@media (prefers-color-scheme: dark) {
  .auth-logo-mark {
    opacity: 0.15;
  }
}

.auth-fields {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.auth-input {
  width: 100%;
  height: 52px;
  background: var(--input-bg);
  border-radius: 12px;
  padding: 0 16px;
  font-size: 17px;
  letter-spacing: -0.022em;
  color: var(--fg);
  border: 1px solid var(--border);
  transition: border-color var(--transition-smooth), background var(--transition-smooth);
}

.auth-input::placeholder {
  color: var(--fg-secondary);
}

.auth-input:focus {
  border-color: var(--border-strong);
  background: var(--bg);
}

.auth-error {
  font-size: 13px;
  color: #ff3b30;
  text-align: center;
  min-height: 20px;
  letter-spacing: -0.01em;
  transition: opacity 0.2s ease;
}

.auth-submit {
  width: 100%;
  height: 52px;
  background: var(--fg);
  color: var(--bg);
  border-radius: 12px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.022em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity var(--transition-smooth), transform var(--transition-smooth);
  margin-top: 4px;
}

.auth-submit:active {
  opacity: 0.7;
  transform: scale(0.98);
}

/* ───────────────────────────────────────────
   SPINNER
─────────────────────────────────────────── */
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@media (prefers-color-scheme: dark) {
  .spinner {
    border-color: rgba(0,0,0,0.3);
    border-top-color: #000;
  }
}

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

.hidden { display: none !important; }

/* ───────────────────────────────────────────
   HOME SCREEN
─────────────────────────────────────────── */
#screen-home {
  transform: translateX(0);
}

.home-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding:
    calc(var(--safe-top) + 58px)
    20px
    16px;
  background: var(--compose-bg);
  backdrop-filter: var(--overlay-blur);
  -webkit-backdrop-filter: var(--overlay-blur);
  border-bottom: 0.5px solid var(--border);
}

.home-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.home-signout {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-secondary);
  transition: color var(--transition-smooth), opacity var(--transition-smooth);
}

.home-signout:active {
  opacity: 0.5;
}

.deck-grid {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 24px 16px calc(var(--safe-bottom) + 40px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  scrollbar-width: none;
}

.deck-grid::-webkit-scrollbar { display: none; }

/* ───────────────────────────────────────────
   DECK CARDS
─────────────────────────────────────────── */
.deck-card {
  background: var(--deck-bg);
  border-radius: var(--radius-card);
  border: 0.5px solid var(--border);
  aspect-ratio: 3/4;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px 16px 16px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition:
    transform var(--transition-spring),
    box-shadow var(--transition-smooth);
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
}

.deck-card::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  bottom: 50%;
  border-radius: 8px;
  background: var(--border);
  transition: background var(--transition-smooth);
}

.deck-card:active {
  transform: scale(0.96);
}

.deck-card-count {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-secondary);
  margin-bottom: 4px;
  font-weight: 500;
}

.deck-card-name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--fg);
  line-height: 1.2;
}

/* ───────────────────────────────────────────
   CARD VIEWER SCREEN
─────────────────────────────────────────── */
#screen-cards {
  display: flex;
  flex-direction: column;
}

.cards-header {
  padding-top: calc(var(--safe-top) + 14px);
  padding-bottom: 14px;
  padding-left: calc(var(--safe-left) + 6px);
  padding-right: calc(var(--safe-right) + 16px);
  display: flex;
  align-items: center;
  gap: 0;
  border-bottom: 0.5px solid var(--border);
  flex-shrink: 0;
  background: var(--compose-bg);
  backdrop-filter: var(--overlay-blur);
  -webkit-backdrop-filter: var(--overlay-blur);
}

.cards-back {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #218AFF;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.022em;
  padding: 0 12px 0 8px;
  height: 44px;
  transition: opacity var(--transition-smooth);
  white-space: nowrap;
}

.cards-back:active { opacity: 0.5; }

.cards-deck-name {
  flex: 1;
  text-align: center;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cards-progress {
  font-size: 15px;
  color: var(--fg-secondary);
  letter-spacing: -0.02em;
  white-space: nowrap;
  min-width: 40px;
  text-align: right;
}

.cards-viewport {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.cards-track {
  display: flex;
  height: 100%;
  will-change: transform;
  transition: none;
}

.cards-track.animating {
  transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1);
}

/* ───────────────────────────────────────────
   FLASHCARD
─────────────────────────────────────────── */
.flashcard-wrap {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
}

.flashcard {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 3/4;
  max-height: calc(100% - 20px);
  perspective: 1200px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.flashcard-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.4, 0.2, 0.2, 1);
  will-change: transform;
  border-radius: var(--radius-card);
}

.flashcard.flipped .flashcard-inner {
  transform: rotateY(180deg);
}

.flashcard-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius-card);
  background: var(--card-bg);
  border: 0.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  box-shadow: var(--card-shadow);
}

.flashcard-front {
  /* front face, no transform needed */
}

.flashcard-back {
  transform: rotateY(180deg);
}

.flashcard-label {
  position: absolute;
  top: 20px;
  left: 24px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-tertiary);
}

.flashcard-text {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.25;
  text-align: center;
  color: var(--fg);
}

.flashcard-text .secret-trigger {
  /* Looks like normal text — no obvious styling */
  cursor: pointer;
  position: relative;
}

/* Subtle underline only on mobile long-press feel — purely invisible */
.flashcard-text .secret-trigger::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 0.5px;
  background: var(--fg-tertiary);
  opacity: 0;
}

.cards-hint {
  padding: 14px 0 calc(var(--safe-bottom) + 16px);
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.01em;
  color: var(--fg-tertiary);
  flex-shrink: 0;
  transition: opacity 0.4s ease;
}

/* ───────────────────────────────────────────
   CINEMATIC TRANSITION OVERLAY
─────────────────────────────────────────── */
.cinematic-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.cinematic-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

/* ───────────────────────────────────────────
   CHAT SCREEN
─────────────────────────────────────────── */
#screen-chat {
  display: flex;
  flex-direction: column;
  transform: translateX(0);
}

.chat-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding-top: calc(var(--safe-top) + 10px);
  padding-bottom: 10px;
  padding-left: calc(var(--safe-left) + 4px);
  padding-right: calc(var(--safe-right) + 16px);
  border-bottom: 0.5px solid var(--border);
  background: var(--compose-bg);
  backdrop-filter: var(--overlay-blur);
  -webkit-backdrop-filter: var(--overlay-blur);
}

.chat-back {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #218AFF;
  transition: opacity var(--transition-smooth);
  flex-shrink: 0;
}

.chat-back:active { opacity: 0.5; }

.chat-header-identity {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--fg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--bg);
  letter-spacing: -0.02em;
  flex-shrink: 0;
  transition: transform var(--transition-spring);
}

.chat-avatar:active {
  transform: scale(0.92);
}

.chat-peer-name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.chat-header-spacer {
  width: 44px;
  flex-shrink: 0;
}

/* ───────────────────────────────────────────
   MESSAGES LIST
─────────────────────────────────────────── */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 16px 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  scrollbar-width: none;
}

.chat-messages::-webkit-scrollbar { display: none; }

.message-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 2px;
}

.message-group.outgoing {
  align-items: flex-end;
}

.message-group.incoming {
  align-items: flex-start;
}

.message-group + .message-group {
  margin-top: 10px;
}

.message-bubble {
  max-width: 75%;
  padding: 10px 14px;
  border-radius: var(--radius-bubble);
  font-size: 17px;
  letter-spacing: -0.022em;
  line-height: 1.38;
  word-break: break-word;
  position: relative;
  animation: bubble-in 0.32s cubic-bezier(0.34, 1.4, 0.64, 1) both;
  will-change: transform, opacity;
}

@keyframes bubble-in {
  from {
    opacity: 0;
    transform: scale(0.82) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.message-group.outgoing .message-bubble {
  background: var(--bubble-out);
  color: var(--bubble-out-text);
  border-bottom-right-radius: 4px;
}

.message-group.incoming .message-bubble {
  background: var(--bubble-in);
  color: var(--bubble-in-text);
  border-bottom-left-radius: 4px;
}

/* Consecutive messages — tighter corners */
.message-bubble.consecutive-out {
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}

.message-bubble.consecutive-in {
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}

.message-bubble.last-out {
  border-bottom-right-radius: var(--radius-bubble);
}

.message-bubble.last-in {
  border-bottom-left-radius: var(--radius-bubble);
}

/* Timestamp on long-press */
.message-time {
  font-size: 11px;
  color: var(--fg-tertiary);
  letter-spacing: 0.01em;
  margin: 4px 4px 8px;
  text-align: center;
  animation: fade-in 0.2s ease;
}

.message-date-separator {
  text-align: center;
  font-size: 12px;
  color: var(--fg-secondary);
  letter-spacing: 0.01em;
  margin: 16px 0 8px;
  font-weight: 500;
}

/* ───────────────────────────────────────────
   CHAT COMPOSE BAR
─────────────────────────────────────────── */
.chat-compose {
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 10px 16px calc(var(--safe-bottom) + 10px);
  background: var(--compose-bg);
  backdrop-filter: var(--overlay-blur);
  -webkit-backdrop-filter: var(--overlay-blur);
  border-top: 0.5px solid var(--border);
  transition: padding-bottom 0.25s ease;
}

.chat-compose-plus {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  color: var(--fg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--transition-smooth), transform var(--transition-smooth);
  margin-bottom: 2px;
}

.chat-compose-plus:active {
  opacity: 0.5;
  transform: scale(0.9);
}

.chat-input-wrap {
  flex: 1;
  background: var(--input-bg);
  border-radius: 20px;
  border: 0.5px solid var(--border);
  min-height: 36px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  transition: background var(--transition-smooth);
}

.chat-input {
  width: 100%;
  background: none;
  resize: none;
  font-size: 17px;
  letter-spacing: -0.022em;
  line-height: 1.38;
  color: var(--fg);
  padding: 7px 0;
  max-height: 120px;
  overflow-y: auto;
  scrollbar-width: none;
}

.chat-input::-webkit-scrollbar { display: none; }

.chat-input::placeholder {
  color: var(--fg-secondary);
}

.chat-send {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-spring), opacity var(--transition-smooth);
  margin-bottom: 0;
}

.chat-send:active {
  transform: scale(0.88);
}

.chat-send.sending {
  animation: send-pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes send-pop {
  0% { transform: scale(1); }
  40% { transform: scale(0.82); }
  100% { transform: scale(1); }
}

/* ───────────────────────────────────────────
   LOADING / TYPING INDICATOR
─────────────────────────────────────────── */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
  background: var(--bubble-in);
  border-radius: var(--radius-bubble);
  border-bottom-left-radius: 4px;
  width: fit-content;
  animation: bubble-in 0.32s cubic-bezier(0.34, 1.4, 0.64, 1) both;
}

.typing-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--fg-secondary);
  animation: typing-bounce 1.4s ease infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.18s; }
.typing-dot:nth-child(3) { animation-delay: 0.36s; }

@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-5px); opacity: 1; }
}

/* ───────────────────────────────────────────
   EMPTY STATE
─────────────────────────────────────────── */
.chat-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px;
  opacity: 0;
  animation: fade-in 0.6s 0.4s ease forwards;
}

.chat-empty-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--fg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 600;
  color: var(--bg);
}

.chat-empty-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.chat-empty-sub {
  font-size: 15px;
  color: var(--fg-secondary);
  letter-spacing: -0.02em;
}

/* ───────────────────────────────────────────
   ANIMATIONS
─────────────────────────────────────────── */
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slide-up {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Staggered deck card entrance */
.deck-card {
  animation: slide-up 0.5s cubic-bezier(0.32, 0.72, 0, 1) both;
}

.deck-card:nth-child(1) { animation-delay: 0.05s; }
.deck-card:nth-child(2) { animation-delay: 0.09s; }
.deck-card:nth-child(3) { animation-delay: 0.13s; }
.deck-card:nth-child(4) { animation-delay: 0.17s; }
.deck-card:nth-child(5) { animation-delay: 0.21s; }
.deck-card:nth-child(6) { animation-delay: 0.25s; }

/* ───────────────────────────────────────────
   DARK MODE TRANSITIONS — SMOOTH
─────────────────────────────────────────── */
body,
.screen,
.auth-input,
.deck-card,
.flashcard-face,
.chat-compose,
.home-header,
.cards-header,
.chat-header {
  transition-property: background, color, border-color, box-shadow;
  transition-duration: 0.35s;
  transition-timing-function: ease;
}

/* ───────────────────────────────────────────
   UTILITIES
─────────────────────────────────────────── */
.no-select {
  user-select: none;
  -webkit-user-select: none;
}

/* Momentum scroll touch areas */
.scrollable {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* Focus ring accessibility */
:focus-visible {
  outline: 2px solid #218AFF;
  outline-offset: 2px;
}

/* Safe area padding for floating elements */
.safe-bottom {
  padding-bottom: calc(var(--safe-bottom) + 16px);
}
