@font-face {
  font-family: Orbitron;
  src: url("/fonts/Orbitron.ttf") format("truetype");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #121212;
  --bg-2: #161618;
  --surface: #1c1c1e;
  --surface-hover: #252528;
  --stroke: #2a2a2e;
  --text: #f2f2f5;
  --muted: #a0a0aa;
  --faint: #6e6e78;
  --accent: #c9a227;
  --axiom: #c9a227;
  --nexus: #6ea8ff;
  --prism: #c47cff;
  --down: #e85d6c;
  --glow: rgba(220, 235, 255, 0.55);
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --sans: "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  --display: Orbitron, var(--sans);
  --wrap: 4px;
  --card-r: 16px;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font: 15px/1.45 var(--sans); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.hub { min-height: 100vh; }

.splay {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  padding-left: 0.42em;
}
.glow {
  color: #f4f7fb;
  text-shadow:
    0 0 6px rgba(220, 235, 255, 0.9),
    0 0 18px rgba(180, 210, 255, 0.4),
    0 0 42px rgba(140, 180, 255, 0.2);
}

.top {
  display: flex; align-items: center; gap: 22px;
  padding: 14px 28px; border-bottom: 1px solid var(--stroke); background: var(--bg-2);
}
.mark {
  display: inline-flex; align-items: center; gap: 12px;
  color: #f4f7fb;
}
.mark .brand-mark {
  width: 28px; height: 28px; object-fit: contain;
  border-radius: 6px;
  flex: 0 0 auto;
  filter: drop-shadow(0 0 8px var(--glow));
}
.mark .splay {
  font-size: 20px;
  letter-spacing: 0.38em;
  padding-left: 0.38em;
  text-shadow: 0 0 8px var(--glow);
}
.top nav { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 13px; }
.top nav a:hover { color: var(--text); }
.top nav a.on { color: var(--text); }
.nav-logo {
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 8px;
}
.nav-logo img {
  width: 28px; height: 28px; object-fit: contain;
  filter: drop-shadow(0 0 6px var(--glow));
}
.nav-logo:hover img { filter: drop-shadow(0 0 10px rgba(255,255,255,.7)); }
.nav-word {
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.28em;
  padding-left: 0.28em;
}
.top form { margin-left: auto; }
.top button, .mint button, .shell-card button {
  background: transparent; color: var(--muted); border: 1px solid var(--stroke);
  border-radius: 6px; padding: 6px 10px; cursor: pointer;
}
.top button:hover, .mint button:hover { color: var(--text); }

main { padding: 36px 28px 72px; max-width: 1100px; margin: 0 auto; }
body.land main { max-width: 1180px; padding: 56px 32px 80px; margin: 0 auto; }

.land-brand {
  display: flex; align-items: center; justify-content: center; gap: 28px;
  margin: 8px 0 48px;
}
.land-brand .brand-mark {
  width: 92px; height: 92px; object-fit: contain;
  border-radius: 18px;
  flex: 0 0 auto;
  filter: drop-shadow(0 0 18px var(--glow)) drop-shadow(0 0 48px rgba(180, 210, 255, 0.2));
}
.land-brand .splay {
  font-size: clamp(42px, 7vw, 72px);
  letter-spacing: 0.48em;
  padding-left: 0.48em;
  margin: 0;
  line-height: 1;
}

.panes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.pane {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 22px; min-height: 240px; padding: 28px 16px 24px;
  background: #161618;
  border-radius: 6px;
  border: 1px solid #ffffff08;
  box-shadow: 0 10px 28px #00000066;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
a.pane:hover {
  transform: translateY(-3px);
  border-color: #ffffff22;
  box-shadow: 0 14px 36px #00000088, 0 0 28px rgba(180, 210, 255, 0.08);
}
.pane.soon { opacity: 0.72; cursor: default; }
.pane .glyph {
  width: 96px; height: 96px; object-fit: contain;
  filter: drop-shadow(0 0 12px var(--glow));
}
.pane .blob {
  width: 84px; height: 84px; border-radius: 50%;
  background: #f4f7fb;
  box-shadow: 0 0 16px var(--glow), 0 0 36px rgba(180, 210, 255, 0.18);
}
.pane .word {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0.46em;
  padding-left: 0.46em;
  text-shadow: 0 0 10px var(--glow);
}

.hero h1 { font-size: 42px; letter-spacing: 0.08em; margin: 0 0 8px; font-weight: 650; }
.kicker { color: var(--accent); letter-spacing: 0.16em; text-transform: uppercase; font-size: 11px; margin: 0 0 6px; }
.lede { color: var(--muted); margin: 0 0 28px; max-width: 36rem; }
.shell-card {
  background: var(--surface); border: 1px solid var(--stroke); border-radius: 10px; padding: 20px 22px;
}
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: 13px; }
.flash {
  background: var(--surface); border: 1px solid var(--stroke); border-left: 3px solid var(--accent);
  padding: 9px 12px; margin-bottom: 16px; border-radius: 4px; font-size: 13px; word-break: break-all;
}
.flash.bad { border-left-color: var(--down); }
.mint { display: flex; gap: 8px; margin-bottom: 16px; }
.mint input {
  flex: 1; background: var(--bg); border: 1px solid var(--stroke); color: var(--text);
  border-radius: 6px; padding: 8px 10px;
}
table { width: 100%; border-collapse: collapse; }
th { text-align: left; color: var(--faint); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; padding: 6px 8px 6px 0; }
td { padding: 8px 8px 8px 0; border-top: 1px solid var(--stroke); }

.login-wrap {
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(900px 480px at 50% -8%, rgba(180, 210, 255, 0.08), transparent 55%), var(--bg);
}
.login-card {
  width: min(380px, 100%); background: var(--surface); border: 1px solid var(--stroke);
  border-radius: 12px; padding: 32px 28px;
}
.login-card .mark { display: flex; margin-bottom: 18px; }
.login-card label { display: block; color: var(--muted); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; margin: 12px 0 6px; }
.login-card input {
  width: 100%; background: var(--bg); border: 1px solid var(--stroke); color: var(--text);
  border-radius: 6px; padding: 9px 11px;
}
.login-card input:focus { outline: none; border-color: var(--accent); }
.actions { margin-top: 18px; }
.login-card button {
  background: var(--accent); color: #16120a; border: 0; border-radius: 6px;
  padding: 9px 14px; font-weight: 650; cursor: pointer;
}

/* Nexus shelf */
.nx { max-width: 840px; margin-left: auto; margin-right: auto; }
.nx.busy { opacity: 0.72; pointer-events: none; }
.nx-brand {
  display: flex; align-items: center; gap: 18px;
  max-width: 840px;
  margin: 4px auto 32px;
}
.nx-brand img {
  width: 72px; height: 72px; object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(110, 168, 255, 0.45));
}
.nx-brand .splay {
  margin: 0;
  font-size: clamp(28px, 5vw, 44px);
  letter-spacing: 0.4em;
  padding-left: 0.4em;
  color: #eef4ff;
  text-shadow:
    0 0 8px rgba(110, 168, 255, 0.7),
    0 0 22px rgba(110, 168, 255, 0.28);
}
.nx-brand .nx-tick {
  margin-left: auto;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12px;
}
.nx-sec { margin: 8px 0 36px; }
.nx-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 12px;
}
.nx-head h2 { margin: 0; font-size: 28px; letter-spacing: 0.04em; font-weight: 650; }
.nx-kicker {
  margin: 0 0 4px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
}
.nx-kicker.stocks { color: #F5B942; }
.nx-kicker.cal { color: #E85D5D; }
.nx-kicker.wk { color: #C8E04A; }
.nx-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.nx-list { display: flex; flex-direction: column; gap: 14px; }
.nx-empty {
  background: var(--surface); border: 1px dashed var(--stroke); border-radius: var(--card-r);
  padding: 22px; color: var(--muted); margin: 0;
}

/* Accent plate under gray face — Nexus OffsetAccentCard wrap */
.nx-card {
  --card-accent: var(--nexus);
  position: relative;
  isolation: isolate;
}
.nx-card.stocks { --card-accent: #F5B942; }
.nx-card.cal { --card-accent: #E85D5D; }
.nx-card.cal.yearly { --card-accent: #E85D5Dbb; }
.nx-card.wk { --card-accent: #C8E04A; }
.nx-card.work { --card-accent: #E85D5D; }
.nx-card.work.off { --card-accent: #f4f7fb; }
.nx-card.work.missing { --card-accent: #E8C547; }
.nx-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--card-r);
  background: var(--card-accent);
  transform: translateX(calc(-1 * var(--wrap)));
  z-index: 0;
}
.nx-card-face {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border-radius: var(--card-r);
  overflow: hidden;
  transition: background .12s ease;
}
.nx-card:hover .nx-card-face,
.nx-card.open .nx-card-face {
  background: var(--surface-hover);
}
.nx-card.wk.active .nx-card-face { box-shadow: inset 0 0 0 1px #C8E04A55; }

.nx-card-hit {
  display: block; width: 100%; text-align: left; background: transparent;
  border: 0; color: inherit; cursor: pointer; padding: 14px 16px 14px 18px; font: inherit;
}
.nx-stock-top { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.nx-slot { height: 14px; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.nx-ticker { font-size: 22px; font-weight: 700; letter-spacing: 0.04em; }
.nx-price { font-size: 22px; margin-top: 2px; }
.nx-chg { font-size: 14px; color: var(--muted); }
.nx-stock-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.nx-gl { font-size: 16px; font-weight: 600; }
.nx-cost { font-size: 12px; color: var(--faint); }
.gain { color: #6FCF97; }
.loss { color: #E57373; }
.nx-spark { display: block; }
.nx-spark-empty { color: var(--faint); font-size: 12px; }
.nx-detail { padding: 0 16px 16px 18px; border-top: 1px solid var(--stroke); }
.nx-chart-well { background: #101318; border-radius: 10px; padding: 12px; margin: 12px 0; }
.nx-chips { display: flex; gap: 6px; margin-bottom: 10px; }
.nx-chip {
  background: transparent; color: var(--muted); border: 1px solid var(--stroke);
  border-radius: 999px; padding: 4px 10px; cursor: pointer; font-size: 12px;
}
.nx-chip.on { color: #121212; background: #F5B942; border-color: #F5B942; }
.nx-chart-big { width: 100%; }
.nx-edit { display: grid; gap: 10px; max-width: 320px; }
.nx-edit label, .nx-dialog label {
  display: grid; gap: 4px; font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
}
.nx-edit input, .nx-dialog input, .nx-dialog textarea {
  background: var(--bg); border: 1px solid var(--stroke); color: var(--text);
  border-radius: 6px; padding: 8px 10px; font: inherit; text-transform: none; letter-spacing: 0;
}
.nx-edit-row { display: flex; gap: 8px; }
.nx-cal-row { display: flex; justify-content: space-between; gap: 16px; }
.nx-cal-left { flex: 1; min-width: 0; }
.nx-cal-right { flex: 1; min-width: 0; text-align: right; }
.nx-cal-name { font-size: 16px; font-weight: 650; }
.nx-cal-when { color: var(--muted); margin-top: 4px; }
.nx-cal-count { color: #E85D5D; font-weight: 650; margin-top: 10px; }
.nx-cal-loc { font-weight: 550; }
.nx-cal-note { color: var(--muted); margin-top: 6px; white-space: pre-wrap; }
.nx-cal-tools { display: flex; gap: 8px; padding: 0 16px 12px 18px; }
.nx-work-hit { position: relative; min-height: 108px; padding-right: 64px; }
.nx-work-kind {
  position: absolute; inset: 0 0 0 52%;
  pointer-events: none;
}
.nx-card.work.morning .nx-work-kind {
  background: linear-gradient(to right, transparent, rgba(255, 154, 60, 0.42));
}
.nx-card.work.mid .nx-work-kind {
  background: linear-gradient(to right, transparent, rgba(91, 163, 217, 0.42));
}
.nx-card.work.close .nx-work-kind {
  background: linear-gradient(to right, transparent, rgba(107, 91, 212, 0.45));
}
.nx-work-emoji {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  font-size: 28px; line-height: 1; pointer-events: none;
}
.nx-work-copy { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; min-height: 80px; }
.nx-pack-row { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 14px 16px 14px 18px; }
.nx-pack-title { font-size: 16px; font-weight: 650; display: flex; gap: 8px; align-items: center; }
.nx-pack-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.nx-pill {
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid #C8E04A66; color: #C8E04A; border-radius: 999px; padding: 2px 8px; font-weight: 650;
}
.nx-btn, a.nx-btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--muted); border: 1px solid var(--stroke);
  border-radius: 6px; padding: 6px 10px; cursor: pointer; font: inherit; text-decoration: none;
}
.nx-btn:hover, a.nx-btn:hover { color: var(--text); }
.nx-btn.primary.stocks { background: #F5B942; color: #16120a; border-color: #F5B942; font-weight: 650; }
.nx-btn.primary.cal { background: #E85D5D; color: #16120a; border-color: #E85D5D; font-weight: 650; }
.nx-btn.primary.wk { background: #C8E04A; color: #16120a; border-color: #C8E04A; font-weight: 650; }
.nx-btn.danger { color: #E85D5D; border-color: #E85D5D55; }
.nx-upload { cursor: pointer; }
.nx-dialog {
  background: var(--surface); color: var(--text); border: 1px solid var(--stroke);
  border-radius: 12px; padding: 22px; width: min(420px, 100%);
}
.nx-dialog::backdrop { background: #00000088; }
.nx-dialog h3 { margin: 0 0 14px; }
.nx-dialog form { display: grid; gap: 10px; }
.nx-dialog menu { display: flex; gap: 8px; justify-content: flex-end; margin: 8px 0 0; padding: 0; }
.nx-check { display: flex !important; flex-direction: row; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--text); }
.nx-toast {
  position: fixed; right: 20px; bottom: 20px; background: var(--surface);
  border: 1px solid var(--stroke); border-left: 3px solid var(--nexus);
  padding: 10px 14px; border-radius: 6px; font-size: 13px; z-index: 20;
  max-width: min(360px, calc(100vw - 32px));
}
.nx-toast.bad { border-left-color: var(--down); }

/* Prism listen shelf — client chrome, scoped. Do not restyle .top. */
body.pr-page {
  --pr-void: #07060B;
  --pr-page: #0B1020;
  --pr-card: #121A2E;
  --pr-card-hover: #18243C;
  --pr-inset: #0A1222;
  --pr-stroke: #24FFFFFF;
  --pr-text: #F4F6FF;
  --pr-secondary: #93A0C2;
  --pr-muted: #5E6B8A;
  --pr-cyan: #4DE2FF;
  --pr-violet: #8B7CFF;
  --pr-rose: #FF8FB3;
  --pr-amber: #FFB020;
  background: var(--pr-void);
  color: var(--pr-text);
}
body.pr-page main {
  max-width: 480px;
  margin: 0 auto;
  padding-top: 28px;
  padding-bottom: 48px;
}
body.pr-page .nx-brand { max-width: none; }
.pr-brand img {
  filter: drop-shadow(0 0 12px rgba(77, 226, 255, 0.45));
}
.pr-brand .splay {
  color: #eef4ff;
  text-shadow:
    0 0 8px rgba(77, 226, 255, 0.7),
    0 0 22px rgba(139, 124, 255, 0.28);
}

.pr-label {
  margin: 0;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pr-secondary);
  padding-left: 0.22em;
}

.pr-shell { display: flex; flex-direction: column; gap: 22px; }
.pr-sec { display: flex; flex-direction: column; gap: 8px; }
.pr-stack { display: flex; flex-direction: column; gap: 8px; }

.pr-row {
  --pr-accent: var(--pr-cyan);
  display: grid;
  grid-template-columns: 4px 40px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 14px 0 8px;
  background: var(--pr-card);
  border: 1px solid var(--pr-stroke);
  border-radius: 12px;
  box-shadow: 0 10px 28px #00000055;
}
.pr-row.violet { --pr-accent: var(--pr-violet); }
.pr-row.rose { --pr-accent: var(--pr-rose); }
.pr-row.amber { --pr-accent: var(--pr-amber); }
.pr-bar {
  width: 3px;
  height: 28px;
  border-radius: 2px;
  background: var(--pr-accent);
  opacity: 0.85;
}
.pr-thumb {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 10px;
  background: color-mix(in srgb, var(--pr-accent) 10%, var(--pr-inset));
}
.pr-art-na {
  background:
    radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--pr-accent) 35%, transparent), transparent 55%),
    var(--pr-inset);
}
.pr-row-copy { min-width: 0; }
.pr-title {
  margin: 0;
  font-size: 15px;
  font-weight: 550;
  color: var(--pr-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pr-sub {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--pr-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pr-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  color: var(--pr-muted);
  font-size: 11px;
  font-family: var(--mono);
  white-space: nowrap;
}
.pr-meta span:first-child { color: var(--pr-cyan); font-size: 13px; font-weight: 650; }

.pr-empty {
  margin: 0;
  padding: 16px 18px;
  background: var(--pr-card);
  border: 1px dashed var(--pr-stroke);
  border-radius: 12px;
  color: var(--pr-secondary);
  font-size: 13px;
}

.pr-mini {
  background: var(--pr-card);
  border: 1px solid var(--pr-stroke);
  border-radius: 16px;
  padding: 10px 12px 12px;
  box-shadow: 0 12px 32px #00000066;
}
.pr-seek {
  height: 4px;
  border-radius: 999px;
  margin: 4px 4px 12px;
  background: linear-gradient(90deg, var(--pr-cyan), var(--pr-violet));
  box-shadow: 0 0 10px rgba(77, 226, 255, 0.35);
  position: relative;
}
.pr-seek span {
  position: absolute;
  right: 18%;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #F4F6FF;
  transform: translate(50%, -50%);
  box-shadow: 0 0 8px rgba(77, 226, 255, 0.8);
}
.pr-mini-row {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 12px;
}
.pr-mini-art {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--pr-inset);
}
.pr-mini-copy { min-width: 0; }
.pr-play {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--pr-cyan) 45%, transparent);
  color: var(--pr-cyan);
  display: grid;
  place-items: center;
  font-size: 13px;
  line-height: 1;
}
.pr-play.on {
  border-color: var(--pr-cyan);
  box-shadow: 0 0 14px rgba(77, 226, 255, 0.45);
}

@media (max-width: 960px) {
  .panes { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .top { flex-wrap: wrap; }
  .hero h1 { font-size: 32px; }
  .land-brand { flex-direction: column; gap: 16px; }
}
@media (max-width: 720px) {
  .panes { grid-template-columns: 1fr; }
  .nx-head, .nx-stock-top, .nx-cal-row, .nx-pack-row { flex-direction: column; align-items: stretch; }
  .nx-stock-right, .nx-cal-right { text-align: left; align-items: flex-start; }
  .nx-actions { width: 100%; }
  .nx-brand { flex-wrap: wrap; }
  .nx-brand .nx-tick { margin-left: 0; }
}
