/*
 * GetOnlineNow Butcher Sales CRM 1.1
 * Calm, large-text, mobile-first workspace.
 */

:root {
    --dscm-brand: #936b10;
    --dscm-brand-dark: #6e4e08;
    --dscm-brand-soft: #fff7df;
    --dscm-text: #18201c;
    --dscm-text-soft: #38433d;
    --dscm-muted: #66716b;
    --dscm-muted-light: #88918c;
    --dscm-canvas: #f4f6f5;
    --dscm-surface: #ffffff;
    --dscm-surface-soft: #f8faf9;
    --dscm-border: #dfe5e1;
    --dscm-border-strong: #cbd4cf;
    --dscm-success: #19704f;
    --dscm-success-soft: #e8f5ef;
    --dscm-warning: #99610a;
    --dscm-warning-soft: #fff4df;
    --dscm-danger: #b52f40;
    --dscm-danger-soft: #fcecef;
    --dscm-info: #315f8d;
    --dscm-info-soft: #edf4fb;
    --dscm-purple: #6e4da0;
    --dscm-purple-soft: #f1edfa;
    --dscm-radius-sm: 10px;
    --dscm-radius: 14px;
    --dscm-radius-lg: 18px;
    --dscm-shadow-sm: 0 1px 2px rgba(20, 31, 25, 0.04);
    --dscm-shadow: 0 12px 32px rgba(20, 31, 25, 0.07);
}

html.dscm-portal-document {
    min-height: 100%;
    margin-top: 0 !important;
    background: var(--dscm-canvas);
}

body.dscm-standalone-portal {
    min-height: 100vh;
    margin: 0;
    background: var(--dscm-canvas);
}

body.dscm-standalone-portal #wpadminbar {
    display: none !important;
}

/* Hide the public website chat button only inside the private CRM. */
body.dscm-standalone-portal #qlwapp,
body.dscm-standalone-portal .qlwapp,
body.dscm-standalone-portal #ht-ctc-chat,
body.dscm-standalone-portal .ht-ctc-chat,
body.dscm-standalone-portal #joinchat,
body.dscm-standalone-portal .joinchat,
body.dscm-standalone-portal .wa__btn_popup,
body.dscm-standalone-portal .floating-wpp,
body.dscm-standalone-portal .njt-whatsapp,
body.dscm-standalone-portal .wame-chat,
body.dscm-standalone-portal #whatsapp-chat,
body.dscm-standalone-portal .whatsapp-chat,
body.dscm-standalone-portal .chaty-widget,
body.dscm-standalone-portal [id^="chaty-widget"],
body.dscm-standalone-portal .ccw_plugin,
body.dscm-standalone-portal .wp-whatsapp-chat {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.dscm-portal-main {
    display: block;
    min-height: 100vh;
}

body.dscm-portal-page .entry-header,
body.dscm-portal-page .page-header,
body.dscm-portal-page .entry-title,
body.dscm-portal-page h1.wp-block-post-title {
    display: none !important;
}

body.dscm-portal-page .entry-content,
body.dscm-portal-page .site-main,
body.dscm-portal-page main,
body.dscm-portal-page article.page {
    max-width: none !important;
}

body.dscm-portal-page .entry-content {
    margin: 0 !important;
}

.dscm-app,
.dscm-auth-wrap {
    color: var(--dscm-text);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.dscm-app {
    width: min(1380px, calc(100vw - 40px));
    margin: 20px auto 48px;
    overflow: hidden;
    background: var(--dscm-canvas);
    border: 1px solid var(--dscm-border);
    border-radius: 22px;
    box-shadow: var(--dscm-shadow);
}

.dscm-app *,
.dscm-auth-wrap * {
    box-sizing: border-box;
}

.dscm-app h1,
.dscm-app h2,
.dscm-app h3,
.dscm-app h4,
.dscm-app p,
.dscm-app ol,
.dscm-app ul,
.dscm-auth-wrap h1,
.dscm-auth-wrap h2,
.dscm-auth-wrap p {
    margin-top: 0;
}

.dscm-app svg,
.dscm-auth-wrap svg {
    display: block;
    width: 1.15em;
    height: 1.15em;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dscm-app button,
.dscm-app input,
.dscm-app select,
.dscm-app textarea,
.dscm-auth-wrap button,
.dscm-auth-wrap input {
    font: inherit;
}

.dscm-app button,
.dscm-app a,
.dscm-auth-wrap button,
.dscm-auth-wrap a {
    -webkit-tap-highlight-color: transparent;
}

.dscm-app button:focus-visible,
.dscm-app a:focus-visible,
.dscm-app input:focus-visible,
.dscm-app select:focus-visible,
.dscm-app textarea:focus-visible,
.dscm-auth-wrap button:focus-visible,
.dscm-auth-wrap a:focus-visible,
.dscm-auth-wrap input:focus-visible {
    outline: 3px solid rgba(147, 107, 16, 0.2);
    outline-offset: 2px;
}

.dscm-shell {
    width: 100%;
    padding: 0 28px 28px;
}

/* Header */
.dscm-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 76px;
    margin: 0 -28px;
    padding: 12px 30px;
    background: var(--dscm-surface);
    border-bottom: 1px solid var(--dscm-border);
}

.dscm-brand,
.dscm-auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.dscm-brand-mark {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    color: #fff;
    background: var(--dscm-brand);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.dscm-brand-copy,
.dscm-auth-brand > span:last-child,
.dscm-user-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.dscm-brand-copy strong,
.dscm-auth-brand strong {
    color: var(--dscm-text);
    font-size: 17px;
    font-weight: 750;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.dscm-brand-copy small,
.dscm-auth-brand small {
    margin-top: 3px;
    color: var(--dscm-muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.dscm-topbar-meta,
.dscm-user-chip,
.dscm-session-actions {
    display: flex;
    align-items: center;
}

.dscm-topbar-meta {
    gap: 16px;
}

.dscm-user-chip {
    gap: 10px;
}

.dscm-user-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    color: var(--dscm-brand-dark);
    background: var(--dscm-brand-soft);
    border: 1px solid #edd7dc;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 800;
}

.dscm-user-copy strong {
    max-width: 180px;
    overflow: hidden;
    color: var(--dscm-text);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dscm-user-copy small {
    margin-top: 2px;
    color: var(--dscm-muted);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
}

.dscm-session-actions {
    gap: 6px;
    padding-left: 14px;
    border-left: 1px solid var(--dscm-border);
}

.dscm-session-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    padding: 0 12px;
    color: var(--dscm-text-soft);
    text-decoration: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    transition: background 0.18s ease, color 0.18s ease;
}

.dscm-session-link:hover {
    color: var(--dscm-brand);
    background: var(--dscm-brand-soft);
}

.dscm-private-pill {
    display: none;
}

/* Welcome / command area */
.dscm-command-centre {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    margin: 0 -28px;
    padding: 38px 30px 34px;
    background: var(--dscm-surface);
    border-bottom: 1px solid var(--dscm-border);
}

.dscm-command-copy {
    max-width: 720px;
}

.dscm-eyebrow,
.dscm-kicker {
    margin-bottom: 7px;
    color: var(--dscm-brand);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dscm-command-copy h1 {
    margin-bottom: 10px;
    color: var(--dscm-text);
    font-size: clamp(34px, 3.2vw, 48px);
    font-weight: 780;
    line-height: 1.07;
    letter-spacing: -0.045em;
}

.dscm-command-copy > p:not(.dscm-eyebrow) {
    max-width: 620px;
    margin-bottom: 14px;
    color: var(--dscm-muted);
    font-size: 18px;
    line-height: 1.55;
}

.dscm-today-line {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--dscm-text-soft);
    font-size: 14px;
    font-weight: 650;
}

.dscm-today-dot {
    width: 8px;
    height: 8px;
    background: var(--dscm-success);
    border-radius: 50%;
}

.dscm-command-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, auto));
    gap: 10px;
    flex: 0 0 auto;
}

.dscm-command-actions .dscm-btn-large {
    grid-column: 1 / -1;
}

/* Buttons */
.dscm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 50px;
    padding: 0 18px;
    color: var(--dscm-text);
    background: var(--dscm-surface);
    border: 1px solid var(--dscm-border-strong);
    border-radius: 11px;
    box-shadow: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 750;
    line-height: 1.2;
    text-decoration: none;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.dscm-btn:hover {
    border-color: #b8c3bd;
    background: var(--dscm-surface-soft);
}

.dscm-btn:active {
    transform: translateY(1px);
}

.dscm-btn:disabled {
    cursor: wait;
    opacity: 0.65;
}

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

.dscm-btn-primary:hover {
    color: #fff;
    background: var(--dscm-brand-dark);
    border-color: var(--dscm-brand-dark);
}

.dscm-btn-secondary {
    color: var(--dscm-text);
    background: var(--dscm-surface);
}

.dscm-btn-ghost {
    color: var(--dscm-text-soft);
    background: transparent;
    border-color: transparent;
}

.dscm-btn-ghost:hover {
    color: var(--dscm-brand);
    background: var(--dscm-brand-soft);
    border-color: transparent;
}

.dscm-btn-large {
    min-height: 58px;
    padding-inline: 24px;
    font-size: 17px;
}

.dscm-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dscm-icon-btn {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    padding: 0;
    color: var(--dscm-muted);
    background: var(--dscm-surface-soft);
    border: 1px solid var(--dscm-border);
    border-radius: 11px;
    cursor: pointer;
}

.dscm-icon-btn:hover {
    color: var(--dscm-brand);
    background: var(--dscm-brand-soft);
    border-color: #ead2d8;
}

.dscm-spinner {
    display: inline-block;
    width: 19px;
    height: 19px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: dscm-spin 0.7s linear infinite;
}

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

/* Notice */
.dscm-notice[hidden] {
    display: none !important;
}

.dscm-notice {
    position: sticky;
    top: 12px;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 11px;
    width: min(720px, 100%);
    margin: 18px auto 0;
    padding: 14px 16px;
    color: var(--dscm-text);
    background: var(--dscm-surface);
    border: 1px solid var(--dscm-border);
    border-radius: 12px;
    box-shadow: var(--dscm-shadow);
    font-size: 15px;
    font-weight: 650;
}

.dscm-notice-icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    color: var(--dscm-success);
    background: var(--dscm-success-soft);
    border-radius: 50%;
}

.dscm-notice > span:nth-child(2) {
    flex: 1;
}

.dscm-notice button {
    width: 36px;
    height: 36px;
    padding: 0;
    color: var(--dscm-muted);
    background: transparent;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}

.dscm-notice-error {
    border-color: #edc6cc;
}

.dscm-notice-error .dscm-notice-icon {
    color: var(--dscm-danger);
    background: var(--dscm-danger-soft);
}

.dscm-notice-info .dscm-notice-icon {
    color: var(--dscm-info);
    background: var(--dscm-info-soft);
}

/* Overview */
.dscm-overview {
    padding: 30px 0 0;
}

.dscm-section-heading,
.dscm-manager-section-head,
.dscm-pipeline-summary-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
}

.dscm-section-heading {
    margin-bottom: 14px;
}

.dscm-section-heading h2,
.dscm-panel-title-group h2,
.dscm-manager-section-head h3,
.dscm-pipeline-summary-head h3 {
    margin-bottom: 0;
    color: var(--dscm-text);
    font-weight: 760;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.dscm-section-heading h2,
.dscm-panel-title-group h2 {
    font-size: 27px;
}

.dscm-last-updated {
    color: var(--dscm-muted);
    font-size: 13px;
    font-weight: 650;
}

.dscm-metrics {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.dscm-metric-card {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
    min-height: 116px;
    padding: 17px;
    background: var(--dscm-surface);
    border: 1px solid var(--dscm-border);
    border-radius: var(--dscm-radius);
    box-shadow: var(--dscm-shadow-sm);
}

.dscm-metric-icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    color: var(--dscm-brand);
    background: var(--dscm-brand-soft);
    border-radius: 11px;
}

.dscm-metric-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.dscm-metric-copy > span {
    color: var(--dscm-text-soft);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
}

.dscm-metric-copy strong {
    margin: 3px 0 1px;
    color: var(--dscm-text);
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
}

.dscm-metric-copy small {
    overflow: hidden;
    color: var(--dscm-muted);
    font-size: 12px;
    font-weight: 550;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dscm-metric-today .dscm-metric-icon {
    color: var(--dscm-info);
    background: var(--dscm-info-soft);
}

.dscm-metric-overdue .dscm-metric-icon {
    color: var(--dscm-danger);
    background: var(--dscm-danger-soft);
}

.dscm-metric-visit .dscm-metric-icon {
    color: var(--dscm-purple);
    background: var(--dscm-purple-soft);
}

.dscm-metric-quote .dscm-metric-icon {
    color: var(--dscm-warning);
    background: var(--dscm-warning-soft);
}

.dscm-metric-won .dscm-metric-icon {
    color: var(--dscm-success);
    background: var(--dscm-success-soft);
}

.dscm-metric-skeleton {
    display: block;
    overflow: hidden;
}

.dscm-metric-skeleton span,
.dscm-metric-skeleton strong,
.dscm-metric-skeleton small,
.dscm-loading-head span,
.dscm-loading-grid span {
    display: block;
    background: linear-gradient(90deg, #eef1ef 25%, #f8faf9 50%, #eef1ef 75%);
    background-size: 200% 100%;
    border-radius: 8px;
    animation: dscm-shimmer 1.2s infinite linear;
}

.dscm-metric-skeleton span { width: 42px; height: 42px; }
.dscm-metric-skeleton strong { width: 52px; height: 28px; margin: 12px 0 8px 56px; }
.dscm-metric-skeleton small { width: 70%; height: 12px; margin-left: 56px; }

@keyframes dscm-shimmer {
    to { background-position: -200% 0; }
}

/* Shared panels and forms */
.dscm-panel,
.dscm-lead-card {
    margin-top: 24px;
}

.dscm-panel {
    padding: 24px;
    background: var(--dscm-surface);
    border: 1px solid var(--dscm-border);
    border-radius: var(--dscm-radius-lg);
    box-shadow: var(--dscm-shadow-sm);
}

.dscm-panel[hidden] {
    display: none !important;
}

.dscm-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--dscm-border);
}

.dscm-panel-title-group {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
}

.dscm-panel-title-group > div {
    min-width: 0;
}

.dscm-panel-title-group p:not(.dscm-kicker) {
    margin: 5px 0 0;
    color: var(--dscm-muted);
    font-size: 15px;
}

.dscm-panel-icon,
.dscm-work-icon,
.dscm-timeline-icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    color: var(--dscm-brand);
    background: var(--dscm-brand-soft);
    border-radius: 11px;
}

.dscm-panel-icon-dark {
    color: var(--dscm-text);
    background: #edf0ee;
}

.dscm-grid-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px;
}

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

.dscm-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dscm-grid-form label,
.dscm-manager-filters label,
.dscm-note-section > label.dscm-full {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
    margin: 0;
}

.dscm-grid-form label > span,
.dscm-manager-filters label > span:first-child,
.dscm-note-section > label.dscm-full > span {
    color: var(--dscm-text-soft);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

.dscm-grid-form label > span b {
    color: var(--dscm-danger);
}

.dscm-grid-form input,
.dscm-grid-form select,
.dscm-grid-form textarea,
.dscm-manager-filters input,
.dscm-manager-filters select {
    width: 100%;
    min-width: 0;
    min-height: 52px;
    margin: 0;
    padding: 12px 14px;
    color: var(--dscm-text);
    background: var(--dscm-surface);
    border: 1px solid var(--dscm-border-strong);
    border-radius: 10px;
    box-shadow: none;
    font-size: 16px;
    line-height: 1.35;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.dscm-grid-form input:hover,
.dscm-grid-form select:hover,
.dscm-grid-form textarea:hover,
.dscm-manager-filters input:hover,
.dscm-manager-filters select:hover {
    border-color: #b7c2bc;
}

.dscm-grid-form input:focus,
.dscm-grid-form select:focus,
.dscm-grid-form textarea:focus,
.dscm-manager-filters input:focus,
.dscm-manager-filters select:focus {
    outline: none;
    border-color: var(--dscm-brand);
    box-shadow: 0 0 0 3px rgba(147, 107, 16, 0.11);
}

.dscm-grid-form textarea {
    min-height: 92px;
    resize: vertical;
}

.dscm-grid-form input::placeholder,
.dscm-grid-form textarea::placeholder,
.dscm-manager-filters input::placeholder {
    color: #9aa29e;
}

.dscm-full {
    grid-column: 1 / -1;
}

.dscm-form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dscm-form-actions-right {
    justify-content: flex-end;
    padding-top: 3px;
}

.is-saving {
    opacity: 0.75;
}

/* Empty / loading states */
.dscm-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 330px;
    padding: 46px 24px;
    text-align: center;
    background: var(--dscm-surface);
    border: 1px solid var(--dscm-border);
    border-radius: var(--dscm-radius-lg);
    box-shadow: var(--dscm-shadow-sm);
}

.dscm-empty-state h2 {
    margin-bottom: 9px;
    color: var(--dscm-text);
    font-size: 30px;
    font-weight: 760;
    line-height: 1.18;
    letter-spacing: -0.03em;
}

.dscm-empty-state > p:not(.dscm-kicker) {
    max-width: 540px;
    margin-bottom: 22px;
    color: var(--dscm-muted);
    font-size: 17px;
}

.dscm-empty-visual {
    display: inline-grid;
    place-items: center;
    width: 62px;
    height: 62px;
    margin-bottom: 17px;
    color: var(--dscm-brand);
    background: var(--dscm-brand-soft);
    border-radius: 18px;
}

.dscm-empty-visual svg {
    width: 28px;
    height: 28px;
}

.dscm-empty-state-error .dscm-empty-visual {
    color: var(--dscm-danger);
    background: var(--dscm-danger-soft);
}

.dscm-empty-steps {
    display: none;
}

.dscm-workspace-loading {
    min-height: 330px;
    padding: 28px;
    background: var(--dscm-surface);
    border: 1px solid var(--dscm-border);
    border-radius: var(--dscm-radius-lg);
}

.dscm-loading-head {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 26px;
}

.dscm-loading-head span:first-child { width: 160px; height: 18px; }
.dscm-loading-head span:last-child { width: 42%; height: 34px; }

.dscm-loading-grid {
    display: grid;
    grid-template-columns: 36% 1fr;
    gap: 18px;
}

.dscm-loading-grid span {
    height: 190px;
}

.dscm-loading-caption {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
    color: var(--dscm-muted);
    font-size: 15px;
    font-weight: 650;
}

/* Lead header */
.dscm-lead-workspace {
    display: block;
}

.dscm-lead-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px;
    background: var(--dscm-surface);
    border: 1px solid var(--dscm-border);
    border-radius: var(--dscm-radius-lg);
    box-shadow: var(--dscm-shadow-sm);
}

.dscm-lead-heading {
    min-width: 0;
}

.dscm-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 11px;
}

.dscm-badge,
.dscm-mini-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    color: var(--dscm-text-soft);
    background: #f0f3f1;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.2;
}

.dscm-badge {
    min-height: 29px;
    padding: 6px 10px;
}

.dscm-badge i,
.dscm-mini-status i,
.dscm-pipeline-status span i,
.dscm-admin-pipeline-row span i {
    width: 7px;
    height: 7px;
    background: currentColor;
    border-radius: 50%;
}

.dscm-badge-owner {
    display: none;
}

.dscm-lead-heading h2 {
    max-width: 850px;
    margin-bottom: 8px;
    color: var(--dscm-text);
    font-size: clamp(30px, 3vw, 42px);
    font-weight: 790;
    line-height: 1.1;
    letter-spacing: -0.045em;
    overflow-wrap: anywhere;
}

.dscm-lead-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    color: var(--dscm-muted);
    font-size: 14px;
    font-weight: 600;
}

.dscm-lead-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.dscm-lead-meta svg {
    width: 16px;
    height: 16px;
}

.dscm-next-compact {
    flex: 0 0 auto;
}

/* Lead main layout */
.dscm-lead-layout {
    display: grid;
    grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
    align-items: start;
    gap: 18px;
    margin-top: 18px;
}

.dscm-profile-card,
.dscm-work-card,
.dscm-timeline-card,
.dscm-manager-leads,
.dscm-manager-activity,
.dscm-pipeline-summary {
    background: var(--dscm-surface);
    border: 1px solid var(--dscm-border);
    border-radius: var(--dscm-radius-lg);
    box-shadow: var(--dscm-shadow-sm);
}

.dscm-profile-card {
    padding: 21px;
}

.dscm-profile-head {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--dscm-border);
}

.dscm-business-avatar {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
    color: #fff;
    background: var(--dscm-brand);
    border-radius: 14px;
    font-size: 17px;
    font-weight: 800;
}

.dscm-profile-head > div {
    min-width: 0;
}

.dscm-profile-head small,
.dscm-contact-row small,
.dscm-schedule-tile small,
.dscm-profile-note small {
    display: block;
    color: var(--dscm-muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.02em;
}

.dscm-profile-head h3 {
    margin: 3px 0 2px;
    color: var(--dscm-text);
    font-size: 21px;
    font-weight: 760;
    line-height: 1.18;
    overflow-wrap: anywhere;
}

.dscm-profile-head p {
    margin: 0;
    overflow: hidden;
    color: var(--dscm-muted);
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dscm-quick-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 18px;
}

.dscm-quick-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 52px;
    padding: 9px 11px;
    color: var(--dscm-text-soft);
    background: var(--dscm-surface-soft);
    border: 1px solid var(--dscm-border);
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.dscm-quick-action:hover {
    color: var(--dscm-brand);
    background: var(--dscm-brand-soft);
    border-color: #e7cbd2;
}

.dscm-quick-action > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dscm-quick-action strong {
    font-size: 14px;
    font-weight: 750;
    line-height: 1.2;
}

.dscm-quick-call {
    grid-column: 1 / -1;
    color: #fff;
    background: var(--dscm-brand);
    border-color: var(--dscm-brand);
}

.dscm-quick-call:hover {
    color: #fff;
    background: var(--dscm-brand-dark);
    border-color: var(--dscm-brand-dark);
}

.dscm-quick-whatsapp {
    color: var(--dscm-success);
    background: var(--dscm-success-soft);
    border-color: #cce7da;
}

.dscm-contact-list {
    margin-top: 19px;
    border-top: 1px solid var(--dscm-border);
}

.dscm-contact-row {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    padding: 14px 0;
    border-bottom: 1px solid var(--dscm-border);
}

.dscm-contact-icon {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: var(--dscm-brand);
    background: var(--dscm-brand-soft);
    border-radius: 9px;
}

.dscm-contact-row > div {
    min-width: 0;
}

.dscm-contact-row a,
.dscm-contact-row strong {
    display: block;
    margin-top: 3px;
    color: var(--dscm-text);
    font-size: 15px;
    font-weight: 680;
    line-height: 1.4;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.dscm-contact-row a:hover {
    color: var(--dscm-brand);
    text-decoration: underline;
}

.dscm-value-empty {
    color: var(--dscm-muted-light) !important;
    font-weight: 550 !important;
}

.dscm-profile-section {
    margin-top: 20px;
}

.dscm-profile-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.dscm-profile-section-head > span {
    color: var(--dscm-text);
    font-size: 15px;
    font-weight: 750;
}

.dscm-profile-section-head small {
    display: none;
}

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

.dscm-schedule-tile {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
    padding: 11px;
    background: var(--dscm-surface-soft);
    border: 1px solid var(--dscm-border);
    border-radius: 10px;
}

.dscm-schedule-tile > span {
    color: var(--dscm-muted);
    margin-top: 1px;
}

.dscm-schedule-tile > div {
    min-width: 0;
}

.dscm-schedule-tile strong {
    display: block;
    margin-top: 3px;
    color: var(--dscm-text-soft);
    font-size: 13px;
    font-weight: 680;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.dscm-schedule-tile.is-overdue {
    background: var(--dscm-danger-soft);
    border-color: #edc8ce;
}

.dscm-schedule-tile.is-overdue > span,
.dscm-schedule-tile.is-overdue strong {
    color: var(--dscm-danger);
}

.dscm-schedule-tile.is-today {
    background: var(--dscm-warning-soft);
    border-color: #efdcb6;
}

.dscm-schedule-tile.is-today > span,
.dscm-schedule-tile.is-today strong {
    color: var(--dscm-warning);
}

.dscm-profile-note {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    margin-top: 18px;
    padding: 13px;
    background: #fffaf0;
    border: 1px solid #eee0bf;
    border-radius: 10px;
}

.dscm-profile-note > span {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    color: var(--dscm-warning);
    background: var(--dscm-warning-soft);
    border-radius: 8px;
}

.dscm-profile-note p {
    margin: 4px 0 0;
    color: var(--dscm-text-soft);
    font-size: 14px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

/* Work form */
.dscm-work-card {
    overflow: hidden;
}

.dscm-work-card-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 23px 24px 21px;
    border-bottom: 1px solid var(--dscm-border);
}

.dscm-work-card-head > div {
    min-width: 0;
}

.dscm-work-card-head h3 {
    margin-bottom: 4px;
    color: var(--dscm-text);
    font-size: 27px;
    font-weight: 770;
    line-height: 1.16;
    letter-spacing: -0.03em;
}

.dscm-work-card-head p:not(.dscm-kicker) {
    margin: 0;
    color: var(--dscm-muted);
    font-size: 15px;
}

.dscm-lead-form {
    padding: 0 24px 24px;
}

.dscm-form-section {
    padding: 25px 0;
    border-bottom: 1px solid var(--dscm-border);
}

.dscm-form-section-featured {
    background: transparent;
}

.dscm-form-section-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 17px;
}

.dscm-step-number {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    color: #fff;
    background: var(--dscm-brand);
    border-radius: 9px;
    font-size: 14px;
    font-weight: 800;
}

.dscm-form-section-head h4 {
    margin: 1px 0 2px;
    color: var(--dscm-text);
    font-size: 20px;
    font-weight: 760;
    line-height: 1.2;
}

.dscm-form-section-head p {
    margin: 0;
    color: var(--dscm-muted);
    font-size: 14px;
    line-height: 1.4;
}

.dscm-note-section textarea {
    min-height: 132px;
}

.dscm-contact-check {
    display: block;
    margin-top: 13px;
    cursor: pointer;
}

.dscm-contact-check > input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.dscm-contact-check > span {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 58px;
    padding: 10px 12px;
    color: var(--dscm-text-soft);
    background: var(--dscm-surface-soft);
    border: 1px solid var(--dscm-border);
    border-radius: 10px;
}

.dscm-contact-check > span > b {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    color: #fff;
    background: #aeb8b2;
    border-radius: 9px;
}

.dscm-contact-check input:checked + span {
    background: var(--dscm-success-soft);
    border-color: #c8e4d7;
}

.dscm-contact-check input:checked + span > b {
    background: var(--dscm-success);
}

.dscm-contact-check > span > span {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.dscm-contact-check strong {
    color: var(--dscm-text);
    font-size: 14px;
    font-weight: 750;
    line-height: 1.25;
}

.dscm-contact-check small {
    margin-top: 2px;
    color: var(--dscm-muted);
    font-size: 12px;
    line-height: 1.35;
}

.dscm-opportunity-summary {
    display: none;
}

.dscm-details {
    margin-top: 14px;
    overflow: hidden;
    background: var(--dscm-surface-soft);
    border: 1px solid var(--dscm-border);
    border-radius: 11px;
}

.dscm-details summary {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 11px;
    min-height: 72px;
    padding: 12px 14px;
    cursor: pointer;
    list-style: none;
}

.dscm-details summary::-webkit-details-marker {
    display: none;
}

.dscm-details summary > span:first-child {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    color: var(--dscm-brand);
    background: var(--dscm-brand-soft);
    border-radius: 9px;
}

.dscm-details summary > span:nth-child(2) {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.dscm-details summary strong {
    color: var(--dscm-text);
    font-size: 15px;
    font-weight: 750;
    line-height: 1.25;
}

.dscm-details summary small {
    margin-top: 2px;
    color: var(--dscm-muted);
    font-size: 12px;
    line-height: 1.35;
}

.dscm-details summary > svg:last-child {
    color: var(--dscm-muted);
    transition: transform 0.18s ease;
}

.dscm-details[open] summary > svg:last-child {
    transform: rotate(90deg);
}

.dscm-details[open] summary {
    background: var(--dscm-surface);
    border-bottom: 1px solid var(--dscm-border);
}

.dscm-details-body {
    padding: 18px;
    background: var(--dscm-surface);
}

.dscm-lead-form-actions {
    justify-content: space-between;
    gap: 18px;
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--dscm-border);
}

.dscm-save-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--dscm-muted);
    font-size: 13px;
    font-weight: 600;
}

.dscm-save-hint > span:first-child {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    color: var(--dscm-success);
    background: var(--dscm-success-soft);
    border-radius: 50%;
}

.dscm-form-button-group {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex: 0 0 auto;
}

/* Timeline */
.dscm-timeline-card {
    margin-top: 18px;
    padding: 24px;
}

.dscm-timeline-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--dscm-border);
}

.dscm-timeline-head > div {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dscm-timeline-head h3 {
    margin: 0;
    color: var(--dscm-text);
    font-size: 24px;
    font-weight: 760;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.dscm-history-count {
    color: var(--dscm-muted);
    font-size: 13px;
    font-weight: 650;
}

.dscm-timeline,
.dscm-activity-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.dscm-timeline > li {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    position: relative;
    padding-bottom: 18px;
}

.dscm-timeline > li:last-child {
    padding-bottom: 0;
}

.dscm-timeline > li:not(:last-child)::before {
    content: "";
    position: absolute;
    top: 38px;
    bottom: 0;
    left: 18px;
    width: 1px;
    background: var(--dscm-border);
}

.dscm-timeline-marker,
.dscm-activity-marker {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: var(--dscm-brand);
    background: var(--dscm-brand-soft);
    border-radius: 10px;
}

.dscm-timeline-content {
    min-width: 0;
    padding: 2px 0 0;
}

.dscm-timeline-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.dscm-timeline-row > div {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 5px 9px;
    min-width: 0;
}

.dscm-timeline-row strong {
    color: var(--dscm-text);
    font-size: 15px;
    font-weight: 750;
}

.dscm-timeline-row span,
.dscm-timeline-row time {
    color: var(--dscm-muted);
    font-size: 12px;
    font-weight: 600;
}

.dscm-timeline-content > .dscm-mini-status {
    margin-top: 8px;
}

.dscm-timeline-content > p {
    margin: 9px 0 0;
    padding: 11px 13px;
    color: var(--dscm-text-soft);
    background: var(--dscm-surface-soft);
    border: 1px solid var(--dscm-border);
    border-radius: 9px;
    font-size: 14px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.dscm-timeline-empty,
.dscm-empty-small {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    padding: 24px;
    color: var(--dscm-muted);
    text-align: center;
}

.dscm-timeline-empty svg,
.dscm-empty-small > svg {
    width: 30px;
    height: 30px;
    margin-bottom: 10px;
    color: var(--dscm-brand);
}

.dscm-timeline-empty p {
    max-width: 480px;
    margin: 0;
    font-size: 15px;
}

.dscm-empty-small strong {
    margin-bottom: 4px;
    color: var(--dscm-text);
    font-size: 17px;
}

.dscm-empty-small span {
    font-size: 14px;
}

/* Status colours */
.dscm-status-new,
.dscm-status-call_due,
.dscm-status-call-due {
    color: var(--dscm-info);
    background: var(--dscm-info-soft);
}

.dscm-status-follow_up,
.dscm-status-follow-up {
    color: var(--dscm-warning);
    background: var(--dscm-warning-soft);
}

.dscm-status-site_visit,
.dscm-status-site-visit {
    color: var(--dscm-purple);
    background: var(--dscm-purple-soft);
}

.dscm-status-quote_sent,
.dscm-status-quote-sent {
    color: #76529d;
    background: #f3eff8;
}

.dscm-status-won {
    color: var(--dscm-success);
    background: var(--dscm-success-soft);
}

.dscm-status-lost,
.dscm-status-not_interested,
.dscm-status-not-interested {
    color: var(--dscm-danger);
    background: var(--dscm-danger-soft);
}

.dscm-priority-urgent,
.dscm-priority-high {
    color: var(--dscm-danger);
    background: var(--dscm-danger-soft);
}

.dscm-priority-low {
    color: var(--dscm-muted);
    background: #f0f3f1;
}

/* Management */
.dscm-manager-head {
    align-items: center;
}

.dscm-manager-head-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dscm-manager-filters {
    display: grid;
    grid-template-columns: minmax(200px, 260px) minmax(300px, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}

.dscm-input-with-icon {
    position: relative;
    display: block;
}

.dscm-input-with-icon > svg {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 14px;
    width: 18px;
    height: 18px;
    color: var(--dscm-muted);
    transform: translateY(-50%);
    pointer-events: none;
}

.dscm-input-with-icon input {
    padding-left: 43px;
}

.dscm-pipeline-summary {
    padding: 20px;
}

.dscm-pipeline-summary-head {
    margin-bottom: 14px;
}

.dscm-pipeline-summary-head h3,
.dscm-manager-section-head h3 {
    font-size: 21px;
}

.dscm-pipeline-summary-head > span,
.dscm-manager-section-head > span {
    color: var(--dscm-muted);
    font-size: 13px;
    font-weight: 650;
}

.dscm-pipeline-summary-head > span b {
    color: var(--dscm-text);
}

.dscm-pipeline-statuses {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
}

.dscm-pipeline-status {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px 12px;
    min-width: 0;
    padding: 12px;
    color: var(--dscm-text-soft);
    background: var(--dscm-surface-soft);
    border: 1px solid var(--dscm-border);
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
}

.dscm-pipeline-status:hover {
    border-color: #b9c4be;
    background: var(--dscm-surface);
}

.dscm-pipeline-status > span {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    font-size: 12px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dscm-pipeline-status > strong {
    color: var(--dscm-text);
    font-size: 19px;
    font-weight: 800;
    line-height: 1;
}

.dscm-pipeline-status > em {
    grid-column: 1 / -1;
    height: 4px;
    overflow: hidden;
    background: #e8ece9;
    border-radius: 999px;
}

.dscm-pipeline-status > em > i {
    display: block;
    height: 100%;
    background: currentColor;
    border-radius: inherit;
}

.dscm-manager-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.8fr);
    align-items: start;
    gap: 14px;
    margin-top: 14px;
}

.dscm-manager-leads,
.dscm-manager-activity {
    min-width: 0;
    padding: 19px;
}

.dscm-manager-section-head {
    margin-bottom: 14px;
}

.dscm-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid var(--dscm-border);
    border-radius: 11px;
}

.dscm-table {
    width: 100%;
    min-width: 840px;
    margin: 0;
    border-collapse: collapse;
    background: var(--dscm-surface);
}

.dscm-table th,
.dscm-table td {
    padding: 13px 12px;
    border-bottom: 1px solid var(--dscm-border);
    text-align: left;
    vertical-align: middle;
}

.dscm-table th {
    color: var(--dscm-muted);
    background: var(--dscm-surface-soft);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

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

.dscm-table tbody tr:hover td {
    background: #fbfcfb;
}

.dscm-table-lead {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 0;
    color: inherit;
    background: transparent;
    border: 0;
    cursor: pointer;
    text-align: left;
}

.dscm-table-lead.is-archived {
    cursor: default;
}

.dscm-table-avatar,
.dscm-admin-user-avatar {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    color: var(--dscm-brand-dark);
    background: var(--dscm-brand-soft);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 800;
}

.dscm-table-lead > span:last-child {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.dscm-table-lead strong {
    max-width: 240px;
    overflow: hidden;
    color: var(--dscm-text);
    font-size: 14px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dscm-table-lead small,
.dscm-table td > small {
    display: block;
    margin-top: 2px;
    color: var(--dscm-muted);
    font-size: 12px;
    line-height: 1.35;
}

.dscm-mini-status {
    min-height: 26px;
    padding: 5px 8px;
}

.dscm-owner-cell,
.dscm-date-cell {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--dscm-text-soft);
    font-size: 13px;
    font-weight: 650;
}

.dscm-owner-cell svg,
.dscm-date-cell svg {
    width: 15px;
    height: 15px;
    color: var(--dscm-muted);
}

.dscm-date-cell.is-overdue {
    color: var(--dscm-danger);
}

.dscm-date-cell.is-today {
    color: var(--dscm-warning);
}

.dscm-value-cell {
    color: var(--dscm-text);
    font-size: 14px;
    font-weight: 750;
}

.dscm-row-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.dscm-mini-btn,
.dscm-archive-btn,
.dscm-delete-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 38px;
    padding: 0 10px;
    color: var(--dscm-text-soft);
    background: var(--dscm-surface);
    border: 1px solid var(--dscm-border);
    border-radius: 9px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 750;
}

.dscm-mini-btn:hover {
    color: var(--dscm-brand);
    background: var(--dscm-brand-soft);
    border-color: #e5ccd2;
}

.dscm-archive-btn {
    width: 38px;
    padding: 0;
    color: var(--dscm-text-soft);
}

.dscm-archive-btn:hover {
    color: var(--dscm-brand);
    background: var(--dscm-brand-soft);
    border-color: #e5ccd2;
}

.dscm-delete-btn {
    padding: 0 11px;
    color: var(--dscm-danger);
}

.dscm-delete-btn:hover {
    background: var(--dscm-danger-soft);
    border-color: #edc8ce;
}

.dscm-delete-btn svg,
.dscm-archive-btn svg {
    width: 15px;
    height: 15px;
}

.gonbcrm-danger-zone {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin-top: 16px;
    padding: 19px 20px;
    background: #fff8f8;
    border: 1px solid #efc7ca;
    border-radius: 14px;
}

.gonbcrm-danger-zone h3 {
    margin: 2px 0 4px;
    color: #8f1d27;
    font-size: 19px;
}

.gonbcrm-danger-zone > div > span {
    color: var(--dscm-muted);
    font-size: 13px;
}

.gonbcrm-danger-btn {
    flex: 0 0 auto;
    color: #fff;
    background: #b4232d;
    border-color: #b4232d;
    box-shadow: 0 8px 18px rgba(180, 35, 45, .16);
}

.gonbcrm-danger-btn:hover {
    color: #fff;
    background: #951923;
    border-color: #951923;
}

.gonbcrm-danger-btn svg {
    width: 17px;
    height: 17px;
}

.dscm-activity-list > li {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
    padding: 13px 0;
    border-bottom: 1px solid var(--dscm-border);
}

.dscm-activity-list > li:first-child {
    padding-top: 0;
}

.dscm-activity-list > li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.dscm-activity-marker {
    width: 34px;
    height: 34px;
    border-radius: 9px;
}

.dscm-activity-list > li > div {
    min-width: 0;
}

.dscm-activity-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.dscm-activity-title button {
    min-width: 0;
    padding: 0;
    overflow: hidden;
    color: var(--dscm-text);
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 750;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dscm-activity-title button:hover {
    color: var(--dscm-brand);
}

.gonbcrm-archived-activity-name {
    min-width: 0;
    overflow: hidden;
    color: var(--dscm-text);
    font-size: 14px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dscm-activity-title time,
.dscm-activity-list > li > div > span {
    color: var(--dscm-muted);
    font-size: 11px;
    font-weight: 600;
}

.dscm-activity-list p {
    margin: 7px 0 0;
    padding: 9px 10px;
    color: var(--dscm-text-soft);
    background: var(--dscm-surface-soft);
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

/* Footer */
.dscm-app-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 28px;
    padding: 18px 2px 0;
    color: var(--dscm-muted);
    border-top: 1px solid var(--dscm-border);
    font-size: 12px;
    font-weight: 600;
}

/* Login / access screens */
.dscm-auth-wrap {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 24px;
    background: var(--dscm-canvas);
}

.dscm-login-box {
    width: min(480px, 100%);
    padding: 34px;
    background: var(--dscm-surface);
    border: 1px solid var(--dscm-border);
    border-radius: 18px;
    box-shadow: var(--dscm-shadow);
}

.dscm-auth-brand {
    margin-bottom: 30px;
}

.dscm-login-box h2 {
    margin-bottom: 8px;
    color: var(--dscm-text);
    font-size: 34px;
    font-weight: 780;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.dscm-auth-intro,
.dscm-access-denied > p:not(.dscm-kicker) {
    margin-bottom: 24px;
    color: var(--dscm-muted);
    font-size: 16px;
}

.dscm-login-error {
    margin: -6px 0 20px;
    padding: 12px 14px;
    color: #8f2530;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
}

.dscm-login-box form p {
    margin: 0 0 16px;
}

.dscm-login-box form label {
    display: block;
    color: var(--dscm-text-soft);
    font-size: 14px;
    font-weight: 700;
}

.dscm-login-box form input[type="text"],
.dscm-login-box form input[type="password"] {
    width: 100%;
    min-height: 54px;
    margin-top: 7px;
    padding: 12px 14px;
    color: var(--dscm-text);
    background: var(--dscm-surface);
    border: 1px solid var(--dscm-border-strong);
    border-radius: 10px;
    font-size: 17px;
}

.dscm-login-box form input[type="text"]:focus,
.dscm-login-box form input[type="password"]:focus {
    outline: none;
    border-color: var(--dscm-brand);
    box-shadow: 0 0 0 3px rgba(147, 107, 16, 0.11);
}

.dscm-login-box .login-remember label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 600;
}

.dscm-login-box .login-submit {
    margin-top: 6px;
}

.dscm-login-box .button-primary {
    appearance: none;
    width: 100%;
    min-height: 54px;
    padding: 0 18px;
    color: #fff;
    background: var(--dscm-brand);
    border: 1px solid var(--dscm-brand);
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 750;
}

.dscm-login-box .button-primary:hover {
    background: var(--dscm-brand-dark);
    border-color: var(--dscm-brand-dark);
}

.dscm-auth-links {
    margin-top: 17px;
    text-align: center;
}

.dscm-auth-links a {
    color: var(--dscm-brand);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.dscm-auth-help {
    margin: 22px 0 0;
    padding-top: 18px;
    color: var(--dscm-muted);
    border-top: 1px solid var(--dscm-border);
    font-size: 12px;
    text-align: center;
}

.dscm-access-denied {
    text-align: center;
}

.dscm-access-denied .dscm-empty-visual {
    margin-inline: auto;
}

.dscm-access-denied .dscm-btn {
    width: 100%;
}

.screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Laptop */
@media (max-width: 1260px) {
    .dscm-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dscm-metric-card {
        min-height: 104px;
    }

    .dscm-lead-layout {
        grid-template-columns: 320px minmax(0, 1fr);
    }

    .dscm-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dscm-pipeline-statuses {
        grid-template-columns: repeat(4, minmax(140px, 1fr));
        overflow-x: auto;
        padding-bottom: 3px;
    }
}

@media (max-width: 1040px) {
    .dscm-command-centre {
        align-items: flex-start;
    }

    .dscm-command-actions {
        min-width: 250px;
    }

    .dscm-lead-layout {
        grid-template-columns: 1fr;
    }

    .dscm-profile-card {
        display: grid;
        grid-template-columns: minmax(240px, 0.9fr) minmax(320px, 1.1fr);
        gap: 0 22px;
    }

    .dscm-profile-head,
    .dscm-quick-actions,
    .dscm-contact-list {
        grid-column: 1;
    }

    .dscm-profile-section,
    .dscm-profile-note {
        grid-column: 2;
    }

    .dscm-profile-section {
        grid-row: 1 / span 2;
        margin-top: 0;
    }

    .dscm-profile-note {
        align-self: start;
    }

    .dscm-manager-grid {
        grid-template-columns: 1fr;
    }

    .dscm-manager-activity {
        max-height: 580px;
        overflow: auto;
    }
}

/* Tablet and mobile */
@media (max-width: 780px) {
    html.dscm-portal-document,
    body.dscm-standalone-portal {
        background: var(--dscm-canvas);
    }

    .dscm-app,
    .dscm-auth-wrap {
        font-size: 17px;
    }

    .dscm-app {
        width: 100%;
        margin: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .dscm-shell {
        padding: 0 16px 24px;
    }

    .dscm-topbar {
        position: sticky;
        top: 0;
        z-index: 60;
        min-height: 68px;
        margin: 0 -16px;
        padding: 10px 16px;
        box-shadow: 0 1px 0 rgba(20, 31, 25, 0.04);
    }

    .dscm-brand-mark {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

    .dscm-brand-copy strong {
        font-size: 16px;
    }

    .dscm-brand-copy small {
        font-size: 11px;
    }

    .dscm-user-chip {
        gap: 0;
    }

    .dscm-user-avatar {
        width: 38px;
        height: 38px;
    }

    .dscm-user-copy {
        display: none;
    }

    .dscm-topbar-meta {
        gap: 7px;
    }

    .dscm-session-actions {
        gap: 4px;
        padding-left: 7px;
    }

    .dscm-session-link {
        width: 40px;
        min-height: 40px;
        padding: 0;
        border-radius: 9px;
    }

    .dscm-session-link span {
        display: none;
    }

    .dscm-command-centre {
        display: block;
        margin: 0 -16px;
        padding: 25px 16px 23px;
    }

    .dscm-command-copy h1 {
        margin-bottom: 9px;
        font-size: 32px;
        line-height: 1.1;
    }

    .dscm-command-copy > p:not(.dscm-eyebrow) {
        margin-bottom: 12px;
        font-size: 17px;
        line-height: 1.5;
    }

    .dscm-command-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        min-width: 0;
        margin-top: 20px;
    }

    .dscm-command-actions .dscm-btn {
        width: 100%;
    }

    .dscm-btn,
    .dscm-btn-large {
        min-height: 54px;
        padding-inline: 16px;
        font-size: 16px;
    }

    .dscm-overview {
        padding-top: 24px;
    }

    .dscm-section-heading {
        align-items: center;
    }

    .dscm-section-heading h2,
    .dscm-panel-title-group h2 {
        font-size: 25px;
    }

    .dscm-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .dscm-metric-card {
        display: block;
        min-height: 126px;
        padding: 15px;
    }

    .dscm-metric-icon {
        width: 38px;
        height: 38px;
        margin-bottom: 12px;
    }

    .dscm-metric-copy > span {
        font-size: 14px;
    }

    .dscm-metric-copy strong {
        margin-top: 4px;
        font-size: 31px;
    }

    .dscm-metric-copy small {
        margin-top: 3px;
        white-space: normal;
    }

    .dscm-panel,
    .dscm-lead-card {
        margin-top: 20px;
    }

    .dscm-panel {
        padding: 18px;
        border-radius: 14px;
    }

    .dscm-panel-head {
        gap: 12px;
        margin-bottom: 18px;
        padding-bottom: 17px;
    }

    .dscm-panel-icon,
    .dscm-work-icon,
    .dscm-timeline-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

    .dscm-grid-form,
    .dscm-grid-3,
    .dscm-grid-4 {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .dscm-grid-form input,
    .dscm-grid-form select,
    .dscm-grid-form textarea,
    .dscm-manager-filters input,
    .dscm-manager-filters select {
        min-height: 55px;
        padding: 13px 14px;
        font-size: 17px;
    }

    .dscm-grid-form label > span,
    .dscm-manager-filters label > span:first-child,
    .dscm-note-section > label.dscm-full > span {
        font-size: 15px;
    }

    .dscm-form-actions-right {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dscm-form-actions-right .dscm-btn {
        width: 100%;
    }

    .dscm-empty-state {
        min-height: 290px;
        padding: 38px 20px;
        border-radius: 14px;
    }

    .dscm-empty-state h2 {
        font-size: 27px;
    }

    .dscm-empty-state > p:not(.dscm-kicker) {
        font-size: 16px;
    }

    .dscm-loading-grid {
        grid-template-columns: 1fr;
    }

    .dscm-loading-grid span {
        height: 120px;
    }

    .dscm-lead-header {
        display: block;
        padding: 20px;
        border-radius: 14px;
    }

    .dscm-lead-heading h2 {
        font-size: 31px;
    }

    .dscm-lead-meta {
        display: grid;
        gap: 6px;
        font-size: 14px;
    }

    .dscm-next-compact {
        width: 100%;
        margin-top: 18px;
    }

    .dscm-lead-layout {
        gap: 14px;
        margin-top: 14px;
    }

    .dscm-profile-card {
        display: block;
        padding: 18px;
        border-radius: 14px;
    }

    .dscm-profile-section,
    .dscm-profile-note {
        margin-top: 18px;
    }

    .dscm-profile-head h3 {
        font-size: 21px;
    }

    .dscm-quick-action {
        min-height: 57px;
    }

    .dscm-quick-action strong {
        font-size: 15px;
    }

    .dscm-contact-row a,
    .dscm-contact-row strong {
        font-size: 16px;
    }

    .dscm-schedule-grid {
        grid-template-columns: 1fr;
    }

    .dscm-schedule-tile {
        min-height: 62px;
        align-items: center;
        padding: 12px;
    }

    .dscm-schedule-tile strong {
        font-size: 14px;
    }

    .dscm-work-card {
        border-radius: 14px;
    }

    .dscm-work-card-head {
        padding: 20px 18px 18px;
    }

    .dscm-work-card-head h3 {
        font-size: 25px;
    }

    .dscm-lead-form {
        padding: 0 18px 18px;
    }

    .dscm-form-section {
        padding: 23px 0;
    }

    .dscm-form-section-head {
        margin-bottom: 16px;
    }

    .dscm-form-section-head h4 {
        font-size: 20px;
    }

    .dscm-note-section textarea {
        min-height: 150px;
    }

    .dscm-contact-check > span {
        min-height: 64px;
    }

    .dscm-details summary {
        min-height: 76px;
        padding: 12px;
    }

    .dscm-details summary strong {
        font-size: 16px;
    }

    .dscm-details summary small {
        font-size: 13px;
    }

    .dscm-details-body {
        padding: 16px;
    }

    .dscm-lead-form-actions {
        position: sticky;
        bottom: 0;
        z-index: 20;
        display: block;
        margin: 23px -18px -18px;
        padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, 0.97);
        border-top: 1px solid var(--dscm-border);
        backdrop-filter: blur(8px);
    }

    .dscm-save-hint {
        display: none;
    }

    .dscm-form-button-group {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .dscm-form-button-group .dscm-btn {
        width: 100%;
    }

    .dscm-form-button-group [data-save-button="next"] {
        order: -1;
    }

    .dscm-timeline-card {
        margin-top: 14px;
        padding: 18px;
        border-radius: 14px;
    }

    .dscm-timeline-head {
        align-items: flex-start;
        margin-bottom: 17px;
        padding-bottom: 16px;
    }

    .dscm-timeline-head h3 {
        font-size: 22px;
    }

    .dscm-history-count {
        padding-top: 5px;
        white-space: nowrap;
    }

    .dscm-timeline-row {
        display: block;
    }

    .dscm-timeline-row time {
        display: block;
        margin-top: 3px;
    }

    .dscm-manager-head {
        align-items: flex-start;
    }

    .dscm-manager-head-actions .dscm-btn {
        width: 46px;
        min-height: 46px;
        padding: 0;
    }

    .dscm-manager-head-actions .dscm-btn span:last-child {
        display: none;
    }

    .dscm-manager-filters {
        grid-template-columns: 1fr;
    }

    .dscm-pipeline-summary,
    .dscm-manager-leads,
    .dscm-manager-activity {
        padding: 16px;
        border-radius: 13px;
    }

    .dscm-pipeline-statuses {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        overflow: visible;
    }

    .dscm-manager-section-head,
    .dscm-pipeline-summary-head {
        align-items: center;
    }

    .dscm-table-wrap {
        overflow: visible;
        border: 0;
    }

    .dscm-table {
        display: block;
        min-width: 0;
        background: transparent;
    }

    .dscm-table thead {
        display: none;
    }

    .dscm-table tbody {
        display: grid;
        gap: 10px;
    }

    .dscm-table tr {
        display: block;
        padding: 14px;
        background: var(--dscm-surface-soft);
        border: 1px solid var(--dscm-border);
        border-radius: 11px;
    }

    .dscm-table td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        padding: 9px 0;
        border-bottom: 1px solid var(--dscm-border);
        text-align: right;
    }

    .dscm-table td::before {
        content: attr(data-label);
        flex: 0 0 92px;
        color: var(--dscm-muted);
        font-size: 12px;
        font-weight: 750;
        text-align: left;
        text-transform: uppercase;
    }

    .dscm-table td:first-child {
        display: block;
        padding-top: 0;
        text-align: left;
    }

    .dscm-table td:first-child::before {
        display: none;
    }

    .dscm-table td:last-child {
        padding-bottom: 0;
        border-bottom: 0;
    }

    .dscm-table-lead {
        width: 100%;
    }

    .dscm-table-lead strong {
        max-width: 220px;
        font-size: 16px;
    }

    .dscm-row-actions {
        width: 100%;
    }

    .dscm-mini-btn {
        flex: 1;
        min-height: 44px;
    }

    .dscm-archive-btn {
        width: 44px;
        min-height: 44px;
    }

    .dscm-delete-btn {
        flex: 0 0 auto;
        min-width: 86px;
        min-height: 44px;
    }

    .gonbcrm-danger-zone {
        align-items: stretch;
        flex-direction: column;
        padding: 17px;
    }

    .gonbcrm-danger-btn {
        width: 100%;
    }

    .dscm-app-footer {
        margin-top: 22px;
    }
}

@media (max-width: 520px) {
    .dscm-brand-copy small {
        display: none;
    }

    .dscm-command-copy h1 {
        font-size: 30px;
    }

    .dscm-command-actions {
        gap: 8px;
    }

    .dscm-command-actions .dscm-btn:not(.dscm-btn-large) {
        min-height: 52px;
        padding-inline: 10px;
        font-size: 15px;
    }

    .dscm-metric-card {
        min-height: 116px;
        padding: 14px;
    }

    .dscm-metric-copy small {
        display: none;
    }

    .dscm-metric-copy strong {
        font-size: 30px;
    }

    .dscm-panel-title-group {
        gap: 10px;
    }

    .dscm-panel-title-group p:not(.dscm-kicker) {
        font-size: 14px;
    }

    .dscm-quick-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dscm-quick-action {
        padding-inline: 8px;
    }

    .dscm-profile-head {
        align-items: flex-start;
    }

    .dscm-business-avatar {
        width: 50px;
        height: 50px;
    }

    .dscm-work-icon {
        display: none;
    }

    .dscm-form-section-head p {
        font-size: 13px;
    }

    .dscm-pipeline-summary-head > span,
    .dscm-manager-section-head > span {
        font-size: 12px;
    }

    .dscm-pipeline-status {
        padding: 11px;
    }

    .dscm-pipeline-status > span {
        font-size: 11px;
    }

    .dscm-activity-title {
        display: block;
    }

    .dscm-activity-title time {
        display: block;
        margin-top: 2px;
    }

    .dscm-app-footer {
        display: block;
        text-align: center;
    }

    .dscm-app-footer span {
        display: block;
    }

    .dscm-app-footer span + span {
        margin-top: 3px;
    }

    .dscm-auth-wrap {
        padding: 14px;
    }

    .dscm-login-box {
        padding: 25px 20px;
        border-radius: 14px;
    }

    .dscm-login-box h2 {
        font-size: 30px;
    }
}

@media (max-width: 390px) {
    .dscm-shell {
        padding-inline: 13px;
    }

    .dscm-topbar,
    .dscm-command-centre {
        margin-inline: -13px;
        padding-inline: 13px;
    }

    .dscm-brand-copy strong {
        font-size: 15px;
    }

    .dscm-user-avatar {
        display: none;
    }

    .dscm-session-actions {
        padding-left: 0;
        border-left: 0;
    }

    .dscm-command-copy h1 {
        font-size: 28px;
    }

    .dscm-command-copy > p:not(.dscm-eyebrow) {
        font-size: 16px;
    }

    .dscm-btn {
        font-size: 15px;
    }

    .dscm-metrics {
        gap: 8px;
    }

    .dscm-metric-card {
        min-height: 110px;
        padding: 12px;
    }

    .dscm-metric-icon {
        width: 35px;
        height: 35px;
        margin-bottom: 9px;
    }

    .dscm-metric-copy > span {
        font-size: 13px;
    }

    .dscm-metric-copy strong {
        font-size: 28px;
    }

    .dscm-lead-header,
    .dscm-profile-card,
    .dscm-panel,
    .dscm-timeline-card {
        padding-inline: 15px;
    }

    .dscm-lead-heading h2 {
        font-size: 28px;
    }

    .dscm-quick-action strong {
        font-size: 14px;
    }

    .dscm-work-card-head,
    .dscm-lead-form {
        padding-left: 15px;
        padding-right: 15px;
    }

    .dscm-lead-form-actions {
        margin-left: -15px;
        margin-right: -15px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .dscm-pipeline-statuses {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dscm-app *,
    .dscm-auth-wrap * {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==============================================================
   GetOnlineNow.ie Butcher Programme additions
   ============================================================== */

.dscm-guide-panel {
    margin-top: 22px;
}

.gonbcrm-guide-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.gonbcrm-guide-card {
    min-width: 0;
    padding: 20px;
    background: var(--dscm-surface);
    border: 1px solid var(--dscm-border);
    border-radius: var(--dscm-radius);
}

.gonbcrm-guide-opening {
    background: var(--dscm-brand-soft);
    border-color: rgba(147, 107, 16, 0.28);
}

.gonbcrm-guide-card > span,
.gonbcrm-question-title small {
    display: block;
    color: var(--dscm-brand);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.gonbcrm-guide-card h3 {
    margin: 6px 0 10px;
    color: var(--dscm-text);
    font-size: 19px;
    line-height: 1.25;
}

.gonbcrm-guide-card p,
.gonbcrm-guide-card li {
    color: var(--dscm-text-soft);
    font-size: 15px;
    line-height: 1.55;
}

.gonbcrm-guide-card p:last-child,
.gonbcrm-guide-card ul:last-child {
    margin-bottom: 0;
}

.gonbcrm-guide-card ul {
    margin: 0;
    padding-left: 20px;
}

.gonbcrm-guide-card li + li {
    margin-top: 8px;
}

.gonbcrm-objection-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.gonbcrm-objection-grid > div {
    padding: 16px 18px;
    background: var(--dscm-surface-soft);
    border: 1px solid var(--dscm-border);
    border-radius: 12px;
}

.gonbcrm-objection-grid strong {
    display: block;
    margin-bottom: 5px;
    color: var(--dscm-text);
    font-size: 15px;
}

.gonbcrm-objection-grid p {
    margin: 0;
    color: var(--dscm-muted);
    font-size: 14px;
    line-height: 1.5;
}

.gonbcrm-price-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 10px;
    margin-top: 14px;
    padding: 14px;
    background: #171717;
    border-radius: 14px;
}

.gonbcrm-price-strip > span {
    display: flex;
    flex: 1 1 170px;
    flex-direction: column;
    justify-content: center;
    min-height: 58px;
    padding: 8px 12px;
    color: #fff;
    border-right: 1px solid rgba(255,255,255,.13);
}

.gonbcrm-price-strip small {
    color: rgba(255,255,255,.65);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.gonbcrm-price-strip strong {
    margin-top: 3px;
    font-size: 15px;
}

.gonbcrm-price-strip > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 18px;
    color: #171717;
    background: #fff;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.gonbcrm-quick-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gonbcrm-programme-action {
    color: #fff !important;
    background: #171717 !important;
    border-color: #171717 !important;
}

.gonbcrm-profile-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 16px;
}

.gonbcrm-profile-facts > span {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 12px;
    background: var(--dscm-surface-soft);
    border: 1px solid var(--dscm-border);
    border-radius: 10px;
}

.gonbcrm-profile-facts small {
    color: var(--dscm-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.gonbcrm-profile-facts strong {
    margin-top: 3px;
    overflow: hidden;
    color: var(--dscm-text);
    font-size: 14px;
    line-height: 1.35;
    text-overflow: ellipsis;
}

.gonbcrm-member-badge {
    color: #5b4105;
    background: #fff1b8;
    border-color: #e6c75b;
}

.gonbcrm-followup-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px 52px;
}

.gonbcrm-followup-buttons button {
    min-height: 40px;
    padding: 0 13px;
    color: var(--dscm-text-soft);
    background: var(--dscm-surface);
    border: 1px solid var(--dscm-border-strong);
    border-radius: 9px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 750;
}

.gonbcrm-followup-buttons button:hover,
.gonbcrm-followup-buttons button:focus-visible {
    color: var(--dscm-brand-dark);
    background: var(--dscm-brand-soft);
    border-color: var(--dscm-brand);
}

.gonbcrm-qualification-section {
    background: #fffdf6;
    border-color: #ead9a6;
}

.gonbcrm-question-block + .gonbcrm-question-block {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--dscm-border);
}

.gonbcrm-question-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.gonbcrm-question-title strong {
    color: var(--dscm-text);
    font-size: 15px;
}

.gonbcrm-question-title small {
    color: var(--dscm-muted);
    font-size: 10px;
    text-align: right;
}

.dscm-span-2 {
    grid-column: span 2;
}

.gonbcrm-commission-details summary {
    background: #f5f7fb;
}

.gonbcrm-manager-filters {
    grid-template-columns: minmax(170px, .7fr) minmax(190px, .8fr) minmax(260px, 1.5fr);
}

.gonbcrm-manager-table td > strong,
.gonbcrm-manager-table td > small {
    display: block;
}

.gonbcrm-manager-table td > small {
    margin-top: 3px;
    color: var(--dscm-muted);
    font-size: 12px;
}

/* Pipeline colours for the expanded butcher workflow. */
.dscm-status-contacted {
    color: #315f8d !important;
    background: #edf4fb !important;
    border-color: #c9dcef !important;
}
.dscm-status-interested {
    color: #19704f !important;
    background: #e8f5ef !important;
    border-color: #bcdcca !important;
}
.dscm-status-information_sent,
.dscm-status-information-sent {
    color: #7a5109 !important;
    background: #fff4df !important;
    border-color: #efd39a !important;
}
.dscm-status-demo_visit,
.dscm-status-demo-visit {
    color: #65408d !important;
    background: #f1edfa !important;
    border-color: #d7caec !important;
}
.dscm-status-onboarding {
    color: #0c5e6f !important;
    background: #e5f5f7 !important;
    border-color: #b8dfe5 !important;
}
.dscm-status-do_not_contact,
.dscm-status-do-not-contact {
    color: #fff !important;
    background: #4b5250 !important;
    border-color: #4b5250 !important;
}
.dscm-priority-hot {
    color: #8b1730 !important;
    background: #fde8ed !important;
    border-color: #efbcc8 !important;
}

@media (max-width: 1120px) {
    .gonbcrm-guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gonbcrm-objection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .gonbcrm-guide-grid,
    .gonbcrm-objection-grid,
    .gonbcrm-profile-facts { grid-template-columns: 1fr; }
    .gonbcrm-manager-filters { grid-template-columns: 1fr; }
    .gonbcrm-followup-buttons { margin-left: 0; }
    .gonbcrm-followup-buttons button { flex: 1 1 42%; min-height: 48px; }
    .gonbcrm-question-title { align-items: flex-start; flex-direction: column; }
    .gonbcrm-question-title small { text-align: left; }
    .dscm-span-2 { grid-column: auto; }
    .gonbcrm-price-strip > span { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.13); }
    .gonbcrm-price-strip > a { width: 100%; }
}

.gonbcrm-result-limit {
    margin: 0 0 14px;
    padding: 10px 12px;
    border: 1px solid var(--dscm-border);
    border-radius: var(--dscm-radius-sm);
    background: var(--dscm-brand-soft);
    color: var(--dscm-text-soft);
    font-size: 0.88rem;
    font-weight: 700;
}

/* Production workflow additions (v1.1). */
.dscm-lead-card,
.dscm-manager-panel {
    scroll-margin-top: 82px;
}

button.dscm-metric-card {
    width: 100%;
    cursor: pointer;
    font: inherit;
    text-align: left;
}

button.dscm-metric-card:hover,
button.dscm-metric-card:focus-visible {
    border-color: var(--dscm-brand);
    box-shadow: 0 8px 22px rgba(20, 31, 25, 0.1);
    transform: translateY(-1px);
}

.gonbcrm-contact-blocked {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 18px 0;
    padding: 15px;
    color: #7d2430;
    background: var(--dscm-danger-soft);
    border: 1px solid #efbcc8;
    border-radius: 12px;
}

.gonbcrm-contact-blocked > svg {
    width: 24px;
    height: 24px;
}

.gonbcrm-contact-blocked strong,
.gonbcrm-contact-blocked span {
    display: block;
}

.gonbcrm-contact-blocked span {
    margin-top: 3px;
    font-size: 14px;
    line-height: 1.45;
}

.gonbcrm-readonly-status {
    display: flex !important;
    align-items: center;
    min-height: 49px;
    padding: 10px 13px;
    color: var(--dscm-text);
    background: #eef2f0;
    border: 1px solid var(--dscm-border);
    border-radius: 10px;
    font-size: 16px !important;
    font-weight: 750;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.gonbcrm-manager-filters {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.gonbcrm-manager-filters .dscm-manager-search {
    min-width: min(100%, 260px);
}

.gonbcrm-team-performance {
    margin-bottom: 16px;
    padding: 20px;
    background: var(--dscm-surface);
    border: 1px solid var(--dscm-border);
    border-radius: 14px;
}

.gonbcrm-team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
}

.gonbcrm-team-grid article {
    padding: 15px;
    background: var(--dscm-surface-soft);
    border: 1px solid var(--dscm-border);
    border-radius: 11px;
}

.gonbcrm-team-grid article > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gonbcrm-team-grid dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 13px 0 0;
}

.gonbcrm-team-grid dl > div {
    padding: 9px;
    background: #fff;
    border-radius: 8px;
}

.gonbcrm-team-grid dt {
    color: var(--dscm-muted);
    font-size: 12px;
    font-weight: 700;
}

.gonbcrm-team-grid dd {
    margin: 3px 0 0;
    color: var(--dscm-text);
    font-size: 16px;
    font-weight: 800;
}

.gonbcrm-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

.gonbcrm-pagination button,
.gonbcrm-restore-btn {
    min-height: 42px;
    padding: 0 15px;
    color: var(--dscm-text);
    background: #fff;
    border: 1px solid var(--dscm-border-strong);
    border-radius: 9px;
    cursor: pointer;
    font-weight: 750;
}

.gonbcrm-pagination button:disabled {
    cursor: not-allowed;
    opacity: .45;
}

.gonbcrm-pagination span {
    color: var(--dscm-muted);
    font-size: 14px;
    font-weight: 750;
}

@media (max-width: 760px) {
    .gonbcrm-team-performance { padding: 16px; }
    .gonbcrm-team-grid { grid-template-columns: 1fr; }
    .gonbcrm-team-grid dt { font-size: 13px; }
    .gonbcrm-pagination { justify-content: space-between; }
    .gonbcrm-pagination button { min-height: 48px; }
}

/* Main-screen and focused lead workflow (v1.3). */
.dscm-lead-card[hidden],
.dscm-manager-panel[hidden] {
    display: none !important;
}

.dscm-app.is-lead-open .dscm-command-centre,
.dscm-app.is-lead-open .dscm-overview,
.dscm-app.is-lead-open #dscm-guide-panel,
.dscm-app.is-lead-open #dscm-add-panel,
.dscm-app.is-lead-open #dscm-manager-panel {
    display: none !important;
}

.dscm-manager-panel {
    margin-top: 24px;
}

.gonbcrm-workspace-nav,
.gonbcrm-workspace-footer-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    background: var(--dscm-brand-soft);
    border: 1px solid #e8d7a7;
    border-radius: var(--dscm-radius);
}

.gonbcrm-workspace-nav {
    margin-bottom: 18px;
}

.gonbcrm-workspace-footer-nav {
    margin-top: 20px;
}

.gonbcrm-workspace-nav-copy {
    min-width: 0;
    text-align: right;
}

.gonbcrm-workspace-nav-copy strong,
.gonbcrm-workspace-nav-copy span,
.gonbcrm-workspace-footer-nav > span {
    display: block;
}

.gonbcrm-workspace-nav-copy strong {
    color: var(--dscm-text);
    font-size: 1rem;
    font-weight: 850;
}

.gonbcrm-workspace-nav-copy span,
.gonbcrm-workspace-footer-nav > span {
    color: var(--dscm-text-soft);
    font-size: 0.9rem;
    font-weight: 650;
}

.gonbcrm-back-main {
    min-height: 58px;
    padding: 0 22px;
    font-size: 1.02rem;
    font-weight: 850;
    white-space: nowrap;
}

.gonbcrm-back-main svg {
    width: 24px;
    height: 24px;
}

.gonbcrm-empty-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.gonbcrm-clickable-row {
    cursor: pointer;
    transition: background-color 160ms ease, box-shadow 160ms ease;
}

.gonbcrm-clickable-row:hover td,
.gonbcrm-clickable-row:focus td {
    background: var(--dscm-brand-soft);
}

.gonbcrm-clickable-row:focus {
    outline: 3px solid var(--dscm-brand);
    outline-offset: -3px;
}

.gonbcrm-clickable-row .dscm-table-lead {
    cursor: pointer;
}

@media (max-width: 760px) {
    .dscm-manager-panel {
        margin-top: 16px;
    }

    .gonbcrm-workspace-nav,
    .gonbcrm-workspace-footer-nav {
        align-items: stretch;
        flex-direction: column;
        padding: 15px;
    }

    .gonbcrm-workspace-nav-copy {
        text-align: center;
    }

    .gonbcrm-back-main,
    .gonbcrm-empty-actions .dscm-btn {
        width: 100%;
        justify-content: center;
    }

    .gonbcrm-workspace-footer-nav > span {
        text-align: center;
    }
}
