/* Duetly — shared styles. No external fonts, no images. */
:root {
  --bg: #faf6ee;
  --paper: #fffdf8;
  --ink: #1d1b18;
  --muted: #6b645a;
  --line: #e6dfd1;
  --line-strong: #cfc6b3;
  --accent: #1f4d3a;
  --accent-hover: #173b2c;
  --accent-soft: #e4eee7;
  --warn-bg: #fbefd9;
  --warn-ink: #7a4510;
  --danger: #a3322a;
  --danger-soft: #f8e4e1;
  --serif: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(40, 30, 10, .06), 0 8px 24px rgba(40, 30, 10, .06);
  --shadow-lg: 0 2px 4px rgba(40, 30, 10, .08), 0 18px 48px rgba(40, 30, 10, .14);
  --wrap: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; width: 100%; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 6vw, 3.1rem); }
h2 { font-size: clamp(1.4rem, 3.6vw, 1.9rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--accent-soft); }
.hidden, [hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.serif { font-family: var(--serif); }
.stack > * + * { margin-top: 1rem; }
.row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.1rem; }
.wrap.narrow { max-width: 640px; }
.wrap.mid { max-width: 820px; }
.page { padding: 1.5rem 0 4rem; }
.eyebrow { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: .6rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: .5rem; top: .5rem; }

/* Vinyl motif */
.vinyl {
  --d: 28px;
  display: inline-block; width: var(--d); height: var(--d); border-radius: 50%; flex: none;
  background:
    radial-gradient(circle at center, var(--bg) 0 7%, var(--accent) 8% 27%, #111 28% 31%, transparent 32%),
    repeating-radial-gradient(circle at center, #1c1b19 0 2px, #2b2926 2px 3px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 1px 3px rgba(0,0,0,.3);
  animation: spin 14s linear infinite;
}
.vinyl.big { --d: 220px; box-shadow: var(--shadow-lg); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Header */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 60px; flex-wrap: wrap; padding-top: .35rem; padding-bottom: .35rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--serif); font-size: 1.4rem; font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.nav { display: flex; gap: .15rem; align-items: center; flex-wrap: wrap; }
.nav a, .nav button { font: inherit; font-size: .95rem; color: var(--ink); text-decoration: none; padding: .5rem .75rem; border-radius: 999px; background: none; border: 0; cursor: pointer; position: relative; }
.nav a:hover, .nav button:hover { background: rgba(0,0,0,.05); }
.nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.nav .nav-cta { background: var(--accent); color: #fff; font-weight: 600; }
.nav .nav-cta:hover { background: var(--accent-hover); }
.badge-dot { display: inline-block; min-width: 1.15rem; padding: 0 .3rem; margin-left: .3rem; border-radius: 999px; background: var(--accent); color: #fff; font-size: .72rem; line-height: 1.15rem; text-align: center; }
.site-footer { border-top: 1px solid var(--line); padding: 1.5rem 0 2rem; color: var(--muted); font-size: .875rem; }
.site-footer .wrap { display: flex; gap: 1rem; justify-content: space-between; flex-wrap: wrap; }

/* Buttons */
.btn {
  font: inherit; font-weight: 600; font-size: .95rem; display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .7rem 1.2rem; border-radius: 999px; border: 1.5px solid var(--accent); background: var(--accent); color: #fff;
  cursor: pointer; text-decoration: none; transition: background .15s, transform .1s; min-height: 44px;
}
.btn:hover { background: var(--accent-hover); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn.secondary { background: transparent; color: var(--accent); }
.btn.secondary:hover { background: var(--accent-soft); color: var(--accent); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink); }
.btn.ghost:hover { background: rgba(0,0,0,.05); color: var(--ink); }
.btn.danger { background: var(--danger); border-color: var(--danger); }
.btn.danger.secondary { background: transparent; color: var(--danger); }
.btn.danger.secondary:hover { background: var(--danger-soft); }
.btn.small { padding: .4rem .85rem; font-size: .85rem; min-height: 34px; }
.btn.block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }

/* Forms */
label, .label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .3rem; }
.hint { font-weight: 400; color: var(--muted); font-size: .85rem; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=date], input[type=number], input[type=url], input[type=search], select, textarea {
  font: inherit; width: 100%; padding: .7rem .85rem; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--paper); color: var(--ink); min-height: 44px;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: 3px solid var(--accent-soft); outline-offset: 0; }
.field { margin-bottom: 1rem; }
.field-row { display: grid; gap: 1rem; grid-template-columns: 1fr; }
fieldset { border: 0; padding: 0; margin: 0 0 1rem; min-width: 0; }
legend { font-weight: 600; font-size: .9rem; padding: 0; margin-bottom: .4rem; }
.checks { display: flex; flex-wrap: wrap; gap: .5rem; }
.check { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .8rem; border: 1.5px solid var(--line-strong); border-radius: 999px; background: var(--paper); cursor: pointer; font-weight: 500; font-size: .9rem; margin: 0; }
.check input { accent-color: var(--accent); width: 1rem; height: 1rem; margin: 0; }
.check:has(input:checked) { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.check:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.form-error { background: var(--danger-soft); color: var(--danger); border-radius: var(--radius-sm); padding: .7rem .9rem; margin-bottom: 1rem; font-size: .92rem; }
.form-error ul { margin: .3rem 0 0; padding-left: 1.1rem; }

/* Panels */
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); }
.panel.flat { box-shadow: none; }
.panel + .panel { margin-top: 1rem; }
.notice { background: var(--accent-soft); border-radius: var(--radius-sm); padding: .8rem 1rem; font-size: .92rem; color: #163a2b; }
.notice.warn { background: var(--warn-bg); color: var(--warn-ink); }
.lock-line { display: flex; gap: .6rem; align-items: center; color: var(--muted); font-size: .92rem; padding: .8rem 1rem; border: 1.5px dashed var(--line-strong); border-radius: var(--radius-sm); }

/* Cover art */
.cover { position: relative; width: 44px; height: 44px; flex: none; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.cover::after { content: ""; position: absolute; right: -28%; bottom: -28%; width: 70%; height: 70%; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.35) 0 10%, rgba(0,0,0,.18) 11% 30%, rgba(255,255,255,.12) 31% 100%); }
.cover.sm { width: 28px; height: 28px; border-radius: 7px; }
.cover.lg { width: 64px; height: 64px; border-radius: 14px; }
.cover.xl { width: 104px; height: 104px; border-radius: 20px; }
.cover.round { border-radius: 50%; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { display: inline-flex; align-items: center; gap: .5rem; padding: .25rem .8rem .25rem .3rem; background: #f3ede0; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; max-width: 100%; }
.chip .chip-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip .chip-sub { color: var(--muted); }
.chip.plain { padding-left: .8rem; }
.tag { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; padding: .1rem .4rem; border-radius: 4px; background: var(--accent); color: #fff; }
.tag.mainstream { background: #e5ddc9; color: var(--muted); }

/* Match score + bars */
.score { display: flex; align-items: baseline; gap: .15rem; font-family: var(--serif); color: var(--accent); line-height: 1; }
.score .num { font-size: 3.2rem; font-weight: 700; letter-spacing: -.03em; }
.score .pct { font-size: 1.5rem; font-weight: 600; }
.score-label { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.bars { display: grid; gap: .45rem; }
.bar { display: grid; grid-template-columns: 4.2rem 1fr 2.3rem; gap: .6rem; align-items: center; font-size: .82rem; color: var(--muted); }
.bar-track { height: 8px; border-radius: 99px; background: #ece5d6; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 99px; background: var(--accent); min-width: 2px; transition: width .6s ease; }
.bar-val { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }
.headline { font-family: var(--serif); font-size: 1.2rem; line-height: 1.35; margin: 0; }

/* Landing */
.hero { padding: 3rem 0 2rem; display: grid; gap: 2rem; align-items: center; }
.hero h1 .accent { color: var(--accent); }
.hero .lede { font-size: 1.15rem; color: var(--muted); max-width: 34rem; }
.hero-art { display: flex; justify-content: center; }
.steps3, .steps4 { display: grid; gap: 1rem; margin: 2rem 0; }
.steps3 .panel h3 { margin-top: .3rem; }
.step-num { font-family: var(--serif); font-size: 1.7rem; color: var(--accent); }
.demo-card { max-width: 420px; margin: 0 auto; }

/* Onboarding */
.paths { display: grid; gap: 1.2rem; }
.path { display: flex; flex-direction: column; }
.path h2 { margin-bottom: .3rem; }
.howto { padding-left: 1.2rem; margin: .5rem 0 1rem; }
.howto li { margin-bottom: .5rem; }
.drop {
  border: 2px dashed var(--line-strong); border-radius: var(--radius); padding: 1.5rem 1rem; text-align: center; background: #fcf9f1; transition: border-color .15s, background .15s;
}
.drop.over { border-color: var(--accent); background: var(--accent-soft); }
.progress { height: 10px; border-radius: 99px; background: #ece5d6; overflow: hidden; margin: .6rem 0; }
.progress > div { height: 100%; background: var(--accent); width: 0; transition: width .2s; }
.privacy-line { display: flex; gap: .5rem; align-items: flex-start; font-size: .88rem; color: var(--muted); margin-top: .8rem; }
.wrapped { background: var(--accent); color: #f4efe3; border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-lg); }
.wrapped h2 { color: #fff; }
.wrapped .eyebrow { color: #b9d7c4; }
.wrapped-grid { display: grid; gap: 1.2rem; margin-top: 1rem; }
.wrapped ol { margin: 0; padding: 0; list-style: none; counter-reset: w; }
.wrapped li { counter-increment: w; display: flex; gap: .6rem; align-items: baseline; padding: .25rem 0; border-bottom: 1px solid rgba(255,255,255,.15); }
.wrapped li::before { content: counter(w); font-family: var(--serif); opacity: .7; width: 1.2rem; flex: none; }
.wrapped li small { opacity: .75; }
.wrapped h3 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; font-family: var(--sans); color: #b9d7c4; }
.big-stat { font-family: var(--serif); font-size: 2.4rem; font-weight: 700; line-height: 1; }
.stat-row { display: flex; gap: 2rem; flex-wrap: wrap; }
.sugg { margin: 1rem 0; }

/* Manual editor (data-import agent classes: me-*) */
.editor-host input, .editor-host select { min-height: 40px; padding: .5rem .7rem; }
.editor-host button, .me-btn, .me-add, .me-remove, .me-up, .me-down {
  font: inherit; font-size: .85rem; font-weight: 600; padding: .4rem .8rem; border-radius: 999px; border: 1.5px solid var(--accent); background: transparent; color: var(--accent); cursor: pointer; min-height: 34px;
}
.editor-host button:hover { background: var(--accent-soft); }
.editor-host button[disabled] { opacity: .4; cursor: not-allowed; }
.editor-host ul, .editor-host ol { list-style: none; padding: 0; margin: .4rem 0 1rem; }
.editor-host li { display: flex; gap: .5rem; align-items: center; padding: .4rem 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.editor-host h3, .editor-host h4 { font-size: 1.05rem; margin: 1rem 0 .3rem; }
.editor-host [role=tablist], .me-tabs { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .8rem; }
.editor-host [role=tab] { border-color: var(--line-strong); color: var(--ink); }
.editor-host [role=tab][aria-selected="true"], .editor-host [role=tab].active, .me-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.me-root { display: block; }
.me-row, .me-item { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.me-add-row, .me-form { display: flex; gap: .5rem; flex-wrap: wrap; margin: .5rem 0; }
.me-add-row input, .me-form input { flex: 1 1 140px; width: auto; }
.me-rank { font-family: var(--serif); color: var(--muted); width: 1.6rem; flex: none; }
.me-name { font-weight: 600; flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.me-sub { color: var(--muted); font-size: .88rem; }
.me-empty { color: var(--muted); }
.me-suggestions { display: flex; flex-wrap: wrap; gap: .4rem; }
.me-error { color: var(--danger); font-size: .88rem; }
.me-count { color: var(--muted); font-size: .8rem; }
.me-handle { cursor: grab; color: var(--muted); }

/* Discover */
.discover-head { display: flex; justify-content: space-between; gap: 1rem; align-items: end; flex-wrap: wrap; margin-bottom: 1rem; }
.filters { margin-bottom: 1.4rem; }
.filters summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 44px; }
.filters summary::-webkit-details-marker { display: none; }
.filters summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--accent); }
.filters[open] summary::after { content: "\2212"; }
.filter-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; padding-top: .5rem; }
.range-pair { display: grid; grid-template-columns: 1fr auto 1fr; gap: .5rem; align-items: center; }
.feed { display: grid; gap: 1rem; }
.mcard { display: grid; gap: 1rem; transition: box-shadow .2s, transform .2s; }
.mcard:hover { box-shadow: var(--shadow-lg); }
.mcard-top { display: flex; gap: .9rem; align-items: flex-start; justify-content: space-between; }
.mcard-id { display: flex; gap: .8rem; align-items: center; min-width: 0; }
.mcard-id h3 { margin: 0; font-size: 1.25rem; overflow-wrap: anywhere; }
.meta { color: var(--muted); font-size: .9rem; }
.mcard-score { text-align: right; flex: none; }
.mcard-score .num { font-size: 2.6rem; }
.mcard-foot { display: flex; justify-content: space-between; align-items: center; gap: .8rem; flex-wrap: wrap; }
.skeleton { background: linear-gradient(90deg, #f0e9da, #f8f3e8, #f0e9da); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius); min-height: 190px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }

/* Profile */
.profile-head { display: grid; gap: 1.2rem; }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 1.4rem; line-height: 1; border: 1.5px solid var(--line-strong); background: var(--paper); }
.menu summary::-webkit-details-marker { display: none; }
.menu-list { position: absolute; right: 0; top: 50px; min-width: 170px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); padding: .3rem; z-index: 10; }
.menu-list button { display: block; width: 100%; text-align: left; font: inherit; background: none; border: 0; padding: .6rem .8rem; border-radius: 8px; cursor: pointer; }
.menu-list button:hover { background: rgba(0,0,0,.05); }
.menu-list .danger { color: var(--danger); }
.shared-section h3 { display: flex; align-items: baseline; gap: .5rem; }
.shared-list { list-style: none; margin: 0; padding: 0; }
.shared-item { display: flex; align-items: center; gap: .8rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.shared-item:last-child { border-bottom: 0; }
.shared-item .grow { min-width: 0; }
.shared-item .name { font-weight: 600; overflow-wrap: anywhere; }
.revealed { display: flex; gap: 1rem; align-items: center; }
.revealed img, .avatar { width: 88px; height: 88px; border-radius: 18px; object-fit: cover; background: #eee; flex: none; }

/* Dialog */
dialog { border: 0; border-radius: var(--radius); padding: 1.4rem; max-width: min(520px, calc(100vw - 1.6rem)); width: 100%; box-shadow: var(--shadow-lg); background: var(--paper); color: var(--ink); }
dialog::backdrop { background: rgba(29, 27, 24, .45); }
.quote { display: inline-flex; gap: .5rem; align-items: center; background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: .25rem .8rem .25rem .3rem; font-weight: 600; font-size: .92rem; margin-bottom: .7rem; }
.quote.block { display: flex; border-radius: var(--radius-sm); }
.inline-warn { background: var(--warn-bg); color: var(--warn-ink); border-radius: var(--radius-sm); padding: .55rem .8rem; font-size: .88rem; margin-top: .5rem; }
.inline-warn.error { background: var(--danger-soft); color: var(--danger); }
.inline-warn ul { margin: .2rem 0 0; padding-left: 1.1rem; }

/* Messages */
.msg-layout { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.inbox { list-style: none; margin: 0; padding: 0; }
.inbox a { display: flex; gap: .8rem; align-items: center; padding: .8rem; border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); border: 1px solid transparent; }
.inbox a:hover { background: rgba(0,0,0,.04); }
.inbox a[aria-current="true"] { background: var(--paper); border-color: var(--line); box-shadow: var(--shadow); }
.inbox .who { font-weight: 600; }
.inbox .preview { color: var(--muted); font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox .grow { min-width: 0; }
.pill { font-size: .72rem; padding: .1rem .5rem; border-radius: 99px; background: var(--warn-bg); color: var(--warn-ink); font-weight: 600; white-space: nowrap; }
.thread { display: flex; flex-direction: column; min-height: 60vh; max-height: calc(100vh - 110px); padding: 0; overflow: hidden; }
.thread-head { display: flex; gap: .8rem; align-items: center; padding: .9rem 1.1rem; border-bottom: 1px solid var(--line); }
.thread-head .back { display: inline-block; }
.opener { background: var(--accent-soft); color: #163a2b; padding: .7rem 1.1rem; font-size: .92rem; border-bottom: 1px solid var(--line); }
.thread-body { flex: 1; overflow-y: auto; padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .5rem; scroll-behavior: smooth; }
.bubble { max-width: 82%; padding: .6rem .9rem; border-radius: 18px; background: #f0e9da; overflow-wrap: anywhere; white-space: pre-wrap; }
.bubble.mine { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 5px; }
.bubble:not(.mine) { border-bottom-left-radius: 5px; }
.bubble time { display: block; font-size: .7rem; opacity: .7; margin-top: .15rem; }
.composer { border-top: 1px solid var(--line); padding: .8rem 1.1rem 1rem; background: var(--paper); }
.composer textarea { min-height: 64px; }
.composer .row { margin-top: .5rem; justify-content: space-between; }
.reveal-banner { background: var(--accent); color: #f4efe3; padding: 1rem 1.1rem; display: flex; gap: 1rem; align-items: center; animation: pop .5s ease; }
.reveal-banner h3 { color: #fff; margin: 0 0 .15rem; }
.reveal-banner p { margin: 0; font-size: .92rem; opacity: .9; }
.reveal-banner img, .reveal-banner .cover { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; flex: none; }
@keyframes pop { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: none; } }
.date-sep { align-self: center; font-size: .75rem; color: var(--muted); margin: .4rem 0; }

/* Toasts */
.toasts { position: fixed; z-index: 90; left: 0; right: 0; bottom: 1rem; display: flex; flex-direction: column; align-items: center; gap: .5rem; pointer-events: none; padding: 0 1rem; }
.toast { pointer-events: auto; background: var(--ink); color: #fff; padding: .7rem 1.1rem; border-radius: 12px; box-shadow: var(--shadow-lg); max-width: 440px; font-size: .92rem; animation: pop .25s ease; }
.toast.error { background: var(--danger); }
.toast.success { background: var(--accent); }

/* Settings / privacy */
.kv { display: grid; gap: .2rem; }
.prose { max-width: 40rem; }
.prose h2 { margin-top: 2rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .4rem; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

@media (min-width: 640px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .filter-grid { grid-template-columns: repeat(2, 1fr); }
  .steps3 { grid-template-columns: repeat(3, 1fr); }
  .wrapped-grid { grid-template-columns: repeat(3, 1fr); }
  .bubble { max-width: 70%; }
}
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.15fr .85fr; padding: 4.5rem 0 3rem; }
  .paths { grid-template-columns: 1fr 1fr; align-items: start; }
  .filter-grid { grid-template-columns: repeat(4, 1fr); }
  .profile-head { grid-template-columns: 1fr auto; align-items: start; }
  .msg-layout { grid-template-columns: 320px 1fr; align-items: start; }
  .thread .back { display: none; }
  .page { padding-top: 2.5rem; }
}
@media (max-width: 899px) {
  .msg-layout.has-thread .inbox-col { display: none; }
  .msg-layout:not(.has-thread) .thread-col { display: none; }
  .thread { max-height: calc(100vh - 80px); }
}
@media (max-width: 420px) {
  .score .num { font-size: 2.6rem; }
  .mcard-score .num { font-size: 2.2rem; }
  .bar { grid-template-columns: 3.6rem 1fr 2.1rem; }
  .vinyl.big { --d: 150px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.cover img, img.cover { object-fit: cover; }

/* me-* extras */
.me-section { margin: 0 0 1.2rem; padding-bottom: .4rem; }
.me-head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; margin-bottom: .3rem; }
.me-heading { font-family: var(--serif); font-size: 1.1rem; margin: 0; }
.me-hint { color: var(--muted); font-size: .85rem; margin: 0 0 .5rem; }
.me-status { color: var(--muted); font-size: .85rem; min-height: 1.2em; }
.me-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: .4rem 0; }
.me-chip { display: inline-flex; align-items: center; padding: .25rem .7rem; border-radius: 999px; background: #f3ede0; border: 1px solid var(--line); font-size: .88rem; cursor: pointer; font-family: inherit; }
.me-chip:hover { background: var(--accent-soft); }
.me-item-dragging { opacity: .5; }
.me-item-over { box-shadow: 0 -2px 0 var(--accent); }
.me-actions { display: flex; gap: .35rem; margin-left: auto; }
.me-remove { border-color: var(--line-strong) !important; color: var(--muted) !important; }
.me-input { flex: 1 1 140px; width: auto; }

.footer-links { display: flex; gap: 1rem; }
.agree { display: flex; gap: .55rem; align-items: flex-start; font-weight: 400; font-size: .92rem; line-height: 1.45; }
.agree input { accent-color: var(--accent); width: 1.05rem; height: 1.05rem; margin-top: .15rem; flex: none; }

.howto-box { border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); padding: .2rem .9rem; margin: .6rem 0; background: var(--paper); }
.howto-box summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; justify-content: space-between; list-style: none; }
.howto-box summary::-webkit-details-marker { display: none; }
.howto-box summary::after { content: "+"; font-size: 1.3rem; color: var(--accent); }
.howto-box[open] summary::after { content: "\2212"; }
.howto-box .howto { margin-top: 0; }

@media (min-width: 700px) { .steps4 { grid-template-columns: repeat(2, 1fr); } }
.steps4 .panel h3 { margin-top: .3rem; }
.steps3 > .panel, .steps4 > .panel { margin: 0; }
.twin-box { margin-bottom: 2.5rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.last-section { margin-bottom: 4rem; }
.demo-video { width: 100%; height: auto; display: block; border-radius: var(--radius); box-shadow: var(--shadow-lg); background: #000; }
.turnstile { margin: .25rem 0 1rem; min-height: 65px; }
