/* ============================================================================
   Fireside Chat console — ported from the standalone NEA.DealCall module.
   The dc- classes are unique to Fireside, so only the design tokens are scoped
   (to .dc-fireside-console) to avoid colliding with the app's :root variables.
   Accent palette rebranded to NextEdge navy + gold (was the module's blue).
   ============================================================================ */

.dc-fireside-console {
    /* Accent tokens keep their original names so every dc- rule recolors. */
    --gold: #ebd1a1;        /* NextEdge gold — primary accent (buttons, active tab) */
    --gold-light: #f4e4c6;
    --gold-dim: #a78c69;
    --bg: #020619;          /* NextEdge deepest navy */
    --bg2: #0f1633;         /* cards / panels */
    --bg3: #141c3f;         /* secondary panel */
    --bg4: #1b275e;         /* raised / hover */
    --border: rgba(235, 209, 161, 0.15);
    --border-mid: rgba(235, 209, 161, 0.30);
    --text: #e7e6e8;
    --text-mid: #9f9ea5;
    --text-dim: #7a7383;
    --green: #4caf82;
    --green-bg: rgba(76, 175, 130, 0.08);
    --green-border: rgba(76, 175, 130, 0.25);
    --amber: #e8a84c;
    --amber-bg: rgba(232, 168, 76, 0.08);
    --amber-border: rgba(232, 168, 76, 0.25);
    --red: #e06060;
    --red-bg: rgba(224, 96, 96, 0.08);
    --red-border: rgba(224, 96, 96, 0.25);
    --blue: #6b9fd6;
    --blue-bg: rgba(107, 159, 214, 0.08);
    --blue-border: rgba(107, 159, 214, 0.25);

    color: var(--text);
    font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* ---------- Card ---------- */

.dc-card {
    background-color: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.dc-card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.dc-card-header h2 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

.dc-card-body {
    padding: 1.25rem;
}

/* ---------- Buttons ---------- */

.dc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.55rem 1.05rem;
    border-radius: 6px;
    border: 1px solid transparent;
    background: var(--bg3);
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.05s ease;
    text-decoration: none;
    line-height: 1.2;
}

.dc-btn:hover {
    background: var(--bg4);
    text-decoration: none;
    color: var(--text);
}

.dc-btn:active {
    transform: translateY(1px);
}

.dc-btn:disabled,
.dc-btn[disabled],
.dc-btn.disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.dc-btn--primary {
    background: var(--gold);
    color: var(--bg);
    border-color: var(--gold);
}

.dc-btn--primary:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    color: var(--bg);
}

.dc-btn--ghost {
    background: transparent;
    border-color: var(--border-mid);
    color: var(--text);
}

.dc-btn--ghost:hover {
    background: var(--bg3);
    border-color: var(--gold-dim);
}

.dc-btn--danger {
    background: transparent;
    border-color: var(--red-border);
    color: var(--red);
}

.dc-btn--danger:hover {
    background: var(--red-bg);
    border-color: var(--red);
    color: var(--red);
}

.dc-btn--link {
    background: transparent;
    border: none;
    color: var(--gold-light);
    padding: 0.25rem 0;
}

.dc-btn--link:hover {
    color: var(--gold);
    background: transparent;
    text-decoration: underline;
}

.dc-btn--sm {
    padding: 0.35rem 0.7rem;
    font-size: 0.8rem;
}

.dc-btn--block {
    width: 100%;
    padding: 0.8rem 1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.82rem;
}

/* ---------- Checkbox ---------- */

.dc-attendee-check {
    width: 16px;
    height: 16px;
    accent-color: var(--gold);
    cursor: pointer;
}

/* ---------- Badges ---------- */

.dc-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid transparent;
    background: var(--bg3);
    color: var(--text-mid);
    line-height: 1.3;
    white-space: nowrap;
}

.dc-badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.85;
}

.dc-badge--neutral {
    background: var(--bg3);
    color: var(--text-mid);
    border-color: var(--border);
}

.dc-badge--blue {
    background: var(--blue-bg);
    color: var(--blue);
    border-color: var(--blue-border);
}

.dc-badge--amber {
    background: var(--amber-bg);
    color: var(--amber);
    border-color: var(--amber-border);
}

.dc-badge--gold {
    background: rgba(235, 209, 161, 0.1);
    color: var(--gold);
    border-color: var(--border-mid);
}

.dc-badge--green {
    background: var(--green-bg);
    color: var(--green);
    border-color: var(--green-border);
}

.dc-badge--red {
    background: var(--red-bg);
    color: var(--red);
    border-color: var(--red-border);
}

/* ---------- Tables ---------- */

.dc-table-wrap {
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg2);
}

.dc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.dc-table thead th {
    text-align: left;
    font-weight: 600;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    padding: 0.85rem 1rem;
    background: var(--bg3);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.dc-table tbody td {
    padding: 0.95rem 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    vertical-align: middle;
}

.dc-table tbody tr:last-child td {
    border-bottom: none;
}

.dc-table .dc-cell-title {
    color: var(--text);
    font-weight: 500;
}

/* ---------- Alerts ---------- */

.dc-alert {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid;
    font-size: 0.88rem;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.dc-alert--error {
    background: var(--red-bg);
    border-color: var(--red-border);
    color: var(--red);
}

.dc-alert--info {
    background: var(--blue-bg);
    border-color: var(--blue-border);
    color: var(--blue);
}

.dc-alert--warn {
    background: var(--amber-bg);
    border-color: var(--amber-border);
    color: var(--amber);
}

/* ---------- Misc utilities ---------- */

.dc-muted {
    color: var(--text-mid);
}

.dc-dim {
    color: var(--text-dim);
}

.dc-slot-empty {
    padding: 1rem 1.1rem;
    text-align: center;
    font-size: 0.9rem;
}

/* Attendee name rendered as a link/button (host can click to view submitted times). */
.dc-linklike {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    text-align: left;
    color: var(--gold-light);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: var(--gold-dim);
}

.dc-linklike:hover {
    color: var(--gold);
    text-decoration-color: var(--gold);
}

/* Floating, draggable call dock — mounted app-wide (App.razor) so the call survives navigation. */
.dc-dock {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: min(880px, 92vw);
    height: 80vh;
    max-height: 80vh;
    max-width: 96vw;
    z-index: 4000;
    display: flex;
    flex-direction: column;
    background: #0a0f1e;
    border: 1px solid rgba(235, 209, 161, 0.35);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
    resize: both;
    min-width: 320px;
    min-height: 240px;
}

.dc-dock-bar {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.55rem;
    background: linear-gradient(180deg, rgba(235, 209, 161, 0.16), rgba(235, 209, 161, 0.05));
    border-bottom: 1px solid rgba(235, 209, 161, 0.2);
    cursor: move;
    user-select: none;
    touch-action: none;
}

.dc-dock-title {
    flex: 1 1 auto;
    font-size: 0.8rem;
    font-weight: 600;
    color: #ebd1a1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dc-dock-actions {
    display: flex;
    gap: 0.25rem;
    flex: 0 0 auto;
}

.dc-dock-btn {
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: #f4e4c6;
    width: 26px;
    height: 22px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dc-dock-btn:hover {
    background: rgba(255, 255, 255, 0.16);
}

.dc-dock-btn--close:hover {
    background: #d33;
    color: #fff;
}

.dc-dock-body {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    background: #000;
}

/* In-app embedded Fireside room (full-page) — brand bar on top, Whereby fills the rest. */
.dc-room-shell {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    background: #0a0f1e;
}

.dc-room-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.6rem 1rem;
    background: #0a0f1e;
    border-bottom: 1px solid rgba(235, 209, 161, 0.18);
    flex: 0 0 auto;
}

.dc-room-logo {
    height: 30px;
    width: auto;
}

.dc-room-hint {
    flex: 1 1 auto;
    font-size: 0.82rem;
    color: rgba(235, 209, 161, 0.75);
}

.dc-room-hint strong {
    color: #ebd1a1;
}

.dc-room-stage {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
}

.dc-room-msg {
    margin: auto;
    max-width: 32rem;
    padding: 1.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.95rem;
    line-height: 1.6;
}

.dc-room-msg--error {
    color: #f3b4b4;
}

/* Copyable join link under a scheduled session (Upcoming tab) — mirrors the invite email. */
.dc-join-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: -0.4rem 0 1rem;
    padding: 0.6rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-2, rgba(255, 255, 255, 0.03));
}

.dc-join-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-mid);
}

.dc-join-url {
    flex: 1 1 240px;
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 0.82rem;
    color: var(--gold-light);
}

.dc-join-hint {
    flex-basis: 100%;
    font-size: 0.75rem;
}

/* Submitted-times list inside the "view availability" modal. */
.dc-times-list {
    list-style: none;
    margin: 0.75rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.dc-times-item {
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-2, rgba(255, 255, 255, 0.03));
    color: var(--text);
    font-size: 0.9rem;
    font-variant-numeric: tabular-nums;
}

/* ---------- Next-meeting banner ---------- */

.dc-next-meeting-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    text-align: left;
    padding: 0.9rem 1.1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-mid);
    background: rgba(235, 209, 161, 0.08);
    color: inherit;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.dc-next-meeting-banner:hover {
    border-color: var(--gold);
    background: rgba(235, 209, 161, 0.14);
}

.dc-next-meeting-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    flex: 1;
    min-width: 0;
}

.dc-next-meeting-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--gold-light);
}

.dc-next-meeting-title {
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--text);
}

.dc-next-meeting-meta {
    font-size: 0.84rem;
    color: var(--text-mid);
}

.dc-next-meeting-cta {
    flex-shrink: 0;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--gold-light);
}

/* ---------- Tabs ---------- */

.dc-tabs {
    display: flex;
    gap: 0.25rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.dc-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    color: var(--text-mid);
    font-size: 0.92rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.dc-tab:hover {
    color: var(--text);
}

.dc-tab--active {
    color: var(--gold-light);
    border-bottom-color: var(--gold);
}

.dc-tab-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.dc-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.4rem;
    border-radius: 999px;
    background: rgba(235, 209, 161, 0.1);
    color: var(--gold-light);
    border: 1px solid var(--border-mid);
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
}

/* ---------- Pending chat block ---------- */

.dc-pending-chat {
    border: 1px solid var(--border);
    border-left: 3px solid var(--border-mid);
    border-radius: 10px;
    background-color: rgba(235, 209, 161, 0.03);
    padding: 1.25rem 1.25rem 1.4rem;
    margin-bottom: 1.75rem;
}

.dc-pending-chat:last-child {
    margin-bottom: 0;
}

.dc-pending-chat > .dc-session-header {
    border: none;
    background-color: transparent;
    padding-left: 0;
    padding-right: 0;
}

/* ---------- Fireside / session headers ---------- */

.dc-fireside-header,
.dc-session-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.dc-fireside-header h2,
.dc-session-header h2 {
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

.dc-fireside-header p,
.dc-session-header p {
    margin: 0.2rem 0 0;
    font-size: 0.84rem;
    color: var(--text-mid);
}

.dc-flame-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(235, 209, 161, 0.1);
    border: 1px solid var(--border-mid);
    color: var(--gold);
}

.dc-flame-icon svg {
    width: 20px;
    height: 20px;
}

.dc-session-meta {
    flex: 1;
    min-width: 0;
}

.dc-session-aside {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.dc-future-row-actions {
    display: flex;
    gap: 0.5rem;
}

/* Future-session card: top-align the columns so Join/Copy sit top-right and the manage actions
   sit under the timeslot description on the left. */
.dc-session-header--future {
    align-items: flex-start;
}

.dc-future-row-actions--meta {
    margin-top: 0.85rem;
}

/* ---------- Group labels ---------- */

.dc-group-label {
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-mid);
    margin: 1.5rem 0 0.75rem;
}

.dc-group-label--row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0;
}

/* ---------- Attendee list ---------- */

.dc-attendee-list {
    display: flex;
    flex-direction: column;
}

.dc-attendee-row {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.25rem;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
}

.dc-attendee-row:last-child {
    border-bottom: none;
}

.dc-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg3);
    border: 1px solid var(--border);
    color: var(--text-mid);
    font-size: 0.72rem;
    font-weight: 600;
}

.dc-attendee-name {
    color: var(--text);
    font-size: 0.92rem;
}

.dc-badge-group {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* ---------- Slot grid ---------- */

.dc-slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.dc-slot-card {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 1rem 1.1rem;
    text-align: left;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-family: inherit;
}

.dc-slot-card:hover {
    border-color: var(--border-mid);
    background: var(--bg3);
}

.dc-slot-card--selected {
    border-color: var(--gold);
    background: rgba(235, 209, 161, 0.08);
    box-shadow: 0 0 0 3px rgba(235, 209, 161, 0.15);
}

.dc-slot-date {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
}

.dc-slot-meta {
    font-size: 0.82rem;
    color: var(--text-mid);
}

/* ---------- Actions ---------- */

.dc-fireside-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

.dc-action-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

@media (max-width: 560px) {
    .dc-action-row {
        grid-template-columns: 1fr;
    }
}

/* ---------- Insights ---------- */

.dc-insight-summary {
    margin: 0 0 1.25rem;
    color: var(--text-mid);
    font-size: 0.92rem;
    line-height: 1.55;
}

.dc-insight-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dc-insight-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    align-items: start;
    color: var(--text);
    font-size: 0.9rem;
    line-height: 1.55;
}

.dc-insight-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 0.45rem;
    flex-shrink: 0;
}

.dc-insight-dot--green {
    background: var(--green);
    box-shadow: 0 0 6px var(--green);
}

.dc-insight-dot--amber {
    background: var(--amber);
    box-shadow: 0 0 6px var(--amber);
}

.dc-insight-dot--blue {
    background: var(--blue);
    box-shadow: 0 0 6px var(--blue);
}

.dc-insight-dot--red {
    background: var(--red);
    box-shadow: 0 0 6px var(--red);
}

/* ── Agenda input + line (P4 req 2d) ───────────────────────────────── */
.dc-fireside-console .dc-input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.5rem 0.7rem;
    /* Raised (--bg4) rather than --bg3 so fields read as inputs, distinct from the darker cards/panels. */
    background: var(--bg4);
    border: 1px solid var(--border-mid);
    border-radius: 8px;
    color: var(--text);
    font-size: 0.85rem;
    font-family: inherit;
    /* Render the native date/time controls (and their picker icons) light on our dark inputs. */
    color-scheme: dark;
}

.dc-fireside-console .dc-input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(235, 209, 161, 0.18);
}

.dc-fireside-console .dc-input::placeholder {
    color: var(--text-dim);
}

.dc-fireside-console .dc-agenda-line {
    color: var(--gold-light);
    font-size: 0.8rem;
    margin: 0.15rem 0;
}

/* ── Past Sessions & Insights (P6): one block per completed session ─────────────── */
.dc-fireside-console .dc-past-session {
    margin-bottom: 1.25rem;
}

/* ── Availability page brand header + footer ───────────────────────────────────── */
.dc-fireside-console .dc-avail-brandbar {
    display: flex;
    justify-content: center;
    padding: 0.25rem 0 1.5rem;
}

.dc-fireside-console .dc-avail-logo {
    height: 40px;
    width: auto;
}

.dc-fireside-console .dc-avail-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 2.5rem;
    padding: 1.25rem;
    border-top: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 0.78rem;
    text-align: center;
}

.dc-fireside-console .dc-avail-footer-logo {
    height: 18px;
    width: auto;
    opacity: 0.8;
}

/* ============================================================================
   Availability submission UI (per-chat) — form panel, voice panel, conflicts,
   list, empty state, and the withdraw modal. Navy/gold tokens as above.
   ============================================================================ */

/* ---------- Card footer + button icon ---------- */

.dc-card-footer {
    padding: 0.9rem 1.25rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.6rem;
}

.dc-btn-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

/* ---------- Header action clusters ---------- */

.dc-availability-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.dc-availability-row-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.4rem;
}

/* Always-visible list-mode action block: Pick A Date / Time · OR · Speak Availability. */
.dc-fireside-console .dc-avail-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    max-width: 340px;
    margin: 1rem auto;
}

.dc-fireside-console .dc-avail-or {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--text-dim);
}

/* ---------- Fields ---------- */

.dc-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1rem;
    flex: 1 1 0;
    min-width: 0;
}

.dc-field:last-child {
    margin-bottom: 0;
}

.dc-field-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}

/* Keep all three fields (Date/Start/End) baseline-aligned in a row: the last field's
   zeroed bottom margin combined with align-items:flex-end otherwise pushed End down. */
.dc-fireside-console .dc-field-row .dc-field {
    margin-bottom: 0;
}

.dc-field-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-mid);
    letter-spacing: 0.02em;
}

.dc-field-hint {
    font-size: 0.78rem;
    color: var(--text-dim);
}

/* ---------- Textarea (server-transcribed availability) ---------- */

.dc-fireside-console .dc-textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 0.6rem 0.7rem;
    background: var(--bg3);
    border: 1px solid var(--border-mid);
    border-radius: 8px;
    color: var(--text);
    font-size: 0.85rem;
    font-family: inherit;
    resize: vertical;
}

.dc-fireside-console .dc-textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(235, 209, 161, 0.18);
}

.dc-fireside-console .dc-textarea::placeholder {
    color: var(--text-dim);
}

/* ---------- Voice controls ---------- */

.dc-voice-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.dc-voice-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.6;
}

.dc-voice-dot--on {
    opacity: 1;
    box-shadow: 0 0 6px currentColor;
    animation: dc-voice-pulse 1.2s ease-in-out infinite;
}

@keyframes dc-voice-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.35); }
}

/* ---------- Conflict list ---------- */

.dc-conflict-title {
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.dc-conflict-list {
    margin: 0;
    padding-left: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* ---------- Empty state ---------- */

.dc-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    padding: 2.5rem 1.5rem;
    background: var(--bg2);
    border: 1px dashed var(--border-mid);
    border-radius: 10px;
}

.dc-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--bg3);
    color: var(--gold);
    margin-bottom: 0.25rem;
}

.dc-empty h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

.dc-empty p {
    color: var(--text-mid);
    font-size: 0.85rem;
    margin: 0 0 0.5rem;
    max-width: 32rem;
}

/* ---------- Withdraw modal ---------- */

.dc-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 25, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 1000;
}

.dc-modal {
    background: var(--bg2);
    border: 1px solid var(--border-mid);
    border-radius: 12px;
    width: 100%;
    max-width: 30rem;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

/* Wider modal for the availability panels (date/time inputs need room). */
.dc-modal--wide {
    max-width: 40rem;
}

.dc-modal--wide .dc-modal-body {
    max-height: 72vh;
    overflow-y: auto;
}

.dc-modal-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

.dc-modal-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

.dc-modal-body {
    padding: 1.25rem;
    color: var(--text-mid);
    font-size: 0.88rem;
}

.dc-modal-body p {
    margin: 0 0 0.6rem;
}

.dc-modal-body p:last-child {
    margin-bottom: 0;
}

.dc-modal-footer {
    padding: 0.9rem 1.25rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.6rem;
}

.dc-mono {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    color: var(--gold-light);
}

/* ── Pre-call reminder pop-up ─────────────────────────────────────────────── */
/* Fixed card, top-center, above the floating dock — pops ~2 min before a call. */
.dc-reminder {
    position: fixed;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4100;
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    width: min(30rem, 92vw);
    padding: 1rem 1.15rem;
    background: var(--surface, #141b2d);
    border: 1px solid var(--gold, #c8a24a);
    border-radius: 0.75rem;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.5);
    animation: dc-reminder-in 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes dc-reminder-in {
    from {
        opacity: 0;
        transform: translate(-50%, -14px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.dc-reminder-icon {
    font-size: 1.5rem;
    line-height: 1.4;
}

.dc-reminder-main {
    flex: 1;
    min-width: 0;
}

.dc-reminder-heading {
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gold-light, #e7c877);
    margin-bottom: 0.15rem;
}

.dc-reminder-name {
    font-weight: 600;
    font-size: 1.02rem;
    color: var(--text, #f4f6fb);
    margin-bottom: 0.15rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dc-reminder-when {
    font-size: 0.85rem;
    color: var(--muted, #9aa4bd);
    margin-bottom: 0.7rem;
}

.dc-reminder-actions {
    display: flex;
    gap: 0.5rem;
}

/* ── Declined invitations (Past Sessions & Insights) ──────────────────────── */
.dc-decline-list {
    list-style: none;
    margin: 0.4rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.dc-decline-item {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.5rem 0.7rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
    border-radius: 0.5rem;
}

.dc-decline-name {
    font-weight: 600;
    color: var(--text, #f4f6fb);
}

.dc-decline-reason {
    color: var(--muted, #9aa4bd);
    font-size: 0.9rem;
}

.dc-decline-reason::before {
    content: "— ";
    color: var(--muted, #9aa4bd);
}

/* ── Management presentation deck ─────────────────────────────────────────── */
.dc-deck-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.dc-deck-icon {
    font-size: 1.8rem;
    line-height: 1;
}

.dc-deck-name {
    font-weight: 600;
    color: var(--text, #f4f6fb);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dc-deck-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.dc-upload-zone {
    border: 1px dashed var(--border, rgba(255, 255, 255, 0.18));
    border-radius: 0.6rem;
    padding: 1rem 1.1rem;
    background: rgba(255, 255, 255, 0.02);
}

/* Full-width "Ask Nova" action. */
.dc-btn--nova {
    background: linear-gradient(135deg, #3d61b1, #2563eb);
    color: #fff;
    border: none;
    font-weight: 600;
}

.dc-btn--nova:hover:not(:disabled) {
    filter: brightness(1.06);
}

/* Shared question rows. */
.dc-question-row {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.7rem 0.85rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
    border-radius: 0.55rem;
}

.dc-question-text {
    color: var(--text, #f4f6fb);
    line-height: 1.45;
}

.dc-badge--nova-chip {
    background: rgba(61, 97, 177, 0.18);
    border: 1px solid rgba(96, 165, 250, 0.5);
    color: #93b4f5;
}

/* ── Inline transcript viewer ─────────────────────────────────────────────── */
.dc-transcript-text {
    margin: 0;
    max-height: 60vh;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.86rem;
    line-height: 1.5;
    color: var(--text, #f4f6fb);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
    border-radius: 0.5rem;
    padding: 0.9rem 1rem;
}

/* ---------- Transcript folder toggles and dialogs (keyboard + screen-reader access) ---------- */

.dc-folder-toggle {
    width: 100%;
    text-align: left;
    font: inherit;
    color: inherit;
    cursor: pointer;
}

.dc-folder-toggle:focus-visible,
.dc-modal:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.dc-folder-toggle .dc-session-meta {
    display: flex;
    flex-direction: column;
}

.dc-folder-heading {
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--text);
}

.dc-folder-sub {
    margin-top: 0.2rem;
    font-size: 0.84rem;
    color: var(--text-mid);
}

.dc-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
