.hero-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-info-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.hero-info-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid rgba(23, 33, 29, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--brand);
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
    flex: 0 0 auto;
    animation: infoPulse 2.4s ease-in-out infinite;
}

.hero-info-button:hover {
    background: rgba(13, 143, 113, 0.12);
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(20, 30, 28, 0.1);
}

.hero-info-button:focus-visible {
    outline: 2px solid rgba(13, 143, 113, 0.35);
    outline-offset: 2px;
}

.hero-info-button-secondary {
    color: #8a4b0f;
    border-color: rgba(138, 75, 15, 0.16);
    background: rgba(255, 246, 230, 0.88);
    animation: none;
}

.hero-info-button-secondary:hover {
    background: rgba(232, 158, 33, 0.16);
}

.hero-info-button-secondary:focus-visible {
    outline-color: rgba(232, 158, 33, 0.35);
}

.analysis-hint {
    position: absolute;
    top: calc(100% + 10px);
    right: -6px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px 8px 12px;
    border-radius: 14px;
    border: 1px solid rgba(23, 33, 29, 0.1);
    background: rgba(255, 252, 245, 0.98);
    color: var(--text);
    box-shadow: 0 18px 36px rgba(20, 30, 28, 0.12);
    white-space: nowrap;
    z-index: 4;
    animation: hintFloat 2.8s ease-in-out infinite;
}

.analysis-hint::before {
    content: "";
    position: absolute;
    top: -6px;
    right: 14px;
    width: 12px;
    height: 12px;
    background: rgba(255, 252, 245, 0.98);
    border-top: 1px solid rgba(23, 33, 29, 0.1);
    border-left: 1px solid rgba(23, 33, 29, 0.1);
    transform: rotate(45deg);
}

.analysis-hint-text {
    position: relative;
    z-index: 1;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted);
}

.analysis-hint-close {
    position: relative;
    z-index: 1;
    width: 20px;
    height: 20px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(23, 33, 29, 0.08);
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1;
    cursor: pointer;
}

@keyframes infoPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(13, 143, 113, 0.0);
        transform: translateY(0);
    }

    45% {
        box-shadow: 0 0 0 8px rgba(13, 143, 113, 0.0), 0 0 0 0 rgba(13, 143, 113, 0.16);
        transform: translateY(-1px);
    }

    60% {
        box-shadow: 0 0 0 10px rgba(13, 143, 113, 0.0), 0 0 0 0 rgba(13, 143, 113, 0.0);
    }
}

@keyframes hintFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-2px);
    }
}

.panel-header,
.section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 0.84rem;
    font-weight: 700;
}

.loading-panel {
    display: grid;
    gap: 8px;
    margin: 12px 0 16px;
}

.loading-panel[hidden] {
    display: none !important;
}

.loading-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.92rem;
}

.loading-meta strong {
    font-size: 0.94rem;
}

.loading-track {
    overflow: hidden;
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: rgba(23, 33, 29, 0.08);
}

.loading-bar {
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand) 0%, var(--accent) 100%);
    transition: width 180ms ease;
}

.slider-label,
.meta-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

input[type="range"] {
    width: 100%;
    margin: 8px 0 12px;
    accent-color: var(--brand);
}

.run-select {
    width: 100%;
    margin: 8px 0 12px;
    padding: 12px 14px;
    border: 1px solid rgba(23, 33, 29, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text);
    font: inherit;
}

.hidden-control {
    display: none !important;
}

[hidden] {
    display: none !important;
}

.results-table-wrap {
    overflow-x: auto;
    overflow-y: auto;
    margin: 8px 0 12px;
    border: 1px solid rgba(23, 33, 29, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.7);
    max-height: 26vh;
}

.results-table {
    width: 100%;
    min-width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.results-table th,
.results-table td {
    padding: 10px 10px;
    text-align: left;
    border-bottom: 1px solid rgba(23, 33, 29, 0.08);
    white-space: nowrap;
}

.results-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: rgba(255, 248, 234, 0.98);
    font-size: 0.74rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.results-table tbody tr {
    cursor: pointer;
    transition: background 160ms ease, color 160ms ease;
}

.results-table tbody tr:hover {
    background: rgba(13, 143, 113, 0.08);
}

.results-table tbody tr.is-selected {
    background: rgba(13, 143, 113, 0.14);
}

.results-table td.metric-cell {
    font-variant-numeric: tabular-nums;
}

.results-table td.metric-cell-strong {
    font-weight: 700;
    color: var(--brand);
}

.results-table td.run-cell {
    max-width: 88px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.step-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.step-meta strong {
    font-size: 1rem;
}

.timeline-controls {
    display: grid;
    gap: 4px;
    margin-top: 2px;
    flex: 0 0 auto;
}

.timeline-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.timeline-meta-item {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    padding: 7px 9px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(23, 33, 29, 0.08);
}

.timeline-meta-item strong {
    font-size: 0.95rem;
}

.timeline-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    min-width: 0;
}

.timeline-slider-inline {
    display: flex;
    align-items: center;
    flex: 0 0 200px;
    min-width: 160px;
    max-width: 200px;
}

.timeline-slider-inline input[type="range"] {
    width: 100%;
    margin: 0;
}

.timeline-title-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(13, 143, 113, 0.1);
    color: var(--brand);
    font-size: 0.85rem;
    font-weight: 700;
}

.timeline-title-metrics {
    font-size: 0.88rem;
    line-height: 1.25;
    color: var(--muted);
}

.timeline-metrics-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 1 auto;
    min-width: 0;
    flex-wrap: nowrap;
}

.timeline-title-metrics-status {
    flex: 0 1 auto;
    white-space: nowrap;
}

.timeline-metric-pill {
    background: rgba(23, 33, 29, 0.06);
    color: var(--text);
    font-weight: 600;
    white-space: nowrap;
}

.timeline-metric-pill-test {
    background: rgba(239, 131, 84, 0.12);
    color: #9a4d28;
}

.section-heading-compact {
    margin-top: 2px;
}

.meta-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin: 0;
}

.experiment-card {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.experiment-reference-stack {
    margin-bottom: 0;
}

.experiment-scroll {
    display: grid;
    gap: 16px;
    overflow: auto;
    flex: 1 1 auto;
    min-height: 0;
    padding-right: 4px;
}

.meta-list div {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(23, 33, 29, 0.08);
}

.meta-list dt {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.meta-list dd {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.4;
}

.reference-stack {
    display: grid;
    gap: 14px;
}

.reference-figure {
    margin: 0;
    display: grid;
    gap: 8px;
}

.reference-figure img {
    width: 100%;
    display: block;
    border-radius: 18px;
    border: 1px solid rgba(23, 33, 29, 0.08);
    background: white;
    cursor: zoom-in;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.reference-figure img:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(20, 30, 28, 0.14);
}

.reference-figure figcaption {
    font-size: 0.9rem;
    color: var(--muted);
}
