/* PARTNER CONSOLE: support inbox + team (2026-10-26). Uses the console's own tokens (partner.css); nothing here sets a colour of its own except
   the amber of an internal note, which reuses the warn tokens. Light is the design; dark follows the same tokens. */
.mut{color:var(--mut)}
.pad{padding:20px 22px}
.pad h3{font:600 16px var(--head);margin-bottom:10px}
.chips{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 16px}
.chip{display:inline-flex;align-items:center;gap:6px;border-radius:999px;border:1px solid var(--line2);background:var(--card);color:var(--ink);padding:7px 14px;min-height:38px;font:600 13.5px var(--ui)}
.chip .n{color:var(--mut);font-weight:600}
.chip:hover{background:var(--tint2)}
.chip.on,.chip[aria-pressed="true"]{background:var(--ink);border-color:var(--ink);color:var(--bg)}
.chip.on .n,.chip[aria-pressed="true"] .n{color:inherit;opacity:.8}
table.inbox td.pv{max-width:420px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
table.inbox td .you{color:var(--mut)}
table.inbox tr.th-row{cursor:pointer}
table.inbox tr.th-row:hover td{background:var(--tint2)}
table.inbox tr.th-row.unread td.pv,table.inbox tr.th-row.unread .nm{font-weight:700}
table.inbox a.nm{color:var(--ink);text-decoration:none;display:inline}
table.inbox tr.th-row:focus-visible{outline:3px solid var(--blue);outline-offset:-3px}

.tcols{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:20px;align-items:start}
.thread{display:flex;flex-direction:column;min-height:520px;padding:0}
.msgs{flex:1;overflow-y:auto;max-height:560px;padding:22px;display:flex;flex-direction:column;gap:14px}
.msg{max-width:78%;border-radius:18px;padding:12px 16px;background:var(--tint2)}
.msg p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px}
.msg .meta{display:block;margin-top:6px;font-size:12px;color:var(--mut)}
.msg.in{align-self:flex-start;border-bottom-left-radius:6px}
.msg.out{align-self:flex-end;background:var(--blue);color:#fff;border-bottom-right-radius:6px}
.msg.out .meta{color:rgba(255,255,255,.85)}
:root[data-theme="dark"] .msg.out{color:#0b1020}:root[data-theme="dark"] .msg.out .meta{color:rgba(11,16,32,.8)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .msg.out{color:#0b1020}:root:not([data-theme="light"]) .msg.out .meta{color:rgba(11,16,32,.8)}}
.msg.inote{align-self:stretch;max-width:none;background:var(--warn-bg);color:var(--warn);border:1px dashed var(--warn-line)}
.msg.inote .meta{color:var(--warn)}
.msg.plat{align-self:stretch;max-width:none;background:var(--tint);color:var(--ink);border:1px solid var(--line2)}
.composer{border-top:1px solid var(--line);padding:16px 18px 18px}
.composer .cl{display:block;font:600 13px var(--ui);color:var(--dim);margin-bottom:8px}
.composer textarea{width:100%;min-height:84px;resize:vertical;border-radius:14px}
.composer .crow{display:flex;gap:10px;align-items:center;margin-top:12px;flex-wrap:wrap}
.composer .sp{flex:1}
.seg{display:inline-flex;gap:8px}
.err{color:var(--bad);font-size:13.5px;margin-top:8px}
.err[hidden]{display:none}
.side2{display:flex;flex-direction:column;gap:16px}
dl.kv{display:grid;grid-template-columns:auto 1fr;gap:0;margin:0 0 12px}
dl.kv dt{color:var(--mut);font-size:13px;padding:9px 0;border-bottom:1px solid var(--line)}
dl.kv dd{text-align:right;font-size:14px;padding:9px 0 9px 14px;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
dl.kv dt:last-of-type,dl.kv dd:last-of-type{border-bottom:0}
#escbox p{font-size:13.5px;margin-bottom:12px}
#escbox textarea{margin-bottom:6px}
.rgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.rgrid p{font-size:13.5px;margin-top:4px}
.roles{margin-top:18px}
.banner.ok{background:var(--ok-bg);color:var(--ok);border-color:var(--ok-bg)}
#invform{margin-bottom:18px;max-width:520px}
#invform .in{margin-bottom:12px}
code#invcode{font:700 15px ui-monospace,Menlo,Consolas,monospace;letter-spacing:.08em;user-select:all}
select.rolesel{min-height:38px;padding:6px 10px;width:auto}
td.kb{text-align:right}

@media (max-width:900px){
  .tcols{grid-template-columns:1fr}
  .rgrid{grid-template-columns:1fr}
  .msg{max-width:92%}
  table.inbox td.pv{max-width:none;white-space:normal}
  table.inbox tr.th-row{display:block}
}
