/* =========================================================
   EXPODATE — calendário mobile first
   ========================================================= */
:root {
  --bg: #ebe7e2;
  --bg-2: #dcd7d1;
  --surface: rgba(255, 255, 255, .55);
  --surface-2: rgba(255, 255, 255, .78);
  --ink: #2a2421;
  --ink-2: #5d5550;
  --muted: #9d958f;
  --line: rgba(42, 36, 33, .08);
  --cell: rgba(42, 36, 33, .055);
  --cell-ink: rgba(42, 36, 33, .26);
  --orange: #f26b2c;
  --orange-2: #ff8a50;
  --orange-soft: rgba(242, 107, 44, .12);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --gutter: 16px;
  --rail: 44px;
  --gap: 6px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(120% 70% at 85% -10%, rgba(255,255,255,.7), transparent 60%),
    linear-gradient(160deg, #f0ece7 0%, var(--bg) 45%, var(--bg-2) 100%);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.mono { font-family: var(--mono); }
.faint { opacity: .35; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 10px; }

/* ---------- Estrutura ---------- */
.app {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  max-width: 560px;
  margin: 0 auto;
}

/* ---------- Topbar ---------- */
.topbar {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--gutter) 6px;
  animation: drop .7s var(--ease) both;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-dot {
  width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #ffa274, var(--orange) 55%, #d9531a);
  box-shadow: 0 4px 14px -3px rgba(242,107,44,.65), inset 0 -2px 4px rgba(0,0,0,.12);
  animation: breathe 3.6s ease-in-out infinite;
}
.brand-name { font-weight: 700; letter-spacing: .14em; font-size: 13px; }
.top-actions { display: flex; gap: 8px; }

.icon-btn {
  position: relative;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 1px 2px rgba(42,36,33,.06);
  transition: transform .25s var(--spring), background .25s;
  overflow: hidden;
}
.icon-btn:active { transform: scale(.9); }
.badge {
  position: absolute; top: 4px; right: 4px;
  min-width: 15px; height: 15px; padding: 0 4px; border-radius: 8px;
  background: var(--orange); color: #fff; font-size: 9px; font-weight: 700;
  display: grid; place-items: center;
  animation: pop .45s var(--spring) both;
}
.badge[hidden] { display: none; }
.burger { gap: 0; }
.burger span {
  position: absolute; left: 12px; width: 16px; height: 1.8px; border-radius: 2px; background: var(--ink);
  transition: transform .4s var(--spring), opacity .2s, top .3s var(--ease);
}
.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 19.2px; width: 11px; }
.burger span:nth-child(3) { top: 24.4px; }
.burger.is-open span:nth-child(1) { top: 19.2px; transform: rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; transform: translateX(8px); }
.burger.is-open span:nth-child(3) { top: 19.2px; transform: rotate(-45deg); }

/* ---------- Seção do calendário ---------- */
.cal-section { flex: none; padding: 0 var(--gutter); position: relative; z-index: 2; }

.titlebar {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  padding: 6px 0 12px;
  animation: fade-up .7s .08s var(--ease) both;
}
.round-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 2px 6px -2px rgba(42,36,33,.12);
  transition: transform .25s var(--spring), opacity .2s;
  position: relative; overflow: hidden;
}
.round-btn:active { transform: scale(.88); }
.round-btn[disabled] { opacity: .3; pointer-events: none; }
.title { text-align: center; overflow: hidden; }
.title-main { font-size: clamp(26px, 7.6vw, 34px); font-weight: 700; letter-spacing: -.035em; line-height: 1.1; white-space: nowrap; overflow: hidden; }
.title-year { color: var(--orange); font-weight: 600; }
.title-main span { display: inline-block; }
.title-sub { font-size: 11.5px; color: var(--muted); margin-top: 4px; letter-spacing: .02em; }
.swap-up { animation: swap-up .45s var(--ease) both; }
.swap-down { animation: swap-down .45s var(--ease) both; }

/* grade: ano | dias da semana / meses | calendário */
.cal-body {
  display: grid;
  grid-template-columns: var(--rail) 1fr;
  grid-template-areas: "year wd" "rail months";
  column-gap: 10px;
  row-gap: 10px;
}

/* ano */
.year-wrap { grid-area: year; position: relative; display: grid; place-items: center; }
.year-btn {
  width: var(--rail); height: 24px; border-radius: 12px;
  font-family: var(--mono); font-size: 10.5px; font-weight: 500; color: var(--ink-2);
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85);
  transition: transform .25s var(--spring), background .2s, color .2s;
  position: relative; overflow: hidden;
  animation: pop .6s .15s var(--spring) both;
}
.year-btn::after { content: ''; position: absolute; inset: auto 0 3px; margin: auto; width: 4px; height: 2px; border-radius: 2px; background: var(--orange); opacity: .8; }
.year-btn[aria-expanded="true"] { background: var(--ink); color: #fff; }
.year-pop {
  position: absolute; top: 32px; left: 0; z-index: 30;
  min-width: 150px; padding: 6px;
  background: var(--surface-2);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-radius: 18px;
  box-shadow: 0 20px 40px -12px rgba(42,36,33,.3), inset 0 1px 0 rgba(255,255,255,.9);
  transform-origin: 20px 0;
  transform: scale(.6) translateY(-6px); opacity: 0; pointer-events: none;
  transition: transform .4s var(--spring), opacity .2s;
}
.year-pop.is-open { transform: none; opacity: 1; pointer-events: auto; }
.year-opt {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; border-radius: 12px; font-weight: 600; font-size: 15px;
  transition: background .2s;
}
.year-opt small { font-family: var(--mono); font-weight: 400; font-size: 10.5px; color: var(--muted); }
.year-opt:hover { background: rgba(42,36,33,.05); }
.year-opt.is-active { background: var(--ink); color: #fff; }
.year-opt.is-active small { color: rgba(255,255,255,.6); }

/* dias da semana */
.weekdays { grid-area: wd; display: grid; grid-template-columns: repeat(7, 1fr); gap: var(--gap); }
.wd {
  height: 24px; border-radius: 12px;
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .06em; color: var(--muted);
  background: var(--cell);
  transition: background .35s var(--ease), color .35s, transform .35s var(--spring);
  animation: fade-up .5s var(--ease) both;
  animation-delay: calc(var(--i) * 40ms + 120ms);
}
.wd.is-active { background: var(--orange); color: #fff; transform: scaleX(1.04); box-shadow: 0 4px 12px -4px rgba(242,107,44,.7); }

/* trilho de meses */
.rail-wrap { grid-area: rail; position: relative; }
.rail {
  position: absolute; inset: 0;
  overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: none;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 2px 0 40px;
  -webkit-mask-image: linear-gradient(transparent, #000 14px, #000 calc(100% - 26px), transparent);
          mask-image: linear-gradient(transparent, #000 14px, #000 calc(100% - 26px), transparent);
}
.rail::-webkit-scrollbar { display: none; }
.rm {
  flex: none;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: .02em; color: var(--ink-2);
  background: linear-gradient(160deg, rgba(255,255,255,.7), rgba(255,255,255,.25));
  box-shadow: inset 0 0 0 1px rgba(42,36,33,.07), 0 1px 2px rgba(42,36,33,.05);
  position: relative; overflow: hidden;
  transition: background .35s var(--ease), color .3s, transform .4s var(--spring), box-shadow .35s;
  animation: pop .55s var(--spring) both;
  animation-delay: calc(var(--i) * 35ms + 150ms);
}
.rm:hover { transform: scale(1.06); }
.rm:active { transform: scale(.9); }
.rm.is-active {
  background: radial-gradient(circle at 35% 30%, var(--orange-2), var(--orange) 60%);
  color: #fff; font-weight: 600;
  box-shadow: 0 6px 16px -5px rgba(242,107,44,.75), inset 0 1px 0 rgba(255,255,255,.3);
  transform: scale(1.08);
}
.rm .rm-dot { position: absolute; bottom: 6px; width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .5; }
.rail-year {
  flex: none; font-family: var(--mono); font-size: 9px; color: var(--muted);
  letter-spacing: .08em; padding: 2px 0; position: relative;
}
.rail-year::before, .rail-year::after { content: ''; display: block; width: 1px; height: 6px; background: var(--line); margin: 3px auto; }

/* páginas de meses (scroll com snap) */
.months {
  grid-area: months;
  overflow-y: auto; overflow-x: hidden;
  scroll-snap-type: y mandatory;
  overscroll-behavior: contain;
  scrollbar-width: none;
  outline: none;
  height: 260px; /* ajustado pelo JS */
}
.months::-webkit-scrollbar { display: none; }
.month-page {
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: var(--gap);
  padding-bottom: var(--gap);
  transform-origin: 50% 0;
  will-change: transform, opacity;
}
.day {
  aspect-ratio: 1;
  border-radius: 30%;
  display: grid; place-items: center;
  position: relative;
  font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums;
  color: var(--cell-ink);
  background: linear-gradient(150deg, rgba(255,255,255,.42), rgba(42,36,33,.045));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -1px 2px rgba(42,36,33,.035);
  outline: 1.5px solid transparent;
  outline-offset: 9px;
  transition: transform .35s var(--spring), background .35s var(--ease), color .3s, outline-offset .45s var(--spring), outline-color .3s, box-shadow .35s;
}
.day.is-empty, .day.is-past { visibility: hidden; }
.day.is-before { cursor: default; }
button.day:hover { transform: scale(1.07); }
button.day:active { transform: scale(.88); }
.day.has-ev {
  color: #fff;
  background: linear-gradient(160deg, #3d3430, #1f1a17);
  box-shadow: 0 7px 14px -7px rgba(31,26,23,.75), inset 0 1px 0 rgba(255,255,255,.09);
}
.day .dots { position: absolute; bottom: 14%; display: flex; gap: 2px; }
.day .dots i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .55; }
.day.is-today {
  color: #fff;
  background: radial-gradient(circle at 35% 25%, var(--orange-2), var(--orange) 65%, #e35a1c);
  box-shadow: 0 8px 18px -6px rgba(242,107,44,.75), inset 0 1px 0 rgba(255,255,255,.3);
}
.day.is-today::before {
  content: ''; position: absolute; inset: -4px; border-radius: 34%;
  border: 1.5px solid rgba(242,107,44,.45);
  animation: ring 2.4s var(--ease) infinite;
}
.month-page { position: relative; }
.past-note {
  position: absolute; left: 0; right: 0; top: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  border-radius: 18px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em; color: var(--muted); text-align: center;
  background: repeating-linear-gradient(135deg, rgba(42,36,33,.035) 0 1px, transparent 1px 9px);
  box-shadow: inset 0 0 0 1px rgba(42,36,33,.05);
  animation: fade-up .6s .2s var(--ease) both;
}
.past-note b { font-family: var(--font); font-size: 13px; font-weight: 600; color: var(--ink-2); letter-spacing: 0; }
.month-page.enter .day { animation: cell-in .55s var(--spring) both; animation-delay: calc(var(--i) * 9ms); }

/* barra tipo "transport" */
.transport {
  margin: 12px 0 14px;
  height: 48px;
  display: flex; align-items: center; gap: 4px;
  padding: 0 6px;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 8px 24px -14px rgba(42,36,33,.35);
  animation: fade-up .7s .3s var(--ease) both;
}
.tr-btn { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); position: relative; overflow: hidden; transition: transform .25s var(--spring); }
.tr-btn:active { transform: scale(.88); }
.tr-sep { width: 1px; height: 18px; background: var(--line); }
.tr-date { flex: 1; text-align: center; font-size: 15px; letter-spacing: .04em; white-space: nowrap; overflow: hidden; }
.tr-date .faint { opacity: .32; }
.tr-count {
  height: 34px; padding: 0 12px 0 10px; border-radius: 17px;
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--orange); font-family: var(--mono); font-size: 11px;
  position: relative; overflow: hidden;
  transition: background .2s, transform .25s var(--spring);
}
.tr-count b { font-size: 15px; font-weight: 500; display: inline-block; }
.tr-count:hover { background: var(--orange-soft); }
.tr-count:active { transform: scale(.92); }

/* ---------- Lista (bottom sheet) ---------- */
.sheet {
  flex: 1; min-height: 0;
  position: relative;
  overflow-y: auto; overscroll-behavior: contain;
  margin: 0 8px;
  border-radius: 30px 30px 0 0;
  background: linear-gradient(180deg, rgba(255,255,255,.62), rgba(255,255,255,.4));
  box-shadow: 0 -10px 30px -18px rgba(42,36,33,.35), inset 0 1px 0 rgba(255,255,255,.9);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  scrollbar-width: thin; scrollbar-color: rgba(42,36,33,.15) transparent;
  animation: sheet-in .9s .2s var(--ease) both;
  padding-bottom: calc(24px + var(--safe-b));
}
.sheet-head {
  position: sticky; top: 0; z-index: 5;
  padding: 10px 20px 12px;
  background: linear-gradient(180deg, rgba(246,243,239,.97) 70%, rgba(246,243,239,0));
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.handle { display: block; width: 38px; height: 4px; border-radius: 4px; background: rgba(42,36,33,.14); margin: 0 auto 10px; }
.sheet-label { font-size: 11.5px; color: var(--muted); letter-spacing: .02em; }
.sheet-title { margin: 2px 0 0; font-size: 34px; font-weight: 700; letter-spacing: -.035em; line-height: 1.05; }
.sheet-year { color: var(--orange); font-weight: 600; }

.list { padding: 14px 12px 0; }
.group { padding-top: 6px; }
.group-head {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 8px 8px;
  animation: fade-up .5s var(--ease) both;
  animation-delay: calc(var(--i) * 50ms);
}
.g-date { font-size: 30px; font-weight: 700; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.g-date em { font-style: normal; font-size: 22px; font-weight: 600; letter-spacing: -.01em; color: var(--muted); margin-left: 1px; }
.g-meta { display: flex; flex-direction: column; gap: 2px; }
.g-meta b { font-size: 13px; font-weight: 600; }
.g-meta i { font-style: normal; font-family: var(--mono); font-size: 10.5px; color: var(--muted); letter-spacing: .04em; }
.g-tag { margin-left: auto; font-family: var(--mono); font-size: 10px; color: #fff; background: var(--orange); padding: 4px 8px; border-radius: 10px; letter-spacing: .05em; }
.g-date, .g-date em { transition: color .3s; }
.group.is-hit .g-date, .group.is-hit .g-date em { color: var(--orange); }
.g-meta { padding-left: 12px; border-left: 1px solid var(--line); }

.ev {
  margin: 0 0 8px;
  border-radius: 20px;
  background: rgba(255,255,255,.6);
  box-shadow: inset 0 0 0 1px rgba(42,36,33,.05), 0 6px 18px -14px rgba(42,36,33,.4);
  overflow: hidden;
  opacity: 0; transform: translateY(16px) scale(.98);
  transition: box-shadow .35s var(--ease), background .35s;
}
.ev.in { animation: rise .6s var(--ease) both; animation-delay: calc(var(--d, 0) * 1ms); }
.ev.is-hit { box-shadow: inset 0 0 0 1.5px var(--orange), 0 12px 26px -14px rgba(242,107,44,.55); }
.ev.is-hit.in { animation: rise .6s var(--ease) both, hit 1.1s var(--ease) .1s; }
.ev-main {
  width: 100%; text-align: left;
  display: grid; grid-template-columns: 4px 1fr 22px; gap: 14px; align-items: center;
  padding: 14px 14px 14px 12px;
  position: relative; overflow: hidden;
}
.ev-bar { align-self: stretch; border-radius: 4px; background: var(--ink); opacity: .85; }
.ev.is-now .ev-bar { background: var(--orange); opacity: 1; }
.ev h3 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
.ev-meta { margin: 5px 0 0; font-size: 11px; color: var(--muted); letter-spacing: .02em; line-height: 1.5; }
.ev-meta .dotsep { opacity: .4; margin: 0 4px; }
.ev .chips { margin-top: 9px; }
.ev-chev { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(42,36,33,.05); transition: transform .45s var(--spring), background .3s, color .3s; }
.ev.is-open .ev-chev { transform: rotate(180deg); background: var(--ink); color: #fff; }
.ev-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.ev.is-open .ev-more { grid-template-rows: 1fr; }
.ev-more-in { overflow: hidden; }
.ev-more-body { padding: 0 16px 16px 30px; }
.ev.is-open .ev-more-body > * { animation: fade-up .5s var(--ease) both; }
.ev.is-open .ev-more-body > *:nth-child(2) { animation-delay: 60ms; }
.ev.is-open .ev-more-body > *:nth-child(3) { animation-delay: 120ms; }
.ev.is-open .ev-more-body > *:nth-child(4) { animation-delay: 180ms; }
.ev-sum { margin: 0 0 14px; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }
.ev-rows { display: grid; gap: 8px; margin-bottom: 14px; }
.ev-row { display: grid; grid-template-columns: 70px 1fr; font-size: 12.5px; }
.ev-row span:first-child { font-family: var(--mono); font-size: 10.5px; color: var(--muted); letter-spacing: .04em; padding-top: 1px; }
.ev-wave { display: flex; align-items: center; gap: 3px; height: 26px; margin-bottom: 14px; }
.ev-wave i { flex: 1; max-width: 3px; border-radius: 2px; background: rgba(42,36,33,.12); height: 30%; }
.ev-wave i.on { background: var(--orange); }
.ev.is-open .ev-wave i { animation: wave .6s var(--spring) both; animation-delay: calc(var(--w) * 14ms + 150ms); }
.ev-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-family: var(--mono); font-size: 10px; letter-spacing: .05em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 10px;
  color: var(--ink-2); background: rgba(42,36,33,.05);
}
.pill-btn {
  height: 38px; padding: 0 16px; border-radius: 19px;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; text-decoration: none; color: var(--ink);
  background: rgba(255,255,255,.85);
  box-shadow: inset 0 0 0 1px rgba(42,36,33,.07), 0 4px 12px -8px rgba(42,36,33,.4);
  position: relative; overflow: hidden;
  transition: transform .25s var(--spring);
}
.pill-btn:active { transform: scale(.94); }
.pill-btn.dark { background: var(--ink); color: #fff; }
.pill-btn .rec { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--orange); display: grid; place-items: center; }
.pill-btn .rec::after { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--orange); }

.empty { text-align: center; padding: 50px 20px 30px; color: var(--muted); animation: fade-up .6s var(--ease) both; }
.empty .e-dot { width: 46px; height: 46px; margin: 0 auto 16px; border-radius: 30%; background: var(--cell); position: relative; }
.empty .e-dot::after { content: ''; position: absolute; inset: 0; margin: auto; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); animation: breathe 2s ease-in-out infinite; }
.empty b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }
.empty p { margin: 0; font-size: 13px; }

/* ---------- Overlay, painel de filtros e drawer ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(30, 25, 22, .28);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none; transition: opacity .35s var(--ease);
}
.overlay.is-on { opacity: 1; pointer-events: auto; }

.panel {
  position: fixed; left: 8px; right: 8px; bottom: 8px; z-index: 50;
  max-width: 520px; margin: 0 auto;
  max-height: 82dvh; overflow-y: auto;
  padding: 10px 20px calc(18px + var(--safe-b));
  border-radius: 30px;
  background: rgba(247,244,240,.96);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 30px 60px -20px rgba(42,36,33,.45), inset 0 1px 0 #fff;
  transform: translateY(110%); transition: transform .55s var(--ease);
}
.panel.is-open { transform: none; }
.panel-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 18px; }
.panel-head h3 { margin: 3px 0 0; font-size: 20px; letter-spacing: -.02em; }
.panel-sec { margin-bottom: 20px; }
.panel-sec-title { font-size: 10.5px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.fchip {
  height: 34px; padding: 0 14px; border-radius: 17px;
  font-size: 13px; font-weight: 500;
  background: rgba(255,255,255,.8);
  box-shadow: inset 0 0 0 1px rgba(42,36,33,.08);
  display: inline-flex; align-items: center; gap: 7px;
  position: relative; overflow: hidden;
  transition: background .3s var(--ease), color .3s, transform .3s var(--spring), box-shadow .3s;
}
.panel.is-open .fchip { animation: pop .45s var(--spring) both; animation-delay: calc(var(--i) * 25ms + 120ms); }
.fchip small { font-family: var(--mono); font-size: 10px; opacity: .5; }
.fchip:active { transform: scale(.92); }
.fchip.is-on { background: var(--ink); color: #fff; box-shadow: 0 6px 14px -8px rgba(31,26,23,.8); }
.fchip.is-on::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.panel-foot { display: flex; gap: 10px; position: sticky; bottom: 0; padding-top: 8px; }
.ghost-btn, .primary-btn { height: 48px; border-radius: 24px; font-weight: 600; font-size: 14px; position: relative; overflow: hidden; transition: transform .25s var(--spring); }
.ghost-btn { padding: 0 22px; background: rgba(42,36,33,.06); }
.primary-btn { flex: 1; background: var(--orange); color: #fff; box-shadow: 0 10px 22px -10px rgba(242,107,44,.9); }
.primary-btn b { display: inline-block; }
.ghost-btn:active, .primary-btn:active { transform: scale(.96); }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 50;
  width: min(84vw, 340px);
  padding: 22px 22px calc(22px + var(--safe-b));
  display: flex; flex-direction: column;
  background: rgba(247,244,240,.97);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-radius: 30px 0 0 30px;
  box-shadow: -30px 0 60px -30px rgba(42,36,33,.5);
  transform: translateX(105%); transition: transform .55s var(--ease);
}
.drawer.is-open { transform: none; }
.drawer-head { padding: 4px 0 28px; }
.drawer-nav { display: grid; gap: 4px; }
.dn {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 12px; border-radius: 18px; text-align: left;
  font-size: 19px; font-weight: 600; letter-spacing: -.02em;
  position: relative; overflow: hidden;
  transition: background .25s, transform .3s var(--spring);
  opacity: 0; transform: translateX(30px);
}
.drawer.is-open .dn { animation: slide-in .55s var(--ease) both; animation-delay: calc(var(--i) * 60ms + 150ms); }
.dn:hover { background: rgba(42,36,33,.05); }
.dn-i { font-family: var(--mono); font-size: 11px; font-weight: 400; color: var(--orange); }
.drawer-foot { margin-top: auto; font-size: 11px; color: var(--muted); line-height: 1.6; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(22px + var(--safe-b)); z-index: 60;
  transform: translate(-50%, 140%); opacity: 0;
  padding: 11px 18px; border-radius: 22px;
  background: var(--ink); color: #fff; font-size: 13px; white-space: nowrap;
  box-shadow: 0 14px 30px -12px rgba(31,26,23,.7);
  transition: transform .5s var(--spring), opacity .3s;
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }
.toast b { color: var(--orange-2); font-weight: 600; }

/* ---------- Ripple ---------- */
.rp-wave {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: currentColor; opacity: .16;
  transform: scale(0); animation: ripple .6s var(--ease) forwards;
}

/* ---------- Animações ---------- */
@keyframes drop { from { opacity: 0; transform: translateY(-14px); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } }
@keyframes pop { from { opacity: 0; transform: scale(.4); } }
@keyframes cell-in { from { opacity: 0; transform: scale(.55) translateY(8px); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes sheet-in { from { opacity: 0; transform: translateY(60px); } }
@keyframes slide-in { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
@keyframes swap-up { from { opacity: 0; transform: translateY(100%); } }
@keyframes swap-down { from { opacity: 0; transform: translateY(-100%); } }
@keyframes breathe { 50% { transform: scale(.88); box-shadow: 0 2px 8px -2px rgba(242,107,44,.5); } }
@keyframes ring { 0% { opacity: .9; transform: scale(.92); } 70%, 100% { opacity: 0; transform: scale(1.18); } }
@keyframes ripple { to { transform: scale(2.6); opacity: 0; } }
@keyframes hit { 0%, 100% { background: rgba(255,255,255,.6); } 30% { background: rgba(242,107,44,.14); } }
@keyframes wave { from { transform: scaleY(.1); opacity: 0; } }
@keyframes bump { 40% { transform: scale(1.35); } }
.bump { animation: bump .45s var(--spring); }

/* ---------- Tablet / desktop ---------- */
@media (min-width: 960px) {
  :root { --gutter: 28px; --rail: 48px; --gap: 8px; }
  .app {
    max-width: 1180px;
    display: grid;
    grid-template-columns: minmax(440px, 500px) 1fr;
    grid-template-rows: auto 1fr;
    column-gap: 24px;
    padding: 0 24px 24px;
  }
  .topbar { grid-column: 1 / -1; padding: 22px 4px 18px; }
  .cal-section { padding: 0; align-self: start; }
  .rm { width: 44px; height: 44px; font-size: 10.5px; }
  .day { font-size: 15px; }
  .sheet { margin: 0; border-radius: 30px; min-height: 0; height: 100%; padding-bottom: 24px; }
  .sheet-head { padding: 18px 26px 14px; }
  .sheet-head .handle { display: none; }
  .list { padding: 0 18px; }
  .panel { bottom: auto; top: 50%; transform: translateY(-40%) scale(.94); opacity: 0; pointer-events: none; transition: transform .5s var(--spring), opacity .3s; }
  .panel.is-open { transform: translateY(-50%); opacity: 1; pointer-events: auto; }
  .panel .handle { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
  .ev { opacity: 1; transform: none; }
}

/* =========================================================
   FLAT — sem sombras, sem degradês (fiel à referência)
   ========================================================= */
:root {
  --bg: #e7e4e0;
  --flat-cell: #dcd9d5;
  --flat-soft: #edebe8;
  --flat-pill: #d7d4d0;
  --flat-line: rgba(42, 36, 33, .10);
}
*, *::before, *::after { box-shadow: none !important; text-shadow: none !important; }
body { background: var(--bg); }

.brand-dot { background: var(--orange); animation: none; }
.icon-btn, .round-btn, .year-btn, .transport, .tr-count:hover { background: var(--flat-soft); }
.icon-btn, .round-btn { border: 1px solid var(--flat-line); }
.year-btn[aria-expanded="true"] { background: var(--ink); }

.wd { background: var(--flat-pill); }
.wd.is-active { background: var(--orange); transform: none; }

.rm { background: var(--flat-soft); border: 1px solid var(--flat-line); }
.rm.is-active { background: var(--orange); border-color: var(--orange); transform: none; }

.day { background: var(--flat-cell); color: rgba(42,36,33,.28); }
.day.has-ev { background: var(--ink); color: #fff; }
.day.is-today { background: var(--orange); color: #fff; }
.day.is-today::before { display: none; }
.day.is-selected { outline: 4px solid var(--orange); outline-offset: 0px; }

.transport { border: 1px solid var(--flat-line); }
.sheet { background: var(--flat-soft); backdrop-filter: none; -webkit-backdrop-filter: none; border: 0; scrollbar-width: none; }
.sheet::-webkit-scrollbar { display: none; }
.ev { background: #fff; border: 1px solid var(--flat-line); }
.ev.is-hit { border-color: var(--orange); }
@keyframes hit { 0%, 100% { background: #fff; } 30% { background: #fdeee6; } }
.chip { background: var(--flat-soft); }
.ev-chev { background: var(--flat-soft); }
.pill-btn { background: var(--flat-soft); border: 1px solid var(--flat-line); }
.pill-btn.dark { background: var(--ink); border-color: var(--ink); }

.year-pop, .panel, .drawer { background: #f3f1ee; backdrop-filter: none; -webkit-backdrop-filter: none; border: 1px solid var(--flat-line); }
.overlay { background: rgba(42, 36, 33, .25); backdrop-filter: none; -webkit-backdrop-filter: none; }
.fchip { background: #fff; border: 1px solid var(--flat-line); }
.fchip.is-on { background: var(--ink); border-color: var(--ink); }
.ghost-btn { background: var(--flat-cell); }
.empty .e-dot { background: var(--flat-cell); }
.rail-year::before, .rail-year::after { background: var(--flat-line); }

/* ---------- Lista completa: blocos por mês + infinite scroll ---------- */

.month-block + .month-block { margin-top: 18px; }
.month-sep {
  position: sticky; top: 0; z-index: 4;
  display: flex; align-items: baseline; gap: 8px;
  margin: 0 calc(-1 * var(--list-pad)); padding: 16px calc(var(--list-pad) + 8px) 12px;
  background: var(--flat-soft);
  border-bottom: 1px solid var(--flat-line);
}
.ms-m { font-size: 22px; font-weight: 700; letter-spacing: -.03em; }
.ms-y { font-size: 22px; font-weight: 600; letter-spacing: -.03em; color: var(--orange); }
.month-sep small { margin-left: auto; font-size: 10.5px; color: var(--muted); letter-spacing: .04em; }
.list { --list-pad: 12px; padding: 0 var(--list-pad); }
@media (min-width: 960px) { .list { --list-pad: 18px; } }

.list-more {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 28px 0 18px; color: var(--muted);
}
.lm-txt { font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; }
.lm-dots { display: flex; gap: 5px; height: 8px; }
.lm-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--flat-cell); }
.list-more.is-loading .lm-dots i { animation: lm 0.8s var(--ease) infinite; background: var(--orange); }
.list-more.is-loading .lm-dots i:nth-child(2) { animation-delay: .12s; }
.list-more.is-loading .lm-dots i:nth-child(3) { animation-delay: .24s; }
.list-more.is-done .lm-dots i { background: var(--orange); width: 18px; border-radius: 4px; height: 3px; margin-top: 2px; }
.list-more.is-done .lm-dots i:nth-child(n+2) { display: none; }
@keyframes lm { 0%, 100% { transform: translateY(0); opacity: .4; } 40% { transform: translateY(-5px); opacity: 1; } }

/* ---------- Hover: evento <-> dia no calendário ---------- */
.ev.is-hover { border-color: var(--orange); }
.ev.is-hover .ev-bar { background: var(--orange); }
.day.is-hover { outline: 2px solid var(--orange); outline-offset: 0px; }

/* ---------- Sem trilho, título e barra: calendário em coluna única ---------- */
.cal-body { grid-template-columns: 1fr; grid-template-areas: "wd" "months"; row-gap: 10px; }
.year-wrap { justify-self: start; place-items: start; }
.cal-section { padding-bottom: 14px; padding-top: 4px; }

/* seta do cabeçalho do mês apontando para o calendário (acima no mobile, à esquerda no desktop) */
.ms-arrow {
  align-self: center; flex: none;
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--orange); color: #fff;
  position: relative; overflow: hidden;
  transition: transform .3s var(--spring);
}
.ms-arrow svg { animation: nudge-up 1.8s var(--ease) infinite; }
.ms-arrow:active { transform: scale(.88); }
@keyframes nudge-up { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-3px); } }
@keyframes nudge-left { 0%, 60%, 100% { transform: rotate(-90deg) translateY(0); } 30% { transform: rotate(-90deg) translateY(-3px); } }
@media (min-width: 960px) {
  .ms-arrow svg { transform: rotate(-90deg); animation-name: nudge-left; }
}

/* cabeçalho do mês ativo (no topo da lista) em laranja */
.month-sep { transition: background-color .45s var(--ease), border-color .45s var(--ease), color .45s var(--ease); }
.month-sep .ms-y, .month-sep small, .ms-arrow { transition: color .45s var(--ease), background-color .45s var(--ease); }
.month-sep.is-current { background: var(--orange); border-bottom-color: var(--orange); color: #fff; }
.month-sep.is-current .ms-y { color: #fff; opacity: .75; }
.month-sep.is-current small { color: rgba(255,255,255,.85); }
.month-sep.is-current .ms-arrow { background: #fff; color: var(--orange); }
.month-sep.is-current .ms-m { animation: fade-up .45s var(--ease) both; }

/* respiro para contorno/escala dos dias não serem cortados nas laterais */
.weekdays { padding: 0 6px; }
.month-page { padding: 6px; }

/* ---------- Navegação discreta: [‹] [MÊS] [ANO] [›] ---------- */
.cal-nav {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 10px;
  animation: fade-up .6s .25s var(--ease) both;
}
.cn-btn {
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink-2);
  border: 1px solid var(--flat-line);
  position: relative; overflow: hidden;
  transition: transform .25s var(--spring), background-color .2s, opacity .2s;
}
.cn-btn:hover { background: var(--flat-soft); }
.cn-btn:active { transform: scale(.88); }
.cn-btn[disabled] { opacity: .3; pointer-events: none; }
.cn-sel {
  -webkit-appearance: none; appearance: none;
  height: 32px; padding: 0 28px 0 14px; border-radius: 16px;
  font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2);
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%239d958f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 11px center;
  border: 1px solid var(--flat-line);
  cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.cn-sel:hover { background-color: var(--flat-soft); }
.cn-sel:focus-visible { outline: 2px solid var(--orange); outline-offset: 1px; }

/* =========================================================
   MOBILE — scroll único: calendário + lista rolam juntos
   ========================================================= */
.hcal { display: none; }
@media (max-width: 959px) {
  html, body { height: auto; }
  body { overflow-x: hidden; overflow-y: auto; }
  .app { height: auto; min-height: 100dvh; display: block; }

  /* calendário fixo no mês (sem scroll próprio); selects acima */
  .cal-section { display: flex; flex-direction: column; }
  .cal-section > .cal-nav { order: -1; margin: 4px 0 12px; }
  .months { overflow: hidden; scroll-snap-type: none; touch-action: pan-y; }

  /* lista faz parte da página */
  .sheet { flex: none; overflow: clip; min-height: 60vh; }
  .month-sep { top: var(--hcal-h, 0px); }

  /* calendário horizontal fixo no topo */
  .hcal {
    display: block;
    position: fixed; top: 0; left: 0; right: 0; z-index: 30;
    max-width: 560px; margin: 0 auto;
    padding: calc(10px + env(safe-area-inset-top, 0px)) 0 6px;
    background: var(--bg);
    border-bottom: 1px solid var(--flat-line);
    transform: translateY(-105%);
    transition: transform .45s var(--ease);
  }
  .hcal.is-on { transform: none; }
  .hc-nav { margin: 0 0 8px; animation: none; }
  .hc-strip {
    position: relative;
    display: flex; gap: 6px;
    overflow-x: auto; overscroll-behavior-x: contain;
    padding: 2px 16px 8px;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }
  .hc-strip::-webkit-scrollbar { display: none; }
  .hc-day {
    flex: none; width: 42px;
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    scroll-snap-align: center;
  }
  .hc-day[disabled] { cursor: default; }
  .hc-day .day { width: 42px; font-size: 13px; }
  .hc-wd { font-size: 9px; letter-spacing: .06em; color: var(--muted); transition: color .3s; }
  .hc-day.is-selected .hc-wd { color: var(--orange); }
  .hcal.is-on .hc-day { animation: cell-in .5s var(--spring) both; animation-delay: calc(var(--i) * 10ms); }
  .hc-day:not([disabled]):active .day { transform: scale(.88); }
}

/* mobile: menu fixo no topo, calendário horizontal fixo logo abaixo; scroll da página também sobre o calendário */
@media (max-width: 959px) {
  .months { overscroll-behavior: auto; }
  .topbar { position: sticky; top: 0; z-index: 35; background: var(--bg); padding-top: calc(14px + env(safe-area-inset-top, 0px)); padding-bottom: 10px; }
  .hcal { top: var(--topbar-h, 60px); padding-top: 4px; opacity: 0; transition: transform .45s var(--ease), opacity .3s; }
  .hcal.is-on { opacity: 1; }
}

/* ---------- Tags do calendário horizontal: [NOV.2026] [LOCALIZAÇÃO] [CATEGORIA] ---------- */
.hc-nav { gap: 5px; padding: 0 12px; }
.hc-tag {
  height: 32px; padding: 0 11px; border-radius: 16px;
  max-width: 118px; flex: 0 1 auto; min-width: 0;
  font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2);
  border: 1px solid var(--flat-line);
  position: relative; overflow: hidden;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--spring);
}
.hc-tag span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hc-tag[data-pick="month"] { color: var(--ink); font-weight: 500; }
.hc-tag:active { transform: scale(.92); }
.hc-tag.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Modal de seleção: cobre tudo, exceto o menu ---------- */
body.is-locked { overflow: hidden; }
.pick {
  position: fixed; left: 0; right: 0; bottom: 0; top: var(--topbar-h, 64px); z-index: 34;
  display: flex; flex-direction: column;
  background: var(--bg);
  opacity: 0; transform: translateY(24px); pointer-events: none;
  transition: opacity .3s var(--ease), transform .45s var(--ease);
}
.pick.is-open { opacity: 1; transform: none; pointer-events: auto; }
.pick-head {
  flex: none; display: flex; align-items: center; gap: 12px;
  width: 100%; max-width: 560px; margin: 0 auto;
  padding: 8px 16px 14px;
  border-bottom: 1px solid var(--flat-line);
}
.pick-titles { flex: 1; min-width: 0; }
.pick-label { font-size: 10.5px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.pick-head h3 { margin: 2px 0 0; font-size: 24px; font-weight: 700; letter-spacing: -.03em; }
.pick-body {
  flex: 1; overflow-y: auto; overscroll-behavior: contain;
  width: 100%; max-width: 560px; margin: 0 auto;
  padding: 6px 16px calc(24px + env(safe-area-inset-bottom, 0px));
}
.pick-group { font-size: 10.5px; color: var(--orange); letter-spacing: .1em; padding: 18px 4px 6px; }
.pick-item {
  width: 100%; text-align: left;
  display: flex; align-items: baseline; gap: 10px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--flat-line);
  position: relative; overflow: hidden;
  transition: color .2s, padding-left .3s var(--ease);
}
.pick.is-open .pick-item { animation: fade-up .45s var(--ease) both; animation-delay: calc(var(--i) * 25ms); }
.pi-main { font-size: 22px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.pi-main em { font-style: normal; font-weight: 600; color: var(--muted); }
.pi-meta { margin-left: auto; flex: none; font-size: 10.5px; color: var(--muted); letter-spacing: .04em; }
.pick-item:hover { padding-left: 10px; }
.pick-item.is-on .pi-main, .pick-item.is-on .pi-main em { color: var(--orange); }
.pick-item.is-on::before { content: ''; position: absolute; left: -16px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--orange); }
.cn-btn[hidden] { display: none; }
.pick-item.is-zero { opacity: .38; }
@media (max-width: 959px) {
  .sheet { min-height: calc(100dvh - var(--hcal-h, 0px)); }
}

/* mobile: barra de tags sempre fixa abaixo do menu; a faixa de dias abre ao passar do calendário */
@media (max-width: 959px) {
  .hcal { transform: none; opacity: 1; padding-top: 6px; padding-bottom: 8px; }
  .hc-nav { margin: 0; }
  .hc-tag { max-width: 140px; }
  .hc-strip { height: 0; padding-top: 0; padding-bottom: 0; overflow-y: hidden; transition: height .4s var(--ease), padding .4s var(--ease); }
  .hcal.is-on .hc-strip { height: 76px; padding-top: 10px; padding-bottom: 6px; }
  .cal-section { padding-top: calc(var(--hcnav-h, 48px) + 14px); }
}

/* desktop: barra de tags acima do calendário (coluna esquerda) */
@media (min-width: 960px) {
  .app { grid-template-rows: auto auto 1fr; }
  .hcal {
    display: block; position: static;
    grid-column: 1; grid-row: 2;
    padding: 0 0 16px; background: none; border: 0;
    animation: fade-up .6s .2s var(--ease) both;
  }
  .hc-strip { display: none; }
  .hc-nav { justify-content: flex-start; padding: 0; gap: 8px; }
  .hc-tag { height: 36px; padding: 0 16px; border-radius: 18px; max-width: 200px; font-size: 11px; }
  .hc-tag:hover:not(.is-on) { background: var(--flat-soft); }
  .cal-section { grid-column: 1; grid-row: 3; }
  .sheet { grid-column: 2; grid-row: 2 / 4; }
}

/* tags alinhadas à esquerda */
.hc-nav { justify-content: flex-start; }
@media (max-width: 959px) { .hc-nav { padding: 0 16px; } }

/* "Todas as cidades": destaque laranja para induzir o clique */
.pick-item.is-all {
  margin: 12px 0 6px; padding: 16px 18px;
  border-radius: 18px; border-bottom: 0;
  background: var(--orange); color: #fff;
}
.pick-item.is-all .pi-main, .pick-item.is-all.is-on .pi-main { color: #fff; }
.pick-item.is-all .pi-meta { color: rgba(255,255,255,.85); }
.pick-item.is-all::before { display: none; }
.pick-item.is-all:hover { padding-left: 24px; }

/* ---------- Setas da faixa de dias ---------- */
.hc-strip-wrap { position: relative; }
@media (max-width: 959px) {
  .hc-strip { padding-left: 46px; padding-right: 46px; scroll-padding: 0 46px; }
  .hc-strip.is-auto { scroll-snap-type: none; }
  .hc-arrow {
    position: absolute; top: 48px; z-index: 2;
    width: 32px; height: 32px; margin-top: -16px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--bg); color: var(--ink);
    border: 1px solid var(--flat-line);
    opacity: 0; pointer-events: none;
    touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
    transition: opacity .3s var(--ease), transform .25s var(--spring), background-color .2s, color .2s;
  }
  .hc-arrow.is-left { left: 8px; }
  .hc-arrow.is-right { right: 8px; }
  .hcal.is-on .hc-arrow { opacity: 1; pointer-events: auto; }
  .hcal.is-on .hc-arrow[disabled] { opacity: .3; pointer-events: none; }
  .hc-arrow:active { transform: scale(.88); background: var(--ink); color: #fff; }
}
@media (min-width: 960px) { .hc-arrow { display: none; } }

/* tag do mês sempre marcada (há sempre uma data); localização/categoria só com seleção */
.hc-tag[data-pick="month"], .hc-tag.is-on {
  background: var(--orange); border-color: var(--orange); color: #fff;
}
.hc-tag[data-pick="month"]:hover, .hc-tag.is-on:hover { background: var(--orange); }

/* setas isoladas nos cantos da faixa, separadas por linhas (não ficam sobre as datas) */
@media (max-width: 959px) {
  .hc-strip-wrap {
    display: flex; align-items: stretch;
    height: 0; overflow: hidden;
    transition: height .4s var(--ease);
  }
  .hcal.is-on .hc-strip-wrap { height: 76px; }
  .hc-strip, .hcal.is-on .hc-strip {
    flex: 1; min-width: 0; height: auto;
    padding: 10px 8px 6px; scroll-padding: 0 8px;
    transition: none;
  }
  .hc-arrow, .hcal.is-on .hc-arrow {
    position: static; flex: none;
    width: 44px; height: auto; margin: 0;
    border: 0; border-radius: 0; background: none;
    display: grid; place-items: center;
    padding: 27px 0 6px; /* centraliza na linha dos quadrados de dia */
    opacity: 1; pointer-events: auto;
    color: var(--ink);
  }
  .hcal .hc-arrow.is-left { border-right: 1px solid rgba(42,36,33,.18); }
  .hcal .hc-arrow.is-right { border-left: 1px solid rgba(42,36,33,.18); }
  .hc-arrow svg { width: 16px; height: 16px; transition: transform .25s var(--spring); }
  .hc-arrow:active { transform: none; background: none; color: var(--orange); }
  .hc-arrow:active svg { transform: scale(.8); }
  .hcal.is-on .hc-arrow[disabled] { opacity: .25; pointer-events: none; }
}

/* hoje: só borda laranja simples, sem fundo */
.day.is-today, .day.is-today.has-ev {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--orange);
}
/* dias da semana sem destaque de cor */
.hc-day.is-selected .hc-wd { color: var(--muted); }

/* todos os itens do modal iguais; "Todas/Todos" diferenciado só pelo negrito */
.pick-item .pi-main { font-weight: 500; }
.pick-item.is-all {
  margin: 0; padding: 14px 4px; border-radius: 0;
  border-bottom: 1px solid var(--flat-line);
  background: none; color: inherit;
}
.pick-item.is-all:hover { padding-left: 10px; }
.pick-item.is-all .pi-main { font-weight: 800; color: var(--ink); }
.pick-item.is-all .pi-meta { color: var(--muted); }
.pick-item.is-all.is-on .pi-main { color: var(--orange); }
.pick-item.is-all::before { display: block; }
.pick-item.is-all:not(.is-on)::before { display: none; }

/* =========================================================
   MODAL — hierarquia clara: cabeçalho (título) x opções (cartões clicáveis)
   ========================================================= */
.pick .pick-head {
  display: grid; grid-template-columns: 1fr auto; align-items: start; column-gap: 12px;
  padding: 14px 16px 16px;
}
.pick-back {
  grid-column: 1; grid-row: 1; justify-self: start;
  display: inline-flex; align-items: center; gap: 4px;
  height: 30px; padding: 0 12px 0 8px; margin-bottom: 12px; border-radius: 15px;
  font-size: 12.5px; font-weight: 600; color: var(--ink);
  background: #fff; border: 1px solid var(--flat-line);
  position: relative; overflow: hidden;
  transition: transform .25s var(--spring);
}
.pick-back[hidden] { display: none; }
.pick-back:active { transform: scale(.94); }
.pick .pick-titles { grid-column: 1; grid-row: 2; }
.pick #pickClose { grid-column: 2; grid-row: 1 / 3; }
.pick .pick-label { font-size: 10.5px; letter-spacing: .08em; }
.pick .pick-head h3 { font-size: 22px; font-weight: 700; letter-spacing: -.025em; margin-top: 4px; }

/* dica que separa título e opções */
.pick-hint {
  font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  padding: 18px 4px 8px;
}
.pick .pick-group { display: none; }

/* opções: cartões brancos com área de toque clara */
.pick .pick-body { padding-top: 12px; }
.pick .pick-item,
.pick .pick-item.is-all {
  display: flex; align-items: center; gap: 12px;
  width: 100%; min-height: 56px;
  margin: 0 0 8px; padding: 12px 14px 12px 16px;
  background: #fff; color: var(--ink);
  border: 1px solid var(--flat-line); border-radius: 16px;
  text-align: left; cursor: pointer;
  transition: border-color .2s, transform .2s var(--spring), background-color .2s;
}
.pick .pick-item:hover, .pick .pick-item.is-all:hover { padding-left: 16px; border-color: rgba(42,36,33,.22); }
.pick .pick-item:active { transform: scale(.98); }
.pick .pick-item::before, .pick .pick-item.is-all::before { display: none; }
.pick .pi-main, .pick .pick-item.is-all .pi-main {
  flex: 1; min-width: 0;
  font-size: 16px; font-weight: 500; letter-spacing: -.01em; line-height: 1.25;
  color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pick .pick-item.is-all .pi-main { font-weight: 700; }
.pick .pi-meta, .pick .pick-item.is-all .pi-meta {
  margin-left: 0; flex: none;
  font-size: 10.5px; color: var(--ink-2);
  background: var(--flat-soft); padding: 4px 8px; border-radius: 10px;
}
/* fim do cartão: seta (próximo passo) ou rádio (seleção) */
.pi-end { flex: none; display: grid; place-items: center; width: 22px; height: 22px; color: var(--muted); }
.pi-end.is-radio i {
  width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid rgba(42,36,33,.25);
  display: grid; place-items: center;
  transition: border-color .2s;
}
.pi-end.is-radio i::after {
  content: ''; width: 10px; height: 10px; border-radius: 50%;
  background: var(--orange); transform: scale(0); transition: transform .3s var(--spring);
}
/* selecionado */
.pick .pick-item.is-on, .pick .pick-item.is-all.is-on { border-color: var(--orange); box-shadow: inset 0 0 0 1px var(--orange) !important; }
.pick .pick-item.is-on .pi-main { color: var(--ink); }
.pick .pick-item.is-on .pi-end.is-radio i { border-color: var(--orange); }
.pick .pick-item.is-on .pi-end.is-radio i::after { transform: scale(1); }
.pick .pick-item.is-on .pi-end.is-next { color: var(--orange); }
.pick .pick-item.is-zero { opacity: .45; }

/* barra de tags separada por linhas (mesma identidade das divisórias das setas) */
.hcal .hc-nav {
  border-top: 1px solid rgba(42,36,33,.18);
  border-bottom: 1px solid rgba(42,36,33,.18);
  padding-top: 8px; padding-bottom: 8px;
}
@media (max-width: 959px) {
  .hcal { padding-top: 0; padding-bottom: 0; }
}
/* seta no limite: mais fraca */
.hcal.is-on .hc-arrow[disabled], .hc-arrow[disabled] { opacity: .2; color: var(--muted); pointer-events: none; }
@media (max-width: 959px) {
  .hcal { border-bottom: 0; }
  .hcal.is-on .hc-strip-wrap { border-bottom: 1px solid rgba(42,36,33,.18); }
}

/* modal de mês: seções por ano com cabeçalho fixo (sempre se sabe o ano no scroll) */
.pick .pick-body { padding-top: 0; }
.pick-year-sec { padding-bottom: 8px; }
.pick-year {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: baseline; gap: 10px;
  margin: 0 -16px 10px; padding: 16px 20px 10px;
  background: var(--bg);
  border-bottom: 1px solid rgba(42,36,33,.18);
}
.pick-year b { font-size: 22px; font-weight: 700; letter-spacing: -.03em; color: var(--orange); }
.pick-year span { font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pick .pick-item[data-month] .pi-main { font-family: var(--mono); font-size: 15px; font-weight: 500; letter-spacing: .04em; }
.pick .pick-item[data-month] .pi-main em { font-style: normal; color: var(--muted); }
.pick .pick-item[data-month].is-on .pi-main em { color: var(--orange); }

/* dias da semana do calendário */
.wd {
  font-size: 12px;
  color: #222;
  background: #fff;
}

/* tags com setinha simulando um <select> */
.hc-tag {
  font-size: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  padding-right: 10px;
}
.hc-tag span { min-width: 0; }
.hc-tag::after {
  content: ''; flex: none;
  width: 10px; height: 10px;
  background: currentColor; opacity: .75;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .3s var(--spring);
}
.hc-tag:active::after { transform: translateY(2px); }
.hc-tag { flex: none; max-width: none; letter-spacing: .02em; padding-left: 11px; padding-right: 9px; gap: 5px; }
.hc-tag span { overflow: visible; text-overflow: clip; }
.hc-nav { overflow-x: auto; scrollbar-width: none; }
.hc-nav::-webkit-scrollbar { display: none; }

/* sem rodapé "Fim da agenda" */
.list-more.is-done { display: none; }

/* desktop: barra de tags com mais destaque; mês/ano em evidência */
@media (min-width: 960px) {
  .hcal .hc-nav { gap: 10px; padding-top: 14px; padding-bottom: 14px; align-items: center; }
  .hc-tag {
    height: 44px; padding: 0 16px 0 18px; border-radius: 22px; gap: 8px;
    font-size: 13px; letter-spacing: .04em; color: var(--ink);
    background: #fff; border-color: rgba(42,36,33,.14);
  }
  .hc-tag::after { width: 12px; height: 12px; }
  .hc-tag[data-pick="month"] {
    height: 56px; padding: 0 20px 0 24px; border-radius: 28px; gap: 12px;
    font-size: 24px; font-weight: 700; letter-spacing: .02em;
  }
  .hc-tag[data-pick="month"]::after { width: 16px; height: 16px; opacity: .9; }
  .hc-tag:hover:not(.is-on):not([data-pick="month"]) { background: #fff; border-color: rgba(42,36,33,.3); }
  .hc-tag[data-pick="month"]:hover, .hc-tag.is-on:hover { filter: brightness(1.05); }
}
/* desktop: todas as tags do mesmo tamanho */
@media (min-width: 960px) {
  .hc-tag[data-pick="month"] {
    height: 44px; padding: 0 16px 0 18px; border-radius: 22px; gap: 8px;
    font-size: 13px; font-weight: 400; letter-spacing: .04em;
  }
  .hc-tag[data-pick="month"]::after { width: 12px; height: 12px; }
}
/* desktop: tags com fonte de 16px */
@media (min-width: 960px) {
  .hc-tag, .hc-tag[data-pick="month"] { font-size: 16px; font-weight: 400; height: 46px; }
  .hc-tag::after, .hc-tag[data-pick="month"]::after { width: 13px; height: 13px; }
}

/* tag marcada (mês sempre; localização/categoria com seleção) em negrito */
.hc-tag[data-pick="month"], .hc-tag.is-on { font-weight: 700; }

/* cabeçalho do modal: seta de voltar ao lado do título (quando há passo anterior) */
.pick .pick-head { align-items: center; padding-top: 16px; }
.pick .pick-titles { grid-row: 1; display: flex; align-items: center; gap: 10px; min-width: 0; }
.pick #pickClose { grid-row: 1; }
.pick .pick-head h3 { margin: 0; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick .pick-back {
  flex: none; margin: 0;
  width: 40px; height: 40px; padding: 0; border-radius: 50%;
  display: grid; place-items: center;
}
.pick .pick-back[hidden] { display: none; }
.pick .pick-head h3 { white-space: normal; overflow: visible; line-height: 1.15; }

/* modal cobre a tela inteira, inclusive o menu do topo */
.pick { top: 0; z-index: 45; }
.pick .pick-head { padding-top: calc(16px + env(safe-area-inset-top, 0px)); }

/* calendário sem scroll próprio: o mês só muda pela tag de mês/ano */
.months { overflow: hidden; overscroll-behavior: auto; }

/* troca de mês: sem rolagem; dias entram numa onda diagonal (virada + foco) */
.month-page { transition: none; }
.month-page.enter .day {
  animation: day-flip .6s var(--ease) both;
  animation-delay: calc(var(--w, 0) * 32ms);
}
@keyframes day-flip {
  from { opacity: 0; transform: perspective(500px) rotateX(-75deg) translateY(-6px) scale(.9); filter: blur(4px); }
  60% { opacity: 1; filter: blur(0); }
  to { opacity: 1; transform: none; filter: none; }
}

/* desktop: coluna do calendário se ajusta à barra de tags (sem scroll lateral) */
@media (min-width: 960px) {
  .app {
    max-width: 1320px;
    grid-template-columns: minmax(440px, max-content) minmax(420px, 1fr);
  }
  .hcal .hc-nav { overflow: visible; flex-wrap: wrap; row-gap: 10px; }
}

/* lista vai até a base da página, sem arredondar embaixo */
.sheet { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
@media (min-width: 960px) {
  .app { padding-bottom: 0; }
  .sheet { border-radius: 30px 30px 0 0; }
}

/* tags: 12px em todas as telas; marcada (mês sempre, loc/cat com seleção) em 900 */
.hc-tag, .hc-tag[data-pick="month"] { font-size: 12px; }
@media (min-width: 960px) {
  .hc-tag, .hc-tag[data-pick="month"] { font-size: 12px; height: 40px; }
  .hc-tag::after, .hc-tag[data-pick="month"]::after { width: 11px; height: 11px; }
}
.hc-tag[data-pick="month"], .hc-tag.is-on { font-weight: 900; }

/* busca do modal de categoria */
.pick-search {
  position: sticky; top: 0; z-index: 3;
  display: flex; align-items: center; gap: 10px;
  margin: 0 -16px 4px; padding: 14px 16px 12px;
  background: var(--bg);
  color: var(--muted);
}
.pick-search svg { position: absolute; left: 32px; pointer-events: none; }
.pick-search input {
  flex: 1; min-width: 0; height: 48px;
  padding: 0 16px 0 44px; border-radius: 16px;
  font: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1px solid rgba(42,36,33,.18);
  outline: none; -webkit-appearance: none; appearance: none;
  transition: border-color .2s;
}
.pick-search input::placeholder { color: var(--muted); }
.pick-search input:focus { border-color: var(--orange); }
.pick .pick-item[hidden], .pick-hint[hidden], .pick-empty[hidden] { display: none; }
.pick-empty { padding: 28px 4px; text-align: center; color: var(--muted); font-size: 14px; }

/* ---------- Cabeçalho do dia: "até" quando houver evento de vários dias ---------- */
.g-until { display: inline-flex; align-items: baseline; gap: 6px; font-size: 20px; font-weight: 700; letter-spacing: -.03em; color: var(--ink-2); margin-left: -4px; }
.g-until i { font-style: normal; font-family: var(--mono); font-size: 10.5px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.g-until em { font-style: normal; font-size: 15px; font-weight: 600; color: var(--muted); }
.group.is-hit .g-until { color: var(--orange); }
.g-tag { font-size: 12px; font-weight: 900; }

/* ---------- Card do evento ---------- */
.ev-info { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.ev-info h3 { margin-bottom: 3px; }
.ev-line { display: flex; align-items: flex-start; gap: 7px; font-size: 12.5px; color: var(--ink-2); line-height: 1.35; }
.ev-line svg { flex: none; margin-top: 2px; color: var(--muted); }
.ev-line.mono { font-size: 11.5px; letter-spacing: .02em; }
.ev-more-body { padding: 2px 16px 18px 30px; }
.ev-sum { margin: 0 0 16px; }
.ev-web { margin-bottom: 18px; }
.ev-block { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--flat-line); }
.ev-lbl { display: block; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.ev-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ev-actions .pill-btn, .ev-web { height: 36px; padding: 0 14px; font-size: 13px; gap: 7px; }
.ev.is-open .ev-more-body > * { animation: fade-up .45s var(--ease) both; }
.ev.is-open .ev-more-body > *:nth-child(2) { animation-delay: 50ms; }
.ev.is-open .ev-more-body > *:nth-child(3) { animation-delay: 100ms; }
.ev.is-open .ev-more-body > *:nth-child(4) { animation-delay: 150ms; }

/* faixa de dias (mobile): dia visível na lista */
.hc-day.is-peek .day { outline: 2px solid var(--orange); outline-offset: 0; }
.hc-day.is-peek.is-selected .day { outline-width: 4px; }

/* cabeçalho do mês clicável: abre a escolha de mês/ano */
.month-sep { cursor: pointer; user-select: none; -webkit-user-select: none; }
.month-sep .ms-y { display: inline-flex; align-items: center; }
.month-sep:active { opacity: .7; }

@media (max-width: 959px) {
  .hc-arrow, .hcal.is-on .hc-arrow {
    width: 30px;
    padding: 15px 0 6px;
  }
}

/* =========================================================
   EVENTO EM PÁGINA INTEIRA (o card se transforma no modal; menu do topo continua visível)
   ========================================================= */
.ev-main { cursor: pointer; }
.ev .ev-chev { transform: none !important; }

.evm-bg {
  position: fixed; left: 0; right: 0; bottom: 0; top: 0; z-index: 40;
  background: rgba(231, 228, 224, .94);
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease);
}
.evm-bg.is-on { opacity: 1; pointer-events: auto; }

.ev-ghost {
  position: fixed !important; z-index: 41; margin: 0 !important;
  opacity: 1 !important; transform: none !important; animation: none !important;
  pointer-events: none;
}

.evm {
  position: fixed; left: 0; right: 0; bottom: 0; top: 0; z-index: 42;
  display: none;
  overflow-y: auto; overscroll-behavior: contain;
  background: #fff;
}
.evm.is-open { display: block; }
.evm-in {
  max-width: 680px; margin: 0 auto;
  padding: 18px 20px calc(40px + env(safe-area-inset-bottom, 0px));
}
.evm.is-open .evm-in > * { animation: fade-up .5s var(--ease) both; }
.evm.is-open .evm-in > *:nth-child(2) { animation-delay: 120ms; }
.evm.is-open .evm-in > *:nth-child(3) { animation-delay: 170ms; }
.evm.is-open .evm-in > *:nth-child(4) { animation-delay: 220ms; }
.evm.is-open .evm-in > *:nth-child(5) { animation-delay: 270ms; }
.evm.is-open .evm-in > *:nth-child(6) { animation-delay: 320ms; }
.evm.is-open .evm-in > *:nth-child(7) { animation-delay: 370ms; }

.evm-head {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: -18px -20px 6px; padding: 14px 20px 10px;
  background: #fff;
}
.evm-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.evm-title { margin: 6px 0 14px; font-size: 28px; font-weight: 700; letter-spacing: -.03em; line-height: 1.15; }
.evm-lines { display: grid; gap: 8px; }
.evm-lines .ev-line { font-size: 14px; }
.evm-lines .ev-line.mono { font-size: 12.5px; }
.evm-lines .ev-line svg { width: 15px; height: 15px; }
.evm-sum { margin: 22px 0 6px; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.evm .ev-block { margin-top: 20px; padding-top: 18px; }
.evm .pill-btn { height: 42px; padding: 0 16px; font-size: 14px; gap: 8px; background: #fff; }

/* compartilhar: só ícones */
.icon-share {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink); background: #fff;
  border: 1px solid rgba(42,36,33,.14);
  position: relative; overflow: hidden;
  transition: border-color .2s, transform .25s var(--spring);
}
.icon-share svg { width: 18px; height: 18px; }
.icon-share:hover { border-color: rgba(42,36,33,.35); }
.icon-share:active { transform: scale(.9); }

/* website: sem destaque, mostra a URL */
.evm-url {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%;
  font-size: 14px; color: var(--ink-2); text-decoration: none;
  padding: 10px 0; position: relative; overflow: hidden;
}
.evm-url span { text-decoration: underline; text-decoration-color: rgba(42,36,33,.25); text-underline-offset: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.evm-url svg { flex: none; color: var(--muted); }
.evm-url:hover span { color: var(--ink); text-decoration-color: var(--ink); }

@media (min-width: 960px) {
  .evm-in { padding-top: 26px; }
  .evm-title { font-size: 36px; }
}

/* ---------- Cabeçalho do dia (group-head) ---------- */
.group-head { gap: 14px; padding: 14px 8px 10px; }
.g-range { display: inline-flex; align-items: center; gap: 8px; }
.g-range .g-date { font-size: 26px; }
.g-range .g-date em { font-size: 18px; }
.g-arrow { flex: none; color: var(--orange); }
.g-date em { font-size: 21px; }
.group-head .g-meta { padding-left: 14px; border-left: 1px solid var(--flat-line); gap: 3px; }
.group-head .g-meta b { font-size: 13px; font-weight: 600; letter-spacing: -.01em; }
.group-head .g-meta i { font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.group.is-hit .g-range .g-date, .group.is-hit .g-range .g-date em { color: var(--orange); }
@media (max-width: 380px) {
  .g-range .g-date { font-size: 23px; }
  .g-range .g-date em { font-size: 16px; }
  .group-head { gap: 10px; }
  .group-head .g-meta { padding-left: 10px; }
}
.group-head .g-meta { flex: none; }
.group-head .g-meta b, .group-head .g-meta i { white-space: nowrap; }

/* página principal travada com modal aberto */
html.is-locked, body.is-locked { overflow: hidden !important; overscroll-behavior: none; }
.evm-bg { touch-action: none; }
body.is-locked { overflow: visible !important; }
html.is-locked body { overflow: visible !important; }

/* card volta a abrir no lugar */
.ev.is-open .ev-chev { transform: rotate(180deg) !important; }
.ev-more-body .ev-block { margin-top: 16px; padding-top: 14px; }
.ev-more-body .pill-btn { height: 40px; padding: 0 15px; font-size: 13.5px; gap: 8px; background: #fff; }
.ev-more-body .ev-sum { margin: 4px 0 4px; font-size: 14px; }
.ev.is-open .ev-more-body > *:nth-child(5) { animation-delay: 200ms; }

/* tags do dia */
.g-tag { white-space: nowrap; flex: none; }
.g-tag.is-tomorrow { background: var(--ink); }
.g-tag.is-soon { background: transparent; color: var(--orange); box-shadow: inset 0 0 0 1.5px var(--orange) !important; }
.group-head { flex-wrap: wrap; row-gap: 8px; }
.group-head .g-tag { margin-left: auto; }

.ev-lbl { font-size: 12px; color: #444; }

/* website com o mesmo layout dos botões (pill-btn) + ícone */
.pill-btn.evm-url {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%;
  height: 40px; padding: 0 15px; border-radius: 20px;
  font-size: 13.5px; color: var(--ink); background: #fff; text-decoration: none;
}
.pill-btn.evm-url svg { color: var(--ink); }
.pill-btn.evm-url span { text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill-btn.evm-url:hover span { color: var(--ink); }
.ev-info .chips { margin-top: 6px; }

/* evento aberto: borda laranja de 3px (sem deslocar o conteúdo) */
.ev.is-open { border-color: transparent; box-shadow: inset 0 0 0 3px var(--orange) !important; }

/* card sem seta: conteúdo ocupa a largura */
.ev-main { grid-template-columns: 4px 1fr; }

/* lista: título e cidade-UF em destaque */
.ev .ev-info h3 { font-size: 17px; font-weight: 700; letter-spacing: -.02em; line-height: 1.22; margin-bottom: 4px; }
.ev .ev-city { font-size: 14px; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.ev .ev-city svg { color: var(--orange); width: 14px; height: 14px; margin-top: 2px; }
@media (min-width: 960px) {
  .ev .ev-info h3 { font-size: 18px; }
}

/* todos os cabeçalhos de mês em laranja */
.month-sep { background: var(--orange); border-bottom-color: var(--orange); color: #fff; }
.month-sep .ms-m { color: #fff; }
.month-sep .ms-y { color: #fff; opacity: .75; }
.month-sep small { color: rgba(255,255,255,.85); }
.month-sep small { font-size: 12px; }

/* =========================================================
   Card da lista: bloco de data (mês / dia / ano) + título + cidade·UF + categorias
   ========================================================= */
.ev-main { grid-template-columns: 64px 1fr; gap: 14px; align-items: start; padding: 14px; }
.ev-tile {
  width: 64px; border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column; align-items: center;
  background: #fff; border: 1px solid rgba(42,36,33,.12);
}
.et-m {
  align-self: stretch; text-align: center;
  padding: 4px 0 3px;
  background: var(--orange); color: #fff;
  font-family: var(--mono); font-size: 11px; font-weight: 800; letter-spacing: .28em; text-indent: .28em;
}
.et-d { font-size: 28px; font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--ink); padding-top: 7px; font-variant-numeric: tabular-nums; }
.et-y { font-family: var(--mono); font-size: 10.5px; font-weight: 800; color: var(--muted); padding: 4px 0 7px; letter-spacing: .04em; }
.ev.is-now .ev-tile { border-color: var(--orange); }
.ev-info { padding-top: 2px; }
.ev .ev-info h3 { margin-bottom: 2px; }
.ev .ev-city { color: var(--ink-2); font-weight: 500; }
.ev .ev-city svg { color: var(--orange); }
.ev-info .chips { margin-top: 8px; }
.ev-more-body { padding: 0 16px 18px 92px; }
.ev-when { display: grid; gap: 6px; margin: 2px 0 12px; }
@media (max-width: 380px) {
  .ev-more-body { padding-left: 16px; }
}

/* categorias numa linha própria, abaixo do bloco de data e do título */
.ev-main .ev-cats { grid-column: 1 / -1; margin-top: 0; }

/* blocos de calendário: um dia ou início → fim */
.ev-main { grid-template-columns: auto 1fr; }
.ev-tiles { display: flex; align-items: center; gap: 4px; }
.et-arrow { flex: none; color: var(--orange); }
.ev-tiles.is-range .ev-tile { width: 52px; border-radius: 12px; }
.ev-tiles.is-range .et-m { font-size: 10px; letter-spacing: .2em; text-indent: .2em; }
.ev-tiles.is-range .et-d { font-size: 22px; padding-top: 6px; }
.ev-tiles.is-range .et-y { font-size: 9.5px; padding: 3px 0 6px; }
.ev-more-body { padding-left: 16px; }

/* sem cabeçalho do dia: espaço entre os dias */
.group { padding-top: 0; }
.group + .group { margin-top: 2px; }
.month-block > .group:first-of-type { padding-top: 12px; }

/* ao lado dos calendários: só título e cidade; datas e local numa linha abaixo */
.ev-main .ev-extra { grid-column: 1 / -1; display: grid; gap: 5px; }
.ev-info { align-self: center; }
.ev-main .ev-extra:empty { display: none; }

/* coluna de datas: calendário(s) + tag do prazo (HOJE!, AMANHÃ!, FALTAM X DIAS) */
.ev-dates { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ev-dates .g-tag { margin: 0; font-size: 10.5px; padding: 3px 8px; }
.ev-dates { align-items: stretch; }
.ev-dates .ev-tiles { justify-content: center; }
.ev-dates .g-tag { width: 0; min-width: 100%; box-sizing: border-box; white-space: normal; text-align: center; line-height: 1.25; padding: 4px 4px; border-radius: 8px; }

/* tag de prazo: sempre fundo #222 e texto laranja */
.g-tag, .g-tag.is-tomorrow, .g-tag.is-soon {
  background: #222; color: #f26b2c; box-shadow: none !important;
}
.ev-tag-d:empty, .ev-tag-m:empty { display: none; }
.ev-tag-d .g-tag, .ev-tag-m .g-tag {
  display: inline-block; width: auto; min-width: 0; white-space: nowrap;
  font-size: 10.5px; padding: 4px 8px; border-radius: 8px; margin: 0;
}
/* desktop: acima do nome do evento */
.ev-tag-m { display: none; }
.ev-tag-d { display: block; margin-bottom: 6px; }
/* mobile: na linha de baixo, alinhada à esquerda */
@media (max-width: 959px) {
  .ev-tag-d { display: none; }
  .ev-tag-m { display: flex; justify-content: flex-start; }
}

.g-tag, .g-tag.is-tomorrow, .g-tag.is-soon {
  background: #222;
  color: #fff;
  box-shadow: none !important;
}

/* desktop: tag de prazo no canto superior direito do card */
@media (min-width: 960px) {
  .ev { position: relative; }
  .ev-tag-m { display: block; position: absolute; top: 14px; right: 14px; z-index: 1; }
  .ev .ev-info { padding-right: 96px; }
}

/* todos os calendários do card no tamanho menor (o mesmo do intervalo), mesmo com uma data */
.ev-tiles .ev-tile { width: 52px; border-radius: 12px; }
.ev-tiles .et-m { font-size: 10px; letter-spacing: .2em; text-indent: .2em; }
.ev-tiles .et-d { font-size: 22px; padding-top: 6px; }
.ev-tiles .et-y { font-size: 9.5px; padding: 3px 0 6px; }

.ev-tiles.is-range .et-y, .ev-tiles .et-y { font-size: 12px; color: #999; }

.ev-tiles.is-range .et-m, .ev-tiles .et-m { font-size: 12px; }

/* desktop: setas ↑ ↓ para alternar o mês do calendário */
.cal-arrows { display: none; }
@media (min-width: 960px) {
  .cal-arrows { display: flex; justify-content: flex-start; gap: 8px; margin-top: 14px; }
  .cal-arrow {
    width: 44px; height: 44px; border-radius: 50%;
    display: grid; place-items: center;
    color: var(--ink); background: #fff;
    border: 1px solid rgba(42,36,33,.14);
    position: relative; overflow: hidden;
    transition: border-color .2s, transform .25s var(--spring), opacity .2s;
  }
  .cal-arrow:hover { border-color: rgba(42,36,33,.35); }
  .cal-arrow:active { transform: scale(.9); }
  .cal-arrow[disabled] { opacity: .3; pointer-events: none; }
}

/* desktop: com o mouse sobre o evento aberto, os demais ficam apagados (50% e sem saturação) */
@media (min-width: 960px) {
  .ev { transition: opacity .3s var(--ease), filter .3s var(--ease), box-shadow .35s var(--ease), background .35s; }
  .list:has(.ev.is-open:hover) .ev:not(.is-open) { opacity: .5; filter: saturate(0); }
}
@media (min-width: 960px) { .list:has(.ev.is-open:hover) .ev:not(.is-open) { opacity: .5 !important; } }

/* animação suave ao apagar/acender os demais eventos:
   a animação de entrada não "segura" mais a opacidade depois que termina */
.ev.in { opacity: 1; transform: none; animation-fill-mode: backwards; }
@media (min-width: 960px) {
  .ev { transition: opacity .45s var(--ease), filter .45s var(--ease), box-shadow .35s var(--ease), background .35s; }
}

.et-m { background: #222; }
.ev.is-now .ev-tile { border-color: #222; }

/* todos os calendários com a mesma borda cinza clara */
.ev-tile, .ev.is-now .ev-tile { border-color: rgba(42,36,33,.12); }

.ev-tiles.is-range .et-d, .ev-tiles .et-d { font-size: 28px; }

/* =========================================================
   Card da lista (formato novo): calendário + título/cidade; resumo; pílulas de data/duração/local; categorias
   ========================================================= */
.ev-tiles .ev-tile { width: 66px; border-radius: 14px; }
.ev-tiles .et-m { font-size: 12px; letter-spacing: .26em; text-indent: .26em; padding: 5px 0 4px; }
.ev-tiles .et-d { font-size: 30px; padding-top: 8px; }
.ev-tiles .et-y { font-size: 11px; font-weight: 800; color: #999; padding: 4px 0 8px; letter-spacing: .06em; white-space: nowrap; }
.ev-tiles.is-multi .et-y { color: var(--ink-2); }

.ev-main { row-gap: 12px; }
.ev-main .ev-extra { grid-column: 1 / -1; display: grid; gap: 12px; }
.ev-desc { font-size: 12px; line-height: 1.5; color: var(--ink-2); }

.ev-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.ev-pill {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 34px; padding: 6px 12px; border-radius: 12px;
  font-size: 13px; color: var(--ink); line-height: 1.25;
  background: #fff; border: 1px solid rgba(42,36,33,.14);
}
.ev-pill svg { flex: none; color: var(--muted); }
.ev-pill.is-date { background: var(--orange-soft); border-color: transparent; }
.ev-pill.is-date svg { color: var(--orange); }
.ev-pill.is-date b { font-family: var(--mono); font-weight: 800; letter-spacing: .01em; font-size: 12.5px; }
.ev-pill-arrow { display: inline-grid; color: var(--orange); font-style: normal; }
.ev-pill-arrow svg { color: var(--orange); }

.ev-main .ev-cats { gap: 8px; }
.ev-main .ev-cats .chip {
  background: #fff; border: 1px solid rgba(42,36,33,.14);
  padding: 6px 12px; border-radius: 12px;
  font-size: 11px; font-weight: 600; color: var(--ink);
}
.ev-tiles.is-multi .et-y { color: #999; }

/* calendários: mesmo tamanho (menor) em todos; dois quando há data inicial e final */
.ev-tiles .ev-tile { width: 54px; border-radius: 12px; }
.ev-tiles .et-m { font-size: 12px; letter-spacing: .2em; text-indent: .2em; padding: 4px 0 3px; }
.ev-tiles .et-d { font-size: 28px; padding-top: 6px; }
.ev-tiles .et-y { font-size: 12px; color: #999; padding: 3px 0 6px; }
.ev-pills:empty { display: none; }

/* desktop: total de eventos à direita das setas */
@media (min-width: 960px) {
  .cal-arrows { align-items: center; }
  .cal-total { margin-left: auto; display: inline-flex; align-items: baseline; gap: 6px; color: #fff; }
  .cal-total b { font-size: 32px; font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
  .cal-total small { font-size: 13px; font-weight: 500; }
}
/* total: número em cima, palavra "eventos" embaixo, tudo laranja */
@media (min-width: 960px) {
  .cal-total { flex-direction: column; align-items: flex-end; gap: 2px; color: var(--orange); }
  .cal-total small { font-size: 12px; font-weight: 600; letter-spacing: .02em; }
}
@media (min-width: 960px) { .cal-total b { font-size: 42px; } }

/* sem "scroll anchoring": o navegador não reposiciona a lista sozinho quando um evento acima fecha */
html, body, .sheet, .list { overflow-anchor: none; }

/* busca de eventos pelo título */
.pick .pick-item[data-ev] .pi-main { display: flex; flex-direction: column; gap: 3px; white-space: normal; }
.pi-title { font-weight: 600; }
.pi-title mark { background: var(--orange-soft); color: var(--ink); border-radius: 3px; padding: 0 1px; }
.pi-sub2 { font-size: 11px; color: var(--muted); letter-spacing: .02em; }
.pick .pick-item[data-ev] .pi-meta:empty { display: none; }

/* botão de busca em laranja */
#btnSearch { background: var(--orange); border-color: var(--orange); color: #fff; }

/* busca: cards iguais aos da lista */
.pick-results .ev { margin-bottom: 10px; }
.pick-results .pick-hint { padding-top: 6px; }

/* logomarca EXPODATE */
.brand-logo { display: block; height: 30px; width: auto; }
@media (min-width: 960px) { .topbar .brand-logo { height: 34px; } }

/* ---------- Menu hambúrguer: links, redes sociais e crédito ---------- */
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
a.dn { color: var(--ink); text-decoration: none; }
.drawer-social { display: flex; gap: 10px; margin-top: 28px; padding: 0 12px; }
.soc {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink); background: #fff;
  border: 1px solid rgba(42,36,33,.14);
  position: relative; overflow: hidden;
  transition: transform .25s var(--spring), color .2s, border-color .2s;
}
.soc:hover { color: var(--orange); border-color: var(--orange); }
.soc:active { transform: scale(.9); }
.drawer.is-open .soc { animation: pop .45s var(--spring) both; }
.drawer.is-open .soc:nth-child(2) { animation-delay: 60ms; }
.drawer.is-open .soc:nth-child(3) { animation-delay: 120ms; }
.drawer-foot {
  margin-top: auto; padding-top: 20px;
  display: flex; align-items: center; gap: 10px;
  border-top: 1px solid var(--flat-line);
  font-family: var(--font); line-height: 1;
}
.dev-by { font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.isla-logo { display: block; height: 22px; width: auto; }
.isla-txt { font-weight: 800; letter-spacing: .08em; color: var(--ink); }
/* crédito: "Desenvolvido por:" em cima, logo da ISLA embaixo, maior */
.drawer-foot { flex-direction: column; align-items: flex-start; gap: 10px; }
.isla-logo { height: 32px; }

/* =========================================================
   Formulário "Cadastrar evento"
   ========================================================= */
.sf { display: grid; gap: 14px; padding-bottom: 20px; }
.sf .pick-hint { padding: 12px 2px 0; }
.sf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .sf-row { grid-template-columns: 1fr; } }
.sf-field { display: grid; gap: 6px; }
.sf-lbl { font-size: 13px; font-weight: 600; color: var(--ink); }
.sf-lbl em { font-style: normal; font-size: 10.5px; color: var(--muted); font-weight: 400; margin-left: 4px; }
.sf input, .sf select, .sf textarea {
  width: 100%; min-height: 46px; padding: 11px 14px;
  font: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1px solid rgba(42,36,33,.18); border-radius: 14px;
  outline: none; -webkit-appearance: none; appearance: none;
  transition: border-color .2s;
}
.sf textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.sf select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239d958f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.sf input:focus, .sf select:focus, .sf textarea:focus { border-color: var(--orange); }
.sf-hint { font-size: 11.5px; color: var(--muted); }
.sf-err { font-size: 12px; color: #d93a1b; font-weight: 600; min-height: 0; }
.sf-err:empty { display: none; }
.sf-field.has-err input, .sf-field.has-err select, .sf-field.has-err textarea { border-color: #d93a1b; }
.sf-chosen, .sf-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.sf-chosen:empty { display: none; }
.sf .fchip { height: 32px; font-size: 12.5px; padding: 0 12px; }
.sf-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.sf-msg { font-size: 13px; color: #d93a1b; font-weight: 600; }
.sf-msg:empty { display: none; }
.sf-send { width: 100%; margin-top: 4px; }
.sf-send[disabled] { opacity: .6; pointer-events: none; }
.sf-done { text-align: center; padding: 48px 12px; display: grid; justify-items: center; gap: 12px; animation: fade-up .5s var(--ease) both; }
.sf-done-ico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: #fff; font-size: 30px; font-weight: 800; animation: pop .5s var(--spring) both; }
.sf-done h4 { margin: 6px 0 0; font-size: 22px; letter-spacing: -.02em; }
.sf-done p { margin: 0 0 10px; color: var(--ink-2); font-size: 15px; line-height: 1.5; max-width: 360px; }
.sf-done .primary-btn { padding: 0 24px; }
/* cadastro: categoria nova, cidade bloqueada até escolher o estado */
.sf .fchip.sf-new { border: 1px dashed var(--orange); color: var(--orange); background: #fff; font-weight: 700; }
.sf-field select[disabled] { opacity: .55; }
/* modais: a área de conteúdo continua centralizada, mas o scroll pega toda a largura do modal */
.pick-body {
  max-width: none; margin: 0;
  padding-left: max(16px, calc((100% - 528px) / 2));
  padding-right: max(16px, calc((100% - 528px) / 2));
}
/* categorias no card: discretas; clicáveis (viram filtro) */
.ev-main .ev-cats { gap: 6px; }
.ev-main .ev-cats .chip {
  background: rgba(42,36,33,.045); border: 0;
  padding: 4px 9px; border-radius: 8px;
  font-size: 10px; font-weight: 500; letter-spacing: .04em; color: var(--muted);
  cursor: pointer; transition: color .2s, background .2s;
}
.ev-main .ev-cats .chip.is-on { color: var(--orange); background: var(--orange-soft); }
@media (hover: hover) {
  .ev-main .ev-cats .chip:hover { color: #fff; background: var(--orange); }
}
.ev-main .ev-cats .chip:active { transform: scale(.94); }

/* ---------- Mês/ano na barra: informativo (não é filtro) — tipografia, sem pílula, divisor à direita ---------- */
.hc-when {
  flex: none; display: grid; align-content: center; gap: 1px;
  min-width: 76px; padding-right: 14px; margin-right: 4px;
  border-right: 1px solid rgba(42,36,33,.18);
  line-height: 1.05; overflow: hidden; user-select: none;
}
.hc-when b { display: block; font-size: 15px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.hc-when span { display: block; font-size: 10px; letter-spacing: .14em; color: var(--muted); }
@media (min-width: 960px) {
  .hc-when { min-width: 118px; padding-right: 20px; margin-right: 8px; align-self: stretch; }
  .hc-when b { font-size: 22px; letter-spacing: -.03em; }
  .hc-when span { font-size: 11px; margin-top: 2px; }
}
/* mês/ano como botão tipográfico (NOV.2026): sem pílula, sublinhado pontilhado; divisor à direita separa dos filtros */
.hc-when {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  min-width: 0; height: 32px; padding: 0 14px 0 0; background: none; border: 0;
  border-right: 1px solid rgba(42,36,33,.18); border-radius: 0;
  font-size: 15px; font-weight: 800; letter-spacing: .02em; color: var(--ink);
  transition: color .2s;
}
.hc-when span { display: block; font-size: inherit; letter-spacing: inherit; color: inherit;
  text-decoration: underline dotted rgba(42,36,33,.35); text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.hc-when:active { transform: scale(.96); }
@media (hover: hover) { .hc-when:hover { color: var(--orange); } .hc-when:hover span { text-decoration-color: var(--orange); } }
@media (min-width: 960px) {
  .hc-when { min-width: 0; height: 44px; padding-right: 20px; font-size: 22px; align-self: center; }
  .hc-when span { margin-top: 0; text-underline-offset: 7px; }
}

/* mobile: menu (topbar) realmente fixo — não desce com o "elástico" do scroll no topo
   e não deixa a lista aparecer por trás dos filtros do calendário */
@media (max-width: 959px) {
  html, body { overscroll-behavior-y: none; }
  .topbar {
    position: fixed; top: 0; left: 0; right: 0;
    max-width: 560px; margin: 0 auto;
  }
  .app { padding-top: var(--topbar-h, 64px); }
}
/* mobile: tudo no #hcNav (mês/ano e filtros) com o mesmo tamanho de fonte */
@media (max-width: 959px) {
  #hcNav .hc-when, #hcNav .hc-tag { font-size: 11px; }
  #hcNav .hc-when span { text-underline-offset: 4px; text-decoration-thickness: 1px; }
}
/* faixa de dias oculta temporariamente no mobile (ver STRIP_H no app.js) */
@media (max-width: 959px) {
  .hcal .hc-strip-wrap, .hcal.is-on .hc-strip-wrap { display: none !important; }
}

/* Quem Somos (modal #pick, kind=about) */
.about { padding: 4px 0 28px; display: grid; gap: 18px; }
.ab-kicker { margin: 0; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); font-weight: 800; }
.ab-h { margin: -8px 0 0; font-size: 26px; line-height: 1.12; letter-spacing: -.03em; font-weight: 800; color: var(--ink); }
.ab-p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.ab-p b { color: var(--ink); }
.ab-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ab-list li { display: grid; grid-template-columns: 30px 1fr; gap: 8px; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.ab-list li > span { font-size: 11px; font-weight: 800; color: var(--orange); padding-top: 2px; }
.ab-list b { display: block; color: var(--ink); font-size: 14.5px; margin-bottom: 2px; }
.ab-cta { width: 100%; flex: none; }
.ab-isla { margin-top: 8px; background: #fff; color: var(--ink); border-radius: 22px; padding: 22px 20px; display: grid; gap: 12px; }
.ab-isla .ab-p { color: var(--ink-2); }
.ab-isla .ab-p b { color: var(--ink); }
.ab-isla-logo { height: 30px; width: auto; justify-self: start; }
.ab-quote { margin: 0; padding-left: 12px; border-left: 2px solid var(--orange); font-size: 14px; font-style: italic; line-height: 1.5; color: var(--ink); }
.ab-link { justify-self: start; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 22px; background: #222; color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; transition: background .2s; }
.ab-link span { transition: transform .25s var(--spring); }
@media (hover: hover) { .ab-link:hover { background: var(--orange); } .ab-link:hover span { transform: translateX(4px); } }
.ab-add { display: grid; gap: 12px; padding-top: 18px; border-top: 1px solid rgba(42,36,33,.14); }
.ab-h2 { margin: -4px 0 0; font-size: 19px; line-height: 1.2; letter-spacing: -.02em; font-weight: 800; color: var(--ink); }
