/* =========================================================
   PALLADIUM ADMIN DESIGN SYSTEM
   Loaded after the legacy dashboard stylesheet so every
   administrative screen shares one deliberate visual language.
========================================================= */

:root {
    --admin-font-ui: "Manrope", ui-sans-serif, system-ui, sans-serif;
    --admin-font-display: "Cormorant Garamond", ui-serif, serif;
    --admin-control-min-size: 44px;
    --admin-ink: #1b1b19;
    --admin-ink-soft: #4c4a45;
    --admin-muted: #77736b;
    --admin-canvas: #f3f0e9;
    --admin-canvas-deep: #e9e3d8;
    --admin-surface: #fffefa;
    --admin-surface-soft: #faf8f3;
    --admin-dark: #11110f;
    --admin-dark-soft: #1b1a17;
    --admin-gold: #b79354;
    --admin-gold-dark: #8d6b32;
    --admin-gold-soft: #e7d3a7;
    --admin-line: rgba(27, 27, 25, 0.12);
    --admin-line-strong: rgba(27, 27, 25, 0.2);
    --admin-line-light: rgba(255, 255, 255, 0.1);
    --admin-success: #2f7650;
    --admin-success-soft: #e7f3eb;
    --admin-warning: #9a6827;
    --admin-warning-soft: #fff3dc;
    --admin-danger: #a33f38;
    --admin-danger-soft: #fbe9e6;
    --admin-info: #3f6588;
    --admin-info-soft: #eaf2f8;
    --admin-radius-xs: 8px;
    --admin-radius-sm: 12px;
    --admin-radius-md: 18px;
    --admin-radius-lg: 26px;
    --admin-radius-pill: 999px;
    --admin-shadow-sm: 0 8px 24px rgba(25, 22, 16, 0.06);
    --admin-shadow-md: 0 18px 52px rgba(25, 22, 16, 0.09);
    --admin-shadow-lg: 0 34px 90px rgba(11, 10, 8, 0.18);
    --admin-focus: 0 0 0 4px rgba(183, 147, 84, 0.2);
    --admin-sidebar-width: 294px;
    --admin-topbar-height: 82px;
    --admin-content-width: 1540px;
    --admin-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
    min-width: 320px;
    min-height: 100%;
    background: var(--admin-canvas);
}

.dashboard-body,
.dashboard-login-body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    font-family: var(--admin-font-ui);
    color: var(--admin-ink);
    background:
        radial-gradient(circle at 78% -10%, rgba(183, 147, 84, 0.1), transparent 32rem),
        var(--admin-canvas);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.dashboard-body *,
.dashboard-body *::before,
.dashboard-body *::after,
.dashboard-login-body *,
.dashboard-login-body *::before,
.dashboard-login-body *::after {
    box-sizing: border-box;
}

.dashboard-body img,
.dashboard-login-body img {
    display: block;
    max-width: 100%;
}

.dashboard-body button,
.dashboard-body input,
.dashboard-body select,
.dashboard-body textarea,
.dashboard-login-body button,
.dashboard-login-body input {
    font: inherit;
}

.dashboard-body button,
.dashboard-body a,
.dashboard-login-body button,
.dashboard-login-body a {
    -webkit-tap-highlight-color: transparent;
}

.dashboard-body :focus-visible,
.dashboard-login-body :focus-visible {
    outline: 2px solid var(--admin-gold);
    outline-offset: 3px;
}

.dashboard-body ::selection,
.dashboard-login-body ::selection {
    color: var(--admin-dark);
    background: var(--admin-gold-soft);
}

.dashboard-skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 5000;
    min-height: var(--admin-control-min-size);
    display: inline-flex;
    align-items: center;
    padding: 0 18px;
    border-radius: var(--admin-radius-pill);
    color: var(--admin-dark);
    background: var(--admin-gold-soft);
    box-shadow: var(--admin-shadow-md);
    font-size: 0.82rem;
    font-weight: 800;
    transform: translateY(-150%);
    transition: transform 180ms var(--admin-ease);
}

.dashboard-skip-link:focus {
    transform: translateY(0);
}

.dashboard-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}

/* ---------------------------------------------------------
   APPLICATION SHELL
--------------------------------------------------------- */

.dashboard-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: var(--admin-sidebar-width) minmax(0, 1fr);
    background: transparent;
}

.dashboard-sidebar {
    position: sticky;
    top: 0;
    z-index: 120;
    width: var(--admin-sidebar-width);
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
    color: #fff;
    background:
        radial-gradient(circle at 12% 2%, rgba(214, 181, 118, 0.16), transparent 19rem),
        linear-gradient(180deg, #171714 0%, #10100f 72%, #0c0c0b 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 22px 0 60px rgba(20, 18, 13, 0.08);
}

.dashboard-sidebar::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.14;
    background-image: radial-gradient(rgba(255, 255, 255, 0.18) 0.55px, transparent 0.55px);
    background-size: 6px 6px;
    mask-image: linear-gradient(to bottom, #000, transparent 55%);
}

.dashboard-sidebar__header,
.dashboard-nav,
.dashboard-sidebar__bottom {
    position: relative;
    z-index: 1;
}

.dashboard-sidebar__header {
    min-height: 92px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 20px 18px;
    border-bottom: 1px solid var(--admin-line-light);
}

.dashboard-brand {
    min-width: 0;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 0;
    border: 0;
    color: #fff;
}

.dashboard-brand img,
.dashboard-brand__monogram {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 50%;
}

.dashboard-brand img {
    object-fit: contain;
    padding: 3px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.dashboard-brand__monogram {
    display: grid;
    place-items: center;
    color: var(--admin-dark);
    background: linear-gradient(145deg, #f0dfbb, #b58c4b);
    font-family: var(--admin-font-display);
    font-size: 1.35rem;
    font-weight: 700;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}

.dashboard-brand__copy {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.dashboard-brand__copy strong {
    overflow: hidden;
    color: #fff;
    font-family: var(--admin-font-display);
    font-size: 0.98rem;
    font-weight: 600;
    letter-spacing: 0.015em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-brand__copy small {
    color: rgba(255, 255, 255, 0.47);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.dashboard-sidebar__close {
    display: none;
    width: var(--admin-control-min-size);
    height: var(--admin-control-min-size);
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
}

.dashboard-sidebar__close span {
    font-size: 1.45rem;
    line-height: 1;
}

.dashboard-nav {
    flex: 1;
    display: block;
    overflow-x: hidden;
    overflow-y: auto;
    margin: 0;
    padding: 20px 14px 24px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.dashboard-nav__group {
    display: grid;
    gap: 4px;
}

.dashboard-nav__group + .dashboard-nav__group {
    margin-top: 18px;
}

.dashboard-nav__label {
    padding: 0 12px 7px;
    color: rgba(255, 255, 255, 0.32);
    font-size: 0.61rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.dashboard-nav__item {
    position: relative;
    min-height: 46px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    padding: 6px 11px 6px 8px;
    border: 1px solid transparent;
    border-radius: 11px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.79rem;
    font-weight: 650;
    line-height: 1.25;
    transition:
        color 180ms var(--admin-ease),
        background 180ms var(--admin-ease),
        border-color 180ms var(--admin-ease),
        transform 180ms var(--admin-ease);
}

.dashboard-nav__item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.055);
    transform: translateX(2px);
}

.dashboard-nav__item--active {
    color: #fff;
    background:
        linear-gradient(90deg, rgba(183, 147, 84, 0.19), rgba(183, 147, 84, 0.06));
    border-color: rgba(218, 186, 123, 0.18);
    box-shadow: inset 3px 0 0 var(--admin-gold);
}

.dashboard-nav__icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    color: rgba(255, 255, 255, 0.48);
    background: rgba(255, 255, 255, 0.035);
    transition: color 180ms var(--admin-ease), background 180ms var(--admin-ease);
}

.dashboard-nav__item:hover .dashboard-nav__icon,
.dashboard-nav__item--active .dashboard-nav__icon {
    color: var(--admin-gold-soft);
    background: rgba(183, 147, 84, 0.11);
}

.dashboard-nav__badge {
    min-width: 25px;
    height: 25px;
    display: inline-grid;
    place-items: center;
    padding: 0 7px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--admin-radius-pill);
    color: #16130e;
    background: var(--admin-gold-soft);
    font-size: 0.65rem;
    font-weight: 850;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.dashboard-sidebar__bottom {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 16px 16px 18px;
    border-top: 1px solid var(--admin-line-light);
}

.dashboard-sidebar__website {
    min-height: var(--admin-control-min-size);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 15px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--admin-radius-sm);
    color: rgba(255, 255, 255, 0.74);
    background: rgba(255, 255, 255, 0.035);
    font-size: 0.72rem;
    font-weight: 750;
    transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.dashboard-sidebar__website:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.22);
}

.dashboard-sidebar__website .dashboard-icon {
    width: 16px;
    height: 16px;
}

.dashboard-sidebar__account {
    min-width: 0;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) var(--admin-control-min-size);
    align-items: center;
    gap: 10px;
    padding-top: 3px;
}

.dashboard-sidebar__avatar,
.dashboard-user__avatar {
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--admin-dark);
    background: linear-gradient(145deg, #f1dfb8, #bd9552);
    font-size: 0.76rem;
    font-weight: 850;
}

.dashboard-sidebar__avatar {
    width: 38px;
    height: 38px;
}

.dashboard-sidebar__identity {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.dashboard-sidebar__identity small {
    color: rgba(255, 255, 255, 0.38);
    font-size: 0.61rem;
}

.dashboard-sidebar__identity strong {
    overflow: hidden;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.72rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-sidebar__account form {
    margin: 0;
}

.dashboard-sidebar__account button {
    width: var(--admin-control-min-size);
    height: var(--admin-control-min-size);
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.48);
    background: transparent;
    cursor: pointer;
    transition: color 180ms ease, background 180ms ease;
}

.dashboard-sidebar__account button:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.dashboard-sidebar__account .dashboard-icon {
    width: 18px;
    height: 18px;
}

.dashboard-main {
    min-width: 0;
    background: transparent;
}

.dashboard-topbar {
    position: sticky;
    top: 0;
    z-index: 90;
    min-height: var(--admin-topbar-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px clamp(24px, 3.5vw, 58px);
    border-bottom: 1px solid var(--admin-line);
    background: rgba(255, 254, 250, 0.86);
    box-shadow: 0 8px 32px rgba(27, 24, 18, 0.035);
    backdrop-filter: blur(18px) saturate(130%);
}

.dashboard-topbar__left,
.dashboard-topbar__right {
    display: flex;
    align-items: center;
}

.dashboard-topbar__left {
    min-width: 0;
    gap: 14px;
}

.dashboard-topbar__right {
    gap: 12px;
}

.dashboard-topbar__title {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.dashboard-topbar__eyebrow {
    margin: 0;
    color: var(--admin-gold-dark);
    font-size: 0.59rem;
    font-weight: 850;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.dashboard-topbar__title strong {
    overflow: hidden;
    color: var(--admin-ink);
    font-size: 0.9rem;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-mobile-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    place-items: center;
    padding: 11px;
    border: 1px solid var(--admin-line);
    border-radius: 12px;
    background: var(--admin-surface);
    cursor: pointer;
    box-shadow: var(--admin-shadow-sm);
}

.dashboard-mobile-menu-toggle span {
    width: 20px;
    height: 1.5px;
    display: block;
    margin: 2.5px 0;
    background: var(--admin-ink);
}

.dashboard-live-state,
.dashboard-topbar__preview {
    min-height: var(--admin-control-min-size);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 13px;
    border: 1px solid var(--admin-line);
    border-radius: var(--admin-radius-pill);
    color: var(--admin-muted);
    background: rgba(255, 255, 255, 0.68);
    font-size: 0.67rem;
    font-weight: 750;
}

.dashboard-live-state__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--admin-success);
    box-shadow: 0 0 0 4px rgba(47, 118, 80, 0.1);
}

.dashboard-live-state[data-state="loading"] .dashboard-live-state__dot {
    background: var(--admin-warning);
    box-shadow: 0 0 0 4px rgba(154, 104, 39, 0.11);
}

.dashboard-live-state[data-state="error"] .dashboard-live-state__dot {
    background: var(--admin-danger);
    box-shadow: 0 0 0 4px rgba(163, 63, 56, 0.11);
}

.dashboard-topbar__preview {
    color: var(--admin-ink-soft);
    transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.dashboard-topbar__preview:hover {
    color: var(--admin-dark);
    border-color: var(--admin-line-strong);
    background: #fff;
}

.dashboard-topbar__preview .dashboard-icon {
    width: 15px;
    height: 15px;
}

.dashboard-user {
    min-width: 0;
    display: grid;
    grid-template-columns: 38px minmax(0, auto);
    align-items: center;
    gap: 9px;
    padding: 0;
    color: inherit;
}

.dashboard-user__avatar {
    width: 38px;
    height: 38px;
    box-shadow: inset 0 0 0 1px rgba(111, 81, 31, 0.15);
}

.dashboard-user__copy {
    max-width: 150px;
    display: grid;
    gap: 1px;
}

.dashboard-user__copy small {
    color: var(--admin-muted);
    font-size: 0.58rem;
}

.dashboard-user__copy strong {
    overflow: hidden;
    color: var(--admin-ink);
    font-size: 0.7rem;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-content {
    width: min(100%, var(--admin-content-width));
    margin: 0 auto;
    padding: clamp(32px, 4.5vw, 66px) clamp(22px, 3.8vw, 62px) 96px;
}

.dashboard-mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 110;
    display: none;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(7, 7, 6, 0.58);
    opacity: 0;
    backdrop-filter: blur(4px);
    transition: opacity 220ms ease;
}

/* ---------------------------------------------------------
   HEADINGS AND ACTIONS
--------------------------------------------------------- */

.dashboard-heading,
.dashboard-heading-actions {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin: 0 0 30px;
}

.dashboard-heading > div,
.dashboard-heading-actions > div {
    min-width: 0;
}

.dashboard-heading p,
.dashboard-heading-actions p,
.plating-kicker {
    margin: 0 0 9px;
    color: var(--admin-gold-dark);
    font-size: 0.65rem;
    font-weight: 850;
    line-height: 1.25;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.dashboard-heading h1,
.dashboard-heading-actions h1,
.plating-heading h1 {
    margin: 0;
    color: var(--admin-ink);
    font-family: var(--admin-font-display);
    font-size: clamp(2.05rem, 3.6vw, 3.7rem);
    font-weight: 500;
    line-height: 0.98;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.dashboard-heading > div > span,
.dashboard-heading-actions > div > span,
.dashboard-heading > span {
    display: block;
    max-width: 700px;
    margin-top: 12px;
    color: var(--admin-muted);
    font-size: 0.84rem;
    line-height: 1.65;
}

.dashboard-heading__actions,
.dashboard-heading-actions {
    flex-wrap: wrap;
}

/* ---------------------------------------------------------
   BUTTON SYSTEM
--------------------------------------------------------- */

:where(
    .dashboard-primary-action,
    .dashboard-primary-button,
    .dashboard-save-button,
    .dashboard-secondary-action,
    .dashboard-secondary-button,
    .dashboard-danger-button,
    .dashboard-filter-button,
    .dashboard-filter-reset,
    .dashboard-preview-link,
    .dashboard-gallery-card__delete,
    .dashboard-gallery__delete-button,
    .dashboard-menu-item__remove,
    .dashboard-testimonial-card__delete,
    .plating-save-button,
    .plating-text-button,
    .plating-upload-submit,
    .plating-upload-cancel
) {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin: 0;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 0.73rem;
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition:
        transform 180ms var(--admin-ease),
        color 180ms ease,
        background 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease,
        opacity 180ms ease;
}

:where(
    .dashboard-primary-action,
    .dashboard-primary-button,
    .dashboard-save-button,
    .dashboard-filter-button,
    .plating-save-button,
    .plating-upload-submit
) {
    color: #fff;
    background: linear-gradient(135deg, #25231f, #11110f);
    border-color: #11110f;
    box-shadow: 0 10px 24px rgba(17, 17, 15, 0.14);
}

:where(
    .dashboard-primary-action,
    .dashboard-primary-button,
    .dashboard-save-button,
    .dashboard-filter-button,
    .plating-save-button,
    .plating-upload-submit
):hover {
    color: #fff;
    background: linear-gradient(135deg, #343028, #181714);
    border-color: #181714;
    box-shadow: 0 14px 30px rgba(17, 17, 15, 0.19);
    transform: translateY(-2px);
}

:where(
    .dashboard-secondary-action,
    .dashboard-secondary-button,
    .dashboard-filter-reset,
    .dashboard-preview-link,
    .plating-text-button,
    .plating-upload-cancel
) {
    color: var(--admin-ink-soft);
    background: rgba(255, 255, 255, 0.7);
    border-color: var(--admin-line);
    box-shadow: 0 5px 16px rgba(28, 25, 20, 0.035);
}

:where(
    .dashboard-secondary-action,
    .dashboard-secondary-button,
    .dashboard-filter-reset,
    .dashboard-preview-link,
    .plating-text-button,
    .plating-upload-cancel
):hover {
    color: var(--admin-ink);
    background: #fff;
    border-color: var(--admin-line-strong);
    transform: translateY(-1px);
}

:where(
    .dashboard-danger-button,
    .dashboard-gallery-card__delete,
    .dashboard-gallery__delete-button,
    .dashboard-menu-item__remove,
    .dashboard-testimonial-card__delete,
    .plating-text-button--danger
) {
    color: var(--admin-danger);
    background: var(--admin-danger-soft);
    border-color: rgba(163, 63, 56, 0.18);
}

:where(
    .dashboard-danger-button,
    .dashboard-gallery-card__delete,
    .dashboard-gallery__delete-button,
    .dashboard-menu-item__remove,
    .dashboard-testimonial-card__delete,
    .plating-text-button--danger
):hover {
    color: #fff;
    background: var(--admin-danger);
    border-color: var(--admin-danger);
    transform: translateY(-1px);
}

:where(button, a, input, select, textarea):disabled,
:where(button, a)[aria-disabled="true"] {
    cursor: not-allowed !important;
    opacity: 0.48;
    transform: none !important;
    box-shadow: none !important;
}

.is-ui-submitting {
    pointer-events: none;
    opacity: 0.72;
}

.is-ui-submitting::after {
    content: "";
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: admin-spin 650ms linear infinite;
}

@keyframes admin-spin {
    to { transform: rotate(360deg); }
}

/* ---------------------------------------------------------
   PANELS, CARDS, METRICS, TABLES
--------------------------------------------------------- */

.dashboard-panel,
.dashboard-edit-panel,
.dashboard-filter-panel,
.dashboard-lead-dashboard-overview,
.dashboard-lead-management,
.dashboard-menu-builder,
.dashboard-category-warning,
.plating-intro-card,
.plating-element-form-panel {
    overflow: hidden;
    border: 1px solid var(--admin-line);
    border-radius: var(--admin-radius-md);
    background: rgba(255, 254, 250, 0.94);
    box-shadow: var(--admin-shadow-sm);
}

.dashboard-panel__header,
.dashboard-edit-panel__heading,
.dashboard-menu-builder__header {
    padding: 23px clamp(20px, 2.5vw, 30px);
    border-bottom: 1px solid var(--admin-line);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(250, 248, 243, 0.45));
}

.dashboard-panel__header--split,
.dashboard-lead-dashboard-overview__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.dashboard-panel__header > span,
.dashboard-edit-panel__heading > span,
.dashboard-panel__header div > span,
.dashboard-menu-builder__header p {
    color: var(--admin-gold-dark);
    font-size: 0.62rem;
    font-weight: 850;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.dashboard-panel__header h2,
.dashboard-edit-panel__heading h2,
.dashboard-menu-builder__header h2 {
    margin: 5px 0 0;
    color: var(--admin-ink);
    font-family: var(--admin-font-display);
    font-size: clamp(1.3rem, 2vw, 1.72rem);
    font-weight: 500;
    line-height: 1.15;
}

.dashboard-edit-panel__heading p {
    max-width: 720px;
    margin: 8px 0 0;
    color: var(--admin-muted);
    font-size: 0.8rem;
    line-height: 1.55;
}

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

.dashboard-stats {
    margin: 0 0 28px;
}

.dashboard-stat,
.dashboard-lead-stat,
.dashboard-lead-dashboard-metrics > a {
    position: relative;
    overflow: hidden;
    padding: 23px;
    border: 1px solid var(--admin-line);
    border-radius: var(--admin-radius-md);
    background: rgba(255, 254, 250, 0.93);
    box-shadow: var(--admin-shadow-sm);
    transition: transform 190ms var(--admin-ease), border-color 190ms ease, box-shadow 190ms ease;
}

.dashboard-stat::before,
.dashboard-lead-stat::before,
.dashboard-lead-dashboard-metrics > a::before {
    content: "";
    position: absolute;
    top: 0;
    left: 20px;
    width: 34px;
    height: 2px;
    background: var(--admin-gold);
}

.dashboard-lead-dashboard-metrics > a:hover {
    border-color: rgba(183, 147, 84, 0.42);
    box-shadow: var(--admin-shadow-md);
    transform: translateY(-3px);
}

.dashboard-stat span,
.dashboard-lead-stat span,
.dashboard-lead-dashboard-metrics span {
    display: block;
    color: var(--admin-muted);
    font-size: 0.68rem;
    font-weight: 750;
}

.dashboard-stat strong,
.dashboard-lead-stat strong,
.dashboard-lead-dashboard-metrics strong {
    display: block;
    margin: 12px 0 7px;
    color: var(--admin-ink);
    font-family: var(--admin-font-display);
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 500;
    line-height: 0.95;
}

.dashboard-stat small,
.dashboard-lead-stat small,
.dashboard-lead-dashboard-metrics small {
    color: var(--admin-muted);
    font-size: 0.67rem;
}

.dashboard-table-wrapper {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: thin;
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--admin-ink-soft);
    background: transparent;
    font-size: 0.78rem;
}

.dashboard-table th,
.dashboard-table td {
    padding: 16px 19px;
    border-bottom: 1px solid var(--admin-line);
    text-align: left;
    vertical-align: middle;
}

.dashboard-table th {
    color: var(--admin-muted);
    background: var(--admin-surface-soft);
    font-size: 0.61rem;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.dashboard-table tbody tr {
    transition: background 160ms ease;
}

.dashboard-table tbody tr:hover {
    background: rgba(183, 147, 84, 0.05);
}

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

.dashboard-table td strong {
    color: var(--admin-ink);
    font-size: 0.79rem;
}

.dashboard-table td small {
    display: block;
    margin-top: 3px;
    color: var(--admin-muted);
    font-size: 0.66rem;
}

/* ---------------------------------------------------------
   FORMS
--------------------------------------------------------- */

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

.dashboard-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    padding: clamp(22px, 3vw, 34px);
}

.dashboard-field {
    min-width: 0;
    display: grid;
    align-content: start;
    gap: 8px;
}

.dashboard-field--full {
    grid-column: 1 / -1;
}

.dashboard-field label,
.dashboard-filters label,
.plating-setup-field > label,
.plating-setup-field > span,
.plating-control-group > label,
.plating-upload-field > label {
    color: var(--admin-ink-soft);
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1.3;
}

.dashboard-field input[type="text"],
.dashboard-field input[type="email"],
.dashboard-field input[type="url"],
.dashboard-field input[type="number"],
.dashboard-field input[type="date"],
.dashboard-field input[type="tel"],
.dashboard-field input[type="password"],
.dashboard-field textarea,
.dashboard-field select,
.dashboard-filters input,
.dashboard-filters select,
.dashboard-new-section input,
.dashboard-new-section textarea,
.dashboard-menu-section input,
.dashboard-menu-section select,
.dashboard-menu-section textarea,
.plating-search input,
.plating-setup-field select,
.plating-upload-field input[type="text"],
.plating-upload-field input[type="number"],
.plating-upload-field select {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    border: 1px solid var(--admin-line-strong);
    border-radius: 11px;
    outline: 0;
    color: var(--admin-ink);
    background: #fff;
    box-shadow: inset 0 1px 2px rgba(20, 18, 14, 0.025);
    transition: border-color 170ms ease, box-shadow 170ms ease, background 170ms ease;
}

.dashboard-field textarea,
.dashboard-menu-section textarea,
.dashboard-new-section textarea {
    min-height: 118px;
    resize: vertical;
    line-height: 1.55;
}

:where(
    .dashboard-field,
    .dashboard-filters,
    .dashboard-menu-section,
    .dashboard-new-section,
    .plating-search,
    .plating-setup-field,
    .plating-upload-field
) :where(input, select, textarea):focus {
    border-color: var(--admin-gold);
    box-shadow: var(--admin-focus);
}

:where(
    .dashboard-field,
    .dashboard-filters,
    .dashboard-menu-section,
    .dashboard-new-section
) :where(input, select, textarea)::placeholder {
    color: #aaa59c;
}

.dashboard-field input[type="file"] {
    width: 100%;
    min-height: 48px;
    padding: 8px;
    border: 1px dashed rgba(141, 107, 50, 0.38);
    border-radius: 11px;
    color: var(--admin-muted);
    background: var(--admin-surface-soft);
}

.dashboard-field input[type="file"]::file-selector-button {
    min-height: var(--admin-control-min-size);
    margin-right: 11px;
    padding: 0 13px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: var(--admin-ink);
    font-size: 0.67rem;
    font-weight: 750;
    cursor: pointer;
}

.dashboard-field-help,
.dashboard-field .helptext {
    color: var(--admin-muted);
    font-size: 0.66rem;
    line-height: 1.5;
}

.dashboard-field-error,
.dashboard-field .errorlist {
    margin: 0;
    padding: 0;
    color: var(--admin-danger);
    font-size: 0.68rem;
    line-height: 1.45;
    list-style: none;
}

.dashboard-field--checkbox {
    min-height: 52px;
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: center;
    gap: 11px;
    padding: 13px 15px;
    border: 1px solid var(--admin-line);
    border-radius: 11px;
    background: var(--admin-surface-soft);
}

.dashboard-field--checkbox input {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--admin-gold-dark);
}

.dashboard-field--checkbox label {
    cursor: pointer;
}

.dashboard-form-errors,
.dashboard-category-warning,
.dashboard-testimonial-info {
    padding: 17px 19px;
    border: 1px solid rgba(154, 104, 39, 0.2);
    border-radius: var(--admin-radius-sm);
    color: #6f4b20;
    background: var(--admin-warning-soft);
    font-size: 0.76rem;
    line-height: 1.55;
}

.dashboard-form-errors .errorlist {
    margin: 6px 0 0;
    padding-left: 18px;
}

.dashboard-upload-box {
    min-height: 126px;
    display: grid;
    place-items: center;
    gap: 5px;
    padding: 22px;
    border: 1px dashed rgba(141, 107, 50, 0.36);
    border-radius: var(--admin-radius-sm);
    color: var(--admin-muted);
    background:
        linear-gradient(135deg, rgba(231, 211, 167, 0.16), transparent 65%),
        var(--admin-surface-soft);
    text-align: center;
}

.dashboard-upload-box strong {
    color: var(--admin-ink);
    font-size: 0.8rem;
}

.dashboard-upload-box span {
    font-size: 0.67rem;
}

.dashboard-savebar {
    position: sticky;
    bottom: 16px;
    z-index: 40;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 22px;
    padding: 13px 14px 13px 20px;
    border: 1px solid rgba(27, 27, 25, 0.16);
    border-radius: var(--admin-radius-md);
    color: var(--admin-muted);
    background: rgba(255, 254, 250, 0.92);
    box-shadow: var(--admin-shadow-md);
    backdrop-filter: blur(16px) saturate(130%);
}

.dashboard-savebar span {
    font-size: 0.72rem;
    line-height: 1.45;
}

/* ---------------------------------------------------------
   STATUS, EMPTY STATES, MESSAGES, PAGINATION
--------------------------------------------------------- */

:where(
    .dashboard-status,
    .dashboard-category-status,
    .dashboard-dish-status,
    .dashboard-dish-featured,
    .dashboard-menu-status,
    .dashboard-menu-featured,
    .dashboard-event-type-status,
    .dashboard-portfolio-card__status,
    .dashboard-testimonial-card__status,
    .dashboard-lead-status
) {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border: 1px solid rgba(47, 118, 80, 0.15);
    border-radius: var(--admin-radius-pill);
    color: var(--admin-success);
    background: var(--admin-success-soft);
    font-size: 0.6rem;
    font-weight: 850;
    line-height: 1;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

:where(
    .dashboard-category-status--inactive,
    .dashboard-dish-status--inactive,
    .dashboard-menu-status--inactive,
    .dashboard-portfolio-card__status--draft
) {
    color: var(--admin-muted);
    background: #efede8;
    border-color: var(--admin-line);
}

.dashboard-lead-status--new {
    color: var(--admin-info);
    background: var(--admin-info-soft);
    border-color: rgba(63, 101, 136, 0.16);
}

.dashboard-lead-status--contacted,
.dashboard-lead-status--offer_sent {
    color: var(--admin-warning);
    background: var(--admin-warning-soft);
    border-color: rgba(154, 104, 39, 0.16);
}

.dashboard-lead-status--lost {
    color: var(--admin-danger);
    background: var(--admin-danger-soft);
    border-color: rgba(163, 63, 56, 0.16);
}

.dashboard-empty,
.dashboard-empty-state,
.dashboard-lead-empty-state,
.plating-empty-state {
    min-height: 180px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 9px;
    padding: 34px;
    border: 1px dashed rgba(27, 27, 25, 0.18);
    border-radius: var(--admin-radius-md);
    color: var(--admin-muted);
    background:
        radial-gradient(circle at 50% 0, rgba(183, 147, 84, 0.1), transparent 16rem),
        rgba(255, 254, 250, 0.67);
    text-align: center;
}

.dashboard-empty-state h2,
.plating-empty-state h2 {
    margin: 0;
    color: var(--admin-ink);
    font-family: var(--admin-font-display);
    font-size: 1.45rem;
    font-weight: 500;
}

.dashboard-empty-state p,
.plating-empty-state p {
    max-width: 520px;
    margin: 0;
    font-size: 0.76rem;
    line-height: 1.6;
}

.dashboard-messages {
    display: grid;
    gap: 10px;
    margin-bottom: 22px;
}

.dashboard-message {
    min-height: 54px;
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr) var(--admin-control-min-size);
    align-items: center;
    gap: 12px;
    padding: 10px 10px 10px 17px;
    border: 1px solid rgba(47, 118, 80, 0.16);
    border-radius: var(--admin-radius-sm);
    color: #285f42;
    background: var(--admin-success-soft);
    box-shadow: var(--admin-shadow-sm);
    font-size: 0.74rem;
}

.dashboard-message__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.dashboard-message > button {
    width: var(--admin-control-min-size);
    height: var(--admin-control-min-size);
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: currentColor;
    background: transparent;
    font-size: 1.2rem;
    cursor: pointer;
}

.dashboard-message > button:hover {
    background: rgba(0, 0, 0, 0.06);
}

.dashboard-message.is-dismissing {
    opacity: 0;
    transform: translateY(-5px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.dashboard-message--warning,
.dashboard-message--info {
    color: #76501f;
    background: var(--admin-warning-soft);
    border-color: rgba(154, 104, 39, 0.16);
}

.dashboard-message--error {
    color: #84342e;
    background: var(--admin-danger-soft);
    border-color: rgba(163, 63, 56, 0.16);
}

.dashboard-pagination {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
}

.dashboard-pagination a,
.dashboard-pagination__current {
    min-height: var(--admin-control-min-size);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    border: 1px solid var(--admin-line);
    border-radius: 11px;
    color: var(--admin-ink-soft);
    background: rgba(255, 255, 255, 0.72);
    font-size: 0.7rem;
    font-weight: 750;
}

.dashboard-pagination__side--right {
    justify-self: end;
}

.dashboard-pagination a:hover {
    border-color: var(--admin-gold);
    background: #fff;
}

.dashboard-confirm-dialog {
    width: min(92vw, 460px);
    max-width: 460px;
    padding: 0;
    border: 0;
    border-radius: var(--admin-radius-lg);
    color: var(--admin-ink);
    background: transparent;
    box-shadow: var(--admin-shadow-lg);
}

.dashboard-confirm-dialog::backdrop {
    background: rgba(8, 8, 7, 0.68);
    backdrop-filter: blur(6px);
}

.dashboard-confirm-dialog__card {
    margin: 0;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--admin-radius-lg);
    background:
        radial-gradient(circle at 100% 0, rgba(183, 147, 84, 0.17), transparent 17rem),
        var(--admin-surface);
}

.dashboard-confirm-dialog__eyebrow {
    display: block;
    margin-bottom: 9px;
    color: var(--admin-danger);
    font-size: 0.61rem;
    font-weight: 850;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.dashboard-confirm-dialog h2 {
    margin: 0;
    color: var(--admin-ink);
    font-family: var(--admin-font-display);
    font-size: 1.75rem;
    font-weight: 500;
    line-height: 1.08;
}

.dashboard-confirm-dialog p {
    margin: 13px 0 0;
    color: var(--admin-muted);
    font-size: 0.76rem;
    line-height: 1.6;
}

.dashboard-confirm-dialog__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 25px;
}

.dashboard-confirm-dialog__cancel,
.dashboard-confirm-dialog__accept {
    min-height: 46px;
    padding: 0 15px;
    border: 1px solid var(--admin-line);
    border-radius: 11px;
    font-size: 0.69rem;
    font-weight: 850;
    cursor: pointer;
}

.dashboard-confirm-dialog__cancel {
    color: var(--admin-ink-soft);
    background: var(--admin-surface-soft);
}

.dashboard-confirm-dialog__accept {
    color: #fff;
    background: var(--admin-danger);
    border-color: var(--admin-danger);
}

/* ---------------------------------------------------------
   LOGIN
--------------------------------------------------------- */

.dashboard-login-body {
    color: #fff;
    background: var(--admin-dark);
}

.dashboard-login {
    width: 100%;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(360px, 0.92fr) minmax(480px, 1.08fr);
    padding: 0;
}

.dashboard-login__story {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: clamp(30px, 5vw, 70px);
    background:
        radial-gradient(circle at 16% 18%, rgba(226, 193, 127, 0.22), transparent 24rem),
        radial-gradient(circle at 92% 82%, rgba(183, 147, 84, 0.11), transparent 30rem),
        linear-gradient(145deg, #1d1c18, #0b0b0a 72%);
}

.dashboard-login__story::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.19;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(135deg, #000, transparent 68%);
}

.dashboard-login__story::after {
    content: "P";
    position: absolute;
    right: -0.08em;
    bottom: -0.27em;
    color: rgba(255, 255, 255, 0.025);
    font-family: var(--admin-font-display);
    font-size: min(58vw, 44rem);
    line-height: 1;
}

.dashboard-login__story > * {
    position: relative;
    z-index: 1;
}

.dashboard-login__brand {
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 0;
    border: 0;
    color: #fff;
}

.dashboard-login__brand img,
.dashboard-login__monogram {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
}

.dashboard-login__brand img {
    padding: 4px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.04);
}

.dashboard-login__monogram {
    display: grid;
    place-items: center;
    color: var(--admin-dark);
    background: linear-gradient(145deg, #f0dfbb, #b58c4b);
    font-family: var(--admin-font-display);
    font-size: 1.55rem;
    font-weight: 700;
}

.dashboard-login__brand > span:last-child {
    display: grid;
    gap: 3px;
}

.dashboard-login__brand strong {
    font-family: var(--admin-font-display);
    font-size: 1.05rem;
    font-weight: 500;
}

.dashboard-login__brand small {
    color: rgba(255, 255, 255, 0.47);
    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.dashboard-login__story-copy {
    max-width: 590px;
    margin: auto 0;
    padding: 80px 0;
}

.dashboard-login__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    margin: 0 0 16px;
    color: var(--admin-gold-soft);
    font-size: 0.63rem;
    font-weight: 850;
    line-height: 1.25;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.dashboard-login__eyebrow::before {
    content: "";
    width: 30px;
    height: 1px;
    background: currentColor;
}

.dashboard-login__story-copy h2 {
    margin: 0;
    color: #fff;
    font-family: var(--admin-font-display);
    font-size: clamp(2.5rem, 4.7vw, 5.6rem);
    font-weight: 400;
    line-height: 0.99;
    letter-spacing: -0.045em;
    text-wrap: balance;
}

.dashboard-login__story-copy > p {
    max-width: 520px;
    margin: 25px 0 0;
    color: rgba(255, 255, 255, 0.59);
    font-size: clamp(0.88rem, 1.2vw, 1.02rem);
    line-height: 1.75;
}

.dashboard-login__security-note {
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--admin-radius-sm);
    background: rgba(255, 255, 255, 0.035);
    backdrop-filter: blur(12px);
}

.dashboard-login__security-note > span {
    color: var(--admin-gold-soft);
    font-size: 0.7rem;
}

.dashboard-login__security-note p {
    display: grid;
    gap: 2px;
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.69rem;
    font-weight: 750;
}

.dashboard-login__security-note small {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.61rem;
    font-weight: 500;
}

.dashboard-login__panel {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: clamp(34px, 6vw, 88px);
    color: var(--admin-ink);
    background:
        radial-gradient(circle at 80% 0, rgba(183, 147, 84, 0.12), transparent 22rem),
        var(--admin-canvas);
}

.dashboard-login__card {
    width: min(100%, 520px);
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.dashboard-login__back {
    min-height: var(--admin-control-min-size);
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: clamp(36px, 6vh, 70px);
    padding: 0 2px;
    color: var(--admin-muted);
    font-size: 0.71rem;
    font-weight: 750;
    transition: color 170ms ease, transform 170ms ease;
}

.dashboard-login__back:hover {
    color: var(--admin-ink);
    transform: translateX(-3px);
}

.dashboard-login__heading .dashboard-login__eyebrow {
    color: var(--admin-gold-dark);
}

.dashboard-login__heading h1 {
    margin: 0;
    color: var(--admin-ink);
    font-family: var(--admin-font-display);
    font-size: clamp(2.45rem, 4.6vw, 4rem);
    font-weight: 500;
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.dashboard-login__heading > p {
    margin: 13px 0 0;
    color: var(--admin-muted);
    font-size: 0.84rem;
    line-height: 1.6;
}

.dashboard-login__notice {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 12px;
    margin: 27px 0;
    padding: 16px;
    border: 1px solid rgba(154, 104, 39, 0.18);
    border-radius: var(--admin-radius-sm);
    color: #65461f;
    background: rgba(255, 243, 220, 0.7);
}

.dashboard-login__notice-icon {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--admin-warning);
    font-family: var(--admin-font-display);
    font-size: 0.78rem;
    font-weight: 700;
}

.dashboard-login__notice strong {
    display: block;
    margin-bottom: 4px;
    color: #5a3d1b;
    font-size: 0.72rem;
}

.dashboard-login__notice p {
    margin: 0;
    font-size: 0.68rem;
    line-height: 1.55;
}

.dashboard-login__notice a {
    border-bottom: 1px solid currentColor;
    font-weight: 850;
}

.dashboard-login__error {
    display: block;
    margin: 0 0 20px;
    padding: 15px 17px;
    border: 1px solid rgba(163, 63, 56, 0.18);
    border-radius: var(--admin-radius-sm);
    color: #80342e;
    background: var(--admin-danger-soft);
    font-size: 0.72rem;
}

.dashboard-login__error strong {
    display: block;
    margin-bottom: 3px;
}

.dashboard-login__error p {
    margin: 0;
    line-height: 1.5;
}

.dashboard-login__card form {
    display: grid;
    gap: 18px;
}

.dashboard-login__field {
    display: grid;
    gap: 8px;
    margin: 0;
}

.dashboard-login__field label,
.dashboard-login__label-row {
    color: var(--admin-ink-soft);
    font-size: 0.68rem;
    font-weight: 800;
}

.dashboard-login__label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.dashboard-login__label-row > span {
    color: var(--admin-muted);
    font-size: 0.58rem;
    font-weight: 550;
}

.dashboard-login__control {
    min-height: 54px;
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 0 13px;
    border: 1px solid var(--admin-line-strong);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: inset 0 1px 2px rgba(20, 18, 14, 0.025);
    transition: border-color 170ms ease, box-shadow 170ms ease, background 170ms ease;
}

.dashboard-login__control:focus-within {
    border-color: var(--admin-gold);
    background: #fff;
    box-shadow: var(--admin-focus);
}

.dashboard-login__control > span:first-child {
    color: #aaa49a;
    font-size: 0.75rem;
    text-align: center;
}

.dashboard-login__control input {
    width: 100%;
    min-width: 0;
    min-height: 52px;
    padding: 0;
    border: 0;
    outline: 0;
    color: var(--admin-ink);
    background: transparent;
    font-size: 0.82rem;
}

.dashboard-login__password-toggle {
    min-width: 52px;
    min-height: var(--admin-control-min-size);
    padding: 0 10px;
    border: 0;
    border-radius: 9px;
    color: var(--admin-gold-dark);
    background: rgba(183, 147, 84, 0.1);
    font-size: 0.63rem;
    font-weight: 850;
    cursor: pointer;
}

.dashboard-login__password-toggle:hover {
    background: rgba(183, 147, 84, 0.18);
}

.dashboard-login__field-error {
    color: var(--admin-danger);
    font-size: 0.64rem;
}

.dashboard-login__submit {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 4px;
    padding: 0 19px 0 21px;
    border: 1px solid var(--admin-dark);
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(135deg, #282620, #11110f);
    box-shadow: 0 14px 34px rgba(17, 17, 15, 0.18);
    font-size: 0.75rem;
    font-weight: 850;
    cursor: pointer;
    transition: transform 180ms var(--admin-ease), box-shadow 180ms ease, background 180ms ease;
}

.dashboard-login__submit:hover {
    background: linear-gradient(135deg, #383229, #181714);
    box-shadow: 0 18px 40px rgba(17, 17, 15, 0.23);
    transform: translateY(-2px);
}

.dashboard-login__submit > span:last-child {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--admin-dark);
    background: var(--admin-gold-soft);
    font-size: 0.95rem;
}

.dashboard-login__privacy {
    margin: 19px 0 0;
    color: var(--admin-muted);
    font-size: 0.61rem;
    line-height: 1.55;
    text-align: center;
}

/* ---------------------------------------------------------
   RESPONSIVE SHELL
--------------------------------------------------------- */

@media (max-width: 1180px) {
    :root {
        --admin-sidebar-width: 268px;
    }

    .dashboard-user__copy {
        display: none;
    }

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

@media (max-width: 900px) {
    :root {
        --admin-topbar-height: 72px;
    }

    .dashboard-layout {
        display: block;
    }

    .dashboard-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 130;
        width: min(88vw, 318px);
        max-width: 100%;
        transform: translateX(-105%);
        transition: transform 260ms var(--admin-ease);
    }

    .dashboard-sidebar.is-open {
        transform: translateX(0);
        box-shadow: 30px 0 80px rgba(0, 0, 0, 0.28);
    }

    .dashboard-sidebar__close,
    .dashboard-mobile-menu-toggle {
        display: grid;
    }

    .dashboard-mobile-overlay {
        display: block;
        pointer-events: none;
    }

    .dashboard-mobile-overlay.is-visible {
        opacity: 1;
        pointer-events: auto;
    }

    .dashboard-menu-open {
        overflow: hidden;
    }

    .dashboard-topbar {
        padding-inline: clamp(18px, 4vw, 34px);
    }

    .dashboard-content {
        padding-inline: clamp(18px, 4vw, 34px);
    }

    .dashboard-login {
        grid-template-columns: 1fr;
    }

    .dashboard-login__story {
        min-height: auto;
        padding: 25px clamp(20px, 6vw, 54px);
    }

    .dashboard-login__story-copy,
    .dashboard-login__security-note {
        display: none;
    }

    .dashboard-login__panel {
        min-height: calc(100vh - 109px);
        padding: clamp(34px, 8vw, 70px) clamp(20px, 7vw, 70px);
    }

    .dashboard-login__back {
        margin-bottom: 36px;
    }
}

@media (max-width: 680px) {
    .dashboard-topbar__preview span,
    .dashboard-live-state span:last-child,
    .dashboard-user {
        display: none;
    }

    .dashboard-topbar__preview,
    .dashboard-live-state {
        width: var(--admin-control-min-size);
        padding: 0;
        justify-content: center;
    }

    .dashboard-live-state__dot {
        margin: 0;
    }

    .dashboard-heading,
    .dashboard-heading-actions,
    .dashboard-panel__header--split,
    .dashboard-lead-dashboard-overview__header,
    .dashboard-savebar {
        align-items: stretch;
        flex-direction: column;
    }

    .dashboard-heading :where(.dashboard-primary-action, .dashboard-primary-button),
    .dashboard-heading-actions :where(.dashboard-primary-action, .dashboard-primary-button),
    .dashboard-savebar .dashboard-save-button {
        width: 100%;
    }

    .dashboard-form-grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .dashboard-field--full {
        grid-column: auto;
    }

    .dashboard-savebar {
        bottom: 9px;
        padding: 14px;
    }

    .dashboard-pagination {
        grid-template-columns: 1fr 1fr;
    }

    .dashboard-pagination__current {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .dashboard-pagination__side--right {
        justify-self: stretch;
    }

    .dashboard-pagination a {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .dashboard-content {
        padding-top: 28px;
        padding-bottom: 74px;
    }

    .dashboard-topbar__title strong {
        max-width: 43vw;
    }

    .dashboard-stats,
    .dashboard-lead-stats,
    .dashboard-lead-dashboard-metrics {
        grid-template-columns: 1fr;
    }

    .dashboard-stat,
    .dashboard-lead-stat,
    .dashboard-lead-dashboard-metrics > a {
        padding: 20px;
    }

    .dashboard-panel,
    .dashboard-edit-panel,
    .dashboard-filter-panel,
    .dashboard-lead-dashboard-overview,
    .dashboard-lead-management,
    .dashboard-menu-builder,
    .plating-intro-card,
    .plating-element-form-panel {
        border-radius: 15px;
    }

    .dashboard-panel__header,
    .dashboard-edit-panel__heading,
    .dashboard-menu-builder__header {
        padding: 20px;
    }

    .dashboard-login__story {
        padding: 18px 20px;
    }

    .dashboard-login__brand img,
    .dashboard-login__monogram {
        width: 50px;
        height: 50px;
        flex-basis: 50px;
    }

    .dashboard-login__brand strong {
        font-size: 0.95rem;
    }

    .dashboard-login__panel {
        min-height: calc(100vh - 87px);
        place-items: start stretch;
        padding: 28px 20px 42px;
    }

    .dashboard-login__back {
        margin-bottom: 27px;
    }

    .dashboard-login__notice {
        grid-template-columns: 1fr;
    }

    .dashboard-login__notice-icon {
        width: 26px;
        height: 26px;
    }

    .dashboard-login__label-row > span {
        display: none;
    }
}

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