:root {
  --bg: #0a0e13;
  --bg-2: #0f141b;
  --card: #141b24;
  --card-2: #1a2330;
  --line: #233041;
  --text: #e8eef5;
  --muted: #8494a7;
  --dim: #5c6b7d;
  --green: #22c55e;
  --green-bg: rgba(34, 197, 94, 0.12);
  --red: #f04444;
  --red-bg: rgba(240, 68, 68, 0.12);
  --amber: #f5a524;
  --amber-bg: rgba(245, 165, 36, 0.12);
  --blue: #4c8dff;
  --blue-bg: rgba(76, 141, 255, 0.12);
  --accent: #3fe0d0;
  --betano: #ff6a13;
  --betcris: #1d6ff2;
  --radius: 16px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.4;
  min-height: 100dvh;
  overscroll-behavior-y: contain;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.num { font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }

/* ---------- Barra superior ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  padding: calc(var(--safe-t) + 12px) 16px 10px;
  background: linear-gradient(var(--bg) 70%, rgba(10, 14, 19, 0));
  display: flex; align-items: center; gap: 10px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.brand-logo { height: 38px; width: auto; display: block; }
.brand em { font-style: normal; color: #3fe0d0; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent); color: #0a0e13; font-size: 17px; font-weight: 900;
}
.conn { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); margin-left: 2px; }
.conn.on { background: var(--green); box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15); }
.topbar .spacer { flex: 1; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--card); display: grid; place-items: center; font-size: 18px;
}

main { max-width: 1180px; margin: 0 auto; padding: 0 16px calc(110px + var(--safe-b)); }

/* ---------- Resumen ---------- */
.summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 4px 0 14px; }
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px;
}
.stat .k { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.stat .v { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; margin-top: 2px; }
.stat .v.green { color: var(--green); }

.tabs {
  display: flex; gap: 4px; background: var(--bg-2); border: 1px solid var(--line);
  padding: 4px; border-radius: 12px; margin-bottom: 14px;
}
.tabs button {
  flex: 1; border: 0; background: transparent; color: var(--muted); font-weight: 600;
  padding: 8px 6px; border-radius: 9px; font-size: 14px;
}
.tabs button.active { background: var(--card-2); color: var(--text); }
.tabs .count { color: var(--dim); font-weight: 500; margin-left: 4px; }

/* ---------- Tarjeta de apuesta ---------- */
.list { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .list { grid-template-columns: repeat(2, 1fr); align-items: start; } }
@media (min-width: 1180px) { .list { grid-template-columns: repeat(3, 1fr); } }

.bet {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  scroll-margin-top: 80px;
}
.bet.st-live { border-color: #2c3b50; }
.bet.st-won { border-color: rgba(34, 197, 94, 0.45); }
.bet.st-lost { opacity: 0.82; }
.bet-head { padding: 14px 14px 10px; display: flex; align-items: center; gap: 8px; }
.book {
  font-size: 11px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 7px; background: var(--card-2); color: var(--text);
}
.book.betano { background: var(--betano); color: #fff; }
.book.betcris { background: var(--betcris); color: #fff; }
.bet-title { font-weight: 700; font-size: 14px; color: var(--muted); }
.bet-head .spacer { flex: 1; }
.pill {
  font-size: 11px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px;
}
.pill.live { background: var(--red-bg); color: #ff7b7b; }
.pill.live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--red); animation: pulse 1.4s infinite; }
.pill.pending { background: var(--card-2); color: var(--muted); }
.pill.won { background: var(--green-bg); color: var(--green); }
.pill.lost { background: var(--red-bg); color: var(--red); }
.pill.void { background: var(--card-2); color: var(--muted); }
@keyframes pulse { 50% { opacity: 0.25; } }

.segs { display: flex; gap: 3px; padding: 0 14px; }
.seg { flex: 1; height: 5px; border-radius: 3px; background: var(--line); }
.seg.won, .seg.half_won { background: var(--green); }
.seg.lost, .seg.half_lost { background: var(--red); }
.seg.live { background: var(--blue); }
.seg.live.winning { background: #5fd38a; opacity: 0.75; }
.seg.live.losing { background: #f08a4b; }
.seg.push, .seg.void { background: var(--dim); }

.money { display: flex; align-items: baseline; gap: 10px; padding: 12px 14px 6px; }
.money .stake { color: var(--muted); font-weight: 600; }
.money .arrow { color: var(--dim); }
.money .payout { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.money .payout.won { color: var(--green); }
.money .payout.lost { color: var(--dim); text-decoration: line-through; }
.money .odds { margin-left: auto; color: var(--muted); font-weight: 700; font-size: 13px; }
.money .odds b { color: var(--text); font-size: 15px; }
.progress-note { padding: 0 14px 10px; color: var(--muted); font-size: 13px; }

.legs { border-top: 1px solid var(--line); }
.leg { display: flex; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); align-items: flex-start; }
.leg:last-child { border-bottom: 0; }
.leg:active { background: var(--bg-2); }
.st-icon {
  width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-size: 13px; font-weight: 900; margin-top: 1px; border: 2px solid var(--line); color: var(--muted);
}
.st-icon.won, .st-icon.half_won { background: var(--green); border-color: var(--green); color: #06260f; }
.st-icon.lost, .st-icon.half_lost { background: var(--red); border-color: var(--red); color: #2a0606; }
.st-icon.live { border-color: var(--blue); color: var(--blue); }
.st-icon.live.winning { border-color: var(--green); color: var(--green); }
.st-icon.live.losing { border-color: var(--amber); color: var(--amber); }
.st-icon.push, .st-icon.void { background: var(--card-2); color: var(--muted); }
.st-icon.unknown { border-style: dashed; }
.leg-main { flex: 1; min-width: 0; }
.leg-label { font-weight: 700; font-size: 15px; }
.leg-game { color: var(--muted); font-size: 13px; margin-top: 3px; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.leg-game .score { color: var(--text); font-weight: 700; }
.leg-game .clock { color: #ff7b7b; font-weight: 700; }
.leg-game .clock.final { color: var(--muted); }
.leg-game .src { font-size: 10px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.05em; }
.leg-result { font-size: 13px; margin-top: 4px; font-weight: 600; }
.leg-result.winning, .leg-result.won, .leg-result.half_won { color: var(--green); }
.leg-result.losing { color: var(--amber); }
.leg-result.lost, .leg-result.half_lost { color: var(--red); }
.leg-result.neutral, .leg-result.pending, .leg-result.unknown, .leg-result.void, .leg-result.push { color: var(--muted); }
.bar { height: 6px; border-radius: 3px; background: var(--line); margin-top: 7px; overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 3px; background: var(--blue); transition: width 0.6s ease; }
.bar.won > i { background: var(--green); }
.bar.lost > i { background: var(--red); }
.leg-odds { color: var(--muted); font-weight: 700; font-size: 13px; padding-top: 2px; }
.warn-link { color: var(--amber); font-size: 13px; font-weight: 600; margin-top: 4px; }

.bet-foot { display: flex; gap: 8px; padding: 10px 14px 14px; border-top: 1px solid var(--line); }
.bet-foot .meta { color: var(--dim); font-size: 12px; flex: 1; align-self: center; }
.ghost {
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  border-radius: 10px; padding: 7px 12px; font-size: 13px; font-weight: 600;
}

.flash { animation: flash 1.2s ease; }
@keyframes flash { 0% { background: rgba(63, 224, 208, 0.18); } 100% { background: transparent; } }

/* ---------- Vacío ---------- */
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty .big { font-size: 44px; }
.empty h3 { color: var(--text); margin: 10px 0 6px; font-size: 18px; }
.empty p { margin: 0 auto 18px; max-width: 320px; }

/* ---------- Botón flotante ---------- */
.fab {
  position: fixed; right: 18px; bottom: calc(20px + var(--safe-b)); z-index: 30;
  height: 58px; padding: 0 22px 0 18px; border-radius: 20px; border: 0;
  background: var(--accent); color: #0a0e13; font-weight: 800; font-size: 16px;
  display: flex; align-items: center; gap: 8px; box-shadow: 0 10px 30px rgba(63, 224, 208, 0.25);
}
.fab span { font-size: 26px; line-height: 1; margin-top: -2px; }

/* ---------- Hojas (bottom sheets) ---------- */
.sheet-wrap {
  position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, 0.55);
  display: flex; align-items: flex-end; justify-content: center; animation: fade 0.18s ease;
}
@keyframes fade { from { opacity: 0; } }
.sheet {
  width: 100%; max-width: 640px; max-height: 92dvh; overflow: auto;
  background: var(--bg-2); border: 1px solid var(--line); border-bottom: 0;
  border-radius: 22px 22px 0 0; padding: 8px 16px calc(20px + var(--safe-b));
  animation: up 0.24s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.sheet.full { max-height: 100dvh; height: 100dvh; border-radius: 0; padding-top: calc(var(--safe-t) + 8px); }
@media (min-width: 700px) {
  .sheet-wrap { align-items: center; }
  .sheet, .sheet.full { border-radius: 22px; border-bottom: 1px solid var(--line); height: auto; max-height: 90dvh; }
}
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 4px auto 12px; }
.sheet-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; position: sticky; top: -8px; background: var(--bg-2); padding: 8px 0; z-index: 2; }
.sheet-head h2 { margin: 0; font-size: 19px; flex: 1; letter-spacing: -0.01em; }

.choice { display: grid; gap: 10px; }
.choice button {
  display: flex; align-items: center; gap: 14px; text-align: left; padding: 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
}
.choice .ic { font-size: 28px; width: 44px; height: 44px; display: grid; place-items: center; background: var(--card-2); border-radius: 12px; }
.choice b { display: block; font-size: 16px; }
.choice small { color: var(--muted); }

/* ---------- Formularios ---------- */
.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field > span { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
input, select, textarea {
  width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 11px 12px; font-size: 16px; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--blue); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 30px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 8px 14px;
  font-weight: 600; font-size: 14px; color: var(--muted);
}
.chip.on { border-color: var(--accent); color: var(--text); background: rgba(63, 224, 208, 0.08); }
.btn {
  border: 0; border-radius: 14px; padding: 14px 18px; font-weight: 800; font-size: 16px;
  background: var(--accent); color: #0a0e13; width: 100%;
}
.btn.secondary { background: var(--card-2); color: var(--text); }
.btn.danger { background: var(--red-bg); color: var(--red); }
.btn:disabled { opacity: 0.5; }

.leg-edit { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px; margin-bottom: 12px; }
.leg-edit-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.leg-edit-head b { flex: 1; }
.leg-edit input, .leg-edit select { background: var(--bg-2); }
.game-btn {
  width: 100%; text-align: left; border: 1px dashed var(--line); background: var(--bg-2);
  border-radius: 12px; padding: 11px 12px; margin-bottom: 10px; color: var(--muted);
}
.game-btn.set { border-style: solid; color: var(--text); }
.game-btn.bad { border-color: var(--amber); color: var(--amber); }
.game-btn small { display: block; color: var(--muted); font-size: 12px; }
.orig { font-size: 12px; color: var(--dim); margin: -4px 0 10px; font-style: italic; }

.games { display: grid; gap: 8px; }
.game-row {
  display: grid; grid-template-columns: 76px 1fr; gap: 10px; align-items: center; text-align: left;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px;
}
.game-row .t { color: var(--muted); font-size: 12px; font-weight: 600; white-space: nowrap; }
.game-row .t.live { color: #ff7b7b; }
.game-row .teams { display: grid; gap: 2px; }
.game-row .teams div { display: flex; justify-content: space-between; gap: 8px; }
.game-row img { width: 18px; height: 18px; object-fit: contain; vertical-align: -4px; margin-right: 6px; }

.toggle-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.toggle-row div { flex: 1; }
.toggle-row small { color: var(--muted); display: block; }
.switch { width: 48px; height: 28px; border-radius: 14px; background: var(--line); border: 0; position: relative; flex: none; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform 0.2s; }
.switch.on { background: var(--green); }
.switch.on::after { transform: translateX(20px); }

table.src { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 6px; }
table.src th, table.src td { text-align: left; padding: 8px 4px; border-bottom: 1px solid var(--line); }
table.src th { color: var(--muted); font-size: 12px; font-weight: 600; }
.hint { color: var(--muted); font-size: 13px; }
.section-title { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; margin: 22px 0 6px; }

/* ---------- Avisos ---------- */
.toasts { position: fixed; top: calc(var(--safe-t) + 10px); left: 0; right: 0; z-index: 80; display: grid; gap: 8px; justify-items: center; pointer-events: none; padding: 0 12px; }
.toast {
  pointer-events: auto; width: 100%; max-width: 460px; background: var(--card-2); border: 1px solid var(--line);
  border-left: 4px solid var(--blue); border-radius: 14px; padding: 12px 14px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  animation: drop 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.toast.good { border-left-color: var(--green); }
.toast.bad { border-left-color: var(--red); }
.toast.warn { border-left-color: var(--amber); }
.toast b { display: block; }
.toast span { color: var(--muted); font-size: 13px; }
@keyframes drop { from { transform: translateY(-20px); opacity: 0; } }

.loading { display: grid; place-items: center; gap: 14px; padding: 50px 20px; text-align: center; color: var(--muted); }
.spinner { width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 820px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }

.login { max-width: 320px; margin: 18vh auto 0; text-align: center; padding: 0 16px; }
.login input { text-align: center; font-size: 28px; letter-spacing: 0.4em; margin: 18px 0 12px; }

.tally { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 13px; font-weight: 700; }
.t-won { color: var(--green); } .t-pend { color: var(--muted); } .t-lost { color: var(--red); } .t-warn { color: var(--amber); }
.bigbar { height: 8px; border-radius: 4px; background: var(--line); margin-top: 8px; overflow: hidden; }
.bigbar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--green), var(--accent)); border-radius: 4px; transition: width 0.6s ease; }
.auto-note { font-size: 12px; color: var(--dim); margin-top: 6px; }
details.fix { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
details.fix summary { color: var(--muted); font-size: 13px; cursor: pointer; }

/* Franja EN VIVO */
.live-banner {
  margin: 10px 14px 0; padding: 10px 12px; border-radius: 12px;
  background: linear-gradient(90deg, rgba(240, 68, 68, 0.16), rgba(240, 68, 68, 0.04));
  border: 1px solid rgba(240, 68, 68, 0.35);
  display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: center;
}
.live-banner .lb-tag { font-size: 11px; font-weight: 900; letter-spacing: 0.08em; color: #ff6b6b; display: inline-flex; align-items: center; gap: 6px; }
.live-banner .lb-tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: pulse 1.2s infinite; box-shadow: 0 0 0 3px rgba(240, 68, 68, 0.25); }
.live-banner .lb-board { font-weight: 700; font-size: 14px; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-banner .lb-board b { color: var(--text); font-size: 16px; margin: 0 4px; }
.live-banner .lb-time { grid-column: 1 / -1; font-size: 13px; color: #ffb0b0; font-weight: 600; }
.live-banner .lb-time b { color: #fff; }
.live-banner.paused { background: linear-gradient(90deg, rgba(245, 165, 36, 0.16), rgba(245, 165, 36, 0.04)); border-color: rgba(245, 165, 36, 0.35); }
.live-banner.paused .lb-tag { color: var(--amber); }
.live-banner.paused .lb-time { color: #ffd591; }
.leg-game .clock.paused { color: var(--amber); }

.viewer-note { background: rgba(63, 224, 208, 0.08); border: 1px solid rgba(63, 224, 208, 0.25); color: var(--text); border-radius: 12px; padding: 9px 12px; font-size: 13px; margin-bottom: 12px; }
.viewer-note b { color: var(--accent); }
body.viewer .leg { cursor: default; }

.lang-btn { font-size: 13px; font-weight: 800; letter-spacing: 0.04em; color: var(--accent); }
@media (max-width: 380px) { .brand span { font-size: 16px; } .brand-logo { height: 32px; } }

.owner-chip { font-size: 12px; font-weight: 700; color: var(--accent); background: rgba(63, 224, 208, 0.1); padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.owner-chip.shared { padding: 3px 6px; }
.bet-foot { flex-wrap: wrap; }
.ghost.on { color: var(--accent); border-color: rgba(63, 224, 208, 0.4); }
.ro { font-size: 12px; color: var(--dim); align-self: center; }
.shared-head { display: flex; align-items: center; gap: 10px; margin: 2px 0 14px; }
.shared-head h2 { margin: 0; font-size: 20px; letter-spacing: -0.01em; }
.share-row { display: flex; gap: 10px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 12px; font-size: 14px; }
.share-row input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--accent); }
.viewer-note a { color: var(--accent); font-weight: 700; }
.tabs button { font-size: 13px; padding: 8px 2px; white-space: nowrap; }
.tabs .count { margin-left: 3px; }

/* Deslizar para actualizar */
.ptr { position: fixed; top: calc(var(--safe-t) - 44px); left: 0; right: 0; z-index: 70; display: flex; justify-content: center; align-items: center; gap: 8px;
  height: 40px; color: var(--muted); font-size: 13px; font-weight: 700; pointer-events: none; opacity: 0; transition: transform 0.25s ease, opacity 0.2s; }
.ptr.show { opacity: 1; transition: none; }
.ptr.loading { transition: transform 0.25s ease; opacity: 1; }
.ptr .ptr-icon { width: 28px; height: 28px; border-radius: 50%; background: var(--card-2); border: 1px solid var(--line); display: grid; place-items: center; transition: transform 0.2s; }
.ptr.ready .ptr-icon { transform: rotate(180deg); color: var(--accent); }
.ptr.loading .ptr-icon { animation: spin 0.8s linear infinite; border-top-color: var(--accent); }
.shared-by { margin: -4px 14px 10px; font-size: 12.5px; color: var(--muted); }
.shared-by b { color: var(--accent); }

.swap-new { color: #ffd34d; }
.swap-old { color: var(--dim); font-weight: 500; font-size: 13px; }
.swap-ico { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--muted); font-size: 11px; color: var(--muted); vertical-align: 2px; }
.odds-note { margin: 0 14px 8px; padding: 8px 10px; border-radius: 10px; background: var(--amber-bg); color: #ffd591; font-size: 12.5px; }

/* Minimizar / maximizar */
.bet-head { cursor: pointer; user-select: none; }
.fold-btn { width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg-2); color: var(--muted); font-size: 13px; display: grid; place-items: center; flex: none; padding: 0; }
.bet.folded .bet-foot { display: none; }
.bet.folded .auto-note { display: none; }
.fold-more { display: block; width: calc(100% - 28px); margin: 0 14px 12px; padding: 9px; border-radius: 10px; border: 1px dashed var(--line); background: transparent; color: var(--muted); font-size: 13px; font-weight: 600; }
.fold-all { display: flex; gap: 8px; justify-content: flex-end; margin: -4px 0 10px; }
.fold-all .ghost { font-size: 12px; padding: 5px 10px; }

.share-choice button.on { border-color: var(--accent); background: rgba(63, 224, 208, 0.07); }
.people { display: grid; gap: 8px; margin-top: 12px; }
.person { display: flex; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.person input { width: 22px; height: 22px; margin: 0; accent-color: var(--accent); flex: none; }
.person small { display: block; color: var(--muted); }

.share-left { color: var(--amber); }
