/* team views: page-specific styles. Use tokens from styles.css only. */

/* Small helpers */
.chip svg { width: 12px; height: 12px; }
.chip.tonly { color: var(--ink); border-style: dashed; }
.chip.blocked { color: var(--dim); text-decoration: line-through; }
.mono-sm { font: 400 0.75rem/1.3 var(--mono); color: var(--dim); overflow-wrap: anywhere; }
.muted-note { font-size: 0.8125rem; color: var(--dim); }
.card > .muted-note, .card-body { padding: 16px 20px; }
.card-body { display: grid; gap: 14px; }
.sec-title { font: 500 0.6875rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--dim); }
.link-btn, .k-title { border: 0; background: none; padding: 0; text-align: left; font: 500 0.9375rem/1.3 var(--sans); color: var(--ink); cursor: pointer; }
.link-btn:hover, .k-title:hover { color: var(--cobalt); text-decoration: underline; text-underline-offset: 3px; }
.mark.sm { width: 24px; height: 24px; font-size: 0.5625rem; border-radius: 6px; }
.seg [role="tab"][aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.head-row h1 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); }
.head-row .sub { color: var(--dim); margin-top: 6px; }

/* Five-up stats */
.stats-row.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.stats-row a.stat { text-decoration: none; }
.stats-row a.stat:hover .value { color: var(--cobalt); }
@media (max-width: 1100px) {
  .stats-row.five { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats-row.five > :nth-child(n) { border-left: 1px solid var(--line); border-top: 0; }
  .stats-row.five > :nth-child(3n+1) { border-left: 0; }
  .stats-row.five > :nth-child(n+4) { border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .stats-row.five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-row.five > :nth-child(n) { border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
  .stats-row.five > :nth-child(2n+1) { border-left: 0; }
  .stats-row.five > :nth-child(-n+2) { border-top: 0; }
}

/* Queue and feed */
.queue > li { flex-wrap: wrap; }
.q-ic { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: var(--paper-2); color: var(--ink); flex: none; }
.q-ic svg { width: 16px; height: 16px; }
.q-ic.creator { background: var(--coral-soft); color: var(--coral); }
.q-ic.brand { background: var(--cobalt-soft); color: var(--cobalt); }
.q-ic.warn { background: var(--warn-soft); color: var(--warn); }
.q-main { flex: 1; min-width: 180px; }
.q-main b { font-weight: 500; display: block; }
.q-main span { font-size: var(--s--1); color: var(--dim); }
.feed > li { align-items: flex-start; font-size: 0.875rem; padding-block: 12px; }
.feed .dot { margin-top: 7px; }
.feed time { margin-left: auto; white-space: nowrap; }
.presence { position: relative; display: inline-grid; }
.presence::after { content: ""; position: absolute; right: -2px; bottom: -2px; width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 2px var(--surface); }
.presence.away::after { background: var(--line-2); }

/* Bars drawn with divs */
.bars { display: grid; gap: 12px; padding: 18px 20px; }
.bar-row { display: grid; grid-template-columns: minmax(96px, 130px) minmax(0, 1fr) 28px; gap: 12px; align-items: center; font-size: 0.875rem; text-decoration: none; }
.bar-row:hover .bar-track { background: var(--line); }
.bar-track { height: 10px; background: var(--paper-2); border-radius: 5px; overflow: hidden; }
.bar-track i { display: block; height: 100%; background: currentColor; border-radius: 5px; min-width: 4px; }
.stackbar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; gap: 2px; margin: 18px 20px 0; }
.stackbar i { background: currentColor; display: block; }

/* Creator table */
.chk { width: 18px; height: 18px; border: 1.5px solid var(--line-2); border-radius: 4px; background: var(--surface); cursor: pointer; display: inline-grid; place-items: center; padding: 0; vertical-align: middle; }
.chk:hover { border-color: var(--ink); }
.chk[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); }
.chk[aria-pressed="true"]::after { content: ""; width: 9px; height: 5px; border: 2px solid var(--paper); border-top: 0; border-right: 0; transform: translate(0, -1px) rotate(-45deg); }
.table td.tight, .table th.tight { width: 1%; padding-right: 0; }
.chan { display: grid; gap: 2px; font-size: 0.8125rem; white-space: nowrap; }
.chan b { font-weight: 500; }
.strength { display: flex; align-items: center; gap: 8px; min-width: 110px; }
.strength .progress { flex: 1; }
.filter-group { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.filter-group > .mono { color: var(--dim); margin-right: 2px; }
.toolbar.split { justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.status-pills { display: flex; gap: 6px; flex-wrap: wrap; }

/* Creator review */
.id-head { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.id-head .avatar.lg { box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--coral); }
.copy-line { display: inline-flex; align-items: center; gap: 8px; }
.copy-line .icon-btn { width: 28px; height: 28px; }
.copy-line .icon-btn svg { width: 14px; height: 14px; }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.shot { aspect-ratio: 4 / 3; border: 1px dashed var(--line-2); border-radius: 8px; background: repeating-linear-gradient(135deg, var(--paper-2) 0 8px, transparent 8px 16px); display: grid; align-content: end; gap: 2px; padding: 10px; font-size: 0.75rem; color: var(--dim); cursor: pointer; text-align: left; }
.shot b { color: var(--ink); font-weight: 500; }
.shot:hover { border-color: var(--ink); }
.shot-big { aspect-ratio: 16 / 10; border-radius: 10px; border: 1px dashed var(--line-2); background: repeating-linear-gradient(135deg, var(--paper-2) 0 10px, transparent 10px 20px); display: grid; place-items: center; color: var(--dim); }
.cl-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; padding: 14px 20px; border-bottom: 1px solid var(--line); align-items: center; }
.cl-row:last-child { border-bottom: 0; }
.cl-url { font: 400 0.8125rem/1.4 var(--mono); overflow-wrap: anywhere; }
.qa { display: grid; gap: 8px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.qa:last-child { border-bottom: 0; }
.qa header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.qa p { font-size: 0.9375rem; }
.set-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.set-row:last-child { border-bottom: 0; }
.set-row b { font-weight: 500; display: block; }
.set-row p { color: var(--dim); font-size: 0.8125rem; margin-top: 2px; max-width: 60ch; }
.timeline { list-style: none; margin: 0; padding: 18px 20px; display: grid; gap: 14px; }
.timeline li { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 12px; font-size: 0.875rem; position: relative; }
.timeline li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); margin-top: 6px; }
.timeline li.ok::before { background: var(--ok); }
.timeline li.warn::before { background: var(--warn); }
.timeline li.creator::before { background: var(--coral); }
.timeline li.brand::before { background: var(--cobalt); }
.timeline li span { display: block; color: var(--dim); font-size: 0.8125rem; }

/* Sheet modal (not .side: that is the app sidebar) */
.modal-back.sheet { place-items: stretch end; padding: 0; }
.modal-back.sheet .modal { width: min(540px, 100%); height: 100dvh; max-height: none; border-radius: 0; border-width: 0 0 0 1px; animation: sheet 0.22s ease-out; display: flex; flex-direction: column; }
.modal-back.sheet .modal-body { flex: 1; align-content: start; }
.modal-back.sheet .card-foot { position: sticky; bottom: 0; background: var(--surface); }
@keyframes sheet { from { transform: translateX(32px); opacity: 0.4; } to { transform: none; opacity: 1; } }

/* Kanban */
.k-list { display: grid; gap: 10px; align-content: start; min-height: 60px; }
.k-card .k-meta { display: flex; justify-content: space-between; gap: 8px; color: var(--dim); }
.k-card .who { gap: 8px; font-size: 0.8125rem; }
.avs { display: flex; }
.avs img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--coral); }
.avs img + img { margin-left: -4px; }

/* Inbox */
.page:has(> .chat-app) { padding: 0; max-width: none; gap: 0; }
.pair { position: relative; width: 46px; height: 40px; }
.pair > :first-child { width: 32px; height: 32px; }
.pair > :nth-child(2) { position: absolute; right: 0; bottom: 0; width: 20px; height: 20px; font-size: 0.5rem; border-radius: 50%; }
.pair > .mark:nth-child(2) { box-shadow: 0 0 0 2px var(--surface); }
.thread-item .chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.thread-item .chips .chip { height: 20px; font-size: 0.625rem; padding-inline: 6px; }
.msg .by .chip { height: 20px; font-size: 0.625rem; padding-inline: 6px; }
.msg .hide-btn { border: 1px solid var(--line-2); background: var(--surface); border-radius: 4px; font: 500 0.625rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; padding: 4px 7px; cursor: pointer; color: var(--dim); opacity: 0; transition: opacity 0.15s; }
.msg .hide-btn:hover { color: var(--ink); border-color: var(--ink); }
.msg:hover .hide-btn, .msg:focus-within .hide-btn, .msg.hidden-msg .hide-btn { opacity: 1; }
@media (hover: none) { .msg .hide-btn { opacity: 1; } }
.msg.flagged .bubble { box-shadow: inset 3px 0 0 var(--warn); }
.msg.team.mine .bubble { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.info-block { display: grid; gap: 10px; }
.info-block + .info-block { padding-top: 18px; border-top: 1px solid var(--line); }
.info-block .who b { font-size: 0.875rem; }
.flag-box { border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent); background: var(--warn-soft); border-radius: 10px; padding: 12px; display: grid; gap: 8px; font-size: 0.8125rem; }
.composer-note b { font-weight: 500; color: var(--ink); }

/* Outreach */
.or-list { display: grid; gap: 14px; }
.reply { margin: 0; padding: 12px 14px; border-left: 3px solid var(--cobalt); background: var(--cobalt-soft); border-radius: 0 8px 8px 0; font-size: 0.9375rem; }
.or-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; align-items: end; }
.or-assign { display: flex; gap: 8px; align-items: center; }
.or-assign .select { min-height: 32px; height: 32px; padding: 4px 10px; font-size: 0.8125rem; }
.how { counter-reset: how; list-style: none; margin: 0; padding: 0 20px 18px; display: grid; gap: 12px; font-size: 0.875rem; }
.how li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; }
.how li::before { counter-increment: how; content: counter(how); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); font: 500 0.6875rem/1 var(--mono); }

/* Settings */
.int-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.int-card { padding: 16px; display: grid; gap: 12px; align-content: start; }
.int-card .top { display: flex; align-items: center; gap: 12px; }
.int-logo { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; background: var(--paper-2); font: 600 0.75rem/1 var(--mono); flex: none; }
.input[readonly] { background: var(--paper-2); color: var(--dim); }
.num-input { max-width: 120px; }

/* Keep wide tables and boards inside their columns so only they scroll */
body[data-role="team"] .page, body[data-role="team"] .stack, .chat-info { grid-template-columns: minmax(0, 1fr); }
body[data-role="team"] .page > *, body[data-role="team"] .stack > * { min-width: 0; }
.table .mono-sm { white-space: nowrap; overflow-wrap: normal; }
.bar-row .chip { justify-self: start; }
.bar-row { grid-template-columns: 150px minmax(0, 1fr) 28px; }
@media (max-width: 640px) { .bar-row { grid-template-columns: minmax(0, 1fr) 28px; } .bar-row .bar-track { grid-column: 1 / -1; grid-row: 2; } }
.thread-item .t b { min-width: 0; }
.thread-item .t > span { flex: none; }
.info-block .chip.fill, .flag-box .chip { white-space: normal; height: auto; min-height: 24px; padding-block: 4px; line-height: 1.3; }
.info-block .request-card { min-width: 0; }
.table-wrap { position: relative; }
.int-card .top { flex-wrap: wrap; } .int-card > .muted-note { padding: 0; }
.field > .chip { justify-self: start; }

/* Team inbox (chat v2) */
.c2-people { display: inline-flex; }
.c2-people .c2-av { width: 28px; height: 28px; font-size: .625rem; margin-left: -6px; box-shadow: 0 0 0 2px var(--paper); }
.c2-flag { display: block; margin-top: 6px; font-size: .75rem; color: var(--ink-dim, inherit); opacity: .75; }
.c2-flag button { background: none; border: 0; padding: 0; font: inherit; color: var(--coral); cursor: pointer; text-decoration: underline; }
.c2-msg.c2-hidden .c2-text { color: transparent; text-shadow: 0 0 8px rgba(0,0,0,.35); }
.c2-msg.c2-hidden .c2-flag { color: var(--ink); text-shadow: none; }

/* ---------- Deal room (copied from brand.css so team pages share the visual language) ---------- */
/* 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; }
}

/* 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); }

/* =====================================================================
   Team console v3: keyboard-first, calm, SLA-aware
   ===================================================================== */

/* Keyboard chips and focus */
.kb { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 4px; background: var(--surface); color: var(--dim); font: 500 0.625rem/1 var(--mono); text-transform: none; letter-spacing: 0; vertical-align: 1px; }
.btn .kb, .mc-btn.pri .kb, .seg .kb, .tm-mode .kb { background: transparent; border-color: currentColor; color: inherit; opacity: 0.6; }
.kb + .kb { margin-left: 3px; }
.kb-btn span { font: 600 0.8125rem/1 var(--mono); }
@media (max-width: 900px), (hover: none) { .kb-btn, .mc-keys, .kb { display: none !important; } }
[data-kb-item] { scroll-margin: 90px 0 24px; }
.kb-on { box-shadow: inset 3px 0 0 var(--cobalt); background: color-mix(in srgb, var(--cobalt) 5%, var(--surface)); }
tr.kb-on td { background: color-mix(in srgb, var(--cobalt) 6%, var(--surface)); }
tr.kb-on td:first-child { box-shadow: inset 3px 0 0 var(--cobalt); }
.mc-keys { display: flex; gap: 6px 16px; flex-wrap: wrap; align-items: center; color: var(--dim); font-size: 0.75rem; }
.mc-keys > span { display: inline-flex; align-items: center; gap: 6px; }
.kb-help { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px 28px; }
.kb-help section { display: grid; gap: 10px; align-content: start; }
.kb-help dl { margin: 0; display: grid; gap: 8px; }
.kb-help dl > div { display: flex; justify-content: space-between; gap: 12px; font-size: 0.875rem; }
.kb-help dt { white-space: nowrap; display: inline-flex; gap: 4px; align-items: center; font-size: 0.75rem; }
.kb-help dd { margin: 0; color: var(--dim); text-align: right; }
.kb-help .kb { display: inline-grid !important; }

/* Age chips: neutral inside target, amber on the day, coral after */
.age { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 11px; background: var(--paper-2); color: var(--dim); font: 500 0.6875rem/1 var(--mono); white-space: nowrap; }
.age::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); }
.age.due { background: var(--warn-soft); color: var(--warn); } .age.due::before { background: var(--warn); }
.age.late { background: var(--coral-soft); color: var(--coral); } .age.late::before { background: var(--coral); }
.own { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--paper); font: 600 0.625rem/1 var(--mono); flex: none; }
.own.none { background: transparent; color: var(--dim); border: 1px dashed var(--line-2); cursor: pointer; font-size: 0.875rem; padding: 0; }
.own.none:hover { border-color: var(--ink); color: var(--ink); }

/* Overview: counts, pipeline strip, queue */
.mc-counts { display: flex; flex-wrap: wrap; gap: 8px; }
.mc-counts a { display: inline-flex; align-items: baseline; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); text-decoration: none; font-size: 0.875rem; color: var(--dim); }
.mc-counts a:hover { border-color: var(--ink); color: var(--ink); }
.mc-counts b { font-weight: 500; color: var(--ink); font-size: 0.9375rem; }
.mc-pipe { display: grid; gap: 10px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.mc-pipe-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.mc-pipe-head a { text-decoration: none; } .mc-pipe-head a:hover { color: var(--ink); }
.mc-pipe-bar { display: flex; gap: 4px; min-width: 0; }
.mc-seg { min-width: 0; display: grid; gap: 8px; text-decoration: none; }
.mc-seg > i { display: block; height: 10px; border-radius: 5px; background: currentColor; transition: filter 0.15s, transform 0.15s; }
.mc-seg:hover > i { filter: brightness(1.12); transform: scaleY(1.25); }
.mc-seg-l { display: flex; align-items: baseline; gap: 6px; min-width: 0; color: var(--ink); }
.mc-seg-l .mono { font-size: 0.625rem; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-seg-l b { font-weight: 500; font-size: 0.9375rem; }
.mc-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 360px); }
.mc-filter { display: flex; gap: 4px; flex-wrap: wrap; }
.mc-filter button { height: 28px; padding: 0 10px; border: 1px solid transparent; border-radius: 14px; background: none; color: var(--dim); font-size: 0.8125rem; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.mc-filter button:hover { color: var(--ink); }
.mc-filter button[aria-pressed="true"] { border-color: var(--line-2); background: var(--paper-2); color: var(--ink); }
.mc-filter .num { font-size: 0.6875rem; color: var(--dim); }
.mc-list { list-style: none; margin: 0; padding: 0; }
.mc-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 8px 14px; padding: 14px 20px; border-bottom: 1px solid var(--line); transition: background 0.12s; }
.mc-item:last-child { border-bottom: 0; }
.mc-item:hover:not(.kb-on) { background: color-mix(in srgb, var(--paper-2) 55%, var(--surface)); }
.mc-main { display: grid; gap: 2px; min-width: 0; text-decoration: none; }
.mc-main b { font-weight: 500; }
.mc-main span { font-size: var(--s--1); color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-main:hover b { color: var(--cobalt); }
.mc-meta { display: inline-flex; align-items: center; gap: 8px; }
.mc-acts { display: inline-flex; align-items: center; gap: 6px; }
.mc-btn { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); color: var(--ink); font-size: 0.8125rem; text-decoration: none; cursor: pointer; white-space: nowrap; }
.mc-btn:hover { border-color: var(--ink); }
.mc-btn.pri { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.mc-btn.pri:hover { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.mc-btn.wake, .mc-done { display: none; }
.mc-item.is-snoozed .mc-btn.wake { display: inline-flex; }
.mc-item.is-snoozed [data-q="snooze"], .mc-item.is-snoozed .mc-btn.pri { display: none; }
.mc-item.is-done { grid-template-columns: minmax(0, 1fr); padding-block: 10px; background: var(--ok-soft); }
.mc-item.is-done > :not(.mc-done) { display: none; }
.mc-item.is-done .mc-done { display: flex; align-items: center; gap: 10px; font-size: 0.875rem; color: var(--ink); animation: pop 0.2s ease-out; }
.mc-done .ok-dot { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ok); color: #fff; }
.mc-done .ok-dot svg { width: 12px; height: 12px; }
.mc-done .mc-done-t { flex: 1; min-width: 0; }
.mc-done button, .tm-undo { border: 0; background: none; padding: 4px 6px; color: var(--ink); font: inherit; font-size: 0.8125rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.mc-snz { border-top: 1px solid var(--line); }
.mc-snz summary { padding: 12px 20px; cursor: pointer; color: var(--dim); display: flex; gap: 8px; align-items: center; }
.mc-snz .mc-item { opacity: 0.75; }
.mc-queue > .card-foot { justify-content: flex-start; }
@media (max-width: 1100px) { .mc-cols { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .mc-item { grid-template-columns: auto minmax(0, 1fr); padding: 14px 16px; }
  .mc-main span { white-space: normal; }
  .mc-meta, .mc-acts { grid-column: 2; }
  .mc-meta { justify-self: start; }
  .mc-pipe { padding: 14px 16px; }
  .mc-pipe-bar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .mc-seg { flex: none !important; }
  .mc-seg-l { display: grid; gap: 2px; }
  .mc-seg-l .mono { white-space: normal; font-size: 0.5625rem; line-height: 1.2; }
  .mc-counts a { padding: 6px 12px; }
}

/* Agenda */
.ag-list { list-style: none; margin: 0; padding: 6px 0; }
.ag { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 4px 12px; align-items: center; padding: 10px 20px; }
.ag-chk { width: 18px; height: 18px; border: 1.5px solid var(--line-2); border-radius: 50%; background: var(--surface); cursor: pointer; padding: 0; display: grid; place-items: center; }
.ag-chk:hover { border-color: var(--ink); }
.ag-chk[aria-pressed="true"] { background: var(--ok); border-color: var(--ok); }
.ag-chk[aria-pressed="true"]::after { content: ""; width: 8px; height: 4px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.ag-chk[aria-pressed="true"] + .ag-t b { text-decoration: line-through; color: var(--dim); }
.ag-t { display: grid; gap: 1px; min-width: 0; }
.ag-t b { font-weight: 500; font-size: 0.9375rem; }
.ag-t span { font-size: 0.8125rem; color: var(--dim); }
.ag-when { font-size: 0.625rem; color: var(--dim); white-space: nowrap; }
.ag.due .ag-when { color: var(--warn); }
.ag-next { padding: 12px 20px 2px; border-top: 1px solid var(--line); }

/* Creators list */
.t-filters { padding: 12px 20px; border-bottom: 1px solid var(--line); }
.t-find { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 16px; background: var(--surface); color: var(--dim); min-width: 0; flex: 1 1 220px; max-width: 320px; }
.t-find svg { width: 14px; height: 14px; flex: none; }
.t-find input { border: 0; background: none; outline: none; min-width: 0; flex: 1; font-size: 0.8125rem; color: var(--ink); }
.t-find:focus-within { border-color: var(--ink); }

/* Creator review: split view */
.rv-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rv-nav .mono { margin-right: 4px; }
.rv-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 20px; align-items: start; }
.rv-right { position: sticky; top: 80px; }
@media (max-width: 1100px) { .rv-split { grid-template-columns: minmax(0, 1fr); } .rv-right { position: static; order: -1; } }
.vc-prog { height: 3px; background: var(--paper-2); }
.vc-prog i { display: block; height: 100%; width: 0; background: var(--ok); transition: width 0.25s; }
.vc-list { list-style: none; margin: 0; padding: 0; }
.vc-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 12px; align-items: center; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.vc-row:last-child { border-bottom: 0; }
.vc-row[data-state="ok"] { background: color-mix(in srgb, var(--ok-soft) 55%, transparent); }
.vc-row[data-state="bad"] { background: color-mix(in srgb, var(--coral-soft) 60%, transparent); }
.vc-main { display: grid; gap: 6px; min-width: 0; }
.vc-main b { font-weight: 500; font-size: 0.875rem; }
.vc-cmp { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.vc-cmp dt { font: 500 0.5625rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim); margin-bottom: 3px; }
.vc-cmp dd { margin: 0; font: 400 0.8125rem/1.3 var(--mono); }
.vc-cmp dd.vc-off { color: var(--coral); }
.vc-diff { font-size: 0.75rem; color: var(--coral); }
.vc-diff.ok { color: var(--dim); }
.vc-acts { display: inline-flex; gap: 4px; }
.vc-acts button { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 9px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface); color: var(--dim); font-size: 0.75rem; cursor: pointer; }
.vc-acts button svg { width: 12px; height: 12px; }
.vc-acts button:hover { color: var(--ink); border-color: var(--ink); }
.vc-acts [data-vc-set="ok"][aria-pressed="true"] { background: var(--ok); border-color: var(--ok); color: #fff; }
.vc-acts [data-vc-set="bad"][aria-pressed="true"] { background: var(--coral); border-color: var(--coral); color: #fff; }
.vc .card-foot { justify-content: flex-start; }
.vc-decide .seg button { display: inline-flex; align-items: center; gap: 6px; }
.vc-decide .seg button[data-dmode="reject"][aria-pressed="true"] { color: var(--coral); }
.vc-decide .textarea { min-height: 120px; font-size: 0.875rem; }
.vc-result .card-body { gap: 10px; }
@media (max-width: 640px) { .vc-row { grid-template-columns: minmax(0, 1fr); padding: 12px 16px; } .vc-acts button span { display: inline; } }

/* Requests board */
.rq-bar { display: flex; align-items: center; gap: 10px 20px; flex-wrap: wrap; }
.rq-bar .filter-pill .num { font-size: 0.6875rem; opacity: 0.7; }
.rq-board .k-col { min-height: 220px; }
.rq-card { gap: 9px; transition: box-shadow 0.15s, border-color 0.15s; }
.rq-card.kb-on { border-color: var(--cobalt); box-shadow: 0 0 0 3px var(--cobalt-soft); background: var(--surface); }
.rq-card .who { gap: 8px; }
.rq-card .who > span:not(.avs) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rq-next { display: grid; gap: 3px; font-size: 0.8125rem; line-height: 1.4; padding: 8px 10px; border-radius: 8px; background: var(--paper-2); }
.rq-next .mono { font-size: 0.5625rem; color: var(--dim); }
.wait { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 4px; font: 500 0.625rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; }
.wait::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.wait.us { background: var(--ink); color: var(--paper); }
.wait.brand { background: var(--cobalt-soft); color: var(--cobalt); }
.wait.creator { background: var(--coral-soft); color: var(--coral); }
.wait.none { background: var(--paper-2); color: var(--dim); }
.rq-move { display: grid; grid-template-columns: 30px minmax(0, 1fr) 30px; gap: 4px; padding-top: 8px; border-top: 1px solid var(--line); }
.rq-move button { height: 30px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink); cursor: pointer; display: grid; place-items: center; padding: 0; }
.rq-move button svg { width: 14px; height: 14px; }
.rq-move button:first-child svg { transform: scaleX(-1); }
.rq-move button:hover:not([disabled]) { border-color: var(--ink); }
.rq-move button[disabled] { opacity: 0.35; cursor: default; }
.rq-move select { width: 100%; min-width: 0; }
.k-empty { margin: 0; padding: 18px 8px; text-align: center; font-size: 0.8125rem; color: var(--dim); border: 1px dashed var(--line-2); border-radius: 10px; }
.rq-keys { margin-top: 10px; }
.k-col { scroll-margin-left: 16px; }
.k-col:target { box-shadow: inset 0 0 0 2px var(--cobalt); }

/* Inbox: team deal room */
.page:has(> .tm-inbox) { padding: 0; max-width: none; gap: 0; }
.tm-pane[hidden] { display: none; }
.tm.has-info { grid-template-columns: minmax(0, 280px) minmax(0, 1fr) minmax(0, 340px); }
.tm-info { border-left: 1px solid var(--line); overflow-y: auto; padding: 20px; background: var(--surface); }
.tm-info .tm-details { padding: 0; }
.tm .c2-list-head { display: grid; gap: 10px; }
.tm-tf { display: flex; gap: 4px; }
.tm-tf button { height: 26px; padding: 0 10px; border: 1px solid transparent; border-radius: 13px; background: none; color: var(--dim); font-size: 0.75rem; cursor: pointer; }
.tm-tf button[aria-pressed="true"] { border-color: var(--line-2); background: var(--paper-2); color: var(--ink); }
.tm .c2-item.kb-on { box-shadow: inset 3px 0 0 var(--cobalt); }
.tm-kind { font-size: 0.5625rem; color: var(--dim); display: flex; gap: 8px; align-items: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tm-fl { font-style: normal; color: var(--warn); display: inline-flex; align-items: center; gap: 4px; }
.tm-fl svg { width: 11px !important; height: 11px !important; }
.tm-pair { position: relative; width: 40px; height: 36px; flex: none; }
.tm-pair > :first-child { width: 30px; height: 30px; font-size: 0.625rem; }
.tm-pair > :nth-child(2) { position: absolute; right: 0; bottom: 0; width: 20px; height: 20px; }
.tm-avs { display: inline-flex; }
.tm-avs > * { width: 28px; height: 28px; font-size: 0.5625rem; margin-left: -6px; box-shadow: 0 0 0 2px var(--paper); }
.tm-avs > img.c2-av { box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--coral); }
.tm .c2-msg.mine .c2-text { background: var(--ink); }
.tm-strip { flex-wrap: nowrap; }
.tm-strip .dr-terms { overflow-x: auto; scrollbar-width: none; }
.tm-strip .dr-terms::-webkit-scrollbar { display: none; }
.dr-rail li > button { position: absolute; inset: -6px; border: 0; padding: 0; background: none; border-radius: 50%; cursor: pointer; }
.dr-rail li > button:hover { box-shadow: 0 0 0 2px var(--cobalt-soft); }
.tm-term { border: 0; background: none; padding: 2px 4px; margin: -2px -4px; border-radius: 5px; font: inherit; color: var(--ink); cursor: text; white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.tm-term:hover { background: color-mix(in srgb, var(--cobalt) 10%, transparent); box-shadow: inset 0 -1px 0 var(--cobalt); }
.dr-term.unset .tm-term { color: var(--dim); border: 1px dashed var(--line-2); border-radius: 999px; padding: 1px 8px; margin: 0; font-size: 0.75rem; }
.tm-term-in { width: 170px; height: 26px; border: 1px solid var(--cobalt); border-radius: 6px; background: var(--surface); color: var(--ink); padding: 0 8px; font-size: 0.8125rem; outline: none; box-shadow: 0 0 0 3px var(--cobalt-soft); }
.tm-edit-hint { flex: none; font-size: 0.5625rem; color: var(--dim); }
.tm-note { display: grid; gap: 6px; padding: 10px 14px; border: 1px dashed color-mix(in srgb, var(--warn) 55%, var(--line-2)); border-radius: 12px; background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--warn-soft) 70%, transparent) 0 10px, transparent 10px 20px); }
.tm-note-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 0.75rem; color: var(--dim); }
.tm-note-h .mono { font-size: 0.5625rem; color: var(--warn); }
.tm-note-h b { color: var(--ink); font-weight: 500; }
.tm-only { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; color: var(--warn); font-size: 0.6875rem; }
.tm-note p { font-size: 0.9375rem; line-height: 1.5; }
.c2-msg.flagged .c2-text { box-shadow: inset 3px 0 0 var(--warn); padding-left: 12px; }
.tm-flag { font-size: 0.8125rem; }
.tm-flag > span { display: none; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 10px; border-radius: 10px; }
.tm-flag[data-state="open"] .tm-flag-open { display: flex; background: var(--warn-soft); color: var(--ink); }
.tm-flag[data-state="hidden"] .tm-flag-hidden, .tm-flag[data-state="kept"] .tm-flag-kept { display: flex; background: var(--paper-2); color: var(--dim); }
.tm-flag svg { flex: none; color: var(--warn); }
.tm-flag-a { display: inline-flex; gap: 6px; margin-left: auto; }
.tm-flag-a button { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 13px; background: var(--surface); color: var(--ink); font-size: 0.75rem; cursor: pointer; }
.tm-flag-a button:first-child { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.tm-flag-a button:first-child .kb { color: inherit; border-color: currentColor; background: transparent; opacity: 0.6; }
.tm-flag-hidden button, .tm-flag-kept button { border: 0; background: none; text-decoration: underline; text-underline-offset: 3px; color: var(--ink); cursor: pointer; font-size: 0.75rem; }
.c2-msg.tm-hidden .c2-text { color: var(--dim); text-decoration: line-through; opacity: 0.6; }
.tm-compose { display: grid; gap: 8px; }
.tm-mode { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--paper-2); justify-self: start; }
.tm-mode button { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border: 0; border-radius: 7px; background: none; color: var(--dim); font-size: 0.8125rem; cursor: pointer; }
.tm-mode button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }
.tm-compose.note .tm-mode [data-wmode="note"] { color: var(--warn); }
.tm-compose.note .c2-compose { border-style: dashed; border-color: var(--warn); background: color-mix(in srgb, var(--warn-soft) 55%, var(--surface)); }
.tm-compose.note .c2-send { background: var(--warn); color: #fff; }
.tm-compose.note .dr-visible { color: var(--warn); }
.tm-compose .c2-compose { max-width: none; margin: 0; }
.tm-pending { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: var(--warn-soft); font-size: 0.8125rem; }
.tm-pending svg { flex: none; color: var(--warn); margin-top: 2px; }
.tm-money .textarea { min-height: 84px; font-size: 0.875rem; }
.tm-details .btn { justify-self: start; }
@media (min-width: 1280px) { .tm.has-info .tm-det-btn { display: none; } }
@media (max-width: 1279px) { .tm.has-info { grid-template-columns: minmax(0, 280px) minmax(0, 1fr); } .tm-info { display: none; } }
@media (max-width: 1100px) { .tm-edit-hint { display: none; } }
@media (max-width: 800px) {
  .tm .c2-list-head { display: flex; padding: 10px 16px 0; }
  .tm .c2-list-head h1 { display: none; }
  .tm-kind { display: none; }
  .tm .tm-pair { width: 26px; height: 26px; }
  .tm .tm-pair > :first-child { width: 26px; height: 26px; }
  .tm .tm-pair > :nth-child(2) { display: none; }
}
@media (max-width: 640px) {
  .tm-strip { display: grid; grid-template-columns: minmax(0, 1fr); }
  .tm-strip .dr-terms { grid-column: 1; grid-row: 2; display: flex; gap: 14px; justify-content: flex-start; }
  .tm-strip .dr-term { flex: none; }
  .tm .c2-head .tm-avs { display: none; }
  .tm .c2-head [data-modal="tm-details"] { display: inline-flex; }
  .tm-flag-a { margin-left: 0; width: 100%; }
  .tm-only { margin-left: 0; }
}

/* Outreach triage */
.ot { overflow: hidden; }
.ot-tabs { display: flex; gap: 4px; padding: 0 12px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.ot-tabs .num { font-size: 0.6875rem; color: var(--dim); }
.ot-grid { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); min-height: 420px; }
.ot-list { border-right: 1px solid var(--line); }
.ot-item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); text-decoration: none; }
.ot-item:hover { background: var(--paper-2); }
.ot-item[aria-current="true"] { background: var(--paper-2); box-shadow: inset 3px 0 0 var(--ink); }
.ot-item.kb-on { box-shadow: inset 3px 0 0 var(--cobalt); }
.ot-body { display: grid; gap: 4px; min-width: 0; }
.ot-top { display: flex; justify-content: space-between; gap: 8px; }
.ot-top b { font-weight: 500; }
.ot-top .mono { font-size: 0.625rem; white-space: nowrap; }
.ot-snip { font-size: 0.8125rem; color: var(--dim); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ot-tags { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ot-tags .chip { height: 20px; font-size: 0.5625rem; }
.ot-tags .mono { font-size: 0.5625rem; }
.ot-read { min-width: 0; }
.ot-pane { display: grid; gap: 16px; padding: 20px 24px; align-content: start; }
.ot-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.ot-camp { font-size: 0.625rem; }
.ot-pane .reply { font-size: 1.0625rem; line-height: 1.55; }
.ot-actions, .ot-done { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid var(--line); }
.ot-snooze { display: inline-flex; gap: 6px; align-items: center; }
.ot-snooze .select { min-height: 32px; height: 32px; padding: 4px 10px; font-size: 0.8125rem; width: auto; }
.ot-how summary { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; cursor: pointer; font-weight: 500; list-style: none; }
.ot-how summary::-webkit-details-marker { display: none; }
.ot-how summary svg { width: 15px; height: 15px; transition: transform 0.15s; transform: rotate(90deg); }
.ot-how[open] summary svg { transform: rotate(-90deg); }
@media (max-width: 900px) {
  .ot-grid { grid-template-columns: minmax(0, 1fr); }
  .ot-list { border-right: 0; border-bottom: 1px solid var(--line); }
  .ot-pane { padding: 16px; scroll-margin-top: 70px; }
}
/* Agenda v2 + calmer queue rows */
.ag { grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; }
.ag-chk { margin-top: 16px; }
.ag .own { margin-top: 12px; }
.ag-chk[aria-pressed="true"] + .ag-t b { text-decoration: line-through; color: var(--dim); }
.ag-t .ag-when { font-size: 0.5625rem; color: var(--dim); }
.ag.due .ag-t .ag-when { color: var(--warn); }
@media (hover: hover) and (min-width: 641px) {
  .mc-item [data-q="snooze"] { opacity: 0; transition: opacity 0.12s; }
  .mc-item:hover [data-q="snooze"], .mc-item.kb-on [data-q="snooze"], .mc-item:focus-within [data-q="snooze"] { opacity: 1; }
}
@media (max-width: 640px) {
  .mc-item { grid-template-columns: auto minmax(0, 1fr) auto; }
  .mc-main { grid-column: 2 / -1; }
  .mc-meta { grid-column: 2; grid-row: 2; }
  .mc-acts { grid-column: 3; grid-row: 2; }
}
.vc-row { grid-template-columns: minmax(0, 1fr); }
.vc-row .vc-acts { justify-self: start; }
.vc-row.auto { grid-template-columns: minmax(0, 1fr) auto; }
.rq-card .who > span:not(.avs) { flex: initial; }
.rq-card .who > span:not(.avs):not(.mark) { flex: 1; }
.rq-card .row { flex-wrap: nowrap; }
.rq-board { grid-template-columns: repeat(5, minmax(200px, 1fr)); }
/* Team deal strip: stage on top, terms wrap below so nothing squeezes */
.dr-strip.tm-strip { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 14px; align-items: center; }
.tm-strip .dr-terms { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 0; overflow: visible; }
.tm-strip .dr-term { flex: none !important; }
.tm-strip .dr-term:first-child { border-left: 0; padding-left: 0; }
.tm-edit-hint { justify-self: end; }
.tm-details { display: grid; gap: 24px; align-content: start; }
.tm-details .b-req { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.tm-details .b-req .grow { display: grid; gap: 2px; }
.tm-details .b-req b { font-weight: 500; }
.tm-details .b-person .grow { font-size: 0.875rem; }
@media (max-width: 640px) { .tm-strip .dr-terms { flex-wrap: nowrap; overflow-x: auto; gap: 14px; } .tm-strip .dr-term { padding: 0; border: 0; } }
.tm-edit-hint { grid-row: 1; grid-column: 2; }
@media (max-width: 640px) { .cl-row { grid-template-columns: minmax(0, 1fr); padding: 14px 16px; } }
