/* Design studio page (page 11). Print-shop visual system: warm paper, ink type, one accent. */
#page_11_studio {
    --st-paper: #f6f2ea;
    --st-paper-2: #ede6da;
    --st-card: #fbf8f2;
    --st-ink: #1c1a16;
    --st-muted: #6a645a;
    --st-line: #ddd5c7;
    --st-accent: #3f6fb8;
    --st-accent-soft: #d4def0;
    --st-danger: #a8322d;
    --st-display: 'Bricolage Grotesque', 'Arial Narrow', Arial, sans-serif;
    --st-body: 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;

    flex-shrink: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.5s cubic-bezier(0.68, 0, 0.1, 1);
    overflow-y: scroll;
    padding-left: 15px;
    background: var(--st-paper);
    box-sizing: border-box;
}
/* standalone /create page: normal page flow inside the site layout instead of a stacked panel */
#page_11_studio.studio-standalone { position: static; height: auto; overflow: visible; padding-left: 0; transform: none !important; display: flex !important; }
#page_11_studio.studio-standalone .st { padding-left: max(16px, 2vw); padding-right: max(16px, 2vw); }
.page-create .site-footer { margin-top: 0; }
#page_11_studio[data-angle="pets"] { --st-accent: #c8582f; --st-accent-soft: #f1d9cb; }
#page_11_studio[data-angle="bachelorette"] { --st-accent: #b84a74; --st-accent-soft: #efd3de; }
#page_11_studio[data-angle="gifts"] { --st-accent: #3d8a5a; --st-accent-soft: #d3e6d8; }

.st {
    width: 100%;
    max-width: 1120px;
    box-sizing: border-box;
    padding: 36px 8px 64px;
    color: var(--st-ink);
    font-family: var(--st-body);
    -webkit-font-smoothing: antialiased;
}
/* the site's global stylesheet sets Poppins and a text color on every element; reset them inside the studio */
.st *, .st *::before, .st *::after { box-sizing: border-box; font-family: var(--st-body); color: inherit; }
.st { text-align: left; }
.st [hidden] { display: none !important; }

.st-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.st-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--st-accent); }
.st .st-title { margin: 0; font-family: var(--st-display); font-weight: 800; font-size: clamp(34px, 5vw, 56px); line-height: 0.98; letter-spacing: -0.04em; text-wrap: balance; }

.st-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }

/* ---- shirt stage ---- */
/* sticky under the site header; on a short screen the shirt shrinks so the placement controls stay in view with it */
.st-stage { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 16px; }
.st-shirt { width: min(100%, calc(100vh - 420px)); min-width: 300px; margin: 0 auto; }
.st-shirt {
    position: relative;
    aspect-ratio: 1 / 1;
    max-width: 100%;
    border-radius: 24px;
    background: var(--st-paper-2);
    overflow: hidden;
}
/* the shirt is shown zoomed in on the chest so the design reads at a useful size; the hem is cropped, which is fine */
.st-shirt-zoom { position: absolute; inset: 0; transform: scale(1.35); transform-origin: 50% 40%; }
.st-shirt svg { position: absolute; inset: 4%; width: 92%; height: 92%; }
/* Printful's 12 x 16 in front print area, drawn to roughly match where it sits on the shirt */
.st-print-area { position: absolute; left: 32%; top: 22%; width: 36%; height: 48%; outline: 1px dashed transparent; outline-offset: 2px; }
.st-print-area.st-editing { outline-color: var(--st-area-line, rgba(28, 26, 22, 0.28)); }
.st-shirt-design {
    position: absolute;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    cursor: grab;
    touch-action: none;
    user-select: none;
    -webkit-user-drag: none;
}
.st-shirt-design.st-dragging { cursor: grabbing; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.18)); }
.st-print-area.st-zone { outline-offset: 1px; }
.st-print-area.st-zone .st-shirt-design { cursor: default; }
/* the shirt comes first so the two columns start level; the side tabs sit right under it */
.st-shirt { order: -1; }
.st-sides { justify-content: center; align-items: center; }
/* what can be done with the sides, as a quiet row under the tabs */
.st-side-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: -6px; }
.st-side-actions:not(:has(> :not([hidden]))) { display: none; }
.st-side-actions .st-btn { min-height: 32px; padding: 4px 12px; font-size: 13px; }
/* the shirt itself (type, color, outline) and where the design sits, boxed like the right column */
.st-shirt-group, .st-placement-group { gap: 14px; }
.st-placement-group:not(:has(> :not([hidden]))) { display: none; }
.st-roster-editing .st-placement-group { display: none !important; }
.st .st-btn-remove { min-height: 36px; padding: 6px 14px; font-size: 13px; background: #fff; color: var(--st-danger); border-color: #e2b9b3; gap: 6px; }
.st .st-btn-small { min-height: 36px; padding: 6px 14px; font-size: 13px; }
.st .st-btn-remove:hover { background: #fbeceb; border-color: var(--st-danger); }
.st-closeup { position: absolute; right: 4%; bottom: 4%; width: 30%; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.st-closeup-fabric { width: 100%; aspect-ratio: 1 / 1; border-radius: 999px; border: 3px solid #fff; box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.45); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.st-closeup-fabric img { width: 70%; height: 70%; object-fit: contain; }
.st-closeup span { white-space: nowrap; font-size: 11px; font-weight: 600; color: var(--st-muted); background: rgba(255, 255, 255, 0.85); padding: 2px 8px; border-radius: 999px; }
.st-products { gap: 8px; }
.st-placement { display: flex; flex-direction: column; gap: 10px; }
.st-range { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; }
.st-range input { flex-grow: 1; accent-color: var(--st-ink); min-height: 32px; }
.st-shirt-note {
    position: absolute;
    left: 50%;
    top: 25%;
    width: 36%;
    aspect-ratio: 1 / 1;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
    border: 1.5px dashed var(--st-note-line, #b9ae9b);
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.35;
    color: var(--st-note-ink, var(--st-muted));
}
.st-shirt-note.st-busy { border-style: solid; border-color: transparent; background: var(--st-accent-soft); color: var(--st-ink); font-weight: 600; overflow: hidden; }
/* loading shimmer: a light band sweeping across, animated with transform so it stays smooth while the page updates.
   --shimmer-delay (set from the clock in studio_code.html) keeps rebuilt elements in step. */
.st-shirt-note.st-busy::after, .st-card.st-pending .st-card-img::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(110deg, rgba(255,255,255,0) 30%, rgba(255,255,255,0.6) 50%, rgba(255,255,255,0) 70%);
    transform: translateX(-100%); will-change: transform;
    animation: st-sweep 1.4s linear infinite; animation-delay: var(--shimmer-delay, 0s);
}
@keyframes st-sweep { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .st-shirt-note.st-busy::after, .st-card.st-pending .st-card-img::after { animation: none; opacity: 0; } }

.st-colors { display: flex; flex-direction: column; gap: 10px; }
.st-colors-label { font-size: 14px; color: var(--st-muted); }
.st-colors-label strong { color: var(--st-ink); font-weight: 600; }
.st-swatches { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.st-swatch {
    width: 36px; height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(28, 26, 22, 0.18);
    cursor: pointer;
    padding: 0;
    position: relative;
}
:root {
    /* heather colors: light and dark flecks over the base color, like the speckled fabric */
    --heather-flecks: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cfilter id='a'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.5 -0.82'/%3E%3C/filter%3E%3Cfilter id='b'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' seed='9' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1.5 -0.85'/%3E%3C/filter%3E%3Crect width='48' height='48' filter='url(%23a)'/%3E%3Crect width='48' height='48' filter='url(%23b)'/%3E%3C/svg%3E");
}
.st-swatch-heather { background-image: var(--heather-flecks); background-size: 48px 48px; }
.st-swatch::after { content: ''; position: absolute; inset: -5px; border-radius: 999px; border: 2px solid transparent; }
.st-swatch[aria-pressed="true"]::after { border-color: var(--st-ink); }
.st-swatch:focus-visible { outline: 2px solid var(--st-accent); outline-offset: 4px; }

/* ---- panel ---- */
.st-panel { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.st-section { display: flex; flex-direction: column; gap: 10px; }
/* the start step's groups: who it's for, what it is, how it looks */
.st-group { gap: 14px; padding: 18px; background: rgba(255, 255, 255, 0.55); border: 1px solid var(--st-line); border-radius: 18px; }
.st-group-title { font-size: 17px; }
.st-group > .st-hint { margin-top: -8px; }
.st-group .st-section .st-label { font-size: 14px; }
.st-label { font-size: 15px; font-weight: 700; color: var(--st-ink); }
.st-hint { font-size: 14px; color: var(--st-muted); margin: -4px 0 0; }
.st-fine { font-size: 13px; color: var(--st-muted); margin: 0; }
.st-error { font-size: 14px; color: var(--st-danger); margin: 0; font-weight: 600; }

.st-textarea, .st-input {
    width: 100%;
    font: inherit;
    font-size: 17px;
    line-height: 1.45;
    color: var(--st-ink);
    background: #fff;
    border: 1px solid var(--st-line);
    border-radius: 14px;
    padding: 14px 16px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.st-textarea { min-height: 112px; resize: vertical; }
.st-textarea:focus, .st-input:focus { border-color: var(--st-ink); box-shadow: 0 0 0 3px var(--st-accent-soft); }
.st-textarea::placeholder, .st-input::placeholder { color: #9b9489; }

.st-photo-drop {
    display: flex; align-items: center; gap: 14px;
    width: 100%;
    text-align: left;
    font: inherit;
    color: var(--st-ink);
    background: var(--st-card);
    border: 1.5px dashed #c4b9a6;
    border-radius: 14px;
    padding: 14px 16px;
    cursor: pointer;
    min-height: 64px;
}
.st-photo-drop:hover, .st-photo-drop.st-dragover { border-color: var(--st-ink); background: #fff; }
.st-photo-drop-icon { color: var(--st-accent); width: 40px; height: 40px; flex-shrink: 0; border-radius: 999px; background: var(--st-accent-soft); display: flex; align-items: center; justify-content: center; }
.st-photo-drop strong { display: block; font-size: 15px; }
.st-photo-drop-text > span { display: block; font-size: 13px; color: var(--st-muted); margin-top: 2px; }
.st-photo-preview { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--st-line); border-radius: 14px; padding: 10px 12px; }
.st-photo-preview img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; background: var(--st-paper-2); }
.st-photo-preview-text { flex-grow: 1; display: flex; flex-direction: column; gap: 2px; font-size: 14px; min-width: 0; }
.st-photo-preview-text span { color: var(--st-muted); font-size: 13px; }

.st-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.st-chip {
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    color: var(--st-ink);
    background: var(--st-card);
    border: 1px solid var(--st-line);
    border-radius: 999px;
    padding: 10px 15px;
    min-height: 40px;
    cursor: pointer;
}
.st-chip:hover { border-color: var(--st-ink); }
.st-chip[aria-pressed="true"] { background: var(--st-ink); border-color: var(--st-ink); color: #fff; }

.st-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font: inherit;
    font-weight: 700;
    font-size: 16px;
    border-radius: 999px;
    border: 1px solid transparent;
    padding: 14px 24px;
    min-height: 52px;
    cursor: pointer;
    transition: transform 0.1s ease, opacity 0.15s ease, background 0.15s ease;
}
.st-btn:active { transform: translateY(1px); }
.st-btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.st-btn-primary { background: var(--st-accent); color: #fff; box-shadow: 0 8px 24px -14px var(--st-accent); width: 100%; font-size: 17px; min-height: 58px; }
.st-btn-dark { background: var(--st-ink); color: #fff; white-space: nowrap; flex-shrink: 0; }
.st-btn-quiet { background: transparent; color: var(--st-ink); border-color: var(--st-line); }
.st-btn-quiet:hover:not(:disabled) { border-color: var(--st-ink); }
.st-link { font: inherit; font-size: 14px; font-weight: 600; color: var(--st-muted); background: none; border: 0; padding: 8px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.st-link:hover { color: var(--st-ink); }

.st-row-between { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.st .st-design-title { font-family: var(--st-display); font-weight: 700; font-size: 26px; line-height: 1.1; letter-spacing: -0.02em; margin-top: 4px; }

/* ---- version cards ---- */
.st-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.st-card {
    display: flex; flex-direction: column; gap: 6px;
    font: inherit;
    text-align: left;
    color: var(--st-ink);
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}
.st-card-img {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    background: var(--st-card);
    border: 2px solid var(--st-line);
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.st-card-img img { width: 88%; height: 88%; object-fit: contain; }
.st-card[aria-pressed="true"] .st-card-img { border-color: var(--st-ink); box-shadow: 0 0 0 3px var(--st-accent-soft); }
.st-card:hover .st-card-img { border-color: #b9ae9b; }
.st-card[aria-pressed="true"]:hover .st-card-img { border-color: var(--st-ink); }
.st-card-caption { font-size: 13px; color: var(--st-muted); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.st-card.st-pending { cursor: pointer; }
.st-card.st-pending .st-card-img { position: relative; overflow: hidden; background: var(--st-paper-2); border-color: transparent; }
.st-card-status { font-size: 12px; color: var(--st-muted); padding: 8px; text-align: center; line-height: 1.3; }
.st-card.st-failed .st-card-img { background: #f6e3df; border-color: #e7c2bb; }
.st-card.st-failed .st-card-status { color: var(--st-danger); }

/* the change box is a group like the others, kept on its own card color */
.st-refine { display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: 18px; background: var(--st-card); border: 1px solid var(--st-line); }
.st-refine-box { display: flex; gap: 8px; }
.st-refine-box .st-input { flex-grow: 1; min-width: 0; font-size: 16px; }
.st-chips-small .st-chip { font-size: 13px; padding: 8px 12px; min-height: 36px; background: #fff; }
.st-chips-small .st-chip[aria-pressed="true"] { background: var(--st-ink); border-color: var(--st-ink); color: #fff; }

/* newest first; after a handful of changes the list scrolls instead of stretching the page */
.st-history { display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow-y: auto; overscroll-behavior: contain; padding: 2px; margin: -2px; }
.st-history .st-card { flex-direction: row; align-items: center; gap: 12px; }
.st-history .st-card-img { width: 64px; flex-shrink: 0; border-radius: 10px; border-width: 2px; }
.st-history .st-card-caption { font-size: 14px; color: var(--st-ink); -webkit-line-clamp: 3; }
.st-history-meta { font-size: 12px; color: var(--st-muted); display: block; margin-top: 2px; }
.st-history .st-card-status { font-size: 10px; padding: 2px; }

.st-check { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 14px; font-weight: 600; cursor: pointer; min-height: 32px; }
.st-check input { width: 18px; height: 18px; accent-color: var(--st-ink); margin: 0; }
.st-check span { flex-basis: 100%; padding-left: 26px; font-size: 13px; font-weight: 400; color: var(--st-muted); }
.st-button-row { display: flex; flex-wrap: wrap; gap: 10px; }
.st-try-styles .st-chip { font-size: 13px; padding: 8px 12px; min-height: 36px; }
.st-finish { display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding-top: 6px; }
/* the group entry: a real second button, not a footnote */
.st .st-btn-group { display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px 16px; min-height: 0; border: 1.5px solid #b84a74; background: #fbf1f5; color: var(--st-ink); margin-top: 4px; }
.st .st-btn-group:hover { background: #f3dbe5; border-color: #b84a74; }
.st-btn-group-icon { font-size: 22px; flex: none; }
.st-btn-group-text { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.st-btn-group-text strong { font-size: 15px; }
.st-btn-group-text span { font-size: 13px; font-weight: 400; color: var(--st-muted); white-space: normal; }
.st-btn-group-arrow { flex: none; font-size: 18px; color: #b84a74; }

@media (max-width: 820px) {
    .st { padding: 20px 4px 48px; }
    .st-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
    .st-stage { position: relative; top: 0; }
    .st-shirt { max-width: 420px; width: 100%; margin: 0 auto; }
    .st-swatch { width: 40px; height: 40px; }
    .st-refine-box { flex-direction: column; }
}
/* recent designs strip on the start step (styles in /site/site.css), kept compact so the form stays in view */
.st .recent-designs { margin-bottom: 0; }
.st .recent-designs .st-label { display: block; margin-bottom: 4px; }
/* continuing a design: its own quiet box, and a divider line before the new-design boxes */
.st-tabs { display: flex; gap: 4px; padding: 4px; background: var(--st-paper-2); border-radius: 999px; align-self: flex-start; }
.st-tab { font: inherit; font-size: 14px; font-weight: 600; color: var(--st-muted); background: none; border: 0; border-radius: 999px; padding: 8px 16px; cursor: pointer; }
.st-tab[aria-selected="true"] { background: #fff; color: var(--st-ink); box-shadow: 0 1px 2px rgba(28, 26, 22, 0.12); }
.st-tab span { font-weight: 500; }
.st .recent-design { width: 92px; }
.st .recent-design img { width: 92px; height: 92px; padding: 6px; border-radius: 12px; }
.st .recent-design span { font-size: 12px; }

/* optional words on the shirt, under the description */
.st .st-words-toggle { align-self: flex-start; margin-top: 2px; }
.st .st-words { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.st .st-optional { font-weight: 500; font-size: 13px; color: var(--st-muted); margin-left: 4px; }

/* one style preview at a time under the style buttons */
.st .st-style-preview { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--st-line, #ddd5c7); border-radius: 16px; padding: 10px; margin-top: 4px; }
.st .st-style-preview img { width: 96px; height: 96px; flex: none; object-fit: contain; border-radius: 10px; background: var(--st-paper, #f6f2ea); padding: 4px; }
.st .st-style-preview-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.st .st-style-preview-text strong { font-size: 15px; }
.st .st-style-preview-text p { margin: 0; font-size: 14px; line-height: 1.4; color: var(--st-muted); }

/* email prompt when the free design limit is reached */
.st-gate { position: fixed; inset: 0; z-index: 100; background: rgba(28, 26, 22, 0.45); display: flex; align-items: center; justify-content: center; padding: 16px; font-family: var(--st-body, 'Hanken Grotesk', Arial, sans-serif); }
.st-gate[hidden] { display: none; }
.st-gate-card { background: #fff; border-radius: 20px; padding: 24px; max-width: 440px; width: 100%; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.5); color: var(--st-ink, #1c1a16); }
.st-gate-card h2 { margin: 0; font-family: var(--st-display, 'Bricolage Grotesque', Arial, sans-serif); font-weight: 800; font-size: 26px; letter-spacing: -0.03em; }
.st-gate-card p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--st-muted, #6a645a); }
.st-gate-card .st-button-row { margin-top: 6px; }
.st-gate-card .st-fine a { color: inherit; }

/* embroidery-ready prompt under the shirt preview, next to the stitch close-up */
.st .st-technique-hint { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; background: #fff7e8; border: 1px solid #ecd5a6; border-radius: 14px; padding: 12px 14px; margin-top: 12px; }
.st .st-technique-hint[hidden] { display: none; }
.st .st-technique-hint p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--st-ink); }

/* "attach an image" (back artwork from a photo, a reference image for a change) */
.st-attach { display: flex; flex-direction: column; gap: 6px; }
.st-attach-button { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 14px; font-weight: 600; color: var(--st-muted); background: none; border: 1px dashed var(--st-line); border-radius: 999px; padding: 7px 14px; cursor: pointer; }
.st-attach-button:hover { color: var(--st-ink); border-color: var(--st-ink); }
.st-attach-preview { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--st-muted); }
.st-attach-preview img { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; background: var(--st-paper-2); border: 1px solid var(--st-line); }
.st-attach-preview .st-link { padding: 4px 0; font-size: 13px; }

/* matching shirts for a group */
.st-who .st-hint { margin-top: 2px; }
.st-set { display: flex; flex-direction: column; gap: 10px; }
.st-custom-side { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.st-set-row { display: flex; flex-wrap: wrap; gap: 10px; }
.st-set-card { position: relative; width: 104px; display: flex; flex-direction: column; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--st-line); border-radius: 12px; padding: 8px; cursor: pointer; font: inherit; color: inherit; }
.st-set-card-current { border-color: var(--st-ink); box-shadow: 0 0 0 1px var(--st-ink); }
.st-set-card img, .st-set-placeholder { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 8px; background: var(--st-paper-2); }
.st-set-placeholder { animation: st-set-pulse 1.4s ease-in-out infinite; }
@keyframes st-set-pulse { 50% { opacity: 0.55; } }
@media (prefers-reduced-motion: reduce) { .st-set-placeholder { animation: none; } }
.st-set-label { font-size: 12px; font-weight: 600; text-align: center; overflow-wrap: anywhere; }
.st-set-remove { position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; border-radius: 999px; border: 1px solid var(--st-line); background: #fff; color: var(--st-muted); font-size: 15px; line-height: 1; cursor: pointer; }
.st-set-add { display: flex; gap: 8px; flex-wrap: wrap; }
.st-set-add .st-input { flex: 1 1 180px; }
.st-set-card-failed { border-color: #d6b8ae; }
.st-set-redraw { position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 999px; border: 1px solid var(--st-line); background: #fff; color: var(--st-muted); font-size: 14px; line-height: 22px; text-align: center; cursor: pointer; }
.st-set-redraw:hover { color: var(--st-ink); border-color: var(--st-ink); }
.st-set-card-failed .st-set-label { color: #a6361f; }
.st-set-add-label { margin-top: 4px; }
.st-match { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--st-line); border-radius: 16px; padding: 12px 14px; }
.st-match img { width: 64px; height: 64px; object-fit: contain; border-radius: 10px; background: var(--st-paper-2); }
.st-match strong { display: block; font-size: 15px; }

/* the roster: who gets which shirt */
.st-roster { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.st-roster-rows { display: flex; flex-direction: column; gap: 8px; }
.st-roster-row { display: grid; grid-template-columns: minmax(0, 1fr) 64px auto 36px 28px; gap: 8px; align-items: center; }
.st-roster-photo { width: 36px; height: 36px; border-radius: 10px; border: 1px dashed var(--st-line); background: #fff; color: var(--st-muted); display: flex; align-items: center; justify-content: center; cursor: pointer; overflow: hidden; padding: 0; }
.st-roster-photo:hover { color: var(--st-ink); border-color: var(--st-ink); }
.st-roster-photo-set { border-style: solid; }
.st-roster-photo img { width: 100%; height: 100%; object-fit: cover; }
.st-roster-count { text-align: center; }
.st-roster-twist-toggle { font-size: 13px; padding: 4px 0; white-space: nowrap; }
.st-roster-twist { margin-left: 0; }
.st-roster-twist-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; padding-left: 12px; border-left: 2px solid var(--st-line); }
.st-roster-remove { width: 28px; height: 28px; border-radius: 999px; border: 1px solid var(--st-line); background: #fff; color: var(--st-muted); font-size: 16px; line-height: 1; cursor: pointer; }
.st-roster-actions { display: flex; gap: 16px; }
@media (max-width: 520px) { .st-roster-row { grid-template-columns: minmax(0, 1fr) 56px 36px 28px; } .st-roster-twist-toggle { grid-column: 1 / 3; justify-self: start; } }
.st-hidden-in-set { display: none !important; }
/* editing the roster: the shirt shows as on the start page, without the design controls */
.st-roster-editing .st-sides, .st-roster-editing .st-side-actions, .st-roster-editing .st-technique-hint, .st-roster-editing #st_placement, .st-roster-editing #st_outline_row, .st-roster-editing #st_closeup { display: none !important; }
.st-notice { position: sticky; top: 8px; z-index: 30; display: flex; align-items: baseline; gap: 10px; margin: 0 auto 14px; max-width: 900px; background: #fff3ef; border: 1px solid #e3b6a8; color: #7a2a14; border-radius: 14px; padding: 12px 16px; font-size: 15px; box-shadow: 0 10px 30px -18px rgba(28, 26, 22, 0.4); }
.st-notice strong { flex: none; }
.st-notice span { flex: 1 1 auto; }
.st-notice-close { flex: none; font: inherit; font-size: 18px; line-height: 1; background: none; border: 0; color: inherit; cursor: pointer; padding: 0 2px; }
.st-use-in-set { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--st-ink); background: #fff; border: 1px solid var(--st-line); border-radius: 12px; padding: 10px 12px; }
#st_use_in_set_text { flex-basis: 100%; color: var(--st-muted); }
.st-select-small { min-height: 36px; padding: 6px 10px; width: auto; }

/* ---- the rebuilt flow: steps line, composer, upload tiles, style strip, designs grid, change scopes, set rows ---- */
.st-stepper { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--st-muted); }
.st-stepper span { display: inline-flex; align-items: center; gap: 6px; }
.st-stepper span + span::before { content: "›"; margin-right: 6px; color: var(--st-line); }
.st-stepper i { width: 20px; height: 20px; border-radius: 999px; border: 1px solid var(--st-line); display: inline-grid; place-items: center; font: 700 11px var(--body, inherit); font-style: normal; }
.st-stepper .st-step-on { color: var(--st-ink); font-weight: 700; }
.st-stepper .st-step-on i { background: var(--st-ink); color: var(--st-paper); border-color: var(--st-ink); }
.st-stepper .st-step-done i { background: var(--st-paper-2); }
.st-group-accent { border-color: var(--st-accent, #3d6db5); box-shadow: 0 0 0 2px var(--st-accent-soft); }
.st-group-set { border-color: #b84a74; box-shadow: 0 0 0 2px #f3dbe5; }
.st-group-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.st-group-folded { padding-block: 12px; }
.st-optional { font-weight: 400; color: var(--st-muted); font-size: 13px; }
.st-center { text-align: center; }
.st-banner { display: flex; gap: 12px; align-items: flex-start; background: #f3dbe5; border: 1px solid #b84a74; border-radius: 16px; padding: 12px 14px; font-size: 14px; }
.st-banner-icon { font-size: 20px; line-height: 1.2; }
.st-banner strong { display: block; }
.st-banner span:not(.st-banner-icon) { color: var(--st-muted); }
/* the composer: text with a counter that only appears late, and an optional button row */
.st-composer { position: relative; display: flex; flex-direction: column; gap: 8px; }
.st-composer .st-count { position: absolute; right: 12px; bottom: 10px; font-size: 11px; color: var(--st-muted); background: rgba(255,255,255,0.85); padding: 1px 6px; border-radius: 6px; pointer-events: none; }
.st-composer:has(.st-composer-foot) .st-count { bottom: 58px; }
.st-composer-foot { display: flex; justify-content: flex-end; }
.st-textarea-short { min-height: 72px; }
.st-input-small { min-height: 38px; padding: 7px 10px; font-size: 15px; }
/* upload tiles: every upload looks the same */
.st-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }
.st-tile { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; font: inherit; color: var(--st-ink); background: var(--st-card); border: 1.5px dashed #c4b9a6; border-radius: 14px; padding: 12px 14px; cursor: pointer; min-height: 64px; min-width: 0; }
.st-tile:hover, .st-tile.st-dragover { border-color: var(--st-ink); background: #fff; }
.st-tile-icon { color: var(--st-accent); width: 40px; height: 40px; flex-shrink: 0; border-radius: 999px; background: var(--st-accent-soft); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.st-tile-icon-text { font-size: 18px; }
.st-tile-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.st-tile-text strong { font-size: 15px; }
.st-tile-text > span { font-size: 13px; color: var(--st-muted); }
.st-tile-filled, .st-tile-open, .st-tiles-wide { grid-column: 1 / -1; }
.st-tile-filled, .st-tile-open { border-style: solid; cursor: default; }
.st-tile-filled:hover, .st-tile-open:hover { border-color: #c4b9a6; background: var(--st-card); }
.st-tile-open { border-color: var(--st-ink); align-items: flex-start; grid-column: 1 / -1; }
.st-tile-open .st-tile-text > span:last-child { margin-top: 2px; }
.st-tile-open .st-input { margin: 4px 0 2px; }
.st-tile img { width: 48px; height: 48px; object-fit: cover; border-radius: 10px; background: var(--st-paper-2); flex-shrink: 0; }
.st-tile .st-link { flex-shrink: 0; font-size: 13px; }
.st-tile-photo { align-items: flex-start; }
.st-tile-photo img { width: 64px; height: 64px; }
.st-check-inline { margin-top: 6px; font-size: 14px; }
.st-check-inline > span { font-size: 12px; }
.st-tile-compact { min-height: 52px; padding: 8px 12px; }
.st-tile-compact .st-tile-icon { width: 32px; height: 32px; }
.st-tile-compact .st-tile-text strong { font-size: 14px; }
.st-tile-compact .st-tile-text > span { font-size: 12px; }
.st-photo-first .st-tiles { order: -1; }
.st-examples-label { margin-top: 2px; }
.st-chip-example { border-style: dashed; color: var(--st-muted); font-weight: 500; }
/* the style strip: pictures of the same subject in each style */
/* one scrolling row with every style in it; a fade on the right says there's more */
.st-styles { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: thin; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); }
.st-style { flex: none; width: 88px; display: flex; flex-direction: column; align-items: center; gap: 4px; font: inherit; font-size: 12px; line-height: 1.2; text-align: center; color: var(--st-muted); background: none; border: 0; padding: 0; cursor: pointer; }
.st-style img, .st-style-mosaic { width: 88px; height: 88px; object-fit: cover; border-radius: 12px; border: 2px solid var(--st-line); box-sizing: border-box; background: var(--st-paper-2); display: block; }
.st-style { position: relative; }
.st-style[aria-pressed="true"] { color: var(--st-ink); font-weight: 700; }
.st-style[aria-pressed="true"] img, .st-style[aria-pressed="true"] .st-style-mosaic { border: 3px solid var(--st-accent); box-shadow: 0 0 0 3px var(--st-accent-soft); }
/* a check badge on a picked style, so the pick reads at a glance */
.st-style[aria-pressed="true"]::after { content: "✓"; position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 999px; background: var(--st-accent); color: #fff; font-size: 13px; font-weight: 700; line-height: 22px; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,0.25); }
.st-style:not([aria-pressed="true"]) img { opacity: 0.92; }
.st-style:hover img, .st-style:hover .st-style-mosaic { border-color: #b9ae9b; }
.st-style-mosaic { position: relative; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 1px; overflow: hidden; }
.st-style .st-style-mosaic img, .st-style[aria-pressed="true"] .st-style-mosaic img { width: 100%; height: 100%; border: 0; border-radius: 0; box-shadow: none; opacity: 1; filter: saturate(0.85); }
.st-style-mosaic b { position: absolute; inset: 0; margin: auto; width: 30px; height: 30px; border-radius: 999px; background: var(--st-ink); color: var(--st-paper); display: grid; place-items: center; font-size: 15px; box-shadow: 0 2px 6px rgba(0,0,0,0.25); }
.st-own { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--st-line); border-radius: 12px; padding: 12px; background: #fff; }
/* the designs grid: badges for what a change came from, and which side a design is on */
.st-card-badge { position: absolute; top: 6px; left: 6px; font-size: 10px; font-weight: 600; font-style: normal; background: var(--st-ink); color: var(--st-paper); border-radius: 999px; padding: 2px 7px; max-width: calc(100% - 12px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-card-side { position: absolute; bottom: 6px; right: 6px; font-size: 10px; font-weight: 600; font-style: normal; background: var(--st-accent); color: #fff; border-radius: 999px; padding: 2px 7px; }
/* all designs, scrolling once there are more than two rows; the fade says there's more below */
.st-options-scroll { max-height: 470px; overflow-y: auto; overscroll-behavior: contain; padding: 3px 6px 3px 3px; margin: -3px; scrollbar-width: thin; }
.st-card-more .st-card-img { border-style: dashed; background: var(--st-paper-2); }
.st-card-more .st-card-img b { font-size: 28px; color: var(--st-muted); }
.st-failed-panel { display: flex; flex-direction: column; gap: 8px; background: #fff3ef; border: 1px solid #e3b6a8; border-radius: 14px; padding: 12px 14px; margin-top: 10px; }
.st-failed-panel strong { color: #7a2a14; }
/* make a change: the scope, and even spacing inside each scope */
.st-scope { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
#st_scope_change, #st_scope_fresh { display: flex; flex-direction: column; gap: 12px; }
#st_scope_change[hidden], #st_scope_fresh[hidden] { display: none; }
#st_scope_fresh .st-group-head { margin-top: 4px; }
/* shirt types as cards, with prices */
.st-types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.st-type { display: flex; flex-direction: column; align-items: center; gap: 2px; font: inherit; font-size: 13px; color: var(--st-ink); background: #fff; border: 1px solid var(--st-line); border-radius: 12px; padding: 10px 6px; cursor: pointer; }
.st-type svg { width: 36px; height: 36px; fill: var(--st-paper-2); stroke: var(--st-ink); stroke-width: 1.3; stroke-linejoin: round; }
.st-type strong { font-size: 14px; }
.st-type span { color: var(--st-muted); font-size: 12px; }
.st-type[aria-pressed="true"] { border-color: var(--st-ink); box-shadow: 0 0 0 1px var(--st-ink); }
.st-oneline { display: flex; flex-direction: column; gap: 8px; padding: 12px 16px; background: var(--st-card); border: 1px solid var(--st-line); border-radius: 14px; }
.st-oneline .st-fine { margin: 0; }
/* the start step: only the shirt on the left */
.st-on-start .st-sides, .st-on-start .st-side-actions, .st-on-start .st-placement-group, .st-on-start .st-technique-hint { display: none !important; }
/* the group panel: switches */
.st-personalize-label { margin-top: 6px; }
.st-hint-list { margin: -4px 0 0; padding-left: 18px; font-size: 14px; color: var(--st-muted); display: flex; flex-direction: column; gap: 4px; }
.st-hint-list em { font-style: normal; font-weight: 600; color: var(--st-ink); }
.st-set-option-help { margin: -2px 0 4px; }
.st-switches { display: flex; flex-direction: column; }
.st-set-side-choice { border-top: 1px solid var(--st-line); padding-bottom: 10px; }
.st-set-side-choice:first-child { border-top: 0; }
.st-set-side-choice .st-switch { border-top: 0; padding-bottom: 6px; }
.st-set-content { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin: 0 0 2px 50px; }
.st-set-content[hidden] { display: none; }
.st-set-content label { min-width: 0; cursor: pointer; }
.st-set-content input { position: absolute; opacity: 0; pointer-events: none; }
.st-set-content span { display: flex; min-height: 48px; flex-direction: column; align-items: center; justify-content: center; padding: 7px 5px; border: 1px solid var(--st-line); border-radius: 10px; background: var(--st-card, #fff); color: var(--st-muted); text-align: center; line-height: 1.1; transition: border-color .15s, background .15s, box-shadow .15s, color .15s; }
.st-set-content b { font-size: .82rem; color: var(--st-ink); }
.st-set-content small { margin-top: 3px; font-size: .7rem; }
.st-set-content input:checked + span { border-color: var(--st-accent); background: var(--st-accent-soft); color: var(--st-accent); box-shadow: 0 0 0 1px var(--st-accent); }
.st-set-content input:checked + span b { color: var(--st-accent); }
.st-set-content input:focus-visible + span { outline: 3px solid var(--st-accent-soft); outline-offset: 2px; }
.st-switch { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--st-line); cursor: pointer; }
.st-switch:first-child { border-top: 0; padding-top: 0; }
.st-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.st-switch-track { flex: none; width: 38px; height: 22px; border-radius: 999px; background: var(--st-line); position: relative; margin-top: 2px; transition: background 0.15s ease; }
.st-switch-track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 999px; background: #fff; transition: left 0.15s ease; box-shadow: 0 1px 2px rgba(0,0,0,0.2); }
.st-switch input:checked + .st-switch-track { background: #b84a74; }
.st-switch input:checked + .st-switch-track::after { left: 18px; }
.st-switch input:disabled + .st-switch-track { opacity: 0.4; }
.st-switch input:focus-visible + .st-switch-track { outline: 2px solid var(--st-ink); outline-offset: 2px; }
.st-switch-text { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.st-switch-text > span { color: var(--st-muted); font-size: 13px; }
.st-name-side { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 4px 0 8px 50px; }
/* set rows: each person, both sides */
.st-set-flags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.st-flag { font-size: 12px; border: 1px solid var(--st-line); border-radius: 999px; padding: 3px 10px; color: var(--st-muted); background: #fff; }
.st-flag-on { color: var(--st-ink); border-color: var(--st-ink); }
.st-set-rows { display: flex; flex-direction: column; gap: 6px; }
.st-set-shirt { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 6px 10px; background: #fff; border: 1px solid var(--st-line); border-radius: 12px; font-size: 14px; }
.st-set-shirt-current { border-color: var(--st-ink); box-shadow: 0 0 0 1px var(--st-ink); }
.st-set-sides { display: flex; gap: 6px; }
.st-set-side { position: relative; width: 52px; display: flex; flex-direction: column; align-items: center; gap: 2px; font: inherit; font-size: 9px; color: var(--st-muted); background: none; border: 0; padding: 0; cursor: pointer; }
.st-set-side img, .st-set-ph { width: 48px; height: 48px; object-fit: contain; background: var(--st-paper-2); border: 2px solid var(--st-line); border-radius: 8px; box-sizing: border-box; display: block; }
.st-set-side-on img { border-color: var(--st-ink); }
.st-set-side u { position: absolute; top: 30px; left: 2px; right: 2px; font: 600 8px var(--body, inherit); text-decoration: none; background: rgba(255,255,255,0.88); color: var(--st-ink); text-align: center; padding: 1px 0; border-radius: 3px; }
.st-set-ph { animation: st-set-pulse 1.4s ease-in-out infinite; animation-delay: var(--shimmer-delay, 0ms); }
.st-set-ph-empty { animation: none; border-style: dashed; }
.st-set-ph-failed { animation: none; background: #f6e3df; border-color: #e7c2bb; color: var(--st-danger); display: grid; place-items: center; font-weight: 700; font-style: normal; }
.st-set-shirt b { font-weight: 600; overflow-wrap: anywhere; }
.st-roster-row { grid-template-columns: minmax(0, 1fr) auto 36px 28px; }
@media (max-width: 520px) { .st-roster-row { grid-template-columns: minmax(0, 1fr) 36px 28px; } .st-roster-twist-toggle { grid-column: 1 / 3; justify-self: start; } .st-types { grid-template-columns: repeat(3, minmax(0, 1fr)); } .st-set-shirt { grid-template-columns: auto minmax(0, 1fr); } .st-set-shirt .st-link { grid-column: 2; justify-self: start; } }

/* defining the set (who's getting one): nothing else to edit on the page meanwhile */
.st-defining-set #st_designs_box, .st-defining-set #st_change_box, .st-defining-set #st_shirt_group, .st-defining-set #st_color_line,
.st-defining-set #st_shirt_line, .st-defining-set .st-finish, .st-defining-set #st_side_actions, .st-defining-set .st-placement-group, .st-defining-set #st_new { display: none !important; }
#st_group_panel { scroll-margin-top: 150px; }

.st-set-shirt { cursor: pointer; }
.st-set-shirt:hover:not(.st-set-shirt-current) { background: rgba(0,0,0,0.03); }

.st-set-leave { display: block; margin-top: 12px; font-size: 13px; color: var(--muted, #6b6459); text-align: left; }

/* arrived from "Show me an example" on a landing page: whose pet this is, and the way to their own */
.st-sample-note { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0 0 16px; padding: 12px 16px; border: 1px solid var(--line, #e2ddd2); border-radius: 12px; background: #fff; font-size: 15px; }
.st-sample-note button { margin-left: auto; }
@media (max-width: 560px) { .st-sample-note button { margin-left: 0; width: 100%; } }
