:root {
    --brand-bg: #f3f5f7;
    --brand-surface: #ffffff;
    --brand-text: #1f3f8f;
    --brand-text-dark: #16324a;
    --brand-text-soft: #5f6f82;
    --brand-primary: #1f3f8f;
    --brand-primary-dark: #173372;
    --brand-cta: #63c174;
    --brand-cta-dark: #4ead60;
    --brand-line: #d9e0e7;
    --brand-pill: #eef3ff;
    --brand-error-bg: #fdeaea;
    --brand-error-text: #9f1f1f;
    --shadow-soft: 0 14px 34px rgba(22, 50, 74, 0.08);
    --radius-lg: 22px;
    --radius-md: 14px;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    background: var(--brand-bg);
    color: var(--brand-text-dark);
    font-family: Arial, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

.page {
    min-height: 100vh;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
}

.card {
    background: var(--brand-surface);
    border: 1px solid rgba(22, 50, 74, 0.06);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-soft);
}

.form-card {
    max-width: 560px;
    margin: 0 auto;
}

.hero-card {
    position: relative;
}

.hero-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 8px;
    background: var(--brand-cta);
    border-radius: 22px 22px 0 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--brand-cta);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
}

.brand-copy {
    display: grid;
    gap: 2px;
}

.brand-name {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--brand-primary);
    text-transform: lowercase;
}

.brand-tagline {
    color: var(--brand-text-soft);
    font-size: 14px;
}

h1 {
    margin: 0 0 12px;
    font-size: 34px;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--brand-primary);
}

p {
    margin: 0 0 14px;
    line-height: 1.6;
}

.small {
    color: var(--brand-text-soft);
    font-size: 14px;
}

.label {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
}

.label-ok {
    background: var(--brand-pill);
    color: var(--brand-primary);
}

.label-error {
    background: var(--brand-error-bg);
    color: var(--brand-error-text);
}

.alert {
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 16px;
}

.alert-error {
    background: var(--brand-error-bg);
    color: var(--brand-error-text);
}

.gsi-wrap {
    display: flex;
    justify-content: flex-start;
    margin-top: 12px;
    margin-bottom: 18px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 700;
    border: 0;
    cursor: pointer;
    background: var(--brand-cta);
    color: #ffffff;
}

.btn-secondary {
    background: #ffffff;
    color: var(--brand-primary);
    border: 1px solid var(--brand-line);
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.metric-grid,
.status-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.metric-card,
.status-item {
    background: #fbfcfc;
    border: 1px solid var(--brand-line);
    border-radius: 16px;
    padding: 18px;
}

.metric-number {
    font-size: 34px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
    color: var(--brand-primary);
}

.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--brand-line);
    background: #ffffff;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    overflow: hidden;
    background: #dfe8ef;
    flex: 0 0 auto;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-meta {
    display: grid;
    gap: 2px;
}

.user-name {
    font-weight: 700;
    font-size: 14px;
}

.user-email {
    color: var(--brand-text-soft);
    font-size: 13px;
}

.list {
    margin: 0;
    padding-left: 18px;
}

@media (min-width: 768px) {
    .page {
        padding: 40px 24px;
    }

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

    .status-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 96px 24px 40px;
    background: #f3f5f7;
}

.login-shell {
    width: 100%;
    max-width: 360px;
    text-align: center;
}

.login-logo-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 34px;
}

.login-logo {
    display: block;
    width: auto;
    height: 72px;
    max-width: 240px;
}

.login-box {
    width: 100%;
    max-width: 290px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 10px;
    padding: 26px 22px 28px;
    box-shadow: 0 6px 18px rgba(22, 50, 74, 0.08);
    text-align: left;
}

.login-box h1 {
    margin: 0 0 20px;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: 0;
    color: #111827;
    font-weight: 600;
}

.login-gsi {
    display: flex;
    justify-content: center;
}

.login-footer {
    margin-top: 24px;
    text-align: center;
    font-size: 14px;
    color: #5f6f82;
}

@media (max-width: 640px) {
    .login-page {
        padding-top: 56px;
    }

    .login-shell {
        max-width: 320px;
    }

    .login-logo-wrap {
        margin-bottom: 24px;
    }

    .login-logo {
        height: 56px;
        max-width: 190px;
    }

    .login-box {
        max-width: 280px;
        padding: 24px 20px 26px;
    }
}
.app-page {
    min-height: 100vh;
    background: #f3f5f7;
    padding: 28px 16px 44px;
}

.app-shell {
    width: min(1520px, calc(100vw - 32px));
    max-width: none;
    margin: 0 auto;
}

.app-topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 560px) auto;
    align-items: center;
    gap: 18px 24px;
    margin-bottom: 24px;
}

.app-topbar-left {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 18px;
}

.app-topbar-right {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.app-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.app-brand-logo {
    height: 42px;
    width: auto;
    display: block;
}

.app-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.app-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 10px 14px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid var(--brand-line);
    color: var(--brand-primary);
    font-weight: 600;
}

.app-nav a.is-active {
    background: #eef3ff;
}

.app-grid {
    display: grid;
    gap: 20px;
}

.table-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid var(--brand-line);
    box-shadow: 0 6px 18px rgba(22, 50, 74, 0.06);
    overflow: hidden;
}

.table-header {
    padding: 18px 20px;
    border-bottom: 1px solid var(--brand-line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

.crm-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.crm-table th,
.crm-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #eef1f4;
    text-align: left;
    vertical-align: top;
    font-size: 14px;
}

.crm-table th {
    background: #fafbfc;
    color: var(--brand-primary);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.crm-table tr:hover td {
    background: #fcfdff;
}

.field-grid {
    display: grid;
    gap: 16px;
}

.field-grid-2 {
    display: grid;
    gap: 16px;
}

.textarea {
    width: 100%;
    min-height: 120px;
    border: 1px solid var(--brand-line);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 16px;
    color: var(--brand-text);
    background: #ffffff;
    font-family: Arial, sans-serif;
    resize: vertical;
}

.page-title {
    margin: 0;
    font-size: 30px;
    line-height: 1.12;
    color: var(--brand-primary);
}

.app-topbar-left .page-title {
    min-width: 0;
    font-size: 28px;
    overflow-wrap: anywhere;
}

.page-subtitle {
    margin: 6px 0 0;
    color: var(--brand-text-soft);
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef3ff;
    color: var(--brand-primary);
    font-size: 12px;
    font-weight: 700;
}

.empty-state {
    padding: 28px 20px;
    color: var(--brand-text-soft);
}

@media (min-width: 768px) {
    .field-grid-2 {
        grid-template-columns: 1fr 1fr;
    }
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(22, 50, 74, 0.32);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 1000;
}

.modal-card {
    width: 100%;
    max-width: 760px;
    max-height: calc(100vh - 48px);
    overflow: auto;
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid var(--brand-line);
    box-shadow: 0 18px 40px rgba(22, 50, 74, 0.18);
    padding: 24px;
}

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.modal-title {
    margin: 0;
    font-size: 24px;
    color: var(--brand-primary);
}

.modal-subtitle {
    margin: 6px 0 0;
    color: var(--brand-text-soft);
}

.modal-close {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f3f5f7;
    border: 1px solid var(--brand-line);
    color: var(--brand-primary);
    font-size: 28px;
    line-height: 1;
    font-weight: 400;
}

.modal-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.alert-success {
    background: #e8f7ec;
    color: #1c6b3c;
}

.settings-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.settings-tabs a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 10px 14px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid var(--brand-line);
    color: var(--brand-primary);
    font-weight: 600;
}

.settings-tabs a.is-active {
    background: #eef3ff;
}

.settings-create-grid {
    display: grid;
    gap: 14px;
}

.settings-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 780px;
}

.settings-table th,
.settings-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #eef1f4;
    text-align: left;
    vertical-align: middle;
}

.settings-table th {
    background: #fafbfc;
    color: var(--brand-primary);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.settings-table input[type="text"],
.settings-table input[type="number"] {
    min-height: 40px;
    font-size: 14px;
}

.settings-center {
    text-align: center;
}

.checkbox-field {
    display: flex;
    align-items: flex-end;
}

.checkbox-field label {
    margin: 0;
    font-weight: 600;
}

.btn-small {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 14px;
}

@media (min-width: 900px) {
    .settings-create-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr auto;
        align-items: end;
    }
}
.settings-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.settings-overview-card {
    display: block;
    background: #ffffff;
    border: 1px solid var(--brand-line);
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(22, 50, 74, 0.06);
    padding: 20px;
}

.settings-overview-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.settings-overview-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--brand-primary);
}

.settings-overview-count {
    margin-top: 4px;
    color: var(--brand-text-soft);
    font-size: 14px;
}

.settings-overview-arrow {
    font-size: 28px;
    line-height: 1;
    color: var(--brand-primary);
}

.settings-preview-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.settings-preview-item {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef3ff;
    color: var(--brand-primary);
    font-size: 12px;
    font-weight: 700;
}

.settings-preview-empty {
    color: var(--brand-text-soft);
    font-size: 14px;
}

.settings-modal-list {
    display: grid;
    gap: 14px;
}

.settings-row-card {
    background: #f9fbfd;
    border: 1px solid var(--brand-line);
    border-radius: 14px;
    padding: 16px;
}

.settings-row-card-create {
    background: #ffffff;
}

.settings-row-grid {
    display: grid;
    gap: 14px;
}

.settings-row-grid-stage,
.settings-row-grid-lookup {
    grid-template-columns: 1fr;
}

.settings-save-cell {
    display: flex;
    align-items: end;
}

.settings-create-panel {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--brand-line);
}

.settings-create-title {
    margin: 0 0 14px;
    font-size: 18px;
    color: var(--brand-primary);
}

@media (min-width: 760px) {
    .settings-card-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 980px) {
    .settings-row-grid-stage {
        grid-template-columns: 2fr 2fr 1fr 1fr 1fr auto;
        align-items: end;
    }

    .settings-row-grid-lookup {
        grid-template-columns: 2fr 2fr 1fr 1fr auto;
        align-items: end;
    }
}

.modal-card-deal {
    width: 100%;
    max-width: 1040px;
    padding: 0;
    overflow: hidden;
}

.modal-header-deal {
    padding: 24px 28px 18px;
    border-bottom: 1px solid var(--brand-line);
    align-items: center;
}

.deal-form-shell {
    padding: 24px 28px 28px;
}

.deal-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
}

.deal-col {
    display: grid;
    gap: 18px;
    align-content: start;
}

.deal-col-full {
    grid-column: 1 / -1;
}

.deal-inline-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.deal-form-shell .field {
    margin-bottom: 0;
}

.deal-form-shell label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #66758a;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.deal-form-shell input,
.deal-form-shell select,
.deal-form-shell textarea {
    width: 100%;
    min-height: 46px;
    border: 1px solid #d9e0e7;
    border-radius: 12px;
    background: #ffffff;
    padding: 12px 14px;
    font-size: 15px;
    color: #16324a;
    box-shadow: none;
}

.deal-form-shell input:focus,
.deal-form-shell select:focus,
.deal-form-shell textarea:focus {
    outline: none;
    border-color: #1f3f8f;
    box-shadow: 0 0 0 4px rgba(31, 63, 143, 0.08);
}

.deal-textarea {
    min-height: 128px;
}

.choice-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.choice-row-stage {
    gap: 12px;
}

.choice-button {
    min-height: 40px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid #d9e0e7;
    background: #ffffff;
    color: #1f3f8f;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
}

.choice-button:hover {
    border-color: #b8c9ef;
    background: #f5f8ff;
}

.choice-button.is-selected {
    background: #1f3f8f;
    color: #ffffff;
    border-color: #1f3f8f;
    box-shadow: 0 8px 18px rgba(31, 63, 143, 0.18);
}

.choice-button-stage {
    min-width: 0;
    max-width: 180px;
    padding: 10px 16px;
}

.choice-label {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: top;
}

.choice-button-priority.is-low {
    background: #f8fafc;
    border-color: #d7dde5;
    color: #5b6472;
}

.choice-button-priority.is-medium {
    background: #fff8e8;
    border-color: #f1cf84;
    color: #a86508;
}

.choice-button-priority.is-high {
    background: #fff1f1;
    border-color: #efb2b2;
    color: #b42318;
}

.choice-button-priority.is-low.is-selected {
    background: #64748b;
    border-color: #64748b;
    color: #ffffff;
}

.choice-button-priority.is-medium.is-selected {
    background: #d97706;
    border-color: #d97706;
    color: #ffffff;
}

.choice-button-priority.is-high.is-selected {
    background: #dc2626;
    border-color: #dc2626;
    color: #ffffff;
}

.deal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--brand-line);
}

@media (min-width: 900px) {
    .deal-grid {
        grid-template-columns: 1.05fr 0.95fr;
        gap: 26px;
    }

    .deal-inline-grid {
        grid-template-columns: 1.2fr 0.9fr 1fr;
        gap: 18px;
        align-items: start;
    }
}

.field-stage-top {
    margin-bottom: 26px;
}

.stage-progress {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.stage-progress-step {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid #d9e0e7;
    background: #ffffff;
    color: #1f3f8f;
    cursor: pointer;
    transition: all 0.18s ease;
    flex: 0 0 auto;
    max-width: 220px;
}

.stage-progress-step:hover {
    border-color: #b8c9ef;
    background: #f5f8ff;
}

.stage-progress-step.is-selected {
    background: #1f3f8f;
    border-color: #1f3f8f;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(31, 63, 143, 0.18);
}

.stage-progress-index {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.18);
    font-size: 12px;
    font-weight: 700;
    flex: 0 0 auto;
}

.stage-progress-step:not(.is-selected) .stage-progress-index {
    background: #eef3ff;
    color: #1f3f8f;
}

.stage-progress-label {
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.deal-inline-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

@media (min-width: 900px) {
    .deal-inline-grid {
        grid-template-columns: 1.1fr 0.9fr;
    }
}


.stage-stepper {
    display: flex;
    align-items: stretch;
    overflow-x: auto;
    padding: 4px 0 6px;
    scrollbar-width: none;
}

.stage-stepper::-webkit-scrollbar {
    display: none;
}

.stage-step {
    --step-bg: #deeee2;
    --step-text: #2f7d43;
    position: relative;
    z-index: var(--stage-order, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
    min-width: 158px;
    max-width: none;
    min-height: 52px;
    padding: 0 28px 0 34px;
    border: 0;
    background: var(--step-bg);
    color: var(--step-text);
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    transition: transform 0.18s ease, filter 0.18s ease, background 0.18s ease, color 0.18s ease;
    clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 50%, calc(100% - 24px) 100%, 0 100%);
    box-shadow: inset 0 0 0 2px #ffffff;
}

.stage-step:not(:first-child) {
    margin-left: -24px;
    padding-left: 40px;
}

.stage-step:first-child {
    margin-left: 0;
    padding-left: 24px;
    border-radius: 14px 0 0 14px;
    clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 50%, calc(100% - 24px) 100%, 0 100%);
}

.stage-step:last-child {
    padding-right: 24px;
    border-radius: 0 14px 14px 0;
    clip-path: inset(0 round 0 14px 14px 0);
}

.stage-step.is-complete {
    --step-bg: #dceee0;
    --step-text: #2f7d43;
}

.stage-step.is-current {
    --step-bg: #63c174;
    --step-text: #ffffff;
}

.stage-step.is-upcoming {
    --step-bg: #edf1f6;
    --step-text: #75849a;
}

.stage-step:hover {
    transform: translateY(-1px);
    filter: brightness(0.99);
}

.stage-step.is-current:hover {
    filter: brightness(0.96);
}

.stage-step-text {
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    position: relative;
    z-index: 2;
}

@media (max-width: 760px) {
    .stage-step {
        min-width: 148px;
        min-height: 46px;
        padding: 0 24px 0 30px;
        font-size: 14px;
        clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 0 100%);
    }

    .stage-step:not(:first-child) {
        margin-left: -20px;
        padding-left: 34px;
    }

    .stage-step:first-child {
        padding-left: 20px;
        clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 0 100%);
    }

    .stage-step:last-child {
        padding-right: 20px;
    }
}

.searchable-field {
    position: relative;
}

.search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #d9e0e7;
    border-radius: 14px;
    box-shadow: 0 16px 30px rgba(22, 50, 74, 0.12);
    padding: 8px;
    display: none;
    z-index: 30;
    max-height: 260px;
    overflow-y: auto;
}

.search-dropdown.is-open {
    display: block;
}

.search-option {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    padding: 12px 14px;
    border-radius: 10px;
    color: #16324a;
    font-size: 14px;
    cursor: pointer;
}

.search-option:hover {
    background: #f5f8ff;
    color: #1f3f8f;
}

.company-summary-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.company-summary-value {
    margin-top: 6px;
    font-size: 20px;
    font-weight: 700;
    color: var(--brand-primary);
}

.company-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.company-card-body {
    padding: 20px;
}

.activity-list {
    display: grid;
    gap: 16px;
    padding: 20px;
}

.activity-card {
    border: 1px solid var(--brand-line);
    border-radius: 16px;
    background: #ffffff;
    padding: 16px;
}

.activity-card.is-done {
    opacity: 0.75;
    background: #fafbfc;
}

.activity-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

.activity-type {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--brand-text-soft);
    margin-bottom: 6px;
}

.activity-subject {
    font-size: 18px;
    font-weight: 700;
    color: var(--brand-primary);
}

.activity-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 10px;
    color: var(--brand-text-soft);
    font-size: 14px;
}

.activity-note {
    margin-top: 12px;
    line-height: 1.6;
    color: #16324a;
}

@media (min-width: 980px) {
    .company-summary-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .company-layout {
        grid-template-columns: 420px 1fr;
        align-items: start;
    }
}

.settings-row-grid-country {
    grid-template-columns: 1fr;
}

@media (min-width: 980px) {
    .settings-row-grid-country {
        grid-template-columns: 2fr 1fr 1fr 1fr auto;
        align-items: end;
    }
}

.company-page-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
}

.company-main,
.company-sidebar {
    display: grid;
    gap: 22px;
    align-content: start;
}

.deal-details-form,
.company-sidebar-form,
.activity-composer-form {
    display: grid;
    gap: 16px;
}

.deal-stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 4px;
}

.summary-stat {
    background: #f8fafc;
    border: 1px solid var(--brand-line);
    border-radius: 14px;
    padding: 14px 16px;
}

.summary-stat-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--brand-text-soft);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.summary-stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--brand-primary);
}

@media (min-width: 980px) {
    .deal-stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .company-page-layout {
        grid-template-columns: minmax(0, 1fr) 320px;
        align-items: start;
    }
}

.stage-bar-card {
    background: #ffffff;
    border: 1px solid var(--brand-line);
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(22, 50, 74, 0.06);
    padding: 18px 20px;
    margin-bottom: 22px;
}

.workspace-v2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
}

.company-info-card,
.company-activity-column {
    display: grid;
    gap: 22px;
    align-content: start;
}

.info-card-section .company-card-body {
    display: grid;
    gap: 0;
}

.value-block-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.value-block,
.editable-block {
    background: #f8fafc;
    border: 1px solid var(--brand-line);
    border-radius: 16px;
    padding: 14px 16px;
    min-height: 92px;
}

.editable-block {
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.editable-block:hover {
    border-color: #b8c9ef;
    box-shadow: 0 6px 18px rgba(31, 63, 143, 0.06);
    background: #ffffff;
}

.editable-block.is-editing {
    background: #ffffff;
    border-color: #1f3f8f;
    box-shadow: 0 0 0 4px rgba(31, 63, 143, 0.08);
}

.editable-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--brand-text-soft);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.editable-value {
    font-size: 18px;
    line-height: 1.35;
    font-weight: 700;
    color: var(--brand-primary);
    word-break: break-word;
}

.editable-editor {
    display: none;
}

.editable-block.is-editing .editable-editor {
    display: block;
    margin-top: 10px;
}

.editable-block.is-editing .editable-value {
    color: #8a97a8;
    font-size: 13px;
    font-weight: 600;
}

.editable-editor input,
.editable-editor select,
.editable-editor textarea {
    width: 100%;
    min-height: 44px;
    border: 1px solid #d9e0e7;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 15px;
    color: #16324a;
    background: #ffffff;
}

.editable-editor input:focus,
.editable-editor select:focus,
.editable-editor textarea:focus {
    outline: none;
    border-color: #1f3f8f;
    box-shadow: 0 0 0 4px rgba(31, 63, 143, 0.08);
}

.editable-block-wide {
    grid-column: 1 / -1;
}

.contact-form-split {
    margin-top: 26px;
    padding-top: 24px;
    border-top: 1px solid var(--brand-line);
}

.compact-composer-card .company-card-body {
    padding-top: 18px;
}

.compact-activity-form {
    display: grid;
    gap: 16px;
}

.composer-main-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: end;
}

.composer-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.composer-subject-field {
    margin-bottom: 0;
}

.composer-details {
    display: none;
    padding-top: 6px;
}

.composer-details.is-open {
    display: block;
}

.timeline-list {
    position: relative;
    padding: 22px 22px 24px 22px;
}

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 26px 1fr;
    gap: 16px;
    padding-bottom: 18px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 8px;
    bottom: -10px;
    width: 2px;
    background: #d9e0e7;
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-marker {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: #1f3f8f;
    margin-top: 8px;
    position: relative;
    z-index: 1;
}

.timeline-item.is-done .timeline-marker {
    background: #94a3b8;
}

.timeline-card {
    border: 1px solid var(--brand-line);
    border-radius: 18px;
    background: #ffffff;
    padding: 16px 18px;
}

.timeline-item.is-done .timeline-card {
    background: #fafbfc;
    opacity: 0.86;
}

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

.timeline-type {
    font-size: 12px;
    font-weight: 700;
    color: var(--brand-text-soft);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.timeline-subject {
    font-size: 19px;
    font-weight: 700;
    color: var(--brand-primary);
}

.timeline-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 10px;
    color: var(--brand-text-soft);
    font-size: 14px;
}

.timeline-note {
    margin-top: 12px;
    color: #16324a;
    line-height: 1.6;
}

.timeline-divider {
    margin: 8px 0 18px 40px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--brand-text-soft);
}

.stage-bar-form {
    margin: 0;
}

@media (min-width: 900px) {
    .value-block-grid {
        grid-template-columns: 1fr 1fr;
    }

    .composer-main-row {
        grid-template-columns: 1fr auto;
    }

    .composer-buttons {
        justify-content: flex-end;
    }
}

@media (min-width: 1180px) {
    .workspace-v2 {
        grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.78fr);
        align-items: start;
    }
}

.editable-block.is-saving {
    opacity: 0.7;
}

.editable-block.is-saved {
    border-color: #63c174;
    box-shadow: 0 0 0 4px rgba(99, 193, 116, 0.12);
}

.editable-block.is-saved::after {
    content: "Saved";
    position: absolute;
    top: 12px;
    right: 14px;
    font-size: 12px;
    font-weight: 700;
    color: #2f7d43;
}

.editable-block,
.value-block {
    position: relative;
}

.compact-activity-form .composer-details {
    display: none;
}

.compact-activity-form .composer-details.is-open {
    display: block;
}

.value-block-grid-single {
    grid-template-columns: 1fr;
}

.timeline-marker {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 6px;
    position: relative;
    z-index: 1;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(22, 50, 74, 0.12);
}

.timeline-marker.is-call {
    background: #1f3f8f;
}

.timeline-marker.is-email {
    background: #0f766e;
}

.timeline-marker.is-meeting {
    background: #7c3aed;
}

.timeline-marker.is-task {
    background: #d97706;
}

.timeline-marker.is-note {
    background: #475569;
}

.timeline-marker.is-generic {
    background: #64748b;
}

.timeline-marker-icon {
    line-height: 1;
}

.timeline-item::before {
    left: 18px;
    top: 20px;
}

.timeline-item.is-done .timeline-card {
    background: #f8fafc;
    border-color: #d9e0e7;
    opacity: 1;
}

.timeline-item.is-done .timeline-type,
.timeline-item.is-done .timeline-subject,
.timeline-item.is-done .timeline-meta,
.timeline-item.is-done .timeline-note {
    color: #6b7b91;
}

.timeline-status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #e8f7ec;
    color: #2f7d43;
    font-size: 12px;
    font-weight: 700;
}

.timeline-heading {
    min-width: 0;
    flex: 1 1 auto;
}

.activity-inline-field {
    cursor: pointer;
    border-radius: 12px;
    transition: background 0.18s ease, box-shadow 0.18s ease;
}

.activity-inline-field:hover {
    background: #f8fafc;
}

.activity-inline-field.is-editing {
    background: #f8fafc;
    box-shadow: inset 0 0 0 1px #cdd8ea;
}

.activity-inline-field.is-saving {
    opacity: 0.7;
}

.activity-inline-field.is-saved {
    box-shadow: inset 0 0 0 2px rgba(99, 193, 116, 0.45);
}

.activity-inline-title {
    font-size: 19px;
    font-weight: 700;
    color: var(--brand-primary);
    line-height: 1.35;
}

.activity-inline-note {
    margin-top: 12px;
}

.activity-note-value {
    white-space: pre-line;
    line-height: 1.6;
    color: #16324a;
    min-height: 24px;
}

.activity-inline-editor {
    display: none;
    margin-top: 8px;
}

.activity-inline-field.is-editing .activity-inline-editor {
    display: block;
}

.activity-inline-field.is-editing .activity-inline-value {
    color: #8794a7;
}

.activity-inline-editor input,
.activity-inline-editor textarea,
.activity-inline-editor select {
    width: 100%;
    min-height: 46px;
    border: 1px solid #d9e0e7;
    border-radius: 14px;
    padding: 10px 14px;
    font-size: 15px;
    color: #16324a;
    background: #ffffff;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.activity-inline-editor input:focus,
.activity-inline-editor textarea:focus,
.activity-inline-editor select:focus {
    outline: none;
    border-color: #1f3f8f;
    box-shadow: 0 0 0 4px rgba(31, 63, 143, 0.08);
}

.activity-inline-editor textarea {
    min-height: 96px;
    resize: vertical;
}

.timeline-divider {
    margin: 8px 0 18px 56px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--brand-text-soft);
}

@media (min-width: 1180px) {
    .value-block-grid-single {
        grid-template-columns: 1fr;
    }
}

.timeline-card,
.timeline-subject,
.timeline-note,
.activity-inline-title,
.activity-note-value,
.editable-value {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.timeline-meta-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 14px;
    margin-bottom: 12px;
}

.activity-inline-meta {
    padding: 12px 14px;
    border: 1px solid #d9e0e7;
    background: f8fafc;
    border-radius: 14px;
    box-shadow: none;
}

.activity-inline-meta-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--brand-text-soft);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.activity-inline-meta-value {
    font-size: 15px;
    font-weight: 600;
    color: #16324a;
    min-height: 20px;
}

.timeline-item.is-done .timeline-marker {
    box-shadow: none;
    opacity: 0.92;
}

.timeline-item.is-done .timeline-status-pill {
    background: #eef2ff;
    color: #53637c;
}

@media (min-width: 900px) {
    .timeline-meta-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.activity-inline-meta:hover {
    background: #ffffff;
    border-color: #b8c9ef;
}

.activity-inline-meta.is-editing {
    background: #ffffff;
    border-color: #1f3f8f;
    box-shadow: 0 0 0 4px rgba(31, 63, 143, 0.08);
}

.activity-inline-meta .activity-inline-editor {
    margin-top: 6px;
}

.activity-inline-meta .activity-inline-editor input,
.activity-inline-meta .activity-inline-editor select {
    background: #ffffff;
}

.crm-input {
    width: 100%;
    min-height: 46px;
    border: 1px solid #d9e0e7;
    border-radius: 14px;
    padding: 10px 14px;
    font-size: 15px;
    color: #16324a;
    background: #ffffff;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.crm-input:focus {
    outline: none;
    border-color: #1f3f8f;
    box-shadow: 0 0 0 4px rgba(31, 63, 143, 0.08);
}

.timeline-toggle-form {
    margin: 0;
}

.timeline-done-toggle {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.timeline-done-toggle:hover {
    transform: translateY(-1px);
}

.timeline-done-toggle.is-open {
    background: #94a3b8;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(100, 116, 139, 0.18);
}

.timeline-done-toggle.is-done {
    background: #63c174;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(99, 193, 116, 0.2);
}

.timeline-done-check {
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
}

.timeline-card,
.timeline-subject,
.timeline-note,
.activity-inline-title,
.activity-note-value,
.editable-value,
.activity-inline-meta-value {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.crm-input {
    width: 100%;
    min-height: 46px;
    border: 1px solid #d9e0e7;
    border-radius: 14px;
    padding: 10px 14px;
    font-size: 15px;
    color: #16324a;
    background: #ffffff;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.crm-input:focus {
    outline: none;
    border-color: #1f3f8f;
    box-shadow: 0 0 0 4px rgba(31, 63, 143, 0.08);
}

.timeline-toggle-form {
    margin: 0;
}

.timeline-done-toggle {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.timeline-done-toggle:hover {
    transform: translateY(-1px);
}

.timeline-done-toggle.is-open {
    background: #94a3b8;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(100, 116, 139, 0.18);
}

.timeline-done-toggle.is-done {
    background: #63c174;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(99, 193, 116, 0.2);
}

.timeline-done-check {
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
}

.timeline-card,
.timeline-subject,
.timeline-note,
.activity-inline-title,
.activity-note-value,
.editable-value,
.activity-inline-meta-value {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.badge-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mini-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eef3ff;
    color: #1f3f8f;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mini-badge-more {
    background: #f1f5f9;
    color: #475569;
}

.inline-badge-empty {
    color: #7b8798;
    font-weight: 600;
}

.editable-value .badge-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.editable-value .mini-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eef3ff;
    color: #1f3f8f;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.editable-value .mini-badge-more {
    background: #f1f5f9;
    color: #475569;
}

.badge-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mini-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eef3ff;
    color: #1f3f8f;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mini-badge-more {
    background: #f1f5f9;
    color: #475569;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(22, 50, 74, 0.28);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 14px;
    overflow-y: auto;
    z-index: 1000;
}

.modal-card.modal-card-deal {
    width: min(1180px, 100%);
    max-height: calc(100vh - 28px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-header.modal-header-deal {
    flex: 0 0 auto;
}

.deal-form-shell {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 24px 28px 20px;
}

.deal-footer {
    position: sticky;
    bottom: 0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 18px 0 0;
    margin-top: 20px;
    background: #ffffff;
    border-top: 1px solid #e3eaf3;
}

.alert {
    margin-bottom: 18px;
}

@media (max-width: 900px) {
    .modal-backdrop {
        padding: 8px;
    }

    .modal-card.modal-card-deal {
        max-height: calc(100vh - 16px);
    }

    .deal-form-shell {
        padding: 18px 16px 16px;
    }

    .deal-footer {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .deal-footer .btn,
    .deal-footer a.btn {
        width: 100%;
        justify-content: center;
    }
}

.app-topbar-search {
    width: 100%;
    max-width: 560px;
    justify-self: center;
}

.global-search {
    position: relative;
}

.global-search-input {
    width: 100%;
    min-height: 46px;
    border: 1px solid #d9e0e7;
    border-radius: 14px;
    padding: 10px 14px;
    font-size: 15px;
    color: #16324a;
    background: #ffffff;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.global-search-input:focus {
    outline: none;
    border-color: #1f3f8f;
    box-shadow: 0 0 0 4px rgba(31, 63, 143, 0.08);
}

.global-search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #d9e0e7;
    border-radius: 16px;
    box-shadow: 0 16px 34px rgba(22, 50, 74, 0.12);
    padding: 8px;
    z-index: 60;
    max-height: 420px;
    overflow-y: auto;
}

.global-search-result {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    color: #16324a;
}

.global-search-result:hover,
.global-search-result.is-active {
    background: #f5f8ff;
}

.global-search-company {
    font-size: 15px;
    font-weight: 700;
    color: #1f3f8f;
    margin-bottom: 4px;
}

.global-search-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 12px;
    color: #5f6f82;
}

.global-search-snippet {
    font-size: 13px;
    line-height: 1.45;
    color: #16324a;
}

.global-search-highlight {
    background: #eef3ff;
    color: #1f3f8f;
    padding: 0 2px;
    border-radius: 4px;
}

.global-search-empty {
    padding: 16px 14px;
    font-size: 14px;
    color: #5f6f82;
}

.table-cell-stack {
    display: grid;
    gap: 6px;
}

.due-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    width: fit-content;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.due-pill.is-overdue {
    background: #fff1f1;
    color: #b42318;
}

.due-pill.is-today {
    background: #e8f7ec;
    color: #2f7d43;
}

.due-pill.is-tomorrow,
.due-pill.is-upcoming {
    background: #eef3ff;
    color: #1f3f8f;
}

@media (max-width: 1199px) {
    .app-topbar {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .app-topbar-search {
        grid-column: 1 / -1;
        max-width: 720px;
    }
}

@media (max-width: 859px) {
    .app-topbar {
        grid-template-columns: 1fr;
    }

    .app-topbar-left,
    .app-topbar-right {
        width: 100%;
    }

    .app-topbar-right {
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .app-nav {
        justify-content: flex-start;
    }

    .app-topbar-search {
        grid-column: auto;
        max-width: none;
    }
}


.app-shell-wide {
    width: min(1520px, calc(100vw - 32px));
    max-width: none;
}

@media (min-width: 1200px) {
    .app-page {
        padding-left: 20px;
        padding-right: 20px;
    }

    .app-shell,
    .app-shell-wide {
        width: min(1600px, calc(100vw - 40px));
    }
}

.dashboard-summary-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 22px;
}

.dashboard-filters-card {
    margin-bottom: 22px;
}

.dashboard-filters-body {
    padding: 20px;
}

.dashboard-filters-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: end;
}

.dashboard-filter-field {
    margin-bottom: 0;
}

.dashboard-filter-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #66758a;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.dashboard-filter-static {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    padding: 10px 14px;
    border: 1px solid var(--brand-line);
    border-radius: 14px;
    background: #f8fafc;
    color: #5f6f82;
    font-size: 15px;
    font-weight: 600;
}


.dashboard-filter-buttons .choice-row {
    gap: 8px;
}

.dashboard-filter-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.dashboard-board-wrap {
    overflow-x: visible;
    padding-bottom: 8px;
}

.dashboard-board {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    align-items: start;
}

.dashboard-stage-column {
    background: #f8fafc;
    border: 1px solid var(--brand-line);
    border-radius: 18px;
    min-height: 420px;
    display: grid;
    grid-template-rows: auto 1fr;
}

.dashboard-stage-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 14px 12px;
    border-bottom: 1px solid #e7edf3;
}

.dashboard-stage-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--brand-primary);
}

.dashboard-stage-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    min-height: 30px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eef3ff;
    color: var(--brand-primary);
    font-size: 12px;
    font-weight: 700;
}

.dashboard-stage-list {
    display: grid;
    gap: 10px;
    padding: 12px;
    align-content: start;
}

.dashboard-stage-empty {
    border: 1px dashed #cdd8ea;
    border-radius: 16px;
    padding: 18px 16px;
    color: var(--brand-text-soft);
    background: rgba(255, 255, 255, 0.65);
}

.dashboard-company-card {
    position: relative;
    display: grid;
    gap: 10px;
    padding: 12px;
    background: #ffffff;
    border: 1px solid var(--brand-line);
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(22, 50, 74, 0.05);
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, opacity 0.16s ease, background 0.16s ease;
    cursor: grab;
    overflow: hidden;
}

.dashboard-company-card:hover {
    transform: translateY(-1px);
    border-color: #b8c9ef;
    box-shadow: 0 12px 24px rgba(22, 50, 74, 0.09);
    background: #fcfdff;
}

.dashboard-company-card:active {
    cursor: grabbing;
}

.dashboard-company-name {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--brand-primary);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.dashboard-card-meta-block {
    display: grid;
    gap: 7px;
    justify-items: start;
}

.dashboard-priority-accent {
    width: 34px;
    height: 3px;
    border-radius: 999px;
    background: transparent;
}

.dashboard-priority-accent.is-priority-low {
    background: #64748b;
}

.dashboard-priority-accent.is-priority-medium {
    background: #d97706;
}

.dashboard-priority-accent.is-priority-high {
    background: #dc2626;
}

.dashboard-card-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.dashboard-action-type {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 26px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

.dashboard-verticals .badge-summary {
    gap: 5px;
}

.dashboard-verticals .mini-badge {
    min-height: 24px;
    padding: 4px 8px;
    font-size: 11px;
}

.dashboard-due-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 28px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.dashboard-due-pill.is-overdue {
    background: #fdeaea;
    color: #b42318;
}

.dashboard-due-pill.is-today {
    background: #e8f7ec;
    color: #2f7d43;
}

.dashboard-due-pill.is-soon,
.dashboard-due-pill.is-upcoming {
    background: #eef3ff;
    color: #1f3f8f;
}

.dashboard-due-pill.is-none {
    background: #f1f5f9;
    color: #64748b;
}


@media (min-width: 900px) {
    @media (min-width: 1200px) {
    .app-page {
        padding-left: 20px;
        padding-right: 20px;
    }

    .app-shell,
    .app-shell-wide {
        width: min(1600px, calc(100vw - 40px));
    }
}

.dashboard-summary-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .dashboard-filters-form {
        grid-template-columns: minmax(220px, 1.1fr) 220px 220px minmax(280px, 1fr) auto;
    }
}

@media (min-width: 1500px) {
    .dashboard-board {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}


.dashboard-card-link {
    display: grid;
    gap: 10px;
}


.dashboard-company-card.is-dragging {
    opacity: 0.22;
    transform: scale(0.98);
    box-shadow: none;
}

.dashboard-company-card.is-drag-preview {
    opacity: 1;
    transform: rotate(1.5deg);
    box-shadow: 0 20px 40px rgba(22, 50, 74, 0.18);
    border-color: #b8c9ef;
    background: #ffffff;
}

.dashboard-stage-column.is-drop-target {
    background: #f3f7ff;
    border-color: #c7d6f7;
    box-shadow: 0 0 0 2px rgba(31, 63, 143, 0.08), 0 12px 24px rgba(22, 50, 74, 0.06);
}

.dashboard-stage-column.is-drop-target .dashboard-stage-header {
    border-bottom-color: #d5e0f4;
    background: rgba(255, 255, 255, 0.45);
}

.dashboard-stage-list.is-drop-target {
    background: rgba(238, 243, 255, 0.68);
    border-radius: 16px;
    box-shadow: inset 0 0 0 2px rgba(31, 63, 143, 0.12);
}

.dashboard-drag-active .dashboard-stage-column,
.dashboard-drag-active .dashboard-stage-list {
    transition: background 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.dashboard-company-card.is-saving {
    opacity: 0.7;
}

.dashboard-company-card.is-saved {
    border-color: #63c174;
    box-shadow: 0 0 0 4px rgba(99, 193, 116, 0.12);
}


.app-topbar-utilities {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.topbar-menu {
    position: relative;
}

.topbar-icon-button,
.topbar-account-button {
    min-height: 42px;
    border: 1px solid var(--brand-line);
    background: #ffffff;
    color: var(--brand-primary);
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.topbar-icon-button:hover,
.topbar-account-button:hover,
.topbar-menu.is-open .topbar-icon-button,
.topbar-menu.is-open .topbar-account-button {
    border-color: #b8c9ef;
    box-shadow: 0 8px 18px rgba(31, 63, 143, 0.08);
    background: #ffffff;
}

.topbar-icon-button {
    width: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.topbar-icon-symbol {
    font-size: 17px;
    line-height: 1;
}

.topbar-account-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 999px;
    padding: 4px 8px 4px 4px;
}

.topbar-avatar {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: #eef3ff;
    color: #1f3f8f;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    flex: 0 0 auto;
}

.topbar-avatar-large {
    width: 44px;
    height: 44px;
    font-size: 15px;
}

.topbar-account-meta {
    display: block;
    max-width: 140px;
}

.topbar-account-name {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #16324a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar-account-caret {
    font-size: 12px;
    color: #6b7b91;
}

.topbar-menu-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(320px, calc(100vw - 32px));
    background: #ffffff;
    border: 1px solid var(--brand-line);
    border-radius: 16px;
    box-shadow: 0 16px 34px rgba(22, 50, 74, 0.12);
    z-index: 70;
    overflow: hidden;
}

.topbar-menu-header {
    padding: 16px 18px 12px;
    border-bottom: 1px solid #eef1f4;
    color: #16324a;
}

.topbar-menu-empty {
    padding: 18px;
    color: #5f6f82;
    font-size: 14px;
}

.topbar-account-panel-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px;
    border-bottom: 1px solid #eef1f4;
}

.topbar-account-panel-name {
    font-size: 15px;
    font-weight: 700;
    color: #16324a;
    margin-bottom: 4px;
}

.topbar-account-panel-email {
    font-size: 13px;
    color: #5f6f82;
    word-break: break-word;
}

.topbar-menu-actions {
    padding: 10px;
}

.topbar-menu-divider {
    height: 1px;
    margin: 6px 4px;
    background: #eef1f4;
}

.topbar-menu-link {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    color: #16324a;
}

.topbar-menu-link:hover {
    background: #f8fafc;
}

.topbar-menu-link-danger {
    color: #b42318;
}

.topbar-menu-link-danger:hover {
    background: #fff1f1;
}

@media (max-width: 859px) {
    .topbar-account-meta {
        max-width: 112px;
    }
}

@media (max-width: 639px) {
    .topbar-account-meta {
        display: none;
    }
}


/* Global header refresh and icon system */
.app-topbar {
    grid-template-areas: "left search right";
    background: #ffffff;
    border: 1px solid rgba(22, 50, 74, 0.08);
    border-radius: 22px;
    box-shadow: 0 10px 28px rgba(22, 50, 74, 0.06);
    padding: 16px 18px;
    margin-bottom: 28px;
}

.app-topbar-left {
    grid-area: left;
    gap: 22px;
}

.app-topbar-search {
    grid-area: search;
    width: 100%;
    max-width: 560px;
}

.app-topbar-right {
    grid-area: right;
    gap: 14px;
}

.app-topbar-left .page-title {
    margin: 0;
    font-size: clamp(24px, 2.2vw, 30px);
    line-height: 1.1;
    color: #16324a;
}

.app-brand-logo {
    height: 44px;
}

.global-search-input-wrap {
    position: relative;
}

.global-search-icon {
    position: absolute;
    inset: 0 auto 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #6b7b91;
    pointer-events: none;
}

.global-search-input {
    padding-left: 42px;
    min-height: 48px;
    border-radius: 15px;
}

.app-nav a {
    min-height: 42px;
    border-radius: 12px;
}

.app-topbar-utilities {
    gap: 12px;
}

.topbar-icon-button,
.topbar-account-button {
    min-height: 44px;
}

.topbar-icon-button {
    width: 44px;
    border-radius: 14px;
}

.topbar-icon-symbol {
    font-size: 16px;
    line-height: 1;
}

.topbar-account-button {
    padding-right: 10px;
}

.topbar-account-caret {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.topbar-menu-link {
    gap: 10px;
}

@media (max-width: 1180px) {
    .app-topbar {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "left right"
            "search search";
        align-items: center;
    }

    .app-topbar-search {
        max-width: none;
    }
}

@media (max-width: 860px) {
    .app-topbar {
        grid-template-columns: 1fr;
        grid-template-areas:
            "left"
            "search"
            "right";
    }

    .app-topbar-right {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }
}

.activity-type-button {
    min-width: 120px;
}

.activity-type-button-inner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.activity-type-icon {
    font-size: 14px;
    line-height: 1;
}

.timeline-marker-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    line-height: 1;
}

.timeline-done-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
}


/* Global header refresh, full-height top header and page headings below */
.app-page {
    min-height: 100vh;
    background: #f3f5f7;
    padding: 0 16px 44px;
}

.app-header-bar {
    background: #ffffff;
    border-bottom: 1px solid rgba(22, 50, 74, 0.08);
    box-shadow: 0 8px 20px rgba(22, 50, 74, 0.05);
    margin: 0 calc(50% - 50vw) 24px;
    padding: 0 16px;
}

.app-topbar {
    grid-template-areas: "left search right";
    grid-template-columns: auto minmax(300px, 560px) auto;
    align-items: center;
    gap: 16px 24px;
    padding: 16px 0;
    margin: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.app-topbar-left {
    grid-area: left;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 18px;
}

.app-topbar-search {
    grid-area: search;
    width: 100%;
    max-width: 560px;
    justify-self: center;
}

.app-topbar-right {
    grid-area: right;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.app-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.app-brand-logo {
    height: 44px;
    width: auto;
    display: block;
}

.app-page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin: 0 0 20px;
}

.page-title {
    margin: 0;
    font-size: clamp(28px, 3.1vw, 38px);
    line-height: 1.04;
    letter-spacing: -0.03em;
    color: #16324a;
}

.page-subtitle {
    display: none;
}

.global-search-input {
    min-height: 46px;
    padding-left: 42px;
    border-radius: 14px;
}

.app-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.app-nav a {
    min-height: 42px;
    border-radius: 12px;
}

.topbar-icon-button,
.topbar-account-button {
    min-height: 42px;
}

.topbar-icon-button {
    width: 42px;
    border-radius: 12px;
}

.topbar-account-button {
    border-radius: 999px;
    padding-right: 10px;
}

@media (max-width: 1180px) {
    .app-topbar {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "left right"
            "search search";
    }

    .app-topbar-search {
        max-width: none;
        justify-self: stretch;
    }
}

@media (max-width: 860px) {
    .app-topbar-right {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .topbar-account-meta {
        max-width: 120px;
    }
}

@media (max-width: 640px) {
    .app-page {
        padding-left: 12px;
        padding-right: 12px;
    }

    .app-header-bar {
        padding-left: 12px;
        padding-right: 12px;
        margin-bottom: 18px;
    }

    .app-topbar {
        gap: 14px;
        padding: 14px 0;
    }

    .app-topbar-right {
        width: 100%;
        justify-content: space-between;
    }

    .app-nav {
        gap: 8px;
    }

    .topbar-account-meta {
        display: none;
    }

    .page-title {
        font-size: 30px;
    }
}

/* Header refinement: smaller search by default, expands on focus, steadier mid-size behavior */
.app-topbar {
    grid-template-columns: auto minmax(260px, 1fr) auto;
    gap: 14px 22px;
}

.app-topbar-search {
    width: min(100%, 420px);
    max-width: 420px;
    justify-self: center;
    transition: max-width 0.22s ease, width 0.22s ease, transform 0.22s ease;
}

.app-topbar-search:focus-within {
    width: min(100%, 520px);
    max-width: 520px;
}

.global-search-input {
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.app-topbar-right {
    flex-wrap: nowrap;
    gap: 10px;
}

.app-nav {
    flex-wrap: nowrap;
    gap: 8px;
}

.app-nav a {
    white-space: nowrap;
}

.topbar-account-button {
    white-space: nowrap;
}

@media (max-width: 1280px) {
    .app-topbar-search {
        width: min(100%, 380px);
        max-width: 380px;
    }

    .app-topbar-search:focus-within {
        width: min(100%, 460px);
        max-width: 460px;
    }

    .topbar-account-meta {
        max-width: 128px;
    }
}

@media (max-width: 1100px) {
    .app-topbar {
        grid-template-columns: auto minmax(220px, 1fr) auto;
        gap: 12px 18px;
    }

    .app-topbar-search {
        width: min(100%, 320px);
        max-width: 320px;
    }

    .app-topbar-search:focus-within {
        width: min(100%, 400px);
        max-width: 400px;
    }

    .app-nav a {
        padding-left: 12px;
        padding-right: 12px;
    }
}

@media (max-width: 980px) {
    .app-topbar {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "left right"
            "search search";
        align-items: center;
    }

    .app-topbar-search {
        width: 100%;
        max-width: none;
        justify-self: stretch;
    }

    .app-topbar-search:focus-within {
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 860px) {
    .app-topbar-right {
        gap: 8px;
    }

    .app-nav {
        overflow-x: auto;
        scrollbar-width: none;
    }

    .app-nav::-webkit-scrollbar {
        display: none;
    }
}

@media (max-width: 760px) {
    .app-topbar {
        gap: 12px;
    }

    .app-topbar-right {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .app-nav {
        order: 2;
        width: 100%;
        justify-content: flex-start;
    }
}


/* Topbar avatar images */
.topbar-avatar {
    overflow: hidden;
    background: #eef3ff;
}

.topbar-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.table-header-sub {
    margin-top: 6px;
    color: #5f6f82;
    font-size: 14px;
    line-height: 1.45;
}

.page-context {
    margin: 8px 0 0;
    color: #5f6f82;
    font-size: 15px;
}

.prospects-page-heading {
    margin-bottom: 18px;
}

.prospect-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.prospect-metric-card {
    background: #ffffff;
    border: 1px solid #d9e0e7;
    border-radius: 14px;
    padding: 16px 18px;
}

.prospect-metric-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6b7b91;
}

.prospect-metric-value {
    margin-top: 8px;
    font-size: 28px;
    font-weight: 700;
    color: #16324a;
    line-height: 1;
}

.prospects-header-stack {
    align-items: flex-start;
}

.prospects-header-spacious {
    padding-top: 22px;
    padding-bottom: 20px;
}

.prospect-create-card-better .company-card-body {
    padding-top: 18px;
}

.prospect-create-meta .badge {
    min-height: 32px;
}

.prospect-create-form {
    display: grid;
    gap: 16px;
}

.prospect-create-primary-grid,
.prospect-create-secondary-grid {
    display: grid;
    gap: 14px;
}

.prospect-create-primary-grid {
    grid-template-columns: minmax(0, 1.7fr) minmax(180px, 0.95fr) minmax(180px, 0.95fr);
}

.prospect-company-field {
    position: relative;
}

.prospect-create-secondary-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.prospect-create-note-field textarea {
    min-height: 108px;
}

.prospect-create-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    padding-top: 10px;
    border-top: 1px solid #e8edf3;
}

.prospect-create-helper {
    margin: 0;
    color: #5f6f82;
    font-size: 14px;
    line-height: 1.45;
    max-width: 760px;
}

.prospects-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.prospects-filter-toggle {
    min-width: 118px;
    gap: 10px;
}

.prospects-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #1f3f8f;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
}

.prospects-filter-panel {
    display: none;
    border-top: 1px solid #d9e0e7;
    padding: 18px 20px 20px;
    background: #f8fafc;
}

.prospects-filter-panel.is-open {
    display: block;
}

.prospect-filters-grid-better {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: end;
}

.prospect-filter-search {
    grid-column: span 2;
}

.prospect-filter-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
}

.prospects-table-wrap {
    padding-bottom: 2px;
}

.prospects-table-separated {
    min-width: 1180px;
}

.prospects-table-separated thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #fbfcfd;
}

.prospects-table-separated tbody td {
    padding-top: 18px;
    padding-bottom: 18px;
    vertical-align: middle;
    background: #ffffff;
    border-bottom: 0;
}

.prospects-table-separated tbody tr + tr td {
    border-top: 1px solid #e6ecf2;
}

.prospects-table-separated tbody tr.is-locked td {
    background: #fafcfe;
}

.prospect-inline-field,
.prospect-static-value {
    min-height: 42px;
    display: flex;
    align-items: center;
    border-radius: 10px;
    padding: 8px 10px;
}

.prospect-inline-field {
    cursor: pointer;
    transition: background 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.prospect-inline-field:hover {
    background: #f7faff;
    box-shadow: inset 0 0 0 1px #d9e6fb;
}

.prospect-inline-field.is-editing {
    background: #ffffff;
    box-shadow: inset 0 0 0 2px rgba(31, 63, 143, 0.16);
}

.prospect-inline-value,
.prospect-static-value {
    font-size: 14px;
    color: #16324a;
    line-height: 1.45;
    word-break: break-word;
}

.prospect-inline-strong,
.prospect-static-strong {
    font-size: 15px;
    font-weight: 700;
}

.prospect-inline-editor {
    display: none;
    width: 100%;
}

.prospect-inline-field.is-editing .prospect-inline-value {
    display: none;
}

.prospect-inline-field.is-editing .prospect-inline-editor {
    display: block;
}

.prospect-inline-editor input,
.prospect-inline-editor select,
.prospect-inline-editor textarea {
    width: 100%;
    min-height: 42px;
    border: 1px solid #d9e0e7;
    border-radius: 10px;
    padding: 9px 12px;
    font-size: 14px;
    color: #16324a;
    background: #ffffff;
}

.prospect-inline-editor input:focus,
.prospect-inline-editor select:focus,
.prospect-inline-editor textarea:focus {
    outline: none;
    border-color: #1f3f8f;
    box-shadow: 0 0 0 4px rgba(31, 63, 143, 0.08);
}

.prospect-inline-field.is-saving {
    opacity: 0.72;
}

.prospect-inline-field.is-saved {
    box-shadow: inset 0 0 0 2px rgba(99, 193, 116, 0.46);
}

.prospect-status-stack {
    display: grid;
    gap: 8px;
    justify-items: start;
}

.prospect-status-badge.is-new {
    background: #eef3ff;
    color: #1f3f8f;
}

.prospect-status-badge.is-rejected {
    background: #fff1f1;
    color: #b42318;
}

.prospect-status-badge.is-converted {
    background: #e8f7ec;
    color: #2f7d43;
}

.prospect-locked-note {
    color: #6b7b91;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.prospect-converted-link {
    font-size: 13px;
    font-weight: 600;
    color: #1f3f8f;
}

.prospect-row-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.duplicate-dropdown {
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    z-index: 25;
}

@media (max-width: 1280px) {
    .prospect-create-primary-grid {
        grid-template-columns: minmax(0, 1.3fr) 1fr 1fr;
    }

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

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

    .prospect-filter-search {
        grid-column: span 2;
    }
}

@media (max-width: 980px) {
    .prospect-metrics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .prospect-create-primary-grid,
    .prospect-create-secondary-grid,
    .prospect-filters-grid-better {
        grid-template-columns: 1fr 1fr;
    }

    .prospect-filter-search {
        grid-column: span 2;
    }

    .prospect-create-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .prospect-filter-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

@media (max-width: 640px) {
    .prospect-metrics-grid,
    .prospect-create-primary-grid,
    .prospect-create-secondary-grid,
    .prospect-filters-grid-better {
        grid-template-columns: 1fr;
    }

    .prospect-filter-search {
        grid-column: auto;
    }

    .prospects-header-spacious {
        gap: 12px;
    }
}
