/* Blossom (Settings → Appearance): the Sticker club app as a pink stationery scrapbook.
   Same layout, binder and interactions; this file swaps the Sticker club tokens, writes the
   titles by hand (Blossom Hand), turns sheets into paper held on with washi tape,
   stitches the buttons and binds the open binder with a slim coil at the usual fold.
   Light is a blossom meadow; Dark mode (.blossom-dark) is the same meadow at night.
   Performance (see AGENTS.md "Active theme scope"): the meadow art is the page background,
   never its own layer; no animation, blur or filter on large surfaces. */

/* ---------- Tokens: Light ---------- */
body.site.theme-blossom {
  --hand: 'Blossom Hand', 'Mali', cursive;
  --sans: Nunito, ui-sans-serif, system-ui, sans-serif;
  --ink: #6b2c50;
  --chrome: #f4e8eb;
  --chrome-2: #f6edef;
  --chrome-3: #ecdde2;
  --chrome-4: #e0c7d0;
  --cream: #f9f2f0;
  --cream-2: #f1e5e8;
  --cream-3: #eadbe0;
  --cream-hover: #f5ebed;
  --paper: #fbf6f5;
  --label-white: #f9f2f0;
  --cream-ink: #4a1d38;
  --cream-muted: #85546e;
  --cream-line: #f0d2dd;
  --tomato: #e9a2b8;
  --tomato-2: #efb3c5;
  --sun: #ecc4d2;
  --sun-soft: #f3e1e7;
  --mint: #b4dccb;
  --sky: #c4d3ee;
  --lilac: #d7c9ec;
  --peel: #efc6b0;
  --blush: #f0cdd6;
  --sand: #ece0e3;
  --brick: #c22f62;
  --quiet-line: #c98aa6;
  --stage: transparent;
  --stage-dot: transparent;
  /* Blossom's own: the soft drop under stitched things, stitching, tape, and the glow that
     keeps lettering readable where it stands straight on the meadow. */
  --shade: #dcb5c3;
  --stitch: rgba(107, 44, 80, .38);
  --tape-a: rgba(233, 150, 176, .78);
  --halo: rgba(250, 240, 242, .92);
  --tape-b: rgba(255, 255, 255, .55);
  --focus: #d94f86;
  --world: url('/assets/blossom-day.webp');
  --world-fill: #efd9de;

  --bg: var(--chrome);
  --panel: var(--chrome-2);
  --panel2: var(--chrome-3);
  --box: var(--chrome-2);
  --box-2: var(--chrome-3);
  --vinyl: var(--chrome);
  --vinyl-2: var(--chrome-3);
  --line: #e9b9cb;
  --text: #4a1d38;
  --muted: #85546e;
  --accent: #c22f62;
  --accent2: #a8264f;
  --danger: var(--brick);
  --gold: #f4b740;
  --slot: #f7ebee;
  --card-title-color: var(--cream-ink);
  --public-text: var(--text);
  --public-muted: var(--muted);
  --pop: 0 3px 0 var(--shade);
  --pop-sm: 0 2px 0 var(--shade);
  --pop-lg: 0 4px 0 var(--shade);
  --float: 0 3px 0 var(--shade), 0 18px 40px rgba(107, 44, 80, .18);
  --shadow-near: 0 2px 0 var(--shade);
  --shadow-far: 0 12px 28px rgba(107, 44, 80, .2);
  --pill: 14px;
  --sheet-radius: 6px;
  color-scheme: light;
  scrollbar-color: var(--chrome-4) transparent;
}

/* ---------- Tokens: Dark (the plum night) ---------- */
body.site.theme-blossom.blossom-dark {
  --ink: #1c0b19;
  --chrome: #2a1630;
  --chrome-2: #321a39;
  --chrome-3: #3d2245;
  --chrome-4: #4d2d56;
  --cream: #3a2141;
  --cream-2: #44284b;
  --cream-3: #4e2f56;
  --cream-hover: #4a2b52;
  --paper: #331c3a;
  --label-white: #fff1f6;
  --cream-ink: #fde9f1;
  --cream-muted: #d6b3c6;
  --cream-line: #5e3d66;
  --sun-soft: #5a3150;
  --brick: #ff8fb1;
  --quiet-line: #a77a9c;
  --shade: #12060f;
  --stitch: rgba(255, 214, 230, .42);
  --halo: rgba(28, 11, 25, .9);
  --tape-a: rgba(255, 143, 177, .62);
  --tape-b: rgba(255, 255, 255, .22);
  --focus: #ff9cc0;
  --world: url('/assets/blossom-night.webp');
  --world-fill: #2a1630;
  --line: #5e3d66;
  --text: #fde9f1;
  --muted: #d6b3c6;
  --accent: #ff9cc0;
  --accent2: #ffb6d0;
  --slot: #2a1730;
  --float: 0 3px 0 var(--shade), 0 18px 40px rgba(0, 0, 0, .45);
  --shadow-far: 0 12px 28px rgba(0, 0, 0, .45);
  color-scheme: dark;
}
/* Sheets keep the theme's paper in both modes; Dark paper is plum, so fields follow. */
body.site.theme-blossom.blossom-dark :is(.modal, .card-context-menu, .pop-menu, .calendar-popover, .custom-select-menu, .binder-overview, .profile-binder-tooltip, .toast, #authGate) { color-scheme: dark; }

/* ---------- The meadow: the page background itself ---------- */
body.site.theme-blossom { background: var(--world) center bottom / cover no-repeat, var(--world-fill); }
/* Petals and a few sparkles drift down across the meadow (style.css "Drifting backdrop"). */
body.site.theme-blossom {
  --drift-far: url("/assets/drift/blossom-far.webp"); --drift-near: url("/assets/drift/blossom-near.webp");
  --drift-w: 640px; --drift-h: 800px; --drift-dx: -640px; --drift-dy: 800px;
  --drift-far-time: 80s; --drift-near-time: 45s;
}
body.site.theme-blossom.blossom-dark { --drift-far-opacity: .55; --drift-near-opacity: .75; }
body.site.theme-blossom :is(.app-shell, .binder-stage) { background: transparent; }
body.site.theme-blossom .preview-backdrop { --text: #fde9f1; --muted: #d6b3c6; }
/* Buttons in the dark preview room stay paper, so their icons stay ink. */
body.site.theme-blossom .preview-backdrop .ghost { color: var(--cream-ink); }

/* ---------- Type: handwriting everywhere, Nunito where people read or type ----------
   --sans is Blossom Hand, so every label, button, menu, chip and name that uses the
   interface font is handwritten. Fields, paragraphs, help text and small meta lines stay
   Nunito (--read), where a script face would slow reading down. */
body.site.theme-blossom { --sans: var(--hand); --read: Nunito, ui-sans-serif, system-ui, sans-serif; letter-spacing: 0; }
body.site.theme-blossom :is(input, textarea, select, p, small, .settings-help, .modal-copy, .profile-description, .binder-overview-description, .library-card-meta, .library-set-count-sm, .library-set-release-date, .preview-card-meta, .tooltip-row, .pop-menu .legal-links, .profile-comment-body, .custom-select-option small) { font-family: var(--read); }
/* Fields and pickers show what people typed or chose; the base field rule is heavier than the
   list above, so it is matched here. */
body.site.theme-blossom :is(.field input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), .field textarea, .field select, .currency-select, .custom-select-trigger, .custom-select-option, .search, .library-set-search-input, .jump-nav input) { font-family: var(--read); }
/* Handwritten labels and buttons are bold; Mali runs wide, so they stay near the base sizes. */
body.site.theme-blossom :is(.primary, .ghost, .round, .danger-soft, .compact):where(:not(.profile-favorite-card, .public-binder-card, .profile-image-drop, .bug-report-drop, .following-user-link, .admin-profile-link)) { font-size: 16px; font-weight: 700; letter-spacing: .01em; }
body.site.theme-blossom .primary { font-size: 17px; }
body.site.theme-blossom .compact { font-size: 14px; }
body.site.theme-blossom :is(.pop-menu-item, .library-quick-filter, .library-set-sort-btn, .settings-sound-row > span, .settings-theme-choice) { font-size: 16px; font-weight: 700; }
body.site.theme-blossom :is(.header-total, .library-card-name, .field label, .header-meta, .library-head .pill, .library-set-name, .tooltip-title-library, .pop-menu-tag, .binder-overview-layout, .binder-overview-tag) { font-weight: 700; }
body.site.theme-blossom :is(.header-total, .library-set-name) { font-size: 16px; }
body.site.theme-blossom .library-card-name { font-size: 14px; }
body.site.theme-blossom :is(.field label, .header-meta, .library-head .pill, .binder-overview-layout) { font-size: 15px; }
body.site.theme-blossom #pageLabel { font-size: 18px; }
/* Binder settings set their own field font (binder-settings.css), at id weight. Handwriting
   leans past its box, so the size names get room instead of being cut by the ellipsis. */
body.site.theme-blossom #modalRoot .binder-settings-modal :is(.field :is(input:not([type="checkbox"]), textarea, select), .custom-select-trigger, .custom-select-menu, .custom-select-option, .binder-switch-copy small, .binder-cover-drop small, .binder-price-tooltip) { font-family: var(--read); font-size: 14px; }
body.site.theme-blossom #modalRoot .binder-settings-modal .field label { font-size: 15px; }
body.site.theme-blossom #modalRoot .binder-settings-modal .binder-switch-copy > span { font-size: 15px; font-weight: 700; }
body.site.theme-blossom #modalRoot .binder-settings-modal .binder-size-copy strong { padding: 0 4px; font: 700 16px/1.2 var(--hand); }
body.site.theme-blossom #modalRoot .binder-settings-modal .binder-size-copy small { font: 600 12px/1 var(--read); }
body.site.theme-blossom :is(h1, h2, h3, .topbar #binderTitle, .library-head h2) { font-family: var(--hand); font-weight: 700; letter-spacing: 0; }
body.site.theme-blossom .topbar #binderTitle { font-size: 34px; line-height: 1; }
body.site.theme-blossom .modal h3 { font-size: 34px; }
body.site.theme-blossom .settings-section h4 { font: 700 20px/1.1 var(--hand); }
body.site.theme-blossom .library-head h2 { font-size: 32px; }
body.site.theme-blossom :is(.library-era-head .library-era-text, .library-era-name) { font-family: var(--hand); font-size: 24px; font-weight: 700; letter-spacing: 0; }
body.site.theme-blossom .binder-page.cover-page { --sans: var(--hand); }
body.site.theme-blossom .cover-placeholder small { font: 700 15px/1.2 var(--hand); }
/* The Sticker club white outlined lettering becomes plain handwriting or ink. That rule names
   #loadingSimpleTitle inside :is(), which gives every label in it id weight; these lists carry
   the same id so they win without !important. */
html body.site.theme-blossom :is(#loadingSimpleTitle, .binder-overview h2, .binder-overview-stats :is(dt, dd), .profile-stats :is(strong, span), .profile-binder-cover > strong) {
  color: var(--cream-ink); -webkit-text-fill-color: var(--cream-ink); -webkit-text-stroke: 0; text-shadow: none;
}
html body.site.theme-blossom :is(#loadingSimpleTitle, .binder-overview h2) { font-family: var(--hand); font-size: clamp(40px, 4vw, 60px); line-height: 1; }
html body.site.theme-blossom :is(#loadingSimpleTitle, .binder-overview-stats dt, .profile-stats span) { font-family: var(--hand); font-size: 15px; font-weight: 700; }
/* Stat stickers stay pastel in Dark too, so their lettering stays dark. */
html body.site.theme-blossom.blossom-dark :is(#loadingSimpleTitle, .binder-overview-stats :is(dt, dd), .profile-stats :is(strong, span)) { color: #4a1d38; -webkit-text-fill-color: #4a1d38; }
html body.site.theme-blossom.blossom-dark #loadingSimpleTitle { color: var(--cream-ink); -webkit-text-fill-color: var(--cream-ink); }
/* Shelf spines wear a sticky note with the name written on it: pastel paper stuck on a
   little crooked, its loose end curling (a folded corner and a soft lift shadow). Notes
   take turns in four colours down the shelf. */
html body.site.theme-blossom :is(#loadingSimpleTitle, .binder-item) > span:last-child {
  --note: #fff1a8; --note-fold: #e9d77c;
  position: relative; z-index: 1; max-height: calc(100% - 2px); margin: 0 -3px; padding: 7px 4px 9px;
  font: 700 14px/1 var(--hand); letter-spacing: 0;
  color: #4a1d38; -webkit-text-fill-color: #4a1d38; -webkit-text-stroke: 0; text-shadow: none;
  background:
    linear-gradient(225deg, transparent 6px, var(--note-fold) 6px 9px, transparent 9px) right bottom / 12px 12px no-repeat,
    linear-gradient(90deg, rgba(0, 0, 0, .05), transparent 30%),
    var(--note);
  border-radius: 1px 2px 8px 2px;
  box-shadow: 1px 2px 0 rgba(74, 29, 56, .18), 2px 4px 6px rgba(74, 29, 56, .25);
  transform: rotate(-3deg);
}
html body.site.theme-blossom .binder-item:nth-child(4n+2) > span:last-child { --note: #ffd3e2; --note-fold: #eba7bf; transform: rotate(2deg); }
html body.site.theme-blossom .binder-item:nth-child(4n+3) > span:last-child { --note: #cdeedd; --note-fold: #9fd2b8; transform: rotate(-1.5deg); }
html body.site.theme-blossom .binder-item:nth-child(4n+4) > span:last-child { --note: #e3d6fb; --note-fold: #bda9e6; transform: rotate(2.5deg); }

/* ---------- Chrome: shelf and header on the meadow, the library a paper panel ---------- */
body.site.theme-blossom .binder-item { padding: 8px 0; }
body.site.theme-blossom .sidebar { background: color-mix(in srgb, var(--chrome) 82%, transparent); border-right: 0; }
/* On phones the shelf is a drawer over the binder, so it is solid. */
@media (max-width: 700px) { body.site.theme-blossom .sidebar { background: var(--chrome); } }
body.site.theme-blossom .topbar { background: transparent; border-bottom: 0 !important; }
body.site.theme-blossom .brand-mark { border-width: 2px; border-color: var(--paper); border-radius: 12px; box-shadow: 0 2px 6px rgba(107, 44, 80, .3); background: var(--tomato); }
body.site.theme-blossom .library-panel { background: var(--chrome-2); border-left: 2px solid var(--line) !important; box-shadow: -6px 0 18px rgba(107, 44, 80, .12); }
body.site.theme-blossom .account-btn { border-width: 2px; border-color: var(--paper); box-shadow: 0 2px 6px rgba(107, 44, 80, .3); }
body.site.theme-blossom .account-btn .sidebar-avatar { border-color: var(--paper); }
body.site.theme-blossom .header-total { border: 2px dashed var(--ink); background: var(--mint); }
body.site.theme-blossom .library-card { border-width: 2px; border-color: var(--line); background: var(--paper); box-shadow: var(--pop-sm); }
body.site.theme-blossom .library-card:hover { background: var(--cream-hover); box-shadow: 0 4px 0 var(--shade); }
body.site.theme-blossom .library-set-folder-head:hover,
body.site.theme-blossom .library-set-folder.open > .library-set-folder-head { background: var(--chrome-3) !important; }

/* ---------- Buttons: rounded tabs with a stitched seam ---------- */
body.site.theme-blossom :is(.primary, .ghost, .round, .danger-soft, .compact):where(:not(.profile-favorite-card, .public-binder-card, .profile-image-drop, .bug-report-drop, .following-user-link, .admin-profile-link)) {
  border: 2px solid var(--line); background: var(--cream);
  outline: 1.5px dashed var(--stitch); outline-offset: -6px;
  box-shadow: var(--pop); font-weight: 800;
}
body.site.theme-blossom :is(.primary, .ghost, .round, .danger-soft, .compact):where(:not(.profile-favorite-card, .public-binder-card, .profile-image-drop, .bug-report-drop, .following-user-link, .admin-profile-link)):hover:not(:disabled) { box-shadow: 0 4px 0 var(--shade); }
body.site.theme-blossom :is(.primary, .ghost, .round, .danger-soft, .compact):where(:not(.profile-favorite-card, .public-binder-card, .profile-image-drop, .bug-report-drop, .following-user-link, .admin-profile-link)):active:not(:disabled) { transform: translateY(3px); box-shadow: 0 0 0 var(--shade); }
body.site.theme-blossom :is(.primary, .ghost, .round, .danger-soft, .compact):where(:not(.profile-favorite-card, .public-binder-card, .profile-image-drop, .bug-report-drop, .following-user-link, .admin-profile-link)):focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
body.site.theme-blossom .primary { border-color: #d48ca3; background: var(--tomato); color: #4a1236; --stitch: rgba(255, 255, 255, .8); --shade: #c98da2; }
body.site.theme-blossom .primary:hover:not(:disabled) { background: var(--tomato-2); }
body.site.theme-blossom .danger-soft { border-color: #d898ab; background: var(--blush); color: #7a1840; }
body.site.theme-blossom .compact { outline-offset: -5px; }
body.site.theme-blossom :is(#libraryToggleBtn[aria-expanded="true"], #editModeBtn.is-active) { background: var(--sun); color: #4a1d38; }
body.site.theme-blossom :where(button, a, .binder-item, .slot, .library-card, input, select, textarea, [tabindex]):focus-visible { outline-color: var(--focus); }
body.site.theme-blossom :is(.modal-close, .preview-close) { border-width: 2px; border-style: dashed; border-color: var(--quiet-line); box-shadow: var(--pop-sm); }
body.site.theme-blossom :is(.search, .library-set-search-input, .field input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), .field textarea, .field select, .custom-select-trigger) { border-width: 2px !important; border-color: var(--line) !important; }
body.site.theme-blossom.blossom-dark :is(.search, .library-set-search-input) {
  --search-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fde9f1' stroke-width='2.6' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M16 16l4.5 4.5'/%3E%3C/svg%3E");
}

/* ---------- Sheets: paper held on with washi tape ---------- */
body.site.theme-blossom :is(.modal, .pop-menu, .binder-overview) { border: 2px solid var(--line); background: var(--cream); box-shadow: var(--float); }
body.site.theme-blossom :is(.modal, .binder-overview)::before {
  content: ''; position: absolute; top: 2px; left: 50%; z-index: 5; width: 96px; height: 24px; margin-left: -48px;
  transform: rotate(-3deg); pointer-events: none;
  background: repeating-linear-gradient(45deg, var(--tape-a) 0 8px, var(--tape-b) 8px 14px);
}
body.site.theme-blossom .binder-overview { position: relative; }
body.site.theme-blossom .binder-overview-stats > div { border-width: 2px; border-color: var(--line); box-shadow: var(--pop-sm); }
body.site.theme-blossom .binder-overview-stats > div:nth-child(1) { background: var(--sun); }
body.site.theme-blossom .binder-overview-stats > div:nth-child(2) { background: var(--lilac); }
body.site.theme-blossom .binder-overview-value strong { border-style: dashed; }
body.site.theme-blossom .pop-menu-item:is(:hover, :focus-visible) { box-shadow: inset 0 0 0 2px var(--line); }
body.site.theme-blossom .pop-menu-ico { border-width: 0; background: var(--sun-soft); color: var(--cream-ink); }
body.site.theme-blossom .pop-menu-ico.tone-danger { background: var(--blush); color: #7a1840; }
body.site.theme-blossom .modal-backdrop { background: rgba(74, 29, 56, .45); }
body.site.theme-blossom.blossom-dark .modal-backdrop { background: rgba(12, 4, 10, .7); }

/* ---------- Open binder: paper pages and a slim coil in the usual fold ----------
   The fold keeps Sticker club's 28px column. The coil loops reach 8px into each page's
   margin and end in punched holes, drawn on the spine itself so no layer sits over a card. */
body.site.theme-blossom .spread:not(.cover-mode) .binder-page {
  background: #fbf3ee !important;
  border: 2px solid color-mix(in srgb, var(--cover-dk) 55%, transparent);
  box-shadow: 0 2px 0 color-mix(in srgb, var(--cover-dk) 55%, transparent), inset 0 0 18px rgba(107, 44, 80, .08);
}
body.site.theme-blossom.blossom-dark .spread:not(.cover-mode) .binder-page {
  background: #2c1932 !important;
  border-color: var(--ink);
}
body.site.theme-blossom .spread:not(.cover-mode) { border-width: 3px; border-color: color-mix(in srgb, var(--cover-dk) 80%, #000); box-shadow: 0 5px 0 color-mix(in srgb, var(--cover-dk) 80%, #000), 0 22px 44px rgba(74, 29, 56, .28); }
body.site.theme-blossom .spread:not(.cover-mode) .spine { position: relative; z-index: 2; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--cover-dk) 40%, transparent) 50%, transparent); }
body.site.theme-blossom .spread:not(.cover-mode) .spine::before {
  content: ''; position: absolute; inset: 6px -9px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='46' height='22'%3E%3Cdefs%3E%3ClinearGradient id='w' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23ffffff'/%3E%3Cstop offset='.5' stop-color='%23f3eef1'/%3E%3Cstop offset='1' stop-color='%23cfc6cc'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle cx='5' cy='12' r='3.2' fill='%233b1830'/%3E%3Ccircle cx='41' cy='12' r='3.2' fill='%233b1830'/%3E%3Crect x='3' y='6.5' width='40' height='8' rx='4' transform='rotate(-7 23 10.5)' fill='url(%23w)' stroke='%236b2c50' stroke-width='1.4'/%3E%3C/svg%3E") center top / 46px 28px no-repeat space;
}

/* Pockets: soft sleeves on the paper. */
body.site.theme-blossom .spread .slot { background: var(--slot) !important; box-shadow: inset 0 0 0 1.5px rgba(107, 44, 80, .14), inset 0 2px 4px rgba(107, 44, 80, .08) !important; }
body.site.theme-blossom.blossom-dark .spread .slot { box-shadow: inset 0 0 0 1.5px rgba(255, 214, 230, .12), inset 0 2px 5px rgba(0, 0, 0, .4) !important; }
body.site.theme-blossom .spread .slot:not(.empty) { box-shadow: 0 2px 5px rgba(74, 29, 56, .3) !important; }
body.site.theme-blossom .slot.empty::before {
  border-color: rgba(107, 44, 80, .2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b2c50' stroke-opacity='.35' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
}
body.site.theme-blossom.blossom-dark .slot.empty::before {
  border-color: rgba(255, 214, 230, .16);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffd6e6' stroke-opacity='.35' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
}
body.site.theme-blossom .slot.empty:hover::before { border-color: var(--focus); }
/* The inside cover is the same paper; the binder's colour shows in the board around it. */
body.site.theme-blossom .inside-cover-container {
  background-color: #fbf3ee;
  background-image: none;
  box-shadow: inset 0 0 0 1px rgba(107, 44, 80, .1), inset -12px 0 24px rgba(107, 44, 80, .1);
  border-color: color-mix(in srgb, var(--cover-dk) 55%, transparent);
}
body.site.theme-blossom.blossom-dark .inside-cover-container {
  background-color: #2c1932;
  box-shadow: inset 0 0 0 1px rgba(255, 214, 230, .08), inset -12px 0 24px rgba(0, 0, 0, .35);
  border-color: var(--ink);
}
body.site.theme-blossom .slot.drag-over { outline-color: var(--focus); }

/* ---------- Closed binder: a coil-bound notebook in the binder's colour ---------- */
body.site.theme-blossom .binder-page.cover-page { --ink: #6b2c50; --text: #fffaf2; --muted: rgba(255, 250, 242, .82); }
body.site.theme-blossom .spread .binder-cover:not(.has-image) {
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 5px),
    linear-gradient(150deg, var(--cover), var(--cover-2));
  border: 3px solid color-mix(in srgb, var(--cover-dk) 80%, #000);
  outline: 2px dashed color-mix(in srgb, var(--cover-hi) 80%, transparent); outline-offset: -18px;
}
body.site.theme-blossom .spread .binder-cover { border-radius: 10px 22px 22px 10px; box-shadow: -10px 12px 0 color-mix(in srgb, var(--cover-dk) 80%, #000), 0 24px 48px rgba(74, 29, 56, .35); }
body.site.theme-blossom .spread .binder-cover .cover-edge {
  width: 34px; border-right: 2px solid color-mix(in srgb, var(--cover-dk) 60%, transparent); box-shadow: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='26'%3E%3Cdefs%3E%3ClinearGradient id='w' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23ffffff'/%3E%3Cstop offset='.5' stop-color='%23f3eef1'/%3E%3Cstop offset='1' stop-color='%23cfc6cc'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle cx='26' cy='14' r='3.4' fill='%233b1830'/%3E%3Crect x='2' y='8' width='27' height='8' rx='4' transform='rotate(-8 15 12)' fill='url(%23w)' stroke='%236b2c50' stroke-width='1.4'/%3E%3C/svg%3E") center top 10px / 34px 26px no-repeat space,
    linear-gradient(90deg, color-mix(in srgb, var(--cover-dk) 45%, transparent), transparent);
}
body.site.theme-blossom .spread .binder-cover .cover-placeholder small { color: var(--muted); }
body.site.theme-blossom .spread .binder-cover .cover-placeholder span { border: 2px solid #fffaf2; box-shadow: 0 6px 16px rgba(74, 29, 56, .3); }

/* ---------- Profile: no sheet, it stands on the meadow (as in Pixel World) ----------
   Without an upload the banner is an open window onto the meadow. Lettering standing on the
   art gets a soft glow in the page colour; the binder shelf and comments sit on frosted paper. */
html body.site.theme-blossom :is(.public-profile-panel, .profile-banner:not(:has(img))) { background: none; border-color: transparent; box-shadow: none; }
html body.site.theme-blossom :is(.profile-binders, .profile-comments-section) {
  border: 2px solid var(--line); border-radius: var(--sheet-radius, 6px); box-shadow: var(--float);
  background: color-mix(in srgb, var(--chrome-2) 78%, transparent);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
html body.site.theme-blossom .profile-comments-section { padding: 18px 20px; color: var(--text); }
html body.site.theme-blossom .collector-profile :is(.profile-name :is(h2, p), .profile-description, .profile-binders-section > h2, .profile-favorite h3, .profile-binders-section > .profile-empty) {
  color: var(--text); -webkit-text-fill-color: var(--text);
  text-shadow: 0 0 3px var(--halo), 0 0 8px var(--halo), 0 0 14px var(--halo);
}

/* ---------- Settings preview tiles ---------- */
/* The Classic tile keeps Classic's colours while Blossom is on (Light/Dark refine them). */
:where(body.site.theme-blossom) .settings-preview:not(.pixel-preview, .blossom-preview) {
  --ink: #0d0e14; --chrome: #1b1d27; --chrome-2: #23263a; --cream: #fff8ec; --stage: #2f5f8f;
  --tomato: #ff5a3c; --sky: #7aa7ff; --peel: #ff8a3d; --mint: #5fd4a8; --lilac: #c9a8ff; --slot: #15171e;
}
.settings-preview.blossom-preview {
  --ink: #6b2c50; --chrome: #fff0f4; --chrome-2: #fff7f9; --cream: #fffaf7; --stage: transparent;
  --tomato: #ff8fb1; --sky: #bcd5ff; --peel: #f4a9c4; --mint: #a8e6cf; --lilac: #dcc6ff; --slot: #fbf3ee;
  background: url('/assets/blossom-day.webp') center bottom / cover; border-radius: 8px;
}
.settings-preview.blossom-preview[data-mode="dark"] {
  --chrome: #2a1630; --chrome-2: #321a39; --cream: #3a2141; --slot: #2c1932;
  background-image: url('/assets/blossom-night.webp');
}
.settings-preview.blossom-preview :is(.settings-preview-toolbar, .settings-preview-shelf) { background: transparent; }
.settings-preview.blossom-preview .settings-preview-board i { border-color: rgba(107, 44, 80, .25); }

/* ---------- Sign-in gate: a notebook page on the meadow ---------- */
body.site.theme-blossom #authGate { --authgate-backdrop: var(--world) center bottom / cover no-repeat, var(--world-fill); }
body.site.theme-blossom #authGate .brand strong { font: 700 30px/1 var(--hand); }
