/* Hobis visual refinement. Shared by the portal, administration and sign-in. */
@font-face {
    font-family: "Hobis Grotesk";
    src: url("../../assets/velzon/fonts/hkgrotesk-regular.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: "Hobis Grotesk";
    src: url("../../assets/velzon/fonts/hkgrotesk-medium.woff2") format("woff2");
    font-weight: 500 600;
    font-display: swap;
}
@font-face {
    font-family: "Hobis Grotesk";
    src: url("../../assets/velzon/fonts/hkgrotesk-bold.woff2") format("woff2");
    font-weight: 700 900;
    font-display: swap;
}
:root, [data-bs-theme="light"] {
    --admin-bg: #f5f4f1;
    --admin-surface-alt: #f7f7f5;
    --admin-surface-hover: #efefec;
    --admin-text: #242a2e;
    --admin-text-muted: #697176;
    --admin-text-nav: #535d63;
    --admin-border: #e3e4e0;
    --admin-border-strong: #cbd0cd;
    --admin-ink: #20292e;
    --admin-font: "Hobis Grotesk", "Segoe UI", sans-serif;
    --admin-fs-xl: 1.875rem;
    --admin-fs-3xl: 2rem;
    --admin-lh-normal: 1.55;
    --admin-radius: 9px;
    --admin-radius-md: 11px;
    --admin-radius-lg: 16px;
    --admin-radius-xl: 20px;
    --admin-content-pad: clamp(1rem, 2.4vw, 2.25rem);
    --admin-shadow-sm: 0 2px 3px #20292e03, 0 6px 20px #20292e05;
    --admin-shadow-md: 0 8px 28px #20292e0d;
    --admin-shadow-lg: 0 18px 60px #20292e24;
    --admin-transition: 180ms ease;
}
body { -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6, input, button, select, textarea { font-family: var(--admin-font); }
::selection { background: #fbd8dd; color: #242a2e; }
.admin-app :focus-visible, .admin-auth :focus-visible {
    outline: 2px solid var(--admin-primary);
    outline-offset: 3px;
}
#page-topbar { box-shadow: 0 2px 14px #20292e05; }
.portal-logo { width: 40px; height: 40px; font-size: 20px; border-radius: 11px 11px 11px 3px; }
.portal-brand-text { font-size: 21px; font-weight: 700; letter-spacing: -.7px; }
#page-topbar .app-search .form-control { background: var(--admin-surface-alt); border: 1px solid var(--admin-border); border-radius: 10px; }
#page-topbar .admin-icon-btn { border-color: transparent; background: var(--admin-surface-alt); }
#page-topbar .admin-icon-btn:hover { background: var(--admin-primary-soft); color: var(--admin-primary); }
#page-topbar .admin-user-trigger { border-color: transparent; padding: 6px 10px; }
.portal-avatar { width: 34px; height: 34px; background: #eaf0ed; color: #34574a; }
[data-layout="horizontal"] .navbar-menu {
    background: var(--admin-surface);
    border-bottom: 1px solid var(--admin-border);
    box-shadow: none;
}
[data-layout="horizontal"] .navbar-menu .navbar-nav .nav-link.menu-link {
    color: var(--admin-text-nav);
    border: 1px solid transparent;
    border-radius: 9px;
    box-shadow: none;
    transition: color 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
[data-layout="horizontal"] .navbar-menu .navbar-nav .nav-link.menu-link:hover {
    color: var(--admin-text);
    background: rgba(26, 26, 26, 0.05);
}
[data-layout="horizontal"] .navbar-menu .navbar-nav .nav-link.menu-link.active {
    color: var(--admin-text) !important;
    background: var(--admin-surface);
    border-color: var(--admin-border);
    box-shadow: var(--admin-shadow-xs);
    font-weight: 600;
}
[data-layout="horizontal"] .navbar-menu .navbar-nav .nav-link.menu-link.active i {
    color: var(--admin-primary);
}
[data-layout="horizontal"] .navbar-menu .navbar-nav .nav-link.menu-link:focus-visible {
    outline: 2px solid var(--admin-primary);
    outline-offset: 2px;
}
@media (min-width: 1024.1px) {
    [data-layout="horizontal"] .navbar-menu .navbar-nav {
        gap: 2px;
        padding: 4px;
    }
    [data-layout="horizontal"] .navbar-menu .navbar-nav .nav-link.menu-link {
        min-height: 36px;
        padding: 0 11px;
        gap: 7px;
        font-size: var(--admin-fs-sm);
        line-height: 1.2;
    }
    [data-layout="horizontal"] .navbar-menu .navbar-nav .nav-link.menu-link i {
        font-size: 16px;
        color: #8a8a94;
    }
}
@media (min-width: 1440px) {
    [data-layout="horizontal"] .navbar-menu .navbar-nav .nav-link.menu-link {
        flex-direction: row;
        gap: 8px;
        font-size: var(--admin-fs-sm);
    }
}
.portal-rail { background: #fcfcfa; padding-top: 12px; }
.portal-rail-title { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.portal-rail-sub { padding-top: 6px; padding-bottom: 18px; }
.portal-rail-nav { gap: 4px; }
.portal-rail a { padding-top: 10px; padding-bottom: 10px; }
.portal-rail a.active { background: #fbecef; box-shadow: inset 3px 0 var(--admin-primary); }
.portal-rail-hint { background: #f1f3ef; border: 0; border-radius: 12px; padding: 16px; margin-top: 20px; }
.page-head, .admin-page-header { align-items: center; margin-bottom: 24px; }
.page-title, .admin-page-title, .catalog-title { letter-spacing: -.035em; font-weight: 700; }
.page-sub, .catalog-sub { margin-top: 7px; }
.dashboard-eyebrow { margin-bottom: 9px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--admin-text-muted); }
.page-content .card, .kpi, .proj-panel, .pcard, .proj-card {
    border-color: var(--admin-border);
    box-shadow: var(--admin-shadow-sm);
    border-radius: var(--admin-radius-lg);
}
.page-content .card-header { background: transparent; padding: 20px 24px; border-bottom-color: var(--admin-border); }
.page-content .card-title, .proj-panel-head h2 { font-size: 16px; letter-spacing: -.015em; }
.kpi { position: relative; padding: 24px; overflow: hidden; }
.kpi::after { content: ""; position: absolute; top: 24px; right: 22px; width: 8px; height: 8px; border-radius: 50%; background: #bcc8c1; }
.kpi:has(.kpi-accent)::after { background: var(--admin-primary); }
.kpi:has(.kpi-green)::after { background: var(--admin-success); }
.kpi-label { padding-right: 16px; font-weight: 500; color: var(--admin-text-muted); }
.kpi-value { margin: 12px 0 8px; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.kpi-hint { font-size: 12px; }
.admin-toolbar, .catalog-filters { padding: 16px; border-radius: 13px; box-shadow: var(--admin-shadow-xs); }
.page-content .btn { min-height: 38px; font-weight: 600; }
.page-content .btn-sm { min-height: 30px; }
.page-content .btn-primary { box-shadow: 0 3px 8px #e2001a1a; }
.page-content .form-control, .page-content .form-select, .admin-auth .form-control {
    border-color: var(--admin-border-strong); border-radius: var(--admin-radius-md); min-height: var(--admin-control-h);
}
.page-content .form-control:focus, .page-content .form-select:focus, .admin-auth .form-control:focus {
    border-color: var(--admin-primary); box-shadow: var(--admin-focus-ring);
}
.page-content .form-label { font-weight: 600; color: var(--admin-text-nav); }
/* Native selects retain form validation, labels and keyboard interaction. */
.admin-app .form-control:not(textarea):not(.form-control-sm),
.admin-app input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="image"]):not(.form-control-sm),
.admin-app select:not([multiple]):not([size]):not(.form-select-sm):not(.dt-input) {
    box-sizing: border-box;
    height: var(--admin-control-h);
    min-height: var(--admin-control-h);
    font-size: var(--admin-fs-md);
    line-height: 1.25;
    border-radius: var(--admin-radius-md);
}
.admin-app .form-control:not(textarea):not(.form-control-sm),
.admin-app input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="image"]):not(.form-control-sm) {
    padding: 0 0.75rem;
}
/*
 * Filter search must match form-select-sm (12px). The general .admin-app input:not(...)
 * rule has (0,9,1) specificity from its :not() chain, so the override must match or beat it.
 */
.admin-app .catalog-filters-search input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="image"]),
.admin-app .admin-toolbar .catalog-filters-search input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="image"]),
.workspace-app .catalog-filters-search input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="image"]),
.workspace-app .admin-toolbar .catalog-filters-search input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="image"]) {
    box-sizing: border-box;
    height: 100%;
    min-height: 0;
    font-size: 12px;
    line-height: 1.25;
    padding: 0;
    border-radius: 0;
}
.admin-app .input-group {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
}
.admin-app .input-group > .form-control:not(textarea):not(.form-control-sm),
.admin-app .input-group > .btn:not(.btn-sm),
.admin-app .input-group > .input-group-text {
    box-sizing: border-box;
    height: var(--admin-control-h);
    min-height: var(--admin-control-h);
}
.admin-app .input-group > .btn:not(.btn-sm) {
    padding-top: 0;
    padding-bottom: 0;
    border-color: var(--admin-border-strong);
}
.admin-app .input-group > .form-control:not(textarea):not(.form-control-sm):first-child,
.admin-app .input-group > input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="image"]):not(.form-control-sm):first-child,
.admin-app .input-group > .btn:not(.btn-sm):first-child,
.admin-app .input-group > .input-group-text:first-child {
    border-top-left-radius: var(--admin-radius-md);
    border-bottom-left-radius: var(--admin-radius-md);
}
.admin-app .input-group > .form-control:not(textarea):not(.form-control-sm):last-child,
.admin-app .input-group > input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="image"]):not(.form-control-sm):last-child,
.admin-app .input-group > .btn:not(.btn-sm):last-child,
.admin-app .input-group > .input-group-text:last-child {
    border-top-right-radius: var(--admin-radius-md);
    border-bottom-right-radius: var(--admin-radius-md);
}
.admin-app .input-group > .form-control:not(textarea):not(.form-control-sm):not(:last-child),
.admin-app .input-group > input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="image"]):not(.form-control-sm):not(:last-child),
.admin-app .input-group > .btn:not(.btn-sm):not(:last-child),
.admin-app .input-group > .input-group-text:not(:last-child) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}
.admin-app .input-group > .form-control:not(textarea):not(.form-control-sm):not(:first-child),
.admin-app .input-group > input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="image"]):not(.form-control-sm):not(:first-child),
.admin-app .input-group > .btn:not(.btn-sm):not(:first-child),
.admin-app .input-group > .input-group-text:not(:first-child) {
    margin-left: -1px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}
.admin-app select:not([multiple]):not([size]):not(.form-select-sm):not(.dt-input) {
    border: 1px solid var(--admin-border-strong);
    background-color: #fff;
    color: var(--admin-text);
    font: inherit;
    font-size: var(--admin-fs-md);
    padding-block: 0;
    padding-inline: 0.75rem 2.25rem;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}
/* Kill Velzon/Bootstrap chevron so form + filter selects share one arrow. */
.admin-app select.form-select:not([multiple]):not([size]),
.admin-app select:not([multiple]):not([size]):not(.dt-input) {
    --vz-form-select-bg-img: none;
    --bs-form-select-bg-img: none;
    background-image: none;
}
.admin-app input[type="date"],
.admin-app input[type="datetime-local"],
.admin-app input[type="time"],
.admin-app input[type="month"],
.admin-app input[type="week"] {
    appearance: none;
    -webkit-appearance: none;
}
.admin-app select:hover:not(:disabled) { border-color: #9ca8a4; }
.admin-app .page-content select:focus,
.admin-app .page-content select:focus-visible {
    outline: none;
    border-color: #dc7383;
    box-shadow: 0 0 0 3px #e2001a0d;
}
.admin-app select:disabled { background-color: #f3f4f2; color: #828b8f; cursor: not-allowed; }
.admin-app select.is-invalid { border-color: var(--admin-danger); }
.admin-app select[multiple] {
    background-image: none;
    padding: 6px;
    min-height: 148px;
}
.admin-app select[multiple] option {
    padding: 10px 12px;
    margin: 3px 0;
    border-radius: 7px;
}
.admin-app select[multiple] option:checked {
    background: linear-gradient(#fff0f2, #fff0f2);
    color: #b81730;
    font-weight: 600;
}
.admin-app select option:disabled { color: #90989b; }
/* Supporting browsers render the popup as a stylable native top-layer picker.
   Other browsers keep their standard accessible dropdown. */
@supports (appearance: base-select) {
    .admin-app select:not([multiple]):not([size]),
    .admin-app select:not([multiple]):not([size])::picker(select) {
        appearance: base-select;
    }
    .admin-app select:not([multiple]):not([size]),
    .admin-app select:not([multiple]):not([size]):not(.form-select-sm),
    .admin-app select.form-select:not([multiple]):not([size]),
    .admin-app select.form-select-sm:not([multiple]):not([size]) {
        position: relative;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        align-items: center;
        --vz-form-select-bg-img: none;
        --bs-form-select-bg-img: none;
        background-image: none !important;
        padding-block: 0 !important;
        padding-inline: 0.75rem 2rem !important;
        gap: 0;
    }
    .admin-app select:not([multiple]):not([size]):not(.form-select-sm):not(.dt-input) {
        height: var(--admin-control-h);
        min-height: var(--admin-control-h);
    }
    .admin-app select.form-select-sm:not([multiple]):not([size]) {
        height: var(--admin-control-h-sm);
        min-height: var(--admin-control-h-sm);
        font-size: var(--admin-fs-xs);
        padding-inline: 0.65rem 1.75rem !important;
    }
    .admin-app select::picker-icon {
        content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%237b858a' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E");
        position: absolute;
        top: 0;
        bottom: 0;
        right: 0.75rem;
        width: 12px;
        height: 12px;
        margin-block: auto;
        margin-inline: 0;
        padding: 0;
        color: #7b858a;
        translate: none;
        transition: rotate 180ms ease;
    }
    .admin-app select.form-select-sm::picker-icon {
        right: 0.65rem;
        width: 11px;
        height: 11px;
    }
    .admin-app select:open::picker-icon { rotate: 180deg; }
    .admin-app select::picker(select) {
        background: #fff;
        color: var(--admin-text);
        border: 1px solid #e4e7e3;
        border-radius: 12px;
        padding: 6px;
        margin-block: 6px;
        box-shadow: 0 8px 32px #20292e1a, 0 2px 6px #20292e08;
        max-height: min(320px, 60dvh);
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: #cbd0cd transparent;
    }
    .admin-app select:not([multiple]) option {
        min-height: 40px;
        padding: 10px 12px;
        border-radius: 7px;
        gap: 10px;
        font-weight: 400;
    }
    .admin-app select:not([multiple]) option:hover,
    .admin-app select:not([multiple]) option:focus {
        outline: none;
        background: #f2f4f1;
    }
    .admin-app select:not([multiple]) option:checked {
        background: #fff0f2;
        color: #b81730;
        font-weight: 600;
    }
    .admin-app select option::checkmark { color: var(--admin-primary); order: 1; margin-left: auto; }
    .admin-app select.admin-select-sheet::picker(select) {
        width: min(36rem, calc(100vw - 2rem));
        min-width: min(20rem, calc(100vw - 2rem));
        max-width: min(36rem, calc(100vw - 2rem));
        padding: 0 0 6px;
        overflow-x: hidden;
    }
    .admin-app select.admin-select-sheet option > .sel-div {
        display: none;
    }
    .admin-app select.admin-select-sheet selectedcontent {
        display: block;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .admin-app select.admin-select-sheet selectedcontent .sel-div {
        display: inline;
        color: var(--admin-text-muted);
        font-weight: 400;
    }
    .admin-app select.admin-select-sheet selectedcontent .sel-col {
        display: inline;
        max-width: none;
        overflow: visible;
        font-size: inherit;
        color: inherit;
        font-weight: inherit;
    }
    .admin-app select.admin-select-sheet option {
        display: grid;
        grid-template-columns: var(--sel-grid) auto;
        align-items: center;
        column-gap: 0.75rem;
        width: 100%;
        max-width: 100%;
        min-height: 38px;
        padding: 8px 14px;
        overflow: hidden;
        border-radius: 0;
        font-weight: 400;
        box-sizing: border-box;
    }
    .admin-app select.admin-select-sheet option.sel-placeholder {
        display: flex;
        color: var(--admin-text-muted);
        font-weight: 400;
    }
    .admin-app select.admin-select-sheet option.sel-head {
        position: sticky;
        top: 0;
        z-index: 2;
        min-height: 30px;
        padding-top: 9px;
        padding-bottom: 8px;
        background: #fff;
        color: #7b858a;
        font-size: 10px;
        font-weight: 600;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        box-shadow: 0 1px 0 var(--admin-border);
        pointer-events: none;
    }
    .admin-app select.admin-select-sheet option.sel-head:hover,
    .admin-app select.admin-select-sheet option.sel-head:checked {
        background: #fff;
        color: #7b858a;
        font-weight: 600;
    }
    .admin-app select.admin-select-sheet option.sel-head::checkmark {
        display: none;
    }
    .admin-app select.admin-select-sheet option:not(.sel-head):not(.sel-placeholder):hover,
    .admin-app select.admin-select-sheet option:not(.sel-head):not(.sel-placeholder):focus {
        background: #f6f7f4;
    }
    .admin-app select.admin-select-sheet option:not(.sel-head):checked {
        background: #fff0f2;
        color: inherit;
        font-weight: 400;
    }
    .admin-app select.admin-select-sheet option::checkmark {
        order: 8;
        margin-left: 0;
        justify-self: end;
    }
    .admin-app select.admin-select-sheet .sel-col {
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .admin-app select.admin-select-sheet .sel-col--primary {
        max-width: 34ch;
        color: var(--admin-text);
        font-weight: 500;
    }
    .admin-app select.admin-select-sheet selectedcontent .sel-col--primary {
        max-width: 100%;
    }
    .admin-app select.admin-select-sheet option:checked .sel-col--primary {
        font-weight: 600;
    }
    .admin-app select.admin-select-sheet .sel-col--meta {
        color: #697176;
        font-size: 12px;
        font-weight: 400;
    }
    .admin-app select.admin-select-sheet .sel-col--num {
        max-width: 11ch;
        font-variant-numeric: tabular-nums;
        letter-spacing: 0.01em;
    }
    .admin-app select optgroup { color: #697176; font-size: 12px; font-weight: 600; }
    .admin-app select optgroup option { font-size: 14px; }
    .admin-app .dt-length select.dt-input:not([multiple]):not([size]) {
        height: 1.5rem;
        min-height: 1.5rem;
        padding: 0 0.4rem !important;
        gap: var(--admin-space-1);
        font-size: var(--admin-fs-xs);
        color: var(--admin-text-muted);
        border-radius: var(--admin-radius-sm);
    }
    .admin-app .dt-length select.dt-input::picker-icon {
        right: 0.35rem;
        width: 10px;
        height: 10px;
    }
}
@supports not (appearance: base-select) {
    .admin-app select:not([multiple]):not([size]),
    .admin-app select.form-select:not([multiple]):not([size]) {
        appearance: none;
        -webkit-appearance: none;
        --vz-form-select-bg-img: none;
        --bs-form-select-bg-img: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%237b858a' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E") !important;
        background-repeat: no-repeat !important;
        background-position: right 0.75rem center !important;
        background-size: 12px 12px !important;
        padding-inline: 0.75rem 2.25rem !important;
    }
    .admin-app select.form-select-sm:not([multiple]):not([size]) {
        padding-inline: 0.65rem 2rem !important;
        background-position: right 0.65rem center !important;
        background-size: 11px 11px !important;
    }
}
.page-content .table { --vz-table-hover-bg: #f7f8f5; --bs-table-hover-bg: #f7f8f5; }
.page-content .table > thead > tr > th { background: #f7f8f5; color: #697176; font-size: 11px; letter-spacing: .045em; padding-top: 14px; padding-bottom: 14px; }
.page-content .table > tbody > tr > td { padding-top: 15px; padding-bottom: 15px; border-color: #eceeea; }
.page-content .table td { font-variant-numeric: tabular-nums; }
.pcard { transition: box-shadow 180ms ease, border-color 180ms ease, transform 180ms ease; }
.pcard:hover { transform: translateY(-3px); border-color: #cbd0cd; box-shadow: var(--admin-shadow-md); }
.pcard-media, .pd-main, .pq-media { background: #f7f7f4; }
.pcard-name { font-weight: 700; letter-spacing: -.02em; }
.pcard:focus-within .pcard-quick-btn { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.pd-title { letter-spacing: -.04em; }
.pd-pricebox { background: #f3f5f1; border-color: #e0e6df; border-radius: 14px; }
.proj-hero { border-radius: 16px; border-color: var(--admin-border); background: #fff; box-shadow: var(--admin-shadow-sm); }
.proj-panel-head { padding-top: 18px; padding-bottom: 18px; }
.proj-card-title { letter-spacing: -.02em; }
.proj-pill { font-weight: 600; padding: 5px 10px; }
.proj-empty, .portal-drawer-empty { padding: 40px 24px; color: var(--admin-text-muted); }
.chart-tabs { padding: 4px; background: var(--admin-surface-alt); border-radius: 9px; }
.chart-tabs button { border-radius: 6px; }
.chart-tabs button.is-active { background: #fff; color: var(--admin-text); box-shadow: var(--admin-shadow-xs); }
.portal-banner { border-radius: 12px; }
.dropdown-menu { border: 1px solid var(--admin-border); border-radius: 12px; box-shadow: var(--admin-shadow-lg); padding: 7px; }
.dropdown-item { border-radius: 6px; }
.modal-content { border-radius: 18px; box-shadow: var(--admin-shadow-lg); }
.portal-drawer-head { background: var(--admin-surface-alt); padding: 22px; }
.portal-drawer-foot { background: var(--admin-surface-alt); }
.portal-footer { font-size: var(--admin-fs-sm); }
.admin-auth {
    min-width: 320px;
    background: var(--admin-bg);
    color: var(--admin-text);
}
.admin-auth__page {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: var(--admin-bg);
    isolation: isolate;
}
.admin-auth__scene {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}
.admin-auth__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(32, 41, 46, .055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(32, 41, 46, .055) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: linear-gradient(135deg, #000 0%, rgba(0, 0, 0, .68) 48%, transparent 84%);
}
.admin-auth__geometry {
    position: absolute;
    top: max(-155px, -12vw);
    right: max(-60px, -4vw);
    width: min(35vw, 500px);
    aspect-ratio: 1;
    animation: admin-auth-float 12s ease-in-out infinite alternate;
}
.admin-auth__geometry::before,
.admin-auth__geometry::after {
    position: absolute;
    inset: 0;
    border-radius: 28%;
    content: "";
    transform: rotate(18deg);
}
.admin-auth__geometry::before {
    background: var(--admin-auth-accent);
}
.admin-auth__geometry::after {
    background: var(--admin-primary);
    opacity: .92;
    transform: translate(clamp(-115px, -8vw, -74px), clamp(90px, 10vw, 145px)) rotate(18deg) scale(.78);
}
.admin-auth__monogram {
    position: absolute;
    bottom: -.18em;
    left: -.04em;
    color: var(--admin-ink);
    font-size: clamp(12rem, 24vw, 23rem);
    font-weight: var(--admin-fw-bold);
    line-height: .8;
    opacity: .055;
    user-select: none;
}
.admin-auth__brand {
    position: absolute;
    top: var(--admin-space-8);
    left: var(--admin-space-8);
    z-index: 2;
}
.admin-auth__brand-link {
    display: inline-flex;
    align-items: center;
    gap: var(--admin-space-3);
    color: var(--admin-text);
    text-decoration: none;
}
.admin-auth__brand-link:hover {
    color: var(--admin-text);
}
.admin-auth .portal-logo {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: var(--admin-radius-lg) var(--admin-radius-lg) var(--admin-radius-lg) var(--admin-radius-sm);
    background: var(--admin-primary);
    color: var(--admin-text-inverse);
    box-shadow: var(--admin-shadow-md);
    font-size: var(--admin-fs-lg);
    font-weight: var(--admin-fw-bold);
}
.admin-auth .portal-brand-copy {
    flex: 0 0 auto;
    min-width: max-content;
}
.admin-auth .portal-brand-tag {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.28rem;
    white-space: nowrap;
}
.admin-auth__content {
    display: flex;
    min-height: 100vh;
    align-items: center;
    padding: 108px var(--admin-space-6) 84px;
}
.admin-auth__container,
.admin-auth__form-row {
    width: 100%;
}
.admin-auth__panel {
    padding: 34px;
    border: 1px solid var(--admin-border);
    border-radius: 20px;
    background: var(--admin-surface);
    box-shadow: var(--admin-shadow-lg);
    animation: admin-auth-panel-in 420ms cubic-bezier(.2, .7, .2, 1) both;
}
.admin-auth__panel-head {
    margin-bottom: var(--admin-space-6);
}
.admin-auth__eyebrow {
    display: block;
    margin-bottom: var(--admin-space-2);
    color: var(--admin-primary);
    font-size: var(--admin-fs-xs);
    font-weight: var(--admin-fw-bold);
    letter-spacing: .1em;
    text-transform: uppercase;
}
.admin-auth__panel h1 {
    margin: 0 0 var(--admin-space-2);
    color: var(--admin-text);
    font-size: 28px;
    font-weight: var(--admin-fw-bold);
    letter-spacing: -.035em;
}
.admin-auth__panel-head p {
    margin: 0;
    color: var(--admin-text-muted);
    font-size: var(--admin-fs-sm);
}
.admin-auth__form {
    display: grid;
    gap: var(--admin-space-4);
}
.admin-auth__field .form-label {
    margin-bottom: 6px;
}
.admin-auth__field .form-control {
    min-height: 44px;
    background: var(--admin-surface);
}
.admin-auth__field .form-control:focus {
    border-color: var(--admin-primary);
    box-shadow: var(--admin-focus-ring);
}
.admin-auth .password-addon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    color: var(--admin-text-muted);
}
.admin-auth .password-addon:hover,
.admin-auth .password-addon:focus-visible {
    color: var(--admin-primary);
}
.admin-auth__alert {
    margin: 0;
}
.admin-auth__submit {
    min-height: 44px;
    margin-top: var(--admin-space-1);
    border-radius: var(--admin-radius);
    font-weight: var(--admin-fw-bold);
}
.admin-auth__footer,
.admin-auth .footer {
    position: absolute;
    inset: auto 0 0 0;
    left: 0 !important;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 56px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--admin-text-muted);
    font-size: var(--admin-fs-xs);
    text-align: center;
}
.admin-auth__footer .container,
.admin-auth__footer p {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
    text-align: center;
}
@keyframes admin-auth-float {
    from { transform: translate3d(0, 0, 0) rotate(0); }
    to { transform: translate3d(-8px, 10px, 0) rotate(1.5deg); }
}
@keyframes admin-auth-panel-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 767.98px) {
    .admin-auth__grid {
        background-size: 24px 24px;
        opacity: .7;
    }
    .admin-auth__geometry {
        top: -70px;
        right: -55px;
        width: 230px;
        opacity: .88;
    }
    .admin-auth__geometry::after {
        transform: translate(-58px, 72px) rotate(18deg) scale(.72);
    }
    .admin-auth__monogram {
        display: none;
    }
    .admin-auth__brand {
        top: var(--admin-space-5);
        left: var(--admin-space-5);
    }
    .admin-auth .portal-logo {
        width: 42px;
        height: 42px;
    }
    .admin-auth__content {
        padding: 102px var(--admin-space-3) 72px;
    }
    .admin-auth__panel {
        padding: var(--admin-space-6);
        border-radius: var(--admin-radius-lg);
    }
    .admin-auth__panel h1 {
        font-size: 25px;
    }
    .admin-auth__footer,
    .admin-auth .footer {
        height: 48px;
    }
}
@media (max-height: 680px) and (min-width: 768px) {
    .admin-auth__brand {
        top: var(--admin-space-5);
        left: var(--admin-space-5);
    }
    .admin-auth__content {
        padding-top: 92px;
        padding-bottom: 60px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .admin-auth__geometry,
    .admin-auth__panel {
        animation: none;
    }
}
@media (max-width: 991.98px) {
    .portal-rail { padding-top: 4px; }
    .portal-rail-hint, .portal-rail-sub { display: none; }
    .portal-rail-nav { flex-wrap: nowrap; overflow-x: auto; padding: 10px 12px; }
    .portal-rail-nav a { flex-shrink: 0; }
    .page-title, .admin-page-title { font-size: 25px; }
    .kpi { padding: 20px; }
}
@media (max-width: 575.98px) {
    .page-head { gap: 14px; margin-bottom: 20px; }
    .admin-toolbar, .catalog-filters { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
    .pcard:hover { transform: none; }
}
