:root {
  --bg: #fafaf7;
  --ink: #1a1a1a;
  --ink-soft: #555;
  --ink-mute: #888;
  --line: #e5e5e0;
  --accent: #c9a961;
  --card: #fff;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.04);
  --radius: 4px;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }

/* Bilingual: hide opposite-lang spans (only when single-attribute) */
[data-en]:not([data-cs]) { display: none; }
html[lang="en"] [data-cs]:not([data-en]) { display: none; }
html[lang="en"] [data-en]:not([data-cs]) { display: inline; }
/* Elements with BOTH data-cs and data-en stay visible — JS swaps their textContent */

/* ─── Top header — unified, professional ─── */
.top {
  display: flex; align-items: center; justify-content: space-between;
  /* iOS PWA: add safe-area-inset-top to keep header below status bar (notch) */
  padding-top: calc(18px + env(safe-area-inset-top, 0px));
  padding-bottom: 18px;
  padding-left: calc(clamp(20px, 4vw, 48px) + env(safe-area-inset-left, 0px));
  padding-right: calc(clamp(20px, 4vw, 48px) + env(safe-area-inset-right, 0px));
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  position: sticky; top: 0; z-index: 10;
  gap: 24px;
}
/* Brand — Playfair Display, larger, matches landing */
.brand {
  font-family: var(--serif);
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 500;
  letter-spacing: -.5px;
  color: var(--ink);
  font-style: normal;
  line-height: 1;
  white-space: nowrap;
}
.brand span {
  color: var(--ink);
  font-weight: 500;
  font-style: normal;
}

/* Nav row */
.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

/* Nav links (Statistiky, etc.) — same pill border as buttons */
.nav > a {
  color: var(--ink);
  font-weight: 500;
  letter-spacing: .01em;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: transparent;
  transition: background .15s, color .15s, border-color .15s;
  text-decoration: none;
  font-size: 13px;
  white-space: nowrap;
}
.nav > a:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* Generic button (ghost pill) */
.btn {
  background: transparent;
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: 100px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.btn:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* Custom-styled year dropdown */
.year-select {
  appearance: none;
  -webkit-appearance: none;
  background: #fff
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'><path d='M1 1.25L5 5L9 1.25' stroke='%23999' stroke-width='1.5' stroke-linecap='round'/></svg>")
    no-repeat right 14px center;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 8px 32px 8px 16px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  letter-spacing: .02em;
  transition: border-color .15s;
}
.year-select:hover { border-color: var(--ink-mute); }
.year-select:focus { outline: 0; border-color: var(--ink); }

/* ─── Custom year picker (replaces native select for Model C lock UI) ─── */
.year-picker {
  position: relative;
  display: inline-block;
  font: inherit;
}
.year-picker-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line, #e5e0d0);
  border-radius: 100px;
  padding: 8px 14px 8px 16px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink, #1a1a1a);
  cursor: pointer;
  letter-spacing: .02em;
  transition: border-color .15s ease, background .15s ease;
}
.year-picker-trigger:hover { border-color: var(--ink-mute, #999); }
.year-picker.is-open .year-picker-trigger { border-color: var(--ink, #1a1a1a); }
.year-picker-current { line-height: 1; }
.year-picker-chevron {
  width: 12px; height: 12px;
  color: #999;
  transition: transform .2s ease;
  flex-shrink: 0;
}
.year-picker.is-open .year-picker-chevron { transform: rotate(180deg); color: var(--ink, #1a1a1a); }

.year-picker-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 180px;
  max-height: 360px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--line, #e5e0d0);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,.12), 0 2px 6px rgba(0,0,0,.04);
  padding: 6px;
  z-index: 200;
  font-family: inherit;
}
.year-picker-item {
  width: 100%;
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: transparent;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink, #1a1a1a);
  cursor: pointer;
  text-align: left;
  transition: background .12s ease;
}
.year-picker-item:hover { background: #f7f4ec; }
.year-picker-item.current {
  background: #1a1a1a;
  color: #fff;
}
.year-picker-item.current:hover { background: #1a1a1a; }
.year-picker-item.locked .year-picker-year { color: rgba(0,0,0,.5); }
.year-picker-item.locked.current .year-picker-year { color: rgba(255,255,255,.7); }
.year-picker-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  color: rgba(0,0,0,.45);
}
.year-picker-item.current .year-picker-icon { color: rgba(255,255,255,.6); }
.year-picker-lock {
  width: 14px; height: 14px;
  flex-shrink: 0;
}
.year-picker-year {
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
}
.year-picker-add {
  margin-top: 4px;
  border-top: 1px solid var(--line, #eee);
  border-radius: 0 0 8px 8px;
  color: var(--ink-mute, #888);
  font-style: italic;
}
.year-picker-add:hover { color: var(--ink, #1a1a1a); background: #fafaf7; }
.year-picker-add .year-picker-icon svg { width: 14px; height: 14px; }

/* Lang toggle — minimal text */
.lang-toggle {
  background: transparent;
  border: 0;
  padding: 8px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-mute);
  cursor: pointer;
  transition: color .15s, background .15s;
}
.lang-toggle:hover { color: var(--ink); background: #f4f3ee; }
.lang-toggle b { color: var(--ink); font-weight: 600; }

/* Save status — small badge */
.save-status {
  font-size: 11px;
  color: var(--ink-mute);
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 0 8px;
  white-space: nowrap;
}
.save-status:empty { display: none; }

/* Settings icon button — circular */
.btn.icon-btn {
  width: 36px; height: 36px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px;
  line-height: 1;
}
.btn.icon-btn:hover { border-color: var(--ink); background: var(--ink); color: #fff; }

/* Version marker visible (debugging cache issues) */
.brand + span[style*="margin-left:8px"] { display: inline; }

.home { max-width: 1200px; margin: 0 auto; padding: 60px 40px; }
.intro h1 { font-family: var(--serif); font-size: clamp(36px, 5vw, 64px); font-weight: 400; letter-spacing: -.02em; }
.intro p { color: var(--ink-soft); font-size: 18px; margin-top: 12px; }
.years { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 20px; margin-top: 60px; }
.year-tile { aspect-ratio: 1; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 28px; color: var(--ink-soft); transition: all .2s; }
.year-tile:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); }
.year-tile.empty { color: var(--ink-mute); border-style: dashed; }

.foot { padding: 40px; display: flex; justify-content: space-between; color: var(--ink-mute); font-size: 13px; border-top: 1px solid var(--line); }

/* ===== CALENDAR — refined high-design grid ===== */
.calendar-wrap { max-width: 2000px; margin: 0 auto; padding: 32px clamp(20px, 4vw, 48px) 60px; }
.year-title {
  font-family: var(--serif);
  font-size: clamp(48px, 6vw, 80px);
  text-align: center;
  margin: 16px 0 48px;
  font-weight: 400;
  letter-spacing: -.025em;
  color: var(--ink);
}
.months {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 2.5vw, 36px);
}
.month {
  background: var(--card);
  break-inside: avoid; page-break-inside: avoid;
  border-radius: 4px;
  overflow: hidden;
}
.month-hero {
  position: relative; aspect-ratio: 4/3; overflow: hidden;
  background: #f3f3f0;
}
.month-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.month-hero-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 9px 14px;
  color: var(--ink); font-size: 12.5px; text-align: center;
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-weight: 500;
  letter-spacing: .01em;
}
.month-hero-caption:empty { display: none; }
.month-hero.empty { display: flex; align-items: center; justify-content: center; color: var(--ink-mute); font-size: 14px; }

.days-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px;
  grid-auto-rows: 1fr;
  background: #fff; padding: 4px 6px 8px;
}
.days-header {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px;
  font-size: 9px; color: var(--ink-mute);
  padding: 8px 6px 4px;
  font-weight: 500;
  letter-spacing: .04em;
}
.days-header span { text-align: center; text-transform: lowercase; }
.day-wrap { display: flex; flex-direction: column; min-width: 0; }
.day-wrap.outside { visibility: hidden; }
.day { position: absolute; inset: 0; background: #f5f3ee; overflow: hidden; display: flex; align-items: center; justify-content: center; border-radius: 2px; }
.day img { width: 100%; height: 100%; object-fit: cover; display: block; }
.day.empty { background: transparent; border: 1px dashed #efece4; border-radius: 2px; }
.day-num { position: absolute; top: 1px; left: 2px; font-size: 7px; color: #fff; text-shadow: 0 0 2px rgba(0,0,0,.8); font-weight: 600; }
/* event-badge + has-event removed — life events now only shown in stats card "Životní události" */
.mood-badge svg { width: 14px; height: 14px; vertical-align: middle; }
.empty-motiv svg { width: 24px; height: 24px; vertical-align: middle; opacity: 0.4; }
.hm-cell svg { width: 11px; height: 11px; vertical-align: middle; color: #555; }
.hm-cell.has-photo svg { color: #1a1a1a; }
.day .empty-motiv svg { width: 30px; height: 30px; }

/* Hybrid select with SVG icon next to native select (Phase B cosmetic) */
.select-with-icon {
  display: flex;
  align-items: center;
  gap: 8px;
}
.select-with-icon > .select-icon {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line, #ddd);
  border-radius: 6px;
  background: #fff;
  color: var(--ink, #1a1a1a);
}
.select-with-icon > .select-icon:empty { display: none; }
.select-with-icon > .select-icon svg { width: 20px; height: 20px; }
.select-with-icon > select { flex: 1 1 auto; min-width: 0; }
.flight-badge { position: absolute; bottom: 1px; right: 2px; font-size: 9px; line-height: 1; text-shadow: 0 0 3px rgba(0,0,0,.6); pointer-events: none; }
/* moon-badge (on photo) removed; moon now lives in .day-meta as .day-moon */
.back-event { font-size: 6px !important; color: #b88a3e; font-weight: 600; text-align: center; padding: 1px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Login: Remember-me checkbox row */
.login-remember {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: #555;
  margin: 6px 0 4px;
  cursor: pointer;
}
.login-remember input[type="checkbox"] {
  width: 14px; height: 14px;
  cursor: pointer;
  margin: 0;
  accent-color: #1a1a1a;
}

/* Mobile scroll fix — lock body scroll while modal is open (prevents iOS jumping to middle) */
body.modal-open {
  position: fixed;
  width: 100%;
  overflow: hidden;
  left: 0;
  right: 0;
}

/* Changelog button + red dot indicator */
.changelog-btn { position: relative; }
.changelog-dot {
  position: absolute;
  top: 4px; right: 4px;
  width: 7px; height: 7px;
  background: #c33;
  border-radius: 50%;
  border: 1.5px solid #fff;
  pointer-events: none;
}
.changelog-body { max-height: 60vh; overflow: auto; }
.changelog-entry { padding: 12px 0; border-bottom: 0.5px solid rgba(0,0,0,0.08); }
.changelog-entry:last-child { border-bottom: 0; }
.changelog-date {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 13px;
  font-style: italic;
  color: #888;
  margin-bottom: 8px;
}
.changelog-list { list-style: none; padding: 0; margin: 0; }
.changelog-list li {
  padding: 4px 0 4px 18px;
  font-size: 13px;
  line-height: 1.5;
  position: relative;
  color: #2a2a2a;
}
.changelog-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #4caf50;
  font-weight: 600;
}

/* Inline black SVG icons replacing emojis on back-card + day badges */
.card-icon {
  display: inline-block;
  width: 0.95em;
  height: 0.95em;
  vertical-align: -0.18em;
  color: currentColor;
  flex-shrink: 0;
}
/* Day cell badges keep colored emoji style (reverted to original) — see lines 238-239 */
.back-loc {
  display: flex !important;
  flex-wrap: wrap;
  gap: 3px 4px;
  align-items: center;
}
.back-loc .card-icon {
  margin-right: 1px;
}
.event-label { color: #b88a3e !important; font-weight: 600; }
.event-input:focus { border-color: #c9a961; }
.day-stats {
  position: absolute; bottom: 1px; left: 1px; right: 1px;
  display: flex; justify-content: space-between; gap: 2px;
  font-size: 5.5px; color: #fff; font-weight: 600;
  text-shadow: 0 0 2px rgba(0,0,0,.9), 0 0 1px rgba(0,0,0,.9);
  padding: 0 2px; pointer-events: none;
  letter-spacing: -.2px;
}
.day-stats span { white-space: nowrap; }
.day.empty .day-num { color: var(--ink-mute); text-shadow: none; }
/* Prohlížeč vynucuje minimální font-size. Vnitřní span zmenšíme transformem. */
.day-caption {
  text-align: center;
  height: 13px;
  overflow: hidden;
  padding: 1px 0 0;
  margin: 0;
  color: var(--ink-mute);
  font-size: 0;
  line-height: 1;
}
.day-caption span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 10px;
  line-height: 1.1;
  font-weight: 400;
  transform: scale(0.55);
  transform-origin: top center;
  width: 182%;
  margin-left: -41%;
  max-height: 22px;
  overflow: hidden;
  word-break: break-word;
}
/* In edit mode, .view-only caption hides — handled by existing .view-only rule */

/* ===== Flip card for day photo ===== */
.day-wrap { perspective: 800px; }
.day-flipper {
  position: relative; aspect-ratio: 1; transform-style: preserve-3d;
  transition: transform .5s; cursor: pointer;
}
.day-flipper.flipped { transform: rotateY(180deg); }
.day-side {
  position: absolute; inset: 0; backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.day-back { transform: rotateY(180deg); background: #fafaf7; border: 1px solid var(--line); border-radius: 2px; padding: 3px; display: flex; flex-direction: column; gap: 2px; font-size: 7px; overflow: hidden; }
.back-head { display: flex; justify-content: space-between; align-items: center; font-weight: 600; color: var(--ink-soft); font-size: 7px; }
.day-num-back { font-size: 7px; }
.flip-close { background: none; border: 0; font-size: 11px; line-height: 1; padding: 0; color: var(--ink-mute); cursor: pointer; }
.back-mood { font-size: 14px; text-align: center; line-height: 1; margin: 0; }
.back-story { font-size: 5px; color: var(--ink); text-align: center; line-height: 1.15; overflow: hidden; padding: 1px; font-weight: 500; }
.back-gratitude { font-size: 4.5px; color: #b88a3e; text-align: center; line-height: 1.15; overflow: hidden; padding: 1px; font-style: italic; display: flex; flex-direction: column; align-items: center; gap: 0.5px; }
.back-gratitude-line { display: block; }
.back-gratitude-line + .back-gratitude-line::before { content: "·"; margin: 0 3px; opacity: 0.5; display: none; }
.back-movie { font-size: 4.5px; color: var(--ink, #1a1a1a); text-align: center; line-height: 1.1; overflow: hidden; padding: 1px; }
.back-note { font-size: 4.5px; color: #c9a961; text-align: center; line-height: 1.1; overflow: hidden; padding: 1px; font-style: italic; }
.back-quote {
  font-size: 4.5px; color: #6a4f8a; text-align: center; line-height: 1.1;
  padding: 1px; font-style: italic; font-family: var(--serif);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.back-quote .qauthor { font-style: normal; color: var(--ink-mute); font-family: var(--sans); font-size: 4px; }
.back-weight { font-size: 5px !important; color: #888; text-align: center; padding: 1px; font-weight: 500; }
.back-weather { font-size: 5px !important; color: #4a8acf; text-align: center; padding: 1px; font-weight: 500; }
.back-moon { font-size: 5px !important; color: #6a6a8a; text-align: center; padding: 1px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.back-flights { font-size: 5px !important; color: #8a7242; text-align: center; padding: 1px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.back-song { font-size: 5px !important; color: #1db954; text-align: center; padding: 1px; font-weight: 500; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.back-song a { color: inherit; text-decoration: none; }
.back-song a:hover { text-decoration: underline; }
.back-activity { font-size: 5px !important; color: #5a8a5a; text-align: center; padding: 1px; font-weight: 500; line-height: 1.1; }
.back-sleep { font-size: 5px !important; color: #6a6abf; text-align: center; padding: 1px; font-weight: 500; line-height: 1.1; }
.modal-weather { font-size: 13px; padding: 6px 0; color: var(--ink-soft); }

/* ===== Primary place (location + place name) — under photo ===== */
.modal-place {
  margin-top: 12px;
  display: flex; flex-direction: column; gap: 6px;
}
.place-row { display: flex; align-items: center; gap: 8px; }
.place-row .place-icon { font-size: 16px; flex-shrink: 0; width: 18px; text-align: center; }
.place-row .place-input {
  flex: 1; border: 0 !important; border-bottom: 1px solid var(--line) !important;
  border-radius: 0 !important; background: transparent !important;
  padding: 6px 0 !important;
}
.place-row .place-input { font-size: 12px; color: var(--ink-soft); font-weight: 400; }
.place-row .place-input:focus { outline: 0; border-bottom-color: var(--accent) !important; }
.inline-flight-link { margin-top: 6px !important; }

/* Extra places — same layout as primary place block */
.extra-places { display: flex; flex-direction: column; gap: 0; margin-top: 4px; }
.modal-place.extra {
  margin-top: 10px; padding-top: 8px;
  border-top: 1px dashed var(--line);
  position: relative;
}
.modal-place.extra .place-row.secondary:first-child .extra-place-name {
  padding-right: 32px !important;
}
.modal-place.extra .extra-place-x {
  position: absolute; top: 6px; right: 0;
  width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line);
  background: #fafafa; cursor: pointer; font-size: 12px; line-height: 1;
  color: #999; padding: 0; z-index: 2;
}
.modal-place.extra .extra-place-x:hover { background: #f0f0f0; color: #c33; border-color: #c33; }
.add-place-btn {
  margin-top: 8px; align-self: flex-start;
  font-size: 11px; color: var(--ink-mute);
  background: transparent; border: 1px dashed var(--line); border-radius: 12px;
  padding: 4px 12px; cursor: pointer;
}
.add-place-btn:hover { color: var(--ink-soft); border-color: var(--ink-mute); }

/* Place type select (back from chips) */
.place-type-row .place-icon { visibility: hidden; }
.place-type-select {
  flex: 1 !important;
  border: 0 !important; border-bottom: 1px solid var(--line) !important;
  border-radius: 0 !important; background: transparent !important;
  padding: 6px 0 !important; font-size: 12px !important;
  color: var(--ink-soft);
}

/* Mood row — select + custom on same row */
.mood-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mood-row .mood-custom { font-size: 12px; }

/* Quote default-only display */
.quote-label-only {
  margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line);
}
.quote-label-text {
  font-size: 11px; color: var(--ink-mute);
  text-transform: uppercase; letter-spacing: .5px;
}
.quote-default-only {
  font-family: var(--serif); font-style: italic; font-size: 14px;
  color: var(--ink-soft); margin-top: 6px; line-height: 1.4;
}

/* Quote inline next to date in modal header — subtle italic, no box */
.modal-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}
.modal-quote-inline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 12.5px;
  color: var(--ink-mute);
  font-weight: 400;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Free note input in health-box */
.health-box .health-note-input {
  font-size: 12px !important;
  padding: 5px 8px !important;
  background: #fff;
}

/* Quote inside right column (after People) */
.modal-fields .quote-label { margin-top: 18px !important; padding-top: 12px; border-top: 1px solid var(--line); }

/* ===== Extras section (weather, oura, flights, weight) ===== */
.modal-extras {
  margin-top: 16px;
  padding: 12px; border: 1px dashed var(--line); border-radius: 4px;
  background: #faf9f5;
  display: flex; flex-direction: column; gap: 10px;
}
.extras-title {
  font-size: 11px; color: var(--ink-mute); text-transform: uppercase;
  letter-spacing: .5px; font-weight: 500; margin-bottom: 4px;
}
.extras-row {
  display: grid; grid-template-columns: 90px 1fr; gap: 8px; align-items: center;
  font-size: 12px; line-height: 1.3;
  min-width: 0;
}
.extras-label { color: var(--ink-soft); font-weight: 500; }
.extras-value { color: var(--ink); min-width: 0; word-wrap: break-word; }
.extras-value .muted { color: var(--ink-mute); font-style: italic; }
/* Health box (Activity + Sleep) under quote of the day */
.health-box {
  margin-top: 14px;
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 4px;
  background: #faf9f5;
  display: flex; flex-direction: column; gap: 10px;
}
.extras-section { display: flex; flex-direction: column; gap: 4px; }
.extras-section .extras-label { font-size: 12px; }
.modal-extras .modal-flights { padding: 0; }
.modal-extras .add-flight-btn { align-self: flex-start; }
.flights-section.is-empty { display: none; }
.flights-section:not(.is-empty) ~ .extras-add-link { display: none; }
.extras-add-link {
  align-self: flex-start; background: transparent; border: 0;
  color: var(--ink-mute); font-size: 11px; padding: 2px 0;
  cursor: pointer; text-decoration: underline dotted;
}
.extras-add-link:hover { color: var(--accent); }

/* (icon-btn now styled above as .btn.icon-btn pill-circle) */

/* Settings modal */
.settings-box { max-width: 480px; }
.settings-body { padding: 24px; }
.settings-hint { color: var(--ink-mute); font-size: 13px; margin-bottom: 16px; }
.settings-list { display: flex; flex-direction: column; gap: 4px; }
.settings-row {
  display: grid; grid-template-columns: 24px 28px 1fr; align-items: center;
  gap: 10px; padding: 8px 10px; border-radius: 4px; cursor: pointer;
  font-size: 14px;
}
.settings-row:hover { background: #faf9f5; }
.settings-row input { margin: 0; cursor: pointer; }
.settings-row .se { font-size: 18px; text-align: center; }
.settings-row .sl { color: var(--ink); }
.settings-actions { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.settings-reset {
  background: #fff; border: 1px solid var(--line); color: var(--ink-soft);
  padding: 8px 14px; border-radius: 3px; font: inherit; font-size: 13px; cursor: pointer;
}
.settings-reset:hover { background: var(--ink); color: #fff; }
.settings-section { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.settings-section-title { margin: 0 0 10px; font-size: 13px; font-weight: 600; color: var(--ink-soft); letter-spacing: .03em; }
.settings-sync-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.settings-sync-btn {
  background: #fff; border: 1px solid var(--line); color: var(--ink);
  padding: 8px 14px; border-radius: 6px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.settings-sync-btn svg { width: 16px; height: 16px; flex-shrink: 0; margin-right: 0 !important; }
.settings-sync-btn:hover:not(:disabled) { background: var(--accent); color: #fff; border-color: var(--accent); }
.settings-sync-btn:disabled { opacity: .5; cursor: wait; }
.settings-sync-status { font-size: 12px; color: var(--ink-mute); }

/* Export — same style as .settings-sync-btn (small pill, bold), description below */
.export-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 12px;
  margin-top: 6px;
}
.export-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.export-card {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  text-decoration: none;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.export-card:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.export-card .ec-icon {
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.export-card .ec-icon svg {
  width: 16px; height: 16px;
  margin-right: 0 !important;
}
.export-card .ec-title { letter-spacing: 0.01em; }
/* Description sits OUTSIDE the box — plain small text */
.export-item .ec-desc {
  font-size: 11px;
  color: var(--ink-mute);
  line-height: 1.35;
  padding-left: 2px;
}

/* Custom fields editor in Settings */
.custom-fields-list { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; }
.cf-row { display: flex; gap: 6px; align-items: center; }
.cf-row .cf-emoji {
  width: 44px; flex: 0 0 auto; text-align: center; font-size: 18px;
  padding: 6px 4px; border: 1px solid var(--line); border-radius: 6px;
  background: #fff;
}
.cf-row .cf-label {
  flex: 1; padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px;
  font: inherit; font-size: 13px; background: #fff;
}
.cf-row .cf-emoji:focus, .cf-row .cf-label:focus { outline: 0; border-color: var(--accent); }
.cf-row .cf-x {
  width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; cursor: pointer; font-size: 14px; color: var(--ink-mute);
  flex: 0 0 auto; padding: 0;
}
.cf-row .cf-x:hover { background: #c94040; color: #fff; border-color: #c94040; }
.add-cf-btn {
  margin-top: 6px; align-self: flex-start;
  font-size: 12px; color: var(--ink-mute);
  background: transparent; border: 1px dashed var(--line); border-radius: 12px;
  padding: 5px 14px; cursor: pointer;
}
.add-cf-btn:hover { color: var(--ink-soft); border-color: var(--ink-mute); }

/* Primary button in header (bulk upload) — clean white pill, hover inverts */
.btn.primary-btn {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
  font-weight: 500;
}
.btn.primary-btn:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* Bulk upload UI */
.settings-mini-toggle {
  font-size: 12px; color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: 4px; cursor: pointer;
}
.settings-mini-toggle input { margin: 0; cursor: pointer; }
.bulk-report {
  margin-top: 12px; padding: 10px; background: #fafaf2;
  border: 1px solid var(--line); border-radius: 6px;
  max-height: 240px; overflow-y: auto;
  font-size: 12px;
}
.bulk-row {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 0; border-bottom: 1px dashed #eee;
}
.bulk-row:last-child { border-bottom: 0; }
.bulk-row .bn { flex: 1; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.bulk-row .bd { color: var(--ink-mute); font-variant-numeric: tabular-nums; }
.bulk-row .bs { color: var(--ink-soft); font-style: italic; }
.settings-sync-btn:disabled { opacity: .5; cursor: not-allowed; }
label.settings-sync-btn { display: inline-block; cursor: pointer; }
label.settings-sync-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.extras-input {
  font-size: 12px !important; padding: 5px 8px !important;
  min-width: 0;
}
.extras-input.weight-input { max-width: 90px; }
.back-loc { font-size: 5px; color: var(--accent); text-align: center; line-height: 1.1; overflow: hidden; }
.back-people { display: flex; flex-wrap: wrap; gap: 1px; justify-content: center; }

/* Only the visible face receives clicks */
.day-flipper.flipped .day-front { pointer-events: none; }
.day-flipper:not(.flipped) .day-back { pointer-events: none; }

/* ===== Inline edit mode (when logged in) ===== */
.edit-only { display: none; }
body.edit-mode .edit-only { display: block; }
body.edit-mode .view-only { display: none; }

body.edit-mode .month-hero { cursor: pointer; }
body.edit-mode .month-hero.empty { border: 2px dashed var(--accent); }
body.edit-mode .month-hero .empty-label { color: var(--accent); font-size: 13px; font-weight: 500; }
body.edit-mode .day-wrap.no-photo .day { border: 1px dashed rgba(0,0,0,.15); background: #f5f3ee; }
body.edit-mode .day-wrap.no-photo .day::after { content: "+"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(0,0,0,.3); font-size: 18px; font-weight: 200; pointer-events: none; }

/* Motivational text on empty cells (view mode only) */
.day-wrap.no-photo .empty-motiv {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 8px; color: rgba(0,0,0,.35);
  font-style: italic; text-align: center;
  padding: 2px 4px; line-height: 1.15;
  pointer-events: none;
}
body.edit-mode .day-wrap.no-photo .empty-motiv { display: none; }

/* removed inline hero-caption-input — editing now in modal */

.day-meta { padding: 2px 0 0; }
.day-input {
  width: 100%; padding: 2px 4px; border: 1px solid var(--line); border-radius: 2px;
  font: inherit; font-size: 9px; background: #fafaf7;
}
.day-mood, .add-person {
  width: 100%; padding: 3px 4px; border: 1px solid var(--line); border-radius: 2px;
  font: inherit; font-size: 10px; background: #fff;
}
.chips { display: flex; flex-wrap: wrap; gap: 2px; min-height: 0; }
.chip {
  display: inline-flex; align-items: center; gap: 2px;
  background: var(--accent); color: #fff; font-size: 8px;
  padding: 1px 3px 1px 5px; border-radius: 8px; line-height: 1.2;
}
.chip-x { color: #fff; font-size: 10px; padding: 0 2px; line-height: 1; opacity: .8; background: none; border: 0; cursor: pointer; }
.chip-x:hover { opacity: 1; }
.loc-tag { font-size: 8px; color: var(--ink-mute); padding: 1px 2px; text-align: center; }
.loc-tag.muted { opacity: .5; }

/* Disable hover zoom in edit mode */
body.edit-mode .day-wrap:hover .day { transform: none; box-shadow: none; }

/* ===== Login modal ===== */
.login-modal {
  position: fixed; inset: 0; background: rgba(0,0,0,.4); display: flex;
  align-items: center; justify-content: center; z-index: 1000;
}
.login-box {
  background: #fff; padding: 32px; border-radius: var(--radius);
  min-width: 320px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px;
}
.login-box h3 { font-family: var(--serif); font-weight: 400; font-size: 22px; }
.login-box input {
  padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); font: inherit;
}
.login-box button {
  padding: 10px 14px; background: var(--ink); color: #fff; border-radius: var(--radius); font: inherit;
}
.login-box button.ghost { background: transparent; color: var(--ink-soft); border: 1px solid var(--line); }
.login-err { color: #c94040; font-size: 13px; }

.save-status { font-size: 12px; color: var(--ink-mute); min-width: 60px; text-align: right; }
.save-status.ok { color: #4a8a4a; }
.save-status.err { color: #c94040; }

/* ===== Day edit modal — refined high-design card ===== */
.day-modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; z-index: 1000;
  padding: 20px;
  animation: modalFadeIn .18s ease-out;
}
@keyframes modalFadeIn { from { opacity: 0; } to { opacity: 1; } }
.day-modal-box {
  background: #fff;
  border-radius: 14px;
  width: 100%; max-width: 720px; max-height: 92vh;
  overflow: auto;
  box-shadow: 0 32px 80px rgba(0,0,0,.22), 0 0 0 1px rgba(0,0,0,.04);
  animation: modalSlideUp .22s ease-out;
}
@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.day-modal-box header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 28px;
  border-bottom: 1px solid #f0eee8;
  position: sticky; top: 0; background: #fff; z-index: 1;
}
.modal-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -.02em;
  color: var(--ink);
}
.modal-close {
  font-size: 22px;
  color: var(--ink-mute);
  cursor: pointer;
  line-height: 1;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.modal-close:hover { color: var(--ink); background: #f4f3ee; }

.modal-body {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: 28px;
  align-items: stretch;
}
.modal-photo {
  display: flex; flex-direction: column; gap: 12px;
  min-width: 0;
}
.modal-fields {
  min-width: 0;
}
.modal-place {
  display: flex; flex-direction: column; gap: 6px;
}
.modal-photo img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: 8px;
  background: #f3f3f0;
}
.focus-editor {
  position: relative; width: 100%; aspect-ratio: 1;
  border-radius: 8px; overflow: hidden; background: #f3f3f0;
  cursor: grab; touch-action: none;
}
.focus-editor:active { cursor: grabbing; }
.focus-editor img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  user-select: none; -webkit-user-drag: none;
  transform-origin: center; transition: none;
}
.focus-controls { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.focus-controls input[type="range"] { flex: 1; }
.focus-label { font-size: 11px; color: var(--ink-mute); text-transform: uppercase; letter-spacing: .5px; }
.focus-reset {
  width: 28px; height: 28px; border: 1px solid var(--line); background: #fff;
  border-radius: 2px; cursor: pointer; font-size: 14px; line-height: 1;
}
.focus-reset:hover { background: var(--ink); color: #fff; }
.focus-hint { font-size: 11px; color: var(--ink-mute); text-align: center; margin-top: 2px; font-style: italic; }
.empty-photo {
  aspect-ratio: 1; background: #f7f7f4; border: 2px dashed var(--line); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; color: var(--ink-mute); font-size: 14px;
}
.modal-upload {
  padding: 10px 16px; background: var(--ink); color: #fff; border-radius: var(--radius);
  font: inherit; font-size: 14px; cursor: pointer;
}
.modal-delete {
  padding: 8px 14px; background: #fff; color: #c94040; border: 1px solid #c94040; border-radius: var(--radius);
  font: inherit; font-size: 13px; cursor: pointer;
}
.modal-delete:hover { background: #c94040; color: #fff; }

/* Photo thumbnails strip — 3 fixed slots for additional photos (cover shown big above) */
.photo-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: nowrap;
}
.photo-thumb {
  position: relative;
  flex: 1 1 0;
  aspect-ratio: 1 / 1;
  padding: 0; border: 2px solid transparent; border-radius: 8px;
  background: #f3f3f0; cursor: pointer; overflow: hidden;
  transition: border-color .15s, transform .15s, background .15s;
}
.photo-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.photo-thumb.filled { background: #fff; }
.photo-thumb.active { border-color: var(--accent); }
.photo-thumb:hover { transform: translateY(-1px); }
.photo-thumb .thumb-rm {
  position: absolute; top: 4px; right: 4px;
  width: 20px; height: 20px;
  background: rgba(0,0,0,.7); color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; line-height: 1;
  cursor: pointer;
  opacity: 0; transition: opacity .15s;
}
.photo-thumb.filled:hover .thumb-rm { opacity: 1; }
.photo-thumb.add-thumb {
  background: transparent;
  border: 2px dashed var(--line);
  color: var(--ink-mute);
  display: flex; align-items: center; justify-content: center;
}
.photo-thumb.add-thumb .add-plus {
  font-size: 28px; line-height: 1; font-weight: 200;
}
.photo-thumb.add-thumb:hover { border-color: var(--ink); color: var(--ink); background: #fafaf8; }
.thumb-live {
  position: absolute; bottom: 2px; left: 2px;
  background: rgba(0,0,0,.7); color: #fff;
  font-size: 8px; font-weight: 700; letter-spacing: .05em;
  padding: 1px 4px; border-radius: 2px;
}

/* Live mode toggle in modal */
.live-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--ink-soft);
  cursor: pointer;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  user-select: none;
}
.live-toggle:hover { border-color: var(--ink); }
.live-toggle input { margin: 0; cursor: pointer; }

/* Live mini badge on calendar grid (small dot, animated) */
.live-mini-badge {
  position: absolute; bottom: 2px; left: 2px;
  width: 5px; height: 5px;
  background: #ff3b30;
  border-radius: 50%;
  box-shadow: 0 0 4px rgba(255,59,48,.8);
  animation: livePulse 2.5s ease-in-out infinite;
  /* GPU-accelerate the pulse — avoids paint thrash and lets Safari put it on its own composite layer */
  will-change: transform, opacity;
  transform: translateZ(0);
  pointer-events: none;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1) translateZ(0); }
  50% { opacity: .5; transform: scale(1.3) translateZ(0); }
}
/* Respect reduced motion + pause when tab is hidden (Safari "significant energy" warning) */
@media (prefers-reduced-motion: reduce) {
  .live-mini-badge { animation: none; opacity: 1; }
}
/* Body class set by JS when document hidden → pause all infinite animations */
body.is-tab-hidden .live-mini-badge { animation-play-state: paused; }
.day-wrap.is-live img { transition: opacity .25s ease-in-out; }

/* LIVE badge over main photo */
.focus-editor { position: relative; }
.live-badge {
  position: absolute; top: 8px; left: 8px;
  background: rgba(0,0,0,.7); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: .05em;
  padding: 3px 7px; border-radius: 3px; z-index: 2;
}

/* Photo actions row (Replace / Live / Delete) */
.photo-actions {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: 8px;
}
.photo-actions button {
  padding: 8px 12px;
  font-size: 13px;
  border-radius: var(--radius);
  font: inherit;
  cursor: pointer;
}
.photo-actions .modal-upload {
  padding: 8px 14px;
  font-size: 13px;
}
.photo-actions .add-live-btn {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
}
.photo-actions .add-live-btn:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.modal-fields { display: flex; flex-direction: column; gap: 4px; }
.modal-fields label {
  font-size: 11px; color: var(--ink-mute); text-transform: uppercase; letter-spacing: .5px;
  margin-top: 10px; font-weight: 500;
}
.modal-fields label:first-child { margin-top: 0; }
/* (removed full-width quote section — now in right column) */
.modal-input.modal-quote {
  width: 100%;
  border: 1px solid #e5e5e0 !important;
  border-radius: 6px !important;
  background: #faf9f5 !important;
  padding: 14px 16px !important;
  font-style: italic !important;
  font-family: var(--serif);
  font-size: 16px !important;
  color: #1a1a1a !important;
  line-height: 1.5;
}
.modal-input.modal-quote::placeholder {
  color: #b0b0b0;
  font-style: italic;
  font-family: var(--serif);
}
.modal-input.modal-quote:focus {
  outline: 0;
  border-color: var(--accent) !important;
  background: #fff !important;
}
.quote-default {
  font-size: 12px; color: var(--ink-mute); margin-top: 8px;
  font-style: italic; line-height: 1.4;
}
.quote-default em { color: var(--ink-soft); }
.label-with-action {
  display: flex; justify-content: space-between; align-items: center;
}
.label-optional {
  margin-top: 16px !important;
  color: var(--ink-mute) !important;
  font-style: italic;
  border-top: 1px dashed var(--line);
  padding-top: 8px;
}
.modal-weight-input { max-width: 140px; }
.generate-btn {
  background: #faf6ee; border: 1px solid var(--accent); color: var(--accent);
  font: inherit; font-size: 11px; padding: 3px 8px; border-radius: 12px;
  cursor: pointer; text-transform: none; letter-spacing: 0;
}
.generate-btn:hover { background: var(--accent); color: #fff; }
.modal-input {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius);
  font: inherit; font-size: 14px; background: #fff;
}
textarea.modal-input { resize: vertical; min-height: 52px; font-family: inherit; }
.modal-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; min-height: 22px; }
.modal-chips .chip { font-size: 12px; padding: 3px 6px 3px 10px; border-radius: 12px; }
.modal-chips .chip-x { font-size: 14px; padding: 0 2px; }
.modal-loc { font-size: 14px; color: var(--accent); padding: 6px 0; }
.modal-loc .muted { color: var(--ink-mute); }
.modal-oura { display: flex; flex-direction: column; gap: 4px; font-size: 13px; padding: 4px 0; }
.modal-oura span { color: var(--ink-soft); }

.modal-flights { display: flex; flex-direction: column; gap: 10px; padding: 4px 0; }
/* All on one row: [num] [from] → [to] [km] [×] */
.flight-row {
  display: grid;
  grid-template-columns: 88px 50px 14px 50px 1fr 24px;
  gap: 6px; align-items: center;
  padding: 6px 8px; background: #faf9f5; border: 1px solid var(--line); border-radius: 4px;
}
.flight-row .fnum { font-weight: 500; }
.flight-row .farrow { text-align: center; color: var(--ink-mute); font-size: 12px; }
.flight-row .fkm { font-size: 11px; color: var(--accent); font-weight: 500; text-align: right; white-space: nowrap; }
.flight-row .frm { justify-self: end; }
.flight-row input {
  padding: 6px 7px; border: 1px solid var(--line); border-radius: 3px;
  font: inherit; font-size: 12px; min-width: 0; width: 100%;
  background: #fff;
}
.flight-row .ffrom, .flight-row .fto { text-align: center; letter-spacing: .5px; }
.flight-row .frm {
  background: none; border: 1px solid var(--line); border-radius: 3px;
  color: var(--ink-mute); font-size: 13px; cursor: pointer;
  width: 24px; height: 24px; padding: 0; line-height: 1;
}
.flight-row .frm:hover { background: #c94040; color: #fff; border-color: #c94040; }
.add-flight-btn {
  padding: 6px 10px; border: 1px dashed var(--line); border-radius: 3px;
  background: transparent; color: var(--ink-mute); font-size: 12px;
  cursor: pointer; margin-top: 2px; align-self: flex-start;
}
.add-flight-btn:hover { border-color: var(--accent); color: var(--accent); }

@media (max-width: 600px) {
  .modal-body { grid-template-columns: 1fr; }
}

.month-foot {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 8px 0 0; font-size: 11px; color: var(--ink-soft);
}
.month-name { font-family: var(--serif); font-size: 16px; font-style: normal; font-weight: 400; }

/* Hover zoom — smooth photo scaling with GPU compositing.
   Empty cells (no-photo) are not zoomed to avoid pixelating tiny placeholder text. */
.day img { image-rendering: auto; }
@media (hover: hover) {
  .day-wrap.has-photo:hover .day {
    transform: scale(2.5);
    z-index: 100;
    box-shadow: 0 8px 32px rgba(0,0,0,.3);
    transition: transform .2s;
    will-change: transform;
  }
}

.loading { text-align: center; padding: 80px; color: var(--ink-mute); font-style: italic; }

/* ===== STATS ===== */
.stats-wrap { max-width: 1400px; margin: 0 auto; padding: 40px 32px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* Hero summary banner */
.stats-hero {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2520 100%);
  color: #fff;
  border-radius: 16px;
  padding: 36px 40px;
  display: flex;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
}
.stats-hero .hero-year {
  font-family: var(--serif);
  font-size: 64px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -2px;
  color: var(--accent);
  margin: 0;
}
.stats-hero .hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 36px;
  flex: 1;
}
.stats-hero .hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stats-hero .hero-stat strong {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
  color: #fff;
}
.stats-hero .hero-stat span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255,255,255,.55);
}
@media (max-width: 700px) {
  .stats-hero { flex-direction: column; align-items: flex-start; padding: 24px; gap: 20px; }
  .stats-hero .hero-year { font-size: 48px; }
  .stats-hero .hero-stat strong { font-size: 24px; }
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px 28px;
  min-height: 240px;
  position: relative;
}
.stat-card.span-2 { grid-column: span 2; }
.stat-card.span-3 { grid-column: 1 / -1; }
.stat-card h3 {
  font-family: var(--serif); font-size: 18px; font-weight: 400;
  margin: 0 0 18px;
  display: flex; align-items: baseline; justify-content: space-between;
  letter-spacing: -.1px;
}

.map { height: 380px; border-radius: 8px; overflow: hidden; }
/* Heatmap — month-by-month rows with emoji per day */
.heatmap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 18px;
}
.hm-row {
  display: grid;
  grid-template-columns: 36px repeat(31, 1fr);
  gap: 3px;
  align-items: center;
}
.hm-month-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-mute);
  text-align: right;
  padding-right: 6px;
  letter-spacing: .02em;
}
.hm-cell {
  aspect-ratio: 1;
  background: #f6f4ee;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height: 1;
  cursor: default;
  transition: transform .12s, background .12s;
}
.hm-cell.has-photo {
  background: #fff8e7;
}
.hm-cell.has-photo:hover {
  transform: scale(1.6);
  z-index: 2;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}
.hm-cell.empty-month {
  background: transparent;
  border: 0;
}

/* Ranked list (Top místa) — compact */
.ranked-list { display: flex; flex-direction: column; gap: 4px; }
.rank-item {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center; gap: 10px;
  padding: 5px 0;
}
.rank-item:not(:last-child) { border-bottom: 1px dashed #ece9df; }
.rank-num {
  font-size: 12px; font-weight: 500;
  color: var(--ink-mute); text-align: right;
  font-variant-numeric: tabular-nums;
}
.rank-body { min-width: 0; }
.rank-row {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 3px; gap: 8px;
}
.rank-label {
  font-size: 12.5px; color: var(--ink); font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rank-count {
  font-size: 11px; color: var(--ink-mute); font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.rank-bar { height: 3px; background: #f0eee8; border-radius: 2px; overflow: hidden; }
.rank-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #8a7242);
  border-radius: 2px;
  transition: width .4s ease;
}

/* Stat-summary (used in many cards as bottom summary line) */
.stat-summary {
  display: flex; flex-wrap: wrap; gap: 18px 24px;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
  margin-top: 14px;
}
.stat-summary > div {
  display: flex; flex-direction: column; gap: 2px;
}
.stat-summary strong {
  font-family: var(--serif); font-size: 22px; font-weight: 400;
  color: var(--ink); line-height: 1;
}
.stat-summary span {
  font-size: 10px; text-transform: uppercase; letter-spacing: .1em;
  color: var(--ink-mute);
}

.people-cloud {
  display: flex; flex-wrap: wrap; gap: 6px;
  align-content: flex-start;
}
.person-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fafaf2; border: 1px solid var(--line);
  padding: 4px 12px 4px 4px; border-radius: 100px;
  color: var(--ink); transition: background .15s, border-color .15s;
}
.person-tag:hover { background: #f0ebd9; border-color: var(--accent); }
.person-tag .avatar {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff; border-radius: 50%;
  font-weight: 600; flex-shrink: 0;
}
.person-tag .avatar-photo {
  border-radius: 50%; object-fit: cover; flex-shrink: 0;
  border: 2px solid #fff; box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
.person-tag .pname { font-weight: 500; }
.person-tag .pcount { color: var(--ink-mute); font-size: 11px; font-variant-numeric: tabular-nums; }
.person-tag.is-editable { transition: transform .15s, box-shadow .15s; }
.person-tag.is-editable:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  border-color: var(--accent);
}
.person-tag.is-editable:hover .avatar { background: #b8965a; }
.person-tag.is-editable:hover .avatar-photo { border-color: var(--accent); }

.empty-stat { color: var(--ink-mute); font-style: italic; padding: 12px 0; }

.place-types-breakdown {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.place-type-group {
  background: #fafaf2; border: 1px solid var(--line);
  border-radius: 8px; padding: 14px 16px;
}
.place-type-group h4 {
  font-family: var(--serif); font-size: 15px; font-weight: 400;
  margin: 0 0 10px; color: var(--ink); display: flex;
  justify-content: space-between; align-items: baseline;
  padding-bottom: 8px; border-bottom: 1px solid var(--line);
}
.place-type-group .pt-total { font-size: 11px; color: var(--accent); font-weight: 600; }
.place-type-list { list-style: none; padding: 0; margin: 0; font-size: 12.5px; }
.place-type-list li {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 5px 0;
}
.place-type-list li:not(:last-child) { border-bottom: 1px dashed #e5e3dc; }
.place-type-list .pt-name { color: var(--ink); }
.place-type-list .pt-count { color: var(--ink-mute); font-variant-numeric: tabular-nums; font-size: 11px; }
.flights-list { margin-top: 16px; display: flex; flex-direction: column; gap: 24px; }
.flights-routes { display: flex; flex-direction: column; gap: 6px; }
.flight-route {
  display: flex; justify-content: space-between;
  padding: 6px 10px; background: #faf9f5; border-radius: 4px;
  font-size: 13px; border: 1px solid var(--line);
}
.flight-route .rcount { color: var(--ink-mute); }
.flights-recent h4 {
  font-family: var(--serif); font-size: 14px; font-weight: 400;
  color: var(--ink-soft); margin-bottom: 8px;
}
.flight-item {
  display: flex; gap: 10px; padding: 4px 0; font-size: 11px;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
  white-space: nowrap;
}
.flight-item .fdate { flex: 0 0 70px; color: var(--ink-mute); font-variant-numeric: tabular-nums; }
.flight-item .froute { flex: 1; color: var(--ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.flight-item .fkm { flex: 0 0 auto; color: var(--accent); font-weight: 500; font-variant-numeric: tabular-nums; }
.stat-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; font-size: 13px; }
.stat-summary div { padding: 8px 0; }
.stat-summary strong { display: block; font-family: var(--serif); font-size: 24px; font-weight: 400; }

/* ===== PRINT (A3 landscape, 12 months on ONE page) ===== */
@page { size: A3 landscape; margin: 6mm; }
@media print {
  .no-print, .login-modal, .day-modal, .save-status { display: none !important; }
  html, body { background: #fff !important; color: #000 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body { margin: 0 !important; padding: 0 !important; }
  .calendar-wrap { padding: 0 !important; max-width: none !important; margin: 0 !important; height: 100vh; display: flex; flex-direction: column; }
  .year-title { font-family: var(--serif); font-size: 16pt !important; margin: 0 0 2mm !important; text-align: center; font-weight: 400; line-height: 1; flex: 0 0 auto; }

  .months {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    grid-template-rows: repeat(3, 1fr) !important;
    gap: 3mm !important;
    flex: 1 1 auto;
    min-height: 0;
  }
  .month {
    break-inside: avoid; page-break-inside: avoid;
    display: flex; flex-direction: column;
    min-height: 0; min-width: 0;
    overflow: hidden;
  }
  .month-hero {
    aspect-ratio: auto !important;
    height: 38mm !important;
    border-radius: 0;
    flex: 0 0 38mm;
    position: relative;
  }
  .month-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .month-hero-caption { font-size: 5pt !important; bottom: 1mm !important; left: 1mm !important; }
  .month-hero.empty { display: none; }

  .days-header {
    display: grid !important; grid-template-columns: repeat(7, 1fr) !important;
    gap: .5mm !important; padding: 1mm 0 .5mm !important; flex: 0 0 auto;
  }
  .days-header span { font-size: 3.5pt !important; color: #888 !important; }

  .days-grid {
    display: grid !important; grid-template-columns: repeat(7, 1fr) !important;
    grid-auto-rows: 1fr !important; gap: .5mm !important;
    padding: 0 !important;
    flex: 1 1 auto; min-height: 0;
  }
  .day-wrap { min-width: 0; display: flex; flex-direction: column; }
  .day-wrap.outside { visibility: hidden; }
  .day-flipper { aspect-ratio: 1; transform: none !important; flex: 0 0 auto; }
  .day-flipper .day-back { display: none !important; }
  .day-flipper .day-front { pointer-events: none; }
  .day { border-radius: 0 !important; }
  .day-num { font-size: 3pt !important; top: 0 !important; left: .5mm !important; }
  .day-caption { height: 6px !important; padding: 0 !important; flex: 0 0 auto; }
  .day-caption span { transform: scale(0.45) !important; width: 222% !important; margin-left: -61% !important; font-size: 9px !important; line-height: 1 !important; color: #555 !important; }
  .day-wrap:hover .day { transform: none !important; box-shadow: none !important; }
  .mood-badge { display: none !important; }

  .month-foot { padding: 1mm 0 0 !important; flex: 0 0 auto; }
  .month-name { font-size: 7pt !important; font-style: normal; }

  .stat-card { break-inside: avoid; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .months { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-card.span-2 { grid-column: span 2; }
  .stat-card.span-3 { grid-column: 1 / -1; }
}
@media (max-width: 800px) {
  .top { padding: 16px 20px; flex-wrap: wrap; gap: 12px; }
  .months { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .home, .calendar-wrap, .stats-wrap { padding: 24px 16px; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-card.span-2, .stat-card.span-3 { grid-column: span 1; }
}
@media (max-width: 500px) {
  .months { grid-template-columns: 1fr; }
}

/* ===== SONG OF THE DAY (modal + stats) ===== */
.song-label { display: block; margin-top: 14px; font-size: 11px; color: var(--ink-mute); letter-spacing: .04em; text-transform: uppercase; }

/* Search box + autocomplete dropdown */
.song-search-wrap { position: relative; }
.song-search { width: 100%; }
.song-results {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px);
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  max-height: 320px; overflow-y: auto; z-index: 1000;
}
.song-result {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; cursor: pointer; border-bottom: 1px solid #f4f4f4;
}
.song-result:last-child { border-bottom: 0; }
.song-result:hover { background: #fafaf2; }
.song-result img { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.song-result-info { min-width: 0; flex: 1; }
.song-result-title { font-size: 13px; font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song-result-artist { font-size: 11px; color: var(--ink-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song-result-album { font-style: italic; }
.song-loading { padding: 12px; color: var(--ink-mute); font-size: 12px; text-align: center; }

/* Picked song card */
.song-picked:empty { display: none; }
.song-card {
  display: flex; align-items: center; gap: 10px;
  background: #fafaf2; border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 10px; margin-bottom: 8px;
}
.song-cover, .song-cover-fallback {
  width: 56px; height: 56px; border-radius: 6px; flex-shrink: 0;
  object-fit: cover; background: #eee;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.song-cover-fallback.small { width: 40px; height: 40px; font-size: 16px; }
.song-info { flex: 1; min-width: 0; }
.song-info .song-title { font-size: 14px; font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song-info .song-artist { font-size: 12px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song-info .song-links { font-size: 11px; margin-top: 4px; }
.song-info .song-link { color: var(--ink-mute); text-decoration: none; }
.song-info .song-link.spotify { color: #1db954; font-weight: 600; }
.song-info .song-link.apple   { color: #fa233b; font-weight: 600; }
.song-info .song-link:hover { text-decoration: underline; }
.song-play, .song-x {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; cursor: pointer;
  font-size: 14px; line-height: 1; color: var(--ink-soft); flex-shrink: 0;
}
.song-play { background: #1db954; color: #fff; border-color: #1db954; font-size: 12px; }
.song-play:hover { background: #19a44b; }
.song-x:hover { background: #f0f0f0; color: #c33; border-color: #c33; }

/* Spotify paste fallback (collapsed) */
.song-spotify-paste { margin-top: 6px; font-size: 12px; color: var(--ink-mute); }
.song-spotify-paste summary { cursor: pointer; padding: 4px 0; user-select: none; }
.song-spotify-paste summary:hover { color: var(--ink-soft); }
.song-spotify-paste[open] summary { margin-bottom: 6px; }
.song-spotify-paste .song-url { width: 100%; margin-bottom: 6px; }
.song-embed { margin: 4px 0 8px; min-height: 0; }
.song-embed iframe { display: block; width: 100%; }

/* Card back: cover thumbnail */
.back-song-cover { width: 8px; height: 8px; border-radius: 1px; vertical-align: middle; margin-right: 1px; object-fit: cover; }
.back-song-text { vertical-align: middle; }

/* ─── Book of the day (mirror of song UI) ─── */
.book-label { display: block; margin-top: 14px; font-size: 11px; color: var(--ink-mute); letter-spacing: .04em; text-transform: uppercase; }
.book-search-wrap { position: relative; }
.book-search { width: 100%; }
.book-results {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px);
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  max-height: 320px; overflow-y: auto; z-index: 1000;
}
.book-result {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; cursor: pointer; border-bottom: 1px solid #f4f4f4;
}
.book-result:last-child { border-bottom: 0; }
.book-result:hover { background: #fafaf2; }
.book-result img { width: 30px; height: 44px; border-radius: 2px; object-fit: cover; flex-shrink: 0; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.book-cover-fallback.small { width: 30px; height: 44px; font-size: 16px; display: flex; align-items: center; justify-content: center; background: #eee; border-radius: 2px; }
.book-result-info { min-width: 0; flex: 1; }
.book-result-title { font-size: 13px; font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.book-result-author { font-size: 11px; color: var(--ink-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.book-loading { padding: 12px; color: var(--ink-mute); font-size: 12px; text-align: center; }

/* Picked book card */
.book-picked:empty { display: none; }
.book-card {
  display: flex; align-items: center; gap: 12px;
  background: #fafaf2; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px; margin-bottom: 8px;
}
.book-cover, .book-cover-fallback {
  width: 44px; height: 64px; border-radius: 3px; flex-shrink: 0;
  object-fit: cover; background: #eee;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
}
.book-info { flex: 1; min-width: 0; }
.book-info .book-title { font-size: 14px; font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.book-info .book-author { font-size: 12px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-style: italic; }
.book-info .book-actions { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.book-info .book-link { color: var(--ink-mute); text-decoration: none; font-size: 11px; }
.book-info .book-link:hover { text-decoration: underline; color: var(--ink-soft); }
.book-remove {
  width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; cursor: pointer;
  font-size: 14px; line-height: 1; color: var(--ink-soft); flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
}
.book-remove:hover { background: #f0f0f0; color: #c33; border-color: #c33; }

/* Card back: book line */
.back-book { font-size: 5px !important; color: #8b6f47; text-align: center; padding: 1px; font-weight: 500; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.back-book a { color: inherit; text-decoration: none; }
.back-book a:hover { text-decoration: underline; }
.back-book-cover { width: 6px; height: 8px; border-radius: 1px; vertical-align: middle; margin-right: 1px; object-fit: cover; }
.back-book-text { vertical-align: middle; }

/* Stats: songs list */
.songs-list { margin-top: 16px; }
.songs-empty { color: var(--ink-mute); font-style: italic; padding: 16px; text-align: center; }
.songs-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 700px) { .songs-cols { grid-template-columns: 1fr; gap: 16px; } }
.songs-col h4 { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--ink-soft); letter-spacing: .03em; }
.song-list { list-style: none; padding: 0; margin: 0; }
.song-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.song-item:last-child { border-bottom: 0; }
.song-item .song-count {
  flex-shrink: 0; font-size: 11px; color: #1db954; font-weight: 600;
  width: 26px; text-align: right;
}
.song-item-cover {
  width: 36px; height: 36px; border-radius: 4px; object-fit: cover;
  flex-shrink: 0; background: #eee;
}
.song-item-cover.fallback {
  display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.song-item-info { flex: 1; min-width: 0; }
.song-item-title { font-size: 13px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song-item-artist { font-size: 11px; color: var(--ink-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song-item a { color: var(--ink); text-decoration: none; }
.song-item a:hover { color: #1db954; text-decoration: underline; }

/* ===== RESPONSIVE (mobile QA pass — v132) ===== */

/* Mobile ≤ 640px — touch targets, smaller logo, hide dev label, tighter nav */
@media (max-width: 640px) {
  /* Hide dev version label (red v165 ✓ ...) on mobile */
  .brand + span[style*="margin-left:8px"] { display: none !important; }

  /* Brand SVG scales down to fit narrow screens */
  .brand svg { max-width: 160px; width: 100%; height: auto; }

  /* Tighter top header padding + gap */
  .top { padding: 12px 14px; gap: 10px; }

  /* Nav wraps cleaner on phones */
  .nav { gap: 4px; flex-wrap: wrap; justify-content: flex-end; }

  /* Touch-friendly target sizes (≥40px tall) */
  .btn,
  .nav > a {
    padding: 10px 16px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }
  .btn.icon-btn { width: 40px; height: 40px; min-height: 40px; }
  .year-select {
    padding: 10px 32px 10px 14px;
    min-height: 40px;
  }

  /* Day modal — fuller-screen on phones (no rounded corners, edge-to-edge) */
  .day-modal { padding: 0; }
  .day-modal-box {
    max-height: 100vh;
    max-height: 100dvh;
    border-radius: 0;
    width: 100%;
  }
  .day-modal-box header { padding: 16px 20px; }
  .modal-title { font-size: 19px; }

  /* Login modal — fits comfortably */
  .login-box {
    width: calc(100% - 32px);
    max-width: 360px;
    padding: 28px 24px;
  }

  /* Calendar / stats wrappers — tighter side padding */
  .calendar-wrap, .stats-wrap { padding: 18px 14px; }
}

/* Tiny phones ≤ 380px — even more compact */
@media (max-width: 380px) {
  .nav > a,
  .nav > .btn:not(.icon-btn) { font-size: 12px; padding: 8px 12px; min-height: 38px; }
  .brand svg { max-width: 140px; }
  .top { padding: 10px 12px; }
}

/* ===== FONT LOAD ===== */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,500;1,400&display=swap");
