:root {
  --bg: #ffffff;
  --bg-soft: #f7f6fc;
  --surface: #ffffff;
  --surface-2: #f2f0f9;
  --ink: #15121f;
  --muted: #6c6782;
  --line: #e8e5f1;
  --brand: #6c3bff;
  --brand-hover: #5a29ea;
  --brand-ink: #ffffff;
  --brand-soft: #efe9ff;
  --spark: #ffd23f;
  --yes: #0e9660;
  --yes-soft: #e0f6ec;
  --maybe: #b4740c;
  --maybe-soft: #fdf0d6;
  --no: #8a8699;
  --no-soft: #f0eff5;
  --img-bg: #ffffff;
  --tile-pink: #ffe0ea;
  --tile-blue: #dde9ff;
  --tile-yellow: #fff0b3;
  --tile-mint: #d7f6e6;
  --tile-lilac: #eae2ff;
  --tile-peach: #ffe4d4;
  --shadow: 0 1px 2px rgba(25, 15, 60, 0.05), 0 8px 24px rgba(25, 15, 60, 0.07);
  --shadow-lg: 0 2px 6px rgba(25, 15, 60, 0.08), 0 20px 50px rgba(25, 15, 60, 0.18);
  --radius: 18px;
  --font: 'Manrope Variable', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Bricolage Grotesque Variable', 'Manrope Variable', system-ui, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0c15;
    --bg-soft: #13111c;
    --surface: #18151f;
    --surface-2: #221e2d;
    --ink: #f3f1f9;
    --muted: #a39eb6;
    --line: #2f2a3c;
    --brand: #8d68ff;
    --brand-hover: #a083ff;
    --brand-ink: #ffffff;
    --brand-soft: #291e4a;
    --yes: #3fd08f;
    --yes-soft: #13352a;
    --maybe: #f0b44e;
    --maybe-soft: #3a2c12;
    --no: #9893a8;
    --no-soft: #26222f;
    --img-bg: #f7f6fa;
    --tile-pink: #3b2030;
    --tile-blue: #1c2847;
    --tile-yellow: #3a3214;
    --tile-mint: #15352a;
    --tile-lilac: #2b2148;
    --tile-peach: #3c2619;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 8px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.4), 0 20px 50px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
body.has-selbar { padding-bottom: 96px; }
main { flex: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 8px 24px 64px; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(30px, 4.2vw, 44px); font-weight: 750; }
h2 { font-size: 24px; font-weight: 700; }
h3 { font-weight: 650; }
p { margin: 0; }
.muted { color: var(--muted); }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ---------- header / footer ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 14px 24px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--display); font-weight: 750; font-size: 22px; letter-spacing: -0.03em; }
.brand:hover { text-decoration: none; }
.logo { width: 32px; height: 32px; flex: none; }
.top nav { display: flex; align-items: center; gap: 4px; }
.top nav > a:not(.btn) { color: var(--muted); font-weight: 650; padding: 8px 14px; border-radius: 999px; }
.top nav > a:not(.btn):hover { color: var(--ink); background: var(--surface-2); text-decoration: none; }
.top nav > a.on { color: var(--ink); background: var(--surface-2); }
.logout { margin: 0; }
.logout .link { color: var(--muted); padding: 8px 14px; font-weight: 650; }
.foot { max-width: 1200px; width: 100%; margin: 0 auto; padding: 24px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.langs { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; }
.langs a { color: var(--muted); }
.langs a:hover { color: var(--brand); }
.langs b { color: var(--ink); font-weight: 700; }

/* ---------- buttons, inputs ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: var(--brand-ink);
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
}
.btn:hover { background: var(--brand-hover); text-decoration: none; box-shadow: 0 6px 18px color-mix(in srgb, var(--brand) 30%, transparent); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn.small { padding: 7px 15px; font-size: 14px; }
.btn.big { padding: 15px 28px; font-size: 17px; }
.btn.wide { width: 100%; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { background: var(--surface-2); box-shadow: inset 0 0 0 1.5px var(--line); }
.link { background: none; border: 0; padding: 0; color: var(--brand); font-weight: 650; cursor: pointer; }
.link:hover { text-decoration: underline; }
.link.danger { color: var(--muted); }
.link.danger:hover { color: #d92d4b; }

input:not([type='checkbox']), select, textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
textarea { resize: vertical; }
label { display: grid; gap: 6px; font-weight: 650; font-size: 14px; }
label small { color: var(--muted); font-weight: 500; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }
.stack { display: grid; gap: 14px; }

.chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.static { cursor: default; background: var(--brand-soft); border-color: transparent; color: var(--ink); }
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; vertical-align: 1px; }
.pill.public { background: var(--yes-soft); color: var(--yes); }
.pill.private { background: var(--surface-2); color: var(--muted); }
.alert { padding: 11px 14px; border-radius: 14px; background: #ffe6eb; color: #8a1631; font-size: 14px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--brand); font-weight: 750; font-size: 14px; letter-spacing: 0.01em; }
.spark { color: var(--spark); text-shadow: 0 0 0 var(--brand); filter: drop-shadow(0 0 0.5px rgba(0,0,0,.25)); font-size: 16px; }
.lead { font-size: 18px; color: var(--muted); max-width: 60ch; }

/* ---------- landing ---------- */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 40px 0 64px; }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; margin: 16px 0 20px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-art { position: relative; padding-bottom: 60px; }
.demo-wish {
  position: absolute; top: -20px; left: -14px; z-index: 3; display: inline-flex; align-items: center; gap: 8px;
  max-width: calc(100% - 20px); padding: 11px 18px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-lg);
  font-weight: 700; font-size: 15px; transform: rotate(-2deg);
}
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 150px;
  gap: 12px;
  padding: 14px;
  background: var(--brand);
  border-radius: 30px;
  transform: rotate(1.5deg);
}
.tile { position: relative; display: grid; place-items: center; border-radius: 20px; }
.tile .emoji { font-size: 56px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.12)); }
.tile.t0 { grid-row: span 2; }
.tile.t0 .emoji { font-size: 84px; }
.tile.t4 { grid-column: span 2; }
.c-pink { background: var(--tile-pink); }
.c-blue { background: var(--tile-blue); }
.c-yellow { background: var(--tile-yellow); }
.c-mint { background: var(--tile-mint); }
.c-lilac { background: var(--tile-lilac); }
.c-peach { background: var(--tile-peach); }
.tile-v {
  position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px 3px 4px; border-radius: 999px; background: var(--surface); color: var(--yes); font-size: 12px; font-weight: 800; box-shadow: var(--shadow);
}
.tile-v i { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--yes); color: #fff; font-style: normal; font-size: 10px; }
.card.demo { position: absolute; width: 250px; box-shadow: var(--shadow-lg); left: -28px; bottom: 0; transform: rotate(-3deg); z-index: 2; }
.card.demo.demo-no { left: auto; right: -12px; bottom: 26px; width: 220px; transform: rotate(2.5deg); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding-bottom: 24px; }
.step { padding: 26px; background: var(--bg-soft); border-radius: 24px; }
.step span {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px;
  background: var(--brand); color: var(--brand-ink); font-family: var(--display); font-weight: 800; margin-bottom: 16px;
}
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--muted); }

/* ---------- auth ---------- */
.auth { max-width: 430px; margin: 28px auto; padding: 36px; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); display: grid; gap: 16px; }
.auth h1 { font-size: 30px; }
.auth-logo .logo { width: 44px; height: 44px; }
.btn.google { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.google:hover { background: var(--surface-2); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.google svg { width: 20px; height: 20px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.switch { text-align: center; color: var(--muted); font-size: 15px; }
.dev-note { font-size: 13px; color: var(--muted); padding: 10px 12px; border: 1px dashed var(--line); border-radius: 12px; }

/* ---------- search page ---------- */
.finder { max-width: 840px; margin: 24px auto 20px; text-align: center; display: grid; gap: 10px; }
.wish-form {
  margin-top: 12px;
  padding: 10px;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow);
  text-align: left;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.wish-form:focus-within { border-color: var(--brand); box-shadow: 0 0 0 5px var(--brand-soft), var(--shadow); }
.wish-form textarea { border: 0; box-shadow: none; font-size: 19px; padding: 10px 14px; resize: none; background: transparent; }
.wish-form textarea:focus { box-shadow: none; }
.wish-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 4px 2px 14px; }
.country { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 650; }
.country select { width: auto; padding: 7px 12px; border-radius: 999px; font-weight: 650; color: var(--ink); background: var(--surface-2); border-color: transparent; }
.guest-note { display: inline-flex; align-items: center; gap: 8px; justify-self: center; padding: 6px 14px; border-radius: 999px; background: var(--brand-soft); font-size: 14px; font-weight: 600; }
.sel-hint { flex: 1; min-width: 0; font-weight: 600; opacity: 0.85; }
.selbar .sel-login { color: var(--bg); font-weight: 700; }
.examples { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 8px; }
.examples > span { color: var(--muted); font-size: 14px; }

.status { max-width: 840px; margin: 0 auto 24px; padding: 16px 20px; background: var(--bg-soft); border-radius: 20px; display: grid; gap: 10px; }
.st-line { display: flex; align-items: center; gap: 10px; font-weight: 650; }
.st-line .ok { display: inline-grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--yes-soft); color: var(--yes); font-size: 13px; }
.st-line .ok.bad { background: var(--maybe-soft); color: var(--maybe); }
.need { color: var(--muted); font-style: italic; }
.st-queries { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.warn { font-size: 14px; color: var(--maybe); }
.bar { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), #b18cff); border-radius: 999px; transition: width 0.4s ease; }
.spin { flex: none; width: 18px; height: 18px; border: 2.5px solid var(--brand-soft); border-top-color: var(--brand); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.results-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.tabs { display: inline-flex; padding: 4px; gap: 4px; background: var(--surface-2); border-radius: 999px; }
.tabs button { border: 0; background: none; padding: 8px 16px; border-radius: 999px; font-weight: 650; color: var(--muted); cursor: pointer; }
.tabs button b { font-weight: 800; margin-left: 4px; }
.tabs button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.hint { color: var(--muted); font-size: 14px; }
.empty-filter { text-align: center; color: var(--muted); padding: 32px 0; }

/* ---------- product cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.18s, transform 0.18s, border-color 0.18s, opacity 0.18s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card.demo:hover { transform: rotate(-3deg); }
.card.demo.demo-no:hover { transform: rotate(2.5deg); }
.card.sel { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand), var(--shadow); }
.card.dim:not(.sel) { opacity: 0.6; }
.card.dim:hover { opacity: 1; }
.card .ph {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--img-bg);
  cursor: pointer;
  overflow: hidden;
}
.card .ph img { width: 100%; height: 100%; object-fit: contain; padding: 8%; transition: transform 0.25s; }
.card:hover .ph img { transform: scale(1.04); }
.noimg { font-size: 48px; color: var(--muted); }
.noimg .logo { width: 56px; height: 56px; opacity: 0.5; }
.heart {
  position: absolute; top: 10px; right: 10px; display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 17px;
  transform: scale(0); transition: transform 0.2s cubic-bezier(.3,1.6,.6,1);
}
.card.sel .heart { transform: scale(1); }
.card .body { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; flex: 1; }
.card h3 { font-family: var(--font); font-size: 15.5px; font-weight: 700; letter-spacing: -0.005em; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.reason { font-size: 14px; color: var(--muted); line-height: 1.45; }
.note { font-size: 14px; padding: 8px 11px; background: var(--brand-soft); border-radius: 12px; }
.meta { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 4px; }
.price { font-family: var(--display); font-weight: 750; font-size: 19px; letter-spacing: -0.02em; }
.merchant { color: var(--muted); font-size: 12.5px; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.actions form { margin: 0; }
.pick {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 15px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--surface); font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap;
}
.pick .h { color: var(--brand); font-size: 16px; line-height: 1; }
.pick:hover { border-color: var(--brand); }
.pick[aria-pressed='true'] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.pick[aria-pressed='true'] .h { color: inherit; }
.actions .link { font-size: 14px; white-space: nowrap; }
.saved-in { font-size: 12.5px; color: var(--yes); font-weight: 650; }
.from { font-size: 12px; color: var(--muted); }

.verdict {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px;
  border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap;
}
.verdict i { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font-style: normal; font-size: 11px; color: #fff; }
.verdict b { font-weight: 800; opacity: 0.75; margin-left: 2px; }
.v-yes { background: var(--yes-soft); color: var(--yes); }
.v-yes i { background: var(--yes); }
.v-maybe { background: var(--maybe-soft); color: var(--maybe); }
.v-maybe i { background: var(--maybe); }
.v-no { background: var(--no-soft); color: var(--no); }
.v-no i { background: var(--no); }
.v-none { background: var(--surface-2); color: var(--muted); padding: 3px 10px; }
.v-wait { background: var(--brand-soft); color: var(--brand); padding: 3px 10px 3px 8px; }
.v-wait .dot { width: 8px; height: 8px; background: var(--brand); animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.25; } }

.recent { max-width: 840px; margin: 40px auto 0; }
.recent h2 { font-size: 19px; margin-bottom: 10px; }
.recent ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.recent a { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; border-radius: 14px; color: var(--ink); background: var(--bg-soft); border: 1px solid transparent; }
.recent a:hover { border-color: var(--brand); text-decoration: none; }
.recent a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; }
.recent small { flex: none; color: var(--muted); }

/* selection bar */
.selbar {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 30;
  display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 20px; width: min(780px, calc(100% - 32px));
  background: var(--ink); color: var(--bg); border-radius: 999px; box-shadow: var(--shadow-lg);
  animation: rise 0.2s ease-out;
}
@keyframes rise { from { transform: translate(-50%, 16px); opacity: 0; } }
.sel-count { flex: none; font-weight: 650; opacity: 0.85; }
.sel-count b { color: var(--spark); font-size: 18px; }
.selbar select, .selbar input { flex: 1; min-width: 0; padding: 9px 14px; border-radius: 999px; background: color-mix(in srgb, var(--bg) 12%, var(--ink)); border-color: transparent; color: var(--bg); }
.selbar select option { color: var(--ink); background: var(--surface); }
.selbar input::placeholder { color: color-mix(in srgb, var(--bg) 55%, transparent); }
.selbar .btn { flex: none; }
.selbar .link { flex: none; color: color-mix(in srgb, var(--bg) 70%, transparent); font-size: 14px; padding-right: 8px; }
.toast {
  position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 31;
  padding: 12px 20px; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 650; box-shadow: var(--shadow-lg);
  max-width: calc(100% - 32px);
}
.toast a { color: #fff; text-decoration: underline; margin-left: 6px; }
.toast .bad { color: #ffe0e6; }

/* ---------- lists ---------- */
.page-head, .list-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 20px 0 24px; }
.page-head > div, .list-head > div { display: grid; gap: 8px; }
.lists-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.list-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; color: var(--ink); transition: box-shadow 0.18s, border-color 0.18s, transform 0.18s; }
a.list-card:hover { box-shadow: var(--shadow); border-color: var(--brand); text-decoration: none; transform: translateY(-2px); }
.mosaic { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 16 / 10; background: var(--img-bg); gap: 1px; }
.mosaic img { width: 100%; height: 100%; object-fit: contain; padding: 8px; background: var(--img-bg); min-height: 0; }
.mosaic.n1 img { grid-column: 1 / -1; grid-row: 1 / -1; }
.mosaic.n2 img { grid-row: 1 / -1; }
.mosaic.n3 img:first-child { grid-row: 1 / -1; }
.mosaic.n0 { display: grid; place-items: center; background: var(--brand-soft); }
.mosaic-empty .logo { width: 52px; height: 52px; opacity: 0.85; }
.lc-body { padding: 14px 16px 16px; display: grid; gap: 4px; }
.lc-body h3 { font-size: 19px; }
.lc-body p { color: var(--muted); font-size: 14px; }
.list-card.new { padding: 20px; gap: 12px; justify-content: center; border-style: dashed; border-width: 2px; background: var(--bg-soft); }

.crumbs { margin-top: 16px; font-size: 14px; }
.crumbs a { color: var(--muted); font-weight: 650; }
.share { display: grid; gap: 14px; margin-bottom: 24px; padding: 16px 20px; background: var(--bg-soft); border-radius: 22px; border: 1.5px solid transparent; }
.share.on { border-color: color-mix(in srgb, var(--yes) 35%, transparent); background: color-mix(in srgb, var(--yes-soft) 55%, var(--bg)); }
.vis { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0; }
.vis-text { display: grid; gap: 2px; }
.vis-text span { color: var(--muted); font-size: 14px; }
.switch-btn { flex: none; position: relative; width: 52px; height: 30px; padding: 0; border: 0; border-radius: 999px; background: var(--line); cursor: pointer; transition: background 0.18s; }
.switch-btn span { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform 0.18s; }
.switch-btn[aria-checked='true'] { background: var(--yes); }
.switch-btn[aria-checked='true'] span { transform: translateX(22px); }
.share-link { display: flex; gap: 8px; }
.share-link input { flex: 1; min-width: 0; font-size: 14px; border-radius: 999px; }
.note-form { display: flex; align-items: center; gap: 8px; margin: 0; }
.note-form input { padding: 7px 12px; font-size: 13.5px; border-radius: 10px; }
.note-form .link { font-size: 13px; flex: none; }
.empty { text-align: center; padding: 56px 24px; background: var(--bg-soft); border-radius: 24px; display: grid; gap: 12px; justify-items: center; }
.empty p { color: var(--muted); max-width: 46ch; }
.page-msg { margin-top: 48px; }
.list-settings { margin-top: 32px; padding: 16px 20px; background: var(--bg-soft); border-radius: 22px; }
.list-settings summary { cursor: pointer; font-weight: 700; }
.list-settings[open] summary { margin-bottom: 14px; }
.list-settings form + form { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }

/* public list */
.banner { margin: 16px 0 0; padding: 11px 18px; border-radius: 999px; background: var(--maybe-soft); color: var(--ink); font-size: 14px; }
.banner.soft { background: var(--brand-soft); }
.public-head { text-align: center; display: grid; gap: 12px; justify-items: center; padding: 40px 0 32px; }
.public-head h1 { font-size: clamp(34px, 5vw, 52px); }
.public-head .lead { margin: 0 auto; }
.cta-own { margin-top: 48px; padding: 40px 24px; text-align: center; background: var(--brand); color: var(--brand-ink); border-radius: 30px; display: grid; gap: 12px; justify-items: center; }
.cta-own p { opacity: 0.85; }
.cta-own .btn { background: var(--surface); color: var(--ink); }
.cta-own .btn:hover { background: var(--spark); }

/* ---------- AI labelling (EU AI Act art. 50) ---------- */
.ai-tag {
  display: inline-grid; place-items: center; padding: 0 6px; height: 16px; margin-left: 4px; border-radius: 6px;
  background: var(--ink); color: var(--bg); font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: 0.04em;
}
.ai-note { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 16px; padding: 10px 14px; border-radius: 14px; background: var(--bg-soft); color: var(--muted); font-size: 13.5px; }
.ai-note .ai-tag { margin: 2px 0 0; flex: none; }
.ai-note a { white-space: nowrap; }

/* ---------- consent banner ---------- */
.consent {
  position: fixed; left: 16px; bottom: 16px; z-index: 40; width: min(440px, calc(100% - 32px));
  padding: 18px 18px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg);
  display: grid; gap: 12px; font-size: 14px; animation: rise-left 0.25s ease-out;
}
@keyframes rise-left { from { transform: translateY(16px); opacity: 0; } }
.consent p { color: var(--muted); }
.consent p b { color: var(--ink); }
.consent-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.choices { display: grid; gap: 12px; margin: 8px 0 4px; padding: 16px 18px; border-radius: 18px; background: var(--brand-soft); }
.choices p { font-weight: 650; transition: color 0.2s; }
.choices p.flash { color: var(--brand); }

/* ---------- footer links ---------- */
.legal-links { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; font-weight: 600; }
.legal-links a { color: var(--ink); }
.agree { font-size: 13px; color: var(--muted); text-align: center; }
.forgot { justify-self: end; margin-top: -6px; font-size: 13.5px; font-weight: 650; }
.notice { padding: 12px 14px; border-radius: 14px; background: var(--yes-soft); color: var(--ink); font-size: 14.5px; }

/* ---------- legal pages ---------- */
.legal { max-width: 760px; margin: 24px auto 0; }
.legal h1 { margin-bottom: 20px; }
.legal h2 { font-size: 21px; margin: 30px 0 10px; }
.legal p, .legal li { color: color-mix(in srgb, var(--ink) 82%, var(--muted)); line-height: 1.65; }
.legal p + p { margin-top: 12px; }
.legal ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }

/* ---------- account ---------- */
.account { display: grid; gap: 18px; max-width: 640px; }
.panel { padding: 22px; background: var(--bg-soft); border-radius: 22px; display: grid; gap: 12px; }
.panel h2 { font-size: 20px; }
.panel input[readonly] { background: var(--surface-2); color: var(--muted); }
.small { font-size: 13px; }
.legal-inline { font-size: 14px; }
.danger-zone { background: color-mix(in srgb, #ffe3e8 60%, var(--bg)); }
.btn.danger { background: #d92d4b; color: #fff; }
.btn.danger:hover { background: #b81f3b; box-shadow: none; }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 16px; gap: 32px; }
  .hero-art { max-width: 480px; width: 100%; margin: 0 auto; }
  .card.demo { left: -8px; width: 220px; }
  .card.demo.demo-no { right: -4px; width: 190px; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  main { padding: 4px 16px 48px; }
  .top { padding: 12px 16px; }
  .top nav > a:not(.btn) { padding: 6px 9px; }
  .brand span { display: none; }
  .bento { grid-auto-rows: 104px; gap: 8px; padding: 10px; border-radius: 24px; }
  .tile .emoji { font-size: 40px; }
  .tile.t0 .emoji { font-size: 60px; }
  .card.demo { width: 190px; }
  .card.demo.demo-no { display: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card .body { padding: 10px 11px 12px; gap: 6px; }
  .card h3 { font-size: 14px; }
  .reason { font-size: 12.5px; }
  .verdict { font-size: 11px; white-space: normal; }
  .actions { flex-wrap: wrap; }
  .pick { padding: 6px 11px; font-size: 13px; }
  .hint { display: none; }
  .tabs { width: 100%; }
  .tabs button { flex: 1; padding: 8px 6px; font-size: 13.5px; }
  .wish-form textarea { font-size: 16px; }
  .wish-row { flex-wrap: wrap; padding-left: 6px; }
  .selbar { flex-wrap: wrap; bottom: 10px; padding: 12px 14px; border-radius: 24px; }
  .selbar select, .selbar input { flex-basis: 100%; order: 3; }
  .selbar .btn { order: 4; flex: 1; }
  body.has-selbar { padding-bottom: 160px; }
  .toast { bottom: 160px; border-radius: 18px; }
  .auth { padding: 24px 20px; margin: 16px auto; }
  .recent a { flex-direction: column; gap: 2px; }
  .share-link { flex-wrap: wrap; }
  .share-link input { flex-basis: 100%; }
  .consent { left: 10px; right: 10px; bottom: 10px; width: auto; }
  .consent-buttons .btn { flex: 1; }
  .ai-note { font-size: 12.5px; }
}
