/* Polyshire brand faces, self-hosted variable fonts (latin). */
@font-face {
  font-family: 'Baloo 2';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/baloo2.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url('/fonts/nunito.woff2') format('woff2');
}

/* Polyshire palette: parchment ground, pine ink, terracotta accents and
   buy buttons, honey kept for badges and highlights. */
:root {
  --ink: #3d4a38;
  --muted: #7d7a63;
  --line: #e8dfc4;
  --bg: #f7f1de;
  --card: #fdf9ec;
  --accent: #cf6b45;
  /* pine green: secondary buttons and links, so the warm colors stay
     reserved for the primary buy action */
  --blue: #2f5744;
  --blue-soft: #e9eedd;
  --blue-line: #a3b085;
  --honey: #d9a13f;
  --honey-ink: #4a3512;
  --sky: #b4d0ca;
  --shadow: 0 10px 30px rgba(96,82,43,.10), 0 2px 8px rgba(96,82,43,.08);
  --ok: #16a34a;
  --warn: #d97706;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.6 'Nunito', system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .mark, .btn, form.new button { font-family: 'Baloo 2', 'Nunito', sans-serif; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1520px; margin: 0 auto; padding: 0 clamp(20px, 3.5vw, 56px); }
header.site { padding: 26px 0 8px; display: flex; align-items: baseline; gap: 14px; }
.mark { font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.mark.brand { color: var(--blue); }
.mark span { color: var(--accent); }
.tag { color: var(--muted); font-size: 13.5px; }
.hero { padding: 30px 0 8px; }
.hero h1 { font-size: 30px; letter-spacing: -0.02em; margin: 0 0 6px; }
.hero p { color: var(--muted); margin: 0; max-width: 60ch; }
form.new { display: flex; gap: 8px; margin: 22px 0 8px; flex-wrap: wrap; }
form.new input[type=text], form.new input[type=email] {
  flex: 1; min-width: 260px; padding: 11px 13px; font: inherit;
  border: 1px solid var(--line); border-radius: 9px; background: var(--card);
}
form.new select { padding: 11px 10px; font: inherit; border: 1px solid var(--line); border-radius: 9px; background: var(--card); }
form.new button {
  padding: 11px 20px; font: inherit; font-weight: 700; color: #fff;
  background: var(--accent); border: 0; border-radius: 999px; cursor: pointer;
}
form.new button:hover { filter: brightness(1.08); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; padding: 22px 0 60px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  box-shadow: 0 2px 10px rgba(96,82,43,.06); transition: transform .12s ease, box-shadow .12s ease; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: #f2ebd9; }
.card .ph { width: 100%; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; color: var(--muted); background: #f2ebd9; font-size: 13px; }
.card .meta { padding: 10px 12px 12px; }
.card .t { font-weight: 600; font-size: 14px; }
.card .s { color: var(--muted); font-size: 12.5px; margin-top: 2px; display: flex; gap: 8px; }
.chip { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 99px; }
.chip.generating { background: #fef3c7; color: var(--warn); }
.chip.queued { background: #e5e7eb; color: #4b5563; }
.chip.review { background: #f8e3d2; color: #b05a20; }
.chip.error { background: #fee2e2; color: #b91c1c; }
.chip.published { background: #dcfce7; color: var(--ok); }
.chip.rejected { background: #f3f4f6; color: #6b7280; }
.chip.refs, .chip.building, .chip.judging { background: #fef3c7; color: var(--warn); }
.asset h1 { font-size: 24px; letter-spacing: -0.02em; margin: 18px 0 2px; }
.crumb { display: inline-block; margin: 14px 0 -12px; font-size: 13.5px; font-weight: 600;
  color: var(--muted); text-decoration: none; }
.crumb:hover { color: var(--accent); }
.asset .sub { color: var(--muted); font-size: 13.5px; margin-bottom: 16px; }
#stage { width: 100%; max-width: 920px; margin-inline: auto; height: 480px; border: 1px solid var(--line); border-radius: 14px; background: #f2ebd9; display: block; }
.row { display: flex; gap: 10px; margin: 14px 0; flex-wrap: wrap; align-items: center; }
.btn { padding: 8px 18px; border-radius: 999px; font-weight: 700; font-size: 13.5px;
  border: 2px solid var(--blue-line); background: transparent; color: var(--blue); cursor: pointer; }
.btn:hover { border-color: var(--blue); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 2px 8px rgba(96,82,43,.14); }
.btn.blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.shots { display: flex; gap: 8px; overflow-x: auto; padding: 6px 0 14px; }
.shots img { height: 110px; border-radius: 9px; border: 1px solid var(--line); background: #f2ebd9; }
pre.snippet {
  background: #16181d; color: #e5e7eb; border-radius: 10px; padding: 14px 16px;
  font: 12.5px/1.5 ui-monospace, "SF Mono", Menlo, monospace; overflow-x: auto;
}
table.passes { border-collapse: collapse; width: 100%; font-size: 13.5px; margin: 6px 0 50px; }
table.passes td, table.passes th { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line); }
table.passes th { color: var(--muted); font-weight: 600; font-size: 12.5px; }
.gen { padding: 40px 0 60px; text-align: center; color: var(--muted); }
.gen .spin { font-size: 26px; animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* ---- sticky mini header ---- */
.stickyBar { position: fixed; top: 0; left: 0; right: 0; z-index: 60; transform: translateY(-100%);
  transition: transform .22s ease; background: rgba(247,241,222,.9); backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.stickyBar.show { transform: translateY(0); }
.sbInner { display: flex; align-items: center; padding-top: 9px; padding-bottom: 9px; }
/* compact lockup regardless of the landing's oversized brand styles */
.stickyBar .brandIcon, body.landing .stickyBar .brandIcon {
  width: 28px; height: 28px; border-radius: 8px; margin-right: 9px; }
.stickyBar .mark.brand, body.landing .stickyBar .mark.brand { font-size: 16px; }
.sbRight { margin-left: auto; display: flex; align-items: center; }

/* ---- legal pages ---- */
.legal { max-width: 72ch; padding: 8px 0 30px; }
.legal h1 { font-size: 30px; letter-spacing: -0.02em; margin: 22px 0 6px; }
.legal h2 { font-size: 18px; letter-spacing: -0.01em; margin: 26px 0 6px; }
.legal p { margin: 0 0 10px; }
.legal a { color: var(--accent); font-weight: 600; }

/* ---- footer ---- */
.siteFooter { border-top: 1px solid var(--line); margin-top: 46px; padding: 36px 0 54px; }
.fCols { display: grid; grid-template-columns: 1.5fr repeat(3, minmax(140px, .6fr)); gap: 28px; }
.fBrand p { margin: 12px 0 0; max-width: 36ch; }
.fCol h5 { margin: 6px 0 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); font-weight: 700; }
.fCol a { display: block; padding: 4px 0; font-size: 14px; }
.fCol a:hover { color: var(--accent); }
@media (max-width: 760px) { .fCols { grid-template-columns: 1fr 1fr; gap: 20px; } .fBrand { grid-column: 1 / -1; } }

/* ---- landing ---- */
html { scroll-behavior: smooth; }
header.site { align-items: center; }
.nav-cta { margin-left: auto; }
.heroSplit { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(36px, 5vw, 80px); align-items: center; padding: 52px 0 26px; }
.heroSplit h1 { font-size: clamp(46px, 4.2vw, 62px); line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 14px;
  background: linear-gradient(120deg, var(--ink) 60%, var(--accent)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.heroSplit p { color: var(--muted); font-size: 17.5px; max-width: 54ch; }
.btn.big { padding: 12px 26px; font-size: 16px; }
.btn { transition: transform .15s ease, box-shadow .15s ease, filter .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn.primary:hover { box-shadow: 0 8px 24px rgba(207,107,69,.4); }
.btn.blue:hover { box-shadow: 0 8px 24px rgba(47,87,68,.35); border-color: var(--blue); }
.heroArt { position: relative; border-radius: 22px; overflow: hidden; border: 1px solid var(--line);
  background: radial-gradient(120% 120% at 30% 20%, #ffffff 0%, #eceae6 55%, #e2ded6 100%);
  box-shadow: 0 30px 80px rgba(22,24,29,.12); }
#hero3d { width: 100%; height: clamp(380px, 32vw, 470px); display: block; cursor: grab; touch-action: none; }
#hero3d:active { cursor: grabbing; }
.heroArt .hint { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%);
  font-size: 12px; color: var(--muted); background: rgba(255,255,255,.75); backdrop-filter: blur(6px);
  padding: 5px 12px; border-radius: 99px; pointer-events: none; white-space: nowrap; }
.heroArrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(255,253,247,.82); backdrop-filter: blur(6px); color: var(--ink);
  font-size: 26px; line-height: 1; font-weight: 600; cursor: pointer; display: flex;
  align-items: center; justify-content: center; padding-bottom: 3px;
  box-shadow: 0 6px 18px rgba(22,24,29,.12); transition: background .15s ease, transform .15s ease, color .15s ease; opacity: .55; }
.heroArt:hover .heroArrow { opacity: 1; }
.heroArrow:hover { background: #fff; color: var(--accent); transform: translateY(-50%) scale(1.06); }
.heroArrow.prev { left: 12px; }
.heroArrow.next { right: 12px; }
@media (max-width: 620px) { .heroArrow { opacity: 1; width: 40px; height: 40px; font-size: 23px; } }
.badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.badges span { font-size: 12px; font-weight: 600; padding: 5px 12px; border: 1px solid var(--line);
  border-radius: 99px; background: var(--card); color: var(--muted); }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 30px 0 10px; }
@media (max-width: 1240px) { .features { grid-template-columns: repeat(2, 1fr); } }
.features > div { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px;
  transition: transform .18s ease, box-shadow .18s ease; }
.features > div:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(22,24,29,.08); }
.features h4 { margin: 0 0 6px; font-size: 17px; }
.features p { margin: 0; color: var(--muted); font-size: 15.5px; }
.card.soon .ph.pal { display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #f3f1eb, #e6e2d9); }
.dots { display: flex; gap: 10px; }
.dots i { width: 26px; height: 26px; border-radius: 8px; display: block; animation: bob 3.2s ease-in-out infinite;
  box-shadow: 0 6px 14px rgba(22,24,29,.18); }
.dots i:nth-child(2) { animation-delay: .18s; } .dots i:nth-child(3) { animation-delay: .36s; }
.dots i:nth-child(4) { animation-delay: .54s; } .dots i:nth-child(5) { animation-delay: .72s; }
@keyframes bob { 50% { transform: translateY(-7px) rotate(4deg); } }
.price { display: flex; flex-direction: column; align-items: center; padding: 36px 0; }
/* row of 3 kit cards, each with its concept image */
.kitRow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px;
  width: 100%; max-width: 900px; margin: 0 auto 22px; }
.kitPick { display: flex; flex-direction: column; position: relative; }
.kitPick img, .kitPick .ph { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; background: #f3ecdc; }
.kitPick .kitInfo { padding: 13px 15px 0; }
.kitPick .t { font-weight: 700; font-size: 15.5px; letter-spacing: -0.01em; }
.kitPick .s { color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.kitPick .kitBtn { margin: 13px 15px 15px; text-align: center; }
.kitPick .cardPill { top: 12px; right: 12px; font-size: 17px; font-weight: 800; letter-spacing: -0.01em;
  padding: 5px 14px; box-shadow: 0 4px 12px rgba(22,24,29,.14); }
/* a hand of cards: every kit fanned out, plus "+" cards for the ones coming */
.kitFan { display: flex; justify-content: center; align-items: flex-end;
  margin: 14px 0 16px; padding-top: 8px; }
.fanCard { width: 76px; height: 56px; border-radius: 9px; overflow: hidden; flex: none;
  border: 2px solid var(--card); background: #f3ecdc;
  box-shadow: 0 6px 16px rgba(92,74,40,.18); transform-origin: bottom center;
  transition: transform .18s ease; }
.fanCard + .fanCard { margin-left: -26px; }
/* compact fan for the asset page's narrow buy sidebar */
.kitFan.small { margin: 10px 0 14px; padding-top: 4px; }
.kitFan.small .fanCard { width: 54px; height: 40px; border-width: 1.5px; border-radius: 7px; }
.kitFan.small .fanCard + .fanCard { margin-left: -18px; }
.kitFan.small .fanCard.more { font-size: 16px; }
.fanCard img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fanCard.more { display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800; color: var(--accent);
  background: repeating-linear-gradient(45deg, #f7efe2, #f7efe2 6px, #f2e7d5 6px, #f2e7d5 12px); }
/* fan them out from the middle, like cards held in a hand */
.fanCard:nth-child(1) { transform: rotate(-13deg) translateY(5px); }
.fanCard:nth-child(2) { transform: rotate(-6.5deg) translateY(1px); }
.fanCard:nth-child(3) { transform: rotate(0deg); z-index: 2; }
.fanCard:nth-child(4) { transform: rotate(6.5deg) translateY(1px); }
.fanCard:nth-child(5) { transform: rotate(13deg) translateY(5px); }
.lifeCard:hover .fanCard:nth-child(1) { transform: rotate(-17deg) translateY(2px); }
.lifeCard:hover .fanCard:nth-child(5) { transform: rotate(17deg) translateY(2px); }

.bestTag { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: #15803d; background: #dcfce7; border: 1px solid #bbf7d0; border-radius: 99px; padding: 2px 7px;
  white-space: nowrap; flex: none; }
/* lifetime deal: its own row below, emphasized (uses .priceCard base) */
.lifeCard .priceTop { display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 720px) { .kitRow { grid-template-columns: 1fr; max-width: 340px; } }
.priceCard { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 32px 36px;
  max-width: 440px; width: 100%; text-align: center; box-shadow: 0 24px 70px rgba(201,102,47,.12); }
.priceTop { font-weight: 700; color: var(--accent); text-transform: uppercase; font-size: 12px; letter-spacing: .1em; }
.priceNum { font-size: 56px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; }
.priceSub { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.priceCard ul { list-style: none; padding: 0; margin: 0 0 18px; text-align: left; }
.priceCard li { padding: 8px 0 8px 26px; position: relative; border-bottom: 1px dashed var(--line); font-size: 14px; }
.priceCard li::before { content: '✓'; position: absolute; left: 2px; color: var(--ok); font-weight: 700; }
.priceCard form.new { margin: 6px 0 4px; }
.faq { max-width: 720px; margin: 0 auto; padding: 10px 0 40px; }
.faq > h3 { text-align: center; font-size: 24px; letter-spacing: -0.02em; margin: 0 0 20px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  margin-bottom: 10px; overflow: hidden; transition: border-color .15s ease, box-shadow .15s ease; }
.faq details[open] { border-color: #ecd3b8; box-shadow: 0 10px 30px rgba(92,74,40,.09); }
.faq summary { font-weight: 600; font-size: 15.5px; cursor: pointer; list-style: none;
  padding: 15px 52px 15px 20px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
/* custom +/- indicator (the default triangle reads as a bullet, not a control):
   the horizontal bar always shows, the vertical one collapses away when open */
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 20px; top: 50%;
  background: var(--accent); border-radius: 1px; }
.faq summary::before { width: 11px; height: 2px; margin-top: -1px; }
.faq summary::after { width: 2px; height: 11px; margin-top: -5.5px; margin-right: 4.5px;
  transition: transform .2s ease; }
.faq details[open] summary::after { transform: scaleY(0); }
.faq p { color: var(--muted); margin: 0; padding: 0 20px 17px; font-size: 14.5px; }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .65s ease, transform .65s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (max-width: 860px) {
  .heroSplit { grid-template-columns: 1fr; padding-top: 26px; }
  .heroSplit h1 { font-size: 34px; }
  #hero3d { height: 320px; }
  .nav-cta { display: none; }
}

/* ---- landing: soft storefront theme (palette from the kit concepts) ---- */
body.landing {
  --ink: #3d372e; --muted: #8a8172; --line: #e7dfd0;
  --bg: #faf6ec; --card: #fffdf7;
  --accent: #d96f2e; --accent2: #5c7a4a; --sand: #d9c9a3;
  /* short pages (login): fill the viewport so the bg gradients never end mid-screen */
  min-height: 100vh;
  background:
    radial-gradient(1000px 600px at 8% -10%, rgba(217,111,46,.12), transparent 60%),
    radial-gradient(800px 500px at 100% 8%, rgba(217,201,163,.35), transparent 55%),
    radial-gradient(900px 700px at 50% 115%, rgba(122,154,92,.08), transparent 60%),
    var(--bg);
}
body.landing .mark span { color: var(--accent); }
body.landing .heroSplit h1 {
  background: linear-gradient(115deg, #3d372e 50%, #d96f2e);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
body.landing .heroArt {
  background: radial-gradient(120% 130% at 32% 18%, #fffdf7 0%, #f3ecdc 55%, #e9dfc8 100%);
  border-color: #e2d8c2;
  box-shadow: 0 1px 0 #fff inset, 0 24px 70px rgba(92,74,40,.16), 0 6px 18px rgba(92,74,40,.08);
}
body.landing .heroArt .hint { background: rgba(255,253,247,.85); color: var(--muted); }
body.landing .badges span { background: var(--card); border-color: var(--line); color: var(--muted); }
body.landing form.new input[type=email] { background: var(--card); border-color: var(--line); color: var(--ink); }
body.landing form.new input[type=email]::placeholder { color: #b3a990; }
body.landing .features > div { background: var(--card); border-color: var(--line); }
body.landing .features > div:hover { border-color: #ecd3b8; box-shadow: 0 16px 44px rgba(92,74,40,.12); }
body.landing h3 { font-size: 24px; letter-spacing: -0.02em; margin: 34px 0 4px; }
/* ---- browse (/assets): sticky filter sidebar + results ---- */
.browse { display: grid; grid-template-columns: 232px 1fr; gap: 30px; align-items: start; padding: 4px 0 30px; }
.filters { position: sticky; top: 22px; display: flex; flex-direction: column; gap: 24px; }
.filters input[type=search] { width: 100%; padding: 11px 13px; font: inherit;
  border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.filters input[type=search]:focus { outline: 2px solid #ecd3b8; border-color: #ecd3b8; }
.fGroup h4 { margin: 0 0 6px; padding: 0 10px; font-size: 11.5px; text-transform: uppercase;
  letter-spacing: .09em; color: var(--muted); font-weight: 700; }
.fGroup a { display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 9px; font-size: 13.5px; font-weight: 600; }
.fGroup a:hover { background: var(--card); }
.fGroup a.on { background: #f6e7d4; color: var(--accent); }
.fGroup .cnt { color: var(--muted); font-size: 12px; font-weight: 600; }
.fGroup a.on .cnt { color: var(--accent); opacity: .75; }
.resultsHead { display: flex; align-items: center; gap: 12px; }
.resultsHead .tag { flex: 1; }
.resultsHead select { padding: 9px 10px; font: inherit; font-weight: 600; font-size: 13px;
  border: 1px solid var(--line); border-radius: 9px; background: var(--card); cursor: pointer; }
.browse .grid { padding: 14px 0 20px; }
@media (max-width: 900px) {
  .browse { grid-template-columns: 1fr; gap: 16px; }
  .filters { position: static; gap: 14px; }
  .fGroup { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
  .fGroup h4 { width: 100%; margin: 0 0 2px; }
}
.chip.paid { background: #f8e3d2; color: #b05a20; }
.card { position: relative; }
.cardPill { position: absolute; top: 10px; right: 10px; z-index: 2; font-size: 11.5px; font-weight: 700;
  padding: 3px 10px; border-radius: 99px; background: #e4eeda; color: #4a6a4f;
  box-shadow: 0 2px 8px rgba(22,24,29,.10); }

/* ---- auth (login) ---- */
.authWrap { max-width: 460px; text-align: center; padding-top: 11vh; padding-bottom: 60px; }
.authCard { background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  padding: 30px 30px 26px; margin-top: 22px; text-align: center;
  box-shadow: 0 24px 70px rgba(22,24,29,.08); }
.authCard h1 { font-size: 24px; letter-spacing: -0.02em; margin: 0 0 6px; }
.gbtn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  padding: 12px 16px; background: #fff; border: 1px solid var(--line); border-radius: 10px;
  font-weight: 600; font-size: 14.5px; cursor: pointer;
  transition: box-shadow .15s ease, transform .15s ease; }
.gbtn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(22,24,29,.10); }
.orSep { display: flex; align-items: center; gap: 12px; color: var(--muted);
  font-size: 12.5px; margin: 18px 0; }
.orSep::before, .orSep::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.authForm input[type=email] { width: 100%; padding: 12px 13px; font: inherit;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; margin-bottom: 10px; }
.authForm .btn { width: 100%; padding: 12px 16px; font-size: 14.5px; border-radius: 10px; }
.authErr { background: #fee2e2; color: #b91c1c; font-size: 13px; border-radius: 10px;
  padding: 10px 14px; margin: 0 0 14px; }
.authMail { font-size: 34px; margin: 6px 0 10px; color: var(--accent); }
.kitThumb { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; border-radius: 9px;
  border: 1px solid var(--line); margin-bottom: 10px; background: #f2ebd9; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 15px; overflow: hidden; cursor: pointer;
  border: 1px solid var(--line); flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.guest { background: var(--card); color: var(--muted); }
.avatar.guest:hover { color: var(--accent); }
.avatarMenu { position: relative; }
.avatarMenu summary { list-style: none; }
.avatarMenu summary::-webkit-details-marker { display: none; }
.avatarMenu nav { position: absolute; right: 0; top: 42px; min-width: 200px; max-width: 300px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 6px; z-index: 50;
  box-shadow: 0 14px 40px rgba(22,24,29,.14); }
.avatarMenu nav a { display: block; padding: 8px 12px; border-radius: 8px; font-size: 13.5px; font-weight: 600; }
.avatarMenu nav a:hover { background: var(--bg); }
.avatarMenu nav .who { padding: 6px 12px 8px; color: var(--muted); font-size: 12px;
  border-bottom: 1px solid var(--line); margin-bottom: 6px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatarMenu nav .sep { border-top: 1px solid var(--line); margin: 6px 0; }
body.landing .wrap > h2, body.landing .faq h2 { font-size: 24px; letter-spacing: -0.02em; margin: 34px 0 4px; }
body.landing .steps { max-width: 660px; padding-left: 22px; }
body.landing .steps li { color: var(--muted); margin: 6px 0; }
body.landing .card { background: var(--card); border-color: var(--line); }
body.landing .card:hover { border-color: #ecd3b8; box-shadow: 0 18px 44px rgba(92,74,40,.13); }
body.landing .card img, body.landing .card .ph { background: #f3ecdc; }
body.landing .card.soon .ph.pal { background: radial-gradient(120% 120% at 30% 20%, #fbf7ee 0%, #f0e8d6 60%, #e7dcc4 100%); }
body.landing .dots i { box-shadow: 0 6px 14px rgba(92,74,40,.22), 0 0 0 1px rgba(255,255,255,.5); }
body.landing .chip.queued { background: #efe9db; color: #8a8172; }
body.landing .priceCard {
  background: linear-gradient(180deg, rgba(217,111,46,.06), transparent 45%), var(--card);
  border-color: #e8d2ba;
  box-shadow: 0 24px 70px rgba(92,74,40,.16), 0 6px 18px rgba(92,74,40,.08);
}
body.landing .priceTop { color: var(--accent); }
body.landing .priceNum { color: var(--ink); }
body.landing .priceCard li { border-bottom-color: var(--line); }
body.landing .btn { background: transparent; border-color: var(--blue-line); color: var(--blue); }
body.landing .btn:hover { border-color: var(--blue); }
body.landing .btn.primary { background: linear-gradient(120deg, #de8557, #cf6b45); border: 0; color: #fffdf7; }
body.landing .btn.blue { background: linear-gradient(120deg, #3d7057, #2f5744); border: 0; color: #fffdf7; }
body.landing .btn.blue:hover { box-shadow: 0 10px 30px rgba(31,100,145,.4); }
body.landing .btn.primary:hover { box-shadow: 0 10px 30px rgba(217,111,46,.4); }
body.landing form.new button { background: linear-gradient(120deg, #de8557, #cf6b45); }
body.landing pre.snippet { background: #332f28; }

/* ---- store product pages ---- */
.productGrid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 20px; align-items: start; margin: 6px 0 10px; }
.productGrid > * { min-width: 0; }
#rigControls { flex-wrap: wrap; }
.buyBox { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.buyBox.slim { max-width: 560px; margin: 6px 0 18px; }
/* the buy ladder: this asset / its kit / everything. Each option is its own
   card so the three prices read as a comparison, not a stack of paragraphs. */
.priceOpt { background: var(--bg); border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 13px 13px; margin-bottom: 9px;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.priceOpt:hover { border-color: #ecd3b8; box-shadow: 0 10px 26px rgba(92,74,40,.10); }
.priceOpt.best { background: linear-gradient(180deg, rgba(217,111,46,.08), transparent 55%), var(--bg);
  border-color: #e8d2ba; box-shadow: 0 12px 30px rgba(92,74,40,.12); }
.priceOpt p { margin: 4px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.priceOpt form { margin: 9px 0 0; }
.priceOpt form .btn, .priceOpt form button { width: 100%; padding: 9px 16px; font-size: 14px; border-radius: 10px; }
.po-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.po-head strong { font-size: 15px; letter-spacing: -0.01em; }
.priceOpt.best .po-head strong { font-size: 14.5px; }
/* title cluster: lets a mini thumb or a pill sit beside the name */
.optWith { display: flex; align-items: center; gap: 8px; min-width: 0; }
.kitMini { width: 40px; height: 32px; object-fit: cover; border-radius: 7px; flex: none;
  border: 1px solid var(--line); background: #f3ecdc; display: block; }
/* every kit cover, then a plus: "all of these, and everything else" */
.po-head a { color: inherit; }
.po-head a:hover { color: var(--accent); }
.po-price { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; color: var(--accent);
  white-space: nowrap; }
body.landing .po-price { color: var(--accent); }
ul.specs { list-style: none; padding: 0; margin: 12px 0; }
ul.specs li { padding: 6px 0 6px 24px; position: relative; font-size: 13.5px; border-bottom: 1px dashed var(--line); }
ul.specs li::before { content: ''; position: absolute; left: 6px; top: 13px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--muted); }
body.landing #stage { background: radial-gradient(120% 130% at 32% 18%, #fffdf7 0%, #f3ecdc 55%, #e9dfc8 100%); border-color: #e2d8c2; }
@media (max-width: 860px) { .productGrid { grid-template-columns: 1fr; } }
.chip.free { background: #dcfce7; color: #15803d; } body.landing .chip.free { background: #e4eeda; color: #4a6a4f; }

/* ---- admin mobile ---- */
.tableWrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tableWrap table.passes { min-width: 560px; }
@media (max-width: 700px) {
  .wrap { padding: 0 14px; }
  header.site { flex-wrap: wrap; gap: 8px; padding-top: 16px; }
  .hero h1 { font-size: 24px; }
  form.new { flex-direction: column; }
  form.new input[type=text], form.new input[type=email], form.new select, form.new button { width: 100%; min-width: 0; }
  .kitBoard { padding: 12px; }
  .kitPartRow { row-gap: 2px; }
  .kitPartRow .btn { margin-left: auto; }
  .btn, .btn.small { padding: 8px 14px; } /* comfortable tap targets */
  table.passes { font-size: 12.5px; }
  table.passes td, table.passes th { padding: 6px 8px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
}

/* ---- brand ---- */
.brand { display: inline-flex; align-items: center; }
.brandIcon { width: 30px; height: 30px; border-radius: 8px; display: block; margin-right: 9px; }

/* compact kit concept image on small screens */
@media (max-width: 760px) {
  .kitRef img { aspect-ratio: 16 / 7; object-fit: cover; border-radius: 10px; }
}

/* grid blowout guard: never let the concept image's intrinsic size stretch the board */
.kitBoard > * { min-width: 0; }
.kitRef img { max-width: 100%; }
@media (max-width: 760px) { .kitBoard { grid-template-columns: minmax(0, 1fr); } }
/* ---- review tooling ---- */
.hier { margin: 4px 0 16px; }
.hier summary { font-weight: 600; font-size: 13.5px; cursor: pointer; color: var(--muted); }
.tree { border: 1px solid var(--line); border-radius: 10px; margin-top: 8px; padding: 8px 0; background: var(--card); max-height: 300px; overflow-y: auto; }
.treeRow { display: block; padding: 3px 12px; font-size: 13px; }
.treeRow.treeHead { font-weight: 700; border-bottom: 1px solid var(--line); padding-bottom: 7px; margin-bottom: 5px; }
.treeRow input { vertical-align: -1px; }
.reviewBox { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: var(--card); margin: 6px 0 20px; }
.reviewBox textarea { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; resize: vertical; background: var(--bg); }
.btn.small { padding: 4px 10px; font-size: 12.5px; }
.chip.planned { background: #e0e7ff; color: #4338ca; }
.chip.needs-work { background: #ffedd5; color: #c2410c; }
.chip.parts, .chip.planning, .chip.composing, .chip.kit-judging, .chip.compose-queued { background: #fef3c7; color: var(--warn); }
.kitBoard { display: grid; grid-template-columns: 240px 1fr; gap: 16px; border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: var(--card); margin: 10px 0 24px; }
.kitRef img { width: 100%; border-radius: 10px; border: 1px solid var(--line); display: block; }
.kitRef .ph { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; color: var(--muted); background: #f2ebd9; border-radius: 10px; font-size: 13px; }
.kitParts { margin-top: 10px; display: flex; flex-direction: column; gap: 5px; }
.kitPartRow { display: flex; gap: 8px; align-items: center; font-size: 13.5px; flex-wrap: wrap; }
@media (max-width: 760px) { .kitBoard { grid-template-columns: 1fr; } }

/* bigger brand on the landing */
body.landing .brandIcon { width: 58px; height: 58px; border-radius: 14px; margin-right: 14px; }
body.landing .mark.brand { font-size: 42px; }

/* hero brand above the title; feature card corner icons */
body.landing .heroBrand { display: inline-flex; align-items: center; margin-bottom: 30px; font-size: 30px; }
body.landing .heroBrand .brandIcon { width: 84px; height: 84px; border-radius: 20px; margin-right: 17px; }
/* feature card layout: text block on the left, mini render on the right */
.features > div { display: grid; grid-template-columns: 1fr auto; column-gap: 14px;
  grid-template-areas: "title icon" "body icon"; align-items: center; min-height: 148px; }
.features h4 { grid-area: title; align-self: end; }
.features p { grid-area: body; align-self: start; }
.featIcon { grid-area: icon; width: 116px; height: 116px; }
/* mobile: single column, but keep the mini render on the right (a touch smaller
   than desktop so the text still has room) */
@media (max-width: 620px) {
  .features { grid-template-columns: 1fr; gap: 12px; padding: 22px 0 6px; }
  .features > div { min-height: 0; padding: 18px; }
  .featIcon { width: 92px; height: 92px; }
  .features p { font-size: 15px; }
}

/* the Use it heading follows the viewer's spec line: no big gap above it */
h3.useHead { margin-top: 8px; }

/* ---- asset page: usage tabs ---- */
#useTabs .tabPane { display: none; }
#useTabs .tabPane.on { display: block; }
#useTabs .fullEx summary { cursor: pointer; margin: 10px 0 6px; font-weight: 600; }
#useTabs .fullEx summary:hover { color: var(--accent); }

/* ---- asset page: related rail (always one row, scrolls when tight) ---- */
.relatedRow { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 235px);
  gap: 16px; overflow-x: auto; padding: 14px 0 34px; }
.stageWrap { position: relative; }
.stageWrap .stageHint { position: absolute; right: 12px; bottom: 12px; font-size: 12px;
  color: var(--muted); background: rgba(255,253,247,.8); backdrop-filter: blur(6px);
  padding: 4px 11px; border-radius: 99px; pointer-events: none; white-space: nowrap; }
.titleRow { display: flex; align-items: center; gap: 12px; margin: 18px 0 2px; }
.titleRow h1 { margin: 0; }
.backBtn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--card); display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; color: var(--muted); flex: none; }
.backBtn:hover { color: var(--accent); border-color: #ecd3b8; transform: none; }

/* ---- landing: AI agent band ---- */
.agentBand { background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  padding: 24px 28px 28px; margin: 28px 0 8px; }
.agentBand h3 { font-size: 24px; letter-spacing: -0.02em; }
.abHead { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; margin: 0 0 18px; }

/* ---- landing: live agent demo (chat + pop-in stage) ---- */
.agentDemo { display: grid; grid-template-columns: .85fr 1.15fr; gap: 14px; min-width: 0; }
@media (max-width: 860px) { .agentDemo { grid-template-columns: 1fr; } }
.demoChat { background: #16181d; border-radius: 12px; padding: 16px 18px; min-height: 380px;
  max-height: 380px; overflow: hidden; font: 14.3px/1.7 ui-monospace, "SF Mono", Menlo, monospace; }
.demoLine { white-space: pre-wrap; word-break: break-all; }
.demoLine.demoUser { color: #e5e7eb; font-weight: 600; }
.demoLine.demoUser::after { content: "▍"; color: #d96f2e; animation: demoBlink 1s steps(1) infinite; }
.demoLine.demoUser:not(:last-child)::after { content: ""; }
.demoLine.demoTool { color: #8a93a6; }
.demoLine.demoOk { color: #7fbf7f; }
@keyframes demoBlink { 50% { opacity: 0; } }
.demoStage { position: relative; background: radial-gradient(120% 120% at 30% 20%, #fffdf7 0%, #f3ecdc 60%, #e7dcc4 100%);
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
/* Act three turns the stage to dusk. Gradients can't be transitioned, so the
   night sky is a second layer under the canvas that fades its opacity in. */
.demoStage::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(120% 120% at 30% 18%, #2f3a5e 0%, #1d2338 58%, #12151f 100%);
  opacity: var(--nightK, 0); }
.demoStage canvas { position: relative; z-index: 1; width: 100%; height: 380px; display: block; cursor: grab; touch-action: none; }
.demoStage canvas:active { cursor: grabbing; }
.demoReplay { position: absolute; right: 10px; bottom: 10px; width: 30px; height: 30px;
  border-radius: 50%; border: 1px solid var(--line); background: rgba(255,253,247,.85);
  color: var(--muted); font-size: 15px; cursor: pointer; }
.demoReplay:hover { color: var(--accent); }

/* ---- in-card embedded checkout ---- */
.buyEmbed { margin: 12px 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 8px 8px; }
.buyEmbedClose { display: block; text-align: right; cursor: pointer; font-weight: 600; padding: 0 8px 4px; }
.buyEmbedClose:hover { color: var(--accent); }

/* ---- /agents: the agent onboarding page ---- */
.agentPage { max-width: 1060px; margin: 0 auto; }
.agentHero { padding: 22px 0 2px; display: grid; grid-template-columns: 1.12fr .88fr;
  gap: clamp(28px, 4vw, 54px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; color: var(--accent);
  background: #f6e7d4; border: 1px solid #ecd3b8; border-radius: 99px; padding: 5px 12px; }
.agentHero h1 { font-size: clamp(32px, 3.6vw, 46px); line-height: 1.06; letter-spacing: -0.03em;
  margin: 18px 0 12px; }
.agentHero .lead { color: var(--muted); font-size: 17.5px; max-width: 62ch; margin: 0; }
.agentHero .row { margin-top: 22px; }

.apiCard { background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 18px 20px 20px; box-shadow: 0 18px 44px rgba(92,74,40,.09); }
.apiHead { display: flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .09em; color: var(--muted); margin-bottom: 12px; }
.apiCard ul { list-style: none; margin: 0; padding: 0; }
.apiCard li { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  padding: 8px 0; border-bottom: 1px dashed var(--line);
  font: 12.5px ui-monospace, "SF Mono", Menlo, monospace; }
.apiCard li b { color: var(--accent); font-size: 10.5px; letter-spacing: .06em; }
.apiCard li span { margin-left: auto; font-family: system-ui, sans-serif; font-size: 12px; color: var(--muted); }
.apiCard p { margin: 13px 0 0; color: var(--muted); font-size: 13px; }
.apiCard a { color: var(--accent); font-weight: 600; }

h2.sec { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
  color: var(--muted); margin: 46px 0 14px; display: flex; align-items: center; gap: 14px; }
h2.sec::after { content: ""; flex: 1; border-top: 1px solid var(--line); }

.stepCards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.stepCard { background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 20px 22px 22px; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.stepCard:hover { transform: translateY(-3px); border-color: #ecd3b8; box-shadow: 0 16px 40px rgba(92,74,40,.11); }
.stepCard .n { width: 28px; height: 28px; border-radius: 9px; display: flex; align-items: center;
  justify-content: center; font-size: 13.5px; font-weight: 800; color: #fffdf7;
  background: linear-gradient(120deg, #de8557, #cf6b45); }
.stepCard h4 { margin: 13px 0 6px; font-size: 16.5px; letter-spacing: -0.01em; }
.stepCard p { margin: 0; color: var(--muted); font-size: 14.5px; }
.stepCard a { color: var(--accent); font-weight: 600; }
code.kbd { font: 12px ui-monospace, "SF Mono", Menlo, monospace; background: #f3ead9;
  border: 1px solid #e7dcc4; border-radius: 6px; padding: 1.5px 6px; color: #a1561f; white-space: nowrap; }

.termCard { border-radius: 16px; overflow: hidden; background: #24211c;
  box-shadow: 0 26px 64px rgba(92,74,40,.20), 0 4px 12px rgba(92,74,40,.10); }
.termBar { display: flex; align-items: center; gap: 7px; padding: 11px 12px 11px 15px;
  background: #2d2a23; border-bottom: 1px solid #3a352c; }
.termBar i { width: 10px; height: 10px; border-radius: 50%; background: #4b453a; display: block; }
.termBar i:first-child { background: var(--accent); }
.termBar .name { color: #a89e8c; font: 12px ui-monospace, "SF Mono", Menlo, monospace; margin-left: 8px; }
.termBar .btn { margin-left: auto; padding: 6px 13px; font-size: 12.5px; }
.termWrap { position: relative; }
.termBody { margin: 0; padding: 18px 20px 22px; color: #e6e0d3; overflow: auto; max-height: 540px;
  font: 12.6px/1.62 ui-monospace, "SF Mono", Menlo, monospace; }
.termFade { position: absolute; left: 0; right: 0; bottom: 0; height: 64px; pointer-events: none;
  background: linear-gradient(rgba(36,33,28,0), #24211c); transition: opacity .2s ease; }
.termWrap.atEnd .termFade { opacity: 0; }
.termFoot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 9px 15px 10px; background: #2d2a23; border-top: 1px solid #3a352c;
  color: #8f8676; font: 11.5px ui-monospace, "SF Mono", Menlo, monospace; }
.termBody .h { color: #f0a35c; font-weight: 700; letter-spacing: .04em; }
.termBody .u { color: #93c9a3; }
.termBody .k { color: #e8c46a; }
.termNote { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap;
  margin: 10px 2px 0; color: var(--muted); font-size: 13px; }

.seeGrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.seeCard { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px 20px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.seeCard:hover { transform: translateY(-3px); border-color: #ecd3b8; box-shadow: 0 16px 40px rgba(92,74,40,.11); }
.seeCard svg { width: 22px; height: 22px; color: var(--accent); display: block; }
.seeCard h4 { margin: 12px 0 5px; font-size: 15.5px; letter-spacing: -0.01em; }
.seeCard p { margin: 0; color: var(--muted); font-size: 14px; }

.agentCta { background: linear-gradient(180deg, rgba(217,111,46,.07), transparent 60%), var(--card);
  border: 1px solid #e8d2ba; border-radius: 22px; padding: 30px 32px; margin: 46px 0 10px;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.agentCta h3 { margin: 0 0 6px; font-size: 22px; letter-spacing: -0.02em; }
.agentCta p { margin: 0; color: var(--muted); max-width: 52ch; }
.agentCta .row { margin: 0 0 0 auto; }
@media (max-width: 860px) {
  .agentHero { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 700px) {
  .agentHero h1 { font-size: 30px; }
  .agentHero .lead { font-size: 16px; }
  .termBody { font-size: 11.4px; padding: 14px 14px 18px; }
  .agentCta { padding: 22px; }
  .agentCta .row { margin: 4px 0 0; }
}


/* ---- /account ---- */
.acctWrap { max-width: 860px; margin: 0 auto; padding-bottom: 20px; }
.acctWrap > h1 { font-size: 28px; letter-spacing: -0.02em; margin: 22px 0 0; }
.acctHead { display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 20px 22px; margin: 18px 0 10px; box-shadow: 0 10px 30px rgba(92,74,40,.07); }
.acctAv { width: 54px; height: 54px; border-radius: 50%; flex: none; display: flex;
  align-items: center; justify-content: center; font-size: 22px; font-weight: 800; color: #fffdf7;
  background: linear-gradient(135deg, #de8557, #cf6b45); overflow: hidden; }
.acctAv img { width: 100%; height: 100%; object-fit: cover; }
.acctWho { flex: 1; min-width: 0; }
.acctWho .em, .acctWho .meta { display: block; }
.acctWho .em { font-weight: 700; font-size: 17px; letter-spacing: -0.01em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acctWho .meta { color: var(--muted); font-size: 13px; margin-top: 3px; }
.acctWho .meta a { color: var(--accent); font-weight: 600; }
.lifePill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700;
  color: #15803d; background: #dcfce7; border: 1px solid #bbf7d0; border-radius: 99px; padding: 5px 12px; }
.acctNote { background: #e9f7ee; border: 1px solid #bbf7d0; color: #166534;
  border-radius: 12px; padding: 11px 15px; margin: 0 0 14px; font-size: 14px; }
h2.acctSec { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
  color: var(--muted); margin: 30px 0 12px; display: flex; align-items: center; gap: 14px; }
h2.acctSec::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
/* one purchase per row: thumb, what it is, what it cost, its downloads */
.buyRow { display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 14px; margin-bottom: 9px; transition: border-color .15s ease, box-shadow .15s ease; }
.buyRow:hover { border-color: #ecd3b8; box-shadow: 0 8px 22px rgba(92,74,40,.09); }
.buyThumb { width: 62px; height: 46px; border-radius: 9px; object-fit: cover; flex: none;
  border: 1px solid var(--line); background: #f3ecdc; display: flex; align-items: center;
  justify-content: center; font-size: 20px; color: #fffdf7; }
.buyThumb.all { background: linear-gradient(135deg, #de8557, #cf6b45); border: 0; }
.buyBody { flex: 1; min-width: 140px; }
.buyBody .t, .buyBody .s { display: block; }
.buyBody .t { font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
.buyBody .t a:hover { color: var(--accent); }
.buyBody .s { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.buyDl { display: flex; align-items: center; gap: 7px; flex: none; }
.buyDl .btn { padding: 6px 12px; font-size: 12.5px; }
/* api keys */
.keyRow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 11px 14px; margin-bottom: 8px; }
.keyRow .kName { font-weight: 700; font-size: 14.5px; flex: 1; min-width: 120px; }
.keyRow .kMeta { color: var(--muted); font-size: 12.5px; }
.keyRow form { margin: 0; }
.keyNew { border: 1px solid var(--accent); border-radius: 14px; padding: 14px 16px;
  margin: 0 0 14px; background: var(--card); }
.keyForm { display: flex; gap: 9px; flex-wrap: wrap; margin: 12px 0 34px; }
.keyForm input { flex: 1; min-width: 200px; padding: 10px 13px; font: inherit;
  border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.emptyBox { background: var(--card); border: 1px dashed var(--line); border-radius: 16px;
  padding: 28px 24px; text-align: center; margin-bottom: 10px; }
.emptyBox p { margin: 0 0 6px; }
.emptyBox .row { justify-content: center; }
@media (max-width: 560px) {
  .buyDl { width: 100%; }
  .buyDl .btn { flex: 1; text-align: center; }
}

/* site-wide sign-in modal */
dialog.loginModal { border: none; border-radius: 22px; padding: 0; max-width: 400px; width: 92vw; background: transparent; }
dialog.loginModal::backdrop { background: rgba(24, 19, 12, 0.45); backdrop-filter: blur(3px); }
dialog.loginModal .authCard { width: 100%; }
.lmClose { position: absolute; top: 10px; right: 12px; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--card); font-size: 16px; line-height: 1; cursor: pointer; }
.lmClose:hover { background: var(--line); }
.lmBrand { display: flex; justify-content: center; margin: 0 0 14px; font-size: 17px; }
a.avatar.guest { display: inline-flex; align-items: center; justify-content: center; }

/* Board-matched focus treatment */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--sky); outline-offset: 2px;
}
