/* ==========================================================================
   Dashboard Page Styles (Redesigned)
   ========================================================================== */

/* ─── KPI Grid ─────────────────────────────────────────────────────── */

.av-kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

@media (min-width: 600px) {
    .av-kpi-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.av-kpi-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-lg) var(--space-md);
    text-align: center;
    transition: border-color var(--transition-base);
}

.av-kpi-card:hover {
    border-color: var(--border);
}

.av-kpi-value {
    font-size: var(--font-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: var(--space-xs);
}

.av-kpi-value.av-kpi--success { color: var(--success); }
.av-kpi-value.av-kpi--danger  { color: var(--danger); }
.av-kpi-value.av-kpi--accent  { color: var(--accent-primary); }

.av-kpi-label {
    font-size: var(--font-xs);
    color: var(--text-muted);
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ─── Priority Actions (for mobile operators + desktop overview) ─── */

.av-priority-actions {
    margin-bottom: var(--space-xl);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    background: var(--panel);
}

.av-priority-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.av-priority-status {
    font-size: var(--font-2xs);
    font-weight: var(--font-weight-semibold);
    padding: 4px 8px;
    border-radius: var(--radius-full);
    border: 1px solid transparent;
    white-space: nowrap;
}

.av-priority-status.is-healthy {
    color: var(--ok);
    background: var(--success-dim);
    border-color: var(--border-success);
}

.av-priority-status.is-warning {
    color: var(--warning);
    background: var(--warning-dim);
    border-color: var(--border-warning);
}

.av-priority-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-sm);
}

@media (min-width: 768px) {
    .av-priority-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* ─── Attention Banner ─────────────────────────────────────────────── */

.av-attention {
    border-radius: var(--radius-lg);
    padding: var(--space-md) var(--space-lg);
    margin-bottom: var(--space-xl);
    font-size: var(--font-sm);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.av-attention--ok {
    background: var(--success-dim);
    border: 1px solid var(--border-success);
    color: var(--ok);
}

.av-attention--warn {
    background: var(--warning-dim);
    border: 1px solid var(--border-warning);
    color: var(--text-primary);
    flex-direction: column;
    align-items: flex-start;
}

.av-attention-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: var(--font-xs);
    font-weight: var(--font-weight-bold);
    flex-shrink: 0;
}

.av-attention-icon--ok {
    background: var(--success-dim);
    color: var(--ok);
}

.av-attention-icon--warn {
    background: var(--warning-dim);
    color: var(--warning);
}

.av-attention-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.av-attention-header strong {
    color: var(--warning);
}

.av-attention-list {
    list-style: none;
    margin: var(--space-sm) 0 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.av-attention-list li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: var(--font-sm);
    color: var(--text-secondary);
    transition: background var(--transition-base);
}

.av-attention-list li[data-action]:hover {
    background: var(--bg-hover-subtle);
}

.av-attention-offline {
    color: var(--danger);
    font-size: 8px;
}

.av-attention-degraded {
    color: var(--warning);
    font-size: 8px;
}

/* ─── Section Layout ───────────────────────────────────────────────── */

.av-section {
    margin-bottom: var(--space-xl);
}

.av-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-md);
}

.av-section-title {
    font-size: var(--font-base);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin: 0;
}

/* ─── Compact Display List ─────────────────────────────────────────── */

.av-display-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.av-display-row {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background var(--transition-base), border-color var(--transition-base);
}

.av-display-row:hover {
    background: var(--bg-card-hover);
    border-color: var(--border);
}

.av-display-row-info {
    flex: 1;
    min-width: 0;
}

.av-display-row-name {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--font-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-wrap: wrap;
}

.av-display-row-fav {
    color: var(--accent-secondary);
    font-size: var(--font-sm);
}

.av-display-row-meta {
    font-size: var(--font-xs);
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.av-display-row-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-2xs);
    flex-shrink: 0;
    flex-wrap: wrap;
}

.av-row-quick-action {
    min-height: 30px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.av-row-quick-action-icon {
    font-size: var(--font-xs);
    line-height: 1;
}

.av-row-quick-action-label {
    font-size: var(--font-2xs);
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.01em;
}

.av-row-quick-action--primary {
    background: var(--accent-soft);
    border-color: var(--border-accent);
    color: var(--accent-ink);
}

.av-row-quick-action--primary:hover:not(:disabled) {
    background: var(--accent-primary-dim);
    border-color: var(--accent);
    color: var(--accent-ink);
}

.av-row-quick-action--secondary {
    background: var(--success-dim);
    border-color: var(--border-success);
    color: var(--ok);
}

.av-row-quick-action--secondary:hover:not(:disabled) {
    background: oklch(0.62 0.13 155 / 0.16);
    border-color: var(--ok);
    color: var(--ok);
}

.av-row-quick-action--ghost {
    background: transparent;
    border-color: var(--line);
    color: var(--text-secondary);
}

.av-row-quick-action--ghost:hover:not(:disabled) {
    background: var(--bg-hover-subtle);
    border-color: var(--ink-2);
    color: var(--text-primary);
}

.av-display-list-more {
    text-align: center;
    padding: var(--space-sm) 0;
}

/* ─── Mini Preview (thumbnail iframe) ──────────────────────────────── */

.av-mini-preview {
    width: 96px;
    height: 54px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-primary);
    flex-shrink: 0;
    position: relative;
}

/* Click overlay on the dashboard mini-preview (dashboard compact row). */
.av-mini-preview-open {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    cursor: zoom-in;
    z-index: 1;
}

.av-mini-preview-open:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: -2px;
}

.av-mini-preview .av-preview-iframe {
    width: 1920px;
    height: 1080px;
    transform: scale(0.05);
    transform-origin: top left;
}

.av-mini-preview--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-disabled);
    font-size: var(--font-xs);
    border: 1px dashed var(--border-light);
}

/* Responsive: hide mini-preview on very small screens */
@media (max-width: 480px) {
    .av-priority-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .av-mini-preview {
        width: 64px;
        height: 36px;
    }
    .av-mini-preview .av-preview-iframe {
        transform: scale(0.0333);
    }

    .av-display-row {
        display: grid;
        grid-template-columns: 64px minmax(0, 1fr);
        gap: var(--space-xs);
        align-items: start;
    }

    .av-display-row-name,
    .av-display-row-meta {
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }

    .av-display-row-actions {
        grid-column: 2;
        justify-content: flex-start;
        margin-top: 2px;
    }
}

/* ─── Quick Actions ────────────────────────────────────────────────── */

.av-quick-actions {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    margin-bottom: var(--space-xl);
}

.av-quick-actions .av-btn {
    flex: 1;
    min-width: 140px;
    justify-content: center;
}

/* ─── Slot Overview (with progress bars) ───────────────────────────── */

.av-slot-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-sm);
}

@media (min-width: 768px) {
    .av-slot-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }
}

.av-slot-card {
    padding: var(--space-md);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
}

.av-slot-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-sm);
}

.av-slot-card-name {
    font-size: var(--font-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
}

.av-slot-card-count {
    font-size: var(--font-xs);
    color: var(--text-muted);
}

.av-slot-bar {
    height: 4px;
    background: var(--border-light);
    border-radius: 2px;
    overflow: hidden;
}

.av-slot-bar-fill {
    height: 100%;
    background: var(--accent-primary);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* ─── Activity Feed ────────────────────────────────────────────────── */

.av-activity-item {
    display: flex;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--border-light);
    font-size: var(--font-sm);
}

.av-activity-item:last-child {
    border-bottom: none;
}

.av-activity-time {
    color: var(--text-muted);
    font-size: var(--font-xs);
    white-space: nowrap;
    min-width: 60px;
}

.av-activity-text {
    color: var(--text-secondary);
    flex: 1;
}

.av-activity-display {
    color: var(--accent-primary);
    font-weight: var(--font-weight-semibold);
}

/* ─── Badge variant ────────────────────────────────────────────────── */

.av-badge-sm {
    font-size: var(--font-2xs);
    padding: 1px 4px;
}

/* ─── Status Hero Card (U-401 / DS-106 / J-S1) ─────────────────────── */

.av-status-hero {
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-xl);
    border: 1px solid transparent;
}

.av-status-hero--ok {
    background: var(--success-dim);
    border-color: var(--border-success);
}

.av-status-hero--warn {
    background: var(--warning-dim);
    border-color: var(--border-warning);
}

.av-status-hero--danger {
    background: var(--danger-dim);
    border-color: var(--border-danger);
}

.av-status-hero-row {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.av-status-hero-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-base);
    flex-shrink: 0;
}

.av-status-hero--ok .av-status-hero-icon {
    background: var(--success-dim);
    color: var(--ok);
}

.av-status-hero--warn .av-status-hero-icon,
.av-status-hero--danger .av-status-hero-icon {
    background: var(--warning-dim);
    color: var(--warning);
}

.av-status-hero--danger .av-status-hero-icon {
    background: oklch(0.58 0.17 25 / 0.12);
    color: var(--danger);
}

.av-status-hero-text {
    flex: 1;
    min-width: 0;
}

.av-status-hero-title {
    font-size: var(--font-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin: 0 0 var(--space-2xs) 0;
}

.av-status-hero-body {
    font-size: var(--font-sm);
    color: var(--text-secondary);
    margin: 0;
}

.av-status-hero-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
    gap: var(--space-sm);
    margin: var(--space-md) 0 0;
}

.av-status-hero-metric {
    margin: 0;
    padding: var(--space-sm);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
}

.av-status-hero-metric dt {
    color: var(--text-muted);
    font-size: var(--font-2xs);
    font-weight: var(--font-weight-semibold);
    margin: 0 0 var(--space-2xs);
}

.av-status-hero-metric dd {
    color: var(--text-primary);
    font-size: var(--font-lg);
    font-weight: var(--font-weight-bold);
    line-height: 1;
    margin: 0;
}

.av-status-hero-metric--online dd { color: var(--success); }
.av-status-hero-metric--degraded dd,
.av-status-hero-metric--pending dd { color: var(--warning); }
.av-status-hero-metric--offline dd { color: var(--danger); }

/* ─── Attention Cards (U-401) ──────────────────────────────────────── */

.av-overview-attention-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.av-overview-attention-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
}

.av-overview-attention-info {
    flex: 1;
    min-width: 0;
}

.av-overview-attention-name {
    font-size: var(--font-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.av-overview-attention-meta {
    font-size: var(--font-xs);
    color: var(--text-muted);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.av-overview-attention-cta {
    flex-shrink: 0;
}

/* ─── Quick Actions Grid (U-401) ───────────────────────────────────── */

.av-overview-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

@media (max-width: 767px) {
    .av-overview-actions {
        grid-template-columns: 1fr;
    }
}

.av-overview-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: var(--font-sm);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    min-height: 44px;
    transition: background var(--transition-base), border-color var(--transition-base);
    text-decoration: none;
    min-width: 0;
}

.av-overview-action-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--border);
}

.av-overview-action-btn:focus-visible {
    outline: 2px solid var(--border-focus);
    outline-offset: 2px;
}

.av-overview-action-icon {
    font-size: var(--font-base);
    line-height: 1;
    flex-shrink: 0;
}

.av-overview-action-btn small {
    color: var(--text-muted);
    font-size: var(--font-2xs);
    font-weight: var(--font-weight-semibold);
    min-width: 1ch;
}

/* ─── Admin Diagnose Card (U-401 / J-A1 anchor) ────────────────────── */

.av-overview-diagnose {
    margin-bottom: var(--space-xl);
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
}

.av-overview-diagnose-label {
    font-size: var(--font-sm);
    color: var(--text-secondary);
}

/* ─── Mobile layout adjustments (U-401 / 375 px) ──────────────────── */

@media (max-width: 767px) {
    .av-status-hero {
        padding: var(--space-md);
    }

    .av-status-hero-title {
        font-size: var(--font-base);
    }

    .av-overview-attention-card {
        flex-wrap: wrap;
    }

    .av-overview-attention-cta {
        width: 100%;
    }

    .av-overview-attention-cta .av-btn {
        width: 100%;
        justify-content: center;
    }

    .av-overview-diagnose {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==========================================================================
   Editorial overview layout — Phase D additions
   New selectors only. Existing selectors above are untouched.
   ========================================================================== */

/* ─── Page header (editorial) ─────────────────────────────────────── */

.av-pg-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.av-pg-header-text {
    flex: 1;
    min-width: 0;
}

.av-pg-eyebrow {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

/* Editorial section numbering (01, 02, 03 …) was visual flair carried over
   from the marketing landing. In a workspace it adds noise without function,
   so we hide it on every page that uses .av-pg-header without touching the
   per-page templates. The eyebrow label itself stays. */
.av-pg-eyebrow .av-num {
    display: none;
}

/* Workspace H1: large enough to anchor the page, small enough that the
   first row of data is still above the fold on a 900px laptop. The previous
   ramp (clamp 44–80 px from .display-1) ate ~30 % of viewport height before
   showing any actionable content. */
.av-pg-h1 {
    margin-bottom: 8px;
    font-size: clamp(28px, 2.6vw, 40px);
    line-height: 1.1;
}

.av-pg-header .lede {
    margin-top: 4px;
    font-size: 15px;
    line-height: 1.45;
    color: var(--text-secondary, var(--muted));
}

.text-accent {
    color: var(--accent);
}

.av-pg-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    padding-top: 6px;
}

@media (max-width: 767px) {
    .av-pg-header {
        flex-direction: column;
        gap: 14px;
        margin-bottom: 20px;
    }

    /* On small viewports the lede is the secondary signal, not primary —
       drop it a notch so the H1 + stat-tiles fit above the fold without
       scrolling. The desktop sizes already handle this on wider screens. */
    .av-pg-h1 {
        font-size: 26px;
        margin-bottom: 4px;
    }
    .av-pg-header .lede {
        font-size: 14px;
        line-height: 1.4;
    }

    .av-pg-actions {
        flex-wrap: wrap;
        width: 100%;
        padding-top: 0;
    }

    .av-pg-actions .av-btn {
        flex: 1;
        justify-content: center;
    }
}

/* ─── Stat grid (4 tiles) ──────────────────────────────────────────── */

.av-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

@media (max-width: 1023px) {
    .av-stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 479px) {
    .av-stat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

.av-stat {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 20px 18px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    overflow: hidden;
}

.av-stat-label {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
    line-height: 1;
}

.av-stat-value {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.03em;
    font-feature-settings: "tnum";
    color: var(--ink);
    margin-bottom: 6px;
}

.av-stat-value--ok     { color: var(--ok); }
.av-stat-value--danger { color: var(--danger); }

a.av-stat--link {
    text-decoration: none;
    color: inherit;
    transition: border-color 120ms ease, transform 120ms ease, box-shadow 120ms ease;
}

a.av-stat--link:hover,
a.av-stat--link:focus-visible {
    border-color: var(--ink);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgb(0 0 0 / 0.06);
}

a.av-stat--link:focus-visible {
    outline: 2px solid var(--accent, var(--ink));
    outline-offset: 2px;
}

.av-stat-trend {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.4;
    flex: 1;
}

.av-stat-spark {
    display: block;
    margin-top: 10px;
    color: var(--muted);
}

/* Live-status dot next to online count */
.av-status-dot--ok {
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--ok);
    vertical-align: middle;
    margin-right: 3px;
}

/* ─── Section header row ──────────────────────────────────────────── */

.av-pg-section-h {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.av-section-link {
    font-size: 13px;
    color: var(--muted);
    text-decoration: none;
    cursor: pointer;
    transition: color var(--dur-fast) var(--ease);
}

.av-section-link:hover {
    color: var(--ink);
}

/* ─── Editorial display list card wrapper ─────────────────────────── */

.av-display-editorial-list {
    border-radius: var(--r-lg);
    overflow: hidden;
}

/* ─── Display row (editorial) ─────────────────────────────────────── */

.av-display-row-ed {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 20px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line-2);
    align-items: center;
    transition: background var(--dur-fast) var(--ease);
}

.av-display-row-ed:last-child {
    border-bottom: none;
}

.av-display-row-ed:hover {
    background: var(--line-3);
}

/* Bezel-style thumbnail */
.av-display-thumb {
    width: 100px;
    aspect-ratio: 16 / 9;
    border-radius: var(--r-sm);
    background: oklch(0.12 0.008 255);
    padding: 4px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.av-display-thumb .av-preview-iframe {
    width: 1920px;
    height: 1080px;
    transform: scale(0.0484);
    transform-origin: top left;
    border-radius: 2px;
}

.av-display-thumb--empty {
    background: var(--bg-warm);
    border: 1px dashed var(--line);
}

.av-display-thumb .av-mini-preview-open {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    cursor: zoom-in;
    z-index: 1;
}

/* Row info: name + meta */
.av-display-row-name {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    flex-wrap: wrap;
}

.av-display-row-name-link {
    color: var(--ink);
    text-decoration: none;
    cursor: pointer;
}

.av-display-row-name-link:hover {
    color: var(--accent);
}

.av-display-row-meta {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Inline row actions */
.av-display-row-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

/* Overflow menu (Senden = primary, rest in ⋯) */
.av-row-overflow {
    position: relative;
}

.av-row-overflow > summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
    padding: 0 10px;
    line-height: 28px;
    min-width: 32px;
    text-align: center;
}

.av-row-overflow > summary::-webkit-details-marker { display: none; }
.av-row-overflow > summary::marker { display: none; }

.av-row-overflow-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    z-index: 20;
    min-width: 180px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    box-shadow: 0 8px 24px rgb(0 0 0 / 0.08);
    padding: 4px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.av-row-overflow-item {
    text-align: left;
    background: transparent;
    border: 0;
    padding: 8px 10px;
    border-radius: 6px;
    font: inherit;
    color: inherit;
    cursor: pointer;
}

.av-row-overflow-item:hover,
.av-row-overflow-item:focus-visible {
    background: var(--bg-warm, rgb(0 0 0 / 0.04));
    outline: none;
}

/* Responsive: collapse to 2-column grid on mobile */
@media (max-width: 767px) {
    .av-display-row-ed {
        grid-template-columns: 60px 1fr;
        grid-template-rows: auto auto;
        gap: 10px;
        padding: 12px 14px;
    }

    .av-display-thumb {
        width: 60px;
    }

    .av-display-thumb .av-preview-iframe {
        transform: scale(0.029);
    }

    .av-display-row-actions {
        grid-column: 2;
        flex-wrap: wrap;
        gap: 4px;
    }

    .av-display-row-meta {
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }
}
