/* Layout: binder — summary strip on top, sticky toolbar, sections of card sleeves (63:88) grouped by the chosen classification; add button floats bottom-right */
:root {
  --bg: #eef0f4; --surface: #ffffff; --sleeve: #f7f8fb; --ink: #1a1e29; --muted: #5b6273; --line: #dadde6;
  --accent: #c8322b; --accent-ink: #ffffff; --foil: #b88a12; --danger: #b3261e; --ok: #2f7d4a; --scrim: rgba(18,20,28,.55);
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --r: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root {
  --bg: #12141b; --surface: #1b1e28; --sleeve: #222633; --ink: #eceef4; --muted: #9ba2b3; --line: #2c3040;
  --accent: #ff5d52; --accent-ink: #1a0a09; --foil: #e3bb4a; --danger: #ff6b61; --ok: #5fcf86; --scrim: rgba(0,0,0,.65); color-scheme: dark } }

* { box-sizing: border-box }
html, body { height: 100% }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--body); padding-top: env(safe-area-inset-top, 0px) }
img { max-width: 100% }
[hidden] { display: none !important }
.wrap { max-width: 1120px; margin: 0 auto; padding: 16px 16px 120px; display: grid; gap: 20px }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; margin: 0 }
h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.1 }
.eyebrow { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600 }
button, input, select, textarea { font: inherit; color: inherit }
button { cursor: pointer }
a { color: var(--accent); font-weight: 600 }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px }

/* Top bar */
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .9rem; color: var(--muted) }
.topbar form { margin: 0 }
.hello b { color: var(--ink) }
.link-btn { background: none; border: 0; padding: 4px 0; color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px }

/* Summary */
.head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px }
.stats { display: flex; gap: 24px; flex-wrap: wrap }
.stat b { display: block; font-family: var(--display); font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1 }
.stat span { font-size: .8rem; color: var(--muted) }
.typebar { display: flex; height: 8px; border-radius: 99px; overflow: hidden; background: var(--line) }
.typebar i { display: block; height: 100% }

/* Toolbar */
.toolbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--bg); padding-block: 10px; display: grid; gap: 10px; border-bottom: 1px solid var(--line) }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center }
.search { flex: 1 1 220px; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface) }
.select { padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface) }
.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font-size: .82rem; white-space: nowrap }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink) }
.chip .n { font-variant-numeric: tabular-nums; opacity: .7 }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15) }

/* Sections + cards */
.section { display: grid; gap: 12px }
.section-h { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 1.1rem }
.section-h .count { font-family: var(--body); font-size: .85rem; color: var(--muted); font-weight: 500 }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px }
@media (max-width: 420px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px } }
.card { all: unset; cursor: pointer; display: grid; gap: 6px; min-width: 0; align-content: start }
.card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--r) }
.sleeve { position: relative; aspect-ratio: 63 / 88; max-width: 100%; border-radius: var(--r); overflow: hidden; background: var(--sleeve); border: 1px solid var(--line); transition: transform .15s ease }
.card:hover .sleeve { transform: translateY(-2px) }
.sleeve img { width: 100%; height: 100%; object-fit: cover; display: block }
.sleeve .ph { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 12px; font-family: var(--display); font-weight: 600; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.35) }
.sleeve .ph.blank { background: var(--line); color: var(--muted); text-shadow: none }
.qty { position: absolute; top: 6px; right: 6px; background: var(--ink); color: var(--bg); font-size: .75rem; font-weight: 600; padding: 1px 7px; border-radius: 99px; font-variant-numeric: tabular-nums }
.name { font-weight: 600; line-height: 1.25; overflow-wrap: anywhere }
.meta { display: flex; justify-content: space-between; gap: 6px; font-size: .78rem; color: var(--muted); min-width: 0 }
.meta .num { font-family: var(--mono); font-size: .74rem; white-space: nowrap }
.rar { white-space: nowrap }
.rar.foil { color: var(--foil); font-weight: 600 }
.money { font-variant-numeric: tabular-nums; white-space: nowrap }
.price { font-size: .85rem; font-weight: 600 }
.price span { color: var(--muted); font-weight: 500 }

.empty { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r); padding: 32px 20px; text-align: center; display: grid; gap: 8px; justify-items: center }
.empty p { margin: 0; color: var(--muted); max-width: 46ch }
.notice { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; font-size: .9rem; color: var(--muted) }

.btn { border-radius: var(--r); padding: 11px 16px; font-weight: 600; background: var(--sleeve); border: 1px solid var(--line) }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent }
.btn.block { width: 100% }
.btn.danger { color: var(--danger) }
.btn.danger.armed { background: var(--danger); color: var(--surface); border-color: transparent }
.btn:disabled { opacity: .55; cursor: progress }
.fab { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 10; box-shadow: 0 6px 20px rgba(0,0,0,.25); padding: 14px 20px; border-radius: 99px; font-size: 1rem }

/* Sheet */
.scrim { position: fixed; inset: 0; z-index: 20; background: var(--scrim); display: grid; place-items: center; padding: 16px }
.sheet { background: var(--surface); width: min(760px, 100%); max-height: calc(100% - 8px); overflow: auto; border-radius: 16px; padding: 20px; display: grid; gap: 16px }
@media (max-width: 600px) { .scrim { padding: 0; place-items: end stretch } .sheet { border-radius: 16px 16px 0 0; max-height: 94%; padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)) } }
.sheet-h { display: flex; justify-content: space-between; align-items: center; gap: 12px }
.x { background: none; border: 0; font-size: 1.5rem; line-height: 1; padding: 4px 8px; color: var(--muted) }
.form { display: grid; grid-template-columns: 200px 1fr; gap: 20px; align-items: start }
@media (max-width: 600px) { .form { grid-template-columns: 1fr } }
.photo { display: grid; gap: 8px; justify-items: stretch; position: relative }
.photo .sleeve { width: 100%; max-width: 220px; justify-self: center }
.photo label.btn { text-align: center; display: block }
.photo input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0 }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; min-width: 0 }
.field { display: grid; gap: 4px; min-width: 0 }
.field.full { grid-column: 1 / -1 }
.field label { font-size: .78rem; font-weight: 600; color: var(--muted); letter-spacing: .02em }
.field input, .field select, .field textarea { width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg) }
.field textarea { min-height: 64px; resize: vertical }
.ai { font-size: .82rem; color: var(--muted); min-height: 1.2em; text-align: center }
.actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: space-between }
.actions .right { display: flex; gap: 8px; margin-left: auto }
.err { color: var(--danger); font-size: .88rem; margin: 0 }

/* Valor de referencia */
.ref-box { grid-column: 1 / -1; border: 1px solid var(--line); border-radius: var(--r); padding: 12px; margin: 0; display: grid; gap: 10px; min-width: 0 }
.ref-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px }
.ref-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px }
.ref-actions { display: flex; flex-wrap: wrap; gap: 8px }
.ref-actions a.btn { text-decoration: none; color: inherit }
.ref-results { display: grid; gap: 6px; max-height: 280px; overflow-y: auto }
.ref-option { display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: left; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); width: 100% }
.ref-option:hover { border-color: var(--accent) }
.ref-name { display: grid; min-width: 0; overflow-wrap: anywhere }
.ref-name span { font-size: .8rem; color: var(--muted) }
.ref-prices { display: grid; justify-items: end; font-weight: 600; white-space: nowrap }
.ref-prices small { font-weight: 500; color: var(--muted) }
.ref-line { font-size: .78rem; color: var(--muted) }
.ref-line .money { color: var(--ink); font-weight: 600 }

/* Verificación con TCGdex */
.sleeve img.official { object-fit: contain; background: var(--sleeve) }
.price-row { display: flex; flex-wrap: wrap; gap: 6px }
.price-chip { display: inline-flex; align-items: baseline; gap: 6px; padding: 5px 10px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); font-size: .9rem }
.price-chip small { color: var(--muted); font-size: .75rem }
.ref-tcg { display: grid; gap: 8px }
.ref-tcg code { font-family: var(--mono); font-size: .78rem }
.tcg-panel { border: 2px solid color-mix(in srgb, var(--accent) 35%, var(--line)); border-radius: 12px; padding: 14px; display: grid; gap: 12px; background: color-mix(in srgb, var(--accent) 4%, var(--surface)); min-width: 0 }
.tcg-h { display: flex; justify-content: space-between; align-items: center; gap: 10px }
.tcg-h h3 { font-size: 1.05rem }
.tcg-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; max-height: 420px; overflow-y: auto; padding: 2px }
.tcg-result { display: grid; gap: 6px; text-align: left; padding: 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); min-width: 0 }
.tcg-result:hover { border-color: var(--accent); transform: translateY(-1px) }
.tcg-thumb { aspect-ratio: 63 / 88; max-width: 100%; border-radius: 6px; overflow: hidden; background: var(--sleeve); display: block; position: relative }
.tcg-thumb img { width: 100%; height: 100%; object-fit: contain; display: block }
.tcg-info { display: grid; gap: 1px; font-size: .8rem; color: var(--muted); min-width: 0; overflow-wrap: anywhere }
.tcg-info b { color: var(--ink); font-size: .9rem }
.tcg-info .num { font-family: var(--mono) }
.tcg-info .money { color: var(--ink); font-weight: 600 }
.tcg-compare { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; align-items: start }
@media (max-width: 600px) { .tcg-compare { grid-template-columns: 1fr } .tcg-card-big { max-width: 200px; justify-self: center } }
.tcg-card-big { aspect-ratio: 63 / 88; max-width: 100%; border-radius: 10px; overflow: hidden; background: var(--sleeve); position: relative }
.tcg-card-big img { width: 100%; height: 100%; object-fit: contain; display: block }
.tcg-compare-main { display: grid; gap: 12px; min-width: 0 }
.cmp-table { display: grid; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; font-size: .88rem }
.cmp-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) minmax(0, 1fr); gap: 8px; padding: 8px 10px; border-top: 1px solid var(--line); align-items: center; overflow-wrap: anywhere }
.cmp-row:first-child { border-top: 0 }
.cmp-head { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: var(--bg) }
.cmp-label { display: flex; align-items: center; gap: 6px; font-weight: 600 }
.cmp-label input { width: 16px; height: 16px; accent-color: var(--accent) }
.cmp-ok { color: var(--ok); font-weight: 800; width: 16px; text-align: center }
.cmp-row.is-diff { background: color-mix(in srgb, var(--foil) 9%, transparent); cursor: pointer }
.cmp-row.is-diff .cmp-theirs { font-weight: 600 }
.cmp-mine { color: var(--muted) }
@media (max-width: 600px) {
  .cmp-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2px 10px }
  .cmp-label { grid-column: 1 / -1 }
  .cmp-head span:first-child { display: none }
  .tcg-card-big { max-width: 150px }
}
.tcg-prices { display: grid; gap: 8px }
.credit { margin: 0; font-size: .75rem; color: var(--muted) }
.credit a { color: inherit }

.dup-msg { grid-column: 1 / -1; font-size: .88rem; padding: 10px 12px; border-radius: 8px; color: var(--foil); background: color-mix(in srgb, var(--foil) 12%, transparent); border: 1px solid color-mix(in srgb, var(--foil) 40%, transparent); overflow-wrap: anywhere }
.dup-msg .link-btn { display: inline; padding: 0; margin-left: 2px }

/* Pestañas */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none }
.tab { flex: 0 1 auto; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 12px; font-weight: 600; color: var(--muted); margin-bottom: -1px }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent) }
@media (max-width: 520px) {
  .tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 0; gap: 6px }
  .tab { padding: 9px 6px; border: 1px solid var(--line); border-radius: var(--r); margin: 0; background: var(--surface) }
  .tab[aria-selected="true"] { border-color: var(--accent); box-shadow: inset 0 -3px 0 var(--accent) }
}
.badge { background: var(--accent); color: var(--accent-ink); font-size: .72rem; font-weight: 700; min-width: 20px; padding: 1px 6px; border-radius: 99px; text-align: center; font-variant-numeric: tabular-nums }
.view { display: grid; gap: 20px }
.view-h { display: grid; gap: 6px }
.view-h p { margin: 0; color: var(--muted); max-width: 65ch }
.sub-h { font-size: 1.1rem; font-weight: 600 }

/* Pastillas de estado */
.pill-row { display: flex; flex-wrap: wrap; gap: 4px }
.pill { display: inline-block; font-size: .72rem; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--sleeve); border: 1px solid var(--line); color: var(--muted); white-space: nowrap }
.pill.offer { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); background: color-mix(in srgb, var(--ok) 10%, transparent) }
.pill.alert, .pill.status-pendiente { color: var(--foil); border-color: color-mix(in srgb, var(--foil) 45%, transparent); background: color-mix(in srgb, var(--foil) 12%, transparent) }
.pill.status-aceptada { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); background: color-mix(in srgb, var(--ok) 10%, transparent) }
.pill.status-rechazada { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 35%, transparent); background: color-mix(in srgb, var(--danger) 8%, transparent) }
.owner { font-size: .78rem; color: var(--muted) }

/* Bloque «Ofrecer repetidas» en el formulario */
.trade-box { grid-column: 1 / -1; border: 1px solid var(--line); border-radius: var(--r); padding: 12px; margin: 0; display: grid; gap: 8px; min-width: 0 }
.check { display: flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer }
.check input { width: 18px; height: 18px; accent-color: var(--accent) }
.check:has(input:disabled) { color: var(--muted); cursor: not-allowed }
.hint-line { margin: 0; font-size: .82rem; color: var(--muted) }
.trade-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px }
@media (max-width: 600px) { .trade-fields { grid-template-columns: 1fr } }

/* Ficha de una oferta */
.offer-body { display: grid; gap: 14px; min-width: 0 }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0; font-size: .9rem }
.facts dt { color: var(--muted) }
.facts dd { margin: 0; display: flex; align-items: center; gap: 6px; min-width: 0; overflow-wrap: anywhere }
.offer-form { display: grid; gap: 12px }
.label { font-size: .78rem; font-weight: 600; color: var(--muted); letter-spacing: .02em }
.seg { display: flex; gap: 8px; flex-wrap: wrap }
.seg label { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; font-weight: 600 }
.seg label:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent) }
.seg label:has(input:disabled) { opacity: .45; cursor: not-allowed }
.seg input { accent-color: var(--accent) }

/* Lista de intercambios */
.trade-list { display: grid; gap: 10px }
.trade-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px }
@media (max-width: 520px) { .trade-row { grid-template-columns: 48px minmax(0, 1fr) } .trade-actions { grid-column: 1 / -1; justify-content: flex-end } }
.thumb { position: relative; aspect-ratio: 63 / 88; border-radius: 6px; overflow: hidden; background: var(--sleeve); border: 1px solid var(--line) }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block }
.trade-main { display: grid; gap: 4px; min-width: 0 }
.trade-top { overflow-wrap: anywhere }
.trade-top .num { font-family: var(--mono); font-size: .75rem; color: var(--muted) }
.trade-who { font-size: .82rem; color: var(--muted) }
.trade-msg { margin: 2px 0 0; font-size: .9rem; overflow-wrap: anywhere }
.contact { font-size: .88rem; display: flex; flex-wrap: wrap; align-items: center; gap: 6px }
.contact .email { user-select: all; overflow-wrap: anywhere }
.trade-actions { display: flex; gap: 6px; flex-wrap: wrap }
.btn.sm { padding: 7px 12px; font-size: .85rem }

/* Barra superior: invitar */
.topbar { flex-wrap: wrap }
.invite-btn { margin-left: auto; text-decoration: none; border: 1px solid var(--line); border-radius: 99px; padding: 5px 12px; background: var(--surface) }
.invite-btn::before { content: "＋ "; }

/* Chat */
.chat { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; align-items: start }
@media (max-width: 700px) { .chat { grid-template-columns: 1fr } }
.online { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; display: grid; gap: 8px; min-width: 0 }
.online-h { font-family: var(--body); font-size: .9rem; font-weight: 600; display: flex; align-items: center; gap: 8px }
.online-count { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--muted) }
.online-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .9rem }
.online-list li { display: flex; align-items: center; gap: 8px; min-width: 0; overflow-wrap: anywhere }
@media (max-width: 700px) { .online-list { display: flex; flex-wrap: wrap; gap: 6px 14px } }
.you { color: var(--muted); font-size: .8rem }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 20%, transparent) }
.chat-main { display: grid; gap: 10px; min-width: 0 }
.chat-log { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; height: min(60vh, 520px); overflow-y: auto; display: flex; flex-direction: column; gap: 6px; overscroll-behavior: contain }
.chat-log .empty { border: 0; margin: auto 0 }
.chat-day { align-self: center; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 8px 0 2px }
.msg-bubble { align-self: flex-start; max-width: min(78%, 520px); background: var(--sleeve); border: 1px solid var(--line); border-radius: 12px 12px 12px 4px; padding: 6px 10px 4px; display: grid; gap: 2px; overflow-wrap: anywhere }
.msg-bubble.mine { align-self: flex-end; background: color-mix(in srgb, var(--accent) 14%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 30%, transparent); border-radius: 12px 12px 4px 12px }
.msg-bubble .who { font-size: .75rem; font-weight: 700; color: var(--accent) }
.msg-bubble .text { white-space: pre-wrap }
.msg-bubble time { justify-self: end; font-size: .68rem; color: var(--muted); font-variant-numeric: tabular-nums }
.chat-form { display: flex; gap: 8px }
.chat-form input { flex: 1; min-width: 0; padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface) }

/* Invitaciones */
.invite-sheet { width: min(560px, 100%) }
.invite-new { display: flex; gap: 10px; align-items: end; flex-wrap: wrap }
.invite-new .field { flex: 1 1 240px }
.invite-result { display: grid; gap: 8px; padding: 12px; border-radius: var(--r); border: 1px solid color-mix(in srgb, var(--ok) 40%, transparent); background: color-mix(in srgb, var(--ok) 8%, transparent) }
.invite-result > label { font-size: .78rem; font-weight: 600; color: var(--muted) }
.invite-link-row { display: flex; gap: 8px }
.invite-link-row input { flex: 1; min-width: 0; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font-family: var(--mono); font-size: .78rem }
.btn.wa { text-align: center; text-decoration: none; color: #fff; background: #1f9d55; border-color: transparent }
.invite-list { display: grid; gap: 8px }
.invite-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r) }
.invite-info { display: grid; flex: 1 1 200px; min-width: 0; font-size: .9rem }
.invite-info span { color: var(--muted); font-size: .82rem }

/* Mensajes (también los usa la pantalla de acceso, con estilos propios en auth.css) */
.msg { margin: 0; padding: 10px 12px; border-radius: 8px; font-size: .9rem; display: grid; gap: 2px }
.msg.bad { color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, transparent) }
.msg.ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent) }
.auth-alt { margin: 0; text-align: center; font-size: .92rem; color: var(--muted) }

@media (prefers-reduced-motion: reduce) { * { transition: none !important } }
