/* Glasswing Studios — brand system v2.0 as CSS.
   The site speaks the product's language: a dark board of tiles,
   mono for telemetry, sans for the human voice, one living element. */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  --ink-900: #0D1116;
  --ink-800: #12161C;
  --ink-700: #1A2028;
  --ink-600: #232B35;
  --cyan:   #5FD2E0;
  --violet: #8C9CF2;
  --mint:   #C8F2E6;
  --frost:  #F1F5F8;
  --vapor:  #9AA6B2;
  --hairline: rgba(154, 166, 178, .16);
  --grad: linear-gradient(90deg, var(--cyan), var(--violet));
  --sans: "Schibsted Grotesk", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--ink-900);
  color: var(--frost);
  font: 400 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---- header ---- */
.site-header { border-bottom: 1px solid var(--hairline); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px 24px; min-height: 72px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand .mark { width: 28px; height: 28px; }
.wordmark { font-size: 15px; font-weight: 500; letter-spacing: .2em; }
.wordmark .grad-i {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
/* gradient budget on the ficus screen goes to the visualizer */
.page-ficus .wordmark .grad-i { background: none; color: var(--frost); }
/* two zones: places (sans), then a hairline, then resources (mono) */
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav a { color: var(--vapor); font-size: 15px; transition: color .15s; }
.site-nav a:hover { color: var(--cyan); }
.nav-div { width: 1px; height: 16px; background: var(--hairline); }
.site-nav a.nav-res {
  font-family: var(--mono); font-size: 12px; letter-spacing: .16em;
  text-transform: uppercase;
}

/* ---- type ---- */
.section { padding: 72px 0; }
.hero { padding: 104px 0 80px; }
.display {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 400; letter-spacing: -.02em; line-height: 1.1;
  max-width: 20ch;
}
.lede { margin-top: 24px; color: var(--vapor); font-size: 18px; max-width: 58ch; }
.label {
  font-family: var(--mono); font-size: 13px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--cyan);
}
.eyebrow { margin-bottom: 20px; }
h2 { font-size: 32px; font-weight: 600; letter-spacing: -.01em; margin-top: 12px; }
h3 { font-size: 20px; font-weight: 500; }

/* ---- buttons ---- */
.cta-row { display: flex; align-items: center; gap: 24px; margin-top: 40px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; height: 48px; padding: 0 20px;
  border-radius: 4px; font-size: 15px; font-weight: 600;
}
.btn-soon { background: var(--ink-600); color: var(--vapor); cursor: default; }
.btn-ghost { color: var(--vapor); padding: 0 4px; transition: color .15s; }
.btn-ghost:hover { color: var(--cyan); }

/* ---- the board: content as tiles ---- */
.board {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}
.board-home { padding: 48px 0 16px; }
.tile {
  background: var(--ink-800); border: 1px solid var(--hairline);
  border-radius: 8px; padding: 28px; position: relative; overflow: hidden;
}
.tl {
  display: block;
  font-family: var(--mono); font-size: 11px; letter-spacing: .2em;
  color: var(--vapor); text-transform: uppercase;
}
.voice { color: var(--vapor); margin-top: 14px; max-width: 52ch; }
a.tile { transition: border-color .15s, background .15s; }
a.tile:hover { border-color: rgba(95, 210, 224, .35); background: var(--ink-700); }

/* home board placement */
.t-thesis {
  grid-column: 1 / 8; grid-row: 1 / 3;
  display: flex; flex-direction: column; justify-content: center;
  min-height: 460px;
}
.t-thesis .display { font-size: clamp(40px, 5.6vw, 66px); font-weight: 600; letter-spacing: -.03em; }
.t-thesis .voice { margin-top: 22px; }

.t-ficus {
  grid-column: 8 / 13; grid-row: 1 / 3;
  display: flex; flex-direction: column; gap: 14px; padding: 20px;
}
.t-ficus img {
  flex: 1; min-height: 0; object-fit: cover; object-position: right center;
  border: 1px solid var(--hairline); border-radius: 4px;
}
.t-ficus .go { color: var(--vapor); font-size: 14px; transition: color .15s; }
.t-ficus:hover .go { color: var(--cyan); }

/* the one living element: a visualizer strip on the ficus tile */
.strip { display: flex; align-items: flex-end; gap: 3px; height: 34px; }
.strip i {
  flex: 1;
  background: linear-gradient(0deg, var(--violet), var(--cyan) 72%, var(--mint));
  border-radius: 1px 1px 0 0;
  height: calc(var(--h) * 1%);
  transform-origin: bottom;
  animation: strip-pulse 1.3s ease-in-out calc(var(--d) * 1s) infinite alternate;
}
.strip i:nth-child(6n+1) { --h: 42; --d: 0; }
.strip i:nth-child(6n+2) { --h: 68; --d: .18; }
.strip i:nth-child(6n+3) { --h: 92; --d: .36; }
.strip i:nth-child(6n+4) { --h: 55; --d: .54; }
.strip i:nth-child(6n+5) { --h: 78; --d: .72; }
.strip i:nth-child(6n+6) { --h: 35; --d: .9; }
@keyframes strip-pulse {
  from { transform: scaleY(.4); }
  to   { transform: scaleY(1); }
}
@media (prefers-reduced-motion: reduce) {
  .strip i { animation: none; }
}

.t-clock { grid-column: 1 / 4; }
.clock { font-family: var(--mono); font-size: 30px; margin-top: 14px; }
.clock-sub { color: var(--vapor); font-size: 13px; margin-top: 2px; }

.t-bench { grid-column: 4 / 7; }
.tile-dim { background: var(--ink-900); }
.tile-dim .tl { color: rgba(154, 166, 178, .6); }
.blur-blob {
  position: absolute; right: -20px; bottom: -30px;
  width: 140px; height: 100px; border-radius: 50%;
  background: var(--grad);
  filter: blur(42px); opacity: .14;
}
.bench-line { color: var(--vapor); margin-top: 14px; font-size: 15px; }

.t-readout { grid-column: 7 / 9; }
.readout { margin-top: 14px; }
.readout div {
  display: flex; justify-content: space-between; gap: 8px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .04em;
  padding: 5px 0; border-bottom: 1px solid var(--hairline);
}
.readout div:last-child { border-bottom: 0; }
.readout dt { color: var(--vapor); }
.readout dd { color: var(--frost); }

.t-studio { grid-column: 9 / 13; }

/* features board (ficus) */
.board-features { margin-top: 40px; }
.board-features .tile { grid-column: span 4; }
.board-features h3 { margin-top: 10px; }
.board-features p { color: var(--vapor); font-size: 15px; margin-top: 8px; }
.board-features .f-viz { grid-column: span 8; }
.scene-strip {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px;
}
.scene-strip img { border: 1px solid var(--hairline); border-radius: 4px; width: 100%; height: auto; }
.f-code { display: flex; flex-direction: column; }
.snippet {
  margin-top: auto; padding: 16px; overflow-x: auto;
  background: var(--ink-900); border: 1px solid var(--hairline); border-radius: 4px;
  font-family: var(--mono); font-size: 13px; line-height: 1.7; color: var(--mint);
}
.f-code .snippet { margin-top: 16px; }
.board-features .f-sm { grid-column: span 3; }
.f-sm p { margin-top: 10px; }

/* ---- live capture frame (ficus) ---- */
.dash {
  background: var(--ink-800); border: 1px solid var(--hairline);
  border-radius: 8px; padding: 20px; margin-top: 64px;
}
.dash-chrome {
  display: flex; justify-content: space-between; align-items: baseline;
  flex-wrap: wrap;
  gap: 16px; padding: 0 4px 16px;
}
.dash-chrome .brand-line { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.dash-chrome .mark { width: 18px; height: 18px; align-self: center; }
.dash-chrome .by {
  color: var(--vapor); font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  font-weight: 400;
}
.dash-chrome .stats { font-family: var(--mono); font-size: 12px; color: var(--vapor); letter-spacing: .08em; }
.dash-shot {
  width: 100%; height: auto;
  border: 1px solid var(--hairline); border-radius: 4px;
}
.dash-cap {
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em;
  color: var(--vapor); padding: 14px 4px 0;
}

.gallery {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin-top: 24px;
}
.gallery figure {
  background: var(--ink-800); border: 1px solid var(--hairline);
  border-radius: 8px; padding: 12px;
  display: flex; flex-direction: column;
}
.gallery img {
  width: 100%; height: auto; flex: 1; object-fit: cover;
  border: 1px solid var(--hairline); border-radius: 4px;
}
.gallery figcaption {
  font-family: var(--mono); font-size: 12px; letter-spacing: .04em;
  color: var(--vapor); padding: 12px 4px 2px; line-height: 1.5;
}

.facts {
  font-family: var(--mono); font-size: 13px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--vapor); margin-top: 64px;
}

/* ---- footer ---- */
.site-footer { border-top: 1px solid var(--hairline); margin-top: 48px; padding: 36px 0; }
.site-footer .wrap {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 16px; flex-wrap: wrap;
}
.site-footer, .site-footer a { color: var(--vapor); font-size: 14px; }
.lockup .product { font-size: 34px; font-weight: 600; color: var(--frost); line-height: 1.1; }
.lockup .by { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; margin-top: 4px; }

/* ---- 404 ---- */
.err { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; }

/* ---- docs (ficus/docs) ---- */
.docs-hero { padding: 80px 0 24px; }

/* the living proof: code on the left, its output on the right */
.demo {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 12px; margin-top: 48px; align-items: stretch;
}
.demo-pane {
  background: var(--ink-800); border: 1px solid var(--hairline);
  border-radius: 8px; padding: 20px;
  display: flex; flex-direction: column; gap: 14px;
}
.demo-pane .snippet { margin-top: 0; flex: 1; }
.demo-out { display: flex; flex-direction: column; }
.demo-out .strip { flex: 1; min-height: 120px; gap: 4px; }
.demo-out .strip i { border-radius: 2px 2px 0 0; }
.demo-cap { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--vapor); }

/* toc rail + content */
.docs-layout {
  display: grid; grid-template-columns: 200px minmax(0, 1fr);
  gap: 56px; align-items: start; padding: 24px 0 48px;
}
.toc { position: sticky; top: 28px; border-left: 1px solid var(--hairline); }
.toc a {
  display: block; padding: 7px 0 7px 16px; margin-left: -1px;
  border-left: 1px solid transparent;
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em;
  color: var(--vapor); transition: color .15s, border-color .15s;
}
.toc a:hover { color: var(--cyan); border-left-color: var(--cyan); }

.doc-section { border-top: 1px solid var(--hairline); padding: 48px 0 16px; scroll-margin-top: 24px; }
.doc-section:first-child { border-top: 0; padding-top: 8px; }
.doc-section h2 { font-size: 26px; }
.doc-section h3 { margin-top: 36px; color: var(--frost); }
.doc-section p { margin-top: 14px; max-width: 68ch; font-size: 15px; }
.doc-section p, .doc-section li { color: #C9D2DA; }
.doc-section .snippet { margin-top: 16px; }
.doc-section ul { margin: 14px 0 0 20px; max-width: 68ch; font-size: 15px; }
.doc-section li { margin-top: 6px; }
.doc-section li::marker { color: var(--vapor); }

code {
  font-family: var(--mono); font-size: .86em; color: var(--mint);
  background: var(--ink-700); border-radius: 3px; padding: 1px 6px;
  overflow-wrap: anywhere;
}
.snippet code { background: none; padding: 0; font-size: inherit; color: inherit; overflow-wrap: normal; }
.snippet .c { color: rgba(154, 166, 178, .8); }

/* the three bundle kinds, presented the way the product presents content */
.kinds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
.kinds .tile { padding: 22px; }
.kinds h3 { margin-top: 8px; font-size: 17px; }
.kinds p { font-size: 14px; margin-top: 8px; max-width: none; }

/* spec tables: telemetry is mono */
.table-scroll { overflow-x: auto; margin-top: 16px; }
.spec { width: 100%; border-collapse: collapse; font-size: 13px; }
.spec th {
  font-family: var(--mono); font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--vapor); font-weight: 400;
  text-align: left; padding: 8px 16px 8px 0; border-bottom: 1px solid var(--hairline);
}
.spec td {
  padding: 9px 16px 9px 0; border-bottom: 1px solid var(--hairline);
  vertical-align: top; color: #C9D2DA; line-height: 1.55;
}
.spec td:first-child { font-family: var(--mono); font-size: 12.5px; color: var(--mint); white-space: nowrap; }
.spec td:last-child { min-width: 220px; }

.note {
  margin-top: 18px; padding: 14px 18px; max-width: 68ch;
  background: var(--ink-800); border: 1px solid var(--hairline);
  border-left: 2px solid var(--cyan); border-radius: 4px;
  font-size: 14px; color: var(--vapor);
}
.note strong { color: var(--frost); font-weight: 500; }

/* sharp edges: each one a hairline drawer */
.edges { list-style: none; margin: 20px 0 0; max-width: 74ch; }
.edges li { padding: 13px 0; border-top: 1px solid var(--hairline); margin: 0; font-size: 14.5px; }
.edges li strong { display: block; color: var(--frost); font-weight: 500; margin-bottom: 3px; }

.steps { counter-reset: step; list-style: none; margin: 20px 0 0; max-width: 70ch; }
.steps > li {
  counter-increment: step; position: relative;
  padding: 14px 0 14px 44px; border-top: 1px solid var(--hairline); margin: 0;
}
.steps > li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 16px;
  font-family: var(--mono); font-size: 12px; color: var(--cyan); letter-spacing: .08em;
}
.steps strong { color: var(--frost); font-weight: 500; }

@media (max-width: 900px) {
  .docs-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .toc { position: static; display: flex; flex-wrap: wrap; gap: 2px 18px; border-left: 0; padding-bottom: 8px; }
  .toc a { padding: 4px 0; border-left: 0; }
  .demo { grid-template-columns: minmax(0, 1fr); }
  .demo-out .strip { min-height: 90px; }
  .kinds { grid-template-columns: 1fr; }
}

/* ---- focus & forced colors ---- */
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.site-nav a[aria-current="page"] { color: var(--frost); }
@media (forced-colors: active) {
  .wordmark .grad-i { background: none; color: CanvasText; }
  .strip i { background: CanvasText; }
}

/* ---- responsive ---- */
@media (max-width: 900px) {
  .t-thesis { grid-column: 1 / 7; }
  .t-ficus { grid-column: 7 / 13; }
  .t-clock { grid-column: 1 / 5; }
  .t-bench { grid-column: 5 / 9; }
  .t-readout { grid-column: 9 / 13; }
  .t-studio { grid-column: 1 / 13; }
  .f-viz, .f-code, .board-features .tile, .f-sm { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .section { padding: 56px 0; }
  .hero { padding: 72px 0 56px; }
  .board-home { padding: 24px 0 8px; }
  .board > .tile, .t-thesis, .t-ficus, .t-clock, .t-bench, .t-readout, .t-studio { grid-column: 1 / -1; grid-row: auto; }
  .t-thesis { min-height: 0; padding: 36px 28px; }
  .t-ficus img { min-height: 200px; }
  .gallery { grid-template-columns: 1fr; }
}

/* ---- marketplace shelf ---- */
.market-head { padding: 72px 0 0; }
.m-controls {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px 24px; flex-wrap: wrap; margin-top: 40px;
}
.m-search {
  font: 400 14px/1 var(--sans); color: var(--frost);
  background: var(--ink-800); border: 1px solid var(--hairline); border-radius: 4px;
  padding: 10px 14px; min-width: 220px;
}
.m-search::placeholder { color: var(--vapor); }
.m-status {
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em;
  color: var(--vapor);
}

.m-sec { margin-top: 56px; }
.m-sec-h {
  display: flex; align-items: baseline; gap: 14px;
  font-family: var(--mono); font-size: 13px; letter-spacing: .22em;
  font-weight: 400; color: var(--frost);
  border-bottom: 1px solid var(--hairline); padding-bottom: 12px;
}
.m-sec-count { color: var(--cyan); letter-spacing: .08em; }
.m-cat {
  font-family: var(--mono); font-size: 11px; letter-spacing: .2em;
  color: var(--vapor); margin-top: 24px;
}

.m-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr);
  gap: 12px; margin-top: 16px; overflow-x: auto; padding-bottom: 6px;
  scrollbar-width: thin;
}
.m-big .m-prev { height: 120px; }

.m-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px; margin-top: 12px;
}
.m-card {
  background: var(--ink-800); border: 1px solid var(--hairline);
  border-radius: 8px; padding: 12px 14px 16px; overflow: hidden;
}
.m-featured { border-color: rgba(95, 210, 224, .35); }
.m-prev {
  height: 88px; border: 1px solid var(--hairline); border-radius: 4px;
  background: var(--ink-900); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.m-prev img { width: 100%; height: 100%; object-fit: cover; }
.m-ph { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--ink-600); }
.m-name { font-weight: 500; margin-top: 12px; font-size: 15px; }
.m-meta {
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em;
  color: var(--vapor); margin-top: 4px;
}
.m-sum {
  color: var(--vapor); font-size: 13px; margin-top: 8px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.m-sum-tile { -webkit-line-clamp: 3; }

/* tiles wear their permissions up front, the way the app presents them */
.m-grid-info { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* built-in tiles: no store listing, so the registry glyph stands in */
.m-native-head { display: flex; align-items: center; gap: 12px; }
.m-native-head .m-name { margin-top: 0; }
.m-icon {
  flex: none; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink-900); border: 1px solid var(--hairline); border-radius: 4px;
  color: var(--cyan); font-size: 19px; line-height: 1;
}
.m-perms { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.m-badge {
  font-family: var(--mono); font-size: 10px; letter-spacing: .08em;
  color: var(--vapor); border: 1px solid var(--hairline);
  border-radius: 3px; padding: 3px 7px;
  overflow-wrap: anywhere;
}
.m-badge-off { color: var(--mint); border-color: rgba(200, 242, 230, .35); }

/* the preset long tail: per-artist drawers of dense rows */
.m-pack {
  border: 1px solid var(--hairline); border-radius: 8px;
  background: var(--ink-800); margin-top: 12px;
}
.m-pack summary {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 16px 20px; cursor: pointer; list-style: none;
}
.m-pack summary::-webkit-details-marker { display: none; }
.m-pack summary::before { content: "▸"; color: var(--vapor); font-size: 11px; margin-right: 4px; }
.m-pack[open] summary::before { content: "▾"; }
.m-pack summary:hover .m-pack-name { color: var(--cyan); }
.m-pack-name { font-weight: 500; transition: color .15s; margin-right: auto; }
.m-pack-count { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--vapor); }
.m-rows { border-top: 1px solid var(--hairline); padding: 6px 20px 14px; }
.m-row {
  display: flex; align-items: center; gap: 14px;
  padding: 8px 0; border-bottom: 1px solid var(--hairline);
}
.m-row:last-child { border-bottom: 0; }
.m-thumb {
  width: 72px; height: 28px; flex: none;
  border: 1px solid var(--hairline); border-radius: 3px;
  background: var(--ink-900); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.m-thumb img { width: 100%; height: 100%; object-fit: cover; }
.m-thumb .m-ph { display: none; }
.m-row-name { flex: 1; font-size: 14px; min-width: 0; overflow-wrap: anywhere; }
.m-row-meta { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--vapor); flex: none; }

@media (max-width: 760px) {
  .market-head { padding: 48px 0 0; }
  .m-controls { margin-top: 28px; }
  .m-search { flex: 1; min-width: 0; }
  .m-rail { grid-auto-columns: minmax(240px, 80%); }
  .m-rows { padding: 6px 14px 12px; }
}

/* ---- account: modal + header slot ---- */
.gw-modal {
  background: var(--ink-800); color: var(--frost);
  border: 1px solid var(--hairline); border-radius: 8px;
  padding: 28px; width: min(420px, 90vw);
}
.gw-modal::backdrop { background: rgba(13, 17, 22, .75); }
.gw-modal-tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.gw-tab {
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em;
  color: var(--vapor); background: none; cursor: pointer;
  border: 1px solid var(--hairline); border-radius: 4px; padding: 8px 14px;
}
.gw-tab[aria-selected="true"] { color: var(--frost); border-color: rgba(95, 210, 224, .45); }
.gw-field { display: block; margin-top: 14px; }
.gw-field span {
  display: block; font-family: var(--mono); font-size: 11px;
  letter-spacing: .18em; color: var(--vapor); margin-bottom: 6px;
}
.gw-field input {
  width: 100%; font: 400 15px/1 var(--sans); color: var(--frost);
  background: var(--ink-900); border: 1px solid var(--hairline);
  border-radius: 4px; padding: 10px 12px;
}
.gw-error { font-family: var(--mono); font-size: 12px; color: var(--cyan); margin-top: 12px; min-height: 1em; }
.gw-actions { display: flex; gap: 16px; margin-top: 18px; align-items: center; }
.gw-submit {
  font: 600 15px/1 var(--sans); color: var(--ink-900);
  background: var(--frost); border: 0; border-radius: 4px;
  padding: 12px 20px; cursor: pointer;
}
.gw-cancel { font: 400 14px/1 var(--sans); color: var(--vapor); background: none; border: 0; cursor: pointer; }
.gw-cancel:hover, .gw-tab:hover { color: var(--cyan); }

/* ---- item panel ---- */
.gw-panel {
  background: var(--ink-800); color: var(--frost);
  border: 1px solid var(--hairline); border-radius: 8px;
  padding: 24px; width: min(680px, 94vw); max-height: 88vh; overflow-y: auto;
}
.gw-panel::backdrop { background: rgba(13, 17, 22, .75); }
.gw-close {
  position: absolute; top: 12px; right: 14px;
  font: 400 20px/1 var(--sans); color: var(--vapor);
  background: none; border: 0; cursor: pointer;
}
.gw-close:hover { color: var(--cyan); }
.ip-prev { border: 1px solid var(--hairline); border-radius: 4px; overflow: hidden; background: var(--ink-900); min-height: 60px; }
.ip-prev img { width: 100%; height: auto; display: block; }
.ip-head h2 { font-size: 24px; margin-top: 16px; }
.ip-desc { color: var(--vapor); font-size: 14px; margin-top: 12px; white-space: pre-line; }
.ip-row { display: flex; align-items: center; gap: 16px; margin-top: 18px; flex-wrap: wrap; }
.ip-stars button {
  font: 400 20px/1 var(--sans); color: var(--vapor);
  background: none; border: 0; cursor: pointer; padding: 0 2px;
}
.ip-stars button.on { color: var(--cyan); }
.ip-fav {
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em;
  color: var(--vapor); background: none; cursor: pointer;
  border: 1px solid var(--hairline); border-radius: 4px; padding: 7px 12px;
}
.ip-fav.on { color: var(--mint); border-color: rgba(200, 242, 230, .35); }
.ip-h { font-family: var(--mono); font-size: 12px; letter-spacing: .2em; color: var(--vapor); font-weight: 400; margin-top: 28px; border-bottom: 1px solid var(--hairline); padding-bottom: 8px; }
.ip-entry { padding: 12px 0; border-bottom: 1px solid var(--hairline); }
.ip-entry .who { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--vapor); }
.ip-entry .what { font-size: 14px; margin-top: 4px; color: #C9D2DA; }
.gw-panel textarea {
  width: 100%; margin-top: 12px; font: 400 14px/1.5 var(--sans); color: var(--frost);
  background: var(--ink-900); border: 1px solid var(--hairline); border-radius: 4px; padding: 10px 12px;
}

/* ---- account page ---- */
.acct-profile { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
.acct-profile img { border-radius: 50%; border: 1px solid var(--hairline); }
.acct-inline { display: flex; align-items: flex-end; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.acct-inline .gw-field { margin-top: 0; flex: 1; min-width: 160px; }
.acct-sub-row {
  display: flex; justify-content: space-between; gap: 16px; align-items: baseline;
  padding: 10px 0; border-bottom: 1px solid var(--hairline);
}
.acct-sub-row .st-approved { color: var(--mint); }
.acct-sub-row .st-pending { color: var(--cyan); }
.acct-sub-row .st-rejected { color: var(--vapor); }
.gw-panel form .gw-submit { margin-top: 10px; }
