:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --bg: #f1f5f9;
    --card: #ffffff;
    --border: #e2e8f0;
    --text: #0f172a;
    --muted: #64748b;
    --success: #16a34a;
    --danger: #dc2626;
    --modal-width-default: 720px;
    --modal-width-lg: 920px;
    --modal-width-xl: 1200px;
    --modal-width-wide: 1200px;
    --modal-shell-width: 1200px;
    --workspace-width: 1200px;
    --workspace-height: 860px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif; background: var(--bg); color: var(--text); line-height: 1.5; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.topbar {
    display: flex; align-items: center; gap: 1.5rem;
    background: var(--card); border-bottom: 1px solid var(--border);
    padding: 0.75rem 1.5rem; position: sticky; top: 0; z-index: 100;
}
.brand { font-weight: 700; font-size: 1.1rem; color: var(--primary); }
.main-nav { display: flex; flex-wrap: wrap; gap: 0.35rem; flex: 1; align-items: center; }
.main-nav a { color: var(--text); font-size: 0.9rem; padding: 0.25rem 0.5rem; border-radius: 4px; }
.main-nav a:hover { background: var(--bg); text-decoration: none; }

.pp-nav-dropdown { position: relative; }
.pp-nav-trigger {
    display: inline-flex; align-items: center; gap: 0.2rem;
    color: var(--text); font-size: 0.9rem; padding: 0.25rem 0.5rem;
    border: none; border-radius: 4px; background: transparent;
    cursor: pointer; font-family: inherit; line-height: inherit;
}
.pp-nav-trigger:hover, .pp-nav-dropdown.is-open .pp-nav-trigger { background: var(--bg); }
.pp-nav-caret { font-size: 0.65rem; opacity: 0.65; }
.pp-nav-submenu {
    display: none;
    position: absolute; top: calc(100% + 4px); left: 0; min-width: 180px;
    background: var(--card); border: 1px solid var(--border);
    border-radius: 8px; box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    padding: 0.35rem; z-index: 300;
}
.pp-nav-dropdown.is-open .pp-nav-submenu { display: block; }
.pp-nav-submenu a {
    display: block; padding: 0.45rem 0.65rem; border-radius: 6px;
    color: var(--text); font-size: 0.88rem; white-space: nowrap;
}
.pp-nav-submenu a:hover { background: var(--bg); text-decoration: none; }
.pp-nav-submenu-item { position: relative; }
.pp-nav-submenu-item--has-children > .pp-nav-submenu-trigger {
    display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
    width: 100%; padding: 0.45rem 0.65rem; border: none; border-radius: 6px;
    background: transparent; color: var(--text); font-size: 0.88rem;
    font-family: inherit; text-align: left; cursor: pointer; white-space: nowrap;
    line-height: 1.35;
}
.pp-nav-submenu-item--has-children > .pp-nav-submenu-trigger:hover,
.pp-nav-submenu-item--has-children.is-open > .pp-nav-submenu-trigger {
    background: var(--bg);
}
.pp-nav-caret--nested { font-size: 0.7rem; opacity: 0.55; flex-shrink: 0; }
.pp-nav-submenu--nested,
.pp-nav-submenu--deep {
    display: none !important;
    position: absolute;
    width: max-content;
    max-width: min(440px, calc(100vw - 1.5rem));
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
    padding: 0.4rem;
    z-index: 310;
    pointer-events: none;
    overflow: visible;
}
.pp-nav-submenu--nested {
    left: calc(100% + 6px);
    top: 0;
}
.pp-nav-submenu--deep {
    left: calc(100% + 6px);
    top: 0;
    z-index: 320;
}
.pp-nav-submenu-item--has-children.is-open > .pp-nav-submenu--nested,
.pp-nav-submenu-item--has-children:hover > .pp-nav-submenu--nested,
.pp-nav-submenu-item--has-children:focus-within > .pp-nav-submenu--nested,
.pp-nav-submenu-item--has-children.is-open > .pp-nav-submenu--deep,
.pp-nav-submenu-item--has-children:hover > .pp-nav-submenu--deep,
.pp-nav-submenu-item--has-children:focus-within > .pp-nav-submenu--deep {
    display: block !important;
    pointer-events: auto;
}
.pp-nav-submenu--nested > .pp-nav-submenu-item--has-children > .pp-nav-submenu-trigger {
    padding: 0.45rem 0.65rem;
}

/* Settings menu — main panel right-aligned; nested flyouts open to the right of each row */
.pp-nav-dropdown--settings > .pp-nav-submenu {
    left: auto;
    right: 0;
    min-width: 13.5rem;
    width: max-content;
    max-width: min(20rem, calc(100vw - 1.5rem));
    padding: 0.45rem;
    border-radius: 10px;
    overflow: visible;
}
.pp-nav-dropdown--settings .pp-nav-submenu a,
.pp-nav-dropdown--settings .pp-nav-submenu-trigger {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    border-radius: 7px;
    line-height: 1.35;
}
.pp-nav-dropdown--settings .pp-nav-submenu--nested,
.pp-nav-dropdown--settings .pp-nav-submenu--deep {
    left: calc(100% + 6px);
    right: auto;
    top: 0;
    bottom: auto;
    min-width: 12rem;
    max-width: min(26rem, calc(100vw - 1.5rem));
}
.pp-nav-dropdown--settings .pp-nav-submenu--nested > .pp-nav-open,
.pp-nav-dropdown--settings .pp-nav-submenu--nested > .pp-nav-submenu-item--has-children,
.pp-nav-dropdown--settings .pp-nav-submenu--deep > .pp-nav-open {
    display: block;
    width: 100%;
    white-space: nowrap;
}
.pp-nav-dropdown--settings .pp-nav-submenu--nested > .pp-nav-submenu-item--has-children + .pp-nav-submenu-item--has-children,
.pp-nav-dropdown--settings .pp-nav-submenu--nested > .pp-nav-open + .pp-nav-submenu-item--has-children {
    margin-top: 0.1rem;
}
.pp-nav-dropdown--settings .pp-nav-submenu--nested > .pp-nav-submenu-item--has-children:last-child {
    margin-top: 0.2rem;
    padding-top: 0.2rem;
    border-top: 1px solid var(--border);
}
.pp-nav-dropdown--settings .pp-nav-submenu--deep {
    min-width: 11rem;
}

.pp-nav-placeholder {
    color: var(--muted); font-size: 0.9rem; padding: 0.25rem 0.5rem;
    cursor: default; user-select: none;
}

/* Reports menu — same flyout behavior as Settings */
.pp-nav-dropdown--reports > .pp-nav-submenu {
    left: auto;
    right: 0;
    min-width: 13.5rem;
    width: max-content;
    max-width: min(20rem, calc(100vw - 1.5rem));
    padding: 0.45rem;
    border-radius: 10px;
    overflow: visible;
}
.pp-nav-dropdown--reports .pp-nav-submenu a,
.pp-nav-dropdown--reports .pp-nav-submenu-trigger {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    border-radius: 7px;
    line-height: 1.35;
}
.pp-nav-dropdown--reports .pp-nav-submenu--nested,
.pp-nav-dropdown--reports .pp-nav-submenu--deep {
    left: calc(100% + 6px);
    right: auto;
    top: 0;
    bottom: auto;
    min-width: 12rem;
    max-width: min(26rem, calc(100vw - 1.5rem));
}
.pp-nav-dropdown--reports .pp-nav-submenu--nested > .pp-nav-open,
.pp-nav-dropdown--reports .pp-nav-submenu--nested > .pp-nav-submenu-item--has-children,
.pp-nav-dropdown--reports .pp-nav-submenu--deep > .pp-nav-open {
    display: block;
    width: 100%;
    white-space: nowrap;
}

.pp-report-placeholder-note {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

/* ── Reports (Leadspedia-style) ── */
.pp-report-page {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.25rem 0 1rem;
}
.pp-report-filters {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 0.65rem 0.75rem;
    padding: 0.75rem 0.85rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}
.pp-report-filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 9.5rem;
}
.pp-report-filter-group label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
}
.pp-report-filter-group select,
.pp-report-filter-group input[type="date"] {
    min-width: 10.5rem;
    padding: 0.42rem 0.55rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    font-size: 0.875rem;
}
.pp-report-filter-group .pp-search-select-control {
    min-width: 10.5rem;
}
.pp-report-custom-dates {
    display: none;
    align-items: flex-end;
    gap: 0.65rem;
    flex-wrap: wrap;
}
.pp-report-custom-dates.is-visible {
    display: flex;
}
.pp-report-filter-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-left: auto;
}
.pp-report-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}
.pp-report-btn-icon {
    font-size: 0.85rem;
    line-height: 1;
    opacity: 0.75;
}
.pp-report-card {
    padding: 0;
    overflow: hidden;
    border-radius: 8px;
}
.pp-report-table-wrap {
    max-height: calc(100vh - 16rem);
    overflow: auto;
}
.pp-report-table {
    font-size: 0.8125rem;
}
.pp-report-table thead th {
    background: #f1f5f9;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    border-bottom: 1px solid #cbd5e1;
    padding: 0.55rem 0.65rem;
}
.pp-report-table tbody td,
.pp-report-table tfoot td {
    padding: 0.45rem 0.65rem;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}
.pp-report-table tbody tr:nth-child(even) {
    background: #fafbfc;
}
.pp-report-table .num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.pp-report-icon-col {
    width: 2rem;
    text-align: center;
    padding-left: 0.45rem !important;
    padding-right: 0.25rem !important;
}
.pp-report-row-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
}
.pp-report-totals-row {
    background: #f8fafc;
    border-top: 2px solid #3b82f6;
}
.pp-report-totals-row td {
    font-weight: 700;
    border-bottom: none !important;
}
.pp-report-totals-label {
    text-align: right;
    color: #334155;
    font-weight: 700;
}
.pp-report-pager-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.55rem 0.85rem;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    font-size: 0.8125rem;
    color: #64748b;
    flex-wrap: wrap;
}
.pp-report-pager-controls {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}
.pp-report-pager-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    background: #fff;
    color: #475569;
    text-decoration: none;
    font-size: 0.85rem;
    line-height: 1;
}
.pp-report-pager-btn:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #2563eb;
    text-decoration: none;
}
.pp-report-pager-btn.is-disabled {
    opacity: 0.35;
    pointer-events: none;
}
.pp-report-page-form {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0 0.25rem;
}
.pp-report-page-input {
    width: 3rem;
    padding: 0.2rem 0.35rem;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    text-align: center;
    font-size: 0.8125rem;
}
.pp-report-pager-summary {
    white-space: nowrap;
    font-size: 0.8125rem;
}
.pp-lead-distribution-table .link-primary {
    font-size: 0.8125rem;
}
.pp-ping-tree-table thead th.pp-report-group-th {
    text-align: center;
    background: #e2e8f0;
    border-bottom: 1px solid #cbd5e1;
}
.pp-ping-tree-table thead th.pp-report-sub-th {
    background: #f1f5f9;
    font-weight: 600;
}
.pp-ping-tree-table .link-primary {
    font-size: 0.8125rem;
}
.pp-contracts-report-table .link-primary {
    font-size: 0.8125rem;
}
.pp-ping-post-table thead th.pp-report-group-th {
    text-align: center;
    background: #e2e8f0;
    border-bottom: 1px solid #cbd5e1;
}
.pp-ping-post-table thead th.pp-report-sub-th {
    background: #f1f5f9;
    font-weight: 600;
}
.pp-ping-post-table .link-primary {
    font-size: 0.8125rem;
}
.pp-affiliates-overview-table thead th.pp-report-group-th {
    text-align: center;
    background: #e2e8f0;
    border-bottom: 1px solid #cbd5e1;
}
.pp-affiliates-overview-table thead th.pp-report-sub-th {
    background: #f1f5f9;
    font-weight: 600;
}
.pp-affiliates-overview-table .link-primary {
    font-size: 0.8125rem;
}
.pp-advertisers-overview-table thead th.pp-report-group-th {
    text-align: center;
    background: #e2e8f0;
    border-bottom: 1px solid #cbd5e1;
}
.pp-advertisers-overview-table thead th.pp-report-sub-th {
    background: #f1f5f9;
    font-weight: 600;
}
.pp-advertisers-overview-table .link-primary {
    font-size: 0.8125rem;
}

/* Leads Report hub — sub-tabs + charts */
.pp-leads-report-page .pp-report-sub-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 0;
    padding: 0;
    background: #ececec;
    border: 1px solid #c8c8c8;
    border-radius: 0;
}
.pp-leads-report-page .pp-report-sub-tabs a,
.pp-leads-report-page .pp-report-sub-tabs a:visited {
    display: inline-block;
    padding: 0.55rem 1.1rem;
    color: #333 !important;
    text-decoration: none !important;
    font-size: 0.875rem;
    font-weight: 600;
    border-right: 1px solid #c8c8c8;
    background: #ececec;
}
.pp-leads-report-page .pp-report-sub-tabs a:hover {
    background: #f5f5f5;
    text-decoration: none !important;
}
.pp-leads-report-page .pp-report-sub-tabs a.active,
.pp-leads-report-page .pp-report-sub-tabs a.active:hover {
    background: #fff;
    color: #1d4ed8 !important;
    box-shadow: inset 0 -2px 0 #2563eb;
}
.pp-report-panel { flex-direction: column; gap: 0.75rem; }
.pp-leads-report-page .pp-report-panel {
    display: none;
}
.pp-leads-report-page .pp-report-panel.is-active {
    display: flex;
}
/* Calls Report hub — sub-tabs + charts */
.pp-calls-report-page .pp-report-sub-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 0;
    padding: 0;
    background: #ececec;
    border: 1px solid #c8c8c8;
    border-radius: 0;
}
.pp-calls-report-page .pp-report-sub-tabs a,
.pp-calls-report-page .pp-report-sub-tabs a:visited {
    display: inline-block;
    padding: 0.55rem 1.1rem;
    color: #333 !important;
    text-decoration: none !important;
    font-size: 0.875rem;
    font-weight: 600;
    border-right: 1px solid #c8c8c8;
    background: #ececec;
}
.pp-calls-report-page .pp-report-sub-tabs a:hover {
    background: #f5f5f5;
    text-decoration: none !important;
}
.pp-calls-report-page .pp-report-sub-tabs a.active,
.pp-calls-report-page .pp-report-sub-tabs a.active:hover {
    background: #fff;
    color: #1d4ed8 !important;
    box-shadow: inset 0 -2px 0 #2563eb;
}
.pp-calls-report-page .pp-report-panel {
    display: none;
}
.pp-calls-report-page .pp-report-panel.is-active {
    display: flex;
}
.pp-calls-report-filters.is-advertisers-filters [data-pp-calls-filter-aff-dates] {
    display: none;
}
.pp-calls-report-filters.is-advertisers-filters [data-pp-calls-filter-offer] {
    display: none;
}
.pp-calls-report-filters.is-affiliates-filters [data-pp-calls-filter-adv-dates] {
    display: none;
}
.pp-calls-report-filters.is-advertisers-filters [data-pp-calls-filter-adv-dates] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: flex-end;
}
.pp-calls-report-filters.is-affiliates-filters [data-pp-calls-filter-aff-dates] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: flex-end;
}
.pp-report-charts-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr);
    gap: 0.75rem;
}
.pp-report-chart-card {
    padding: 0.75rem 0.85rem 0.85rem;
    border-radius: 8px;
}
.pp-report-chart-title {
    margin: 0 0 0.55rem;
    font-size: 0.92rem;
    font-weight: 700;
    color: #334155;
}
.pp-report-chart-wrap {
    position: relative;
    height: 190px;
}
.pp-report-chart-wrap--compact {
    height: 220px;
}
.pp-report-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 0.45rem;
    font-size: 0.78rem;
    color: #64748b;
}
.pp-legend-swatch {
    display: inline-block;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 2px;
    margin-right: 0.25rem;
    vertical-align: -1px;
}
.pp-legend-swatch--posts { background: #84cc16; }
.pp-legend-swatch--accepts { background: #1e40af; }
.pp-legend-swatch--rejects { background: #1e40af; }
.pp-legend-swatch--sold { background: #991b1b; }
.pp-report-table-heading {
    padding: 0.65rem 0.85rem;
    font-size: 0.92rem;
    font-weight: 700;
    color: #334155;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

/* Reports nav — clickable parent + flyout caret */
.pp-nav-submenu-item--clickable-parent .pp-nav-submenu-trigger-split {
    display: flex;
    align-items: stretch;
    width: 100%;
}
.pp-nav-submenu-item--clickable-parent .pp-nav-submenu-parent-link {
    flex: 1;
    display: block;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 7px 0 0 7px;
    color: inherit;
    text-decoration: none;
    line-height: 1.35;
    text-align: left;
}
.pp-nav-submenu-item--clickable-parent .pp-nav-submenu-parent-link:hover {
    background: var(--bg);
    text-decoration: none;
}
.pp-nav-submenu-item--clickable-parent .pp-nav-submenu-caret-btn {
    flex: 0 0 auto;
    width: 2rem;
    padding: 0.5rem 0.35rem;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 0 7px 7px 0;
}
.pp-nav-submenu-item--clickable-parent .pp-nav-submenu-caret-btn:hover {
    background: var(--bg);
}
.pp-nav-dropdown--reports .pp-nav-submenu-item--clickable-parent > .pp-nav-submenu-trigger-split + .pp-nav-submenu--nested {
    top: 0;
}

@media (max-width: 1100px) {
    .pp-report-charts-grid {
        grid-template-columns: 1fr;
    }
}
.user-menu { display: flex; align-items: center; gap: 0.75rem; font-size: 0.9rem; }

.content { max-width: 1280px; margin: 0 auto; padding: 1.5rem; }

.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem; }
.page-header h1 { font-size: 1.5rem; }

.card { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 1.25rem; margin-bottom: 1rem; }
.card h2, .card h3 { margin-bottom: 1rem; font-size: 1.1rem; }

.btn {
    display: inline-block; padding: 0.5rem 1rem; border-radius: 6px; border: none;
    font-size: 0.9rem; cursor: pointer; background: var(--primary); color: #fff;
}
.btn:hover { background: var(--primary-dark); text-decoration: none; color: #fff; }
.btn-secondary { background: #64748b; }
.btn-danger { background: var(--danger); }
.btn-sm { padding: 0.35rem 0.65rem; font-size: 0.8rem; }

table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { padding: 0.65rem 0.75rem; text-align: left; border-bottom: 1px solid var(--border); }
th { background: #f8fafc; font-weight: 600; }
tr:hover td { background: #f8fafc; }

.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 500; margin-bottom: 0.35rem; color: var(--muted); }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 0.5rem 0.65rem; border: 1px solid var(--border);
    border-radius: 6px; font-size: 0.9rem;
}
.form-group textarea { min-height: 80px; resize: vertical; }
.form-actions { margin-top: 1rem; display: flex; gap: 0.5rem; }

.tabs { display: flex; gap: 0.25rem; border-bottom: 1px solid var(--border); margin-bottom: 1rem; flex-wrap: wrap; }
.tabs a {
    padding: 0.5rem 1rem; color: var(--muted); border-bottom: 2px solid transparent;
    text-decoration: none; font-size: 0.9rem;
}
.tabs a.active, .tabs a:hover { color: var(--primary); border-bottom-color: var(--primary); }

.badge { display: inline-block; padding: 0.15rem 0.5rem; border-radius: 999px; font-size: 0.75rem; font-weight: 500; }
.badge-active { background: #dcfce7; color: #166534; }
.badge-inactive { background: #fee2e2; color: #991b1b; }

.alert { padding: 0.75rem 1rem; border-radius: 6px; margin-bottom: 1rem; }
.alert-info { background: #dbeafe; color: #1e40af; }
.alert-warning { background: #fef3c7; color: #92400e; }
.alert-error { background: #fee2e2; color: #991b1b; }
.alert-success { background: #dcfce7; color: #166534; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat-card { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 1rem; text-align: center; }
.stat-card .value { font-size: 2rem; font-weight: 700; color: var(--primary); }
.stat-card .label { font-size: 0.85rem; color: var(--muted); }

.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.login-box { background: var(--card); padding: 2rem; border-radius: 8px; width: 100%; max-width: 400px; border: 1px solid var(--border); }
.login-box h1 { margin-bottom: 1.5rem; text-align: center; }

.modal-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 200; align-items: center; justify-content: center; }
.modal-backdrop.open { display: flex; }
.modal-backdrop.modal-stacked {
    z-index: auto;
    background: rgba(15, 23, 42, 0.45);
}
.pp-modal-layer {
    position: fixed;
    inset: 0;
    z-index: 500;
    pointer-events: none;
}
.pp-modal-layer > .modal-backdrop {
    pointer-events: auto;
}
.modal { background: var(--card); border-radius: 8px; padding: 1.5rem; max-width: var(--modal-width-default); width: 96%; max-height: 90vh; overflow-y: auto; box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22); box-sizing: border-box; }
.modal.is-dragged {
    max-height: calc(100vh - 2rem);
}
.modal.is-resized {
    overflow: auto;
    max-height: none;
}
.modal.pp-modal-resizable {
    position: relative;
}
.pp-modal-resize-handle {
    position: absolute;
    z-index: 20;
    background: transparent;
}
.pp-modal-resize-n,
.pp-modal-resize-s {
    left: 10px;
    right: 10px;
    height: 8px;
}
.pp-modal-resize-n { top: 0; cursor: n-resize; }
.pp-modal-resize-s { bottom: 0; cursor: s-resize; }
.pp-modal-resize-e,
.pp-modal-resize-w {
    top: 10px;
    bottom: 10px;
    width: 8px;
}
.pp-modal-resize-e { right: 0; cursor: e-resize; }
.pp-modal-resize-w { left: 0; cursor: w-resize; }
.pp-modal-resize-ne,
.pp-modal-resize-nw,
.pp-modal-resize-se,
.pp-modal-resize-sw {
    width: 14px;
    height: 14px;
}
.pp-modal-resize-ne { top: 0; right: 0; cursor: ne-resize; }
.pp-modal-resize-nw { top: 0; left: 0; cursor: nw-resize; }
.pp-modal-resize-se { bottom: 0; right: 0; cursor: se-resize; }
.pp-modal-resize-sw { bottom: 0; left: 0; cursor: sw-resize; }
body.pp-modal-resizing {
    user-select: none;
}
body.pp-modal-resizing,
body.pp-modal-resizing * {
    cursor: inherit !important;
}
body.pp-modal-resizing.pp-resize-n,
body.pp-modal-resizing.pp-resize-n * { cursor: n-resize !important; }
body.pp-modal-resizing.pp-resize-s,
body.pp-modal-resizing.pp-resize-s * { cursor: s-resize !important; }
body.pp-modal-resizing.pp-resize-e,
body.pp-modal-resizing.pp-resize-e * { cursor: e-resize !important; }
body.pp-modal-resizing.pp-resize-w,
body.pp-modal-resizing.pp-resize-w * { cursor: w-resize !important; }
body.pp-modal-resizing.pp-resize-ne,
body.pp-modal-resizing.pp-resize-ne * { cursor: ne-resize !important; }
body.pp-modal-resizing.pp-resize-nw,
body.pp-modal-resizing.pp-resize-nw * { cursor: nw-resize !important; }
body.pp-modal-resizing.pp-resize-se,
body.pp-modal-resizing.pp-resize-se * { cursor: se-resize !important; }
body.pp-modal-resizing.pp-resize-sw,
body.pp-modal-resizing.pp-resize-sw * { cursor: sw-resize !important; }
.modal .modal-header {
    cursor: move;
    user-select: none;
    touch-action: none;
}
.modal .modal-header .modal-close-x {
    cursor: pointer;
}

.search-bar { display: flex; gap: 0.5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.search-bar input, .search-bar select { padding: 0.5rem; border: 1px solid var(--border); border-radius: 6px; }

.detail-grid { display: grid; grid-template-columns: 180px 1fr; gap: 0.5rem 1rem; font-size: 0.9rem; }
.detail-grid dt { color: var(--muted); font-weight: 500; }

/* —— Modern vertical workspace (LeadsPedia-style) —— */
.content:has(.vertical-workspace),
.content:has(.advertiser-workspace),
.content:has(.affiliate-workspace),
.content:has(.campaign-workspace),
.content:has(.offer-workspace),
.content:has(.contract-workspace),
.content:has(.ping-workspace) { max-width: none; padding: 0; }

.page-header-modern h1 { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em; }
.page-subtitle { color: var(--muted); font-size: 0.95rem; margin-top: 0.25rem; }

.btn-glow { box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35); }
.btn-ghost { background: transparent; color: var(--muted); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--bg); color: var(--text); }

.toolbar-card, .toolbar-compact {
    display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center;
    background: var(--card); border: 1px solid var(--border); border-radius: 10px;
    padding: 0.75rem 1rem; margin-bottom: 1rem;
}
.toolbar-card input, .toolbar-card select { padding: 0.45rem 0.65rem; border: 1px solid var(--border); border-radius: 8px; min-width: 160px; }
.dnc-list-toolbar {
    justify-content: space-between;
    gap: 0.75rem;
}
.dnc-list-add-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    flex: 1 1 auto;
}
.dnc-list-add-form input {
    padding: 0.45rem 0.65rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    min-width: 120px;
}

.card-elevated { box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06); border-radius: 12px; }
.card-inset { border: none; box-shadow: inset 0 0 0 1px var(--border); border-radius: 10px; }
.table-modern th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.link-primary { font-weight: 600; }
.status-pill { padding: 0.2rem 0.65rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; text-transform: capitalize; }
.status-pill-active { background: #dcfce7; color: #166534; }
.status-pill-inactive { background: #f1f5f9; color: #64748b; }
.row-icon { opacity: 0.45; font-size: 1.1rem; }
.empty-cell { text-align: center; color: var(--muted); padding: 2rem !important; }

.vertical-workspace,
.advertiser-workspace,
.affiliate-workspace,
.campaign-workspace,
.offer-workspace,
.contract-workspace,
.ping-workspace {
    min-height: calc(100vh - 56px);
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 50%, #f1f5f9 100%);
}
.advertiser-workspace .vw-badge { color: #7c3aed; background: #f5f3ff; }
.advertiser-workspace .vw-hero-icon { background: linear-gradient(135deg, #7c3aed, #6366f1); }
.advertiser-workspace .vw-hero-name { color: #6d28d9; }
.affiliate-workspace { background: linear-gradient(135deg, #f8fafc 0%, #ecfdf5 45%, #f1f5f9 100%); }
.affiliate-workspace .vw-badge { color: #059669; background: #ecfdf5; }
.affiliate-workspace .vw-hero-icon { background: linear-gradient(135deg, #059669, #10b981); }
.affiliate-workspace .vw-hero-name { color: #047857; }
.campaign-workspace { background: linear-gradient(135deg, #f8fafc 0%, #fff7ed 45%, #f1f5f9 100%); }
.campaign-workspace .vw-badge { color: #c2410c; background: #fff7ed; }
.campaign-workspace .vw-hero-icon { background: linear-gradient(135deg, #ea580c, #f59e0b); }
.campaign-workspace .vw-hero-name { color: #c2410c; }
.offer-workspace { background: linear-gradient(135deg, #f8fafc 0%, #ede9fe 45%, #f1f5f9 100%); }
.offer-workspace .vw-badge { color: #6d28d9; background: #ede9fe; }
.offer-workspace .vw-hero-icon { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.offer-workspace .vw-hero-name { color: #5b21b6; }
.vw-topbar {
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
    padding: 1rem 1.5rem; background: var(--card); border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}
.vw-topbar-left { display: flex; align-items: center; gap: 0.75rem; }
.vw-topbar-left h1 { font-size: 1.25rem; font-weight: 700; margin: 0; }
.vw-badge { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--primary); background: #eff6ff; padding: 0.2rem 0.5rem; border-radius: 4px; font-weight: 700; }
.vw-topbar-actions { display: flex; align-items: center; gap: 0.5rem; }
.vw-close-link { text-decoration: none; font-size: 1.5rem; line-height: 1; margin-left: 0.5rem; }

.vw-body { display: grid; grid-template-columns: 280px 1fr; min-height: 600px; align-items: start; }
@media (max-width: 1100px) { .vw-body { grid-template-columns: 1fr; } }

.vw-sidebar {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-right: 1px solid var(--border);
    padding: 1rem;
    position: sticky;
    top: 56px;
    max-height: calc(100vh - 56px);
    overflow-y: auto;
}
@media (max-width: 1100px) {
    .vw-sidebar { position: static; max-height: none; border-right: none; border-bottom: 1px solid var(--border); }
}

.vw-sidebar-head {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border);
}
.vw-sidebar-title { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 700; }
.vw-sidebar-id { font-size: 0.75rem; color: var(--primary); background: #eff6ff; padding: 0.15rem 0.5rem; border-radius: 6px; font-weight: 600; }

.vw-menu { display: flex; flex-direction: column; gap: 1.1rem; }
.vw-menu-group-label {
    font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--muted); margin-bottom: 0.5rem; padding-left: 0.15rem;
}
.vw-menu-grid { display: flex; flex-direction: column; gap: 0.5rem; }

/* Vertical menu: button-style nav (override global blue links) */
.vertical-workspace .vw-sidebar a.vw-menu-btn,
.advertiser-workspace .vw-sidebar a.vw-menu-btn,
.affiliate-workspace .vw-sidebar a.vw-menu-btn,
.vertical-workspace .vw-sidebar a.vw-menu-btn:visited,
.advertiser-workspace .vw-sidebar a.vw-menu-btn:visited,
.affiliate-workspace .vw-sidebar a.vw-menu-btn:visited {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    min-height: 52px;
    padding: 0.65rem 0.75rem 0.65rem 0.65rem;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    text-decoration: none !important;
    color: #0f172a !important;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s, background 0.15s, color 0.15s;
}
.vertical-workspace .vw-sidebar a.vw-menu-btn:hover,
.advertiser-workspace .vw-sidebar a.vw-menu-btn:hover,
.affiliate-workspace .vw-sidebar a.vw-menu-btn:hover {
    text-decoration: none !important;
    border-color: #3b82f6;
    background: #f8fafc;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.15);
    transform: translateY(-2px);
    color: #0f172a !important;
}
.vertical-workspace .vw-sidebar a.vw-menu-btn.is-active,
.advertiser-workspace .vw-sidebar a.vw-menu-btn.is-active,
.affiliate-workspace .vw-sidebar a.vw-menu-btn.is-active,
.vertical-workspace .vw-sidebar a.vw-menu-btn.is-active:hover,
.advertiser-workspace .vw-sidebar a.vw-menu-btn.is-active:hover,
.affiliate-workspace .vw-sidebar a.vw-menu-btn.is-active:hover,
.vertical-workspace .vw-sidebar a.vw-menu-btn.is-active:visited,
.advertiser-workspace .vw-sidebar a.vw-menu-btn.is-active:visited,
.affiliate-workspace .vw-sidebar a.vw-menu-btn.is-active:visited {
    border-color: #2563eb;
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
    transform: none;
}
.affiliate-workspace .vw-sidebar a.vw-menu-btn.is-active,
.affiliate-workspace .vw-sidebar a.vw-menu-btn.is-active:hover,
.affiliate-workspace .vw-sidebar a.vw-menu-btn.is-active:visited {
    border-color: #059669;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    box-shadow: 0 8px 20px rgba(5, 150, 105, 0.35);
}
.vertical-workspace .vw-sidebar a.vw-menu-btn.is-active .vw-menu-btn-meta,
.advertiser-workspace .vw-sidebar a.vw-menu-btn.is-active .vw-menu-btn-meta,
.affiliate-workspace .vw-sidebar a.vw-menu-btn.is-active .vw-menu-btn-meta {
    color: rgba(255, 255, 255, 0.85) !important;
}
.vertical-workspace .vw-sidebar a.vw-menu-btn.is-active .vw-menu-btn-arrow,
.advertiser-workspace .vw-sidebar a.vw-menu-btn.is-active .vw-menu-btn-arrow,
.affiliate-workspace .vw-sidebar a.vw-menu-btn.is-active .vw-menu-btn-arrow {
    color: #ffffff !important;
    opacity: 1;
}

.vw-menu-btn-icon {
    flex-shrink: 0;
    width: 42px; height: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, #64748b, #94a3b8);
    position: relative;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.vw-menu-btn-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    margin: auto;
    width: 18px; height: 18px;
    background: #fff;
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
}

.vw-menu-icon-home { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.vw-menu-icon-home::after { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath d='M3 12l9-9 9 9M5 10v10h14V10'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath d='M3 12l9-9 9 9M5 10v10h14V10'/%3E%3C/svg%3E"); }

.vw-menu-icon-offers { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.vw-menu-icon-offers::after { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath d='M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath d='M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2'/%3E%3C/svg%3E"); }

.vw-menu-icon-settings { background: linear-gradient(135deg, #0ea5e9, #0284c7); }
.vw-menu-icon-settings::after { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath d='M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath d='M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E"); }

.vw-menu-icon-fields { background: linear-gradient(135deg, #10b981, #059669); }
.vw-menu-icon-fields::after { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath d='M4 6h16M4 10h16M4 14h16M4 18h16'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath d='M4 6h16M4 10h16M4 14h16M4 18h16'/%3E%3C/svg%3E"); }

.vw-menu-icon-custom { background: linear-gradient(135deg, #14b8a6, #0d9488); }
.vw-menu-icon-custom::after { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath d='M12 4v16m8-8H4'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath d='M12 4v16m8-8H4'/%3E%3C/svg%3E"); }

.vw-menu-icon-call { background: linear-gradient(135deg, #f59e0b, #d97706); }
.vw-menu-icon-call::after { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath d='M3 5a2 2 0 012-2h3.28a1 1 0 01.948.684l1.498 4.493a1 1 0 01-.502 1.21l-2.257 1.13a11.042 11.042 0 005.516 5.516l1.13-2.257a1 1 0 011.21-.502l4.493 1.498a1 1 0 01.684.949V19a2 2 0 01-2 2h-1C9.716 21 3 14.284 3 6V5z'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath d='M3 5a2 2 0 012-2h3.28a1 1 0 01.948.684l1.498 4.493a1 1 0 01-.502 1.21l-2.257 1.13a11.042 11.042 0 005.516 5.516l1.13-2.257a1 1 0 011.21-.502l4.493 1.498a1 1 0 01.684.949V19a2 2 0 01-2 2h-1C9.716 21 3 14.284 3 6V5z'/%3E%3C/svg%3E"); }

.vw-menu-icon-call-custom { background: linear-gradient(135deg, #f97316, #ea580c); }
.vw-menu-icon-call-custom::after { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath d='M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath d='M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z'/%3E%3C/svg%3E"); }

.vw-menu-icon-docs { background: linear-gradient(135deg, #6366f1, #4f46e5); }
.vw-menu-icon-docs::after { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath d='M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath d='M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z'/%3E%3C/svg%3E"); }

.vw-menu-btn-text { display: flex; flex-direction: column; min-width: 0; flex: 1; text-align: left; }
.vw-menu-btn-label { font-size: 0.9rem; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
.vw-menu-btn-meta {
    font-size: 0.72rem; font-weight: 500; color: #64748b !important;
    margin-top: 0.15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vw-menu-btn-arrow {
    flex-shrink: 0;
    font-size: 1.35rem; font-weight: 700; line-height: 1;
    color: #94a3b8 !important;
    opacity: 0.8;
    margin-left: 0.15rem;
}
.vertical-workspace .vw-sidebar a.vw-menu-btn:hover .vw-menu-btn-arrow,
.advertiser-workspace .vw-sidebar a.vw-menu-btn:hover .vw-menu-btn-arrow,
.affiliate-workspace .vw-sidebar a.vw-menu-btn:hover .vw-menu-btn-arrow {
    color: #2563eb !important;
}
.affiliate-workspace .vw-sidebar a.vw-menu-btn:hover .vw-menu-btn-arrow {
    color: #059669 !important;
}

@media (min-width: 1101px) and (max-width: 1280px) {
    .vw-body { grid-template-columns: 260px 1fr; }
}
@media (max-width: 1100px) {
    .vw-menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.5rem; }
    .vw-menu-group { margin-bottom: 0.25rem; }
}

.vw-main { padding: 1.5rem; overflow-x: auto; }
.vw-hero {
    display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem;
    padding: 1rem 1.25rem; background: var(--card); border-radius: 12px;
    border: 1px solid var(--border); box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
.vw-hero-icon { font-size: 2rem; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #3b82f6, #6366f1); color: #fff; border-radius: 12px; }
.vw-hero-meta { font-size: 0.8rem; color: var(--muted); }
.vw-hero-name { font-size: 1.5rem; font-weight: 700; color: var(--primary); line-height: 1.2; }

.vw-panel-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; }
.vw-panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; flex-wrap: wrap; gap: 0.5rem; }
.vw-panel-head .vw-panel-title { margin-bottom: 0; }

.sub-tabs {
    display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.25rem;
    padding: 0.35rem; background: #f1f5f9; border-radius: 12px; border: 1px solid var(--border);
}
.vertical-workspace .sub-tabs a,
.advertiser-workspace .sub-tabs a,
.affiliate-workspace .sub-tabs a,
.vertical-workspace .sub-tabs a:visited,
.advertiser-workspace .sub-tabs a:visited,
.affiliate-workspace .sub-tabs a:visited {
    display: inline-block;
    padding: 0.55rem 1rem;
    color: #475569 !important;
    text-decoration: none !important;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid transparent;
    background: transparent;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.vertical-workspace .sub-tabs a:hover,
.advertiser-workspace .sub-tabs a:hover,
.affiliate-workspace .sub-tabs a:hover {
    text-decoration: none !important;
    background: #fff;
    color: #0f172a !important;
    border-color: #e2e8f0;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}
.vertical-workspace .sub-tabs a.active,
.advertiser-workspace .sub-tabs a.active,
.vertical-workspace .sub-tabs a.active:hover,
.advertiser-workspace .sub-tabs a.active:hover,
.vertical-workspace .sub-tabs a.active:visited,
.advertiser-workspace .sub-tabs a.active:visited {
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: #fff !important;
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}
.affiliate-workspace .sub-tabs a.active,
.affiliate-workspace .sub-tabs a.active:hover,
.affiliate-workspace .sub-tabs a.active:visited {
    background: linear-gradient(135deg, #059669, #10b981);
    color: #fff !important;
    border-color: #059669;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.settings-section { margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.settings-section:last-of-type { border-bottom: none; }
.settings-section h3 { font-size: 0.95rem; margin-bottom: 0.75rem; color: var(--text); }
.section-row { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 1rem; }

.rules-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.25rem; }
.rules-label { display: block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 0.5rem; }
.rules-label--sub { margin-top: 0.65rem; font-size: 0.72rem; color: #64748b; }
.rules-select {
    display: block;
    width: 100%;
    min-height: 2.5rem;
    padding: 0.5rem 2.25rem 0.5rem 0.75rem;
    font-size: 0.9rem;
    line-height: 1.35;
    color: var(--text);
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M2.5 4.5 6 8l3.5-3.5'/%3E%3C/svg%3E") no-repeat right 0.75rem center;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    appearance: none;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.rules-select:hover { border-color: #94a3b8; }
.rules-select:focus {
    outline: none;
    border-color: #818cf8;
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.2);
}
.rules-select:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    background-color: #f8fafc;
}
.rules-input-number {
    width: 5rem;
    min-height: 2.5rem;
    padding: 0.45rem 0.65rem;
    font-size: 0.9rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
}
.dup-rules-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem 1.5rem;
    align-items: start;
}
.dup-rules-block--fields { grid-column: 1 / -1; }
.dup-rules-block--across { grid-column: 1 / -1; max-width: 42rem; }
.dup-rules-radio-group { display: flex; flex-direction: column; gap: 0.35rem; }
.dup-across-entity { margin-top: 0.75rem; }
.dup-across-multi { margin-top: 0.75rem; }
.dup-across-panel.is-hidden,
.dup-across-entity[hidden],
.dup-across-multi[hidden] { display: none !important; }
.dup-rules-within { margin-top: 0.15rem; }
.dup-vertical-picker {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
}
.dup-vertical-picker-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 0.35rem;
}
.dup-vertical-list-box {
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    min-height: 160px;
    max-height: 220px;
    overflow-y: auto;
    padding: 0.35rem;
    background: #fff;
}
.dup-vertical-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.4rem 0.55rem;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--text);
    font: inherit;
    cursor: pointer;
}
.dup-vertical-item--selected {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
.dup-vertical-item:hover,
.dup-vertical-item.is-highlighted {
    background: #eef2ff;
}
.dup-vertical-picker-actions {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.dup-vertical-picker-actions .btn {
    min-width: 2.25rem;
    padding-left: 0.55rem;
    padding-right: 0.55rem;
}

.vertical-settings-section {
    margin-bottom: 1.75rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--border);
}
.vertical-settings-section:last-of-type {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.vertical-settings-section-head {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin: 0 0 1rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
}
.vertical-settings-section-head::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #cbd5e1;
}
.vertical-settings-inline-field {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
}
.vertical-settings-inline-field label {
    font-size: 0.88rem;
    color: var(--text);
    white-space: nowrap;
}
.vertical-settings-inline-field input[type="text"] {
    flex: 1;
    min-width: 12rem;
    max-width: 28rem;
    min-height: 2.35rem;
    padding: 0.45rem 0.75rem;
    font-size: 0.9rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
}
.vertical-settings-inline-field input[type="text"]:focus {
    outline: none;
    border-color: #818cf8;
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.18);
}
.vertical-settings-check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    gap: 0.7rem 2.5rem;
}
.vertical-settings-check-grid label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.88rem;
    color: var(--text);
    cursor: pointer;
    line-height: 1.35;
}
.vertical-settings-check-grid input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    margin: 0;
    flex-shrink: 0;
    accent-color: #2563eb;
}
.rules-within-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.rules-within-row .rules-input-number {
    width: 5.5rem;
    flex: 0 0 auto;
}
.rules-select-unit {
    width: auto;
    min-width: 7rem;
    flex: 0 0 auto;
}
.vertical-settings-section-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
}
.vertical-settings-check-line {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    font-size: 0.88rem;
    color: var(--text);
    cursor: pointer;
    line-height: 1.4;
}
.vertical-settings-check-line input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    margin: 0.15rem 0 0;
    flex-shrink: 0;
    accent-color: #2563eb;
}
.vertical-settings-check-line.is-disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
.vertical-settings-check-line.is-disabled input[type="checkbox"] {
    cursor: not-allowed;
}
.vertical-settings-check-stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
@media (max-width: 720px) {
    .vertical-settings-check-grid { grid-template-columns: 1fr; }
}

.system-settings-detail-grid {
    margin: 0;
    max-width: 36rem;
}
.list-page--system-settings-home .vertical-settings-section.card-inset {
    margin-bottom: 1.25rem;
}
.list-page--system-settings-home .system-settings-company-form {
    max-width: 40rem;
}

/* System Settings — Home */
.list-page--system-settings-home {
    max-width: 920px;
    margin: 0 auto;
    padding-bottom: 2rem;
}
.ss-home-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.75rem 2rem;
    margin-bottom: 1.5rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3730a3 45%, #6366f1 100%);
    color: #fff;
    box-shadow: 0 12px 40px rgba(49, 46, 129, 0.28);
    position: relative;
    overflow: hidden;
}
.ss-home-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
}
.ss-home-hero-content { position: relative; z-index: 1; }
.ss-home-hero-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.25);
    margin-bottom: 0.65rem;
}
.ss-home-hero-title {
    margin: 0 0 0.35rem;
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
}
.ss-home-hero-subtitle {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.88;
    max-width: 32rem;
    line-height: 1.5;
}
.ss-home-hero-icon {
    flex-shrink: 0;
    width: 4.5rem;
    height: 4.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
}
.ss-home-hero--prefs {
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 40%, #14b8a6 100%);
    box-shadow: 0 12px 40px rgba(13, 148, 136, 0.28);
}
.ss-home-select {
    display: block;
    width: 100%;
    min-height: 2.65rem;
    padding: 0.55rem 2.25rem 0.55rem 0.85rem;
    font-size: 0.92rem;
    color: var(--text);
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    background: #f8fafc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M2.5 4.5 6 8l3.5-3.5'/%3E%3C/svg%3E") no-repeat right 0.75rem center;
    appearance: none;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.ss-home-select:hover {
    border-color: #cbd5e1;
    background-color: #fff;
}
.ss-home-select:focus {
    outline: none;
    border-color: #818cf8;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.ss-home-section-icon--timezone {
    background: linear-gradient(135deg, #ccfbf1, #99f6e4);
    border: 1px solid #5eead4;
}
.ss-home-section-icon--datetime {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #fcd34d;
}
.ss-home-section-icon--numbers {
    background: linear-gradient(135deg, #fce7f3, #fbcfe8);
    border: 1px solid #f9a8d4;
}
.ss-prefs-form { display: block; }
.ss-prefs-card {
    padding: 0;
    border: 1px solid var(--border);
    background: #fff;
    overflow: hidden;
}
.ss-prefs-block {
    padding: 1.5rem 1.75rem 1.35rem;
    border-bottom: 1px solid #eef2f7;
}
.ss-prefs-block:last-of-type {
    border-bottom: none;
}
.ss-prefs-block-head {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.15rem;
}
.ss-prefs-block-title {
    margin: 0 0 0.2rem;
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}
.ss-prefs-block-desc {
    margin: 0;
    font-size: 0.84rem;
    color: var(--muted);
    line-height: 1.4;
}
.ss-prefs-timezone {
    max-width: 100%;
    margin-bottom: 0;
}
.ss-prefs-card .ss-home-form-grid .form-group { margin-bottom: 1rem; }
.ss-prefs-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.15rem 1.75rem;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-top: 1px solid var(--border);
}
@media (max-width: 768px) {
    .ss-prefs-block { padding: 1.15rem 1.15rem 1rem; }
    .ss-prefs-form-footer { flex-direction: column; align-items: stretch; padding: 1rem 1.15rem; }
    .ss-prefs-form-footer .btn { width: 100%; }
}
.ss-home-hero--logos {
    background: linear-gradient(135deg, #6d28d9 0%, #7c3aed 45%, #a78bfa 100%);
    box-shadow: 0 12px 40px rgba(109, 40, 217, 0.28);
}
.ss-home-section-icon--logo {
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
    border: 1px solid #c4b5fd;
}
.ss-home-section-icon--favicon {
    background: linear-gradient(135deg, #ffedd5, #fed7aa);
    border: 1px solid #fdba74;
}
.ss-logo-upload-row {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    flex-wrap: wrap;
}
.ss-logo-preview {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
}
.ss-logo-preview--logo {
    min-width: 160px;
    min-height: 70px;
    max-width: 320px;
}
.ss-logo-preview--logo img {
    max-width: 300px;
    max-height: 70px;
    width: auto;
    height: auto;
    object-fit: contain;
}
.ss-logo-preview--favicon {
    width: 64px;
    height: 64px;
}
.ss-logo-preview--favicon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}
.ss-logo-file-field {
    flex: 1;
    min-width: 220px;
    margin-bottom: 0;
}
.ss-logo-file-input {
    display: block;
    width: 100%;
    padding: 0.65rem 0.85rem;
    font-size: 0.88rem;
    color: var(--text);
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    background: #f8fafc;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.ss-logo-file-input:hover {
    border-color: #cbd5e1;
    background: #fff;
}
.ss-logo-file-input:focus {
    outline: none;
    border-color: #818cf8;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.ss-prefs-instructions {
    padding: 1.1rem 1.75rem 1.25rem;
    background: #f8fafc;
    border-top: 1px solid #eef2f7;
    font-size: 0.86rem;
    color: #475569;
    line-height: 1.55;
}
.ss-prefs-instructions strong {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
}
.ss-prefs-instructions p { margin: 0 0 0.35rem; }
.ss-prefs-instructions p:last-child { margin-bottom: 0; }
.ss-prefs-instructions-label {
    font-weight: 600;
    color: #334155;
}
@media (max-width: 768px) {
    .ss-prefs-instructions { padding: 1rem 1.15rem; }
}
.ss-home-hero--security {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 45%, #334155 100%);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.32);
}
.ss-home-section-icon--2fa {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    border: 1px solid #93c5fd;
}
.ss-home-section-icon--access {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    border: 1px solid #86efac;
}
.ss-home-section-icon--api {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #fcd34d;
}
.ss-home-section-icon--whitelist {
    background: linear-gradient(135deg, #fce7f3, #fbcfe8);
    border: 1px solid #f9a8d4;
}
.ss-security-check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 0.75rem 2rem;
}
.ss-security-api-block {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}
.ss-security-api-access { margin: 0; }
.ss-security-api-key label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.4rem;
}
.ss-security-api-key-row {
    display: flex;
    align-items: stretch;
    gap: 0.65rem;
    flex-wrap: wrap;
}
.ss-security-api-key-row .ss-home-input {
    flex: 1;
    min-width: 12rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.85rem;
}
.ss-security-field-hint {
    margin: 0.45rem 0 0;
    font-size: 0.8rem;
    color: var(--muted);
}
.ss-security-textarea {
    min-height: 6.5rem;
    resize: vertical;
    line-height: 1.45;
}
.ss-security-key-flash {
    margin-bottom: 1.25rem;
    padding: 1rem 1.15rem;
    border-radius: 10px;
    border: 1px solid #93c5fd;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: #1e3a8a;
}
.ss-security-key-flash strong {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.92rem;
}
.ss-security-key-flash p {
    margin: 0 0 0.65rem;
    font-size: 0.84rem;
}
.ss-security-key-flash-row {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
    align-items: stretch;
}
.ss-security-key-flash-row .ss-home-input {
    flex: 1;
    min-width: 14rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.85rem;
}
@media (max-width: 768px) {
    .ss-security-check-grid { grid-template-columns: 1fr; }
    .ss-security-api-key-row .btn { width: 100%; }
}
.ss-home-hero--tracking {
    background: linear-gradient(135deg, #134e4a 0%, #0f766e 45%, #14b8a6 100%);
    box-shadow: 0 12px 40px rgba(15, 118, 110, 0.28);
}
.ss-home-section-icon--urls {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    border: 1px solid #93c5fd;
}
.ss-home-section-icon--ips {
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    border: 1px solid #a5b4fc;
}
.ss-tracking-card { margin-top: 0; }
.ss-tracking-readonly-grid .ss-home-input {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.85rem;
    background: #f8fafc;
    color: #334155;
    cursor: default;
}
.ss-tracking-copy-row {
    display: flex;
    align-items: stretch;
    gap: 0.65rem;
    flex-wrap: wrap;
}
.ss-tracking-copy-row .ss-home-input {
    flex: 1;
    min-width: 12rem;
}
.ss-tracking-textarea {
    min-height: 6.5rem;
    resize: none;
    line-height: 1.5;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.85rem;
    background: #f8fafc;
    color: #334155;
    cursor: default;
}
.ss-tracking-footer {
    border-top: 1px solid #eef2f7;
    padding-top: 1.15rem;
}
@media (max-width: 768px) {
    .ss-tracking-copy-row .btn { width: 100%; }
}
.ss-home-hero--domains {
    background: linear-gradient(135deg, #312e81 0%, #4338ca 45%, #6366f1 100%);
    box-shadow: 0 12px 40px rgba(67, 56, 202, 0.28);
}
.ss-home-hero--emails {
    background: linear-gradient(135deg, #7c2d12 0%, #c2410c 45%, #ea580c 100%);
    box-shadow: 0 12px 40px rgba(194, 65, 12, 0.28);
}
.ss-home-hero--vat {
    background: linear-gradient(135deg, #713f12 0%, #a16207 45%, #ca8a04 100%);
    box-shadow: 0 12px 40px rgba(161, 98, 7, 0.28);
}
.ss-home-hero--lead-fields {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 45%, #3b82f6 100%);
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.28);
}
.ss-home-hero--integrations {
    background: linear-gradient(135deg, #581c87 0%, #7e22ce 45%, #a855f7 100%);
    box-shadow: 0 12px 40px rgba(126, 34, 206, 0.28);
}
.ss-home-section-icon--domains {
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    border: 1px solid #a5b4fc;
}
.ss-home-section-icon--emails {
    background: linear-gradient(135deg, #ffedd5, #fed7aa);
    border: 1px solid #fdba74;
}
.ss-home-section-icon--vat {
    background: linear-gradient(135deg, #fef9c3, #fde68a);
    border: 1px solid #fcd34d;
}
.ss-home-section-icon--lead-fields {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    border: 1px solid #93c5fd;
}
.ss-home-section-icon--integrations {
    background: linear-gradient(135deg, #f3e8ff, #e9d5ff);
    border: 1px solid #d8b4fe;
}
.ss-repeatable-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}
.ss-repeatable-row {
    display: flex;
    align-items: flex-end;
    gap: 0.65rem;
    flex-wrap: wrap;
}
.ss-repeatable-field {
    flex: 1;
    min-width: 14rem;
    margin: 0;
}
.ss-repeatable-row-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.4rem;
}
.ss-prefs-list-wrap {
    overflow-x: auto;
    border: 1px solid #eef2f7;
    border-radius: 10px;
}
.ss-prefs-list-table {
    margin: 0;
    width: 100%;
}
.ss-prefs-list-table th {
    background: #f8fafc;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
}
.ss-prefs-list-table td {
    vertical-align: middle;
    font-size: 0.9rem;
}
.ss-prefs-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.82rem;
    background: #f1f5f9;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    color: #334155;
}
.ss-prefs-code--inline {
    display: inline-block;
    margin-left: 0.45rem;
    font-size: 0.75rem;
}
.ss-prefs-badge {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}
.ss-prefs-badge--yes {
    background: #dcfce7;
    color: #166534;
}
.ss-prefs-badge--no {
    background: #f1f5f9;
    color: #64748b;
}
.ss-prefs-integration-name {
    font-weight: 600;
    color: #1e293b;
}
.ss-prefs-desc-cell {
    color: #64748b;
    font-size: 0.86rem;
    line-height: 1.45;
    max-width: 28rem;
}
@media (max-width: 768px) {
    .ss-repeatable-row .ss-repeatable-remove { width: 100%; }
}
.ss-home-toast {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1.15rem;
    margin-bottom: 1.25rem;
    border-radius: 10px;
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border: 1px solid #6ee7b7;
    color: #065f46;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.12);
    animation: ss-home-toast-in 0.35s ease-out;
}
@keyframes ss-home-toast-in {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.ss-home-toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: #10b981;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}
.ss-home-section {
    margin-bottom: 1.5rem;
}
.ss-home-section--form {
    padding: 1.5rem 1.75rem 1.25rem;
    border: 1px solid var(--border);
    background: #fff;
}
.ss-home-section-head {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.35rem;
}
.ss-home-section-icon {
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    border-radius: 10px;
}
.ss-home-section-icon--account {
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
    border: 1px solid #c4b5fd;
}
.ss-home-section-icon--company {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    border: 1px solid #93c5fd;
}
.ss-home-section-title {
    margin: 0 0 0.2rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}
.ss-home-section-desc {
    margin: 0;
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.4;
}
.ss-home-account-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.ss-home-info-card {
    padding: 1.15rem 1.25rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #fff;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.ss-home-info-card:hover {
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}
.ss-home-info-card--name { border-top: 3px solid #6366f1; }
.ss-home-info-card--id { border-top: 3px solid #8b5cf6; }
.ss-home-info-card--status { border-top: 3px solid #10b981; }
.ss-home-info-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin-bottom: 0.45rem;
}
.ss-home-info-value {
    display: block;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.35;
    word-break: break-word;
}
.ss-home-info-value--mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 1.15rem;
    color: #4338ca;
}
.ss-home-status-pill {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: capitalize;
}
.ss-home-status-pill--active {
    background: #dcfce7;
    color: #166534;
}
.ss-home-status-pill--trial {
    background: #fef3c7;
    color: #92400e;
}
.ss-home-status-pill--suspended {
    background: #fee2e2;
    color: #991b1b;
}
.ss-home-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 1.25rem;
}
.ss-home-form-grid .form-group { margin-bottom: 1.1rem; }
.ss-home-form-grid .form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.4rem;
}
.ss-home-input {
    width: 100%;
    min-height: 2.65rem;
    padding: 0.55rem 0.85rem;
    font-size: 0.92rem;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    background: #f8fafc;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.ss-home-input:hover {
    border-color: #cbd5e1;
    background: #fff;
}
.ss-home-input:focus {
    outline: none;
    border-color: #818cf8;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.ss-home-input::placeholder { color: #94a3b8; }
.ss-home-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}
.ss-home-form-hint {
    margin: 0;
    font-size: 0.82rem;
    color: var(--muted);
}
@media (max-width: 768px) {
    .ss-home-hero {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.35rem 1.25rem;
    }
    .ss-home-hero-icon { display: none; }
    .ss-home-account-grid { grid-template-columns: 1fr; }
    .ss-home-form-grid { grid-template-columns: 1fr; }
    .ss-home-section--form { padding: 1.15rem 1.15rem 1rem; }
    .ss-home-form-footer { flex-direction: column; align-items: stretch; }
    .ss-home-form-footer .btn { width: 100%; }
}

.checkbox-row { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; }
.checkbox-row label, .radio-line { font-size: 0.9rem; display: flex; align-items: center; gap: 0.35rem; cursor: pointer; }
.radio-line { margin-bottom: 0.35rem; }
.inline-inputs { display: flex; align-items: center; gap: 0.5rem; }
.inline-inputs input { width: 80px; }

.check-card {
    display: flex; align-items: flex-start; gap: 0.5rem; padding: 0.75rem 1rem;
    border: 1px solid var(--border); border-radius: 8px; background: #fafbfc; cursor: pointer;
}
.check-card-lg { padding: 1rem 1.25rem; }
.check-card-body { display: flex; flex-direction: column; gap: 0.2rem; }
.check-card-title { font-weight: 600; color: var(--text); }
.check-card-hint { font-size: 0.85rem; color: var(--muted); line-height: 1.4; }
.portal-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.75rem;
}
.weekday-checkbox-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.check-card-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem;
    min-width: auto;
}
.pp-repeatable-row { margin-bottom: 0.5rem; }
.check-card:hover { border-color: #93c5fd; background: #f0f9ff; }
.checkbox-grid { display: grid; gap: 0.75rem; }
.checkbox-stack { display: flex; flex-direction: column; gap: 0.75rem; }

.status-dot {
    display: inline-block; width: 10px; height: 10px; border-radius: 50%;
    background: #cbd5e1; vertical-align: middle;
}
.status-dot.on { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25); }

.table-wrap { overflow-x: auto; }
/* Keep horizontal + vertical scrollbars visible together (no need to scroll to table end first). */
.table-wrap--dual-scroll {
    max-height: min(62vh, calc(100vh - 16rem));
    overflow: auto;
    overscroll-behavior: contain;
}
.table-wrap--dual-scroll > .table-modern {
    margin-bottom: 0;
}
.table-wrap--dual-scroll > .table-modern > thead > tr > th {
    position: sticky;
    top: 0;
    z-index: 3;
    background: #f8fafc;
    box-shadow: 0 1px 0 var(--border);
}
.table-footer { padding: 0.65rem 1rem; font-size: 0.8rem; color: var(--muted); border-top: 1px solid var(--border); background: #f8fafc; }
.card.card-inset.table-wrap--dual-scroll + .table-footer {
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 10px 10px;
    margin-top: -1px;
}
.actions-cell { white-space: nowrap; }
.btn-icon { background: none; border: none; cursor: pointer; font-size: 1rem; padding: 0.2rem 0.4rem; color: var(--primary); }
.btn-icon-danger { color: var(--danger); }
.inline-form { display: inline; }

.form-group-full { grid-column: 1 / -1; }
.fieldset { border: 1px solid var(--border); border-radius: 8px; padding: 1rem 1.25rem; margin-bottom: 1rem; }
.fieldset legend { font-weight: 600; padding: 0 0.35rem; font-size: 0.9rem; }

.modal-header {
    display: flex; justify-content: space-between; align-items: center;
    margin: -0.25rem 0 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border);
}
.modal-header h2 { font-size: 1.15rem; margin: 0; }
.modal-close-x {
    background: #f1f5f9; border: none; width: 36px; height: 36px; border-radius: 50%;
    font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--muted);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.modal-close-x:hover { background: #fee2e2; color: var(--danger); }
.modal-sub { color: var(--muted); margin: -0.5rem 0 1rem; font-size: 0.9rem; }

.modal-backdrop { backdrop-filter: blur(4px); }
.modal {
    border-radius: 14px; box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
    border: 1px solid var(--border);
}
.modal-lg { max-width: var(--modal-width-lg); width: 96%; }
.modal-xl { max-width: var(--modal-width-xl); width: 96%; }
.modal-wide { max-width: var(--modal-width-wide); width: 96%; }

.empty-state { text-align: center; padding: 3rem 2rem; }
.empty-state-icon { font-size: 3rem; margin-bottom: 0.75rem; }
.empty-state h3 { margin-bottom: 0.5rem; }
.empty-state p { color: var(--muted); max-width: 420px; margin: 0 auto; }

.vw-stats { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.form-grid.two-col-head { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 900px) { .form-grid.two-col-head { grid-template-columns: 1fr; } }

.vw-menu-icon-campaigns { background: linear-gradient(135deg, #f59e0b, #d97706); }
.vw-menu-icon-campaigns::after { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath d='M20 7l-8-4-8 4m16 0l-8 4m8-4v10l-8 4m0-10L4 7m8 4v10M4 7v10l8 4'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath d='M20 7l-8-4-8 4m16 0l-8 4m8-4v10l-8 4m0-10L4 7m8 4v10M4 7v10l8 4'/%3E%3C/svg%3E"); }
.vw-menu-icon-contracts { background: linear-gradient(135deg, #6366f1, #4f46e5); }
.vw-menu-icon-contracts::after { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath d='M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath d='M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z'/%3E%3C/svg%3E"); }
.vw-menu-icon-contacts { background: linear-gradient(135deg, #ec4899, #db2777); }
.vw-menu-icon-contacts::after { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath d='M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath d='M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z'/%3E%3C/svg%3E"); }
.vw-menu-icon-invoices { background: linear-gradient(135deg, #0d9488, #0f766e); }
.vw-menu-icon-invoices::after { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath d='M12 8c-1.657 0-3 .895-3 2s1.343 2 3 2 3 .895 3 2-1.343 2-3 2m0-8c1.11 0 2.08.402 2.599 1M12 8V7m0 1v8m0 0v1m0-1c-1.11 0-2.08-.402-2.599-1M21 12a9 9 0 11-18 0 9 9 0 0118 0z'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath d='M12 8c-1.657 0-3 .895-3 2s1.343 2 3 2 3 .895 3 2-1.343 2-3 2m0-8c1.11 0 2.08.402 2.599 1M12 8V7m0 1v8m0 0v1m0-1c-1.11 0-2.08-.402-2.599-1M21 12a9 9 0 11-18 0 9 9 0 0118 0z'/%3E%3C/svg%3E"); }
.vw-menu-icon-card { background: linear-gradient(135deg, #f43f5e, #e11d48); }
.vw-menu-icon-card::after { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath d='M3 10h18M7 15h1m4 0h1m-7 4h12a3 3 0 003-3V8a3 3 0 00-3-3H6a3 3 0 00-3 3v8a3 3 0 003 3z'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath d='M3 10h18M7 15h1m4 0h1m-7 4h12a3 3 0 003-3V8a3 3 0 00-3-3H6a3 3 0 00-3 3v8a3 3 0 003 3z'/%3E%3C/svg%3E"); }
.vw-menu-icon-notes { background: linear-gradient(135deg, #eab308, #ca8a04); }
.vw-menu-icon-notes::after { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath d='M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2'%3E%3Cpath d='M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z'/%3E%3C/svg%3E"); }

.input-with-action { display: flex; gap: 0.5rem; align-items: center; }
.input-with-action input { flex: 1; }
.field-hint { font-size: 0.75rem; color: var(--muted); margin-left: 0.35rem; }
.token-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.token-list li { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 0; border-bottom: 1px solid var(--border); }
.token-list li:last-child { border-bottom: none; }

/* Campaign workspace menu (orange accent) */
.campaign-workspace .vw-sidebar a.vw-menu-btn,
.campaign-workspace .vw-sidebar a.vw-menu-btn:visited {
    display: flex; align-items: center; gap: 0.75rem; width: 100%; min-height: 52px;
    padding: 0.65rem 0.75rem; background: #fff; border: 2px solid #e2e8f0; border-radius: 12px;
    text-decoration: none !important; color: #0f172a !important; font-weight: 600;
}
.campaign-workspace .vw-sidebar a.vw-menu-btn:hover {
    border-color: #ea580c; box-shadow: 0 6px 16px rgba(234, 88, 12, 0.15); transform: translateY(-2px);
}
.campaign-workspace .vw-sidebar a.vw-menu-btn.is-active,
.campaign-workspace .vw-sidebar a.vw-menu-btn.is-active:hover,
.campaign-workspace .vw-sidebar a.vw-menu-btn.is-active:visited {
    border-color: #ea580c;
    background: linear-gradient(135deg, #ea580c 0%, #f59e0b 100%);
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(234, 88, 12, 0.35);
}
.campaign-workspace .vw-sidebar a.vw-menu-btn.is-active .vw-menu-btn-meta,
.campaign-workspace .vw-sidebar a.vw-menu-btn.is-active .vw-menu-btn-arrow { color: #fff !important; }
.campaign-workspace .vw-sidebar a.vw-menu-btn:hover .vw-menu-btn-arrow { color: #ea580c !important; }
.campaign-workspace .sub-tabs a,
.campaign-workspace .sub-tabs a:visited {
    display: inline-block; padding: 0.55rem 1rem; color: #475569 !important;
    text-decoration: none !important; font-size: 0.85rem; font-weight: 600; border-radius: 8px;
}
.campaign-workspace .sub-tabs a.active,
.campaign-workspace .sub-tabs a.active:hover,
.campaign-workspace .sub-tabs a.active:visited {
    background: linear-gradient(135deg, #ea580c, #f59e0b);
    color: #fff !important; border-color: #ea580c;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3);
}

/* Offer workspace menu (violet accent) */
.offer-workspace .vw-sidebar a.vw-menu-btn,
.offer-workspace .vw-sidebar a.vw-menu-btn:visited {
    display: flex; align-items: center; gap: 0.75rem; width: 100%; min-height: 52px;
    padding: 0.65rem 0.75rem; background: #fff; border: 2px solid #e2e8f0; border-radius: 12px;
    text-decoration: none !important; color: #0f172a !important; font-weight: 600;
}
.offer-workspace .vw-sidebar a.vw-menu-btn:hover {
    border-color: #7c3aed; box-shadow: 0 6px 16px rgba(124, 58, 237, 0.15); transform: translateY(-2px);
}
.offer-workspace .vw-sidebar a.vw-menu-btn.is-active,
.offer-workspace .vw-sidebar a.vw-menu-btn.is-active:hover,
.offer-workspace .vw-sidebar a.vw-menu-btn.is-active:visited {
    border-color: #7c3aed;
    background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.35);
}
.offer-workspace .vw-sidebar a.vw-menu-btn.is-active .vw-menu-btn-meta,
.offer-workspace .vw-sidebar a.vw-menu-btn.is-active .vw-menu-btn-arrow { color: #fff !important; }
.offer-workspace .vw-sidebar a.vw-menu-btn:hover .vw-menu-btn-arrow { color: #7c3aed !important; }
.offer-workspace .sub-tabs a,
.offer-workspace .sub-tabs a:visited {
    display: inline-block; padding: 0.55rem 1rem; color: #475569 !important;
    text-decoration: none !important; font-size: 0.85rem; font-weight: 600; border-radius: 8px;
}
.offer-workspace .sub-tabs a.active,
.offer-workspace .sub-tabs a.active:hover,
.offer-workspace .sub-tabs a.active:visited {
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    color: #fff !important; border-color: #7c3aed;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}
.hint-text { color: var(--muted); font-size: 0.9rem; margin: 0.5rem 0 1rem; }
.check-inline { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.9rem; }
.radio-row { display: flex; flex-wrap: wrap; gap: 1rem; margin: 0.75rem 0; }
.radio-row label { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 500; }

.contract-workspace { background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 45%, #f1f5f9 100%); }
.contract-workspace .vw-badge { color: #0369a1; background: #e0f2fe; }
.contract-workspace .vw-hero-icon { background: linear-gradient(135deg, #0284c7, #38bdf8); }
.contract-workspace .vw-hero-name { color: #075985; }
.contract-workspace .vw-sidebar a.vw-menu-btn,
.contract-workspace .vw-sidebar a.vw-menu-btn:visited {
    display: flex; align-items: center; gap: 0.75rem; width: 100%; min-height: 52px;
    padding: 0.65rem 0.75rem; background: #fff; border: 2px solid #e2e8f0; border-radius: 12px;
    text-decoration: none !important; color: #0f172a !important; font-weight: 600;
}
.contract-workspace .vw-sidebar a.vw-menu-btn:hover {
    border-color: #0284c7; box-shadow: 0 6px 16px rgba(2, 132, 199, 0.15); transform: translateY(-2px);
}
.contract-workspace .vw-sidebar a.vw-menu-btn.is-active,
.contract-workspace .vw-sidebar a.vw-menu-btn.is-active:hover,
.contract-workspace .vw-sidebar a.vw-menu-btn.is-active:visited {
    border-color: #0284c7;
    background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(2, 132, 199, 0.35);
}
.contract-workspace .vw-sidebar a.vw-menu-btn.is-active .vw-menu-btn-meta,
.contract-workspace .vw-sidebar a.vw-menu-btn.is-active .vw-menu-btn-arrow { color: #fff !important; }
.contract-workspace .vw-sidebar a.vw-menu-btn:hover .vw-menu-btn-arrow { color: #0284c7 !important; }
.contract-workspace .sub-tabs a,
.contract-workspace .sub-tabs a:visited {
    display: inline-block; padding: 0.55rem 1rem; color: #475569 !important;
    text-decoration: none !important; font-size: 0.85rem; font-weight: 600; border-radius: 8px;
}
.contract-workspace .sub-tabs a.active,
.contract-workspace .sub-tabs a.active:hover,
.contract-workspace .sub-tabs a.active:visited {
    background: linear-gradient(135deg, #0284c7, #38bdf8);
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

/* —— App shell & inner tabs (LeadsPedia-style) —— */
.pp-shell-body { overflow: hidden; }
.pp-shell-topbar { z-index: 200; }
.pp-main-nav a.pp-nav-open.is-active { color: var(--primary); font-weight: 700; background: #eff6ff; }
.pp-main-nav .pp-nav-trigger.is-active { color: var(--primary); font-weight: 700; background: #eff6ff; }
.pp-main-nav .pp-nav-submenu a.pp-nav-open.is-active { background: #eff6ff; color: var(--primary); font-weight: 600; }
.pp-main-nav .pp-nav-submenu-trigger.is-active { background: #eff6ff; color: var(--primary); font-weight: 600; }

.pp-inner-tab-bar {
    display: flex; align-items: flex-end; gap: 0.25rem; flex-wrap: nowrap;
    overflow-x: auto; padding: 0 0.75rem; min-height: 38px;
    background: #e8edf3; border-bottom: 1px solid #cbd5e1;
    position: sticky; top: 56px; z-index: 150;
}
.pp-inner-tab {
    display: inline-flex; align-items: center; gap: 0.35rem; flex-shrink: 0;
    border: 1px solid #cbd5e1; border-bottom: none; border-radius: 8px 8px 0 0;
    background: #dfe6ee; color: #334155; font-size: 0.82rem; font-weight: 600;
    padding: 0.45rem 0.55rem 0.45rem 0.85rem; cursor: pointer; max-width: 220px;
    margin-top: 4px; transition: background 0.15s, border-color 0.15s;
}
.pp-inner-tab:hover { background: #eef2f7; }
.pp-inner-tab.is-active {
    background: #fff; color: var(--primary); border-color: #93c5fd;
    box-shadow: inset 0 3px 0 var(--primary); margin-top: 0; padding-top: 0.55rem;
}
.pp-inner-tab-label {
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 160px;
}
.pp-inner-tab-close {
    display: inline-flex; align-items: center; justify-content: center;
    width: 18px; height: 18px; border-radius: 4px; font-size: 1rem; line-height: 1;
    color: #64748b; opacity: 0.85;
}
.pp-inner-tab-close:hover { background: #fee2e2; color: #dc2626; opacity: 1; }

.pp-tab-stage {
    position: relative; height: calc(100vh - 56px - 38px); overflow: hidden;
    background: var(--bg);
}
.pp-tab-panels { height: 100%; position: relative; }
.pp-tab-panel {
    display: none; height: 100%; overflow: auto; background: var(--bg);
}
.pp-tab-panel.is-active { display: block; }
.pp-tab-panel-inner { min-height: 100%; }
/* Leads list: fill tab height so table dual-scroll stays in view */
.pp-tab-panel.is-active:has(.list-page--leads) {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.pp-tab-panel.is-active:has(.list-page--leads) > .pp-tab-panel-inner,
.pp-tab-panel.is-active:has(.list-page--leads) .pp-tab-fragment {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.pp-tab-panel .content,
.pp-tab-panel-inner > .pp-tab-fragment > .content,
.pp-tab-fragment .content {
    max-width: none !important; padding: 0 !important; margin: 0 !important;
}
.pp-tab-panel .vertical-workspace,
.pp-tab-panel .advertiser-workspace,
.pp-tab-panel .affiliate-workspace,
.pp-tab-panel .campaign-workspace,
.pp-tab-panel .offer-workspace,
.pp-tab-panel .contract-workspace {
    min-height: calc(100vh - 56px - 38px);
}
.pp-tab-panel .page-header-modern,
.pp-tab-panel .page-header {
    max-width: 1280px; margin: 0 auto; padding: 1.25rem 1.5rem 0;
}
.pp-tab-panel .stats-grid {
    max-width: 1280px; margin: 0 auto; padding: 0 1.5rem 1rem;
}
.pp-tab-panel .card:not(.card-inset) {
    max-width: 1280px; margin: 0 auto 1.5rem;
}
.pp-tab-loading {
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    z-index: 50; pointer-events: none;
    display: none;
    overflow: hidden; background: transparent;
}
.pp-tab-loading:not([hidden]) {
    display: block;
}
.pp-tab-loading-spinner {
    display: block; width: 40%; height: 100%;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    animation: pp-tab-progress 0.9s ease-in-out infinite;
}
@keyframes pp-tab-progress {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(350%); }
}
.pp-tab-error { max-width: 480px; margin: 2rem auto; padding: 1.5rem; text-align: center; }

/* —— Floating workspace windows (detail pop-ups) —— */
.pp-window-layer {
    position: fixed; inset: 0; pointer-events: none; z-index: 350;
}
.pp-workspace-window {
    pointer-events: auto;
    position: fixed;
    top: calc(72px + var(--pp-win-offset, 0px));
    left: calc(40px + var(--pp-win-offset, 0px));
    width: min(var(--workspace-width), calc(100vw - 48px));
    height: min(var(--workspace-height), calc(100vh - 72px));
    display: flex; flex-direction: column;
    background: var(--card);
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16), 0 2px 8px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    box-sizing: border-box;
}
.pp-workspace-window .pp-modal-resize-handle {
    z-index: 40;
}
.pp-workspace-window--vertical {
    --workspace-width: 1380px;
}
.vw-field-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    align-items: center;
}
.vw-field-actions .btn-sm {
    font-size: 0.72rem;
    padding: 0.2rem 0.45rem;
    white-space: nowrap;
}
.vw-lead-fields-table .link-btn {
    background: none;
    border: none;
    padding: 0;
    color: var(--primary);
    cursor: pointer;
    font: inherit;
    text-align: left;
}
.vw-lead-fields-table .link-btn:hover {
    text-decoration: underline;
}
.vw-custom-fields-table .link-btn {
    padding: 0;
    border: 0;
    background: none;
    color: #2563eb;
    cursor: pointer;
    font: inherit;
    text-align: left;
}
.vw-custom-fields-table .link-btn:hover {
    text-decoration: underline;
}
.vw-default-lead-fields-table .link-btn {
    padding: 0;
    border: 0;
    background: none;
    color: #2563eb;
    cursor: pointer;
    font: inherit;
    text-align: left;
}
.vw-default-lead-fields-table .link-btn:hover {
    text-decoration: underline;
}
.vw-lead-fields-table .actions-cell {
    min-width: 420px;
}
.vw-validations-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.vw-validations-toolbar-left,
.vw-validations-toolbar-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.btn-danger-text {
    color: var(--danger);
}
.vw-validations-table-wrap {
    margin-bottom: 0;
}
.vw-validations-list-table .vw-val-icon-col {
    width: 2rem;
    text-align: center;
}
.vw-validation-icon {
    color: var(--primary);
    font-size: 0.95rem;
}
.vw-validations-list-table .link-btn {
    background: none;
    border: none;
    padding: 0;
    color: var(--primary);
    cursor: pointer;
    font: inherit;
    text-align: left;
}
.vw-validations-list-table .link-btn:hover {
    text-decoration: underline;
}
.vw-validation-section {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
}
.vw-validation-section:last-of-type {
    border-bottom: none;
}
.vw-validation-section-title {
    margin: 0 0 0.75rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #1e40af;
    text-transform: none;
}
.vw-add-validation-form .form-grid-single {
    grid-template-columns: 1fr;
}
.vw-add-validation-modal .form-actions {
    justify-content: flex-start;
    gap: 0.5rem;
}
.pp-workspace-window.is-dragging {
    user-select: none;
}
.pp-workspace-window.is-focused {
    border-color: #93c5fd;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24), 0 0 0 2px rgba(37, 99, 235, 0.25);
}
.pp-win-chrome {
    display: flex; align-items: center; justify-content: space-between; flex-shrink: 0;
    padding: 0.45rem 0.65rem 0.45rem 1rem;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
    border-bottom: 1px solid #cbd5e1;
    cursor: move;
}
.pp-win-title {
    font-size: 0.9rem; font-weight: 700; color: #0f172a;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 0.5rem;
}
.pp-win-close {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border: none; border-radius: 6px;
    background: transparent; color: #64748b; font-size: 1.35rem; line-height: 1;
    cursor: pointer; flex-shrink: 0;
}
.pp-win-close:hover { background: #fee2e2; color: #dc2626; }
.pp-win-body {
    flex: 1; min-height: 0; overflow: auto; background: var(--bg);
}
.pp-workspace-window .pp-content-inner > .pp-tab-fragment {
    display: block;
}
.pp-workspace-window .vertical-workspace,
.pp-workspace-window .advertiser-workspace,
.pp-workspace-window .affiliate-workspace,
.pp-workspace-window .campaign-workspace,
.pp-workspace-window .offer-workspace,
.pp-workspace-window .contract-workspace {
    min-height: 100%;
}
.pp-workspace-window .vw-topbar {
    position: sticky; top: 0; z-index: 20;
}

/* ── Dashboard ── */
.dashboard-header { margin-bottom: 0.25rem; }

.dashboard-stats .stat-card {
    position: relative;
    overflow: hidden;
    text-align: left;
    padding: 1.15rem 1.25rem;
    border-radius: 12px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.dashboard-stats .stat-card::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    border-radius: 12px 0 0 12px;
}
.dashboard-stats .stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}
.dashboard-stats .stat-card .value { font-size: 1.85rem; line-height: 1.1; display: block; margin-bottom: 0.25rem; }
.dashboard-stats .stat-card .label { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }

.stat-card--advertisers::before { background: linear-gradient(180deg, #7c3aed, #6366f1); }
.stat-card--advertisers .value { color: #6d28d9; }
.stat-card--affiliates::before { background: linear-gradient(180deg, #059669, #10b981); }
.stat-card--affiliates .value { color: #047857; }
.stat-card--offers::before { background: linear-gradient(180deg, #7c3aed, #a78bfa); }
.stat-card--offers .value { color: #5b21b6; }
.stat-card--campaigns::before { background: linear-gradient(180deg, #ea580c, #f97316); }
.stat-card--campaigns .value { color: #c2410c; }
.stat-card--contracts::before { background: linear-gradient(180deg, #0284c7, #38bdf8); }
.stat-card--contracts .value { color: #0369a1; }
.stat-card--verticals::before { background: linear-gradient(180deg, #db2777, #f472b6); }
.stat-card--verticals .value { color: #be185d; }
.stat-card--leads::before { background: linear-gradient(180deg, #0d9488, #2dd4bf); }
.stat-card--leads .value { color: #0f766e; }
.stat-card--pings::before { background: linear-gradient(180deg, #4f46e5, #818cf8); }
.stat-card--pings .value { color: #4338ca; }

.back-link {
    display: inline-block;
    margin-bottom: 0.35rem;
    font-size: 0.88rem;
    color: var(--muted);
    text-decoration: none;
}
.back-link:hover { color: var(--primary); }
.section-heading {
    margin: 1.5rem 0 0.75rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
}
.user-meta-card { margin-bottom: 0.5rem; }
.form-hint-block { margin: 0 0 1rem; }
.user-create-checks {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin: 0 0 1.15rem;
    padding: 0.85rem 1rem;
    border: 1px solid #eef2f7;
    border-radius: 10px;
    background: #f8fafc;
}
.user-create-checks .vertical-settings-check-line { margin: 0; }

.dashboard-quick {
    margin-top: 0.5rem;
    padding: 1.75rem 1.75rem 1.5rem;
    border-radius: 16px;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 55%, #f1f5f9 100%);
}
.dashboard-quick-intro {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}
.dashboard-quick-intro h2 {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
}
.dashboard-quick-intro p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    max-width: 42rem;
    line-height: 1.5;
}

.dashboard-quick-section { margin-bottom: 1.75rem; }
.dashboard-quick-section:last-child { margin-bottom: 0; }

.dashboard-quick-section-title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 1rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}
.dashboard-quick-section-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.dashboard-quick-section-dot--create { background: #10b981; box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2); }
.dashboard-quick-section-dot--manage { background: #6366f1; box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2); }
.dashboard-quick-section-dot--monitor { background: #0ea5e9; box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2); }

.dashboard-quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.85rem;
}
.dashboard-quick-grid--compact {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.dashboard-quick-grid--monitor {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    max-width: 640px;
}

.dashboard-quick-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.95rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.dashboard-quick-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
    text-decoration: none;
    color: inherit;
}
.dashboard-quick-card.is-manage { padding: 0.75rem 0.95rem; }

.dashboard-quick-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 10px;
    font-size: 1.25rem;
    flex-shrink: 0;
    background: #f1f5f9;
}
.dashboard-quick-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.dashboard-quick-label {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text);
    line-height: 1.3;
}
.dashboard-quick-desc {
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.35;
}
.dashboard-quick-arrow {
    flex-shrink: 0;
    font-size: 1rem;
    color: var(--muted);
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.15s ease, transform 0.15s ease;
}
.dashboard-quick-card:hover .dashboard-quick-arrow {
    opacity: 1;
    transform: translateX(0);
}

.qa-advertisers .dashboard-quick-icon { background: #f5f3ff; }
.qa-advertisers:hover { border-color: #c4b5fd; }
.qa-affiliates .dashboard-quick-icon { background: #ecfdf5; }
.qa-affiliates:hover { border-color: #6ee7b7; }
.qa-verticals .dashboard-quick-icon { background: #fdf2f8; }
.qa-verticals:hover { border-color: #f9a8d4; }
.qa-offers .dashboard-quick-icon { background: #ede9fe; }
.qa-offers:hover { border-color: #c4b5fd; }
.qa-campaigns .dashboard-quick-icon { background: #fff7ed; }
.qa-campaigns:hover { border-color: #fdba74; }
.qa-contracts .dashboard-quick-icon { background: #f0f9ff; }
.qa-contracts:hover { border-color: #7dd3fc; }
.qa-leads .dashboard-quick-icon { background: #f0fdf4; }
.qa-leads:hover { border-color: #86efac; }
.qa-pings .dashboard-quick-icon { background: #ecfeff; }
.qa-pings:hover { border-color: #67e8f9; }

@media (max-width: 640px) {
    .dashboard-quick { padding: 1.25rem; }
    .dashboard-quick-grid { grid-template-columns: 1fr; }
    .dashboard-quick-grid--monitor { max-width: none; }
}

/* ── List pages ── */
.list-page { --list-accent: #6366f1; --list-accent-soft: #eef2ff; }
.list-page--advertisers { --list-accent: #7c3aed; --list-accent-soft: #f5f3ff; }
.list-page--affiliates { --list-accent: #059669; --list-accent-soft: #ecfdf5; }
.list-page--verticals { --list-accent: #db2777; --list-accent-soft: #fdf2f8; }
.list-page--offers { --list-accent: #6d28d9; --list-accent-soft: #ede9fe; }
.list-page--campaigns { --list-accent: #ea580c; --list-accent-soft: #fff7ed; }
.list-page--contracts { --list-accent: #0284c7; --list-accent-soft: #f0f9ff; }

.list-alert {
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0.75rem 1rem; margin-bottom: 1rem;
    border-radius: 10px; font-size: 0.9rem;
}
.list-alert-error {
    background: #fef2f2; border: 1px solid #fecaca; color: #991b1b;
}

.list-toolbar {
    background: linear-gradient(135deg, #fff 0%, var(--list-accent-soft) 100%);
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}
.list-toolbar input[type="search"] { flex: 1; min-width: 200px; }

.list-card {
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
}
.list-card-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, #fff 0%, var(--list-accent-soft) 120%);
}
.list-card-title {
    font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.06em; color: var(--muted);
}
.list-card-count {
    font-size: 0.85rem; font-weight: 600; color: var(--list-accent);
    background: #fff; border: 1px solid var(--border);
    padding: 0.25rem 0.65rem; border-radius: 999px;
}
.list-table-wrap { overflow-x: auto; }
/* Keep horizontal + vertical scrollbars visible together on long lead lists. */
.list-table-wrap--dual-scroll {
    max-height: min(58vh, calc(100vh - 18rem));
    overflow: auto;
    overscroll-behavior: contain;
}
.list-table-wrap--dual-scroll > .list-table {
    width: max-content;
    min-width: 100%;
}
.list-table-wrap--dual-scroll > .list-table > thead > tr > th {
    position: sticky;
    top: 0;
    z-index: 3;
    background: #f8fafc;
    box-shadow: 0 1px 0 var(--border);
}

.list-table { margin: 0; width: 100%; border-collapse: separate; border-spacing: 0; }
.list-table thead th {
    position: sticky; top: 0; z-index: 1;
    background: #f8fafc;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.list-table tbody td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}
.list-table tbody tr {
    transition: background 0.12s ease;
}
.list-table tbody tr:hover {
    background: var(--list-accent-soft);
}
.list-table tbody tr:last-child td { border-bottom: none; }

.list-row-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2.25rem; height: 2.25rem;
    border-radius: 10px;
    background: var(--list-accent-soft);
    font-size: 1.05rem;
}
.list-actions-col { width: 56px; text-align: center; }
.list-actions-col--multi {
    width: auto;
    min-width: 5.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}
.list-row-delete-form { display: inline-block; margin: 0; }
.btn-list-duplicate {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2rem; height: 2rem;
    border: 1px solid transparent; border-radius: 8px;
    background: transparent; color: #94a3b8;
    cursor: pointer;
    transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.btn-list-duplicate:hover {
    background: #eff6ff; color: #2563eb; border-color: #bfdbfe;
}
.btn-list-delete {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2rem; height: 2rem;
    border: 1px solid transparent; border-radius: 8px;
    background: transparent; color: #94a3b8;
    cursor: pointer;
    transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.btn-list-delete:hover {
    background: #fef2f2; color: #dc2626; border-color: #fecaca;
}
.list-table-footer {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--border);
    font-size: 0.85rem; color: var(--muted);
    background: #fafafa;
}

.pp-confirm-modal .modal-sm { max-width: 420px; }
.pp-confirm-head { display: flex; align-items: center; gap: 0.65rem; margin-bottom: 0.75rem; }
.pp-confirm-head h3 { margin: 0; font-size: 1.15rem; }
.pp-confirm-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2rem; height: 2rem; border-radius: 50%;
    background: #fef2f2; color: #dc2626; font-size: 1rem;
}
.pp-confirm-message { color: var(--muted); line-height: 1.5; margin: 0 0 1.25rem; }
.pp-confirm-actions { justify-content: flex-end; }
.btn-danger { background: #dc2626; color: #fff; border-color: #dc2626; }
.btn-danger:hover { background: #b91c1c; border-color: #b91c1c; color: #fff; }

/* ── Offer create / edit form ── */
.offer-create-modal .modal-offer-create {
    max-width: var(--modal-shell-width);
    width: calc(100vw - 2rem);
    max-height: calc(100vh - 3rem);
    display: flex;
    flex-direction: column;
}
.offer-create-body {
    overflow-y: auto;
    max-height: calc(100vh - 12rem);
    padding: 0 0.25rem;
}
.offer-create-form .offer-form-section,
.offer-edit-card .offer-form-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}
.offer-create-form .offer-form-section:last-child,
.offer-edit-card .offer-form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}
.offer-form-section-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6d28d9;
    margin: 0 0 1rem;
    padding-left: 0.65rem;
    border-left: 3px solid #a78bfa;
}
.offer-type-readonly {
    background: #f8fafc;
    color: var(--muted);
    cursor: not-allowed;
}
.offer-conditional[hidden] { display: none !important; }
.contract-conditional[hidden] { display: none !important; }
.offer-create-actions {
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    margin-top: 0.5rem;
}
.offer-edit-card {
    padding: 1.25rem;
}

/* —— Multi-tenant portals —— */
.login-page--platform {
    background: linear-gradient(145deg, #0f172a 0%, #1e293b 50%, #312e81 100%);
}

/* Company login — single centered form */
.login-page--company {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: #f1f5f9;
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(99, 102, 241, 0.1), transparent);
}

.company-login {
    width: 100%;
    max-width: 400px;
    padding: 2rem 1.75rem;
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow:
        0 4px 6px -1px rgba(15, 23, 42, 0.06),
        0 20px 40px -12px rgba(15, 23, 42, 0.12);
}

.company-login__header {
    margin-bottom: 1.75rem;
    text-align: center;
}

.company-login__avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.company-login__welcome {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.company-login__subtitle {
    margin: 0;
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.45;
}

.company-login__form {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.company-login__field label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.4rem;
}

.company-login__input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.company-login__input-icon {
    position: absolute;
    left: 0.85rem;
    width: 18px;
    height: 18px;
    color: #94a3b8;
    pointer-events: none;
}

.company-login__input-wrap input {
    width: 100%;
    padding: 0.72rem 0.85rem 0.72rem 2.65rem;
    font-size: 0.9375rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    color: #0f172a;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.company-login__input-wrap input::placeholder {
    color: #94a3b8;
}

.company-login__input-wrap input:hover {
    border-color: #cbd5e1;
}

.company-login__input-wrap input:focus {
    outline: none;
    border-color: #6366f1;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.company-login__alert {
    margin-bottom: 1.15rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.875rem;
    line-height: 1.4;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.company-login__submit {
    margin-top: 0.35rem;
    width: 100%;
    padding: 0.78rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
    transition: transform 0.12s, box-shadow 0.15s;
}

.company-login__submit:hover {
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
    transform: translateY(-1px);
}

.company-login__submit:active {
    transform: translateY(0);
}

.company-login__submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.company-login__dev-hint {
    margin: 1.25rem 0 0;
    text-align: center;
    font-size: 0.7rem;
    color: #cbd5e1;
}

.login-portal-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6366f1;
    margin-bottom: 0.5rem;
}
.login-portal-badge--platform { color: #a5b4fc; }
.login-box--platform { background: #1e293b; color: #f1f5f9; border: 1px solid #334155; }
.login-box--platform h1 { color: #fff; }
.login-subtitle { color: #94a3b8; margin: 0 0 1rem; font-size: 0.92rem; }
.login-hint { margin-top: 1rem; font-size: 0.8rem; color: #64748b; text-align: center; }
.pp-shell-topbar--platform { background: linear-gradient(90deg, #0f172a, #1e293b); }
.pp-shell-topbar--platform .brand { color: #f8fafc; }
.pp-shell-topbar--platform .brand-accent { color: #a5b4fc; }
.brand-sub { font-size: 0.75rem; font-weight: 600; color: var(--muted); margin-left: 0.35rem; }
.list-alert-success {
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    color: #047857;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* Searchable select (combobox) */
.pp-search-select-native {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.pp-search-select-control {
    position: relative;
}

.pp-search-select-input {
    width: 100%;
    padding: 0.55rem 0.75rem;
    font-size: 0.9375rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--card);
    color: inherit;
}

.pp-search-select-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.pp-search-select-menu {
    position: absolute;
    z-index: 50;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    max-height: 220px;
    overflow-y: auto;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
}

.pp-search-select-option {
    display: block;
    width: 100%;
    padding: 0.55rem 0.75rem;
    border: none;
    background: transparent;
    text-align: left;
    font-size: 0.9rem;
    cursor: pointer;
    color: inherit;
}

.pp-search-select-option:hover,
.pp-search-select-option.is-selected {
    background: #eef2ff;
    color: #312e81;
}

.pp-search-select-empty {
    padding: 0.65rem 0.75rem;
    font-size: 0.85rem;
    color: var(--muted);
}

/* ── Analytics Dashboard ── */
.pp-analytics-dashboard {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding-bottom: 1.5rem;
}
.dash-analytics-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.dash-analytics-title {
    margin: 0 0 0.25rem;
    font-size: 1.65rem;
    font-weight: 700;
    color: #0f172a;
}
.dash-analytics-subtitle {
    margin: 0;
    color: #64748b;
    font-size: 0.92rem;
}
.dash-analytics-filters {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 0.85rem 1rem;
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}
.dash-filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 10rem;
}
.dash-filter-group label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
}
.dash-filter-group select {
    min-width: 11rem;
    padding: 0.5rem 0.65rem;
    border-radius: 8px;
    border: 1px solid #dbe3ee;
    background: #fff;
    font-size: 0.9rem;
}
.dash-filter-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.dash-analytics-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr);
    gap: 1.15rem;
    align-items: start;
}
.dash-analytics-main,
.dash-analytics-side {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}
.dash-card {
    padding: 1.1rem 1.15rem 1.15rem;
    border: 1px solid #eef2f7;
}
.dash-card-head {
    margin-bottom: 0.85rem;
}
.dash-card-head--split {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}
.dash-card-title {
    margin: 0 0 0.2rem;
    font-size: 1.02rem;
    font-weight: 700;
    color: #1e293b;
}
.dash-card-desc {
    margin: 0;
    font-size: 0.82rem;
    color: #64748b;
}
.dash-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.85rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid #eef2f7;
}
.dash-tabs--snapshot { margin-top: -0.25rem; }
.dash-tab {
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.dash-tab:hover { background: #f1f5f9; color: #334155; }
.dash-tab.is-active {
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    color: #4338ca;
}
.dash-chart-wrap {
    position: relative;
    height: 280px;
}
.dash-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    margin-top: 0.75rem;
}
.dash-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: #475569;
    font-weight: 600;
}
.dash-legend-swatch {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 3px;
}
.dash-pie-select {
    min-width: 8.5rem;
    padding: 0.4rem 0.55rem;
    border-radius: 8px;
    border: 1px solid #dbe3ee;
    font-size: 0.82rem;
}
.dash-pie-wrap {
    position: relative;
    height: 240px;
    margin-bottom: 0.75rem;
}
.dash-pie-legend {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}
.dash-pie-legend li {
    display: grid;
    grid-template-columns: 0.75rem 1fr auto;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.82rem;
}
.dash-pie-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
}
.dash-pie-name {
    color: #334155;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dash-pie-value {
    color: #64748b;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.dash-pie-legend-empty {
    color: #94a3b8;
    font-size: 0.84rem;
}
.dash-snapshot-panel { display: none; }
.dash-snapshot-panel.is-active { display: block; }
.dash-table-wrap {
    overflow-x: auto;
    border: 1px solid #eef2f7;
    border-radius: 10px;
}
.dash-table { margin: 0; width: 100%; }
.dash-table th {
    background: #f8fafc;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    white-space: nowrap;
}
.dash-table td {
    font-size: 0.88rem;
    vertical-align: middle;
}
.dash-table--compact td,
.dash-table--compact th { padding-top: 0.55rem; padding-bottom: 0.55rem; }
.dash-num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.dash-table-total td {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}
.dash-table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}
.dash-table-footer-left {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}
@media (max-width: 1100px) {
    .dash-analytics-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .dash-analytics-header { flex-direction: column; }
    .dash-analytics-filters { width: 100%; }
    .dash-filter-group { width: 100%; }
    .dash-filter-group select { width: 100%; }
    .dash-chart-wrap { height: 240px; }
}
.modal-section-title { margin: 0 0 0.75rem; font-size: 0.95rem; font-weight: 700; }
.link-muted { color: var(--muted); font-size: 0.85rem; }

/* System Settings modal */
.modal-system-settings {
    max-width: var(--modal-shell-width);
    width: 96%;
    max-height: 92vh;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.modal-system-settings .modal-header {
    padding: 1rem 1.25rem;
    margin: 0;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.ss-modal-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.65rem 1rem;
    border-bottom: 1px solid var(--border);
    background: #f8fafc;
    flex-shrink: 0;
}
.ss-modal-tab {
    border: 1px solid transparent;
    background: transparent;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.ss-modal-tab:hover {
    background: #eef2f7;
    color: var(--text);
}
.ss-modal-tab.is-active {
    background: #fff;
    color: #1d4ed8;
    border-color: #bfdbfe;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}
.ss-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.25rem 1.25rem;
    min-height: 240px;
}
.ss-modal-panel-inner .list-page--system-settings-home {
    max-width: none;
    margin: 0;
    padding-bottom: 0.5rem;
}
.ss-modal-loading {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--muted);
    font-size: 0.92rem;
}

/* Vertical Groups modal */
.modal-vertical-groups {
    max-width: var(--modal-shell-width);
    width: 96%;
    max-height: 92vh;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.modal-vertical-groups .modal-header {
    padding: 1rem 1.25rem;
    margin: 0;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.vg-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.25rem 1.25rem;
    min-height: 240px;
}
.vg-modal-panel-inner .list-page--in-modal {
    max-width: none;
    margin: 0;
    padding-bottom: 0.5rem;
}
.vg-modal-panel-inner .list-page--in-modal .page-header h1 {
    font-size: 1.15rem;
}
.vg-modal-loading {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--muted);
    font-size: 0.92rem;
}
.list-row-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.list-row-actions .list-row-delete-form {
    display: inline-flex;
    margin: 0;
}

/* Platform dashboard & company detail */
.platform-dashboard-page {
    max-width: 1280px;
    margin: 0 auto;
    padding-bottom: 2rem;
}
.platform-default-fields {
    display: grid;
    gap: 1.25rem;
    margin-top: 1.5rem;
}
.platform-fields-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.platform-fields-desc {
    margin: 0.35rem 0 0;
    color: var(--muted);
    font-size: 0.88rem;
    max-width: 42rem;
}
.pcw-onboard-links {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: 0.5rem;
    font-size: 0.92rem;
}
.input-readonly {
    background: #f8fafc;
    color: var(--muted);
    cursor: default;
}

.platform-company-workspace {
    max-width: 1280px;
    margin: 0 auto;
    padding-bottom: 2rem;
}
.pcw-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 55%, #eef2ff 100%);
    border: 1px solid var(--border);
    border-radius: 14px;
    margin-bottom: 1rem;
}
.pcw-topbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.pcw-topbar-left h1 {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.2;
}
.pcw-subtitle {
    margin: 0.2rem 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}
.pcw-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.pcw-topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}
.pcw-meta-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}
.pcw-meta-label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    font-weight: 700;
    margin-bottom: 0.25rem;
}
.pcw-meta-value,
.pcw-meta-link {
    font-size: 0.92rem;
    word-break: break-all;
}
.pcw-meta-item--wide {
    grid-column: span 2;
}
.pcw-tabs {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    padding: 0.35rem;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 12px;
}
.pcw-tab {
    border: none;
    background: transparent;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.55rem 1rem;
    border-radius: 8px;
    cursor: pointer;
}
.pcw-tab:hover {
    background: #eef2f7;
    color: var(--text);
}
.pcw-tab.is-active {
    background: #fff;
    color: #1d4ed8;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}
.pcw-panel {
    display: none;
}
.pcw-panel.is-active {
    display: block;
}
.pcw-panel-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 0.85rem;
}
.pcw-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}
.pcw-panel-head .pcw-panel-title {
    margin-bottom: 0;
}
.pcw-stats {
    margin-bottom: 1.25rem;
}
.pcw-stats--compact {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.pcw-settings-card {
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}
.pcw-url-grid {
    gap: 0.75rem 1.5rem;
}
.pcw-status-form .pcw-status-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.status-pill-trial {
    background: #fff7ed;
    color: #c2410c;
}

/* —— Test Ping Method modal —— */
.test-ping-modal {
    max-height: calc(100vh - 2.5rem);
    overflow-y: auto;
}

.test-ping-intro {
    margin: -0.35rem 0 1.25rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
    border: 1px solid #dbeafe;
    color: #334155;
    font-size: 0.9rem;
    line-height: 1.5;
}

.test-ping-section {
    margin-bottom: 1.25rem;
}

.test-ping-section-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #0369a1;
    margin: 0 0 0.85rem;
    padding-left: 0.65rem;
    border-left: 3px solid #38bdf8;
}

.test-ping-config-grid {
    margin-bottom: 0;
}

.test-ping-lead-toggle {
    width: 100%;
    margin: 0;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.test-ping-lead-toggle:has(input:checked) {
    border-color: #38bdf8;
    background: linear-gradient(135deg, #f0f9ff 0%, #ecfeff 100%);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.test-ping-lead-toggle input {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.test-ping-data-panel {
    margin-bottom: 0.5rem;
}

.test-ping-panel {
    padding: 1rem 1.1rem;
    background: #fafbfc;
}

.test-ping-panel-head {
    margin-bottom: 0.9rem;
}

.test-ping-panel-head h4 {
    margin: 0 0 0.25rem;
    font-size: 0.95rem;
    color: var(--text);
}

.test-ping-panel-head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.field-hint {
    margin: 0;
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.45;
}

.test-ping-field-count {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #0369a1;
    background: #e0f2fe;
}

.test-ping-fields-scroll {
    max-height: 280px;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.test-ping-fields-grid {
    margin-bottom: 0;
}

.test-ping-field-key {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.72rem;
    font-weight: 500;
    color: #94a3b8;
    letter-spacing: 0.02em;
}

.test-ping-empty-state {
    padding: 1.25rem 0.5rem;
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
}

.test-ping-actions {
    margin-top: 0.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.test-ping-status {
    margin-top: 0.85rem;
    padding: 0.7rem 0.9rem;
    border-radius: 8px;
    font-size: 0.88rem;
    line-height: 1.45;
    border: 1px solid var(--border);
    background: #f8fafc;
    color: #475569;
}

.test-ping-status.is-running {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}

.test-ping-status.is-success {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.test-ping-status.is-error {
    border-color: #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}

.test-ping-results {
    margin-top: 1rem;
    padding: 1rem 1.1rem;
    background: #fafbfc;
}

.test-ping-results-grid {
    margin-bottom: 0.5rem;
}

.test-ping-code {
    width: 100%;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.82rem;
    line-height: 1.45;
    background: #0f172a;
    color: #e2e8f0;
    border: 1px solid #1e293b;
    border-radius: 8px;
    padding: 0.75rem 0.85rem;
    resize: vertical;
}

.test-ping-results input[readonly] {
    background: #f8fafc;
    color: var(--text);
}

@media (max-width: 768px) {
    .pcw-meta-item--wide {
        grid-column: span 1;
    }

    .test-ping-fields-scroll {
        max-height: 220px;
    }
}

/* —— Leads list —— */
.list-page--leads { --list-accent: #0f766e; --list-accent-soft: #f0fdfa; }

/* Use full tab width (many columns) and keep both scrollbars in the visible area. */
.pp-tab-panel .list-page--leads {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    box-sizing: border-box;
    overflow: hidden;
    padding: 0 1rem 0.75rem;
}
.pp-tab-panel .list-page--leads > .page-header-modern,
.pp-tab-panel .list-page--leads > .page-header {
    max-width: none;
    margin: 0;
    padding: 1rem 0.25rem 0.5rem;
    flex-shrink: 0;
}
.pp-tab-panel .list-page--leads > .leads-toolbar,
.pp-tab-panel .list-page--leads > .toolbar-card {
    max-width: none;
    width: 100%;
    margin: 0 0 0.75rem;
    flex-shrink: 0;
}
.pp-tab-panel .list-page--leads > .list-card {
    max-width: none;
    width: 100%;
    margin: 0;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.pp-tab-panel .list-page--leads .list-card-header {
    flex-shrink: 0;
}
.pp-tab-panel .list-page--leads .list-table-wrap--dual-scroll {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow: auto;
    overscroll-behavior: contain;
}
.pp-tab-panel .list-page--leads .leads-footer,
.pp-tab-panel .list-page--leads .list-table-footer {
    flex-shrink: 0;
}

.leads-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
}

.leads-toolbar .leads-search {
    flex: 1 1 240px;
    min-width: 200px;
}

.leads-custom-dates {
    display: none;
    align-items: center;
    gap: 0.4rem;
}

.leads-custom-dates.is-visible { display: inline-flex; }

.leads-date-sep {
    color: var(--muted);
    font-size: 0.85rem;
}

.leads-check {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.88rem;
    color: var(--text);
    white-space: nowrap;
}

.leads-card-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.leads-card-actions { position: relative; }

.leads-col-picker { position: relative; }

.leads-col-picker-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 40;
    width: 220px;
    max-height: 320px;
    overflow: auto;
    padding: 0.65rem 0.75rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.leads-col-picker-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.leads-col-picker-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.28rem 0;
    font-size: 0.88rem;
    cursor: pointer;
}

.leads-table {
    table-layout: auto;
}
.leads-table th,
.leads-table td {
    white-space: nowrap;
    padding: 0.65rem 0.75rem;
}

.leads-table th.is-sortable a {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.leads-table th.is-sortable a::after {
    content: '↕';
    font-size: 0.7rem;
    opacity: 0.35;
}

.leads-table th.is-sorted-asc a::after { content: '↑'; opacity: 0.85; }
.leads-table th.is-sorted-desc a::after { content: '↓'; opacity: 0.85; }

.leads-table th[data-col-hidden="1"],
.leads-table td[data-col-hidden="1"] {
    display: none;
}

.leads-table tr.is-trashed {
    opacity: 0.72;
    background: #f8fafc;
}

.leads-trash-cell {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.leads-trash-btn {
    padding: 0.15rem 0.35rem;
    line-height: 1;
}

.leads-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.leads-pager {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.leads-page-label {
    font-size: 0.85rem;
    color: var(--muted);
}

@media (max-width: 900px) {
    .leads-custom-dates.is-visible {
        width: 100%;
        flex-wrap: wrap;
    }
}

/* —— Pings list + Selected Ping View —— */
.list-page--pings { --list-accent: #2563eb; --list-accent-soft: #eff6ff; }

.pings-token {
    font-size: 0.82rem;
    background: #f8fafc;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
}

.pings-msg-cell {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ping-workspace {
    background: #f3f4f6;
}

.ping-workspace .vw-topbar {
    background: #e5e7eb;
    border-bottom: 1px solid #d1d5db;
    padding: 0.55rem 0.85rem;
}

.ping-workspace .vw-badge {
    color: #1d4ed8;
    background: #dbeafe;
}

.ping-subbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.4rem 0.85rem;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

.ping-subbar-label {
    color: #6b7280;
    font-size: 0.88rem;
}

.ping-lead-info-btn {
    background: #fff;
    color: #374151;
    border: 1px solid #d1d5db;
    font-size: 0.88rem;
    padding: 0.28rem 0.75rem;
    text-decoration: none;
}

.ping-lead-info-btn:hover:not(.is-disabled):not([disabled]) {
    background: #f3f4f6;
    color: #111827;
}

.ping-lead-info-btn.is-disabled,
.ping-lead-info-btn[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

.pp-param-modal.modal {
    padding: 1.15rem 1.25rem 1.2rem;
}

.pp-param-form {
    padding: 0;
}

.pp-param-section {
    margin-bottom: 0.9rem;
    padding: 0.85rem 0.95rem 0.45rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.pp-param-section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 0.9rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: #1d4ed8;
    white-space: nowrap;
}

.pp-param-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #93c5fd;
}

.pp-param-row {
    display: grid;
    grid-template-columns: 8.75rem minmax(0, 1fr);
    gap: 0.55rem 0.9rem;
    align-items: center;
    margin-bottom: 0.75rem;
}

.pp-param-row > label:first-child {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 500;
    color: #475569;
}

.pp-param-control {
    min-width: 0;
}

.pp-param-input,
.pp-param-select {
    display: block;
    width: 100%;
    min-height: 2.5rem;
    padding: 0.5rem 0.85rem;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #0f172a;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.pp-param-input::placeholder {
    color: #94a3b8;
}

.pp-param-input:hover,
.pp-param-select:hover {
    border-color: #94a3b8;
}

.pp-param-input:focus,
.pp-param-select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.pp-param-select {
    appearance: none;
    padding-right: 2.4rem;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M2.5 4.5 6 8l3.5-3.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
}

.pp-param-input--order {
    max-width: 8.5rem;
}

.pp-param-row--check {
    align-items: center;
}

.pp-param-check {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0;
    padding: 0.45rem 0.75rem;
    width: fit-content;
    max-width: 100%;
    font-size: 0.88rem;
    font-weight: 500;
    color: #0f172a;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.pp-param-check:hover {
    border-color: #93c5fd;
    background: #eff6ff;
}

.pp-param-checkbox {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.pp-param-check-box {
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 4px;
    border: 2px solid #94a3b8;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.pp-param-check-box::after {
    content: '';
    width: 0.28rem;
    height: 0.52rem;
    border: solid transparent;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) translate(-1px, -1px);
}

.pp-param-checkbox:checked + .pp-param-check-box {
    background: #2563eb;
    border-color: #2563eb;
}

.pp-param-checkbox:checked + .pp-param-check-box::after {
    border-color: #fff;
}

.pp-param-checkbox:focus-visible + .pp-param-check-box {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

.pp-param-check:has(.pp-param-checkbox:checked) {
    border-color: #93c5fd;
    background: #eff6ff;
}

.pp-param-check-text {
    line-height: 1.3;
}

.pp-param-actions {
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.35rem;
    padding-top: 0.95rem;
    border-top: 1px solid #e5e7eb;
}

@media (max-width: 640px) {
    .pp-param-row,
    .pp-param-row--check {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }
}

.pp-ping-params-wrap {
    overflow-x: auto;
}
.pp-ping-params-table {
    min-width: 760px;
}
.pp-ping-params-table th {
    text-transform: none;
    letter-spacing: 0;
    white-space: nowrap;
    font-weight: 600;
    font-size: 0.78rem;
    color: #475569;
}
.pp-ping-params-table td {
    vertical-align: middle;
    font-size: 0.85rem;
    white-space: nowrap;
}
.pp-ping-params-name {
    font-weight: 600;
    color: #0f172a;
}
.pp-ping-params-edit-link {
    border: 0;
    background: none;
    padding: 0;
    color: #2563eb;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    text-align: left;
}
.pp-ping-params-edit-link:hover {
    text-decoration: underline;
    color: #1d4ed8;
}
.pp-ping-params-token {
    font-size: 0.8rem;
    background: #f1f5f9;
    border-radius: 4px;
    padding: 0.1rem 0.35rem;
    color: #334155;
}
.pp-ping-params-default {
    max-width: 11rem;
}
.pp-ping-params-default-text {
    display: inline-block;
    max-width: 11rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
    color: #334155;
}
.pp-ping-params-empty,
.pp-ping-params-no {
    color: #cbd5e1;
}
.pp-ping-params-order,
.pp-ping-params-flag,
.pp-ping-params-gear-cell {
    text-align: center;
}
.pp-ping-params-yes {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    background: #dcfce7;
    color: #15803d;
    font-weight: 700;
    font-size: 0.85rem;
}
.pp-ping-params-link {
    border: 0;
    background: none;
    padding: 0;
    color: #2563eb;
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}
.pp-ping-params-link:hover {
    text-decoration: underline;
    color: #1d4ed8;
}
.pp-ping-params-gear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #475569;
    width: 2rem;
    height: 2rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    padding: 0;
}
.pp-ping-params-gear:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8;
}
.pp-ping-params-gear-count {
    font-size: 0.68rem;
    font-weight: 700;
    color: #1d4ed8;
    min-width: 0.9rem;
}
.pp-ping-params-table .link-btn,
.pp-ping-params-list-field {
    border: 0;
    background: none;
    padding: 0;
    color: #2563eb;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    text-align: left;
}
.pp-ping-params-table .link-btn:hover,
.pp-ping-params-list-field:hover {
    text-decoration: underline;
    color: #1d4ed8;
}
.pp-ping-params-actions {
    text-align: right;
}

.pp-lead-tokens-modal {
    max-width: 520px;
    padding: 0 !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: min(86vh, 640px);
}

.pp-lead-tokens-modal .modal-header {
    margin: 0;
    padding: 0.7rem 0.9rem;
    border-bottom: 1px solid #d1d5db;
    background: #f8fafc;
}

.pp-lead-tokens-modal .modal-header h2 {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 1rem;
}

.pp-lead-tokens-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    font-style: italic;
    line-height: 1;
}

.pp-lead-tokens-table-wrap {
    overflow: auto;
    flex: 1;
    min-height: 280px;
    max-height: 420px;
    background: #fff;
}

.pp-lead-tokens-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.pp-lead-tokens-table th,
.pp-lead-tokens-table td {
    padding: 0.55rem 0.85rem;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

.pp-lead-tokens-table th:last-child,
.pp-lead-tokens-table td:last-child {
    border-left: 1px solid #e5e7eb;
}

.pp-lead-tokens-table thead th {
    position: sticky;
    top: 0;
    background: #f3f4f6;
    font-weight: 600;
    color: #374151;
    z-index: 1;
}

.pp-lead-token-btn {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    color: #1d4ed8;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.86rem;
    cursor: pointer;
}

.pp-lead-token-btn:hover {
    text-decoration: underline;
}

.pp-lead-tokens-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.45rem 0.75rem;
    border-top: 1px solid #d1d5db;
    background: #f8fafc;
}

.pp-lead-tokens-pager {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: #374151;
    font-size: 0.85rem;
}

.pp-lead-tokens-page-btn,
.pp-lead-tokens-refresh {
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    min-width: 1.7rem;
    height: 1.7rem;
    padding: 0 0.35rem;
    cursor: pointer;
    color: #334155;
    font-size: 0.85rem;
    line-height: 1;
}

.pp-lead-tokens-page-btn:hover,
.pp-lead-tokens-refresh:hover {
    background: #eff6ff;
    border-color: #93c5fd;
}

.pp-lead-tokens-page-label input {
    width: 2.4rem;
    height: 1.7rem;
    text-align: center;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 0.85rem;
    margin: 0 0.2rem;
}

.pp-lead-tokens-hint {
    margin: 0;
    padding: 0.4rem 0.85rem 0.65rem;
    font-size: 0.78rem;
    color: #64748b;
    background: #f8fafc;
    border-top: 1px solid #eef2f7;
}

.ping-hero {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

.ping-hero-mark {
    display: inline-flex;
    align-items: flex-end;
    gap: 0.2rem;
    width: 52px;
    height: 44px;
}

.ping-drop {
    display: block;
    width: 14px;
    height: 18px;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    background: #111827;
    transform: rotate(180deg);
}

.ping-drop:nth-child(1) { height: 14px; width: 11px; opacity: 0.85; }
.ping-drop:nth-child(2) { height: 20px; width: 15px; }
.ping-drop:nth-child(3) { height: 12px; width: 10px; opacity: 0.7; }

.ping-hero-id {
    font-size: 1.05rem;
    font-weight: 600;
    color: #111827;
}

.ping-hero-status {
    margin-top: 0.15rem;
    font-size: 1.05rem;
    font-weight: 600;
}

.ping-hero-status.is-accepted { color: #2563eb; }
.ping-hero-status.is-rejected { color: #dc2626; }

.ping-body {
    background: #fff;
}

.ping-sidebar {
    background: #f9fafb;
    border-right: 1px solid #e5e7eb;
    width: 220px;
    min-width: 200px;
}

.ping-menu {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.35rem 0.5rem 1rem;
}

.ping-menu-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.65rem;
    border-radius: 0 6px 6px 0;
    color: #374151;
    text-decoration: none;
    border-left: 3px solid transparent;
    font-size: 0.92rem;
}

.ping-menu-item:hover {
    background: #f3f4f6;
    color: #111827;
}

.ping-menu-item.is-active {
    background: #eff6ff;
    border-left-color: #2563eb;
    color: #1d4ed8;
    font-weight: 600;
}

.ping-menu-item .vw-menu-btn-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.ping-main {
    padding: 1rem 1.15rem 1.5rem;
    background: #fff;
}

.ping-section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 2rem;
    margin-bottom: 1.25rem;
}

.ping-section-title {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.85rem;
    padding-bottom: 0.35rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1d4ed8;
    border-bottom: 1px solid #e5e7eb;
}

.ping-field {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 0.45rem 0.65rem;
    align-items: center;
    margin-bottom: 0.55rem;
}

.ping-field label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #374151;
}

.ping-field input[readonly],
.ping-field textarea[readonly] {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #f9fafb;
    padding: 0.4rem 0.55rem;
    color: #111827;
    font-size: 0.9rem;
}

.ping-field-with-action {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.ping-field-with-action input { flex: 1; }

.ping-open-entity {
    background: #2563eb;
    color: #fff !important;
    border: none;
    min-width: 32px;
    padding: 0.35rem 0.45rem;
}

.ping-open-entity:hover { background: #1d4ed8; }

.ping-field--stack {
    grid-template-columns: 1fr;
}

.ping-response {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.82rem;
    min-height: 88px;
    resize: vertical;
}

.ping-param-value {
    max-width: 520px;
    word-break: break-word;
}

.ping-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #9ca3af;
}

.ping-dot.is-on { background: #ef4444; }

/* Contract delivery — E-Mail Delivery Options (Leadspedia-style) */
.delivery-email-fields {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 0.85rem;
    max-width: 52rem;
}
.delivery-email-field {
    display: grid;
    grid-template-columns: 6.5rem minmax(0, 1fr);
    align-items: center;
    gap: 0.75rem 1rem;
}
.delivery-email-field label {
    margin: 0;
    text-align: right;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text, #1e293b);
    white-space: nowrap;
}
.delivery-email-field input[type="text"],
.delivery-email-field select {
    width: 100%;
    min-height: 2.35rem;
    padding: 0.4rem 0.65rem;
    font-size: 0.9rem;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    background: #fff;
    box-sizing: border-box;
}
.delivery-email-field input[type="text"]:focus,
.delivery-email-field select:focus {
    outline: none;
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
[data-delivery-panel].is-hidden,
[data-delivery-panel][hidden] {
    display: none !important;
}

/* Lead Distributions → Info popup (post request/response) */
.lead-distribution-info-meta {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    color: var(--text, #1e293b);
    line-height: 1.5;
}
.lead-distribution-info .modal-section-title {
    margin: 1.1rem 0 0.45rem;
    font-size: 1rem;
    font-weight: 600;
}
.lead-distribution-info .modal-section-title:first-of-type {
    margin-top: 0.25rem;
}
.lead-distribution-info-label {
    margin: 0.65rem 0 0.3rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text, #1e293b);
}
.lead-distribution-info pre.pi-code,
.lead-distribution-info pre.lead-distribution-info-url,
.lead-distribution-info pre.lead-distribution-info-body,
.lead-distribution-info pre.lead-distribution-info-response {
    margin: 0;
    padding: 0.75rem 0.9rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.82rem;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 320px;
    overflow: auto;
}
.lead-distribution-info pre.lead-distribution-info-url {
    max-height: 4.5rem;
}

@media (max-width: 900px) {
    .ping-section-grid { grid-template-columns: 1fr; }
    .ping-body { flex-direction: column; }
    .ping-sidebar { width: 100%; }
    .ping-field { grid-template-columns: 1fr; }
    .delivery-email-field {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }
    .delivery-email-field label {
        text-align: left;
    }
}

/* Offer Integrations */
.pp-oi-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}
.pp-offer-integrations-table .link-primary {
    font-size: 0.875rem;
}

/* Create Offer Integration modal */
.modal.pp-oi-create-dialog,
.pp-oi-create-dialog.modal {
    max-width: 520px;
    width: min(520px, 96vw);
    padding: 0;
    overflow: hidden;
}
.pp-oi-create-dialog .pp-oi-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.85rem;
    margin: 0;
    padding: 1rem 1.35rem;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}
.pp-oi-create-dialog .pp-oi-modal-title-wrap {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    min-width: 0;
}
.pp-oi-create-dialog .pp-oi-modal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 8px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #2563eb;
    flex-shrink: 0;
}
.pp-oi-create-dialog .pp-oi-modal-heading {
    min-width: 0;
    padding-top: 0.05rem;
}
.pp-oi-create-dialog .pp-oi-modal-heading h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #0f172a;
}
.pp-oi-create-dialog .pp-oi-modal-sub {
    margin: 0.15rem 0 0;
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.35;
}
.pp-oi-create-dialog .pp-oi-create-form {
    padding: 1.15rem 1.35rem 0;
}
.pp-oi-create-dialog .pp-oi-section {
    padding: 0;
}
.pp-oi-create-dialog .pp-oi-section-head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0 0 1.25rem;
}
.pp-oi-create-dialog .pp-oi-section-title {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
}
.pp-oi-create-dialog .pp-oi-section-rule {
    display: block;
    flex: 1 1 auto;
    height: 2px;
    min-width: 2rem;
    border-radius: 999px;
    background: #3b82f6;
}

/* Leadspedia-style: label left, control right */
.pp-oi-create-dialog .pp-oi-form-grid {
    display: block;
    width: 100%;
    max-width: none;
}
.pp-oi-create-dialog .pp-oi-form-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start;
    gap: 0.85rem;
    margin: 0 0 1rem;
    width: 100%;
}
.pp-oi-create-dialog .pp-oi-form-row > label {
    flex: 0 0 7.25rem;
    width: 7.25rem;
    max-width: 7.25rem;
    text-align: right;
    margin: 0;
    padding-top: 0.55rem;
    color: #334155;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25;
}
.pp-oi-create-dialog .pp-oi-field {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
}
.pp-oi-create-dialog .pp-oi-form-row input,
.pp-oi-create-dialog .pp-oi-form-row select {
    display: block;
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100%;
    min-width: 0;
    height: 2.4rem;
    padding: 0.45rem 0.7rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    color: #0f172a;
    font-size: 0.875rem;
    line-height: 1.25;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.pp-oi-create-dialog .pp-oi-form-row input::placeholder {
    color: #94a3b8;
}
.pp-oi-create-dialog .pp-oi-form-row input:hover,
.pp-oi-create-dialog .pp-oi-form-row select:hover {
    border-color: #94a3b8;
}
.pp-oi-create-dialog .pp-oi-form-row input:focus,
.pp-oi-create-dialog .pp-oi-form-row select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16);
}
.pp-oi-create-dialog .pp-oi-prefix-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}
.pp-oi-create-dialog .pp-oi-prefix-wrap input {
    flex: 1 1 auto;
}
.pp-oi-create-dialog .pp-oi-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: #2563eb;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    font-style: italic;
    font-family: Georgia, "Times New Roman", serif;
    cursor: help;
    flex-shrink: 0;
    line-height: 1;
}
.pp-oi-create-dialog .pp-oi-info:hover {
    background: #1d4ed8;
}
.pp-oi-create-dialog .pp-oi-field-hint {
    margin: 0.4rem 0 0;
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.35;
}
.pp-oi-create-dialog .pp-oi-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.55rem;
    margin: 1.1rem -1.35rem 0;
    padding: 0.85rem 1.35rem 1rem;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}
.pp-oi-create-dialog .pp-oi-form-actions .pp-oi-save-btn[disabled] {
    opacity: 1;
    color: #64748b;
    background: #e2e8f0;
    border: 1px solid #e2e8f0;
    box-shadow: none;
    cursor: not-allowed;
}
.pp-oi-create-dialog .pp-oi-form-actions .pp-oi-save-btn:not([disabled]) {
    color: #fff;
    background: #2563eb;
    border: 1px solid #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}
.pp-oi-create-dialog .pp-oi-form-actions .pp-oi-save-btn:not([disabled]):hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}
.pp-oi-create-dialog .pp-oi-form-actions [data-modal-close] {
    background: #2563eb;
    border: 1px solid #2563eb;
    color: #fff;
    box-shadow: none;
}
.pp-oi-create-dialog .pp-oi-form-actions [data-modal-close]:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

/* Offer Integration workspace */
.offer-integration-workspace.oi-workspace-alert,
.offer-integration-workspace .oi-workspace-alert {
    margin: 0.75rem 1rem 0;
}
.offer-integration-workspace .oi-hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.offer-integration-workspace .oi-home-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 2rem;
}
.offer-integration-workspace .oi-notes-section {
    margin-top: 1.25rem;
    padding-top: 0.25rem;
}
.offer-integration-workspace .oi-settings-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0 0 1rem;
    align-items: center;
}
.offer-integration-workspace .oi-settings-toolbar .oi-test-btn {
    margin-left: auto;
}
.offer-integration-workspace .oi-url-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.offer-integration-workspace .oi-method-select {
    width: 7rem;
    flex-shrink: 0;
}
.offer-integration-workspace .oi-url-row input[type="url"] {
    flex: 1 1 auto;
    min-width: 0;
}
.offer-integration-workspace .oi-offers-pager {
    margin-top: 0;
    border-radius: 0 0 8px 8px;
}

/* Offer Integration Settings — Leadspedia-style nested modals */
.oi-list-modal.modal {
    width: min(860px, 96vw);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}
.oi-list-modal-header,
.oi-form-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    background: #fafafa;
}
.oi-list-modal-title,
.oi-form-modal-title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}
.oi-list-modal-title h2,
.oi-form-modal-title h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
}
.oi-list-modal-icon,
.oi-form-modal-icon {
    color: #4b5563;
    display: inline-flex;
    line-height: 1;
}
.oi-list-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 1rem;
    border-bottom: 1px solid #eef0f3;
    background: #fff;
}
.oi-list-toolbar-right {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}
.oi-list-link {
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    color: #2563eb;
    font: inherit;
    font-size: 0.875rem;
    cursor: pointer;
    text-decoration: none;
}
.oi-list-link:hover {
    text-decoration: underline;
}
.oi-list-link-muted {
    color: #9ca3af;
    cursor: default;
}
.oi-list-link-danger {
    color: #2563eb;
}
.oi-list-table-wrap {
    flex: 1 1 auto;
    overflow: auto;
    min-height: 180px;
    background: #fff;
}
.oi-list-table {
    width: 100%;
    border-collapse: collapse;
}
.oi-list-table th {
    background: #f3f4f6;
    font-weight: 600;
    font-size: 0.8rem;
    color: #4b5563;
    text-align: left;
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}
.oi-list-table td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #f0f1f3;
    font-size: 0.875rem;
    color: #374151;
    vertical-align: middle;
}
.oi-list-table .empty-state {
    text-align: center;
    color: #9ca3af;
    padding: 2rem 1rem;
}
.oi-col-icon {
    width: 2rem;
}
.oi-col-action {
    width: 2.25rem;
    text-align: center;
}
.oi-row-icon {
    color: #9ca3af;
    font-size: 0.85rem;
}
.oi-row-edit-btn {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    cursor: pointer;
    color: #2563eb;
}
.oi-row-edit-btn:hover {
    text-decoration: underline;
}
.oi-row-delete {
    color: #6b7280;
    font-size: 1rem;
    line-height: 1;
}
.oi-cell-truncate {
    max-width: 28rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.oi-list-pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.45rem 0.85rem;
    background: #f3f4f6;
    border-top: 1px solid #e5e7eb;
    font-size: 0.8rem;
    color: #4b5563;
}
.oi-list-pager-left {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.oi-pager-btn {
    color: #9ca3af;
    padding: 0 0.15rem;
}
.oi-pager-page input {
    width: 2rem;
    text-align: center;
    border: 1px solid #d1d5db;
    border-radius: 3px;
    padding: 0.1rem 0.2rem;
    font-size: 0.8rem;
}
.oi-pager-refresh {
    background: none;
    border: 0;
    cursor: pointer;
    color: #4b5563;
    font-size: 0.95rem;
    margin-left: 0.25rem;
}
.oi-interpret-failure,
.oi-interpret-error {
    color: #dc2626;
    font-weight: 600;
}
.oi-interpret-success {
    color: #16a34a;
    font-weight: 600;
}
.oi-interpret-reject {
    color: #d97706;
    font-weight: 600;
}

.oi-form-modal.modal {
    width: min(520px, 96vw);
    padding: 0;
}
.oi-lp-form {
    padding: 0.85rem 1.1rem 1rem;
}
.oi-lp-section {
    margin-bottom: 1rem;
}
.oi-lp-section-title {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e3a8a;
    border-bottom: 1px solid #1e3a8a;
    padding-bottom: 0.25rem;
}
.oi-lp-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.55rem;
}
.oi-lp-row > label {
    flex: 0 0 9.5rem;
    width: 9.5rem;
    max-width: 9.5rem;
    text-align: right;
    font-size: 0.875rem;
    color: #374151;
    margin: 0;
}
.oi-lp-row > label.oi-lp-required {
    color: #dc2626;
}
.oi-lp-control {
    flex: 1 1 auto;
    min-width: 0;
}
.oi-lp-control input,
.oi-lp-control select {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 0.4rem 0.55rem;
    font: inherit;
    font-size: 0.875rem;
    background: #fff;
}
.oi-lp-control input:focus,
.oi-lp-control select:focus {
    outline: none;
    border-color: #93c5fd;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}
.oi-lp-row-check {
    align-items: flex-start;
}
.oi-check-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    color: #374151;
}
.oi-lp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-start;
    padding-top: 0.5rem;
    margin-top: 0.25rem;
}
.oi-lp-actions .btn {
    min-width: 8.5rem;
}

.oi-body-modal.modal {
    width: min(720px, 96vw);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    padding: 0;
}
.oi-body-toolbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.55rem 1rem;
    border-bottom: 1px solid #eef0f3;
}
.oi-body-toolbar .oi-body-close {
    margin-left: auto;
}
.oi-body-section {
    padding: 0.85rem 1.1rem 1.1rem;
}
.oi-body-textarea {
    width: 100%;
    min-height: 280px;
    box-sizing: border-box;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 0.65rem 0.75rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.85rem;
    resize: vertical;
}
.oi-tokens-list {
    padding: 0.85rem 1.1rem;
    max-height: 360px;
    overflow: auto;
}
.oi-tokens-list ul {
    margin: 0.5rem 0 0;
    padding-left: 1.1rem;
}
.oi-tokens-list li {
    margin-bottom: 0.35rem;
    font-size: 0.85rem;
}

.oi-test-modal.modal {
    width: min(560px, 96vw);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    padding: 0;
}
.oi-test-scroll {
    flex: 1 1 auto;
    overflow: auto;
    padding: 0.85rem 1.1rem;
    max-height: 60vh;
}
.oi-test-actions {
    padding: 0.75rem 1.1rem 1rem;
    border-top: 1px solid #eef0f3;
}
.oi-test-empty {
    margin: 0.25rem 0 0.5rem 9.5rem;
}
.oi-test-result {
    margin-top: 0.85rem;
    padding: 0.65rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    background: #f3f4f6;
    color: #374151;
}
.oi-test-result-ok {
    background: #ecfdf5;
    color: #065f46;
}
.oi-test-result-err {
    background: #fef2f2;
    color: #991b1b;
}

/* Offer Integration Test — Leadspedia Info result modal */
.oi-info-modal.modal {
    width: min(560px, 96vw);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    padding: 0;
}
.oi-info-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    background: #fafafa;
}
.oi-info-modal-title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}
.oi-info-modal-title h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
}
.oi-info-modal-icon {
    color: #4b5563;
    display: inline-flex;
}
.oi-info-body {
    padding: 1rem 1.15rem 0.5rem;
    overflow: auto;
    flex: 1 1 auto;
    font-size: 0.9rem;
    color: #111827;
    line-height: 1.45;
}
.oi-info-heading {
    margin: 0 0 0.85rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #111827;
}
.oi-info-block {
    margin-bottom: 0.95rem;
}
.oi-info-block > div {
    margin-bottom: 0.15rem;
}
.oi-info-pre {
    margin: 0.2rem 0 0;
    padding: 0;
    border: 0;
    background: transparent;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    line-height: 1.45;
}
.oi-info-response {
    max-height: 14rem;
    overflow: auto;
}
.oi-info-actions {
    display: flex;
    justify-content: flex-end;
    padding: 0.65rem 1.15rem 1rem;
    border-top: 1px solid #eef0f3;
}

@media (max-width: 900px) {
    .offer-integration-workspace .oi-home-grid {
        grid-template-columns: 1fr;
    }
    .offer-integration-workspace .oi-settings-toolbar .oi-test-btn {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .pp-oi-create-dialog .pp-oi-form-row {
        flex-direction: column !important;
        gap: 0.35rem;
        align-items: stretch;
    }
    .pp-oi-create-dialog .pp-oi-form-row > label {
        flex: none;
        width: auto;
        max-width: none;
        text-align: left;
        padding-top: 0;
    }
    .oi-lp-row {
        flex-direction: column !important;
        align-items: stretch;
    }
    .oi-lp-row > label {
        flex: none;
        width: auto;
        max-width: none;
        text-align: left;
    }
    .oi-test-empty {
        margin-left: 0;
    }
}


