:root {
  --bg: #f7f3ee;
  --bg-2: #f1ebe3;
  --surface: #ffffff;
  --ink: #1f1b17;
  --ink-2: #463f38;
  --muted: #7a7067;
  --line: #e9e1d7;
  --line-2: #ddd3c7;
  --accent: #c8553d;
  --accent-ink: #ffffff;
  --accent-hover: #b0472f;
  --accent-soft: #f9e6de;
  --gold: #a8690f;
  --gold-soft: #fbefd6;
  --green: #2f7d5b;
  --green-soft: #e1f2e9;
  --danger: #c0392b;
  --shadow-sm: 0 1px 2px rgba(31, 27, 23, .05), 0 1px 1px rgba(31, 27, 23, .03);
  --shadow: 0 1px 2px rgba(31, 27, 23, .04), 0 8px 24px -8px rgba(31, 27, 23, .12);
  --shadow-lg: 0 24px 60px -12px rgba(31, 27, 23, .28);
  --radius: 18px;
  --radius-sm: 12px;
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Fraunces', ui-serif, Georgia, serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131110;
    --bg-2: #1a1715;
    --surface: #1e1b18;
    --ink: #f4efe9;
    --ink-2: #d6cec5;
    --muted: #a0968c;
    --line: #2d2824;
    --line-2: #3a342f;
    --accent: #ea7b5f;
    --accent-ink: #1a0f0b;
    --accent-hover: #f39479;
    --accent-soft: #3a221b;
    --gold: #f0b65a;
    --gold-soft: #3a2c15;
    --green: #6fcf9f;
    --green-soft: #17322a;
    --danger: #ff7b6b;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -8px rgba(0, 0, 0, .6);
    --shadow-lg: 0 24px 60px -12px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font);
  font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; min-height: 100vh;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.display { font-family: var(--display); font-weight: 600; letter-spacing: -.02em; font-optical-sizing: auto; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 12px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 21px; letter-spacing: -.02em; }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--accent); display: grid; place-items: center; color: var(--accent-ink); box-shadow: inset 0 -2px 0 rgba(0,0,0,.12); }
.logo-mark svg { width: 17px; height: 17px; }
.nav-spacer { flex: 1; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px;
  border-radius: 999px; border: 1px solid transparent; background: transparent; cursor: pointer; font-weight: 550;
  font-size: 14px; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, transform .1s, box-shadow .15s, color .15s;
  user-select: none; -webkit-user-select: none;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 6px 16px -6px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { background: var(--ink-2); }
.btn-outline { border-color: var(--line-2); background: var(--surface); }
.btn-outline:hover { border-color: var(--ink-2); }
.btn-ghost { color: var(--ink-2); }
.btn-ghost:hover { background: var(--bg-2); }
.btn-lg { height: 52px; padding: 0 26px; font-size: 16px; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; }
.btn-block { width: 100%; }
.icon-btn { width: 38px; height: 38px; padding: 0; border-radius: 999px; display: inline-grid; place-items: center; border: 0; background: transparent; cursor: pointer; color: var(--ink-2); transition: background .15s, color .15s; }
.icon-btn:hover { background: var(--bg-2); color: var(--ink); }
.icon-btn svg { width: 19px; height: 19px; }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field .hint { font-size: 12.5px; color: var(--muted); }
.field .error { font-size: 12.5px; color: var(--danger); min-height: 0; }
.input, .textarea, .select {
  width: 100%; height: 44px; padding: 0 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-2);
  background: var(--surface); transition: border-color .15s, box-shadow .15s; outline: none;
}
.textarea { height: auto; min-height: 84px; padding: 11px 14px; resize: vertical; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.input.invalid { border-color: var(--danger); }
.input-group { display: flex; align-items: center; min-width: 0; max-width: 100%; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.input-group:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.input-group .prefix { padding-left: 14px; color: var(--muted); white-space: nowrap; flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* width:0 + flex-basis 0 drops the input's built-in ~20-character minimum, so it never pushes past the card */
.input-group input { border: 0; outline: 0; background: transparent; height: 42px; flex: 1 0 0; width: 0; min-width: 6ch; padding: 0 14px 0 2px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; cursor: pointer; }
.switch input { appearance: none; -webkit-appearance: none; width: 44px; height: 26px; border-radius: 999px; background: var(--line-2); position: relative; cursor: pointer; transition: background .2s; flex: none; margin: 0; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s cubic-bezier(.3,1.4,.5,1); }
.switch input:checked { background: var(--accent); }
.switch input:checked::after { transform: translateX(18px); }
.switch small { display: block; color: var(--muted); font-size: 12.5px; }

/* ---------- landing ---------- */
.hero { padding: 64px 0 40px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow svg, .float-pill svg { width: 16px; height: 16px; flex: none; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 6px 12px; border-radius: 999px; }
.hero h1 { font-size: clamp(42px, 6vw, 68px); line-height: 1.02; margin: 18px 0 18px; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero p.lead { font-size: 18.5px; color: var(--ink-2); max-width: 520px; margin: 0 0 28px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-note { margin-top: 14px; font-size: 13px; color: var(--muted); }
.hero-visual { position: relative; height: 480px; }
.float-card { position: absolute; width: 230px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--line); animation: float 7s ease-in-out infinite; }
.float-card .art { height: 170px; display: grid; place-items: center; font-size: 64px; }
.float-card .meta { padding: 14px 16px 16px; }
.float-card .meta b { display: block; font-size: 14px; }
.float-card .meta span { font-size: 13px; color: var(--muted); }
.float-card.c1 { left: 4%; top: 40px; transform: rotate(-6deg); }
.float-card.c2 { right: 2%; top: 0; animation-delay: -2s; }
.float-card.c3 { left: 30%; top: 230px; animation-delay: -4s; z-index: 2; }
.float-pill { position: absolute; z-index: 3; right: 6%; bottom: 40px; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600; box-shadow: var(--shadow-lg); display: flex; gap: 8px; align-items: center; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 40px 0 80px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.step .num { width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; margin-bottom: 14px; }
.step h3 { margin: 0 0 6px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); }
.footer { padding: 32px 0 48px; color: var(--muted); font-size: 13px; text-align: center; }

/* ---------- auth ---------- */
.auth-wrap { min-height: calc(100vh - 64px); display: grid; place-items: center; padding: 24px 20px 80px; }
.auth-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 34px 30px 28px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 30px; margin: 0 0 6px; }
.auth-card .sub { color: var(--muted); margin: 0 0 24px; }
.auth-switch { text-align: center; margin-top: 18px; color: var(--muted); font-size: 14px; }
.auth-switch a { color: var(--accent); font-weight: 600; text-decoration: none; }
.form-error { background: color-mix(in srgb, var(--danger) 10%, transparent); color: var(--danger); padding: 10px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 14px; display: none; }
.form-error.show { display: block; animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.avail { font-size: 12.5px; font-weight: 600; }
.avail.ok { color: var(--green); } .avail.bad { color: var(--danger); }

/* ---------- app ---------- */
.app-head { padding: 26px 0 8px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.app-head h1 { margin: 0; font-size: clamp(30px, 4vw, 40px); line-height: 1.1; display: flex; align-items: center; gap: 12px; }
.app-head .meta { color: var(--muted); margin-top: 6px; font-size: 14px; }
.list-emoji { font-size: .9em; cursor: pointer; border-radius: 12px; padding: 0 4px; transition: background .15s; }
.list-emoji:hover { background: var(--bg-2); }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding: 14px 0 4px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; font-weight: 550; font-size: 14px; color: var(--ink-2); transition: all .15s; }
.tab:hover { border-color: var(--ink-2); }
.tab.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tab .count { font-size: 12px; opacity: .6; font-weight: 600; }
.tab.add { border-style: dashed; color: var(--muted); }

.adder { margin: 18px 0 26px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 8px 8px 8px 18px; display: flex; align-items: center; gap: 12px; transition: box-shadow .2s, border-color .2s; }
.adder:focus-within { border-color: var(--accent); box-shadow: var(--shadow), 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); }
.adder svg.lead-icon { width: 20px; height: 20px; color: var(--muted); flex: none; }
.adder input { flex: 1; border: 0; outline: 0; background: transparent; height: 48px; font-size: 16px; min-width: 0; }
.adder .kbd { font-size: 12px; color: var(--muted); border: 1px solid var(--line-2); border-radius: 6px; padding: 2px 6px; margin-right: 4px; }
.ext-banner { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 16px; background: var(--accent-soft); margin-bottom: 18px; font-size: 14px; }
.ext-banner .grow { flex: 1; }
.ext-banner b { display: block; }

/* ---------- item grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 20px; padding-bottom: 80px; }
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s; animation: pop .35s cubic-bezier(.2,.8,.2,1) both; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.card-media { display: block; aspect-ratio: 1 / 1; background: #fff; position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.card-media img { position: relative; z-index: 1; background: #fff; width: 100%; height: 100%; object-fit: contain; padding: 14px; transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.card:hover .card-media img { transform: scale(1.04); }
.card-media .ph { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-size: 56px; color: var(--muted); background: linear-gradient(135deg, var(--bg-2), var(--bg)); }
.badge { position: absolute; top: 10px; left: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 650; padding: 5px 10px; border-radius: 999px; background: var(--gold-soft); color: var(--gold); box-shadow: var(--shadow-sm); }
.badge svg { width: 13px; height: 13px; }
.badge.gifted { background: var(--green-soft); color: var(--green); left: auto; right: 10px; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-site { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); font-weight: 550; text-transform: lowercase; }
.card-site img { width: 14px; height: 14px; border-radius: 3px; }
.card-title { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-title a { text-decoration: none; }
.card-note { margin: 0; font-size: 13.5px; color: var(--ink-2); background: var(--bg); border-radius: 10px; padding: 8px 10px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 6px; }
.price { font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; }
.price.none { color: var(--muted); font-weight: 500; font-size: 13px; }
.qty { font-size: 12px; color: var(--muted); font-weight: 600; }
.card-actions { display: flex; gap: 8px; margin-top: 10px; }
.card-actions .btn { flex: 1; }
.card-tools { position: absolute; top: 8px; right: 8px; z-index: 3; display: flex; gap: 4px; opacity: 0; transform: translateY(-4px); transition: all .18s; }
.card:hover .card-tools, .card:focus-within .card-tools { opacity: 1; transform: none; }
@media (hover: none) { .card-tools { opacity: 1; transform: none; } }
.card-tools .icon-btn { width: 34px; height: 34px; background: color-mix(in srgb, var(--surface) 92%, transparent); box-shadow: var(--shadow); backdrop-filter: blur(8px); }
.card-tools .icon-btn svg { width: 16px; height: 16px; }
.card-tools .icon-btn.on { color: var(--gold); }
.card.is-claimed .card-media img, .card.is-claimed .card-media .ph { opacity: .45; filter: grayscale(.6); }
.card.is-claimed .card-title { color: var(--muted); }
.card.loading .card-media { background: linear-gradient(90deg, var(--bg-2) 25%, var(--bg) 50%, var(--bg-2) 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
.card.loading .sk { height: 12px; border-radius: 6px; background: var(--bg-2); }
@keyframes shimmer { to { background-position: -200% 0; } }

.empty { text-align: center; padding: 56px 20px 90px; max-width: 520px; margin: 0 auto; }
.empty .art { font-size: 54px; margin-bottom: 8px; }
.empty h2 { font-size: 26px; margin: 0 0 8px; }
.empty p { color: var(--muted); margin: 0 0 20px; }

/* ---------- public list ---------- */
.list-hero { padding: 40px 0 14px; text-align: center; }
.avatar { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 14px; font-family: var(--display); font-size: 26px; font-weight: 600; color: #fff; background: linear-gradient(135deg, var(--accent), #e8a87c); box-shadow: var(--shadow); }
.list-hero h1 { font-size: clamp(32px, 5vw, 50px); margin: 0 0 8px; line-height: 1.08; }
.list-hero .by { color: var(--muted); font-size: 15px; }
.list-hero .desc { max-width: 560px; margin: 14px auto 0; color: var(--ink-2); font-size: 16px; white-space: pre-line; }
.chips { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.chip { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 22px 0 16px; flex-wrap: wrap; }
.toolbar .count { color: var(--muted); font-size: 14px; }
.seg { display: inline-flex; background: var(--bg-2); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: transparent; padding: 6px 12px; border-radius: 999px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--muted); }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.owner-banner { margin: 16px auto 0; max-width: 640px; display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; background: var(--gold-soft); color: var(--ink); border-radius: 14px; padding: 10px 16px; font-size: 14px; }
.lists-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; padding: 24px 0 80px; }
.list-card { text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: transform .2s, box-shadow .2s; display: block; }
.list-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.list-card .e { font-size: 38px; }
.list-card h3 { margin: 10px 0 4px; font-size: 20px; }
.list-card p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- modal & toast ---------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(20, 16, 12, .45); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 20px; animation: fade .2s; }
.modal { width: 100%; max-width: 480px; max-height: calc(100vh - 40px); overflow: auto; background: var(--surface); border-radius: 24px; box-shadow: var(--shadow-lg); padding: 26px; animation: rise .28s cubic-bezier(.2,.9,.3,1.2); }
.modal h2 { margin: 0 0 4px; font-size: 24px; }
.modal .sub { color: var(--muted); margin: 0 0 20px; font-size: 14.5px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; flex-wrap: wrap; }
.modal-actions .left { margin-right: auto; }
.modal .preview { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 14px; background: var(--bg); margin-bottom: 18px; }
.modal .preview img, .modal .preview .ph { width: 64px; height: 64px; border-radius: 10px; object-fit: contain; background: #fff; flex: none; }
.modal .preview .ph { display: grid; place-items: center; font-size: 26px; }
.modal .preview b { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.emoji-row { display: flex; flex-wrap: wrap; gap: 6px; }
.emoji-row button { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-size: 20px; cursor: pointer; transition: all .12s; }
.emoji-row button.on { border-color: var(--accent); background: var(--accent-soft); transform: scale(1.06); }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(.97); } }
@media (max-width: 560px) {
  .modal-backdrop { place-items: end center; padding: 0; }
  .modal { border-radius: 24px 24px 0 0; max-height: 92vh; padding-bottom: calc(26px + env(safe-area-inset-bottom)); animation: sheet .3s cubic-bezier(.2,.9,.3,1); }
  @keyframes sheet { from { transform: translateY(100%); } }
}
.toasts { position: fixed; z-index: 200; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; background: var(--ink); color: var(--bg); padding: 12px 14px 12px 18px; border-radius: 14px; box-shadow: var(--shadow-lg); font-size: 14px; font-weight: 500; animation: rise .25s cubic-bezier(.2,.9,.3,1.2); }
.toast button { background: transparent; border: 0; color: var(--accent); font-weight: 700; cursor: pointer; padding: 4px 6px; }
.toast.out { opacity: 0; transform: translateY(8px); transition: all .2s; }

.menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 50; animation: rise .16s; }
.menu .who { padding: 10px 12px 8px; border-bottom: 1px solid var(--line); margin-bottom: 6px; font-size: 13px; color: var(--muted); }
.menu .who b { display: block; color: var(--ink); font-size: 14px; }
.menu button, .menu a { display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 12px; border: 0; background: transparent; border-radius: 9px; cursor: pointer; text-decoration: none; font-size: 14px; text-align: left; }
.menu button:hover, .menu a:hover { background: var(--bg-2); }
.menu svg { width: 16px; height: 16px; color: var(--muted); }
.menu .danger { color: var(--danger); }
.rel { position: relative; }
.user-btn { width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--accent), #e8a87c); }

/* ---------- extension page ---------- */
.ext-page { max-width: 760px; padding: 48px 20px 80px; }
.ext-page h1 { font-size: clamp(34px, 5vw, 48px); margin: 0 0 10px; line-height: 1.08; }
.ext-page .lead { color: var(--ink-2); font-size: 17px; margin: 0 0 30px; }
.browser-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; }
.panel ol { margin: 0; padding-left: 20px; display: grid; gap: 10px; }
.panel code { background: var(--bg-2); padding: 2px 6px; border-radius: 6px; font-size: 13px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; gap: 10px; }
  .hero-visual { height: 380px; transform: scale(.88); }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-body { padding: 10px 12px 12px; }
  .card-title { font-size: 14px; }
  .card-actions { flex-direction: column; }
  .card-actions .btn { height: 36px; font-size: 13px; }
  .row { grid-template-columns: 1fr; }
  .adder .kbd { display: none; }
  .hide-sm { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
