:root {
    --fds-bg: #f4f5f8;
    --fds-bg-soft: #eef0f4;
    --fds-ink: #101216;
    --fds-ink-soft: #1a1f2b;
    --fds-muted: #667085;
    --fds-line: #e8eaf0;
    --fds-panel: rgba(255, 255, 255, 0.92);
    --fds-accent: #d7ff41;
    --fds-accent-dark: #cbe82f;
    --fds-accent-deep: #a8ce17;
    --fds-sidebar: #0b0d11;
    --fds-sidebar-soft: #14181f;
    --fds-radius: 18px;
    --fds-radius-sm: 12px;
    --fds-shadow: 0 18px 48px rgba(16, 24, 40, 0.08);
    --fds-shadow-lg: 0 28px 70px rgba(0, 0, 0, 0.18);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(ellipse 80% 50% at 100% -10%, rgba(215, 255, 65, 0.14), transparent 55%),
        radial-gradient(ellipse 60% 40% at 0% 100%, rgba(203, 232, 47, 0.08), transparent 50%),
        var(--fds-bg);
    color: var(--fds-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    letter-spacing: 0;
}

a {
    color: inherit;
}

.admin-shell {
    display: grid;
    grid-template-columns: 268px minmax(0, 1fr);
    min-height: 100vh;
    transition: grid-template-columns 0.22s ease;
}

html.sidebar-collapsed .admin-shell {
    grid-template-columns: 88px minmax(0, 1fr);
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 26px 18px;
    background:
        linear-gradient(180deg, rgba(215, 255, 65, 0.06) 0%, transparent 28%),
        var(--fds-sidebar);
    color: #ffffff;
    border-right: 1px solid rgba(215, 255, 65, 0.12);
    overflow: hidden;
    transition: padding 0.22s ease;
}

html.sidebar-collapsed .admin-sidebar {
    padding: 22px 12px;
    align-items: center;
}

.brand,
.login-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    text-decoration: none;
    font-weight: 800;
}

.brand {
    position: relative;
    padding: 4px 8px;
}

.brand-logo {
    display: block;
    height: 36px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.admin-sidebar .brand-logo {
    filter: brightness(0) invert(1);
}

.brand-icon {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    object-fit: cover;
}

html.sidebar-collapsed .brand-logo,
html.sidebar-collapsed .brand-fallback,
html.sidebar-collapsed .brand-text {
    display: none !important;
}

html.sidebar-collapsed .brand-icon {
    display: block;
}

.brand-logo-lg {
    height: 48px;
    max-width: 240px;
}

.brand-fallback {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.brand-fallback[hidden] {
    display: none !important;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    min-width: 42px;
    height: 34px;
    padding: 0 10px;
    border-radius: 10px;
    background: var(--fds-accent);
    color: #05070b;
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 0 0 1px rgba(203, 232, 47, 0.4);
}

.sidebar-nav {
    display: grid;
    gap: 6px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 46px;
    padding: 11px 14px;
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.sidebar-nav a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.sidebar-nav a.active {
    background: rgba(215, 255, 65, 0.14);
    color: #ffffff;
    box-shadow: inset 3px 0 0 var(--fds-accent);
}

html.sidebar-collapsed .sidebar-nav {
    width: 100%;
}

html.sidebar-collapsed .sidebar-nav a {
    justify-content: center;
    padding: 12px;
}

html.sidebar-collapsed .nav-label,
html.sidebar-collapsed .sidebar-profile-meta {
    display: none;
}

html.sidebar-collapsed .sidebar-profile {
    justify-content: center;
    padding: 10px;
}

html.sidebar-collapsed .sidebar-nav a.active {
    box-shadow: inset 0 0 0 1px rgba(215, 255, 65, 0.35);
}

.nav-icon {
    display: inline-grid;
    place-items: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    opacity: 0.85;
    background: currentColor;
    -webkit-mask: no-repeat center / contain;
    mask: no-repeat center / contain;
}

.sidebar-nav a.active .nav-icon {
    opacity: 1;
    color: var(--fds-accent);
}

.nav-icon[data-icon="grid"] {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M4 5a1 1 0 011-1h4a1 1 0 011 1v4a1 1 0 01-1 1H5a1 1 0 01-1-1V5zm10 0a1 1 0 011-1h4a1 1 0 011 1v4a1 1 0 01-1 1h-4a1 1 0 01-1-1V5zM4 15a1 1 0 011-1h4a1 1 0 011 1v4a1 1 0 01-1 1H5a1 1 0 01-1-1v-4zm10 0a1 1 0 011-1h4a1 1 0 011 1v4a1 1 0 01-1 1h-4a1 1 0 01-1-1v-4z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M4 5a1 1 0 011-1h4a1 1 0 011 1v4a1 1 0 01-1 1H5a1 1 0 01-1-1V5zm10 0a1 1 0 011-1h4a1 1 0 011 1v4a1 1 0 01-1 1h-4a1 1 0 01-1-1V5zM4 15a1 1 0 011-1h4a1 1 0 011 1v4a1 1 0 01-1 1H5a1 1 0 01-1-1v-4zm10 0a1 1 0 011-1h4a1 1 0 011 1v4a1 1 0 01-1 1h-4a1 1 0 01-1-1v-4z'/%3E%3C/svg%3E");
}

.nav-icon[data-icon="folder"] {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M3 7a2 2 0 012-2h4l2 2h8a2 2 0 012 2v8a2 2 0 01-2 2H5a2 2 0 01-2-2V7z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M3 7a2 2 0 012-2h4l2 2h8a2 2 0 012 2v8a2 2 0 01-2 2H5a2 2 0 01-2-2V7z'/%3E%3C/svg%3E");
}

.nav-icon[data-icon="layers"] {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M12 2l9 4.5-9 4.5L3 6.5 12 2zm0 9l9 4.5-9 4.5-9-4.5L12 11z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M12 2l9 4.5-9 4.5L3 6.5 12 2zm0 9l9 4.5-9 4.5-9-4.5L12 11z'/%3E%3C/svg%3E");
}

.nav-icon[data-icon="puzzle"] {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M11 4a2 2 0 114 0v1h2a2 2 0 012 2v2h1a2 2 0 110 4h-1v2a2 2 0 01-2 2h-2v1a2 2 0 11-4 0v-1H9a2 2 0 01-2-2v-2H6a2 2 0 110-4h1V7a2 2 0 012-2h2V4z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M11 4a2 2 0 114 0v1h2a2 2 0 012 2v2h1a2 2 0 110 4h-1v2a2 2 0 01-2 2h-2v1a2 2 0 11-4 0v-1H9a2 2 0 01-2-2v-2H6a2 2 0 110-4h1V7a2 2 0 012-2h2V4z'/%3E%3C/svg%3E");
}

.nav-icon[data-icon="users"] {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M17 21v-2a4 4 0 00-4-4H7a4 4 0 00-4 4v2M17 11a4 4 0 100-8 4 4 0 000 8zM9 11a4 4 0 100-8 4 4 0 000 8z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M17 21v-2a4 4 0 00-4-4H7a4 4 0 00-4 4v2M17 11a4 4 0 100-8 4 4 0 000 8zM9 11a4 4 0 100-8 4 4 0 000 8z'/%3E%3C/svg%3E");
}

.nav-icon[data-icon="key"] {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M15 7a2 2 0 012 2m4 0a6 6 0 01-7.743 5.743L11 17H9v2H7v2H4a1 1 0 01-1-1v-2.586a1 1 0 01.293-.707l5.964-5.964A6 6 0 1121 9z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M15 7a2 2 0 012 2m4 0a6 6 0 01-7.743 5.743L11 17H9v2H7v2H4a1 1 0 01-1-1v-2.586a1 1 0 01.293-.707l5.964-5.964A6 6 0 1121 9z'/%3E%3C/svg%3E");
}

.nav-icon[data-icon="tag"] {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M7 7h.01M3 11l8.5-8.5a2 2 0 012.83 0L21 9.17a2 2 0 010 2.83L12.83 20.1a2 2 0 01-2.83 0L3 13.17A2 2 0 013 11z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M7 7h.01M3 11l8.5-8.5a2 2 0 012.83 0L21 9.17a2 2 0 010 2.83L12.83 20.1a2 2 0 01-2.83 0L3 13.17A2 2 0 013 11z'/%3E%3C/svg%3E");
}

.nav-icon[data-icon="settings"] {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M10.325 4.317a1.724 1.724 0 013.35 0 1.724 1.724 0 002.573 1.066 1.724 1.724 0 012.37 2.37 1.724 1.724 0 001.065 2.572 1.724 1.724 0 010 3.35 1.724 1.724 0 00-1.066 2.573 1.724 1.724 0 01-2.37 2.37 1.724 1.724 0 00-2.572 1.065 1.724 1.724 0 01-3.35 0 1.724 1.724 0 00-2.573-1.066 1.724 1.724 0 01-2.37-2.37 1.724 1.724 0 00-1.065-2.572 1.724 1.724 0 010-3.35 1.724 1.724 0 001.066-2.573 1.724 1.724 0 012.37-2.37c.63.355 1.4.28 1.998-.192z'/%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M15 12a3 3 0 11-6 0 3 3 0 016 0z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M10.325 4.317a1.724 1.724 0 013.35 0 1.724 1.724 0 002.573 1.066 1.724 1.724 0 012.37 2.37 1.724 1.724 0 001.065 2.572 1.724 1.724 0 010 3.35 1.724 1.724 0 00-1.066 2.573 1.724 1.724 0 01-2.37 2.37 1.724 1.724 0 00-2.572 1.065 1.724 1.724 0 01-3.35 0 1.724 1.724 0 00-2.573-1.066 1.724 1.724 0 01-2.37-2.37 1.724 1.724 0 00-1.065-2.572 1.724 1.724 0 010-3.35 1.724 1.724 0 001.066-2.573 1.724 1.724 0 012.37-2.37c.63.355 1.4.28 1.998-.192z'/%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M15 12a3 3 0 11-6 0 3 3 0 016 0z'/%3E%3C/svg%3E");
}

.nav-icon[data-icon="megaphone"] {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M11 5.882V19.24a1.76 1.76 0 01-3.417.592l-2.147-6.15M18 13a3 3 0 100-6M5.436 13.683A4.001 4.001 0 017 6h1.832c4.1 0 7.625-1.234 9.608-3.32V16.32C16.457 14.234 12.932 13 8.832 13H7a4.001 4.001 0 00-1.564.683z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M11 5.882V19.24a1.76 1.76 0 01-3.417.592l-2.147-6.15M18 13a3 3 0 100-6M5.436 13.683A4.001 4.001 0 017 6h1.832c4.1 0 7.625-1.234 9.608-3.32V16.32C16.457 14.234 12.932 13 8.832 13H7a4.001 4.001 0 00-1.564.683z'/%3E%3C/svg%3E");
}

.nav-icon[data-icon="card"] {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M3 10h18M7 15h1m4 0h1m-7 4h12a3 3 0 003-3V8a3 3 0 00-3-3H6a3 3 0 00-3 3v8a3 3 0 003 3z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M3 10h18M7 15h1m4 0h1m-7 4h12a3 3 0 003-3V8a3 3 0 00-3-3H6a3 3 0 00-3 3v8a3 3 0 003 3z'/%3E%3C/svg%3E");
}

.marketing-audience-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.marketing-audience-grid article {
    display: grid;
    gap: 2px;
    padding: 14px 16px;
    border: 1px solid var(--fds-line);
    border-radius: 14px;
    background: #fafbfc;
}

.marketing-audience-grid strong {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1;
}

.marketing-audience-grid span {
    color: var(--fds-muted);
    font-size: 12px;
    font-weight: 700;
}

.marketing-resource-picker {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    max-height: 320px;
    overflow: auto;
    padding: 4px;
}

.marketing-resource-option {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px;
    border: 1px solid var(--fds-line);
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
}

.marketing-resource-option input {
    margin-top: 3px;
}

.marketing-resource-option span {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.marketing-resource-option strong {
    font-size: 13px;
    font-weight: 800;
    line-height: 1.3;
}

.marketing-resource-option small {
    color: var(--fds-muted);
    font-size: 11px;
    font-weight: 700;
}

.form-check-notify {
    padding: 12px 14px;
    border: 1px dashed rgba(16, 18, 22, 0.18);
    border-radius: 14px;
    background: #f8faf5;
}

@media (max-width: 900px) {
    .marketing-resource-picker {
        grid-template-columns: 1fr;
    }
}

.settings-banner-preview {
    border: 1px solid var(--fds-line);
    border-radius: 14px;
    overflow: hidden;
    background: #0b0d11;
}

.settings-banner-preview img {
    display: block;
    width: 100%;
    max-height: 180px;
    object-fit: cover;
}

.settings-brand-preview > div {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--fds-line);
    border-radius: 16px;
    background: #0b0d11;
}

.settings-brand-preview span {
    color: rgba(255, 255, 255, 0.62);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.settings-brand-preview img {
    display: block;
    height: 36px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.settings-brand-preview img.is-icon {
    height: 48px;
    width: 48px;
    border-radius: 12px;
    filter: none;
}

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

.settings-email-grid article {
    display: grid;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--fds-line);
    border-radius: 14px;
    background: #fafbfc;
}

.settings-email-grid strong {
    font-size: 13px;
    font-weight: 800;
}

.settings-email-grid small {
    color: var(--fds-muted);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

@media (max-width: 900px) {
    .settings-brand-preview,
    .settings-email-grid {
        grid-template-columns: 1fr;
    }
}

.sidebar-profile {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(215, 255, 65, 0.18);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
}

.sidebar-avatar {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #101216 0%, #1d2430 100%);
    color: var(--fds-accent);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.04em;
    box-shadow: inset 0 0 0 1px rgba(215, 255, 65, 0.28);
    overflow: hidden;
}

.sidebar-avatar.is-image,
.admin-menu-avatar.is-image,
.profile-hero-avatar.is-image {
    object-fit: cover;
    padding: 0;
    background: #101216;
    color: transparent;
    box-shadow: inset 0 0 0 1px rgba(215, 255, 65, 0.18);
}

.sidebar-profile-meta {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.sidebar-profile-meta span {
    font-size: 13px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-profile-meta small {
    color: rgba(255, 255, 255, 0.55);
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-main {
    min-width: 0;
    padding: 28px 32px 40px;
}

.topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 28px;
}

.topbar-left {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
}

.topbar-copy {
    min-width: 0;
}

.topbar-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.sidebar-toggle {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-top: 4px;
    flex-shrink: 0;
    border: 1px solid var(--fds-line);
    border-radius: 12px;
    background: #ffffff;
    color: #475467;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.sidebar-toggle:hover {
    border-color: rgba(203, 232, 47, 0.7);
    background: #fcffef;
    color: var(--fds-ink);
}

.sidebar-toggle-icon {
    width: 18px;
    height: 18px;
    background: currentColor;
    -webkit-mask: no-repeat center / contain;
    mask: no-repeat center / contain;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M4 6h16M4 12h10M4 18h16'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M4 6h16M4 12h10M4 18h16'/%3E%3C/svg%3E");
}

.sidebar-toggle.is-collapsed .sidebar-toggle-icon {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M4 6h16M4 12h16M4 18h10'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M4 6h16M4 12h16M4 18h10'/%3E%3C/svg%3E");
}

.topbar-kicker {
    margin: 0 0 6px;
    color: var(--fds-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.topbar h1 {
    margin: 0;
    font-size: clamp(26px, 3.4vw, 36px);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--fds-ink-soft);
}

.topbar p:not(.topbar-kicker) {
    margin: 8px 0 0;
    color: var(--fds-muted);
    font-size: 14px;
    font-weight: 500;
}

.admin-menu {
    position: relative;
}

.admin-menu-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 6px 10px 6px 6px;
    border: 1px solid var(--fds-line);
    border-radius: 16px;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.admin-menu-trigger:hover,
.admin-menu.is-open .admin-menu-trigger {
    border-color: rgba(203, 232, 47, 0.65);
    box-shadow: 0 0 0 3px rgba(215, 255, 65, 0.18);
}

.admin-menu-avatar {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #101216 0%, #1d2430 100%);
    color: var(--fds-accent);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.04em;
    box-shadow: inset 0 0 0 1px rgba(215, 255, 65, 0.28);
    overflow: hidden;
}

.admin-menu-avatar.is-lg {
    width: 46px;
    height: 46px;
    font-size: 14px;
}

.admin-menu-meta {
    display: grid;
    gap: 2px;
    text-align: left;
    min-width: 0;
}

.admin-menu-meta strong {
    color: var(--fds-ink);
    font-size: 13px;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 160px;
}

.admin-menu-meta small {
    color: var(--fds-muted);
    font-size: 11px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 160px;
}

.admin-menu-caret {
    width: 14px;
    height: 14px;
    margin-right: 4px;
    background: #98a2b3;
    -webkit-mask: no-repeat center / contain;
    mask: no-repeat center / contain;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    transition: transform 0.15s ease;
}

.admin-menu.is-open .admin-menu-caret {
    transform: rotate(180deg);
}

.admin-menu-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 50;
    width: min(280px, calc(100vw - 40px));
    padding: 10px;
    border: 1px solid rgba(203, 232, 47, 0.4);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 244, 0.98));
    box-shadow:
        0 24px 60px rgba(16, 24, 40, 0.16),
        0 0 0 1px rgba(215, 255, 65, 0.1);
}

.admin-menu-panel[hidden] {
    display: none !important;
}

.admin-menu-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    padding: 10px;
    border-radius: 12px;
    background: #f6f7f9;
}

.admin-menu-head strong {
    display: block;
    font-size: 14px;
    font-weight: 800;
}

.admin-menu-head small {
    display: block;
    margin-top: 2px;
    color: var(--fds-muted);
    font-size: 12px;
    font-weight: 600;
    word-break: break-all;
}

.admin-menu-item {
    display: grid;
    gap: 2px;
    padding: 12px;
    border-radius: 12px;
    color: inherit;
    text-decoration: none;
    transition: background 0.15s ease;
}

.admin-menu-item:hover {
    background: rgba(215, 255, 65, 0.18);
}

.admin-menu-item span {
    font-size: 13px;
    font-weight: 800;
}

.admin-menu-item small {
    color: var(--fds-muted);
    font-size: 11px;
    font-weight: 600;
}

.admin-menu-item.is-danger:hover {
    background: #fff1f2;
}

.admin-menu-item.is-danger span {
    color: #9f1239;
}

.profile-card-panel {
    padding: 24px;
}

.profile-hero {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.profile-hero-avatar {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, #101216 0%, #1d2430 100%);
    color: var(--fds-accent);
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 0.04em;
    box-shadow: inset 0 0 0 1px rgba(215, 255, 65, 0.28);
    overflow: hidden;
    flex-shrink: 0;
}

.profile-hero-avatar.is-image {
    width: 64px;
    height: 64px;
}

.avatar-upload {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 14px;
    border: 1px solid var(--fds-line);
    border-radius: 16px;
    background: #fafbfc;
}

.avatar-upload-preview {
    flex-shrink: 0;
}

.avatar-upload-preview img,
.avatar-upload-preview .profile-hero-avatar {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    object-fit: cover;
}

.avatar-upload-fields {
    display: grid;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.avatar-remove {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 0;
    color: #9f1239;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.avatar-remove input {
    margin: 0;
}

.profile-hero strong {
    display: block;
    font-size: 18px;
    font-weight: 800;
}

.profile-hero small {
    display: block;
    margin-top: 4px;
    color: var(--fds-muted);
    font-size: 13px;
    font-weight: 600;
}

.profile-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

.profile-meta-grid > div {
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--fds-line);
    border-radius: 12px;
    background: #fafbfc;
}

.profile-meta-grid span {
    color: var(--fds-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.profile-meta-grid strong {
    font-size: 13px;
    font-weight: 800;
}

.profile-hint {
    margin: 0;
    color: var(--fds-muted);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
}

.panel,
.stat-card,
.login-card {
    border: 1px solid rgba(203, 232, 47, 0.22);
    border-radius: var(--fds-radius);
    background: var(--fds-panel);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    box-shadow: var(--fds-shadow);
}

.panel {
    padding: 22px;
}

.sticky-panel {
    position: sticky;
    top: 24px;
}

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

.panel-header h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.panel-header a {
    color: #3a4214;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(215, 255, 65, 0.35);
    transition: background 0.15s ease;
}

.panel-header a:hover {
    background: rgba(215, 255, 65, 0.55);
}

.panel-header .btn-accent {
    flex-shrink: 0;
}

.list-search {
    position: relative;
}

.list-search-bar {
    margin: 0 0 18px;
}

.list-search-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    width: 16px;
    height: 16px;
    transform: translateY(-50%);
    background: #98a2b3;
    pointer-events: none;
    -webkit-mask: no-repeat center / contain;
    mask: no-repeat center / contain;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M21 21l-4.35-4.35M11 18a7 7 0 100-14 7 7 0 000 14z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M21 21l-4.35-4.35M11 18a7 7 0 100-14 7 7 0 000 14z'/%3E%3C/svg%3E");
}

.list-search .form-control {
    padding-left: 40px;
    min-height: 44px;
}

.list-search .form-control:focus {
    border-color: var(--fds-accent-deep);
    box-shadow: 0 0 0 3px rgba(215, 255, 65, 0.28);
}

body.fds-modal-open {
    overflow: hidden;
}

.fds-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 24px;
}

.fds-modal[hidden] {
    display: none !important;
}

.fds-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 13, 17, 0.58);
    backdrop-filter: blur(2px);
}

.fds-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 480px);
    max-height: calc(100vh - 48px);
    overflow: auto;
    padding: 24px;
    border: 1px solid transparent;
    border-radius: 24px;
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        linear-gradient(135deg, rgba(215, 255, 65, 0.95), rgba(203, 232, 47, 0.45), rgba(215, 255, 65, 0.9)) border-box;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.28),
        0 0 0 1px rgba(215, 255, 65, 0.12);
}

.fds-modal-dialog.is-xl {
    width: min(100%, 980px);
}

.fds-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.fds-modal-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.fds-modal-close {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border: 1px solid var(--fds-line);
    border-radius: 10px;
    background: #ffffff;
    color: #667085;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.fds-modal-close:hover {
    background: #f9fafb;
    color: var(--fds-ink);
}

.fds-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 4px;
}

.table-actions {
    white-space: nowrap;
    min-width: 280px;
}

.table-actions-group {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
    max-width: 100%;
}

.table-actions-group form {
    display: inline-flex;
    margin: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.stats-grid-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.stat-card {
    position: relative;
    overflow: hidden;
    min-height: 128px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    padding: 18px;
}

.stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #d7ff41 0%, #cbe82f 100%);
    opacity: 0.55;
}

.stat-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.stat-card span {
    color: var(--fds-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.stat-card strong {
    font-size: clamp(28px, 2.4vw, 36px);
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.stat-card > small {
    color: var(--fds-muted);
    font-size: 12px;
    font-weight: 600;
}

.stat-icon {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(215, 255, 65, 0.18);
    color: #3a4214;
}

.stat-icon::before {
    content: "";
    width: 16px;
    height: 16px;
    background: currentColor;
    -webkit-mask: no-repeat center / contain;
    mask: no-repeat center / contain;
}

.stat-icon[data-icon="users"]::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M17 21v-2a4 4 0 00-4-4H7a4 4 0 00-4 4v2M17 11a4 4 0 100-8 4 4 0 000 8zM9 11a4 4 0 100-8 4 4 0 000 8z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M17 21v-2a4 4 0 00-4-4H7a4 4 0 00-4 4v2M17 11a4 4 0 100-8 4 4 0 000 8zM9 11a4 4 0 100-8 4 4 0 000 8z'/%3E%3C/svg%3E");
}

.stat-icon[data-icon="key"]::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M15 7a2 2 0 012 2m4 0a6 6 0 01-7.743 5.743L11 17H9v2H7v2H4a1 1 0 01-1-1v-2.586a1 1 0 01.293-.707l5.964-5.964A6 6 0 1121 9z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M15 7a2 2 0 012 2m4 0a6 6 0 01-7.743 5.743L11 17H9v2H7v2H4a1 1 0 01-1-1v-2.586a1 1 0 01.293-.707l5.964-5.964A6 6 0 1121 9z'/%3E%3C/svg%3E");
}

.stat-icon[data-icon="layers"]::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M12 2l9 4.5-9 4.5L3 6.5 12 2zm0 9l9 4.5-9 4.5-9-4.5L12 11z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M12 2l9 4.5-9 4.5L3 6.5 12 2zm0 9l9 4.5-9 4.5-9-4.5L12 11z'/%3E%3C/svg%3E");
}

.stat-icon[data-icon="puzzle"]::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M11 4a2 2 0 114 0v1h2a2 2 0 012 2v2h1a2 2 0 110 4h-1v2a2 2 0 01-2 2h-2v1a2 2 0 11-4 0v-1H9a2 2 0 01-2-2v-2H6a2 2 0 110-4h1V7a2 2 0 012-2h2V4z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M11 4a2 2 0 114 0v1h2a2 2 0 012 2v2h1a2 2 0 110 4h-1v2a2 2 0 01-2 2h-2v1a2 2 0 11-4 0v-1H9a2 2 0 01-2-2v-2H6a2 2 0 110-4h1V7a2 2 0 012-2h2V4z'/%3E%3C/svg%3E");
}

.stat-icon[data-icon="device"]::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M9.75 17h4.5M8 21h8a1 1 0 001-1V4a1 1 0 00-1-1H8a1 1 0 00-1 1v16a1 1 0 001 1z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M9.75 17h4.5M8 21h8a1 1 0 001-1V4a1 1 0 00-1-1H8a1 1 0 00-1 1v16a1 1 0 001 1z'/%3E%3C/svg%3E");
}

.stat-icon[data-icon="copy"]::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z'/%3E%3C/svg%3E");
}

.stat-icon[data-icon="card"]::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M3 10h18M7 15h1m4 0h1m-7 4h12a3 3 0 003-3V8a3 3 0 00-3-3H6a3 3 0 00-3 3v8a3 3 0 003 3z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M3 10h18M7 15h1m4 0h1m-7 4h12a3 3 0 003-3V8a3 3 0 00-3-3H6a3 3 0 00-3 3v8a3 3 0 003 3z'/%3E%3C/svg%3E");
}

.stat-card.accent {
    background:
        linear-gradient(135deg, rgba(215, 255, 65, 0.98), rgba(203, 232, 47, 0.88));
    border-color: rgba(168, 206, 23, 0.45);
    box-shadow:
        0 18px 48px rgba(168, 206, 23, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.stat-card.accent::before {
    display: none;
}

.stat-card.accent span,
.stat-card.accent > small {
    color: #3a4214;
}

.stat-card.accent .stat-icon,
.stat-icon.is-dark {
    background: rgba(16, 18, 22, 0.12);
    color: #101216;
}

/* Dashboard */
.dash-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
    padding: 22px 24px;
    border: 1px solid rgba(203, 232, 47, 0.28);
    border-radius: var(--fds-radius);
    background:
        linear-gradient(135deg, rgba(11, 13, 17, 0.96), rgba(22, 28, 36, 0.94));
    color: #ffffff;
    box-shadow: var(--fds-shadow-lg);
}

.dash-hero-kicker {
    margin: 0 0 8px;
    color: rgba(215, 255, 65, 0.85);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dash-hero-copy h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 30px);
    font-weight: 900;
    letter-spacing: -0.03em;
}

.dash-hero-copy p:last-child {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 14px;
    font-weight: 500;
}

.dash-hero-status {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 240px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
}

.dash-hero-status strong {
    display: block;
    font-size: 14px;
    font-weight: 800;
}

.dash-hero-status small {
    display: block;
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 12px;
    font-weight: 600;
}

.dash-pulse {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #86efac;
    box-shadow: 0 0 0 0 rgba(134, 239, 172, 0.55);
    animation: fds-pulse 1.8s ease infinite;
}

.dash-hero-status.is-warn .dash-pulse {
    background: #fbbf24;
    box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.5);
}

@keyframes fds-pulse {
    0% { box-shadow: 0 0 0 0 rgba(134, 239, 172, 0.5); }
    70% { box-shadow: 0 0 0 10px rgba(134, 239, 172, 0); }
    100% { box-shadow: 0 0 0 0 rgba(134, 239, 172, 0); }
}

.dash-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0 22px;
}

.dash-action {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--fds-line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 10px 28px rgba(16, 24, 40, 0.04);
}

.dash-action:hover {
    border-color: rgba(203, 232, 47, 0.55);
    transform: translateY(-1px);
    box-shadow: 0 14px 34px rgba(16, 24, 40, 0.08);
}

.dash-action-icon {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 12px;
    background: #101216;
    color: var(--fds-accent);
}

.dash-action-icon::before {
    content: "";
    width: 18px;
    height: 18px;
    background: currentColor;
    -webkit-mask: no-repeat center / contain;
    mask: no-repeat center / contain;
}

.dash-action-icon[data-icon="key"]::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M15 7a2 2 0 012 2m4 0a6 6 0 01-7.743 5.743L11 17H9v2H7v2H4a1 1 0 01-1-1v-2.586a1 1 0 01.293-.707l5.964-5.964A6 6 0 1121 9z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M15 7a2 2 0 012 2m4 0a6 6 0 01-7.743 5.743L11 17H9v2H7v2H4a1 1 0 01-1-1v-2.586a1 1 0 01.293-.707l5.964-5.964A6 6 0 1121 9z'/%3E%3C/svg%3E");
}

.dash-action-icon[data-icon="layers"]::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M12 2l9 4.5-9 4.5L3 6.5 12 2zm0 9l9 4.5-9 4.5-9-4.5L12 11z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M12 2l9 4.5-9 4.5L3 6.5 12 2zm0 9l9 4.5-9 4.5-9-4.5L12 11z'/%3E%3C/svg%3E");
}

.dash-action-icon[data-icon="puzzle"]::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M11 4a2 2 0 114 0v1h2a2 2 0 012 2v2h1a2 2 0 110 4h-1v2a2 2 0 01-2 2h-2v1a2 2 0 11-4 0v-1H9a2 2 0 01-2-2v-2H6a2 2 0 110-4h1V7a2 2 0 012-2h2V4z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M11 4a2 2 0 114 0v1h2a2 2 0 012 2v2h1a2 2 0 110 4h-1v2a2 2 0 01-2 2h-2v1a2 2 0 11-4 0v-1H9a2 2 0 01-2-2v-2H6a2 2 0 110-4h1V7a2 2 0 012-2h2V4z'/%3E%3C/svg%3E");
}

.dash-action-icon[data-icon="users"]::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M17 21v-2a4 4 0 00-4-4H7a4 4 0 00-4 4v2M17 11a4 4 0 100-8 4 4 0 000 8zM9 11a4 4 0 100-8 4 4 0 000 8z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M17 21v-2a4 4 0 00-4-4H7a4 4 0 00-4 4v2M17 11a4 4 0 100-8 4 4 0 000 8zM9 11a4 4 0 100-8 4 4 0 000 8z'/%3E%3C/svg%3E");
}

.dash-action-icon[data-icon="card"]::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M3 10h18M7 15h1m4 0h1m-7 4h12a3 3 0 003-3V8a3 3 0 00-3-3H6a3 3 0 00-3 3v8a3 3 0 003 3z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M3 10h18M7 15h1m4 0h1m-7 4h12a3 3 0 003-3V8a3 3 0 00-3-3H6a3 3 0 00-3 3v8a3 3 0 003 3z'/%3E%3C/svg%3E");
}

.dash-action strong {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: var(--fds-ink);
}

.dash-action small {
    display: block;
    margin-top: 2px;
    color: var(--fds-muted);
    font-size: 12px;
    font-weight: 600;
}

.dash-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 18px;
    margin-bottom: 18px;
}

.dash-grid-tables {
    grid-template-columns: 1fr 1fr;
}

.panel-subtitle {
    margin: 4px 0 0;
    color: var(--fds-muted);
    font-size: 12px;
    font-weight: 600;
}

.panel-header-compact {
    margin-bottom: 12px;
}

.panel-header-compact h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
}

.dash-divider {
    height: 1px;
    margin: 18px 0;
    background: var(--fds-line);
}

.type-bars {
    display: grid;
    gap: 14px;
}

.type-bar-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.type-bar-meta strong {
    font-size: 13px;
    font-weight: 700;
}

.type-bar-meta span {
    color: var(--fds-muted);
    font-size: 12px;
    font-weight: 600;
}

.type-bar-track {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #eef0f5;
}

.type-bar-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #d7ff41, #a8ce17);
}

.top-list,
.device-list {
    display: grid;
    gap: 10px;
}

.top-item,
.device-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid var(--fds-line);
    border-radius: 14px;
    background: #fafbfc;
}

.top-rank {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    border-radius: 8px;
    background: #101216;
    color: var(--fds-accent);
    font-size: 11px;
    font-weight: 900;
}

.top-item img,
.top-item .thumb-placeholder {
    width: 52px;
    height: 36px;
    flex: 0 0 52px;
    border-radius: 10px;
    object-fit: cover;
}

.top-item-meta,
.device-meta {
    min-width: 0;
    flex: 1;
}

.top-item-meta strong,
.device-meta strong {
    display: block;
    font-size: 13px;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.top-item-meta small,
.device-meta small,
.top-item-stat small,
.device-time small {
    display: block;
    color: var(--fds-muted);
    font-size: 11px;
    font-weight: 600;
}

.top-item-stat,
.device-time {
    text-align: right;
    flex-shrink: 0;
}

.top-item-stat strong,
.device-time strong {
    display: block;
    font-size: 13px;
    font-weight: 800;
}

.device-avatar {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #101216, #1d2430);
    color: var(--fds-accent);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.device-time strong {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11px;
}

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

.health-card {
    display: grid;
    gap: 6px;
    padding: 14px;
    border: 1px solid var(--fds-line);
    border-radius: 14px;
    background: #fafbfc;
}

.health-card span {
    color: var(--fds-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.health-card strong {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1;
}

.health-card.is-ok {
    border-color: rgba(134, 239, 172, 0.55);
    background: #f3fdf6;
}

.health-card.is-warn {
    border-color: rgba(251, 191, 36, 0.45);
    background: #fffbeb;
}

.health-card.is-danger {
    border-color: rgba(251, 113, 133, 0.4);
    background: #fff1f2;
}

.empty-hint {
    margin: 0;
    padding: 14px;
    color: var(--fds-muted);
    font-size: 13px;
    font-weight: 600;
}

.mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
}

.usage-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #edf0f6;
    color: #30343c;
    font-size: 12px;
    font-weight: 800;
}

.dash-table td {
    font-size: 13px;
}

.btn-accent {
    border: 0;
    border-radius: 12px;
    background: var(--fds-accent);
    color: #05070b;
    font-weight: 800;
    box-shadow: 0 8px 24px rgba(215, 255, 65, 0.35);
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-accent:hover,
.btn-accent:focus {
    background: var(--fds-accent-dark);
    color: #05070b;
    box-shadow: 0 10px 28px rgba(203, 232, 47, 0.4);
}

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

.btn-light,
.btn-sm.btn-light {
    border: 1px solid var(--fds-line);
    border-radius: 10px;
    background: #ffffff;
    color: #475467;
    font-weight: 700;
}

.btn-light:hover,
.btn-sm.btn-light:hover {
    border-color: #d0d5dd;
    background: #f9fafb;
    color: var(--fds-ink);
}

.btn-outline-danger,
.btn-outline-success {
    border-radius: 10px;
    font-weight: 700;
}

.btn-dark,
.btn-sm.btn-dark {
    border: 0;
    border-radius: 10px;
    background: #101216;
    color: #ffffff;
    font-weight: 700;
}

.btn-dark:hover,
.btn-sm.btn-dark:hover {
    background: #1d2430;
    color: #ffffff;
}

.form-control,
.form-select {
    border-color: var(--fds-line);
    border-radius: var(--fds-radius-sm);
    min-height: 46px;
    font-size: 14px;
    background: #ffffff;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--fds-accent-deep);
    box-shadow: 0 0 0 3px rgba(215, 255, 65, 0.28);
}

input[type="file"].form-control {
    display: flex;
    align-items: center;
    padding: 0;
    overflow: hidden;
    color: var(--fds-muted);
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
}

input[type="file"].form-control::file-selector-button {
    appearance: none;
    -webkit-appearance: none;
    height: 44px;
    margin: 0 12px 0 0;
    padding: 0 16px;
    border: 0;
    border-right: 1px solid var(--fds-line);
    border-radius: 0;
    background: #f4f5f8;
    color: var(--fds-ink);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 44px;
    cursor: pointer;
    transition: background 0.15s ease;
}

input[type="file"].form-control::-webkit-file-upload-button {
    appearance: none;
    -webkit-appearance: none;
    height: 44px;
    margin: 0 12px 0 0;
    padding: 0 16px;
    border: 0;
    border-right: 1px solid var(--fds-line);
    border-radius: 0;
    background: #f4f5f8;
    color: var(--fds-ink);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 44px;
    cursor: pointer;
}

input[type="file"].form-control:hover::file-selector-button,
input[type="file"].form-control:hover::-webkit-file-upload-button {
    background: #eceef3;
}

input[type="file"].form-control:focus {
    border-color: var(--fds-accent-deep);
    box-shadow: 0 0 0 3px rgba(215, 255, 65, 0.28);
}

.form-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #475467;
}

.table {
    margin-bottom: 0;
}

.table thead th {
    border-bottom: 1px solid var(--fds-line);
    color: var(--fds-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.table td,
.table th {
    padding: 14px 10px;
    vertical-align: middle;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #edf0f6;
    color: #30343c;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.status-pill.active,
.status-pill.premium,
.status-pill.pro {
    background: #e9ffd1;
    color: #3d5f00;
}

.status-pill.blocked,
.status-pill.inactive,
.status-pill.expired {
    background: #ffe4e6;
    color: #9f1239;
}

.status-pill.basic {
    background: #e0f2fe;
    color: #075985;
}

.resource-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 240px;
}

.resource-cell img,
.thumb-placeholder {
    width: 64px;
    height: 44px;
    flex: 0 0 64px;
    border-radius: 12px;
    object-fit: cover;
    background: #eef0f5;
    border: 1px solid var(--fds-line);
}

.thumb-placeholder {
    display: inline-grid;
    place-items: center;
    color: #111318;
    font-size: 12px;
    font-weight: 900;
}

.thumb-placeholder.is-avatar {
    background: linear-gradient(135deg, #101216 0%, #1d2430 100%);
    color: var(--fds-accent);
    box-shadow: inset 0 0 0 1px rgba(215, 255, 65, 0.22);
}

.code-area {
    min-height: 220px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
    line-height: 1.5;
}

.code-area-lg {
    min-height: 360px;
}

.code-area-md {
    min-height: 180px;
}

.code-area-sm {
    min-height: 120px;
}

.resource-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.resource-form-section {
    padding: 18px 20px;
    border: 1px solid var(--fds-line);
    border-radius: var(--fds-radius-sm);
    background: #ffffff;
}

.resource-form-section.is-muted {
    background: #f8fafc;
}

.resource-form-section-head {
    margin-bottom: 14px;
}

.resource-form-section-head h3 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 800;
    color: var(--fds-ink);
}

.resource-form-section-head p {
    margin: 0;
    color: var(--fds-muted);
    font-size: 13px;
    line-height: 1.5;
}

.resource-code-block {
    height: 100%;
    padding: 16px;
    border: 1px solid var(--fds-line);
    border-radius: var(--fds-radius-sm);
    background: #fafbfd;
}

.resource-code-block.is-compact {
    background: #ffffff;
}

.resource-code-block-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.resource-code-block-head strong {
    font-size: 14px;
    color: var(--fds-ink);
}

.resource-code-block-head span {
    color: var(--fds-muted);
    font-size: 12px;
    font-weight: 600;
}

.resource-form-section.is-collapsed {
    display: none;
}

.resource-form-section.is-primary {
    border-color: rgba(203, 232, 47, 0.55);
    box-shadow: inset 0 0 0 1px rgba(215, 255, 65, 0.12);
}

.fds-modal-dialog.is-xl .resource-form .fds-modal-actions {
    margin-top: 4px;
}

.created-license {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: var(--fds-radius);
    border: 1px solid rgba(203, 232, 47, 0.45);
    background: linear-gradient(180deg, #f7ffe6, #f3ffd0);
}

.created-license > div {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.created-license span {
    color: #3d5f00;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.created-license strong {
    word-break: break-word;
}

.license-user-view {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border: 1px solid var(--fds-line);
    border-radius: 12px;
    background: #fafbfc;
}

.license-user-view span {
    color: var(--fds-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.license-user-view strong {
    font-size: 14px;
    font-weight: 800;
}

.license-user-view small {
    color: var(--fds-muted);
    font-size: 12px;
    font-weight: 600;
}

.login-body {
    min-height: 100vh;
    margin: 0;
    padding: 24px;
    background:
        radial-gradient(ellipse 70% 50% at 50% -20%, rgba(215, 255, 65, 0.22), transparent 55%),
        radial-gradient(ellipse 50% 40% at 100% 100%, rgba(203, 232, 47, 0.1), transparent 45%),
        #0b0d11;
}

.login-shell {
    min-height: calc(100vh - 48px);
    display: grid;
    place-items: center;
}

.login-card {
    position: relative;
    overflow: hidden;
    width: min(100%, 440px);
    padding: 36px 34px;
    border: 1px solid transparent;
    border-radius: 28px;
    background:
        linear-gradient(rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.9)) padding-box,
        linear-gradient(135deg, rgba(215, 255, 65, 0.95), rgba(203, 232, 47, 0.55), rgba(215, 255, 65, 0.9)) border-box;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.45),
        0 0 40px rgba(215, 255, 65, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.login-glow {
    position: absolute;
    top: -40%;
    right: -20%;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(215, 255, 65, 0.35), transparent 70%);
    pointer-events: none;
}

.login-brand {
    position: relative;
    margin-bottom: 28px;
}

.login-card h1 {
    position: relative;
    margin: 0;
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--fds-ink-soft);
}

.login-card p {
    position: relative;
    margin: 10px 0 24px;
    color: var(--fds-muted);
    font-size: 14px;
    font-weight: 500;
}

.login-card .form-label,
.login-card .alert,
.login-card form {
    position: relative;
}

.login-foot {
    position: relative;
    margin-top: 18px;
    text-align: center;
    color: var(--fds-muted);
    font-size: 14px;
}

.login-foot a {
    color: var(--fds-ink);
    font-weight: 700;
    text-decoration: none;
}

.login-foot a:hover {
    text-decoration: underline;
}

.alert {
    border-radius: 14px;
}

.fds-toast-stack {
    position: fixed;
    top: 88px;
    right: 28px;
    z-index: 2600;
    display: grid;
    gap: 12px;
    width: min(360px, calc(100vw - 40px));
    pointer-events: none;
}

.fds-toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 14px 14px 12px;
    border: 1px solid rgba(203, 232, 47, 0.45);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow:
        0 18px 48px rgba(16, 24, 40, 0.16),
        0 0 0 1px rgba(215, 255, 65, 0.08);
    backdrop-filter: blur(12px);
    animation: fds-toast-in 0.38s cubic-bezier(0.2, 0.9, 0.2, 1);
}

.fds-toast.is-leaving {
    animation: fds-toast-out 0.4s ease forwards;
}

.fds-toast-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 12px;
    background: rgba(215, 255, 65, 0.22);
    color: #3f6212;
}

.fds-toast-icon svg {
    width: 22px;
    height: 22px;
}

.fds-toast-check {
    width: 28px !important;
    height: 28px !important;
}

.fds-toast-check-circle {
    stroke: #65a30d;
    stroke-width: 3;
    stroke-dasharray: 140;
    stroke-dashoffset: 140;
    animation: fds-toast-circle 0.55s ease forwards 0.08s;
}

.fds-toast-check-mark {
    stroke: #3f6212;
    stroke-width: 3.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: fds-toast-mark 0.35s ease forwards 0.42s;
}

.fds-toast-body {
    display: grid;
    gap: 2px;
    min-width: 0;
    flex: 1;
    padding-top: 2px;
}

.fds-toast-body strong {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #3f6212;
}

.fds-toast-body span {
    color: var(--fds-ink);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
}

.fds-toast-close {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    margin-top: -2px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #98a2b3;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.fds-toast-close:hover {
    background: #f2f4f7;
    color: #475467;
}

.fds-toast.is-danger {
    border-color: rgba(251, 113, 133, 0.4);
}

.fds-toast.is-danger .fds-toast-icon {
    background: #ffe4e6;
    color: #9f1239;
}

.fds-toast.is-danger .fds-toast-body strong {
    color: #9f1239;
}

.fds-toast.is-warning {
    border-color: rgba(251, 191, 36, 0.45);
}

.fds-toast.is-warning .fds-toast-icon {
    background: #fef3c7;
    color: #b45309;
}

.fds-toast.is-warning .fds-toast-body strong {
    color: #b45309;
}

.fds-toast.is-info {
    border-color: rgba(125, 211, 252, 0.55);
}

.fds-toast.is-info .fds-toast-icon {
    background: #e0f2fe;
    color: #0369a1;
}

.fds-toast.is-info .fds-toast-body strong {
    color: #0369a1;
}

@keyframes fds-toast-in {
    from {
        opacity: 0;
        transform: translateX(18px) translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateX(0) translateY(0);
    }
}

@keyframes fds-toast-out {
    to {
        opacity: 0;
        transform: translateX(16px) scale(0.98);
    }
}

@keyframes fds-toast-circle {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes fds-toast-mark {
    to {
        stroke-dashoffset: 0;
    }
}

@media (max-width: 680px) {
    .fds-toast-stack {
        top: auto;
        bottom: 18px;
        right: 16px;
        left: 16px;
        width: auto;
    }
}

code {
    color: #111318;
    word-break: break-word;
}

@media (max-width: 1280px) {
    .stats-grid-6 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dash-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dash-grid,
    .dash-grid-tables {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1100px) {
    .admin-shell,
    html.sidebar-collapsed .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar,
    html.sidebar-collapsed .admin-sidebar {
        position: static;
        height: auto;
        align-items: stretch;
        padding: 26px 18px;
        border-right: 0;
        border-bottom: 1px solid rgba(215, 255, 65, 0.12);
        border-radius: 0 0 24px 24px;
    }

    html.sidebar-collapsed .brand-logo,
    html.sidebar-collapsed .brand-fallback {
        display: block !important;
    }

    html.sidebar-collapsed .brand-fallback[hidden] {
        display: none !important;
    }

    html.sidebar-collapsed .brand-icon {
        display: none !important;
    }

    html.sidebar-collapsed .nav-label,
    html.sidebar-collapsed .sidebar-profile-meta {
        display: initial;
    }

    html.sidebar-collapsed .sidebar-profile-meta {
        display: grid;
    }

    html.sidebar-collapsed .sidebar-nav a {
        justify-content: flex-start;
        padding: 11px 14px;
    }

    html.sidebar-collapsed .sidebar-profile {
        justify-content: flex-start;
        padding: 14px;
    }

    html.sidebar-collapsed .sidebar-nav a.active {
        box-shadow: inset 3px 0 0 var(--fds-accent);
    }

    .sidebar-nav {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .sidebar-nav a {
        justify-content: flex-start;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sticky-panel {
        position: static;
    }

    .dash-hero {
        flex-direction: column;
        align-items: stretch;
    }

    .dash-hero-status {
        min-width: 0;
    }

    .admin-menu-meta {
        display: none;
    }
}

@media (max-width: 680px) {
    .admin-main {
        padding: 18px;
    }

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

    .topbar-right {
        width: 100%;
        justify-content: flex-end;
    }

    .sidebar-nav {
        grid-template-columns: 1fr 1fr;
    }

    .stats-grid,
    .stats-grid-6,
    .dash-actions,
    .health-grid,
    .profile-meta-grid {
        grid-template-columns: 1fr;
    }

    .panel,
    .login-card {
        padding: 18px;
    }

    .brand-logo {
        height: 32px;
    }
}
