.layout.content-wrapper {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
}

.layout.content {
    display: flex;
    flex: 1;

    padding: 12px;

    background-color: var(--sectionBG);
}

.layout.content[hidden] {
    display: none;
}

.layout.controller {
    flex: 1;
    display: flex;
    flex-direction: column;

    gap: 6px;
}

.layout.controller[hidden] {
    display: none;
}

.sheet {
    max-width: 991px;
}

.card.label {
    color: var(--secondary-text);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.card.title-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.card.title {
    margin-top: 4px;

    font-size: 32px;
    font-weight: 900;
    color: var(--primary-text);
}

.card.ticker {
    display: flex;
    flex-direction: row;
    align-items: center;
    font-size: 14px;
    font-weight: 900;

    gap: 7px;
    padding: 4px 10px;

    color: var(--primary-text);
    background-color: var(--secondary-text);
    border: 1px solid var(--primary-text);

    border-radius: 99px;
}

.card.ticker.positive {
    color: var(--primary-positive);
    background-color: var(--secondary-positive);
    border: 1px solid var(--primary-positive);
}

.card.ticker.negative {
    color: var(--primary-negative);
    background-color: var(--secondary-negative);
    border: 1px solid var(--primary-negative);
}

.card.ticker-icon {
    height: 10px;
}

.card.ticker-icon.positive {
    transform: rotate(180deg);
}

.card.ticker-icon.negative {
    transform: rotate(0deg);
}

.home-overview.content-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
        "onboarding onboarding"
        "gross-sales metrics-summary"
        "gross-sales-by-platform gross-sales-by-platform";
    gap: 12px;
    width: 100%;
    align-content: start;
}

.onboarding.content-wrapper {
    grid-area: onboarding;
}

.home-overview.card {
    background-color: var(--cardBG);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid var(--primary-border);
}

#grossSalesChart.home-overview.card {
    grid-area: gross-sales;
    min-height: 340px;
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.gross-sales-chart-frame {
    position: relative;
    width: 100%;
    height: 238px;
    margin-top: 2px;
    border-radius: 14px;
    overflow: visible;
    touch-action: none;
    background-color: transparent;
}

.gross-sales-chart-svg {
    display: block;
    width: 100%;
    height: 100%;
    background-color: transparent;
}

.gross-sales-chart-tooltip {
    position: absolute;
    left: 0;
    top: 0;
    transform: translate(-50%, -100%);
    padding: 6px 10px;
    border-radius: 10px;
    border: 1px solid var(--primary-border);
    background-color: var(--bodyBG);
    color: var(--primary-text);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.gross-sales-chart-empty {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 26px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--secondary-text);
    background-color: var(--sectionBG);
    border-radius: 14px;
    z-index: 1;
}

.gross-sales-chart-empty[hidden] {
    display: none;
}

.gross-sales-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    align-items: center;
    min-height: 18px;
}

.gross-sales-chart-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--secondary-text);
}

.gross-sales-chart-legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 99px;
    flex: 0 0 8px;
}

#homeRefreshTransactionsButton {
    transition: color 140ms ease, transform 140ms ease, opacity 140ms ease;
}

#homeRefreshTransactionsButton[aria-busy="true"] {
    opacity: 0.9;
}

#homeRefreshTransactionsButton[aria-busy="true"] svg {
    animation: home-toolbar-refresh-spin 0.9s linear infinite;
    transform-origin: center;
}

#homeRefreshTransactionsButton.is-complete {
    color: var(--primary-positive);
    transform: scale(1.03);
}

@keyframes home-toolbar-refresh-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

#metricsSummary.home-overview.card {
    grid-area: metrics-summary;
    min-height: 340px;

    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
}

.card-metrics.details-wrapper {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;

    gap: 2px;
    padding: 6px 0px;
}

.card-metrics.list-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;

    padding: 6px 0px;
    border-bottom: 1px dashed var(--secondary-border);
}

#first.card-metrics.list-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;

    padding: 0px 0px 6px 0px;
    border-bottom: 1px dashed var(--secondary-border);
}

#grossSalesByPlatform.home-overview.card {
    grid-area: gross-sales-by-platform;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.platform-sales-track {
    width: 100%;
    height: 64px;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: flex-start;
    background-color: var(--sectionBG);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--primary-border);
}

.platform-sales-segment {
    height: 100%;
    min-width: 0;
    transition: width 180ms ease;
}

.platform-sales-meta {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    color: var(--secondary-text);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.platform-sales-breakdown {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
}

.platform-sales-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary-text);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.platform-sales-item strong {
    color: var(--primary-text);
    font-size: 14px;
    font-weight: 900;
}

.platform-sales-dot {
    width: 8px;
    height: 8px;
    border-radius: 99px;
    flex: 0 0 8px;
}

.home-breakdown.content-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.home-breakdown.card {
    background-color: var(--cardBG);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid var(--primary-border);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.break-even.header {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.break-even.amount {
    margin-top: 2px;
    font-size: 56px;
    font-weight: 900;
    color: var(--primary-text);
    line-height: 1;
}

.break-even.track-shell {
    position: relative;
    width: 100%;
    min-height: 112px;
}

.break-even.track {
    position: relative;
    width: 100%;
    height: 86px;
    border-radius: 20px;
    overflow: visible;
    touch-action: none;
}

.break-even.track-base {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background-color: var(--sectionBG);
    border: 1px solid var(--primary-border);
}

.break-even.segment {
    position: absolute;
    top: 0;
    height: 100%;
    border-radius: 20px;
    transition: left 180ms ease, width 180ms ease;
}

.break-even.segment.bills {
    background-color: #5389db;
}

.break-even.segment.labor {
    background-color: #dd9e4a;
}

.break-even.segment.tax {
    background-color: #d8749b;
}

.break-even.segment.cogs {
    background-color: #6f66d6;
}

.break-even.segment.profit {
    background-color: #5dbf63;
}

.break-even.markers {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.break-even.marker-line {
    position: absolute;
    top: 0;
    width: 0;
    height: 86px;
    border-left: 2px dashed color-mix(in srgb, var(--secondary-text) 75%, transparent);
    transform: translateX(-1px);
}

.break-even.marker-label {
    position: absolute;
    bottom: -10px;
    transform: translateX(-50%);
    padding: 4px 12px;
    border-radius: 12px;
    border: 1px dashed var(--secondary-text);
    background-color: color-mix(in srgb, var(--cardBG) 88%, white);
    color: var(--secondary-text);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.break-even.tooltip {
    position: absolute;
    left: 0;
    top: 0;
    transform: translate(-50%, -110%);
    padding: 6px 10px;
    border-radius: 10px;
    border: 1px solid var(--primary-border);
    background-color: var(--bodyBG);
    color: var(--primary-text);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    z-index: 3;
}

.break-even.axis {
    margin-top: 6px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    color: var(--secondary-text);
    font-size: 14px;
    font-weight: 700;
}

.break-even.status {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--secondary-text);
}

.break-even.status.profit {
    color: var(--primary-positive);
}

.break-even.status.loss {
    color: var(--primary-negative);
}

.break-even.hydration {
    font-size: 12px;
    font-weight: 700;
    color: var(--secondary-text);
    margin-top: -4px;
}

.break-even.hydration[hidden] {
    display: none;
}

.break-even.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-areas:
        "net-sales net-sales profit profit"
        "bills labor tax cogs";
    gap: 10px;
}

.break-even.metric-card {
    border-radius: 16px;
    border: 1px solid var(--primary-border);
    background-color: var(--bodyBG);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.break-even.metric-card.net-sales {
    grid-area: net-sales;
    background-color: var(--sidebar-segmentedBG);
}

.break-even.metric-card.profit {
    grid-area: profit;
    color: var(--primary-positive);
    border-color: color-mix(in srgb, var(--primary-positive) 35%, var(--primary-border));
    background-color: color-mix(in srgb, var(--secondary-positive) 65%, var(--bodyBG));
}

.break-even.metric-card.loss {
    color: var(--primary-negative);
    border-color: color-mix(in srgb, var(--primary-negative) 35%, var(--primary-border));
    background-color: color-mix(in srgb, var(--secondary-negative) 65%, var(--bodyBG));
}

.break-even.metric-card.bills {
    grid-area: bills;
    color: #5389db;
    border-color: color-mix(in srgb, #5389db 40%, var(--primary-border));
    background-color: color-mix(in srgb, #5389db 20%, var(--bodyBG));
}

.break-even.metric-card.labor {
    grid-area: labor;
    color: #dd9e4a;
    border-color: color-mix(in srgb, #dd9e4a 40%, var(--primary-border));
    background-color: color-mix(in srgb, #dd9e4a 20%, var(--bodyBG));
}

.break-even.metric-card.tax {
    grid-area: tax;
    color: #d8749b;
    border-color: color-mix(in srgb, #d8749b 40%, var(--primary-border));
    background-color: color-mix(in srgb, #d8749b 20%, var(--bodyBG));
}

.break-even.metric-card.cogs {
    color: #6f66d6;
    grid-area: cogs;
    border-color: color-mix(in srgb, #6f66d6 40%, var(--primary-border));
    background-color: color-mix(in srgb, #6f66d6 20%, var(--bodyBG));
}

.break-even.metric-label {
    color: var(--secondary-text);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1;
}

.break-even.metric-value {
    color: inherit;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.05;
}

.break-even.empty {
    margin: 0;
    border-radius: 12px;
    border: 1px dashed var(--primary-border);
    background-color: var(--sectionBG);
    color: var(--secondary-text);
    font-size: 13px;
    font-weight: 700;
    padding: 12px;
}

.break-even.empty[hidden] {
    display: none;
}

.items-products.content-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.items-products.search {
    position: relative;
    width: min(440px, 100%);
    height: 38px;
    margin-bottom: 10px;
    border-radius: 20px;
    border: 1px solid var(--primary-border);
    background-color: color-mix(in srgb, var(--bodyBG) 90%);
    display: flex;
    align-items: center;
    padding-left: 40px;
    padding-right: 12px;
    box-sizing: border-box;
}

.items-products.search .location-picker.search-icon {
    color: var(--secondary-text);
}

.items-products.search-input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--primary-text);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
}

.items-products.search-input::placeholder {
    color: var(--secondary-text);
    font-weight: 500;
}

#toolbarItems .input.toolbar {
    position: relative;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding-left: 38px;
}

#toolbarItems .input.toolbar .location-picker.search-icon {
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

#toolbarItems .input.toolbar .items-products.search-input {
    min-width: 0;
}

.items-products.table-card {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--primary-border);
    background-color: var(--cardBG);
    overflow: hidden;
}

.items-products.table {
    width: 100%;
    overflow-x: auto;
}

.items-products.row {
    min-width: 512px;
    display: grid;
    grid-template-columns: 30px 72px minmax(130px, 1fr) minmax(170px, 2fr) 120px 120px;
    align-items: center;
    padding: 0 10px;
    border-bottom: 1px solid color-mix(in srgb, var(--primary-border) 70%, transparent);
    color: var(--primary-text);
    box-sizing: border-box;
}

.items-products.row.header {
    min-height: 32px;
    background-color: var(--sectionBG);
    color: var(--secondary-text);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.01em;
    border-bottom: 1px solid var(--primary-border);
}

.items-products.row.parent {
    width: 100%;
    min-height: 54px;
    background-color: var(--cardBG);
    transition: background-color 140ms ease;
}

.items-products.row.parent:hover {
    background-color: color-mix(in srgb, var(--sectionBG) 58%, var(--cardBG));
}

.items-products.row.parent.expanded {
    background-color: color-mix(in srgb, var(--primary-accent) 14%, var(--cardBG));
}

.items-products.cell.chevron {
    justify-content: center;
}

.items-products.chevron-toggle {
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    cursor: pointer;
}

.items-products.chevron-toggle:disabled {
    opacity: 0.3;
    cursor: default;
}

.items-products.row.child {
    min-height: 48px;
    background-color: color-mix(in srgb, var(--sectionBG) 65%, var(--cardBG));
}

.items-products.row.child[hidden] {
    display: none;
}

.items-products.cell {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.items-products.row.header .items-products.cell {
    font-size: 12px;
    font-weight: 700;
}

.items-products.cell.brand {
    color: var(--secondary-text);
    font-weight: 600;
}

.items-products.cell.name {
    color: var(--primary-text);
    font-weight: 800;
}

.items-products.cell.numeric {
    justify-content: flex-end;
    font-variant-numeric: tabular-nums;
}

.items-products.row.child .items-products.cell {
    color: var(--secondary-text);
    font-weight: 600;
}

.items-products.row.child .items-products.cell.name {
    color: var(--primary-text);
    font-weight: 700;
}

.items-products.row.child .items-products.cell.numeric.override {
    color: var(--primary-text);
    font-weight: 800;
}

.items-products.row.child .items-products.cell.brand {
    color: transparent;
    user-select: none;
}

.items-products.row.child .items-products.cell.chevron {
    opacity: 0;
    pointer-events: none;
}

.items-products.row.child .items-products.cell.image {
    padding-left: 18px;
}

.items-products.image-thumb {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    border: 1px solid var(--primary-border);
    background-color: var(--sectionBG);
    display: block;
    object-fit: cover;
    object-position: center;
}

.items-products.row.child .items-products.image-thumb {
    width: 28px;
    height: 28px;
    border-radius: 8px;
}

.items-products.chevron-icon {
    width: 13px;
    height: 13px;
    color: var(--secondary-text);
    transition: transform 150ms ease;
    flex: 0 0 auto;
}

.items-products.row.parent.expanded .items-products.chevron-icon {
    transform: rotate(90deg);
}

.items-products.body>*:last-child {
    border-bottom: 0;
}

.items-products.state {
    min-height: 56px;
    padding: 14px 12px;
    display: flex;
    align-items: center;
    color: var(--secondary-text);
    font-size: 13px;
    font-weight: 700;
}

.items-products.table.categories .items-products.row {
    grid-template-columns: 30px 72px minmax(240px, 1fr);
    cursor: pointer;
}

.items-products.table.categories .items-products.row.parent.expanded {
    background-color: color-mix(in srgb, var(--primary-accent) 10%, var(--cardBG));
}

.items-products.table.categories .items-products.row.child .items-products.cell.chevron {
    opacity: 0;
    pointer-events: none;
}

.items-products.table.categories .items-products.row.child .items-products.cell.image {
    padding-left: 18px;
}

.items-products.table.brands .items-products.row {
    grid-template-columns: 30px 72px minmax(170px, 1fr) minmax(220px, 2fr);
}

.items-products.table.brands .items-products.row.parent:hover {
    background-color: var(--cardBG);
}

.items-products.table.brands .items-products.cell.description {
    color: var(--secondary-text);
    font-weight: 600;
    min-width: 0;
}

.items-products.description-text {
    width: 100%;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.items-create.panel-shell {
    width: 100%;
    margin-top: 12px;
    border-radius: 20px;
    border: 1px solid var(--primary-border);
    background-color: var(--cardBG);
    padding: 20px;
    box-sizing: border-box;
}

.items-create.panel-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: min(1120px, 100%);
    margin: 0 auto;
}

.items-create.section-title {
    margin: 0;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--primary-text);
    line-height: 1;
}

.items-create.subheading {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--secondary-text);
    letter-spacing: -0.01em;
    line-height: 1;
}

.items-create.field-row {
    display: grid;
    grid-template-columns: 152px minmax(0, 1fr);
    gap: 8px 16px;
    align-items: start;
}

.items-create.field-row.two-column {
    grid-template-columns: 152px minmax(0, 1fr);
}

.items-create.row-label {
    padding-top: 12px;
    font-size: 14px;
    font-weight: 700;
    color: var(--secondary-text);
    letter-spacing: -0.01em;
    line-height: 1;
}

.items-create.row-label.spacer {
    padding-top: 0;
    opacity: 0;
    pointer-events: none;
    user-select: none;
}

.items-create.control,
.items-create.textarea,
.items-create.select {
    width: 100%;
    border: 1px solid var(--primary-border);
    border-radius: 12px;
    background-color: var(--bodyBG);
    color: var(--primary-text);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    box-sizing: border-box;
}

.items-create.control,
.items-create.select {
    height: 44px;
    padding: 0 14px;
}

.items-create.control:focus,
.items-create.textarea:focus,
.items-create.select:focus {
    outline: 1px solid var(--primary-accent);
}

.items-create.textarea {
    min-height: 168px;
    resize: vertical;
    padding: 12px 14px;
    font-family: inherit;
}

.items-create.select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--secondary-text) 50%),
        linear-gradient(135deg, var(--secondary-text) 50%, transparent 50%);
    background-position: calc(100% - 20px) 19px, calc(100% - 14px) 19px;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 34px;
}

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

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

.items-create.field.pricing-single {
    width: min(390px, 100%);
}

.items-create.field-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--secondary-text);
    line-height: 1;
}

.items-create.field-hint {
    margin: -2px 0 0;
    font-size: 11px;
    font-weight: 600;
    color: var(--secondary-text);
    line-height: 1.1;
}

.items-create.control[readonly] {
    background-color: color-mix(in srgb, var(--sectionBG) 82%, var(--bodyBG));
}

.items-create.required {
    color: var(--primary-negative);
    font-weight: 900;
    margin-left: 2px;
}

.items-create.field-label.small {
    font-size: 14px;
}

.items-create.image-upload {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    min-height: 88px;
    padding: 12px;
    border: 1px dashed color-mix(in srgb, var(--primary-border) 80%, var(--secondary-text));
    border-radius: 14px;
    background-color: color-mix(in srgb, var(--sectionBG) 82%, var(--bodyBG));
}

.items-create.image-input {
    display: none;
}

.items-create.image-preview {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    border: 1px solid var(--primary-border);
    background-color: var(--bodyBG);
    color: var(--secondary-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 64px;
}

.items-create.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: inherit;
    display: block;
}

.items-create.image-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 128px;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--primary-border);
    border-radius: 12px;
    background-color: var(--bodyBG);
    color: var(--primary-text);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.items-create.variations {
    border: 1px solid var(--primary-border);
    border-radius: 16px;
    overflow: hidden;
    background-color: var(--bodyBG);
}

.items-create.variation-row {
    min-height: 48px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--primary-border);
}

.items-create.variation-row:last-child {
    border-bottom: 0;
}

.items-create.add-variation {
    color: var(--primary-accent);
    font-size: 12px;
    font-weight: 800;
}

.items-create.add-variation.button {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0;
    margin-top: 2px;
    cursor: pointer;
    text-align: left;

    justify-content: start;
    font-size: 14px;
    align-items: center;
}

.items-create.add-variation.button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.items-create.variation-draft-list {
    display: flex;
    flex-direction: column;
}

.items-create.variation-toggle {
    appearance: none;
    border: 0;
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    text-align: left;
    border-top: 1px solid var(--primary-border);
}

.items-create.variation-toggle:disabled {
    cursor: default;
    opacity: 0.6;
}

.items-create.variation-toggle-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.items-create.variation-toggle-arrow {
    width: 11px;
    height: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-text);
    transition: transform 150ms ease;
}

.items-create.variation-toggle[aria-expanded="true"] .items-create.variation-toggle-arrow {
    transform: rotate(90deg);
}

.items-create.variation-draft {
    min-height: 44px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-top: 1px solid var(--primary-border);
}

.items-create.variation-draft-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.items-create.variation-draft-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-text);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.items-create.variation-draft-meta {
    font-size: 11px;
    font-weight: 600;
    color: var(--secondary-text);
    line-height: 1.1;
}

.items-create.variation-draft-entry {
    appearance: none;
    border: 0;
    background: transparent;
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
    text-align: left;
    cursor: pointer;
}

.items-create.variation-remove {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--warning);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

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

.items-create.toggle-option {
    min-height: 40px;
    border: 1px solid var(--primary-border);
    border-radius: 12px;
    background-color: var(--bodyBG);
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-text);
    font-size: 12px;
    font-weight: 700;
}

.items-create.toggle-option input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: var(--primary-accent);
    margin: 0;
    flex: 0 0 14px;
}

.items-create.muted {
    color: var(--secondary-text);
    font-size: 12px;
    font-weight: 600;
}

.items-create.actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 6px;
}

.items-create.action-button {
    min-width: 112px;
    height: 40px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid var(--primary-border);
    background-color: var(--bodyBG);
    color: var(--primary-text);
    font-size: 12px;
    font-weight: 700;
}

.items-create.action-button.primary {
    border-color: var(--primary-accent);
    background-color: var(--primary-accent);
    color: var(--primary-text-alt);
}

#itemsCreatePanel {
    z-index: 1200;
    --app-panel-max-width: 991px;
    --app-panel-bg: color-mix(in srgb, var(--cardBG) 92%, var(--bodyBG));
    --app-panel-border: color-mix(in srgb, var(--primary-border) 85%, transparent);
    --app-panel-backdrop: color-mix(in srgb, var(--primary-text) 38%, transparent);
    --app-panel-shadow: 0 20px 48px rgba(0, 0, 0, 0.18);
}

#itemsCreatePanel::part(body) {
    padding: 0 1rem calc(1rem + env(safe-area-inset-bottom));
    padding-bottom: 48px;
}

#itemsVariationPanel {
    z-index: 1201;
    --app-panel-max-width: 920px;
    --app-panel-bg: color-mix(in srgb, var(--cardBG) 92%, var(--bodyBG));
    --app-panel-border: color-mix(in srgb, var(--primary-border) 85%, transparent);
    --app-panel-backdrop: color-mix(in srgb, var(--primary-text) 38%, transparent);
    --app-panel-shadow: 0 20px 48px rgba(0, 0, 0, 0.18);
}

#itemsVariationPanel::part(body) {
    padding: 0 1rem calc(1rem + env(safe-area-inset-bottom));
    padding-bottom: 112px;
}

#itemsCategoryPanel {
    z-index: 1201;
    --app-panel-max-width: 860px;
    --app-panel-bg: color-mix(in srgb, var(--cardBG) 92%, var(--bodyBG));
    --app-panel-border: color-mix(in srgb, var(--primary-border) 85%, transparent);
    --app-panel-backdrop: color-mix(in srgb, var(--primary-text) 38%, transparent);
    --app-panel-shadow: 0 20px 48px rgba(0, 0, 0, 0.18);
}

#itemsCategoryPanel::part(body) {
    padding: 0 1rem calc(1rem + env(safe-area-inset-bottom));
    padding-bottom: 72px;
}

#itemsBrandPanel {
    z-index: 1201;
    --app-panel-max-width: 860px;
    --app-panel-bg: color-mix(in srgb, var(--cardBG) 92%, var(--bodyBG));
    --app-panel-border: color-mix(in srgb, var(--primary-border) 85%, transparent);
    --app-panel-backdrop: color-mix(in srgb, var(--primary-text) 38%, transparent);
    --app-panel-shadow: 0 20px 48px rgba(0, 0, 0, 0.18);
}

#itemsBrandPanel::part(body) {
    padding: 0 1rem calc(1rem + env(safe-area-inset-bottom));
    padding-bottom: 72px;
}

#itemsExportPanel {
    z-index: 1200;
    --app-panel-max-width: 640px;
    --app-panel-bg: color-mix(in srgb, var(--cardBG) 92%, var(--bodyBG));
    --app-panel-border: color-mix(in srgb, var(--primary-border) 85%, transparent);
    --app-panel-backdrop: color-mix(in srgb, var(--primary-text) 38%, transparent);
    --app-panel-shadow: 0 20px 48px rgba(0, 0, 0, 0.18);
}

#itemsExportPanel::part(body) {
    padding: 0 1rem calc(1rem + env(safe-area-inset-bottom));
    padding-bottom: 40px;
}

.items-export.dialog {
    width: 100%;
    border: none;
    background: transparent;
    box-shadow: none;
    padding: 10px 8px 8px;
    box-sizing: border-box;
}

.items-export.dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 20px;
}

.items-export.dialog-title {
    margin: 0;
    font-size: 22px;
    font-weight: 900;
    color: var(--primary-text);
    letter-spacing: -0.01em;
    line-height: 1;
}

.items-export.panel-shell {
    border-radius: 16px;
    border: 1px solid var(--primary-border);
    background-color: color-mix(in srgb, var(--bodyBG) 88%, var(--cardBG));
    padding: 16px;
}

.items-export.panel-content {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.items-export.section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.items-export.section-label {
    margin: 0;
    color: var(--secondary-text);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.items-export.option-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.items-export.option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-text);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}

.items-export.option input {
    width: 14px;
    height: 14px;
    accent-color: var(--primary-accent);
}

.items-export.summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.items-export.summary-item {
    border-radius: 10px;
    border: 1px solid var(--primary-border);
    background-color: var(--sectionBG);
    padding: 10px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.items-export.summary-label {
    color: var(--secondary-text);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1;
}

.items-export.summary-value {
    color: var(--primary-text);
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
}

.items-export.status {
    margin: 0;
    min-height: 16px;
    color: var(--secondary-text);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
}

.items-export.actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.items-delete.modal {
    position: fixed;
    inset: 0;
    z-index: 1500;
    display: grid;
    place-items: center;
    padding: 18px;
    box-sizing: border-box;
}

.items-delete.modal[hidden] {
    display: none;
}

.items-delete.backdrop {
    position: absolute;
    inset: 0;
    background: color-mix(in srgb, var(--primary-text) 24%, transparent);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.items-delete.dialog {
    position: relative;
    z-index: 1;
    width: min(520px, 100%);
    border-radius: 16px;
    border: 1px solid var(--primary-border);
    background: color-mix(in srgb, var(--cardBG) 94%, var(--bodyBG));
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.2);
    padding: 18px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.items-delete.title {
    margin: 0;
    color: var(--primary-text);
    font-size: 18px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.items-delete.message {
    margin: 0;
    color: var(--secondary-text);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
}

.items-delete.actions {
    margin-top: 6px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.items-import.modal {
    position: fixed;
    inset: 0;
    z-index: 1400;
}

.items-import.modal[hidden] {
    display: none;
}

.items-import.backdrop {
    position: absolute;
    inset: 0;
    background: color-mix(in srgb, var(--primary-text) 22%, transparent);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.items-import.dialog {
    position: relative;
    width: 100%;
    height: 100%;
    background: color-mix(in srgb, var(--bodyBG) 92%, var(--cardBG));
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.items-import.header {
    min-height: 64px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--primary-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-sizing: border-box;
}

.items-import.header-left {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.items-import.close {
    width: 34px;
    height: 34px;
    border-radius: 17px;
    border: 1px solid var(--primary-border);
    background: var(--sectionBG);
    color: var(--secondary-text);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex: 0 0 34px;
}

.items-import.title {
    margin: 0;
    color: var(--primary-text);
    font-size: 16px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.01em;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.items-import.content {
    flex: 1 1 auto;
    min-height: 0;
    padding: 20px;
    box-sizing: border-box;
    overflow: auto;
}

.items-import.stage {
    width: min(1280px, 100%);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.items-import.stage[hidden] {
    display: none;
}

.items-import.file-card,
.items-import.loading-card,
.items-import.mapping-card,
.items-import.preview-card {
    border-radius: 14px;
    border: 1px solid var(--primary-border);
    background: var(--cardBG);
    box-sizing: border-box;
}

.items-import.file-card {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

.items-import.stage-title {
    margin: 0;
    color: var(--primary-text);
    font-size: 34px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.02em;
}

.items-import.stage-message {
    margin: 0;
    color: var(--secondary-text);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    max-width: 820px;
}

.items-import.file-name,
.items-import.select-status {
    margin: 0;
    color: var(--secondary-text);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}

.items-import.loading-stage {
    justify-content: center;
    min-height: calc(100vh - 140px);
}

.items-import.loading-card {
    width: min(860px, 100%);
    margin: 0 auto;
    padding: 34px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.items-import.loading-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    border: 1px solid var(--primary-border);
    background: color-mix(in srgb, var(--sectionBG) 88%, var(--bodyBG));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-text);
}

.items-import.progress-track {
    width: 100%;
    height: 12px;
    border-radius: 999px;
    border: 1px solid var(--primary-border);
    background: color-mix(in srgb, var(--sectionBG) 85%, var(--bodyBG));
    overflow: hidden;
}

.items-import.progress-bar {
    height: 100%;
    width: 0%;
    border-radius: inherit;
    background: var(--primary-text);
    transition: width 180ms ease;
}

.items-import.progress-text {
    margin: 0;
    color: var(--primary-text);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
}

.items-import.hint {
    margin: 0;
    color: var(--secondary-text);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
}

.items-import.mapping-card {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.items-import.mapping-title {
    margin: 0;
    color: var(--secondary-text);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.items-import.mapping-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 260px;
    overflow: auto;
}

.items-import.mapping-row {
    display: grid;
    grid-template-columns: minmax(160px, 200px) minmax(180px, 260px) minmax(220px, 1fr);
    gap: 8px;
    align-items: center;
    padding: 8px;
    border-radius: 10px;
    background: var(--sectionBG);
}

.items-import.mapping-field {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.items-import.mapping-label {
    color: var(--primary-text);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.items-import.mapping-required {
    color: var(--primary-positive);
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.items-import.mapping-select,
.items-import.mapping-default,
.items-import.table-input {
    width: 100%;
    min-width: 0;
    height: 40px;
    border-radius: 9px;
    border: 1px solid var(--primary-border);
    background: var(--bodyBG);
    color: var(--primary-text);
    font-size: 13px;
    font-weight: 600;
    box-sizing: border-box;
    padding: 0 12px;
}

.items-import.mapping-select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--secondary-text) 50%),
        linear-gradient(135deg, var(--secondary-text) 50%, transparent 50%);
    background-position: calc(100% - 16px) 16px, calc(100% - 11px) 16px;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 28px;
}

.items-import.review-status {
    margin: 0;
    min-height: 18px;
    color: var(--secondary-text);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
}

.items-import.review-status.success {
    color: var(--primary-positive);
}

.items-import.review-status.error {
    color: var(--primary-negative);
}

.items-import.preview-card {
    padding: 0;
    overflow: hidden;
}

.items-import.preview-toolbar {
    min-height: 44px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--primary-border);
    background: var(--sectionBG);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.items-import.select-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-text);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.items-import.select-all input {
    width: 14px;
    height: 14px;
    accent-color: var(--primary-accent);
}

.items-import.row-count {
    color: var(--secondary-text);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

.items-import.preview-scroll {
    max-height: 44vh;
    overflow: auto;
}

.items-import.preview-table {
    width: 100%;
    min-width: 1320px;
    border-collapse: separate;
    border-spacing: 0;
}

.items-import.preview-table th:nth-child(2),
.items-import.preview-table td:nth-child(2) {
    min-width: 220px;
}

.items-import.preview-table th:nth-child(3),
.items-import.preview-table td:nth-child(3) {
    min-width: 180px;
}

.items-import.preview-table th:nth-child(4),
.items-import.preview-table td:nth-child(4) {
    min-width: 150px;
}

.items-import.preview-table th:nth-child(5),
.items-import.preview-table td:nth-child(5) {
    min-width: 240px;
}

.items-import.preview-table th:nth-child(6),
.items-import.preview-table td:nth-child(6) {
    min-width: 280px;
}

.items-import.preview-table th:nth-child(7),
.items-import.preview-table td:nth-child(7) {
    min-width: 130px;
}

.items-import.preview-table th:nth-child(8),
.items-import.preview-table td:nth-child(8),
.items-import.preview-table th:nth-child(9),
.items-import.preview-table td:nth-child(9),
.items-import.preview-table th:nth-child(10),
.items-import.preview-table td:nth-child(10),
.items-import.preview-table th:nth-child(11),
.items-import.preview-table td:nth-child(11) {
    min-width: 130px;
}

.items-import.preview-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--sectionBG);
    color: var(--secondary-text);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: left;
    border-bottom: 1px solid var(--primary-border);
    padding: 10px 12px;
    white-space: nowrap;
}

.items-import.preview-table tbody td {
    border-bottom: 1px solid color-mix(in srgb, var(--primary-border) 72%, transparent);
    padding: 8px 10px;
    background: var(--cardBG);
}

.items-import.table-checkbox {
    width: 40px;
    min-width: 40px;
    text-align: center;
}

.items-import.table-checkbox input {
    width: 14px;
    height: 14px;
    accent-color: var(--primary-accent);
}

.items-import.table-input.invalid {
    border-color: color-mix(in srgb, var(--primary-negative) 60%, var(--primary-border));
    background: color-mix(in srgb, var(--secondary-negative) 24%, var(--bodyBG));
}

.items-import.review-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 2px;
}

.items-create.dialog {
    width: 100%;
    border: none;
    background: transparent;
    box-shadow: none;
    padding: 10px 8px 8px;
    box-sizing: border-box;
}

.items-create.dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 24px;
}

.items-create.dialog-title {
    margin: 0;
    font-size: 22px;
    font-weight: 900;
    color: var(--primary-text);
    letter-spacing: -0.01em;
    line-height: 1;
}

.items-create.dialog-close {
    min-width: 92px;
    height: 36px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid var(--primary-border);
    background-color: var(--bodyBG);
    color: var(--secondary-text);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.items-create.dialog .items-create.panel-shell {
    border: none;
    border-radius: 0;
    padding: 0;
    margin-top: 0;
    background: transparent;
}

.items-create.dialog .items-create.panel-content {
    width: 100%;
}

@media (max-width: 1024px) {
    .items-import.content {
        padding: 16px;
    }

    .items-import.mapping-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .items-export.summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .items-create.panel-shell {
        padding: 16px;
    }

    .items-create.field-row,
    .items-create.field-row.two-column {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    .items-create.row-label {
        padding-top: 0;
        font-size: 14px;
    }

    .items-create.row-label.spacer {
        display: none;
    }

    .items-create.toggle-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 760px) {
    .items-import.header {
        padding: 10px 12px;
    }

    .items-import.title {
        font-size: 15px;
    }

    .items-import.content {
        padding: 12px;
    }

    .items-import.stage-title {
        font-size: 28px;
    }

    .items-import.stage-message {
        font-size: 15px;
    }

    .items-import.loading-card {
        padding: 20px;
    }

    .items-import.review-actions {
        grid-template-columns: minmax(0, 1fr);
    }

    .items-export.dialog {
        padding: 8px 4px 6px;
    }

    .items-export.dialog-title {
        font-size: 18px;
    }

    .items-export.summary {
        grid-template-columns: minmax(0, 1fr);
    }

    .items-create.panel-shell {
        padding: 14px;
    }

    .items-create.section-title {
        font-size: 22px;
    }

    .items-create.dual-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .items-create.dialog {
        padding: 8px 4px 6px;
    }

    .items-create.dialog-title {
        font-size: 18px;
    }
}

@media (max-width: 960px) {
    .items-products.row {
        grid-template-columns: 30px 60px minmax(120px, 1fr) minmax(160px, 1.6fr) 110px 110px;
        padding: 0 8px;
    }

    .items-products.table.categories .items-products.row {
        grid-template-columns: 30px 60px minmax(180px, 1fr);
    }

    .items-products.table.brands .items-products.row {
        grid-template-columns: 30px 60px minmax(130px, 1fr) minmax(180px, 1.4fr);
    }
}

@media (max-width: 1080px) {
    .home-overview.content-wrapper {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "onboarding"
            "gross-sales"
            "metrics-summary"
            "gross-sales-by-platform";
    }

    .break-even.amount {
        font-size: 44px;
    }

    .break-even.summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas:
            "net-sales net-sales"
            "profit profit"
            "bills labor"
            "tax cogs";
    }
}

.settings-profile.content-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
    gap: 12px;
    width: 100%;
    align-content: start;
}

.settings-profile.card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--primary-border);
    background-color: var(--bodyBG);
}

.settings-auth.form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.settings-auth.field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.settings-auth.label {
    font-size: 12px;
    font-weight: 700;
    color: var(--secondary-text);
}

.settings-auth.input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--primary-border);
    background-color: var(--sectionBG);
    color: var(--primary-text);
}

.settings-auth.actions {
    display: flex;
    flex-direction: row;
    gap: 8px;
    margin-top: 4px;
}

.settings-auth.button {
    border: 1px solid var(--primary-border);
    border-radius: 10px;
    padding: 10px 12px;
    font-weight: 700;
    cursor: pointer;
    color: var(--primary-text);
    background-color: var(--bodyBG);
}

.settings-auth.button.primary {
    color: var(--primary-text-alt);
    background-color: var(--primary-accent);
    border-color: var(--primary-accent);
}

.settings-auth.button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.settings-auth.status {
    min-height: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--secondary-text);
}

.settings-location.picker {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid var(--primary-border);
    background-color: var(--sectionBG);
}

.settings-location.hint {
    margin: 0;
    font-size: 11px;
    font-weight: 600;
    color: var(--secondary-text);
    line-height: 1.3;
}

.settings-session.grid {
    display: grid;
    grid-template-columns: minmax(0, 160px) minmax(0, 1fr);
    gap: 8px 10px;
}

.settings-session.label {
    font-size: 12px;
    font-weight: 700;
    color: var(--secondary-text);
}

.settings-session.value {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-text);
    word-break: break-word;
}

.settings-session.json {
    margin: 0;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid var(--primary-border);
    background-color: var(--sectionBG);
    color: var(--primary-text);
    max-height: 240px;
    overflow: auto;
    font-size: 11px;
}

.online-theme.content-wrapper {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.online-theme.sidebar-panel {
    display: flex;
    flex-direction: column;
    padding: 12px;
    border-radius: 16px;
    background-color: var(--sidebarBG);
    min-height: none;
    box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.1);
}

.online-theme.group-list,
.online-theme.token-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.online-theme.mode-switch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: 100%;
    margin-bottom: 12px;
    padding: 2px;
    border-radius: 99px;
    border: 1px solid var(--primary-border);
    background-color: var(--sidebar-segmentedBG);
}

.online-theme.mode-button {
    flex: 1 1 0;
    border: 0;
    padding: 7px 10px;
    border-radius: 99px;
    background-color: transparent;
    color: var(--primary-text);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.online-theme.mode-button.active {
    color: var(--primary-text-alt);
    background-color: var(--primary-accent);
}

.online-theme.group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.online-theme.group-item {
    width: 100%;
    position: relative;
    text-align: left;
    border: 1px solid transparent;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 30px 10px 12px;
}

.online-theme.group-item::after {
    content: "›";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    transform-origin: center;
    color: currentColor;
    font-size: 15px;
    font-weight: 900;
    line-height: 1;
    opacity: 0.8;
}

.online-theme.group.expanded .online-theme.group-item::after {
    transform: translateY(-50%) rotate(90deg);
}

.online-theme.group-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-left: 10px;
}

.online-theme.group-content[hidden] {
    display: none;
}

.online-theme.group-item:not(.active):hover {
    background-color: var(--sectionBG);
}

.online-theme.preview-panel {
    min-width: 0;
}

.online-theme.card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--primary-border);
    background-color: var(--bodyBG);
}

.online-theme.controls {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.online-theme.actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.online-theme.action-button {
    margin-top: 0;
    min-width: 0;
    width: 100%;
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.online-theme.action-button:disabled {
    opacity: 0.48;
    cursor: not-allowed;
}

.online-theme.token-list {
    gap: 8px;
}

.online-theme.token-row {
    width: 100%;
    position: relative;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    background-color: var(--sectionBG);
    text-align: left;
    appearance: none;
    -webkit-appearance: none;
}

.online-theme.token-row:hover {
    background-color: color-mix(in srgb, var(--sectionBG) 92%, var(--bodyBG));
}

.online-theme.token-row[hidden] {
    display: none;
}

.online-theme.token-details {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.online-theme.token-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 2px;
}

.online-theme.token-swatch {
    width: 11px;
    height: 11px;
    border-radius: 99px;
    border: 1px solid color-mix(in srgb, var(--primary-text) 24%, transparent);
    background-color: var(--sectionBG);
    flex: 0 0 11px;
}

.online-theme.token-name {
    color: var(--primary-text);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.online-theme.token-value {
    color: var(--secondary-text);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.online-theme.token-picker {
    position: absolute;
    right: 0;
    top: 0;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.online-theme.token-opacity-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.online-theme.token-clear {
    border: 0;
    background: transparent;
    color: var(--secondary-text);
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    padding: 0;
    cursor: pointer;
}

.online-theme.token-clear:disabled {
    opacity: 0.4;
    cursor: default;
}

.online-theme.token-opacity {
    width: 74px;
    accent-color: var(--primary-accent);
}

.online-theme.token-opacity-value {
    min-width: 34px;
    text-align: right;
    color: var(--secondary-text);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.online-theme.url-input {
    flex: 1 1 380px;
    min-width: 220px;
    height: 38px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid var(--primary-border);
    background-color: var(--sectionBG);
    color: var(--primary-text);
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    box-sizing: border-box;
}

.online-theme.url-input::placeholder {
    color: var(--secondary-text);
}

.online-theme.load-button {
    height: 38px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid var(--primary-border);
    background-color: var(--sectionBG);
    color: var(--primary-text);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
    white-space: nowrap;
}

.online-theme.open-link {
    height: 38px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid var(--primary-border);
    background-color: var(--sectionBG);
    color: var(--secondary-text);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    white-space: nowrap;
}

.online-theme.status {
    margin: 0;
    min-height: 16px;
    color: var(--secondary-text);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
}

.online-theme.status.error {
    color: var(--primary-negative);
}

.online-theme.frame-shell {
    width: 100%;
    min-height: 560px;
    border-radius: 14px;
    border: 1px solid var(--primary-border);
    background-color: var(--sectionBG);
    overflow: hidden;
}

.online-theme.frame {
    width: 100%;
    height: 75vh;
    border: 0;
    display: block;
    background-color: #fff;
}

.layout.content-wrapper.online-theme-sidebar-collapsed>.sidebar.content-wrapper {
    display: none;
}

.online-theme.hint {
    margin: 0;
    color: var(--secondary-text);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

[data-location-picker-trigger] {
    cursor: pointer;
}

.location-picker.overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: transparent;
}

.location-picker.popover {
    position: fixed;
    z-index: 1001;
    width: min(512px, calc(100vw - 24px));
    max-height: min(70vh, 620px);
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    border-radius: 26px;
    border: 1px solid var(--primary-border);
    background-color: color-mix(in srgb, var(--bodyBG) 90%);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    background-blend-mode: saturation;
}

.location-picker.popover[hidden] {
    display: none;
}

.location-picker.caret {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: color-mix(in srgb, var(--bodyBG) 90%);
    border-left: 1px solid var(--primary-border);
    border-top: 1px solid var(--primary-border);
    transform: rotate(45deg);
    top: -11px;
    left: 40px;
    border-top-left-radius: 6px;
    pointer-events: none;
    background-blend-mode: saturation;
}

.location-picker.search {
    position: relative;
    width: 100%;
    height: 38px;
    border-radius: 20px;
    border: 1px solid var(--primary-border);
    background-color: color-mix(in srgb, var(--bodyBG) 90%);
    background-blend-mode: saturation;
    display: flex;
    align-items: center;
    padding-left: 40px;
    padding-right: 12px;
    box-sizing: border-box;
}

.location-picker.search-icon {
    position: absolute;
    left: 16px;
    width: 16px;
    height: 16px;
    color: var(--secondary-text);
}

.location-picker.search-input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--primary-text);
    font-size: 16px;
    font-weight: 600;
}

.location-picker.search-input::placeholder {
    color: var(--secondary-text);
    font-weight: 500;
}

.location-picker.subtitle {
    margin: 0;
    color: var(--secondary-text);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.location-picker.list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: min(50vh, 420px);
    overflow: auto;
    padding-right: 2px;
}

.location-picker.item {
    width: 100%;
    border: 1px solid var(--primary-border);
    border-radius: 16px;
    background-color: var(--sectionBG);
    color: inherit;
    padding: 10px 12px;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 22px;
    align-items: center;
    gap: 12px;
    text-align: left;
    cursor: pointer;
}

.location-picker.item.selected {
    border-color: color-mix(in srgb, var(--primary-accent) 35%, var(--primary-border));
    background-color: color-mix(in srgb, var(--primary-accent) 10%, var(--sectionBG));
}

.location-picker.item-initials {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 900;
    color: var(--primary-text-alt);
    background-color: var(--primary-accent);
    border: none;
}

.location-picker.item-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.location-picker.item-name {
    color: var(--primary-text);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.1;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.location-picker.item-subtitle {
    color: var(--secondary-text);
    font-size: 14px;
    font-weight: 500;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.location-picker.item-check {
    width: 22px;
    height: 22px;
    border-radius: 99px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    background-color: transparent;
    border: 1px solid var(--primary-border);
    transition: all 140ms ease;
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
}

.location-picker.item.selected .location-picker.item-check {
    color: var(--primary-accent);
    border-color: color-mix(in srgb, var(--primary-accent) 35%, var(--primary-border));
    background-color: color-mix(in srgb, var(--primary-accent) 12%, var(--sectionBG));
}

.location-picker.empty {
    border-radius: 16px;
    border: 1px dashed var(--primary-border);
    background-color: var(--sectionBG);
    padding: 14px;
    color: var(--secondary-text);
    font-size: 13px;
    font-weight: 700;
}

@media (max-width: 720px) {
    .location-picker.popover {
        border-radius: 20px;
        padding: 12px;
    }

    .location-picker.item-name {
        font-size: 18px;
    }
}

@media (max-width: 960px) {
    .settings-profile.content-wrapper {
        grid-template-columns: minmax(0, 1fr);
    }

    .online-theme.content-wrapper {
        grid-template-columns: minmax(0, 1fr);
    }

    .online-theme.sidebar-panel {
        min-height: auto;
    }

    .online-theme.frame-shell {
        min-height: 460px;
    }

    .online-theme.frame {
        height: 460px;
    }
}

.list-item.value {
    font-weight: 700;
}