@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/InterVariable-cyrillic-ext-1751944278923.woff2") format("woff2");
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/InterVariable-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-ui);
    color: var(--body);
    background: var(--canvas);
}

/* Keep one browser-native cursor treatment across every application.  This
   intentionally includes links and controls whose component styles request a
   hand, drag, resize, or waiting cursor. */
body,
body * {
    cursor: auto !important;
}

/* Links remain visibly actionable even with the shared cursor baseline. */
a[href] {
    cursor: pointer !important;
}

button:not(:disabled),
input[type="button"]:not(:disabled),
input[type="submit"]:not(:disabled),
input[type="reset"]:not(:disabled),
[role="button"]:not([aria-disabled="true"]),
[data-reusable-card-select]:not([aria-disabled="true"]) {
    cursor: pointer !important;
}

[data-reusable-card-select]:not([aria-disabled="true"]) * {
    cursor: pointer !important;
}

body.is-authenticated select {
    height: 2rem;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
    background-color: #ffffff;
    color: var(--body);
    font-size: 0.78rem;
    padding: 0 1.8rem 0 0.5rem;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2358606f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 12px 12px;
}

body.is-authenticated select::-ms-expand {
    display: none;
}

.container {
    width: min(1200px, calc(100% - 48px));
    margin-inline: auto;
}

.page {
    min-height: 100vh;
}

.hero {
    padding: var(--section) 0 48px;
}

body.is-authenticated .page {
    padding-top: calc(64px + 1rem);
    padding-bottom: 1rem;
    padding-left: 0;
}

@media (max-width: 960px) {
    body.is-authenticated .page { padding-left: 0; }
}

body.is-authenticated .container {
    width: calc(100% - 2rem);
}

body.is-authenticated .hero {
    padding: 1rem 0;
}

body.is-authenticated .apps-section {
    padding-bottom: 1rem;
}

body.is-app-page {
    overflow: visible;
}

body.is-app-page .page {
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
}

body.is-app-page .hero {
    height: 100%;
    padding: 0;
}

body.is-app-page .hero > .container {
    height: 100%;
}

body.is-app-page :where(button, label, span, p, h1, h2, h3, h4, th, td, div, article, section, a) {
    caret-color: transparent;
}

body.is-app-page :where(input, textarea, select, [contenteditable="true"], [contenteditable="true"] *) {
    caret-color: auto;
}

body.is-app-page button {
    text-transform: uppercase;
}

html.has-open-overlay,
body.has-open-overlay {
    overscroll-behavior-x: none;
}

.app-workspace-shell {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 0.75rem;
    height: 100%;
}

.app-workspace-shell--table-only {
    grid-template-rows: minmax(0, 1fr);
    gap: 0;
}

.app-surface--compact {
    height: auto;
    overflow: hidden;
    padding: 1rem;
}

.app-table-only {
    min-height: 0;
    height: 100%;
    display: grid;
    grid-template-rows: auto;
    overflow: hidden;
}

h1 {
    margin: 0 0 12px;
    font-size: clamp(2rem, 4vw, 2.5rem);
    line-height: 1.2;
    font-weight: 500;
    color: var(--primary);
}

p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

.signature-card {
    background: var(--signature-coral);
    color: var(--on-dark);
    border-radius: var(--radius-lg);
    padding: 48px;
}

.signature-card h1,
.signature-card p {
    color: var(--on-dark);
}

.login-wrap {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 24px;
    align-items: stretch;
}

.login-form {
    background: var(--surface-soft);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    padding: 32px;
    display: grid;
    gap: 10px;
    align-content: start;
}

label {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
    margin-top: 4px;
}

input[type="text"],
input[type="password"],
input[type="search"],
input[type="email"],
input[type="number"] {
    height: 44px;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
    padding: 0 12px;
    font-size: 14px;
}

body.is-authenticated input[type="text"],
body.is-authenticated input[type="password"],
body.is-authenticated input[type="search"],
body.is-authenticated input[type="email"],
body.is-authenticated input[type="number"],
body.is-authenticated input[type="date"] {
    height: 2rem;
    font-size: 0.8rem;
    font-family: inherit;
    padding: 0 8px;
}

body.is-authenticated input[type="date"]::-webkit-datetime-edit,
body.is-authenticated input[type="date"]::-webkit-datetime-edit-text,
body.is-authenticated input[type="date"]::-webkit-datetime-edit-day-field,
body.is-authenticated input[type="date"]::-webkit-datetime-edit-month-field,
body.is-authenticated input[type="date"]::-webkit-datetime-edit-year-field {
    font-family: inherit;
    font-size: inherit;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="email"]:focus,
input[type="number"]:focus {
    outline: none;
    border-color: #458fff;
}

.btn {
    border: none;
    height: 44px;
    padding: 0 20px;
    border-radius: var(--radius-lg);
    font-size: 16px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

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

.btn-primary:active {
    background: var(--primary-active);
}

.btn-secondary {
    background: var(--canvas);
    color: var(--primary);
    border: 1px solid var(--hairline);
}

.flash {
    margin-top: 16px;
    border-radius: var(--radius-sm);
    padding: 12px;
    font-size: 14px;
}

.flash-error {
    background: #fff3f2;
    color: var(--color-warning);
    border: 1px solid var(--color-warning-border);
}

.is-authenticated .flash {
    position: fixed;
    top: calc(4rem + 0.75rem + env(safe-area-inset-top, 0px));
    right: 1rem;
    z-index: 5000;
    width: min(32rem, calc(100vw - 2rem));
    margin-top: 0;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
}

.ops-toast {
    position: fixed;
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px) + var(--ops-toast-offset, 0px));
    left: 1rem;
    z-index: 7000;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 260px;
    max-width: min(520px, calc(100vw - 2rem));
    border: 1px solid #c7d2e0;
    border-radius: 8px;
    background: var(--canvas);
    color: #1f2937;
    padding: 0.75rem;
    font-size: 0.875rem;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.16s ease, transform 0.16s ease;
}

body.has-open-overlay .ops-toast {
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px) + var(--ops-toast-offset, 0px));
    left: 1rem;
}

.ops-toast-close {
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    margin-left: auto;
    border: 1px solid transparent;
    border-radius: 4px;
    background: transparent;
    color: inherit;
    opacity: 0.72;
    padding: 0.4rem;
}

.ops-toast-close:hover {
    opacity: 1;
    background: var(--surface-soft);
}

.ops-toast-close:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.ops-toast-close svg,
.ops-toast-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.ops-toast-icon {
    flex: 0 0 auto;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.31rem;
}

.ops-toast-message {
    min-width: 0;
    line-height: 1.35;
}

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

.ops-toast.is-error {
    border-color: var(--color-danger-border);
    background: var(--color-danger-bg);
    color: var(--color-danger);
}

.ops-toast.is-success {
    border-color: var(--color-success-border);
    background: var(--color-success-bg);
    color: var(--color-success);
}

.ops-toast.is-info {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}

.ops-toast.is-warning {
    border-color: var(--color-warning-border);
    background: var(--color-warning-bg);
    color: var(--color-warning);
}

.ops-toast.is-success .ops-toast-icon { background: var(--color-success-bg); color: var(--color-success); }
.ops-toast.is-error .ops-toast-icon { background: var(--color-danger-bg); color: var(--color-danger); }
.ops-toast.is-warning .ops-toast-icon { background: var(--color-warning-bg); color: var(--color-warning); }
.ops-toast.is-info .ops-toast-icon { background: #eff6ff; color: #1d4ed8; }

.ops-toast.is-loading .ops-toast-icon {
    background: transparent;
    padding: 0;
}

.ops-toast.is-loading .ops-toast-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    fill: currentColor;
    stroke: none;
    animation: ops-toast-spin 0.8s linear infinite;
}

.ops-toast.is-loading .ops-toast-spinner-track { fill: currentColor; opacity: 0.28; }
.ops-toast.is-loading .ops-toast-spinner-fill { fill: currentColor; }

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

.dashboard-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
}

.apps-section {
    padding-bottom: var(--section);
}

.dashboard-app-groups {
    display: grid;
    gap: 36px;
}

.dashboard-app-group {
    --app-group-color: #2563eb;
    --app-group-soft: #eff6ff;
    background: var(--app-group-soft);
    border-radius: 8px;
    display: grid;
    gap: 14px;
    padding: 18px;
}

.dashboard-app-group[data-app-group="tools"] { --app-group-color: #7c3aed; --app-group-soft: #f5f3ff; }
.dashboard-app-group[data-app-group="feeds"] { --app-group-color: #c2410c; --app-group-soft: #fff7ed; }
.dashboard-app-group[data-app-group="others"] { --app-group-color: #047857; --app-group-soft: #ecfdf5; }

.dashboard-app-group__title {
    color: var(--app-group-color);
    font-size: 14px;
    font-weight: 750;
    margin: 0;
    text-transform: uppercase;
}

.dashboard-app-group__title::before {
    background: var(--app-group-color);
    border-radius: 50%;
    content: "";
    display: inline-block;
    height: 7px;
    margin-right: 8px;
    vertical-align: 1px;
    width: 7px;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.app-card {
    border-radius: var(--radius-md);
    border: 1px solid var(--hairline);
    background: var(--surface-soft);
    padding: 24px;
    display: grid;
    gap: 14px;
    text-decoration: none;
    color: inherit;
}

.app-card h2,
.app-card h3 {
    margin: 0;
    color: var(--primary);
    font-size: 20px;
    font-weight: 500;
}

.app-surface {
    border-radius: var(--radius-lg);
    border: 1px solid var(--hairline);
    background: var(--surface-soft);
    padding: 32px;
    display: grid;
    gap: 16px;
}

body.is-app-page .app-surface {
    height: 100%;
    overflow: auto;
}

.feed-generator-shell,
.product-feed-manager-shell,
.cj-crawler-shell,
.upload-media-shell {
    display: grid;
    grid-template-rows: 50% 50%;
    gap: 0.75rem;
    height: 100%;
    min-height: 0;
}

.feed-generator-shell .ops-table {
    table-layout: fixed;
}

.feed-generator-shell .ops-table tbody tr {
    height: 2rem;
    min-height: 2rem;
    max-height: 2rem;
}

.feed-generator-shell .ops-table th,
.feed-generator-shell .ops-table td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.15;
}

.feed-log-panel {
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    background: var(--surface-soft);
    display: grid;
    grid-template-rows: 1fr;
    min-height: 0;
    overflow: hidden;
}

.feed-log-list {
    min-height: 0;
    overflow: auto;
    padding: 0.5rem;
    display: grid;
    gap: 0.15rem;
    align-content: start;
    grid-auto-rows: max-content;
}

.feed-log-row {
    border: 1px solid var(--hairline);
    border-radius: 8px;
    background: #ffffff;
    height: 2rem;
    min-height: 2rem;
    padding: 0 0.5rem;
    display: grid;
    grid-template-columns: 165px 70px minmax(100px, 160px) minmax(80px, 130px) minmax(0, 1fr);
    align-items: center;
    column-gap: 0.25rem;
    font-size: 0.75rem;
    line-height: 1;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
}


.feed-log-time {
    color: #4a5160;
    position: sticky;
    left: 0;
    z-index: 2;
    background: #ffffff;
    padding-right: 0.4rem;
}

.feed-log-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    height: 20px;
    font-size: 0.67rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    position: sticky;
    left: 165px;
    z-index: 2;
}

.feed-log-info {
    background: #e8eef9;
    color: #1f4f9e;
}

.feed-log-success {
    background: var(--color-success-bg);
    color: var(--color-success);
}

.feed-log-warning {
    background: var(--color-warning-bg);
    color: var(--color-warning);
}

.feed-log-error {
    background: var(--color-danger-bg);
    color: var(--color-danger);
}

.feed-log-message {
    color: #2f3440;
    white-space: nowrap;
    min-width: max-content;
    margin-left: 0.85rem;
}

.feed-log-store,
.feed-log-country {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #4a5160;
    font-weight: 600;
}

.feed-log-country {
    color: #616a7a;
}

.feed-table-panel,
.cj-crawler-bottom {
    min-height: 0;
    height: 100%;
    grid-template-rows: auto 1fr;
}

.feed-table-controls,
.cj-crawler-bottom-controls {
    padding: 0.5rem;
    border-bottom: 1px solid var(--hairline);
    background: var(--surface-soft);
}

/* Feed Generator uses the same shared toolbar class as several other apps,
   but its control bar should blend directly into the table panel. */
.feed-generator-shell .ops-controls.feed-table-controls {
    border-bottom: 0;
}

.cj-worker-status {
    height: 2rem;
    min-width: 124px;
    padding: 0 0.65rem;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
    background: #ffffff;
    color: #4b5565;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.cj-worker-dot {
    width: 0.48rem;
    height: 0.48rem;
    border-radius: 999px;
    background: #94a3b8;
    flex: 0 0 auto;
}

.cj-worker-status.is-ready .cj-worker-dot {
    background: var(--color-success);
}

.cj-worker-status.is-syncing .cj-worker-dot,
.cj-worker-status.is-working .cj-worker-dot {
    background: var(--color-warning);
    animation: cj-worker-pulse 0.9s ease-in-out infinite alternate;
}

.cj-worker-status.is-error .cj-worker-dot {
    background: var(--color-danger);
}

@keyframes cj-worker-pulse {
    from {
        opacity: 0.45;
        transform: scale(0.85);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.proxies-qr-shell,
.product-explorer-shell {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 0.75rem;
    height: 100%;
    min-height: 0;
}

.proxies-qr-top {
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    background: var(--surface-soft);
    padding: 0.5rem;
    display: grid;
    grid-template-rows: auto auto;
    gap: 0.25rem;
    min-height: 0;
}

.proxies-qr-gen-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
    min-width: 0;
}

/* Keep proxies table row height stable across live refresh updates. */
.proxies-qr-shell .ops-table tbody tr {
    height: 2rem;
    min-height: 2rem;
    max-height: 2rem;
}

.proxies-qr-shell .ops-table tbody td {
    height: 2rem;
    min-height: 2rem;
    max-height: 2rem;
    vertical-align: middle;
}

.proxies-qr-input[type="text"] {
    min-width: 0;
    height: 2rem;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
    padding: 0 0.6rem;
    font-size: 0.8rem;
    line-height: 1;
    background: #ffffff;
}

.proxies-qr-generate-btn,
.product-feed-manager-refresh-btn,
.product-explorer-icon-btn,
.upload-media-icon-btn,
.dm-icon-btn {
    width: 2rem;
    height: 2rem;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
    background: #ffffff;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.proxies-qr-generate-btn svg,
.product-feed-manager-refresh-btn svg,
.product-explorer-icon-btn svg,
.upload-media-icon-btn svg,
.ops-btn-group button svg,
button.action-run-btn svg,
.online-user-avatar svg,
.active-user-avatar svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.proxies-qr-controls {
    background: #ffffff;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-md);
    padding: 0.35rem;
}

.financial-ledger-shell {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 0.75rem;
    height: 100%;
    min-height: 0;
}

.financial-ledger-top {
    --financial-ledger-gap: 0.5rem;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    background: var(--surface-soft);
    padding: 0.5rem;
    display: grid;
    grid-template-rows: auto auto auto;
    gap: var(--financial-ledger-gap);
    min-height: 0;
}

.financial-ledger-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.15rem 0.15rem 0;
}

.financial-ledger-section-head h1 {
    margin: 0;
    color: var(--primary);
    font-size: 0.92rem;
    line-height: 1.25;
}

.financial-ledger-section-head p {
    margin: 0.1rem 0 0;
    color: #697386;
    font-size: 0.7rem;
}

.financial-ledger-card-count {
    color: #697386;
    font-size: 0.72rem;
    white-space: nowrap;
}

.financial-ledger-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(8.5rem, 100%), 1fr));
    gap: var(--financial-ledger-gap);
    min-height: 0;
}

.financial-ledger-cards .ops-metric-card {
    min-height: 4.25rem;
    min-width: 0;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.financial-ledger-cards .ops-metric-card :is(h3, p, strong) {
    min-width: 0;
    overflow-wrap: anywhere;
}

.financial-ledger-cards .ops-metric-card:hover {
    border-color: #aeb9c9;
    background: #f8fafc;
}

.financial-ledger-cards .ops-metric-card.is-total-balance {
    background: #f2f6fb;
    border-color: #bcc9d9;
}

.financial-ledger-cards .ops-metric-card.is-filter-active {
    border-width: 1px;
    border-color: #3478c9;
    box-shadow: inset 0 0 0 1px #3478c9;
    background: #edf5ff;
}

.gmails-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 0.5rem;
    padding: 0.5rem 0.5rem 0;
    flex: 0 0 auto;
}

.gmails-latest-device-card {
    max-width: 360px;
}

.gmails-latest-device-card:disabled {
    opacity: 0.65;
}

.wallet-sync-row {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: -0.2rem;
}

.financial-ledger-controls {
    border: 1px solid var(--hairline);
    border-radius: var(--radius-md);
    background: #ffffff;
    padding: 0.35rem;
    width: 100%;
}

.financial-ledger-action-groups {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.4rem;
    min-width: max-content;
}

.financial-ledger-action-group {
    gap: 0.25rem;
    padding: 0 0 0 0.4rem;
    border-left: 1px solid var(--hairline);
}

.financial-ledger-action-group:first-child {
    padding-left: 0;
    border-left: 0;
}

.financial-ledger-controls .financial-ledger-primary-action {
    width: 2rem;
    padding: 0;
    border-color: #235f9f;
    background: #235f9f;
    color: #ffffff;
    font-weight: 600;
}

.financial-ledger-controls .financial-ledger-primary-action:hover,
.financial-ledger-controls .financial-ledger-primary-action:focus-visible {
    border-color: #174a7f;
    background: #174a7f;
    color: #ffffff;
}

.financial-ledger-controls .financial-ledger-delete-action {
    color: var(--color-danger);
}

.financial-ledger-controls .financial-ledger-delete-action:hover,
.financial-ledger-controls .financial-ledger-delete-action:focus-visible {
    border-color: var(--color-danger-border);
    background: var(--color-danger-bg);
    color: var(--color-danger);
}

.proxies-qr-bottom,
.financial-ledger-bottom,
.product-explorer-batch-wrap,
.product-explorer-main-table,
.upload-media-table,
.invoice-manager-table {
    min-height: 0;
    height: 100%;
}

.invoice-manager-table {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 0.45rem;
}

.invoice-pagination,
.table-pagination {
    border: 1px solid var(--hairline);
    border-radius: var(--radius-md);
    background: #ffffff;
    padding: 0.4rem 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.75rem;
}

.table-pagination {
    position: relative;
}

.invoice-pagination-summary,
.table-pagination-summary {
    color: #58606f;
    white-space: nowrap;
}

.invoice-pagination-actions,
.table-pagination-actions {
    display: flex;
    gap: 0.35rem;
}

.table-pagination-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: #58606f;
    white-space: nowrap;
    text-align: center;
}

.invoice-page-btn,
.table-page-btn {
    min-width: 3.4rem;
    height: 1.8rem;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
    background: var(--canvas);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.72rem;
}

.invoice-page-btn.is-disabled,
.table-page-btn.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.product-feed-manager-top {
    min-height: 0;
    height: 100%;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    align-content: start;
}

.product-feed-manager-label {
    height: 2rem;
    border-bottom: 1px solid var(--hairline);
    background: var(--surface-soft);
    padding: 0 0.6rem;
    display: flex;
    align-items: center;
    font-size: 0.76rem;
    font-weight: 600;
    color: #4f5866;
    letter-spacing: 0.01em;
}

.product-feed-manager-controls {
    padding: 0.5rem;
    border-bottom: 1px solid var(--hairline);
    background: var(--surface-soft);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.product-feed-manager-status,
.product-feed-manager-summary {
    color: #667085;
    font-size: 0.72rem;
    font-weight: 600;
    margin-left: auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-feed-manager-generate-btn {
    height: 2rem;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
    background: #ffffff;
    color: #263244;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0;
    padding: 0 0.55rem;
    text-transform: uppercase;
    white-space: nowrap;
}

.product-feed-manager-generate-btn:disabled,
.product-feed-manager-refresh-btn:disabled {
    opacity: 0.55;
}

.product-feed-manager-refresh-btn {
    padding: 0;
}

.product-feed-manager-table-wrap {
    min-height: 0;
    overflow: auto;
    align-self: start;
}

.product-feed-manager-group-table,
.product-feed-manager-result-table {
    width: 100%;
    min-width: max-content;
}

.product-feed-manager-group-table td,
.product-feed-manager-result-table td {
    max-width: 26rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-feed-manager-count-input {
    width: 100%;
    height: 100%;
    min-height: 1.7rem;
    border: 0;
    border-radius: 0;
    padding: 0;
    font: inherit;
    color: var(--text);
    background: transparent;
    text-align: center;
    outline: none;
    appearance: textfield;
    -moz-appearance: textfield;
}

.product-feed-manager-count-input:focus {
    box-shadow: inset 0 -2px 0 rgba(31, 111, 235, 0.4);
}

.product-feed-manager-count-input::-webkit-outer-spin-button,
.product-feed-manager-count-input::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.product-feed-manager-group-table th:nth-child(3),
.product-feed-manager-group-table th:nth-child(4),
.product-feed-manager-group-table td:nth-child(3),
.product-feed-manager-group-table td:nth-child(4),
.product-feed-manager-result-table th:nth-child(5),
.product-feed-manager-result-table th:nth-child(6),
.product-feed-manager-result-table th:nth-child(7),
.product-feed-manager-result-table th:nth-child(8),
.product-feed-manager-result-table td:nth-child(5),
.product-feed-manager-result-table td:nth-child(6),
.product-feed-manager-result-table td:nth-child(7),
.product-feed-manager-result-table td:nth-child(8) {
    text-align: center;
}

.product-feed-manager-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 4.8rem;
    height: 1.35rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
}

.product-feed-manager-status-pill.is-wanted {
    background: var(--color-success-bg);
    color: var(--color-success);
}

.product-feed-manager-status-pill.is-partial {
    background: #dbeafe;
    color: #1d4ed8;
}

.product-feed-manager-actions {
    text-align: center;
    white-space: nowrap;
}

.product-feed-manager-action-btn {
    margin: 0 0.12rem;
}

.product-feed-manager-action-btn,
.product-feed-manager-icon-only {
    border: none;
    background: transparent;
    box-shadow: none;
    color: #263244;
}

.product-feed-manager-action-btn,
.product-feed-manager-refresh-btn,
.product-feed-manager-icon-only {
    width: 2rem;
    min-width: 2rem;
    height: 2rem;
    padding: 0;
    font-size: 0;
    line-height: 1;
}

.product-feed-manager-action-btn i,
.product-feed-manager-refresh-btn svg,
.product-feed-manager-icon-only i {
    font-size: 0.76rem;
}

.product-feed-manager-action-btn:hover,
.product-feed-manager-icon-only:hover {
    color: var(--primary);
}

.product-feed-manager-icon-only:disabled {
    opacity: 0.38;
    color: #94a3b8;
}

.product-feed-manager-switch {
    width: 2.45rem;
    height: 1.25rem;
    border: none;
    border-radius: 999px;
    background: #cbd5e1;
    padding: 0.14rem;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
}

.product-feed-manager-switch span {
    width: 0.96rem;
    height: 0.96rem;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.25);
    transition: transform 0.15s ease;
}

.product-feed-manager-switch.is-on {
    background: #22c55e;
}

.product-feed-manager-switch.is-on span {
    transform: translateX(1.18rem);
}

.product-feed-manager-bottom {
    min-height: 0;
    height: 100%;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    align-content: start;
}

.row-edit-modal.ui-modal.ui-modal--fullscreen.product-feed-manager-modal.is-open,
.row-edit-modal.ui-modal.ui-modal--fullscreen.product-feed-manager-upload-modal.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
    top: calc(64px + 1rem);
    bottom: 1rem;
    height: auto;
}

.row-edit-modal.ui-modal.ui-modal--fullscreen.product-feed-manager-modal .ui-modal__dialog,
.row-edit-modal.ui-modal.ui-modal--fullscreen.product-feed-manager-upload-modal .ui-modal__dialog {
    width: min(96vw, calc(100vw - 2rem));
    height: min(86vh, calc(100vh - 64px - 3rem));
    margin: 0;
}

.product-feed-manager-modal-body,
.product-feed-manager-modal-table-wrap,
.product-feed-manager-upload-body,
.product-feed-manager-upload-table-wrap {
    min-height: 0;
    height: 100%;
    overflow: auto;
}

.row-edit-modal.product-feed-manager-modal .product-feed-manager-modal-head,
.row-edit-modal.product-feed-manager-upload-modal .product-feed-manager-modal-head {
    position: relative;
    min-height: 3.25rem;
    padding: 1rem;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.product-feed-manager-modal-title-wrap {
    min-width: 220px;
    padding-right: 4.8rem;
}

.product-feed-manager-modal-top-actions {
    position: absolute;
    top: 0.65rem;
    right: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.2rem;
    z-index: 2;
}

.product-feed-manager-modal-actions {
    display: grid;
    justify-items: end;
    align-items: start;
    align-content: start;
    gap: 0.35rem;
    align-self: flex-start;
    margin-top: 0;
    padding-right: 4.8rem;
}

.product-feed-manager-modal-actions-row {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.product-feed-manager-modal-actions-row--markup {
    justify-self: end;
}

.row-edit-modal.product-feed-manager-modal .product-feed-manager-modal-body,
.row-edit-modal.product-feed-manager-upload-modal .product-feed-manager-upload-body {
    padding: 1rem;
}

.product-feed-manager-vendor-input {
    width: 160px;
    height: 2rem;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
    padding: 0 0.55rem;
    font: inherit;
}

.product-feed-manager-markup-input {
    width: 120px;
    min-width: 0;
    height: 2rem;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
    padding: 0 0.55rem;
    font: inherit;
    color: var(--text);
    background: #ffffff;
}

.product-feed-manager-media-select {
    height: 2rem;
    min-width: 150px;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
    padding: 0 1.8rem 0 0.45rem;
    font: inherit;
    background: #ffffff;
    color: var(--text);
}

.product-feed-manager-modal-btn {
    color: #263244;
    font-size: 0.7rem;
    font-weight: 800;
    white-space: nowrap;
}

.product-feed-manager-modal-meta {
    margin: 0.25rem 0 0;
    color: #667085;
    font-size: 0.74rem;
    font-weight: 600;
    line-height: 1.25;
}

.product-feed-manager-modal-table {
    width: 100%;
    min-width: max-content;
}

.product-feed-manager-modal-table th,
.product-feed-manager-modal-table td {
    max-width: 280px;
}

.product-feed-manager-editable-cell {
    background: #ffffff;
}

.product-feed-manager-editable-cell:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px rgba(31, 111, 235, 0.28);
}

.product-feed-manager-upload-progress {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.74rem;
    font-weight: 700;
    color: #475467;
}

.product-feed-manager-upload-progress-track {
    height: 0.5rem;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
}

.product-feed-manager-upload-progress-fill {
    height: 100%;
    width: 0;
    background: #2563eb;
    transition: width 0.2s ease;
}

.product-feed-manager-upload-body {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 0.75rem;
    overflow: hidden;
}

.product-feed-manager-upload-top {
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
    grid-template-rows: auto auto auto minmax(0, 1fr);
}

.product-feed-manager-upload-count {
    font-size: 0.78rem;
    font-weight: 700;
    color: #667085;
}

.product-feed-manager-upload-controls {
    grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto;
}

.product-feed-manager-upload-table-wrap {
    min-height: 0;
    max-height: 100%;
    overflow: auto;
}

.product-feed-manager-upload-top .feed-log-list {
    height: 22.25rem;
    max-height: 22.25rem;
}

.ops-bottom.product-feed-manager-top {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    align-content: start;
}

.ops-bottom.product-feed-manager-bottom {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    align-content: start;
}

.ops-bottom.product-feed-manager-top .product-feed-manager-table-wrap,
.ops-bottom.product-feed-manager-bottom .product-feed-manager-table-wrap {
    align-self: start;
    height: auto;
    max-height: 100%;
}

.cj-crawler-top {
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    background: var(--surface-soft);
    padding: 0.5rem;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 0.4rem;
    min-height: 0;
    overflow: hidden;
}

.cj-crawler-top .ops-cards {
    grid-row: auto;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    min-height: 0;
    align-self: start;
}

.cj-crawler-top .ops-metric-card {
    padding: 0.34rem 0.4rem;
    gap: 0.12rem;
}

.cj-crawler-top .ops-metric-card h3 {
    font-size: 0.66rem;
}

.cj-crawler-top .ops-metric-card p {
    font-size: 0.62rem;
    line-height: 1.05;
}

.cj-crawler-top .ops-metric-card strong {
    font-size: 0.82rem;
}

.cj-crawler-log-list {
    height: 100%;
    min-height: 0;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-md);
    background: #ffffff;
}

.cj-api-modal-dialog {
    width: min(1200px, calc(100vw - 2rem));
}

.cj-card-modal-dialog {
    width: auto;
}

.cj-api-edit-modal-dialog {
    width: min(460px, calc(100vw - 2rem));
}

.cj-task-modal-dialog {
    width: min(520px, calc(100vw - 2rem));
}

.cj-task-detail-modal-dialog {
    width: min(980px, calc(100vw - 2rem));
    height: min(720px, calc(100vh - 2rem));
    max-height: min(720px, calc(100vh - 2rem));
    grid-template-rows: auto 1fr;
}

.cj-api-edit-form {
    padding: 0.75rem;
    display: grid;
    gap: 0.75rem;
}

.cj-task-form {
    padding: 0.75rem;
    display: grid;
    gap: 0.75rem;
}

.cj-task-category-picker {
    width: 100%;
}

.cj-task-category-picker .ops-column-trigger-label,
.cj-task-category-picker .ops-column-option {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cj-task-create-btn {
    width: auto;
    min-width: 0;
    height: 2rem;
    padding: 0 0.75rem;
    justify-self: end;
    font-size: 0.76rem;
    font-weight: 600;
}

.cj-api-edit-save-btn {
    justify-self: end;
}

.cj-api-control-group {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(240px, 1.4fr) auto;
    gap: 10px;
    align-items: end;
    margin-bottom: 14px;
}

.cj-api-add-icon-btn {
    width: 2.25rem;
    min-width: 2.25rem;
    padding: 0;
    position: relative;
}

.cj-api-add-icon-btn.is-loading svg {
    opacity: 0;
}

.cj-api-add-icon-btn.is-loading::after {
    content: "";
    width: 0.9rem;
    height: 0.9rem;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    animation: cj-spin 0.7s linear infinite;
}

.cj-task-run-btn.is-pending {
    pointer-events: none;
    opacity: 0.72;
    position: relative;
}

.cj-task-run-btn.is-pending i,
.cj-task-run-btn.is-pending svg {
    opacity: 0;
}

.cj-task-run-btn.is-pending::after {
    content: "";
    width: 0.75rem;
    height: 0.75rem;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    animation: cj-spin 0.7s linear infinite;
}

@keyframes cj-spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.cj-api-status {
    min-height: 1.25rem;
    margin: -4px 0 10px;
    font-size: 0.76rem;
    color: #647084;
}

.cj-api-status.is-success {
    color: var(--color-success);
}

.cj-api-status.is-warning {
    color: var(--color-warning);
}

.cj-api-status.is-error {
    color: var(--color-danger);
}

.cj-api-table-wrap {
    height: 100%;
    min-height: 0;
    max-height: none;
    overflow: auto;
}

.cj-card-table-wrap {
    height: 100%;
    min-height: 0;
    max-height: none;
    overflow: auto;
}

.cj-api-table,
.cj-card-table {
    width: 100%;
    min-width: 100%;
    table-layout: fixed;
}

.cj-card-modal-summary {
    min-height: 2rem;
    padding: 0 0 12px;
    color: #4b5565;
    font-size: 0.78rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.cj-card-search {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-width: min(520px, 50vw);
    margin-left: auto;
}

.cj-card-search[hidden] {
    display: none !important;
}

.cj-card-search-column,
.cj-card-search-input {
    height: 2rem;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
    background: #ffffff;
    color: #111827;
    font-size: 0.72rem;
}

.cj-card-search-column {
    width: 150px;
    padding: 0 0.45rem;
}

.cj-card-search-input {
    min-width: 0;
    flex: 1 1 180px;
    padding: 0 0.55rem;
}

.cj-card-search-btn,
.cj-card-search-clear {
    height: 2rem;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
    background: var(--canvas);
    color: var(--primary);
    padding: 0 0.65rem;
    font-size: 0.68rem;
    font-weight: 800;
}

.cj-card-search-clear {
    color: #647084;
}

.cj-modal-run-btn {
    height: 2rem;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
    background: var(--canvas);
    color: var(--primary);
    padding: 0 0.7rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.cj-modal-run-btn[hidden] {
    display: none !important;
}

.cj-modal-run-btn svg {
    width: 15px;
    height: 15px;
}

.cj-modal-run-btn:disabled {
    color: #9aa3b2;
}

.cj-card-pagination {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #4b5565;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.cj-card-pagination[hidden] {
    display: none !important;
}

.cj-card-page-btn {
    width: 2rem;
    height: 2rem;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
    background: #ffffff;
    color: var(--primary);
    font-size: 1rem;
    font-weight: 800;
}

.cj-card-page-btn:disabled {
    color: #9aa3b2;
}

.cj-card-modal-status {
    margin-left: auto;
    margin-right: 0.5rem;
    color: #647084;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
}

.cj-card-modal-status.is-success {
    color: var(--color-success);
}

.cj-card-modal-status.is-warning {
    color: var(--color-warning);
}

.cj-card-modal-status.is-error {
    color: var(--color-danger);
}

.cj-api-table td,
.cj-card-table td,
.cj-task-pid-table td,
.cj-api-table th > span,
.cj-card-table th > span,
.cj-task-pid-table th > span {
    max-width: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cj-api-table th > span,
.cj-card-table th > span,
.cj-task-pid-table th > span {
    display: inline-block;
    max-width: calc(100% - 22px);
    vertical-align: middle;
}

.cj-task-pid-table-wrap {
    min-height: 0;
    height: 100%;
    max-height: 100%;
    overflow: auto;
}

.cj-task-pid-table tbody td:last-child {
    min-width: 360px;
    white-space: normal;
}

.cj-api-table .col-actions,
.cj-api-table .col-user {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cj-api-table .col-checkbox {
    width: 42px;
}

.cj-api-table .col-actions {
    width: 72px;
}

.cj-api-table .col-user {
    width: 110px;
}

.cj-api-table .col-actions .modify-btn {
    width: 20px;
    height: 20px;
    padding: 0;
}

.cj-api-table .col-actions [data-api-delete] {
    color: var(--color-danger);
}

.cj-api-table .col-actions [data-api-delete]:hover {
    color: var(--color-danger);
    background: var(--color-danger-bg);
}

.cj-clickable-card {
    user-select: none;
    caret-color: transparent;
}

.cj-clickable-card:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.cj-api-table th,
.cj-card-table th {
    position: relative;
}

.cj-api-table th,
.cj-card-table th {
    overflow: visible;
}

.cj-api-table .col-filter-panel,
.cj-card-table .col-filter-panel {
    position: fixed;
    z-index: 2400;
}

@media (max-width: 720px) {
    .cj-api-control-group {
        grid-template-columns: 1fr;
    }
}

.product-explorer-top {
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    background: var(--surface-soft);
    padding: 0.5rem;
    display: grid;
    gap: 0.4rem;
}

.product-explorer-row {
    display: grid;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
}

.product-explorer-row-aligned {
    grid-template-columns:
        minmax(170px, 1fr)
        minmax(170px, 1fr)
        minmax(130px, 0.9fr)
        minmax(130px, 0.9fr)
        minmax(130px, 0.9fr)
        minmax(0, 1fr)
        minmax(0, 1fr)
        2rem
        2rem;
}

.product-explorer-row-aligned.cfe-row-tools {
    grid-template-columns:
        minmax(170px, 1fr)
        minmax(170px, 1fr)
        minmax(130px, 0.9fr)
        minmax(130px, 0.9fr)
        minmax(130px, 0.9fr)
        minmax(0, 1fr)
        minmax(0, 1fr)
        2rem
        2rem
        2rem;
}

.product-explorer-cell {
    min-width: 0;
}

.product-explorer-cell-span-2 {
    grid-column: span 2;
}

.product-explorer-cell-span-4 {
    grid-column: span 4;
}

.product-explorer-cell-tool {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.product-explorer-icon-btn {
    padding: 0;
}

.product-explorer-category-filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
    min-width: 0;
}

.product-explorer-category-filters .ops-column-picker {
    width: 100%;
}

.product-explorer-summary-group {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
    min-width: 0;
}

.product-explorer-summary-group-wide {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.product-explorer-summary-card {
    border: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
    background: #ffffff;
    min-height: 2rem;
    padding: 0 0.55rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.product-explorer-summary-title {
    font-size: 0.74rem;
    color: #5f6876;
    white-space: nowrap;
}

.product-explorer-summary-count {
    font-size: 0.84rem;
    color: var(--primary);
    font-weight: 600;
    white-space: nowrap;
}

.product-explorer-guide {
    border: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
    background: #ffffff;
    min-height: 2rem;
    padding: 0.2rem 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem;
}

.product-explorer-guide-item {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.72rem;
    color: #4f5866;
    white-space: nowrap;
}

.product-explorer-guide-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    display: inline-block;
}

.product-explorer-guide-dot.is-reviewed {
    background: var(--color-success);
}

.product-explorer-guide-dot.is-wanted {
    background: var(--color-success);
}

.product-explorer-guide-dot.is-partial {
    background: #2563eb;
}

.product-explorer-guide-dot.is-unwanted {
    background: var(--color-danger);
}

.product-explorer-guide-dot.is-pending {
    background: var(--color-warning);
}

.product-explorer-progress {
    border: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
    background: #ffffff;
    padding: 0.35rem 0.45rem;
}

.product-explorer-progress-track {
    height: 1.3rem;
    border-radius: 999px;
    background: #e3e8ef;
    overflow: hidden;
}

.product-explorer-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #1f6feb, var(--color-success));
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
}

.product-explorer-progress-value {
    font-size: 0.76rem;
    color: #ffffff;
    font-weight: 600;
    line-height: 1;
}

.product-explorer-bottom {
    --product-explorer-left: 20%;
    display: grid;
    grid-template-columns: minmax(180px, var(--product-explorer-left)) 10px minmax(320px, 1fr);
    gap: 0;
    min-height: 0;
    height: 100%;
}

.product-explorer-batch-panel {
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    background: #ffffff;
    min-height: 0;
    overflow: hidden;
    display: grid;
    grid-template-rows: 1fr;
}

.product-explorer-batch-table {
    width: 100%;
    min-width: 100%;
    table-layout: fixed;
    height: auto;
    min-height: 0;
}

.product-explorer-batch-table .batch-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-explorer-batch-table th:last-child,
.product-explorer-batch-table .batch-count {
    text-align: right;
}

.product-explorer-batch-table .batch-count {
    font-weight: 600;
    color: var(--primary);
}

.product-explorer-batch-row {
}

.product-explorer-batch-row.is-complete td {
    background: var(--color-success-bg);
}

.product-explorer-batch-row.is-complete .batch-count {
    color: var(--color-success);
}

.product-explorer-batch-row.is-partial-progress td {
    background: var(--color-warning-bg);
}

.product-explorer-batch-row.is-partial-progress .batch-count {
    color: var(--color-warning);
}

.product-explorer-batch-row.is-empty-progress td {
    background: var(--color-danger-bg);
}

.product-explorer-batch-row.is-empty-progress .batch-count {
    color: var(--color-danger);
}

.product-explorer-batch-row.is-selected td {
    background: #eef5ff;
    color: var(--primary);
    font-weight: 700;
}

.product-explorer-cell .ops-column-trigger {
    min-width: 0;
}

.product-explorer-cell .ops-column-trigger-label,
.product-explorer-cell .ops-column-option {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-explorer-product-table {
    width: 100%;
    min-width: 1094px;
    table-layout: fixed;
}

.product-explorer-product-table th,
.product-explorer-product-table td {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-explorer-product-table .col-actions {
    left: 0;
    min-width: 84px;
}

.ops-table.product-explorer-product-table .col-actions {
    left: 0;
}

.product-explorer-filter-table th {
    position: relative;
    overflow: visible;
    z-index: 80;
}

.product-explorer-filter-table .col-filter-panel {
    position: fixed;
    z-index: 4200;
}

.product-explorer-filter-table .col-filter-options {
    min-height: 0;
    overflow: auto;
    display: grid;
    gap: 4px;
    align-content: start;
}

.product-explorer-filter-table .col-filter-options label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.72rem;
    color: #41454d;
}

.product-title-cell {
    color: #263244;
}

.product-explorer-modal .product-explorer-modal-dialog.is-images-collapsed {
    grid-template-rows: auto minmax(0, 1fr);
}

.product-explorer-modal-head {
    gap: 1rem;
    min-width: 0;
}

.product-explorer-modal-title-wrap {
    min-width: 0;
}

.product-explorer-modal-title-stack {
    min-width: 0;
    display: grid;
    gap: 0.25rem;
}

.product-explorer-modal-title-row {
    min-width: 0;
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
}

.product-explorer-modal-title {
    color: var(--primary);
    font-size: 1rem;
    max-width: min(680px, 58vw);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-explorer-modal-count {
    color: #647084;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.product-explorer-modal-status-counts {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: #647084;
    font-size: 0.68rem;
    font-weight: 800;
    white-space: nowrap;
}

.product-explorer-modal-key-row {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    color: #647084;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
}

.product-explorer-modal-key-row span {
    min-width: 0;
    max-width: 26rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-explorer-modal-key-row strong {
    color: #263244;
    font-weight: 800;
}

.product-explorer-modal-actions {
    gap: 0.45rem;
    flex: 0 0 auto;
}

.product-explorer-modal-body {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 70%) minmax(300px, 30%);
    gap: 0.85rem;
    overflow: hidden;
}

body.is-app-page:not(.is-operations-dashboard) .product-explorer-modal .product-explorer-modal-body {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 70%) minmax(300px, 30%);
    gap: 0.85rem;
    overflow: hidden;
}

.product-explorer-modal-btn {
    color: #263244;
    font-size: 0.72rem;
    font-weight: 800;
}

.product-explorer-modal-btn.is-wanted {
    background: var(--color-success-bg);
    color: var(--color-success);
}

.product-explorer-modal-btn.is-unwanted {
    background: var(--color-danger-bg);
    color: var(--color-danger);
}

.product-explorer-modal-btn.is-partial {
    background: #e8eef9;
    color: #1f4f9e;
}

.product-explorer-modal-btn:disabled {
    opacity: 0.42;
}

.product-explorer-image-grid {
    min-height: 0;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 0.15rem 0.25rem 0.25rem 0;
}

.product-explorer-modal-dialog.is-images-collapsed .product-explorer-image-grid {
    height: 100%;
    overflow: auto;
}

.product-explorer-image-section {
    border: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
    background: #ffffff;
    overflow: hidden;
    min-height: 0;
    display: block;
    flex: 0 0 2rem;
}

.product-explorer-image-section[open] {
    display: grid;
    grid-template-rows: 2rem minmax(0, 1fr);
    flex: 1 1 0;
    min-height: 0;
}

.product-explorer-image-section summary {
    height: 2rem;
    padding: 0 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #263244;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    background: #f8fafc;
    border-bottom: 1px solid var(--hairline);
}

.product-explorer-image-section summary::before {
    content: "+";
    width: 1rem;
    height: 1rem;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: #263244;
    font-size: 0.78rem;
    line-height: 1;
}

.product-explorer-image-section[open] summary::before {
    content: "-";
}

.product-explorer-image-section summary::marker,
.product-explorer-image-section summary::-webkit-details-marker {
    display: none;
    content: "";
}

.product-explorer-image-section:not([open]) summary {
    border-bottom: none;
}

.product-explorer-image-section-grid {
    min-height: 0;
    max-height: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(198px, 1fr));
    column-gap: 0.85rem;
    row-gap: 1.35rem;
    align-content: start;
    padding: 0.75rem;
    overflow-y: auto;
    overflow-x: hidden;
}

.product-explorer-image-section:not([open]) .product-explorer-image-section-grid {
    display: none;
}

.product-explorer-image-tile {
    position: relative;
    display: block;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    background: #f8fafc;
    aspect-ratio: 1;
    padding: 0;
    overflow: hidden;
}

.product-explorer-image-tile.is-selected {
    border-color: var(--color-danger);
}

.product-explorer-image-tile.is-variant-used {
    border-color: var(--color-danger);
}

.product-explorer-image-tile.is-system-removed {
    border-color: var(--color-danger);
    border-style: dashed;
}

.product-explorer-image-tile.is-low-quality-removed {
    border-color: var(--color-warning);
    border-style: dotted;
}

.product-explorer-image-tile.is-selected.is-variant-used {
    box-shadow: 0 0 0 2px var(--color-danger-focus);
}

.product-explorer-image-check {
    position: absolute;
    left: 0.45rem;
    top: 0.45rem;
    z-index: 2;
    width: 1rem;
    height: 1rem;
    margin: 0;
    accent-color: #1f6feb;
}

.product-explorer-image-label-list {
    position: absolute;
    top: 0.38rem;
    right: 0.38rem;
    z-index: 2;
    max-width: calc(100% - 2.4rem);
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.2rem;
}

.product-explorer-image-label {
    max-width: 100%;
    min-height: 1.2rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #263244;
    padding: 0.2rem 0.45rem;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.16);
}

.product-explorer-image-label:active {
}

.product-explorer-image-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #edf1f7;
    content-visibility: auto;
}

.product-explorer-image-zoom {
    position: absolute;
    right: 0.45rem;
    bottom: 0.45rem;
    z-index: 3;
    width: 1.9rem;
    height: 1.9rem;
    border: 1px solid rgba(15, 23, 42, 0.18);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.94);
    color: #263244;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.16);
}

.product-explorer-image-zoom:hover {
    background: #ffffff;
    color: var(--primary);
}

.row-edit-modal.product-explorer-zoom-modal.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-explorer-zoom-dialog {
    position: relative;
    z-index: 1;
    width: min(92vw, 1100px);
    height: min(88vh, 900px);
    border-radius: var(--radius-lg);
    background: #0f172a;
    padding: 1rem;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.36);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-explorer-zoom-dialog img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.product-explorer-zoom-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
}

.product-explorer-variant-wrap {
    min-height: 0;
    height: 100%;
    max-height: none;
    overflow: auto;
    overflow-x: auto;
    position: relative;
    padding-top: 0;
    border-top: none;
    border-left: 1px solid var(--hairline);
}

.product-explorer-variant-table {
    width: 100%;
    min-width: 660px;
    table-layout: fixed;
}

.product-explorer-variant-table thead th {
    position: sticky;
    top: 0;
    z-index: 30;
    background: #eef2f6;
    background-clip: padding-box;
    box-shadow: inset 0 -1px 0 var(--hairline);
}

.product-explorer-variant-table td,
.product-explorer-variant-table th {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-explorer-variant-table tbody td {
    position: relative;
    z-index: 1;
    background: #ffffff;
}

.product-explorer-filter-table.product-explorer-variant-table th {
    overflow: visible;
}

.product-explorer-filter-table.product-explorer-variant-table .col-filter-panel {
    top: auto;
}

.product-explorer-variant-key-cell {
    background: #ffffff;
    outline: none;
}

.product-explorer-variant-key-cell:focus {
    box-shadow: inset 0 0 0 2px rgba(31, 111, 235, 0.28);
}

.product-explorer-variant-key-cell.is-selected {
    background: #eef5ff;
    box-shadow: inset 0 0 0 1px rgba(31, 111, 235, 0.45);
}

.product-explorer-variant-image {
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-sm);
    object-fit: cover;
    display: block;
}

.product-explorer-loading,
.product-explorer-empty {
    color: #647084;
    font-size: 0.8rem;
    padding: 0.75rem;
}

.product-explorer-splitter,
.invoice-manager-splitter {
    width: 10px;
    background: linear-gradient(
        90deg,
        transparent 0,
        transparent 4px,
        #d5dce6 4px,
        #d5dce6 6px,
        transparent 6px,
        transparent 100%
    );
}

body.is-resizing-columns {
    user-select: none;
}

.product-explorer-splitter.is-dragging {
    background: linear-gradient(
        90deg,
        transparent 0,
        transparent 3px,
        #1f6feb 3px,
        #1f6feb 7px,
        transparent 7px,
        transparent 100%
    );
}

.invoice-manager-shell {
    --invoice-left: 66%;
    display: grid;
    grid-template-columns: minmax(420px, var(--invoice-left)) 10px minmax(320px, 1fr);
    gap: 0;
    height: 100%;
    min-height: 0;
}

.invoice-manager-left {
    min-height: 0;
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 0.5rem;
}

.invoice-manager-controls {
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    background: var(--surface-soft);
    padding: 0.45rem;
}

.invoice-manager-right {
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    background: var(--canvas);
    display: grid;
    grid-template-rows: auto 1fr;
    min-height: 0;
    overflow: hidden;
}

.invoice-manager-splitter.is-dragging {
    background: linear-gradient(
        90deg,
        transparent 0,
        transparent 3px,
        #1f6feb 3px,
        #1f6feb 7px,
        transparent 7px,
        transparent 100%
    );
}

.invoice-preview-header {
    border-bottom: 1px solid var(--hairline);
    background: var(--surface-soft);
    padding: 0.5rem 0.65rem;
}

.invoice-preview-header h2 {
    margin: 0;
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 500;
}

.invoice-preview-body {
    min-height: 0;
    height: 100%;
    display: grid;
    grid-template-rows: minmax(0, 1fr);
    overflow: hidden;
    padding: 0.6rem;
}

.invoice-preview-placeholder {
    border: 1px dashed #c3c9d3;
    border-radius: var(--radius-md);
    background: #f8fafc;
    color: #5d6673;
    font-size: 0.78rem;
    min-height: 220px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
}

.invoice-preview-frame {
    width: 100%;
    height: 100%;
    min-height: 0;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-md);
    background: #ffffff;
}

.gpt-user-tabs {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin: 0 0 0.2rem 0;
}

.gpt-prompt-workspace {
    grid-template-rows: auto 1fr;
    gap: 0.2rem;
}

.gpt-user-tab {
    height: 2rem;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
    background: #ffffff;
    color: #4b5563;
    font-size: 0.78rem;
    padding: 0 0.7rem;
}

.gpt-user-tab.is-active {
    border-color: #2f6fca;
    color: #1f4f92;
    background: #f3f8ff;
}

.data-migration-shell {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    height: 100%;
    min-height: 0;
}

.data-migration-column {
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    background: var(--canvas);
    display: grid;
    grid-template-rows: auto 1fr 1fr;
    min-height: 0;
    overflow: hidden;
}

.data-migration-column-label {
    height: 2rem;
    border-bottom: 1px solid var(--hairline);
    background: var(--surface-soft);
    padding: 0 0.6rem;
    display: flex;
    align-items: center;
    font-size: 0.76rem;
    font-weight: 600;
    color: #4f5866;
}

.data-migration-column-label .dm-clear-logs-btn {
    margin-left: auto;
}

.data-migration-top {
    border-bottom: 1px solid var(--hairline);
    background: var(--surface-soft);
    min-height: 0;
    overflow: hidden;
}

.data-migration-top .feed-log-list {
    height: 100%;
    padding: 0.5rem;
}

.data-migration-bottom {
    min-height: 0;
    overflow: auto;
    padding: 0.5rem;
    display: grid;
    grid-auto-rows: min-content;
    gap: 0.45rem;
    align-content: start;
}

.dm-field-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    align-items: center;
    gap: 0.5rem;
}

.dm-field-row label,
.dm-meta-row label {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 500;
    color: #4f5866;
}

.dm-column-picker {
    width: 100%;
}

.dm-column-picker .ops-column-trigger {
    width: 100%;
}

.dm-column-picker.has-content .ops-column-trigger {
    border-color: var(--color-success);
    background: var(--color-success-bg);
    color: var(--color-success);
}

.dm-field-row-gap {
    user-select: none;
}

.dm-field-row-gap label {
    visibility: hidden;
    pointer-events: none;
}

.dm-gap-placeholder {
    height: 2rem;
    border: 1px solid #d1d5db;
    border-radius: var(--radius-sm);
    background: #f3f4f6;
    opacity: 0.65;
    pointer-events: none;
}

.dm-action-row {
    display: grid;
    grid-template-columns: auto auto auto 1fr auto;
    align-items: center;
    gap: 0.4rem;
}

.dm-worker-row {
    display: flex;
    justify-content: flex-end;
    overflow-x: auto;
    scrollbar-width: thin;
}

.dm-worker-picker {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.2rem;
    align-items: center;
    flex: 0 0 auto;
}

.dm-worker-btn {
    position: relative;
    flex: 0 0 5.5rem;
    min-width: 5.5rem;
    height: 1.65rem;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
    background: #ffffff;
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.14rem;
    padding: 0 0.35rem;
    white-space: nowrap;
    overflow: hidden;
}

.dm-worker-btn::after {
    content: "";
    position: absolute;
    left: 0;
    right: auto;
    bottom: 0;
    width: var(--dm-worker-progress, 0%);
    height: 3px;
    background: linear-gradient(90deg, #ec4899, #ef4444);
    opacity: 0;
    transition: width 0.2s ease, opacity 0.2s ease;
}

.dm-worker-btn span {
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 999px;
    background: #9ca3af;
}

.dm-worker-btn.is-running span {
    background: #ec4899;
}

.dm-worker-btn.is-selected {
    border-color: #1f6feb;
    box-shadow: 0 0 0 2px rgba(31, 111, 235, 0.16);
}

.dm-worker-btn.is-running {
    color: #be123c;
    border-color: #f472b6;
    background: #fff1f2;
}

.dm-worker-btn.is-running::after {
    opacity: 1;
}

.dm-icon-btn.is-blocked,
.dm-icon-btn:disabled {
    opacity: 0.56;
}

.dm-progress-track {
    height: 10px;
    border-radius: 999px;
    background: #dde2ea;
    overflow: hidden;
}

.dm-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #1f6feb, var(--color-success));
}

.dm-progress-value {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--primary);
}

.dm-two-row-buttons {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.35rem;
}

.dm-two-row-buttons button {
    height: 2rem;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
    --dm-task-progress: 0%;
    background:
        linear-gradient(90deg, rgba(31, 111, 235, 0.18) 0 var(--dm-task-progress), transparent var(--dm-task-progress) 100%),
        #ffffff;
    color: var(--primary);
    font-size: 0.75rem;
    padding: 0 0.45rem;
    transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}

.dm-two-row-buttons button.is-running {
    border-color: #7aa2d6;
}

.dm-action-row .dm-icon-btn.is-running {
    border-color: var(--color-danger);
    background: var(--color-danger-bg);
    color: var(--color-danger);
}

.dm-two-row-buttons button.is-complete {
    --dm-task-progress: 100%;
    border-color: var(--color-success);
    background:
        linear-gradient(90deg, var(--color-success-progress) 0 var(--dm-task-progress), transparent var(--dm-task-progress) 100%),
        #ffffff;
    color: var(--color-success);
}

.dm-two-row-buttons button.is-available:not(:disabled) {
    border-color: #1f6feb;
    background:
        linear-gradient(90deg, rgba(31, 111, 235, 0.14) 0 var(--dm-task-progress), transparent var(--dm-task-progress) 100%),
        #eff6ff;
    color: #175cd3;
}

.dm-two-row-buttons button.is-export-available:not(:disabled) {
    border-color: var(--color-success);
    background:
        linear-gradient(90deg, var(--color-success-progress) 0 var(--dm-task-progress), transparent var(--dm-task-progress) 100%),
        var(--color-success-bg);
    color: var(--color-success);
}

.dm-two-row-buttons button.is-running {
    background:
        linear-gradient(90deg, rgba(31, 111, 235, 0.18) 0 var(--dm-task-progress), transparent var(--dm-task-progress) 100%),
        #ffffff;
}

.dm-two-row-buttons button.is-failed {
    --dm-task-progress: 100%;
    border-color: var(--color-danger);
    color: var(--color-danger);
    background:
        linear-gradient(90deg, var(--color-danger-progress) 0 var(--dm-task-progress), transparent var(--dm-task-progress) 100%),
        #ffffff;
}

.dm-two-row-buttons button.is-available.is-complete:not(:disabled),
.dm-two-row-buttons button.is-export-available.is-complete:not(:disabled) {
    --dm-task-progress: 100%;
    border-color: var(--color-success);
    background:
        linear-gradient(90deg, var(--color-success-progress) 0 var(--dm-task-progress), transparent var(--dm-task-progress) 100%),
        var(--color-success-bg);
    color: var(--color-success);
}

.dm-two-row-buttons button.is-danger {
    border-color: var(--color-danger);
    color: var(--color-danger);
    background: var(--color-danger-bg);
}

.dm-two-row-buttons button:disabled,
.dm-two-row-buttons button.is-disabled {
    --dm-task-progress: 0%;
    border-color: #d1d5db;
    background: #f3f4f6;
    color: #9ca3af;
}

.dm-theme-btn {
    height: 2rem;
    width: fit-content;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
    background: #ffffff;
    color: var(--primary);
    font-size: 0.78rem;
    padding: 0 0.65rem;
}

.dm-theme-btn.has-content {
    border-color: var(--color-success);
    background: var(--color-success-bg);
    color: var(--color-success);
}

.dm-meta-upload-btn {
    height: 1.65rem;
    width: 1.65rem;
    padding: 0;
    font-size: 0.7rem;
}

.dm-theme-upload-dialog {
    height: auto;
    max-width: 28rem;
    max-height: min(42rem, calc(100vh - 2rem));
    grid-template-rows: auto auto auto;
    width: min(28rem, calc(100vw - 2rem));
}

.dm-theme-upload-title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.dm-theme-upload-worker {
    border: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
    background: var(--surface-soft);
    color: var(--primary);
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.5;
    padding: 0 0.35rem;
    white-space: nowrap;
}

.dm-theme-dropzone {
    min-height: 11rem;
    border: 1px dashed #b7c2d0;
    border-radius: var(--radius-sm);
    background: #f8fafc;
    color: var(--body);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 1.25rem;
    text-align: center;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.dm-theme-dropzone.is-dragging,
.dm-theme-dropzone:focus-visible {
    border-color: var(--primary);
    background: #eef6ff;
    box-shadow: 0 0 0 2px rgba(69, 143, 255, 0.18);
    outline: none;
}

.dm-theme-dropzone.is-uploading {
    opacity: 0.7;
    pointer-events: none;
}

.dm-theme-dropzone-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--heading);
}

.dm-theme-dropzone-subtitle {
    font-size: 0.75rem;
    color: var(--muted);
}

.dm-theme-history {
    margin-top: 1rem;
    border-top: 1px solid var(--hairline);
    padding-top: 0.85rem;
}

.dm-theme-history-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.dm-theme-history-list {
    max-height: 10rem;
    overflow: auto;
    margin-top: 0.55rem;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
    background: #ffffff;
}

.dm-theme-history-row {
    min-height: 2.35rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.6rem;
    border-bottom: 1px solid var(--hairline);
}

.dm-theme-history-row:last-child {
    border-bottom: 0;
}

.dm-theme-history-name {
    min-width: 0;
    overflow: hidden;
    color: var(--body);
    font-size: 0.78rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dm-theme-history-meta,
.dm-theme-history-empty {
    color: var(--muted);
    font-size: 0.72rem;
}

.dm-theme-history-empty {
    padding: 0.75rem;
}

.dm-theme-history-badge {
    min-width: 3.1rem;
    color: var(--color-success);
    font-size: 0.68rem;
    font-weight: 800;
    text-align: right;
}

.dm-modal-message {
    min-height: 1.1rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-success);
}

.dm-modal-message.is-error {
    color: var(--color-danger);
}

.dm-config-actions {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.dm-secondary-btn {
    height: 2rem;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
    background: #ffffff;
    color: #445065;
    font-size: 0.74rem;
    font-weight: 600;
    padding: 0 0.7rem;
}

.dm-config-modal-dialog {
    width: min(44rem, calc(100vw - 2rem));
    max-height: 80vh;
}

.dm-config-modal-body {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 0.65rem;
    padding: 0.8rem;
    overflow: hidden;
}

.dm-config-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    gap: 0.35rem;
    overflow: auto;
}

.dm-config-item {
    min-height: 2rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
    padding: 0.35rem 0.45rem;
    font-size: 0.74rem;
}

.dm-config-item span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.dm-meta-row {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    align-items: center;
    gap: 0.5rem;
}

.dm-meta-row input[type="text"] {
    height: 2rem;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
    background: #ffffff;
    font-size: 0.8rem;
    padding: 0 0.55rem;
}

.ops-top {
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    background: var(--surface-soft);
    padding: 0.5rem;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 1.25rem 0.5rem;
    min-height: 0;
}

.ops-cards {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 0.5rem;
    min-height: 0;
}

.ops-metric-card {
    border: 1px solid var(--hairline);
    border-radius: var(--radius-md);
    background: var(--canvas);
    padding: 0.5rem;
    display: grid;
    align-content: center;
    text-align: left;
}

.ops-metric-card.is-filter-active {
    border: 3px solid var(--color-danger);
    box-shadow: 0 0 0 1px var(--color-danger-focus);
}

.ops-metric-card h3 {
    margin: 0;
    color: var(--body);
    font-size: 0.78rem;
    font-weight: 500;
}

.ops-metric-card p {
    margin: 0;
    font-size: 0.72rem;
    color: #5a5f69;
    line-height: 1.2;
}

.ops-counter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
}

.ops-metric-card strong {
    color: var(--primary);
    font-size: 1rem;
    line-height: 1.2;
}

.ops-delta {
    font-size: 0.72rem;
    font-weight: 500;
}

.ops-delta-positive {
    color: var(--color-success);
}

.ops-delta-negative {
    color: var(--color-danger);
}

.ops-delta-neutral {
    color: #6b7280;
}

.ops-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    overflow: visible;
    position: relative;
    z-index: 30;
}

.ops-search-controls {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(120px, 0.45fr) minmax(0, 1fr);
    gap: 0.5rem;
    overflow: visible;
    position: relative;
    z-index: 31;
}

.ops-controls select,
.ops-controls input {
    height: 2rem;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
    background: var(--canvas);
    font-size: 0.8rem;
    padding: 0 0.5rem;
}

.ops-controls select {
    padding-right: 1.8rem;
}

.ops-column-select,
.ops-search-input {
    min-width: 0;
    width: 100%;
}

.ops-column-picker {
    position: relative;
    z-index: 1;
}

.ops-column-picker.is-open {
    z-index: 3000;
}

.ops-column-trigger {
    width: 100%;
    height: 2rem;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
    background: #ffffff;
    padding: 0 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--body);
}

.ops-column-trigger-label {
    flex: 1 1 auto;
    min-width: 0;
    display: block;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ops-table thead th > span {
    text-transform: uppercase;
    display: inline-block;
    max-width: calc(100% - 20px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

.ops-column-trigger-label,
.ops-column-option,
.row-edit-field-label {
    text-transform: uppercase;
}

.ops-column-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: max(100%, 15rem);
    right: auto;
    background: #ffffff;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    z-index: 3001;
    max-height: 200px;
    overflow: auto;
    overscroll-behavior: contain;
    padding: 4px;
}

.ops-column-picker.is-open .ops-column-menu {
    display: grid;
    gap: 2px;
}

.ops-column-search {
    height: 28px;
    border: 1px solid var(--hairline);
    border-radius: 6px;
    padding: 0 8px;
    font-size: 12px;
    background: #ffffff;
    margin: 2px;
    position: sticky;
    top: 0;
    z-index: 1;
}

.ops-column-option {
    width: 100%;
    height: 28px;
    border: none;
    background: transparent;
    border-radius: 6px;
    text-align: left;
    justify-content: flex-start;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 8px;
    font-size: 12px;
    color: var(--body);
}

.ops-column-option-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ops-option-label {
    white-space: nowrap;
}

.ddm-app-picker .ops-column-trigger-label {
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 18px);
    scrollbar-width: thin;
}

.row-edit-modal[data-ddm-modal='1'] .ops-column-trigger {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    flex-wrap: nowrap;
}

.row-edit-modal[data-ddm-modal='1'] .row-edit-picker,
.row-edit-modal[data-ddm-modal='1'] .ops-column-picker {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.ops-option-checkbox {
    width: 14px;
    height: 14px;
    border: 1px solid #b9c3d1;
    border-radius: 3px;
    background: #ffffff;
    position: relative;
    flex: 0 0 14px;
}

.ops-column-option-check.is-selected .ops-option-checkbox {
    background: #2563eb;
    border-color: #2563eb;
}

.ops-column-option-check.is-selected .ops-option-checkbox::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.ops-search-input,
.row-edit-control,
.ddm-value-input {
    font-size: 12px;
    height: 2rem !important;
}

.ops-column-option:hover,
.ops-column-option.is-selected {
    background: #f2f4f7;
}

.ops-btn-group {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    overflow: visible;
    padding-bottom: 0.1rem;
    min-width: max-content;
    justify-self: end;
}

.ops-btn-group button {
    height: 2rem;
    width: 2rem;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
    background: var(--canvas);
    color: var(--primary);
    font-size: 0.78rem;
    padding: 0;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.ops-btn-group button svg {
    flex: 0 0 auto;
}

.ops-btn-group button::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    max-width: 10rem;
    background: #181d26;
    color: #ffffff;
    font-size: 11px;
    line-height: 1.15;
    padding: 4px 6px;
    border-radius: 4px;
    white-space: normal;
    text-align: center;
    opacity: 0;
    pointer-events: none;
}

.ops-btn-group button:hover[data-tooltip]::after,
.ops-btn-group button:focus-visible[data-tooltip]::after {
    opacity: 0;
}

.wooxyz-tooltip {
    position: fixed;
    z-index: 100000;
    width: max-content;
    max-width: min(20rem, calc(100vw - 20px));
    border-radius: 6px;
    background: #171717;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    opacity: 0;
    padding: 6px 12px;
    pointer-events: none;
    text-align: center;
    transform: translateY(4px);
    transition: opacity 200ms ease, transform 200ms ease, visibility 200ms ease;
    visibility: hidden;
}

.wooxyz-tooltip.is-visible {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.wooxyz-tooltip__content {
    overflow-wrap: anywhere;
}

.wooxyz-tooltip__arrow {
    position: absolute;
    left: var(--wooxyz-tooltip-arrow-left, 50%);
    width: 0;
    height: 0;
    transform: translateX(-50%);
}

.wooxyz-tooltip[data-placement="top"] .wooxyz-tooltip__arrow {
    top: 100%;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #171717;
}

.wooxyz-tooltip[data-placement="bottom"] .wooxyz-tooltip__arrow {
    bottom: 100%;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #171717;
}

@media (prefers-reduced-motion: reduce) {
    .wooxyz-tooltip {
        transition: none;
    }
}

.ops-btn-group button.is-active {
    background: #e7f0ff;
    border-color: #82aef4;
    color: #1d4f91;
}

.ops-btn-group button:disabled,
.product-explorer-icon-btn:disabled {
    color: #9aa3b2;
    background: #f3f5f8;
    border-color: #d8dde6;
}

.ops-btn-group button:disabled::after {
    opacity: 0 !important;
}

.feed-table-controls .ops-btn-group button[title="Stop"],
.feed-table-controls .ops-btn-group button[aria-label="Stop"] {
    color: var(--color-danger);
}

.feed-table-controls .ops-btn-group button[title="Stop"]:hover,
.feed-table-controls .ops-btn-group button[title="Stop"]:focus-visible,
.feed-table-controls .ops-btn-group button[aria-label="Stop"]:hover,
.feed-table-controls .ops-btn-group button[aria-label="Stop"]:focus-visible {
    border-color: var(--color-danger-border);
    background: var(--color-danger-bg);
    color: var(--color-danger);
}

.wallet-sync-row #wallet-sync-btn {
    width: auto;
    min-width: 0;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
    background: #ffffff;
    color: var(--primary);
    height: 1.8rem;
    padding: 0 0.55rem;
    font-size: 0.76rem;
    font-weight: 500;
    letter-spacing: 0;
}

.wallet-sync-row #wallet-sync-btn:hover {
    background: #f8fafc;
    color: var(--primary);
}

.wallet-sync-row #wallet-sync-btn:disabled {
    background: #ffffff;
    border-color: #d8dde6;
    color: #9aa3b2;
}

.ops-bottom {
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    background: var(--canvas);
    display: grid;
    grid-template-rows: 1fr;
    min-height: 0;
    height: 100%;
    overflow: hidden;
}

.ops-bottom.app-table-only {
    grid-template-rows: auto minmax(0, 1fr);
}

.ops-bottom:has(.js-standard-table-wrap) {
    display: flex;
    flex-direction: column;
}

.ops-bottom:has(.js-standard-table-wrap) .js-standard-table-wrap {
    flex: 1 1 auto;
    min-height: 0;
}

.ops-table-wrap {
    min-height: 0;
    height: 100%;
    flex: 1 1 0;
    overflow-x: auto;
    overflow-y: scroll;
}

.ops-table {
    --ops-table-row-height: 2rem;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    width: max-content;
    min-width: 0;
    height: auto;
    min-height: 0;
}

.ops-table th,
.ops-table td {
    border-bottom: 1px solid var(--hairline);
    border-right: 1px solid var(--hairline);
    padding: 0 0.6rem;
    font-size: 0.78rem;
    background: var(--canvas);
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    height: var(--ops-table-row-height);
    min-height: var(--ops-table-row-height);
    max-height: var(--ops-table-row-height);
    line-height: 1.2;
    vertical-align: middle;
}

.ops-table tbody tr,
.ops-table thead tr {
    height: var(--ops-table-row-height);
    min-height: var(--ops-table-row-height);
    max-height: var(--ops-table-row-height);
}

.ops-table th {
    position: sticky;
    top: 0;
    z-index: 9;
    background: #f4f6f9;
    text-transform: uppercase;
}

.ops-table .col-checkbox {
    position: sticky;
    left: 0;
    width: 36px;
    min-width: 36px;
    max-width: 36px;
    z-index: 11;
    text-align: center;
    border-right: none;
    box-shadow: inset -1px 0 0 var(--hairline);
    background-clip: padding-box;
}

.ops-table .col-actions {
    position: sticky;
    left: var(--sticky-left-actions, 36px);
    width: auto;
    min-width: 84px;
    z-index: 10;
    background: #fafbfd;
    border-right: none;
    box-shadow: inset -1px 0 0 var(--hairline);
    background-clip: padding-box;
}

.ops-table .col-user {
    position: sticky;
    left: var(--sticky-left-user, 92px);
    width: 132px;
    min-width: 132px;
    max-width: 132px;
    z-index: 10;
    background: #fafbfd;
    border-right: none;
    box-shadow: inset -1px 0 0 var(--hairline);
    background-clip: padding-box;
}

.ops-table thead .col-checkbox,
.ops-table thead .col-actions,
.ops-table thead .col-user,
.ops-table thead .is-filterable {
    top: 0;
    position: sticky;
    z-index: 12;
    background: #eef2f6;
}

.ops-table thead .col-checkbox {
    z-index: 15;
}

.ops-table thead .col-actions {
    z-index: 14;
}

.ops-table thead .col-user {
    z-index: 13;
}

.ops-table .is-filterable {
    position: sticky;
    top: 0;
}

.ops-table th.col-checkbox .col-resize-handle,
.ops-table th.col-actions .col-resize-handle,
.ops-table th.col-user .col-resize-handle {
    display: none;
}

.ops-table tbody .col-checkbox {
    z-index: 8;
}

.ops-table tbody .col-actions,
.ops-table tbody .col-user {
    z-index: 7;
}

.ops-table td.col-actions {
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
    padding-left: 0;
    padding-right: 0;
    line-height: 0;
}

.ops-table th.col-actions {
    text-align: center;
}

.ops-table .table-filler-row .table-filler-cell {
    background: var(--canvas);
}

.ops-table .table-empty-row td {
    color: #7b8696;
    text-align: center;
    font-weight: 500;
    line-height: var(--ops-table-row-height);
    vertical-align: middle;
    padding-top: 0;
}

body.is-app-page:not(.is-operations-dashboard) .ops-table-wrap {
    width: 100%;
    min-height: 0;
    height: 100%;
    overflow-x: auto;
    overflow-y: auto;
    background: #ffffff;
}

body.is-app-page:not(.is-operations-dashboard) .ops-bottom:has(.ops-table-wrap),
body.is-app-page:not(.is-operations-dashboard) .row-edit-modal-body:has(.ops-table-wrap) {
    min-height: 0;
}

body.is-app-page:not(.is-operations-dashboard) .ops-bottom:has(.js-standard-table-wrap) {
    display: flex;
    flex-direction: column;
}

body.is-app-page:not(.is-operations-dashboard) .ops-bottom:has(.js-standard-table-wrap) .js-standard-table-wrap {
    flex: 1 1 auto;
    min-height: 0;
}

body.is-app-page:not(.is-operations-dashboard) .row-edit-modal-body:has(.ops-table-wrap) {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

body.is-app-page:not(.is-operations-dashboard) .row-edit-modal-body:has(.ops-table-wrap) .ops-table-wrap {
    flex: 1 1 auto;
}

body.is-app-page:not(.is-operations-dashboard) .ops-table {
    --ops-table-row-height: 2rem;
    width: max-content;
    min-width: 100%;
    table-layout: fixed;
}

body.is-app-page:not(.is-operations-dashboard) .ops-table th,
body.is-app-page:not(.is-operations-dashboard) .ops-table td {
    height: var(--ops-table-row-height);
    min-height: var(--ops-table-row-height);
    max-height: var(--ops-table-row-height);
    line-height: 1.2;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.is-app-page:not(.is-operations-dashboard) .ops-table tbody tr,
body.is-app-page:not(.is-operations-dashboard) .ops-table thead tr {
    height: var(--ops-table-row-height);
    min-height: var(--ops-table-row-height);
    max-height: var(--ops-table-row-height);
}

body.is-app-page:not(.is-operations-dashboard) .ops-table thead th {
    background: #eef2f6;
}

body.is-app-page:not(.is-operations-dashboard) .row-edit-modal .ops-table {
    width: 100%;
    min-width: 100%;
}

body.is-app-page:not(.is-operations-dashboard) .row-edit-modal .ops-table th {
    overflow: visible;
}

body.is-app-page:not(.is-operations-dashboard) .row-edit-modal .ops-table .col-filter-panel {
    position: fixed;
    z-index: 4800;
}

.row-activity-users {
    --row-activity-avatar-size: 20px;
    --row-activity-avatar-gap: 3px;
    --row-activity-avatar-slots: 5;
    display: inline-flex;
    align-items: center;
    gap: var(--row-activity-avatar-gap);
    width: calc((var(--row-activity-avatar-size) * var(--row-activity-avatar-slots)) + (var(--row-activity-avatar-gap) * (var(--row-activity-avatar-slots) - 1)));
    min-width: calc((var(--row-activity-avatar-size) * var(--row-activity-avatar-slots)) + (var(--row-activity-avatar-gap) * (var(--row-activity-avatar-slots) - 1)));
    min-height: 20px;
}

.row-activity-empty {
    color: #8b95a5;
    font-size: 11px;
}

.row-activity-avatar {
    width: var(--row-activity-avatar-size);
    height: var(--row-activity-avatar-size);
    border-radius: 9999px;
    background: #1f2937;
    color: #ffffff;
    font-size: 10px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ffffff;
    margin-left: 0;
}

.ops-row-edit-surface {
    padding: 0.8rem;
}

.ops-row-edit-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr);
    gap: 0.9rem;
    height: calc(100vh - 150px);
    min-height: 620px;
}

.ops-row-edit-left {
    min-height: 0;
    overflow-y: auto;
    scrollbar-gutter: stable;
}

.ops-row-edit-left {
    padding-right: 0.6rem;
}

.ops-row-edit-right {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.4rem 0.5rem 0 0;
    min-height: 0;
    overflow: hidden;
}

.ops-right-top {
    display: grid;
    grid-template-rows: auto auto;
    gap: 0.85rem;
    min-height: 0;
    overflow: visible;
}

.ops-row-save-bar {
    display: flex;
    gap: 0.85rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.ops-show-required-btn {
    background: rgba(15, 23, 42, 0.82);
}

.ops-shopify-files-btn {
    background: rgba(15, 23, 42, 0.82);
}

.ops-right-fields {
    display: grid;
    gap: 0.85rem;
    align-content: start;
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
    padding-bottom: 0.85rem;
}

.ops-right-field-row {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.85rem;
    align-items: end;
}

.ops-right-field-row .row-edit-field {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.28rem;
    align-items: start;
    min-width: 0;
}

.row-edit-field .row-edit-inline-actions,
.ops-right-field-row .row-edit-inline-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 2rem;
    gap: 0.35rem;
    align-items: center;
    min-width: 0;
}

.row-edit-field .row-edit-inline-actions .row-edit-control,
.ops-right-field-row .row-edit-inline-actions .row-edit-control {
    min-width: 0;
}

.row-edit-field .row-edit-inline-actions .action-edit-link,
.ops-right-field-row .row-edit-inline-actions .action-edit-link {
    width: 2rem;
    min-width: 2rem;
}

.ops-right-field-row .row-edit-field-label {
    line-height: 1.2;
}

.row-edit-field.is-automated-field {
    opacity: 0.72;
}

.row-edit-field.is-automated-field .row-edit-control,
.row-edit-field.is-automated-field .ops-column-trigger {
    background: rgba(226, 232, 240, 0.72);
    color: #64748b;
}

.ops-history-panel {
    font: inherit;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    gap: 0.65rem;
    min-height: 0;
    width: 100%;
}

.ops-history-heading {
    font: inherit;
    color: inherit;
    font-weight: 800;
}

.ops-history-column-picker .ops-column-trigger {
    width: 100%;
    justify-content: space-between;
    min-height: 38px;
}

.ops-history-list {
    display: grid;
    align-content: start;
    gap: 0.6rem;
    min-height: 0;
    overflow-y: auto;
    padding-right: 0.15rem;
}

.ops-history-item {
    font: inherit;
    border: 1px solid rgba(148, 163, 184, 0.32);
    border-radius: 8px;
    padding: 0.7rem 0.75rem 0.75rem;
    background: rgba(255, 255, 255, 0.9);
    color: inherit;
}

.ops-history-item-head {
    font-family: inherit;
    font-style: inherit;
    display: grid;
    grid-template-columns: minmax(120px, 1fr) auto minmax(160px, 1fr);
    gap: 0.65rem;
    align-items: center;
    font-size: 0.78rem;
}

.ops-history-pill {
    justify-self: start;
    border: 1px solid rgba(148, 163, 184, 0.38);
    border-radius: 999px;
    padding: 0.16rem 0.55rem;
    background: rgba(240, 253, 250, 0.72);
    color: inherit;
    font-weight: 700;
    letter-spacing: 0;
}

.ops-history-by {
    font-family: inherit;
    font-style: inherit;
    color: inherit;
    font-weight: 700;
}

.ops-history-date {
    justify-self: end;
    font-family: inherit;
    font-style: inherit;
    color: inherit;
    font-weight: 600;
}

.ops-history-lines {
    font-family: inherit;
    font-style: inherit;
    display: grid;
    gap: 0.35rem;
    margin-top: 0.45rem;
    font-size: 0.8rem;
}

.ops-history-lines div {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 0.25rem;
}

.ops-history-lines span {
    color: inherit;
    font-weight: 700;
}

.ops-history-lines strong {
    font-family: inherit;
    font-style: inherit;
    color: inherit;
    font-weight: 700;
    word-break: break-word;
}

.ops-history-empty {
    color: rgba(71, 85, 105, 0.78);
    font-size: 0.82rem;
    text-align: center;
    padding: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.7);
}

@media (max-width: 900px) {
    .ops-row-edit-layout {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 0;
    }

    .ops-row-edit-left,
    .ops-row-edit-right {
        overflow: visible;
    }

    .ops-row-edit-right,
    .ops-right-top {
        display: grid;
        grid-template-rows: none;
    }

    .ops-right-field-row {
        grid-template-columns: 1fr;
    }

    .ops-right-field-row .row-edit-field {
        grid-column: auto !important;
    }

    .ops-history-item-head {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .ops-history-date {
        justify-self: start;
    }
}

.col-filter-trigger {
    border: none;
    background: transparent;
    width: 14px;
    height: 14px;
    font-size: 11px;
    margin-left: 4px;
    padding: 0;
    color: #41454d;
}

.col-filter-trigger:disabled {
    opacity: 0.32;
}

.col-filter-panel {
    display: none;
    position: absolute;
    top: calc(100% - 2px);
    left: 0;
    width: 220px;
    border: 1px solid var(--hairline);
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    z-index: 4800;
    padding: 8px;
    grid-auto-rows: auto;
    grid-template-rows: auto auto auto auto minmax(0, 1fr);
    gap: 6px;
    height: 220px;
    min-height: 170px;
    min-width: 220px;
    overflow: hidden;
}

.col-filter-panel.is-open {
    display: grid;
}

.col-filter-panel.align-right {
    left: auto;
    right: 0;
}

body .product-explorer-filter-table .col-filter-panel {
    position: fixed;
    z-index: 4800;
}

.col-filter-sort,
.col-filter-search,
.col-filter-checkall {
    width: 100%;
}

.col-filter-sort {
    height: 26px;
    border: 1px solid var(--hairline);
    background: #ffffff;
    border-radius: 6px;
    margin: 0;
    font-size: 12px;
    text-align: left;
    padding: 0 8px;
}

.col-filter-search {
    height: 26px;
    min-height: 26px;
    border: 1px solid var(--hairline);
    border-radius: 6px;
    margin: 0;
    padding: 0 8px;
    font-size: 12px;
    line-height: 1;
}

.col-filter-panel input[type="text"].col-filter-search {
    height: 26px;
    min-height: 26px;
    max-height: 26px;
    font-size: 12px;
    padding: 0 8px;
}

.col-filter-checkall {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    margin: 0;
    min-height: 26px;
}

.col-filter-options {
    height: 100%;
    min-height: 0;
    overflow: auto;
    border: 1px solid var(--hairline);
    border-radius: 6px;
    padding: 4px;
    display: grid;
    grid-auto-rows: min-content;
    align-content: start;
    gap: 4px;
}

.col-filter-options label {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.1;
    min-height: 20px;
    padding: 1px 0;
}

.col-filter-checkall input[type="checkbox"],
.col-filter-options input[type="checkbox"],
.ops-table .col-checkbox input[type="checkbox"],
.table-master-check {
    width: 14px;
    height: 14px;
    margin: 0;
    padding: 0;
    flex: 0 0 auto;
}

.table-filler-row td {
    border-bottom: none;
    border-right: none;
    background: transparent;
    padding: 0;
}

/* Product Explorer left table should keep natural row height, not stretch to panel height */
.product-explorer-batch-wrap .ops-table.product-explorer-batch-table {
    width: 100% !important;
    min-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
}

.col-filter-empty {
    font-size: 12px;
    color: #6b7280;
    padding: 4px;
}

.panel-resize-handle {
    position: absolute;
    bottom: 0;
    width: 14px;
    height: 14px;
    z-index: 35;
}

.panel-resize-handle.right {
    right: 0;
}

.panel-resize-handle.left {
    left: 0;
}

.action-edit-link {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--primary);
    background: transparent;
    border: none;
    font-size: 14px;
    line-height: 1;
    vertical-align: middle;
}

.action-edit-link i {
    font-size: 12px;
    line-height: 1;
}

.ops-table td.col-actions .action-edit-link + .action-edit-link {
    margin-left: 0;
}

button.action-edit-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    appearance: none;
    border: none;
    background: transparent;
    padding: 0;
}

.action-edit-link:disabled,
.action-edit-link[aria-disabled="true"] {
    opacity: 0.45;
    color: var(--muted);
}

button.action-run-btn {
    font-size: 12px;
    line-height: 1;
}

button.action-run-btn svg,
button.action-run-btn i {
    width: 12px;
    height: 12px;
    display: inline-block;
}

button.action-run-btn svg rect,
button.action-run-btn svg path,
button.action-run-btn svg circle {
    fill: none;
    stroke: currentColor;
}

button.action-run-btn[data-state="run"] svg path,
button.action-run-btn[data-state="idle"] svg path {
    fill: currentColor;
    stroke: currentColor;
}

.action-wrapper {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    vertical-align: middle;
}

.fg-action-stack {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

.fg-run-progress {
    width: 22px;
    height: 3px;
    border-radius: 999px;
    background: #dbe2ea;
    overflow: hidden;
    opacity: 0;
    transition: opacity 120ms ease;
}

.fg-run-progress.is-active {
    opacity: 1;
}

.fg-run-progress-fill {
    display: block;
    height: 100%;
    width: 0%;
    background: #1f6feb;
    transition: width 160ms linear;
}

.row-edit-generic-dialog {
    width: min(552px, calc(100vw - 2rem));
    max-height: calc(100vh - var(--app-header-offset, 56px) - 2rem);
    grid-template-rows: auto auto;
    overflow: visible;
}

.row-edit-generic-iframe {
    width: 100%;
    height: 180px;
    border: 0;
    display: block;
    background: #ffffff;
}

.icon-btn.run-btn,
.icon-btn.modify-btn,
.icon-btn.queue-btn {
    color: var(--primary);
}

.icon-btn.stop-btn {
    color: var(--color-danger);
}

.icon-btn.stop-btn:hover,
.icon-btn.stop-btn:focus-visible {
    border-color: var(--color-danger-border);
    background: var(--color-danger-bg);
    color: var(--color-danger);
}

.feed-generator-shell .icon-btn.stop-btn {
    width: 13px;
    min-width: 13px;
    height: 13px;
    min-height: 13px;
    padding: 0;
    border-radius: 0;
    border-color: var(--color-danger);
    background: var(--color-danger);
    color: #ffffff;
}

.feed-generator-shell .icon-btn.stop-btn:hover,
.feed-generator-shell .icon-btn.stop-btn:focus-visible {
    border-color: var(--color-danger-border);
    background: var(--color-danger-border);
    color: #ffffff;
}

.feed-generator-shell button.action-edit-link.action-run-btn.stop-btn[data-state="running"] {
    width: 13px;
    min-width: 13px;
    height: 13px;
    min-height: 13px;
    padding: 0;
    border: 1px solid var(--color-danger) !important;
    border-radius: 0;
    background: var(--color-danger) !important;
    color: #ffffff !important;
}

.feed-generator-shell button.action-edit-link.action-run-btn.stop-btn[data-state="running"]:hover,
.feed-generator-shell button.action-edit-link.action-run-btn.stop-btn[data-state="running"]:focus-visible {
    border-color: var(--color-danger-border) !important;
    background: var(--color-danger-border) !important;
}

.feed-stop-all-btn:not(:disabled) {
    border-color: var(--color-danger);
    background: var(--color-danger);
    color: #ffffff;
}

.feed-stop-all-btn:not(:disabled):hover,
.feed-stop-all-btn:not(:disabled):focus-visible {
    border-color: var(--color-danger-border);
    background: var(--color-danger-border);
    color: #ffffff;
}

.feed-generator-shell .feed-log-list {
    gap: 0.45rem;
    align-content: start;
}

.feed-run-overview {
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--hairline);
    border-radius: 8px;
    background: #f5f7fb;
    color: #4a5160;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.feed-clear-logs-btn {
    flex: 0 0 auto;
    min-height: 1.7rem;
    padding: 0 0.55rem;
    border: 1px solid var(--hairline);
    border-radius: 5px;
    background: #ffffff;
    color: #4a5160;
    font-size: 0.68rem;
    font-weight: 700;
}

.feed-clear-logs-btn:hover,
.feed-clear-logs-btn:focus-visible {
    border-color: var(--primary);
    color: var(--primary);
}

.feed-clear-logs-btn:disabled {
    opacity: 0.55;
}

.feed-run-card {
    content-visibility: auto;
    contain-intrinsic-size: 3.2rem;
    border: 1px solid var(--hairline);
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
}

.feed-run-card-head {
    width: 100%;
    padding: 0.5rem 0.65rem;
    border: 0;
    background: #ffffff;
    display: grid;
    grid-template-columns: minmax(190px, 0.9fr) auto minmax(0, 2fr) auto auto;
    align-items: center;
    gap: 0.55rem;
    text-align: left;
}

.feed-run-card-head:hover,
.feed-run-card-head:focus-visible {
    background: #f8faff;
}

.migration-log-block .feed-run-card-head {
    grid-template-columns: minmax(190px, 0.9fr) auto minmax(0, 2fr) auto;
}

.migration-log-block .feed-run-card-head:hover {
    background: #ffffff;
}

.feed-run-identity {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
    color: #2f3440;
    font-size: 0.76rem;
}

.feed-run-identity strong,
.feed-run-country,
.feed-run-latest-message {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.feed-run-country {
    color: #697386;
    font-size: 0.68rem;
    font-weight: 600;
}

.feed-run-country::before {
    content: "|";
    margin-right: 0.35rem;
    color: #aab2bf;
}

.feed-run-latest-message {
    color: #4a5160;
    font-size: 0.74rem;
}

.feed-run-log-count {
    color: #697386;
    font-size: 0.68rem;
    white-space: nowrap;
}

.feed-run-toggle {
    color: var(--primary);
    font-size: 0.68rem;
    font-weight: 700;
    white-space: nowrap;
}

.feed-run-log-details {
    border-top: 1px solid var(--hairline);
    background: #fbfcfe;
    padding: 0.35rem 0.5rem;
    display: grid;
    gap: 0.2rem;
}

.feed-run-log-details[hidden] {
    display: none !important;
}

.feed-run-log-entry {
    display: grid;
    grid-template-columns: 165px 70px minmax(0, 1fr);
    align-items: center;
    gap: 0.35rem;
    min-height: 1.9rem;
    padding: 0.2rem 0.35rem;
    border-radius: 5px;
    background: #ffffff;
    font-size: 0.72rem;
}

.feed-run-log-time,
.feed-run-log-message {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.feed-run-log-time {
    color: #697386;
}

.feed-run-log-message {
    color: #2f3440;
}

.feed-log-empty {
    padding: 0.7rem;
    color: #697386;
    font-size: 0.75rem;
    text-align: center;
}

.row-edit-modal-frame {
    width: 100%;
    height: 100%;
    border: 0;
}

.columns-modal-dialog {
    width: min(760px, calc(100vw - 2rem));
    max-height: min(720px, 80vh);
}

.ops-card-order-actions button {
    min-height: 1.6rem;
    border: 1px solid var(--hairline);
    border-radius: 4px;
    background: #fff;
    font-size: 0.68rem;
}

.ddm-modal-dialog,
.row-edit-modal[data-gmails-modal='1'] .row-edit-modal-dialog,
.row-edit-modal[data-columns-modal='1'] .row-edit-modal-dialog,
.row-edit-modal[data-documents-ledger-modal='1'] .row-edit-modal-dialog,
.row-edit-modal[data-generic-edit-modal='1'] .row-edit-modal-dialog {
    top: 50%;
    bottom: auto;
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%);
    width: min(552px, calc(100vw - 2rem));
    max-height: 80vh;
    grid-template-rows: auto auto;
    overflow: visible;
}

.row-edit-modal[data-columns-modal='1'] .row-edit-modal-dialog {
    width: min(760px, calc(100vw - 2rem));
    max-height: min(720px, calc(100vh - 2rem));
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
}

.row-edit-modal[data-proxies-qr-modal='1'] .row-edit-modal-dialog {
    width: min(760px, calc(100vw - 2rem));
}

.row-edit-modal[data-documents-modal='1'] .row-edit-modal-dialog {
    width: 90vw;
    height: 90vh;
    max-height: 90vh;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
}

.row-edit-modal[data-generic-edit-modal='1'] .cj-api-modal-dialog,
.row-edit-modal[data-generic-edit-modal='1'] .cj-card-modal-dialog {
    top: 50%;
    bottom: auto;
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%);
    width: min(80vw, calc(100vw - 2rem));
    max-height: 80vh;
    grid-template-rows: auto 1fr;
    overflow: hidden;
}

.row-edit-modal[data-generic-edit-modal='1'] .cj-api-modal-dialog {
    left: 50%;
    right: auto;
    width: 96vw;
    max-width: none;
    transform: translateX(-50%);
}

.row-edit-modal[data-feed-share-modal='1'] .row-edit-modal-dialog {
    top: 50%;
    left: 50%;
    right: auto;
    width: min(34rem, calc(100vw - 2rem));
    max-height: 80vh;
    transform: translate(-50%, -50%);
}

.row-edit-modal[data-feed-share-modal='1'] .row-edit-modal-body {
    position: relative;
    padding: 1rem;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 0.65rem;
    overflow: hidden;
}

.feed-share-email-list-wrap {
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 0.5rem;
}

.feed-share-email-list-title {
    font-size: 0.76rem;
    font-weight: 600;
    color: #4a5568;
    letter-spacing: 0;
}

.feed-share-email-list {
    min-height: 0;
    display: grid;
    gap: 0.45rem;
    align-content: start;
    overflow: auto;
    padding-right: 0.1rem;
}

.feed-share-email-empty,
.feed-share-email-item {
    min-height: 2.35rem;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
    background: #ffffff;
    padding: 0.45rem 0.55rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    color: #445065;
    font-size: 0.82rem;
}

.feed-share-email-remove {
    border: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
    background: #ffffff;
    color: #445065;
    font-size: 0.72rem;
    height: 1.75rem;
    padding: 0 0.6rem;
}

.row-edit-modal[data-feed-share-modal='1'] .feed-share-email-form {
    display: grid;
    gap: 0.55rem;
    align-content: start;
    min-height: 0;
    overflow: hidden;
}

.row-edit-modal[data-feed-share-modal='1'] .feed-share-email-form .row-edit-field {
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 0.5rem;
}

.row-edit-modal[data-feed-share-modal='1'] .feed-share-email-form .row-edit-field-label {
    line-height: 2rem;
}

.row-edit-modal[data-feed-share-modal='1'] .gmails-modal-actions {
    position: sticky;
    bottom: 0;
    z-index: 4;
    margin: 0;
    padding-top: 0.45rem;
    padding-bottom: 0;
    background: #ffffff;
    border-top: 1px solid var(--hairline);
}

.row-edit-modal[data-generic-edit-modal='1'] .row-edit-modal-body {
    padding: 1rem;
    overflow: hidden;
    min-height: 0;
    height: 100%;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
}

.row-edit-modal[data-generic-edit-modal='1'] .cj-api-modal-dialog .row-edit-modal-body {
    grid-template-rows: auto auto minmax(0, 1fr);
    padding: 1rem;
}

.row-edit-modal[data-generic-edit-modal='1'] .cj-task-modal-dialog .row-edit-modal-body {
    overflow: visible;
    height: auto;
    display: grid;
}

.row-edit-modal[data-generic-edit-modal='1'] .cj-api-table,
.row-edit-modal[data-generic-edit-modal='1'] .cj-card-table {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    table-layout: fixed !important;
}

.row-edit-modal[data-generic-edit-modal='1'] .cj-card-table-wrap,
.row-edit-modal[data-generic-edit-modal='1'] .cj-api-table-wrap {
    width: 100%;
    height: 100%;
    min-height: 0;
}

.row-edit-modal[data-generic-edit-modal='1'][data-card-key='products'] .cj-card-table,
.row-edit-modal[data-generic-edit-modal='1'][data-card-key='variants'] .cj-card-table {
    width: max-content !important;
    min-width: 100% !important;
    max-width: none !important;
    table-layout: auto !important;
}

.row-edit-modal[data-generic-edit-modal='1'][data-card-key='products'] .cj-card-table th,
.row-edit-modal[data-generic-edit-modal='1'][data-card-key='products'] .cj-card-table td,
.row-edit-modal[data-generic-edit-modal='1'][data-card-key='variants'] .cj-card-table th,
.row-edit-modal[data-generic-edit-modal='1'][data-card-key='variants'] .cj-card-table td {
    width: auto;
    min-width: 9rem;
    max-width: 22rem;
}

.row-edit-modal[data-generic-edit-modal='1'][data-card-key='products'] .cj-card-table th:first-child,
.row-edit-modal[data-generic-edit-modal='1'][data-card-key='products'] .cj-card-table td:first-child,
.row-edit-modal[data-generic-edit-modal='1'][data-card-key='variants'] .cj-card-table th:first-child,
.row-edit-modal[data-generic-edit-modal='1'][data-card-key='variants'] .cj-card-table td:first-child {
    min-width: 7rem;
}

.gmails-date-wrap {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.4rem;
}

.gmails-two-fa-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.4rem;
}

.gmails-two-fa-btn {
    width: 34px;
    min-width: 34px;
    height: 34px;
}

.gmails-two-fa-btn:disabled {
    opacity: 0.45;
}

.gmails-switch {
    display: inline-flex;
    align-items: center;
    width: 48px;
    height: 28px;
}

.gmails-switch input {
    position: absolute;
    opacity: 0;
}

.gmails-switch-track {
    position: relative;
    width: 100%;
    height: 100%;
    border: 1px solid var(--hairline);
    border-radius: 999px;
    background: #ffffff;
    transition: background 120ms ease;
}

.gmails-switch-track::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #7b8794;
    transition: transform 120ms ease, background 120ms ease;
}

.gmails-switch input:checked + .gmails-switch-track {
    background: var(--color-danger-bg);
}

.gmails-switch input:checked + .gmails-switch-track::after {
    transform: translateX(20px);
    background: var(--color-danger);
}

.gmails-today-btn {
    height: 34px;
    min-width: 36px;
    border: 1px solid var(--hairline);
    border-radius: 6px;
    background: #ffffff;
}

.gmails-modal-actions {
    display: flex;
    align-items: flex-start;
    align-content: flex-start;
    justify-content: flex-end;
    gap: 0.5rem;
    padding-top: 0.25rem;
}

.gmails-modal-actions .btn,
.gmails-modal-actions .gmails-save-btn,
.gmails-modal-actions .dm-secondary-btn {
    height: 2rem;
    min-height: 2rem;
    padding: 0 0.75rem;
    line-height: 1;
    font-size: 0.78rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: top;
}

body.is-app-page:not(.is-operations-dashboard) .gmails-save-btn,
.row-edit-modal .gmails-save-btn,
.modal-editor-shell .gmails-save-btn,
.tools-config-form .tools-btn[type="submit"] {
    gap: 0.42rem;
}

.gmails-save-btn .save-action-icon,
.tools-config-form .tools-btn[type="submit"] .save-action-icon {
    width: 0.9rem;
    height: 0.9rem;
    min-width: 0.9rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.col-visibility-list {
    display: grid;
    gap: 0.5rem;
    align-content: start;
}

.col-visibility-tools {
    margin-bottom: 0.6rem;
    display: grid;
    gap: 0.45rem;
    position: sticky;
    top: 0;
    background: #ffffff;
    z-index: 2;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #eef2f7;
}

.col-visibility-search {
    width: 100%;
    height: 34px;
    border: 1px solid var(--hairline);
    border-radius: 6px;
    padding: 0 0.55rem;
}

.col-visibility-item {
    display: grid;
    grid-template-columns: 24px 18px 1fr;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
}

.col-checkall-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.76rem;
}

.col-modal-hint {
    margin-left: auto;
    margin-right: 0.55rem;
    font-size: 0.66rem;
    font-weight: 500;
    color: #8b95a5;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.col-modal-save-btn {
    width: 28px;
    height: 28px;
    border: 1px solid var(--hairline);
    border-radius: 6px;
    background: #ffffff;
    color: #4b5563;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin-right: 0.35rem;
}

.col-modal-save-btn.cj-task-create-btn {
    width: auto;
    min-width: 0;
    height: 2rem;
    padding: 0 0.75rem;
    justify-self: end;
    font-size: 0.76rem;
    font-weight: 600;
}

.cj-api-edit-save-btn {
    justify-self: end;
}

.col-modal-save-btn svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
}

.confirm-modal-text {
    margin: 0 0 0.9rem 0;
    font-size: 0.82rem;
    color: #374151;
}

.row-edit-control {
    width: 100%;
    height: 28px;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
    background: #ffffff;
    font-size: 0.8rem;
    color: var(--body);
    padding: 0 0.5rem;
}

textarea.row-edit-control {
    min-height: 96px;
    height: auto;
    padding: 0.5rem;
    resize: vertical;
}

.row-edit-field {
    display: grid;
    grid-template-columns: 180px 1fr;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.8rem;
    color: #374151;
}

.row-edit-left .row-edit-field[hidden] {
    display: none !important;
}

.ops-shopify-files-dialog {
    width: min(760px, calc(100vw - 2rem));
}

.ops-shopify-files-store {
    font-size: 0.78rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 0.65rem;
}

.ops-shopify-files-table-wrap {
    max-height: min(520px, 65vh);
    overflow: auto;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
}

.ops-shopify-files-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.ops-shopify-files-table th,
.ops-shopify-files-table td {
    padding: 0.55rem 0.65rem;
    border-bottom: 1px solid var(--hairline);
    text-align: left;
    vertical-align: top;
}

.ops-shopify-files-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f8fafc;
    color: #475569;
    font-size: 0.72rem;
}

.ops-shopify-file-link {
    color: var(--accent, #2563eb);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.16em;
}

.ops-shopify-file-link:hover {
    color: #1d4ed8;
}

.row-edit-field-label {
    font-size: 0.78rem;
    line-height: 2rem;
}

.row-edit-left select.row-edit-control {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    border: 1px solid var(--hairline) !important;
    border-radius: var(--radius-sm) !important;
    background-color: #ffffff !important;
    color: var(--body) !important;
    line-height: 1.2 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2358606f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
    background-position: right 8px center !important;
    background-size: 12px 12px !important;
    background-repeat: no-repeat !important;
    padding-right: 1.7rem !important;
}

.row-edit-left .row-edit-control {
    font-size: 0.78rem;
}

.row-edit-left input.row-edit-control {
    height: 28px;
}

.row-edit-left .row-edit-control:focus {
    outline: none;
    border-color: #c6d0dd !important;
    box-shadow: 0 0 0 2px rgba(56, 109, 183, 0.08);
}

.row-edit-left .row-edit-control.is-dirty,
.row-edit-left .row-edit-control.is-dirty:focus,
.row-edit-field.is-dirty .row-edit-control,
.row-edit-field.is-dirty .row-edit-control:focus,
.row-edit-field.is-dirty .ops-column-trigger,
.row-edit-field.is-dirty .row-edit-switch-slider {
    border-color: var(--color-danger) !important;
    box-shadow: 0 0 0 1px var(--color-danger-focus) inset !important;
}

.row-edit-left .row-edit-control[readonly] {
    background: #eef2f7;
    color: #6b7280;
    border-color: #d8dee8;
}

.row-edit-control:disabled,
.row-edit-left .row-edit-control:disabled {
    background: #eef2f7 !important;
    color: #6b7280 !important;
    border-color: #d8dee8 !important;
    opacity: 1;
}

.domain-auto-field[readonly] {
    background: #eef2f7 !important;
    color: #6b7280 !important;
    border-color: #d8dee8 !important;
}

.row-edit-picker {
    width: 100%;
}

.row-edit-picker .ops-column-trigger {
    height: 2rem;
    min-width: 0;
}

.row-edit-picker .ops-column-trigger-label,
.row-edit-picker .ops-column-option {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.row-edit-picker .ops-column-trigger-label {
    flex: 1 1 auto;
}

.row-edit-picker .ops-column-trigger-caret {
    flex: 0 0 auto;
}

.row-edit-picker .ops-column-menu {
    z-index: 80;
}

.row-edit-switch {
    position: relative;
    display: inline-flex;
    width: 42px;
    height: 24px;
    align-items: center;
}

.row-edit-switch-input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.row-edit-switch-slider {
    position: absolute;
    inset: 0;
    background: #d1d5db;
    border-radius: 999px;
    transition: background-color 0.16s ease;
}

.row-edit-switch-slider::before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
    transition: transform 0.16s ease;
}

.row-edit-switch-input:checked + .row-edit-switch-slider {
    background: #2563eb;
}

.row-edit-switch-input:checked + .row-edit-switch-slider::before {
    transform: translateX(18px);
}

.col-seq {
    color: #6b7280;
    font-size: 0.74rem;
}

.col-visibility-item.is-dragging {
    opacity: 0.6;
}

.columns-modal-dialog .row-edit-modal-body {
    padding: 1rem;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
}

.row-edit-modal[data-gmails-modal='1'] .row-edit-modal-body,
.row-edit-modal[data-documents-ledger-modal='1'] .row-edit-modal-body {
    padding: 1rem;
    overflow: auto;
}

.row-edit-modal[data-columns-modal='1'] .col-visibility-list {
    min-height: 0;
    overflow: auto;
    padding-right: 0.2rem;
}

.row-edit-modal[data-ddm-modal='1'] .row-edit-modal-body,
.row-edit-modal[data-feed-generator-modal='1'] .row-edit-modal-body,
.row-edit-modal[data-tools-modal='1'] .row-edit-modal-body,
.row-edit-modal[data-financial-ledger-modal='1'] .row-edit-modal-body,
.row-edit-modal[data-proxies-qr-modal='1'] .row-edit-modal-body,
.row-edit-modal[data-domain-modal='1'] .row-edit-modal-body,
.row-edit-modal[data-documents-modal='1'] .row-edit-modal-body,
.row-edit-modal[data-gpt-prompt-modal='1'] .row-edit-modal-body {
    padding: 1rem;
    overflow: auto;
}

.row-edit-modal[data-documents-modal='1'] .row-edit-modal-body {
    min-height: 0;
    overflow: hidden;
}

.row-edit-modal[data-confirm-modal='1'] .row-edit-modal-body {
    padding: 1rem;
}

.row-edit-modal[data-financial-ledger-rate-modal='1'] .row-edit-modal-dialog {
    width: min(420px, calc(100vw - 2rem));
    border-radius: 10px;
    overflow: hidden;
}

.row-edit-modal[data-financial-ledger-rate-modal='1'] .row-edit-modal-body {
    padding: 1rem;
    overflow: auto;
}

.row-edit-modal[data-financial-ledger-rate-modal='1'] .financial-ledger-rate-form {
    display: grid;
    gap: 0.85rem;
}

.row-edit-modal[data-financial-ledger-rate-modal='1'] .row-edit-field {
    grid-template-columns: 150px 1fr;
    gap: 0.65rem;
}

.row-edit-modal[data-financial-ledger-rate-modal='1'] .row-edit-field-label {
    line-height: 2rem;
}

.row-edit-modal[data-invoice-workbook-modal='1'] .row-edit-modal-dialog {
    width: min(620px, calc(100vw - 2rem));
    border-radius: 10px;
    overflow: hidden;
}

.row-edit-modal[data-invoice-workbook-modal='1'] .row-edit-modal-body {
    padding: 1rem;
    overflow: visible;
}

.row-edit-modal[data-invoice-workbook-modal='1'] .invoice-workbook-form {
    display: grid;
    gap: 0.85rem;
}

.row-edit-modal[data-invoice-workbook-modal='1'] .row-edit-field {
    grid-template-columns: 140px 1fr;
    gap: 0.65rem;
}

.row-edit-modal[data-invoice-workbook-modal='1'] .row-edit-field-label {
    line-height: 2rem;
}

.row-edit-modal[data-invoice-workbook-modal='1'] .row-edit-picker .ops-column-menu {
    z-index: 5000;
    max-height: min(340px, calc(100vh - 220px));
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.18);
}

.row-edit-modal[data-invoice-workbook-modal='1'] .ops-column-search {
    min-width: 0;
}

.row-edit-modal[data-invoice-workbook-modal='1'] .ops-column-trigger-label,
.row-edit-modal[data-invoice-workbook-modal='1'] .ops-column-option {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.row-edit-modal[data-ddm-modal='1'] .ddm-modal-form,
.row-edit-modal[data-feed-generator-modal='1'] .dm-store-modal-form,
.row-edit-modal[data-feed-generator-modal='1'] .feed-generator-modal-form,
.row-edit-modal[data-financial-ledger-modal='1'] .financial-ledger-modal-form,
.row-edit-modal[data-proxies-qr-modal='1'] .proxies-qr-modal-form,
.row-edit-modal[data-domain-modal='1'] .domain-modal-form,
.row-edit-modal[data-documents-bulk-modal='1'] .documents-bulk-form,
.row-edit-modal[data-documents-modal='1'] .documents-modal-form,
.row-edit-modal[data-gpt-prompt-modal='1'] .gpt-prompt-modal-form,
.row-edit-modal[data-gmails-modal='1'] .gmails-modal-form {
    display: grid;
    gap: 0.6rem;
    overflow: visible;
    align-content: start;
}

.row-edit-modal[data-documents-modal='1'] .documents-modal-form {
    min-height: 0;
    overflow: auto;
}

.row-edit-modal[data-feed-generator-modal='1'] .row-edit-modal-body {
    position: relative;
    overflow: hidden;
}

.row-edit-modal[data-tools-modal='1'] .row-edit-modal-body {
    position: relative;
    overflow: hidden;
}

.row-edit-modal[data-feed-generator-modal='1'] .dm-store-modal-form,
.row-edit-modal[data-feed-generator-modal='1'] .feed-generator-modal-form {
    height: 100%;
    max-height: 100%;
    overflow: auto;
    align-content: start;
    padding-bottom: 0;
}

.row-edit-modal[data-feed-generator-modal='1'] .gmails-modal-actions {
    position: absolute;
    left: 0.65rem;
    right: 0.65rem;
    bottom: 0;
    z-index: 4;
    justify-content: flex-end;
    align-items: flex-start;
    align-content: flex-start;
    padding-top: 0;
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
    background: #ffffff;
    border-top: 1px solid var(--hairline);
    border-bottom: 0;
}

.row-edit-modal[data-feed-generator-modal='1'] .gmails-modal-actions .btn,
.row-edit-modal[data-feed-generator-modal='1'] .gmails-modal-actions .gmails-save-btn,
.row-edit-modal[data-feed-generator-modal='1'] .gmails-modal-actions .dm-secondary-btn {
    height: 2rem;
    min-height: 2rem;
    padding: 0 0.7rem;
    margin: 0;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: top;
}

.row-edit-modal[data-documents-modal='1'] .documents-modal-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 42%);
    gap: 0.7rem;
    align-items: stretch;
    height: 100%;
    min-height: 0;
}

.row-edit-modal[data-ddm-modal='1'] .row-edit-field,
.row-edit-modal[data-feed-generator-modal='1'] .row-edit-field,
.row-edit-modal[data-tools-modal='1'] .row-edit-field,
.row-edit-modal[data-financial-ledger-modal='1'] .row-edit-field,
.row-edit-modal[data-proxies-qr-modal='1'] .row-edit-field,
.row-edit-modal[data-domain-modal='1'] .row-edit-field,
.row-edit-modal[data-documents-bulk-modal='1'] .row-edit-field,
.row-edit-modal[data-documents-modal='1'] .row-edit-field,
.row-edit-modal[data-gpt-prompt-modal='1'] .row-edit-field,
.row-edit-modal[data-gmails-modal='1'] .row-edit-field {
    grid-template-columns: 140px 1fr;
    gap: 0.5rem;
    margin: 0;
}

.row-edit-modal[data-ddm-modal='1'] .row-edit-field-label,
.row-edit-modal[data-feed-generator-modal='1'] .row-edit-field-label,
.row-edit-modal[data-tools-modal='1'] .row-edit-field-label,
.row-edit-modal[data-financial-ledger-modal='1'] .row-edit-field-label,
.row-edit-modal[data-proxies-qr-modal='1'] .row-edit-field-label,
.row-edit-modal[data-domain-modal='1'] .row-edit-field-label,
.row-edit-modal[data-documents-bulk-modal='1'] .row-edit-field-label,
.row-edit-modal[data-documents-modal='1'] .row-edit-field-label,
.row-edit-modal[data-gpt-prompt-modal='1'] .row-edit-field-label,
.row-edit-modal[data-gmails-modal='1'] .row-edit-field-label {
    line-height: 2rem;
}

.row-edit-modal[data-domain-modal='1'] .row-edit-email-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.35rem;
}

.row-edit-modal[data-domain-modal='1'] .row-edit-email-suffix {
    height: 2rem;
    line-height: 2rem;
    font-size: 0.8rem;
    color: var(--muted);
    white-space: nowrap;
}

.row-edit-modal[data-proxies-qr-modal='1'] .row-edit-field {
    grid-template-columns: 170px minmax(0, 1fr);
}

.row-edit-modal[data-proxies-qr-modal='1'] .row-edit-field-label {
    white-space: nowrap;
}

.row-edit-required {
    color: var(--color-danger);
    font-weight: 700;
    margin-left: 0.18rem;
}

.row-edit-modal[data-proxies-qr-modal='1'] .row-edit-inline-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 2rem;
    gap: 0.35rem;
    align-items: center;
    min-width: 0;
}

.row-edit-modal[data-proxies-qr-modal='1'] .row-edit-inline-actions .row-edit-control {
    min-width: 0;
}

.row-edit-modal[data-proxies-qr-modal='1'] .pqr-inline-icon {
    width: 2rem;
    min-width: 2rem;
    height: 2rem;
}

.documents-file-drop {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.25rem;
    padding: 0.35rem 0.45rem;
    border: 1px dashed var(--hairline);
    border-radius: var(--radius-sm);
    background: #fff;
}

.documents-file-drop:focus,
.row-edit-modal[data-ddm-modal='1'] .ddm-value-input:focus {
    outline: none;
    border-color: #c6d0dd;
    box-shadow: 0 0 0 2px rgba(56, 109, 183, 0.08);
}

.documents-file-drop.is-dragover {
    border-color: #7aa2d6;
    background: #f7fbff;
}

.documents-file-drop-title {
    font-size: 0.72rem;
    color: #5f6876;
    letter-spacing: 0;
}

.documents-file-name {
    font-size: 0.75rem;
    color: var(--muted);
}

.documents-browser {
    --documents-tree-width: 280px;
    display: grid;
    grid-template-columns: minmax(220px, var(--documents-tree-width)) 8px minmax(0, 1fr);
    align-items: stretch;
    min-height: min(680px, calc(100vh - 15rem));
    border-top: 1px solid var(--hairline);
    border-bottom: 1px solid var(--hairline);
    background: #fff;
}

.documents-tree-pane {
    min-width: 0;
    overflow: hidden;
    border-right: 1px solid var(--hairline);
    background: #f8fafc;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
}

.documents-tree-head {
    min-height: 2.45rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0 0.65rem;
    border-bottom: 1px solid var(--hairline);
    font-size: 0.72rem;
    font-weight: 700;
    color: #445064;
}

.documents-tree-head-actions {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    min-width: 0;
}

.documents-tree-clear,
.documents-tree-download {
    border: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
    background: #fff;
    color: #5f6876;
    height: 1.65rem;
    padding: 0 0.45rem;
    font-size: 0.68rem;
}

.documents-tree-download {
    color: #245987;
}

.documents-shopify-quick-add {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0.55rem 0.5rem 0;
    padding: 0.6rem 0.65rem;
    border: 1px dashed #76a1df;
    border-radius: var(--radius-sm);
    background: #f3f7ff;
    color: #2454a6;
    cursor: pointer;
    transition: border-color 120ms ease, background 120ms ease, box-shadow 120ms ease;
}

.documents-shopify-quick-add:hover,
.documents-shopify-quick-add:focus-visible,
.documents-shopify-quick-add.is-dragover {
    border-color: #2454bf;
    background: #e8f0ff;
    box-shadow: 0 0 0 3px rgba(36, 84, 191, 0.12);
    outline: 0;
}

.documents-shopify-quick-add-icon {
    display: grid;
    width: 1.8rem;
    height: 1.8rem;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: #2454bf;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1;
}

.documents-shopify-quick-add strong,
.documents-shopify-quick-add small {
    display: block;
}

.documents-shopify-quick-add strong {
    font-size: 0.68rem;
    letter-spacing: 0.025em;
}

.documents-shopify-quick-add small {
    margin-top: 0.12rem;
    color: #53709f;
    font-size: 0.69rem;
}

.documents-tree-clear:hover,
.documents-tree-download:hover {
    border-color: #b9c4d2;
    color: #243042;
}

.documents-tree {
    overflow: auto;
    padding: 0.45rem 0.35rem 0.65rem;
}

.documents-tree-empty {
    display: grid;
    min-height: 5rem;
    place-items: center;
    color: #7a8494;
    font-size: 0.76rem;
}

.documents-tree-node {
    min-width: 0;
}

.documents-tree-node summary {
    position: relative;
    display: grid;
    grid-template-columns: 1.45rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.2rem;
    min-height: 1.85rem;
    padding: 0.15rem 0.2rem;
    list-style: none;
}

.documents-tree-node summary::-webkit-details-marker {
    display: none;
}

.documents-tree-arrow {
    width: 1.35rem;
    height: 1.35rem;
    display: inline-grid;
    place-items: center;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    background: transparent;
}

.documents-tree-arrow::before {
    content: "";
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 5px solid #6b7483;
}

.documents-tree-file-filter::before {
    content: "";
    width: 0.38rem;
    height: 0.38rem;
    border-radius: 999px;
    background: #6b7483;
}

.documents-tree-node[open] > summary .documents-tree-arrow::before {
    transform: rotate(90deg);
}

.documents-tree-arrow:hover,
.documents-tree-file-filter:hover {
    border-color: #c8d2df;
    background: #fff;
}

.documents-tree-label {
    min-width: 0;
    min-height: 1.6rem;
    display: flex;
    align-items: center;
    color: #263244;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.78rem;
}

.documents-tree-label-filter {
    border-radius: var(--radius-sm);
}

.documents-tree-count {
    justify-self: end;
    min-width: 1.4rem;
    height: 1.25rem;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: #e9eef5;
    color: #536071;
    font-size: 0.68rem;
}

.documents-tree-arrow.is-active,
.documents-tree-file-filter.is-active {
    background: #e6f0fb;
    border-color: #b9d4f0;
    border-radius: var(--radius-sm);
}

.documents-tree-arrow.is-active + .documents-tree-label,
.documents-tree-label.is-active {
    color: #164f8a;
    font-weight: 700;
}

.documents-tree-title .documents-tree-label {
    color: #3d4858;
}

.documents-tree-children {
    display: grid;
    gap: 0.05rem;
    margin-left: 0.8rem;
}

.documents-tree-file-row {
    display: grid;
    grid-template-columns: 1.45rem minmax(0, 1fr) 1.65rem;
    align-items: center;
    gap: 0.15rem;
    min-width: 0;
}

.documents-tree-file-filter {
    width: 1.35rem;
    height: 1.35rem;
    display: inline-grid;
    place-items: center;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    background: transparent;
}

.documents-tree-file-filter.is-active + .documents-tree-file {
    color: #164f8a;
    font-weight: 700;
}

.documents-tree-file {
    width: 100%;
    min-height: 1.6rem;
    display: flex;
    align-items: center;
    min-width: 0;
    color: #697386;
    font-size: 0.74rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.documents-tree-action {
    width: 1.55rem;
    height: 1.55rem;
    display: inline-grid;
    place-items: center;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    background: transparent;
    color: #687386;
    font-size: 1rem;
    line-height: 1;
}

.documents-tree-file-row:hover .documents-tree-action,
.documents-tree-action:hover {
    border-color: #c8d2df;
    background: #fff;
    color: #263244;
}

.documents-tree-action-menu {
    position: fixed;
    z-index: 6000;
    width: 150px;
    display: grid;
    gap: 0.1rem;
    padding: 0.25rem;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(23, 31, 44, 0.16);
}

.documents-tree-action-menu button {
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: #263244;
    min-height: 1.8rem;
    padding: 0 0.45rem;
    text-align: left;
    font-size: 0.76rem;
}

.documents-tree-action-menu button:hover {
    background: #eef4fb;
    color: #164f8a;
}

.documents-tree-resizer {
    background: linear-gradient(90deg, transparent 0, transparent 3px, #c9d3df 3px, #c9d3df 5px, transparent 5px);
}

.documents-tree-resizer:hover,
.documents-browser.is-resizing .documents-tree-resizer {
    background: linear-gradient(90deg, transparent 0, transparent 2px, #8da8c8 2px, #8da8c8 6px, transparent 6px);
}

.documents-table-pane {
    min-width: 0;
    overflow: hidden;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
}

.documents-table-pane .ops-table-wrap {
    border-top: 0;
}

@media (max-width: 860px) {
    .documents-browser {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: minmax(180px, 32vh) minmax(0, 1fr);
    }

    .documents-tree-resizer {
        display: none;
    }

    .documents-tree-pane {
        border-right: 0;
        border-bottom: 1px solid var(--hairline);
    }
}

.documents-bulk-selected,
.documents-bulk-status {
    min-height: 2rem;
    display: flex;
    align-items: center;
    color: var(--muted);
    font-size: 0.82rem;
}

.documents-bulk-progress {
    height: 0.5rem;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: #edf1f5;
    border: 1px solid var(--hairline);
}

.documents-bulk-progress-bar {
    width: 0%;
    height: 100%;
    background: #2f6fb2;
    transition: width 0.18s ease;
}

.documents-bulk-progress-text {
    min-height: 1.25rem;
    font-size: 0.78rem;
    color: var(--muted);
    text-align: right;
}

.documents-ledger-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.35rem;
    align-items: center;
}

.documents-ledger-list {
    max-height: 300px;
    overflow: auto;
    display: grid;
    gap: 0.35rem;
}

.documents-ledger-list .documents-ledger-option {
    text-align: left;
}

.documents-preview-pane {
    border: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
    background: #fff;
    min-height: 0;
    display: block;
    overflow: hidden;
}

.documents-preview-frame {
    width: 100%;
    height: 100%;
    border: 0;
    display: none;
    min-height: 0;
}

.documents-preview-empty {
    display: grid;
    place-items: center;
    color: #8b95a5;
    font-size: 0.76rem;
    min-height: 360px;
}

.row-edit-modal[data-ddm-modal='1'] .ddm-value-input {
    height: 2rem;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
    background: #ffffff;
    font-size: 0.8rem;
    color: var(--body);
    padding: 0 0.5rem;
}

.row-edit-modal[data-ddm-modal='1'] .row-edit-picker .ops-column-menu,
.row-edit-modal[data-feed-generator-modal='1'] .row-edit-picker .ops-column-menu,
.row-edit-modal[data-financial-ledger-modal='1'] .row-edit-picker .ops-column-menu,
.row-edit-modal[data-proxies-qr-modal='1'] .row-edit-picker .ops-column-menu,
.row-edit-modal[data-domain-modal='1'] .row-edit-picker .ops-column-menu,
.row-edit-modal[data-documents-modal='1'] .row-edit-picker .ops-column-menu,
.row-edit-modal[data-gpt-prompt-modal='1'] .row-edit-picker .ops-column-menu,
.row-edit-modal[data-gmails-modal='1'] .row-edit-picker .ops-column-menu,
.row-edit-modal[data-generic-edit-modal='1'] .row-edit-picker .ops-column-menu {
    top: calc(100% + 4px);
    bottom: auto;
    left: 0;
    right: 0;
    max-height: min(180px, calc(100vh - 7rem));
    z-index: 1400;
}

.row-edit-modal-dialog:has(.ops-column-picker.is-open),
.ui-modal__dialog:has(.ops-column-picker.is-open) {
    overflow: visible;
}

.row-edit-modal-body:has(.ops-column-picker.is-open),
.ui-modal__body:has(.ops-column-picker.is-open) {
    overflow: visible;
}

.row-edit-modal .ops-column-picker.is-open,
.ui-modal .ops-column-picker.is-open {
    z-index: 5000;
}

.row-edit-modal .ops-column-menu,
.ui-modal .ops-column-menu {
    max-height: min(200px, calc(100vh - 7rem));
    z-index: 5001;
}

.row-edit-modal .col-filter-panel,
.ui-modal .col-filter-panel {
    max-height: min(220px, calc(100vh - 7rem));
    z-index: 5001;
}

.col-resize-handle {
    position: absolute;
    top: 0;
    right: -3px;
    width: 8px;
    height: 100%;
    z-index: 20;
}

.tools-shell {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 0.85rem;
    height: calc(100vh - var(--header-height, 64px) - 2rem);
    min-height: 0;
}

.tools-grid {
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    overflow: auto;
}

.tools-panel {
    border: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
    background: #ffffff;
    padding: 0.9rem;
    display: grid;
    align-content: start;
    gap: 0.8rem;
    min-width: 0;
}

.tools-panel-wide {
    grid-column: 1 / -1;
}

.tools-panel-head,
.tools-output-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-width: 0;
}

.tools-panel-head h2 {
    margin: 0;
    color: var(--primary);
    font-size: 0.95rem;
    letter-spacing: 0;
}

.tools-actions,
.tools-output-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tools-btn:not(.ui-btn),
.tools-icon-btn,
.tools-output-btn {
    border: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
    background: #ffffff;
    color: #263244;
    min-height: 2rem;
    padding: 0 0.7rem;
    font-size: 0.73rem;
    font-weight: 800;
}

.tools-btn.is-primary:not(.ui-btn) {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

.tools-btn:not(.ui-btn):disabled,
.tools-icon-btn:disabled,
.tools-output-btn:disabled {
    opacity: 0.55;
}

.tools-progress,
.tools-output-bar {
    border: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
    background: #ffffff;
    padding: 0.75rem;
}

.tools-progress {
    display: grid;
    gap: 0.45rem;
    background: #f8fafc;
}

.tools-progress-meta {
    display: flex;
    justify-content: space-between;
    gap: 0.7rem;
    font-size: 0.78rem;
    color: #4f5866;
}

.tools-progress-track {
    height: 0.65rem;
    border-radius: 999px;
    background: #dfe5ec;
    overflow: hidden;
}

.tools-progress-track span {
    display: block;
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #1f6feb, var(--color-success));
    transition: width 160ms ease;
}

.tools-progress p,
.tools-muted {
    margin: 0;
    color: #647084;
    font-size: 0.76rem;
}

.tools-html-input {
    width: 100%;
    min-height: 15rem;
    resize: vertical;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    font: inherit;
    color: #263244;
    background: #ffffff;
}

.tools-output-btn {
    background: #f8fafc;
    color: #647084;
}

.tools-output-btn.is-ready {
    background: var(--color-success-bg);
    border-color: var(--color-success-border);
    color: var(--color-success);
}

.tools-update-wrap {
    display: grid;
    grid-template-columns: minmax(260px, 420px) auto;
    align-items: center;
    gap: 0.65rem;
}

.tools-update-progress {
    display: grid;
    gap: 0.35rem;
    min-width: 0;
}

.tools-update-progress p {
    margin: 0;
    color: #647084;
    font-size: 0.72rem;
}

.tools-modal-body {
    display: block;
    overflow: hidden;
}

.row-edit-modal[data-tools-modal='1'] .tools-modal-dialog {
    width: min(820px, calc(100vw - 2rem));
}

.row-edit-modal[data-tools-modal='1'] .tools-modal-head {
    min-height: 3.25rem;
    padding: 0.9rem 1.5rem;
}

.row-edit-modal[data-tools-modal='1'].tools-modal .tools-modal-body {
    padding: 1.5rem;
    overflow: hidden;
}

.tools-config-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 0.6rem;
    align-items: end;
}

.tools-config-form {
    display: grid;
    gap: 0.6rem;
    align-content: start;
    overflow: visible;
    padding: 0.75rem;
}

.tools-config-list {
    display: grid;
    gap: 0.6rem;
    min-height: 0;
    max-height: min(18rem, 40vh);
    overflow: auto;
    padding: 0.75rem;
}

.tools-config-row {
    border: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
    padding: 0.5rem;
    font-size: 0.76rem;
}

.tools-config-row span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tools-empty {
    border: 1px dashed var(--hairline);
    border-radius: var(--radius-sm);
    padding: 0.8rem;
    color: #647084;
    font-size: 0.78rem;
    text-align: center;
}

body.is-authenticated .ops-column-trigger-label,
body.is-authenticated .ops-column-option,
body.is-authenticated .row-edit-field-label,
body.is-authenticated .row-edit-modal-title,
body.is-authenticated .col-filter-sort,
body.is-authenticated .col-filter-checkall span,
body.is-authenticated .col-filter-search::placeholder,
body.is-authenticated .ops-search-input::placeholder,
body.is-authenticated .ops-card-title,
body.is-authenticated .ops-metric-card h3 {
    text-transform: uppercase;
}

/* Credentials and 2FA tokens are case-sensitive values.  The Operations
   editor's general typography uses uppercase, so explicitly exempt both the
   text inputs and the searchable dropdown values for these fields. */
body.is-authenticated .ops-row-edit-form .row-edit-field[data-col-key="gmail"] .ops-column-trigger-label,
body.is-authenticated .ops-row-edit-form .row-edit-field[data-col-key="gmail"] .ops-column-option,
body.is-authenticated .ops-row-edit-form .row-edit-field[data-col-key="gpassword"] .row-edit-control,
body.is-authenticated .ops-row-edit-form .row-edit-field[data-col-key="g2fa"] .row-edit-control,
body.is-authenticated .ops-row-edit-form .row-edit-field[data-col-key="smail"] .ops-column-trigger-label,
body.is-authenticated .ops-row-edit-form .row-edit-field[data-col-key="smail"] .ops-column-option,
body.is-authenticated .ops-row-edit-form .row-edit-field[data-col-key="spassword"] .row-edit-control,
body.is-authenticated .ops-row-edit-form .row-edit-field[data-col-key="s2fa"] .row-edit-control {
    text-transform: none;
}

.cfe-upload-dialog {
    width: 90vw;
    max-width: 90vw;
    height: 90vh;
    max-height: 90vh;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
}

.cfe-upload-body,
.cfe-mapping-panel,
.cfe-mapping-section {
    display: grid;
    gap: 1rem;
}

.cfe-upload-body {
    overflow: auto;
}

.cfe-upload-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.cfe-field {
    display: grid;
    gap: 0.4rem;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.cfe-field input,
.cfe-field select,
.cfe-option-pair select {
    min-height: 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: 0.35rem;
    background: var(--surface);
    color: var(--text-color);
    padding: 0.45rem 0.6rem;
}

.cfe-source-input {
    border: 1.5px solid var(--border-color);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--surface) 70%, var(--border-color));
}

.cfe-field select[multiple] {
    min-height: 8rem;
}

.cfe-dropzone {
    min-height: 7.5rem;
    border: 1.5px dashed var(--border-color);
    border-radius: 0.55rem;
    background: color-mix(in srgb, var(--surface) 88%, var(--accent-color, #3b82f6));
    color: var(--text-color);
    display: grid;
    gap: 0.35rem;
    place-items: center;
    padding: 1.25rem;
    text-align: center;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.cfe-dropzone input {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    opacity: 0;
    pointer-events: none;
}

.cfe-dropzone strong {
    font-size: 0.95rem;
}

.cfe-dropzone small {
    color: var(--text-muted);
    font-size: 0.72rem;
}

.cfe-dropzone.is-dragover {
    border-color: var(--accent-color, #3b82f6);
    background: color-mix(in srgb, var(--surface) 76%, var(--accent-color, #3b82f6));
    transform: translateY(-1px);
}

.cfe-file-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    min-height: 1.5rem;
    color: var(--text-muted);
    font-size: 0.72rem;
    text-transform: none;
}

.cfe-file-list span {
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text-color);
    padding: 0.2rem 0.5rem;
}

.cfe-upload-actions,
.cfe-mapping-heading,
.cfe-option-pair {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

#cfe-upload-summary {
    color: var(--text-muted);
    font-weight: 700;
}

#cfe-upload-summary.is-error {
    color: var(--danger, #dc2626);
}

#cfe-upload-summary.is-success {
    color: var(--success, #16a34a);
}

.cfe-mapping-heading {
    justify-content: space-between;
}

.cfe-option-pair {
    margin-top: 0.5rem;
}

.cfe-option-pair select {
    flex: 1;
}

@media (max-width: 980px) {
    .login-wrap {
        grid-template-columns: 1fr;
    }

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

    .ops-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .ops-controls {
        grid-template-columns: 1fr;
    }

    .ops-search-controls {
        grid-template-columns: 1fr;
    }

    .ops-btn-group { flex-wrap: wrap; justify-content: flex-start; }
    .financial-ledger-shell { height: auto; min-height: calc(100vh - 4rem); }
    .financial-ledger-action-groups { flex-wrap: wrap; justify-content: flex-start; min-width: 0; }
    .financial-ledger-action-group { justify-self: start; }
    .table-pagination-center { display: none; }
    .ops-bottom { min-height: 55vh; }

    .tools-grid,
    .tools-config-row {
        grid-template-columns: 1fr;
    }

    .tools-panel-head,
    .tools-output-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .tools-update-wrap {
        grid-template-columns: 1fr;
    }

    .cfe-upload-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .container {
        width: min(1200px, calc(100% - 24px));
    }

    .ops-cards { grid-template-columns: 1fr; }
    .financial-ledger-action-groups { align-items: flex-start; flex-direction: column; }
    .financial-ledger-action-group {
        width: 100%;
        padding: 0.35rem 0 0;
        border-top: 1px solid var(--hairline);
        border-left: 0;
    }
    .financial-ledger-action-group:first-child { padding-top: 0; border-top: 0; }
    .row-edit-modal-dialog,
    .ddm-modal-dialog,
    .row-edit-modal[data-columns-modal='1'] .row-edit-modal-dialog,
    .dm-config-modal-dialog {
        width: calc(100vw - 1rem);
        max-height: 80vh;
    }

    .dm-config-list { grid-template-columns: 1fr; }

    .signature-card,
    .login-form {
        padding: 24px;
    }

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