/* ════════════════════════════════════════════════════════════════════
   CABANA DEALS · the offer sheet, deal cards in the messenger, partner
   settings and desk. Light and dark from the system setting; every
   animation stands down under prefers-reduced-motion.
   ════════════════════════════════════════════════════════════════════ */
:root {
  --cbd-ink: #0A0A14; --cbd-ink2: #3A3C55; --cbd-ink3: #7D809D;
  --cbd-bg: #F6F7FB; --cbd-card: #FFFFFF; --cbd-soft: #F1F2F8; --cbd-line: rgba(10,10,20,.08);
  --cbd-pri: #4361FF; --cbd-pri2: #7B2FF7; --cbd-grad: linear-gradient(135deg,#3D5BFF 0%,#7B2FF7 100%);
  --cbd-sun: linear-gradient(135deg,#FF8A3D 0%,#FF4F7B 100%);
  --cbd-mint: #0FA897; --cbd-mint-bg: rgba(15,168,151,.10); --cbd-amber: #B26A00; --cbd-amber-bg: rgba(255,170,40,.14);
  --cbd-red: #C0122A; --cbd-shadow: 0 30px 80px rgba(10,10,20,.28), 0 2px 8px rgba(10,10,20,.06);
  --cbd-f: 'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',system-ui,sans-serif;
  --cbd-spring: cubic-bezier(.22,1.2,.36,1); --cbd-out: cubic-bezier(.22,1,.36,1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --cbd-ink: #F3F4FA; --cbd-ink2: #C3C6DA; --cbd-ink3: #8D90AB;
    --cbd-bg: #0B0C14; --cbd-card: #151622; --cbd-soft: #1E2030; --cbd-line: rgba(255,255,255,.09);
    --cbd-pri: #7C8CFF; --cbd-mint: #3DDBC4; --cbd-mint-bg: rgba(61,219,196,.12); --cbd-amber: #FFB547; --cbd-amber-bg: rgba(255,181,71,.12);
    --cbd-red: #FF6B81; --cbd-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.06);
  }
}

/* ── shell ──────────────────────────────────────────────────────────── */
.cbd { position: fixed; inset: 0; z-index: 9600; font: 400 14px/1.5 var(--cbd-f); color: var(--cbd-ink); -webkit-font-smoothing: antialiased; }
.cbd *, .cbd *::before, .cbd *::after { box-sizing: border-box; }
.cbd button { font: inherit; color: inherit; cursor: pointer; }
.cbd svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.cbd-scrim { position: absolute; inset: 0; background: rgba(8,8,16,.5); backdrop-filter: blur(6px) saturate(1.2); -webkit-backdrop-filter: blur(6px) saturate(1.2); opacity: 0; transition: opacity .3s ease; }
.cbd.open .cbd-scrim { opacity: 1; }
.cbd-sheet {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 94vh; overflow: auto; overscroll-behavior: contain;
  background: var(--cbd-card); border-radius: 26px 26px 0 0; box-shadow: var(--cbd-shadow);
  padding: 10px 20px calc(22px + env(safe-area-inset-bottom)); outline: none;
  transform: translateY(104%); transition: transform .46s var(--cbd-spring);
}
.cbd.open .cbd-sheet { transform: none; }
.cbd.closing .cbd-sheet { transform: translateY(104%); transition: transform .3s var(--cbd-out); }
@media (min-width: 720px) {
  .cbd-sheet { left: 50%; right: auto; bottom: auto; top: 50%; width: 460px; border-radius: 26px; padding: 18px 26px 24px;
    transform: translate(-50%, -46%) scale(.96); opacity: 0; transition: transform .42s var(--cbd-spring), opacity .25s ease; }
  .cbd.open .cbd-sheet { transform: translate(-50%, -50%); opacity: 1; }
  .cbd.closing .cbd-sheet { transform: translate(-50%, -46%) scale(.97); opacity: 0; }
}
.cbd-grab { width: 44px; height: 5px; border-radius: 3px; background: var(--cbd-line); margin: 0 auto 10px; touch-action: none; cursor: grab; }
@media (min-width: 720px) { .cbd-grab { display: none; } }
.cbd-x { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--cbd-line); background: var(--cbd-card); display: inline-flex; align-items: center; justify-content: center; transition: background .15s, transform .15s; }
.cbd-x:hover { background: var(--cbd-soft); } .cbd-x:active { transform: scale(.94); }
.cbd-body { animation: cbdRise .5s var(--cbd-out) both; }
@keyframes cbdRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ── head ───────────────────────────────────────────────────────────── */
.cbd-head { display: flex; gap: 14px; align-items: center; padding: 4px 44px 14px 0; border-bottom: 1px solid var(--cbd-line); margin-bottom: 16px; }
.cbd-head img, .cbd-ph { width: 56px; height: 56px; border-radius: 16px; object-fit: cover; flex-shrink: 0; background: var(--cbd-soft); }
.cbd-ph { display: inline-flex; align-items: center; justify-content: center; color: var(--cbd-pri); }
.cbd-ph svg { width: 24px; height: 24px; }
.cbd-head b { display: block; font: 750 16px/1.25 var(--cbd-f); letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cbd-head span { display: block; font-size: 12.5px; color: var(--cbd-ink3); margin-top: 2px; }
.cbd-kick { display: inline-block; font: 700 10.5px/1 var(--cbd-f); letter-spacing: .09em; text-transform: uppercase; color: var(--cbd-pri); margin-bottom: 5px; }

/* ── the number ─────────────────────────────────────────────────────── */
.cbd-price { text-align: center; padding: 6px 0 4px; }
.cbd-amount { display: inline-flex; align-items: baseline; gap: 8px; padding: 6px 14px; border-radius: 18px; transition: background .2s; cursor: text; }
.cbd-amount:focus-within { background: var(--cbd-soft); }
.cbd-cur { font: 700 16px var(--cbd-f); color: var(--cbd-ink3); }
.cbd-amount input { width: 6.2ch; border: 0; outline: 0; background: none; color: var(--cbd-ink); text-align: center;
  font: 820 44px/1.05 var(--cbd-f); letter-spacing: -.035em; font-variant-numeric: tabular-nums; padding: 0; }
.cbd-per { font: 600 13px var(--cbd-f); color: var(--cbd-ink3); }
.cbd-list { font-size: 12.5px; color: var(--cbd-ink3); margin-top: 2px; }
.cbd-list s { opacity: .8; } .cbd-list b { color: var(--cbd-ink2); }

/* ── slider ─────────────────────────────────────────────────────────── */
.cbd-range { padding: 16px 2px 4px; }
.cbd-range input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 30px; background: transparent; margin: 0; --p: 50%; }
.cbd-range input[type=range]::-webkit-slider-runnable-track { height: 8px; border-radius: 99px; background: linear-gradient(90deg, #3D5BFF 0%, #7B2FF7 var(--p), var(--cbd-soft) var(--p)); }
.cbd-range input[type=range]::-moz-range-track { height: 8px; border-radius: 99px; background: var(--cbd-soft); }
.cbd-range input[type=range]::-moz-range-progress { height: 8px; border-radius: 99px; background: var(--cbd-grad); }
.cbd-range input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -10px; border-radius: 50%; background: #fff; border: 0;
  box-shadow: 0 0 0 6px rgba(67,97,255,.18), 0 4px 14px rgba(67,97,255,.45); transition: transform .15s var(--cbd-spring), box-shadow .2s; }
.cbd-range input[type=range]:active::-webkit-slider-thumb { transform: scale(1.14); box-shadow: 0 0 0 10px rgba(67,97,255,.16), 0 6px 18px rgba(67,97,255,.5); }
.cbd-range input[type=range]::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 6px rgba(67,97,255,.18), 0 4px 14px rgba(67,97,255,.45); }
.cbd-range input[type=range]:focus-visible { outline: none; }
.cbd-range input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--cbd-card), 0 0 0 7px var(--cbd-pri); }
.cbd-ticks { display: flex; justify-content: space-between; font: 600 11px var(--cbd-f); color: var(--cbd-ink3); margin-top: 2px; font-variant-numeric: tabular-nums; }
.cbd-chips { display: flex; gap: 6px; justify-content: center; flex-wrap: nowrap; margin: 10px 0 4px; overflow-x: auto; scrollbar-width: none; }
.cbd-chips::-webkit-scrollbar { display: none; }
.cbd-chip { border: 1px solid var(--cbd-line); background: var(--cbd-card); border-radius: 999px; padding: 8px 12px; font: 650 12.5px/1 var(--cbd-f); color: var(--cbd-ink2); flex-shrink: 0;
  transition: transform .18s var(--cbd-spring), background .15s, color .15s, border-color .15s; }
.cbd-chip:hover { border-color: rgba(67,97,255,.35); transform: translateY(-1px); }
.cbd-chip:active { transform: scale(.94); }
.cbd-chip[aria-pressed="true"] { background: var(--cbd-ink); color: var(--cbd-card); border-color: var(--cbd-ink); }

/* ── stats & meter ──────────────────────────────────────────────────── */
.cbd-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 12px; }
.cbd-stats > div { background: var(--cbd-soft); border-radius: 16px; padding: 12px 14px; min-width: 0; }
.cbd-stats small { display: block; font: 650 11px/1 var(--cbd-f); letter-spacing: .04em; text-transform: uppercase; color: var(--cbd-ink3); margin-bottom: 6px; }
.cbd-stats b { display: block; font: 800 18px/1.15 var(--cbd-f); letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cbd-stats b.good { color: var(--cbd-mint); }
.cbd-stats em { display: block; font-style: normal; font-size: 11.5px; color: var(--cbd-ink3); margin-top: 3px; }
.cbd-meter { border: 1px solid var(--cbd-line); border-radius: 16px; padding: 12px 14px; margin-bottom: 12px; --m: var(--cbd-mint); }
.cbd-meter.is-fair { --m: #2F7BFF; } .cbd-meter.is-bold { --m: var(--cbd-amber); } .cbd-meter.is-long { --m: var(--cbd-red); }
.cbd-meter-bar { height: 6px; border-radius: 99px; background: var(--cbd-soft); overflow: hidden; }
.cbd-meter-bar i { display: block; height: 100%; border-radius: inherit; background: var(--m); transition: width .45s var(--cbd-out), background .3s; }
.cbd-meter-t { display: flex; gap: 8px; align-items: baseline; margin-top: 8px; flex-wrap: wrap; }
.cbd-meter-t b { color: var(--m); font: 750 13.5px var(--cbd-f); transition: color .3s; }
.cbd-meter-t span { font-size: 12.5px; color: var(--cbd-ink2); }
.cbd-meter small { display: block; font-size: 11px; color: var(--cbd-ink3); margin-top: 4px; }

/* ── note, errors, buttons ──────────────────────────────────────────── */
.cbd-note { display: block; margin-bottom: 6px; }
.cbd-note > span { display: block; font: 650 12.5px var(--cbd-f); color: var(--cbd-ink2); margin-bottom: 6px; }
.cbd-note em { font-style: normal; color: var(--cbd-ink3); font-weight: 500; }
.cbd-note textarea { width: 100%; resize: none; border: 1px solid var(--cbd-line); background: var(--cbd-card); color: var(--cbd-ink); border-radius: 14px; padding: 10px 12px; font: 400 14px/1.45 var(--cbd-f); outline: 0; transition: border-color .15s, box-shadow .15s; }
.cbd-note textarea:focus { border-color: rgba(67,97,255,.45); box-shadow: 0 0 0 4px rgba(67,97,255,.12); }
.cbd-err { min-height: 18px; margin: 4px 0 8px; font: 600 12.5px/1.4 var(--cbd-f); color: var(--cbd-red); }
.cbd-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 0; border-radius: 14px; padding: 12px 18px;
  background: var(--cbd-grad); color: #fff !important; font: 700 14px/1 var(--cbd-f); letter-spacing: -.005em; overflow: hidden; isolation: isolate;
  box-shadow: 0 8px 22px rgba(67,97,255,.32); transition: transform .18s var(--cbd-spring), box-shadow .2s, filter .2s, opacity .2s; }
.cbd-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(67,97,255,.38); }
.cbd-btn:active { transform: scale(.97); }
.cbd-btn:focus-visible { outline: 3px solid rgba(67,97,255,.45); outline-offset: 2px; }
.cbd-btn:disabled { cursor: default; opacity: .7; transform: none; }
.cbd-btn::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-120%); }
.cbd-btn:hover::after { transform: translateX(120%); transition: transform .8s ease; }
.cbd-btn.big { width: 100%; padding: 16px 18px; font-size: 15.5px; border-radius: 16px; }
.cbd-btn.sm { padding: 9px 13px; font-size: 13px; border-radius: 12px; box-shadow: 0 4px 12px rgba(67,97,255,.25); }
.cbd-btn.ghost { background: var(--cbd-card); color: var(--cbd-ink) !important; border: 1px solid var(--cbd-line); box-shadow: none; }
.cbd-btn.ghost:hover { background: var(--cbd-soft); box-shadow: none; }
.cbd-btn.soft { background: rgba(67,97,255,.10); color: var(--cbd-pri) !important; box-shadow: none; }
.cbd-btn.soft:hover { background: rgba(67,97,255,.16); box-shadow: none; }
.cbd-btn.glow { background: var(--cbd-sun); box-shadow: 0 8px 22px rgba(255,79,123,.35); animation: cbdGlow 2.4s ease-in-out infinite; }
.cbd-btn.sure { background: linear-gradient(135deg,#0FA897,#2BC46F); box-shadow: 0 8px 22px rgba(15,168,151,.35); animation: cbdNudge .5s var(--cbd-spring); }
.cbd-btn.busy { color: transparent !important; pointer-events: none; }
.cbd-btn.busy > * { opacity: 0; }
.cbd-btn.busy::before { content: ''; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px; border-radius: 50%; border: 2.4px solid rgba(255,255,255,.4); border-top-color: #fff; animation: cbdSpin .7s linear infinite; }
.cbd-btn.ghost.busy::before, .cbd-btn.soft.busy::before { border-color: rgba(67,97,255,.25); border-top-color: var(--cbd-pri); }
.cbd-link { border: 0; background: none; color: var(--cbd-pri); font: 650 12.5px var(--cbd-f); margin-left: auto; padding: 2px 0; }
.cbd-fine { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; line-height: 1.45; color: var(--cbd-ink3); margin: 12px 2px 0; }
.cbd-fine svg { width: 15px; height: 15px; margin-top: 1px; color: var(--cbd-mint); }
@keyframes cbdSpin { to { transform: rotate(360deg); } }
@keyframes cbdGlow { 0%,100% { box-shadow: 0 8px 22px rgba(255,79,123,.30); } 50% { box-shadow: 0 10px 30px rgba(255,79,123,.55); } }
@keyframes cbdNudge { 0% { transform: scale(.94); } 60% { transform: scale(1.04); } 100% { transform: none; } }
.cbd-shake { animation: cbdShake .42s ease; }
@keyframes cbdShake { 10%,90% { transform: translateX(-1px); } 20%,80% { transform: translateX(3px); } 30%,50%,70% { transform: translateX(-6px); } 40%,60% { transform: translateX(6px); } }

/* ── empty, success ─────────────────────────────────────────────────── */
.cbd-empty { text-align: center; padding: 26px 8px 8px; }
.cbd-empty.compact { padding-top: 8px; }
.cbd-empty > svg { width: 34px; height: 34px; color: var(--cbd-pri); padding: 12px; box-sizing: content-box; background: rgba(67,97,255,.10); border-radius: 18px; margin-bottom: 10px; }
.cbd-empty b { display: block; font: 780 18px/1.25 var(--cbd-f); letter-spacing: -.02em; }
.cbd-empty p { color: var(--cbd-ink2); margin: 6px auto 16px; max-width: 34ch; }
.cbd-done { position: relative; text-align: center; padding: 26px 6px 6px; }
.cbd-done b { display: block; font: 820 22px/1.2 var(--cbd-f); letter-spacing: -.025em; margin-top: 6px; animation: cbdRise .5s .25s var(--cbd-out) both; }
.cbd-done p { color: var(--cbd-ink2); margin: 6px auto 18px; max-width: 32ch; animation: cbdRise .5s .32s var(--cbd-out) both; }
.cbd-done .cbd-btn { animation: cbdRise .5s .4s var(--cbd-out) both; }
.cbd-ring { width: 76px; height: 76px; }
.cbd-ring circle { fill: none; stroke: var(--cbd-pri); stroke-width: 3; stroke-dasharray: 183; stroke-dashoffset: 183; animation: cbdDraw .6s .05s var(--cbd-out) forwards; transform-origin: center; }
.cbd-ring path { fill: none; stroke: var(--cbd-pri); stroke-width: 4; stroke-dasharray: 44; stroke-dashoffset: 44; animation: cbdDraw .4s .5s var(--cbd-out) forwards; }
.cbd-done.agreed .cbd-ring circle, .cbd-done.agreed .cbd-ring path { stroke: var(--cbd-mint); }
@keyframes cbdDraw { to { stroke-dashoffset: 0; } }
.cbd-burst { position: absolute; left: 50%; top: 64px; width: 0; height: 0; pointer-events: none; }
.cbd-burst.live { top: 50%; z-index: 3; }
.cbd-burst i { position: absolute; width: 8px; height: 8px; border-radius: 2px; opacity: 0; animation: cbdBurst .95s .35s var(--cbd-out) forwards; }
.cbd-burst.live i { animation-delay: 0s; }
.cbd-burst i:nth-child(3n) { background: #7B2FF7; } .cbd-burst i:nth-child(3n+1) { background: #FF8A3D; border-radius: 50%; } .cbd-burst i:nth-child(3n+2) { background: #0FA897; }
.cbd-burst i:nth-child(1) { --x: -90px; --y: -40px; } .cbd-burst i:nth-child(2) { --x: 80px; --y: -56px; } .cbd-burst i:nth-child(3) { --x: -54px; --y: -86px; }
.cbd-burst i:nth-child(4) { --x: 58px; --y: -92px; } .cbd-burst i:nth-child(5) { --x: -110px; --y: 10px; } .cbd-burst i:nth-child(6) { --x: 112px; --y: 4px; }
.cbd-burst i:nth-child(7) { --x: -20px; --y: -110px; } .cbd-burst i:nth-child(8) { --x: 24px; --y: -120px; } .cbd-burst i:nth-child(9) { --x: -76px; --y: 46px; }
.cbd-burst i:nth-child(10) { --x: 84px; --y: 50px; } .cbd-burst i:nth-child(11) { --x: -130px; --y: -70px; } .cbd-burst i:nth-child(12) { --x: 132px; --y: -66px; } .cbd-burst i:nth-child(13) { --x: 4px; --y: 70px; }
@keyframes cbdBurst { 0% { opacity: 1; transform: translate(0,0) rotate(0) scale(.4); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(260deg) scale(1); } }

/* ── skeleton ───────────────────────────────────────────────────────── */
.cbd-skel, .cbd-skel-big, .cbd-skel-bar, .cbd-skel-row { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; }
.cbd-skel > div { flex: 1; display: grid; gap: 8px; }
.cbd-skel i, .cbd-skel-big i, .cbd-skel-bar i, .cbd-skel-row i, .cbd-desk .cbd-skel-row i {
  display: block; height: 12px; border-radius: 8px;
  background: linear-gradient(90deg, var(--cbd-soft) 0%, color-mix(in srgb, var(--cbd-soft) 50%, var(--cbd-card)) 50%, var(--cbd-soft) 100%);
  background-size: 220% 100%; animation: cbdShimmer 1.2s linear infinite; }
.cbd-skel-big { justify-content: center; } .cbd-skel-big i { width: 52%; height: 46px; border-radius: 14px; }
.cbd-skel-bar i { width: 100%; height: 8px; }
.cbd-skel-row i { flex: 1; height: 54px; border-radius: 16px; }
@keyframes cbdShimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }

/* ── settings ───────────────────────────────────────────────────────── */
.cbd-tgl { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--cbd-line); cursor: pointer; }
.cbd-tgl > span:first-child { flex: 1; } .cbd-tgl b { display: block; font: 700 14.5px var(--cbd-f); } .cbd-tgl small { display: block; color: var(--cbd-ink3); font-size: 12.5px; margin-top: 2px; }
.cbd-sw { position: relative; width: 48px; height: 28px; flex-shrink: 0; }
.cbd-sw input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.cbd-sw i { position: absolute; inset: 0; border-radius: 99px; background: var(--cbd-soft); border: 1px solid var(--cbd-line); transition: background .25s; pointer-events: none; }
.cbd-sw i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); transition: transform .3s var(--cbd-spring); }
.cbd-sw input:checked + i { background: var(--cbd-grad); border-color: transparent; }
.cbd-sw input:checked + i::after { transform: translateX(20px); }
.cbd-sw input:focus-visible + i { outline: 3px solid rgba(67,97,255,.45); outline-offset: 2px; }
.cbd-slide { padding: 10px 0 14px; transition: opacity .2s; } .cbd-slide.off { opacity: .4; }
.cbd-slide input { width: 100%; accent-color: var(--cbd-pri2); }
.cbd-slide > div { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--cbd-ink2); }
.cbd-slide b { font: 800 15px var(--cbd-f); color: var(--cbd-ink); }
.cbd-set[hidden] { display: none; }

/* ── toast ──────────────────────────────────────────────────────────── */
.cbd-toast { position: fixed; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom)); z-index: 9700; transform: translate(-50%, 20px); opacity: 0;
  background: #14152A; color: #fff; padding: 11px 16px; border-radius: 14px; font: 600 13.5px/1.35 'Inter',system-ui,sans-serif; box-shadow: 0 16px 40px rgba(0,0,0,.3);
  max-width: min(92vw, 420px); transition: transform .35s var(--cbd-spring), opacity .25s; pointer-events: none; }
.cbd-toast.in { transform: translate(-50%, 0); opacity: 1; }

/* ═══ CARDS INSIDE THE MESSENGER ══════════════════════════════════════ */
.cbd-card { position: relative; width: min(360px, 100%); text-align: left; background: var(--cbd-card); color: var(--cbd-ink); border: 1px solid var(--cbd-line);
  border-radius: 20px; overflow: hidden; box-shadow: 0 10px 30px rgba(10,10,20,.08); font: 400 13.5px/1.45 var(--cbd-f); }
/* Entrances run once, on what just arrived (.nw, set by the messenger),
   never again when the list re-renders. */
.nw .cbd-card { animation: cbdCard .55s var(--cbd-spring) both; }
@keyframes cbdCard { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
.cbd-card svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.cbd-card.your-turn { border-color: transparent; box-shadow: 0 0 0 2px rgba(67,97,255,.55), 0 14px 34px rgba(67,97,255,.18); animation: cbdTurn 2.6s 1s ease-in-out infinite; }
.nw .cbd-card.your-turn { animation: cbdCard .55s var(--cbd-spring) both, cbdTurn 2.6s 1s ease-in-out infinite; }
@keyframes cbdTurn { 0%,100% { box-shadow: 0 0 0 2px rgba(67,97,255,.55), 0 14px 34px rgba(67,97,255,.18); } 50% { box-shadow: 0 0 0 5px rgba(67,97,255,.18), 0 14px 34px rgba(67,97,255,.26); } }
.cbd-card.is-agreed { box-shadow: 0 0 0 2px rgba(15,168,151,.5), 0 14px 34px rgba(15,168,151,.18); }
.cbd-card-hd { display: flex; align-items: center; gap: 8px; padding: 11px 14px; background: var(--cbd-grad); color: #fff; font: 700 13px var(--cbd-f); }
.cbd-card.is-ok .cbd-card-hd { background: linear-gradient(135deg,#0FA897,#2BC46F); }
.cbd-card.is-off .cbd-card-hd { background: var(--cbd-soft); color: var(--cbd-ink2); }
.cbd-card-hd span { flex: 1; }
.cbd-pill { font: 700 10.5px/1 var(--cbd-f); font-style: normal; letter-spacing: .05em; text-transform: uppercase; padding: 5px 8px; border-radius: 999px; background: rgba(255,255,255,.22); color: inherit; white-space: nowrap; }
.cbd-desk .cbd-pill.live, .cbd-desk-row .cbd-pill.live { background: rgba(67,97,255,.12); color: var(--cbd-pri); }
.cbd-desk .cbd-pill.ok, .cbd-desk-row .cbd-pill.ok { background: var(--cbd-mint-bg); color: var(--cbd-mint); }
.cbd-desk .cbd-pill.off, .cbd-desk-row .cbd-pill.off { background: var(--cbd-soft); color: var(--cbd-ink3); }
.cbd-card-bd { padding: 13px 14px 14px; }
.cbd-card-t { font: 750 14.5px/1.3 var(--cbd-f); letter-spacing: -.01em; }
.cbd-card-s { color: var(--cbd-ink3); font-size: 12.5px; margin-top: 2px; }
.cbd-card-p { display: flex; align-items: baseline; gap: 6px; margin: 10px 0 2px; flex-wrap: wrap; }
.cbd-card-p b { font: 830 26px/1.05 var(--cbd-f); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.cbd-card-p span { color: var(--cbd-ink3); font-size: 12.5px; } .cbd-card-p s { color: var(--cbd-ink3); font-size: 12.5px; }
.cbd-pop { display: inline-block; }
.nw .cbd-pop { animation: cbdPop .6s .15s var(--cbd-spring) both; }
@keyframes cbdPop { from { opacity: 0; transform: translateY(6px) scale(.9); } to { opacity: 1; transform: none; } }
.cbd-ladder { padding: 22px 6px 10px; }
.cbd-ladder-track { position: relative; height: 6px; border-radius: 99px; background: var(--cbd-soft); }
.cbd-gap { position: absolute; top: 0; height: 100%; border-radius: 99px; background: repeating-linear-gradient(90deg, rgba(67,97,255,.45) 0 6px, transparent 6px 10px); transform-origin: center; }
.nw .cbd-gap { animation: cbdGap 1s .2s var(--cbd-out) both; }
@keyframes cbdGap { from { transform: scaleX(1.8); opacity: 0; } to { transform: none; opacity: 1; } }
.cbd-pin { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; border: 3px solid var(--cbd-card); box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.nw .cbd-pin { animation: cbdPin .6s var(--cbd-spring) both; }
.cbd-pin em { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); font: 700 9.5px/1 var(--cbd-f); font-style: normal; letter-spacing: .05em; text-transform: uppercase; color: var(--cbd-ink3); white-space: nowrap; }
.cbd-pin.g { background: #FF8A3D; animation-delay: .1s; } .cbd-pin.h { background: var(--cbd-pri); animation-delay: .2s; }
.cbd-pin.a { background: var(--cbd-mint); width: 18px; height: 18px; margin: -9px 0 0 -9px; animation-delay: .3s; } .cbd-pin.a em { color: var(--cbd-mint); }
.cbd-pin.l { background: var(--cbd-ink3); width: 10px; height: 10px; margin: -5px 0 0 -5px; border-width: 2px; }
.cbd-pin.l em { left: auto; right: -4px; transform: none; }
.cbd-pin.a em { bottom: 18px; }
.cbd-pin.lo em { bottom: auto; top: 14px; }
.cbd-pin.l.lo em { top: 10px; }
.cbd-ladder { padding-bottom: 20px; }
@keyframes cbdPin { from { transform: scale(0); } to { transform: none; } }
.cbd-kv { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; font-size: 13px; color: var(--cbd-ink2); }
.cbd-kv b { color: var(--cbd-ink); font-variant-numeric: tabular-nums; }
.cbd-kv.dim { color: var(--cbd-ink3); font-size: 12.5px; }
.cbd-kv.good, .cbd-kv.good b { color: var(--cbd-mint); font-weight: 700; }
.cbd-quote { display: block; margin: 8px 0 2px; padding: 9px 11px; border-radius: 12px; background: var(--cbd-soft); color: var(--cbd-ink2); font-style: italic; quotes: '“' '”'; }
.cbd-quote::before { content: open-quote; } .cbd-quote::after { content: close-quote; }
.cbd-hint { display: flex; gap: 6px; align-items: center; margin-top: 8px; font: 600 12px var(--cbd-f); color: var(--cbd-amber); }
.cbd-acts { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.cbd-acts .cbd-btn { flex: 1 1 auto; }
.cbd-wait { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--cbd-soft); font: 600 12.5px var(--cbd-f); color: var(--cbd-ink2); flex-wrap: wrap; }
.cbd-wait.ok { background: var(--cbd-mint-bg); color: var(--cbd-mint); }
.cbd-hold { display: flex; gap: 6px; align-items: center; margin-top: 8px; font-size: 12px; color: var(--cbd-ink3); }
.cbd-dots { display: inline-flex; gap: 3px; } .cbd-dots i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .4; animation: cbdDot 1.2s infinite; }
.cbd-dots i:nth-child(2) { animation-delay: .15s; } .cbd-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes cbdDot { 0%,80%,100% { opacity: .25; transform: none; } 40% { opacity: 1; transform: translateY(-2px); } }
.cbd-hist { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; max-width: min(360px, 100%); padding: 8px 12px; border-radius: 14px;
  background: var(--cbd-soft); color: var(--cbd-ink2); font: 500 12.5px/1.4 var(--cbd-f); }
.nw .cbd-hist { animation: cbdRise .4s var(--cbd-out) both; }
.cbd-hist svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; color: var(--cbd-pri); }
.cbd-hist.is-accept svg, .cbd-hist.is-auto_accept svg { color: var(--cbd-mint); } .cbd-hist.is-decline svg, .cbd-hist.is-withdraw svg { color: var(--cbd-ink3); }
.cbd-hist b { color: var(--cbd-ink); font-weight: 700; }
.cbd-hist q { flex-basis: 100%; font-style: italic; color: var(--cbd-ink3); }

/* The messenger inside Cabana sets its own light palette; the card uses it
   when it lives there, so a light chat never shows a dark card. */
#cbx .cbd-card, #cbx .cbd-hist { --cbd-ink: var(--ink); --cbd-ink2: var(--ink2); --cbd-ink3: var(--ink3); --cbd-card: var(--card); --cbd-line: var(--line); --cbd-soft: #F1F2F8; --cbd-mint: var(--mint); --cbd-mint-bg: rgba(15,168,151,.10); --cbd-pri: var(--pri); --cbd-amber: var(--amber); }
#cbx .m.me .cbd-hist { background: rgba(67,97,255,.08); }

/* ── the messenger, upgraded: motion that says what happened ────────── */
#cbx .m.nw { animation: cbxMsgIn .38s var(--cbd-out) both; }
#cbx .m.me.nw { animation-name: cbxMsgInMe; }
@keyframes cbxMsgIn { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes cbxMsgInMe { from { opacity: 0; transform: translate(10px, 6px) scale(.98); } to { opacity: 1; transform: none; } }
#cbx .m.pending .b { opacity: .7; }
#cbx .nw .card { animation: cbdCard .5s var(--cbd-spring) both; }
#cbx .sys.nw, #cbx .booked.nw, #cbx .note.nw { animation: cbdRise .4s var(--cbd-out) both; }
#cbx .ctx { animation: cbdRise .45s var(--cbd-out) both; }
#cbx .row { transition: background .18s, transform .18s var(--cbd-spring); }
#cbx .row:active { transform: scale(.99); }
#cbx .btn { transition: transform .18s var(--cbd-spring), box-shadow .2s, background .2s, filter .2s; }
#cbx .btn:active { transform: scale(.97); }
#cbx .cbx-deal-badge { display: inline-flex; align-items: center; gap: 4px; font: 700 10.5px/1 var(--f, 'Inter', sans-serif); letter-spacing: .04em; text-transform: uppercase; padding: 4px 7px; border-radius: 999px; background: rgba(67,97,255,.12); color: #4361FF; margin-left: 6px; vertical-align: middle; }
#cbx .cbx-deal-badge.you { background: linear-gradient(135deg,#3D5BFF,#7B2FF7); color: #fff; animation: cbdGlowBadge 2s ease-in-out infinite; }
#cbx .cbx-deal-badge.ok { background: rgba(15,168,151,.12); color: #0FA897; }
@keyframes cbdGlowBadge { 0%,100% { box-shadow: 0 0 0 0 rgba(123,47,247,.0); } 50% { box-shadow: 0 0 0 4px rgba(123,47,247,.18); } }
#cbx .cbx-offer-btn { background: rgba(67,97,255,.10) !important; color: #4361FF !important; }

/* ═══ ENTRY BUTTONS ON LISTING PAGES ═════════════════════════════════ */
.cbd-make { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px solid rgba(67,97,255,.35); background: rgba(67,97,255,.06);
  color: #3D5BFF; border-radius: 14px; padding: 11px 16px; font: 700 14px/1 'Inter',system-ui,sans-serif; cursor: pointer;
  transition: transform .18s cubic-bezier(.22,1.2,.36,1), background .2s, border-color .2s, box-shadow .2s; }
.cbd-make svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cbd-make:hover { background: rgba(67,97,255,.11); border-color: rgba(67,97,255,.6); box-shadow: 0 6px 18px rgba(67,97,255,.18); transform: translateY(-1px); }
.cbd-make:active { transform: scale(.97); }
.cbd-make:focus-visible { outline: 3px solid rgba(67,97,255,.45); outline-offset: 2px; }
@media (prefers-color-scheme: dark) { .cbd-make { color: #9AA8FF; background: rgba(124,140,255,.10); border-color: rgba(124,140,255,.4); } }
.cbd-make.block { width: 100%; margin-top: 10px; }
.cbd-agreed { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; margin: 10px 0; background: rgba(15,168,151,.10); color: #0B7F72; font: 600 13px/1.4 'Inter',system-ui,sans-serif; animation: cbdRise .45s cubic-bezier(.22,1,.36,1) both; }
.cbd-agreed svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
@media (prefers-color-scheme: dark) { .cbd-agreed { color: #3DDBC4; background: rgba(61,219,196,.12); } }

/* ═══ THE PARTNER DESK ════════════════════════════════════════════════ */
.cbd-desk { font: 400 14px/1.45 var(--cbd-f); color: var(--cbd-ink); }
.cbd-desk svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cbd-desk .cbd-ph { display: inline-flex; align-items: center; justify-content: center; color: var(--cbd-pri); background: var(--cbd-soft); flex-shrink: 0; }
.cbd-desk-p { max-width: 46%; } .cbd-desk-p .cbd-pill { white-space: normal; text-align: right; line-height: 1.25; }
.cbd-desk-hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.cbd-desk-hd b { font: 800 18px var(--cbd-f); letter-spacing: -.02em; }
.cbd-desk-row { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 11px; border-radius: 16px; border: 1px solid var(--cbd-line); background: var(--cbd-card); color: inherit; font: inherit; margin-bottom: 8px; cursor: pointer;
  transition: transform .18s var(--cbd-spring), box-shadow .2s, border-color .2s; animation: cbdRise .4s var(--cbd-out) both; }
.cbd-desk-row:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(10,10,20,.08); }
.cbd-desk-row.your-turn { border-color: rgba(67,97,255,.45); box-shadow: 0 0 0 3px rgba(67,97,255,.10); }
.cbd-desk-row img, .cbd-desk-row .cbd-ph { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; }
.cbd-desk-b { flex: 1; min-width: 0; } .cbd-desk-b b { display: block; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cbd-desk-b small { display: block; color: var(--cbd-ink3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cbd-desk-p { display: grid; justify-items: end; gap: 5px; } .cbd-desk-p b { font-variant-numeric: tabular-nums; }
.cbd-desk-empty { display: grid; justify-items: center; text-align: center; gap: 4px; padding: 26px 12px; border: 1px dashed var(--cbd-line); border-radius: 18px; color: var(--cbd-ink2); }
.cbd-desk-empty svg { width: 26px; height: 26px; fill: none; stroke: var(--cbd-pri); stroke-width: 2; }
.cbd-desk-empty b { font: 750 15px var(--cbd-f); color: var(--cbd-ink); } .cbd-desk-empty span { font-size: 13px; max-width: 40ch; }

@media (prefers-reduced-motion: reduce) {
  .cbd *, .cbd-card, .cbd-card *, .cbd-hist, .cbd-desk-row, .cbd-agreed, #cbx .m, #cbx .card, #cbx .sys, #cbx .booked, #cbx .note, #cbx .ctx, #cbx .cbx-deal-badge {
    animation: none !important; transition: none !important; }
  .cbd-ring circle, .cbd-ring path { stroke-dashoffset: 0 !important; }
}
