.bso-notice {
    --bso-surface: #ffffff;
    --bso-text: #0f172a;
    --bso-text-muted: #64748b;
    --bso-border: #e2e8f0;
    --bso-brand: #198855;
    --bso-brand-hover: #157a4a;
    --bso-on-brand: #ffffff;
    --bso-danger: #dc3545;
    --bso-danger-hover: #b02a37;
    --bso-danger-soft: #fef2f2;
    --bso-danger-border: #fecaca;
    --bso-warn: #b45309;
    --bso-warn-bg: #fffbeb;
    --bso-warn-border: #fde68a;
    --bso-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
    --bso-r-sm: 8px;
    --bso-s-1: 8px;
    --bso-s-2: 16px;
    --bso-touch: 44px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--bso-s-2);
    align-items: center;
    width: 100%;
    margin: 0 0 var(--bso-s-2);
    padding: var(--bso-s-2);
    border: 1px solid var(--bso-border);
    border-radius: var(--bso-r-sm);
    background: var(--bso-surface);
    box-shadow: var(--bso-shadow);
    box-sizing: border-box;
    isolation: isolate;
}

html[data-bs-theme="dark"] .bso-notice {
    --bso-surface: #161b22;
    --bso-text: #e6edf3;
    --bso-text-muted: #8b949e;
    --bso-border: #30363d;
    --bso-brand: #238636;
    --bso-brand-hover: #2ea043;
    --bso-on-brand: #ffffff;
    --bso-danger: #f85149;
    --bso-danger-hover: #ff7b72;
    --bso-danger-soft: #3d1519;
    --bso-danger-border: #7f1d1d;
    --bso-warn: #fbbf24;
    --bso-warn-bg: #3d2f0f;
    --bso-warn-border: #854d0e;
    --bso-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.bso-notice--warning {
    border-color: var(--bso-warn-border);
    background: var(--bso-warn-bg);
}

.bso-notice--danger {
    border-color: var(--bso-danger-border);
    background: var(--bso-danger-soft);
}

.bso-notice__main {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: var(--bso-s-1);
    align-items: start;
    min-width: 0;
}

.bso-notice__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.1rem;
    color: var(--bso-warn);
    font-size: 1rem;
    line-height: 1;
}

.bso-notice--danger .bso-notice__icon {
    color: var(--bso-danger);
}

.bso-notice__text {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.5;
    color: var(--bso-text);
}

.bso-notice--warning .bso-notice__text {
    color: var(--bso-warn);
}

.bso-notice--danger .bso-notice__text {
    color: var(--bso-danger);
}

.bso-notice__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--bso-touch);
    padding: 0 var(--bso-s-2);
    border: 1px solid transparent;
    border-radius: var(--bso-r-sm);
    background: var(--bso-brand);
    color: var(--bso-on-brand);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out, color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.bso-notice__action:hover,
.bso-notice__action:focus {
    background: var(--bso-brand-hover);
    border-color: var(--bso-brand-hover);
    color: var(--bso-on-brand);
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(25, 136, 85, 0.22);
}

.bso-notice__action:focus-visible {
    outline: 2px solid var(--bso-brand);
    outline-offset: 2px;
}

.bso-notice--danger .bso-notice__action {
    background: var(--bso-danger);
    border-color: var(--bso-danger);
}

.bso-notice--danger .bso-notice__action:hover,
.bso-notice--danger .bso-notice__action:focus {
    background: var(--bso-danger-hover);
    border-color: var(--bso-danger-hover);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.22);
}

.bso-notice--danger .bso-notice__action:focus-visible {
    outline-color: var(--bso-danger);
}

@media (max-width: 575.98px) {
    .bso-notice {
        grid-template-columns: minmax(0, 1fr);
    }

    .bso-notice__action {
        width: 100%;
    }
}
