:root {
  --bg1: #eff6ff; --bg2: #eef2ff; --border: #e5e7eb; --text: #111827; --muted: #6b7280;
  --accent: #4338ca; --chip: #f3f4f6; --green: #16a34a; --amber: #d97706; --red: #b91c1c; --redbg: #fef2f2; --redbd: #fecaca;
}
html, body { height: 100%; }
body {
  margin: 0; font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
  background: linear-gradient(135deg, var(--bg1), var(--bg2)); color: var(--text);
}
.container { max-width: 960px; margin: 0 auto; padding: 24px; }
.header { display: flex; justify-content: space-between; align-items: center; padding: 24px 0; }
h1 { font-size: 28px; margin: 0; font-weight: 800; letter-spacing: -0.02em; }
.logo-wrap { display: flex; align-items: center; gap: 10px; }
.title-wrap { text-align: left; }
.site-title { font-size: 28px; margin: 0; font-weight: 800; letter-spacing: -0.02em; }
.site-subtitle { margin: 2px 0 0; font-size: 14px; color: #374151; font-weight: 600; }
.logo { height: 48px; width: auto; }

/* Navigation */
.nav { display: flex; gap: 20px; font-size: 15px; font-weight: 600; margin-top: 16px; }
.nav a { text-decoration: none; color: var(--muted); transition: color 0.2s; }
.nav a:hover { color: var(--accent); }
.nav a.active { color: var(--accent); border-bottom: 2px solid var(--accent); padding-bottom: 4px; }
@media (min-width: 680px) {
  .nav { margin-top: 0; }
  .header-inner { display: flex; justify-content: space-between; align-items: center; width: 100%; }
}

/* Cards & Content */
.card { background: rgba(255,255,255,.9); border: 1px solid var(--border); border-radius: 16px; padding: 24px; box-shadow: 0 10px 20px rgba(2,6,23,.05); margin-bottom: 24px; }
.title { font-size: 22px; font-weight: 700; margin: 0 0 16px; color: var(--accent); }
.content { font-size: 15px; line-height: 1.7; color: #334155; }
.content h3 { margin-top: 24px; margin-bottom: 8px; color: #111827; font-size: 18px; }
.content p { margin-top: 0; margin-bottom: 16px; }
.content ul { margin-top: 0; margin-bottom: 16px; padding-left: 20px; }
.content li { margin-bottom: 8px; }

/* Form Elements */
.muted { color: var(--muted); font-size: 14px; }
.input { width: 100%; border: 1px solid var(--border); border-radius: 16px; padding: 12px 14px; font-size: 16px; outline: none; }
.input:focus { box-shadow: 0 0 0 3px rgba(67,56,202,.2); border-color: #c7d2fe; }
.dropdown { position: relative; padding-right: 48px; }
.menu { position: absolute; left: 0; right: 0; top: calc(100% + 8px); max-height: 280px; overflow: auto; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 10px 20px rgba(2,6,23,.08); z-index: 10; }
.item { display: flex; justify-content: space-between; gap: 12px; width: 100%; padding: 10px 12px; background: none; border: 0; text-align: left; font-size: 14px; cursor: pointer; }
.item:hover { background: #eef2ff; }

/* Tables & Chips */
.table { border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.thead { display: grid; grid-template-columns: 1.1fr .9fr .9fr .8fr; gap: 6px; padding: 10px 14px; background: #f9fafb; font-weight: 600; font-size: 12px; }
.row { display: grid; grid-template-columns: 1.1fr .9fr .9fr .8fr; gap: 6px; padding: 10px 14px; border-top: 1px solid var(--border); font-size: 14px; }
.chip { display: inline-block; border-radius: 999px; padding: 2px 8px; font-size: 12px; }
.thead > div, .row > div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.entry { background: #dcfce7; color: #166534; }
.transit { background: #fef3c7; color: #92400e; }

/* Alerts */
.alert { border: 1px solid #fde68a; background: #fffbeb; color: #92400e; border-radius: 12px; padding: 12px 16px; margin: 16px 0; line-height: 1.5; }
.alert-danger { border: 1px solid var(--redbd); background: var(--redbg); color: var(--red); }
.alert-info { border: 1px solid #c7d2fe; background: #e0e7ff; color: #3730a3; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0 16px; }

footer { padding: 24px 0; text-align: center; color: var(--muted); font-size: 12px; }
.intro { font-size: 14px; line-height: 1.6; color: #334155; background: #eef2ff; border: 1px solid #e0e7ff; border-radius: 12px; padding: 10px 12px; margin-bottom: 14px; }

@media (max-width: 680px) {
  .dropdown { padding-right: 32px; }
  .thead { font-size: 11px; padding: 8px 10px; }
  .row { font-size: 12px; padding: 8px 10px; }
  .chip { font-size: 10px; padding: 2px 6px; }
  .logo { height: 32px; }
  h1 { font-size: 22px; }
}