/* ---------- Theme: Light (ChromeExtension appearance system) ---------- */
:root {
  --radius: 0.625rem;

  --theme-color: #3B82F6;
  --theme-color-dark: color-mix(in srgb, var(--theme-color) 65%, black);
  --theme-color-hover: color-mix(in srgb, var(--theme-color) 12%, white);
  --theme-color-text: var(--theme-color);

  --foreground: #09090B;
  --muted-foreground: #71717A;
  --card: #FFFFFF;
  --card-hover: #F4F4F5;
  --border: #E4E4E7;
  --secondary: #F4F4F5;
  --secondary-foreground: #09090B;
  --ring-track: #E4E4E7;
  --destructive: #DC2626;
  --destructive-foreground: #FFFFFF;

  /* Streak-style category accents */
  --accent-green: #16A34A;
  --accent-orange: #EA580C;
  --accent-red: #DC2626;
  --accent-blue: #2563EB;
  --accent-purple: #A855F7;
  --accent-amber: #F59E0B;
  --accent-teal: #14B8A6;

  /* Contribution graph levels (GitHub-style, tinted by theme color) */
  --graph-0: #E4E4E7;
  --graph-1: color-mix(in srgb, var(--theme-color) 25%, #E4E4E7);
  --graph-2: color-mix(in srgb, var(--theme-color) 50%, #E4E4E7);
  --graph-3: color-mix(in srgb, var(--theme-color) 75%, #E4E4E7);
  --graph-4: var(--theme-color);
}

/* ---------- Theme: Dark (ChromeExtension dark palette) ---------- */
:root.dark {
  --foreground: #F5F5F5;
  --muted-foreground: #9aa0a6;
  --card: #202020;
  --card-hover: #282828;
  --border: #3c3c3c;
  --secondary: #282828;
  --secondary-foreground: #F5F5F5;
  --ring-track: #3c3c3c;
  --destructive: #F87171;
  --destructive-foreground: #1e1e1e;
  --theme-color-hover: color-mix(in srgb, var(--theme-color) 20%, #2d2d2d);

  --graph-0: #2d2d2d;
  --graph-1: color-mix(in srgb, var(--theme-color) 30%, #2d2d2d);
  --graph-2: color-mix(in srgb, var(--theme-color) 55%, #2d2d2d);
  --graph-3: color-mix(in srgb, var(--theme-color) 78%, #2d2d2d);
  --graph-4: var(--theme-color);
}

* {
  box-sizing: border-box;
  border-color: var(--border);
}

html, body {
  margin: 0;
  min-height: 100dvh;
}

body {
  background: #f5f5f5;
  color: var(--foreground);
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 200ms ease, color 200ms ease;
}
:root.dark body {
  background: #1e1e1e;
}

button, input, select, textarea {
  font-family: inherit;
  color: inherit;
}

a { -webkit-touch-callout: none; }

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--muted-foreground); border-radius: 999px; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.page-enter { animation: fadeIn 0.3s ease-out; }

/* ---------- Lucide icon spans ---------- */
[class*="lucide-"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
[class*="lucide-"] svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  display: block;
}

/* ---------- App shell ---------- */
.app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  padding-top: max(1rem, env(safe-area-inset-top));
  background: color-mix(in oklab, #f5f5f5 85%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
:root.dark .topbar {
  background: color-mix(in oklab, #1e1e1e 85%, transparent);
}

.topbar-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.topbar-logo {
  width: 1.35rem;
  height: 1.35rem;
  color: var(--theme-color);
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  cursor: pointer;
  color: var(--foreground);
}
.icon-btn [class*="lucide-"] { width: 1.1rem; height: 1.1rem; }
.icon-btn:active { transform: scale(0.93); }

.icon-btn--plain {
  border: none;
  background: none;
}

.main-content {
  flex: 1;
  padding: 1.25rem 1.25rem 6.5rem;
  max-width: 42rem;
  width: 100%;
  margin: 0 auto;
}

.screen.hidden { display: none; }
.hidden { display: none !important; }

/* ---------- Bottom nav ---------- */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  justify-content: space-around;
  background: color-mix(in oklab, #f5f5f5 90%, transparent);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom);
}
:root.dark .bottom-nav {
  background: color-mix(in oklab, #1e1e1e 90%, transparent);
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.6rem 0 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted-foreground);
  font-size: 0.68rem;
  font-weight: 600;
}
.nav-item [class*="lucide-"] {
  width: 1.3rem;
  height: 1.3rem;
}
.nav-item.active {
  color: var(--theme-color);
}
.nav-item:active { transform: scale(0.95); }

/* ---------- Section header ---------- */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.9rem;
}
.section-header h2 {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}
.section-sub {
  font-size: 0.8rem;
  color: var(--muted-foreground);
  font-weight: 600;
}

/* ---------- Rotation banner ---------- */
.rotation-banner {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  padding: 1.75rem 1.50rem;
  margin-bottom: 1.5rem;
}
.rotation-banner-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.rotation-date-btn {
  flex-shrink: 0;
  margin: -0.4rem -0.4rem -0.4rem 0;
}
.rotation-date-input {
  position: absolute;
  top: 0;
  right: 0;
  width: 2.2rem;
  height: 2.2rem;
  opacity: 0;
  pointer-events: none;
  border: none;
}
.rotation-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-foreground);
  margin-bottom: 0.3rem;
}
.rotation-topic {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--theme-color-text);
}
.rotation-meta {
  font-size: 0.82rem;
  color: var(--muted-foreground);
  margin-top: 0.3rem;
}

/* ---------- Schedule list ---------- */
.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.day-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
}
.day-card.today {
  border-color: var(--theme-color);
}
.day-check {
  flex-shrink: 0;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  border: 2px solid var(--border);
  background: var(--card);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
  padding: 0;
  color: transparent;
}
.day-check [class*="lucide-"] {
  width: 0.8rem;
  height: 0.8rem;
  display: none;
}
.day-check svg {
  width: 0.8rem;
  height: 0.8rem;
  stroke: currentColor;
  display: none;
}
.day-check.done svg { display: block; }
.day-check.done {
  background: var(--theme-color);
  border-color: var(--theme-color);
  color: #fff;
}
.day-check.done [class*="lucide-"] { display: flex; }

.day-body { flex: 1; min-width: 0; }
.day-name-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.15rem;
}
.day-name {
  font-weight: 700;
  font-size: 0.95rem;
}
.today-pill {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--theme-color);
  color: #fff;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}
.day-title {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.day-desc {
  font-size: 0.8rem;
  color: var(--muted-foreground);
  line-height: 1.45;
}

/* ---------- Appearance cards (ChromeExtension pattern) ---------- */
.appearance-options {
  display: flex;
  gap: 0.75rem;
}
.appearance-option {
  flex: 1;
  cursor: pointer;
  margin: 0;
}
.appearance-option input[type="radio"] {
  display: none;
}
.appearance-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  border: 1.5px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  padding: 1rem 0.5rem 0.85rem;
  background: var(--card);
  transition: border-color 0.15s, background 0.15s;
}
.appearance-icon {
  width: 1.4rem;
  height: 1.4rem;
  opacity: 0.5;
  color: var(--foreground);
}
.appearance-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted-foreground);
}
.appearance-option input[type="radio"]:checked + .appearance-card {
  border-color: var(--theme-color);
  background: var(--theme-color-hover);
}
.appearance-option input[type="radio"]:checked + .appearance-card .appearance-icon {
  opacity: 1;
  color: var(--theme-color);
}
.appearance-option input[type="radio"]:checked + .appearance-card .appearance-label {
  color: var(--theme-color-text);
  font-weight: 700;
}

/* ---------- Theme color swatches ---------- */
.swatch-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.swatch-btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s ease, border-color 0.15s ease;
}
.swatch-btn:active { transform: scale(0.92); }
.swatch-btn.active {
  /* border-color: var(--foreground); */
}
.swatch-btn [class*="lucide-"] {
  width: 1.1rem;
  height: 1.1rem;
  display: none;
}
.swatch-btn.active [class*="lucide-"] { display: flex; }

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--theme-color);
  color: #fff;
  border: none;
  border-radius: calc(var(--radius) - 2px);
  padding: 0.55rem 1rem;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}
.btn-primary:active { transform: scale(0.96); }

.btn-danger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: 1px solid var(--destructive);
  color: var(--destructive);
  border-radius: calc(var(--radius) - 2px);
  padding: 0.55rem 1rem;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--secondary);
  color: var(--secondary-foreground);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
  padding: 0.55rem 1rem;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}
.btn-secondary:active { transform: scale(0.96); }

.btn-icon {
  width: 0.9rem;
  height: 0.9rem;
}

/* ---------- Data (export/import) ---------- */
.data-hint {
  font-size: 0.82rem;
  color: var(--muted-foreground);
  line-height: 1.5;
  margin: 0 0 0.9rem;
}
.data-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* ---------- Filters ---------- */
.filter-row {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

/* ---------- Custom select (Image Compressor pattern) ---------- */
.native-select-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lc-select-mount {
  display: block;
}

/* ---------- Topic combobox (free text + themed suggestions) ---------- */
.lc-combobox-wrapper {
  position: relative;
  display: block;
  width: 100%;
}
.lc-combobox-wrapper input {
  width: 100%;
}
.lc-combobox-wrapper .lc-dropdown {
  max-height: 11rem;
}

.lc-select-wrapper {
  position: relative;
}

.lc-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  background: var(--secondary);
  border: 1.5px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--foreground);
  user-select: none;
}
.filter-row .lc-select-trigger {
  padding: 0.5rem 0.6rem;
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--card);
}

.lc-select-trigger-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lc-select-wrapper--open .lc-select-trigger {
  border-radius: calc(var(--radius) - 2px) calc(var(--radius) - 2px) 4px 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.10);
  border-color: var(--theme-color);
}

.lc-select-arrow {
  display: inline-flex;
  color: var(--muted-foreground);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  width: 0.95rem;
  height: 0.95rem;
}
.lc-select-arrow svg {
  width: 100%;
  height: 100%;
  display: block;
}

.lc-select-arrow--open {
  transform: rotate(180deg);
}

.lc-dropdown {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px 4px calc(var(--radius) - 2px) calc(var(--radius) - 2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
  z-index: 100;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, visibility 0.15s ease, transform 0.15s ease;
  max-height: 14rem;
  overflow-y: auto;
}

.lc-select-wrapper--open .lc-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lc-dropdown-option {
  padding: 0.6rem 0.75rem;
  cursor: pointer;
  transition: background 0.12s;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--foreground);
}

.lc-dropdown-option:hover {
  background: var(--card-hover);
}

.lc-dropdown-option--selected {
  background: var(--theme-color-hover);
  color: var(--theme-color-text);
  font-weight: 700;
}

/* ---------- Card list (problems/contests) ---------- */
.card-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.item-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  cursor: pointer;
  transition: background 150ms ease, transform 150ms ease;
}
.item-card:active { transform: scale(0.98); background: var(--card-hover); }

.item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}
.item-title {
  font-weight: 700;
  font-size: 0.95rem;
}
.item-badges {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}
.badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--secondary);
  color: var(--secondary-foreground);
}
.badge-easy { background: color-mix(in srgb, var(--accent-green) 18%, transparent); color: var(--accent-green); }
.badge-medium { background: color-mix(in srgb, var(--accent-amber) 20%, transparent); color: var(--accent-amber); }
.badge-hard { background: color-mix(in srgb, var(--accent-red) 16%, transparent); color: var(--accent-red); }
.badge-solved { background: color-mix(in srgb, var(--accent-green) 18%, transparent); color: var(--accent-green); }
.badge-unsolved { background: color-mix(in srgb, var(--accent-red) 16%, transparent); color: var(--accent-red); }

.item-meta {
  font-size: 0.78rem;
  color: var(--muted-foreground);
}

/* ---------- Empty state ---------- */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 3rem 1rem;
  color: var(--muted-foreground);
  font-size: 0.9rem;
  font-weight: 600;
}
.empty-icon {
  width: 2.2rem;
  height: 2.2rem;
  opacity: 0.5;
}

/* ---------- Dashboard ---------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}
.stat-tile {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 0.7rem;
  text-align: center;
}
.stat-value {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--theme-color-text);
}
.stat-label {
  font-size: 0.68rem;
  color: var(--muted-foreground);
  font-weight: 600;
  margin-top: 0.15rem;
}

.chart-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
}
.chart-card h3 {
  font-size: 0.85rem;
  font-weight: 700;
  margin: 0 0 0.8rem;
}
.chart-card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}
.chart-card-header h3 { margin: 0; }
.chart-sub {
  font-size: 0.72rem;
  color: var(--muted-foreground);
  font-weight: 600;
}
.chart-wrap {
  width: 100%;
  height: 10rem;
}
.chart-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* ---------- Contribution graph ---------- */
.graph-scroll {
  overflow-x: auto;
  scrollbar-width: none;
  padding-right: 0.2rem;
}
.graph-scroll::-webkit-scrollbar { display: none; }
.graph-svg { display: block; }

.graph-legend {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  justify-content: flex-end;
  margin-top: 0.6rem;
  font-size: 0.68rem;
  color: var(--muted-foreground);
  font-weight: 600;
}
.legend-cell {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 0.15rem;
}
.legend-cell[data-level="0"] { background: var(--graph-0); }
.legend-cell[data-level="1"] { background: var(--graph-1); }
.legend-cell[data-level="2"] { background: var(--graph-2); }
.legend-cell[data-level="3"] { background: var(--graph-3); }
.legend-cell[data-level="4"] { background: var(--graph-4); }

.weakspot-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.55rem;
  font-size: 0.78rem;
}
.weakspot-topic {
  width: 6.5rem;
  flex-shrink: 0;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.weakspot-bar-track {
  flex: 1;
  height: 0.55rem;
  background: var(--secondary);
  border-radius: 999px;
  overflow: hidden;
}
.weakspot-bar-fill {
  height: 100%;
  background: var(--accent-red);
  border-radius: 999px;
}
.weakspot-count {
  width: 1.2rem;
  text-align: right;
  color: var(--muted-foreground);
  font-weight: 700;
}

.no-data {
  color: var(--muted-foreground);
  font-size: 0.82rem;
  text-align: center;
  padding: 2rem 0;
}

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.modal-overlay.hidden { display: none; }

.modal-sheet {
  width: 100%;
  max-width: 32rem;
  max-height: 88dvh;
  overflow-y: auto;
  background: var(--card);
  border-radius: 1.25rem 1.25rem 0 0;
  padding: 1.25rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom));
  animation: slideUp 0.25s ease-out;
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.modal-header h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.modal-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted-foreground);
}
.modal-form input,
.modal-form textarea {
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
  padding: 0.6rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--foreground);
}

/* Hide native number input spin buttons */
.modal-form input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}
.modal-form input[type="number"]::-webkit-outer-spin-button,
.modal-form input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.modal-form textarea { resize: vertical; font-family: inherit; }

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

@media (min-width: 640px) {
  .main-content { padding-top: 1.5rem; }
}

/* ---------- Menu screen (Settings + Guide, slide-in) ---------- */
.menu-screen {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  background: var(--background, #f5f5f5);
  animation: menuSlideIn 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}
.menu-screen.hidden { display: none; }
.menu-screen.no-animate { animation: none; }
:root.dark .menu-screen { background: #1e1e1e; }
:root:not(.dark) .menu-screen { background: #f5f5f5; }

@keyframes menuSlideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.menu-tabs {
  display: flex;
  gap: 0.4rem;
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.2rem;
}
.menu-tab {
  border: none;
  background: none;
  padding: 0.4rem 0.9rem;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted-foreground);
  cursor: pointer;
}
.menu-tab.active {
  background: var(--theme-color);
  color: #fff;
}

.menu-tab-panel.hidden { display: none; }

.guide-block {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin-bottom: 0.85rem;
}
.guide-block-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}
.guide-block-header h3 {
  font-size: 0.95rem;
  font-weight: 800;
  margin: 0;
}
.guide-hours {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted-foreground);
  white-space: nowrap;
  flex-shrink: 0;
}
.guide-block ul {
  margin: 0;
  padding-left: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.guide-block li {
  font-size: 0.83rem;
  line-height: 1.5;
  color: var(--foreground);
}
.guide-block li strong {
  font-weight: 700;
}
