:root {
    color-scheme: dark;
    --bg-primary: #11131c;
    --bg-gradient: linear-gradient(180deg, #0f121c 0%, #1a1f2d 80%);
    --panel: #1c202c;
    --panel-soft: #212536;
    --panel-border: rgba(255, 255, 255, 0.08);
    --text-primary: #edf2ff;
    --text-muted: #98a6c4;
    --accent: #2c94cf;
    --accent-strong: #58d4ff;
    --accent-soft: rgba(44, 148, 207, 0.18);
    --danger: #ff8f8a;
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 10px;
    font-family: 'Segoe UI', 'Inter', 'Roboto', system-ui, -apple-system, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    background: var(--bg-gradient);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
    outline: none;
}

a:hover,
a:focus-visible {
    color: var(--accent-strong);
    opacity: 0.92;
    text-decoration: none;
}

a:focus-visible {
    outline: 2px solid var(--accent-strong);
    outline-offset: 3px;
}

a.link-accent {
    color: var(--accent-strong);
}

a.link-accent:hover {
    color: var(--accent);
}

a.link-muted {
    color: var(--text-muted);
}

a.link-muted:hover {
    color: var(--text-primary);
}

a.link-danger {
    color: var(--danger);
}

a.link-quiet {
    opacity: 0.8;
}

a.link-quiet:hover {
    opacity: 1;
}

button,
input[type="button"],
input[type="submit"],
input[type="reset"] {
    font: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.18);
    cursor: pointer;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, transform 0.15s ease;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
input[type="reset"]:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
}

button:focus-visible,
input[type="button"]:focus-visible,
input[type="submit"]:focus-visible,
input[type="reset"]:focus-visible {
    outline: 2px solid var(--accent-strong);
    outline-offset: 2px;
}

button:active,
input[type="button"]:active,
input[type="submit"]:active,
input[type="reset"]:active {
    transform: translateY(1px);
}

button[type="submit"],
input[type="submit"] {
    background: linear-gradient(115deg, var(--accent), var(--accent-strong));
    color: #04121c;
    border-color: transparent;
    box-shadow: 0 10px 20px rgba(34, 150, 201, 0.35);
}

button[type="reset"],
input[type="reset"] {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
}

button:disabled,
input[type="button"]:disabled,
input[type="submit"]:disabled,
input[type="reset"]:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

ul,
ol {
    margin: 0 0 1.25rem 1.5rem;
    padding: 0;
    color: var(--text-primary);
    display: grid;
    gap: 0.45rem;
}

ul {
    list-style: disc;
}

ol {
    list-style: decimal;
}

ul ul,
ol ul,
ul ol,
ol ol {
    margin-top: 0.4rem;
    margin-left: 1.2rem;
}

li {
    line-height: 1.55;
    color: var(--text-muted);
}

li::marker {
    color: var(--accent-strong);
    font-size: 0.85em;
}

ul.list-inline,
ol.list-inline {
    display: inline-flex;
    gap: 12px;
    margin-left: 0;
}

ul.list-inline li,
ol.list-inline li {
    list-style: none;
    color: var(--text-primary);
}

dl {
    margin: 0 0 1.2rem;
    color: var(--text-muted);
}

dt {
    font-weight: 600;
    color: var(--text-primary);
}

dd {
    margin: 0.2rem 0 0.8rem 1rem;
}

blockquote {
    border-left: 4px solid rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    margin: 0 0 1.2rem;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    font-style: italic;
}

hr {
    border: none;
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
    margin: 24px 0;
}

.site-shell {
    width: min(1360px, 100%);
    margin: 0 auto;
    padding: 24px clamp(20px, 3vw, 48px);
}

body.sticky-nav-enabled .site-shell {
    padding-top: 0;
}

.stack-gap > * + * {
    margin-top: clamp(32px, 4vw, 60px);
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: clamp(24px, 5vw, 48px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sticky-shell {
    position: relative;
    width: 100%;
}

body.sticky-nav-enabled .sticky-shell {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    justify-content: center;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 0 clamp(2px, 0.8vw, 12px);
}

body.sticky-nav-enabled .sticky-shell header {
    width: min(1920px, calc(100vw - clamp(6px, 0.8vw, 28px)));
    padding: clamp(18px, 3vw, 30px);
    margin: 0;
    border-radius: var(--radius-lg);
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: none;
    box-shadow: 0 18px 42px rgba(4, 6, 14, 0.8);
    backdrop-filter: blur(18px);
    background: linear-gradient(145deg, rgba(6, 9, 18, 0.95), rgba(16, 21, 34, 0.92));
    border-bottom: none;
}

.brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand img {
    width: 56px;
    height: 56px;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-title {
    font-size: 1.4rem;
    letter-spacing: 0.12em;
    font-weight: 700;
}

.brand-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
}

.version {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 1rem;
    color: var(--text-muted);
}

.nav-links a {
    color: var(--text-muted);
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
    border-bottom-color: var(--accent);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

@media (max-width: 1100px) {
    header {
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 16px;
    }
    .nav-links {
        flex-wrap: wrap;
        row-gap: 10px;
        width: 100%;
    }
    .nav-actions {
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    .notification-center {
        order: 1;
    }
}

.notification-center {
    position: relative;
    display: flex;
    align-items: center;
}

.notification-bell {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.notification-bell:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.notification-center.is-open .notification-bell,
.notification-bell:hover {
    border-color: var(--accent);
    background: rgba(88, 212, 255, 0.12);
}

.notification-bell-icon svg {
    width: 22px;
    height: 22px;
    fill: var(--text-muted);
}

.notification-count {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    background: linear-gradient(120deg, var(--accent-strong), #7cddff);
    color: #04121c;
    font-size: 0.7rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    pointer-events: none;
}

.notification-count[hidden] {
    display: none !important;
}

.notification-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: min(340px, 80vw);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(9, 12, 22, 0.98);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    padding: 16px;
    z-index: 40;
    display: flex;
    flex-direction: column;
    max-height: 460px;
}

.notification-dropdown[hidden] {
    display: none;
}

.notification-dropdown-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.notification-dropdown-title strong {
    font-size: 1rem;
}

.notification-inline-action {
    border: none;
    background: transparent;
    color: var(--accent);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    padding: 4px 0;
}

.notification-dropdown-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 6px;
    margin-right: -6px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-soft) transparent;
    overscroll-behavior: contain;
}

.notification-dropdown-body::-webkit-scrollbar {
    width: 6px;
}

.notification-dropdown-body::-webkit-scrollbar-track {
    background: transparent;
}

.notification-dropdown-body::-webkit-scrollbar-thumb {
    background: var(--accent-soft);
    border-radius: 999px;
}

.notification-dropdown-body::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

.notification-spinner {
    width: 100%;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.notification-spinner::after {
    content: '';
    display: block;
    width: 40%;
    height: 100%;
    background: linear-gradient(120deg, var(--accent), #6bd6ff);
    animation: notificationSpinner 1.1s linear infinite;
}

@keyframes notificationSpinner {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(250%);
    }
}

.notification-empty {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
    padding: 8px 0;
}

.notification-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notification-item {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.notification-item:hover {
    border-color: var(--accent);
}

.notification-item.is-unread {
    border-color: var(--accent-soft);
    background: rgba(88, 212, 255, 0.08);
}

.notification-item-title {
    font-weight: 600;
}

.notification-item-body {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.notification-item-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.notification-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--accent);
}

.notification-dropdown-foot {
    margin-top: 8px;
    text-align: center;
}

.notification-dropdown-foot a {
    color: var(--accent);
    font-weight: 600;
}

.sticky-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-decoration: none;
}

.sticky-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.sticky-toggle-track {
    width: 36px;
    height: 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    padding: 2px;
    display: inline-flex;
    align-items: center;
    transition: background 0.2s ease;
}

.sticky-toggle-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transition: transform 0.2s ease, background 0.2s ease;
}

.sticky-toggle input:checked + .sticky-toggle-track {
    background: var(--accent-soft);
}

.sticky-toggle input:checked + .sticky-toggle-track .sticky-toggle-thumb {
    transform: translateX(18px);
    background: var(--accent-strong);
}

.sticky-toggle-text {
    color: var(--text-muted);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid transparent;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border 0.2s ease;
    text-align: center;
}

.btn:focus-visible {
    outline: 2px solid var(--accent-strong);
    outline-offset: 2px;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: linear-gradient(115deg, var(--accent), var(--accent-strong));
    color: #04121c;
    box-shadow: 0 10px 20px rgba(34, 150, 201, 0.35);
}

.btn-primary:hover {
    opacity: 0.92;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--panel-border);
    color: var(--text-primary);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent-strong);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--accent-strong);
    color: var(--accent-strong);
}

.btn-ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--text-muted);
}

.btn-ghost:hover {
    color: var(--text-primary);
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.04);
}

.btn-muted {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
}

.btn-muted:hover {
    color: var(--text-primary);
}

.btn-danger {
    background: linear-gradient(120deg, var(--danger), #ff5e57);
    color: #050609;
    box-shadow: 0 10px 20px rgba(255, 94, 87, 0.35);
}

.btn-pill {
    border-radius: 999px;
    padding-inline: 32px;
}

.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
}

.btn[disabled],
.btn.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.4em;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.hint {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.text-muted {
    color: var(--text-muted);
}

.text-accent {
    color: var(--accent-strong);
}

.text-danger {
    color: var(--danger);
}

.text-soft {
    color: rgba(255, 255, 255, 0.65);
}

.text-xs {
    font-size: 0.78rem;
}

.text-sm {
    font-size: 0.9rem;
}

.text-lg {
    font-size: 1.18rem;
}

.lead-copy {
    font-size: 1.12rem;
    color: var(--text-muted);
}

.uppercase {
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.fw-semibold {
    font-weight: 600;
}

.fw-bold {
    font-weight: 700;
}

.stack-sm > * + * {
    margin-top: 8px;
}

.stack-md > * + * {
    margin-top: 16px;
}

.stack-lg > * + * {
    margin-top: 28px;
}

.flex {
    display: flex;
}

.flex-inline {
    display: inline-flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flex-wrap {
    display: flex;
    flex-wrap: wrap;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

.flex-gap-sm {
    gap: 10px;
}

.flex-gap-md {
    gap: 18px;
}

.flex-gap-lg {
    gap: 28px;
}

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

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

.grid-triple {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.surface {
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(4, 7, 15, 0.85);
    padding: clamp(18px, 3vw, 30px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.surface-soft {
    background: rgba(4, 7, 15, 0.65);
}

.surface-ghost {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.03);
}

.card {
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(16, 20, 32, 0.92);
    padding: clamp(20px, 3vw, 36px);
    box-shadow: 0 14px 32px rgba(4, 6, 14, 0.65);
    display: grid;
    gap: 16px;
}

.card-compact {
    padding: clamp(14px, 2vw, 22px);
}

.card-inline {
    display: flex;
    align-items: center;
    gap: 16px;
}

.template-section {
    display: flex;
    flex-direction: column;
    gap: clamp(24px, 4vw, 48px);
}

.template-section + .template-section {
    margin-top: clamp(24px, 5vw, 48px);
}

.template-card,
.template-panel {
    border-radius: var(--radius-lg);
    border: 1px solid var(--panel-border);
    background: var(--panel);
    padding: clamp(24px, 5vw, 48px);
    display: grid;
    gap: 18px;
}

.callout {
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    padding: 14px 18px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.callout-accent {
    border-color: rgba(88, 212, 255, 0.45);
    background: rgba(44, 148, 207, 0.14);
}

.callout-danger {
    border-color: rgba(255, 143, 138, 0.45);
    background: rgba(255, 143, 138, 0.12);
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
}

.pill-accent {
    border-color: rgba(88, 212, 255, 0.45);
    color: var(--accent-strong);
}

.pill-danger {
    border-color: rgba(255, 143, 138, 0.45);
    color: var(--danger);
    background: rgba(255, 143, 138, 0.12);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
}

.badge-accent {
    border-color: rgba(88, 212, 255, 0.45);
    color: var(--accent-strong);
}

.badge-danger {
    border-color: rgba(255, 143, 138, 0.45);
    color: var(--danger);
}

.badge-muted {
    opacity: 0.75;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
}

.chip-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--accent-strong);
}

.divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.list-plain {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.list-plain li {
    color: var(--text-muted);
}

.avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    overflow: hidden;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="url"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(4, 7, 15, 0.72);
    color: var(--text-primary);
    font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2398a6c4' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 42px;
}

select:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

select option {
    background: var(--panel);
    color: var(--text-primary);
    padding: 10px 14px;
}

select option:hover,
select option:focus,
select option:checked {
    background: var(--accent-soft);
    color: var(--accent-strong);
}

select:disabled {
    cursor: not-allowed;
    opacity: 0.5;
    background-color: rgba(255, 255, 255, 0.02);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--accent-strong);
    box-shadow: 0 0 0 2px rgba(88, 212, 255, 0.25);
    outline: none;
    background: rgba(4, 7, 15, 0.88);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.input-inline {
    max-width: 360px;
}

.input-icon {
    position: relative;
}

.input-icon input {
    padding-left: 44px;
}

.input-icon span {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.field-label {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.field-helper {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.form-row > * {
    flex: 1 1 min(320px, 100%);
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.table-modern {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    background: rgba(4, 7, 15, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.table-modern th,
.table-modern td {
    padding: 14px 18px;
    text-align: left;
}

.table-modern th {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
}

.table-modern tr + tr td {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.table-modern tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.shadow-soft {
    box-shadow: 0 10px 24px rgba(3, 6, 14, 0.55);
}

.shadow-strong {
    box-shadow: 0 16px 34px rgba(3, 6, 14, 0.75);
}

.stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    font-weight: 600;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.02);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tag-accent {
    border-color: rgba(88, 212, 255, 0.4);
    color: var(--accent-strong);
}

.tag-muted {
    color: var(--text-muted);
}

.badge-stack {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.inline-code {
    font-family: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 2px 6px;
    font-size: 0.85rem;
}

.status-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
}

.status-badge.success {
    background: rgba(88, 212, 255, 0.12);
    border-color: rgba(88, 212, 255, 0.35);
    color: var(--accent-strong);
}

.status-badge.warning {
    background: rgba(255, 188, 87, 0.1);
    border-color: rgba(255, 188, 87, 0.35);
    color: #ffbc57;
}

.status-badge.info {
    background: rgba(44, 148, 207, 0.12);
    border-color: rgba(44, 148, 207, 0.35);
    color: var(--accent-strong);
}

.status-badge.muted {
    opacity: 0.8;
}

.auto-hint {
    color: var(--accent-strong);
    font-weight: 600;
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.panel-stack {
    display: grid;
    gap: 24px;
}

.redirect-card,
.helper-card,
.error-panel,
.generic-panel {
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: clamp(20px, 3vw, 32px);
    background: rgba(4, 7, 15, 0.85);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
    display: grid;
    gap: 16px;
}

.error-panel {
    border: 1px solid rgba(255, 143, 138, 0.45);
    background: rgba(255, 143, 138, 0.08);
}

.error-panel ul {
    list-style: none;
    display: grid;
    gap: 6px;
    color: var(--text-primary);
}

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

.helper-link {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.04);
    background: rgba(255, 255, 255, 0.02);
}

.helper-link span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.manual-note {
    font-size: 0.92rem;
    color: var(--text-muted);
}

.site-footer {
    margin-top: clamp(20px, 3vw, 40px);
    padding: 12px 0 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

#footer_links {
    position: static !important;
    top: 0 !important;
    margin-top: 4px;
    font-size: 0.85rem;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 7px;
}

.button {
    position: relative;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.24);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.78rem;
    color: var(--accent-strong);
    transition: border 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.button:hover {
    border-color: var(--accent);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.button-glow {
  padding: 10px 22px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.24);
  color: var(--accent-strong);
  box-shadow: 0 0 18px rgba(44,148,207,0.35);
  background: rgba(255,255,255,0.03);
}

.button-glow:hover {
  background: rgb(255 255 255 / 4%); /* rgba(44,148,207,0.12); */
  border-color: var(--accent);
  box-shadow: none;
}


.admin {
    color: #58d4ff;
    cursor: help;
}

.helper {
    color: #7affb4;
    cursor: help;
}

.muted {
    color: #b0b7cf;
    cursor: help;
}

.banned {
    color: rgba(255, 255, 255, 0.25);
    text-decoration: line-through;
    cursor: help;
}

.verified {
    color: #7ef6ff;
    cursor: help;
}

.user {
    cursor: help;
}

.imghelp {
    cursor: help;
    display: inline;
}

.no-script-div {
    padding: 10px;
    border: 2px solid #f8c428;
    margin: auto;
    text-align: center;
    border-radius: var(--radius-sm);
    background: rgba(248, 196, 40, 0.1);
}

.no-script-text {
    color: #f8c428;
    font-weight: bold;
}

@media (max-width: 720px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 12px;
    }

    .notification-center {
        width: auto;
        align-self: flex-start;
    }

    .notification-dropdown {
        position: static;
        width: 100%;
        margin-top: 8px;
    }
}



/* comments */

.right {
    float: right;
    font-size: 12px;
    margin-right: 7px;
}

.comment-container {
    width: 100%;
    margin: auto;
    text-align: left;
    padding: 1.25em;
    overflow-wrap: anywhere;
}

.comment-table {
    background-color:#232323;
    border-collapse: collapse;
    border-radius:15px 50px 15px 50px;
    width: 100%;
}

.comment-content {
    background-color: #111111;
    border-radius: 0px 0px 15px 50px;
    padding: 2.1875em !important;
}

div.comment-container table.comment-table tr:first-child td {
    padding: 10px 20px !important;
}

div.comment-container table.comment-table:nth-child(2) {
    width: 100% !important;
    max-width:100% !important;
}

.comment-content img {
    width: 100% !important;
    height: auto;
    display: block;
}

.comment-post-table {
    margin:auto;
    border-collapse: collapse;
    width: min(100%, 50rem);
    table-layout: fixed;
}

.comment-post-table td {
    padding: 10px;
    width: 100%;
}

#comment-area{
    width: min(100%, 50rem) !important;
    height: 11rem;
    cursor: text;
    margin: auto;
    background-color: #8383831c !important;
    font-size: x-large;
    color: #bfd5eae0;
    font-family: ui-monospace;
    padding: 10px;
}

.action {
    padding-left:2px;
    padding-right:2px;
    color:rgb(20, 100, 146);
    cursor:cell;
    background:none;
    border:none;
}

.toggle-comment {
    padding-left:2px;
    padding-right:2px;
    color:rgb(20, 100, 146);
    cursor:cell;
}

#notification {
    background-color: lightblue;
    transition: background-color 2s, opacity 2s;
    opacity: 1;
    color: #121212;
    font-weight: bolder;
}

.removed {
    color:#797979;
    font-weight:bold;
}


.lighten {
    background-color:#BABABA !important;
    border-radius:5px !important;
    transition: background-color 0.3s ease !important;
}

.lighten:focus {
    background-color:#EFEFEF !important;
    border-radius:5px !important;
}


.tooltip,
.tooltip-trigger {
    position: relative;
    cursor: help;
}

#show-tooltip {
    position: absolute;
    display: none;
    pointer-events: none;
    background: rgba(5, 7, 18, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    z-index: 1200;
    font-size: 0.78rem;
    max-width: 260px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
    line-height: 1.4;
}

.accepteula:checked {
    box-shadow: 0 0 0 3px #a58a19d4;
}

code {
    background-color: #3a47517d;
    padding: 3px;
    border-radius: 3px;
}

#copiedMessage {
    position: absolute;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    padding: 5px 10px;
    border-radius: 5px;
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
    color: #000000eb;
}

#copiedMessage.show {
    display: block;
    opacity: 1;
}

#tenor_DIV {
    display: none;
    text-align: center;
    background-color: #050505f7; /*#0000004d;*/
    border-radius: 50px;
    padding: 25px;
    width: 650px;
    height: 460px;
    position: absolute;
    z-index: 99999999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#searchBar {
    width: 14rem;
    color: #be6903;
    font-weight: bolder;
    padding: 1px;
}

#tenorsearchcont {
    padding: 5px;
    border: 1px solid #dcdcdc66;
    width: 80%;
    margin: auto;
    border-radius: 5px;
    background-color: #ffffff24;
    margin-bottom: 1rem;
}

#searchText {
    color: #828282;
    /* color: #be690380; */
    font-weight: 600;
}

#gifResults {
    width: 37.5rem;
    height: 21.875rem;
    overflow-y: scroll;
}

#tenor_DIV.show {
    display: block;
    opacity: 1;
}

.tenorbutton {
    background-color: #71889db0;
    padding: 5px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
    border: none;
    outline: none;
}

.tenorbutton:hover {
    background-color: #8199ad;
}

.tenorbutton:active {
    background-color: #61789a;
    transform: translateY(2px);
}

#gifResults::-webkit-scrollbar-track {
    background: #11111182;
}

#gifResults::-webkit-scrollbar-thumb {
    background: #478ac9;
}

#gifResults::-webkit-scrollbar-thumb:hover {
    background: #478ac994;
}

#gifResults::-webkit-scrollbar {
    width: 5px; 
}

.pointer {
  cursor: pointer;
}

#gifResults img {
    display:inline;
}

.no-script-div {
    padding:5px;
    border:3px solid #f8c428;
    margin:auto;
    text-align:center;
}

.no-script-text {
    margin:auto;
    color:#8d1c20;
    font-weight:bold;
}

.formsubmit {
    color: #478ac9;
}

/* !important priorities can be removed after comment_css_js updates after v3 merge, save background-color */
.comment-edit {
    width: min(100%, 50rem) !important;
    height: 11rem !important;
    cursor: text !important;
    margin: auto !important;
    background-color: #83838305 !important;
    font-size: x-large;
    color: #bfd5eae0;
    font-family: ui-monospace;
    padding: 10px !important;
    border-radius: 5px !important;
    box-sizing: border-box !important;
}

.comment-edit:focus {
    background-color: #fcfcfc08 !important;
}

.margin1 {
    margin:1px;
}

.comment-content button { 
    padding: 10px 22px; 
    border-radius: 10px; 
}

.bold { 
    font-weight: bold; 
}

.italic {
    font-style: italic;
}

.offset-14 {
    position: relative;
    left: 14%;
}

.error-container {
    width: 50%;
    margin: auto;
    position: relative;
    top: 3em;
}

.route-link {
    font-weight: bolder;
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

.anchor-highlight {
    box-shadow: 0 0 0 3px rgba(88, 212, 255, 0.4), 0 0 0 9px rgba(88, 212, 255, 0.18);
    background: rgba(88, 212, 255, 0.08);
    transition: box-shadow 0.6s ease, background-color 0.6s ease;
}
