/* RO — Recent outreach. Quiet greys, one accent for chases that are due, Chat-style book. */

.ro-page {
    --ro-text: var(--color-text, #000);
    --ro-muted: var(--color-text-muted, #666);
    --ro-faint: #9a9aa0;
    --ro-line: rgba(0, 0, 0, 0.07);
    --ro-card: #fff;
    --ro-fill: rgba(0, 0, 0, 0.035);
    --ro-hot: #e5484d;
    --ro-hot-soft: rgba(229, 72, 77, 0.1);
    --ro-live: #30a46c;
    --ro-live-soft: rgba(48, 164, 108, 0.12);
    --ro-due: #b45309;
    --ro-due-soft: rgba(245, 158, 11, 0.13);
    --ro-supply: #0f766e;
    --ro-demand: #1d4ed8;
    --ro-gold: #b8860b;
    max-width: 920px;
    margin: 0 auto;
    color: var(--ro-text);
    font-feature-settings: 'tnum' 1;
}
body.theme-dark .ro-page {
    --ro-faint: #6e6e73;
    --ro-line: rgba(255, 255, 255, 0.08);
    --ro-card: #161617;
    --ro-fill: rgba(255, 255, 255, 0.05);
    --ro-hot: #ff6369;
    --ro-hot-soft: rgba(255, 99, 105, 0.14);
    --ro-live: #3dd68c;
    --ro-live-soft: rgba(61, 214, 140, 0.14);
    --ro-due: #fbbf24;
    --ro-due-soft: rgba(251, 191, 36, 0.14);
    --ro-supply: #5eead4;
    --ro-demand: #93c5fd;
    --ro-gold: #e6c35c;
}

.ro-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}
.ro-refresh {
    border: 0;
    background: transparent;
    color: var(--ro-muted);
    font: inherit;
    font-size: 13px;
    padding: 4px 8px;
    border-radius: 999px;
    cursor: pointer;
}
.ro-refresh:hover { background: var(--ro-fill); color: var(--ro-text); }

.ro-summary {
    margin: 2px 0 18px;
    font-size: 13px;
    color: var(--ro-muted);
}
.ro-sum-due { color: var(--ro-due); font-weight: 600; }
.ro-sep { margin: 0 6px; color: var(--ro-faint); }
.ro-none {
    padding: 48px 0;
    text-align: center;
    color: var(--ro-muted);
    font-size: 14px;
}

/* ---------------------------------------------------------------- company group */

.ro-co {
    background: var(--ro-card);
    border: 1px solid var(--ro-line);
    border-radius: 16px;
    padding: 16px 18px 14px;
    margin-bottom: 14px;
}
.ro-co-head {
    display: flex;
    align-items: baseline;
    gap: 10px;
    min-width: 0;
}
.ro-co-name {
    border: 0;
    background: none;
    padding: 0;
    font: inherit;
    font-size: 17px;
    font-weight: 650;
    letter-spacing: -0.01em;
    color: var(--ro-text);
    cursor: pointer;
    text-align: left;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ro-co-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.ro-rating {
    flex: none;
    font-size: 12px;
    color: var(--ro-muted);
}
.ro-co-when {
    margin-left: auto;
    flex: none;
    font-size: 12px;
    color: var(--ro-faint);
}
.ro-co-sub {
    margin-top: 2px;
    font-size: 12.5px;
    color: var(--ro-muted);
}

.ro-block { margin-top: 14px; }
.ro-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ro-faint);
    margin-bottom: 6px;
}
.ro-count {
    display: inline-block;
    min-width: 18px;
    margin-left: 4px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--ro-fill);
    color: var(--ro-text);
    letter-spacing: 0;
    text-align: center;
}

/* ---------------------------------------------------------------- outreach rows */

.ro-touches, .ro-new, .ro-rows {
    list-style: none;
    margin: 0;
    padding: 0;
}
.ro-touch {
    display: grid;
    grid-template-columns: 132px 1fr auto;
    align-items: baseline;
    gap: 12px;
    padding: 6px 0;
    border-top: 1px solid var(--ro-line);
    font-size: 13.5px;
}
.ro-touch:first-child { border-top: 0; }
.ro-cat { font-weight: 600; }
.ro-steps { color: var(--ro-muted); min-width: 0; }
.ro-step-date { color: var(--ro-text); }
.ro-dot { margin: 0 6px; color: var(--ro-faint); }
.ro-chase {
    justify-self: end;
    white-space: nowrap;
    font-size: 12px;
    color: var(--ro-muted);
}
.ro-chase.is-due {
    color: var(--ro-due);
    background: var(--ro-due-soft);
    padding: 2px 9px;
    border-radius: 999px;
    font-weight: 600;
}
.ro-chase.is-done { color: var(--ro-faint); }

/* ---------------------------------------------------------------- new since outreach */

.ro-new-row {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 7px 0;
    border-top: 1px solid var(--ro-line);
}
.ro-new-row:first-child { border-top: 0; }
.ro-side {
    flex: none;
    width: 58px;
    padding-top: 1px;
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0.02em;
}
.ro-side.is-supply { color: var(--ro-supply); }
.ro-side.is-demand { color: var(--ro-demand); }
.ro-new-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }

/* ---------------------------------------------------------------- the book (like the Chat card) */

.ro-book {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--ro-line);
}
.ro-side-head {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
}
.ro-side-title { font-size: 13px; font-weight: 650; }
.ro-book-side.is-supply .ro-side-title { color: var(--ro-supply); }
.ro-book-side.is-demand .ro-side-title { color: var(--ro-demand); }
.ro-side-count { font-size: 11.5px; color: var(--ro-faint); }
.ro-row {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 6px 0;
}
/* H / L / S: click cycles Hot → Live → Stale. */
.ro-heat {
    flex: none;
    width: 18px;
    height: 18px;
    margin-top: 0;
    padding: 0;
    border: 0;
    border-radius: 5px;
    background: var(--ro-fill);
    color: var(--ro-faint);
    font: inherit;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    cursor: pointer;
    touch-action: manipulation;
}
.ro-heat.is-hot { background: var(--ro-hot-soft); color: var(--ro-hot); }
.ro-heat.is-live { background: var(--ro-live-soft); color: var(--ro-live); }
.ro-heat:hover { box-shadow: inset 0 0 0 1px currentColor; }
.ro-row-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ro-row-top {
    display: flex;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
}
.ro-fund {
    border: 0;
    background: none;
    padding: 0;
    font: inherit;
    font-size: 13.5px;
    font-weight: 550;
    color: var(--ro-text);
    cursor: pointer;
    text-align: left;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ro-fund:hover { text-decoration: underline; text-underline-offset: 3px; }
.ro-fund.is-none { color: var(--ro-faint); cursor: default; }
/* Price and size are buttons: click to type a new one. */
.ro-price,
.ro-size {
    border: 0;
    background: none;
    font: inherit;
    color: inherit;
    cursor: pointer;
    border-radius: 5px;
}
.ro-price {
    margin: -1px -5px -1px auto;
    padding: 1px 5px;
    flex: none;
    font-size: 13px;
    font-weight: 600;
}
.ro-price.is-none { font-weight: 400; color: var(--ro-faint); font-size: 12px; }
.ro-size {
    margin: 0 -3px;
    padding: 0 3px;
    font-size: 12px;
}
.ro-size.is-none { color: var(--ro-faint); }
.ro-price:hover,
.ro-size:hover { background: var(--ro-fill); color: var(--ro-text); }
.ro-input {
    box-sizing: border-box;
    height: 22px;
    padding: 0 7px;
    border: 1px solid var(--ro-faint);
    border-radius: 6px;
    background: var(--ro-card);
    color: var(--ro-text);
    font: inherit;
    font-size: 12.5px;
    font-weight: 500;
    outline: none;
}
.ro-input:focus { border-color: var(--ro-demand); box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.14); }
.ro-input.is-price { width: 112px; margin: -2px 0 -2px auto; text-align: right; }
.ro-input.is-size { width: 72px; height: 20px; font-size: 12px; }
.is-saving .ro-price,
.is-saving .ro-size,
.is-saving .ro-heat,
.is-saving .ro-gem { opacity: 0.55; }
.ro-meta {
    font-size: 12px;
    color: var(--ro-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ro-meta .ro-sep { margin: 0 5px; }
/* Prime: outline gem when off, gold when on, dashed when kept off. Click to pin or remove. */
.ro-gem {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin: 0 -2px 0 -3px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: none;
    cursor: pointer;
    align-self: center;
    touch-action: manipulation;
}
.ro-gem-shape {
    width: 7px;
    height: 7px;
    box-sizing: border-box;
    transform: rotate(45deg);
    border: 1.5px solid var(--ro-gold);
    border-radius: 1px;
    opacity: 0.4;
}
.ro-gem:hover .ro-gem-shape { opacity: 1; }
.ro-gem.is-on .ro-gem-shape { background: var(--ro-gold); opacity: 1; }
.ro-gem.is-off .ro-gem-shape { border-style: dashed; opacity: 0.7; }
.ro-heat:focus-visible,
.ro-gem:focus-visible,
.ro-price:focus-visible,
.ro-size:focus-visible { outline: 2px solid var(--ro-demand); outline-offset: 1px; }
.ro-empty {
    padding: 6px 0;
    font-size: 12.5px;
    color: var(--ro-faint);
}
.ro-more {
    border: 0;
    background: none;
    padding: 4px 0 0 16px;
    font: inherit;
    font-size: 12px;
    color: var(--ro-muted);
    cursor: pointer;
}
.ro-more:hover { color: var(--ro-text); }

@media (max-width: 640px) {
    .ro-co { padding: 14px 14px 12px; border-radius: 14px; }
    .ro-touch { grid-template-columns: 1fr auto; row-gap: 2px; }
    .ro-touch .ro-steps { grid-column: 1 / -1; grid-row: 2; }
    .ro-book { grid-template-columns: 1fr; gap: 12px; }
}
.ro-empty + .ro-more { padding-left: 0; }
