/* ═══════════════════════════════════════════════
   HABIT TRACKER — STYLES
   Design: warm & organic, flat, earthy, paper-like
   ═══════════════════════════════════════════════ */

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

/* ─── CSS VARIABLES ─── */
:root {
  --color-bg: #FAF8F4;
  --color-surface: #F5F1EB;
  --color-border: #D9D4C7;
  --color-border-light: #E8E3DA;

  --color-accent: #2D5016;
  --color-accent-hover: #3B6D11;
  --color-accent-light: #EAF3DE;
  --color-accent-faint: #F2F8EC;

  --color-today: #FAEEDA;
  --color-today-border: #E8D5B0;

  --color-text-primary: #2C2A25;
  --color-text-secondary: #6B6459;
  --color-text-tertiary: #9C9489;
  --color-text-on-accent: #FFFFFF;

  --color-offline: #E8A020;
  --color-danger: #8B3A2A;

  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Nunito', sans-serif;

  --cell-size: 32px;
  --cell-gap: 2px;
  --label-width: 130px;
  --progress-col-width: 56px;
  --header-height: 52px;
  --border-radius: 6px;
  --transition: 120ms ease;
}

/* ─── BASE ─── */
html {
  height: 100%;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  height: 100%;
  background: var(--color-bg);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  outline: none;
}

button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

input {
  font-family: var(--font-body);
  font-size: inherit;
  outline: none;
}

/* ─── UTILITY ─── */
.hidden { display: none !important; }

/* ════════════════════════════════════════════════
   SIGN-IN SCREEN
   ════════════════════════════════════════════════ */
.signin-screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  z-index: 100;
  padding: 24px;
}

.signin-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 320px;
  width: 100%;
  text-align: center;
}

.signin-logo {
  margin-bottom: 8px;
}

.signin-headline {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 600;
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.signin-subtext {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin-bottom: 8px;
}

.google-signin-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-primary);
  transition: background var(--transition), border-color var(--transition);
  width: 100%;
  justify-content: center;
}

.google-signin-btn:hover {
  background: var(--color-border-light);
  border-color: #C0B9AE;
}

.google-signin-btn:active {
  background: var(--color-border);
}

.google-icon {
  flex-shrink: 0;
}

.signin-error {
  font-size: 13px;
  color: var(--color-danger);
  margin-top: 4px;
}

/* ════════════════════════════════════════════════
   APP SCREEN
   ════════════════════════════════════════════════ */
.app-screen {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  height: 100vh; /* fallback */
  overflow: hidden;
}

/* ─── HEADER ─── */
.app-header {
  display: flex;
  align-items: center;
  gap: 8px;
  height: var(--header-height);
  padding: 0 12px 0 8px;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border-light);
  flex-shrink: 0;
  position: relative;
  z-index: 10;
  transition: border-bottom-color var(--transition);
}

/* Offline indicator: amber bottom border replaces the default border */
.app-header.offline {
  border-bottom: 2px solid var(--color-offline);
}

.nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: var(--color-text-primary);
  transition: background var(--transition);
  flex-shrink: 0;
}

.nav-btn:hover { background: var(--color-surface); }
.nav-btn:active { background: var(--color-border); }

.header-center {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.month-label {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 500;
  color: var(--color-text-primary);
  white-space: nowrap;
}

.update-prompt {
  display: flex;
  align-items: center;
}

.update-btn {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.header-right {
  flex-shrink: 0;
  margin-left: auto;
}

.avatar-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-light);
  border: 1px solid var(--color-border);
  flex-shrink: 0;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.avatar-img[src=""] {
  display: none;
}

.avatar-initials {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  line-height: 1;
}

/* ─── MANAGE MODE LABEL ─── */
.manage-mode-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--color-text-secondary);
  padding: 2px 4px;
}

.done-btn {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent);
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--color-accent-light);
  transition: background var(--transition);
}

.done-btn:hover { background: #D5EABC; }

/* ════════════════════════════════════════════════
   GRID MAIN AREA
   ════════════════════════════════════════════════ */
.grid-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* ─── SCROLL WRAPPER ─── */
.grid-scroll-wrapper {
  flex: 1;
  overflow-x: auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

/* ─── GRID TABLE ─── */
.habit-grid {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 100%;
  table-layout: fixed;
}

/* ─── STICKY COLUMN ─── */
.sticky-col {
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--color-bg);
}

/* ─── DAY HEADER ROW ─── */
.day-header-row th {
  padding: 0;
  height: 32px;
  background: var(--color-bg);
  position: sticky;
  top: 0;
  z-index: 3;
}

.day-header-row .sticky-col {
  z-index: 4;
  min-width: var(--label-width);
  width: var(--label-width);
}

.day-num-header {
  width: var(--cell-size);
  min-width: var(--cell-size);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-tertiary);
  text-align: center;
  vertical-align: bottom;
  padding-bottom: 6px;
  user-select: none;
}

.day-num-header.today {
  color: var(--color-accent);
  font-weight: 700;
}

.day-num-header.disabled-day {
  opacity: 0.25;
}

.progress-header {
  width: var(--progress-col-width);
  min-width: var(--progress-col-width);
}

/* ─── HABIT ROWS ─── */
.habit-row {
  height: 40px;
}

.habit-row:not(:last-child) td {
  border-bottom: 1px solid var(--color-border-light);
}

.habit-row.dragging {
  opacity: 0.5;
}

.habit-row.drag-over-top td {
  border-top: 2px solid var(--color-accent);
}

.habit-row.drag-over-bottom td {
  border-bottom: 2px solid var(--color-accent) !important;
}

.habit-row.muted {
  opacity: 0.45;
}

/* ─── HABIT LABEL CELL ─── */
.habit-label-cell {
  min-width: var(--label-width);
  width: var(--label-width);
  padding: 0 6px 0 4px;
  vertical-align: middle;
}

.habit-label-inner {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
}

.drag-handle {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: grab;
  opacity: 0;
  transition: opacity var(--transition);
  padding: 2px;
}

.drag-handle:active {
  cursor: grabbing;
}

.drag-handle-line {
  display: block;
  width: 10px;
  height: 1.5px;
  background: var(--color-text-secondary);
  border-radius: 1px;
}

/* Show drag handles in manage mode */
.manage-mode .drag-handle {
  opacity: 1;
}

.habit-name-text {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
  user-select: none;
  cursor: default;
  line-height: 1.3;
}

.edit-btn {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  color: var(--color-text-tertiary);
  transition: color var(--transition), background var(--transition);
  opacity: 0;
  padding: 2px;
}

.edit-btn:hover {
  color: var(--color-text-primary);
  background: var(--color-border-light);
}

.edit-btn svg {
  pointer-events: none;
}

/* Show edit buttons on row hover (desktop) or in manage mode */
@media (hover: hover) {
  .habit-row:hover .edit-btn {
    opacity: 1;
  }
}

.manage-mode .edit-btn {
  opacity: 1;
}

/* ─── DAY CELLS ─── */
td.day-cell {
  width: var(--cell-size);
  min-width: var(--cell-size);
  height: 40px;
  vertical-align: middle;
  padding: 4px 3px;
  position: relative;
}

.cell-inner {
  width: 26px;
  height: 26px;
  border-radius: 5px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  transition: background var(--transition), border-color var(--transition);
  position: relative;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

/* Filled cell */
.day-cell.filled .cell-inner {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

/* Filled cell dot */
.day-cell.filled .cell-inner::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.75);
}

/* Today's column */
.day-cell.today .cell-inner {
  background: var(--color-today);
  border-color: var(--color-today-border);
}

.day-cell.today.filled .cell-inner {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

/* Hover state (desktop) */
@media (hover: hover) {
  .day-cell:not(.past-month):not(.disabled-day-cell) .cell-inner:hover {
    border-color: #B0C49A;
    background: var(--color-accent-faint);
  }

  .day-cell.filled .cell-inner:hover {
    background: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
  }

  .day-cell.today:not(.filled) .cell-inner:hover {
    background: #F0E0CA;
    border-color: var(--color-today-border);
  }
}

/* Active/tap state */
.day-cell:not(.past-month):not(.disabled-day-cell) .cell-inner:active {
  transform: scale(0.9);
  transition: transform 60ms ease;
}

/* Disabled days (beyond month end) */
.day-cell.disabled-day-cell .cell-inner {
  opacity: 0.2;
  cursor: default;
  pointer-events: none;
}

/* Past month — no pointer events, no hover */
.day-cell.past-month .cell-inner {
  cursor: default;
  pointer-events: none;
}

/* Skeleton loading */
.day-cell.skeleton .cell-inner {
  background: linear-gradient(
    90deg,
    var(--color-surface) 25%,
    var(--color-accent-light) 50%,
    var(--color-surface) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s infinite;
  border-color: transparent;
  cursor: default;
  pointer-events: none;
}

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ─── PROGRESS BAR CELL ─── */
.progress-cell {
  width: var(--progress-col-width);
  min-width: var(--progress-col-width);
  padding: 0 8px 0 6px;
  vertical-align: middle;
}

.progress-track {
  height: 4px;
  background: var(--color-accent-light);
  border-radius: 2px;
  overflow: hidden;
  width: 100%;
}

.progress-fill {
  height: 100%;
  background: var(--color-accent);
  border-radius: 2px;
  transition: width 300ms ease;
  min-width: 0;
}

/* Hide progress bars when class is applied to grid */
.hide-progress .progress-cell,
.hide-progress .progress-header {
  display: none;
}

/* ─── EMPTY STATE ─── */
.empty-state-row td {
  padding: 48px 24px;
  text-align: center;
  vertical-align: middle;
}

.empty-state-text {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* ════════════════════════════════════════════════
   ADD HABIT SECTION
   ════════════════════════════════════════════════ */
.add-habit-section {
  flex-shrink: 0;
  padding: 10px 12px 12px;
  border-top: 1px solid var(--color-border-light);
  background: var(--color-bg);
}

.add-habit-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-secondary);
  padding: 6px 8px;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}

.add-habit-btn:hover {
  color: var(--color-accent);
  background: var(--color-accent-faint);
}

.add-habit-btn:disabled {
  color: var(--color-text-tertiary);
  cursor: default;
  pointer-events: none;
}

.add-icon {
  font-size: 18px;
  line-height: 1;
  font-weight: 400;
}

.add-input-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
}

.habit-name-input {
  flex: 1;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: var(--color-surface);
  color: var(--color-text-primary);
  font-size: 14px;
  font-weight: 600;
  transition: border-color var(--transition);
  min-width: 0;
}

.habit-name-input:focus {
  border-color: var(--color-accent);
  background: var(--color-bg);
}

.habit-name-input::placeholder {
  color: var(--color-text-tertiary);
  font-weight: 400;
}

.confirm-add-btn {
  height: 34px;
  padding: 0 14px;
  background: var(--color-accent);
  color: var(--color-text-on-accent);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-heading);
  white-space: nowrap;
  transition: background var(--transition);
}

.confirm-add-btn:hover { background: var(--color-accent-hover); }

.cancel-add-btn {
  height: 34px;
  padding: 0 10px;
  color: var(--color-text-secondary);
  font-size: 13px;
  border-radius: 6px;
  transition: background var(--transition);
}

.cancel-add-btn:hover { background: var(--color-surface); }

.add-error {
  font-size: 12px;
  color: var(--color-danger);
  padding: 4px 2px 0;
  line-height: 1.4;
}

/* ════════════════════════════════════════════════
   AVATAR MENU (BOTTOM SHEET / DROPDOWN)
   ════════════════════════════════════════════════ */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

/* Backdrop */
.menu-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
}

.menu-sheet {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  background: var(--color-surface);
  border-radius: 16px 16px 0 0;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  border: 1px solid var(--color-border);
  border-bottom: none;
}

/* Desktop: dropdown from top-right */
@media (min-width: 640px) {
  .menu-overlay {
    align-items: flex-start;
    justify-content: flex-end;
    padding: calc(var(--header-height) + 4px) 12px 0;
  }

  .menu-overlay::before {
    background: transparent;
  }

  .menu-sheet {
    width: 200px;
    border-radius: 10px;
    padding: 6px;
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  }

  .menu-handle { display: none; }
}

.menu-handle {
  width: 36px;
  height: 4px;
  background: var(--color-border);
  border-radius: 2px;
  margin: 0 auto 16px;
}

.menu-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-primary);
  border-radius: 8px;
  transition: background var(--transition);
}

.menu-item:hover { background: var(--color-border-light); }
.menu-item:active { background: var(--color-border); }

.menu-item-signout {
  color: var(--color-text-secondary);
}

.menu-item-cancel {
  color: var(--color-text-secondary);
  font-weight: 400;
}

.menu-item-danger {
  color: var(--color-danger);
}

@media (min-width: 640px) {
  .menu-item {
    padding: 9px 12px;
    font-size: 14px;
    border-radius: 6px;
  }
}

/* ════════════════════════════════════════════════
   HABIT CONTEXT MENU
   ════════════════════════════════════════════════ */
.habit-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.habit-menu-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
}

.habit-menu-sheet {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  background: var(--color-surface);
  border-radius: 16px 16px 0 0;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  border: 1px solid var(--color-border);
  border-bottom: none;
}

.habit-menu-name {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  padding: 0 16px 8px;
  border-bottom: 1px solid var(--color-border-light);
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 640px) {
  .habit-menu-overlay {
    align-items: center;
    justify-content: center;
  }

  .habit-menu-overlay::before {
    background: rgba(0, 0, 0, 0.15);
  }

  .habit-menu-sheet {
    width: 240px;
    border-radius: 12px;
    padding: 8px;
    border: 1px solid var(--color-border);
  }

  .habit-menu-name {
    padding: 6px 12px 8px;
  }

  .menu-handle { display: none; }
}

/* ════════════════════════════════════════════════
   ARCHIVE CONFIRM DIALOG
   ════════════════════════════════════════════════ */
.confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.25);
}

.confirm-dialog {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 24px;
  max-width: 320px;
  width: 100%;
}

.confirm-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 8px;
  line-height: 1.3;
}

.confirm-body {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
}

.confirm-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.confirm-cancel-btn {
  height: 34px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-secondary);
  border-radius: 6px;
  transition: background var(--transition);
}

.confirm-cancel-btn:hover { background: var(--color-border-light); }

.confirm-ok-btn {
  height: 34px;
  padding: 0 16px;
  background: var(--color-danger);
  color: white;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-heading);
  transition: opacity var(--transition);
}

.confirm-ok-btn:hover { opacity: 0.85; }

/* ════════════════════════════════════════════════
   RENAME DIALOG
   ════════════════════════════════════════════════ */
.rename-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.25);
}

.rename-dialog {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 24px;
  max-width: 320px;
  width: 100%;
}

.rename-label {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: 10px;
}

.rename-input {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: var(--color-bg);
  color: var(--color-text-primary);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  transition: border-color var(--transition);
}

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

.rename-error {
  font-size: 12px;
  color: var(--color-danger);
  min-height: 18px;
  line-height: 1.4;
  margin-bottom: 12px;
}

.rename-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 16px;
}

.rename-cancel-btn {
  height: 34px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-secondary);
  border-radius: 6px;
  transition: background var(--transition);
}

.rename-cancel-btn:hover { background: var(--color-border-light); }

.rename-ok-btn {
  height: 34px;
  padding: 0 16px;
  background: var(--color-accent);
  color: white;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-heading);
  transition: background var(--transition);
}

.rename-ok-btn:hover { background: var(--color-accent-hover); }

/* ════════════════════════════════════════════════
   MANAGE MODE — body class applied to grid wrapper
   ════════════════════════════════════════════════ */
.grid-main.manage-mode .drag-handle {
  opacity: 1;
}

.grid-main.manage-mode .edit-btn {
  opacity: 1;
}

/* ════════════════════════════════════════════════
   TOOLTIP (for disabled add button)
   ════════════════════════════════════════════════ */
.add-habit-btn[data-tooltip]:disabled {
  cursor: not-allowed;
  pointer-events: auto;
  position: relative;
}

/* ════════════════════════════════════════════════
   OFFLINE NOTICE (no-cache first load)
   ════════════════════════════════════════════════ */
.offline-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 48px 24px;
  text-align: center;
}

.offline-notice p {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text-secondary);
  max-width: 280px;
  line-height: 1.6;
}

/* ════════════════════════════════════════════════
   ANIMATIONS
   ════════════════════════════════════════════════ */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.app-screen:not(.hidden) {
  animation: fadeIn 160ms ease;
}

/* ════════════════════════════════════════════════
   SCROLLBAR STYLING
   ════════════════════════════════════════════════ */
.grid-scroll-wrapper::-webkit-scrollbar {
  height: 4px;
  width: 4px;
}

.grid-scroll-wrapper::-webkit-scrollbar-track {
  background: transparent;
}

.grid-scroll-wrapper::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 2px;
}
