:root {
  color-scheme: dark;
  --bg: #0d0d0d;
  --panel: rgba(22, 22, 22, 0.9);
  --panel-strong: rgba(30, 30, 30, 0.96);
  --line: rgba(255, 255, 255, 0.08);
  --text: #f3efe7;
  --muted: #c8bca8;
  --accent: #ff5a1f;
  --accent-soft: rgba(255, 90, 31, 0.18);
  --accent-strong: #ff7a45;
  --success: #83ff8f;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: "IBM Plex Sans", sans-serif;
  color: var(--text);
  background-color: var(--bg);
  background:
    radial-gradient(circle at top left, rgba(255, 90, 31, 0.14), transparent 30%),
    radial-gradient(circle at right 20%, rgba(255, 208, 0, 0.08), transparent 25%),
    linear-gradient(135deg, #090909 0%, #151515 45%, #090909 100%);
}

button,
input {
  font: inherit;
}

.page-glow {
  position: fixed;
  top: 0;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.24;
  pointer-events: none;
}

.page-glow-left {
  left: -10rem;
  background: #ff5a1f;
}

.page-glow-right {
  right: -10rem;
  background: #ffd000;
}

.shell {
  width: min(1380px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 3rem 0 4rem;
}

.hero {
  max-width: 720px;
  margin-bottom: 2rem;
}

.eyebrow,
.section-label {
  margin: 0 0 0.4rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18rem;
  color: var(--accent-strong);
}

.hero h1,
.login-card h2,
.dashboard h2,
.day-column h3 {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.04em;
  font-weight: 400;
}

.hero h1 {
  font-size: clamp(3.2rem, 9vw, 6.8rem);
  line-height: 0.92;
  max-width: 10ch;
}

.hero-copy {
  max-width: 58ch;
  margin: 1rem 0 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--muted);
}

.login-card,
.dashboard {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  background-color: var(--panel);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.login-card {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: end;
  justify-content: space-between;
  padding: 1.5rem;
}

.login-card h2,
.dashboard h2 {
  font-size: clamp(2rem, 5vw, 3.25rem);
}

.login-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  min-width: min(420px, 100%);
}

.login-form input {
  flex: 1 1 220px;
  min-height: 3.4rem;
  padding: 0 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.login-form input::placeholder {
  color: rgba(243, 239, 231, 0.5);
}

.login-form button,
.ghost-button {
  min-height: 3.4rem;
  padding: 0 1.2rem;
  border-radius: 16px;
  border: 0;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.login-form button {
  background: linear-gradient(135deg, var(--accent), #ff874f);
  color: #100a06;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(255, 90, 31, 0.28);
}

.ghost-button {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text);
}

.login-form button:hover,
.ghost-button:hover,
.slot-button:hover {
  transform: translateY(-1px);
}

.login-hint,
.legend,
.slot-people.empty {
  color: var(--muted);
}

.dashboard {
  margin-top: 1.5rem;
  padding: 1.5rem;
}

.dashboard-top {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 1rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
}

.status-message {
  min-height: 1.5rem;
  margin-bottom: 1rem;
  color: var(--success);
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 1rem;
}

.day-column {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel-strong);
  overflow: hidden;
}

.day-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1rem 0.9rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 90, 31, 0.18), rgba(255, 255, 255, 0.03)),
    var(--panel-strong);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  position: sticky;
  top: 0;
}

.day-header h3 {
  font-size: clamp(1.7rem, 4vw, 2.2rem);
}

.day-header p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.day-toggle {
  flex-shrink: 0;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.day-column.collapsed .day-header {
  border-bottom-color: transparent;
}

.day-column.collapsed .slots {
  display: none;
}

.slots {
  padding: 0.9rem;
  display: grid;
  gap: 0.75rem;
  max-height: 70vh;
  overflow: auto;
}

.slot-button {
  width: 100%;
  padding: 0.9rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    #171717;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.slot-button.active {
  border-color: rgba(255, 122, 69, 0.8);
  background:
    linear-gradient(180deg, rgba(255, 90, 31, 0.28), rgba(255, 90, 31, 0.08)),
    #1f140f;
}

.slot-button.busy {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.slot-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.45rem;
}

.slot-time {
  font-size: 1rem;
  font-weight: 700;
}

.slot-count {
  min-width: 2rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.slot-people {
  font-size: 0.94rem;
  line-height: 1.4;
}

.slot-label {
  display: inline-block;
  margin-bottom: 0.55rem;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.slot-attendees {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.attendee-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid rgba(255, 140, 87, 0.45);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 122, 69, 0.3), rgba(255, 90, 31, 0.14)),
    rgba(255, 90, 31, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 8px 18px rgba(255, 90, 31, 0.12);
  color: #ffd8c9;
  font-size: 0.9rem;
  font-weight: 700;
}

.slot-button.busy .attendee-pill {
  color: #fff2eb;
}

.hidden {
  display: none;
}

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

  .day-header {
    align-items: start;
    flex-direction: column;
  }

  .slots {
    max-height: none;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 1rem, 100%);
    padding-top: 1rem;
  }

  .hero h1 {
    font-size: 3.6rem;
  }

  .login-card,
  .dashboard {
    padding: 1rem;
    border-radius: 22px;
  }

  .dashboard-top {
    align-items: stretch;
  }

  .actions {
    width: 100%;
    align-items: stretch;
  }

  .legend,
  .ghost-button {
    width: 100%;
  }

  .day-header {
    padding: 0.9rem;
  }

  .day-toggle {
    align-self: stretch;
    text-align: center;
  }

  .slot-button {
    padding: 0.8rem;
  }

  .slot-top {
    align-items: start;
    flex-direction: column;
    gap: 0.55rem;
  }

  .slot-count {
    min-width: 0;
  }

  .attendee-pill {
    max-width: 100%;
  }
}
