/* =======================================================================================
   MojoePots — Mountain Joe Pottery — Global Styles
   -----------------------------------------------------------------------
   HOW THIS FILE IS ORGANIZED
   00) Desert Scene Background (V3.19, drawn by desert-scene.js)
   01) Design Tokens & Resets
   02) Base Elements & Utilities
   03) Header (Fixed Top Banner + Nav Drawer)
   04) Hero (Background + headline)
   05) Page Layout, Cards, Grids, Content Blocks
   06) Components (Contact, Buttons, Social)
   07) Gallery (Masonry grid, Filters, Lightbox)
   08) Shop (Product grid, Buy buttons)
   09) Learn (Resource cards, Interactive tools)
   10) Footer
   11) Mobile Bottom Tab Bar
   12) Reveal Animation (with artistic variants)
   13) Responsive Breakpoints
   14) Reduced Motion
   15) (removed in V3.19: old landscape admin panel)
   16)–25) Admin pages, cart, auth, feed, app context, Instagram, lessons, glaze tags
   26) Class page (V3.23: calendar, students' work, news, ideas, messages, roster)

   TIP: CSS variables (custom properties) live in :root and are reused throughout.
   ======================================================================================= */


/* =========================================
   00) DESERT SCENE BACKGROUND (V3.19)
   Drawn by desert-scene.js. Colours arrive as --d-* custom properties on
   #desert-bg; the fallbacks below are the morning scene.
   ========================================= */

.desert-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100lvh;          /* the large viewport: a phone's URL bar sliding doesn't resize it */
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background: linear-gradient(180deg,
    var(--d-sky1, #6ea4d8) 0%,
    var(--d-sky2, #a8cde8) 46%,
    var(--d-sky3, #f4e6d2) 72%);
}

.desert-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;       /* layers are drawn below the screen to cover the parallax */
  will-change: transform;
}

@keyframes d-twinkle {
  from { opacity: .2; }
  to   { opacity: 1; }
}
@keyframes d-drift {
  from { transform: translate3d(-40px, 0, 0); }
  to   { transform: translate3d(40px, 0, 0); }
}

/* Stars: one wrapper whose opacity follows the night (static + two twinkling layers) */
.desert-stars {
  position: absolute;
  inset: 0;
  opacity: var(--d-stars, 0);
}

/* Two birds gliding across the morning sky */
.desert-birds {
  position: absolute;
  top: 16%;
  left: 0;
  z-index: 1;
  width: 54px;
  height: 18px;
  opacity: var(--d-birdA, .6);
  animation: d-fly 95s linear infinite;
  animation-delay: -38s;
}
.desert-birds svg path {
  fill: none;
  stroke: var(--d-bird, #4a3a32);
  stroke-width: 1.6;
  stroke-linecap: round;
}
@keyframes d-fly {
  from { transform: translate3d(-80px, 0, 0); }
  to   { transform: translate3d(calc(100vw + 80px), -46px, 0); }
}

/* Twinkling stars: whole star layers fade in and out, so only the compositor works */
.d-tw-layer {
  animation: d-twinkle 3.4s ease-in-out infinite alternate;
  will-change: opacity;
}
.d-tw-layer.d-tw-b {
  animation-duration: 4.6s;
  animation-delay: -2.1s;
}

/* Clouds drift as one layer (moving the layer, not redrawing it) */
.desert-layer.d-clouds {
  animation: d-drift 80s ease-in-out infinite alternate;
}

/* Critters (V3.19.2): night — cactus owls, scorpion, javelinas; day — roadrunner, coyote,
   cactus wrens. Placed and walked by desert-scene.js; walking is a compositor transform,
   the small animations below only redraw the critter itself. */
.desert-critters {
  position: absolute;
  inset: 0;
  pointer-events: none;
  will-change: transform;
}
.crit-space {               /* scene units; scaled to match the SVG layers */
  position: absolute;
  left: 50%;
  bottom: 0;
  transform-origin: 50% 100%;
}
.crit {
  position: absolute;
  left: 0;
  will-change: transform;
}
.crit-flip {
  width: 100%;
  height: 100%;
}
.crit svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}
.crit-night { opacity: var(--d-nightA, 0); visibility: hidden; }
.night-on .crit-night { visibility: visible; }
.crit-day { opacity: var(--d-dayA, 1); visibility: hidden; }
.day-on .crit-day { visibility: visible; }
.crit-night .rim {
  stroke: rgba(206, 192, 248, .85);     /* moonlight on the silhouettes */
  stroke-width: 1;
  paint-order: stroke;
}

/* walking: legs swing, body bobs */
.crit .legA,
.crit .legB,
.crit .bob {
  transform-box: fill-box;
  transform-origin: 50% 0;
}
.crit.walking .legA { animation: crit-step .34s ease-in-out infinite alternate; }
.crit.walking .legB { animation: crit-step .34s ease-in-out infinite alternate-reverse; }
.crit.walking .bob  { animation: crit-bob .34s ease-in-out infinite alternate; }
.crit.coyote.walking .legA,
.crit.coyote.walking .legB,
.crit.coyote.walking .bob { animation-duration: .24s; }
.crit.roadrunner.walking .legA,
.crit.roadrunner.walking .legB,
.crit.roadrunner.walking .bob { animation-duration: .09s; }
.crit.scorpion.walking .legA,
.crit.scorpion.walking .legB { animation-duration: .11s; }
@keyframes crit-step {
  from { transform: rotate(-24deg); }
  to   { transform: rotate(24deg); }
}
@keyframes crit-bob {
  from { transform: translateY(0); }
  to   { transform: translateY(-.9px); }
}

/* roadrunner: tail up and crest raised whenever it stops */
.crit .rr-tail,
.crit .rr-crest {
  transform-box: fill-box;
  transition: transform .3s ease;
}
.crit .rr-tail  { transform-origin: 100% 60%; }
.crit .rr-crest { transform-origin: 80% 100%; }
.crit.roadrunner:not(.walking) .rr-tail  { transform: rotate(26deg); }
.crit.roadrunner:not(.walking) .rr-crest { transform: rotate(-14deg) scale(1.25); }

/* scorpion: a faint blue-green glow */
.crit.scorpion svg {
  filter: drop-shadow(0 0 1.6px rgba(110, 235, 215, .9));
}

/* owls: amber eyes that blink; the perched one looks around */
.crit .eyes {
  transform-box: fill-box;
  transform-origin: 50% 50%;
}
.crit.owl .eyes      { animation: owl-look 9s ease-in-out infinite; }
.crit.owl-hole .eyes { animation: owl-blink 6.4s ease-in-out infinite; animation-delay: -2.5s; }
@keyframes owl-look {
  0%, 30%   { transform: translateX(0) scaleY(1); }
  36%, 52%  { transform: translateX(-1.3px) scaleY(1); }
  58%, 86%  { transform: translateX(0) scaleY(1); }
  89%       { transform: translateX(0) scaleY(.1); }
  92%, 100% { transform: translateX(0) scaleY(1); }
}
@keyframes owl-blink {
  0%, 90%, 100% { transform: scaleY(1); }
  93%           { transform: scaleY(.1); }
}

/* cactus wrens: tail flicks and head tilts */
.crit .tail-flick {
  transform-box: fill-box;
  transform-origin: 100% 100%;
  animation: wren-tail 3.2s ease-in-out infinite;
}
.crit .wren-head {
  transform-box: fill-box;
  transform-origin: 30% 80%;
  animation: wren-head 4.4s ease-in-out infinite;
}
.crit.wren-2 .tail-flick,
.crit.wren-2 .wren-head { animation-delay: -1.7s; }
@keyframes wren-tail {
  0%, 70%, 100% { transform: rotate(0); }
  76%           { transform: rotate(16deg); }
  82%           { transform: rotate(-4deg); }
  88%           { transform: rotate(9deg); }
}
@keyframes wren-head {
  0%, 40%, 100% { transform: rotate(0); }
  46%, 62%      { transform: rotate(-11deg); }
  68%           { transform: rotate(4deg); }
}

@media (prefers-reduced-motion: reduce) {
  .d-tw-layer,
  .desert-layer.d-clouds,
  .crit * {
    animation: none !important;
  }
  .desert-birds {
    display: none;
  }
}

/* Home intro: the hero is the scene — the content starts one screen down */
.route-home .hero {
  min-height: calc(100vh - var(--banner-height));
  min-height: calc(100svh - var(--banner-height));
  align-items: flex-start;
  padding-top: clamp(64px, 19vh, 210px);
}
.route-home .hero-content {
  text-align: center;
}
.route-home .hero h1 {
  margin-inline: auto;
  max-width: 18ch;
  font-size: clamp(2rem, 5vw, 3.6rem);
}
/* V3.76: the tag line is the home page's title only; a second sentence sits smaller under the first */
body:not(.route-home) #heroText { display: none; }
#heroText .tl-a { display: block; }
#heroText .tl-b { display: block; margin: .45em auto 0; max-width: 24ch; font-size: .5em; font-weight: 600; line-height: 1.25; letter-spacing: 0; }
.hero-cue {
  display: none;
}
.route-home .hero-cue {
  display: block;
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: 16px;
  height: 16px;
  margin-left: -8px;
  border-right: 2px solid rgba(255, 245, 224, .85);
  border-bottom: 2px solid rgba(255, 245, 224, .85);
  transform: rotate(45deg);
  animation: hero-cue 2.4s ease-in-out infinite;
  will-change: transform, opacity;
}
@keyframes hero-cue {   /* transform only: desert-scene.js owns the cue's opacity */
  0%, 100% { transform: translateY(0) rotate(45deg); }
  50%      { transform: translateY(8px) rotate(45deg); }
}
@media (prefers-reduced-motion: reduce) {
  .route-home .hero-cue { animation: none; }
}

/* Hero text switches from cream to brown once the sky is light */
.hero h1,
.eyebrow {
  transition: color .6s ease, text-shadow .6s ease;
}
html.sky-light .hero h1 {
  color: var(--text);
  text-shadow: 0 1px 14px rgba(255, 248, 235, .75);
}
html.sky-light .eyebrow {
  color: var(--accent);
  text-shadow: none;
}

/* Home page: separate frosted cards with the desert showing between them (V3.19) */
.home-view .page-section + .page-section {
  margin-top: 1.75rem;
}
.home-view .content-block:last-child {
  margin-bottom: 0;
}

/* Sunrise phrase: rides just above the first home card; desert-scene.js fades it
   in with the sunrise and out as it reaches the banner, and sets its colours. */
.home-phrase {
  max-width: var(--content-max);
  min-height: 1.25em;
  margin: 0 auto .9rem;
  padding: 0 16px;
  text-align: center;
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2.6rem);
  line-height: 1.25;
  color: #FFF5E0;
  text-shadow: 0 2px 14px rgba(140, 60, 30, .55), 0 0 40px rgba(255, 190, 120, .45);
  opacity: 0;
  pointer-events: none;
  will-change: opacity;    /* fading is compositor-only */
}

/* =========================================
   01) DESIGN TOKENS & RESETS
   ========================================= */
:root {
  /* ---- Color system (warm earthy palette) ---- */
  --bg: #FAF6F1;
  --surface: #F0EBE3;
  --surface-2: #E6DFD5;
  --text: #2C1810;
  --muted: #7A6B63;
  --accent: #C4704A;
  --link: #A85A3A;

  /* ---- Frosted-glass content panes over the desert scene ---- */
  --glass-alpha: 0.72;

  /* ---- Logo animation colors ---- */
  --loader-text-color: #2C1810;
  --loader-dot-color:  #C4704A;

  /* ---- Radii / Shadows ---- */
  --radius: 12px;
  --shadow: 0 4px 16px rgba(44,24,16,.08);

  /* ---- Layout constants ---- */
  --banner-height: 64px;
  --content-max: 1100px;
  --tab-bar-height: 60px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
html { scrollbar-gutter: stable; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: transparent;
  line-height: 1.6;
  font-size: clamp(0.9375rem, 0.875rem + 0.25vw, 1.0625rem);
}


/* =========================================
   02) BASE ELEMENTS & UTILITIES
   ========================================= */

.max-w {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

/* Hide focus ring on #app — focused programmatically by render(), not keyboard-reachable (tabindex=-1) */
#app:focus {
  outline: none;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
}
.skip-link:focus {
  left: 16px;
  top: 12px;
  background: var(--surface);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 6px;
  z-index: 1000;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

svg {
  width: 100%;
  height: 100%;
  display: block;
}


/* =========================================
   03) HEADER (FIXED TOP BANNER + NAV DRAWER)
   ========================================= */

.top-banner {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--banner-height);
  /* One row: logo, then nav / sign in / cart / menu on the right.
     (V3.19 fix: the old 3-column grid had 5 items, so the cart and menu button
     wrapped onto a second row below the banner.) */
  display: flex;
  gap: .5rem;
  align-items: center;
  background: rgba(250,246,241,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(44,24,16,.08);
  padding-inline: clamp(12px, 3vw, 24px);
}

/* Brand / Logo */
.brand {
  display: inline-flex;
  align-items: center;
  margin-right: auto;
  min-width: 0;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }

.logo-animated {
  height: 36px;
  width: auto;
  overflow: visible;
}
.logo-animated .text-body {
  font-family: system-ui, sans-serif;
  font-weight: 700;
  font-size: 96px;
  fill: var(--loader-text-color, var(--text));
}
.logo-animated .dot {
  fill: var(--loader-dot-color, var(--accent));
}

/* Desktop nav */
.desktop-nav {
  display: none;
}
.desktop-nav {
  margin-right: .75rem;
}
.desktop-nav ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.desktop-nav a {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 500;
  padding: 6px 0;
  transition: color .2s;
}
.desktop-nav a:hover,
.desktop-nav a[aria-current="page"] {
  color: var(--text);
  text-decoration: none;
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Nav Drawer */
.nav-drawer {
  position: fixed;
  top: var(--banner-height);
  right: 0;
  width: 280px;
  max-height: calc(100vh - var(--banner-height));
  overflow-y: auto;
  background: var(--surface);
  border-left: 1px solid rgba(44,24,16,.08);
  transform: translateX(100%);
  transition: transform .3s ease;
  z-index: 99;
}
.nav-drawer.open {
  transform: translateX(0);
}
.nav-drawer ul {
  list-style: none;
  margin: 0; padding: 1rem 0;
}
.nav-drawer a {
  display: block;
  padding: .75rem 1.5rem;
  color: var(--muted);
  font-size: .95rem;
  transition: color .2s, background .2s;
}
.nav-drawer a:hover,
.nav-drawer a[aria-current="page"] {
  color: var(--text);
  background: var(--surface-2);
  text-decoration: none;
}


/* =========================================
   04) HERO
   ========================================= */

.site-header {
  position: relative;
}

.hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: flex-end;
  padding: 3rem 0 2rem;
  margin-top: var(--banner-height);
  overflow: hidden;
}

.video-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .3;
}
.hero-bg {
  width: 100%;
  height: 100%;
  background: transparent;
}
.video-scrim {
  position: absolute;
  inset: 0;
  background: transparent;
}

.hero-content {
  position: relative;
  z-index: 1;
}
.eyebrow {
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #e8a660;
  margin-bottom: .5rem;
  text-shadow: 0 1px 8px rgba(0,0,0,.3);
}
.hero h1 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  max-width: 700px;
  color: #FFF5E0;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
}


/* =========================================
   05) PAGE LAYOUT, CARDS, GRIDS
   ========================================= */

.page {
  min-height: 50vh;
  padding-bottom: 4rem;
}

.page-section {
  padding: 2rem clamp(16px, 4vw, 32px);
  position: relative;
  background: rgba(250,246,241,var(--glass-alpha, 0.72));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  margin: 0.75rem auto;
  box-shadow: 0 8px 32px rgba(44,24,16,0.08);
}

.page-title {
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  margin-bottom: 1.5rem;
}

/* Content block: text + optional image side-by-side */
.content-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
  align-items: center;
}

.content-block .text-col h2 {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  margin-bottom: .75rem;
}
.content-block .text-col p {
  color: var(--muted);
  margin-bottom: .5rem;
}
.content-block .text-col p + p { margin-top: .9rem; }
.content-block .text-col a { color: var(--accent, inherit); text-decoration: underline; text-underline-offset: 2px; }
.content-block.no-img .text-col { max-width: 46rem; }
/* V3.33 About photo gallery */
.about-gal-main { position: relative; }
.about-gal-main img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); display: block; }
.about-gal-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.75); color: var(--text); font-size: 22px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.about-gal-nav.prev { left: 10px; } .about-gal-nav.next { right: 10px; }
.about-gal-nav:hover { background: rgba(255,255,255,.95); }
.about-gal-thumbs { display: flex; gap: 8px; margin-top: 10px; justify-content: center; }
.about-gal-thumbs button { padding: 0; border: 2px solid transparent; border-radius: 8px; background: none; cursor: pointer; opacity: .7; }
.about-gal-thumbs button.on { border-color: var(--accent); opacity: 1; }
.about-gal-thumbs img { width: 60px; height: 72px; object-fit: cover; border-radius: 6px; display: block; }
.content-block .text-col ul {
  padding-left: 1.2rem;
  color: var(--muted);
}
.content-block .text-col li {
  margin-bottom: .25rem;
}

.content-block .img-col img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Card grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(44,24,16,.12);
}
.card h3 {
  font-size: 1.15rem;
  margin: 0 0 .5rem;
}
.card p {
  color: var(--muted);
  margin: 0;
  font-size: .9rem;
}
.card-img {
  width: 100%;
  border-radius: calc(var(--radius) - 4px);
  margin-bottom: 1rem;
}

/* Info box (empty states, errors) */
.info-box {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  color: var(--muted);
}


/* =========================================
   06) COMPONENTS (CONTACT, BUTTONS, SOCIAL)
   ========================================= */

address {
  font-style: normal;
  color: var(--muted);
  line-height: 1.8;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: .6rem 1.2rem;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  font-size: .9rem;
  transition: opacity .2s;
}
.btn:hover {
  opacity: .85;
  text-decoration: none;
}

/* Social links */
.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}
.social-links a {
  color: var(--accent);
  font-weight: 500;
  font-size: .9rem;
}
.social-links a:hover {
  color: var(--link);
}


/* =========================================
   07) GALLERY (MASONRY GRID, FILTERS, LIGHTBOX)
   ========================================= */

/* Filter bar */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2rem;
}
.filter-btn {
  padding: .4rem 1rem;
  border: 1.5px solid var(--accent);
  border-radius: 20px;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font-size: .85rem;
  font-weight: 500;
  transition: all .2s;
}
.filter-btn.active,
.filter-btn:hover {
  background: var(--accent);
  color: #fff;
}

/* Masonry grid */
.gallery-grid {
  columns: 3;
  column-gap: 1rem;
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: var(--surface);
}
.gallery-item img {
  width: 100%;
  display: block;
  transition: transform .3s;
}
.gallery-item:hover img {
  transform: scale(1.03);
}
.gallery-item .overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: .75rem;
  background: linear-gradient(transparent, rgba(44,24,16,.7));
  color: #fff;
  opacity: 0;
  transition: opacity .3s;
}
.gallery-item:hover .overlay {
  opacity: 1;
}
.gallery-item .overlay strong {
  font-size: .9rem;
}
.gallery-item .overlay small {
  opacity: .85;
}

/* Status badge */
.gallery-badge {
  position: absolute;
  top: .5rem;
  right: .5rem;
  padding: .2rem .6rem;
  background: rgba(44,24,16,.7);
  color: #fff;
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  border-radius: 4px;
}

/* Placeholder for items with no image */
.gallery-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: .85rem;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(44,24,16,.92);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox img {
  max-width: 90vw;
  max-height: 75vh;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  color: #fff;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  opacity: .8;
  transition: opacity .2s;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-caption {
  margin-top: 1rem;
  text-align: center;
  color: #fff;
  max-width: 600px;
}
.lightbox-caption h3 {
  margin: 0 0 .25rem;
  font-size: 1.1rem;
}
.lightbox-caption p {
  margin: 0;
  opacity: .8;
  font-size: .9rem;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.15);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.lightbox-nav:hover { background: rgba(255,255,255,.25); }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }


/* =========================================
   08) SHOP (PRODUCT GRID, BUY BUTTONS)
   ========================================= */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(44,24,16,.12);
}
.product-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.product-placeholder {
  width: 100%;
  aspect-ratio: 1;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: .85rem;
}
.product-info {
  padding: 1.25rem;
}
.product-name {
  font-size: 1.1rem;
  margin: 0 0 .5rem;
}
.product-price {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 0 .5rem;
}
.product-desc {
  color: var(--muted);
  font-size: .85rem;
  margin: 0 0 1rem;
}
.buy-btn {
  display: inline-block;
  width: 100%;
  text-align: center;
  padding: .75rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: opacity .2s;
  text-decoration: none;
}
.buy-btn:hover {
  opacity: .85;
  text-decoration: none;
}
.buy-btn:disabled,
.buy-btn.sold-out {
  background: var(--muted);
  cursor: not-allowed;
  opacity: .6;
}


/* =========================================
   09) LEARN (RESOURCE CARDS, INTERACTIVE TOOLS)
   ========================================= */

/* Category/type filter (reuses .filter-btn from gallery) */
.learn-categories {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2rem;
}

/* Resource cards */
.learn-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
}
.learn-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(44,24,16,.12);
}
.learn-card .media {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--surface-2);
}
.learn-card .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.learn-card .play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #fff;
  background: rgba(44,24,16,.3);
  transition: background .2s;
}
.learn-card:hover .play-icon {
  background: rgba(44,24,16,.5);
}
.learn-card .content {
  padding: 1.25rem;
}
.learn-card .tag {
  display: inline-block;
  padding: .2rem .6rem;
  background: var(--accent);
  color: #fff;
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
  border-radius: 4px;
  margin-bottom: .5rem;
}
.learn-card h3 {
  font-size: 1.05rem;
  margin: 0 0 .5rem;
}
.learn-card p {
  color: var(--muted);
  margin: 0;
  font-size: .85rem;
}
.learn-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: .75rem;
}
.learn-tag {
  padding: .15rem .5rem;
  background: var(--surface-2);
  color: var(--muted);
  font-size: .7rem;
  border-radius: 4px;
}

/* Interactive tools section */
.tools-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(44,24,16,.08);
}
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.tool-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.tool-card h3 {
  font-size: 1.1rem;
  margin: 0 0 .5rem;
}
.tool-card > p {
  color: var(--muted);
  font-size: .85rem;
  margin: 0 0 1.25rem;
}

/* Tool form inputs */
.tool-form {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.tool-form label {
  font-size: .85rem;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.tool-form input,
.tool-form select {
  padding: .5rem .75rem;
  border: 1.5px solid var(--surface-2);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: .9rem;
  font-family: inherit;
  transition: border-color .2s;
}
.tool-form input:focus,
.tool-form select:focus {
  outline: none;
  border-color: var(--accent);
}
.tool-form .calc-btn {
  padding: .6rem 1rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  transition: opacity .2s;
  margin-top: .25rem;
}
.tool-form .calc-btn:hover {
  opacity: .85;
}

/* Tool results */
.tool-result {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--bg);
  border-radius: 8px;
  border: 1.5px solid var(--surface-2);
}
.tool-result h4 {
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--accent);
  margin: 0 0 .5rem;
}
.tool-result p,
.tool-result table {
  font-size: .85rem;
  color: var(--muted);
  margin: 0;
}
.tool-result table {
  width: 100%;
  border-collapse: collapse;
}
.tool-result th,
.tool-result td {
  text-align: left;
  padding: .35rem .5rem;
  border-bottom: 1px solid var(--surface-2);
}
.tool-result th {
  color: var(--text);
  font-weight: 600;
}

/* Glaze ingredient rows */
.ingredient-row {
  display: grid;
  grid-template-columns: 1fr 80px 36px;
  gap: .5rem;
  align-items: end;
}
.ingredient-row .remove-btn {
  background: none;
  border: 1px solid var(--muted);
  border-radius: 6px;
  color: var(--muted);
  cursor: pointer;
  font-size: .85rem;
  padding: .5rem;
  transition: color .2s, border-color .2s;
}
.ingredient-row .remove-btn:hover {
  color: #c0392b;
  border-color: #c0392b;
}
.add-ingredient-btn {
  background: none;
  border: 1.5px dashed var(--accent);
  border-radius: 8px;
  color: var(--accent);
  padding: .5rem;
  cursor: pointer;
  font-size: .85rem;
  font-weight: 500;
  transition: background .2s;
}
.add-ingredient-btn:hover {
  background: rgba(196,112,74,.08);
}


/* =========================================
   10) FOOTER
   ========================================= */

.site-footer {
  background: var(--surface);
  padding: 2rem 0 1.25rem;
  margin-top: 4rem;
  border-top: 1px solid rgba(44,24,16,.08);
  position: relative;
  z-index: 1;
}
/* V3.34: the quote for the day, then three short columns */
.footer-quote {
  margin: 0 auto 1.75rem;
  max-width: 40rem;
  text-align: center;
}
.footer-quote blockquote { margin: 0; }
.footer-quote p {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  line-height: 1.5;
  color: var(--text);
}
.footer-quote figcaption { margin-top: .4rem; color: var(--muted); font-size: .85rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.2fr;
  gap: 1.25rem 2rem;
  margin-bottom: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(44,24,16,.08);
}
.footer-heading {
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .5rem;
}
.footer-brand p, .footer-contact p { color: var(--text); font-size: .92rem; margin: 0 0 .3rem; }
.footer-contact .footer-contact-note { color: var(--muted); }
.footer-contact a { color: var(--link); }
.footer-icons { display: flex; gap: .6rem; margin: .35rem 0 .45rem !important; }
.footer-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(44,24,16,.06); color: var(--text) !important; transition: background .15s, color .15s; }
.footer-icon:hover { background: var(--accent); color: #fff !important; }
.footer-icon svg { width: 20px !important; height: 20px !important; flex: none; }
.footer-links {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1rem;
}
.footer-links a {
  color: var(--text);
  font-size: .92rem;
}
.footer-links a:hover {
  color: var(--link);
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-contact { grid-column: 1 / -1; }
}

.legal {
  text-align: center;
  color: var(--muted);
  font-size: .8rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(44,24,16,.08);
}


/* =========================================
   11) MOBILE BOTTOM TAB BAR
   ========================================= */

.bottom-tabs {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--tab-bar-height);
  background: rgba(250,246,241,.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(44,24,16,.08);
  justify-content: space-around;
  align-items: center;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 12px;
  color: var(--muted);
  text-decoration: none;
  font-size: .65rem;
  font-weight: 500;
  border: none;
  background: none;
  cursor: pointer;
  transition: color .2s;
}
.tab-item svg {
  width: 22px;
  height: 22px;
}
.tab-item.active,
.tab-item:hover {
  color: var(--text);
}
.tab-item.active svg {
  stroke: var(--accent);
}


/* =========================================
   12) REVEAL ANIMATION
   ========================================= */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Artistic reveal variants */
.reveal-left {
  opacity: 0;
  transform: translateX(-40px) rotate(-1deg);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal-right {
  opacity: 0;
  transform: translateX(40px) rotate(1deg);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal-left.visible,
.reveal-right.visible,
.reveal-scale.visible {
  opacity: 1;
  transform: none;
}

/* Lazy images: start transparent, fade in */
img.lazy {
  opacity: 0;
  transition: opacity .4s ease;
}
img.lazy[src] {
  opacity: 0;
}
img:not(.lazy) {
  opacity: 1;
}


/* =========================================
   13) RESPONSIVE BREAKPOINTS
   ========================================= */

/* Desktop: show inline nav, hide hamburger + drawer + tabs */
@media (min-width: 768px) {
  .desktop-nav {
    display: block;
  }
  .hamburger,
  .nav-drawer {
    display: none !important;
  }
  .bottom-tabs {
    display: none !important;
  }
  .content-block {
    grid-template-columns: 1fr 1fr;
  }
  .content-block.no-img,
  .content-block.no-img.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .content-block.reverse {
    direction: rtl;
  }
  .content-block.reverse > * {
    direction: ltr;
  }
}

/* Mobile: show hamburger + tabs, hide desktop nav */
@media (max-width: 767px) {
  .bottom-tabs {
    display: flex;
  }
  .hamburger {
    display: flex;
  }
  .desktop-nav {
    display: none;
  }
  /* Add bottom padding for tab bar */
  .site-footer {
    padding-bottom: calc(var(--tab-bar-height) + 1rem);
  }
  /* Gallery: 2 columns on tablet, 1 on phone */
  .gallery-grid {
    columns: 2;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    columns: 1;
  }
}


/* =========================================
   14) REDUCED MOTION
   ========================================= */

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .card, .product-card, .learn-card, .gallery-item img {
    transition: none;
  }
  img.lazy {
    transition: none;
  }
  .lightbox {
    transition: none;
  }
}

/* =========================================
   16) ADMIN INBOX — Phone-uploaded photos
   ========================================= */

.page-inbox {
  padding-top: 1rem;
}

.inbox-login {
  text-align: center;
  max-width: 460px;
  margin: 0 auto;
}
.inbox-login .btn {
  margin-top: 1rem;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

.inbox-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(44, 24, 16, 0.12);
}
.inbox-header h1 {
  margin: 0;
}
.inbox-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: rgba(44, 24, 16, 0.7);
}
.inbox-meta .inbox-user {
  font-variant-numeric: tabular-nums;
  opacity: 0.8;
}

.inbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.inbox-card {
  display: flex;
  flex-direction: column;
  background: rgba(250, 246, 241, 0.92);
  border: 1px solid rgba(44, 24, 16, 0.1);
  border-radius: 12px;
  box-shadow: 0 6px 22px rgba(44, 24, 16, 0.08);
  overflow: hidden;
}

.inbox-thumb {
  position: relative;
  width: 100%;
  background: #efe7dc;
  overflow: hidden;
}
.inbox-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.inbox-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 0.75rem;
  padding: 0.85rem 0.9rem 0.6rem;
}
.inbox-fields label {
  display: flex;
  flex-direction: column;
  font-size: 0.78rem;
  color: rgba(44, 24, 16, 0.7);
  gap: 0.2rem;
}
.inbox-fields label.full {
  grid-column: 1 / -1;
}
.inbox-fields input,
.inbox-fields select,
.inbox-fields textarea {
  font: inherit;
  font-size: 0.92rem;
  color: var(--text, #2C1810);
  padding: 0.4rem 0.55rem;
  border: 1px solid rgba(44, 24, 16, 0.18);
  border-radius: 6px;
  background: #fff;
  width: 100%;
  box-sizing: border-box;
}
.inbox-fields textarea {
  resize: vertical;
  min-height: 56px;
}

.inbox-actions {
  display: flex;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem 0.9rem;
  align-items: center;
  justify-content: flex-end;
}
.inbox-actions .btn {
  padding: 0.5rem 1rem;
  font-size: 0.92rem;
  border: 0;
  cursor: pointer;
  font-weight: 600;
}
.inbox-actions .btn-link {
  background: none;
  border: 0;
  color: rgba(44, 24, 16, 0.7);
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  font: inherit;
  font-size: 0.88rem;
}
.inbox-actions .btn-link.danger {
  color: #B0492E;
}
.inbox-actions .btn-link:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {
  .inbox-fields {
    grid-template-columns: 1fr;
  }
}


/* =========================================
   17) CART (Header icon + Slide-in Drawer)
   ========================================= */

.cart-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-right: 0.5rem;
  background: transparent;
  border: 0;
  color: var(--text);
  cursor: pointer;
  border-radius: 8px;
  transition: background-color .15s ease;
}
.cart-icon:hover {
  background: rgba(196, 112, 74, 0.12);
}
.cart-icon svg {
  width: 22px;
  height: 22px;
}
.cart-badge {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  border-radius: 9px;
  pointer-events: none;
}

.cart-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(44, 24, 16, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 998;
}
.cart-drawer-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(380px, 92vw);
  background: var(--bg);
  border-left: 1px solid var(--surface-2);
  box-shadow: -8px 0 24px rgba(44,24,16,.12);
  transform: translateX(100%);
  transition: transform .28s ease;
  display: flex;
  flex-direction: column;
  z-index: 999;
}
.cart-drawer.is-open {
  transform: translateX(0);
}

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--surface-2);
}
.cart-drawer-header h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}
.cart-drawer-close {
  background: none;
  border: 0;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 0 .25rem;
}
.cart-drawer-close:hover {
  color: var(--text);
}

.cart-drawer-list {
  list-style: none;
  margin: 0;
  padding: .5rem 0;
  overflow-y: auto;
  flex: 1;
}
.cart-empty {
  padding: 2rem 1.25rem;
  color: var(--muted);
  text-align: center;
  font-style: italic;
}
.cart-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1.25rem;
  border-bottom: 1px solid var(--surface);
}
.cart-item-info {
  flex: 1;
  min-width: 0;
}
.cart-item-name {
  font-weight: 600;
  color: var(--text);
  font-size: .95rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cart-item-price {
  color: var(--muted);
  font-size: .85rem;
  margin-top: 2px;
}
.cart-item-remove {
  background: none;
  border: 0;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: .25rem .5rem;
  border-radius: 6px;
}
.cart-item-remove:hover {
  color: var(--accent);
  background: rgba(196, 112, 74, 0.1);
}

.cart-drawer-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--surface-2);
  background: var(--surface);
}
.cart-drawer-total {
  font-weight: 600;
  color: var(--text);
  margin-bottom: .75rem;
  min-height: 1.2em;
}
.cart-drawer-checkout {
  width: 100%;
  padding: .85rem;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity .2s;
}
.cart-drawer-checkout:hover:not(:disabled) {
  opacity: .85;
}
.cart-drawer-checkout:disabled {
  background: var(--muted);
  opacity: .5;
  cursor: not-allowed;
}
.cart-drawer-note {
  margin: .5rem 0 0;
  color: var(--muted);
  font-size: .75rem;
  text-align: center;
}

/* Lock body scroll when drawer is open */
body.cart-drawer-open {
  overflow: hidden;
}

@media (max-width: 480px) {
  .cart-icon {
    width: 36px;
    height: 36px;
  }
  .cart-icon svg {
    width: 20px;
    height: 20px;
  }
}

/* =========================================
   18) ADMIN ORDERS — Stripe Fulfillment Queue
   ========================================= */

.page-orders {
  padding-top: 1rem;
}

.orders-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(44, 24, 16, 0.12);
}
.orders-header h1 {
  margin: 0;
}
.orders-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: rgba(44, 24, 16, 0.7);
}
.orders-filters {
  display: flex;
  gap: 0.5rem;
  flex-basis: 100%;
  margin-top: 0.5rem;
}
.order-filter {
  font: inherit;
  font-size: 0.85rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(44, 24, 16, 0.2);
  background: transparent;
  color: var(--text, #2C1810);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.order-filter:hover {
  background: rgba(44, 24, 16, 0.05);
}
.order-filter.active {
  background: var(--text, #2C1810);
  color: var(--bg, #FAF6F1);
  border-color: var(--text, #2C1810);
}

.orders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem;
}

.order-card {
  display: flex;
  flex-direction: column;
  background: rgba(250, 246, 241, 0.94);
  border: 1px solid rgba(44, 24, 16, 0.1);
  border-radius: 12px;
  box-shadow: 0 6px 22px rgba(44, 24, 16, 0.08);
  overflow: hidden;
}

.order-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0.9rem 1rem 0.5rem;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(44, 24, 16, 0.08);
}
.order-total {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.order-date {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  color: rgba(44, 24, 16, 0.65);
}
.order-stripe-link {
  font-size: 0.82rem;
  white-space: nowrap;
  color: var(--accent, #C4704A);
}

.order-card section {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid rgba(44, 24, 16, 0.06);
}
.order-card section h3 {
  margin: 0 0 0.3rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(44, 24, 16, 0.55);
}
.order-card section p {
  margin: 0.15rem 0;
  font-size: 0.92rem;
}
.order-shipping pre {
  margin: 0;
  font: inherit;
  font-size: 0.88rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

.order-items ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.order-items li {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.2rem 0;
  font-size: 0.9rem;
}
.order-item-qty {
  flex: 0 0 auto;
  color: rgba(44, 24, 16, 0.6);
  font-variant-numeric: tabular-nums;
}
.order-item-desc {
  flex: 1 1 auto;
}
.order-item-amt {
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
}

.order-actions {
  padding: 0.7rem 1rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.fulfill-form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.tracking-input {
  flex: 1 1 auto;
  font: inherit;
  font-size: 0.9rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid rgba(44, 24, 16, 0.18);
  border-radius: 6px;
  background: #fff;
  min-width: 0;
}
.order-actions .btn {
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  padding: 0.45rem 1rem;
  font-size: 0.9rem;
}
.fulfill-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  font-size: 0.88rem;
  align-items: baseline;
}
.status-fulfilled {
  color: #4F7A4A;
  font-weight: 600;
}
.tracking code {
  background: rgba(44, 24, 16, 0.07);
  padding: 0.05rem 0.4rem;
  border-radius: 4px;
  font-size: 0.85em;
}

@media (max-width: 480px) {
  .orders-grid {
    grid-template-columns: 1fr;
  }
  .order-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .fulfill-form {
    flex-direction: column;
    align-items: stretch;
  }
}

/* =========================================
   19) COMPOSE — Add product / new photo from phone
   ========================================= */

.page-compose {
  max-width: 640px;
  margin: 0 auto;
  padding: 1rem 1rem 4rem;
}

.compose-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(44, 24, 16, 0.12);
}
.compose-header h1 {
  margin: 0;
}

.compose-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.compose-photo-target {
  display: block;
  width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.compose-photo-picker {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 2.5rem 1rem;
  background: rgba(255, 255, 255, 0.72);
  border: 2px dashed rgba(44, 24, 16, 0.3);
  border-radius: 12px;
  color: rgba(44, 24, 16, 0.7);
  transition: background 0.15s, border-color 0.15s;
}
.compose-photo-target:hover .compose-photo-picker,
.compose-photo-target:focus-visible .compose-photo-picker {
  background: rgba(255, 255, 255, 0.92);
  border-color: var(--accent, #C4704A);
  color: var(--text, #2C1810);
}
.compose-photo-picker svg {
  color: var(--accent, #C4704A);
}
.compose-photo-picker p {
  margin: 0;
  font-size: 0.95rem;
}

.compose-photo-preview {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  background: #efe7dc;
  border: 1px solid rgba(44, 24, 16, 0.1);
}
.compose-photo-preview img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 60vh;
  object-fit: contain;
}
.compose-photo-change {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(250, 246, 241, 0.92);
  border: 1px solid rgba(44, 24, 16, 0.18);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.82rem;
  cursor: pointer;
  font: inherit;
}

.compose-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.72);
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(44, 24, 16, 0.08);
}
.compose-fields label {
  display: flex;
  flex-direction: column;
  font-size: 0.78rem;
  color: rgba(44, 24, 16, 0.7);
  gap: 0.2rem;
}
.compose-fields label.full {
  grid-column: 1 / -1;
}
.compose-fields label em {
  font-style: normal;
  color: var(--accent, #C4704A);
  margin-left: 0.15rem;
}
.compose-fields input,
.compose-fields select,
.compose-fields textarea {
  font: inherit;
  font-size: 0.95rem;
  color: var(--text, #2C1810);
  padding: 0.5rem 0.6rem;
  border: 1px solid rgba(44, 24, 16, 0.18);
  border-radius: 6px;
  background: #fff;
  width: 100%;
  box-sizing: border-box;
}
.compose-fields textarea {
  resize: vertical;
  min-height: 72px;
}

.compose-error {
  background: rgba(176, 73, 46, 0.08);
  border: 1px solid rgba(176, 73, 46, 0.3);
  color: #8a3923;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  margin: 0;
}

.compose-actions {
  display: flex;
  justify-content: flex-end;
}
.compose-actions .btn {
  padding: 0.7rem 1.4rem;
  font-size: 1rem;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}
.compose-actions .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Inbox "+ Add product" button styling (lives in Section 16's structure) */
.inbox-add {
  font-size: 0.85rem;
  padding: 0.35rem 0.85rem;
  text-decoration: none;
  border-radius: 999px;
}

@media (max-width: 480px) {
  .compose-fields {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   20) AUTH NAV + DASHBOARD (V3.6+)
   ========================================= */

/* Sign-in / Dashboard link in the top banner */
.auth-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  margin-right: 0.4rem;
  border-radius: 999px;
  border: 1px solid rgba(44, 24, 16, 0.18);
  color: var(--text, #2C1810);
  background: transparent;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.auth-link:hover {
  background: rgba(44, 24, 16, 0.06);
  text-decoration: none;
}
.auth-link.is-admin {
  background: var(--accent, #C4704A);
  color: #fff;
  border-color: var(--accent, #C4704A);
}
.auth-link.is-admin:hover {
  opacity: 0.88;
  background: var(--accent, #C4704A);
}
.auth-link.is-signed-in {
  color: rgba(44, 24, 16, 0.7);
}

/* V3.45: the home page's Teaching card, with testimonials */
.home-teaching .home-testis h3 { margin: 1.4rem 0 .7rem; font-size: 1.1rem; }
.home-testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .9rem; }
.home-testi { margin: 0; padding: 1.1rem 1.2rem; border-radius: 16px; background: rgba(255,255,255,.65); border: 1px solid rgba(44,24,16,.1); }
.home-testi p { margin: 0 0 .6rem; font-size: 1.02rem; line-height: 1.55; font-style: italic; }
.home-testi p::before { content: '\201C'; } .home-testi p::after { content: '\201D'; }
.home-testi footer { font-size: .88rem; font-weight: 700; color: var(--muted, #7a6a5e); font-style: normal; }
.home-testi footer::before { content: '\2014\00a0'; }
.home-testi-more { margin: .8rem 0 0; text-align: center; }
.home-teach-links { margin: 1.4rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }

/* V3.45: signed in, the top right is your initials and name; a click opens the account menu */
.auth-link.is-account { gap: .4rem; padding: .2rem .55rem .2rem .2rem; color: var(--text, #2C1810); background: rgba(255,255,255,.6); border-color: rgba(44,24,16,.18); }
.auth-link.is-account.is-admin { background: rgba(255,255,255,.6); color: var(--text, #2C1810); border-color: var(--accent, #C4704A); }
.auth-link.is-account:hover { background: rgba(255,255,255,.9); opacity: 1; }
.acct-avatar { display: inline-grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--accent, #C4704A); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .02em; flex: none; }
.acct-chev { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: .6; }
.acct-menu { position: fixed; z-index: 1200; width: min(300px, calc(100vw - 16px)); max-height: calc(100vh - 80px); overflow: auto; background: #FFFDF9; color: var(--text, #2C1810); border: 1px solid rgba(44,24,16,.12); border-radius: 16px; box-shadow: 0 18px 50px rgba(44,24,16,.22); padding: .5rem; }
.acct-menu[hidden] { display: none; }
.acct-head { display: flex; gap: .65rem; align-items: center; padding: .55rem .6rem .7rem; border-bottom: 1px solid rgba(44,24,16,.1); }
.acct-head .acct-avatar { width: 2.4rem; height: 2.4rem; font-size: .9rem; }
.acct-head b { display: block; font-size: .95rem; }
.acct-head small, .acct-links small { display: block; color: var(--muted, #7a6a5e); font-size: .76rem; font-weight: 400; overflow-wrap: anywhere; }
.acct-viewing { margin: .5rem .3rem 0; padding: .45rem .6rem; border-radius: 10px; background: rgba(196,112,74,.12); font-size: .82rem; font-weight: 600; }
.acct-links { display: flex; flex-direction: column; padding: .35rem 0; border-bottom: 1px solid rgba(44,24,16,.1); }
.acct-links a { display: block; padding: .5rem .6rem; border-radius: 10px; color: inherit; text-decoration: none; font-size: .9rem; font-weight: 600; }
.acct-links a:hover, .acct-links a:focus-visible { background: rgba(44,24,16,.06); outline: none; }
.acct-view { padding: .6rem .6rem .5rem; border-bottom: 1px solid rgba(44,24,16,.1); font-size: .78rem; color: var(--muted, #7a6a5e); font-weight: 600; }
.acct-view-btns, .viewas-btns { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .35rem; }
.acct-view-btns button, .viewas-btns button { border: 1px solid rgba(44,24,16,.18); background: #fff; color: var(--text, #2C1810); border-radius: 999px; padding: .25rem .65rem; font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; }
.acct-view-btns button.on { background: #2C1810; color: #fff; border-color: #2C1810; }
.acct-out { display: block; width: 100%; margin-top: .35rem; padding: .55rem .6rem; border: 0; border-radius: 10px; background: none; text-align: left; font: inherit; font-size: .9rem; font-weight: 600; color: #A33A24; cursor: pointer; }
.acct-out:hover { background: rgba(163,58,36,.08); }
.viewas-bar { position: sticky; top: 0; z-index: 1300; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .4rem .8rem; padding: .45rem .8rem; background: #2C1810; color: #FAF6F1; font-size: .82rem; font-weight: 600; text-align: center; }
.viewas-bar .viewas-btns { margin: 0; }
.viewas-bar .viewas-btns button { background: transparent; color: #FAF6F1; border-color: rgba(250,246,241,.4); }
.viewas-bar .viewas-btns button.on { background: #C4704A; border-color: #C4704A; }
@media (max-width: 480px) { .auth-link.is-account .acct-name, .auth-link.is-account .acct-chev { display: none; } .auth-link.is-account { padding: .15rem; } }

/* Drawer variant: looks like the rest of the drawer links */
.auth-link-drawer {
  border-radius: 0;
  border: 0;
  margin-right: 0;
  padding: 0.75rem 0;
}

/* Sign-in page */
.page-signin {
  max-width: 480px;
  margin: 1rem auto 4rem;
  padding: 0 1rem;
}
.signin-card {
  background: rgba(250, 246, 241, 0.94);
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
}
.signin-card h1 {
  margin: 0 0 0.5rem;
}
.signin-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 1rem 0;
}
.signin-form input {
  font: inherit;
  font-size: 1rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(44, 24, 16, 0.2);
  border-radius: 8px;
  text-align: center;
}
.signin-form .btn {
  border: 0;
  cursor: pointer;
  font-weight: 600;
  padding: 0.7rem 1rem;
}
.signin-msg {
  margin: 0.6rem 0 0;
  font-size: 0.92rem;
  color: rgba(44, 24, 16, 0.7);
}

/* Google sign-in button — follows Google branding guidelines (white bg, neutral border) */
.btn-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.7rem 1rem;
  background: #fff;
  color: #1f1f1f;
  border: 1px solid rgba(31, 31, 31, 0.18);
  border-radius: 8px;
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.btn-google:hover {
  background: #f8f9fa;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.btn-google:active {
  background: #f1f3f4;
}
.btn-google svg {
  flex: 0 0 auto;
  width: 18px;     /* the global svg { width: 100% } blew the G up to the button's width */
  height: 18px;
}

/* "Or use email instead" disclosure */
.signin-email-fallback {
  margin-top: 1.2rem;
  text-align: left;
  border-top: 1px solid rgba(44, 24, 16, 0.1);
  padding-top: 1rem;
}
.signin-email-fallback summary {
  cursor: pointer;
  font-size: 0.88rem;
  color: rgba(44, 24, 16, 0.7);
  list-style: none;
  padding: 0.25rem 0;
  text-align: center;
}
.signin-email-fallback summary::-webkit-details-marker {
  display: none;
}
.signin-email-fallback summary::before {
  content: '⌄  ';
  display: inline-block;
  transition: transform 0.15s;
}
.signin-email-fallback[open] summary::before {
  transform: rotate(180deg);
}
.signin-msg-email {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  text-align: center;
}

/* Dashboard */
.page-dashboard-wrap {
  padding: 0;
}
.page-dashboard {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem;
}
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(44, 24, 16, 0.12);
}
.dashboard-header h1 {
  margin: 0;
}
.dashboard-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.9rem;
  color: rgba(44, 24, 16, 0.7);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.dashboard-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(44, 24, 16, 0.1);
  border-radius: 14px;
  box-shadow: 0 6px 22px rgba(44, 24, 16, 0.06);
  color: var(--text, #2C1810);
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  min-height: 150px;
}
.dashboard-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(44, 24, 16, 0.12);
  text-decoration: none;
}
.dashboard-card h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}
.dashboard-card p {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(44, 24, 16, 0.7);
  line-height: 1.4;
  flex: 1;
}
.dashboard-card-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent, #C4704A);
}
.dashboard-card-icon svg {
  width: 30px;
  height: 30px;
}
.dashboard-card-arrow {
  position: absolute;
  right: 1rem;
  bottom: 0.85rem;
  font-size: 1.1rem;
  color: var(--accent, #C4704A);
  opacity: 0;
  transition: opacity 0.15s, transform 0.15s;
}
.dashboard-card:hover .dashboard-card-arrow {
  opacity: 1;
  transform: translateX(2px);
}
.dashboard-card.is-accent {
  background: rgba(196, 112, 74, 0.08);
  border-color: rgba(196, 112, 74, 0.25);
}
.dashboard-card.is-coming-soon {
  opacity: 0.6;
  cursor: default;
  background: rgba(44, 24, 16, 0.03);
}
.dashboard-card.is-coming-soon:hover {
  transform: none;
  box-shadow: 0 6px 22px rgba(44, 24, 16, 0.06);
}
.dashboard-card-tag {
  position: absolute;
  right: 1rem;
  bottom: 0.85rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(44, 24, 16, 0.55);
  background: rgba(44, 24, 16, 0.06);
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
}

.dashboard-signin,
.dashboard-noadmin {
  max-width: 480px;
  margin: 1rem auto;
  text-align: center;
}

@media (max-width: 480px) {
  .auth-link {
    font-size: 0.78rem;
    padding: 0.3rem 0.7rem;
    margin-right: 0.2rem;
  }
}

/* =========================================
   21) HERO / FEED / ABOUT (V3.9+)
   ========================================= */

/* Hero background image (applied dynamically by applyHeroPhoto) */
.hero-bg {
  background-color: rgba(44, 24, 16, 0.05);
  background-repeat: no-repeat;
}

/* "From the studio" strip on the home page */
.feed-section {
  margin-top: 3rem;
}
.feed-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 0.85rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 0 1rem;
  -webkit-overflow-scrolling: touch;
}
.feed-tile {
  position: relative;
  scroll-snap-align: start;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 14px rgba(44, 24, 16, 0.1);
}
.feed-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Dedicated /#/feed route — full grid */
.feed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.85rem;
  margin-top: 1.5rem;
}
.feed-grid .feed-tile {
  scroll-snap-align: none;
}

/* "Studio gallery" block on /#/about */
.about-photos-section {
  margin-top: 3rem;
}
.about-photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}
.about-photo-tile {
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 3px 12px rgba(44, 24, 16, 0.08);
}
.about-photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 480px) {
  .feed-strip {
    grid-auto-columns: 70%;
  }
}

/* =========================================
   22) CAPACITOR ADMIN APP CONTEXT (V3.10+)
   - Hides public-website chrome inside the native Capacitor app.
   - Shows admin-only chrome that would be wrong on the public website.
   ========================================= */

body:not(.is-capacitor) [data-context="app"]    { display: none !important; }
body.is-capacitor       [data-context="public"] { display: none !important; }

/* V3.11: the Capacitor app is a proper iOS-style admin launcher.
   Hide every visual element that belongs to the public website. */
body.is-capacitor #desert-bg,
body.is-capacitor #bottom-tabs,
body.is-capacitor #desktop-nav,
body.is-capacitor #site-header .hamburger,
body.is-capacitor .skip-link {
  display: none !important;
}

/* Solid app background — replaces the parallax. */
body.is-capacitor {
  background: var(--bg, #FAF6F1);
}

/* Slim app-style top banner */
body.is-capacitor #site-header {
  background: #fff;
  border-bottom: 1px solid rgba(44, 24, 16, 0.08);
  box-shadow: 0 1px 3px rgba(44, 24, 16, 0.04);
  padding: env(safe-area-inset-top) 0 0;
}
body.is-capacitor .top-banner {
  padding: 0.5rem 1rem;
  min-height: 48px;
}
body.is-capacitor .brand {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text, #2C1810);
}
body.is-capacitor .brand .logo-animated {
  display: none; /* drop the website's SVG logo, use plain text */
}
body.is-capacitor .brand::after {
  content: 'MojoePots Admin';
}

/* Slim auth-link in the app banner */
body.is-capacitor .auth-link {
  margin-right: 0;
  padding: 0.3rem 0.75rem;
  font-size: 0.78rem;
}

/* Body uses full height now that hero+footer are gone */
body.is-capacitor #app {
  padding: 0;
  padding-bottom: env(safe-area-inset-bottom);
  min-height: calc(100vh - 48px - env(safe-area-inset-top));
}
body.is-capacitor .page-section,
body.is-capacitor .page-dashboard,
body.is-capacitor .page-dashboard-wrap {
  margin: 0 !important;
  padding: 1rem !important;
  max-width: 100% !important;
}

/* Dashboard restyled as an app launcher: bigger cards, vertical-first */
body.is-capacitor .dashboard-grid {
  grid-template-columns: 1fr;
  gap: 0.85rem;
}
@media (min-width: 600px) {
  body.is-capacitor .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
body.is-capacitor .dashboard-card {
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  min-height: 80px;
  border-radius: 14px;
  background: #fff;
}
body.is-capacitor .dashboard-card-icon {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
}
body.is-capacitor .dashboard-card h2 {
  margin: 0;
  font-size: 1rem;
}
body.is-capacitor .dashboard-card p {
  font-size: 0.82rem;
  margin: 0.1rem 0 0;
}
body.is-capacitor .dashboard-card-arrow {
  position: static;
  margin-left: auto;
  opacity: 0.5;
}
body.is-capacitor .dashboard-card-tag {
  position: static;
  margin-left: auto;
}

/* Header tweaks for admin pages — single back-link instead of website-style header */
.admin-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.88rem;
  color: var(--accent, #C4704A);
  text-decoration: none;
  margin-bottom: 0.85rem;
  padding: 0.25rem 0;
}
.admin-back-link:hover {
  text-decoration: underline;
}
body:not(.is-capacitor) .admin-back-link {
  display: none; /* website still uses the regular nav, not this back-link */
}

/* =========================================
   23) FROM INSTAGRAM (V3.17+)
   Horizontal strip of cached IG posts on the home page.
   ========================================= */
.ig-section {
  margin-top: 3rem;
}
.ig-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 0.85rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 0 1rem;
  -webkit-overflow-scrolling: touch;
}
.ig-tile {
  position: relative;
  scroll-snap-align: start;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 14px rgba(44, 24, 16, 0.1);
  display: block;
}
.ig-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ig-tile-video {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 0.75rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
}
@media (max-width: 480px) {
  .ig-strip { grid-auto-columns: 70%; }
}


/* =========================================
   24) LEARN — LESSONS (V3.18+)
   Lesson list on #/learn and the lesson page at #/learn/<id>
   ========================================= */

.modules-section {
  margin-bottom: 2.5rem;
}
.modules-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.modules-head .page-title {
  margin-bottom: 1rem;
}
.modules-progress {
  color: var(--muted);
  font-size: .85rem;
}
.module-track {
  margin-bottom: 1.75rem;
}
.module-track-title {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--accent);
  margin: 0 0 .6rem;
}
.module-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: .75rem;
}
.module-card {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  height: 100%;
  padding: 1rem 1.1rem;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--text);
  transition: transform .2s, box-shadow .2s;
}
.module-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(44,24,16,.12);
  text-decoration: none;
}
.module-num {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  font-weight: 700;
  font-size: .9rem;
}
.module-card.is-done .module-num {
  background: var(--accent);
  color: #fff;
}
.module-text {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  min-width: 0;
}
.module-title {
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.3;
}
.module-summary {
  color: var(--muted);
  font-size: .85rem;
  line-height: 1.45;
}
.module-meta {
  color: var(--muted);
  font-size: .75rem;
}
.module-meta strong {
  color: var(--accent);
}
.draft-badge {
  display: inline-block;
  vertical-align: middle;
  padding: .05rem .45rem;
  border-radius: 4px;
  border: 1px dashed var(--muted);
  color: var(--muted);
  font-size: .65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* Lesson page */
.module-page {
  max-width: 820px;
}
.module-back {
  display: inline-block;
  font-size: .85rem;
  margin-bottom: 1rem;
}
.module-kicker {
  color: var(--accent);
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin: 0 0 .35rem;
}
.module-h1 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.2;
  margin: 0 0 .6rem;
}
.module-lede {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 1.5rem;
}
.module-body {
  font-size: 1rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}
.module-body h3 {
  font-size: 1.25rem;
  margin: 2rem 0 .6rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(44,24,16,.1);
}
.module-body h3:first-child {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}
.module-body h4 {
  font-size: 1.05rem;
  margin: 1.4rem 0 .4rem;
}
.module-body p {
  margin: 0 0 .9rem;
}
.module-body ul,
.module-body ol {
  padding-left: 1.4rem;
  margin: 0 0 1rem;
}
.module-body li {
  margin-bottom: .35rem;
}
.module-body ol > li::marker {
  color: var(--accent);
  font-weight: 700;
}
.module-body code {
  background: var(--surface-2);
  border-radius: 4px;
  padding: .05rem .35rem;
  font-size: .9em;
}
.module-body hr {
  border: 0;
  border-top: 1px solid rgba(44,24,16,.12);
  margin: 1.75rem 0;
}
.module-loading {
  color: var(--muted);
}

/* Callouts: > **Tip:** / > **Safety:** / > **Why:** */
.module-callout {
  margin: 1rem 0 1.25rem;
  padding: .85rem 1rem;
  border-radius: 10px;
  border-left: 4px solid var(--muted);
  background: var(--surface);
}
.module-callout p:last-child,
.module-callout ul:last-child {
  margin-bottom: 0;
}
.module-callout.callout-tip  { border-left-color: #5E8C61; background: rgba(94,140,97,.10); }
.module-callout.callout-warn { border-left-color: #B5462E; background: rgba(181,70,46,.09); }
.module-callout.callout-why  { border-left-color: var(--accent); background: rgba(196,112,74,.09); }

/* Checklist: - [ ] item */
.module-checklist {
  list-style: none;
  padding-left: 0 !important;
}
.module-checklist label {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  cursor: pointer;
  padding: .45rem .6rem;
  border-radius: 8px;
  background: var(--surface);
}
.module-checklist input {
  flex: 0 0 auto;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: .2rem;
  accent-color: var(--accent);
}
.module-checklist input:checked + span {
  color: var(--muted);
  text-decoration: line-through;
}

/* Pictures and videos */
.module-figure {
  margin: 1.25rem 0;
}
.module-figure figcaption {
  color: var(--muted);
  font-size: .85rem;
  margin-top: .4rem;
  text-align: center;
}
.module-img {
  display: block;
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: var(--radius);
  background: var(--surface-2);
}
.module-video {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}
.module-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Done button + previous / next */
.module-finish {
  margin: 2rem 0 1.5rem;
  text-align: center;
}
.module-done-btn {
  border: 0;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.module-done-btn.is-done {
  background: var(--surface-2);
  color: var(--text);
}
.module-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  border-top: 1px solid rgba(44,24,16,.1);
  padding-top: 1rem;
}
.module-nav-link {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  padding: .75rem .9rem;
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  font-size: .9rem;
}
.module-nav-link span {
  color: var(--muted);
  font-weight: 500;
  font-size: .75rem;
}
.module-nav-link.next {
  text-align: right;
  grid-column: 2;
}
.module-nav-link:hover {
  text-decoration: none;
  box-shadow: var(--shadow);
}
@media (max-width: 480px) {
  .module-list { grid-template-columns: 1fr; }
  .module-nav { grid-template-columns: 1fr; }
  .module-nav-link.next { grid-column: 1; }
}

/* V3.27 interactive lessons: a self-contained lesson page in an iframe as tall as the lesson
   (it reports its height; see mountInteractiveLesson in app.js). Transparent, so the frosted
   lesson pane shows through. */
.module-interactive {
  display: block;
  width: 100%;
  min-height: 70vh;
  border: 0;
  background: transparent;
}
.module-interactive-alt {
  margin: .5rem 0 0;
  text-align: right;
  font-size: .82rem;
}

/* Tables in lessons */
.module-table {
  overflow-x: auto;
  margin: 0 0 1.1rem;
}
.module-table table {
  border-collapse: collapse;
  min-width: 60%;
  font-size: .9rem;
  background: var(--surface);
  border-radius: 10px;
  overflow: hidden;
}
.module-table th,
.module-table td {
  text-align: left;
  padding: .4rem .75rem;
  border-bottom: 1px solid var(--surface-2);
}
.module-table th {
  font-weight: 600;
  color: var(--text);
}


/* =========================================
   25) GLAZE TAGS (V3.20+) — the glazes on a photo of my work
   ========================================= */

/* the small icon at the bottom right of a photo (glazes.js) */
.card-media, .product-media, .lightbox-media { position: relative; }
.card-media { margin: 0 0 .75rem; }
.card-media .card-img { margin: 0; }
.lightbox-media { display: inline-block; line-height: 0; }
.glaze-tag {
  position: absolute;
  right: .5rem;
  bottom: .5rem;
  z-index: 3;
  width: 26px;
  height: 26px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(44, 24, 16, .38);
  color: rgba(250, 246, 241, .92);
  cursor: pointer;
  opacity: .55;
  transition: opacity .2s, background .2s, transform .2s;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.glaze-tag:hover, .glaze-tag:focus-visible, .glaze-tag[aria-expanded="true"] {
  opacity: 1;
  background: rgba(44, 24, 16, .72);
}
.glaze-tag:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.gallery-item:hover .glaze-tag, .product-card:hover .glaze-tag, .card:hover .glaze-tag { opacity: .85; }
.glaze-tag.is-empty { opacity: .3; background: rgba(44, 24, 16, .2); }
.glaze-tag.is-empty::after {
  content: '+';
  position: absolute;
  right: -2px;
  top: -5px;
  font: 700 11px/1 system-ui, sans-serif;
  color: var(--accent);
}
@media (hover: none) { .glaze-tag { opacity: .7; } }
.lightbox-media .glaze-tag { right: .75rem; bottom: .75rem; width: 30px; height: 30px; }

/* the box it opens */
.glaze-pop {
  position: fixed;
  z-index: 1200;
  width: max-content;
  min-width: 220px;
  max-width: 320px;
  padding: .85rem 1rem .9rem;
  background: var(--bg);
  color: var(--text);
  border: 1px solid rgba(44, 24, 16, .12);
  border-radius: var(--radius);
  box-shadow: 0 12px 34px rgba(44, 24, 16, .22);
  font-size: .88rem;
  line-height: 1.4;
  animation: glaze-pop-in .14s ease-out;
}
@keyframes glaze-pop-in { from { opacity: 0; transform: translateY(4px); } }
.glaze-pop.below { animation-name: glaze-pop-in-below; }
@keyframes glaze-pop-in-below { from { opacity: 0; transform: translateY(-4px); } }
.glaze-pop h4 {
  margin: 0 0 .35rem;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.glaze-pop h4 + * { margin-top: 0; }
.glaze-pop * + h4 { margin-top: .7rem; }
.glaze-pop-x {
  position: absolute;
  top: .3rem;
  right: .45rem;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  padding: .2rem;
}
.glaze-pop-layers { margin: 0; padding-left: 1.2rem; display: grid; gap: .45rem; }
.glaze-pop-layers.one { list-style: none; padding-left: 0; }
.glaze-pop-layers li::marker { color: var(--accent); font-weight: 700; }
.glaze-pop-name b { font-weight: 600; }
.glaze-pop-maker { color: var(--muted); font-size: .8rem; }
.glaze-pop-how { color: var(--muted); font-size: .82rem; }
.glaze-pop-links a { font-size: .82rem; font-weight: 600; color: var(--link); text-decoration: none; }
.glaze-pop-links a:hover { text-decoration: underline; }
.glaze-pop-notes { margin: 0; white-space: pre-line; font-size: .84rem; }
.glaze-pop-edit {
  margin-top: .75rem;
  border: 1px solid rgba(44, 24, 16, .2);
  background: none;
  border-radius: 999px;
  padding: .25rem .8rem;
  font: inherit;
  font-size: .8rem;
  color: var(--link);
  cursor: pointer;
}

/* #/glazes and #/glazes/<id> */
.glaze-page { max-width: 760px; }
.glaze-back { margin: 0 0 .5rem; font-size: .9rem; }
.glaze-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: -.5rem 0 1rem; }
.glaze-tags .tag {
  display: inline-block;
  padding: .15rem .6rem;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
  font-size: .78rem;
}
.glaze-desc { color: var(--text); margin: 0 0 1rem; }
.glaze-maker { color: var(--muted); margin: -.5rem 0 1rem; }
.glaze-page h3 { margin: 1.5rem 0 .5rem; font-size: 1.05rem; }
.glaze-recipe { border-collapse: collapse; min-width: min(360px, 100%); font-size: .95rem; }
.glaze-recipe th, .glaze-recipe td { padding: .35rem .6rem; border-bottom: 1px solid rgba(44, 24, 16, .1); text-align: left; }
.glaze-recipe th { font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.glaze-recipe .num { text-align: right; font-variant-numeric: tabular-nums; }
.glaze-recipe tr.total td { font-weight: 600; border-top: 1.5px solid rgba(44, 24, 16, .3); }
.glaze-recipe tr.sub td { font-style: italic; color: var(--muted); padding-top: .6rem; }
.glaze-notes, .glaze-source { color: var(--muted); font-size: .92rem; }
.glaze-caution {
  margin-top: 1.5rem;
  padding: .7rem .9rem;
  border-left: 3px solid var(--accent);
  background: rgba(196, 112, 74, .08);
  border-radius: 6px;
  font-size: .9rem;
}
.glaze-pieces { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .75rem; }
.glaze-piece { display: grid; gap: .3rem; color: var(--text); text-decoration: none; font-size: .85rem; }
.glaze-piece img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.glaze-index { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.glaze-index a { font-weight: 600; color: var(--link); }
.glaze-index-meta { color: var(--muted); font-size: .88rem; }

/* admin: editing the glazes on a photo (site "Edit glazes" box) */
.glaze-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(20, 12, 8, .45);
}
.glaze-modal-box {
  width: min(560px, 100%);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  background: var(--bg);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .3);
}
.glaze-modal-box h3 { margin: 0 0 .75rem; font-size: 1.05rem; }
.glaze-modal-msg { min-height: 1.2em; color: var(--muted); font-size: .88rem; }
.glaze-modal-actions { display: flex; gap: .6rem; }

/* the glazing editor (glazing-editor.js), shared with the admin app */
.glazing-field { grid-column: 1 / -1; display: grid; gap: .3rem; font-size: .78rem; color: var(--muted); }
.glazing-hint { font-style: normal; opacity: .8; margin-left: .35rem; }
.ge { display: grid; gap: .55rem; color: var(--text); font-size: .92rem; }
.ge-layers { display: grid; gap: .55rem; }
.ge-layer { display: grid; gap: .35rem; padding: .55rem .6rem; border: 1px solid rgba(44, 24, 16, .14); border-radius: 8px; background: rgba(255, 255, 255, .55); }
.ge-row { display: flex; gap: .45rem; align-items: center; }
.ge-num {
  flex: none;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
}
.ge select, .ge input[type="text"], .ge input[type="url"], .ge textarea {
  font: inherit;
  font-size: .92rem;
  padding: .45rem .55rem;
  border: 1px solid rgba(44, 24, 16, .2);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  min-width: 0;
}
.ge-row select { flex: 1; }
.ge-del { flex: none; border: 0; background: none; color: var(--muted); font-size: 1rem; cursor: pointer; padding: .2rem .35rem; }
.ge-over { display: flex; gap: .4rem; align-items: center; font-size: .85rem; color: var(--muted); }
.ge-add { justify-self: start; border: 0; background: none; color: var(--link); font: inherit; font-weight: 600; cursor: pointer; padding: 0; }
.ge-notes-label { display: grid; gap: .3rem; font-size: .78rem; color: var(--muted); }
.ge-notes { resize: vertical; min-height: 70px; }
.ge-new { border-top: 1px dashed rgba(44, 24, 16, .2); padding-top: .5rem; display: grid; gap: .45rem; }
.ge-new-title { margin: 0; font-weight: 600; font-size: .88rem; }
.ge-new-title span { font-weight: 400; color: var(--muted); }
.ge-new-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .45rem; }
.ge-new-grid label { display: grid; gap: .2rem; font-size: .75rem; color: var(--muted); }
.ge-new-grid label.wide { grid-column: 1 / -1; }
.ge-new-actions { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.ge-new-actions .btn { padding: .35rem .9rem; font-size: .88rem; }
.ge-n-cancel { border: 0; background: none; color: var(--muted); cursor: pointer; font: inherit; }
.ge-n-msg { font-size: .82rem; color: var(--muted); }


/* =========================================
   26) CLASS PAGE (V3.23+) — #/class, drawn by class.js
   Calendar, students' work, news, ideas, messages, the roster; the sheet; toasts.
   ========================================= */

.cls-page {
  --k-class: #C4704A;
  --k-open-studio: #5F8A57;
  --k-firing: #A3283A;
  --k-glaze: #3C77A3;
  --k-event: #AE8122;
  --k-closed: #8A817C;
  --cls-line: rgba(44,24,16,.1);
}
.cls-sheet-wrap, .cls-toast {
  --k-class: #C4704A; --k-open-studio: #5F8A57; --k-firing: #A3283A; --k-glaze: #3C77A3; --k-event: #AE8122; --k-closed: #8A817C;
  --cls-line: rgba(44,24,16,.1);
}
.cls-page .page-section + .page-section { margin-top: 1.25rem; }
.cls-page svg[viewBox="0 0 24 24"],
.cls-sheet-wrap svg[viewBox="0 0 24 24"] {
  width: 1.1em;
  height: 1.1em;
  display: inline-block;
  flex: none;
  vertical-align: -0.18em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---- head + tabs */
.cls-head { padding-bottom: 0; }
.cls-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.cls-eyebrow {
  margin: 0;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.cls-title {
  margin: .1rem 0 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.1;
}
.cls-who {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .9rem;
  line-height: 1.2;
}
.cls-who-text { display: flex; flex-direction: column; }
.cls-who small { color: var(--muted); }
.cls-tabs {
  display: flex;
  gap: .25rem;
  margin: 1.1rem calc(-1 * clamp(16px, 4vw, 32px)) 0;
  padding: 0 clamp(16px, 4vw, 32px);
  overflow-x: auto;
  scrollbar-width: none;
  border-top: 1px solid var(--cls-line);
}
.cls-tabs::-webkit-scrollbar { display: none; }
.cls-tab {
  position: relative;
  flex: none;
  padding: .8rem .85rem .75rem;
  color: var(--muted);
  font-weight: 600;
  font-size: .95rem;
  border-bottom: 3px solid transparent;
}
.cls-tab:hover { color: var(--text); text-decoration: none; }
.cls-tab[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }
.cls-tab-dot, a[data-route="class"].has-unread::after {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #D9452B;
  margin-left: .3rem;
  vertical-align: .45em;
  box-shadow: 0 0 0 2px rgba(250,246,241,.9);
}
a[data-route="class"].has-unread::after { content: ''; }
.bottom-tabs a[data-route="class"].has-unread { position: relative; }
.bottom-tabs a[data-route="class"].has-unread::after {
  position: absolute;
  top: 6px;
  left: calc(50% + 6px);
  margin: 0;
}

/* ---- cards and bits */
.cls-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.cls-card-head h2 {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
}
.cls-card-side { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.cls-card-foot { margin: 1rem 0 0; }
.cls-count {
  display: inline-block;
  min-width: 1.6em;
  padding: 0 .45em;
  margin-left: .35rem;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font: 600 .8rem/1.6 system-ui, sans-serif;
  text-align: center;
  vertical-align: .2em;
}
.cls-muted { color: var(--muted); }
.cls-small { font-size: .85rem; }
.cls-lead { margin: -.25rem 0 1rem; }
.cls-slim { padding-top: 1.1rem; padding-bottom: 1.1rem; }
.cls-slim .cls-lead { margin: 0; }
.cls-empty { text-align: center; color: var(--muted); padding: 1.5rem .5rem; margin: 0; }
.cls-empty h2 { color: var(--text); }
.cls-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  padding: 2rem;
  color: var(--muted);
}
.cls-spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--surface-2);
  border-top-color: var(--accent);
  animation: cls-spin .8s linear infinite;
}
@keyframes cls-spin { to { transform: rotate(360deg); } }
.cls-rich p { margin: 0 0 .6rem; }
.cls-rich p:last-child { margin-bottom: 0; }
.cls-rich a { word-break: break-word; }
.cls-row {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.cls-row.is-end { justify-content: flex-end; }
.cls-check {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .9rem;
  color: var(--muted);
  cursor: pointer;
}
.cls-check input { accent-color: var(--accent); width: 1.05rem; height: 1.05rem; }

/* ---- buttons */
.cls-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-height: 40px;
  padding: .5rem 1rem;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, opacity .15s, transform .1s;
}
.cls-btn:hover { background: #B4613C; text-decoration: none; }
.cls-btn:active { transform: translateY(1px); }
.cls-btn:disabled { opacity: .55; cursor: default; }
.cls-btn.is-quiet { background: rgba(255,255,255,.7); color: var(--text); border-color: var(--cls-line); }
.cls-btn.is-quiet:hover { background: #fff; }
.cls-btn.is-small { min-height: 34px; padding: .35rem .75rem; font-size: .85rem; }
.cls-btn.is-danger { color: #A33A24; }
.cls-btn:not(.is-quiet).is-danger { background: #A33A24; color: #fff; }
.cls-link {
  background: none;
  border: 0;
  padding: .25rem 0;
  font: inherit;
  font-size: .9rem;
  font-weight: 600;
  color: var(--link);
  cursor: pointer;
}
.cls-link:hover { text-decoration: underline; }
.cls-link.is-small { font-size: .8rem; font-weight: 500; }
.cls-link.is-danger { color: #A33A24; }
.cls-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--cls-line);
  background: rgba(255,255,255,.75);
  color: var(--text);
  cursor: pointer;
}
.cls-icon-btn:hover { background: #fff; }
.cls-file input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.cls-file { position: relative; cursor: pointer; }
.cls-file:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.cls-chips { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .2rem; margin-bottom: 1rem; scrollbar-width: none; }
.cls-chips.is-wrap { flex-wrap: wrap; overflow: visible; }
.cls-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .35rem .8rem;
  border-radius: 999px;
  border: 1px solid var(--cls-line);
  background: rgba(255,255,255,.65);
  color: var(--text);
  font: inherit;
  font-size: .85rem;
  cursor: pointer;
}
.cls-chip.is-on { background: var(--text); color: var(--bg); border-color: var(--text); }
.cls-chip.is-static { cursor: default; padding-right: .35rem; }
.cls-chip.is-static button { border: 0; background: none; padding: 0 .2rem; color: inherit; cursor: pointer; display: inline-flex; }
.cls-chip[hidden] { display: none; }
.cls-badge {
  display: inline-block;
  padding: .05rem .45rem;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.5;
  vertical-align: .1em;
  white-space: nowrap;
}
.cls-badge.is-instructor { background: #2C1810; color: #FAF6F1; }
.cls-badge.is-student { background: rgba(95,138,87,.16); color: #3F6B38; }
.cls-badge.is-new { background: #D9452B; color: #fff; }
.cls-badge.is-going { background: rgba(95,138,87,.18); color: #3F6B38; }
.cls-avatar {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font: 700 .8rem/1 system-ui, sans-serif;
  color: #fff;
  background: #B0806A;
  letter-spacing: .02em;
}
.cls-avatar[data-hue="1"] { background: #7E8C5B; }
.cls-avatar[data-hue="2"] { background: #5E7F98; }
.cls-avatar[data-hue="3"] { background: #A8744F; }
.cls-avatar[data-hue="4"] { background: #8A6A8E; }
.cls-avatar[data-hue="5"] { background: #C08A3E; }
.cls-avatar.is-instructor { background: #2C1810; box-shadow: 0 0 0 2px var(--accent); }

/* ---- forms */
.cls-form, .cls-compose, .cls-code-form, .cls-request form {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.cls-form label:not(.cls-check):not(.cls-file), .cls-code-form label, .cls-request label {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--muted);
}
.cls-page input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.cls-page select,
.cls-page textarea,
.cls-sheet-wrap input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.cls-sheet-wrap select,
.cls-sheet-wrap textarea {
  width: 100%;
  padding: .6rem .75rem;
  border: 1px solid rgba(44,24,16,.18);
  border-radius: 10px;
  background: rgba(255,255,255,.88);
  color: var(--text);
  font: inherit;
  font-size: 1rem;      /* 16 px: no zoom-on-focus on iPhones */
  font-weight: 400;
  line-height: 1.4;
}
.cls-page textarea, .cls-sheet-wrap textarea { resize: vertical; min-height: 2.6rem; }
.cls-page input:focus, .cls-page select:focus, .cls-page textarea:focus,
.cls-sheet-wrap input:focus, .cls-sheet-wrap select:focus, .cls-sheet-wrap textarea:focus {
  outline: 2px solid rgba(196,112,74,.55);
  outline-offset: 1px;
  border-color: var(--accent);
}
.cls-form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: .75rem; align-items: end; }
.cls-form-msg { margin: 0; font-size: .88rem; min-height: 0; }
.cls-form-msg.is-bad { color: #A33A24; font-weight: 600; }
.cls-form-msg:empty { display: none; }
.cls-form fieldset { border: 0; padding: 0; margin: 0; }
.cls-form legend { font-size: .85rem; font-weight: 600; color: var(--muted); margin-bottom: .4rem; }
.cls-radio label { display: flex !important; flex-direction: row !important; align-items: center; gap: .45rem; font-weight: 400 !important; color: var(--text) !important; font-size: .95rem !important; padding: .2rem 0; }
.cls-radio input { accent-color: var(--accent); width: 1.05rem; height: 1.05rem; }
.cls-glaze-pick input[type="search"] { margin-bottom: .5rem; }
.cls-glaze-pick .cls-chips { max-height: 190px; overflow-y: auto; margin: 0; }
.cls-photo-pick { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.cls-photo-preview { position: relative; }
.cls-photo-preview img { display: block; width: 96px; height: 96px; object-fit: cover; border-radius: 10px; box-shadow: var(--shadow); }
.cls-photo-preview .cls-icon-btn { position: absolute; top: -10px; right: -10px; width: 28px; height: 28px; }
.cls-compose-top { display: flex; align-items: center; gap: .6rem; }
.cls-compose > .cls-row { justify-content: space-between; }

/* ---- sign in + join */
.cls-intro { font-size: 1.05rem; max-width: 62ch; }
.cls-join { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--cls-line); max-width: 520px; }
.cls-join h2 { margin: 0 0 .4rem; font-family: Georgia, 'Times New Roman', serif; font-size: 1.3rem; }
.cls-join > p { color: var(--muted); margin: 0 0 1rem; }
.cls-signin { display: flex; flex-direction: column; gap: .75rem; max-width: 420px; }
.cls-signin p { margin: 0; color: var(--muted); }
.cls-email-signin summary, .cls-request summary { cursor: pointer; color: var(--link); font-size: .9rem; font-weight: 600; }
.cls-email-signin form { display: flex; gap: .5rem; margin-top: .6rem; }
.cls-request { margin-top: 1rem; }
.cls-request form { margin-top: .75rem; }
.cls-code-form { flex-direction: row; flex-wrap: wrap; align-items: flex-end; }
.cls-code-form label { flex: 1 1 160px; }
.cls-code-input { text-transform: uppercase; letter-spacing: .12em; font-weight: 700 !important; }

/* ---- messages from the instructor */
.cls-messages .cls-compose { margin-bottom: 1.25rem; padding: 1rem; border-radius: 14px; background: rgba(255,255,255,.55); border: 1px dashed rgba(196,112,74,.4); }
.cls-msgs { display: flex; flex-direction: column; gap: .75rem; }
.cls-msg {
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: rgba(255,255,255,.62);
  border-left: 4px solid var(--surface-2);
}
.cls-msg.is-pinned { border-left-color: var(--accent); }
.cls-msg.is-new { border-left-color: #D9452B; background: rgba(255,255,255,.85); }
.cls-msg.is-older { display: none; }
.cls-msg header { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: .35rem; }
.cls-msg h3 { margin: 0; font-size: 1.05rem; }
.cls-msg time { color: var(--muted); font-size: .8rem; margin-left: auto; }
.cls-pin { color: var(--accent); display: inline-flex; }

/* ---- events */
.cls-events { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.cls-event {
  --k: var(--k-class);
  display: flex;
  align-items: center;
  gap: .9rem;
  width: 100%;
  padding: .65rem .8rem;
  border: 1px solid var(--cls-line);
  border-left: 4px solid var(--k);
  border-radius: 12px;
  background: rgba(255,255,255,.62);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.cls-event:hover { background: rgba(255,255,255,.9); transform: translateY(-1px); }
.cls-event.is-past { opacity: .6; }
.cls-event.is-cancelled strong { text-decoration: line-through; text-decoration-color: rgba(44,24,16,.5); }
.cls-date {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 3.1rem;
  line-height: 1.05;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
}
.cls-date strong { font-size: 1.45rem; color: var(--k); font-family: Georgia, serif; letter-spacing: 0; }
.cls-event-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .1rem; }
.cls-event-text strong { font-size: 1rem; line-height: 1.25; }
.cls-kind { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--k); }
.cls-event-meta { display: flex; align-items: center; gap: .3rem; color: var(--muted); font-size: .85rem; }
.cls-event-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: .2rem; color: var(--muted); font-size: .78rem; text-align: right; }
.k-class { --k: var(--k-class); }
.k-open-studio { --k: var(--k-open-studio); }
.k-firing { --k: var(--k-firing); }
.k-glaze { --k: var(--k-glaze); }
.k-event { --k: var(--k-event); }
.k-closed { --k: var(--k-closed); }

/* ---- kiln + challenge */
.cls-extras { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.cls-kiln, .cls-challenge { display: flex; gap: .85rem; align-items: flex-start; }
.cls-kiln h3, .cls-challenge h3 { margin: 0 0 .2rem; font-size: 1.02rem; }
.cls-kiln p, .cls-challenge p { margin: 0 0 .3rem; }
.cls-kiln small, .cls-challenge small { color: var(--muted); }
.cls-kiln-icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(160deg, #F2A55B, #C4492B);
  color: #fff;
  font-size: 1.15rem;
  box-shadow: 0 4px 14px rgba(196,73,43,.3);
}
.cls-kiln-icon.is-gold { background: linear-gradient(160deg, #F1CF6B, #B98A22); box-shadow: 0 4px 14px rgba(185,138,34,.3); }
.cls-challenge .cls-row { margin-top: .5rem; }
.cls-challenge-strip {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem .8rem;
  margin: 0 0 1rem;
  border-radius: 10px;
  background: rgba(241,207,107,.25);
  color: #6D5212;
  font-size: .9rem;
}

/* ---- work */
.cls-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: .5rem; }
.cls-tile {
  position: relative;
  padding: 0;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--surface-2);
  cursor: pointer;
}
.cls-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.cls-tile:hover img { transform: scale(1.04); }
.cls-stage {
  position: absolute;
  left: 6px;
  bottom: 6px;
  padding: .05rem .45rem;
  border-radius: 999px;
  background: rgba(44,24,16,.72);
  color: #FAF6F1;
  font-size: .68rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.cls-stage:empty { display: none; }
.cls-stage.is-inline { position: static; flex: none; align-self: flex-start; }
.cls-works {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1rem;
}
.cls-work-btn {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,.7);
  box-shadow: var(--shadow);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.cls-work-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(44,24,16,.14); }
.cls-work-img { position: relative; display: block; aspect-ratio: 4 / 5; background: var(--surface-2); }
.cls-work-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cls-journey { position: absolute; right: 8px; bottom: 8px; display: flex; gap: 3px; }
.cls-journey i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.9); box-shadow: 0 0 2px rgba(0,0,0,.4); }
.cls-lock, .cls-trophy {
  position: absolute;
  top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(44,24,16,.62);
  color: #fff;
  font-size: .8rem;
}
.cls-lock { right: 8px; }
.cls-trophy { left: 8px; background: rgba(185,138,34,.92); }
.cls-work-text { display: flex; flex-direction: column; gap: .1rem; padding: .65rem .8rem .75rem; }
.cls-work-text strong { font-size: .95rem; line-height: 1.25; }
.cls-work-text .cls-muted { font-size: .82rem; }
.cls-work-counts { display: flex; gap: .7rem; font-size: .8rem; color: var(--muted); margin-top: .15rem; }
.cls-work-counts:empty { display: none; }
.cls-work-counts span { display: inline-flex; align-items: center; gap: .2rem; }

/* ---- news */
.cls-news-teaser {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .7rem 0;
  border-top: 1px solid var(--cls-line);
  color: var(--text);
}
.cls-news-teaser:first-of-type { border-top: 0; }
.cls-news-teaser:hover { text-decoration: none; }
.cls-teaser-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cls-news-teaser .cls-muted { font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cls-news-teaser time { color: var(--muted); font-size: .78rem; flex: none; }
.cls-post-card { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.cls-post-head { display: flex; align-items: center; gap: .65rem; margin-bottom: .75rem; }
.cls-post-head > div { flex: 1; min-width: 0; display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; line-height: 1.25; }
.cls-post-head time { color: var(--muted); font-size: .8rem; width: 100%; }
.cls-post-title { margin: 0 0 .4rem; font-size: 1.2rem; font-family: Georgia, 'Times New Roman', serif; }
.cls-post-img { display: block; margin: .8rem 0 0; }
.cls-post-img img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: cover; border-radius: 12px; }
.cls-menu { position: relative; }
.cls-menu summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  color: var(--muted);
}
.cls-menu summary::-webkit-details-marker { display: none; }
.cls-menu summary:hover { background: rgba(44,24,16,.06); }
.cls-menu > div {
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 20;
  min-width: 190px;
  padding: .35rem;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(44,24,16,.18);
  display: flex;
  flex-direction: column;
}
.cls-menu > div button {
  border: 0;
  background: none;
  padding: .55rem .7rem;
  border-radius: 8px;
  text-align: left;
  font: inherit;
  font-size: .9rem;
  color: var(--text);
  cursor: pointer;
}
.cls-menu > div button:hover { background: var(--surface); }
.cls-menu > div button.is-danger { color: #A33A24; }
.cls-reacts { display: flex; gap: .35rem; flex-wrap: wrap; margin-top: .85rem; }
.cls-react {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  min-height: 32px;
  padding: .2rem .6rem;
  border-radius: 999px;
  border: 1px solid var(--cls-line);
  background: rgba(255,255,255,.6);
  font: inherit;
  font-size: .9rem;
  cursor: pointer;
  transition: transform .1s, background .15s;
}
.cls-react:hover:not(:disabled) { background: #fff; }
.cls-react:active:not(:disabled) { transform: scale(.94); }
.cls-react:disabled { cursor: default; }
.cls-react.is-on { background: rgba(196,112,74,.14); border-color: rgba(196,112,74,.55); }
.cls-react-n { font-size: .8rem; font-weight: 600; color: var(--muted); }
.cls-thread { margin-top: .9rem; padding-top: .6rem; border-top: 1px solid var(--cls-line); display: flex; flex-direction: column; gap: .6rem; }
.cls-thread > .cls-link { align-self: flex-start; }
.cls-comment { display: flex; gap: .55rem; }
.cls-comment .cls-avatar, .cls-comment-form .cls-avatar { width: 30px; height: 30px; font-size: .7rem; }
.cls-comment-body { flex: 1; min-width: 0; padding: .45rem .7rem; border-radius: 12px; background: rgba(255,255,255,.6); font-size: .93rem; }
.cls-comment-meta { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; font-size: .82rem; }
.cls-comment-meta time { color: var(--muted); font-size: .75rem; }
.cls-comment-meta .cls-link { margin-left: auto; }
.cls-comment-body .cls-rich p, .cls-comment-body p { margin: .1rem 0 0; }
.cls-comment-form { display: flex; align-items: flex-end; gap: .5rem; }
.cls-comment-form textarea { flex: 1; min-height: 40px !important; resize: none !important; overflow-y: auto; }
.cls-thread-signin { margin: 0; font-size: .88rem; }

/* ---- calendar */
.cls-cal-bar { display: flex; align-items: center; gap: .6rem; margin-bottom: .75rem; }
.cls-cal-bar h3 { margin: 0; min-width: 9.5em; text-align: center; font-size: 1.1rem; }
.cls-cal-bar .cls-link { margin-left: auto; }
.cls-cal {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}
.cls-cal-dow { text-align: center; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding-bottom: .2rem; }
.cls-cal-cell {
  position: relative;
  min-height: 92px;
  padding: .3rem;
  border: 1px solid transparent;
  border-radius: 10px;
  background: rgba(255,255,255,.5);
  color: var(--text);
  font: inherit;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: .2rem;
  cursor: pointer;
  overflow: hidden;
}
.cls-cal-cell:hover { background: rgba(255,255,255,.85); }
.cls-cal-cell.is-out { background: transparent; cursor: default; }
.cls-cal-cell.is-sel { border-color: var(--text); background: #fff; }
.cls-cal-num { font-size: .82rem; font-weight: 600; line-height: 1; padding: .15rem .2rem; align-self: flex-start; border-radius: 999px; }
.cls-cal-cell.is-today .cls-cal-num { background: var(--accent); color: #fff; padding: .2rem .4rem; }
.cls-cal-evs { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cls-cal-ev {
  display: block;
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--k);
  color: #fff;
  font-size: .7rem;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cls-cal-ev.is-cancelled { opacity: .5; text-decoration: line-through; }
.cls-cal-more { font-size: .68rem; color: var(--muted); padding-left: 3px; }
.cls-legend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin: .8rem 0 0; font-size: .8rem; color: var(--muted); }
.cls-legend span { display: inline-flex; align-items: center; gap: .35rem; }
.cls-legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--k); }
.cls-day { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--cls-line); }
.cls-day h3 { margin: 0 0 .6rem; font-size: 1rem; }
.cls-day .cls-muted { margin: 0; }

/* ---- ideas */
.cls-ideas { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .75rem; }
.cls-idea { display: flex; gap: .85rem; align-items: flex-start; padding: .8rem; border-radius: 14px; background: rgba(255,255,255,.6); }
.cls-vote {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 52px;
  min-height: 58px;
  border-radius: 12px;
  border: 1px solid var(--cls-line);
  background: #fff;
  color: var(--text);
  font: inherit;
  cursor: pointer;
  line-height: 1.1;
  transition: transform .1s, background .15s;
}
.cls-vote:active { transform: scale(.95); }
.cls-vote strong { font-size: 1.1rem; }
.cls-vote.is-on { background: var(--accent); color: #fff; border-color: var(--accent); }
.cls-idea-text { flex: 1; min-width: 0; }
.cls-idea-text h3 { margin: .1rem 0 .25rem; font-size: 1.05rem; }
.cls-idea-text p { margin: 0 0 .35rem; }
.cls-reply { display: flex; align-items: center; gap: .5rem; padding: .45rem .6rem; border-radius: 10px; background: rgba(44,24,16,.06); font-size: .92rem; }
.cls-reply .cls-avatar { width: 26px; height: 26px; font-size: .65rem; }
.cls-idea-admin { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .5rem; }
.cls-idea-admin select { width: auto !important; flex: none; }
.cls-idea-admin input { flex: 1 1 160px; width: auto !important; }
.cls-ideas-card.is-taught .cls-idea, .cls-ideas-card.is-later .cls-idea { opacity: .78; }

/* ---- students (instructor) */
.cls-code-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: rgba(255,255,255,.65);
  margin-bottom: 1.25rem;
}
.cls-code-box small { display: block; color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.cls-code { font: 700 1.8rem/1.1 ui-monospace, Menlo, monospace; letter-spacing: .1em; color: var(--text); }
.cls-code.is-big { display: block; font-size: clamp(2.2rem, 7vw, 3.4rem); margin: .2rem 0 .6rem; }
.cls-invite { margin-bottom: .75rem; }
.cls-people { list-style: none; margin: 0; padding: 0; }
.cls-people li { display: flex; align-items: center; gap: .75rem; padding: .7rem 0; border-top: 1px solid var(--cls-line); }
.cls-people li:first-child { border-top: 0; }
.cls-people li > div:not(.cls-row) { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.cls-people .cls-muted { font-size: .82rem; overflow-wrap: anywhere; }
.cls-note { font-size: .88rem; font-style: italic; color: var(--text); }
.cls-pending { box-shadow: 0 0 0 2px rgba(217,69,43,.35), 0 8px 32px rgba(44,24,16,.08); }

/* ---- the sheet */
html.cls-sheet-open { overflow: hidden; }   /* html only: hiding body's overflow would jump the page to the top */
.cls-sheet-wrap {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.cls-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30,18,12,.45);
  opacity: 0;
  transition: opacity .2s;
}
.cls-sheet {
  position: relative;
  width: 100%;
  max-height: 92vh;
  max-height: 92dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1.4rem clamp(16px, 4vw, 28px) calc(1.4rem + env(safe-area-inset-bottom));
  background: var(--bg);
  color: var(--text);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -10px 40px rgba(30,18,12,.25);
  transform: translateY(24px);
  opacity: 0;
  transition: transform .22s ease, opacity .2s ease;
  outline: none;
}
.cls-sheet-wrap.is-open .cls-sheet-backdrop { opacity: 1; }
.cls-sheet-wrap.is-open .cls-sheet { transform: none; opacity: 1; }
.cls-sheet-x { position: sticky; top: 0; float: right; margin: -.4rem -.4rem 0 .5rem; z-index: 2; }
.cls-sheet-body > h2:first-child { margin: 0 0 1rem; font-family: Georgia, 'Times New Roman', serif; font-size: 1.45rem; padding-right: 2.5rem; }
.cls-sheet-head { margin-bottom: .6rem; padding-right: 2.5rem; }
.cls-sheet-head h2 { margin: .15rem 0 0; font-family: Georgia, 'Times New Roman', serif; font-size: 1.5rem; line-height: 1.2; }
.cls-facts { display: flex; flex-direction: column; gap: .35rem; margin: 0 0 1rem; color: var(--muted); }
.cls-facts span { display: inline-flex; align-items: center; gap: .45rem; }
.cls-lesson {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin: 1rem 0;
  padding: .75rem .9rem;
  border-radius: 12px;
  background: rgba(60,119,163,.1);
  color: var(--text);
  font-weight: 600;
}
.cls-lesson:hover { text-decoration: none; background: rgba(60,119,163,.16); }
.cls-lesson svg { color: var(--k-glaze); font-size: 1.3rem; }
.cls-lesson span { display: flex; flex-direction: column; }
.cls-lesson small { font-weight: 400; color: var(--muted); font-size: .78rem; }
.cls-rsvp { margin: 1rem 0; padding: .9rem 1rem; border-radius: 12px; background: var(--surface); display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; }
.cls-rsvp p { margin: 0; }
.cls-names { color: var(--muted); font-size: .88rem; }
.cls-admin-row { display: flex; gap: .5rem; flex-wrap: wrap; margin: 1rem 0 0; padding-top: 1rem; border-top: 1px solid var(--cls-line); }
.cls-sub-options { display: flex; flex-direction: column; gap: .6rem; margin: 1rem 0; }
.cls-copy { display: flex; gap: .5rem; }
.cls-copy input { font-size: .85rem !important; }
.cls-big { margin: 0 0 .75rem; }
.cls-big img { display: block; width: 100%; height: auto; max-height: 62vh; object-fit: contain; border-radius: 12px; background: var(--surface-2); }
.cls-big figcaption { margin-top: .35rem; font-size: .82rem; color: var(--muted); }
.cls-journey-strip { display: flex; gap: .5rem; overflow-x: auto; padding: .2rem .1rem .5rem; margin-bottom: .5rem; }
.cls-journey-strip button, .cls-journey-strip label.is-add {
  position: relative;
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
  width: 72px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: .7rem;
  color: var(--muted);
  cursor: pointer;
}
.cls-journey-strip img, .cls-journey-strip .is-add svg {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid transparent;
}
.cls-journey-strip .is-on img { border-color: var(--accent); }
.cls-journey-strip .is-on { color: var(--text); font-weight: 600; }
.cls-journey-strip .is-add svg { padding: 22px; border: 2px dashed rgba(44,24,16,.25); color: var(--muted); }
.cls-journey-strip label.is-add input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.cls-piece-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.cls-piece-head h2 { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: 1.45rem; line-height: 1.2; }
.cls-piece-head p { margin: .2rem 0 0; font-size: .9rem; }
.cls-dl { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; margin: .9rem 0; font-size: .92rem; }
.cls-dl dt { color: var(--muted); font-weight: 600; }
.cls-dl dd { margin: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.cls-glaze { padding: .05rem .55rem; border-radius: 999px; background: rgba(60,119,163,.12); color: #2D5D80; font-weight: 600; font-size: .85rem; }
.cls-qr { text-align: center; }
.cls-qr h2 { margin: 0 0 .75rem; font-family: Georgia, 'Times New Roman', serif; }
.cls-qr-img { width: min(320px, 70vw); aspect-ratio: 1; margin: 0 auto 1rem; display: flex; align-items: center; justify-content: center; background: #fff; border-radius: 16px; padding: 8px; }
.cls-qr-img svg { width: 100%; height: 100%; }
.cls-qr p { margin: 0; }

@media (min-width: 900px) {
  .cls-piece { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
  .cls-piece-media { position: sticky; top: 0; }
  .cls-piece .cls-big img { max-height: 70vh; }
  .cls-piece-info { padding-top: .25rem; }
  .cls-piece-info .cls-piece-head { padding-right: 2.5rem; }
}
@media (min-width: 720px) {
  .cls-sheet-wrap { align-items: center; padding: 4vh 16px; }
  .cls-sheet { width: min(580px, 100%); max-height: 88vh; border-radius: 20px; transform: translateY(12px) scale(.98); }
  .cls-sheet-wrap.is-wide .cls-sheet { width: min(980px, 100%); }
}

/* ---- toast */
.cls-toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tab-bar-height, 60px) + 16px + env(safe-area-inset-bottom));
  z-index: 1500;
  max-width: min(92vw, 460px);
  padding: .65rem 1.1rem;
  border-radius: 12px;
  background: #2C1810;
  color: #FAF6F1;
  font-size: .92rem;
  font-weight: 500;
  box-shadow: 0 8px 26px rgba(30,18,12,.3);
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.cls-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.cls-toast.is-bad { background: #8E2F1E; }
@media (min-width: 768px) { .cls-toast { bottom: 24px; } }

/* ---- phones */
@media (max-width: 600px) {
  .cls-cal { gap: 2px; }
  .cls-cal-cell { min-height: 52px; padding: .2rem; align-items: center; }
  .cls-cal-num { align-self: center; }
  .cls-cal-evs { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 3px; }
  .cls-cal-ev { width: 7px; height: 7px; padding: 0; border-radius: 50%; }
  .cls-cal-ev span { display: none; }
  .cls-cal-more { display: none; }
  .cls-works { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
  .cls-event { gap: .6rem; padding: .6rem; }
  .cls-event-side small { display: none; }
  .cls-tab { padding-left: .6rem; padding-right: .6rem; }
  .cls-email-signin form { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .cls-sheet, .cls-sheet-backdrop, .cls-toast, .cls-work-btn, .cls-event, .cls-tile img { transition: none; }
  .cls-spinner { animation-duration: 2s; }
}

/* ---- mojoepots@gmail.com on the Students tab (V3.24): registrations in, welcome emails out */
.cls-sub { margin: 1.5rem 0 .6rem; font-size: 1.02rem; display: flex; align-items: center; gap: .2rem; }
.cls-mail-status { display: flex; align-items: flex-start; gap: .55rem; margin: 0 0 .5rem; padding: .65rem .85rem; border-radius: 12px; background: rgba(255,255,255,.6); font-size: .9rem; }
.cls-mail-status i { flex: none; width: 10px; height: 10px; margin-top: .38rem; border-radius: 50%; background: var(--muted); }
.cls-mail-status.is-ok i { background: #4C9A4A; box-shadow: 0 0 0 3px rgba(76,154,74,.2); }
.cls-mail-status.is-late i { background: #D99A2B; }
.cls-mail-status.is-off { background: rgba(217,154,43,.12); }
.cls-mail-status.is-off i { background: #D99A2B; }
.cls-mail { margin: 0 0 .6rem; border-radius: 14px; background: rgba(255,255,255,.66); border: 1px solid var(--cls-line); }
.cls-mail > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .75rem .95rem;
  cursor: pointer;
  font-size: .93rem;
}
.cls-mail > summary::-webkit-details-marker { display: none; }
.cls-mail > summary > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cls-mail > summary small { flex: none; color: var(--muted); }
.cls-mail[open] > summary { border-bottom: 1px solid var(--cls-line); }
.cls-mail > form { padding: .85rem .95rem 1rem; }
.cls-mail textarea { font-size: .95rem !important; line-height: 1.5 !important; }
.cls-mail-to { margin: 0; font-size: .88rem; color: var(--muted); }
.cls-mail-list { list-style: none; margin: .4rem 0 0; padding: 0; }
.cls-mail-list li {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
  padding: .5rem 0;
  border-top: 1px solid var(--cls-line);
  font-size: .9rem;
}
.cls-mail-list li:first-child { border-top: 0; }
.cls-mail-list li > span:not(.cls-status):first-of-type, .cls-mail-list li > span:nth-child(2):not(.cls-muted) { flex: 1 1 220px; min-width: 0; }
.cls-mail-list .cls-muted { font-size: .82rem; }
.cls-status { flex: none; display: inline-block; padding: .05rem .5rem; border-radius: 999px; font-size: .72rem; font-weight: 700; background: var(--surface-2); color: var(--muted); }
.cls-status.is-added { background: rgba(76,154,74,.16); color: #2F6B2D; }
.cls-status.is-already { background: rgba(60,119,163,.14); color: #2D5D80; }
.cls-status.is-review { background: rgba(217,154,43,.2); color: #7A5310; }
.cls-intake { margin: 0 0 .7rem; padding: .85rem .95rem; border-radius: 14px; background: rgba(255,255,255,.7); border-left: 4px solid #D99A2B; }
.cls-intake-head { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin: 0 0 .3rem; }
.cls-intake-head small { width: 100%; color: var(--muted); }
.cls-intake .cls-form { margin-top: .6rem; }
.cls-more { margin-top: .8rem; }
.cls-more > summary { cursor: pointer; color: var(--link); font-weight: 600; font-size: .9rem; }
.cls-template > summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: .75rem; flex-wrap: wrap; }
.cls-template > summary::-webkit-details-marker { display: none; }
.cls-template > summary h2 { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(1.25rem, 2.4vw, 1.6rem); }
.cls-template > summary h2::after { content: ' ›'; color: var(--muted); }
.cls-template[open] > summary h2::after { content: ' ⌄'; }
.cls-template .cls-form { margin-top: 1rem; }
.cls-template code, .cls-mail-status code { font-size: .82em; background: rgba(44,24,16,.06); padding: .05rem .3rem; border-radius: 4px; }
.cls-mail-pre { white-space: pre-wrap; word-break: break-word; font: .9rem/1.5 ui-monospace, Menlo, monospace; background: var(--surface); padding: .9rem; border-radius: 10px; max-height: 50vh; overflow: auto; }

/* ---- Billing tab (V3.24; one bill per 8-week session since V3.26) */
.cls-current-line { margin: 0; display: flex; align-items: baseline; gap: .4rem; flex-wrap: wrap; }
.cls-current-line span { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-right: .3rem; }
.cls-bill-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .6rem; margin: .25rem 0 1.25rem; }
.cls-bill-sum > div { padding: .75rem .9rem; border-radius: 12px; background: rgba(255,255,255,.66); display: flex; flex-direction: column; gap: .1rem; }
.cls-bill-sum small { color: var(--muted); font-size: .78rem; }
.cls-bill-sum strong { font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.cls-bill-sum .is-mine { background: rgba(196,112,74,.14); box-shadow: inset 0 0 0 1px rgba(196,112,74,.35); }
.cls-bill-sum .is-mine strong { color: #9A4F2C; }
.cls-bill-session { margin: 0 0 1rem; border-radius: 14px; background: rgba(255,255,255,.55); overflow: visible; }
.cls-bill-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem .9rem; border-bottom: 1px solid var(--cls-line); }
.cls-bill-head > div { display: flex; flex-direction: column; min-width: 0; }
.cls-bill-head small { color: var(--muted); font-size: .8rem; }
.cls-bill-total { text-align: right; flex: none; }
.cls-bill-rows { list-style: none; margin: 0; padding: .2rem .9rem; }
.cls-bill-rows li { display: flex; align-items: center; gap: .75rem; padding: .45rem 0; border-top: 1px solid var(--cls-line); }
.cls-bill-rows li:first-child { border-top: 0; }
.cls-bill-rows li.is-off { opacity: .62; }
.cls-bill-rows li.is-off .cls-bill-amt { text-decoration: line-through; }
.cls-bill-rows.is-quiet { background: rgba(255,255,255,.4); border-radius: 12px; }
.cls-bill-name { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.cls-bill-name small { color: var(--muted); font-size: .8rem; overflow-wrap: anywhere; }
.cls-bill-amt { flex: none; font-variant-numeric: tabular-nums; font-weight: 600; }
.cls-bill-rows .cls-menu summary { width: 30px; height: 30px; }
.cls-bill-actions { margin-top: 1.25rem; }
.cls-bill-pick { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; }
.cls-bill-pick select { flex: 1 1 10rem; width: auto; min-width: 0; font-weight: 600; }
.cls-bill-pick .cls-icon-btn { flex: none; }
.cls-bill-pick .cls-icon-btn:disabled { opacity: .35; cursor: default; }
.cls-bill-none { margin: 0; padding: .7rem .9rem; }
.cls-bill-monitor { display: flex; align-items: center; gap: .55rem; margin: -.5rem 0 1rem; font-weight: 600; }
.cls-bill-monitor input { width: 1.1rem; height: 1.1rem; accent-color: #C4704A; }

/* ---- Class dashboard (V3.28): the lessons and Glaze Lab in the class page */
.cls-dash { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .75rem; padding-top: 1rem; padding-bottom: 1rem; }
.cls-dash-tile { display: flex; align-items: center; gap: .85rem; padding: .9rem 1rem; border-radius: 14px; background: rgba(255,255,255,.66); color: var(--text); text-decoration: none; box-shadow: inset 0 0 0 1px var(--cls-line); transition: background .15s, transform .15s; }
.cls-dash-tile:hover { background: #fff; transform: translateY(-1px); }
.cls-dash-icon { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(196,112,74,.14); color: #9A4F2C; }
.cls-page .cls-dash-icon svg { width: 24px; height: 24px; vertical-align: 0; }
.cls-dash-icon svg, .cls-gl-intro > svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cls-dash-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.cls-dash-text strong { font-size: 1.05rem; }
.cls-dash-text small { color: var(--muted); font-size: .85rem; }
.learn-intro { color: var(--muted); margin: 0 0 1.5rem; }
.cls-learn .modules-section:last-child, .cls-learn .tools-section:last-child { margin-bottom: 0; }
.cls-gl { max-width: calc(1240px + 2 * clamp(8px, 2vw, 16px)); margin: .75rem auto 0; padding-inline: clamp(8px, 2vw, 16px); }
.cls-gl-frame { display: block; width: 100%; height: 80vh; min-height: 360px; border: 0; border-radius: 20px; background: rgba(250,246,241,.86); box-shadow: 0 8px 32px rgba(44,24,16,.08); }
.cls-gl-foot { text-align: right; margin: .5rem auto 0; }
.cls-gl-intro { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1rem; }
.cls-page .cls-gl-intro > svg { width: 40px; height: 40px; color: #9A4F2C; }
.cls-gl-intro h2 { margin: 0 0 .25rem; font-family: Georgia, 'Times New Roman', serif; }
.cls-gl-intro p { margin: 0; color: var(--muted); }

/* ---- Your pots (V3.29): photos at every stage from a phone, pot codes, the glaze record */
.cls-pots { list-style: none; margin: 0 0 .75rem; padding: 0; display: grid; gap: .5rem; }
.cls-pot { display: flex; align-items: center; gap: .6rem; padding: .45rem; border-radius: 14px; background: rgba(255,255,255,.66); box-shadow: inset 0 0 0 1px var(--cls-line); }
.cls-pot-open { flex: 1; min-width: 0; display: flex; align-items: center; gap: .75rem; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.cls-pot-img { flex: none; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: rgba(44,24,16,.08); }
.cls-pot-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cls-pot-text { min-width: 0; display: flex; flex-direction: column; gap: .15rem; line-height: 1.25; }
.cls-pot-text strong { overflow-wrap: anywhere; }
.cls-pot-text .cls-muted { font-size: .82rem; }
.cls-pot-next { flex: none; }
.cls-code { display: inline-block; padding: .05rem .4rem; border-radius: 6px; background: #2c1810; color: #fff; font: 700 .78em/1.4 ui-monospace, Menlo, monospace; letter-spacing: .04em; vertical-align: .08em; }
.cls-stage-dots { display: flex; gap: 3px; margin-top: .2rem; }
.cls-stage-dots i { width: 14px; height: 4px; border-radius: 2px; background: rgba(44,24,16,.15); }
.cls-stage-dots i.is-on { background: #C4704A; }
.cls-share-default { display: flex; align-items: flex-start; gap: .55rem; margin: .5rem 0 0; font-size: .9rem; }
.cls-share-default input { margin-top: .2rem; width: 1.1rem; height: 1.1rem; accent-color: #C4704A; flex: none; }
.cls-quick-pics { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .5rem; margin: .75rem 0 1rem; }
.cls-quick-pics figure { position: relative; margin: 0; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: rgba(44,24,16,.08); display: grid; place-items: center; }
.cls-quick-pics img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cls-quick-pics figcaption { position: absolute; left: 6px; bottom: 6px; font-size: .95rem; }
.cls-quick-codes { margin: 0 0 1rem; }
.cls-stage-pick { border: 0; padding: 0; margin: 0 0 .9rem; }
.cls-stage-pick legend { font-weight: 600; font-size: .9rem; margin-bottom: .4rem; padding: 0; }
.cls-stage-track { list-style: none; display: flex; gap: 4px; padding: 0; margin: .25rem 0 1rem; }
.cls-stage-track li { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .1rem; padding-top: .45rem; border-top: 4px solid rgba(44,24,16,.12); font-size: .72rem; line-height: 1.2; color: var(--muted); }
.cls-stage-track li.is-done { border-top-color: rgba(196,112,74,.55); }
.cls-stage-track li.is-now { border-top-color: #C4704A; color: var(--text); font-weight: 700; }
.cls-stage-track small { font-weight: 400; font-size: .68rem; }
.cls-code-hint { margin: 0 0 1rem; padding: .6rem .8rem; border-radius: 12px; background: rgba(196,112,74,.1); font-size: .9rem; }
.cls-layers { margin: 0 0 1rem; }
.cls-layers h3 { margin: 0 0 .4rem; font-size: .95rem; }
.cls-layers ol { margin: 0; padding-left: 1.3rem; display: grid; gap: .35rem; }
.cls-layers li small { display: block; color: var(--muted); }
/* V3.42: the piece forms in sections; one picker for clay and for each glaze (your shelf first); layers as cards */
.cls-fsec { display: flex; flex-direction: column; gap: .7rem; padding: .9rem 0 0; border-top: 1px solid var(--cls-line); }
.cls-fsec:first-child { border-top: 0; padding-top: 0; }
.cls-fsec-h { margin: 0; font-size: .95rem; font-weight: 700; color: var(--text); }
.cls-fsec-h .cls-muted, .cls-fsec-sub .cls-muted { font-weight: 400; }
.cls-fsec-sub { margin: .2rem 0 0; font-size: .85rem; font-weight: 700; color: var(--muted); }
.cls-fsec .cls-stage-pick { margin: 0; }
.cls-fsec > .cls-btn { align-self: flex-start; }
.cls-pick { display: flex; flex-direction: column; gap: .5rem; }
.cls-pick .cls-pick-other { display: none !important; }
.cls-pick[data-other] .cls-pick-other { display: flex !important; }
.cls-quick-when { grid-template-columns: minmax(150px, 220px) 1fr; align-items: center; }
.cls-quick-when > span { padding-top: 1.3rem; }
.cls-layers-list { margin: 0; padding-left: 1.3rem; display: grid; gap: .35rem; font-size: .92rem; }
.cls-layers-list li small { display: block; color: var(--muted); }
.cls-layers-edit { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.cls-layer { border: 1px solid var(--cls-line); border-radius: 14px; padding: .7rem .8rem .8rem; margin: 0; display: flex; flex-direction: column; gap: .6rem; background: rgba(255,255,255,.45); }
.cls-layer-head { display: flex; align-items: center; gap: .6rem; }
.cls-layer-n { flex: none; width: 1.7rem; height: 1.7rem; border-radius: 50%; display: grid; place-items: center; background: #2c1810; color: #fff; font-weight: 700; font-size: .85rem; }
.cls-form .cls-layer-how { flex: 1; min-width: 0; }
.cls-layer-x { flex: none; }
.cls-layer .cls-layer-wax { display: none !important; }
.cls-layer[data-how="wax"] .cls-layer-wax { display: flex !important; }
.cls-layer[data-how="wax"] .cls-layer-glaze, .cls-layer[data-how="wax"] .cls-layer-coats { display: none !important; }
.cls-layer:not([data-how="dipped"]) .cls-layer-secs { display: none !important; }
.cls-layer-nums { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }
.cls-big figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.cls-cap-btn { border: 0; background: none; padding: .1rem .2rem; color: var(--accent); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.cls-big figcaption.cls-photo-edit { display: block; margin-top: .5rem; padding: .7rem; border: 1px solid var(--cls-line); border-radius: 12px; }
.cls-quick-pics .cls-quick-code input { padding: .35rem .5rem; font-size: 1rem; text-align: center; }
.cls-quick-pic { display: flex; flex-direction: column; gap: .35rem; }
.cls-code-warn { margin: 0; padding: .5rem .7rem; border-radius: 10px; background: rgba(192,138,30,.14); font-size: .88rem; }
.cls-cookies { margin: 0 0 1.1rem; padding: .8rem .9rem; border: 1px solid var(--cls-line); border-radius: 14px; }
.cls-cookies-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; }
.cls-cookies h3 { margin: 0; font-size: .95rem; }
.cls-cookie-list { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .5rem; }
.cls-cookie-list li { display: grid; grid-template-columns: auto 1fr auto; gap: .6rem; align-items: center; font-size: .9rem; }
.cls-cookie-list small { display: block; color: var(--muted); }
.cls-cookies .cls-muted.cls-small { margin: .4rem 0 0; }
/* V3.45: Student gallery */
.cls-gal-student { margin: 0 0 1.4rem; }
.cls-gal-student h3 { margin: 0 0 .5rem; font-size: 1.05rem; }
.cls-gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; }
.cls-gal-piece { display: flex; flex-direction: column; gap: .3rem; padding: 0; border: 0; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.cls-gal-piece img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; display: block; background: rgba(44,24,16,.08); transition: transform .15s; }
.cls-gal-piece:hover img { transform: scale(1.02); }
.cls-gal-piece span { font-size: .85rem; font-weight: 600; }
.cls-gal-feat { list-style: none; margin: .2rem 0 1rem; padding: 0; display: grid; gap: .45rem; }
.cls-gal-feat li { display: grid; grid-template-columns: 1.6rem 52px 1fr auto; gap: .6rem; align-items: center; }
.cls-gal-feat img, .cls-gal-noimg { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; background: rgba(44,24,16,.08); display: block; }
.cls-gal-n { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: #2C1810; color: #fff; font-weight: 700; font-size: .8rem; }
.cls-gal-name { font-weight: 600; font-size: .92rem; min-width: 0; overflow-wrap: anywhere; }
.cls-gal-moves { display: flex; gap: .2rem; }
.cls-gal-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .5rem; margin-bottom: .8rem; }
.cls-gal-option { position: relative; display: flex; flex-direction: column; gap: .25rem; padding: .3rem; border: 2px solid transparent; border-radius: 12px; background: rgba(255,255,255,.5); font: inherit; color: inherit; text-align: left; cursor: pointer; }
.cls-gal-option img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 9px; display: block; }
.cls-gal-option.is-on { border-color: #C4704A; background: rgba(196,112,74,.1); }
.cls-gal-option:disabled { opacity: .45; cursor: not-allowed; }
.cls-gal-star { position: absolute; top: .45rem; right: .5rem; font-size: 1.25rem; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.cls-gal-option.is-on .cls-gal-star { color: #F2B544; }
.cls-gal-label { font-size: .78rem; font-weight: 600; line-height: 1.25; }
.cls-gal-exp { display: inline-block; margin-left: .4rem; padding: .1rem .55rem; border-radius: 999px; background: rgba(196,112,74,.12); color: #8a4a2c; font-size: .75rem; font-weight: 600; vertical-align: .15em; }
.cls-gal-explabel { display: flex; flex-direction: column; gap: .3rem; max-width: 320px; margin: .8rem 0 .2rem; font-size: .85rem; font-weight: 600; color: var(--muted); }
.cls-work-when { margin: 0 0 1.2rem; }
.cls-work-when > .cls-sub { margin: 0 0 .6rem; }
/* V3.45: testimonials */
.cls-testis { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .8rem; }
.cls-testi { margin: 0; padding: 1rem 1.1rem; border-radius: 14px; background: rgba(255,255,255,.6); border: 1px solid var(--cls-line); }
.cls-testi p { margin: 0 0 .6rem; font-size: 1rem; line-height: 1.5; }
.cls-testi p::before { content: '\201C'; } .cls-testi p::after { content: '\201D'; }
.cls-testi footer { font-size: .85rem; font-weight: 700; color: var(--muted); }
.cls-testi footer::before { content: '\2014\00a0'; }
.cls-testi-review { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.cls-chip-status { display: inline-block; padding: .2rem .6rem; border-radius: 999px; font-size: .8rem; font-weight: 600; background: rgba(44,24,16,.08); }
.cls-chip-status.is-ok { background: rgba(63,143,90,.15); color: #2f6e44; }
.cls-chip-status.is-wait { background: rgba(192,138,30,.16); color: #7a5512; }
.cls-code-find { display: flex; flex-direction: column; gap: .3rem; margin: .2rem 0 .9rem; font-size: .85rem; font-weight: 600; color: var(--muted); max-width: 360px; }
.cls-journey-strip button small { display: block; font-size: .66rem; color: var(--muted); font-weight: 400; }
@media (max-width: 480px) {
  .cls-pot-next { padding-inline: .6rem; font-size: .8rem; }
  .cls-stage-track li { font-size: .62rem; }
  .cls-stage-track small { display: none; }
}

/* V3.25: menu links stay on one line ("Glaze Lab" wrapped at about 1024 px) */
.desktop-nav a { white-space: nowrap; }

/* =========================================
   V3.30 — Instagram pots in the gallery: photo count, the lightbox's photos / links / edit form,
   #/ig (the link in the Instagram bio)
   ========================================= */
.gallery-badge.gallery-hidden { right: auto; left: .5rem; top: auto; bottom: .5rem; background: rgba(180, 68, 46, .85); }
.gallery-count {
  position: absolute; top: .5rem; left: .5rem; min-width: 1.4rem; height: 1.4rem; padding: 0 .35rem; box-sizing: border-box;
  display: grid; place-items: center; border-radius: 999px; background: rgba(44, 24, 16, .65); color: #fff;
  font-size: .72rem; font-weight: 700; pointer-events: none;
}
.lightbox-caption { width: min(600px, 92vw); max-height: 40vh; overflow-y: auto; padding: 0 .25rem; }
.lightbox-photos { display: flex; justify-content: center; gap: 6px; margin-bottom: .6rem; overflow-x: auto; }
.lightbox-photos:empty { display: none; }
.lb-photo {
  flex: none; width: 48px; height: 48px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden;
  cursor: pointer; background: rgba(255, 255, 255, .1); opacity: .65;
}
.lb-photo.is-on { border-color: #fff; opacity: 1; }
.lb-photo img { width: 100%; height: 100%; object-fit: cover; display: block; max-width: none; max-height: none; border-radius: 0; box-shadow: none; }
.lightbox-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: .75rem; }
.lightbox-links:empty { display: none; }
.lb-link {
  display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .8rem; border-radius: 999px;
  background: rgba(255, 255, 255, .14); border: 0; color: #fff; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer;
}
.lb-link:hover { background: rgba(255, 255, 255, .26); text-decoration: none; color: #fff; }
.lb-sold {
  padding: .4rem .8rem; border-radius: 999px; background: rgba(0, 0, 0, .35); color: #fff;
  font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
}
.lb-form { text-align: left; color: #fff; }
.lb-form label { display: block; margin: 0 0 .55rem; font-size: .8rem; font-weight: 600; }
.lb-form label > span:first-child { display: block; opacity: .8; margin-bottom: .2rem; }
.lb-form input:not([type="checkbox"]), .lb-form textarea {
  width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; font-weight: 400; color: var(--text);
  background: #FAF6F1; border: 0; border-radius: 8px; padding: .45rem .6rem;
}
.lb-form input[readonly] { opacity: .7; }
.lb-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.lb-slug { display: flex; align-items: center; gap: .3rem; }
.lb-slug em { font-style: normal; font-weight: 400; opacity: .8; white-space: nowrap; }
.lb-check { display: flex !important; align-items: center; gap: .45rem; }
.lb-check input { width: 1.1rem; height: 1.1rem; }
.lb-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .6rem; }
.lb-danger { background: rgba(214, 90, 64, .35); }
.lb-msg { min-height: 1.2em; margin: .5rem 0 0; font-size: .85rem; }
.lb-link svg, .ig-page-handle svg { width: 16px; height: 16px; flex: none; }  /* the global svg { width: 100% } */
@media (max-width: 640px) {
  /* on a phone the whole viewer scrolls: photo, then the words, links and the edit form under it */
  .lightbox { justify-content: flex-start; overflow-y: auto; padding: 3.75rem 0 2rem; -webkit-overflow-scrolling: touch; }
  .lightbox img { max-height: 56vh; }
  .lightbox-caption { max-height: none; overflow: visible; }
  .lightbox-nav { position: fixed; top: 32vh; }
  .lightbox-close { position: fixed; z-index: 2; }
}
.ig-more { text-align: center; margin: .5rem 0 0; font-size: .92rem; }
.ig-page-head { text-align: center; margin-bottom: 1.5rem; }
.ig-page-handle { display: inline-flex; align-items: center; gap: .35rem; margin: 0; font-weight: 600; color: var(--accent); }
.ig-page-head .page-title { margin: .2rem 0 .4rem; }
.ig-page-lede { max-width: 32rem; margin: 0 auto 1rem; color: var(--muted); }
.ig-page-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: 0; }
.btn.btn-ghost { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
@media (min-width: 800px) { .ig-grid { gap: 8px; } }
.ig-grid-tile {
  position: relative; aspect-ratio: 1 / 1; padding: 0; border: 0; overflow: hidden; cursor: pointer;
  background: var(--surface-2); border-radius: 4px; display: block; width: 100%;
}
.ig-grid-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.ig-grid-tile:hover img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .ig-grid-tile img { transition: none; } }

/* =========================================
   INSTAGRAM → THE GALLERY (V3.30), the admin page #/social (admin-social.js).
   The same block is in site-template/styles.css and admin-app/app.css.
   ========================================= */
.igs { --igs-line: var(--border, rgba(44, 24, 16, 0.12)); --igs-card: var(--surface, #fff); }
.igs h1 { margin: 0 0 .2rem; }
.igs-head p { margin: 0 0 1rem; }
.igs .btn-link {
  background: none; border: 0; padding: .35rem .15rem; font: inherit; font-size: .9rem; font-weight: 600;
  color: var(--accent); cursor: pointer;
}
.igs .btn-link:hover { text-decoration: underline; }
.igs .btn-link.danger { color: #B4442E; }
.igs-card {
  background: var(--igs-card); border: 1px solid var(--igs-line); border-radius: 12px;
  padding: 1rem 1.1rem; margin: 0 0 1rem;
}
.igs-card h2 { margin: 0 0 .4rem; font-size: 1.1rem; }
.igs-card p { margin: .3rem 0; }
.igs-steps { margin: .5rem 0 .8rem; padding-left: 1.3rem; }
.igs-steps li { margin: .35rem 0; line-height: 1.45; }
.igs-dl summary { cursor: pointer; font-weight: 600; margin: .4rem 0; }
.igs-form input, .igs-form textarea {
  width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; color: var(--text);
  background: var(--bg, #fff); border: 1px solid var(--igs-line); border-radius: 8px; padding: .55rem .65rem;
}
.igs-label { display: block; font-size: .8rem; font-weight: 600; color: var(--muted); margin: .7rem 0 .25rem; }
.igs-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-top: .9rem; }
.igs-msg { margin: .6rem 0 0; font-size: .9rem; }
.igs-error { color: #B4442E; }
.igs-alert {
  border: 1px solid rgba(180, 68, 46, .35); background: rgba(180, 68, 46, .08); border-radius: 10px;
  padding: .7rem .9rem; margin: 0 0 1rem; font-size: .92rem;
}
.igs-bio code, .igs-linkbox code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88rem; word-break: break-all;
  background: rgba(196, 112, 74, .1); padding: .1rem .35rem; border-radius: 5px;
}
.igs-bio p { font-size: .88rem; }
.igs-toolbar { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin: .5rem 0; }
.igs-toolbar p { margin: 0; font-size: .9rem; }
.igs-toolbar span { display: flex; gap: .9rem; flex: none; }
.igs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
@media (min-width: 700px) { .igs-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; } }
@media (min-width: 1000px) { .igs-grid { grid-template-columns: repeat(5, 1fr); } }
.igs-tile {
  position: relative; aspect-ratio: 1 / 1; padding: 0; border: 0; margin: 0; overflow: hidden; cursor: pointer;
  background: var(--surface-2, #E6DFD5); border-radius: 4px; display: block; width: 100%;
}
.igs-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.igs-tile.is-in img { opacity: .55; }
.igs-tile:disabled { cursor: default; }
.igs-tile.is-picked { outline: 3px solid var(--accent); outline-offset: -3px; }
.igs-noimg { display: grid; place-items: center; height: 100%; font-size: .75rem; color: var(--muted); }
.igs-kind {
  position: absolute; top: 5px; right: 5px; min-width: 1.3rem; height: 1.3rem; padding: 0 .3rem; box-sizing: border-box;
  display: grid; place-items: center; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; font-size: .7rem; font-weight: 700;
}
.igs-badge {
  position: absolute; left: 5px; bottom: 5px; right: 5px; padding: .2rem .35rem; border-radius: 5px;
  background: rgba(44, 24, 16, .78); color: #fff; font-size: .68rem; font-weight: 700; text-align: center;
}
.igs-check {
  position: absolute; top: 5px; left: 5px; width: 1.5rem; height: 1.5rem; border-radius: 50%;
  border: 2px solid #fff; background: rgba(0, 0, 0, .25); color: #fff; display: grid; place-items: center; font-weight: 800;
}
.igs-tile.is-picked .igs-check { background: var(--accent); border-color: var(--accent); }
.igs-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.igs-more { text-align: center; margin: 1rem 0; }
.igs-batch {
  position: sticky; bottom: calc(env(safe-area-inset-bottom, 0px) + 72px); z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-top: 1rem;
  background: var(--igs-card); border: 1px solid var(--igs-line); border-radius: 12px; padding: .7rem .9rem;
  box-shadow: 0 6px 22px rgba(44, 24, 16, .16); font-size: .92rem;
}
@media (min-width: 900px) { .igs-batch { bottom: 16px; } }
.igs-batch .btn { flex: none; }
.igs-sheet-wrap {
  position: fixed; inset: 0; z-index: 1450; background: rgba(27, 18, 13, .55);
  display: flex; align-items: flex-end; justify-content: center;
}
.igs-sheet {
  width: 100%; max-width: 560px; max-height: 92vh; max-height: 92dvh; overflow-y: auto; box-sizing: border-box;
  background: var(--bg, #FAF6F1); color: var(--text); border-radius: 16px 16px 0 0;
  padding: .6rem 1.1rem calc(1.2rem + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -10px 40px rgba(0, 0, 0, .25);
}
@media (min-width: 700px) {
  .igs-sheet-wrap { align-items: center; }
  .igs-sheet { border-radius: 16px; }
}
html.igs-sheet-open, html.igs-sheet-open body { overflow: hidden; }
.igs-sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .3rem; font-size: .85rem; }
.igs-x { background: none; border: 0; font-size: 1.8rem; line-height: 1; color: var(--muted); cursor: pointer; padding: .1rem .3rem; }
.igs-photos { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.igs-photos.is-one .igs-photo { width: 100%; max-width: 360px; height: auto; aspect-ratio: 1 / 1; margin: 0 auto; }
.igs-photo {
  position: relative; flex: none; width: 104px; height: 104px; padding: 0; border: 0; border-radius: 8px; overflow: hidden;
  cursor: pointer; background: var(--surface-2, #E6DFD5);
}
.igs-photo img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .35; }
.igs-photo.is-on img { opacity: 1; }
.igs-photos.is-one .igs-photo img { opacity: 1; }
.igs-photo.is-on { outline: 3px solid var(--accent); outline-offset: -3px; }
.igs-num {
  position: absolute; left: 5px; top: 5px; padding: .05rem .4rem; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: .7rem; font-weight: 800;
}
.igs-form label { display: block; }
.igs-row { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.igs-caption { margin-top: .8rem; font-size: .85rem; }
.igs-caption summary { cursor: pointer; color: var(--muted); }
.igs-caption p { white-space: normal; margin: .4rem 0 0; color: var(--muted); }
.igs-done { display: flex; align-items: center; gap: .9rem; margin: .4rem 0 .8rem; }
.igs-done img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; flex: none; }
.igs-done p { margin: 0; }
.igs-done .igs-status { display: inline-block; margin-top: .2rem; }
.igs-done-title { font-weight: 700; font-size: 1.05rem; }
.igs-linkbox { margin: .7rem 0; }
.igs-linkbox .igs-label { margin-top: 0; }
.igs-linkbox code { display: inline; margin-right: .4rem; }
.igs-small { font-size: .82rem; line-height: 1.45; }
.igs-file-btn { cursor: pointer; }
.igs-file-btn input[type="file"] { display: none; }
.igs-more-photos { display: inline-block; margin: .4rem 0 0; }
@media (pointer: coarse) { .igs-folder { display: none; } }   /* phones can't pick a folder */
.igs-caption-text {
  width: 100%; box-sizing: border-box; font: inherit; font-size: 15px; color: var(--text);
  background: var(--bg, #fff); border: 1px solid var(--igs-line); border-radius: 8px; padding: .55rem .65rem; resize: vertical;
}
.igs-iglink { margin-top: 1rem; padding-top: .8rem; border-top: 1px solid var(--igs-line); }
.igs-tile img:not([src]) { visibility: hidden; }
/* Your pots: what's on Instagram */
.igs-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: .6rem 0 .8rem; }
.igs-chip {
  border: 1.5px solid var(--igs-line); background: transparent; color: var(--text); border-radius: 999px;
  padding: .3rem .75rem; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer;
}
.igs-chip span { color: var(--muted); font-weight: 700; margin-left: .15rem; }
.igs-chip.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }
.igs-chip.is-on span { color: rgba(255, 255, 255, .85); }
.igs-pot-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: .1rem; }
.igs-pot-list > li { min-width: 0; }
@media (min-width: 900px) { .igs-pot-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1rem; } }
.igs-pot-row {
  display: flex; align-items: center; gap: .75rem; width: 100%; padding: .45rem .2rem; border: 0;
  border-bottom: 1px solid var(--igs-line); background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer;
}
.igs-pot-row img { width: 54px; height: 54px; object-fit: cover; border-radius: 8px; flex: none; background: var(--surface-2, #E6DFD5); }
.igs-pot-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .1rem; }
.igs-pot-text strong { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.igs-status { font-size: .8rem; font-weight: 600; }
.igs-status.is-todo { color: #B4442E; }
.igs-status.is-some { color: #A06A12; }
.igs-status.is-on { color: #4F8A47; }
.igs-dots { display: flex; gap: 3px; }
.igs-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--igs-line); box-shadow: inset 0 0 0 1px rgba(44, 24, 16, .2); }
.igs-dots i.is-on { background: #4F8A47; box-shadow: none; }
.igs-chev { color: var(--muted); font-size: 1.4rem; line-height: 1; }
.igs-hidden { font-style: normal; color: #B4442E; background: rgba(180, 68, 46, .1); border-radius: 4px; padding: 0 .3rem; margin-left: .2rem; }
.igs-check-row { display: flex; align-items: center; gap: .45rem; margin: .8rem 0 0; font-size: .92rem; }
.igs-check-row input { width: 1.1rem; height: 1.1rem; }
.igs-igphotos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.igs-igphoto {
  position: relative; aspect-ratio: 1 / 1; padding: 0; border: 0; border-radius: 8px; overflow: hidden; cursor: pointer;
  background: var(--surface-2, #E6DFD5);
}
.igs-igphoto img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .55; }
.igs-igphoto.is-on img { opacity: 1; }
.igs-igphoto.is-on { outline: 3px solid #4F8A47; outline-offset: -3px; }
.igs-igmark {
  position: absolute; left: 4px; right: 4px; bottom: 4px; padding: .15rem .3rem; border-radius: 5px; text-align: center;
  background: rgba(44, 24, 16, .72); color: #fff; font-size: .68rem; font-weight: 700;
}
.igs-igphoto.is-on .igs-igmark { background: #4F8A47; }

/* V3.36: Alex's Public / Admin view switch on the gallery and shop */
.page-head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.page-head-row .page-title { margin-bottom: 0; }
.page-head-side { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-left: auto; }
.gallery-students-link { display: inline-flex; align-items: center; gap: .3rem; padding: .4rem .9rem; border-radius: 999px; border: 1.5px solid var(--accent, #C4704A); color: var(--accent, #C4704A); font-weight: 600; font-size: .9rem; text-decoration: none; white-space: nowrap; }
.gallery-students-link:hover { background: var(--accent, #C4704A); color: #fff; text-decoration: none; }
.page-head-row + * { margin-top: 1.25rem; }
.view-toggle { display: inline-flex; background: rgba(44, 24, 16, .07); border-radius: 999px; padding: 3px; gap: 2px; margin-left: auto; }
.view-toggle button { border: 0; background: transparent; font: inherit; font-size: .88rem; font-weight: 600; color: var(--muted); padding: 5px 13px; border-radius: 999px; cursor: pointer; }
.view-toggle button.on { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(44, 24, 16, .14); }
.product-media { position: relative; }
.shop-status { position: absolute; top: 10px; left: 10px; z-index: 2; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: rgba(44, 24, 16, .78); color: #fff; }
.shop-status.live { background: rgba(63, 125, 78, .9); }
.product-card.is-off .product-media img { opacity: .62; filter: saturate(.7); }
.buy-btn.shop-edit { display: block; text-align: center; text-decoration: none; }

/* =========================================
   V3.47 Commissions (#/commission, commission.js)
   ========================================= */
.cm-page { padding-top: 1rem; }
.cm-card { margin: 1.25rem 0; padding: 1.4rem 1.5rem; border-radius: 20px; background: rgba(255,253,249,.92); border: 1px solid rgba(44,24,16,.1); box-shadow: 0 10px 30px rgba(44,24,16,.08); }
.cm-card h2 { margin: 0 0 .8rem; font-size: 1.3rem; }
.cm-card h3 { margin: 1.1rem 0 .5rem; font-size: 1rem; }
.cm-lead { margin: 0 0 .6rem; font-size: 1.05rem; line-height: 1.6; }
.cm-intro { margin: 0 0 1rem; padding: .7rem .9rem; border-radius: 12px; background: rgba(196,112,74,.1); font-weight: 600; }
.cm-form { display: flex; flex-direction: column; gap: 0; }
.cm-sec { padding: 1.1rem 0; border-top: 1px solid rgba(44,24,16,.1); display: flex; flex-direction: column; gap: .7rem; }
.cm-sec:first-child { border-top: 0; }
.cm-sec h3 { margin: 0; font-size: 1.05rem; }
.cm-hint { margin: 0; color: var(--muted, #7a6a5e); font-size: .88rem; }
.cm-opt { color: var(--muted, #7a6a5e); font-weight: 400; }
.cm-chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.cm-chip { border: 1.5px solid rgba(44,24,16,.18); background: #fff; color: var(--text, #2C1810); border-radius: 999px; padding: .45rem .9rem; font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer; }
.cm-chip.is-on { background: #2C1810; color: #fff; border-color: #2C1810; }
.cm-count { display: inline-block; min-width: 1.4em; padding: 0 .4em; border-radius: 999px; background: rgba(44,24,16,.1); font-size: .78em; text-align: center; }
.cm-count.is-hot { background: #C4704A; color: #fff; }
.cm-field { display: flex; flex-direction: column; gap: .3rem; font-size: .88rem; font-weight: 600; color: var(--muted, #7a6a5e); }
.cm-field input, .cm-field textarea, .cm-field select, .cm-custom input[type=text] { width: 100%; padding: .6rem .75rem; border: 1px solid rgba(44,24,16,.2); border-radius: 10px; background: #fff; color: var(--text, #2C1810); font: inherit; font-size: 1rem; font-weight: 400; box-sizing: border-box; }
.cm-field input:focus, .cm-field textarea:focus, .cm-field select:focus { outline: 2px solid rgba(196,112,74,.55); outline-offset: 1px; border-color: #C4704A; }
.cm-qty { max-width: 160px; }
.cm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .8rem; }
.cm-money { position: relative; display: block; }
.cm-money > span { position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); color: var(--text, #2C1810); font-weight: 600; }
.cm-money input { padding-left: 1.6rem !important; }
.cm-check { display: flex; align-items: center; gap: .5rem; font-size: .95rem; }
.cm-check input { width: 1.1rem; height: 1.1rem; accent-color: #C4704A; }
.cm-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.cm-row.is-end { justify-content: flex-end; margin-top: .6rem; }
.cm-btn { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; border: 0; border-radius: 999px; padding: .65rem 1.3rem; background: #C4704A; color: #fff; font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer; text-decoration: none; }
.cm-btn:disabled { opacity: .5; cursor: default; }
.cm-btn.is-quiet { background: #fff; color: var(--text, #2C1810); border: 1.5px solid rgba(44,24,16,.2); }
.cm-btn.is-danger { color: #A33A24; }
.cm-file { position: relative; overflow: hidden; }
.cm-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.cm-pics { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .5rem; }
.cm-pics:empty { display: none; }
.cm-pics figure { position: relative; margin: 0; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: rgba(44,24,16,.08); display: grid; place-items: center; }
.cm-pics img { width: 100%; height: 100%; object-fit: cover; }
.cm-x { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.cm-spin { width: 24px; height: 24px; border-radius: 50%; border: 3px solid rgba(44,24,16,.15); border-top-color: #C4704A; animation: cmspin .8s linear infinite; }
@keyframes cmspin { to { transform: rotate(360deg); } }
.cm-colors { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem; }
.cm-colors.is-small { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.cm-color { display: flex; align-items: center; gap: .55rem; padding: .45rem; border: 2px solid rgba(44,24,16,.12); border-radius: 12px; background: #fff; font: inherit; font-size: .88rem; font-weight: 600; text-align: left; color: var(--text, #2C1810); cursor: pointer; }
.cm-color small { display: block; font-weight: 400; color: var(--muted, #7a6a5e); font-size: .76rem; }
.cm-color.is-on { border-color: #C4704A; background: rgba(196,112,74,.1); }
.cm-color:disabled { opacity: .45; cursor: not-allowed; }
.cm-sw { flex: none; display: inline-block; width: 22px; height: 22px; border-radius: 6px; border: 1px solid rgba(44,24,16,.15); overflow: hidden; vertical-align: middle; }
.cm-sw.is-big { width: 40px; height: 40px; border-radius: 9px; }
.cm-sw img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cm-sw.is-clear { background: repeating-linear-gradient(45deg, #fff 0 5px, #eee 5px 10px); }
.cm-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cm-msg { margin: .4rem 0 0; font-size: .92rem; min-height: 0; }
.cm-msg:empty { display: none; }
.cm-msg.is-bad { color: #A33A24; font-weight: 600; }
.cm-sent { padding: 1rem 1.1rem; border-radius: 14px; background: rgba(63,143,90,.1); }
.cm-sent h3 { margin: 0 0 .4rem; }
.cm-closed { padding: 1rem; border-radius: 12px; background: rgba(44,24,16,.06); }
.cm-mine { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.cm-mine small { display: block; color: var(--muted, #7a6a5e); }
.cm-status { display: inline-block; padding: .15rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 700; background: rgba(44,24,16,.08); white-space: nowrap; }
.cm-status.s-new { background: #C4704A; color: #fff; }
.cm-status.s-quoted, .cm-status.s-talking { background: rgba(192,138,30,.18); color: #7a5512; }
.cm-status.s-accepted, .cm-status.s-making { background: rgba(75,123,181,.16); color: #2c5486; }
.cm-status.s-done { background: rgba(63,143,90,.16); color: #2f6e44; }
.cm-tabs { display: flex; gap: .3rem; margin: 1rem 0 0; }
.cm-tabs button { border: 0; background: none; padding: .6rem 1rem; border-radius: 999px; font: inherit; font-weight: 700; color: var(--muted, #7a6a5e); cursor: pointer; }
.cm-tabs button.on { background: #2C1810; color: #fff; }
.cm-req { padding: 1.1rem 0; border-top: 1px solid rgba(44,24,16,.12); }
.cm-req header { display: flex; justify-content: space-between; gap: .8rem; align-items: flex-start; }
.cm-req h3 { margin: 0 0 .2rem; font-size: 1.05rem; }
.cm-dl { display: grid; grid-template-columns: 8rem 1fr; gap: .35rem .8rem; margin: .7rem 0; font-size: .93rem; }
.cm-dl dt { color: var(--muted, #7a6a5e); font-weight: 600; }
.cm-dl dd { margin: 0; }
.cm-pre { white-space: pre-wrap; }
.cm-cchip { display: inline-flex; align-items: center; gap: .3rem; margin: 0 .3rem .2rem 0; padding: .15rem .5rem .15rem .2rem; border-radius: 999px; background: rgba(44,24,16,.06); font-size: .85rem; }
.cm-req-pics { display: flex; flex-wrap: wrap; gap: .5rem; margin: .4rem 0 .7rem; }
.cm-req-pics a { position: relative; display: block; width: 110px; height: 110px; border-radius: 10px; overflow: hidden; border: 1px solid rgba(44,24,16,.12); }
.cm-req-pics img { width: 100%; height: 100%; object-fit: cover; }
.cm-req-edit { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .7rem; margin: .4rem 0 .7rem; }
.cm-req-edit .cm-wide { grid-column: 1 / -1; }
.cm-empty { margin: 1rem 0 0; color: var(--muted, #7a6a5e); }
.cm-offer { list-style: none; margin: 0 0 .5rem; padding: 0; display: grid; gap: .4rem; }
.cm-offer li { display: grid; grid-template-columns: 40px 1fr auto; gap: .6rem; align-items: center; font-weight: 600; }
.cm-offer small { display: block; color: var(--muted, #7a6a5e); font-weight: 400; font-size: .78rem; }
.cm-moves { display: flex; gap: .2rem; }
.cm-moves button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(44,24,16,.18); background: #fff; cursor: pointer; font: inherit; }
.cm-custom input[type=color] { width: 46px; height: 40px; padding: 2px; border-radius: 8px; border: 1px solid rgba(44,24,16,.2); background: #fff; }
.cm-custom .cm-row input[type=text] { flex: 1; min-width: 180px; }
.cm-more summary { cursor: pointer; font-weight: 700; margin: .8rem 0 .4rem; }
.cm-preview-title { margin: 2rem 0 0; font-size: 1.1rem; color: var(--muted, #7a6a5e); }
.cm-loading { padding: 2rem 0; color: var(--muted, #7a6a5e); }
@media (max-width: 560px) { .cm-card { padding: 1.1rem 1rem; } .cm-dl { grid-template-columns: 1fr; } .cm-dl dt { margin-top: .3rem; } }
.cm-thread { list-style: none; margin: .6rem 0 .9rem; padding: 0; display: grid; gap: .6rem; }
.cm-thread li { padding: .75rem .9rem; border-radius: 14px; max-width: 640px; }
.cm-thread li.is-alex { background: rgba(196,112,74,.1); border: 1px solid rgba(196,112,74,.25); }
.cm-thread li.is-them { background: rgba(44,24,16,.05); border: 1px solid rgba(44,24,16,.1); margin-left: auto; }
.cm-thread p { margin: .35rem 0 0; }
.cm-msg-head { display: flex; gap: .4rem; align-items: baseline; }
.cm-price { font-size: 1.15rem; font-weight: 800; }
.cm-yes { font-weight: 800; color: #2f6e44; }
.cm-propose { margin: .6rem 0 .9rem; padding: .9rem 1rem; border-radius: 14px; border: 1.5px dashed rgba(196,112,74,.5); display: flex; flex-direction: column; gap: .6rem; }
.cm-propose h4 { margin: 0; }
.cm-propose .cm-file { align-self: flex-start; }
.cm-answer { margin-top: .8rem; padding: .9rem 1rem; border-radius: 14px; background: rgba(255,255,255,.7); border: 1px solid rgba(44,24,16,.1); }
.cm-answer > p:first-child { margin: 0 0 .6rem; font-weight: 700; }
.cm-link { font-weight: 600; }
.cm-mine a { color: inherit; }
/* V3.49: the price list, decoration choices with their prices, Alex's stamps */
.cm-chips.is-priced .cm-chip { display: inline-flex; flex-direction: column; align-items: flex-start; border-radius: 14px; padding: .4rem .8rem; line-height: 1.2; }
.cm-chip small { font-size: .74rem; font-weight: 500; opacity: .72; }
.cm-tiers { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .5rem; }
.cm-tier { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .6rem .8rem; border: 2px solid rgba(44,24,16,.12); border-radius: 12px; background: #fff; color: var(--text, #2C1810); font: inherit; text-align: left; cursor: pointer; }
.cm-tier b { display: block; font-size: .95rem; }
.cm-tier small { display: block; font-size: .8rem; color: var(--muted, #7a6a5e); }
.cm-tier em { font-style: normal; font-weight: 800; white-space: nowrap; }
.cm-tier.is-on { border-color: #C4704A; background: rgba(196,112,74,.1); }
.cm-stamps { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: .5rem; }
.cm-stamp { display: flex; flex-direction: column; gap: .3rem; padding: .35rem; border: 2px solid rgba(44,24,16,.12); border-radius: 12px; background: #fff; font: inherit; font-size: .85rem; font-weight: 600; color: var(--text, #2C1810); cursor: pointer; }
.cm-stamp img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: rgba(44,24,16,.06); }
.cm-stamp.is-on { border-color: #C4704A; background: rgba(196,112,74,.1); }
.cm-stamp:disabled { opacity: .45; cursor: not-allowed; }
.cm-quote { padding: .7rem .9rem; border-radius: 12px; background: rgba(196,112,74,.1); font-size: .95rem; }
.cm-quote:empty { display: none; }
.cm-prices summary { cursor: pointer; font-weight: 700; color: #A3502E; font-size: .92rem; }
.cm-prices[open] summary { margin-bottom: .5rem; }
.cm-prices .cm-hint { margin-top: .5rem; }
.cm-ptable-wrap { overflow-x: auto; max-width: 100%; }
.cm-ptable { border-collapse: collapse; width: 100%; font-size: .88rem; }
.cm-ptable th, .cm-ptable td { padding: .4rem .5rem; border-bottom: 1px solid rgba(44,24,16,.1); text-align: right; }
.cm-ptable thead th { font-size: .78rem; color: var(--muted, #7a6a5e); vertical-align: bottom; }
.cm-ptable th[scope=row], .cm-ptable thead th:first-child { text-align: left; font-weight: 600; }
.cm-ptable td { font-variant-numeric: tabular-nums; }
.cm-ptable.is-edit { width: auto; }
.cm-ptable.is-edit th, .cm-ptable.is-edit td { text-align: left; padding-right: 1.6rem; }
@media (max-width: 560px) { .cm-ptable { font-size: .78rem; } .cm-ptable th, .cm-ptable td { padding: .35rem .22rem; } .cm-ptable thead th { font-size: .7rem; } }
.cm-ptable.is-edit .cm-money input { width: 7rem; padding: .4rem .5rem; border: 1px solid rgba(44,24,16,.2); border-radius: 8px; font: inherit; }
.cm-ptable.is-edit input[type=checkbox] { width: 1.1rem; height: 1.1rem; accent-color: #C4704A; }
.cm-card .cm-money input { width: 100%; box-sizing: border-box; }
.cm-stamplist { list-style: none; margin: .6rem 0; padding: 0; display: grid; gap: .45rem; }
.cm-stamplist li { display: grid; grid-template-columns: 52px 1fr auto; gap: .6rem; align-items: center; }
.cm-stamplist img { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; }
.cm-stamplist input, .cm-stamp-add input[type=text] { padding: .5rem .65rem; border: 1px solid rgba(44,24,16,.2); border-radius: 10px; font: inherit; min-width: 0; }
.cm-stamp-add input[type=text] { flex: 1; min-width: 160px; }
.cm-req-stamps { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .3rem; }
.cm-cchip img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.cm-step { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; margin-right: .5rem; border-radius: 50%; background: #C4704A; color: #fff; font-size: .85rem; font-weight: 800; vertical-align: 1px; }
.cm-sec h3 .cm-opt { font-size: .85rem; }
.cm-area { width: 100%; box-sizing: border-box; padding: .6rem .75rem; border: 1px solid rgba(44,24,16,.2); border-radius: 10px; background: #fff; color: var(--text, #2C1810); font: inherit; font-size: 1rem; resize: vertical; }
.cm-area:focus { outline: 2px solid rgba(196,112,74,.55); outline-offset: 1px; border-color: #C4704A; }
.cm-qty-row { align-items: flex-end; gap: 1rem; }
.cm-qty-row .cm-qty { width: 120px; }
.cm-qty-row .cm-prices { padding-bottom: .7rem; }
.cm-sw.is-any { display: inline-grid; place-items: center; background: conic-gradient(#C4704A, #d8b23a, #6e7f45, #2f9a9c, #3f6fa8, #b44a6a, #C4704A); color: #fff; font-weight: 800; font-size: 1.1rem; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.cm-form > .cm-more { margin: .2rem 0 1rem; padding: .8rem 1rem; border-radius: 14px; background: rgba(44,24,16,.04); }
.cm-form > .cm-more summary { margin: 0; }
.cm-form > .cm-more[open] summary { margin-bottom: .8rem; }
.cm-form > .cm-more .cm-field + .cm-field, .cm-form > .cm-more .cm-grid + .cm-field { margin-top: .7rem; }
.cm-summary { padding: 1rem 1.1rem; border-radius: 16px; background: rgba(196,112,74,.1); border: 1px solid rgba(196,112,74,.25); }
.cm-summary p { margin: 0 0 .3rem; }
.cm-sum-what { font-weight: 800; font-size: 1.05rem; }
.cm-sum-price { font-size: 1rem; }
.cm-sum-offer { font-size: .92rem; }
.cm-summary .cm-hint { margin-top: .4rem; }
.cm-summary .cm-row.is-end { margin-top: .4rem; }
.cm-cgroup + .cm-cgroup { margin-top: .9rem; }
.cm-cgroup h4 { margin: 0 0 .1rem; font-size: .95rem; }
.cm-cgroup .cm-hint { margin-bottom: .45rem; }
.cm-colors.is-compact { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .4rem; }
.cm-colors.is-compact .cm-color { padding: .3rem .45rem; font-size: .82rem; gap: .45rem; }
.cm-colors.is-compact .cm-sw { width: 26px; height: 26px; border-radius: 7px; }
.cm-colors.is-compact .cm-sw.is-any { font-size: .9rem; }
.cm-any { margin-top: .8rem; }
.cm-color.is-off { opacity: .45; border-style: dashed; }
.cm-color.is-off span { text-decoration: line-through; }
.cm-linkbtn { margin-top: .4rem; padding: 0; border: 0; background: none; color: #A3502E; font: inherit; font-size: .88rem; font-weight: 700; cursor: pointer; }
.cm-cchip small { color: var(--muted, #7a6a5e); }
.cm-side { margin: .3rem 0 .5rem; font-size: 1rem; }
.cm-inside { margin-top: 1.3rem; padding-top: 1rem; border-top: 1px dashed rgba(44,24,16,.15); }
.cm-colors.is-glazes .cm-sw { width: 38px; height: 38px; border-radius: 8px; }
.cm-colors.is-glazes .cm-color { min-height: 50px; }
.cm-sum-cols { font-size: .92rem; }
.cm-ctabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; }
.cm-ctab { display: flex; flex-direction: column; align-items: flex-start; gap: .1rem; min-width: 0; padding: .55rem .7rem; border: 2px solid rgba(44,24,16,.12); border-radius: 12px; background: #fff; color: var(--text, #2C1810); font: inherit; text-align: left; cursor: pointer; }
.cm-ctab b { font-size: .95rem; }
.cm-ctab small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .78rem; color: var(--muted, #7a6a5e); }
.cm-ctab.is-on { border-color: #2C1810; background: #2C1810; color: #fff; }
.cm-ctab.is-on small { color: rgba(255,255,255,.75); }
.cm-cpanel { padding: .9rem; border-radius: 14px; background: rgba(44,24,16,.035); }
.cm-or { display: flex; align-items: center; gap: .6rem; margin: .9rem 0 .5rem; color: var(--muted, #7a6a5e); font-size: .85rem; font-weight: 700; }
.cm-or::before, .cm-or::after { content: ''; flex: 1; height: 1px; background: rgba(44,24,16,.15); }
.cm-cpanel .cm-cgroup + .cm-cgroup { margin-top: 0; }
.cm-cpanel > .cm-hint { margin-top: .6rem; }
/* V3.55: the card a held color shows (its tile larger, and what it is) */
.cm-cpanel .cm-color { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.cm-peek { position: fixed; z-index: 1100; width: 300px; max-width: calc(100vw - 16px); padding: .7rem; border-radius: 14px; background: #fff; color: var(--text, #2C1810); border: 1px solid rgba(44,24,16,.14); box-shadow: 0 10px 30px rgba(44,24,16,.22); pointer-events: none; display: flex; gap: .7rem; align-items: flex-start; font-size: .84rem; line-height: 1.35; }
.cm-peek[hidden] { display: none; }
.cm-peek-pic { flex: none; width: 110px; height: 110px; border-radius: 10px; overflow: hidden; border: 1px solid rgba(44,24,16,.12); }
.cm-peek-pic img, .cm-peek-pic span { display: block; width: 100%; height: 100%; object-fit: cover; }
.cm-peek-pic .is-clear { background: repeating-linear-gradient(45deg, #fff 0 6px, #eee 6px 12px); }
.cm-peek-body { min-width: 0; }
.cm-peek-body b { display: block; font-size: .95rem; }
.cm-peek-body small { display: block; color: var(--muted, #7a6a5e); font-size: .76rem; }
.cm-peek-body p { margin: .35rem 0 0; }
.cm-peek-look { font-weight: 600; }
.cm-peek-use { color: #5d6b3a; font-weight: 600; }
.cm-peek-note { color: var(--muted, #7a6a5e); font-size: .74rem; }

/* =========================================
   V3.56 SHOP: MADE TO ORDER (examples from the gallery, "Order one" opens the commission form)
   ========================================= */
.shop-sec { margin: 0 0 1rem; }
.shop-mto + .shop-sec { margin-top: 2.75rem; }
.shop-sec-title { margin: 0 0 .3rem; font-size: 1.35rem; }
.shop-sec-intro { margin: 0; max-width: 46rem; color: var(--muted); }
.mto-grid { grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 1.1rem; }
.mto-card .product-info { padding: .9rem 1rem 1rem; }
.mto-card .product-name { font-size: 1.02rem; margin-bottom: .25rem; }
.mto-card .product-price { font-size: 1rem; }
.mto-card .product-desc { font-size: .82rem; }
@media (max-width: 560px) { .mto-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; } .mto-card .product-info { padding: .7rem .75rem .8rem; } .mto-cap { display: none; } }
.mto-card { display: flex; flex-direction: column; }
.mto-card .product-info { display: flex; flex-direction: column; flex: 1; }
.mto-card .product-desc { flex: 1; }
.mto-card .buy-btn { text-decoration: none; }
.mto-card .buy-btn:hover { text-decoration: none; opacity: .9; }
.mto-main { display: block; }
.mto-cap { position: absolute; left: .6rem; bottom: .6rem; max-width: calc(100% - 1.2rem); padding: .2rem .55rem; border-radius: 999px; background: rgba(44,24,16,.62); color: #fff; font-size: .75rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.mto-thumbs { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: .3rem; padding: .55rem .75rem 0; }
.mto-thumb { aspect-ratio: 1; min-width: 0; padding: 0; border: 2px solid transparent; border-radius: 7px; overflow: hidden; background: none; cursor: pointer; opacity: .75; }
.mto-thumb.is-on { border-color: var(--accent); opacity: 1; }
.mto-thumb:hover { opacity: 1; }
.product-card .mto-thumb img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; display: block; }
.mto-drawing { width: 100%; aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; background: var(--surface-2, #f3ece2); color: var(--muted); font-size: .82rem; }
.mto-drawing svg { width: 62%; height: auto; }
.mto-note { margin: -.6rem 0 1rem; color: var(--muted); font-size: .76rem; font-style: italic; }
/* =========================================
   V3.75 EVENTS (#/events, #/events/<slug>, the home page's Events card, Alex's #/events/manage; events.js)
   ========================================= */
.ev-wrap { display: block; }
.ev-page { padding-top: 1.6rem; }
.ev-page + .ev-page { margin-top: 1.25rem; }
.ev-wrap button.btn { border: 0; cursor: pointer; font: inherit; font-weight: 600; font-size: .95rem; }
.ev-wrap .btn { font-size: .95rem; padding: .65rem 1.25rem; border-radius: 999px; }
.ev-muted { color: var(--muted); }
.ev-small { font-size: .88rem; }
.ev-garland { display: block; width: 100%; max-width: 640px; height: auto; margin: -.9rem auto .3rem; overflow: visible; }
.ev-garland.is-home { max-width: 520px; margin: -1.1rem auto 0; }
.ev-orn { transform-box: view-box; animation: ev-sway 5.5s ease-in-out infinite alternate; }
@keyframes ev-sway { from { transform: rotate(-3.5deg); } to { transform: rotate(3.5deg); } }
@media (prefers-reduced-motion: reduce) { .ev-orn { animation: none; } }
.ev-icon { display: block; flex: none; }
.ev-kicker { margin: 0; color: var(--accent); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.ev-title { margin: .25rem 0 1rem; font-size: clamp(1.7rem, 4.6vw, 2.5rem); line-height: 1.12; }
.ev-when { display: flex; gap: .95rem; align-items: center; margin: 0 0 1rem; }
.ev-when-text { display: grid; gap: .12rem; min-width: 0; }
.ev-when-text b { font-size: 1.12rem; }
.ev-when-text span { color: var(--muted); overflow-wrap: anywhere; }
.ev-when-text .ev-addr { color: var(--text); font-weight: 600; }
.ev-badge { flex: none; width: 62px; border-radius: 14px; overflow: hidden; text-align: center; background: #fff; border: 1px solid rgba(44,24,16,.12); box-shadow: 0 2px 8px rgba(44,24,16,.07); display: grid; }
.ev-badge span:first-child { background: #C94A3B; color: #fff; font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; padding: .22rem 0 .18rem; }
.ev-badge b { font-size: 1.55rem; line-height: 1.15; padding-top: .1rem; }
.ev-badge span:last-child { font-size: .68rem; color: var(--muted); font-weight: 700; padding-bottom: .3rem; text-transform: uppercase; letter-spacing: .08em; }
.ev-badge.is-tbd span:first-child { background: var(--muted); }
.ev-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: .2rem 0 1rem; }
.ev-chip { display: inline-flex; align-items: center; padding: .28rem .75rem; border-radius: 999px; background: rgba(44,24,16,.07); font-size: .86rem; font-weight: 600; }
.ev-chip.is-free { background: rgba(63,138,78,.15); color: #2F6B3B; }
.ev-chip.is-count { background: rgba(196,112,74,.14); color: #95492A; }
.ev-about { max-width: 46rem; font-size: 1.03rem; line-height: 1.65; }
.ev-about p { margin: 0 0 .8rem; }
.ev-h2 { font-size: 1.2rem; margin: 1.5rem 0 .75rem; }
.ev-shapes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: .6rem; }
.ev-shapes li { display: grid; justify-items: center; gap: .35rem; padding: .85rem .4rem .75rem; background: rgba(255,255,255,.85); border: 1px solid rgba(44,24,16,.08); border-radius: 16px; text-align: center; font-weight: 600; font-size: .92rem; }
.ev-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.ev-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.ev-link { border: 0; background: none; padding: 0; font: inherit; color: var(--link, #A85A3A); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.ev-alex { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; margin: .75rem auto 0; padding: .6rem 1.1rem; border-radius: 14px; background: #2C1810; color: #FAF6F1; font-size: .9rem; }
.ev-alex a { color: #F3C9A6; font-weight: 700; }
.ev-alex > span { margin-right: auto; }
/* the sign-up sheet */
.ev-sheet-title { margin-top: 0; }
.ev-count { margin: -.2rem 0 1rem; color: var(--muted); }
.ev-count b { color: var(--text); }
.ev-form { display: grid; gap: 1.05rem; max-width: 40rem; }
.ev-form-head { margin: 0; font-weight: 700; font-size: 1.05rem; }
.ev-field { display: grid; gap: .35rem; font-weight: 600; }
.ev-field > span { font-size: .98rem; }
.ev-field input, .ev-field textarea { width: 100%; box-sizing: border-box; padding: .7rem .85rem; border: 1px solid rgba(44,24,16,.22); border-radius: 12px; background: #fff; color: var(--text); font: inherit; font-size: 1rem; font-weight: 400; }
.ev-field textarea { resize: vertical; min-height: 3.2rem; }
.ev-field input:focus, .ev-field textarea:focus { outline: 2px solid rgba(196,112,74,.55); outline-offset: 1px; border-color: var(--accent); }
.ev-opt { color: var(--muted); font-weight: 400; font-size: .85em; }
.ev-hint { margin: 0; color: var(--muted); font-size: .86rem; font-weight: 400; }
.ev-stepper { display: inline-flex; align-items: center; gap: .2rem; background: #fff; border: 1px solid rgba(44,24,16,.18); border-radius: 999px; padding: 3px; width: max-content; }
.ev-stepper button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(196,112,74,.12); color: #8C4527; font-size: 1.35rem; font-weight: 700; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.ev-stepper button:hover:not(:disabled) { background: var(--accent); color: #fff; }
.ev-stepper button:disabled { opacity: .35; cursor: default; }
.ev-stepper output { min-width: 2.2rem; text-align: center; font-size: 1.15rem; font-weight: 700; }
.ev-names { gap: .45rem; }
.ev-name-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .45rem; }
.ev-name { display: flex; align-items: center; gap: .5rem; font-weight: 400; }
.ev-name b { flex: none; width: 1.7rem; height: 1.7rem; border-radius: 50%; display: grid; place-items: center; background: rgba(196,112,74,.14); color: #8C4527; font-size: .85rem; }
.ev-name input { width: 100%; min-width: 0; box-sizing: border-box; padding: .55rem .75rem; border: 1px solid rgba(44,24,16,.22); border-radius: 10px; background: #fff; color: var(--text); font: inherit; font-size: 1rem; }
.ev-name input:focus { outline: 2px solid rgba(196,112,74,.55); outline-offset: 1px; border-color: var(--accent); }
.ev-more-shapes { margin-top: .55rem; font-style: italic; }
.ev-reach { border: 0; margin: 0; padding: 0; min-width: 0; }
.ev-reach legend { padding: 0; margin-bottom: .35rem; font-weight: 600; font-size: .98rem; }
.ev-reach input { width: 100%; box-sizing: border-box; margin-top: .45rem; padding: .7rem .85rem; border: 1px solid rgba(44,24,16,.22); border-radius: 12px; background: #fff; color: var(--text); font: inherit; font-size: 1rem; font-weight: 400; }
.ev-reach input:focus { outline: 2px solid rgba(196,112,74,.55); outline-offset: 1px; border-color: var(--accent); }
.ev-reach .ev-hint { display: block; margin-top: .35rem; }
.ev-seg { display: inline-flex; padding: 3px; gap: 3px; border-radius: 999px; background: rgba(44,24,16,.07); }
.ev-seg button { border: 0; background: transparent; font: inherit; font-weight: 600; font-size: .95rem; color: var(--muted); padding: .45rem 1.1rem; border-radius: 999px; cursor: pointer; }
.ev-seg button.on { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(44,24,16,.15); }
.ev-tags { display: flex; flex-wrap: wrap; gap: .45rem; }
.ev-tag { display: inline-grid; justify-items: center; gap: .05rem; min-width: 4.4rem; padding: .45rem .7rem .4rem; border-radius: 12px; background: #fff; border: 1.5px dashed rgba(44,24,16,.3); text-align: center; }
.ev-tag b { font-size: 1.35rem; line-height: 1.1; font-family: Georgia, 'Times New Roman', serif; }
.ev-tag span { font-size: .85rem; font-weight: 600; }
.ev-tag em { font-style: normal; font-size: .72rem; font-weight: 700; color: var(--muted); }
.ev-tag em.is-fired { color: #2F6B3B; }
.ev-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.ev-submit-row { margin-top: .2rem; }
.ev-submit { min-width: 10rem; }
.ev-fine { margin: 0; color: var(--muted); font-size: .86rem; }
.ev-done { margin: 0 0 1rem; padding: 1rem 1.1rem; border-radius: 16px; background: rgba(63,138,78,.09); border: 1px solid rgba(63,138,78,.25); display: grid; gap: .5rem; max-width: 40rem; }
.ev-done p { margin: 0; }
.ev-done.is-fresh { animation: ev-pop .5s ease-out; }
@keyframes ev-pop { from { transform: scale(.97); opacity: .4; } to { transform: none; opacity: 1; } }
.ev-done-head { display: flex; align-items: center; gap: .55rem; font-weight: 700; font-size: 1.1rem; }
.ev-tick { width: 1.7rem; height: 1.7rem; flex: none; border-radius: 50%; background: #3F8A4E; color: #fff; display: grid; place-items: center; font-size: .95rem; }
.ev-closed { margin: 0; padding: .9rem 1.1rem; border-radius: 14px; background: rgba(44,24,16,.06); font-weight: 600; max-width: 40rem; }
.ev-alexnote { margin: 0 0 .8rem; padding: .55rem .85rem; border-radius: 10px; background: rgba(166,107,18,.12); color: #7A4F0E; font-size: .9rem; max-width: 40rem; }
.ev-again { margin: .2rem 0 0; }
/* cards: the list and the home page */
.ev-lead { margin: .35rem 0 1.1rem; color: var(--muted); font-size: 1.05rem; }
.ev-cards { display: grid; gap: .75rem; }
.ev-card { display: flex; align-items: center; gap: 1rem; padding: .95rem 1.1rem; border-radius: 18px; background: rgba(255,255,255,.88); border: 1px solid rgba(44,24,16,.09); box-shadow: 0 4px 14px rgba(44,24,16,.05); color: var(--text) !important; text-decoration: none !important; transition: transform .15s, box-shadow .15s; }
.ev-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(44,24,16,.09); }
.ev-card-main { flex: 1; min-width: 0; }
.ev-card-main h3 { margin: 0 0 .2rem; font-size: 1.12rem; }
.ev-card-when { margin: 0 0 .45rem; color: var(--muted); font-size: .93rem; }
.ev-card .ev-chips { margin: 0; }
.ev-card-go { flex: none; font-weight: 700; color: var(--accent); white-space: nowrap; }
.ev-more { margin: .9rem 0 0; text-align: center; }
.ev-empty { text-align: center; padding: .5rem 0 1rem; color: var(--muted); }
.ev-empty .ev-garland { max-width: 300px; margin-top: 0; }
.ev-empty h2 { color: var(--text); font-size: 1.3rem; margin: .4rem 0; }
@media (max-width: 560px) {
  .ev-card { flex-wrap: wrap; gap: .75rem; }
  .ev-card-go { width: 100%; text-align: right; }
  .ev-shapes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ev-shapes li { font-size: .82rem; padding: .7rem .2rem .6rem; }
  .ev-alex > span { width: 100%; }
}
/* Alex's side (inside the dashboard kit, .adm) */
.adm svg.ev-icon, .adm-overlay svg.ev-icon, .adm .ev-m-qrimg svg { fill: initial; stroke: none; stroke-width: 1; stroke-linecap: butt; stroke-linejoin: miter; }
.adm .ev-m-qrimg svg { width: 100%; height: 100%; }
.adm.ev-m input[type=time] { width: 100%; min-width: 0; font: inherit; font-size: 16px; color: var(--k-ink); background: #fff; border: 1px solid var(--k-line-strong); border-radius: 10px; padding: 9px 12px; min-height: 42px; -webkit-appearance: none; appearance: none; }
.adm.ev-m input[type=time]:focus { outline: none; border-color: var(--k-accent); box-shadow: 0 0 0 3px var(--k-accent-soft); }
.ev-m-pubtext { font-style: normal; }
.ev-m-picknote { margin: 2px 0 12px; }
.ev-m-tabs { margin-bottom: 14px; }
.ev-m-pane { display: grid; gap: 12px; }
.ev-m-pane > .adm-card + .adm-card { margin-top: 0; }
.ev-m-form { display: grid; gap: 12px; }
.ev-m-form .adm-card + .adm-card { margin-top: 0; }
.ev-m-slug { display: flex; align-items: center; border: 1px solid var(--k-line-strong); border-radius: 10px; background: #fff; overflow: hidden; }
.ev-m-slug > span { padding: 0 2px 0 12px; color: var(--k-muted); white-space: nowrap; font-size: 15px; }
.ev-m-slug input { border: 0 !important; box-shadow: none !important; padding-left: 0 !important; min-width: 0; }
.ev-m-slug.is-fixed { justify-content: space-between; padding: 4px 4px 4px 0; background: var(--k-tint); }
.ev-m-slug.is-fixed > span { color: var(--k-ink); font-weight: 600; }
.ev-m-when { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ev-m-switches { align-content: end; padding-bottom: 6px; }
.ev-m-choices { display: grid; gap: 8px; margin: 12px 0 10px; }
.ev-m-choice { display: grid; grid-template-columns: 44px minmax(0, 175px) minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.ev-m-prev { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; background: var(--k-tint); }
.ev-m-noicon { color: var(--k-faint); }
.ev-m-thumb { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: var(--k-tint); flex: none; }
.ev-m-stats { margin-bottom: 0; }
.ev-m-extra { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.ev-m-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 15px; margin-top: 4px; }
.ev-m-sum b { font-size: 20px; }
.ev-m-total { padding: 4px 12px; border-radius: 10px; background: var(--k-accent-soft); color: var(--k-accent-deep); font-weight: 650; }
.ev-m-nos { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: 5px; }
.ev-m-no { display: inline-flex; align-items: baseline; gap: 3px; padding: 1px 8px; border-radius: 999px; background: var(--k-tint); font-size: 13.5px; }
.ev-m-no b { font-size: 14px; }
.ev-m-person .adm-btn.sm { flex: none; }
.ev-m-kilnhint { margin: -4px 0 10px; }
.ev-m-kfilter { margin-bottom: 10px; }
.ev-m-bulk { margin: 0 0 10px; }
.ev-m-pieces { display: grid; border: 1px solid var(--k-line); border-radius: 12px; overflow: hidden; }
.ev-m-piece { display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 12px; border-top: 1px solid var(--k-line); background: #fff; flex-wrap: wrap; }
.ev-m-piece:first-child { border-top: 0; }
.ev-m-bigno { flex: none; min-width: 52px; font: 700 20px/1 Georgia, 'Times New Roman', serif; }
.ev-m-who { flex: 1; min-width: 130px; font-size: 15px; }
.ev-m-stage { flex: none; }
.ev-m-stage button { padding: 5px 10px; font-size: 13px; }
.ev-m-stage button.on[data-stage=made] { color: #A66B12; }
.ev-m-stage button.on[data-stage=fired] { color: var(--k-ok); }
.ev-m-stage button.on[data-stage=picked] { color: var(--k-muted); }
.ev-m-names { display: grid; gap: 6px; }
.ev-m-reach { display: grid; grid-template-columns: minmax(0, 170px) minmax(0, 1fr); gap: 8px; }
.ev-m-picks { display: grid; border: 1px solid var(--k-line); border-radius: 12px; overflow: hidden; }
.ev-m-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px; border-top: 1px solid var(--k-line); background: #fff; }
.ev-m-pick:first-child { border-top: 0; }
.ev-m-pnums { font-size: 14px; color: var(--k-accent-deep); font-weight: 650; }
.ev-m-pbtns { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.ev-m-preview { margin: 8px 0 10px; padding: 10px 12px; border-radius: 10px; background: var(--k-tint); font-size: 14.5px; line-height: 1.45; }
.ev-m-notyet { margin: 0; font-size: 14px; line-height: 1.6; }
.ev-m-namerow { display: grid; grid-template-columns: 48px 1fr; gap: 8px; align-items: center; font-size: 14px; font-weight: 650; color: var(--k-muted); }
.ev-m-extra input { width: 84px !important; }
.ev-m-people { display: grid; gap: 0; border: 1px solid var(--k-line); border-radius: 12px; overflow: hidden; margin-bottom: 10px; }
.ev-m-person { display: flex; gap: 10px; align-items: flex-start; padding: 10px 8px 10px 14px; border-top: 1px solid var(--k-line); background: #fff; }
.ev-m-person:first-child { border-top: 0; }
.ev-m-pmain { flex: 1; min-width: 0; }
.ev-m-pline { margin-top: 3px; font-size: 14px; overflow-wrap: anywhere; }
.ev-m-note { font-style: italic; }
.ev-m-qr { display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; }
.ev-m-qrimg { width: 240px; max-width: 100%; aspect-ratio: 1; flex: none; border-radius: 12px; overflow: hidden; border: 1px solid var(--k-line); background: #fff; }
.ev-m-qrimg svg { display: block; width: 100%; height: 100%; }
.ev-m-qrtext { flex: 1; min-width: 240px; display: grid; gap: 8px; align-content: start; }
.ev-m-qrtext h2 { margin: 0; }
.ev-m-url { font-size: 19px; font-weight: 700; margin: 0; overflow-wrap: anywhere; }
.ev-m-warn { white-space: normal; line-height: 1.4; padding: 6px 10px; border-radius: 10px; }
@media (max-width: 640px) {
  .ev-m-choice { grid-template-columns: 44px minmax(0, 1fr) auto; }
  .ev-m-choice select { grid-column: 2 / 4; }
  .ev-m-choice input { grid-column: 2 / 3; }
  .ev-m-when { grid-template-columns: 1fr 1fr; }
  .ev-m-when > :first-child { grid-column: 1 / -1; }
  .ev-m-stage { width: 100%; }
  .ev-m-stage button { flex: 1; padding: 6px 4px; }
}
/* printing: a sign for the park, a check-off list */
.ev-print { display: none; }
@media print {
  @page { size: letter; margin: .45in; }
  body.ev-printing { background: #fff !important; }
  body.ev-printing > :not(.ev-print) { display: none !important; }
  body.ev-printing .ev-print { display: block !important; color: #1d120b; font-family: Georgia, 'Times New Roman', serif; }
  .ev-orn { animation: none !important; }
  .ev-sign { text-align: center; padding-top: .1in; }
  .ev-sign .ev-garland { width: 100%; max-width: none; margin: 0 auto .15in; }
  .ev-sign h1 { font-size: 40pt; line-height: 1.08; margin: 0 0 .14in; }
  .ev-sign-when { font-size: 22pt; font-weight: 700; margin: 0 0 .05in; font-family: system-ui, -apple-system, sans-serif; }
  .ev-sign-where { font-size: 17pt; margin: 0 0 .1in; font-family: system-ui, -apple-system, sans-serif; }
  .ev-sign-free { display: inline-block; font-size: 17pt; font-weight: 700; color: #2F6B3B; border: 2.5pt solid #2F6B3B; border-radius: 999px; padding: .03in .2in; margin: .02in 0 .12in; font-family: system-ui, -apple-system, sans-serif; }
  .ev-sign-shapes { font-size: 13pt; margin: 0 0 .15in; font-family: system-ui, -apple-system, sans-serif; color: #5a4a40; }
  .ev-sign-qr { display: inline-flex; align-items: center; gap: .3in; padding: .16in .26in; border: 2pt solid #1d120b; border-radius: .16in; text-align: left; }
  .ev-sign-qr svg { width: 2.7in; height: 2.7in; }
  .ev-sign-qr b { display: block; font-size: 24pt; font-family: system-ui, -apple-system, sans-serif; }
  .ev-sign-qr span { display: block; font-size: 15pt; margin-top: .06in; font-family: ui-monospace, Menlo, monospace; }
  .ev-sign-by { font-size: 11pt; color: #7a6b63; margin-top: .14in; font-family: system-ui, -apple-system, sans-serif; }
  .ev-plist { font-family: system-ui, -apple-system, sans-serif; font-size: 11pt; }
  .ev-plist h1 { font-size: 18pt; margin: 0 0 .04in; }
  .ev-plist > p { margin: 0 0 .14in; color: #5a4a40; }
  .ev-plist table { width: 100%; border-collapse: collapse; }
  .ev-plist th, .ev-plist td { border-bottom: .75pt solid #bbb; padding: .07in .06in; text-align: left; vertical-align: top; }
  .ev-plist th { font-size: 9.5pt; color: #5a4a40; }
  .ev-plist .ck { width: .62in; text-align: center; }
  .ev-plist .no { width: .45in; font-weight: 700; font-size: 13pt; }
  .ev-plist .ck span { display: inline-block; width: .17in; height: .17in; border: 1pt solid #1d120b; border-radius: 2pt; }
  .ev-plist .ck span.on { background: #1d120b; }
  .ev-plist tr { break-inside: avoid; }
}
