.eyebrow {
    margin-bottom: .45rem;
    color: var(--primary);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.button-secondary {
    border-color: #cfe0f2;
    background: #eef4fb;
    color: var(--primary);
}

.button-secondary:hover {
    border-color: #bfd5ea;
    background: #e2edf9;
    color: var(--primary-dark);
}

.button-danger {
    border-color: #9b2c2c;
    background: #9b2c2c;
    color: #fff;
}

.button-danger:hover {
    border-color: #7f1d1d;
    background: #7f1d1d;
}

.panel {
    min-width: 0;
    margin-bottom: 1rem;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.panel > h2,
.panel > h3,
.panel > p:not(.subtle):not(.muted),
.panel > .muted {
    margin-left: 1rem;
    margin-right: 1rem;
}

.panel > h2:first-child,
.panel > h3:first-child,
.panel > p:first-child {
    margin-top: 1rem;
}

.panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-width: 0;
    padding: .9rem 1rem;
    border-bottom: 1px solid var(--border);
}

.panel-title h2 {
    min-width: 0;
    margin: 0;
}

.panel-title > span,
.panel-title > a {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: .82rem;
}

.metric-card,
.hero-score {
    min-width: 0;
    min-height: 106px;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.metric-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.metric-card span,
.hero-score span {
    color: var(--muted);
    font-size: .82rem;
}

.metric-card strong,
.hero-score strong {
    display: block;
    margin: .3rem 0;
    color: var(--text-strong);
    font-size: 1.45rem;
    overflow-wrap: anywhere;
}

.metric-card small,
.hero-score small {
    color: var(--muted);
    font-size: .76rem;
}

.notice {
    margin-bottom: 1rem;
    padding: .82rem .95rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.notice.warning {
    border-color: #f4d28e;
    background: #fff9e9;
    color: #7a4a00;
}

.notice.danger {
    border-color: #f2b8b8;
    background: #fff1f1;
    color: #9f2727;
}

.empty-state {
    padding: 2.6rem 1rem;
    color: var(--muted);
    text-align: center;
    overflow-wrap: anywhere;
}

.empty-state strong {
    display: block;
    margin-bottom: .35rem;
    color: var(--text);
}

.empty-state .button {
    margin-top: .45rem;
}

.strong-link {
    color: #245d92;
    font-weight: 750;
}

.subtle {
    color: #7b8592;
    font-size: .78rem;
    overflow-wrap: anywhere;
}

.table-footnote {
    margin: .75rem 1rem 1rem;
}

.pill {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: .25rem .55rem;
    border-radius: 999px;
    background: #eef2f6;
    color: #4c5665;
    font-size: .76rem;
    font-weight: 750;
    line-height: 1.25;
    white-space: nowrap;
}

.pill.bull {
    background: #e8f7ef;
    color: #087f5b !important;
}

.pill.bear {
    background: #faeaea;
    color: #b33a3a !important;
}

.pill.neutral {
    background: #eef1f4;
    color: #687181 !important;
}

.pill.plan {
    background: #eaf1fb;
    color: #275f9a !important;
}

.bull {
    color: #0a7a4b !important;
}

.bear {
    color: #b33a3a !important;
}

.neutral {
    color: #5d6674 !important;
}

.stack-form {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.stack-form label,
.filter-bar label {
    display: grid;
    gap: .35rem;
    color: var(--muted);
    font-size: .84rem;
}

.error-panel {
    padding: 1.5rem;
}

.error-panel h1 {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
}

.panel > .subtle {
    margin-left: 1rem;
    margin-right: 1rem;
}

.panel > .notice {
    margin-left: 1rem;
    margin-right: 1rem;
}

.panel > .signal-item {
    margin-left: 1rem;
    margin-right: 1rem;
}
