/* ═══════════════════════════════════════════════════════════════════════════
   collection.css — tile / list collection view
   Uses semi-transparent rgba throughout so it works on both light and dark
   backgrounds without any theme branching.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Toolbar ────────────────────────────────────────────────────────────── */
.coll-toolbar {
    display: flex;
    align-items: center;
    gap: 0.5em;
    flex-wrap: wrap;
    margin-bottom: 0.65em;
}

.coll-search {
    flex: 1;
    min-width: 130px;
    max-width: 260px;
    padding: 0.32em 0.65em;
    border-radius: 6px;
    font-size: 9pt;
}

.coll-sort {
    padding: 0.32em 0.5em;
    border-radius: 6px;
    font-size: 9pt;
    max-width: 155px;
    background: inherit;
    color: inherit;
    border: 1px solid rgba(128,128,128,0.35);
    cursor: pointer;
}

.coll-view-toggle {
    display: flex;
    gap: 3px;
    margin-left: auto;
}

.coll-btn-tile,
.coll-btn-list {
    background: none;
    border: 1px solid rgba(128,128,128,0.3);
    border-radius: 6px;
    padding: 0.28em 0.6em;
    cursor: pointer;
    font-size: 1em;
    line-height: 1;
    opacity: 0.4;
    color: inherit;
    transition: opacity 0.15s, background 0.15s, border-color 0.15s;
}

.coll-btn-tile.coll-btn-active,
.coll-btn-list.coll-btn-active {
    opacity: 1;
    background: rgba(99,102,241,0.15);
    border-color: rgba(99,102,241,0.5);
}

.coll-btn-tile:hover,
.coll-btn-list:hover { opacity: 0.8; }

/* ── Tag filter bar ─────────────────────────────────────────────────────── */
.coll-tag-filter {
    display: flex;
    align-items: center;
    gap: 0.4em;
    flex-wrap: wrap;
    min-height: 1.4em;
    margin-bottom: 0.55em;
}

.coll-tag-label {
    font-size: 8.5pt;
    opacity: 0.5;
    font-style: italic;
}

.coll-tag-pill {
    background: rgba(128,128,128,0.1);
    border: 1px solid rgba(128,128,128,0.22);
    border-radius: 12px;
    padding: 0.1em 0.6em;
    font-size: 8.5pt;
    cursor: pointer;
    color: inherit;
    transition: background 0.12s, border-color 0.12s;
    white-space: nowrap;
}

.coll-tag-pill:hover           { background: rgba(99,102,241,0.1); }
.coll-tag-pill.coll-tag-pill-active {
    background: rgba(99,102,241,0.22);
    border-color: rgba(99,102,241,0.55);
}

.coll-tag-clear {
    background: none;
    border: none;
    font-size: 8pt;
    opacity: 0.45;
    cursor: pointer;
    color: inherit;
    padding: 0 4px;
}
.coll-tag-clear:hover { opacity: 0.85; }

/* ── Inline tag row (inside cards) ─────────────────────────────────────── */
.coll-tag-row {
    display: flex;
    align-items: center;
    gap: 0.3em;
    flex-wrap: wrap;
    margin-top: 0.45em;
}

.coll-user-tag { cursor: default !important; font-size: 0.72em; }

.coll-tag-input {
    font-size: 8pt;
    padding: 1px 7px;
    border-radius: 10px;
    width: 74px;
    background: rgba(128,128,128,0.09);
    border: 1px dashed rgba(128,128,128,0.32);
    color: inherit;
    outline: none;
    transition: border-color 0.15s;
}
.coll-tag-input:focus { border-color: rgba(99,102,241,0.5); }
.coll-tag-input::placeholder { opacity: 0.4; font-style: italic; }

/* ── Shared card base ───────────────────────────────────────────────────── */
.coll-card {
    box-sizing: border-box;
    position: relative;
}

/* ── TILE view ──────────────────────────────────────────────────────────── */
.coll-wrap.view-tile .coll-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1em;
}

.coll-wrap.view-tile .coll-card {
    border-radius: 12px;
    padding: 0.9em 1em;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.coll-wrap.view-tile .coll-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 18px rgba(0,0,0,0.13);
}

.coll-wrap.view-tile .coll-card-badges {
    display: flex;
    align-items: center;
    gap: 0.4em;
    flex-wrap: wrap;
    margin-bottom: 0.5em;
}

/* ── "Shared by X" pill on favorite cards ── */
.shared-by-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    padding: 0.18em 0.6em;
    border-radius: 999px;
    font-size: 0.72em;
    font-weight: 600;
    color: #16a34a;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    line-height: 1.4;
}
.coll-card-shared {
    border-color: rgba(16, 185, 129, 0.35) !important;
}

.coll-wrap.view-tile .coll-card-body { flex: 1; }

.coll-wrap.view-tile .coll-card-title {
    font-weight: 700;
    font-size: 1em;
    line-height: 1.3;
    margin-bottom: 0.3em;
}

.coll-wrap.view-tile .coll-card-desc {
    font-size: 0.82em;
    line-height: 1.4;
    opacity: 0.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.coll-wrap.view-tile .coll-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5em;
    padding-top: 0.4em;
    border-top: 1px solid rgba(128,128,128,0.12);
    font-size: 0.78em;
    opacity: 0.75;
}

/* Stacked footer in tile view: date/meta top row, action icons next row */
.coll-wrap.view-tile .coll-card-footer-stacked {
    flex-direction: column;
    gap: 0.35em;
    align-items: stretch;
}
.coll-wrap.view-tile .coll-card-footer-stacked .coll-card-meta {
    font-size: 0.78em;
    opacity: 0.85;
}
.coll-wrap.view-tile .coll-card-footer-stacked .coll-card-actions {
    display: flex;
    gap: 0.55em;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 0.25em;
    border-top: 1px dashed rgba(128,128,128,0.18);
}
/* In list view, keep meta + actions inline on one row as before */
.coll-wrap.view-list .coll-card-footer-stacked .coll-card-actions {
    display: inline-flex;
    gap: 0.55em;
    align-items: center;
    margin-left: 0.6em;
}

/* ── Contacts: tighter grid (4 per row desktop, 2 mobile) ───────────────── */
.coll-wrap[data-collection-key="contacts"].view-tile .coll-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.coll-wrap[data-collection-key="contacts"].view-tile .coll-card {
    min-height: 0;
    padding: 0.7em 0.85em;
}
@media (max-width: 720px) {
    .coll-wrap[data-collection-key="contacts"].view-tile .coll-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ── LIST view ──────────────────────────────────────────────────────────── */
.coll-wrap.view-list .coll-grid {
    display: flex;
    flex-direction: column;
    gap: 0.35em;
}

.coll-wrap.view-list .coll-card {
    border-radius: 8px;
    padding: 0.45em 0.85em;
    display: flex;
    align-items: center;
    gap: 0.65em;
    flex-wrap: wrap;
    cursor: pointer;
    min-height: unset;
    transition: border-color 0.12s, background 0.12s;
}

.coll-wrap.view-list .coll-card-badges {
    display: flex;
    align-items: center;
    gap: 0.35em;
    flex-shrink: 0;
}

.coll-wrap.view-list .coll-card-body {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.6em;
    flex-wrap: wrap;
    min-width: 0;
}

.coll-wrap.view-list .coll-card-title {
    font-weight: 600;
    font-size: 0.95em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 320px;
}

.coll-wrap.view-list .coll-card-desc { display: none; }

.coll-wrap.view-list .coll-card-footer {
    display: flex;
    gap: 0.75em;
    align-items: center;
    font-size: 0.78em;
    opacity: 0.7;
    flex-shrink: 0;
    margin-left: auto;
}

.coll-wrap.view-list .coll-tag-row { margin-top: 0; }

/* ── New card — TILE view ───────────────────────────────────────────────── */
.coll-wrap.view-tile .coll-new-card {
    border: 2px dashed rgba(99,102,241,0.4) !important;
    border-radius: 12px;
    padding: 1.4em 1em;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, background 0.15s;
    transform: none !important;
    box-shadow: none !important;
}
.coll-wrap.view-tile .coll-new-card:hover {
    border-color: rgba(99,102,241,0.85) !important;
    background: rgba(99,102,241,0.05);
}

/* ── New card — LIST view ───────────────────────────────────────────────── */
.coll-wrap.view-list .coll-new-card {
    border: 1px dashed rgba(99,102,241,0.38) !important;
    border-radius: 8px;
    padding: 0.4em 0.85em;
    display: flex;
    align-items: center;
    gap: 0.5em;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    min-height: unset;
    transition: border-color 0.15s, background 0.15s;
}
.coll-wrap.view-list .coll-new-card:hover {
    border-color: rgba(99,102,241,0.7) !important;
    background: rgba(99,102,241,0.04);
}

/* New card content helpers */
.coll-new-icon {
    font-size: 2em;
    color: rgba(99,102,241,0.7);
    line-height: 1;
    margin-bottom: 0.3em;
}
.coll-wrap.view-list .coll-new-icon {
    font-size: 1.1em;
    margin-bottom: 0;
}
.coll-new-label {
    font-weight: 600;
    font-size: 1em;
    color: rgba(99,102,241,0.9);
}
.coll-wrap.view-list .coll-new-label { font-size: 0.9em; }

.coll-new-hint { font-size: 0.8em; opacity: 0.48; margin-top: 0.3em; }
.coll-wrap.view-list .coll-new-hint { display: none; }

/* ── Contacts new-card form (tile view only) ────────────────────────────── */
.coll-wrap.view-tile .coll-new-form {
    display: flex;
    flex-direction: column;
    gap: 0.4em;
    width: 100%;
    text-align: left;
}
.coll-wrap.view-tile .coll-new-form input[type=text],
.coll-wrap.view-tile .coll-new-form input[type=email],
.coll-wrap.view-tile .coll-new-form input[type=tel] {
    width: 100%;
    box-sizing: border-box;
    font-size: 9pt;
    padding: 0.35em 0.55em;
}
.coll-wrap.view-list .coll-new-form {
    display: flex;
    align-items: center;
    gap: 0.4em;
    flex-wrap: wrap;
}

/* ── Contacts card inline edit form ─────────────────────────────────────── */
.coll-edit-panel {
    display: none;
    flex-direction: column;
    gap: 0.35em;
    margin-top: 0.5em;
    padding-top: 0.5em;
    border-top: 1px solid rgba(128,128,128,0.15);
    width: 100%;
}
.coll-edit-panel.open { display: flex; }
.coll-edit-panel input[type=text],
.coll-edit-panel input[type=email],
.coll-edit-panel input[type=tel] {
    font-size: 9pt;
    padding: 0.3em 0.5em;
    width: 100%;
    box-sizing: border-box;
}
.coll-wrap.view-list .coll-edit-panel { flex-direction: row; flex-wrap: wrap; }

/* ── Card-type borders & hovers ─────────────────────────────────────────── */
/* Own decisions — indigo */
.coll-card-own  { border: 2px solid rgba(99,102,241,0.45); }
.coll-card-own:hover  { border-color: rgba(99,102,241,0.85) !important; }

/* Invited decisions — green */
.coll-card-invited { border: 2px solid rgba(16,185,129,0.45); }
.coll-card-invited:hover  { border-color: rgba(16,185,129,0.85) !important; }

/* Contacts — subtle indigo */
.coll-card-contact { border: 2px solid rgba(99,102,241,0.3); }
.coll-card-contact:hover  { border-color: rgba(99,102,241,0.72) !important; }

/* List view — lighter borders */
.coll-wrap.view-list .coll-card-own     { border-width: 1px; }
.coll-wrap.view-list .coll-card-invited { border-width: 1px; }
.coll-wrap.view-list .coll-card-contact { border-width: 1px; border-color: rgba(128,128,128,0.22); }
.coll-wrap.view-list .coll-card-contact:hover { border-color: rgba(99,102,241,0.55) !important; background: rgba(99,102,241,0.025); }

/* ── Tile-only / List-only visibility helpers ────────────────────────────── */
.coll-wrap.view-list  .coll-tile-only { display: none !important; }
.coll-wrap.view-tile  .coll-list-only { display: none !important; }

/* ── Stop form clicks propagating through the card onclick ──────────────── */
.coll-new-form, .coll-edit-panel { pointer-events: auto; }

/* ── Date group headers ──────────────────────────────────────────────────── */
.coll-group-header {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 0.55em;
    font-size: 0.68em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.45;
    margin: 0.5em 0 0.1em;
    white-space: nowrap;
}
.coll-group-header::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(128,128,128,0.25);
}
.coll-group-header:first-child { display: none; }

/* ── Favorites cards ─────────────────────────────────────────────────────── */
.coll-card-fav { border: 2px solid rgba(99,102,241,0.55); cursor: pointer; }
.coll-card-fav:hover { border-color: rgba(99,102,241,1) !important; }
.coll-wrap.view-list .coll-card-fav { border-width: 1px; border-color: rgba(99,102,241,0.45); }

/* Clamp question text in tile view */
.coll-wrap.view-tile .coll-card-fav .coll-card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.coll-wrap.view-tile .coll-card-fav .coll-card-desc {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Prompt Library cards ────────────────────────────────────────────────── */
.coll-card-lib { border: 2px solid rgba(16,185,129,0.45); }
.coll-card-lib:hover { border-color: rgba(16,185,129,0.85) !important; }
.coll-wrap.view-list .coll-card-lib { border-width: 1px; }

.coll-card-prompt {
    font-size: 0.95em;
    line-height: 1.45;
    white-space: pre-wrap;
    overflow-y: auto;
    padding-right: 4px;
}
.coll-wrap.view-tile .coll-card-lib .coll-card-prompt {
    max-height: 11em;
}
.coll-wrap.view-list .coll-card-lib .coll-card-prompt {
    max-height: 6em;
}
.coll-card-prompt::-webkit-scrollbar { width: 6px; }
.coll-card-prompt::-webkit-scrollbar-thumb {
    background: rgba(128,128,128,0.35); border-radius: 3px;
}

.lib-source-pill {
    display: inline-block;
    font-size: 0.72em;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(16,185,129,0.12);
    color: rgba(16,185,129,1);
    border: 1px solid rgba(16,185,129,0.35);
}
.lib-source-pill i { margin-right: 3px; }

.lib-use-btn {
    text-decoration: none;
    font-size: 0.85em;
    padding: 4px 10px;
    border-radius: 6px;
}
.lib-use-btn i { margin-right: 4px; }

/* Action icons in card footer — these are the real power drivers, so they
   sit slightly larger and heavier than typical decoration. */
.fav-action {
    opacity: 0.95;
    font-size: 1.15em;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.15s, transform 0.12s;
    padding: 4px 6px;
    line-height: 1;
}
.fav-action i { font-weight: 900; }
.fav-action:hover { opacity: 1; transform: translateY(-1px); }

/* ═══════════════════════════════════════════════════════════════════════════
   Participant pill UI  (decision detail draft mode)
   ═══════════════════════════════════════════════════════════════════════════ */

.pp-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45em;
    align-items: center;
    margin-bottom: 0.65em;
}

.pp-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    padding: 0.25em 0.7em;
    border-radius: 999px;
    font-size: 0.85em;
    line-height: 1.4;
    white-space: nowrap;
    user-select: none;
}

.pp-pill-decider {
    background: rgba(99,102,241,0.15);
    border: 1px solid rgba(99,102,241,0.4);
    color: inherit;
}

.pp-pill-member {
    background: rgba(128,128,128,0.1);
    border: 1px solid rgba(128,128,128,0.3);
    color: inherit;
}

.pp-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1em;
    height: 1.1em;
    border-radius: 50%;
    background: rgba(239,68,68,0.15);
    color: #ef4444;
    text-decoration: none;
    font-size: 0.82em;
    font-weight: bold;
    line-height: 1;
    transition: background 0.15s;
}
.pp-remove:hover { background: rgba(239,68,68,0.35); }

.pp-pill-add {
    background: rgba(99,102,241,0.08);
    border: 1px dashed rgba(99,102,241,0.5);
    color: rgba(99,102,241,0.9);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    font-size: 0.85em;
    padding: 0.25em 0.75em;
    border-radius: 999px;
}
.pp-pill-add:hover {
    background: rgba(99,102,241,0.14);
    border-color: rgba(99,102,241,0.8);
}

.pp-add-panel {
    padding: 0.75em 0.9em;
    border-radius: 10px;
    background: rgba(99,102,241,0.06);
    border: 1px solid rgba(99,102,241,0.2);
    margin-bottom: 0.75em;
}

.pp-section-label {
    font-size: 0.8em;
    opacity: 0.6;
    margin-bottom: 0.35em;
}

.pp-contact-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4em;
}

.pp-contact-pick {
    padding: 0.2em 0.7em;
    border-radius: 999px;
    border: 1px solid rgba(16,185,129,0.45);
    background: rgba(16,185,129,0.1);
    color: inherit;
    font-size: 0.82em;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.pp-contact-pick:hover {
    background: rgba(16,185,129,0.22);
    border-color: rgba(16,185,129,0.7);
}

.pp-new-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35em;
    align-items: center;
}

/* ── Decision references (Context summaries) ── */
.dec-refs { display: flex; flex-direction: column; gap: 0.45em; }
.dec-ref-list { display: flex; flex-direction: column; gap: 0.35em; }
.dec-ref-card {
    border: 1px solid rgba(128,128,128,0.18);
    border-radius: 8px;
    background: rgba(128,128,128,0.04);
    padding: 0;
}
.dec-ref-card summary {
    cursor: pointer;
    user-select: none;
    list-style: none;
    padding: 0.55em 0.75em;
    display: flex;
    align-items: center;
    gap: 0.5em;
    font-size: 0.88em;
    border-radius: 8px;
}
.dec-ref-card summary::-webkit-details-marker { display: none; }
.dec-ref-card summary::after { content: "\25B8"; margin-left: auto; opacity: 0.5; transition: transform 0.15s; }
.dec-ref-card[open] > summary::after { transform: rotate(90deg); }
.dec-ref-card summary:hover { background: rgba(99,102,241,0.06); }
.dec-ref-icon { opacity: 0.7; flex-shrink: 0; }
.dec-ref-label {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
    min-width: 0;
}
.dec-ref-type {
    font-size: 0.72em;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.55;
    flex-shrink: 0;
}
.dec-ref-body {
    padding: 0.5em 0.85em 0.85em;
    border-top: 1px solid rgba(128,128,128,0.14);
}
.dec-ref-summary {
    font-size: 0.9em;
    line-height: 1.5;
    white-space: pre-wrap;
    margin-bottom: 0.6em;
}
.dec-ref-actions {
    display: flex;
    align-items: center;
    gap: 0.6em;
    justify-content: space-between;
}
.dec-ref-link {
    font-size: 0.82em;
    text-decoration: none;
    opacity: 0.75;
}
.dec-ref-link:hover { opacity: 1; text-decoration: underline; }
.dec-ref-remove {
    padding: 0.2em 0.7em !important;
    font-size: 0.78em !important;
}
.dec-ref-add-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4em;
    margin-top: 0.5em;
}
.dec-ref-add-row button { flex: 1; min-width: 180px; }

/* ── Decision type radio (new-decision form) ──────────────────────────── */
.dec-type-radio {
    display: flex;
    gap: 0.55em;
    align-items: flex-start;
    padding: 0.55em 0.75em;
    border: 1px solid rgba(128,128,128,0.22);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.88em;
    line-height: 1.4;
    transition: border-color 0.15s, background 0.15s;
}
.dec-type-radio:hover { border-color: rgba(128,128,128,0.42); }
.dec-type-radio input[type="radio"] { margin-top: 0.25em; flex-shrink: 0; }
.dec-type-radio:has(input[type="radio"]:checked) {
    border-color: rgba(99, 102, 241, 0.55);
    background: rgba(99, 102, 241, 0.06);
}

/* ── Date-poll tile accent + pill ─────────────────────────────────────── */
.coll-card-dates {
    border-color: rgba(20, 184, 166, 0.4) !important;
    background: linear-gradient(135deg,
        rgba(20, 184, 166, 0.045) 0%,
        rgba(20, 184, 166, 0) 60%);
}
.dec-type-pill {
    background: rgba(20, 184, 166, 0.12) !important;
    border: 1px solid rgba(20, 184, 166, 0.35);
    color: #0d9488;
    font-weight: 600;
}

/* ── To-do status pills (5 states) ─────────────────────────────────────── */
.todo-status {
    display: inline-flex;
    align-items: center;
    padding: 0.15em 0.65em;
    border-radius: 999px;
    font-size: 0.72em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: 1px solid currentColor;
    background: transparent;
}
.todo-status-new       { color: #6b7280; background: rgba(107,114,128,0.1);  border-color: rgba(107,114,128,0.4); }
.todo-status-waiting   { color: #b45309; background: rgba(245,158,11,0.13); border-color: rgba(245,158,11,0.45); }
.todo-status-doing     { color: #2563eb; background: rgba(37,99,235,0.12);  border-color: rgba(37,99,235,0.45); }
.todo-status-done      { color: #16a34a; background: rgba(22,163,74,0.13);  border-color: rgba(22,163,74,0.45); }
.todo-status-cancelled { color: #dc2626; background: rgba(220,38,38,0.1);   border-color: rgba(220,38,38,0.4); opacity: 0.8; }

/* "Assigned to me" indicator on a tile */
.todo-assigned-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    padding: 0.15em 0.6em;
    border-radius: 999px;
    background: rgba(20, 184, 166, 0.13);
    border: 1px solid rgba(20, 184, 166, 0.4);
    color: #0d9488;
    font-size: 0.72em;
    font-weight: 600;
}
.todo-assigned-pill i { font-size: 0.85em; opacity: 0.8; }

/* Tile accent when this to-do was assigned to the current user (incoming work) */
.coll-card-assigned {
    border-color: rgba(20, 184, 166, 0.45) !important;
    background: linear-gradient(135deg, rgba(20,184,166,0.05) 0%, rgba(20,184,166,0) 60%);
}

/* Subtle visual fade for done/cancelled tiles when shown */
.coll-card-todo-done,
.coll-card-todo-cancelled { opacity: 0.7; }

/* Due-date pill */
.todo-due {
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    padding: 0.15em 0.55em;
    border-radius: 999px;
    background: rgba(128,128,128,0.08);
    border: 1px solid rgba(128,128,128,0.25);
    font-size: 0.72em;
    color: inherit;
    opacity: 0.8;
}

/* Status changer row on the detail page */
.todo-status-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4em;
}
.todo-status-btn {
    padding: 0.3em 0.85em;
    border-radius: 999px;
    border: 1px solid currentColor;
    background: transparent;
    font-size: 0.85em;
    font-weight: 600;
    cursor: pointer;
    opacity: 0.55;
    transition: opacity 0.15s, background 0.15s;
}
.todo-status-btn:hover { opacity: 0.85; }
.todo-status-btn.todo-status-selected { opacity: 1; box-shadow: 0 0 0 2px currentColor; }

/* Advisor pill in the participant list (draft state) — distinct teal accent */
.pp-pill-advisor {
    background: rgba(20, 184, 166, 0.12);
    border: 1px solid rgba(20, 184, 166, 0.4);
    color: #0d9488;
    font-weight: 600;
}
.pp-pill-advisor i { opacity: 0.85; }

/* "Advisor" tile in the quick-add row */
.pp-contact-advisor {
    background: rgba(20, 184, 166, 0.10) !important;
    border-color: rgba(20, 184, 166, 0.4) !important;
    color: #0d9488 !important;
    font-weight: 600;
}
.pp-contact-advisor:hover {
    background: rgba(20, 184, 166, 0.18) !important;
    border-color: rgba(20, 184, 166, 0.6) !important;
}
.pp-contact-advisor i { opacity: 0.85; }
