@import url("https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&display=swap");

/* Stetson indigo and champagne gold. Cache token lives in ASSET_REV. */

:root {
  --bg: #f4f2fb;
  --surface: #ffffff;
  --ink: #1c1730;
  --muted: #5d5770;
  --accent: #7c12f8;
  --accent-deep: #5b0fc8;
  --accent-soft: #efe8ff;
  --sale: #c24a2a;
  --sale-soft: #fde8e2;
  --sand: #efe8ff;
  --line: #e4dcf6;
  --night: #14082c;
  --gold: #f0c14b; /* champagne gold */
  --gold-soft: #fff6d6;
  --shadow: 0 14px 36px rgba(91, 15, 200, 0.10);
  --radius: 16px;
  --radius-sm: 10px;
  --font-display: "Fraunces", Georgia, serif;
  --font: "Figtree", "Segoe UI", system-ui, sans-serif;
  --max: 1120px;
}

*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: clip; }
body {
  margin: 0;
  overflow-wrap: break-word;
  background:
    radial-gradient(1200px 420px at 0% -10%, rgba(124, 18, 248, 0.08), transparent 50%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.6;
  font-weight: 400;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
h1, h2, h3, .brand-name, .card-title {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--night);
  line-height: 1.15;
}
h1 { font-size: clamp(2.1rem, 5.4vw, 3.45rem); margin: 0 0 0.65rem; }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.8rem); margin: 0 0 0.8rem; }
h3 { font-size: 1.12rem; margin: 0 0 0.4rem; }
p { margin: 0 0 1rem; }
.wrap { width: min(var(--max), calc(100% - 2rem)); margin: 0 auto; min-width: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus {
  left: 0.5rem; top: 0.5rem; background: var(--surface);
  padding: 0.45rem 0.85rem; z-index: 80; border-radius: 8px;
}

/* —— Site chrome —— */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(28, 23, 48, 0.05);
}
.site-header::after {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-deep) 58%, var(--gold));
}
.site-header-inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.55rem 1rem;
  min-height: 4.15rem; padding: 0.45rem 0;
}
.brand {
  display: flex; align-items: center; gap: 0.7rem;
  text-decoration: none; color: var(--night);
  min-width: 0; flex: 1 1 auto;
}
.brand-mark {
  width: 2.35rem; height: 2.35rem; border-radius: 12px;
  background: var(--accent); color: var(--gold-soft);
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 0.92rem; font-weight: 700;
}
.brand-text { display: flex; flex-direction: column; gap: 0.05rem; min-width: 0; }
.brand-name {
  font-size: 1.02rem; font-weight: 650; letter-spacing: -0.03em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.brand-place { font-size: 0.72rem; color: var(--muted); font-weight: 500; letter-spacing: 0.02em; }
.nav-primary { display: none; }
.nav-primary a,
.nav-drawer a,
.nav-primary button.nav-text,
.nav-drawer button.nav-text {
  text-decoration: none; color: var(--muted); font-size: 0.92rem; font-weight: 600;
  font-family: inherit; background: none; border: 0; cursor: pointer;
}
.nav-primary a,
.nav-primary button.nav-text {
  padding: 0.4rem 0.55rem; border-radius: 8px;
}
.nav-primary a:hover,
.nav-primary a[aria-current="page"],
.nav-primary button.nav-text:hover {
  color: var(--accent-deep); background: var(--accent-soft);
}
.nav-tools { margin-left: auto; display: flex; gap: 0.45rem; align-items: center; flex: 0 0 auto; }
.menu-btn { order: 1; }
.icon-btn, .menu-btn, .account-btn {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: 999px; padding: 0.42rem 0.9rem; font: inherit; font-weight: 600;
  cursor: pointer; text-decoration: none; min-height: 2.5rem;
  display: inline-flex; align-items: center; white-space: nowrap;
}
.icon-btn:hover, .menu-btn:hover, .account-btn:hover {
  border-color: var(--accent); color: var(--accent-deep);
}
.signout-btn { background: transparent; color: var(--accent-deep); }
.nav-drawer a.nav-signout { color: var(--accent-deep); font-weight: 700; }
@media (max-width: 640px) {
  .site-header.is-signed-in .site-header-inner {
    display: grid;
    grid-template-columns: max-content max-content max-content minmax(0, 1fr) auto;
    column-gap: 0.4rem;
    row-gap: 0.45rem;
    align-items: center;
  }
  .site-header.is-signed-in .brand {
    grid-column: 1 / 5;
    grid-row: 1;
    min-width: 0;
  }
  .site-header.is-signed-in .nav-tools { display: contents; }
  .site-header.is-signed-in .menu-btn { grid-column: 5; grid-row: 1; }
  .site-header.is-signed-in .cart-pill { grid-column: 1; grid-row: 2; }
  .site-header.is-signed-in .account-btn:not(.signout-btn) { grid-column: 2; grid-row: 2; }
  .site-header.is-signed-in .signout-btn { grid-column: 3; grid-row: 2; }
}
.cart-pill { position: relative; }
.cart-pill .count {
  position: absolute; top: -0.35rem; right: -0.25rem;
  background: var(--sale); color: #fff; border-radius: 999px;
  font-size: 0.68rem; min-width: 1.1rem; text-align: center; padding: 0.05rem 0.28rem;
}
.nav-drawer {
  display: none;
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 0.35rem 0 0.7rem;
}
body.menu-open .nav-drawer,
.nav-drawer.is-open { display: block; }
.nav-drawer a,
.nav-drawer button.nav-text {
  display: block; width: 100%; text-align: left; padding: 0.85rem 1.25rem; color: var(--ink);
  border-top: 1px solid var(--line); border-radius: 0; min-height: 2.75rem;
}
.nav-drawer a[aria-current="page"],
.nav-drawer button.nav-text:hover {
  color: var(--accent-deep); background: var(--accent-soft);
}
.student-rail {
  border-top: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
  background:
    linear-gradient(90deg, var(--accent-soft), color-mix(in srgb, var(--gold-soft) 78%, white));
  padding: 0.55rem 0 0.65rem;
}
.student-rail-inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem 0.7rem;
  container-type: inline-size;
}
.student-rail-kicker {
  flex: 1 1 100%;
  margin: 0;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent-deep);
}
.student-rail-count {
  letter-spacing: 0; text-transform: none; font-weight: 650; color: var(--muted);
}
.student-rail-primary {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem;
  flex: 1 1 16rem;
}
.student-rail-link,
.student-rail-more a {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.5rem; padding: 0.25rem 0.85rem;
  border-radius: 999px; border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--line));
  background: var(--surface); color: var(--ink);
  text-decoration: none; font-weight: 700; font-size: 0.92rem;
  white-space: nowrap;
}
.student-rail-link.is-add {
  background: var(--accent); border-color: var(--accent); color: #fff;
}
.student-rail-link.is-add:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
.student-rail a[aria-current="page"]:not(.is-add),
.student-rail-more a[aria-current="page"] {
  background: var(--accent); border-color: var(--accent); color: #fff;
}
.student-rail a.is-add[aria-current="page"] { box-shadow: inset 0 0 0 2px var(--gold); }
.student-rail-link.is-disabled {
  color: var(--muted);
  background: color-mix(in srgb, var(--line) 70%, white);
  border-color: var(--line);
  cursor: not-allowed;
}
.student-rail-more { display: none; flex-wrap: wrap; gap: 0.35rem; }
.student-rail-more a { min-height: 2.15rem; font-size: 0.86rem; background: transparent; }
.student-rail-more a:hover,
.student-rail-link:not(.is-add):not(.is-disabled):hover {
  border-color: var(--accent); color: var(--accent-deep); background: var(--surface);
}
@media (min-width: 720px) {
  .student-rail-kicker { flex: 0 0 auto; }
  .student-rail-primary { display: flex; flex: 0 0 auto; }
  .student-rail-primary .student-rail-link { min-width: 8.5rem; }
  .student-rail-more { display: flex; }
}
@container (min-width: 920px) {
  .student-rail-more { margin-left: auto; }
}
@media (max-width: 719px) {
  .student-rail-link { width: 100%; }
}

/* —— Hero & homepage —— */
.hero {
  padding: 2.6rem 0 2rem;
  background:
    radial-gradient(720px 280px at 90% 0%, rgba(201, 162, 39, 0.16), transparent 55%),
    radial-gradient(640px 260px at 0% 100%, rgba(124, 18, 248, 0.14), transparent 50%);
}
.hero-grid {
  display: grid; gap: 1.5rem; align-items: stretch;
}
.hero .lede { font-size: 1.18rem; max-width: 36rem; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.35rem; }
.eyebrow {
  display: inline-block; margin: 0 0 0.7rem;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent-deep);
}
.hero-feature {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.25rem 1.3rem 1.4rem;
  display: flex; flex-direction: column;
}
.hero-feature-kicker {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 0.45rem;
}
.hero-feature h2 { font-size: 1.45rem; margin-bottom: 0.45rem; }
.hero-feature h2 a { text-decoration: none; color: inherit; }
.hero-feature .pitch { flex: 1; }

.quick-nav {
  display: grid; gap: 0.75rem;
  grid-template-columns: 1fr 1fr;
  margin: 0 0 0.4rem;
}
.quick-nav a,
.quick-nav .quick-tile {
  text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 0.9rem 1rem;
  display: flex; flex-direction: column; gap: 0.15rem;
  min-height: 4.6rem; width: 100%; text-align: left;
  font: inherit; cursor: pointer;
}
.quick-nav a:hover,
.quick-nav .quick-tile:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.quick-kicker {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--accent);
}
.quick-nav strong { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; }

.home-band,
.campaign-card {
  background:
    linear-gradient(145deg, var(--accent-soft) 0%, var(--surface) 48%, var(--gold-soft) 140%);
  border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem 1.5rem 1.55rem;
  box-shadow: var(--shadow);
  display: grid; gap: 1.35rem;
}
.campaign-card h2,
.campaign-card h3 { margin-bottom: 0.45rem; }
.campaign-card h2 a,
.campaign-card h3 a { text-decoration: none; color: inherit; }
.campaign-card h2 a:hover,
.campaign-card h3 a:hover { color: var(--accent); }
.campaign-copy .pitch { margin-bottom: 0; max-width: 36rem; }
.campaign-meter {
  display: flex; flex-direction: column; justify-content: flex-end;
}
.campaign-raised { margin: 0; }
.campaign-raised b {
  display: block; font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.35rem);
  font-weight: 700; color: var(--accent-deep); line-height: 1.05; margin-bottom: 0.15rem;
}
.campaign-goal { margin: 0; color: var(--muted); font-size: 0.95rem; }
.campaign-meter .thermo { margin: 0.9rem 0 1.2rem; height: 0.85rem; }
.campaign-meter .btn { align-self: flex-start; }
.campaign-card-compact {
  background: var(--surface);
  padding: 1.2rem 1.25rem 1.3rem;
}
.home-split {
  display: grid; gap: 1.25rem;
}
.month-list { list-style: none; padding: 0; margin: 0; }
.month-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.month-list li:last-child { border-bottom: 0; }
.month-label {
  display: block; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 0.2rem;
}

.media-rounded { border-radius: 14px; overflow: hidden; margin-bottom: 0.9rem; }
.media-teaser { aspect-ratio: 16 / 8; }
.cluster-links { margin-top: 1rem; color: var(--muted); }
.cluster-links .text-link,
button.text-link {
  background: none; border: 0; padding: 0; font: inherit; font-weight: 650;
  color: var(--accent-deep); cursor: pointer; text-decoration: underline;
  text-underline-offset: 3px;
}
.cluster-links .text-link:hover,
button.text-link:hover { color: var(--accent); }

/* —— Buttons —— */
[hidden] { display: none !important; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.35rem; border-radius: 12px; padding: 0.72rem 1.2rem;
  text-decoration: none; font: inherit; font-weight: 650; border: 1px solid transparent;
  cursor: pointer; min-height: 2.8rem;
}
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 8px 16px rgba(91, 15, 200, 0.22);
}
.btn-primary:hover { background: var(--accent-deep); color: #fff; }
.btn-gold { background: var(--gold); color: var(--accent-deep); }
.btn-gold:hover { background: var(--gold-soft); color: var(--accent-deep); }
.btn-ghost { background: transparent; border-color: var(--accent); color: var(--accent-deep); }
.btn-ghost:hover { background: var(--accent-soft); }
.btn-danger { background: var(--sale); color: #fff; }
.btn[disabled], .btn.is-disabled { opacity: 0.5; pointer-events: none; }
.btn-block { width: 100%; }

/* —— Layout blocks —— */
.section { padding: 1.7rem 0 2.3rem; }
.section > .wrap > h1:first-child + p {
  color: var(--muted); font-size: 1.08rem; max-width: 42rem;
}
.section-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1rem; margin-bottom: 1.15rem;
}
.section-head a { font-weight: 650; text-decoration: none; }

.event-grid, .product-grid, .card-grid {
  display: grid; gap: 1.2rem;
  grid-template-columns: 1fr;
}
.event-card, .product-card, .panel, .comm-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.event-card, .product-card {
  display: flex; flex-direction: column;
  border-top: 3px solid var(--accent);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  height: 100%;
}
.event-card:hover, .product-card:hover {
  box-shadow: 0 16px 32px rgba(91, 15, 200, 0.12);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
}
.event-card:hover .card-title a,
.product-card:hover .card-title a { color: var(--accent); }
.event-card .card-inner {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.15rem 1.2rem 1.2rem;
  flex: 1;
}
.event-card .card-body { padding: 0; min-width: 0; }
.panel-pad { padding: 1.15rem 1.25rem; }
.panel-pad-sm { padding: 0.7rem; }
.panel-stack { margin-bottom: 0.85rem; }
.form-inline { display: inline; }

.media {
  position: relative; aspect-ratio: 16 / 9; background: var(--accent-deep);
  overflow: hidden;
}
.media.square { aspect-ratio: 1; }
.media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.monogram {
  width: 100%; height: 100%; display: grid; place-items: center;
  background: linear-gradient(160deg, var(--accent) 0%, var(--night) 100%);
  color: var(--gold); font-family: var(--font-display); font-size: 2.5rem; font-weight: 700;
}
.event-when {
  margin: 0 0 0.28rem; font-size: 0.86rem; font-weight: 650;
  letter-spacing: 0.01em; color: var(--accent-deep);
}
.event-when.spaced { margin-top: 1rem; }
.date-badge {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--accent); color: #fff; border-radius: 14px;
  padding: 0.5rem 0.55rem 0.45rem; min-width: 3.65rem; flex-shrink: 0;
}
.date-badge .mon {
  display: block; font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold);
}
.date-badge .day {
  display: block; font-size: 1.7rem; line-height: 1; font-family: var(--font-display); font-weight: 700; color: #fff;
}
.card-media {
  display: block; aspect-ratio: 4 / 3; background: var(--accent-deep); overflow: hidden;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 1.15rem 1.2rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.card-title { font-size: 1.18rem; margin: 0 0 0.35rem; }
.card-title a { text-decoration: none; color: inherit; }
.card-kicker {
  margin: 0 0 0.35rem; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);
}
.card-seller { margin: -0.15rem 0 0.45rem; color: var(--muted); font-size: 0.88rem; }
.pitch { color: var(--muted); margin-bottom: 0.55rem; flex: 1; }
.card-place { margin: 0 0 0.7rem; color: var(--muted); font-size: 0.9rem; }
.card-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.55rem 0.8rem; margin-top: auto; padding-top: 0.7rem;
  border-top: 1px solid var(--line);
}
.card-actions {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.65rem 0.85rem;
  margin-left: auto;
}
.card-price { font-weight: 700; font-size: 1.05rem; color: var(--night); }
.card-go {
  font-weight: 700; text-decoration: none; color: var(--accent);
  white-space: nowrap;
}
.card-go:hover { color: var(--accent-deep); }
.card-go.is-disabled { color: var(--muted); font-weight: 650; }
.meta { display: flex; flex-wrap: wrap; gap: 0.4rem; color: var(--muted); font-size: 0.88rem; }
.card-foot .meta { margin: 0; }
.chip {
  display: inline-flex; align-items: center; border-radius: 999px;
  padding: 0.18rem 0.62rem; background: var(--accent-soft); color: var(--accent-deep);
  font-size: 0.78rem; font-weight: 650;
}
.chip-gold { background: var(--gold-soft); color: var(--night); }
.chip-sale { background: var(--sale); color: #fff; }
.chip-student { background: var(--gold-soft); }

.thermo {
  background: var(--sand); border-radius: 999px; height: 0.7rem; overflow: hidden;
}
.thermo > span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--gold)); }

.avatar {
  width: 6rem; height: 6rem; border-radius: 50%; object-fit: cover;
  margin-bottom: 0.65rem;
}

/* —— Footer —— */
.footer {
  background: var(--night); color: #efe8ff; padding: 3.1rem 0 2.2rem; margin-top: 2.6rem;
  border-top: 3px solid var(--gold);
}
.footer a { color: var(--gold-soft); }
.footer .ein { color: #d8d0ea; font-size: 0.92rem; }
.footer-label {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: #c4b5e8; margin: 0 0 0.7rem;
}
.footer-grid { display: grid; gap: 1.6rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-links a,
.footer-links button.nav-text { text-decoration: none; }
.footer-links button.nav-text {
  background: none; border: 0; padding: 0; margin: 0;
  font: inherit; font-weight: 600; color: var(--gold-soft);
  cursor: pointer; text-align: left;
}
.footer-links button.nav-text:hover { color: var(--gold); }
.footer-brand {
  font-family: var(--font-display); font-size: 1.2rem; color: #fff; margin: 0 0 0.6rem;
}

.sponsor-board {
  display: grid;
  gap: 1rem;
  margin-top: 0.35rem;
}
@media (min-width: 860px) {
  .sponsor-board:has(.sponsor-major):has(.sponsor-multi_line) {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
    align-items: stretch;
  }
}
.sponsor-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 0;
  padding: 1.15rem 1.2rem 1.25rem;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.sponsor-major { background: linear-gradient(180deg, var(--gold-soft), var(--surface) 42%); }
.sponsor-major-link, .sponsor-lines a {
  color: inherit;
  text-decoration: none;
}
.sponsor-major-link {
  display: grid;
  gap: 0.65rem;
  justify-items: start;
  margin: 0.4rem 0 0.8rem;
}
.sponsor-logo-major {
  background: #fff;
  border-radius: 12px;
  object-fit: contain;
}
.sponsor-name { font-weight: 700; }
.sponsor-lines { list-style: none; margin: 0.4rem 0 0.8rem; padding: 0; }
.sponsor-lines li { border-bottom: 1px solid var(--line); padding: 0.55rem 0; }
.sponsor-lines a { align-items: center; display: flex; gap: 0.85rem; }
.sponsor-logo {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  height: 2.8rem;
  object-fit: contain;
  width: 5.2rem;
}
.sponsor-logo.sponsor-logo-major {
  height: auto;
  max-height: 220px;
  padding: 0.75rem;
  width: min(100%, 28rem);
}
.sponsor-offer {
  display: grid;
  gap: 0.55rem;
  margin-top: auto;
  padding-top: 0.9rem;
}
.sponsor-offer .btn { justify-self: start; }
.sponsor-price-row {
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem 0.7rem;
  margin: 0;
}
.sponsor-price {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.4vw, 2.15rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--night);
  margin: 0;
}
.sponsor-price-row:has(.chip-sale) .sponsor-price { color: var(--sale); }
.sponsor-price-row .price-was {
  font-size: 1.05rem;
  margin-left: 0;
  text-decoration: line-through;
}
.sponsor-save { color: var(--sale); font-weight: 700; font-size: 0.92rem; }
.sponsor-buy { display: grid; gap: 0.15rem; margin-top: 0.35rem; }
.sponsor-buy .field { margin-bottom: 0.7rem; }
dialog.shop-dialog .sponsor-price-row { margin-bottom: 0.35rem; }
.sponsor-renew { border: 1px solid var(--line); border-radius: var(--radius-sm); margin: 0 0 1rem; padding: 0.8rem 1rem; }
.sponsor-renew label { display: block; margin: 0.35rem 0; }
.sponsor-footer {
  align-items: center;
  border-top: 1px solid rgba(240, 193, 75, 0.4);
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1rem;
  margin-bottom: 1.2rem;
  padding-top: 1rem;
}
.sponsor-footer-cta { margin-left: auto; }
.footer .sponsor-footer .btn-ghost {
  border-color: var(--gold);
  color: var(--gold-soft);
}
.footer .sponsor-footer .btn-ghost:hover {
  background: rgba(240, 193, 75, 0.16);
  color: #fff;
}
.sponsor-footer img {
  background: #fff;
  border-radius: 8px;
  height: 2.5rem;
  max-width: 7.5rem;
  object-fit: contain;
  padding: 0.2rem 0.35rem;
}
.sponsor-buy-compact { flex: 1 1 16rem; }
@media (max-width: 640px) {
  .sponsor-logo.sponsor-logo-major { max-height: 140px; }
  .sponsor-lines a { align-items: flex-start; }
  .sponsor-footer-cta { margin-left: 0; width: 100%; }
}

/* —— Feedback & forms —— */
.flash { list-style: none; padding: 0; margin: 0.9rem auto; width: min(var(--max), calc(100% - 2rem)); }
.flash li { padding: 0.75rem 1rem; border-radius: 12px; margin-bottom: 0.4rem; }
.flash .success { background: var(--accent-soft); }
.flash .error { background: var(--sale-soft); }
.flash .info { background: var(--gold-soft); }

.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 650; margin-bottom: 0.35rem; }
.field-tight { margin: 0; }
.field-float { position: relative; }
.field-float > label {
  position: absolute;
  top: 0.92rem;
  left: 0.85rem;
  z-index: 1;
  margin: 0;
  max-width: calc(100% - 1.6rem);
  color: var(--muted);
  font-weight: 550;
  line-height: 1.2;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: top 0.12s ease, font-size 0.12s ease, color 0.12s ease;
}
.field-float:has(.password-line) > label { max-width: calc(100% - 5.2rem); }
.field-float > input,
.field-float > textarea,
.field-float > select,
.field-float > .password-line input {
  padding-top: 1.25rem;
  padding-bottom: 0.4rem;
}
.field-float > textarea { min-height: 6.5rem; }
.field-float:has(input:focus) > label,
.field-float:has(textarea:focus) > label,
.field-float:has(input:not(:placeholder-shown)) > label,
.field-float:has(textarea:not(:placeholder-shown)) > label,
.field-float.field-raised > label,
.field-float:has(select) > label,
.field-float:has(input[type="date"]) > label,
.field-float:has(input[type="datetime-local"]) > label {
  top: 0.28rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-deep);
}
.field-float:focus-within > label { color: var(--accent); }
.field-rich > label { position: static; margin-bottom: 0.35rem; }
.rich-carousel-add { margin-top: 0.45rem; }
.req { color: var(--sale); font-weight: 500; font-size: 0.85rem; }
.hint { color: var(--muted); font-size: 0.88rem; margin: 0.25rem 0 0; }
.guide-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.45rem;
  padding: 0.16rem 0.65rem 0.16rem 0.22rem;
  border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--line));
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}
.guide-btn:hover,
.guide-btn:focus-visible { border-color: var(--accent); }
.guide-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.guide-mark {
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 750;
}
.guide-label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  margin-bottom: 0.35rem;
}
.guide-label label,
.guide-label h3,
[data-option-dialog] .field .guide-label label { margin: 0; }
.guide-label .guide-btn { margin-top: 0; }
.field > .guide-btn + .hint { margin-top: 0.35rem; }
input:not([type]),
input[type="text"], input[type="email"], input[type="password"], input[type="number"],
input[type="tel"], input[type="url"], input[type="date"], input[type="datetime-local"],
input[type="search"], input[type="file"], select, textarea {
  width: 100%; max-width: 100%; padding: 0.75rem 0.9rem; border: 1px solid var(--line);
  border-radius: 12px; background-color: #fff; font: inherit; color: var(--ink);
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235b0fc8' d='M1.4.6 6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 0.7rem;
  padding-right: 2.3rem;
}
input[type="number"] { border-radius: 12px; }
input[type="file"] { padding: 0.45rem 0.5rem 0.45rem 0.45rem; }
input[type="file"]::file-selector-button {
  margin-right: 0.75rem;
  border: 0;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font: inherit;
  font-weight: 700;
  padding: 0.48rem 0.85rem;
  cursor: pointer;
}
input[type="file"]::file-selector-button:hover { background: color-mix(in srgb, var(--accent-soft) 55%, #fff); }
input[type="search"] {
  -webkit-appearance: none;
  appearance: none;
}
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}
input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}
textarea { min-height: 8rem; border-radius: 12px; line-height: 1.45; }
input::placeholder, textarea::placeholder { color: #8a849c; }
.field-float > input,
.field-float > textarea,
.field-float > select,
.field-float > .password-line input {
  padding-top: 1.35rem;
  padding-bottom: 0.45rem;
}
.password-line { display: flex; gap: 0.5rem; align-items: center; }
.password-line input { flex: 1; min-width: 0; }
.text-btn {
  flex: 0 0 auto; min-height: 2.75rem; padding: 0.4rem 0.85rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--accent-deep); font: inherit; font-weight: 700;
}
.text-btn:hover { border-color: var(--accent); }
.form { max-width: 36rem; }
.form-wide { max-width: none; width: 100%; }
.listing-editor {
  width: min(46rem, 100%);
  margin-inline: auto;
}
.listing-editor .form { max-width: none; }
.form-card { max-width: 32rem; }
.form-card .form {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.35rem 1.4rem 1.5rem; box-shadow: var(--shadow);
}
.qty-input { max-width: 9.5rem; }
.shift-block { margin-bottom: 0.7rem; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--surface); }
th, td { text-align: left; padding: 0.65rem 0.75rem; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
th { background: var(--accent-soft); color: var(--accent-deep); font-weight: 650; }

.empty {
  background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 1.8rem; text-align: center;
}

.prose { max-width: 42rem; }
.prose p { margin-bottom: 0.9rem; }
.prose h2, .prose h3, .prose h4 {
  font-family: var(--font-display);
  color: var(--accent-deep);
  line-height: 1.2;
  margin: 1.25rem 0 0.4rem;
}
.prose h2 { font-size: 1.65rem; }
.prose h3 { font-size: 1.3rem; }
.prose h4 { font-size: 1.08rem; }
.prose ul, .prose ol { margin: 0 0 0.9rem; padding-left: 1.25rem; }
.prose li { margin: 0.22rem 0; }
.prose blockquote {
  margin: 0 0 0.9rem;
  padding: 0.75rem 1rem;
  border-left: 4px solid var(--gold);
  background: var(--gold-soft);
  border-radius: 0 12px 12px 0;
}
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 1.1rem 0; }
.prose img, .rich-carousel img, .prose figure img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}
.listing-layout .prose img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
}
.prose figure { margin: 0 0 1rem; }
.prose figcaption, .rich-carousel figcaption {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 0.35rem;
}
.prose table { margin-bottom: 1rem; }
.prose a { font-weight: 650; }
.jodit-container { width: 100% !important; max-width: 100% !important; border: 1px solid var(--line) !important; border-radius: 12px !important; background: #fff; }
.jodit-toolbar__box, .jodit-toolbar-editor-collection { background: var(--accent-soft) !important; }
.jodit-workplace, .jodit-wysiwyg { background: #fff !important; color: var(--ink) !important; }
.jodit-status-bar { display: none; }
.lede { font-size: 1.12rem; color: var(--muted); }

.ticket-pass {
  border: 1px solid var(--line);
  border-left: 8px solid var(--accent);
  border-radius: 16px;
  padding: 1rem 1.15rem 0.85rem;
  background:
    linear-gradient(180deg, var(--accent-soft) 0, #fff 2.4rem);
  margin: 0.85rem 0 1rem;
  box-shadow: var(--shadow);
}
.ticket-pass h2 { margin: 0.15rem 0 0.35rem; font-size: 1.25rem; }
.ticket-kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.ticket-download-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-top: 1px dashed var(--gold);
}
.ticket-download-row .hint { margin: 0.15rem 0 0; }
.ticket-names { margin: 0.4rem 0 0.8rem; }
.ticket-names .field[hidden] { display: none; }
@media (max-width: 640px) {
  .ticket-download-row { align-items: flex-start; flex-direction: column; }
}

.student-frame {
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 6px var(--gold-soft);
  background: var(--surface);
  border-radius: 16px;
}

.calendar { width: 100%; table-layout: fixed; }
.calendar th { text-align: center; font-size: 0.8rem; }
.calendar td {
  vertical-align: top; width: 14.28%; height: auto; min-height: 4.2rem;
  padding: 0.4rem; overflow: hidden;
}
.calendar td.is-out { opacity: 0.4; }
.calendar .cal-day { display: block; font-size: 0.78rem; color: var(--muted); margin-bottom: 0.2rem; }
.calendar .cal-ev {
  display: block; font-size: 0.72rem; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* —— Officer desk —— */
.desk-section { padding-top: 1.35rem; }
.desk-section > .wrap {
  width: min(1280px, calc(100% - 1.5rem));
}
.desk { display: grid; gap: 1.35rem; }
.desk-main { min-width: 0; order: -1; }
.desk-main > h1,
.desk-head h1 {
  font-size: clamp(1.85rem, 3.4vw, 2.45rem);
}
.desk-kicker {
  margin: 0 0 0.28rem; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent);
}
.desk-kicker.gold { color: var(--gold); }
.desk-nav {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 0.45rem 0.45rem 0.65rem;
  height: fit-content; box-shadow: var(--shadow);
}
.desk-nav-label {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
  padding: 0.7rem 0.75rem 0.2rem; margin: 0.15rem 0 0;
}
.desk-nav-label:first-child { padding-top: 0.45rem; margin-top: 0; }
.desk-nav a {
  display: block; padding: 0.5rem 0.75rem; text-decoration: none;
  border-radius: 10px; color: var(--ink); font-weight: 600; font-size: 0.95rem;
}
.desk-nav a[aria-current="page"] {
  background: var(--accent-soft); color: var(--accent-deep);
  box-shadow: inset 3px 0 0 var(--accent);
}
.desk-nav a:hover { background: var(--accent-soft); color: var(--accent); }

.desk-head {
  display: flex; flex-wrap: wrap; gap: 0.85rem 1.2rem;
  justify-content: space-between; align-items: flex-end;
  margin-bottom: 1.05rem;
}
.desk-head h1 { margin-bottom: 0.25rem; }
.desk-head .lede { margin: 0; max-width: 40rem; }
.desk-head-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.desk-count { color: var(--muted); font-size: 0.9rem; margin: 0 0 0.75rem; font-weight: 600; }
.desk-filters {
  display: grid; gap: 0.55rem; align-items: end;
  grid-template-columns: 1fr;
  margin-bottom: 0.85rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 0.9rem 1rem;
  box-shadow: var(--shadow);
}
.desk-filters .field { margin: 0; min-width: 10rem; }
.desk-filters label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.desk-filters input[type="search"],
.desk-filters input[type="text"],
.desk-filters select { min-height: 2.6rem; }
.desk-filters .btn { min-height: 2.6rem; width: 100%; background: var(--accent); color: #fff; border-color: transparent; }
.desk-filters .btn:hover { background: var(--accent-deep); color: #fff; }
.desk-table-desktop {
  display: none;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  overflow-x: auto;
  max-width: 100%;
}
.desk-table { margin: 0; }
.desk-table th { white-space: nowrap; font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; }
.desk-table td { vertical-align: middle; padding: 0.85rem 0.9rem; }
.desk-table tbody tr { transition: background 0.15s ease; }
.desk-table tbody tr:hover { background: var(--accent-soft); }
.desk-table .meta { color: var(--muted); font-size: 0.86rem; margin: 0.15rem 0 0; }
.desk-table .num { font-variant-numeric: tabular-nums; font-weight: 700; text-align: right; white-space: nowrap; }
.desk-table th.num { text-align: right; }
.desk-card-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 0.65rem; }
.desk-card-list .panel {
  margin: 0; box-shadow: var(--shadow); border-top: 3px solid var(--accent);
}
.desk-card-list h3 { margin: 0 0 0.25rem; font-size: 1.05rem; }
.desk-card-list h3 a { text-decoration: none; }
.pill {
  display: inline-flex; align-items: center; border-radius: 999px;
  padding: 0.18rem 0.62rem; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.03em; border: 1px solid transparent; white-space: nowrap;
}
.pill-ok { background: var(--accent-soft); color: var(--accent-deep); border-color: color-mix(in srgb, var(--accent) 22%, var(--line)); }
.pill-warn { background: var(--gold-soft); color: var(--night); border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); }
.pill-muted { background: #f3f0fa; color: var(--muted); }
.pill-sale { background: var(--sale-soft); color: var(--sale); }
.empty {
  background: var(--surface); border: 1px dashed color-mix(in srgb, var(--accent) 35%, var(--line));
  border-radius: var(--radius); padding: 2.2rem 1.4rem; text-align: center;
  box-shadow: var(--shadow);
}
.empty-title { font-weight: 650; margin-bottom: 0.5rem; font-family: var(--font-display); font-size: 1.2rem; }
.desk-board { display: grid; gap: 1rem; }
.desk-queue.panel {
  margin: 0; overflow: hidden; box-shadow: var(--shadow);
  border-top: 3px solid var(--accent);
}
.desk-queue-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 0.75rem; padding: 0.95rem 1.1rem 0.7rem;
  background: linear-gradient(180deg, var(--accent-soft), transparent);
}
.desk-queue-head h2 { margin: 0; font-size: 1.2rem; }
.desk-queue-head a { font-weight: 650; text-decoration: none; font-size: 0.88rem; }
.desk-queue-list { list-style: none; padding: 0 0.55rem 0.55rem; margin: 0; }
.desk-queue-list li { border-bottom: 1px solid var(--line); }
.desk-queue-list li:last-child { border-bottom: 0; }
.desk-queue-list a,
.desk-queue-list li {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.7rem 1rem; text-decoration: none; color: inherit;
}
.desk-queue-list a { padding: 0.7rem 0.55rem; border-radius: 12px; }
.desk-queue-list a:hover { background: var(--accent-soft); color: inherit; }
.desk-queue-body { display: flex; flex-direction: column; gap: 0.12rem; min-width: 0; flex: 1; }
.desk-queue-title { font-weight: 700; }
.desk-queue-meta { color: var(--muted); font-size: 0.86rem; }
.desk-queue-aside { display: flex; flex-direction: column; align-items: flex-end; gap: 0.28rem; flex-shrink: 0; }
.desk-money { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--night); }
.desk-empty-inline { margin: 0; padding: 0.4rem 1.15rem 1.05rem; color: var(--muted); }
.thermo-sm { height: 0.45rem; margin: 0.35rem 0 0.15rem; max-width: 12rem; }
.order-summary {
  display: grid; gap: 0.65rem; grid-template-columns: 1fr 1fr;
  margin-bottom: 1.2rem;
}
.order-summary .stat { margin: 0; }
.order-console { display: grid; gap: 1rem; }
.order-line-actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1.1rem; margin-top: 0.7rem; align-items: flex-end; }
.order-line-actions .form { max-width: 18rem; margin: 0; }
.fieldset-block {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.15rem 1.25rem; margin-bottom: 1rem;
  box-shadow: var(--shadow);
}
.fieldset-block h2 { margin-top: 0; font-size: 1.15rem; }
.people-grid { display: grid; gap: 0.9rem; }
.media-tile p { margin: 0.4rem 0 0; font-size: 0.88rem; }
.shift-signups { color: var(--muted); font-size: 0.9rem; }

.stat-grid {
  display: grid; gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
}
.stat {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 0.95rem 1.05rem 1rem;
  box-shadow: var(--shadow); border-top: 3px solid var(--accent);
  min-width: 0;
}
.stat.is-alert { border-top-color: var(--gold); }
.stat-kicker {
  display: block; font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 0.15rem;
}
.stat b { display: block; font-size: 2.05rem; color: var(--accent-deep); font-family: var(--font-display); line-height: 1; }
.stat-label { color: var(--muted); font-size: 0.88rem; }

code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; white-space: normal; overflow-wrap: anywhere; font-size: 0.92em; }
.assistant-launch {
  background:
    radial-gradient(900px 240px at 100% 0%, rgba(240, 193, 75, 0.18), transparent 50%),
    linear-gradient(155deg, var(--night) 0%, var(--accent-deep) 72%);
  color: #fff; border: 0;
  border-radius: var(--radius); padding: 1.25rem 1.3rem 1.35rem;
  box-shadow: var(--shadow); margin-bottom: 1.2rem;
  border-top: 3px solid var(--gold);
}
.assistant-launch h2 { color: #fff; margin-bottom: 0.35rem; }
.assistant-launch p { color: rgba(255,255,255,0.84); }
.assistant-launch .hint, .assistant-launch .hint a { color: var(--gold-soft); }
.assistant-composer textarea {
  min-height: 4.6rem; margin-bottom: 0.7rem;
  background: rgba(255,255,255,0.97);
}
.assistant-launch .btn-gold { min-width: 11rem; }
.assistant-past { margin: 0.65rem 0 0; }
.assistant-past a { color: var(--gold); font-weight: 650; text-decoration: none; }
.assistant-past a:hover { color: #fff; }
.assistant-layout { display: grid; gap: 1.2rem; }
.assistant-threads a { display: block; padding: 0.45rem 0.6rem; text-decoration: none; border-radius: 8px; }
.assistant-threads a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-deep); }
.assistant-log { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 0.65rem; }
.assistant-msg { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0.75rem 0.9rem; }
.assistant-msg p { margin: 0; }
.assistant-msg.is-user { border-left: 3px solid var(--gold); }
.assistant-msg.is-assistant { border-left: 3px solid var(--accent); }
.assistant-msg.is-tool, .assistant-msg.is-tool-result { font-size: 0.92rem; color: var(--muted); }
.assistant-blocked {
  background: var(--sale-soft); border: 1px solid color-mix(in srgb, var(--sale) 35%, var(--line));
  border-radius: 12px; padding: 0.85rem 1rem; margin: 0.4rem 0 1rem;
}
.assistant-blocked strong { color: var(--sale); display: block; margin-bottom: 0.3rem; }
.assistant-confirm {
  background: var(--gold-soft); border-radius: 12px; padding: 0.9rem 1rem; margin-bottom: 1rem;
}
@media (min-width: 720px) {
  .assistant-layout { grid-template-columns: 200px 1fr; }
}

.guide { max-width: 48rem; }
.guide .lede { margin-bottom: 1.2rem; }
.guide h2[id] { scroll-margin-top: 5.5rem; padding-top: 0.35rem; }
.guide h3 { margin-top: 1.15rem; }
.guide ol, .guide ul { margin: 0 0 1rem; padding-left: 1.3rem; }
.guide li { margin-bottom: 0.35rem; }
.guide .table-wrap { margin: 0 0 1rem; }

.banner-dev {
  background: var(--gold-soft); color: var(--night); padding: 0.75rem 1rem;
  border-radius: 12px; margin-bottom: 1rem;
}

/* Site announcement. Tones share one layout so a closure and a fundraiser feel related. */
.site-banner { border-bottom: 1px solid var(--line); }
.site-banner [hidden] { display: none !important; }
.site-banner-inner {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 0.85rem;
  row-gap: 0.55rem;
  align-items: center;
  padding: 0.85rem 0;
}
.site-banner-mark {
  width: 2.55rem; height: 2.55rem; border-radius: 999px;
  display: grid; place-items: center;
}
.site-banner-mark svg { width: 1.28rem; height: 1.28rem; display: none; }
.site-banner-info .mark-info,
.site-banner-notice .mark-notice,
.site-banner-urgent .mark-urgent,
.site-banner-celebrate .mark-celebrate { display: block; }
.site-banner-copy { min-width: 0; }
.site-banner-kicker {
  margin: 0 0 0.12rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase;
}
.site-banner-message { font-size: 1rem; line-height: 1.45; }
.site-banner-message p { margin: 0; }
.site-banner-message p + p { margin-top: 0.3rem; }
.site-banner-message ul, .site-banner-message ol { margin: 0.25rem 0 0; padding-left: 1.15rem; }
.site-banner-message a { font-weight: 700; }
.site-banner-actions {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; gap: 0.45rem 0.85rem; align-items: center;
}
.site-banner-actions:not(:has(a:not([hidden]), button:not([hidden]))) { display: none; }
.site-banner-cta {
  min-height: 2.35rem; padding: 0.32rem 0.95rem; border-radius: 999px;
  font-size: 0.92rem;
}
.site-banner-dismiss {
  border: 0; background: transparent; color: inherit;
  font: inherit; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: underline; text-underline-offset: 3px;
  cursor: pointer; padding: 0.35rem 0.1rem;
}
.site-banner-info {
  background: linear-gradient(90deg, var(--accent-soft), color-mix(in srgb, white 78%, var(--accent-soft)));
  color: var(--night);
}
.site-banner-info .site-banner-mark { background: var(--accent); color: #fff; }
.site-banner-info .site-banner-kicker,
.site-banner-info .site-banner-message a { color: var(--accent-deep); }
.site-banner-notice {
  background: linear-gradient(90deg, var(--gold-soft), #fffaf0);
  border-bottom-color: color-mix(in srgb, var(--gold) 65%, var(--line));
  color: var(--night);
}
.site-banner-notice .site-banner-mark { background: var(--night); color: var(--gold); }
.site-banner-notice .site-banner-kicker { color: var(--accent-deep); }
.site-banner-notice .site-banner-message a { color: var(--accent-deep); }
.site-banner-urgent {
  background: linear-gradient(90deg, var(--sale-soft), #fff8f5);
  border-bottom-color: color-mix(in srgb, var(--sale) 42%, var(--line));
  color: var(--night);
}
.site-banner-urgent .site-banner-mark { background: var(--sale); color: #fff; }
.site-banner-urgent .site-banner-kicker,
.site-banner-urgent .site-banner-message a { color: #8d2e18; }
.site-banner-urgent .site-banner-cta { background: var(--sale); color: #fff; box-shadow: none; }
.site-banner-urgent .site-banner-cta:hover { background: #8d2e18; color: #fff; }
.site-banner-celebrate {
  background:
    radial-gradient(480px 140px at 100% 0%, rgba(240, 193, 75, 0.32), transparent 62%),
    linear-gradient(100deg, var(--night), var(--accent-deep) 70%);
  color: #f7f3ff;
  border-bottom: 0;
}
.site-banner-celebrate .site-banner-mark { background: var(--gold); color: var(--night); }
.site-banner-celebrate .site-banner-kicker,
.site-banner-celebrate .site-banner-message a { color: var(--gold); }
.site-banner-celebrate .site-banner-cta { background: var(--gold); color: var(--night); box-shadow: none; }
.site-banner-celebrate .site-banner-cta:hover { background: var(--gold-soft); color: var(--night); }
.site-banner-celebrate .site-banner-dismiss { color: var(--gold-soft); }
.banner-preview-frame {
  margin: 0.35rem 0 1.15rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg);
}
.banner-preview-caption {
  margin: 0; padding: 0.45rem 0.95rem;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted);
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.banner-preview-frame .site-banner.is-preview { border-bottom: 0; }
.banner-status { margin: 0 0 0.75rem; font-weight: 650; }
.banner-tone-set, .banner-scope-set { border: 0; margin: 0.2rem 0 0.9rem; padding: 0; }
.banner-tone-set legend, .banner-scope-set legend { font-weight: 700; margin-bottom: 0.45rem; padding: 0; }
.banner-tone-choices { display: grid; gap: 0.55rem; }
.banner-tone-choice {
  display: grid; grid-template-columns: auto auto minmax(0, 1fr);
  gap: 0.65rem; align-items: center;
  border: 1px solid var(--line); border-radius: 14px;
  padding: 0.6rem 0.75rem; background: var(--surface); cursor: pointer;
}
.banner-tone-choice:has(input:checked) {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.banner-tone-choice .hint { display: inline; }
.banner-tone-swatch {
  width: 1.35rem; height: 1.35rem; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--night) 12%, transparent);
}
.banner-tone-swatch.is-info { background: var(--accent); }
.banner-tone-swatch.is-notice { background: var(--gold); }
.banner-tone-swatch.is-urgent { background: var(--sale); }
.banner-tone-swatch.is-celebrate { background: linear-gradient(135deg, var(--night), var(--accent-deep)); }
.choice-grid { display: grid; gap: 0.35rem 1rem; margin: 0; }
.choice-grid label { display: flex; gap: 0.5rem; align-items: flex-start; font-weight: 650; }
.field-pair { display: grid; gap: 0.15rem 1rem; }
@media (min-width: 720px) {
  .site-banner-inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 0.72rem 0;
  }
  .site-banner-actions { grid-column: auto; justify-content: flex-end; }
  .banner-tone-choices, .choice-grid, .field-pair { grid-template-columns: 1fr 1fr; }
}
.actions-row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.qty-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: end; margin: 0.4rem 0 0.85rem; }
.qty-row .field { width: 9.5rem; margin: 0; }
.qty-row input { max-width: none; width: 100%; }

.filters { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 1rem; }
.filters a, .filters button {
  border: 1px solid var(--line); background: var(--surface); border-radius: 999px;
  padding: 0.38rem 0.85rem; text-decoration: none; color: var(--ink); font: inherit;
  font-size: 0.9rem; font-weight: 650;
}
.filters a:hover, .filters a[aria-current="page"] {
  border-color: var(--accent); background: var(--accent); color: #fff;
}

.pdf-frame { width: 100%; min-height: 70vh; border: 1px solid var(--line); border-radius: 14px; }

@media (min-width: 720px) {
  .event-grid { grid-template-columns: 1fr 1fr; }
  .product-grid, .card-grid { grid-template-columns: 1fr 1fr; }
  .quick-nav { grid-template-columns: repeat(3, 1fr); }
  .hero-grid { grid-template-columns: 1.2fr 0.9fr; align-items: center; }
  .home-split { grid-template-columns: 1.1fr 0.9fr; }
  .campaign-card:not(.campaign-card-compact) { grid-template-columns: 1.15fr 0.85fr; align-items: stretch; }
  .desk { grid-template-columns: 220px 1fr; align-items: start; }
  .desk-main { order: 0; }
  .desk-nav { position: sticky; top: 5.1rem; }
  .desk-board { grid-template-columns: 1fr 1fr; }
  .order-summary { grid-template-columns: repeat(4, 1fr); }
  .people-grid { grid-template-columns: 1fr 1fr; }
  .desk-filters { grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); }
  .desk-filters .btn { width: auto; min-width: 6.5rem; }
  .desk-table-desktop { display: block; }
  .desk-card-list { display: none; }
  .assistant-launch {
    display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 1.2rem; align-items: start;
  }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
@media (min-width: 960px) {
  .nav-primary {
    display: flex; flex-wrap: wrap; gap: 0.1rem; align-items: center;
    flex: 1 0 100%; order: 3; padding: 0.28rem 0.35rem;
    margin: 0 0 0.4rem;
    border-radius: 14px;
    background: linear-gradient(90deg, var(--accent-soft), color-mix(in srgb, var(--gold-soft) 70%, white));
  }
  .nav-tools .menu-btn { display: none; }
  .nav-drawer, body.menu-open .nav-drawer, .nav-drawer.is-open { display: none; }
  .event-grid { grid-template-columns: 1fr 1fr 1fr; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .quick-nav { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .event-card, .product-card { transition: none; }
}

.store-filters {
  display: grid;
  gap: 0.85rem;
  margin: 0 0 0.85rem;
  padding: 0.9rem;
  min-width: 0;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--gold) 28%, white), transparent 2.6rem),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.store-filters > * { min-width: 0; }
.store-filters .field { margin: 0; }
.store-filters [data-page-status] {
  margin: 0;
  padding: 0.55rem 0.8rem;
  border-radius: 12px;
  background: var(--gold-soft);
  color: var(--night);
  font-weight: 650;
}
.store-filters label,
.store-price-label {
  display: block;
  margin: 0 0 0.32rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.store-search input {
  min-height: 3.05rem;
  padding-left: 2.85rem;
  border-radius: 999px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b0fc8' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M16 16l5 5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 1rem center;
  background-size: 1.1rem;
}
.store-search input::placeholder { color: var(--muted); }
.store-filters select {
  height: 2.9rem;
  appearance: none;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
  padding-right: 2.2rem;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%235b0fc8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 7.5 10 12.5 15 7.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 0.85rem;
}
.store-price-inputs {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  height: 2.9rem;
  padding: 0.2rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}
.store-price-inputs:focus-within {
  border-color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.store-price-currency,
.store-price-dash {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}
.store-price-inputs input {
  flex: 1 1 4.5rem;
  width: 4.5rem;
  max-width: 7.5rem;
  min-height: 2.15rem;
  padding: 0.3rem 0.15rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
}
.store-price-inputs input:focus {
  outline: none;
  border-color: transparent;
}
.store-price-inputs input::placeholder { color: var(--muted); }
.store-filter-controls {
  display: grid;
  gap: 0.75rem;
  grid-template-areas:
    "category"
    "price"
    "sort"
    "actions";
}
.store-filter-controls > :nth-child(1) { grid-area: category; }
.store-filter-controls > :nth-child(2) { grid-area: price; }
.store-filter-controls > :nth-child(3) { grid-area: sort; }
.store-filter-controls > :nth-child(4) { grid-area: actions; }
.store-filter-actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.55rem;
  align-items: center;
}
.store-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.9rem;
  padding: 0 0.35rem;
  color: var(--accent-deep);
  font-weight: 700;
  text-decoration: none;
}
.store-clear:hover { color: var(--accent); }
.store-filters .btn {
  width: 100%;
  height: 2.9rem;
  min-height: 2.9rem;
  border-radius: 12px;
}
.store-count {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}
@media (min-width: 720px) {
  .store-filter-controls {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "category sort"
      "price price"
      "actions actions";
  }
  .store-filter-actions { justify-self: end; width: min(100%, 22rem); }
  .store-price-inputs { max-width: 24rem; }
}
@media (min-width: 980px) {
  .store-filter-controls {
    grid-template-columns: minmax(9rem, 0.9fr) minmax(13.5rem, 1.15fr) minmax(9rem, 0.9fr) auto;
    grid-template-areas: "category price sort actions";
    align-items: end;
  }
  .store-filter-actions {
    display: flex;
    justify-self: end;
    width: auto;
  }
  .store-filters .btn { width: auto; min-width: 6.75rem; }
}
.listing-page { --max: 1320px; }
.listing-layout { display: grid; gap: 1.25rem; }
.listing-layout .prose,
.listing-layout .form { max-width: none; }
.gallery img { width: 100%; border-radius: 16px; background: var(--paper); }
.gallery img[data-gallery-main],
.rich-carousel img[data-carousel-main] {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
  background: var(--accent-soft);
}
.carousel-controls { display: flex; gap: 0.5rem; margin-top: 0.65rem; flex-wrap: wrap; }
.carousel-controls button {
  min-height: 2.75rem;
  padding: 0.4rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent-deep);
  font: inherit;
  font-weight: 750;
}
.carousel-controls button:hover { border-color: var(--accent); background: var(--accent-soft); }
.carousel-sources { display: none !important; }
.thumbs { display: flex; gap: 0.5rem; margin-top: 0.6rem; flex-wrap: wrap; }
.thumbs button {
  border: 1px solid var(--line); background: var(--surface); padding: 0; border-radius: 10px;
  width: 4.5rem; height: 4.5rem; overflow: hidden;
}
.thumbs button[aria-current="true"] { outline: 2px solid var(--accent); outline-offset: 2px; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.rich-carousel { margin: 0.4rem 0 1rem; }
.carousel-builder {
  display: grid; gap: 0.6rem; margin-top: 0.6rem;
}
.carousel-builder .pair { display: grid; gap: 0.4rem; }
@media (min-width: 720px) {
  .carousel-builder .pair { grid-template-columns: 1.4fr 1fr auto; align-items: end; }
}
.price-was { color: var(--muted, #5c5670); font-weight: 600; margin-left: 0.35rem; }
.price-row { display: flex; gap: 0.6rem; align-items: baseline; }
.image-row, .image-row-wrap { display: flex; gap: 0.85rem; flex-wrap: wrap; align-items: flex-start; }
.image-row img, .image-row-wrap img { width: 6.5rem; height: 6.5rem; object-fit: cover; border-radius: 14px; }
.image-row figure, .image-row-wrap figure { margin: 0; width: 6.5rem; }
.image-row figcaption, .image-row-wrap figcaption { font-size: 0.82rem; line-height: 1.35; max-width: none; margin-top: 0.35rem; }
.image-row > .hint { flex: 1 0 100%; margin: 0; }
.photo-gallery { margin: 0.4rem 0 1.1rem; }
.photo-gallery > h2 { margin: 0 0 0.3rem; font-size: 1.35rem; }
.photo-gallery > .hint { margin: 0 0 0.75rem; }
.photo-order-block > h2 { margin: 0 0 0.15rem; font-size: 1.35rem; }
.photo-order-block > .hint { margin-top: 0; }
.photo-removed img { opacity: 0.45; }
.photo-removed figcaption { color: #5b0fc8; }
.thumb-mini { width: 2.5rem; height: 2.5rem; object-fit: cover; border-radius: 8px; }
.cart-line { display: flex; gap: 0.9rem; align-items: flex-start; }
.cart-line > img { width: 4.5rem; height: 4.5rem; object-fit: cover; border-radius: 12px; flex: 0 0 auto; }
.variation-board {
  border: 1px solid var(--line); border-radius: 16px; padding: 1rem 1rem 0.4rem; margin: 1.2rem 0 0.4rem;
}
.variation-board legend { font-weight: 750; padding: 0 0.35rem; }
.option-row, .variation-grid { display: grid; gap: 0.75rem; }
.variation-editor { background: color-mix(in srgb, var(--surface) 88%, var(--accent-soft)); }
.variation-editor h3 { margin: 0.2rem 0 0.55rem; font-size: 1.05rem; }
.variation-options, .variation-combinations { margin: 0.35rem 0 0.8rem; }
.variation-options {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 0.85rem 0.95rem 0.4rem;
}
.variation-options h3 { margin-top: 0; }
.option-line {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.65rem; align-items: end;
  margin: 0.45rem 0;
}
.option-line .field { margin: 0; }
.variation-card {
  border: 1px solid var(--line); border-top: 3px solid #7c12f8; border-radius: 14px;
  padding: 0; margin: 0.75rem 0; background: var(--surface); overflow: hidden;
}
.variation-summary {
  width: 100%; display: flex; align-items: center; gap: 0.75rem;
  padding: 0.85rem 0.95rem; border: 0; background: transparent; color: inherit;
  font: inherit; text-align: left; cursor: pointer;
}
.variation-summary:hover,
.variation-summary:focus-visible {
  background: color-mix(in srgb, var(--accent-soft) 70%, var(--surface));
}
.variation-summary img {
  width: 2.75rem; height: 2.75rem; object-fit: cover; border-radius: 10px; flex: 0 0 auto;
}
.variation-summary-copy { min-width: 0; flex: 1 1 auto; }
.variation-summary strong { display: block; font-size: 1rem; }
.variation-summary .hint { display: block; margin: 0.15rem 0 0; font-variant-numeric: tabular-nums; }
.variation-summary-action {
  flex: 0 0 auto; font-weight: 750; color: var(--accent-deep);
  border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--line));
  background: #fff; border-radius: 999px; padding: 0.28rem 0.75rem; font-size: 0.86rem;
}
[data-variation-empty] {
  margin: 0.15rem 0 0.85rem; padding: 0.95rem 1rem; text-align: center;
  border: 1px dashed var(--line); border-radius: 14px; background: #fff;
}
.variation-card-head {
  display: flex; justify-content: space-between; gap: 0.75rem; align-items: center; margin-bottom: 0.7rem;
}
.variation-card-head h3 { margin: 0; font-size: 1rem; }
.variation-primary {
  display: grid; gap: 0.8rem; grid-template-columns: 1fr;
  padding: 0.95rem; border-radius: 14px;
  background: color-mix(in srgb, var(--gold-soft) 62%, #fff);
  border: 1px solid color-mix(in srgb, var(--gold) 48%, var(--line));
}
.variation-primary .field,
.variation-secondary .field { margin: 0; }
[data-variation-values] {
  display: grid; gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
}
[data-variation-values][hidden] { display: none !important; }
.option-pair { display: grid; gap: 0.75rem; }
.variation-secondary {
  margin-top: 0.9rem; border: 0; padding: 0;
  display: grid; gap: 0.9rem;
}
.option-block {
  display: grid; gap: 0.8rem;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 0.95rem 1rem 1rem;
}
.option-block h3 { margin: 0; font-size: 1.08rem; }
[data-option-dialog] > h2 { margin: 0 0 0.85rem; line-height: 1.2; }
[data-option-dialog] .field label {
  font-size: 0.84rem; font-weight: 700; color: var(--accent-deep); margin-bottom: 0.32rem;
}
[data-option-dialog] input:not([type="hidden"]):not([type="file"]),
[data-option-dialog] select { min-height: 3rem; }
[data-option-dialog] textarea {
  min-height: 7.25rem; resize: vertical; padding: 0.8rem 0.9rem;
}
.money-input {
  display: flex; align-items: center; gap: 0.15rem;
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
  padding: 0 0.85rem; min-height: 3rem;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.money-input:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}
.money-input span { color: var(--muted); font-weight: 750; }
.money-input input {
  flex: 1 1 auto; width: auto; min-width: 0;
  border: 0; background: transparent; box-shadow: none; border-radius: 0;
  padding-left: 0.15rem; padding-right: 0; min-height: 2.8rem;
}
.money-input input:not([type="checkbox"]):focus,
.money-input input:not([type="checkbox"]):focus-visible {
  outline: none; border-color: transparent; box-shadow: none;
}
.option-photo {
  display: grid; gap: 0.85rem; align-items: start;
}
.option-photo img,
.option-photo-empty {
  width: 100%; height: 6.75rem; border-radius: 16px; object-fit: cover;
}
.option-photo-empty {
  display: grid; place-items: center; text-align: center; padding: 0.75rem;
  border: 1px dashed color-mix(in srgb, var(--accent) 40%, var(--line));
  background: var(--accent-soft); color: var(--accent-deep);
  font-size: 0.84rem; font-weight: 700; line-height: 1.35;
}
.option-photo-fields { display: grid; gap: 0.75rem; }
[data-option-dialog] .download-list {
  margin: 0 0 0.55rem; padding: 0.55rem 0.8rem;
  background: var(--accent-soft); border-radius: 12px;
}
[data-option-dialog] .download-list li { font-weight: 650; }
@media (min-width: 560px) {
  .option-pair { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 640px) {
  .option-photo { grid-template-columns: 7.5rem minmax(0, 1fr); }
  .option-photo img,
  .option-photo-empty { width: 7.5rem; height: 7.5rem; }
}
.variation-picker .field { margin-bottom: 0.75rem; }
[data-variation-copy] {
  margin: 0.55rem 0 0;
  padding: 0.65rem 0.8rem;
  background: var(--gold-soft);
  border-left: 3px solid var(--gold);
  border-radius: 12px;
  line-height: 1.45;
}
.group-line {
  display: flex; justify-content: space-between; gap: 1rem; align-items: center; flex-wrap: wrap;
  border: 1px solid var(--line); border-left: 3px solid #7c12f8; border-radius: 14px;
  padding: 0.85rem 1rem; margin: 0.75rem 0; background: var(--surface, #fff);
}
.group-line .field { margin: 0; width: 6.5rem; }
.group-line.is-unavailable { opacity: 0.72; }
.bundle-line {
  border: 1px solid var(--line); border-left: 3px solid #7c12f8; border-radius: 14px;
  padding: 0.85rem 1rem 0.2rem; margin: 0.75rem 0; background: var(--surface, #fff);
}
.bundle-line legend { font-weight: 750; padding: 0 0.3rem; }
.bundle-part { margin: 0.15rem 0 0.15rem 0.15rem; color: var(--muted, #5c5670); }
.offer-facts {
  margin: 0.4rem 0 1.1rem;
  padding: 0.95rem 1rem 0.8rem;
  border: 1px solid var(--line);
  border-left: 3px solid #7c12f8;
  border-radius: 14px;
  background: var(--surface, #fff);
}
.offer-facts h3 { margin: 0.85rem 0 0.25rem; font-size: 1rem; }
.offer-facts ul { margin: 0.35rem 0 0; padding-left: 1.15rem; }
.offer-facts li { margin: 0.28rem 0; }
.listing-page .price-row { align-items: center; margin: 0.2rem 0 0.9rem; flex-wrap: wrap; }
.download-list { list-style: none; padding: 0; margin: 0.6rem 0 1rem; }
.download-list a { font-weight: 700; }
[data-kind-panel][hidden] { display: none !important; }
.variation-combo.is-hidden,
[data-variation-combo].is-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
@media (min-width: 720px) {
  .option-row { grid-template-columns: 1fr 1fr; }
  .variation-grid { grid-template-columns: 1fr 1fr; }
}
.check-row { display: flex; gap: 0.4rem; align-items: center; margin: 0.25rem 0; }
.temp-password { font-weight: 750; letter-spacing: 0.02em; }
.listing-placeholder {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid color-mix(in srgb, var(--gold) 62%, var(--line));
  background:
    radial-gradient(90% 55% at 50% 0%, rgba(240, 193, 75, 0.42), transparent 58%),
    radial-gradient(70% 50% at 100% 100%, rgba(124, 18, 248, 0.14), transparent 55%),
    linear-gradient(180deg, #fcfbff 0%, #f4efff 100%);
  color: var(--accent-deep);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 18px 40px rgba(91, 15, 200, 0.08);
}
.listing-placeholder::before {
  content: "";
  position: absolute;
  inset: 0.85rem;
  border-radius: 16px;
  border: 1px dashed color-mix(in srgb, var(--accent) 32%, transparent);
  pointer-events: none;
}
.listing-placeholder-mark {
  position: relative;
  width: 4.75rem;
  height: 4.75rem;
  border-radius: 22px;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--accent);
  box-shadow: 0 14px 30px rgba(20, 8, 44, 0.08);
}
.listing-placeholder-mark svg { width: 1.75rem; height: 1.75rem; }
.listing-placeholder-caption {
  position: relative;
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.card-media:has(.listing-placeholder) {
  display: grid;
  background: transparent;
}
.card-media .listing-placeholder {
  height: 100%;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.card-media .listing-placeholder::before { inset: 0.65rem; border-radius: 12px; }
.card-media .listing-placeholder-mark { width: 3.35rem; height: 3.35rem; border-radius: 16px; }
.card-media .listing-placeholder-caption { font-size: 0.66rem; letter-spacing: 0.11em; }
.student-grid .pitch {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.student-listing .gallery img[data-gallery-main] {
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(91, 15, 200, 0.08);
  background: var(--surface);
}
.student-listing .crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.student-listing .crumb a { font-weight: 700; text-decoration: none; }
.student-listing .crumb [aria-hidden="true"] { color: color-mix(in srgb, var(--muted) 70%, white); }
.student-listing .buy-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: 22px;
  padding: 1.35rem 1.35rem 1.2rem;
  box-shadow: var(--shadow);
}
.buy-box h1 { margin: 0 0 0.35rem; font-size: clamp(1.85rem, 3vw, 2.55rem); }
.listing-brand {
  margin: 0 0 0.45rem;
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.listing-seller { margin: 0 0 1rem; color: var(--muted); }
.seller-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: fit-content;
  max-width: 100%;
  margin: 0.2rem 0 1.05rem;
  padding: 0.4rem 0.45rem 0.4rem 0.4rem;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(180deg, #fff 0%, var(--accent-soft) 140%);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.seller-row:hover {
  color: inherit;
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
  box-shadow: 0 8px 22px rgba(91, 15, 200, 0.12);
}
.seller-mark {
  flex: 0 0 auto;
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.05rem;
  line-height: 1;
  box-shadow: inset 0 0 0 2px var(--gold);
}
.seller-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
}
.seller-name {
  font-weight: 750;
  color: var(--night);
  letter-spacing: -0.02em;
}
.seller-meta {
  color: var(--muted);
  font-size: 0.84rem;
}
.seller-go {
  margin-left: auto;
  width: 1.9rem;
  height: 1.9rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent-deep);
  border: 1px solid var(--line);
}
.seller-row:hover .seller-go {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.student-listing .price-row { align-items: center; margin: 0.15rem 0 0.9rem; flex-wrap: wrap; }
.listing-price {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.55rem);
  font-weight: 650;
  color: var(--night);
  letter-spacing: -0.03em;
  line-height: 1;
}
.listing-price.is-note {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.student-listing .price-row:has(.chip-sale) .listing-price { color: var(--sale); }
.student-listing .price-was { font-size: 1.05rem; }
.listing-excerpt { font-size: 1.05rem; color: var(--ink); max-width: 38rem; }
.student-listing .qty-row { margin: 0.2rem 0 0.85rem; }
.student-listing .qty-row .field { width: 7.5rem; }
.student-listing .qty-row .field label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.student-listing .qty-row input { font-weight: 700; border-radius: 12px; text-align: center; }
.student-listing .buy-box .btn-primary {
  min-height: 3.2rem;
  border-radius: 14px;
  font-size: 1.02rem;
}
.stock-line { margin: 0 0 0.85rem; font-weight: 700; }
.stock-line.is-low, .stock-line.is-out { color: var(--sale); }
.buy-trust {
  margin: 1rem 0 0;
  padding: 0.85rem 0.95rem;
  background: var(--gold-soft);
  border: 1px solid color-mix(in srgb, var(--gold) 55%, var(--line));
  border-radius: 14px;
  color: var(--night);
}
.preview-banner {
  margin: 0 0 1rem;
  padding: 0.8rem 1rem;
  background: var(--gold-soft);
  border: 1px solid color-mix(in srgb, var(--gold) 55%, var(--line));
  border-radius: 14px;
  font-weight: 650;
}
.staff-shortcuts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.55rem;
  margin: 0 0 1.15rem;
  padding: 0.55rem 0.7rem;
  background: color-mix(in srgb, var(--accent) 7%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  border-radius: 14px;
}
.staff-shortcuts-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-right: 0.15rem;
}
.staff-shortcuts a {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--line));
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
}
.staff-shortcuts a:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}
.staff-shelf {
  margin-top: 2rem;
  padding: 0.35rem 1rem 1.15rem;
  border: 1px dashed color-mix(in srgb, var(--accent) 42%, var(--line));
  border-radius: 18px;
  background: color-mix(in srgb, var(--accent) 5%, var(--surface));
}
.staff-shelf .hint { margin: 0 0 0.85rem; }
.listing-details {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.listing-details h2 { margin: 0 0 0.75rem; }
.listing-details .prose { max-width: 40rem; }
.product-facts {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0.25rem 1.1rem;
  box-shadow: var(--shadow);
}
.product-facts div {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}
.product-facts div:last-child { border-bottom: 0; }
.product-facts dt { margin: 0; color: var(--muted); font-weight: 700; }
.product-facts dd { margin: 0; }
.product-facts .chip { margin: 0 0.3rem 0.3rem 0; }
.listing-suggestions { margin-top: 2.75rem; }
.listing-suggestions .section-head { margin-bottom: 1rem; }
.listing-suggestions .section-head h2 { margin: 0; }
.listing-suggestions .product-grid { grid-template-columns: 1fr; }
.storefront-page .crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.storefront-page .crumb a { font-weight: 700; text-decoration: none; }
.storefront-page .crumb [aria-hidden="true"] { color: color-mix(in srgb, var(--muted) 70%, white); }
.shop-hero {
  position: relative;
  margin: 0 0 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.shop-hero-band {
  height: 8.75rem;
  border-bottom: 6px solid var(--gold);
  background:
    radial-gradient(460px 190px at 8% -10%, rgba(240, 193, 75, 0.72), transparent 58%),
    radial-gradient(380px 180px at 100% 0%, rgba(255, 255, 255, 0.18), transparent 52%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0 2px, transparent 2px 14px),
    linear-gradient(120deg, #3d0a96 0%, #7c12f8 52%, #5b0fc8 100%);
}
.shop-hero-body {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 1.1rem;
  padding: 0 1.4rem 1.35rem;
}
.shop-mark {
  width: 5.5rem;
  height: 5.5rem;
  margin-top: -2.75rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 2.35rem;
  line-height: 1;
  border: 4px solid var(--surface);
  box-shadow: inset 0 0 0 3px var(--gold), 0 12px 24px rgba(20, 8, 44, 0.16);
}
.shop-hero-copy { min-width: 0; padding-top: 0.85rem; }
.shop-kicker {
  margin: 0 0 0.3rem;
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.shop-hero h1 { margin: 0 0 0.2rem; font-size: clamp(2rem, 4vw, 3.05rem); }
.shop-keeper { margin: 0; font-weight: 750; color: var(--night); }
.shop-about {
  margin: 0.75rem 0 0;
  max-width: 40rem;
  font-size: 1.12rem;
  color: var(--ink);
}
.shop-count {
  grid-column: 2;
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-weight: 650;
}
.shop-shelf { margin-top: 0.4rem; }
.shop-shelf .section-head h2 { margin: 0; }
.card-preview {
  display: grid;
  gap: 1.15rem;
  margin: 0 0 2rem;
  padding: 1.15rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.card-preview h2 { margin: 0 0 0.3rem; font-size: clamp(1.45rem, 2vw, 1.85rem); }
.card-preview-copy p:last-of-type { margin-bottom: 0; }
.card-preview-actions { display: flex; flex-wrap: wrap; gap: 0.55rem; margin: 0.95rem 0 0; }
.card-preview-sheet {
  margin: 0;
  padding: 0.85rem;
  background:
    radial-gradient(240px 120px at 0% 0%, rgba(240, 193, 75, 0.28), transparent 70%),
    var(--bg);
  border-radius: 16px;
}
.card-preview-sheet img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(20, 8, 44, 0.16);
}
.card-preview-sheet figcaption,
.card-stage figcaption {
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.card-preview-pair { display: grid; gap: 0.85rem; }
.storefront-editor { margin: 0 0 1.4rem; }
.storefront-editor h2 { margin-top: 0; }
.card-creator {
  display: grid;
  gap: 1.25rem;
  margin-top: 0.4rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}
.card-creator h3 { margin: 0 0 0.35rem; }
.card-choices,
.card-themes {
  border: 0;
  margin: 0.85rem 0 0;
  padding: 0;
}
.card-choices legend,
.card-themes legend {
  padding: 0;
  margin: 0 0 0.45rem;
  font-weight: 750;
}
.card-choice {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin: 0 0 0.5rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  cursor: pointer;
}
.card-choice:has(input:checked) {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
  background: var(--accent-soft);
}
.card-choice input { margin-top: 0.25rem; }
.card-choice strong { display: block; color: var(--night); }
.card-choice .hint { margin: 0.15rem 0 0; }
.card-themes { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.card-theme {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.4rem 0.75rem 0.4rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  cursor: pointer;
}
.card-theme:has(input:checked) {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
  background: var(--accent-soft);
}
.card-swatch {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  border: 1px solid rgba(20, 8, 44, 0.28);
}
.card-choice:focus-within,
.card-theme:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.card-type-band { display: grid; gap: 0.65rem; }
.card-type-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1rem;
}
.card-type-head h2 { margin: 0; }
.card-font-note { margin: 0; min-height: 1.2em; }
.card-font-picker {
  border: 0;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.card-font-filters { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.card-font-filter {
  position: relative;
  display: inline-flex;
  margin: 0;
  padding: 0.38rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--night);
  font-weight: 750;
  cursor: pointer;
}
.card-font-filter:has(input:checked) {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.card-font-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8.75rem, 1fr));
  gap: 0.45rem;
}
.card-font-tile {
  display: none;
  position: relative;
  gap: 0.28rem;
  margin: 0;
  padding: 0.35rem 0.4rem 0.42rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  cursor: pointer;
  min-width: 0;
}
.card-font-picker:has(input[name="font_group"][value="serif"]:checked) .card-font-tile[data-font-group="serif"],
.card-font-picker:has(input[name="font_group"][value="sans"]:checked) .card-font-tile[data-font-group="sans"],
.card-font-picker:has(input[name="font_group"][value="mono"]:checked) .card-font-tile[data-font-group="mono"],
.card-font-picker:has(input[name="font_group"][value="display"]:checked) .card-font-tile[data-font-group="display"] {
  display: grid;
}
.card-font-tile:has(input:checked) {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
  background: var(--accent-soft);
}
.card-font-sample {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  background: #fff9f0;
  aspect-ratio: 328 / 70;
}
.card-font-specimen {
  display: block;
  width: calc(420 / 328 * 100%);
  max-width: none;
  height: auto;
  margin: calc(-14 / 328 * 100%) 0 0 calc(-4 / 328 * 100%);
}
.card-font-name {
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.2;
  color: var(--night);
}
.card-font-filter:focus-within,
.card-font-tile:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.card-stage { display: grid; gap: 0.7rem; }
.card-flip-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.card-flip-toolbar span {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.card-flip-button {
  margin: 0;
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(124, 18, 248, 0.45);
  border-radius: 999px;
  background: #fff;
  color: #5b0fc8;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}
.card-flip-button:hover { background: #f6f0ff; }
.card-flip { perspective: 1400px; }
.card-flip-inner {
  position: relative;
  aspect-ratio: 1050 / 600;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.4, 0.12, 0.2, 1);
}
.card-flip.is-back .card-flip-inner { transform: rotateY(180deg); }
.card-flip-face {
  position: absolute;
  inset: 0;
  transform: rotateY(0deg);
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.card-flip-face[data-flip-side="back"] { transform: rotateY(180deg); }
.card-flip-face .card-face {
  height: 100%;
  aspect-ratio: auto;
}
.card-print-sink {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .card-flip-inner { transition-duration: 0.01s; }
}
.card-face {
  --card-paper: #fff;
  --card-ink: #1c1730;
  --card-muted: #5d5770;
  --card-accent: #7c12f8;
  --card-rule: #f0c14b;
  --card-on: #fff;
  position: relative;
  width: 100%;
  aspect-ratio: 1050 / 600;
  overflow: hidden;
  border-radius: 14px;
  background: var(--card-paper);
  color: var(--card-ink);
  box-shadow: 0 16px 36px rgba(20, 8, 44, 0.16);
}
.card-face[data-theme="night"] {
  --card-paper: #14082c;
  --card-ink: #fff6d6;
  --card-muted: #d6c4e6;
  --card-accent: #5b0fc8;
  --card-rule: #f0c14b;
  --card-on: #fff6d6;
}
.card-face[data-theme="champagne"] {
  --card-paper: #fff9f0;
  --card-ink: #302010;
  --card-muted: #785a30;
  --card-accent: #f0c14b;
  --card-rule: #5b0fc8;
  --card-on: #302010;
}
.card-ornament {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}
.card-mat,
.card-edge,
.card-corner,
.card-mark {
  display: none;
  position: absolute;
  box-sizing: border-box;
  pointer-events: none;
}
.card-face[data-style="framed"][data-border="theme"] .card-mat {
  display: block;
  left: calc(32 / 1050 * 100%);
  right: calc(32 / 1050 * 100%);
  top: calc(32 / 600 * 100%);
  bottom: calc(32 / 600 * 100%);
  border: 2px solid var(--card-rule);
  background: transparent;
}
.card-face[data-style="ticket"] .card-corner {
  display: block;
  width: calc(24 / 1050 * 100%);
  height: calc(24 / 600 * 100%);
  border-color: var(--card-rule);
  border-style: solid;
  background: transparent;
}
.card-corner-nw { left: calc(18 / 1050 * 100%); top: calc(18 / 600 * 100%); border-width: 3px 0 0 3px; }
.card-corner-ne { right: calc(18 / 1050 * 100%); top: calc(18 / 600 * 100%); border-width: 3px 3px 0 0; }
.card-corner-sw { left: calc(18 / 1050 * 100%); bottom: calc(18 / 600 * 100%); border-width: 0 0 3px 3px; }
.card-corner-se { right: calc(18 / 1050 * 100%); bottom: calc(18 / 600 * 100%); border-width: 0 3px 3px 0; }
.card-face[data-style="crest"] .card-mark {
  display: flex;
  left: 50%;
  top: calc(18 / 600 * 100%);
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transform: translate(-50%, -50%);
}
.card-face[data-style="crest"][data-border="thick"] .card-mark {
  top: calc(28 / 600 * 100%);
}
.card-face[data-style="ticket"][data-border="thick"] .card-corner-nw {
  left: calc(22 / 1050 * 100%);
  top: calc(22 / 600 * 100%);
}
.card-face[data-style="ticket"][data-border="thick"] .card-corner-ne {
  right: calc(22 / 1050 * 100%);
  top: calc(22 / 600 * 100%);
}
.card-face[data-style="ticket"][data-border="thick"] .card-corner-sw {
  left: calc(22 / 1050 * 100%);
  bottom: calc(22 / 600 * 100%);
}
.card-face[data-style="ticket"][data-border="thick"] .card-corner-se {
  right: calc(22 / 1050 * 100%);
  bottom: calc(22 / 600 * 100%);
}
.card-mark-arm {
  display: block;
  width: 1.7rem;
  height: 2px;
  flex: none;
  background: var(--card-rule);
}
.card-mark-gem {
  display: block;
  width: 0.62rem;
  height: 0.62rem;
  flex: none;
  background: var(--card-rule);
  transform: rotate(45deg);
}
.card-face[data-border="thin"] .card-edge-outer,
.card-face[data-border="double"] .card-edge-outer,
.card-face[data-border="thick"] .card-edge-outer,
.card-face[data-border="double"] .card-edge-inner {
  display: block;
  border-style: solid;
  border-color: var(--card-rule);
  background: transparent;
}
.card-face[data-border="thin"] .card-edge-outer {
  left: calc(16 / 1050 * 100%);
  right: calc(16 / 1050 * 100%);
  top: calc(16 / 600 * 100%);
  bottom: calc(16 / 600 * 100%);
  border-width: 2px;
}
.card-face[data-border="double"] .card-edge-outer {
  left: calc(14 / 1050 * 100%);
  right: calc(14 / 1050 * 100%);
  top: calc(14 / 600 * 100%);
  bottom: calc(14 / 600 * 100%);
  border-width: 2px;
}
.card-face[data-border="double"] .card-edge-inner {
  left: calc(26 / 1050 * 100%);
  right: calc(26 / 1050 * 100%);
  top: calc(26 / 600 * 100%);
  bottom: calc(26 / 600 * 100%);
  border-width: 2px;
}
.card-face[data-border="thick"] .card-edge-outer {
  left: calc(12 / 1050 * 100%);
  right: calc(12 / 1050 * 100%);
  top: calc(12 / 600 * 100%);
  bottom: calc(12 / 600 * 100%);
  border-width: 8px;
}
.card-face-bar { display: none; }
.card-face[data-layout="band"] .card-face-bar {
  display: block;
  position: absolute;
  inset: 0 0 auto 0;
  height: 19%;
  background-color: var(--card-accent);
  background-image: linear-gradient(var(--card-accent) 0 88%, var(--card-rule) 88% 100%);
}
.card-face[data-layout="band"]::after {
  content: "";
  position: absolute;
  left: 0;
  top: 19%;
  bottom: 0;
  width: 1.5%;
  background: var(--card-accent);
}
.card-face[data-layout="split"]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 43.5%;
  background: linear-gradient(90deg, var(--card-accent) 0 96%, var(--card-rule) 96% 100%);
}
.card-face[data-layout="stack"]::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 34%;
  background: linear-gradient(var(--card-rule) 0 8%, var(--card-accent) 8% 100%);
}
.card-column {
  position: absolute;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  left: 5%;
  top: 26%;
  width: 58%;
}
.card-face[data-layout="split"] .card-column {
  left: 3%;
  top: 8%;
  width: 92%;
  display: grid;
  grid-template-columns: 42% 50%;
  column-gap: 6%;
  align-content: start;
}
.card-face[data-layout="split"] .card-line[data-role="line"] { grid-column: 2; grid-row: 1; }
.card-face[data-layout="split"] .card-line[data-role="line"] .card-text { color: var(--card-ink); }
.card-face[data-layout="split"] .card-line[data-role="name"],
.card-face[data-layout="split"] .card-line[data-role="extra"] { grid-column: 1; }
.card-face[data-layout="split"] .card-line[data-role="name"] .card-text,
.card-face[data-layout="split"] .card-line[data-role="extra"] .card-text { color: var(--card-on); }
.card-face[data-layout="split"] .card-locked-url { color: var(--card-on); }
.card-face[data-layout="split"] .card-plus { grid-column: 1; }
.card-face[data-side="back"][data-layout="split"] .card-column {
  display: flex;
  left: 4%;
  top: 36%;
  width: 52%;
  color: var(--card-on);
}
.card-face[data-side="back"][data-layout="split"] .card-text { color: var(--card-on); }
.card-face[data-layout="stack"] .card-column {
  left: 12%;
  top: 16%;
  width: 76%;
  align-items: center;
  text-align: center;
}
.card-face[data-side="back"][data-layout="band"] .card-column {
  left: 4%;
  top: 18%;
  width: 52%;
}
.card-face[data-side="back"][data-layout="stack"] .card-column {
  left: 10%;
  top: 22%;
  width: 48%;
  align-items: flex-start;
  text-align: left;
}
.card-line { position: relative; min-width: 0; }
.card-text {
  min-width: 2rem;
  min-height: 1.15em;
  margin: 0;
  padding: 0.02em 1.5rem 0.02em 0.08em;
  border: 1px dashed transparent;
  border-radius: 6px;
  outline: none;
  line-height: 1.12;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  cursor: text;
}
.card-trash {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  display: grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #8a1c3a;
  box-shadow: 0 4px 12px rgba(20, 8, 44, 0.16);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
}
.card-trash svg { width: 0.95rem; height: 0.95rem; }
.card-line:hover .card-trash,
.card-line:focus-within .card-trash {
  opacity: 1;
  pointer-events: auto;
}
.card-plus {
  width: 1.9rem;
  height: 1.9rem;
  margin: 0.35rem 0 0;
  padding: 0;
  display: grid;
  place-items: center;
  justify-self: start;
  border: 1.5px solid #7c12f8;
  border-radius: 999px;
  background: #fff;
  color: #5b0fc8;
  box-shadow: 0 6px 16px rgba(20, 8, 44, 0.16);
  cursor: pointer;
}
.card-plus svg { width: 1.05rem; height: 1.05rem; }
.card-plus:hover { background: #f6f0ff; }
.card-face[data-layout="stack"] .card-plus { align-self: center; }
.card-text:hover,
.card-text:focus {
  border-color: rgba(124, 18, 248, 0.65);
  background: rgba(255, 255, 255, 0.22);
}
.card-text:empty::before {
  content: attr(data-placeholder);
  opacity: 0.45;
}
.card-locked-url,
.card-qr-lock {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  user-select: none;
}
.card-locked-url {
  left: 5%;
  bottom: 7%;
  max-width: 70%;
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--card-ink);
}
.card-face[data-layout="stack"] .card-locked-url { color: var(--card-on); }
.card-qr-lock {
  right: 4%;
  bottom: 12%;
  width: 18%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 4%;
  border: 3px solid var(--card-accent);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.card-qr-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.card-face[data-layout="split"] .card-qr-lock { right: 6%; bottom: 18%; }
.card-face[data-side="back"][data-layout="band"] .card-qr-lock { right: 8%; top: 28%; bottom: auto; }
.card-logo-slot {
  position: absolute;
  z-index: 2;
  top: 4%;
  right: 4%;
  display: grid;
  justify-items: end;
  gap: 0.25rem;
}
.card-face[data-style="framed"][data-border="theme"] .card-logo-slot,
.card-face[data-style="ticket"] .card-logo-slot,
.card-face[data-border="thin"] .card-logo-slot,
.card-face[data-border="double"] .card-logo-slot,
.card-face[data-border="thick"] .card-logo-slot {
  top: calc(48 / 600 * 100%);
  right: calc(48 / 1050 * 100%);
}
.card-logo-frame,
.card-photo-frame {
  position: relative;
  display: block;
  margin: 0;
  padding: 0;
  border: 2px solid var(--card-rule);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
}
.card-logo-frame { width: 2.4rem; height: 2.4rem; }
.card-photo-frame {
  width: 4.75rem;
  height: 4.75rem;
  border-color: #7c12f8;
  flex: none;
}
.card-logo-frame:focus-visible,
.card-photo-frame:focus-visible,
.frame-disc-edit:focus-visible {
  outline: 2px solid #7c12f8;
  outline-offset: 3px;
}
.card-logo-frame .frame-disc,
.card-photo-frame .frame-disc {
  width: 100%;
  height: 100%;
}
.frame-disc {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 50%;
  background: #fff;
}
.frame-disc img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}
.card-mark-tools {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0 0 0.9rem;
}
.card-mark-copy { min-width: 0; }
.card-mark-label { margin: 0; font-weight: 700; }
.card-mark-copy .hint { margin: 0.15rem 0 0; }
.card-frame-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 0.75rem;
}
.frame-stage {
  display: grid;
  place-items: center;
  margin: 0.2rem 0 0.85rem;
  padding: 1.1rem 0.6rem;
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 42%, rgba(124, 18, 248, 0.1), transparent 58%),
    #fff9f0;
}
.frame-disc-edit {
  width: min(16rem, 70vw);
  height: min(16rem, 70vw);
  border: 3px solid #7c12f8;
  box-shadow: 0 12px 28px rgba(20, 8, 44, 0.16);
  cursor: grab;
  touch-action: none;
}
.frame-disc-edit.is-dragging { cursor: grabbing; }
.frame-zoom {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  font-weight: 700;
}
.frame-zoom input[type="range"] {
  width: 100%;
  accent-color: #7c12f8;
}
.card-logo-add {
  margin: 0;
  padding: 0.18rem 0.5rem;
  border: 1px solid var(--card-ink);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #1c1730;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
}
.card-logo-remove {
  top: -0.35rem;
  right: -0.35rem;
}
.card-logo-slot:hover .card-logo-remove,
.card-logo-slot:focus-within .card-logo-remove {
  opacity: 1;
  pointer-events: auto;
}
.card-file-proxy {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}
.card-popover {
  position: fixed;
  z-index: 80;
  width: min(22rem, calc(100vw - 16px));
  display: grid;
  gap: 0.45rem;
  padding: 0.7rem;
  background: #fff;
  color: #1c1730;
  border: 1px solid rgba(124, 18, 248, 0.4);
  border-radius: 16px;
  box-shadow: 0 18px 42px rgba(20, 8, 44, 0.28);
}
.card-popover[hidden] { display: none !important; }
.card-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.card-popover-groups,
.card-popover-fonts,
.card-popover-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.card-popover button[data-font-group],
.card-popover button[data-font],
.card-popover button[data-size] {
  margin: 0;
  padding: 0.28rem 0.55rem;
  border: 1px solid rgba(20, 8, 44, 0.16);
  border-radius: 999px;
  background: #fff9f0;
  color: #1c1730;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}
.card-popover button[data-font] { display: none; }
.card-popover[data-group="serif"] button[data-font][data-font-group="serif"],
.card-popover[data-group="sans"] button[data-font][data-font-group="sans"],
.card-popover[data-group="mono"] button[data-font][data-font-group="mono"],
.card-popover[data-group="display"] button[data-font][data-font-group="display"] {
  display: inline-flex;
}
.card-popover button[aria-pressed="true"] {
  background: #7c12f8;
  border-color: #7c12f8;
  color: #fff;
}
@media (max-width: 640px) {
  .shop-hero-band { height: 6.5rem; }
  .shop-hero-body { padding: 0 1rem 1.1rem; }
  .shop-mark { width: 4.4rem; height: 4.4rem; margin-top: -2.2rem; font-size: 1.85rem; }
  .shop-count { grid-column: 1 / -1; }
  .card-preview-pair { order: -1; }
}
.card-editor-intro { max-width: 40rem; margin-bottom: 1.4rem; }
.card-editor-intro h1 { margin: 0.2rem 0 0.45rem; }
.card-editor-intro p:last-child { margin-bottom: 0; }
.card-studio { display: grid; gap: 1.1rem; }
.card-studio-body { display: grid; gap: 1rem; min-width: 0; align-content: start; }
.card-studio-controls { display: grid; gap: 1rem; min-width: 0; }
.card-studio-section {
  padding: 1rem 1rem 1.05rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.card-studio-section h2 { margin: 0 0 0.75rem; font-size: 1.15rem; }
.card-type-band .card-type-head h2 { margin: 0; }
.card-colors { display: grid; gap: 0.65rem; margin-top: 0.9rem; }
.card-color {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr) 2.6rem auto;
  gap: 0.45rem;
  align-items: center;
}
.card-color label { font-weight: 700; }
.card-color input[type="text"] {
  width: 100%;
  min-width: 0;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--night);
}
.card-color input[type="color"] {
  width: 2.6rem;
  height: 2.2rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.card-upload { display: grid; gap: 0.35rem; margin: 0 0 0.85rem; }
.card-upload label { font-weight: 700; }
.card-upload input[type="file"] { max-width: 100%; }
.card-remove { font-weight: 600; }
.card-studio .card-stage { position: sticky; top: 5.2rem; }
@media (max-width: 720px) {
  .card-color { grid-template-columns: 1fr 1fr auto; }
  .card-color label { grid-column: 1 / -1; }
}
@media (min-width: 860px) {
  .card-preview-pair { grid-template-columns: 1fr 1fr; }
  .card-creator {
    grid-template-columns: minmax(16rem, 0.86fr) minmax(0, 1.14fr);
    align-items: start;
  }
}
@media (min-width: 980px) {
  .card-studio {
    grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr);
    align-items: start;
  }
}
@media (max-width: 979px) {
  .card-studio-body { display: contents; }
  .card-type-band { order: 1; }
  .card-stage { order: 2; }
  .card-studio-controls { order: 3; }
}
@media (min-width: 720px) {
  .listing-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.95fr);
    gap: 2.25rem;
    align-items: start;
  }
  .student-listing .gallery { position: sticky; top: 5.4rem; }
  .listing-details:has(.prose) {
    grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.85fr);
    align-items: start;
    gap: 2.25rem;
  }
  .listing-suggestions .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  }
}

.books-review-card { margin-bottom: 1rem; }
.books-review-actions {
  display: flex; flex-wrap: wrap; gap: 0.55rem; align-items: end;
  margin-top: 0.85rem; max-width: 100%;
}
.books-review-actions .field { margin: 0; flex: 1 1 12rem; min-width: 0; }
.books-review-actions .btn { flex: 0 1 auto; }
.books-inline-form { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin: 0; }
.books-inline-form select { max-width: 18rem; }
.books-journal-form { max-width: none; }

dialog.shop-dialog {
  border: 0;
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1.1rem;
  width: min(36rem, calc(100vw - 1.25rem));
  max-width: calc(100vw - 1.25rem);
  max-height: min(90vh, calc(100% - 1.25rem));
  overflow: auto;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}
dialog.shop-dialog.dialog-sheet { width: min(44rem, calc(100vw - 1.25rem)); }
dialog.shop-dialog .form { max-width: none; width: 100%; }
@media (min-width: 1100px) {
  dialog.shop-dialog.dialog-wide {
    width: min(72rem, calc(100vw - 3rem));
  }
  dialog.shop-dialog.dialog-wide[open] {
    max-height: min(90vh, 56rem);
  }
}
dialog.shop-dialog:not([open]) { display: none; }
dialog.shop-dialog[open] {
  display: flex;
  flex-direction: column;
  max-height: min(85vh, 44rem);
  overflow: hidden;
}
dialog.shop-dialog[open] .dialog-form,
[data-option-dialog][open] [data-option-body] {
  overflow: auto;
  min-height: 0;
  flex: 1 1 auto;
  padding-right: 0.2rem;
}
dialog.shop-dialog::backdrop { background: rgba(28, 10, 58, 0.55); }
dialog.shop-dialog h2 { margin: 0 0 0.35rem; font-size: 1.45rem; }
.guide-dialog { width: min(32rem, calc(100vw - 1.25rem)); }
dialog.guide-dialog[open] {
  overflow: hidden;
}
dialog.guide-dialog[open] .guide-pop-bar { flex: 0 0 auto; }
dialog.guide-dialog[open] .guide-pop-body {
  overflow-y: auto;
  min-height: 0;
  flex: 1 1 auto;
  max-height: calc(min(85vh, 44rem) - 6rem);
  padding-bottom: 0.4rem;
  overscroll-behavior: contain;
}
.guide-pop-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.guide-pop-bar h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1.15;
  color: var(--accent-deep);
}
.guide-close {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--accent-deep);
  font: inherit;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.28rem 0.75rem;
  cursor: pointer;
}
.guide-close:hover,
.guide-close:focus-visible { border-color: var(--accent); }
.guide-pop-body { padding-top: 0.15rem; }
.guide-kicker {
  margin: 0.9rem 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.guide-pop-body > p { margin: 0.15rem 0 0; }
.guide-example {
  margin: 0.55rem 0 0;
  padding: 0.7rem 0.85rem;
  background: var(--gold-soft);
  border-left: 3px solid var(--gold);
  border-radius: 12px;
}
.guide-example p { margin: 0; }
.word-map-intro {
  margin: 0.15rem 0 0.9rem;
  padding: 0.9rem 0.95rem 0.85rem;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  border-radius: 14px;
  background: #fff;
}
.word-map-intro h3 {
  margin: 0 0 0.3rem;
  font-family: var(--font-display);
  font-size: 1.28rem;
  color: var(--accent-deep);
}
.word-map-intro > p { margin: 0; }
.word-map { margin: 0.75rem 0 0; }
.word-map-page {
  display: grid;
  gap: 0.45rem;
  padding: 0.65rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
}
.word-map-buy,
.word-map-desc {
  margin: 0;
  padding: 0.65rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.word-map-desc { background: var(--accent-soft); }
.word-map-kicker {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.word-map-brand {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}
.word-map-title {
  margin: 0.05rem 0 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
}
.word-map-price {
  margin: 0.1rem 0 0;
  color: var(--accent-deep);
  font-weight: 750;
}
.word-map-line { margin: 0.2rem 0 0; }
.word-map-menu {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0.45rem 0 0;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 0.92rem;
}
.word-map-menu span:last-child { color: var(--accent-deep); font-weight: 700; }
.word-map-note {
  margin: 0.4rem 0 0;
  padding: 0.5rem 0.65rem;
  background: var(--gold-soft);
  border-left: 3px solid var(--gold);
  border-radius: 10px;
  font-size: 0.9rem;
}
.word-map-desc .word-map-h { margin: 0; font-weight: 750; color: var(--accent-deep); }
.word-map-desc p { margin: 0.15rem 0 0; }
.word-map-key {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.28rem;
}
.word-map-key li { display: flex; align-items: center; gap: 0.45rem; font-size: 0.88rem; }
.swatch { width: 0.85rem; height: 0.85rem; border-radius: 3px; flex: 0 0 auto; }
.swatch-note { background: var(--gold); }
.swatch-desc { background: var(--accent); }
.word-map-foot { margin: 0.55rem 0 0; color: var(--muted); font-size: 0.86rem; }
.word-map[data-highlight="note"] .word-map-note,
.word-map[data-highlight="description"] .word-map-desc,
.word-map[data-highlight="line"] .word-map-line,
.word-map[data-highlight="title"] .word-map-title,
.word-map[data-highlight="shop"] .word-map-brand {
  box-shadow: 0 0 0 2px var(--accent);
}
.word-map[data-highlight="line"] .word-map-line,
.word-map[data-highlight="title"] .word-map-title,
.word-map[data-highlight="shop"] .word-map-brand {
  display: inline-block;
  padding: 0.08rem 0.35rem;
  border-radius: 8px;
  background: #fff;
}
dialog.shop-dialog .lede { margin-top: 0; }
.dialog-actions {
  display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: flex-end;
  position: sticky; bottom: 0; margin-top: 0.75rem; padding-top: 0.7rem;
  background: var(--surface); border-top: 1px solid var(--line);
}
.dialog-actions [data-draft-delete],
.dialog-actions [data-remove-variation] { margin-right: auto; }
.dialog-error { color: var(--sale); font-weight: 650; margin: 0.65rem 0 0; }
.dialog-form .field { margin-bottom: 0.7rem; }
.role-grid { display: grid; grid-template-columns: 1fr; gap: 0.35rem 0.8rem; margin: 0.4rem 0 0.8rem; }
.role-grid label { display: flex; gap: 0.45rem; align-items: flex-start; }
[data-cart-status], .inline-confirm { margin: 0.65rem 0 0; color: var(--accent-deep); font-weight: 700; }
.page-status {
  margin: 0;
  padding: 0.7rem 1.1rem;
  background: #fff;
  border-bottom: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  color: var(--ink);
  font-weight: 650;
}
.row-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.row-actions form, .order-line-actions form { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin: 0; }
.person-card h3 { margin: 0 0 0.15rem; }
.person-card .meta { margin: 0 0 0.45rem; }
.desk-results[aria-busy="true"] { opacity: 0.55; }
@media (min-width: 640px) {
  .role-grid { grid-template-columns: 1fr 1fr; }
}
.books-nav { margin-bottom: 1rem; }

.page-intro {
  margin: 0 0 1.35rem;
  padding: 0.9rem 0 1.05rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, var(--gold), var(--gold)) top / 3.25rem 3px no-repeat;
}
.page-intro .lede { color: var(--muted); font-size: 1.08rem; max-width: 42rem; }
.page-intro .hero-actions { margin-top: 0.35rem; }
.back-link { margin: 0 0 0.35rem; font-weight: 700; }
.back-link a { text-decoration: none; }
.section-tight { padding-top: 0.15rem; }
.status-panel {
  max-width: 36rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.4rem 1.6rem;
}
.status-panel h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.auth-section .form-card { margin-inline: auto; }
.form-card .page-intro { border-bottom: 0; margin-bottom: 0.4rem; padding-bottom: 0.2rem; }
.form-card .page-intro h1 { font-size: clamp(1.85rem, 4vw, 2.45rem); }
.child-fields { display: grid; gap: 0.65rem; margin-bottom: 0.35rem; }
.assistant-entry {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.75rem 1rem;
  margin: 0 0 1rem;
  padding: 0.95rem 1.05rem;
  border-radius: var(--radius);
  color: #fff;
  background:
    radial-gradient(420px 120px at 100% 0%, rgba(240, 193, 75, 0.22), transparent 55%),
    linear-gradient(145deg, var(--night), var(--accent-deep));
  border-top: 3px solid var(--gold);
  box-shadow: var(--shadow);
}
.assistant-entry p { margin: 0; color: rgba(255, 255, 255, 0.86); }
.assistant-entry .desk-kicker { color: var(--gold); }
.assistant-entry-copy { min-width: min(100%, 16rem); flex: 1; }
.assistant-off {
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px dashed var(--gold);
  color: var(--gold-soft);
}
.footer-links a[aria-current="page"] { color: var(--gold); }
.hero-grid, .home-split, .footer-grid, .desk, .campaign-card, .page-intro, .quick-nav { min-width: 0; }
.table-wrap { max-width: 100%; }
.desk-table-desktop { max-width: 100%; }

@media (min-width: 720px) {
  .child-fields { grid-template-columns: 1fr 1fr; align-items: end; }
}

dialog.give-dialog {
  padding: 0;
  border-top: 0;
  width: min(34rem, calc(100vw - 1.25rem));
}
dialog.give-dialog[open] { padding: 0; overflow: hidden; }
dialog.give-dialog .give-dialog-head {
  position: relative;
  padding: 1.15rem 3.2rem 1.05rem 1.2rem;
  color: #fff;
  background:
    radial-gradient(420px 140px at 100% 0%, rgba(240, 193, 75, 0.38), transparent 58%),
    linear-gradient(145deg, var(--accent), var(--accent-deep));
}
dialog.give-dialog .give-dialog-head .eyebrow { color: var(--gold); margin-bottom: 0.35rem; }
dialog.give-dialog .give-dialog-head h2 {
  color: #fff; margin: 0 0 0.35rem; font-size: clamp(1.55rem, 3vw, 1.9rem);
}
dialog.give-dialog .give-dialog-head .lede {
  color: rgba(255, 255, 255, 0.9); margin: 0; font-size: 0.98rem;
}
.give-close {
  position: absolute; top: 0.7rem; right: 0.7rem;
  width: 2.4rem; height: 2.4rem; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12); color: #fff;
  font: inherit; font-size: 1.35rem; line-height: 1; cursor: pointer;
}
.give-close:hover { background: rgba(255, 255, 255, 0.24); }
dialog.give-dialog[open] .give-form {
  overflow: auto; min-height: 0;
  padding: 1rem 1.15rem 1.15rem;
}
.give-amount-set { border: 0; margin: 0 0 0.75rem; padding: 0; }
.give-amount-set legend {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent-deep); margin-bottom: 0.55rem;
}
.give-amounts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem;
}
.give-amount {
  appearance: none; font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 650; color: var(--accent-deep);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; min-height: 3.25rem; padding: 0.55rem 0.3rem;
  cursor: pointer;
}
.give-amount:hover { border-color: var(--accent); background: var(--accent-soft); }
.give-amount.is-selected {
  background: var(--accent); color: #fff; border-color: var(--accent);
  box-shadow: inset 0 -3px 0 var(--gold);
}
.give-custom { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 0.35rem; }
.give-custom > span:first-child { font-weight: 650; }
.give-custom-row {
  display: flex; align-items: center; gap: 0.15rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; padding: 0 0.85rem;
}
.give-custom-row:focus-within { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 1px; }
.give-dollar { font-family: var(--font-display); font-size: 1.35rem; color: var(--accent-deep); }
.give-custom-row input[type="text"] {
  border: 0; outline: none; box-shadow: none;
  font-family: var(--font-display); font-size: 1.35rem; padding: 0.65rem 0.2rem;
}
.give-custom-row input::placeholder { color: #b7b1c7; font-weight: 500; }
.give-custom-row input[type="text"]:focus { outline: none; border: 0; }
.give-charge {
  margin: 0 0 0.85rem; min-height: 2.7rem;
  display: flex; align-items: center;
  padding: 0.55rem 0.85rem;
  border-radius: 12px;
  background: var(--gold-soft);
  color: var(--accent-deep);
  font-weight: 700;
}
.give-charge:empty { background: transparent; padding: 0; min-height: 0; }
.give-options { display: grid; gap: 0.55rem; margin-bottom: 0.9rem; }
.give-option {
  display: flex; gap: 0.7rem; align-items: flex-start;
  margin: 0; padding: 0.75rem 0.8rem;
  border: 1px solid var(--line); border-radius: 14px; background: #fff;
  font-weight: 500;
}
.give-option:has(input:checked) {
  border-color: var(--accent); background: var(--accent-soft);
}
.give-option input { width: auto; margin-top: 0.2rem; accent-color: var(--accent); }
.give-option-title { display: block; font-weight: 700; color: var(--ink); }
.give-option .hint { display: block; }
.give-details { margin-bottom: 0.4rem; }
.give-detail-grid { display: grid; gap: 0.2rem; }
.give-submit { width: 100%; margin-top: 0.35rem; }
.give-fine { margin-top: 0.65rem; }
.give-more { margin-top: 0.9rem; padding-top: 0.8rem; border-top: 1px solid var(--line); }
.give-more-label {
  margin: 0 0 0.4rem;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent-deep);
}
.give-more ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.give-more li { display: flex; flex-wrap: wrap; gap: 0.35rem 0.7rem; align-items: baseline; }
.give-more li span { color: var(--muted); font-size: 0.9rem; }
@media (max-width: 520px) {
  .give-amounts { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 640px) {
  .give-detail-grid { grid-template-columns: 1fr 1fr; gap: 0.65rem; }
}
.check-line { display: flex; gap: 0.65rem; align-items: flex-start; margin: 0.8rem 0; }
.check-line input { width: auto; margin-top: 0.2rem; }
.check-line label { font-weight: 650; }
.field-error { color: var(--sale); font-size: 0.88rem; font-weight: 650; margin: 0.35rem 0 0; }

.listing-editor { width: min(52rem, 100%); }
.editor-group {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 0.35rem 1.1rem 1.15rem;
  margin: 0 0 1rem;
}
.editor-group > legend {
  font-family: var(--font-display);
  font-weight: 600;
  padding: 0 0.35rem;
  color: var(--accent-deep);
}
.photo-order { display: grid; gap: 0.75rem; }
.photo-order-item {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
  padding: 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}
.photo-order-item img { width: 6rem; height: 6rem; object-fit: cover; border-radius: 12px; }
.photo-moves { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.55rem; }
.mine-tools { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.85rem 0 0.35rem; }
.mine-list { display: grid; gap: 0.9rem; margin-top: 1rem; }
.mine-card {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: 0.9rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.mine-photo img {
  width: 7.5rem;
  height: 7.5rem;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}
.mine-photo .listing-placeholder {
  width: 7.5rem;
  height: 7.5rem;
  aspect-ratio: auto;
  border-radius: 14px;
  gap: 0.35rem;
}
.mine-photo .listing-placeholder::before { inset: 0.35rem; }
.mine-photo .listing-placeholder-mark { width: 2.4rem; height: 2.4rem; border-radius: 10px; }
.mine-photo .listing-placeholder-caption { font-size: 0.58rem; letter-spacing: 0.08em; text-align: center; }
.mine-card h2 { margin: 0 0 0.15rem; font-size: 1.35rem; }
.mine-price { margin: 0; font-weight: 750; }
.mine-status { margin: 0.15rem 0 0; color: var(--muted); }
.mine-note {
  margin: 0.55rem 0 0;
  padding: 0.55rem 0.7rem;
  background: var(--gold-soft);
  border-radius: var(--radius-sm);
}
.mine-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-top: 0.7rem; }
.mine-next-label { font-weight: 700; color: var(--accent-deep); }
.review-stage { display: grid; gap: 1.25rem; align-items: start; }
.review-actions .actions-row { flex-direction: column; align-items: stretch; }
.review-actions .actions-row > form,
.review-actions .actions-row > .btn { width: 100%; }
.review-columns { display: grid; gap: 1rem; align-items: start; }
.review-proposed.form { max-width: none; width: 100%; }
.review-live {
  border: 1px solid color-mix(in srgb, var(--gold) 55%, var(--line));
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, var(--gold-soft), #fff 7rem);
  padding: 1rem 1.1rem 1.2rem;
}
.review-live-title { font-family: var(--font-display); font-size: 1.35rem; margin: 0 0 0.35rem; }
@media (min-width: 860px) {
  .review-columns.has-live { grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.85fr); }
}
@media (min-width: 980px) {
  .review-stage { grid-template-columns: 16.5rem minmax(0, 1fr); }
  .review-actions { position: sticky; top: 1rem; }
}
@media (max-width: 560px) {
  .mine-card { grid-template-columns: 1fr; }
  .mine-photo img, .mine-photo .listing-placeholder { width: 100%; height: 12rem; }
}
.mine-pulse {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.35rem 1rem;
  align-items: center;
  margin: 1rem 0 0.35rem;
  padding: 0.95rem 1.05rem 1rem;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(180deg, var(--accent-soft), #fff 3.4rem);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.mine-pulse:hover { color: inherit; border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.mine-pulse-kicker {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.mine-pulse-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem 1rem;
  margin-top: 0.35rem;
}
.mine-pulse-grid span { color: var(--muted); font-size: 0.88rem; }
.mine-pulse strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.65rem;
  line-height: 1;
  color: var(--accent-deep);
  font-variant-numeric: tabular-nums;
}
.mine-pulse-go {
  font-weight: 750;
  color: var(--accent-deep);
  white-space: nowrap;
}
.mine-pulse:hover .mine-pulse-go { color: var(--accent); }
.stat.is-now { border-top: 3px solid var(--gold); }
.stats-totals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stats-ranges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1rem;
}
.stats-ranges a {
  text-decoration: none;
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 700;
  color: var(--ink);
}
.stats-ranges a[aria-current="page"] {
  background: var(--accent);
  border-color: transparent;
  color: #fff;
}
.stats-ranges a:hover { color: var(--accent-deep); }
.stats-ranges a[aria-current="page"]:hover { color: #fff; }
.stats-charts {
  display: grid;
  gap: 0.9rem;
  margin: 1rem 0;
}
.stats-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.05rem 1.1rem;
  box-shadow: var(--shadow);
  margin: 0 0 0.9rem;
}
.stats-panel h2 { margin: 0; font-size: 1.25rem; }
.stats-chart {
  list-style: none;
  display: flex;
  align-items: flex-end;
  gap: 0.28rem;
  margin: 0.35rem 0 0;
  padding: 0;
  min-width: 0;
}
.stats-chart li { flex: 1 1 0; min-width: 0; }
.stats-plot {
  display: flex;
  align-items: flex-end;
  height: 7.5rem;
  border-radius: 8px;
  background: linear-gradient(180deg, transparent, var(--accent-soft));
}
.stats-chart.is-sales .stats-plot {
  background: linear-gradient(180deg, transparent, var(--gold-soft));
}
.stats-bar {
  display: block;
  width: 100%;
  height: 0;
  border-radius: 7px 7px 3px 3px;
  background: var(--accent);
}
.stats-chart.is-sales .stats-bar {
  background: linear-gradient(180deg, var(--gold), #c4922a);
}
.stats-listings { display: grid; gap: 0.75rem; }
.stats-listing {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.8rem 0.85rem 0.9rem;
  background: #fff;
}
.stats-listing-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.7rem;
  align-items: center;
  justify-content: space-between;
}
.stats-listing h3 { margin: 0; font-size: 1.15rem; }
.stats-listing h3 a { text-decoration: none; }
.stats-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(6.2rem, 1fr));
  gap: 0.55rem 0.75rem;
  margin: 0.7rem 0 0;
}
.stats-metrics div { margin: 0; min-width: 0; }
.stats-metrics dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.stats-metrics dd {
  margin: 0.12rem 0 0;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}
.stats-notes { margin: 0.2rem 0 1rem; }
.stats-notes summary { font-weight: 700; cursor: pointer; color: var(--accent-deep); }
.stats-notes ul { margin: 0.55rem 0 0; padding-left: 1.15rem; color: var(--muted); }
#stats-board[aria-busy="true"] { opacity: 0.6; }
@media (min-width: 860px) {
  .stats-charts { grid-template-columns: 1fr 1fr; }
  .stats-charts .stats-panel { margin-bottom: 0; }
  .stats-totals { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .mine-pulse,
  .mine-pulse-grid { grid-template-columns: 1fr; }
  .mine-pulse-go { justify-self: start; }
}

@media print {
  .site-header, .site-banner, .student-rail, .footer, .hero-actions, .btn, .desk-nav, .flash, .no-print, .quick-nav, .menu-btn, dialog {
    display: none !important;
  }
  body { background: white; color: black; padding: 0; }
  .wrap { width: auto; }
  a { color: inherit; text-decoration: none; }
}

.gallery-drop {
  margin: 0.4rem 0 0.2rem;
  padding: 1.2rem 1rem 1.05rem;
  text-align: center;
  border: 2px dashed color-mix(in srgb, var(--accent) 48%, var(--gold));
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, var(--gold-soft), #fff 5.5rem);
}
.gallery-drop.is-dragover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.gallery-drop[aria-busy="true"] { opacity: 0.6; }
.gallery-drop-title {
  margin: 0.15rem 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--night);
}
.gallery-drop-note { margin: 0 auto 0.85rem; max-width: 34rem; color: var(--muted); }
.gallery-drop-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.gallery-count { margin: 1rem 0 0; font-weight: 750; color: var(--accent-deep); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 0.8rem;
  margin: 0.7rem 0 0;
}
.gallery-tile {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
  overflow: hidden;
  text-align: left;
  color: inherit;
  font: inherit;
  cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.gallery-tile img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--accent-soft);
}
.gallery-tile-title {
  padding: 0.5rem 0.7rem 0.65rem;
  font-size: 0.92rem;
  font-weight: 750;
}
.gallery-tile:hover { border-color: var(--accent); }
#gallery-manage-body {
  overflow: auto;
  min-height: 0;
  flex: 1 1 auto;
}
.gallery-manage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}
.gallery-manage-head h2 { margin: 0; }
.gallery-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0 0 0.35rem;
}
.gallery-counter { margin: 0; font-weight: 750; color: var(--accent-deep); }
.gallery-manage-layout { display: grid; gap: 1rem; }
.gallery-manage-photo {
  display: grid;
  place-items: center;
  min-height: 12rem;
  padding: 0.6rem;
  border-radius: var(--radius-sm);
  background:
    radial-gradient(420px 180px at 50% 0%, rgba(240, 193, 75, 0.35), transparent 70%),
    var(--night);
}
.gallery-manage-photo img {
  max-height: min(52vh, 24rem);
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 10px;
}
.gallery-delete-actions { justify-content: flex-start; border-top: 0; padding-top: 0; }
@media (min-width: 800px) {
  .gallery-manage-layout { grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.85fr); align-items: start; }
}
@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}
