/* CV Co-hosted Events — extends the events-app skin (cv-tix.css).
   Same canvas, same hairlines, same brass: only co-hosting-specific pieces live here. */

/* ---------- hub ---------- */

.cvch-hub-foot { max-width: 72ch; margin-top: 2rem; }
.cvch-attention { border-color: rgba(201, 171, 119, .55); }
.cvch-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--cvtix-brass);
    margin-left: .45rem;
    vertical-align: 2px;
}
.cvch-how { margin: 0 0 2.4rem; }

/* ---------- proposal thread ---------- */

.cvch-columns { align-items: start; }
.cvch-thread {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 480px;
    overflow-y: auto;
    padding: .2rem .4rem .2rem 0;
    scrollbar-width: thin;
}
.cvch-msg {
    max-width: 78%;
    border: 1px solid var(--cvtix-line);
    border-radius: 10px;
    background: var(--cvtix-panel);
    padding: .8rem 1rem;
    align-self: flex-start;
}
.cvch-msg.is-mine {
    align-self: flex-end;
    border-color: rgba(201, 171, 119, .45);
    background: var(--cvtix-panel-raised, var(--cvtix-panel));
}
.cvch-msg-meta {
    margin: 0 0 .3rem;
    font-size: .68rem;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--cvtix-muted);
}
.cvch-msg-body { margin: 0; font-size: .95rem; line-height: 1.6; color: var(--cvtix-text); }
.cvch-sys {
    text-align: center;
    font-size: .78rem;
    color: var(--cvtix-muted);
    margin: .2rem 0;
    line-height: 1.6;
}
.cvch-sys span { display: block; font-size: .68rem; letter-spacing: .1em; opacity: .75; }

.cvch-composer { display: grid; gap: .7rem; margin-top: 1.1rem; }
.cvch-composer textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    min-height: 84px;
    padding: .7rem .9rem;
    border-radius: 6px;
    border: 1px solid var(--cvtix-line);
    background: var(--cvtix-field);
    font: 300 .95rem/1.5 var(--cvtix-sans);
    color: var(--cvtix-beige);
    color-scheme: dark;
}
.cvch-composer textarea::placeholder { color: rgba(229, 222, 208, .35); }
.cvch-composer textarea:focus { outline: none; border-color: var(--cvtix-brass); }
.cvch-composer .cvtix-btn-primary { justify-self: end; min-width: 140px; }

/* ---------- aside cards ---------- */

.cvch-aside { display: grid; gap: 1.4rem; }
.cvch-terms dl, .cvch-breakdown {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .35rem .9rem;
    margin: 0;
    font-size: .9rem;
}
.cvch-terms dt, .cvch-breakdown dt {
    font-size: .68rem;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--cvtix-brass);
    padding-top: .15rem;
}
.cvch-terms dd, .cvch-breakdown dd { margin: 0; color: var(--cvtix-text); }
.cvch-breakdown dd { text-align: right; font-variant-numeric: tabular-nums; }
.cvch-approval-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 0 .5rem;
    font-size: .9rem;
    color: var(--cvtix-text);
}
.cvch-approval-row strong { color: var(--cvtix-brass-warm); font-weight: 500; }
.cvch-statgrid { margin: 0 0 1rem; }
.cvch-payout { border-top: 1px solid var(--cvtix-line); padding-top: .8rem; margin-top: .8rem; }
.cvch-payout:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.cvch-payout p { margin: 0 0 .3rem; }

/* ---------- new proposal / split picker ---------- */

.cvch-rolepick, .cvch-splitpick { display: grid; gap: .45rem; margin: .4rem 0 .8rem; }
.cvch-pct {
    width: 74px;
    min-height: 34px;
    padding: .25rem .5rem;
    border-radius: 6px;
    border: 1px solid var(--cvtix-line);
    background: var(--cvtix-field);
    color: var(--cvtix-beige);
    color-scheme: dark;
    font: 300 .9rem/1.3 var(--cvtix-sans);
}
.cvch-pct:focus { outline: none; border-color: var(--cvtix-brass); }

.cvch-participants { margin-bottom: 1.4rem; }
.cvch-party-list { display: grid; gap: .65rem; margin: 1rem 0 1.4rem; }
.cvch-party-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .8rem 0;
    border-bottom: 1px solid var(--cvtix-line);
}
.cvch-party-row:last-child { border-bottom: 0; }
.cvch-party-row > div:first-child { display: grid; gap: .2rem; min-width: 0; }
.cvch-party-row strong { color: var(--cvtix-beige); font-weight: 500; overflow-wrap: anywhere; }
.cvch-party-row span { color: var(--cvtix-muted); font-size: .8rem; }
.cvch-party-row.is-pending { opacity: .78; }
.cvch-party-share { display: flex; align-items: center; gap: .65rem; flex-shrink: 0; }
.cvch-party-share form { margin: 0; }
.cvch-party-share .cvtix-btn { min-height: 38px; padding: .45rem .75rem; }
.cvch-add-party { border-top: 1px solid var(--cvtix-line); padding-top: 1.2rem; }
.cvch-add-party h3 { margin-top: 0; }
.cvch-party-fields {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(150px, .8fr) minmax(150px, .7fr);
    gap: .8rem;
    align-items: end;
}
.cvch-percent-field { display: flex; align-items: center; gap: .4rem; }
.cvch-percent-field input { min-width: 0; }
.cvch-percent-field > span:last-child { color: var(--cvtix-muted); }

.cvch-multi-split { border: 1px solid var(--cvtix-line); border-radius: 8px; padding: .4rem 1rem; }
.cvch-split-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 58px;
    border-bottom: 1px solid var(--cvtix-line);
}
.cvch-split-row:last-child { border-bottom: 0; }
.cvch-split-row > span:first-child { display: grid; gap: .1rem; }
.cvch-split-row small { color: var(--cvtix-muted); font-size: .72rem; }
.cvch-split-row output { color: var(--cvtix-brass-warm); font-variant-numeric: tabular-nums; }
.cvch-split-row .cvch-percent-field { width: 104px; }
.cvch-split-row .cvch-pct { width: 78px; min-height: 42px; }
.cvch-public-cohost + .cvch-public-cohost { border-top: 1px solid var(--cvtix-line); margin-top: 1rem; padding-top: 1rem; }

/* ---------- venue finder ---------- */

.cvch-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.1rem;
}
.cvch-result h3 {
    font-family: var(--cvtix-serif);
    font-weight: 300;
    font-size: 1.3rem;
    color: var(--cvtix-beige);
    margin: 0 0 .35rem;
}
.cvch-result .cvtix-btn { margin-top: .7rem; }

/* ---------- invitation copy ---------- */

.cvch-copyline { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.cvch-copyblock {
    border: 1px solid var(--cvtix-line);
    border-radius: 8px;
    background: var(--cvtix-field);
    padding: 1rem 1.2rem;
    margin: .4rem 0 1rem;
}
.cvch-copyblock pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    font: 300 .92rem/1.65 var(--cvtix-sans);
    color: var(--cvtix-text);
}
.cvch-invitecopy h2 { margin-top: 1.2rem; }
.cvch-invitecopy h2:first-of-type { margin-top: 0; }

/* ---------- small screens ---------- */

@media (max-width: 900px) {
    .cvch-columns { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .cvch-msg { max-width: 92%; }
    .cvch-results { grid-template-columns: 1fr; }
    .cvch-party-fields { grid-template-columns: 1fr; }
    .cvch-party-row { align-items: flex-start; }
    .cvch-party-share { align-items: flex-end; flex-direction: column; }
    .cvch-split-row { min-height: 64px; }
}

/* ---------- proposal page: outcome band + carded conversation (balance pass) ---------- */

.cvch-band { margin: 0 0 2rem; }
.cvch-band .cvtix-stat strong { font-size: 1.7rem; }

.cvch-threadcard { margin-bottom: 1.4rem; }
.cvch-threadcard .cvtix-sectiontitle { margin-top: 0; }
.cvch-threadcard .cvch-thread {
    max-height: 420px;
    padding-right: .5rem;
}
.cvch-threadcard .cvch-composer { margin-top: 1.2rem; border-top: 1px solid var(--cvtix-line); padding-top: 1.1rem; }

.cvch-aside .cvtix-card { padding: 1.6rem 1.7rem; }
.cvch-terms dl { row-gap: .55rem; }
.cvch-breakdown { row-gap: .45rem; }
.cvch-coderow { display: flex; gap: .6rem; align-items: stretch; }
.cvch-coderow input {
    flex: 1;
    min-width: 0;
    box-sizing: border-box;
    min-height: 44px;
    padding: .5rem .8rem;
    border-radius: 6px;
    border: 1px solid var(--cvtix-line);
    background: var(--cvtix-field);
    color: var(--cvtix-beige);
    color-scheme: dark;
    font: 300 .92rem/1.4 var(--cvtix-sans);
}
.cvch-coderow input:focus { outline: none; border-color: var(--cvtix-brass); }

@media (max-width: 900px) {
    .cvch-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.cvch-payouts { border-top: 1px solid var(--cvtix-line); margin-top: 1rem; padding-top: 1rem; }
.cvch-payout-title {
    font-size: .68rem;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--cvtix-brass);
    margin: 0 0 .5rem;
}
