/* ═════════════════════════════════════════════════════════════════════════
   OPPORTUNITY INTELLIGENCE - INVITATIONS

   An inbox, ordered by who is waiting on you. The date block on the left is
   the loudest thing on the row because it is the thing that cannot move; the
   sentence under the title is computed and says why the row needs a person.
   Everything else reuses the workspace's ws-* and op-* vocabulary.
   ═════════════════════════════════════════════════════════════════════════ */
.inv-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; }
.inv-bar .up-btn { margin-left: auto; }
.inv-tabs {
    display: flex; gap: 3px; flex-wrap: wrap; padding: 4px; border-radius: 12px;
    border: 1px solid var(--border); background: rgba(255,255,255,.03);
}
.inv-tab {
    display: flex; align-items: center; gap: 7px; cursor: pointer;
    font: inherit; font-size: 12px; font-weight: 600; padding: 7px 12px; border-radius: 9px;
    border: 1px solid transparent; background: transparent; color: var(--gray-light);
}
.inv-tab b {
    font-size: 10.5px; font-weight: 800; padding: 1px 7px; border-radius: 100px;
    background: rgba(255,255,255,.09); font-variant-numeric: tabular-nums;
}
.inv-tab:hover { color: var(--white); background: rgba(255,255,255,.05); }
.inv-tab.is-on { color: var(--white); background: rgba(196,23,23,.14); box-shadow: inset 2px 0 0 var(--red); }
.inv-tab.is-on b { background: rgba(255,255,255,.16); }

.inv-list { display: flex; flex-direction: column; gap: 8px; }
.inv-row {
    display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: start;
    text-align: left; font: inherit; color: inherit; cursor: pointer;
    padding: 14px 16px 14px 14px; border-radius: 14px;
    border: 1px solid var(--border); border-left: 3px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.035);
    transition: transform .16s var(--ease-out, ease), border-color .16s ease, background .16s ease;
}
.inv-row:hover { transform: translateX(3px); border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.055); }
.inv-row.is-warn { border-left-color: #e0a03b; }
.inv-row.is-bad { border-left-color: #ff6b6b; }
.inv-row.is-stop { border-left-color: var(--red); box-shadow: -6px 0 18px -10px rgba(196,23,23,.8); }
.inv-row.is-closed { opacity: .78; }
.inv-row.is-closed:hover { opacity: 1; }

.inv-when {
    display: flex; flex-direction: column; align-items: center; padding: 8px 4px 7px;
    border-radius: 11px; background: rgba(255,255,255,.05); font-variant-numeric: tabular-nums;
}
.inv-when b { font-size: 22px; font-weight: 850; letter-spacing: -.03em; line-height: 1; color: var(--white); }
.inv-when i {
    font-style: normal; font-size: 9.5px; font-weight: 800; letter-spacing: .12em;
    text-transform: uppercase; color: var(--gray-light); margin-top: 3px;
}
.inv-when span {
    margin-top: 6px; font-size: 8.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
    padding: 2px 7px; border-radius: 100px; background: rgba(255,255,255,.08); color: var(--gray-light); white-space: nowrap;
}
.inv-when.is-warn span { background: rgba(224,160,59,.16); color: #e0a03b; }
.inv-when.is-bad span { background: rgba(255,107,107,.16); color: #ff8f8f; }
.inv-when.is-stop span { background: var(--red); color: #fff; }
.inv-when.is-none b { color: var(--gray-light); }

.inv-main { min-width: 0; }
.inv-from { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 11px; color: var(--gray-light); }
.inv-from b { font-size: 11.5px; font-weight: 750; color: var(--white); }
.inv-row h4 { margin: 5px 0 7px; font-size: 14px; font-weight: 700; line-height: 1.35; letter-spacing: -.01em; color: var(--white); }
.inv-say { position: relative; padding-left: 13px; font-size: 12.5px; line-height: 1.5; color: var(--gray-light); }
.inv-say::before {
    content: ""; position: absolute; left: 0; top: 6px; width: 5px; height: 5px;
    border-radius: 100px; background: rgba(255,255,255,.3);
}
.inv-say.is-ok::before { background: #2fc07d; }
.inv-say.is-warn::before { background: #e0a03b; }
.inv-say.is-bad::before { background: #ff6b6b; }
.inv-say.is-stop::before { background: var(--red); box-shadow: 0 0 0 3px rgba(196,23,23,.25); }
.inv-say.is-bad, .inv-say.is-stop { color: var(--white); }

.inv-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; min-width: 112px; }
.inv-pill {
    padding: 3px 9px; border-radius: 100px; font-size: 9px; font-weight: 800; letter-spacing: .08em;
    text-transform: uppercase; background: rgba(255,255,255,.09); color: var(--gray-light); white-space: nowrap;
}
.inv-pill.is-new { background: rgba(255,107,107,.16); color: #ff8f8f; }
.inv-pill.is-acknowledged { background: rgba(224,160,59,.16); color: #e0a03b; }
.inv-pill.is-quoting { background: rgba(196,23,23,.18); color: #ff8f6b; }
.inv-pill.is-submitted { background: rgba(56,132,255,.2); color: #6ba6ff; }
.inv-pill.is-won { background: rgba(20,168,106,.2); color: #2fc07d; }
.inv-pill.is-lost { background: rgba(255,255,255,.07); color: #ff8f8f; }
.inv-pill.is-declined { background: rgba(255,255,255,.07); color: var(--gray-light); text-decoration: line-through; }
.inv-quote { font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--white); font-variant-numeric: tabular-nums; }
.inv-board { font-size: 8.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #6ba6ff; }
.inv-age { font-size: 10.5px; color: var(--gray-light); }

/* ── In the drawer ────────────────────────────────────────────────────── */
.inv-ok { margin: 12px 24px 0; font-size: 12.5px; line-height: 1.5; color: #2fc07d; }
.inv-scope {
    margin: 12px 24px 0; padding: 12px 13px; border-radius: 12px;
    background: rgba(255,255,255,.035); font-size: 12.5px; line-height: 1.6; color: var(--white);
}
.inv-scope i {
    display: block; font-style: normal; font-size: 9px; font-weight: 800; letter-spacing: .1em;
    text-transform: uppercase; color: var(--gray-light); margin-bottom: 5px;
}
.inv-pill--meta { align-self: center; }

/* ── Light theme ──────────────────────────────────────────────────────── */
html.light .inv-tabs { background: #fff; border-color: rgba(0,0,0,.1); }
html.light .inv-tab { color: var(--gray-mid); }
html.light .inv-tab b { background: rgba(0,0,0,.06); }
html.light .inv-tab:hover { color: var(--black); background: rgba(0,0,0,.04); }
html.light .inv-tab.is-on { color: var(--black); background: rgba(196,23,23,.09); box-shadow: inset 2px 0 0 #c41717; }
html.light .inv-tab.is-on b { background: rgba(0,0,0,.08); }
html.light .inv-row { background: #fafbfc; border-color: rgba(0,0,0,.09); border-left-color: rgba(0,0,0,.18); }
html.light .inv-row:hover { background: #fff; border-color: rgba(0,0,0,.2); }
html.light .inv-row.is-warn { border-left-color: #a8690f; }
html.light .inv-row.is-bad, html.light .inv-row.is-stop { border-left-color: #c41717; }
html.light .inv-row.is-stop { box-shadow: -6px 0 18px -12px rgba(196,23,23,.6); }
html.light .inv-when { background: rgba(0,0,0,.04); }
html.light .inv-when b, html.light .inv-from b, html.light .inv-row h4, html.light .inv-quote,
html.light .inv-say.is-bad, html.light .inv-say.is-stop, html.light .inv-scope { color: var(--black); }
html.light .inv-when i, html.light .inv-when span, html.light .inv-from, html.light .inv-say, html.light .inv-age,
html.light .inv-pill, html.light .inv-scope i, html.light .inv-when.is-none b { color: var(--gray-mid); }
html.light .inv-when span, html.light .inv-pill { background: rgba(0,0,0,.06); }
html.light .inv-when.is-warn span { background: rgba(168,105,15,.12); color: #a8690f; }
html.light .inv-when.is-bad span { background: rgba(196,23,23,.1); color: #c41717; }
html.light .inv-when.is-stop span { background: #c41717; color: #fff; }
html.light .inv-say.is-ok::before { background: #0f7a4b; }
html.light .inv-say.is-warn::before { background: #a8690f; }
html.light .inv-say.is-bad::before { background: #c41717; }
html.light .inv-say.is-stop::before { background: #c41717; box-shadow: 0 0 0 3px rgba(196,23,23,.15); }
html.light .inv-pill.is-new { background: rgba(196,23,23,.1); color: #c41717; }
html.light .inv-pill.is-acknowledged { background: rgba(168,105,15,.12); color: #a8690f; }
html.light .inv-pill.is-quoting { background: rgba(196,23,23,.12); color: #c2410c; }
html.light .inv-pill.is-submitted { background: rgba(43,95,184,.14); color: #2b5fb8; }
html.light .inv-pill.is-won { background: rgba(20,168,106,.14); color: #0f7a4b; }
html.light .inv-pill.is-lost { background: rgba(0,0,0,.05); color: #c41717; }
html.light .inv-pill.is-declined { background: rgba(0,0,0,.05); color: var(--gray-mid); }
html.light .inv-board { color: #2b5fb8; }
html.light .inv-ok { color: #0f7a4b; }
html.light .inv-scope { background: #f6f7f9; }

@media (max-width: 620px) {
    .inv-row { grid-template-columns: 56px 1fr; gap: 12px; }
    .inv-side { grid-column: 2; flex-direction: row; align-items: center; flex-wrap: wrap; min-width: 0; }
    .inv-bar .up-btn { margin-left: 0; }
}
