* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: #0f172a;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #0f172a;
    color: white;
    padding: 20px;
    min-height: 100vh;
}

body.access-locked {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    padding: 0;
}

body.access-locked .app {
    visibility: hidden;
    pointer-events: none;
}

.app {
    max-width: 520px;
    margin: 0 auto;
    background: #1e293b;
    padding: 74px 22px 22px;
    min-height: calc(100vh - 40px);
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(0,0,0,.35);
    position: relative;
    overflow: hidden;
}

.app h1 {
    margin: 0 0 6px;
    font-size: 24px;
}

.app-logo {
    display: none;
    width: 250px;
    max-width: 85%;
    margin: 0 auto 10px;
    object-fit: contain;
}

.app-logo-placeholder {
    width: 250px;
    max-width: 85%;
    height: 126px;
    margin: 0 auto 10px;
    border: 1px solid rgba(226,232,240,.35);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255,255,255,.14), rgba(255,255,255,.04));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 14px 28px rgba(0,0,0,.18);
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.app p {
    margin: 0 0 18px;
    color: #cbd5e1;
    text-align: center;
}

.app-language-switch {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 7px;
    padding:5px;
    border-radius:8px;
    background:rgba(15,23,42,.42);
    border:1px solid rgba(255,255,255,.18);
    box-shadow:0 12px 24px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.12);
}

.app-language-switch button {
    width:28px !important;
    height:20px !important;
    min-height:20px !important;
    padding:0 !important;
    margin:0 !important;
    border-radius:4px !important;
    background:transparent !important;
    border:1px solid rgba(255,255,255,.48) !important;
    box-shadow:0 5px 12px rgba(0,0,0,.18) !important;
    line-height:1 !important;
    overflow:hidden;
}

.app-language-switch button:hover,
.app-language-switch button.active {
    border-color:#f97316 !important;
    box-shadow:0 0 0 2px rgba(249,115,22,.2), 0 5px 12px rgba(0,0,0,.2) !important;
    filter:none;
}

.mobile-workspace-shell {
    display: block;
}

.desktop-flow-topbar {
    display: none;
}

.desktop-flow-brand {
    flex: 0 0 392px;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.desktop-flow-brand img {
    width: 46px;
    height: 46px;
    object-fit: cover;
    border-radius: 9px;
    filter: drop-shadow(0 0 14px rgba(249, 115, 22, .20));
}

.desktop-brand-language {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px;
    border: 1px solid rgba(56, 189, 248, .18);
    border-radius: 9px;
    background: rgba(15, 23, 42, .58);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .035);
}

.desktop-brand-language button {
    width: 32px !important;
    height: 24px !important;
    min-height: 24px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: grid !important;
    place-items: center;
    border: 1px solid rgba(148, 163, 184, .22) !important;
    border-radius: 5px !important;
    background: rgba(2, 8, 23, .42) !important;
    box-shadow: none !important;
}

.desktop-brand-language button.active,
.desktop-brand-language button:hover,
.desktop-brand-language button:focus-visible {
    border-color: rgba(249, 115, 22, .72) !important;
    background: rgba(249, 115, 22, .12) !important;
}

.desktop-brand-language .flag-icon {
    width: 24px;
    height: 16px;
}

.desktop-flow-brand-title {
    flex: 0 0 auto;
    min-width: 0;
    overflow: visible;
    text-overflow: clip;
    color: #f8fafc;
    font-size: 28px;
    font-weight: 950;
    line-height: 1;
    white-space: nowrap;
}

.desktop-flow-brand-title .brand-smart {
    color: #ffffff;
}

.desktop-flow-brand-title .brand-quote {
    color: #0ea5e9;
    text-shadow: 0 0 16px rgba(14, 165, 233, .28);
}

.desktop-flow-brand-title strong {
    color: #f59e0b;
}

.desktop-flow-tabs {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    margin-left: auto;
    border: 1px solid rgba(56, 189, 248, .18);
    border-radius: 7px;
    overflow: hidden;
    background: rgba(15, 23, 42, .62);
}

.desktop-flow-tab {
    width: 132px !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 0 18px !important;
    border: 0 !important;
    border-right: 1px solid rgba(56, 189, 248, .18) !important;
    border-radius: 0 !important;
    background: rgba(15, 23, 42, .50) !important;
    color: #cbd5e1 !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    box-shadow: none !important;
}

.desktop-flow-tab:last-child {
    border-right: 0 !important;
}

.desktop-flow-tab.active {
    color: #38bdf8 !important;
    background:
        linear-gradient(135deg, rgba(14, 165, 233, .26), rgba(14, 165, 233, .08)),
        rgba(8, 47, 73, .85) !important;
    box-shadow: inset 0 0 26px rgba(14, 165, 233, .15) !important;
}

.desktop-flow-actions {
    position: relative;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: 32px;
}

.desktop-icon-btn {
    position: relative;
    flex: 0 0 46px;
    width: 46px !important;
    height: 46px !important;
    min-height: 46px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: grid !important;
    place-items: center;
    border: 1px solid rgba(56, 189, 248, .15) !important;
    border-radius: 7px !important;
    background: rgba(15, 23, 42, .62) !important;
    color: #e2e8f0 !important;
    box-shadow: none !important;
}

.desktop-icon-btn svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.desktop-notification-btn {
    border-color: transparent !important;
    background: transparent !important;
}

.desktop-notification-wrap {
    position: relative;
    flex: 0 0 46px;
    display: grid;
    place-items: center;
}

.desktop-notification-badge {
    position: absolute;
    top: 4px;
    right: 1px;
    width: 19px;
    height: 19px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #ef4444;
    color: #ffffff;
    font-size: 11px;
    font-weight: 950;
}

.desktop-notification-panel {
    position: absolute;
    top: 58px;
    right: -8px;
    width: min(360px, calc(100vw - 32px));
    max-height: min(430px, calc(100vh - 100px));
    display: none;
    overflow: hidden;
    border: 1px solid rgba(56, 189, 248, .26);
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, .98), rgba(2, 12, 27, .98)),
        radial-gradient(circle at 16% 0%, rgba(14, 165, 233, .18), transparent 32%);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .46), inset 0 0 0 1px rgba(255, 255, 255, .04);
}

.desktop-notification-panel.open {
    display: block;
}

.desktop-notification-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 16px 13px;
    border-bottom: 1px solid rgba(148, 163, 184, .16);
}

.desktop-notification-head div {
    display: grid;
    gap: 3px;
}

.desktop-notification-head strong {
    color: #f8fafc;
    font-size: 15px;
    font-weight: 900;
}

.desktop-notification-head span {
    color: #94a3b8;
    font-size: 12px;
}

.desktop-notification-head em {
    min-width: 30px;
    height: 24px;
    display: grid;
    place-items: center;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(14, 165, 233, .16);
    color: #38bdf8;
    font-style: normal;
    font-size: 12px;
    font-weight: 900;
}

.desktop-notification-list {
    max-height: 330px;
    overflow-y: auto;
    padding: 12px;
    scrollbar-width: thin;
    scrollbar-color: rgba(56, 189, 248, .48) rgba(15, 23, 42, .72);
}

.desktop-notification-list::-webkit-scrollbar {
    width: 8px;
}

.desktop-notification-list::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, .72);
}

.desktop-notification-list::-webkit-scrollbar-thumb {
    background: rgba(56, 189, 248, .48);
    border-radius: 999px;
}

.desktop-notification-empty {
    display: grid;
    gap: 8px;
    place-items: center;
    min-height: 160px;
    padding: 22px;
    text-align: center;
    color: #94a3b8;
    border: 1px dashed rgba(148, 163, 184, .22);
    border-radius: 14px;
    background: rgba(15, 23, 42, .42);
}

.desktop-notification-empty strong {
    color: #f8fafc;
    font-size: 15px;
}

.desktop-notification-empty span {
    max-width: 260px;
    font-size: 12px;
    line-height: 1.45;
}

.desktop-plan-card {
    flex: 0 0 auto;
    width: auto !important;
    min-width: 92px !important;
    min-height: 46px !important;
    margin: 0 !important;
    padding: 4px 11px !important;
    display: grid !important;
    grid-template-columns: 28px auto;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(56, 189, 248, .20) !important;
    border-radius: 9px !important;
    background:
        linear-gradient(135deg, rgba(14, 165, 233, .12), rgba(249, 115, 22, .08)),
        rgba(15, 23, 42, .58) !important;
    color: #e2e8f0 !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .035), 0 12px 28px rgba(0, 0, 0, .16) !important;
}

.desktop-plan-card:hover,
.desktop-plan-card:focus-visible {
    border-color: rgba(249, 115, 22, .46) !important;
    transform: translateY(-1px);
}

.desktop-plan-icon {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 22%, rgba(255, 255, 255, .18), rgba(14, 165, 233, .18) 42%, rgba(2, 8, 23, .72));
    color: #38bdf8;
    box-shadow: inset 0 0 0 1px rgba(56, 189, 248, .18);
}

.desktop-plan-icon svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.desktop-plan-card > span:last-child {
    color: #f8fafc;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.subscription-panel-overlay {
    position: fixed;
    inset: 0;
    z-index: 260;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background:
        radial-gradient(circle at 72% 24%, rgba(56, 189, 248, .18), transparent 34%),
        radial-gradient(circle at 30% 82%, rgba(249, 115, 22, .16), transparent 36%),
        rgba(2, 6, 23, .78);
    backdrop-filter: blur(16px);
}

.subscription-panel-overlay.show {
    display: flex;
}

.subscription-panel-card {
    position: relative;
    width: min(620px, calc(100vw - 28px));
    max-height: min(780px, calc(100vh - 28px));
    overflow: auto;
    padding: 22px;
    border: 1px solid rgba(56, 189, 248, .26);
    border-radius: 22px;
    background:
        linear-gradient(145deg, rgba(15, 23, 42, .96), rgba(8, 47, 73, .88)),
        #0f172a;
    color: #e2e8f0;
    box-shadow:
        0 36px 90px rgba(0, 0, 0, .58),
        inset 0 0 0 1px rgba(255, 255, 255, .045);
}

.subscription-panel-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: grid !important;
    place-items: center;
    border: 1px solid rgba(148, 163, 184, .22) !important;
    border-radius: 11px !important;
    background: rgba(15, 23, 42, .72) !important;
    color: #cbd5e1 !important;
    font-size: 14px !important;
    font-weight: 900 !important;
}

.subscription-panel-close:hover,
.subscription-panel-close:focus-visible {
    border-color: rgba(249, 115, 22, .55) !important;
    color: #ffffff !important;
}

.subscription-panel-hero {
    display: grid;
    gap: 9px;
    padding: 6px 42px 18px 2px;
}

.subscription-panel-kicker {
    color: #38bdf8;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.subscription-panel-title {
    color: #f8fafc;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.05;
    font-weight: 950;
}

.subscription-panel-description {
    max-width: 520px;
    margin: 0;
    color: #b6c5d8;
    font-size: 14px;
    line-height: 1.5;
}

.subscription-status-pill {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 12px;
    border: 1px solid rgba(34, 197, 94, .32);
    border-radius: 999px;
    background: rgba(22, 163, 74, .15);
    color: #86efac;
    font-size: 12px;
    font-weight: 950;
}

.subscription-status-pill.is-warning {
    border-color: rgba(249, 115, 22, .40);
    background: rgba(249, 115, 22, .14);
    color: #fdba74;
}

.subscription-status-pill.is-danger {
    border-color: rgba(239, 68, 68, .40);
    background: rgba(127, 29, 29, .22);
    color: #fecaca;
}

.subscription-price-grid,
.subscription-state-grid {
    display: grid;
    gap: 12px;
}

.subscription-price-grid {
    grid-template-columns: 1.15fr .9fr .9fr;
    margin: 4px 0 14px;
}

.subscription-price-card,
.subscription-state-grid > div {
    min-width: 0;
    padding: 15px;
    border: 1px solid rgba(56, 189, 248, .18);
    border-radius: 15px;
    background: rgba(15, 23, 42, .58);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .025);
}

.subscription-price-card.is-main {
    background:
        linear-gradient(135deg, rgba(14, 165, 233, .18), rgba(249, 115, 22, .13)),
        rgba(15, 23, 42, .66);
}

.subscription-price-card span,
.subscription-state-grid span {
    display: block;
    color: #93a4ba;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.subscription-price-card strong,
.subscription-state-grid strong {
    display: block;
    margin-top: 7px;
    color: #f8fafc;
    font-size: 23px;
    line-height: 1;
    font-weight: 950;
}

.subscription-price-card em {
    display: block;
    margin-top: 8px;
    color: #7dd3fc;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

.subscription-state-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.subscription-state-grid strong {
    font-size: 18px;
}

.subscription-panel-note {
    margin-top: 14px;
    padding: 13px 14px;
    border: 1px solid rgba(125, 211, 252, .18);
    border-radius: 13px;
    background: rgba(2, 6, 23, .38);
    color: #b6c5d8;
    font-size: 12px;
    line-height: 1.45;
}

.subscription-panel-actions {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 12px;
    margin-top: 16px;
}

.subscription-primary-btn,
.subscription-secondary-btn {
    width: 100% !important;
    min-height: 48px !important;
    margin: 0 !important;
    border-radius: 13px !important;
    font-size: 13px !important;
    font-weight: 950 !important;
}

.subscription-primary-btn {
    border: 1px solid rgba(255, 255, 255, .10) !important;
    background: linear-gradient(135deg, #0ea5e9, #f97316) !important;
    color: #ffffff !important;
    box-shadow: 0 18px 42px rgba(14, 165, 233, .18) !important;
}

.subscription-secondary-btn {
    border: 1px solid rgba(56, 189, 248, .24) !important;
    background: rgba(15, 23, 42, .72) !important;
    color: #dbeafe !important;
}

@media (max-width: 720px) {
    .subscription-panel-overlay {
        align-items: flex-end;
        padding: 12px;
    }

    .subscription-panel-card {
        max-height: calc(100vh - 24px);
        padding: 18px;
        border-radius: 18px;
    }

    .subscription-price-grid,
    .subscription-state-grid,
    .subscription-panel-actions {
        grid-template-columns: 1fr;
    }
}

.desktop-user-card {
    flex: 0 0 245px;
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 245px;
    padding-left: 18px;
    border-left: 1px solid rgba(148, 163, 184, .18);
}

.desktop-user-card div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.desktop-user-card strong {
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.desktop-user-card span {
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #94a3b8;
    font-size: 13px;
}

.desktop-company-logo-btn {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    min-height: 46px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(56, 189, 248, .24) !important;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 25%, rgba(14, 165, 233, .34), rgba(8, 47, 73, .94));
    color: #38bdf8;
    font-size: 16px;
    font-weight: 950;
    box-shadow: inset 0 0 0 1px rgba(56, 189, 248, .16), 0 0 18px rgba(14, 165, 233, .12) !important;
}

.desktop-company-logo-btn:hover,
.desktop-company-logo-btn:focus-visible {
    border-color: rgba(56, 189, 248, .55) !important;
    transform: translateY(-1px);
}

.desktop-company-logo-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 0;
    background: transparent;
}

.desktop-company-logo-btn span {
    color: inherit;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0;
}

.desktop-flow-sidebar {
    display: none;
}

.desktop-flow-stage {
    display: none;
    isolation: isolate;
}

.desktop-blueprint-header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 18px;
}

.desktop-blueprint-zoom-controls {
    margin-left: auto;
    display: inline-grid;
    grid-template-columns: 38px 62px 38px;
    align-items: center;
    overflow: hidden;
    border: 1px solid rgba(56, 189, 248, .20);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, .78), rgba(2, 8, 23, .70)),
        radial-gradient(circle at 50% 0%, rgba(56, 189, 248, .12), transparent 58%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .035), 0 12px 26px rgba(0, 0, 0, .22);
}

.desktop-blueprint-zoom-controls button {
    width: 38px !important;
    min-height: 36px !important;
    height: 36px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: rgba(14, 165, 233, .08) !important;
    color: #dbeafe !important;
    font-size: 18px !important;
    font-weight: 950 !important;
    box-shadow: none !important;
}

.desktop-blueprint-zoom-controls button:hover,
.desktop-blueprint-zoom-controls button:focus-visible {
    background: rgba(14, 165, 233, .22) !important;
    color: #38bdf8 !important;
}

.desktop-blueprint-zoom-controls button:disabled {
    cursor: not-allowed;
    color: rgba(148, 163, 184, .48) !important;
    background: rgba(15, 23, 42, .44) !important;
}

.desktop-blueprint-zoom-controls span {
    min-height: 36px;
    display: grid;
    place-items: center;
    border-left: 1px solid rgba(56, 189, 248, .16);
    border-right: 1px solid rgba(56, 189, 248, .16);
    color: #38bdf8;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .02em;
}

.desktop-blueprint-save-toolbar-btn {
    min-height: 42px !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 16px 0 12px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid rgba(251, 146, 60, .45) !important;
    border-radius: 10px !important;
    color: #fff7ed !important;
    background:
        linear-gradient(135deg, rgba(14, 165, 233, .28), rgba(249, 115, 22, .78)),
        linear-gradient(180deg, rgba(15, 23, 42, .86), rgba(2, 8, 23, .78)) !important;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, .05),
        0 14px 30px rgba(0, 0, 0, .28),
        0 0 26px rgba(249, 115, 22, .16) !important;
    font-size: 12px !important;
    font-weight: 950 !important;
    line-height: 1 !important;
    text-transform: uppercase;
}

.desktop-blueprint-save-toolbar-btn:hover,
.desktop-blueprint-save-toolbar-btn:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(251, 146, 60, .72) !important;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, .08),
        0 16px 32px rgba(0, 0, 0, .34),
        0 0 34px rgba(56, 189, 248, .20) !important;
}

.desktop-blueprint-save-toolbar-btn span {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    color: #e0f2fe;
    border-radius: 8px;
    background: rgba(2, 8, 23, .28);
}

.desktop-blueprint-save-toolbar-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2.4;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.desktop-blueprint-save-exit-toolbar-btn {
    border-color: rgba(56, 189, 248, .42) !important;
    color: #e0f2fe !important;
    background:
        linear-gradient(135deg, rgba(14, 165, 233, .34), rgba(15, 23, 42, .88)),
        linear-gradient(180deg, rgba(15, 23, 42, .9), rgba(2, 8, 23, .82)) !important;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, .05),
        0 14px 30px rgba(0, 0, 0, .28),
        0 0 24px rgba(14, 165, 233, .18) !important;
}

.desktop-blueprint-save-toolbar-btn.save-flash-success {
    animation: desktopSaveSuccessPulse 1.2s ease both;
}

.desktop-blueprint-save-toolbar-btn.save-flash-error {
    animation: desktopSaveErrorPulse 1.2s ease both;
}

@keyframes desktopSaveSuccessPulse {
    0%,
    100% {
        transform: translateY(0);
    }
    18% {
        border-color: rgba(34, 197, 94, .95);
        background:
            linear-gradient(135deg, rgba(34, 197, 94, .82), rgba(14, 165, 233, .42)),
            linear-gradient(180deg, rgba(15, 23, 42, .86), rgba(2, 8, 23, .78)) !important;
        box-shadow:
            inset 0 0 0 1px rgba(255, 255, 255, .14),
            0 0 0 4px rgba(34, 197, 94, .18),
            0 0 34px rgba(34, 197, 94, .42) !important;
    }
    48% {
        transform: translateY(-1px) scale(1.02);
    }
}

@keyframes desktopSaveErrorPulse {
    0%,
    100% {
        transform: translateY(0);
    }
    18% {
        border-color: rgba(248, 113, 113, .98);
        background:
            linear-gradient(135deg, rgba(239, 68, 68, .82), rgba(249, 115, 22, .38)),
            linear-gradient(180deg, rgba(15, 23, 42, .88), rgba(2, 8, 23, .82)) !important;
        box-shadow:
            inset 0 0 0 1px rgba(255, 255, 255, .14),
            0 0 0 4px rgba(239, 68, 68, .16),
            0 0 34px rgba(239, 68, 68, .38) !important;
    }
    35% {
        transform: translateX(-2px);
    }
    50% {
        transform: translateX(2px);
    }
    65% {
        transform: translateX(-1px);
    }
}

.desktop-blueprint-icon-btn {
    width: 60px !important;
    height: 60px !important;
    min-height: 60px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: grid !important;
    place-items: center;
    border: 1px solid rgba(148, 215, 255, .35) !important;
    border-radius: 10px !important;
    background:
        linear-gradient(135deg, rgba(148, 163, 184, .16), rgba(15, 23, 42, .72)),
        radial-gradient(circle at 32% 20%, rgba(56, 189, 248, .20), transparent 42%) !important;
    color: #dbeafe !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), 0 14px 32px rgba(0, 0, 0, .30) !important;
}

.desktop-blueprint-icon-btn:hover,
.desktop-blueprint-icon-btn:focus-visible {
    color: #38bdf8 !important;
    border-color: rgba(56, 189, 248, .65) !important;
    transform: translateY(-1px);
}

.desktop-blueprint-icon-btn svg {
    width: 42px;
    height: 42px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.desktop-blueprint-icon-btn .flow-icon-bolt {
    fill: rgba(249, 115, 22, .18);
    stroke: #f97316;
}

.desktop-blueprint-icon-btn .flow-icon-line {
    stroke: #38bdf8;
}

.desktop-blueprint-header h2 {
    margin: 0;
    color: #f8fafc;
    font-size: 34px;
    line-height: 1;
    font-weight: 950;
}

.desktop-blueprint-header p {
    margin: 7px 0 0;
    color: #cbd5e1;
    font-size: 16px;
    line-height: 1.2;
}

.desktop-flow-brand-watermark {
    position: fixed;
    top: 50%;
    right: 70px;
    z-index: 0;
    width: 420px;
    padding: 34px 36px 28px;
    display: grid;
    justify-items: center;
    gap: 12px;
    pointer-events: none;
    opacity: .34;
    border: 1px solid rgba(56, 189, 248, .14);
    border-radius: 34px;
    transform: translateY(-50%);
    background:
        linear-gradient(180deg, rgba(15, 23, 42, .42), rgba(2, 8, 23, .24)),
        radial-gradient(circle at 50% 0%, rgba(14, 165, 233, .18), transparent 62%);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, .035),
        0 0 58px rgba(14, 165, 233, .13);
    backdrop-filter: blur(4px);
}

.desktop-flow-brand-watermark img {
    width: 230px;
    height: 230px;
    object-fit: cover;
    border-radius: 38px;
    box-shadow: 0 0 54px rgba(56, 189, 248, .26);
}

.desktop-flow-brand-watermark span {
    color: rgba(226, 232, 240, .82);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-shadow: 0 0 12px rgba(56, 189, 248, .22);
}

.desktop-flow-drilldown {
    position: absolute;
    top: 112px;
    left: 32px;
    right: 32px;
    bottom: 32px;
    z-index: 8;
    min-width: 980px;
    display: grid;
    align-content: start;
    gap: 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(.94) translateY(22px);
    transform-origin: center center;
    transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
}

body.desktop-flow-panel-open .desktop-blueprint-viewport,
body.desktop-flow-panel-open .desktop-flow-bottom-bar {
    opacity: 0;
    pointer-events: none;
    transform: scale(.92);
    transition: opacity .2s ease, transform .2s ease;
}

body.desktop-flow-panel-open .desktop-flow-brand-watermark {
    opacity: 0;
    pointer-events: none;
}

body.desktop-flow-panel-open .desktop-flow-drilldown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: scale(1) translateY(0);
}

.desktop-flow-back-btn {
    width: fit-content !important;
    min-height: 44px !important;
    padding: 0 16px !important;
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(56, 189, 248, .28) !important;
    border-radius: 14px !important;
    background: linear-gradient(180deg, rgba(15, 23, 42, .82), rgba(2, 8, 23, .72)) !important;
    color: #dbeafe !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .035), 0 0 24px rgba(14, 165, 233, .10) !important;
}

.desktop-flow-back-btn span:first-child {
    color: #38bdf8;
    font-size: 18px;
}

.desktop-flow-panel-card {
    max-width: 1080px;
    padding: 28px;
    border: 1px solid rgba(56, 189, 248, .18);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, .86), rgba(2, 8, 23, .76)),
        radial-gradient(circle at 12% 0%, rgba(14, 165, 233, .18), transparent 34%),
        radial-gradient(circle at 88% 18%, rgba(249, 115, 22, .14), transparent 30%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .035), 0 28px 70px rgba(0, 0, 0, .34);
}

.desktop-flow-panel {
    display: none;
}

.desktop-flow-panel.is-active {
    display: block;
}

.desktop-flow-panel-head {
    display: flex;
    align-items: center;
    gap: 20px;
}

.desktop-flow-panel-number {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: #38bdf8;
    font-size: 24px;
    font-weight: 950;
    background: linear-gradient(180deg, rgba(14, 165, 233, .22), rgba(30, 64, 175, .20));
    box-shadow: inset 0 0 0 1px rgba(56, 189, 248, .28), 0 0 26px rgba(56, 189, 248, .16);
}

.desktop-flow-panel-kicker {
    margin: 0 0 5px;
    color: #38bdf8;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.desktop-flow-panel-head h2 {
    margin: 0;
    color: #f8fafc;
    font-size: 34px;
    line-height: 1;
}

.desktop-flow-panel-description {
    display: block;
    margin-top: 8px;
    color: #cbd5e1;
    font-size: 15px;
}

.desktop-document-choice-grid {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.desktop-document-choice {
    min-height: 260px !important;
    padding: 24px 22px !important;
    display: grid !important;
    align-content: center;
    justify-items: center;
    gap: 14px;
    border: 1px solid rgba(56, 189, 248, .18) !important;
    border-radius: 20px !important;
    background: linear-gradient(180deg, rgba(15, 23, 42, .86), rgba(2, 8, 23, .78)) !important;
    color: #e2e8f0 !important;
    text-align: center;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .035), 0 18px 44px rgba(0, 0, 0, .24) !important;
}

.desktop-document-choice:hover,
.desktop-document-choice:focus-visible {
    transform: translateY(-3px);
    border-color: rgba(56, 189, 248, .42) !important;
    box-shadow: inset 0 0 0 1px rgba(56, 189, 248, .12), 0 24px 54px rgba(0, 0, 0, .30), 0 0 34px rgba(56, 189, 248, .12) !important;
}

.desktop-document-choice-icon {
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    color: var(--choice-accent, #38bdf8);
    background: radial-gradient(circle at 50% 0%, var(--choice-soft, rgba(56, 189, 248, .22)), transparent 64%);
    filter: drop-shadow(0 0 14px var(--choice-soft, rgba(56, 189, 248, .22)));
}

.desktop-document-choice-icon svg {
    width: 58px;
    height: 58px;
    fill: rgba(37, 99, 235, .08);
    stroke: currentColor;
    stroke-width: 3.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.desktop-document-choice strong {
    color: #f8fafc;
    font-size: 20px;
    font-weight: 950;
}

.desktop-document-choice em {
    max-width: 210px;
    color: #cbd5e1;
    font-size: 13px;
    font-style: normal;
    line-height: 1.35;
}

.desktop-document-choice.is-estimate {
    --choice-accent: #38bdf8;
    --choice-soft: rgba(56, 189, 248, .22);
}

.desktop-document-choice.is-invoice {
    --choice-accent: #f59e0b;
    --choice-soft: rgba(245, 158, 11, .22);
}

.desktop-document-choice.is-receipt {
    --choice-accent: #22c55e;
    --choice-soft: rgba(34, 197, 94, .22);
}

.desktop-flow-panel-client {
    max-width: 1120px;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, .88), rgba(2, 8, 23, .78)),
        radial-gradient(circle at 15% 0%, rgba(16, 185, 129, .20), transparent 34%),
        radial-gradient(circle at 88% 24%, rgba(56, 189, 248, .14), transparent 30%);
}

.desktop-client-info-grid {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.desktop-flow-field {
    display: grid;
    gap: 8px;
    color: #dbeafe;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .02em;
}

.desktop-flow-field span {
    color: #93c5fd;
}

.desktop-flow-field input,
.desktop-flow-field textarea,
.desktop-flow-field select {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid rgba(56, 189, 248, .22);
    border-radius: 14px;
    background: rgba(2, 8, 23, .72);
    color: #f8fafc;
    font-size: 15px;
    font-weight: 800;
    outline: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .035);
}

.desktop-flow-field select {
    appearance: none;
    background:
        linear-gradient(45deg, transparent 50%, #93c5fd 50%) calc(100% - 18px) 50% / 7px 7px no-repeat,
        linear-gradient(135deg, #93c5fd 50%, transparent 50%) calc(100% - 13px) 50% / 7px 7px no-repeat,
        rgba(2, 8, 23, .72);
    padding-right: 42px;
}

.desktop-flow-field textarea {
    min-height: 78px;
    resize: vertical;
}

.desktop-flow-field input:focus,
.desktop-flow-field textarea:focus,
.desktop-flow-field select:focus {
    border-color: rgba(56, 189, 248, .58);
    box-shadow: inset 0 0 0 1px rgba(56, 189, 248, .16), 0 0 22px rgba(56, 189, 248, .13);
}

.desktop-flow-field-wide {
    grid-column: 1 / -1;
}

.desktop-flow-panel-actions {
    margin-top: 22px;
    display: flex;
    justify-content: flex-end;
}

.desktop-flow-save-btn {
    width: auto !important;
    min-width: 250px !important;
    min-height: 50px !important;
    padding: 0 24px !important;
    border: 1px solid rgba(56, 189, 248, .32) !important;
    border-radius: 16px !important;
    background: linear-gradient(135deg, rgba(14, 165, 233, .92), rgba(249, 115, 22, .88)) !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 950 !important;
    box-shadow: 0 18px 38px rgba(14, 165, 233, .16), 0 14px 34px rgba(249, 115, 22, .13) !important;
}

.desktop-flow-secondary-btn {
    width: auto !important;
    min-width: 170px !important;
    min-height: 50px !important;
    padding: 0 22px !important;
    border: 1px solid rgba(168, 85, 247, .30) !important;
    border-radius: 16px !important;
    background: linear-gradient(180deg, rgba(30, 41, 59, .74), rgba(15, 23, 42, .68)) !important;
    color: #e9d5ff !important;
    font-size: 14px !important;
    font-weight: 950 !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .035), 0 16px 34px rgba(0, 0, 0, .18) !important;
}

.desktop-flow-secondary-btn:hover,
.desktop-flow-secondary-btn:focus-visible {
    border-color: rgba(216, 180, 254, .54) !important;
    color: #f5d0fe !important;
}

.desktop-flow-panel-notes {
    max-width: 1120px;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, .90), rgba(2, 8, 23, .80)),
        radial-gradient(circle at 12% 0%, rgba(168, 85, 247, .22), transparent 34%),
        radial-gradient(circle at 88% 18%, rgba(14, 165, 233, .12), transparent 32%);
}

.desktop-notes-panel-body {
    margin-top: 28px;
    padding: 20px;
    border: 1px solid rgba(168, 85, 247, .18);
    border-radius: 20px;
    background: rgba(2, 8, 23, .48);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .03);
}

.desktop-flow-panel-notes .desktop-flow-panel-number {
    color: #d8b4fe;
    background: linear-gradient(180deg, rgba(168, 85, 247, .24), rgba(88, 28, 135, .20));
    box-shadow: inset 0 0 0 1px rgba(168, 85, 247, .34), 0 0 28px rgba(168, 85, 247, .18);
}

.desktop-flow-panel-notes .desktop-flow-field span,
.desktop-flow-panel-notes .desktop-flow-panel-kicker {
    color: #d8b4fe;
}

.desktop-flow-panel-notes textarea {
    min-height: 190px;
    line-height: 1.45;
}

.desktop-notes-helper {
    margin-top: 12px;
    color: #c4b5fd;
    font-size: 13px;
    font-weight: 800;
}

.desktop-notes-actions {
    gap: 12px;
}

.desktop-flow-panel-delivery {
    max-width: 1180px;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, .90), rgba(2, 8, 23, .80)),
        radial-gradient(circle at 12% 0%, rgba(34, 211, 238, .22), transparent 34%),
        radial-gradient(circle at 88% 18%, rgba(59, 130, 246, .13), transparent 32%);
}

.desktop-flow-panel-delivery .desktop-flow-panel-number {
    color: #67e8f9;
    background: linear-gradient(180deg, rgba(34, 211, 238, .24), rgba(14, 116, 144, .20));
    box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .34), 0 0 28px rgba(34, 211, 238, .18);
}

.desktop-flow-panel-delivery .desktop-flow-field span,
.desktop-flow-panel-delivery .desktop-flow-panel-kicker {
    color: #67e8f9;
}

.desktop-flow-panel-generate-ticket {
    max-width: 1240px;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, .91), rgba(2, 8, 23, .82)),
        radial-gradient(circle at 13% 0%, rgba(236, 72, 153, .20), transparent 34%),
        radial-gradient(circle at 90% 14%, rgba(14, 165, 233, .14), transparent 32%);
}

.desktop-flow-panel-generate-ticket .desktop-flow-panel-number {
    color: #f9a8d4;
    background: linear-gradient(180deg, rgba(236, 72, 153, .24), rgba(112, 26, 117, .20));
    box-shadow: inset 0 0 0 1px rgba(244, 114, 182, .34), 0 0 28px rgba(236, 72, 153, .18);
}

.desktop-flow-panel-generate-ticket .desktop-flow-panel-kicker {
    color: #f9a8d4;
}

.desktop-ticket-panel-layout {
    margin-top: 28px;
    display: grid;
    grid-template-columns: minmax(320px, .85fr) minmax(420px, 1.15fr);
    gap: 18px;
    align-items: start;
}

.desktop-flow-panel-approval,
.desktop-flow-panel-billing {
    max-width: 1180px;
}

.desktop-flow-panel-approval {
    background:
        linear-gradient(180deg, rgba(15, 23, 42, .91), rgba(2, 8, 23, .82)),
        radial-gradient(circle at 12% 0%, rgba(168, 85, 247, .22), transparent 34%),
        radial-gradient(circle at 88% 18%, rgba(236, 72, 153, .12), transparent 32%);
}

.desktop-flow-panel-approval .desktop-flow-panel-number {
    color: #f0abfc;
    background: linear-gradient(180deg, rgba(168, 85, 247, .26), rgba(88, 28, 135, .24));
    box-shadow: inset 0 0 0 1px rgba(216, 180, 254, .34), 0 0 28px rgba(168, 85, 247, .18);
}

.desktop-flow-panel-approval .desktop-flow-panel-kicker,
.desktop-flow-panel-approval .desktop-flow-field span {
    color: #f0abfc;
}

.desktop-flow-panel-billing {
    background:
        linear-gradient(180deg, rgba(15, 23, 42, .91), rgba(2, 8, 23, .82)),
        radial-gradient(circle at 12% 0%, rgba(249, 115, 22, .22), transparent 34%),
        radial-gradient(circle at 88% 18%, rgba(14, 165, 233, .12), transparent 32%);
}

.desktop-flow-panel-billing .desktop-flow-panel-number {
    color: #fdba74;
    background: linear-gradient(180deg, rgba(249, 115, 22, .25), rgba(124, 45, 18, .24));
    box-shadow: inset 0 0 0 1px rgba(251, 146, 60, .34), 0 0 28px rgba(249, 115, 22, .18);
}

.desktop-flow-panel-billing .desktop-flow-panel-kicker,
.desktop-flow-panel-billing .desktop-flow-field span {
    color: #fdba74;
}

.desktop-workflow-summary-grid,
.desktop-billing-summary-grid,
.desktop-approval-form-grid,
.desktop-billing-form-grid {
    margin-top: 24px;
    display: grid;
    gap: 14px;
}

.desktop-workflow-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.desktop-billing-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.desktop-approval-form-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.desktop-billing-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.desktop-workflow-summary-card {
    min-width: 0;
    min-height: 104px;
    padding: 16px;
    display: grid;
    align-content: center;
    gap: 8px;
    border: 1px solid rgba(148, 163, 184, .16);
    border-radius: 18px;
    background:
        linear-gradient(145deg, rgba(15, 23, 42, .82), rgba(2, 8, 23, .66)),
        radial-gradient(circle at 8% 0%, rgba(56, 189, 248, .12), transparent 44%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .035), 0 18px 42px rgba(0, 0, 0, .20);
}

.desktop-workflow-summary-card span {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.desktop-workflow-summary-card strong {
    overflow: hidden;
    color: #f8fafc;
    font-size: 20px;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.desktop-billing-summary-grid .desktop-workflow-summary-card:nth-child(3) strong,
.desktop-billing-summary-grid .desktop-workflow-summary-card:nth-child(4) strong {
    color: #fb923c;
}

.desktop-approval-actions,
.desktop-billing-actions {
    gap: 12px;
    flex-wrap: wrap;
}

@media (max-width: 980px) {
    .desktop-workflow-summary-grid,
    .desktop-billing-summary-grid,
    .desktop-approval-form-grid,
    .desktop-billing-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.desktop-ticket-panel-actions-card,
.desktop-ticket-preview-card {
    min-width: 0;
    border: 1px solid rgba(244, 114, 182, .16);
    border-radius: 20px;
    background: rgba(2, 8, 23, .50);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .03);
}

.desktop-ticket-panel-actions-card {
    padding: 18px;
}

.desktop-ticket-panel-summary {
    display: grid;
    gap: 12px;
}

.desktop-ticket-panel-summary div {
    min-width: 0;
    padding: 13px 14px;
    border: 1px solid rgba(148, 163, 184, .14);
    border-radius: 14px;
    background: rgba(15, 23, 42, .62);
}

.desktop-ticket-panel-summary span {
    display: block;
    color: #94a3b8;
    font-size: 10px;
    font-weight: 950;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.desktop-ticket-panel-summary strong {
    display: block;
    margin-top: 5px;
    overflow: hidden;
    color: #f8fafc;
    font-size: 15px;
    font-weight: 950;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.desktop-ticket-style-card {
    margin-top: 16px;
    padding: 14px;
    border: 1px solid rgba(56, 189, 248, .14);
    border-radius: 16px;
    background:
        radial-gradient(circle at 0% 0%, rgba(244, 114, 182, .12), transparent 42%),
        rgba(15, 23, 42, .48);
}

.desktop-ticket-color-card {
    margin-top: 14px;
    padding: 14px;
    border: 1px solid rgba(255, 102, 0, .16);
    border-radius: 16px;
    background:
        radial-gradient(circle at 0% 0%, rgba(255, 102, 0, .12), transparent 42%),
        rgba(15, 23, 42, .48);
}

.desktop-ticket-style-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.desktop-ticket-style-head strong {
    color: #f8fafc;
    font-size: 13px;
    font-weight: 950;
}

.desktop-ticket-style-head span {
    max-width: 210px;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.35;
    text-align: right;
}

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

.desktop-ticket-style-option {
    min-width: 0;
    min-height: 54px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid rgba(148, 163, 184, .16);
    border-radius: 14px;
    background: rgba(2, 8, 23, .56);
    color: #e2e8f0;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .025);
    cursor: pointer;
}

.desktop-ticket-style-option.is-selected {
    border-color: rgba(255, 102, 0, .66);
    background:
        linear-gradient(135deg, rgba(255, 102, 0, .20), rgba(14, 165, 233, .12)),
        rgba(2, 8, 23, .72);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05), 0 0 26px rgba(255, 102, 0, .14);
}

.desktop-ticket-style-swatch {
    width: 28px;
    height: 34px;
    flex: 0 0 28px;
    border-radius: 7px;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .45), 0 10px 18px rgba(0, 0, 0, .24);
}

.desktop-ticket-style-swatch.is-classic {
    background: linear-gradient(180deg, #ffffff 0 62%, #0b3c5d 62% 100%);
}

.desktop-ticket-style-swatch.is-modern {
    background: linear-gradient(135deg, #f8fafc 0 58%, #38bdf8 58% 76%, #ff6600 76% 100%);
}

.desktop-ticket-style-swatch.is-clean {
    background: linear-gradient(180deg, #ffffff 0 72%, #111827 72% 100%);
}

.desktop-ticket-style-swatch.is-premium {
    background: linear-gradient(135deg, #fff7ed 0 45%, #020617 45% 75%, #f97316 75% 100%);
}

.desktop-ticket-style-option strong {
    overflow: hidden;
    color: inherit;
    font-size: 12px;
    font-weight: 950;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.desktop-ticket-color-palette {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 8px;
}

.desktop-ticket-color-swatch {
    width: 100%;
    aspect-ratio: 1;
    min-height: 30px;
    border: 2px solid rgba(255, 255, 255, .86);
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .22), 0 10px 18px rgba(0, 0, 0, .22);
}

.desktop-ticket-color-swatch.active {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .95), 0 0 0 6px rgba(255, 102, 0, .34), 0 16px 26px rgba(0, 0, 0, .28);
}

.desktop-ticket-custom-color-row {
    margin-top: 12px;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.desktop-ticket-custom-color-row input[type="color"] {
    width: 54px;
    height: 42px;
    padding: 4px;
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 12px;
    background: rgba(2, 8, 23, .58);
}

.desktop-ticket-custom-color-row span {
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 850;
}

.desktop-ticket-action-grid {
    margin-top: 16px;
    display: grid;
    gap: 10px;
}

.desktop-ticket-action-btn {
    width: 100%;
    min-height: 58px;
    margin: 0 !important;
    padding: 0 16px !important;
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    border: 1px solid rgba(56, 189, 248, .24) !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, rgba(14, 165, 233, .18), rgba(37, 99, 235, .12)) !important;
    color: #ffffff !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .035), 0 14px 26px rgba(0, 0, 0, .20) !important;
}

.desktop-ticket-action-btn span {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #bae6fd;
    font-size: 13px;
    font-weight: 950;
    background: rgba(14, 165, 233, .18);
    box-shadow: inset 0 0 0 1px rgba(56, 189, 248, .22);
}

.desktop-ticket-action-btn span svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.desktop-ticket-action-btn strong {
    font-size: 14px;
    font-weight: 950;
}

.desktop-ticket-action-btn.is-spanish {
    border-color: rgba(244, 114, 182, .30) !important;
    background: linear-gradient(135deg, rgba(236, 72, 153, .24), rgba(124, 58, 237, .12)) !important;
}

.desktop-ticket-action-btn.is-spanish span {
    color: #fce7f3;
    background: rgba(236, 72, 153, .20);
    box-shadow: inset 0 0 0 1px rgba(244, 114, 182, .25);
}

.desktop-ticket-action-btn:hover,
.desktop-ticket-action-btn:focus-visible {
    transform: translateY(-1px);
    filter: brightness(1.08);
    outline: none;
}

.desktop-ticket-preview-card {
    padding: 16px;
}

.desktop-ticket-preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.desktop-ticket-preview-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
}

.desktop-ticket-preview-head strong {
    color: #f8fafc;
    font-size: 15px;
    font-weight: 950;
}

.desktop-ticket-preview-status {
    padding: 5px 10px;
    border: 1px solid rgba(34, 197, 94, .22);
    border-radius: 999px;
    color: #86efac;
    font-size: 11px;
    font-weight: 900;
    background: rgba(34, 197, 94, .12);
}

.desktop-ticket-fullscreen-btn,
.desktop-ticket-fullscreen-close {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(56, 189, 248, .28);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(14, 165, 233, .22), rgba(255, 102, 0, .16));
    color: #f8fafc;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04), 0 12px 28px rgba(0, 0, 0, .24);
    cursor: pointer;
}

.desktop-ticket-fullscreen-btn {
    padding: 0 12px;
}

.desktop-ticket-fullscreen-btn span,
.desktop-ticket-fullscreen-close span {
    width: 18px;
    height: 18px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 18px;
}

.desktop-ticket-fullscreen-btn svg,
.desktop-ticket-fullscreen-close svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.desktop-ticket-fullscreen-btn strong,
.desktop-ticket-fullscreen-close strong {
    color: inherit;
    font-size: 12px;
    font-weight: 950;
    white-space: nowrap;
}

.desktop-ticket-preview-frame {
    min-height: 520px;
    max-height: 620px;
    overflow: auto;
    display: grid;
    place-items: start center;
    padding: 14px;
    border: 1px solid rgba(56, 189, 248, .14);
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, .78), rgba(2, 8, 23, .86)),
        radial-gradient(circle at 50% 0%, rgba(56, 189, 248, .10), transparent 48%);
}

.desktop-ticket-preview-frame img {
    width: min(100%, 360px);
    height: auto;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .34);
}

.desktop-ticket-preview-empty {
    align-self: center;
    justify-self: center;
    max-width: 280px;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.45;
    text-align: center;
}

.desktop-ticket-fullscreen {
    position: fixed;
    inset: 0;
    z-index: 240;
    display: none;
    grid-template-rows: auto minmax(0, 1fr);
    padding: 18px;
    background:
        radial-gradient(circle at 18% 0%, rgba(14, 165, 233, .18), transparent 38%),
        radial-gradient(circle at 88% 8%, rgba(255, 102, 0, .16), transparent 34%),
        rgba(2, 6, 23, .96);
    backdrop-filter: blur(18px);
}

body.desktop-ticket-fullscreen-open {
    overflow: hidden;
}

body.desktop-ticket-fullscreen-open .desktop-ticket-fullscreen {
    display: grid;
}

.desktop-ticket-fullscreen-top {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    border: 1px solid rgba(56, 189, 248, .18);
    border-radius: 18px;
    background: rgba(15, 23, 42, .82);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .32), inset 0 0 0 1px rgba(255, 255, 255, .04);
}

.desktop-ticket-fullscreen-top div {
    min-width: 0;
}

.desktop-ticket-fullscreen-top span {
    display: block;
    color: #38bdf8;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.desktop-ticket-fullscreen-top strong {
    display: block;
    max-width: 58vw;
    overflow: hidden;
    color: #f8fafc;
    font-size: 18px;
    font-weight: 950;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.desktop-ticket-fullscreen-close {
    padding: 0 14px;
    border-color: rgba(248, 113, 113, .28);
    background: linear-gradient(135deg, rgba(239, 68, 68, .20), rgba(255, 102, 0, .16));
}

.desktop-ticket-fullscreen-body {
    min-height: 0;
    overflow: auto;
    display: grid;
    place-items: start center;
    padding: 18px 4px 34px;
}

.desktop-ticket-fullscreen-body img {
    width: min(96vw, 980px);
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 26px 90px rgba(0, 0, 0, .52), 0 0 0 1px rgba(255, 255, 255, .12);
}

@media (max-width: 1180px) {
    .desktop-ticket-panel-layout {
        grid-template-columns: 1fr;
    }
}

.desktop-delivery-panel-grid {
    margin-top: 28px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, .85fr) 210px;
    gap: 18px;
    align-items: stretch;
}

.desktop-delivery-main-card,
.desktop-delivery-rate-card,
.desktop-delivery-total-card {
    min-width: 0;
    padding: 18px;
    border: 1px solid rgba(34, 211, 238, .16);
    border-radius: 20px;
    background: rgba(2, 8, 23, .48);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .03);
}

.desktop-delivery-main-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.desktop-delivery-rate-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.desktop-delivery-total-card {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 8px;
    text-align: center;
    background:
        radial-gradient(circle at 50% 0%, rgba(34, 211, 238, .20), transparent 62%),
        rgba(2, 8, 23, .54);
}

.desktop-delivery-total-card span {
    color: #67e8f9;
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
}

.desktop-delivery-total-card strong {
    color: #f8fafc;
    font-size: 32px;
    font-weight: 950;
}

.desktop-delivery-total-card em {
    color: #bae6fd;
    font-size: 14px;
    font-style: normal;
    font-weight: 900;
}

.desktop-delivery-actions {
    gap: 12px;
}

.desktop-flow-panel-products {
    max-width: 1160px;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, .90), rgba(2, 8, 23, .80)),
        radial-gradient(circle at 12% 0%, rgba(250, 204, 21, .18), transparent 34%),
        radial-gradient(circle at 88% 18%, rgba(14, 165, 233, .14), transparent 32%);
}

.desktop-products-panel-grid {
    margin-top: 28px;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
    gap: 18px;
}

.desktop-product-search-card,
.desktop-product-side-card {
    min-width: 0;
    padding: 18px;
    border: 1px solid rgba(250, 204, 21, .16);
    border-radius: 18px;
    background: rgba(2, 8, 23, .46);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .03);
}

.desktop-product-results {
    margin-top: 16px;
    display: grid;
    gap: 10px;
}

.desktop-product-result-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 92px 42px;
    gap: 8px;
    align-items: stretch;
}

.desktop-product-result-btn {
    width: 100%;
    min-height: 58px !important;
    margin: 0 !important;
    padding: 12px 14px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    border: 1px solid rgba(250, 204, 21, .18) !important;
    border-radius: 13px !important;
    background: linear-gradient(180deg, rgba(15, 23, 42, .78), rgba(2, 8, 23, .62)) !important;
    color: #f8fafc !important;
    text-align: left;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .025) !important;
}

.desktop-product-catalog-delete-btn {
    width: 42px !important;
    min-width: 42px !important;
    min-height: 58px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-grid !important;
    place-items: center;
    border: 1px solid rgba(249, 115, 22, .24) !important;
    border-radius: 13px !important;
    background: linear-gradient(180deg, rgba(127, 29, 29, .34), rgba(2, 8, 23, .62)) !important;
    color: #fed7aa !important;
    font-size: 14px !important;
    font-weight: 950 !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .025) !important;
}

.desktop-product-stock-box {
    min-height: 58px;
    padding: 8px 10px;
    display: grid;
    gap: 5px;
    align-content: center;
    border: 1px solid rgba(14, 165, 233, .20);
    border-radius: 13px;
    background: linear-gradient(180deg, rgba(15, 23, 42, .76), rgba(2, 8, 23, .58));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .025);
}

.desktop-product-stock-box span {
    color: #7dd3fc;
    font-size: 10px;
    font-weight: 950;
    line-height: 1;
    text-transform: uppercase;
}

.desktop-product-stock-box input {
    width: 100%;
    min-height: 25px;
    padding: 4px 6px;
    border: 1px solid rgba(125, 211, 252, .24);
    border-radius: 8px;
    background: rgba(2, 8, 23, .72);
    color: #f8fafc;
    font-size: 13px;
    font-weight: 900;
    text-align: center;
}

.desktop-product-stock-box input:focus {
    outline: none;
    border-color: rgba(56, 189, 248, .68);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, .14);
}

.desktop-product-catalog-delete-btn:hover,
.desktop-product-catalog-delete-btn:focus-visible {
    border-color: rgba(249, 115, 22, .55) !important;
    color: #fff7ed !important;
    box-shadow: 0 12px 24px rgba(249, 115, 22, .12), inset 0 0 0 1px rgba(249, 115, 22, .12) !important;
}

.desktop-product-result-btn:hover,
.desktop-product-result-btn:focus-visible {
    border-color: rgba(250, 204, 21, .45) !important;
    transform: translateY(-1px);
    box-shadow: inset 0 0 0 1px rgba(250, 204, 21, .10), 0 14px 30px rgba(250, 204, 21, .08) !important;
}

.desktop-product-result-btn strong,
.desktop-product-result-btn em {
    display: block;
}

.desktop-product-result-btn strong {
    overflow: hidden;
    text-overflow: ellipsis;
    color: #f8fafc;
    font-size: 14px;
    font-weight: 950;
    white-space: nowrap;
}

.desktop-product-result-btn em {
    margin-top: 3px;
    color: #94a3b8;
    font-size: 12px;
    font-style: normal;
}

.desktop-product-result-price {
    color: #facc15;
    font-size: 15px;
    font-weight: 950;
    white-space: nowrap;
}

.desktop-product-empty {
    padding: 16px;
    border: 1px dashed rgba(148, 163, 184, .24);
    border-radius: 14px;
    color: #cbd5e1;
    font-size: 13px;
    line-height: 1.45;
}

.desktop-product-side-card {
    display: grid;
    align-content: start;
    gap: 14px;
}

.desktop-product-summary {
    padding: 18px;
    border: 1px solid rgba(56, 189, 248, .16);
    border-radius: 16px;
    background: rgba(15, 23, 42, .62);
}

.desktop-product-summary span,
.desktop-product-summary em {
    display: block;
    color: #94a3b8;
    font-style: normal;
    font-weight: 800;
}

.desktop-product-summary strong {
    display: block;
    margin-top: 7px;
    color: #f8fafc;
    font-size: 32px;
    line-height: 1;
}

.desktop-product-summary em {
    margin-top: 6px;
    color: #facc15;
    font-size: 18px;
    font-weight: 950;
}

.desktop-product-document-list {
    display: grid;
    max-height: 238px;
    overflow: auto;
    gap: 10px;
    padding-right: 3px;
}

.desktop-product-doc-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(56, 189, 248, .16);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(15, 23, 42, .74), rgba(2, 8, 23, .56));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .025);
}

.desktop-product-doc-info {
    min-width: 0;
}

.desktop-product-doc-info strong,
.desktop-product-doc-info span {
    display: block;
}

.desktop-product-doc-info strong {
    overflow: hidden;
    text-overflow: ellipsis;
    color: #f8fafc;
    font-size: 13px;
    font-weight: 950;
    white-space: nowrap;
}

.desktop-product-doc-info span {
    margin-top: 4px;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 800;
}

.desktop-product-doc-controls {
    display: grid;
    grid-auto-flow: column;
    gap: 6px;
    align-items: center;
}

.desktop-product-qty-btn,
.desktop-product-remove-doc-btn {
    width: 30px !important;
    min-width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    line-height: 1 !important;
    font-weight: 950 !important;
    display: inline-grid !important;
    place-items: center;
}

.desktop-product-qty-btn {
    border: 1px solid rgba(56, 189, 248, .28) !important;
    background: rgba(14, 165, 233, .14) !important;
    color: #bae6fd !important;
}

.desktop-product-remove-doc-btn {
    border: 1px solid rgba(249, 115, 22, .34) !important;
    background: rgba(249, 115, 22, .16) !important;
    color: #fed7aa !important;
}

.desktop-product-doc-qty {
    min-width: 24px;
    color: #f8fafc;
    font-size: 13px;
    font-weight: 950;
    text-align: center;
}

.desktop-product-doc-empty {
    padding: 14px;
    border: 1px dashed rgba(56, 189, 248, .24);
    border-radius: 14px;
    color: #cbd5e1;
    font-size: 12px;
    line-height: 1.45;
}

.desktop-product-add-toggle {
    min-height: 48px !important;
    margin: 0 !important;
    border: 1px solid rgba(250, 204, 21, .28) !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, rgba(250, 204, 21, .18), rgba(249, 115, 22, .22)) !important;
    color: #fef9c3 !important;
    font-size: 13px !important;
    font-weight: 950 !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .035) !important;
}

.desktop-product-new-form {
    display: none;
    gap: 12px;
}

.desktop-product-new-form.is-open {
    display: grid;
}

.desktop-product-save-btn {
    width: 100% !important;
    min-width: 0 !important;
    grid-column: 1 / -1;
}

.desktop-flow-panel-product-database {
    max-width: 1280px;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, .91), rgba(2, 8, 23, .82)),
        radial-gradient(circle at 12% 0%, rgba(34, 211, 238, .18), transparent 34%),
        radial-gradient(circle at 88% 18%, rgba(250, 204, 21, .12), transparent 32%);
}

.desktop-flow-panel-product-database .desktop-flow-panel-number {
    color: #67e8f9;
    background: linear-gradient(180deg, rgba(34, 211, 238, .22), rgba(14, 116, 144, .18));
    box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .34), 0 0 28px rgba(34, 211, 238, .16);
}

.desktop-flow-panel-product-database .desktop-flow-field span,
.desktop-flow-panel-product-database .desktop-flow-panel-kicker {
    color: #67e8f9;
}

.desktop-product-db-stats {
    margin-top: 26px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.desktop-product-db-stats div,
.desktop-product-db-list-card,
.desktop-product-db-add-card {
    min-width: 0;
    border: 1px solid rgba(34, 211, 238, .16);
    border-radius: 18px;
    background: rgba(2, 8, 23, .48);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .03);
}

.desktop-product-db-stats div {
    padding: 16px;
}

.desktop-product-db-stats span {
    display: block;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
}

.desktop-product-db-stats strong {
    display: block;
    margin-top: 8px;
    color: #f8fafc;
    font-size: 28px;
    line-height: 1;
}

.desktop-product-db-toolbar {
    margin-top: 18px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 160px;
    gap: 12px;
    align-items: end;
}

.desktop-product-db-refresh-btn {
    min-height: 50px !important;
}

.desktop-product-db-layout {
    margin-top: 18px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 18px;
    align-items: start;
}

.desktop-product-db-list-card,
.desktop-product-db-add-card {
    padding: 16px;
}

.desktop-product-db-list {
    display: grid;
    gap: 10px;
    max-height: 470px;
    overflow: auto;
    padding-right: 4px;
}

.desktop-product-db-row {
    display: grid;
    grid-template-columns: minmax(190px, 1fr) 128px 104px 42px;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(56, 189, 248, .16);
    border-radius: 15px;
    background: linear-gradient(180deg, rgba(15, 23, 42, .76), rgba(2, 8, 23, .58));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .025);
}

.desktop-product-db-main {
    min-width: 0;
}

.desktop-product-db-main strong,
.desktop-product-db-main span {
    display: block;
}

.desktop-product-db-main strong {
    overflow: hidden;
    color: #f8fafc;
    font-size: 14px;
    font-weight: 950;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.desktop-product-db-main span {
    margin-top: 4px;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 800;
}

.desktop-product-db-edit-field {
    display: grid;
    gap: 5px;
}

.desktop-product-db-edit-field span {
    color: #7dd3fc;
    font-size: 10px;
    font-weight: 950;
    line-height: 1;
    text-transform: uppercase;
}

.desktop-product-db-edit-field input {
    width: 100%;
    min-height: 34px;
    padding: 6px 8px;
    border: 1px solid rgba(125, 211, 252, .22);
    border-radius: 10px;
    background: rgba(2, 8, 23, .74);
    color: #f8fafc;
    font-size: 13px;
    font-weight: 900;
}

.desktop-product-db-edit-field input:focus {
    outline: none;
    border-color: rgba(56, 189, 248, .68);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, .14);
}

.desktop-product-db-delete-btn {
    width: 42px !important;
    min-width: 42px !important;
    min-height: 58px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: grid !important;
    place-items: center;
    border: 1px solid rgba(249, 115, 22, .24) !important;
    border-radius: 13px !important;
    background: linear-gradient(180deg, rgba(127, 29, 29, .34), rgba(2, 8, 23, .62)) !important;
    color: #fed7aa !important;
    font-size: 14px !important;
    font-weight: 950 !important;
}

.desktop-product-db-delete-btn:hover,
.desktop-product-db-delete-btn:focus-visible {
    border-color: rgba(249, 115, 22, .55) !important;
    color: #fff7ed !important;
    box-shadow: 0 12px 24px rgba(249, 115, 22, .12), inset 0 0 0 1px rgba(249, 115, 22, .12) !important;
}

.desktop-product-db-add-card {
    display: grid;
    gap: 12px;
}

.desktop-product-db-add-card h3 {
    margin: 0 0 4px;
    color: #f8fafc;
    font-size: 17px;
    line-height: 1.2;
}

.desktop-product-db-save-btn {
    width: 100% !important;
}

.desktop-flow-panel-invoice-database {
    max-width: 1280px;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, .91), rgba(2, 8, 23, .82)),
        radial-gradient(circle at 12% 0%, rgba(249, 115, 22, .18), transparent 34%),
        radial-gradient(circle at 88% 18%, rgba(56, 189, 248, .14), transparent 32%);
}

.desktop-flow-panel-estimate-database {
    max-width: 1280px;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, .92), rgba(2, 8, 23, .84)),
        radial-gradient(circle at 12% 0%, rgba(14, 165, 233, .20), transparent 34%),
        radial-gradient(circle at 88% 18%, rgba(34, 197, 94, .12), transparent 32%);
}

.desktop-flow-panel-invoice-database .desktop-flow-panel-number {
    color: #fed7aa;
    background: linear-gradient(180deg, rgba(249, 115, 22, .24), rgba(124, 45, 18, .20));
    box-shadow: inset 0 0 0 1px rgba(251, 146, 60, .34), 0 0 28px rgba(249, 115, 22, .16);
}

.desktop-flow-panel-estimate-database .desktop-flow-panel-number {
    color: #bae6fd;
    background: linear-gradient(180deg, rgba(14, 165, 233, .24), rgba(8, 47, 73, .22));
    box-shadow: inset 0 0 0 1px rgba(56, 189, 248, .34), 0 0 28px rgba(14, 165, 233, .18);
}

.desktop-flow-panel-invoice-database .desktop-flow-field span,
.desktop-flow-panel-invoice-database .desktop-flow-panel-kicker {
    color: #fdba74;
}

.desktop-flow-panel-estimate-database .desktop-flow-field span,
.desktop-flow-panel-estimate-database .desktop-flow-panel-kicker {
    color: #7dd3fc;
}

.desktop-invoice-db-stats {
    margin-top: 26px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.desktop-invoice-db-stats div,
.desktop-invoice-db-list-card {
    min-width: 0;
    border: 1px solid rgba(251, 146, 60, .16);
    border-radius: 18px;
    background: rgba(2, 8, 23, .48);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .03);
}

.desktop-estimate-db-stats div,
.desktop-estimate-db-list-card {
    border-color: rgba(56, 189, 248, .18);
}

.desktop-invoice-db-stats div {
    padding: 16px;
}

.desktop-invoice-db-stats span {
    display: block;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
}

.desktop-invoice-db-stats strong {
    display: block;
    margin-top: 8px;
    color: #f8fafc;
    font-size: 26px;
    line-height: 1;
}

.desktop-invoice-db-toolbar {
    margin-top: 18px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 160px;
    gap: 12px;
    align-items: end;
}

.desktop-invoice-db-refresh-btn {
    min-height: 50px !important;
}

.desktop-invoice-db-list-card {
    margin-top: 18px;
    padding: 16px;
}

.desktop-invoice-db-list {
    display: grid;
    gap: 10px;
    max-height: 500px;
    overflow: auto;
    padding-right: 4px;
}

.desktop-invoice-db-row {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(360px, .9fr) 142px;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(251, 146, 60, .16);
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, .78), rgba(2, 8, 23, .62)),
        radial-gradient(circle at 0% 0%, rgba(249, 115, 22, .12), transparent 40%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .025);
}

.desktop-invoice-db-main {
    min-width: 0;
    display: grid;
    gap: 6px;
}

.desktop-invoice-db-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.desktop-invoice-db-head strong {
    min-width: 0;
    overflow: hidden;
    color: #f8fafc;
    font-size: 16px;
    font-weight: 950;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.desktop-invoice-db-head span {
    flex: 0 0 auto;
    padding: 4px 8px;
    border: 1px solid rgba(56, 189, 248, .22);
    border-radius: 999px;
    color: #bae6fd;
    background: rgba(14, 165, 233, .12);
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
}

.desktop-invoice-db-main em,
.desktop-invoice-db-main small {
    min-width: 0;
    overflow: hidden;
    color: #cbd5e1;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.desktop-invoice-db-main em {
    font-size: 14px;
    font-weight: 900;
}

.desktop-invoice-db-main small {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 750;
}

.desktop-invoice-db-amounts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.desktop-invoice-db-amounts span {
    min-width: 0;
    display: grid;
    gap: 3px;
    padding: 10px 9px;
    border: 1px solid rgba(148, 215, 255, .12);
    border-radius: 12px;
    background: rgba(2, 8, 23, .42);
}

.desktop-invoice-db-amounts small {
    color: #93a4b8;
    font-size: 9px;
    font-weight: 950;
    text-transform: uppercase;
}

.desktop-invoice-db-amounts strong {
    overflow: hidden;
    color: #f8fafc;
    font-size: 13px;
    font-weight: 950;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.desktop-invoice-db-amounts .is-collected strong {
    color: #22c55e;
}

.desktop-invoice-db-amounts .is-pending strong {
    color: #fb7185;
}

.desktop-invoice-db-actions {
    display: grid;
    gap: 8px;
}

.desktop-invoice-db-edit-btn,
.desktop-invoice-db-delete-btn {
    min-height: 38px;
    padding: 0 12px;
    border-radius: 11px;
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 950;
    cursor: pointer;
}

.desktop-invoice-db-edit-btn {
    border: 1px solid rgba(14, 165, 233, .40) !important;
    background: linear-gradient(135deg, #0ea5e9, #2563eb) !important;
}

.desktop-invoice-db-delete-btn {
    border: 1px solid rgba(248, 113, 113, .34) !important;
    background: rgba(220, 38, 38, .88) !important;
}

.desktop-invoice-db-edit-btn:hover,
.desktop-invoice-db-edit-btn:focus-visible,
.desktop-invoice-db-delete-btn:hover,
.desktop-invoice-db-delete-btn:focus-visible {
    filter: brightness(1.08);
    outline: none;
}

.desktop-flow-panel-customer-database {
    max-width: 1280px;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, .91), rgba(2, 8, 23, .82)),
        radial-gradient(circle at 14% 0%, rgba(34, 197, 94, .18), transparent 34%),
        radial-gradient(circle at 88% 18%, rgba(34, 211, 238, .12), transparent 32%);
}

.desktop-flow-panel-customer-database .desktop-flow-panel-number {
    color: #86efac;
    background: linear-gradient(180deg, rgba(34, 197, 94, .22), rgba(20, 184, 166, .18));
    box-shadow: inset 0 0 0 1px rgba(74, 222, 128, .34), 0 0 28px rgba(34, 197, 94, .16);
}

.desktop-flow-panel-customer-database .desktop-flow-field span,
.desktop-flow-panel-customer-database .desktop-flow-panel-kicker {
    color: #86efac;
}

.desktop-customer-db-stats {
    margin-top: 26px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.desktop-customer-db-stats div,
.desktop-customer-db-list-card,
.desktop-customer-db-add-card {
    min-width: 0;
    border: 1px solid rgba(34, 197, 94, .16);
    border-radius: 18px;
    background: rgba(2, 8, 23, .48);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .03);
}

.desktop-customer-db-stats div {
    padding: 16px;
}

.desktop-customer-db-stats span {
    display: block;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
}

.desktop-customer-db-stats strong {
    display: block;
    margin-top: 8px;
    color: #f8fafc;
    font-size: 28px;
    line-height: 1;
}

.desktop-customer-db-document-type {
    margin-top: 18px;
    padding: 14px;
    border: 1px solid rgba(34, 197, 94, .16);
    border-radius: 18px;
    background: rgba(2, 8, 23, .42);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .03);
}

.desktop-customer-db-document-label {
    display: block;
    margin-bottom: 10px;
    color: #86efac;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
}

.desktop-customer-db-document-buttons {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.desktop-customer-db-type-btn {
    min-height: 44px !important;
    margin: 0 !important;
    padding: 0 12px !important;
    border: 1px solid rgba(148, 163, 184, .20) !important;
    border-radius: 14px !important;
    background: linear-gradient(180deg, rgba(15, 23, 42, .82), rgba(2, 8, 23, .62)) !important;
    color: #cbd5e1 !important;
    font-size: 12px !important;
    font-weight: 950 !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .03) !important;
}

.desktop-customer-db-type-btn.is-active {
    border-color: rgba(249, 115, 22, .62) !important;
    background:
        linear-gradient(135deg, rgba(14, 165, 233, .34), rgba(249, 115, 22, .72)) !important;
    color: #fff7ed !important;
    box-shadow: 0 12px 26px rgba(249, 115, 22, .14), inset 0 0 0 1px rgba(255, 255, 255, .08) !important;
}

.desktop-customer-db-toolbar {
    margin-top: 18px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 160px;
    gap: 12px;
    align-items: end;
}

.desktop-customer-db-refresh-btn {
    min-height: 50px !important;
}

.desktop-customer-db-layout {
    margin-top: 18px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 18px;
    align-items: start;
}

.desktop-customer-db-list-card,
.desktop-customer-db-add-card {
    padding: 16px;
}

.desktop-customer-db-list {
    display: grid;
    gap: 10px;
    max-height: 470px;
    overflow: auto;
    padding-right: 4px;
}

.desktop-customer-db-row {
    display: grid;
    grid-template-columns: minmax(210px, 1fr) 150px 112px 42px;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(74, 222, 128, .16);
    border-radius: 15px;
    background: linear-gradient(180deg, rgba(15, 23, 42, .76), rgba(2, 8, 23, .58));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .025);
}

.desktop-customer-db-main {
    min-width: 0;
}

.desktop-customer-db-main strong,
.desktop-customer-db-main span,
.desktop-customer-db-main em {
    display: block;
}

.desktop-customer-db-main strong {
    overflow: hidden;
    color: #f8fafc;
    font-size: 14px;
    font-weight: 950;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.desktop-customer-db-main span,
.desktop-customer-db-main em {
    margin-top: 4px;
    overflow: hidden;
    color: #94a3b8;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.desktop-customer-db-phone {
    color: #bbf7d0;
    font-size: 13px;
    font-weight: 950;
}

.desktop-customer-db-use-btn,
.desktop-customer-db-delete-btn {
    min-height: 42px !important;
    margin: 0 !important;
    padding: 0 12px !important;
    border-radius: 13px !important;
    font-size: 12px !important;
    font-weight: 950 !important;
}

.desktop-customer-db-use-btn {
    border: 1px solid rgba(34, 197, 94, .28) !important;
    background: linear-gradient(180deg, rgba(22, 163, 74, .34), rgba(2, 8, 23, .62)) !important;
    color: #dcfce7 !important;
}

.desktop-customer-db-delete-btn {
    width: 42px !important;
    min-width: 42px !important;
    padding: 0 !important;
    display: grid !important;
    place-items: center;
    border: 1px solid rgba(249, 115, 22, .24) !important;
    background: linear-gradient(180deg, rgba(127, 29, 29, .34), rgba(2, 8, 23, .62)) !important;
    color: #fed7aa !important;
}

.desktop-customer-db-use-btn:hover,
.desktop-customer-db-use-btn:focus-visible {
    border-color: rgba(34, 197, 94, .55) !important;
    color: #f0fdf4 !important;
    box-shadow: 0 12px 24px rgba(34, 197, 94, .12), inset 0 0 0 1px rgba(34, 197, 94, .12) !important;
}

.desktop-customer-db-delete-btn:hover,
.desktop-customer-db-delete-btn:focus-visible {
    border-color: rgba(249, 115, 22, .55) !important;
    color: #fff7ed !important;
    box-shadow: 0 12px 24px rgba(249, 115, 22, .12), inset 0 0 0 1px rgba(249, 115, 22, .12) !important;
}

.desktop-customer-db-add-card {
    display: grid;
    gap: 12px;
}

.desktop-customer-db-add-card h3 {
    margin: 0 0 4px;
    color: #f8fafc;
    font-size: 17px;
    line-height: 1.2;
}

.desktop-customer-db-save-btn {
    width: 100% !important;
}

.desktop-flow-panel-personalization {
    max-width: 1020px;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, .92), rgba(2, 8, 23, .84)),
        radial-gradient(circle at 16% 0%, rgba(249, 115, 22, .16), transparent 32%),
        radial-gradient(circle at 84% 18%, rgba(56, 189, 248, .16), transparent 34%);
}

.desktop-flow-panel-personalization .desktop-flow-panel-number {
    color: #fed7aa;
    background: linear-gradient(180deg, rgba(249, 115, 22, .25), rgba(14, 165, 233, .16));
    box-shadow: inset 0 0 0 1px rgba(249, 115, 22, .32), 0 0 28px rgba(249, 115, 22, .14);
}

.desktop-flow-panel-personalization .desktop-flow-panel-kicker {
    color: #fdba74;
}

.desktop-personalization-grid {
    margin-top: 28px;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
    gap: 18px;
    align-items: stretch;
}

.desktop-personalization-card {
    min-width: 0;
    padding: 18px;
    border: 1px solid rgba(56, 189, 248, .16);
    border-radius: 20px;
    background: rgba(2, 8, 23, .48);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .03);
}

.desktop-personalization-section-label,
.desktop-personalization-custom-label {
    display: block;
    margin-bottom: 14px;
    color: #fdba74;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
}

.desktop-flow-bg-palette {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.desktop-flow-bg-swatch {
    min-height: 82px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .18) !important;
    border-radius: 18px !important;
    background: var(--swatch-bg, #020617) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05), 0 16px 34px rgba(0, 0, 0, .24) !important;
}

.desktop-flow-bg-swatch::after {
    content: "";
    width: 100%;
    height: 100%;
    display: block;
    background:
        radial-gradient(circle at 20% 12%, rgba(56, 189, 248, .30), transparent 42%),
        radial-gradient(circle at 80% 74%, rgba(249, 115, 22, .26), transparent 38%),
        linear-gradient(135deg, transparent, rgba(255, 255, 255, .10));
}

.desktop-flow-bg-swatch.is-active {
    border-color: rgba(249, 115, 22, .82) !important;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, .24), 0 18px 42px rgba(249, 115, 22, .16) !important;
}

.desktop-flow-bg-custom-row {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.desktop-flow-bg-custom-row input[type="color"] {
    width: 76px;
    height: 52px;
    padding: 4px;
    border: 1px solid rgba(56, 189, 248, .24);
    border-radius: 16px;
    background: rgba(2, 8, 23, .78);
}

.desktop-flow-bg-reset-btn {
    min-height: 52px !important;
}

.desktop-blueprint-viewport {
    position: relative;
    z-index: 2;
    min-width: 0;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(56, 189, 248, .46) rgba(15, 23, 42, .58);
}

.desktop-blueprint-viewport::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.desktop-blueprint-viewport::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, .58);
    border-radius: 999px;
}

.desktop-blueprint-viewport::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, rgba(14, 165, 233, .78), rgba(56, 189, 248, .48));
    border-radius: 999px;
    border: 2px solid rgba(15, 23, 42, .72);
}

.desktop-blueprint-board {
    position: relative;
    z-index: 2;
    min-width: 1740px;
    min-height: 720px;
    margin-top: 32px;
    padding-left: 24px;
    display: grid;
    grid-template-columns: repeat(5, 220px);
    column-gap: 84px;
    row-gap: 82px;
    align-items: start;
    transform-origin: top left;
    zoom: var(--desktop-flow-zoom, 1);
    isolation: isolate;
}

.desktop-blueprint-connectors {
    position: absolute;
    inset: 0 auto auto 0;
    width: 1490px;
    height: 720px;
    z-index: 0;
    pointer-events: none;
    overflow: visible;
}

.desktop-cable-glow path {
    fill: none;
    stroke: rgba(56, 189, 248, .34);
    stroke-width: 10;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: url(#desktopCableGlow);
}

.desktop-cable-lines path {
    fill: none;
    stroke: #67e8f9;
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    marker-end: url(#desktopCableArrow);
    filter: drop-shadow(0 0 8px rgba(56, 189, 248, .95));
}

.desktop-blueprint-connectors marker path {
    fill: #67e8f9;
    filter: drop-shadow(0 0 6px rgba(56, 189, 248, .95));
}

.desktop-cable-nodes circle {
    fill: #93c5fd;
    stroke: #38bdf8;
    stroke-width: 2;
    filter: drop-shadow(0 0 10px rgba(56, 189, 248, .95));
}

.desktop-blueprint-step-card {
    position: relative;
    z-index: 2;
    --step-accent: #38bdf8;
    --step-accent-soft: rgba(14, 165, 233, .16);
    --step-accent-mid: rgba(14, 165, 233, .34);
    --step-accent-strong: rgba(125, 211, 252, .95);
    --step-status-bg: linear-gradient(180deg, rgba(14, 165, 233, .24), rgba(37, 99, 235, .32));
    --step-status-color: #dbeafe;
    width: 210px !important;
    height: 312px !important;
    min-height: 312px !important;
    margin: 0 !important;
    padding: 24px 20px 76px !important;
    display: grid !important;
    justify-items: center;
    align-content: start;
    gap: 10px;
    overflow: visible;
    border: 1px solid transparent !important;
    border-radius: 0 !important;
    clip-path: polygon(15px 0, calc(100% - 15px) 0, 100% 15px, 100% calc(100% - 15px), calc(100% - 15px) 100%, 15px 100%, 0 calc(100% - 15px), 0 15px);
    background:
        linear-gradient(180deg, rgba(3, 19, 38, .96), rgba(2, 8, 23, .98)) padding-box,
        linear-gradient(135deg, var(--step-accent-strong), var(--step-accent-soft) 34%, var(--step-accent-mid) 70%, var(--step-accent)) border-box !important;
    color: #e0f2fe !important;
    text-align: center;
    box-shadow:
        inset 0 0 0 1px rgba(14, 165, 233, .22),
        inset 0 0 34px var(--step-accent-soft),
        0 0 0 1px var(--step-accent-soft),
        0 22px 48px rgba(0, 0, 0, .42),
        0 0 34px var(--step-accent-soft) !important;
}

.desktop-blueprint-step-card-green {
    --step-accent: #34d399;
    --step-accent-soft: rgba(16, 185, 129, .16);
    --step-accent-mid: rgba(20, 184, 166, .50);
    --step-accent-strong: rgba(94, 234, 212, .92);
    --step-status-bg: linear-gradient(180deg, rgba(22, 163, 74, .22), rgba(21, 128, 61, .36));
    --step-status-color: #dcfce7;
}

.desktop-blueprint-step-card-gold {
    --step-accent: #facc15;
    --step-accent-soft: rgba(234, 179, 8, .16);
    --step-accent-mid: rgba(234, 179, 8, .48);
    --step-accent-strong: rgba(253, 224, 71, .92);
    --step-status-bg: linear-gradient(180deg, rgba(234, 179, 8, .20), rgba(161, 98, 7, .34));
    --step-status-color: #fef9c3;
}

.desktop-blueprint-step-card-purple {
    --step-accent: #a855f7;
    --step-accent-soft: rgba(168, 85, 247, .16);
    --step-accent-mid: rgba(168, 85, 247, .48);
    --step-accent-strong: rgba(216, 180, 254, .92);
    --step-status-bg: linear-gradient(180deg, rgba(168, 85, 247, .20), rgba(88, 28, 135, .36));
    --step-status-color: #f3e8ff;
}

.desktop-blueprint-step-card-cyan {
    --step-accent: #22d3ee;
    --step-accent-soft: rgba(34, 211, 238, .16);
    --step-accent-mid: rgba(34, 211, 238, .50);
    --step-accent-strong: rgba(103, 232, 249, .92);
    --step-status-bg: linear-gradient(180deg, rgba(34, 211, 238, .18), rgba(8, 145, 178, .34));
    --step-status-color: #cffafe;
}

.desktop-blueprint-step-card-pink {
    --step-accent: #e879f9;
    --step-accent-soft: rgba(232, 121, 249, .16);
    --step-accent-mid: rgba(217, 70, 239, .48);
    --step-accent-strong: rgba(240, 171, 252, .92);
    --step-status-bg: linear-gradient(180deg, rgba(217, 70, 239, .18), rgba(131, 24, 67, .36));
    --step-status-color: #fce7f3;
}

.desktop-blueprint-step-card-orange {
    --step-accent: #f59e0b;
    --step-accent-soft: rgba(245, 158, 11, .16);
    --step-accent-mid: rgba(249, 115, 22, .48);
    --step-accent-strong: rgba(251, 191, 36, .94);
    --step-status-bg: linear-gradient(180deg, rgba(245, 158, 11, .20), rgba(154, 52, 18, .38));
    --step-status-color: #ffedd5;
}

.desktop-blueprint-step-card-approval {
    --step-accent: #84cc16;
    --step-accent-soft: rgba(132, 204, 22, .16);
    --step-accent-mid: rgba(101, 163, 13, .48);
    --step-accent-strong: rgba(190, 242, 100, .94);
    --step-status-bg: linear-gradient(180deg, rgba(132, 204, 22, .18), rgba(63, 98, 18, .36));
    --step-status-color: #ecfccb;
}

.desktop-blueprint-step-card-billing {
    --step-accent: #fb923c;
    --step-accent-soft: rgba(251, 146, 60, .17);
    --step-accent-mid: rgba(249, 115, 22, .50);
    --step-accent-strong: rgba(253, 186, 116, .94);
    --step-status-bg: linear-gradient(180deg, rgba(249, 115, 22, .20), rgba(124, 45, 18, .38));
    --step-status-color: #ffedd5;
}

.desktop-blueprint-step-card-sky {
    --step-accent: #60a5fa;
    --step-accent-soft: rgba(96, 165, 250, .16);
    --step-accent-mid: rgba(59, 130, 246, .50);
    --step-accent-strong: rgba(147, 197, 253, .94);
    --step-status-bg: linear-gradient(180deg, rgba(59, 130, 246, .20), rgba(30, 64, 175, .34));
    --step-status-color: #dbeafe;
}

.desktop-blueprint-step-card-sales {
    --step-accent: #22c55e;
    --step-accent-soft: rgba(34, 197, 94, .16);
    --step-accent-mid: rgba(16, 185, 129, .48);
    --step-accent-strong: rgba(134, 239, 172, .94);
    --step-status-bg: linear-gradient(180deg, rgba(34, 197, 94, .18), rgba(21, 128, 61, .36));
    --step-status-color: #dcfce7;
}

.desktop-blueprint-step-card-steel {
    --step-accent: #94a3b8;
    --step-accent-soft: rgba(148, 163, 184, .16);
    --step-accent-mid: rgba(148, 163, 184, .46);
    --step-accent-strong: rgba(203, 213, 225, .92);
    --step-status-bg: linear-gradient(180deg, rgba(148, 163, 184, .18), rgba(51, 65, 85, .38));
    --step-status-color: #e2e8f0;
}

.desktop-blueprint-floating-sales {
    position: absolute;
    top: 236px;
    left: 1510px;
    right: auto;
    width: 178px !important;
    height: 248px !important;
    min-height: 248px !important;
    padding: 20px 17px 62px !important;
    transform: none;
    z-index: 3;
}

.desktop-blueprint-step-card.desktop-blueprint-floating-sales:hover,
.desktop-blueprint-step-card.desktop-blueprint-floating-sales:focus-visible {
    transform: translateY(-2px);
}

.desktop-blueprint-floating-sales::after {
    display: none;
}

.desktop-blueprint-floating-sales .desktop-blueprint-step-number {
    top: 16px;
    left: 16px;
    width: 42px;
    height: 42px;
    font-size: 18px;
}

.desktop-blueprint-floating-sales .desktop-blueprint-step-icon {
    width: 58px;
    height: 58px;
    margin-top: 36px;
}

.desktop-blueprint-floating-sales .desktop-blueprint-step-icon svg {
    width: 54px;
    height: 54px;
}

.desktop-blueprint-floating-sales strong {
    font-size: 14px;
}

.desktop-blueprint-floating-sales .desktop-blueprint-step-copy {
    max-width: 128px;
    max-height: 54px;
    font-size: 12px;
}

.desktop-blueprint-floating-sales .desktop-blueprint-step-status {
    left: 24px;
    right: 24px;
    bottom: 20px;
    width: auto;
}

.desktop-blueprint-save-card {
    position: absolute;
    top: 510px;
    left: 1510px;
    z-index: 4;
    width: 178px;
    height: 168px;
    padding: 18px 16px 16px;
    display: grid;
    align-content: start;
    justify-items: center;
    gap: 8px;
    color: #dbeafe;
    border: 1px solid rgba(56, 189, 248, .28);
    clip-path: polygon(13px 0, calc(100% - 13px) 0, 100% 13px, 100% calc(100% - 13px), calc(100% - 13px) 100%, 13px 100%, 0 calc(100% - 13px), 0 13px);
    background:
        linear-gradient(180deg, rgba(8, 47, 73, .94), rgba(2, 8, 23, .98)) padding-box,
        linear-gradient(135deg, rgba(125, 211, 252, .95), rgba(14, 165, 233, .24), rgba(251, 146, 60, .86)) border-box;
    box-shadow:
        inset 0 0 28px rgba(14, 165, 233, .16),
        0 18px 42px rgba(0, 0, 0, .42),
        0 0 30px rgba(14, 165, 233, .16);
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease;
}

.desktop-blueprint-save-card:hover,
.desktop-blueprint-save-card:focus-visible {
    transform: translateY(-2px);
    box-shadow:
        inset 0 0 34px rgba(14, 165, 233, .22),
        0 22px 48px rgba(0, 0, 0, .46),
        0 0 38px rgba(251, 146, 60, .18);
}

.desktop-blueprint-save-card::before {
    content: "";
    position: absolute;
    inset: 6px;
    clip-path: inherit;
    pointer-events: none;
    border: 1px solid rgba(125, 211, 252, .26);
    background:
        linear-gradient(90deg, transparent 0 20%, rgba(125, 211, 252, .88) 20% 52%, transparent 52% 100%) top left / 100% 2px no-repeat,
        linear-gradient(90deg, transparent 0 48%, rgba(251, 146, 60, .72) 48% 82%, transparent 82% 100%) bottom left / 100% 2px no-repeat;
}

.desktop-blueprint-save-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: #38bdf8;
    filter: drop-shadow(0 0 12px rgba(56, 189, 248, .42));
}

.desktop-blueprint-save-icon svg {
    width: 42px;
    height: 42px;
    stroke: currentColor;
    stroke-width: 3.4;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.desktop-blueprint-save-card strong {
    color: #f8fafc;
    font-size: 13px;
    font-weight: 950;
    line-height: 1.1;
    text-align: center;
    text-shadow: 0 0 12px rgba(56, 189, 248, .24);
}

.desktop-save-document-copy {
    max-width: 138px;
    color: #cbd5e1;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
}

.desktop-save-document-status {
    width: 118px;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(251, 146, 60, .55);
    border-radius: 8px;
    color: #ffedd5;
    background: linear-gradient(180deg, rgba(249, 115, 22, .25), rgba(124, 45, 18, .36));
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
}

.desktop-blueprint-step-card::before {
    content: "";
    position: absolute;
    inset: 6px;
    pointer-events: none;
    clip-path: inherit;
    border: 1px solid rgba(96, 165, 250, .34);
    background:
        linear-gradient(90deg, transparent 0 18%, var(--step-accent-strong) 18% 45%, transparent 45% 100%) top left / 100% 2px no-repeat,
        linear-gradient(90deg, transparent 0 55%, var(--step-accent-mid) 55% 82%, transparent 82% 100%) bottom left / 100% 2px no-repeat,
        radial-gradient(circle at 50% 10%, var(--step-accent-soft), transparent 35%);
    box-shadow: inset 0 0 22px var(--step-accent-soft);
}

.desktop-blueprint-step-card::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -8px;
    width: 12px;
    height: 28px;
    pointer-events: none;
    transform: translateY(-50%);
    clip-path: polygon(0 0, 100% 50%, 0 100%);
    background: linear-gradient(90deg, var(--step-accent-soft), var(--step-accent));
    filter: drop-shadow(0 0 10px var(--step-accent));
}

.desktop-blueprint-step-card:hover,
.desktop-blueprint-step-card:focus-visible {
    transform: translateY(-2px);
    box-shadow:
        inset 0 0 0 1px rgba(14, 165, 233, .28),
        inset 0 0 38px var(--step-accent-soft),
        0 24px 52px rgba(0, 0, 0, .45),
        0 0 42px var(--step-accent-soft) !important;
}

.desktop-blueprint-step-number {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--step-accent);
    font-size: 24px;
    font-weight: 950;
    line-height: 1;
    background: radial-gradient(circle at 35% 30%, var(--step-accent-mid), rgba(30, 64, 175, .24) 58%, rgba(2, 8, 23, .10));
    text-shadow: 0 0 12px var(--step-accent);
}

.desktop-blueprint-step-icon {
    width: 68px;
    height: 68px;
    margin-top: 38px;
    display: grid;
    place-items: center;
    color: var(--step-accent);
    filter: drop-shadow(0 0 14px var(--step-accent-mid));
}

.desktop-blueprint-step-icon svg {
    width: 64px;
    height: 64px;
    fill: rgba(37, 99, 235, .12);
    stroke: currentColor;
    stroke-width: 3.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.desktop-blueprint-step-card strong {
    margin-top: 0;
    color: var(--step-accent);
    font-size: 15px;
    font-weight: 950;
    line-height: 1.15;
    text-shadow: 0 0 14px var(--step-accent-soft);
}

.desktop-blueprint-step-copy {
    max-width: 150px;
    max-height: 58px;
    overflow: hidden;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.28;
}

.desktop-blueprint-step-status {
    position: absolute;
    left: 30px;
    right: 30px;
    bottom: 24px;
    width: 150px;
    min-height: 32px;
    margin-top: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(56, 189, 248, .28);
    border-radius: 7px;
    background: var(--step-status-bg);
    color: var(--step-status-color);
    font-size: 12px;
    font-weight: 900;
    box-shadow: inset 0 0 18px var(--step-accent-soft), 0 0 18px var(--step-accent-soft);
}

.desktop-blueprint-step-status.status-pending {
    border-color: rgba(148, 163, 184, .24);
    background: linear-gradient(180deg, rgba(30, 41, 59, .34), rgba(15, 23, 42, .44));
    color: #cbd5e1;
    box-shadow: inset 0 0 18px rgba(148, 163, 184, .08);
}

.desktop-blueprint-step-status.status-utility {
    border-color: rgba(148, 163, 184, .28);
    background: linear-gradient(180deg, rgba(51, 65, 85, .34), rgba(15, 23, 42, .46));
    color: #e2e8f0;
    box-shadow: inset 0 0 18px rgba(148, 163, 184, .10);
}

.desktop-blueprint-step-status.status-history {
    border-color: rgba(34, 197, 94, .30);
    background: linear-gradient(180deg, rgba(20, 83, 45, .28), rgba(15, 23, 42, .42));
    color: #bbf7d0;
    box-shadow: inset 0 0 18px rgba(34, 197, 94, .10);
}

.desktop-blueprint-step-status.status-ready {
    border-color: rgba(34, 211, 238, .36);
    background: linear-gradient(180deg, rgba(8, 145, 178, .28), rgba(14, 116, 144, .42));
    color: #cffafe;
    box-shadow: inset 0 0 18px rgba(34, 211, 238, .14), 0 0 18px rgba(34, 211, 238, .12);
}

.desktop-blueprint-step-status.status-completed {
    border-color: rgba(34, 197, 94, .34);
}

.desktop-blueprint-step-status em {
    width: 18px;
    height: 18px;
    margin-left: 7px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    color: #86efac;
    font-size: 12px;
    font-style: normal;
    background: rgba(22, 163, 74, .22);
    box-shadow: inset 0 0 0 1px rgba(34, 197, 94, .28);
}

.desktop-flow-bottom-bar {
    position: relative;
    z-index: 4;
    width: 100%;
    min-width: 0;
    min-height: 86px;
    margin-top: 14px;
    display: grid;
    grid-template-columns: minmax(150px, 180px) minmax(0, 1fr) minmax(145px, 185px);
    gap: 0;
    overflow: hidden;
    border: 1px solid rgba(56, 189, 248, .16);
    border-radius: 10px;
    background:
        linear-gradient(180deg, rgba(2, 12, 27, .86), rgba(2, 6, 23, .76)),
        radial-gradient(circle at 16% 0%, rgba(14, 165, 233, .12), transparent 34%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .035), 0 18px 48px rgba(0, 0, 0, .32);
}

.desktop-flow-status-panel,
.desktop-flow-summary-panel,
.desktop-flow-progress-panel {
    padding: 14px 18px;
    display: grid;
    align-content: center;
    border-right: 1px solid rgba(148, 163, 184, .13);
}

.desktop-flow-progress-panel {
    border-right: 0;
}

.desktop-flow-bottom-title {
    display: block;
    margin: 0 0 8px;
    color: #dbeafe;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .04em;
}

.desktop-flow-status-body {
    display: flex;
    align-items: center;
    gap: 14px;
}

.desktop-flow-status-body strong {
    display: block;
    color: #f8fafc;
    font-size: 20px;
    line-height: 1;
}

.desktop-flow-status-body em,
.desktop-flow-summary-chip em {
    display: block;
    color: #94a3b8;
    font-size: 12px;
    font-style: normal;
    line-height: 1.2;
}

.desktop-flow-status-ring {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: conic-gradient(#0ea5e9 0 40deg, rgba(56, 189, 248, .12) 40deg 360deg);
    box-shadow: 0 0 22px rgba(14, 165, 233, .18);
}

.desktop-flow-status-ring span {
    width: 32px;
    height: 32px;
    border-radius: inherit;
    background:
        radial-gradient(circle, rgba(56, 189, 248, .52) 0 4px, transparent 5px),
        #061426;
    border: 1px solid rgba(56, 189, 248, .18);
}

.desktop-flow-summary-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(88px, 1fr));
    gap: 8px;
}

.desktop-flow-summary-chip {
    width: 100%;
    min-width: 0;
    min-height: 54px;
    margin: 0 !important;
    padding: 8px 8px !important;
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    border: 1px solid rgba(148, 163, 184, .13) !important;
    border-radius: 8px !important;
    background: rgba(15, 23, 42, .66) !important;
    color: #e5eefc !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .025) !important;
    text-align: left;
}

.desktop-flow-summary-chip > span:last-child {
    min-width: 0;
}

.desktop-flow-summary-chip:hover,
.desktop-flow-summary-chip:focus-visible {
    border-color: rgba(56, 189, 248, .38) !important;
    background: rgba(14, 165, 233, .11) !important;
    transform: translateY(-1px);
}

.desktop-flow-summary-chip strong {
    display: block;
    margin-top: 2px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #f8fafc;
    font-size: 14px;
    line-height: 1.15;
    white-space: nowrap;
}

.desktop-flow-summary-chip strong.is-positive {
    color: #22c55e;
}

.desktop-flow-summary-chip strong.is-negative {
    color: #fb923c;
}

.desktop-flow-summary-chip em {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.desktop-flow-chip-icon {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    font-size: 22px;
    font-weight: 950;
}

.desktop-flow-chip-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.desktop-flow-chip-icon.document {
    color: #60a5fa;
    background: rgba(37, 99, 235, .18);
    box-shadow: inset 0 0 0 1px rgba(96, 165, 250, .20);
}

.desktop-flow-chip-icon.client {
    color: #60a5fa;
    background: rgba(37, 99, 235, .14);
    box-shadow: inset 0 0 0 1px rgba(96, 165, 250, .18);
}

.desktop-flow-chip-icon.total {
    color: #22c55e;
    background: rgba(34, 197, 94, .12);
    box-shadow: inset 0 0 0 1px rgba(34, 197, 94, .20);
}

.desktop-flow-chip-icon.balance {
    color: #fb923c;
    background: rgba(249, 115, 22, .13);
    box-shadow: inset 0 0 0 1px rgba(249, 115, 22, .22);
}

.desktop-flow-chip-icon.credit {
    color: #a78bfa;
    background: rgba(124, 58, 237, .14);
    box-shadow: inset 0 0 0 1px rgba(167, 139, 250, .22);
}

.desktop-flow-chip-icon.pending {
    color: #f87171;
    background: rgba(239, 68, 68, .13);
    box-shadow: inset 0 0 0 1px rgba(248, 113, 113, .22);
}

.desktop-flow-progress-row {
    display: grid;
    grid-template-columns: minmax(80px, 120px) auto;
    align-items: center;
    gap: 14px;
}

.desktop-flow-progress-track {
    height: 8px;
    max-width: 120px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(30, 41, 59, .94);
}

.desktop-flow-progress-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0ea5e9, #38bdf8);
    box-shadow: 0 0 18px rgba(56, 189, 248, .45);
}

.desktop-flow-progress-row strong {
    color: #38bdf8;
    font-size: 18px;
    line-height: 1;
}

.desktop-flow-nav {
    display: grid;
    gap: 12px;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 0 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(56, 189, 248, .38) transparent;
}

.desktop-flow-nav::-webkit-scrollbar {
    width: 6px;
}

.desktop-flow-nav::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(56, 189, 248, .38);
}

.desktop-flow-item {
    width: 100%;
    min-height: 80px;
    margin: 0 !important;
    padding: 10px 8px !important;
    display: grid !important;
    place-items: center;
    gap: 7px;
    border: 1px solid transparent !important;
    border-radius: 0 10px 10px 0 !important;
    background: transparent !important;
    color: #cbd5e1 !important;
    font-family: inherit;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.15;
    text-align: center;
    box-shadow: none !important;
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease, color .16s ease, transform .16s ease;
}

.desktop-flow-item:hover,
.desktop-flow-item:focus-visible {
    color: #f8fafc !important;
    border-color: rgba(56, 189, 248, .24) !important;
    background: rgba(14, 165, 233, .08) !important;
    transform: translateX(2px);
}

.desktop-flow-item.active {
    color: #38bdf8 !important;
    border-color: rgba(56, 189, 248, .36) !important;
    background:
        linear-gradient(135deg, rgba(14, 165, 233, .26), rgba(14, 165, 233, .08)),
        rgba(8, 47, 73, .72) !important;
    box-shadow:
        inset 4px 0 0 #0ea5e9,
        0 0 24px rgba(14, 165, 233, .18) !important;
}

.desktop-flow-icon {
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
}

.desktop-flow-icon svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 8px rgba(56, 189, 248, .20));
}

.desktop-flow-settings {
    flex: 0 0 auto;
    margin-top: 12px !important;
    border-radius: 10px 0 0 10px !important;
}

@media (max-height: 860px) {
    .desktop-flow-nav {
        gap: 7px;
    }

    .desktop-flow-item {
        min-height: 62px;
        gap: 4px;
        padding: 7px 6px !important;
        font-size: 11px !important;
    }

    .desktop-flow-icon,
    .desktop-flow-icon svg {
        width: 22px;
        height: 22px;
    }

    .desktop-flow-settings {
        min-height: 58px;
        margin-top: 8px !important;
    }
}

.mobile-menu-toggle,
.mobile-view-btn {
    font-family: inherit;
}

.mobile-menu-toggle {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 101;
    width: 38px !important;
    height: 34px !important;
    min-height: 34px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(56, 189, 248, .45);
    border-radius: 8px;
    background: linear-gradient(135deg, #0f3a5f, #f97316);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .22);
    color: #fff;
    font-size: 16px;
    line-height: 1;
}

.mobile-menu-toggle:hover {
    background: linear-gradient(135deg, #0ea5e9, #fb923c);
}

.mobile-menu-toggle #mobileMenuLabel,
.mobile-active-view,
.mobile-menu-backdrop,
.mobile-workspace-menu {
    display: none;
}

.mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 98;
    background: transparent;
}

.mobile-workspace-menu {
    position: absolute;
    top: 54px;
    left: 12px;
    right: auto;
    width: min(265px, calc(100% - 24px));
    z-index: 100;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid rgba(249, 115, 22, .32);
    background:
        linear-gradient(135deg, rgba(14, 165, 233, .14), rgba(249, 115, 22, .12)),
        rgba(8, 18, 31, .96);
    box-shadow: 0 22px 54px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.12);
    grid-template-columns: 1fr;
    gap: 6px;
}

.mobile-menu-section-title {
    padding: 8px 3px 2px;
    color: #93c5fd;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0;
}

.mobile-menu-group-toggle {
    width: 100%;
    min-height: 34px;
    margin: 0;
    padding: 8px 10px !important;
    border-radius: 8px;
    border: 1px solid rgba(148, 215, 255, .18) !important;
    background:
        linear-gradient(135deg, rgba(14, 165, 233, .12), rgba(249, 115, 22, .08)),
        rgba(8, 18, 31, .82) !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #93c5fd !important;
    text-align: left;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.mobile-menu-group-toggle:hover {
    border-color: rgba(14, 165, 233, .42) !important;
    background:
        linear-gradient(135deg, rgba(14, 165, 233, .18), rgba(249, 115, 22, .10)),
        rgba(9, 28, 50, .94) !important;
    color: #ffffff !important;
}

.mobile-menu-group-toggle.open {
    border-color: rgba(249, 115, 22, .48) !important;
    color: #ffffff !important;
    background:
        linear-gradient(135deg, rgba(14, 165, 233, .24), rgba(249, 115, 22, .20)),
        rgba(11, 36, 64, .96) !important;
    box-shadow:
        inset 3px 0 0 #f97316,
        inset 0 1px 0 rgba(255,255,255,.12),
        0 10px 22px rgba(14, 165, 233, .12);
}

.mobile-menu-group-indicator {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(249, 115, 22, .2);
    color: #fed7aa;
    font-size: 14px;
    line-height: 1;
}

.mobile-menu-group {
    display: none;
    gap: 6px;
    padding: 2px 0 4px;
}

.mobile-menu-group.open {
    display: grid;
    animation: mobilePanelIn .16s ease-out;
}

.mobile-menu-open .mobile-menu-backdrop {
    display: block;
}

.mobile-menu-open .mobile-workspace-menu {
    display: grid;
}

.mobile-view-btn {
    width: 100% !important;
    min-height: 36px !important;
    margin: 0 !important;
    padding: 8px 10px !important;
    border-radius: 8px !important;
    border: 1px solid rgba(148, 215, 255, .2) !important;
    background: linear-gradient(135deg, #0b2440, #12385a) !important;
    color: #e2e8f0 !important;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.1;
    text-align: left;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.1);
}

.mobile-view-btn:hover,
.mobile-view-btn.active {
    border-color: rgba(249, 115, 22, .58) !important;
    background:
        linear-gradient(135deg, rgba(14, 165, 233, .30), rgba(249, 115, 22, .24)),
        #0b2440 !important;
    color: #ffffff !important;
    box-shadow:
        inset 3px 0 0 #f97316,
        inset 0 1px 0 rgba(255,255,255,.12),
        0 10px 22px rgba(249, 115, 22, .12);
}

.mobile-view-btn.document-mode-active:not(.active) {
    border-color: rgba(249, 115, 22, .62) !important;
    background:
        linear-gradient(135deg, rgba(249, 115, 22, .28), rgba(14, 165, 233, .14)),
        #0b2440 !important;
    color: #ffffff !important;
    box-shadow:
        inset 3px 0 0 #f97316,
        inset 0 1px 0 rgba(255,255,255,.12),
        0 8px 18px rgba(249, 115, 22, .12);
}

.mobile-view-btn.ticket-language-active:not(.active) {
    border-color: rgba(56, 189, 248, .62) !important;
    background:
        linear-gradient(135deg, rgba(14, 165, 233, .28), rgba(249, 115, 22, .12)),
        #0b2440 !important;
    color: #ffffff !important;
    box-shadow:
        inset 3px 0 0 #38bdf8,
        inset 0 1px 0 rgba(255,255,255,.12),
        0 8px 18px rgba(14, 165, 233, .12);
}

.mobile-module-hidden {
    display: none !important;
}

.mobile-workspace-mode .mobile-app-workspace {
    display: none !important;
}

.mobile-workspace-mode .mobile-app-workspace:has(.mobile-module-active) {
    display: flex !important;
    justify-content: flex-start;
}

.mobile-workspace-mode .mobile-app-workspace:has(.mobile-module-active) > :not(.mobile-module-active) {
    display: none !important;
}

.mobile-workspace-mode .mobile-module-active {
    display: block !important;
}

.app.ticket-preview-open {
    overflow: visible;
}

.app.ticket-preview-open .mobile-app-workspace {
    display: none !important;
}

.app.ticket-preview-open .preview-wrap {
    display: block !important;
    margin-top: 10px;
    padding: 10px;
    border: 1px solid rgba(56, 189, 248, .18);
    background:
        linear-gradient(135deg, rgba(14, 165, 233, .10), rgba(249, 115, 22, .08)),
        #020617;
}

.app.ticket-preview-open #ticketCanvas {
    display: block !important;
    width: 100%;
    max-width: 100%;
    height: auto;
}

.app-top-brand {
    position: absolute;
    top: 11px;
    left: 62px;
    right: 96px;
    height: 38px;
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.app-top-brand img {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    object-fit: cover;
    box-shadow: 0 10px 18px rgba(2, 8, 23, .28);
}

.app-top-brand span {
    display: block;
    min-width: 0;
    color: #f8fafc;
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-top-brand strong {
    color: #f97316;
}

.active-company-badge {
    position: absolute;
    top: 54px;
    left: 22px;
    right: 22px;
    display: none;
    align-items: center;
    justify-content: center;
    min-height: 20px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(56, 189, 248, .20);
    background: rgba(15, 23, 42, .46);
    color: #bfdbfe;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.active-company-badge.show {
    display: flex;
}

.mobile-app-workspace {
    min-height: calc(100vh - 136px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 18px 0;
}

.workspace-status-card {
    width: 100%;
    min-height: 86px;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 13px;
    border: 1px solid rgba(56, 189, 248, .18);
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(14, 165, 233, .14), rgba(249, 115, 22, .08)),
        rgba(8, 18, 31, .72);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 14px 30px rgba(2,8,23,.24);
}

.workspace-doc-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0ea5e9, #1d4ed8);
    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
    box-shadow: 0 12px 22px rgba(14, 165, 233, .18);
}

.workspace-doc-icon svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: #ffffff;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.workspace-doc-counts {
    min-width: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.workspace-doc-box {
    min-width: 0;
    padding: 7px 8px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.workspace-doc-box:hover,
.workspace-doc-box:focus-visible {
    border-color: rgba(14, 165, 233, .46);
    background: rgba(14, 165, 233, .10);
    outline: none;
}

.workspace-doc-box.is-current-doc {
    border-color: rgba(249, 115, 22, .48);
    background: linear-gradient(135deg, rgba(249, 115, 22, .16), rgba(14, 165, 233, .12));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.workspace-doc-counts span,
.workspace-business-meta span {
    display: block;
    color: #93c5fd;
    font-size: 11px;
    font-weight: 900;
}

.workspace-doc-counts strong {
    display: block;
    margin-top: 3px;
    color: #f8fafc;
    font-size: 24px;
    line-height: 1;
}

.workspace-business-meta {
    display: grid;
    justify-items: end;
    gap: 6px;
    min-width: 94px;
    padding-left: 12px;
    border-left: 1px solid rgba(148, 163, 184, .22);
}

.workspace-business-meta strong {
    color: #f8fafc;
    font-size: 14px;
    line-height: 1.1;
    text-align: right;
}

.workspace-business-meta span {
    color: #cbd5e1;
}

.workspace-metrics-card {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px;
    overflow: visible;
    padding: 2px 0 8px;
}

.workspace-metric-btn {
    min-width: 0;
    min-height: 62px;
    margin: 0 !important;
    padding: 6px 5px !important;
    display: grid;
    align-content: space-between;
    justify-items: center;
    gap: 3px;
    border-radius: 10px !important;
    border: 1px solid rgba(148, 163, 184, .16) !important;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, .92), rgba(30, 41, 59, .72)) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 14px 30px rgba(2,8,23,.20);
    color: #f8fafc !important;
    text-align: center;
}

.workspace-metric-btn:hover {
    background:
        linear-gradient(135deg, rgba(14, 165, 233, .25), rgba(249, 115, 22, .18)),
        rgba(15, 23, 42, .92) !important;
}

.workspace-metric-btn .metric-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(15, 23, 42, .62);
    border: 1px solid rgba(255,255,255,.12);
}

.workspace-metric-btn svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.metric-label {
    color: #cbd5e1;
    font-size: 8px;
    font-weight: 900;
    line-height: 1.05;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.workspace-metric-btn strong {
    color: #f8fafc;
    font-size: 10px;
    line-height: 1;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.workspace-sales-btn {
    color: #22c55e !important;
}

.workspace-estimates-btn {
    color: #38bdf8 !important;
}

.workspace-delivery-btn {
    color: #60a5fa !important;
}

.workspace-deposits-btn {
    color: #f97316 !important;
}

.workspace-credits-btn {
    color: #a855f7 !important;
}

.smart-guidance-card {
    width: 100%;
    padding: 13px;
    border-radius: 14px;
    border: 1px solid rgba(56, 189, 248, .16);
    background:
        radial-gradient(circle at top left, rgba(249, 115, 22, .14), transparent 38%),
        rgba(8, 18, 31, .76);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 16px 32px rgba(2,8,23,.22);
}

.smart-guidance-button {
    cursor: pointer;
    transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.smart-guidance-button:hover,
.smart-guidance-button:focus-visible {
    outline: none;
    border-color: rgba(249, 115, 22, .38);
    background:
        radial-gradient(circle at top left, rgba(249, 115, 22, .22), transparent 38%),
        rgba(8, 18, 31, .82);
}

.smart-guidance-button:active {
    transform: translateY(1px);
}

.smart-guidance-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #f8fafc;
    font-size: 15px;
    font-weight: 900;
    text-transform: uppercase;
}

.guidance-bulb {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #f59e0b;
    background: rgba(245, 158, 11, .12);
    border: 1px solid rgba(245, 158, 11, .22);
}

.guidance-bulb svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.guidance-payment-row {
    margin-top: 12px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 11px;
    padding: 11px;
    border-radius: 12px;
    background: rgba(15, 23, 42, .58);
    border: 1px solid rgba(148, 163, 184, .14);
}

.guidance-money-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #f97316;
    border: 2px solid rgba(249, 115, 22, .86);
    background: rgba(249, 115, 22, .10);
    font-size: 22px;
    font-weight: 900;
}

.guidance-status {
    display: block;
    color: #f8fafc;
    font-size: 14px;
    font-weight: 900;
}

.guidance-payment-row strong {
    display: block;
    margin-top: 4px;
    color: #f8fafc;
    font-size: 14px;
    line-height: 1.25;
}

.guidance-payment-row em {
    color: #ef4444;
    font-style: normal;
    font-weight: 900;
}

.work-status-card {
    width: 100%;
    padding: 13px;
    border-radius: 14px;
    border: 1px solid rgba(56, 189, 248, .16);
    background:
        radial-gradient(circle at top right, rgba(14, 165, 233, .12), transparent 36%),
        rgba(8, 18, 31, .76);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 16px 32px rgba(2,8,23,.22);
}

.work-status-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #f8fafc;
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
}

.work-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 5px rgba(34, 197, 94, .10);
}

.work-status-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin-top: 12px;
}

.work-status-panel {
    min-width: 0;
    padding: 10px;
    border-radius: 12px;
    background: rgba(15, 23, 42, .58);
    border: 1px solid rgba(148, 163, 184, .14);
}

.work-status-button {
    width: 100%;
    margin: 0 !important;
    color: inherit !important;
    font: inherit;
    text-align: left;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.work-status-button:hover {
    background:
        linear-gradient(135deg, rgba(14, 165, 233, .18), rgba(249, 115, 22, .10)),
        rgba(15, 23, 42, .64) !important;
    border-color: rgba(56, 189, 248, .26);
}

.work-status-button:active {
    transform: translateY(1px);
}

.work-status-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 8px;
}

.work-status-panel-head span {
    color: #38bdf8;
    font-size: 12px;
    font-weight: 900;
}

.work-status-panel-head em {
    min-width: 0;
    color: #cbd5e1;
    font-size: 9px;
    font-style: normal;
    font-weight: 900;
    text-align: right;
}

.work-status-panel dl {
    display: grid;
    gap: 5px;
    margin: 0;
}

.work-status-panel dl div {
    min-width: 0;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 5px;
}

.work-status-panel dt {
    color: #94a3b8;
    font-size: 9px;
    font-weight: 900;
}

.work-status-panel dd {
    margin: 0;
    color: #f8fafc;
    font-size: 9px;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: right;
}

.profit-guide-card {
    width: 100%;
    padding: 13px;
    border-radius: 14px;
    border: 1px solid rgba(56, 189, 248, .16);
    background:
        radial-gradient(circle at center, rgba(34, 197, 94, .12), transparent 34%),
        radial-gradient(circle at bottom right, rgba(249, 115, 22, .12), transparent 38%),
        rgba(8, 18, 31, .76);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 16px 32px rgba(2,8,23,.22);
}

.profit-guide-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #f8fafc;
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
}

.profit-guide-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #f97316;
    box-shadow: 0 0 0 5px rgba(249, 115, 22, .10);
}

.profit-guide-grid {
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.22fr) minmax(0, .82fr);
    gap: 8px;
    margin-top: 12px;
    align-items: stretch;
}

.profit-expense-box,
.profit-center-box {
    min-width: 0;
    width: 100%;
    margin: 0;
    padding: 10px 8px;
    border-radius: 12px;
    background: rgba(15, 23, 42, .58);
    border: 1px solid rgba(148, 163, 184, .14);
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

button.profit-nav-box {
    cursor: pointer;
    font-family: inherit;
    transition: transform .16s ease, border-color .16s ease, filter .16s ease;
}

button.profit-nav-box:hover,
button.profit-nav-box:focus-visible {
    outline: none;
    transform: translateY(-1px);
    border-color: rgba(249, 115, 22, .38);
    filter: brightness(1.06);
}

button.profit-nav-box:active {
    transform: translateY(0);
}

.profit-center-box {
    background:
        linear-gradient(135deg, rgba(14, 165, 233, .12), rgba(249, 115, 22, .10)),
        rgba(15, 23, 42, .66);
    border-color: rgba(56, 189, 248, .22);
}

.profit-expense-box span,
.profit-center-box span {
    display: block;
    color: #94a3b8;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.15;
}

.profit-expense-box strong,
.profit-center-box strong {
    display: block;
    margin-top: 6px;
    color: #f8fafc;
    font-size: 14px;
    font-weight: 950;
    line-height: 1.05;
}

.profit-center-box strong {
    font-size: 18px;
}

.profit-center-box strong.is-positive {
    color: #22c55e;
}

.profit-center-box strong.is-negative {
    color: #ef4444;
}

.profit-health-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    margin-top: 7px;
}

.profit-health-details span {
    min-width: 0;
    display: grid;
    gap: 2px;
    padding: 6px 5px;
    border-radius: 8px;
    background: rgba(2, 8, 23, .36);
    border: 1px solid rgba(148, 163, 184, .12);
}

.profit-health-details small {
    color: #94a3b8;
    font-size: 8px;
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
}

.profit-health-details b {
    color: #f8fafc;
    font-size: 10px;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.profit-health-details b.is-positive {
    color: #22c55e;
}

.profit-health-details b.is-negative {
    color: #ef4444;
}

.profit-expense-box em,
.profit-center-box em {
    display: block;
    margin-top: 5px;
    color: #cbd5e1;
    font-size: 8px;
    font-style: normal;
    font-weight: 800;
    line-height: 1.15;
}

.profit-center-box b {
    color: #f8fafc;
    font-weight: 900;
}

.profit-details-panel {
    display: none;
    width: 100%;
    padding: 13px;
    border-radius: 14px;
    border: 1px solid rgba(56, 189, 248, .18);
    background:
        radial-gradient(circle at top left, rgba(14, 165, 233, .14), transparent 34%),
        radial-gradient(circle at bottom right, rgba(249, 115, 22, .12), transparent 38%),
        rgba(8, 18, 31, .84);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 16px 32px rgba(2,8,23,.22);
}

.mobile-workspace-mode .profit-details-panel.mobile-module-active {
    display: block !important;
}

.profit-details-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #f8fafc;
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
}

.profit-details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.profit-details-grid div {
    min-width: 0;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, .14);
    background: rgba(15, 23, 42, .58);
}

.profit-details-grid span {
    display: block;
    color: #94a3b8;
    font-size: 9px;
    font-weight: 900;
    line-height: 1.15;
    text-transform: uppercase;
}

.profit-details-grid strong {
    display: block;
    margin-top: 6px;
    color: #f8fafc;
    font-size: 15px;
    line-height: 1.05;
    overflow-wrap: anywhere;
}

.profit-details-grid strong.is-positive {
    color: #22c55e;
}

.profit-details-grid strong.is-negative {
    color: #ef4444;
}

.profit-detail-alert {
    margin: 12px 0 0;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid rgba(249, 115, 22, .22);
    background: rgba(249, 115, 22, .10);
    color: #fed7aa;
    font-size: 12px;
    line-height: 1.4;
}

.profit-detail-alert.is-positive {
    border-color: rgba(34, 197, 94, .24);
    background: rgba(22, 101, 52, .16);
    color: #bbf7d0;
}

.profit-detail-alert.is-negative {
    border-color: rgba(239, 68, 68, .24);
    background: rgba(127, 29, 29, .20);
    color: #fecaca;
}

.profit-back-btn {
    margin-top: 12px !important;
    border: 1px solid rgba(56, 189, 248, .28) !important;
    background: linear-gradient(135deg, #0ea5e9, #f97316) !important;
    color: #ffffff !important;
}

.settings-panel,
.account-panel {
    display: none;
    width: 100%;
    padding: 13px;
    border-radius: 14px;
    border: 1px solid rgba(56, 189, 248, .18);
    background:
        radial-gradient(circle at top left, rgba(14, 165, 233, .14), transparent 34%),
        radial-gradient(circle at bottom right, rgba(249, 115, 22, .12), transparent 38%),
        rgba(8, 18, 31, .84);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 16px 32px rgba(2,8,23,.22);
}

.mobile-workspace-mode .settings-panel.mobile-module-active {
    display: block !important;
}

.mobile-workspace-mode .account-panel.mobile-module-active {
    display: block !important;
}

.settings-panel-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #f8fafc;
}

.settings-panel-dot {
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    margin-top: 5px;
    border-radius: 999px;
    background: linear-gradient(135deg, #38bdf8, #f97316);
    box-shadow: 0 0 16px rgba(56, 189, 248, .38);
}

.settings-panel-title {
    display: block;
    font-size: 15px;
    font-weight: 950;
    line-height: 1.1;
    text-transform: uppercase;
}

.settings-panel-intro {
    margin: 5px 0 0;
    color: #cbd5e1;
    font-size: 12px;
    line-height: 1.35;
}

.settings-action-grid {
    display: grid;
    gap: 9px;
    margin-top: 13px;
}

.settings-action-btn {
    width: 100%;
    margin: 0 !important;
    padding: 12px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(56, 189, 248, .18) !important;
    background:
        linear-gradient(135deg, rgba(14, 165, 233, .12), rgba(249, 115, 22, .08)),
        rgba(15, 23, 42, .62) !important;
    color: #f8fafc !important;
    text-align: left !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06) !important;
}

.settings-action-btn:hover,
.settings-action-btn:focus-visible {
    border-color: rgba(249, 115, 22, .42) !important;
    transform: translateY(-1px);
}

.settings-action-btn strong {
    display: block;
    font-size: 14px;
    font-weight: 950;
    line-height: 1.1;
}

.settings-action-btn span {
    display: block;
    margin-top: 5px;
    color: #cbd5e1;
    font-size: 11px;
    font-weight: 750;
    line-height: 1.35;
}

.settings-logout-btn {
    border-color: rgba(239, 68, 68, .26) !important;
    background:
        linear-gradient(135deg, rgba(239, 68, 68, .14), rgba(249, 115, 22, .08)),
        rgba(15, 23, 42, .62) !important;
}

.settings-back-btn {
    margin: 0 0 12px !important;
    border: 1px solid rgba(56, 189, 248, .24) !important;
    background: linear-gradient(135deg, #0f3154, #17476f) !important;
    color: #ffffff !important;
}

.account-status-pill {
    width: fit-content;
    max-width: 100%;
    margin-top: 12px;
    padding: 7px 10px;
    border-radius: 999px;
    border: 1px solid rgba(56, 189, 248, .24);
    background: rgba(14, 165, 233, .14);
    color: #bae6fd;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.1;
}

.account-status-pill.is-connected {
    border-color: rgba(34, 197, 94, .28);
    background: rgba(22, 101, 52, .20);
    color: #bbf7d0;
}

.account-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.account-detail-grid div {
    min-width: 0;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, .14);
    background: rgba(15, 23, 42, .58);
}

.account-detail-grid span {
    display: block;
    color: #94a3b8;
    font-size: 9px;
    font-weight: 900;
    line-height: 1.15;
    text-transform: uppercase;
}

.account-detail-grid strong {
    display: block;
    margin-top: 6px;
    color: #f8fafc;
    font-size: 13px;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.account-panel .settings-back-btn {
    margin-top: 12px !important;
}

.account-control-card,
.account-danger-zone {
    margin-top: 12px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(148, 215, 255, .16);
    background:
        linear-gradient(135deg, rgba(14, 165, 233, .08), rgba(249, 115, 22, .04)),
        rgba(15, 23, 42, .58);
}

.account-control-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.account-control-head span,
.account-danger-zone strong {
    color: #94a3b8;
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0;
}

.account-control-head strong {
    color: #22c55e;
    font-size: 14px;
    font-weight: 950;
}

.account-control-head strong.is-paused {
    color: #fb923c;
}

.account-control-head strong.is-delete-requested {
    color: #f87171;
}

.account-control-help,
.account-danger-help {
    margin: 8px 0 0;
    color: #cbd5e1;
    font-size: 11px;
    line-height: 1.45;
}

.account-control-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 11px;
}

.account-control-btn,
.account-danger-btn {
    min-height: 42px;
    margin: 0 !important;
    padding: 10px !important;
    border-radius: 10px !important;
    border: 1px solid rgba(148, 215, 255, .18) !important;
    background: linear-gradient(135deg, #0f3154, #17476f) !important;
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 950 !important;
}

.account-pause-btn.is-paused {
    background: linear-gradient(135deg, #0f766e, #0ea5e9) !important;
}

.account-danger-zone {
    border-color: rgba(239, 68, 68, .30);
    background:
        linear-gradient(135deg, rgba(127, 29, 29, .28), rgba(249, 115, 22, .08)),
        rgba(15, 23, 42, .66);
}

.account-danger-zone strong {
    display: block;
    color: #fecaca;
}

.account-danger-btn {
    width: 100%;
    margin-top: 11px !important;
    border-color: rgba(248, 113, 113, .42) !important;
    background: linear-gradient(135deg, #991b1b, #dc2626) !important;
}

.account-delete-input {
    width: 100%;
    margin-top: 12px;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(248, 113, 113, .30);
    background: rgba(15, 23, 42, .92);
    color: #ffffff;
    font-weight: 800;
}

.account-delete-error {
    margin: 8px 0 0;
    color: #fecaca;
    font-size: 12px;
    font-weight: 800;
}

@media (max-width: 420px) {
    .account-control-actions {
        grid-template-columns: 1fr;
    }
}

.workspace-hero {
    width: 100%;
    flex: 1;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 18px;
    border: 1px solid rgba(56, 189, 248, .16);
    border-radius: 16px;
    background:
        radial-gradient(circle at top left, rgba(14, 165, 233, .16), transparent 42%),
        radial-gradient(circle at bottom right, rgba(249, 115, 22, .14), transparent 45%),
        rgba(15, 23, 42, .36);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 20px 44px rgba(2,8,23,.18);
    text-align: center;
}

.workspace-kicker {
    color: #38bdf8;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0;
}

.workspace-hero h1 {
    margin: 10px 0 8px;
    color: #f8fafc;
    font-size: 28px;
    line-height: 1.1;
}

.workspace-hero p {
    max-width: 340px;
    margin: 0;
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.5;
}

.app-logo,
.app-logo-placeholder,
.app > p,
.logo-upload,
#tipoDocumento,
.section-config,
.project-fields,
.ticket-actions,
.preview-wrap,
#ticketCanvas,
.app > .small {
    display: none !important;
}

@media (max-width: 460px) {
    .app-top-brand {
        left: 60px;
        right: 92px;
    }

    .app-top-brand span {
        font-size: 20px;
    }
}

@media (min-width: 980px) {
    body:not(.access-locked) {
        padding: 74px 0 0 122px;
    }

    .desktop-flow-sidebar {
        position: fixed;
        z-index: 90;
        left: 0;
        top: 0;
        bottom: 0;
        width: 122px;
        display: flex;
        flex-direction: column;
        padding: 88px 10px 18px 0;
        border-right: 1px solid rgba(148, 163, 184, .18);
        background:
            linear-gradient(180deg, rgba(2, 6, 23, .94), rgba(2, 12, 27, .92)),
            radial-gradient(circle at 90% 12%, rgba(14, 165, 233, .18), transparent 34%);
        box-shadow: 18px 0 46px rgba(0, 0, 0, .32);
    }

    .desktop-flow-topbar {
        position: fixed;
        z-index: 95;
        top: 0;
        left: 0;
        right: 0;
        height: 74px;
        min-width: 1320px;
        display: flex;
        align-items: center;
        overflow: visible;
        padding: 0 24px;
        border-bottom: 1px solid rgba(148, 163, 184, .18);
        background:
            linear-gradient(180deg, rgba(2, 6, 23, .96), rgba(2, 12, 27, .92)),
            radial-gradient(circle at 25% 0%, rgba(14, 165, 233, .10), transparent 36%);
        box-shadow: 0 16px 42px rgba(0, 0, 0, .28);
    }

    .desktop-flow-stage {
        position: fixed;
        z-index: 80;
        left: 122px;
        top: 74px;
        right: 0;
        bottom: 0;
        display: none;
        grid-template-rows: auto minmax(0, 1fr) auto;
        min-width: 0;
        min-height: 0;
        overflow: hidden;
        padding: 30px 32px 18px;
        background:
            radial-gradient(circle at 16% 10%, rgba(14, 165, 233, .13), transparent 28%),
            radial-gradient(circle at 84% 18%, rgba(56, 189, 248, .08), transparent 30%),
            linear-gradient(180deg, var(--desktop-flow-bg, #020617) 0%, var(--desktop-flow-bg-mid, #03111f) 52%, var(--desktop-flow-bg, #020617) 100%);
    }

    body.desktop-flow-view .desktop-flow-stage {
        display: grid;
    }

    body.desktop-flow-fullscreen:not(.access-locked) {
        padding-left: 0;
    }

    body.desktop-flow-fullscreen .desktop-flow-sidebar {
        display: none;
    }

    body.desktop-flow-fullscreen .desktop-flow-stage {
        left: 0;
    }

    body.desktop-flow-fullscreen .desktop-fullscreen-btn {
        color: #38bdf8 !important;
        border-color: rgba(56, 189, 248, .42) !important;
        background: rgba(14, 165, 233, .16) !important;
        box-shadow: inset 0 0 0 1px rgba(56, 189, 248, .18), 0 0 24px rgba(14, 165, 233, .18);
    }

    body.desktop-flow-view .app {
        max-width: none;
        min-height: auto;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        overflow: visible;
    }

    body.desktop-flow-view .active-company-badge,
    body.desktop-flow-view .mobile-app-workspace,
    body.desktop-flow-view .section,
    body.desktop-flow-view .section-config,
    body.desktop-flow-view .ticket-actions,
    body.desktop-flow-view .preview-wrap,
    body.desktop-flow-view #ticketCanvas,
    body.desktop-flow-view .app > h1,
    body.desktop-flow-view .app > label,
    body.desktop-flow-view .app > select,
    body.desktop-flow-view .app > textarea,
    body.desktop-flow-view .app > input,
    body.desktop-flow-view .app > button,
    body.desktop-flow-view .app > .small {
        display: none !important;
    }

    .mobile-workspace-shell,
    .app-top-brand,
    .app-language-switch {
        display: none !important;
    }
}

@media (max-width: 640px) {
    body {
        padding: 10px;
    }

    .app {
        padding: 70px 14px 18px;
        min-height: calc(100dvh - 20px);
        border-radius: 12px;
    }

    .mobile-app-workspace {
        min-height: calc(100dvh - 108px);
        padding: 12px 0 0;
        justify-content: flex-start;
    }

    .workspace-status-card {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 10px;
        padding: 12px;
    }

    .workspace-doc-icon {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        font-size: 20px;
    }

    .workspace-business-meta {
        grid-column: 1 / -1;
        grid-template-columns: 1fr auto;
        justify-items: start;
        align-items: center;
        padding: 10px 0 0;
        border-left: 0;
        border-top: 1px solid rgba(148, 163, 184, .18);
    }

    .workspace-business-meta strong {
    text-align: left;
}

.work-status-panel.is-current-doc {
    border-color: rgba(249, 115, 22, .42);
    background:
        linear-gradient(135deg, rgba(249, 115, 22, .13), rgba(14, 165, 233, .10)),
        rgba(15, 23, 42, .68);
    box-shadow: inset 3px 0 0 rgba(249, 115, 22, .82);
}

    .workspace-hero {
        min-height: calc(100dvh - 540px);
        padding: 22px 16px;
        border-radius: 14px;
    }

    .mobile-workspace-shell {
        display: block;
    }

    .app-language-switch {
        top: 12px;
        right: 12px;
    }

    .mobile-menu-toggle {
        position: absolute;
        top: 12px;
        left: 12px;
        z-index: 101;
        width: 38px !important;
        height: 34px !important;
        min-height: 34px !important;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        gap: 0;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 8px !important;
        border: 1px solid rgba(249, 115, 22, .42) !important;
        background: linear-gradient(135deg, #0b2440, #f97316) !important;
        color: #f8fafc !important;
        font-size: 18px;
        font-weight: 900;
        line-height: 1;
        box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 10px 22px rgba(2,8,23,.24);
    }

    .mobile-menu-toggle:hover {
        background: linear-gradient(135deg, #0ea5e9, #fb923c);
    }

    .mobile-menu-toggle #mobileMenuLabel {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .mobile-active-view {
        display: none;
    }

    .mobile-menu-backdrop,
    .mobile-workspace-menu {
        display: none;
    }

    .mobile-menu-backdrop {
        position: fixed;
        inset: 0;
        z-index: 98;
        background: transparent;
    }

    .mobile-workspace-menu {
        position: absolute;
        top: 54px;
        left: 12px;
        right: auto;
        width: min(265px, calc(100% - 24px));
        z-index: 100;
        padding: 8px;
        border-radius: 8px;
        border: 1px solid rgba(249, 115, 22, .32);
        background:
            linear-gradient(135deg, rgba(14, 165, 233, .14), rgba(249, 115, 22, .12)),
            rgba(8, 18, 31, .96);
        box-shadow: 0 22px 54px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.12);
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .mobile-menu-section-title {
        padding: 8px 3px 2px;
        color: #93c5fd;
        font-size: 10px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0;
    }

    .mobile-menu-group-toggle {
        width: 100%;
        min-height: 34px;
        margin: 0;
        padding: 8px 10px !important;
        border-radius: 8px;
        border: 1px solid rgba(148, 215, 255, .18) !important;
        background:
            linear-gradient(135deg, rgba(14, 165, 233, .12), rgba(249, 115, 22, .08)),
            rgba(8, 18, 31, .82) !important;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        color: #93c5fd !important;
        text-align: left;
        box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
    }

    .mobile-menu-group-toggle:hover {
        border-color: rgba(14, 165, 233, .42) !important;
        background:
            linear-gradient(135deg, rgba(14, 165, 233, .18), rgba(249, 115, 22, .10)),
            rgba(9, 28, 50, .94) !important;
        color: #ffffff !important;
    }

    .mobile-menu-group-toggle.open {
        border-color: rgba(249, 115, 22, .48) !important;
        color: #ffffff !important;
        background:
            linear-gradient(135deg, rgba(14, 165, 233, .24), rgba(249, 115, 22, .20)),
            rgba(11, 36, 64, .96) !important;
        box-shadow:
            inset 3px 0 0 #f97316,
            inset 0 1px 0 rgba(255,255,255,.12),
            0 10px 22px rgba(14, 165, 233, .12);
    }

    .mobile-menu-group-indicator {
        width: 20px;
        height: 20px;
        border-radius: 999px;
        display: grid;
        place-items: center;
        background: rgba(249, 115, 22, .2);
        color: #fed7aa;
        font-size: 14px;
        line-height: 1;
    }

    .mobile-menu-group {
        display: none;
        gap: 6px;
        padding: 2px 0 4px;
    }

    .mobile-menu-group.open {
        display: grid;
        animation: mobilePanelIn .16s ease-out;
    }

    .mobile-menu-open .mobile-menu-backdrop {
        display: block;
    }

    .mobile-menu-open .mobile-workspace-menu {
        display: grid;
    }

    .mobile-view-btn {
        width: 100% !important;
        min-height: 36px !important;
        margin: 0 !important;
        padding: 8px 10px !important;
        border-radius: 8px !important;
        border: 1px solid rgba(148, 215, 255, .2) !important;
        background: linear-gradient(135deg, #0b2440, #12385a) !important;
        color: #e2e8f0 !important;
        font-size: 12px;
        font-weight: 900;
        line-height: 1.1;
        text-align: left;
        box-shadow: inset 0 1px 0 rgba(255,255,255,.1);
    }

    .mobile-view-btn:hover,
    .mobile-view-btn.active {
        border-color: rgba(249, 115, 22, .58) !important;
        background:
            linear-gradient(135deg, rgba(14, 165, 233, .30), rgba(249, 115, 22, .24)),
            #0b2440 !important;
        color: #ffffff !important;
        box-shadow:
            inset 3px 0 0 #f97316,
            inset 0 1px 0 rgba(255,255,255,.12),
            0 10px 22px rgba(249, 115, 22, .12);
    }

    .mobile-view-btn.document-mode-active:not(.active) {
        border-color: rgba(249, 115, 22, .62) !important;
        background:
            linear-gradient(135deg, rgba(249, 115, 22, .28), rgba(14, 165, 233, .14)),
            #0b2440 !important;
        color: #ffffff !important;
        box-shadow:
            inset 3px 0 0 #f97316,
            inset 0 1px 0 rgba(255,255,255,.12),
            0 8px 18px rgba(249, 115, 22, .12);
    }

    .mobile-view-btn.ticket-language-active:not(.active) {
        border-color: rgba(56, 189, 248, .62) !important;
        background:
            linear-gradient(135deg, rgba(14, 165, 233, .28), rgba(249, 115, 22, .12)),
            #0b2440 !important;
        color: #ffffff !important;
        box-shadow:
            inset 3px 0 0 #38bdf8,
            inset 0 1px 0 rgba(255,255,255,.12),
            0 8px 18px rgba(14, 165, 233, .12);
    }

    .app.ticket-preview-open {
        overflow: visible;
    }

    .app.ticket-preview-open .mobile-app-workspace {
        display: none;
    }

    .app.ticket-preview-open .preview-wrap {
        display: block !important;
        margin-top: 10px;
        padding: 10px;
        border: 1px solid rgba(56, 189, 248, .18);
        background:
            linear-gradient(135deg, rgba(14, 165, 233, .10), rgba(249, 115, 22, .08)),
            #020617;
    }

    .app.ticket-preview-open #ticketCanvas {
        display: block !important;
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    .mobile-workspace-mode .section-config,
    .mobile-workspace-mode .project-fields,
    .mobile-workspace-mode .settings-panel,
    .mobile-workspace-mode .account-panel,
    .mobile-workspace-mode .logo-upload,
    .mobile-workspace-mode .ticket-actions,
    .mobile-workspace-mode .preview-wrap,
    .mobile-workspace-mode #tipoDocumento,
    .mobile-workspace-mode .app > .small {
        animation: mobilePanelIn .16s ease-out;
    }
}

@media (max-width: 380px) {
    .mobile-workspace-menu {
        grid-template-columns: 1fr;
    }
}

.billing-confirm-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: grid;
    place-items: center;
    padding: 18px;
    background:
        radial-gradient(circle at 20% 18%, rgba(14, 165, 233, .22), transparent 34%),
        radial-gradient(circle at 84% 78%, rgba(249, 115, 22, .24), transparent 34%),
        rgba(2, 6, 23, .78);
    backdrop-filter: blur(14px);
}

.billing-confirm-modal {
    width: min(390px, 100%);
    border: 1px solid rgba(148, 215, 255, .22);
    border-radius: 18px;
    padding: 20px;
    background:
        linear-gradient(145deg, rgba(15, 38, 67, .96), rgba(8, 18, 31, .98)),
        #0b1220;
    box-shadow:
        0 28px 70px rgba(0, 0, 0, .48),
        inset 0 1px 0 rgba(255, 255, 255, .12);
    color: #f8fafc;
}

.billing-confirm-badge {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #0ea5e9, #f97316);
    color: white;
    font-size: 24px;
    font-weight: 900;
    box-shadow: 0 14px 28px rgba(249, 115, 22, .22);
}

.billing-status-badge {
    background: linear-gradient(135deg, #38bdf8, #2563eb);
    box-shadow: 0 14px 28px rgba(14, 165, 233, .22);
    font-family: Georgia, serif;
    font-style: italic;
}

.billing-deposit-badge {
    background: linear-gradient(135deg, #2563eb, #14b8a6);
    box-shadow: 0 14px 28px rgba(20, 184, 166, .20);
}

.billing-refund-badge {
    background: linear-gradient(135deg, #ef4444, #f97316);
    box-shadow: 0 14px 28px rgba(239, 68, 68, .24);
}

.billing-credit-badge {
    background: linear-gradient(135deg, #7c3aed, #0ea5e9);
    box-shadow: 0 14px 28px rgba(124, 58, 237, .22);
}

.billing-pending-list-badge {
    background: linear-gradient(135deg, #f59e0b, #f97316);
    box-shadow: 0 14px 28px rgba(245, 158, 11, .22);
}

.billing-confirm-modal h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 20px;
    line-height: 1.15;
}

.billing-confirm-summary {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid rgba(148, 215, 255, .16);
    border-radius: 12px;
    background: rgba(2, 6, 23, .34);
}

.billing-confirm-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #b6c6d9;
    font-size: 12px;
}

.billing-confirm-row strong {
    color: #ffffff;
    text-align: right;
}

.billing-confirm-note {
    margin: 12px 0 0;
    color: #93c5fd;
    font-size: 12px;
    line-height: 1.45;
}

.billing-confirm-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 16px;
}

.billing-confirm-actions.single {
    grid-template-columns: 1fr;
}

.billing-confirm-btn {
    min-height: 42px;
    border-radius: 10px;
    border: 1px solid rgba(148, 215, 255, .18) !important;
    font-size: 13px;
    font-weight: 900;
}

.billing-confirm-cancel {
    background: rgba(30, 41, 59, .95) !important;
    color: #dbeafe !important;
}

.billing-confirm-primary {
    background: linear-gradient(135deg, #0ea5e9, #f97316) !important;
    color: #ffffff !important;
    box-shadow: 0 12px 28px rgba(249, 115, 22, .20);
}

.billing-confirm-btn:hover {
    filter: brightness(1.07);
}

.document-list-modal {
    width: min(430px, 100%);
}

.document-list-badge {
    font-size: 14px;
    letter-spacing: .08em;
}

.document-list {
    display: grid;
    gap: 10px;
    max-height: min(54vh, 430px);
    overflow: auto;
    padding-right: 2px;
}

.document-list-empty {
    margin: 0;
    padding: 14px;
    border: 1px dashed rgba(148, 215, 255, .22);
    border-radius: 12px;
    color: #b6c6d9;
    font-size: 13px;
    line-height: 1.45;
    background: rgba(15, 23, 42, .42);
}

.document-list-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(148, 215, 255, .18);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(15, 23, 42, .82), rgba(15, 38, 67, .72));
}

.document-list-actions {
    display: grid;
    gap: 8px;
}

.document-list-main {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.document-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.document-list-header strong {
    color: #f8fafc;
    font-size: 15px;
    line-height: 1.1;
}

.document-list-status {
    padding: 3px 8px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 10px;
    font-weight: 900;
    background: rgba(14, 165, 233, .22);
    border: 1px solid rgba(14, 165, 233, .24);
}

.document-list-main span:not(.document-list-status) {
    min-width: 0;
    color: #b6c6d9;
    font-size: 12px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.document-list-amounts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-top: 4px;
}

.document-list-amounts span {
    display: grid;
    gap: 2px;
    padding: 8px 7px;
    border-radius: 10px;
    background: rgba(2, 8, 23, .34);
    border: 1px solid rgba(148, 215, 255, .12);
}

.document-list-amounts small {
    color: #93a4b8;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
}

.document-list-amounts strong {
    color: #f8fafc;
    font-size: 12px;
    line-height: 1.1;
}

.document-list-amounts .is-collected strong {
    color: #22c55e;
}

.document-list-amounts .is-pending strong {
    color: #fb7185;
}

.document-list-edit,
.document-list-delete {
    min-height: 36px;
    padding: 0 12px;
    border-radius: 10px;
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

.document-list-edit {
    border: 1px solid rgba(14, 165, 233, .38) !important;
    background: linear-gradient(135deg, #0ea5e9, #2563eb) !important;
}

.document-list-delete {
    border: 1px solid rgba(248, 113, 113, .32) !important;
    background: rgba(220, 38, 38, .88) !important;
}

.document-list-edit:hover,
.document-list-edit:focus-visible,
.document-list-delete:hover,
.document-list-delete:focus-visible {
    filter: brightness(1.08);
    outline: none;
}

@keyframes mobilePanelIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

input, button {
    width: 100%;
    padding: 13px;
    margin: 8px 0;
    border-radius: 10px;
    border: none;
    font-size: 15px;
}

select {
    width: 100%;
    padding: 13px;
    margin: 8px 0;
    border-radius: 10px;
    border: none;
    font-size: 15px;
    background: #ffffff;
    color: #0f172a;
}

textarea {
    width: 100%;
    min-height: 110px;
    padding: 13px;
    margin: 8px 0;
    border-radius: 10px;
    border: none;
    font-size: 15px;
    font-family: Arial, sans-serif;
    resize: vertical;
}

.form-label {
    margin: 14px 0 4px;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.field-label {
    display: block;
    margin: 8px 0 -3px;
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 700;
}

.logo-upload {
    margin-bottom: 12px;
}

.logo-upload input {
    background: #ffffff;
    color: #0f172a;
}

.color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0;
}

.color-swatch {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.85);
    box-shadow: 0 0 0 1px rgba(15,23,42,.25);
    cursor: pointer;
}

.color-swatch.active {
    box-shadow: 0 0 0 3px #ffffff;
}

.custom-color-row {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 8px;
    align-items: center;
}

.custom-color-row input[type="color"] {
    height: 42px;
    padding: 4px;
}

.logo-action-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 8px;
    margin: 8px 0 12px;
}

.logo-action-row button {
    margin: 0;
    min-height: 42px;
    padding: 10px;
    font-size: 13px;
}

.clear-logo-btn {
    background: #475569;
}

.clear-logo-btn:hover {
    background: #334155;
}

.forget-access-btn {
    background: #0f766e;
}

.forget-access-btn:hover {
    background: #115e59;
}

.reset-app-btn {
    background: #b91c1c;
}

.reset-app-btn:hover {
    background: #991b1b;
}

.section-config {
    margin: 12px 0;
    background: #0f172a;
    border: 1px solid rgba(148,163,184,.35);
    border-radius: 10px;
    padding: 10px 12px;
}

.section-config summary {
    cursor: pointer;
    font-weight: 800;
    color: #e2e8f0;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
}

.section-title {
    flex: 1;
}

.section-order {
    display: inline-flex;
    gap: 6px;
}

.section-order button {
    width: 30px;
    min-height: 28px;
    padding: 4px 0;
    border-radius: 6px;
    background: #334155;
    font-size: 14px;
    line-height: 1;
}

.section-order button:hover {
    background: #475569;
}

.section-order button:disabled {
    opacity: .35;
    cursor: not-allowed;
}

.section-config label {
    display: block;
    margin-top: 10px;
    color: #cbd5e1;
    font-size: 14px;
}

.section-config input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

.project-fields,
.delivery-fields {
    display: none;
}

.fixed-expenses-grid {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.fixed-expense-row {
    display: grid;
    grid-template-columns: 1fr .75fr 44px;
    gap: 8px;
    align-items: center;
}

.fixed-expense-row input {
    margin: 4px 0;
}

.remove-expense-btn {
    background: #ef4444;
    min-height: 42px;
    padding: 10px;
}

.remove-expense-btn:hover {
    background: #dc2626;
}

.fixed-expense-total {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-top: 10px;
    padding: 11px 12px;
    border: 1px solid rgba(148,163,184,.35);
    border-radius: 8px;
    color: #ffffff;
    font-weight: 800;
}

.fixed-expense-total strong {
    color: #22c55e;
    font-size: 18px;
}

.fixed-expense-basis {
    margin-top: 10px;
}

.fixed-expense-basis .field-label {
    margin-top: 8px;
}

.fixed-expense-breakdown {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.fixed-expense-card {
    border: 1px solid rgba(148,163,184,.28);
    border-radius: 8px;
    padding: 10px;
    color: #cbd5e1;
    background: rgba(15,23,42,.72);
}

.fixed-expense-card span {
    display: block;
    font-size: 12px;
}

.fixed-expense-card strong {
    display: block;
    margin-top: 5px;
    color: #ffffff;
    font-size: 17px;
}

.product-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(46px, .55fr) minmax(68px, .75fr) minmax(76px, .8fr) 34px;
    gap: 8px;
    align-items: center;
}

.product-grid input {
    margin: 4px 0;
    min-width: 0;
}

.product-row {
    display: contents;
}

.producto-total {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin: 4px 0;
    padding: 0 8px;
    border: 1px solid rgba(56, 189, 248, 0.32);
    border-radius: 8px;
    background: rgba(8, 47, 87, 0.72);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.remove-product-btn {
    width: 34px;
    height: 34px;
    margin: 4px 0;
    border: 1px solid rgba(248, 113, 113, 0.45);
    border-radius: 8px;
    background: rgba(127, 29, 29, 0.78);
    color: #ffffff;
    font-weight: 900;
    cursor: pointer;
}

.remove-product-btn:hover {
    background: rgba(185, 28, 28, 0.92);
}

.add-product-btn {
    background: #0ea5e9;
}

.add-product-btn:hover {
    background: #0284c7;
}

@media (max-width: 430px) {
    .product-grid {
        grid-template-columns: minmax(0, 1.1fr) 44px 62px 68px 30px;
        gap: 6px;
    }

    .producto-total {
        min-height: 42px;
        padding: 0 5px;
        font-size: 11px;
    }

    .remove-product-btn {
        width: 30px;
        height: 32px;
        font-size: 12px;
    }
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.form-grid input,
.form-grid select {
    margin: 4px 0;
}

.billing-grid {
    align-items: end;
}

.billing-field {
    min-width: 0;
}

.billing-field .field-label {
    margin: 4px 0 2px;
    color: #93c5fd;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.billing-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
}

.billing-summary-card {
    min-width: 0;
    padding: 10px;
    border: 1px solid rgba(56, 189, 248, .22);
    border-radius: 10px;
    background: rgba(15, 23, 42, .58);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.billing-summary-card span {
    display: block;
    color: #93c5fd;
    font-size: 11px;
    font-weight: 800;
}

.billing-summary-card strong {
    display: block;
    margin-top: 5px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 900;
}

.billing-summary-card.warning strong {
    color: #f97316;
}

.billing-summary-card.danger strong {
    color: #f87171;
}

.billing-action-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.billing-action-btn {
    min-height: 42px;
    border: 1px solid rgba(56, 189, 248, .26) !important;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(14, 165, 233, .92), rgba(8, 47, 87, .92)) !important;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 900;
}

.billing-action-btn.primary {
    background: linear-gradient(135deg, #f97316, #0ea5e9) !important;
}

@media (max-width: 430px) {
    .billing-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

button {
    background: #22c55e;
    color: white;
    font-weight: 800;
    cursor: pointer;
}

button:hover {
    background: #16a34a;
}

.ticket-actions {
    margin: 18px 0 12px;
    padding: 12px;
    border: 1px solid rgba(56, 189, 248, .18);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(14, 165, 233, .12), rgba(249, 115, 22, .08)),
        rgba(7, 17, 31, .58);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 18px 34px rgba(2, 8, 23, .18);
}

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

.ticket-actions .ticket-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid rgba(148, 215, 255, .22);
    border-radius: 8px;
    background: linear-gradient(135deg, #0b2440, #12385a);
    color: #f8fafc;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.15;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.13), 0 10px 22px rgba(2, 8, 23, .18);
}

.ticket-actions .ticket-action-btn:hover {
    background: linear-gradient(135deg, #0f3154, #17476f);
    border-color: rgba(56, 189, 248, .44);
    transform: translateY(-1px);
}

.ticket-actions .action-accent {
    background: linear-gradient(135deg, #0ea5e9, #f97316);
    border-color: rgba(255, 255, 255, .24);
}

.ticket-actions .action-accent:hover {
    background: linear-gradient(135deg, #38bdf8, #fb923c);
}

.ticket-actions .action-muted {
    background: linear-gradient(135deg, #142235, #1d2f45);
    color: #dbeafe;
}

.action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex: 0 0 auto;
    background: rgba(56, 189, 248, .16);
    border: 1px solid rgba(148, 215, 255, .22);
    color: #f8fafc;
    font-size: 11px;
    font-weight: 900;
}

.whatsapp-action-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 10px 0 8px;
}

.whatsapp-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(37, 211, 102, .42);
    background: linear-gradient(135deg, rgba(11, 32, 47, .96), rgba(8, 58, 39, .94));
    color: #f8fafc;
    text-decoration: none;
    font-size: 14px;
    font-weight: 900;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.13), 0 12px 26px rgba(2, 8, 23, .22);
}

.whatsapp-action:hover {
    border-color: rgba(37, 211, 102, .78);
    background: linear-gradient(135deg, rgba(13, 45, 62, .98), rgba(9, 82, 51, .98));
    transform: translateY(-1px);
}

.whatsapp-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    flex: 0 0 auto;
    background: #25d366;
    color: white;
    box-shadow: 0 8px 18px rgba(37, 211, 102, .28), inset 0 1px 0 rgba(255,255,255,.32);
}

.whatsapp-logo svg {
    width: 25px;
    height: 25px;
    fill: currentColor;
}

.whatsapp-label {
    line-height: 1.05;
}

.integration-actions {
    margin-top: 8px;
}

.action-link-button {
    display:block;
    width:100%;
    padding:13px;
    margin:8px 0;
    border-radius:10px;
    background:#22c55e;
    color:white;
    font-size:15px;
    font-weight:800;
    text-align:center;
    text-decoration:none;
    cursor:pointer;
}

.action-link-button:hover {
    background:#16a34a;
}

.action-status {
    min-height: 22px;
    margin: 6px 0 10px;
    color: #38bdf8;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

.action-status.error {
    color: #fb923c;
}

.global-action-toast {
    position: fixed;
    top: 86px;
    right: 24px;
    z-index: 99999;
    width: min(420px, calc(100vw - 32px));
    padding: 14px 18px;
    border: 1px solid rgba(56, 189, 248, .42);
    border-radius: 16px;
    color: #e0f2fe;
    background:
        linear-gradient(135deg, rgba(14, 165, 233, .18), rgba(249, 115, 22, .12)),
        rgba(2, 8, 23, .94);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, .06),
        0 22px 48px rgba(0, 0, 0, .38),
        0 0 32px rgba(14, 165, 233, .18);
    font-size: 13px;
    font-weight: 900;
    line-height: 1.35;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px) scale(.98);
    transition: opacity .22s ease, transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.global-action-toast.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.global-action-toast.error {
    border-color: rgba(248, 113, 113, .58);
    color: #fee2e2;
    background:
        linear-gradient(135deg, rgba(239, 68, 68, .20), rgba(249, 115, 22, .14)),
        rgba(2, 8, 23, .95);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, .06),
        0 22px 48px rgba(0, 0, 0, .38),
        0 0 34px rgba(239, 68, 68, .20);
}

.admin-chat-widget {
    position: fixed;
    top: 184px;
    right: 0;
    z-index: 130;
    display: flex;
    align-items: flex-start;
    transform: translateX(calc(100% - 48px));
    transition: transform .28s ease;
    pointer-events: none;
}

.admin-chat-widget.is-open {
    transform: translateX(0);
}

.admin-chat-tab {
    position: relative;
    width: 48px !important;
    height: 74px !important;
    min-height: 74px !important;
    margin: 36px 0 0 !important;
    padding: 0 !important;
    display: grid !important;
    place-items: center;
    border: 1px solid rgba(56, 189, 248, .45) !important;
    border-right: 0 !important;
    border-radius: 18px 0 0 18px !important;
    color: #e0f2fe !important;
    background:
        linear-gradient(135deg, rgba(14, 165, 233, .88), rgba(249, 115, 22, .70)),
        rgba(2, 8, 23, .95) !important;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, .08),
        0 18px 42px rgba(0, 0, 0, .34),
        0 0 26px rgba(14, 165, 233, .22) !important;
    pointer-events: auto;
}

.admin-chat-tab svg {
    width: 26px;
    height: 26px;
    stroke: currentColor;
    stroke-width: 2.4;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.admin-chat-tab-avatar {
    width: 44px;
    height: 44px;
    display: block;
    border: 2px solid rgba(224, 242, 254, .88);
    border-radius: 999px;
    object-fit: cover;
    object-position: 50% 28%;
    background: transparent;
    box-shadow: 0 0 18px rgba(14, 165, 233, .35), 0 0 0 4px rgba(2, 8, 23, .28);
}

.admin-chat-tab-dot {
    position: absolute;
    right: 8px;
    bottom: 13px;
    width: 10px;
    height: 10px;
    border: 2px solid rgba(2, 8, 23, .96);
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 10px rgba(34, 197, 94, .6);
}

.admin-chat-widget.is-open .admin-chat-tab,
.admin-chat-tab:hover,
.admin-chat-tab:focus-visible {
    color: #ffffff !important;
    border-color: rgba(251, 146, 60, .72) !important;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, .10),
        0 18px 42px rgba(0, 0, 0, .34),
        0 0 34px rgba(249, 115, 22, .24) !important;
}

.admin-chat-panel {
    width: min(380px, calc(100vw - 56px));
    min-height: 430px;
    max-height: calc(100vh - 190px);
    overflow: auto;
    border: 1px solid rgba(56, 189, 248, .28);
    border-right: 0;
    border-radius: 22px 0 0 22px;
    background:
        radial-gradient(circle at 18% 0%, rgba(14, 165, 233, .22), transparent 36%),
        radial-gradient(circle at 92% 22%, rgba(249, 115, 22, .16), transparent 34%),
        linear-gradient(180deg, rgba(15, 23, 42, .96), rgba(2, 8, 23, .94));
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, .045),
        -26px 24px 60px rgba(0, 0, 0, .42);
    pointer-events: auto;
}

.admin-chat-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 20px 14px;
    border-bottom: 1px solid rgba(148, 163, 184, .16);
}

.admin-chat-avatar {
    width: 58px;
    height: 58px;
    flex: 0 0 auto;
    border: 2px solid rgba(224, 242, 254, .9);
    border-radius: 999px;
    object-fit: cover;
    object-position: 50% 32%;
    box-shadow:
        0 0 0 5px rgba(14, 165, 233, .10),
        0 0 24px rgba(14, 165, 233, .28),
        0 10px 22px rgba(0, 0, 0, .30);
}

.admin-chat-head div {
    display: grid;
    gap: 4px;
    flex: 1;
}

.admin-chat-kicker {
    color: #38bdf8;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.admin-chat-title {
    color: #f8fafc;
    font-size: 20px;
    font-weight: 950;
}

.admin-chat-assistant-name {
    color: #ffedd5;
    font-size: 12px;
    font-style: normal;
    font-weight: 850;
}

.admin-chat-close {
    width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(148, 163, 184, .24) !important;
    border-radius: 12px !important;
    color: #cbd5e1 !important;
    background: rgba(15, 23, 42, .72) !important;
    font-size: 13px !important;
    font-weight: 950 !important;
}

.admin-chat-body {
    padding: 18px 20px 20px;
    display: grid;
    gap: 14px;
}

.admin-chat-field {
    display: grid;
    gap: 7px;
    color: #dbeafe;
    font-size: 12px;
    font-weight: 950;
}

.admin-chat-field input,
.admin-chat-field select,
.admin-chat-field textarea {
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 14px;
    background: rgba(2, 8, 23, .72);
    color: #f8fafc;
    padding: 11px 12px;
    font: inherit;
    font-weight: 800;
    outline: none;
}

.admin-chat-field textarea {
    min-height: 128px;
    resize: vertical;
}

.admin-chat-field input:focus,
.admin-chat-field select:focus,
.admin-chat-field textarea:focus {
    border-color: rgba(56, 189, 248, .58);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, .12);
}

.admin-chat-company-search {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(56, 189, 248, .16);
    border-radius: 16px;
    background: rgba(15, 23, 42, .42);
}

.admin-chat-company-search[hidden] {
    display: none !important;
}

.admin-chat-company-results {
    display: grid;
    gap: 8px;
    max-height: 150px;
    overflow: auto;
}

.admin-chat-company-result {
    width: 100% !important;
    min-height: 58px !important;
    margin: 0 !important;
    padding: 10px 12px !important;
    display: grid !important;
    gap: 3px;
    text-align: left !important;
    border: 1px solid rgba(56, 189, 248, .18) !important;
    border-radius: 13px !important;
    color: #e0f2fe !important;
    background: rgba(2, 8, 23, .58) !important;
}

.admin-chat-company-result:hover,
.admin-chat-company-result:focus-visible {
    border-color: rgba(56, 189, 248, .48) !important;
    background: rgba(14, 165, 233, .14) !important;
}

.admin-chat-company-result strong {
    font-size: 13px;
    font-weight: 950;
}

.admin-chat-company-result span,
.admin-chat-company-empty {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 750;
}

.admin-chat-selected-company {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    padding: 9px 10px;
    border: 1px solid rgba(34, 197, 94, .28);
    border-radius: 12px;
    color: #bbf7d0;
    background: rgba(22, 101, 52, .18);
    font-size: 12px;
    font-weight: 850;
}

.admin-chat-selected-company[hidden] {
    display: none !important;
}

.admin-chat-selected-company strong {
    color: #ffffff;
}

.admin-chat-send-btn {
    min-height: 48px !important;
    margin: 2px 0 0 !important;
    border: 1px solid rgba(251, 146, 60, .55) !important;
    border-radius: 15px !important;
    color: #ffffff !important;
    background:
        linear-gradient(135deg, rgba(14, 165, 233, .76), rgba(249, 115, 22, .88)) !important;
    font-size: 14px !important;
    font-weight: 950 !important;
    box-shadow: 0 16px 36px rgba(14, 165, 233, .15), 0 14px 32px rgba(249, 115, 22, .14) !important;
}

.admin-chat-note {
    margin: 0;
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.35;
}

@media (max-width: 700px) {
    .global-action-toast {
        top: 18px;
        right: 16px;
        left: 16px;
        width: auto;
    }

    .admin-chat-widget {
        top: 118px;
        transform: translateX(calc(100% - 42px));
    }

    .admin-chat-tab {
        width: 42px !important;
        height: 62px !important;
        min-height: 62px !important;
        margin-top: 24px !important;
        border-radius: 15px 0 0 15px !important;
    }

    .admin-chat-panel {
        width: calc(100vw - 48px);
        max-height: calc(100vh - 136px);
        min-height: 380px;
    }
}

@media (max-width: 520px) {
    .ticket-actions-grid {
        grid-template-columns: 1fr;
    }

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

    .whatsapp-action {
        min-height: 50px;
        gap: 7px;
        padding: 8px;
        font-size: 12px;
    }

    .whatsapp-logo {
        width: 30px;
        height: 30px;
    }

    .whatsapp-logo svg {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 360px) {
    .whatsapp-action-row {
        grid-template-columns: 1fr;
    }
}

.preview-wrap {
    background: #020617;
    margin-top: 18px;
    padding: 12px;
    border-radius: 12px;
    overflow: auto;
}

#ticketCanvas {
    width: 100%;
    max-width: 430px;
    background: white;
    border-radius: 8px;
}

.small {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 8px;
}

#lockScreen{
    position:fixed; inset:0; z-index:99999;
    display:flex; align-items:center; justify-content:center; padding:22px;
    min-height:100vh;
    min-height:100dvh;
    background:
        linear-gradient(135deg, rgba(0,153,255,.18), rgba(255,122,24,.14)),
        linear-gradient(145deg, #06101b 0%, #101c2b 46%, #202733 100%);
    overflow-x:hidden;
    overflow-y:auto;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
}
#lockScreen::before{
    content:"";
    position:fixed; inset:0;
    background-image:
        linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
    background-size:38px 38px;
    mask-image:linear-gradient(to bottom, rgba(0,0,0,.72), rgba(0,0,0,.08));
    pointer-events:none;
}
.lockBox{
    position:relative; z-index:1;
    width:100%; max-width:430px; color:#f8fafc;
    background:rgba(9,20,33,.58);
    border:1px solid rgba(148,215,255,.22);
    border-radius:8px; padding:24px;
    box-shadow:0 28px 80px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.16);
    backdrop-filter:blur(24px) saturate(150%);
    -webkit-backdrop-filter:blur(24px) saturate(150%);
}
.lock-language-switch {
    position:absolute;
    top:14px;
    right:14px;
    display:flex;
    flex-direction:row;
    gap:7px;
    z-index:100000;
    padding:5px;
    border-radius:8px;
    background:rgba(2,8,14,.38);
    border:1px solid rgba(148,215,255,.22);
    box-shadow:0 14px 32px rgba(0,0,0,.26), inset 0 1px 0 rgba(255,255,255,.14);
    backdrop-filter:blur(16px);
    -webkit-backdrop-filter:blur(16px);
}
#lockScreen .lock-language-switch button {
    width:28px !important;
    height:20px !important;
    min-height:20px !important;
    padding:0 !important;
    margin:0 !important;
    border-radius:4px !important;
    border:1px solid rgba(255,255,255,.48) !important;
    background:transparent !important;
    box-shadow:0 5px 12px rgba(0,0,0,.22) !important;
    line-height:1 !important;
    overflow:hidden;
}
#lockScreen .lock-language-switch button:hover,
#lockScreen .lock-language-switch button.active {
    border-color:#f97316 !important;
    box-shadow:0 0 0 2px rgba(249,115,22,.22), 0 5px 12px rgba(0,0,0,.24) !important;
    filter:none;
}
.flag-icon {
    position:relative;
    display:block;
    width:100%;
    height:100%;
}
.flag-es {
    background:linear-gradient(to bottom, #c60b1e 0 25%, #ffc400 25% 75%, #c60b1e 75% 100%);
}
.flag-us {
    background:repeating-linear-gradient(to bottom, #b22234 0 1.54px, #fff 1.54px 3.08px);
}
.flag-us::before {
    content:"";
    position:absolute;
    top:0;
    left:0;
    width:42%;
    height:54%;
    background:#3c3b6e;
}
.lockBrand{
    display:flex; flex-direction:column; align-items:center; gap:14px; text-align:center;
}
.lockLogoFrame{
    width:176px; height:176px; border-radius:8px;
    display:flex; align-items:center; justify-content:center;
    background:rgba(2,8,14,.32);
    border:1px solid rgba(148,215,255,.22);
    box-shadow:0 18px 44px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.16);
    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);
    overflow:hidden;
}
.lockLogoImage{
    width:100%; height:100%; object-fit:cover; display:block;
}
.lockBrandText{
    width:100%;
}
.lockEyebrow{
    display:block; color:#38bdf8; font-size:12px; font-weight:900;
    text-transform:uppercase; letter-spacing:0; margin-bottom:4px;
}
.lockBox h1{
    margin:0; font-size:30px; line-height:1.05; color:#f8fafc;
}
.lockIntro{
    margin:18px 0 18px; color:#cbd5e1; line-height:1.45; text-align:center;
}
.lockPanel{
    background:rgba(15,32,50,.54);
    border:1px solid rgba(148,215,255,.18);
    border-radius:8px;
    padding:16px;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.12);
    backdrop-filter:blur(16px);
    -webkit-backdrop-filter:blur(16px);
}
.lockInputLabel{
    display:block; margin:0 0 8px; color:#dbeafe;
    font-size:13px; font-weight:800; text-align:left;
}
.supabase-login-fields {
    display:block;
}
body.supabase-auth-ready .supabase-login-fields {
    display:block;
}
body.local-access-mode .supabase-login-fields {
    display:none;
}
.lockBox input{
    width:100%; padding:13px; border-radius:8px;
    border:1px solid rgba(148,215,255,.24); margin:0 0 12px; font-size:16px;
    background:rgba(2,8,14,.52); color:#f8fafc;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.1);
}
.lockBox input::placeholder{color:#94a3b8;}
.lockBox input:focus{
    outline:none; border-color:#38bdf8;
    box-shadow:0 0 0 3px rgba(56,189,248,.16);
}
.password-input-wrap {
    position:relative;
    margin:0 0 12px;
}
.password-input-wrap input {
    margin:0;
    padding-right:50px;
}
#lockScreen .password-toggle {
    position:absolute;
    top:50%;
    right:8px;
    transform:translateY(-50%);
    width:36px !important;
    height:36px !important;
    min-height:36px !important;
    padding:0 !important;
    margin:0 !important;
    display:flex;
    align-items:center;
    justify-content:center;
    border:1px solid rgba(148,215,255,.2) !important;
    border-radius:8px !important;
    background:rgba(15,32,50,.76) !important;
    color:#dbeafe !important;
    box-shadow:none !important;
    cursor:pointer;
}
#lockScreen .password-toggle:hover {
    border-color:#38bdf8 !important;
    background:rgba(14,165,233,.18) !important;
    filter:none;
}
.password-eye-icon {
    width:18px;
    height:18px;
    fill:none;
    stroke:currentColor;
    stroke-width:2;
    stroke-linecap:round;
    stroke-linejoin:round;
}
.password-eye-closed {
    display:none;
}
.password-toggle.is-visible .password-eye-open {
    display:none;
}
.password-toggle.is-visible .password-eye-closed {
    display:block;
}
.lockBox button{
    width:100%; padding:13px; border-radius:8px; border:none;
    background:linear-gradient(135deg, #0ea5e9, #f97316);
    color:white; font-weight:900;
    box-shadow:0 16px 28px rgba(14,165,233,.22), inset 0 1px 0 rgba(255,255,255,.3);
}
.lockBox button:hover{
    filter:brightness(1.06);
}
.signup-open-btn {
    margin-top:10px !important;
    border:1px solid rgba(56,189,248,.24) !important;
    background:rgba(15,23,42,.58) !important;
    color:#bfdbfe !important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.10) !important;
}
#lockScreen .clear-login-session-btn {
    width:100% !important;
    min-height:0 !important;
    margin:10px 0 0 !important;
    padding:8px 10px !important;
    border:1px solid rgba(148,215,255,.16) !important;
    border-radius:8px !important;
    background:rgba(15,32,50,.42) !important;
    color:#93c5fd !important;
    font-size:12px !important;
    font-weight:800 !important;
    box-shadow:none !important;
}
#lockScreen .clear-login-session-btn:hover {
    border-color:rgba(249,115,22,.42) !important;
    color:#fed7aa !important;
    background:rgba(249,115,22,.12) !important;
    filter:none;
}
.lockError{
    color:#fb923c; min-height:22px; margin-top:10px;
    font-size:13px; font-weight:700; text-align:center;
}
.auth-mode-note {
    margin:-4px 0 12px;
    color:#93c5fd;
    font-size:12px;
    line-height:1.4;
    text-align:left;
}
.lock-user-badge {
    display:none;
    margin-top:10px;
    padding:9px 10px;
    border-radius:8px;
    border:1px solid rgba(34,197,94,.24);
    background:rgba(22,101,52,.18);
    color:#bbf7d0;
    font-size:12px;
    font-weight:800;
    text-align:center;
}
.lock-user-badge.show {
    display:block;
}
.lockFooter{
    margin-top:14px; color:#94a3b8; font-size:12px; text-align:center;
}
.legal-links{
    display:flex; align-items:center; justify-content:center; gap:8px;
    margin-top:10px; color:#64748b; font-size:12px;
}
#lockScreen .legal-link-btn{
    width:auto !important;
    min-height:0 !important;
    padding:0 !important;
    margin:0 !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    box-shadow:none !important;
    color:#38bdf8 !important;
    font-size:12px !important;
    font-weight:800 !important;
    line-height:1.2 !important;
}
#lockScreen .legal-link-btn:hover{
    color:#fb923c !important;
    text-decoration:underline;
    filter:none;
}
.legal-modal{
    position:fixed; inset:0; z-index:100001;
    display:none; align-items:center; justify-content:center;
    padding:20px;
    background:rgba(2,8,14,.58);
    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);
}
.legal-modal.show{
    display:flex;
}
.signup-modal{
    position:fixed; inset:0; z-index:100001;
    display:none; align-items:center; justify-content:center;
    padding:20px;
    background:rgba(2,8,14,.64);
    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);
}
.signup-modal.show{
    display:flex;
}
.legal-modal-card{
    position:relative;
    width:100%; max-width:620px; max-height:82vh; overflow:auto;
    padding:24px;
    color:#e2e8f0;
    background:rgba(9,20,33,.82);
    border:1px solid rgba(148,215,255,.24);
    border-radius:8px;
    box-shadow:0 28px 80px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.14);
}
.signup-modal-card{
    position:relative;
    width:100%; max-width:520px; max-height:86vh; overflow:auto;
    padding:22px;
    color:#e2e8f0;
    background:rgba(9,20,33,.88);
    border:1px solid rgba(148,215,255,.24);
    border-radius:10px;
    box-shadow:0 28px 80px rgba(0,0,0,.52), inset 0 1px 0 rgba(255,255,255,.14);
}
.legal-modal-card h2{
    margin:0 40px 14px 0;
    font-size:24px;
    color:#f8fafc;
}
.signup-modal-card h2{
    margin:0 40px 8px 0;
    font-size:24px;
    color:#f8fafc;
}
.signup-modal-card p{
    margin:0 0 16px;
    color:#cbd5e1;
    line-height:1.45;
    font-size:14px;
}
.signup-form-grid {
    display:grid;
    gap:0;
}
.signup-modal-card input{
    width:100%;
    padding:12px;
    margin:0 0 12px;
    border-radius:8px;
    border:1px solid rgba(148,215,255,.24);
    background:rgba(2,8,14,.52);
    color:#f8fafc;
    font-size:15px;
}
.signup-hint {
    padding:10px;
    border-radius:8px;
    border:1px solid rgba(56,189,248,.18);
    background:rgba(14,165,233,.08);
    color:#bfdbfe !important;
    font-size:12px !important;
}
.signup-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
}
#lockScreen .signup-actions button{
    width:100% !important;
    min-height:42px !important;
    margin:0 !important;
    padding:12px !important;
    border-radius:8px !important;
    font-weight:900 !important;
}
.signup-secondary-btn{
    border:1px solid rgba(148,163,184,.26) !important;
    background:rgba(30,41,59,.82) !important;
    color:#dbeafe !important;
}
.signup-primary-btn{
    border:1px solid rgba(249,115,22,.30) !important;
    background:linear-gradient(135deg, #0ea5e9, #f97316) !important;
    color:#ffffff !important;
}
.signup-error{
    min-height:20px;
    margin-top:12px;
}
.signup-error.success{
    color:#86efac;
}
.legal-modal-body section{
    margin-top:16px;
}
.legal-modal-body h3{
    margin:0 0 6px;
    color:#38bdf8;
    font-size:14px;
}
.legal-modal-body p{
    margin:0;
    color:#cbd5e1;
    line-height:1.55;
    font-size:14px;
}
#lockScreen .legal-close-btn{
    position:absolute;
    top:14px; right:14px;
    width:30px !important; height:30px !important; min-height:30px !important;
    padding:0 !important; margin:0 !important;
    border-radius:8px !important;
    border:1px solid rgba(148,215,255,.24) !important;
    background:rgba(2,8,14,.48) !important;
    color:#f8fafc !important;
    box-shadow:none !important;
    font-size:13px !important;
    font-weight:900 !important;
}
#lockScreen .legal-close-btn:hover{
    background:rgba(249,115,22,.28) !important;
    filter:none;
}
.remember-device{
    display:flex; align-items:center; gap:8px;
    margin:0 0 12px; color:#cbd5e1; font-size:14px; text-align:left;
}
.remember-device input{
    width:auto; padding:0; border-radius:0; margin:0; accent-color:#f97316;
}
.remember-device span{line-height:1.3;}

@media (max-width: 560px), (max-height: 760px) {
    #lockScreen {
        align-items:flex-start;
        padding:56px 16px 20px;
    }

    .lockBox {
        max-width:100%;
        padding:20px 16px;
    }

    .lockLogoFrame {
        width:132px;
        height:132px;
    }

    .lockBox h1 {
        font-size:26px;
    }

    .lockIntro {
        margin:14px 0;
    }
}

@media (max-height: 680px) {
    .lockLogoFrame {
        width:112px;
        height:112px;
    }

    .lockPanel {
        padding:14px;
    }
}

body.desktop-device:not(.access-locked) {
    padding: 74px 0 0 122px !important;
}

body.desktop-device .desktop-flow-sidebar {
    position: fixed !important;
    z-index: 90 !important;
    left: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 122px !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 88px 10px 18px 0 !important;
    border-right: 1px solid rgba(148, 163, 184, .18) !important;
    background:
        linear-gradient(180deg, rgba(2, 6, 23, .94), rgba(2, 12, 27, .92)),
        radial-gradient(circle at 90% 12%, rgba(14, 165, 233, .18), transparent 34%) !important;
    box-shadow: 18px 0 46px rgba(0, 0, 0, .32) !important;
}

body.desktop-device .desktop-flow-topbar {
    position: fixed !important;
    z-index: 95 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 74px !important;
    min-width: 1320px !important;
    display: flex !important;
    align-items: center !important;
    overflow: visible !important;
    padding: 0 24px !important;
    border-bottom: 1px solid rgba(148, 163, 184, .18) !important;
    background:
        linear-gradient(180deg, rgba(2, 6, 23, .96), rgba(2, 12, 27, .92)),
        radial-gradient(circle at 25% 0%, rgba(14, 165, 233, .10), transparent 36%) !important;
    box-shadow: 0 16px 42px rgba(0, 0, 0, .28) !important;
}

body.desktop-device .desktop-flow-stage {
    position: fixed !important;
    z-index: 80 !important;
    left: 122px !important;
    top: 74px !important;
    right: 0 !important;
    bottom: 0 !important;
    display: none !important;
    grid-template-rows: auto minmax(0, 1fr) auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding: 30px 32px 18px !important;
    background:
        radial-gradient(circle at 16% 10%, rgba(14, 165, 233, .13), transparent 28%),
        radial-gradient(circle at 84% 18%, rgba(56, 189, 248, .08), transparent 30%),
        linear-gradient(180deg, var(--desktop-flow-bg, #020617) 0%, var(--desktop-flow-bg-mid, #03111f) 52%, var(--desktop-flow-bg, #020617) 100%) !important;
}

body.desktop-device.desktop-flow-view .desktop-flow-stage {
    display: grid !important;
}

body.desktop-device.desktop-flow-fullscreen:not(.access-locked) {
    padding-left: 0 !important;
}

body.desktop-device.desktop-flow-fullscreen .desktop-flow-sidebar {
    display: none !important;
}

body.desktop-device.desktop-flow-fullscreen .desktop-flow-stage {
    left: 0 !important;
}

body.desktop-device.desktop-flow-fullscreen .desktop-fullscreen-btn {
    color: #38bdf8 !important;
    border-color: rgba(56, 189, 248, .42) !important;
    background: rgba(14, 165, 233, .16) !important;
    box-shadow: inset 0 0 0 1px rgba(56, 189, 248, .18), 0 0 24px rgba(14, 165, 233, .18) !important;
}

@media (max-height: 860px) {
    .desktop-flow-sidebar,
    body.desktop-device .desktop-flow-sidebar {
        overflow-y: auto !important;
        overflow-x: hidden !important;
        padding-bottom: 12px !important;
        scrollbar-width: thin;
        scrollbar-color: rgba(56, 189, 248, .42) transparent;
    }

    .desktop-flow-sidebar::-webkit-scrollbar,
    body.desktop-device .desktop-flow-sidebar::-webkit-scrollbar {
        width: 6px;
    }

    .desktop-flow-sidebar::-webkit-scrollbar-thumb,
    body.desktop-device .desktop-flow-sidebar::-webkit-scrollbar-thumb {
        border-radius: 999px;
        background: rgba(56, 189, 248, .42);
    }

    .desktop-flow-nav,
    body.desktop-device .desktop-flow-nav {
        flex: 0 0 auto !important;
        overflow: visible !important;
        padding-bottom: 0 !important;
    }

    .desktop-flow-settings,
    body.desktop-device .desktop-flow-settings {
        margin-top: 7px !important;
    }
}

body.desktop-device.desktop-flow-view .app {
    max-width: none !important;
    min-height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
}

body.desktop-device.desktop-flow-view .active-company-badge,
body.desktop-device.desktop-flow-view .mobile-app-workspace,
body.desktop-device.desktop-flow-view .section,
body.desktop-device.desktop-flow-view .section-config,
body.desktop-device.desktop-flow-view .ticket-actions,
body.desktop-device.desktop-flow-view .preview-wrap,
body.desktop-device.desktop-flow-view #ticketCanvas,
body.desktop-device.desktop-flow-view .app > h1,
body.desktop-device.desktop-flow-view .app > label,
body.desktop-device.desktop-flow-view .app > select,
body.desktop-device.desktop-flow-view .app > textarea,
body.desktop-device.desktop-flow-view .app > input,
body.desktop-device.desktop-flow-view .app > button,
body.desktop-device.desktop-flow-view .app > .small {
    display: none !important;
}

body.desktop-device .mobile-workspace-shell,
body.desktop-device .app-top-brand,
body.desktop-device .app-language-switch {
    display: none !important;
}

.desktop-analytics-stage {
    display: none;
}

.desktop-analytics-brand-watermark {
    position: fixed;
    right: clamp(28px, 5vw, 76px);
    bottom: clamp(28px, 5vh, 66px);
    z-index: 0;
    display: grid;
    justify-items: center;
    gap: 10px;
    opacity: .13;
    pointer-events: none;
    user-select: none;
    filter: drop-shadow(0 0 42px rgba(14, 165, 233, .22));
}

.desktop-analytics-brand-watermark img {
    width: clamp(210px, 18vw, 330px);
    height: auto;
    border-radius: 18px;
}

.desktop-analytics-brand-watermark span {
    color: #e0f2fe;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.desktop-analytics-zoom-canvas {
    position: relative;
    z-index: 1;
    transform-origin: top left;
    zoom: var(--desktop-analytics-zoom, 1);
}

body.desktop-dashboard-view .app,
body.desktop-device.desktop-dashboard-view .app {
    max-width: none !important;
    min-height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
}

body.desktop-dashboard-view .active-company-badge,
body.desktop-dashboard-view .mobile-app-workspace,
body.desktop-dashboard-view .section,
body.desktop-dashboard-view .section-config,
body.desktop-dashboard-view .ticket-actions,
body.desktop-dashboard-view .preview-wrap,
body.desktop-dashboard-view #ticketCanvas,
body.desktop-dashboard-view .app > h1,
body.desktop-dashboard-view .app > label,
body.desktop-dashboard-view .app > select,
body.desktop-dashboard-view .app > textarea,
body.desktop-dashboard-view .app > input,
body.desktop-dashboard-view .app > button,
body.desktop-dashboard-view .app > .small,
body.desktop-device.desktop-dashboard-view .active-company-badge,
body.desktop-device.desktop-dashboard-view .mobile-app-workspace,
body.desktop-device.desktop-dashboard-view .section,
body.desktop-device.desktop-dashboard-view .section-config,
body.desktop-device.desktop-dashboard-view .ticket-actions,
body.desktop-device.desktop-dashboard-view .preview-wrap,
body.desktop-device.desktop-dashboard-view #ticketCanvas,
body.desktop-device.desktop-dashboard-view .app > h1,
body.desktop-device.desktop-dashboard-view .app > label,
body.desktop-device.desktop-dashboard-view .app > select,
body.desktop-device.desktop-dashboard-view .app > textarea,
body.desktop-device.desktop-dashboard-view .app > input,
body.desktop-device.desktop-dashboard-view .app > button,
body.desktop-device.desktop-dashboard-view .app > .small {
    display: none !important;
}

body.desktop-dashboard-view .desktop-flow-stage,
body.desktop-device.desktop-dashboard-view .desktop-flow-stage {
    display: none !important;
}

body.desktop-dashboard-view .desktop-analytics-stage,
body.desktop-device.desktop-dashboard-view .desktop-analytics-stage {
    position: fixed !important;
    z-index: 80 !important;
    left: 122px !important;
    top: 74px !important;
    right: 0 !important;
    bottom: 0 !important;
    display: grid !important;
    grid-template-rows: auto auto auto minmax(0, 1fr) auto !important;
    gap: 16px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    overflow: auto !important;
    padding: 22px 28px 24px !important;
    background:
        radial-gradient(circle at 16% 8%, rgba(14, 165, 233, .12), transparent 30%),
        radial-gradient(circle at 84% 12%, rgba(34, 197, 94, .08), transparent 32%),
        linear-gradient(180deg, var(--desktop-flow-bg, #020617) 0%, var(--desktop-flow-bg-mid, #03111f) 48%, var(--desktop-flow-bg, #020617) 100%) !important;
    color: #f8fafc !important;
    scrollbar-width: thin;
    scrollbar-color: rgba(56, 189, 248, .38) rgba(2, 6, 23, .6);
}

body.desktop-flow-fullscreen.desktop-dashboard-view .desktop-analytics-stage,
body.desktop-device.desktop-flow-fullscreen.desktop-dashboard-view .desktop-analytics-stage {
    left: 0 !important;
}

.desktop-analytics-stage::before {
    content: "";
    position: fixed;
    inset: 74px 0 0 122px;
    pointer-events: none;
    opacity: .45;
    background-image:
        linear-gradient(rgba(56, 189, 248, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, .06) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, .72), transparent 95%);
}

body.desktop-flow-fullscreen.desktop-dashboard-view .desktop-analytics-stage::before,
body.desktop-device.desktop-flow-fullscreen.desktop-dashboard-view .desktop-analytics-stage::before {
    left: 0;
}

.desktop-analytics-header,
.desktop-analytics-gauges,
.desktop-analytics-stat-row,
.desktop-analytics-market-panel,
.desktop-analytics-content-grid,
.desktop-analytics-bottom-grid {
    position: relative;
    z-index: 1;
}

.desktop-analytics-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
}

.desktop-analytics-icon {
    width: 58px !important;
    height: 58px !important;
    min-height: 58px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(148, 163, 184, .35) !important;
    border-radius: 10px !important;
    background:
        linear-gradient(180deg, rgba(30, 41, 59, .82), rgba(2, 8, 23, .80)),
        radial-gradient(circle at 50% 0%, rgba(56, 189, 248, .20), transparent 62%) !important;
    color: #bae6fd !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04), 0 18px 34px rgba(0, 0, 0, .30) !important;
}

.desktop-analytics-icon svg {
    width: 32px;
    height: 32px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.desktop-analytics-title-block h2 {
    margin: 0;
    color: #f8fafc;
    font-size: clamp(24px, 2.2vw, 34px);
    line-height: 1.05;
    letter-spacing: 0;
}

.desktop-analytics-title-block p {
    margin: 6px 0 0;
    color: #cbd5e1;
    font-size: 15px;
}

.desktop-analytics-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    min-width: 0;
}

.desktop-analytics-date-btn,
.desktop-analytics-filter-btn,
.analytics-panel-action {
    width: auto !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 0 18px !important;
    border: 1px solid rgba(56, 189, 248, .18) !important;
    border-radius: 8px !important;
    background: rgba(2, 8, 23, .72) !important;
    color: #f8fafc !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .03) !important;
}

.desktop-analytics-date-btn,
.desktop-analytics-filter-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    font-size: 14px !important;
}

.desktop-analytics-zoom-controls {
    display: inline-grid;
    grid-template-columns: 38px 62px 38px;
    align-items: center;
    overflow: hidden;
    border: 1px solid rgba(56, 189, 248, .20);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, .78), rgba(2, 8, 23, .70)),
        radial-gradient(circle at 50% 0%, rgba(56, 189, 248, .12), transparent 58%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .035), 0 12px 26px rgba(0, 0, 0, .22);
}

.desktop-analytics-zoom-controls button {
    width: 38px !important;
    min-height: 42px !important;
    height: 42px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: rgba(14, 165, 233, .08) !important;
    color: #dbeafe !important;
    font-size: 18px !important;
    font-weight: 950 !important;
    box-shadow: none !important;
}

.desktop-analytics-zoom-controls button:hover,
.desktop-analytics-zoom-controls button:focus-visible {
    background: rgba(14, 165, 233, .18) !important;
    color: #ffffff !important;
}

.desktop-analytics-zoom-controls button:disabled {
    color: #64748b !important;
    opacity: .55;
    cursor: default;
}

.desktop-analytics-zoom-controls span {
    display: grid;
    place-items: center;
    height: 42px;
    color: #bae6fd;
    border-left: 1px solid rgba(56, 189, 248, .16);
    border-right: 1px solid rgba(56, 189, 248, .16);
    font-size: 12px;
    font-weight: 900;
}

.desktop-analytics-date-btn svg,
.desktop-analytics-filter-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.desktop-analytics-gauges {
    display: grid;
    grid-template-columns: repeat(6, minmax(138px, 1fr));
    overflow: hidden;
    border: 1px solid rgba(14, 165, 233, .12);
    border-radius: 10px;
    background:
        linear-gradient(90deg, rgba(8, 47, 73, .36), rgba(2, 8, 23, .62), rgba(8, 47, 73, .34)),
        rgba(2, 6, 23, .82);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .025), 0 18px 36px rgba(0, 0, 0, .24);
}

.desktop-analytics-gauge-card {
    position: relative;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 6px;
    min-height: 190px;
    padding: 16px 14px 34px;
    border-right: 1px solid rgba(148, 163, 184, .08);
    text-align: center;
}

.desktop-analytics-gauge-card:last-child {
    border-right: 0;
}

.desktop-analytics-gauge-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 16%;
    left: 16%;
    height: 3px;
    border-radius: 0 0 999px 999px;
    background: var(--gauge-color);
    box-shadow: 0 0 16px color-mix(in srgb, var(--gauge-color) 70%, transparent);
}

.desktop-analytics-gauge {
    width: 112px;
    height: 112px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%, rgba(2, 6, 23, .98) 58%, transparent 59%),
        conic-gradient(var(--gauge-color) var(--gauge-value), rgba(148, 163, 184, .16) 0);
    box-shadow: 0 0 34px color-mix(in srgb, var(--gauge-color) 24%, transparent);
}

.desktop-analytics-gauge span {
    color: #dbeafe;
    max-width: 94px;
    padding: 0 4px;
    overflow-wrap: normal;
    white-space: nowrap;
    color: #dbeafe;
    font-size: clamp(15px, 1.25vw, 28px);
    font-weight: 800;
    line-height: 1.05;
    text-align: center;
}

.desktop-analytics-gauge-card strong {
    color: #e2e8f0;
    font-size: 13px;
    font-weight: 700;
}

.desktop-analytics-gauge-card em {
    color: var(--gauge-color);
    font-size: 18px;
    font-style: normal;
    font-weight: 800;
}

.analytics-gauge-sales { --metric-line-color: #22c55e; }
.analytics-gauge-estimates { --metric-line-color: #38bdf8; }
.analytics-gauge-conversions { --metric-line-color: #f97316; }
.analytics-gauge-paid { --metric-line-color: #a3e635; }
.analytics-gauge-customers { --metric-line-color: #a855f7; }
.analytics-gauge-tax { --metric-line-color: #14b8a6; }

.analytics-tax-title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.analytics-tax-symbol {
    min-width: 22px;
    min-height: 22px;
    display: inline-grid;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--gauge-color) 62%, transparent);
    border-radius: 999px;
    color: var(--gauge-color);
    font-size: 13px;
    line-height: 1;
    box-shadow: 0 0 14px color-mix(in srgb, var(--gauge-color) 22%, transparent);
}

.analytics-tax-picker {
    position: relative;
    width: 82px;
    margin: -2px auto 0;
}

.analytics-tax-picker::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 10px;
    width: 7px;
    height: 7px;
    pointer-events: none;
    border-right: 2px solid var(--gauge-color);
    border-bottom: 2px solid var(--gauge-color);
    transform: translateY(-65%) rotate(45deg);
}

.analytics-tax-picker select {
    width: 100%;
    height: 28px;
    padding: 0 26px 0 10px;
    border: 1px solid color-mix(in srgb, var(--gauge-color) 48%, transparent);
    border-radius: 999px;
    appearance: none;
    background:
        linear-gradient(135deg, rgba(20, 184, 166, .18), rgba(2, 8, 23, .88));
    color: #ecfeff;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
    outline: 0;
    cursor: pointer;
    box-shadow: inset 0 0 16px rgba(20, 184, 166, .10);
}

.analytics-tax-picker select:focus {
    border-color: var(--gauge-color);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--gauge-color) 18%, transparent);
}

.analytics-tax-picker option {
    color: #0f172a;
}

.desktop-analytics-gauge-card small {
    position: absolute;
    right: 12px;
    bottom: 10px;
    left: 12px;
    color: #86efac;
    font-size: 12px;
    line-height: 1.1;
}

.desktop-analytics-stat-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(160px, 1fr));
    gap: 14px;
}

.desktop-analytics-stat-card {
    position: relative;
    min-height: 84px;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 14px 16px 30px;
    border: 1px solid rgba(56, 189, 248, .14);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(14, 165, 233, .10), rgba(2, 8, 23, .78)),
        rgba(15, 23, 42, .72);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .025), 0 14px 28px rgba(0, 0, 0, .20);
}

.desktop-analytics-stat-card > span {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: var(--stat-color, #38bdf8);
    background: color-mix(in srgb, var(--stat-color, #38bdf8) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--stat-color, #38bdf8) 32%, transparent);
    font-size: 26px;
    font-weight: 900;
}

.desktop-analytics-stat-card svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.desktop-analytics-stat-card small {
    display: block;
    color: #cbd5e1;
    font-size: 13px;
}

.desktop-analytics-stat-card strong {
    display: block;
    margin-top: 4px;
    color: #f8fafc;
    font-size: 21px;
}

.desktop-analytics-stat-card em {
    position: absolute;
    right: 16px;
    bottom: 9px;
    left: 78px;
    text-align: right;
    color: var(--stat-color, #22c55e);
    font-size: 13px;
    line-height: 1.1;
    font-style: normal;
    font-weight: 800;
}

.stat-green { --stat-color: #22c55e; }
.stat-red { --stat-color: #ef4444; }
.stat-profit { --stat-color: #facc15; }

.stat-profit small,
.stat-profit em {
    color: #facc15;
}
.stat-blue { --stat-color: #0ea5e9; }
.stat-purple { --stat-color: #a855f7; }

.desktop-analytics-content-grid,
.desktop-analytics-bottom-grid {
    display: none !important;
}

.desktop-analytics-market-panel {
    min-height: 520px;
    padding: 18px;
    border: 1px solid rgba(56, 189, 248, .20);
    border-radius: 10px;
    background:
        radial-gradient(circle at 15% 0%, rgba(14, 165, 233, .18), transparent 34%),
        radial-gradient(circle at 86% 18%, rgba(249, 115, 22, .10), transparent 30%),
        linear-gradient(180deg, rgba(8, 47, 73, .38), rgba(2, 8, 23, .90)),
        rgba(2, 6, 23, .92);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .03), 0 20px 42px rgba(0, 0, 0, .28);
}

.analytics-market-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    align-items: start;
    gap: 12px;
    margin-bottom: 10px;
}

.analytics-market-header span {
    color: #38bdf8;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.analytics-market-header h3 {
    margin: 4px 0 3px;
    color: #f8fafc;
    font-size: 23px;
    font-weight: 900;
    letter-spacing: 0;
}

.analytics-market-header p {
    margin: 0;
    color: #cbd5e1;
    font-size: 13px;
}

.analytics-market-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3px;
    max-width: 100%;
    margin-top: 5px;
    overflow: visible;
    position: relative;
    z-index: 2;
}

.market-legend-toggle {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    width: auto !important;
    min-width: max-content;
    max-width: max-content;
    gap: 6px;
    min-height: 28px;
    padding: 3px 9px;
    margin: 0;
    border: 1px solid rgba(56, 189, 248, .12);
    border-radius: 7px;
    color: #dbeafe;
    background: rgba(15, 23, 42, .36);
    font: inherit;
    cursor: pointer;
    transition: opacity .18s ease, transform .18s ease, border-color .18s ease, background .18s ease;
}

.market-legend-toggle:hover {
    transform: translateY(-1px);
    border-color: rgba(56, 189, 248, .38);
    background: rgba(15, 23, 42, .62);
}

.market-legend-toggle.is-muted {
    opacity: .42;
    background: rgba(15, 23, 42, .22);
}

.market-legend-toggle span {
    width: 18px;
    height: 4px;
    border-radius: 999px;
    box-shadow: 0 0 12px currentColor;
}

.market-legend-toggle b {
    color: #dbeafe;
    font-size: 16px;
    font-weight: 900;
    white-space: nowrap;
}

.market-legend-toggle .legend-sales {
    color: #22c55e;
    background: #22c55e;
}

.market-legend-toggle .legend-estimates {
    color: #38bdf8;
    background: #38bdf8;
}

.market-legend-toggle .legend-expenses {
    color: #ef4444;
    background: #ef4444;
}

.market-legend-toggle .legend-net {
    color: #facc15;
    background: #facc15;
}

.market-legend-toggle .legend-tax {
    color: #14b8a6;
    background: #14b8a6;
}

.analytics-market-controls {
    display: grid;
    grid-template-columns: repeat(8, minmax(38px, auto));
    justify-content: end;
    align-items: center;
    gap: 5px;
    width: max-content;
    max-width: 100%;
}

.analytics-market-controls button {
    min-width: 38px;
    height: 26px;
    padding: 0 8px;
    border: 1px solid rgba(56, 189, 248, .24);
    border-radius: 7px;
    color: #bfdbfe;
    background: rgba(15, 23, 42, .78);
    font: inherit;
    font-size: 10px;
    font-weight: 900;
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}

.analytics-market-controls button:hover,
.analytics-market-controls button.active {
    transform: translateY(-1px);
    color: #fff;
    border-color: rgba(56, 189, 248, .62);
    background: linear-gradient(135deg, rgba(14, 165, 233, .88), rgba(249, 115, 22, .82));
    box-shadow: 0 10px 22px rgba(14, 165, 233, .18);
}

.analytics-market-controls .analytics-market-reset-btn {
    min-width: 48px;
    color: #fed7aa;
    border-color: rgba(249, 115, 22, .34);
    background: rgba(67, 20, 7, .38);
}

.analytics-market-controls .analytics-market-reset-btn:hover {
    border-color: rgba(249, 115, 22, .72);
    background: linear-gradient(135deg, rgba(15, 23, 42, .82), rgba(249, 115, 22, .66));
}

.analytics-market-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 16px;
    align-items: stretch;
}

.analytics-market-chart-frame {
    position: relative;
    min-width: 0;
    min-height: 450px;
}

.analytics-market-chart-shell {
    position: relative;
    min-height: 450px;
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid rgba(56, 189, 248, .16);
    border-radius: 10px;
    background:
        linear-gradient(rgba(148, 163, 184, .055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, .055) 1px, transparent 1px),
        rgba(2, 8, 23, .72);
    background-size: 100% 72px, 86px 100%, 100% 100%;
    scrollbar-color: rgba(56, 189, 248, .55) rgba(15, 23, 42, .72);
    scrollbar-width: thin;
}

.analytics-market-chart-shell::-webkit-scrollbar {
    height: 8px;
}

.analytics-market-chart-shell::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, .72);
    border-radius: 999px;
}

.analytics-market-chart-shell::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, rgba(14, 165, 233, .82), rgba(249, 115, 22, .70));
    border-radius: 999px;
}

.analytics-market-graph-zoom,
.analytics-market-scale-zoom {
    position: absolute;
    z-index: 6;
    width: max-content;
    display: inline-flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid rgba(56, 189, 248, .24);
    border-radius: 8px;
    background: rgba(2, 8, 23, .90);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, .22);
}

.analytics-market-graph-zoom {
    top: 10px;
    left: 14px;
}

.analytics-market-scale-zoom {
    top: 10px;
    left: 146px;
}

.analytics-market-graph-zoom button,
.analytics-market-scale-zoom button {
    width: 31px;
    height: 26px;
    border: 0;
    border-right: 1px solid rgba(56, 189, 248, .18);
    color: #dbeafe;
    background: transparent;
    font: inherit;
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
}

.analytics-market-graph-zoom button:nth-child(2),
.analytics-market-scale-zoom button:nth-child(2) {
    width: 48px;
    color: #f8fafc;
}

.analytics-market-scale-zoom button:nth-child(2) {
    width: 58px;
}

.analytics-market-graph-zoom button:last-child,
.analytics-market-scale-zoom button:last-child {
    border-right: 0;
}

.analytics-market-graph-zoom button:hover,
.analytics-market-scale-zoom button:hover {
    color: #fff;
    background: linear-gradient(135deg, rgba(14, 165, 233, .52), rgba(249, 115, 22, .42));
}

.analytics-market-chart {
    width: 100%;
    height: 100%;
    min-height: 450px;
    display: block;
}

.market-chart-bg {
    fill: rgba(2, 8, 23, .15);
}

.market-grid-line {
    stroke: rgba(148, 163, 184, .14);
    stroke-width: 1;
}

.market-axis-label,
.market-x-label {
    fill: #94a3b8;
    font-size: 12px;
    font-weight: 700;
}

.market-axis-label {
    text-anchor: start;
}

.market-x-label {
    text-anchor: middle;
}

.market-price-axis {
    stroke: rgba(148, 163, 184, .22);
    stroke-width: 1;
}

.market-time-tick line {
    stroke: rgba(148, 163, 184, .20);
    stroke-width: 1;
}

.market-close-line {
    fill: none;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: opacity .18s ease, filter .18s ease;
}

.market-close-line.is-muted {
    opacity: .12;
    filter: none;
}

.market-sales-line {
    stroke: #22c55e;
    filter: drop-shadow(0 0 8px rgba(34, 197, 94, .58));
}

.market-estimates-line {
    stroke: #38bdf8;
    filter: drop-shadow(0 0 8px rgba(56, 189, 248, .58));
}

.market-expenses-line {
    stroke: #ef4444;
    filter: drop-shadow(0 0 8px rgba(239, 68, 68, .58));
}

.market-net-line {
    stroke: #facc15;
    filter: drop-shadow(0 0 8px rgba(250, 204, 21, .62));
}

.market-tax-line {
    stroke: #14b8a6;
    filter: drop-shadow(0 0 8px rgba(20, 184, 166, .62));
}

.market-live-guide {
    stroke: rgba(248, 250, 252, .42);
    stroke-width: 1.5;
    stroke-dasharray: 5 7;
    filter: drop-shadow(0 0 8px rgba(56, 189, 248, .42));
}

.market-live-label {
    fill: #f8fafc;
    font-size: 11px;
    font-weight: 900;
    text-anchor: middle;
    letter-spacing: .08em;
}

.market-area-fill {
    fill: url(#marketAreaGradient);
    transition: opacity .18s ease;
}

.market-area-fill.is-muted {
    opacity: .08;
}

.market-line-marker.is-muted {
    opacity: .16;
}

.market-line-marker.is-sales circle {
    fill: #22c55e;
    stroke: rgba(219, 234, 254, .92);
    stroke-width: 2;
    filter: drop-shadow(0 0 7px rgba(34, 197, 94, .72));
}

.market-line-marker.is-estimates circle {
    fill: #38bdf8;
    stroke: rgba(219, 234, 254, .92);
    stroke-width: 2;
    filter: drop-shadow(0 0 7px rgba(56, 189, 248, .72));
}

.market-line-marker.is-expenses circle {
    fill: #ef4444;
    stroke: rgba(255, 247, 237, .92);
    stroke-width: 2;
    filter: drop-shadow(0 0 7px rgba(239, 68, 68, .72));
}

.market-line-marker.is-net circle {
    fill: #facc15;
    stroke: rgba(255, 251, 235, .94);
    stroke-width: 2;
    filter: drop-shadow(0 0 7px rgba(250, 204, 21, .76));
}

.market-line-marker.is-tax circle {
    fill: #14b8a6;
    stroke: rgba(204, 251, 241, .94);
    stroke-width: 2;
    filter: drop-shadow(0 0 7px rgba(20, 184, 166, .76));
}

.market-price-tag line {
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-dasharray: 7 7;
    opacity: .88;
}

.market-price-tag rect {
    fill: color-mix(in srgb, currentColor 22%, rgba(2, 8, 23, .92));
    stroke: currentColor;
    stroke-width: 1.2;
    filter: drop-shadow(0 0 8px currentColor);
}

.market-price-tag text {
    fill: #fff;
    font-size: 12px;
    font-weight: 900;
    text-anchor: middle;
}

.market-price-tag.is-sales { color: #22c55e; }
.market-price-tag.is-estimates { color: #38bdf8; }
.market-price-tag.is-expenses { color: #ef4444; }
.market-price-tag.is-net { color: #facc15; }
.market-price-tag.is-tax { color: #14b8a6; }

.market-empty-label {
    fill: #94a3b8;
    font-size: 20px;
    font-weight: 900;
    text-anchor: middle;
}

.analytics-market-side {
    display: grid;
    gap: 10px;
}

.analytics-market-side div,
.analytics-market-strip article {
    padding: 14px;
    border: 1px solid rgba(56, 189, 248, .14);
    border-radius: 9px;
    background: rgba(15, 23, 42, .72);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .025);
}

.analytics-market-side small,
.analytics-market-strip small {
    display: block;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.analytics-market-side strong,
.analytics-market-strip strong {
    display: block;
    margin-top: 7px;
    color: #f8fafc;
    font-size: 21px;
    font-weight: 900;
}

.analytics-market-trend strong {
    color: #22c55e;
}

.analytics-market-trend.is-down strong {
    color: #ef4444;
}

.analytics-market-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.desktop-analytics-content-grid,
.desktop-analytics-bottom-grid {
    display: grid;
    grid-template-columns: 1.05fr .98fr 1.05fr;
    gap: 14px;
}

.desktop-analytics-panel {
    min-width: 0;
    padding: 16px 18px;
    border: 1px solid rgba(56, 189, 248, .16);
    border-radius: 8px;
    background:
        radial-gradient(circle at 18% 0%, rgba(14, 165, 233, .10), transparent 34%),
        linear-gradient(180deg, rgba(8, 47, 73, .34), rgba(2, 8, 23, .82)),
        rgba(2, 6, 23, .86);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .025), 0 16px 30px rgba(0, 0, 0, .22);
}

.desktop-analytics-panel h3 {
    margin: 0 0 16px;
    color: #e2e8f0;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0;
}

.analytics-chart-legend {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #cbd5e1;
    font-size: 12px;
    margin-bottom: 10px;
}

.analytics-chart-legend span,
.analytics-chart-legend em {
    width: 18px;
    height: 3px;
    border-radius: 999px;
}

.analytics-chart-legend b {
    font-weight: 600;
}

.analytics-chart-legend span {
    background: #0ea5e9;
}

.analytics-chart-legend em {
    background: #64748b;
}

.analytics-line-chart-placeholder {
    height: 188px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: end;
    gap: 8px;
    padding: 12px 8px 0;
    border-radius: 6px;
    background:
        linear-gradient(rgba(148, 163, 184, .08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, .08) 1px, transparent 1px),
        linear-gradient(180deg, transparent, rgba(14, 165, 233, .08));
    background-size: 100% 38px, 72px 100%, 100% 100%;
}

.analytics-line-chart-placeholder span {
    display: flex;
    align-items: end;
    justify-content: center;
    min-height: 32px;
    color: #94a3b8;
    font-size: 11px;
}

.analytics-mini-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 12px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, .12);
    border-radius: 8px;
}

.analytics-mini-stats div {
    padding: 10px 12px;
    border-right: 1px solid rgba(148, 163, 184, .10);
}

.analytics-mini-stats div:last-child {
    border-right: 0;
}

.analytics-mini-stats small,
.analytics-mini-stats em {
    display: block;
    color: #94a3b8;
    font-size: 12px;
    font-style: normal;
}

.analytics-mini-stats strong {
    display: block;
    margin: 4px 0;
    color: #f8fafc;
    font-size: 17px;
}

.analytics-mini-stats em {
    color: #22c55e;
}

.analytics-donut-layout {
    display: grid;
    grid-template-columns: 172px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
}

.analytics-donut-placeholder {
    width: 162px;
    height: 162px;
    display: grid;
    place-items: center;
    align-content: center;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%, rgba(2, 8, 23, .98) 50%, transparent 51%),
        conic-gradient(#22c55e 0deg 85deg, #facc15 85deg 168deg, #fb923c 168deg 230deg, #ef4444 230deg 292deg, #64748b 292deg 360deg);
    box-shadow: 0 0 36px rgba(34, 197, 94, .18);
}

.analytics-donut-placeholder strong {
    color: #f8fafc;
    font-size: 35px;
}

.analytics-donut-placeholder span {
    margin-top: -28px;
    color: #94a3b8;
    font-size: 12px;
}

.analytics-status-list {
    display: grid;
    gap: 10px;
}

.analytics-status-list p {
    display: grid;
    grid-template-columns: 14px minmax(0, 1fr) auto;
    gap: 8px;
    margin: 0;
    color: #e2e8f0;
}

.analytics-status-list strong {
    font-weight: 700;
}

.dot {
    width: 10px;
    height: 10px;
    margin-top: 4px;
    border-radius: 50%;
}

.dot.paid { background: #22c55e; }
.dot.pending { background: #facc15; }
.dot.partial { background: #fb923c; }
.dot.overdue { background: #ef4444; }
.dot.canceled { background: #64748b; }

.analytics-positive-note {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid rgba(34, 197, 94, .18);
    border-radius: 8px;
    background: rgba(22, 101, 52, .18);
}

.analytics-positive-note span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #84cc16;
    background: rgba(34, 197, 94, .16);
    border: 1px solid rgba(34, 197, 94, .32);
    font-weight: 900;
}

.analytics-positive-note p {
    margin: 0;
    color: #e2e8f0;
    font-size: 14px;
}

.analytics-product-list {
    display: grid;
    gap: 13px;
}

.analytics-product-list p {
    position: relative;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding-bottom: 10px;
}

.analytics-product-list p::after {
    content: "";
    position: absolute;
    left: 34px;
    right: 0;
    bottom: 0;
    height: 4px;
    border-radius: 999px;
    background: rgba(148, 163, 184, .14);
}

.analytics-product-list span {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, .36);
    font-size: 12px;
}

.analytics-product-list strong {
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 700;
}

.analytics-product-list em {
    color: #f8fafc;
    font-size: 13px;
    font-style: normal;
}

.analytics-product-list small {
    position: absolute;
    left: 34px;
    bottom: 0;
    z-index: 1;
    width: var(--bar);
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, #22c55e, #facc15, #fb923c, #ef4444);
}

.analytics-panel-action {
    width: 100% !important;
    margin-top: 20px !important;
    color: #38bdf8 !important;
}

.desktop-analytics-bottom-grid {
    grid-template-columns: 1.05fr .98fr 1.05fr;
}

.analytics-alerts-panel {
    display: grid;
    align-content: start;
    gap: 10px;
}

.analytics-alert-row {
    width: 100% !important;
    min-height: 54px !important;
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 12px !important;
    margin: 0 !important;
    padding: 10px 12px !important;
    border-radius: 8px !important;
    text-align: left !important;
}

.analytics-alert-row span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    font-weight: 900;
}

.analytics-alert-row strong {
    color: #f8fafc;
    font-size: 14px;
}

.analytics-alert-row em {
    font-size: 12px;
    font-style: normal;
}

.alert-red {
    border: 1px solid rgba(239, 68, 68, .22) !important;
    background: rgba(127, 29, 29, .22) !important;
    color: #f87171 !important;
}

.alert-yellow {
    border: 1px solid rgba(250, 204, 21, .22) !important;
    background: rgba(113, 63, 18, .22) !important;
    color: #facc15 !important;
}

.analytics-quick-summary > div {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, .10);
    border-radius: 8px;
}

.analytics-quick-summary p {
    margin: 0;
    padding: 14px 12px;
    border-right: 1px solid rgba(148, 163, 184, .10);
}

.analytics-quick-summary p:last-child {
    border-right: 0;
}

.analytics-quick-summary small,
.analytics-quick-summary em {
    display: block;
    color: #94a3b8;
    font-size: 12px;
    font-style: normal;
}

.analytics-quick-summary strong {
    display: block;
    margin: 5px 0;
    color: #dbeafe;
    font-size: 24px;
}

.analytics-quick-summary em {
    color: #22c55e;
}

.analytics-health-panel p {
    margin: 0 0 18px;
    color: #e2e8f0;
}

.analytics-health-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    margin-bottom: 16px;
}

.analytics-health-bar span {
    height: 8px;
    border-radius: 999px;
}

.analytics-health-bar span:nth-child(1) { background: #ef4444; }
.analytics-health-bar span:nth-child(2) { background: #fb923c; }
.analytics-health-bar span:nth-child(3) { background: #facc15; }
.analytics-health-bar span:nth-child(4) { background: #22c55e; }

.analytics-health-panel > strong {
    color: #22c55e;
    font-size: 32px;
}

.analytics-health-panel > strong span {
    color: #94a3b8;
    font-size: 18px;
}

.analytics-health-panel > em {
    float: right;
    padding: 9px 14px;
    border: 1px solid rgba(34, 197, 94, .28);
    border-radius: 8px;
    background: rgba(22, 101, 52, .16);
    color: #86efac;
    font-style: normal;
    font-weight: 800;
}

@media (max-width: 1360px) {
    body.desktop-dashboard-view .desktop-analytics-stage,
    body.desktop-device.desktop-dashboard-view .desktop-analytics-stage {
        padding: 18px 22px 22px !important;
        gap: 12px !important;
    }

    .desktop-analytics-gauges {
        grid-template-columns: repeat(3, minmax(160px, 1fr));
    }

    .desktop-analytics-stat-row {
        grid-template-columns: repeat(3, minmax(180px, 1fr));
    }

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

    .analytics-market-side {
        grid-template-columns: repeat(5, minmax(140px, 1fr));
    }

    .desktop-analytics-content-grid,
    .desktop-analytics-bottom-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 980px) {
    body.desktop-dashboard-view .desktop-analytics-stage,
    body.desktop-device.desktop-dashboard-view .desktop-analytics-stage {
        top: 74px !important;
        padding: 16px !important;
    }

    .desktop-analytics-header {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .desktop-analytics-toolbar {
        grid-column: 1 / -1;
        justify-content: stretch;
    }

    .desktop-analytics-date-btn,
    .desktop-analytics-filter-btn {
        flex: 1 1 0;
        justify-content: center;
    }

    .desktop-analytics-gauges,
    .desktop-analytics-stat-row {
        grid-template-columns: 1fr;
    }

    .desktop-analytics-market-panel {
        padding: 14px;
    }

    .analytics-market-header {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .analytics-market-controls {
        grid-template-columns: repeat(4, minmax(42px, 1fr));
        justify-content: stretch;
        width: 100%;
    }

    .analytics-market-controls button {
        min-width: 42px;
    }

    .analytics-market-side,
    .analytics-market-strip {
        grid-template-columns: 1fr 1fr;
    }
}

/* Desktop frame guard: preserve every module's design while preventing overlap on smaller monitors. */
body.desktop-flow-view,
body.desktop-dashboard-view,
body.desktop-device.desktop-flow-view,
body.desktop-device.desktop-dashboard-view {
    overflow: hidden !important;
}

body.desktop-flow-view .desktop-flow-stage,
body.desktop-device.desktop-flow-view .desktop-flow-stage {
    box-sizing: border-box !important;
    grid-template-rows: auto minmax(0, 1fr) auto !important;
    gap: clamp(10px, 1.35vh, 18px) !important;
    padding: clamp(14px, 1.8vw, 30px) clamp(16px, 2vw, 32px) clamp(12px, 1.45vw, 18px) !important;
}

body.desktop-flow-view .desktop-blueprint-header,
body.desktop-device.desktop-flow-view .desktop-blueprint-header {
    min-width: 0 !important;
}

body.desktop-flow-view .desktop-blueprint-viewport,
body.desktop-device.desktop-flow-view .desktop-blueprint-viewport {
    min-width: 0 !important;
    min-height: 0 !important;
    height: 100% !important;
    padding-bottom: 6px !important;
}

body.desktop-flow-view .desktop-blueprint-board,
body.desktop-device.desktop-flow-view .desktop-blueprint-board {
    margin-top: clamp(12px, 2vh, 32px) !important;
}

body.desktop-flow-view .desktop-flow-bottom-bar,
body.desktop-device.desktop-flow-view .desktop-flow-bottom-bar {
    align-self: end !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
}

body.desktop-flow-view .desktop-flow-drilldown,
body.desktop-device.desktop-flow-view .desktop-flow-drilldown {
    min-width: 0 !important;
    overflow: auto !important;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(56, 189, 248, .42) rgba(2, 8, 23, .45);
}

body.desktop-flow-view .desktop-flow-panel-card,
body.desktop-device.desktop-flow-view .desktop-flow-panel-card {
    width: min(100%, 1280px) !important;
    box-sizing: border-box !important;
}

body.desktop-dashboard-view .desktop-analytics-stage,
body.desktop-device.desktop-dashboard-view .desktop-analytics-stage {
    display: block !important;
    box-sizing: border-box !important;
}

body.desktop-dashboard-view .desktop-analytics-header,
body.desktop-dashboard-view .desktop-analytics-gauges,
body.desktop-dashboard-view .desktop-analytics-stat-row,
body.desktop-dashboard-view .desktop-analytics-market-panel,
body.desktop-dashboard-view .desktop-analytics-content-grid,
body.desktop-dashboard-view .desktop-analytics-bottom-grid,
body.desktop-device.desktop-dashboard-view .desktop-analytics-header,
body.desktop-device.desktop-dashboard-view .desktop-analytics-gauges,
body.desktop-device.desktop-dashboard-view .desktop-analytics-stat-row,
body.desktop-device.desktop-dashboard-view .desktop-analytics-market-panel,
body.desktop-device.desktop-dashboard-view .desktop-analytics-content-grid,
body.desktop-device.desktop-dashboard-view .desktop-analytics-bottom-grid {
    margin-bottom: 14px !important;
}

body.desktop-dashboard-view .desktop-analytics-bottom-grid,
body.desktop-device.desktop-dashboard-view .desktop-analytics-bottom-grid {
    margin-bottom: 4px !important;
}

body.desktop-dashboard-view .desktop-analytics-panel,
body.desktop-device.desktop-dashboard-view .desktop-analytics-panel {
    box-sizing: border-box !important;
}

@media (max-width: 1520px) {
    body.desktop-flow-view .desktop-flow-bottom-bar,
    body.desktop-device.desktop-flow-view .desktop-flow-bottom-bar {
        grid-template-columns: minmax(138px, 170px) minmax(620px, 1fr) minmax(126px, 160px) !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scrollbar-width: thin;
        scrollbar-color: rgba(56, 189, 248, .42) transparent;
    }

    body.desktop-flow-view .desktop-flow-summary-panel,
    body.desktop-device.desktop-flow-view .desktop-flow-summary-panel {
        min-width: 620px !important;
    }

    body.desktop-flow-view .desktop-flow-summary-grid,
    body.desktop-device.desktop-flow-view .desktop-flow-summary-grid {
        grid-template-columns: repeat(6, minmax(88px, 1fr)) !important;
    }
}

@media (max-width: 1320px) {
    body.desktop-device .desktop-flow-topbar,
    .desktop-flow-topbar {
        min-width: 0 !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scrollbar-width: thin;
        scrollbar-color: rgba(56, 189, 248, .42) transparent;
    }

    .desktop-flow-brand {
        flex-basis: 320px !important;
    }

    .desktop-flow-brand-title {
        font-size: 24px !important;
    }

    .desktop-flow-tabs {
        margin-left: 16px !important;
    }

    .desktop-flow-tab {
        width: 118px !important;
        font-size: 14px !important;
    }

    .desktop-flow-actions {
        gap: 12px !important;
        margin-left: 16px !important;
    }

    .desktop-plan-card {
        min-width: 76px !important;
        padding-inline: 8px !important;
    }

    .desktop-user-card {
        flex-basis: 210px !important;
        min-width: 210px !important;
        gap: 10px !important;
        padding-left: 12px !important;
    }

    .desktop-user-card strong,
    .desktop-user-card span {
        max-width: 145px !important;
    }

    body.desktop-dashboard-view .desktop-analytics-gauges,
    body.desktop-device.desktop-dashboard-view .desktop-analytics-gauges {
        grid-template-columns: repeat(3, minmax(160px, 1fr)) !important;
    }

    body.desktop-dashboard-view .desktop-analytics-stat-row,
    body.desktop-device.desktop-dashboard-view .desktop-analytics-stat-row {
        grid-template-columns: repeat(3, minmax(180px, 1fr)) !important;
    }

    body.desktop-dashboard-view .desktop-analytics-content-grid,
    body.desktop-dashboard-view .desktop-analytics-bottom-grid,
    body.desktop-device.desktop-dashboard-view .desktop-analytics-content-grid,
    body.desktop-device.desktop-dashboard-view .desktop-analytics-bottom-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 1180px) {
    body.desktop-flow-view .desktop-flow-drilldown,
    body.desktop-device.desktop-flow-view .desktop-flow-drilldown {
        left: 18px !important;
        right: 18px !important;
        bottom: 18px !important;
    }

    body.desktop-flow-view .desktop-products-panel-grid,
    body.desktop-flow-view .desktop-personalization-grid,
    body.desktop-flow-view .desktop-customer-db-layout,
    body.desktop-device.desktop-flow-view .desktop-products-panel-grid,
    body.desktop-device.desktop-flow-view .desktop-personalization-grid,
    body.desktop-device.desktop-flow-view .desktop-customer-db-layout {
        grid-template-columns: 1fr !important;
    }

    body.desktop-dashboard-view .desktop-analytics-gauges,
    body.desktop-device.desktop-dashboard-view .desktop-analytics-gauges {
        grid-template-columns: repeat(2, minmax(220px, 1fr)) !important;
    }

    body.desktop-dashboard-view .desktop-analytics-stat-row,
    body.desktop-device.desktop-dashboard-view .desktop-analytics-stat-row {
        grid-template-columns: repeat(2, minmax(220px, 1fr)) !important;
    }
}

@media (max-height: 820px) {
    body.desktop-flow-view .desktop-flow-stage,
    body.desktop-device.desktop-flow-view .desktop-flow-stage {
        gap: 10px !important;
        padding-top: 14px !important;
        padding-bottom: 10px !important;
    }

    body.desktop-flow-view .desktop-blueprint-header,
    body.desktop-device.desktop-flow-view .desktop-blueprint-header {
        gap: 12px !important;
    }

    body.desktop-flow-view .desktop-flow-bottom-bar,
    body.desktop-device.desktop-flow-view .desktop-flow-bottom-bar {
        min-height: 72px !important;
        max-height: 112px !important;
    }

    body.desktop-flow-view .desktop-flow-status-panel,
    body.desktop-flow-view .desktop-flow-summary-panel,
    body.desktop-flow-view .desktop-flow-progress-panel,
    body.desktop-device.desktop-flow-view .desktop-flow-status-panel,
    body.desktop-device.desktop-flow-view .desktop-flow-summary-panel,
    body.desktop-device.desktop-flow-view .desktop-flow-progress-panel {
        padding: 10px 12px !important;
    }

    body.desktop-flow-view .desktop-flow-bottom-title,
    body.desktop-device.desktop-flow-view .desktop-flow-bottom-title {
        margin-bottom: 5px !important;
        font-size: 11px !important;
    }

    body.desktop-flow-view .desktop-flow-summary-chip,
    body.desktop-device.desktop-flow-view .desktop-flow-summary-chip {
        min-height: 46px !important;
        padding: 6px !important;
    }

    body.desktop-flow-view .desktop-flow-chip-icon,
    body.desktop-device.desktop-flow-view .desktop-flow-chip-icon {
        width: 28px !important;
        height: 28px !important;
        flex-basis: 28px !important;
    }

    body.desktop-flow-view .desktop-flow-chip-icon svg,
    body.desktop-device.desktop-flow-view .desktop-flow-chip-icon svg {
        width: 18px !important;
        height: 18px !important;
    }

    body.desktop-dashboard-view .desktop-analytics-stage,
    body.desktop-device.desktop-dashboard-view .desktop-analytics-stage {
        padding-top: 14px !important;
        padding-bottom: 14px !important;
    }

    body.desktop-dashboard-view .desktop-analytics-gauge-card,
    body.desktop-device.desktop-dashboard-view .desktop-analytics-gauge-card {
        min-height: 156px !important;
    }

    body.desktop-dashboard-view .desktop-analytics-gauge,
    body.desktop-device.desktop-dashboard-view .desktop-analytics-gauge {
        width: 92px !important;
        height: 92px !important;
    }

    body.desktop-dashboard-view .analytics-line-chart-placeholder,
    body.desktop-device.desktop-dashboard-view .analytics-line-chart-placeholder {
        height: 150px !important;
    }
}

/* Dashboard behaves like the Flow canvas: fixed board, zoomable, scrollable. */
body.desktop-dashboard-view .desktop-analytics-stage,
body.desktop-device.desktop-dashboard-view .desktop-analytics-stage {
    display: block !important;
    overflow: auto !important;
    overscroll-behavior: contain !important;
    scrollbar-width: thin;
    scrollbar-color: rgba(56, 189, 248, .48) rgba(15, 23, 42, .42);
}

body.desktop-dashboard-view .desktop-analytics-stage::-webkit-scrollbar,
body.desktop-device.desktop-dashboard-view .desktop-analytics-stage::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

body.desktop-dashboard-view .desktop-analytics-stage::-webkit-scrollbar-track,
body.desktop-device.desktop-dashboard-view .desktop-analytics-stage::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, .54);
    border-radius: 999px;
}

body.desktop-dashboard-view .desktop-analytics-stage::-webkit-scrollbar-thumb,
body.desktop-device.desktop-dashboard-view .desktop-analytics-stage::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, rgba(14, 165, 233, .82), rgba(249, 115, 22, .5));
    border: 2px solid rgba(15, 23, 42, .78);
    border-radius: 999px;
}

body.desktop-dashboard-view .desktop-analytics-header,
body.desktop-device.desktop-dashboard-view .desktop-analytics-header {
    width: 1460px !important;
    max-width: none !important;
    margin-bottom: 14px !important;
}

body.desktop-dashboard-view .desktop-analytics-zoom-canvas,
body.desktop-device.desktop-dashboard-view .desktop-analytics-zoom-canvas {
    width: 1460px !important;
    min-width: 1460px !important;
    max-width: none !important;
    display: grid !important;
    gap: 14px !important;
    transform-origin: top left !important;
    zoom: var(--desktop-analytics-zoom, 1) !important;
    padding-bottom: 12px !important;
}

body.desktop-dashboard-view .desktop-analytics-gauges,
body.desktop-device.desktop-dashboard-view .desktop-analytics-gauges {
    grid-template-columns: repeat(6, minmax(138px, 1fr)) !important;
    margin-bottom: 0 !important;
}

body.desktop-dashboard-view .desktop-analytics-stat-row,
body.desktop-device.desktop-dashboard-view .desktop-analytics-stat-row {
    grid-template-columns: repeat(5, minmax(160px, 1fr)) !important;
    margin-bottom: 0 !important;
}

body.desktop-dashboard-view .desktop-analytics-content-grid,
body.desktop-dashboard-view .desktop-analytics-bottom-grid,
body.desktop-device.desktop-dashboard-view .desktop-analytics-content-grid,
body.desktop-device.desktop-dashboard-view .desktop-analytics-bottom-grid {
    grid-template-columns: 1.05fr .98fr 1.05fr !important;
    margin-bottom: 0 !important;
}

body.desktop-dashboard-view .desktop-analytics-toolbar,
body.desktop-device.desktop-dashboard-view .desktop-analytics-toolbar {
    flex-wrap: nowrap !important;
}

.desktop-flow-panel-finance-module {
    max-width: 980px;
}

.desktop-finance-module-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.desktop-finance-module-card,
.desktop-credit-score-card {
    border: 1px solid rgba(56, 189, 248, .18);
    border-radius: 16px;
    background:
        linear-gradient(145deg, rgba(15, 23, 42, .86), rgba(2, 8, 23, .72)),
        radial-gradient(circle at 10% 0%, rgba(14, 165, 233, .14), transparent 46%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .035), 0 18px 42px rgba(0, 0, 0, .22);
}

.desktop-finance-module-card {
    min-height: 116px;
    padding: 18px;
    display: grid;
    align-content: center;
    gap: 8px;
}

.desktop-finance-module-card span {
    color: #93c5fd;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.desktop-finance-module-card strong {
    color: #f8fafc;
    font-size: 26px;
    line-height: 1;
}

.desktop-finance-module-card em {
    color: #94a3b8;
    font-size: 12px;
    font-style: normal;
}

.desktop-finance-module-list {
    margin-top: 16px;
    display: grid;
    gap: 10px;
}

.desktop-finance-row,
.desktop-finance-empty {
    min-height: 50px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid rgba(148, 163, 184, .16);
    border-radius: 12px;
    background: rgba(15, 23, 42, .66);
    color: #e2e8f0;
}

.desktop-finance-row strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.desktop-finance-row span {
    color: #38bdf8;
    font-weight: 950;
}

.desktop-finance-empty {
    justify-content: center;
    color: #94a3b8;
}

.desktop-finance-editor {
    margin-top: 18px;
    padding: 18px;
    border: 1px solid rgba(56, 189, 248, .18);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, .86), rgba(2, 8, 23, .72)),
        radial-gradient(circle at 86% 0%, rgba(249, 115, 22, .12), transparent 44%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .035);
}

.desktop-finance-editor-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.desktop-finance-editor-head strong {
    display: block;
    color: #f8fafc;
    font-size: 15px;
    font-weight: 950;
}

.desktop-finance-editor-head span {
    display: block;
    margin-top: 3px;
    color: #94a3b8;
    font-size: 12px;
}

.desktop-finance-add-btn {
    min-width: 190px !important;
    min-height: 44px !important;
    border-radius: 12px !important;
    font-size: 12px !important;
}

.desktop-finance-editor-list {
    display: grid;
    gap: 10px;
}

.desktop-finance-editor-row {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(120px, .65fr) 44px;
    gap: 10px;
    align-items: center;
}

.desktop-finance-editor-row input,
.desktop-finance-basis-grid input {
    width: 100%;
    min-height: 46px;
    margin: 0;
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 12px;
    background: rgba(2, 8, 23, .72);
    color: #f8fafc;
    font-size: 14px;
}

.desktop-finance-remove-btn {
    min-width: 44px !important;
    width: 44px !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 12px !important;
    border: 1px solid rgba(248, 113, 113, .36) !important;
    background: linear-gradient(180deg, rgba(127, 29, 29, .8), rgba(69, 10, 10, .72)) !important;
    color: #fecaca !important;
    font-size: 13px !important;
    font-weight: 950 !important;
}

.desktop-finance-basis-grid {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.desktop-finance-basis-grid label {
    display: grid;
    gap: 7px;
}

.desktop-finance-basis-grid span {
    color: #93c5fd;
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
}

.desktop-finance-breakdown {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.desktop-finance-breakdown div {
    min-height: 84px;
    padding: 13px;
    display: grid;
    align-content: center;
    gap: 6px;
    border: 1px solid rgba(148, 163, 184, .16);
    border-radius: 14px;
    background: rgba(15, 23, 42, .62);
}

.desktop-finance-breakdown span {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
}

.desktop-finance-breakdown strong {
    color: #38bdf8;
    font-size: 18px;
    line-height: 1;
}

.desktop-credit-score-card {
    margin-top: 18px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.desktop-credit-score-ring {
    width: 128px;
    height: 128px;
    flex: 0 0 128px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(56, 189, 248, .28);
    background:
        radial-gradient(circle at 50% 50%, rgba(14, 165, 233, .22), rgba(15, 23, 42, .92) 62%),
        conic-gradient(from -90deg, #22c55e 0deg, #eab308 125deg, #f97316 220deg, rgba(30, 41, 59, .9) 220deg 360deg);
    box-shadow: 0 0 28px rgba(14, 165, 233, .16);
}

.desktop-credit-score-ring strong {
    color: #f8fafc;
    font-size: 38px;
    line-height: 1;
}

.desktop-credit-score-ring span {
    margin-top: 42px;
    margin-left: -18px;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 800;
}

.desktop-credit-score-copy strong {
    display: block;
    margin-bottom: 8px;
    color: #38bdf8;
    font-size: 20px;
}

.desktop-credit-score-copy p {
    margin: 0;
    color: #cbd5e1;
    line-height: 1.45;
}

.desktop-credit-score-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.desktop-flow-panel-credit-score {
    max-width: 1120px;
}

.desktop-credit-score-dashboard {
    margin-top: 18px;
    display: grid;
    grid-template-columns: minmax(320px, .86fr) minmax(420px, 1.14fr);
    gap: 18px;
    align-items: stretch;
}

.desktop-credit-score-hero,
.desktop-credit-score-metrics,
.desktop-credit-score-factors {
    border: 1px solid rgba(56, 189, 248, .2);
    border-radius: 18px;
    background:
        linear-gradient(145deg, rgba(15, 23, 42, .88), rgba(2, 8, 23, .76)),
        radial-gradient(circle at 16% 8%, rgba(14, 165, 233, .18), transparent 48%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .035), 0 22px 54px rgba(0, 0, 0, .24);
}

.desktop-credit-score-hero {
    min-height: 284px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    overflow: hidden;
    position: relative;
}

.desktop-credit-score-hero::after {
    content: "";
    position: absolute;
    inset: auto -80px -120px 34%;
    height: 220px;
    background: radial-gradient(circle, rgba(59, 130, 246, .18), transparent 66%);
    pointer-events: none;
}

.desktop-credit-orbit {
    --credit-score-primary: #38bdf8;
    --credit-score-secondary: #22c55e;
    width: 218px;
    height: 218px;
    flex: 0 0 218px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    position: relative;
    isolation: isolate;
}

.desktop-credit-orbit::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        conic-gradient(from -90deg, var(--credit-score-primary) 0deg var(--score-angle), rgba(30, 41, 59, .82) var(--score-angle) 360deg);
    box-shadow:
        0 0 42px color-mix(in srgb, var(--credit-score-primary) 34%, transparent),
        inset 0 0 26px rgba(255, 255, 255, .05);
    z-index: 0;
}

.desktop-credit-orbit::after {
    content: "";
    position: absolute;
    inset: 14px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 44%, rgba(255, 255, 255, .08), transparent 32%),
        linear-gradient(145deg, rgba(2, 6, 23, .96), rgba(15, 23, 42, .9));
    z-index: 1;
}

.desktop-credit-orbit-glow {
    position: absolute;
    inset: 34px;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--credit-score-primary) 30%, transparent), transparent 68%);
    filter: blur(14px);
    animation: creditPulse 2.9s ease-in-out infinite;
    z-index: 2;
}

.desktop-credit-orbit-layer {
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    border: 1px solid rgba(148, 163, 184, .18);
    animation: creditOrbitSpin 12s linear infinite;
    z-index: 3;
}

.desktop-credit-orbit-layer.orbit-two {
    inset: 28px;
    border-color: rgba(56, 189, 248, .22);
    animation-duration: 16s;
    animation-direction: reverse;
}

.desktop-credit-orbit-layer.orbit-three {
    inset: 48px;
    border-color: rgba(249, 115, 22, .2);
    animation-duration: 20s;
}

.credit-orbit-dot {
    position: absolute;
    top: 50%;
    right: -5px;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    transform: translateY(-50%);
    box-shadow: 0 0 18px currentColor;
}

.dot-green {
    color: #22c55e;
    background: #22c55e;
}

.dot-blue {
    color: #38bdf8;
    background: #38bdf8;
}

.dot-orange {
    color: #f97316;
    background: #f97316;
}

.desktop-credit-score-ring {
    width: 132px;
    height: 132px;
    flex: initial;
    position: relative;
    z-index: 4;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .12);
    background: linear-gradient(145deg, rgba(2, 6, 23, .94), rgba(15, 23, 42, .88));
    box-shadow: inset 0 0 24px rgba(255, 255, 255, .04);
}

.desktop-credit-score-ring strong {
    color: #f8fafc;
    font-size: 44px;
    line-height: 1;
    letter-spacing: 0;
}

.desktop-credit-score-ring span {
    margin-top: -18px;
    margin-left: 0;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 900;
}

.desktop-credit-score-copy {
    position: relative;
    z-index: 2;
    min-width: 0;
}

.desktop-credit-score-label {
    display: inline-flex;
    margin-bottom: 10px;
    color: #38bdf8;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.desktop-credit-score-copy strong {
    display: block;
    color: #f8fafc;
    font-size: clamp(24px, 2.2vw, 34px);
    line-height: 1.08;
}

.desktop-credit-score-copy p {
    max-width: 420px;
    margin: 12px 0 0;
    color: #cbd5e1;
    line-height: 1.48;
}

.desktop-credit-score-metrics {
    padding: 18px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
    gap: 12px;
}

.desktop-credit-score-metric {
    min-height: 112px;
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, .14);
    border-radius: 14px;
    background:
        linear-gradient(145deg, rgba(15, 23, 42, .74), rgba(2, 8, 23, .62)),
        radial-gradient(circle at 12% 0%, rgba(56, 189, 248, .12), transparent 46%);
}

.desktop-credit-score-metric span,
.desktop-credit-factor span {
    display: block;
    color: #93c5fd;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.desktop-credit-score-metric strong {
    display: block;
    margin-top: 10px;
    color: #f8fafc;
    font-size: 24px;
    line-height: 1;
}

.desktop-credit-score-metric em {
    display: block;
    margin-top: 8px;
    color: #94a3b8;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

.desktop-credit-score-factors {
    margin-top: 18px;
    padding: 18px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(188px, 1fr));
    gap: 14px;
}

.desktop-credit-factor {
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, .14);
    border-radius: 14px;
    background: rgba(2, 6, 23, .42);
}

.desktop-credit-factor div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.desktop-credit-factor strong {
    color: #f8fafc;
    font-size: 15px;
}

.desktop-credit-factor i {
    display: block;
    height: 8px;
    margin-top: 12px;
    border-radius: 999px;
    background: rgba(30, 41, 59, .9);
    overflow: hidden;
    position: relative;
}

.desktop-credit-factor i::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--factor-width);
    border-radius: inherit;
    background: linear-gradient(90deg, #ef4444, #f97316, #eab308, #22c55e);
    box-shadow: 0 0 16px rgba(34, 197, 94, .28);
    transition: width .35s ease;
}

.desktop-credit-orbit[data-zone="elite"] {
    --credit-score-primary: #22c55e;
    --credit-score-secondary: #38bdf8;
}

.desktop-credit-orbit[data-zone="strong"] {
    --credit-score-primary: #84cc16;
    --credit-score-secondary: #22c55e;
}

.desktop-credit-orbit[data-zone="stable"] {
    --credit-score-primary: #eab308;
    --credit-score-secondary: #38bdf8;
}

.desktop-credit-orbit[data-zone="weak"] {
    --credit-score-primary: #f97316;
    --credit-score-secondary: #ef4444;
}

.desktop-credit-orbit[data-zone="critical"] {
    --credit-score-primary: #ef4444;
    --credit-score-secondary: #f97316;
}

.desktop-credit-orbit[data-zone="empty"] {
    --credit-score-primary: #38bdf8;
    --credit-score-secondary: #64748b;
}

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

@keyframes creditPulse {
    0%,
    100% {
        opacity: .45;
        transform: scale(.92);
    }

    50% {
        opacity: .9;
        transform: scale(1.05);
    }
}

@media (max-width: 980px) {
    .desktop-credit-score-dashboard,
    .desktop-credit-score-factors {
        grid-template-columns: 1fr;
    }

    .desktop-credit-score-hero {
        flex-direction: column;
        align-items: flex-start;
    }
}

.desktop-flow-panel-settings-module {
    max-width: 980px;
}

.desktop-settings-module-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.desktop-settings-module-btn {
    min-height: 142px !important;
    margin: 0 !important;
    padding: 18px !important;
    display: grid !important;
    align-content: center;
    gap: 10px;
    text-align: left !important;
    border: 1px solid rgba(56, 189, 248, .22) !important;
    border-radius: 16px !important;
    background:
        linear-gradient(145deg, rgba(15, 23, 42, .86), rgba(2, 8, 23, .74)),
        radial-gradient(circle at 8% 0%, rgba(14, 165, 233, .18), transparent 45%) !important;
    color: #e2e8f0 !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .035), 0 18px 42px rgba(0, 0, 0, .22) !important;
}

.desktop-settings-module-btn:hover,
.desktop-settings-module-btn:focus-visible {
    border-color: rgba(56, 189, 248, .44) !important;
    transform: translateY(-2px);
}

.desktop-settings-module-btn strong {
    color: #38bdf8;
    font-size: 18px;
}

.desktop-settings-module-btn span {
    color: #cbd5e1;
    font-size: 13px;
    line-height: 1.35;
}

.desktop-settings-module-btn.danger {
    border-color: rgba(248, 113, 113, .28) !important;
    background:
        linear-gradient(145deg, rgba(30, 11, 11, .84), rgba(15, 23, 42, .78)),
        radial-gradient(circle at 8% 0%, rgba(248, 113, 113, .18), transparent 45%) !important;
}

.desktop-settings-module-btn.danger strong {
    color: #fb7185;
}
