/* SuperCheck AI — dark leather notebook theme. Loaded after style.css and overrides it.
   Gold rings bind a dark notebook page; the sidebar and AI panel are leather. Red (--danger) still means delete. */
/* Text uses a plain system font (Segoe UI on Windows). Only the SuperCheck AI logo uses the serif, served from fonts/ (SIL Open Font License). */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/cormorant-garamond-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 600; font-display: swap; src: url("fonts/cormorant-garamond-latin-600-italic.woff2") format("woff2"); }
:root {
  --bg: #0b0a09; --leather: #17130f; --leather-2: #1f1913;
  --paper: #1a1714; --paper-2: #221e1a; --paper-3: #2a2520;
  --ink: #f1e9dc; --ink-2: #d6ccbc; --muted: #9d9384;
  --line: rgba(214, 180, 120, .16); --line-strong: rgba(214, 180, 120, .32); --soft: #24201b;
  --gold: #c9a35c; --gold-bright: #e8c67e; --gold-deep: #8d6c34; --gold-soft: rgba(201, 163, 92, .14);
  --accent: var(--gold); --accent-dark: var(--gold-bright); --accent-soft: var(--gold-soft);
  --own: #8fc4a0; --own-soft: rgba(110, 170, 130, .16);
  --want: #9fb7e0; --want-soft: rgba(110, 140, 200, .18);
  --maybe: #e6b65e; --maybe-soft: rgba(230, 182, 94, .16);
  --nope: #a9a39a; --nope-soft: rgba(169, 163, 154, .14);
  --danger: #e0707e; --danger-dark: #f09aa5; --danger-soft: rgba(224, 112, 126, .14);
  --logo: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  --serif: var(--sans);  /* headings use the same simple font as the text */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .9 0 0 0 0 .75 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --ring: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='58'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23f6e2a8'/%3E%3Cstop offset='.42' stop-color='%23cfa75e'/%3E%3Cstop offset='1' stop-color='%23664a20'/%3E%3C/linearGradient%3E%3CradialGradient id='h'%3E%3Cstop offset='.55' stop-color='%23000'/%3E%3Cstop offset='1' stop-color='%23000' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle cx='38' cy='29' r='7' fill='url(%23h)'/%3E%3Ccircle cx='38' cy='29' r='4.6' fill='%23060504'/%3E%3Crect x='3' y='31' width='36' height='4' rx='2' fill='%23000' opacity='.45'/%3E%3Crect x='2' y='24.5' width='38' height='9' rx='4.5' fill='url(%23g)'/%3E%3Crect x='6' y='26' width='28' height='2' rx='1' fill='%23fff6da' opacity='.6'/%3E%3C/svg%3E");
  color-scheme: dark;
  font-family: var(--sans); color: var(--ink); background: var(--bg);
}
body.lux {
  background: var(--grain) 0 0 / 180px, radial-gradient(1200px 600px at 70% -10%, #2a2117 0%, transparent 60%), radial-gradient(900px 700px at -10% 110%, #1d1610 0%, transparent 60%), var(--bg);
  background-blend-mode: soft-light, normal, normal, normal;
  color: var(--ink); font-weight: 400; letter-spacing: .005em; min-height: 100vh; font-variant-numeric: lining-nums;
}
::selection { background: rgba(201, 163, 92, .35); color: #fff; }
:is(a, button, input, select, textarea, summary):focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }
a { color: inherit; }
h1, h2, h3, .page-title { font-family: var(--serif); font-weight: 600; letter-spacing: .005em; color: var(--ink); }
h1 { font-size: 36px; }
.muted, small { color: var(--muted); }
.eyebrow, .page-eyebrow { font-family: var(--sans); font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); font-weight: 500; margin: 0 0 6px; }

/* ---------- Header ---------- */
.lux-header { position: relative; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.15)), var(--grain) 0 0 / 180px, linear-gradient(100deg, #0e0c0a 0%, #19140f 55%, #0e0c0a 100%); background-blend-mode: normal, soft-light, normal; }
.lux-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-deep) 20%, var(--gold-bright) 50%, var(--gold-deep) 80%, transparent); opacity: .7; }
.lux-header { min-height: 150px; }
.header-scene { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.lux-header-inner { position: relative; z-index: 1; min-height: 150px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px clamp(16px, 3vw, 52px); }
.brand { display: flex; align-items: center; gap: 18px; text-decoration: none; min-width: 0; }
.brand-mark { font-family: var(--logo) !important; flex: none; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold-bright); font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 25px; letter-spacing: -.04em; background: radial-gradient(circle at 35% 30%, #2b2218, #0f0c09 70%); box-shadow: inset 0 0 0 3px #0d0b09, inset 0 0 0 4px rgba(201,163,92,.35), 0 6px 18px rgba(0,0,0,.5); }
.brand-text { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.brand-name { font-family: var(--logo); font-weight: 600; font-size: clamp(40px, 4.6vw, 68px); line-height: .9; color: #f6efe2; letter-spacing: -.005em; text-shadow: 0 2px 18px rgba(0,0,0,.6); }
.brand-name em { font-style: normal; background: linear-gradient(180deg, #f3d68f 10%, #c9a35c 55%, #9a7639 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-tagline { font-size: 12.5px; letter-spacing: .42em; padding-left: 2px; text-transform: uppercase; color: #c8bba6; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-menu-lux { position: relative; flex: none; }
.user-menu-lux > summary { list-style: none; display: flex; align-items: center; gap: 14px; cursor: pointer; color: #efe6d6; font-size: 16px; text-shadow: 0 1px 8px rgba(0,0,0,.8); }
.user-menu-lux > summary::-webkit-details-marker { display: none; }
.user-menu-lux > summary .user-name::after { content: " ⌄"; color: var(--muted); }
.avatar { font-family: var(--logo) !important; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--gold); color: var(--gold-bright); font-size: 20px; font-weight: 600; letter-spacing: .02em; background: radial-gradient(circle at 35% 30%, #2a2118, #0d0a08 75%); box-shadow: 0 0 0 3px rgba(0,0,0,.6), 0 6px 16px rgba(0,0,0,.6); }
.user-drop { position: absolute; right: 0; top: calc(100% + 10px); z-index: 50; min-width: 200px; background: var(--leather-2); border: 1px solid var(--line-strong); border-radius: 10px; padding: 6px; box-shadow: 0 18px 40px rgba(0,0,0,.6); display: grid; }
.user-drop a, .user-drop button { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 6px; border: 0; background: none; color: var(--ink); font: inherit; font-size: 14px; text-decoration: none; cursor: pointer; }
.user-drop a:hover, .user-drop button:hover { background: var(--gold-soft); color: var(--gold-bright); }
.user-drop form { margin: 0; }

/* ---------- Shell: leather sidebar + notebook ---------- */
.shell { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.shell.has-nav { grid-template-columns: 232px minmax(0, 1fr); }
.leather-nav { position: sticky; top: 0; align-self: start; height: 100vh; display: flex; flex-direction: column; justify-content: space-between; padding: 26px 0 26px; background: var(--grain) 0 0 / 180px, linear-gradient(180deg, #16120e, #100d0a); background-blend-mode: soft-light, normal; border-right: 1px solid var(--line); box-shadow: inset -12px 0 24px -16px rgba(0,0,0,.8); }
.leather-nav::before { content: ""; position: absolute; inset: 10px 10px 10px 10px; border: 1px dashed rgba(201,163,92,.22); border-radius: 10px; pointer-events: none; }
.leather-nav ul { list-style: none; margin: 0; padding: 0 18px; display: grid; gap: 4px; }
.leather-nav a { position: relative; display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 6px; text-decoration: none; color: var(--ink-2); font-size: 16px; letter-spacing: .01em; transition: background .15s, color .15s; }
.leather-nav a .topic-icon, .leather-nav a svg { flex: none; color: var(--gold); opacity: .85; }
.leather-nav a:hover { background: rgba(201,163,92,.08); color: #fff; }
.leather-nav a.active { background: linear-gradient(90deg, rgba(201,163,92,.22), rgba(201,163,92,.06)); color: #fff; box-shadow: inset 0 0 0 1px rgba(201,163,92,.25); }
.leather-nav a.active::before { content: ""; position: absolute; left: -18px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--gold); }
.leather-nav a.active svg { opacity: 1; color: var(--gold-bright); }
.leather-nav .nav-add { color: var(--muted); font-size: 14px; }
.leather-nav .nav-add svg { color: var(--muted); }
.nav-foot { border-top: 1px solid var(--line); padding-top: 14px !important; margin: 0 18px !important; padding-left: 0 !important; padding-right: 0 !important; }

html { background: var(--bg); }
body.lux main, body.lux.is-wide main { max-width: none; margin: 0; padding: 30px clamp(16px, 2.6vw, 40px) 64px 0; min-height: 70vh; }
body.lux .shell:not(.has-nav) main { width: 100%;  max-width: 900px; margin: 0 auto; padding-left: 40px; }
.paper { position: relative; margin-left: 34px; padding: 34px clamp(20px, 3vw, 44px) 40px 52px; min-width: 0;
  background: var(--grain) 0 0 / 180px, linear-gradient(180deg, #1d1a16, #181512 60%, #161310); background-blend-mode: soft-light, normal;
  border: 1px solid rgba(214,180,120,.14); border-radius: 4px 14px 14px 4px;
  box-shadow: 4px 4px 0 -1px #131110, 4px 4px 0 0 rgba(214,180,120,.08), 8px 8px 0 -1px #100e0c, 8px 8px 0 0 rgba(214,180,120,.06), 0 30px 60px rgba(0,0,0,.55), inset 18px 0 30px -24px rgba(0,0,0,.9); }
.paper { container-type: inline-size; container-name: page; }
.paper::before { content: ""; position: absolute; left: -32px; top: 22px; bottom: 22px; width: 48px; background: var(--ring) 0 0 / 48px 58px repeat-y; pointer-events: none; z-index: 2; filter: drop-shadow(0 2px 2px rgba(0,0,0,.5)); }
.paper::after { content: ""; position: absolute; left: 22px; top: 0; bottom: 0; width: 1px; background: linear-gradient(180deg, transparent, rgba(201,163,92,.18) 8%, rgba(201,163,92,.18) 92%, transparent); pointer-events: none; }
.paper > :first-child { margin-top: 0; }
footer { border-top: 1px solid var(--line); color: var(--muted); background: transparent; letter-spacing: .04em; }
footer a { color: var(--gold); }

/* ---------- Page head, tabs, toolbar ---------- */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 10px; }
.page-title { font-size: clamp(32px, 3.2vw, 42px); line-height: 1; margin: 0; }
.page-actions.topics { border: 0; margin: 0; overflow: visible; }
.page-actions .nav-actions { padding: 0; gap: 18px; }
.topics .nav-actions a.text-action, .text-action { color: var(--muted); text-decoration: none; font-size: 14px; border: 0; padding: 0; }
.text-action:hover, .topics .nav-actions a.text-action:hover { color: var(--gold-bright); }
.plus-menu > summary.plus-button { width: auto; height: 46px; padding: 0 22px 0 16px; gap: 8px; border-radius: 999px; background: linear-gradient(180deg, #e9c97f, #c9a35c 55%, #a7823f); color: #1a1208; font-weight: 600; font-size: 15px; letter-spacing: .03em; box-shadow: 0 6px 18px rgba(201,163,92,.25), inset 0 1px 0 rgba(255,255,255,.45); }
.plus-menu > summary.plus-button:hover { background: linear-gradient(180deg, #f2d690, #d4ae66 55%, #b08a45); }
.plus-menu[open] > summary.plus-button { transform: none; }
.plus-menu[open] > summary.plus-button svg { transform: rotate(45deg); }
.plus-menu > summary.plus-button svg { transition: transform .15s; width: 18px; height: 18px; }
.add-menu-list, .ai-menu .menu, .status-options { background: var(--leather-2); border: 1px solid var(--line-strong); box-shadow: 0 18px 40px rgba(0,0,0,.6); border-radius: 10px; }
.add-menu-list a, .topics .nav-actions .add-menu-list a { color: var(--ink); }
.add-menu-list a:hover, .add-menu-list a:focus-visible, .ai-menu .menu a:hover { background: var(--gold-soft); color: var(--ink); }
.add-menu-list strong { color: var(--gold-bright); }
.add-menu-ways a, .topics .nav-actions .add-menu-ways a { border-color: var(--line-strong); color: var(--gold); }

.categories { border-bottom: 1px solid var(--line); gap: 34px; margin-top: 14px; }
.categories a { color: var(--muted); font-size: 16px; font-family: var(--serif); font-weight: 600; letter-spacing: .01em; padding: 14px 0 12px; }
.categories a:hover { color: var(--ink); }
.categories a.active { color: var(--gold-bright); border-color: var(--gold); }
.view-switch { border: 1px solid var(--line-strong); border-radius: 8px; background: rgba(0,0,0,.2); }
.view-switch a { color: var(--muted); }
.view-switch a + a { border-left: 1px solid var(--line); }
.view-switch a:hover { color: var(--gold-bright); }
.view-switch a.is-on { background: var(--gold-soft); color: var(--gold-bright); box-shadow: inset 0 0 0 1px rgba(201,163,92,.45); }

.toolbar { margin: 20px 0 14px; }
.filters { margin: 0; align-items: center; gap: 12px; width: 100%; }
.filter-drop { position: relative; }
.chip-button, .filter-drop > summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--line-strong); background: rgba(0,0,0,.25); color: var(--ink); font-size: 15px; cursor: pointer; }
.filter-drop > summary::-webkit-details-marker { display: none; }
.filter-drop > summary::after { content: "⌄"; color: var(--muted); margin-left: 2px; }
.filter-drop[open] > summary, .chip-button:hover { border-color: var(--gold); }
.filter-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-bright); display: inline-block; }
.filter-dot ~ .filter-dot { display: none; }
.filter-panel { position: absolute; left: 0; top: calc(100% + 8px); z-index: 30; width: min(340px, 86vw); display: grid; gap: 12px; padding: 16px; background: var(--leather-2); border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: 0 20px 44px rgba(0,0,0,.65); }
.filters label, .filter-panel label { color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.filter-panel select, .filter-panel input { width: 100% !important; text-transform: none; letter-spacing: 0; margin-top: 4px; }
.segmented { gap: 8px; flex-wrap: wrap; }
.segmented a, .segmented a:first-child, .segmented a:last-child { margin: 0; padding: 6px 15px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255,255,255,.02); color: var(--ink-2); font-size: 14.5px; }
.segmented a:hover { border-color: var(--gold); color: #fff; }
.segmented a.selected { background: linear-gradient(180deg, #4a3a22, #33281a); color: var(--gold-bright); border-color: var(--gold); }
.segmented a.seg-own.selected { color: var(--own); background: var(--own-soft); border-color: var(--own); }
.segmented a.seg-maybe.selected { color: var(--maybe); background: var(--maybe-soft); border-color: var(--maybe); }
.segmented a.seg-nope.selected { color: var(--nope); background: var(--nope-soft); border-color: var(--nope); }
.sort-pick { display: inline-flex !important; flex-direction: row !important; align-items: center; gap: 8px !important; margin-left: auto !important; color: var(--muted); text-transform: none !important; letter-spacing: 0 !important; }
.sort-pick select { width: auto !important; min-width: 132px !important; height: 40px; border-radius: 8px !important; font-size: 14.5px !important; }
.reset { color: var(--gold); font-size: 14px; }
.list-meta { border-bottom: 1px solid var(--line); color: var(--muted); align-items: center; padding-bottom: 12px; }
.list-meta .toolbar-actions { display: inline-flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.item-count { color: var(--ink-2); }
.notice { background: var(--own-soft); color: var(--own); border: 1px solid rgba(143,196,160,.3); border-radius: 8px; }

/* Background on Collection: folded away once written */
.background-wrap { margin: 16px 0 6px; border: 1px solid var(--line); border-radius: 10px; background: rgba(0,0,0,.18); }
.background-wrap > summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 14px; padding: 12px 16px; min-width: 0; }
.background-wrap > summary::-webkit-details-marker { display: none; }
.background-wrap > summary::after { content: "⌄"; margin-left: auto; color: var(--muted); transition: transform .15s; }
.background-wrap[open] > summary::after { transform: rotate(180deg); }
.bg-label { flex: none; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); font-weight: 500; }
.bg-preview { color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.background-wrap[open] .bg-preview { display: none; }
.background-wrap .background-box { margin: 0; border: 0; background: none; padding: 0 16px 14px; }
.background-box textarea, .background-box textarea:focus { background: rgba(0,0,0,.25); border: 1px solid var(--line); color: var(--ink); outline: none; }
.background-box textarea:focus { border-color: var(--gold); }

/* ---------- Form controls ---------- */
input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea { background: #13110f; color: var(--ink); border: 1px solid var(--line-strong); border-radius: 8px; }
input::placeholder, textarea::placeholder { color: #6f675b; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(201,163,92,.15); }
select { color-scheme: dark; }
option { background: #1a1612; color: var(--ink); }
input[type=checkbox], input[type=radio] { accent-color: var(--gold); }
label { color: var(--ink-2); font-weight: 500; }
.button, .nav-actions .button { background: linear-gradient(180deg, #e6c67d, #c9a35c 55%, #a7823f); color: #1a1208; border: 1px solid #b8924d; border-radius: 999px; font-weight: 600; letter-spacing: .02em; box-shadow: inset 0 1px 0 rgba(255,255,255,.4); }
.button:hover { background: linear-gradient(180deg, #f2d690, #d4ae66 55%, #b08a45); color: #1a1208; }
.button-outline { background: transparent; color: var(--gold-bright); border: 1px solid var(--gold); border-radius: 999px; }
.button-outline:hover { background: var(--gold-soft); }
.danger-button { background: linear-gradient(180deg, #b84a58, #8e2d3a); border-color: #8e2d3a; color: #fff; }
.danger-button:hover { background: #a33a48; color: #fff; }
.link-button, .clear-rating, .dp-undo { color: var(--muted); }
code { background: #13110f; border-color: var(--line); color: var(--gold-bright); }
.error-note { background: var(--danger-soft); color: var(--danger-dark); border-radius: 8px; }

/* ---------- Status pills ---------- */
.pill { background: var(--want-soft); color: var(--want); border: 1px solid rgba(159,183,224,.35); font-weight: 500; letter-spacing: .04em; font-size: 13.5px; padding: 4px 14px; }
.pill.own { background: var(--own-soft); color: var(--own); border-color: rgba(143,196,160,.4); }
.pill.maybe { background: var(--maybe-soft); color: var(--maybe); border-color: rgba(230,182,94,.4); }
.pill.nope { background: var(--nope-soft); color: var(--nope); border-color: rgba(169,163,154,.35); }
.status-options { padding: 8px; }
.status-options .pill.is-current { outline: 1px solid currentColor; }

/* ---------- Stars ---------- */
.stars-bg { color: #3d362e; }
.stars-fill { color: var(--gold-bright); text-shadow: 0 0 10px rgba(232,198,126,.25); }
.stars.ai .stars-fill, .rating-tile .stars.ai .stars-fill, .card-rating-row:not(form) .stars-fill, .detail-ratings .stars.ai .stars-fill { color: #b9a98b; text-shadow: none; }

/* ---------- List view: compact entries that open on click ---------- */
.item-list { margin-top: 6px; }
.item-row, .item-row.is-owned { display: block; padding: 0; background: transparent; border: 0; border-bottom: 1px solid var(--line); }
.item-row:target { animation: none; }
.entry-summary { display: grid; grid-template-columns: 54px 84px minmax(0, 1fr) 150px 150px auto 40px; align-items: center; gap: 18px; padding: 16px 10px 16px 4px; cursor: pointer; border-radius: 10px; transition: background .15s; }
.entry-summary:hover { background: rgba(201,163,92,.05); }
.item-row.is-open .entry-summary { background: rgba(201,163,92,.07); }
.item-row.is-owned .entry-summary { background: linear-gradient(90deg, rgba(110,170,130,.09), transparent 60%); }
.rank-col { flex-direction: row; justify-content: center; gap: 6px; }
.rank-num { font-family: var(--serif); font-style: normal; font-weight: 600; font-size: 32px; color: var(--gold-bright); text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.owned-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--own); color: var(--own); font-size: 15px; }
.drag-handle { fill: #6d6457; }
.drag-handle:hover { fill: var(--gold); }
.entry-thumb { width: 84px; height: 84px; border-radius: 10px; overflow: hidden; background: #0f0d0b; border: 1px solid var(--line); box-shadow: 0 6px 16px rgba(0,0,0,.45); }
.entry-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.no-thumb { display: grid; place-items: center; height: 100%; font-family: var(--serif); font-size: 34px; color: var(--gold-deep); }
.entry-title { min-width: 0; }
.entry-title h3 { margin: 0 0 3px; font-size: 19px; line-height: 1.15; overflow-wrap: anywhere; }
.entry-sub { margin: 0 0 4px; color: var(--ink-2); font-size: 14.5px; line-height: 1.35; overflow-wrap: anywhere; }
.card-sub { display: block; margin-top: 3px; font-family: var(--sans); font-size: 14px; font-weight: 400; color: var(--ink-2); line-height: 1.35; }
.entry-title .price { margin: 0; color: var(--gold); font-size: 15px; letter-spacing: .03em; }
.entry-score { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.score-label { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.score-count { letter-spacing: .04em; text-transform: none; }
.score-line { display: flex; align-items: center; gap: 8px; }
.score-line strong { font-family: var(--serif); font-size: 20px; font-weight: 600; line-height: 1; min-width: 30px; }
.score-line .stars { font-size: 14px; letter-spacing: 1px; margin: 0; }
.entry-score.is-ai strong { color: #d8cab0; }
.entry-toggle { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; color: var(--gold); cursor: pointer; transition: transform .2s, background .15s; }
.entry-toggle:hover { background: var(--gold-soft); }
.item-row.is-open .entry-toggle { transform: rotate(180deg); background: var(--gold-soft); }

.entry-body { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 30px; padding: 10px 10px 30px 76px; animation: entry-open .22s ease-out; }
.entry-body .info, .entry-body .photo-col { grid-column: auto; min-width: 0; }
@keyframes entry-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.entry-body .photo { aspect-ratio: 1; border: 1px solid var(--line); border-radius: 12px; background: #0f0d0b; box-shadow: 0 16px 36px rgba(0,0,0,.5); }
.photo-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 10px; }
.photo-meta .photo-source { margin: 0; }
.photos-link { color: var(--gold); margin: 0; }
.thumbs { gap: 8px; margin-top: 10px; }
.thumb { width: 58px; height: 58px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.thumb.is-active { border: 2px solid var(--gold); }
.no-photo { color: var(--muted); }
.no-photo a { color: var(--gold); }
.source-self { color: var(--own); } .source-stock { color: var(--want); } .source-ai { color: #c9a5e6; }

.info .details { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px 20px; padding: 0 0 16px; margin: 0 0 18px; border-bottom: 1px solid var(--line); }
.details dt, .detail-specs dt { color: var(--muted); font-size: 10.5px; letter-spacing: .18em; }
.details dd { font-family: var(--serif); font-size: 15.5px; font-weight: 500; color: var(--ink); }
.ratings { gap: 12px; }
.rating-tile, .item-row.is-owned .rating-tile { background: rgba(0,0,0,.25); border: 1px solid var(--line); border-radius: 12px; min-height: 0; padding: 14px 16px; gap: 6px; }
.rating-label { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.rating-value strong { font-family: var(--serif); font-size: 34px; font-weight: 600; color: var(--ink); }
.rating-tile .stars { font-size: 20px; }
.out-of { color: var(--muted); }
.pros-cons { gap: 12px; margin-top: 18px; }
.why, .item-row.is-owned .why, .pros-cons .why-cons, .pros-cons .why-notes { background: rgba(0,0,0,.22); border: 1px solid var(--line); border-left: 3px solid var(--own); border-radius: 10px; padding: 12px 16px; }
.pros-cons .why-cons { border-left-color: var(--danger); }
.pros-cons .why-notes { border-left-color: var(--gold); }
.why-form label { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); font-weight: 500; margin-bottom: 6px; }
.why-pros label::before, .why-cons label::before { display: inline-grid; place-items: center; width: 16px; height: 16px; margin-right: 8px; border-radius: 50%; font-size: 12px; letter-spacing: 0; vertical-align: -2px; }
.why-pros label::before { content: "+"; background: var(--own); color: #0f1a12; }
.why-cons label::before { content: "–"; background: var(--danger); color: #1a0d0f; }
.why-form textarea { color: var(--ink); font-size: 15px; line-height: 1.55; }
.why-form:focus-within { background: rgba(0,0,0,.4); box-shadow: 0 0 0 1px var(--gold) inset; }
.save-state { color: var(--own); }
.ai-notes { margin-top: 16px; background: linear-gradient(180deg, rgba(201,163,92,.08), rgba(201,163,92,.02)); border: 1px solid rgba(201,163,92,.28); border-radius: 12px; padding: 14px 16px; }
.ai-notes-title { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-bright); font-weight: 500; font-family: var(--sans); }
.ai-notes p.muted { margin: 0; }
.ai-feedback { margin: 0; gap: 10px; }
.ai-feedback-row { background: none; border: 0; border-left: 2px solid rgba(201,163,92,.45); padding: 2px 0 2px 12px; }
.ai-feedback dt { font-size: 13px; color: var(--gold); font-weight: 500; letter-spacing: .03em; }
.ai-feedback dd { color: var(--ink-2); font-size: 14.5px; line-height: 1.6; }
.all-insights > summary { color: var(--muted); }
.insights li { border-color: var(--line); border-radius: 8px; background: rgba(0,0,0,.2); }
.insight-text, .conv-full { color: var(--ink-2); }
.insight-score, .more { color: var(--gold); }
.insight-rank { background: var(--soft); color: var(--ink); }
.item-links { align-items: center; gap: 20px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; }
.item-links a { color: var(--ink-2); text-decoration: none; }
.item-links a:hover { color: var(--gold-bright); }
.item-links .button-outline { color: var(--gold-bright); }
.item-links .arrows { display: inline-flex; gap: 6px; }
.item-links .arrows button { border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink-2); padding: 3px 12px; font-size: 13px; }
.item-links .arrows button:hover { color: var(--gold-bright); border-color: var(--gold); }
.item-links .danger { margin-left: auto; }
.owned-head .section-label, .section-label { color: var(--gold); letter-spacing: .24em; font-weight: 500; }
.group-title { font-family: var(--serif); font-weight: 600; }

/* ---------- Grid view ---------- */
.item-grid, .is-wide .item-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 26px 22px; }
.grid-card, .grid-card.is-owned { background: linear-gradient(180deg, #221d18, #1a1612); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 34px rgba(0,0,0,.45); transition: transform .2s, border-color .2s; }
.grid-card:hover { transform: translateY(-3px); border-color: rgba(201,163,92,.5); }
.grid-card.is-owned { border-color: rgba(143,196,160,.35); }
.card-photo { border-radius: 14px 14px 0 0; background: #0f0d0b; }
.card-rank, .is-wide .card-rank { background: rgba(12,10,8,.78); color: var(--gold-bright); border: 1px solid var(--gold); font-family: var(--serif); font-style: normal; font-weight: 600; backdrop-filter: blur(4px); }
.card-drag, .card-source { background: rgba(12,10,8,.78); color: var(--ink-2); fill: var(--ink-2); }
.grid-card .card-body, .is-wide .card-body { color: var(--ink-2); }
.card-head h3, .is-wide .card-head h3 { font-family: var(--serif); font-size: 17px; font-weight: 600; color: var(--ink); line-height: 1.15; }
.card-head h3 a:hover { color: var(--gold-bright); }
.grid-card .price, .is-wide .grid-card .price { color: var(--gold); }
.card-ratings, .grid-card.is-owned .card-ratings { border-top-color: var(--line); }
.card-rating-label { color: var(--muted); font-size: 12px !important; letter-spacing: .14em; text-transform: uppercase; width: 104px; }
.card-score { color: var(--ink); font-family: var(--serif); font-size: 15px; }
.card-move button { background: transparent; border-color: var(--line-strong); color: var(--ink-2); }

/* ---------- Table view ---------- */
.sheet-wrap { background: #15120f; border-color: var(--line-strong); border-radius: 10px; }
.sheet th, .sheet td { border-color: rgba(214,180,120,.1); }
.sheet thead th, .sheet thead th.col-rank, .sheet thead th.col-name { background: #211c17; color: var(--gold); border-bottom-color: var(--line-strong); letter-spacing: .04em; }
.sheet .col-rank, .sheet .col-name { background: #15120f; }
.sheet tbody tr:hover td, .sheet tbody tr:hover td.col-rank, .sheet tbody tr:hover td.col-name { background: #1d1914; }
.sheet tr.is-owned td, .sheet tr.is-owned td.col-rank, .sheet tr.is-owned td.col-name { background: #16201a; }
.sheet td [data-cell]:focus, .sheet td [data-cell]:focus-visible, .sheet td.col-name [data-cell]:focus, .sheet input:focus, .sheet select:focus, .sheet textarea:focus { background: #241e17; outline-color: var(--gold); }
.sheet .sheet-readonly { background: #13110f; }
.sheet-rank { color: var(--gold-bright); font-family: var(--serif); font-size: 15px; }
.sheet td.is-saving { background: #2a2416 !important; }
@keyframes cell-saved { from { background: rgba(110,170,130,.3); } to { background: transparent; } }
.sheet .col-name { box-shadow: inset -1px 0 0 var(--line-strong), 6px 0 8px -6px rgba(0,0,0,.6); }
.photo-add { border-color: var(--line-strong); }
.sheet td [data-cell], .sheet td input[data-cell], .sheet td select[data-cell], .sheet td textarea[data-cell] { background: transparent !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.sheet td [data-cell]:focus { background: #241e17 !important; outline: 2px solid var(--gold); outline-offset: -2px; }

/* ---------- AI Insights panel (leather card on the right) ---------- */
body.lux.has-chat main, body.lux.has-chat:not(.is-wide) main { max-width: none; }
.with-chat { grid-template-columns: minmax(0, 1fr) 360px; gap: 30px; }
.chat-panel { top: 20px; margin-top: 0; height: calc(100vh - 40px); background: var(--grain) 0 0 / 180px, linear-gradient(180deg, #1a1511, #110e0b); background-blend-mode: soft-light, normal; border: 1px solid var(--line-strong); border-radius: 16px; box-shadow: 0 24px 50px rgba(0,0,0,.55); }
.chat-head { padding: 20px 20px 10px; }
.chat-head h2 { font-family: var(--serif); font-size: 28px; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.chat-head h2::before { content: "✦"; color: var(--gold-bright); font-size: 22px; }
.chat-head p { color: var(--muted); line-height: 1.5; }
.chat-head p strong { color: var(--ink-2); }
.chat-model { border-bottom-color: var(--line); padding: 4px 20px 14px; color: var(--muted); }
.chat-model select { background: #0f0d0b; border-radius: 8px; padding: 8px 10px; }
.chat-msg.is-user { background: linear-gradient(180deg, #4b3b22, #3a2e1b); color: var(--ink); border: 1px solid rgba(201,163,92,.35); }
.chat-msg.is-ai { background: rgba(0,0,0,.3); border-color: var(--line); color: var(--ink-2); }
.chat-msg.is-off-topic { background: var(--maybe-soft); border-color: rgba(230,182,94,.35); color: var(--maybe); }
.chat-by { color: var(--muted); }
.proposal { background: rgba(0,0,0,.3); border-color: var(--line); border-left-color: var(--gold); color: var(--ink); }
.chat-compose { background: transparent; border-top-color: var(--line); padding: 12px 16px 14px; }
.chat-input textarea { background: #0f0d0b; border-radius: 12px; }
.chat-attach { background: #0f0d0b; border-color: var(--line-strong); border-radius: 10px; color: var(--muted); }
.chat-attach:hover { color: var(--gold-bright); border-color: var(--gold); }
.chat-input .button { border-radius: 12px; }
.chat-panel > .notice { margin: 12px 16px 16px; background: rgba(201,163,92,.08); border-color: rgba(201,163,92,.3); color: var(--ink-2); font-size: 14px; }
.chat-open { background: linear-gradient(180deg, #e6c67d, #c9a35c 55%, #a7823f) !important; color: #1a1208 !important; }
.pending-photo button { background: var(--gold); color: #1a1208; }

/* ---------- Item details page ---------- */
.detail-main { background: #0f0d0b; border-color: var(--line); border-radius: 14px; }
.detail-main img, .detail-main .slide img { background: #0f0d0b; }
.detail-info h1 { font-size: clamp(26px, 2.6vw, 34px); }
.detail-price { color: var(--gold); font-family: var(--serif); font-size: 22px; }
.detail-ratings > div { background: rgba(0,0,0,.25); border: 1px solid var(--line); border-radius: 12px; }
.detail-ratings > div > span:first-child { color: var(--muted); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }
.detail-ratings strong { font-family: var(--serif); font-size: 24px; }
.detail-specs { border-color: var(--line); }
.detail-specs dd { font-family: var(--serif); font-size: 16px; font-weight: 500; }
.detail-note { background: rgba(0,0,0,.22); border: 1px solid var(--line); border-left: 3px solid var(--own); border-radius: 10px; }
.detail-note.note-cons { border-left-color: var(--danger); } .detail-note.note-notes { border-left-color: var(--gold); } .detail-note.note-ai { border-left-color: var(--gold); background: rgba(201,163,92,.06); }
.detail-note h2 { font-family: var(--sans); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); font-weight: 500; }
.detail-note p { color: var(--ink-2); }
.detail-insights { border-top-color: var(--line); }
.detail-steps a, .detail-photos .text-link, .back:hover { color: var(--gold); }
.detail-thumbs .thumb { border-color: var(--line); }

/* ---------- Forms and other pages ---------- */
.item-form, .dp-row, .dp-price, .import-items li, .review-item, .conversations, .conv-box, .photo-tile, .bulk-row, .bulk-card, .refresh-item, .category-list li, .import-link, .ai-import, .start-panel, .link-photo { background: rgba(0,0,0,.2); border-color: var(--line); border-radius: 12px; }
.item-form.highlight, .start-panel { border-color: var(--gold); }
.ai-import, .prompt-box, .ai-said { border-left-color: var(--gold); }
.prompt-box, .who-said, .conv-full { background: rgba(0,0,0,.25); }
.prompt-box textarea, .ai-import textarea, .ai-import-body textarea { background: #13110f; }
.dp-main .dp-label { background: rgba(255,255,255,.04); }
.dp-main .dp-label:focus { background: #13110f; }
.dp-kinds, .seg span { border-color: var(--line-strong); }
.seg input:checked + span { background: var(--gold-soft); color: var(--gold-bright); }
.chips { border-color: var(--line-strong); }
.chip { background: var(--soft); border-color: var(--line); }
.add-dp, .drop-zone, .drop-area { background: transparent; border-color: var(--line-strong); color: var(--gold); }
.add-dp:hover, .drop-area.is-over, .drop-zone.is-over, .bulk-row.is-target { background: var(--gold-soft); border-color: var(--gold); }
.bulk-tray, .drop-area { background: rgba(0,0,0,.2); }
.switch-ui { background: #3a332b; }
.switch input:checked + .switch-ui { background: var(--gold); }
.step, .ai-badge { background: var(--gold); color: #1a1208; }
.tag { background: var(--gold-soft); color: var(--gold-bright); }
.tag-match { background: var(--own-soft); color: var(--own); }
.empty { border-color: var(--line-strong); border-radius: 14px; background: rgba(0,0,0,.15); }
.empty-icon { background: var(--gold-soft); color: var(--gold-bright); }
.empty h2 { font-family: var(--serif); font-weight: 600; }
.text-link, .links a, .row-actions a, .prompt-details summary, .conv-text summary, .detail-steps a, .sheet td.col-edit a, .sheet-link a { color: var(--gold); }
.category-list h2, .category-list h3, .topic-group-head h2 { font-family: var(--serif); font-weight: 600; }
.refresh-actions { background: var(--paper); border-top-color: var(--line); }
.refresh-actions .text-action { color: var(--ink); }
.refresh-progress .bar { background: var(--soft); }
.refresh-progress .bar span { background: var(--gold); }
.refresh-item.has-changes { border-left-color: var(--gold); }
.refresh-item.is-same { background: rgba(0,0,0,.12); }
.refresh-changes td, .refresh-changes th { border-top-color: var(--line); }
.refresh-changes .old { text-decoration-color: rgba(255,255,255,.3); }
.link-status { background: var(--own-soft); color: var(--own); }
@keyframes filled-flash { from { background: rgba(201,163,92,.25); } to { background: transparent; } }
.lightbox img { background: #0f0d0b; }
.form-wrap, .refresh-wrap, .bulk-page { padding-top: 0; }
.login-wrap { margin: 0 auto; }

/* ---------- Tablet and phone ---------- */
@media (max-width: 1100px) { .with-chat { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) {
  .shell.has-nav { grid-template-columns: minmax(0, 1fr); }
  .leather-nav { position: static; height: auto; padding: 8px 0; flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .leather-nav::before { display: none; }
  .leather-nav ul { display: flex; padding: 0 12px; gap: 2px; }
  .leather-nav a { padding: 9px 12px; white-space: nowrap; font-size: 14px; gap: 8px; }
  .leather-nav a.active::before { display: none; }
  .nav-foot { border-top: 0; border-left: 1px solid var(--line); margin: 0 !important; padding: 0 0 0 8px !important; }
  body.lux main, body.lux.is-wide main { padding: 20px 16px 48px 0; }
  .entry-body { grid-template-columns: minmax(0, 1fr); padding-left: 10px; }
  .entry-body .photo { aspect-ratio: 4 / 3; }
}
@media (max-width: 680px) {
  .lux-header, .lux-header-inner { min-height: 96px; }
  .lux-header-inner { padding: 14px 16px; }
  .header-scene { display: none; }
  .brand { gap: 12px; }
  .brand-mark { width: 42px; height: 42px; font-size: 18px; }
  .brand-name { font-size: 32px; }
  .brand-tagline { font-size: 8px; letter-spacing: .14em; }
  .user-name { display: none; }
  .avatar { width: 38px; height: 38px; font-size: 16px; }
  body.lux main, body.lux.is-wide main { padding: 16px 12px 40px 0; }
  .paper { margin-left: 22px; padding: 22px 14px 28px 30px; border-radius: 4px 10px 10px 4px; }
  .paper::before { left: -22px; width: 36px; background-size: 36px 44px; }
  .paper::after { left: 14px; }
  .page-head { align-items: center; }
  .page-title { font-size: 30px; }
  .plus-menu > summary.plus-button { padding: 0 14px; height: 42px; }
  .categories { gap: 20px; }
  .categories a { font-size: 16px; }
  .sort-pick { margin-left: 0 !important; }
  .list-meta { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* The entries follow the notebook page's own width (it shares the window with the sidebar and the AI panel) */
@container page (max-width: 1000px) {
  .entry-summary { grid-template-columns: 46px 72px minmax(0, 1fr) 96px 96px auto 36px; gap: 12px; }
  .entry-thumb { width: 72px; height: 72px; }
  .score-line .stars { display: none; }
  .entry-body { grid-template-columns: minmax(0, 250px) minmax(0, 1fr); gap: 22px; padding-left: 58px; }
  .rank-num { font-size: 28px; }
  .entry-title h3 { font-size: 17.5px; }
}
@container page (max-width: 620px) {
  .entry-body { grid-template-columns: minmax(0, 1fr); padding-left: 0; }
  .entry-body .photo-col { max-width: 420px; }
}
@container page (max-width: 600px) {
  .entry-summary { grid-template-columns: 30px 60px minmax(0, 1fr) auto; grid-template-areas: "rank thumb title toggle" "rank thumb scores status"; gap: 6px 12px; padding: 12px 2px; }
  .entry-summary .rank-col { grid-area: rank; flex-direction: column; }
  .entry-thumb { grid-area: thumb; width: 60px; height: 60px; }
  .entry-title { grid-area: title; }
  .entry-title h3 { font-size: 16px; }
  .entry-score { grid-area: scores; flex-direction: row; align-items: baseline; gap: 6px; }
  .entry-score.is-ai { display: none; }
  .entry-score .score-label { font-size: 9.5px; letter-spacing: .12em; }
  .score-line strong { font-size: 18px; }
  .entry-summary .status-menu { grid-area: status; justify-self: end; }
  .entry-toggle { grid-area: toggle; justify-self: end; width: 30px; height: 30px; }
  .rank-num { font-size: 24px; }
  .entry-body { padding: 4px 0 22px; gap: 18px; }
}

/* ---------- Search, public pages, Public switch ---------- */
.header-right { display: flex; align-items: center; gap: 22px; min-width: 0; }
.header-search { display: flex; align-items: center; gap: 10px; width: clamp(200px, 22vw, 330px); height: 46px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(214,180,120,.28); background: rgba(8,7,6,.62); backdrop-filter: blur(6px); color: var(--muted); transition: border-color .15s; }
.header-search:focus-within { border-color: var(--gold); color: var(--gold-bright); }
.header-search input, .header-search input:focus { flex: 1; min-width: 0; border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 0 !important; color: var(--ink); font-size: 15px; }
.header-search input::-webkit-search-cancel-button { filter: invert(.7); }
.header-divider { width: 1px; height: 34px; background: rgba(214,180,120,.25); }
.search-page-form { display: flex; align-items: center; gap: 12px; margin: 18px 0 8px; padding: 6px 6px 6px 18px; border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(0,0,0,.28); color: var(--muted); }
.search-page-form:focus-within { border-color: var(--gold); }
.search-page-form input, .search-page-form input:focus { flex: 1; min-width: 0; border: 0 !important; background: transparent !important; box-shadow: none !important; font-size: 17px; padding: 8px 0 !important; }
.public-note { margin: 10px 0 22px; }
.result-group { margin-top: 28px; }
.result-head { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin: 0 0 10px; }
.result-head a { color: inherit; text-decoration: none; }
.result-head .topic-icon { color: var(--gold); }
.result-head .count { font-size: 12px; letter-spacing: 0; color: var(--muted); background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 999px; padding: 0 9px; }
.result-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.result { display: flex; align-items: center; gap: 16px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(0,0,0,.2); text-decoration: none; color: var(--ink); transition: border-color .15s, background .15s; }
.result:hover { border-color: rgba(201,163,92,.5); background: rgba(201,163,92,.06); }
.result-thumb { flex: none; width: 58px; height: 58px; border-radius: 9px; overflow: hidden; background: #0f0d0b; border: 1px solid var(--line); }
.result-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.result-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--gold); }
.result-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.result-main strong { font-size: 16.5px; font-weight: 600; overflow-wrap: anywhere; }
.result-sub { color: var(--ink-2); font-size: 14px; }
.result-meta { color: var(--muted); font-size: 13.5px; }
.result-price { color: var(--gold); }
.result-go { color: var(--gold); font-size: 24px; line-height: 1; }
.avatar.small { width: 44px; height: 44px; font-size: 17px; flex: none; }
.avatar.big { width: 72px; height: 72px; font-size: 30px; flex: none; }
.person-id { display: flex; align-items: center; gap: 20px; }
.page-eyebrow a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(201,163,92,.35); }
.page-eyebrow a:hover { color: var(--gold-bright); }
.private-badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; border: 1px solid rgba(169,163,154,.35); background: rgba(255,255,255,.04); color: var(--nope); font-size: 11.5px; font-weight: 500; letter-spacing: .04em; vertical-align: middle; white-space: nowrap; }
.entry-title h3 .private-badge { margin-left: 6px; font-size: 11px; position: relative; top: -2px; }
.categories a .lock-icon { color: var(--muted); vertical-align: -1px; }
.public-row { margin-top: 18px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(0,0,0,.18); }
.cat-section .public-row { margin-top: 0; }
.public-switch { align-items: flex-start; }
.public-switch .switch-ui { margin-top: 2px; }
.public-text { display: flex; flex-direction: column; gap: 2px; font-weight: 400; }
.public-text strong { color: var(--ink); font-weight: 600; }
.public-text small { color: var(--muted); }
.entry-link { text-decoration: none; color: inherit; grid-template-columns: 54px 84px minmax(0, 1fr) 150px 150px auto 40px; }
.public-row-item .pill { white-space: nowrap; }
.also-in { margin-top: 30px; padding: 16px 18px; border: 1px solid rgba(201,163,92,.28); border-radius: 12px; background: rgba(201,163,92,.05); }
.also-in h2 { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-bright); margin: 0 0 4px; font-weight: 600; }
.also-in ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.also-in a { color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(201,163,92,.35); }
.also-in a:hover { color: var(--gold-bright); }
.also-rating { margin-left: 10px; color: var(--gold); font-size: 13px; }
.detail-actions .private-badge { align-self: center; }
@media (max-width: 1100px) { .header-search { width: 220px; } }
@media (max-width: 900px) { .header-divider { display: none; } .header-right { gap: 12px; } .header-search { width: 46px; padding: 0; justify-content: center; } .header-search input { display: none; } .header-search:focus-within { width: 200px; padding: 0 14px; } .header-search:focus-within input { display: block; } }
@media (max-width: 680px) { .header-search { height: 38px; width: 38px; } }
@container page (max-width: 1000px) { .entry-link { grid-template-columns: 46px 72px minmax(0, 1fr) 96px 96px auto 36px; } }
@container page (max-width: 600px) { .entry-link { grid-template-columns: 30px 60px minmax(0, 1fr) auto; } .entry-link .pill { grid-area: status; justify-self: end; } }

/* ---------- Photos first (David, Oct 25): images are the main focus ---------- */
.entry-summary, .entry-link { grid-template-columns: 50px 190px minmax(0, 1fr) 140px 140px auto 40px; gap: 22px; padding-top: 18px; padding-bottom: 18px; }
.entry-thumb { width: 190px; height: 190px; border-radius: 14px; box-shadow: 0 14px 30px rgba(0,0,0,.55); }
.entry-title h3 { font-size: 21px; }
.entry-body { grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 34px; padding-left: 72px; }
.entry-body .photo { aspect-ratio: 1; border-radius: 16px; }
.entry-body .thumbs .thumb { width: 72px; height: 72px; }
.item-grid, .is-wide .item-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px 26px; }
.card-photo { aspect-ratio: 4 / 5; }
.result-thumb { width: 104px; height: 104px; border-radius: 12px; }
.detail-grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 40px; }
.detail-main { aspect-ratio: 1; }
.detail-thumbs .thumb { width: 84px; height: 84px; }
@container page (max-width: 1000px) {
  .entry-summary, .entry-link { grid-template-columns: 40px 150px minmax(0, 1fr) 92px 92px auto 34px; gap: 14px; }
  .entry-thumb { width: 150px; height: 150px; }
  .entry-body { grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 24px; padding-left: 54px; }
}
@container page (max-width: 760px) {
  .entry-summary, .entry-link { grid-template-columns: 34px 130px minmax(0, 1fr) auto auto 32px; }
  .entry-summary .entry-score.is-ai, .entry-link .entry-score.is-ai { display: none; }
  .entry-thumb { width: 130px; height: 130px; }
  .entry-body { grid-template-columns: minmax(0, 1fr); padding-left: 0; }
  .entry-body .photo-col { max-width: none; }
}
@container page (max-width: 600px) {
  .entry-summary, .entry-link { grid-template-columns: 26px 104px minmax(0, 1fr) auto; grid-template-areas: "rank thumb title toggle" "rank thumb scores status"; gap: 6px 12px; }
  .entry-thumb { width: 104px; height: 104px; }
  .entry-body .photo { aspect-ratio: 1; }
}
@media (max-width: 860px) { .detail-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .result-thumb { width: 76px; height: 76px; } .item-grid, .is-wide .item-grid { grid-template-columns: 1fr; } }

/* ---------- Photo cards (David, Oct 25): big photo, with My Pros, My Cons and the AI Take on the row ---------- */
.entry-summary, .entry-link { display: grid; grid-template-columns: 44px 340px minmax(0, 1fr); grid-template-areas: "rank thumb main"; align-items: start; gap: 26px; padding: 22px 12px 22px 4px; }
.entry-summary > .rank-col { grid-area: rank; padding-top: 6px; flex-direction: column; }
.entry-summary > .entry-thumb { grid-area: thumb; width: 340px; height: 340px; border-radius: 16px; }
.entry-main { grid-area: main; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.entry-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.entry-head > * { grid-area: auto !important; }
.entry-head .entry-title { flex: 1 1 260px; min-width: 0; }
.entry-head .entry-title h3 { font-size: 23px; }
.entry-head .entry-score { flex: none; }
.entry-head .score-line .stars { display: inline-block !important; }
.entry-head .entry-score.is-ai { display: flex !important; }
.entry-head .status-menu, .entry-head .pill { flex: none; }
.entry-head .entry-toggle { flex: none; }
.entry-takes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.take { min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-left: 3px solid var(--own); border-radius: 10px; background: rgba(0,0,0,.24); }
.take-cons { border-left-color: var(--danger); }
.take-ai { border-left-color: var(--gold); background: linear-gradient(180deg, rgba(201,163,92,.09), rgba(201,163,92,.02)); }
.take-label { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; font-size: 10.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); }
.take-ai .take-label { color: var(--gold-bright); }
.take p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink); white-space: pre-line; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.take-empty { color: var(--muted); font-style: italic; }
.item-row.is-open .entry-takes { display: none; }
.entry-body { grid-template-columns: minmax(0, 620px) minmax(0, 1fr); padding-left: 70px; }
@container page (max-width: 1100px) {
  .entry-summary, .entry-link { grid-template-columns: 38px 260px minmax(0, 1fr); gap: 20px; }
  .entry-summary > .entry-thumb { width: 260px; height: 260px; }
  .entry-takes { grid-template-columns: 1fr 1fr; }
  .take-ai { grid-column: 1 / -1; }
  .entry-body { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); padding-left: 0; }
}
@container page (max-width: 820px) {
  .entry-summary, .entry-link { grid-template-columns: 30px minmax(0, 1fr); grid-template-areas: "rank thumb" "rank main"; gap: 14px; }
  .entry-summary > .entry-thumb { width: 100%; height: auto; aspect-ratio: 4 / 3; max-width: 640px; }
  .entry-takes { grid-template-columns: 1fr; }
  .entry-body { grid-template-columns: minmax(0, 1fr); }
}
@container page (max-width: 600px) {
  .entry-summary, .entry-link { grid-template-columns: 24px minmax(0, 1fr); grid-template-areas: "rank thumb" "rank main"; padding: 14px 0; }
  .entry-summary > .entry-thumb { aspect-ratio: 1; }
  .entry-head { gap: 8px 14px; }
  .entry-head .entry-title { flex-basis: 100%; }
  .entry-head .entry-title h3 { font-size: 18px; }
  .entry-head .entry-score .score-label { font-size: 9.5px; }
  .take p { -webkit-line-clamp: 4; }
}

/* Background on Collection: more pronounced */
.background-wrap { margin: 20px 0 14px; border: 1px solid rgba(201,163,92,.42); border-left: 4px solid var(--gold); border-radius: 12px; background: linear-gradient(100deg, rgba(201,163,92,.13), rgba(201,163,92,.03) 70%); box-shadow: 0 10px 26px rgba(0,0,0,.35); }
.background-wrap > summary { align-items: flex-start; padding: 16px 20px; gap: 18px; }
.background-wrap .bg-label { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .2em; color: var(--gold-bright); padding-top: 2px; }
.background-wrap .bg-label::before { content: ""; width: 18px; height: 18px; flex: none; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 3.5h9l3 3V16.5H4z' fill='none' stroke='black' stroke-width='1.6' stroke-linejoin='round'/%3E%3Cpath d='M7 9h6M7 12h6M7 6h3' stroke='black' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 3.5h9l3 3V16.5H4z' fill='none' stroke='black' stroke-width='1.6' stroke-linejoin='round'/%3E%3Cpath d='M7 9h6M7 12h6M7 6h3' stroke='black' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.background-wrap .bg-preview { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink); font-size: 15.5px; line-height: 1.55; }
.background-wrap > summary::after { color: var(--gold); font-size: 18px; }
.background-wrap .background-box { padding: 0 20px 18px; }
.background-wrap .background-box textarea { font-size: 15.5px; line-height: 1.6; background: rgba(0,0,0,.3); }
@container page (max-width: 600px) { .background-wrap > summary { flex-wrap: wrap; } .background-wrap .bg-preview { flex-basis: 100%; } }
/* Opened: the photo slider below takes over from the row photo, so it isn't shown twice */
.item-row.is-open .entry-summary { grid-template-columns: 44px minmax(0, 1fr); grid-template-areas: "rank main"; }
.item-row.is-open .entry-summary > .entry-thumb { display: none; }
@container page (max-width: 820px) { .item-row.is-open .entry-summary { grid-template-columns: 30px minmax(0, 1fr); grid-template-areas: "rank main"; } }

/* Tagline (David, Oct 25): a full sentence now, so normal case and gentle spacing */
.brand-tagline { text-transform: none; letter-spacing: .06em; font-size: 14.5px; line-height: 1.45; color: #d4c7b0; white-space: normal; max-width: 720px; text-wrap: balance; }
@media (max-width: 1100px) { .brand-tagline { font-size: 13px; max-width: 420px; } }
@media (max-width: 680px) { .brand-tagline { font-size: 11px; letter-spacing: .02em; max-width: 230px; } }

/* ---------- Votes and discussion ---------- */
.social-bar { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.rate-form { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin: 0; padding: 5px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(0,0,0,.25); }
.rate-form .stars { font-size: 18px; letter-spacing: 1px; margin: 0; }
.rate-form .stars-fill.is-preview { color: #fff3cf; }
.rate-label { color: var(--muted); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.rate-average { font-weight: 600; font-size: 15px; color: var(--ink); }
.rate-count, .rate-mine { color: var(--muted); font-size: 13px; }
.rate-mine { padding-left: 8px; border-left: 1px solid var(--line-strong); }
.rate-clear { border: 0; background: none; padding: 0; color: var(--muted); font: inherit; font-size: 12px; text-decoration: underline; cursor: pointer; }
.rate-clear:hover { color: var(--gold-bright); }
.comments-link { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-2); text-decoration: none; font-size: 14.5px; padding: 6px 12px; border-radius: 999px; border: 1px solid transparent; }
.comments-link:hover { color: var(--gold-bright); border-color: var(--line-strong); }
.entry-link .item-title { color: var(--ink); text-decoration: none; }
.entry-link .item-title:hover { color: var(--gold-bright); text-decoration: none; }
a.entry-thumb { display: block; }
.discussion { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); }
.discussion-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.discussion-head h2 { margin: 0; font-size: 22px; }
.comment-list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 12px; }
.comment { display: flex; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(0,0,0,.2); }
.comment.is-owner { border-color: rgba(201,163,92,.35); background: rgba(201,163,92,.05); }
.comment-body { flex: 1; min-width: 0; }
.comment-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13.5px; margin-bottom: 4px; }
.comment-meta a { color: var(--ink); font-weight: 600; text-decoration: none; }
.comment-meta a:hover { color: var(--gold-bright); }
.owner-tag { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-bright); border: 1px solid rgba(201,163,92,.45); border-radius: 999px; padding: 0 8px; }
.comment-delete { margin: 0 0 0 auto; }
.comment-delete button { border: 0; background: none; color: var(--muted); font-size: 12.5px; cursor: pointer; text-decoration: underline; padding: 0; }
.comment-delete button:hover { color: var(--danger); }
.comment-body p { margin: 0; color: var(--ink); line-height: 1.55; overflow-wrap: anywhere; }
.comment-form { display: grid; gap: 10px; justify-items: end; }
.comment-form textarea { width: 100%; resize: vertical; min-height: 84px; line-height: 1.5; }
.discussion-empty { margin: 0 0 14px; }

/* ---------- Visual Collection (showcase.html): the ideal collection as a classic watch box ---------- */
.visual-btn { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px 0 16px; border-radius: 999px; border: 1px solid var(--gold); color: var(--gold-bright) !important; background: linear-gradient(180deg, rgba(201,163,92,.12), rgba(201,163,92,.04)); font-weight: 600; font-size: 15px; letter-spacing: .03em; text-decoration: none; white-space: nowrap; }
.visual-btn:hover { background: var(--gold-soft); color: #f6e2a8 !important; }
.visual-btn svg { flex: none; }
.showcase-page { container-type: inline-size; }
.sc-panel { position: relative; display: grid; gap: 18px 26px; align-items: center; margin: 18px 0 26px; padding: 22px 26px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--grain) 0 0 / 180px, linear-gradient(180deg, #1c1712, #110e0b); background-blend-mode: soft-light, normal; box-shadow: 0 18px 40px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.04); }
.sc-head { grid-template-columns: auto minmax(0, 1fr) auto minmax(180px, 280px); }
.sc-chest { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; color: #3a2610; background: radial-gradient(circle at 35% 30%, #f6e2a8, #c9a35c 55%, #7d5d2a); box-shadow: 0 6px 18px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.5); }
.sc-panel h2 { margin: 0 0 4px; font-family: var(--logo); font-size: clamp(26px, 2.6vw, 36px); font-weight: 600; color: #f6efe2; letter-spacing: .005em; }
.sc-panel p { margin: 0; color: var(--ink-2); }
.sc-size-form, .sc-setup-form { display: grid; justify-items: center; gap: 8px; }
.sc-size-label { margin: 0; font-weight: 500; font-size: 15px; color: var(--ink-2); }
.sc-stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; background: #0d0b09; }
.sc-stepper button { width: 46px; border: 0; background: transparent; color: var(--ink); font-size: 22px; cursor: pointer; }
.sc-stepper button:hover:not(:disabled) { background: var(--gold-soft); color: var(--gold-bright); }
.sc-stepper button:disabled { opacity: .35; cursor: default; }
.sc-stepper input:not([type=checkbox]) { width: 64px; height: 46px; padding: 0; border: 0; border-left: 1px solid var(--line-strong); border-right: 1px solid var(--line-strong); border-radius: 0; background: #141110; color: #f6efe2; font-size: 22px; font-weight: 600; text-align: center; -moz-appearance: textfield; appearance: textfield; }
.sc-stepper input::-webkit-outer-spin-button, .sc-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sc-tip { padding-left: 22px; border-left: 1px solid var(--line-strong); font-size: 14px; color: var(--muted) !important; }
.sc-tip span { color: var(--gold-bright); }
.sc-setup { grid-template-columns: 1fr; justify-items: center; text-align: center; max-width: 640px; margin: 40px auto; padding: 36px 32px; }
.sc-setup .sc-tip { border-left: 0; padding: 0; }
.sc-setup .button { margin-top: 10px; padding: 12px 26px; }

.watch-box { --wood: #0c0a09; position: relative; margin: 6px 0 14px; padding: 30px 26px; border-radius: 20px; background: var(--grain) 0 0 / 180px, linear-gradient(180deg, #1a1714 0%, #0b0a09 40%, #090807 100%); background-blend-mode: soft-light, normal; box-shadow: 0 30px 60px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.07), inset 0 0 0 1px rgba(0,0,0,.8); }
.watch-box::before { content: ""; position: absolute; inset: 9px; border-radius: 14px; border: 1px dashed rgba(201,163,92,.32); pointer-events: none; }
.wb-clasp { position: absolute; left: 50%; width: 76px; height: 16px; margin-left: -38px; border-radius: 3px; background: linear-gradient(180deg, #f6e2a8, #c9a35c 50%, #7a5a26); box-shadow: 0 2px 6px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.6); z-index: 2; }
.wb-clasp::after { content: ""; position: absolute; left: 50%; top: 4px; width: 18px; height: 8px; margin-left: -9px; border-radius: 2px; background: #5e4520; opacity: .6; }
.wb-clasp-top { top: 6px; } .wb-clasp-bottom { bottom: 6px; }
.wb-tray { list-style: none; margin: 0; padding: 14px; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 14px 0; border-radius: 10px; background: var(--grain) 0 0 / 140px, linear-gradient(180deg, #b29469, #9f8159 55%, #8f7350); background-blend-mode: soft-light, normal; box-shadow: inset 0 10px 22px rgba(0,0,0,.55), inset 0 0 0 2px rgba(0,0,0,.35); }
.wb-slot { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 14px 10px 4px; min-width: 0; }
.wb-slot + .wb-slot::before { content: ""; position: absolute; left: -3px; top: 0; bottom: 0; width: 6px; border-radius: 3px; background: linear-gradient(90deg, #7e6444, #c2a57b 45%, #8a6f4c); box-shadow: 0 0 6px rgba(0,0,0,.35); }
.wb-cushion { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 3 / 4; padding: 0; border: 0; border-radius: 26px; cursor: pointer; background: radial-gradient(ellipse 70% 60% at 50% 38%, #d3b78e, #b2946a 62%, #8c704d); box-shadow: inset 0 10px 16px rgba(255,240,210,.22), inset 0 -14px 20px rgba(60,40,15,.35), 0 8px 14px rgba(40,25,8,.35); transition: transform .15s, box-shadow .15s; }
.wb-cushion::after { content: ""; position: absolute; left: 14%; right: 14%; top: 50%; height: 2px; border-radius: 1px; background: rgba(70,48,20,.25); }
.wb-cushion:hover { transform: translateY(-2px); box-shadow: inset 0 10px 16px rgba(255,240,210,.26), inset 0 -14px 20px rgba(60,40,15,.35), 0 14px 22px rgba(40,25,8,.45); }
.wb-cushion img { position: relative; z-index: 1; width: 84%; height: 88%; object-fit: cover; border-radius: 14px; box-shadow: 0 14px 22px rgba(0,0,0,.5), 0 0 0 1px rgba(0,0,0,.25); }
.wb-nophoto { position: relative; z-index: 1; width: 80%; padding: 14px 8px; border-radius: 12px; background: rgba(20,14,8,.7); color: var(--ink); font-size: 13px; text-align: center; }
.wb-plus { position: relative; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(70,48,22,.55); color: #e8d3ad; font-size: 30px; font-weight: 300; line-height: 1; box-shadow: inset 0 2px 6px rgba(0,0,0,.4), 0 1px 0 rgba(255,240,210,.25); transition: background .15s; }
.wb-cushion:hover .wb-plus { background: rgba(70,48,22,.8); }
.wb-plate { display: grid; align-content: center; justify-items: center; gap: 3px; min-height: 84px; padding: 10px 8px; border-radius: 4px; text-align: center; background: linear-gradient(180deg, #171411, #0b0a09); border: 1px solid rgba(201,163,92,.35); box-shadow: 0 4px 10px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.05); }
.wb-label { color: #f6efe2; font-weight: 600; font-size: 14.5px; line-height: 1.25; overflow-wrap: anywhere; }
.wb-item { max-width: 100%; color: var(--muted); font-size: 12.5px; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wb-item:hover { color: var(--gold-bright); }
.wb-status { font-size: 14px; font-weight: 600; color: var(--gold-bright); }
.wb-status.own { color: var(--own); } .wb-status.want { color: var(--want); } .wb-status.maybe { color: var(--maybe); } .wb-status.nope { color: var(--nope); } .wb-status.open { color: var(--gold); }
.sc-foot { margin: 0 0 10px; }
.sc-dialog { width: min(480px, calc(100vw - 32px)); padding: 26px 26px 22px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--leather-2); color: var(--ink); box-shadow: 0 30px 70px rgba(0,0,0,.7); }
.sc-dialog::backdrop { background: rgba(0,0,0,.65); }
.sc-dialog h2 { margin: 0 0 16px; font-size: 22px; }
.sc-dialog label { display: grid; gap: 6px; margin: 0 0 14px; color: var(--ink-2); font-weight: 500; }
.sc-dialog input:not([type=checkbox]), .sc-dialog select { background: #120f0c; color: var(--ink); border: 1px solid var(--line-strong); border-radius: 8px; font-weight: 400; }
.sc-dialog select:disabled { opacity: .45; }
.sc-dialog p { margin: -6px 0 14px; }
.sc-dialog-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 6px; }
.sc-dialog-actions .button, .sc-dialog-actions .button-outline { padding: 10px 20px; cursor: pointer; font: inherit; font-weight: 600; }
.sc-dialog-actions .text-action { background: none; cursor: pointer; font: inherit; margin-left: auto; }
@container (max-width: 980px) { .sc-head { grid-template-columns: auto minmax(0, 1fr) auto; } .sc-head .sc-tip { grid-column: 1 / -1; border-left: 0; padding-left: 0; } .wb-tray { grid-template-columns: repeat(var(--cols-md), minmax(0, 1fr)); } }
@container (max-width: 560px) { .showcase-page .page-head { flex-direction: column; align-items: flex-start; gap: 6px; } .sc-head { grid-template-columns: 1fr; justify-items: start; } .watch-box { padding: 26px 12px; } .wb-tray { grid-template-columns: repeat(var(--cols-sm), minmax(0, 1fr)); padding: 10px; } .sc-panel { padding: 18px; } }
.sc-tabs { margin-bottom: 4px; }
.sc-tabs .sc-tab { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; }
.sc-tabs .sc-tab svg { flex: none; }
.sc-error { background: var(--danger-soft); color: var(--danger-dark); }
.wb-add { margin-top: 2px; padding: 3px 12px; border: 1px solid rgba(201,163,92,.45); border-radius: 999px; background: transparent; color: var(--gold-bright); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.wb-add:hover { background: var(--gold-soft); }
.sc-new { margin: 0 0 14px; padding: 14px 16px 2px; border: 1px solid var(--line-strong); border-radius: 10px; background: rgba(0,0,0,.18); }
.sc-new legend { padding: 0 6px; color: var(--gold); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.sc-new[hidden], .sc-dialog label[hidden] { display: none; }
.sc-dialog { max-height: calc(100vh - 32px); overflow-y: auto; }
.sc-photo-row { margin: 0 0 14px; }
.sc-photo-row .sc-photo-pick { margin-bottom: 8px; }
.sc-dialog input[type=file] { padding: 8px; background: #120f0c; color: var(--ink-2); border: 1px dashed var(--line-strong); border-radius: 8px; font-size: 14px; cursor: pointer; }
.sc-photo-previews { display: flex; flex-wrap: wrap; gap: 8px; }
.sc-photo-previews:empty { display: none; }
.sc-photo-previews img { width: 64px; height: 80px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line-strong); }
/* Story photos with the Background on Collection (index.html) */
.bg-thumbs { flex: none; display: inline-flex; gap: 4px; align-self: center; }
.bg-thumbs img { width: 30px; height: 30px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line-strong); }
.background-wrap[open] .bg-thumbs { display: none; }
.story-photos { display: flex; flex-wrap: wrap; align-items: stretch; gap: 14px; padding: 0 16px 16px; }
.story-photo { position: relative; margin: 0; width: clamp(140px, 22vw, 230px); aspect-ratio: 4 / 3; }
.story-photo a { display: block; width: 100%; height: 100%; }
.story-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; border: 1px solid var(--line-strong); box-shadow: 0 10px 22px rgba(0,0,0,.4); }
.story-photo form { position: absolute; top: 6px; right: 6px; margin: 0; }
.story-remove { display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(0,0,0,.65); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; opacity: .85; }
.story-remove:hover { opacity: 1; background: #8e3a45; }
.story-add { margin: 0; }
.story-add-button { position: relative; display: grid; place-items: center; align-content: center; gap: 4px; width: clamp(140px, 22vw, 230px); aspect-ratio: 4 / 3; margin: 0; padding: 12px; border: 1.5px dashed var(--line-strong); border-radius: 10px; color: var(--gold-bright); font-weight: 500; font-size: 14px; text-align: center; cursor: pointer; transition: background .15s, border-color .15s; }
.story-add-button:hover { background: var(--gold-soft); border-color: var(--gold); }
.story-add-button > span:first-of-type { font-size: 26px; line-height: 1; }
.story-add-button small { color: var(--muted); font-weight: 400; font-size: 12px; }
.story-add-button input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.story-add-button:focus-within { outline: 2px solid var(--gold-bright); outline-offset: 3px; }

/* ---------- AI Support (button left of + Add, and its task pages) ---------- */
.ai-support-menu > summary.ai-support-btn { list-style: none; display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px 0 16px; border-radius: 999px; border: 1px solid var(--gold); color: var(--gold-bright); background: linear-gradient(180deg, rgba(201,163,92,.16), rgba(201,163,92,.05)); font-weight: 600; font-size: 15px; letter-spacing: .03em; cursor: pointer; white-space: nowrap; }
.ai-support-menu > summary.ai-support-btn::-webkit-details-marker { display: none; }
.ai-support-menu > summary.ai-support-btn:hover, .ai-support-menu[open] > summary.ai-support-btn { background: var(--gold-soft); color: #f6e2a8; }
.ai-support-menu .add-menu-list { width: 340px; }
.ai-support-menu .add-menu-list a span { white-space: normal; }
.ai-support-page .lead { margin-bottom: 18px; }
.ai-bg { margin: 0 0 20px; }
.ai-bg-inner { padding: 16px 20px; }
.ai-bg-inner p { margin: 8px 0 0; color: var(--ink); line-height: 1.55; }
.ai-run-bar { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin: 6px 0 18px; }
.ai-results { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.ai-result { padding: 14px 16px; border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 12px; background: rgba(0,0,0,.22); display: grid; gap: 8px; }
.ai-result.is-applied { border-left-color: var(--own); }
.ai-result.is-dismissed { opacity: .55; }
.ai-result-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ai-result-head a { color: var(--ink); font-weight: 600; font-size: 16px; text-decoration: none; }
.ai-result-head a:hover { color: var(--gold-bright); }
.ai-score { display: inline-flex; align-items: center; gap: 8px; }
.ai-score strong { font-size: 20px; }
.ai-score .stars { font-size: 16px; margin: 0; }
.ai-take { margin: 0; color: var(--ink-2); line-height: 1.55; }
.ai-diff { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ai-diff p { margin: 0; padding: 10px 12px; border-radius: 8px; white-space: pre-line; font-size: 14.5px; line-height: 1.5; overflow-wrap: anywhere; }
.ai-old { background: rgba(224,112,126,.08); color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(224,112,126,.5); }
.ai-new { background: rgba(110,170,130,.1); color: var(--ink); }
.ai-done { margin-top: 16px; color: var(--gold-bright); }
@media (max-width: 680px) { .ai-diff { grid-template-columns: 1fr; } .ai-support-menu > summary.ai-support-btn span { display: none; } .ai-support-menu > summary.ai-support-btn { padding: 0 14px; } }

/* Background on Collection: drop photos anywhere on the box */
.background-wrap { position: relative; }
.background-wrap.is-drop { border-color: var(--gold-bright); box-shadow: 0 0 0 3px rgba(232,198,126,.35), 0 10px 26px rgba(0,0,0,.35); }
.background-wrap.is-drop::after { content: "Drop photos to add them to the story"; position: absolute; inset: 0; display: grid; place-items: center; border-radius: 12px; background: rgba(12,10,8,.78); color: var(--gold-bright); font-size: 17px; font-weight: 600; letter-spacing: .02em; pointer-events: none; z-index: 5; }
.background-wrap.is-uploading { opacity: .75; }
.story-drop-note { margin: 0 20px 14px; color: var(--gold-bright); font-size: 14px; }

/* Visual Collection, AI Support and + Add: one matching set of gold-outlined pills, side by side (David, Oct 27) */
.page-actions .nav-actions { gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.page-actions .visual-btn,
.page-actions .ai-support-menu > summary.ai-support-btn,
.page-actions .plus-menu > summary.plus-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; min-width: 0; padding: 0 18px 0 15px;
  border-radius: 999px; border: 1px solid var(--gold); color: var(--gold-bright) !important;
  background: linear-gradient(180deg, rgba(201,163,92,.16), rgba(201,163,92,.05)); box-shadow: none;
  font-weight: 600; font-size: 15px; letter-spacing: .03em; white-space: nowrap; transform: none; text-decoration: none; cursor: pointer;
}
.page-actions .visual-btn:hover,
.page-actions .ai-support-menu > summary.ai-support-btn:hover, .page-actions .ai-support-menu[open] > summary.ai-support-btn,
.page-actions .plus-menu > summary.plus-button:hover, .page-actions .plus-menu[open] > summary.plus-button { background: var(--gold-soft); color: #f6e2a8 !important; border-color: var(--gold-bright); }
.page-actions .plus-menu > summary.plus-button svg { width: 18px; height: 18px; }
.page-actions .visual-btn svg { width: 18px; height: 18px; }
.eyebrow-edit { color: var(--muted) !important; border-bottom: 1px dotted var(--line-strong) !important; letter-spacing: .2em; }
.eyebrow-edit:hover { color: var(--gold-bright) !important; }
@media (max-width: 680px) {
  .page-actions .visual-btn span, .page-actions .ai-support-btn span, .page-actions .plus-button .plus-label { display: none; }
  .page-actions .visual-btn, .page-actions .ai-support-menu > summary.ai-support-btn, .page-actions .plus-menu > summary.plus-button { width: 44px; padding: 0; }
}
.ai-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0; padding: 0; border: 0; }
.ai-pick legend { float: left; margin-right: 6px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ai-choice { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px; font-weight: 400; cursor: pointer; }
.ai-choice:has(input:checked) { border-color: var(--gold); background: var(--gold-soft); }
.ai-choice strong { color: var(--ink); }
.ai-pick small { flex-basis: 100%; }

/* AI Support menu: an option that is not available yet */
.add-menu-list .add-menu-off { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 10px 12px; color: var(--muted); cursor: default; }
.add-menu-list .add-menu-off strong { color: var(--muted); font-weight: 600; }
.add-menu-list .add-menu-off span { font-size: 13px; white-space: normal; opacity: .8; }
/* Visual Collection: drag a watch to another slot */
.wb-cushion[draggable=true] { cursor: grab; }
.wb-cushion[draggable=true]:active { cursor: grabbing; }
.wb-slot.is-dragging .wb-cushion { opacity: .45; transform: scale(.97); }
.wb-slot.is-drop .wb-cushion { box-shadow: 0 0 0 3px var(--gold-bright), inset 0 10px 16px rgba(255,240,210,.22), 0 14px 22px rgba(40,25,8,.45); transform: translateY(-3px); }
.wb-slot.is-drop .wb-plate { border-color: var(--gold-bright); }
.wb-slot.is-saving { opacity: .6; }
.sc-move { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.sc-move[hidden] { display: none; }
.sc-move label { flex: 1 1 240px; display: grid; gap: 6px; margin: 0; color: var(--ink-2); font-weight: 500; }
.sc-move .button-outline { padding: 10px 20px; cursor: pointer; font: inherit; font-weight: 600; }
/* Add an Item: just list, name, URL and photos */
.add-wrap .fields { grid-template-columns: 1fr; }
.add-ai-note { margin: 18px 0 0; padding: 12px 16px; border: 1px dashed var(--line-strong); border-radius: 10px; color: var(--muted); font-size: 14px; }
.add-ai-note a { color: var(--gold-bright); font-weight: 600; }
.add-photo-hint { margin: 0 0 10px; }
[data-photo-drop].is-highlight .drop-area { border-color: var(--gold-bright); box-shadow: 0 0 0 3px var(--gold-soft); }
/* + Add menu: Item(s) with four ways to add */
.add-menu-items { display: grid; gap: 2px; padding-top: 10px; }
.add-menu-items .add-menu-title { padding: 0 12px; font-size: 15px; }
.add-menu-items .add-menu-sub { padding: 0 12px 6px; }
.add-menu-items .add-menu-ways { padding-bottom: 10px; }
/* Import AI conversations: two short steps */
.import-page h1 { margin-bottom: 18px; }
.import-step { display: flex; align-items: center; gap: 12px; margin: 18px 0 8px; }
.import-step p { margin: 0; flex: 1; color: var(--ink); font-weight: 500; }
.import-step .step { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--gold); background: transparent; color: var(--gold-bright); font-weight: 600; font-size: 14px; }
.import-prompt { margin: 0 0 6px 40px; }
.import-prompt summary, .import-more summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.import-prompt summary:hover, .import-more summary:hover { color: var(--gold-bright); }
.import-prompt textarea { margin-top: 8px; font-size: 13px; }
.import-more { margin: 14px 0 0; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; }
.import-more[open] { display: grid; gap: 10px; }
.import-more .model-pick { display: grid; gap: 6px; margin: 4px 0 0; }
.import-page .form-actions { align-items: center; gap: 14px; }
