/* ============================================
   DOC MANAGEMENT — PROJECT-SPECIFIC COMPONENTS
   Shared article scaffolding (base type, layout, figures, code, TOC, tables,
   timeline, next-steps, theme toggle, toast, responsive) now lives in
   /design-system/article.css, linked before this file. Keep ONLY genuine
   DocManagement-specific styles here. DS tokens only — no hardcoded hex.
   ============================================ */


/* ========= DOC MANAGEMENT — SPECIFIC COMPONENTS =========
   All values use DS tokens only: --surface, --border, --primary, --red,
   --text-primary/secondary/bold, --font-*, --space-*, --radius-*.
   No hardcoded hex colours. Dark mode is handled automatically by
   colors_and_type.css token remapping.
   ================================================= */


/* ========== TOC ANCHOR OFFSET ==========
   Shared article.css applies scroll-margin-top to headings carrying the id
   (.article-body hN[id]). DocManagement puts the anchor id on the wrapping
   <section> instead, so it needs the same 110px buffer here — otherwise a
   clicked TOC link lands the heading flush against the top with no breathing
   room. Mirrors improving-adoption's behavior. */
.article-body section[id] {
    scroll-margin-top: 110px;
}


/* ========== EMBED SCALE (zoom-out) ==========
   Renders the iframe at a larger logical size, then visually scales it down
   inside a clipped frame, so the prototype shows more and reads less cramped.
   Tweak --embed-zoom (1 = full size, 0.6 = 60%). */
.embed-scale {
    --embed-zoom: 0.6;
    position: relative;
    width: 100%;
    height: 420px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    background: var(--background);
}
.embed-scale iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: calc(100% / var(--embed-zoom));
    height: calc(100% / var(--embed-zoom));
    border: 0;
    transform: scale(var(--embed-zoom));
    transform-origin: 0 0;
}



/* ========== EMBED CHROME BAR ========== */
.embed-chrome {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 7px var(--space-md);
    background: var(--background-grey);
    border: 1px solid var(--border-light);
    border-bottom: 0;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-secondary);
}
.ec-dots { display: inline-flex; gap: 5px; flex-shrink: 0; }
.ec-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--border-light); display: block; }
.ec-route {
    flex: 1 1 auto;
    font-size: 11px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-secondary);
}
.ec-persona {
    font-size: 11px;
    font-weight: 600;
    color: var(--primary);
    border: 1px solid var(--border-light);
    border-radius: 99px;
    padding: 1px 9px;
    flex-shrink: 0;
    background: var(--background);
}
/* "Expand view" button — opens the embed's own URL full-screen in a new tab.
   Injected by the script at the end of index.html so the href always matches
   the iframe. Sits at the far right of the chrome bar. */
.ec-expand {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    margin-left: auto;
    padding: 3px 9px;
    font-family: var(--font-mono);
    font-size: 11px;
    line-height: 1;
    color: var(--text-secondary);
    background: var(--surface-raised);
    border: 1px solid var(--border);
    border-radius: 99px;
    text-decoration: none;
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.ec-expand svg { width: 12px; height: 12px; flex-shrink: 0; }
.ec-expand:hover {
    color: var(--text-primary);
    background: var(--gray-200);
    border-color: var(--border-strong);
}
/* Remove top border + top-radius from embed-scale when chrome sits above it */
.embed-chrome ~ .embed-scale {
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}


/* ========== TWO-UP EMBED LAYOUT ========== */
.embed-twoup {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin: var(--space-md) 0 var(--space-sm);
}
.embed-twoup > div { display: flex; flex-direction: column; }
.embed-twoup > div .embed-chrome ~ .embed-scale {
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    border-top: none;
    height: 360px;
}
@media (max-width: 700px) { .embed-twoup { grid-template-columns: 1fr; } }


/* ========== EMBED EXPAND MODAL ==========
   The "Expand" button opens the prototype here, on the same page, at full
   scale (no zoom-out). Built/controlled by the script at the end of index.html. */
.embed-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(12px, 4vw, 48px);
    opacity: 0;
    transition: opacity 0.18s ease;
}
.embed-modal[hidden] { display: none; }
.embed-modal.is-open { opacity: 1; }

.embed-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.embed-modal-dialog {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(1280px, 100%);
    height: min(860px, 100%);
    background: var(--background);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    transform: translateY(8px) scale(0.99);
    transition: transform 0.18s ease;
}
.embed-modal.is-open .embed-modal-dialog { transform: none; }

.embed-modal-chrome {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-shrink: 0;
    padding: 8px var(--space-md);
    background: var(--background-grey);
    border-bottom: 1px solid var(--border-light);
    font-family: var(--font-mono);
    color: var(--text-secondary);
}
.embed-modal-route {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
}
.embed-modal-newtab,
.embed-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 27px;
    height: 27px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    text-decoration: none;
    transition: color 0.15s ease, background-color 0.15s ease;
}
.embed-modal-newtab svg { width: 13px; height: 13px; }
.embed-modal-close { font-size: 15px; line-height: 1; }
.embed-modal-newtab:hover,
.embed-modal-close:hover {
    color: var(--text-primary);
    background: var(--gray-200);
}

.embed-modal-body {
    flex: 1 1 auto;
    min-height: 0;
    background: var(--background);
}
.embed-modal-frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (prefers-reduced-motion: reduce) {
    .embed-modal,
    .embed-modal-dialog { transition: none; }
}


/* ========== DIAGRAM PANEL ==========
   Subtle background card for inline SVG diagrams (e.g. the taxonomy figure). */
.diagram-bg {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl) var(--space-lg);
}


/* ========== PROTOTYPE MARGIN NOTE ==========
   Fixed annotation in the left gutter (mirrors the TOC on the right). Fades /
   slides in while any prototype embed is in view; dismissible for the session.
   Wide screens only (>=1200px, where the gutter has room); below that the
   inline .callout-border.proto-source remains the in-flow fallback. */
.proto-note {
    position: fixed;
    top: 50%;
    left: var(--space-lg);
    width: 236px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    z-index: 109;
    box-sizing: border-box;
    padding: var(--space-md);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.10);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-50%) translateX(-12px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    display: none;
}
.proto-note.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(-50%) translateX(0);
}
.proto-note-label {
    display: block;
    margin-bottom: var(--space-sm);
    font-family: var(--font-mono);
    font-size: var(--font-size-xs);
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--primary);
}
.proto-note-title {
    margin: 0 0 6px;
    padding-right: 18px; /* clear the close button */
    font-size: var(--font-size-sm);
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-primary);
}
.proto-note-text {
    margin: 0;
    font-size: var(--font-size-xs);
    line-height: 1.55;
    color: var(--text-secondary);
}
.proto-note-text + .proto-note-text { margin-top: var(--space-sm); }

/* Interactivity nudge — it isn't obvious the embeds are clickable. */
.proto-note-cta {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin: var(--space-md) 0 0;
    padding-top: var(--space-sm);
    border-top: 1px solid var(--border);
    font-size: var(--font-size-xs);
    font-weight: 600;
    line-height: 1.45;
    color: var(--primary);
}
.proto-note-cta svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    margin-top: 1px;
}
.proto-note-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.15s ease, background-color 0.15s ease;
}
.proto-note-close:hover {
    color: var(--text-primary);
    background: var(--gray-200);
}

/* Reveal in the left gutter only where there's room; swap out the inline
   callout there (but only once JS has activated the note). */
@media (min-width: 1240px) {
    .proto-note { display: block; }
    .has-proto-note .callout-border.proto-source { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .proto-note { transition: opacity 0.2s ease, visibility 0.2s; transform: translateY(-50%); }
    .proto-note.is-visible { transform: translateY(-50%); }
}


/* ========== ARTICLE TABLE ========== */
.article-table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-lg) 0;
    font-size: var(--font-size-sm);
    border: none;
    border-radius: var(--radius-md);
    overflow: hidden;
}
.article-table th,
.article-table td {
    text-align: left;
    padding: 0.75rem var(--space-md);
    vertical-align: top;
    line-height: 1.6;
    border-bottom: 1px solid var(--gray-100);
}
.article-table th {
    font-family: var(--font-sans);
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--text-primary);
}
.article-table td { color: var(--text-secondary); }
.article-table td.table-first-col { font-weight: 600; color: var(--text-primary); }
.article-table tr:last-child td { border-bottom: 0; }
.article-table .table-header { background-color: var(--gray-100); }
.article-table .table-first-col { background-color: var(--gray-50); }
.article-table .table-header .table-first-col { background-color: var(--gray-100); }
.cell-yes  { color: var(--primary); font-weight: 600; }
.cell-no   { color: var(--red);     font-weight: 600; }
.cell-mid  { color: var(--text-secondary); font-weight: 600; }
/* Highlights the recommended column with a neutral raised surface. --surface-raised
   is gray-100 in light and gray-300 in dark, so it sits a clearly visible step
   above the page in both themes, matching the token-driven base table styling. */
.cell-pick { background: var(--surface-raised); }

/* Confidence rating badges (research evidence table). The DS palette has no
   green/amber, so the traffic-light status hues are introduced HERE as named,
   theme-aware tokens (the one place raw hex lives — centralized, not inline).
   High = green, Moderate = amber, Low = the DS red. Pill backgrounds are
   color-mix tints of each foreground token, so they track light/dark. */
:root {
    --conf-high-fg: #1A7F37;    /* green — High     */
    --conf-mod-fg:  #9A6700;    /* amber — Moderate */
    --conf-low-fg:  var(--red); /* red   — Low      */
}
.conf {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 99px;
    font-size: var(--font-size-xs);
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
}
.conf-high { color: var(--conf-high-fg); background: color-mix(in srgb, var(--conf-high-fg) 14%, transparent); }
.conf-mod  { color: var(--conf-mod-fg);  background: color-mix(in srgb, var(--conf-mod-fg) 16%, transparent); }
.conf-low  { color: var(--conf-low-fg);  background: color-mix(in srgb, var(--conf-low-fg) 18%, transparent); font-weight: 700; }

/* Brighter green/amber for dark backgrounds (mirrors the DS dark remap pattern). */
@media (prefers-color-scheme: dark) {
    :root:not(.force-light) {
        --conf-high-fg: #3FB950;
        --conf-mod-fg:  #D29922;
    }
}
html.force-dark {
    --conf-high-fg: #3FB950;
    --conf-mod-fg:  #D29922;
}

/* Dark mode needs no table overrides: --gray-100 (header), --gray-50 (first
   column) and the cell border-bottoms all remap automatically via
   colors_and_type.css — the same token-driven approach the base design system
   uses, so tables keep their structure in both themes. */


/* ========== CLEAN LIST ========== */
ul.clean {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-xl);
}
ul.clean li {
    position: relative;
    padding-left: 22px;
    margin-bottom: var(--space-md);
    line-height: 1.6;
}
ul.clean li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 7px;
    height: 7px;
    background: #fff;
    border-radius: 50%;
}
ul.clean li:last-child { margin-bottom: 0; }


/* ========== FIGURE PLACEHOLDER ========== */
.fig-placeholder {
    border: 1.5px dashed var(--border-light);
    border-radius: var(--radius-md);
    background: var(--background-grey);
    aspect-ratio: 16/9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-xl);
    gap: var(--space-sm);
    margin: var(--space-xl) 0;
}
.ph-icon {
    font-family: var(--font-mono);
    font-size: var(--font-size-xs);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--primary);
}
.ph-cap {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    max-width: 400px;
    line-height: 1.5;
    margin: 0;
}
.ph-hint {
    font-family: var(--font-mono);
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    opacity: 0.6;
    margin: 0;
}


/* ========== MEDIA SKELETON LOADER ==========
   A figure gets .media-skeleton (shimmer placeholder) until its img/video
   fires load; then the media fades in. Driven by initSkeletonLoader() in
   index.html. Defined top-level here because article.css nests its copies
   under .article-video, so they don't reach this page's image figures. */
.media-skeleton {
    position: relative;
    background: linear-gradient(90deg,
        var(--background-grey) 25%,
        var(--surface) 37%,
        var(--background-grey) 63%);
    background-size: 200% 100%;
    animation: skeleton-shimmer var(--loop-shimmer, 1.5s) ease-in-out infinite;
    border-radius: var(--radius-md);
    min-height: 180px;
}
.media-loading-content { opacity: 0; }
.media-loaded-content  { opacity: 1; transition: opacity 0.4s ease-in; }


/* ========== CURRENT-STATE FRAGMENTATION INFOGRAPHIC ==========
   Card-grid built to match the improvingAdoption case study's
   "metric-comparison" component: grey rounded panel, centred stat cards
   with big display numbers, proportional bars that fill on scroll, and a
   red error callout. Theme-aware via DS tokens. */
.facts-fig {
    margin: var(--space-lg) 0 var(--space-xl);
    --fig-amber: #C98A00;
}
@media (prefers-color-scheme: dark) { .facts-fig { --fig-amber: #E6A93C; } }
html.force-light .facts-fig { --fig-amber: #C98A00; }
html.force-dark  .facts-fig { --fig-amber: #E6A93C; }

.frag-panel {
    background: var(--background-grey);
    border-radius: 12px;
    padding: 1.5rem;
}

/* header */
.frag-head {
    display: flex;
    align-items: baseline;
    gap: var(--space-md);
    flex-wrap: wrap;
    padding-bottom: 1.25rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
}
.frag-hero {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}
.frag-hero-sub {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

/* grid */
.frag-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: start;
    gap: 0.5rem;
}
.frag-card { text-align: center; padding: 0 0.25rem; }
.frag-card-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.85rem;
}
.frag-card-num {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 0.7rem;
}
.frag-card-num--muted {
    color: var(--text-secondary);
    font-style: italic;
    font-size: 1.4rem;
    /* nudge so the dashed bar lines up with the filled bars opposite */
    padding: 0.4rem 0;
}
.frag-bar {
    height: 8px;
    background: var(--border-light);
    border-radius: 4px;
    overflow: hidden;
    margin: 0 auto;
    max-width: 100%;
}
.frag-bar--dashed {
    background: transparent;
    border: 1px dashed var(--border-light);
    box-sizing: border-box;
}
.frag-bar-fill {
    height: 100%;
    border-radius: 4px;
    width: var(--bar-width, 100%);
    background: var(--primary);
}
.frag-bar-fill--md { background: var(--primary); opacity: 0.5; }
.frag-card-sub {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.75rem;
}

/* × disconnect markers in the gaps */
.frag-x {
    align-self: center;
    color: var(--red);
    font-weight: 700;
    font-size: 1.15rem;
    line-height: 1;
    padding: 0 0.15rem;
    transform: translateY(0.2rem);
}

/* error callout (failure path) */
.frag-error {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    margin-top: 1.5rem;
    padding: 0.85rem 1rem;
    background: rgba(219, 79, 79, 0.10);
    border: 1px solid var(--red);
    border-radius: 10px;
}
.frag-error-dot {
    width: 9px;
    height: 9px;
    border-radius: 2px;
    background: var(--red);
    margin-top: 0.4rem;
    flex-shrink: 0;
}
.frag-error p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.55;
}
.frag-error strong { color: var(--red); font-weight: 700; }

/* scroll-in animations (mirror improvingAdoption metric-comparison) */
@keyframes fragSlideUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fragFillBar { from { width: 0; } to { width: var(--bar-width, 100%); } }
@keyframes fragFade    { from { opacity: 0; } to { opacity: 1; } }
.frag-panel.in-view .frag-card-num { animation: fragSlideUp 0.6s ease-out both; }
.frag-panel.in-view .frag-bar-fill { animation: fragFillBar 1s ease-out 0.3s both; }
.frag-panel.in-view .frag-card-sub { animation: fragFade 0.8s ease-out 0.6s both; }
.frag-panel.in-view .frag-x        { animation: fragFade 0.8s ease-out 0.5s both; }
@media (prefers-reduced-motion: reduce) {
    .frag-panel.in-view .frag-card-num,
    .frag-panel.in-view .frag-bar-fill,
    .frag-panel.in-view .frag-card-sub,
    .frag-panel.in-view .frag-x { animation: none; }
}

/* responsive */
@media (max-width: 560px) {
    .frag-grid { grid-template-columns: 1fr; gap: 0.75rem; }
    .frag-x { transform: rotate(90deg); padding: 0.15rem 0; }
    .frag-head { gap: var(--space-sm); }
    .frag-hero { font-size: 2.2rem; }
}

/* Structural-debt strip below the figure */
.facts-debt {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: var(--space-sm) var(--space-md);
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-light);
}
.facts-debt-label {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--fig-amber);
    flex-shrink: 0;
}
.facts-debt-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    padding: 0;
    margin: 0;
}
.facts-debt-list li {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    background: var(--background);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 4px 12px 4px 24px;
    white-space: nowrap;
    margin: 0;
    position: relative;
}
.facts-debt-list li::before {
    content: "";
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 2px;
    background: var(--fig-amber);
}

/* ========== FACT PILLS ========== */
.facts {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin: 0 0 var(--space-lg);
}
.facts span {
    font-family: var(--font-mono);
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    background: var(--background-grey);
    border: 1px solid var(--border-light);
    border-radius: 99px;
    padding: 3px 12px;
    white-space: nowrap;
}


/* ========== SECTION NUMBER ========== */
.sec-num {
    display: block;
    font-family: var(--font-mono);
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--red);
    letter-spacing: 0.08em;
    margin-bottom: var(--space-xs);
}


/* ========== TL;DR CARD STACK ========== */
.tldr {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin: var(--space-xl) 0;
}
.tldr-card {
    padding: var(--space-lg) var(--space-xl);
    border-bottom: 1px solid var(--border-light);
    background: var(--background);
}
.tldr-card:nth-child(even) { background: var(--background-grey); }
.tldr-card:last-child { border-bottom: 0; }
.tldr-label {
    font-family: var(--font-mono);
    font-size: var(--font-size-xs);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    display: block;
    margin-bottom: var(--space-sm);
    color: var(--text-secondary);
}
.tldr-card.tldr-problem .tldr-label { color: var(--red); }
.tldr-card.tldr-action .tldr-label,
.tldr-card.tldr-result .tldr-label  { color: var(--primary); }
.tldr-card p { margin: 0; line-height: 1.65; }


/* ========== CALLOUT LABEL ========== */
.callout-label {
    font-family: var(--font-mono);
    font-size: var(--font-size-xs);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    display: block;
    margin-bottom: var(--space-sm);
    color: var(--primary);
}


/* ========== STAT RIBBON (results) ========== */
figure.stat-ribbon { box-sizing: border-box; }
.stat-ribbon {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xl);
    justify-content: space-between;
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
}
.stat-block {
    flex: 1;
    min-width: 140px;
}
.stat-label {
    display: block;
    font-family: var(--font-sans);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-top: var(--space-xs);
    line-height: 1.4;
}
.stat-val {
    display: block;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 2.2rem;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}
.stat-context {
    margin-top: var(--space-xs);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}


/* ========== SECTION DECK (standfirst under a section h2) ========== */
.section-deck {
    margin: calc(var(--space-md) * -0.5) 0 var(--space-md);
    font-size: var(--font-size-lg);
    font-weight: 500;
    line-height: 1.4;
    color: var(--text-secondary);
    letter-spacing: -0.2px;
}


/* ========== ITERATION LIST ========== */
.iter-list {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin: var(--space-lg) 0 var(--space-xl);
}
.iter-item {
    display: grid;
    grid-template-columns: 2.5rem 1fr;
    border-bottom: 1px solid var(--border-light);
}
.iter-item:last-child { border-bottom: 0; }
.iter-n {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-secondary);
    padding: var(--space-lg) 0 var(--space-lg) var(--space-lg);
    line-height: 1;
}
.iter-shipped .iter-n { color: var(--primary); }
.iter-body {
    padding: var(--space-lg) var(--space-xl) var(--space-lg) var(--space-md);
}
.iter-body h4 {
    font-size: var(--font-size-base);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 var(--space-xs);
}
.iter-body p {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}


/* ========== RBAC GRID ========== */
.rbac-grid {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin: var(--space-lg) 0 var(--space-xl);
}
.rbac-row {
    display: grid;
    grid-template-columns: 160px 1fr;
    border-bottom: 1px solid var(--border-light);
}
.rbac-row:last-child { border-bottom: 0; }
.rbac-key {
    padding: var(--space-md);
    background: var(--background-grey);
    border-right: 1px solid var(--border-light);
}
.rk-label {
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 3px;
}
.rk-val {
    font-family: var(--font-mono);
    font-size: var(--font-size-sm);
    color: var(--primary);
    font-weight: 500;
}
.rbac-val {
    padding: var(--space-md) var(--space-lg);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.6;
}
@media (max-width: 540px) {
    .rbac-row { grid-template-columns: 1fr; }
    .rbac-key { border-right: 0; border-bottom: 1px solid var(--border-light); }
}



/* ========== DECISION BLOCKS ========== */
.decision-block {
    padding: var(--space-md) 0;
    margin: var(--space-xl) 0;
}
.db-label {
    font-family: var(--font-mono);
    font-size: var(--font-size-xs);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
    display: block;
    margin-bottom: var(--space-sm);
}
.decision-block.decided .db-label { color: var(--primary); }
.decision-block h4 {
    font-size: var(--font-size-base);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 var(--space-sm);
    line-height: 1.4;
}
.decision-block p {
    color: var(--text-primary);
    margin: 0 0 var(--space-md);
    line-height: 1.6;
}
.decision-block p:last-of-type { margin-bottom: 0; }
.db-outcome {
    font-family: var(--font-mono);
    font-size: var(--font-size-sm);
    color: var(--primary);
    background: var(--background-grey);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: var(--space-sm) var(--space-md);
    margin-top: var(--space-md);
    display: block;
    line-height: 1.6;
}


/* ========== DIVIDERS ========== */
/* Plain hr dark-mode override — matches improving adoption / article.css surface token */
@media (prefers-color-scheme: dark) {
    hr {
        border-color: var(--background-grey);
    }
}

html.force-light hr {
    border-color: var(--border);
}

html.force-dark hr {
    border-color: var(--background-grey);
}

/* .intro-hr rules are inherited from /design-system/article.css */


/* ========== METADATA PANEL COMPONENT ========== */

.doc-meta-panel {
  position: relative;
  max-width: 380px;
  margin: var(--space-lg) auto 0;

  /* Fixed light surface (mirrors metadata-panel.html). Pin the colour tokens to
     light values so the panel never inherits the page/OS dark theme — text like
     the read-only reviewer/date fields stays dark on white. Inherited by the
     panel, the access modal, and the toasts (all nested inside). */
  --text-primary:    #0F172A;
  --text-secondary:  #64748B;
  --text-muted:      #8B95A1;
  --border-light:    #E5E7EB;
  --background-grey: #F4F5F7;
  --background:      #FCFCFD;
  --primary:         #0070EA;
}

.doc-meta-panel .panel {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,.05), 0 1px 2px rgba(0,0,0,.04);
}

.doc-meta-panel .section-title {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.doc-meta-panel .meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 16px;
}
.doc-meta-panel .col-2 { grid-column: span 2; }
.doc-meta-panel .div-b { border-bottom: 1px solid var(--border-light); padding-bottom: 12px; }
.doc-meta-panel .div-t { border-top:    1px solid var(--border-light); padding-top:    8px;  }

.doc-meta-panel .field { display: flex; flex-direction: column; gap: 2px; }
.doc-meta-panel .field-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.doc-meta-panel .field-display {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 4px;
  margin: 0 -4px;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  color: var(--text-primary);
  line-height: 1.4;
  cursor: pointer;
  transition: background 100ms;
  min-height: 24px;
}
.doc-meta-panel .field-display:hover { background: var(--background-grey); }
.doc-meta-panel .pencil { opacity: 0; transition: opacity 100ms; color: var(--text-muted); flex-shrink: 0; }
.doc-meta-panel .field-display:hover .pencil { opacity: 1; }
.doc-meta-panel .field-display.mono { font-family: var(--font-mono); font-size: 11.5px; word-break: break-all; }

.doc-meta-panel .field-editor { display: none; }
.doc-meta-panel .field-editor.active { display: block; }

.doc-meta-panel .field-input,
.doc-meta-panel .field-select {
  width: calc(100% + 8px);
  margin-left: -4px;
  height: 28px;
  padding: 0 6px;
  border-radius: 4px;
  border: 1px solid color-mix(in srgb, var(--primary) 50%, transparent);
  background: var(--background);
  font-family: var(--font-sans);
  font-size: 13.5px;
  color: var(--text-primary);
  outline: none;
}
.doc-meta-panel .field-input:focus,
.doc-meta-panel .field-select:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 30%, transparent); }
.doc-meta-panel .field-input.mono { font-family: var(--font-mono); font-size: 11.5px; }

.doc-meta-panel .ro {
  font-family: var(--font-sans);
  font-size: 13.5px;
  color: var(--text-primary);
  line-height: 1.4;
  min-height: 24px;
  display: flex;
  align-items: center;
}

/* Compliance badges */
.doc-meta-panel .badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 11.5px;
  border: 1px solid;
  white-space: nowrap;
  line-height: 1.6;
}
.doc-meta-panel .badge-ferpa     { border-color: #E11D48; color: #BE123C; }
.doc-meta-panel .badge-financial { border-color: #D97706; color: #92400E; }
.doc-meta-panel .badge-public    { border-color: #059669; color: #065F46; }
.doc-meta-panel .badge-internal  { border-color: #64748B; color: #475569; }

/* Tags */
.doc-meta-panel .tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 6px;
}
.doc-meta-panel .tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 5px 2px 8px;
  border-radius: 4px;
  font-size: 11.5px;
  background: var(--background-grey);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}
.doc-meta-panel .tag-x {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0 1px;
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  transition: color 100ms;
  font-family: var(--font-sans);
}
.doc-meta-panel .tag-x:hover { color: var(--text-primary); }
.doc-meta-panel .tag-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11.5px;
  color: var(--text-muted);
  background: none;
  border: 1px dashed var(--border-light);
  cursor: pointer;
  transition: background 100ms, color 100ms;
  font-family: var(--font-sans);
}
.doc-meta-panel .tag-add-btn:hover { background: var(--background-grey); color: var(--text-primary); }
.doc-meta-panel .tag-input-wrap { position: relative; }
.doc-meta-panel .tag-input {
  height: 26px;
  padding: 0 6px;
  border-radius: 4px;
  border: 1px solid color-mix(in srgb, var(--primary) 50%, transparent);
  background: var(--background);
  font-size: 12px;
  font-family: var(--font-sans);
  color: var(--text-primary);
  outline: none;
  width: 120px;
}
.doc-meta-panel .tag-input:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 30%, transparent); }
.doc-meta-panel .tag-suggs {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--background);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
  z-index: 100;
  min-width: 140px;
  overflow: hidden;
}
.doc-meta-panel .tag-sugg {
  padding: 5px 10px;
  font-size: 12px;
  color: var(--text-primary);
  cursor: pointer;
  transition: background 80ms;
}
.doc-meta-panel .tag-sugg:hover { background: var(--background-grey); }

/* Access */
.doc-meta-panel .access-section {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}
.doc-meta-panel .access-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.doc-meta-panel .access-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.doc-meta-panel .share-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-secondary);
  background: none;
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: background 100ms;
  font-family: var(--font-sans);
}
.doc-meta-panel .share-btn:hover { background: var(--background-grey); }
.doc-meta-panel .chips-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.doc-meta-panel .chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px 2px 6px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
}
.doc-meta-panel .chip-role  { background: #EEF2FF; color: #4338CA; }
.doc-meta-panel .chip-team  { background: #F0F9FF; color: #0369A1; }
.doc-meta-panel .chip-email { background: #F5F3FF; color: #6D28D9; }
.doc-meta-panel .chip-none  { background: var(--background-grey); color: var(--text-muted); }
.doc-meta-panel .access-note { font-size: 11.5px; color: var(--text-secondary); line-height: 1.55; }
.doc-meta-panel .access-note strong { color: var(--text-primary); font-weight: 500; }
.doc-meta-panel .restricted { color: #B45309; font-weight: 500; }

/* Modal — position:fixed lives outside .doc-meta-panel in page stacking context */
.panel-modal-bg {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.38);
  z-index: 500;
  align-items: center;
  justify-content: center;
}
.panel-modal-bg.open { display: flex; }
.panel-modal {
  background: var(--background);
  border-radius: 12px;
  border: 1px solid var(--border-light);
  box-shadow: 0 20px 50px rgba(0,0,0,.14);
  width: 420px;
  max-width: calc(100vw - 32px);
  padding: 20px;
  max-height: 80vh;
  overflow-y: auto;
}
.panel-modal-title {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.panel-modal-sec { margin-bottom: 16px; }
.panel-modal-sec-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.panel-modal-chips { display: flex; flex-wrap: wrap; gap: 6px; min-height: 26px; }
.m-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px 2px 8px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 500;
}
.m-chip-x {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 0 0 2px;
  display: flex;
  align-items: center;
  opacity: .55;
  font-size: 14px;
  line-height: 1;
  transition: opacity 100ms;
  font-family: var(--font-sans);
}
.m-chip-x:hover { opacity: 1; }
.panel-modal-add-row { display: flex; gap: 6px; margin-top: 8px; }
.panel-modal-sel,
.panel-modal-inp {
  flex: 1;
  height: 30px;
  padding: 0 8px;
  border-radius: 5px;
  border: 1px solid var(--border-light);
  background: var(--background);
  font-size: 13px;
  font-family: var(--font-sans);
  color: var(--text-primary);
  outline: none;
}
.panel-modal-sel:focus,
.panel-modal-inp:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 30%, transparent); }
.panel-modal-add {
  height: 30px;
  padding: 0 10px;
  border-radius: 5px;
  border: 1px solid var(--border-light);
  background: var(--background-grey);
  font-size: 13px;
  font-family: var(--font-sans);
  color: var(--text-primary);
  cursor: pointer;
  white-space: nowrap;
  transition: background 100ms;
}
.panel-modal-add:hover { background: var(--border-light); }
.panel-modal-hr { height: 1px; background: var(--border-light); margin: 16px 0; }
.panel-modal-footer { display: flex; justify-content: flex-end; gap: 8px; }
.panel-btn-ghost {
  height: 32px;
  padding: 0 12px;
  border-radius: 6px;
  border: 1px solid var(--border-light);
  background: var(--background);
  font-size: 13px;
  font-family: var(--font-sans);
  color: var(--text-primary);
  cursor: pointer;
  transition: background 100ms;
}
.panel-btn-ghost:hover { background: var(--background-grey); }
.panel-btn-primary {
  height: 32px;
  padding: 0 14px;
  border-radius: 6px;
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: opacity 100ms;
}
.panel-btn-primary:hover { opacity: .86; }

/* Toasts */
.panel-toasts {
  position: fixed;
  bottom: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 9999;
  pointer-events: none;
}
.panel-toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #18181b;
  color: #fff;
  border-radius: 8px;
  font-size: 13px;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
  animation: panel-t-in 180ms ease;
  max-width: 300px;
  pointer-events: auto;
}
.panel-toast-msg { flex: 1; }
.panel-toast-undo {
  background: none;
  border: 1px solid rgba(255,255,255,.28);
  color: #fff;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 12px;
  font-family: var(--font-sans);
  cursor: pointer;
  white-space: nowrap;
  transition: background 100ms;
}
.panel-toast-undo:hover { background: rgba(255,255,255,.14); }
@keyframes panel-t-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Light-only: badges, chips, and restricted text use a single set of colours
   (base rules above). No light/dark theme variants for the metadata panel. */


/* ========== DESIGN EVOLUTION (versioned attempts on a rail) ==========
   Restyles the permission-model iteration story. Borrows the timeline-rail
   from other case studies and the outline status-badge language from
   .btn-primary (outline, not filled). v1/v2 sit muted as rejected; v3 lands
   full-strength as the shipped resolution. DS tokens only. */
.evo { margin: var(--space-lg) 0 var(--space-xl); }

.evo-step {
    position: relative;
    display: grid;
    grid-template-columns: 2.5rem 1fr;
    column-gap: var(--space-md);
    padding-bottom: var(--space-lg);
}
.evo-step:last-child { padding-bottom: 0; }
/* connecting rail between consecutive nodes */
.evo-step:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 1.25rem;
    top: 1.9rem;
    bottom: -0.15rem;
    width: 2px;
    background: var(--border);
    transform: translateX(-1px);
}

.evo-node {
    align-self: start;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 1.65rem;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    border-radius: 99px;
    background: var(--background);
    border: 1px solid var(--border-strong);
    color: var(--text-secondary);
}
.evo-shipped .evo-node {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--surface);
    font-weight: 700;
}

.evo-body { min-width: 0; padding-top: 0.2rem; }

.evo-head {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
    margin-bottom: var(--space-xs);
}
.evo-head h4 {
    margin: 0;
    font-size: var(--font-size-base);
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-secondary);   /* rejected attempts read as muted */
}
.evo-shipped .evo-head h4 { color: var(--text-primary); }

.evo-tag {
    flex-shrink: 0;
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 99px;
    line-height: 1.55;
    background: var(--background);
}
.evo-tag-rej  { color: var(--red);     border: 1px solid var(--red); }
.evo-tag-ship { color: var(--primary); border: 1px solid var(--primary); }

.evo-body p {
    margin: 0;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 540px) {
    .evo-step { grid-template-columns: 2rem 1fr; column-gap: var(--space-sm); }
    .evo-step:not(:last-child)::before { left: 1rem; }
    .evo-node { width: 2rem; }
}


/* ========== DEFER TRACK (Phase 2: now -> next) ==========
   Upgrades each Phase 2 decision-block's outcome line into a visual roadmap:
   the interim v1 workaround (dashed = temporary) flows to the planned Phase 2
   state (solid, raised). Makes "what's deferred and why" show, not tell.
   DS tokens only. */
.defer-track {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: stretch;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}
.defer-now,
.defer-next {
    border-radius: var(--radius-sm);
    padding: var(--space-sm) var(--space-md);
}
.defer-now  { border: 1px dashed var(--border-strong); }      /* interim / temporary */
.defer-next { border: 1px solid var(--border-light); background: var(--surface); }
.defer-stage {
    display: block;
    font-family: var(--font-mono);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: var(--space-xs);
    color: var(--text-secondary);
}
.defer-next .defer-stage { color: var(--primary); }
.defer-now p,
.defer-next p {
    margin: 0;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.5;
}
.defer-arrow {
    align-self: center;
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 1rem;
}
@media (max-width: 560px) {
    .defer-track { grid-template-columns: 1fr; }
    .defer-arrow { transform: rotate(90deg); justify-self: center; }
}


/* ========== LIGHT-MODE TOAST — 1:1 with improvingAdoption ==========
   The shared DS toast (article.css) is a light surface with a blue->red primary
   button. This page intentionally mirrors the improvingAdoption toast instead:
   a dark pill, a white primary button, and a subtle hover-lift. Values are
   hardcoded to match that page exactly (deliberate exception to "DS tokens only" —
   the pill is always dark regardless of page theme, like a notification). */
.toast {
    bottom: var(--space-lg);
    right: var(--space-lg);
    width: auto;
    max-width: 320px;
    padding: 14px var(--space-md);
    border: none;
    border-radius: var(--radius-lg);
    background: rgba(20, 20, 20, 0.92);
    color: #f7f7f7;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    gap: 12px;
}
.toast.show { row-gap: 10px; }
.toast-title { color: #f7f7f7; }
.toast-text  { color: #e0e0e0; }
.toast-actions { margin-top: 0; gap: 10px; }
.toast button {
    font-family: inherit;
    border: none;
    border-radius: var(--radius-md);
    padding: var(--space-sm) 12px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.toast .btn-primary {
    background: #f7f7f7;
    color: #141414;
    border: none;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22);
}
.toast .btn-primary:hover { background: #f7f7f7; }
.toast .btn-ghost {
    background: transparent;
    color: #f7f7f7;
    border: 1px solid rgba(255, 255, 255, 0.35);
}
.toast .btn-ghost:hover {
    color: #f7f7f7;
    border-color: rgba(255, 255, 255, 0.35);
}
.toast button:hover  { transform: translateY(-1px); }
.toast button:active { transform: translateY(0); }

