/* =====================================================================
   Casimira Prints — stylesheet
   Color system — taken from the Casimira Prints logo (Oct 2026):
     60%  cream  #FAF6EF — page background (white "sheets" on top)
     30%  navy   #1F2A44 — text, footer and structure
     10%  magenta #C2185B — ONLY for actions (order, send, add) and the cart count
   Gold #E3A82B is the logo's underline: used for small accents.
   The pastel strip (pink, blue, yellow, grey) is the logo's color bar.
   Do not add new colors; change these tokens instead.
   ===================================================================== */

:root {
  --paper: #faf6ef;
  --cream: #faf6ef;
  --sheet: #ffffff;
  --ink: #1f2a44;
  --ink-soft: #3f4a63;
  --ink-mute: #5b6479;
  --line: #e2ddd3;
  --line-strong: #c9c3b8;
  --magenta: #c2185b;
  --magenta-dark: #9c1349;
  --magenta-tint: #fbe8ef;
  --gold: #e3a82b;
  --pastel-pink: #efbcd0;
  --pastel-blue: #bde0eb;
  --pastel-yellow: #f4e1a4;
  --pastel-grey: #c9cdd4;
  --focus: #1f2a44;
  /* older names kept so existing rules still work */
  --cyan: var(--pastel-blue);
  --yellow: var(--gold);
  --ok: #1f7a4d;
  --ok-tint: #e7f4ed;
  --warn-tint: #fff6db;
  --error: #b42318;
  --error-tint: #fdecea;

  /* Fonts match the logo: Lora (the serif in "CASIMIRA") for headings, Inter (as in "PRINTS") for text. */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-head: "Lora", Georgia, "Times New Roman", serif;
  --radius-s: 6px;
  --radius: 10px;
  --shadow-sheet: 0 1px 2px rgba(31, 42, 68, 0.06), 0 8px 24px -12px rgba(31, 42, 68, 0.18);
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Anything marked hidden stays hidden, even if a rule gives it a display value. */
[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-x: clip;
}

main {
  flex: 1 0 auto;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--magenta-dark);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

h1,
h2,
h3,
h4 {
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
h4 {
  font-family: var(--font);
  font-weight: 700;
}

h1 {
  font-size: clamp(2rem, 5.2vw, 3.4rem);
}
h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.15rem);
}
h3 {
  font-size: 1.15rem;
  letter-spacing: 0;
}

p {
  margin: 0 0 1em;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--sheet);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: var(--radius-s);
  font-weight: 700;
}
.skip-link:focus {
  top: 12px;
}

/* ------------------------------ Buttons ------------------------------ */

.btn {
  --btn-bg: var(--sheet);
  --btn-fg: var(--ink);
  --btn-border: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 20px;
  border: 2px solid var(--btn-border);
  border-radius: var(--radius-s);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn:hover {
  color: var(--btn-fg);
  background: var(--paper);
}
.btn:active {
  transform: translateY(1px);
}
.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-primary {
  --btn-bg: var(--magenta);
  --btn-fg: #fff;
  --btn-border: var(--magenta);
}
.btn-primary:hover {
  background: var(--magenta-dark);
  border-color: var(--magenta-dark);
  color: #fff;
}

.btn-quiet {
  --btn-border: var(--line-strong);
}

.btn-on-ink {
  --btn-bg: transparent;
  --btn-fg: #fff;
  --btn-border: rgba(255, 255, 255, 0.55);
}
.btn-on-ink:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.btn-block {
  width: 100%;
}

.btn-small {
  min-height: 40px;
  padding: 6px 14px;
  font-size: 0.95rem;
}

.link-btn {
  background: none;
  border: 0;
  padding: 8px 4px;
  min-height: 40px;
  font: inherit;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.link-btn:hover {
  color: var(--magenta-dark);
}

/* ------------------------------- Header ------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

/* The logo's pastel strip (pink, blue, yellow, grey) under the header */
.colorbar {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  height: 5px;
}
.colorbar span:nth-child(1) {
  background: var(--pastel-pink);
}
.colorbar span:nth-child(2) {
  background: var(--pastel-blue);
}
.colorbar span:nth-child(3) {
  background: var(--pastel-yellow);
}
.colorbar span:nth-child(4) {
  background: var(--pastel-grey);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  margin-right: auto;
  min-height: 48px;
}
.brand:hover {
  color: var(--ink);
}
.brand svg,
.brand img {
  flex: none;
}
.brand img {
  display: block;
  height: 46px;
  width: auto;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
}
.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  border-radius: var(--radius-s);
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--ink);
  background: rgba(31, 42, 68, 0.06);
}
.main-nav a[aria-current="page"] {
  box-shadow: inset 0 -3px 0 var(--yellow);
  border-radius: var(--radius-s) var(--radius-s) 0 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.order-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--radius-s);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}
.order-link:hover {
  color: var(--ink);
  background: rgba(31, 42, 68, 0.06);
}
.order-count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  background: var(--magenta);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
}
.order-count[data-count="0"] {
  background: rgba(31, 42, 68, 0.12);
  color: var(--ink);
}
.order-count.bump {
  animation: bump 0.4s ease;
}
@keyframes bump {
  40% {
    transform: scale(1.35);
  }
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: var(--radius-s);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.menu-toggle:hover {
  background: rgba(31, 42, 68, 0.06);
}

@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
  }
  .header-quote {
    display: none;
  }
  .main-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--cream);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 16px;
    display: none;
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
  }
  .main-nav.open {
    display: block;
  }
  .main-nav ul {
    flex-direction: column;
  }
  .main-nav a {
    width: 100%;
    min-height: 52px;
    font-size: 1.05rem;
  }
  .main-nav a[aria-current="page"] {
    box-shadow: inset 4px 0 0 var(--yellow);
    border-radius: 0 var(--radius-s) var(--radius-s) 0;
  }
  .main-nav .nav-quote {
    display: block;
    margin-top: 8px;
  }
}
@media (min-width: 901px) {
  .main-nav .nav-quote {
    display: none;
  }
}
@media (max-width: 420px) {
  .brand-text {
    font-size: 1.05rem;
  }
  .brand img {
    height: 38px;
  }
  .order-link .order-label {
    display: none;
  }
}

/* ------------------------------- Hero -------------------------------- */

.hero {
  padding: clamp(32px, 6vw, 72px) 0 clamp(40px, 6vw, 72px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.hero h1 {
  max-width: 14ch;
}
.hero-lead {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 46ch;
}

.search-box {
  display: flex;
  gap: 8px;
  margin: 24px 0 16px;
  max-width: 520px;
}
.search-box input {
  flex: 1;
  min-width: 0;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--sheet);
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.chip:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.hero-trust li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-trust svg {
  color: var(--ok);
  flex: none;
}

/* The proof sheet: a printed sheet with crop marks, fed out once on load */
.proof {
  position: relative;
  padding: 18px;
  background: var(--sheet);
  box-shadow: var(--shadow-sheet);
  border-radius: 2px;
}
.proof::before,
.proof::after,
.proof > .crop::before,
.proof > .crop::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--ink-mute);
  border-style: solid;
}
.proof::before {
  top: -10px;
  left: -10px;
  border-width: 0 1px 1px 0;
}
.proof::after {
  top: -10px;
  right: -10px;
  border-width: 0 0 1px 1px;
}
.proof > .crop::before {
  bottom: -10px;
  left: -10px;
  border-width: 1px 1px 0 0;
}
.proof > .crop::after {
  bottom: -10px;
  right: -10px;
  border-width: 1px 0 0 1px;
}
.proof-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.proof-tile {
  display: block;
  position: relative;
  text-decoration: none;
  color: var(--ink);
}
.proof-tile .media {
  aspect-ratio: 4 / 3;
}
.proof-tile span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  padding-top: 6px;
}
.proof-tile span b {
  font-weight: 600;
  color: var(--ink-soft);
}
.proof-tile:hover span {
  color: var(--magenta-dark);
}
.proof-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--line-strong);
  color: var(--ink-mute);
  font-size: 0.8rem;
}
.proof-swatches {
  display: flex;
  gap: 4px;
}
.proof-swatches i {
  width: 12px;
  height: 12px;
  display: block;
}

@media (prefers-reduced-motion: no-preference) {
  .proof.feed {
    animation: feed 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s both;
  }
  @keyframes feed {
    from {
      transform: translateY(-28px);
      opacity: 0;
      clip-path: inset(0 0 100% 0);
    }
    to {
      transform: none;
      opacity: 1;
      clip-path: inset(-20px -20px -20px -20px);
    }
  }
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    max-width: 18ch;
  }
  .proof {
    max-width: 560px;
  }
}

/* ------------------------------ Sections ----------------------------- */

.section {
  padding: clamp(40px, 6vw, 72px) 0;
}
.section-sheet {
  background: var(--sheet);
  border-block: 1px solid var(--line);
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 24px;
}
.section-head p {
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0;
}
.section-head h2 {
  margin-bottom: 6px;
}

.page-head {
  padding: clamp(28px, 5vw, 48px) 0 8px;
}
.page-head p {
  color: var(--ink-soft);
  max-width: 62ch;
  font-size: 1.05rem;
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--ink-mute);
  margin-bottom: 12px;
}
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
}
.breadcrumb li + li::before {
  content: "/";
  margin-right: 4px;
  color: var(--line-strong);
}
.breadcrumb a {
  color: var(--ink-soft);
}

/* ------------------------------ Media -------------------------------- */

.media {
  position: relative;
  overflow: hidden;
  background: #efe9df;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-s);
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------------------------- Categories ----------------------------- */

.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.cat-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
}
.cat-card:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.cat-card .media {
  aspect-ratio: 1;
}
.cat-card h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}
.cat-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.45;
}
.cat-card .count {
  display: block;
  margin-top: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-mute);
}
@media (max-width: 960px) {
  .cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .cat-grid {
    grid-template-columns: 1fr;
  }
  .cat-card {
    grid-template-columns: 80px 1fr;
  }
}

/* ---------------------------- Product cards -------------------------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: 20px;
}
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.product-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sheet);
}
.product-card .media {
  border-radius: 0;
}
.product-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px 16px;
  flex: 1;
}
.product-card h3 {
  margin: 0;
}
.product-card h3 a {
  text-decoration: none;
  color: var(--ink);
}
/* Whole card is clickable through the title link */
.product-card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.product-card h3 a:focus-visible {
  outline: none;
}
.product-card:has(h3 a:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.product-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.5;
}
.price-line {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 8px;
}
.price {
  font-weight: 700;
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
}
.price-from {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-mute);
}
.price-unit {
  font-size: 0.9rem;
  color: var(--ink-mute);
}
.card-cta {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--magenta-dark);
}

.tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink-soft);
  border: 1px solid var(--line);
}

.empty-state {
  padding: 32px;
  text-align: center;
  background: var(--sheet);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
}

/* ------------------------------ Catalog ------------------------------ */

.catalog-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 16px;
  align-items: end;
  margin-bottom: 16px;
}
.catalog-tools .field {
  margin: 0;
}
.cat-filter {
  margin: 0 0 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}
.cat-filter .chip-row {
  flex-wrap: nowrap;
}
.cat-filter .chip {
  white-space: nowrap;
}
@media (min-width: 900px) {
  .cat-filter .chip-row {
    flex-wrap: wrap;
  }
}
.result-count {
  color: var(--ink-mute);
  font-size: 0.95rem;
  margin: 0 0 12px;
}
.catalog-group + .catalog-group {
  margin-top: 40px;
}
.catalog-group h2 {
  font-size: 1.4rem;
}
.catalog-group > p {
  color: var(--ink-soft);
  margin-top: -4px;
}
@media (max-width: 560px) {
  .catalog-tools {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------- Product page --------------------------- */

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  grid-template-areas: "media info" "desc info";
  grid-template-rows: auto 1fr;
  gap: 24px clamp(24px, 4vw, 56px);
  align-items: start;
  padding-bottom: 48px;
}
.product-media {
  grid-area: media;
}
.product-info {
  grid-area: info;
}
.product-desc {
  grid-area: desc;
}
.product-media .media {
  border-radius: var(--radius);
}
.product-media figcaption {
  font-size: 0.82rem;
  color: var(--ink-mute);
  margin-top: 8px;
}
.product-info .summary {
  font-size: 1.1rem;
  color: var(--ink-soft);
}
.configurator {
  margin-top: 20px;
  padding: 20px;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.option-group {
  border: 0;
  padding: 0;
  margin: 0 0 18px;
  min-width: 0;
}
.option-group legend {
  font-weight: 700;
  margin-bottom: 8px;
  padding: 0;
}
.option-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
  gap: 8px;
}
.option {
  position: relative;
}
.option input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.option label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 52px;
  padding: 10px 12px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-s);
  background: var(--sheet);
  cursor: pointer;
  line-height: 1.3;
}
.option label small {
  color: var(--ink-mute);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.option input:checked + label {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
  background: #f6f2ea;
}
.option input:focus-visible + label {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.option label:hover {
  border-color: var(--ink);
}

.qty-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: end;
}
.stepper {
  display: inline-flex;
  align-items: stretch;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-s);
  background: var(--sheet);
  overflow: hidden;
}
.stepper button {
  flex: none;
  width: 48px;
  min-height: 48px;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
}
.stepper button:hover {
  background: #ece6dc;
}
.stepper input {
  flex: none;
  width: 72px;
  border: 0;
  border-inline: 1.5px solid var(--line-strong);
  text-align: center;
  font: inherit;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
  appearance: textfield;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.bulk-note {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.estimate {
  margin: 20px 0 16px;
  padding: 16px;
  border-radius: var(--radius-s);
  background: var(--paper);
  border: 1px solid var(--line);
}
.estimate-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-variant-numeric: tabular-nums;
}
.estimate-row + .estimate-row {
  margin-top: 4px;
}
.estimate-total {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line-strong);
  font-weight: 700;
  font-size: 1.3rem;
}
.estimate-total .label {
  font-size: 1rem;
  align-self: center;
}
.estimate .discount {
  color: var(--ok);
  font-weight: 600;
}
.fine-print {
  font-size: 0.86rem;
  color: var(--ink-mute);
  line-height: 1.5;
}
.action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 420px) {
  .action-row {
    grid-template-columns: 1fr;
  }
}

.spec-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}
.spec-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 10px;
}
.spec-list li::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--cyan);
}

@media (max-width: 860px) {
  .product-layout {
    grid-template-columns: 1fr;
    grid-template-areas: "media" "info" "desc";
    grid-template-rows: auto;
  }
}

/* --------------------------- Steps (how to order) -------------------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  counter-reset: step;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--sheet);
  overflow: hidden;
}
.steps li {
  counter-increment: step;
  padding: 20px;
  position: relative;
}
.steps li + li {
  border-left: 1px dashed var(--line-strong);
}
.steps li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  font-weight: 700;
  margin-bottom: 10px;
}
.steps h3 {
  margin-bottom: 4px;
}
.steps p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
@media (max-width: 900px) {
  .steps {
    grid-template-columns: 1fr 1fr;
  }
  .steps li:nth-child(3) {
    border-left: 0;
  }
  .steps li:nth-child(n + 3) {
    border-top: 1px dashed var(--line-strong);
  }
}
@media (max-width: 520px) {
  .steps {
    grid-template-columns: 1fr;
  }
  .steps li + li {
    border-left: 0;
    border-top: 1px dashed var(--line-strong);
  }
}

/* ------------------------------ Quote band --------------------------- */

.quote-band {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px 32px;
  align-items: center;
  padding: clamp(20px, 4vw, 36px);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--sheet);
  position: relative;
}
.quote-band::before {
  content: "";
  position: absolute;
  left: -2px;
  top: -2px;
  bottom: -2px;
  width: 10px;
  border-radius: var(--radius) 0 0 var(--radius);
  background: linear-gradient(var(--pastel-pink) 0 25%, var(--pastel-blue) 25% 50%, var(--pastel-yellow) 50% 75%, var(--pastel-grey) 75%);
}
.quote-band h2 {
  margin-bottom: 6px;
}
.quote-band p {
  margin: 0;
  color: var(--ink-soft);
}
.quote-band .btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
@media (max-width: 760px) {
  .quote-band {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------- FAQ ------------------------------- */

.faq-list {
  max-width: 820px;
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item:first-child {
  border-top: 1px solid var(--line);
}
.faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  padding: 14px 4px;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  border-right: 2.5px solid var(--ink);
  border-bottom: 2.5px solid var(--ink);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after {
  transform: rotate(-135deg) translate(-3px, -3px);
}
.faq-item summary:hover {
  color: var(--magenta-dark);
}
.faq-item .answer {
  padding: 0 4px 18px;
  color: var(--ink-soft);
  max-width: 70ch;
}

/* ------------------------------- Contact ----------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 16px;
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.contact-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}
.contact-card p {
  margin: 0;
  color: var(--ink-soft);
}
.contact-card .btn {
  margin-top: auto;
  align-self: flex-start;
}
.contact-card .value {
  font-weight: 700;
  color: var(--ink);
  word-break: break-word;
}
.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.info-list li {
  padding: 6px 0;
}

/* -------------------------------- Forms ------------------------------ */

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
  padding-bottom: 56px;
}
@media (max-width: 900px) {
  .form-layout {
    grid-template-columns: 1fr;
  }
}
.panel {
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(16px, 3vw, 28px);
}
.panel + .panel {
  margin-top: 20px;
}
.panel h2 {
  font-size: 1.3rem;
}
.sticky-side {
  position: sticky;
  top: calc(var(--header-h) + 20px);
}
@media (max-width: 900px) {
  .sticky-side {
    position: static;
  }
}

.form-section {
  border: 0;
  padding: 0;
  margin: 0 0 24px;
  min-width: 0;
}
.form-section legend {
  font-size: 1.1rem;
  font-weight: 700;
  padding: 0;
  margin-bottom: 12px;
}
.field {
  margin-bottom: 16px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
@media (max-width: 560px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}
.field label,
.field .label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}
.field .hint {
  display: block;
  font-size: 0.88rem;
  color: var(--ink-mute);
  margin: -2px 0 6px;
}
.req {
  color: var(--magenta-dark);
  font-weight: 700;
}
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="date"],
input[type="search"],
input[type="number"],
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1.5px solid #8a95a6;
  border-radius: var(--radius-s);
  background: var(--sheet);
  color: var(--ink);
  font: inherit;
  font-size: 1rem; /* 16px avoids iPhone zoom on focus */
}
input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
  display: block;
}
textarea {
  min-height: 110px;
  resize: vertical;
}
select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--ink);
  outline: 3px solid rgba(21, 151, 189, 0.45);
  outline-offset: 0;
}
[aria-invalid="true"] {
  border-color: var(--error) !important;
  background: #fffafa;
}
.error-msg {
  display: block;
  color: var(--error);
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 6px;
}
.choice-list {
  display: grid;
  gap: 8px;
}
.choice-list.inline {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-s);
  background: var(--sheet);
  cursor: pointer;
  font-weight: 600;
  line-height: 1.35;
}
.check input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--ink);
  flex: none;
}
.check:has(input:checked) {
  border-color: var(--ink);
  background: #f6f2ea;
}
.check.plain {
  border: 0;
  padding: 4px 0;
  background: none;
  font-weight: 500;
}
.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.alert {
  padding: 14px 16px;
  border-radius: var(--radius-s);
  border: 1px solid;
  margin-bottom: 16px;
}
.alert-error {
  background: var(--error-tint);
  border-color: #f2b8b5;
  color: #7a1810;
}
.alert-error ul {
  margin: 6px 0 0;
  padding-left: 20px;
}
.alert-error a {
  color: #7a1810;
}
.alert-ok {
  background: var(--ok-tint);
  border-color: #a9d8bf;
  color: #12452c;
}
.alert-info {
  background: var(--warn-tint);
  border-color: #efd98a;
  color: #4d3b00;
}

/* ------------------------------ Order list --------------------------- */

.order-items {
  list-style: none;
  margin: 0;
  padding: 0;
}
.order-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.order-item:first-child {
  padding-top: 0;
}
.order-item .media {
  aspect-ratio: 1;
}
.order-item h3 {
  font-size: 1rem;
  margin: 0 0 2px;
}
.order-item h3 a {
  text-decoration: none;
}
.order-item .opts {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin: 0 0 8px;
}
.order-item-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.order-item .stepper button {
  width: 40px;
  min-height: 40px;
}
.order-item .stepper input {
  width: 60px;
}
.line-total {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.summary-rows {
  margin: 12px 0;
}
.summary-rows .estimate-row {
  padding: 4px 0;
}

/* Result panel after sending a request */
.result-panel {
  text-align: left;
}
.result-panel .ref {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.send-options {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}
.request-preview {
  white-space: pre-wrap;
  font: inherit;
  font-size: 0.9rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 12px;
  max-height: 260px;
  overflow: auto;
  margin: 0;
}

/* -------------------------------- Toast ------------------------------ */

.toast-region {
  position: fixed;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 80;
  width: min(92vw, 440px);
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px 12px 16px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(31, 42, 68, 0.5);
}
.toast a {
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}
@media (prefers-reduced-motion: no-preference) {
  .toast {
    animation: toast-in 0.25s ease;
  }
  @keyframes toast-in {
    from {
      transform: translateY(12px);
      opacity: 0;
    }
  }
}

/* -------------------------------- Chat ------------------------------- */

.chat-launcher {
  position: fixed;
  right: calc(16px + env(safe-area-inset-right));
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 18px 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-weight: 700;
  box-shadow: 0 8px 24px -8px rgba(31, 42, 68, 0.55);
  cursor: pointer;
}
.chat-launcher:hover {
  background: #2a3757;
}
.chat-launcher .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--yellow);
}
@media (max-width: 700px) {
  .chat-launcher {
    width: 56px;
    height: 56px;
    min-height: 56px;
    padding: 0;
    justify-content: center;
  }
  .chat-launcher .launcher-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .chat-launcher .dot {
    position: absolute;
    top: 10px;
    right: 10px;
  }
  .site-footer {
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }
  main {
    padding-bottom: 24px;
  }
}
body.chat-open .chat-launcher {
  display: none;
}
body.has-toast .chat-launcher {
  bottom: calc(84px + env(safe-area-inset-bottom));
}

.chat-panel {
  position: fixed;
  right: calc(16px + env(safe-area-inset-right));
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 70;
  width: min(380px, calc(100vw - 32px));
  height: min(600px, calc(100vh - 32px));
  height: min(600px, calc(100dvh - 32px));
  display: flex;
  flex-direction: column;
  background: var(--sheet);
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px -20px rgba(31, 42, 68, 0.5);
  overflow: hidden;
}
.chat-panel[hidden] {
  display: none;
}
@media (max-width: 520px) {
  .chat-panel {
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    border-radius: 0;
    border: 0;
  }
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 8px 12px 16px;
  background: var(--ink);
  color: #fff;
}
.chat-head .who {
  flex: 1;
  min-width: 0;
}
.chat-head strong {
  display: block;
}
.chat-head small {
  display: block;
  color: #c9d2df;
  font-size: 0.82rem;
  line-height: 1.3;
}
.chat-close {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--radius-s);
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.chat-close:hover {
  background: rgba(255, 255, 255, 0.1);
}
.chat-log {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--paper);
  overscroll-behavior: contain;
}
.msg {
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 12px;
  line-height: 1.45;
  font-size: 0.95rem;
}
.msg.bot {
  align-self: flex-start;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}
.msg.me {
  align-self: flex-end;
  background: var(--ink);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.msg .msg-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink-mute);
  margin-bottom: 2px;
}
.msg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.msg-actions .chip {
  min-height: 36px;
  font-size: 0.88rem;
}
.chat-quick {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 8px 12px;
  border-top: 1px solid var(--line);
  background: var(--sheet);
}
.chat-quick .chip {
  white-space: nowrap;
  min-height: 36px;
  font-size: 0.88rem;
}
.chat-form {
  display: flex;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--sheet);
}
.chat-form input,
.chat-form textarea {
  flex: 1;
  min-width: 0;
}
.chat-form textarea {
  min-height: 48px;
  max-height: 120px;
  resize: none;
}
.chat-send {
  flex: none;
  width: 48px;
  padding: 0;
}
.handoff-form {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}
.handoff-form input,
.handoff-form textarea {
  min-height: 44px;
  font-size: 1rem;
}
.handoff-form textarea {
  min-height: 80px;
}

/* ------------------------------- Footer ------------------------------ */

.site-footer {
  margin-top: auto;
  background: var(--ink);
  color: #d5dce7;
  padding: 48px 0 calc(28px + env(safe-area-inset-bottom));
  font-size: 0.95rem;
}
.site-footer a {
  color: #fff;
}
.site-footer a:hover {
  color: var(--yellow);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 28px;
}
.footer-grid h2 {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 12px;
}
.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-grid li {
  padding: 3px 0;
}
.footer-grid li a {
  display: inline-block;
  padding: 4px 0;
}
.footer-brand p {
  max-width: 34ch;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.86rem;
  color: #aeb8c7;
}
.footer-bottom .colorbar {
  width: 120px;
  height: 6px;
  align-self: center;
  grid-template-columns: 1fr 1fr 1fr 1fr;
}
.social-links {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.social-links a {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 420px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------ Prose pages -------------------------- */

.prose {
  max-width: 72ch;
  padding-bottom: 56px;
}
.prose h2 {
  font-size: 1.4rem;
  margin-top: 1.6em;
}
.prose ul {
  padding-left: 1.2em;
}
.prose li {
  margin-bottom: 0.4em;
}
.credits-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.credits-table th,
.credits-table td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.table-scroll {
  overflow-x: auto;
}

/* Setup banner — only visible when opened locally with missing details */
.setup-banner {
  background: var(--warn-tint);
  color: #4d3b00;
  border-bottom: 1px solid #efd98a;
  font-size: 0.9rem;
  padding: 8px 0;
}

/* ------------------------------ Utilities ---------------------------- */

.mt-0 {
  margin-top: 0;
}
.center {
  text-align: center;
}
.muted {
  color: var(--ink-mute);
}
.stack-s > * + * {
  margin-top: 8px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .chat-launcher,
  .chat-panel,
  .toast-region {
    display: none !important;
  }
}

/* ---------------------------- Order tracking ------------------------- */

.track-steps {
  list-style: none;
  margin: 8px 0 16px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
}
.track-steps li {
  position: relative;
  padding-top: 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-mute);
  line-height: 1.25;
}
.track-steps li::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 6px;
  border-radius: 3px;
  background: var(--line);
}
.track-steps li.done::before {
  background: var(--ink-soft);
}
.track-steps li.current::before {
  background: var(--magenta);
}
.track-steps li.current {
  color: var(--ink);
  font-weight: 700;
}
@media (max-width: 480px) {
  .track-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 10px;
  }
}
.track-facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 16px;
  margin: 0 0 12px;
}
.track-facts dt {
  font-weight: 700;
}
.track-facts dd {
  margin: 0;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}
@media (max-width: 420px) {
  .track-facts {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .track-facts dd {
    margin-bottom: 8px;
  }
}

/* ------------------------------ Dashboard ---------------------------- */

.admin-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 24px 0 12px;
}
.admin-top h1 {
  font-size: 1.8rem;
  margin: 0;
}
.admin-tools,
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.btn-row {
  margin: 8px 0 4px;
}
.admin-tiles {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}
.admin-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-height: 64px;
  padding: 10px 12px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--sheet);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.admin-tile strong {
  font-size: 1.4rem;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.admin-tile span {
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-weight: 600;
}
.admin-tile.has-new strong {
  color: var(--magenta-dark);
}
.admin-tile[aria-pressed="true"] {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
@media (max-width: 760px) {
  .admin-tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.admin-filters {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto;
  gap: 0 12px;
  align-items: end;
}
.admin-filters .check {
  margin-bottom: 16px;
  min-height: 48px;
  align-items: center;
}
@media (max-width: 760px) {
  .admin-filters {
    grid-template-columns: 1fr;
  }
}
.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 20px;
  align-items: start;
  padding-bottom: 48px;
}
.admin-list {
  display: grid;
  gap: 8px;
  grid-column: 1 / -1;
}
body.admin-detail-open .admin-list {
  grid-column: 1;
}
.admin-detail {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  max-height: calc(100vh - var(--header-h) - 32px);
  overflow-y: auto;
}
.admin-detail h2 {
  font-size: 1.35rem;
  margin-top: 8px;
}
.admin-detail h3 {
  margin: 20px 0 8px;
  font-size: 1.05rem;
}
.admin-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
@media (max-width: 960px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }
  body.admin-detail-open .admin-list {
    display: none;
  }
  .admin-detail {
    position: static;
    max-height: none;
  }
}
.admin-row {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--line-strong);
  border-radius: var(--radius-s);
  background: var(--sheet);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.admin-row:hover {
  border-color: var(--ink-mute);
}
.admin-row.active {
  border-color: var(--ink);
  border-left-color: var(--magenta);
  background: #f6f2ea;
}
.admin-row-top,
.admin-row-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-size: 0.85rem;
  color: var(--ink-mute);
}
.admin-when {
  margin-left: auto;
}
.admin-row-name {
  font-weight: 700;
  font-size: 1.05rem;
}
.admin-row-what {
  color: var(--ink-soft);
  font-size: 0.92rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-ref {
  font-weight: 700;
  color: var(--ink-soft);
}
.stage-pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  color: var(--ink);
}
.stage-new {
  background: var(--magenta-tint);
  border-color: #efb3c8;
  color: #7d1239;
}
.stage-awaiting_payment {
  background: var(--warn-tint);
  border-color: #efd98a;
  color: #4d3b00;
}
.stage-in_production {
  background: #e3f3f8;
  border-color: #a8d8e7;
  color: #0d4f63;
}
.stage-ready {
  background: var(--ok-tint);
  border-color: #a9d8bf;
  color: #12452c;
}
.stage-completed,
.stage-cancelled {
  color: var(--ink-mute);
}
.tag-rush {
  background: var(--magenta-tint);
  border-color: #efb3c8;
  color: #7d1239;
}
.admin-items {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.admin-items th,
.admin-items td {
  text-align: left;
  padding: 8px 6px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.admin-items td:nth-child(n + 2),
.admin-items th:nth-child(n + 2) {
  text-align: right;
  white-space: nowrap;
}
.admin-note {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 10px 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.admin-update {
  margin-top: 8px;
  padding-top: 4px;
  border-top: 1px dashed var(--line-strong);
}
.admin-history {
  list-style: none;
  padding: 0;
  margin: 0;
}
.admin-history li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.admin-history small {
  color: var(--ink-mute);
  white-space: nowrap;
}

/* ------------------------- Digital products (Oct 2026) ------------------------- */
.proof-tile.cover-tile .media {
  aspect-ratio: 210 / 297;
  background: var(--sheet);
  box-shadow: var(--shadow-sheet);
}
.proof-tile.cover-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.facts {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--sheet);
  display: grid;
  gap: 8px;
}
.facts div {
  display: grid;
  grid-template-columns: minmax(96px, 30%) 1fr;
  gap: 10px;
}
.facts dt {
  font-weight: 700;
  color: var(--ink);
}
.facts dd {
  margin: 0;
  color: var(--ink-soft);
}
.preview-grid {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}
.preview-grid a {
  display: block;
  border-radius: var(--radius-s);
  overflow: hidden;
  background: var(--sheet);
  box-shadow: var(--shadow-sheet);
  border: 1px solid var(--line);
}
.preview-grid img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 700 / 990;
  object-fit: cover;
}
.download-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.pay-box {
  margin: 16px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold);
  border-radius: var(--radius);
  background: var(--sheet);
}
.pay-box h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}
.pay-box p:last-child {
  margin-bottom: 0;
}
.pay-steps {
  margin: 0 0 10px;
  padding-left: 1.2em;
}
.pay-steps li {
  margin-bottom: 6px;
}
.product-info .tag {
  margin-bottom: 8px;
}
@media (max-width: 420px) {
  .facts div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* Payment methods (GCash / Maya / BPI) — shown only when switched on in settings.js */
.pay-methods {
  list-style: none;
  margin: 12px 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.pay-method {
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.pay-method h4 {
  margin: 0 0 8px;
  font-size: 1rem;
}
.pay-line {
  margin: 0 0 4px;
  font-size: 0.95rem;
}
.pay-line span {
  color: var(--ink-mute);
  font-size: 0.85rem;
  display: block;
}
.pay-qr {
  display: block;
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-top: 10px;
  border-radius: var(--radius-s);
  border: 1px solid var(--line);
}

/* =====================================================================
   Digital checkout, payment and downloads (checkout.html, my-order.html, pay.html) — 20 Oct 2026
   ===================================================================== */
.optional { font-weight: 400; color: var(--ink-mute); font-size: 0.9em; }
.eyebrow { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-mute); font-weight: 600; }
.checkout-item { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: start; }
.checkout-item .media { border-radius: var(--radius-s); overflow: hidden; border: 1px solid var(--line); background: var(--sheet); }
.checkout-item .media img { display: block; width: 100%; height: auto; }
.how-steps, .pay-steps { list-style: none; margin: 0 0 12px; padding: 0; counter-reset: step; display: grid; gap: 12px; }
.how-steps li, .pay-steps li { counter-increment: step; display: grid; grid-template-columns: 32px 1fr; column-gap: 12px; align-items: start; }
.how-steps li::before, .pay-steps li::before {
  content: counter(step); grid-row: span 2; width: 32px; height: 32px; border-radius: 50%;
  background: var(--ink); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 0.95rem;
}
.how-steps span, .pay-steps span { color: var(--ink-soft); font-size: 0.93rem; }
.pay-steps { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 0 0 32px; }
.pay-steps li { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.pay-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin: 16px 0 32px; }
.pay-card { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-align: center; box-shadow: var(--shadow-sheet); }
.pay-card h3 { margin: 0 0 10px; font-size: 1.15rem; }
.pay-card img { width: 100%; max-width: 280px; height: auto; aspect-ratio: auto; border-radius: var(--radius-s); border: 1px solid var(--line); background: #fff; }
.pay-line { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin: 8px 0 0; font-size: 0.93rem; text-align: left; }
.pay-line span { color: var(--ink-mute); }
.pay-line strong { overflow-wrap: anywhere; }
.pay-safety { max-width: 820px; }
.method-picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin: 8px 0 16px; }
.method-option { position: relative; display: block; }
.method-option input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.method-option span {
  display: block; text-align: center; padding: 12px 10px; border: 2px solid var(--line-strong); border-radius: var(--radius-s);
  font-weight: 700; background: var(--sheet); transition: border-color 0.15s, background 0.15s;
}
.method-option input:checked + span { border-color: var(--magenta); background: var(--magenta-tint); }
.method-option input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.qr-box { display: grid; grid-template-columns: minmax(200px, 320px) 1fr; gap: 20px; align-items: start; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.qr-img { width: 100%; height: auto; border-radius: var(--radius-s); background: #fff; border: 1px solid var(--line); }
.qr-info .amount { font-size: 1.3rem; color: var(--magenta-dark); }
.mini-steps { margin: 12px 0; padding-left: 20px; font-size: 0.92rem; color: var(--ink-soft); }
.mini-steps li + li { margin-top: 6px; }
@media (max-width: 640px) { .qr-box { grid-template-columns: 1fr; } .qr-img { max-width: 320px; margin: 0 auto; display: block; } }
.order-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; margin-bottom: 8px; }
.order-ref { margin: 2px 0 0; font-size: 1.4rem; font-family: var(--font); letter-spacing: 0.02em; }
.status-msg { margin: 0; color: var(--ink-soft); }
.track-steps.track-steps { grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); }
.status-badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 0.82rem; font-weight: 700; background: var(--line); color: var(--ink); white-space: nowrap; }
.status-awaiting_payment, .status-payment_submitted, .status-under_verification { background: var(--warn-tint); color: #6b4e00; }
.status-paid, .status-delivery_ready, .status-delivered { background: var(--ok-tint); color: var(--ok); }
.status-payment_failed { background: var(--error-tint); color: var(--error); }
.status-refunded, .status-cancelled { background: #eceef2; color: var(--ink-mute); }
.summary-list { list-style: none; margin: 0 0 12px; padding: 0; }
.summary-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.summary-list li.total { border-bottom: 0; font-size: 1.05rem; }
.dl-group { margin: 16px 0 6px; font-size: 0.95rem; color: var(--ink-soft); }
.dl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.dl-list a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--sheet); color: var(--ink); text-decoration: none; font-weight: 600; }
.dl-list a:hover { border-color: var(--ink-mute); }
.dl-list a::before { content: "↓"; color: var(--magenta); font-weight: 700; }
.dl-list a span:first-child { flex: 1; }
.dl-size { color: var(--ink-mute); font-weight: 400; font-size: 0.85rem; white-space: nowrap; }

/* ------------------------- owner dashboard: digital orders ------------------------- */
.admin-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 20px; border-bottom: 1px solid var(--line); }
.admin-tabs button { border: 0; background: none; padding: 10px 14px; font: inherit; font-weight: 600; color: var(--ink-mute); border-bottom: 3px solid transparent; cursor: pointer; }
.admin-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--magenta); }
.admin-tabs button:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.check-box { border: 2px solid var(--gold); background: var(--warn-tint); border-radius: var(--radius); padding: 14px; margin: 12px 0; }
.check-box p { margin: 4px 0; }
.danger-zone { border-top: 1px dashed var(--line-strong); margin-top: 16px; padding-top: 12px; }
.event-list { list-style: none; margin: 0; padding: 0; font-size: 0.88rem; }
.event-list li { padding: 6px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 120px 1fr; gap: 8px; }
.event-list .fail { color: var(--error); font-weight: 600; }
.sys-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sys-checks li { display: grid; grid-template-columns: 26px 160px 1fr; gap: 8px; align-items: start; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--sheet); }
.sys-checks .ok::before { content: "✓"; color: var(--ok); font-weight: 700; }
.sys-checks .bad::before { content: "!"; color: var(--error); font-weight: 700; }
.sys-checks .opt::before { content: "–"; color: var(--ink-mute); font-weight: 700; }
@media (max-width: 640px) { .sys-checks li { grid-template-columns: 22px 1fr; } .sys-checks li span:last-child { grid-column: 2; } .event-list li { grid-template-columns: 1fr; } }
.prod-table { width: 100%; border-collapse: collapse; }
.prod-table td, .prod-table th { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prod-table input[type="text"], .prod-table input[type="number"] { width: 100%; min-width: 90px; }
.link-box { display: flex; gap: 8px; align-items: center; }
.link-box input { flex: 1; min-width: 0; font-size: 0.85rem; }

/* ---------------- Home hero tiles + landscape previews (Nov 2026) ---------------- */
.proof-tile.hero-tile .media {
  aspect-ratio: 4 / 3;
  background: var(--sheet);
  box-shadow: var(--shadow-sheet);
  overflow: hidden;
}
.proof-tile.hero-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.proof-tile.hero-tile span {
  font-size: 0.82rem;
  line-height: 1.25;
  flex-wrap: wrap;
}
.preview-grid.landscape {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}
.preview-grid.landscape img {
  aspect-ratio: 1000 / 773;
}

/* Design picker (planner, memo pad and desk calendar designs) */
.design-picker { position: relative; }
.design-picker-toggle {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 6px 12px;
  background: var(--sheet); border: 1px solid var(--line-strong); border-radius: var(--radius-s);
  font: inherit; color: var(--ink); text-align: left; cursor: pointer;
}
.design-picker-toggle:hover { border-color: var(--ink-mute); }
.design-picker-toggle:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.design-picker .dp-thumb { display: none; width: 44px; height: 33px; flex: none; border-radius: 4px; background: var(--paper) center/cover no-repeat; border: 1px solid var(--line); }
.design-picker.has-value .dp-thumb { display: block; }
.design-picker .dp-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.design-picker .dp-caret { color: var(--ink-mute); transition: transform .15s; }
.design-picker.is-open .dp-caret { transform: rotate(180deg); }
.design-picker-panel {
  position: absolute; z-index: 20; left: 0; right: 0; top: 52px; display: flex; gap: 8px; padding: 4px;
  background: var(--sheet); border: 1px solid var(--line-strong); border-radius: var(--radius-s); box-shadow: var(--shadow-sheet);
}
.design-picker-panel[hidden] { display: none; }
.design-picker-list {
  flex: 1 1 46%; min-width: 0; margin: 0; padding: 0; list-style: none;
  max-height: min(340px, 50vh); overflow-y: auto; overscroll-behavior: contain;
}
.dp-preview { flex: 1 1 54%; align-self: flex-start; position: sticky; top: 0; padding: 4px; }
.dp-preview img { display: block; width: 100%; height: auto; border-radius: 6px; background: var(--paper); aspect-ratio: 4 / 3; object-fit: cover; }
.dp-preview span { display: block; margin-top: 6px; font-size: .85rem; font-weight: 700; color: var(--ink); }
.dp-chosen { display: none; margin: 10px 0 0; }
.dp-chosen img { display: block; width: 100%; height: auto; border-radius: var(--radius-s); border: 1px solid var(--line); }
.dp-chosen figcaption { font-size: .82rem; color: var(--ink-mute); margin-top: 4px; }
@media (hover: none), (max-width: 640px) {
  .dp-preview { display: none; }
  .dp-chosen:not([hidden]) { display: block; }
}
.design-picker-list:focus { outline: none; }
.design-picker-list li { padding: 9px 10px; border-radius: 4px; cursor: pointer; line-height: 1.3; }
.design-picker-list li.is-active { background: var(--magenta-tint); }
.design-picker-list li[aria-selected="true"] { font-weight: 700; }
.design-picker-hint { margin: 6px 0 0; font-size: .82rem; color: var(--ink-mute); }
@media (hover: none) { .design-picker-hint { display: none; } }
.option input:disabled + label { opacity: .45; cursor: not-allowed; }

/* ---- Shop menu (dropdown on desktop, nested list on phones) ---- */
.main-nav .has-sub { position: relative; }
.main-nav .sub-nav { display: none; }
@media (min-width: 901px) {
  .main-nav .sub-nav {
    position: absolute; z-index: 60; top: 100%; left: 0; min-width: 220px; flex-direction: column; gap: 0;
    padding: 6px; background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius-s); box-shadow: var(--shadow-sheet);
  }
  .main-nav .has-sub:hover > .sub-nav, .main-nav .has-sub:focus-within > .sub-nav { display: flex; }
  .main-nav .has-sub > a::after { content: "▾"; font-size: .75em; margin-left: 6px; color: var(--ink-mute); }
  .main-nav .sub-nav a { width: 100%; min-height: 40px; font-weight: 500; }
}
@media (max-width: 900px) {
  .main-nav .sub-nav { display: flex; padding-left: 14px; border-left: 2px solid var(--line); margin: 0 0 6px 12px; }
  .main-nav .sub-nav a { min-height: 44px; font-size: .98rem; font-weight: 500; }
}
/* ---- Product kind badges and notices ---- */
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; line-height: 1.5; }
.badge-physical { background: #e7f0f7; color: #1f4a6e; }
.badge-digital { background: #efe9f7; color: #4b2f78; }
.badge-best { background: var(--magenta); color: #fff; }
.kind-notice { display: flex; flex-direction: column; gap: 2px; margin: 12px 0 0; padding: 12px 14px; border-radius: var(--radius-s); font-size: .92rem; }
.kind-notice strong { font-size: .95rem; }
.kind-digital { background: #f4effb; border: 1px solid #d9cdee; color: #3b2a5c; }
.kind-physical { background: #eef5fa; border: 1px solid #cfe0ee; color: #1f3a55; }
.price-was { color: var(--ink-mute); font-weight: 500; margin-right: 4px; }
.save-line { margin: 0 0 14px; font-weight: 700; color: var(--ok); }
.save-chip { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--ok-tint); color: var(--ok); font-weight: 700; font-size: .85rem; }
.upsell { margin-top: 16px; padding: 16px; border: 2px dashed var(--magenta); border-radius: var(--radius); background: var(--magenta-tint); }
.upsell p { margin: 8px 0; }
/* ---- Physical / digital tabs on the products page ---- */
.type-row { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.type-tab { min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--sheet); font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; }
.type-tab[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip-shelf[aria-pressed="true"] { background: var(--magenta); color: #fff; border-color: var(--magenta); }

.dl-all { margin: 8px 0 6px; font-size: 1.05rem; min-height: 54px; }
.dl-start { margin: 8px 0 4px; min-height: 48px; --btn-bg: var(--sheet); --btn-fg: var(--ink); --btn-border: var(--ink); }
.dl-step { display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; margin-right: 6px; border-radius: 50%; background: currentColor; font-size: 0.8em; font-weight: 700; }
.dl-step { color: inherit; background: rgba(255,255,255,0.25); }
.dl-start .dl-step { background: var(--pastel-yellow); }
.dl-each { margin-top: 10px; }
.dl-each > summary { cursor: pointer; font-weight: 700; padding: 8px 0; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }
.hero-ctas .btn { flex: 0 1 auto; }
@media (max-width: 600px) { .hero-ctas .btn { flex: 1 1 100%; } }
.badge-new { background: #e8f4ec; color: #1f7a4d; }
.prerender img { max-width: 100%; height: auto; border-radius: var(--radius); }
.collection-list { list-style: none; padding: 0; display: grid; gap: 12px; margin: 0 0 24px; }
.collection-list li { padding: 14px 16px; background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius-s); }
.collection-list .price { font-weight: 700; color: var(--magenta); margin-left: 6px; }

/* Owner dashboard: Files tab */
.f-folder { border-bottom: 1px solid var(--line); padding: 10px 0; }
.f-folder summary { cursor: pointer; }
