/* Cabana deal room. Two themes, one layout: dark for Creator Studio, light
   for the Partner Hub. Nothing outside .dr-veil is touched. */

.dr-veil, .dr-inline {
  /* THE SUITE: midnight emerald and champagne gold. A room of its own, not
     the violet of the rest of Cabana, so people know they are somewhere
     private, where a deal gets made. */
  --dr-bg: #07110f; --dr-panel: #0b1816; --dr-glass: rgba(236, 255, 248, .045); --dr-glass-2: rgba(236, 255, 248, .085);
  --dr-text: #f4fbf7; --dr-mute: rgba(232, 250, 242, .68); --dr-faint: rgba(232, 250, 242, .44);
  --dr-line: rgba(214, 255, 238, .1); --dr-line-2: rgba(214, 255, 238, .2);
  --dr-accent: linear-gradient(120deg, #f7d58a, #e9a94a 55%, #d98a35); --dr-accent-solid: #e9b95c; --dr-on-accent: #1d1305;
  --dr-gold: #f2c96d; --dr-ok: #3ee6b4; --dr-bad: #ff6b81; --dr-me: rgba(233, 185, 92, .16); --dr-me-line: rgba(233, 185, 92, .4);
  --dr-emerald: #19c39a; --dr-veil: rgba(2, 8, 7, .7); --dr-shadow: 0 30px 90px -20px rgba(0, 0, 0, .85);
  color: var(--dr-text);
  font: 400 14.5px/1.55 'IBM Plex Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
.dr-veil {
  position: fixed; inset: 0; z-index: 9000; display: flex; justify-content: flex-end;
  background: var(--dr-veil); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s;
  font: 400 14.5px/1.55 'IBM Plex Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--dr-text);
}
.dr-veil[data-theme="light"], .dr-inline[data-theme="light"] {
  --dr-bg: #f7f3ea; --dr-panel: #fffdf8; --dr-glass: #f6f1e4; --dr-glass-2: #eee7d4;
  --dr-text: #0d1b17; --dr-mute: #3f5650; --dr-faint: #84958f; --dr-line: rgba(13, 40, 32, .1); --dr-line-2: rgba(13, 40, 32, .18);
  --dr-accent: linear-gradient(135deg, #0e7f66, #14a98a); --dr-accent-solid: #0e8a6f; --dr-on-accent: #ffffff;
  --dr-gold: #a9710a; --dr-ok: #0f9d8a; --dr-bad: #d12f4a; --dr-me: rgba(14, 138, 111, .1); --dr-me-line: rgba(14, 138, 111, .3);
  --dr-emerald: #0e8a6f; --dr-veil: rgba(6, 20, 16, .46); --dr-shadow: 0 30px 80px -20px rgba(6, 30, 22, .4);
}
.dr-veil.on { opacity: 1; visibility: visible; }
.dr-veil *, .dr-veil *::before, .dr-veil *::after, .dr-inline *, .dr-inline *::before, .dr-inline *::after { box-sizing: border-box; }
.dr-veil button, .dr-veil input, .dr-veil select, .dr-veil textarea, .dr-inline button, .dr-inline input, .dr-inline select, .dr-inline textarea { font: inherit; color: inherit; }
.dr-veil button, .dr-inline button { cursor: pointer; }
.dr-veil [hidden], .dr-inline [hidden] { display: none !important; }

.dr {
  position: relative; display: flex; flex-direction: column; width: min(540px, 100%); height: 100%;
  background: var(--dr-panel); border-left: 1px solid var(--dr-line); box-shadow: var(--dr-shadow);
  transform: translateX(28px); transition: transform .38s cubic-bezier(.22, 1, .36, 1);
}
.dr-veil.on .dr { transform: none; }
@media (max-width: 640px) { .dr { width: 100%; border-left: 0; } }

.dr-load { flex: 1; display: grid; place-items: center; }
.dr-load i { width: 34px; height: 34px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--dr-accent-solid); border-right-color: var(--dr-gold); animation: dr-spin .8s linear infinite; }
@keyframes dr-spin { to { transform: rotate(360deg); } }
.dr-empty { padding: 48px 28px; text-align: center; display: grid; gap: 12px; justify-items: center; }
.dr-empty h3 { margin: 0; font-size: 18px; } .dr-empty p { margin: 0; color: var(--dr-mute); }

.dr-head { display: flex; align-items: center; gap: 14px; padding: 18px 20px 14px; border-bottom: 1px solid var(--dr-line); }
.dr-thumb { width: 54px; height: 54px; border-radius: 14px; object-fit: cover; background: var(--dr-glass-2); flex: none; }
.dr-ttl { min-width: 0; flex: 1; }
.dr-ttl h2 { margin: 2px 0 0; font-size: 17px; line-height: 1.25; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dr-ttl p { margin: 2px 0 0; color: var(--dr-faint); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dr-kick { font: 700 10.5px/1 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .16em; text-transform: uppercase; color: var(--dr-gold); }
.dr-x { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--dr-line); background: var(--dr-glass); color: var(--dr-mute); flex: none; transition: background .2s, color .2s; }
.dr-x:hover { background: var(--dr-glass-2); color: var(--dr-text); } .dr-x.sm { width: 30px; height: 30px; font-size: 12px; }

.dr-state { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 20px; border-bottom: 1px solid var(--dr-line); }
.dr-terms { font-weight: 600; font-size: 13.5px; }
.dr-pill { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font: 700 10.5px/1.5 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; background: var(--dr-glass-2); color: var(--dr-mute); }
.dr-pill.ok { background: color-mix(in srgb, var(--dr-ok) 16%, transparent); color: var(--dr-ok); }
.dr-pill.wait { background: color-mix(in srgb, var(--dr-gold) 16%, transparent); color: var(--dr-gold); }
.dr-pill.no { background: color-mix(in srgb, var(--dr-bad) 15%, transparent); color: var(--dr-bad); }

.dr-who { border-bottom: 1px solid var(--dr-line); }
.dr-who summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 12px 20px; cursor: pointer; }
.dr-who summary::-webkit-details-marker { display: none; }
.dr-who summary::after { content: '\25BE'; margin-left: auto; color: var(--dr-faint); transition: transform .2s; }
.dr-who[open] summary::after { transform: rotate(180deg); }
.dr-av { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: var(--dr-accent); color: var(--dr-on-accent); flex: none; }
.dr-who-n { display: grid; line-height: 1.3; min-width: 0; } .dr-who-n small { color: var(--dr-faint); font-size: 12px; }
.dr-who-b { padding: 0 20px 14px; display: grid; gap: 10px; }
.dr-sm { margin: 0; color: var(--dr-mute); font-size: 13px; line-height: 1.55; } .dr-sm.c { text-align: center; padding: 10px 0; } .dr-sm a { color: var(--dr-accent-solid); }
.dr-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dr-chip { display: inline-flex; align-items: center; gap: 4px; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--dr-glass-2); color: var(--dr-text); text-decoration: none; border: 1px solid var(--dr-line); }
a.dr-chip:hover { border-color: var(--dr-line-2); } .dr-chip.mute { color: var(--dr-mute); font-weight: 500; text-transform: capitalize; }

.dr-log { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; overscroll-behavior: contain; }
.dr-msg { display: flex; } .dr-msg.me { justify-content: flex-end; }
.dr-bub, .dr-offer { max-width: min(86%, 400px); padding: 10px 14px 8px; border-radius: 18px; background: var(--dr-glass-2); border: 1px solid var(--dr-line); word-break: break-word; }
.dr-msg.me .dr-bub { background: var(--dr-me); border-color: var(--dr-me-line); border-bottom-right-radius: 6px; }
.dr-msg.them .dr-bub { border-bottom-left-radius: 6px; }
.dr-bub time, .dr-offer time { display: block; margin-top: 3px; font-size: 10.5px; color: var(--dr-faint); text-align: right; }
.dr-offer { max-width: min(92%, 420px); padding: 14px 16px 10px; display: grid; gap: 8px; border-radius: 18px; background: var(--dr-glass); border: 1px solid var(--dr-line-2); }
.dr-offer-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 12px; color: var(--dr-mute); }
.dr-offer-t { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.dr-offer p { margin: 0; color: var(--dr-mute); font-size: 13px; }
.dr-sys { text-align: center; } .dr-sys span { display: inline-block; padding: 5px 14px; border-radius: 999px; font-size: 12px; color: var(--dr-mute); background: var(--dr-glass); border: 1px dashed var(--dr-line-2); }

.dr-foot { padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--dr-line); background: var(--dr-panel); display: grid; gap: 10px; max-height: 70vh; overflow-y: auto; }
.dr-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.dr-compose { display: flex; align-items: flex-end; gap: 8px; }
.dr-compose textarea { flex: 1; resize: none; min-height: 44px; max-height: 140px; padding: 11px 14px; border-radius: 16px; border: 1px solid var(--dr-line-2); background: var(--dr-glass); outline: none; line-height: 1.45; }
.dr-compose textarea:focus, .dr-f input:focus, .dr-f select:focus { border-color: var(--dr-accent-solid); box-shadow: 0 0 0 3px color-mix(in srgb, var(--dr-accent-solid) 22%, transparent); }
.dr-send { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--dr-accent); color: var(--dr-on-accent); display: grid; place-items: center; flex: none; transition: transform .2s; }
.dr-send:hover:not(:disabled) { transform: translateY(-1px) scale(1.04); } .dr-send:disabled { opacity: .5; }
.dr-fine { margin: 0; font-size: 11.5px; color: var(--dr-faint); text-align: center; }

.dr-btn { min-height: 44px; padding: 0 20px; border-radius: 999px; border: 0; font-weight: 700; font-size: 13.5px; background: var(--dr-accent); color: var(--dr-on-accent); transition: transform .2s, opacity .2s; }
.dr-btn.sm { min-height: 36px; padding: 0 15px; font-size: 13px; }
.dr-btn:hover:not(:disabled) { transform: translateY(-1px); } .dr-btn:disabled { opacity: .55; cursor: not-allowed; }
.dr-btn.ghost { background: var(--dr-glass); color: var(--dr-text); border: 1px solid var(--dr-line-2); }
.dr-btn.danger { background: color-mix(in srgb, var(--dr-bad) 14%, transparent); color: var(--dr-bad); border: 1px solid color-mix(in srgb, var(--dr-bad) 35%, transparent); }
.dr-btn.busy, .dr-send.busy { position: relative; color: transparent; }
.dr-btn.busy::after { content: ''; position: absolute; inset: 0; margin: auto; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: dr-spin .7s linear infinite; }

.dr-form { display: grid; gap: 12px; }
.dr-form-h { display: flex; justify-content: space-between; align-items: center; } .dr-form-h b { font-size: 15px; }
.dr-deals { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dr-deal { text-align: left; padding: 11px 12px; border-radius: 14px; border: 1px solid var(--dr-line); background: var(--dr-glass); display: grid; gap: 2px; transition: border-color .2s, background .2s; }
.dr-deal b { font-size: 13px; } .dr-deal small { color: var(--dr-faint); font-size: 11.5px; line-height: 1.35; }
.dr-deal.on { border-color: var(--dr-accent-solid); background: color-mix(in srgb, var(--dr-accent-solid) 12%, transparent); }
.dr-f { display: grid; gap: 6px; } .dr-f > span:first-child { font-size: 12px; font-weight: 600; color: var(--dr-mute); } .dr-f em { font-style: normal; font-weight: 400; color: var(--dr-faint); }
.dr-f input, .dr-f select { width: 100%; min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--dr-line-2); background: var(--dr-glass); outline: none; }
.dr-f select option { color: #111; }
.dr-money { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 8px; }
.dr-seg { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--dr-glass); border: 1px solid var(--dr-line); width: fit-content; max-width: 100%; flex-wrap: wrap; }
.dr-seg button { min-height: 34px; padding: 0 14px; border-radius: 10px; border: 0; background: none; color: var(--dr-mute); font-weight: 600; font-size: 12.5px; }
.dr-seg button[aria-pressed="true"] { background: var(--dr-glass-2); color: var(--dr-text); box-shadow: 0 1px 0 var(--dr-line-2); }
@media (max-width: 420px) { .dr-deals { grid-template-columns: 1fr; } }

.dr-toast { position: absolute; left: 50%; bottom: 116px; transform: translate(-50%, 12px); max-width: calc(100% - 32px); padding: 10px 18px; border-radius: 999px; background: #111; color: #fff; font-size: 13px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 3; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .6); }
.dr-toast.on { opacity: 1; transform: translate(-50%, 0); } .dr-toast.bad { background: #b3243d; }

@media (prefers-reduced-motion: reduce) { .dr-veil, .dr, .dr-load i, .dr-btn, .dr-send, .dr-toast { transition-duration: .01ms !important; animation-duration: .01ms !important; } }

.dr-hint { color: var(--dr-faint); font-size: 11.5px; line-height: 1.45; font-weight: 400; }


/* ══ THE SUITE · atmosphere, motion and the parts that make it feel like a room ══ */

.dr { overflow: hidden; transform: translateX(46px) scale(.985); opacity: 0; transition: transform .55s cubic-bezier(.16, 1, .3, 1), opacity .4s ease; }
.dr-veil.on .dr { transform: none; opacity: 1; }
.dr > *:not(.dr-aurora):not(.dr-burst):not(.dr-toast) { position: relative; z-index: 1; }

/* a slow aurora behind everything */
.dr-aurora { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.dr-aurora i { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; filter: blur(64px); opacity: .5; mix-blend-mode: screen; animation: dr-drift 18s ease-in-out infinite alternate; }
.dr-aurora i:nth-child(1) { left: -20%; top: -18%; background: radial-gradient(circle, rgba(25, 195, 154, .55), transparent 65%); }
.dr-aurora i:nth-child(2) { right: -26%; top: 22%; background: radial-gradient(circle, rgba(242, 201, 109, .38), transparent 65%); animation-duration: 23s; animation-delay: -6s; }
.dr-aurora i:nth-child(3) { left: 8%; bottom: -30%; background: radial-gradient(circle, rgba(47, 124, 255, .22), transparent 65%); animation-duration: 27s; animation-delay: -11s; }
.dr-veil[data-theme="light"] .dr-aurora i { mix-blend-mode: multiply; opacity: .22; }
@keyframes dr-drift { to { transform: translate3d(14%, 10%, 0) scale(1.18); } }

.dr-head { background: linear-gradient(180deg, color-mix(in srgb, var(--dr-emerald) 10%, transparent), transparent); }
.dr-thumb { box-shadow: 0 0 0 1px var(--dr-line-2), 0 10px 26px -10px rgba(0, 0, 0, .6); animation: dr-pop .6s cubic-bezier(.16, 1, .3, 1) both; }
.dr-ttl h2 { font-family: 'Bodoni Moda', 'Playfair Display', Georgia, serif; font-weight: 600; letter-spacing: -.005em; font-size: 19px; }
@keyframes dr-pop { from { opacity: 0; transform: scale(.82) rotate(-4deg); } }

/* the shield strip: this room is private */
.dr-shield { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 7px 16px; font: 600 11px/1.2 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--dr-emerald); background: color-mix(in srgb, var(--dr-emerald) 8%, transparent); border-bottom: 1px solid var(--dr-line); position: relative; overflow: hidden; }
.dr-shield::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, color-mix(in srgb, var(--dr-emerald) 26%, transparent) 50%, transparent 70%); transform: translateX(-120%); animation: dr-sweep 5.5s ease-in-out 1.2s infinite; }
@keyframes dr-sweep { 60%, 100% { transform: translateX(120%); } }

/* where the deal stands */
.dr-rail { --fill: 0%; list-style: none; margin: 0; padding: 14px 28px 10px; display: grid; grid-template-columns: repeat(3, 1fr); position: relative; counter-reset: s; }
.dr-rail::before, .dr-rail::after { content: ''; position: absolute; left: calc(28px + 8%); height: 2px; top: 23px; border-radius: 2px; }
.dr-rail::before { right: calc(28px + 8%); background: var(--dr-line-2); }
.dr-rail::after { width: calc((100% - 56px - 16%) * var(--fill) / 100%); background: var(--dr-accent); transition: width .9s cubic-bezier(.16, 1, .3, 1); }
.dr-rail[data-ended="1"]::after { background: var(--dr-bad); }
.dr-rail li { position: relative; display: grid; justify-items: center; gap: 6px; font: 600 11px/1 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--dr-faint); z-index: 1; }
.dr-rail li i { width: 18px; height: 18px; border-radius: 50%; background: var(--dr-panel); border: 2px solid var(--dr-line-2); transition: all .5s cubic-bezier(.16, 1, .3, 1); display: grid; place-items: center; }
.dr-rail li.done { color: var(--dr-text); }
.dr-rail li.done i { background: var(--dr-accent); border-color: transparent; }
.dr-rail li.done i::after { content: ''; width: 5px; height: 9px; border: solid var(--dr-on-accent); border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg) scale(0); animation: dr-tick .4s .25s cubic-bezier(.34, 1.56, .64, 1) forwards; }
.dr-rail li.now { color: var(--dr-gold); }
.dr-rail li.now i { border-color: var(--dr-gold); animation: dr-ring 2s ease-out infinite; }
@keyframes dr-tick { to { transform: translateY(-1px) rotate(45deg) scale(1); } }
@keyframes dr-ring { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--dr-gold) 55%, transparent); } 80%, 100% { box-shadow: 0 0 0 9px transparent; } }

/* the contract strip: terms as a ticket */
.dr-state { background: linear-gradient(90deg, var(--dr-glass), transparent); }
.dr-terms { font-family: 'Bodoni Moda', Georgia, serif; font-size: 15px; font-weight: 600; letter-spacing: .005em; }
.dr[data-status="approved"] .dr-state { background: linear-gradient(90deg, color-mix(in srgb, var(--dr-ok) 14%, transparent), transparent); }
.dr[data-status="approved"] .dr-pill.ok { animation: dr-glow 2.4s ease-in-out infinite; }
@keyframes dr-glow { 50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--dr-ok) 14%, transparent); } }

/* who you are talking to */
.dr-av.ring { position: relative; background: var(--dr-panel); color: var(--dr-gold); border: 0; font-family: 'Bodoni Moda', Georgia, serif; font-size: 16px; }
.dr-av.ring::before { content: ''; position: absolute; inset: -2px; border-radius: 14px; padding: 2px; background: conic-gradient(from 0deg, var(--dr-gold), var(--dr-emerald), var(--dr-gold)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: dr-spin 6s linear infinite; }
.dr-who-n b { font-size: 15px; letter-spacing: -.005em; }
.dr-who[open] .dr-who-b { animation: dr-rise .5s cubic-bezier(.16, 1, .3, 1) both; }
.dr-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.dr-stat { padding: 10px 12px; border-radius: 14px; background: var(--dr-glass); border: 1px solid var(--dr-line); display: grid; gap: 3px; min-width: 0; position: relative; overflow: hidden; }
.dr-stat::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--dr-accent); opacity: .85; }
.dr-stat small { font: 600 9.5px/1 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--dr-faint); }
.dr-stat b { font-size: 15px; font-weight: 700; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dr-head-line { margin: 0; font-family: 'Bodoni Moda', Georgia, serif; font-style: italic; font-size: 15px; color: var(--dr-text); }
.dr-fine.left { text-align: left; display: flex; gap: 7px; align-items: flex-start; }
.dr-fine svg { flex: none; color: var(--dr-emerald); margin-top: 1px; vertical-align: -2px; }
@keyframes dr-rise { from { opacity: 0; transform: translateY(10px); } }

/* messages arrive with a little spring */
.dr-in { animation: dr-in .55s cubic-bezier(.34, 1.4, .64, 1) both; animation-delay: calc(var(--i, 0) * 60ms); transform-origin: bottom left; }
.dr-msg.me.dr-in { transform-origin: bottom right; }
@keyframes dr-in { from { opacity: 0; transform: translateY(14px) scale(.94); } }
.dr-msg.me .dr-bub { background: linear-gradient(145deg, color-mix(in srgb, var(--dr-gold) 22%, transparent), var(--dr-me)); }
.dr-bub { backdrop-filter: blur(6px); }

/* an offer is a ticket */
.dr-offer { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--dr-glass-2), var(--dr-glass)); border-color: var(--dr-line-2);
  -webkit-mask: radial-gradient(circle 9px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 9px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 9px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 9px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat; }
.dr-offer::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--dr-accent); }
.dr-offer.open::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, color-mix(in srgb, var(--dr-gold) 18%, transparent) 50%, transparent 65%); transform: translateX(-130%); animation: dr-sweep 4.5s ease-in-out infinite; pointer-events: none; }
.dr-offer.superseded { opacity: .62; filter: saturate(.6); }
.dr-offer.accepted { border-color: color-mix(in srgb, var(--dr-ok) 55%, transparent); }
.dr-offer-t { font-family: 'Bodoni Moda', Georgia, serif; font-size: 18px; font-weight: 600; }

/* things worth pressing glow softly */
.dr-btn.glow { position: relative; isolation: isolate; box-shadow: 0 8px 22px -10px var(--dr-accent-solid); }
.dr-btn.glow::before { content: ''; position: absolute; inset: -3px; border-radius: inherit; background: var(--dr-accent); filter: blur(10px); opacity: .45; z-index: -1; animation: dr-breathe 2.6s ease-in-out infinite; }
@keyframes dr-breathe { 50% { opacity: .1; transform: scale(.96); } }
.dr-btn:active:not(:disabled), .dr-send:active:not(:disabled) { transform: scale(.96); }
.dr-compose textarea { transition: border-color .2s, box-shadow .2s, background .2s; }
.dr-compose textarea:focus { background: var(--dr-glass-2); }
.dr-send svg { transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); } .dr-send:hover:not(:disabled) svg { transform: translate(2px, -2px) rotate(8deg); }
.dr-deal { transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), border-color .2s, background .2s; } .dr-deal:hover { transform: translateY(-2px); } .dr-deal.on { box-shadow: 0 8px 24px -14px var(--dr-accent-solid); }
.dr-form { animation: dr-rise .45s cubic-bezier(.16, 1, .3, 1) both; }

/* agreed: a short burst of confetti from the middle of the room */
.dr-burst { position: absolute; left: 50%; top: 38%; width: 0; height: 0; z-index: 5; pointer-events: none; }
.dr-burst i { position: absolute; width: 8px; height: 12px; border-radius: 2px; opacity: 0; animation: dr-conf 1.4s cubic-bezier(.12, .8, .3, 1) forwards; }
@keyframes dr-conf { 0% { opacity: 1; transform: translate(0, 0) rotate(0) scale(.4); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), calc(var(--dy) + 140px)) rotate(var(--rot)) scale(1); } }

@media (max-width: 420px) { .dr-stats { grid-template-columns: 1fr 1fr; } .dr-stat:last-child { grid-column: 1 / -1; } .dr-rail { padding-inline: 14px; } }
@media (prefers-reduced-motion: reduce) {
  .dr-aurora i, .dr-shield::after, .dr-offer.open::after, .dr-btn.glow::before, .dr-av.ring::before, .dr-rail li.now i, .dr-pill.ok { animation: none !important; }
  .dr-in, .dr-thumb, .dr-form, .dr-who[open] .dr-who-b { animation-duration: .01ms !important; animation-delay: 0s !important; }
  .dr, .dr-rail::after { transition-duration: .01ms !important; }
}
