:root {
    --sl-sidebar: #111827;
    --sl-sidebar-link: #cbd5e1;
    --sl-accent: #0f766e;
    --sl-sidebar-width: 260px;
}

body {
    background: #f5f7fb;
    color: #172033;
    overflow-x: hidden;
}

.sl-app-shell {
    display: grid;
    grid-template-columns: var(--sl-sidebar-width) minmax(0, 1fr);
    min-height: 100vh;
    width: 100%;
}

.sl-public-shell {
    min-height: 100vh;
    background: #f5f7fb;
}

.sl-public-nav {
    min-height: 76px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px min(5vw, 56px);
}

.sl-public-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--bs-body-color);
    font-size: 1.15rem;
    font-weight: 800;
    text-decoration: none;
}

.sl-public-brand i {
    color: var(--sl-accent);
}

.sl-public-logo-img {
    display: block;
    max-width: 220px;
    max-height: 52px;
    object-fit: contain;
}

.sl-settings-logo-preview {
    max-width: 260px;
    max-height: 90px;
    object-fit: contain;
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    padding: 8px;
    background: var(--bs-body-bg);
}

.sl-public-hero {
    width: min(1180px, calc(100vw - 32px));
    min-height: calc(100vh - 180px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
    gap: clamp(28px, 6vw, 72px);
    align-items: center;
    padding: 32px 0 64px;
}

.sl-public-kicker {
    color: var(--sl-accent);
    display: flex;
    gap: 8px;
    align-items: center;
    font-weight: 700;
    margin-bottom: 14px;
}

.sl-public-hero h1 {
    font-size: clamp(3rem, 8vw, 6.5rem);
    line-height: .95;
    margin: 0 0 18px;
}

.sl-public-hero p {
    color: var(--bs-secondary-color);
    font-size: 1.15rem;
    max-width: 680px;
    margin-bottom: 28px;
}

.sl-public-system {
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    background: rgba(var(--bs-body-bg-rgb), .92);
    box-shadow: 0 24px 80px rgba(15, 23, 42, .12);
    overflow: hidden;
}

.sl-public-system-head {
    height: 42px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 14px;
    border-bottom: 1px solid var(--bs-border-color);
    background: var(--bs-tertiary-bg);
}

.sl-public-system-head span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--bs-secondary-color);
    opacity: .45;
}

.sl-public-module {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    padding: 18px;
    border-bottom: 1px solid var(--bs-border-color);
}

.sl-public-module:last-child {
    border-bottom: 0;
}

.sl-public-module i {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--bs-tertiary-bg);
    color: var(--sl-accent);
    font-size: 1.25rem;
}

.sl-public-module strong,
.sl-public-module small {
    display: block;
}

.sl-public-module small {
    color: var(--bs-secondary-color);
}

.sl-public-module.active {
    background: rgba(15, 118, 110, .08);
}

.sl-public-band {
    width: min(1180px, calc(100vw - 32px));
    margin: -40px auto 56px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.sl-public-band > div {
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    background: var(--bs-body-bg);
    padding: 16px;
}

.sl-public-band i,
.sl-public-band strong,
.sl-public-band span {
    display: block;
}

.sl-public-band i {
    color: var(--sl-accent);
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.sl-public-band span {
    color: var(--bs-secondary-color);
    margin-top: 4px;
}

.sl-public-flash {
    width: min(1180px, calc(100vw - 32px));
    margin: 0 auto;
}

.sl-public-selfservice,
.sl-public-reset {
    width: min(1180px, calc(100vw - 32px));
    margin: 0 auto 56px;
}

.sl-public-selfservice {
    display: grid;
    gap: 18px;
}

.sl-public-selfservice h2 {
    font-size: 1.35rem;
    margin-bottom: 8px;
}

.sl-public-selfservice-heading {
    max-width: 720px;
}

.sl-public-selfservice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
}

.sl-public-selfservice-card {
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    background: var(--bs-body-bg);
    padding: 22px;
    display: grid;
    gap: 18px;
}

.sl-public-selfservice-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.sl-public-reset {
    min-height: calc(100vh - 150px);
    display: grid;
    place-items: center;
}

.sl-public-reset-panel {
    width: min(520px, 100%);
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    background: var(--bs-body-bg);
    padding: 24px;
    display: grid;
    gap: 16px;
}

.sl-public-shell {
    background:
        radial-gradient(circle at 12% 10%, rgba(20, 184, 166, .12), transparent 30rem),
        radial-gradient(circle at 82% 8%, rgba(37, 99, 235, .13), transparent 32rem),
        linear-gradient(180deg, #f8fafc 0%, #eef4f8 100%);
}

.sl-public-nav {
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(18px);
    background: rgba(248, 250, 252, .82);
    border-bottom: 1px solid rgba(148, 163, 184, .22);
}

.sl-public-menu {
    display: flex;
    align-items: center;
    gap: .45rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.sl-public-menu > a:not(.btn) {
    color: #475569;
    text-decoration: none;
    padding: .45rem .72rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: .9rem;
}

.sl-public-menu > a:not(.btn):hover,
.sl-public-menu > a.active {
    color: #0f172a;
    background: rgba(15, 118, 110, .1);
}

.sl-public-hero-modern {
    min-height: calc(100vh - 118px);
}

.sl-public-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.sl-public-signal {
    min-height: 430px;
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 8px;
    padding: 1.2rem;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .92), rgba(241, 245, 249, .76)),
        radial-gradient(circle at center, rgba(20, 184, 166, .12), transparent 18rem);
    box-shadow: 0 28px 80px rgba(15, 23, 42, .14);
    position: relative;
    overflow: hidden;
    display: grid;
    align-content: center;
    gap: .9rem;
}

.sl-public-signal-ring {
    position: absolute;
    width: 18rem;
    height: 18rem;
    border: 1px solid rgba(20, 184, 166, .26);
    border-radius: 50%;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    box-shadow: inset 0 0 0 4rem rgba(20, 184, 166, .035), 0 0 0 4rem rgba(37, 99, 235, .035);
    animation: publicRadarSpin 18s linear infinite;
}

@keyframes publicRadarSpin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.sl-public-signal-card,
.sl-public-signal-row {
    position: relative;
    z-index: 1;
    border: 1px solid rgba(148, 163, 184, .3);
    background: rgba(255, 255, 255, .78);
    border-radius: 8px;
    padding: .85rem;
}

.sl-public-live-dot {
    display: inline-block;
    width: .65rem;
    height: .65rem;
    border-radius: 50%;
    background: #14b8a6;
    box-shadow: 0 0 0 rgba(20, 184, 166, .45);
    animation: livePulse 1.7s infinite;
    margin-right: .45rem;
}

.sl-public-signal-card strong,
.sl-public-signal-card small {
    display: block;
}

.sl-public-signal-card small {
    color: #64748b;
    margin-top: .25rem;
}

.sl-public-signal-row {
    display: flex;
    align-items: center;
    gap: .45rem;
}

.sl-public-signal-row span {
    min-width: 5rem;
    color: #475569;
    font-weight: 700;
}

.sl-public-signal-row i {
    width: .75rem;
    height: .75rem;
    border-radius: 50%;
    background: #2563eb;
    animation: publicBlink 2.4s ease-in-out infinite;
}

.sl-public-signal-row:nth-child(4) i { background: #ef4444; animation-delay: .3s; }
.sl-public-signal-row:nth-child(5) i { background: #f97316; animation-delay: .6s; }

@keyframes publicBlink {
    50% { opacity: .35; transform: scale(.72); }
}

@keyframes countryPulse {
    0% { opacity: .85; transform: scale(.82); }
    100% { opacity: 0; transform: scale(1.42); }
}

@keyframes heatFlash {
    0% { transform: scale(.7); filter: brightness(1.6); }
    65% { transform: scale(1.2); }
    100% { transform: scale(1); filter: brightness(1); }
}

@keyframes credentialSlide {
    0% { opacity: 0; transform: translateX(18px) scale(.985); }
    75% { opacity: 1; transform: translateX(-2px) scale(1); }
    100% { opacity: 1; transform: translateX(0) scale(1); }
}

.sl-public-feature-grid,
.sl-public-form-shell,
.sl-public-attack-summary,
.sl-public-attack-grid,
.sl-public-page-hero {
    width: min(1180px, calc(100vw - 32px));
    margin-left: auto;
    margin-right: auto;
}

.sl-public-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 4rem;
}

.sl-public-feature-card,
.sl-public-form-card,
.sl-public-note-card,
.sl-public-attack-card,
.sl-public-attack-summary article {
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 8px;
    background: rgba(255, 255, 255, .84);
    box-shadow: 0 18px 50px rgba(15, 23, 42, .08);
}

.sl-public-feature-card {
    padding: 1.25rem;
    color: inherit;
    text-decoration: none;
    display: grid;
    gap: .45rem;
    transition: transform .2s ease, box-shadow .2s ease;
}

.sl-public-feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 58px rgba(15, 23, 42, .12);
}

.sl-public-feature-card i,
.sl-public-form-icon {
    width: 2.6rem;
    height: 2.6rem;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(15, 118, 110, .1);
    color: #0f766e;
    font-size: 1.25rem;
}

.sl-public-feature-card span,
.sl-public-page-hero p,
.sl-public-note-card,
.sl-public-attack-card span {
    color: #64748b;
}

.sl-public-page-hero {
    padding: 3.2rem 0 1.4rem;
}

.sl-public-page-hero h1 {
    font-size: clamp(2.4rem, 6vw, 4.8rem);
    line-height: 1;
    margin-bottom: .8rem;
}

.sl-public-page-hero p {
    max-width: 760px;
    font-size: 1.1rem;
}

.sl-public-form-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, .55fr);
    gap: 1rem;
    align-items: start;
    margin-bottom: 4rem;
}

.sl-public-form-card,
.sl-public-note-card {
    padding: 1.4rem;
}

.sl-public-note-card ul {
    margin: 0;
    padding-left: 1.1rem;
}

.sl-public-attack-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 340px);
    gap: 1rem;
    align-items: center;
}

.sl-public-attack-orbit {
    height: 220px;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, .28);
    background: radial-gradient(circle, rgba(37, 99, 235, .12), rgba(255, 255, 255, .68));
    position: relative;
    overflow: hidden;
}

.sl-public-attack-orbit span {
    position: absolute;
    width: .8rem;
    height: .8rem;
    border-radius: 50%;
    background: #ef4444;
    top: 50%;
    left: 50%;
    transform-origin: -4rem -2rem;
    animation: publicOrbit 5s linear infinite;
}

.sl-public-attack-orbit span:nth-child(2) { background: #7c3aed; animation-duration: 7s; transform-origin: 5rem -3rem; }
.sl-public-attack-orbit span:nth-child(3) { background: #f97316; animation-duration: 6s; transform-origin: -2rem 4rem; }

@keyframes publicOrbit {
    to { transform: rotate(360deg); }
}

.sl-public-attack-summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .8rem;
    margin-bottom: 1rem;
}

.sl-public-attack-summary article {
    padding: 1rem;
    display: grid;
    gap: .25rem;
}

.sl-public-attack-summary i {
    color: #0f766e;
    font-size: 1.35rem;
}

.sl-public-attack-summary strong {
    font-size: 1.7rem;
}

.sl-public-attack-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 4rem;
}

.sl-public-attack-wide,
.sl-public-attack-flow {
    grid-column: 1 / -1;
}

.sl-public-attack-port {
    grid-column: 1;
    grid-row: 3;
}

.sl-public-attack-live {
    grid-column: 2;
    grid-row: 3 / span 2;
    display: flex;
    flex-direction: column;
}

.sl-public-attack-mix-card {
    grid-column: 1;
    grid-row: 4;
}

.sl-public-attack-card {
    padding: 1.1rem;
    overflow: hidden;
}

.sl-public-card-head {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    align-items: center;
    margin-bottom: 1rem;
}

.sl-public-card-head h2 {
    font-size: 1.05rem;
    margin: 0;
}

.public-flow {
    position: relative;
    height: 172px;
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(15, 23, 42, .03), rgba(15, 118, 110, .04));
    overflow: hidden;
}

.public-flow::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(90deg, transparent 0, transparent 78px, rgba(100, 116, 139, .13) 79px);
}

.public-flow-lane {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(100, 116, 139, .28);
}

.public-flow-lane.cowrie { top: 44px; }
.public-flow-lane.ufw { top: 86px; }
.public-flow-lane.fail2ban { top: 128px; }

.public-flow-label {
    position: absolute;
    left: .8rem;
    font-size: .75rem;
    color: #64748b;
    background: rgba(255, 255, 255, .82);
    padding: .05rem .38rem;
    border-radius: 999px;
    z-index: 1;
}

.public-flow-label.cowrie { top: 31px; }
.public-flow-label.ufw { top: 73px; }
.public-flow-label.fail2ban { top: 115px; }

.public-flow-dot {
    position: absolute;
    left: -14px;
    top: var(--flow-y, 86px);
    width: 12px;
    height: 12px;
    margin-top: -6px;
    border-radius: 50%;
    background: var(--flow-color, #2563eb);
    box-shadow: 0 0 0 .25rem rgba(37, 99, 235, .15), 0 0 20px var(--flow-color, #2563eb);
    animation: publicFlowMove 4.8s linear forwards;
}

@keyframes publicFlowMove {
    0% { left: -14px; opacity: 0; transform: scale(.75); }
    8% { opacity: 1; transform: scale(1); }
    88% { opacity: 1; }
    100% { left: calc(100% + 14px); opacity: 0; transform: scale(.85); }
}

.public-attack-mix {
    display: grid;
    grid-template-columns: 1fr;
    gap: .85rem;
    align-items: center;
    justify-items: center;
}

.public-attack-donut {
    width: min(100%, 260px);
    max-width: 260px;
    aspect-ratio: 1 / 1;
    height: auto;
}

.public-attack-legend {
    display: grid;
    gap: .55rem;
    width: 100%;
}

.public-attack-legend span {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: .5rem;
    align-items: center;
    font-size: .86rem;
    color: #64748b;
}

.public-attack-legend i {
    width: .72rem;
    height: .72rem;
    border-radius: 50%;
    display: inline-block;
}

.public-attack-legend em {
    font-style: normal;
}

.public-attack-legend strong {
    color: #0f172a;
    font-variant-numeric: tabular-nums;
}

.public-country-bubbles {
    min-height: 170px;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    align-items: center;
}

.public-country-bubble {
    --bubble-size: 64px;
    --bubble-color: #2563eb;
    width: var(--bubble-size);
    height: var(--bubble-size);
    border-radius: 50%;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--bubble-color) 70%, #fff 30%), var(--bubble-color));
    position: relative;
    box-shadow: 0 .8rem 1.8rem rgba(37, 99, 235, .16);
}

.public-country-bubble strong { line-height: 1; }
.public-country-bubble span { font-size: .72rem; opacity: .9; }
.public-country-bubble.is-pulsing::after {
    content: "";
    position: absolute;
    inset: -.3rem;
    border-radius: 50%;
    border: 2px solid var(--bubble-color);
    animation: countryPulse 1.45s ease-out 2;
}

.public-heatmap {
    display: grid;
    gap: .3rem;
    overflow-x: hidden;
}

.public-heat-row {
    display: grid;
    grid-template-columns: minmax(5.85rem, 6.3rem) repeat(var(--heat-cols, 30), minmax(.22rem, 1fr));
    gap: .12rem;
    align-items: center;
    width: 100%;
}

.public-heat-row code {
    font-size: .72rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.public-heat-cell {
    width: 100%;
    min-width: .2rem;
    height: .98rem;
    border-radius: 3px;
    background: rgba(100, 116, 139, .14);
}

.public-heat-cell.is-hot {
    background: color-mix(in srgb, #ef4444 var(--heat-alpha, 20%), rgba(100, 116, 139, .15));
    box-shadow: 0 0 .5rem rgba(239, 68, 68, .2);
}

.public-heat-cell.is-fresh {
    animation: heatFlash 1.3s ease-out 1;
}

.public-port-radar {
    width: 100%;
    height: 260px;
}

.public-event-feed {
    display: grid;
    gap: .45rem;
    align-content: start;
}

.sl-public-attack-live .public-event-feed {
    flex: 1 1 auto;
}

.public-event {
    display: grid;
    grid-template-columns: .75rem minmax(0, 1fr) auto;
    gap: .65rem;
    align-items: center;
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 8px;
    padding: .62rem .72rem;
}

.public-event > span {
    width: .75rem;
    height: .75rem;
    border-radius: 50%;
    background: #2563eb;
}

.public-event > span.ufw { background: #ef4444; }
.public-event > span.fail2ban { background: #f97316; }
.public-event small,
.public-event time {
    color: #64748b;
    font-size: .78rem;
}

.public-event div {
    min-width: 0;
}

.public-event strong,
.public-event small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.public-event.is-new {
    animation: credentialSlide .5s ease both;
    background: rgba(37, 99, 235, .06);
}

@media (max-width: 900px) {
    .sl-public-hero,
    .sl-public-attack-hero,
    .sl-public-form-shell,
    .sl-public-attack-grid {
        grid-template-columns: 1fr;
    }

    .sl-public-feature-grid,
    .sl-public-attack-summary {
        grid-template-columns: 1fr;
    }

    .sl-public-attack-flow,
    .sl-public-attack-port,
    .sl-public-attack-live,
    .sl-public-attack-mix-card {
        grid-column: auto;
        grid-row: auto;
    }

    .sl-public-menu {
        justify-content: flex-start;
    }
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #172033 0%, #0f766e 100%);
}

.auth-panel {
    width: min(440px, calc(100vw - 32px));
    background: var(--bs-body-bg);
    border-radius: 8px;
    padding: 32px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .25);
}

.brand-mark,
.sl-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0;
}

.sl-sidebar {
    position: sticky;
    top: 0;
    align-self: start;
    width: var(--sl-sidebar-width);
    height: 100vh;
    box-sizing: border-box;
    background: var(--sl-sidebar);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
    z-index: 1040;
    contain: paint;
}

.sl-sidebar-brand {
    padding: 22px 18px 18px;
}

.sl-logo {
    color: #fff;
    text-decoration: none;
    font-size: 1.25rem;
}

.sl-sidebar-menu {
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    flex-wrap: nowrap;
    padding: 0 18px 22px;
    max-width: var(--sl-sidebar-width);
    scrollbar-color: rgba(255, 255, 255, .32) transparent;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
}

.sl-sidebar-menu::-webkit-scrollbar {
    width: 8px;
}

.sl-sidebar-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .26);
    border-radius: 999px;
}

.sl-sidebar-menu::-webkit-scrollbar-track {
    background: transparent;
}

.sl-sidebar .nav-link {
    color: var(--sl-sidebar-link);
    border-radius: 6px;
    display: flex;
    gap: 10px;
    align-items: center;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.sl-sidebar .nav-link i,
.sl-nav-heading i {
    flex: 0 0 auto;
}

.sl-sidebar .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, .08);
}

.sl-nav-module {
    margin-top: 8px;
}

.sl-nav-heading {
    color: #fff;
    font-weight: 700;
    width: 100%;
    border: 0;
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-radius: 6px;
    max-width: 100%;
    overflow: hidden;
}

.sl-nav-heading span {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.sl-nav-heading:hover {
    background: rgba(255, 255, 255, .08);
}

.sl-nav-heading[aria-expanded="true"] .sl-nav-chevron {
    transform: rotate(180deg);
}

.sl-nav-chevron {
    transition: transform .18s ease;
}

.sl-sidebar .sl-nav-child {
    margin-left: 0;
    padding-left: 34px;
    font-size: .95rem;
}

.sl-main {
    min-width: 0;
    margin-left: 0;
    min-height: 100vh;
}

.sl-topbar {
    min-height: 84px;
    background: var(--bs-body-bg);
    border-bottom: 1px solid var(--bs-border-color);
    padding: 16px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.sl-topbar h1 {
    font-size: 1.5rem;
    margin: 0;
}

.sl-content {
    padding: 28px;
}

.sl-section,
.metric {
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    padding: 20px;
}

.sl-section h2 {
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.metric span {
    display: block;
    color: var(--bs-secondary-color);
}

.metric strong {
    font-size: 2rem;
}

.system-chart-wrap {
    width: 100%;
    min-height: 140px;
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    overflow: hidden;
    background: var(--bs-tertiary-bg);
}

.system-chart {
    display: block;
    width: 100%;
    height: 170px;
}

.system-core-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
}

.system-core-row,
.system-disk-row,
.system-net-row {
    display: grid;
    gap: 10px;
    align-items: center;
}

.system-core-row {
    grid-template-columns: 64px minmax(0, 1fr) 58px;
}

.system-disk-row {
    grid-template-columns: minmax(150px, 1.2fr) minmax(140px, 1fr) minmax(120px, .8fr);
    padding: 10px 0;
    border-bottom: 1px solid var(--bs-border-color);
}

.system-disk-row:last-child {
    border-bottom: 0;
}

.system-disk-row span,
.system-disk-row strong,
.system-net-row span,
.system-net-row strong {
    display: block;
}

.system-disk-row span,
.system-net-row span {
    color: var(--bs-secondary-color);
    font-size: .875rem;
}

.system-net-row {
    grid-template-columns: minmax(90px, .8fr) minmax(0, 1fr) minmax(0, 1fr);
    padding: 9px 0;
    border-bottom: 1px solid var(--bs-border-color);
}

.system-net-row:last-child {
    border-bottom: 0;
}

.system-bar {
    height: 10px;
    border-radius: 999px;
    background: var(--bs-tertiary-bg);
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(100, 116, 139, .18);
}

.system-bar-lg {
    height: 16px;
}

.system-bar i {
    display: block;
    height: 100%;
    min-width: 2px;
    border-radius: inherit;
    transition: width .25s ease;
}

.system-bar-ok {
    background: #0f766e;
}

.system-bar-warning {
    background: #d97706;
}

.system-bar-danger {
    background: #dc2626;
}

.system-process-table td,
.system-process-table th {
    white-space: nowrap;
}

.system-process-table td:last-child,
.system-process-table th:last-child {
    white-space: normal;
    min-width: 320px;
}

.btn-icon {
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    padding: 0;
}

.ldap-tree {
    min-height: 420px;
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    padding: 12px;
    overflow: auto;
}

.ldap-node {
    display: grid;
    grid-template-columns: 18px 22px minmax(120px, auto) minmax(0, 1fr);
    align-items: center;
    gap: 6px;
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    padding: 6px 8px;
    border-radius: 6px;
    color: var(--bs-body-color);
}

.ldap-node small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ldap-node-type {
    color: var(--sl-accent);
}

.ldap-node:hover {
    background: var(--bs-tertiary-bg);
}

.ldap-node.active {
    background: rgba(15, 118, 110, .12);
    color: var(--sl-accent);
}

.ldap-children {
    margin-left: 18px;
    border-left: 1px dashed var(--bs-border-color);
    padding-left: 8px;
}

.empty-state {
    min-height: 420px;
    border: 1px dashed var(--bs-border-color);
    border-radius: 8px;
    display: grid;
    place-items: center;
    text-align: center;
    color: var(--bs-secondary-color);
    padding: 32px;
}

.empty-state i {
    display: block;
    font-size: 3rem;
}

.ldap-entry-panel {
    min-height: 420px;
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    padding: 16px;
    overflow: auto;
    background: var(--bs-body-bg);
}

.ldap-entry-panel > .bi {
    display: block;
    font-size: 3rem;
    color: var(--bs-secondary-color);
    text-align: center;
    margin-top: 120px;
}

.ldap-entry-panel > p {
    color: var(--bs-secondary-color);
    text-align: center;
}

.ldap-value {
    white-space: pre-wrap;
    word-break: break-word;
}

.ldap-edit-form {
    min-width: 0;
}

.ldap-attribute-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 10px;
}

.ldap-attribute-row {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    background: var(--bs-body-bg);
}

.ldap-attribute-row-single {
    gap: 7px;
}

.ldap-attribute-row-single .form-text {
    margin-top: 0;
}

.ldap-single-value-input {
    min-height: 34px;
}

.ldap-user-form-sections {
    display: block;
}

.ldap-user-form-section {
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    background: var(--bs-body-bg);
    margin-bottom: 14px;
    overflow: hidden;
}

.ldap-user-form-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--bs-border-color);
    background: var(--bs-tertiary-bg);
}

.ldap-user-form-section-head-action {
    cursor: pointer;
    user-select: none;
}

.ldap-user-form-section-head-action:hover {
    background: var(--bs-secondary-bg);
}

.ldap-user-section-chevron {
    color: var(--bs-secondary-color);
    transition: transform .15s ease;
}

.ldap-user-form-section-head-action[aria-expanded="true"] .ldap-user-section-chevron {
    transform: rotate(180deg);
}

.ldap-user-form-section-head h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    margin: 0;
}

.ldap-user-form-section-head p {
    color: var(--bs-secondary-color);
    font-size: .82rem;
    margin: 4px 0 0;
}

.ldap-user-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
    padding: 14px;
}

.ldap-user-form-field {
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
}

.ldap-user-form-field textarea {
    min-height: 86px;
}

.ldap-user-field-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.ldap-user-field-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    color: var(--bs-secondary-color);
    font-size: .75rem;
}

.ldap-user-field-meta code {
    color: var(--bs-secondary-color);
    font-size: .75rem;
}

.ldap-attribute-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 8px;
}

.ldap-attribute-head code {
    display: inline-block;
    max-width: min(100%, 260px);
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
    white-space: nowrap;
}

.ldap-attribute-head .badge {
    border: 1px solid var(--bs-border-color);
    color: var(--bs-secondary-color);
    font-weight: 500;
    margin-left: 4px;
}

.ldap-entry-overview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.ldap-entry-stat {
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    padding: 10px 12px;
    background: var(--bs-tertiary-bg);
}

.ldap-entry-stat span {
    color: var(--bs-secondary-color);
    display: block;
    font-size: .78rem;
}

.ldap-entry-stat strong {
    display: block;
    font-size: .95rem;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ldap-attribute-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 240px);
    gap: 10px;
    align-items: end;
}

.ldap-attribute-row textarea {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .875rem;
    resize: vertical;
}

.ldap-available-attributes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 8px;
}

.ldap-attribute-choice {
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
    padding: 10px 12px;
    text-align: left;
}

.ldap-attribute-choice:hover,
.ldap-attribute-choice:focus {
    border-color: var(--sl-accent);
    box-shadow: 0 0 0 .2rem rgba(15, 118, 110, .12);
}

.ldap-attribute-choice span,
.ldap-attribute-choice small {
    display: block;
}

.ldap-attribute-choice span {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.ldap-attribute-choice small {
    color: var(--bs-secondary-color);
}

.ldap-object-fields textarea {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .875rem;
    resize: vertical;
}

.ldap-relocate-target-tree {
    max-height: min(48vh, 420px);
    overflow: auto;
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    padding: 8px;
    background: var(--bs-body-bg);
}

.ldap-ou-selector-selection {
    display: grid;
    gap: 2px;
    min-height: 50px;
    padding: 8px 10px;
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    background: var(--bs-tertiary-bg);
}

.ldap-ou-selector-selection code {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ldap-ou-selector-tree {
    min-height: 180px;
    max-height: min(48vh, 360px);
}

.clamav-path-tree {
    min-height: 96px;
    max-height: min(42vh, 330px);
    overflow: auto;
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    padding: 8px;
    background: var(--bs-body-bg);
}

@media (min-width: 768px) {
    .clamav-scan-submit {
        padding-top: 32px;
    }
}

.clamav-path-row {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 4px;
    align-items: stretch;
    border-radius: 6px;
}

.clamav-path-row.active {
    background: var(--bs-primary-bg-subtle);
}

.clamav-path-expander,
.clamav-path-choice {
    border: 0;
    background: transparent;
    color: var(--bs-body-color);
}

.clamav-path-expander {
    min-height: 38px;
}

.clamav-path-choice {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    column-gap: 6px;
    padding: 5px 8px;
    text-align: left;
}

.clamav-path-choice small {
    grid-column: 2;
    overflow: hidden;
    color: var(--bs-secondary-color);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.clamav-path-choice:disabled {
    opacity: .7;
}

.clamav-path-children {
    margin-left: 20px;
}

.ldap-relocate-target-node {
    min-width: 0;
}

.ldap-relocate-target-row {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: stretch;
    gap: 4px;
}

.ldap-relocate-target-toggle,
.ldap-relocate-target-choice {
    border: 0;
    background: transparent;
    color: var(--bs-body-color);
}

.ldap-relocate-target-toggle {
    width: 28px;
    min-height: 36px;
    padding: 0;
}

.ldap-relocate-target-toggle:disabled {
    opacity: .35;
}

.ldap-relocate-target-choice {
    min-width: 0;
    padding: 6px 8px;
    border-radius: 6px;
    text-align: left;
}

.ldap-relocate-target-choice span,
.ldap-relocate-target-choice small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ldap-relocate-target-choice small {
    color: var(--bs-secondary-color);
    font-size: .78rem;
}

.ldap-relocate-target-choice:hover,
.ldap-relocate-target-row.active .ldap-relocate-target-choice {
    background: rgba(15, 118, 110, .12);
    color: var(--sl-accent);
}

.ldap-relocate-target-children {
    margin-left: 22px;
    border-left: 1px dashed var(--bs-border-color);
    padding-left: 6px;
}

.ldap-copy-attribute-list {
    max-height: min(42vh, 360px);
    overflow: auto;
    display: grid;
    gap: 10px;
    padding-right: 4px;
}

.ldap-copy-attribute-row {
    display: grid;
    grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 10px;
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    background: var(--bs-tertiary-bg);
}

.ldap-copy-attribute-row textarea {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .875rem;
    resize: vertical;
}

.ldap-group-list {
    max-height: 640px;
    overflow: auto;
}

.ldap-group-list small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ldap-group-type {
    color: var(--bs-secondary-color);
    font-weight: 400;
}

.ldap-group-list .active .ldap-group-type {
    color: var(--bs-white);
}

.ldap-group-panel {
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    padding: 16px;
    background: var(--bs-body-bg);
}

.ldap-browser-group-editor {
    background: var(--bs-tertiary-bg);
}

.ldap-user-groups-panel {
    background: var(--bs-tertiary-bg);
}

.ldap-user-groups-list,
.ldap-user-group-candidates {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .875rem;
    min-height: 220px;
}

.ldap-user-wizard,
.ldap-group-wizard,
.ldap-ou-wizard {
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    padding: 16px;
    background: var(--bs-body-bg);
}

.ldap-members-list,
.ldap-members-editor {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .875rem;
}

.ldap-members-list {
    min-height: 260px;
}

.ldap-member-candidates {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .875rem;
    min-height: 260px;
}

.ldap-member-candidates option {
    overflow: hidden;
    text-overflow: ellipsis;
}

.ldap-matrix-wrap {
    max-height: 72vh;
    overflow: auto;
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
}

.ldap-matrix-table {
    min-width: 960px;
    margin-bottom: 0;
}

.ldap-matrix-table th,
.ldap-matrix-table td {
    white-space: nowrap;
}

.ldap-matrix-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--bs-body-bg);
}

.ldap-matrix-user {
    position: sticky;
    left: 0;
    z-index: 3;
    min-width: 260px;
    max-width: 360px;
    background: var(--bs-body-bg);
}

.ldap-matrix-table tbody .ldap-matrix-user {
    border-right: 1px solid var(--bs-border-color);
}

.ldap-matrix-group {
    max-width: 130px;
    vertical-align: bottom;
}

.ldap-matrix-group span,
.ldap-matrix-group small {
    display: block;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ldap-matrix-group small {
    color: var(--bs-secondary-color);
    font-weight: 400;
}

@media (max-width: 700px) {
    .ldap-attribute-row {
        min-width: 0;
    }

    .ldap-copy-attribute-row {
        grid-template-columns: 1fr;
    }

    .ldap-entry-overview,
    .ldap-attribute-toolbar {
        grid-template-columns: 1fr;
    }
}

.entry-dn {
    font-size: 1rem;
    word-break: break-word;
}

.audit-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--bs-border-color);
}

.audit-item span {
    display: block;
    color: var(--bs-secondary-color);
    word-break: break-word;
}

.apache-config-view {
    max-height: 620px;
    overflow: auto;
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    background: var(--bs-tertiary-bg);
    padding: 16px;
    font-size: .875rem;
}

.apache-config-editor {
    min-height: 560px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: .875rem;
    line-height: 1.5;
    tab-size: 4;
    white-space: pre;
    overflow: auto;
}

.apache-highlight-editor {
    position: relative;
}

.apache-highlight-editor .apache-config-editor {
    position: relative;
    z-index: 2;
    background: transparent;
    color: transparent;
    caret-color: var(--bs-body-color);
}

.apache-highlight-editor .apache-config-editor::selection {
    background: rgba(var(--bs-primary-rgb), .25);
    color: transparent;
}

.apache-highlight-layer {
    position: absolute;
    inset: 0;
    z-index: 1;
    margin: 0;
    padding: .375rem .75rem;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    background: var(--bs-tertiary-bg);
    color: var(--bs-body-color);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: .875rem;
    line-height: 1.5;
    overflow: hidden;
    pointer-events: none;
    tab-size: 4;
    white-space: pre;
}

.apache-highlight-layer code {
    display: block;
    min-width: max-content;
    transform-origin: top left;
}

.apache-token-comment {
    color: var(--bs-secondary-color);
    font-style: italic;
}

.apache-token-tag {
    color: #0d6efd;
    font-weight: 600;
}

.apache-token-directive {
    color: #6f42c1;
    font-weight: 600;
}

.apache-token-attribute {
    color: #0a58ca;
}

.apache-token-string {
    color: #198754;
}

.apache-token-variable {
    color: #d63384;
}

.apache-token-number {
    color: #fd7e14;
}

.apache-token-path {
    color: #20c997;
}

[data-bs-theme="dark"] .apache-token-tag {
    color: #6ea8fe;
}

[data-bs-theme="dark"] .apache-token-directive {
    color: #c29ffa;
}

[data-bs-theme="dark"] .apache-token-attribute {
    color: #9ec5fe;
}

[data-bs-theme="dark"] .apache-token-string {
    color: #75b798;
}

[data-bs-theme="dark"] .apache-token-variable {
    color: #efadce;
}

[data-bs-theme="dark"] .apache-token-number {
    color: #feb272;
}

[data-bs-theme="dark"] .apache-token-path {
    color: #79dfc1;
}

.docs-content {
    line-height: 1.65;
}

.docs-sidebar-stack {
    position: sticky;
    top: 104px;
}

.docs-nav-group + .docs-nav-group {
    margin-top: 18px;
}

.docs-nav-heading {
    color: var(--bs-secondary-color);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .04em;
    margin: 12px 0 6px;
    text-transform: uppercase;
}

.docs-content h2,
.docs-content h3,
.docs-content h4,
.docs-content h5 {
    margin-top: 1.5rem;
    margin-bottom: .75rem;
    scroll-margin-top: 110px;
}

.docs-content h2:first-child {
    margin-top: 0;
}

.docs-toc {
    display: grid;
    gap: 4px;
    max-height: 58vh;
    overflow: auto;
    padding-right: 4px;
}

.docs-toc-link {
    border-radius: 6px;
    color: var(--bs-body-color);
    display: block;
    font-size: .9rem;
    line-height: 1.25;
    overflow: hidden;
    padding: 6px 8px;
    text-decoration: none;
    text-overflow: ellipsis;
}

.docs-toc-link:hover {
    background: var(--bs-tertiary-bg);
    color: var(--bs-primary);
}

.docs-toc-level-3 {
    padding-left: 20px;
}

.docs-toc-level-4 {
    color: var(--bs-secondary-color);
    font-size: .84rem;
    padding-left: 32px;
}

@media (max-width: 991.98px) {
    .docs-sidebar-stack {
        position: static;
    }

    .docs-toc {
        max-height: 320px;
    }
}

.docs-list-item {
    margin-bottom: .35rem;
    padding-left: 1.25rem;
    position: relative;
}

.docs-list-item::before {
    content: "";
    width: .35rem;
    height: .35rem;
    border-radius: 50%;
    background: var(--bs-secondary-color);
    position: absolute;
    left: .25rem;
    top: .7rem;
}

.docs-code {
    max-height: 460px;
    overflow: auto;
    border: 1px solid var(--bs-border-color);
    border-radius: 8px;
    background: var(--bs-tertiary-bg);
    padding: 14px;
    font-size: .875rem;
}

@media (max-width: 640px) {
    .sl-public-hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 12px;
    }

    .sl-public-band {
        grid-template-columns: 1fr;
        margin-top: 0;
    }

    .sl-public-selfservice-grid {
        grid-template-columns: 1fr;
    }

    .sl-app-shell {
        display: block;
    }

    .sl-sidebar {
        position: static;
        width: auto;
        height: auto;
        display: block;
        overflow: visible;
    }

    .sl-sidebar-menu {
        overflow: visible;
        scrollbar-gutter: auto;
    }

    .sl-main {
        margin-left: 0;
    }

    .sl-topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .system-core-grid,
    .system-disk-row,
    .system-net-row {
        grid-template-columns: 1fr;
    }

    .system-chart {
        height: 140px;
    }

    .system-process-table td:last-child,
    .system-process-table th:last-child {
        min-width: 220px;
    }
}
.journal-table td {
    vertical-align: top;
}

.journal-message {
    min-width: 320px;
    white-space: normal;
    word-break: break-word;
}

.journal-priority-bars {
    display: grid;
    gap: .65rem;
}

.journal-bar-row {
    display: grid;
    grid-template-columns: 90px minmax(120px, 1fr) 48px;
    gap: .75rem;
    align-items: center;
}

.journal-bar-row span,
.journal-bar-row strong {
    font-size: .875rem;
}

.journal-unit-pill {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .55rem .65rem;
    border: 1px solid var(--bs-border-color);
    color: inherit;
    text-decoration: none;
    margin-bottom: .5rem;
    border-radius: .4rem;
}

.journal-unit-pill:hover {
    background: var(--bs-tertiary-bg);
}
