:root {
    color-scheme: light;
    --brand: #BA1827;
    --brand-dark: #9a1421;
    --brand-soft: rgba(186, 24, 39, 0.07);
    --text: #171717;
    --text-secondary: #525252;
    --muted: #737373;
    --border: #e8e8e8;
    --border-strong: #d6d6d6;
    --bg: #e4e4e4;
    --bg-main: #ffffff;
    --bg-elevated: #ffffff;
    --bg-subtle: #f7f7f7;
    --bg-hover: #f0f0f0;
    --icon-muted: #a3a3a3;
    --badge-bg: #f5f5f5;
    --badge-text: #525252;
    --badge-border: #e0e0e0;
    --alert-success-bg: #f7f7f7;
    --alert-success-text: #404040;
    --alert-success-border: #d6d6d6;
    --alert-error-bg: #fafafa;
    --alert-error-text: #9a1421;
    --alert-error-border: rgba(186, 24, 39, 0.22);
    --topbar-h: 72px;
    --header-shadow: 0 4px 8px rgba(145, 158, 171, 0.16);
    --hub-head-h: 9.5rem;
    --sidebar-width: 276px;
    --sidebar-collapsed: 72px;
    --sidebar-transition: 0.38s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.04), 0 6px 20px rgba(0, 0, 0, 0.06);
    --shadow-card-hover: 0 2px 4px rgba(0, 0, 0, 0.05), 0 12px 28px rgba(0, 0, 0, 0.1);
    --font: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
    --main-padding-x: 2.75rem;
    --panel-accent-gradient: linear-gradient(135deg, #2b1117 0%, #981A2F 52%, #5b0f1c 100%);
}

[data-theme="dark"] {
    color-scheme: dark;
    --brand: #e03a4a;
    --brand-dark: #c42f3e;
    --brand-soft: rgba(224, 58, 74, 0.12);
    --text: #ececec;
    --text-secondary: #a3a3a3;
    --muted: #737373;
    --border: #2a2a2a;
    --border-strong: #3a3a3a;
    --bg: #080808;
    --bg-main: #101010;
    --bg-elevated: #161616;
    --bg-subtle: #1a1a1a;
    --bg-hover: #222222;
    --icon-muted: #737373;
    --badge-bg: #1c1c1c;
    --badge-text: #a3a3a3;
    --badge-border: #333333;
    --alert-success-bg: #1a1a1a;
    --alert-success-text: #d4d4d4;
    --alert-success-border: #333333;
    --alert-error-bg: #1a1212;
    --alert-error-text: #f0a0a8;
    --alert-error-border: rgba(224, 58, 74, 0.35);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.45);
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.35), 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-card-hover: 0 2px 6px rgba(0, 0, 0, 0.45), 0 14px 32px rgba(0, 0, 0, 0.5);
    --header-shadow: 0 4px 8px rgba(0, 0, 0, 0.32);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--muted) 40%, transparent) transparent;
}

body::-webkit-scrollbar {
    width: 10px;
}

body::-webkit-scrollbar-track {
    background: transparent;
}

body::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--muted) 35%, transparent);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

body::-webkit-scrollbar-thumb:hover {
    background: color-mix(in srgb, var(--muted) 55%, transparent);
    background-clip: padding-box;
}

.panel-shell--authenticated .panel-sidebar {
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}

.panel-shell--authenticated .panel-sidebar:hover,
.panel-shell--authenticated .panel-sidebar:focus-within {
    scrollbar-color: color-mix(in srgb, var(--muted) 40%, transparent) transparent;
}

.panel-shell--authenticated .panel-sidebar::-webkit-scrollbar {
    width: 8px;
}

.panel-shell--authenticated .panel-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.panel-shell--authenticated .panel-sidebar::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.panel-shell--authenticated .panel-sidebar:hover::-webkit-scrollbar-thumb,
.panel-shell--authenticated .panel-sidebar:focus-within::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--muted) 35%, transparent);
    background-clip: padding-box;
}

.panel-sidebar__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0.85rem 0 1rem;
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}

.panel-sidebar__body:hover,
.panel-sidebar__body:focus-within {
    scrollbar-color: color-mix(in srgb, var(--muted) 40%, transparent) transparent;
}

.panel-sidebar__body::-webkit-scrollbar {
    width: 8px;
}

.panel-sidebar__body::-webkit-scrollbar-track {
    background: transparent;
}

.panel-sidebar__body::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.panel-sidebar__body:hover::-webkit-scrollbar-thumb,
.panel-sidebar__body:focus-within::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--muted) 35%, transparent);
    background-clip: padding-box;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

body.is-panel-loading {
    overflow: hidden;
}

.panel-page-loader {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--bg-main) 84%, transparent);
    backdrop-filter: blur(6px);
}

.panel-page-loader[hidden] {
    display: none !important;
}

.panel-page-loader__stage {
    position: relative;
    width: 7.5rem;
    height: 7.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.panel-page-loader__ring {
    position: absolute;
    inset: -0.2rem;
    border-radius: 28%;
    border: 3px solid color-mix(in srgb, var(--brand) 16%, transparent);
    border-top-color: var(--brand);
    border-right-color: color-mix(in srgb, var(--brand) 55%, transparent);
    animation: panel-page-loader-spin 0.95s linear infinite;
}

.panel-page-loader__logo {
    position: relative;
    z-index: 1;
    display: block;
    width: 5.25rem;
    height: 5.25rem;
    object-fit: contain;
}

@keyframes panel-page-loader-spin {
    to {
        transform: rotate(360deg);
    }
}

.panel-main-loader {
    position: absolute;
    inset: 0;
    z-index: 40;
    overflow: hidden;
    pointer-events: none;
    opacity: 0;
    background: var(--bg-main);
    transition: opacity 0.18s ease;
}

.panel-main-loader__skeleton {
    position: absolute;
    inset: 1.5rem 1.5rem auto;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.22s ease 0.05s, transform 0.22s ease 0.05s;
}

.panel-main.is-main-loading .panel-main-loader__skeleton {
    opacity: 1;
    transform: translateY(0);
}

.panel-main-loader[hidden] {
    display: none !important;
}

.panel-main.is-main-loading .panel-main-loader {
    opacity: 1;
}

.panel-main-loader__bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 3px;
    width: 38%;
    background: linear-gradient(
        90deg,
        transparent,
        color-mix(in srgb, var(--brand) 85%, white),
        transparent
    );
    animation: panel-main-loader-slide 1.05s ease-in-out infinite;
}

@keyframes panel-main-loader-slide {
    0% {
        transform: translateX(-120%);
    }

    100% {
        transform: translateX(320%);
    }
}

.panel-skeleton {
    display: grid;
    gap: 0.55rem;
}

.panel-skeleton--hidden {
    pointer-events: none;
}

.panel-skeleton__line {
    height: 0.72rem;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        color-mix(in srgb, var(--border) 70%, transparent) 0%,
        color-mix(in srgb, var(--border) 30%, var(--bg-main)) 50%,
        color-mix(in srgb, var(--border) 70%, transparent) 100%
    );
    background-size: 200% 100%;
    animation: panel-skeleton-shimmer 1.4s ease-in-out infinite;
}

.panel-skeleton__line--short {
    width: 42%;
}

.panel-skeleton__line--medium {
    width: 72%;
}

.panel-skeleton--card {
    padding: 0.15rem 0;
}

/* Header skeleton: eyebrow + title + lead */
.panel-skeleton--header {
    gap: 0.5rem;
    margin-bottom: 1.75rem;
}

.panel-skeleton--header .panel-skeleton__line:first-child {
    width: 28%;
    height: 0.6rem;
    margin-bottom: 0.1rem;
}

.panel-skeleton--header .panel-skeleton__line:nth-child(2) {
    width: 44%;
    height: 1.35rem;
    border-radius: 0.4rem;
}

.panel-skeleton--header .panel-skeleton__line:last-child {
    width: 66%;
    height: 0.6rem;
}

/* Stats grid skeleton: 4 cards */
.panel-skeleton--stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.15rem 1.25rem;
    margin-bottom: 1.5rem;
}

.panel-skeleton__stat {
    display: grid;
    gap: 0.6rem;
    padding: 1.25rem 1.35rem;
    border: 1px solid var(--border);
    border-radius: 1rem;
    background: var(--bg-elevated);
    min-height: 7.5rem;
}

.panel-skeleton__stat .panel-skeleton__line:first-child {
    width: 55%;
    height: 0.65rem;
}

.panel-skeleton__stat .panel-skeleton__line:last-child {
    width: 75%;
    height: 1.1rem;
    border-radius: 0.3rem;
    margin-top: 0.25rem;
}

/* Content skeleton: header text + stat grid + chart block */
.panel-skeleton--content {
    gap: 0;
}

.panel-skeleton--content .panel-skeleton__blocks {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.15rem 1.25rem;
    margin-top: 0.35rem;
    margin-bottom: 1.5rem;
}

.panel-skeleton--content .panel-skeleton__chart-block {
    border-radius: 1rem;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    min-height: 16rem;
}

.panel-skeleton__block {
    min-height: 7.5rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
}

@keyframes panel-skeleton-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

@media (max-width: 960px) {
    .panel-skeleton--stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .panel-skeleton--content .panel-skeleton__blocks {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .panel-skeleton--content .panel-skeleton__blocks {
        grid-template-columns: 1fr;
    }
}

.panel-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.panel-body {
    display: flex;
    flex: 1;
    min-height: 0;
    align-items: stretch;
    overflow: visible;
}

.panel-workspace {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100vh;
}

/* —— Sidebar —— */
.panel-sidebar {
    position: relative;
    width: var(--sidebar-width);
    flex-shrink: 0;
    background: var(--bg-elevated);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    transition: width var(--sidebar-transition);
    overflow: visible;
    z-index: 5;
}

.panel-sidebar__toggle {
    position: absolute;
    top: 1.35rem;
    right: -11px;
    z-index: 260;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 1px solid var(--border-strong);
    border-radius: 50%;
    background: var(--bg-elevated);
    color: var(--text-secondary);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.15s, border-color 0.15s, background 0.15s;
}

.panel-sidebar__toggle:hover {
    border-color: var(--border-strong);
    color: var(--text-secondary);
    background: var(--bg-hover);
    box-shadow: var(--shadow-md);
}

.panel-sidebar__toggle-icon {
    transition: transform var(--sidebar-transition);
}

.panel-shell.is-sidebar-collapsed .panel-sidebar__toggle-icon {
    transform: rotate(180deg);
}

.panel-sidebar__head {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    min-height: var(--topbar-h);
    height: var(--topbar-h);
    padding: 0 0.85rem;
    background: var(--bg-elevated);
}

.panel-sidebar__context.panel-sidebar__context--head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
    width: 100%;
    padding: 0;
    margin: 0;
    text-decoration: none;
    color: inherit;
    border-radius: 0;
}

.panel-sidebar__context--head:hover,
.panel-sidebar__context--head:focus-visible {
    background: transparent;
    outline: none;
}

.panel-sidebar__context--head:hover .panel-sidebar__context-name {
    color: var(--brand);
}

.panel-sidebar__brand {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
    color: var(--text);
    font-weight: 700;
    font-size: 0.9375rem;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.panel-sidebar__brand:hover,
.panel-sidebar__brand:focus-visible {
    color: var(--brand);
}

.panel-sidebar__brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    overflow: hidden;
}

.panel-sidebar__brand-icon .brand-logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.panel-sidebar__brand-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.panel-shell.is-sidebar-collapsed .panel-sidebar__brand-label {
    display: none;
}

.panel-shell.is-sidebar-collapsed .panel-sidebar__head {
    justify-content: center;
    padding: 0 0.5rem;
}

.panel-shell.is-sidebar-collapsed .panel-sidebar__context.panel-sidebar__context--head {
    justify-content: center;
    padding: 0;
    margin: 0;
    width: auto;
}

.panel-shell.is-sidebar-collapsed .panel-sidebar__brand {
    justify-content: center;
}

.panel-sidebar__context {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.35rem 0.65rem 0.85rem;
    margin: 0 0.5rem 0.35rem;
    min-width: 0;
}

.panel-sidebar__context-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: var(--radius-md);
    border: 0;
    background: transparent;
    overflow: hidden;
}

.panel-sidebar__context-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.panel-sidebar__context-text {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.15rem;
    min-height: 2.25rem;
}

.panel-sidebar__context-label {
    display: block;
    color: var(--muted);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.2;
    margin: 0;
}

.panel-sidebar__context-name {
    display: block;
    overflow: hidden;
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1.2;
    color: var(--text);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.panel-sidebar__section {
    padding: 0 0.65rem;
}

.panel-sidebar__section--gallery {
    flex: 0 0 auto;
}

.panel-sidebar__section--global {
    flex: 0 0 auto;
}

.panel-sidebar__section--separated {
    margin-top: auto;
    padding-top: 0.65rem;
    border-top: 1px solid var(--border);
}

.panel-sidebar__section-label {
    margin: 0.5rem 0.75rem 0.35rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    transition: opacity var(--sidebar-transition), max-height var(--sidebar-transition);
    max-height: 2rem;
}

.panel-sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0 0 0.15rem;
}

.panel-sidebar__link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.75rem;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9375rem;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}

.panel-sidebar__icon {
    flex-shrink: 0;
    width: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.panel-sidebar__label {
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity var(--sidebar-transition), max-width var(--sidebar-transition);
    max-width: 12rem;
}

.panel-sidebar__link:hover {
    background: var(--bg-hover);
    color: var(--text);
}

.panel-sidebar__link.is-active {
    background: var(--brand-soft);
    color: var(--brand);
}

.panel-sidebar__badge {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.125rem;
    height: 1.125rem;
    padding: 0 0.2rem;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font-size: 0.625rem;
    font-weight: 700;
    line-height: 1;
    text-align: center;
}

.panel-shell.is-sidebar-collapsed .panel-sidebar__badge {
    display: none;
}

.panel-sidebar__group {
    border-radius: var(--radius-md);
}

.panel-sidebar__group.is-open {
    background: transparent;
    padding: 0;
    margin: 0;
}

.panel-sidebar__link--group {
    gap: 0.75rem;
    width: 100%;
    border: none;
    background: transparent;
    cursor: pointer;
    font: inherit;
    text-align: left;
    border-radius: var(--radius-md);
    outline: none;
    box-shadow: none;
}

.panel-sidebar__link--group:hover {
    background: var(--bg-hover);
    color: var(--text);
}

.panel-sidebar__link--group:focus,
.panel-sidebar__link--group:focus-visible {
    outline: none;
    box-shadow: none;
}

.panel-sidebar__link--group:focus-visible {
    background: var(--bg-hover);
}

.panel-sidebar__link--group .panel-sidebar__label {
    flex: 1;
    min-width: 0;
}

.panel-sidebar__group-chevron-wrap {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    margin-left: auto;
    border-radius: var(--radius-sm);
    color: var(--muted);
    pointer-events: none;
}

.panel-sidebar__group.is-open .panel-sidebar__group-chevron {
    transform: rotate(180deg);
}

.panel-sidebar__group-chevron {
    transition: transform 0.28s ease;
}

.panel-sidebar__subnav-panel {
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    transition: grid-template-rows 0.28s ease;
}

.panel-sidebar__group.is-open .panel-sidebar__subnav-panel {
    grid-template-rows: 1fr;
}

.panel-sidebar__subnav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0 0.65rem 0 1.75rem;
}

.panel-sidebar__group.is-open .panel-sidebar__subnav {
    margin: 0.15rem 0 0.35rem;
    padding: 0.25rem 0.65rem 0.35rem 1.75rem;
}

.panel-sidebar__sublink {
    display: flex;
    align-items: center;
    min-height: 36px;
    padding: 0 0.75rem;
    margin: 0;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease;
}

.panel-sidebar__sublink.is-locked {
    cursor: not-allowed;
    opacity: 0.45;
    user-select: none;
}

.panel-sidebar__sublink.is-locked:hover {
    background: transparent;
    color: var(--muted);
}

.panel-sidebar__sublink:hover:not(.is-active):not(.is-locked) {
    background: var(--bg-hover);
    color: var(--text);
}

.panel-sidebar__sublink.is-active {
    color: var(--brand);
    background: var(--brand-soft);
    font-weight: 600;
}

.panel-sidebar__sublink-badge {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.125rem;
    height: 1.125rem;
    padding: 0 0.2rem;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font-size: 0.625rem;
    font-weight: 700;
    line-height: 1;
    text-align: center;
}

.panel-shell.is-sidebar-collapsed .panel-sidebar__subnav-panel {
    display: none;
}

.panel-shell.is-sidebar-collapsed .panel-sidebar__group {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.panel-shell.is-sidebar-collapsed .panel-sidebar__body {
    overflow-x: visible;
}

.panel-shell--authenticated.is-sidebar-collapsed .panel-sidebar {
    overflow-x: visible;
}

.panel-sidebar__collapsed-picker {
    position: fixed;
    z-index: 420;
    min-width: 12.5rem;
    max-width: min(16rem, calc(100vw - 5rem));
    padding: 0.35rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-elevated);
    box-shadow: var(--shadow-md);
}

.panel-sidebar__collapsed-select {
    display: block;
    width: 100%;
    padding: 0.5rem 2rem 0.5rem 0.65rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--text);
    font: inherit;
    font-size: 0.8125rem;
    line-height: 1.35;
    cursor: pointer;
    appearance: auto;
}

.panel-sidebar__collapsed-select:focus {
    outline: 2px solid color-mix(in srgb, var(--accent) 35%, transparent);
    outline-offset: 1px;
}

.panel-shell.is-sidebar-collapsed .panel-sidebar__group.is-picker-open .panel-sidebar__link--group {
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    color: var(--accent);
}

.panel-shell.is-sidebar-collapsed .panel-sidebar__group-chevron-wrap {
    display: none;
}

.panel-shell.is-sidebar-collapsed .panel-sidebar {
    width: var(--sidebar-collapsed);
}

.panel-shell.is-sidebar-collapsed .panel-sidebar__context-text,
.panel-shell.is-sidebar-collapsed .panel-sidebar__section-label {
    display: none;
}

.panel-shell.is-sidebar-collapsed .panel-sidebar__context {
    justify-content: center;
    gap: 0;
    padding: 0.65rem 0;
    margin: 0 0 0.5rem;
}

.panel-shell.is-sidebar-collapsed .panel-sidebar__context.panel-sidebar__context--head {
    padding: 0;
    margin: 0;
}

.panel-shell.is-sidebar-collapsed .panel-sidebar__context-logo {
    width: 1.75rem;
    height: 1.75rem;
    margin: 0;
}

.panel-shell.is-sidebar-collapsed .panel-sidebar__section--separated {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
}

.panel-shell.is-sidebar-collapsed .panel-sidebar__nav {
    align-items: center;
    padding-left: 0;
    padding-right: 0;
}

.panel-shell.is-sidebar-collapsed .panel-sidebar__label {
    display: none;
}

.panel-shell.is-sidebar-collapsed .panel-sidebar__link {
    justify-content: center;
    width: 2.75rem;
    min-width: 2.75rem;
    margin: 0 auto;
    padding: 0.65rem 0;
    gap: 0;
}

.panel-shell.is-sidebar-collapsed .panel-sidebar__link--group {
    width: 2.75rem;
}

/* —— Layout fixo (autenticado): sidebar full-height + topbar só na área de conteúdo —— */
.panel-shell--authenticated .panel-body {
    min-height: 100vh;
}

.panel-shell--authenticated .panel-workspace {
    margin-left: var(--sidebar-width);
    transition: margin-left var(--sidebar-transition);
}

.panel-shell--authenticated.is-sidebar-collapsed .panel-workspace {
    margin-left: var(--sidebar-collapsed);
}

.panel-shell--authenticated .panel-topbar {
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    z-index: 200;
    height: var(--topbar-h);
    min-height: var(--topbar-h);
    transition: left var(--sidebar-transition);
}

.panel-shell--authenticated.is-sidebar-collapsed .panel-topbar {
    left: var(--sidebar-collapsed);
}

.panel-shell--authenticated .panel-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    height: 100vh;
    overflow-x: visible;
    overflow-y: auto;
    z-index: 210;
    transition: width var(--sidebar-transition);
    border-right: 1px solid var(--border);
}

/* Toggle na borda da sidebar — sempre acima do conteúdo */
.panel-shell--authenticated .panel-sidebar__toggle {
    position: fixed;
    top: calc(var(--topbar-h) / 2 - 11px);
    left: calc(var(--sidebar-width) - 11px);
    right: auto;
    z-index: 350;
    transition: left var(--sidebar-transition), box-shadow 0.15s, border-color 0.15s;
}

.panel-shell--authenticated.is-sidebar-collapsed .panel-sidebar__toggle {
    left: calc(var(--sidebar-collapsed) - 11px);
}

.panel-shell--authenticated .panel-main {
    margin-left: 0;
    margin-top: var(--topbar-h);
    min-height: calc(100vh - var(--topbar-h));
    padding-left: var(--main-padding-x);
    padding-right: var(--main-padding-x);
    background: var(--bg-main);
    transition: background 0.2s;
}

.panel-shell--authenticated.is-sidebar-collapsed .panel-main {
    margin-left: 0;
}

.panel-shell--authenticated.is-sidebar-collapsed .hub-head {
    left: var(--sidebar-collapsed);
}

/* —— Topbar (transparente no topo; leve blur ao rolar) —— */
.panel-topbar {
    background: var(--bg-elevated);
    color: var(--text);
    padding: 0;
    min-height: var(--topbar-h);
    box-shadow: none;
    border-bottom: none;
    backdrop-filter: none;
    transition: background 0.2s ease, backdrop-filter 0.2s ease;
}

.panel-topbar.is-scrolled {
    background: color-mix(in srgb, var(--bg-elevated) 86%, transparent);
    backdrop-filter: blur(10px);
}

.panel-topbar__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    height: var(--topbar-h);
    min-height: var(--topbar-h);
    padding: 0 var(--main-padding-x);
}

.panel-topbar__brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.02em;
    color: var(--text);
    min-width: 0;
}

.panel-topbar__brand:hover,
.panel-topbar__brand:focus-visible {
    color: var(--text);
}

.panel-topbar__brand .brand-logo {
    display: block;
    flex-shrink: 0;
    object-fit: contain;
}

.panel-topbar__start {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.panel-topbar__menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    background: var(--bg-subtle);
    color: var(--text-secondary);
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.panel-topbar__menu-btn:hover {
    background: var(--bg-hover);
    border-color: var(--border-strong);
    color: var(--text);
}

.panel-topbar__menu-icon--close {
    display: none;
}

.panel-shell.is-mobile-nav-open .panel-topbar__menu-icon--open {
    display: none;
}

.panel-shell.is-mobile-nav-open .panel-topbar__menu-icon--close {
    display: inline-flex;
}

.panel-mobile-nav-backdrop {
    display: none;
}

.panel-topbar__meta {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

/* —— Theme switch —— */
.theme-switch {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
    cursor: pointer;
    user-select: none;
}

.theme-switch input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.theme-switch__track {
    position: relative;
    display: block;
    width: 3.25rem;
    height: 1.75rem;
    border-radius: 999px;
    transition: background 0.22s ease, border-color 0.22s ease;
}

.theme-switch__icons {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.45rem;
    pointer-events: none;
    z-index: 1;
}

.theme-switch__icons .iconify {
    opacity: 0.85;
}

.theme-switch__thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
    transition: transform 0.24s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.theme-switch input:checked + .theme-switch__track .theme-switch__thumb {
    transform: translateX(1.5rem);
}

.theme-switch--topbar .theme-switch__track {
    background: #fff;
    border: none;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.14);
}

.theme-switch--topbar .theme-switch__icons {
    color: #8a8a8a;
}

.theme-switch--topbar .theme-switch__icons .iconify:first-child {
    color: #b8860b;
}

.theme-switch--topbar .theme-switch__thumb {
    background: #BA1827;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
}

.theme-switch--topbar input:checked + .theme-switch__track .theme-switch__thumb {
    background: #1a1a1a;
}

.theme-switch--topbar:hover .theme-switch__track {
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.18);
}

.theme-switch--surface .theme-switch__track {
    background: var(--bg-subtle);
    border: 1px solid var(--border-strong);
}

.theme-switch--surface .theme-switch__icons {
    color: var(--muted);
}

.theme-switch--surface .theme-switch__thumb {
    background: var(--bg-elevated);
}

/* —— Topbar user menu —— */
.topbar-user {
    position: relative;
}

.topbar-user__trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.15rem 0.15rem 0.15rem 0.25rem;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    transition: background 0.15s;
}

.topbar-user__trigger:hover,
.topbar-user.is-open .topbar-user__trigger {
    background: var(--bg-hover);
}

.topbar-user__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.125rem;
    height: 2.125rem;
    border-radius: 50%;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    transition: background 0.15s, color 0.15s;
}

.topbar-user__avatar--lg {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 0.8125rem;
    flex-shrink: 0;
}

.topbar-user__chevron {
    color: var(--muted);
    transition: transform 0.2s ease;
}

.topbar-user.is-open .topbar-user__chevron {
    transform: rotate(180deg);
}

.topbar-user__dropdown {
    position: absolute;
    top: calc(100% + 0.55rem);
    right: 0;
    z-index: 400;
    min-width: 15.5rem;
    padding: 0.85rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.topbar-user__dropdown[hidden] {
    display: none;
}

.topbar-user__head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.topbar-user__info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.topbar-user__name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.25;
}

.topbar-user__role {
    font-size: 0.8125rem;
    color: var(--muted);
}

.topbar-user__context {
    margin: 0.65rem 0 0;
    padding: 0.55rem 0.65rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-subtle);
    border-radius: var(--radius-md);
    line-height: 1.35;
}

.topbar-user__actions {
    margin-top: 0.65rem;
}

.topbar-user__actions form {
    margin: 0;
}

.topbar-user__logout {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-main);
    color: var(--text-secondary);
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.topbar-user__logout:hover {
    background: var(--bg-hover);
    border-color: var(--border-strong);
    color: var(--text);
}

/* —— Main —— */
.panel-main {
    position: relative;
    flex: 1;
    min-width: 0;
    padding: 1.5rem var(--main-padding-x) 2.5rem;
}

.panel-shell--authenticated .panel-main > .page-dashboard {
    max-width: none;
}

.panel-shell--authenticated .panel-main > .page-wallet--bank-accounts {
    max-width: none;
}

.panel-shell--authenticated .panel-main > .page-orders {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.panel-card {
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.page-eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.page-title {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text);
    line-height: 1.2;
}

.page-lead {
    margin: 0.5rem 0 0;
    color: var(--muted);
    font-size: 0.9375rem;
    max-width: 42rem;
}

.dash-header__text {
    flex: 1;
    min-width: min(100%, 42rem);
}

/* —— Hub —— */
.page-hub {
    margin: -1.5rem -2rem 0;
}

.hub-head {
    position: fixed;
    top: var(--topbar-h);
    left: var(--sidebar-width);
    right: 0;
    z-index: 90;
    background: var(--bg-main);
    border-bottom: 1px solid var(--border);
    transition: left var(--sidebar-transition), background 0.2s;
}

.hub-head__inner {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1.25rem 2rem 1.35rem;
    max-width: 100%;
}

.hub-head__intro {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.hub-head__title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text);
    line-height: 1.2;
}

.hub-content {
    padding: 0 2rem 2.5rem;
}

.hub-wallet-panel {
    margin: 0 0 1.5rem;
}

.page-hub--with-head.page-hub--with-wallet .hub-content {
    padding-top: calc(var(--hub-head-h) + 1rem);
}

.hub-wallet-panel__body {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    padding: 1rem 1.25rem 1.25rem;
}

.hub-wallet-panel__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem 2rem;
}

.hub-wallet-panel__stat {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.hub-wallet-panel__label {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.hub-wallet-panel__value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
}

.hub-wallet-panel__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.hub-wallet-panel__lead {
    margin: 0;
    flex: 1 1 220px;
}

.page-hub--with-head .hub-content {
    padding-top: calc(var(--hub-head-h) + 2rem);
}

.page-hub--with-head .hub-grid {
    padding-top: 0.5rem;
}

.hub-search {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    padding: 0.6rem 0.95rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    background: var(--bg-elevated);
    box-shadow: var(--shadow-sm);
    color: var(--muted);
}

.hub-search:focus-within {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-soft);
}

.hub-search input {
    border: none;
    background: transparent;
    flex: 1;
    font: inherit;
    font-size: 0.9375rem;
    color: var(--text);
    outline: none;
    min-width: 0;
}

.hub-search input::placeholder {
    color: var(--icon-muted);
}

.hub-results-meta {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--muted);
    white-space: nowrap;
}

.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-top: 0;
}

/* Lucide / Iconify: traço mais fino que MDI */
.panel-sidebar__icon .iconify,
.panel-topbar__brand .iconify,
.hub-search .iconify,
.hub-card__action .iconify {
    opacity: 0.88;
}

.hub-card {
    position: relative;
    border-radius: var(--radius-lg);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.hub-card:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.hub-card[hidden] {
    display: none;
}

.hub-card__form {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1.25rem 1.35rem;
    margin: 0;
    border: none;
    background: none;
    width: 100%;
    cursor: pointer;
    font: inherit;
    color: inherit;
    position: relative;
    z-index: 0;
}

.hub-card__logo-wrap {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    overflow: hidden;
}

.hub-card__logo {
    max-width: 72px;
    max-height: 72px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.hub-card__title {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
}

.hub-card__subtitle {
    margin: 0.35rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.4;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hub-card__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 1rem;
    padding: 0.5rem 0.85rem;
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--brand);
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.hub-card__action:hover {
    background: var(--brand-soft);
    border-color: rgba(186, 24, 39, 0.15);
    color: var(--brand-dark);
}

.hub-card__form:focus-within .hub-card__action {
    outline: 2px solid var(--brand-soft);
    outline-offset: 2px;
}

.hub-card--locked {
    opacity: 0.92;
}

.hub-card--locked:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
}

.hub-card__form--locked {
    cursor: default;
}

.hub-card__logo-wrap--muted {
    opacity: 0.55;
    filter: grayscale(0.35);
}

.hub-card__lock-msg {
    margin: 0.5rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--muted);
}

.hub-card__action--locked {
    color: var(--muted);
    cursor: default;
    pointer-events: none;
}

.hub-card__action--locked:hover {
    background: transparent;
    border-color: transparent;
}

.hub-grid--persona {
    max-width: 720px;
    margin: 0 auto;
}

.hub-persona-head {
    text-align: center;
    margin-bottom: 2rem;
}

.hub-card--persona .hub-card__icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--brand-soft);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.hub-card__text {
    margin: 0.5rem 0 0;
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.45;
}

.panel-sidebar__switch-form {
    margin: 0;
}

.panel-sidebar__link--switch {
    width: 100%;
    border: none;
    background: none;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.panel-persona-switch {
    margin: 0 0 0.65rem;
    padding: 0 0.65rem;
}

.panel-persona-switch__track {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    width: 100%;
    margin: 0;
    padding: 3px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--bg-subtle, rgba(0, 0, 0, 0.04));
    cursor: pointer;
    font: inherit;
    color: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.panel-persona-switch__track:hover {
    border-color: var(--border-strong);
}

.panel-persona-switch__track:focus-visible {
    outline: 2px solid var(--brand, #c0392b);
    outline-offset: 2px;
}

.panel-persona-switch__track:active .panel-persona-switch__slider {
    width: calc((100% - 6px) / 2);
}

.panel-persona-switch__slider {
    position: absolute;
    top: 3px;
    bottom: 3px;
    left: 3px;
    width: calc((100% - 6px) / 2);
    border-radius: 999px;
    background: var(--bg-elevated, #fff);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08), 0 2px 8px rgba(15, 23, 42, 0.06);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1), width 0.12s ease;
    z-index: 0;
    pointer-events: none;
}

.panel-persona-switch__track.is-consignor .panel-persona-switch__slider {
    transform: translateX(100%);
}

.panel-persona-switch__seg {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 2rem;
    padding: 0.4rem 0.55rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-muted);
    transition: color 0.24s ease;
    user-select: none;
}

.panel-persona-switch__track.is-gallery .panel-persona-switch__seg--gallery,
.panel-persona-switch__track.is-consignor .panel-persona-switch__seg--consignor {
    color: var(--text);
}

.panel-persona-switch__icon {
    flex-shrink: 0;
    opacity: 0.72;
    transition: opacity 0.24s ease;
}

.panel-persona-switch__track.is-gallery .panel-persona-switch__seg--gallery .panel-persona-switch__icon,
.panel-persona-switch__track.is-consignor .panel-persona-switch__seg--consignor .panel-persona-switch__icon {
    opacity: 1;
}

.panel-persona-switch__text {
    white-space: nowrap;
}

.panel-shell.is-sidebar-collapsed .panel-persona-switch {
    padding: 0 0.35rem;
}

.panel-shell.is-sidebar-collapsed .panel-persona-switch__track {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
    border-radius: var(--radius-md, 10px);
    padding: 2px;
}

.panel-shell.is-sidebar-collapsed .panel-persona-switch__slider {
    left: 2px;
    width: calc(100% - 4px);
    height: calc((100% - 4px) / 2);
    transform: translateY(0);
}

.panel-shell.is-sidebar-collapsed .panel-persona-switch__track.is-consignor .panel-persona-switch__slider {
    transform: translateY(100%);
}

.panel-shell.is-sidebar-collapsed .panel-persona-switch__text {
    display: none;
}

.panel-shell.is-sidebar-collapsed .panel-persona-switch__seg {
    min-height: 1.75rem;
    padding: 0.35rem;
}

.panel-shell.is-sidebar-collapsed .panel-persona-switch__seg--consignor {
    order: 2;
}

.panel-shell.is-sidebar-collapsed .panel-persona-switch__seg--gallery {
    order: 1;
}

.hub-empty-search {
    margin-top: 2rem;
    text-align: center;
    color: var(--muted);
    font-size: 0.9375rem;
}

.empty-state {
    padding: 3rem 1rem;
    text-align: center;
    color: var(--muted);
    background: var(--bg-elevated);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-lg);
}

/* —— Dashboard —— */
.page-dashboard {
    max-width: none;
}

.dash-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.15rem 1.25rem;
    margin-bottom: 1.5rem;
}

.dash-stat-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 100px;
    align-items: center;
    gap: 0.75rem 1rem;
    min-height: 7.5rem;
    padding: 1.25rem 1.35rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 1rem;
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.22s ease, border-color 0.22s ease;
}

.dash-stat-card:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-card-hover);
}

.dash-stat-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-width: 0;
}

.dash-stat-card__label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}

.dash-stat-card__value {
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--text);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.dash-stat-card__value--currency {
    font-size: 1.125rem;
}

.dash-stat-card__meta {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.dash-stat-card__spark {
    flex-shrink: 0;
    width: 100px;
    height: 66px;
    overflow: visible;
}

.dash-stat-card__spark .apexcharts-canvas {
    cursor: default;
}

.dash-stat-card__spark .apexcharts-tooltip {
    z-index: 30;
    overflow: visible;
}

.dash-analytics-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.75fr);
    gap: 1.15rem 1.25rem;
    margin-bottom: 1.5rem;
    align-items: stretch;
}

.dash-analytics-grid--full {
    grid-template-columns: minmax(0, 1fr);
}

.dash-wallet-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.dash-wallet-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 1rem;
    padding: 1.15rem 1.5rem 1.5rem;
    min-height: 0;
}

.dash-wallet-card__list {
    display: grid;
    gap: 0;
    margin: 0;
    flex: 1;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-elevated);
}

.dash-wallet-card__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 0.95rem;
    border-bottom: 1px solid var(--border);
}

.dash-wallet-card__row:last-child {
    border-bottom: none;
}

.dash-wallet-card__row--highlight {
    background: var(--bg-subtle);
    padding-top: 0.95rem;
    padding-bottom: 0.95rem;
}

.dash-wallet-card__label-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.dash-wallet-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: var(--radius-sm);
    background: var(--bg-subtle);
    color: var(--muted);
    flex-shrink: 0;
}

.dash-wallet-card__row--highlight .dash-wallet-card__icon {
    background: var(--brand-soft);
    color: var(--brand);
}

.dash-wallet-card__row dt {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.dash-wallet-card__row dd {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.dash-wallet-card__row--highlight dd {
    font-size: 1.35rem;
    letter-spacing: -0.02em;
}

.dash-wallet-card__cta {
    width: 100%;
    margin-top: auto;
    flex-shrink: 0;
}

.dash-empty--compact {
    padding: 1.5rem 0 0.25rem;
    text-align: left;
    flex: 1;
}

.dash-empty--compact .dash-empty__text {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
}

.dash-panel--top-buyers,
.dash-panel--top-sales {
    margin-bottom: 1.5rem;
}

.dash-table__title,
.dash-table__lot {
    display: block;
    max-width: 16rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
}

.dash-table--ranked .dash-table__person {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.dash-table__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.dash-table__person-name {
    font-weight: 600;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dash-table__center {
    text-align: center;
}

.dash-table thead th.dash-table__center,
.dash-table tbody td.dash-table__center {
    text-align: center;
}

.dash-table tbody td.dash-table__center .dash-table__cell-link,
.dash-table tbody td.dash-table__center .dash-table__cell-text {
    text-align: center;
}

.dash-table__right {
    text-align: right;
}

.dash-rank-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(24, 119, 242, 0.1);
    color: #1877F2;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

[data-theme="dark"] .dash-rank-badge {
    background: rgba(96, 165, 250, 0.15);
    color: #93c5fd;
}

.dash-panel.dash-panel--minimal {
    overflow: visible;
}

.dash-panel--minimal .dash-panel__head {
    background: transparent;
    color: inherit;
    border-bottom: 1px solid var(--border);
}

.dash-panel--minimal .dash-panel__title {
    color: var(--text);
}

.dash-panel--minimal .dash-panel__subtitle {
    color: var(--muted);
}

.dash-panel--minimal .dash-panel__link {
    color: var(--brand);
    padding-top: 0.2rem;
}

.dash-panel--minimal .dash-panel__link:hover {
    color: var(--brand-strong, var(--brand));
}

.dash-chart-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.5rem;
    padding: 1rem 1.5rem 0;
}

.dash-chart-summary__item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.dash-chart-summary__label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.dash-chart-summary__value {
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

.dash-chart-summary__pct {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted);
}

.dash-chart-panel__body {
    padding: 0.75rem 0.5rem 1.25rem;
}

.dash-donut-panel__body {
    padding: 0.5rem 1rem 1.25rem;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dash-donut-empty {
    margin: 0;
    font-size: 0.875rem;
    color: var(--muted);
}

#dashboard-orders-chart,
#dashboard-status-donut {
    width: 100%;
}

.dash-kpis-carousel--minimal {
    margin-bottom: 1.5rem;
}

.dash-kpis--minimal {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dash-kpi--minimal {
    min-height: 6.75rem;
    padding: 1rem 1.15rem;
    border-radius: 1rem;
    border-left-width: 3px;
    border-left-style: solid;
}

.dash-kpi--minimal.status-pending { border-left-color: #d97706; }
.dash-kpi--minimal.status-paid { border-left-color: #16a34a; }
.dash-kpi--minimal.status-preparing { border-left-color: #ea580c; }
.dash-kpi--minimal.status-shipped { border-left-color: #57534e; }
.dash-kpi--minimal.status-delivered { border-left-color: #0d9488; }
.dash-kpi--minimal.status-expired { border-left-color: #c2410c; }

.dash-kpi--minimal .dash-kpi__icon {
    width: 2rem;
    height: 2rem;
    border: none;
    background: var(--bg-subtle);
}

.dash-kpi--minimal .dash-kpi__value {
    font-size: 1.625rem;
}

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

.dash-panel--table.dash-panel--minimal:not(:has(.dash-panel__head)) .dash-table-wrap {
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.dash-panel--table.dash-panel--minimal:not(:has(.dash-panel__head)) .dash-table thead th:first-child {
    border-top-left-radius: var(--radius-lg);
}

.dash-panel--table.dash-panel--minimal:not(:has(.dash-panel__head)) .dash-table thead th:last-child {
    border-top-right-radius: var(--radius-lg);
}

.dash-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.dash-table thead th {
    padding: 0.85rem 1.25rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: left;
    color: var(--muted);
    background: var(--bg-subtle);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.dash-table tbody td {
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.dash-table__row:hover {
    background: var(--bg-hover);
}

.dash-table__row--clickable {
    cursor: pointer;
    transition: background 0.12s;
}

.dash-table__row--clickable:focus-visible {
    outline: none;
    box-shadow: inset 0 0 0 2px var(--brand-soft);
}

.dash-table__row:last-child td {
    border-bottom: none;
}

.dash-table__thumb {
    width: 52px;
    padding-right: 0.5rem;
}

.dash-table__primary-link,
.dash-table__cell-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.orders-lot-preview-trigger {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    background: none;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.orders-lot-preview-trigger:hover {
    color: var(--brand);
}

.dash-table__cell-text {
    display: block;
}

.dash-table__cell-link--center {
    text-align: center;
}

.dash-table__number {
    display: block;
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.dash-table__meta {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.75rem;
    color: var(--muted);
}

.dash-table__buyer {
    font-weight: 600;
    max-width: 12rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dash-table__amount {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.dash-table__status .badge {
    white-space: nowrap;
}

.dash-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    margin-bottom: 1.75rem;
}

.dash-header--with-filter {
    align-items: center;
}

.dash-header--with-actions {
    align-items: center;
}

.dash-period-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 0.85rem;
}

.dash-period-filter .dash-period-select {
    flex-shrink: 0;
    width: 15rem;
    min-width: 15rem;
}

.dash-period-filter .dash-period-select .ui-select__control {
    width: 100%;
}

.dash-period-filter .dash-period-select .ui-select__trigger {
    min-height: 2.625rem;
    padding: 0.55rem 0.75rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-strong);
    background: var(--bg-elevated);
    font-size: 0.875rem;
}

.dash-period-filter .dash-period-select .ui-select__value-wrap {
    gap: 0.5rem;
    min-width: 0;
}

.dash-period-filter .dash-period-select .ui-select__value-icon {
    display: inline-flex;
    color: var(--text-secondary);
}

.dash-period-filter .dash-period-select .ui-select__value {
    white-space: nowrap;
}

.dash-period-filter .dash-period-select .ui-select__menu {
    min-width: 15rem;
    width: 15rem;
    padding: 0.4rem;
}

.dash-period-filter .dash-period-select .ui-select__option {
    padding: 0.6rem 0.7rem;
}

.dash-period-filter .dash-period-select .ui-select__option-label {
    white-space: nowrap;
}

.dash-period-filter .dash-period-select.is-open .ui-select__trigger,
.dash-period-filter .dash-period-select .ui-select__trigger:hover {
    border-color: var(--border-strong);
    background: var(--bg-elevated);
}

.dash-period-filter .dash-period-select.is-open .ui-select__trigger {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-soft);
}

.dash-period-filter__custom {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.65rem;
}

.dash-period-range__trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.625rem;
    min-width: 14.5rem;
    padding: 0.55rem 0.85rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    background: var(--bg-elevated);
    color: var(--text);
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.12s, box-shadow 0.12s;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='18' x='3' y='4' rx='2' ry='2'/%3E%3Cline x1='16' x2='16' y1='2' y2='6'/%3E%3Cline x1='8' x2='8' y1='2' y2='6'/%3E%3Cline x1='3' x2='21' y1='10' y2='10'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 0.85rem center;
    padding-left: 2.35rem;
}

.dash-period-range__trigger::placeholder {
    color: var(--muted);
    font-weight: 500;
}

.dash-period-range__trigger:hover,
.dash-period-range__trigger:focus-visible {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-soft);
    outline: none;
}

.flatpickr-calendar {
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg, 0 12px 32px rgba(15, 23, 42, 0.14));
    background: var(--bg-elevated);
    font-family: inherit;
    z-index: 1200;
}

.flatpickr-months,
.flatpickr-innerContainer,
.flatpickr-rContainer,
.flatpickr-months .flatpickr-month,
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-weekdays,
.flatpickr-days,
.flatpickr-dayContainer {
    background: var(--bg-elevated);
}

.flatpickr-current-month,
.flatpickr-weekday,
.flatpickr-day {
    color: var(--text);
}

.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
    color: var(--muted);
}

.flatpickr-day.today:not(.selected):not(.startRange):not(.endRange):not(.inRange) {
    border-color: var(--brand);
}

.dash-period-flatpickr .flatpickr-day {
    user-select: none;
    border: 1px solid transparent !important;
    box-shadow: none !important;
}

.dash-period-flatpickr .flatpickr-day.startRange,
.dash-period-flatpickr .flatpickr-day.endRange,
.dash-period-flatpickr .flatpickr-day.selected {
    background: rgba(186, 24, 39, 0.62) !important;
    border-color: transparent !important;
    color: #fff !important;
}

.dash-period-flatpickr .flatpickr-day.inRange {
    background: rgba(186, 24, 39, 0.1) !important;
    border-color: transparent !important;
    box-shadow: none !important;
    color: var(--text) !important;
}

.dash-period-flatpickr .flatpickr-day.today.startRange,
.dash-period-flatpickr .flatpickr-day.today.endRange,
.dash-period-flatpickr .flatpickr-day.today.inRange,
.dash-period-flatpickr .flatpickr-day.today.selected {
    border-color: transparent !important;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected.inRange,
.flatpickr-day.startRange.inRange,
.flatpickr-day.endRange.inRange {
    background: var(--brand);
    border-color: transparent;
    color: #fff;
}

.flatpickr-day.inRange {
    background: var(--brand-soft);
    border-color: transparent;
    box-shadow: none;
    color: var(--text);
}

.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover,
.flatpickr-day.flatpickr-disabled:focus {
    color: var(--muted) !important;
    opacity: 0.42;
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    cursor: not-allowed;
}

.dash-period-flatpickr.is-range-dragging {
    cursor: grabbing;
}

.dash-period-flatpickr.is-range-dragging .flatpickr-day {
    cursor: grabbing;
}

.flatpickr-day:hover,
.flatpickr-day:focus {
    background: var(--bg-hover);
    color: var(--text);
    border-color: transparent;
}

.dash-period-flatpickr .flatpickr-day.inRange:hover,
.dash-period-flatpickr .flatpickr-day.startRange:hover,
.dash-period-flatpickr .flatpickr-day.endRange:hover {
    background: rgba(186, 24, 39, 0.16) !important;
}

.dash-period-flatpickr .flatpickr-day.startRange:hover,
.dash-period-flatpickr .flatpickr-day.endRange:hover {
    background: rgba(186, 24, 39, 0.72) !important;
    color: #fff !important;
}

[data-theme="dark"] .flatpickr-calendar,
[data-theme="dark"] .flatpickr-calendar.dash-period-flatpickr {
    background: var(--bg-elevated);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .flatpickr-months {
    background: var(--bg-subtle);
    border-bottom: 1px solid var(--border);
}

[data-theme="dark"] .flatpickr-months .flatpickr-month,
[data-theme="dark"] .flatpickr-innerContainer,
[data-theme="dark"] .flatpickr-rContainer,
[data-theme="dark"] .flatpickr-weekdays,
[data-theme="dark"] .flatpickr-days,
[data-theme="dark"] .flatpickr-dayContainer {
    background: var(--bg-elevated);
}

[data-theme="dark"] .flatpickr-current-month,
[data-theme="dark"] .flatpickr-current-month .flatpickr-monthDropdown-months,
[data-theme="dark"] .flatpickr-current-month input.cur-year {
    color: var(--text);
    background: transparent;
}

[data-theme="dark"] .flatpickr-weekday {
    color: var(--text-secondary);
}

[data-theme="dark"] .flatpickr-day {
    color: var(--text) !important;
}

[data-theme="dark"] .flatpickr-day.prevMonthDay,
[data-theme="dark"] .flatpickr-day.nextMonthDay {
    color: var(--muted) !important;
}

[data-theme="dark"] .flatpickr-day.today:not(.selected):not(.startRange):not(.endRange):not(.inRange) {
    border-color: var(--brand);
    color: var(--text);
}

[data-theme="dark"] .flatpickr-day.selected,
[data-theme="dark"] .flatpickr-day.startRange,
[data-theme="dark"] .flatpickr-day.endRange,
[data-theme="dark"] .flatpickr-day.selected.inRange,
[data-theme="dark"] .flatpickr-day.startRange.inRange,
[data-theme="dark"] .flatpickr-day.endRange.inRange {
    color: #fff;
}

[data-theme="dark"] .dash-period-flatpickr .flatpickr-day.startRange,
[data-theme="dark"] .dash-period-flatpickr .flatpickr-day.endRange,
[data-theme="dark"] .dash-period-flatpickr .flatpickr-day.selected {
    background: rgba(224, 58, 74, 0.5) !important;
    color: #fff !important;
}

[data-theme="dark"] .dash-period-flatpickr .flatpickr-day.inRange:not(.startRange):not(.endRange) {
    background: rgba(224, 58, 74, 0.12) !important;
    color: var(--text) !important;
}

[data-theme="dark"] .flatpickr-day.inRange {
    background: rgba(224, 58, 74, 0.12) !important;
    box-shadow: none !important;
    color: var(--text) !important;
}

[data-theme="dark"] .flatpickr-day.flatpickr-disabled,
[data-theme="dark"] .flatpickr-day.flatpickr-disabled:hover,
[data-theme="dark"] .flatpickr-day.flatpickr-disabled:focus {
    color: var(--muted) !important;
    opacity: 0.38 !important;
    background: transparent !important;
}

[data-theme="dark"] .flatpickr-day:hover,
[data-theme="dark"] .flatpickr-day:focus {
    background: var(--bg-hover);
    color: var(--text);
}

[data-theme="dark"] .flatpickr-months .flatpickr-prev-month,
[data-theme="dark"] .flatpickr-months .flatpickr-next-month,
[data-theme="dark"] .flatpickr-months .flatpickr-prev-month svg,
[data-theme="dark"] .flatpickr-months .flatpickr-next-month svg {
    fill: var(--text-secondary);
}

[data-theme="dark"] .flatpickr-months .flatpickr-prev-month:hover svg,
[data-theme="dark"] .flatpickr-months .flatpickr-next-month:hover svg {
    fill: var(--text);
}

.page-dashboard.is-period-loading .dash-stat-grid,
.page-dashboard.is-period-loading .dash-analytics-grid {
    opacity: 0.35;
    pointer-events: none;
    transition: opacity 0.2s ease;
    filter: blur(1px);
}

.dash-period-flatpickr__footer {
    display: flex;
    justify-content: flex-end;
    padding: 0.65rem 0.85rem 0.85rem;
    border-top: 1px solid var(--border);
    background: var(--bg-elevated);
}

.dash-period-flatpickr__apply {
    appearance: none;
    border: 0;
    border-radius: var(--radius-md);
    padding: 0.45rem 1rem;
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #fff;
    background: var(--brand, #ba1827);
    cursor: pointer;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.dash-period-flatpickr__apply:hover:not(:disabled) {
    opacity: 0.92;
}

.dash-period-flatpickr__apply:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

[data-theme="dark"] .dash-period-flatpickr__footer {
    background: var(--bg-elevated);
    border-top-color: var(--border);
}

.dash-period-filter__custom.is-hidden {
    display: none;
}

.dash-period-filter__date {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.dash-period-filter__date input[type="date"] {
    padding: 0.4rem 0.55rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    font: inherit;
    background: var(--bg-elevated);
    color: var(--text);
}

.dash-header__action {
    flex-shrink: 0;
}

.dash-header__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    flex-shrink: 0;
}

.dash-kpis-carousel {
    margin-bottom: 1.75rem;
}

.dash-kpis-dots {
    display: none;
}

.dash-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.15rem 1.25rem;
}

.dash-kpi {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
    min-height: 7.5rem;
    padding: 1.25rem 1.35rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    text-decoration: none;
    color: inherit;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.dash-kpi:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-3px);
    color: inherit;
}

.dash-kpi__head {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
}

.dash-kpi__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-md);
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.dash-kpi__icon .iconify {
    opacity: 0.9;
}

.dash-kpi__label {
    flex: 1;
    min-width: 0;
    padding-top: 0.35rem;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text-secondary);
}

.dash-kpi__value {
    font-size: 2.125rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

.dash-kpi__meta {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--muted);
    line-height: 1.3;
}

.dash-panel {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.dash-panel.dash-panel--minimal,
.dash-panel:has(.ui-select.is-open),
.panel-card:has(.ui-select.is-open),
.settings-form__section:has(.ui-select.is-open),
.form-grid:has(.ui-select.is-open),
.order-show-main:has(.ui-select.is-open),
.order-show-aside:has(.ui-select.is-open) {
    overflow: visible;
}

.dash-panel__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: var(--panel-accent-gradient);
    color: #fff;
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
}

.dash-panel__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
}

.dash-panel__subtitle {
    margin: 0.2rem 0 0;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.78);
}

.dash-panel__meta {
    flex-shrink: 0;
    align-self: center;
}

.wallet-bank-accounts-summary {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.9);
}

.wallet-bank-accounts-summary strong {
    font-size: 1rem;
    font-weight: 700;
    margin-right: 0.2rem;
}

.dash-panel__link {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    white-space: nowrap;
    padding-top: 0.15rem;
}

.dash-panel__link:hover {
    color: #fff;
}

.dash-empty {
    padding: 2.75rem 1.5rem;
    text-align: center;
}

.dash-empty__title {
    margin: 0;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text);
}

.dash-empty__text {
    margin: 0.4rem 0 0;
    font-size: 0.875rem;
    color: var(--muted);
    max-width: 26rem;
    margin-left: auto;
    margin-right: auto;
}

.dash-orders__head,
.dash-order-row {
    display: grid;
    grid-template-columns: 52px minmax(88px, 0.85fr) minmax(48px, 0.5fr) minmax(72px, 0.55fr) minmax(96px, 0.65fr) minmax(120px, 0.85fr) minmax(120px, 0.9fr);
    gap: 0.75rem 1rem;
    align-items: center;
    padding: 0.85rem 1.5rem;
}

.dash-orders__head {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--muted);
    background: var(--bg-subtle);
    border-bottom: 1px solid var(--border);
}

.dash-order-row {
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--border);
    transition: background 0.12s;
}

.dash-order-row:last-child {
    border-bottom: none;
}

.dash-order-row:hover {
    background: var(--bg-hover);
}

.dash-order-row__thumb {
    display: flex;
    justify-content: center;
}

.dash-order-row__id {
    min-width: 0;
}

.dash-order-row__number {
    display: block;
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--text);
}

.dash-order-row__meta {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.75rem;
    color: var(--muted);
}

.dash-order-row__lot,
.dash-order-row__buyer,
.dash-order-row__deadline {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.dash-order-row__buyer {
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dash-order-row__total {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

.dash-order-row__status .badge {
    white-space: nowrap;
}

@media (max-width: 720px) {
    .dash-stat-grid {
        grid-template-columns: 1fr;
    }

    .dash-kpis--minimal {
        display: flex;
        flex-wrap: nowrap;
        gap: 0.85rem;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .dash-kpis--minimal .dash-kpi--minimal {
        flex: 0 0 85%;
        scroll-snap-align: start;
    }

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

    .dash-table thead {
        display: none;
    }

    .dash-table tbody tr {
        display: grid;
        grid-template-columns: 52px 1fr;
        gap: 0.35rem 0.75rem;
        padding: 0.85rem 1rem;
    }

    .dash-table tbody td {
        padding: 0;
        border: none;
    }

    .dash-table__thumb {
        grid-row: 1 / span 3;
    }

    .dash-table__id {
        grid-column: 2;
    }

    .dash-table__status {
        grid-column: 1 / -1;
    }

    .dash-kpis {
        display: flex;
        flex-wrap: nowrap;
        gap: 0.85rem;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 0.15rem 0 0.35rem;
    }

    .dash-kpis::-webkit-scrollbar {
        display: none;
    }

    .dash-kpi {
        flex: 0 0 100%;
        scroll-snap-align: start;
        min-height: 8.25rem;
        padding: 1.1rem 1.15rem;
    }

    .dash-kpi:hover {
        transform: none;
    }

    .dash-kpi__value {
        font-size: 1.75rem;
    }

    .dash-kpis-dots {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.45rem;
        margin-top: 0.65rem;
    }

    .dash-kpis-dot {
        width: 0.4rem;
        height: 0.4rem;
        padding: 0;
        border: none;
        border-radius: 999px;
        background: var(--border-strong);
        cursor: pointer;
        transition: width 0.2s ease, background 0.2s ease;
    }

    .dash-kpis-dot.is-active {
        width: 1.35rem;
        background: var(--brand);
    }

    .dash-orders__head {
        display: none;
    }

    .dash-order-row {
        grid-template-columns: 52px 1fr 1fr;
        grid-template-rows: auto auto auto auto;
        gap: 0.35rem 0.75rem;
    }

    .dash-order-row__thumb {
        grid-row: 1 / span 2;
        align-self: start;
    }

    .dash-order-row__id {
        grid-column: 2 / -1;
    }

    .dash-order-row__status {
        grid-column: 1 / -1;
    }
}

/* —— Shared UI —— */
.panel-grid {
    display: grid;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border: none;
    border-radius: var(--radius-md);
    padding: 0.6rem 1.1rem;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn-primary {
    background: var(--brand);
    color: #fff;
}

.btn-primary:hover {
    background: var(--brand-dark);
    color: #fff;
}

.btn-primary:disabled,
.btn-primary[disabled],
.btn-primary.is-disabled {
    background: var(--bg-subtle);
    color: var(--muted);
    border: 1px solid var(--border);
    cursor: not-allowed;
    opacity: 1;
    pointer-events: none;
}

.btn-primary:disabled:hover,
.btn-primary[disabled]:hover,
.btn-primary.is-disabled:hover {
    background: var(--bg-subtle);
    color: var(--muted);
}

.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text-secondary);
    border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
    border-color: var(--muted);
    color: var(--text);
}

.login-form {
    margin-top: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.login-label {
    font-size: 0.875rem;
    font-weight: 600;
}

.login-input {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    font: inherit;
    font-size: 1rem;
    background: var(--bg-elevated);
    color: var(--text);
}

.login-input-wrap {
    position: relative;
}

.login-input-wrap .login-input {
    padding-right: 2.75rem;
}

.login-input-toggle {
    position: absolute;
    top: 50%;
    right: 0.5rem;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

.login-input-toggle__icon {
    display: block;
    line-height: 0;
}

.login-input-toggle[aria-pressed="false"] .login-input-toggle__icon--hide,
.login-input-toggle[aria-pressed="true"] .login-input-toggle__icon--show {
    display: none;
}

.login-input-toggle:hover,
.login-input-toggle:focus-visible {
    color: var(--text);
    background: color-mix(in srgb, var(--border) 55%, transparent);
}

.login-input--mfa {
    font-size: 1.35rem;
    letter-spacing: 0.35em;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.login-mfa {
    display: grid;
    gap: 0.85rem;
}

.login-mfa__intro {
    display: grid;
    gap: 0.75rem;
    padding: 1rem 1.1rem;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 6%, var(--bg-elevated)) 0%, var(--bg-subtle) 100%);
    border: 1px solid color-mix(in srgb, var(--brand) 18%, var(--border));
    border-left: 3px solid var(--brand);
}

.login-mfa__intro-head {
    display: grid;
    gap: 0.35rem;
}

.login-mfa__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    width: fit-content;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--brand);
    background: color-mix(in srgb, var(--brand) 10%, transparent);
}

.login-mfa__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text);
}

.login-mfa__steps {
    margin: 0;
    padding-left: 1.15rem;
    display: grid;
    gap: 0.45rem;
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--text-secondary);
}

.login-mfa__steps li {
    padding-left: 0.15rem;
}

.login-mfa__steps strong {
    color: var(--text);
    font-weight: 700;
}

.login-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.9rem;
    line-height: 1.4;
    cursor: pointer;
}

.login-checkbox input {
    margin-top: 0.15rem;
    accent-color: var(--brand);
}

.login-mfa__hint {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.4;
}

.login-mfa__back {
    margin: 0;
    font-size: 0.9rem;
}

.login-mfa__back a {
    color: var(--brand);
    text-decoration: none;
}

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

.login-submit {
    margin-top: 0.5rem;
    width: 100%;
}

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

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

table.panel-table th,
table.panel-table td {
    padding: 0.8rem 0.75rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

table.panel-table th {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
}

.badge {
    display: inline-block;
    padding: 0.18rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    border: 1px solid transparent;
}

.badge.status-pending,
.ui-select--form.ui-select--status.status-pending .ui-select__trigger {
    background: #d97706;
    color: #fff;
    border-color: #d97706;
}

.badge.status-paid,
.ui-select--form.ui-select--status.status-paid .ui-select__trigger {
    background: #16a34a;
    color: #fff;
    border-color: #16a34a;
}

.badge.status-preparing,
.ui-select--form.ui-select--status.status-preparing .ui-select__trigger {
    background: #ea580c;
    color: #fff;
    border-color: #ea580c;
}

.badge.status-shipped,
.ui-select--form.ui-select--status.status-shipped .ui-select__trigger {
    background: #57534e;
    color: #fff;
    border-color: #57534e;
}

.badge.status-delivered,
.ui-select--form.ui-select--status.status-delivered .ui-select__trigger {
    background: #0d9488;
    color: #fff;
    border-color: #0d9488;
}

.badge.status-expired,
.ui-select--form.ui-select--status.status-expired .ui-select__trigger {
    background: #c2410c;
    color: #fff;
    border-color: #c2410c;
}

.badge.status-cancelled,
.ui-select--form.ui-select--status.status-cancelled .ui-select__trigger {
    background: #ba1827;
    color: #fff;
    border-color: #ba1827;
}

.badge.status-refunded,
.badge.status-default,
.ui-select--form.ui-select--status.status-refunded .ui-select__trigger,
.ui-select--form.ui-select--status.status-default .ui-select__trigger {
    background: #9333ea;
    color: #fff;
    border-color: #9333ea;
}

.badge--neutral {
    background: var(--bg-subtle, rgba(15, 23, 42, 0.06));
    color: var(--muted);
    border-color: var(--border);
}

.badge--success {
    background: #dcfce7;
    color: #15803d;
    border-color: #bbf7d0;
}

.badge--warning {
    background: #fef3c7;
    color: #b45309;
    border-color: #fde68a;
}

[data-theme="dark"] .badge--neutral {
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .badge--success {
    background: rgba(34, 197, 94, 0.15);
    color: #86efac;
    border-color: rgba(34, 197, 94, 0.25);
}

[data-theme="dark"] .badge--warning {
    background: rgba(245, 158, 11, 0.15);
    color: #fcd34d;
    border-color: rgba(245, 158, 11, 0.25);
}

.ui-select--form.ui-select--status[class*="status-"] .ui-select__chevron,
.ui-select--form.ui-select--status[class*="status-"] .ui-select__value-icon {
    color: #fff;
}

[data-theme="dark"] .badge.status-pending,
[data-theme="dark"] .ui-select--form.ui-select--status.status-pending .ui-select__trigger {
    background: #f59e0b;
    color: #fff;
    border-color: #f59e0b;
}

[data-theme="dark"] .badge.status-paid,
[data-theme="dark"] .ui-select--form.ui-select--status.status-paid .ui-select__trigger {
    background: #22c55e;
    color: #fff;
    border-color: #22c55e;
}

[data-theme="dark"] .badge.status-preparing,
[data-theme="dark"] .ui-select--form.ui-select--status.status-preparing .ui-select__trigger {
    background: #f97316;
    color: #fff;
    border-color: #f97316;
}

[data-theme="dark"] .badge.status-shipped,
[data-theme="dark"] .ui-select--form.ui-select--status.status-shipped .ui-select__trigger {
    background: #78716c;
    color: #fff;
    border-color: #78716c;
}

[data-theme="dark"] .badge.status-delivered,
[data-theme="dark"] .ui-select--form.ui-select--status.status-delivered .ui-select__trigger {
    background: #14b8a6;
    color: #fff;
    border-color: #14b8a6;
}

[data-theme="dark"] .badge.status-expired,
[data-theme="dark"] .ui-select--form.ui-select--status.status-expired .ui-select__trigger {
    background: #ea580c;
    color: #fff;
    border-color: #ea580c;
}

[data-theme="dark"] .badge.status-cancelled,
[data-theme="dark"] .ui-select--form.ui-select--status.status-cancelled .ui-select__trigger {
    background: #e03a4a;
    color: #fff;
    border-color: #e03a4a;
}

[data-theme="dark"] .badge.status-refunded,
[data-theme="dark"] .badge.status-default,
[data-theme="dark"] .ui-select--form.ui-select--status.status-refunded .ui-select__trigger,
[data-theme="dark"] .ui-select--form.ui-select--status.status-default .ui-select__trigger {
    background: #a855f7;
    color: #fff;
    border-color: #a855f7;
}

.alert {
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

.alert-success {
    background: var(--alert-success-bg);
    color: var(--alert-success-text);
    border: 1px solid var(--alert-success-border);
}

.alert-error {
    background: var(--alert-error-bg);
    color: var(--alert-error-text);
    border: 1px solid var(--alert-error-border);
}

/* —— Toasts —— */
.toast-stack {
    position: fixed;
    top: calc(var(--topbar-h) + 0.85rem);
    right: 1.25rem;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.55rem;
    pointer-events: none;
    width: min(22rem, calc(100vw - 2rem));
}

.toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    width: 100%;
    padding: 0.8rem 0.85rem 0.8rem 0.95rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text);
    box-shadow: var(--shadow-md);
    font-size: 0.875rem;
    line-height: 1.45;
    transform: translateX(calc(100% + 1.25rem));
    opacity: 0;
    transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.32s ease;
}

.toast.is-visible {
    transform: translateX(0);
    opacity: 1;
}

.toast.is-leaving {
    transform: translateX(calc(100% + 1.25rem));
    opacity: 0;
}

.toast__icon {
    flex-shrink: 0;
    margin-top: 0.05rem;
}

.toast__body {
    flex: 1;
    min-width: 0;
}

.toast__close {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    margin: -0.15rem -0.15rem 0 0;
    padding: 0;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

.toast__close:hover,
.toast__close:focus-visible {
    background: var(--bg-hover);
    color: var(--text);
}

.toast--success {
    border-left: 3px solid #16a34a;
}

.toast--success .toast__icon {
    color: #16a34a;
}

.toast--error {
    border-left: 3px solid var(--brand);
}

.toast--error .toast__icon {
    color: var(--brand);
}

[data-theme="dark"] .toast--success {
    border-left-color: #4ade80;
}

[data-theme="dark"] .toast--success .toast__icon {
    color: #4ade80;
}

/* —— Pedidos (lista) —— */
.page-orders {
    max-width: 1200px;
}

.orders-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.orders-header__action {
    flex-shrink: 0;
}

.orders-view-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0;
    padding: 0 0 0.85rem;
    border-bottom: 1px solid var(--border);
}

.orders-toolbar .orders-view-tabs {
    padding-bottom: 0.85rem;
}

.orders-view-tabs__item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.orders-view-tabs__item:hover {
    background: var(--bg-subtle);
    color: var(--text);
}

.orders-view-tabs__item.is-active {
    background: var(--brand-soft);
    color: var(--brand-dark);
    font-weight: 600;
}

[data-theme="dark"] .orders-view-tabs__item.is-active {
    color: var(--brand);
}

.orders-view-tabs__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.125rem;
    height: 1.125rem;
    padding: 0 0.25rem;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font-size: 0.625rem;
    font-weight: 700;
    line-height: 1;
}

.orders-toolbar {
    margin-bottom: 1.25rem;
    padding: 1rem 1.25rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.orders-toolbar__form {
    display: grid;
    grid-template-columns: minmax(12rem, 1fr) minmax(13rem, 16.5rem);
    gap: 0.75rem;
    align-items: end;
}

.orders-toolbar__form--search-only {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.orders-toolbar__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.orders-search {
    flex: 1 1 16rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
    padding: 0 0.85rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    background: var(--bg-main);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.orders-search:focus-within {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-soft);
}

.orders-search__icon {
    flex-shrink: 0;
    color: var(--icon-muted);
}

.orders-search__input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    padding: 0.65rem 0;
    font: inherit;
    font-size: 0.9375rem;
    color: var(--text);
    outline: none;
}

.orders-search__input::placeholder {
    color: var(--icon-muted);
}

.orders-field-select {
    flex: 0 1 16.5rem;
    min-width: 13rem;
}

/* —— Custom select —— */
.ui-select {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}

.ui-select__head {
    margin-bottom: 0.05rem;
}

.ui-select__label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.35;
}

.ui-select__control {
    position: relative;
}

.ui-select__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    background: var(--bg-main);
    color: var(--text);
    font: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.ui-select:not(.ui-select--compact):not([class*="status-"]) .ui-select__trigger:hover {
    border-color: var(--muted);
    background: var(--bg-subtle);
}

.ui-select:not(.ui-select--compact).is-open .ui-select__trigger,
.ui-select:not(.ui-select--compact) .ui-select__trigger:focus-visible {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-soft);
}

.ui-select__value-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
}

.ui-select__value-icon {
    flex-shrink: 0;
    color: var(--text-secondary);
}

.ui-select__value {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ui-select__chevron {
    flex-shrink: 0;
    color: var(--muted);
    transition: transform 0.2s ease;
}

.ui-select.is-open .ui-select__chevron {
    transform: rotate(180deg);
}

.ui-select__menu {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    right: 0;
    z-index: 500;
    max-height: 16.5rem;
    overflow-y: auto;
    padding: 0.4rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.ui-select--form.is-open {
    position: relative;
    z-index: 25;
}

.ui-select--form.is-open .ui-select__menu {
    z-index: 1200;
}

.ui-select.is-open .ui-select__control {
    position: relative;
    z-index: 501;
}

.ui-select__menu[hidden] {
    display: none;
}

.ui-select__menu--floating {
    position: fixed;
    top: auto;
    left: auto;
    right: auto;
    z-index: 13005;
}

.ui-select__option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.55rem 0.65rem;
    border: none;
    border-radius: calc(var(--radius-md) - 2px);
    background: transparent;
    color: var(--text-secondary);
    font: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: background 0.12s, color 0.12s;
}

.ui-select__option:hover,
.ui-select__option:focus-visible {
    outline: none;
    background: var(--bg-hover);
    color: var(--text);
}

.ui-select__option.is-selected {
    background: var(--brand-soft);
    color: var(--text);
    font-weight: 600;
}

.ui-select__option-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: var(--radius-sm);
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.ui-select__option.is-selected .ui-select__option-icon {
    background: var(--bg-elevated);
    border-color: transparent;
    color: var(--brand);
}

.bank-logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: calc(var(--radius-md) - 2px);
}

.ui-select__bank-logo,
.ui-select__option-icon--bank .bank-logo {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 0.35rem;
}

.ui-select__bank-logo.is-hidden,
.ui-select__value-icon.is-hidden {
    display: none !important;
}

.ui-select__option-icon--bank {
    background: transparent;
    border: none;
    width: 1.5rem;
    height: 1.5rem;
    padding: 0;
}

.ui-select__option-label {
    flex: 1;
    min-width: 0;
}

.ui-select__option-meta {
    flex-shrink: 0;
    min-width: 1.25rem;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    text-align: center;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    color: var(--muted);
}

.ui-select__option.is-selected .ui-select__option-meta {
    background: var(--bg-elevated);
    border-color: transparent;
    color: var(--brand);
}

.ui-select__option-check {
    flex-shrink: 0;
    color: var(--brand);
    opacity: 0;
    transition: opacity 0.12s;
}

.ui-select__option.is-selected .ui-select__option-check {
    opacity: 1;
}

/* Status select variants */
.ui-select--status.ui-select--compact {
    display: inline-flex;
    vertical-align: middle;
    background: transparent;
}

.ui-select--status.ui-select--compact .ui-select__control {
    display: inline-flex;
    width: auto;
    border-radius: var(--radius-sm);
    overflow: hidden;
    line-height: 0;
}

.ui-select--status.ui-select--compact .ui-select__trigger {
    display: inline-flex;
    align-items: center;
    width: auto;
    min-width: 0;
    padding: 0.18rem 0.35rem 0.18rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    box-shadow: none !important;
    gap: 0.2rem;
    line-height: 1.25;
    appearance: none;
    -webkit-appearance: none;
    background-clip: padding-box;
}

.ui-select--status.ui-select--compact .ui-select__trigger:hover,
.ui-select--status.ui-select--compact.is-open .ui-select__trigger,
.ui-select--status.ui-select--compact .ui-select__trigger:focus-visible {
    box-shadow: none !important;
    outline: none;
    filter: none;
}

.ui-select--status.ui-select--compact .ui-select__chevron {
    color: currentColor;
    opacity: 0.55;
    width: 12px;
}

/* Table status triggers — identical to .badge.status-* */
.ui-select--status.ui-select--compact.status-pending .ui-select__trigger {
    background: #d97706;
    color: #fff;
    border-color: #d97706;
}

.ui-select--status.ui-select--compact.status-paid .ui-select__trigger {
    background: #16a34a;
    color: #fff;
    border-color: #16a34a;
}

.ui-select--status.ui-select--compact.status-preparing .ui-select__trigger {
    background: #ea580c;
    color: #fff;
    border-color: #ea580c;
}

.ui-select--status.ui-select--compact.status-shipped .ui-select__trigger {
    background: #57534e;
    color: #fff;
    border-color: #57534e;
}

.ui-select--status.ui-select--compact.status-delivered .ui-select__trigger {
    background: #0d9488;
    color: #fff;
    border-color: #0d9488;
}

.ui-select--status.ui-select--compact.status-expired .ui-select__trigger {
    background: #c2410c;
    color: #fff;
    border-color: #c2410c;
}

.ui-select--status.ui-select--compact.status-cancelled .ui-select__trigger {
    background: #ba1827;
    color: #fff;
    border-color: #ba1827;
}

.ui-select--status.ui-select--compact.status-refunded .ui-select__trigger,
.ui-select--status.ui-select--compact.status-default .ui-select__trigger {
    background: #9333ea;
    color: #fff;
    border-color: #9333ea;
}

.ui-select--status.ui-select--compact[class*="status-"].is-open .ui-select__trigger,
.ui-select--status.ui-select--compact[class*="status-"] .ui-select__trigger:hover {
    filter: brightness(1.06);
}

[data-theme="dark"] .ui-select--status.ui-select--compact.status-pending .ui-select__trigger {
    background: #f59e0b;
    color: #fff;
    border-color: #f59e0b;
}

[data-theme="dark"] .ui-select--status.ui-select--compact.status-paid .ui-select__trigger {
    background: #22c55e;
    color: #fff;
    border-color: #22c55e;
}

[data-theme="dark"] .ui-select--status.ui-select--compact.status-preparing .ui-select__trigger {
    background: #f97316;
    color: #fff;
    border-color: #f97316;
}

[data-theme="dark"] .ui-select--status.ui-select--compact.status-shipped .ui-select__trigger {
    background: #78716c;
    color: #fff;
    border-color: #78716c;
}

[data-theme="dark"] .ui-select--status.ui-select--compact.status-delivered .ui-select__trigger {
    background: #14b8a6;
    color: #fff;
    border-color: #14b8a6;
}

[data-theme="dark"] .ui-select--status.ui-select--compact.status-expired .ui-select__trigger {
    background: #ea580c;
    color: #fff;
    border-color: #ea580c;
}

[data-theme="dark"] .ui-select--status.ui-select--compact.status-cancelled .ui-select__trigger {
    background: #e03a4a;
    color: #fff;
    border-color: #e03a4a;
}

[data-theme="dark"] .ui-select--status.ui-select--compact.status-refunded .ui-select__trigger,
[data-theme="dark"] .ui-select--status.ui-select--compact.status-default .ui-select__trigger {
    background: #a855f7;
    color: #fff;
    border-color: #a855f7;
}

.ui-select--status .ui-select__trigger {
    width: auto;
    max-width: 100%;
}

.ui-select--compact .ui-select__value-icon {
    display: none;
}

.ui-select--form .ui-select__value-icon {
    display: inline-flex;
}

.ui-select--form .ui-select__value-icon[hidden],
.ui-select--form .ui-select__value-icon.is-hidden {
    display: none !important;
}

.ui-select--compact .ui-select__chevron {
    color: currentColor;
    opacity: 0.55;
    width: 12px;
}

.ui-select--form.ui-select--status[class*="status-"] .ui-select__trigger:hover,
.ui-select--form.ui-select--status[class*="status-"].is-open .ui-select__trigger {
    filter: brightness(1.06);
}

.ui-select--form:not([class*="status-"]) .ui-select__trigger {
    width: 100%;
    min-height: 2.75rem;
    padding: 0.65rem 0.75rem;
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: normal;
    text-transform: none;
    border-radius: var(--radius-md);
    background: var(--bg-main);
    border: 1px solid var(--border-strong);
    color: var(--text);
}

.ui-select--form.ui-select--status[class*="status-"] .ui-select__trigger {
    width: 100%;
    min-height: 2.75rem;
    padding: 0.65rem 0.75rem;
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: normal;
    text-transform: none;
    border-radius: var(--radius-md);
}

.ui-select--form:not([class*="status-"]) .ui-select__trigger:hover,
.ui-select--form:not([class*="status-"]).is-open .ui-select__trigger {
    border-color: var(--muted);
    background: var(--bg-subtle);
    filter: none;
}

/* Dropdown options */
.ui-select__option--status.status-pending.is-selected {
    background: rgba(245, 158, 11, 0.12);
    color: #b45309;
}

.ui-select__option--status.status-paid.is-selected {
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
}

.ui-select__option--status.status-preparing.is-selected {
    background: rgba(249, 115, 22, 0.12);
    color: #c2410c;
}

.ui-select__option--status.status-shipped.is-selected {
    background: rgba(87, 83, 78, 0.12);
    color: #57534e;
}

.ui-select__option--status.status-delivered.is-selected {
    background: rgba(20, 184, 166, 0.12);
    color: #0f766e;
}

.ui-select__option--status.status-expired.is-selected {
    background: rgba(251, 146, 60, 0.12);
    color: #c2410c;
}

.ui-select__option--status.status-cancelled.is-selected {
    background: rgba(239, 68, 68, 0.1);
    color: #b91c1c;
}

.ui-select__option--status.status-refunded.is-selected,
.ui-select__option--status.status-default.is-selected {
    background: rgba(168, 85, 247, 0.12);
    color: #7e22ce;
}

.ui-select--status.is-busy {
    opacity: 0.7;
    pointer-events: none;
}

.ui-select__option--status .ui-select__option-label {
    font-weight: 600;
}

.orders-bulk-select {
    flex: 0 1 15rem;
    min-width: 12rem;
}

.orders-bulk-select .ui-select__trigger {
    min-height: 2.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: normal;
    text-transform: none;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

@media (max-width: 720px) {
    .orders-field-select {
        flex: 1 1 auto;
        width: 100%;
    }
}

@media (max-width: 720px) {
    .orders-toolbar__form {
        grid-template-columns: 1fr;
    }
}

.orders-panel {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: visible;
}

.orders-panel__bar {
    height: 3.25rem;
    padding: 0 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: var(--panel-accent-gradient);
    overflow: visible;
    position: relative;
    z-index: 5;
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
}

.orders-table-wrap {
    position: relative;
    z-index: 1;
    overflow-x: auto;
}

.orders-panel__bar-inner {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.orders-panel__summary,
.orders-panel__bulk {
    display: flex;
    align-items: center;
    transition: opacity 0.24s ease, visibility 0.24s ease, transform 0.24s ease;
}

.orders-panel__summary {
    position: relative;
    flex: 0 0 auto;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #fff;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.orders-panel__bulk {
    position: absolute;
    inset: 0;
    justify-content: flex-end;
    gap: 0.65rem 0.85rem;
    flex-wrap: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    pointer-events: none;
}

.orders-panel__bar.is-bulk-active .orders-panel__summary {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    pointer-events: none;
}

.orders-panel__bar.is-bulk-active .orders-panel__bulk {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.orders-panel__bulk .ui-select.is-open {
    position: relative;
    z-index: 510;
}

.orders-panel__bar .orders-bulk-bar__count {
    font-size: 0.8125rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    white-space: nowrap;
}

.orders-bulk-bar__submit {
    min-height: 2.5rem;
    flex-shrink: 0;
}

.orders-sort-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: inherit;
    text-decoration: none;
    transition: color 0.12s;
}

.orders-sort-link:hover,
.orders-sort-link:focus-visible {
    color: var(--text);
}

.orders-sort-link__icon {
    display: inline-flex;
    opacity: 0.85;
}

.orders-sort-link__icon-idle {
    opacity: 0.35;
}

.orders-sort-link:hover .orders-sort-link__icon-idle,
.orders-sort-link:focus-visible .orders-sort-link__icon-idle {
    opacity: 0.65;
}

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

.orders-table thead th {
    padding: 0.7rem 1.25rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: left;
    color: var(--muted);
    background: var(--bg-subtle);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.orders-th--status,
.orders-cell--status {
    width: auto;
    min-width: 11.5rem;
    white-space: nowrap;
    text-align: center;
}

.orders-th--status {
    text-align: center;
}

.orders-th--status .orders-sort-link {
    justify-content: center;
    width: 100%;
}

.orders-th--label,
.orders-cell--label,
.orders-th--tracking,
.orders-cell--tracking {
    text-align: center;
    white-space: nowrap;
}

.orders-th--label .orders-sort-link,
.orders-th--tracking .orders-sort-link {
    justify-content: center;
    width: 100%;
}

.orders-cell--label .orders-label-actions {
    display: inline-flex;
    justify-content: center;
}

.orders-cell--tracking .orders-tracking-readonly {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
}

.orders-cell--status .badge:not(.orders-status-change-btn):not(.orders-status-info-btn) {
    cursor: default;
}

.orders-cell--status {
    cursor: default;
}

.orders-cell--status .orders-status-change-btn,
.orders-cell--status .orders-status-info-btn {
    cursor: pointer;
    margin-inline: auto;
}

.orders-table tbody td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

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

.orders-row {
    transition: background 0.12s;
    cursor: pointer;
}

.orders-row:hover,
.orders-row:focus-visible {
    background: var(--bg-hover);
    outline: none;
}

.orders-row:focus-visible {
    box-shadow: inset 0 0 0 2px var(--brand-soft);
}

.orders-row:focus-visible:has(:focus) {
    box-shadow: none;
}

.orders-th--thumb,
.orders-cell--thumb {
    width: 1%;
    padding-right: 0.65rem;
    white-space: nowrap;
}

.orders-lot-thumb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--bg-subtle);
    overflow: hidden;
    flex-shrink: 0;
}

.orders-lot-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.orders-lot-thumb--interactive {
    padding: 0;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.orders-lot-thumb--interactive:hover,
.orders-lot-thumb--interactive:focus-visible {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 25%, transparent);
    outline: none;
}

.orders-lot-preview-modal {
    cursor: default;
}

.orders-lot-preview-modal__dialog {
    cursor: default;
}

.orders-lot-preview-modal__head {
    align-items: flex-start;
    padding-bottom: 1rem;
    margin-bottom: 0;
    border-bottom: 1px solid var(--border);
}

.orders-lot-preview-modal__lead {
    margin: 0.35rem 0 0;
    font-size: 0.9375rem;
}

.orders-lot-preview-modal__body {
    display: grid;
    grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
    gap: 1.75rem 2.5rem;
    margin-top: 1.5rem;
    cursor: default;
    align-items: start;
}

.orders-lot-preview-modal__media {
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    overflow: hidden;
    background: var(--bg-subtle);
    width: 100%;
    aspect-ratio: 1;
    max-height: 20rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orders-lot-preview-modal__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    cursor: default;
}

.orders-lot-preview-modal__info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    min-width: 0;
    cursor: default;
}

.orders-lot-preview-modal__summary {
    margin: 0;
}

.orders-lot-preview-modal__lot-label {
    margin: 0 0 0.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
}

.orders-lot-preview-modal__item-title {
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.3;
    font-weight: 700;
}

.orders-lot-preview-modal__description-wrap {
    padding: 0.875rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--bg-subtle);
}

.orders-lot-preview-modal__description {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--text-muted);
    white-space: pre-line;
}

.orders-lot-preview-modal__rows {
    display: grid;
    gap: 0;
    margin: 0 0 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.orders-lot-preview-modal__rows > div:last-child {
    padding-bottom: 0.9rem;
}

.orders-lot-preview-modal__rows > div {
    display: flex;
    align-items: flex-start;
    gap: 1rem 1.5rem;
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--border);
}

.orders-lot-preview-modal__rows > div:first-child {
    border-top: none;
}

.orders-lot-preview-modal__rows dt {
    margin: 0;
    flex: 0 0 6.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
}

.orders-lot-preview-modal__rows dd {
    margin: 0;
    flex: 1 1 0;
    min-width: 0;
    font-size: 0.9375rem;
    line-height: 1.45;
}

.orders-lot-preview-modal__buyer-meta {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--text-muted);
}

.orders-lot-preview-modal__actions {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.orders-lot-preview-modal a,
.orders-lot-preview-modal button {
    cursor: pointer;
}

@media (max-width: 720px) {
    .orders-lot-preview-modal .orders-modal__dialog {
        padding: 1.25rem;
    }

    .orders-lot-preview-modal__body {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .orders-lot-preview-modal__media {
        max-width: 16rem;
        margin: 0 auto;
    }
}

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

.orders-cell--order {
    min-width: 8.5rem;
}

.orders-order-id {
    display: block;
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--text);
}

.orders-order-meta {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.75rem;
    color: var(--muted);
}

.orders-lot {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.orders-buyer {
    display: block;
    max-width: 14rem;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.orders-amount {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.orders-deadline {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
}

.orders-deadline.is-late {
    color: var(--brand);
    font-weight: 600;
}

.orders-deadline-hint {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--brand);
}

.orders-muted {
    color: var(--muted);
    font-size: 0.875rem;
}

.orders-empty {
    padding: 3.5rem 1.5rem;
    text-align: center;
}

.orders-empty__icon {
    display: inline-flex;
    color: var(--icon-muted);
    margin-bottom: 0.75rem;
}

.orders-empty__title {
    margin: 0;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text);
}

.orders-empty__text {
    margin: 0.4rem 0 0;
    font-size: 0.875rem;
    color: var(--muted);
    max-width: 26rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.orders-empty__text a {
    font-weight: 600;
}

.orders-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1.25rem;
    border-top: 1px solid var(--border);
    background: var(--bg-subtle);
}

.orders-page-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.9rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    background: var(--bg-elevated);
    color: var(--text-secondary);
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.orders-page-btn:hover:not(.is-disabled) {
    border-color: var(--muted);
    color: var(--text);
    background: var(--bg-hover);
}

.orders-page-btn.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.orders-page-meta {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

@media (max-width: 900px) {
    .orders-table thead {
        display: none;
    }

    .orders-table tbody tr {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.35rem 1rem;
        padding: 1rem 1.25rem;
        border-bottom: 1px solid var(--border);
    }

    .orders-table tbody td {
        padding: 0;
        border: none;
    }

    .orders-cell--thumb {
        grid-column: 1;
        grid-row: 1;
        align-self: start;
    }

    .orders-cell--order {
        grid-column: 2 / -1;
        grid-row: 1;
    }

    .orders-cell--status {
        grid-column: 1 / -1;
    }
}

.panel-shell--guest .panel-body {
    display: block;
    min-height: 100vh;
}

.panel-shell--guest .panel-main {
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    position: relative;
    background-color: #1a1410;
    background-image:
        linear-gradient(rgba(15, 12, 10, 0.62), rgba(15, 12, 10, 0.72)),
        url('../img/images/background-orders.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.login-theme {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.login-card {
    width: min(420px, calc(100% - 2rem));
    background: var(--bg-elevated);
    border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
    border-radius: var(--radius-lg);
    padding: 2rem 2rem 1.75rem;
    box-shadow:
        0 28px 56px rgba(0, 0, 0, 0.38),
        0 12px 24px rgba(0, 0, 0, 0.22),
        0 0 0 1px rgba(255, 255, 255, 0.08);
}

.login-card__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.login-card__brand {
    display: flex;
    flex-shrink: 0;
    justify-content: center;
}

.login-card__titles {
    min-width: 0;
}

.login-card__subtitle {
    margin: 0.35rem 0 0;
    font-size: 0.9rem;
    line-height: 1.45;
}

.login-card__brand .brand-logo {
    display: block;
    object-fit: contain;
}

.login-card h1 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

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

.timeline {
    list-style: none;
    padding: 0;
    margin: 0;
}

.timeline li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.form-grid {
    display: grid;
    gap: 1rem;
    max-width: 480px;
}

.form-grid--inline-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    max-width: none;
}

.form-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.25rem;
    max-width: none;
}

.form-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
    max-width: none;
}

.form-grid__full {
    grid-column: 1 / -1;
}

@media (max-width: 720px) {
    .form-grid--2,
    .form-grid--4 {
        grid-template-columns: 1fr;
    }
}

.form-grid label {
    display: grid;
    gap: 0.35rem;
    font-weight: 600;
    font-size: 0.875rem;
}

.form-field {
    display: grid;
    gap: 0.45rem;
    min-width: 0;
}

.form-grid label.form-field {
    font-weight: normal;
    font-size: inherit;
}

.form-field__head {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.form-field__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: var(--radius-sm);
    background: var(--bg-subtle);
    color: var(--muted);
}

.form-field__copy {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.form-field__label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.35;
}

.form-field__required {
    color: #dc2626;
    margin-left: 0.12rem;
    font-weight: 700;
}

.form-field__hint {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--muted);
    line-height: 1.45;
}

.form-field--checkbox {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0.65rem;
}

.form-field--checkbox input[type="checkbox"] {
    margin-top: 0.15rem;
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
}

.form-field--checkbox .form-field__copy {
    flex: 1;
}

.form-grid input:not(.email-template-editor__input),
.form-grid select,
.form-grid textarea:not(.email-template-editor__textarea),
.form-grid .ui-select__trigger {
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    font: inherit;
    background: var(--bg-elevated);
    color: var(--text);
}

.form-grid input:not(.email-template-editor__input):focus-visible,
.form-grid select:focus-visible,
.form-grid textarea:not(.email-template-editor__textarea):focus-visible {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-soft);
}

.form-grid .ui-select--status .ui-select__trigger {
    width: 100%;
}

.orders-bulk-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-subtle);
}

.orders-bulk-bar[hidden] {
    display: none !important;
}

.orders-bulk-bar__count {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text);
}

.orders-bulk-bar__field select {
    min-width: 14rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    background: var(--bg-main);
    font: inherit;
    font-size: 0.875rem;
}

.orders-th--check,
.orders-cell--check {
    width: 3rem;
    padding-left: 1rem;
    padding-right: 0.5rem;
    text-align: center;
    vertical-align: middle;
}

.orders-check-all,
.orders-row-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    margin: 0 auto;
    cursor: pointer;
}

.orders-check-all input,
.orders-row-check input {
    appearance: none;
    -webkit-appearance: none;
    width: 1.05rem;
    height: 1.05rem;
    margin: 0;
    border: 1.5px solid var(--border-strong);
    border-radius: 999px;
    background: var(--bg-elevated);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
    position: relative;
    flex-shrink: 0;
    display: block;
}

.orders-check-all input:hover,
.orders-row-check input:hover {
    border-color: var(--brand);
}

.orders-check-all input:focus-visible,
.orders-row-check input:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--brand-soft);
}

.orders-check-all input:checked,
.orders-row-check input:checked {
    border-color: var(--brand);
    background-color: var(--brand);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M2.5 6.2 5 8.7 9.5 3.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 0.62rem 0.62rem;
}

.orders-check-all input:checked::after,
.orders-row-check input:checked::after {
    content: none;
}

.orders-check-all input:indeterminate {
    border-color: var(--brand);
    background-color: var(--brand);
    background-image: none;
}

.orders-check-all input:indeterminate::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0.46rem;
    height: 2px;
    background: #fff;
    border: none;
    transform: translate(-50%, -50%);
}

.orders-cell--status .ui-select {
    display: inline-flex;
}

.orders-cell--status .ui-select.is-open {
    position: relative;
    z-index: 502;
}

.orders-label-btn,
.orders-label-print {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    min-width: 7.5rem;
    white-space: nowrap;
}

.orders-cell--label {
    min-width: 8.5rem;
    text-align: center;
}

.orders-cell--tracking {
    min-width: 9rem;
    text-align: center;
}

.orders-bulk-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.orders-tracking-pending {
    font-size: 0.8125rem;
    white-space: nowrap;
}

.orders-cell--status .orders-status-btn {
    max-width: 100%;
    margin-inline: auto;
}

.orders-status-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    min-width: 7.5rem;
    white-space: nowrap;
    font-weight: 500;
}

.orders-status-btn--static {
    pointer-events: none;
}

.orders-status-btn--compact {
    min-width: auto;
    padding-inline: 0.55rem;
    font-size: 0.75rem;
}

.order-show-timeline .orders-status-btn {
    min-width: auto;
}

.orders-status-btn__label {
    overflow: hidden;
    text-overflow: ellipsis;
}

.orders-status-btn--status-pending {
    border-color: color-mix(in srgb, var(--status-pending, #b45309) 35%, var(--border));
    color: var(--status-pending, #b45309);
}

.orders-status-btn--status-paid {
    border-color: color-mix(in srgb, var(--status-paid, #15803d) 35%, var(--border));
    color: var(--status-paid, #15803d);
}

.orders-status-btn--status-preparing {
    border-color: color-mix(in srgb, var(--status-preparing, #1d4ed8) 35%, var(--border));
    color: var(--status-preparing, #1d4ed8);
}

.orders-status-btn--status-shipped {
    border-color: color-mix(in srgb, var(--status-shipped, #7c3aed) 35%, var(--border));
    color: var(--status-shipped, #7c3aed);
}

.orders-status-btn--status-delivered {
    border-color: color-mix(in srgb, var(--status-delivered, #0f766e) 35%, var(--border));
    color: var(--status-delivered, #0f766e);
}

.orders-status-btn--status-expired,
.orders-status-btn--status-cancelled,
.orders-status-btn--status-refunded {
    border-color: var(--border);
    color: var(--text-muted);
}

.orders-tracking-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
    padding: 0.15rem 0.35rem;
    margin: -0.15rem -0.35rem;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    background: transparent;
    text-align: left;
    cursor: pointer;
    font: inherit;
    color: inherit;
    transition: background 0.12s, border-color 0.12s;
}

.orders-tracking-btn:hover,
.orders-tracking-btn:focus-visible {
    background: var(--bg-hover);
    border-color: var(--border);
    outline: none;
}

.orders-tracking-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    border: 1px dashed var(--border-strong);
    border-radius: 999px;
    background: var(--bg-elevated);
    color: var(--muted);
    cursor: pointer;
    transition: color 0.12s, border-color 0.12s, background 0.12s;
}

.orders-tracking-add:hover,
.orders-tracking-add:focus-visible {
    color: var(--brand);
    border-color: var(--brand);
    background: var(--brand-soft);
    outline: none;
}

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

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

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

.orders-modal {
    position: fixed;
    inset: 0;
    z-index: 13001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.orders-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.orders-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 28rem);
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    box-shadow: var(--shadow-md);
}

/* Preview de lote — largura maior que modais padrão (especificidade acima de .orders-modal__dialog) */
.orders-lot-preview-modal .orders-modal__dialog {
    width: min(100%, 56rem);
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    padding: 1.5rem 1.75rem;
    cursor: default;
}

.orders-lot-preview-modal .orders-modal__dialog .orders-modal__title {
    font-size: 1.25rem;
}

.orders-modal__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.orders-modal__title {
    margin: 0;
    font-size: 1.05rem;
}

.orders-modal__subtitle {
    margin: 0.25rem 0 0;
    font-size: 0.875rem;
}

.orders-modal__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

.orders-modal__close:hover,
.orders-modal__close:focus-visible {
    background: var(--bg-hover);
    color: var(--text);
}

.orders-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.65rem;
    margin-top: 0.25rem;
}

.orders-confirm-modal__dialog {
    width: min(100%, 24rem);
}

.orders-confirm-modal__head {
    margin-bottom: 0.25rem;
}

.orders-confirm-modal__message {
    margin: 0.35rem 0 0;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.orders-confirm-modal__actions {
    margin-top: 1.15rem;
}

.orders-tracking {
    display: block;
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text);
}

.orders-tracking-carrier {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.75rem;
}

.order-show-shipment__meta {
    margin: 0;
    font-size: 0.8125rem;
}

.order-show-shipment__checkbox {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500 !important;
}

.order-show-shipment__checkbox input {
    width: auto;
}

.order-show-shipment__form {
    max-width: none;
}

@media (max-width: 900px) {
    :root {
        --main-padding-x: 1.25rem;
    }

    body.is-mobile-nav-lock {
        overflow: hidden;
    }

    .panel-topbar__menu-btn {
        display: inline-flex;
    }

    .panel-mobile-nav-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 280;
        background: rgba(0, 0, 0, 0.45);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
    }

    .panel-shell.is-mobile-nav-open .panel-mobile-nav-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .panel-shell.is-mobile-nav-open .panel-mobile-nav-backdrop[hidden] {
        display: block;
    }

    .panel-shell--authenticated .panel-workspace {
        margin-left: 0;
    }

    .panel-shell--authenticated .panel-topbar {
        left: 0;
        right: 0;
    }

    .panel-shell--authenticated .panel-sidebar {
        top: 0;
        left: 0;
        bottom: 0;
        width: min(17.5rem, 88vw) !important;
        height: 100vh;
        transform: translateX(-105%);
        transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.28s ease;
        z-index: 290;
        box-shadow: none;
    }

    .panel-shell--authenticated.is-sidebar-collapsed .panel-sidebar {
        width: min(17.5rem, 88vw) !important;
    }

    .panel-shell.is-mobile-nav-open .panel-sidebar {
        transform: translateX(0);
        box-shadow: 8px 0 32px rgba(0, 0, 0, 0.18);
    }

    .panel-shell--authenticated .panel-sidebar__toggle {
        display: none;
    }

    .panel-shell.is-sidebar-collapsed .panel-sidebar__label,
    .panel-shell.is-sidebar-collapsed .panel-sidebar__context-text,
    .panel-shell.is-sidebar-collapsed .panel-sidebar__section-label {
        display: block;
        opacity: 1;
        max-width: 12rem;
        max-height: none;
        width: auto;
        pointer-events: auto;
        padding: inherit;
        margin: inherit;
        overflow: visible;
    }

    .panel-shell.is-sidebar-collapsed .panel-sidebar__context {
        justify-content: flex-start;
        gap: 0.55rem;
        padding: 0.35rem 0.65rem 0.85rem;
        margin: 0 0.5rem 0.35rem;
    }

    .panel-shell.is-sidebar-collapsed .panel-sidebar__context.panel-sidebar__context--head {
        padding: 0;
        margin: 0;
    }

    .panel-shell.is-sidebar-collapsed .panel-sidebar__context-logo {
        margin: 0;
    }

    .panel-shell.is-sidebar-collapsed .panel-sidebar__link {
        justify-content: flex-start;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        gap: 0.75rem;
    }

    .panel-sidebar__nav {
        flex-direction: column;
        flex-wrap: nowrap;
    }

    .panel-shell--authenticated .panel-main {
        margin-left: 0;
        margin-top: var(--topbar-h);
    }

    .page-hub {
        margin-left: -1rem;
        margin-right: -1rem;
    }

    .hub-head {
        left: 0;
    }

    .hub-head__inner,
    .hub-content {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 768px) {
    .panel-topbar__brand {
        font-size: 0.9375rem;
    }
}

/* —— Detalhe do pedido —— */
.page-order-show {
    max-width: 1200px;
}

.panel-shell--authenticated .panel-main > .page-order-show {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.order-show-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}

.order-show-back {
    display: inline-block;
    margin-bottom: 0.35rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
}

.order-show-back:hover {
    color: var(--brand);
}

.order-show-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 22rem);
    grid-template-areas:
        "lot meta"
        "values logistics";
    gap: 1rem;
    align-items: stretch;
}

.order-show-grid__lot {
    grid-area: lot;
}

.order-show-grid__meta {
    grid-area: meta;
}

.order-show-grid__values {
    grid-area: values;
}

.order-show-grid__logistics {
    grid-area: logistics;
    min-width: 0;
    display: flex;
    min-height: 100%;
}

.order-show-grid:not(:has(.order-show-grid__logistics)) {
    grid-template-areas:
        "lot meta"
        "values values";
}

.order-show-grid > .panel-card {
    padding: 1.25rem;
    height: 100%;
    min-height: 0;
}

.order-show-grid__meta.order-show-aside-meta {
    padding: 0;
}

.order-show-grid__logistics > .order-logistics--compact {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.order-logistics--compact .order-logistics__quote-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.15rem;
}

.order-logistics--compact .order-logistics__services {
    flex: 0;
}

.order-logistics__selected {
    margin-bottom: 0.85rem;
}

.order-logistics__section {
    padding: 0 0 0.85rem;
    margin: 0;
}

.order-logistics__section + .order-logistics__section {
    margin-top: 0.15rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border);
}

.order-logistics__section:last-child {
    padding-bottom: 0;
}

.order-logistics__section-title {
    margin: 0 0 0.55rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
}

.order-logistics__service-meta {
    display: block;
    font-size: 0.75rem;
    line-height: 1.35;
    color: var(--text-secondary);
}

.order-logistics__dims {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    margin: 0;
}

.order-logistics__dims-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.6rem 0.7rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-subtle);
}

.order-logistics__dims-item dt {
    margin: 0;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}

.order-logistics__dims-item dd {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--text);
    line-height: 1.25;
}

.order-logistics__dims-empty {
    margin: 0;
    padding: 0.65rem 0.75rem;
    border: 1px dashed var(--border);
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    line-height: 1.45;
}

.order-logistics__facts {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0;
}

.order-logistics__fact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-subtle);
}

.order-logistics__fact dt {
    margin: 0;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}

.order-logistics__fact dd {
    margin: 0;
    text-align: right;
    font-size: 0.875rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1.35;
}

.order-logistics__section--action {
    padding-bottom: 0.15rem;
}

.order-logistics__selected-kicker {
    margin: 0 0 0.45rem;
    font-size: 0.75rem;
    line-height: 1.35;
}

.order-logistics__service-card--selected {
    border-color: color-mix(in srgb, var(--brand) 28%, var(--border));
    background: color-mix(in srgb, var(--brand-soft, #eef2ff) 70%, var(--bg-elevated));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 8%, transparent);
}

.order-logistics__service-icon--sedex,
.order-logistics__service-icon--pac,
.order-logistics__service-icon--jadlog,
.order-logistics__service-icon--loggi,
.order-logistics__service-icon--jtexpress {
    background: transparent;
    width: auto;
    height: auto;
    padding: 0;
}

.shipping-carrier-icon {
    display: block;
    flex-shrink: 0;
}

.order-logistics__service-icon .shipping-carrier-icon {
    border-radius: 0;
}

.order-logistics__shortfall {
    display: grid;
    gap: 0.55rem;
    margin-bottom: 0.75rem;
    padding: 0.75rem 0.85rem;
    border: 1px dashed color-mix(in srgb, var(--danger, #ff4842) 35%, var(--border));
    border-radius: var(--radius-md);
    background: rgba(255, 72, 66, 0.05);
}

.order-logistics__shortfall p {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.45;
}

.order-logistics__quote-note {
    margin: 0 0 0.65rem;
    font-size: 0.75rem;
    line-height: 1.4;
}

.order-logistics--compact .order-logistics__submit {
    margin-top: 0;
}

.order-logistics {
    margin-top: 1rem;
}

.order-logistics--compact {
    margin-top: 0;
}

.order-logistics__head {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.7rem;
}

.order-logistics--compact .order-show-card__title {
    margin: 0;
    font-size: 0.8125rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}

.order-logistics__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem 0.65rem;
    margin: 0 0 0.8rem;
    padding: 0;
    border: none;
    background: none;
}

.order-logistics__stats dt {
    margin: 0 0 0.15rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}

.order-logistics__stats dd {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1.35;
}

.order-logistics--compact .order-logistics__balance-link {
    display: block;
    margin: 0.2rem 0 0;
    font-size: 0.75rem;
    font-weight: 600;
}

.order-logistics--compact .order-logistics__services {
    gap: 0.45rem;
    margin-bottom: 0.65rem;
}

.order-logistics__submit {
    width: 100%;
    justify-content: center;
}

.order-logistics--compact .order-logistics__issued {
    padding: 0.65rem 0.75rem;
}

.order-logistics--compact .order-logistics__issued-head {
    margin-bottom: 0;
}

.order-logistics__issued-lines {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.2rem 0.35rem;
    margin: 0.3rem 0 0.35rem;
    font-size: 0.8125rem;
    line-height: 1.35;
}

.order-logistics--compact .order-logistics__issued-action {
    font-size: 0.75rem;
}

.order-logistics--compact .order-logistics__status {
    font-size: 0.8125rem;
}

.order-logistics__unavailable {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.45;
}

.order-logistics__flash {
    margin-bottom: 0.65rem;
    padding: 0.5rem 0.65rem;
    font-size: 0.8125rem;
}

.order-logistics__body {
    padding: 0 1.5rem 1.35rem;
}

.order-logistics__summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.85rem 1.25rem;
    margin: 0 0 1.15rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-subtle);
}

.order-logistics__summary dt {
    margin: 0 0 0.2rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
}

.order-logistics__summary dd {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.order-logistics__quote-lead {
    margin: 0 0 0.85rem;
    font-size: 0.875rem;
}

.order-logistics__services {
    display: grid;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.order-logistics__service {
    cursor: pointer;
}

.order-logistics__service input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.order-logistics__service-card {
    display: grid;
    grid-template-columns: 2.25rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-elevated);
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.order-logistics__service:hover .order-logistics__service-card {
    border-color: var(--border-strong);
}

.order-logistics__service input:checked + .order-logistics__service-card {
    border-color: color-mix(in srgb, var(--brand) 35%, var(--border-strong));
    background: var(--brand-soft);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 10%, transparent);
}

.order-logistics__service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    background: var(--bg-subtle);
    color: var(--muted);
}

.order-logistics--compact .order-logistics__service-card {
    gap: 0.65rem;
    padding: 0.7rem 0.8rem;
}

.order-logistics--compact .order-logistics__service-icon {
    width: 2rem;
    height: 2rem;
}

.order-logistics--compact .order-logistics__service-body strong {
    font-size: 0.875rem;
}

.order-logistics--compact .order-logistics__service-body span:not(.order-logistics__service-warning) {
    font-size: 0.75rem;
}

.order-logistics--compact .order-logistics__service-price {
    font-size: 0.875rem;
}

.order-logistics__service input:checked + .order-logistics__service-card .order-logistics__service-icon {
    background: var(--bg-elevated);
    color: var(--brand);
}

.order-logistics__service-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.12rem;
    min-width: 0;
}

.order-logistics__service-body strong {
    font-size: 0.9375rem;
    line-height: 1.2;
}

.order-logistics__service-body span:not(.order-logistics__service-warning) {
    font-size: 0.8125rem;
    color: var(--muted);
    line-height: 1.25;
}

.order-logistics__service-price {
    font-size: 0.9375rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.order-logistics__issued {
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-elevated);
}

.order-logistics__issued--interactive {
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.order-logistics__issued--interactive:hover,
.order-logistics__issued--interactive:focus-visible {
    border-color: color-mix(in srgb, var(--brand) 35%, var(--border));
    box-shadow: 0 0 0 3px rgba(186, 24, 39, 0.08);
    outline: none;
}

.order-logistics__issued-action {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-left: auto;
    font-size: 0.8125rem;
    font-weight: 600;
}

.order-logistics__issued-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin-bottom: 0.85rem;
    width: 100%;
}

.order-logistics__status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    font-weight: 700;
}

.order-logistics__status--issued {
    color: #15803d;
}

.order-logistics__issued-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem 1rem;
}

.order-logistics__field-label {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
}

.order-logistics__tracking-link {
    padding: 0;
    border: none;
    background: none;
    font: inherit;
    font-weight: 700;
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    color: var(--brand);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.order-logistics__code {
    font-size: 0.8125rem;
}

.order-logistics__hint {
    margin: 0.85rem 0 0;
    font-size: 0.8125rem;
}

.order-logistics__manual {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
}

.order-logistics__manual-label {
    margin: 0;
    font-size: 0.8125rem;
}

.page-settings .settings-form-panel {
    padding: 0 1.5rem 1.5rem;
}

/* Settings panels: padding and spacing for any form/content placed directly in dash-panel--minimal */
.page-settings .dash-panel--minimal + .dash-panel--minimal {
    margin-top: 1.25rem;
}

.page-settings .dash-panel--minimal:not(.dash-panel--table) > .form-grid,
.page-settings .dash-panel--minimal:not(.dash-panel--table) > .settings-form {
    padding: 1.25rem 1.5rem 1.5rem;
}

.page-settings .settings-form-panel .settings-form {
    padding: 1.25rem 0 0;
}

.page-settings .settings-form,
.page-settings .dash-panel--minimal .form-grid.settings-form {
    display: grid;
    gap: 1.15rem;
}

.page-settings .settings-form:not(.settings-form--wide):not(.form-grid--2):not(.form-grid--4),
.page-settings .settings-form-panel .settings-form {
    max-width: 36rem;
}

.page-settings .settings-form.settings-form--wide,
.page-settings .dash-panel--minimal > .form-grid.form-grid--2,
.page-settings .dash-panel--minimal > .form-grid.form-grid--4 {
    max-width: none;
}

.page-settings .settings-form__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    padding-top: 0.35rem;
}

.page-settings .settings-form__section {
    display: grid;
    gap: 1rem;
    padding-top: 1.15rem;
    border-top: 1px solid var(--border);
}

.page-settings .settings-form__section:first-child {
    padding-top: 0;
    border-top: 0;
}

.page-settings .settings-form__section-title {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}

.page-settings--checkout .settings-form--checkout {
    max-width: 40rem;
}

.page-settings .dash-panel--minimal.dash-panel--table + .dash-panel--minimal.dash-panel--table {
    margin-top: 1.25rem;
}

.form-field input:not([type="checkbox"]):not([type="radio"]),
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    font: inherit;
    background: var(--bg-elevated);
    color: var(--text);
}

.form-field input:not([type="checkbox"]):not([type="radio"]):focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-soft);
}

.form-field select {
    max-width: 24rem;
}

.order-show-main {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.order-show-aside {
    display: grid;
    gap: 1rem;
    min-width: 0;
    align-content: start;
}

.order-show-main > .panel-card,
.order-show-aside > .panel-card {
    padding: 1.25rem;
}

.order-show-lot > .order-show-card__title,
.order-show-main > .panel-card > .order-show-card__title {
    margin-bottom: 0.85rem;
}

.order-show-aside-meta {
    padding: 0;
    overflow: hidden;
}

.order-show-aside-meta__block {
    padding: 1.15rem 1.25rem;
}

.order-show-aside-meta__block + .order-show-aside-meta__block {
    border-top: 1px solid var(--border);
}

.order-show-aside-meta .order-show-card__title {
    margin-bottom: 0.65rem;
    font-size: 0.8125rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}

.order-show-ops {
    padding: 1.15rem 1.25rem;
}

.order-show-ops > .order-show-card__title {
    margin-bottom: 0.75rem;
}

.order-show-ops__list {
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0;
}

.order-show-ops__item {
    margin: 0;
    display: grid;
    gap: 0.45rem;
}

.order-show-ops__item--divider {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border);
}

.order-show-ops__item dt {
    margin: 0;
}

.order-show-ops__item dd {
    margin: 0;
}

.order-show-ops__heading {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}

.order-show-ops__value--status {
    display: grid;
    gap: 0.55rem;
}

.order-show-ops__value--status .badge {
    align-self: flex-start;
}

.order-show-shipment-empty {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.order-show-shipment-empty__label {
    font-size: 0.8125rem;
}

.order-show-shipment-display {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
    padding: 0.2rem 0.45rem;
    margin: -0.2rem -0.45rem;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    background: transparent;
    text-align: left;
    cursor: pointer;
    font: inherit;
    color: inherit;
    transition: background 0.12s, border-color 0.12s;
}

.order-show-shipment-display:hover,
.order-show-shipment-display:focus-visible {
    background: var(--bg-hover);
    border-color: var(--border);
    outline: none;
}

.order-show-shipment__meta {
    margin: 0.35rem 0 0;
    font-size: 0.75rem;
}

.ui-select--show-status {
    width: 100%;
}

.order-show-ops__empty {
    margin: 0.25rem 0 0;
    font-size: 0.875rem;
}

.page-order-show > .panel-card {
    margin-top: 1rem;
}

.order-show-card__title {
    margin: 0 0 1rem;
    font-size: 1rem;
}

.order-show-lot__body {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.order-show-lot__media,
.order-show-lot__media.orders-lot-thumb--interactive {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    padding: 0;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    overflow: hidden;
    background: var(--bg-subtle);
    cursor: pointer;
}

.order-show-lot__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.order-show-lot__info {
    min-width: 0;
    flex: 1;
    display: grid;
    gap: 0.4rem;
}

.order-show-lot__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.65rem;
}

.order-show-lot__number {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.45rem;
    border-radius: var(--radius-sm);
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.order-show-lot__id {
    font-size: 0.75rem;
    color: var(--muted);
}

.order-show-lot__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--text);
    word-break: break-word;
}

.order-show-lot__award,
.order-show-lot__dims {
    margin: 0.55rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.45;
}

.order-show-buyer__name {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.35;
    word-break: break-word;
}

.order-show-buyer__cartela {
    margin: 0.35rem 0 0;
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.order-show-auction {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.45;
    color: var(--text-secondary);
}

.order-show-auction__date {
    margin: 0.35rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.4;
}

.order-show-values th {
    width: 42%;
}

.order-receipt-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    margin-top: 0.85rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid color-mix(in srgb, var(--brand) 18%, var(--border));
    border-radius: var(--radius-md);
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--brand) 6%, var(--bg-elevated)) 0%,
        var(--bg-elevated) 100%
    );
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.order-receipt-card:hover {
    border-color: color-mix(in srgb, var(--brand) 32%, var(--border));
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.order-receipt-card:focus,
.order-receipt-card:focus-visible {
    outline: none;
    border-color: color-mix(in srgb, var(--brand) 40%, var(--border));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 14%, transparent);
}

.order-receipt-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-md);
    background: color-mix(in srgb, var(--brand) 10%, var(--bg-subtle));
    color: var(--brand);
}

.order-receipt-card__body {
    display: grid;
    gap: 0.1rem;
    min-width: 0;
    flex: 1;
}

.order-receipt-card__kicker {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.order-receipt-card__number {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}

.order-receipt-card__meta {
    font-size: 0.75rem;
    line-height: 1.35;
}

.order-receipt-card__chevron {
    flex-shrink: 0;
    color: var(--muted);
}

.orders-receipt-modal__dialog {
    width: min(100%, 34rem);
    max-height: min(92vh, 720px);
    overflow-y: auto;
}

.orders-receipt-modal__head {
    align-items: flex-start;
    gap: 0.75rem;
}

.orders-receipt-modal__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.orders-receipt-modal__logo {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--radius-md);
    object-fit: cover;
    border: 1px solid var(--border);
    background: var(--bg-subtle);
    flex-shrink: 0;
}

.orders-receipt-modal__logo-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--bg-subtle);
    color: var(--brand);
    flex-shrink: 0;
}

.orders-receipt-modal__logo-fallback.is-hidden {
    display: none;
}

.orders-receipt-modal__brand-copy {
    min-width: 0;
}

.orders-receipt-modal__gallery-name {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted);
    line-height: 1.3;
}

.orders-receipt-modal__head .orders-modal__title {
    margin: 0.15rem 0 0;
    font-size: 1.125rem;
}

.orders-receipt-modal__meta-bar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
    margin: 0 0 1rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-subtle);
}

.orders-receipt-modal__meta-label {
    display: block;
    margin-bottom: 0.15rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
}

.orders-receipt-modal__meta-bar strong {
    display: block;
    font-size: 0.8125rem;
    line-height: 1.35;
    word-break: break-word;
}

.orders-receipt-modal__body {
    display: grid;
    gap: 1rem;
}

.orders-receipt-modal__lot {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.85rem;
    align-items: start;
    padding: 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-elevated);
}

.orders-receipt-modal__lot-media img {
    display: block;
    width: 5.5rem;
    height: 5.5rem;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--bg-subtle);
}

.orders-receipt-modal__lot-kicker {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
}

.orders-receipt-modal__lot-title {
    margin: 0.2rem 0 0;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text);
}

.orders-receipt-modal__lot-award {
    margin: 0.45rem 0 0;
    font-size: 0.8125rem;
}

.orders-receipt-modal__facts {
    margin: 0;
    display: grid;
    gap: 0.55rem;
}

.orders-receipt-modal__facts > div {
    display: grid;
    grid-template-columns: minmax(0, 7.5rem) minmax(0, 1fr);
    gap: 0.35rem 0.75rem;
    align-items: baseline;
}

.orders-receipt-modal__facts dt {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.orders-receipt-modal__facts dd {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.4;
    word-break: break-word;
}

.orders-receipt-modal__lines-title {
    margin: 0 0 0.55rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.orders-receipt-modal__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.orders-receipt-modal__table th,
.orders-receipt-modal__table td {
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.orders-receipt-modal__table th {
    font-weight: 500;
    text-align: left;
    color: var(--text-secondary);
}

.orders-receipt-modal__table td {
    text-align: right;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.orders-receipt-modal__table tfoot th,
.orders-receipt-modal__table tfoot td {
    border-bottom: 0;
    padding-top: 0.75rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text);
}

.orders-receipt-modal__footnote {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.45;
}

.orders-receipt-modal__actions {
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .orders-receipt-modal__meta-bar {
        grid-template-columns: 1fr;
    }

    .orders-receipt-modal__facts > div {
        grid-template-columns: 1fr;
        gap: 0.15rem;
    }
}

.order-show-notices {
    margin-top: 1rem;
}

.order-show-dual .order-show-notices,
.order-show-dual .order-show-history {
    margin-top: 0;
}

.order-show-notices__lead {
    margin: 0.35rem 0 0;
    max-width: 42rem;
    line-height: 1.45;
}

.order-show-notices__table-wrap {
    overflow-x: auto;
}

.order-show-notice__label {
    display: block;
    font-weight: 600;
    color: var(--text);
}

.order-show-notice__hint {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.8125rem;
    line-height: 1.4;
    max-width: 28rem;
}

.order-show-notice__sent {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #15803d;
}

.order-show-notice__pending {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--muted);
}

[data-theme="dark"] .order-show-notice__sent {
    color: #4ade80;
}

@media (max-width: 900px) {
    .order-show-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "lot"
            "meta"
            "values"
            "logistics";
    }
}

/* Status change button (lista + detalhe) — mesmas medidas do .badge */
.orders-cell--status .badge,
.orders-cell--status .orders-status-change-btn.badge {
    vertical-align: middle;
}

.orders-status-change-btn.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    text-align: left;
    line-height: inherit;
    max-width: none;
    transition: filter 0.15s ease;
}

.orders-status-change-btn.badge:hover {
    filter: brightness(0.96);
}

.orders-status-change-btn.badge:focus,
.orders-status-change-btn.badge:focus-visible,
.orders-status-change-btn.badge:active {
    outline: none;
    box-shadow: none;
    filter: brightness(0.96);
}

.orders-status-change-btn__label {
    white-space: nowrap;
}

.orders-status-change-btn.is-busy {
    opacity: 0.65;
    pointer-events: none;
}

.orders-status-info-btn.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    text-align: left;
    line-height: inherit;
    max-width: none;
    transition: filter 0.15s ease;
}

.orders-status-info-btn.badge:hover {
    filter: brightness(0.96);
}

.orders-status-info-btn.badge:focus,
.orders-status-info-btn.badge:focus-visible,
.orders-status-info-btn.badge:active {
    outline: none;
    box-shadow: none;
    filter: brightness(0.96);
}

.orders-status-info-btn__label {
    white-space: nowrap;
}

/* Status info modal (somente leitura) */
.orders-status-info-modal__dialog {
    width: min(100%, 28rem);
    padding: 1.25rem;
}

.orders-status-info-modal__head {
    margin-bottom: 0.85rem;
}

.orders-status-info-modal__lead {
    margin: 0.3rem 0 0;
    font-size: 0.875rem;
}

.orders-status-info-modal__lead strong {
    color: var(--text);
    font-weight: 700;
}

.orders-status-info-modal__badge-wrap {
    margin: 0 0 0.65rem;
}

.orders-status-info-modal__badge-wrap .orders-status-btn {
    min-width: auto;
}

.orders-status-info-modal__intro {
    margin: 0 0 1rem;
    font-size: 0.875rem;
    line-height: 1.45;
}

.orders-status-info-modal__rows {
    margin: 0;
    display: grid;
    gap: 0.55rem;
}

.orders-status-info-modal__rows > div {
    display: grid;
    grid-template-columns: minmax(0, 9.5rem) minmax(0, 1fr);
    gap: 0.35rem 0.75rem;
    align-items: baseline;
}

.orders-status-info-modal__rows dt {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.orders-status-info-modal__rows dd {
    margin: 0;
    font-size: 0.9375rem;
    word-break: break-word;
}

.orders-status-info-modal__rows a {
    color: var(--brand);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.orders-status-info-modal__section {
    margin-top: 1.15rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.orders-status-info-modal__section-title {
    margin: 0 0 0.65rem;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
}

.orders-status-info-modal__actions {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

.orders-status-info-modal__actions .btn-secondary[hidden] {
    display: none;
}

.hub-setup-blocked-modal__dialog {
    width: min(520px, calc(100vw - 2rem));
}

.hub-setup-blocked-modal__head {
    align-items: flex-start;
}

.hub-setup-blocked-modal__lead {
    margin: 0.35rem 0 0;
}

.hub-setup-blocked-modal__body p {
    margin: 0;
    line-height: 1.55;
}

.hub-setup-blocked-modal__actions {
    margin-top: 1rem;
    display: flex;
    justify-content: flex-end;
}

.orders-label-preview-modal__dialog {
    width: min(920px, calc(100vw - 2rem));
}

.orders-label-preview-modal__body {
    padding: 0 1.25rem 1rem;
}

.orders-label-preview-modal__frame {
    width: 100%;
    min-height: 420px;
    height: min(70vh, 640px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #fff;
}

.orders-label-preview-modal__external {
    margin: 0;
    padding: 1rem;
    border: 1px dashed var(--border);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
}

.orders-label-preview-modal__actions {
    justify-content: flex-end;
}

.order-show-header__status {
    flex-shrink: 0;
}

/* Status modal */
.orders-status-modal__dialog {
    width: min(100%, 24rem);
    padding: 1.25rem;
}

.orders-status-modal__select-wrap {
    margin-top: 0.35rem;
}

.orders-status-modal__select,
.orders-status-modal__select .ui-select__control {
    width: 100%;
}

.orders-status-modal__select.ui-select--status {
    background: transparent;
    border: none;
    padding: 0;
}

.orders-status-modal__select .ui-select__control {
    border-radius: var(--radius-md);
    overflow: hidden;
}

.orders-status-modal__select.is-open {
    position: relative;
    z-index: 2;
}

.orders-status-modal__select .ui-select__menu {
    z-index: 3;
}

.orders-status-modal__head {
    margin-bottom: 1rem;
}

.orders-status-modal__lead {
    margin: 0.3rem 0 0;
    font-size: 0.875rem;
}

.orders-status-modal__lead strong {
    color: var(--text);
    font-weight: 700;
}

.orders-status-modal__body {
    gap: 0.85rem;
    margin-bottom: 0.25rem;
}

.orders-status-modal__body.form-grid label {
    margin: 0;
}

.orders-status-modal__current {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.65rem;
    margin: 0;
}

.orders-status-modal__current-label {
    font-size: 0.8125rem;
}

.orders-status-modal__actions {
    margin-top: 1rem;
}

.orders-status-modal__actions .btn-primary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.orders-modal__close--text {
    font-size: 1.35rem;
    line-height: 1;
    font-weight: 400;
}

/* Rastreio somente leitura */
.orders-tracking-readonly,
.order-show-shipment-readonly {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
    padding: 0.35rem 0;
    max-width: 100%;
}

.orders-tracking-readonly .orders-tracking,
.order-show-shipment-readonly .orders-tracking {
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--text);
}

/* Avisos compactos */
.order-show-notices__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.35rem 1rem;
    margin-bottom: 0.75rem;
}

.order-show-notices__lead {
    margin: 0;
    font-size: 0.8125rem;
    max-width: none;
}

.order-show-notices__list {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.order-show-notice-row {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) 8.5rem 9.5rem;
    gap: 0.75rem;
    align-items: center;
    padding: 0.55rem 0.85rem;
    font-size: 0.8125rem;
}

.order-show-notice-row + .order-show-notice-row {
    border-top: 1px solid var(--border);
}

.order-show-notice__label {
    font-weight: 600;
    color: var(--text);
}

.order-show-notice__state.is-sent {
    font-weight: 600;
    color: #166534;
}

.order-show-notice__state.is-pending {
    font-weight: 600;
    color: var(--muted);
}

[data-theme="dark"] .order-show-notice__state.is-sent {
    color: #86efac;
}

.order-show-notices__empty {
    margin: 0;
    font-size: 0.875rem;
}

.order-show-dual {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 1rem;
    margin-top: 1rem;
    align-items: stretch;
}

.order-show-dual > .panel-card {
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.order-show-dual .order-show-notices__list,
.order-show-dual .order-show-timeline {
    flex: 1 1 auto;
}

.order-show-dual .order-show-card__title {
    margin-bottom: 0.75rem;
}

@media (max-width: 960px) {
    .order-show-dual {
        grid-template-columns: 1fr;
    }
}

/* Histórico timeline */
.order-show-history {
    margin-top: 1rem;
}

.order-show-timeline {
    --timeline-track: 1.125rem;
    --timeline-dot: 0.5rem;
    --timeline-line: 2px;
    --timeline-dot-offset: 0.35rem;

    list-style: none;
    margin: 0;
    padding: 0.25rem 0 0;
}

.order-show-timeline__item {
    display: grid;
    grid-template-columns: var(--timeline-track) minmax(0, 1fr);
    gap: 0.75rem;
    padding-bottom: 0.85rem;
    position: relative;
}

.order-show-timeline__item:last-child {
    padding-bottom: 0;
}

.order-show-timeline__item:not(:last-child)::before {
    content: "";
    position: absolute;
    left: calc((var(--timeline-track) - var(--timeline-line)) / 2);
    top: calc(var(--timeline-dot-offset) + var(--timeline-dot));
    bottom: 0;
    width: var(--timeline-line);
    background: var(--border);
    pointer-events: none;
}

.order-show-timeline__dot {
    width: var(--timeline-dot);
    height: var(--timeline-dot);
    margin-top: var(--timeline-dot-offset);
    justify-self: center;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 18%, transparent);
}

.order-show-timeline__item--status-paid .order-show-timeline__dot {
    background: var(--status-paid, #15803d);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--status-paid, #15803d) 18%, transparent);
}

.order-show-timeline__item--status-preparing .order-show-timeline__dot {
    background: var(--status-preparing, #1d4ed8);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--status-preparing, #1d4ed8) 18%, transparent);
}

.order-show-timeline__item--status-shipped .order-show-timeline__dot {
    background: var(--status-shipped, #7c3aed);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--status-shipped, #7c3aed) 18%, transparent);
}

.order-show-timeline__item--status-delivered .order-show-timeline__dot {
    background: var(--status-delivered, #0f766e);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--status-delivered, #0f766e) 18%, transparent);
}

.order-show-timeline__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
}

.order-show-timeline__top time {
    font-size: 0.8125rem;
    color: var(--muted);
}

.order-show-timeline__actor {
    margin: 0.2rem 0 0;
    font-size: 0.8125rem;
}

.order-show-aside-meta .order-show-card__title {
    margin-bottom: 0.35rem;
    font-size: 0.6875rem;
    letter-spacing: 0.06em;
}

.order-show-buyer__name {
    margin: 0;
}

@media (max-width: 720px) {
    .order-show-notice-row {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }
}

/* Carteira, compradores, templates */
.panel-flash {
    margin: 0 0 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9375rem;
}

.panel-flash--success {
    background: rgba(34, 197, 94, 0.12);
    color: var(--text);
}

.panel-flash--error {
    background: rgba(239, 68, 68, 0.12);
    color: var(--text);
}

.page-wallet {
    max-width: 1200px;
}

.wallet-dash-kpis {
    margin-bottom: 1.5rem;
}

.wallet-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.15rem 1.25rem;
    margin-bottom: 1.5rem;
}

.wallet-stat-grid--overview {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.wallet-stat-grid--compact {
    margin-bottom: 1.25rem;
}

.wallet-stat-card {
    position: relative;
    display: flex;
    overflow: hidden;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 7.5rem;
    padding: 1.15rem 1.25rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 1rem;
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.wallet-stat-card:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-card-hover);
}

.wallet-stat-card__accent {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--wallet-accent, var(--border));
}

.wallet-stat-card--available {
    --wallet-accent: #00B8D9;
}

.wallet-stat-card--processing {
    --wallet-accent: #6366F1;
}

.wallet-stat-card--withdrawals {
    --wallet-accent: #FFAB00;
}

.wallet-stat-card--credits {
    --wallet-accent: #007867;
}

.wallet-stat-card--link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.wallet-stat-card--link:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-1px);
}

.wallet-stat-card--link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.wallet-stat-card__actions {
    margin-top: 0.35rem;
}

.wallet-stat-card__cta {
    pointer-events: auto;
}

.panel-sidebar__nav-divider {
    margin: 0.65rem 0.85rem 0.35rem;
    border: 0;
    border-top: 1px solid var(--border);
}

.panel-sidebar__section-label--inline {
    margin: 0.15rem 0 0.35rem;
    padding-left: 0.85rem;
    padding-right: 0.85rem;
}

.dash-analytics-grid--with-wallet {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
}

.wallet-stat-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-width: 0;
    flex: 1;
}

.wallet-stat-card__label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    line-height: 1.35;
}

.wallet-stat-card__value {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

.wallet-stat-card__meta {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--muted);
    line-height: 1.35;
}

.wallet-stat-card__spark {
    flex-shrink: 0;
    width: 4.5rem;
    min-height: 2.75rem;
    overflow: visible;
}

.page-wallet--overview .wallet-overview-chart-panel {
    overflow: visible;
}

.page-wallet--overview .wallet-overview-chart-panel__body {
    overflow: visible;
}

.wallet-chart-mock-badge {
    display: inline-block;
    margin-left: 0.35rem;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    background: rgba(255, 171, 0, 0.14);
    color: #b45309;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    vertical-align: middle;
}

[data-theme="dark"] .wallet-chart-mock-badge {
    color: #fbbf24;
}

.wallet-status-panel__body {
    padding: 1.15rem 1.5rem 1.35rem;
}

.wallet-status-panel__cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
}

.wallet-status-panel__note {
    margin: 0.75rem 0 0;
    font-size: 0.875rem;
}

.wallet-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 1.5rem;
}

.wallet-quick-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-elevated);
    box-shadow: var(--shadow-sm);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.15s, box-shadow 0.15s, color 0.15s;
}

.wallet-quick-link:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-card-hover);
    color: var(--brand);
}

.wallet-withdraw-panel {
    padding: 1.15rem 1.5rem 1.35rem;
    overflow: visible;
}

.page-wallet--withdrawals .wallet-grid {
    overflow: visible;
}

.page-wallet--withdrawals .wallet-grid > .dash-panel {
    overflow: visible;
}

.wallet-withdraw__form .ui-select {
    width: 100%;
    position: relative;
}

.wallet-withdraw__form .ui-select.is-open {
    z-index: 30;
}

.wallet-withdraw__form .ui-select.is-open .ui-select__menu {
    z-index: 1200;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.4rem;
}

.wallet-withdraw__form .ui-select__menu[hidden] {
    display: none !important;
}

.wallet-withdraw__type-select .ui-select__option {
    margin: 0;
}

.wallet-bank-account {
    display: grid;
    gap: 0.75rem;
    margin: 0;
}

.wallet-bank-account__row {
    display: grid;
    gap: 0.2rem;
}

.wallet-bank-account__row dt {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}

.wallet-bank-account__row dd {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text);
}

.wallet-bank-account__status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0.85rem 0 0;
    font-size: 0.8125rem;
    font-weight: 600;
}

.wallet-bank-account__status--ok {
    color: #15803d;
}

.wallet-bank-account__status--pending {
    color: #b45309;
}

.wallet-bank-account-empty .btn {
    margin-top: 0.85rem;
}

.page-wallet--bank-accounts .wallet-grid--bank-accounts {
    grid-template-columns: 1fr;
    max-width: none;
}

.wallet-form-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 22rem);
    align-items: stretch;
    min-height: 32rem;
    border-top: 1px solid var(--border);
}

.wallet-form-split__main {
    padding: 1.35rem 1.5rem 1.5rem;
    min-width: 0;
}

.wallet-form-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1.5rem;
    margin: 0 0 1.25rem;
    padding: 0 0 0.85rem;
    border-bottom: 1px solid var(--border);
    list-style: none;
}

.wallet-form-nav__item {
    position: relative;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--muted);
    line-height: 1.35;
}

.wallet-form-nav__item.is-active {
    color: var(--text);
    font-weight: 600;
}

.wallet-form-nav__item.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(-0.85rem - 1px);
    height: 2px;
    background: var(--brand);
    border-radius: 1px;
}

.wallet-owner-choices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.wallet-owner-choice {
    position: relative;
    display: block;
    cursor: pointer;
}

.wallet-owner-choice input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.wallet-owner-choice__body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-height: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-elevated);
    transition: border-color 0.15s, background 0.15s;
}

.wallet-owner-choice__body strong {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
}

.wallet-owner-choice__body span:last-child {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.wallet-owner-choice:hover .wallet-owner-choice__body {
    border-color: var(--border-strong);
}

.wallet-owner-choice input:checked + .wallet-owner-choice__body {
    border-color: color-mix(in srgb, var(--brand) 35%, var(--border));
    background: var(--brand-soft);
}

.wallet-owner-choice input:focus-visible + .wallet-owner-choice__body {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.wallet-form-split__aside {
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--border);
    background: var(--bg-subtle);
    min-width: 0;
}

.wallet-form-split__visual {
    position: relative;
    flex: 1 1 auto;
    min-height: 12rem;
    overflow: hidden;
    background: #2b1117;
}

.wallet-form-split__visual-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.wallet-form-split__visual-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.35) 100%);
    pointer-events: none;
}

.wallet-form-split__visual-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
}

.wallet-form-split__info {
    flex-shrink: 0;
    padding: 1.15rem 1.25rem 1.35rem;
    border-top: 1px solid var(--border);
    background: var(--bg-elevated);
}

.wallet-form-split__info-title {
    margin: 0 0 0.35rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text);
}

.wallet-form-split__info-lead {
    margin: 0 0 0.85rem;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.wallet-form-split__checklist {
    list-style: none;
    margin: 0 0 0.95rem;
    padding: 0;
    display: grid;
    gap: 0.55rem;
}

.wallet-form-split__checklist li {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 0.55rem;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--text-secondary);
}

.wallet-form-split__check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: var(--radius-sm);
    background: var(--brand-soft);
    color: var(--brand);
    flex-shrink: 0;
}

.wallet-form-split__facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem 0.85rem;
    margin: 0;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-subtle);
}

.wallet-form-split__facts div {
    min-width: 0;
}

.wallet-form-split__facts--wide {
    grid-column: 1 / -1;
}

.wallet-form-split__facts dt {
    margin: 0 0 0.15rem;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
}

.wallet-form-split__facts dd {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text);
    word-break: break-word;
}

.page-wallet--bank-accounts .wallet-bank-account-form {
    max-width: none;
    margin: 0;
    width: 100%;
}

.page-wallet--bank-accounts .wallet-withdraw-panel--centered {
    display: block;
}

.page-wallet--bank-accounts .wallet-bank-account-form .ui-select {
    width: 100%;
    position: relative;
}

.page-wallet--bank-accounts .wallet-bank-account-form .ui-select.is-open {
    z-index: 30;
}

.page-wallet--bank-accounts .wallet-bank-account-form .ui-select.is-open .ui-select__menu {
    z-index: 1200;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.4rem;
}

.page-wallet--bank-accounts .wallet-bank-account-form .ui-select__menu[hidden] {
    display: none !important;
}

.page-wallet--bank-accounts .wallet-bank-account-form .ui-select__option {
    margin: 0;
}

.page-wallet--bank-accounts .wallet-withdraw-panel {
    padding: 1.25rem 1.5rem 1.5rem;
    overflow: visible;
}

.page-wallet--bank-accounts .dash-panel {
    overflow: visible;
}

.wallet-bank-readonly-fields {
    display: grid;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-subtle);
}

.wallet-bank-readonly__label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.2rem;
}

.wallet-bank-readonly__value {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.35;
    word-break: break-word;
}

.wallet-withdraw-destination {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.wallet-withdraw-destination__label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.35rem;
}

.wallet-withdraw-destination__value {
    margin: 0 0 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.45;
}

.wallet-bank-accounts-panel {
    padding: 1.25rem 1.5rem 1.5rem;
}

.wallet-bank-account-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(16rem, 18.5rem));
    gap: 0.85rem;
}

.wallet-bank-account-card {
    display: grid;
    grid-template-columns: 2.5rem 1fr;
    grid-template-areas:
        "logo badges"
        "title title"
        "bank bank"
        "stats stats"
        "action action";
    align-items: start;
    gap: 0.35rem 0.65rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.85rem 0.9rem 0.75rem;
    background: var(--bg-elevated);
    box-shadow: var(--shadow-sm);
    text-align: left;
}

.wallet-bank-account-card__logo-wrap {
    grid-area: logo;
    display: flex;
    justify-content: flex-start;
    margin-bottom: 0;
}

.wallet-bank-account-card__badges {
    grid-area: badges;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-content: flex-start;
    gap: 0.25rem;
}

.wallet-bank-account-card__title {
    grid-area: title;
    margin: 0;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}

.wallet-bank-account-card__bank {
    grid-area: bank;
    margin: 0;
    font-size: 0.75rem;
    color: var(--muted);
}

.wallet-bank-account-card__stats {
    grid-area: stats;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem 0.65rem;
    margin: 0.25rem 0 0;
    padding-top: 0.55rem;
    border-top: 1px solid var(--border);
    text-align: left;
}

.wallet-bank-account-card__action {
    grid-area: action;
    margin: 0.2rem 0 0;
}

.wallet-bank-account-card__stat--wide {
    grid-column: 1 / -1;
}

.wallet-bank-account-card__logo {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-sm);
    box-shadow: none;
    border: 1px solid var(--border-subtle);
}

.wallet-bank-account-card.is-default {
    border-color: rgba(21, 128, 61, 0.35);
    box-shadow: inset 0 0 0 1px rgba(21, 128, 61, 0.08);
}

.wallet-bank-account-card__badges .badge {
    font-size: 0.625rem;
    padding: 0.1rem 0.35rem;
}

.wallet-bank-account-card__stats dt {
    margin: 0;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--muted);
}

.wallet-bank-account-card__stats dd {
    margin: 0.08rem 0 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
    word-break: break-word;
}

.wallet-bank-account-card__action .btn {
    width: 100%;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
    font-size: 0.8125rem;
}

.btn-block {
    width: 100%;
}

.wallet-bank-account-form__note {
    font-size: 0.8125rem;
    color: var(--muted);
    line-height: 1.45;
}

.wallet-bank-account-form__note--info {
    margin: 0;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-subtle);
}

.wallet-bank-account-form__section {
    display: grid;
    gap: 1rem;
    padding-top: 1.15rem;
    border-top: 1px solid var(--border);
}

.wallet-bank-account-form__section--first {
    padding-top: 0;
    border-top: 0;
}

.wallet-bank-account-form__actions {
    padding-top: 0.35rem;
}

.wallet-bank-account-form__section-label {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}

.wallet-bank-owner-type__hint {
    margin: 0.65rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.45;
}

.field-hint {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--muted);
    line-height: 1.45;
}

.wallet-bank-owner-type {
    border: 0;
    padding: 0;
    margin: 0 0 0.25rem;
    min-width: 0;
}

.wallet-bank-owner-type__legend {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 0.55rem;
    padding: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text);
}

.wallet-segmented {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.wallet-segmented__option {
    position: relative;
    cursor: pointer;
}

.wallet-segmented__option input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.wallet-segmented__label {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    height: 100%;
    padding: 0.85rem 0.95rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-elevated);
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.wallet-segmented__label strong {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}

.wallet-segmented__label span:last-child {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--muted);
    line-height: 1.35;
}

.wallet-segmented__option:hover .wallet-segmented__label {
    border-color: var(--border-strong);
    background: var(--bg-subtle);
}

.wallet-segmented__option input:checked + .wallet-segmented__label {
    border-color: color-mix(in srgb, var(--brand) 35%, var(--border-strong));
    background: var(--brand-soft);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 12%, transparent);
}

.wallet-segmented__option input:focus-visible + .wallet-segmented__label {
    outline: 2px solid color-mix(in srgb, var(--brand) 45%, transparent);
    outline-offset: 2px;
}

.wallet-bank-owner-panel[hidden] {
    display: none !important;
}

.wallet-bank-account-form .form-field__icon {
    display: none;
}

.wallet-bank-owner-fields {
    display: grid;
    gap: 1rem;
}

.wallet-bank-owner-fields[hidden] {
    display: none !important;
}

.wallet-bank-owner-fields.is-visible {
    animation: wallet-owner-fields-in 0.28s ease;
}

@keyframes wallet-owner-fields-in {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

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

.wallet-bank-owner-panel--third {
    display: grid;
    gap: 1.15rem;
}

.wallet-bank-owner-panel--third[hidden] {
    display: none !important;
}

.wallet-withdraw-layout {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.wallet-withdraw-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-elevated);
}

.wallet-withdraw-summary__item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.wallet-withdraw-summary__item--primary {
    flex: 1 1 220px;
}

.wallet-withdraw-summary__label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.wallet-withdraw-summary__value {
    font-size: 1.375rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--text);
    line-height: 1.2;
}

.wallet-withdraw-summary__value--sm {
    font-size: 0.9375rem;
    font-weight: 600;
}

.wallet-withdraw-summary__meta {
    font-size: 0.8125rem;
    color: var(--muted);
}

.wallet-withdraw-summary__action {
    margin-left: auto;
}

.wallet-withdraw-columns {
    display: grid;
    grid-template-columns: minmax(300px, 440px) minmax(0, 1fr);
    gap: 1rem 1.25rem;
    align-items: start;
}

.wallet-withdraw-destination-card {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 1.1rem;
    padding: 0.95rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-subtle);
}

.wallet-withdraw-destination-card__logo {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
}

.wallet-withdraw-destination-card__body {
    min-width: 0;
    flex: 1;
}

.wallet-withdraw-destination-card__label {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
}

.wallet-withdraw-destination-card__title {
    display: block;
    margin: 0 0 0.25rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.35;
}

.wallet-withdraw-destination-card__meta {
    margin: 0 0 0.45rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

.page-wallet--withdrawals .wallet-grid--withdrawals {
    grid-template-columns: minmax(300px, 400px) minmax(0, 1fr);
    align-items: start;
    gap: 1rem 1.25rem;
    overflow: visible;
}

.page-wallet--withdrawals .wallet-grid--withdrawals > .dash-panel {
    overflow: visible;
}

.wallet-withdraw-form-panel,
.wallet-withdraw-history-panel {
    min-height: 0;
}

.wallet-withdraw-history-panel .dash-empty--compact {
    padding: 1rem 1.5rem 1.35rem;
}

.page-wallet--withdrawals .wallet-grid {
    overflow: visible;
}

.wallet-grid__full {
    grid-column: 1 / -1;
}
.page-wallet--cadastro .wallet-onboarding--master {
    box-shadow: var(--shadow-card);
}

.wallet-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.wallet-kpi {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1.15rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-elevated);
    box-shadow: var(--shadow-sm);
}

.wallet-kpi--primary {
    border-color: rgba(186, 24, 39, 0.18);
    background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--brand-soft) 140%);
}

.wallet-kpi--primary .wallet-kpi__value {
    color: var(--brand-dark);
}

.wallet-kpi__label {
    font-size: 0.8125rem;
    color: var(--muted);
}

.wallet-kpi__value {
    font-size: 1.35rem;
    font-weight: 600;
}

.wallet-kpi__meta {
    font-size: 0.75rem;
    color: var(--muted);
}

.wallet-grid {
    display: grid;
    grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.wallet-section__title {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    font-weight: 600;
}

.wallet-table-wrap,
.dash-table-wrap {
    overflow-x: auto;
}

.wallet-table-wrap .wallet-table,
.dash-table-wrap .dash-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.wallet-table-wrap .wallet-table thead th,
.dash-table-wrap .dash-table thead th {
    padding: 0.85rem 1.25rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: left;
    color: var(--muted);
    background: var(--bg-subtle);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.dash-table-wrap .dash-table thead th.dash-table__center,
.dash-table-wrap .dash-table tbody td.dash-table__center {
    text-align: center;
}

.dash-table-wrap .dash-table tbody td.dash-table__center .dash-table__cell-text,
.dash-table-wrap .dash-table tbody td.dash-table__center .dash-table__cell-link {
    text-align: center;
}

.wallet-table-wrap .wallet-table tbody td,
.dash-table-wrap .dash-table tbody td {
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.wallet-table-wrap .wallet-table tbody tr:hover,
.dash-table-wrap .dash-table tbody tr:hover,
.dash-table__row:hover {
    background: var(--bg-hover);
}

.wallet-table-wrap .wallet-table tbody tr:last-child td,
.dash-table-wrap .dash-table tbody tr:last-child td,
.dash-table__row:last-child td {
    border-bottom: none;
}

.wallet-status-card {
    margin-bottom: 1.25rem;
}

.wallet-status-card__head {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    align-items: flex-start;
}

.wallet-status-card__main {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 40rem;
}

.wallet-status-card__hint {
    margin: 0;
    color: var(--muted);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.wallet-status-card__action {
    flex-shrink: 0;
}

.wallet-status-card__cta {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    display: grid;
    gap: 0.65rem;
    max-width: 28rem;
}

.wallet-status-card__cta-label {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.wallet-status-card__cta-note {
    margin: 0;
    font-size: 0.8125rem;
}

.wallet-status-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
}

.wallet-status-badge--pending,
.wallet-status-badge--documents {
    background: rgba(234, 179, 8, 0.15);
    color: #a16207;
}

.wallet-status-badge--approved {
    background: rgba(34, 197, 94, 0.14);
    color: #15803d;
}

.wallet-status-badge--rejected,
.wallet-status-badge--blocked {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
}

.wallet-status-badge--master {
    background: var(--brand-soft);
    color: var(--brand-dark);
}

.wallet-pending-panel {
    margin-top: 1.25rem;
    padding: 1rem 1.1rem;
    border-radius: var(--radius-md);
    border: 1px dashed var(--border-strong);
    background: var(--bg-subtle, rgba(15, 23, 42, 0.02));
}

.wallet-pending-panel p {
    margin: 0;
}

.wallet-pending-panel p + p {
    margin-top: 0.35rem;
}

.wallet-empty-inline {
    margin: 0;
}

.wallet-withdraw__form {
    max-width: none;
    overflow: visible;
}

.input-currency {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.01em;
    appearance: textfield;
    -moz-appearance: textfield;
}

.input-currency::-webkit-outer-spin-button,
.input-currency::-webkit-inner-spin-button {
    appearance: none;
    -webkit-appearance: none;
    margin: 0;
}

.wallet-overview-chart-panel__body {
    padding: 1.25rem 1.5rem 1.5rem;
}

.wallet-chart-kpis {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 2.75rem;
    padding-top: 0.35rem;
    margin-bottom: 1.75rem;
}

.wallet-chart-kpi {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.wallet-chart-kpi__value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}

.wallet-chart-kpi__label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--muted);
}

.wallet-overview-chart {
    min-height: 280px;
}

.wallet-overview-chart .apexcharts-tooltip {
    border: 1px solid var(--border) !important;
    box-shadow: var(--shadow-card) !important;
    border-radius: var(--radius-md) !important;
}

.wallet-overview-chart .apexcharts-legend-text {
    font-family: inherit !important;
    font-weight: 600 !important;
    color: var(--text-secondary) !important;
}

.wallet-chart-tooltip {
    min-width: 9.5rem;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 0.65rem;
    background: var(--bg-elevated);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
    font-family: inherit;
}

.wallet-chart-tooltip__head {
    padding: 0.45rem 0.75rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-subtle);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.wallet-chart-tooltip__body {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.75rem;
}

.wallet-chart-tooltip__dot {
    flex-shrink: 0;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
}

.wallet-chart-tooltip__label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text);
}

.wallet-chart-tooltip__value {
    margin-left: auto;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

.page-wallet--active .panel-card {
    box-shadow: var(--shadow-sm);
}

.wallet-admin-note {
    margin-bottom: 1rem;
}

.wallet-admin-table-wrap {
    padding: 0;
    overflow: hidden;
}

.wallet-admin-table td,
.wallet-admin-table th {
    vertical-align: middle;
}

.wallet-admin-table__meta {
    display: block;
    font-size: 0.8125rem;
    color: var(--muted);
    font-weight: 400;
}

.wallet-admin-table__actions {
    text-align: right;
    white-space: nowrap;
}

.form-grid--stacked label {
    grid-column: 1 / -1;
}

.email-template-vars {
    margin: 0;
    padding-left: 0;
    list-style: none;
    font-size: 0.875rem;
    display: grid;
    gap: 0.55rem;
}

.email-template-vars li {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.45rem 0.65rem;
}

.email-template-var {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border: 1px solid rgba(21, 128, 61, 0.25);
    border-radius: var(--radius-sm);
    background: rgba(21, 128, 61, 0.08);
    color: #15803d;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.email-template-var:hover {
    background: rgba(21, 128, 61, 0.14);
    border-color: rgba(21, 128, 61, 0.45);
}

.email-template-var__label {
    color: var(--muted);
}

.email-template-vars-card {
    margin-top: 1rem;
}

.email-template-vars-card__lead {
    margin: 0 0 0.85rem;
    font-size: 0.875rem;
}

.email-template-editor {
    position: relative;
    width: 100%;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    background: var(--bg-elevated);
    overflow: hidden;
}

.email-template-editor:focus-within {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-soft);
}

.email-template-editor__backdrop,
.email-template-editor__field {
    display: block;
    width: 100%;
    min-height: 12em;
    margin: 0;
    padding: 0.65rem 0.75rem;
    border: none;
    border-radius: 0;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.55;
    letter-spacing: normal;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    tab-size: 4;
    box-sizing: border-box;
}

.email-template-editor--single .email-template-editor__backdrop,
.email-template-editor--single .email-template-editor__field {
    min-height: 0;
    height: 2.75rem;
    line-height: 1.45;
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
}

.email-template-editor--single .email-template-editor__backdrop {
    overflow: hidden;
}

.email-template-editor__backdrop {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: auto;
    color: var(--text);
    background: transparent;
    scrollbar-width: none;
}

.email-template-editor__backdrop::-webkit-scrollbar {
    display: none;
}

.email-template-editor__field {
    position: relative;
    z-index: 1;
    background: transparent;
    color: transparent;
    -webkit-text-fill-color: transparent;
    caret-color: var(--text);
    outline: none;
    box-shadow: none;
}

.email-template-editor__textarea {
    resize: vertical;
}

.email-template-editor__field::placeholder {
    color: var(--icon-muted);
    -webkit-text-fill-color: var(--icon-muted);
    opacity: 1;
}

.email-template-editor__field:focus {
    outline: none;
    box-shadow: none;
}

.email-template-editor__field::selection {
    background: rgba(100, 116, 139, 0.18);
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.email-template-var-inline {
    color: #15803d;
    font-weight: 600;
    background: rgba(21, 128, 61, 0.1);
    border-radius: 3px;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.email-branding-logo__label {
    display: block;
    margin-bottom: 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.email-branding-logo__row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.email-branding-logo__preview {
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-subtle);
}

.email-branding-logo__preview img {
    display: block;
    max-width: 180px;
    max-height: 64px;
    width: auto;
    height: auto;
}

.email-branding-logo__default-note {
    margin: 0;
    max-width: 16rem;
    font-size: 0.8125rem;
    line-height: 1.45;
}

.email-branding-logo__empty {
    padding: 1rem 1.25rem;
    border: 1px dashed var(--border);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
}

.email-branding-logo__actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
}

.email-branding-logo__upload {
    cursor: pointer;
    margin: 0;
}

.email-branding-logo__remove {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8125rem;
    color: var(--muted);
    cursor: pointer;
}

.email-template-vars code {
    font-size: 0.8125rem;
}

.btn-sm {
    padding: 0.35rem 0.65rem;
    font-size: 0.8125rem;
}

.buyers-table__actions {
    text-align: right;
    white-space: nowrap;
}

.wallet-onboarding-status__head {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    align-items: flex-start;
}

.wallet-onboarding__intro {
    margin: 0.35rem 0 0;
    max-width: 52rem;
}

.wallet-onboarding__steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.25rem;
}

.wallet-onboarding__step {
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.wallet-onboarding__step:first-child {
    padding-top: 0;
    border-top: 0;
}

.wallet-onboarding__step-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.wallet-onboarding__step-lead {
    margin: 0.35rem 0 0.85rem;
    max-width: 48rem;
}

.wallet-onboarding__block {
    margin: 0.85rem 0 0;
}

.wallet-onboarding__form {
    margin-top: 0.25rem;
}

.wallet-checklist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.wallet-checklist__item {
    display: grid;
    grid-template-columns: minmax(8rem, 11rem) 1fr;
    gap: 0.75rem;
    align-items: baseline;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-subtle, rgba(15, 23, 42, 0.02));
}

.wallet-checklist__item.is-ok {
    border-color: rgba(22, 163, 74, 0.25);
}

.wallet-checklist__item.is-missing {
    border-color: rgba(220, 38, 38, 0.25);
}

.wallet-checklist__label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--muted);
}

.wallet-checklist__value {
    font-size: 0.875rem;
    word-break: break-word;
}

.wallet-checklist__item.is-ok .wallet-checklist__value::before {
    content: "✓ ";
    color: #16a34a;
    font-weight: 700;
}

.wallet-checklist__item.is-missing .wallet-checklist__value::before {
    content: "! ";
    color: #dc2626;
    font-weight: 700;
}

@media (max-width: 640px) {
    .wallet-checklist__item {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }
}

.wallet-empty__title {
    margin: 0 0 0.35rem;
    font-weight: 600;
}

.page-wallet [id^="wallet-"],
.page-wallet .wallet-page-anchor {
    scroll-margin-top: 1.25rem;
}

.wallet-page-anchor {
    display: block;
    height: 0;
}

.wallet-onboarding.panel-card {
    padding: 0;
    overflow: hidden;
}

.wallet-onboarding--master.setup-wizard__card {
    padding: 1.35rem 1.5rem 1.5rem;
    overflow: visible;
}

.wallet-master-summary {
    margin-top: 1.25rem;
    max-width: 36rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-subtle, rgba(15, 23, 42, 0.02));
}

.wallet-master-summary__list {
    margin: 0;
}

.wallet-master-summary__item {
    display: grid;
    grid-template-columns: minmax(7.5rem, 9rem) minmax(0, 1fr);
    gap: 0.75rem 1rem;
    align-items: baseline;
    padding: 0.85rem 1rem;
}

.wallet-master-summary__item + .wallet-master-summary__item {
    border-top: 1px solid var(--border);
}

.wallet-master-summary__item dt {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--muted);
}

.wallet-master-summary__item dd {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text);
    word-break: break-word;
}

.wallet-onboarding--master .wallet-master-link-form {
    margin-top: 1.25rem;
}

@media (max-width: 760px) {
    .wallet-master-summary__item {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }
}

.wallet-onboarding__header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.wallet-wizard-layout {
    display: grid;
    grid-template-columns: minmax(11rem, 13.5rem) minmax(0, 1fr);
    min-height: var(--setup-stage-min-height, 22rem);
}

.wallet-wizard__main {
    padding: 1.25rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
}

.wallet-wizard__main .wallet-wizard {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.wallet-wizard__stepper {
    padding: 1.5rem 1.2rem 1.5rem 1.35rem;
    border-right: 1px solid var(--border);
    background: var(--bg-main);
}

.wallet-wizard__stepper-head {
    margin-bottom: 1.35rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.wallet-wizard__stepper-kicker {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--muted);
}

.wallet-wizard__stepper-title {
    display: block;
    margin-top: 0.25rem;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--text);
}

.wallet-wizard__stepper .wallet-env-badge {
    margin-bottom: 1.15rem;
}

.wallet-env-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.55rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(161, 98, 7, 0.2);
    background: rgba(234, 179, 8, 0.08);
    color: #92670a;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.wallet-wizard__track {
    list-style: none;
    margin: 0;
    padding: 0.15rem 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    --wallet-node-size: 2.125rem;
    --wallet-row-height: 3.35rem;
    --wallet-line-w: 2px;
    --wallet-track-progress: 0;
}

.wallet-wizard__track::before,
.wallet-wizard__track::after {
    content: "";
    position: absolute;
    left: calc(var(--wallet-node-size) / 2 - var(--wallet-line-w) / 2);
    top: calc(var(--wallet-row-height) / 2);
    width: var(--wallet-line-w);
    border-radius: 999px;
    pointer-events: none;
}

.wallet-wizard__track::before {
    bottom: calc(var(--wallet-row-height) / 2);
    background: color-mix(in srgb, var(--border) 72%, var(--bg-main));
    z-index: 0;
}

.wallet-wizard__track::after {
    height: calc((100% - var(--wallet-row-height)) * var(--wallet-track-progress) / 100);
    max-height: calc(100% - var(--wallet-row-height));
    background: linear-gradient(
        180deg,
        var(--success, #16a34a),
        color-mix(in srgb, var(--success, #16a34a) 78%, #22c55e)
    );
    z-index: 0;
    transition: height 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.wallet-wizard__track-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: var(--wallet-row-height);
    padding: 0;
    margin: 0;
    color: var(--muted);
    position: relative;
    z-index: 1;
    transition: color 0.2s ease;
}

.wallet-wizard__track-node {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: var(--wallet-node-size);
    height: var(--wallet-node-size);
    border-radius: 999px;
    border: 1.5px solid var(--border-strong, var(--border));
    background: var(--bg-main);
    color: var(--muted);
    box-shadow: 0 0 0 3px var(--bg-main);
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.wallet-wizard__track-node-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.wallet-wizard__track-node-icon--check {
    display: none;
}

.wallet-wizard__track-label {
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25;
    transition: color 0.2s ease, font-weight 0.2s ease;
}

.wallet-wizard__track-item.is-active {
    color: var(--text);
}

.wallet-wizard__track-item.is-active .wallet-wizard__track-label {
    font-weight: 700;
    color: var(--brand);
}

.wallet-wizard__track-item.is-active .wallet-wizard__track-node {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
    box-shadow: 0 0 0 3px var(--bg-main), 0 0 0 5px color-mix(in srgb, var(--brand) 20%, transparent);
}

.wallet-wizard__track-item.is-complete {
    color: var(--text-secondary);
}

.wallet-wizard__track-item.is-complete .wallet-wizard__track-label {
    color: var(--text);
    font-weight: 600;
}

.wallet-wizard__track-item.is-complete .wallet-wizard__track-node {
    border-color: color-mix(in srgb, var(--success, #16a34a) 55%, var(--border));
    background: color-mix(in srgb, var(--success, #16a34a) 12%, var(--bg-main));
    color: var(--success, #16a34a);
    box-shadow: 0 0 0 3px var(--bg-main);
}

.wallet-wizard__track-item.is-complete .wallet-wizard__track-node-icon--step {
    display: none;
}

.wallet-wizard__track-item.is-complete .wallet-wizard__track-node-icon--check {
    display: inline-flex;
}

.wallet-wizard__panels {
    display: grid;
    flex: 1;
    align-content: start;
}

.wallet-wizard__main .wallet-wizard {
    min-height: 100%;
}

.wallet-wizard__main > .wallet-wizard,
.wallet-wizard__main > form.wallet-wizard {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.setup-stage-step__grid > .wallet-wizard__stepper,
.setup-stage-step__grid > .setup-stage-sidebar,
.setup-stage-step__grid > .wallet-wizard__main {
    min-height: 100%;
}

.wallet-wizard__footer--simple {
    margin-top: auto;
}

.wallet-wizard__panel {
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
    pointer-events: none;
}

.wallet-wizard__panel.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.wallet-wizard__panel-head {
    margin-bottom: 1rem;
}

.wallet-wizard__panel-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.wallet-wizard__panel-lead {
    margin: 0.3rem 0 0;
    max-width: 36rem;
    font-size: 0.875rem;
    line-height: 1.45;
}

.wallet-wizard__fields .form-field__icon {
    display: none;
}

.wallet-wizard__fields.form-grid {
    max-width: 820px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wallet-wizard__fields.form-grid--stacked {
    grid-template-columns: 1fr;
    max-width: 520px;
}

.wallet-wizard__company-reveal {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-top: 0;
    pointer-events: none;
    transition:
        max-height 0.35s ease,
        opacity 0.28s ease,
        margin-top 0.28s ease;
}

.wallet-wizard__company-reveal.is-visible {
    max-height: 360px;
    opacity: 1;
    margin-top: 1rem;
    pointer-events: auto;
}

.wallet-wizard__company-reveal-inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.wallet-wizard__trade-field {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-top: 0;
    pointer-events: none;
    transition:
        max-height 0.3s ease,
        opacity 0.24s ease,
        margin-top 0.24s ease;
}

.wallet-wizard__trade-field.is-visible {
    max-height: 120px;
    opacity: 1;
    margin-top: 0;
    pointer-events: auto;
}

.wallet-wizard__footer {
    position: relative;
}

.wallet-wizard__draft-error {
    flex: 1 1 100%;
    margin: 0 0 0.75rem;
}

.form-grid__span-2 {
    grid-column: 1 / -1;
}

.wallet-wizard label.form-field input.is-readonly,
.wallet-wizard label.form-field input[readonly] {
    background: var(--bg-subtle);
    color: var(--muted);
    cursor: not-allowed;
    -webkit-text-fill-color: var(--muted);
}

.wallet-wizard label.form-field input.is-readonly:focus,
.wallet-wizard label.form-field input.is-readonly:focus-visible,
.wallet-wizard label.form-field input[readonly]:focus,
.wallet-wizard label.form-field input[readonly]:focus-visible {
    outline: none;
    border-color: var(--border-strong);
    box-shadow: none;
}

.field-error {
    color: #dc2626;
    font-size: 0.8125rem;
    font-weight: 500;
}

.wallet-wizard__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.wallet-wizard__footer--simple {
    justify-content: flex-end;
}

.wallet-wizard__footer--simple [data-wallet-prev]:not([hidden]) {
    margin-right: auto;
}

.wallet-wizard__footer [hidden] {
    display: none !important;
}

.wallet-master-link-form {
    display: grid;
    gap: 0.75rem;
    max-width: 36rem;
}

.wallet-master-link-form .btn {
    justify-self: start;
}

.wallet-review--compact {
    margin-top: 1rem;
}

.wallet-master-note {
    margin-top: 1rem;
}

.wallet-onboarding--master .wallet-wizard__panel-title {
    margin: 0;
    font-size: 1.125rem;
}


.wallet-review {
    margin: 0;
    display: grid;
    gap: 0.65rem;
    max-width: 720px;
}

.wallet-review__row {
    display: grid;
    grid-template-columns: 10rem 1fr;
    gap: 1rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-subtle, rgba(15, 23, 42, 0.02));
}

.wallet-review__row dt {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--muted);
}

.wallet-review__row dd {
    margin: 0;
    font-size: 0.875rem;
    word-break: break-word;
}

.wallet-wizard__sandbox-note {
    margin: 1rem 0 0;
    padding: 0.75rem 0.85rem;
    border-radius: var(--radius-md);
    border: 1px dashed rgba(234, 179, 8, 0.45);
    background: rgba(234, 179, 8, 0.08);
    font-size: 0.8125rem;
}

@media (max-width: 960px) {
    .setup-stage-step__grid,
    .setup-wallet-cadastro-step__grid {
        grid-template-columns: 1fr;
    }

    .wallet-wizard-layout--with-visual {
        grid-template-columns: 1fr;
    }

    .wallet-wizard-layout--with-visual .wallet-wizard__stepper {
        order: 1;
    }

    .wallet-wizard-layout--with-visual .wallet-wizard__main {
        order: 2;
    }

    .wallet-wizard-layout--with-visual .setup-stage__visual,
    .setup-stage-layout--with-visual .setup-stage__visual {
        display: block;
        order: -1;
        grid-column: 1 / -1;
        border-left: 0;
        border-bottom: 1px solid var(--border);
        min-height: 0;
        aspect-ratio: 16 / 9;
        height: auto;
    }

    .setup-stage-layout--with-visual {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .wallet-wizard-layout {
        grid-template-columns: 1fr;
    }

    .wallet-wizard__stepper {
        border-right: 0;
        border-bottom: 1px solid var(--border);
        padding: 1rem 1rem 1.1rem;
    }

    .wallet-wizard__stepper-head {
        margin-bottom: 0.85rem;
        padding-bottom: 0.75rem;
    }

    .wallet-wizard__track {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        gap: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.15rem;
        --wallet-node-size: 1.875rem;
        --wallet-row-height: 2.35rem;
    }

    .wallet-wizard__track::before,
    .wallet-wizard__track::after {
        top: calc(var(--wallet-node-size) / 2 - var(--wallet-line-w) / 2);
        left: calc(var(--wallet-node-size) / 2);
        bottom: auto;
        width: auto;
        height: var(--wallet-line-w);
    }

    .wallet-wizard__track::before {
        right: calc(var(--wallet-node-size) / 2);
    }

    .wallet-wizard__track::after {
        width: calc((100% - var(--wallet-node-size)) * var(--wallet-track-progress) / 100);
        height: var(--wallet-line-w);
        transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .wallet-wizard__track-item {
        flex: 0 1 auto;
        min-height: var(--wallet-row-height);
        white-space: nowrap;
    }

    .wallet-wizard__track-label {
        font-size: 0.78rem;
    }

    .wallet-wizard__fields.form-grid {
        grid-template-columns: 1fr;
    }

    .wallet-review__row {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }
}

.form-grid__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    grid-column: 1 / -1;
}

.email-preview-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.email-preview-modal[hidden] {
    display: none;
}

.email-preview-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
}

.email-preview-modal__dialog {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: min(920px, 100%);
    max-height: calc(100vh - 2.5rem);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-modal, 0 24px 48px rgba(0, 0, 0, 0.18));
    overflow: hidden;
}

.email-preview-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border);
}

.email-preview-modal__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.email-preview-modal__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

.email-preview-modal__close:hover {
    background: var(--bg-hover);
    color: var(--text);
}

body.is-modal-lock {
    overflow: hidden;
}

.email-preview-modal__frame {
    flex: 1;
    width: 100%;
    min-height: 420px;
    border: none;
    background: #f4f4f5;
}

@media (max-width: 1200px) {
    .wallet-stat-grid--overview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .wallet-kpis,
    .wallet-stat-grid,
    .wallet-stat-grid--overview,
    .dash-stat-grid {
        grid-template-columns: 1fr;
    }

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

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

    .wallet-grid,
    .page-wallet--withdrawals .wallet-grid,
    .page-wallet--withdrawals .wallet-grid--withdrawals,
    .wallet-withdraw-columns {
        grid-template-columns: 1fr;
    }

    .wallet-owner-choices {
        grid-template-columns: 1fr;
    }

    .wallet-form-split {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .wallet-form-split__aside {
        order: -1;
        border-left: none;
        border-bottom: 1px solid var(--border);
    }

    .wallet-form-split__visual {
        min-height: 10rem;
        max-height: 12.5rem;
        aspect-ratio: 16 / 9;
    }

    .wallet-form-split__main {
        padding: 1.15rem 1.15rem 1.35rem;
    }

    .wallet-form-nav {
        gap: 0.35rem 1rem;
    }

    .wallet-withdraw-summary__action {
        margin-left: 0;
        width: 100%;
    }

    .dash-header--with-filter {
        align-items: flex-start;
    }

    .dash-period-filter {
        width: 100%;
    }

    .dash-period-filter .dash-period-select {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .dash-period-filter .dash-period-select .ui-select__menu {
        width: 100%;
        min-width: 0;
    }

    .wallet-bank-account-list {
        grid-template-columns: 1fr;
    }
}

/* Topbar — saldo de frete */
.topbar-shipping-balance {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.45rem 0.85rem 0.45rem 0.65rem;
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
    background: var(--bg-subtle);
    color: var(--text);
    text-decoration: none;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
    max-width: min(100%, 220px);
}

.topbar-shipping-balance:hover,
.topbar-shipping-balance:focus-visible {
    border-color: var(--border-strong);
    background: var(--bg-hover);
    box-shadow: none;
    color: var(--text);
}

.topbar-shipping-balance__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: rgba(var(--brand-rgb, 176, 29, 36), 0.1);
    color: var(--brand);
    flex-shrink: 0;
}

.topbar-shipping-balance__copy {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    min-width: 0;
}

.topbar-shipping-balance__label {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--text-secondary);
    line-height: 1.1;
}

.topbar-shipping-balance__value {
    font-size: 0.9375rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
    color: var(--text);
}

@media (max-width: 720px) {
    .topbar-shipping-balance__label {
        display: none;
    }

    .topbar-shipping-balance {
        padding: 0.4rem 0.65rem 0.4rem 0.45rem;
        max-width: none;
    }
}

/* Saldo de frete — página */
.page-wallet--shipping .wallet-shipping-hero {
    margin-bottom: 1rem;
    padding: 1.35rem 1.5rem;
}

.wallet-shipping-hero__main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
}

.wallet-shipping-hero__label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
}

.wallet-shipping-hero__value {
    display: block;
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    font-weight: 700;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    color: var(--text);
}

.wallet-shipping-hero__hint {
    display: block;
    margin-top: 0.45rem;
    font-size: 0.8125rem;
    line-height: 1.45;
}

.wallet-shipping-hero__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.85rem 1.25rem;
}

.wallet-shipping-kpi {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md, 8px);
    background: var(--bg-subtle);
    border: 1px solid var(--border-subtle);
}

.wallet-shipping-kpi__label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.wallet-shipping-kpi__value {
    font-size: 1.0625rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--text);
}

.wallet-shipping-kpi__value.is-credit {
    color: var(--success, #007867);
}

.wallet-shipping-pending-banner {
    margin-bottom: 1rem;
    padding: 1rem 1.15rem;
}

.wallet-shipping-pending-banner__text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
}

.wallet-shipping-pending-banner__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}

.wallet-shipping-pending-banner__list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.875rem;
}

.wallet-shipping-ledger-panel__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
}

.wallet-shipping-ledger-panel__head .dash-panel__title {
    margin-bottom: 0.15rem;
}

.wallet-shipping-table__date {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.wallet-shipping-table__type {
    font-size: 0.75rem;
}

.wallet-shipping-pagination {
    padding: 0.85rem 1rem 1rem;
    border-top: 1px solid var(--border-subtle);
}

.wallet-shipping-pagination nav {
    display: flex;
    justify-content: center;
}

.wallet-shipping-pagination .pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.wallet-shipping-pagination .page-link,
.wallet-shipping-pagination .page-item span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.55rem;
    border-radius: var(--radius-md, 8px);
    border: 1px solid var(--border-subtle);
    background: var(--bg-elevated);
    color: var(--text-secondary);
    font-size: 0.8125rem;
    text-decoration: none;
}

.wallet-shipping-pagination .page-item.active span {
    border-color: var(--brand);
    background: rgba(var(--brand-rgb, 176, 29, 36), 0.08);
    color: var(--brand);
    font-weight: 600;
}

.wallet-shipping-deposit-modal__dialog {
    max-width: 420px;
}

.wallet-shipping-deposit-modal__form {
    display: grid;
    gap: 0.85rem;
}

.wallet-table .is-credit {
    color: var(--success, #007867);
}

.wallet-table .is-debit {
    color: var(--text-primary);
}

.wallet-shipping-label-balance {
    display: grid;
    gap: 0.35rem;
    margin-bottom: 0.85rem;
    padding: 0.75rem 0.85rem;
    border-radius: var(--radius-md, 8px);
    background: var(--bg-muted);
    font-size: 0.8125rem;
}

.wallet-shipping-label-balance--modal {
    margin-bottom: 1rem;
    padding: 0;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    overflow: hidden;
}

.wallet-shipping-label-balance__head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.65rem;
    padding: 0.8rem 0.9rem;
    background: color-mix(in srgb, var(--brand) 6%, var(--bg-elevated));
    border-bottom: 1px solid var(--border);
}

.wallet-shipping-label-balance__head-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--radius-md);
    background: var(--brand-soft);
    color: var(--brand);
}

.wallet-shipping-label-balance__head-copy {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.wallet-shipping-label-balance__head-copy strong {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text);
}

.wallet-shipping-label-balance__head-copy span {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.35;
}

.wallet-shipping-label-balance__amount {
    font-size: 1rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--text);
    white-space: nowrap;
}

.wallet-shipping-label-balance--modal .wallet-shipping-label-balance__head {
    border-bottom: 0;
}

.wallet-shipping-label-balance--modal:has(.wallet-shipping-label-balance__shortfall) .wallet-shipping-label-balance__head {
    border-bottom: 1px solid var(--border);
}

.wallet-shipping-label-balance__shortfall {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.75rem 0.9rem 0.85rem;
    background: color-mix(in srgb, var(--brand) 4%, var(--bg-elevated));
}

.wallet-shipping-label-balance__shortfall-text {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--text-secondary);
}

.wallet-shipping-label-balance__shortfall-text strong {
    color: var(--text);
    font-weight: 700;
}

.wallet-shipping-label-balance__deposit {
    align-self: flex-start;
}

.wallet-shipping-label-balance__row {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
}

.orders-label-modal__content {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.order-label-sender {
    margin-bottom: 0.35rem;
}

.order-label-sender__choices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.order-label-sender__choice {
    position: relative;
    display: block;
    cursor: pointer;
}

.order-label-sender__choice input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.order-label-sender__choice-body {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    min-height: 100%;
    padding: 0.8rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-elevated);
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.order-label-sender__choice:hover .order-label-sender__choice-body {
    border-color: var(--border-strong);
}

.order-label-sender__choice input:checked + .order-label-sender__choice-body {
    border-color: color-mix(in srgb, var(--brand) 40%, var(--border));
    background: var(--brand-soft);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 18%, transparent);
}

.order-label-sender__choice input:focus-visible + .order-label-sender__choice-body {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.order-label-sender__choice-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.order-label-sender__choice-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-label-sender__choice-icon.is-fallback .order-label-sender__choice-icon-fallback,
.order-label-sender__choice-icon-fallback:not(.is-hidden) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.order-label-sender__choice-icon-fallback.is-hidden {
    display: none;
}

.order-label-sender__choice-icon--gallery {
    background: transparent;
    border-color: transparent;
}

.order-label-sender__choice-icon--gallery img {
    object-fit: contain;
    background: transparent;
}

.order-label-sender__choice-icon--gallery.is-fallback {
    background: var(--bg-subtle);
    border-color: var(--border);
}

.order-label-sender__choice-icon--gallery.is-fallback img {
    display: none;
}

.order-label-sender__choice-icon--gallery.is-fallback .order-label-sender__choice-icon-fallback {
    display: inline-flex;
}

.order-label-sender__choice-icon--consignor {
    background: color-mix(in srgb, var(--brand) 8%, var(--bg-subtle));
    color: var(--brand);
}

.order-label-sender__choice-initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--brand);
}

.order-label-sender__choice-initial[hidden] {
    display: none !important;
}

.order-label-sender__choice-icon--consignor.has-initial .order-label-sender__choice-icon-default {
    display: none !important;
}

.order-label-sender__choice-icon--consignor.has-initial {
    background: color-mix(in srgb, var(--brand) 10%, var(--bg-subtle));
    border-color: color-mix(in srgb, var(--brand) 20%, var(--border));
}

.order-label-sender__search-field[hidden] {
    display: none !important;
}

.order-label-sender__choice-copy {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.order-label-sender__choice-copy strong {
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.order-label-sender__choice-copy span {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.35;
}

.order-label-sender__consignor-choice.is-readonly {
    cursor: not-allowed;
}

.order-label-sender__consignor-choice.is-readonly .order-label-sender__choice-body {
    opacity: 0.62;
    background: var(--bg-subtle);
    border-style: dashed;
}

.order-label-sender__consignor-choice.is-readonly:hover .order-label-sender__choice-body {
    border-color: var(--border);
}

.order-label-sender__consignor-choice.is-readonly input:disabled + .order-label-sender__choice-body {
    cursor: not-allowed;
}

@media (max-width: 520px) {
    .order-label-sender__choices {
        grid-template-columns: 1fr;
    }
}

.order-logistics__quote-loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.order-logistics__quote-loading[hidden],
.order-logistics__quote-error[hidden],
[data-label-modal-content][hidden] {
    display: none !important;
}

.order-logistics__quote-loading .iconify {
    animation: order-logistics-quote-spin 0.9s linear infinite;
}

@keyframes order-logistics-quote-spin {
    to {
        transform: rotate(360deg);
    }
}

.orders-label-modal__dialog {
    max-width: 28rem;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.orders-label-modal__form {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

@media (max-width: 480px) {
    .order-label-sender__choices {
        grid-template-columns: 1fr;
    }
}

.order-label-sender__consignor-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin-top: 0.45rem;
}

.order-label-sender__linked {
    margin: 0;
    font-size: 0.8125rem;
}

.order-label-sender__link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0;
    border: 0;
    background: none;
    color: var(--brand);
    font: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.order-label-sender__link-btn:hover {
    color: var(--brand-strong, var(--brand));
}

.order-label-sender__picker {
    margin-top: 0.65rem;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-subtle);
}

.order-label-sender__search-field {
    margin-bottom: 0.65rem;
}

.order-label-sender__results {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    max-height: 11rem;
    overflow-y: auto;
}

.order-label-sender__result {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.1rem;
    width: 100%;
    padding: 0.55rem 0.65rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.order-label-sender__result:hover {
    border-color: color-mix(in srgb, var(--brand) 35%, var(--border));
    background: var(--brand-soft);
}

.order-label-sender__result strong {
    font-size: 0.8125rem;
}

.order-label-sender__result span {
    font-size: 0.75rem;
}

.order-label-sender__pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.55rem;
    font-size: 0.75rem;
}

.order-label-sender__picker-loading {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0.35rem 0 0;
    font-size: 0.8125rem;
}

.order-label-sender__picker-loading .iconify {
    animation: order-logistics-quote-spin 0.9s linear infinite;
}

.order-label-sender__picker-empty {
    margin: 0.35rem 0 0;
    font-size: 0.8125rem;
}

.order-label-sender__picker[hidden],
.order-label-sender__linked[hidden],
.order-label-sender__link-btn[hidden],
.order-label-sender__picker-loading[hidden],
.order-label-sender__picker-empty[hidden],
.order-label-sender__picker-hint[hidden] {
    display: none !important;
}

.order-label-sender__picker-hint {
    margin: 0.35rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.45;
}

.order-label-sender__picker-hint a {
    color: var(--brand);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.order-logistics__quote-error {
    padding: 0.65rem 0.75rem;
    border-radius: var(--radius-md, 8px);
    background: rgba(255, 72, 66, 0.08);
    color: var(--danger, #ff4842);
    font-size: 0.8125rem;
}

.order-logistics__service.is-insufficient .order-logistics__service-card {
    opacity: 0.72;
}

.order-logistics__service-warning {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.75rem;
    color: var(--danger, #ff4842);
}

.wallet-shipping-label-shortfall {
    display: grid;
    gap: 0.65rem;
    margin-top: 0.85rem;
    padding: 0.75rem 0.85rem;
    border-radius: var(--radius-md, 8px);
    border: 1px dashed var(--border-subtle);
}

.wallet-shipping-label-shortfall__text {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.45;
}

.order-logistics__balance-link {
    margin-left: 0.5rem;
    font-size: 0.8125rem;
}

.gallery-commissions-table__id {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.8125rem;
}

.gallery-commissions-table__field {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    max-width: 12rem;
}

.gallery-commissions-table__field input {
    width: 100%;
    padding: 0.55rem 0.65rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    font: inherit;
    background: var(--bg-elevated);
    color: var(--text);
}

.gallery-commissions-table__suffix {
    font-size: 0.875rem;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.gallery-commissions-table__sync {
    display: block;
    margin-top: 0.35rem;
}

.gallery-commissions-form .settings-form__actions {
    padding: 1rem 1.25rem 1.25rem;
}

.page-gateway-fees .dash-panel--table + .dash-panel--table {
    margin-top: 1.25rem;
}

/* ── Base table: align values left ── */
.gateway-fees-base-table .dash-table__right {
    text-align: left;
    font-variant-numeric: tabular-nums;
}

.gateway-fees-base-row__method {
    font-weight: 500;
}

.gateway-fees-base-row__action {
    text-align: left;
}

.gateway-fees-base-expand {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    background: var(--bg-main);
    color: var(--text);
    font: inherit;
    font-size: 0.8125rem;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.gateway-fees-base-expand:hover {
    border-color: var(--brand);
    background: var(--brand-soft);
}

.gateway-fees-base-expand__icon {
    color: var(--text-muted);
    flex-shrink: 0;
}

.gateway-fees-base-expand__chevron {
    color: var(--text-muted);
    flex-shrink: 0;
    transition: transform 0.18s ease;
}

.gateway-fees-base-row.is-expanded .gateway-fees-base-expand__chevron {
    transform: rotate(180deg);
}

.gateway-fees-base-details > td {
    padding: 0 0 0.85rem;
    border-top: none;
    background: color-mix(in srgb, var(--bg-elevated) 88%, var(--brand-soft));
}

.gateway-fees-installments {
    margin: 0 0.75rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-main);
}

.gateway-fees-installments__head {
    margin-bottom: 0.75rem;
}

.gateway-fees-installments__title {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text);
}

.gateway-fees-installments__note {
    margin: 0.25rem 0 0;
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.gateway-fees-installments__table-wrap {
    overflow-x: auto;
}

.gateway-fees-installments-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
}

.gateway-fees-installments-table th,
.gateway-fees-installments-table td {
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
    font-variant-numeric: tabular-nums;
}

.gateway-fees-installments-table th {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: var(--bg-elevated);
}

.gateway-fees-installments-table tbody tr:last-child td {
    border-bottom: none;
}

/* ── Search bar ── */
.gateway-fees-search-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1.25rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-elevated);
    position: sticky;
    top: var(--topbar-h);
    z-index: 10;
    transition: box-shadow 0.18s ease;
}

.gateway-fees-search-bar.is-stuck {
    box-shadow: 0 2px 8px color-mix(in srgb, var(--text) 10%, transparent);
}

.gateway-fees-search-field {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    width: 100%;
}

.gateway-fees-search-field__icon {
    position: absolute;
    left: 0.65rem;
    color: var(--text-muted);
    pointer-events: none;
    flex-shrink: 0;
    top: 50%;
    transform: translateY(-50%);
}

.gateway-fees-search-field input[type="search"] {
    width: 100%;
    padding: 0.5rem 0.75rem 0.5rem 2.2rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    font: inherit;
    font-size: 0.875rem;
    background: var(--bg-main);
    color: var(--text);
    min-width: 0;
}

.gateway-fees-search-field input[type="search"]:focus-visible {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-soft);
}

.gateway-fees-search-count {
    flex-shrink: 0;
    font-size: 0.8125rem;
    color: var(--text-muted);
    white-space: nowrap;
}

/* ── Table columns ── */
.gateway-fees-table__col-gallery {
    min-width: 14rem;
}

.gateway-fees-table__col-method {
    width: 220px;
    min-width: 180px;
}

.gateway-fees-method-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* ── Sticky thead below search bar ── */
.gateway-fees-markup-panel .dash-table-wrap {
    overflow: visible;
}

.gateway-fees-table__head-sticky th {
    position: sticky;
    top: calc(var(--topbar-h) + 56px);
    z-index: 9;
    background: var(--bg-subtle);
}

/* ── Gallery cell ── */
.gateway-fees-table__gallery {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
    vertical-align: middle !important;
}

.gateway-fees-gallery {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.gateway-fees-gallery__logo {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: contain;
    border: 1px solid var(--border);
    background: var(--bg-main);
}

.gateway-fees-gallery__avatar {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: color-mix(in srgb, var(--brand) 18%, var(--bg-main));
    color: var(--brand);
    font-size: 0.8125rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gateway-fees-gallery__name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.35;
}

/* ── Method cell ── */
.gateway-fees-table__method-cell {
    padding: 0.85rem 1rem !important;
    vertical-align: middle !important;
}

.gateway-fees-pair {
    display: grid;
    gap: 0.45rem;
    width: 11.75rem;
    max-width: 100%;
}

/* ── Input fields: adornment + flat input inside a single bordered shell ── */
.gateway-fees-field {
    display: flex;
    align-items: stretch;
    width: 100%;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-main);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    height: 36px;
}

.gateway-fees-field:focus-within {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-soft);
}

.gateway-fees-field__adornment {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    padding: 0 0.5rem;
    background: var(--bg-subtle);
    border-right: 1px solid var(--border-strong);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

.gateway-fees-field input {
    flex: 1;
    min-width: 0;
    width: auto;
    padding: 0 0.55rem;
    border: none;
    border-radius: 0;
    background: transparent;
    font: inherit;
    font-size: 0.875rem;
    font-variant-numeric: tabular-nums;
    color: var(--text);
    outline: none;
    height: 100%;
    box-shadow: none;
    -moz-appearance: textfield;
}

.gateway-fees-field input:focus-visible {
    border: none;
    box-shadow: none;
}

.gateway-fees-field input::-webkit-outer-spin-button,
.gateway-fees-field input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ── Footer ── */
.gateway-fees-form .settings-form__actions {
    padding: 1rem 1.25rem 1.25rem;
}

/* ── No results ── */
.gateway-fees-no-results {
    padding: 2rem 1.25rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.page-settings .dash-table input:not([type="checkbox"]):not([type="radio"]):not([data-gateway-percent]):not([data-gateway-fixed]),
.page-settings .dash-table select {
    width: 100%;
    padding: 0.55rem 0.65rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    font: inherit;
    background: var(--bg-elevated);
    color: var(--text);
}

.page-settings .dash-table input:not([type="checkbox"]):not([type="radio"]):not([data-gateway-percent]):not([data-gateway-fixed]):focus-visible,
.page-settings .dash-table select:focus-visible {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-soft);
}

.wallet-shipping-d17b-notice {
    margin-bottom: 1rem;
}

.wallet-shipping-settings-status-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--panel-border, #e5e7eb);
}

.wallet-shipping-settings-status-bar__main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 0.85rem;
}

.wallet-shipping-settings-status-bar__meta {
    font-size: 0.875rem;
}

.wallet-shipping-settings-status-bar__action {
    margin: 0;
}

.wallet-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--panel-text, #111827);
}

.wallet-status-pill::before {
    content: '';
    flex-shrink: 0;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: currentColor;
}

.wallet-status-pill--ok {
    color: #15803d;
}

.wallet-status-pill--ok::before {
    background: #22c55e;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
}

.wallet-status-pill--pending {
    color: #b45309;
}

.wallet-status-pill--pending::before {
    background: #f59e0b;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.25);
}

.wallet-shipping-settings-form input[readonly] {
    background: var(--panel-surface-muted, #f9fafb);
    color: var(--panel-text-muted, #6b7280);
    cursor: not-allowed;
}

.wallet-shipping-settings-frenet {
    margin-bottom: 1rem;
}

.wallet-shipping-settings-frenet__body {
    padding: 0 1.25rem 1.25rem;
}

.wallet-shipping-settings-frenet__actions {
    margin-top: 0.75rem;
}

.wallet-shipping-settings-frenet__mock {
    margin-top: 0.5rem;
    font-size: 0.8125rem;
}

.wallet-shipping-settings-form {
    padding: 1.25rem;
}

.wallet-shipping-settings-form__import-row {
    margin-bottom: 0.75rem;
}

.wallet-shipping-settings-form__head {
    margin-bottom: 1rem;
}

.wallet-shipping-settings-form__title {
    margin: 0;
    font-size: 1.125rem;
}

.wallet-shipping-settings-form__section {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.wallet-shipping-settings-form__section-title {
    margin: 0 0 0.75rem;
    font-size: 0.9375rem;
}

.wallet-shipping-settings-toggles {
    display: grid;
    gap: 0.5rem;
}

.wallet-shipping-settings-form__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.wallet-shipping-settings-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--panel-border, #e5e7eb);
    padding-bottom: 0.75rem;
}

.wallet-shipping-settings-tabs__btn {
    appearance: none;
    border: 1px solid transparent;
    background: transparent;
    color: var(--panel-text-muted, #6b7280);
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.wallet-shipping-settings-tabs__btn.is-active {
    color: var(--panel-text, #111827);
    background: var(--panel-surface-muted, #f3f4f6);
    border-color: var(--panel-border, #e5e7eb);
}

.wallet-shipping-settings-tab-panel {
    display: none;
}

.wallet-shipping-settings-tab-panel.is-active {
    display: block;
}

.wallet-shipping-settings-activation__body {
    padding: 0 0 0.25rem;
}

.wallet-shipping-settings-activation__actions {
    margin-top: 1rem;
}

.wallet-shipping-settings-activation__mock {
    margin-top: 0.75rem;
}

.shipping-onboarding-modal__dialog {
    max-width: 32rem;
}

.shipping-onboarding-modal__steps {
    margin: 0.75rem 0 0;
    padding-left: 1.1rem;
    color: var(--panel-text-muted, #6b7280);
}

.shipping-onboarding-modal .orders-modal__backdrop {
    pointer-events: none;
}

.orders-config-alert {
    margin-bottom: 1rem;
}

.orders-label-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
}

.orders-label-cancel-form {
    display: inline;
}

.wallet-ledger-detail-modal__dialog {
    max-width: 32rem;
    max-height: calc(100vh - 2rem);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
}

.wallet-ledger-detail-modal__dialog .orders-modal__head {
    flex-shrink: 0;
    margin-bottom: 0;
    padding: 1.25rem 1.5rem 0;
}

.wallet-ledger-detail-modal__body {
    display: grid;
    gap: 1.25rem;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 1.25rem 1.5rem;
}

.wallet-ledger-detail-modal__dialog .orders-modal__actions {
    flex-shrink: 0;
    margin-top: 0;
    padding: 1rem 1.5rem 1.25rem;
    border-top: 1px solid var(--panel-border, #e5e7eb);
}

.wallet-ledger-detail-modal__order {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 0.85rem 1rem;
    border: 1px solid var(--panel-border, #e5e7eb);
    border-radius: 0.75rem;
    background: var(--panel-surface-muted, #f8fafc);
}

.wallet-ledger-detail-modal__lot-media {
    flex-shrink: 0;
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 0.5rem;
    overflow: hidden;
    background: var(--panel-surface, #fff);
    border: 1px solid var(--panel-border, #e5e7eb);
}

.wallet-ledger-detail-modal__lot-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wallet-ledger-detail-modal__lot-media img[hidden] {
    display: none;
}

.wallet-ledger-detail-modal__lot-copy {
    min-width: 0;
    flex: 1;
}

.wallet-ledger-detail-modal__lot-kicker {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--panel-text-muted, #6b7280);
}

.wallet-ledger-detail-modal__lot-kicker[hidden] {
    display: none;
}

.wallet-ledger-detail-modal__lot-title {
    margin: 0.2rem 0 0;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--panel-text, #111827);
}

.wallet-ledger-detail-modal__auction {
    margin: 0.35rem 0 0;
    font-size: 0.85rem;
    line-height: 1.4;
}

.wallet-ledger-detail-modal__lead {
    margin: 0.25rem 0 0;
    font-size: 0.9rem;
}

.wallet-ledger-detail-modal__hero {
    padding: 1rem 1.1rem;
    border-radius: 0.75rem;
    background: var(--panel-surface-muted, #f8fafc);
    border: 1px solid var(--panel-border, #e5e7eb);
}

.wallet-ledger-detail-modal__hero-label {
    margin: 0;
    font-size: 0.85rem;
    color: var(--panel-text-muted, #6b7280);
}

.wallet-ledger-detail-modal__hero-value {
    margin: 0.35rem 0 0;
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.2;
}

.wallet-ledger-detail-modal__hero-meta {
    margin: 0.35rem 0 0;
    font-size: 0.85rem;
}

.wallet-ledger-detail-modal__section-title {
    margin: 0 0 0.65rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.wallet-ledger-detail-modal__rows {
    margin: 0;
    display: grid;
    gap: 0.45rem;
}

.wallet-ledger-detail-modal__rows > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.25rem 1rem;
    align-items: baseline;
}

.wallet-ledger-detail-modal__rows dt {
    margin: 0;
    font-size: 0.9rem;
    color: var(--panel-text-muted, #6b7280);
}

.wallet-ledger-detail-modal__rows dd {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.wallet-ledger-detail-modal__subrow dt {
    padding-left: 0.85rem;
    font-size: 0.85rem;
}

.wallet-ledger-detail-modal__subrow dd {
    font-size: 0.85rem;
    font-weight: 500;
    text-align: right;
}

.wallet-ledger-detail-modal__rows > div[hidden],
.wallet-ledger-detail-modal__subrow[hidden] {
    display: none !important;
}

.wallet-ledger-detail-modal__divider {
    height: 1px;
    margin: 0.35rem 0 0.15rem;
    background: var(--panel-border, #e5e7eb);
}

.wallet-ledger-detail-modal__total-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.25rem 1rem;
    align-items: baseline;
    padding-top: 0.15rem;
}

.wallet-ledger-detail-modal__total-row dt {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--panel-text, #111827);
}

.wallet-ledger-detail-modal__total-row dd {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    color: var(--panel-text, #111827);
}

.wallet-ledger-detail-modal__note {
    margin: 0.65rem 0 0;
    font-size: 0.8rem;
    line-height: 1.45;
}

/* Configuração inicial — wizard sem sidebar */
.panel-setup-body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
}

.panel-setup-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.panel-setup-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    background: color-mix(in srgb, var(--bg-main) 92%, transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: visible;
}

.panel-setup-header__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.panel-setup-header__text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.panel-setup-header__title {
    font-size: 0.95rem;
    font-weight: 700;
}

.panel-setup-header__gallery {
    font-size: 0.82rem;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.panel-setup-header__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.panel-setup-header__hub-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    text-decoration: none;
}

.panel-setup-header__theme {
    flex-shrink: 0;
}

.panel-setup-main {
    position: relative;
    z-index: 1;
    flex: 1;
    width: min(920px, 100%);
    margin: 0 auto;
    padding: 2rem 1.25rem 3rem;
}

.panel-setup-main:has(.setup-wizard__stage--with-visual) {
    width: min(1080px, 100%);
}

.setup-wizard {
    --wallet-row-height: 3.35rem;
    --setup-stage-min-height: calc(var(--wallet-row-height) * 4 + 7.75rem);
}

.setup-stage-layout--with-visual {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(11rem, 15rem);
    gap: 0;
    align-items: stretch;
    min-height: var(--setup-stage-min-height);
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-main);
}

.setup-stage-layout__main {
    min-width: 0;
    display: flex;
    align-self: stretch;
}

.setup-stage-layout__main > .setup-wizard__card {
    flex: 1;
    min-width: 0;
    width: 100%;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

.setup-stage-step,
.setup-wallet-cadastro-step {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.setup-stage-step__grid,
.setup-wallet-cadastro-step__grid {
    display: grid;
    grid-template-columns: minmax(11rem, 13.5rem) minmax(0, 1fr);
    flex: 1;
    min-height: 100%;
    align-items: stretch;
}

.setup-stage-step__content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.setup-stage-step__content:not(.wallet-wizard__main) {
    padding: 1.25rem 1.5rem 1.5rem;
}

.setup-stage-step__fields {
    display: grid;
    gap: 1.25rem;
    flex: 1;
    align-content: start;
}

.setup-checkout-step__fields .ui-select {
    width: 100%;
    max-width: none;
}

.form-field__input-wrap {
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: 11rem;
}

.form-field__input-wrap .form-field__input,
.form-field__input-wrap input:not([type="checkbox"]):not([type="radio"]) {
    flex: 1;
    min-width: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.form-field__input-wrap:focus-within .form-field__suffix {
    border-color: var(--brand);
}

.form-field__input-wrap:focus-within input:not([type="checkbox"]):not([type="radio"]) {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-soft);
}

.form-field__input-wrap [data-cpf-status] {
    pointer-events: none;
}

[data-shipping-cpf] {
    border-top-right-radius: var(--radius-md) !important;
    border-bottom-right-radius: var(--radius-md) !important;
    padding-right: 2.5rem;
}

.form-field__suffix {
    display: inline-flex;
    align-items: center;
    padding: 0 0.8rem;
    border: 1px solid var(--border-strong);
    border-left: 0;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    background: var(--bg-subtle);
    color: var(--muted);
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

.setup-stage-step__content .wallet-wizard {
    flex: 1;
    min-height: 0;
}

.setup-stage-sidebar {
    border-right: 1px solid var(--border);
    background: var(--bg-main);
}

.setup-stage__visual {
    position: relative;
    overflow: hidden;
    align-self: stretch;
    min-height: 100%;
    padding: 0;
    border: 0;
    border-left: 1px solid var(--border);
    border-radius: 0;
    background: #1a1410;
}

.setup-stage__visual-img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center center;
}

.setup-stage__visual-img--wallet {
    object-position: 8% center;
}

.setup-stage__visual-img--send {
    object-position: 58% center;
}

.wallet-wizard-layout--with-visual {
    grid-template-columns: minmax(11rem, 13.5rem) minmax(0, 1fr) minmax(11rem, 15rem);
    align-items: stretch;
    min-height: var(--setup-stage-min-height, 22rem);
}

.wallet-wizard-layout--with-visual .setup-stage__visual {
    border-left: 1px solid var(--border);
    border-right: 0;
    padding: 0;
    background: #1a1410;
}

.wallet-onboarding--setup-visual.setup-stage-layout--with-visual {
    overflow: hidden;
}

.wallet-onboarding--setup-visual .wallet-wizard__stepper {
    border-right: 1px solid var(--border);
    background: var(--bg-main);
}

.setup-wizard__stage .setup-stage-layout__main > .setup-wizard__card {
    min-height: 100%;
}

.setup-wallet-verification-step__lead {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.setup-wallet-verification-step__pending {
    margin-bottom: 0.85rem;
}

.wallet-documents-panel--embedded {
    margin-top: 0.25rem;
}

.wallet-documents-panel--embedded .wallet-documents-list__item {
    grid-template-columns: minmax(0, 1fr);
}

.setup-wizard__intro {
    margin-bottom: 1.75rem;
}

.setup-wizard__title {
    margin: 0 0 0.35rem;
    font-size: 1.65rem;
    font-weight: 700;
}

.setup-wizard__lead {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.5;
}

.setup-wizard__track-shell {
    margin-bottom: 1.75rem;
    padding-bottom: 0.15rem;
}

.setup-wizard__stage:focus {
    outline: none;
}

.setup-wizard__stage:focus-visible {
    outline: 2px solid var(--border);
    outline-offset: 4px;
    border-radius: var(--radius-md);
}

.setup-step-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.15rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.setup-step-head__title {
    margin: 0 0 0.3rem;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.25;
}

.setup-step-head__subtitle {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.45;
}

.setup-step-head__status {
    flex-shrink: 0;
    align-self: flex-start;
}

.setup-wizard__footer {
    margin-top: 1.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.setup-wizard__footer-text {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
    margin: 0;
    font-size: 0.88rem;
}

.setup-wizard__footer-icon {
    color: var(--brand, #BA1827);
}

.setup-wizard__footer-link {
    color: var(--brand, #BA1827);
    font-weight: 600;
    text-decoration: none;
}

.setup-wizard__footer-link:hover {
    text-decoration: underline;
}

.setup-pending-skeleton {
    margin-top: 0.5rem;
}

.setup-complete-checklist {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    display: grid;
    gap: 0.65rem;
}

.setup-complete-checklist__item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-subtle);
}

.setup-complete-checklist__item.is-done {
    border-color: color-mix(in srgb, var(--success, #16a34a) 45%, var(--border));
}

.setup-complete-checklist__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 50%;
    background: var(--success, #16a34a);
    color: #fff;
}

.setup-complete-checklist__copy {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.setup-complete-checklist__copy strong {
    font-size: 0.95rem;
}

.setup-complete-checklist__copy .muted {
    font-size: 0.82rem;
}

.setup-complete-step__action {
    display: flex;
    justify-content: flex-start;
}

.setup-complete-step__action .btn-lg {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.7rem 1.35rem;
    font-size: 1rem;
}

.setup-wizard__track {
    list-style: none;
    margin: 0;
    padding: 0.35rem 0 0.65rem;
    display: grid;
    grid-template-columns: repeat(var(--setup-step-count, 4), minmax(0, 1fr));
    gap: 0.5rem;
    width: 100%;
    position: relative;
    --setup-node-size: 2.35rem;
    --setup-line-w: 2px;
    --setup-track-progress: 0;
}

.setup-wizard__track::before,
.setup-wizard__track::after {
    content: "";
    position: absolute;
    top: calc(0.35rem + var(--setup-node-size) / 2 - var(--setup-line-w) / 2);
    left: calc(100% / (var(--setup-step-count, 4) * 2));
    height: var(--setup-line-w);
    border-radius: 999px;
    pointer-events: none;
}

.setup-wizard__track::before {
    width: calc(100% - 100% / var(--setup-step-count, 4));
    background: color-mix(in srgb, var(--border) 72%, var(--bg-main));
    z-index: 0;
}

.setup-wizard__track::after {
    width: calc((100% - 100% / var(--setup-step-count, 4)) * var(--setup-track-progress) / 100);
    background: linear-gradient(
        90deg,
        var(--success, #16a34a),
        color-mix(in srgb, var(--success, #16a34a) 78%, #22c55e)
    );
    z-index: 0;
    transition: width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.setup-wizard__track-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 600;
    text-align: center;
    position: relative;
    z-index: 1;
    white-space: normal;
    transition: color 0.15s ease;
}

.setup-wizard__track-node {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: var(--setup-node-size);
    height: var(--setup-node-size);
    border-radius: 999px;
    border: 2px solid var(--border-strong, var(--border));
    background: var(--bg-main);
    color: var(--muted);
    box-shadow: 0 0 0 4px var(--bg);
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.setup-wizard__track-label {
    display: block;
    max-width: 9rem;
    line-height: 1.25;
    font-size: 0.84rem;
    font-weight: 600;
}

.setup-wizard__track-item.is-upcoming .setup-wizard__track-label,
.setup-wizard__track-item.is-locked .setup-wizard__track-label {
    color: var(--muted);
}

.setup-wizard__track-item.is-upcoming .setup-wizard__track-node,
.setup-wizard__track-item.is-locked .setup-wizard__track-node {
    color: var(--icon-muted);
    border-color: var(--border);
}

.setup-wizard__track-item.is-active {
    color: var(--text);
}

.setup-wizard__track-item.is-active .setup-wizard__track-node {
    border-color: var(--brand, #BA1827);
    background: var(--brand, #BA1827);
    color: #fff;
    box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px color-mix(in srgb, var(--brand, #BA1827) 20%, transparent);
}

.setup-wizard__track-item.is-active .setup-wizard__track-label {
    color: var(--brand, #BA1827);
}

.setup-wizard__track-item.is-done .setup-wizard__track-node {
    border-color: color-mix(in srgb, var(--success, #16a34a) 55%, var(--border));
    background: color-mix(in srgb, var(--success, #16a34a) 12%, var(--bg-main));
    color: var(--success, #16a34a);
    box-shadow: 0 0 0 4px var(--bg);
}

.setup-wizard__track-item.is-done .setup-wizard__track-label {
    color: var(--text);
}

.setup-wizard__track-item.is-locked .setup-wizard__track-label {
    color: color-mix(in srgb, var(--muted) 88%, transparent);
}

.setup-wizard__track-badge {
    margin: 0;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    background: var(--brand, #BA1827);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
}

@media (max-width: 720px) {
    .setup-wizard__track-label {
        font-size: 0.78rem;
        max-width: 7rem;
    }
}

[data-theme="dark"] .setup-wizard__track::before,
[data-theme="dark"] .setup-wizard__track::after {
    display: none;
}

[data-theme="dark"] .setup-wizard__track-item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: calc(0.35rem + var(--setup-node-size) / 2);
    left: calc(50% + var(--setup-node-size) / 2);
    width: calc(100% - var(--setup-node-size));
    height: var(--setup-line-w);
    transform: translateY(-50%);
    background: color-mix(in srgb, var(--border) 72%, var(--bg-main));
    border-radius: 999px;
    z-index: 0;
    pointer-events: none;
}

[data-theme="dark"] .setup-wizard__track-item.is-done:not(:last-child)::after {
    background: linear-gradient(
        90deg,
        var(--success, #16a34a),
        color-mix(in srgb, var(--success, #16a34a) 78%, #22c55e)
    );
}

[data-theme="dark"] .setup-wizard__track-item.is-active:not(:last-child)::after {
    background: linear-gradient(
        90deg,
        var(--success, #16a34a) 52%,
        color-mix(in srgb, var(--border) 72%, var(--bg-main)) 52%
    );
}

[data-theme="dark"] .setup-wizard__track-node {
    background: var(--bg-main);
    box-shadow: 0 0 0 4px var(--bg);
}

[data-theme="dark"] .setup-wizard__track-item.is-active .setup-wizard__track-node {
    box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px color-mix(in srgb, var(--brand, #BA1827) 22%, transparent);
}

[data-theme="dark"] .setup-wizard__track-item.is-done .setup-wizard__track-node {
    box-shadow: 0 0 0 4px var(--bg);
}

.setup-wizard__stage .setup-wizard__card,
.setup-wizard__stage .wallet-onboarding,
.setup-wizard__stage .wallet-status-panel {
    margin-top: 0;
}

.wallet-status-panel__note--first {
    margin-top: 0;
}

.setup-frenet-step__head {
    margin-bottom: 1rem;
}

.setup-frenet-step__action .wallet-wizard__footer--simple {
    justify-content: center;
}

.setup-shipping-step label.form-field input.is-readonly,
.setup-shipping-step label.form-field input[readonly] {
    background: var(--bg-subtle);
    color: var(--muted);
    cursor: not-allowed;
    -webkit-text-fill-color: var(--muted);
}

.setup-shipping-step label.form-field input.is-readonly:focus,
.setup-shipping-step label.form-field input.is-readonly:focus-visible,
.setup-shipping-step label.form-field input[readonly]:focus,
.setup-shipping-step label.form-field input[readonly]:focus-visible {
    outline: none;
    border-color: var(--border-strong);
    box-shadow: none;
}

.wallet-documents-panel__head {
    margin-bottom: 1rem;
}

.wallet-documents-panel__title {
    margin: 0 0 0.35rem;
    font-size: 1.15rem;
}

.wallet-documents-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.85rem;
}

.wallet-documents-list__item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
    gap: 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-subtle);
}

.wallet-documents-list__title {
    display: block;
    margin-bottom: 0.25rem;
}

.wallet-documents-list__desc {
    margin: 0 0 0.5rem;
    font-size: 0.88rem;
}

.wallet-documents-list__hint {
    margin: 0.45rem 0 0;
    font-size: 0.82rem;
}

.wallet-documents-upload {
    display: grid;
    gap: 0.55rem;
}

.wallet-documents-upload__field {
    display: grid;
    gap: 0.25rem;
}

.wallet-documents-upload__label {
    font-size: 0.78rem;
    color: var(--muted);
}

.wallet-documents-upload__input {
    font-size: 0.85rem;
}

.wallet-documents-panel__foot {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.wallet-documents-panel__refresh {
    margin-top: 0.65rem;
}

@media (max-width: 720px) {
    .wallet-documents-list__item {
        grid-template-columns: 1fr;
    }
}

.setup-frenet-step__title {
    margin: 0 0 0.35rem;
    font-size: 1.2rem;
}

.setup-frenet-step__status {
    margin: 1rem 0;
}

.setup-frenet-step__note {
    margin: 0.75rem 0 0;
    font-size: 0.9rem;
}

.panel-setup-gallery-switch {
    position: relative;
    margin-top: 0.35rem;
    z-index: 60;
}

.panel-setup-gallery-switch__trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    width: min(100%, 22rem);
    max-width: 100%;
    min-height: 2.5rem;
    padding: 0.35rem 0.45rem 0.35rem 0.4rem;
    list-style: none;
    cursor: pointer;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    background: var(--bg-main);
    box-shadow: var(--shadow-sm);
    user-select: none;
    outline: none;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.panel-setup-gallery-switch__trigger::-webkit-details-marker {
    display: none;
}

.panel-setup-gallery-switch__trigger:hover {
    border-color: var(--muted);
    background: var(--bg-subtle);
    box-shadow: var(--shadow-md);
}

.panel-setup-gallery-switch[open] .panel-setup-gallery-switch__trigger {
    border-color: var(--border-strong);
    background: var(--bg-subtle);
    box-shadow: var(--shadow-md);
}

.panel-setup-gallery-switch__trigger:focus,
.panel-setup-gallery-switch__trigger:focus-visible {
    outline: none;
    border-color: var(--border-strong);
    box-shadow: var(--shadow-sm);
}

.panel-setup-gallery-switch__logo-wrap {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-subtle);
    overflow: hidden;
}

.panel-setup-gallery-switch__thumb {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.panel-setup-gallery-switch__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.1rem;
    min-width: 0;
    flex: 1;
}

.panel-setup-gallery-switch__kicker {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--muted);
    line-height: 1.2;
}

.panel-setup-gallery-switch__name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.panel-setup-gallery-switch__chevron-wrap {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.65rem;
    height: 1.65rem;
    margin-right: 0.1rem;
    border-radius: var(--radius-sm);
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    color: var(--muted);
}

.panel-setup-gallery-switch[open] .panel-setup-gallery-switch__chevron-wrap {
    background: var(--bg-main);
    color: var(--text-secondary);
}

.panel-setup-gallery-switch__chevron {
    display: block;
}

.panel-setup-gallery-switch__menu {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    z-index: 100;
    min-width: min(320px, 88vw);
    padding: 0.35rem;
    border: 1px solid var(--border-strong);
    border-radius: 0.65rem;
    background: var(--bg-main);
    background-color: var(--bg-main);
    box-shadow: var(--shadow-md);
    isolation: isolate;
}

.panel-setup-gallery-switch__option {
    margin: 0;
}

.panel-setup-gallery-switch__option-btn {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.55rem 0.65rem;
    border: 1px solid transparent;
    border-radius: 0.45rem;
    background: var(--bg-main);
    color: var(--text);
    font: inherit;
    text-align: left;
    cursor: pointer;
    outline: none;
    box-shadow: none;
}

.panel-setup-gallery-switch__option-btn:hover:not(:disabled) {
    background: var(--bg-subtle);
}

.panel-setup-gallery-switch__option.is-active .panel-setup-gallery-switch__option-btn {
    background: var(--bg-subtle);
}

.panel-setup-gallery-switch__option-btn:focus,
.panel-setup-gallery-switch__option-btn:focus-visible {
    outline: none;
    box-shadow: none;
    border-color: transparent;
}

.panel-setup-gallery-switch__option-btn:disabled {
    cursor: default;
    opacity: 1;
}

.panel-setup-gallery-switch__logo {
    flex-shrink: 0;
    border-radius: 0.35rem;
    object-fit: cover;
    background: var(--bg);
}

.panel-setup-gallery-switch__option-name {
    flex: 1;
    min-width: 0;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.panel-setup-gallery-switch__check {
    flex-shrink: 0;
    color: var(--brand);
}

.panel-setup-gallery-switch__hub-link {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.25rem;
    padding: 0.55rem 0.65rem;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    background: var(--bg-main);
    outline: none;
}

.panel-setup-gallery-switch__hub-link:hover {
    color: var(--text);
    background: var(--bg-subtle);
    border-radius: 0 0 0.45rem 0.45rem;
}

.panel-setup-gallery-switch__hub-link:focus,
.panel-setup-gallery-switch__hub-link:focus-visible {
    outline: none;
    box-shadow: none;
}

.consignor-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.125rem;
}

.page-consignors .dash-table th.consignor-col-actions {
    width: 1%;
    white-space: nowrap;
    text-align: center;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.page-consignors .dash-table td.consignor-col-actions {
    width: 1%;
    white-space: nowrap;
    text-align: right;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.page-consignors .dash-table th.consignor-col-wallet,
.page-consignors .dash-table td.consignor-col-wallet,
.page-consignors .dash-table th.consignor-col-access,
.page-consignors .dash-table td.consignor-col-access {
    width: 11rem;
}

.consignor-access-login {
    margin-top: 0.25rem;
    font-size: 0.8125rem;
}

.consignor-access-details {
    display: grid;
    gap: 0.75rem;
    margin: 1rem 0 0;
}

.consignor-access-details dt {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted, #6b7280);
}

.consignor-access-details dd {
    margin: 0.15rem 0 0;
}

.consignor-access-credentials code {
    font-size: 1rem;
}

.consignor-access-notes {
    margin: 0;
    padding-left: 1.1rem;
}

.consignor-access-actions {
    margin-top: 1rem;
}

.wallet-status-badge--linked { background: rgba(34, 197, 94, 0.12); color: #15803d; }
.wallet-status-badge--no_email { background: rgba(107, 114, 128, 0.12); color: #4b5563; }
.wallet-status-badge--no_user { background: rgba(245, 158, 11, 0.14); color: #b45309; }
.wallet-status-badge--user_found { background: rgba(59, 130, 246, 0.12); color: #1d4ed8; }
.wallet-status-badge--document_mismatch,
.wallet-status-badge--wrong_role { background: rgba(239, 68, 68, 0.12); color: #b91c1c; }

.consignor-actions__form {
    display: inline-flex;
    margin: 0;
}

.consignor-actions__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    background: transparent;
    color: var(--text-muted, #6b7280);
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.consignor-actions__btn:hover:not(:disabled),
.consignor-actions__btn:focus-visible:not(:disabled) {
    background: var(--bg-subtle, #f3f4f6);
    color: var(--text, #111827);
    border-color: var(--border, #e5e7eb);
}

.consignor-actions__btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.consignor-actions__btn--danger:hover:not(:disabled),
.consignor-actions__btn--danger:focus-visible:not(:disabled) {
    color: var(--danger, #ff4842);
}

.consignor-link-list {
    display: grid;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.consignor-link-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 0.5rem;
}

.consignor-form-panel .settings-form__section:first-child {
    padding-top: 0;
    border-top: 0;
}

.consignor-form-panel label.form-field input.is-readonly {
    background: var(--bg-subtle, #f8fafc);
    color: var(--muted);
    cursor: default;
}

.consignor-form-panel label.form-field input.is-readonly:focus,
.consignor-form-panel label.form-field input.is-readonly:focus-visible {
    border-color: var(--border-strong);
    box-shadow: none;
}

.page-consignors--edit .consignor-form-panel {
    overflow: visible;
}

.page-consignors .ui-select.is-open {
    z-index: 30;
}

.consignor-document-field {
    position: relative;
    display: block;
}

.consignor-document-field__input {
    width: 100%;
    padding-right: 2.5rem;
}

.consignor-document-field__input.is-valid {
    border-color: #16a34a;
}

.consignor-document-field__input.is-valid:focus-visible {
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18);
}

.consignor-document-field__input.is-invalid {
    border-color: #dc2626;
}

.consignor-document-field__input.is-invalid:focus-visible {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.16);
}

.consignor-document-field__status {
    position: absolute;
    top: 50%;
    right: 0.75rem;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.consignor-document-field__status[hidden] {
    display: none !important;
}

.consignor-document-field__status.is-valid .consignor-document-field__status-icon {
    color: #16a34a;
}

.consignor-document-field__status.is-invalid .consignor-document-field__status-icon {
    color: #dc2626;
}

.ui-date--form {
    min-width: 0;
}

.ui-date--form .ui-date__field {
    margin: 0;
}

.ui-date--form .ui-date__input,
.ui-date--form .flatpickr-input[readonly] {
    width: 100%;
    padding: 0.65rem 0.75rem 0.65rem 2.35rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    font: inherit;
    background-color: var(--bg-elevated);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='18' x='3' y='4' rx='2' ry='2'/%3E%3Cline x1='16' x2='16' y1='2' y2='6'/%3E%3Cline x1='8' x2='8' y1='2' y2='6'/%3E%3Cline x1='3' x2='21' y1='10' y2='10'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 0.75rem center;
    color: var(--text);
    cursor: pointer;
}

.ui-date--form .ui-date__input::placeholder,
.ui-date--form .flatpickr-input[readonly]::placeholder {
    color: var(--muted);
}

.ui-date--form .ui-date__input:hover,
.ui-date--form .ui-date__input:focus-visible,
.ui-date--form .flatpickr-input[readonly]:hover,
.ui-date--form .flatpickr-input[readonly]:focus-visible {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-soft);
}

.ui-date--form input[type="hidden"][name] {
    display: none;
}

.ui-date-flatpickr .flatpickr-day.selected,
.ui-date-flatpickr .flatpickr-day.startRange,
.ui-date-flatpickr .flatpickr-day.endRange {
    background: rgba(186, 24, 39, 0.62) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: none !important;
}

[data-theme="dark"] .ui-date-flatpickr .flatpickr-day.selected,
[data-theme="dark"] .ui-date-flatpickr .flatpickr-day.startRange,
[data-theme="dark"] .ui-date-flatpickr .flatpickr-day.endRange {
    background: rgba(224, 58, 74, 0.5) !important;
    color: #fff !important;
}

.consignor-link-modal__form {
    padding: 0 1.25rem 1.25rem;
}

.consignor-linked-users {
    margin-top: 0.25rem;
    font-size: 0.8125rem;
}

.page-gallery-access .settings-form {
    max-width: none;
    width: 100%;
}

.page-gallery-access .panel-alert--info {
    background: var(--bg-subtle);
    border-color: var(--border);
    color: var(--text);
}

.page-gallery-access .gallery-access-alert {
    margin-bottom: 1.25rem;
}

.gallery-access-overview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.gallery-access-overview__card {
    display: flex;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--bg-elevated);
}

.gallery-access-overview__icon {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-subtle);
    color: var(--muted);
}

.gallery-access-overview__title {
    margin: 0 0 0.35rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text);
}

.gallery-access-overview__text {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--muted);
}

.gallery-access-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.gallery-access-stat-card {
    padding: 0.9rem 1rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--bg-elevated);
}

.gallery-access-stat-card--success,
.gallery-access-stat-card--mode {
    border-color: var(--border);
    background: var(--bg-elevated);
}

.gallery-access-stat-card__label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.35rem;
}

.gallery-access-stat-card__value {
    display: block;
    font-size: 1.625rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--text);
}

.gallery-access-stat-card__value--text {
    font-size: 1.125rem;
}

.gallery-access-stat-card__meta {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: var(--muted);
}

.page-gallery-access .dash-panel--table .dash-panel__head {
    padding: 1.35rem 1.5rem 1.15rem;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    align-items: flex-start;
    justify-content: space-between;
}

.page-gallery-access .dash-panel--table .dash-panel__head .dash-panel__title {
    margin: 0;
}

.page-gallery-access .dash-panel--table .settings-form {
    padding: 1.15rem 1.5rem 1.35rem;
}

.page-gallery-access .gallery-access-table {
    min-width: 100%;
    table-layout: auto;
}

.page-gallery-access .gallery-access-table thead th {
    font-size: 0.6875rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
    border-bottom: 1px solid var(--border);
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

.page-gallery-access .gallery-access-table tbody td {
    padding-top: 1rem;
    padding-bottom: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border);
}

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

.gallery-access-table__col-access {
    min-width: 11rem;
}

.gallery-access-table__col-role {
    min-width: 14rem;
}

.gallery-access-bulk {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.gallery-access-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 13rem;
    gap: 0.75rem;
    margin-top: 0;
    margin-bottom: 1.1rem;
    padding-top: 0;
    border-top: 0;
}

.gallery-access-toolbar__search {
    position: relative;
}

.gallery-access-toolbar__search-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
    z-index: 1;
}

.page-gallery-access .form-field.gallery-access-toolbar__search input[type="search"] {
    width: 100%;
    padding-left: 2.65rem;
}

.gallery-access-user {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.gallery-access-user__avatar {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--bg-subtle);
    color: var(--muted);
    border: 1px solid var(--border);
}

.gallery-access-user__copy {
    min-width: 0;
    display: grid;
    gap: 0.2rem;
}

.gallery-access-user__name {
    display: block;
    font-size: 0.9375rem;
    line-height: 1.3;
}

.gallery-access-user__you {
    font-weight: 500;
    color: var(--muted);
    font-size: 0.8125rem;
}

.gallery-access-user__contact {
    display: block;
    font-size: 0.8125rem;
    color: var(--muted);
    line-height: 1.35;
}

.gallery-access-user__meta {
    display: block;
    font-size: 0.8125rem;
    color: var(--muted);
    margin-top: 0.15rem;
}

.gallery-access-user__note {
    display: block;
    font-size: 0.75rem;
    color: var(--muted);
    line-height: 1.4;
}

.gallery-access-member-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 1px solid var(--border);
    background: var(--bg-subtle);
    color: var(--muted);
}

.gallery-access-member-badge--staff,
.gallery-access-member-badge--consignor {
    background: var(--bg-subtle);
    color: var(--muted);
    border-color: var(--border);
}

.gallery-access-role-iarremate {
    font-size: 0.875rem;
}

.gallery-access-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    cursor: pointer;
    margin: 0;
}

.gallery-access-switch__input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.gallery-access-switch__track {
    position: relative;
    width: 2.5rem;
    height: 1.375rem;
    border-radius: 999px;
    background: var(--border-strong, #cbd5e1);
    transition: background 0.15s;
    flex-shrink: 0;
}

.gallery-access-switch__track::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 1.05rem;
    height: 1.05rem;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.18);
    transition: transform 0.15s;
}

.gallery-access-switch__input:checked + .gallery-access-switch__track {
    background: var(--brand, #334155);
}

.gallery-access-switch__input:checked + .gallery-access-switch__track::after {
    transform: translateX(1.05rem);
}

.gallery-access-switch__input:focus-visible + .gallery-access-switch__track {
    outline: 2px solid var(--brand-soft);
    outline-offset: 2px;
}

.gallery-access-switch__label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--muted);
    white-space: nowrap;
}

.gallery-access-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--muted);
}

.gallery-access-status--on,
.gallery-access-status--off {
    color: var(--muted);
}

.gallery-access-role-field {
    display: grid;
    gap: 0.35rem;
    max-width: 18rem;
}

.gallery-access-role-hint {
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--muted);
}

.gallery-access-role-hint--static {
    display: block;
    margin-top: 0.25rem;
}

.gallery-access-role-label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
}

.gallery-access-row--pending {
    opacity: 0.72;
}

.gallery-access-form__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    margin-top: 1.25rem;
    padding-top: 1.15rem;
    border-top: 1px solid var(--border);
}

.gallery-access-form__legend {
    flex: 1 1 20rem;
    display: grid;
    gap: 0.25rem;
}

.gallery-access-form__legend p {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--muted);
    line-height: 1.45;
}

.gallery-access-form__actions {
    flex-shrink: 0;
}

@media (max-width: 960px) {
    .gallery-access-overview {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 720px) {
    .gallery-access-toolbar {
        grid-template-columns: 1fr;
    }

    .gallery-access-stat-grid {
        grid-template-columns: 1fr;
    }

    .gallery-access-form__foot {
        flex-direction: column;
        align-items: stretch;
    }

    .gallery-access-form__actions .btn {
        width: 100%;
    }
}
