/*
debug-preview.css
Role: debug surface styles.
Responsibility: debug tables, export links, and story modal signal overrides.
Note: Modify only from the latest local file.
*/
.table-wrap {
    background: var(--panel);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1220px;
}

th,
td {
    text-align: left;
    padding: var(--space-sm) var(--space-md);
    border-bottom: 1px solid var(--border);
    vertical-align: top;
    font-size: var(--text-ui);
}

th {
    background: var(--panel-soft);
    font-size: var(--text-meta);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: var(--tracking-label);
    color: var(--muted);
}

.muted {
    color: var(--muted);
}

.status-chip {
    display: inline-block;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.status-ok {
    background: var(--ok-bg);
    color: var(--ok-text);
}

.status-warning {
    background: var(--warning-bg);
    color: var(--warning-text);
}

.status-danger {
    background: var(--danger-bg);
    color: var(--danger-text);
}

.mono {
    font-family: Consolas, Monaco, monospace;
    font-size: var(--text-meta);
    word-break: break-word;
}

.flags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.flag {
    display: inline-block;
    padding: 3px 7px;
    border-radius: var(--radius-sm);
    background: var(--panel-soft);
    font-size: 0.76rem;
    font-weight: 700;
}

.link-row {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-sm);
}

.text-link {
    color: var(--link-text);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--text-ui);
}

.text-link:hover {
    text-decoration: underline;
}

.debug-notice {
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius);
    font-size: var(--text-ui);
    line-height: 1.5;
    margin-bottom: var(--space-sm);
}

.debug-notice code {
    font-family: Consolas, Monaco, monospace;
    font-size: 0.85em;
    background: rgba(0,0,0,0.08);
    padding: 1px 4px;
    border-radius: 3px;
}

.debug-notice--warn {
    background: var(--warning-bg);
    color: var(--warning-text);
    border: 1px solid rgba(0,0,0,0.1);
}

.debug-text-block {
    margin: 0;
    padding: 16px 18px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    color: var(--text);
    font-family: Consolas, Monaco, monospace;
    font-size: 0.86rem;
    line-height: 1.5;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.story-modal-signals-grid .signal-card-bar-scalar .signal-card-marker {
    top: -1px;
}

/* ── Runtime meta line ───────────────────────────────────────────── */

.debug-runtime-meta {
    font-size: var(--text-sm);
    color: var(--muted);
    padding-bottom: var(--space-sm);
    margin-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border);
}

