/* Deal Workspace (investor deal pages) design system, from the design handoff "Deal Workspace" (2026-10-19). Shared by
   the Overview, One Pager, Data Room, Due Diligence, Investor Memo and Ready to Invest pages and DealSubNav (the
   shell). Every class is prefixed dw- so it can't collide with a page's own styles.

   Fonts: Outfit for titles, DM Sans for UI, JetBrains Mono for every number. Buttons: gold primary, brown secondary,
   an outline red for Pass, and blue text links. */

/* ── Page ── */
.app-shell:has(.dw-page) {
    background: radial-gradient(900px 500px at 85% 0%, #0d2148 0%, rgba(7, 22, 46, 0) 60%), linear-gradient(180deg, #07122a 0%, #050a18 60%, #04070f 100%);
}

.dw-page {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 1.6vw, 22px);
    min-width: 0;
    padding: clamp(14px, 2vw, 24px) 0 110px;
    font-family: 'DM Sans', Helvetica, Arial, sans-serif;
    color: #e7eaf1;
    color-scheme: dark;
}
/* The One Pager and Investor Memo keep their report content as it was (only the area above it is redesigned), so the
   wrapper hands its font and color back to the app's; the shell, notices and footer set their own. */
.dw-page.dw-onepager,
.dw-page.dw-memo {
    gap: 0;
    font-family: inherit;
    color: inherit;
}
/* No flex gap there either (margins don't collapse in a flex column, so it would change the report's spacing): the
   blocks this redesign adds carry their own spacing instead. */
.dw-onepager > .dw-shell,
.dw-memo > .dw-shell,
.dw-onepager > .dw-op-notice {
    margin-bottom: clamp(16px, 1.6vw, 22px);
}
.dw-onepager > .dw-footer,
.dw-memo > .dw-footer {
    margin-top: clamp(16px, 1.6vw, 22px);
}
.dw-page *,
.dw-shell *,
.dw-footer * {
    box-sizing: border-box;
}
/* Undo the app's global heading case and tracking on the workspace's own headings only, never inside a page's report
   content (the One Pager, Investor Memo and Due Diligence report bodies keep their styles). */
.dw-shell :is(h1, h2, h3, p),
.dw-sec-head :is(h2, h3),
.dw-info :is(h2, h3, p),
.dw-footer p {
    letter-spacing: 0;
    text-transform: none;
}
.dw-mono {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.dw-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ── Shell: company block and stage title row (DealSubNav) ── */
.dw-shell {
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 1.6vw, 22px);
    min-width: 0;
    font-family: 'DM Sans', Helvetica, Arial, sans-serif;
}
.dw-company {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}
.dw-back {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    font-size: 14px;
    font-weight: 700;
    color: #8fb2ff;
    text-decoration: none;
}
.dw-back:hover {
    color: #b8ceff;
    text-decoration: underline;
}
.dw-shell .dw-h1 {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.1;
    letter-spacing: 0;
    text-transform: none;
    color: #fff;
    overflow-wrap: anywhere;
}
.dw-dba {
    font-weight: 600;
    font-size: clamp(16px, 1.8vw, 24px);
    color: #aab3c8;
    overflow-wrap: anywhere;
}
.dw-h1-placeholder {
    display: block;
    height: clamp(31px, 3.3vw, 44px);
    width: min(420px, 70%);
    border-radius: 8px;
    background: #0e1529;
}
.dw-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.dw-badge {
    padding: 4px 10px;
    border: 1px solid;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    max-width: 100%;
    overflow-wrap: anywhere;
}
.dw-badge--blue {
    background: #16224a;
    border-color: #2a3760;
    color: #8fb2ff;
}
.dw-badge--purple {
    background: #241c40;
    border-color: #4a3a85;
    color: #b39cf5;
}
.dw-badge--gold {
    background: #2a1f0c;
    border-color: #5a4317;
    color: #f0c987;
}
.dw-badge--green {
    background: #12301f;
    border-color: #23573a;
    color: #7ee3ae;
    font-size: 12px;
    letter-spacing: 0.08em;
    padding: 5px 12px;
}

.dw-stage-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 14px;
    flex-wrap: wrap;
}
.dw-stage-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1 1 420px;
    min-width: 0;
}
.dw-eyebrow {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.26em;
    color: #E3B651;
}
.dw-shell .dw-h2 {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: clamp(24px, 2.4vw, 32px);
    line-height: 1.15;
    letter-spacing: 0;
    text-transform: none;
    color: #fff;
}
.dw-shell .dw-stage-desc {
    margin: 0;
    max-width: 760px;
    font-size: 15px;
    line-height: 1.5;
    color: #aab3c8;
    text-wrap: pretty;
}
.dw-stage-aside {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    flex: 0 1 auto;
    min-width: 0;
}

/* ── Footer stage nav ── */
.dw-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 18px;
    border-top: 1px solid #1a2240;
    font-family: 'DM Sans', Helvetica, Arial, sans-serif;
}
.dw-footer-next {
    margin-left: auto;
}

/* ── Buttons ── */
.dw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 10px;
    font-family: 'DM Sans', Helvetica, Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, filter 0.15s;
}
.dw-btn:focus-visible,
.dw-link:focus-visible,
.dw-back:focus-visible {
    outline: 3px solid #d3edff;
    outline-offset: 3px;
}
.dw-btn:disabled,
.dw-btn[aria-disabled="true"] {
    opacity: 0.55;
    cursor: not-allowed;
}
.dw-btn-gold {
    border: none;
    background: linear-gradient(180deg, #FFD76B, #E3B651);
    box-shadow: 0 0 14px rgba(255, 215, 107, 0.3);
    color: #1a1204;
    font-weight: 800;
}
.dw-btn-gold:hover:not(:disabled) {
    filter: brightness(1.06);
    color: #1a1204;
    text-decoration: none;
}
.dw-btn-brown {
    border: 1px solid #5a4317;
    background: #33250e;
    color: #f0c987;
}
.dw-btn-brown:hover:not(:disabled) {
    border-color: #E3B651;
    color: #f0c987;
    text-decoration: none;
}
.dw-btn-danger {
    border: 1.5px solid #8a2f3c;
    background: transparent;
    color: #f5a3a0;
}
.dw-btn-danger:hover:not(:disabled) {
    background: #2a1218;
    color: #f5a3a0;
}
/* Compact secondary (Refresh scores, Open, My notes). */
.dw-btn-sm {
    min-height: 40px;
    padding: 0 14px;
    border-radius: 9px;
    font-size: 13px;
}
/* Muted outline (Open on an empty folder). */
.dw-btn-muted {
    border: 1px solid #262f45;
    background: transparent;
    color: #8b93a8;
}
.dw-btn-muted:hover:not(:disabled) {
    border-color: #3a4566;
    color: #c3cada;
}
.dw-link {
    padding: 4px 0;
    border: none;
    background: none;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    color: #8fb2ff;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}
.dw-link:hover {
    color: #b8ceff;
    text-decoration: underline;
}

/* ── Gold-header section: the main container on every stage ── */
.dw-sec {
    min-width: 0;
    border: 1px solid rgba(227, 182, 81, 0.55);
    border-radius: 16px;
    overflow: hidden;
    background: #0a1020;
}
.dw-sec-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px clamp(14px, 1.6vw, 22px);
    background: linear-gradient(180deg, #f3d27e, #d9a843);
}
.dw-page .dw-sec-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: clamp(19px, 1.6vw, 22px);
    line-height: 1.25;
    color: #1a1204;
}
.dw-sec-pill {
    flex: none;
    padding: 5px 11px;
    border: none;
    border-radius: 999px;
    background: #1a1204;
    color: #f0cd7e;
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
}
a.dw-sec-pill,
button.dw-sec-pill {
    cursor: pointer;
}
a.dw-sec-pill:hover,
button.dw-sec-pill:hover {
    color: #ffe49a;
    text-decoration: none;
}
.dw-sec-pill:focus-visible {
    outline: 2px solid #1a1204;
    outline-offset: 2px;
}
/* An action in a gold section header (it opens something: a modal, a page, more rows): the house brown button, sized
   for the header row. Plain labels stay dw-sec-pill. */
.dw-sec-btn {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid #5a4317;
    border-radius: 8px;
    background: #33250e;
    color: #f0c987;
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.dw-sec-btn:hover {
    border-color: #1a1204;
    background: #3d2c10;
    color: #ffe49a;
    text-decoration: none;
}
.dw-sec-btn:focus-visible {
    outline: 2px solid #1a1204;
    outline-offset: 2px;
}
.dw-sec-link {
    font-size: 13px;
    font-weight: 800;
    color: #1a1204;
    text-decoration: underline;
}
.dw-sec-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: clamp(12px, 1.6vw, 22px);
}
.dw-live-dot {
    flex: none;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #1f8f55;
    box-shadow: 0 0 0 3px rgba(31, 143, 85, 0.25);
}

/* ── Inner cards, labels, pills ── */
.dw-card {
    border: 1px solid #1f2740;
    border-radius: 12px;
    background: linear-gradient(180deg, #0e1529, #0a0f1f);
}
.dw-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #7d879e;
}
.dw-muted {
    color: #8b93a8;
}
.dw-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 9px;
    border: 1px solid;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    max-width: 100%;
    overflow-wrap: anywhere;
}
.dw-pill--green { background: #12301f; border-color: #23573a; color: #7ee3ae; }
.dw-pill--blue { background: #16224a; border-color: #2a3760; color: #8fb2ff; }
.dw-pill--gold { background: #33250e; border-color: #5a4317; color: #f0c987; }
.dw-pill--purple { background: #241c40; border-color: #4a3a85; color: #b39cf5; }
.dw-pill--red { background: #2a1218; border-color: #6a2b38; color: #f5a3a0; }
.dw-pill--grey { background: #121a30; border-color: #262f45; color: #aab3c8; }

/* ── Collapsible info row ("How investing works…", "How due diligence works") ── */
.dw-info {
    border: 1px solid rgba(227, 182, 81, 0.55);
    border-radius: 14px;
    overflow: hidden;
    background: #0a1020;
}
.dw-info-head {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 14px 18px;
    border: none;
    background: transparent;
    font-family: 'DM Sans', sans-serif;
    text-align: left;
    cursor: pointer;
}
.dw-info-head:hover {
    background: #0f1630;
}
.dw-info-head:focus-visible {
    outline: 3px solid #d3edff;
    outline-offset: -3px;
}
.dw-info-i {
    flex: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #FFD76B, #E3B651);
    color: #1a1204;
    font-size: 14px;
    font-weight: 800;
}
.dw-info-title {
    flex: 1;
    min-width: 0;
    font-family: 'Outfit', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #FFD76B;
}
.dw-info-toggle {
    flex: none;
    padding: 7px 14px;
    border: 1px solid #5a4317;
    border-radius: 999px;
    background: #33250e;
    color: #f0c987;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}
.dw-info-body {
    padding: 14px 18px 18px;
    border-top: 1px solid #1f2740;
    font-size: 14px;
    line-height: 1.6;
    color: #aab3c8;
    text-wrap: pretty;
}

/* ── Two-column grid (stacks on narrow screens) ── */
.dw-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr));
    gap: clamp(16px, 1.6vw, 22px);
    align-items: start;
}
.dw-col {
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 1.6vw, 22px);
    min-width: 0;
}

/* ── List rows inside a section (Due Diligence, folders, transcripts, activity) ── */
.dw-rows {
    display: flex;
    flex-direction: column;
    padding: 4px 8px 8px;
}
.dw-row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 62px;
    padding: 10px;
    border-bottom: 1px solid #1a2240;
    color: inherit;
    text-decoration: none;
}
.dw-row:last-child {
    border-bottom: none;
}
a.dw-row:hover,
button.dw-row:hover {
    background: #0f1630;
    text-decoration: none;
    color: inherit;
}
.dw-row-icon {
    flex: none;
    width: 38px;
    height: 38px;
    border: 1px solid #262f45;
    border-radius: 9px;
    background: #121a30;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dw-row-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.dw-row-name {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    overflow-wrap: anywhere;
}
.dw-row-sub {
    font-size: 12px;
    color: #8b93a8;
}

/* ── Notices (Confidential, security) ── */
.dw-notice {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 16px;
    border: 1px solid;
    border-radius: 12px;
    font-family: 'DM Sans', Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}
.dw-notice svg {
    flex: none;
    margin-top: 2px;
}
.dw-notice--gold {
    background: #2a1f0c;
    border-color: #5a4317;
    color: #f0c987;
}
.dw-notice--green {
    background: #0b1f1a;
    border-color: #1f5a44;
    color: #cfeee0;
}
.dw-notice--green strong {
    color: #fff;
}

/* ══ Overview (Pages/Investor/DealDetail.razor) ══ */
/* The older page wash would sit over the workspace background. */
.dw-page.investor-dealdetail-page {
    background: none;
}
.dw-ov-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.dw-ov-funded {
    align-items: center;
    flex-wrap: wrap;
}
.dw-ov-empty {
    margin: 0;
    padding: 14px clamp(12px, 1.6vw, 22px);
    font-size: 14px;
    line-height: 1.55;
    color: #aab3c8;
}
.dw-ov-empty strong {
    color: #e7eaf1;
}

/* Deal Snapshot */
.dw-ov-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 10px;
}
.dw-ov-tile {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px;
    border-top: 2px solid #5b8def;
    min-width: 0;
}
.dw-ov-tile-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #aab3c8;
}
.dw-ov-tile-value {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.1;
    overflow-wrap: anywhere;
}
.dw-ov-tile-note {
    font-size: 13px;
    color: #8b93a8;
}
.dw-ov-missing {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border: 1px dashed #262f45;
    border-radius: 10px;
    background: #0c1120;
}
.dw-ov-missing-label {
    padding-top: 5px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #E3B651;
    white-space: nowrap;
}
.dw-ov-chips {
    flex: 1 1 260px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.dw-ov-chip {
    padding: 4px 10px;
    border: 1px solid #262f45;
    border-radius: 999px;
    background: #121a30;
    font-size: 12px;
    color: #aab3c8;
    white-space: nowrap;
}

/* Due Diligence summary */
.dw-ov-ddprog {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px clamp(12px, 1.6vw, 22px) 4px;
}
.dw-ov-ddprog-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #f0c987;
}
.dw-ov-bar {
    height: 6px;
    border-radius: 999px;
    background: #1f2740;
    overflow: hidden;
}
.dw-ov-bar > div {
    height: 100%;
    background: linear-gradient(90deg, #4fd18b, #E3B651);
}
.dw-ov-ddrow {
    min-height: 60px;
}
.dw-ov-ddrow.is-dim {
    opacity: 0.6;
}
.dw-ov-dot {
    flex: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #6F7C97;
}
.dw-ov-dot.tone-good { background: #4fd18b; }
.dw-ov-dot.tone-active { background: #5b8def; }
.dw-ov-dot.tone-attention { background: #E3B651; }
.dw-ov-dot.tone-phase2 { background: #8b6fe0; }
.dw-ov-status {
    font-size: 13px;
    color: #aab3c8;
}
.dw-ov-status.tone-good { color: #7ee3ae; }
.dw-ov-status.tone-active { color: #8fb2ff; }
.dw-ov-status.tone-attention { color: #f0c987; }
.dw-ov-chev {
    flex: none;
    font-size: 18px;
    color: #6F7C97;
}

/* Scored Assessments */
.dw-ov-scorehead {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.dw-ov-stale {
    padding: 8px 12px;
    border: 1px solid #5a4317;
    border-radius: 9px;
    background: #2a1f0c;
    font-size: 13px;
    color: #f0c987;
}
.dw-ov-score {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 12px;
    row-gap: 6px;
    padding: 10px 0;
    border-bottom: 1px solid #1a2240;
}
.dw-ov-score-icon {
    flex: none;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #262f45;
    border-radius: 8px;
    background: #121a30;
}
.dw-ov-score-icon :is(svg) {
    width: 16px;
    height: 16px;
}
.dw-ov-score-name {
    flex: 1 1 140px;
    min-width: 0;
    font-size: 15px;
    color: #e7eaf1;
}
.dw-ov-score-right {
    flex: 1 1 220px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}
.dw-ov-score-bar {
    flex: 1;
    max-width: 140px;
    height: 5px;
    border-radius: 999px;
    background: #1f2740;
    overflow: hidden;
}
.dw-ov-score-bar > span {
    display: block;
    height: 100%;
}
.dw-ov-score-value {
    font-size: 16px;
    font-weight: 800;
}
.dw-ov-band {
    flex: none;
    width: 96px;
    padding: 4px 0;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-align: center;
    text-transform: uppercase;
}
.dw-ov-disclaimer {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: #7d879e;
}

/* Funding & Investors */
.dw-ov-fundhead {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 10px;
}
.dw-ov-fundfig {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.dw-ov-fundfig--end {
    align-items: flex-end;
}
.dw-ov-fundval {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
}
.dw-ov-fundval.is-empty {
    color: #4a536b;
}
.dw-ov-fundbar-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.dw-ov-fundbar {
    display: flex;
    height: 8px;
    border-radius: 999px;
    background: #1f2740;
    overflow: hidden;
}
.dw-ov-fundbar > span {
    height: 100%;
}
.dw-ov-fundscale {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #8b93a8;
}
.dw-ov-investors {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.dw-ov-person {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    min-width: 0;
}
.dw-ov-avatar {
    flex: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #16224a;
    color: #8fb2ff;
    font-size: 13px;
    font-weight: 800;
}

/* Founders & Management */
.dw-ov-founders {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
    gap: 8px;
    padding: 10px;
}

/* Due diligence locked */
.dw-ov-locked {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px clamp(14px, 1.6vw, 22px);
    border: 1px dashed #262f45;
    border-radius: 14px;
    background: #0c1120;
    font-size: 14px;
    line-height: 1.55;
    color: #aab3c8;
}
.dw-ov-locked-title {
    font-family: 'Outfit', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
}

/* Deal Activity */
.dw-ov-activity-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.dw-ov-feed {
    display: flex;
    flex-direction: column;
    padding: 4px clamp(12px, 1.6vw, 22px) 8px;
}
.dw-ov-feedrow {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #1a2240;
}
.dw-ov-feedrow:last-child {
    border-bottom: none;
}
.dw-ov-feeddot {
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.dw-ov-feedtext {
    flex: 1;
    min-width: 0;
    font-size: 15px;
    color: #e7eaf1;
    overflow-wrap: anywhere;
}
.dw-ov-feedwhen {
    flex: none;
    font-size: 13px;
    color: #8b93a8;
    white-space: nowrap;
}

/* A wrapper that only exists for the workspace layout; for any other viewer it drops out of the box tree. */
.dw-contents {
    display: contents;
}

/* ══ Data Room, investor view (Pages/Collaborate/Dataroom.razor) ══ */
.dw-dr-action {
    flex: 1 1 220px;
    max-width: 300px;
    min-height: 46px;
    font-size: 15px;
}
.dw-dr-folders {
    padding-bottom: 8px;
}
.dw-dr-folder {
    margin: 0 8px;
    border-bottom: 1px solid #1a2240;
}
.dw-dr-folder:last-child {
    border-bottom: none;
}
.dw-dr-folder > .dw-row {
    border-bottom: none;
}
.dw-dr-folder.is-open {
    background: #0c1326;
    border-radius: 10px;
}
.dw-page .dw-dr-name {
    margin: 0;
    font-family: inherit;
    line-height: 1.3;
}
.dw-dr-name:focus {
    outline: none;
}
.dw-dr-name:focus-visible {
    outline: 2px solid #8fb2ff;
    outline-offset: 2px;
}
.dw-dr-row.is-empty .dw-row-name {
    color: #aab3c8;
}
.dw-dr-row .dr-private-decl,
.dw-dr-row .dr-vault-use {
    display: block;
    margin: 2px 0 0;
    font-size: 12px;
}
.dw-dr-folder .dr-folder-body {
    margin: 0 10px !important;
    padding-bottom: 12px;
}
.dw-dr-intro {
    margin: 0;
    padding: 10px 14px 4px;
    font-size: 13px;
    line-height: 1.5;
    color: #8b93a8;
}
.dw-dr-transcripts {
    padding-top: 0;
}
.dw-dr-transcripts > div {
    border-bottom: 1px solid #1a2240;
}
.dw-dr-transcripts > div:empty {
    display: none;
}
.dw-dr-transcripts > div:last-child {
    border-bottom: none;
}
.dw-dr-transcripts .dw-row {
    border-bottom: none;
}
.dw-tr-icon {
    flex: none;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #262f45;
    border-radius: 50%;
    background: #121a30;
    color: #b39cf5;
    font-size: 15px;
}
.dw-row-name.is-muted {
    color: #aab3c8;
}
.dw-tr-zero {
    flex: none;
    font-size: 12px;
    color: #6F7C97;
    white-space: nowrap;
}
.dw-dr-request {
    align-items: flex-start;
}
.dw-dr-none {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 24px 18px;
    text-align: center;
    font-size: 14px;
    color: #8b93a8;
}
.dw-dr-none-title {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}
.dw-dr-activity .dw-sec-body {
    overflow-x: auto;
}
.dw-dr-compliance {
    flex-direction: column;
    gap: 6px;
}
.dw-page .dw-dr-compliance h3 {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #f0c987;
}
.dw-dr-compliance ul {
    margin: 0;
    padding-left: 20px;
}

/* ══ Due Diligence, investor view (Pages/Collaborate/Diligence.razor) ══
   The sections, report cards and their bodies are the page's own; these rules restyle the frame around them. */
.dw-dd .card-grid {
    display: block;
}
/* Generation status and admin notices above the areas card. */
.dw-dd > .card.card-compact {
    margin: 0 !important;
    border-radius: 12px;
}

/* Diligence areas */
.dw-dd-areas-label {
    color: #E3B651;
}
.dw-dd-areas {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: clamp(12px, 1.6vw, 20px);
    border: 1px solid #1f2740;
    border-radius: 16px;
    background: #0a1020;
}
.dw-dd-areas-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.dw-dd-areas-head > :last-child {
    flex: 0 1 auto;
    min-width: 0;
}
.dw-dd-area-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(46%, 210px), 1fr));
    gap: 8px;
}
.dw-dd-area {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    min-width: 0;
    padding: 10px 12px;
    border: 1.5px solid #1f2740;
    border-radius: 12px;
    background: #0c1120;
    font-family: 'DM Sans', sans-serif;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.dw-dd-area:hover {
    border-color: #2a3760;
    background: #0f1630;
}
.dw-dd-area.is-active {
    border-color: #E3B651;
    background: #0f1838;
    box-shadow: 0 0 12px rgba(255, 215, 107, 0.2);
}
.dw-dd-area:focus-visible {
    outline: 3px solid #d3edff;
    outline-offset: 2px;
}
/* Fireside Chat held back for Phase 2: dimmed, with the pill as its tag. */
.dw-dd-area:has(.plf-pill) {
    opacity: 0.6;
}
.dw-dd-area .plf-pill {
    flex: none;
    margin: 0;
    padding: 2px 6px;
    border-radius: 999px;
    background: #241c40;
    color: #b39cf5;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.dw-dd-area-icon {
    flex: none;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #121a30;
    font-size: 13px;
    font-weight: 800;
}
.dw-dd-area-name {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.25;
    color: #c3cada;
}
.dw-dd-area.is-active .dw-dd-area-name {
    font-weight: 700;
    color: #fff;
}

/* The selected area: a gold-header section built from the page's own content-section and its card-header. */
.dw-dd .content-section.active {
    overflow: hidden;
    padding: 0 clamp(14px, 1.6vw, 22px) clamp(14px, 1.6vw, 22px);
    border: 1px solid rgba(227, 182, 81, 0.55);
    border-radius: 16px;
    background: #0a1020;
}
/* The !important declarations beat the global phone rules in admin-interviewscore-only.css (max-width: 100% on every
   element, and a centered, stacked .card-header), so the header overhangs the section padding and stays left-aligned. */
.dw-dd .content-section > .card-header:first-child {
    display: flex;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px !important;
    max-width: none !important;
    text-align: left !important;
    margin: 0 calc(-1 * clamp(14px, 1.6vw, 22px)) 14px !important;
    padding: 12px clamp(14px, 1.6vw, 22px) !important;
    background: linear-gradient(180deg, #f3d27e, #d9a843);
}
.dw-dd .content-section > .card-header:first-child h2 {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    font-size: clamp(19px, 1.6vw, 22px) !important;
    font-weight: 700;
    line-height: 1.25;
    color: #1a1204;
}
.dw-dd .content-section > .card-header:first-child p {
    flex-basis: 100%;
    color: #3a2a08 !important;
}
.dw-dd .content-section > .card-header:first-child :is(.badge-nova, .badge-status) {
    padding: 5px 11px;
    border: none;
    border-radius: 999px;
    background: #1a1204;
    color: #c9b6ff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
}

/* Report rows: one opens at a time (the page's ToggleFinReport). */
.dw-dd .fin-report-card {
    margin-bottom: 8px;
    border: 1px solid #1f2740;
    border-radius: 12px;
    background: linear-gradient(180deg, #0e1529, #0a0f1f);
}
.dw-dd .fin-report-card.fin-expanded {
    border-color: #5a4317;
}
.dw-dd .fin-report-hdr {
    gap: 12px;
    min-height: 60px;
    padding: 12px 14px;
    background: transparent;
}
.dw-dd .fin-report-hdr:hover {
    background: #121a30;
}
.dw-dd .fin-report-icon {
    border: 1px solid #262f45;
    background: #121a30 !important;
    font-size: 14px;
}
.dw-dd .fin-report-name {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}
.dw-dd .fin-report-desc {
    font-size: 13px;
    line-height: 1.4;
    color: #8b93a8;
}
.dw-dd .fin-chevron {
    font-size: 14px;
    color: #f0c987;
}
.dw-dd .fin-report-body {
    border-top-color: #1f2740;
}

/* Summary, re-run checkbox and My notes */
.dw-dd .dss-summary {
    padding: 0;
    border-left: none;
    background: none;
    font-size: 15px;
    line-height: 1.65;
    color: #d5dbe8;
    text-wrap: pretty;
}
.dw-dd .dss-actions {
    padding-top: 12px;
    border-top: 1px solid #1f2740;
}
.dw-dd .dss-integrate {
    align-items: center;
    min-height: 44px;
    font-size: 14px;
    color: #aab3c8;
}
.dw-dd .dss-integrate input {
    flex: none;
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: #E3B651;
}

/* Coming in 2027 */
.dw-dd .coming-2027-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    border: none;
}
.dw-dd .coming-2027-title {
    margin: 0;
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-align: left;
    color: #E3B651;
}
.dw-dd .coming-2027-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 10px;
}
.dw-dd .coming-2027-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    border: 1px dashed #3a4566;
    border-radius: 12px;
    background: #0a1020;
}
.dw-dd .coming-2027-card strong {
    font-size: 15px;
    font-weight: 700;
    color: #e7eaf1;
}
.dw-dd .coming-2027-card p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #8b93a8;
}

/* ══ One Pager, investor view (Pages/Investor/OnePager.razor): only the area above the report ══ */
.dw-op-notice {
    align-items: center;
    flex-wrap: wrap;
}
.dw-op-notice-text {
    flex: 1 1 320px;
    min-width: 0;
}
.dw-onepager .op-ack-banner {
    margin: 0 0 clamp(16px, 1.6vw, 22px);
}
.dw-onepager .op-portal-wrapper {
    margin-top: 0;
}

@media (prefers-reduced-motion: reduce) {
    .dw-btn,
    .dw-info-head {
        transition: none;
    }
}
@media (forced-colors: active) {
    .dw-sec-head,
    .dw-btn-gold,
    .dw-info-i {
        background: ButtonFace;
        color: ButtonText;
        border: 1px solid ButtonText;
    }
    .dw-page .dw-sec-title {
        color: ButtonText;
    }
}
