:root {
    color-scheme: light dark;
    --font-display: "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
    --font-body: "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
    --bg: #0f1118;
    --bg-elevated: rgba(26, 30, 42, 0.84);
    --bg-soft: rgba(36, 40, 56, 0.72);
    --bg-strong: #1c2030;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.14);
    --text: #f5f7ff;
    --text-muted: rgba(232, 236, 255, 0.68);
    --text-soft: rgba(232, 236, 255, 0.54);
    --primary: #8f98ff;
    --primary-soft: rgba(143, 152, 255, 0.18);
    --success: #80d9b2;
    --warning: #ffd48d;
    --danger: #ff9aa2;
    --shadow: 0 32px 80px rgba(0, 0, 0, 0.38);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 14px;
    --content-width: 1360px;
    --canvas-top: #0d1018;
    --canvas-bottom: #121624;
    --aurora-violet: rgba(124, 92, 255, 0.5);
    --aurora-blue: rgba(92, 146, 255, 0.35);
    --aurora-green: rgba(82, 211, 181, 0.16);
    --grid-line: rgba(255, 255, 255, 0.03);
    --grain-opacity: 0.08;
    --surface-top: rgba(30, 34, 49, 0.88);
    --surface-bottom: rgba(20, 23, 34, 0.92);
    --panel: rgba(255, 255, 255, 0.05);
    --panel-strong: rgba(255, 255, 255, 0.08);
    --panel-soft: rgba(255, 255, 255, 0.04);
    --button-secondary: rgba(255, 255, 255, 0.06);
    --button-secondary-hover: rgba(255, 255, 255, 0.09);
    --icon-surface: rgba(255, 255, 255, 0.05);
    --accent-surface: rgba(143, 152, 255, 0.16);
    --toggle-surface: rgba(255, 255, 255, 0.12);
    --toast-bg: rgba(20, 24, 34, 0.92);
    --badge-text: var(--text-muted);
}

* {
    box-sizing: border-box;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

[v-cloak] {
    display: none;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: var(--font-body);
    background:
        radial-gradient(circle at top left, rgba(136, 103, 255, 0.18), transparent 34%),
        radial-gradient(circle at top right, rgba(71, 121, 255, 0.12), transparent 32%),
        linear-gradient(180deg, var(--canvas-top) 0%, var(--canvas-bottom) 100%);
    color: var(--text);
}

body {
    position: relative;
    overflow-x: hidden;
}

.autofill-trap {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.aurora,
.grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.aurora {
    filter: blur(64px);
    opacity: 0.38;
    animation: drift 18s ease-in-out infinite;
}

.aurora-a {
    background: radial-gradient(circle, var(--aurora-violet) 0%, transparent 55%);
    transform: translate(-10%, -20%);
}

.aurora-b {
    background: radial-gradient(circle, var(--aurora-blue) 0%, transparent 58%);
    transform: translate(54%, -18%);
    animation-delay: -6s;
}

.aurora-c {
    background: radial-gradient(circle, var(--aurora-green) 0%, transparent 62%);
    transform: translate(12%, 58%);
    animation-delay: -12s;
}

.grain {
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(circle at center, black 48%, transparent 100%);
    opacity: var(--grain-opacity);
}

.app-shell {
    position: relative;
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 28px 24px 56px;
}

.surface-card {
    background: linear-gradient(180deg, var(--surface-top), var(--surface-bottom));
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    backdrop-filter: blur(22px);
}

.auth-screen {
    min-height: calc(100vh - 72px);
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 440px);
    gap: 28px;
    align-items: start;
}

.hero-stage {
    position: relative;
    min-height: 540px;
    display: flex;
    align-items: flex-start;
    padding-top: clamp(36px, 7vh, 96px);
}

.hero-copy {
    padding: 24px 8px 24px 4px;
    transform-origin: left center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--badge-text);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-copy h1 {
    margin: 22px 0 14px;
    max-width: 8.2em;
    font-family: var(--font-display);
    font-size: clamp(44px, 7vw, 78px);
    line-height: 0.96;
    letter-spacing: -0.06em;
}

.hero-copy p {
    max-width: 560px;
    margin: 0;
    color: var(--text-muted);
    font-size: 17px;
    line-height: 1.8;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.hero-badges span {
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--panel);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 13px;
}

.auth-card {
    border-radius: var(--radius-xl);
    padding: 24px;
    animation: rise-in 640ms ease 60ms both;
    transition: height 240ms ease;
}

.auth-card-transition {
    position: relative;
    overflow: hidden;
}

.auth-mode-switch .tab-button {
    width: auto;
    flex: 1;
    justify-content: center;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease, opacity 180ms ease;
}

.auth-mode-switch {
    display: inline-flex;
    gap: 8px;
    padding: 6px;
    border-radius: 18px;
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.auth-title-group {
    margin: 18px 0 22px;
}

.auth-title-group h2 {
    margin: 0 0 8px;
    font-family: var(--font-display);
    font-size: 30px;
    letter-spacing: -0.04em;
}

.auth-title-group p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.7;
}

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

.field {
    display: grid;
    gap: 8px;
}

.field span,
.field-label {
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 600;
}

.field input,
.field textarea,
.field select,
.field button,
.search-input,
.search-select,
.inline-input {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--panel-soft);
    color: var(--text);
    border-radius: 18px;
    padding: 14px 16px;
    font: inherit;
    outline: none;
    transition: border-color 180ms ease, background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.field input[readonly],
.field input:disabled {
    color: var(--text-muted);
    background: var(--panel);
    cursor: not-allowed;
    opacity: 1;
}

.field input:focus,
.field textarea:focus,
.field select:focus,
.search-input:focus,
.search-select:focus,
.inline-input:focus {
    border-color: rgba(143, 152, 255, 0.45);
    background: var(--panel);
    box-shadow: 0 0 0 4px rgba(143, 152, 255, 0.14);
}

.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus,
.search-input:-webkit-autofill,
.search-input:-webkit-autofill:hover,
.search-input:-webkit-autofill:focus,
.inline-input:-webkit-autofill,
.inline-input:-webkit-autofill:hover,
.inline-input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text);
    -webkit-box-shadow: 0 0 0 1000px var(--panel-soft) inset;
    transition: background-color 9999s ease-in-out 0s;
    caret-color: var(--text);
}

.captcha-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: stretch;
}

.captcha-card {
    display: grid;
    gap: 8px;
    border-radius: 22px;
    padding: 16px 18px;
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.captcha-card strong {
    font-size: 22px;
    letter-spacing: -0.04em;
}

.turnstile-shell {
    display: grid;
    gap: 10px;
}

.turnstile-host {
    min-height: 66px;
    padding: 10px 0;
}

.primary-button,
.secondary-button,
.text-button,
.tab-button,
.status-action,
.logout-button {
    border: none;
    cursor: pointer;
    font: inherit;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, opacity 180ms ease;
}

.primary-button {
    padding: 15px 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(146, 155, 255, 0.95), rgba(106, 118, 255, 0.92));
    color: #111420;
    font-weight: 700;
    box-shadow: 0 18px 36px rgba(86, 98, 255, 0.26);
}

.secondary-button {
    padding: 13px 16px;
    border-radius: 16px;
    background: var(--button-secondary);
    color: var(--text);
}

.secondary-button:hover {
    background: var(--button-secondary-hover);
}

.text-button {
    padding: 0 8px;
    border-radius: 14px;
    background: transparent;
    color: var(--text-muted);
}

.primary-button:hover,
.secondary-button:hover,
.status-action:hover,
.logout-button:hover,
.tab-button:hover {
    transform: translateY(-1px);
}

.primary-button:disabled,
.secondary-button:disabled,
.text-button:disabled,
.status-action:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.inline-message,
.status-banner {
    padding: 14px 16px;
    border-radius: 18px;
    color: var(--text-muted);
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.workspace-screen {
    display: grid;
    grid-template-columns: minmax(208px, 228px) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
    animation: fade-in 320ms ease both;
}

.workspace-sidebar {
    position: sticky;
    top: 24px;
    display: grid;
    gap: 16px;
    padding: 18px 14px 14px;
    border-radius: 26px;
    min-height: calc(100vh - 64px);
}

.sidebar-brand,
.sidebar-footer {
    display: grid;
    gap: 6px;
}

.sidebar-brand h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 20px;
    letter-spacing: -0.04em;
}

.sidebar-mark {
    display: inline-block;
    margin: 4px 0 2px !important;
    font-size: clamp(30px, 2.2vw, 40px) !important;
    font-weight: 700;
    line-height: 0.94;
    letter-spacing: -0.08em !important;
    color: var(--text);
    text-wrap: balance;
    position: relative;
}

.sidebar-mark::after {
    content: "";
    display: block;
    width: 56px;
    height: 4px;
    margin-top: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), rgba(143, 152, 255, 0.18));
    opacity: 0.92;
}

.sidebar-brand p,
.sidebar-footer p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.65;
    font-size: 14px;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 8px;
}

.workspace-main {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.workspace-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    padding: 8px 2px 0;
}

.workspace-heading-stage {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 116px;
}

.workspace-heading {
    max-width: 680px;
}

.workspace-heading h1 {
    margin: 10px 0 8px;
    font-family: var(--font-display);
    font-size: clamp(30px, 3.3vw, 48px);
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.workspace-heading p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.7;
}

.icon-button {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: var(--panel);
    color: var(--text);
    cursor: pointer;
}

.icon {
    display: inline-block;
    font-size: 26px;
    line-height: 1;
}

.tab-bar {
    display: grid;
    gap: 6px;
}

.tab-button {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 11px 12px;
    border-radius: 16px;
    background: transparent;
    color: var(--text-muted);
    text-align: left;
    border: 1px solid transparent;
}

.tab-button.active {
    background: var(--panel-strong);
    border-color: var(--line);
    color: var(--text);
}

.tab-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: var(--icon-surface);
    font-size: 18px;
    flex: 0 0 auto;
}

.tab-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.tab-copy strong {
    font-size: 15px;
    letter-spacing: -0.02em;
}

.tab-copy small {
    color: var(--text-soft);
    font-size: 12px;
}

.page-content {
    min-height: 72vh;
    position: relative;
}

.page-panel {
    display: grid;
    gap: 14px;
    animation: panel-enter 280ms ease both;
    transform-origin: top center;
}

.desktop-split {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, 340px);
    gap: 16px;
    align-items: start;
}

.desktop-main,
.desktop-aside,
.list-stack,
.timeline-list {
    display: grid;
    gap: 14px;
}

.entity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}

.workers-overview {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
    gap: 16px;
    align-items: start;
}

.workers-grid {
    margin-top: 16px;
}

.desktop-aside {
    position: sticky;
    top: 24px;
}

.section-header {
    display: grid;
    gap: 4px;
    padding: 0 2px;
}

.section-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.section-header p {
    margin: 0;
    color: var(--text-soft);
    font-size: 13px;
}

.metrics-grid,
.quick-grid,
.cards-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 14px;
}

.metric-card,
.action-card,
.content-card,
.order-card,
.worker-card,
.user-card,
.audit-card {
    border-radius: var(--radius-lg);
    padding: 18px;
    position: relative;
    overflow: hidden;
}

.metric-card::after,
.action-card::after,
.content-card::after,
.order-card::after,
.worker-card::after,
.user-card::after,
.audit-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.08), transparent 46%);
    opacity: 0;
    transition: opacity 220ms ease;
    pointer-events: none;
}

.metric-card:hover::after,
.action-card:hover::after,
.content-card:hover::after,
.order-card:hover::after,
.worker-card:hover::after,
.user-card:hover::after,
.audit-card:hover::after {
    opacity: 1;
}

.metric-card {
    grid-column: span 4;
}

.admin-home-metrics .metric-card {
    grid-column: span 3;
}

.compact-cards .metric-card {
    min-height: 168px;
}

.metric-label {
    color: var(--text-soft);
    font-size: 13px;
}

.metric-value {
    display: block;
    margin-top: 10px;
    font-size: 32px;
    font-family: var(--font-display);
    letter-spacing: -0.05em;
}

.metric-meta {
    margin: 8px 0 0;
    color: var(--text-muted);
    line-height: 1.6;
}

.action-card {
    grid-column: span 4;
    display: grid;
    gap: 14px;
}

.action-card-head {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.action-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: var(--accent-surface);
    color: var(--primary);
    font-size: 24px;
    flex: 0 0 auto;
}

.action-copy h3,
.card-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.action-copy p,
.card-subtitle,
.meta-line,
.list-muted {
    margin: 6px 0 0;
    color: var(--text-muted);
    line-height: 1.65;
    font-size: 14px;
}

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

.submit-option-grid {
    align-items: stretch;
}

.submit-option-card,
.submit-hint-box {
    min-height: 100%;
}

.submit-option-card {
    padding: 16px;
    border-radius: 20px;
    background: var(--panel);
    border: 1px solid var(--line);
}

.submit-option-card .chips-row {
    margin-top: 2px;
}

.submit-hint-box strong {
    line-height: 1.6;
}

.toolbar-card {
    display: grid;
    gap: 14px;
    padding: 18px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.orders-toolbar {
    gap: 12px;
    padding: 16px 18px;
}

.toolbar-main,
.toolbar-secondary {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: end;
    position: relative;
}

.toolbar-secondary {
    justify-content: space-between;
    align-items: center;
    padding-top: 6px;
    border-top: 1px solid var(--line);
}

.field-grow {
    flex: 1 1 360px;
}

.toolbar-primary {
    min-width: 148px;
}

.users-metrics-grid .metric-card {
    grid-column: span 4;
    min-height: 148px;
}

.orders-metrics-grid .metric-card {
    min-height: 150px;
}

.content-card .field-row,
.toolbar-row,
.switch-row,
.action-row,
.chips-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

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

.field-row-stack {
    align-items: flex-start;
}

.create-user-sheet {
    gap: 16px;
    padding: 20px;
    border: 1px solid rgba(143, 152, 255, 0.12);
    box-shadow: 0 16px 40px rgba(86, 98, 255, 0.06);
    max-width: 760px;
}

.chips-column {
    width: 100%;
}

.choice-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--text-muted);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.choice-chip:hover {
    transform: translateY(-1px);
    background: var(--panel-strong);
}

.choice-chip.active {
    background: rgba(143, 152, 255, 0.16);
    border-color: rgba(143, 152, 255, 0.26);
    color: var(--text);
    box-shadow: 0 10px 24px rgba(86, 98, 255, 0.08);
}

.chips-column .choice-chip {
    width: 100%;
}

.file-display {
    padding: 14px 16px;
    border-radius: 18px;
    background: var(--panel);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.order-card,
.worker-card,
.user-card,
.audit-card {
    display: grid;
    gap: 14px;
}

.list-stack .order-card,
.list-stack .user-card {
    padding: 20px;
}

.orders-list-stack {
    gap: 12px;
}

.orders-list-stack .order-card {
    gap: 14px;
    padding: 18px 20px;
    background: linear-gradient(180deg, var(--surface-top), var(--surface-bottom));
    border: 1px solid var(--line);
    border-radius: 22px;
}

.orders-list-stack .order-card .card-title {
    font-size: 20px;
}

.orders-list-stack .order-card .meta-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.orders-list-stack .order-card .meta-box:first-child {
    grid-column: span 1;
}

.orders-list-stack .order-card .meta-box:last-child {
    grid-column: span 2;
}

.orders-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    border-radius: 20px;
    background: var(--panel);
}

.orders-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
}

.orders-panel-head strong,
.users-panel-head strong {
    font-size: 16px;
    letter-spacing: -0.02em;
}

.entity-grid .worker-card {
    min-height: 100%;
}

.panel-strong {
    min-height: 100%;
}

.entity-grid > .worker-card,
.entity-grid > .user-card {
    min-height: 100%;
}

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

.list-head-main {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.01em;
    flex-shrink: 0;
}

.status-pending { background: rgba(255,255,255,0.08); color: var(--text-muted); }
.status-queued,
.status-printing,
.status-online { background: rgba(143, 152, 255, 0.18); color: #d8dcff; }
.status-done { background: rgba(128, 217, 178, 0.16); color: #d4ffe9; }
.status-failed,
.status-offline { background: rgba(255, 154, 162, 0.16); color: #ffd8db; }

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

.meta-grid.single-column {
    grid-template-columns: 1fr;
}

.meta-box {
    padding: 14px 15px;
    border-radius: 18px;
    background: var(--panel);
}

.meta-box span {
    display: block;
    color: var(--text-soft);
    font-size: 12px;
    margin-bottom: 6px;
}

.error-box {
    padding: 13px 14px;
    border-radius: 16px;
    background: rgba(255, 154, 162, 0.12);
    color: #ffdfe2;
    border: 1px solid rgba(255, 154, 162, 0.15);
    line-height: 1.6;
}

.status-action {
    padding: 11px 14px;
    border-radius: 14px;
    background: var(--button-secondary);
    color: var(--text);
}

.status-action.danger:not(:disabled) {
    color: var(--danger);
}

.action-row-end {
    justify-content: flex-end;
}

.status-action.primary {
    background: rgba(143, 152, 255, 0.2);
    color: #edf0ff;
}

.switch-row {
    justify-content: space-between;
}

.switch-label {
    display: grid;
    gap: 4px;
}

.toggle {
    position: relative;
    width: 58px;
    height: 34px;
    border-radius: 999px;
    background: var(--toggle-surface);
    border: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: background 180ms ease;
}

.toggle::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    transition: transform 180ms ease;
}

.toggle.active {
    background: rgba(143, 152, 255, 0.35);
}

.toggle.active::after {
    transform: translateX(24px);
}

.logout-button {
    width: 100%;
    padding: 14px 16px;
    border-radius: 18px;
    background: var(--panel);
    color: var(--text);
    text-align: left;
}

.sidebar-switch-button {
    width: 100%;
    margin-top: 10px;
}

.user-actions-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
}

.user-actions-row .inline-input {
    min-width: 0;
}

.user-actions-row .secondary-button {
    min-width: 120px;
    justify-self: start;
}

.users-panel {
    display: grid;
    gap: 10px;
    padding: 18px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(180deg, var(--surface-top), var(--surface-bottom));
}

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

.users-panel-head strong,
.orders-panel-head strong {
    font-size: 16px;
    letter-spacing: -0.02em;
}

.users-table-head {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) 120px minmax(320px, 1fr);
    gap: 16px;
    padding: 8px 6px 0;
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.audit-panel {
    display: grid;
    gap: 10px;
    padding: 18px;
    border-radius: var(--radius-lg);
}

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

.audit-panel-head strong {
    font-size: 16px;
    letter-spacing: -0.02em;
}

.audit-panel .audit-card {
    padding: 16px 18px;
    background: color-mix(in srgb, var(--panel) 72%, transparent);
    border: 1px solid var(--line);
    border-radius: 22px;
}


.user-list-stack {
    gap: 12px;
}

.user-row {
    grid-template-columns: minmax(0, 1.2fr) 120px minmax(320px, 1fr);
    gap: 16px;
    align-items: center;
    padding-top: 16px;
    padding-bottom: 16px;
    background: color-mix(in srgb, var(--panel) 72%, transparent);
    border: 1px solid var(--line);
    border-radius: 22px;
}

.user-identity {
    min-width: 0;
}

.user-role-cell {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.user-identity .card-title {
    font-size: 19px;
}

.user-identity .card-subtitle {
    margin-top: 4px;
}

.create-user-sheet .primary-button {
    justify-self: start;
    min-width: 180px;
}

.list-stack .order-card .card-title,
.entity-grid .worker-card .card-title,
.list-stack .user-card .card-title {
    font-size: 22px;
}

.timeline-list {
    position: relative;
}

.timeline-list::before {
    content: "";
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 16px;
    width: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.timeline-list .audit-card {
    position: relative;
    padding-left: 28px;
}

.timeline-list .audit-card::before {
    content: "";
    position: absolute;
    top: 24px;
    left: 10px;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: rgba(143, 152, 255, 0.85);
    box-shadow: 0 0 0 6px rgba(143, 152, 255, 0.12);
}

.hidden {
    display: none !important;
}

.toast-stack {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: grid;
    gap: 10px;
    z-index: 50;
}

.toast {
    min-width: 240px;
    max-width: 340px;
    padding: 14px 16px;
    border-radius: 18px;
    background: var(--toast-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow);
    animation: toast-in 220ms ease both;
}

.toast.success { border-color: rgba(128, 217, 178, 0.24); }
.toast.error { border-color: rgba(255, 154, 162, 0.24); }

body.browser-firefox .aurora,
body.browser-firefox .grain {
    display: none;
}

body.browser-firefox .surface-card {
    backdrop-filter: none;
}

body.browser-firefox .metric-card::after,
body.browser-firefox .action-card::after,
body.browser-firefox .content-card::after,
body.browser-firefox .order-card::after,
body.browser-firefox .worker-card::after,
body.browser-firefox .user-card::after,
body.browser-firefox .audit-card::after {
    display: none;
}

body.browser-firefox .workspace-screen,
body.browser-firefox .page-panel,
body.browser-firefox .toast {
    animation: none;
}

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

    .aurora {
        animation: none;
    }
}

@keyframes drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(5%, -4%) scale(1.08); }
}

@keyframes rise-in {
    from { opacity: 0; transform: translateY(26px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes panel-enter {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes toast-in {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-swap-enter-active,
.auth-swap-leave-active {
    transition: opacity 220ms ease, transform 220ms ease;
}

.auth-swap-enter-from,
.auth-swap-leave-to {
    opacity: 0;
    transform: translateY(10px);
}

.page-heading-swap-enter-active,
.page-heading-swap-leave-active {
    transition: opacity 240ms cubic-bezier(0.22, 1, 0.36, 1), transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.page-heading-swap-enter-from,
.page-heading-swap-leave-to {
    opacity: 0;
    transform: translateY(10px);
}

.page-heading-swap-enter-to,
.page-heading-swap-leave-from {
    opacity: 1;
    transform: translateY(0);
}

.page-swap-enter-active,
.page-swap-leave-active {
    transition: opacity 260ms cubic-bezier(0.22, 1, 0.36, 1), transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.page-swap-enter-from,
.page-swap-leave-to {
    opacity: 0;
    transform: translateY(12px);
}

.page-swap-enter-to,
.page-swap-leave-from {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 720px) {
    .drop-zone {
        padding: 28px 16px;
    }
}

@media (max-width: 960px) {
    .auth-screen {
        grid-template-columns: 1fr;
        padding-top: 18px;
    }

    .hero-stage {
        min-height: 0;
    }

    .hero-copy h1 {
        max-width: none;
    }

    .workspace-screen {
        grid-template-columns: 1fr;
    }

    .workspace-sidebar {
        position: static;
        min-height: auto;
        padding: 18px;
        gap: 14px;
    }

    .sidebar-footer {
        display: none;
    }

    .tab-bar {
        display: flex;
        flex-wrap: wrap;
        padding-top: 6px;
    }

    .tab-button {
        width: auto;
        min-width: 112px;
        flex: 1 1 0;
        padding: 12px 14px;
        border-radius: 16px;
    }

    .tab-icon {
        width: 34px;
        height: 34px;
        border-radius: 12px;
        font-size: 16px;
    }

    .metric-card,
    .action-card {
        grid-column: span 6;
    }

    .desktop-split {
        grid-template-columns: 1fr;
    }

    .workers-overview {
        grid-template-columns: 1fr;
    }

    .desktop-aside {
        position: static;
    }

    .users-table-head,
    .user-row {
        grid-template-columns: 1fr;
    }

    .users-table-head {
        display: none;
    }

    .user-actions-row {
        grid-template-columns: 1fr;
    }

    .orders-list-stack .order-card .meta-grid {
        grid-template-columns: 1fr;
    }

    .orders-list-stack .order-card .meta-box:last-child {
        grid-column: span 1;
    }
}

@media (max-width: 720px) {
    .app-shell {
        padding: 20px 16px 48px;
    }

    .workspace-sidebar {
        border-radius: 24px;
    }

    .workspace-header {
        flex-direction: column;
    }

    .workspace-heading-stage {
        min-height: 0;
    }

    .workspace-heading h1 {
        font-size: 36px;
    }

    .sidebar-brand h2 {
        font-size: 22px;
    }

    .tab-button {
        min-width: calc(50% - 6px);
    }

    .tab-copy small {
        display: none;
    }

    .metric-card,
    .action-card {
        grid-column: span 12;
    }

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

    .entity-grid {
        grid-template-columns: 1fr;
    }

    .action-row-end {
        justify-content: flex-start;
    }

    .captcha-row {
        grid-template-columns: 1fr;
    }
}

@media (prefers-color-scheme: light) {
    :root {
        --bg: #f4f6ff;
        --bg-elevated: rgba(255, 255, 255, 0.9);
        --bg-soft: rgba(236, 240, 255, 0.9);
        --bg-strong: #ffffff;
        --line: rgba(53, 68, 112, 0.1);
        --line-strong: rgba(53, 68, 112, 0.16);
        --text: #182033;
        --text-muted: rgba(30, 42, 72, 0.72);
        --text-soft: rgba(30, 42, 72, 0.56);
        --primary: #5e6eff;
        --shadow: 0 26px 70px rgba(41, 57, 110, 0.14);
        --canvas-top: #eef2ff;
        --canvas-bottom: #f7f9ff;
        --aurora-violet: rgba(138, 151, 255, 0.28);
        --aurora-blue: rgba(132, 179, 255, 0.18);
        --aurora-green: rgba(110, 211, 190, 0.12);
        --grid-line: rgba(68, 91, 152, 0.05);
        --grain-opacity: 0.04;
        --surface-top: rgba(255, 255, 255, 0.84);
        --surface-bottom: rgba(245, 248, 255, 0.92);
        --panel: rgba(86, 102, 164, 0.08);
        --panel-strong: rgba(86, 102, 164, 0.12);
        --panel-soft: rgba(86, 102, 164, 0.05);
        --button-secondary: rgba(86, 102, 164, 0.08);
        --button-secondary-hover: rgba(86, 102, 164, 0.13);
        --icon-surface: rgba(86, 102, 164, 0.08);
        --accent-surface: rgba(94, 110, 255, 0.12);
        --toggle-surface: rgba(86, 102, 164, 0.18);
        --toast-bg: rgba(255, 255, 255, 0.95);
        --badge-text: rgba(30, 42, 72, 0.64);
    }

    .primary-button {
        color: white;
        box-shadow: 0 18px 36px rgba(86, 98, 255, 0.18);
    }

    .status-queued,
    .status-printing,
    .status-online {
        color: #3145cb;
    }

    .status-done {
        color: #1f8f63;
    }

    .status-failed,
    .status-offline {
        color: #ba515f;
    }

    .error-box {
        color: #b24c5a;
    }
}

/* Drop zone */
.drop-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 36px 24px;
    border: 2px dashed var(--line-strong);
    border-radius: var(--radius-lg);
    background: var(--panel-soft);
    text-align: center;
    transition: border-color 200ms ease, background 200ms ease;
    cursor: default;
}

.drop-zone-active {
    border-color: var(--primary);
    background: var(--primary-soft);
}

.drop-zone-has-file {
    border-color: var(--success);
    border-style: solid;
}

.drop-zone-icon {
    font-size: 32px;
    line-height: 1;
}

.drop-zone-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.drop-zone-text strong {
    font-size: 15px;
    color: var(--text);
}

.drop-zone-meta {
    font-size: 13px;
    color: var(--text-soft);
}

/* Submit sections */
.submit-params-section,
.submit-payment-section {
    margin-top: 20px;
}

.submit-section-title {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

/* Submit summary */
.submit-summary {
    margin-top: 20px;
    padding: 16px;
    border-radius: var(--radius-md);
    background: var(--panel);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.submit-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.submit-summary-label {
    color: var(--text-soft);
}

.submit-summary-price {
    padding-top: 10px;
    border-top: 1px solid var(--line);
}

.price-estimate {
    font-size: 18px;
    color: var(--primary);
    font-family: var(--font-display);
}

.submit-action {
    margin-top: 16px;
    width: 100%;
}

/* Profile info row */
.profile-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    margin-bottom: 16px;
}

.profile-info-label {
    font-size: 14px;
    color: var(--text-soft);
}

.profile-info-value {
    font-size: 15px;
    color: var(--text);
    font-weight: 500;
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 17, 24, 0.6);
    backdrop-filter: blur(6px);
}

.loading-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--line);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Toolbar sort */
.toolbar-sort {
    margin-top: 8px;
}

@media (prefers-color-scheme: light) {
    .drop-zone {
        background: rgba(86, 102, 164, 0.04);
        border-color: rgba(86, 102, 164, 0.2);
    }

    .drop-zone-active {
        background: rgba(94, 110, 255, 0.08);
    }

    .drop-zone-has-file {
        border-color: #1f8f63;
    }

    .loading-overlay {
        background: rgba(244, 246, 255, 0.7);
    }

    .status-unpaid {
        background: rgba(200, 150, 50, 0.12);
        color: #8a6a20;
    }
}

/* Toast success/error text colors */
.toast.success { color: var(--success); }
.toast.error { color: var(--danger); }

/* Refresh button spin animation */
.icon-button.spinning .icon {
    animation: spin 1s linear infinite;
}

/* Unpaid status - more prominent, amber/gold */
.status-unpaid {
    background: rgba(255, 212, 141, 0.18);
    color: #ffe4b8;
    border: 1px solid rgba(255, 212, 141, 0.2);
}

/* Empty state card */
.empty-state-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 36px 24px;
    gap: 8px;
}

.empty-state-icon {
    font-size: 36px;
    margin-bottom: 8px;
    opacity: 0.7;
}

.empty-state-card .section-header {
    text-align: center;
}

/* Submit layout - left/right preview + params */
.submit-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 18px;
    align-items: start;
}

.submit-preview-pane {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 70vh;
}

.submit-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    background: var(--panel-soft);
}

.submit-preview-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.submit-preview-info strong {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.submit-preview-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.preview-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}

.preview-badge.converted {
    background: rgba(143, 152, 255, 0.16);
    color: var(--primary);
}

.preview-badge.pages {
    background: rgba(128, 217, 178, 0.14);
    color: var(--success);
}

.submit-replace-btn {
    flex-shrink: 0;
    padding: 8px 14px;
    font-size: 13px;
}

.submit-preview-frame {
    flex: 1;
    position: relative;
    background: #1a1c28;
}

.pdf-viewer {
    width: 100%;
    height: 100%;
    min-height: 65vh;
    border: none;
    display: block;
}

.submit-params-pane {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    border-radius: var(--radius-lg);
    position: sticky;
    top: 24px;
}

.submit-param-grid {
    grid-template-columns: 1fr;
}

.submit-option-grid {
    grid-template-columns: 1fr;
}

/* Loading state for preview */
.preview-loading-card {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.preview-loading-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.preview-loading-text strong {
    font-size: 16px;
}

.preview-loading-text span {
    font-size: 13px;
    color: var(--text-soft);
}

/* Error state for preview */
.preview-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    padding: 48px 24px;
}

.preview-error strong {
    font-size: 16px;
}

.preview-error p {
    margin: 0;
    color: var(--text-soft);
    font-size: 14px;
}

/* Mobile responsive */
@media (max-width: 960px) {
    .submit-layout {
        grid-template-columns: 1fr;
    }

    .submit-preview-pane {
        min-height: 50vh;
    }

    .submit-params-pane {
        position: static;
    }

    .pdf-viewer {
        min-height: 45vh;
    }
}

/* Pricing breakdown */
.pricing-breakdown {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Confirmation dialog overlay */
.confirm-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 17, 24, 0.65);
    backdrop-filter: blur(8px);
    animation: fade-in 200ms ease both;
}

.confirm-dialog {
    width: 90%;
    max-width: 420px;
    padding: 24px;
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    gap: 18px;
    animation: rise-in 280ms ease both;
}

.confirm-dialog h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.confirm-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.confirm-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    gap: 12px;
}

.confirm-row span {
    color: var(--text-soft);
    flex-shrink: 0;
}

.confirm-row strong {
    text-align: right;
    word-break: break-all;
}

.confirm-total {
    padding-top: 12px;
    border-top: 1px solid var(--line);
    font-size: 16px;
}

.confirm-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

/* Order expanded details */
.order-expanded-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding-top: 8px;
}

.expand-arrow {
    font-size: 12px;
    opacity: 0.5;
    margin-left: 4px;
}

.card-title.clickable {
    cursor: pointer;
    user-select: none;
}

.card-title.clickable:hover {
    opacity: 0.8;
}

@media (prefers-color-scheme: light) {
    .confirm-overlay {
        background: rgba(244, 246, 255, 0.7);
    }
}

/* Sidebar active indicator */
.tab-button.active {
    position: relative;
    border-left: 3px solid var(--primary);
    padding-left: 9px;
}

/* Preview badge size */
.preview-badge.size {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
}

/* Pagination */
.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 14px 0;
}

.pagination-btn {
    padding: 10px 18px;
    font-size: 13px;
}

.pagination-info {
    font-size: 14px;
    color: var(--text-muted);
    min-width: 60px;
    text-align: center;
}

/* Order file actions */
.order-file-actions {
    display: flex;
    gap: 10px;
}

.order-file-actions .secondary-button {
    flex: 1;
}

/* Settings page */
.settings-group-title {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

/* Payment success overlay */
.payment-success-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 17, 24, 0.7);
    backdrop-filter: blur(10px);
    animation: fade-in 300ms ease both;
}

.payment-success-card {
    width: 90%;
    max-width: 380px;
    padding: 40px 32px;
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
    animation: rise-in 400ms ease 100ms both;
}

.payment-success-icon {
    font-size: 56px;
    margin-bottom: 8px;
}

.payment-success-card h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--success);
}

.payment-success-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
}

.payment-success-card .primary-button {
    margin-top: 12px;
    min-width: 140px;
}

@media (prefers-color-scheme: light) {
    .payment-success-overlay {
        background: rgba(244, 246, 255, 0.75);
    }
}

/* ============ MOBILE BOTTOM NAV ============ */
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 960px) {
    /* Hide sidebar */
    .workspace-sidebar {
        display: none !important;
    }

    /* Hide aurora + grain on mobile for performance */
    .aurora,
    .grain {
        display: none !important;
    }

    /* Hide sidebar brand on mobile */
    .sidebar-brand {
        display: none;
    }

    /* Adjust workspace layout */
    .workspace-screen {
        padding-bottom: 80px;
    }

    /* Show bottom nav */
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 90;
        background: var(--bg-elevated);
        border-top: 1px solid var(--line);
        backdrop-filter: blur(20px);
        padding: 6px 0 env(safe-area-inset-bottom, 8px);
        justify-content: space-around;
        align-items: center;
    }

    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        padding: 8px 12px;
        border: none;
        background: transparent;
        color: var(--text-soft);
        cursor: pointer;
        font: inherit;
        border-radius: 12px;
        transition: color 180ms ease, background 180ms ease;
        -webkit-tap-highlight-color: transparent;
        min-width: 56px;
    }

    .mobile-nav-item.active {
        color: var(--primary);
        background: var(--primary-soft);
    }

    .mobile-nav-icon {
        font-size: 20px;
        line-height: 1;
    }

    .mobile-nav-label {
        font-size: 11px;
        font-weight: 600;
        line-height: 1;
    }

    /* Touch feedback */
    button,
    .choice-chip,
    .tab-button,
    .status-action,
    .toggle {
        -webkit-tap-highlight-color: transparent;
    }

    button:active,
    .choice-chip:active,
    .status-action:active {
        transform: scale(0.97);
        opacity: 0.85;
    }

    /* Submit page: shorter preview on mobile */
    .submit-preview-pane {
        min-height: 35vh;
    }

    .pdf-viewer {
        min-height: 30vh;
    }

    .submit-params-pane {
        padding-bottom: 100px;
    }

    /* Confirmation dialog: prevent overflow on small screens */
    .confirm-dialog {
        max-height: 90vh;
        overflow-y: auto;
        margin: 16px;
    }

    /* Payment success: smaller on mobile */
    .payment-success-card {
        padding: 32px 24px;
    }

    .payment-success-icon {
        font-size: 44px;
    }

    /* Bottom nav needs space for itself */

    .app-shell {
        padding-bottom: 90px;
    }

    /* Admin orders toolbar: stack on mobile */
    .toolbar-main {
        flex-direction: column;
    }

    .toolbar-sort {
        margin-top: 0;
    }

    /* Order card actions: stack vertically on mobile */
    .action-row-end {
        flex-direction: column;
        align-items: stretch;
    }

    .status-action {
        text-align: center;
    }

    /* Auth screen: hide hero badges on very small screens */
    @media (max-width: 480px) {
        .hero-badges {
            display: none;
        }

        .hero-copy p {
            font-size: 15px;
        }

        .auth-card {
            padding: 18px;
        }
    }
}
