.alert-demo {
    --alert-line: #d6dfe1;
    --alert-muted: #54636b;
    color: #1b252b;
    background: #fff;
    border: 1px solid #c4ccce;
    border-radius: 6px;
    overflow: hidden;
}
.alert-demo[hidden], .alert-demo-status[hidden], .alert-demo img[hidden] { display: none; }
.alert-demo-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 30px; border-bottom: 1px solid var(--alert-line); }
.alert-demo-eyebrow { margin: 0; color: var(--alert-muted); font-size: .75rem; line-height: 1.5; }
.alert-demo-heading h4 { margin: 4px 0 0; font-size: 1.375rem; font-weight: 550; line-height: 1.3; }
.alert-demo-reset { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; padding: 0; border: 1px solid #b3c3c8; border-radius: 4px; color: #176b7b; background: #fff; }
.alert-demo-reset:hover { background: #eaf2f3; }
.alert-demo-reset svg { width: 18px; height: 18px; }
.alert-demo-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.alert-demo-settings, .alert-demo-preview { min-width: 0; padding: 28px 30px; }
.alert-demo-settings { display: grid; align-content: start; gap: 24px; }
.alert-demo-preview { border-left: 1px solid var(--alert-line); background: #f6f8f9; }
.alert-demo-field { display: grid; gap: 8px; color: #43545d; font-size: .8125rem; }
.alert-demo :is(select, input[type="number"]) { min-height: 44px; background: #fff; color: #1b252b; border: 1px solid #82969d; border-radius: 4px; font-size: .875rem; }
.alert-demo select { width: 100%; min-width: 0; padding: 10px 12px; text-overflow: ellipsis; }
.alert-demo input[type="number"] { width: 74px; padding: 8px 10px; font-variant-numeric: tabular-nums; }
.alert-demo-threshold > label { display: flex; justify-content: space-between; font-size: .8125rem; color: #43545d; margin-bottom: 8px; }
.alert-demo-threshold > label span { color: var(--alert-muted); }
.alert-demo-input-row { display: flex; align-items: center; gap: 20px; }
.alert-demo input[type="range"] { flex: 1; min-width: 0; width: 100%; height: 44px; margin: 0; padding: 0; accent-color: #176b7b; cursor: pointer; }
.alert-demo :is(input, select, button):focus-visible { outline: 2px solid #176b7b; outline-offset: 3px; }
.alert-demo-schedule { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.alert-demo-hours { display: flex; align-items: center; gap: 10px; }
.alert-demo-toggle { display: flex; align-items: center; gap: 10px; font-size: .8125rem; min-height: 44px; cursor: pointer; }
.alert-demo-toggle input { width: 20px; height: 20px; margin: 0; accent-color: #176b7b; }
.alert-demo-game { display: flex; align-items: center; gap: 14px; min-height: 56px; }
.alert-demo-game img { width: 56px; height: 56px; flex-shrink: 0; object-fit: cover; border-radius: 6px; }
.alert-demo-game h5 { margin: 4px 0 0; font-size: 1.125rem; line-height: 1.4; font-weight: 550; overflow-wrap: anywhere; }
.alert-demo-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 28px 0; margin: 0; border-bottom: 1px solid var(--alert-line); }
.alert-demo-metrics dt { color: var(--alert-muted); font-size: .75rem; margin-bottom: 10px; }
.alert-demo-metrics dd { margin: 0; font-size: .8125rem; color: var(--alert-muted); white-space: nowrap; }
.alert-demo-metrics strong { font-size: 1.75rem; font-weight: 550; color: #1b252b; font-variant-numeric: tabular-nums; }
.alert-demo-result { display: flex; align-items: start; gap: 12px; padding: 26px 0 0; min-height: 114px; }
.alert-demo-result-mark { width: 8px; height: 8px; flex-shrink: 0; margin-top: 6px; border-radius: 50%; background: #77858d; }
.alert-demo-result[data-state="matched"] .alert-demo-result-mark { background: #176b7b; box-shadow: 0 0 0 4px #176b7b16; }
.alert-demo-result[data-state="unknown"] .alert-demo-result-mark { background: #9d7429; }
.alert-demo-result h5 { margin: 0 0 9px; font-size: 1rem; font-weight: 550; line-height: 1.3; }
.alert-demo-result p { margin: 0; font-size: .8125rem; line-height: 1.6; color: #43545d; }
.alert-demo-cooldown-note, .alert-demo-observed { font-size: .75rem; line-height: 1.6; color: var(--alert-muted); }
.alert-demo-cooldown-note { margin: 18px 0 12px; }
.alert-demo-observed { margin: 0; }
.alert-demo-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; padding: 16px 30px; border-top: 1px solid var(--alert-line); font-size: .6875rem; color: var(--alert-muted); line-height: 1.6; }
.alert-demo-status:not([hidden]) { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; font-size: .875rem; color: #54636b; }
.alert-demo-status p { margin: 0; }
.alert-demo-status button { min-height: 44px; color: #145e6b; background: #fff; border-color: #82969d; }
@media (max-width: 760px) {
    .alert-demo-heading { padding: 20px 16px; }
    .alert-demo-heading h4 { font-size: 1.125rem; }
    .alert-demo-layout { grid-template-columns: 1fr; }
    .alert-demo-settings, .alert-demo-preview { padding: 24px 16px; }
    .alert-demo-preview { border-left: 0; border-top: 1px solid var(--alert-line); }
    .alert-demo-metrics { gap: 12px; padding-block: 24px; }
    .alert-demo-metrics strong { font-size: 1.5rem; }
    .alert-demo-footer { padding: 16px; }
}
