/* mangow.io — one stylesheet, two skins.
 *
 * The reader side (Discover, Browse, Series) is warm-neutral dark: cover art owns all the colour,
 * orange is for the one thing to do on a page. The creator side (Publish, Dashboard) wears
 * Studio's own blues so the tool sells itself. Same wordmark, same display face, same accent.
 * `html[data-skin]` picks the palette; everything below reads tokens, never hex. */

:root {
  --bg: #171412;
  --bg-2: #1c1916;
  --surface: #201c18;
  --surface-2: #1b1815;
  --line: #221e1a;
  --line-2: #2b2621;
  --line-3: #35302a;
  --ink: #f6f2ed;
  --ink-2: #a89f95;
  --ink-3: #766e66;
  --ink-4: #574f48;
  --accent: #f08a32;
  --accent-hover: #ffa55c;
  --on-accent: #1a1206;
  --ok: #10b981;
  --radius: 10px;
  --radius-s: 8px;
  --gutter: 16px;
  --header: 48px;
  --tabbar: 72px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --disp: "Bricolage Grotesque", var(--font);
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  color-scheme: dark;
}

html[data-skin="studio"] {
  --bg: #07111d;
  --bg-2: #0b1623;
  --surface: #0d1a2a;
  --surface-2: #142437;
  --raised: #20364e;
  --line: #1b2e43;
  --line-2: #1b2e43;
  --line-3: #36516d;
  --ink: #eaf0f7;
  --ink-2: #9cb0c7;
  --ink-3: #667a94;
  --ink-4: #4f6179;
  --on-accent: #ffffff;
  --blue: #6e96d9;
  --canvas: #4b5563;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.45 var(--font);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-hover); }
button { font: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }
svg { display: block; }
.disp { font-family: var(--disp); letter-spacing: -0.02em; }
.mono { font-family: var(--mono); }
.muted { color: var(--ink-2); }
.dim { color: var(--ink-3); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.wrap { padding-inline: var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }
@media (min-width: 1080px) { :root { --gutter: 48px; } }

/* ---------- header (desktop) + tab bar (mobile) ---------- */

.hdr {
  height: var(--header);
  display: flex; align-items: center; gap: 14px;
  padding-inline: var(--gutter);
  border-bottom: 1px solid transparent;
}
.hdr .brand { font-family: var(--disp); font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.hdr .brand span { color: var(--ink-3); }
.hdr .nav { display: none; }
.hdr .grow { flex: 1; }
.hdr .ico { color: var(--ink-2); width: 44px; height: 44px; margin-right: -12px; display: flex; align-items: center; justify-content: center; }
.hdr .avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line-3); }
.hdr .search { display: none; }
.hdr .cta { display: none; }
.navl { font-size: 13.5px; color: var(--ink-2); font-weight: 500; white-space: nowrap; }
.navl[aria-current="page"] { color: var(--ink); font-weight: 600; }

@media (min-width: 720px) {
  :root { --header: 66px; --tabbar: 0px; }
  .hdr { gap: 36px; border-bottom-color: var(--line); }
  .hdr .brand { font-size: 20px; }
  .hdr .nav { display: flex; align-items: center; gap: 24px; }
  .hdr .ico { display: none; }
  .hdr .search {
    display: flex; align-items: center; gap: 9px;
    width: 268px; height: 38px; padding: 0 12px;
    border-radius: var(--radius-s); background: var(--bg-2); border: 1px solid var(--line-2);
    color: var(--ink-3);
  }
  .hdr .search input {
    flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: 13px var(--font); outline: none;
  }
  .hdr .search input::placeholder { color: var(--ink-3); }
  .hdr .cta { display: inline-flex; }
}

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  height: var(--tabbar);
  background: rgba(23, 20, 18, 0.94); backdrop-filter: blur(14px);
  border-top: 1px solid #26221e;
  display: flex; align-items: flex-start; padding-top: 9px;
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a {
  flex: 1; height: 46px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  color: var(--ink-3); font-size: 10px; font-weight: 500;
}
.tabbar a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.tabbar a:hover { color: var(--ink); }
@media (min-width: 720px) { .tabbar { display: none; } }

main { padding-bottom: calc(var(--tabbar) + 24px); }

/* ---------- buttons, chips, pills ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 44px; padding: 0 18px; border-radius: var(--radius);
  font-size: 14px; font-weight: 700; border: 1px solid transparent; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-3); font-weight: 600; }
.btn-ghost:hover { border-color: var(--ink-3); color: var(--ink); }
.btn-s { height: 38px; padding: 0 16px; font-size: 13.5px; border-radius: var(--radius-s); }
.btn-block { width: 100%; }

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px; border-radius: 7px;
  font-size: 12.5px; color: var(--ink-2);
  border: 1px solid var(--line-2); background: var(--bg-2); white-space: nowrap;
}
.chip:hover { color: var(--ink); border-color: var(--line-3); }
.chip[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); font-weight: 600; }
.chip b { color: var(--ink); font-weight: 600; }
.chip-row { display: flex; gap: 9px; overflow-x: auto; scrollbar-width: none; padding-block: 2px; }
.chip-row::-webkit-scrollbar { display: none; }
.tag { padding: 5px 10px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line-2); font-size: 11.5px; color: var(--ink-2); }

.badge-ep { padding: 3px 7px; border-radius: 5px; background: var(--accent); color: var(--on-accent); font-size: 10px; font-weight: 700; }

/* ---------- covers ---------- */

.cov {
  position: relative; overflow: hidden; border-radius: 8px;
  aspect-ratio: 3 / 4; width: 100%;
  background: linear-gradient(160deg, #3b2e52, #241a34);
}
.cov img { width: 100%; height: 100%; object-fit: cover; }
.cov.sq { border-radius: 4px; }
.cov .rank {
  position: absolute; left: 6px; bottom: 2px;
  font-family: var(--disp); font-size: 40px; font-weight: 800; line-height: 1; color: var(--ink); opacity: 0.95;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}
.cov .epb { position: absolute; left: 8px; top: 10px; }

/* ---------- section heads + rails ---------- */

.sec-h {
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: var(--gutter);
}
.sec-h h2 { margin: 0; font-family: var(--disp); font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.sec-h a { color: var(--ink-3); display: flex; align-items: center; gap: 4px; font-size: 12px; }
.sec-h a:hover { color: var(--ink); }
@media (min-width: 720px) { .sec-h h2 { font-size: 20px; } }

.rail {
  display: flex; gap: 12px; padding-inline: var(--gutter);
  overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
  padding-bottom: 4px;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { flex-shrink: 0; scroll-snap-align: start; }

.card-s { width: 112px; display: flex; flex-direction: column; gap: 7px; }
.card-s .ttl { font-size: 12.5px; font-weight: 600; line-height: 1.25; height: 31px; overflow: hidden; }
.card-s .met { display: flex; align-items: center; gap: 4px; color: var(--ink-3); font-size: 11px; }
@media (min-width: 720px) { .card-s { width: 150px; } .card-s .ttl { font-size: 13.5px; height: 34px; } }

.card-cont {
  width: 208px; background: var(--surface); border-radius: var(--radius); padding: 8px;
  display: flex; gap: 10px;
}
.card-cont .cov { width: 62px; height: 83px; border-radius: 6px; flex-shrink: 0; }
.card-cont .body { display: flex; flex-direction: column; justify-content: center; gap: 6px; min-width: 0; }
.card-cont .ttl { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-cont .met { font-size: 11px; color: var(--ink-2); }
.bar { width: 112px; height: 3px; border-radius: 2px; background: var(--line-3); overflow: hidden; }
.bar i { display: block; height: 3px; background: var(--accent); }

/* ---------- Discover hero ---------- */

.hero {
  position: relative; overflow: hidden; height: 232px;
  background: #2e3a4a;
}
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero .shade { position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 8%, rgba(23, 20, 18, 0.82) 42%, rgba(23, 20, 18, 0) 82%); }
.hero .txt { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 14px; display: flex; flex-direction: column; gap: 10px; }
.hero .kicker { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--ink-2); }
.hero .kicker b { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; }
.hero .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-3); }
.hero h1 { margin: 0; font-family: var(--disp); font-size: 27px; font-weight: 700; line-height: 1.05; letter-spacing: -0.025em; text-wrap: pretty; }
.hero .cta { display: flex; align-items: center; gap: 10px; }
.hero .cta .btn-primary { flex: 1; }
.hero .cta .sq { width: 44px; height: 44px; padding: 0; border-radius: var(--radius); border: 1px solid var(--line-3); background: rgba(43, 38, 33, 0.6); color: var(--ink); }
.hero .synopsis { display: none; }
@media (min-width: 720px) {
  .hero { height: 420px; }
  .hero .shade { background: linear-gradient(to top, var(--bg) 4%, rgba(23, 20, 18, 0.7) 40%, rgba(23, 20, 18, 0) 80%), linear-gradient(to right, rgba(23, 20, 18, 0.6), rgba(23, 20, 18, 0) 60%); }
  .hero .txt { bottom: 34px; max-width: 560px; gap: 14px; }
  .hero h1 { font-size: 44px; }
  .hero .cta .btn-primary { flex: 0 0 auto; padding-inline: 28px; }
  .hero .synopsis { display: block; font-size: 14px; color: var(--ink-2); line-height: 1.5; max-width: 52ch; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}

.sec { padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.sec:first-of-type { padding-top: 14px; }
@media (min-width: 720px) { .sec { padding-top: 34px; gap: 14px; } }

/* ---------- Browse ---------- */

.page-h { padding: 22px var(--gutter) 0; display: flex; flex-direction: column; gap: 14px; }
.page-h .t { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.page-h h1 { margin: 0; font-family: var(--disp); font-size: 28px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.page-h .sub { font-size: 13px; color: var(--ink-3); margin-top: 7px; }
.sort { position: relative; }
.sort select {
  appearance: none; -webkit-appearance: none;
  padding: 7px 30px 7px 13px; border-radius: 7px; border: 1px solid var(--line-2); background: transparent;
  color: var(--ink); font: 12.5px var(--font); font-weight: 600; cursor: pointer;
}
.sort::after { content: ""; position: absolute; right: 12px; top: 50%; width: 6px; height: 6px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.sort .lbl { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-size: 12.5px; pointer-events: none; }
.sort.labelled select { padding-left: 46px; }
@media (min-width: 720px) { .page-h { padding-top: 34px; gap: 22px; } .page-h h1 { font-size: 34px; } }

.grid {
  padding: 22px var(--gutter) 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px;
}
@media (min-width: 520px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; padding-top: 26px; } }
@media (min-width: 1080px) { .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.card { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.card .ttl { font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.card .met { font-size: 11.5px; color: var(--ink-3); display: flex; align-items: center; gap: 7px; }
.card .met i { width: 3px; height: 3px; border-radius: 50%; background: #3e3832; }

.notice {
  margin: 22px var(--gutter) 0; padding: 14px 16px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line-2); color: var(--ink-2); font-size: 13px; line-height: 1.5;
}
.notice a { color: var(--accent); font-weight: 600; }
.notice.warn { border-color: #5a3a1a; }
.foot-note { padding: 28px var(--gutter) 0; font-size: 12px; color: var(--ink-3); }
.foot-note a { color: var(--ink-2); text-decoration: underline; }

/* ---------- Series ---------- */

.ser-banner { position: relative; height: 190px; overflow: hidden; background: #2e3a4a; }
.ser-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(1.1); transform: scale(1.06); }
.ser-banner .shade { position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 4%, rgba(23, 20, 18, 0.55) 60%, rgba(23, 20, 18, 0.35) 100%); }
.ser-top { position: absolute; left: 0; right: 0; top: 0; height: 52px; padding: 0 14px; display: flex; align-items: center; justify-content: space-between; z-index: 2; }
.ser-top a, .ser-top button { width: 44px; height: 44px; border-radius: 50%; background: rgba(23, 20, 18, 0.55); backdrop-filter: blur(8px); border: 0; color: var(--ink); display: flex; align-items: center; justify-content: center; }
.ser-head { margin-top: -46px; padding-inline: var(--gutter); display: flex; gap: 14px; align-items: flex-end; position: relative; }
.ser-head .cov { width: 100px; flex-shrink: 0; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45); }
.ser-head .meta { display: flex; flex-direction: column; gap: 7px; padding-bottom: 2px; min-width: 0; }
.ser-head h1 { margin: 0; font-family: var(--disp); font-size: 22px; font-weight: 700; line-height: 1.08; letter-spacing: -0.025em; text-wrap: pretty; }
.ser-head .by { font-size: 12.5px; color: var(--ink-2); }
.ser-head .stats { display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: 11.5px; }
.ser-head .stats span { display: flex; align-items: center; gap: 4px; }
.ser-tags { padding: 14px var(--gutter) 0; display: flex; flex-wrap: wrap; gap: 7px; }
.ser-cta { padding: 14px var(--gutter) 0; display: flex; gap: 10px; }
.ser-cta .btn-primary { flex: 1; height: 46px; font-size: 14.5px; }
.ser-syn { padding: 16px var(--gutter) 0; font-size: 12.5px; line-height: 1.58; color: var(--ink-2); }
.ser-syn.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ser-syn-more { padding: 4px var(--gutter) 0; }
.ser-syn-more summary { color: var(--accent); font-weight: 600; font-size: 12.5px; cursor: pointer; list-style: none; }
.ser-syn-more summary::-webkit-details-marker { display: none; }
.ser-syn-more[open] summary { display: none; }
.ser-syn-more p { margin: 0; font-size: 12.5px; line-height: 1.58; color: var(--ink-2); }
.eps-h { padding: 18px var(--gutter) 8px; display: flex; align-items: center; justify-content: space-between; }
.eps-h h2 { margin: 0; font-family: var(--disp); font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.eps-h .sort select { font-weight: 500; color: var(--ink-2); border: 0; padding-left: 0; }
.ep {
  height: 62px; padding-inline: var(--gutter); border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px; color: inherit;
}
.ep .n { width: 30px; font-size: 12px; color: var(--ink-2); flex-shrink: 0; }
.ep .b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ep .t { font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep .s { font-size: 11px; color: var(--ink-3); }
.ep .new { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.ep svg { color: var(--ink-3); flex-shrink: 0; }
a.ep:hover { background: var(--surface-2); color: inherit; }
.ep.off { background: var(--surface-2); }
.ep.off .n, .ep.off .s, .ep.off svg { color: var(--ink-4); }
.ep.off .t { color: #6b635c; font-weight: 500; }
.ep.done .t { color: var(--ink-3); font-weight: 500; }
.ep.done .n, .ep.done .s, .ep.done svg { color: var(--ink-4); }

@media (min-width: 720px) {
  .ser-banner { height: 340px; }
  .ser-top { display: none; }
  .ser-head { margin-top: -120px; gap: 28px; }
  .ser-head .cov { width: 200px; }
  .ser-head h1 { font-size: 40px; }
  .ser-head .by { font-size: 14px; }
  .ser-cta .btn-primary { flex: 0 0 auto; padding-inline: 32px; }
  .ser-syn { font-size: 14.5px; max-width: 72ch; }
  .ser-body { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 0 48px; }
  .ser-body > .left, .ser-body > .right { min-width: 0; }
  .ser-body .eps-h { padding-top: 0; }
  .ser-body .ep { padding-inline: 0; }
  .ser-body .right { padding-right: var(--gutter); }
  .ser-body .left { padding-left: var(--gutter); }
  .ser-body .left .ser-tags, .ser-body .left .ser-cta, .ser-body .left .ser-syn, .ser-body .left .ser-syn-more { padding-inline: 0; }
}

/* ---------- Studio skin: Publish ---------- */

.st-hdr { height: 66px; border-bottom: 1px solid var(--line); padding-inline: var(--gutter); display: flex; align-items: center; gap: 14px; }
.st-hdr .brand { font-family: var(--disp); font-size: 20px; font-weight: 700; letter-spacing: -0.02em; color: #fff; }
.st-hdr .brand span { color: var(--ink-3); }
.st-hdr .sep { width: 1px; height: 20px; background: var(--line-3); }
.st-hdr .tag-m { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--accent); letter-spacing: 0.02em; }
.st-hdr .grow { flex: 1; }
.st-hdr nav { display: none; align-items: center; gap: 26px; }
@media (min-width: 720px) { .st-hdr nav { display: flex; } }

.pub-hero { padding: 40px var(--gutter) 0; display: flex; flex-direction: column; gap: 40px; }
.pub-hero .copy { display: flex; flex-direction: column; gap: 22px; }
.eyebrow { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; color: var(--blue); }
.pub-hero h1 { margin: 0; font-family: var(--disp); font-size: 38px; font-weight: 700; line-height: 1.02; letter-spacing: -0.035em; color: #fff; text-wrap: pretty; }
.pub-hero .lead { font-size: 16px; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; margin: 0; }
.pub-hero .lead code { font-family: var(--mono); font-size: 14px; color: var(--ink); }
.pub-hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 6px; }
.pub-hero .ctas .btn { height: 50px; padding-inline: 24px; font-size: 15px; border-radius: 9px; }
.pub-hero .facts { display: flex; flex-wrap: wrap; gap: 18px; font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
@media (min-width: 1080px) {
  .pub-hero { padding-top: 68px; flex-direction: row; gap: 48px; align-items: flex-start; }
  .pub-hero .copy { width: 520px; flex-shrink: 0; padding-top: 26px; }
  .pub-hero h1 { font-size: 54px; }
  .pub-hero .lead { font-size: 17px; }
  .pub-hero .mock { flex: 1; }
}

/* the editor mock: an illustration of Studio, built from boxes, nothing loaded */
.mock { border-radius: 12px; overflow: hidden; border: 1px solid var(--line-3); background: var(--surface); position: relative; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5); }
.mock .bar { height: 38px; width: auto; border-radius: 0; background: #14202a; border-bottom: 1px solid var(--line); display: flex; align-items: center; padding: 0 12px; gap: 8px; }
.mock .bar .dots { display: flex; gap: 6px; } .mock .bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-3); }
.mock .bar .file { font-family: var(--mono); font-size: 11px; color: var(--ink-3); margin-left: 10px; }
.mock .bar .grow { flex: 1; }
.mock .bar .tab { padding: 4px 10px; border-radius: 5px; font-size: 11px; color: var(--ink-3); } .mock .bar .tab.on { background: var(--raised); color: var(--ink); }
.mock .body { display: flex; height: 380px; }
.mock .tools { width: 46px; flex-shrink: 0; background: #0e151b; border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 6px; padding-top: 10px; }
.mock .tools i { width: 30px; height: 30px; border-radius: 6px; display: flex; align-items: center; justify-content: center; color: var(--ink-2); } .mock .tools i.on { background: var(--raised); color: var(--accent); }
.mock .tools hr { width: 22px; border: 0; border-top: 1px solid var(--line); margin: 4px 0; }
.mock .canvas { flex: 1; background: var(--canvas); position: relative; overflow: hidden; }
.mock .pages { position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 232px; display: flex; flex-direction: column; gap: 6px; padding-top: 14px; }
.mock .pg { width: 232px; background: #f4f0e9; position: relative; overflow: hidden; }
.mock .ring { position: absolute; left: 40px; top: 148px; width: 196px; height: 196px; border-radius: 50%; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  background: conic-gradient(#16283cdd 0deg 44deg, #f08a32ee 44deg 88deg, #16283cdd 88deg 132deg, #1c3049dd 132deg 176deg, #16283cdd 176deg 220deg, #1c3049dd 220deg 264deg, #16283cdd 264deg 308deg, #1c3049dd 308deg 360deg); }
.mock .ring .in { position: absolute; left: 34px; top: 34px; width: 128px; height: 128px; border-radius: 50%; background: #0d1a2af2; border: 1px solid var(--line-3); display: flex; align-items: center; justify-content: center; }
.mock .ring .in i { width: 48px; height: 48px; border-radius: 50%; background: var(--raised); border: 1px solid var(--line-3); display: flex; align-items: center; justify-content: center; color: var(--ink); }
.mock .brush { position: absolute; left: 12px; top: 12px; padding: 5px 10px; border-radius: 6px; background: #0d1a2ae6; border: 1px solid var(--line-3); display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; color: var(--ink); }
.mock .insp { width: 188px; flex-shrink: 0; background: #131c23; border-left: 1px solid var(--line); display: none; flex-direction: column; }
.mock .insp .h { height: 30px; border-bottom: 1px solid var(--line); display: flex; align-items: center; padding: 0 10px; gap: 12px; font-size: 11px; color: var(--ink-3); } .mock .insp .h b { color: var(--ink); font-weight: 600; }
.mock .insp .sec-m { padding: 10px; display: flex; flex-direction: column; gap: 9px; }
.mock .insp .k { font-family: var(--mono); font-size: 10px; color: var(--ink-3); letter-spacing: 0.08em; }
.mock .insp .row { height: 28px; border-radius: 5px; background: var(--raised); border: 1px solid var(--line-3); display: flex; align-items: center; justify-content: space-between; padding: 0 8px; font-size: 11px; }
.mock .insp .row span { color: var(--blue); font-size: 10px; }
.mock .insp .row.dash { background: transparent; border-style: dashed; justify-content: center; color: var(--ink-3); }
.mock .insp .xy { display: flex; gap: 6px; } .mock .insp .xy i { flex: 1; height: 24px; border-radius: 4px; background: var(--raised); border: 1px solid var(--line-3); display: flex; align-items: center; padding: 0 7px; font-family: var(--mono); font-size: 10px; font-style: normal; }
.mock .insp .grow { flex: 1; }
.mock .insp .send { border-top: 1px solid var(--line); padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.mock .insp .send i { height: 30px; border-radius: 6px; background: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 11.5px; font-weight: 700; color: #fff; font-style: normal; }
.mock .tl { position: absolute; left: 46px; right: 0; bottom: 0; height: 58px; background: #0e151b; border-top: 1px solid var(--line); padding: 8px 12px; display: flex; flex-direction: column; gap: 7px; }
.mock .tl .k { font-family: var(--mono); font-size: 10px; color: var(--ink-3); }
.mock .tl .track { flex: 1; height: 4px; border-radius: 2px; background: var(--raised); position: relative; } .mock .tl .track i { position: absolute; left: 22%; width: 44%; height: 4px; border-radius: 2px; background: var(--blue); }
.mock .tl .frames { display: flex; gap: 4px; align-items: center; } .mock .tl .frames i { width: 28px; height: 22px; border-radius: 3px; background: var(--raised); border: 1px solid var(--line-3); } .mock .tl .frames i.on { background: var(--accent); border-color: var(--accent); } .mock .tl .frames i.dash { background: transparent; border-style: dashed; }
@media (min-width: 720px) { .mock .insp { display: flex; } .mock .tl { right: 188px; } .mock .body { height: 428px; } }

.feat { padding: 60px var(--gutter) 0; display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 720px) { .feat { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; padding-top: 78px; } }
.feat .c { padding: 26px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 13px; }
.feat .c svg { color: var(--accent); }
.feat h3 { margin: 0; font-family: var(--disp); font-size: 21px; font-weight: 700; letter-spacing: -0.02em; color: #fff; }
.feat p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }

.pricing { padding: 60px var(--gutter) 60px; }
.pricing .t { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 24px; padding-bottom: 26px; }
.pricing h2 { margin: 0; font-family: var(--disp); font-size: 28px; font-weight: 700; letter-spacing: -0.03em; color: #fff; }
.pricing .t p { margin: 0; font-size: 13.5px; color: var(--ink-3); }
.tiers { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 720px) { .pricing { padding-top: 78px; } .pricing h2 { font-size: 34px; } .tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tier { padding: 26px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; position: relative; }
.tier.hi { background: var(--surface-2); border-color: var(--accent); }
.tier .most { position: absolute; right: 22px; top: -11px; padding: 3px 11px; border-radius: 5px; background: var(--accent); font-family: var(--mono); font-size: 10.5px; font-weight: 600; color: #fff; letter-spacing: 0.06em; }
.tier .name { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; color: var(--ink-2); } .tier.hi .name { color: var(--accent); }
.tier .price { font-family: var(--disp); font-size: 40px; font-weight: 700; letter-spacing: -0.03em; color: #fff; line-height: 1; }
.tier .price.s { font-size: 28px; line-height: 1.1; }
.tier .per { font-size: 14px; color: var(--ink-2); }
.tier .who { font-size: 13px; color: var(--ink-3); }
.tier hr { border: 0; border-top: 1px solid var(--line); margin: 0; } .tier.hi hr { border-color: var(--line-3); }
.tier ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.tier li { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; line-height: 1.45; }
.tier li svg { color: var(--ok); flex-shrink: 0; margin-top: 2px; }
.tier li code { font-family: var(--mono); font-size: 12px; }
.tier .grow { flex: 1; }

/* ---------- Studio skin: Dashboard ---------- */

.dash { display: flex; min-height: 100vh; }
.dash .side { display: none; width: 216px; flex-shrink: 0; background: var(--surface); border-right: 1px solid var(--line); flex-direction: column; padding: 0 12px; }
.dash .side .brand { height: 66px; display: flex; align-items: center; gap: 10px; padding: 0 4px; font-family: var(--disp); font-size: 18px; font-weight: 700; letter-spacing: -0.02em; color: #fff; }
.dash .side .brand span { color: var(--ink-3); }
.dash .side .brand small { font-family: var(--mono); font-size: 10px; font-weight: 600; color: var(--blue); letter-spacing: 0.08em; padding-top: 3px; }
.dash .side nav { display: flex; flex-direction: column; gap: 3px; padding-top: 10px; }
.dash .side nav a { height: 36px; border-radius: 7px; display: flex; align-items: center; gap: 10px; padding: 0 11px; font-size: 13.5px; color: var(--ink-2); }
.dash .side nav a[aria-current="page"] { background: var(--raised); color: #fff; font-weight: 600; }
.dash .side nav a:hover { color: #fff; }
.dash .side .grow { flex: 1; }
.dash .side .me { height: 62px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; padding: 0 4px; }
.dash .side .me i { width: 30px; height: 30px; border-radius: 50%; background: var(--raised); border: 1px solid var(--line-3); flex-shrink: 0; }
.dash .side .me b { font-size: 12.5px; font-weight: 600; display: block; }
.dash .side .me small { font-family: var(--mono); font-size: 10px; color: var(--ink-3); }
.dash .main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dash .top { height: 66px; flex-shrink: 0; border-bottom: 1px solid var(--line); padding-inline: var(--gutter); display: flex; align-items: center; gap: 16px; }
.dash .top h1 { margin: 0; font-family: var(--disp); font-size: 21px; font-weight: 700; letter-spacing: -0.02em; color: #fff; }
.dash .top .grow { flex: 1; }
.dash .top .brand-m { font-family: var(--disp); font-size: 18px; font-weight: 700; color: #fff; }
.dash .top .brand-m span { color: var(--ink-3); }
@media (min-width: 1080px) { .dash .side { display: flex; } .dash .top .brand-m { display: none; } }
.dash .content { padding: 26px var(--gutter) 40px; display: flex; flex-direction: column; gap: 22px; }
.drop { border-radius: 10px; border: 1px dashed var(--line-3); background: var(--bg-2); display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 18px 22px; }
.drop .ic { width: 40px; height: 40px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--line-3); display: flex; align-items: center; justify-content: center; color: var(--accent); flex-shrink: 0; }
.drop b { font-size: 14px; font-weight: 600; display: block; }
.drop b code { font-family: var(--mono); font-size: 13px; }
.drop small { font-size: 12.5px; color: var(--ink-3); } .drop small b { display: inline; font-size: inherit; color: var(--ink); }
.tbl { border-radius: 10px; border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.tbl .th, .tbl .tr { display: grid; grid-template-columns: minmax(0, 2fr) 110px; gap: 18px; align-items: center; padding: 0 18px; }
.tbl .th { height: 40px; border-bottom: 1px solid var(--line); background: var(--bg-2); font-size: 11px; color: var(--ink-3); font-weight: 600; letter-spacing: 0.06em; }
.tbl .tr { height: 72px; border-bottom: 1px solid #16273a; font-size: 13px; color: inherit; }
.tbl .tr:last-child { border-bottom: 0; }
a.tbl-row:hover { background: var(--bg-2); color: inherit; }
.tbl .ser { display: flex; align-items: center; gap: 13px; min-width: 0; }
.tbl .ser .cov { width: 36px; height: 48px; flex-shrink: 0; border-radius: 4px; background: var(--surface-2); border: 1px dashed var(--line-3); }
.tbl .ser .cov img { border-radius: 4px; } .tbl .ser .cov.has { border: 0; }
.tbl .ser b { font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tbl .ser small { font-size: 11.5px; color: var(--ink-3); }
.tbl .c { display: none; }
.tbl small { font-size: 11.5px; color: var(--ink-3); display: block; }
.pill { display: inline-block; padding: 3px 9px; border-radius: 5px; font-size: 11px; font-weight: 600; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line-3); }
.pill.ok { background: rgba(16, 185, 129, 0.14); color: var(--ok); border: 0; }
.pill.rev { background: rgba(110, 150, 217, 0.16); color: var(--blue); border: 0; }
.pill.draft { border: 0; }
@media (min-width: 900px) {
  .tbl .th, .tbl .tr { grid-template-columns: minmax(0, 2.4fr) 110px minmax(0, 1.4fr) 100px 120px minmax(0, 1fr); }
  .tbl .c { display: block; }
}
.empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px; padding: 60px var(--gutter); text-align: center; }
.empty h2 { margin: 0; font-family: var(--disp); font-size: 32px; font-weight: 700; letter-spacing: -0.03em; color: #fff; }
.empty p { margin: 12px 0 0; font-size: 14.5px; color: var(--ink-2); max-width: 46ch; line-height: 1.55; }
.empty .kinds { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.kind { width: 268px; max-width: 100%; padding: 22px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-3); display: flex; flex-direction: column; gap: 14px; text-align: left; }
.kind.hi { background: var(--surface-2); border-color: var(--accent); }
.kind .pic { height: 96px; border-radius: 8px; background: var(--canvas); display: flex; align-items: center; justify-content: center; gap: 8px; overflow: hidden; }
.kind .pic i { display: block; background: #f4f0e9; width: 54px; height: 72px; }
.kind .pic .col { width: 72px; display: flex; flex-direction: column; gap: 4px; } .kind .pic .col i { width: 72px; height: 30px; }
.kind h3 { margin: 0; font-family: var(--disp); font-size: 18px; font-weight: 700; color: #fff; }
.kind p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.empty .hint { font-size: 13px; color: var(--ink-3); } .empty .hint b { color: var(--ink); font-weight: 500; }

/* ---------- Login, 404 ---------- */

.auth { max-width: 380px; margin: 0 auto; padding: 48px var(--gutter) 0; display: flex; flex-direction: column; gap: 22px; }
.auth h1 { margin: 0; font-family: var(--disp); font-size: 28px; font-weight: 700; letter-spacing: -0.03em; }
.auth p { margin: 0; color: var(--ink-2); font-size: 13.5px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12.5px; color: var(--ink-2); font-weight: 500; }
.field input { height: 44px; padding: 0 12px; border-radius: var(--radius-s); border: 1px solid var(--line-2); background: var(--bg-2); color: var(--ink); font: 14px var(--font); outline: none; }
.field input:focus { border-color: var(--ink-3); }
.form-err { padding: 10px 12px; border-radius: var(--radius-s); background: rgba(166, 50, 68, 0.14); color: #e59aa6; font-size: 13px; }
.lost { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding-inline: var(--gutter); }
.lost .code { font-family: var(--disp); font-size: 72px; font-weight: 800; letter-spacing: -0.04em; color: var(--ink-3); line-height: 1; }
.lost p { margin: 0; color: var(--ink-2); }

/* the synopsis: three lines, then "More" swaps in the whole thing */
.ser-syn.syn-short { margin: 0; }
.left:has(.ser-syn-more[open]) .syn-short { display: none; }
.ser-syn-more[open] p { padding-top: 16px; }
