@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/7.0.1/css/all.min.css");
@import "font.css";

* {
    transition: cubic-bezier(0.1, 0, 0, 1) 0.3s;
}

button,
input,
select,
textarea {
    font-family: TheJamsil, sans-serif;
}

body {
    margin: 0;
    font-family: TheJamsil;
    font-weight: 300;
    color: #000;
    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(115, 196, 255, 0.35),
            transparent 45%
        ),
        radial-gradient(
            circle at 80% 10%,
            rgba(255, 190, 240, 0.35),
            transparent 50%
        ),
        radial-gradient(
            circle at 70% 80%,
            rgba(170, 255, 214, 0.35),
            transparent 45%
        ),
        linear-gradient(135deg, #f2f7ff 0%, #f9fbff 45%, #f6f2ff 100%);
    background-attachment: fixed;
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: radial-gradient(
        circle at 1px 1px,
        rgba(10, 20, 40, 0.08) 1px,
        transparent 0
    );
    background-size: 18px 18px;
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
}

a {
    color: #0275d8;
    text-decoration: none;
}

.hr {
    height: 1px;
    background: #ccc;
    margin: 10px 0;
}

.fa-solid,
.fa-regular,
.fa-brands {
    margin-right: 0.3rem;
}

.nav .fa-caret-down,
.nav-right .fa-solid {
    margin-right: 0;
}

.license-meta-value.is-mono .fa-solid,
.license-meta-value.is-mono .fa-brands {
    margin-right: -.5rem;
}

.nav .nav-item:not(.logo) > i:first-child:not(.fa-caret-down) {
    width: 1.05em;
    min-width: 1.05em;
    text-align: center;
    margin-right: 0.5rem;
}

.nav .nav-item > .fa-caret-down {
    margin-left: 0.35rem;
    margin-right: 0;
}

#nav-root,
#footer-root {
    width: 100%;
}

#footer-root {
    width: 100%;
}

main.dashboard {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1500px;
    box-sizing: border-box;
    margin: 32px auto 0;
    padding: 0;
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
}

main.dashboard.has-site-notice {
    margin-top: 10px;
}

.dashboard-side-column {
    display: grid;
    gap: 24px;
    align-content: start;
    min-width: 0;
}

#sites-card {
    align-self: start;
}

.nav-right {
    display: flex;
    align-items: center;
    margin-left: auto;
    gap: 8px;
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

#nav-auth {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-external-links {
    display: none;
    align-items: center;
    gap: 12px;
}

.nav-external-links.is-visible {
    display: flex;
}

.nav-dropdown {
    position: relative;
}

.static-entry-name-button {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    align-self: start;
}
.nav-admin-only {
    display: none;
}

.nav-admin-only.is-visible {
    display: flex;
}

.nav-dropdown-toggle {
    gap: 8px;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    padding: 10px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 18px 40px rgba(18, 40, 80, 0.18);
    display: grid;
    gap: 6px;
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
    max-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    pointer-events: none;
    transition:
        opacity 0.22s ease,
        transform 0.22s ease,
        max-height 0.28s ease;
    z-index: 600;
}

.nav-dropdown-menu.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    max-height: min(78dvh, calc(100dvh - 110px));
    pointer-events: auto;
}

.nav-board-dropdown .nav-dropdown-menu {
    left: 0;
    right: auto;
    min-width: 240px;
    max-width: min(82vw, 380px);
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(210, 220, 236, 0.78);
    box-shadow: 0 18px 40px rgba(18, 40, 80, 0.2);
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.nav-board-dropdown .nav-dropdown-menu.is-open {
    max-height: min(72dvh, calc(100dvh - 120px));
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    color: #000;
    position: relative;
    overflow: hidden;
    transition:
        background 0.22s ease,
        color 0.22s ease,
        transform 0.22s ease,
        box-shadow 0.22s ease;
}

.nav-dropdown-item:hover {
    background: color-mix(
        in oklab,
        var(--main-color, #42b6ff) 18%,
        transparent
    );
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(18, 40, 80, 0.16);
}

.nav-dropdown-item:active {
    transform: translateY(0);
    background: color-mix(
        in oklab,
        var(--main-color, #42b6ff) 26%,
        transparent
    );
    box-shadow: 0 4px 10px rgba(18, 40, 80, 0.12);
}

.nav-dropdown-item.is-restricted {
    border: 1px dashed rgba(18, 40, 80, 0.28);
    background: rgba(130, 140, 160, 0.09);
}

.nav-dropdown-item.is-restricted:hover {
    background: rgba(130, 140, 160, 0.16);
    box-shadow: 0 8px 18px rgba(18, 40, 80, 0.12);
}

.nav-dropdown-item.nav-board-empty {
    opacity: 0.7;
    cursor: default;
    box-shadow: none;
}

.nav-dropdown-item.nav-board-empty:hover,
.nav-dropdown-item.nav-board-empty:active {
    transform: none;
    background: transparent;
    box-shadow: none;
}

.admin-card {
    max-width: 560px;
    width: min(560px, 100%);
    box-sizing: border-box;
}

.admin-form {
    display: grid;
    gap: 14px;
    min-width: 0;
    width: 100%;
}

.auth-header {
    text-align: center;
}

.auth-header .helper {
    margin-top: 8px;
}

.admin-shell {
    place-items: unset;
    align-content: center;
    justify-items: center;
    gap: 16px;
}

.admin-form label {
    display: block;
    margin: 0;
    font-size: 0.85rem;
    color: rgba(11, 15, 26, 0.7);
}

.admin-lookup {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 6px;
    min-width: 0;
}

.admin-lookup input[type="text"] {
    flex: 1 1 auto;
    min-width: 0;
}

.admin-check {
    padding: 10px 18px;
    border-radius: 16px;
    font-weight: 800;
    white-space: nowrap;
    border: 1px solid rgba(18, 40, 80, 0.2);
    background: rgba(255, 255, 255, 0.6);
    box-shadow:
        0 8px 18px rgba(18, 40, 80, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease;
}

.admin-check:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
    box-shadow:
        0 10px 20px rgba(18, 40, 80, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.admin-check:active {
    transform: translateY(0);
    filter: brightness(0.98);
    box-shadow:
        0 6px 14px rgba(18, 40, 80, 0.12),
        inset 0 6px 14px rgba(18, 40, 80, 0.12);
}

.admin-form input[type="text"] {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(18, 40, 80, 0.15);
    background: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.admin-form label.admin-toggle,
.dev-modal label.admin-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    margin: 0;
}

.admin-form label.admin-toggle span,
.dev-modal label.admin-toggle span {
    margin: 0;
}

.admin-form label.admin-toggle input[type="checkbox"],
.dev-modal label.admin-toggle input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 1px solid rgba(18, 40, 80, 0.2);
    background: rgba(255, 255, 255, 0.9);
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.admin-form label.admin-toggle input[type="checkbox"]:disabled,
.dev-modal label.admin-toggle input[type="checkbox"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

.admin-form label.admin-toggle input[type="checkbox"]::after,
.dev-modal label.admin-toggle input[type="checkbox"]::after {
    content: "";
    width: 9px;
    height: 5px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%) rotate(-45deg) scale(0.6);
    opacity: 0;
    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.admin-form label.admin-toggle input[type="checkbox"]:checked,
.dev-modal label.admin-toggle input[type="checkbox"]:checked {
    background: var(--main-color, #39bd70);
    border-color: color-mix(
        in oklab,
        var(--main-color, #39bd70) 70%,
        transparent
    );
    box-shadow: 0 0 0 3px
        color-mix(in oklab, var(--main-color, #39bd70) 25%, transparent);
}

.admin-form label.admin-toggle input[type="checkbox"]:checked::after,
.dev-modal label.admin-toggle input[type="checkbox"]:checked::after {
    transform: translate(-50%, -55%) rotate(-45deg) scale(1);
    opacity: 1;
}

.admin-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}

.admin-services-list {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.admin-service-toggle {
    width: 100%;
    box-sizing: border-box;
}

.admin-service-toggle span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.block-shell {
    max-width: 1500px;
}

.block-layout {
    display: grid;
    grid-template-columns: minmax(360px, 520px) minmax(320px, 1fr);
    gap: 20px;
    align-items: start;
}

.block-card {
    padding: 20px;
}

.block-form {
    gap: 12px;
}

.block-duration-row {
    display: grid;
    grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.block-duration-select,
.block-duration-unit {
    min-height: 48px;
}

.block-duration-custom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px;
    gap: 12px;
}

.block-summary {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(18, 40, 80, 0.08);
}

.block-summary .helper {
    margin: 0;
}

.block-summary-header,
.block-user-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.block-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
}

.block-badge.is-blocked {
    color: #fff;
    background: linear-gradient(135deg, #dc4b4b, #b82222);
}

.block-badge.is-open {
    color: #0e5f35;
    background: rgba(58, 190, 112, 0.16);
}

.block-actions {
    align-items: center;
    gap: 12px;
}

.block-action-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.block-user-list {
    display: grid;
    gap: 12px;
}

.block-user-item {
    display: grid;
    gap: 8px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(18, 40, 80, 0.08);
}

.block-user-item .helper {
    margin: 0;
}

.block-user-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

@media (max-width: 980px) {
    .block-layout {
        grid-template-columns: 1fr;
    }

    .block-duration-row,
    .block-duration-custom {
        grid-template-columns: 1fr;
    }
}

.nav-auth-exit {
    opacity: 0;
    transform: translateY(-4px) scale(0.98);
}

#nav-auth {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.nav-user-dropdown {
    position: relative;
}

.nav .nav-item.nav-avatar-button {
    width: 46px;
    height: 46px;
    min-width: 46px;
    padding: 0 !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-color: rgba(255, 255, 255, 0.62) !important;
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.72),
        rgba(255, 255, 255, 0.42)
    ) !important;
    box-shadow:
        0 8px 18px rgba(18, 40, 80, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.78);
    transform: translateZ(0) scale(1) !important;
    transform-origin: center;
    transition:
        transform 0.18s cubic-bezier(0.22, 1, 0.36, 1),
        background 0.16s ease,
        box-shadow 0.16s ease,
        border-color 0.16s ease;
    will-change: transform;
    backface-visibility: hidden;
}

.nav .nav-item.nav-avatar-button::before,
.nav .nav-item.nav-avatar-button::after {
    display: none;
}

.nav .nav-item.nav-avatar-button:hover,
.nav .nav-item.nav-avatar-button.is-hovered {
    transform: translateZ(0) scale(1.05) !important;
    border-color: rgba(255, 255, 255, 0.84) !important;
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.82),
        rgba(255, 255, 255, 0.5)
    ) !important;
    box-shadow:
        0 10px 22px rgba(18, 40, 80, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.nav .nav-item.nav-avatar-button:active,
.nav .nav-item.nav-avatar-button.is-pressed {
    transform: translateZ(0) scale(0.98) !important;
    border-color: rgba(255, 255, 255, 0.72) !important;
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.78),
        rgba(255, 255, 255, 0.46)
    ) !important;
    box-shadow:
        0 6px 14px rgba(18, 40, 80, 0.14),
        inset 0 4px 10px rgba(18, 40, 80, 0.16);
}

.nav .nav-item.nav-avatar-button .nav-avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
    position: relative;
    z-index: 1;
    transition: filter 0.16s ease;
    transform: none !important;
}

.nav .nav-item.nav-avatar-button:hover .nav-avatar-image,
.nav .nav-item.nav-avatar-button.is-hovered .nav-avatar-image {
    filter: saturate(1.03) contrast(1.02);
}

.nav .nav-item.nav-avatar-button:active .nav-avatar-image,
.nav .nav-item.nav-avatar-button.is-pressed .nav-avatar-image {
    filter: saturate(1);
}

.nav-user-menu {
    left: auto;
    right: 0;
    min-width: 220px;
}

.nav-user-summary {
    display: grid;
    gap: 4px;
    cursor: default;
}

.nav-user-summary-label {
    font-size: 0.76rem;
    font-weight: 700;
    color: rgba(11, 15, 26, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.nav-user-action {
    width: 100%;
    border: 0;
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.nav-right .nav-item {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.55);
}

.theme-toggle {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    min-width: 42px;
    border-radius: 50%;
    box-sizing: border-box;
    flex: 0 0 42px;
    line-height: 1;
}

.nav-icon-button {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.nav-icon-button i {
    margin-right: 0;
    font-size: 1rem;
}

.theme-toggle i {
    font-size: 1rem;
    margin: 0;
    width: 1em;
    height: 1em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    flex: 0 0 auto;
}

.nav .nav-item.theme-toggle > i:first-child:not(.fa-caret-down) {
    width: 1em;
    min-width: 1em;
    margin-right: 0;
}

.theme-toggle i::before,
.nav-icon-button i::before {
    display: block;
    line-height: 1;
}

.site-footer {
    width: 100%;
    box-sizing: border-box;
    /* min-height: 72px; */
    margin-top: 32px;
    padding: 18px 24px;
    border-radius: 10px 10px 0 0;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow:
        0 -12px 24px rgba(18, 40, 80, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.site-footer,
.site-footer * {
    overflow-wrap: anywhere;
}

.footer-sep {
    opacity: 0.5;
}

.site-footer a {
    position: relative;
}
.site-footer a:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: #0275d8;
    border-radius: 10px;
    transition: 0.3s cubic-bezier(0.1, 0, 0, 1);
}
.site-footer a:hover::after {
    width: 100%;
}
.site-footer a:active {
    color: color-mix(in srgb, #0275d8 70%, #000);
}
.site-footer a:active::after {
    width: 0;
}

html[data-theme="dark"] body .site-footer {
    background: rgba(18, 24, 38, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 -12px 24px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    color: rgba(230, 235, 245, 0.75);
}

html[data-theme="dark"] body .site-footer a {
    color: rgba(127, 179, 255, 0.9);
}

html[data-theme="dark"] body .site-footer a::after {
    background: rgba(127, 179, 255, 0.9);
}

.auth-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1500px;
    box-sizing: border-box;
    min-height: 0;
    margin: 32px auto 0;
    display: grid;
    place-items: center;
    align-content: center;
    padding: 0;
}

.auth-card {
    width: min(420px, 100%);
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 24px;
    padding: 28px;
    box-shadow:
        0 22px 48px rgba(18, 40, 80, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.auth-card h2 {
    margin: 0 0 8px;
    font-size: 1.4rem;
}

.auth-card .helper {
    margin-top: 10px;
}

.auth-actions {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.auth-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: rgba(11, 15, 26, 0.7);
}

.config-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1500px;
    box-sizing: border-box;
    margin: 32px auto 0;
    padding: 0;
    display: grid;
    gap: 24px;
    align-content: start;
    align-items: start;
}

.config-shell.has-site-notice {
    margin-top: 10px;
}

.config-header h2 {
    margin: 0 0 6px;
    font-size: 1.4rem;
}

.config-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.config-toolbar .helper {
    margin: 0;
}

.site-notice-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    box-sizing: border-box;
}

.site-notice-shell.is-inside-main {
    grid-column: 1 / -1;
    justify-self: stretch;
    align-self: start;
    margin: 0;
    margin-bottom: -14px;
    padding: 0;
}

.site-notice-shell.is-auth-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3;
    margin: 0;
    padding: 0 10px;
}

.site-notice-shell.is-outside-main {
    max-width: 1500px;
    margin: 10px auto 0;
    padding: 0 10px;
}

.site-notice-shell.is-outside-main + main {
    margin-top: 10px;
}

.site-notice-banner {
    position: relative;
    display: block;
    overflow: hidden;
    padding: 0.5rem 1.2rem;
    vertical-align: middle;
    border-radius: 30px;
    color: inherit;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(22px) saturate(140%);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
}

.site-notice-banner.is-protect-mode {
    background: rgba(255, 229, 233, 0.68);
    border-color: rgba(201, 34, 57, 0.22);
    color: #8a1024;
    box-shadow:
        0 10px 30px rgba(125, 24, 40, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.site-notice-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        140deg,
        rgba(255, 255, 255, 0.4),
        rgba(255, 255, 255, 0.12) 13%,
        rgba(255, 255, 255, 0) 65%
    );
    z-index: 0;
    pointer-events: none;
}

.site-notice-banner.is-protect-mode::before {
    background: linear-gradient(
        140deg,
        rgba(255, 255, 255, 0.36),
        rgba(255, 132, 150, 0.18) 15%,
        rgba(255, 255, 255, 0) 68%
    );
}

.site-notice-banner > .site-notice-icon,
.site-notice-banner > .site-notice-content {
    position: relative;
    z-index: 1;
}

.site-notice-banner > .site-notice-icon {
    display: inline-block;
    margin-right: 0;
    padding: 0.3rem;
    vertical-align: middle;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: inherit;
    font-size: 1.2rem;
    line-height: 1;
    background: rgba(255, 255, 255, 0.3);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(22px) saturate(140%);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
    transition: transform 0.3s cubic-bezier(0.1, 0, 0, 1);
}

.site-notice-banner.is-protect-mode > .site-notice-icon {
    border-color: rgba(162, 20, 44, 0.24);
    color: #b41832;
    background: rgba(255, 244, 246, 0.76);
    box-shadow:
        0 10px 24px rgba(143, 24, 44, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.site-notice-banner > .site-notice-icon:hover {
    transform: scale(1.3);
}

.site-notice-banner > .site-notice-icon:active {
    transform: scale(0.8);
}

.site-notice-banner > .site-notice-content {
    min-width: 0;
    margin: -26px 0 4px 47px;
    color: inherit;
    font-size: 0.96rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.site-notice-banner.is-protect-mode > .site-notice-content {
    color: #8a1024;
}

.site-notice-content > :first-child {
    margin-top: 0;
}

.site-notice-content > :last-child {
    margin-bottom: 0;
}

.config-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.config-grid.config-stack {
    grid-template-columns: 1fr;
}

.profile-shell {
    max-width: 1500px;
}

.profile-current-card {
    margin-bottom: 2px;
}

.profile-current-grid {
    display: grid;
    gap: 6px;
}

.profile-current-grid .helper {
    margin: 0;
}

.profile-role-ok {
    color: #1d9f57;
}

.profile-role-no {
    color: #d94848;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 18px;
}

.profile-card .helper {
    margin: 0 0 12px;
}

.profile-form {
    gap: 10px;
}

#email-form {
    gap: 8px;
}

.profile-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}

#email-form .profile-actions {
    margin-top: 2px;
    gap: 8px;
}

#profile-send-email-code,
#email-submit {
    height: 42px;
    min-height: 42px;
    padding-top: 0;
    padding-bottom: 0;
    font-size: 1rem;
}

#profile-send-email-code {
    justify-content: center;
    padding-left: 16px;
    padding-right: 16px;
    border-radius: 16px;
}

.profile-danger-card {
    border-color: rgba(235, 87, 87, 0.35);
}

.profile-danger-btn {
    background: linear-gradient(
        135deg,
        rgba(255, 109, 109, 0.95),
        rgba(235, 87, 87, 0.95)
    );
    border-color: rgba(190, 35, 35, 0.45);
    color: #fff;
}

.profile-danger-btn:hover {
    filter: brightness(1.05) saturate(110%);
}

.board-shell {
    width: min(1500px, 100%);
    max-width: 1500px;
    margin-top: 40px;
    gap: 16px;
}

.board-list {
    display: grid;
    gap: 10px;
}

.board-list-card {
    padding: 12px 14px 14px;
}

.board-blocked-notice {
    padding: 12px 14px;
    border: 1px solid rgba(217, 72, 72, 0.22);
    background: rgba(255, 235, 235, 0.72);
    box-shadow: 0 10px 22px rgba(140, 32, 32, 0.08);
}

.board-blocked-notice .helper {
    margin: 0;
    white-space: pre-line;
}

.board-shell .card-header {
    display: block;
    margin-bottom: 10px;
}

.board-posts-header,
.board-write-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.board-shell .card-header h3 {
    margin: 0;
    line-height: 1.25;
}

.board-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.board-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.85),
            rgba(255, 255, 255, 0.6)
        ),
        var(--main-color, linear-gradient(90deg, #42b6ff, #6ef5b8));
    color: #000;
    padding: 8px 12px;
    font-size: 0.84rem;
    font-weight: 700;
    box-shadow:
        0 10px 20px rgba(18, 40, 80, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.72);
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        filter 0.22s ease;
}

#board-refresh-btn {
    cursor: pointer;
}

.board-action-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
}

.board-action-btn:active {
    transform: translateY(0);
    filter: brightness(0.98) saturate(110%);
}

.board-action-btn.board-action-muted {
    background: rgba(255, 255, 255, 0.6);
}

.board-action-btn.is-disabled,
.board-action-btn.is-disabled:hover,
.board-action-btn.is-disabled:active {
    cursor: not-allowed;
    opacity: 0.52;
    filter: grayscale(0.25);
    transform: none;
    box-shadow:
        0 5px 12px rgba(18, 40, 80, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.board-posts {
    display: grid;
    gap: 10px;
}

.board-post-item {
    display: grid;
    gap: 6px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.42);
    color: inherit;
    box-shadow: 0 8px 16px rgba(18, 40, 80, 0.08);
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease,
        background 0.22s ease;
}

.board-post-item:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.55);
    box-shadow: 0 14px 28px rgba(18, 40, 80, 0.14);
}

.board-post-item:active {
    transform: translateY(0);
    background: rgba(255, 255, 255, 0.62);
    box-shadow:
        0 6px 12px rgba(18, 40, 80, 0.1),
        inset 0 4px 10px rgba(18, 40, 80, 0.08);
}

.board-post-item:focus-visible {
    outline: 2px solid var(--main-color, rgba(66, 182, 255, 0.8));
    outline-offset: 2px;
}

.board-post-item-title {
    font-size: 1rem;
    font-weight: 800;
}

.board-post-item-meta {
    margin: 0;
    font-size: 0.82rem;
    color: rgba(11, 15, 26, 0.62);
}

.board-post-card {
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.42);
}

.board-post-card-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.board-post-card-header h4 {
    margin: 0;
    font-size: 1rem;
}

.board-post-card-header .helper {
    margin: 0;
}

.board-post-content {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: TheJamsil, sans-serif;
    font-size: 0.95rem;
    line-height: 1.5;
}

.board-detail-card {
    display: grid;
    gap: 18px;
}

.board-post-detail-header {
    display: flex !important;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.board-post-detail-summary {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.board-post-detail-summary h3 {
    margin: 0;
    font-size: 1.7rem;
    line-height: 1.2;
}

.board-post-detail-meta {
    margin: 0;
    font-size: 0.82rem;
    color: rgba(11, 15, 26, 0.62);
}

.board-post-detail-content {
    margin: 0;
    padding: 18px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.38);
    word-break: break-word;
    font-family: TheJamsil, sans-serif;
    font-size: 0.97rem;
    line-height: 1.65;
}

.board-post-detail-content img,
.board-comment-content img {
    max-width: 100%;
    height: auto;
}

.board-post-detail-content iframe,
.board-post-detail-content video,
.board-comment-content iframe,
.board-comment-content video {
    max-width: 100%;
}

.board-detail-divider {
    margin: 18px 0 6px;
}

.board-comments-section {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.board-comments-header {
    margin-bottom: 0 !important;
}

.board-comments-list {
    display: grid;
    gap: 10px;
}

.board-comment-item {
    display: grid;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.52);
    background: rgba(255, 255, 255, 0.34);
}

.board-comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.board-comment-header strong,
.board-comment-header .helper {
    margin: 0;
}

.board-comment-content {
    margin: 0;
    word-break: break-word;
    line-height: 1.55;
}

.board-comment-form {
    display: grid;
    gap: 10px;
}

.board-comment-form label {
    display: grid;
    gap: 6px;
    font-size: 0.9rem;
    color: rgba(11, 15, 26, 0.7);
}

.board-comment-textarea {
    min-height: 120px;
    margin-top: 2px;
}

.board-list-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.42);
    color: inherit;
    box-shadow: 0 8px 16px rgba(18, 40, 80, 0.08);
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease,
        background 0.22s ease;
}

.board-list-item:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.55);
    box-shadow: 0 14px 28px rgba(18, 40, 80, 0.14);
}

.board-list-item:active {
    transform: translateY(0);
    background: rgba(255, 255, 255, 0.62);
    box-shadow:
        0 6px 12px rgba(18, 40, 80, 0.1),
        inset 0 4px 10px rgba(18, 40, 80, 0.08);
}

.board-list-item:focus-visible {
    outline: 2px solid var(--main-color, rgba(66, 182, 255, 0.8));
    outline-offset: 2px;
}

.board-list-item strong {
    font-size: 1rem;
}

.board-list-item .helper {
    margin: 4px 0 0;
}

.board-write-form {
    display: grid;
    gap: 10px;
}

.board-write-form label {
    display: grid;
    gap: 6px;
    font-size: 0.9rem;
    color: rgba(11, 15, 26, 0.7);
}

.board-write-form input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(18, 40, 80, 0.15);
    background: rgba(255, 255, 255, 0.8);
}

.board-textarea {
    min-height: 180px;
    margin-top: 2px;
}

.board-write-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

html[data-theme="dark"] body .board-list-item {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(17, 24, 38, 0.62);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] body .board-list-item:hover {
    border-color: rgba(255, 255, 255, 0.26);
    background: rgba(22, 31, 49, 0.78);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.42);
}

html[data-theme="dark"] body .board-list-item:active {
    background: rgba(27, 37, 58, 0.86);
    box-shadow:
        0 8px 16px rgba(0, 0, 0, 0.36),
        inset 0 4px 10px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] body .board-post-card {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(17, 24, 38, 0.62);
}

html[data-theme="dark"] body .board-post-item {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(17, 24, 38, 0.62);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] body .board-post-item:hover {
    border-color: rgba(255, 255, 255, 0.26);
    background: rgba(22, 31, 49, 0.78);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.42);
}

html[data-theme="dark"] body .board-post-item:active {
    background: rgba(27, 37, 58, 0.86);
    box-shadow:
        0 8px 16px rgba(0, 0, 0, 0.36),
        inset 0 4px 10px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] body .board-post-item-meta {
    color: rgba(230, 235, 245, 0.58);
}

html[data-theme="dark"] body .board-post-detail-meta {
    color: rgba(230, 235, 245, 0.58);
}

html[data-theme="dark"] body .board-post-detail-content,
html[data-theme="dark"] body .board-comment-item {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(17, 24, 38, 0.62);
}

html[data-theme="dark"] body .board-action-btn {
    color: #e6ebf5;
    border-color: rgba(255, 255, 255, 0.18);
    background:
        linear-gradient(140deg, rgba(36, 55, 88, 0.92), rgba(20, 34, 58, 0.92)),
        linear-gradient(
            90deg,
            rgba(64, 162, 255, 0.45),
            rgba(72, 210, 165, 0.45)
        );
    box-shadow:
        0 10px 22px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] body .board-action-btn.board-action-muted {
    background: rgba(34, 46, 69, 0.86);
}

html[data-theme="dark"] body .board-action-btn.is-disabled,
html[data-theme="dark"] body .board-action-btn.is-disabled:hover,
html[data-theme="dark"] body .board-action-btn.is-disabled:active {
    cursor: not-allowed;
    opacity: 0.55;
    box-shadow:
        0 6px 14px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] body .board-write-form label {
    color: rgba(230, 235, 245, 0.75);
}

html[data-theme="dark"] body .board-comment-form label {
    color: rgba(230, 235, 245, 0.75);
}

html[data-theme="dark"] body .board-write-form input {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(14, 20, 32, 0.72);
    color: #e6ebf5;
}

.config-card h3 {
    margin: 0;
    font-size: 1rem;
}

.config-textarea {
    width: 100%;
    min-height: 360px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.5);
    padding: 14px 16px;
    font-family: "SFMono-Regular", "Menlo", "Consolas", monospace;
    font-size: 0.85rem;
    color: inherit;
    resize: vertical;
    box-sizing: border-box;
    max-width: 100%;
}

.config-textarea:focus {
    outline: none;
    border-color: var(--main-color, rgba(66, 182, 255, 0.7));
    box-shadow:
        0 0 0 3px var(--main-color, rgba(66, 182, 255, 0.25)),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.config-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
}

.config-actions .nav-item,
.config-toolbar .nav-item {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.8),
            rgba(255, 255, 255, 0.55)
        ),
        var(--main-color, linear-gradient(90deg, #42b6ff, #6ef5b8));
    color: #000;
    font-weight: 700;
    padding: 10px 16px;
    border-radius: 14px;
    box-shadow:
        0 10px 22px rgba(18, 40, 80, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    transition:
        0.35s transform cubic-bezier(0.12, 0.6, 0, 1),
        0.45s box-shadow cubic-bezier(0.12, 0.6, 0, 1),
        0.35s filter cubic-bezier(0.12, 0.6, 0, 1);
}

.config-actions .nav-item:hover,
.config-toolbar .nav-item:hover {
    filter: brightness(1.04) saturate(110%);
    transform: translateY(-1px);
}

.config-actions .nav-item:active,
.config-toolbar .nav-item:active {
    filter: brightness(0.98) saturate(115%);
    transform: translateY(0);
}

.config-actions .nav-item:disabled,
.config-toolbar .nav-item:disabled {
    opacity: 0.72;
    cursor: not-allowed;
    transform: none;
    filter: none;
}

.config-email-test-card {
    gap: 0;
}

.config-email-test-card > .helper {
    margin: 2px 0 14px;
}

.config-email-test-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
}

.config-textinput {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(18, 40, 80, 0.15);
    background: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.is-mono {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.config-textinput:focus {
    outline: none;
    border-color: var(--main-color, rgba(66, 182, 255, 0.7));
    box-shadow:
        0 0 0 3px var(--main-color, rgba(66, 182, 255, 0.25)),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.config-email-test-row .nav-item {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.8),
            rgba(255, 255, 255, 0.55)
        ),
        var(--main-color, linear-gradient(90deg, #42b6ff, #6ef5b8));
    color: #000;
    font-weight: 700;
    padding: 10px 16px;
    border-radius: 14px;
    box-shadow:
        0 10px 22px rgba(18, 40, 80, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    transition:
        0.35s transform cubic-bezier(0.12, 0.6, 0, 1),
        0.45s box-shadow cubic-bezier(0.12, 0.6, 0, 1),
        0.35s filter cubic-bezier(0.12, 0.6, 0, 1);
    white-space: nowrap;
}

.config-email-test-row .nav-item:hover {
    filter: brightness(1.04) saturate(110%);
    transform: translateY(-1px);
}

.config-email-test-row .nav-item:active {
    filter: brightness(0.98) saturate(115%);
    transform: translateY(0);
}

.config-email-test-row .nav-item:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    filter: none;
}

.config-layout-card {
    display: grid;
    gap: 14px;
}

.config-card-header {
    align-items: flex-start;
}

.config-card-summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.config-card-summary::-webkit-details-marker {
    display: none;
}

.config-card-summary-trailing {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.config-card-body {
    display: grid;
    gap: 14px;
}

.config-card-title-wrap {
    display: grid;
    gap: 6px;
}

.config-card-description,
.config-card-note {
    margin: 0;
}

.config-card-note {
    color: rgba(11, 15, 26, 0.58);
}

.config-card-content {
    display: grid;
    gap: 14px;
}

.config-builder-root,
.config-builder-nested,
.config-builder-array-list {
    display: grid;
    gap: 12px;
}

.config-builder-field,
.config-builder-section,
.config-builder-item {
    border-radius: 16px;
    border: 1px solid rgba(18, 40, 80, 0.1);
    background: rgba(255, 255, 255, 0.34);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.config-builder-field {
    padding: 14px 16px;
    display: grid;
    gap: 10px;
}

.config-builder-field-boolean {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.config-builder-boolean-copy {
    flex: 1;
    min-width: 0;
}

.config-builder-bool-toggle {
    --config-bool-gap: 4px;
    --bool-thumb-x: 0px;
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(46px, 1fr));
    gap: var(--config-bool-gap);
    min-width: 102px;
    padding: 4px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.64);
    background: rgba(255, 255, 255, 0.42);
    box-shadow:
        0 6px 16px rgba(18, 40, 80, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(14px) saturate(138%);
    -webkit-backdrop-filter: blur(14px) saturate(138%);
    overflow: hidden;
    isolation: isolate;
}

.config-builder-bool-toggle::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.12),
        transparent 42%,
        rgba(255, 255, 255, 0.06)
    );
    pointer-events: none;
    z-index: 0;
}

.config-builder-bool-thumb {
    position: absolute;
    top: 4px;
    left: 4px;
    bottom: 4px;
    width: calc(50% - 6px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.8),
            rgba(255, 255, 255, 0.55)
        );
    background-image:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.8),
            rgba(255, 255, 255, 0.55)
        ),
        var(--main-color, linear-gradient(90deg, #42b6ff, #6ef5b8));
    box-shadow:
        0 10px 22px rgba(18, 40, 80, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    transform: translateX(var(--bool-thumb-x));
    transition:
        transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.32s ease,
        filter 0.32s ease;
    filter: brightness(1.02) saturate(108%);
    pointer-events: none;
    z-index: 0;
}

.config-builder-bool-thumb::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
        circle at 20% 20%,
        rgba(255, 255, 255, 0.9),
        transparent 55%
    );
    opacity: 0.72;
    transform: translate3d(-20%, -10%, 0);
}

.config-builder-bool-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        120deg,
        transparent 20%,
        rgba(255, 255, 255, 0.5),
        transparent 70%
    );
    opacity: 0.9;
    transform: translate3d(-120%, 0, 0);
    transition: transform 0.55s cubic-bezier(0.2, 0.7, 0, 1);
}

.config-builder-bool-toggle:hover .config-builder-bool-thumb::after {
    transform: translate3d(120%, 0, 0);
}

.config-builder-bool-option {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    z-index: 1;
    border: 0;
    background: transparent;
    color: rgba(11, 15, 26, 0.42);
    font-family: TheJamsil, sans-serif;
    font-size: 1rem;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.01em;
    padding: 10px 10px;
    border-radius: 14px;
    cursor: pointer;
    opacity: 1;
    transition:
        color 0.28s ease,
        opacity 0.28s ease,
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        text-shadow 0.28s ease;
}

.config-builder-bool-option:hover {
    color: rgba(11, 15, 26, 0.72);
}

.config-builder-bool-option:focus-visible {
    outline: 2px solid var(--main-color, rgba(66, 182, 255, 0.82));
    outline-offset: 2px;
}

.config-builder-bool-option:active {
    transform: scale(0.97);
}

.config-builder-bool-option.is-active {
    color: #000;
    opacity: 1;
    transform: translateY(-0.5px);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

.config-builder-field-heading {
    display: grid;
    gap: 5px;
}

.config-builder-field-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: rgba(11, 15, 26, 0.9);
}

.config-builder-field-help {
    margin: 0;
}

.config-builder-textarea {
    min-height: 120px;
    resize: vertical;
    font-weight: 400;
    line-height: 1.5;
}

.config-builder-input-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: stretch;
}

.config-builder-reveal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    white-space: nowrap;
}

.config-textinput.is-readonly-private {
    cursor: not-allowed;
}

.config-builder-section,
.config-builder-item {
    overflow: hidden;
}

.config-builder-summary,
.config-builder-item-summary {
    list-style: none;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    transition: background 0.18s ease;
}

.config-builder-item-summary.is-static {
    cursor: default;
    align-items: center;
}

.config-builder-summary:hover,
.config-builder-item-summary:hover {
    background: rgba(255, 255, 255, 0.18);
}

.config-builder-item-summary.is-static:hover {
    background: transparent;
}

.config-builder-summary::-webkit-details-marker,
.config-builder-item-summary::-webkit-details-marker {
    display: none;
}

.config-builder-summary-main {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.config-builder-item-title-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex-wrap: wrap;
}

.config-builder-summary-trailing {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.config-builder-summary-title,
.config-builder-item-title {
    font-weight: 700;
    color: rgba(11, 15, 26, 0.92);
    overflow-wrap: anywhere;
}

.config-builder-summary-description {
    font-size: 0.84rem;
    color: rgba(11, 15, 26, 0.66);
    overflow-wrap: anywhere;
}

.config-builder-summary-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(18, 40, 80, 0.08);
    color: rgba(11, 15, 26, 0.76);
    font-size: 0.8rem;
    white-space: nowrap;
}

.config-builder-summary-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: rgba(18, 40, 80, 0.08);
    color: rgba(11, 15, 26, 0.7);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.config-builder-summary-toggle i {
    margin-right: 0;
    font-size: 0.82rem;
    transition: transform 0.22s ease;
}

.config-builder-section[open] > .config-builder-summary .config-builder-summary-toggle i,
.config-builder-item[open] > .config-builder-item-summary .config-builder-summary-toggle i,
.config-layout-card[open] > .config-card-summary .config-builder-summary-toggle i {
    transform: rotate(180deg);
}

.config-builder-section-body,
.config-builder-item-body {
    display: grid;
    gap: 12px;
    padding: 0 16px 16px;
}

.config-builder-array-toolbar,
.config-builder-item-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.config-builder-item-actions {
    justify-content: flex-end;
    flex-shrink: 0;
}

.config-builder-mini-btn {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid rgba(18, 40, 80, 0.14);
    background: rgba(255, 255, 255, 0.82);
    color: rgba(11, 15, 26, 0.84);
    border-radius: 12px;
    padding: 8px 12px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition:
        transform 0.18s ease,
        filter 0.18s ease,
        box-shadow 0.18s ease;
}

.config-builder-mini-btn:hover {
    filter: brightness(1.02);
    transform: translateY(-1px);
    box-shadow: 0 8px 14px rgba(18, 40, 80, 0.1);
}

.config-builder-mini-btn:active {
    transform: translateY(0);
}

.config-builder-mini-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.config-builder-mini-btn.danger {
    color: #b63838;
    background: rgba(255, 238, 238, 0.92);
    border-color: rgba(190, 72, 72, 0.18);
}

.config-builder-inline {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.config-builder-compact-field {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.config-builder-compact-label {
    font-size: 0.82rem;
    color: rgba(11, 15, 26, 0.62);
}

.config-builder-empty {
    margin: 0;
}

.static-files-card {
    display: grid;
    gap: 14px;
}

.static-files-grid {
    align-items: start;
}

.static-files-grid > .static-files-card {
    align-self: start;
}

.static-files-card .helper {
    margin: 0;
}

.static-files-card-header {
    align-items: flex-start;
}

.static-path-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(18, 40, 80, 0.08);
    color: rgba(11, 15, 26, 0.78);
    font-size: 0.82rem;
    font-weight: 700;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.static-upload-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;
}

.static-field {
    display: grid;
    gap: 6px;
    min-width: 0;
    font-size: 0.88rem;
    color: rgba(11, 15, 26, 0.72);
}

.static-file-picker-field {
    gap: 10px;
}

.static-file-picker-summary {
    margin: 0;
    min-width: 0;
}

.static-file-input {
    display: block;
    width: 100%;
    padding: 8px 10px;
    line-height: 1.35;
}

.static-file-input::file-selector-button {
    appearance: none;
    -webkit-appearance: none;
    margin-right: 12px;
    border: 1px solid rgba(255, 255, 255, 0.62);
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.88),
            rgba(255, 255, 255, 0.64)
        ),
        var(--main-color, linear-gradient(90deg, #42b6ff, #6ef5b8));
    color: #0f1c33;
    font-weight: 800;
    padding: 10px 16px;
    border-radius: 12px;
    box-shadow:
        0 8px 18px rgba(18, 40, 80, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.72);
    cursor: pointer;
    transition:
        transform 0.22s ease,
        filter 0.22s ease,
        box-shadow 0.22s ease;
}

.static-file-input::file-selector-button:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

.static-file-input::file-selector-button:active {
    transform: translateY(0);
}

.static-file-input::-webkit-file-upload-button {
    appearance: none;
    -webkit-appearance: none;
    margin-right: 12px;
    border: 1px solid rgba(255, 255, 255, 0.62);
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.88),
            rgba(255, 255, 255, 0.64)
        ),
        var(--main-color, linear-gradient(90deg, #42b6ff, #6ef5b8));
    color: #0f1c33;
    font-weight: 800;
    padding: 10px 16px;
    border-radius: 12px;
    box-shadow:
        0 8px 18px rgba(18, 40, 80, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.72);
    cursor: pointer;
}

.static-selected-files {
    display: grid;
    gap: 10px;
}

.static-upload-entry {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.64);
    background: rgba(255, 255, 255, 0.34);
    box-shadow: 0 8px 18px rgba(18, 40, 80, 0.08);
}

.static-upload-entry-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.static-upload-entry-summary {
    min-width: 0;
}

.static-upload-entry-summary strong {
    display: block;
    word-break: break-word;
}

.static-upload-entry-summary .helper {
    margin-top: 4px;
}

.static-upload-entry-fields {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.static-upload-remove {
    border-color: rgba(217, 72, 72, 0.24);
    background: rgba(255, 241, 241, 0.88);
    color: #9e2626;
}

.static-folder-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.static-files-list-header {
    margin-bottom: 10px;
}

.static-current-url {
    overflow-wrap: anywhere;
}

.static-files-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
}

.static-breadcrumb-button {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.64);
    background: rgba(255, 255, 255, 0.74);
    color: rgba(11, 15, 26, 0.82);
    padding: 7px 11px;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 700;
    box-shadow:
        0 8px 18px rgba(18, 40, 80, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    transition:
        transform 0.22s ease,
        filter 0.22s ease,
        box-shadow 0.22s ease;
}

.static-breadcrumb-button:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

.static-breadcrumb-button:active {
    transform: translateY(0);
}

.static-breadcrumb-button.is-current,
.static-breadcrumb-button:disabled {
    cursor: default;
    opacity: 0.82;
    transform: none;
    filter: none;
}

.static-breadcrumb-separator {
    color: rgba(11, 15, 26, 0.44);
    font-size: 0.82rem;
}

.static-files-list {
    display: grid;
    gap: 12px;
}

.static-empty-state {
    padding: 18px 16px;
    border-radius: 16px;
    border: 1px dashed rgba(18, 40, 80, 0.18);
    background: rgba(255, 255, 255, 0.24);
}

.static-entry {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.34);
    box-shadow: 0 10px 20px rgba(18, 40, 80, 0.08);
}

.static-entry-main {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.static-entry-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.78);
    color: rgba(11, 15, 26, 0.82);
    font-size: 1.2rem;
}

.static-entry-icon i {
    display: block;
    line-height: 1;
    transform: translateX(2px);
}

.static-entry-icon.is-directory {
    background: rgba(87, 194, 123, 0.2);
    color: #16653a;
}

.static-entry-icon.is-image {
    background: rgba(96, 168, 255, 0.18);
    color: #1c5ea8;
}

.static-entry-icon.is-archive {
    background: rgba(255, 196, 109, 0.22);
    color: #8c5200;
}

.static-entry-icon.is-code {
    background: rgba(162, 118, 255, 0.16);
    color: #5b3aa6;
}

.static-entry-icon.is-file {
    background: rgba(87, 169, 194, 0.2);
    color: #165d65;
}

.static-entry-info {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.static-entry-name {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    text-align: left;
    font: inherit;
    font-size: 1rem;
    font-weight: 800;
    color: inherit;
    text-decoration: none;
    word-break: break-word;
    cursor: pointer;
}

.static-entry-name-link,
.static-entry-name-button span {
    position: relative;
}

.static-entry-name-link {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    align-self: start;
}

.static-entry-name-link::after,
.static-entry-name-button span::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width .3s cubic-bezier(.1, 0, 0, 1);
}

.static-entry-name-link:hover::after,
.static-entry-name-button span:hover::after {
    width: 100%;
}

.static-entry-name-link:active::after,
.static-entry-name-button span:active::after {
    width: 0;
}

.static-entry-meta {
    margin: 0;
}

.static-entry-url {
    display: block;
    font-size: 0.78rem;
    color: rgba(11, 15, 26, 0.58);
    overflow-wrap: anywhere;
}

.static-entry-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.static-entry-action {
    flex: 0 0 118px;
    width: 118px;
    min-width: 118px;
    box-sizing: border-box;
    text-decoration: none;
    justify-content: center;
    white-space: nowrap;
}

.static-entry-action i {
    width: 1rem;
    min-width: 1rem;
    text-align: center;
}

.static-entry-action.is-danger {
    background: rgba(255, 233, 233, 0.88);
    border-color: rgba(217, 72, 72, 0.28);
    color: #9e2626;
}

.glass-card {
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 22px;
    padding: 22px;
    box-shadow:
        0 22px 48px rgba(18, 40, 80, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.card-header h2,
.card-header h3 {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.25;
}

.status-pill {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(18, 40, 80, 0.08);
    color: #1b2b4b;
}

.status-warn {
    background: rgba(255, 178, 84, 0.25);
    color: #7a3b05;
}

.status-ok {
    background: rgba(72, 201, 136, 0.2);
    color: #16653a;
}

.status-up {
    background: rgba(72, 201, 136, 0.2);
    color: #16653a;
}

.status-degraded {
    background: rgba(255, 201, 107, 0.25);
    color: #8a4a10;
}

.status-down {
    background: rgba(235, 87, 87, 0.2);
    color: #a02a2a;
}

.status-unknown {
    background: rgba(18, 40, 80, 0.12);
    color: rgba(11, 15, 26, 0.7);
}

.metric-grid {
    display: grid;
    gap: 16px;
}

.metric-item {
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.4);
}

.site-list {
    display: grid;
    gap: 14px;
}

.home-links-list {
    display: grid;
    gap: 12px;
}

.home-link-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.42);
    color: inherit;
    box-sizing: border-box;
    box-shadow: 0 8px 16px rgba(18, 40, 80, 0.08);
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease,
        background 0.22s ease;
}

.home-link-item:not(.is-link) {
    cursor: default;
}

.home-link-item.is-link,
.home-link-item.is-link:visited {
    color: inherit;
}

.home-link-item.is-link:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.58);
    box-shadow: 0 14px 28px rgba(18, 40, 80, 0.14);
}

.home-link-item.is-link:active {
    transform: translateY(0);
    box-shadow: 0 6px 12px rgba(18, 40, 80, 0.1);
}

.home-link-item.is-link:focus-visible {
    outline: 2px solid var(--main-color, rgba(66, 182, 255, 0.8));
    outline-offset: 2px;
}

.home-link-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(18, 40, 80, 0.08);
    color: rgba(11, 15, 26, 0.78);
    flex-shrink: 0;
}

.home-link-icon-wrap i {
    margin-right: 0;
}

.home-link-content {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.home-link-name {
    font-size: 0.95rem;
}

.home-link-value {
    font-size: 0.84rem;
    color: rgba(11, 15, 26, 0.66);
    overflow-wrap: anywhere;
}

.service-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(18, 40, 80, 0.08);
    background: rgba(255, 255, 255, 0.2);
    min-width: 0;
}

.service-group.is-nested {
    margin-left: 14px;
    padding-left: 18px;
    border-left: 3px solid rgba(66, 182, 255, 0.22);
}

.service-group-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.service-group-header-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}

.service-group-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.service-group-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.service-group-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border: 1px solid rgba(18, 40, 80, 0.1);
    background: rgba(255, 255, 255, 0.55);
    color: rgba(11, 15, 26, 0.72);
    cursor: pointer;
    flex-shrink: 0;
    transition:
        background 0.22s ease,
        border-color 0.22s ease,
        transform 0.22s ease;
}

.service-group-toggle:hover {
    background: rgba(255, 255, 255, 0.78);
    border-color: rgba(18, 40, 80, 0.18);
}

.service-group-toggle:active {
    transform: scale(0.96);
}

.service-group-toggle:focus-visible {
    outline: 2px solid var(--main-color, rgba(66, 182, 255, 0.8));
    outline-offset: 2px;
}

.service-group-toggle i,
.service-group-toggle .fa-solid,
.service-group-toggle .fa-regular,
.service-group-toggle .fa-brands {
    margin-right: 0;
    width: 1em;
    min-width: 1em;
    text-align: center;
    transition: transform 0.28s ease;
}

.service-group.is-collapsed .service-group-toggle i,
.service-group.is-collapsed .service-group-toggle .fa-solid,
.service-group.is-collapsed .service-group-toggle .fa-regular,
.service-group.is-collapsed .service-group-toggle .fa-brands {
    transform: rotate(-90deg);
}

.service-group-title {
    margin: 0;
    font-size: 1rem;
}

.service-group-description {
    margin: 0;
    font-size: 0.84rem;
    color: rgba(11, 15, 26, 0.6);
}

.service-group-items-clip {
    min-width: 0;
    box-sizing: border-box;
    padding: 28px 22px;
    margin: -28px -22px;
    opacity: 1;
    transition:
        height 0.28s ease,
        opacity 0.22s ease;
}

.service-group-items-clip[hidden] {
    display: none !important;
}

.service-group-items-clip.is-animating {
    overflow: hidden;
}

.service-group-items {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.service-group-admin .service-group-items {
    gap: 10px;
}

.service-group-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.manage-group-actions .manage-btn {
    padding: 7px 12px;
    font-size: 0.8rem;
}

.service-group-action-status {
    margin: 0;
}

.site-card {
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.4);
    display: grid;
    gap: 8px;
}

.site-card.site-link {
    cursor: pointer;
    box-shadow: 0 8px 16px rgba(18, 40, 80, 0.08);
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease,
        background 0.22s ease;
}

.site-card.site-link:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.55);
    box-shadow: 0 14px 28px rgba(18, 40, 80, 0.14);
}

.site-card.site-link:active {
    transform: translateY(0);
    background: rgba(255, 255, 255, 0.62);
    box-shadow:
        0 6px 12px rgba(18, 40, 80, 0.1),
        inset 0 4px 10px rgba(18, 40, 80, 0.08);
}

.site-card.site-link:focus-visible {
    outline: 2px solid var(--main-color, rgba(66, 182, 255, 0.8));
    outline-offset: 2px;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.site-title {
    font-size: 1rem;
}

.site-desc {
    font-size: 0.85rem;
    color: rgba(11, 15, 26, 0.65);
}

.site-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.85rem;
    color: rgba(11, 15, 26, 0.7);
}

.site-meta a {
    min-width: 0;
    overflow-wrap: anywhere;
}

html[data-theme="dark"] body {
    color: #e6ebf5;
    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(58, 120, 200, 0.25),
            transparent 45%
        ),
        radial-gradient(
            circle at 80% 10%,
            rgba(180, 80, 180, 0.25),
            transparent 50%
        ),
        radial-gradient(
            circle at 70% 80%,
            rgba(60, 160, 120, 0.25),
            transparent 45%
        ),
        linear-gradient(135deg, #0f1420 0%, #121a2b 45%, #141225 100%);
    background-attachment: fixed;
}

html[data-theme="dark"] body::before {
    opacity: 0.2;
}

html[data-theme="dark"] body a {
    color: #7fb3ff;
}

html[data-theme="dark"] body .nav {
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] body .nav .nav-item,
html[data-theme="dark"] body .nav-right .nav-item {
    color: #e6ebf5;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(18, 24, 38, 0.6);
}

html[data-theme="dark"] body .nav .nav-item::before {
    background: radial-gradient(
        circle at 20% 20%,
        rgba(120, 160, 255, 0.35),
        transparent 55%
    );
}

html[data-theme="dark"] body .nav .nav-item::after {
    background: linear-gradient(
        120deg,
        transparent 20%,
        rgba(120, 160, 255, 0.2),
        transparent 70%
    );
}

html[data-theme="dark"] body .nav-user-summary-label {
    color: rgba(230, 235, 245, 0.45);
}

html[data-theme="dark"] body .nav .nav-item.nav-avatar-button {
    border-color: rgba(255, 255, 255, 0.16) !important;
    background: linear-gradient(
        145deg,
        rgba(34, 48, 74, 0.92),
        rgba(20, 30, 46, 0.88)
    ) !important;
    box-shadow:
        0 10px 20px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] body .nav .nav-item.nav-avatar-button:hover,
html[data-theme="dark"] body .nav .nav-item.nav-avatar-button.is-hovered {
    border-color: rgba(127, 179, 255, 0.28) !important;
    background: linear-gradient(
        145deg,
        rgba(38, 56, 86, 0.96),
        rgba(22, 34, 54, 0.92)
    ) !important;
    box-shadow:
        0 12px 24px rgba(0, 0, 0, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] body .nav .nav-item.nav-avatar-button:active,
html[data-theme="dark"] body .nav .nav-item.nav-avatar-button.is-pressed {
    border-color: rgba(127, 179, 255, 0.2) !important;
    background: linear-gradient(
        145deg,
        rgba(30, 44, 68, 0.96),
        rgba(18, 28, 44, 0.94)
    ) !important;
    box-shadow:
        0 6px 14px rgba(0, 0, 0, 0.34),
        inset 0 4px 10px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] body .nav-dropdown-menu {
    background: rgba(15, 22, 33, 0.92);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] body .nav-board-dropdown .nav-dropdown-menu {
    background: rgba(17, 26, 41, 0.95);
    border-color: rgba(210, 220, 236, 0.2);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
}

html[data-theme="dark"] body .nav-dropdown-item {
    color: rgba(240, 246, 255, 0.92);
}

html[data-theme="dark"] body .nav-dropdown-item:hover {
    background: rgba(118, 197, 255, 0.18);
}

html[data-theme="dark"] body .nav-dropdown-item.is-restricted {
    border-color: rgba(220, 228, 245, 0.28);
    background: rgba(170, 182, 205, 0.12);
}

html[data-theme="dark"] body .nav-dropdown-item.is-restricted:hover {
    background: rgba(170, 182, 205, 0.2);
}

html[data-theme="dark"] body .glass-card,
html[data-theme="dark"] body .auth-card {
    background: rgba(18, 24, 38, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 22px 48px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] body .site-notice-banner {
    background: rgba(18, 24, 38, 0.48);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow:
        0 22px 48px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] body .site-notice-banner.is-protect-mode {
    background: rgba(72, 18, 28, 0.54);
    border-color: rgba(255, 130, 150, 0.24);
    color: #ffd9e0;
    box-shadow:
        0 22px 48px rgba(35, 0, 8, 0.42),
        inset 0 1px 0 rgba(255, 198, 210, 0.08);
}

html[data-theme="dark"] body .site-notice-banner::before {
    background: linear-gradient(
        140deg,
        rgba(255, 255, 255, 0.14),
        rgba(255, 255, 255, 0.05) 13%,
        rgba(255, 255, 255, 0) 65%
    );
}

html[data-theme="dark"] body .site-notice-banner.is-protect-mode::before {
    background: linear-gradient(
        140deg,
        rgba(255, 218, 225, 0.14),
        rgba(255, 112, 138, 0.16) 15%,
        rgba(255, 255, 255, 0) 68%
    );
}

html[data-theme="dark"] body .site-notice-banner > .site-notice-icon {
    background: rgba(18, 24, 38, 0.48);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow:
        0 22px 48px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] body .site-notice-banner.is-protect-mode > .site-notice-icon {
    background: rgba(96, 22, 36, 0.58);
    border-color: rgba(255, 140, 160, 0.28);
    color: #ff8ea2;
    box-shadow:
        0 18px 36px rgba(35, 0, 8, 0.3),
        inset 0 1px 0 rgba(255, 205, 215, 0.08);
}

html[data-theme="dark"] body .site-notice-banner > .site-notice-content {
    color: inherit;
}

html[data-theme="dark"] body .site-notice-banner.is-protect-mode > .site-notice-content {
    color: #ffd9e0;
}

html[data-theme="dark"] body .metric-item,
html[data-theme="dark"] body .site-card,
html[data-theme="dark"] body .home-link-item {
    background: rgba(18, 24, 38, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] body .home-link-icon-wrap {
    background: rgba(22, 31, 49, 0.72);
    border-color: rgba(255, 255, 255, 0.12);
    color: rgba(230, 235, 245, 0.84);
}

html[data-theme="dark"] body .service-group {
    background: rgba(18, 24, 38, 0.45);
    border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] body .service-group-toggle {
    background: rgba(22, 31, 49, 0.7);
    border-color: rgba(255, 255, 255, 0.12);
    color: rgba(230, 235, 245, 0.82);
}

html[data-theme="dark"] body .service-group-toggle:hover {
    background: rgba(27, 37, 58, 0.88);
    border-color: rgba(255, 255, 255, 0.18);
}

html[data-theme="dark"] body .service-group.is-nested {
    border-left-color: rgba(110, 196, 255, 0.28);
}

html[data-theme="dark"] body .metric-bar {
    background: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] body .metric-label,
html[data-theme="dark"] body .metric-detail,
html[data-theme="dark"] body .site-desc,
html[data-theme="dark"] body .site-meta,
html[data-theme="dark"] body .home-link-value,
html[data-theme="dark"] body .service-group-description,
html[data-theme="dark"] body .auth-link,
html[data-theme="dark"] body .helper,
html[data-theme="dark"] body .login-form label,
html[data-theme="dark"] body .login-form button.nav-item {
    color: rgba(230, 235, 245, 0.7);
}

html[data-theme="dark"] body .license-meta-value {
    color: #f3f7ff;
}

html[data-theme="dark"] body .status-pill {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(230, 235, 245, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] body .status-pill.status-ok,
html[data-theme="dark"] body .status-pill.status-up {
    color: #b8ffd8;
    background: rgba(56, 199, 129, 0.22);
    border-color: rgba(86, 229, 160, 0.45);
    box-shadow:
        inset 0 1px 0 rgba(200, 255, 226, 0.15),
        0 0 12px rgba(56, 199, 129, 0.22);
}

html[data-theme="dark"] body .status-pill.status-down {
    color: #ffd0d0;
    background: rgba(231, 76, 96, 0.24);
    border-color: rgba(255, 111, 131, 0.45);
    box-shadow:
        inset 0 1px 0 rgba(255, 220, 224, 0.14),
        0 0 12px rgba(231, 76, 96, 0.24);
}

html[data-theme="dark"] body .status-pill.status-degraded,
html[data-theme="dark"] body .status-pill.status-warn {
    color: #ffe4b5;
    background: rgba(245, 173, 71, 0.25);
    border-color: rgba(255, 205, 110, 0.46);
    box-shadow:
        inset 0 1px 0 rgba(255, 239, 202, 0.14),
        0 0 12px rgba(245, 173, 71, 0.23);
}

html[data-theme="dark"] body .status-pill.status-unknown {
    color: rgba(230, 235, 245, 0.82);
    background: rgba(118, 136, 170, 0.2);
    border-color: rgba(170, 184, 210, 0.34);
}

html[data-theme="dark"] body .login-form input {
    background: rgba(14, 18, 30, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #e6ebf5;
}

html[data-theme="dark"] body .login-form input:hover {
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] body .login-form input:focus {
    box-shadow:
        0 0 0 3px var(--main-color, rgba(66, 182, 255, 0.35)),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

html[data-theme="dark"] body .login-form button.nav-item,
html[data-theme="dark"] body .auth-actions .auth-button {
    color: #e6ebf5;
}

html[data-theme="dark"] body .site-card.site-link:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(22, 31, 49, 0.78);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.42);
}

html[data-theme="dark"] body .site-card.site-link:active {
    background: rgba(27, 37, 58, 0.86);
    box-shadow:
        0 8px 16px rgba(0, 0, 0, 0.36),
        inset 0 4px 10px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] body .home-link-item.is-link:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(22, 31, 49, 0.78);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.42);
}

html[data-theme="dark"] body .home-link-item.is-link:active {
    background: rgba(27, 37, 58, 0.86);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.36);
}

html[data-theme="dark"] body .config-textarea {
    background: rgba(14, 18, 30, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #e6ebf5;
}

html[data-theme="dark"] body .config-textinput {
    background: rgba(14, 18, 30, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #e6ebf5;
}

html[data-theme="dark"] body .config-card-note,
html[data-theme="dark"] body .config-builder-summary-description,
html[data-theme="dark"] body .config-builder-compact-label {
    color: rgba(230, 235, 245, 0.62);
}

html[data-theme="dark"] body .config-builder-summary:hover,
html[data-theme="dark"] body .config-builder-item-summary:hover {
    background: rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] body .config-builder-item-summary.is-static:hover {
    background: transparent;
}

html[data-theme="dark"] body .config-builder-field,
html[data-theme="dark"] body .config-builder-section,
html[data-theme="dark"] body .config-builder-item {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(17, 24, 38, 0.52);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] body .config-builder-field-label,
html[data-theme="dark"] body .config-builder-summary-title,
html[data-theme="dark"] body .config-builder-item-title {
    color: #f2f6ff;
}

html[data-theme="dark"] body .config-builder-summary-badge {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(230, 235, 245, 0.8);
}

html[data-theme="dark"] body .config-builder-summary-toggle {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(230, 235, 245, 0.82);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] body .config-builder-mini-btn {
    background: rgba(24, 34, 52, 0.92);
    border-color: rgba(255, 255, 255, 0.12);
    color: rgba(230, 235, 245, 0.9);
}

html[data-theme="dark"] body .config-builder-mini-btn:hover {
    box-shadow: 0 8px 14px rgba(0, 0, 0, 0.26);
}

html[data-theme="dark"] body .config-builder-mini-btn.danger {
    background: rgba(92, 28, 39, 0.58);
    border-color: rgba(255, 111, 131, 0.22);
    color: #ffd5dd;
}

html[data-theme="dark"] body .config-builder-bool-toggle {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(18, 24, 38, 0.6);
    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] body .config-builder-bool-option {
    color: rgba(230, 235, 245, 0.52);
}

html[data-theme="dark"] body .config-builder-bool-option.is-active {
    color: #000;
}

html[data-theme="dark"] body .config-builder-bool-thumb {
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow:
    0 12px 22px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -8px 14px rgba(255, 255, 255, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.14);
}

html[data-theme="dark"] body .static-path-badge {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(230, 235, 245, 0.82);
}

html[data-theme="dark"] body .static-upload-entry {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(17, 24, 38, 0.56);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] body .static-file-input::file-selector-button,
html[data-theme="dark"] body .static-file-input::-webkit-file-upload-button {
    color: #e6ebf5;
    border-color: rgba(255, 255, 255, 0.14);
    background:
        linear-gradient(140deg, rgba(36, 55, 88, 0.92), rgba(20, 34, 58, 0.92)),
        linear-gradient(90deg, rgba(87, 194, 123, 0.45), rgba(87, 169, 194, 0.45));
    box-shadow:
        0 10px 22px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] body .static-upload-remove {
    background: rgba(112, 34, 44, 0.4);
    border-color: rgba(255, 111, 131, 0.26);
    color: #ffd6dc;
}

html[data-theme="dark"] body .static-field {
    color: rgba(230, 235, 245, 0.72);
}

html[data-theme="dark"] body .static-breadcrumb-button {
    background: rgba(26, 37, 58, 0.85);
    border-color: rgba(255, 255, 255, 0.12);
    color: #e6ebf5;
    box-shadow:
        0 10px 22px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] body .static-breadcrumb-separator {
    color: rgba(230, 235, 245, 0.45);
}

html[data-theme="dark"] body .static-empty-state {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(17, 24, 38, 0.5);
}

html[data-theme="dark"] body .static-entry {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(17, 24, 38, 0.62);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] body .static-entry-icon {
    background: rgba(27, 39, 60, 0.92);
    border-color: rgba(255, 255, 255, 0.08);
    color: rgba(230, 235, 245, 0.88);
}

html[data-theme="dark"] body .static-entry-icon.is-directory {
    background: rgba(56, 199, 129, 0.16);
    color: #b8ffd8;
}

html[data-theme="dark"] body .static-entry-icon.is-image {
    background: rgba(82, 143, 235, 0.18);
    color: #c9e2ff;
}

html[data-theme="dark"] body .static-entry-icon.is-archive {
    background: rgba(186, 130, 46, 0.2);
    color: #ffe2b5;
}

html[data-theme="dark"] body .static-entry-icon.is-code {
    background: rgba(120, 92, 204, 0.2);
    color: #e1d6ff;
}

html[data-theme="dark"] body .static-entry-icon.is-file {
    background: rgba(87, 169, 194, 0.16);
    color: #bfefff;
}

html[data-theme="dark"] body .static-entry-url {
    color: rgba(230, 235, 245, 0.55);
}

html[data-theme="dark"] body .static-entry-action {
    color: inherit;
}

html[data-theme="dark"] body .static-entry-action.is-danger {
    background: rgba(112, 34, 44, 0.45);
    border-color: rgba(255, 111, 131, 0.3);
    color: #ffd6dc;
}

html[data-theme="dark"] body .admin-form label {
    color: rgba(230, 236, 245, 0.7);
}

html[data-theme="dark"] body .admin-form input[type="text"] {
    background: rgba(18, 24, 36, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(246, 248, 255, 0.95);
}

.metric-label {
    margin: 0 0 6px;
    font-size: 0.85rem;
    color: rgba(11, 15, 26, 0.7);
}

.metric-value {
    margin: 0 0 10px;
    font-size: 1.6rem;
    font-weight: 800;
}

.metric-detail {
    margin: 0 0 10px;
    font-size: 0.85rem;
    color: rgba(11, 15, 26, 0.6);
}

.metric-bar {
    height: 6px;
    border-radius: 999px;
    background: rgba(18, 40, 80, 0.12);
    overflow: hidden;
}

.metric-bar span {
    display: block;
    height: 100%;
    width: 0;
    background: var(
        --usage-bar-color,
        var(--main-color, linear-gradient(90deg, #42b6ff, #6ef5b8))
    );
    transition: width 1s cubic-bezier(0.1, 0, 0, 1);
}

.login-form {
    display: grid;
    gap: 12px;
}

.login-form label {
    display: grid;
    gap: 6px;
    font-size: 0.85rem;
    color: rgba(11, 15, 26, 0.7);
}

.login-form .auth-remember {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    margin: 0;
    font-size: 0.85rem;
    color: rgba(11, 15, 26, 0.75);
}

.login-form .auth-remember input[type="checkbox"] {
    appearance: none;
    margin: 0;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 1px solid rgba(18, 40, 80, 0.2);
    background: rgba(255, 255, 255, 0.9);
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.login-form .auth-remember input[type="checkbox"]::after {
    content: "";
    width: 9px;
    height: 5px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%) rotate(-45deg) scale(0.6);
    opacity: 0;
    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.login-form .auth-remember input[type="checkbox"]:checked {
    background: var(--main-color, #39bd70);
    border-color: color-mix(
        in oklab,
        var(--main-color, #39bd70) 70%,
        transparent
    );
    box-shadow: 0 0 0 3px
        color-mix(in oklab, var(--main-color, #39bd70) 25%, transparent);
}

.login-form .auth-remember input[type="checkbox"]:checked::after {
    transform: translate(-50%, -55%) rotate(-45deg) scale(1);
    opacity: 1;
}

.captcha-wrap {
    display: grid;
    gap: 8px;
}

.captcha-wrap .helper {
    margin: 0;
}

.email-verify-wrap {
    display: grid;
    gap: 6px;
}

.email-verify-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.email-verify-row > * {
    min-width: 0;
}

.email-verify-row .manage-btn {
    white-space: nowrap;
}

#turnstile-widget {
    min-height: 65px;
}

.login-form input:not([type="checkbox"]),
.admin-form input[type="text"] {
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(18, 40, 80, 0.15);
    background: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.login-form input:not([type="checkbox"]):hover,
.admin-form input[type="text"]:hover {
    border-color: rgba(18, 40, 80, 0.25);
    box-shadow: 0 6px 16px rgba(18, 40, 80, 0.08);
}

.login-form input:not([type="checkbox"]):focus,
.admin-form input[type="text"]:focus {
    outline: none;
    border-color: var(--main-color, rgba(66, 182, 255, 0.7));
    box-shadow:
        0 0 0 3px var(--main-color, rgba(66, 182, 255, 0.25)),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.login-form input:not([type="checkbox"]):active,
.admin-form input[type="text"]:active {
    border-color: rgba(18, 40, 80, 0.35);
    box-shadow:
        0 4px 10px rgba(18, 40, 80, 0.12),
        inset 0 2px 6px rgba(18, 40, 80, 0.08);
}

.login-form button.nav-item,
.auth-actions .auth-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.65);
    background:
        rgba(255, 255, 255, 0.45),
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.85),
            rgba(255, 255, 255, 0.55)
        ),
        var(--main-color, linear-gradient(90deg, #42b6ff, #6ef5b8));
    color: #000;
    font-family: inherit;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 12px 16px;
    border-radius: 16px;
    box-shadow:
        0 12px 28px rgba(18, 40, 80, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    transition:
        0.35s transform cubic-bezier(0.12, 0.6, 0, 1),
        0.45s box-shadow cubic-bezier(0.12, 0.6, 0, 1),
        0.35s filter cubic-bezier(0.12, 0.6, 0, 1);
}

.login-form button.nav-item:focus,
.auth-actions .auth-button:focus {
    outline: none;
}

.login-form button.nav-item:hover,
.auth-actions .auth-button:hover {
    filter: brightness(1.04) saturate(110%);
    box-shadow:
        0 14px 26px rgba(18, 40, 80, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    transform: translateY(-1px);
}

.login-form button.nav-item:active,
.auth-actions .auth-button:active {
    filter: brightness(0.98) saturate(115%);
    box-shadow:
        0 6px 14px rgba(18, 40, 80, 0.16),
        inset 0 6px 14px rgba(18, 40, 80, 0.14);
    transform: translateY(0);
}

.helper {
    margin: 12px 0 0;
    font-size: 0.85rem;
    color: rgba(11, 15, 26, 0.7);
}

.helper.error {
    color: #c0392b;
}

.license-meta-list {
    display: grid;
    gap: 18px;
}

.license-meta-item {
    display: grid;
    gap: 6px;
}

.license-meta-value {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #0b0f1a;
    word-break: break-all;
}

.license-meta-value.is-loading {
    font-weight: 500;
}

.license-meta-value.is-mono {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.94rem;
}

.nav {
    background:
        /* linear-gradient(
            140deg,
            rgba(255, 255, 255, 0.65),
            rgba(255, 255, 255, 0.35)
        ), */ var(
        --nav-bg-color,
        var(--color, linear-gradient(135deg in oklab, #39bd70 40%, #143261))
    );
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    padding: 0.8rem 2rem;
    display: flex;
    flex-wrap: wrap;
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow:
        0 20px 50px rgba(26, 40, 80, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    position: sticky;
    top: 0;
    z-index: 500;
    box-sizing: border-box;
}

.nav-content {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    box-sizing: border-box;
}

.nav .nav-item {
    display: flex;
    align-items: center;
    color: var(--nav-text-color, #000);
    font-size: 1rem;
    font-weight: 900;
    box-sizing: border-box;
    margin: 0 0.2rem 1px 0.2rem;
    padding: 0.65rem 1rem 0.55rem 1rem;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow:
        0 6px 16px rgba(18, 40, 80, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.65);
    will-change: box-shadow, background;
    transition:
        0.35s color cubic-bezier(0.1, 0, 0, 1),
        0.45s box-shadow cubic-bezier(0.12, 0.6, 0, 1),
        0.45s background cubic-bezier(0.12, 0.6, 0, 1),
        0.35s filter cubic-bezier(0.12, 0.6, 0, 1);
    cursor: pointer;
}
.nav .nav-item::before,
.nav .nav-item::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition:
        opacity 0.4s ease,
        transform 0.6s cubic-bezier(0.2, 0.7, 0, 1);
}
.nav .nav-item::before {
    background: radial-gradient(
        circle at 20% 20%,
        rgba(255, 255, 255, 0.9),
        transparent 55%
    );
    transform: translate3d(-20%, -10%, 0);
}
.nav .nav-item::after {
    background: linear-gradient(
        120deg,
        transparent 20%,
        rgba(255, 255, 255, 0.5),
        transparent 70%
    );
    transform: translate3d(-120%, 0, 0);
}
.nav .nav-item:hover {
    color: var(--nav-hover-text-color, #000);
    background: rgba(255, 255, 255, 0.55);
    box-shadow:
        0 10px 24px rgba(18, 40, 80, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.72);
}
.nav .nav-item:hover::before {
    opacity: 0.7;
    transform: translate3d(0, 0, 0);
}
.nav .nav-item:hover::after {
    opacity: 1;
    transform: translate3d(120%, 0, 0);
}
.nav .nav-item:active {
    background: rgba(255, 255, 255, 0.7);
    box-shadow:
        0 4px 12px rgba(18, 40, 80, 0.12),
        inset 0 5px 14px rgba(18, 40, 80, 0.18);
    filter: saturate(110%);
}
.nav .nav-item:active::before {
    opacity: 0.4;
    transform: translate3d(0, 0, 0);
}
.nav .nav-item:active::after {
    opacity: 0.6;
    transform: translate3d(30%, 0, 0);
}
.nav .nav-item .nav-item-text {
    color: inherit;
    font-weight: inherit;
}

#nav-auth .nav-item.nav-icon-button {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    flex: 0 0 42px !important;
}

#nav-auth .nav-item.nav-icon-button i {
    margin-right: 0;
    font-size: 1rem;
}

.nav .logo {
    font-size: 1.5rem;
    padding: 0.35rem 1.5rem 0.3rem 1.5rem;
    margin: 0 0.2rem;
    word-break: keep-all;
    text-shadow: 0 6px 18px rgba(40, 60, 120, 0.2);
}

.logo-icon {
    margin-right: 10px;
    display: none;
    font-size: 1.1rem;
}

@media (max-width: 720px) {
    main.dashboard,
    .config-shell,
    .auth-shell {
        margin-top: 20px;
        padding-left: 16px;
        padding-right: 16px;
        padding-bottom: 56px;
    }

    main.dashboard.has-site-notice,
    .config-shell.has-site-notice {
        margin-top: 10px;
    }

    .nav {
        padding: 0.7rem 0.85rem;
    }

    .nav-content {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
        align-items: start;
    }

    .nav-left,
    .nav-right {
        margin-left: 0;
    }

    .config-builder-inline {
        grid-template-columns: minmax(0, 1fr);
    }

    .site-notice-shell.is-outside-main {
        margin-top: 10px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .site-notice-shell.is-auth-overlay {
        padding-left: 16px;
        padding-right: 16px;
    }

    .site-notice-shell.is-outside-main + main {
        margin-top: 10px;
    }

    .config-builder-input-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .config-builder-field-boolean {
        align-items: center;
    }

    .nav-left {
        display: contents;
    }

    .nav-right {
        width: auto;
        grid-column: 2;
        grid-row: 2;
        display: flex;
        align-items: center;
        gap: 8px;
        justify-self: end;
    }

    .nav .logo {
        grid-column: 1 / -1;
        justify-content: center;
        font-size: 1.2rem;
        margin: 0;
    }

    .nav .nav-item {
        margin-left: 0;
        margin-right: 0;
    }

    .nav-admin-only,
    .nav-manage-only,
    .nav-minecraft-only,
    .nav-board-dropdown,
    .nav-external-dropdown {
        width: 100%;
    }

    .nav-admin-only,
    .nav-manage-only,
    .nav-minecraft-only {
        grid-column: 1;
    }

    .nav-board-dropdown,
    .nav-external-links,
    .nav-external-dropdown {
        grid-column: 1 / -1;
    }

    .nav-external-links {
        width: 100%;
        gap: 8px;
    }

    .nav-external-links.is-visible {
        display: grid;
        grid-template-columns: 1fr;
    }

    .nav-external-links .nav-item {
        width: 100%;
        justify-content: center;
        margin: 0;
    }

    .nav-dropdown,
    .nav-dropdown-toggle,
    .nav-manage-only {
        width: 100%;
        justify-content: center;
    }

    .nav-admin-only .nav-dropdown-toggle {
        width: 100%;
    }

    .nav-avatar-button,
    .theme-toggle,
    #nav-auth .nav-item.nav-icon-button {
        margin: 0;
    }

    .nav .nav-item.nav-avatar-button {
        width: 37px !important;
        height: 37px !important;
        min-width: 37px !important;
        flex: 0 0 37px !important;
    }

    #nav-auth {
        min-width: 0;
        width: auto;
        justify-content: flex-end;
        flex-wrap: nowrap;
    }

    .nav-right.is-logged-out {
        grid-column: 1 / -1;
        grid-row: 2;
        display: grid;
        width: 100%;
        justify-self: stretch;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }

    #nav-auth.is-logged-out {
        flex: 1 1 auto;
        width: 100%;
        min-width: 0;
        justify-content: stretch;
    }

    #nav-auth.is-logged-out > .nav-item:last-child:first-child {
        width: 100%;
        justify-content: center;
    }

    .theme-toggle {
        width: 36px;
        height: 36px;
    }

    .nav-icon-button {
        width: 36px;
        height: 36px;
    }

    #nav-auth .nav-item.nav-icon-button {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        flex: 0 0 36px !important;
    }

    .nav-dropdown-menu {
        left: 0;
        right: 0;
        min-width: unset;
        max-width: 100%;
        box-sizing: border-box;
    }

    .nav-user-dropdown .nav-user-menu {
        left: auto;
        right: 0;
        width: min(220px, calc(100vw - 32px));
        min-width: 200px;
        max-width: calc(100vw - 32px);
    }

    .card-header,
    .site-header,
    .site-meta {
        align-items: flex-start;
        flex-direction: column;
    }

    .card-header {
        gap: 8px;
    }

    .status-pill {
        align-self: flex-start;
    }

    .site-footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .admin-card {
        width: 100%;
        max-width: 100%;
    }

    .admin-lookup {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-check {
        width: 100%;
        justify-content: center;
    }

    .admin-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-actions .nav-item {
        width: 100%;
        justify-content: center;
    }

    #admin-status {
        width: 100%;
    }

    .static-files-toolbar .helper {
        width: 100%;
    }

    .static-files-card-header {
        flex-direction: column;
        align-items: stretch;
    }

    .static-path-badge {
        width: 100%;
        box-sizing: border-box;
    }

    .static-upload-grid,
    .static-folder-row {
        grid-template-columns: 1fr;
    }

    .static-upload-entry-header,
    .static-upload-entry-fields {
        grid-template-columns: 1fr;
    }

    .static-upload-entry-header {
        display: grid;
    }

    .static-upload-remove,
    .static-files-card .manage-btn {
        width: 100%;
        justify-content: center;
    }

    .static-entry {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .static-entry-actions {
        justify-content: stretch;
    }

    .static-entry-action {
        flex: 1 1 calc(50% - 8px);
        min-width: 0;
    }

    .minecraft-command-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    main.dashboard {
        grid-template-columns: 1fr;
        gap: 18px;
        padding-left: 16px;
        padding-right: 16px;
        padding-bottom: 56px;
        margin-top: 20px;
    }

    .dashboard-side-column {
        display: contents;
    }

    #metrics-card {
        order: 1;
    }

    #sites-card {
        order: 2;
    }

    #home-links-card {
        order: 3;
    }

    .glass-card {
        padding: 18px;
    }

    .metric-grid,
    .site-list {
        gap: 12px;
    }

    .service-group-header-top {
        flex-direction: column;
        align-items: stretch;
    }

    .service-group-tools {
        justify-content: flex-start;
    }

    .service-group.is-nested {
        margin-left: 8px;
        padding-left: 14px;
    }
}

@media (max-width: 480px) {
    main.dashboard,
    .config-shell,
    .auth-shell {
        padding-left: 12px;
        padding-right: 12px;
        padding-bottom: 44px;
    }

    .glass-card {
        padding: 16px;
        border-radius: 18px;
    }

    .site-notice-shell.is-outside-main {
        margin-top: 10px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .site-notice-shell.is-auth-overlay {
        padding-left: 12px;
        padding-right: 12px;
    }

    .site-notice-shell.is-outside-main + main {
        margin-top: 10px;
    }

    .site-notice-banner {
        padding: 0.5rem 0.95rem;
        border-radius: 18px;
    }

    .site-notice-banner > .site-notice-icon {
        font-size: 1rem;
    }

    .site-notice-banner > .site-notice-content {
        margin: -22px 0 3px 40px;
        font-size: 0.94rem;
        line-height: 1.5;
    }

    .nav .nav-item {
        padding: 0.55rem 0.85rem 0.5rem 0.85rem;
        font-size: 0.95rem;
    }

    .nav .logo {
        font-size: 1.05rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .logo-icon {
        margin-right: 8px;
        font-size: 1rem;
    }

    .email-verify-row {
        grid-template-columns: 1fr;
    }

    .email-verify-row .manage-btn {
        width: 100%;
        justify-content: center;
    }

    .nav-dropdown-item {
        padding: 9px 10px;
    }

    .metric-value {
        font-size: clamp(2.2rem, 9vw, 3rem);
    }

    .site-card,
    .metric-item {
        padding: 14px;
    }

    .static-entry-action {
        flex-basis: 100%;
    }

    .site-footer {
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* ── Manage page ──────────────────────────────────────── */
.manage-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.manage-toolbar {
    margin-top: 16px;
}

.manage-toolbar .nav-item:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    filter: none !important;
}

.manage-toolbar-status {
    margin: 0;
}

.manage-card-header {
    margin-bottom: 14px;
}

.manage-card-title .site-title {
    margin: 0 0 4px;
}

.manage-title-link {
    color: inherit;
    transition: opacity .3s cubic-bezier(.1, 0, 0, 1);
    position: relative;
}

.manage-title-link::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    border-radius: 10px;
    transition: width .3s cubic-bezier(.1, 0, 0, 1);
}

.manage-title-link:hover::after {
    width: 100%;
}

.manage-title-link:active {
    opacity: .72;
}

.manage-title-link:active::after {
    width: 0;
}

.manage-card-title .site-desc {
    margin: 0;
}

.manage-process-state {
    font-weight: 400;
    color: rgba(11, 15, 26, 0.58);
}

.manage-process-state.is-running {
    color: #197149;
}

.manage-process-state.is-stopped,
.manage-process-state.is-missing {
    color: rgba(11, 15, 26, 0.58);
}

.manage-process-state.is-errored {
    color: #d94848;
}

.manage-self-badge {
    color: #d94848;
    font-weight: 700;
}

.manage-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.manage-latency {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(11, 15, 26, 0.5);
}

.manage-card-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.manage-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.manage-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    appearance: none;
    -webkit-appearance: none;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.8),
            rgba(255, 255, 255, 0.55)
        ),
        var(--main-color, linear-gradient(90deg, #42b6ff, #6ef5b8));
    color: #000;
    box-shadow:
        0 10px 22px rgba(18, 40, 80, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition:
        0.35s transform cubic-bezier(0.12, 0.6, 0, 1),
        0.45s box-shadow cubic-bezier(0.12, 0.6, 0, 1),
        0.35s filter cubic-bezier(0.12, 0.6, 0, 1);
}

.manage-btn:focus {
    outline: none;
}

.manage-btn:hover {
    filter: brightness(1.04) saturate(110%);
    transform: translateY(-1px);
}

.manage-btn:active {
    filter: brightness(0.98) saturate(115%);
    transform: translateY(0);
}

.manage-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    filter: none !important;
}

.manage-action-status {
    margin: 0;
    font-size: 0.82rem;
}

.manage-log-wrap {
    margin-top: 14px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(18, 40, 80, 0.1);
    background: rgba(255, 255, 255, 0.3);
}

.manage-excluded-wrap {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(18, 40, 80, 0.1);
    background: rgba(255, 255, 255, 0.34);
}

.manage-included-wrap {
    border-color: rgba(25, 113, 73, 0.18);
    background: rgba(103, 216, 162, 0.12);
}

.manage-excluded-list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 6px;
}

.manage-excluded-item {
    color: rgba(11, 15, 26, 0.82);
}

.manage-excluded-name {
    font-weight: 600;
}

.manage-excluded-id {
    font-weight: 400;
    color: rgba(11, 15, 26, 0.52);
}

.manage-excluded-reason {
    margin-left: 8px;
    color: rgba(11, 15, 26, 0.54);
}

.manage-excluded-reason.is-danger {
    color: #d94848;
}

.manage-log-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    border-bottom: 1px solid rgba(18, 40, 80, 0.08);
}

.manage-log-toolbar .helper {
    margin: 0;
}

.manage-log-pre {
    margin: 0;
    padding: 14px 16px;
    font-family: "SFMono-Regular", "Menlo", "Consolas", monospace;
    font-size: 0.8rem;
    line-height: 1.6;
    color: rgba(11, 15, 26, 0.8);
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 360px;
    overflow-y: auto;
}

.minecraft-card-meta {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.minecraft-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    background: rgba(18, 40, 80, 0.08);
    color: rgba(11, 15, 26, 0.7);
}

.minecraft-badge.is-rcon {
    background: rgba(87, 194, 123, 0.18);
    color: #197149;
}

.minecraft-status-sub {
    margin: 0 0 12px;
}

.minecraft-console-wrap {
    overflow: hidden;
}

.minecraft-console-toolbar {
    align-items: flex-start;
}

.minecraft-stream-status {
    margin: 2px 0 0;
}

.minecraft-console-pre {
    min-height: 220px;
    max-height: 420px;
    display: grid;
    gap: 4px;
}

.minecraft-console-line.is-command {
    color: #1c5ea8;
    font-weight: 700;
}

.minecraft-console-line.is-response {
    color: #197149;
}

.minecraft-console-line.is-error,
.minecraft-console-line.is-stderr {
    color: #d94848;
}

.minecraft-command-form {
    display: grid;
    gap: 8px;
    padding: 12px 14px 14px;
    border-top: 1px solid rgba(18, 40, 80, 0.08);
}

.minecraft-command-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.minecraft-command-note {
    margin: 0;
}

html[data-theme="dark"] body .manage-latency {
    color: rgba(230, 235, 245, 0.45);
}

html[data-theme="dark"] body .manage-excluded-wrap {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

html[data-theme="dark"] body .manage-included-wrap {
    border-color: rgba(103, 216, 162, 0.22);
    background: rgba(103, 216, 162, 0.08);
}

html[data-theme="dark"] body .manage-excluded-item {
    color: rgba(230, 235, 245, 0.86);
}

html[data-theme="dark"] body .manage-excluded-id {
    color: rgba(230, 235, 245, 0.52);
}

html[data-theme="dark"] body .manage-excluded-reason {
    color: rgba(230, 235, 245, 0.54);
}

html[data-theme="dark"] body .manage-excluded-reason.is-danger {
    color: #ff8f8f;
}

html[data-theme="dark"] body .manage-process-state {
    color: rgba(230, 235, 245, 0.62);
}

html[data-theme="dark"] body .manage-process-state.is-running {
    color: #67d8a2;
}

html[data-theme="dark"] body .manage-process-state.is-errored {
    color: #ff8f8f;
}

html[data-theme="dark"] body .manage-self-badge {
    color: #ff8f8f;
}

html[data-theme="dark"] body .manage-btn {
    color: #f4f8ff;
    border-color: rgba(255, 255, 255, 0.16);
    background:
        linear-gradient(140deg, rgba(36, 55, 88, 0.92), rgba(20, 34, 58, 0.92)),
        linear-gradient(
            90deg,
            rgba(64, 162, 255, 0.45),
            rgba(72, 210, 165, 0.45)
        );
    box-shadow:
        0 10px 22px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] body .manage-btn:hover {
    filter: brightness(1.08) saturate(112%);
}

html[data-theme="dark"] body .manage-btn:active {
    filter: brightness(0.96) saturate(115%);
}

html[data-theme="dark"] body .manage-btn:disabled {
    opacity: 1;
    color: rgba(224, 233, 247, 0.45);
    border-color: rgba(255, 255, 255, 0.08);
    background: linear-gradient(
        140deg,
        rgba(50, 64, 88, 0.55),
        rgba(33, 45, 66, 0.55)
    );
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] body .manage-toolbar .nav-item:disabled {
    opacity: 1;
    color: rgba(224, 233, 247, 0.45);
    border-color: rgba(255, 255, 255, 0.08);
    background: linear-gradient(
        140deg,
        rgba(50, 64, 88, 0.55),
        rgba(33, 45, 66, 0.55)
    );
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    cursor: not-allowed;
    transform: none !important;
    filter: none !important;
}

html[data-theme="dark"] body .manage-toggle[data-running="false"] {
    background:
        linear-gradient(140deg, rgba(24, 74, 56, 0.95), rgba(17, 54, 41, 0.95)),
        linear-gradient(
            90deg,
            rgba(81, 232, 166, 0.42),
            rgba(42, 183, 126, 0.42)
        );
}

html[data-theme="dark"] body .manage-toggle[data-running="true"] {
    background:
        linear-gradient(140deg, rgba(95, 34, 42, 0.95), rgba(66, 24, 29, 0.95)),
        linear-gradient(
            90deg,
            rgba(255, 111, 125, 0.4),
            rgba(255, 78, 108, 0.4)
        );
}

html[data-theme="dark"] body .manage-log-wrap {
    background: rgba(10, 14, 22, 0.55);
    border-color: rgba(255, 255, 255, 0.09);
}

html[data-theme="dark"] body .manage-log-toolbar {
    border-bottom-color: rgba(255, 255, 255, 0.07);
}

html[data-theme="dark"] body .manage-log-pre {
    color: rgba(230, 235, 245, 0.78);
}

html[data-theme="dark"] body .minecraft-badge {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(230, 235, 245, 0.72);
}

html[data-theme="dark"] body .minecraft-badge.is-rcon {
    background: rgba(103, 216, 162, 0.12);
    color: #7ce0b6;
}

html[data-theme="dark"] body .minecraft-command-form {
    border-top-color: rgba(255, 255, 255, 0.07);
}

html[data-theme="dark"] body .minecraft-console-line.is-command {
    color: #8dc4ff;
}

html[data-theme="dark"] body .minecraft-console-line.is-response {
    color: #7ce0b6;
}

html[data-theme="dark"] body .minecraft-console-line.is-error,
html[data-theme="dark"] body .minecraft-console-line.is-stderr {
    color: #ff8a8a;
}

/* ── Developer page ───────────────────────────────────────────────── */
.dev-service-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dev-service-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.4);
    flex-wrap: wrap;
}

.dev-service-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.dev-service-name {
    font-size: 0.95rem;
    font-weight: 700;
}

.dev-service-desc {
    font-size: 0.82rem;
    color: rgba(11, 15, 26, 0.6);
}

.dev-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.dev-meta-badge {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(18, 40, 80, 0.08);
    color: rgba(11, 15, 26, 0.65);
}

.dev-meta-mono {
    font-family: "SFMono-Regular", "Menlo", "Consolas", monospace;
    letter-spacing: 0.03em;
}

.dev-meta-warn {
    background: rgba(255, 178, 84, 0.2);
    color: #7a3b05;
}

.dev-service-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.dev-update-status {
    margin: 0;
    font-size: 0.82rem;
}

/* Modal */
.dev-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 900;
    background: rgba(10, 14, 22, 0.45);
    .nav .nav-item.nav-icon-button {
        width: 42px;
        height: 42px;
        min-width: 42px;
        padding: 0;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        flex: 0 0 42px;
    }

    .nav .nav-item.nav-icon-button i {
        margin-right: 0;
        font-size: 1rem;
    }
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
}

.dev-modal {
    width: 100%;
    max-width: 680px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 22px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.85);
    opacity: 0;
    transform: translateY(14px) scale(0.98);
}

.dev-modal-overlay.is-open {
    animation: devModalOverlayIn 0.22s ease forwards;
}

.dev-modal-overlay.is-open .dev-modal {
    animation: devModalCardIn 0.28s cubic-bezier(0.16, 0.84, 0.24, 1) forwards;
}

.dev-modal-overlay.is-closing {
    animation: devModalOverlayOut 0.2s ease forwards;
}

.dev-modal-overlay.is-closing .dev-modal {
    animation: devModalCardOut 0.2s ease forwards;
}

@keyframes devModalOverlayIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes devModalCardIn {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes devModalOverlayOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes devModalCardOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }
}

.dev-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.dev-modal-title {
    font-size: 0.95rem;
    font-weight: 700;
}

.manage-result-stack {
    flex: 1;
    max-height: none;
    overflow-y: auto;
    display: grid;
    gap: 14px;
    margin-top: 2px;
}

.manage-result-card {
    display: grid;
    gap: 8px;
}

.manage-result-title {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 800;
}

.dev-modal .manage-log-pre {
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(18, 40, 80, 0.12);
    background: rgba(255, 255, 255, 0.88);
    color: rgba(11, 15, 26, 0.9);
    line-height: 1.7;
}

.dev-modal .manage-result-pre {
    margin: 0;
    max-height: none;
    overflow-y: auto;
}

.dev-modal-close {
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.dev-modal-close .fa-solid {
    margin-right: 0 !important;
    font-size: 1.35rem;
    line-height: 1;
}

html[data-theme="dark"] body .dev-service-row {
    background: rgba(18, 24, 38, 0.55);
    border-color: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] body .dev-service-desc {
    color: rgba(230, 235, 245, 0.55);
}

html[data-theme="dark"] body .dev-meta-badge {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(230, 235, 245, 0.6);
}

html[data-theme="dark"] body .dev-meta-warn {
    background: rgba(255, 178, 84, 0.15);
    color: #f5a623;
}

html[data-theme="dark"] body .dev-modal {
    background: rgba(18, 24, 38, 0.9);
    border-color: rgba(255, 255, 255, 0.14);
}

html[data-theme="dark"] body .dev-modal .manage-log-pre {
    background: rgba(10, 14, 24, 0.82);
    border-color: rgba(255, 255, 255, 0.12);
    color: rgba(240, 246, 255, 0.92);
}

/* Update page layout tune */
.update-shell {
    max-width: 1500px;
}

.update-grid {
    gap: 16px;
    align-content: start;
    align-items: start;
}

.update-card {
    padding: 18px;
    height: auto;
}

.update-card .card-header {
    margin-bottom: 10px;
}

.update-card .card-header h3 {
    font-size: 1.08rem;
}

.update-card .dev-service-row {
    margin-top: 2px;
}

.update-card .dev-service-actions {
    gap: 12px;
}

@media (max-width: 860px) {
    .update-card .dev-service-row {
        align-items: flex-start;
    }

    .update-card .dev-service-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
        justify-content: stretch;
    }

    .update-card .dev-service-actions .manage-btn {
        width: 100%;
        min-width: 0;
        justify-content: center;
    }

    .update-card .dev-update-status {
        width: 100%;
    }
}
