:root {
  --bg: #f6f5fb; --surface: #ffffff; --border: #e4e2ef; --text: #16151f; --text2: #5d5b6e;
  --accent: #7c3aed; --accent-ink: #ffffff; --danger: #dc2626;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0b0b14; --surface: #1b1b29; --border: #2e2e40; --text: #f5f5f7; --text2: #9a9aae; --accent: #a78bfa; --accent-ink: #0b0b14; --danger: #f87171; }
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
body { display: flex; justify-content: center; padding: 16px; }
[hidden] { display: none !important; }
.wrap { width: min(520px, 100%); }
.brand { font-weight: 800; display: flex; gap: 8px; align-items: baseline; margin: 8px 0 20px; }
.logo { color: var(--accent); }
.sub { font-weight: 500; font-size: 13px; color: var(--text2); }
.muted { color: var(--text2); } .small { font-size: 13px; }
.error { color: var(--danger); font-weight: 600; }
form { display: flex; gap: 8px; }
input, textarea {
  flex: 1; font: inherit; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text);
}
textarea { width: 100%; resize: vertical; margin: 10px 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px;
  border-radius: 10px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  border: 1px solid var(--border); background: transparent; color: var(--text);
}
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.ghost.small { min-height: 34px; padding: 0 12px; font-size: 13px; }
.panel-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
h1 { font-size: 22px; margin: 0; }
.trip-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 16px; margin-bottom: 10px; cursor: pointer;
}
.trip-card:hover { border-color: var(--accent); }
.trip-name { font-weight: 700; font-size: 16px; }
.trip-meta { color: var(--text2); font-size: 13px; margin-top: 4px; }
