:root {
  --space-void: #07090b;
  --space-deep: #0b0f13;
  --space-panel: rgba(8, 14, 21, 0.8);
  --space-panel-raised: rgba(12, 20, 29, 0.9);
  --space-panel-soft: rgba(255, 255, 255, 0.035);
  --ink: #f4f8f5;
  --muted: rgba(224, 238, 231, 0.64);
  --dim: rgba(224, 238, 231, 0.42);
  --line: rgba(219, 237, 229, 0.14);
  --line-strong: rgba(204, 255, 0, 0.48);
  --neon: #ccff00;
  --neon-bright: #e5ff32;
  --cyan: #00f0ff;
  --blue: #4b7bff;
  --purple: #9c6dff;
  --danger: #ff6f87;
  --glow-neon: 0 0 28px rgba(204, 255, 0, 0.2);
  --glow-cyan: 0 0 28px rgba(0, 240, 255, 0.18);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --shadow-small: 0 12px 28px rgba(0, 0, 0, 0.26);
  --font-sans: Inter, "SF Pro Display", "Microsoft YaHei UI", "PingFang SC", "Noto Sans SC", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", "Fira Code", Consolas, monospace;
}

* {
  box-sizing: border-box;
  scrollbar-color: rgba(204, 255, 0, 0.48) rgba(255, 255, 255, 0.06);
  scrollbar-width: thin;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 72% 18%, rgba(32, 70, 132, 0.14), transparent 30rem),
    radial-gradient(circle at 18% 74%, rgba(95, 39, 135, 0.1), transparent 26rem),
    linear-gradient(rgba(3, 7, 12, 0.72), rgba(3, 7, 12, 0.96)),
    var(--space-void);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
}

body::before,
body::after {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  content: "";
}

body::before {
  background-image:
    linear-gradient(rgba(0, 240, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 94%);
  opacity: 0.55;
}

body::after {
  background:
    radial-gradient(circle at 50% 45%, transparent 25%, rgba(1, 4, 8, 0.58) 100%),
    repeating-linear-gradient(to bottom, transparent 0, transparent 4px, rgba(255, 255, 255, 0.018) 5px, transparent 6px);
  opacity: 0.8;
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.55;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

a {
  color: inherit;
}

::selection {
  color: #07100c;
  background: var(--neon);
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 8px 12px;
  color: #07100c;
  background: var(--neon);
  border-radius: 2px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-shell {
  width: 100%;
  min-height: 100vh;
  margin: 0 auto;
  padding: 0;
}

.topbar {
  position: fixed;
  inset: 0 0 auto;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 88px;
  padding: 15px 4%;
  margin: 0;
  background: linear-gradient(180deg, rgba(3, 8, 13, 0.94), rgba(3, 8, 13, 0.68));
  border: 0;
  border-bottom: 1px solid rgba(0, 240, 255, 0.17);
  border-radius: 0;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.24), inset 0 -1px 0 rgba(204, 255, 0, 0.1);
  backdrop-filter: blur(18px);
}

.topbar::before,
.topbar::after {
  position: absolute;
  width: 16px;
  height: 6px;
  pointer-events: none;
  content: "";
}

.topbar::before {
  top: 0;
  left: 2.5%;
  border-top: 1px solid var(--neon);
  border-left: 1px solid var(--neon);
}

.topbar::after {
  right: 2.5%;
  bottom: 0;
  border-right: 1px solid var(--cyan);
  border-bottom: 1px solid var(--cyan);
}

.brand {
  display: flex;
  min-width: max-content;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  min-width: 42px;
  align-items: baseline;
  color: var(--neon);
  font-size: 21px;
  letter-spacing: -0.2em;
  line-height: 1;
  text-shadow: 0 0 16px rgba(204, 255, 0, 0.52);
}

.brand-mark span {
  color: var(--ink);
  font-size: 21px;
  letter-spacing: -0.08em;
}

.brand-copy {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: 0.09em;
}

.brand small {
  display: block;
  margin-top: 4px;
  color: var(--dim);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.nav {
  display: flex;
  gap: 12px;
}

.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 7px 8px;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  border-radius: 0;
  font-size: 12px;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.nav a::after {
  position: absolute;
  right: 10px;
  bottom: 3px;
  left: 10px;
  height: 1px;
  background: var(--neon);
  content: "";
  opacity: 0;
  transform: scaleX(0.35);
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav a:hover,
.nav a.active {
  color: var(--neon);
  background: rgba(204, 255, 0, 0.045);
  border-bottom-color: var(--neon);
}

.nav a:hover::after,
.nav a.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-index {
  color: var(--neon);
  font-family: var(--font-mono);
  font-size: 9px;
}

.page {
  min-height: calc(100vh - 190px);
  animation: page-in 320ms ease both;
}

.page:not(.space-page) {
  position: relative;
  width: min(1440px, calc(100% - 48px));
  min-height: 100svh;
  padding: 148px 0 76px;
  margin: 0 auto;
}

.page:not(.space-page)::before {
  position: absolute;
  z-index: -1;
  inset: 122px 0 0;
  background: linear-gradient(90deg, rgba(3, 9, 15, 0.78), rgba(4, 12, 19, 0.46) 58%, rgba(3, 9, 15, 0.7));
  border-top: 1px solid rgba(0, 240, 255, 0.08);
  content: "";
  pointer-events: none;
}

.site-flight-rail {
  position: fixed;
  z-index: 29;
  top: 88px;
  right: 4%;
  left: 4%;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 28px;
  color: rgba(202, 222, 224, 0.58);
  border-bottom: 1px solid rgba(0, 240, 255, 0.1);
  font: 8px/1 var(--font-mono);
  letter-spacing: 0.16em;
  pointer-events: none;
}

.site-flight-rail strong {
  margin-left: 7px;
  color: var(--cyan);
  font-weight: 500;
}

.rail-system {
  color: rgba(204, 255, 0, 0.74);
}

.site-flight-rail a {
  margin-left: auto;
  color: var(--neon);
  text-underline-offset: 4px;
  pointer-events: auto;
}

.page[hidden] {
  display: none;
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.eyebrow,
.section-kicker {
  color: var(--neon);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow span {
  color: var(--cyan);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  gap: 56px;
  align-items: center;
  padding: 28px 2vw 62px;
}

.hero-copy h1,
.page-heading h1,
.contact-copy h1 {
  margin-top: 15px;
  font-size: clamp(43px, 7vw, 92px);
  font-weight: 740;
  line-height: 0.98;
  letter-spacing: -0.075em;
}

.hero-copy h1 em {
  color: var(--neon);
  font-family: var(--font-mono);
  font-size: 0.68em;
  font-style: normal;
  font-weight: 600;
  letter-spacing: -0.09em;
  text-shadow: 0 0 28px rgba(204, 255, 0, 0.26);
}

.hero-summary {
  max-width: 700px;
  margin-top: 25px;
  color: var(--muted);
  font-size: clamp(15px, 1.7vw, 18px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 31px;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 17px;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: box-shadow 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.primary-link {
  color: #07100c;
  background: var(--neon);
  box-shadow: 0 0 24px rgba(204, 255, 0, 0.18);
}

.primary-link:hover {
  background: var(--neon-bright);
  box-shadow: 0 0 30px rgba(204, 255, 0, 0.36);
}

.secondary-link {
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.035);
  border: 1px solid rgba(0, 240, 255, 0.38);
}

.secondary-link:hover {
  color: var(--ink);
  background: rgba(0, 240, 255, 0.12);
  border-color: var(--cyan);
  box-shadow: var(--glow-cyan);
}

.profile-panel {
  position: relative;
  min-height: 420px;
  padding: 34px;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 52% 35%, rgba(204, 255, 0, 0.2), transparent 7rem),
    radial-gradient(circle at 76% 18%, rgba(0, 240, 255, 0.15), transparent 9rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), transparent 42%),
    #0b1115;
  border: 1px solid rgba(204, 255, 0, 0.34);
  border-radius: 3px;
  box-shadow: var(--shadow), inset 0 0 60px rgba(0, 0, 0, 0.36), var(--glow-neon);
}

.profile-panel::before {
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(0, 240, 255, 0.14);
  border-radius: 50%;
  content: "";
  transform: rotate(-16deg) scaleX(1.55);
}

.profile-panel::after {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 46px;
  height: 46px;
  border-top: 1px solid var(--cyan);
  border-right: 1px solid var(--cyan);
  content: "";
  opacity: 0.8;
}

.profile-monogram {
  position: relative;
  z-index: 2;
  display: grid;
  width: 144px;
  height: 144px;
  margin: 64px auto 67px;
  place-items: center;
  color: var(--neon);
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.2), transparent 16%),
    radial-gradient(circle at 58% 64%, rgba(0, 240, 255, 0.19), transparent 56%),
    #111a19;
  border: 1px solid var(--neon);
  border-radius: 50%;
  box-shadow: 0 0 0 10px rgba(204, 255, 0, 0.05), 0 0 0 22px rgba(0, 240, 255, 0.045), 0 0 38px rgba(204, 255, 0, 0.38);
  font-family: var(--font-mono);
  font-size: 24px;
  letter-spacing: -0.08em;
}

.profile-monogram::before,
.profile-monogram::after {
  position: absolute;
  width: 7px;
  height: 7px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--cyan);
  content: "";
}

.profile-monogram::before {
  top: 10px;
  right: 19px;
}

.profile-monogram::after {
  bottom: 20px;
  left: 8px;
  background: var(--neon);
  box-shadow: 0 0 12px var(--neon);
}

.profile-panel p {
  position: relative;
  z-index: 2;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.profile-orbit {
  position: absolute;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
}

.orbit-one {
  top: 22px;
  right: -70px;
  width: 275px;
  height: 275px;
  border-color: rgba(0, 240, 255, 0.28);
  transform: rotate(22deg) scaleX(1.35);
}

.orbit-two {
  top: 111px;
  right: 9px;
  width: 135px;
  height: 135px;
  border-color: rgba(204, 255, 0, 0.45);
  transform: rotate(-31deg) scaleX(1.24);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
  margin: 0 2vw;
}

.stat-card,
.story-card,
.contact-card,
.project-card,
.card {
  position: relative;
  background: var(--space-panel);
  border: 1px solid var(--line);
  border-radius: 3px;
  box-shadow: var(--shadow-small);
  backdrop-filter: blur(16px);
}

.stat-card::before,
.story-card::before,
.contact-card::before,
.project-card::before,
.card::before {
  position: absolute;
  top: -1px;
  left: -1px;
  width: 18px;
  height: 7px;
  border-top: 1px solid var(--neon);
  border-left: 1px solid var(--neon);
  content: "";
  pointer-events: none;
}

.stat-card {
  min-height: 154px;
  padding: 23px;
  overflow: hidden;
}

.stat-card strong {
  display: block;
  color: var(--neon);
  font-family: var(--font-mono);
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.08em;
  text-shadow: 0 0 20px rgba(204, 255, 0, 0.24);
}

.stat-card span {
  display: block;
  max-width: 260px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 12px;
}

.story-card {
  display: grid;
  grid-template-columns: minmax(230px, 0.7fr) minmax(0, 1.3fr);
  gap: 54px;
  padding: 48px;
  margin: 64px 2vw 0;
  overflow: hidden;
}

.story-card h2 {
  margin-top: 10px;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.065em;
}

.story-copy {
  display: grid;
  gap: 18px;
}

.story-point {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 13px;
  color: var(--muted);
  font-size: 14px;
}

.story-point b {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #08100c;
  background: var(--neon);
  border-radius: 1px;
  font-family: var(--font-mono);
  font-size: 10px;
  box-shadow: 0 0 17px rgba(204, 255, 0, 0.18);
}

.page-heading {
  position: relative;
  max-width: 940px;
  padding: 34px 2vw 56px;
}

.page-heading::after {
  position: absolute;
  z-index: -1;
  top: -28px;
  left: min(68vw, 900px);
  width: min(520px, 38vw);
  height: 250px;
  background:
    radial-gradient(circle at center, rgba(0, 240, 255, 0.15), transparent 28%),
    repeating-radial-gradient(ellipse at center, transparent 0 25px, rgba(204, 255, 0, 0.08) 26px 27px, transparent 28px 44px);
  content: "";
  opacity: 0.09;
  filter: saturate(0.8) contrast(1.15);
  pointer-events: none;
}

.page-heading h1,
.contact-copy h1 {
  font-size: clamp(40px, 6vw, 74px);
}

.page-heading > p:last-child,
.contact-copy > p {
  max-width: 680px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 15px;
}

.timeline {
  display: grid;
  gap: 12px;
  margin: 0 2vw;
}

.timeline-item {
  display: grid;
  grid-template-columns: 190px minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: 28px;
  padding: 29px 24px;
  background: rgba(7, 14, 21, 0.72);
  border: 1px solid var(--line);
  border-left: 2px solid rgba(204, 255, 0, 0.52);
  box-shadow: var(--shadow-small);
  backdrop-filter: blur(14px);
}

.timeline-period {
  color: var(--neon);
  font-family: var(--font-mono);
  font-size: 12px;
}

.timeline-company h2 {
  color: var(--ink);
  font-size: 19px;
  letter-spacing: -0.04em;
}

.timeline-company p {
  margin-top: 5px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 10px;
}

.timeline-summary {
  color: var(--muted);
  font-size: 14px;
}

.timeline-detail {
  display: grid;
  gap: 14px;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.timeline-tags span {
  padding: 4px 7px;
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.05);
  border: 1px solid rgba(0, 240, 255, 0.18);
  font: 600 8px/1.2 var(--font-mono);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  margin: 0 2vw;
}

.project-card {
  display: flex;
  min-height: 0;
  grid-column: 1 / -1;
  flex-direction: column;
  padding: 26px;
  overflow: hidden;
}

.project-card:nth-child(1) {
  grid-column: 1 / -1;
  background:
    radial-gradient(circle at 86% 12%, rgba(204, 255, 0, 0.2), transparent 10rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.05), transparent 55%),
    #101a19;
  border-color: rgba(204, 255, 0, 0.36);
}

.project-card:nth-child(2) {
  grid-column: 1 / -1;
  background:
    radial-gradient(circle at 82% 18%, rgba(0, 240, 255, 0.14), transparent 11rem),
    var(--space-panel);
  border-color: rgba(0, 240, 255, 0.28);
}

.project-card:nth-child(3) {
  background:
    radial-gradient(circle at 82% 18%, rgba(156, 109, 255, 0.18), transparent 10rem),
    var(--space-panel);
}

.project-index {
  color: var(--neon);
  font-family: var(--font-mono);
  font-size: 11px;
}

.project-card h2 {
  margin-top: 28px;
  color: var(--ink);
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.06em;
}

.project-card p {
  margin-top: 15px;
  color: var(--muted);
  font-size: 14px;
}

.project-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  margin: 27px 0 0;
}

.project-facts div {
  display: block;
}

.project-facts dt {
  color: var(--neon);
  font: 700 9px/1.3 var(--font-mono);
  letter-spacing: 0.08em;
}

.project-facts dd {
  margin: 9px 0 0;
  color: rgba(226, 239, 235, 0.68);
  font-size: 12px;
  line-height: 1.7;
}

.project-card h3 {
  margin-top: 26px;
  color: var(--cyan);
  font: 700 10px/1.4 var(--font-mono);
  letter-spacing: 0.08em;
}

.project-work {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  margin: 12px 0 0;
  list-style: none;
  counter-reset: work;
}

.project-work li {
  padding: 13px;
  color: rgba(230, 241, 237, 0.72);
  background: rgba(0, 0, 0, 0.18);
  border-left: 1px solid rgba(0, 240, 255, 0.28);
  font-size: 12px;
  line-height: 1.65;
  counter-increment: work;
}

.project-work li::before {
  display: block;
  margin-bottom: 6px;
  color: var(--cyan);
  font: 700 8px/1 var(--font-mono);
  content: "0" counter(work);
}

.project-card .project-result {
  padding: 13px 15px;
  margin-top: 18px;
  color: var(--ink);
  background: rgba(204, 255, 0, 0.06);
  border-left: 2px solid var(--neon);
  font-size: 12px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
  padding-top: 0;
}

.project-tags span {
  padding: 5px 8px;
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.06);
  border: 1px solid rgba(0, 240, 255, 0.22);
  border-radius: 1px;
  font-family: var(--font-mono);
  font-size: 9px;
}

.project-card:nth-child(1) .project-tags span {
  color: var(--neon);
  background: rgba(204, 255, 0, 0.08);
  border-color: rgba(204, 255, 0, 0.28);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 60px;
  align-items: center;
  min-height: calc(100vh - 170px);
  padding: 30px 4vw 60px;
}

.contact-copy .primary-link {
  margin-top: 30px;
}

.contact-card {
  padding: 34px;
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 0%, rgba(0, 240, 255, 0.14), transparent 12rem),
    var(--space-panel);
}

.contact-topic {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.contact-topic:last-child {
  border-bottom: 0;
}

.contact-topic strong {
  display: block;
  font-size: 17px;
}

.contact-topic span,
.privacy-note {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.privacy-note {
  padding: 12px;
  margin-top: 24px;
  background: rgba(0, 240, 255, 0.055);
  border-left: 2px solid var(--cyan);
}

.daylog-heading {
  max-width: none;
  padding-bottom: 34px;
}

.daylog-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(340px, 0.84fr);
  gap: 20px;
  align-items: start;
}

.card {
  background: var(--space-panel);
}

.records-card {
  padding: 24px;
}

.section-head,
.month-bar,
.detail-head,
.ai-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.section-head h2,
.ai-title-row h2 {
  color: var(--ink);
  font-size: 19px;
  letter-spacing: -0.04em;
}

.section-head p,
.ai-head > p {
  color: var(--muted);
  font-size: 11px;
}

.ghost-btn,
.icon-btn,
.entry-action,
.suggestions button {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 1px;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.ghost-btn:hover,
.icon-btn:hover,
.entry-action:hover,
.suggestions button:hover {
  color: var(--neon);
  background: rgba(204, 255, 0, 0.08);
  border-color: rgba(204, 255, 0, 0.42);
}

.ghost-btn {
  padding: 7px 11px;
  font-family: var(--font-mono);
  font-size: 10px;
}

.icon-btn {
  width: 35px;
  height: 35px;
  font-family: var(--font-mono);
  font-size: 19px;
}

.month-bar {
  margin-top: 22px;
}

.month-bar > strong {
  color: var(--neon);
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.month-actions {
  display: flex;
  gap: 7px;
}

.calendar {
  margin-top: 17px;
}

.weekdays,
.days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.weekdays {
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 9px;
  text-align: center;
}

.days {
  margin-top: 7px;
}

.day {
  position: relative;
  min-height: 66px;
  padding: 8px;
  color: var(--muted);
  background: rgba(9, 14, 19, 0.74);
  border: 1px solid rgba(219, 237, 229, 0.1);
  border-radius: 1px;
  text-align: left;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease, color 160ms ease;
}

.day:hover {
  color: var(--ink);
  background: rgba(0, 240, 255, 0.065);
  border-color: rgba(0, 240, 255, 0.38);
  transform: translateY(-1px);
}

.day.empty {
  background: transparent;
  border-color: transparent;
  pointer-events: none;
}

.day.today {
  color: var(--cyan);
  border-color: rgba(0, 240, 255, 0.54);
}

.day.selected {
  color: var(--neon);
  background: rgba(204, 255, 0, 0.12);
  border-color: var(--neon);
  box-shadow: 0 0 18px rgba(204, 255, 0, 0.13), inset 0 0 15px rgba(204, 255, 0, 0.06);
}

.day-number {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

.day-count {
  display: block;
  margin-top: 15px;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 9px;
}

.day.selected .day-count {
  color: rgba(204, 255, 0, 0.68);
}

.day .dot {
  position: absolute;
  top: 9px;
  right: 9px;
}

.day.selected .dot {
  background: var(--neon);
  box-shadow: 0 0 8px var(--neon);
}

.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.6);
}

.calendar-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 10px;
}

.day-detail {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.detail-head {
  align-items: end;
  margin-bottom: 14px;
}

.detail-head h3 {
  color: var(--ink);
  font-size: 16px;
}

.detail-head span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
}

.entry-list {
  display: grid;
  gap: 9px;
}

.entry {
  display: grid;
  grid-template-columns: 5px minmax(0, 1fr) auto;
  gap: 11px;
  padding: 12px 13px;
  background: rgba(7, 11, 15, 0.7);
  border: 1px solid rgba(219, 237, 229, 0.12);
  border-radius: 1px;
}

.entry-line {
  min-height: 40px;
  background: var(--neon);
  border-radius: 1px;
  box-shadow: 0 0 9px rgba(204, 255, 0, 0.25);
}

.entry-text {
  color: var(--ink);
  font-size: 13px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
}

.tag {
  padding: 2px 6px;
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.06);
  border: 1px solid rgba(0, 240, 255, 0.18);
  border-radius: 1px;
}

.entry-side {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.entry-time {
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 10px;
}

.entry-actions {
  display: flex;
  gap: 5px;
}

.entry-action {
  padding: 3px 7px;
  font-family: var(--font-mono);
  font-size: 9px;
}

.entry-action.danger {
  color: var(--danger);
}

.entry-action.danger:hover {
  border-color: rgba(255, 111, 135, 0.52);
  background: rgba(255, 111, 135, 0.1);
}

.empty-entry {
  padding: 20px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(0, 240, 255, 0.25);
  border-radius: 1px;
  font-size: 13px;
  text-align: center;
}

.composer {
  margin-top: 18px;
  padding: 14px;
  background: rgba(0, 240, 255, 0.025);
  border: 1px dashed rgba(0, 240, 255, 0.3);
  border-radius: 1px;
}

.composer textarea {
  width: 100%;
  min-height: 72px;
  padding: 0;
  resize: vertical;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 13px;
}

.composer textarea::placeholder,
input::placeholder {
  color: var(--dim);
}

.composer-options {
  display: grid;
  grid-template-columns: 118px minmax(160px, 1fr) auto;
  gap: 9px;
  align-items: end;
  margin-top: 10px;
}

.composer-options label,
dialog label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
}

input,
select,
dialog textarea {
  width: 100%;
  padding: 8px 9px;
  color: var(--ink);
  background: rgba(7, 11, 15, 0.78);
  border: 1px solid var(--line);
  border-radius: 1px;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(0, 240, 255, 0.65);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.1);
}

.primary-btn {
  padding: 9px 14px;
  color: #07100c;
  background: var(--neon);
  border: 0;
  border-radius: 1px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
}

.primary-btn:hover {
  background: var(--neon-bright);
  box-shadow: 0 0 20px rgba(204, 255, 0, 0.25);
}

.ai-card {
  position: sticky;
  top: 94px;
  display: flex;
  min-height: 720px;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(circle at 95% 0%, rgba(0, 240, 255, 0.12), transparent 14rem),
    var(--space-panel);
  border-color: rgba(0, 240, 255, 0.28);
  box-shadow: var(--shadow), var(--glow-cyan);
}

.ai-head {
  padding: 22px 22px 18px;
  border-bottom: 1px solid var(--line);
}

.ai-head > p {
  margin-top: 8px;
}

.agent-badge {
  padding: 4px 8px;
  color: var(--neon);
  background: rgba(204, 255, 0, 0.08);
  border: 1px solid rgba(204, 255, 0, 0.3);
  border-radius: 1px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 760;
}

.report-btn {
  width: 100%;
  padding: 10px 12px;
  margin-top: 15px;
  color: #07100c;
  background: var(--neon);
  border: 0;
  border-radius: 1px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 710;
}

.report-btn:hover {
  background: var(--neon-bright);
  box-shadow: 0 0 20px rgba(204, 255, 0, 0.24);
}

.suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.suggestions button {
  padding: 6px 8px;
  font-family: var(--font-mono);
  font-size: 9px;
}

.chat {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
}

.messages {
  display: grid;
  align-content: start;
  gap: 13px;
  flex: 1;
  max-height: 610px;
  padding: 19px 22px;
  overflow-y: auto;
}

.message {
  max-width: 91%;
}

.message.user {
  justify-self: end;
}

.message-meta {
  margin-bottom: 4px;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 9px;
}

.message.user .message-meta {
  text-align: right;
}

.bubble {
  padding: 10px 12px;
  border-radius: 1px;
  font-size: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.message.assistant .bubble {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(0, 240, 255, 0.16);
}

.message.user .bubble {
  color: #08100c;
  background: var(--neon);
}

.report-title {
  margin-bottom: 9px;
  color: var(--neon);
  font-family: var(--font-mono);
  font-size: 14px;
}

.report-heading {
  margin: 12px 0 4px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 10px;
}

.report-paragraph,
.report-item,
.report-note {
  margin-top: 4px;
  white-space: pre-wrap;
}

.report-item {
  padding-left: 8px;
}

.report-note {
  margin-top: 11px;
  color: var(--dim);
  font-size: 10px;
}

.action-card {
  margin-top: 9px;
  padding: 10px;
  background: rgba(204, 255, 0, 0.07);
  border: 1px solid rgba(204, 255, 0, 0.26);
  border-radius: 1px;
}

.action-card p {
  color: var(--muted);
  font-size: 11px;
  white-space: pre-wrap;
}

.action-card button {
  padding: 6px 9px;
  margin-top: 8px;
  color: #07100c;
  background: var(--neon);
  border: 0;
  border-radius: 1px;
  font-family: var(--font-mono);
  font-size: 9px;
}

.request-status {
  min-height: 21px;
  padding: 0 14px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
}

.request-status.error {
  color: var(--danger);
}

.chat-form {
  display: flex;
  gap: 8px;
  padding: 13px;
  background: rgba(7, 11, 15, 0.68);
  border-top: 1px solid var(--line);
}

.chat-form input {
  min-width: 0;
  flex: 1;
  font-size: 12px;
}

.chat-form button {
  width: 40px;
  color: #07100c;
  background: var(--neon);
  border: 0;
  border-radius: 1px;
  font-family: var(--font-mono);
  font-size: 16px;
}

.chat-form button:hover {
  background: var(--neon-bright);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 4px 0;
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
  color: var(--dim);
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.03em;
}

dialog {
  width: min(560px, calc(100% - 32px));
  padding: 23px;
  color: var(--ink);
  background: #0e151a;
  border: 1px solid rgba(0, 240, 255, 0.36);
  border-radius: 2px;
  box-shadow: var(--shadow), var(--glow-cyan);
}

dialog::backdrop {
  background: rgba(3, 5, 7, 0.74);
  backdrop-filter: blur(4px);
}

dialog h2 {
  margin-bottom: 16px;
  color: var(--neon);
  font-family: var(--font-mono);
  font-size: 17px;
}

dialog textarea {
  min-height: 110px;
  resize: vertical;
}

.dialog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 12px;
}

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

@media (max-width: 1040px) {
  .hero-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .profile-panel {
    min-height: 310px;
  }

  .profile-monogram {
    margin: 25px auto 34px;
  }

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

  .ai-card {
    position: static;
    min-height: 620px;
  }
}

@media (max-width: 820px) {
  .site-shell {
    width: 100%;
    padding: 0;
  }

  .topbar {
    top: 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    min-height: 108px;
    padding: 12px 18px 10px;
  }

  .site-flight-rail {
    top: 108px;
    right: 18px;
    left: 18px;
  }

  .page:not(.space-page) {
    width: min(100% - 28px, 760px);
    padding-top: 160px;
  }

  .nav {
    width: 100%;
    padding-bottom: 2px;
    overflow-x: auto;
  }

  .nav a {
    flex: 0 0 auto;
  }

  .hero-grid {
    gap: 28px;
    padding: 18px 0 38px;
  }

  .hero-copy h1,
  .page-heading h1,
  .contact-copy h1 {
    font-size: clamp(39px, 13vw, 64px);
  }

  .stat-grid {
    grid-template-columns: 1fr;
    margin: 0;
  }

  .stat-card {
    min-height: 124px;
  }

  .story-card {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 30px;
    margin: 42px 0 0;
  }

  .page-heading {
    padding: 24px 0 42px;
  }

  .page-heading::after {
    display: none;
  }

  .timeline,
  .project-grid {
    margin: 0;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .project-card,
  .project-card:nth-child(1),
  .project-card:nth-child(2) {
    grid-column: span 12;
    min-height: 0;
  }

  .project-facts,
  .project-work {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    gap: 36px;
    padding: 20px 0 40px;
  }
}

@media (max-width: 620px) {
  .site-shell {
    width: 100%;
  }

  .brand-copy {
    font-size: 11px;
  }

  .brand small {
    display: none;
  }

  .brand-mark {
    min-width: 30px;
  }

  .nav {
    gap: 1px;
  }

  .nav a {
    gap: 3px;
    padding: 6px 5px;
    font-size: 10px;
  }

  .nav-index {
    display: none;
  }

  .site-flight-rail {
    gap: 12px;
    font-size: 7px;
    letter-spacing: 0.08em;
  }

  .rail-system {
    display: none;
  }

  .page:not(.space-page) {
    width: min(100% - 22px, 520px);
  }

  .hero-actions,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-link,
  .secondary-link {
    width: 100%;
  }

  .profile-panel {
    min-height: 280px;
    padding: 25px;
    border-radius: 2px;
  }

  .records-card {
    padding: 16px;
  }

  .day {
    min-height: 52px;
    padding: 7px 5px;
  }

  .day-count {
    display: none;
  }

  .composer-options,
  .dialog-grid {
    grid-template-columns: 1fr;
  }

  .primary-btn {
    width: 100%;
  }

  .entry {
    grid-template-columns: 4px minmax(0, 1fr);
  }

  .entry-side {
    grid-column: 2;
    justify-items: start;
  }

  .ai-card {
    min-height: 560px;
  }

  .messages {
    max-height: 450px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
