/* ====================================================================
   Browse Collections — slate redesign page styles (discovery grid).
   Implements Claude Design's handoff (bc-* vocabulary). Tokens come from
   extensions/index_new/styles.css (linked alongside); the page rides the
   slate token system with coral (--brand) as the highlight, exactly as the
   handoff intended. Loaded for both the logged-in shell and the logged-out
   marketing page; $user_id picks which renders. Cover gradients are fixed
   decorative palettes (theme-independent) so white marks always read.
   ==================================================================== */

.mv-root.bc-root {
  background: var(--bg); color: var(--text-1); min-height: 60vh;
  /* Decorative cover-art stops (theme-independent, like practice_history --ph-v*):
     fixed palettes so the white marks/badges always read on top. Each stop is its
     own prop so the gradient is rebuilt from var()s. Plus --bc-on-cover (white in
     both themes) for marks sitting on a colored cover, and --bc-star (cover accent). */
  --bc-coral-a: #F08B6E; --bc-featured-c: #8A3A20;
  --bc-plum-a: #7A3F6E;  --bc-plum-b: #4A2542;
  --bc-sea-a: #5F7BAA;   --bc-sea-b: #2F4FB8;
  --bc-meadow-a: #6FB58B; --bc-meadow-b: #2E7A52;
  --bc-dawn-a: #E5B45E;  --bc-dawn-b: #A67A18;
  --bc-stone-a: #6E89A8; --bc-av-b: #8FA7C2;
  --bc-star: #FFD89A;    --bc-on-cover: #FFFFFF;
}
.mv-root.bc-root *, .mv-root.bc-root *::before, .mv-root.bc-root *::after { box-sizing: border-box; }

/* Cover gradient palette (shared by featured + cards + tone fallbacks). */
.mv-root .bc-cover-grad,
.mv-root .bc-card-cover.tone-coral,  .mv-root .bc-featured-cover.tone-coral  { --cv: linear-gradient(135deg,var(--bc-coral-a),var(--brand)); }
.mv-root .bc-card-cover.tone-plum,   .mv-root .bc-featured-cover.tone-plum   { --cv: linear-gradient(135deg,var(--bc-plum-a),var(--bc-plum-b)); }
.mv-root .bc-card-cover.tone-sea,    .mv-root .bc-featured-cover.tone-sea    { --cv: linear-gradient(135deg,var(--bc-sea-a),var(--bc-sea-b)); }
.mv-root .bc-card-cover.tone-meadow, .mv-root .bc-featured-cover.tone-meadow { --cv: linear-gradient(135deg,var(--bc-meadow-a),var(--bc-meadow-b)); }
.mv-root .bc-card-cover.tone-dawn,   .mv-root .bc-featured-cover.tone-dawn   { --cv: linear-gradient(135deg,var(--bc-dawn-a),var(--bc-dawn-b)); }
.mv-root .bc-card-cover.tone-stone,  .mv-root .bc-featured-cover.tone-stone  { --cv: linear-gradient(135deg,var(--bc-stone-a),var(--accent)); }
.mv-root .bc-card-cover.tone-coral, .mv-root .bc-card-cover.tone-plum, .mv-root .bc-card-cover.tone-sea,
.mv-root .bc-card-cover.tone-meadow, .mv-root .bc-card-cover.tone-dawn, .mv-root .bc-card-cover.tone-stone { background: var(--cv); }
.mv-root .bc-featured-cover.tone-coral, .mv-root .bc-featured-cover.tone-plum, .mv-root .bc-featured-cover.tone-sea,
.mv-root .bc-featured-cover.tone-meadow, .mv-root .bc-featured-cover.tone-dawn, .mv-root .bc-featured-cover.tone-stone { background: var(--cv); }

/* ---------- Page wrap ---------- */
.bc-page { box-sizing: border-box; display: flex; flex-direction: column; gap: 36px; max-width: 1440px; width: 100%; margin-left: auto; margin-right: auto; padding: 0 64px 80px; }
/* Logged-in shell: clear the fixed 68px app top bar. */
.mv-root.bc-root-in .bc-page { padding-top: calc(68px + 40px); }
/* Logged-out marketing page (nav is in normal flow above). */
.mv-root.bc-loggedout .bc-page { padding-top: 24px; max-width: 1200px; }

/* ====================================================================
   Header
   ==================================================================== */
.mv-root .bc-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; }
.mv-root .bc-eye {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; font-weight: 500; color: var(--text-3); margin-bottom: 14px;
}
.mv-root .bc-eye .ic { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 6px; background: var(--brand-soft); color: var(--brand); }
.mv-root .bc-eye .sep { width: 3px; height: 3px; background: var(--text-muted); border-radius: 50%; }
.mv-root .bc-head h1 { font-family: var(--font-serif); font-size: 44px; font-weight: 500; letter-spacing: -0.024em; line-height: 1.0; color: var(--text-1); margin: 0; }
.mv-root .bc-head h1 em { font-style: italic; font-weight: 400; color: var(--brand); }
.mv-root .bc-head .sub { margin-top: 14px; font-family: var(--font-sans); font-size: 14.5px; line-height: 1.55; color: var(--text-3); max-width: 520px; }
/* Logged-out marketing hero runs a touch larger. */
.mv-root.bc-loggedout .bc-head h1 { font-size: 64px; }
.mv-root.bc-loggedout .bc-head .sub { font-size: 15.5px; max-width: 560px; }
.mv-root .bc-head-cta { display: inline-flex; align-items: center; gap: 10px; }

/* ---------- Buttons ---------- */
.mv-root .bc-btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 10px 16px; border-radius: var(--radius-pill);
  font-family: var(--font-sans); font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none;
  border: 1px solid transparent; transition: filter .15s, transform .15s, border-color .15s, color .15s;
}
.mv-root .bc-btn.ghost { background: transparent; color: var(--text-2); border-color: var(--border-strong); }
.mv-root .bc-btn.ghost:hover { color: var(--text-1); border-color: var(--text-muted); }
.mv-root .bc-btn.primary { background: var(--brand); color: var(--brand-fg); border-color: var(--brand); box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, 0 6px 18px -8px var(--brand); }
.mv-root .bc-btn.primary:hover { filter: brightness(.96); }
.mv-root .bc-btn.solid { background: var(--text-1); color: var(--bg); }
.mv-root .bc-btn.solid:hover { filter: brightness(1.05); }

/* ====================================================================
   Breadcrumb (logged-out)
   ==================================================================== */
.mv-root .bc-breadcrumb { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-sans); font-size: 12.5px; color: var(--text-3); }
.mv-root .bc-breadcrumb a { color: var(--text-3); text-decoration: none; }
.mv-root .bc-breadcrumb a:hover { color: var(--text-1); }
.mv-root .bc-breadcrumb .chev { opacity: .55; }
.mv-root .bc-breadcrumb .current { color: var(--text-1); font-weight: 600; }

/* ====================================================================
   Search row
   ==================================================================== */
.mv-root .bc-search-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.mv-root .bc-search { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 12px 18px; min-width: 0; }
.mv-root .bc-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.mv-root .bc-search .ic { color: var(--text-3); display: inline-flex; }
.mv-root .bc-search input { background: transparent; border: 0; outline: 0; flex: 1; font-family: var(--font-sans); font-size: 14px; color: var(--text-1); min-width: 0; }
.mv-root .bc-search input::placeholder { color: var(--text-muted); }
.mv-root .bc-search-keys { display: inline-flex; align-items: center; gap: 6px; }
.mv-root .bc-search-keys kbd { background: var(--surface-2); border: 1px solid var(--border); border-radius: 5px; padding: 2px 6px; font-family: var(--font-mono); font-size: 11px; font-weight: 500; color: var(--text-3); }
.mv-root .bc-sort { position: relative; display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 11px 16px; font-family: var(--font-sans); font-size: 13px; font-weight: 600; color: var(--text-2); cursor: pointer; white-space: nowrap; }
.mv-root .bc-sort .label { font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.mv-root .bc-sort .val { color: var(--text-1); }
.mv-root .bc-sort .chev { color: var(--text-3); }
.mv-root .bc-sort-menu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 50; min-width: 210px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-elev); padding: 6px; display: none; }
.mv-root .bc-sort-menu.open { display: block; }
.mv-root .bc-sort-menu a { display: block; padding: 9px 12px; border-radius: var(--radius-sm); font-family: var(--font-sans); font-size: 13px; font-weight: 500; color: var(--text-2); text-decoration: none; }
.mv-root .bc-sort-menu a:hover { background: var(--surface-2); color: var(--text-1); }
.mv-root .bc-sort-menu a.active { color: var(--text-1); font-weight: 600; background: var(--surface-2); }

/* ====================================================================
   Category tabs
   ==================================================================== */
.mv-root .bc-tabs { display: flex; align-items: center; gap: 4px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.mv-root .bc-tabs a {
  background: transparent; border: 0; color: var(--text-3); font-family: var(--font-sans); font-size: 14px; font-weight: 500;
  padding: 14px 16px; cursor: pointer; position: relative; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; transition: color .15s;
}
.mv-root .bc-tabs a:hover { color: var(--text-1); }
.mv-root .bc-tabs a.active { color: var(--text-1); font-weight: 600; }
.mv-root .bc-tabs a.active::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: -1px; height: 2px; background: var(--brand); border-radius: 2px; }
.mv-root .bc-tabs a .ct { font-family: var(--font-mono); font-size: 10px; font-weight: 500; color: var(--text-muted); }
.mv-root .bc-tabs a.active .ct { color: var(--brand); }

/* ====================================================================
   Featured banner
   ==================================================================== */
.mv-root .bc-featured { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-card); }
.mv-root .bc-featured-cover { position: relative; min-height: 320px; background: linear-gradient(135deg,var(--bc-coral-a),var(--brand) 55%,var(--bc-featured-c)); display: flex; align-items: flex-end; padding: 24px; color: var(--bc-on-cover); overflow: hidden; }
.mv-root .bc-featured-cover .bc-cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mv-root .bc-featured-cover::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.18), transparent 50%), radial-gradient(circle at 80% 90%, rgba(0,0,0,0.20), transparent 60%); pointer-events: none; }
.mv-root .bc-featured-cover::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, transparent 0 14px, rgba(255,255,255,0.05) 14px 15px); pointer-events: none; }
.mv-root .bc-featured-cover .badge { position: absolute; top: 20px; left: 20px; background: rgba(0,0,0,0.30); border: 1px solid rgba(255,255,255,0.18); padding: 5px 11px; border-radius: var(--radius-pill); font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bc-on-cover); z-index: 2; display: inline-flex; align-items: center; gap: 6px; }
.mv-root .bc-featured-cover .badge .star { color: var(--bc-star); }
.mv-root .bc-featured-cover .icon-mark { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 96px; height: 96px; border-radius: 28px; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.22); display: flex; align-items: center; justify-content: center; color: var(--bc-on-cover); z-index: 2; font-family: var(--font-serif); font-size: 34px; font-weight: 500; letter-spacing: -0.02em; box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), inset 0 -10px 30px rgba(0,0,0,0.20), 0 12px 30px -10px rgba(0,0,0,0.35); }
.mv-root .bc-featured-cover .verses-tag { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 8px; background: rgba(0,0,0,0.30); border: 1px solid rgba(255,255,255,0.18); padding: 7px 12px; border-radius: var(--radius-pill); font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--bc-on-cover); }
.mv-root .bc-featured-body { padding: 32px 36px; display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.mv-root .bc-featured-body .eye { font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand); display: inline-flex; align-items: center; gap: 8px; }
.mv-root .bc-featured-body .eye .sep { width: 3px; height: 3px; background: currentColor; opacity: .45; border-radius: 50%; }
.mv-root .bc-featured-body h2 { font-family: var(--font-serif); font-size: 40px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.04; color: var(--text-1); margin: 0; text-wrap: balance; }
.mv-root .bc-featured-body .desc { font-family: var(--font-sans); font-size: 15px; line-height: 1.55; color: var(--text-2); max-width: 540px; margin: 0; }
.mv-root .bc-featured-meta { display: flex; align-items: center; gap: 22px; padding-top: 16px; border-top: 1px dashed var(--border); font-family: var(--font-mono); font-size: 12px; color: var(--text-3); flex-wrap: wrap; }
.mv-root .bc-featured-meta .v { display: inline-flex; align-items: baseline; gap: 6px; }
.mv-root .bc-featured-meta .v strong { font-family: var(--font-serif); font-size: 18px; font-weight: 600; letter-spacing: -.01em; color: var(--text-1); }
.mv-root .bc-featured-actions { display: inline-flex; align-items: center; gap: 10px; margin-top: 4px; flex-wrap: wrap; }

/* ====================================================================
   Grid + cards
   ==================================================================== */
.mv-root .bc-grid-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.mv-root .bc-grid-head h3 { font-family: var(--font-serif); font-size: 24px; font-weight: 500; letter-spacing: -0.015em; color: var(--text-1); margin: 0; }
.mv-root .bc-grid-head h3 em { font-style: italic; font-weight: 400; color: var(--brand); }
.mv-root .bc-grid-head .meta { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); text-align: right; }

.mv-root .bc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.mv-root .bc-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; cursor: pointer; text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; position: relative; }
.mv-root .bc-card:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: var(--shadow-card); }

.mv-root .bc-card-cover { height: 132px; position: relative; display: flex; align-items: center; justify-content: center; color: var(--bc-on-cover); overflow: hidden; box-shadow: inset 0 -10px 30px rgba(0,0,0,0.18); }
.mv-root .bc-card-cover .bc-cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mv-root .bc-card-cover.has-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.42) 100%); pointer-events: none; }
.mv-root .bc-card-cover:not(.has-img)::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 25% 25%, rgba(255,255,255,0.18), transparent 50%); pointer-events: none; }
.mv-root .bc-card-cover:not(.has-img)::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, transparent 0 12px, rgba(255,255,255,0.04) 12px 13px); pointer-events: none; }
.mv-root .bc-card-cover .icon-mark { width: 56px; height: 56px; border-radius: 16px; background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.22); display: flex; align-items: center; justify-content: center; z-index: 2; font-family: var(--font-serif); font-size: 20px; font-weight: 500; color: var(--bc-on-cover); letter-spacing: -0.01em; box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), 0 6px 16px -6px rgba(0,0,0,0.28); }
.mv-root .bc-card-cover .vtag { position: absolute; bottom: 12px; left: 12px; z-index: 2; background: rgba(0,0,0,0.32); border: 1px solid rgba(255,255,255,0.18); font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 9px; border-radius: var(--radius-pill); color: var(--bc-on-cover); }

.mv-root .bc-card-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.mv-root .bc-card-name { font-family: var(--font-serif); font-size: 19px; font-weight: 600; letter-spacing: -0.012em; line-height: 1.2; color: var(--text-1); margin: 0; }
.mv-root .bc-card-desc { font-family: var(--font-sans); font-size: 13px; line-height: 1.5; color: var(--text-3); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-wrap: pretty; }
.mv-root .bc-card-meta { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); font-family: var(--font-mono); font-size: 10.5px; color: var(--text-3); }
.mv-root .bc-card-meta .v { display: inline-flex; align-items: center; gap: 5px; }
.mv-root .bc-card-meta .v strong { color: var(--text-1); font-weight: 600; }
.mv-root .bc-card-meta .sep { width: 2px; height: 2px; background: var(--text-muted); border-radius: 50%; }
.mv-root .bc-card-curator { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.mv-root .bc-card-curator .av { width: 16px; height: 16px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--bc-av-b)); display: inline-flex; align-items: center; justify-content: center; position: relative; }
.mv-root .bc-card-curator.staff .av::before { content: ""; width: 7px; height: 7px; background: var(--bc-on-cover); mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='black' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 16.17 4.83 12 3.41 13.41 9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center/contain no-repeat; }

/* ====================================================================
   Empty state
   ==================================================================== */
.mv-root .bc-empty { grid-column: 1 / -1; text-align: center; padding: 56px 32px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.mv-root .bc-empty h3 { font-family: var(--font-serif); font-size: 22px; font-weight: 600; color: var(--text-1); margin: 0 0 8px; }
.mv-root .bc-empty p { font-family: var(--font-sans); font-size: 14px; color: var(--text-2); margin: 0 auto; max-width: 440px; }

/* ====================================================================
   Pager
   ==================================================================== */
.mv-root .bc-pager { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 0 4px; flex-wrap: wrap; }
.mv-root .bc-pager-btn { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 9px 16px; font-family: var(--font-sans); font-size: 12.5px; font-weight: 600; color: var(--text-2); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.mv-root .bc-pager-btn:hover { color: var(--text-1); border-color: var(--text-muted); }
.mv-root .bc-pager-btn:disabled { opacity: .4; cursor: default; }
.mv-root .bc-pager-num { width: 34px; height: 34px; border-radius: 50%; background: transparent; border: 1px solid transparent; font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--text-3); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.mv-root .bc-pager-num:hover { color: var(--text-1); }
.mv-root .bc-pager-num.active { background: var(--text-1); color: var(--bg); }
.mv-root .bc-pager-num.ellipsis { color: var(--text-muted); cursor: default; }

/* ====================================================================
   Footnote (logged-in) + marketing CTA (logged-out)
   ==================================================================== */
.mv-root .bc-foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 28px; border: 1px dashed var(--border); border-radius: var(--radius-lg); background: var(--surface); color: var(--text-2); font-family: var(--font-sans); font-size: 13.5px; }
.mv-root .bc-foot strong { color: var(--text-1); font-weight: 600; }
.mv-root .bc-foot .right { display: inline-flex; align-items: center; gap: 10px; }

.mv-root .bc-marketing-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 32px; background: linear-gradient(135deg, var(--brand-soft), transparent 60%), var(--surface); border: 1px solid color-mix(in oklab, var(--brand) 35%, var(--border)); border-radius: var(--radius-xl); padding: 32px 36px; box-shadow: var(--shadow-card); position: relative; overflow: hidden; }
.mv-root .bc-marketing-cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 100% 0%, var(--brand-soft), transparent 55%); pointer-events: none; }
.mv-root .bc-marketing-cta > * { position: relative; z-index: 1; }
.mv-root .bc-marketing-cta .eye { font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand); display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.mv-root .bc-marketing-cta h3 { font-family: var(--font-serif); font-size: 30px; font-weight: 500; letter-spacing: -0.018em; color: var(--text-1); margin: 0 0 8px; line-height: 1.1; text-wrap: balance; }
.mv-root .bc-marketing-cta h3 em { font-style: italic; font-weight: 400; color: var(--brand); }
.mv-root .bc-marketing-cta p { font-family: var(--font-sans); font-size: 14.5px; line-height: 1.55; color: var(--text-2); max-width: 460px; margin: 0; }
.mv-root .bc-marketing-cta .actions { display: inline-flex; align-items: center; gap: 10px; }

/* ====================================================================
   Create-collection modal (slate frame) — carried over from prior redesign
   ==================================================================== */
.cc-modal-overlay { position: fixed; inset: 0; background: rgba(11,20,38,0.55); z-index: 1000000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.cc-modal { width: 100%; max-width: 460px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-elev); overflow: hidden; }
.cc-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.cc-modal-head h3 { font-family: var(--font-serif); font-size: 20px; font-weight: 600; color: var(--text-1); margin: 0; }
.cc-modal-x { width: 32px; height: 32px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; background: transparent; border: 0; color: var(--text-3); cursor: pointer; }
.cc-modal-x:hover { background: var(--surface-2); color: var(--text-1); }
.cc-modal-x .cc-x-rot { transform: rotate(45deg); }
.cc-modal-body { padding: 20px 22px 8px; }
.cc-label { display: block; font-family: var(--font-sans); font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.cc-input { width: 100%; padding: 11px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface-2); color: var(--text-1); font-family: var(--font-sans); font-size: 14px; outline: 0; transition: border-color .12s, background .12s; }
.cc-input:focus { border-color: var(--brand); background: var(--surface); }
.cc-modal-error { font-family: var(--font-sans); font-size: 12.5px; color: var(--danger); margin: 8px 0 0; }
.cc-modal-actions { display: flex; justify-content: flex-end; gap: 12px; padding: 16px 22px 22px; }
.cc-btn-ghost { display: inline-flex; align-items: center; padding: 10px 18px; border-radius: var(--radius-pill); background: var(--surface); color: var(--text-2); border: 1px solid var(--border); cursor: pointer; font-family: var(--font-sans); font-size: 14px; font-weight: 600; }
.cc-btn-ghost:hover { color: var(--text-1); border-color: var(--border-strong); }
.cc-btn-primary { display: inline-flex; align-items: center; padding: 10px 18px; border-radius: var(--radius-pill); background: var(--brand); color: var(--brand-fg); border: 0; cursor: pointer; font-family: var(--font-sans); font-size: 14px; font-weight: 600; }
.cc-btn-primary:hover { filter: brightness(1.06); }

/* ====================================================================
   Responsive
   ==================================================================== */
@media (max-width: 1600px) {
  .bc-page { padding-left: 48px; padding-right: 48px; }
}
@media (max-width: 1180px) {
  .bc-page { padding-left: 40px; padding-right: 40px; }
  .mv-root .bc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mv-root .bc-featured { grid-template-columns: 300px minmax(0, 1fr); }
}
@media (max-width: 880px) {
  .mv-root .bc-head { grid-template-columns: 1fr; align-items: start; }
  .mv-root .bc-head h1 { font-size: 34px; }
  .mv-root .bc-featured { grid-template-columns: 1fr; }
  .mv-root .bc-featured-cover { min-height: 200px; }
  .mv-root .bc-featured-body h2 { font-size: 32px; }
}
@media (max-width: 767px) {
  .bc-page { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 720px) {
  .bc-page { gap: 28px; }
  .mv-root.bc-root-in .bc-page { padding-top: calc(68px + 18px); }
  .mv-root .bc-grid { grid-template-columns: 1fr; }
  .mv-root .bc-search-row { grid-template-columns: 1fr; }
  .mv-root .bc-search-keys { display: none; }
  /* Phone: wrapping filter pills — no horizontal/vertical scroll (3 fixed categories) */
  .mv-root .bc-tabs { gap: 8px; border-bottom: 0; }
  .mv-root .bc-tabs a { border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 9px 14px; white-space: nowrap; }
  .mv-root .bc-tabs a.active { background: var(--brand); color: var(--brand-fg); border-color: var(--brand); font-weight: 600; }
  .mv-root .bc-tabs a.active::after { display: none; }
  .mv-root .bc-tabs a.active .ct { color: var(--brand-fg); opacity: .85; }
  .mv-root .bc-head h1 { font-size: 30px; }
  .mv-root .bc-foot, .mv-root .bc-marketing-cta { grid-template-columns: 1fr; flex-direction: column; align-items: flex-start; }
  .mv-root .bc-grid-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .mv-root .bc-grid-head .meta { text-align: left; }
}
