/* StitchLab Designs (gostitchlab.com/designs): built from the 2026-10-22 mockup, live 2026-10-31 (designs.js); the site's
   own fonts (SIL OFL, bundled: /fonts) and colors, bright like the front page. */
@font-face { font-family: "Bricolage Grotesque"; font-weight: 600; font-display: swap;
  src: url("/fonts/bricolage-grotesque-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 800; font-display: swap;
  src: url("/fonts/bricolage-grotesque-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 400; font-display: swap;
  src: url("/fonts/figtree-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 600; font-display: swap;
  src: url("/fonts/figtree-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 700; font-display: swap;
  src: url("/fonts/figtree-latin-700-normal.woff2") format("woff2"); }

:root {
  --ink: #1B1530; --muted: #4A4360; --line: #ECE6F7; --soft: #FBFAFF; --navy: #3B1E8F; --link: #4B2BD6;
  --gold: #FFC53D; --mint: #C8F7E4; --mint-ink: #0B5A3C; --sun: #FFE9A8; --sun-ink: #5B4300; --lilac: #F1ECFF;
  --hero: linear-gradient(115deg, #5B21B6 0%, #4338CA 32%, #2563EB 58%, #06B6D4 100%);
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #FFFFFF; color: var(--ink); font-family: "Figtree", system-ui, sans-serif; }
a { color: var(--link); } a:hover { color: #2E1A8F; }
img { max-width: 100%; }
button, input, select, textarea { font-family: inherit; }
.display { font-family: "Bricolage Grotesque", system-ui, sans-serif; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 3px; }

/* the preview note at the very top */
.preview-note { background: #1B1530; color: #FFFFFF; font-size: 14px; }
.preview-note .wrap { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; justify-content: center; padding-top: 9px; padding-bottom: 9px; }
.preview-note b { color: var(--gold); }
.preview-note label { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; cursor: pointer; }
.preview-note input { width: 16px; height: 16px; margin: 0; accent-color: var(--gold); }

/* header */
.band { background: var(--hero); }
.band.hero-band { background: linear-gradient(180deg, rgba(255,255,255,0) 72%, #FFFFFF 100%), var(--hero); padding-bottom: 40px; }
.site-head { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; padding-top: 18px; padding-bottom: 18px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #FFFFFF; }
.logo:hover { color: #FFFFFF; }
.logo .name { font-weight: 800; font-size: 24px; letter-spacing: -0.5px; }
.logo .tag { background: rgba(255,255,255,.18); font-weight: 700; font-size: 13px; padding: 5px 10px; border-radius: 999px; letter-spacing: .3px; }
.head-nav { display: flex; gap: 18px; align-items: center; font-weight: 600; font-size: 16px; }
.head-nav a { color: #FFFFFF; text-decoration: none; }
.head-nav a:hover { text-decoration: underline; color: #FFFFFF; }
.search { flex: 1 1 300px; min-width: 0; display: flex; align-items: center; gap: 10px; background: #FFFFFF; border-radius: 999px; padding: 5px 5px 5px 18px; }
.search input { flex: 1 1 auto; min-width: 0; border: 0; font-size: 16px; color: var(--ink); background: transparent; padding: 8px 0; }
.search input:focus-visible { outline: none; }
.search:focus-within { outline: 3px solid var(--gold); outline-offset: 2px; }
.search button { flex: none; border: 0; background: var(--navy); color: #FFFFFF; font-weight: 700; font-size: 15px; padding: 10px 18px; border-radius: 999px; cursor: pointer; }
.head-right { display: flex; gap: 12px; align-items: center; }
.btn-upload { display: flex; align-items: center; gap: 8px; background: var(--gold); color: var(--navy); text-decoration: none; padding: 10px 18px; border-radius: 999px; font-weight: 700; }
.btn-upload:hover { color: var(--navy); background: #FFD465; }
.btn-login { background: #FFFFFF; color: var(--navy); text-decoration: none; padding: 10px 20px; border-radius: 999px; font-weight: 700; }
.btn-login:hover { background: var(--lilac); color: #2E1A8F; }
.round-btn { position: relative; width: 44px; height: 44px; border-radius: 999px; border: 0; background: rgba(255,255,255,.18); cursor: pointer; display: grid; place-items: center; }
.round-btn .count { position: absolute; top: 6px; right: 6px; min-width: 18px; height: 18px; border-radius: 999px; background: var(--gold); color: var(--navy); font-weight: 800; font-size: 11px; display: grid; place-items: center; border: 2px solid #4338CA; }
.me { width: 44px; height: 44px; border-radius: 999px; border: 2px solid #FFFFFF; background: var(--gold); color: var(--navy); font-weight: 800; font-size: 17px; cursor: pointer; }
body:not(.signed-in) .when-in { display: none !important; }
body.signed-in .when-out { display: none !important; }

/* the banner */
.carousel { position: relative; margin-top: 8px; border-radius: 28px; overflow: hidden; background: rgba(27,21,48,.28); box-shadow: 0 24px 60px rgba(27,21,48,.28); }
.track { display: flex; width: 400%; transition: transform .7s cubic-bezier(.65,0,.35,1); }
.slide { width: 25%; min-height: 420px; display: flex; flex-wrap: wrap; align-items: stretch; }
.slide .text { flex: 1 1 380px; min-width: 0; padding: 48px 44px 64px; display: flex; flex-direction: column; justify-content: center; gap: 18px; color: #FFFFFF; }
.slide .pic { flex: 1 1 420px; min-width: 0; min-height: 300px; display: flex; background: #E9EEF6; }
.slide .pic img { width: 100%; height: 100%; object-fit: cover; }
.slide .pic.centered { background: transparent; align-items: center; justify-content: center; padding: 32px; }
.slide .pic.centered img { width: 100%; max-width: 460px; height: auto; filter: drop-shadow(0 12px 24px rgba(27,21,48,.35)); }
.slide h2 { margin: 0; font-weight: 800; font-size: clamp(34px, 4vw, 52px); line-height: 1.04; letter-spacing: -1.2px; }
.slide p { margin: 0; font-size: 19px; line-height: 1.5; color: #E9E3FF; max-width: 36ch; }
.eyebrow { align-self: flex-start; font-weight: 700; font-size: 13px; padding: 6px 12px; border-radius: 999px; letter-spacing: .3px; }
.btn-white { background: #FFFFFF; color: var(--navy); font-weight: 700; font-size: 17px; padding: 14px 24px; border-radius: 999px; text-decoration: none; }
.btn-white:hover { background: var(--lilac); color: #2E1A8F; }
.btn-line { color: #FFFFFF; font-weight: 700; font-size: 17px; padding: 12px 22px; border-radius: 999px; border: 2px solid #FFFFFF; text-decoration: none; }
.btn-line:hover { color: #FFFFFF; background: rgba(255,255,255,.14); }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.arrow { position: absolute; bottom: 14px; width: 44px; height: 44px; border-radius: 999px; border: 0; background: rgba(255,255,255,.92); box-shadow: 0 4px 14px rgba(27,21,48,.25); cursor: pointer; display: grid; place-items: center; }
.arrow.prev { right: 70px; } .arrow.next { right: 16px; }
.dots { position: absolute; left: 44px; bottom: 22px; display: flex; gap: 8px; align-items: center; }
.dot { width: 12px; height: 12px; border-radius: 999px; border: 0; padding: 0; background: rgba(255,255,255,.45); cursor: pointer; transition: width .3s ease; }
.dot[aria-pressed="true"] { width: 34px; background: #FFFFFF; }

.promise { display: flex; flex-wrap: wrap; gap: 14px 40px; justify-content: center; font-weight: 600; font-size: 16px; color: var(--muted); padding-top: 8px; }
.promise span { display: flex; align-items: center; gap: 10px; }

/* browsing: the filters on the left, the designs on the right */
.browse { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; padding-top: 40px; }
.filters { flex: 1 1 240px; max-width: 280px; min-width: 0; display: flex; flex-direction: column; gap: 22px; border: 1px solid var(--line); border-radius: 22px; padding: 20px; background: var(--soft); }
.filters h2 { margin: 0; font-weight: 800; font-size: 22px; }
.filters fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.filters .pick select { width: 100%; min-width: 0; }
.filters legend { font-weight: 800; font-size: 15px; padding: 0; margin-bottom: 8px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--navy); }
.pick { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.pick select { font-weight: 600; font-size: 14px; color: var(--ink); border: 2px solid var(--line); border-radius: 12px; padding: 9px 10px; background: #FFFFFF; }
.note { font-size: 13px; color: var(--muted); }
.link-btn { border: 0; background: transparent; color: var(--link); font-weight: 700; font-size: 14px; cursor: pointer; padding: 6px 0; }
@media (max-width: 640px) { .filters { max-width: none; } }
.results { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.results-head { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: baseline; justify-content: space-between; }
.h2 { margin: 0; font-weight: 800; font-size: 34px; letter-spacing: -.8px; }
.sort { border: 0; background: transparent; color: var(--muted); font-weight: 700; font-size: 15px; padding: 8px 14px; border-radius: 999px; cursor: pointer; }
.sort[aria-pressed="true"] { background: var(--lilac); color: var(--navy); }
.chip { border: 2px solid var(--ink); background: var(--ink); color: #FFFFFF; font-weight: 600; font-size: 14px; padding: 7px 14px; border-radius: 999px; cursor: pointer; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.empty { padding: 36px; border: 2px dashed var(--line); border-radius: 22px; text-align: center; color: var(--muted); }

.card { display: flex; flex-direction: column; background: #FFFFFF; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(27,21,48,.16); color: var(--ink); }
.thumb { position: relative; aspect-ratio: 4 / 3; overflow: hidden; display: grid; place-items: center; }
.thumb > img, .thumb > svg { transition: transform .35s ease; }
.thumb > img { width: 100%; height: 100%; object-fit: cover; }
.card:hover .thumb > img, .card:hover .thumb > svg { transform: scale(1.05); }
.badges { position: absolute; left: 12px; top: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.badge { font-weight: 700; font-size: 13px; padding: 5px 10px; border-radius: 999px; background: #FFFFFF; color: var(--navy); }
.badge.free { background: var(--mint); color: var(--mint-ink); }
.badge.paid { background: var(--sun); color: var(--sun-ink); }
.badge.new { color: var(--mint-ink); }
.moving { position: absolute; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 6px; background: rgba(27,21,48,.78); color: #FFFFFF; font-weight: 700; font-size: 12px; padding: 5px 10px; border-radius: 999px; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.card-title { font-weight: 700; font-size: 17px; line-height: 1.25; }
.creator { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.avatar { width: 24px; height: 24px; border-radius: 999px; color: #FFFFFF; display: grid; place-items: center; font-weight: 700; font-size: 12px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 13px; color: var(--muted); }
.meta .tech { color: var(--navy); font-weight: 700; }
.stitch { stroke-dasharray: 3.2 2.2; stroke-linecap: round; stroke-linejoin: round; fill: none; }

/* bands */
.section { margin-top: 56px; }
.challenge { border-radius: 28px; background: linear-gradient(135deg, #FFF4D6 0%, #FFE3EE 55%, #E7E5FF 100%); padding: 40px; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }
.challenge .text { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.challenge p { margin: 0; font-size: 18px; line-height: 1.55; color: var(--muted); max-width: 46ch; }
.btn-navy { background: var(--navy); color: #FFFFFF; font-weight: 700; font-size: 17px; padding: 14px 24px; border-radius: 999px; text-decoration: none; border: 0; cursor: pointer; }
.btn-navy:hover { color: #FFFFFF; background: #2E1A8F; }
.btn-navy-line { color: var(--navy); font-weight: 700; font-size: 17px; padding: 12px 22px; border-radius: 999px; border: 2px solid var(--navy); text-decoration: none; }
.entries { flex: 1 1 420px; min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.entries > div { aspect-ratio: 1; border-radius: 18px; background: #FFFFFF; display: grid; place-items: center; }
.share { border-radius: 28px; background: var(--hero); color: #FFFFFF; padding: 44px; display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; justify-content: space-between; }
.share p { margin: 0; font-size: 18px; line-height: 1.55; color: #E9E3FF; max-width: 50ch; }
.btn-gold { background: var(--gold); color: var(--navy); font-weight: 700; font-size: 17px; padding: 14px 24px; border-radius: 999px; text-decoration: none; }
.btn-gold:hover { color: var(--navy); background: #FFD465; }

.foot { margin-top: 64px; border-top: 1px solid var(--line); background: var(--soft); }
.foot .wrap { padding-top: 32px; padding-bottom: 32px; display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; font-size: 15px; color: var(--muted); }
.foot nav { display: flex; flex-wrap: wrap; gap: 18px; }

/* a design's page */
.crumbs { font-size: 15px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; padding-top: 22px; }
.design { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; padding-top: 18px; }
.gallery { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.viewer { position: relative; aspect-ratio: 4 / 3; border-radius: 24px; overflow: hidden; background: #F3F1F8; display: grid; place-items: center; }
.viewer > * { grid-area: 1 / 1; }
.viewer img { width: 100%; height: 100%; object-fit: cover; }
.viewer .label { position: absolute; left: 16px; bottom: 16px; display: flex; align-items: center; gap: 8px; background: rgba(27,21,48,.78); color: #FFFFFF; font-weight: 700; font-size: 14px; padding: 7px 12px; border-radius: 999px; }
.placeholder { width: 100%; height: 100%; display: grid; place-items: center; background: repeating-linear-gradient(45deg, #EEEAF7 0 14px, #F6F4FB 14px 28px); color: var(--muted); font-weight: 700; font-size: 18px; text-align: center; padding: 20px; }
.thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.thumbbtn { position: relative; aspect-ratio: 4 / 3; border: 3px solid transparent; border-radius: 16px; padding: 0; overflow: hidden; cursor: pointer; background: #F3F1F8; display: grid; place-items: center; }
.thumbbtn[aria-pressed="true"] { border-color: #4338CA; }
.thumbbtn img { width: 100%; height: 100%; object-fit: cover; }
.thumbbtn span { position: absolute; left: 8px; bottom: 8px; background: rgba(255,255,255,.92); color: var(--ink); font-weight: 700; font-size: 12px; padding: 4px 8px; border-radius: 999px; }
.side { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.side h1 { margin: 0; font-weight: 800; font-size: 44px; line-height: 1.04; letter-spacing: -1px; }
.facts { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.facts div { background: var(--soft); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 800; font-size: 18px; }
.dl-box { border: 2px solid var(--line); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.dl-box select { font-weight: 600; font-size: 15px; color: var(--ink); border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #FFFFFF; }
.fit { margin: 0; display: flex; gap: 10px; align-items: flex-start; border-radius: 12px; padding: 10px 12px; font-weight: 600; font-size: 15px; }
.fit.ok { background: #ECFDF5; color: var(--mint-ink); }
.fit.no { background: #FFF7E6; color: #7A4B00; }
.btn-download { display: flex; align-items: center; justify-content: center; gap: 10px; border: 0; cursor: pointer; background: var(--navy); color: #FFFFFF; font-weight: 800; font-size: 19px; padding: 16px 20px; border-radius: 999px; }
.btn-download:hover { background: #2E1A8F; }
.after { border-radius: 16px; background: linear-gradient(135deg, var(--lilac) 0%, #E3F4FF 100%); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.after p { margin: 0; font-size: 15px; line-height: 1.5; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tile { display: flex; flex-direction: column; align-items: center; gap: 6px; border: 2px solid var(--line); border-radius: 16px; padding: 12px 8px; background: #FFFFFF; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 14px; cursor: pointer; }
.tile:hover { border-color: #C9BDF0; color: var(--ink); }
.tabs { display: flex; flex-wrap: wrap; gap: 26px; border-bottom: 1px solid var(--line); margin-top: 18px; }
.tab { border: 0; background: transparent; color: var(--muted); font-weight: 700; font-size: 16px; padding: 14px 4px; border-bottom: 3px solid transparent; cursor: pointer; }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: #4338CA; }
.panel { padding: 24px 0; }
.brand { border: 2px solid var(--line); background: #FFFFFF; color: var(--ink); font-weight: 700; font-size: 14px; padding: 8px 14px; border-radius: 999px; cursor: pointer; }
.brand[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.threads { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.threads li { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.threads .n { font-weight: 700; color: var(--muted); width: 22px; }
.threads .sw { width: 30px; height: 30px; border-radius: 999px; border: 1px solid rgba(27,21,48,.15); flex: none; }
.threads small { display: block; font-size: 13px; color: var(--muted); }
.tagchip { background: #F3F1F8; color: var(--muted); font-weight: 600; font-size: 14px; padding: 6px 12px; border-radius: 999px; }
.kv { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 15px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 600; }
.mat { border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.mat small { display: block; font-size: 13px; color: var(--muted); }
.mat b { font-size: 17px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .track, .card, .thumb > img, .thumb > svg, .dot { transition: none; }
  .card:hover { transform: none; }
}

/* live (2026-10-31): the intro band, StitchLab's stitch pictures shown whole on fabric white */
.intro { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; margin-top: 8px; border-radius: 28px;
  background: rgba(27,21,48,.28); box-shadow: 0 24px 60px rgba(27,21,48,.28); padding: 40px 44px; color: #FFFFFF; }
.intro .text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.intro h1 { margin: 0; font-weight: 800; font-size: clamp(34px, 4vw, 52px); line-height: 1.04; letter-spacing: -1.2px; }
.intro p { margin: 0; font-size: 19px; line-height: 1.5; color: #E9E3FF; max-width: 46ch; }
.intro .pic { flex: 1 1 320px; min-width: 0; display: flex; justify-content: center; }
.intro .pic img { width: 100%; max-width: 420px; height: auto; filter: drop-shadow(0 12px 24px rgba(27,21,48,.35)); }
.count { font-family: "Figtree", system-ui, sans-serif; font-weight: 600; font-size: 15px; color: var(--muted); letter-spacing: 0; margin-left: 8px; }
.thumb.stitched { background: #FBFAF6; }
.thumb.stitched > img { object-fit: contain; padding: 12px; }
.viewer img.fit-in { object-fit: contain; background: #FBFAF6; padding: 16px; }
.thumbbtn.stitched img { object-fit: contain; background: #FBFAF6; padding: 6px; }
a.tagchip { text-decoration: none; }
a.tagchip:hover { background: var(--lilac); color: var(--navy); }
@media (max-width: 640px) { .intro { padding: 28px 22px; } .side h1 { font-size: 34px; } }
.grid > .empty { grid-column: 1 / -1; }
/* your own designs on your profile: Edit... and Delete... under the card */
.card-wrap { display: flex; flex-direction: column; gap: 10px; }
.card-wrap > .card { flex: 1; }
.card-actions { display: flex; gap: 10px; justify-content: center; }
.viewer { grid-template-rows: 100%; grid-template-columns: 100%; }
.viewer > img { min-height: 0; min-width: 0; }

/* the community (2026-10-31): sign-in, stars, likes, reviews, profiles, collections */
.btn-navy.small, .btn-navy-line.small { font-size: 14px; padding: 8px 14px; }
.btn-navy-line { background: #FFFFFF; cursor: pointer; }
.btn-navy-line:hover { background: var(--lilac); color: var(--navy); }
.sld-me-wrap { position: relative; }
.me { overflow: hidden; padding: 0; display: grid; place-items: center; }
.me img { width: 100%; height: 100%; object-fit: cover; }
.sld-menu { position: absolute; right: 0; top: 52px; z-index: 30; min-width: 220px; background: #FFFFFF; border: 1px solid var(--line);
  border-radius: 16px; box-shadow: 0 18px 40px rgba(27,21,48,.2); padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.sld-menu small { color: var(--muted); margin-top: -6px; }
.sld-menu a, .sld-menu button { text-align: left; border: 0; background: transparent; padding: 6px 0; font-size: 15px; font-weight: 600; color: var(--link); cursor: pointer; text-decoration: none; }
.sld-modal { position: fixed; inset: 0; z-index: 50; background: rgba(27,21,48,.55); display: grid; place-items: center; padding: 16px; }
.sld-card { position: relative; width: min(440px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: #FFFFFF; border-radius: 24px;
  padding: 26px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 30px 70px rgba(27,21,48,.35); }
.sld-card h2 { margin: 0; font-weight: 800; font-size: 26px; letter-spacing: -.4px; }
.sld-x { position: absolute; top: 12px; right: 14px; border: 0; background: transparent; font-size: 26px; cursor: pointer; color: var(--muted); }
.sld-google { border: 2px solid var(--line); background: #FFFFFF; border-radius: 999px; padding: 11px 16px; font-weight: 700; font-size: 15px; cursor: pointer; }
.sld-form { display: flex; flex-direction: column; gap: 10px; }
.sld-form label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--muted); }
.sld-form label.check { flex-direction: row; color: var(--ink); }
.sld-form input[type="text"], .sld-form input[type="email"], .sld-form input[type="password"], .sld-form textarea,
.review-form textarea, .review-form input[type="text"] {
  font-size: 16px; color: var(--ink); border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #FFFFFF; width: 100%; }
.sld-msg { margin: 0; min-height: 1.2em; font-size: 14px; color: var(--mint-ink); }
.sld-msg.bad { color: #B42318; }
.sld-cols { display: flex; flex-direction: column; gap: 8px; }
.stars { color: #E5A400; letter-spacing: 1px; white-space: nowrap; }
.stars.big { font-size: 20px; }
.d-rating { margin: -6px 0 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 15px; }
.meta.social { gap: 10px; }
.avatar { flex: none; }
img.avatar { border-radius: 999px; display: block; }
.review-write { border: 2px solid var(--line); border-radius: 20px; padding: 16px; background: var(--soft); }
.review-form { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.review-write .review-form { margin-top: 0; }
.star-pick { display: inline-flex; }
.star-pick button { border: 0; background: transparent; font-size: 28px; line-height: 1; color: #D9D3E8; cursor: pointer; padding: 0 2px; }
.star-pick button.on, .star-pick button:hover { color: #E5A400; }
.notes-fold summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--navy); }
.notes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-top: 10px; }
.notes-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.review-photos { display: flex; gap: 8px; flex-wrap: wrap; }
.review-photos figure { margin: 0; position: relative; }
.review-photos img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; display: block; }
.review-photos button { position: absolute; top: -6px; right: -6px; border: 0; border-radius: 999px; background: var(--ink); color: #FFFFFF; width: 20px; height: 20px; cursor: pointer; }
.reviews-list { display: flex; flex-direction: column; gap: 14px; }
.review { border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: #FFFFFF; }
.review header { display: flex; gap: 12px; align-items: flex-start; }
.review header > div { flex: 1; min-width: 0; }
.review .who { font-weight: 700; color: var(--ink); text-decoration: none; }
.review a.who[href]:hover { text-decoration: underline; }
.sew-notes { font-size: 13px; color: var(--muted); margin-top: 2px; }
.badge.designer { background: var(--lilac); color: var(--navy); font-size: 12px; padding: 3px 8px; margin-left: 6px; }
.review .body { margin: 0; font-size: 16px; line-height: 1.55; white-space: pre-line; }
.review-shots { display: flex; gap: 10px; flex-wrap: wrap; }
.review-shots img { width: 180px; height: 180px; object-fit: cover; border-radius: 14px; display: block; }
.review footer { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); }
.review .acts { display: flex; gap: 14px; }
.review .acts .link-btn { font-size: 13px; padding: 2px 0; }
.review .acts [data-like][aria-pressed="true"] { color: var(--navy); text-decoration: underline; }
.replies { margin-left: 26px; display: flex; flex-direction: column; gap: 10px; border-left: 3px solid var(--line); padding-left: 14px; }
.review.reply { border: 0; padding: 4px 0; background: transparent; }
.profile-head { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; padding-top: 22px; }
.profile-words { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.profile-words h1 { margin: 0; font-weight: 800; font-size: 40px; letter-spacing: -1px; }
.profile-words p { margin: 4px 0; font-size: 16px; line-height: 1.55; white-space: pre-line; }
.profile-stats { flex: 1 1 360px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.collection-head { padding-top: 22px; display: flex; flex-direction: column; gap: 6px; }
.collection-head h1 { margin: 0; font-weight: 800; font-size: 40px; letter-spacing: -1px; }
.collection-head p { margin: 0; }
.col-item { display: flex; flex-direction: column; gap: 6px; }
.col-card { min-height: 110px; justify-content: center; background: linear-gradient(135deg, #FFF4D6 0%, #FFE3EE 55%, #E7E5FF 100%); }
@media (max-width: 640px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } .profile-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* messages, the unread count, follow, the guidelines (2026-10-31, phase 2) */
.me.has-unread { position: relative; overflow: visible; }
.me.has-unread::after { content: attr(data-unread); position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 999px; background: #DB2777; color: #FFFFFF; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.me.has-unread img { border-radius: 999px; }
.unread { background: #DB2777; color: #FFFFFF; border-radius: 999px; font-size: 11px; font-weight: 800; padding: 1px 7px; margin-left: 6px; }
#p-follow[aria-pressed="true"] { background: var(--lilac); color: var(--navy); }
.messages { display: flex; flex-wrap: wrap; gap: 24px; padding-top: 18px; align-items: stretch; }
.m-side { flex: 1 1 280px; max-width: 360px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.m-side h1 { margin: 0; font-weight: 800; font-size: 34px; }
.m-people { display: flex; flex-direction: column; gap: 6px; }
.m-person { display: flex; gap: 10px; align-items: center; text-align: left; border: 1px solid var(--line); background: #FFFFFF;
  border-radius: 14px; padding: 10px; cursor: pointer; position: relative; }
.m-person span { display: flex; flex-direction: column; min-width: 0; }
.m-person small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.m-person.on { border-color: #4338CA; background: var(--soft); }
.m-person.unread b { color: var(--navy); }
.m-person .dot { position: absolute; right: 12px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 999px; background: #DB2777; }
.m-main { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 20px; padding: 16px; background: var(--soft); }
.m-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.m-with { display: flex; gap: 10px; align-items: center; font-weight: 700; }
.m-with a { color: var(--ink); }
.m-thread { flex: 1; min-height: 280px; max-height: 60vh; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 12px 2px; }
.m-msg { max-width: 78%; display: flex; flex-direction: column; gap: 2px; }
.m-msg p { margin: 0; padding: 10px 14px; border-radius: 16px; white-space: pre-line; line-height: 1.45; overflow-wrap: anywhere; }
.m-msg small { color: var(--muted); font-size: 12px; padding: 0 6px; }
.m-msg.theirs { align-self: flex-start; } .m-msg.theirs p { background: #FFFFFF; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.m-msg.mine { align-self: flex-end; text-align: right; } .m-msg.mine p { background: var(--navy); color: #FFFFFF; border-bottom-right-radius: 4px; }
.m-msg .link-btn { font-size: 12px; padding: 0; }
.m-form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.m-form textarea { flex: 1 1 260px; font-size: 16px; border: 2px solid var(--line); border-radius: 14px; padding: 10px 12px; resize: vertical; }
.m-form .sld-msg { flex-basis: 100%; }
.guidelines { max-width: 820px; }
.guidelines h1 { font-weight: 800; font-size: 44px; letter-spacing: -1px; margin: 18px 0 8px; }
.guidelines .lead { font-size: 19px; line-height: 1.55; color: var(--muted); }
.guidelines h2 { font-family: "Bricolage Grotesque", system-ui, sans-serif; font-weight: 800; font-size: 24px; margin: 28px 0 8px; }
.guidelines li, .guidelines p { font-size: 17px; line-height: 1.6; }

.tabs { scroll-margin-top: 16px; }
.tab { scroll-margin-top: 16px; }
.sld-text { margin: 0; font-size: 17px; line-height: 1.5; }
.btn-navy.danger { background: #B42318; }
.btn-navy.danger:hover { background: #8F1C12; }
.sort[hidden] { display: none; }
.logo-patch { height: 40px; width: auto; display: block; filter: drop-shadow(0 4px 10px rgba(27,21,48,.35)); }
.badge.alpha { background: #FFE9A8; color: #5B4300; }
.slf-note { margin: 0; border-radius: 12px; padding: 10px 12px; background: var(--lilac); color: var(--navy); font-size: 14px; line-height: 1.45; }
.viewer img.fit-in { padding: 16px 16px 56px; }

/* moderators (2026-11-01, moderate.js): the bar on a design's / profile's / collection's page, the Moderate page */
.mod-bar { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-top: 16px; padding: 12px 16px;
  border-radius: 16px; background: var(--sun); color: var(--sun-ink); }
.mod-tag { font-weight: 800; font-size: 13px; letter-spacing: .3px; text-transform: uppercase; background: var(--sun-ink); color: var(--sun);
  padding: 4px 10px; border-radius: 999px; }
.mod-text { font-weight: 600; font-size: 15px; }
.mod-acts { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-left: auto; }
.mod-bar .btn-navy-line { background: #FFFFFF; }
.status-note { margin: 16px 0 0; padding: 12px 16px; border-radius: 16px; background: var(--lilac); color: var(--navy); font-weight: 600; }
.hidden-note { color: #B42318; }
.link-btn.mod { color: var(--sun-ink); }
.mod-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.mod-item { border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 8px; background: #FFFFFF; }
.mod-item p { margin: 0; overflow-wrap: anywhere; }
.mod-head { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.mod-head .badge { background: var(--lilac); }
.mod-excerpt { background: var(--soft); border-left: 4px solid var(--line); padding: 8px 12px; border-radius: 8px; white-space: pre-line; }
.mod-thumb { width: 56px; height: 42px; object-fit: cover; border-radius: 8px; }
.mod-log { width: 100%; border-collapse: collapse; font-size: 14px; }
.mod-log th, .mod-log td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.mod-log th { font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); }
#moderate .tab[aria-selected="true"] { color: var(--navy); border-bottom-color: var(--navy); }
@media (max-width: 700px) { .mod-log thead { display: none; } .mod-log tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 0; }
  .mod-log td { display: block; border: 0; padding: 2px 0; } .mod-acts { margin-left: 0; } }
