/* brand views: minimal. Tokens from styles.css only. */
.b-rhead h1 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); letter-spacing: -0.025em; }
.b-sub { color: var(--dim); margin-top: 6px; }
.b-back { color: var(--dim); text-decoration: none; justify-self: start; }
.b-back:hover { color: var(--ink); }
.b-narrow { display: grid; gap: 28px; width: 100%; max-width: 760px; align-content: start; }
.b-clear { border: 0; background: none; padding: 0; color: var(--cobalt); cursor: pointer; font: inherit; }
.b-avs { display: inline-flex; }
.b-avs > * { width: 26px !important; height: 26px !important; border-radius: 50%; object-fit: cover; border: 2px solid var(--paper); margin-left: -8px; box-shadow: none !important; font-size: 0.625rem !important; }
.b-avs > :first-child { margin-left: 0; }

/* Discover */
.b-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.b-search { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 18px; background: var(--surface); flex: 0 1 260px; min-width: 0; }
.b-search:focus-within { border-color: var(--ink); }
.b-search svg { width: 15px; height: 15px; color: var(--dim); flex: none; }
.b-search input { border: 0; background: transparent; outline: none; min-width: 0; width: 100%; color: var(--ink); font: inherit; font-size: 0.875rem; }
.b-pop { position: relative; }
.b-pop > summary { list-style: none; height: 36px; border-radius: 18px; }
.b-pop > summary::-webkit-details-marker { display: none; }
.b-pop > summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); margin-left: 2px; opacity: 0.6; }
.b-pop[open] > summary { border-color: var(--ink); }
.b-pop:has([aria-pressed="true"]) > summary { border-color: var(--cobalt); color: var(--cobalt); }
.b-menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 20; display: flex; flex-wrap: wrap; gap: 6px; width: max-content; max-width: min(340px, 80vw); padding: 10px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow); }
.b-count { margin-left: auto; color: var(--dim); }
.b-count b { color: var(--ink); font-weight: 500; }
.b-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 32px 20px; }
.b-card { position: relative; display: grid; gap: 12px; }
.b-card[hidden] { display: none; }
.b-ph { display: block; aspect-ratio: 4 / 5; border-radius: 10px; background: var(--paper-2) center / cover no-repeat; position: relative; transition: transform 0.25s; }
.b-ph:hover { transform: translateY(-2px); }
.b-ok { position: absolute; top: 10px; left: 10px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--ok); }
.b-ok svg { width: 13px; height: 13px; }
.b-meta { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.b-meta a { text-decoration: none; }
.b-meta b { font-weight: 500; display: block; }
.b-meta span, .b-num .mono { color: var(--dim); font-size: 0.8125rem; }
.b-num { text-align: right; display: grid; }
.b-num b { font-variant-numeric: tabular-nums; }
.b-num .mono { font-size: 0.625rem; }
.b-add { position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 12px 0 9px; border: 0; border-radius: 15px; background: var(--surface); color: var(--ink); font: 500 0.6875rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; cursor: pointer; box-shadow: var(--shadow); }
.b-add svg { width: 14px; height: 14px; }
.b-add:hover { background: var(--ink); color: var(--paper); }
.b-add[aria-pressed="true"] { background: var(--cobalt); color: #fff; }
.b-add[aria-pressed="true"] svg { transform: rotate(45deg); }

/* Creator profile */
.b-prof { display: grid; gap: 40px; max-width: 1080px; }
.b-hero { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: end; }
.b-hero-art { aspect-ratio: 4 / 5; border-radius: 12px; background: center / cover no-repeat; }
.b-hero-body { display: grid; gap: 18px; align-content: end; }
.b-hero-body h1 { font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.6rem) !important; line-height: 1; }
.b-tag { color: var(--dim); }
.b-ver { color: var(--ok); display: inline-flex; align-items: center; gap: 4px; }
.b-ver svg { width: 12px; height: 12px; }
.b-stats { display: flex; flex-wrap: wrap; margin: 6px 0 4px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.b-stats > div { padding: 14px 24px 14px 0; margin-right: 24px; display: grid; gap: 4px; }
.b-stats > div + div { border-left: 1px solid var(--line); padding-left: 24px; margin-left: -24px; }
.b-stats dt { color: var(--dim); font-size: 0.625rem; }
.b-stats dd { margin: 0; font-size: 1.375rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.b-facts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 40px; margin: 0; }
.b-facts > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 0.9375rem; }
.b-facts dt { color: var(--dim); }
.b-facts dd { margin: 0; }
.b-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.b-tile { position: relative; aspect-ratio: 16 / 10; border: 0; border-radius: 10px; background: var(--night) center / cover no-repeat; color: #fff; cursor: pointer; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; padding: 12px; text-align: left; }
.b-tile::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.65)); }
.b-tile > * { position: relative; }
.b-tile i { position: absolute; inset: 0; margin: auto; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.16); backdrop-filter: blur(6px); transition: background 0.2s; }
.b-tile:hover i { background: var(--cobalt); }
.b-tile i svg { width: 16px; height: 16px; }
.b-tile b { font-weight: 500; font-size: 0.875rem; }

/* Lists: cart, requests, settings */
.b-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.b-list > li { border-bottom: 1px solid var(--line); }
.b-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; }
.b-row[hidden] { display: none; }
.b-thumb { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.b-who { display: grid; gap: 2px; text-decoration: none; min-width: 0; }
.b-who b { font-weight: 500; }
.b-who span { color: var(--dim); font-size: 0.8125rem; }
.b-rate { font-variant-numeric: tabular-nums; color: var(--dim); font-size: 0.875rem; }
.b-gap { width: 70px; }
.b-sum { display: flex; gap: 20px; flex-wrap: wrap; color: var(--dim); margin-top: -12px; }
.b-sum b { color: var(--ink); font-weight: 500; }
.b-sum .b-clear { margin-left: auto; font: inherit; }
.b-form { display: grid; gap: 18px; padding: clamp(20px, 3vw, 32px); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.b-form h2 { font-size: 1.25rem; letter-spacing: -0.015em; }
.b-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.b-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 0.8125rem; }
.b-req { display: flex; align-items: center; gap: 16px; padding: 18px 4px; text-decoration: none; }
.b-req:hover { background: var(--paper-2); }
.b-req .grow { display: grid; gap: 3px; min-width: 0; }
.b-req b { font-weight: 500; }
.b-req .mono { font-size: 0.6875rem; }
.b-date { width: 52px; text-align: right; }

/* Request detail */
.b-rhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.b-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.b-steps li { display: grid; gap: 6px; padding-top: 18px; position: relative; color: var(--dim); font-size: 0.875rem; }
.b-steps li::before { content: ""; position: absolute; top: 4px; left: 0; right: 0; height: 1px; background: var(--line-2); }
.b-steps li i { position: absolute; top: 0; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line-2); }
.b-steps li.done, .b-steps li.now { color: var(--ink); }
.b-steps li.done::before { background: var(--cobalt); }
.b-steps li.done i, .b-steps li.now i { background: var(--cobalt); border-color: var(--cobalt); }
.b-steps li.now i { box-shadow: 0 0 0 4px var(--cobalt-soft); }
.b-steps b { font-weight: 500; }
.b-steps .mono { font-size: 0.625rem; }
.b-sec { display: grid; gap: 12px; }
.b-brief { font-size: 1.0625rem; line-height: 1.6; max-width: 62ch; }
.b-cta { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 8px; }

/* Inbox: deal room. The conversation and the deal are one object. */
.page:has(> .b-inbox) { padding: 0; max-width: none; }
.b-pane[hidden] { display: none; }
.b-person { display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: 0.9375rem; }
.b-person .mark { width: 36px; height: 36px; }
.b-tog { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.b-tog > span { display: grid; gap: 4px; }
.b-consent { font-size: 0.625rem; }

.dr { grid-template-columns: minmax(0, 280px) minmax(0, 1fr); }
.dr .c2-list-head h1 { font-size: 1.25rem; }
.dr .c2-thread { position: relative; background: radial-gradient(80% 50% at 100% 0%, color-mix(in srgb, var(--cobalt) 5%, transparent), transparent 70%); }
.dr .c2-head { gap: 10px 16px; padding-bottom: 12px; }
.dr-title { min-width: 0; }
.dr-title h2 { display: flex; align-items: baseline; gap: 10px; font-size: 1.125rem; }
.dr-tag { font-size: 0.625rem; color: var(--dim); border: 1px solid var(--line-2); border-radius: 4px; padding: 3px 5px; letter-spacing: 0.08em; transform: translateY(-2px); }
.dr-avs > * { position: relative; }
.dr-presence { flex-basis: 100%; display: flex; align-items: center; gap: 6px 18px; flex-wrap: wrap; font-size: 0.8125rem; color: var(--dim); }
.dr-on, .dr-away { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.dr-on i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 20%, transparent); }
.dr-away svg { width: 14px; height: 14px; flex: none; }

/* Deal strip: pinned glass bar inside the log so messages pass beneath it */
.dr .c2-log { padding-top: 12px; gap: 18px; }
.dr .c2-log > .dr-strip { max-width: 880px; }
.dr-strip { position: sticky; top: 12px; z-index: 6; display: flex; align-items: center; gap: 14px; margin-bottom: 6px; padding: 10px 10px 10px 16px; border: 1px solid color-mix(in srgb, var(--line-2) 80%, transparent); border-radius: 14px;
  background: linear-gradient(110deg, color-mix(in srgb, var(--cobalt) 7%, transparent), transparent 40%), color-mix(in srgb, var(--surface) 86%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 40%, transparent), 0 14px 30px -22px color-mix(in srgb, var(--ink) 50%, transparent); }
.dr-strip::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 13px; background: linear-gradient(var(--paper), color-mix(in srgb, var(--paper) 0%, transparent)); pointer-events: none; }
.dr-stage { display: flex; align-items: center; gap: 12px; flex: none; }
.dr-rail { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.dr-rail li { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line-2); }
.dr-rail li + li { margin-left: 14px; }
.dr-rail li + li::before { content: ""; position: absolute; right: calc(100% + 2px); top: 3px; width: 11px; height: 1px; background: var(--line-2); }
.dr-rail li.done { background: var(--cobalt); border-color: var(--cobalt); }
.dr-rail li.done + li::before { background: var(--cobalt); }
.dr-rail li.now { background: var(--cobalt); border-color: var(--cobalt); box-shadow: 0 0 0 4px var(--cobalt-soft), 0 0 14px 2px color-mix(in srgb, var(--cobalt) 45%, transparent); }
.dr-stage-l, .dr-term { display: grid; gap: 3px; min-width: 0; }
.dr-stage-l .mono, .dr-term dt { font-size: 0.5625rem; color: var(--dim); letter-spacing: 0.1em; }
.dr-stage-l b { font-weight: 500; font-size: 0.8125rem; color: var(--cobalt); white-space: nowrap; }
.dr-terms { display: flex; align-items: center; flex: 1; min-width: 0; margin: 0; }
.dr-term { padding-inline: 14px; border-left: 1px solid var(--line); flex: none; border-radius: 8px; transition: background 0.3s, box-shadow 0.3s; }
.dr-term[data-term="deliverables"], .dr-term[data-term="samples"] { flex: 0 1 auto; }
.dr-term dd { margin: 0; font-size: 0.8125rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dr-term dd .full { display: inline; }
.dr-term dd .short { display: none; }
.dr-none { display: inline-block; padding: 1px 8px; border: 1px dashed var(--line-2); border-radius: 999px; color: var(--dim); font-size: 0.75rem; }
.dr-term.glow { animation: dr-glow 1.6s ease-out; }
@keyframes dr-glow { 0% { background: color-mix(in srgb, var(--cobalt) 18%, transparent); box-shadow: 0 0 0 1px var(--cobalt), 0 0 22px -2px color-mix(in srgb, var(--cobalt) 60%, transparent); } 100% { background: transparent; box-shadow: 0 0 0 1px transparent; } }
.dr-open { flex: none; margin-left: auto; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); background: color-mix(in srgb, var(--surface) 70%, transparent); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.dr-open:hover { border-color: var(--cobalt); color: var(--cobalt); }
.dr-open svg { width: 14px; height: 14px; }

/* Messages, hover actions, agreement cards */
.dr .c2-msg { position: relative; }
.dr .c2-col { gap: 6px; }
.dr .c2-meta { min-height: 24px; flex-wrap: wrap; }
.dr-acts { position: relative; display: inline-flex; margin-left: auto; }
.c2-meta.mine .dr-acts { margin-left: 0; margin-right: 6px; }
.dr-more { display: none; width: 26px; height: 22px; border: 0; border-radius: 11px; background: transparent; color: var(--dim); cursor: pointer; place-items: center; }
.dr-more svg { width: 16px; height: 16px; }
.dr-more:hover, .dr-acts.open .dr-more { background: var(--paper-2); color: var(--ink); }
.dr-menu { display: inline-flex; gap: 4px; opacity: 0; transform: translateY(2px); transition: opacity 0.15s, transform 0.15s; }
.c2-msg:hover .dr-menu, .c2-msg:focus-within .dr-menu { opacity: 1; transform: none; }
.dr-menu button { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px 0 7px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--dim); font-size: 0.75rem; cursor: pointer; white-space: nowrap; }
.dr-menu button:hover { color: var(--ink); border-color: var(--line-2); }
.dr-menu button[data-act="agree"]:hover { color: var(--cobalt); border-color: var(--cobalt); }
.dr-menu svg { width: 12px; height: 12px; }
.c2-msg.agreed [data-act="agree"] { display: none; }
.dr-agree { justify-self: start; display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 5px 11px 5px 8px; border: 1px solid color-mix(in srgb, var(--cobalt) 26%, var(--line)); border-radius: 10px; background: color-mix(in srgb, var(--cobalt) 6%, var(--surface)); color: var(--ink); font-size: 0.8125rem; text-align: left; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.dr-agree:hover { border-color: var(--cobalt); background: color-mix(in srgb, var(--cobalt) 10%, var(--surface)); }
.dr-agree svg { width: 13px; height: 13px; color: var(--cobalt); flex: none; transform: rotate(30deg); }
.dr-agree span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dr-agree b { font: 500 0.625rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--cobalt); }
.c2-msg.mine .dr-agree { justify-self: end; }
.dr-agree.fresh { animation: pop 0.25s ease-out; }

/* Footer: suggestions, composer, audience */
.dr .c2-foot { display: grid; gap: 10px; padding-top: 8px; }
.dr .c2-foot > * { width: 100%; max-width: 720px; margin-inline: auto; }
.dr-sugs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }
.dr-sugs::-webkit-scrollbar { display: none; }
.dr-sug { flex: none; height: 30px; padding: 0 13px; border: 1px solid var(--line-2); border-radius: 15px; background: color-mix(in srgb, var(--surface) 80%, transparent); color: var(--ink-2); font-size: 0.8125rem; cursor: pointer; white-space: nowrap; transition: border-color 0.15s, color 0.15s; }
.dr-sug:hover, .dr-sug.on { border-color: var(--cobalt); color: var(--cobalt); }
.dr-visible { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--dim); font-size: 0.75rem; }
.dr-visible svg { width: 13px; height: 13px; }

/* Connection request */
.dr-ask { display: flex; align-items: center; justify-content: space-between; gap: 14px 20px; flex-wrap: wrap; padding: 14px 14px 14px 18px; border: 1px solid var(--line-2); border-radius: 16px; background: linear-gradient(110deg, color-mix(in srgb, var(--coral) 9%, transparent), transparent 45%), var(--surface); box-shadow: var(--shadow); }
.dr-ask-t { display: grid; gap: 2px; min-width: 0; }
.dr-ask-t b { font-weight: 500; }
.dr-ask-t span { color: var(--dim); font-size: 0.8125rem; }
.dr-ask-a { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-left: auto; }
.dr-ask-a .mono { font-size: 0.625rem; }
.dr-ask.done { box-shadow: none; background: var(--surface); }

/* Details slide-over (a modal-back, so app.js handles open, close and Escape) */
.modal-back.dr-slide { place-items: stretch end; padding: 0; }
.dr-slide .modal { width: min(420px, 100%); height: 100dvh; max-height: none; border-radius: 0; border-width: 0 0 0 1px; animation: dr-in 0.24s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes dr-in { from { transform: translateX(32px); opacity: 0; } to { transform: none; opacity: 1; } }
.dr-details { gap: 26px; padding-bottom: max(24px, env(safe-area-inset-bottom, 0px)); }
.dr-sec { display: grid; gap: 12px; }
.dr-sec > .mono { font-size: 0.625rem; }
.dr-tl { list-style: none; margin: 0; padding: 0; display: grid; }
.dr-tl li { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 0 10px 22px; }
.dr-tl li i { position: absolute; left: 0; top: 50%; width: 9px; height: 9px; margin-top: -5px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); }
.dr-tl li + li::before { content: ""; position: absolute; left: 4px; top: -14px; height: 28px; width: 1px; background: var(--line-2); }
.dr-tl li.next i { background: var(--cobalt); border-color: var(--cobalt); box-shadow: 0 0 0 4px var(--cobalt-soft); }
.dr-tl .grow { display: grid; gap: 1px; min-width: 0; }
.dr-tl b { font-weight: 500; font-size: 0.9375rem; }
.dr-tl .dim { font-size: 0.8125rem; }
.dr-agreed { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dr-agreed li { display: flex; align-items: flex-start; gap: 8px; font-size: 0.875rem; }
.dr-agreed svg { width: 13px; height: 13px; color: var(--cobalt); flex: none; margin-top: 4px; transform: rotate(30deg); }
.dr-agreed b { font-weight: 500; }
.dr-st { font-size: 0.75rem; color: var(--dim); display: inline-flex; align-items: center; gap: 6px; }
.dr-st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); }
.dr-st.on::before { background: var(--ok); }
.dr-req { padding: 12px; border: 1px solid var(--line); border-radius: 10px; }

@media (prefers-reduced-motion: reduce) { .dr-term.glow, .dr-slide .modal, .dr-agree.fresh { animation: none; } .dr-term.glow { background: color-mix(in srgb, var(--cobalt) 12%, transparent); } }

@media (max-width: 1100px) {
  .dr-term[data-term="deliverables"] dd .full, .dr-term[data-term="samples"] dd .full { display: none; }
  .dr-term[data-term="deliverables"] dd .short, .dr-term[data-term="samples"] dd .short { display: inline; }
}
@media (max-width: 800px) {
  .dr.chat2 { display: flex; flex-direction: column; height: calc(100dvh - 60px); }
  .dr .c2-list { flex: none; max-height: none; overflow: visible; }
  .dr .c2-list-head { display: none; }
  .dr .c2-list nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 10px 16px; }
  .dr .c2-list nav::-webkit-scrollbar { display: none; }
  .dr .c2-item { flex: none; grid-template-columns: auto auto; gap: 8px; padding: 4px 12px 4px 4px; border: 1px solid var(--line); border-radius: 999px; }
  .dr .c2-item[aria-current="true"] { border-color: var(--ink); background: var(--surface); }
  .dr .c2-item .c2-av { width: 26px; height: 26px; font-size: 0.5625rem; }
  .dr .c2-item-top .mono, .dr .c2-item-last { display: none; }
  .dr .c2-item-top b { font-size: 0.8125rem; }
  .dr .c2-item.unread::after { right: 4px; top: 2px; bottom: auto; }
  .dr .c2-thread { flex: 1; min-height: 0; }
  .dr .c2-log { min-height: 0; }
}
@media (max-width: 640px), (hover: none) {
  .dr-more { display: inline-grid; }
  .dr-menu { position: absolute; top: calc(100% + 4px); right: 0; z-index: 8; display: none; flex-direction: column; align-items: stretch; gap: 2px; padding: 4px; min-width: 170px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); opacity: 1; transform: none; }
  .dr-acts.open .dr-menu { display: flex; }
  .dr-menu button { border: 0; border-radius: 8px; height: 34px; padding-inline: 10px; font-size: 0.8125rem; color: var(--ink); background: transparent; }
  .dr-menu button:hover { background: var(--paper-2); }
}
@media (max-width: 640px) {
  .dr .c2-head { padding: 12px 16px 10px; }
  .dr .c2-head [data-modal="deal-details"] { display: none; }
  .dr-title h2 { font-size: 1rem; }
  .c2-head:has(.dr-presence) .dr-title p { display: none; }
  .dr-presence { font-size: 0.75rem; gap: 4px 12px; }
  .dr-away { align-items: flex-start; }
  .dr-away svg { margin-top: 2px; }
  .dr .c2-log { padding: 8px 16px 16px; }
  .dr-strip { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 10px 10px 12px 12px; top: 8px; }
  .dr-by { display: none; }
  .dr-stage-l { grid-auto-flow: column; align-items: baseline; gap: 8px; }
  .dr-terms { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: auto auto auto auto; justify-content: space-between; gap: 10px; }
  .dr-term { padding: 0; border: 0; }
  .dr-term dd { font-size: 0.75rem; }
  .dr-term dd .full { display: none !important; }
  .dr-term dd .short { display: inline !important; }
  .dr-none { padding: 0 6px; font-size: 0.6875rem; }
  .dr-open { grid-column: 2; grid-row: 1; width: 26px; height: 26px; }
  .dr .c2-msg.mine .c2-col { max-width: 88%; }
  .dr .c2-foot { padding: 6px 16px max(12px, env(safe-area-inset-bottom, 0px)); gap: 8px; }
  .dr-sugs { margin-inline: -16px; padding-inline: 16px; width: auto; max-width: none; }
  .dr-ask { padding: 12px; }
  .dr-ask-a { width: 100%; justify-content: space-between; }
}

/* Waitlist */
.waitlist { min-height: 100dvh; background: var(--night); color: var(--night-ink); display: grid; grid-template-rows: auto 1fr auto; padding: max(20px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(20px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.waitlist .w-top, .waitlist .w-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: min(1100px, 100%); margin-inline: auto; flex-wrap: wrap; }
.waitlist .w-foot { color: var(--night-dim); font-size: 0.8125rem; }
.waitlist .w-foot a { color: var(--night-dim); }
.waitlist .w-main { display: grid; justify-items: center; align-content: center; gap: 28px; text-align: center; padding-block: 32px; }
.waitlist .orb { width: min(280px, 64vw); aspect-ratio: 1; border-radius: 50%; background: center / cover no-repeat; box-shadow: 0 0 120px 10px color-mix(in srgb, var(--cobalt) 35%, transparent); }
.waitlist h1 { font-size: var(--s-2); max-width: 18ch; }
.waitlist .lede { color: var(--night-dim); max-width: 52ch; font-size: 1.0625rem; }
.waitlist .next { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; width: min(860px, 100%); border: 1px solid var(--night-line); border-radius: 12px; overflow: hidden; text-align: left; background: var(--night-2); }
.waitlist .next > div { padding: 18px 20px; display: grid; gap: 8px; align-content: start; }
.waitlist .next > div + div { border-left: 1px solid var(--night-line); }
.waitlist .next .n { font: 500 0.75rem/1 var(--mono); color: var(--cobalt); }
.waitlist .next p { color: var(--night-dim); font-size: 0.875rem; }
.waitlist .sent { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 20px; width: min(520px, 100%); text-align: left; font-size: 0.875rem; padding: 16px 20px; border: 1px solid var(--night-line); border-radius: 12px; margin: 0; }
.waitlist .sent dt { color: var(--night-dim); }
.waitlist .sent dd { margin: 0; text-align: right; }
.waitlist .chip { color: var(--night-dim); }
.waitlist .row { justify-content: center; }

@media (max-width: 900px) {
  .b-hero { grid-template-columns: minmax(0, 1fr); }
  .b-hero-art { max-width: 360px; }
  .b-facts { grid-template-columns: minmax(0, 1fr); }
  .waitlist .next { grid-template-columns: minmax(0, 1fr); }
  .waitlist .next > div + div { border-left: 0; border-top: 1px solid var(--night-line); }
}
@media (max-width: 640px) {
  .b-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .b-search { flex: 1 1 100%; }
  .b-count { margin-left: 0; width: 100%; }
  .b-tiles { grid-template-columns: minmax(0, 1fr); }
  .b-two { grid-template-columns: minmax(0, 1fr); }
  .b-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; }
  .b-req { flex-wrap: wrap; }
  .b-req .grow { flex-basis: 100%; }
  .b-date { margin-left: auto; }
  .b-facts > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .b-stats dd { font-size: 1.125rem; }
  .waitlist .sent { grid-template-columns: minmax(0, 1fr); }
  .waitlist .sent dd { text-align: left; }
}
.share-link { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 12px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--paper); min-width: 0; }
.share-link svg { width: 15px; height: 15px; flex: none; color: var(--dim); }
.share-link code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 0.8125rem var(--mono); }

/* Deal strip lives in its own row above the log, so nothing scrolls behind it */
.dr-strip-row { padding: 12px clamp(16px, 3vw, 32px) 0; }
.dr-strip-row .dr-strip { position: static; margin: 0 auto; max-width: 720px; box-shadow: none; }
.dr-fade, .c2-log > .dr-fade { display: none; }
.dr-strip-row { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.dr-strip-row .dr-strip { max-width: 980px; }
.dr-strip-row + .c2-log { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 28px); mask-image: linear-gradient(to bottom, transparent 0, #000 28px); }

/* =========================================================================
   Brand dashboard v2: one language with the Deal room.
   Glass strip + rail, mono micro-labels, "Waiting on you" always names the next step.
   ========================================================================= */
.b-cartbtn { flex: none; }
.b-wait { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px 0 10px; border: 1px solid color-mix(in srgb, var(--cobalt) 30%, var(--line)); border-radius: 16px; background: color-mix(in srgb, var(--cobalt) 7%, var(--surface)); color: var(--ink); font-size: 0.8125rem; cursor: pointer; white-space: nowrap; transition: border-color 0.15s, transform 0.15s; }
.b-wait:hover { border-color: var(--cobalt); transform: translateY(-1px); }
.b-wait i, .b-pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--cobalt); flex: none; box-shadow: 0 0 0 3px var(--cobalt-soft); animation: b-pulse 2.4s ease-in-out infinite; }
.b-wait .n { font: 600 0.75rem/1 var(--mono); color: var(--cobalt); }
@keyframes b-pulse { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--cobalt) 0%, transparent), 0 0 0 3px var(--cobalt-soft); } }

/* Ownership chips */
.b-own { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px 0 8px; border-radius: 11px; font: 500 0.625rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.07em; white-space: nowrap; }
.b-own i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.b-own.you { background: var(--cobalt); color: #fff; }
.b-own.team { background: var(--paper-2); color: var(--ink-2); }
.b-own.done { background: var(--ok-soft); color: var(--ok); }
.b-who-t { font: 500 0.625rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.07em; color: var(--dim); white-space: nowrap; }
.b-who-t.you { color: var(--cobalt); }
.b-who-t.creator { color: var(--coral); }

/* Waiting lists (topbar slide-over, discover, requests, digest) */
.b-rlab { display: inline-flex; align-items: center; gap: 8px; font-size: 0.625rem; color: var(--dim); letter-spacing: 0.1em; }
.b-rlab > i:not(.b-pulse) { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); }
.b-wlist { list-style: none; margin: 0; padding: 0; display: grid; }
.b-wrow { display: flex; align-items: center; gap: 10px; padding: 10px 8px; margin-inline: -8px; border-radius: 8px; text-decoration: none; font-size: 0.875rem; transition: background 0.15s; }
.b-wrow:hover { background: var(--paper-2); }
.b-wrow > i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); flex: none; }
.b-wrow.you > i { background: var(--cobalt); }
.b-wrow > svg { width: 14px; height: 14px; color: var(--dim); flex: none; transition: transform 0.15s, color 0.15s; }
.b-wrow:hover > svg { transform: translateX(2px); color: var(--cobalt); }
.b-wlist > li + li .b-wrow { border-top: 1px solid var(--line); border-radius: 0; }
.b-wlist > li + li .b-wrow:hover { border-radius: 8px; border-top-color: transparent; }
.b-waitm { gap: 28px; }
.b-waitm section { display: grid; gap: 8px; }
.b-waitm section > .mono { font-size: 0.625rem; }
.b-waitnote { display: flex; gap: 8px; align-items: flex-start; font-size: 0.8125rem; padding-top: 16px; border-top: 1px solid var(--line); }
.b-waitnote svg { width: 14px; height: 14px; flex: none; margin-top: 3px; }
.b-waitnote a { color: var(--cobalt); }

/* Fit segments: four ticks, one per saved filter */
.b-segs { display: inline-flex; gap: 2px; flex: none; }
.b-segs i { width: 8px; height: 4px; border-radius: 2px; background: var(--line-2); }
.b-segs i.on { background: var(--cobalt); }

/* Deal strip outside the Deal room: static, same glass */
.b-strip { position: static; margin: 0; }
.b-strip::before { display: none; }
a.dr-open { text-decoration: none; }
.b-mrail li { width: 7px; height: 7px; }
.b-mrail li + li { margin-left: 9px; }
.b-mrail li + li::before { width: 7px; top: 2px; }
.b-mrail li.now { box-shadow: 0 0 0 3px var(--cobalt-soft); }

/* ---------- Discover ---------- */
.b-resume { display: grid; gap: 12px; }
.b-rhd { display: flex; justify-content: space-between; gap: 12px; }
.b-rhd .mono { font-size: 0.625rem; letter-spacing: 0.1em; }
.b-rgrid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.b-rcard { display: grid; align-content: start; gap: 10px; min-width: 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); text-decoration: none; transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s; }
.b-rcard.you { background: linear-gradient(115deg, color-mix(in srgb, var(--cobalt) 8%, transparent), transparent 55%), var(--surface); border-color: color-mix(in srgb, var(--cobalt) 22%, var(--line)); }
.b-rcard.you .b-rlab { color: var(--cobalt); }
.b-rreq:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: var(--shadow); }
.b-rt { font: 500 1.0625rem/1.25 var(--display); letter-spacing: -0.015em; }
.b-rstage { display: flex; align-items: center; gap: 10px; font-size: 0.8125rem; color: var(--cobalt); font-weight: 500; }
.b-rnext { font-size: 0.8125rem; }
.b-rgo { display: inline-flex; align-items: center; gap: 6px; font-size: 0.625rem; color: var(--ink); margin-top: 2px; }
.b-rgo svg { width: 13px; height: 13px; transition: transform 0.15s; }
.b-rreq:hover .b-rgo { color: var(--cobalt); }
.b-rreq:hover .b-rgo svg { transform: translateX(3px); }
.b-recent { display: grid; gap: 4px; }
.b-rv { display: flex; align-items: center; gap: 10px; padding: 6px; margin-inline: -6px; border: 0; border-radius: 8px; background: none; text-align: left; cursor: pointer; min-width: 0; }
.b-rv:hover { background: var(--paper-2); }
.b-rv img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: none; }
.b-rv > span { display: grid; min-width: 0; font-size: 0.8125rem; line-height: 1.3; }
.b-rv b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b-rv > span > span { color: var(--dim); font-size: 0.75rem; }
.b-sort { flex: none; }
.b-sort button { height: 30px; font-size: 0.8125rem; }
.b-saved { display: flex; gap: 6px 14px; flex-wrap: wrap; align-items: baseline; margin-top: -10px; font-size: 0.8125rem; }
.b-saved .mono { font-size: 0.625rem; }
.b-savedv { color: var(--ink-2); }
.b-ph { overflow: hidden; }
.b-ph::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.45)); opacity: 0; transition: opacity 0.25s; }
.b-peek { position: absolute; left: 12px; bottom: 12px; z-index: 1; color: #fff; font-size: 0.625rem; letter-spacing: 0.1em; opacity: 0; transform: translateY(4px); transition: opacity 0.2s, transform 0.2s; }
.b-ph:hover::after, .b-ph:focus-visible::after { opacity: 1; }
.b-ph:hover .b-peek, .b-ph:focus-visible .b-peek { opacity: 1; transform: none; }
.b-card { transition: transform 0.25s; }
.b-fit { display: flex; align-items: center; gap: 8px; margin-top: -4px; font-size: 0.75rem; color: var(--dim); min-width: 0; }
.b-fit > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b-card.matched .b-fit { color: var(--cobalt); }

/* Quick view slide-over */
.b-qv { display: flex; flex-direction: column; overflow: hidden !important; }
.b-qv .card-head { flex: none; }
.b-qv [data-qv-go]:first-child svg { transform: rotate(180deg); }
.b-qvn { font-size: 0.625rem; margin-left: 6px; }
.b-qvbody { flex: 1; overflow-y: auto; gap: 20px; }
.b-qvart { position: relative; aspect-ratio: 16 / 11; border-radius: 12px; background: center 40% / cover no-repeat; }
.b-qvver { position: absolute; left: 10px; top: 10px; background: var(--surface); color: var(--ok); border-color: transparent; }
.b-qvver svg { width: 12px; height: 12px; }
.b-qvt { font-size: 1.5rem; letter-spacing: -0.025em; }
.b-qvstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); margin: 0; border-block: 1px solid var(--line); }
.b-qvstats > div { padding: 12px 0; display: grid; gap: 3px; }
.b-qvstats > div + div { border-left: 1px solid var(--line); padding-left: 14px; }
.b-qvstats dt { font-size: 0.5625rem; color: var(--dim); }
.b-qvstats dd { margin: 0; font-size: 1.0625rem; font-variant-numeric: tabular-nums; }
.b-fitbox { display: flex; align-items: center; gap: 10px; font-size: 0.875rem; }
.b-fitbox .b-segs i { width: 14px; height: 5px; }
.b-fitbox b { font-weight: 500; }
.b-qvfit { list-style: none; margin: -8px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; font-size: 0.8125rem; }
.b-qvfit li { display: flex; align-items: center; gap: 6px; color: var(--dim); min-width: 0; }
.b-qvfit li svg { width: 12px; height: 12px; flex: none; }
.b-qvfit li.ok { color: var(--ink); }
.b-qvfit li.ok svg { color: var(--cobalt); }
.b-qvfit .mono { font-size: 0.5625rem; color: var(--dim); }
.b-qvfit li > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b-qvcontent { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.b-qvcontent li { border-bottom: 1px solid var(--line); }
.b-qvcontent button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 2px; border: 0; background: none; text-align: left; cursor: pointer; font-size: 0.875rem; }
.b-qvcontent button:hover { color: var(--cobalt); }
.b-qvcontent svg { width: 13px; height: 13px; flex: none; }
.b-qvcontent span:nth-child(2) { flex: 1; min-width: 0; }
.b-qvcontent .mono { font-size: 0.5625rem; }
.b-qvfoot { flex: none; display: flex; align-items: center; gap: 10px; padding: 14px 20px max(14px, env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: var(--surface); }
.b-qvfoot .b-clear { margin-left: auto; font-size: 0.875rem; white-space: nowrap; }
.b-addlg[aria-pressed="true"] { --b: var(--ok); }
.btn.ghost.b-addlg[aria-pressed="true"] { --b: var(--ok); --f: var(--ok); }

/* Compare */
.b-cmpm { width: min(880px, 100%); display: flex; flex-direction: column; }
.b-cmpm .card-head h3 { font-size: 1.125rem; }
.cmp-note { font-size: 0.8125rem; margin-top: 2px; }
.cmp-scroll { overflow-x: auto; overscroll-behavior-x: contain; }
.cmp { display: flex; min-width: max-content; padding: 4px 20px 12px; }
.cmp-col { display: grid; grid-auto-rows: 46px; grid-template-rows: 150px; width: 210px; flex: none; }
.cmp-labels { width: 120px; position: sticky; left: 0; z-index: 1; background: var(--surface); }
.cmp-col + .cmp-col:not(.cmp-labels) { border-left: 1px solid var(--line); }
.cmp-head { position: relative; display: grid; align-content: end; gap: 2px; padding: 12px 14px; }
.cmp-head img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; margin-bottom: 8px; }
.cmp-head b { font-weight: 500; }
.cmp-head span { font-size: 0.8125rem; color: var(--dim); }
.cmp-x { position: absolute; top: 12px; right: 10px; width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--dim); cursor: pointer; }
.cmp-x:hover { color: var(--ink); border-color: var(--ink); }
.cmp-x svg { width: 12px; height: 12px; }
.cmp-cell { display: flex; align-items: center; gap: 8px; padding: 0 14px; border-top: 1px solid var(--line); font-size: 0.9375rem; font-variant-numeric: tabular-nums; min-width: 0; }
.cmp-labels .cmp-cell { padding-left: 0; }
.cmp-labels .mono { font-size: 0.625rem; color: var(--dim); }
.cmp-l { display: none; }
.cmp-v { display: inline-flex; align-items: center; gap: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmp-cell.best .cmp-v { color: var(--cobalt); font-weight: 500; }
.cmp-cell.best .cmp-v::after, .b-best { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--cobalt); }
.cmp-act { border-top: 0; padding-top: 8px; }

/* ---------- Creator profile ---------- */
.b-prof { padding-bottom: 8px; }
.b-afit { display: grid; gap: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(110deg, color-mix(in srgb, var(--cobalt) 6%, transparent), transparent 50%), var(--surface); }
.b-afit-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; font-size: 0.875rem; }
.b-afit-h .mono { font-size: 0.625rem; letter-spacing: 0.1em; color: var(--dim); }
.b-afit-h b { font-weight: 500; color: var(--cobalt); }
.b-afit-bar { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.b-afit-bar li { display: grid; gap: 3px; min-width: 0; }
.b-afit-bar i { height: 6px; border-radius: 3px; background: var(--line); margin-bottom: 6px; }
.b-afit-bar li.ok i { background: var(--cobalt); }
.b-afit-bar .mono { font-size: 0.5625rem; color: var(--dim); }
.b-afit-bar b { font-weight: 500; font-size: 0.8125rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b-afit-s { font-size: 0.75rem; color: var(--dim); }
.b-afit-bar li.ok .b-afit-s { color: var(--cobalt); }
.b-sim { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.b-simc { display: grid; gap: 10px; text-decoration: none; min-width: 0; }
.b-simph { display: block; aspect-ratio: 4 / 3; border-radius: 10px; background: center / cover no-repeat; transition: transform 0.25s; }
.b-simc:hover .b-simph { transform: translateY(-3px); }
.b-simb { display: grid; gap: 2px; min-width: 0; font-size: 0.8125rem; color: var(--dim); }
.b-simb b { font-weight: 500; font-size: 0.9375rem; color: var(--ink); }
.b-simw { display: flex; align-items: center; gap: 7px; font-size: 0.75rem; }
.b-actbar { position: sticky; bottom: max(16px, env(safe-area-inset-bottom, 0px)); z-index: 15; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 12px; border: 1px solid color-mix(in srgb, var(--line-2) 80%, transparent); border-radius: 14px;
  background: linear-gradient(110deg, color-mix(in srgb, var(--cobalt) 7%, transparent), transparent 40%), color-mix(in srgb, var(--surface) 86%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); box-shadow: 0 18px 40px -24px color-mix(in srgb, var(--ink) 60%, transparent); }
.b-actwho { display: flex; align-items: center; gap: 10px; min-width: 0; }
.b-actwho img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none; }
.b-actwho > span { display: grid; min-width: 0; font-size: 0.8125rem; line-height: 1.3; }
.b-actwho b { font-weight: 500; }
.b-actwho > span > span { color: var(--dim); }
.b-acts { display: flex; align-items: center; gap: 6px; flex: none; }

/* ---------- Brief builder ---------- */
.b-builder { display: grid; gap: 24px; }
.b-bhead h1 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); }
.b-bgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: clamp(20px, 3vw, 40px); align-items: start; }
.b-bform { gap: 0; padding: 0; overflow: hidden; }
.b-step { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 22px clamp(18px, 2.4vw, 28px); border-bottom: 1px solid var(--line); }
.b-stepn { font-size: 0.6875rem; color: var(--cobalt); padding-top: 5px; }
.b-step h2 { font-size: 1.125rem; }
.b-step .b-sum { margin: 0; gap: 14px; font-size: 0.6875rem; }
.b-step .b-list { border-top: 1px solid var(--line); }
.b-step .b-row { padding: 10px 0; }
.b-step .b-thumb { width: 36px; height: 36px; }
.b-hint { font-size: 0.8125rem; margin-top: -10px; }
.b-bform .b-form-foot { padding: 18px clamp(18px, 2.4vw, 28px); background: var(--paper-2); }
.b-bform .btn.quiet svg { width: 14px; height: 14px; }
.picks .pick { transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s; }
.picks .pick:active { transform: scale(0.97); }
.picks .pick[aria-pressed="true"] { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.b-prevwrap { position: sticky; top: 84px; display: grid; gap: 14px; }
.b-ready { display: grid; gap: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transition: border-color 0.3s, background 0.3s; }
.b-ready .mono { font-size: 0.625rem; letter-spacing: 0.1em; }
.b-readyl { color: var(--dim); }
.b-ready.done { border-color: color-mix(in srgb, var(--ok) 40%, var(--line)); background: linear-gradient(110deg, color-mix(in srgb, var(--ok) 8%, transparent), transparent 60%), var(--surface); }
.b-ready.done .b-readyl { color: var(--ok); }
.b-readybar { display: block; height: 4px; border-radius: 2px; background: var(--paper-2); overflow: hidden; }
.b-readybar i { display: block; height: 100%; width: 0; background: var(--cobalt); border-radius: inherit; transition: width 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.3s; }
.b-ready.done .b-readybar i { background: var(--ok); }
.b-checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; font-size: 0.8125rem; color: var(--dim); }
.b-checks li { display: flex; align-items: center; gap: 7px; }
.b-checks svg { width: 14px; height: 14px; padding: 2px; border: 1px solid var(--line-2); border-radius: 50%; color: transparent; flex: none; transition: all 0.2s; }
.b-checks li.ok { color: var(--ink); }
.b-checks li.ok svg { background: var(--ok); border-color: var(--ok); color: #fff; }
.b-paper { position: relative; display: grid; gap: 16px; padding: 22px 22px 18px; border: 1px solid var(--line); border-radius: 4px 4px 14px 14px; background: var(--surface); box-shadow: var(--shadow); }
.b-paper::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--cobalt), color-mix(in srgb, var(--cobalt) 30%, var(--coral))); border-radius: 4px 4px 0 0; }
.b-paperh { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.b-paperh .mono { font-size: 0.5625rem; letter-spacing: 0.1em; }
.b-ptitle { font-size: 1.5rem; letter-spacing: -0.025em; overflow-wrap: anywhere; }
.b-pdl { margin: 0; display: grid; border-top: 1px solid var(--line); }
.b-pdl > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.875rem; }
.b-pdl dt { font-size: 0.5625rem; color: var(--dim); padding-top: 4px; }
.b-pdl dd { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
.b-pcre { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.b-pcre li { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px 2px 2px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.8125rem; animation: pop 0.2s ease-out; }
.b-pcre img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.b-pchip { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 11px; background: var(--cobalt-soft); color: var(--cobalt); font-size: 0.75rem; animation: pop 0.2s ease-out; }
.b-pbody { font: italic 400 1.0625rem/1.5 var(--serif); color: var(--ink-2); overflow-wrap: anywhere; white-space: pre-wrap; max-height: 12em; overflow: auto; }
.b-pfoot { display: flex; align-items: flex-start; gap: 7px; font-size: 0.75rem; color: var(--dim); }
.b-pfoot svg { width: 13px; height: 13px; flex: none; margin-top: 2px; }
.b-empty { border: 1px dashed var(--line-2); border-radius: 16px; max-width: 560px; margin: 24px auto 0; padding: 56px 24px; }
.b-empty b { color: var(--ink); font-weight: 500; font-size: 1.0625rem; }
.b-emptyart { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--cobalt-soft); color: var(--cobalt); }
.b-emptyart svg { width: 22px; height: 22px; }

/* Sent: a short celebration, then what happens next */
.b-sent { display: grid; justify-items: center; gap: 16px; text-align: center; max-width: 720px; width: 100%; margin: 24px auto 0; }
.b-sent h1 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.8rem); }
.b-burst { position: relative; width: 84px; height: 84px; display: grid; place-items: center; margin-bottom: 8px; }
.b-burst > span { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--cobalt); color: #fff; box-shadow: 0 0 0 8px var(--cobalt-soft), 0 0 40px color-mix(in srgb, var(--cobalt) 50%, transparent); animation: b-land 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) both; }
.b-burst > span svg { width: 28px; height: 28px; stroke-width: 2.2; }
.b-burst i { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: var(--cobalt); opacity: 0; animation: b-spark 0.9s 0.15s ease-out both; }
.b-burst i:nth-child(3n) { background: var(--coral); }
.b-burst i:nth-child(4n) { width: 4px; height: 4px; }
@keyframes b-land { from { transform: scale(0.4); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes b-spark { 0% { opacity: 1; transform: rotate(var(--a)) translateY(0); } 100% { opacity: 0; transform: rotate(var(--a)) translateY(-62px); } }
.b-next { list-style: none; margin: 16px 0 8px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; text-align: left; }
.b-next li { position: relative; display: grid; align-content: start; gap: 5px; padding: 22px 14px 0 0; font-size: 0.875rem; }
.b-next li::before { content: ""; position: absolute; top: 4px; left: 0; right: 0; height: 1px; background: var(--line-2); }
.b-next li i { position: absolute; top: 0; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line-2); }
.b-next li.now i { background: var(--cobalt); border-color: var(--cobalt); box-shadow: 0 0 0 4px var(--cobalt-soft); }
.b-next .mono { font-size: 0.5625rem; color: var(--dim); }
.b-next b { font-weight: 500; }
.b-next .dim { font-size: 0.8125rem; }
.b-next .b-who-t { margin-top: 4px; }

/* ---------- Requests pipeline ---------- */
.b-upnext { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; }
.b-upcol { display: grid; align-content: start; gap: 8px; padding: 16px 20px; min-width: 0; }
.b-upcol + .b-upcol { border-left: 1px solid var(--line); }
.b-upcol.you { background: linear-gradient(115deg, color-mix(in srgb, var(--cobalt) 8%, transparent), transparent 60%); }
.b-upcol.you .b-rlab { color: var(--cobalt); }
.b-ptools { gap: 12px; }
.b-ptools > .mono { font-size: 0.625rem; }
.b-lanes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: start; }
.b-lane { display: grid; gap: 10px; min-width: 0; padding: 12px; border-radius: 16px; background: color-mix(in srgb, var(--paper-2) 60%, transparent); }
.b-laneh { display: flex; align-items: center; gap: 8px; padding: 2px 4px; font-size: 0.875rem; }
.b-laneh b { font-weight: 500; }
.b-laneh .mono { margin-left: auto; font-size: 0.6875rem; }
.b-lanel { display: grid; gap: 10px; }
.b-lane0 { font-size: 0.8125rem; padding: 18px 4px; text-align: center; border: 1px dashed var(--line-2); border-radius: 12px; }
.b-pcard { position: relative; display: grid; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.b-pcard:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-2); }
.b-pcard.you { border-color: color-mix(in srgb, var(--cobalt) 35%, var(--line)); box-shadow: inset 3px 0 0 var(--cobalt); }
.b-pcard.you:hover { box-shadow: inset 3px 0 0 var(--cobalt), var(--shadow); }
.b-pctop { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.b-pctop .dr-tag { transform: none; }
.b-pct { display: grid; gap: 2px; text-decoration: none; }
.b-pct h3 { font-size: 1rem; letter-spacing: -0.015em; }
.b-pct:hover h3 { color: var(--cobalt); }
.b-pct .dim { font-size: 0.8125rem; }
.b-mterms { margin: 0; display: grid; gap: 6px; padding: 10px 0; border-block: 1px solid var(--line); }
.b-mterms > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-width: 0; }
.b-mterms dt { font-size: 0.5625rem; color: var(--dim); letter-spacing: 0.1em; flex: none; }
.b-mterms dd { margin: 0; font-size: 0.8125rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b-mterms .dr-none { font-size: 0.6875rem; padding: 0 7px; }
.b-pnext { display: grid; gap: 3px; font-size: 0.875rem; line-height: 1.4; }
.b-pnext .mono { font-size: 0.5625rem; color: var(--dim); letter-spacing: 0.1em; }
.b-pcard.you .b-pnext .mono { color: var(--cobalt); }
.b-pcfoot { display: flex; align-items: center; gap: 12px; }
.b-pcfoot .b-clear { font-size: 0.625rem; white-space: nowrap; }
.b-pcfoot .b-avs img { }

/* ---------- Request detail ---------- */
.b-detail { display: grid; gap: 22px; max-width: 1040px; width: 100%; }
.b-detail .b-rhead { align-items: flex-end; }
.b-detail .b-rhead .dr-tag { transform: none; }
.b-nextbox { display: grid; gap: 8px; padding: 14px 16px 14px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.b-nextbox.you { border-color: color-mix(in srgb, var(--cobalt) 30%, var(--line)); background: linear-gradient(110deg, color-mix(in srgb, var(--cobalt) 9%, transparent), transparent 50%), var(--surface); }
.b-nextbox.you .b-rlab { color: var(--cobalt); }
.b-nextbox.done .b-rlab > i { background: var(--ok); }
.b-nextrow { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; }
.b-nextrow .grow { display: grid; gap: 2px; }
.b-nextrow b { font-weight: 500; }
.b-nextrow .dim { font-size: 0.8125rem; }
.b-dgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: start; padding-top: 6px; }
.b-events li { padding-block: 12px; }
.b-events li + li::before { top: -16px; height: 32px; }
.b-events li:not(.next) i { background: var(--cobalt); border-color: var(--cobalt); }
.b-events .grow b { font-size: 0.9375rem; }
.b-bmeta { font-size: 0.6875rem; }
.b-detail .b-row .chip { flex: none; }
.b-detail .b-thumb { }
.b-detail .b-cta { padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.8125rem; }
.b-detail .b-cta > span { display: inline-flex; align-items: center; gap: 7px; }
.b-detail .b-cta svg { width: 14px; height: 14px; flex: none; }

/* ---------- Settings ---------- */
.b-settings { max-width: 980px; }
.b-settings > form, .b-settings > div:not(.tabs) { max-width: 760px; }
.b-settings > #set-digest { max-width: none; }
.b-consentcard { display: grid; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.b-consent-now { display: inline-flex; align-items: center; gap: 8px; font-size: 0.625rem; color: var(--ok); padding-top: 12px; border-top: 1px solid var(--line); }
.b-consent-now i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.b-consent-now.off { color: var(--dim); }
.b-rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 0.875rem; }
.b-rules li { display: flex; align-items: flex-start; gap: 10px; }
.b-rules svg { width: 15px; height: 15px; color: var(--cobalt); flex: none; margin-top: 3px; }
.b-clog { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.b-clog li { display: flex; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.875rem; flex-wrap: wrap; }
.b-clog .mono { font-size: 0.625rem; min-width: 130px; padding-top: 3px; }
.b-clog li.fresh { animation: pop 0.25s ease-out; }
.b-dgrid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: clamp(24px, 4vw, 48px); align-items: start; }
.b-mail { display: grid; gap: 18px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.b-mail section { display: grid; gap: 6px; }
.b-mail section > .mono { font-size: 0.5625rem; letter-spacing: 0.1em; }
.b-mailh { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.b-mailh .grow { display: grid; font-size: 0.8125rem; line-height: 1.3; }
.b-mailh b { font-weight: 500; }
.b-mailh .mono { font-size: 0.5625rem; border: 1px solid var(--line-2); border-radius: 4px; padding: 3px 5px; }
.b-mailsub { font: 500 1.25rem/1.2 var(--display); letter-spacing: -0.02em; }
.b-moved { list-style: none; margin: 0; padding: 0; display: grid; }
.b-moved li { display: flex; align-items: center; gap: 12px; padding: 9px 0; font-size: 0.875rem; }
.b-moved li + li { border-top: 1px solid var(--line); }
.b-moved .dr-tag { transform: none; }
.b-mailc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.b-mailc a { display: grid; gap: 4px; text-decoration: none; font-size: 0.75rem; min-width: 0; }
.b-mailc img { aspect-ratio: 1; width: 100%; border-radius: 8px; object-fit: cover; transition: transform 0.2s; }
.b-mailc a:hover img { transform: translateY(-2px); }
.b-mailc b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b-mailc span { display: flex; align-items: center; gap: 6px; color: var(--dim); }
.b-mailf { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--line); font-size: 0.75rem; }

/* Focus rings on custom controls */
.b-wrow:focus-visible, .b-rv:focus-visible, .b-pct:focus-visible, .b-simc:focus-visible, .b-rcard:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .b-wait i, .b-pulse, .b-burst > span, .b-burst i, .b-pcre li, .b-pchip { animation: none; }
  .b-burst i { display: none; }
  .b-pcard:hover, .b-rreq:hover, .b-wait:hover, .b-simc:hover .b-simph { transform: none; }
}

@media (max-width: 1180px) {
  .b-lanes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b-bgrid { grid-template-columns: minmax(0, 1fr) minmax(0, 340px); }
}
@media (max-width: 1000px) {
  .b-rgrid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .b-rgrid > .b-rcard.you { grid-column: 1 / -1; }
  .b-bgrid, .b-dgrid2 { grid-template-columns: minmax(0, 1fr); }
  .b-prevwrap { position: static; }
  .b-dgrid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .b-sim { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .b-wait { padding: 0 10px; }
  .b-wait .t { display: none; }
  .b-cartbtn { display: none; }
  .b-rgrid { grid-template-columns: minmax(0, 1fr); }
  .b-saved { margin-top: -6px; }
  .b-sort { order: 5; }
  .b-upnext { grid-template-columns: minmax(0, 1fr); }
  .b-upcol + .b-upcol { border-left: 0; border-top: 1px solid var(--line); }
  .b-ptools > .mono { display: none; }
  .b-ptools .seg { width: 100%; overflow-x: auto; scrollbar-width: none; }
  .b-ptools .seg button { flex: none; }
  .b-lanes { grid-template-columns: minmax(0, 1fr); }
  .b-lane:has(.b-lane0:not([hidden])) .b-lanel { display: none; }
  .b-lane:has(.b-lane0:not([hidden])) { padding-block: 8px; }
  .b-next { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .b-next li { padding: 0 0 18px 24px; }
  .b-next li::before { top: 9px; bottom: -4px; left: 4px; right: auto; width: 1px; height: auto; }
  .b-next li:last-child::before { display: none; }
  .b-sent { text-align: left; justify-items: start; }
  .b-step { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 18px 16px; }
  .b-stepn { padding: 0; }
  .b-step .b-sum { width: 100%; }
  .b-checks { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .b-afit-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 12px; }
  .b-actbar { padding: 8px; gap: 8px; }
  .b-actwho > span { display: none; }
  .b-acts { flex: 1; justify-content: flex-end; }
  .b-acts .btn { padding-inline: 10px; }
  .b-qvfit { grid-template-columns: minmax(0, 1fr); }
  .b-qvfoot { padding-inline: 16px; flex-wrap: wrap; }
  .b-qvfoot .b-addlg { flex: 1; }
  .b-cmpm { height: 100dvh; max-height: none; border-radius: 0; }
  .modal-back:has(.b-cmpm) { padding: 0; }
  .cmp { padding-inline: 16px; }
  .cmp-col { width: 168px; }
  .cmp-labels { width: 92px; }
  .b-detail .b-rhead > .btn { width: 100%; }
  .b-mailc { gap: 8px; }
  .b-clog .mono { min-width: 0; width: 100%; }
}
@media (max-width: 640px) {
  .b-rgrid { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 86%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; }
  .b-rgrid::-webkit-scrollbar { display: none; }
  .b-rgrid > .b-rcard { scroll-snap-align: start; }
  .b-rgrid > .b-rcard.you { grid-column: auto; }
  .b-detail .b-row { flex-wrap: wrap; }
  .b-detail .b-row .chip { margin-left: 58px; }
}
.cmp { min-width: 100%; width: max-content; }
.cmp-col:not(.cmp-labels) { flex: 1 0 210px; }
@media (max-width: 640px) { .cmp-col:not(.cmp-labels) { flex-basis: 168px; } }
.b-mrail, .b-mrail li { flex: none; }
@media (max-width: 640px) {
  .b-actwho { display: none; }
  .b-acts { width: 100%; justify-content: space-between; }
  .b-detail .b-row .grow { flex-basis: calc(100% - 58px); }
}
