:root {
    color-scheme: light;
    --bg: #dbeafe;
    --panel: rgba(255, 255, 255, 0.95);
    --panel-soft: rgba(241, 245, 249, 0.92);
    --text: #1e293b;
    --text-dark: #0f172a;
    --radius: 16px;
    --shadow: 0 20px 45px rgba(2, 6, 23, 0.32);
    --btn-blue-start: #38bdf8;
    --btn-blue-end: #2563eb;
    --btn-blue-border: rgba(37, 99, 235, 0.72);
    --btn-red-start: #fb7185;
    --btn-red-end: #dc2626;
    --btn-red-border: rgba(220, 38, 38, 0.72);
    --shell-max-width: 1840px;
    --shell-gap: clamp(6px, 1vw, 14px);
    --shell-padding: clamp(14px, 1.6vw, 24px);
    --shell-radius: 20px;
    --sidebar-width: clamp(232px, 17vw, 280px);
}

html {
    font-size: 14px;
}

* {
    box-sizing: border-box;
}

img,
video {
    max-width: 100%;
    height: auto;
}

button,
input,
select,
textarea {
    font: inherit;
}

body {
    margin: 0;
    font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.42;
    background:
        radial-gradient(circle at 15% 10%, rgba(125, 211, 252, 0.55), transparent 35%),
        radial-gradient(circle at 85% 80%, rgba(186, 230, 253, 0.55), transparent 32%),
        var(--bg);
    background-size: 130% 130%, 130% 130%, 100% 100%;
    color: var(--text);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: stretch;
    padding: var(--shell-gap);
    animation: backgroundDrift 18s ease-in-out infinite alternate;
}

[hidden] {
    display: none !important;
}

.app-shell {
    position: relative;
    width: min(var(--shell-max-width), 100%);
    min-height: calc(100vh - (var(--shell-gap) * 2));
    border-radius: var(--shell-radius);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
    animation: shellAppear .8s ease-out both;
}

.alpha-ribbon {
    position: absolute;
    top: 22px;
    left: -46px;
    z-index: 20;
    width: 168px;
    padding: 6px 0 7px;
    border-top: 1px solid rgba(255, 255, 255, 0.55);
    border-bottom: 1px solid rgba(127, 29, 29, 0.28);
    background: linear-gradient(135deg, #ef4444, #f97316);
    box-shadow: 0 10px 20px rgba(127, 29, 29, 0.22);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1;
    pointer-events: none;
    text-align: center;
    text-transform: uppercase;
    transform: rotate(-45deg);
}

.sidebar {
    background: linear-gradient(170deg, var(--panel), var(--panel-soft));
    min-width: 0;
    padding: clamp(14px, 1.4vw, 20px);
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-right: 1px solid rgba(148, 163, 184, 0.35);
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.logo-wrap {
    text-align: center;
    border-radius: var(--radius);
    padding: 12px;
    background: rgba(255, 255, 255, 0.78);
    animation: floatLogo 4.5s ease-in-out infinite;
}

.logo-wrap img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

.sidebar-user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(255, 255, 255, 0.78);
}

.sidebar-user-image {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    object-fit: cover;
    background: rgba(203, 213, 225, 0.7);
    flex-shrink: 0;
}

.sidebar-user-name {
    font-weight: 600;
    color: var(--text-dark);
    overflow-wrap: anywhere;
}


.sidebar-user-admin-badge {
    display: inline-block;
    margin-left: 6px;
    padding: .15rem .55rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    color: #0f172a;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.sidebar-warehouse-select-wrap {
    display: grid;
    gap: 6px;
    margin-top: 0;
    margin-bottom: 2px;
}

.sidebar-warehouse-select-label {
    font-size: 0.88rem;
    color: #334155;
}

.sidebar-warehouse-select {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.5);
    border-radius: 10px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.9);
}

.menu a,
.menu-group-toggle {
    display: block;
    color: var(--text);
    text-decoration: none;
    padding: 8px 11px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.35);
    transform: translateX(-6px);
    opacity: 0;
    animation: menuItemEnter .55s ease-out forwards;
    transition: transform .25s ease, border-color .25s ease, background .25s ease, box-shadow .25s ease;
}

.menu-group {
    display: grid;
    gap: 6px;
}

.menu-group-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
    text-align: left;
}

.menu-group-chevron {
    font-size: 1.05rem;
    line-height: 1;
    transition: transform .2s ease;
}

.menu-group.is-open .menu-group-chevron {
    transform: rotate(180deg);
}

.menu-submenu {
    list-style: none;
    margin: 0;
    padding: 0 0 0 14px;
    display: grid;
    gap: 5px;
}

.menu-submenu a {
    padding: 7px 10px;
    background: rgba(241, 245, 249, 0.92);
    font-size: 0.92rem;
}

.menu-submenu a[aria-current="page"] {
    border-color: rgba(37, 99, 235, 0.48);
    background: rgba(219, 234, 254, 0.96);
    color: #1d4ed8;
    font-weight: 800;
}

.menu li:nth-child(1) a { animation-delay: .08s; }
.menu li:nth-child(2) a { animation-delay: .14s; }
.menu li:nth-child(3) a { animation-delay: .20s; }
.menu li:nth-child(4) a { animation-delay: .26s; }
.menu li:nth-child(5) a { animation-delay: .32s; }
.menu li:nth-child(6) a { animation-delay: .38s; }

.menu a:hover,
.menu a:focus-visible,
.menu-group-toggle:hover,
.menu-group-toggle:focus-visible {
    transform: translateX(6px);
    border-color: rgba(56, 189, 248, 0.7);
    background: rgba(224, 242, 254, 0.96);
    box-shadow: 0 10px 20px rgba(14, 116, 144, 0.15);
    outline: none;
}

.lang-switch {
    display: flex;
    align-items: start;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 2px;
    color: #475569;
    font-size: 0.88rem;
}

.lang-switch a {
    color: #1e293b;
    text-decoration: none;
    border: 1px solid rgba(148, 163, 184, 0.5);
    border-radius: 8px;
    padding: 3px 8px;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.lang-switch a.active,
.lang-switch a:hover {
    background: rgba(56, 189, 248, 0.2);
    border-color: rgba(56, 189, 248, 0.8);
    transform: translateY(-1px);
}

.content-area {
    display: grid;
    grid-template-rows: 1fr auto;
    min-width: 0;
    background: rgba(248, 250, 252, 0.98);
    color: var(--text-dark);
    isolation: isolate;
}

.content-area > * {
    min-width: 0;
}

.mobile-topbar {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px var(--shell-padding);
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(241, 245, 249, 0.94));
    backdrop-filter: blur(14px);
}

.mobile-topbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: #0f172a;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-decoration: none;
}

.mobile-topbar-brand img {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    box-shadow: 0 10px 22px rgba(14, 116, 144, 0.18);
}

.mobile-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 0;
    padding: 10px 14px;
    border: 1px solid rgba(37, 99, 235, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: #0f172a;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    cursor: pointer;
    transition: transform .2s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
}

.mobile-nav-toggle:hover,
.mobile-nav-toggle:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(37, 99, 235, 0.45);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
    outline: none;
}

.mobile-nav-toggle-icon,
.mobile-nav-toggle-icon::before,
.mobile-nav-toggle-icon::after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform .22s ease, top .22s ease, opacity .22s ease, background .22s ease;
}

.mobile-nav-toggle-icon {
    position: relative;
    flex: 0 0 auto;
}

.mobile-nav-toggle-icon::before,
.mobile-nav-toggle-icon::after {
    content: '';
    position: absolute;
    left: 0;
}

.mobile-nav-toggle-icon::before {
    top: -6px;
}

.mobile-nav-toggle-icon::after {
    top: 6px;
}

body.has-mobile-nav-open .mobile-nav-toggle-icon {
    background: transparent;
}

body.has-mobile-nav-open .mobile-nav-toggle-icon::before {
    top: 0;
    transform: rotate(45deg);
}

body.has-mobile-nav-open .mobile-nav-toggle-icon::after {
    top: 0;
    transform: rotate(-45deg);
}

.mobile-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 25;
    border: 0;
    background: rgba(15, 23, 42, 0.42);
    opacity: 0;
    pointer-events: none;
    transition: opacity .24s ease;
}

.content-inner {
    padding: var(--shell-padding);
    min-width: 0;
    animation: contentFadeIn .7s ease-out .2s both;
    transform-origin: top center;
}

.content-inner > * {
    max-width: 100%;
}

body.is-page-transitioning .content-inner {
    opacity: 0;
    transform: translateY(12px) scale(.992);
    filter: blur(5px);
    transition: opacity .22s ease, transform .26s ease, filter .26s ease;
}

body.is-page-transitioning .menu a {
    opacity: .22;
    transform: translateX(-2px);
    transition: opacity .2s ease, transform .22s ease, filter .22s ease;
    filter: saturate(.86);
}

body.is-page-transitioning .sidebar-user-info,
body.is-page-transitioning .sidebar-warehouse-select-wrap,
body.is-page-transitioning .lang-switch,
body.is-page-transitioning .footer {
    opacity: 0;
    transform: translateY(8px);
    filter: blur(4px);
    transition: opacity .2s ease, transform .24s ease, filter .24s ease;
}

html.is-page-transition-entering .content-inner {
    animation: pageTransitionContentIn .42s cubic-bezier(.22, 1, .36, 1) both;
}

html.is-page-transition-entering .menu a {
    animation: pageTransitionNavIn .38s cubic-bezier(.22, 1, .36, 1) both;
}

html.is-page-transition-entering .sidebar-user-info,
html.is-page-transition-entering .sidebar-warehouse-select-wrap,
html.is-page-transition-entering .lang-switch,
html.is-page-transition-entering .footer {
    animation: pageTransitionAuxIn .34s cubic-bezier(.22, 1, .36, 1) both;
}

html.is-page-transition-entering .menu li:nth-child(1) a { animation-delay: .02s; }
html.is-page-transition-entering .menu li:nth-child(2) a { animation-delay: .06s; }
html.is-page-transition-entering .menu li:nth-child(3) a { animation-delay: .1s; }
html.is-page-transition-entering .menu li:nth-child(4) a { animation-delay: .14s; }
html.is-page-transition-entering .menu li:nth-child(5) a { animation-delay: .18s; }
html.is-page-transition-entering .menu li:nth-child(6) a { animation-delay: .22s; }
html.is-page-transition-entering .sidebar-user-info { animation-delay: .04s; }
html.is-page-transition-entering .sidebar-warehouse-select-wrap { animation-delay: .08s; }
html.is-page-transition-entering .lang-switch { animation-delay: .12s; }
html.is-page-transition-entering .footer { animation-delay: .12s; }

.footer {
    padding: 16px var(--shell-padding);
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    color: #334155;
    font-size: 0.92rem;
    background: rgba(255, 255, 255, 0.75);
    animation: footerSlideIn .7s ease-out .35s both;
}

.footer-link {
    color: #1d4ed8;
    font-weight: 600;
    text-decoration: none;
    transition: color .2s ease, transform .2s ease;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-link:hover,
.footer-link:focus-visible {
    color: #0f172a;
    transform: translateY(-1px);
    outline: none;
}

.legal-page {
    display: grid;
    gap: 16px;
}

.footer-withdrawal-button {
    display: inline-flex;
    padding: 8px 12px;
    border: 1px solid currentColor;
    border-radius: 8px;
}

.footer-withdrawal-button:focus-visible,
.withdrawal-page a:focus-visible {
    outline: 2px solid #1d4ed8;
    outline-offset: 3px;
}

.withdrawal-page {
    width: 100%;
    max-width: 860px;
    margin-inline: auto;
}

.withdrawal-feedback {
    margin-bottom: 18px;
}

.withdrawal-legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
}

.withdrawal-legal-links a {
    color: #1d4ed8;
    text-underline-offset: 3px;
}

.withdrawal-receipt {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 10px 20px;
    margin-block: 20px;
    overflow-wrap: anywhere;
}

.withdrawal-receipt dt {
    font-weight: 700;
}

.withdrawal-receipt dd {
    margin: 0;
}

@media (max-width: 640px) {
    .withdrawal-receipt {
        grid-template-columns: minmax(0, 1fr);
        gap: 4px;
    }

    .withdrawal-receipt dd {
        margin-bottom: 10px;
    }
}

.legal-page-header {
    display: grid;
    gap: 8px;
    padding: 18px 20px;
    border-radius: 16px;
    border: 1px solid rgba(56, 189, 248, 0.25);
    background: linear-gradient(135deg, rgba(224, 242, 254, 0.82), rgba(248, 250, 252, 0.96));
    box-shadow: 0 14px 30px rgba(14, 116, 144, 0.12);
}

.legal-page-header h1,
.legal-page-header p {
    margin: 0;
}

.legal-page-header p {
    color: #334155;
}

.legal-page-notice {
    margin: 0;
    padding: 14px 16px;
    border-left: 4px solid rgba(2, 132, 199, 0.7);
    border-radius: 12px;
    background: rgba(224, 242, 254, 0.7);
    color: #0f172a;
    font-weight: 600;
}

.legal-page-card {
    padding: 18px;
    border-radius: 16px;
    border: 1px solid rgba(56, 189, 248, 0.25);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 30px rgba(14, 116, 144, 0.12);
    overflow: hidden;
}

@media (max-width: 640px) {
    .legal-page-header,
    .legal-page-card {
        padding: 18px;
    }
}


html.no-enter-animations .app-shell,
html.no-enter-animations .menu a,
html.no-enter-animations .content-inner,
html.no-enter-animations .footer {
    animation: none !important;
    opacity: 1;
    transform: none;
}

@keyframes backgroundDrift {
    0% {
        background-position: 0% 0%, 100% 100%, 0 0;
    }

    100% {
        background-position: 12% 6%, 88% 92%, 0 0;
    }
}

@keyframes shellAppear {
    from {
        opacity: 0;
        transform: translateY(10px) scale(.99);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes menuItemEnter {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pageTransitionContentIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(.992);
        filter: blur(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes pageTransitionNavIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pageTransitionAuxIn {
    from {
        opacity: 0;
        transform: translateY(10px);
        filter: blur(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

::view-transition-old(root),
::view-transition-new(root) {
    animation-duration: .34s;
    animation-timing-function: cubic-bezier(.22, 1, .36, 1);
}

::view-transition-old(root) {
    animation-name: xipmoViewOld;
}

::view-transition-new(root) {
    animation-name: xipmoViewNew;
}

@keyframes xipmoViewOld {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }

    to {
        opacity: 0;
        transform: translateY(10px) scale(.992);
        filter: blur(6px);
    }
}

@keyframes xipmoViewNew {
    from {
        opacity: 0;
        transform: translateY(10px) scale(.994);
        filter: blur(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes contentFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes footerSlideIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatLogo {
    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-4px);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

@media (max-width: 930px) {
    body {
        padding: 0;
    }

    .app-shell {
        width: 100%;
        min-height: 100vh;
        border-radius: 0;
        grid-template-columns: 1fr;
        overflow: visible;
    }

    .sidebar {
        position: static;
        inset: auto;
        z-index: auto;
        width: 100%;
        max-width: none;
        min-height: auto;
        padding: 12px 12px 10px;
        gap: 10px;
        border-right: none;
        border-bottom: 1px solid rgba(148, 163, 184, 0.2);
        overflow: visible;
        box-shadow: none;
        transform: none;
        transition: none;
    }

    .logo-wrap {
        width: min(220px, 100%);
        margin: 0 auto;
        padding: 10px 12px;
    }

    .logo-wrap img {
        max-width: 150px;
        margin: 0 auto;
    }

    .mobile-topbar,
    .mobile-sidebar-backdrop {
        display: none !important;
    }

    .sidebar nav {
        gap: 8px;
    }

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

    .menu li {
        min-width: 0;
    }

    .content-area {
        min-height: 0;
    }

    .content-inner {
        padding: clamp(14px, 3.5vw, 22px);
    }

    .footer {
        padding: 14px clamp(14px, 3.5vw, 22px) 20px;
        flex-direction: column;
        align-items: flex-start;
    }

    .menu a,
    .menu-group-toggle {
        transform: none;
        opacity: 1;
        animation: none;
        height: 100%;
        padding: 9px 8px;
        text-align: center;
        font-size: 0.9rem;
        line-height: 1.3;
        white-space: normal;
    }

    .menu-group {
        grid-column: 1 / -1;
    }

    .menu-group-toggle {
        height: auto;
        justify-content: center;
        position: relative;
    }

    .menu-group-chevron {
        position: absolute;
        right: 12px;
    }

    .menu-submenu {
        padding: 0;
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 6px;
    }

    .sidebar-user-info {
        padding: 8px 10px;
    }

    .lang-switch {
        justify-content: center;
    }

    .profile-form-layout {
        grid-template-columns: 1fr;
    }
}

.welcome-page {
    display: grid;
    gap: clamp(22px, 3vw, 34px);
}

.welcome-hero {
    position: relative;
    overflow: hidden;
    min-height: clamp(360px, 46vh, 500px);
    display: grid;
    align-content: end;
    gap: clamp(24px, 4vw, 44px);
    padding: clamp(30px, 5vw, 70px);
    border-radius: 24px;
    border: 1px solid rgba(20, 184, 166, 0.28);
    background:
        linear-gradient(96deg, rgba(15, 23, 42, 0.94) 0%, rgba(15, 118, 110, 0.86) 46%, rgba(37, 99, 235, 0.34) 76%, rgba(37, 99, 235, 0.18) 100%),
        url("../images/hedgehog_welcome.png") right clamp(18px, 3vw, 42px) bottom 0 / auto min(92%, 560px) no-repeat,
        linear-gradient(140deg, #0f172a, #0f766e 52%, #2563eb);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.22);
    color: #f8fafc;
}

.welcome-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 38%;
    background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.12));
    pointer-events: none;
}

.welcome-copy {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 14px;
    width: min(680px, 100%);
}

.welcome-kicker,
.welcome-section-kicker {
    margin: 0;
    color: #0f766e;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.welcome-kicker {
    color: #a7f3d0;
}

.welcome-copy h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(2.4rem, 5.5vw, 5.2rem);
    line-height: 0.95;
    letter-spacing: 0;
}

.welcome-copy .welcome-lead {
    max-width: 16ch;
    color: #ecfeff;
    font-size: clamp(1.26rem, 1.05rem + 1vw, 2rem);
    font-weight: 800;
    line-height: 1.12;
}

.welcome-copy p {
    margin: 0;
    max-width: 64ch;
    color: rgba(241, 245, 249, 0.92);
    line-height: 1.72;
}

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

.welcome-primary-action {
    min-height: 46px;
}

.welcome-secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 18px;
    border: 1px solid rgba(226, 232, 240, 0.4);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #f8fafc;
    font-weight: 800;
    text-decoration: none;
    transition: transform .2s ease, border-color .22s ease, background .22s ease;
}

.welcome-secondary-action:hover,
.welcome-secondary-action:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(167, 243, 208, 0.86);
    background: rgba(255, 255, 255, 0.14);
    outline: none;
}

.welcome-benefit-card,
.welcome-example-card,
.welcome-workflow-item {
    border: 1px solid rgba(148, 163, 184, 0.26);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.welcome-section {
    display: grid;
    gap: 18px;
}

.welcome-section-heading {
    display: grid;
    gap: 8px;
    max-width: 820px;
}

.welcome-section-heading h2,
.welcome-cta h2 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(1.55rem, 1.25rem + 1.2vw, 2.5rem);
    line-height: 1.12;
}

.welcome-section-heading p,
.welcome-product-view-copy p,
.welcome-example-card p,
.welcome-workflow-item p,
.welcome-cta p {
    margin: 0;
    color: #475569;
    line-height: 1.68;
}

.welcome-benefit-grid,
.welcome-example-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.welcome-benefit-card,
.welcome-example-card {
    display: grid;
    align-content: start;
    gap: 12px;
    padding: clamp(18px, 2vw, 24px);
}

.welcome-benefit-card h3,
.welcome-example-card h3,
.welcome-product-view-copy h3,
.welcome-workflow-item h3 {
    margin: 0;
    color: #0f172a;
    font-size: 1.08rem;
    line-height: 1.25;
}

.welcome-benefit-card::before {
    content: "";
    width: 42px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, #0f766e, #2563eb);
}

.welcome-product {
    padding: clamp(20px, 2.8vw, 30px);
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(240, 253, 250, 0.84) 52%, rgba(239, 246, 255, 0.94));
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

.welcome-product-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(18px, 3vw, 30px);
    align-items: start;
}

.welcome-product-view {
    display: grid;
    align-content: start;
    gap: 14px;
    min-width: 0;
}

.welcome-product-view-copy {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.welcome-dashboard-mockup {
    overflow: hidden;
    min-width: 0;
    border-radius: 18px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    background: #0f172a;
    box-shadow: 0 24px 44px rgba(15, 23, 42, 0.22);
}

.welcome-mockup-topbar {
    display: grid;
    grid-template-columns: 10px 10px 10px 1fr;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.96);
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.welcome-mockup-topbar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #14b8a6;
}

.welcome-mockup-topbar span:nth-child(2) {
    background: #f59e0b;
}

.welcome-mockup-topbar span:nth-child(3) {
    background: #38bdf8;
}

.welcome-mockup-topbar strong {
    justify-self: end;
    min-width: 0;
    overflow: hidden;
    color: #f8fafc;
    font-size: 0.88rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.welcome-mockup-table {
    display: grid;
    min-width: 0;
    background: #ffffff;
}

.welcome-mockup-row {
    display: grid;
    gap: 10px;
    align-items: center;
    min-width: 0;
    padding: 8px 11px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    color: #0f172a;
}

.welcome-mockup-row:last-child {
    border-bottom: 0;
}

.welcome-mockup-row.is-article {
    grid-template-columns: 34px minmax(76px, 0.66fr) minmax(130px, 1.45fr) minmax(76px, 0.58fr) minmax(74px, 0.56fr);
}

.welcome-mockup-row.is-storage {
    grid-template-columns: minmax(90px, 0.72fr) minmax(150px, 1.45fr) minmax(110px, 0.7fr);
}

.welcome-mockup-row.is-header {
    background: rgba(248, 250, 252, 0.86);
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.welcome-mockup-row span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.welcome-mockup-thumb {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.welcome-mockup-thumb.is-teal {
    background: linear-gradient(135deg, #99f6e4, #0f766e);
}

.welcome-mockup-thumb.is-sky {
    background: linear-gradient(135deg, #bae6fd, #2563eb);
}

.welcome-mockup-thumb.is-amber {
    background: linear-gradient(135deg, #fde68a, #d97706);
}

.welcome-mockup-action,
.welcome-example-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.welcome-mockup-action {
    padding: 6px 9px;
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 9px;
    background: rgba(219, 234, 254, 0.74);
    color: #1d4ed8;
}

.welcome-mockup-action.is-secondary {
    border-color: rgba(15, 118, 110, 0.2);
    background: rgba(204, 251, 241, 0.76);
    color: #0f766e;
}

.welcome-example-card {
    overflow: hidden;
}

.welcome-mini-screen {
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: #f8fafc;
}

.welcome-mini-header {
    display: flex;
    gap: 6px;
    padding: 10px;
    background: #0f172a;
}

.welcome-mini-header span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #14b8a6;
}

.welcome-mini-header span:nth-child(2) {
    background: #f59e0b;
}

.welcome-mini-header span:nth-child(3) {
    background: #38bdf8;
}

.welcome-mini-body {
    display: grid;
    gap: 10px;
    padding: 16px;
}

.welcome-mini-line,
.welcome-mini-bar {
    display: block;
    height: 10px;
    border-radius: 999px;
    background: #cbd5e1;
}

.welcome-mini-line.is-wide {
    width: 86%;
}

.welcome-mini-line {
    width: 68%;
}

.welcome-mini-line.is-short {
    width: 48%;
}

.welcome-mini-bar {
    width: 100%;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(90deg, rgba(15, 118, 110, 0.82), rgba(37, 99, 235, 0.72));
}

.welcome-mini-screen-2 .welcome-mini-bar {
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.82), rgba(14, 165, 233, 0.66));
}

.welcome-mini-screen-3 .welcome-mini-bar {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.72), rgba(15, 118, 110, 0.78));
}

.welcome-example-tag {
    padding: 6px 10px;
    background: rgba(20, 184, 166, 0.12);
    color: #0f766e;
}

.welcome-workflow {
    padding: clamp(20px, 2.6vw, 30px);
    border-radius: 22px;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.welcome-workflow-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.welcome-workflow-item {
    display: grid;
    gap: 10px;
    padding: clamp(18px, 2vw, 24px);
}

.welcome-workflow-item > span {
    color: #0f766e;
    font-weight: 900;
    font-size: 0.9rem;
}

.welcome-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: clamp(22px, 3.4vw, 34px);
    border-radius: 24px;
    border: 1px solid rgba(20, 184, 166, 0.28);
    background:
        linear-gradient(112deg, rgba(240, 253, 250, 0.98), rgba(219, 234, 254, 0.94));
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.welcome-cta > div {
    display: grid;
    gap: 8px;
    min-width: 0;
}

@media (max-width: 1100px) {
    .welcome-product-layout,
    .welcome-benefit-grid,
    .welcome-example-grid,
    .welcome-workflow-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 930px) {
    .welcome-hero {
        min-height: auto;
        background:
            linear-gradient(96deg, rgba(15, 23, 42, 0.94) 0%, rgba(15, 118, 110, 0.78) 58%, rgba(15, 118, 110, 0.28) 100%),
            url("../images/hedgehog_welcome.png") right 14px bottom 0 / auto min(72%, 360px) no-repeat,
            linear-gradient(140deg, #0f172a, #0f766e);
    }
}

.account-panel {
    position: relative;
    overflow: hidden;
    padding: clamp(18px, 2.6vw, 30px);
    border-radius: 22px;
    border: 1px solid rgba(20, 184, 166, 0.24);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(240, 253, 250, 0.86) 54%, rgba(239, 246, 255, 0.96));
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.1);
}

.account-auth-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.86fr) minmax(360px, 1fr);
    gap: clamp(18px, 2.8vw, 34px);
    align-items: stretch;
}

.account-auth-aside {
    display: grid;
    align-content: start;
    gap: 14px;
    min-width: 0;
    padding: clamp(22px, 3vw, 34px);
    border-radius: 18px;
    background: linear-gradient(145deg, #0f172a, #0f766e 58%, #2563eb);
    color: #f8fafc;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.2);
}

.account-brand-mark {
    width: min(220px, 78%);
    padding: 12px 14px;
    border: 1px solid rgba(226, 232, 240, 0.22);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
}

.account-brand-mark img {
    display: block;
    width: 100%;
    height: auto;
}

.account-eyebrow,
.auth-card-kicker {
    margin: 0;
    color: #0f766e;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.account-eyebrow {
    margin-top: 8px;
    color: #a7f3d0;
}

.account-panel h2 {
    margin: 0;
    color: #ffffff;
    font-size: 2.55rem;
    line-height: 1.02;
    letter-spacing: 0;
}

.account-intro {
    margin: 0;
    color: rgba(241, 245, 249, 0.9);
    line-height: 1.68;
}

.account-benefits {
    display: grid;
    gap: 12px;
    margin-top: 8px;
}

.account-benefit {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    min-width: 0;
    padding: 14px;
    border: 1px solid rgba(226, 232, 240, 0.22);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
}

.account-benefit-icon {
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(240, 253, 250, 0.16);
    border: 1px solid rgba(167, 243, 208, 0.35);
}

.account-benefit-icon::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 9px;
    width: 12px;
    height: 7px;
    border-left: 2px solid #a7f3d0;
    border-bottom: 2px solid #a7f3d0;
    transform: rotate(-45deg);
}

.account-benefit h3,
.account-benefit p,
.auth-card-header h3,
.auth-card-header p {
    margin: 0;
}

.account-benefit h3 {
    color: #ffffff;
    font-size: 0.98rem;
    line-height: 1.3;
}

.account-benefit p {
    margin-top: 4px;
    color: rgba(241, 245, 249, 0.82);
    font-size: 0.92rem;
    line-height: 1.55;
}

.account-auth-main {
    display: grid;
    align-content: start;
    gap: 16px;
    min-width: 0;
}

.auth-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    padding: 5px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.auth-tab {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 44px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #334155;
    padding: 10px 14px;
    font-weight: 800;
    cursor: pointer;
    transition: background .24s ease, color .24s ease, transform .2s ease, box-shadow .24s ease;
}

.auth-tab.active {
    background: #0f172a;
    color: #f8fafc;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.18);
}

.auth-tab:hover,
.auth-tab:focus-visible {
    transform: translateY(-1px);
    color: #0f172a;
    outline: none;
}

.auth-tab:focus-visible {
    box-shadow: inset 0 0 0 2px rgba(15, 118, 110, 0.5);
}

.auth-tab.active:hover,
.auth-tab.active:focus-visible {
    color: #f8fafc;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.18), 0 0 0 3px rgba(20, 184, 166, 0.18);
}

.auth-card {
    position: relative;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 18px;
    padding: clamp(20px, 2.6vw, 30px);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.09);
    opacity: 1;
    transform: translateY(0);
    transition: opacity .26s ease, transform .26s ease;
}

.auth-card.hidden {
    display: none;
}

.auth-card.is-entering {
    opacity: 0;
    transform: translateY(6px);
}

.auth-card.is-leaving {
    opacity: 0;
    transform: translateY(-6px);
}

.auth-form {
    display: grid;
    gap: 14px;
}

.auth-card-header {
    display: grid;
    gap: 7px;
    margin-bottom: 20px;
}

.auth-card-header h3 {
    color: #0f172a;
    font-size: 1.75rem;
    line-height: 1.15;
}

.auth-card-header p:not(.auth-card-kicker) {
    color: #475569;
    line-height: 1.62;
}

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

.auth-field {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.auth-field label {
    color: #0f172a;
    font-size: 0.94rem;
    font-weight: 700;
}

.auth-help {
    margin: 0;
    color: #64748b;
    font-size: 0.88rem;
    line-height: 1.45;
}

.captcha-field {
    min-width: 0;
}

.captcha-image-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.captcha-image {
    width: 300px;
    max-width: 100%;
    height: auto;
    border: 1px solid var(--line, #cbd5e1);
    border-radius: 0.5rem;
    background: #f7f9fc;
}

.captcha-field input {
    max-width: 18rem;
    letter-spacing: 0.12em;
}

.captcha-status {
    min-height: 1.4em;
}

.auth-consent-group {
    display: grid;
    gap: 8px;
    padding: 10px;
    border: 1px solid rgba(148, 163, 184, 0.26);
    border-radius: 12px;
    background: rgba(248, 250, 252, 0.92);
}

.profile-page {
    display: grid;
    gap: 22px;
}

.profile-page-header {
    padding: 22px 24px;
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(240, 249, 255, 0.94), rgba(255, 255, 255, 0.96));
    box-shadow: 0 14px 30px rgba(14, 116, 144, 0.11);
}

.profile-page-header h2 {
    margin: 0 0 8px;
}

.profile-page-header p {
    max-width: 760px;
    margin: 0;
    color: #334155;
}

.profile-page-header p + p {
    margin-top: 6px;
}

.profile-admin-indicator {
    display: inline-block;
    margin: 12px 0 0;
    padding: .3rem .75rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    color: #0f172a;
    font-size: .82rem;
    font-weight: 600;
}

.profile-card {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

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

.totp-card h3,
.totp-card p {
    margin: 0;
}

#totp-setup-details {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.totp-qr {
    display: block;
    width: min(100%, 320px);
    height: auto;
    background: white;
    image-rendering: pixelated;
}

.totp-secret {
    width: 100%;
    min-width: 0;
    font-family: Consolas, monospace;
    letter-spacing: 0.08em;
}

.profile-form-layout {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(240px, 280px);
    gap: 20px;
    align-items: start;
}

.profile-form-main {
    display: grid;
    gap: 10px;
}

.profile-image-panel {
    display: grid;
    align-content: start;
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="file"] {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.5);
    border-radius: 10px;
    min-height: 46px;
    padding: 10px 12px;
    background: #fff;
    color: #0f172a;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.auth-form input[type="text"]:focus-visible,
.auth-form input[type="email"]:focus-visible,
.auth-form input[type="password"]:focus-visible,
.auth-form input[type="file"]:focus-visible {
    border-color: rgba(15, 118, 110, 0.74);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.14);
    outline: none;
}

.password-input-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    border: 1px solid rgba(148, 163, 184, 0.5);
    border-radius: 10px;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.password-input-wrap:focus-within {
    border-color: rgba(15, 118, 110, 0.74);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.14);
}

.password-input-wrap input[type="password"],
.password-input-wrap input[type="text"] {
    border: 0;
    border-radius: 10px 0 0 10px;
    background: transparent;
    box-shadow: none;
}

.password-input-wrap input[type="password"]:focus-visible,
.password-input-wrap input[type="text"]:focus-visible {
    box-shadow: none;
}

.password-toggle {
    min-width: 86px;
    min-height: 34px;
    margin-right: 6px;
    border: 1px solid rgba(15, 118, 110, 0.22);
    border-radius: 8px;
    background: rgba(240, 253, 250, 0.9);
    color: #0f766e;
    font-size: 0.86rem;
    font-weight: 800;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.password-toggle:hover,
.password-toggle:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(15, 118, 110, 0.45);
    background: rgba(204, 251, 241, 0.86);
    color: #0f172a;
    outline: none;
}

.profile-image-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 6px;
}

.profile-image-preview {
    width: 120px;
    height: 120px;
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid rgba(148, 163, 184, 0.5);
}

.profile-section {
    margin-top: 0;
}

.profile-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.profile-section-actions {
    align-items: center;
    justify-content: flex-end;
}

.profile-section-actions .status-action-button {
    min-height: 44px;
}

.profile-logout-button {
    min-width: 118px;
}

.profile-section-title {
    margin: 0;
}

.profile-section-intro {
    margin: 6px 0 0;
    color: #475569;
}

.profile-session-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.profile-session-summary-card {
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 14px;
    padding: 14px 16px;
    background: rgba(248, 250, 252, 0.95);
}

.profile-session-summary-label {
    display: block;
    color: #475569;
    font-size: 0.88rem;
}

.profile-session-summary-value {
    display: block;
    margin-top: 6px;
    color: #0f172a;
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1.1;
}

.profile-session-groups {
    display: grid;
    gap: 18px;
}

.profile-session-card {
    padding: 0;
    overflow: hidden;
}

.profile-session-card h4 {
    margin: 0;
    padding: 18px 18px 0;
}

.profile-session-card .x-table-shell {
    padding: 0 14px 14px;
}

.profile-sessions-table {
    min-width: 1020px;
}

.profile-session-name-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.profile-session-name-text {
    font-weight: 600;
    color: #0f172a;
}

.profile-session-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.24rem 0.62rem;
    border-radius: 999px;
    font-size: 0.77rem;
    font-weight: 700;
    line-height: 1;
}

.profile-session-badge.is-current {
    background: rgba(37, 99, 235, 0.14);
    color: #1d4ed8;
}

.profile-session-badge.is-active {
    background: rgba(34, 197, 94, 0.14);
    color: #15803d;
}

.profile-session-badge.is-expired {
    background: rgba(239, 68, 68, 0.14);
    color: #b91c1c;
}

.profile-session-warehouse {
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

.profile-session-secret {
    display: grid;
    gap: 8px;
    margin-top: 12px;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.82);
}

.profile-session-create-result-title {
    margin: 0;
    font-weight: 700;
    color: #0f172a;
}

.profile-session-create-result-text {
    margin: 0;
    color: #475569;
}

.profile-session-secret label {
    font-weight: 600;
    color: #0f172a;
}

.profile-session-secret input[type="text"] {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.5);
    border-radius: 10px;
    padding: 10px 12px;
    background: rgba(241, 245, 249, 0.9);
    color: #0f172a;
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

.profile-session-secret-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.profile-session-empty {
    margin: 0;
    color: #475569;
}

@media (max-width: 930px) {
    .profile-page {
        gap: 18px;
    }

    .profile-page-header {
        padding: 18px;
        border-radius: 16px;
    }

    .profile-form-layout {
        grid-template-columns: 1fr;
    }

    .profile-session-summary {
        grid-template-columns: 1fr;
    }

    .profile-section-actions {
        justify-content: flex-start;
    }
}


.auth-form input[readonly] {
    background: rgba(241, 245, 249, 0.9);
    color: #475569;
    cursor: not-allowed;
}

.auth-form button:not(.password-toggle) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    justify-self: start;
    min-height: 48px;
    border: 1px solid var(--btn-blue-border);
    border-radius: 12px;
    background: linear-gradient(140deg, var(--btn-blue-start), var(--btn-blue-end));
    color: #f8fafc;
    font-weight: 700;
    padding: 10px 18px;
    box-shadow: 0 10px 24px rgba(30, 64, 175, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    transition: transform .2s ease, box-shadow .25s ease, border-color .25s ease, filter .25s ease, background .25s ease;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    appearance: none;
    -webkit-appearance: none;
}

.auth-form button:not(.password-toggle):hover,
.auth-form button:not(.password-toggle):focus-visible {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 14px 30px rgba(30, 64, 175, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.38);
    border-color: rgba(59, 130, 246, 0.95);
    outline: none;
    filter: saturate(1.08);
}

.auth-form button:not(.password-toggle):active {
    transform: translateY(0);
    filter: saturate(1.12) brightness(0.98);
}

.auth-form button:not(.password-toggle):disabled {
    cursor: not-allowed;
    opacity: 0.72;
    transform: none;
    box-shadow: 0 8px 18px rgba(30, 64, 175, 0.16);
}

.auth-submit-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.42);
    border-top-color: #ffffff;
    border-radius: 999px;
    animation: authSubmitSpin .8s linear infinite;
}

.auth-submit-button.is-loading .auth-submit-spinner {
    display: block;
}

.auth-form button.auth-submit-button.is-loading {
    cursor: wait;
}

@keyframes authSubmitSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 760px) {
    .account-panel {
        padding: 16px;
    }

    .account-auth-grid {
        grid-template-columns: 1fr;
    }

    .account-auth-aside,
    .auth-card {
        border-radius: 16px;
        padding: 18px;
    }

    .account-panel h2 {
        font-size: 2.05rem;
    }

    .auth-card-header h3 {
        font-size: 1.48rem;
    }

    .auth-field-grid {
        grid-template-columns: 1fr;
    }

    .auth-form button:not(.password-toggle),
    .auth-submit-button {
        justify-self: stretch;
        width: 100%;
        min-height: 52px;
        padding: 12px 16px;
        font-size: 1rem;
    }
}

@media (hover: none) {
    .auth-tab:hover {
        transform: none;
    }

    .auth-form button:not(.password-toggle):hover {
        transform: none;
        box-shadow: 0 10px 24px rgba(30, 64, 175, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.35);
        filter: none;
    }
}

.tos-field {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: flex-start;
    gap: 9px;
    margin: 0;
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.45;
}

.tos-field input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: #0f766e;
    cursor: pointer;
}

.tos-field span {
    min-width: 0;
}

.tos-field a {
    color: #1d4ed8;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.tos-field a:hover,
.tos-field a:focus-visible {
    color: #0f172a;
}

.auth-feedback {
    min-height: 1.4em;
    margin: 0;
    font-size: 1.06rem;
}

.auth-feedback.error {
    color: #b91c1c;
    font-weight: 600;
}

.auth-feedback.success {
    color: #166534;
}


.email-status {
    display: grid;
    gap: 18px;
}

.warehouse-panel {
    display: grid;
    gap: 14px;
    padding: clamp(16px, 1.8vw, 22px);
    border-radius: 18px;
    border: 1px solid rgba(20, 184, 166, 0.22);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.94));
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.09);
}

.warehouse-panel h1 {
    margin: 0;
}

.warehouse-panel-intro {
    margin: 6px 0 0;
    color: #334155;
    line-height: 1.55;
}

.module-hero,
.packages-hero,
.admin-hero,
.permissions-hero,
.profile-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: clamp(12px, 1.8vw, 22px);
    flex-wrap: wrap;
    padding: clamp(16px, 2vw, 24px);
    border-radius: 18px;
    border: 1px solid rgba(20, 184, 166, 0.24);
    background:
        linear-gradient(112deg, rgba(15, 23, 42, 0.96), rgba(15, 118, 110, 0.88) 58%, rgba(37, 99, 235, 0.78));
    color: #f8fafc;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.16);
}

.module-hero > div:first-child,
.packages-hero > div:first-child,
.admin-hero > div:first-child,
.permissions-hero > div:first-child,
.profile-page-header > div:first-child {
    display: grid;
    gap: 8px;
    max-width: 820px;
    min-width: min(100%, 280px);
}

.module-hero h1,
.packages-hero h1,
.admin-hero h1,
.permissions-hero h1,
.profile-page-header h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.65rem, 1.3rem + 1.25vw, 2.55rem);
    line-height: 1.02;
}

.module-hero .warehouse-panel-intro,
.packages-hero .warehouse-panel-intro,
.admin-hero .warehouse-panel-intro,
.permissions-hero .warehouse-panel-intro,
.profile-page-header p {
    color: rgba(241, 245, 249, 0.9);
}

.module-kicker {
    margin: 0;
    color: #a7f3d0;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.module-hero-detail {
    margin: 0;
    max-width: 68ch;
    color: rgba(241, 245, 249, 0.84);
    line-height: 1.52;
}

.module-hero-points {
    display: grid;
    gap: 8px;
    width: min(360px, 100%);
}

.module-hero-points span {
    display: block;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, 0.22);
    background: rgba(255, 255, 255, 0.1);
    color: #f8fafc;
    font-weight: 700;
    line-height: 1.36;
}

.module-support-text {
    margin: 0;
    padding: 10px 12px;
    border-left: 4px solid rgba(15, 118, 110, 0.72);
    border-radius: 14px;
    background: rgba(240, 253, 250, 0.78);
    color: #334155;
    line-height: 1.5;
}

.module-empty-cell {
    padding: 0 !important;
    background: rgba(248, 250, 252, 0.92);
}

.module-empty-state,
.admin-empty-state,
.article-edit-empty-state {
    display: grid;
    gap: 8px;
}

.module-empty-state {
    margin: 10px;
    padding: 14px;
    border-radius: 14px;
    border: 1px dashed rgba(20, 184, 166, 0.4);
    background:
        linear-gradient(135deg, rgba(240, 253, 250, 0.94), rgba(239, 246, 255, 0.9));
    color: #475569;
    text-align: left;
}

.module-empty-title {
    color: #0f172a;
    font-size: 1.02rem;
    line-height: 1.3;
}

.module-empty-text,
.module-empty-example {
    line-height: 1.58;
}

.module-empty-example {
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.72);
    color: #0f766e;
    font-weight: 700;
}

.profile-page-header .profile-admin-indicator {
    justify-self: start;
    margin-top: 2px;
    border: 1px solid rgba(226, 232, 240, 0.28);
    background: rgba(255, 255, 255, 0.12);
    color: #ecfeff;
}

.admin-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 760px) {
    .module-hero,
    .packages-hero,
    .admin-hero,
    .permissions-hero,
    .profile-page-header {
        display: grid;
        padding: 20px;
        border-radius: 18px;
    }

    .module-hero-points,
    .admin-quick-actions {
        width: 100%;
    }

    .admin-quick-actions,
    .module-hero-points .warehouse-create-trigger {
        display: grid;
        grid-template-columns: 1fr;
    }

    .module-hero-points .status-action-button {
        width: 100%;
    }
}

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

.admin-overview-card {
    padding: 18px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(248, 250, 252, 0.82);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.admin-overview-card h2 {
    margin: 0 0 8px;
    font-size: 1.08rem;
}

.admin-overview-card p {
    margin: 0;
    color: #475569;
}

.admin-overview-value {
    margin: 16px 0 0;
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}

.admin-overview-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.admin-summary-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.48rem 0.7rem;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.82);
    color: #334155;
    font-size: 0.83rem;
    font-weight: 700;
}

.admin-sections {
    display: grid;
    gap: 18px;
}

.admin-users-search {
    display: grid;
    grid-template-columns: auto minmax(180px, 1fr) auto auto;
    align-items: center;
    gap: 10px;
}

.admin-users-search label {
    font-weight: 700;
}

.admin-users-search input {
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #94a3b8;
    border-radius: 10px;
    background: #fff;
    color: #0f172a;
    font: inherit;
}

.admin-users-table {
    min-width: 760px;
}

.admin-users-table td > strong,
.admin-users-table td > span {
    display: block;
    overflow-wrap: anywhere;
}

.admin-users-table td .admin-badge {
    display: inline-flex;
    margin: 2px;
}

.admin-user-details {
    display: grid;
    gap: 18px;
}

#admin-user-dialog-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: min(85vh, calc(100vh - 32px));
    max-height: min(85dvh, calc(100dvh - 32px));
    overflow: hidden;
}

#admin-user-dialog-card > .warehouse-dialog-title,
#admin-user-dialog-card > .warehouse-dialog-actions {
    flex: 0 0 auto;
}

#admin-user-dialog-card > .warehouse-dialog-title {
    margin: 0;
    overflow-wrap: anywhere;
}

#admin-user-details {
    flex: 1 1 auto;
    min-height: 0;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.admin-user-details h3,
.admin-user-details p {
    margin: 0 0 8px;
}

.admin-user-details dd {
    overflow-wrap: anywhere;
}

.admin-user-details summary {
    cursor: pointer;
    font-weight: 700;
    padding-bottom: 10px;
}

.admin-user-sessions {
    min-width: 720px;
}

@media (max-width: 760px) {
    #admin-user-dialog-card {
        max-height: min(88vh, calc(100vh - 16px));
        max-height: min(88dvh, calc(100dvh - 16px));
        padding: 16px;
    }

    .admin-users-search {
        grid-template-columns: 1fr 1fr;
    }

    .admin-users-search label,
    .admin-users-search input {
        grid-column: 1 / -1;
    }
}

.admin-section-card {
    display: grid;
    gap: 16px;
    padding: 20px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(248, 250, 252, 0.82);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.admin-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.admin-section-header h2 {
    margin: 0 0 8px;
    font-size: 1.16rem;
}

.admin-section-header p {
    margin: 0;
    color: #475569;
}

.packages-grid,
.admin-resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.package-card,
.admin-resource-card {
    display: grid;
    gap: 14px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.9));
    box-shadow: 0 16px 26px rgba(15, 23, 42, 0.08);
}

.package-card.is-current,
.admin-resource-card.is-highlighted {
    border-color: rgba(37, 99, 235, 0.34);
    box-shadow: 0 18px 30px rgba(37, 99, 235, 0.12);
}

.package-card-head,
.admin-resource-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.package-card h2,
.admin-resource-title h3 {
    margin: 0;
    color: #0f172a;
    font-size: 1.08rem;
}

.package-card-eyebrow,
.admin-resource-subtitle {
    margin: 0 0 6px;
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0.32rem 0.72rem;
    border-radius: 999px;
    font-size: 0.77rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.admin-badge.is-current {
    background: rgba(37, 99, 235, 0.14);
    color: #1d4ed8;
}

.admin-badge.is-success {
    background: rgba(22, 163, 74, 0.14);
    color: #166534;
}

.admin-badge.is-danger {
    background: rgba(239, 68, 68, 0.14);
    color: #b91c1c;
}

.admin-badge.is-muted {
    background: rgba(148, 163, 184, 0.18);
    color: #475569;
}

.package-limit-grid,
.admin-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}

.package-limit-item,
.admin-metric {
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(248, 250, 252, 0.92);
}

.package-limit-item dt,
.admin-metric dt {
    margin: 0 0 6px;
    color: #64748b;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.package-limit-item dd,
.admin-metric dd {
    margin: 0;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 800;
}

.admin-server-storage-usage {
    grid-column: 1 / -1;
}

.admin-server-storage-usage meter {
    display: block;
    width: 100%;
    height: 0.625rem;
    margin-top: 8px;
    appearance: none;
    border: 0;
    border-radius: 999px;
    overflow: hidden;
    background: #e2e8f0;
}

.admin-server-storage-usage meter::-webkit-meter-bar {
    border: 0;
    background: #e2e8f0;
}

.admin-server-storage-usage meter::-webkit-meter-optimum-value {
    background: var(--btn-blue-end);
}

.admin-server-storage-usage meter::-moz-meter-bar {
    background: var(--btn-blue-end);
}

.admin-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-empty-state {
    padding: 18px;
    border-radius: 16px;
    border: 1px dashed rgba(14, 116, 144, 0.34);
    background:
        linear-gradient(135deg, rgba(240, 249, 255, 0.92), rgba(255, 255, 255, 0.9));
    color: #475569;
}

.admin-section-feedback {
    margin: 0;
}

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

.warehouse-dialog-card.is-wide {
    width: min(680px, 100%);
}

@media (max-width: 720px) {
    .package-limit-grid,
    .admin-metrics,
    .admin-form-grid {
        grid-template-columns: 1fr;
    }

    .admin-overview-value {
        font-size: 1.7rem;
    }

    .packages-grid,
    .admin-resource-grid {
        grid-template-columns: 1fr;
    }
}

.subscriptions-sections {
    display: grid;
    gap: 18px;
}

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

.subscriptions-summary-card {
    display: grid;
    gap: 12px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.88));
    box-shadow: 0 16px 26px rgba(15, 23, 42, 0.07);
}

.subscriptions-summary-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.subscriptions-summary-card h3 {
    margin: 0;
    color: #0f172a;
    font-size: 1.12rem;
}

.subscriptions-summary-meta {
    margin: 0;
    color: #475569;
    line-height: 1.45;
}

.subscriptions-invoice-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}

.subscriptions-inline-note {
    margin: 0;
}

.subscriptions-package-details {
    padding-top: 2px;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.subscriptions-package-details summary {
    padding: 10px 0 0;
    color: #1d4ed8;
    cursor: pointer;
    font-weight: 800;
}

.subscriptions-package-details[open] summary {
    margin-bottom: 12px;
}

.subscriptions-package-note {
    margin: 0;
    color: #92400e;
    font-size: 0.9rem;
    line-height: 1.45;
}

.package-order-dialog {
    width: min(720px, calc(100% - 32px));
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 24px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid rgba(148, 163, 184, 0.45);
    border-radius: 16px;
    color: var(--text-dark);
    background: #fff;
    box-shadow: 0 20px 42px rgba(2, 6, 23, 0.32);
}

.package-order-dialog:not([open]) {
    display: none;
}

.package-order-dialog::backdrop {
    background: rgba(15, 23, 42, 0.6);
}

.package-order-dialog .warehouse-dialog-form {
    gap: 16px;
}

.package-order-dialog h2,
.package-order-dialog h3,
.package-order-dialog p {
    margin: 0;
}

.package-order-intro,
.package-order-limits-note,
.package-order-net {
    color: #475569;
    line-height: 1.5;
}

.package-order-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    font-size: 0.9rem;
}

.package-order-legal a {
    color: #1d4ed8;
    text-decoration: underline;
}

.package-order-legal span {
    flex-basis: 100%;
    color: #475569;
}

.package-order-summary {
    display: grid;
    gap: 12px;
    padding: 18px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
}

.package-order-summary h3 {
    font-size: 1.35rem;
    overflow-wrap: anywhere;
}

.package-order-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 16px;
}

.package-order-features .package-limit-item {
    padding: 0;
    border: 0;
    background: transparent;
}

.package-order-features .package-limit-item dd {
    font-size: 1rem;
}

.package-order-limits-note {
    font-size: 0.85rem;
}

.package-order-effect,
.package-order-term,
.package-order-billing {
    font-weight: 650;
    line-height: 1.5;
}

.package-order-price-label {
    padding-top: 12px;
    border-top: 1px solid #cbd5e1;
    font-weight: 700;
}

.package-order-gross {
    color: #0f172a;
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    font-weight: 800;
}

.package-order-dialog .package-order-consent {
    font-weight: 400;
    line-height: 1.6;
}

.package-order-consent span {
    white-space: pre-line;
}

.package-order-consent input {
    flex-shrink: 0;
}

.package-order-actions {
    justify-content: flex-end;
}

@media (max-width: 480px) {
    .package-order-dialog {
        width: calc(100% - 16px);
        max-height: calc(100vh - 16px);
        max-height: calc(100dvh - 16px);
        padding: 16px;
    }

    .package-order-summary {
        padding: 12px;
    }

    .package-order-actions .status-action-button {
        width: 100%;
    }
}

.subscriptions-checkout-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(37, 99, 235, 0.22);
    background: linear-gradient(135deg, rgba(219, 234, 254, 0.82), rgba(255, 255, 255, 0.96));
}

.subscriptions-checkout-panel h3,
.subscriptions-checkout-panel p {
    margin: 0;
}

.subscriptions-checkout-panel p {
    color: #1e3a8a;
    line-height: 1.5;
}

.x-data-table.subscriptions-invoice-table {
    min-width: 1120px;
}

.subscriptions-invoice-number,
.subscriptions-invoice-price {
    font-weight: 700;
}

.subscriptions-invoice-period,
.subscriptions-invoice-date,
.subscriptions-invoice-price,
.subscriptions-invoice-status-cell {
    white-space: nowrap;
}

.subscriptions-invoice-body {
    display: grid;
    gap: 16px;
}

@media (max-width: 720px) {
    .subscriptions-summary-grid,
    .subscriptions-invoice-detail-grid {
        grid-template-columns: 1fr;
    }

    .subscriptions-checkout-panel {
        align-items: flex-start;
    }
}

.warehouse-list {
    margin: 0;
    padding-left: 20px;
    display: grid;
    gap: 8px;
}

.x-table-shell {
    display: grid;
    gap: 8px;
}

.x-table-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    padding: 1px 1px 0;
}

.x-table-clear-all {
    order: 1;
    padding: 5px 10px;
    font-size: 0.82rem;
}

.x-table-reset-button {
    order: 2;
    margin-left: 0;
}

.x-table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    padding: 1px 1px 0;
}

.x-table-pagination-summary {
    margin: 0;
    color: #475569;
    font-size: 0.82rem;
}

.x-table-pagination-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
    margin-left: auto;
}

.x-table-page-size-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #475569;
    font-size: 0.82rem;
}

.x-table-page-size-select {
    min-width: 78px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    border-radius: 8px;
    padding: 5px 8px;
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
}

.x-table-pagination-status {
    min-width: 64px;
    text-align: center;
    color: #334155;
    font-size: 0.82rem;
}

.x-table-pagination-button {
    min-width: 80px;
}

.x-table-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(248, 250, 252, 0.78);
}

.x-data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1120px;
    table-layout: fixed;
}

.warehouse-table {
    min-width: 420px;
}

.x-data-table tbody tr.warehouse-row-current {
    background: rgba(59, 130, 246, 0.08);
}

.x-data-table tbody tr.warehouse-row-current:hover {
    background: rgba(59, 130, 246, 0.14);
}

.warehouse-name-cell {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.warehouse-name-text {
    font-weight: 600;
    color: #0f172a;
}

.warehouse-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
}

.warehouse-badge.is-current {
    background: rgba(37, 99, 235, 0.14);
    color: #1d4ed8;
}

.warehouse-badge.is-external {
    background: rgba(249, 115, 22, 0.14);
    color: #c2410c;
}

.warehouse-action-cell {
    width: 1%;
    white-space: nowrap;
}

.x-data-table thead th {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 245, 249, 0.88));
    color: #0f172a;
    border-bottom: 1px solid rgba(148, 163, 184, 0.45);
    padding: 5px 6px;
    text-align: left;
    font-size: 0.82rem;
    white-space: nowrap;
}



.x-data-table thead th {
    position: relative;
}

.x-table-layout-header {
    padding: 0 14px 0 0;
}

.x-table-header-inner {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    padding: 5px 0 5px 7px;
}

.x-table-header-label-wrap {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
}

.x-table-header-label-wrap > * {
    min-width: 0;
}

.x-table-sort-button {
    border: none;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 650;
    display: block;
    width: 100%;
    max-width: 100%;
    text-align: left;
    padding: 0;
    margin: 0;
    cursor: pointer;
    white-space: inherit;
    overflow-wrap: anywhere;
}

.x-table-sort-button:hover,
.x-table-sort-button:focus-visible {
    color: #1d4ed8;
    outline: none;
}

.x-table-column-drag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 12px;
    height: auto;
    padding: 0;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.04em;
    cursor: grab;
    user-select: none;
    opacity: 0.8;
}

.x-table-layout-header:hover .x-table-column-drag,
.x-table-column-drag:hover {
    color: #0f172a;
    opacity: 1;
}

.x-data-table.is-column-drag-active .x-table-column-drag {
    cursor: grabbing;
}

.x-table-layout-header.x-table-column-dragging {
    opacity: 0.72;
}

.x-table-layout-header.x-table-column-drop-before::before,
.x-table-layout-header.x-table-column-drop-after::after {
    content: '';
    position: absolute;
    top: 4px;
    bottom: 4px;
    width: 3px;
    border-radius: 999px;
    background: #0f766e;
}

.x-table-layout-header.x-table-column-drop-before::before {
    left: -2px;
}

.x-table-layout-header.x-table-column-drop-after::after {
    right: -2px;
}

.x-table-col-resize {
    position: absolute;
    top: 0;
    right: 0;
    width: 8px;
    height: 100%;
    cursor: col-resize;
    border-right: 1px solid rgba(148, 163, 184, 0.55);
}

.x-table-col-resize:hover,
.x-table-col-resize:focus-visible {
    border-right-color: #3b82f6;
    box-shadow: 1px 0 0 #3b82f6;
    outline: none;
}

.x-data-table tbody td {
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    padding: 5px 6px;
    color: #1e293b;
    font-size: 0.84rem;
    vertical-align: middle;
}

.x-data-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.66);
}

.x-data-table tbody tr:hover {
    background: rgba(186, 230, 253, 0.25);
}

.x-table-filter-cell {
    padding: 5px 6px;
}

.x-table-filter-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
}

.x-table-filter-input {
    width: 100%;
    min-width: 62px;
    border: 1px solid rgba(148, 163, 184, 0.55);
    border-radius: 7px;
    padding: 4px 6px;
    font-size: 0.76rem;
    background: rgba(255, 255, 255, 0.94);
    color: #0f172a;
}

.x-table-filter-input:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.72);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

.x-table-filter-clear {
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: rgba(255, 255, 255, 0.9);
    color: #334155;
    border-radius: 7px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1;
}

.x-table-filter-clear:hover,
.x-table-filter-clear:focus-visible {
    background: rgba(226, 232, 240, 0.95);
    color: #0f172a;
}

.warehouse-create-trigger {
    justify-self: start;
    margin-bottom: 0;
}

.warehouse-dialog {
    position: fixed;
    inset: 0;
    z-index: 13000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.warehouse-dialog[hidden] {
    display: none;
}

.warehouse-dialog-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
}

.warehouse-dialog-card {
    position: relative;
    width: min(520px, 100%);
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 20px 42px rgba(2, 6, 23, 0.32);
    padding: 20px;
}

.warehouse-dialog-title {
    margin-top: 0;
    margin-bottom: 12px;
}

.warehouse-dialog-form {
    display: grid;
    gap: 10px;
}

.warehouse-dialog-form input[type="text"],
.warehouse-dialog-form input[type="email"],
.warehouse-dialog-form input[type="password"],
.warehouse-dialog-form input[type="number"],
.warehouse-dialog-form input[type="date"],
.warehouse-dialog-form input[type="time"],
.warehouse-dialog-form input[type="datetime-local"],
.warehouse-dialog-form textarea,
.warehouse-dialog-form select {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.5);
    border-radius: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text-dark);
}

.warehouse-dialog-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 700;
    color: #0f172a;
}

.warehouse-dialog-checkbox input[type="checkbox"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    accent-color: #0f766e;
}

.warehouse-dialog-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.x-confirm-dialog-card {
    width: min(440px, 100%);
}

.x-confirm-dialog-message {
    margin: 0 0 16px;
    color: #334155;
    line-height: 1.5;
}

.x-confirm-dialog-actions {
    justify-content: flex-end;
}

.warehouse-dialog-feedback {
    min-height: 1.4em;
    margin: 0;
}

.warehouse-dialog-feedback.error {
    color: #b91c1c;
    font-weight: 600;
}

.warehouse-dialog-feedback.success {
    color: #166534;
    font-weight: 600;
}

.permissions-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.permissions-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.permissions-card {
    padding: 18px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(248, 250, 252, 0.82);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.permissions-card h2 {
    margin: 0 0 8px;
    font-size: 1.08rem;
}

.permissions-card-intro {
    margin: 0 0 14px;
    color: #475569;
}

.permissions-rights-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 12px;
    margin: 0;
}

.permissions-rights-list dt {
    font-weight: 700;
    color: #0f172a;
}

.permissions-rights-list dd {
    margin: 0;
}

.permissions-management-note {
    margin: 0 0 18px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(241, 245, 249, 0.9);
    color: #334155;
}

.permissions-management-note.info {
    background: rgba(219, 234, 254, 0.6);
    color: #1e3a8a;
}

.permissions-management-note.error {
    background: rgba(254, 226, 226, 0.82);
    color: #991b1b;
}

.permissions-bool-badge,
.permissions-owner-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}

.permissions-bool-badge.is-true {
    background: rgba(22, 163, 74, 0.16);
    color: #166534;
}

.permissions-bool-badge.is-false {
    background: rgba(148, 163, 184, 0.18);
    color: #334155;
}

.permissions-owner-badge {
    background: rgba(249, 115, 22, 0.16);
    color: #9a3412;
}

.permissions-checkbox-cell {
    text-align: center;
    vertical-align: middle;
}

.permissions-checkbox {
    width: 18px;
    height: 18px;
    accent-color: #0f766e;
}

.permissions-table {
    min-width: 1380px;
    table-layout: fixed;
}

.permissions-table thead th {
    white-space: normal;
    vertical-align: bottom;
}

.permissions-header-label {
    display: block;
    line-height: 1.25;
}

.permissions-header-cell-owner,
.permissions-header-cell-permission,
.permissions-header-cell-actions {
    text-align: center;
}

.permissions-header-cell-id,
.permissions-text-cell-id {
    min-width: 56px;
}

.permissions-header-cell-user_id,
.permissions-text-cell-user_id {
    min-width: 84px;
}

.permissions-header-cell-email,
.permissions-text-cell-email {
    min-width: 220px;
}

.permissions-header-cell-forename,
.permissions-text-cell-forename,
.permissions-header-cell-surname,
.permissions-text-cell-surname {
    min-width: 130px;
}

.permissions-header-cell-owner,
.permissions-badge-cell {
    min-width: 92px;
}

.permissions-header-cell-permission,
.permissions-permission-cell {
    min-width: 88px;
}

.permissions-header-cell-actions,
.permissions-action-cell {
    min-width: 126px;
}

.permissions-text-cell {
    vertical-align: top;
    overflow-wrap: anywhere;
}

.permissions-badge-cell,
.permissions-permission-cell,
.permissions-action-cell {
    text-align: center;
    vertical-align: middle;
}

.permissions-row-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
}

.permissions-row-actions .status-action-button {
    padding: 8px 12px;
    font-size: 0.9rem;
}

.permissions-row-actions .permissions-owner-badge {
    align-self: center;
}

.x-data-table tbody tr.permissions-owner-row {
    background: rgba(249, 115, 22, 0.06);
}

.x-data-table tbody tr.permissions-owner-row:hover {
    background: rgba(249, 115, 22, 0.11);
}

@media (max-width: 760px) {
    .permissions-rights-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1100px) {
    .permissions-table {
        min-width: 1220px;
    }
}

body.is-modal-open,
body.is-articles-loading {
    overflow: hidden;
}

.article-edit-form {
    display: grid;
    gap: 24px;
}

.article-edit-grid {
    display: grid;
    grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.article-detail-layout {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    margin-bottom: 18px;
}

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

.article-details-top-actions {
    align-items: center;
    justify-content: flex-start;
}

.article-details-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(340px, 460px);
    gap: 24px;
    align-content: start;
    align-items: start;
}

.article-details-main-column {
    display: grid;
    gap: 24px;
    align-content: start;
}

.article-details-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.article-details-metric-card {
    display: grid;
    gap: 8px;
    padding: 18px 20px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(255, 255, 255, 0.9);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.78),
        0 10px 24px rgba(15, 23, 42, 0.05);
}

.article-details-metric-label {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #475569;
}

.article-details-metric-value {
    font-size: 1.2rem;
    color: #0f172a;
    overflow-wrap: anywhere;
}

.article-details-eyebrow {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0369a1;
}

.article-details-name-heading {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.55rem);
    line-height: 1.05;
    color: #0f172a;
}

.article-details-hero-text {
    margin: 0;
    max-width: 62ch;
    color: #334155;
    line-height: 1.6;
}

.article-edit-card {
    display: grid;
    gap: 14px;
    padding: 24px;
    border: 1px solid rgba(148, 163, 184, 0.26);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.94));
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.06);
}

.article-edit-card h2 {
    margin: 0;
}

.article-edit-card p {
    margin: 0;
    color: #475569;
    line-height: 1.6;
}

.article-edit-card label,
.article-storage-form label {
    font-weight: 700;
    color: #0f172a;
}

.article-edit-master-card {
    position: sticky;
    top: 24px;
    background:
        radial-gradient(circle at top right, rgba(191, 219, 254, 0.7), transparent 36%),
        linear-gradient(160deg, rgba(239, 246, 255, 0.98), rgba(255, 255, 255, 0.98));
}

.article-details-master-card {
    position: relative;
    gap: 18px;
}

.article-edit-characteristics-card,
.article-details-media-card,
.article-details-characteristics-card,
.article-details-inventory-card,
.article-details-movement-card,
.article-edit-images-card {
    align-content: start;
}

.article-edit-form input[type="text"],
.article-edit-form input[type="number"],
.article-edit-form input[type="date"],
.article-edit-form input[type="time"],
.article-edit-form input[type="datetime-local"],
.article-edit-form input[type="file"],
.article-edit-form textarea {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.42);
    border-radius: 12px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.98);
    color: var(--text-dark);
    min-height: 48px;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.article-edit-form input[type="text"]:focus,
.article-edit-form input[type="number"]:focus,
.article-edit-form input[type="date"]:focus,
.article-edit-form input[type="time"]:focus,
.article-edit-form input[type="datetime-local"]:focus,
.article-edit-form input[type="file"]:focus,
.article-edit-form textarea:focus,
.warehouse-dialog-form input[type="text"]:focus,
.warehouse-dialog-form input[type="email"]:focus,
.warehouse-dialog-form input[type="password"]:focus,
.warehouse-dialog-form input[type="number"]:focus,
.warehouse-dialog-form input[type="date"]:focus,
.warehouse-dialog-form input[type="time"]:focus,
.warehouse-dialog-form input[type="datetime-local"]:focus,
.warehouse-dialog-form textarea:focus,
.warehouse-dialog-form select:focus {
    outline: none;
    border-color: rgba(37, 99, 235, 0.58);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.article-edit-form input[readonly] {
    background: rgba(241, 245, 249, 0.9);
    color: #475569;
}

.article-edit-section-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 18px;
    flex-wrap: wrap;
}

.article-edit-section-header h2 {
    font-size: 1.18rem;
}

.article-edit-empty-state {
    padding: 18px;
    border: 1px dashed rgba(148, 163, 184, 0.56);
    border-radius: 16px;
    color: #475569;
    background: rgba(255, 255, 255, 0.72);
    line-height: 1.6;
}

.article-edit-remove-button {
    padding: 8px 14px;
    font-size: 0.92rem;
}

.article-edit-existing-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    color: #334155;
    font-size: 0.9rem;
    font-weight: 600;
}

.article-edit-value-input {
    width: 100%;
}

.article-edit-textarea-field {
    min-height: 128px;
    resize: vertical;
    line-height: 1.5;
}

.article-edit-images-card {
    grid-column: 1 / -1;
}

.article-edit-image-upload {
    display: grid;
    gap: 12px;
    padding: 20px;
    border: 1px dashed rgba(14, 116, 144, 0.24);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(240, 249, 255, 0.9), rgba(255, 255, 255, 0.96));
}

.article-edit-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 180px));
    justify-content: start;
    gap: 16px;
}

.article-edit-image-card {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.06);
}

.article-edit-image-card.is-main {
    border-color: rgba(14, 116, 144, 0.5);
    box-shadow: 0 0 0 1px rgba(14, 116, 144, 0.18), 0 16px 32px rgba(14, 116, 144, 0.12);
}

.article-edit-image-preview-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(226, 232, 240, 0.7), rgba(248, 250, 252, 0.95));
}

.article-edit-image-preview {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.article-edit-image-preview-placeholder {
    padding: 16px;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: center;
}

.article-edit-image-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.92);
    color: #f8fafc;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.article-edit-image-main-choice {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1e293b;
    font-weight: 600;
}

.article-edit-image-main-choice input[type="radio"] {
    margin: 0;
    accent-color: #0f766e;
}

.article-edit-image-actions {
    margin-top: auto;
}

.article-edit-image-delete-button {
    width: 100%;
    justify-content: center;
}

.article-edit-image-feedback {
    margin: 0;
}

.article-characteristic-value-display {
    white-space: pre-wrap;
}

.article-storage-form {
    align-content: start;
    gap: 12px;
}

.article-storage-hint {
    margin: -2px 0 2px;
    color: #475569;
    font-size: 0.93rem;
    line-height: 1.5;
}

.article-details-placeholder {
    display: grid;
    gap: 8px;
    padding: 18px;
    border-radius: 14px;
    border: 1px dashed rgba(14, 116, 144, 0.34);
    background:
        linear-gradient(135deg, rgba(240, 249, 255, 0.92), rgba(255, 255, 255, 0.9));
}

.article-details-placeholder strong {
    color: #0f172a;
}

.article-details-placeholder p {
    margin: 0;
    color: #475569;
    line-height: 1.6;
}

.article-table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.article-table-action {
    padding: 5px 8px;
    font-size: 0.8rem;
}

.x-data-table .status-action-button {
    padding: 5px 8px;
    font-size: 0.8rem;
}

.article-list-toolbar {
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.article-list-summary {
    margin: 0;
    color: #475569;
    font-size: 0.88rem;
}

.article-list-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.article-list-page-size-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    font-size: 0.88rem;
}

.article-list-page-size-select {
    min-width: 80px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    border-radius: 10px;
    padding: 7px 10px;
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
    font-size: 0.86rem;
}

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

.article-list-page-status {
    min-width: 90px;
    text-align: center;
    color: #334155;
    font-size: 0.88rem;
}

.characteristics-sort-header,
.characteristics-drag-cell {
    width: 54px;
    min-width: 54px;
    text-align: center;
}

.characteristics-drag-handle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    min-height: 32px;
    border-radius: 10px;
    border: 1px dashed rgba(14, 116, 144, 0.45);
    background: rgba(240, 249, 255, 0.88);
    color: #0f172a;
    font-weight: 800;
    letter-spacing: 0.08em;
    cursor: grab;
}

.characteristics-drag-handle:active {
    cursor: grabbing;
}

.characteristics-overview-cell {
    text-align: center;
}

.characteristics-action-cell {
    text-align: center;
}

.characteristics-row-actions {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
}

.characteristics-row-actions .status-action-button {
    flex: 1 1 0;
    min-width: 0;
}

.characteristics-overview-toggle {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #0f766e;
}

.characteristics-table-row {
    transition: background-color 0.18s ease, box-shadow 0.18s ease;
}

.characteristics-table-row.is-dragging {
    opacity: 0.62;
}

.characteristics-table-row.is-drop-target {
    background: rgba(186, 230, 253, 0.42);
    box-shadow: inset 0 0 0 1px rgba(14, 116, 144, 0.24);
}

.article-list-table {
    min-width: 760px;
}

.article-list-image-cell {
    width: 54px;
    min-width: 54px;
}

.articles-table-overlay {
    position: fixed;
    inset: 0;
    z-index: 16000;
    display: grid;
    place-items: center;
    padding: clamp(18px, 3vw, 40px);
    background:
        radial-gradient(circle at 14% 18%, rgba(37, 99, 235, 0.18), transparent 28%),
        radial-gradient(circle at 82% 14%, rgba(15, 118, 110, 0.14), transparent 24%),
        linear-gradient(180deg, rgba(248, 250, 252, 0.92), rgba(226, 232, 240, 0.97));
    backdrop-filter: blur(14px) saturate(1.08);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 220ms ease, visibility 220ms ease;
}

.articles-table-overlay::before {
    content: '';
    position: absolute;
    inset: 8% 14%;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(191, 219, 254, 0.58), rgba(186, 230, 253, 0.18), transparent 70%);
    filter: blur(54px);
    animation: articles-loading-backdrop-shift 8s ease-in-out infinite;
}

.articles-table-overlay.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.articles-loading-card {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    display: grid;
    justify-items: center;
    gap: 16px;
    padding: clamp(28px, 5vw, 42px);
    border: 1px solid rgba(148, 163, 184, 0.34);
    border-radius: 32px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 245, 249, 0.94)),
        linear-gradient(135deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0));
    box-shadow:
        0 36px 90px rgba(15, 23, 42, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    text-align: center;
    animation: articles-loading-card-float 2.8s ease-in-out infinite;
}

.articles-loading-visual {
    position: relative;
    width: clamp(168px, 18vw, 220px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    margin-bottom: 4px;
    filter: drop-shadow(0 22px 32px rgba(37, 99, 235, 0.16));
}

.articles-loading-visual::before {
    content: '';
    position: absolute;
    inset: 20px 16px 24px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(219, 234, 254, 0.95), rgba(191, 219, 254, 0.36), transparent 72%);
    animation: articles-loading-glow 1.9s ease-in-out infinite;
}

.articles-loading-orbit {
    position: absolute;
    inset: 0;
}

.articles-loading-orbit::before,
.articles-loading-orbit::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
}

.articles-loading-orbit::before {
    inset: 12px;
    border: 4px solid rgba(59, 130, 246, 0.16);
    border-top-color: rgba(29, 78, 216, 0.96);
    border-right-color: rgba(37, 99, 235, 0.72);
    animation: articles-loading-spin 1.05s linear infinite;
}

.articles-loading-orbit::after {
    inset: 24px;
    border: 1px dashed rgba(15, 118, 110, 0.42);
    animation: articles-loading-spin-reverse 2.8s linear infinite;
}

.articles-loading-hedgehog {
    position: relative;
    z-index: 1;
    width: clamp(140px, 15vw, 180px);
    height: auto;
    user-select: none;
    -webkit-user-drag: none;
    transform-origin: center bottom;
    animation: articles-loading-hedgehog-bob 2.4s ease-in-out infinite;
}

.articles-loading-title {
    color: #0f172a;
    font-size: clamp(1.08rem, 1rem + 0.35vw, 1.28rem);
    letter-spacing: 0.01em;
    line-height: 1.3;
}

.articles-loading-text {
    margin: 0;
    max-width: 32ch;
    color: #475569;
    line-height: 1.6;
    font-size: 0.97rem;
}

.articles-loading-dots {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.articles-loading-dots span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb, #0f766e);
    opacity: 0.3;
    animation: articles-loading-dot 1.2s ease-in-out infinite;
}

.articles-loading-dots span:nth-child(2) {
    animation-delay: 0.15s;
}

.articles-loading-dots span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes articles-loading-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes articles-loading-spin-reverse {
    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0deg);
    }
}

@keyframes articles-loading-backdrop-shift {
    0%,
    100% {
        transform: translate3d(-1%, 0, 0) scale(0.96);
        opacity: 0.8;
    }

    50% {
        transform: translate3d(1%, 1%, 0) scale(1.04);
        opacity: 1;
    }
}

@keyframes articles-loading-card-float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

@keyframes articles-loading-hedgehog-bob {
    0%,
    100% {
        transform: translateY(0) rotate(-1.5deg);
    }

    50% {
        transform: translateY(-5px) rotate(1.5deg);
    }
}

@keyframes articles-loading-glow {
    0%,
    100% {
        transform: scale(0.94);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.04);
        opacity: 1;
    }
}

@keyframes articles-loading-dot {
    0%,
    80%,
    100% {
        transform: translateY(0);
        opacity: 0.3;
    }

    40% {
        transform: translateY(-5px);
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .articles-table-overlay,
    .articles-table-overlay::before,
    .articles-loading-card,
    .articles-loading-visual::before,
    .articles-loading-orbit::before,
    .articles-loading-orbit::after,
    .articles-loading-hedgehog,
    .articles-loading-dots span {
        animation: none;
        transition: none;
    }
}

.article-list-image-button {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(226, 232, 240, 0.78), rgba(255, 255, 255, 0.96));
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.article-list-image-button.is-thumbnail-error {
    cursor: default;
}

.article-list-image-fallback {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 6px;
    color: #64748b;
    font-size: 0.66rem;
    line-height: 1.25;
    text-align: center;
    background: rgba(248, 250, 252, 0.86);
}

.article-list-image-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    opacity: 0;
    transition: opacity 0.18s ease;
}

.article-list-image-thumbnail.is-loaded {
    opacity: 1;
}

.article-list-image-placeholder {
    width: 40px;
    min-height: 40px;
    display: grid;
    place-items: center;
    padding: 6px;
    border-radius: 10px;
    border: 1px dashed rgba(148, 163, 184, 0.55);
    background: rgba(248, 250, 252, 0.88);
    color: #64748b;
    font-size: 0.66rem;
    line-height: 1.25;
    text-align: center;
}

.article-list-characteristic-cell {
    min-width: 130px;
    white-space: pre-wrap;
}

.article-details-media-card {
    gap: 18px;
    background:
        radial-gradient(circle at top right, rgba(191, 219, 254, 0.7), transparent 34%),
        linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
    align-self: start;
}

.article-details-featured-image-button {
    position: relative;
    width: 100%;
    min-height: 320px;
    aspect-ratio: 4 / 3;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(226, 232, 240, 0.78), rgba(255, 255, 255, 0.98));
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.09);
}

.article-details-featured-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.article-details-featured-badge {
    top: 16px;
    left: 16px;
}

.article-details-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
    gap: 12px;
    max-height: none;
    overflow: visible;
    padding-right: 0;
    align-content: start;
}

.article-details-gallery-item {
    display: block;
    width: 100%;
    padding: 0;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.article-details-gallery-item.is-featured {
    border-color: rgba(14, 116, 144, 0.45);
    box-shadow: 0 0 0 1px rgba(14, 116, 144, 0.14), 0 14px 28px rgba(14, 116, 144, 0.1);
}

.article-details-gallery-media {
    width: 100%;
    aspect-ratio: 4 / 3;
    display: grid;
    place-items: center;
    padding: 8px;
    background: linear-gradient(135deg, rgba(226, 232, 240, 0.58), rgba(248, 250, 252, 0.94));
}

.article-details-gallery-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 10px;
}

.article-details-gallery-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    padding: 12px;
    color: #64748b;
    font-size: 0.82rem;
    line-height: 1.4;
    text-align: center;
}

.article-media-button {
    appearance: none;
    border: none;
    padding: 0;
    background: none;
    cursor: zoom-in;
    text-align: left;
    transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}

.article-media-button:hover,
.article-media-button:focus-visible {
    transform: translateY(-2px);
    filter: saturate(1.04);
    outline: none;
}

.article-details-gallery-item.article-media-button {
    display: block;
    width: 100%;
    padding: 0;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
}

.article-edit-actions {
    padding-top: 6px;
}

.article-storage-dialog-card {
    width: min(620px, 100%);
}

.storage-articles-dialog-card {
    width: min(880px, 100%);
}

.article-storage-dialog-intro {
    margin: 0 0 14px;
    color: #475569;
    line-height: 1.6;
}

.storage-articles-dialog-intro {
    margin: 0 0 14px;
    color: #475569;
    line-height: 1.6;
}

.article-storage-dialog-actions {
    justify-content: flex-start;
}

.article-details-panel > .status-actions,
.article-edit-actions {
    padding-top: 4px;
}

.article-lightbox {
    position: fixed;
    inset: 0;
    z-index: 14000;
    display: grid;
    place-items: center;
    padding: clamp(16px, 4vw, 36px);
}

.article-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.86);
    backdrop-filter: blur(10px);
}

.article-lightbox-dialog {
    position: relative;
    z-index: 1;
    width: min(80vw, 1320px);
    max-width: 100%;
    padding: 18px;
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.26);
    background: rgba(15, 23, 42, 0.3);
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.5);
}

.article-lightbox-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.75);
    color: #f8fafc;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.article-lightbox-figure {
    margin: 0;
    display: grid;
    gap: 14px;
}

.article-lightbox-image {
    width: 100%;
    max-height: calc(80vh - 108px);
    object-fit: contain;
    display: block;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.34);
}

.article-lightbox-caption {
    color: #e2e8f0;
    text-align: center;
    font-size: 0.98rem;
    line-height: 1.5;
}

@media (max-width: 930px) {
    .article-edit-grid {
        grid-template-columns: 1fr;
    }

    .article-details-layout {
        grid-template-columns: 1fr;
    }

    .article-details-metrics {
        grid-template-columns: 1fr;
    }

    .article-edit-master-card {
        position: static;
    }
}

@media (max-width: 640px) {
    .article-edit-card {
        padding: 20px;
    }

    .article-list-pagination {
        align-items: stretch;
    }

    .article-list-page-size-wrap,
    .article-list-pagination-controls {
        width: 100%;
        justify-content: space-between;
    }

    .article-edit-image-grid {
        grid-template-columns: 1fr;
    }

    .article-lightbox-dialog {
        width: min(92vw, 1320px);
        padding: 14px;
    }

    .article-lightbox-image {
        max-height: calc(80vh - 96px);
    }
}
.status-box {
    border: 1px solid rgba(148, 163, 184, 0.4);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.98rem;
    line-height: 1.38;
}

.status-box.success {
    border-color: rgba(34, 197, 94, 0.55);
    background: rgba(220, 252, 231, 0.8);
    color: #166534;
}

.status-box.error {
    border-color: rgba(239, 68, 68, 0.55);
    background: rgba(254, 226, 226, 0.8);
    color: #b91c1c;
}

.status-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.status-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--btn-blue-border);
    border-radius: 12px;
    background: linear-gradient(140deg, var(--btn-blue-start), var(--btn-blue-end));
    color: #f8fafc;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-decoration: none;
    padding: 8px 14px;
    box-shadow: 0 10px 24px rgba(30, 64, 175, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    transition: transform .2s ease, box-shadow .25s ease, border-color .25s ease, filter .25s ease, background .25s ease;
    cursor: pointer;
    touch-action: manipulation;
}

.status-action-button:hover,
.status-action-button:focus-visible {
    transform: translateY(-2px) scale(1.01);
    border-color: rgba(59, 130, 246, 0.95);
    box-shadow: 0 14px 30px rgba(30, 64, 175, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.38);
    outline: none;
    filter: saturate(1.08);
}

.status-action-button:active {
    transform: translateY(0);
    filter: saturate(1.12) brightness(0.98);
}


.status-action-button:disabled {
    cursor: wait;
    opacity: 0.68;
    transform: none;
    box-shadow: none;
}

.status-action-button.is-loading {
    position: relative;
}
.status-action-button.secondary {
    border-color: var(--btn-blue-border);
    background: linear-gradient(140deg, var(--btn-blue-start), var(--btn-blue-end));
    box-shadow: 0 10px 24px rgba(30, 64, 175, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.status-action-button.danger {
    border-color: var(--btn-red-border);
    background: linear-gradient(140deg, var(--btn-red-start), var(--btn-red-end));
    box-shadow: 0 10px 24px rgba(185, 28, 28, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.status-action-button.danger:hover,
.status-action-button.danger:focus-visible {
    border-color: rgba(220, 38, 38, 0.92);
    box-shadow: 0 14px 30px rgba(185, 28, 28, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.global-infobox-close-button {
    border: 1px solid var(--btn-blue-border);
    background: linear-gradient(140deg, rgba(147, 197, 253, 0.4), rgba(37, 99, 235, 0.35));
    transition: transform .2s ease, box-shadow .25s ease, border-color .25s ease, filter .25s ease;
}

.global-infobox-close-button:hover,
.global-infobox-close-button:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(59, 130, 246, 0.95);
    box-shadow: 0 10px 20px rgba(30, 64, 175, 0.22);
}


.global-infobox {
    position: fixed;
    left: 50%;
    top: 24px;
    transform: translateX(-50%);
    width: min(900px, calc(100vw - 24px));
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 22px;
    padding: 24px 26px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.2);
    z-index: 12000;
    animation: globalInfoboxIn .28s ease-out;
}

.global-infobox[hidden] {
    display: none;
}

.global-infobox.info,
.global-infobox.success {
    border-color: rgba(34, 197, 94, 0.5);
    background: linear-gradient(135deg, rgba(220, 252, 231, 0.95), rgba(255, 255, 255, 0.97));
}

.global-infobox.error {
    border-color: rgba(239, 68, 68, 0.5);
    background: linear-gradient(135deg, rgba(254, 226, 226, 0.95), rgba(255, 255, 255, 0.97));
}

.global-infobox-image {
    width: 108px;
    height: auto;
    max-width: clamp(82px, 14vw, 120px);
    aspect-ratio: 1 / 1;
    object-fit: contain;
    object-position: center;
    align-self: center;
}

.global-infobox-content {
    min-width: 0;
}

.global-infobox-title-text {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #0f172a;
}

.global-infobox-message-text {
    margin: 8px 0 0;
    font-size: 1.14rem;
    color: #1e293b;
}

.global-infobox-close-button {
    border: 1px solid rgba(148, 163, 184, 0.55);
    background: rgba(255, 255, 255, 0.82);
    color: #0f172a;
    border-radius: 12px;
    width: 40px;
    height: 40px;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

@keyframes globalInfoboxIn {
    from {
        opacity: 0;
        transform: translate(-50%, -10px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

#api-debug-panel {
    position: fixed;
    right: 14px;
    bottom: 14px;
    width: min(420px, calc(100vw - 28px));
    max-height: 48vh;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.28);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.94);
    color: #e2e8f0;
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.45);
    z-index: 9999;
    font-size: 12px;
}

#api-debug-panel[data-collapsed='1'] .api-debug-list {
    display: none;
}

#api-debug-panel header {
    padding: 8px;
}

#api-debug-toggle {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: rgba(51, 65, 85, 0.7);
    color: #e2e8f0;
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
    text-align: left;
}

.api-debug-list {
    max-height: calc(48vh - 50px);
    overflow: auto;
    padding: 8px;
    display: grid;
    gap: 8px;
}

.api-debug-entry {
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 8px;
    padding: 8px;
    background: rgba(30, 41, 59, 0.6);
}

.api-debug-meta {
    color: #93c5fd;
    margin-bottom: 4px;
}

.api-debug-line {
    margin: 2px 0;
    white-space: pre-wrap;
    word-break: break-word;
}

.api-debug-empty {
    margin: 0;
    color: #cbd5e1;
}


@media (max-width: 640px) {
    .global-infobox {
        grid-template-columns: auto 1fr;
        row-gap: 12px;
        padding: 18px 18px;
    }

    .global-infobox-close-button {
        grid-column: 1 / -1;
        justify-self: end;
    }

    .global-infobox-image {
        width: 88px;
    }
}

@media (max-width: 760px) {
    .status-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .status-actions > * {
        width: 100%;
    }

    .x-table-toolbar,
    .x-table-footer,
    .x-table-pagination-controls,
    .x-table-page-size-wrap {
        width: 100%;
    }

    .x-table-footer {
        align-items: stretch;
    }

    .x-table-pagination-controls,
    .x-table-page-size-wrap {
        justify-content: space-between;
        margin-left: 0;
    }

    .x-table-pagination-button {
        flex: 1 1 0;
        min-width: 0;
    }

    .x-table-pagination-status {
        flex: 0 0 auto;
        min-width: 58px;
    }

    .warehouse-dialog {
        align-items: flex-end;
        padding: 0;
    }

    .warehouse-dialog-card,
    .warehouse-dialog-card.is-wide,
    .article-storage-dialog-card,
    .storage-articles-dialog-card {
        width: 100%;
        max-height: min(88vh, 100%);
        border-radius: 24px 24px 0 0;
        overflow-y: auto;
    }

    .global-infobox {
        top: 12px;
        width: calc(100vw - 16px);
    }
}

@media (max-width: 640px) {
    .menu {
        grid-template-columns: 1fr;
    }

    .content-inner {
        padding: 12px;
    }

    .footer {
        padding: 12px 12px 18px;
    }

    .footer-links {
        gap: 10px;
    }

    .welcome-hero {
        gap: 18px;
        padding: 22px;
        border-radius: 18px;
        background:
            linear-gradient(96deg, rgba(15, 23, 42, 0.96) 0%, rgba(15, 118, 110, 0.78) 64%, rgba(15, 118, 110, 0.34) 100%),
            url("../images/hedgehog_welcome.png") right 10px bottom 0 / auto min(54%, 240px) no-repeat,
            linear-gradient(140deg, #0f172a, #0f766e);
    }

    .welcome-copy h1 {
        font-size: clamp(2.2rem, 14vw, 3.4rem);
    }

    .welcome-copy .welcome-lead {
        max-width: 100%;
    }

    .welcome-actions,
    .welcome-actions > *,
    .welcome-cta > .status-action-button {
        width: 100%;
    }

    .welcome-product,
    .welcome-workflow,
    .welcome-cta {
        padding: 18px;
        border-radius: 18px;
    }

    .welcome-cta {
        grid-template-columns: 1fr;
    }

    .welcome-mockup-row,
    .welcome-mockup-row.is-article,
    .welcome-mockup-row.is-storage {
        grid-template-columns: 1fr;
    }

    .welcome-mockup-row {
        gap: 6px;
    }

    .welcome-mockup-row.is-header {
        display: none;
    }

    .x-table-scroll {
        border-radius: 12px;
    }

    .x-data-table {
        min-width: max(100%, 720px);
    }

    .global-infobox {
        left: 8px;
        right: 8px;
        width: auto;
        transform: none;
        grid-template-columns: 1fr auto;
        gap: 14px;
        padding: 16px;
    }

    .global-infobox-image {
        display: none;
    }

    .global-infobox-close-button {
        grid-column: auto;
        justify-self: center;
    }

    #api-debug-panel {
        right: 8px;
        bottom: 8px;
        left: 8px;
        width: auto;
    }
}

@media (min-width: 1280px) {
    .content-inner {
        padding: clamp(18px, 1.8vw, 28px);
    }

    .footer {
        padding-inline: clamp(18px, 1.8vw, 28px);
    }
}
