:root {
  --bg: #0f0f17;
  --surface: #1a1a26;
  --surface-2: #232333;
  --border: #2e2e42;
  --text: #eceaf2;
  --text-dim: #a09fb2;
  --accent: #d7231e;      /* Dragon Foundation red */
  --gold: #e6b34d;
  --green: #3dbf7a;
  --amber: #e0a53f;
  --hard-bg: #2b2312;
  --hard-border: #a8842e;
  --now-border: #d7231e;
  --now-glow: #d7231e55;
  --header-bg: #141420;
  --radius: 14px;
  --seg-transit: #5b8def;
  --seg-meal: #e0a53f;
  --seg-visit: #3dbf7a;
  --seg-ceremony: #d7231e;
  --seg-workshop: #b06fe0;
  --seg-seminar: #b06fe0;
  --seg-logistics: #8a93a6;
  --seg-default: #6f7a90;
}

/* Light (day) theme — applied via data-theme, resolved in JS (auto follows the phone) */
:root[data-theme="light"] {
  --bg: #f4f2ec;
  --surface: #ffffff;
  --surface-2: #efece4;
  --border: #ddd8cc;
  --text: #221f1c;
  --text-dim: #6f6a60;
  --gold: #b07d16;
  --green: #1e8a54;
  --amber: #a8720e;
  --hard-bg: #fdf4d9;
  --hard-border: #c9992a;
  --header-bg: #faf8f3;
}
:root[data-theme="light"] .badge.hard-badge { color: #fff; background: #b8860b; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "PingFang HK", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
  padding-bottom: calc(20px + env(safe-area-inset-bottom));
}

/* ── Calligraphy ink watermark (single 16KB local image, CSS-only motion) ── */
.ink-bg {
  position: fixed;
  z-index: 0;
  right: -8vmin;
  top: 14vh;
  width: 74vmin;
  height: 100vmin;
  pointer-events: none;
  will-change: transform;
}
.ink-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url(bg-glyph.png) no-repeat center / contain;
  opacity: 0.05;
  animation: ink-breathe 14s ease-in-out infinite alternate;
}
:root[data-theme="dark"] .ink-bg::before { filter: invert(1); opacity: 0.055; }
@keyframes ink-breathe {
  from { transform: translateY(0) scale(1); }
  to { transform: translateY(-1.5vh) scale(1.03); }
}
@media (prefers-reduced-motion: reduce) {
  .ink-bg::before { animation: none; }
}
main, .app-header, .app-footer { position: relative; z-index: 1; }

/* ── Header ── */
.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding-top: env(safe-area-inset-top);
}
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px 6px;
}
.header-title h1 {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand-row { display: flex; align-items: center; gap: 8px; }
.brand-seal { height: 20px; width: auto; flex: 0 0 auto; }
.header-title p { font-size: 0.72rem; color: var(--text-dim); }
.icon-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  padding: 10px;
  cursor: pointer;
  border-radius: 50%;
}
.icon-btn:active { background: var(--surface-2); }
.header-actions { display: flex; align-items: center; gap: 2px; }
.lang-btn {
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--text);
  white-space: nowrap;
}
.theme-btn { font-size: 0.95rem; line-height: 1; padding: 8px; color: var(--text); }
#refresh-btn.spinning svg { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* bilingual secondary line / inline */
.zh-line { display: block; font-size: 0.86em; color: var(--text-dim); font-weight: 500; margin-top: 1px; }
.cue-title .zh-line { color: var(--text); opacity: 0.85; }
.zh-inline { display: inline; }
.zh-inline::before { content: " · "; }

.search-bar { padding: 4px 16px 8px; }
.search-bar.hidden { display: none; }
.search-bar input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 16px; /* prevents iOS zoom */
  outline: none;
}
.search-bar input:focus { border-color: var(--accent); }

/* ── Tabs ── */
.tab-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 16px 10px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.tab-bar::-webkit-scrollbar { display: none; }
.tab {
  flex: 0 0 auto;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  line-height: 1.2;
  min-height: 40px;
}
.tab small { display: block; font-size: 0.62rem; font-weight: 400; opacity: 0.75; }
.tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.tab.active small { opacity: 0.9; }
.tab.today-dot { position: relative; }
.tab.today-dot::after {
  content: "";
  position: absolute;
  top: 5px; right: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* ── Filters ── */
.filter-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 0 16px 10px;
  scrollbar-width: none;
}
.filter-bar::-webkit-scrollbar { display: none; }
.filter-bar:empty { padding: 0; }
.chip {
  flex: 0 0 auto;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.72rem;
  cursor: pointer;
  min-height: 30px;
}
.chip.active { background: var(--surface-2); color: var(--text); border-color: var(--text-dim); }

/* ── Content ── */
main { padding: 14px 14px 30px; max-width: 640px; margin: 0 auto; }
.day-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  flex-wrap: wrap;
  margin: 4px 2px 12px;
}
.day-heading h2 { font-size: 1rem; font-weight: 700; text-wrap: balance; }
.day-heading span { font-size: 0.75rem; color: var(--text-dim); white-space: nowrap; }
/* stack title over date on narrow screens — no more collision wrap */
@media (max-width: 480px) {
  .day-heading { flex-direction: column; align-items: flex-start; gap: 1px; }
}

.empty-msg { color: var(--text-dim); text-align: center; padding: 40px 0; font-size: 0.9rem; }

/* ── Cue cards ── */
.cue-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}
.cue-card.hard {
  background: var(--hard-bg);
  border-color: var(--hard-border);
}
.cue-card.now { border: 2px solid var(--now-border); box-shadow: 0 0 12px var(--now-glow); }
.cue-head {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
  align-items: flex-start;
  min-height: 48px;
  -webkit-tap-highlight-color: transparent;
}
.cue-time {
  flex: 0 0 62px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.cue-time .t-start { font-size: 0.95rem; font-weight: 700; }
.cue-time .t-end { font-size: 0.72rem; color: var(--text-dim); }
.cue-time .t-dur { font-size: 0.62rem; color: var(--text-dim); opacity: 0.8; }
.cue-main { flex: 1; min-width: 0; }
.cue-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 3px; align-items: center; }
.badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 5px;
  padding: 2px 7px;
  color: #fff;
}
.badge.seg { background: var(--seg-default); }
.badge.status-confirmed { background: transparent; color: var(--green); border: 1px solid var(--green); }
.badge.status-estimate { background: transparent; color: var(--amber); border: 1px solid var(--amber); }
.badge.hard-badge { background: var(--hard-border); color: #14100a; }
.badge.now-badge { background: var(--accent); animation: pulse 1.6s ease-in-out infinite; }
.badge.next-badge { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
@keyframes pulse { 50% { opacity: 0.55; } }
.cue-title { font-size: 0.92rem; font-weight: 650; }
.cue-venue { font-size: 0.74rem; color: var(--text-dim); margin-top: 2px; }
.cue-venue::before { content: "📍 "; font-size: 0.68rem; }
.mappable { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.mappable:active { opacity: 0.7; }
.map-hint { margin-left: 5px; font-size: 0.72rem; opacity: 0.8; }
.cue-num { font-size: 0.62rem; color: var(--text-dim); opacity: 0.7; padding-top: 2px; }

.cue-detail {
  display: none;
  border-top: 1px solid var(--border);
  padding: 12px 14px;
  font-size: 0.82rem;
}
.cue-card.open .cue-detail { display: block; }
.cue-desc { margin-bottom: 10px; color: var(--text); white-space: pre-line; }
.detail-grid { display: grid; grid-template-columns: 92px 1fr; gap: 5px 10px; }
.detail-grid dt { color: var(--text-dim); font-size: 0.72rem; padding-top: 1px; }
.detail-grid dd { min-width: 0; overflow-wrap: anywhere; }

/* ── Transport / hotel cards ── */
.t-card, .h-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 14px;
  margin-bottom: 10px;
}
.t-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.t-mode { font-weight: 700; font-size: 0.9rem; }
.t-date { font-size: 0.72rem; color: var(--text-dim); flex: 0 0 auto; }
.t-route { font-size: 0.82rem; margin-bottom: 4px; }
.t-times { font-size: 0.85rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.t-meta { font-size: 0.74rem; color: var(--text-dim); margin-top: 4px; }
.h-city { font-weight: 700; font-size: 0.9rem; }
.h-name { font-size: 0.85rem; margin-top: 2px; }
.h-zh { font-size: 0.8rem; color: var(--text-dim); }
.h-meta { font-size: 0.74rem; color: var(--text-dim); margin-top: 4px; }
.h-addr { font-size: 0.76rem; color: var(--text-dim); margin-top: 5px; line-height: 1.4; }

/* ── Info tab ── */
.info-section { margin-bottom: 20px; }
.info-section h3 { font-size: 0.9rem; margin: 0 2px 8px; }
.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 14px;
  font-size: 0.82rem;
}
.info-card ul { padding-left: 18px; }
.info-card li { margin-bottom: 8px; }
.info-card li:last-child { margin-bottom: 0; }

/* ── Groups tab ── */
.g-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 14px;
  margin-bottom: 10px;
}
.g-tbd { font-size: 0.78rem; color: var(--text-dim); font-style: italic; margin-top: 4px; }
/* group cards collapse by default; tap header to expand */
.g-toggle { cursor: pointer; -webkit-tap-highlight-color: transparent; margin-bottom: 0; min-height: 30px; align-items: center; }
.g-chev { display: inline-block; color: var(--text-dim); transition: transform 0.2s; }
.g-card.open .g-chev { transform: rotate(180deg); }
.g-body { display: none; margin-top: 6px; }
.g-card.open .g-body { display: block; }
.info-card.dim { color: var(--text-dim); font-style: italic; }
.member-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.member-row:last-child { border-bottom: none; }
/* group leaders stand out */
.member-row.leader {
  background: color-mix(in srgb, var(--gold) 12%, transparent);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  padding-left: 9px;
  padding-right: 6px;
}
.member-row.leader .member-name { font-weight: 700; }
.member-row.leader .member-name > .zh-inline { font-weight: 700; }
.member-name { font-size: 0.85rem; min-width: 0; }
.member-role { display: block; font-size: 0.7rem; color: var(--text-dim); }
.member-actions { display: flex; gap: 8px; flex: 0 0 auto; }
.contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  text-decoration: none;
  font-size: 1.05rem;
}
.contact-btn.wa { background: #10402c; border-color: #1f7a50; }
.contact-btn:active { opacity: 0.7; }

/* ── Map chooser sheet ── */
.map-sheet {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: #000a;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.map-sheet.hidden { display: none; }
.map-sheet-panel {
  width: 100%;
  max-width: 640px;
  background: var(--surface);
  border-radius: 20px 20px 0 0;
  padding: 18px 16px calc(16px + env(safe-area-inset-bottom));
  animation: slide-up 0.22s ease-out;
}
@keyframes slide-up { from { transform: translateY(40%); opacity: 0.4; } }
.map-sheet-title { font-size: 0.78rem; color: var(--text-dim); text-align: center; }
.map-sheet-venue { font-size: 0.95rem; font-weight: 700; text-align: center; margin: 4px 0 14px; }
.map-option {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}
.map-option span { color: var(--text-dim); font-size: 0.78rem; font-weight: 400; }
.map-option:active { opacity: 0.7; }
.map-cancel {
  width: 100%;
  background: none;
  border: none;
  color: var(--text-dim);
  padding: 12px;
  font-size: 0.9rem;
  cursor: pointer;
}

/* ── Toast ── */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(80px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 60;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.82rem;
  box-shadow: 0 4px 16px #0008;
  white-space: nowrap;
}
.toast.hidden { display: none; }

/* ── Now button ── */
.now-btn {
  position: fixed;
  right: 16px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 30;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 4px 16px #0008;
  cursor: pointer;
}
.now-btn.hidden { display: none; }

/* ── Footer ── */
.app-footer {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 16px 16px;
  font-size: 0.68rem;
  color: var(--text-dim);
  text-align: center;
}
.hidden { display: none; }

.section-bar { padding-top: 0; }
.section-bar .tab { min-height: 36px; padding: 5px 14px; }

/* ── Desktop / large screens ── */
@media (min-width: 700px) {
  main { max-width: 860px; }
  .app-footer { max-width: 860px; }
}
@media (min-width: 1000px) {
  .header-top, .tab-bar { max-width: 1180px; margin: 0 auto; width: 100%; }
  .search-bar { max-width: 1180px; margin: 0 auto; }
  .tab-bar { flex-wrap: wrap; overflow-x: visible; }
  main { max-width: 1180px; }
  .app-footer { max-width: 1180px; }
  /* newspaper columns on wide screens: chronological within each column */
  .cards { columns: 2; column-gap: 14px; }
  .cards > * { break-inside: avoid; }
}
.h-name span { display: block; }
.h-name .map-hint, .h-name span span { display: inline; }

/* transport color coding */
:root {
  --tm-cz: #3b7ddd;      /* China Southern blue */
  --tm-zh: #e07020;      /* Shenzhen Airlines orange */
  --tm-rail: #8a5fd0;
  --tm-coach: #2f9e6b;
  --tm-cross: #c9992a;
}
.t-card { border-left: 4px solid var(--border); }
.t-card.tm-flight-cz { border-left-color: var(--tm-cz); }
.t-card.tm-flight-zh { border-left-color: var(--tm-zh); }
.t-card.tm-rail { border-left-color: var(--tm-rail); }
.t-card.tm-coach { border-left-color: var(--tm-coach); }
.t-card.tm-cross { border-left-color: var(--tm-cross); }
.t-card.tm-flight-cz .t-mode { color: var(--tm-cz); }
.t-card.tm-flight-zh .t-mode { color: var(--tm-zh); }
.t-card.tm-rail .t-mode { color: var(--tm-rail); }
.t-card.tm-coach .t-mode { color: var(--tm-coach); }
.t-card.tm-cross .t-mode { color: var(--tm-cross); }
.who-chip {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 1px 9px;
  border: 1px solid var(--border);
  color: var(--text-dim);
}
.who-chip.who-cz { color: #fff; background: var(--tm-cz); border-color: var(--tm-cz); }
.who-chip.who-zh { color: #fff; background: var(--tm-zh); border-color: var(--tm-zh); }
.who-chip.who-signup { color: var(--gold); border-color: var(--gold); }
.t-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 0.7rem;
  color: var(--text-dim);
  margin: -4px 2px 12px;
}
.legend-item { display: inline-flex; align-items: center; gap: 5px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot.tm-flight-cz { background: var(--tm-cz); }
.dot.tm-flight-zh { background: var(--tm-zh); }
.dot.tm-rail { background: var(--tm-rail); }
.dot.tm-coach { background: var(--tm-coach); }
.dot.tm-cross { background: var(--tm-cross); }

/* daily brief card — collapsed by default, tap to expand */
.day-brief {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 10px 14px;
  margin: -2px 0 12px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.brief-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.brief-welcome { font-size: 0.84rem; font-weight: 650; }
.brief-chev { color: var(--text-dim); font-size: 0.8rem; transition: transform 0.2s; flex: 0 0 auto; }
.day-brief.open .brief-chev { transform: rotate(180deg); }
.brief-body {
  display: none;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 8px;
  line-height: 1.55;
  white-space: pre-line;
}
.day-brief.open .brief-body { display: block; }
.brief-welcome-zh { margin-top: 6px; font-weight: 600; color: var(--text); }

/* compact header on scroll — keeps tabs, drops the chrome */
.app-header { transition: none; }
.app-header.compact .header-title p { display: none; }
.app-header.compact .brand-seal { height: 16px; }
.app-header.compact .header-top { padding-top: 6px; padding-bottom: 2px; }
.app-header.compact .tab { min-height: 32px; padding: 4px 12px; font-size: 0.76rem; }
.app-header.compact .tab small { display: none; }
.app-header.compact .tab-bar { padding-top: 4px; padding-bottom: 6px; }
.app-header.compact .section-bar .tab { min-height: 30px; }

/* in-tab quick search */
.qs-wrap { margin-bottom: 12px; }
.quick-search {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 16px;
  outline: none;
}
.quick-search:focus { border-color: var(--accent); }

/* cross-check matrix + pax chips */
.pax-chip {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 1px 8px;
}
.xcheck { margin-bottom: 14px; }
.xtable { width: 100%; border-collapse: collapse; font-size: 0.76rem; }
.xtable th, .xtable td { text-align: left; padding: 4px 6px; border-bottom: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.xtable th { color: var(--text-dim); font-size: 0.68rem; font-weight: 600; }
.xtable tr:last-child td { border-bottom: none; }
.xtable .xtotal td { font-weight: 700; border-top: 2px solid var(--border); }
.xtable small { color: var(--accent); font-weight: 700; }
.xnote { margin-top: 8px; font-size: 0.72rem; color: var(--amber); }

/* groups view toggle + headcount dashboard */
.gview-bar { display: flex; gap: 6px; margin: -2px 0 12px; flex-wrap: wrap; }
.gview-bar .chip { min-height: 34px; font-size: 0.78rem; }
.gsum {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(76px, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}
.gsum-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--border);
  border-radius: 10px;
  padding: 8px 4px 7px;
  text-align: center;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
}
.gsum-tile.gsum-total { border-top-color: var(--accent); cursor: default; }
.gsum-tile.tm-flight-cz { border-top-color: var(--tm-cz); }
.gsum-tile.tm-flight-zh { border-top-color: var(--tm-zh); }
.gsum-tile.tm-coach { border-top-color: var(--tm-coach); }
.gsum-n { font-size: 1.25rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.gsum-l { font-size: 0.66rem; color: var(--text-dim); margin-top: 1px; white-space: nowrap; }
.gsum-mf { font-size: 0.62rem; color: var(--text-dim); opacity: 0.85; }
.g-card { border-left: 4px solid var(--border); }
.g-card.tm-flight-cz { border-left-color: var(--tm-cz); }
.g-card.tm-flight-zh { border-left-color: var(--tm-zh); }
.g-card.tm-coach { border-left-color: var(--tm-coach); }

/* rooms + roster */
.room-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 10px;
}
.room-no { font-weight: 700; font-size: 0.9rem; }
.room-occ { font-size: 0.82rem; margin: 3px 0 2px; }
.g-count {
  display: inline-block;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0 8px;
  font-size: 0.68rem;
  color: var(--text-dim);
  vertical-align: middle;
}
.day-attire {
  font-size: 0.76rem;
  color: var(--text-dim);
  margin: -6px 2px 12px;
}
.badge.attire-badge { background: transparent; color: var(--gold); border: 1px solid var(--gold); text-transform: none; }

/* organiser logo card */
.org-card { background: #fff; }
.org-logo { display: block; width: 100%; max-width: 340px; margin: 0 auto; }
.day-weather-wrap { margin-top: -8px; margin-bottom: 12px; }
.day-weather { cursor: pointer; -webkit-tap-highlight-color: transparent; margin-bottom: 0 !important; }
.wx-chev { margin-left: 6px; opacity: 0.7; display: inline-block; transition: transform 0.2s; }
.day-weather-wrap.open .wx-chev { transform: rotate(180deg); }
.wx-upd { opacity: 0.65; font-size: 0.9em; }
.wx-rain-hi { color: var(--accent); font-weight: 700; }
.wx-panel { display: none; margin-top: 8px; }
.day-weather-wrap.open .wx-panel { display: block; }
.wx-city { font-size: 0.74rem; font-weight: 700; margin: 8px 2px 5px; }
.wx-nohours { font-size: 0.72rem; color: var(--text-dim); font-style: italic; margin: 0 2px 6px; }
.wx-hours {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.wx-hours::-webkit-scrollbar { display: none; }
.wx-hour {
  flex: 0 0 auto;
  min-width: 52px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px 4px;
  font-variant-numeric: tabular-nums;
}
.wx-hour.wet { border-color: var(--seg-transit); background: color-mix(in srgb, var(--seg-transit) 12%, var(--surface)); }
.wxh-t { font-size: 0.6rem; color: var(--text-dim); }
.wxh-e { font-size: 1rem; line-height: 1.3; }
.wxh-d { font-size: 0.78rem; font-weight: 700; }
.wxh-r { font-size: 0.6rem; color: var(--text-dim); }
.wx-legend {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  color: var(--text-dim);
  margin: 2px 2px 4px;
}
.wx-legend-box {
  width: 12px; height: 12px;
  border-radius: 4px;
  flex: 0 0 auto;
  border: 1px solid var(--seg-transit);
  background: color-mix(in srgb, var(--seg-transit) 12%, var(--surface));
}
