:root {
  color-scheme: dark;
  --bg: #0b1220;
  --panel: #111d35;
  --text: #e9eef7;
  --muted: #b3bfd1;
  --border: #304262;
  --accent: #a4c7ff;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg), #14223c);
}
.page { max-width: 1040px; margin: 0 auto; padding: 40px 20px 64px; }
.hero, .panel {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, .035);
}
.hero { position: relative; padding: 24px; margin-bottom: 18px; }
.eyebrow { margin: 0 0 8px; color: var(--accent); font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
h1 { max-width: 680px; margin: 0 0 22px; font-size: clamp(1.65rem, 3.2vw, 2.4rem); }
.calendar-link { display: inline-block; margin-bottom: 18px; color: var(--accent); text-decoration: none; font-weight: 600; }
.calendar-link:hover, .ghost:hover { text-decoration: underline; }
.menu { display: flex; flex-wrap: wrap; gap: 8px; }
.menu-btn { border: 1px solid var(--border); background: #0b1730; color: var(--muted); padding: 10px 16px; border-radius: 8px; font: inherit; font-weight: 600; cursor: pointer; }
.menu-btn.is-active { background: var(--accent); border-color: var(--accent); color: #0b1220; }
.panel { display: none; padding: 24px; }
.panel.is-active { display: block; }
.panel-header { margin-bottom: 20px; }
.panel-header h2 { margin: 0 0 6px; font-size: 1.2rem; }
.panel-header p { margin: 0; color: var(--muted); line-height: 1.5; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 16px; align-items: end; }
.field { display: flex; flex-direction: column; gap: 8px; color: var(--muted); font-size: .9rem; }
.field input:not([type="checkbox"]), .field select { width: 100%; min-height: 44px; padding: 9px 12px; border-radius: 8px; border: 1px solid #526481; font: inherit; font-size: 1rem; color: var(--text); background: #14223c; }
.field.checkbox { flex-direction: row; align-items: center; gap: 10px; min-height: 44px; }
.field.checkbox input { width: 18px; height: 18px; accent-color: var(--accent); }
.primary { min-height: 44px; padding: 10px 18px; border-radius: 8px; border: 1px solid var(--accent); background: var(--accent); color: #0b1220; font: inherit; font-weight: 700; cursor: pointer; }
.primary:hover, .menu-btn.is-active:hover { background: #c6dcff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.results { margin-top: 20px; padding: 18px; border-radius: 10px; background: #0b1730; border: 1px solid var(--border); color: var(--muted); line-height: 1.5; }
.result-main { font-size: 1.1rem; color: var(--text); font-weight: 600; margin-bottom: 10px; }
.result-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.footer { margin-top: 36px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.ghost { display: inline-flex; padding: 10px 18px; border-radius: 10px; border: 1px solid var(--border); background: #0b1730; text-decoration: none; color: var(--accent); font-weight: 600; }
.bmc { display: flex; justify-content: center; }
@media (max-width: 600px) { .page { padding: 12px 12px 48px; } .hero, .panel { padding: 18px; } .menu-btn { flex: 1; } }

.secondary { min-height: 44px; padding: 10px 18px; border-radius: 8px; border: 1px solid var(--border); background: #0b1730; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; }
.secondary:hover { background: #1c3050; }
.hint { color: var(--muted); font-size: .875rem; line-height: 1.5; margin: 16px 0 0; }
.result-action { display: inline-block; margin-top: 14px; color: var(--accent); font-weight: 600; }
