:root {
  --radius: 22px;
  --shadow: 0 25px 55px rgba(10, 6, 4, 0.65);
  --transition: 0.25s ease;
  --bg-gradient: radial-gradient(circle at 10% 20%, #2d1b12 0%, #140c07 35%, #0b0603 90%);
  --section-gap: 3.5rem;
  --card-padding: 1.25rem;
  --grid-gap: 1.5rem;
  --focus-ring: 0 0 0 3px rgba(70, 199, 162, 0.4);
}

body[data-theme='light'] {
  --coffee: #fdf5ec;
  --coffee-2: #f4e2cf;
  --coffee-3: #e5cfb8;
  --caramel: #c66728;
  --cannelle: #f9b87b;
  --cream: #ffffff;
  --mint: #46c7a2;
  --muted: #815336;
  --text: #2c1409;
  --glass: rgba(255, 255, 255, 0.82);
  --border: 1px solid rgba(219, 168, 129, 0.55);
  --shadow: 0 18px 42px rgba(176, 114, 71, 0.35);
  --bg-gradient: radial-gradient(circle at 5% 15%, #fff9f3 0%, #fdebdc 35%, #f4d2b8 90%);
}

body[data-theme='dark'] {
  --coffee: #140c07;
  --coffee-2: #1f130c;
  --coffee-3: #2b1a12;
  --caramel: #c07c44;
  --cannelle: #f2b785;
  --cream: #fdf6ee;
  --mint: #8ef0d0;
  --muted: #d9c4b6;
  --text: #fdfbf7;
  --glass: rgba(255, 255, 255, 0.08);
  --border: 1px solid rgba(255, 255, 255, 0.18);
  --shadow: 0 25px 55px rgba(10, 6, 4, 0.65);
  --bg-gradient: radial-gradient(circle at 10% 20%, #2d1b12 0%, var(--coffee) 35%, #0b0603 90%);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg-gradient);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  transition: background 0.6s ease, color 0.4s ease;
}

main.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(2rem, 3vw, 3.5rem) clamp(1rem, 5vw, 2.5rem) 4rem;
  display: flex;
  flex-direction: column;
  gap: var(--section-gap);
}

body.app-locked [data-gated] {
  pointer-events: none;
}

[data-gated][hidden] {
  display: none !important;
}

img {
  max-width: 100%;
  display: block;
  border-radius: calc(var(--radius) - 6px);
  object-fit: cover;
}

a {
  color: var(--caramel);
}

.page {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.section {
  margin: 0;
}

.section-header {
  margin-bottom: 1.5rem;
  max-width: 720px;
}

.section-header h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
}

.section-header p {
  color: var(--muted);
  margin-top: 0.4rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.5rem;
  background: rgba(11, 7, 4, 0.75);
  border-bottom: var(--border);
  backdrop-filter: blur(22px);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.4);
}

body[data-theme='light'] .site-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(33, 20, 12, 0.08);
  box-shadow: 0 18px 32px rgba(189, 132, 88, 0.28);
}

body.app-locked .header-actions .session-badge,
body.app-locked #scrollToForm,
body.app-locked #logoutBtn {
  display: none;
}

.logo {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.logo-mark {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(192, 124, 68, 0.15);
  border: 1px solid rgba(192, 124, 68, 0.6);
}

.primary-nav {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.primary-nav a {
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
  position: relative;
  padding-bottom: 0.2rem;
}

body[data-theme='light'] .primary-nav a {
  color: #9a6237;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(120deg, var(--cannelle), var(--caramel));
  transition: width 0.2s ease;
}

.primary-nav a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.language-toggle .lang-current {
  font-weight: 700;
}

.language-toggle .lang-divider,
.language-toggle .lang-next {
  opacity: 0.6;
}

.session-badge {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-theme='light'] .session-badge {
  background: rgba(44, 20, 9, 0.08);
  color: var(--text);
}

button,
select,
input,
textarea {
  font: inherit;
}

.primary,
.secondary,
.ghost-button,
.mode-btn {
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: transform var(--transition), background var(--transition), color var(--transition);
}

.primary {
  background: linear-gradient(135deg, var(--cannelle), var(--caramel));
  color: #1a0c05;
  padding: 0.7rem 1.8rem;
  box-shadow: var(--shadow);
}

.secondary {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.65rem 1.4rem;
  border: var(--border);
  color: var(--text);
}

.ghost-button {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: var(--border);
  padding: 0.5rem 1.1rem;
}

body[data-theme='light'] .secondary,
body[data-theme='light'] .ghost-button {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(44, 20, 9, 0.12);
  color: var(--text);
  box-shadow: 0 12px 24px rgba(189, 132, 88, 0.15);
}

body[data-theme='light'] .ghost-button--alert {
  border-color: rgba(186, 70, 70, 0.4);
  color: #a33c3c;
}

.ghost-button--pill {
  border-radius: 14px;
}

.ghost-button--alert {
  border-color: rgba(255, 99, 99, 0.35);
}

.overlay-language {
  margin: 1rem auto 0.5rem;
  display: inline-flex;
  justify-content: center;
}

.primary:hover,
.secondary:hover,
.ghost-button:hover,
.mode-btn:hover {
  transform: translateY(-1px);
}

.hero {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--grid-gap);
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(1.9rem, 3.4vw, 3.1rem);
  margin: 1rem 0;
}

.accent {
  color: var(--cannelle);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.85rem;
  color: var(--cannelle);
}

.lead,
.hero-highlights {
  color: var(--muted);
}

.hero-highlights {
  list-style: none;
  margin: 1rem 0;
}

.hero-highlights li + li {
  margin-top: 0.3rem;
}

.hero-cta {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.hero-visual {
  display: grid;
  gap: 1.25rem;
}

.hero-visual__card {
  padding: var(--card-padding);
}

.hero-visual__badge {
  margin-top: 0.8rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-visual__badge span {
  display: block;
  font-size: 0.8rem;
}

.hero-visual__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 0.8rem;
}

.hero-visual__grid img {
  width: 100%;
  height: 100%;
  min-height: 120px;
  object-fit: cover;
}

.carnet-grid,
.timeline-boards {
  display: grid;
  gap: var(--grid-gap);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.timeline-boards {
  margin-top: var(--grid-gap);
}

.timeline-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--grid-gap);
  flex-wrap: wrap;
  padding: calc(var(--card-padding) * 0.85) calc(var(--card-padding) * 1.2);
  margin-bottom: var(--grid-gap);
}

.timeline-toolbar p {
  color: var(--muted);
  font-size: 0.9rem;
}

.toolbar-buttons {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.timeline-discovery {
  margin-bottom: var(--grid-gap);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--grid-gap);
  align-items: end;
}

.timeline-discovery input,
.timeline-discovery select {
  width: 100%;
}

.toolbar-chip {
  border-radius: 999px;
  border: var(--border);
  background: transparent;
  color: var(--text);
  padding: 0.35rem 1rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform var(--transition), background var(--transition), color var(--transition), box-shadow var(--transition);
}

body[data-theme='light'] .toolbar-chip {
  border-color: rgba(44, 20, 9, 0.12);
  background: rgba(255, 255, 255, 0.9);
}

.toolbar-chip.active,
.toolbar-chip:focus-visible {
  outline: none;
  background: linear-gradient(135deg, var(--cannelle), var(--caramel));
  color: #1a0c05;
  box-shadow: var(--shadow);
}

.carnet-card {
  display: flex;
  gap: 1rem;
  padding: 1rem;
}

.carnet-card img {
  width: 96px;
  height: 96px;
  object-fit: cover;
}

.timeline-section .board {
  display: flex;
  flex-direction: column;
  padding: calc(var(--card-padding) * 1.1);
  gap: var(--grid-gap);
  min-height: 320px;
}

.timeline-section .board[hidden] {
  display: none;
}

.board header {
  display: grid;
  gap: 0.4rem;
}

.board header h3 {
  font-size: 1.2rem;
}

.board header p {
  color: var(--muted);
  font-size: 0.9rem;
}

.board-cover {
  border-radius: calc(var(--radius) - 6px);
  height: 140px;
  object-fit: cover;
  margin-top: 0.5rem;
}

.board-posts {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: var(--grid-gap);
}

.post-card {
  padding: calc(var(--card-padding) * 0.85);
  background: rgba(0, 0, 0, 0.25);
  border-radius: calc(var(--radius) - 4px);
  border: var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.post-card.pulse-card {
  animation: pulseCard 1.4s ease;
}

@keyframes pulseCard {
  0% {
    box-shadow: 0 0 0 rgba(70, 199, 162, 0.6);
  }
  50% {
    box-shadow: 0 0 25px rgba(70, 199, 162, 0.9);
  }
  100% {
    box-shadow: 0 0 0 rgba(70, 199, 162, 0.1);
  }
}

.post-preview {
  margin-top: var(--grid-gap);
  padding: calc(var(--card-padding) + 0.5rem);
  border-radius: calc(var(--radius) - 2px);
}

.composer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.composer-count {
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.composer-count.over-limit {
  color: #ff6b6b;
}

.post-card h4 {
  font-size: 1rem;
}

.post-card__content {
  margin-top: 0.4rem;
  font-size: 0.95rem;
  white-space: pre-wrap;
}

.post-card__content strong {
  font-weight: 600;
}

.post-card__content em {
  font-style: italic;
}

.post-card__content a {
  color: var(--mint);
}

.post-card__content code {
  background: rgba(0, 0, 0, 0.2);
  padding: 0.05rem 0.25rem;
  border-radius: 6px;
  font-family: 'Space Mono', 'Inter', monospace;
}

.post-card__content .md-bullet {
  display: block;
}

.post-card__meta {
  font-size: 0.8rem;
  color: var(--muted);
}

.post-card__media {
  margin-top: 0.8rem;
}

.post-card__media video,
.post-card__media img {
  width: 100%;
  border-radius: calc(var(--radius) - 8px);
}

.post-card__links {
  margin-top: 0.6rem;
}

.post-card__links a {
  font-weight: 600;
}

.post-preview header {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 0.5rem;
}

.form-section .post-form {
  padding: calc(var(--card-padding) + 0.5rem);
  display: flex;
  flex-direction: column;
  gap: var(--grid-gap);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--grid-gap);
}

.composer-toolbar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.toolbar-action {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: inherit;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.toolbar-action.active {
  background: rgba(255, 255, 255, 0.12);
}

.toolbar-panels {
  display: grid;
  gap: var(--grid-gap);
}

.toolbar-panel {
  display: none;
  padding: 0.8rem;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
}

.toolbar-panel.is-visible {
  display: grid;
  gap: 0.6rem;
}

.composer-toolbar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.toolbar-action {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: inherit;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.toolbar-action.active {
  background: rgba(255, 255, 255, 0.12);
}

.toolbar-panels {
  display: grid;
  gap: 1rem;
}

.toolbar-panel {
  display: none;
  padding: 0.8rem;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
}

.toolbar-panel.is-visible {
  display: grid;
  gap: 0.6rem;
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-weight: 500;
}

input,
textarea,
select {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  padding: 0.75rem 1rem;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-color: rgba(70, 199, 162, 0.8);
  transform: translateY(-1px);
}

body[data-theme='light'] input,
body[data-theme='light'] textarea,
body[data-theme='light'] select {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(44, 20, 9, 0.12);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

body[data-theme='light'] input::placeholder,
body[data-theme='light'] textarea::placeholder {
  color: rgba(44, 20, 9, 0.4);
}

.form-hint {
  color: var(--muted);
  font-size: 0.85rem;
}

.calculator-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  padding: 1.5rem;
}

.controls {
  display: grid;
  gap: 0.9rem;
}

.mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 0.5rem;
}

.mode-btn {
  padding: 0.5rem 0.7rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid transparent;
}

.mode-btn.active {
  border-color: rgba(255, 255, 255, 0.5);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
}

body[data-theme='light'] .mode-btn {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(44, 20, 9, 0.08);
}

body[data-theme='light'] .mode-btn.active {
  border-color: rgba(198, 103, 40, 0.6);
  background: linear-gradient(135deg, rgba(249, 184, 123, 0.8), rgba(198, 103, 40, 0.7));
  color: #1a0c05;
}

.calc-results header h3 {
  font-size: 1.2rem;
}

.calc-results header p {
  color: var(--muted);
  font-size: 0.9rem;
}

.ingredient-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.8rem;
}

.ingredient-card {
  padding: 0.8rem;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

body[data-theme='light'] .post-card,
body[data-theme='light'] .post-preview,
body[data-theme='light'] .ingredient-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(44, 20, 9, 0.08);
  box-shadow: 0 18px 30px rgba(191, 132, 90, 0.18);
}

.animate-grid {
  animation: glowIn 0.6s ease;
}

.map-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 1.5rem;
  align-items: center;
}

.map-select {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1 1 240px;
}

.map-controls a {
  text-decoration: none;
  font-weight: 600;
  padding: 0.6rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--text);
}

body[data-theme='light'] .map-controls a {
  border-color: rgba(44, 20, 9, 0.12);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 22px rgba(191, 132, 90, 0.16);
}

.map-wrapper iframe {
  width: 100%;
  min-height: 320px;
  border: none;
  border-radius: var(--radius);
}

.todo-card {
  display: grid;
  gap: 1.2rem;
}

.todo-form {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: end;
}

.todo-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.todo-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.todo-item {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: center;
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.todo-item__meta {
  font-size: 0.8rem;
  color: var(--muted);
}

.todo-actions {
  display: flex;
  gap: 0.4rem;
}

.todo-actions button {
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  cursor: pointer;
}

.todo-item.done {
  opacity: 0.6;
  text-decoration: line-through;
}

.site-footer {
  margin-top: var(--section-gap);
  border-top: var(--border);
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
  padding: 1.5rem;
  color: var(--muted);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Glass + overlays */
.glass-card {
  position: relative;
  background: var(--glass);
  border: var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  padding: var(--card-padding);
}

.timeline-toolbar.glass-card {
  padding: calc(var(--card-padding) * 0.85) calc(var(--card-padding) * 1.2);
}

.form-section .post-form.glass-card {
  padding: calc(var(--card-padding) + 0.5rem);
}

.post-preview.glass-card {
  padding: calc(var(--card-padding) + 0.5rem);
}

.timeline-section .board.glass-card {
  padding: calc(var(--card-padding) * 1.1);
}

.auth-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(6, 4, 3, 0.85);
  backdrop-filter: blur(18px);
  z-index: 30;
}

body[data-theme='light'] .auth-overlay {
  background: rgba(255, 245, 235, 0.9);
}

.auth-card {
  max-width: 420px;
  width: 100%;
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--glass);
  border: var(--border);
  text-align: center;
  box-shadow: var(--shadow);
  color: var(--text);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 1rem;
}

.quantum-lock {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px dashed rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.05);
}

body[data-theme='light'] .quantum-lock {
  border-color: rgba(44, 20, 9, 0.18);
  background: rgba(44, 20, 9, 0.06);
}

.quantum-lock__display {
  display: grid;
  gap: 0.4rem;
}

.quantum-lock__display input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.code-slots {
  font-family: 'Space Mono', 'Inter', monospace;
  font-size: 1.4rem;
  letter-spacing: 0.35em;
  padding: 0.6rem 0.8rem;
  text-align: center;
  border-radius: calc(var(--radius) - 4px);
  border: 1px dashed rgba(255, 255, 255, 0.2);
}

.quantum-pad {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.quantum-pad button {
  padding: 0.6rem 0;
  font-size: 1.2rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.quantum-pad button:hover {
  transform: translateY(-2px);
  border-color: var(--cannelle);
}

.quantum-lock__actions {
  display: flex;
  gap: 0.6rem;
}

.auth-error {
  color: #ffb4b4;
  min-height: 1.2rem;
}

.auth-overlay[hidden] {
  display: none;
}

.chip {
  display: inline-flex;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

body[data-theme='light'] .chip {
  background: rgba(44, 20, 9, 0.08);
  border-color: rgba(44, 20, 9, 0.15);
  color: var(--text);
}

.sweet-swap {
  animation: sweetSwap 6s ease-in-out infinite;
}

@keyframes sweetSwap {
  0% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-6px) scale(1.01);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes glowIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .site-header {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .header-actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .timeline-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  body.app-locked main {
    filter: blur(2px);
  }

  .hero {
    margin-top: 1rem;
  }

  .map-controls {
    flex-direction: column;
    align-items: stretch;
  }
}
