:root {
  --bg: #101014;
  --card: #0c0c10;
  --input: #0c0c10;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f2f2f4;
  --muted: #9a9aa3;
  --faint: #6a6a72;
  --accent: #678bdc;
  --ink: #0c0c10;
  --ok: #678bdc;
  --font: Inter, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
input::placeholder, textarea::placeholder { color: #6d7c98; }
button { cursor: pointer; }
a { color: inherit; }
svg { display: block; }
::selection { background: rgba(103, 139, 220, 0.35); color: #fff; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--accent);
  color: var(--ink);
  padding: 8px 10px;
  border-radius: 8px;
  z-index: 30;
}
.skip:focus { top: 12px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

.field {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    linear-gradient(rgba(103, 139, 220, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(103, 139, 220, 0.07) 1px, transparent 1px),
    radial-gradient(ellipse 70% 46% at 50% -8%, rgba(103, 139, 220, 0.2), transparent 58%),
    var(--bg);
  background-size: 76px 76px, 76px 76px, auto, auto;
}
.ring { display: none; }

.floatnav, main, .toast { position: relative; z-index: 1; }

.floatnav {
  position: sticky;
  top: 18px;
  z-index: 20;
  width: max-content;
  max-width: calc(100% - 40px);
  margin: 18px auto 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px 8px 20px;
  border-radius: 999px;
  background: #0c0c10;
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.02em;
}
.brand svg { width: 15px; height: 15px; fill: none; stroke: var(--accent); }
.floatlinks {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 18px;
}
.floatlinks a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 999px;
}
.floatlinks a:hover { color: var(--text); }
.floatlinks a[aria-current="page"] { color: var(--accent); }
.account-wrap { margin-left: auto; position: relative; }
.person {
  width: 36px;
  height: 36px;
  margin-right: 2px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(103, 139, 220, 0.14);
  color: var(--text);
  display: grid;
  place-items: center;
}
.person svg { width: 16px; height: 16px; }
.person:hover, .person[aria-expanded="true"] { background: rgba(103, 139, 220, 0.18); color: #fff; }
.popover {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 240px;
  padding: 16px;
  display: grid;
  gap: 8px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
}
.popover[hidden] { display: none; }
.who { margin: 0; font-weight: 600; }
.plan-line { margin: 0; color: var(--muted); font-size: 13px; }
.popover label { display: grid; gap: 6px; }
.popover label span {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}
.popover input, .form input, .form textarea, .form select, .tools input, .tools select, .auth-form input, .compose input, .compose textarea, .compose select, .reply input, .reply textarea {
  width: 100%;
  min-height: 40px;
  background: var(--input);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 12px;
  outline: none;
}
.popover input:focus, .form input:focus, .form textarea:focus, .form select:focus, .tools input:focus, .tools select:focus, .auth-form input:focus, .compose input:focus, .compose textarea:focus, .compose select:focus, .reply input:focus, .reply textarea:focus {
  border-color: rgba(103, 139, 220, 0.85);
}
.popover form { display: grid; gap: 8px; }
.pop-link {
  display: block;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}
.pop-link:hover { color: var(--accent); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 14px;
  font-weight: 550;
}
.btn.solid { background: var(--accent); color: var(--ink); }
.btn.solid:hover { background: #7c9be4; }
.btn.ghost { background: transparent; color: #d7d7dc; border-color: rgba(255, 255, 255, 0.14); }
.btn.ghost:hover { background: rgba(103, 139, 220, 0.12); }
.btn.sm { height: 32px; font-size: 13px; }
.btn.wide { width: 100%; }
.btn.picked, .plan .btn.picked { background: var(--accent); color: var(--ink); border-color: transparent; }

.hero, .buy { text-align: center; padding: 56px 24px 72px; }
.hero h1, .buy h1, .block-head h2, .closer h2 {
  margin: 0 auto;
  max-width: 14ch;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.02;
  font-weight: 560;
  letter-spacing: -0.045em;
}
.buy h1, .block-head h2, .closer h2 { font-size: clamp(32px, 4vw, 48px); max-width: 16ch; }
.hero p, .block-head p, .buy .block-head p {
  max-width: 460px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}
.hero-actions { display: flex; justify-content: center; gap: 12px; margin-top: 28px; }

.preview { padding: 72px 28px 12px; }
.window {
  width: min(920px, 100%);
  margin: 0 auto;
  background: #0c0c10;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.42);
  overflow: hidden;
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
}
.win-mark {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 120px;
}
.win-mark svg { width: 16px; height: 16px; fill: none; stroke: var(--accent); }
.win-mark strong { display: block; font-size: 13px; font-weight: 600; }
.win-mark small, .win-meta { color: var(--faint); font-size: 11px; }
.pills, .win-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.win-tabs { position: relative; }
.win-glide {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 999px;
  background: var(--accent);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
}
.win-tabs.glide-on .win-glide {
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), width 0.34s cubic-bezier(0.22, 1, 0.36, 1), height 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}
.pills span, .win-tabs button {
  position: relative;
  z-index: 1;
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
}
.win-tabs button:hover:not(.active) {
  color: var(--text);
  background: rgba(103, 139, 220, 0.12);
}
.pills span.on, .win-tabs button.active {
  background: var(--accent);
  color: var(--ink);
}
.win-tabs.glide-on button.active { background: transparent; }
.window-body { padding: 4px 20px 20px; }
.hello h2, .hello h1 {
  margin: 16px 0 6px;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 560;
  letter-spacing: -0.035em;
  text-align: left;
  max-width: none;
}
.hello em { font-style: normal; }
.hello p { margin: 0 0 22px; color: var(--muted); text-align: left; font-size: 14px; line-height: 1.5; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.stat, .card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.stat { padding: 18px 16px 16px; text-align: left; }
.stat .k, .plan .k, .card-h h3, .card-h h2 {
  display: block;
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 550;
}
.stat b {
  display: block;
  margin-top: 8px;
  font-size: 26px;
  font-weight: 560;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.stat b.word { font-size: 20px; letter-spacing: 0.12em; }
.stat small { color: var(--faint); font-size: 12px; }
.stat-icon { display: none; }
.stat.sk { min-height: 78px; }

.split {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 14px;
  margin-top: 14px;
}
.card-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 8px;
}
.card-h h2, .card-h h3 { display: inline-flex; align-items: center; gap: 8px; }
.card-h svg { width: 14px; height: 14px; }
.chart { width: calc(100% - 28px); height: 132px; display: block; margin: 4px 14px 16px; }
.near { list-style: none; margin: 0; padding: 4px 18px 18px; }
.near li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 14px;
}
.near em { font-style: normal; color: var(--muted); }

.features { padding: 108px 32px 16px; }
.feat-grid {
  width: min(920px, 100%);
  margin: 52px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 48px;
}
.feat-grid h3 { margin: 0 0 6px; font-size: 16px; font-weight: 580; letter-spacing: -0.02em; }
.feat-grid p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.closer { text-align: center; padding: 108px 28px 96px; }
.closer .btn { margin-top: 22px; }

.buy { padding: 56px 24px 80px; }
.plans {
  width: min(920px, calc(100% - 32px));
  margin: 32px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  text-align: left;
}
.plan {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.plan p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.price { color: var(--text) !important; }
.price b { font-size: 32px; letter-spacing: -0.04em; font-weight: 560; }
.price span { color: var(--muted); font-size: 14px; margin-left: 4px; }
.plan ul { margin: 12px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 14px; flex: 1; }
.plan .btn { margin-top: 22px; }
.plan li { padding: 6px 0 6px 16px; position: relative; }
.plan li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  position: absolute;
  left: 0;
  top: 12px;
}
.plan.hot {
  background: #0c0c10;
  border-color: rgba(103, 139, 220, 0.7);
  color: var(--text);
}
.plan.hot .k { color: var(--accent); }
.plan.hot .price, .plan.hot .price b { color: var(--text) !important; }
.plan.hot li::before { background: var(--accent); }

.buy .checkout {
  width: min(420px, calc(100% - 32px));
  margin: 40px auto 0;
  padding: 24px;
  text-align: left;
  background: #0c0c10;
  border: 1px solid var(--line);
  border-radius: 28px;
  backdrop-filter: blur(18px);
  box-shadow: none;
}
.buy .checkout .k {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}
.buy .checkout h2 {
  margin: 6px 0 18px;
  max-width: none;
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 560;
  text-align: left;
}
.buy .pay-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.buy .pay-methods .btn { width: 100%; height: 36px; padding: 0 10px; }
.buy .checkout .btn.wide { margin-top: 8px; }
.buy .checkout label {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin: 0 0 14px;
}
.buy .checkout label span {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}
.buy .checkout input {
  width: 100%;
  height: 40px;
  background: var(--input);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  outline: none;
}
.buy .text-back {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 10px 0 4px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.buy .text-back:hover { color: var(--text); }
.pay-sheet {
  display: grid;
  gap: 12px;
  margin: 4px 0 16px;
  padding: 16px;
  border-radius: 14px;
  background: var(--input);
  border: 1px solid var(--line);
}
.pay-sheet p { margin: 0; font-size: 14px; }
.pay-sheet .k { color: var(--faint); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.pay-sheet code {
  display: block;
  margin-top: 4px;
  font-family: ui-monospace, monospace;
  font-size: 13px;
  word-break: break-all;
  color: var(--text);
}
.muted { color: var(--muted); font-size: 13px; line-height: 1.45; }
.privacy-note { margin: 0; color: var(--faint); font-size: 12px; line-height: 1.45; }
.form-row { display: flex; gap: 8px; flex-wrap: wrap; padding: 0; }

.desk { width: min(1080px, calc(100% - 48px)); margin: 28px auto 64px; }
.win-meta { margin-left: auto; display: flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; font-size: 12px; color: var(--muted); }
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
}

.pill-tag, .pill-btn, .sample-tag {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 8px;
}
.pill-btn { cursor: pointer; }
.file-btn { text-transform: none; letter-spacing: 0; font-size: 12px; }
.pill-btn:hover { color: var(--accent); }
.feed { padding: 6px 18px 16px; }
.note {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  padding: 12px 0;
}
.note + .note { border-top: 1px solid rgba(255, 255, 255, 0.06); }
.note-icon { display: none; }
.note-title { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.note-body { grid-column: 1; color: var(--muted); font-size: 13px; line-height: 1.45; margin-top: 3px; }
.note time { color: var(--faint); font-size: 11px; letter-spacing: 0.06em; }
.tri {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
  padding: 4px 8px 8px;
}
.tri strong { font-size: 14px; font-weight: 560; }
.tri span {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}
.tri i { display: none; }
.meter { padding: 2px 18px 10px; }
.meter-top {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 6px;
}
.meter-track { height: 3px; border-radius: 99px; background: #1a2436; overflow: hidden; }
.meter-fill { height: 100%; width: 100%; background: linear-gradient(90deg, #3d5694, var(--accent)); }
.meter-sub { margin: 8px 0 0; color: var(--muted); font-size: 12px; font-family: ui-monospace, monospace; }
.log-list { padding: 6px 18px 18px; display: grid; gap: 8px; }
.log-list.tall { min-height: 240px; }
.log-line {
  display: grid;
  grid-template-columns: 74px 64px 1fr;
  gap: 8px;
  font-family: ui-monospace, monospace;
  font-size: 12px;
  color: #d4d4da;
}
.log-line time, .log-line .src { color: var(--faint); }
.empty { margin: 10px 0; text-align: center; color: var(--muted); font-size: 13px; }

.table-card { margin-top: 10px; }
.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.tabs { display: flex; gap: 12px; }
.tab { background: none; border: 0; color: var(--faint); font-size: 13px; padding: 4px 0; }
.tab.on { color: var(--accent); }
.tab span { color: var(--muted); margin-left: 4px; }
.tools { display: flex; align-items: center; gap: 8px; }
.tools input { width: 170px; }
.tools select:disabled { opacity: 0.35; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th {
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 550;
  padding: 14px 18px;
}
td { padding: 14px 18px; border-top: 1px solid rgba(255, 255, 255, 0.06); font-size: 14px; }
.status { display: inline-flex; align-items: center; gap: 6px; text-transform: capitalize; }
.status i { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
.status.online { color: var(--ok); }
.status.online i { background: var(--ok); }
.status.idle { color: #c6c0a4; }
.status.idle i { background: #c6c0a4; }
.status.setup { color: #c9a3a3; }
.status.setup i { background: #c9a3a3; }
code.cmd { font-family: ui-monospace, monospace; font-size: 13px; }
.pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px 16px;
  color: var(--faint);
  font-size: 13px;
}
.pager button { background: none; border: 0; color: #d4d4da; padding: 4px 8px; }
.pager button:disabled { color: #3a3a40; cursor: default; }
.cmd-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 12px;
  align-items: center;
  margin: 0 14px;
  padding: 13px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.lede { margin: 0 14px 4px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.form { display: grid; gap: 10px; padding: 12px 14px 6px; }
.form label, .compose label, .reply label { display: grid; gap: 6px; }
.form label span, .compose label span, .reply label span { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.view { display: none; }
.view.on { display: grid; gap: 14px; }
.pad { padding-bottom: 16px; }
.card.pad .lede,
.card.pad .privacy-note,
.card.pad .form,
.card.pad .form-row {
  margin-left: 18px;
  margin-right: 18px;
}
.card.pad .privacy-note { margin-top: 8px; margin-bottom: 14px; }
.card.pad .form-row { margin-bottom: 16px; }
.card.pad .form { padding: 8px 0 16px; }

.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: 0.2s ease;
}
.toast.show { opacity: 1; transform: none; }

.mail {
  margin: 2px 0 0;
  color: var(--faint);
  font-size: 12px;
}
.out {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 13px;
  text-align: left;
}
.out:hover { color: var(--accent); }

.auth {
  min-height: calc(100vh - 120px);
  display: grid;
  place-items: center;
  padding: 48px 20px 72px;
}
.auth-card { width: min(760px, 100%); padding: 0; }
.auth-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; }
.auth-main { padding: 24px; }
.auth-side {
  padding: 24px;
  border-left: 1px solid var(--line);
  background: #101014;
  display: grid;
  align-content: start;
  gap: 12px;
}
.auth-side .k {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.auth-side p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.auth-side ul { margin: 0; padding: 0; list-style: none; }
.auth-side li {
  padding: 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 14px;
}
.auth-switch {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(103, 139, 220, 0.14);
  margin-bottom: 22px;
}
.auth-switch button {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  height: 34px;
  font-size: 13.5px;
}
.auth-switch button.on { background: var(--accent); color: var(--ink); }
.auth-card h1 {
  margin: 0;
  font-size: 32px;
  letter-spacing: -0.04em;
  font-weight: 560;
  text-align: left;
  max-width: none;
}
.auth-main > p { margin: 8px 0 18px; color: var(--muted); text-align: left; }
.auth-form { display: grid; gap: 12px; padding: 0; }
.auth-form label span { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.form-error { margin: 0; color: #f0b4b4; font-size: 13px; }
.swap { animation: rise 0.35s ease; }

.floatnav { animation: rise 0.55s ease backwards; }
.hero h1 { animation: rise 0.7s 0.05s ease backwards; }
.hero p { animation: rise 0.7s 0.12s ease backwards; }
.hero-actions { animation: rise 0.7s 0.18s ease backwards; }
.preview .window,
.auth-card,
.desk .window { animation: rise 0.75s 0.16s ease backwards; }
.feat-grid article,
.plan { animation: rise 0.6s ease backwards; }
.feat-grid article:nth-child(2),
.plan:nth-child(2) { animation-delay: 0.06s; }
.feat-grid article:nth-child(3),
.plan:nth-child(3) { animation-delay: 0.12s; }
.feat-grid article:nth-child(4) { animation-delay: 0.16s; }
.feat-grid article:nth-child(5) { animation-delay: 0.2s; }
.feat-grid article:nth-child(6) { animation-delay: 0.24s; }
.closer { animation: rise 0.7s ease backwards; }
.view.on { animation: panel-in 0.34s cubic-bezier(0.22, 1, 0.36, 1); }
.popover:not([hidden]) { animation: rise 0.18s ease; }
.btn, .person, .floatlinks a, .win-tabs button, .pills span, .tab {
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.stat, .card, .plan { transition: border-color 0.25s ease, transform 0.25s ease; }
.plan:hover { transform: translateY(-3px); border-color: rgba(103, 139, 220, 0.55); }

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes drift {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.admin-stack { display: grid; gap: 14px; margin-top: 14px; }
.admin-stack table select {
  background: var(--input);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 8px;
}
.admin-lock {
  min-height: calc(100vh - 140px);
  display: grid;
  place-items: center;
  padding: 48px 20px;
}
.admin-lock .window { padding: 28px; text-align: left; }
.admin-lock h1 { margin: 0 0 8px; font-size: 32px; letter-spacing: -0.04em; }
.admin-lock p { margin: 0 0 18px; color: var(--muted); }

.board { width: min(980px, calc(100% - 40px)); margin: 18px auto 80px; }
.board .block-head { text-align: left; padding: 48px 0 0; }
.board .block-head h1 {
  margin: 0;
  max-width: none;
  text-align: left;
  font-size: clamp(36px, 5vw, 52px);
}
.board .block-head p { margin: 12px 0 0; text-align: left; }
.board-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 28px;
  margin-top: 32px;
  align-items: start;
}
.cats { display: grid; gap: 4px; position: sticky; top: 92px; }
.cats button {
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 14px;
}
.cats button.on { background: rgba(103, 139, 220, 0.18); color: var(--accent); }
.cats .btn { margin-top: 12px; }
.thread {
  display: grid;
  gap: 6px;
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  margin: 0 0 10px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(16, 21, 31, 0.86);
}
.thread:hover { border-color: rgba(103, 139, 220, 0.55); }
.thread strong { font-weight: 600; letter-spacing: -0.02em; }
.thread small, .post small { color: var(--faint); font-size: 12px; }
.chip {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.thread-view h2 {
  margin: 8px 0 0;
  font-size: 28px;
  letter-spacing: -0.03em;
  font-weight: 560;
}
.post { padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.post p { margin: 6px 0 0; color: var(--muted); line-height: 1.55; font-size: 14px; }
.back {
  background: none;
  border: 0;
  color: var(--muted);
  padding: 0;
}
.back:hover { color: var(--text); }
.compose, .reply { display: grid; gap: 10px; margin-top: 16px; }
.compose[hidden], #thread-view[hidden], #thread-list[hidden] { display: none; }
.row-actions { display: flex; gap: 12px; }
.compose h2 { margin: 0; font-size: 22px; letter-spacing: -0.03em; font-weight: 600; }

@media (max-width: 860px) {
  .stats, .plans, .feat-grid, .split, .board-grid, .auth-grid { grid-template-columns: 1fr; }
  .auth-side { border-left: 0; border-top: 1px solid var(--line); }
  .cats { position: static; }
  .floatnav { width: calc(100% - 16px); }
  .hero h1 { font-size: 36px; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .tools { flex-wrap: wrap; }
  .tools input { width: 100%; }
  .cmd-row { grid-template-columns: 1fr; }
  .win-meta { display: none; }
}
