/* creator views: page-specific styles. Tokens from styles.css only; --role is coral here. */

.search svg { width: 16px; height: 16px; flex: none; }
.page .stack, .pending .stack { grid-template-columns: minmax(0, 1fr); }
.hint-line { color: var(--dim); font-size: var(--s--1); }
.counter { font: 500 0.6875rem/1 var(--mono); color: var(--dim); }
.chip svg { width: 12px; height: 12px; flex: none; }
.row.between { justify-content: space-between; }

/* ---------- Bottom tab bar (phones) ---------- */
.cx-tabbar { display: none; }
@media (max-width: 900px) {
  .cx-tabbar { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 6px max(6px, env(safe-area-inset-right, 0px)) max(6px, env(safe-area-inset-bottom, 0px)) max(6px, env(safe-area-inset-left, 0px)); background: color-mix(in srgb, var(--surface) 88%, transparent); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); border-top: 1px solid var(--line); }
  .cx-tabbar a { position: relative; display: grid; justify-items: center; gap: 3px; padding: 6px 0 4px; text-decoration: none; color: var(--dim); font-size: 0.6875rem; font-weight: 500; border-radius: 10px; }
  .cx-tabbar a svg { width: 21px; height: 21px; }
  .cx-tabbar a[aria-current="page"] { color: var(--ink); }
  .cx-tabbar a[aria-current="page"] svg { color: var(--role); }
  .cx-tabbar a[aria-current="page"]::before { content: ""; position: absolute; top: -7px; left: 50%; width: 18px; height: 2px; margin-left: -9px; border-radius: 0 0 2px 2px; background: var(--role); }
  .cx-tab-dot { position: absolute; top: 5px; left: calc(50% + 7px); width: 8px; height: 8px; border-radius: 50%; background: var(--role); box-shadow: 0 0 0 2px var(--surface); }
  body[data-role="creator"]:has(.cx-tabbar) .toasts { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  body[data-role="creator"] .page { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- Page frame ---------- */
.cx { width: 100%; max-width: 600px; margin-inline: auto; display: grid; gap: 36px; padding-block: 8px 48px; }
.cx-wide { max-width: 1040px; }
.cx-hello { display: grid; gap: 8px; }
.cx-hello .mono, .cx-sec-head .mono, .cx-step, .cx-nums dt, .cx-sees > .mono, .cx-strength .mono, .cx-week > .mono, .cx-look .mono, .cx-deal-rate .mono, .cx-sent dt { font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.cx-hello h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); line-height: 1.05; }
.cx-hello p { color: var(--dim); max-width: 52ch; }
.cx-sec { display: grid; gap: 12px; scroll-margin-top: 84px; }
.cx-sec-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.cx-link { font-size: 0.8125rem; color: var(--ink-2); }
.cx-list { display: grid; }
.cx-list > * + * { border-top: 1px solid var(--line); }
.cx-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; text-decoration: none; color: inherit; min-width: 0; }
a.cx-row:hover b { color: var(--role); }
.cx-row-body { flex: 1; display: grid; gap: 2px; min-width: 0; }
.cx-row-body b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-row-body > span { color: var(--dim); font-size: 0.875rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-chev { width: 16px; height: 16px; color: var(--dim); flex: none; }
.cx-when { font-size: 0.6875rem; }
.cx-ic { width: 36px; height: 36px; display: grid; place-items: center; background: var(--paper-2); border-radius: 8px; flex: none; }
.cx-ic svg { width: 16px; height: 16px; }
.cx-hint { color: var(--dim); font-size: 0.8125rem; }
.cx-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.cx-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 0.875rem; color: var(--ink-2); }
.cx-facts li { display: flex; gap: 8px; align-items: flex-start; }
.cx-facts svg { width: 14px; height: 14px; flex: none; margin-top: 4px; color: var(--ok); }
.cx-facts li.no svg { color: var(--dim); }

/* ---------- Home ---------- */
.cx-home { max-width: 1040px; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px 36px; align-items: start; }
.cx-home > .cx-hello { grid-column: 1 / -1; }
.cx-home-main, .cx-home-side { display: grid; gap: 32px; min-width: 0; }
.cx-home-side { gap: 16px; position: sticky; top: 84px; }
.cx-today { position: relative; overflow: hidden; padding: 26px 24px 24px; border: 1px solid var(--line); border-radius: 18px; background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--role) 13%, transparent), transparent 60%), var(--surface); box-shadow: var(--shadow); }
.cx-today::before { content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 2px; background: linear-gradient(90deg, var(--role), transparent); }
.cx-today > div { display: grid; gap: 10px; justify-items: start; }
.cx-today-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cx-step { color: var(--role) !important; }
.cx-today h2 { font-size: clamp(1.5rem, 4.4vw, 2rem); line-height: 1.08; max-width: 18ch; }
.cx-today p { color: var(--ink-2); max-width: 44ch; margin-bottom: 6px; }
.cx-tline { list-style: none; margin: 0; padding: 0; display: grid; }
.cx-tline a { position: relative; display: grid; grid-template-columns: 62px 14px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 0; text-decoration: none; }
.cx-tline a:hover b { color: var(--role); }
.cx-tline-d { font-size: 0.6875rem; color: var(--dim); }
.cx-tline i { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); justify-self: center; position: relative; z-index: 1; }
.cx-tline li + li a::before { content: ""; position: absolute; left: 80px; top: -18px; height: 36px; width: 1px; background: var(--line); }
.cx-tline li.you i { background: var(--role); border-color: var(--role); box-shadow: 0 0 0 4px var(--role-soft); }
.cx-tline-b { display: grid; gap: 1px; min-width: 0; }
.cx-tline-b b { font-weight: 500; }
.cx-tline-b span { color: var(--dim); font-size: 0.8125rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-strength { padding: 18px 18px 8px; display: grid; gap: 12px; }
.cx-strength-top { display: flex; gap: 16px; align-items: center; }
.cx-ring-wrap { position: relative; width: 72px; height: 72px; flex: none; display: grid; place-items: center; }
.cx-ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.cx-ring circle { fill: none; stroke: var(--paper-2); stroke-width: 6; }
.cx-ring circle.on { stroke: var(--role); stroke-linecap: round; transition: stroke-dasharray 0.6s; }
.cx-ring-wrap > span { font: 500 0.8125rem var(--mono); color: var(--dim); }
.cx-ring-wrap b { font: 600 1.375rem/1 var(--display); color: var(--ink); letter-spacing: -0.03em; }
.cx-unlock { margin-top: 4px; font-size: 0.9375rem; line-height: 1.4; }
.cx-unlock a { color: var(--ink); font-weight: 500; text-decoration-color: var(--role); text-underline-offset: 3px; }
.cx-arrow { color: var(--role); }
.cx-steps { list-style: none; margin: 0 -8px; padding: 0; display: grid; }
.cx-steps a { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 10px; text-decoration: none; }
.cx-steps a:hover { background: var(--paper-2); }
.cx-step-ic { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; border: 1.5px dashed var(--line-2); color: var(--dim); }
.cx-step-ic svg { width: 12px; height: 12px; }
.cx-steps .done .cx-step-ic { border: 0; background: var(--ok-soft); color: var(--ok); }
.cx-steps .review .cx-step-ic { border-style: solid; border-color: var(--warn); color: var(--warn); }
.cx-steps .todo .cx-step-ic { border-style: solid; border-color: var(--role); background: var(--role-soft); color: var(--role); }
.cx-step-t { display: grid; min-width: 0; }
.cx-step-t b { font-weight: 500; font-size: 0.875rem; }
.cx-step-t span { color: var(--dim); font-size: 0.8125rem; }
.cx-steps .done .cx-step-t b { color: var(--dim); font-weight: 400; }
.cx-steps .done .cx-step-t span { display: none; }
.cx-steps-sum { display: none; align-items: center; gap: 12px; padding: 8px; font-size: 0.875rem; color: var(--dim); }
.cx-steps-sum svg { width: 22px; height: 22px; padding: 5px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); flex: none; }
@media (max-width: 640px) { .cx-steps .done { display: none; } .cx-steps-sum { display: flex; } }
.cx-week { padding: 16px 18px; display: grid; gap: 12px; }
.cx-week p { font-size: 0.875rem; color: var(--dim); }
.cx-week p b { color: var(--ink); font-weight: 500; display: block; }
.cx-days { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cx-days li { display: grid; justify-items: center; gap: 6px; font: 500 0.625rem/1 var(--mono); color: var(--dim); }
.cx-days i { width: 100%; max-width: 30px; height: 30px; border-radius: 9px; background: var(--paper-2); }
.cx-days li.on i { background: color-mix(in srgb, var(--role) 78%, var(--surface)); }
.cx-days li.today i { background: transparent; border: 1.5px dashed var(--role); }
.cx-days li.today { color: var(--role); }
.cx-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); overflow: hidden; }
.cx-nums a { padding: 14px 14px 12px; display: grid; gap: 4px; text-decoration: none; }
.cx-nums a:hover { background: var(--paper-2); }
.cx-nums a + a { border-left: 1px solid var(--line); }
.cx-nums dd { margin: 0; font: 600 1.625rem/1 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.cx-nums a > span { font-size: 0.75rem; color: var(--dim); }

/* ---------- Upload modal ---------- */
.cx-drop { position: relative; display: grid; justify-items: center; gap: 4px; padding: 22px 16px; border: 1.5px dashed var(--line-2); border-radius: 12px; text-align: center; cursor: pointer; font-size: 0.8125rem; color: var(--dim); transition: border-color 0.15s, background 0.15s; }
.cx-drop:hover, .cx-drop:focus-within { border-color: var(--role); background: color-mix(in srgb, var(--role) 5%, transparent); }
.cx-drop.has { border-style: solid; border-color: var(--ok); }
.cx-drop.need { border-color: var(--role); }
.cx-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.cx-drop b { color: var(--ink); font-weight: 500; font-size: 0.9375rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-drop-ic { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--role-soft); color: var(--role); margin-bottom: 4px; }
.cx-drop-ic svg { width: 18px; height: 18px; }
.cx-file { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; padding: 10px 14px 10px 10px; border: 1px solid color-mix(in srgb, var(--role) 30%, var(--line)); border-radius: 14px; background: var(--surface); text-decoration: none; justify-self: end; }
.cx-file-ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--role-soft); color: var(--role); flex: none; }
.cx-file-ic svg { width: 16px; height: 16px; }
.cx-file > span:last-child { display: grid; min-width: 0; text-align: left; }
.cx-file b { font-weight: 500; font-size: 0.875rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-file b + span { font-size: 0.75rem; color: var(--dim); }

/* ---------- Forms ---------- */
.cx-form { display: grid; gap: 36px; min-width: 0; }
.cx-fields { display: grid; gap: 14px; }
.cx-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.cx-plat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 12px; }
.cx-plat > b { grid-column: 1 / -1; font-weight: 500; font-size: 0.875rem; }
.cx-save { position: sticky; bottom: 0; padding: 14px 0; background: linear-gradient(to top, var(--paper) 70%, transparent); display: flex; justify-content: flex-end; z-index: 5; }
.cx-more { border-top: 1px solid var(--line); }
.cx-more summary { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; cursor: pointer; list-style: none; font-weight: 500; }
.cx-more summary::-webkit-details-marker { display: none; }
.cx-more summary svg { width: 16px; height: 16px; transition: transform 0.2s; }
.cx-more[open] summary svg { transform: rotate(45deg); }
.cx-more-body { padding-bottom: 8px; }
.checkline input { accent-color: var(--role); }

/* ---------- Profile ---------- */
.cx-split { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.cx-split-side { position: sticky; top: 84px; display: grid; gap: 16px; }
.cx-sees { display: grid; gap: 10px; }
.preview .c-card:hover { transform: none; box-shadow: none; }
.preview .rate-line { display: flex; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 0.875rem; }
.preview .rate-line b { font: 500 0.9375rem var(--mono); }
.cx-sees .c-card { box-shadow: var(--shadow); }
.cx-privacy { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; }
.cx-more-links { display: grid; border-top: 1px solid var(--line); }
.cx-more-links a { display: flex; align-items: center; gap: 10px; padding: 12px 2px; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 500; font-size: 0.9375rem; }
.cx-more-links a:hover { color: var(--role); }
.cx-more-links svg { width: 16px; height: 16px; color: var(--dim); }
.cx-more-links .mono { margin-left: auto; font-size: 0.6875rem; }
.cx-vlinks { display: grid; }
.cx-vlink { display: flex; align-items: center; gap: 12px; padding: 12px 0; min-width: 0; }
.cx-vlink + .cx-vlink { border-top: 1px solid var(--line); }
.cx-vlink.no .cx-row-body b { color: var(--dim); }
.cx-x { width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: var(--dim); display: grid; place-items: center; cursor: pointer; flex: none; }
.cx-x:hover { background: var(--paper-2); color: var(--ink); }
.cx-x svg { width: 14px; height: 14px; }
.cx-addlink { display: grid; gap: 12px; padding: 16px; border: 1px dashed var(--line-2); border-radius: 12px; }
.cx-verified { display: flex; gap: 16px; align-items: flex-start; }
.cx-verified > div { display: grid; gap: 10px; justify-items: start; }
.cx-verified b { font-weight: 500; }
.cx-verified p { color: var(--ink-2); font-size: 0.9375rem; }
.cx-badge { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--ink); color: var(--paper); box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px var(--line-2); }
.cx-badge svg { width: 20px; height: 20px; }
.cx-savebar { position: sticky; bottom: 16px; z-index: 15; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 16px; border: 1px solid var(--line); border-radius: 14px; background: color-mix(in srgb, var(--surface) 90%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: var(--shadow); font-size: 0.875rem; color: var(--dim); }
.cx-savebar.dirty { color: var(--ink); border-color: color-mix(in srgb, var(--role) 45%, var(--line)); }
.cx-savebar.dirty span::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--role); vertical-align: 1px; }

/* ---------- Pitch ---------- */
.cx-prog { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8125rem; }
.cx-prog b { font-weight: 500; }
.cx-prog-bar, .cx-meter { display: inline-flex; gap: 3px; }
.cx-prog-bar i, .cx-meter i { width: 18px; height: 6px; border-radius: 3px; background: var(--line-2); transition: background 0.3s; }
.cx-prog-bar i.on, .cx-meter i.on { background: var(--role); }
.cx-meter.lg i { width: 28px; height: 8px; border-radius: 4px; }
.cx-dreams { display: grid; gap: 10px; }
.cx-dream { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); transition: border-color 0.15s, box-shadow 0.15s; }
.cx-dream:not(.filled) { border-style: dashed; border-color: var(--line-2); background: transparent; }
.cx-dream.editing { border-style: solid; border-color: var(--role); box-shadow: 0 0 0 3px color-mix(in srgb, var(--role) 14%, transparent); }
.cx-dream-face { width: 100%; display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 18px; border: 0; background: none; text-align: left; cursor: pointer; color: inherit; border-radius: 16px; min-height: 84px; }
.cx-dream-face:hover .cx-dream-mark { transform: scale(1.04); }
.cx-dream-n { font-size: 0.625rem; color: var(--dim); }
.cx-dream-mark { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--role-soft); color: var(--role); font: 600 1rem/1 var(--display); transition: transform 0.15s; }
.cx-dream:not(.filled) .cx-dream-mark { background: var(--paper-2); color: var(--dim); }
.cx-dream-mark svg { width: 18px; height: 18px; }
.cx-dream-t { display: grid; gap: 2px; min-width: 0; }
.cx-dream-t b { font: 600 1.125rem/1.2 var(--display); letter-spacing: -0.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-dream:not(.filled) .cx-dream-t b { font-family: var(--sans); font-weight: 500; font-size: 1rem; letter-spacing: 0; }
.cx-dream-t span { color: var(--dim); font-size: 0.8125rem; font-family: var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-dream:not(.filled) .cx-dream-t span { font-family: var(--sans); }
.cx-dream-edit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; padding: 0 18px 18px; }
.cx-dream-edit > .row { grid-column: 1 / -1; }
.cx-next3 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: n; }
.cx-next3 li { display: grid; gap: 4px; align-content: start; counter-increment: n; font-size: 0.875rem; }
.cx-next3 li::before { content: "0" counter(n); font: 500 0.6875rem var(--mono); color: var(--role); }
.cx-next3 b { font-weight: 500; }
.cx-next3 span { color: var(--dim); }

/* ---------- Brands ---------- */
.cx-cap { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); font-size: 0.9375rem; color: var(--dim); }
.cx-cap b { color: var(--ink); font-weight: 500; }
.cx-cap .mono { margin-left: auto; font-size: 0.625rem; }
.cx-req { display: flex; align-items: center; gap: 12px; padding: 12px 0; text-decoration: none; min-width: 0; }
.cx-req:hover b { color: var(--role); }
.cx-req.fresh { animation: pop 0.3s ease-out; }
.cx-rail { display: inline-flex; gap: 3px; flex: none; }
.cx-rail i { width: 12px; height: 4px; border-radius: 2px; background: var(--line-2); }
.cx-rail i.on { background: var(--ok); }
.cx-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.cx-filter { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 17px; background: var(--surface); cursor: pointer; font-size: 0.875rem; }
.cx-filter .mono { font-size: 0.625rem; color: var(--dim); }
.cx-filter[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.cx-filter[aria-pressed="true"] .mono { color: inherit; opacity: 0.7; }
.cx-bgrid { display: grid; gap: 12px; }
.cx-bcard { display: grid; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); transition: border-color 0.15s, box-shadow 0.15s; }
.cx-bcard[data-dream="yes"] { background: linear-gradient(110deg, color-mix(in srgb, var(--role) 7%, transparent), transparent 45%), var(--surface); }
.cx-bcard.writing { border-color: var(--role); box-shadow: 0 0 0 3px color-mix(in srgb, var(--role) 14%, transparent); }
.cx-bcard-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cx-look { display: grid; gap: 4px; font-size: 0.9375rem; color: var(--ink-2); }
.cx-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.cx-bcard-act { display: flex; justify-content: flex-end; }
.cx-bcard-act .btn[disabled] { opacity: 0.45; cursor: not-allowed; filter: none; }
.cx-reqform { display: grid; gap: 10px; }
.cx-reqform textarea { resize: vertical; }
.cx-reqform-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.cx-left { display: inline-flex; align-items: center; gap: 8px; font-size: 0.75rem; color: var(--dim); }
.cx-reqsent { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 0.875rem; color: var(--dim); }

/* ---------- Deals ---------- */
.cx-waiting { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--role-soft); font-size: 0.9375rem; }
.cx-waiting b { font-weight: 500; }
.cx-wdot { width: 8px; height: 8px; border-radius: 50%; background: var(--role); flex: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--role) 22%, transparent); }
.cx-deals { display: grid; gap: 14px; }
.cx-deal { display: grid; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); scroll-margin-top: 84px; }
.cx-deal.focus { border-color: var(--role); }
.cx-deal.past { background: transparent; }
.cx-deal-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cx-deal-head .cx-row-body { flex: 1 1 160px; }
.cx-deal-head .cx-row-body b { font: 600 1.125rem/1.2 var(--display); letter-spacing: -0.02em; }
.cx-deal-sub { color: var(--ink-2); font-size: 0.9375rem; }
.cx-deal-rate { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--paper-2); font-size: 0.875rem; }
.cx-deal-rate b { font: 500 0.9375rem var(--mono); }
.cx-deal-rate b .dim { font-family: var(--sans); font-size: 0.8125rem; }
.cx-checks { list-style: none; margin: 0; padding: 0; display: grid; }
.cx-checks li { display: flex; align-items: center; gap: 12px; padding: 10px 0; min-width: 0; }
.cx-checks li + li { border-top: 1px solid var(--line); }
.cx-chk { width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--line-2); display: grid; place-items: center; flex: none; color: var(--dim); }
.cx-chk svg { width: 12px; height: 12px; }
.cx-checks .done .cx-chk { border: 0; background: var(--ok-soft); color: var(--ok); }
.cx-checks .done b { color: var(--dim); font-weight: 400; }
.cx-checks .team .cx-chk { border-style: dashed; }
.cx-checks .next .cx-chk { border-color: var(--role); box-shadow: 0 0 0 3px var(--role-soft); }
.cx-checks .next b { color: var(--ink); }
.cx-checks .cx-row-body > span { white-space: normal; }
.cx-who { font-size: 0.625rem; }
.cx-deal-foot { display: flex; justify-content: flex-end; padding-top: 4px; }

/* ---------- Settings ---------- */
.cx-set { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; }
.cx-set + .cx-set { border-top: 1px solid var(--line); }
.cx-set > div { min-width: 0; }
.cx-set b { font-weight: 500; overflow-wrap: anywhere; }
.cx-set p { color: var(--dim); font-size: 0.8125rem; margin-top: 2px; }
.cx-ref { display: flex; gap: 10px; align-items: center; padding: 8px 8px 8px 14px; border: 1px solid var(--line-2); border-radius: 10px; min-width: 0; }
.cx-ref code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 0.8125rem var(--mono); }

/* ---------- Pending ---------- */
.pending { min-height: 100dvh; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; }
.timeline li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; position: relative; padding-bottom: 22px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 13px; top: 30px; bottom: 2px; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li.done::before { background: var(--role); }
.timeline .pt { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line-2); background: var(--surface); }
.timeline .pt svg { width: 14px; height: 14px; }
.timeline li.done .pt { background: var(--role); border-color: var(--role); color: var(--on-accent); }
.timeline li.now .pt { border-color: var(--role); }
.timeline li.now .pt::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--role); animation: cx-pulse 1.6s ease-in-out infinite; }
.timeline b { font-weight: 500; }
.cx-tl-when { margin-left: 8px; font-size: 0.625rem; }
.timeline p { color: var(--dim); font-size: 0.9375rem; margin-top: 2px; }
@keyframes cx-pulse { 50% { opacity: 0.35; transform: scale(0.8); } }
.cx-sent { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border: 1px solid var(--line); border-radius: 12px; }
.cx-sent > div { padding: 12px 14px; display: grid; gap: 4px; }
.cx-sent > div + div { border-left: 1px solid var(--line); }
.cx-sent dd { margin: 0; font: 500 1rem var(--mono); }
.pending .auth-side { align-content: space-between; }
.pending .auth-side .preview { width: min(300px, 100%); justify-self: center; color: var(--ink); }
.pending .auth-side .preview .c-card { box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.7); }
.pending .auth-side .side-note { color: #E6E6E8; font-size: 0.9375rem; max-width: 40ch; }

/* ---------- Deal room (creator side; mirrors the brand inbox in coral) ---------- */
.page:has(> .cx-inbox) { padding: 0; max-width: none; }
.cx-pane[hidden] { display: none; }
.cx-avs { display: inline-flex; }
.cx-avs > * { width: 26px !important; height: 26px !important; border-radius: 50%; border: 2px solid var(--paper); margin-left: -8px; font-size: 0.625rem !important; position: relative; }
.cx-avs > :first-child { margin-left: 0; }
.cx-person { display: flex; align-items: center; gap: 12px; font-size: 0.9375rem; }
.cx-tog { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.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(--role) 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-presence { flex-basis: 100%; display: flex; align-items: center; gap: 6px 18px; flex-wrap: wrap; font-size: 0.8125rem; color: var(--dim); }
.dr-on { 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-strip-row { padding: 12px clamp(16px, 3vw, 32px); border-bottom: 1px solid var(--line); }
.dr-strip { position: relative; display: flex; align-items: center; gap: 14px; margin: 0 auto; max-width: 980px; 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(--role) 7%, transparent), transparent 40%), color-mix(in srgb, var(--surface) 86%, transparent); }
.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); }
.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(--role); border-color: var(--role); }
.dr-rail li.done + li::before { background: var(--role); }
.dr-rail li.now { background: var(--role); border-color: var(--role); box-shadow: 0 0 0 4px var(--role-soft), 0 0 14px 2px color-mix(in srgb, var(--role) 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(--role); 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 .short { display: none; }
.dr-term.glow { animation: dr-glow 1.6s ease-out; }
@keyframes dr-glow { 0% { background: color-mix(in srgb, var(--role) 18%, transparent); box-shadow: 0 0 0 1px var(--role), 0 0 22px -2px color-mix(in srgb, var(--role) 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(--role); color: var(--role); }
.dr-open svg { width: 14px; height: 14px; }
.dr .c2-log { padding-top: 16px; gap: 18px; }
.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, .dr-menu button[data-act="upload"]:hover { color: var(--role); border-color: var(--role); }
.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(--role) 26%, var(--line)); border-radius: 10px; background: color-mix(in srgb, var(--role) 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(--role); background: color-mix(in srgb, var(--role) 10%, var(--surface)); }
.dr-agree svg { width: 13px; height: 13px; color: var(--role); 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(--role); }
.c2-msg.mine .dr-agree { justify-self: end; }
.dr-agree.fresh { animation: pop 0.25s ease-out; }
.dr .c2-foot { display: grid; gap: 10px; padding-top: 8px; }
.dr .c2-foot > * { width: 100%; max-width: 720px; margin-inline: auto; }
.dr .c2-send:hover { background: var(--role); }
.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(--role); color: var(--role); }
.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; }
.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(--role) 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.done { box-shadow: none; background: var(--surface); }
.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; justify-items: stretch; }
.dr-sec > .mono { font-size: 0.625rem; }
.dr-sec > [data-up-hide] { justify-self: start; }
.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.done i { background: var(--ok); border-color: var(--ok); }
.dr-tl li.next i { background: var(--role); border-color: var(--role); box-shadow: 0 0 0 4px var(--role-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(--role); 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-details .cx-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; } }

/* ---------- Responsive ---------- */
@media (max-width: 1500px) {
  .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: 900px) {
  .cx-home { grid-template-columns: minmax(0, 1fr); }
  .cx-home-side { position: static; }
  .cx-split { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .cx-split-side { position: static; order: -1; }
  .cx-sees .c-card { flex-direction: row; }
  .cx-sees .c-card .ph { width: 116px; flex: none; aspect-ratio: auto; min-height: 150px; }
  .cx-sees .c-card .ph .tl { display: none; }
  .cx-sees .c-card .ph .name { font-size: 0.875rem; left: 10px; right: 10px; }
  .cx-sees .c-card .meta { flex: 1; min-width: 0; align-content: center; }
  .cx-more-links { display: none; }
  .cx-savebar { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
  .cx-save { bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 800px) {
  .dr.chat2 { display: flex; flex-direction: column; height: calc(100dvh - 60px - 64px - env(safe-area-inset-bottom, 0px)); }
  .page:has(> .cx-inbox) { padding-bottom: 0 !important; }
  .dr .c2-list { flex: none; max-height: none; overflow: visible; border-right: 0; border-bottom: 1px solid var(--line); }
  .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-body { display: grid; }
  .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 (min-width: 801px) and (max-width: 900px) {
  .dr.chat2 { height: calc(100dvh - 60px - 64px); }
}
@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; }
  .c2-meta.mine .dr-menu { right: auto; left: 0; }
  .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) {
  .cx { gap: 28px; }
  .cx-today { padding: 22px 18px 20px; }
  .cx-today::before { left: 18px; right: 18px; }
  .cx-tline a { grid-template-columns: 54px 12px minmax(0, 1fr) auto; gap: 10px; }
  .cx-tline li + li a::before { left: 70px; }
  .cx-nums dd { font-size: 1.375rem; }
  .cx-nums a { padding: 12px 10px 10px; }
  .cx-two { grid-template-columns: minmax(0, 1fr); }
  .cx-dream-face { grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 14px; }
  .cx-dream-n { display: none; }
  .cx-dream-st { grid-column: 2; }
  .cx-dream-st:empty { display: none; }
  .cx-dream-edit { grid-template-columns: minmax(0, 1fr); padding: 0 14px 14px; }
  .cx-next3 { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .cx-cap .mono { margin-left: 0; }
  .cx-req .cx-rail { display: none; }
  .cx-deal { padding: 16px; }
  .cx-checks li { flex-wrap: wrap; }
  .cx-checks li .btn { margin-left: 34px; }
  .cx-verified { gap: 12px; }
  .cx-sent dd { font-size: 0.9375rem; }
  .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-strip-row { padding: 10px 16px; }
  .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; }
  .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-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 10px; 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; }
}

/* Pending on phones: the review timeline first, the preview after */
@media (max-width: 900px) { .pending .auth-side { order: 1; min-height: 0; } }
