@font-face {
    font-family: 'Maven Pro';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/maven-pro-latin.woff2') format('woff2');
}

:root {
    --ink: #0b0b0b;
    --muted: #6b7280;
    --soft: #9ca3af;
    --line: rgba(11, 11, 11, .09);
    --line-strong: rgba(11, 11, 11, .16);
    --bg: #f5f5f2;
    --card: #ffffff;
    --green: #1b7f4b;
    --green-bg: #e9f6ee;
    --amber: #9a5b0b;
    --amber-bg: #fdf3e5;
    --red: #a52a22;
    --red-bg: #fdecea;
    --blue: #1e4e8c;
    --blue-bg: #eaf1fb;
    --radius: 14px;
    --sidebar: 252px;
    --font: 'Maven Pro', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--muted);
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

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

button {
    cursor: pointer;
}

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

h1, h2, h3, h4, p {
    margin: 0;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

table {
    border-collapse: collapse;
    width: 100%;
}

:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Shell
   -------------------------------------------------------------------------- */

.admin-body {
    min-height: 100vh;
}

.admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 60;
    display: flex;
    flex-direction: column;
    width: var(--sidebar);
    background: var(--ink);
    color: #a8a8a4;
    overflow-y: auto;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 22px 20px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
}

.admin-brand img {
    width: 68px;
    height: auto;
    object-fit: contain;
}

.admin-brand-name {
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .2em;
    line-height: 1.3;
    text-transform: uppercase;
}

.admin-brand-name small {
    display: block;
    margin-top: 2px;
    color: #7d7d78;
    font-size: 9px;
    font-weight: 400;
    letter-spacing: .28em;
}

.admin-nav {
    padding: 18px 12px 24px;
}

.admin-nav-group + .admin-nav-group {
    margin-top: 22px;
}

.admin-nav-title {
    padding: 0 12px 8px;
    color: #63635f;
    font-size: 9px;
    letter-spacing: .24em;
    text-transform: uppercase;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 9px;
    color: #a8a8a4;
    font-size: 13px;
    transition: background-color .15s ease, color .15s ease;
}

.admin-nav-link svg {
    width: 17px;
    height: 17px;
    flex: none;
    opacity: .8;
}

.admin-nav-link:hover {
    background: rgba(255, 255, 255, .07);
    color: #fff;
}

.admin-nav-link.is-active {
    background: rgba(255, 255, 255, .1);
    color: #fff;
}

.admin-nav-link .nav-count {
    margin-left: auto;
    min-width: 20px;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 9px;
    line-height: 18px;
    text-align: center;
}

.admin-sidebar-foot {
    margin-top: auto;
    padding: 14px;
    border-top: 1px solid rgba(255, 255, 255, .09);
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 6px 12px;
}

.admin-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font-size: 11px;
    font-weight: 600;
    flex: none;
}

.admin-user-name {
    color: #fff;
    font-size: 12px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-user-email {
    color: #757570;
    font-size: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-logout {
    width: 100%;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
    background: transparent;
    color: #cfcfcb;
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    transition: background-color .15s ease, color .15s ease;
}

.admin-logout:hover {
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.admin-main {
    min-height: 100vh;
    margin-left: var(--sidebar);
    display: flex;
    flex-direction: column;
}

.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 14px;
    height: 62px;
    padding: 0 28px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(12px);
}

.admin-mobile-toggle {
    display: none;
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
}

.admin-crumbs {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: var(--soft);
}

.admin-crumbs a:hover {
    color: var(--ink);
}

.admin-crumbs span {
    color: var(--ink);
}

.admin-topbar-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-topbar-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font-size: 11px;
    letter-spacing: .02em;
}

.admin-topbar-link:hover {
    border-color: var(--line-strong);
    background: #fafaf8;
}

.admin-content {
    flex: 1;
    padding: 28px 28px 56px;
}

.admin-page-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.admin-page-head h1 {
    color: var(--ink);
    font-size: 25px;
    font-weight: 500;
    letter-spacing: -.02em;
    line-height: 1.2;
}

.admin-page-head p {
    margin-top: 5px;
    color: var(--soft);
    font-size: 12px;
}

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

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.abtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 36px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: var(--ink);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .02em;
    white-space: nowrap;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}

.abtn:hover {
    background: #2a2a2a;
}

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

.abtn svg {
    width: 15px;
    height: 15px;
}

.abtn-outline {
    background: #fff;
    border-color: var(--line-strong);
    color: var(--ink);
}

.abtn-outline:hover {
    background: #f7f7f4;
}

.abtn-ghost {
    background: transparent;
    color: var(--muted);
    border-color: transparent;
    padding-inline: 8px;
}

.abtn-ghost:hover {
    background: #f1f1ed;
    color: var(--ink);
}

.abtn-danger {
    background: #fff;
    border-color: #e8c9c6;
    color: var(--red);
}

.abtn-danger:hover {
    background: var(--red-bg);
}

.abtn-sm {
    height: 30px;
    padding: 0 10px;
    font-size: 11px;
    border-radius: 7px;
}

.abtn-lg {
    height: 44px;
    padding: 0 20px;
    font-size: 13px;
}

.abtn-block {
    width: 100%;
}

/* --------------------------------------------------------------------------
   Cards & stats
   -------------------------------------------------------------------------- */

.card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    overflow: hidden;
}

.card-pad {
    padding: 22px;
}

.card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
}

.card-head h2 {
    color: var(--ink);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .04em;
}

.card-head p {
    color: var(--soft);
    font-size: 11px;
}

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

.stat-card {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
}

.stat-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--soft);
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.stat-label svg {
    width: 15px;
    height: 15px;
    opacity: .7;
}

.stat-value {
    margin-top: 12px;
    color: var(--ink);
    font-size: 28px;
    font-weight: 500;
    letter-spacing: -.03em;
    line-height: 1;
}

.stat-meta {
    margin-top: 8px;
    color: var(--soft);
    font-size: 11px;
}

.stat-meta strong {
    color: var(--green);
    font-weight: 500;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.dashboard-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    margin-top: 16px;
}

/* --------------------------------------------------------------------------
   Tables
   -------------------------------------------------------------------------- */

.table-wrap {
    overflow-x: auto;
}

.table {
    width: 100%;
    font-size: 12px;
}

.table th {
    padding: 11px 16px;
    border-bottom: 1px solid var(--line);
    background: #fbfbf9;
    color: var(--soft);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: .14em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    vertical-align: middle;
}

.table tbody tr:last-child td {
    border-bottom: 0;
}

.table tbody tr:hover {
    background: #fcfcfa;
}

.table .is-right {
    text-align: right;
}

.table .is-nowrap {
    white-space: nowrap;
}

.table strong {
    color: var(--ink);
    font-weight: 500;
}

.table .sub {
    margin-top: 2px;
    color: var(--soft);
    font-size: 10px;
}

.table-thumb {
    width: 42px;
    height: 42px;
    border-radius: 7px;
    object-fit: cover;
    background: #f1f1ed;
}

.table-product {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 180px;
}

.table-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    white-space: nowrap;
}

.empty-row {
    padding: 42px 16px !important;
    text-align: center;
    color: var(--soft);
}

/* Badges */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .02em;
    white-space: nowrap;
}

.badge::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
}

.badge-green {
    background: var(--green-bg);
    color: var(--green);
}

.badge-amber {
    background: var(--amber-bg);
    color: var(--amber);
}

.badge-red {
    background: var(--red-bg);
    color: var(--red);
}

.badge-blue {
    background: var(--blue-bg);
    color: var(--blue);
}

.badge-neutral {
    background: #f1f1ed;
    color: var(--muted);
}

.badge-plain::before {
    display: none;
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

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

.form-col {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--ink);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.field label .optional {
    color: var(--soft);
    font-size: 9px;
    font-weight: 400;
    letter-spacing: .04em;
    text-transform: none;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 40px;
    padding: 9px 11px;
    border: 1px solid var(--line-strong);
    border-radius: 9px;
    background: #fff;
    color: var(--ink);
    font-size: 13px;
    outline: 0;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.field textarea {
    min-height: 110px;
    line-height: 1.65;
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--ink);
    box-shadow: 0 0 0 3px rgba(11, 11, 11, .05);
}

.field input::placeholder,
.field textarea::placeholder {
    color: #b7b7b2;
}

.field .error {
    color: var(--red);
    font-size: 10px;
}

.field-help {
    color: var(--soft);
    font-size: 10px;
    line-height: 1.5;
}

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

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

.check input {
    width: 15px;
    height: 15px;
    margin-top: 2px;
    accent-color: var(--ink);
    flex: none;
}

.check strong {
    display: block;
    color: var(--ink);
    font-size: 12px;
    font-weight: 500;
}

.check span span {
    display: block;
    color: var(--soft);
    font-size: 10px;
    margin-top: 1px;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 4px;
}

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

/* Image upload & previews */

.image-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.image-preview {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    padding: 10px;
    border: 1px dashed var(--line-strong);
    border-radius: 10px;
    background: #fbfbf9;
    overflow: hidden;
}

.image-preview img {
    max-height: 190px;
    width: auto;
    border-radius: 6px;
}

.image-preview .placeholder {
    color: var(--soft);
    font-size: 11px;
    text-align: center;
    line-height: 1.6;
}

.image-preview .placeholder svg {
    width: 24px;
    height: 24px;
    margin: 0 auto 6px;
}

.upload-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

input[type="file"] {
    font-size: 11px;
    color: var(--muted);
}

input[type="file"]::file-selector-button {
    margin-right: 8px;
    height: 32px;
    padding: 0 10px;
    border: 1px solid var(--line-strong);
    border-radius: 7px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 11px;
    cursor: pointer;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
    gap: 8px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #f4f4f1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item label {
    position: absolute;
    top: 4px;
    right: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .95);
    cursor: pointer;
}

.gallery-item input {
    width: 13px;
    height: 13px;
    accent-color: var(--red);
}

/* --------------------------------------------------------------------------
   Alerts
   -------------------------------------------------------------------------- */

.alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.5;
}

.alert svg {
    width: 16px;
    height: 16px;
    margin-top: 1px;
    flex: none;
}

.alert-success {
    background: var(--green-bg);
    border-color: #c6e6d3;
    color: var(--green);
}

.alert-error {
    background: var(--red-bg);
    border-color: #f0cfcc;
    color: var(--red);
}

.alert ul {
    margin-top: 4px;
}

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    padding: 20px 12px 4px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 9px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--muted);
    font-size: 11px;
}

.pagination a:hover {
    border-color: var(--line-strong);
    color: var(--ink);
}

.pagination .is-current {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.pagination .is-disabled {
    opacity: .4;
}

/* --------------------------------------------------------------------------
   Login
   -------------------------------------------------------------------------- */

.login-body {
    min-height: 100vh;
    background: #fff;
}

.login-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-height: 100vh;
}

.login-aside {
    position: relative;
    display: none;
    overflow: hidden;
    background: #0b0b0b;
    color: #fff;
}

.login-aside img.cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .55;
    filter: grayscale(100%);
}

.login-aside::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .2) 0%, rgba(0, 0, 0, .78) 100%);
}

.login-aside-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 36px;
}

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

.login-brand img {
    width: 84px;
    height: auto;
    object-fit: contain;
}

.login-brand-name {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .24em;
    text-transform: uppercase;
}

.login-brand-name small {
    display: block;
    margin-top: 3px;
    color: rgba(255, 255, 255, .5);
    font-size: 9px;
    font-weight: 400;
    letter-spacing: .3em;
}

.login-quote {
    max-width: 420px;
}

.login-quote p {
    font-size: clamp(22px, 2.4vw, 32px);
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: -.02em;
}

.login-quote span {
    display: block;
    margin-top: 18px;
    color: rgba(255, 255, 255, .5);
    font-size: 10px;
    letter-spacing: .24em;
    text-transform: uppercase;
}

.login-main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
}

.login-card {
    width: 100%;
    max-width: 380px;
}

.login-card .eyebrow {
    color: var(--soft);
    font-size: 10px;
    letter-spacing: .26em;
    text-transform: uppercase;
}

.login-card h1 {
    margin-top: 10px;
    color: var(--ink);
    font-size: 30px;
    font-weight: 500;
    letter-spacing: -.03em;
}

.login-card > p {
    margin-top: 8px;
    color: var(--soft);
    font-size: 12px;
    line-height: 1.6;
}

.login-form {
    margin-top: 26px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.login-demo {
    margin-top: 24px;
    padding: 14px;
    border: 1px dashed var(--line-strong);
    border-radius: 10px;
    background: #fbfbf9;
    font-size: 11px;
    line-height: 1.7;
}

.login-demo strong {
    color: var(--ink);
    font-weight: 500;
}

.login-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 26px;
    color: var(--soft);
    font-size: 11px;
}

.login-back:hover {
    color: var(--ink);
}

/* --------------------------------------------------------------------------
   Misc
   -------------------------------------------------------------------------- */

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

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

.mono {
    font-variant-numeric: tabular-nums;
}

.thumb-lg {
    width: 100%;
    max-width: 240px;
    border-radius: 8px;
    border: 1px solid var(--line);
}

.kv {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 8px 14px;
    font-size: 12px;
}

.kv dt {
    color: var(--soft);
}

.kv dd {
    margin: 0;
    color: var(--ink);
}

.order-total-box {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fbfbf9;
}

.order-total-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 5px 0;
    font-size: 12px;
}

.order-total-row.is-total {
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
    color: var(--ink);
    font-size: 14px;
    font-weight: 500;
}

.status-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.status-form select {
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font-size: 12px;
}

.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
}

.filter-form .field {
    margin: 0;
}

.filter-form input,
.filter-form select {
    width: 100%;
    min-height: 34px;
    padding: 8px 10px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font-size: 12px;
}

.filter-form input:focus,
.filter-form select:focus {
    outline: none;
    border-color: var(--ink);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (min-width: 700px) {
    .stats-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 960px) {
    .dashboard-grid {
        grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    }

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

    .form-grid {
        grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
        align-items: start;
    }
}

@media (min-width: 1024px) {
    .login-shell {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    }

    .login-aside {
        display: block;
    }
}

@media (max-width: 1023px) {
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform .3s ease;
        box-shadow: 0 20px 60px rgba(0, 0, 0, .2);
    }

    .admin-sidebar.is-open {
        transform: none;
    }

    .admin-main {
        margin-left: 0;
    }

    .admin-mobile-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .admin-overlay {
        position: fixed;
        inset: 0;
        z-index: 55;
        background: rgba(11, 11, 11, .4);
        opacity: 0;
        visibility: hidden;
        transition: opacity .3s ease, visibility .3s ease;
    }

    .admin-overlay.is-open {
        opacity: 1;
        visibility: visible;
    }
}

@media (max-width: 699px) {
    .admin-content {
        padding: 20px 16px 44px;
    }

    .admin-topbar {
        padding: 0 16px;
    }

    .admin-crumbs {
        display: none;
    }

    .admin-page-head {
        align-items: flex-start;
    }

    .admin-page-head h1 {
        font-size: 22px;
    }

    .form-row,
    .field-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .admin-topbar-link span {
        display: none;
    }
}
