html, body {
    margin: 0;
    background: #f5f7fb;
    color: #1f2933;
    font-family: "Segoe UI", Arial, sans-serif;
}

h1:focus {
    outline: none;
}

.insights-pane {
    min-height: 100vh;
    padding: 16px;
}

.insights-header {
    align-items: center;
    display: grid;
    gap: 10px;
    grid-template-columns: 40px 1fr 38px;
    margin-bottom: 14px;
}

.brand-mark {
    align-items: center;
    background: #243b53;
    border-radius: 8px;
    color: #fff;
    display: flex;
    font-size: 14px;
    font-weight: 700;
    height: 40px;
    justify-content: center;
    width: 40px;
}

.eyebrow {
    color: #66737f;
    font-size: 12px;
    font-weight: 650;
    letter-spacing: 0;
    margin: 0 0 2px;
}

h1 {
    color: #101828;
    font-size: 22px;
    font-weight: 650;
    line-height: 1.15;
    margin: 0;
}

h2 {
    color: #101828;
    font-size: 19px;
    font-weight: 650;
    line-height: 1.25;
    margin: 4px 0 8px;
    overflow-wrap: anywhere;
}

.icon-button {
    align-items: center;
    aspect-ratio: 1;
    background: #fff;
    border: 1px solid #cfd7df;
    border-radius: 7px;
    color: #1f2933;
    cursor: pointer;
    display: inline-flex;
    font-size: 18px;
    justify-content: center;
    width: 38px;
}

.icon-button:hover {
    background: #eef4fb;
}

.icon-button:disabled {
    cursor: wait;
    opacity: 0.7;
}

.status {
    border: 1px solid;
    border-radius: 7px;
    font-size: 13px;
    line-height: 1.35;
    margin-bottom: 12px;
    padding: 9px 11px;
}

.status.connected {
    background: #eef8f2;
    border-color: #9ad7b3;
    color: #185b32;
}

.status.warning {
    background: #fff7e8;
    border-color: #f1c981;
    color: #694400;
}

.connection-panel {
    border: 1px solid;
    border-radius: 8px;
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
    padding: 12px;
}

.connection-panel.connected {
    background: #eef8f2;
    border-color: #9ad7b3;
}

.connection-panel.warning {
    background: #fff7e8;
    border-color: #f1c981;
}

.connection-panel div {
    display: grid;
    gap: 2px;
}

.connection-panel span {
    color: #66737f;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.connection-panel strong {
    color: #25313f;
    font-size: 13px;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.hero-summary {
    background: #fff;
    border: 1px solid #d9e1e8;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr auto;
    margin-bottom: 12px;
    padding: 14px;
}

.hero-summary p {
    color: #556270;
    font-size: 13px;
    line-height: 1.35;
    margin: 0;
    overflow-wrap: anywhere;
}

.section-kicker {
    color: #7a8694 !important;
    font-size: 11px !important;
    font-weight: 700;
    text-transform: uppercase;
}

.priority-pill {
    align-self: start;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 9px;
}

.priority-normal {
    background: #eef4fb;
    color: #23415f;
}

.priority-high {
    background: #fdebec;
    color: #8a1c25;
}

.metric-strip {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 12px;
}

.metric-strip div {
    background: #fff;
    border: 1px solid #d9e1e8;
    border-radius: 8px;
    padding: 10px;
}

.metric-strip span {
    color: #101828;
    display: block;
    font-size: 21px;
    font-weight: 700;
    line-height: 1;
}

.metric-strip small {
    color: #66737f;
    display: block;
    font-size: 11px;
    line-height: 1.2;
    margin-top: 5px;
}

.insight-card,
.detail-list {
    background: #fff;
    border: 1px solid #d9e1e8;
    border-radius: 8px;
    margin-bottom: 10px;
    padding: 12px;
}

.card-title {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin-bottom: 7px;
}

.card-title span,
.detail-list span {
    color: #66737f;
    font-size: 12px;
    font-weight: 650;
}

.card-title strong {
    background: #eaf6f0;
    border-radius: 999px;
    color: #216445;
    font-size: 12px;
    padding: 4px 8px;
}

.insight-card p {
    color: #354150;
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
}

.detail-list {
    display: grid;
    gap: 9px;
}

.detail-list div {
    display: grid;
    gap: 3px;
}

.detail-list strong {
    color: #25313f;
    font-size: 13px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.empty-state {
    background: #fff;
    border: 1px dashed #c3ccd5;
    border-radius: 8px;
    color: #3b4652;
    line-height: 1.45;
    padding: 16px;
}

.empty-state h2 {
    font-size: 18px;
    margin-top: 0;
}

#blazor-error-ui {
    background: #fff7e8;
    border-top: 1px solid #f1c981;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background: #b32121;
    color: white;
    padding: 1rem;
}

.blazor-error-boundary::after {
    content: "Ein Fehler ist aufgetreten.";
}

.loading-progress {
    display: block;
    height: 8rem;
    margin: 20vh auto 1rem auto;
    position: relative;
    width: 8rem;
}

.loading-progress circle {
    fill: none;
    stroke: #d9e1e8;
    stroke-width: 0.6rem;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

.loading-progress circle:last-child {
    stroke: #243b53;
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    font-weight: 600;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
    position: absolute;
    text-align: center;
}

.loading-progress-text::after {
    content: var(--blazor-load-percentage-text, "Lade");
}

code {
    color: #005a9e;
}
