:root {
  color-scheme: light;
  --bg: #f6f6f6;
  --text: #202124;
  --muted: #8e8e93;
  --line: #dfdfdf;
  --sun: #e86b65;
  --today: #222326;
  --shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
  --blue: #9fc6f4;
  --olive: #cad986;
  --peach: #ecb29c;
  --pink: #efc1c5;
  --lavender: #d6c6eb;
  --greenline: #97b129;
  --orangeline: #ef8854;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
body { display: flex; justify-content: center; }
button, input { font: inherit; }

.app-shell {
  width: min(100vw, 430px);
  min-height: 100dvh;
  background: var(--bg);
  padding: max(env(safe-area-inset-top, 0px), 6px) 18px calc(env(safe-area-inset-bottom, 0px) + 18px);
  display: flex;
  flex-direction: column;
  position: relative;
}

.statusbar-row {
  height: 38px;
  display: flex;
  align-items: center;
  font-size: 15px;
  font-weight: 400;
  color: #767676;
  padding-left: 8px;
}

.app-header {
  position: relative;
  min-height: 92px;
  padding-top: 4px;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  border-radius: 50%;
  position: relative;
  color: var(--text);
  transition: transform .16s ease, background-color .16s ease, opacity .16s ease;
}

#menuBtn {
  position: absolute;
  left: 0;
  top: 0;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 6px;
  width: 28px;
  height: 2.6px;
  border-radius: 999px;
  background: #232323;
}
.hamburger { top: 19px; }
.hamburger::before { left: 0; top: -10px; }
.hamburger::after { left: 0; top: 10px; }

.header-center {
  position: absolute;
  left: 50%;
  top: 10px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 24px auto 24px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 42px;
  pointer-events: none;
}
.header-center > * { pointer-events: auto; }

.header-title {
  text-align: center;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.025em;
  line-height: 42px;
  min-width: 84px;
  user-select: none;
}

.month-nav {
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  position: relative;
  opacity: 0.72;
}
.month-nav::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-top: 2px solid #4b4b4d;
  border-right: 2px solid #4b4b4d;
}
.month-nav.prev::before { transform: rotate(-135deg); }
.month-nav.next::before { transform: rotate(45deg); }

.header-actions {
  position: absolute;
  right: 0;
  top: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  width: 112px;
}

.search-btn::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2.6px solid #222;
  border-radius: 50%;
  left: 8px;
  top: 7px;
}
.search-btn::after {
  content: "";
  position: absolute;
  width: 11px;
  height: 2.6px;
  background: #222;
  border-radius: 999px;
  right: 6px;
  bottom: 10px;
  transform: rotate(45deg);
}
.today-btn {
  width: 40px;
  height: 40px;
  border: 2px solid #232323;
  border-radius: 9px;
  color: #232323;
  font-size: 19px;
  font-weight: 500;
  line-height: 1;
}

.calendar-main { flex: 1; display: flex; flex-direction: column; }
.weekday-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  color: #6d6d70;
  font-size: 12px;
  font-weight: 500;
  padding: 0 0 6px;
}
.weekday-row .sun { color: var(--sun); }

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-auto-rows: minmax(108px, 1fr);
  border-top: 1px solid var(--line);
}
.day-cell {
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  position: relative;
  padding: 2px 2px 10px;
  text-align: left;
  overflow: hidden;
}
.day-num {
  width: 42px;
  height: 42px;
  margin: 0 auto 2px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 500;
  color: #202020;
  transition: box-shadow .2s ease, background-color .2s ease, transform .16s ease;
}
.day-cell.sun .day-num { color: #e2493f; }
.day-cell.dim .day-num { color: #dbdbdd; }
.day-cell.selected .day-num {
  box-shadow: inset 0 0 0 2px rgba(176,176,176,.65), 0 0 0 6px rgba(255,255,255,.85), 0 0 18px 2px rgba(191,191,191,.7);
  background: rgba(255,255,255,.66);
}
.day-cell.today .day-num {
  background: var(--today);
  color: #fff;
  border-radius: 10px;
}
.label-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 3px;
  min-height: 56px;
  justify-content: flex-start;
}
.mini-event {
  font-size: 9px;
  line-height: 1.15;
  padding: 4px 7px;
  border-radius: 8px;
  color: #232323;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 1px 0 rgba(255,255,255,.45) inset, 0 1px 2px rgba(0,0,0,.06);
}
.mini-event.blue { background: var(--blue); }
.mini-event.olive { background: var(--olive); }
.mini-event.peach { background: var(--peach); }
.mini-event.pink { background: var(--pink); }
.mini-event.lavender { background: var(--lavender); }
.mini-event.ghost { opacity: 0.35; }
.mini-event.long { min-width: calc(200% + 6px); }
.mini-event.thin {
  background: transparent;
  padding: 0 0 0 8px;
  position: relative;
  font-size: 8.5px;
}
.mini-event.thin::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  bottom: 1px;
  width: 4px;
  border-radius: 4px;
}
.mini-event.orange.thin::before { background: var(--orangeline); }
.mini-event.olive.thin::before { background: var(--greenline); }
.flight-badge { background: var(--blue); font-weight: 500; }

.agenda-pane { padding-top: 10px; }
.agenda-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 0 10px;
}
.agenda-date-line {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #9c9c9f;
  font-size: 11px;
}
.secret-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.secret-dot.success, .secret-dot.fail, .secret-dot.copy { opacity: 1; transform: scale(1); }
.secret-dot.success { background: #34c759; }
.secret-dot.copy { background: #f1bb1c; }
.secret-dot.fail { background: #d35c5c; }

.events-list {
  min-height: 122px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.empty-events {
  color: #8e8e93;
  font-size: 14px;
  padding: 12px 0 0 4px;
}
.event-row {
  display: grid;
  grid-template-columns: 132px 1fr;
  align-items: center;
  gap: 12px;
  transition: transform .16s ease, opacity .16s ease;
}
.event-time {
  color: #7e7e82;
  font-size: 24px;
  font-weight: 500;
  white-space: nowrap;
  letter-spacing: -.02em;
}
.event-card {
  position: relative;
  padding-left: 22px;
  min-height: 52px;
  display: flex;
  align-items: center;
}
.event-dot {
  position: absolute;
  left: 0;
  top: 10px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #9a43ef;
}
.event-dot.flight-dot { background: #8ebef0; }
.event-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: 12px;
  padding: 7px 12px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  color: #27272a;
  background: #ececf0;
  box-shadow: 0 3px 10px rgba(0,0,0,.07);
}
.event-chip.flight-chip,
.event-chip.blue { background: var(--blue); }
.event-chip.olive { background: var(--olive); }
.event-chip.peach { background: var(--peach); }
.event-chip.pink { background: var(--pink); }
.event-chip.lavender { background: var(--lavender); }
.event-chip.orange { background: rgba(239, 136, 84, 0.24); }

.fab-plus {
  position: absolute;
  right: 18px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 18px);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 0;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(0,0,0,.18);
  transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease;
}
.fab-plus::before,
.fab-plus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 2.6px;
  margin-left: -11px;
  margin-top: -1.3px;
  background: #252525;
  border-radius: 999px;
}
.fab-plus::after { transform: rotate(90deg); }

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(2px);
  display: grid;
  place-items: center;
  padding: 24px;
}
.modal-backdrop.hidden { display: none; }

.secret-modal {
  width: min(100%, 360px);
  background: #fff;
  border-radius: 26px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.16);
}
.secret-title { font-size: 22px; font-weight: 600; margin-bottom: 18px; }
.secret-label { display: block; font-size: 13px; color: #6d6d70; margin-bottom: 8px; }
.secret-input {
  width: 100%;
  border: 1px solid #d5d5d8;
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 18px;
}
.secret-url { margin-top: 12px; font-size: 12px; color: #666; word-break: break-all; }
.secret-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.secret-btn { border: 0; border-radius: 999px; padding: 11px 16px; background: #202124; color: #fff; }
.secret-btn.ghost { background: #ededed; color: #202124; }

.event-modal {
  width: min(100%, 390px);
  background: #fff;
  border-radius: 30px;
  padding: 28px 24px 22px;
  position: relative;
  box-shadow: 0 24px 55px rgba(0,0,0,.24);
  transform: translateY(10px) scale(.985);
  opacity: 0;
}
.event-modal.modal-pop {
  animation: modalPop .22s ease forwards;
}
.event-close {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  position: absolute;
  top: 12px;
  right: 12px;
}
.event-close::before,
.event-close::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 16px;
  width: 18px;
  height: 2px;
  background: #202124;
  border-radius: 999px;
}
.event-close::before { transform: rotate(45deg); }
.event-close::after { transform: rotate(-45deg); }
.event-modal-time {
  margin-top: 4px;
  color: #7d7f83;
  font-size: 20px;
  font-weight: 500;
}
.event-modal-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}
.event-modal-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #8ebef0;
  flex: 0 0 auto;
}
.event-modal-dot.copy-success {
  background: #34c759;
  box-shadow: 0 0 0 6px rgba(52, 199, 89, 0.16);
  transition: background-color .14s ease, box-shadow .14s ease;
}
.hidden-dot { opacity: 0; }
.event-modal-title {
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: .98;
}
.event-modal-location,
.event-modal-airline,
.event-modal-flight {
  font-size: 22px;
  line-height: 1.15;
  color: #55585c;
}
.event-modal-location { margin-top: 14px; }
.event-modal-airline { margin-top: 12px; }
.event-modal-flight { margin-top: 4px; }
.event-modal-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}
.modal-action-btn {
  flex: 1;
  border: 0;
  border-radius: 999px;
  padding: 11px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 500;
}
.modal-action-btn.delete { background: #202124; }
.modal-action-btn.share { background: #ededed; color: #202124; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.icon-btn.polling .hamburger,
.icon-btn.polling .hamburger::before,
.icon-btn.polling .hamburger::after { background: #2f8f47; }
.icon-btn.polling { background: rgba(52, 199, 89, 0.08); }
.search-btn.active-stop { background: rgba(220, 68, 55, 0.14); }

.icon-btn:focus-visible,
.day-cell:focus-visible,
.secret-btn:focus-visible,
.secret-input:focus-visible,
.header-title:focus-visible,
.fab-plus:focus-visible,
.modal-action-btn:focus-visible {
  outline: 2px solid #7aa7ff;
  outline-offset: 2px;
}

@keyframes modalPop {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.tap-pulse { transform: scale(.965); opacity: .86; }
.icon-btn:active, .fab-plus:active, .day-cell:active, .event-row:active, .modal-action-btn:active, .secret-btn:active { transform: scale(.97); opacity: .88; }
.day-cell { transition: transform .14s ease, opacity .14s ease; }
.day-cell.selected .day-num {
  box-shadow: inset 0 0 0 2px rgba(176,176,176,.65), 0 0 0 6px rgba(255,255,255,.85), 0 0 22px 3px rgba(191,191,191,.75);
  background: rgba(255,255,255,.7);
}
.event-modal-head, .event-modal-time, .event-modal-location, .event-modal-airline, .event-modal-flight, .modal-action-btn { transition: opacity .18s ease; }

.day-cell.today.selected .day-num {
  background: var(--today);
  color: #fff;
  box-shadow: inset 0 0 0 2px rgba(34,35,38,.9), 0 0 0 6px rgba(255,255,255,.85), 0 0 22px 3px rgba(191,191,191,.75);
}


/* v1:55 month picker */
.month-picker-backdrop.hidden {
  display: none !important;
}
.month-picker-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 20, 20, 0.34);
}
.month-picker-sheet {
  width: min(86vw, 360px);
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 18px 48px rgba(0,0,0,.25);
  padding: 18px 16px 16px;
  animation: monthPickerIn .18s ease-out;
  pointer-events: auto;
}
.month-picker-title {
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 14px;
  color: #202124;
}
.month-picker-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  pointer-events: auto;
}
.month-picker-item {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 14px;
  background: #f1f3f4;
  color: #202124;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 0;
  pointer-events: auto;
}
.month-picker-item.is-active {
  background: #d2e3fc;
}
.month-picker-actions {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}
@keyframes monthPickerIn {
  from { transform: translateY(10px) scale(.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}


/* v1:55 actual fixes */
.month-picker-backdrop.hidden { display: none !important; }
.month-picker-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.26);
  pointer-events: auto;
}
.month-picker-sheet {
  width: min(86vw, 360px);
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(0,0,0,.24);
  padding: 18px 16px 16px;
  pointer-events: auto;
}
.month-picker-title {
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 14px;
  color: #202124;
}
.month-picker-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.month-picker-item {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 14px;
  background: #f1f3f4;
  color: #202124;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 0;
}
.month-picker-item.is-active { background: #d2e3fc; }

.event-row {
  align-items: center !important;
}
.event-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 0 !important;
}
.event-dot {
  position: static !important;
  flex: 0 0 11px;
  width: 11px;
  height: 11px;
  align-self: center !important;
  margin: 0 !important;
}
.event-chip {
  align-self: center;
}


/* v1:55 month picker tappable fix */
.month-picker-backdrop,
.month-picker-sheet,
.month-picker-grid,
.month-picker-item,
#monthPickerClose {
  pointer-events: auto !important;
}
.month-picker-item,
#monthPickerClose {
  touch-action: manipulation !important;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  cursor: pointer;
}


/* v1:55 month picker cancel button matches settings cancel */
#monthPickerClose.secret-btn.ghost {
  min-width: 108px;
}


/* v1:55 year labels */
.header-year-label {
  font-size: 11px;
  line-height: 1;
  color: rgba(32, 33, 36, 0.42);
  text-align: center;
  margin-top: -6px;
  margin-bottom: 4px;
  letter-spacing: 0.04em;
  pointer-events: none;
}
.month-picker-year-title {
  margin-top: 14px;
  margin-bottom: 8px;
  font-size: 12px;
  color: rgba(32, 33, 36, 0.55);
  text-align: center;
  letter-spacing: 0.04em;
}
.month-picker-year-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.month-picker-year-item {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 14px;
  background: #f1f3f4;
  color: #202124;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 0;
  pointer-events: auto !important;
  touch-action: manipulation !important;
}
.month-picker-year-item.is-active {
  background: #d2e3fc;
}


/* v1:55 month/year picker behavior */
.month-picker-year-item {
  opacity: 1;
}


/* v1:55 picker fix */
.month-picker-backdrop,
.month-picker-sheet,
.month-picker-grid,
.month-picker-year-grid,
.month-picker-item,
.month-picker-year-item,
#monthPickerClose {
  pointer-events: auto !important;
}
.month-picker-item,
.month-picker-year-item,
#monthPickerClose {
  touch-action: manipulation !important;
  cursor: pointer;
}


/* v1:55 submit-based month/year picker */
.month-picker-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}
#monthPickerSubmit.secret-btn[disabled] {
  opacity: 0.45;
  cursor: default;
}
.month-picker-item,
.month-picker-year-item,
#monthPickerClose,
#monthPickerSubmit {
  pointer-events: auto !important;
  touch-action: manipulation !important;
  cursor: pointer;
}

.month-picker-title,
.month-picker-year-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #5f6368;
  margin-bottom: 10px;
}


/* v1:55 update banner */
.update-banner.hidden {
  display: none !important;
}
.update-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 18px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(32, 33, 36, 0.96);
  color: #fff;
  box-shadow: 0 12px 28px rgba(0,0,0,.28);
  backdrop-filter: blur(8px);
}
.update-banner-text {
  font-size: 13px;
  line-height: 1.25;
  font-weight: 600;
}
.update-banner-button {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  background: #8ab4f8;
  color: #202124;
  cursor: pointer;
  flex: 0 0 auto;
}


/* v1:55 polish pack */
.weekday-row {
  letter-spacing: .06em;
}
.weekday-row span {
  opacity: .72;
  font-weight: 500;
  transition: color .18s ease, opacity .18s ease, transform .18s ease;
}
.weekday-row .is-today-weekday {
  opacity: 1;
  color: #202124;
  font-weight: 700;
}
.day-cell {
  transition: transform .14s ease, opacity .14s ease, box-shadow .16s ease;
}
.day-cell.today .day-num {
  background: var(--today);
  color: #fff;
  border-radius: 10px;
  box-shadow: inset 0 -2px 0 rgba(255,255,255,.35);
}
.day-cell.today::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: rgba(32,33,36,.28);
  transform: translateX(-50%);
}
.day-cell.today.selected::after {
  background: rgba(32,33,36,.14);
}
.day-num {
  font-weight: 550;
}
.label-wrap {
  gap: 6px;
  min-height: 58px;
}
.mini-event {
  min-height: 18px;
  border-radius: 9px;
  box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 2px 6px rgba(0,0,0,.06);
}
.mini-event.flight-badge,
.flight-badge {
  background: #8bbaf0;
  box-shadow: 0 3px 9px rgba(94,140,190,.16);
}
.calendar-grid {
  grid-auto-rows: minmax(108px, 1fr);
  transition: opacity .18s ease, transform .18s ease;
}
.calendar-grid.calendar-fade-in {
  animation: calendarFadeIn .18s ease;
}
@keyframes calendarFadeIn {
  from { opacity: .92; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}
.event-row {
  gap: 14px;
}
.event-card {
  min-height: 54px;
  padding-left: 24px;
}
.event-dot {
  top: 50%;
  transform: translateY(-50%);
}
.event-chip {
  border-radius: 13px;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.event-modal {
  box-shadow: 0 18px 40px rgba(0,0,0,.20);
}
.tap-pulse {
  transform: scale(.972);
  opacity: .9;
}
.icon-btn:active,
.fab-plus:active,
.day-cell:active,
.event-row:active,
.modal-action-btn:active,
.secret-btn:active,
.update-banner-button:active {
  transform: scale(.975);
  opacity: .9;
}
.month-title,
#monthButton,
.month-button {
  letter-spacing: .06em;
  font-weight: 500;
}
.event-modal-dot.copy-success {
  background: #5eb8b5 !important;
  box-shadow: 0 0 0 6px rgba(94,184,181,.16);
}
.menu-btn.polling,
.icon-btn.polling {
  position: relative;
}
.menu-btn.polling::after,
.icon-btn.polling::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,.08);
  border-top-color: rgba(255,255,255,.26);
  animation: subtleSpin 1.15s linear infinite;
  opacity: .18;
  pointer-events: none;
}
@keyframes subtleSpin {
  to { transform: rotate(360deg); }
}


/* v1:55 dot centering + polling indicator */
.event-row,
.event-card,
.bottom-event,
.agenda-event,
.events-list .event-row {
  align-items: center !important;
}
.event-dot,
.agenda-dot,
.bottom-event-dot,
.sample-dot,
.flight-dot {
  position: static !important;
  top: auto !important;
  transform: none !important;
  align-self: center !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  flex: 0 0 11px;
}

.menu-btn,
#hamburgerButton,
#menuButton {
  position: relative;
}

.menu-btn.polling-active::before,
#hamburgerButton.polling-active::before,
#menuButton.polling-active::before {
  content: "";
  position: absolute;
  right: -1px;
  top: -1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fbbc04;
  box-shadow: 0 0 0 0 rgba(251,188,4,.45);
  animation: pollingPulse 1s ease-in-out infinite;
  z-index: 2;
}

@keyframes pollingPulse {
  0% { opacity: .45; transform: scale(.72); box-shadow: 0 0 0 0 rgba(251,188,4,.45); }
  50% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 4px rgba(251,188,4,.14); }
  100% { opacity: .45; transform: scale(.72); box-shadow: 0 0 0 0 rgba(251,188,4,0); }
}


/* v1:55 polling animation */
.menu-btn.polling-active::before,
#hamburgerButton.polling-active::before,
#menuButton.polling-active::before {
  content: none !important;
}

.menu-btn.polling-active,
#hamburgerButton.polling-active,
#menuButton.polling-active {
  background: rgba(52, 168, 83, 0.18) !important;
  box-shadow: 0 0 0 0 rgba(52, 168, 83, 0.0);
  animation: hamburgerPulse 1.05s ease-in-out infinite;
}

@keyframes hamburgerPulse {
  0% {
    background: rgba(52, 168, 83, 0.10);
    box-shadow: 0 0 0 0 rgba(52, 168, 83, 0.00);
  }
  50% {
    background: rgba(52, 168, 83, 0.24);
    box-shadow: 0 0 0 6px rgba(52, 168, 83, 0.10);
  }
  100% {
    background: rgba(52, 168, 83, 0.10);
    box-shadow: 0 0 0 0 rgba(52, 168, 83, 0.00);
  }
}


/* v1:55 stronger continuous polling animation */
.menu-btn.polling-active,
#hamburgerButton.polling-active,
#menuButton.polling-active,
button.polling-active[aria-label*="menu"],
button.polling-active[aria-label*="Menu"] {
  background-color: rgba(52, 168, 83, 0.18) !important;
  animation: hamburgerPulse 1.05s ease-in-out infinite !important;
  box-shadow: 0 0 0 0 rgba(52, 168, 83, 0.00) !important;
}

.menu-btn.polling-active .icon-line,
#hamburgerButton.polling-active .icon-line,
#menuButton.polling-active .icon-line,
.menu-btn.polling-active svg,
#hamburgerButton.polling-active svg,
#menuButton.polling-active svg {
  opacity: 1 !important;
}

@keyframes hamburgerPulse {
  0% {
    background-color: rgba(52, 168, 83, 0.10);
    box-shadow: 0 0 0 0 rgba(52, 168, 83, 0.00);
  }
  50% {
    background-color: rgba(52, 168, 83, 0.28);
    box-shadow: 0 0 0 7px rgba(52, 168, 83, 0.12);
  }
  100% {
    background-color: rgba(52, 168, 83, 0.10);
    box-shadow: 0 0 0 0 rgba(52, 168, 83, 0.00);
  }
}


/* v1:55 actual menu polling pulse */
#menuBtn,
.icon-btn#menuBtn {
  position: relative !important;
  overflow: visible !important;
}

#menuBtn.polling,
.icon-btn#menuBtn.polling {
  background: rgba(52, 168, 83, 0.16) !important;
  border-radius: 999px !important;
  animation: menuBtnPulse 1.05s ease-in-out infinite !important;
  box-shadow: 0 0 0 0 rgba(52, 168, 83, 0.00);
}

#menuBtn.polling::after,
.icon-btn#menuBtn.polling::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  background: rgba(52, 168, 83, 0.12);
  animation: menuBtnPulseRing 1.05s ease-in-out infinite !important;
  pointer-events: none;
  z-index: -1;
}

@keyframes menuBtnPulse {
  0% {
    background: rgba(52, 168, 83, 0.10);
  }
  50% {
    background: rgba(52, 168, 83, 0.30);
  }
  100% {
    background: rgba(52, 168, 83, 0.10);
  }
}

@keyframes menuBtnPulseRing {
  0% {
    transform: scale(0.92);
    opacity: .45;
    box-shadow: 0 0 0 0 rgba(52, 168, 83, 0.00);
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
    box-shadow: 0 0 0 8px rgba(52, 168, 83, 0.16);
  }
  100% {
    transform: scale(0.92);
    opacity: .45;
    box-shadow: 0 0 0 0 rgba(52, 168, 83, 0.00);
  }
}


/* v1:55 continuous polling pulse */
#menuBtn.polling,
.icon-btn#menuBtn.polling,
#menuBtn.polling-active,
.icon-btn#menuBtn.polling-active {
  animation: menuBtnPulse 1.05s ease-in-out infinite !important;
}

#menuBtn.polling.tap-pulse,
.icon-btn#menuBtn.polling.tap-pulse,
#menuBtn.polling-active.tap-pulse,
.icon-btn#menuBtn.polling-active.tap-pulse {
  animation: menuBtnPulse 1.05s ease-in-out infinite !important;
  transform: none !important;
  opacity: 1 !important;
}


/* v1:55 reveal modal polish */
.event-modal {
  border-radius: 26px !important;
  padding: 28px 24px 24px !important;
  box-shadow:
    0 24px 38px rgba(0,0,0,.14),
    0 6px 12px rgba(0,0,0,.12) !important;
}

.event-modal-time {
  margin-top: 2px !important;
  color: #70757a !important;
  font-size: 18px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
}

.event-modal-head {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  margin-top: 14px !important;
}

.event-modal-dot {
  width: 14px !important;
  height: 14px !important;
  transform: translateY(1px) !important;
}

.event-modal-title {
  font-size: 32px !important;
  font-weight: 700 !important;
  letter-spacing: .02em !important;
  line-height: 1.02 !important;
}

.event-modal-location,
.event-modal-airline,
.event-modal-flight {
  font-size: 22px !important;
  line-height: 1.14 !important;
  color: #5f6368 !important;
}

.event-modal-location {
  margin-top: 10px !important;
  white-space: nowrap;
}

.event-modal-airline {
  margin-top: 6px !important;
}

.event-modal-flight {
  margin-top: 2px !important;
}

.event-close {
  top: 12px !important;
  right: 12px !important;
  opacity: .72 !important;
}

.event-modal-actions {
  gap: 14px !important;
  margin-top: 18px !important;
  padding-top: 14px !important;
  border-top: 1px solid #eceff1 !important;
}

.modal-action-btn {
  min-height: 44px !important;
  border-radius: 22px !important;
  font-weight: 600 !important;
  font-size: 17px !important;
}

.modal-action-btn.delete {
  background: #202124 !important;
  color: #fff !important;
}

.modal-action-btn.share {
  background: #e8eaed !important;
  color: #202124 !important;
}


/* v1:55 launch fetch splash */
.launch-splash.hidden {
  display: none !important;
}
.launch-splash {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  background: #f6f7f8;
}
.launch-splash-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}
.launch-splash-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: .02em;
  color: #202124;
}

#menuBtn,
.icon-btn#menuBtn {
  position: relative !important;
  overflow: visible !important;
}
#menuBtn.flash-success::before,
.icon-btn#menuBtn.flash-success::before,
#menuBtn.flash-fail::before,
.icon-btn#menuBtn.flash-fail::before {
  content: "";
  position: absolute;
  right: -2px;
  top: -2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  z-index: 2;
  animation: menuFlashDot .7s ease-out forwards;
}
#menuBtn.flash-success::before,
.icon-btn#menuBtn.flash-success::before {
  background: #34a853;
  box-shadow: 0 0 0 0 rgba(52,168,83,.24);
}
#menuBtn.flash-fail::before,
.icon-btn#menuBtn.flash-fail::before {
  background: #ea4335;
  box-shadow: 0 0 0 0 rgba(234,67,53,.24);
}
@keyframes menuFlashDot {
  0% { opacity: 0; transform: scale(.65); }
  25% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(.72); }
}

/* v1:55 one-time fetch cleanup */
#menuBtn.polling,
#menuBtn.polling-active,
.icon-btn#menuBtn.polling,
.icon-btn#menuBtn.polling-active { animation:none !important; box-shadow:none !important; background:transparent !important; }
#searchBtn.active-stop,
.icon-btn#searchBtn.active-stop { background:transparent !important; }


/* v1:55 splash icon */
.launch-splash-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.launch-splash-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: block;
}


/* v1:55 hidden-first render */
#appShell.app-preload {
  visibility: hidden;
}
#appShell.app-ready {
  visibility: visible;
}


/* v1:55 settings toggle */
.secret-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  margin-bottom: 4px;
}
.secret-setting-label {
  font-size: 14px;
  font-weight: 600;
  color: #202124;
}
.secret-toggle {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: #eceff1;
  border-radius: 999px;
  padding: 3px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.secret-toggle-option {
  min-width: 56px;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #5f6368;
  text-align: center;
}
.secret-toggle-option.is-active {
  background: #202124;
  color: #fff;
}
