.sokoli-monitor-card {
    margin: 24px 0;
}

.sokoli-monitor-card__inner {
    max-width: 640px;
    padding: 24px;
    border: 1px solid #d0d7de;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f6f8fa 100%);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.sokoli-monitor-card__title {
    margin: 0 0 12px;
    color: #0f172a;
    font-size: 28px;
    line-height: 1.2;
}

.sokoli-monitor-card__status,
.sokoli-monitor-card__version,
.sokoli-monitor-card__message,
.sokoli-monitor-card__note {
    margin: 10px 0 0;
    color: #334155;
    font-size: 16px;
    line-height: 1.6;
}

.sokoli-monitor-help {
    margin: 24px 0;
    color: #172033;
}

.sokoli-monitor-help,
.sokoli-monitor-help * {
    box-sizing: border-box;
}

.sokoli-monitor-help__inner {
    width: min(720px, 100%);
    padding: clamp(20px, 4vw, 32px);
    overflow-wrap: anywhere;
    border: 1px solid #d0d7de;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.sokoli-monitor-help__title {
    margin: 0 0 12px;
    font-size: clamp(1.5rem, 4vw, 2rem);
    line-height: 1.2;
}

.sokoli-monitor-help__links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 18px;
}

.sokoli-monitor-help__links p {
    flex-basis: 100%;
    margin: 0;
}

.sokoli-monitor-help__link {
    display: inline-block;
    max-width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    background: #075985;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}

.sokoli-monitor-help__link:hover {
    background: #0c4a6e;
    color: #ffffff;
}

.sokoli-monitor-help__link:focus-visible {
    outline: 3px solid #f59e0b;
    outline-offset: 3px;
}

.ssm-frontend { margin: 0; background: #f1f5f9; color: #172033; font-family: system-ui, sans-serif; }
.ssm-shell { box-sizing: border-box; width: min(1120px, 100%); min-height: 100vh; margin: 0 auto; padding: 32px 20px 56px; }
.ssm-shell *, .ssm-shell *::before, .ssm-shell *::after { box-sizing: border-box; }
.ssm-top, .ssm-detail-head, .ssm-card-head, .ssm-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ssm-top { margin-bottom: 24px; }
.ssm-kicker, .ssm-muted { color: #475569; }
.ssm-kicker { color: #475569; }
.ssm-kicker { margin: 0 0 5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.ssm-shell h1, .ssm-shell h2, .ssm-shell h3, .ssm-shell p { overflow-wrap: anywhere; }
.ssm-shell h1 { margin: 0; }
.ssm-auth-card, .ssm-card, .ssm-panel, .ssm-empty, .ssm-summary > div { background: #fff; border: 1px solid #dbe3ee; border-radius: 14px; box-shadow: 0 8px 24px rgba(15, 23, 42, .06); }
.ssm-auth-card { max-width: 440px; margin: 9vh auto 0; padding: 28px; }
.ssm-form { display: grid; gap: 18px; }
.ssm-form label { display: grid; gap: 7px; font-weight: 650; }
.ssm-form input, .ssm-form select { width: 100%; min-height: 44px; padding: 11px; border: 1px solid #94a3b8; border-radius: 8px; background: #fff; color: #172033; font: inherit; }
.ssm-onboarding-code { display: inline-block; max-width: 100%; padding: 10px 12px; border-radius: 8px; background: #e2e8f0; color: #0f172a; font-size: clamp(.92rem, 3.8vw, 1.1rem); font-weight: 800; letter-spacing: .04em; overflow-wrap: anywhere; }
.ssm-shell button, .ssm-link { display: inline-block; border: 0; border-radius: 8px; padding: 10px 14px; background: #075985; color: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.ssm-summary, .ssm-grid, .ssm-item-grid { display: grid; gap: 16px; }
.ssm-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 24px; }
.ssm-summary > div { padding: 18px; }
.ssm-summary strong, .ssm-summary span { display: block; }
.ssm-summary strong { font-size: 1.7rem; }
.ssm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ssm-card, .ssm-panel, .ssm-empty { min-width: 0; max-width: 100%; padding: 20px; }
.ssm-card h2, .ssm-item h3 { margin: 0; }
.ssm-card-meta { display: grid; gap: 4px; margin: 10px 0; }
.ssm-card-meta div { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.ssm-card-meta dt { color: #64748b; font-weight: 700; }
.ssm-card-meta dt::after { content: ':'; }
.ssm-card-meta dd { min-width: 0; margin: 0; font-weight: 750; overflow-wrap: anywhere; }
.ssm-badge { flex: 0 0 auto; padding: 5px 9px; border-radius: 999px; background: #e2e8f0; color: #334155; font-size: .82rem; font-weight: 800; }
.ssm-online, .ssm-current, .ssm-recovery { background: #dcfce7; color: #166534; }
.ssm-offline, .ssm-critical { background: #fee2e2; color: #991b1b; }
.ssm-stale, .ssm-warning { background: #fef3c7; color: #92400e; }
.ssm-partial, .ssm-info, .ssm-unknown { background: #e0f2fe; color: #075985; }
.ssm-notice { padding: 12px 14px; border-left: 4px solid #d97706; background: #fffbeb; }
.ssm-detail-head, .ssm-panel { margin-bottom: 18px; }
.ssm-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; }
.ssm-facts div { padding: 12px; background: #f8fafc; border-radius: 8px; }
.ssm-facts dt { color: #64748b; }
.ssm-facts dd { margin: 5px 0 0; font-weight: 750; overflow-wrap: anywhere; }
.ssm-item { padding: 12px; border: 1px solid #e2e8f0; border-radius: 9px; }
.ssm-item p { margin: 5px 0 0; }
.ssm-pagination { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; }
.ssm-filters { display: grid; grid-template-columns: minmax(0, 2fr) minmax(180px, 1fr) auto auto; gap: 14px; align-items: end; margin: 0 0 14px; padding: 18px; border: 1px solid #dbe3ee; border-radius: 14px; background: #fff; }
.ssm-filters label { display: grid; gap: 7px; min-width: 0; font-weight: 700; }
.ssm-filters input, .ssm-filters select, .ssm-filters button, .ssm-clear { min-height: 44px; width: 100%; padding: 10px 12px; border: 1px solid #94a3b8; border-radius: 8px; background: #fff; color: #172033; font: inherit; }
.ssm-filters select { min-width: 0; max-width: 100%; text-overflow: ellipsis; }
.ssm-filters button { border-color: #075985; background: #075985; color: #fff; font-weight: 800; }
.ssm-clear { display: inline-flex; align-items: center; justify-content: center; text-align: center; font-weight: 750; text-decoration: none; }
.ssm-results-count { margin: 0 0 16px; color: #475569; font-weight: 750; }
.ssm-shell a:focus-visible, .ssm-shell button:focus-visible, .ssm-shell input:focus-visible, .ssm-shell select:focus-visible { outline: 3px solid #f59e0b; outline-offset: 3px; }
.ssm-shell textarea:focus-visible { outline: 3px solid #f59e0b; outline-offset: 3px; }
.ssm-link-secondary { border: 1px solid #075985; background: #fff; color: #075985; }
.ssm-policy-nav, .ssm-card-actions, .ssm-primary-nav { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ssm-policy-nav { margin: 0 0 20px; }
.ssm-primary-nav { margin: 0 0 24px; }
.ssm-primary-nav [aria-current="page"] { background: #075985; color: #fff; }
.ssm-alert-filters { grid-template-columns: repeat(3, minmax(0, 1fr)) auto auto; }
.ssm-alert-row { align-items: flex-start; }
.ssm-alert-row h2 { margin: 0; }
.ssm-trend-filters { min-width: 0; max-width: 100%; overflow: hidden; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; }
.ssm-trend-figure { margin: 18px 0 0; }
.ssm-trend-panel { overflow: hidden; contain: inline-size; }
.ssm-trend-chart { display: block; width: 100%; height: auto; min-height: 220px; border: 1px solid #dbe3ee; border-radius: 10px; background: #f8fafc; }
.ssm-trend-chart line { stroke: #94a3b8; stroke-width: 1; }
.ssm-trend-chart .ssm-trend-grid { stroke: #dbe3ee; }
.ssm-trend-axis-label { fill: #475569; font-size: 12px; font-weight: 700; }
.ssm-trend-chart polyline { fill: none; stroke: #075985; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ssm-trend-point { fill: #075985; stroke: #fff; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.ssm-trend-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 16px 0; }
.ssm-trend-summary div { min-width: 0; padding: 10px 12px; border: 1px solid #dbe3ee; border-radius: 8px; background: #f8fafc; }
.ssm-trend-summary dt { color: #475569; font-size: .82rem; font-weight: 700; }
.ssm-trend-summary dd { margin: 3px 0 0; color: #0f172a; font-size: 1.05rem; font-weight: 800; }
.ssm-trend-figure figcaption { margin-top: 10px; color: #475569; }
.ssm-trend-table { display: block; width: 100%; min-width: 0; max-width: 100%; margin-top: 18px; overflow: hidden; }
.ssm-trend-table summary { cursor: pointer; font-weight: 750; }
.ssm-table-scroll { width: 100%; min-width: 0; max-width: 100%; margin-top: 12px; overflow-x: auto; }
.ssm-table-scroll:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
.ssm-table-scroll table { width: 100%; table-layout: fixed; border-collapse: collapse; }
.ssm-table-scroll th, .ssm-table-scroll td { padding: 9px 10px; border-bottom: 1px solid #e2e8f0; text-align: left; white-space: normal; overflow-wrap: anywhere; }
.ssm-policy-panel { max-width: 920px; }
.ssm-policy-intro { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; }
.ssm-policy-form { display: grid; gap: 18px; }
.ssm-policy-form fieldset { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; min-width: 0; margin: 0; padding: 18px; border: 1px solid #cbd5e1; border-radius: 10px; }
.ssm-policy-form legend { padding: 0 6px; font-weight: 800; }
.ssm-policy-form label { display: grid; gap: 7px; min-width: 0; font-weight: 700; }
.ssm-policy-form input[type="number"], .ssm-policy-form textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #94a3b8; border-radius: 8px; background: #fff; color: #172033; font: inherit; }
.ssm-policy-form textarea { min-height: 150px; resize: vertical; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: normal; white-space: pre; }
.ssm-policy-toggle { grid-template-columns: auto minmax(0, 1fr) !important; align-items: center; align-self: end; min-height: 44px; }
.ssm-policy-toggle input[type="checkbox"] { width: 22px; height: 22px; margin: 0; }
.ssm-policy-toggle input[type="hidden"] { display: none; }
.ssm-field-help { display: block; color: #475569; font-size: .9rem; font-weight: 500; line-height: 1.45; }
.ssm-policy-reset { margin-top: 18px; padding-top: 18px; border-top: 1px solid #e2e8f0; }
.ssm-policy-reset button { border: 1px solid #b91c1c; background: #fff; color: #991b1b; }

@media (max-width: 820px) {
    .ssm-filters { grid-template-columns: 1fr 1fr; }
    .ssm-alert-filters, .ssm-trend-filters { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
    .ssm-shell { padding: 18px 12px 36px; }
    .ssm-top, .ssm-detail-head { align-items: flex-start; flex-direction: column; }
    .ssm-summary, .ssm-grid, .ssm-facts { grid-template-columns: 1fr; }
    .ssm-filters { grid-template-columns: 1fr; }
    .ssm-card-head, .ssm-item { align-items: flex-start; }
    .ssm-auth-card { margin-top: 3vh; padding: 20px; }
    .ssm-policy-form fieldset { grid-template-columns: 1fr; padding: 14px; }
    .ssm-policy-nav .ssm-link, .ssm-card-actions .ssm-link, .ssm-primary-nav .ssm-link { width: 100%; text-align: center; }
    .ssm-alert-filters, .ssm-trend-filters { grid-template-columns: 1fr; }
    .ssm-trend-chart { min-height: 160px; }
    .ssm-trend-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
