:root {
    --primary: #181d26;
    --primary-active: #0d1218;
    --canvas: #ffffff;
    --body: #333840;
    --hairline: #dddddd;
    --surface-soft: #f8fafc;
    --signature-coral: #aa2d00;
    --on-dark: #ffffff;
    --section: 96px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 12px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Inter", system-ui, sans-serif;
    color: var(--body);
    background: var(--canvas);
}

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;
    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;
}

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;
    cursor: pointer;
    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: #8f2600;
    border: 1px solid #f2c4b8;
}

.ops-toast {
    position: fixed;
    top: 0.6rem;
    right: 1rem;
    z-index: 5000;
    min-width: 260px;
    max-width: min(520px, calc(100vw - 2rem));
    border: 1px solid #c7d2e0;
    border-radius: 8px;
    background: #f8fafc;
    color: #1f2937;
    padding: 0.55rem 2rem 0.55rem 0.7rem;
    font-size: 12px;
    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;
}

.ops-toast-close {
    position: absolute;
    top: 50%;
    right: 0.45rem;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.72;
    padding: 0.1rem;
}

.ops-toast-close:hover {
    opacity: 1;
}

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

.ops-toast.is-error {
    border-color: #efc7c7;
    background: #fff7f7;
    color: #9f1239;
}

.ops-toast.is-success {
    border-color: #cbe7d3;
    background: #f4fbf6;
    color: #166534;
}

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

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

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

.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 {
    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;
}

.operations-shell {
    display: grid;
    grid-template-rows: 20% 80%;
    gap: 0.75rem;
    height: 100%;
}

.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-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: 180px 82px 1fr;
    align-items: center;
    gap: 0.5rem;
    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: 180px;
    z-index: 2;
}

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

.feed-log-success {
    background: #e8f7ec;
    color: #0a7a1d;
}

.feed-log-warning {
    background: #fff4dd;
    color: #8f5a00;
}

.feed-log-error {
    background: #fdeceb;
    color: #b42318;
}

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

.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);
}

.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: #16a34a;
}

.cj-worker-status.is-syncing .cj-worker-dot,
.cj-worker-status.is-working .cj-worker-dot {
    background: #d97706;
    animation: cj-worker-pulse 0.9s ease-in-out infinite alternate;
}

.cj-worker-status.is-error .cj-worker-dot {
    background: #dc2626;
}

@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;
}

.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;
    cursor: pointer;
}

.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;
    gap: var(--financial-ledger-gap);
    min-height: 0;
}

.financial-ledger-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--financial-ledger-gap);
    min-height: 0;
}

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

.financial-ledger-card {
    border: 1px solid var(--hairline);
    border-radius: var(--radius-md);
    background: #ffffff;
    padding: 0.5rem;
    display: grid;
    gap: 0.2rem;
    align-content: center;
}

.financial-ledger-card h3 {
    margin: 0;
    font-size: 0.72rem;
    color: #596170;
    font-weight: 500;
}

.financial-ledger-card strong {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.2;
    color: var(--primary);
    font-weight: 600;
}

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

.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 {
    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;
}

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

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

.invoice-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 {
    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;
    cursor: pointer;
}

.product-feed-manager-generate-btn:disabled,
.product-feed-manager-refresh-btn:disabled {
    cursor: wait;
    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: 7.2rem;
    height: 1.8rem;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
    padding: 0 0.45rem;
    font: inherit;
    color: var(--text);
    background: #ffffff;
}

.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: #dcfce7;
    color: #166534;
}

.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;
    cursor: pointer;
}

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

.product-feed-manager-icon-only:disabled {
    cursor: not-allowed;
    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;
    cursor: pointer;
    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.product-feed-manager-modal.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
}

.row-edit-modal.product-feed-manager-upload-modal.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
}

.row-edit-modal.product-feed-manager-modal,
.row-edit-modal.product-feed-manager-upload-modal {
    top: 0;
}

.row-edit-modal.product-feed-manager-modal .product-feed-manager-modal-dialog,
.row-edit-modal.product-feed-manager-upload-modal .product-feed-manager-upload-dialog {
    position: relative;
    inset: auto;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    transform: none;
    width: 90vw;
    height: 90vh;
    max-width: none;
    max-height: none;
    padding: 1rem;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 0.85rem;
    overflow: hidden;
}

.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 {
    height: auto;
    min-height: 3.25rem;
    padding: 0.65rem 0.75rem;
    align-items: flex-start;
    gap: 0.75rem;
    border-bottom: 1px solid var(--hairline);
}

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

.product-feed-manager-modal-actions {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.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-media-select {
    height: 2rem;
    min-width: 150px;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
    padding: 0 0.45rem;
    font: inherit;
    background: #ffffff;
    color: var(--text);
}

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

.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;
    cursor: text;
}

.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: minmax(0, 50%) minmax(0, 50%);
    gap: 0.75rem;
    overflow: hidden;
}

.product-feed-manager-upload-top {
    min-height: 50%;
    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;
}

.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: #047857;
}

.cj-api-status.is-warning {
    color: #b45309;
}

.cj-api-status.is-error {
    color: #b42318;
}

.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;
    cursor: pointer;
}

.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;
    cursor: pointer;
    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;
    cursor: not-allowed;
}

.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);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 800;
}

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

.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: #047857;
}

.cj-card-modal-status.is-warning {
    color: #b45309;
}

.cj-card-modal-status.is-error {
    color: #b42318;
}

.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: #dc2626;
}

.cj-api-table .col-actions [data-api-delete]:hover {
    color: #b91c1c;
    background: #fff1f2;
}

.cj-clickable-card {
    cursor: pointer;
    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-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: #2ea043;
}

.product-explorer-guide-dot.is-wanted {
    background: #16a34a;
}

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

.product-explorer-guide-dot.is-unwanted {
    background: #e11d48;
}

.product-explorer-guide-dot.is-pending {
    background: #f59e0b;
}

.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, #2ea043);
    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 {
    cursor: pointer;
}

.product-explorer-batch-row.is-complete td {
    background: #e8f7ec;
}

.product-explorer-batch-row.is-complete .batch-count {
    color: #15803d;
}

.product-explorer-batch-row.is-partial-progress td {
    background: #fff7df;
}

.product-explorer-batch-row.is-partial-progress .batch-count {
    color: #a16207;
}

.product-explorer-batch-row.is-empty-progress td {
    background: #ffe8e8;
}

.product-explorer-batch-row.is-empty-progress .batch-count {
    color: #b42318;
}

.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-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 76px;
    height: 1.35rem;
    border-radius: 999px;
    padding: 0 0.5rem;
    font-size: 0.68rem;
    font-weight: 700;
}

.product-explorer-status-pill.is-pending {
    background: #fff4dd;
    color: #a16207;
}

.product-explorer-status-pill.is-reviewed {
    background: #e8f7ec;
    color: #15803d;
}

.product-explorer-status-pill.is-wanted {
    background: #e8f7ec;
    color: #15803d;
}

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

.product-explorer-status-pill.is-unwanted {
    background: #ffe4ec;
    color: #be123c;
}

.row-edit-modal.product-explorer-modal {
    top: 0;
}

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

.row-edit-modal.product-explorer-modal .product-explorer-modal-dialog {
    position: relative;
    inset: auto;
    transform: none;
    width: 90vw;
    height: 90vh;
    max-width: none;
    max-height: none;
    padding: 1rem;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 0.85rem;
    overflow: hidden;
}

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

.product-explorer-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-width: 0;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--hairline);
}

.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 {
    margin: 0;
    color: var(--primary);
    font-size: 1rem;
    line-height: 1.2;
    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-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 {
    display: inline-flex;
    align-items: center;
    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;
}

.product-explorer-modal-btn {
    height: 2rem;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
    background: #ffffff;
    color: #263244;
    padding: 0 0.65rem;
    font-size: 0.72rem;
    font-weight: 800;
    cursor: pointer;
}

.product-explorer-modal-btn.is-wanted {
    background: #e8f7ec;
    color: #15803d;
}

.product-explorer-modal-btn.is-unwanted {
    background: #ffe4ec;
    color: #be123c;
}

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

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

.product-explorer-image-grid {
    min-height: 0;
    height: 100%;
    overflow: auto;
    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: flex;
    flex-direction: column;
}

.product-explorer-image-section[open] {
    flex: 1 1 0;
}

.product-explorer-image-section summary {
    height: 2rem;
    padding: 0 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    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 {
    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: auto;
    min-height: 0;
}

.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;
    cursor: pointer;
}

.product-explorer-image-tile.is-selected {
    border-color: #d92d20;
}

.product-explorer-image-tile.is-variant-used {
    border-color: #d92d20;
}

.product-explorer-image-tile.is-system-removed {
    border-color: #d92d20;
    border-style: dashed;
}

.product-explorer-image-tile.is-selected.is-variant-used {
    box-shadow: 0 0 0 2px rgba(217, 45, 32, 0.25);
}

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

.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);
    cursor: grab;
}

.product-explorer-image-label:active {
    cursor: grabbing;
}

.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;
    cursor: pointer;
    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: 0.75rem;
    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;
    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;
    cursor: text;
    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;
    cursor: col-resize;
    background: linear-gradient(
        90deg,
        transparent 0,
        transparent 4px,
        #d5dce6 4px,
        #d5dce6 6px,
        transparent 6px,
        transparent 100%
    );
}

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

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

.upload-media-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 1fr;
    gap: 0.4rem;
    min-height: 50%;
    overflow: hidden;
}

.upload-media-controls {
    display: grid;
    grid-template-columns: auto auto minmax(180px, 1fr) minmax(180px, 1fr) auto auto;
    gap: 0.5rem;
    align-items: center;
    min-width: 0;
}

.upload-media-picker {
    min-width: 0;
}

.upload-media-picker .ops-column-trigger {
    height: 2rem;
}

.upload-media-progress {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.5rem;
}

.upload-media-progress-track {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: #dde2ea;
    overflow: hidden;
}

.upload-media-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #1f6feb, #2ea043);
    transition: width 180ms ease;
}

.upload-media-progress-value {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary);
}

.upload-media-log .feed-log-list {
    height: 100%;
}

.upload-media-top .feed-log-list {
    min-height: 0;
    height: 100%;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-md);
    background: #ffffff;
    padding: 0.45rem 0.5rem;
}

.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;
    cursor: pointer;
}

.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;
}

.dm-page-message {
    position: fixed;
    top: 4.4rem;
    left: 50%;
    z-index: 60;
    transform: translateX(-50%);
    min-width: min(32rem, calc(100vw - 2rem));
    max-width: calc(100vw - 2rem);
    border: 1px solid #8fd19e;
    border-radius: var(--radius-sm);
    background: #f0fff4;
    color: #1f6b3a;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.35;
    padding: 0.55rem 0.75rem;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.12);
    opacity: 0;
    pointer-events: none;
    transition: opacity 140ms ease;
}

.dm-page-message.is-visible {
    opacity: 1;
}

.dm-page-message.is-error {
    border-color: #f0a29a;
    background: #fff5f5;
    color: #b42318;
}

.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-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: #2ea043;
    background: #f0fff4;
    color: #1f6b3a;
}

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

.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-progress-track {
    height: 10px;
    border-radius: 999px;
    background: #dde2ea;
    overflow: hidden;
}

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

.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;
    cursor: pointer;
    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: #d92d20;
    background: #fff5f5;
    color: #b42318;
}

.dm-two-row-buttons button.is-complete {
    --dm-task-progress: 100%;
    border-color: #2ea043;
    background:
        linear-gradient(90deg, rgba(46, 160, 67, 0.16) 0 var(--dm-task-progress), transparent var(--dm-task-progress) 100%),
        #ffffff;
    color: #1f6b3a;
}

.dm-two-row-buttons button.is-available:not(:disabled) {
    border-color: #2ea043;
    background:
        linear-gradient(90deg, rgba(46, 160, 67, 0.14) 0 var(--dm-task-progress), transparent var(--dm-task-progress) 100%),
        #f0fff4;
    color: #1f6b3a;
}

.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: #d92d20;
    color: #b42318;
    background:
        linear-gradient(90deg, rgba(217, 45, 32, 0.16) 0 var(--dm-task-progress), transparent var(--dm-task-progress) 100%),
        #ffffff;
}

.dm-two-row-buttons button.is-danger {
    border-color: #d92d20;
    color: #b42318;
    background: #fff5f5;
}

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

.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;
    cursor: pointer;
}

.dm-theme-btn.has-content {
    border-color: #2ea043;
    background: #f0fff4;
    color: #1f6b3a;
}

.dm-modal-message {
    min-height: 1.1rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #1f6b3a;
}

.dm-modal-message.is-error {
    color: #b42318;
}

.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: 1fr 1fr auto;
    gap: 0.5rem;
    min-height: 0;
}

.ops-cards {
    grid-row: 1 / span 2;
    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;
    gap: 0.25rem;
}

.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: #0a7a1d;
}

.ops-delta-negative {
    color: #b42318;
}

.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-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);
    cursor: pointer;
}

.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 {
    height: 28px;
    border: none;
    background: transparent;
    border-radius: 6px;
    text-align: left;
    padding: 0 8px;
    font-size: 12px;
    color: var(--body);
    cursor: pointer;
}

.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;
    cursor: pointer;
    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 {
    opacity: 1;
}

.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;
    cursor: not-allowed;
}

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

.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%;
    overflow-x: auto;
    overflow-y: scroll;
}

.ops-table {
    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.5rem 0.6rem;
    font-size: 0.78rem;
    background: var(--canvas);
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.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;
    vertical-align: top;
    padding-top: 0.9rem;
}

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 {
    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: 2.25rem;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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 {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    min-height: 20px;
}

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

.row-activity-avatar {
    width: 20px;
    height: 20px;
    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: -5px;
}

.row-activity-avatar:first-child {
    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-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;
    cursor: not-allowed;
}

.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;
    cursor: pointer;
    padding: 0;
    color: #41454d;
}

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

.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;
    cursor: pointer;
}

.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;
    cursor: ns-resize;
}

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

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

.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;
    cursor: pointer;
}

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;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    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.stop-btn,
.icon-btn.queue-btn {
    color: var(--primary);
}

.row-edit-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2600;
    display: none;
}

.row-edit-modal.is-open {
    display: block;
}

.row-edit-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(13, 17, 23, 0.45);
}

.row-edit-modal-dialog {
    position: absolute;
    top: 10%;
    left: 10%;
    right: 10%;
    bottom: 10%;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.16);
    display: grid;
    grid-template-rows: auto 1fr;
    overflow: hidden;
}

.row-edit-modal-head {
    height: 2.5rem;
    border-bottom: 1px solid var(--hairline);
    background: var(--surface-soft);
    padding: 0 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.row-edit-modal-title {
    font-size: 0.82rem;
    color: #2f3440;
}

.row-edit-modal-close {
    width: 1.7rem;
    height: 1.7rem;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
    background: #ffffff;
    color: #445065;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
}

.row-edit-modal-body {
    min-height: 0;
}

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

.columns-modal-dialog {
    left: 30%;
    right: 30%;
    top: 14%;
    bottom: 14%;
}

.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: calc(100vh - var(--app-header-offset, 56px) - 2rem);
    grid-template-rows: auto auto;
    overflow: visible;
}

.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: min(980px, calc(100vw - 2rem));
}

.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: 10%;
    bottom: 10%;
    left: 10%;
    right: 10%;
    transform: none;
    width: auto;
    max-height: none;
    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-ddm-modal='1'] .row-edit-modal-head,
.row-edit-modal[data-feed-generator-modal='1'] .row-edit-modal-head,
.row-edit-modal[data-financial-ledger-modal='1'] .row-edit-modal-head,
.row-edit-modal[data-proxies-qr-modal='1'] .row-edit-modal-head,
.row-edit-modal[data-domain-modal='1'] .row-edit-modal-head,
.row-edit-modal[data-documents-modal='1'] .row-edit-modal-head,
.row-edit-modal[data-payment-profiles-modal='1'] .row-edit-modal-head,
.row-edit-modal[data-gpt-prompt-modal='1'] .row-edit-modal-head,
.row-edit-modal[data-documents-ledger-modal='1'] .row-edit-modal-head,
.row-edit-modal[data-gmails-modal='1'] .row-edit-modal-head,
.row-edit-modal[data-columns-modal='1'] .row-edit-modal-head,
.row-edit-modal[data-feed-share-modal='1'] .row-edit-modal-head,
.row-edit-modal[data-confirm-modal='1'] .row-edit-modal-head,
.row-edit-modal[data-generic-edit-modal='1'] .row-edit-modal-head {
    border: 1px solid var(--hairline);
    border-bottom: 0;
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
}

.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-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-payment-profiles-modal='1'] .row-edit-modal-body,
.row-edit-modal[data-gpt-prompt-modal='1'] .row-edit-modal-body,
.row-edit-modal[data-documents-ledger-modal='1'] .row-edit-modal-body,
.row-edit-modal[data-gmails-modal='1'] .row-edit-modal-body,
.row-edit-modal[data-columns-modal='1'] .row-edit-modal-body,
.row-edit-modal[data-feed-share-modal='1'] .row-edit-modal-body,
.row-edit-modal[data-confirm-modal='1'] .row-edit-modal-body,
.row-edit-modal[data-generic-edit-modal='1'] .row-edit-modal-body {
    border: 1px solid var(--hairline);
    border-top: 0;
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
    background: #ffffff;
}

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

.row-edit-modal[data-feed-share-modal='1'] .row-edit-modal-body {
    padding: 0.85rem;
    display: grid;
    gap: 0.75rem;
    overflow: auto;
}

.feed-share-email-list {
    display: grid;
    gap: 0.45rem;
}

.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;
    cursor: pointer;
}

.row-edit-modal[data-generic-edit-modal='1'] .row-edit-modal-body {
    padding: 0.65rem;
    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-today-btn {
    height: 34px;
    min-width: 36px;
    border: 1px solid var(--hairline);
    border-radius: 6px;
    background: #ffffff;
    cursor: pointer;
}

.gmails-modal-actions {
    display: flex;
    justify-content: flex-end;
}

.gmails-save-btn {
    height: 40px;
    min-width: 110px;
    border: 1px solid #181d26;
    border-radius: 12px;
    background: #181d26;
    color: #ffffff;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.4;
    padding: 0 16px;
}

.gmails-save-btn:hover,
.gmails-save-btn:focus-visible {
    background: #181d26;
    color: #ffffff;
}

.gmails-save-btn:active {
    background: #0d1218;
    border-color: #0d1218;
}

.gmails-save-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.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;
    cursor: grab;
}

.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;
    cursor: pointer;
    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;
}

.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-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[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;
    cursor: not-allowed;
    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;
}

.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;
    cursor: pointer;
}

.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;
    cursor: grabbing;
}

.columns-modal-dialog .row-edit-modal-body {
    padding: 0.85rem;
    overflow: auto;
}

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

.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-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-payment-profiles-modal='1'] .row-edit-modal-body,
.row-edit-modal[data-gpt-prompt-modal='1'] .row-edit-modal-body {
    padding: 0.65rem;
    overflow: visible;
}

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

.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: visible;
}

.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-modal='1'] .documents-modal-form,
.row-edit-modal[data-payment-profiles-modal='1'] .payment-profiles-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;
}

.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;
}

.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-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-modal='1'] .row-edit-field,
.row-edit-modal[data-payment-profiles-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;
}

.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-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-modal='1'] .row-edit-field-label,
.row-edit-modal[data-payment-profiles-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: #d92d20;
    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;
    cursor: pointer;
}

.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-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: 360px;
}

.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-payment-profiles-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: 180px;
    z-index: 1400;
}

.col-resize-handle {
    position: absolute;
    top: 0;
    right: -3px;
    width: 8px;
    height: 100%;
    cursor: col-resize;
    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,
.tools-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-width: 0;
}

.tools-panel-head h2,
.tools-modal-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,
.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;
    cursor: pointer;
}

.tools-btn.is-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

.tools-btn:disabled,
.tools-icon-btn:disabled,
.tools-output-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.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, #2ea043);
    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: #e8f7ec;
    border-color: #9fd8ad;
    color: #15803d;
}

.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;
}

.row-edit-modal.tools-modal.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.tools-modal-dialog {
    position: relative;
    inset: auto;
    transform: none;
    width: min(820px, 94vw);
    max-height: 86vh;
    overflow: auto;
    display: grid;
    align-content: start;
    grid-template-rows: auto auto minmax(0, 1fr);
    gap: 0.85rem;
    padding: 1rem;
}

.tools-modal-head {
    padding-bottom: 0.65rem;
    border-bottom: 1px solid var(--hairline);
}

.tools-config-form,
.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 {
    order: 1;
}

.tools-config-list {
    order: 2;
}

.tools-config-form label {
    display: grid;
    gap: 0.25rem;
    color: #647084;
    font-size: 0.68rem;
    font-weight: 800;
}

.tools-config-form input {
    height: 2rem;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
    padding: 0 0.55rem;
    font: inherit;
}

.tools-config-list {
    display: grid;
    gap: 0.35rem;
}

.tools-config-row {
    border: 1px solid var(--hairline);
    border-radius: var(--radius-sm);
    padding: 0.45rem;
    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;
}

@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(4, minmax(0, 1fr));
    }

    .ops-controls {
        grid-template-columns: 1fr;
    }

    .ops-search-controls {
        grid-template-columns: 1fr;
    }

    .tools-grid,
    .tools-config-form,
    .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;
    }
}

@media (max-width: 600px) {
    .container {
        width: min(1200px, calc(100% - 24px));
    }

    .signature-card,
    .login-form {
        padding: 24px;
    }

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