/* ============================================================
   Astra Origins — Space Events (header destination) · page styles
   Shared shell lives in cosmos.css. Loaded globally in master so
   right-pane swaps stay styled.
   ============================================================ */

/* Header link active state (synced by events.js) */
.t-tn.is-on { background: oklch(from var(--accent) l c h / 0.18); color: var(--accent); }

/* ── Hero — live broadcast countdown ──────────────────── */
.ev-hero {
  position: relative; overflow: hidden; cursor: pointer;
  border-radius: 14px; padding: 26px 24px; margin-bottom: 16px;
  color: white;
  background:
    radial-gradient(ellipse at 85% 20%, oklch(0.42 0.16 70 / 0.6), transparent 55%),
    radial-gradient(ellipse at 12% 90%, oklch(0.4 0.16 265 / 0.7), transparent 55%),
    linear-gradient(135deg, oklch(0.15 0.05 265), oklch(0.07 0.03 250));
}
.ev-hero:hover { box-shadow: 0 18px 40px oklch(0 0 0 / 0.18); }
.ev-hero-stars {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 26%, white 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 30% 62%, white 50%, transparent 51%),
    radial-gradient(1px 1px at 48% 30%, white 50%, transparent 51%),
    radial-gradient(2px 2px at 68% 54%, white 50%, transparent 51%),
    radial-gradient(1px 1px at 84% 28%, white 50%, transparent 51%);
  opacity: 0.5;
}
.ev-hero-orbit {
  position: absolute; top: 50%; right: 7%; width: 150px; height: 150px;
  transform: translateY(-50%);
  border: 1px dashed oklch(0.8 0.06 250 / 0.35); border-radius: 50%;
  animation: ev-spin 22s linear infinite;
}
.ev-hero-planet {
  position: absolute; top: -7px; left: 50%; width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, oklch(0.8 0.14 70), oklch(0.4 0.12 60));
  box-shadow: 0 0 14px oklch(0.7 0.14 70 / 0.7);
}
@keyframes ev-spin { to { transform: translateY(-50%) rotate(360deg); } }
.ev-hero-body { position: relative; z-index: 1; }
.ev-live { display: inline-flex; align-items: center; gap: 7px; font-size: 9px; font-weight: 800; letter-spacing: 0.18em; color: oklch(0.85 0.12 70); padding: 4px 10px; border-radius: 999px; background: oklch(0.6 0.16 70 / 0.16); border: 1px solid oklch(0.6 0.16 70 / 0.4); }
.ev-live-dot { width: 7px; height: 7px; border-radius: 50%; background: oklch(0.75 0.18 70); animation: ev-pulse 1.4s ease-in-out infinite; }
@keyframes ev-pulse { 0%,100% { opacity: 1; box-shadow: 0 0 0 0 oklch(0.75 0.18 70 / 0.6); } 50% { opacity: 0.5; box-shadow: 0 0 0 5px oklch(0.75 0.18 70 / 0); } }
.ev-hero-title { font-size: 26px; font-weight: 800; letter-spacing: -0.015em; margin: 12px 0 6px; }
.ev-hero-sub { font-size: 13px; line-height: 1.55; opacity: 0.85; margin: 0 0 16px; max-width: 56ch; display: flex; align-items: center; gap: 6px; }
.ev-hero-sub .bi { opacity: 0.8; }
.ev-countdown { display: flex; gap: 8px; margin-bottom: 16px; }
.ev-cd { display: flex; flex-direction: column; align-items: center; min-width: 56px; padding: 10px 0; border-radius: 10px; background: oklch(0.98 0.005 250 / 0.1); border: 1px solid oklch(0.98 0.005 250 / 0.2); }
.ev-cd-n { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ev-cd-l { font-size: 8px; letter-spacing: 0.14em; opacity: 0.7; margin-top: 2px; }
.ev-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.ev-btn-primary { display: inline-flex; align-items: center; gap: 6px; background: var(--accent); color: white; border-radius: 8px; padding: 9px 14px; font-size: 10px; font-weight: 800; letter-spacing: 0.1em; border: none; cursor: pointer; }
.ev-btn-primary:hover { background: oklch(from var(--accent) calc(l - 0.05) c h); }
.ev-hero-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 9px; font-weight: 800; letter-spacing: 0.12em; color: white; background: oklch(1 0 0 / 0.12); border: 1px solid oklch(1 0 0 / 0.25); padding: 6px 10px; border-radius: 6px; }

/* ── Toolbar (tabs + controls) ─────────────────────────── */
.ev-toolbar { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.ev-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.ev-tab { display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 11px; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.ev-tab .bi { font-size: 12px; }
.ev-tab:hover { border-color: var(--accent-line); color: var(--accent); }
.ev-tab.is-on { background: var(--ink); color: white; border-color: var(--ink); }

.ev-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ev-status { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.ev-status-btn { padding: 6px 14px; border: none; background: transparent; border-radius: 999px; font-size: 11px; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.ev-status-btn.is-on { background: var(--ink); color: white; }

.ev-search { display: flex; align-items: center; gap: 7px; flex: 1 1 180px; min-width: 160px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; }
.ev-search .bi { font-size: 13px; color: var(--ink-3); }
.ev-search input { flex: 1; border: none; background: transparent; outline: none; font-size: 12px; color: var(--ink); font-family: inherit; }

.ev-dd { position: relative; }
.ev-sort-btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; color: var(--ink-2); cursor: pointer; }
.ev-sort-btn:hover { border-color: var(--accent-line); color: var(--accent); }
.ev-dd-menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 170px; z-index: 30; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 6px; box-shadow: 0 14px 32px oklch(0 0 0 / 0.12); }
.ev-dd-menu[hidden] { display: none; }
.ev-dd-item { display: block; width: 100%; text-align: left; padding: 8px 10px; border: none; background: transparent; border-radius: 7px; font-size: 12px; font-weight: 600; color: var(--ink); cursor: pointer; }
.ev-dd-item:hover { background: var(--surface-2); }
.ev-dd-item.is-on { background: oklch(from var(--accent) l c h / 0.12); color: var(--accent); }

.ev-host-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--accent); color: white; border: none; border-radius: 999px; padding: 9px 15px; font-size: 10px; font-weight: 800; letter-spacing: 0.1em; cursor: pointer; }
.ev-host-btn:hover { background: oklch(from var(--accent) calc(l - 0.05) c h); }

/* ── Section header ───────────────────────────────────── */
.ev-sh { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 18px 0 12px; }
.ev-sh-h { font-size: 15px; font-weight: 800; letter-spacing: -0.005em; }
.ev-sh-meta { font-size: 9px; color: var(--ink-3); letter-spacing: 0.14em; font-weight: 700; }

/* ── Grid + cards ─────────────────────────────────────── */
.ev-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.ev-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; cursor: pointer; transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s; }
.ev-card:hover { border-color: var(--accent-line); transform: translateY(-2px); box-shadow: 0 12px 28px oklch(0 0 0 / 0.08); }
.ev-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ev-card.is-canceled { opacity: 0.72; }
.ev-card-top { position: relative; height: 110px; }
.ev-card-stars { position: absolute; inset: 0; background-image: radial-gradient(1px 1px at 20% 30%, white 50%, transparent 51%), radial-gradient(1.5px 1.5px at 55% 60%, white 50%, transparent 51%), radial-gradient(1px 1px at 80% 35%, white 50%, transparent 51%); opacity: 0.6; }
.ev-card-tag { position: absolute; top: 10px; left: 12px; display: inline-flex; align-items: center; gap: 5px; font-size: 8px; font-weight: 800; letter-spacing: 0.12em; color: white; background: oklch(0 0 0 / 0.45); border: 1px solid oklch(1 0 0 / 0.18); padding: 4px 8px; border-radius: 5px; backdrop-filter: blur(4px); }
.ev-card-tag .bi { font-size: 10px; }
.ev-card-flag { position: absolute; top: 10px; right: 12px; display: inline-flex; align-items: center; gap: 5px; font-size: 8px; font-weight: 800; letter-spacing: 0.12em; padding: 4px 8px; border-radius: 5px; color: white; backdrop-filter: blur(4px); }
.ev-flag-live { background: oklch(0.55 0.2 25 / 0.85); border: 1px solid oklch(1 0 0 / 0.25); }
.ev-flag-cancel { background: oklch(0.4 0.02 250 / 0.8); border: 1px solid oklch(1 0 0 / 0.2); }
.ev-flag-past { background: oklch(0.35 0.01 250 / 0.8); border: 1px solid oklch(1 0 0 / 0.18); }
.ev-card-date { position: absolute; bottom: -1px; right: 12px; display: flex; flex-direction: column; align-items: center; background: var(--surface); border: 1px solid var(--line); border-bottom: none; border-radius: 8px 8px 0 0; padding: 6px 12px; }
.ev-d { font-size: 18px; font-weight: 800; line-height: 1; letter-spacing: -0.01em; color: var(--ink); }
.ev-mo { font-size: 8px; color: var(--ink-3); letter-spacing: 0.1em; margin-top: 1px; }
.ev-card-body { padding: 14px 16px; }
.ev-card-title { font-size: 15px; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 8px; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ev-card-meta { display: flex; align-items: center; gap: 6px; font-size: 9px; color: var(--ink-3); letter-spacing: 0.08em; margin-bottom: 3px; }
.ev-card-meta .bi { font-size: 11px; color: var(--ink-2); }
.ev-card-desc { font-size: 12px; color: var(--ink-2); line-height: 1.5; margin: 8px 0 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ev-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.ev-seats { font-size: 9px; color: var(--ink-3); letter-spacing: 0.1em; font-weight: 700; }
.ev-card-btn { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 800; letter-spacing: 0.08em; color: var(--accent); }
.ev-card-btn.is-booked { color: oklch(0.55 0.15 145); }

/* ── Empty / loader / sentinel ────────────────────────── */
.ev-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 48px 16px; color: var(--ink-3); font-size: 11px; letter-spacing: 0.1em; }
.ev-empty .bi { font-size: 30px; opacity: 0.5; }
.ev-loader { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 22px; color: var(--ink-3); font-size: 10px; letter-spacing: 0.12em; }
.ev-loader[hidden] { display: none; }
.ev-loader-spinner { width: 16px; height: 16px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: ev-rot 0.7s linear infinite; }
@keyframes ev-rot { to { transform: rotate(360deg); } }
.ev-sentinel { height: 1px; }

/* ── Skeletons ────────────────────────────────────────── */
.ev-sk { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.ev-sk-top { height: 110px; background: var(--surface-2); }
.ev-sk-body { padding: 14px 16px; }
.ev-sk-line { height: 11px; border-radius: 5px; background: var(--surface-2); margin-bottom: 9px; }
.ev-sk-line.w30 { width: 30%; } .ev-sk-line.w40 { width: 40%; } .ev-sk-line.w70 { width: 70%; } .ev-sk-line.w90 { width: 90%; }
.ev-sk-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.ev-sk-pill { width: 64px; height: 22px; border-radius: 6px; background: var(--surface-2); }
.ev-sk, .ev-sk-top, .ev-sk-line, .ev-sk-pill { animation: ev-pulse-sk 1.4s ease-in-out infinite; }
@keyframes ev-pulse-sk { 0%,100% { opacity: 1; } 50% { opacity: 0.55; } }

/* ── Detail page ──────────────────────────────────────── */
.ev-back { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 10px; font-weight: 800; letter-spacing: 0.1em; color: var(--ink-2); cursor: pointer; margin-bottom: 14px; }
.ev-back:hover { border-color: var(--accent-line); color: var(--accent); }
.ev-dt-banner { position: relative; overflow: hidden; border-radius: 14px; min-height: 200px; display: flex; align-items: flex-end; color: white; margin-bottom: 16px; }
.ev-dt-banner-body { position: relative; z-index: 1; padding: 22px 24px; width: 100%; }
.ev-dt-flags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.ev-dt-flags .ev-card-tag, .ev-dt-flags .ev-card-flag { position: static; }
.ev-dt-title { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; margin: 0; }
.ev-dt-company { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 700; letter-spacing: 0.1em; margin-top: 8px; opacity: 0.9; }
.ev-dt-countdown { margin-bottom: 18px; }
.ev-dt-countdown .ev-cd { background: var(--surface); border-color: var(--line); }
.ev-dt-countdown .ev-cd-n { color: var(--ink); }
.ev-dt-countdown .ev-cd-l { color: var(--ink-3); opacity: 1; }

.ev-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 6px; }
.ev-fact { display: flex; align-items: flex-start; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.ev-fact > .bi { font-size: 16px; color: var(--accent); margin-top: 2px; }
.ev-fact > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ev-fact-l { font-size: 8px; letter-spacing: 0.14em; color: var(--ink-3); font-weight: 700; }
.ev-fact-v { font-size: 13px; font-weight: 600; color: var(--ink); word-break: break-word; }
.ev-org-link { color: var(--accent); text-decoration: none; }
.ev-org-link:hover { text-decoration: underline; }

.ev-dt-desc { font-size: 14px; line-height: 1.75; color: var(--ink); overflow-wrap: anywhere; }
.ev-dt-desc p { margin: 0 0 12px; }
.ev-dt-desc img { max-width: 100%; height: auto; border-radius: 10px; }
.ev-dt-desc ul, .ev-dt-desc ol { padding-left: 20px; margin: 0 0 12px; }
.ev-dt-desc a { color: var(--accent); }

.ev-watch-btn { display: inline-flex; align-items: center; gap: 7px; background: var(--ink); color: white; border-radius: 8px; padding: 9px 16px; font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-decoration: none; margin-top: 14px; }
.ev-watch-btn:hover { background: oklch(from var(--ink) calc(l + 0.08) c h); color: white; }

.ev-map { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.ev-map iframe { width: 100%; height: 300px; border: 0; display: block; }

/* ── Action bar (under the banner, right-aligned) ─────── */
.ev-actionbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; margin: 0 0 18px; }
.ev-actionbar-book, .ev-actionbar-owner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ev-action-booked { display: inline-flex; align-items: center; gap: 7px; background: oklch(0.95 0.05 145); color: oklch(0.45 0.13 145); border: 1px solid oklch(0.82 0.1 145); border-radius: 8px; padding: 11px 20px; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; }
.ev-action-primary { display: inline-flex; align-items: center; gap: 7px; background: var(--accent); color: white; border: none; border-radius: 8px; padding: 11px 20px; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; cursor: pointer; }
.ev-action-primary:hover { background: oklch(from var(--accent) calc(l - 0.05) c h); }
.ev-action-ghost { display: inline-flex; align-items: center; gap: 7px; background: var(--surface); color: var(--ink-2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 16px; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; cursor: pointer; }
.ev-action-ghost:hover { border-color: var(--accent-line); color: var(--accent); }
.ev-action-danger { display: inline-flex; align-items: center; gap: 7px; background: oklch(0.97 0.02 25); color: oklch(0.5 0.2 25); border: 1px solid oklch(0.85 0.08 25); border-radius: 8px; padding: 10px 16px; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; cursor: pointer; }
.ev-action-danger:hover { background: oklch(0.55 0.2 25); color: white; border-color: oklch(0.55 0.2 25); }
.ev-action-disabled { display: inline-flex; align-items: center; gap: 7px; background: var(--surface-2); color: var(--ink-3); border: 1px solid var(--line); border-radius: 8px; padding: 11px 20px; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; cursor: not-allowed; }
.ev-booked-note { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; color: oklch(0.55 0.15 145); }

/* Feature (compass) toggle — gold when featured */
.ev-action-feature.is-featured { background: color-mix(in oklch, #e9c46a 18%, var(--surface)); border-color: color-mix(in oklch, #e9c46a 55%, var(--line)); color: #a9781f; }
.ev-action-feature.is-featured:hover { background: color-mix(in oklch, #e9c46a 28%, var(--surface)); color: #8a6413; border-color: color-mix(in oklch, #e9c46a 70%, var(--line)); }
.ev-action-feature.is-featured i { color: #e0a92e; }

/* ── Modals ───────────────────────────────────────────── */
.ev-modal { position: fixed; inset: 0; z-index: 1200; display: none; align-items: center; justify-content: center; padding: 20px; }
.ev-modal.is-open { display: flex; }
.ev-modal-backdrop { position: absolute; inset: 0; background: oklch(0.1 0.02 260 / 0.55); backdrop-filter: blur(3px); }
.ev-modal-dialog { position: relative; z-index: 1; width: 100%; max-width: 480px; max-height: 90vh; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 30px 70px oklch(0 0 0 / 0.3); overflow: hidden; }
.ev-modal-wide { max-width: 640px; }
.ev-modal-sm { max-width: 420px; }
.ev-confirm-ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; margin: 4px auto 16px; font-size: 24px; background: oklch(from var(--accent) l c h / 0.12); color: var(--accent); }
.ev-confirm-ic.is-danger { background: oklch(0.95 0.04 25); color: oklch(0.5 0.2 25); }
.ev-confirm-text { text-align: center; font-size: 14px; line-height: 1.6; color: var(--ink); margin: 0; }
.ev-confirm-text b { color: var(--ink); }
.ev-modal-loading { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: oklch(from var(--surface) l c h / 0.86); backdrop-filter: blur(2px); color: var(--ink-3); font-size: 10px; letter-spacing: 0.12em; border-radius: 16px; }
.ev-modal-loading[hidden] { display: none; }
.ev-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.ev-modal-title { font-size: 12px; font-weight: 800; letter-spacing: 0.12em; color: var(--ink); margin: 0; }
.ev-modal-x { border: none; background: transparent; font-size: 26px; line-height: 1; color: var(--ink-3); cursor: pointer; padding: 0 4px; }
.ev-modal-x:hover { color: var(--ink); }
.ev-modal-body { padding: 18px 20px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.ev-modal-body::-webkit-scrollbar { width: 10px; }
.ev-modal-body::-webkit-scrollbar-track { background: transparent; margin: 4px 0; }
.ev-modal-body::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; border: 2px solid var(--surface); }
.ev-modal-body::-webkit-scrollbar-thumb:hover { background: var(--ink-3); }
.ev-modal-foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line); background: var(--surface); }

.ev-form { display: flex; flex-direction: column; gap: 14px; }
.ev-field { display: flex; flex-direction: column; gap: 6px; }
.ev-field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.ev-label { font-size: 9px; letter-spacing: 0.12em; color: var(--ink-3); font-weight: 700; }
.ev-input { width: 100%; background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; font-size: 13px; color: var(--ink); font-family: inherit; outline: none; }
.ev-input:focus { border-color: var(--accent); }
.ev-textarea { resize: vertical; min-height: 90px; line-height: 1.5; }
.ev-pick { position: relative; display: flex; align-items: center; }
.ev-pick > .bi { position: absolute; left: 11px; font-size: 13px; color: var(--ink-3); pointer-events: none; z-index: 1; }
.ev-pick-input { padding-left: 32px; cursor: pointer; background-color: var(--surface-2); }
.ev-pick-input::placeholder { color: var(--ink-3); }

/* Flatpickr (date / time pickers) — themed to the design tokens.
   Scoped under .flatpickr-calendar so these win over the CDN stylesheet
   that is injected into <head> after events.css. */
.flatpickr-calendar { font-family: inherit; border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 16px 36px oklch(0 0 0 / 0.18); background: var(--surface); }
.flatpickr-calendar.arrowTop:before, .flatpickr-calendar.arrowTop:after { border-bottom-color: var(--surface); }
.flatpickr-calendar.arrowBottom:before, .flatpickr-calendar.arrowBottom:after { border-top-color: var(--surface); }
.flatpickr-calendar .flatpickr-months .flatpickr-month, .flatpickr-calendar .flatpickr-current-month input.cur-year, .flatpickr-calendar .flatpickr-monthDropdown-months { color: var(--ink); fill: var(--ink); background: var(--surface); }
.flatpickr-calendar .flatpickr-weekday { color: var(--ink-3); font-weight: 700; }
.flatpickr-calendar .flatpickr-day { color: var(--ink); border-radius: 8px; }
.flatpickr-calendar .flatpickr-day:hover { background: var(--surface-2); border-color: var(--surface-2); }
.flatpickr-calendar .flatpickr-day.today { border-color: var(--accent-line); }
.flatpickr-calendar .flatpickr-day.selected, .flatpickr-calendar .flatpickr-day.selected:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.flatpickr-calendar .flatpickr-day.flatpickr-disabled, .flatpickr-calendar .flatpickr-day.prevMonthDay, .flatpickr-calendar .flatpickr-day.nextMonthDay { color: var(--ink-3); opacity: 0.5; }
.flatpickr-calendar .flatpickr-months .flatpickr-prev-month svg, .flatpickr-calendar .flatpickr-months .flatpickr-next-month svg { fill: var(--ink-2); }
.flatpickr-calendar .flatpickr-time input, .flatpickr-calendar .flatpickr-time .flatpickr-am-pm { color: var(--ink); }
.flatpickr-calendar .flatpickr-time input:hover, .flatpickr-calendar .flatpickr-time .flatpickr-am-pm:hover { background: var(--surface-2); }
.ev-file { display: block; }
.ev-file-drop { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; background: var(--surface-2); border: 1.5px dashed var(--line); border-radius: 11px; padding: 24px 16px; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.ev-file-drop[hidden] { display: none; }
.ev-file-drop:hover, .ev-file-drop.is-drag { border-color: var(--accent); background: oklch(from var(--accent) l c h / 0.07); }
.ev-file-ic { font-size: 28px; color: var(--accent); }
.ev-file-main { font-size: 13px; color: var(--ink-2); }
.ev-file-main b { color: var(--accent); }
.ev-file-hint { font-size: 9px; letter-spacing: 0.1em; color: var(--ink-3); }
.ev-file-prev { position: relative; border-radius: 11px; overflow: hidden; border: 1px solid var(--line); }
.ev-file-prev[hidden] { display: none; }
.ev-file-prev img { width: 100%; max-height: 200px; object-fit: cover; display: block; }
.ev-file-clear { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border: none; border-radius: 50%; background: oklch(0.12 0.02 260 / 0.6); color: white; cursor: pointer; display: grid; place-items: center; backdrop-filter: blur(4px); font-size: 13px; }
.ev-file-clear:hover { background: oklch(0.55 0.2 25); }

/* Choices.js (timezone) — matched 1:1 to the .ev-input boxes */
.ev-modal .choices { margin-bottom: 0; font-size: 13px; }
.ev-modal .choices__inner { display: flex; align-items: center; background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px; min-height: 0; padding: 10px 30px 10px 12px; font-size: 13px; line-height: 1.3; }
.ev-modal .choices.is-focused .choices__inner, .ev-modal .choices.is-open .choices__inner { border-color: var(--accent); }
.ev-modal .choices.is-open .choices__inner { border-radius: 9px; }
.ev-modal .choices__list--single { padding: 0; width: 100%; }
.ev-modal .choices__list--single .choices__item { color: var(--ink); font-size: 13px; line-height: 1.3; padding: 0; }
.ev-modal .choices__placeholder { color: var(--ink-3); opacity: 1; }
.ev-modal .choices[data-type*="select-one"]::after { border-color: var(--ink-3) transparent transparent; right: 13px; margin-top: -2px; }
.ev-modal .choices__list--dropdown, .ev-modal .choices__list[aria-expanded] { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 14px 32px oklch(0 0 0 / 0.14); z-index: 40; }
.ev-modal .choices__list--dropdown .choices__input { background: var(--surface-2); border: 1px solid var(--line); border-radius: 7px; color: var(--ink); padding: 8px 10px; margin: 4px; }
.ev-modal .choices__list--dropdown .choices__item { font-size: 13px; color: var(--ink); padding: 8px 10px; }
.ev-modal .choices__list--dropdown .choices__item--selectable.is-highlighted { background: oklch(from var(--accent) l c h / 0.12); color: var(--accent); }
.ev-advanced { border: 1px solid var(--line); border-radius: 9px; padding: 8px 12px; }
.ev-advanced > summary { font-size: 9px; letter-spacing: 0.12em; color: var(--ink-3); font-weight: 700; cursor: pointer; }
.ev-advanced[open] { padding-bottom: 14px; }
.ev-advanced .ev-field, .ev-advanced .ev-field-row { margin-top: 12px; }
.ev-form-error { font-size: 11px; color: oklch(0.5 0.2 25); background: oklch(0.97 0.03 25); border: 1px solid oklch(0.85 0.08 25); border-radius: 8px; padding: 9px 12px; line-height: 1.5; }
.ev-form-error[hidden] { display: none; }
.ev-book-caption { font-size: 13px; color: var(--ink-2); line-height: 1.55; margin: 0 0 14px; }
.ev-book-caption b { color: var(--ink); }

.ev-spin { width: 13px; height: 13px; border: 2px solid oklch(1 0 0 / 0.4); border-top-color: white; border-radius: 50%; display: inline-block; animation: ev-rot 0.7s linear infinite; vertical-align: middle; }
.ev-spin[hidden] { display: none; }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 1100px) { .ev-grid { grid-template-columns: 1fr; } .ev-facts { grid-template-columns: 1fr; } }
@media (max-width: 768px) {
  .ev-hero-title { font-size: 21px; }
  .ev-hero-orbit { display: none; }
  .ev-cd { min-width: 48px; }
  .ev-cd-n { font-size: 20px; }
  .ev-dt-title { font-size: 22px; }
  .ev-controls { flex-direction: column; align-items: stretch; }
  .ev-search { min-width: 0; }
}
