/* SPLENDIDE Selection V1. Scoped to .sp-sel-*; do not modify Sedcard V37. */
.sp-sel-nav { display:inline-flex; width:42px; height:44px; align-items:center; justify-content:center; position:relative; flex:0 0 auto; margin:0 4px; color:#fff !important; text-decoration:none !important; border-radius:2px; }
.sp-sel-nav:hover { background:#292929; }
.sp-sel-nav:focus-visible { outline:2px solid #fff;outline-offset:2px; }
.sp-sel-count { position:absolute; top:0; right:0; background:#fff; color:#111; border-radius:999px; min-width:17px; height:17px; padding:0 3px; font:700 10px/17px Arial,sans-serif; text-align:center; }
.sp-sel-count[hidden] { display:none !important; }
.sp-sel-card-tools { clear:both; display:flex; justify-content:flex-start; padding:4px 8px 14px; }
.sp-sel-add { display:inline-flex; align-items:center; justify-content:center; border:1px solid #343434; background:transparent; color:#222; padding:9px 12px; cursor:pointer; font:500 12px/1.25 'DM Sans',Arial,sans-serif; letter-spacing:.04em; text-transform:uppercase; max-width:100%; white-space:normal; }
.sp-sel-add:hover { background:#171717; color:#fff; }
.sp-sel-add.is-selected { background:#171717; border-color:#171717; color:#fff; }
.sp-sel-add:focus-visible { outline:2px solid #111; outline-offset:3px; }
.sp-sel-sedcard-tools { display:flex; justify-content:center; margin:20px auto 28px; padding:0 12px; max-width:100%; }
.sp-sel-sedcard-btn { min-height:44px; padding:12px 22px; }
/* Specific mobile accommodation: bookmark and existing search must fit without enlarging the viewport. */
@media (max-width:600px) {
  .sp-header:has(.sp-sel-nav) { padding-inline:12px; gap:6px; }
  .sp-header:has(.sp-sel-nav) .sp-brand { min-width:0; flex:1 1 auto; }
  .sp-header:has(.sp-sel-nav) .sp-brand strong { font-size:clamp(15px,4.6vw,20px); letter-spacing:.10em; }
  .sp-header:has(.sp-sel-nav) .sp-brand small { font-size:7px; letter-spacing:.08em; }
  .sp-header:has(.sp-sel-nav) .sp-actions { flex:0 0 auto; }
  .sp-sel-nav { width:34px; margin:0 2px; }
  .sp-header:has(.sp-sel-nav) .sp-search-v34-trigger { width:34px; margin:0 2px; }
  .sp-header:has(.sp-sel-nav) .sp-toggle { width:38px; }
  .sp-sel-card-tools { padding-inline:8px; }
}
/* Dedicated Selection page. */
.sp-selection-page { box-sizing:border-box; max-width:1150px; margin:0 auto; padding:clamp(24px,5vw,70px) clamp(16px,4vw,50px) 80px; color:#141414; font-family:'DM Sans',Arial,sans-serif; }
.sp-selection-page h1 { font:500 clamp(32px,5vw,58px)/1.12 'DM Sans',Arial,sans-serif; letter-spacing:-.035em; text-transform:none; margin:0 0 16px; }
.sp-selection-page h2 { font:500 21px/1.35 'DM Sans',Arial,sans-serif; text-transform:none; margin:0; }
.sp-selection-lead { font-size:14px; line-height:1.65; max-width:680px; margin:0 0 26px; }
.sp-selection-toolbar { display:flex; align-items:center; flex-wrap:wrap; gap:10px; margin:20px 0 30px; }
.sp-selection-toolbar button { cursor:pointer; padding:12px 15px; min-height:44px; border:1px solid #171717; font:600 12px/1.2 'DM Sans',Arial,sans-serif; text-transform:uppercase; letter-spacing:.035em; background:#171717; color:#fff; }
.sp-selection-toolbar button.sp-sel-outline { background:transparent; color:#171717; }
.sp-selection-toolbar button:disabled { opacity:.4; cursor:default; }
.sp-selection-toolbar button[hidden] { display:none; }
.sp-selection-countline { font-size:13px; margin:0 0 20px; color:#555; }
.sp-selection-empty { border-top:1px solid #bbb; padding:45px 0; color:#555; }
.sp-selection-results { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px; }
.sp-sel-result { border:1px solid #ddd; background:#fff; min-width:0; }
.sp-sel-image { display:block; aspect-ratio:5/6; background:#f1f1f1; overflow:hidden; }
.sp-sel-image img { width:100%; height:100%; object-fit:cover; display:block; }
.sp-sel-image-missing { display:flex; align-items:center; justify-content:center; color:#666; font-size:12px; letter-spacing:.25em; }
.sp-sel-result-body { padding:16px; }
.sp-sel-result-actions { display:flex; flex-wrap:wrap; gap:15px; align-items:center; margin-top:16px; }
.sp-sel-secondary,.sp-sel-remove { font:600 12px/1.3 'DM Sans',Arial,sans-serif; text-decoration:none; color:#111; }
.sp-sel-remove { border:0; background:none; padding:8px 0; text-decoration:underline; text-underline-offset:4px; cursor:pointer; }
.sp-selection-shared { margin:14px 0; padding:14px 16px; border:1px solid #ddd; font-size:13px; }
.sp-selection-shared[hidden] { display:none; }
.sp-selection-footnote { color:#666; font-size:12px; line-height:1.6; margin-top:28px; max-width:740px; }
@media (max-width:850px) { .sp-selection-results { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:520px) { .sp-selection-results { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; } .sp-sel-result-body { padding:11px; } .sp-selection-page h2 { font-size:15px; } .sp-selection-toolbar button { flex:1 1 auto; } }

/* V2: named saved selections */
.sp-selection-manager[hidden] { display:none !important; }
.sp-selection-manager { display:flex; flex-direction:column; gap:12px; padding:18px 0 20px; border-top:1px solid #c9c9c9; border-bottom:1px solid #c9c9c9; margin:24px 0; }
.sp-selection-manager label { font:600 12px/1.4 'DM Sans',Arial,sans-serif; text-transform:uppercase; letter-spacing:.05em; }
.sp-selection-manager-row { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.sp-selection-manager-row select, .sp-selection-manager-row input { min-height:44px; max-width:100%; box-sizing:border-box; padding:9px 11px; border:1px solid #777; background:#fff; color:#111; border-radius:0; font:14px 'DM Sans',Arial,sans-serif; }
.sp-selection-manager-row select { flex:1 1 210px; min-width:0; }
.sp-selection-manager-row input { flex:1 1 200px; min-width:0; }
.sp-selection-manager-row button { cursor:pointer; padding:10px 15px; min-height:44px; border:1px solid #222; background:#111; color:#fff; font:600 12px 'DM Sans',Arial,sans-serif; }
.sp-selection-manager-row button.sp-sel-outline { background:#fff; color:#111; }
.sp-selection-manager-row button:focus-visible,.sp-selection-manager-row input:focus-visible,.sp-selection-manager-row select:focus-visible {outline:2px solid #111;outline-offset:2px;}
.sp-selection-current { margin:16px 0; font:500 clamp(20px,3vw,29px)/1.3 'DM Sans',Arial,sans-serif; overflow-wrap:anywhere; }
@media(max-width:600px){
  /* Only the header carrying the Selection icon is adjusted. No Sedcard V37 changes. */
  .sp-header:has(.sp-sel-nav) .sp-sel-nav { flex-shrink:0; }
  .sp-selection-manager-row button { flex:1 1 auto; }
}
