@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono-400-gh.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/jetbrains-mono-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --desktop: #3a6ea5;
  --desktop-deep: #2f5c8c;
  --face: #cfd0cf;
  --face-hot: #d8d8d7;
  --ink: #0c0c0c;
  --ink-dim: #27302d;
  --title: #505bbf;
  --title-row: #9aa4e0;
  --white: #ffffff;
  --light: #dfe0e3;
  --hilite: #fefefe;
  --shadow: #050608;
  --muted: #888c8f;
  --hot: #e23b6b;
  --new: #3d6fe0;
  --input: #ffffff;
  --danger: #b42318;
  --ok: #2f9e44;
  --venice: #3c8fdd;
  --venice-deep: #125da3;
  --midnight: #0a121a;
  --deep: #0e2942;
  --offwhite: #f7f5ed;
  --display: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --radius: 2px;
  --font: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh;
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.35;
  color: var(--white);
  background-color: var(--desktop);
  background-image: url("/assets/wallpaper.png");
  background-size: 120px 140px;
  isolation: isolate;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button, input, select { font-family: inherit; font-size: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
:focus-visible { outline: 1px dotted #000; outline-offset: 1px; }

.skip {
  position: absolute; left: -999px;
}
.skip:focus { left: 8px; top: 8px; z-index: 99; background: var(--face); color: #000; padding: 6px 10px; }

/* ---- 3D chrome ---- */
.raised {
  background: var(--face);
  border-top: 1.75px solid var(--light);
  border-left: 1.75px solid var(--light);
  border-right: 1.75px solid var(--shadow);
  border-bottom: 1.75px solid var(--shadow);
  box-shadow:
    inset 0 1.75px 0 0 var(--hilite),
    inset 1.75px 0 0 0 var(--hilite),
    inset 0 -1.75px 0 0 var(--muted),
    inset -1.75px 0 0 0 var(--muted),
    0 10px 15px -3px #0000001a,
    0 4px 6px -4px #0000001a;
}
.inset {
  background: var(--input);
  border-top: 1.75px solid var(--shadow);
  border-left: 1.75px solid var(--shadow);
  border-right: 1.75px solid var(--hilite);
  border-bottom: 1.75px solid var(--hilite);
  box-shadow:
    inset 0 1.75px 0 0 var(--muted),
    inset 1.75px 0 0 0 var(--muted),
    inset 0 -1.75px 0 0 var(--light),
    inset -1.75px 0 0 0 var(--light);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px;
  background: var(--face);
  color: #000;
  border-top: 1.75px solid var(--hilite);
  border-left: 1.75px solid var(--hilite);
  border-right: 1.75px solid var(--shadow);
  border-bottom: 1.75px solid var(--shadow);
  box-shadow:
    inset 0 1.75px 0 0 var(--light),
    inset 1.75px 0 0 0 var(--light),
    inset 0 -1.75px 0 0 var(--muted),
    inset -1.75px 0 0 0 var(--muted);
  border-radius: 1px;
  font-weight: 400;
  letter-spacing: -0.02em;
  user-select: none;
  white-space: nowrap;
  transition: none;
}
.btn:hover { background: #d6d6d5; }
.btn:active,
.btn.is-active {
  border-top: 1.75px solid var(--shadow);
  border-left: 1.75px solid var(--shadow);
  border-right: 1.75px solid var(--hilite);
  border-bottom: 1.75px solid var(--hilite);
  box-shadow:
    inset 0 1.75px 0 0 var(--muted),
    inset 1.75px 0 0 0 var(--muted),
    inset 0 -1.75px 0 0 var(--light),
    inset -1.75px 0 0 0 var(--light);
  padding-top: 1px;
  padding-left: 11px;
  padding-right: 9px;
}
.btn[disabled],
.btn.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}
.btn-sm { height: 26px; padding: 0 7px; font-size: 12px; }
.btn-wide { width: 100%; }
.btn-icon { width: 32px; height: 26px; padding: 0; }

/* ---- windows ---- */
.win {
  width: 100%;
  background: var(--face);
  color: var(--ink);
  border-top: 1.75px solid var(--light);
  border-left: 1.75px solid var(--light);
  border-right: 1.75px solid var(--shadow);
  border-bottom: 1.75px solid var(--shadow);
  box-shadow:
    inset 0 1.75px 0 0 var(--hilite),
    inset 1.75px 0 0 0 var(--hilite),
    inset 0 -1.75px 0 0 var(--muted),
    inset -1.75px 0 0 0 var(--muted),
    0 10px 15px -3px #0000001a,
    0 4px 6px -4px #0000001a;
}
.titlebar {
  margin: 4px;
  padding: 4px 8px;
  background: var(--title);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 26px;
  letter-spacing: -0.02em;
}
.titlebar .win-controls { display: flex; gap: 3px; }
.titlebar .win-controls span {
  width: 14px; height: 14px;
  background: var(--face);
  border-top: 1px solid var(--hilite);
  border-left: 1px solid var(--hilite);
  border-right: 1px solid var(--shadow);
  border-bottom: 1px solid var(--shadow);
  display: grid; place-items: center;
  color: #000; font-size: 9px; font-weight: 700; line-height: 1;
}

.group {
  position: relative;
  margin: 16px 12px 12px;
  padding: 16px 12px 12px;
  border-top: 1.75px solid var(--muted);
  border-left: 1.75px solid var(--muted);
  border-right: 1.75px solid var(--light);
  border-bottom: 1.75px solid var(--light);
  box-shadow:
    inset 0 1.75px 0 0 var(--hilite),
    inset 1.75px 0 0 0 var(--hilite),
    inset 0 -1.75px 0 0 var(--muted),
    inset -1.75px 0 0 0 var(--muted);
}
.group-label {
  position: absolute;
  top: 0;
  left: 10px;
  transform: translateY(-50%);
  background: var(--face);
  padding: 0 6px;
  font-weight: 700;
  font-size: 12.5px;
  color: var(--ink);
}

.field {
  width: 100%;
  height: 32px;
  padding: 0 10px;
  background: var(--input);
  color: var(--ink);
  border-top: 1.75px solid var(--shadow);
  border-left: 1.75px solid var(--shadow);
  border-right: 1.75px solid var(--hilite);
  border-bottom: 1.75px solid var(--hilite);
  box-shadow:
    inset 0 1.75px 0 0 var(--muted),
    inset 1.75px 0 0 0 var(--muted);
  border-radius: 2px;
}
.field::placeholder { color: #9aa0a0; }
.field:disabled { color: #8a8a8a; background: #f3f3f3; }

/* ---- layout ---- */
.shell {
  width: min(100%, 1100px);
  margin: 0 auto;
  padding: 0 16px 48px;
}
header.top {
  width: min(100%, 1100px);
  margin: 0 auto;
  padding: 28px 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 120px;
  color: #fff;
}
.brand img { width: 41px; height: 55px; object-fit: contain; }
.brand-text { display: none; }

.nav-center {
  display: none;
  flex-direction: column;
  align-items: center;
  color: #fff;
}
.nav-center .word {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}
.nav-center .word:hover { text-decoration: underline; text-underline-offset: 3px; }
.nav-links {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.72);
}
.nav-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.nav-links .sep { color: rgba(255,255,255,.4); font-size: 11px; }

.top-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}
.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--face);
  color: #000;
  padding: 0;
  width: 32px;
  height: 32px;
  border-top: 1.75px solid var(--hilite);
  border-left: 1.75px solid var(--hilite);
  border-right: 1.75px solid var(--shadow);
  border-bottom: 1.75px solid var(--shadow);
}
.menu-btn svg { width: 18px; height: 18px; }

.drawer {
  display: none;
  background: var(--face);
  color: #000;
  margin: 0 16px 16px;
  padding: 8px;
}
.drawer.open { display: block; }
.drawer a, .drawer button.linkish {
  display: block;
  padding: 10px 12px;
  color: #000;
  text-align: left;
  width: 100%;
  background: transparent;
  border: 0;
}
.drawer a:hover { background: var(--title-row); }
.drawer .sep { height: 1px; background: var(--muted); margin: 6px 0; }

main.layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
main.layout.stack {
  flex-direction: column;
  align-items: stretch;
}
.col-left, .col-right { display: flex; flex-direction: column; gap: 16px; }
.col-right { order: -1; }
.sticky-panel { width: 100%; }

/* ---- tables ---- */
.win-body { padding: 0 10px 12px; }
.search-wrap { padding: 4px 0 8px; }
.table-frame {
  border-top: 1.75px solid var(--shadow);
  border-left: 2px solid var(--shadow);
  border-right: 1.75px solid var(--hilite);
  border-bottom: 1.75px solid var(--hilite);
  background: #fff;
  overflow: auto;
  max-height: 430px;
}
table.grid {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
}
table.grid thead th {
  padding: 0;
  background: var(--face);
  font-weight: 400;
  position: sticky;
  top: 0;
  z-index: 2;
}
table.grid thead th .th-btn {
  width: 100%;
  height: 32px;
  border-radius: 0;
  justify-content: flex-start;
  padding: 0 8px;
  font-weight: 400;
}
table.grid thead th.check { width: 44px; }
table.grid thead th.add { width: 88px; }
table.grid thead th.exp { width: 88px; }
table.grid tbody td {
  padding: 7px 10px;
  border-bottom: 1px solid #e4e4e4;
  vertical-align: middle;
  height: 41px;
}
table.grid tbody tr { background: #fff; }
table.grid tbody tr:hover { background: #f3f4fb; }
table.grid tbody tr.is-on { background: var(--title-row); }
table.grid tbody tr.is-on td { color: #111; }

.chain {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.chain .ico {
  width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 9px; font-weight: 700; color: #fff;
  flex: 0 0 18px;
}
.chain .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badges { display: flex; gap: 6px; margin-left: auto; }
.pill {
  display: inline-flex; align-items: center;
  height: 16px; padding: 0 7px;
  border-radius: 999px;
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
}
.pill-hot { background: var(--hot); }
.pill-new { background: var(--new); }

.check {
  width: 16px; height: 16px;
  appearance: none;
  background: #fff;
  border-top: 1.75px solid var(--shadow);
  border-left: 1.75px solid var(--shadow);
  border-right: 1.75px solid var(--hilite);
  border-bottom: 1.75px solid var(--hilite);
  box-shadow: inset 1px 1px 0 var(--muted);
  display: grid; place-items: center;
  margin: 0;
}
.check:checked {
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M2 6.2 4.6 9 10 3' fill='none' stroke='%23000' stroke-width='1.8'/></svg>") center/10px 10px no-repeat;
}

.more-row { padding: 8px 0 0; display: flex; justify-content: center; }

/* ---- trade widget ---- */
.source-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.source-btn {
  width: 62%;
  height: 36px;
  justify-content: space-between;
  background: #fff;
  padding: 0 8px;
}
.source-btn .left { display: flex; align-items: center; gap: 8px; overflow: hidden; }
.source-meta { text-align: right; font-size: 12px; color: #444; }
.amount-row { position: relative; }
.amount-row .unit {
  position: absolute; left: 8px; top: 50%; transform: translateY(-50%);
  color: #9aa0a0; pointer-events: none;
}
.amount-row .field { text-align: right; padding-left: 22px; }
.min-max {
  display: flex; justify-content: flex-end; gap: 8px;
  font-size: 11px; color: #6b6b6b; margin-top: 4px;
}
.min-max button {
  background: none; border: 0; color: inherit; padding: 0; cursor: pointer;
}
.min-max button:hover { color: #222; text-decoration: underline; }

.kv { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; min-height: 22px; }
.kv span:last-child { text-align: right; color: #333; }
.muted { color: #6d6d6d; }

.radios {
  display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center;
}
.radios label { display: flex; align-items: center; gap: 5px; cursor: pointer; }
.radios input { accent-color: #000; }

.send-row { display: flex; gap: 8px; align-items: center; padding: 10px 12px 12px; }
.send-row .field { flex: 1; min-width: 0; }

.under-actions { display: flex; justify-content: center; padding: 10px 0 4px; }

.ca-box {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; font-size: 12px;
}
.ca-box code {
  font-family: inherit; font-weight: 700; letter-spacing: -0.03em;
}

/* ---- ledger / other pages ---- */
.page-win { width: min(100%, 1000px); margin: 0 auto; }
.legal {
  padding: 8px 18px 24px;
  color: #111;
  max-width: 820px;
}
.legal h1 { font-size: 22px; margin: 8px 0 4px; }
.legal h2 { font-size: 15px; margin: 22px 0 8px; }
.legal p, .legal li { font-size: 12.5px; line-height: 1.55; color: #222; }
.legal .date { color: #555; margin-bottom: 16px; }
.legal a { text-decoration: underline; }

.status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #2f9e44; box-shadow: 0 0 0 2px #c8e6cc; }
.dot.off { background: #b42318; box-shadow: 0 0 0 2px #f5c2c0; }
.tag-in { background: #3d6fe0; color: #fff; border-radius: 999px; font-size: 10px; font-weight: 700; padding: 2px 8px; }
.tag-out { background: #2f9e44; color: #fff; border-radius: 999px; font-size: 10px; font-weight: 700; padding: 2px 8px; }

.pager {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding: 8px 4px 0; color: #222; font-size: 12px;
}
.pager .btns { display: flex; gap: 4px; }

.hero-note {
  color: rgba(255,255,255,.85);
  font-size: 12.5px;
  margin: 0 0 14px;
}

/* ---- footer ---- */
footer.foot {
  width: min(100%, 1100px);
  margin: 64px auto 48px;
  padding: 0 16px;
  color: #fff;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px 16px;
}
.foot-brand .wordmark { width: 220px; height: auto; }
.foot-brand p { margin: 12px 0 0; max-width: 260px; font-size: 13px; }
.socials { display: flex; gap: 12px; margin-top: 16px; }
.socials a, .socials button {
  min-width: 36px; height: 36px;
  padding: 0 10px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: rgba(255,255,255,.1);
  border: 0; border-radius: 3px; color: #fff;
  font: inherit; font-size: 13px;
}
.socials a:hover, .socials button:hover { background: rgba(255,255,255,.2); }
.socials button.is-disabled { opacity: .45; cursor: not-allowed; }
.foot-col { display: flex; flex-direction: column; gap: 8px; font-weight: 300; min-width: 140px; padding-top: 8px; }
.foot-col a:hover, .foot-col button:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot-col button.linkish {
  background: none; border: 0; color: #fff; text-align: left; padding: 0; font: inherit; font-weight: 300;
}
.groove {
  margin-top: 36px;
  height: 2px;
  border-top: 1px solid rgb(136,140,143);
  border-bottom: 1px solid #fff;
  background: transparent;
}

/* ---- modal / toast ---- */
.overlay {
  position: fixed; inset: 0; background: #0006; display: none;
  align-items: center; justify-content: center; z-index: 40; padding: 16px;
}
.overlay.open { display: flex; }
.modal { width: min(420px, 100%); }
.modal .list { padding: 8px 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.toast-host {
  position: fixed; bottom: 16px; right: 16px; z-index: 50;
  display: flex; flex-direction: column; gap: 8px;
}
.toast {
  min-width: 220px; max-width: 320px;
  padding: 8px 10px;
  color: #000;
  font-size: 12.5px;
}
.dropdown {
  position: absolute; z-index: 20; min-width: 220px; max-height: 260px; overflow: auto;
  margin-top: 4px;
}
.dropdown button {
  display: flex; width: 100%; align-items: center; gap: 8px;
  background: #fff; border: 0; padding: 8px 10px; text-align: left; color: #111;
}
.dropdown button:hover { background: var(--title-row); }

.mono { font-variant-numeric: tabular-nums; }
.hash { text-decoration: underline; text-underline-offset: 2px; }
.empty { padding: 18px; color: #666; text-align: center; }
tr.is-hidden { display: none; }
.source-wrap { position: relative; width: 62%; }
.source-wrap .source-btn { width: 100%; }
@media (max-width: 520px) {
  .source-wrap { width: 100%; }
}

@media (min-width: 640px) {
  .foot-grid { grid-template-columns: 1.4fr 1fr; }
}
@media (min-width: 900px) {
  header.top { padding-top: 40px; padding-bottom: 22px; }
  .nav-center { display: flex; }
  .menu-btn { display: none; }
  .drawer { display: none !important; }
  main.layout {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 12px;
  }
  .col-left { flex: 1 1 60%; order: 0; min-width: 0; }
  .col-right { flex: 0 0 37.5%; order: 0; max-width: 400px; }
  .sticky-panel { position: sticky; top: 16px; }
  .foot-grid { grid-template-columns: 1.6fr repeat(4, 1fr); }
  table.grid thead th.exp { display: table-cell; }
}
@media (max-width: 899px) {
  table.grid thead th.exp, table.grid td.exp { display: none; }
  .brand-text { display: block; font-weight: 700; font-size: 18px; letter-spacing: -0.04em; }
  .table-frame { max-height: 360px; }
}
@media (max-width: 899px) {
  header.top {
    position: relative;
    padding-right: 52px;
  }
  header.top #btn-wallet { display: none; }
  .menu-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 6;
  }
}
@media (max-width: 520px) {
  table.grid thead th.add, table.grid td.add { display: none; }
  .shell, header.top, footer.foot { padding-left: 10px; padding-right: 10px; }
  .source-btn { width: 100%; }
  .source-row { flex-direction: column; align-items: stretch; }
  .send-row { flex-wrap: wrap; }
  .send-row .btn { width: 100%; }
  .amount-row .field { font-weight: 700; }
  header.top { padding-top: 16px; padding-bottom: 10px; }
}

.ico-img {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  flex: 0 0 18px;
  image-rendering: auto;
}
.family-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 8px;
}
.fam-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 6px 8px;
  background: var(--face);
  color: #111;
  border-top: 1.75px solid var(--hilite);
  border-left: 1.75px solid var(--hilite);
  border-right: 1.75px solid var(--shadow);
  border-bottom: 1.75px solid var(--shadow);
  cursor: pointer;
  font-size: 11px;
  text-align: center;
}
.fam-tile img { width: 40px; height: 40px; border-radius: 8px; }
.fam-tile:active { border-color: var(--shadow) var(--hilite) var(--hilite) var(--shadow); }
.fam-tile.is-on { outline: 2px solid var(--title); }

.taskbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 30;
  height: 36px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 6px;
  background: var(--face);
  color: #111;
  border-top: 1.75px solid var(--hilite);
  box-shadow: inset 0 1.75px 0 var(--light);
}
.taskbar .start { font-weight: 700; height: 28px; }
.taskbar .tb-apps { display: flex; gap: 4px; flex: 1; overflow: auto; }
.taskbar .clock {
  margin-left: auto;
  height: 26px;
  min-width: 88px;
  display: grid;
  place-items: center;
  font-variant-numeric: tabular-nums;
}
body { padding-bottom: 40px; }

.desk-icons {
  position: fixed;
  right: 12px;
  top: 88px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.desk-icon {
  width: 72px;
  background: transparent;
  border: 0;
  color: #fff;
  font: inherit;
  font-size: 11px;
  text-align: center;
  cursor: pointer;
  text-shadow: 1px 1px 0 #0008;
}
.desk-icon img, .desk-icon .di {
  width: 36px; height: 36px; margin: 0 auto 4px;
  border-radius: 6px;
  display: grid; place-items: center;
}
.desk-icon:focus { outline: 1px dotted #fff; }

.app-layer { position: fixed; inset: 0; z-index: 25; pointer-events: none; }
.app-layer .app-win { pointer-events: auto; position: absolute; width: min(420px, calc(100vw - 24px)); }
.app-win.wide { width: min(560px, calc(100vw - 24px)); }
.app-win[hidden] { display: none !important; }

.calc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 10px; }
.calc-grid .field { grid-column: 1 / -1; text-align: right; font-size: 18px; height: 40px; }
.notes-box { width: 100%; min-height: 220px; resize: vertical; padding: 8px; }
.paint-tools { display: flex; gap: 6px; padding: 8px 10px; align-items: center; }
.paint-tools input[type="color"] { width: 32px; height: 26px; padding: 0; }
#paint-canvas { display: block; width: 100%; height: 240px; background: #fff; cursor: crosshair; touch-action: none; }
.mine-board { display: grid; grid-template-columns: repeat(8, 28px); gap: 2px; padding: 10px; justify-content: center; }
.mine-cell {
  width: 28px; height: 28px; padding: 0; font-size: 12px; font-weight: 700;
}
.term-out {
  background: #000; color: #9f9; min-height: 200px; max-height: 280px;
  overflow: auto; padding: 8px; font-size: 12px; margin: 8px 10px 0;
}
.term-row { display: flex; gap: 6px; padding: 8px 10px 10px; }
.term-row .field { background: #000; color: #9f9; }

.start-menu {
  position: fixed; left: 6px; bottom: 40px; z-index: 31;
  width: min(240px, calc(100vw - 12px));
}
.start-menu[hidden] { display: none !important; }
.start-menu button, .start-menu a {
  display: flex; align-items: center; gap: 8px;
  width: 100%; text-align: left; padding: 8px 10px;
  background: transparent; border: 0; color: #111; font: inherit;
}
.start-menu button:hover, .start-menu a:hover { background: var(--title-row); }

@media (max-width: 899px) {
  .desk-icons { display: none; }
}

.gallery-grid, .roll {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}
.gallery-grid img, .roll img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
  cursor: pointer;
  border-top: 1.75px solid var(--hilite);
  border-left: 1.75px solid var(--hilite);
  border-right: 1.75px solid var(--shadow);
  border-bottom: 1.75px solid var(--shadow);
}
.studio-out { padding: 10px 12px 14px; }
.studio-out img { width: 100%; max-height: 460px; object-fit: cover; display: block; background: #080f16; }
.studio-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; color: #222; }
.bubble img { max-width: min(280px, 100%); border-radius: 2px; margin-top: 6px; display: block; }
.chat-app .msgs { background: #f4f4f4; }

/* ---- Venice × Windows hybrid ---- */
.stack-page { display: flex; flex-direction: column; gap: 16px; }
.display {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.96;
}
.venice-pane {
  background: var(--midnight);
  color: var(--offwhite);
  padding: 28px 22px 24px;
}
.kicker {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--venice);
  margin: 0 0 10px;
}
.ask-hero h1 {
  font-size: clamp(42px, 8vw, 88px);
  margin: 0 0 10px;
  color: #fff;
}
.ask-hero p.lede {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.5;
  color: #b3d0eb;
  max-width: 46ch;
}
.ask-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  max-width: 720px;
}
.ask-bar .field {
  flex: 1;
  height: 44px;
  background: #151f28;
  color: var(--offwhite);
  border-color: #29526c;
}
.ask-bar .field::placeholder { color: #6e7176; }
.ask-bar .btn { height: 44px; padding: 0 16px; font-weight: 700; }

.marquee-wrap { overflow: hidden; padding: 12px 0 16px; }
.marquee {
  display: flex;
  gap: 28px;
  width: max-content;
  animation: marquee 32s linear infinite;
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
}
.marquee span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.marquee .ico { width: 18px; height: 18px; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.cap-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.cap-copy h2 { font-size: clamp(26px, 4vw, 40px); margin: 0 0 8px; color: #fff; }
.cap-copy p { color: #b3d0eb; margin: 0 0 14px; max-width: 52ch; line-height: 1.5; }
.chat-demo {
  background: #080f16;
  border: 1px solid #29526c;
  min-height: 220px;
  display: flex;
  flex-direction: column;
}
.chat-demo .msgs { flex: 1; padding: 14px; display: flex; flex-direction: column; gap: 10px; max-height: 220px; overflow: auto; }
.bubble {
  max-width: 80%;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.45;
}
.bubble.bot { background: #151f28; color: var(--offwhite); align-self: flex-start; }
.bubble.me { background: var(--venice-deep); color: #fff; align-self: flex-end; }
.chat-demo .composer {
  display: flex; gap: 6px; padding: 8px;
  border-top: 1px solid #29526c;
}
.chat-demo .composer .field { background: #0e2942; color: #fff; height: 36px; }
.studio-frame {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  background: #080f16;
}
.studio-frame img { width: 100%; height: 260px; object-fit: cover; display: block; }
.studio-prompt {
  position: absolute; left: 10px; right: 10px; bottom: 10px;
  height: 36px;
}

.tier-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.tier {
  background: #080f16;
  border: 1px solid #29526c;
  padding: 14px;
  color: var(--offwhite);
}
.tier .n { color: var(--venice); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.tier h3 { margin: 6px 0 6px; font-size: 16px; }
.tier p { margin: 0; color: #b3d0eb; font-size: 13px; line-height: 1.45; }

.api-tabs { display: flex; gap: 4px; padding: 8px 12px 0; }
.api-tabs button.is-on { background: #fff; }
.api-code {
  margin: 8px 12px 12px;
  background: #080f16;
  color: #b3d0eb;
  padding: 14px;
  font-size: 12px;
  line-height: 1.55;
  overflow: auto;
  min-height: 140px;
}
.api-code .cm { color: #6e7176; }
.api-code .kw { color: #3c8fdd; }
.api-code .st { color: #bea989; }

.cta-pane { text-align: center; padding: 36px 20px; }
.cta-pane h2 { font-size: clamp(28px, 5vw, 48px); margin: 0 0 10px; color: #fff; }
.cta-pane p { color: #b3d0eb; margin: 0 0 18px; }
.cta-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

.how-steps { display: grid; gap: 10px; }
.how-steps article {
  background: #080f16;
  border: 1px solid #29526c;
  padding: 14px;
}
.how-steps .n { color: var(--venice); font-weight: 700; }
.how-steps h3 { margin: 4px 0 6px; color: #fff; }
.how-steps p { margin: 0; color: #b3d0eb; font-size: 13px; }

.faq details {
  background: var(--face);
  color: var(--ink);
  padding: 10px 12px;
  margin: 0 12px 8px;
  border-top: 1.75px solid var(--muted);
  border-left: 1.75px solid var(--muted);
  border-right: 1.75px solid var(--light);
  border-bottom: 1.75px solid var(--light);
}
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { margin: 8px 0 0; font-size: 13px; line-height: 1.5; }

.chat-app { display: flex; flex-direction: column; min-height: 62vh; }
.chat-app .msgs { flex: 1; padding: 14px; display: flex; flex-direction: column; gap: 10px; overflow: auto; max-height: 52vh; background: #fff; }
.chat-app .bubble.bot { background: #ececec; color: #111; }
.chat-app .bubble.me { background: var(--title); color: #fff; }
.chat-app .composer { display: flex; gap: 8px; padding: 10px; }

@media (min-width: 900px) {
  .cap-grid { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .tier-grid { grid-template-columns: repeat(4, 1fr); }
  .ask-hero h1 { font-size: 88px; }
}
