.ws-brand-logo {
    display: inline-flex;
    align-items: center;
    height: 100%;
}

.ws-brand-logo img {
    display: block;
    height: 3rem;
    width: auto;
    max-height: 100%;
}

.ws-brand-logo--dark {
    box-sizing: border-box;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.94);
    padding: 0.3rem 0.7rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.14);
}

.ws-digest-status {
    display: grid;
    gap: 0.5rem;
}

.ws-digest-status-row {
    color: #111827;
    font-size: 0.875rem;
}

.dark .ws-digest-status-row {
    color: #e5e7eb;
}

.ws-digest-status-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    padding: 0.15rem 0.5rem;
    font-weight: 600;
}

.ws-digest-status-badge--neutral {
    background: #e5e7eb;
    color: #374151;
}

.ws-digest-status-badge--danger {
    background: #fee2e2;
    color: #991b1b;
}

.ws-digest-status-badge--warning {
    background: #fef3c7;
    color: #92400e;
}

.ws-digest-status-badge--success {
    background: #dcfce7;
    color: #166534;
}

.ws-digest-status-badge--info {
    background: #dbeafe;
    color: #1d4ed8;
}

.fi-in-text-item .ws-inline-callout {
    border-radius: 0.75rem;
    border: 1px solid;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

.fi-in-text-item .ws-inline-callout--warning {
    border-color: #fcd34d;
    background: #fffbeb;
    color: #92400e;
}

.dark .fi-in-text-item .ws-inline-callout--warning {
    border-color: rgba(245, 158, 11, 0.32);
    background: rgba(245, 158, 11, 0.12);
    color: #fef3c7;
}

.fi-in-text-item .ws-inline-callout--danger {
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.dark .fi-in-text-item .ws-inline-callout--danger {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.1);
    color: #fecaca;
}

.ws-source-field-reference-summary {
    cursor: pointer;
}

.ws-source-field-reference-table-wrap {
    padding: 0.75rem;
}

.ws-source-field-reference-table {
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-collapse: separate;
    border-spacing: 0;
}

.ws-source-field-reference-table__head,
.ws-source-field-reference-table__cell {
    padding: 0.625rem 0.75rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}

.ws-source-field-reference-table__head {
    border-bottom-color: rgba(148, 163, 184, 0.35);
}

.ws-source-field-reference-table__head:not(:last-child),
.ws-source-field-reference-table__cell:not(:last-child) {
    border-right: 1px solid rgba(148, 163, 184, 0.22);
}

.dark .ws-source-field-reference-table {
    border-color: rgba(255, 255, 255, 0.12);
}

.dark .ws-source-field-reference-table__head,
.dark .ws-source-field-reference-table__cell {
    border-color: rgba(255, 255, 255, 0.1);
}

/* Filament's simple-page auth header applies tighter logo sizing than the main panel topbar.
   These three overrides stay explicit until the logo API lets us size auth-page logos separately.
   The dark badge padding also has to override Filament's constrained auth-header logo box. */
.fi-simple-header .fi-logo,
.fi-simple-header .fi-logo-light,
.fi-simple-header .fi-logo-dark {
    height: 4.2rem !important;
}

.fi-simple-header .fi-logo .ws-brand-logo,
.fi-simple-header .fi-logo-light .ws-brand-logo,
.fi-simple-header .fi-logo-dark .ws-brand-logo {
    height: 100% !important;
}

/* Dark logo variant needs explicit inset padding because Filament's dark-logo wrapper collapses the intended inner spacing. */
.dark .fi-simple-header .ws-brand-logo--dark {
    padding: 0.38rem 0.85rem !important;
}

.ws-locale-switcher-shell {
    margin-inline: auto;
}

.ws-locale-switcher {
    display: inline-flex;
    width: auto;
    max-width: 100%;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    white-space: nowrap;
}

.ws-locale-switcher-form {
    display: inline-flex;
    width: auto;
    flex: 0 0 auto;
    margin: 0;
}

.ws-locale-switcher-button {
    display: inline-flex;
    width: auto;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    line-height: 1;
}

.ws-locale-switcher .ws-locale-switcher-button.ws-locale-switcher-button--active {
    color: #d97706;
}

.dark .ws-locale-switcher .ws-locale-switcher-button.ws-locale-switcher-button--active {
    color: #fbbf24;
}

.ws-turnstile-field {
    width: 100%;
}

.ws-turnstile-field iframe {
    max-width: 100%;
}

.ws-source-field-refresh-status {
    display: grid;
    gap: 0.35rem;
    border-radius: 0.85rem;
    padding: 0.85rem 1rem;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1e3a8a;
}

.ws-source-field-refresh-status--success {
    border-color: #86efac;
    background: #f0fdf4;
    color: #166534;
}

.ws-source-field-refresh-status--danger {
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.ws-topbar-status {
    margin-inline-end: 0.75rem;
}

.ws-topbar-status__badge {
    border-radius: 9999px;
}

.ws-topbar-status__badge--impersonating {
    border: 1px solid #fcd34d;
    background: #fffbeb;
    color: #78350f;
}

.ws-topbar-status__action {
    border-radius: 0.375rem;
    background: #78350f;
}

.ws-topbar-status__badge--demo {
    margin-inline-start: 0.25rem;
    border: 1px solid #f59e0b;
    border-radius: 0.5rem;
    color: #f59e0b;
    padding: 0.3rem 0.55rem;
    line-height: 1;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.dark .ws-topbar-status__badge--impersonating {
    border-color: rgba(245, 158, 11, 0.32);
    background: rgba(245, 158, 11, 0.12);
    color: #fef3c7;
}

.ws-failed-jobs-page {
    display: grid;
    gap: 1rem;
}

.ws-failed-jobs-page__card,
.ws-failed-jobs-page__empty {
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.ws-failed-jobs-page__card {
    padding: 1rem;
    min-width: 0;
    overflow: hidden;
}

.ws-failed-jobs-page__empty {
    padding: 1.25rem;
    color: #475569;
}

.ws-failed-jobs-page__id {
    overflow-wrap: anywhere;
    color: #111827;
}

.ws-failed-jobs-page__meta {
    color: #64748b;
}

.ws-failed-jobs-page__details {
    border: 1px solid #e5e7eb;
    border-radius: 0.625rem;
    background: #f8fafc;
    padding: 0.875rem;
    min-width: 0;
    overflow: hidden;
}

.ws-failed-jobs-page__summary {
    color: #334155;
}

.ws-failed-jobs-page__exception {
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    border-radius: 0.5rem;
    background: #0f172a;
    color: #e2e8f0;
    line-height: 1.55;
    max-height: 24rem;
    overflow: auto;
    overscroll-behavior: contain;
    padding: 0.875rem;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.dark .ws-failed-jobs-page__card,
.dark .ws-failed-jobs-page__empty {
    border-color: rgba(148, 163, 184, 0.18);
    background: rgba(17, 24, 39, 0.82);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.24);
}

.dark .ws-failed-jobs-page__empty,
.dark .ws-failed-jobs-page__meta {
    color: #cbd5e1;
}

.dark .ws-failed-jobs-page__id {
    color: #f8fafc;
}

.dark .ws-failed-jobs-page__details {
    border-color: rgba(148, 163, 184, 0.16);
    background: rgba(15, 23, 42, 0.78);
}

.dark .ws-failed-jobs-page__summary {
    color: #e2e8f0;
}

.dark .ws-topbar-status__action {
    background: #92400e;
}

.ws-failed-jobs-page__card {
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    min-width: 0;
    overflow: hidden;
}

.ws-failed-jobs-page__id {
    color: #111827;
}

.ws-failed-jobs-page__meta {
    color: #4b5563;
}

.ws-failed-jobs-page__details {
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    background: #f8fafc;
    min-width: 0;
    overflow: hidden;
}

.ws-failed-jobs-page__summary {
    color: #374151;
}

.ws-failed-jobs-page__exception {
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    color: #1f2937;
    max-height: 24rem;
    overflow: auto;
    overscroll-behavior: contain;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.ws-failed-jobs-page__empty {
    border: 1px dashed #d1d5db;
    border-radius: 1rem;
    background: #ffffff;
    color: #4b5563;
}

.dark .ws-failed-jobs-page__card {
    border-color: rgba(255, 255, 255, 0.1);
    background: #111827;
}

.dark .ws-failed-jobs-page__id {
    color: #f9fafb;
}

.dark .ws-failed-jobs-page__meta,
.dark .ws-failed-jobs-page__summary {
    color: #d1d5db;
}

.dark .ws-failed-jobs-page__details {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.dark .ws-failed-jobs-page__exception {
    color: #e5e7eb;
}

.dark .ws-failed-jobs-page__empty {
    border-color: rgba(255, 255, 255, 0.14);
    background: #111827;
    color: #d1d5db;
}

.ws-source-field-refresh-status__title {
    font-weight: 700;
}

.ws-source-field-refresh-status__message,
.ws-source-field-refresh-status__summary {
    font-size: 0.875rem;
}

.dark .ws-source-field-refresh-status {
    border-color: #1d4ed8;
    background: rgba(30, 64, 175, 0.16);
    color: #dbeafe;
}

.dark .ws-source-field-refresh-status--success {
    border-color: #15803d;
    background: rgba(21, 128, 61, 0.18);
    color: #dcfce7;
}

.dark .ws-source-field-refresh-status--danger {
    border-color: #b91c1c;
    background: rgba(185, 28, 28, 0.18);
    color: #fee2e2;
}

.mapping-preview-shell {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    --mp-card-bg: #ffffff;
    --mp-card-border: #e5e7eb;
    --mp-soft-bg: #f8fafc;
    --mp-soft-bg-2: #ffffff;
    --mp-text: #0f172a;
    --mp-muted: #64748b;
    --mp-code-bg: #0f172a;
    --mp-code-text: #e2e8f0;
    --mp-status-border: #bfdbfe;
    --mp-status-bg: linear-gradient(180deg, #eff6ff 0%, #f8fbff 100%);
    --mp-status-text: #1d4ed8;
}

.dark .mapping-preview-shell {
    --mp-card-bg: #111827;
    --mp-card-border: #374151;
    --mp-soft-bg: #1f2937;
    --mp-soft-bg-2: #111827;
    --mp-text: #f3f4f6;
    --mp-muted: #9ca3af;
    --mp-code-bg: #020617;
    --mp-code-text: #e5e7eb;
    --mp-status-border: #1d4ed8;
    --mp-status-bg: linear-gradient(180deg, rgba(30, 41, 59, 0.96) 0%, rgba(15, 23, 42, 0.98) 100%);
    --mp-status-text: #bfdbfe;
}

.mapping-preview-card {
    border: 1px solid var(--mp-card-border);
    border-radius: 1rem;
    background: var(--mp-card-bg);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.mapping-preview-toolbar {
    margin-top: 1.5rem;
    padding: 1rem 1.125rem;
}

.mapping-preview-toolbar-header {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.mapping-preview-toolbar-help {
    margin-top: 0.85rem;
    font-size: 0.875rem;
    color: var(--mp-muted);
}

.mapping-preview-status {
    padding: 1rem 1.125rem;
    border: 1px solid var(--mp-status-border);
    border-radius: 1rem;
    background: var(--mp-status-bg);
    color: var(--mp-status-text);
}

.mapping-preview-stat-grid {
    display: grid;
    gap: 0.875rem;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}

.mapping-preview-stat {
    border: 1px solid var(--mp-card-border);
    border-radius: 0.85rem;
    background: var(--mp-soft-bg);
    padding: 0.875rem 1rem;
}

.mapping-preview-stat-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--mp-muted);
}

.mapping-preview-stat-value {
    margin-top: 0.45rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--mp-text);
}

.mapping-preview-product {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: minmax(0, 1.7fr) minmax(18rem, 0.95fr);
}

.mapping-preview-product-shell {
    padding: 1.25rem;
}

.mapping-preview-facts {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    margin-top: 1rem;
}

.mapping-preview-fact {
    border: 1px solid var(--mp-card-border);
    border-radius: 0.85rem;
    background: var(--mp-soft-bg);
    padding: 0.85rem 1rem;
}

.mapping-preview-media {
    border: 1px solid var(--mp-card-border);
    border-radius: 1rem;
    background: linear-gradient(180deg, var(--mp-soft-bg) 0%, var(--mp-soft-bg-2) 100%);
    padding: 1rem;
}

.mapping-preview-section {
    padding: 1.25rem;
}

.mapping-preview-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--mp-card-border);
    border-radius: 0.9rem;
    background: var(--mp-card-bg);
    margin-top: 1rem;
}

.mapping-preview-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.mapping-preview-table thead th {
    padding: 0.8rem 0.9rem;
    text-align: left;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    background: var(--mp-soft-bg);
    color: var(--mp-muted);
    border-bottom: 1px solid var(--mp-card-border);
}

.mapping-preview-table tbody td {
    padding: 0.8rem 0.9rem;
    border-bottom: 1px solid var(--mp-card-border);
    vertical-align: top;
    color: var(--mp-text);
}

.mapping-preview-table tbody tr:last-child td {
    border-bottom: 0;
}

.mapping-preview-field {
    font-weight: 600;
    color: var(--mp-text);
    white-space: nowrap;
}

.mapping-preview-code {
    margin-top: 1rem;
    overflow-x: auto;
    border: 1px solid var(--mp-card-border);
    border-radius: 0.9rem;
    background: var(--mp-code-bg);
    color: var(--mp-code-text);
    padding: 1rem;
    font-size: 0.78rem;
    line-height: 1.55;
}

.mapping-preview-details summary {
    cursor: pointer;
    list-style: none;
}

.mapping-preview-empty ul,
.mapping-preview-warning ul {
    list-style: disc;
    padding-left: 1.25rem;
}

@media (max-width: 1024px) {
    .mapping-preview-product {
        grid-template-columns: 1fr;
    }
}

/* Product card overrides kept at the end so they win over older panel rules. */
.ws-product-shell {
    display: grid;
    gap: 1.25rem;
    padding-top: 0.25rem;
}

/* Alpine cloaking must win over Filament's component display styles. */
.ws-product-shell [x-cloak] {
    display: none !important;
}

/* Product card shared primitives that are not part of the refreshed visual layer below. */
.ws-product-card__title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.ws-product-card__title {
    font-size: 1.85rem;
    line-height: 1.15;
    color: #111827;
}

.ws-product-card__eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.24em;
}

.ws-product-card__meta-label {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
}

.ws-product-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ws-product-card__badge {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    padding: 0.45rem 0.8rem;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1;
}

.ws-product-card__badge--change {
    width: fit-content;
}

.ws-product-card__counter {
    border: 1px solid #e5e7eb;
    background: rgba(255, 255, 255, 0.8);
    color: #374151;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.ws-product-card__nav-button,
.ws-product-card__thumb-nav {
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.ws-product-card__thumb-image {
    display: block;
    width: 100%;
    height: 4rem;
    object-fit: cover;
}

.ws-product-card__empty-icon {
    background: #fef3c7;
    color: #b45309;
}

.ws-product-card__empty-title {
    color: #111827;
}

.ws-product-card__empty-text {
    color: #6b7280;
}

.ws-product-card__fact-stack {
    display: grid;
    gap: 0.45rem;
}

.ws-product-card__fact-subtle,
.ws-product-card__section-copy {
    color: #6b7280;
}

.ws-product-card__panel-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111827;
}

.ws-product-card__section-body {
    padding: 1.25rem;
}

.ws-product-card__table {
    width: 100%;
    border-collapse: collapse;
}

.ws-product-card__table-row:last-child .ws-product-card__table-key,
.ws-product-card__table-row:last-child .ws-product-card__table-value {
    border-bottom: 0;
}

.ws-product-card__details-body {
    border-top: 1px solid #e5e7eb;
    background: #f8fafc;
}

.ws-product-card__json {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    line-height: 1.55;
}

.ws-payload-modal {
    display: grid;
    gap: 1.25rem;
}

.ws-payload-modal__summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    gap: 0.75rem;
    margin: 0;
}

.ws-payload-modal__fact {
    min-width: 0;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    padding: 0.85rem 1rem;
}

.ws-payload-modal__fact-label {
    color: #6b7280;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.2;
    text-transform: uppercase;
}

.ws-payload-modal__fact-value {
    margin-top: 0.35rem;
    color: #111827;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.ws-payload-modal__notices {
    display: grid;
    gap: 0.6rem;
}

.ws-payload-modal__notice {
    border-radius: 0.75rem;
    border: 1px solid transparent;
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.ws-payload-modal__notice--info {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1e40af;
}

.ws-payload-modal__notice--warning {
    margin: 1rem 1rem 0;
    border-color: #fde68a;
    background: #fffbeb;
    color: #92400e;
}

.ws-payload-modal__panel {
    overflow: hidden;
    border: 1px solid #d1d5db;
    border-radius: 0.9rem;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.ws-payload-modal__panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid #e5e7eb;
    background: #f8fafc;
    padding: 0.95rem 1rem;
}

.ws-payload-modal__panel-title {
    margin: 0;
    color: #111827;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.3;
}

.ws-payload-modal__panel-meta {
    color: #6b7280;
    flex: 0 0 auto;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: right;
}

.ws-payload-modal__code {
    min-height: 26rem;
    max-height: 60vh;
    margin: 0;
    overflow: auto;
    border: 0;
    background: #0f172a;
    color: #e5e7eb;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.86rem;
    line-height: 1.65;
    padding: 1.15rem 1.25rem;
    tab-size: 4;
    white-space: pre;
}

.ws-payload-modal__code--response {
    min-height: 13rem;
}

.ws-payload-modal__code code {
    display: block;
    min-width: max-content;
}

.ws-payload-modal__code:focus {
    outline: 2px solid #60a5fa;
    outline-offset: -2px;
}

.ws-product-timeline__table {
    width: 100%;
    border-collapse: collapse;
}

.ws-product-timeline__head th {
    padding: 0.85rem 1rem;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    color: #6b7280;
    letter-spacing: 0.16em;
}

.ws-product-timeline__cell {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
}

.ws-product-timeline__cell--muted {
    color: #6b7280;
}

.ws-product-timeline__cell--strong {
    color: #111827;
}

.ws-product-timeline__badge,
.ws-product-timeline__run-link {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    padding: 0.35rem 0.7rem;
    font-weight: 700;
    line-height: 1;
}

.dark .ws-product-card__title,
.dark .ws-product-card__empty-title,
.dark .ws-product-card__panel-title,
.dark .ws-product-timeline__cell--strong {
    color: #f9fafb;
}

.dark .ws-product-card__fact-subtle,
.dark .ws-product-card__section-copy,
.dark .ws-product-card__empty-text,
.dark .ws-product-timeline__cell--muted,
.dark .ws-product-timeline__head th {
    color: #d1d5db;
}

.dark .ws-product-card__empty-icon {
    background: rgba(245, 158, 11, 0.14);
    color: #fcd34d;
}

.dark .ws-product-card__details-body,
.dark .ws-product-timeline__head th {
    background: rgba(255, 255, 255, 0.04);
}

.dark .ws-product-card__nav-button,
.dark .ws-product-card__thumb-nav,
.dark .ws-product-timeline__cell {
    border-color: rgba(255, 255, 255, 0.08);
}

.dark .ws-payload-modal__fact,
.dark .ws-payload-modal__panel {
    border-color: rgba(255, 255, 255, 0.1);
    background: #111827;
    box-shadow: none;
}

.dark .ws-payload-modal__fact {
    background: linear-gradient(180deg, rgba(31, 41, 55, 0.96) 0%, rgba(17, 24, 39, 0.96) 100%);
}

.dark .ws-payload-modal__fact-label,
.dark .ws-payload-modal__panel-meta {
    color: #9ca3af;
}

.dark .ws-payload-modal__fact-value,
.dark .ws-payload-modal__panel-title {
    color: #f9fafb;
}

.dark .ws-payload-modal__notice--info {
    border-color: rgba(96, 165, 250, 0.35);
    background: rgba(30, 64, 175, 0.22);
    color: #bfdbfe;
}

.dark .ws-payload-modal__notice--warning {
    border-color: rgba(251, 191, 36, 0.35);
    background: rgba(146, 64, 14, 0.22);
    color: #fde68a;
}

.dark .ws-payload-modal__panel-header {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

@media (max-width: 768px) {
    .ws-product-card__title {
        font-size: 1.45rem;
    }

    .ws-payload-modal__panel-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.35rem;
    }

    .ws-payload-modal__panel-meta {
        text-align: left;
    }

    .ws-payload-modal__code {
        min-height: 20rem;
        padding: 1rem;
    }

    .ws-product-timeline__head th,
    .ws-product-timeline__cell {
        padding: 0.75rem 0.85rem;
    }
}

/* Products refresh */
.ws-product-card {
    border-color: #dbe4ee;
    background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
    box-shadow: 0 20px 52px rgba(15, 23, 42, 0.07);
}

.ws-product-card__grid {
    align-items: stretch;
}

.ws-product-card__media-panel {
    padding: 1.5rem;
    background: linear-gradient(145deg, #fff7ed 0%, #ffffff 52%, #f8fafc 100%);
}

.ws-product-card__content {
    padding: 1.75rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, #f8fafc 100%);
}

.ws-product-card__subtitle {
    max-width: 48rem;
    color: #6b7280;
}

.ws-product-card__identity {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.ws-product-card__identity--spaced {
    margin-bottom: 0.35rem;
}

.ws-product-card__identity-pill {
    display: inline-flex;
    align-items: center;
    border: 1px solid #dbe4ee;
    border-radius: 9999px;
    background: #ffffff;
    padding: 0.55rem 0.9rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #475569;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.ws-product-card__identity-pill--mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.ws-product-card__facts {
    gap: 1rem;
}

.ws-product-card__fact {
    border-color: #dbe4ee;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.ws-product-card__fact-value,
.ws-product-card__meta-value {
    font-size: 1.05rem;
    line-height: 1.35;
    font-weight: 700;
    color: #0f172a;
}

.ws-product-card__body-grid,
.ws-product-card__body-stack,
.ws-product-card__body-pair {
    align-items: start;
}

.ws-product-card__body-grid--separate,
.ws-product-card__body-stack--separate {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 0.25rem;
}

.ws-product-card__body-stack--separate > * + * {
    margin-top: 0;
}

.ws-product-card__body-pair {
    display: grid;
    gap: 1.25rem;
}

.ws-product-card__meta-grid {
    display: grid;
    gap: 0.875rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ws-product-card__meta-item {
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background: #ffffff;
    padding: 1rem;
}

.ws-product-card__panel {
    border-color: #dbe4ee;
    border-radius: 1.25rem;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.ws-product-card__panel-head {
    padding: 1rem 1.25rem;
    background: #f8fafc;
}

.ws-product-card__table-key {
    width: 11.5rem;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ws-product-card__table-value {
    font-weight: 500;
}

.ws-product-card__hero {
    border-color: #dbe4ee;
    border-radius: 1.35rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.ws-product-card__hero-viewport {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 22rem;
    padding: 1rem;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.92) 58%, rgba(241, 245, 249, 0.96)),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.ws-product-card__hero-image {
    display: block;
    width: 100%;
    max-width: 100%;
    max-height: 22rem;
    object-fit: contain;
    object-position: center;
    aspect-ratio: auto;
}

.ws-product-card__hero-viewport--button {
    width: 100%;
    cursor: pointer;
}

.ws-product-card__thumb {
    position: relative;
    appearance: none;
    outline: none;
    border: 1px solid #dbe4ee;
    border-radius: 1.1rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, #f8fafc 100%);
    opacity: 0.9;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 10px 30px -22px rgba(15, 23, 42, 0.65);
    transition: transform 120ms ease, opacity 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.ws-product-card__thumb--card {
    min-height: 4.5rem;
}

.ws-product-card__thumb--active {
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.16), 0 0 0 4px #ffffff;
    border-color: rgba(37, 99, 235, 0.3);
    opacity: 1;
}

.ws-product-card__thumb:hover {
    opacity: 1;
    transform: translateY(-1px);
    border-color: #cbd5e1;
    box-shadow: 0 16px 30px -22px rgba(15, 23, 42, 0.7);
}

.ws-product-card__thumb:focus,
.ws-product-card__thumb:focus-visible {
    outline: none;
}

.ws-product-card__empty {
    min-height: 20rem;
    border-color: #dbe4ee;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, #f8fafc 100%);
}

.ws-product-lightbox {
    width: min(100vw, 100%);
    max-width: none;
    height: 100vh;
    max-height: none;
    margin: 0;
    padding: 1rem;
    border: 0;
    background: transparent;
    overflow-y: auto;
    overscroll-behavior: contain;
    isolation: isolate;
}

.ws-product-lightbox__dialog {
    background: #020617;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.75rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.ws-product-lightbox[open] {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ws-product-lightbox::backdrop {
    background: rgba(2, 6, 23, 0.82);
    backdrop-filter: blur(8px);
}

.ws-product-lightbox__toolbar {
    background: rgba(15, 23, 42, 0.95);
}

.ws-product-lightbox__toolbar-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.35rem 0.15rem;
}

.ws-product-lightbox__toolbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ws-product-lightbox__meta {
    flex: 1 1 auto;
    text-align: right;
}

.ws-product-lightbox__action {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.06);
    padding: 0.55rem 0.95rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #f8fafc;
    transition: background 120ms ease, border-color 120ms ease;
}

.ws-product-lightbox__action:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.ws-product-lightbox__action--quiet {
    background: transparent;
}

.ws-product-lightbox__stage {
    background:
        radial-gradient(circle at top, rgba(51, 65, 85, 0.45), rgba(15, 23, 42, 0.98) 62%),
        linear-gradient(180deg, #020617 0%, #0f172a 100%);
}

.ws-product-lightbox__stage-wrap {
    display: grid;
    gap: 1rem;
    padding: 0 0 1.25rem;
}

.ws-product-lightbox__image-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: min(78vh, 60rem);
    padding: 1.5rem;
    overflow: auto;
}

.ws-product-lightbox__image {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: min(72vh, 56rem);
    object-fit: contain;
}

.ws-product-lightbox__nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 9999px;
    background: rgba(15, 23, 42, 0.75);
    color: #fff;
    box-shadow: 0 8px 24px rgba(2, 6, 23, 0.32);
}

.ws-product-lightbox__thumbs {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.85rem;
    padding: 0 1.25rem 0.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ws-product-lightbox__thumb-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.75rem;
}

.ws-product-lightbox__thumb {
    min-height: 5rem;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.96) 0%, rgba(15, 23, 42, 0.98) 100%);
    border-color: rgba(148, 163, 184, 0.22);
    box-shadow: 0 18px 28px -24px rgba(2, 6, 23, 0.95);
}

.ws-product-lightbox__thumb:hover {
    border-color: rgba(203, 213, 225, 0.44);
}

.ws-product-lightbox__thumb-image {
    width: 100%;
    height: 5rem;
    object-fit: cover;
}

.ws-product-lightbox__thumb-nav {
    background: rgba(15, 23, 42, 0.82);
    border-color: rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
}

.ws-product-card__details-summary {
    display: flex;
    align-items: center;
    gap: 1rem;
    list-style: none;
    cursor: pointer;
}

.ws-product-card__details-summary::-webkit-details-marker {
    display: none;
}

.ws-product-card__details-summary::marker {
    display: none;
}

.ws-product-card__details-summary::before {
    content: '▸';
    flex: 0 0 auto;
    font-size: 0.95rem;
    color: #64748b;
    transition: transform 120ms ease, color 120ms ease;
}

.ws-product-card__details[open] .ws-product-card__details-summary::before {
    transform: rotate(90deg);
    color: #0f172a;
}

.ws-product-card__details-copy {
    flex: 1 1 auto;
}

.ws-product-timeline {
    border-color: #dbe4ee;
    border-radius: 1.25rem;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.ws-product-timeline__head th {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
}

.ws-product-timeline__cell {
    font-size: 0.92rem;
    line-height: 1.45;
}

.ws-product-timeline__row:nth-child(even) {
    background: rgba(248, 250, 252, 0.85);
}

.ws-product-timeline__row:hover {
    background: rgba(251, 191, 36, 0.12);
}

.dark .ws-product-card {
    border-color: rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, #111827 0%, #0f172a 100%);
}

.dark .ws-product-card__media-panel {
    background: linear-gradient(145deg, #111827 0%, #0f172a 55%, #0b1220 100%);
}

.dark .ws-product-card__hero-viewport {
    background:
        radial-gradient(circle at top, rgba(30, 41, 59, 0.9), rgba(17, 24, 39, 0.94) 58%, rgba(15, 23, 42, 0.98)),
        linear-gradient(180deg, #111827 0%, #0f172a 100%);
}

.dark .ws-product-card__content,
.dark .ws-product-card__panel,
.dark .ws-product-timeline {
    background: linear-gradient(180deg, #111827 0%, #0f172a 100%);
}

.dark .ws-product-card__identity-pill,
.dark .ws-product-card__meta-item,
.dark .ws-product-card__fact {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.dark .ws-product-card__panel-head,
.dark .ws-product-timeline__head th {
    background: rgba(255, 255, 255, 0.04);
}

.dark .ws-product-card__counter {
    background: rgba(17, 24, 39, 0.8);
    color: #e5e7eb;
    border-color: rgba(255, 255, 255, 0.1);
}

.dark .ws-product-card__subtitle,
.dark .ws-product-card__identity-pill,
.dark .ws-product-card__meta-label {
    color: #cbd5e1;
}

.dark .ws-product-card__meta-value,
.dark .ws-product-card__fact-value {
    color: #f8fafc;
}

.dark .ws-product-card__thumb--active {
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.28), 0 0 0 4px #111827;
}

.dark .ws-product-card__thumb {
    border-color: rgba(148, 163, 184, 0.14);
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.96) 0%, rgba(3, 7, 18, 0.98) 100%);
}

.dark .ws-product-card__thumb:hover {
    border-color: rgba(148, 163, 184, 0.28);
}

.dark .ws-product-card__details-summary::before {
    color: #94a3b8;
}

.dark .ws-product-card__details[open] .ws-product-card__details-summary::before {
    color: #e2e8f0;
}

.ws-stale-cleanup-list {
    display: grid;
    gap: 1rem;
    font-size: 0.875rem;
}

.ws-stale-cleanup-list__empty {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background: #f9fafb;
    color: #4b5563;
    padding: 0.75rem 1rem;
}

.ws-stale-cleanup-list__table-shell {
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background: #ffffff;
}

.ws-stale-cleanup-list__table-wrap {
    overflow-x: auto;
}

.ws-stale-cleanup-list__table {
    min-width: 64rem;
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.ws-stale-cleanup-list__table th {
    background: #f9fafb;
    color: #64748b;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.25;
    padding: 0.75rem 0.875rem;
    text-transform: uppercase;
    white-space: nowrap;
}

.ws-stale-cleanup-list__table td {
    border-top: 1px solid #f1f5f9;
    color: #334155;
    line-height: 1.45;
    padding: 0.75rem 0.875rem;
    vertical-align: top;
    white-space: nowrap;
}

.ws-stale-cleanup-list__id,
.ws-stale-cleanup-list__number {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.8125rem;
}

.ws-stale-cleanup-list__number {
    text-align: right;
}

.ws-stale-cleanup-list__status {
    display: inline-flex;
    align-items: center;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    padding: 0.35rem 0.55rem;
    white-space: nowrap;
}

.ws-stale-cleanup-list__status--running {
    background: #fffbeb;
    color: #b45309;
    box-shadow: inset 0 0 0 1px rgba(217, 119, 6, 0.2);
}

.ws-stale-cleanup-list__status--success {
    background: #ecfdf5;
    color: #047857;
    box-shadow: inset 0 0 0 1px rgba(5, 150, 105, 0.2);
}

.ws-stale-cleanup-list__status--failed {
    background: #fff1f2;
    color: #be123c;
    box-shadow: inset 0 0 0 1px rgba(225, 29, 72, 0.2);
}

.ws-stale-cleanup-list__status--cancelled,
.ws-stale-cleanup-list__status--unknown {
    background: #f8fafc;
    color: #475569;
    box-shadow: inset 0 0 0 1px rgba(100, 116, 139, 0.18);
}

.ws-stale-cleanup-list__error {
    max-width: 24rem;
    white-space: normal;
}

.dark .ws-stale-cleanup-list__empty,
.dark .ws-stale-cleanup-list__table-shell {
    border-color: rgba(255, 255, 255, 0.1);
    background: #020617;
}

.dark .ws-stale-cleanup-list__empty,
.dark .ws-stale-cleanup-list__table td {
    color: #cbd5e1;
}

.dark .ws-stale-cleanup-list__table th {
    background: rgba(255, 255, 255, 0.04);
    color: #94a3b8;
}

.dark .ws-stale-cleanup-list__table td {
    border-top-color: rgba(255, 255, 255, 0.08);
}

.dark .ws-stale-cleanup-list__status--running {
    background: rgba(120, 53, 15, 0.35);
    color: #fcd34d;
}

.dark .ws-stale-cleanup-list__status--success {
    background: rgba(6, 78, 59, 0.35);
    color: #6ee7b7;
}

.dark .ws-stale-cleanup-list__status--failed {
    background: rgba(136, 19, 55, 0.35);
    color: #fda4af;
}

.dark .ws-stale-cleanup-list__status--cancelled,
.dark .ws-stale-cleanup-list__status--unknown {
    background: rgba(51, 65, 85, 0.55);
    color: #cbd5e1;
}

.ws-feed-analytics {
    display: grid;
    gap: 1.25rem;
    padding-top: 1rem;
}

.ws-feed-analytics__tab {
    display: grid;
    gap: 1rem;
}

.ws-feed-analytics__tab[style*="display: none"] {
    display: none !important;
}

@media (min-width: 1024px) {
    .ws-product-card__grid {
        grid-template-columns: minmax(34rem, 1.18fr) minmax(24rem, 0.82fr);
    }

    .ws-product-card__body-pair--balanced {
        grid-template-columns: minmax(0, 1.35fr) minmax(22rem, 0.9fr);
    }

    .ws-product-card__media-panel {
        border-right: 1px solid #e5e7eb;
        border-bottom: 0;
    }

    .dark .ws-product-card__media-panel {
        border-right-color: rgba(255, 255, 255, 0.08);
    }
}

@media (max-width: 1023px) {
    .ws-product-card__meta-grid {
        grid-template-columns: 1fr;
    }

    .ws-product-card__hero-viewport {
        min-height: 18rem;
    }
}

@media (max-width: 768px) {
    .ws-product-card__media-panel,
    .ws-product-card__content {
        padding: 1rem;
    }

    .ws-product-card__hero-viewport {
        min-height: 14rem;
        padding: 0.75rem;
    }

    .ws-product-card__hero-image {
        max-height: 16rem;
    }

    .ws-product-card__identity-pill {
        width: 100%;
        justify-content: space-between;
    }

    .ws-product-lightbox__toolbar-main {
        flex-direction: column;
        align-items: flex-start;
    }

    .ws-product-lightbox__toolbar-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .ws-product-lightbox__image-wrap {
        min-height: 55vh;
        padding: 1rem;
    }

    .ws-product-lightbox__meta {
        text-align: left;
    }

    .ws-product-lightbox__thumbs {
        grid-template-columns: 1fr;
    }

    .ws-product-lightbox__thumb-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.ws-sync-schedule-time-picker input[type="time"]::-webkit-calendar-picker-indicator {
    display: none;
    -webkit-appearance: none;
}
