/* Plus Jakarta Sans (SIL Open Font License, assets/fonts/OFL.txt), self-hosted, latin subset, variable weight. */
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("/assets/fonts/plus-jakarta-sans.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* BuildShare — one stylesheet, no framework. */
:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --surface-2: #f3eee6;
  --ink: #1b221e;
  --ink-2: #39443e;
  --muted: #64706a;
  --line: #e5ded2;
  --line-2: #d6cdbf;
  --brand: #1f4d36;
  --brand-2: #2b6a4b;
  --brand-tint: #e5efe8;
  --accent: #d9822b;
  --accent-ink: #8f4c0e;
  --accent-strong: #a65d16; /* white text on it passes 4.5:1 */
  --accent-tint: #fbefe1;
  --danger: #b42318;
  --danger-tint: #fdecea;
  --ok: #1d7a46;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(27, 34, 30, .06), 0 4px 16px rgba(27, 34, 30, .06);
  --shadow-lg: 0 2px 6px rgba(27, 34, 30, .08), 0 14px 36px rgba(27, 34, 30, .12);
  --sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: var(--sans);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-2); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; color: var(--ink); }
h1 { font-family: var(--serif); font-size: clamp(1.9rem, 1.4rem + 2vw, 2.75rem); font-weight: 800; letter-spacing: -.03em; }
h2 { font-family: var(--serif); font-size: clamp(1.3rem, 1.15rem + .6vw, 1.6rem); font-weight: 750; letter-spacing: -.02em; }
h3 { font-size: 1.05rem; font-weight: 650; }
p { margin: 0 0 1em; }
small { font-size: .85em; }
code { background: var(--surface-2); padding: .1em .35em; border-radius: 4px; font-size: .9em; word-break: break-all; }
blockquote { margin: .5em 0; padding: .5em 1em; border-left: 3px solid var(--line-2); color: var(--ink-2); background: var(--surface-2); border-radius: 0 6px 6px 0; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 24px; } }
.muted { color: var(--muted); }
.visually-hidden, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.icon { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -.2em; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45em; padding: .62em 1.1em; border-radius: var(--radius-sm); border: 1px solid transparent; font: 600 .95rem/1.2 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s, box-shadow .15s; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-2); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-secondary:hover { border-color: var(--brand-2); color: var(--brand); }
.btn-secondary.is-on { background: var(--brand-tint); border-color: var(--brand-2); color: var(--brand); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn-light { background: #fff; color: var(--brand); }
.btn-light:hover { background: var(--accent-tint); color: var(--brand); }
.btn-outline-light { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #8f1c13; color: #fff; }
.btn-google { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-lg { padding: .85em 1.5em; font-size: 1.05rem; }
.btn-sm { padding: .4em .75em; font-size: .85rem; }
.btn-block { width: 100%; }
.btn .count { margin-left: auto; font-weight: 500; opacity: .8; }
.btn[disabled] { opacity: .6; cursor: progress; }
.linklike { background: none; border: 0; padding: 0; color: var(--brand-2); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.linklike.danger, .danger { color: var(--danger); }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; border: 0; background: transparent; color: var(--ink-2); cursor: pointer; font-size: 1rem; }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn .icon { width: 22px; height: 22px; }
.icon-btn .dot { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent-strong); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
form.inline, .inline-form { display: inline; }
.inline-form { display: inline-flex; gap: 6px; align-items: center; margin: 0 6px 6px 0; }
.inline-form input { width: 220px; padding: .4em .6em; }

/* Header */
.announcement { background: var(--accent-strong); color: #fff; text-align: center; padding: 6px 16px; font-size: .9rem; font-weight: 600; }
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 64px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--brand); text-decoration: none; font: 700 1.25rem/1 var(--sans); letter-spacing: -.02em; }
.logo:hover { color: var(--brand); }
.logo-mark { width: 32px; height: 32px; color: var(--brand); }
.main-nav { display: flex; gap: 4px; }
.main-nav a { padding: 8px 12px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .95rem; }
.main-nav a:hover, .main-nav a[aria-current] { background: var(--surface-2); color: var(--ink); }
.header-search { flex: 1; display: flex; max-width: 440px; position: relative; }
.header-search input { width: 100%; padding: 9px 42px 9px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg); font: inherit; font-size: .95rem; }
.header-search input:focus { background: #fff; border-color: var(--brand-2); outline: none; box-shadow: 0 0 0 3px var(--brand-tint); }
.header-search button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--muted); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.user-menu { position: relative; }
.user-menu summary { list-style: none; cursor: pointer; border-radius: 50%; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu .menu { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); min-width: 220px; padding: 8px; display: grid; z-index: 40; }
.user-menu .menu a, .user-menu .menu button { display: block; padding: 8px 12px; border-radius: 6px; color: var(--ink); text-decoration: none; text-align: left; width: 100%; }
.user-menu .menu a:hover, .user-menu .menu button:hover { background: var(--surface-2); }
.user-menu .menu-name { padding: 8px 12px 10px; margin: 0 0 4px; border-bottom: 1px solid var(--line); font-weight: 650; display: grid; }
.user-menu .menu-name small { color: var(--muted); font-weight: 400; }
@media (max-width: 899px) {
  .header-inner { gap: 10px 12px; padding-top: 10px; padding-bottom: 10px; }
  .header-search { order: 5; flex-basis: 100%; max-width: none; }
  .btn-publish .lbl-long { display: none; }
  .btn-publish { padding: .55em .8em; }
}
@media (max-width: 520px) {
  .main-nav { display: none; }
  .header-inner { flex-wrap: wrap; }
  .site-header .logo { font-size: 1.02rem; gap: 8px; letter-spacing: -.03em; }
  .header-actions { gap: 2px; }
  .header-actions .btn-ghost { padding: .5em .6em; }
}

.avatar { border-radius: 50%; object-fit: cover; flex: none; background: var(--surface-2); }
.avatar-initial { display: inline-flex; align-items: center; justify-content: center; background: hsl(var(--h) 38% 88%); color: hsl(var(--h) 45% 28%); font-weight: 700; }

/* Flash & notices */
.flash { margin: 16px 0 0; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--brand-tint); color: var(--brand); font-weight: 550; border: 1px solid #c7dccf; }
.flash-error { background: var(--danger-tint); color: var(--danger); border-color: #f5c6c1; }
.notice { padding: 12px 16px; border-radius: var(--radius-sm); background: var(--accent-tint); border: 1px solid #f1d6b5; color: var(--accent-ink); }
.admin-bar { padding: 8px 14px; border-radius: var(--radius-sm); background: #eef2f7; font-size: .9rem; }
.form-errors { padding: 12px 16px; border-radius: var(--radius-sm); background: var(--danger-tint); border: 1px solid #f5c6c1; color: var(--danger); margin-bottom: 20px; }
.form-errors p { margin: 0 0 4px; font-weight: 650; }
.form-errors ul { margin: 0; padding-left: 20px; }

/* Hero: light, photo-led, plain */
.hero { background: var(--bg); border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; gap: 28px; padding: 36px 16px 40px; align-items: center; }
@media (min-width: 900px) { .hero-inner { grid-template-columns: 1fr 1.05fr; gap: 48px; padding: 56px 24px; } }
.hero h1 { font-size: clamp(2rem, 1.5rem + 2.2vw, 3.1rem); max-width: 16ch; margin-bottom: .35em; letter-spacing: -.035em; line-height: 1.08; }
.eyebrow { font-size: .9rem; font-weight: 600; color: var(--brand-2); margin: 0 0 .5em; }
.eyebrow a { color: inherit; text-decoration: none; }
.hero-lead { font-size: 1.12rem; max-width: 52ch; color: var(--ink-2); }
.hero-search { display: flex; gap: 8px; margin: 22px 0 12px; max-width: 520px; background: #fff; padding: 5px; border-radius: 10px; border: 1px solid var(--line-2); }
.hero-search:focus-within { border-color: var(--brand-2); box-shadow: 0 0 0 3px var(--brand-tint); }
.hero-search input { flex: 1; min-width: 0; border: 0; padding: 10px 12px; font: inherit; font-size: 1.02rem; background: transparent; color: var(--ink); }
.hero-search input:focus { outline: none; }
.hero-popular { color: var(--muted); font-size: .95rem; margin: 0; }
.hero-popular a { color: var(--ink-2); }
.hero-photo { margin: 0; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.hero-photo figcaption { margin-top: 8px; font-size: .88rem; color: var(--muted); }
.hero-photo figcaption small { display: block; font-size: .8rem; }
.hero-photo figcaption a { color: inherit; }

/* Sections */
.section { margin: 48px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 18px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 4px 0 0; color: var(--muted); }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; white-space: nowrap; }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 22px; }
.card { display: flex; flex-direction: column; }
.card-link { color: inherit; text-decoration: none; display: flex; flex-direction: column; flex: 1; }
.card-link:hover { color: inherit; }
.card-img { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); overflow: hidden; border-radius: var(--radius); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-link:hover .card-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.card-noimg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--line-2); }
.card-noimg .icon { width: 40px; height: 40px; }
.badge { position: absolute; left: 8px; top: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 4px; font-size: .78rem; font-weight: 600; background: rgba(255, 255, 255, .94); color: var(--ink); }
.badge-featured { background: var(--accent-strong); color: #fff; }
.badge-version { left: auto; right: 10px; }
.card-body { padding: 12px 2px 4px; flex: 1; }
.card-cat { margin: 0 0 3px; font-size: .86rem; font-weight: 600; color: var(--brand-2); }
.card-title { font-family: var(--serif); font-size: 1.04rem; font-weight: 700; letter-spacing: -.01em; margin: 0 0 8px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.card-meta { gap: 0; }
.card-meta li { font-size: .88rem; color: var(--muted); }
.card-meta li + li::before { content: "·"; margin: 0 .45em; }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 2px 0; font-size: .85rem; }
.card-author { color: var(--muted); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-author:hover { color: var(--brand); text-decoration: underline; }
.card-stats { display: flex; gap: 10px; color: var(--muted); white-space: nowrap; }
.card-stats span { display: inline-flex; align-items: center; gap: 3px; }
.card-stats .icon { width: 14px; height: 14px; }

/* Category tiles */
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.cat-tile { display: flex; align-items: center; gap: 14px; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: box-shadow .2s, border-color .2s; }
.cat-tile:hover { box-shadow: var(--shadow); border-color: var(--line-2); color: var(--ink); }
.cat-tile-img { width: 88px; height: 66px; border-radius: 8px; overflow: hidden; flex: none; background: var(--brand-tint); display: grid; place-items: center; }
.cat-tile-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-tile-icon .icon { width: 34px; height: 34px; color: var(--brand-2); }
.cat-tile-text { display: grid; line-height: 1.3; }
.cat-tile-text small { color: var(--muted); }

.founding, .how { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.founding { background: var(--surface-2); border: 0; }
.founding p { max-width: 66ch; color: var(--ink-2); }
.founding p:last-child { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.founding-help { font-weight: 600; }
.how-steps { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); counter-reset: how; }
.how-steps li .icon { width: 32px; height: 32px; color: var(--accent); margin-bottom: 8px; }
.how-steps p { color: var(--ink-2); margin: 0; }
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 32px; margin: 48px 0; border-radius: var(--radius); background: var(--brand); color: #f6efe2; }
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { margin: 0; color: #d9e6dd; max-width: 60ch; }
.cta-band .btn-primary { background: var(--accent-strong); }
.cta-band .btn-primary:hover { background: var(--accent-ink); }
.cta-band.small { padding: 22px 26px; }

/* Lists, filters, pagination */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 20px 0 12px; font-size: .85rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 4px; color: var(--line-2); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); text-decoration: underline; }
.list-head { margin: 8px 0 20px; }
.list-head .lead, .list-head p { color: var(--ink-2); font-size: 1.06rem; max-width: 70ch; }
.cat-head { display: flex; gap: 18px; align-items: flex-start; }
.cat-symbol { flex: none; display: block; }
.cat-head { align-items: center; }
.cat-head-symbol { width: 88px; height: 88px; }
@media (max-width: 600px) { .cat-head-symbol { width: 64px; height: 64px; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; align-items: center; }
.chips-label { color: var(--muted); font-size: .9rem; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 550; }
.chip span { color: var(--muted); font-weight: 400; }
.chip:hover, .chip.is-current { border-color: var(--brand-2); background: var(--brand-tint); color: var(--brand); }
.filters { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: end; margin: 0 0 24px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.filters label { display: grid; gap: 4px; font-size: .8rem; font-weight: 650; color: var(--muted); }
.filters .f-q { flex: 1 1 220px; }
.filters .f-check { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--ink); font-weight: 500; padding-bottom: 8px; }
.filters select, .filters input[type=search] { padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line-2); font: inherit; font-size: .95rem; background: #fff; color: var(--ink); min-width: 140px; }
.js .filters[data-autosubmit] .btn { display: none; }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 32px 0; }
.page-num, .page-step, .page-gap { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.page-num, .page-step { background: var(--surface); border: 1px solid var(--line-2); color: var(--ink); }
.page-num:hover, .page-step:hover { border-color: var(--brand-2); color: var(--brand); }
.page-num.is-current { background: var(--brand); border-color: var(--brand); color: #fff; }
.empty { text-align: center; padding: 56px 24px; background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--radius); margin: 16px 0 32px; }
.empty > .icon { width: 44px; height: 44px; color: var(--accent); margin: 0 auto 12px; display: block; }
.empty p { color: var(--muted); max-width: 52ch; margin: 0 auto 18px; }
.empty .btn + .btn { margin-left: 8px; }
.empty-inline { display: flex; align-items: center; gap: 8px; padding: 16px; background: var(--brand-tint); border-radius: var(--radius-sm); color: var(--brand); font-weight: 600; }
.cat-guide { margin: 40px 0; padding: 24px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); max-width: 820px; }
.cat-index { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); margin-bottom: 48px; }
.cat-group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.cat-group-head { display: flex; gap: 14px; align-items: center; text-decoration: none; color: var(--ink); margin-bottom: 12px; }
.cat-group-head .icon { width: 36px; height: 36px; color: var(--brand-2); }
.cat-group-head span { display: grid; }
.cat-group-head strong { font-size: 1.15rem; }
.cat-group-head small { color: var(--muted); }
.cat-group ul { list-style: none; margin: 0; padding: 0; }
.cat-group li { display: flex; justify-content: space-between; padding: 7px 0; border-top: 1px solid var(--line); }
.cat-group li span { color: var(--muted); }

/* Ads (reserved space so nothing jumps when they load) */
.ad { margin: 36px auto; text-align: center; clear: both; }
.ad-label { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.ad ins, .ad .ad-box { min-height: 280px; }
.ad-article ins, .ad-article .ad-box { min-height: 320px; }
.ad-feed ins, .ad-feed .ad-box { min-height: 250px; }
@media (max-width: 600px) { .ad-h ins, .ad-h .ad-box { min-height: 360px; } }
.ad-preview .ad-box { display: grid; place-items: center; border: 2px dashed var(--accent); border-radius: 8px; background: repeating-linear-gradient(45deg, var(--accent-tint) 0 10px, #fff 10px 20px); color: var(--accent-ink); font-weight: 700; }
.ad:has(ins[data-ad-status="unfilled"]) { display: none; }
.steps .step-ad { list-style: none; }
.steps .step-ad::before { display: none; }

/* Project page */
.project-head { margin: 4px 0 24px; max-width: 880px; }
.project-head .lead { font-size: 1.15rem; color: var(--ink-2); }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; color: var(--muted); font-size: .92rem; }
.byline-author { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; color: var(--ink); text-decoration: none; }
.byline-rating { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.byline-version { display: inline-flex; align-items: center; gap: 6px; }
.project-layout { display: grid; gap: 40px; }
@media (min-width: 1000px) { .project-layout { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } }
@media (max-width: 999px) {
  .project-layout { display: flex; flex-direction: column; gap: 28px; }
  .project-main { display: contents; }
  .project-main > * { order: 3; }
  .project-main > .gallery { order: 1; }
  .project-side { order: 2; }
  .project-main > section { margin-bottom: 0; }
}
.project-main > section { margin-bottom: 36px; }
.gallery-main { margin: 0; background: var(--surface-2); border-radius: var(--radius); overflow: hidden; }
.gallery-main img { width: 100%; max-height: 70vh; object-fit: contain; background: #e9e3d8; }
.gallery-main figcaption { padding: 10px 14px; font-size: .9rem; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); }
.gallery-thumbs { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.gallery-thumbs a { display: block; border-radius: 8px; overflow: hidden; border: 2px solid transparent; aspect-ratio: 4 / 3; }
.gallery-thumbs a[aria-current] { border-color: var(--accent); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.prose { max-width: 72ch; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 1.3em; }
.variation { padding: 18px 22px; background: var(--accent-tint); border-radius: var(--radius); border: 1px solid #f1d6b5; }
.variation h2 { font-size: 1.15rem; display: flex; align-items: center; gap: 8px; }
.lists { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.lists h2 { font-size: 1.2rem; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { padding: 7px 0 7px 26px; border-bottom: 1px solid var(--line); position: relative; color: var(--ink-2); }
.checklist li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 12px; height: 12px; border: 2px solid var(--line-2); border-radius: 3px; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps > li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.steps h3 { display: flex; align-items: center; gap: 12px; font-size: 1.12rem; }
.step-n { display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; font-size: .9rem; font-weight: 700; }
.steps .prose { padding-left: 44px; }
@media (max-width: 600px) { .steps .prose { padding-left: 0; } }
.tips { padding: 20px 24px; background: var(--brand-tint); border-radius: var(--radius); }
.files { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.files li { display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.file-icon .icon { width: 28px; height: 28px; color: var(--brand-2); }
.file-name { flex: 1; display: grid; font-weight: 600; word-break: break-word; }
.file-name small { color: var(--muted); font-weight: 400; }
.license { font-size: .92rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; }
.license p { color: var(--muted); }
.safety { display: flex; gap: 8px; align-items: flex-start; }
.safety .icon { margin-top: 3px; color: var(--accent); }
.versions .grid { margin-bottom: 16px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.project-side { display: grid; gap: 16px; }
@media (min-width: 1000px) { .project-side { position: sticky; top: 84px; } }
.facts dl { margin: 0 0 16px; display: grid; gap: 2px; }
.facts dl > div { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.facts dt { color: var(--muted); font-size: .9rem; display: flex; align-items: center; gap: 8px; }
.facts dt .icon { color: var(--brand-2); }
.facts dd { margin: 0; font-weight: 650; text-align: right; }
.facts dd small { display: block; font-weight: 400; color: var(--muted); }
.actions { display: grid; gap: 8px; }
.share { position: relative; }
.share summary { list-style: none; }
.share summary::-webkit-details-marker { display: none; }
.share-menu { display: grid; gap: 2px; margin-top: 6px; padding: 6px; background: var(--surface-2); border-radius: var(--radius-sm); }
.share-menu a, .share-menu button { padding: 7px 10px; border-radius: 6px; text-decoration: none; color: var(--ink); text-align: left; }
.share-menu a:hover, .share-menu button:hover { background: #fff; }
.rate { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.rate-head { margin: 0 0 6px; }
.rate fieldset { border: 0; padding: 0; margin: 0; }
.rate legend { font-size: .9rem; color: var(--muted); padding: 0; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 1.9rem; line-height: 1; color: var(--line-2); cursor: pointer; transition: color .1s; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: var(--accent); }
.star-input input:focus-visible + label { outline: 2px solid var(--accent); border-radius: 4px; }
.js [data-nojs] { display: none; }
.stars { position: relative; display: inline-block; font-size: 1rem; line-height: 1; letter-spacing: 1px; }
.stars-sm { font-size: .9rem; }
.stars-bg { color: var(--line-2); }
.stars-fg { position: absolute; left: 0; top: 0; overflow: hidden; white-space: nowrap; color: var(--accent); }
.stat-line { margin: 14px 0 0; font-size: .85rem; color: var(--muted); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.builder-head { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--ink); margin-bottom: 10px; }
.builder-head span { display: grid; }
.builder-head small { color: var(--muted); }
.builder p { color: var(--ink-2); font-size: .92rem; margin: 0; }
.report-link { font-size: .85rem; text-align: center; }
.report-link a { color: var(--muted); }
.comments { border-top: 1px solid var(--line); padding-top: 24px; }
.comment-list { list-style: none; padding: 0; margin: 0 0 20px; }
.comment { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.comment > div { flex: 1; min-width: 0; }
.comment.is-held { opacity: .75; }
.comment-meta { margin: 0 0 2px; font-size: .9rem; }
.comment-meta a { font-weight: 650; color: var(--ink); text-decoration: none; }
.comment-body p { margin: 0 0 .5em; overflow-wrap: anywhere; }
.comment-actions { margin: 0; font-size: .82rem; display: flex; gap: 14px; }
.comment-actions a { color: var(--muted); }
.comment-form { display: grid; gap: 10px; }
.comment-form .btn { justify-self: start; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--brand-tint); color: var(--brand); font-size: .74rem; font-weight: 700; margin-left: 6px; vertical-align: 1px; }
.tag-warn { background: var(--accent-tint); color: var(--accent-ink); }

/* Profiles & account */
.profile-head { display: flex; gap: 28px; align-items: flex-start; margin: 8px 0 24px; flex-wrap: wrap; }
.profile-head > div { flex: 1; min-width: 260px; }
.profile-head h1 { margin-bottom: 4px; }
.profile-stats { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 0; margin: 12px 0 16px; }
.profile-stats strong { font-size: 1.2rem; margin-right: 4px; }
.account-head { display: flex; align-items: center; gap: 16px; margin: 28px 0 12px; flex-wrap: wrap; }
.account-head > div { flex: 1; }
.account-head h1 { margin: 0; font-size: 1.9rem; }
.account-head p { margin: 0; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a[aria-current] { color: var(--brand); border-bottom-color: var(--brand); }
.stat-tiles { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; padding: 0; margin: 0 0 24px; }
.stat-tiles li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; color: var(--muted); font-size: .9rem; display: grid; }
.stat-tiles li a { color: inherit; text-decoration: none; display: grid; }
.stat-tiles strong { font-size: 1.7rem; color: var(--ink); font-family: var(--serif); line-height: 1.1; }
.stat-tiles small { color: var(--muted); }
.stat-tiles.small strong { font-size: 1.3rem; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: .92rem; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { background: var(--surface-2); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); }
.table tr:last-child td { border-bottom: 0; }
.t-project { display: flex; align-items: center; gap: 12px; }
.t-project img, .t-noimg { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; flex: none; }
.t-noimg { display: grid; place-items: center; background: var(--surface-2); color: var(--line-2); }
.t-actions { white-space: nowrap; }
.t-actions > * { margin-right: 10px; }
.t-user { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.t-details { font-size: .8rem; color: var(--muted); max-width: 360px; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .my-projects thead { display: none; }
  .my-projects tr { display: grid; grid-template-columns: 1fr 1fr; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .my-projects td { border: 0; padding: 4px 12px; }
  .my-projects .t-project, .my-projects .t-actions { grid-column: 1 / -1; }
}
.status { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--surface-2); color: var(--ink-2); }
.status-published { background: var(--brand-tint); color: var(--ok); }
.status-pending { background: var(--accent-tint); color: var(--accent-ink); }
.status-rejected, .status-removed { background: var(--danger-tint); color: var(--danger); }
.notes { list-style: none; padding: 0; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.notes li { display: flex; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.notes li:last-child { border-bottom: 0; }
.notes li.is-new { background: var(--accent-tint); }
.notes .icon { color: var(--brand-2); margin-top: 3px; }
.notes p { margin: 0; }
.notes small { display: block; color: var(--muted); }
.settings-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); align-items: start; margin-bottom: 48px; }
.settings-grid h3 { margin-top: 24px; }
.avatar-edit { display: flex; gap: 16px; align-items: center; margin-bottom: 8px; }
.avatar-edit > div { display: grid; gap: 6px; }

/* Forms */
.form-page { max-width: 460px; margin: 40px auto 64px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.form-page.wide { max-width: 720px; }
.form-page h1 { font-size: 1.8rem; }
.form { display: grid; gap: 16px; }
.form label, .publish-form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; color: var(--ink); }
.form label small, .publish-form label small, fieldset > small { font-weight: 400; color: var(--muted); }
.form input:not([type=checkbox]):not([type=radio]):not([type=file]), .form select, .form textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); font: inherit; font-weight: 400; background: #fff; color: var(--ink);
}
.form textarea { resize: vertical; line-height: 1.5; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 3px var(--brand-tint); }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.form .check input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--brand); }
.form .check span { display: grid; }
.form-foot { margin: 18px 0 0; text-align: center; font-size: .92rem; color: var(--muted); }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .85rem; margin: 16px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.or span { flex: none; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 600; font-size: .95rem; padding: 0; margin-bottom: 6px; }
.row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.row-4 { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.row-tight { display: flex; gap: 8px; }
.row-tight .grow { flex: 1; }

/* Publish */
.publish-head { margin: 28px 0 20px; max-width: 760px; }
.publish-layout { display: grid; gap: 24px; }
@media (min-width: 1000px) { .publish-layout { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; } .publish-side { position: sticky; top: 84px; } }
.publish-main { display: grid; gap: 20px; }
.publish-main .panel { display: grid; gap: 16px; padding: 24px; }
.publish-main h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 1.3rem; }
.sec-n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand-tint); color: var(--brand); font: 700 .95rem var(--sans); }
.publish-main .muted { margin: 0; }
.dropzone { display: grid !important; place-items: center; gap: 6px; padding: 30px 20px; border: 2px dashed var(--line-2); border-radius: var(--radius); background: var(--bg); text-align: center; cursor: pointer; color: var(--ink-2); transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.is-over { border-color: var(--brand-2); background: var(--brand-tint); }
.dropzone .icon { width: 36px; height: 36px; color: var(--brand-2); }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.image-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.image-item { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px; display: grid; gap: 6px; position: relative; }
.image-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.image-item input[type=text], .image-item input:not([type]) { padding: 6px 8px !important; font-size: .85rem !important; }
.image-item.is-uploading { opacity: .6; }
.image-item.is-error { border-color: var(--danger); }
.cover-pick { display: flex !important; flex-direction: row; align-items: center; gap: 6px; font-size: .82rem !important; font-weight: 500 !important; }
.image-tools { display: flex; justify-content: flex-end; }
.image-tools .icon-btn, .step-tools .icon-btn { width: 30px; height: 30px; }
.upload-status { margin: 6px 0 0; font-size: .9rem; color: var(--muted); }
.upload-status.is-error { color: var(--danger); }
.file-list { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 8px; }
.file-list li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); }
.file-list li span { flex: 1; word-break: break-word; }
.steps-edit { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.step-edit { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; display: grid; gap: 8px; }
.step-edit-head { display: flex; align-items: center; gap: 10px; }
.step-edit-head input { flex: 1; }
.step-tools { display: flex; }
.licenses { display: grid; gap: 8px; }
.radio-card { display: flex !important; flex-direction: row; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; font-weight: 400 !important; }
.radio-card:has(input:checked) { border-color: var(--brand-2); background: var(--brand-tint); }
.radio-card input { margin-top: 4px; accent-color: var(--brand); }
.radio-card span { display: grid; }
.radio-card small { color: var(--muted); }
.rights { padding: 12px; background: var(--accent-tint); border-radius: var(--radius-sm); }
.responsibility { font-size: .92rem; line-height: 1.5; }
.form-note { margin: 0; font-size: .82rem; color: var(--muted); }
.quality h2 { font-size: 1.15rem; }
.checks { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 4px; font-size: .9rem; }
.checks li { padding-left: 24px; position: relative; color: var(--muted); }
.checks li::before { content: ""; position: absolute; left: 0; top: 5px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-2); }
.checks li.done { color: var(--ink); }
.checks li.done::before { background: var(--ok); border-color: var(--ok); box-shadow: inset 0 0 0 2px #fff; }
.meter { height: 8px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--ok)); transition: width .3s; }
.meter-label { font-size: .85rem; margin: 6px 0 0; color: var(--muted); }
.publish-bar { position: sticky; bottom: 0; z-index: 20; margin-top: 24px; background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(0, 0, 0, .05); }
.publish-bar-inner { display: flex; gap: 10px; justify-content: flex-end; align-items: center; padding-top: 12px; padding-bottom: 12px; }
.publish-bar-inner .muted { margin-right: auto; font-size: .9rem; }
.page-publish .site-footer { margin-top: 0; }

/* Info pages */
.info-page { max-width: 780px; margin: 0 auto 64px; }
.info-page h2 { margin-top: 1.6em; }
.info-page .lead { font-size: 1.15rem; color: var(--ink-2); }

/* Admin */
.admin { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; margin: 24px auto 64px; }
@media (min-width: 1000px) { .admin { grid-template-columns: 210px minmax(0, 1fr); } }
.admin-nav { display: flex; flex-direction: column; gap: 2px; }
@media (max-width: 999px) { .admin-nav { flex-direction: row; overflow-x: auto; border-bottom: 1px solid var(--line); } }
.admin-nav a { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 8px; text-decoration: none; color: var(--ink-2); font-weight: 600; white-space: nowrap; }
.admin-nav a:hover { background: var(--surface-2); }
.admin-nav a[aria-current] { background: var(--brand); color: #fff; }
.pill { background: var(--accent-strong); color: #fff; border-radius: 999px; padding: 0 8px; font-size: .75rem; }
.admin-body h1 { font-size: 1.8rem; }
.admin-cols { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); margin-bottom: 20px; align-items: start; }
.admin-body .panel { margin-bottom: 20px; }
.chart { margin: 0 0 18px; }
.chart svg { width: 100%; height: auto; }
.chart rect { fill: var(--brand-2); }
.chart text { font-size: 11px; fill: var(--muted); }
.chart figcaption { font-size: .85rem; color: var(--muted); }
.setup { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.setup li { display: flex; gap: 10px; }
.setup li span { display: grid; }
.setup li small { color: var(--muted); }
.setup .ok .icon { color: var(--ok); }
.setup .todo .icon { color: var(--danger); }
.rank { margin: 0; padding-left: 22px; }
.rank li { padding: 5px 0; border-bottom: 1px solid var(--line); }
.rank li { display: list-item; }
.rank li > span:last-child, .rank li > a + span { float: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.queue { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.queue-item { display: flex; gap: 18px; align-items: flex-start; }
.queue-item > img, .queue-item > .t-noimg { width: 160px; height: 120px; object-fit: cover; border-radius: 8px; flex: none; }
@media (max-width: 640px) { .queue-item { flex-direction: column; } }
.queue-main { flex: 1; min-width: 0; }
.queue-main h2 { font-size: 1.2rem; margin-bottom: 4px; }
.queue-actions { display: flex; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.flags { list-style: none; padding: 0; margin: 8px 0; display: flex; flex-wrap: wrap; gap: 6px; }
.flags li { padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; background: var(--surface-2); }
.flags .sev-2 { background: var(--accent-tint); color: var(--accent-ink); }
.flags .sev-3 { background: var(--danger-tint); color: var(--danger); }
.report-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 6px; }
.report-details { white-space: pre-wrap; background: var(--surface-2); padding: 10px 12px; border-radius: 8px; font-size: .9rem; }
.settings-form .panel { display: grid; gap: 14px; }

/* Footer */
.site-footer { background: #17271f; color: #c9d3cc; margin-top: 72px; padding: 48px 0 24px; font-size: .92rem; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.footer-brand { grid-column: span 1; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.site-footer .logo { color: #fff; margin-bottom: 12px; }
.site-footer h2 { font: 650 .95rem/1 var(--sans); color: #8fa397; margin-bottom: 12px; }
.site-footer nav { display: grid; gap: 0; align-content: start; }
.site-footer nav a, .site-footer .linklike { color: #dfe7e1; text-decoration: none; text-align: left; font-size: .92rem; padding: 4px 0; min-height: 24px; }
.site-footer nav a:hover, .site-footer .linklike:hover { color: #fff; text-decoration: underline; }
.footer-base { margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .1); color: #8fa397; font-size: .82rem; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 600; z-index: 100; box-shadow: var(--shadow-lg); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* Editorial guides */
.badge-guide { background: var(--brand, #1f4d36); color: #fff; }
.badge-guide .icon { width: 13px; height: 13px; }
.guide-card .card-img { aspect-ratio: 8 / 5; }
.guide-card .card-img img { width: 100%; height: 100%; aspect-ratio: 8 / 5; object-fit: contain; background: #1f4d36; }
.guide-figure { margin: 0 0 28px; }
.guide-figure img { width: 100%; height: auto; border-radius: var(--radius); display: block; }
.guide-figure figcaption { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.guide .lead p { margin: 0 0 .6em; }
.callout { border-radius: var(--radius); padding: 18px 22px; margin: 28px 0; border: 1px solid var(--line); }
.callout h2 { margin-top: 0; display: flex; align-items: center; gap: 8px; }
.callout-warn { background: var(--accent-tint); border-color: #f1d6b5; }
.callout-safety { background: #eef4f0; border-color: #cfe3d4; }
.toc { margin: 18px 0; border-top: 1px solid var(--line); padding-top: 14px; }
.toc h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 8px; }
.toc ol { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: .92rem; }
.toc h3 { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 14px 0 6px; font-weight: 700; }
/* Guide pages: "Build it" and "More detail" parts */
.part-label { margin: 36px 0 4px; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-strong); display: flex; align-items: center; gap: 10px; }
.part-label::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.more-detail { margin-top: 12px; }
.more-detail .muted { margin: 0 0 4px; }
.section-title { font-size: 1.35rem; margin: 32px 0 16px; }
.founding.small { padding: 18px 22px; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.founding.small p { margin: 0; flex: 1 1 320px; }
.guide-filters .guide-count { margin: 0 0 8px auto; font-size: .9rem; color: var(--muted); }
.guide-about { font-size: .92rem; }
[data-guide][hidden] { display: none; }
@media print {
  .site-header, .site-footer, .project-side .actions, .cta-band, .section, .ad, .breadcrumbs, [data-flash] { display: none !important; }
  .project-layout { display: block; }
  .guide-figure img { max-width: 520px; }
}
.guide-card .card-img.has-photo img { object-fit: cover; background: none; }
.real-builds { margin: 32px 0; }
.real-builds .muted { margin-top: -4px; }
.photo-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.photo-grid figure { margin: 0; }
.photo-grid img { width: 100%; height: 220px; object-fit: cover; border-radius: var(--radius-sm, 8px); display: block; }
.photo-grid figcaption { font-size: .88rem; margin-top: 6px; color: var(--ink-2, #333); }
.photo-grid figcaption small { display: block; color: var(--muted); font-size: .78rem; margin-top: 2px; }
.badge-build { background: rgba(255, 255, 255, .94); color: var(--accent-ink); }
.badge-build .icon { width: 13px; height: 13px; }
.source-line { display: flex; gap: 8px; align-items: flex-start; font-size: .92rem; color: var(--ink-2, #333); background: #eef4f0; border: 1px solid #cfe3d4; border-radius: var(--radius-sm, 8px); padding: 10px 14px; margin: 12px 0 0; }
.source-line .icon { flex: none; margin-top: 3px; color: var(--ok, #2e7d4f); }
.build-hero { margin: 0 0 28px; }
.build-hero img { width: 100%; height: auto; max-height: 560px; object-fit: cover; border-radius: var(--radius); display: block; }
.build-hero figcaption { font-size: .88rem; color: var(--muted); margin-top: 6px; }
.build-hero figcaption small { display: block; }
.guide-photo { margin: 0 0 28px; }
.guide-photo img { width: 100%; height: auto; max-height: 520px; object-fit: cover; border-radius: var(--radius); display: block; }
.guide-photo figcaption { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.guide-photo figcaption small { display: block; }

/* ── Marketplace look (2026-11) ── */
/* Logo: lumber grade stamp (src/layout.mjs logoStamp), 2026-11-13 */
.logo-stamp { display: block; width: 129px; height: 46px; color: var(--brand); flex: none; }
.logo-stamp .ls-diy { fill: var(--accent-strong); }
.logo-stamp .ls-word { font: 800 19.5px var(--sans); }
.site-footer .logo-stamp { width: 157px; height: 56px; color: #f6efe2; }
.site-footer .logo-stamp .ls-diy { fill: #f0b67a; }
@media (max-width: 520px) { .site-header .logo-stamp { width: 112px; height: 40px; } }
.header-inner { min-height: 68px; gap: 16px 24px; }
.header-search { max-width: 640px; }
.header-search input { padding: 11px 46px 11px 18px; border-width: 2px; border-color: var(--ink); background: #fff; }
.header-search button { background: var(--brand); color: #fff; width: 36px; height: 36px; right: 5px; }
.header-search button:hover { background: var(--brand-2); }
.catbar { border-top: 1px solid var(--line); }
.catbar-inner { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.catbar-inner::-webkit-scrollbar { display: none; }
.catbar a { padding: 10px 12px; font-size: .92rem; color: var(--ink-2); text-decoration: none; border-bottom: 2px solid transparent; }
.catbar a:hover { color: var(--ink); border-bottom-color: var(--line-2); }
.catbar a[aria-current] { color: var(--brand); border-bottom-color: var(--brand); }
.catbar .catbar-main { font-weight: 650; color: var(--ink); }
.catbar-sep { flex: none; width: 1px; margin: 10px 8px; background: var(--line-2); }
@media (max-width: 520px) { .catbar a { padding: 9px 9px; font-size: .88rem; } }

/* Cards: listing style with maker and price */
.card-maker { display: flex; align-items: center; gap: 7px; margin: 0 0 6px; font-size: .9rem; color: var(--ink-2); min-width: 0; }
.card-maker span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-maker .avatar { width: 22px !important; height: 22px !important; font-size: 11px !important; }
.maker-house .logo-mark { width: 22px; height: 22px; color: var(--brand); display: block; }
.card-foot { justify-content: flex-start; gap: 10px; }
.card-price { font-weight: 750; color: var(--ok); font-size: .98rem; }
.card-extra { color: var(--muted); font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-author { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-2); }
.card-stats { margin-left: auto; align-items: center; }

/* Hero: collage of real builds */
.hero { background: linear-gradient(180deg, var(--accent-tint) 0%, var(--bg) 100%); }
.hero h1 { max-width: 18ch; }
.hero-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 14px 0 0; padding: 0; color: var(--ink-2); font-size: .95rem; }
.hero-facts li { display: flex; align-items: center; gap: 6px; }
.hero-facts li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.hero-facts strong { color: var(--ink); }
/* Home: what the site is, in three lines */
.hero-how { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 7px; color: var(--ink-2); font-size: .95rem; line-height: 1.45; }
.hero-how li { position: relative; padding-left: 18px; }
.hero-how li::before { content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.hero-how a strong { color: var(--brand); }
.hero-how a { color: var(--brand-2); }
/* Publish: login page that says what to expect */
.publish-gate ul { margin: 14px 0 18px; padding-left: 20px; color: var(--ink-2); }
.publish-gate li { margin: 4px 0; }
.publish-gate .muted.small { margin-top: 14px; }
.license-more { margin-top: 10px; }
.license-more summary { cursor: pointer; font-weight: 600; color: var(--brand-2); padding: 6px 0; }
.license-more .radio-card { margin-top: 8px; }
.hero-collage { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; aspect-ratio: 5 / 4; }
.collage-item { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--surface-2); }
.collage-0 { grid-row: span 2; }
.collage-item img { width: 100%; height: 100%; object-fit: cover; }
.collage-tag { position: absolute; left: 8px; bottom: 8px; right: 8px; width: max-content; max-width: calc(100% - 16px); padding: 4px 9px; border-radius: 4px; background: rgba(255, 255, 255, .95); color: var(--ink); font-size: .8rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.collage-credit { grid-column: 1 / -1; margin: 0; font-size: .78rem; color: var(--muted); }
@media (max-width: 899px) { .hero-collage { aspect-ratio: 4 / 3; } }

/* Browse by category: round photos */
.cat-circles { list-style: none; margin: 0; padding: 0 0 4px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(112px, 1fr); gap: 16px; overflow-x: auto; scrollbar-width: thin; }
.cat-circles a { display: grid; justify-items: center; text-align: center; gap: 2px; text-decoration: none; color: var(--ink); }
.cat-circles .cat-symbol { width: 96px; height: 96px; margin-bottom: 6px; border-radius: 50%; transition: transform .15s ease, box-shadow .15s ease; }
.cat-circles a:hover .cat-symbol { transform: translateY(-2px); box-shadow: 0 0 0 3px var(--accent); }
.cat-circles span { font-weight: 650; font-size: .93rem; line-height: 1.25; }
.cat-circles small { color: var(--muted); font-size: .8rem; }

/* Share band */
.share-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; padding: 28px; border-radius: var(--radius); background: var(--brand-tint); }
.share-band h2 { margin: 0 0 6px; }
.share-band p { margin: 0; max-width: 64ch; color: var(--ink-2); }
.share-band .share-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }

/* Category photos */
.photo-credits { margin: 10px 0 0; font-size: .78rem; color: var(--muted); }

/* ── Guide pages (2026-11) ── */
.project-head .eyebrow a { color: var(--brand-2); }
.project-head h1 { max-width: 24ch; }
.byline { padding-top: 4px; }
@media (max-width: 999px) {
  .project-main > .guide-photo { order: 1; }
  .facts .toc { display: none; }
}
.side-price { display: grid; gap: 2px; margin: 0 0 14px; }
.side-price strong { font-size: 1.5rem; font-weight: 800; color: var(--ok); letter-spacing: -.02em; }
.side-price span { color: var(--muted); font-size: .9rem; }
.side-jumps { display: grid; gap: 8px; margin-bottom: 14px; }
.btn-block { width: 100%; }
.facts { box-shadow: var(--shadow); }
.guide-figure img { border: 1px solid var(--line); }
.lists { background: var(--surface); }
.steps > li { padding: 18px 20px; margin-bottom: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.steps > li.step-ad { background: none; border: 0; padding: 0; }
.steps .prose { padding-left: 44px; }
.steps .prose > :last-child { margin-bottom: 0; }
.tips { border: 0; }
.callout h2, .tips h2 { font-size: 1.2rem; }
.units-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; background: var(--surface-2); border-radius: var(--radius); font-size: .9rem; color: var(--ink-2); }
.next-build { display: flex; gap: 10px; align-items: center; padding: 16px 18px; background: var(--brand-tint); border-radius: var(--radius); font-size: 1.02rem; }
.guide-about { color: var(--muted); }

/* Calculators (guide embeds and /tools pages) */
.calc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 12px 0; box-shadow: var(--shadow); }
.calc-inputs { display: grid; gap: 12px 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 125px), 1fr)); }
.calc label { display: grid; gap: 5px; font-size: .85rem; font-weight: 650; color: var(--ink-2); }
.calc input, .calc select { width: 100%; padding: 9px 11px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); font: inherit; font-size: 1rem; background: #fff; color: var(--ink); }
.calc input:focus, .calc select:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 3px var(--brand-tint); }
.calc label:has(select) { align-content: start; }
.calc-out { margin-top: 16px; padding: 14px 16px; background: var(--brand-tint); border-radius: var(--radius-sm); color: var(--ink-2); }
.calc-out p { margin: 0 0 6px; }
.calc-out strong { font-size: 1.35rem; font-weight: 800; color: var(--brand); letter-spacing: -.01em; }
.calc-out ul { margin: 6px 0 0; padding-left: 1.2em; font-size: .92rem; }
.calc-embed > p:last-child a { font-weight: 650; }

/* ── Real build pages (2026-11) ── */
.page-build .source-line { background: var(--brand-tint); border: 0; border-radius: var(--radius); }
.build-gallery { margin: 0 0 32px; }
.build-gallery .gallery-main img { max-height: 560px; object-fit: contain; background: var(--surface-2); border-radius: var(--radius) var(--radius) 0 0; }
.build-gallery .gallery-main figcaption { font-size: .85rem; }
.build-gallery .gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.maker-card { display: flex; gap: 12px; align-items: center; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.maker-card > div { display: grid; line-height: 1.3; min-width: 0; }
.maker-card small { color: var(--muted); font-size: .8rem; }
.maker-card strong { font-size: 1.05rem; }
.maker-card span { color: var(--ink-2); font-size: .86rem; }
.page-build .facts dl > div { grid-template-columns: 1fr; gap: 2px; }
.page-build .facts dd { text-align: left; }
.page-build .facts dd small { display: inline; margin-left: 6px; }

/* ── "Want to build this?" and step photos ── */
.build-path { margin: 0 0 32px; padding: 18px 20px; background: var(--brand-tint); border-radius: var(--radius); }
.build-path h2 { font-size: 1.15rem; margin: 0 0 12px; }
.build-path ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); counter-reset: bp; }
.build-path li { counter-increment: bp; }
.build-path a { display: grid; gap: 2px; height: 100%; padding: 12px 14px 12px 46px; position: relative; background: #fff; border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); border: 1px solid transparent; }
.build-path a:hover { border-color: var(--brand-2); }
.build-path a::before { content: counter(bp); position: absolute; left: 12px; top: 12px; width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: #fff; font-size: .8rem; font-weight: 700; display: grid; place-items: center; }
.build-path small { color: var(--muted); font-size: .84rem; }
.step-photo { margin: 12px 0 0 44px; max-width: 520px; }
.step-photo img { width: 100%; height: auto; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.step-photo figcaption { font-size: .84rem; color: var(--muted); margin-top: 4px; }
@media (max-width: 600px) { .step-photo { margin-left: 0; } }

/* ── Publish form: formats, required vs optional ── */
.publish-intro h2 { margin-bottom: 4px; }
.formats { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); margin: 12px 0 18px; }
.format-card { padding: 14px !important; }
.format-card strong { font-size: 1rem; }
.need-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.need-grid > div { padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface-2); }
.need-grid > div:first-child { background: var(--brand-tint); }
.need-grid h3 { display: flex; align-items: center; gap: 6px; font-size: .98rem; margin: 0 0 6px; }
.need-grid ul { margin: 0; padding-left: 1.1em; font-size: .92rem; color: var(--ink-2); display: grid; gap: 2px; }
.publish-intro .small { font-size: .88rem; margin: 12px 0 0; }
.req, .opt { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 4px; font: 650 .72rem/1.4 var(--sans); vertical-align: middle; letter-spacing: 0; }
.req { background: var(--accent-tint); color: var(--accent-ink); }
.opt { background: var(--surface-2); color: var(--ink-2); }
details.fold > summary { list-style: none; cursor: pointer; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary h2 { display: flex; align-items: center; gap: 8px; margin: 0; }
details.fold > summary h2::after { content: "Show"; margin-left: auto; font: 600 .85rem var(--sans); color: var(--brand-2); }
details.fold[open] > summary h2::after { content: "Hide"; }
details.fold[open] > summary { margin-bottom: 4px; }
.step-photo-pick { display: grid; gap: 4px; font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.step-photo-pick select { max-width: 320px; }
.checks-head { font-size: .85rem; margin: 10px 0 6px; color: var(--ink-2); }
.publish-main details.panel { display: block; }
.publish-main details.panel > * + * { margin-top: 16px; }

/* Continue with Google */
.btn-google { background: #fff; color: #1f1f1f; border: 1px solid #747775; font-weight: 600; gap: 10px; }
.btn-google:hover { background: #f7f8f8; color: #1f1f1f; }
/* Admin analytics (layout after sfsblueprints / BeltPrints) */
.an-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 20px; margin-bottom: 16px; }
.an-head h1 { margin: 0 0 4px; }
.an-head .muted { margin: 0; }
.an-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.an-seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 3px; background: var(--surface); }
.an-seg > * { border: 0; background: none; font: inherit; font-size: .85rem; font-weight: 600; color: var(--ink-2); padding: 5px 12px; border-radius: 999px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.an-seg > [aria-pressed="true"] { background: var(--brand); color: #fff; }
.an-kpis { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); gap: 12px; }
.an-kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; display: grid; gap: 2px; min-width: 0; }
.an-kpi-l { font-size: .8rem; color: var(--muted); font-weight: 600; }
.an-kpi-v { font-size: 1.5rem; line-height: 1.2; color: var(--ink); display: flex; align-items: center; gap: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-kpi-s { font-size: .76rem; color: var(--muted); }
.an-delta { font-weight: 700; font-size: .78rem; color: var(--muted); white-space: nowrap; }
.an-delta.up { color: #1d7a46; }
.an-delta.down { color: #b4442c; }
.an-delta.compact { font-size: .74rem; }
.an-mini { font-size: .74rem; color: var(--muted); white-space: nowrap; }
.an-flag { width: 20px; height: 15px; border-radius: 2px; vertical-align: -2px; flex: none; }
.an-card-h { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 12px; margin-bottom: 8px; }
.an-card-h h2 { margin: 0; font-size: 1.15rem; }
.an-card-h p { margin: 2px 0 0; }
.an-legend { display: flex; gap: 16px; font-size: .78rem; color: var(--muted); margin-bottom: 4px; }
.an-legend i { display: inline-block; width: 16px; height: 0; vertical-align: middle; margin-right: 4px; border-top: 3px solid var(--brand); }
.an-legend .an-l2 { border-top: 2px dashed var(--accent-strong); }
.ch { width: 100%; height: auto; display: block; }
.ch-grid { stroke: var(--line); stroke-width: 1; }
.ch-ax { fill: var(--muted); font-size: 12px; font-family: var(--sans); }
.ch-area { fill: rgba(31, 77, 54, .12); }
.ch-line { fill: none; stroke: var(--brand); stroke-width: 2.5; stroke-linejoin: round; }
.ch-prev { fill: none; stroke: var(--accent-strong); stroke-width: 2; stroke-dasharray: 6 5; opacity: .8; }
.ch-dot { fill: var(--brand); }
.ch-bar { fill: var(--brand); opacity: .75; }
.ch-bar.now { opacity: .4; }
.ch-hit { fill: transparent; }
.ch-hit:hover { fill: rgba(31, 77, 54, .06); }
.an-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 20px; align-items: start; }
.an-split > * { min-width: 0; }
.an-filter { max-width: 200px; padding: 6px 10px; font: inherit; font-size: .88rem; border: 1px solid var(--line-2); border-radius: 8px; }
.an-tabs { display: flex; flex-wrap: wrap; gap: 0 4px; margin-bottom: 10px; border-bottom: 1px solid var(--line); }
.an-tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 8px 10px; font: inherit; font-size: .9rem; color: var(--muted); cursor: pointer; }
.an-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent-strong); font-weight: 650; }
.an-ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.an-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; font-size: .9rem; min-width: 0; }
.an-rl { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.an-rl > * { display: block; max-width: 100%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.an-rl { overflow: hidden; white-space: nowrap; }
.an-rl small { color: var(--muted); font-size: .74rem; }
.an-ul > li { min-width: 0; }
.an-rv { flex: none; display: flex; align-items: baseline; gap: 8px; font-variant-numeric: tabular-nums; font-weight: 650; }
.an-pct { color: var(--muted); font-weight: 400; font-size: .78rem; min-width: 3.4em; text-align: right; }
.an-share { height: 4px; border-radius: 4px; background: var(--surface-2); margin-top: 4px; overflow: hidden; }
.an-share div { height: 100%; background: var(--brand-2); border-radius: 4px; }
.an-scroll { max-height: 420px; overflow-y: auto; padding-right: 4px; }
.an-more { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.an-heat { display: grid; gap: 2px; overflow-x: auto; }
.an-heat-row { display: grid; grid-template-columns: 36px repeat(24, minmax(12px, 1fr)); gap: 2px; }
.an-heat-h, .an-heat-d { font-size: .7rem; color: var(--muted); }
.an-heat-c { aspect-ratio: 1; border-radius: 3px; background: rgba(31, 77, 54, var(--a)); outline: 1px solid rgba(31, 77, 54, .06); }
.an-heat-leg { display: flex; align-items: center; gap: 3px; justify-content: flex-end; font-size: .74rem; color: var(--muted); margin-top: 8px; }
.an-heat-leg span { width: 14px; height: 14px; border-radius: 3px; background: rgba(31, 77, 54, var(--a)); }
.google-slot { display: flex; justify-content: center; min-height: 44px; }
.google-slot > .btn-google { width: 100%; }
.g-mark { width: 18px; height: 18px; flex: none; }
.or { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--muted); font-size: .88rem; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.form-page .small { font-size: .85rem; margin: 8px 0 0; }

/* ── Listing cards: every plan, real build and member project looks like its own
   listing (image, kind, title, "Free", who made it), as on a marketplace ── */
.card.listing { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease; min-width: 0; }
.card.listing:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: var(--line-2); }
.card.listing .card-link:hover .card-title { text-decoration: none; color: var(--brand); }
.listing .card-img { border-radius: 0; aspect-ratio: 4 / 3; }
.listing.guide-card .card-img, .listing.guide-card .card-img img { aspect-ratio: 4 / 3; }
.listing.guide-card .card-img img { object-fit: contain; background: #fbf8f2; }
.listing.guide-card .card-img.has-photo img { object-fit: cover; background: none; }
.listing .card-body { padding: 10px 12px 2px; }
.listing .card-cat { margin: 0 0 2px; font-size: .78rem; font-weight: 600; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.listing .card-title { font-size: .98rem; font-weight: 650; line-height: 1.3; margin: 0 0 6px; -webkit-line-clamp: 2; min-height: 2.6em; }
.listing .card-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 7px; margin: 0 0 3px; font-size: 1.2rem; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.listing .card-price span { font-size: .78rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.listing .card-meta li { font-size: .78rem; }
.listing .card-foot { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 9px 12px; border-top: 1px solid var(--line); min-width: 0; font-size: .82rem; }
.listing .card-author { display: inline-flex; align-items: center; gap: 7px; min-width: 0; color: var(--ink-2); text-decoration: none; font-weight: 600; }
.listing .card-author span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.listing a.card-author:hover { color: var(--brand); text-decoration: underline; }
.listing .card-author .avatar, .listing .maker-house .logo-mark { width: 22px !important; height: 22px !important; flex: none; }
.listing .card-extra { margin-left: auto; color: var(--muted); font-size: .75rem; white-space: nowrap; }
.listing .card-stats { margin-left: auto; }
/* What kind of listing this is, on the photo */
.badge-kind { font-size: .72rem; font-weight: 700; letter-spacing: .01em; box-shadow: 0 1px 3px rgba(27, 34, 30, .18); }
.badge-plan { background: var(--brand); color: #fff; }
.badge-build { background: #fff; color: var(--accent-ink); }
.badge-member { background: var(--accent-strong); color: #fff; }
.listing .badge-featured { left: auto; right: 8px; }
.listing .badge-version { left: auto; right: 8px; top: auto; bottom: 8px; }
/* Phones: two listings side by side */
@media (max-width: 599px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .listing .card-body { padding: 8px 9px 0; }
  .listing .card-title { font-size: .86rem; min-height: 2.6em; margin-bottom: 4px; }
  .listing .card-price { font-size: 1.02rem; }
  .listing .card-price span { display: none; }
  .listing .card-meta li:not(:first-child) { display: none; }
  .listing .card-foot { margin-top: 6px; padding: 7px 9px; font-size: .74rem; }
  .listing .card-extra, .listing .card-stats { display: none; }
  .listing .card-author .avatar, .listing .maker-house .logo-mark { width: 18px !important; height: 18px !important; }
  .badge-kind { font-size: .66rem; padding: 1px 6px; left: 6px; top: 6px; }
}

.btn-publish .lbl-short { display: none; }
@media (max-width: 899px) { .btn-publish .lbl-short { display: inline; } }

/* ── List pages: filters in a column, count and sort above the listings ── */
.list-layout { display: grid; gap: 20px; align-items: start; }
@media (min-width: 900px) { .list-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 28px; } .list-filters { position: sticky; top: 16px; } }
.list-main { min-width: 0; }
.list-filters { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.list-filters-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.list-filters-head h2 { margin: 0; font-size: 1rem; }
.list-filters form, .guide-filters { display: grid; gap: 10px; margin: 0; padding: 0; background: none; border: 0; box-shadow: none; }
.list-filters label { display: grid; gap: 4px; font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.list-filters select { width: 100%; }
@media (max-width: 899px) { .list-filters form { grid-template-columns: repeat(2, minmax(0, 1fr)); } .list-filters-head { grid-column: 1 / -1; } }
.list-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.list-count { margin: 0; font-size: 1rem; color: var(--ink-2); }
.list-count strong { color: var(--ink); font-size: 1.1rem; }
.list-sort { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.list-sort select { width: auto; padding: 6px 30px 6px 10px; }

/* ── Project page: price box and seller box, as on a listing site ── */
.listing-box .side-price { margin: 8px 0 14px; }
.listing-box .side-price strong { font-size: 1.8rem; }
.badge-inline { display: inline-flex; padding: 2px 8px; border-radius: 4px; font-size: .74rem; font-weight: 700; }
.badge-inline.badge-member { background: var(--accent-strong); color: #fff; }
.seller { display: grid; gap: 10px; }
.seller-label { margin: 0; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.seller-head { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.seller-head span { display: grid; min-width: 0; }
.seller-head strong { font-size: 1.1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seller-head small { color: var(--muted); }
.seller-head:hover strong { text-decoration: underline; }
.seller-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: .9rem; color: var(--ink-2); }
.seller-facts li { display: flex; align-items: center; gap: 6px; }
.seller-facts .icon { width: 16px; height: 16px; color: var(--muted); }
.seller-bio { margin: 0; font-size: .9rem; color: var(--ink-2); }
.seller .btn { margin: 0; }
.list-filters select, .list-sort select { padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line-2); font: inherit; font-size: .92rem; background: #fff; color: var(--ink); }
@media (max-width: 440px) { .btn-publish .lbl-short { display: none; } }

/* ── Guides beside projects: a compact list, never listing cards ── */
.guide-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.guide-list a { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.guide-list a:hover { background: var(--surface-2); }
.guide-list img { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; flex: none; background: #fbf8f2; }
.guide-list span { display: grid; gap: 2px; min-width: 0; }
.guide-list strong { font-size: .95rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.guide-list small { color: var(--muted); font-size: .8rem; }
.guides-band { border-top: 1px solid var(--line); padding-top: 28px; }
.side-kind { margin: 0 0 12px; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }

/* ── Category tree beside project lists (main categories, subgroups of the open one) ── */
.cat-side { padding: 0; overflow: hidden; }
.cat-side-box > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 12px 16px; font-weight: 650; color: var(--ink); }
.cat-side-box > summary::-webkit-details-marker { display: none; }
.cat-side-box > summary .icon { width: 18px; height: 18px; color: var(--brand); }
.cat-side-box > summary::after { content: "\25BE"; margin-left: auto; color: var(--muted); }
.cat-side-box[open] > summary::after { content: "\25B4"; }
@media (min-width: 900px) { .cat-side-box > summary { display: none; } .chips-mobile { display: none; } }
.cat-tree, .cat-side-filters { padding: 4px 14px 14px; }
.cat-tree h2, .cat-side-filters h2 { font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 10px 2px 6px; }
.cat-tree ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.cat-tree ul ul { margin: 2px 0 4px 12px; padding-left: 8px; border-left: 2px solid var(--line); }
.cat-tree a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px; border-radius: 8px; text-decoration: none; color: var(--ink-2); font-size: .92rem; }
.cat-tree a:hover { background: var(--surface-2); color: var(--ink); }
.cat-tree a[aria-current="page"] { background: var(--brand-tint); color: var(--brand); font-weight: 700; }
.cat-tree .tree-parent { font-weight: 600; }
.cat-tree .tree-child { font-size: .88rem; }
.cat-tree small { color: var(--muted); font-size: .78rem; font-variant-numeric: tabular-nums; font-weight: 500; }
.cat-side-filters { border-top: 1px solid var(--line); }
.cat-side-filters .filters { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
.cat-side-filters .filters select { width: 100%; min-width: 0; }
.cat-side-filters .filters .btn { justify-self: start; }

/* ── Build pages: measured drawings and step photos ── */
.drawings { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.drawing { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.drawing img { display: block; width: 100%; height: auto; border-radius: 6px; }
.drawing figcaption { font-size: .86rem; color: var(--muted); margin-top: 8px; }
.step-photo { margin: 12px 0 0 44px; max-width: 360px; }
.step-photo img { display: block; width: auto; max-width: 100%; height: auto; max-height: 460px; object-fit: contain; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); }
@media (max-width: 600px) { .step-photo { margin-left: 0; max-width: none; } }

/* ── Parity pass (2026-11-14, see PARITY.md) ── */
/* Page type: a tag and one line under the H1 */
.kind-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin: -4px 0 12px; color: var(--ink-2); font-size: .95rem; line-height: 1.45; }
.kind-tag { flex: none; display: inline-block; padding: 2px 9px; border-radius: 4px; font-size: .78rem; font-weight: 700; letter-spacing: .01em; }
.kind-tag.badge-plan { background: var(--brand); color: #fff; }
.kind-tag.badge-member { background: var(--accent-strong); color: #fff; }
.kind-tag.badge-build { background: #fff; color: var(--accent-ink); border: 1px solid var(--line-2); }
.kind-line a { color: var(--brand-2); }
.card-img .badge-kind:not(.badge-featured) { left: 8px; }
/* One action panel on every detail page: one primary button, one row of small ones */
.facts .actions { margin-top: 4px; }
.action-row { display: flex; gap: 6px; position: relative; }
.action-row > *, .action-row .btn { flex: 1 1 0; min-width: 0; }
.action-row .btn { padding: .55em .5em; font-size: .88rem; min-height: 44px; }
.action-row [data-save-slot] { display: flex; }
.action-row [data-save-slot] > *, .action-row form, .action-row form .btn { flex: 1; width: 100%; }
.action-row .btn .count:empty { display: none; }
.action-row .btn.is-on { background: var(--brand-tint); color: var(--brand); }
.action-row .share summary { width: 100%; }
.action-row .share[open] .share-menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; min-width: 190px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.actions .btn-ghost.btn-block { border: 1px dashed var(--line-2); }
/* Calculators on guides, projects and real builds */
.calc-more { margin: 10px 0 0; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; background: var(--surface); }
.calc-more summary { cursor: pointer; font-weight: 650; }
.calc-links { margin: 0 0 32px; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--surface-2); font-size: .92rem; color: var(--ink-2); }
.calc-links a { font-weight: 650; }
/* Publish form: the page pattern */
.pattern-head { margin: 18px 0 8px; font-size: 1rem; }
.page-pattern { margin: 0 0 10px; padding: 0; list-style: none; counter-reset: pp; display: grid; gap: 4px; }
.page-pattern li { counter-increment: pp; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 7px 10px; background: var(--surface-2); border-radius: var(--radius-sm); font-size: .92rem; }
.page-pattern li > span:first-child::before { content: counter(pp) ". "; color: var(--muted); }
.page-pattern .req, .page-pattern .opt { flex: none; font-size: .78rem; font-weight: 650; }
.page-pattern .req { color: var(--brand); }
.page-pattern .opt { color: var(--muted); }
/* Phones: fact box and actions right after the photos, the builder card at the end */
@media (max-width: 999px) {
  .project-side { display: contents; }
  .project-side > * { order: 2; }
  .project-side > .seller, .project-side > .rate-panel, .project-side > .report-link { order: 4; }
  .facts dl > div { padding: 7px 0; }
}
@media print {
  .action-row, .calc-links, .calc-more, .project-side .seller, .rate-panel, .report-link, .comments, .versions { display: none !important; }
}

/* ── Workshop print mode: guides print as a build sheet (2026-11-14) ──
   Cut list and shopping list first, compact, with tick boxes; no navigation,
   ads, photos, rails or buttons. */
@media print {
  @page { margin: 14mm 12mm; }
  html, body { background: #fff !important; color: #000; font-size: 10.5pt; }
  .site-header, .site-footer, .announcement, .crumbs, .skip, [data-flash], .ad, .step-ad,
  .project-side .actions, .project-side .seller, .rate-panel, .report-link, .toc, .side-jumps,
  .section, .cta-band, .comments, .versions, .build-path, .gallery, .guide-photo, .real-builds, .photo-grid,
  .calc-embed, .calc-links, .calc-more, .next-build, .kind-line, .units-note, .more-detail, .part-label,
  .license .safety, .guide-figure figcaption small { display: none !important; }
  a { color: inherit; text-decoration: none; }
  .wrap { max-width: none; padding: 0; }
  .project-head { margin: 0 0 8pt; }
  .project-head h1 { font-size: 18pt; max-width: none; margin: 0 0 4pt; }
  .project-head .lead, .project-head .prose { font-size: 10pt; }
  .byline { font-size: 8.5pt; }
  /* Facts as one compact line under the title */
  .project-layout { display: flex !important; flex-direction: column; gap: 0; }
  .project-main { display: contents !important; }
  .project-main > * { order: 5; }
  .project-side { display: block !important; order: 1; position: static !important; }
  .project-side .facts { box-shadow: none; border: 1px solid #999; padding: 6pt 8pt; margin: 0 0 10pt; }
  .project-side .facts dl { display: flex; flex-wrap: wrap; gap: 2pt 16pt; margin: 0; }
  .project-side .facts dl > div { display: block; border: 0; padding: 0; }
  .project-side .facts dt, .project-side .facts dd { display: inline; font-size: 9pt; text-align: left; }
  .project-side .facts dd small { display: none; }
  .project-side .facts dt .icon { display: none; }
  .project-side .facts dt::after { content: ": "; }
  /* Build sheet first: cut list, shopping list, then materials and tools */
  .project-main > #cut-list { order: 2; }
  .project-main > #shopping-list { order: 3; }
  .project-main > #materials { order: 4; }
  .page-build .project-main > #materials { order: 2; }
  .page-build .project-main > #cut-list { order: 3; }
  .project-main > #tools { order: 4; }
  #cut-list, #shopping-list, #materials { margin: 0 0 10pt !important; break-inside: avoid; }
  #cut-list h2, #shopping-list h2, #materials h2 { font-size: 12pt; margin: 0 0 4pt; }
  .table-wrap { overflow: visible; }
  .table { width: 100%; border-collapse: collapse; font-size: 9pt; }
  .table th, .table td { border: 1px solid #999; padding: 2pt 5pt; text-align: left; vertical-align: top; }
  .table th { background: #eee !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #cut-list tbody td:first-child::before, #shopping-list tbody td:first-child::before { content: "\2610\00a0"; font-size: 11pt; }
  #cut-list > p.muted { font-size: 8pt; margin: 2pt 0 0; }
  .lists { display: grid; grid-template-columns: 1fr 1fr; gap: 10pt; padding: 0; border: 0; }
  .checklist li { padding: 1pt 0 1pt 14pt; font-size: 9pt; border: 0; }
  .checklist li::before { top: 4pt; width: 8pt; height: 8pt; border: 1px solid #000; }
  /* Steps and the rest of the text, compact */
  .steps > li { border: 0; border-bottom: 1px solid #ccc; padding: 4pt 0; margin: 0; break-inside: avoid; background: none; }
  .steps h3 { font-size: 10.5pt; margin: 0 0 2pt; }
  .steps .prose { padding-left: 0; }
  .step-n { width: 16pt; height: 16pt; font-size: 8pt; background: #000 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .step-photo, .drawing img { max-width: 60%; }
  .guide-figure img { max-width: 300px; }
  .callout, .tips { background: none !important; border: 1px solid #ccc; padding: 6pt 8pt; }
  h2 { break-after: avoid; }
}

/* Four buttons in the action row (Save, Print, Pin, Share) on narrow screens */
.action-row:has(> :nth-child(4)) .btn { padding: .55em .3em; font-size: .82rem; gap: .3em; }
@media (max-width: 380px) { .action-row:has(> :nth-child(4)) .btn .icon { display: none; } }
/* Calculator quick choices */
.calc-presets { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.calc-presets .chip { cursor: pointer; font: inherit; font-size: .85rem; }
.calc-presets .chip[aria-pressed="true"] { background: var(--brand-tint); border-color: var(--brand-2); color: var(--brand); }

/* Print: drawings right after the facts, full width; a source line at the end */
.print-source { display: none; }
@media print {
  .print-source { display: block; margin: 14pt 0 0; padding-top: 6pt; border-top: 1px solid #999; font-size: 8.5pt; color: #333; }
  .project-main > #drawings, .project-main > #downloads { order: 2; margin: 0 0 10pt; }
  #drawings > p.muted, #downloads > p.muted { display: none; }
  .drawings { display: block; }
  .drawing { border: 0; padding: 0; margin: 0 0 8pt; break-inside: avoid; }
  .drawing img { max-width: 100%; }
  .step-photo { max-width: 45%; margin-left: 0; }
  .step-photo img { max-height: 200px; }
}

/* Whole picture, never cropped: renders of our 3D models, drawings and portrait photos
   in cards are letterboxed on a calm background instead of being cut (2026-11-14). */
.card-img.fit img, .guide-card .card-img.has-photo.fit img, .listing .card-img.fit img { object-fit: contain; background: var(--surface-2); }
.card-img.fit-render img, .guide-card .card-img.has-photo.fit-render img, .listing .card-img.fit-render img { object-fit: contain; background: #faf7f0; }
.step-photo.step-diagram { max-width: 640px; }
.step-photo.step-diagram img { max-height: 620px; background: #faf7f0; }
@media (max-width: 600px) { .step-photo img { max-height: 70vh; } }

/* Home first view (2026-11-14): one search box (the big one), short copy, plain links,
   and the ranked pictures (src/ranking.mjs) visible on a phone without scrolling. */
.is-home .header-search { display: none; }
.is-home .header-inner { justify-content: space-between; }
.hero-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 4px 0 0; font-size: .95rem; }
.hero-links a { display: inline-flex; align-items: center; gap: 5px; min-height: 40px; color: var(--brand-2); font-weight: 600; text-decoration: none; }
.hero-links a:hover { text-decoration: underline; }
.hero-links a:last-child { color: var(--ink-2); font-weight: 500; }
.hero-links svg { width: 15px; height: 15px; }
.collage-tag { display: flex; flex-direction: column; gap: 1px; white-space: normal; line-height: 1.25; }
.collage-tag strong { font-size: .84rem; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.collage-tag small { font-size: .74rem; font-weight: 500; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.collage-render img { object-fit: contain; background: #faf7f0; }
.collage-item:hover img { transform: scale(1.02); }
.collage-item img { transition: transform .25s ease; }
@media (max-width: 899px) {
  .is-home .hero-inner { padding-top: 22px; gap: 20px; }
  .is-home .hero h1 { font-size: 1.85rem; }
  .is-home .hero-lead { font-size: 1rem; }
  .is-home .hero-search { margin: 16px 0 6px; }
  .collage-tag small { display: none; }
}
@media (prefers-reduced-motion: reduce) { .collage-item img { transition: none; } .collage-item:hover img { transform: none; } }

/* The category row scrolls sideways, which also clips upwards: room for the lifted
   circle and its ring on hover and keyboard focus (2026-11-14). */
.cat-circles { padding: 10px 6px 6px; margin: -10px -6px 0; }
.cat-circles a:focus-visible { outline: none; }
.cat-circles a:focus-visible .cat-symbol { box-shadow: 0 0 0 3px var(--brand-2); }

/* Signed-in header: bell and avatar on one line, same height as the buttons beside them. */
.auth-slot { display: inline-flex; align-items: center; gap: 4px; }
.user-menu summary { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; }
.user-menu summary:hover .avatar, .user-menu[open] summary .avatar { box-shadow: 0 0 0 2px var(--brand-tint), 0 0 0 4px var(--brand-2); }
.user-menu summary:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }
.header-actions .btn-publish { margin-right: 6px; }

/* Comments: permalink time, builder replies, highlighted target, form footer */
.comment-time { color: var(--muted); text-decoration: none; margin-left: 6px; font-size: .85rem; }
.comment-time:hover { text-decoration: underline; }
.comment.by-builder { background: linear-gradient(90deg, var(--brand-tint, #eef4f0), transparent 70%); border-radius: 10px; padding-left: 10px; padding-right: 10px; }
.comment:target { outline: 2px solid var(--brand, #2d5a3d); outline-offset: 4px; border-radius: 10px; }
.comment-body a { overflow-wrap: anywhere; }
.comment-form-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.comment-form-foot .form-note { margin: 0; }
.comment-count { color: var(--muted); font-variant-numeric: tabular-nums; }

/* In-page confirm dialog (window.confirm is blocked in some in-app browsers) */
dialog.ask { border: 0; border-radius: var(--radius, 14px); padding: 22px 22px 18px; max-width: min(440px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(0,0,0,.25); color: var(--ink); background: var(--surface, #fff); }
dialog.ask::backdrop { background: rgba(20, 28, 24, .45); }
dialog.ask p { margin: 0 0 18px; font-size: 1rem; line-height: 1.45; }
.ask-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

/* Planter box configurator */
.planter-svg { width: 100%; height: auto; display: block; margin: 8px 0 14px; background: #fbfaf6; border: 1px solid var(--line); border-radius: 10px; }
.calc-planter .calc-out h3 { font-size: 1.05rem; margin: 18px 0 8px; }
.calc-planter .planter-head { font-size: 1.02rem; }
.planter-plan summary { cursor: pointer; font-weight: 600; margin-top: 10px; }
.calc-error { color: var(--danger, #b3261e); font-weight: 600; }
.calc-actions { margin: 14px 0 0; }
@media print {
  .calc-planter .calc-inputs, .calc-planter .calc-presets, .calc-planter .calc-actions { display: none !important; }
  .planter-plan { display: block; } .planter-plan > summary { display: none; }
  .planter-svg { border: 0; }
}

.calc-check { display: flex; align-items: center; gap: 8px; align-self: end; font-weight: 600; }
.calc-check input { width: 18px; height: 18px; }
