:root {
  --paper: #05070b;
  --panel: rgba(15, 24, 20, 0.78);
  --panel-strong: rgba(25, 35, 27, 0.95);
  --ink: #f4fff0;
  --muted: #aeb9aa;
  --line: rgba(184, 255, 44, 0.2);
  --green: #b8ff8a;
  --green-strong: #9cff57;
  --blue: #82e7ff;
  --danger: #ef5350;
  --shadow: 0 30px 100px rgba(0, 0, 0, 0.46), 0 0 42px rgba(184, 255, 44, 0.08);
  --display-font: "Oxanium", "Arial Black", "Noto Sans SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-family: "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(118deg, transparent 0 22%, rgba(184, 255, 44, 0.08) 22.1% 22.28%, transparent 22.44% 100%),
    linear-gradient(90deg, rgba(184, 255, 44, 0.055) 1px, transparent 1px),
    linear-gradient(rgba(130, 231, 255, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 78% 18%, rgba(184, 255, 44, 0.12), transparent 32%),
    linear-gradient(180deg, #05070b 0%, #0a100d 60%, #05070b 100%);
  background-size: auto, 38px 38px, 38px 38px, auto, auto;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 49.8%, rgba(184, 255, 44, 0.09) 49.92% 50.08%, transparent 50.2% 100%),
    repeating-linear-gradient(180deg, transparent 0 7px, rgba(255, 255, 255, 0.018) 8px 9px);
  opacity: 0.68;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.app-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 54px;
}

.schedule-topbar {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 14px 10px 18px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(20, 29, 22, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  font-size: 1.15rem;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  flex: none;
  place-items: center;
  overflow: hidden;
  border: 2px solid var(--green-strong);
  border-radius: 50%;
  box-shadow: 0 0 22px rgba(184, 255, 44, 0.18);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.nav-pill,
.text-button,
.primary-action,
.ghost-action {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.nav-pill {
  padding: 0 14px;
  color: rgba(244, 255, 240, 0.8);
}

.nav-pill:hover,
.nav-pill.is-active {
  color: #061006;
  background: var(--green);
}

.primary-action {
  min-height: 48px;
  border: 0;
  padding: 0 22px;
  color: #071008;
  background: linear-gradient(135deg, var(--green), #74ffde);
  box-shadow: 0 18px 40px rgba(184, 255, 44, 0.18);
}

.ghost-action,
.text-button {
  border: 1px solid rgba(184, 255, 44, 0.22);
  color: var(--green);
  background: rgba(184, 255, 44, 0.08);
}

.ghost-action {
  padding: 0 18px;
}

.text-button {
  min-height: 38px;
  padding: 0 14px;
}

.primary-action:hover,
.primary-action:focus-visible,
.ghost-action:hover,
.ghost-action:focus-visible,
.text-button:hover,
.text-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(184, 255, 44, 0.16);
}

.schedule-hero {
  display: grid;
  min-height: 430px;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.78fr);
  align-items: center;
  gap: clamp(24px, 5vw, 70px);
  padding: clamp(46px, 8vw, 96px) 0 42px;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--green);
  background: rgba(184, 255, 44, 0.14);
  font-weight: 900;
}

.eyebrow::before {
  width: 8px;
  height: 8px;
  content: "";
  border-radius: 50%;
  background: var(--green);
}

.hero-copy {
  display: grid;
  gap: 20px;
}

.hero-copy h1 {
  margin: 0;
  color: var(--green-strong);
  font-family: var(--display-font);
  font-size: clamp(4rem, 13vw, 9rem);
  line-height: 0.85;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 0 30px rgba(184, 255, 44, 0.26);
}

.hero-copy p:last-child {
  max-width: 620px;
  margin: 0;
  color: rgba(244, 255, 240, 0.76);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.8;
}

.orbit-panel {
  position: relative;
  display: grid;
  min-height: 280px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.orbit-panel::before,
.orbit-panel::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(184, 255, 44, 0.24);
  border-radius: 50%;
}

.orbit-panel::before {
  width: 250px;
  height: 250px;
}

.orbit-panel::after {
  width: 172px;
  height: 172px;
  border-right-color: var(--blue);
  animation: rotateRing 12s linear infinite;
}

.orbit-panel span {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 30px rgba(184, 255, 44, 0.54);
  transform: translate(95px, -58px);
}

.orbit-panel strong {
  position: relative;
  z-index: 1;
  font-family: var(--display-font);
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  text-transform: uppercase;
}

.orbit-panel em {
  position: absolute;
  bottom: 28px;
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

.login-panel,
.schedule-app {
  display: grid;
  gap: 22px;
  margin-bottom: 60px;
}

.login-panel,
.session-card,
.schedule-form,
.list-panel,
.stats-grid article {
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.login-panel {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
  align-items: end;
  padding: clamp(20px, 4vw, 34px);
}

.login-panel h2,
.form-head h2,
.list-head h2 {
  margin: 10px 0 0;
  color: var(--ink);
  font-family: var(--display-font);
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1;
}

.login-panel p:not(.eyebrow) {
  max-width: 560px;
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.hero-copy .login-panel {
  width: 100%;
  grid-template-columns: 1fr;
  gap: 18px;
  margin: 2px 0;
  padding: 20px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(184, 255, 44, 0.075), rgba(130, 231, 255, 0.035)),
    var(--panel);
}

.hero-copy .login-panel .eyebrow {
  margin-bottom: 0;
}

.hero-copy .login-panel h2 {
  font-size: clamp(1.45rem, 3.2vw, 2.2rem);
  line-height: 1.15;
}

.hero-copy .login-panel p:not(.eyebrow) {
  margin-top: 10px;
  font-size: 0.94rem;
  line-height: 1.65;
}

.hero-copy .login-form {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.hero-copy .login-form .primary-action {
  min-width: 120px;
  min-height: 54px;
}

.login-form,
.schedule-form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
}

label span {
  color: rgba(244, 255, 240, 0.72);
  font-size: 0.9rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(184, 255, 44, 0.16);
  border-radius: 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.055);
  padding: 0 14px;
  outline: none;
}

textarea {
  min-height: 108px;
  padding: 14px;
  resize: vertical;
  line-height: 1.65;
}

input::placeholder,
textarea::placeholder {
  color: rgba(244, 255, 240, 0.34);
}

select {
  appearance: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(184, 255, 44, 0.5);
  box-shadow: 0 0 0 4px rgba(184, 255, 44, 0.08);
}

.time-type-control {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.time-type-control legend {
  margin-bottom: 8px;
  color: rgba(244, 255, 240, 0.72);
  font-size: 0.9rem;
  font-weight: 800;
}

.time-type-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 5px;
  border: 1px solid rgba(184, 255, 44, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.time-type-option {
  display: block;
  cursor: pointer;
}

.time-type-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.time-type-option span {
  display: grid;
  min-height: 42px;
  place-items: center;
  border-radius: 14px;
  color: var(--muted);
  transition: color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.time-type-option input:checked + span {
  color: #071008;
  background: var(--green);
  box-shadow: 0 6px 18px rgba(184, 255, 44, 0.16);
}

.time-type-option input:focus-visible + span {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.hint {
  grid-column: 1 / -1;
  color: var(--green);
  font-weight: 800;
}

.session-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
}

.session-card span,
.stats-grid span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.session-card strong {
  display: block;
  margin-top: 4px;
  font-size: 1.35rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.stats-grid article {
  padding: 18px;
}

.stats-grid strong {
  display: block;
  margin-top: 8px;
  color: var(--green);
  font-family: var(--display-font);
  font-size: 2.2rem;
  line-height: 1;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: 22px;
  align-items: start;
}

.schedule-form,
.list-panel {
  padding: clamp(18px, 3vw, 26px);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.list-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.schedule-list {
  display: grid;
  max-height: 620px;
  overflow: auto;
  gap: 12px;
  padding-right: 4px;
  scrollbar-color: rgba(184, 255, 44, 0.42) rgba(255, 255, 255, 0.06);
}

.schedule-item {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(184, 255, 44, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.055);
}

.schedule-item.is-done {
  border-color: rgba(184, 255, 44, 0.32);
  background: rgba(184, 255, 44, 0.08);
}

.schedule-item header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.schedule-title {
  min-width: 0;
}

.schedule-title strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 1.16rem;
}

.schedule-title time {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.schedule-details {
  display: grid;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(184, 255, 44, 0.12);
}

.schedule-location {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.schedule-location p,
.schedule-notes {
  margin: 0;
  overflow-wrap: anywhere;
}

.schedule-reminder {
  display: flex;
  min-height: 40px;
  align-items: center;
  margin: 0;
  border: 1px solid rgba(130, 231, 255, 0.18);
  border-radius: 14px;
  color: var(--blue);
  background: rgba(130, 231, 255, 0.055);
  padding: 8px 12px;
  font-size: 0.86rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.schedule-reminder::before {
  width: 7px;
  height: 7px;
  flex: none;
  margin-right: 8px;
  border-radius: 50%;
  background: currentColor;
  content: "";
  box-shadow: 0 0 14px currentColor;
}

.schedule-location p::before {
  content: "位置";
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.schedule-notes {
  padding: 10px 12px;
  border-radius: 14px;
  color: rgba(244, 255, 240, 0.76);
  background: rgba(255, 255, 255, 0.04);
  line-height: 1.65;
  white-space: pre-wrap;
}

.schedule-notes::before {
  content: "备注";
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.map-actions {
  display: flex;
  flex: none;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.map-link {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(184, 255, 44, 0.24);
  border-radius: 999px;
  color: var(--green);
  padding: 0 11px;
  font-size: 0.78rem;
  font-weight: 900;
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.map-link:hover,
.map-link:focus-visible {
  color: #071008;
  background: var(--green);
  transform: translateY(-2px);
}

.status-chip {
  flex: none;
  height: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  color: #071008;
  background: var(--green);
  font-size: 0.82rem;
  font-weight: 900;
}

.status-chip.is-doing {
  background: var(--blue);
}

.status-chip.is-todo {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.12);
}

.item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.danger-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(239, 83, 80, 0.28);
  border-radius: 999px;
  color: #ffb8b6;
  background: rgba(239, 83, 80, 0.1);
  padding: 0 14px;
  font-weight: 900;
}

.empty-state {
  display: grid;
  min-height: 260px;
  place-items: center;
  color: var(--muted);
  text-align: center;
}

.toast {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 30;
  width: min(420px, calc(100vw - 32px));
  padding: 14px 18px;
  border: 1px solid rgba(184, 255, 44, 0.28);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(22, 32, 24, 0.96);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  text-align: center;
  transform: translate(-50%, -18px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@keyframes rotateRing {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 860px) {
  .app-shell {
    width: min(100% - 20px, 680px);
    padding-top: 10px;
  }

  .schedule-topbar {
    top: 8px;
    min-height: 66px;
    border-radius: 24px;
  }

  .brand {
    font-size: 1rem;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .top-actions {
    gap: 6px;
  }

  .nav-pill {
    min-height: 36px;
    padding: 0 10px;
    font-size: 0.86rem;
  }

  .schedule-hero,
  .login-panel,
  .workspace {
    grid-template-columns: 1fr;
  }

  .schedule-hero {
    min-height: auto;
    padding: 42px 0 28px;
  }

  .orbit-panel {
    min-height: 220px;
  }
}

@media (max-width: 560px) {
  .app-shell {
    width: min(100% - 14px, 480px);
  }

  .schedule-topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
  }

  .top-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .nav-pill {
    flex: 1;
    min-width: 0;
  }

  .hero-copy h1 {
    font-size: clamp(3.4rem, 18vw, 5.6rem);
  }

  .login-panel,
  .session-card,
  .schedule-form,
  .list-panel {
    border-radius: 22px;
  }

  .session-card,
  .list-head,
  .schedule-item header {
    align-items: flex-start;
    flex-direction: column;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .schedule-list {
    max-height: none;
  }

  .primary-action,
  .ghost-action,
  .text-button,
  .danger-button {
    width: 100%;
  }
}

/* Keep Schedule timeline layout */
.schedule-topbar {
  position: sticky;
  align-items: center;
  flex-direction: row;
  overflow: visible;
  padding: 10px 12px 10px 22px;
}

.brand {
  color: var(--ink);
  font-family: var(--display-font);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1;
}

.topbar-actions,
.topbar-user {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.topbar-actions {
  margin-left: auto;
}

.topbar-login,
.topbar-logout,
.install-button,
.menu-button {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
}

.install-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 7px;
  padding: 0 15px;
  border: 1px solid rgba(184, 255, 44, 0.22);
  color: var(--green);
  background: rgba(184, 255, 44, 0.07);
  font-size: 0.86rem;
}

.install-button span {
  font-size: 1.05rem;
  line-height: 1;
}

.install-button:hover,
.install-button:focus-visible,
.install-button.is-ready {
  color: #071008;
  background: var(--green);
}

.topbar-login {
  padding: 0 20px;
  color: #071008;
  background: var(--green);
}

.topbar-user {
  max-width: min(46vw, 360px);
  min-height: 44px;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
}

.topbar-user strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-logout {
  min-height: 36px;
  flex: none;
  padding: 0 14px;
  border: 1px solid rgba(184, 255, 44, 0.3);
  color: var(--green);
  background: rgba(184, 255, 44, 0.1);
}

.topbar-user strong {
  padding: 0 4px;
}

.menu-button {
  display: none;
  width: 48px;
  flex: none;
  place-content: center;
  gap: 5px;
  border: 1px solid rgba(184, 255, 44, 0.22);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.055);
}

.menu-button span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 220ms cubic-bezier(0.2, 0, 0, 1), opacity 160ms ease;
}

.menu-button.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-button.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-button.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-menu {
  position: static;
  display: flex;
  width: auto;
  flex: none;
  gap: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  animation: none;
}

.site-menu a,
.about-button {
  display: flex;
  min-height: 42px;
  align-items: center;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-weight: 900;
}

.site-menu a:hover,
.site-menu a:focus-visible,
.site-menu a.is-active,
.about-button:hover,
.about-button:focus-visible {
  color: #071008;
  background: var(--green);
}

.mobile-install-button {
  display: none;
}

main {
  padding-top: clamp(28px, 5vw, 54px);
}

.login-panel {
  margin-top: 0;
}

.schedule-app {
  gap: 20px;
}

.workspace {
  grid-template-columns: 1fr;
}

.list-panel {
  grid-column: 1;
  grid-row: 1;
}

.schedule-form {
  width: min(100%, 560px);
  grid-column: 1;
  grid-row: 2;
}

.list-head h1 {
  margin: 10px 0 0;
  color: var(--ink);
  font-family: var(--display-font);
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 0.95;
}

.form-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.form-close,
.schedule-fab {
  display: none;
}

.schedule-list {
  display: grid;
  max-height: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 14px;
  overflow: visible;
  padding: 0;
}

.timeline-group {
  display: grid;
  min-width: 0;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(184, 255, 44, 0.14);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.035);
}

.timeline-group.is-today {
  border-color: rgba(184, 255, 44, 0.36);
  background: rgba(184, 255, 44, 0.075);
}

.timeline-group-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 2px 10px;
  border-bottom: 1px solid rgba(184, 255, 44, 0.12);
}

.timeline-group-head h2,
.timeline-group-head p {
  margin: 0;
}

.timeline-group-head h2 {
  font-family: var(--display-font);
  font-size: 1.55rem;
  line-height: 1;
}

.timeline-group-head p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.78rem;
}

.timeline-group-head > span {
  display: grid;
  width: 34px;
  height: 34px;
  flex: none;
  place-items: center;
  border-radius: 50%;
  color: #071008;
  background: var(--green);
  font-family: var(--display-font);
  font-weight: 900;
}

.timeline-items {
  display: grid;
  gap: 10px;
}

.timeline-empty {
  display: grid;
  min-height: 128px;
  place-items: center;
  margin: 0;
  color: var(--muted);
  text-align: center;
}

.schedule-item {
  border-radius: 18px;
}

.schedule-item.is-done {
  opacity: 0.68;
}

.schedule-item.is-done .schedule-title strong {
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.form-backdrop {
  display: none;
}

@keyframes menuEnter {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

  .timeline-group {
    padding: 16px;
  }
}

@media (max-width: 700px) {
  body.schedule-form-open {
    overflow: hidden;
  }

  .app-shell {
    width: min(100% - 16px, 680px);
    padding-bottom: 112px;
  }

  .schedule-topbar {
    top: 8px;
    min-height: 66px;
    align-items: center;
    flex-direction: row;
    gap: 8px;
    padding: 9px 10px 9px 16px;
    border-radius: 24px;
  }

  .brand {
    min-width: max-content;
    font-size: 1rem;
  }

  .topbar-actions {
    gap: 6px;
  }

  .install-button {
    display: none;
  }

  .topbar-login {
    min-height: 40px;
    padding: 0 15px;
  }

  .topbar-user {
    max-width: 42vw;
    padding-left: 12px;
  }

  .topbar-user strong {
    font-size: 0.9rem;
  }

  .topbar-logout {
    min-height: 34px;
    padding: 0 11px;
    font-size: 0.82rem;
  }

  .menu-button {
    display: grid;
    width: 44px;
    min-height: 44px;
  }

  .site-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    display: grid;
    width: auto;
    gap: 6px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--panel-strong);
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
    animation: menuEnter 240ms cubic-bezier(0.05, 0.7, 0.1, 1) both;
  }

  .site-menu a,
  .about-button {
    min-height: 48px;
    padding: 0 16px;
    border-radius: 18px;
  }

  .mobile-install-button {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(184, 255, 44, 0.28);
    border-radius: 18px;
    color: var(--green);
    background: rgba(184, 255, 44, 0.08);
    font-weight: 900;
  }

  .mobile-install-button.is-ready {
    color: #071008;
    background: var(--green);
  }

  .schedule-hero {
    gap: 18px;
    padding: 30px 0 24px;
  }

  .schedule-hero .hero-copy {
    gap: 14px;
  }

  .schedule-hero .hero-copy h1 {
    font-size: clamp(3.15rem, 16vw, 5rem);
  }

  .schedule-hero .hero-copy p:last-child {
    line-height: 1.7;
  }

  .hero-copy .login-panel {
    padding: 18px;
  }

  .hero-copy .login-form {
    grid-template-columns: 1fr;
  }

  .hero-copy .login-form .primary-action {
    width: 100%;
  }

  .schedule-hero .orbit-panel {
    min-height: 190px;
  }

  main {
    padding-top: 22px;
  }

  .login-panel {
    grid-template-columns: 1fr;
    margin-bottom: 24px;
    border-radius: 24px;
  }

  .schedule-app {
    display: grid;
  }

  .workspace {
    order: 1;
  }

  .stats-grid {
    order: 2;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stats-grid article {
    padding: 14px;
    border-radius: 20px;
  }

  .stats-grid strong {
    font-size: 1.7rem;
  }

  .list-panel {
    padding: 16px;
    border-radius: 24px;
  }

  .list-head {
    align-items: center;
    flex-direction: row;
  }

  .list-head h1 {
    font-size: 2.7rem;
  }

  .list-head .text-button {
    width: auto;
  }

  .schedule-list {
    grid-template-columns: 1fr;
  }

  .timeline-group {
    padding: 13px;
    border-radius: 20px;
  }

  .schedule-form {
    position: fixed;
    right: 8px;
    bottom: 8px;
    left: 8px;
    z-index: 42;
    width: auto;
    max-height: min(82vh, 720px);
    overflow: auto;
    padding: 20px;
    border-radius: 30px;
    background: var(--panel-strong);
    opacity: 0;
    pointer-events: none;
    transform: translateY(calc(100% + 24px));
    transition: opacity 200ms ease, transform 400ms cubic-bezier(0.05, 0.7, 0.1, 1);
  }

  .schedule-form.is-mobile-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .schedule-form.motion-reveal {
    opacity: 0;
    filter: none;
    pointer-events: none;
    transform: translateY(calc(100% + 24px));
  }

  .schedule-form.motion-reveal.is-mobile-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .form-close {
    display: grid;
    width: 44px;
    height: 44px;
    flex: none;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.08);
    font-size: 1.7rem;
    line-height: 1;
  }

  .form-backdrop {
    position: fixed;
    inset: 0;
    z-index: 41;
    display: block;
    background: rgba(2, 6, 4, 0.62);
    backdrop-filter: blur(8px);
  }

  .schedule-fab {
    position: fixed;
    right: 18px;
    bottom: max(18px, env(safe-area-inset-bottom));
    z-index: 30;
    display: inline-flex;
    min-height: 58px;
    align-items: center;
    gap: 10px;
    border: 0;
    border-radius: 20px;
    padding: 0 20px 0 16px;
    color: #071008;
    background: var(--green);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42), 0 0 24px rgba(184, 255, 44, 0.2);
    font-weight: 900;
  }

  .schedule-fab span {
    font-size: 1.75rem;
    line-height: 1;
  }

  .schedule-fab strong {
    font-size: 0.92rem;
  }
}

@media (max-width: 390px) {
  .schedule-topbar {
    padding-left: 13px;
  }

  .brand {
    font-size: 0.92rem;
  }

  .topbar-user {
    max-width: 39vw;
  }

  .topbar-user strong {
    max-width: 64px;
  }

  .topbar-logout {
    padding: 0 9px;
  }
}

/* Daily greeting */
.daily-greeting {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 45%, rgba(184, 255, 44, 0.13), transparent 36%),
    rgba(5, 9, 7, 0.96);
  opacity: 0;
  pointer-events: none;
  transition: opacity 420ms cubic-bezier(0.2, 0, 0, 1), filter 420ms ease;
}

.daily-greeting::before,
.daily-greeting::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(184, 255, 44, 0.18);
  border-radius: 50%;
}

.daily-greeting::before {
  width: min(74vw, 660px);
  aspect-ratio: 1;
}

.daily-greeting::after {
  width: min(48vw, 430px);
  aspect-ratio: 1;
  border-right-color: var(--blue);
  transform: rotate(-24deg);
}

.daily-greeting.is-visible {
  opacity: 1;
}

.daily-greeting.is-leaving {
  opacity: 0;
  filter: blur(14px);
}

.daily-greeting-copy {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(100%, 760px);
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.daily-greeting-line {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 3vw, 1.45rem);
  font-weight: 700;
  line-height: 1.35;
  opacity: 0;
  filter: blur(12px);
  transform: translateY(22px);
}

.daily-greeting.is-visible .daily-greeting-line {
  animation: dailyGreetingLineIn 620ms cubic-bezier(0.05, 0.7, 0.1, 1) var(--line-delay) forwards;
}

.daily-greeting-name {
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--green);
  font-family: var(--display-font);
  font-size: clamp(3.7rem, 15vw, 9rem);
  font-weight: 800;
  line-height: 0.95;
  text-shadow: 0 0 36px rgba(184, 255, 44, 0.18);
}

.daily-greeting-welcome {
  margin-top: 16px;
  color: var(--ink);
  font-size: clamp(1.25rem, 4vw, 2rem);
  font-weight: 900;
}

@keyframes dailyGreetingLineIn {
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

/* About and changelog */
body.about-open {
  overflow: hidden;
}

.about-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: 24px;
}

.about-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background:
    linear-gradient(115deg, rgba(184, 255, 44, 0.09), rgba(130, 231, 255, 0.08)),
    rgba(5, 7, 11, 0.8);
  backdrop-filter: blur(16px);
  animation: aboutFadeIn 220ms ease both;
}

.about-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto auto auto auto minmax(0, 1fr);
  width: min(700px, 100%);
  max-height: min(780px, calc(100svh - 48px));
  min-height: min(560px, calc(100svh - 48px));
  overflow: hidden;
  padding: clamp(22px, 5vw, 42px);
  border: 1px solid var(--line);
  border-radius: 30px;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    var(--panel-strong);
  box-shadow: 0 36px 120px rgba(0, 0, 0, 0.62), 0 0 58px rgba(130, 231, 255, 0.08);
  animation: aboutPanelIn 360ms cubic-bezier(0.05, 0.7, 0.1, 1) both;
}

.about-panel > .eyebrow {
  margin: 0 54px 16px 0;
}

.about-panel h2 {
  margin: 0;
  font-family: var(--display-font);
  font-size: clamp(2.25rem, 6vw, 4rem);
  line-height: 1.04;
}

.about-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  font-size: 1.5rem;
  line-height: 1;
  transition: background-color 180ms ease, transform 220ms cubic-bezier(0.2, 0, 0, 1);
}

.about-close:hover,
.about-close:focus-visible {
  background: rgba(184, 255, 44, 0.13);
  transform: rotate(8deg) scale(1.04);
}

.about-date {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.about-lead {
  margin: 12px 0 22px;
  color: var(--green);
  font-weight: 900;
}

.about-scroll {
  display: grid;
  min-height: 0;
  gap: 14px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 8px 6px 0;
  scrollbar-color: rgba(184, 255, 44, 0.46) rgba(255, 255, 255, 0.06);
}

.about-scroll:focus-visible {
  outline: 2px solid rgba(184, 255, 44, 0.36);
  outline-offset: 4px;
}

.about-version,
.about-site-info {
  border: 1px solid rgba(184, 255, 44, 0.16);
  border-radius: 20px;
  background: rgba(184, 255, 44, 0.055);
}

.about-version {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.about-version-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.about-version h3 {
  margin: 0;
  color: var(--green);
  font-family: var(--display-font);
  font-size: 1.28rem;
}

.about-version time {
  flex: none;
  color: var(--muted);
  font-size: 0.9rem;
}

.about-version ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 1.25em;
  color: rgba(244, 255, 240, 0.86);
  line-height: 1.75;
}

.about-site-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  padding: 16px 18px;
  color: var(--muted);
  font-size: 0.88rem;
}

.about-site-info a {
  color: var(--green);
  font-weight: 900;
}

@keyframes aboutFadeIn {
  from {
    opacity: 0;
  }
}

@keyframes aboutPanelIn {
  from {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(28px) scale(0.97);
  }
}

@media (max-width: 560px) {
  .about-modal {
    padding: 12px;
  }

  .about-panel {
    max-height: calc(100svh - 24px);
    min-height: min(620px, calc(100svh - 24px));
    padding: 22px 18px 18px;
    border-radius: 26px;
  }

  .about-panel h2 {
    max-width: calc(100% - 20px);
    font-size: clamp(2rem, 11vw, 3.25rem);
    overflow-wrap: anywhere;
  }

  .about-date {
    line-height: 1.55;
  }

  .about-version {
    padding: 17px;
  }

  .about-version-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .about-version ul {
    padding-left: 1.15em;
    line-height: 1.7;
  }

  .about-site-info {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Motion language shared with the personal homepage */
.cursor-trail-dot {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  width: var(--trail-size, 7px);
  height: var(--trail-size, 7px);
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(184, 255, 44, 0.92) 0 18%, rgba(130, 231, 255, 0.5) 48%, transparent 74%);
  box-shadow: 0 0 14px rgba(184, 255, 44, 0.3);
  mix-blend-mode: screen;
  opacity: 0;
  translate: -50% -50%;
  transform: translate3d(-999px, -999px, 0) scale(var(--trail-scale, 1));
  transition: opacity 180ms ease;
  will-change: transform, opacity;
}

.cursor-trail-dot.is-active {
  opacity: var(--trail-opacity, 0.42);
}

.schedule-topbar {
  animation: topbarEnter 520ms cubic-bezier(0.05, 0.7, 0.1, 1) both;
}

.motion-reveal {
  opacity: 0;
  filter: blur(7px);
  transform: translateY(26px) scale(0.985);
  transition:
    opacity 620ms cubic-bezier(0.05, 0.7, 0.1, 1),
    filter 620ms cubic-bezier(0.05, 0.7, 0.1, 1),
    transform 620ms cubic-bezier(0.05, 0.7, 0.1, 1);
}

.motion-reveal.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0) scale(1);
}

.timeline-group {
  animation: panelEnter 520ms cubic-bezier(0.05, 0.7, 0.1, 1) both;
}

.timeline-group:nth-child(2) {
  animation-delay: 70ms;
}

.timeline-group:nth-child(3) {
  animation-delay: 140ms;
}

.schedule-item {
  animation: itemEnter 420ms cubic-bezier(0.05, 0.7, 0.1, 1) both;
  transition:
    border-color 220ms cubic-bezier(0.2, 0, 0, 1),
    background-color 220ms cubic-bezier(0.2, 0, 0, 1),
    transform 220ms cubic-bezier(0.2, 0, 0, 1),
    box-shadow 220ms cubic-bezier(0.2, 0, 0, 1);
}

.topbar-login,
.topbar-logout,
.install-button,
.mobile-install-button,
.menu-button,
.primary-action,
.ghost-action,
.text-button,
.danger-button,
.schedule-fab {
  transition:
    color 220ms cubic-bezier(0.2, 0, 0, 1),
    border-color 220ms cubic-bezier(0.2, 0, 0, 1),
    background-color 220ms cubic-bezier(0.2, 0, 0, 1),
    transform 220ms cubic-bezier(0.2, 0, 0, 1),
    box-shadow 220ms cubic-bezier(0.2, 0, 0, 1);
}

@media (hover: hover) and (pointer: fine) {
  .topbar-login:hover,
  .topbar-logout:hover,
  .install-button:hover,
  .mobile-install-button:hover,
  .menu-button:hover,
  .primary-action:hover,
  .ghost-action:hover,
  .text-button:hover,
  .danger-button:hover,
  .schedule-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(184, 255, 44, 0.14);
  }

  .menu-button:hover,
  .ghost-action:hover,
  .text-button:hover {
    border-color: rgba(184, 255, 44, 0.46);
    background: rgba(184, 255, 44, 0.13);
  }

  .topbar-logout:hover {
    color: #071008;
    background: var(--green);
  }

  .timeline-group:hover {
    border-color: rgba(184, 255, 44, 0.3);
  }

  .schedule-item:hover {
    border-color: rgba(184, 255, 44, 0.42);
    background: rgba(184, 255, 44, 0.09);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
    transform: translateY(-3px);
  }

  input:hover,
  select:hover,
  textarea:hover {
    border-color: rgba(184, 255, 44, 0.4);
  }
}

@media (max-width: 460px) {
  .schedule-location {
    align-items: flex-start;
    flex-direction: column;
  }

  .map-actions,
  .map-link {
    width: 100%;
  }
}

@keyframes topbarEnter {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }
}

@keyframes panelEnter {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.985);
  }
}

@keyframes itemEnter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .daily-greeting,
  .daily-greeting-line,
  .about-backdrop,
  .about-panel,
  .schedule-topbar,
  .timeline-group,
  .schedule-item,
  .motion-reveal {
    transition: none;
    animation-duration: 1ms !important;
  }

  .motion-reveal {
    opacity: 1;
    filter: none;
    transform: none;
  }
}

@media (pointer: coarse) {
  .cursor-trail-dot {
    display: none;
  }
}
