:root {
  --bg: #0b1020;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-2: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.12);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.62);
  --muted-2: rgba(255, 255, 255, 0.42);
  --accent: #7c5cff;
  --accent-2: #35d0ba;
  --danger: #ff4d6d;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
  --radius: 16px;
  --radius-sm: 12px;
  --font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

/* Self-hosted font (drop files into ./fonts/).
   Supports either Inter variable font OR static weights. */
@font-face {
  font-family: "Inter";
  src: url("./fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("./fonts/InterVariable-Italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("./fonts/Inter-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("./fonts/Inter-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("./fonts/Inter-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("./fonts/Inter-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: #0b1020;
  overflow-x: hidden;
}

/* Keep the "scene" fixed while the content scrolls */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1200px 600px at 12% 8%, rgba(124, 92, 255, 0.22), transparent 55%),
    radial-gradient(900px 500px at 84% 14%, rgba(53, 208, 186, 0.18), transparent 55%),
    radial-gradient(700px 450px at 50% 92%, rgba(255, 77, 109, 0.10), transparent 55%),
    linear-gradient(180deg, #070a14 0%, #0b1020 40%, #060812 100%);
}

.app {
  min-height: 100%;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(11, 16, 32, 0.72);
  border-bottom: 1px solid var(--border);
}

.topbar__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand__title {
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand__subtitle {
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.yearpicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.yearpicker__label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.yearpicker__input {
  width: 92px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.18);
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.02em;
  outline: none;
}

.yearpicker__input:focus {
  border-color: rgba(124, 92, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.18);
}

.btn {
  appearance: none;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
}

.btn:active {
  transform: translateY(0);
}

.btn--secondary {
  background: rgba(124, 92, 255, 0.16);
  border-color: rgba(124, 92, 255, 0.35);
}

.btn--ghost {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.10);
  font-weight: 900;
  line-height: 1;
}

.layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px;
}

.hero {
  margin-top: 8px;
}

.card {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card--hero {
  padding: 18px 18px;
  display: grid;
  gap: 8px;
  background:
    radial-gradient(900px 420px at 18% 25%, rgba(124, 92, 255, 0.22), transparent 60%),
    radial-gradient(780px 380px at 86% 15%, rgba(53, 208, 186, 0.16), transparent 60%),
    rgba(255, 255, 255, 0.06);
}

.card__label {
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.card__value {
  font-size: 26px;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.card__meta {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.content {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 14px;
  margin-top: 14px;
}

.sidebar {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  overflow: hidden;
  position: sticky;
  top: 70px;
  height: calc(100dvh - 96px);
  display: grid;
  grid-template-rows: auto 1fr;
}

.sidebar__header {
  padding: 14px 14px 10px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.sidebar__title {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.sidebar__subtitle {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

.kwlist {
  overflow: auto;
  padding: 10px;
  display: grid;
  gap: 8px;
}

.kwitem {
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 10px 10px;
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease, transform 120ms ease;
}

.kwitem:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.16);
}

.kwitem__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.kwitem__kw {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.kwitem__range {
  font-size: 12px;
  color: var(--muted);
  text-align: right;
}

.kwitem__meta {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted-2);
}

.kwitem--active {
  border-color: rgba(124, 92, 255, 0.55);
  background: rgba(124, 92, 255, 0.16);
}

.kwitem--today {
  border-color: rgba(53, 208, 186, 0.55);
  background: rgba(53, 208, 186, 0.12);
}

.calendar {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.calendar__header {
  padding: 14px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.calendar__title {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.calendar__legend {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pill {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
  color: var(--muted);
}

.pill--accent {
  border-color: rgba(53, 208, 186, 0.45);
  background: rgba(53, 208, 186, 0.12);
  color: rgba(255, 255, 255, 0.80);
}

.months {
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.month {
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.045);
  border-radius: var(--radius);
  overflow: hidden;
}

.month__head {
  padding: 10px 12px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.03);
}

.month__name {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.month__meta {
  font-size: 12px;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: 44px repeat(7, minmax(0, 1fr));
}

.grid__cell {
  padding: 8px 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  min-height: 34px;
}

.grid__cell:nth-child(8n) {
  border-right: none;
}

.grid__cell--head {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.02);
  border-top: none;
}

.grid__cell--kwhead {
  text-align: center;
}

.grid__cell--kw {
  text-align: center;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.02);
}

.day {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
}

.day__num {
  font-weight: 650;
  letter-spacing: -0.01em;
}

.day__hint {
  font-size: 11px;
  color: var(--muted-2);
}

.grid__cell--muted {
  color: rgba(255, 255, 255, 0.28);
}

.grid__cell--today {
  outline: 2px solid rgba(53, 208, 186, 0.55);
  outline-offset: -2px;
  background: rgba(53, 208, 186, 0.08);
}

.grid__cell--weekactive {
  background: rgba(124, 92, 255, 0.10);
}

.grid__cell--weekactive.grid__cell--kw {
  background: rgba(124, 92, 255, 0.16);
  color: rgba(255, 255, 255, 0.92);
}

@media (max-width: 1100px) {
  .months {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .content {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    top: 0;
    height: auto;
  }
}


