@charset "UTF-8";

:root {
    color-scheme: light;
    --brand: #ff5a1f;
    --brand-hover: #ed4d17;
    --brand-soft: #fff0e9;
    --brand-line: #ffd8c8;
    --ink: #202938;
    --ink-strong: #182230;
    --muted: #7b8494;
    --muted-2: #a2aab7;
    --canvas: #f7f8fa;
    --surface: #fff;
    --line: #e9edf2;
    --line-strong: #dfe4eb;
    --green: #15966c;
    --green-soft: #e9f7f1;
    --blue: #4273d8;
    --blue-soft: #edf3ff;
    --purple: #805ad5;
    --purple-soft: #f3efff;
    --yellow: #c68418;
    --yellow-soft: #fff6e6;
    --red: #d55454;
    --red-soft: #fff0ef;
    --shadow-sm: 0 1px 2px rgba(25, 35, 50, .035), 0 3px 10px rgba(25, 35, 50, .025);
    --shadow-md: 0 14px 38px rgba(26, 38, 57, .09);
    --radius-sm: 9px;
    --radius: 13px;
    --radius-lg: 17px;
    --sidebar-width: 250px;
}

*, *::before, *::after { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
:focus-visible { outline: 3px solid rgba(255, 90, 31, .28); outline-offset: 2px; }
::selection { background: rgba(255, 90, 31, .16); }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { display: inline-block; flex: 0 0 auto; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* App shell */
.app-body { background: var(--canvas); }
.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: var(--sidebar-width); flex: 0 0 var(--sidebar-width); min-height: 100vh; display: flex; flex-direction: column; padding: 22px 14px 14px; background: #fff; border-right: 1px solid var(--line); position: sticky; top: 0; height: 100vh; z-index: 50; }
.sidebar-top { display: flex; align-items: center; justify-content: space-between; padding: 0 8px 21px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark { width: 35px; height: 35px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; background: linear-gradient(145deg, #ff8757 0%, var(--brand) 59%, #e94816 100%); border-radius: 11px; box-shadow: 0 4px 9px rgba(255, 90, 31, .2); }
.brand-copy { display: grid; line-height: 1.05; gap: 4px; }
.brand-copy strong { font-size: 17px; letter-spacing: -.035em; color: #222c3b; font-weight: 760; }
.brand-copy small { font-size: 10px; font-weight: 800; color: #9aa2ae; letter-spacing: .17em; }
.workspace-switcher { display: flex; align-items: center; gap: 10px; padding: 10px 11px; margin: 0 2px 24px; background: #fafbfc; border: 1px solid #edf0f4; border-radius: 11px; cursor: pointer; }
.workspace-avatar { width: 29px; height: 29px; border-radius: 8px; display: grid; place-items: center; color: #874117; background: #ffe2d3; font-size: 12px; font-weight: 800; letter-spacing: -.04em; }
.workspace-copy { display: grid; min-width: 0; flex: 1; gap: 1px; }
.workspace-copy strong { font-size: 13px; color: #364153; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.workspace-copy small { font-size: 12px; color: #9aa2ae; }
.workspace-chevron { color: #9ba3af; }
.nav-label { padding: 0 12px; margin: 0 0 8px; color: #a3aab5; font-size: 10px; letter-spacing: .14em; font-weight: 800; }
.primary-nav { display: grid; gap: 3px; }
.nav-link { min-height: 41px; display: flex; align-items: center; gap: 12px; padding: 0 12px; border-radius: 9px; color: #6e7888; font-size: 14px; font-weight: 570; transition: background .16s ease, color .16s ease, transform .16s ease; }
.nav-link .icon { color: #929baa; }
.nav-link:hover { color: #283447; background: #f7f8fa; }
.nav-link:active { transform: scale(.99); }
.nav-link.active { color: var(--brand); background: var(--brand-soft); font-weight: 700; }
.nav-link.active .icon { color: var(--brand); }
.nav-counter { margin-left: auto; font-size: 12px; color: #a3aab4; font-variant-numeric: tabular-nums; }
.nav-badge { min-width: 19px; height: 19px; margin-left: auto; padding: 0 5px; display: grid; place-items: center; border-radius: 6px; color: #bf561b; background: #ffeadf; font-size: 12px; font-weight: 750; }
.nav-new { margin-left: auto; padding: 2px 5px; border: 1px solid #f5d5c8; border-radius: 4px; color: #c35931; font-size: 10px; line-height: 1.2; font-weight: 850; letter-spacing: .05em; }
.sidebar-bottom { margin-top: auto; }
.sidebar-help { margin: 23px 3px 13px; padding: 15px 13px 14px; border: 1px solid #f1e6df; border-radius: 12px; background: linear-gradient(145deg, #fffaf7, #fff 75%); }
.help-orbit { width: 30px; height: 30px; margin-bottom: 10px; display: grid; place-items: center; color: var(--brand); background: #fff0e8; border-radius: 9px; }
.sidebar-help strong { display: block; color: #364050; font-size: 13px; }
.sidebar-help p { margin: 5px 0 9px; color: #8992a0; font-size: 12px; line-height: 1.55; }
.sidebar-help a { display: inline-flex; align-items: center; gap: 5px; color: #ce5524; font-size: 12px; font-weight: 700; }
.sidebar-user { min-height: 55px; display: flex; align-items: center; gap: 9px; padding: 12px 6px 1px; border-top: 1px solid #f0f2f5; }
.sidebar-user-copy { display: grid; flex: 1; min-width: 0; gap: 1px; }
.sidebar-user-copy strong { color: #303b4b; font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-copy small { color: #a1a8b3; font-size: 12px; }
.avatar { flex: 0 0 auto; width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 50%; font-size: 13px; font-weight: 800; letter-spacing: -.03em; }
.avatar-sm { width: 31px; height: 31px; font-size: 12px; }
.avatar-orange { color: #a4431f; background: linear-gradient(145deg, #ffe5d8, #ffd0bc); }
.avatar-soft { color: #53647b; background: #eef2f8; }
.avatar-blue { color: #3e65b6; background: #e6eeff; }
.avatar-green { color: #21795d; background: #e1f4ec; }
.avatar-purple { color: #7852b8; background: #f0e9ff; }
.avatar-rose { color: #b14f73; background: #ffedf2; }
.icon-button { width: 35px; height: 35px; display: inline-grid; place-items: center; border: 0; border-radius: 9px; background: transparent; color: #818b99; cursor: pointer; transition: background .16s ease, color .16s ease; }
.icon-button:hover { background: #f3f5f7; color: #313d4e; }
.logout-button { width: 30px; height: 30px; color: #9ca4af; }
.sidebar-close, .sidebar-scrim, .mobile-menu { display: none; }

.main-column { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.topbar { height: 68px; flex: 0 0 68px; position: sticky; top: 0; z-index: 35; display: flex; align-items: center; justify-content: space-between; padding: 0 32px; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.topbar-left, .topbar-actions { display: flex; align-items: center; }
.topbar-crumb { display: flex; align-items: center; gap: 8px; color: #9aa2ae; font-size: 13px; }
.topbar-crumb .icon { color: #c0c6ce; }
.topbar-crumb strong { color: #404b5b; font-weight: 700; }
.topbar-actions { gap: 13px; }
.global-search { width: 255px; height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 8px 0 11px; border: 1px solid #e7ebf0; background: #fafbfc; border-radius: 9px; color: #a0a8b4; transition: border-color .15s ease, background .15s ease; }
.global-search:focus-within { border-color: #fac4ae; background: #fff; box-shadow: 0 0 0 3px rgba(255,90,31,.06); }
.global-search input { width: 100%; min-width: 0; padding: 0; color: var(--ink); background: transparent; border: 0; outline: none; font-size: 13px; }
.global-search input::placeholder { color: #a3aab5; }
kbd { padding: 2px 5px; color: #9ca5b0; white-space: nowrap; background: #fff; border: 1px solid #e7eaf0; border-radius: 4px; font-family: inherit; font-size: 10px; }
.topbar-divider { width: 1px; height: 27px; background: #eceff2; }
.dropdown-wrap { position: relative; }
.notification-button { position: relative; width: 34px; height: 34px; }
.notification-ping { position: absolute; top: 7px; right: 7px; width: 7px; height: 7px; border: 1.5px solid white; border-radius: 50%; background: var(--brand); }
.profile-trigger { display: flex; align-items: center; gap: 9px; padding: 3px 2px 3px 5px; border: 0; background: transparent; cursor: pointer; }
.profile-trigger > .icon { color: #9aa2ae; margin-left: 1px; }
.profile-trigger-copy { display: grid; gap: 0; text-align: left; }
.profile-trigger-copy strong { color: #3c4656; font-size: 13px; font-weight: 700; }
.profile-trigger-copy small { color: #98a1ae; font-size: 10px; }
.dropdown-panel { min-width: 235px; display: none; position: absolute; top: calc(100% + 11px); right: 0; padding: 10px; z-index: 80; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow-md); animation: dropdown-in .16s ease both; }
.dropdown-panel.is-open { display: block; }
@keyframes dropdown-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.dropdown-heading { display: flex; align-items: center; justify-content: space-between; padding: 6px 7px 4px; }
.dropdown-heading strong { color: #313b4a; font-size: 14px; }
.dropdown-note { margin: 4px 7px 9px; color: var(--muted); font-size: 13px; }
.dropdown-action { display: flex; align-items: center; justify-content: space-between; padding: 9px 8px; color: #cb5526; border-radius: 7px; background: #fff7f3; font-size: 13px; font-weight: 700; }
.profile-menu { min-width: 222px; padding: 7px; }
.dropdown-profile { display: flex; align-items: center; gap: 9px; padding: 8px 6px 11px; margin-bottom: 4px; border-bottom: 1px solid #f0f2f5; }
.dropdown-profile > div { min-width: 0; display: grid; }
.dropdown-profile strong { font-size: 13px; color: #364153; }
.dropdown-profile small { max-width: 155px; color: #929baa; font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.profile-menu a, .profile-menu form button { width: 100%; display: flex; align-items: center; gap: 9px; padding: 9px 8px; color: #5c6675; border: 0; border-radius: 7px; background: transparent; text-align: left; font-size: 13px; cursor: pointer; }
.profile-menu a:hover, .profile-menu form button:hover { background: #f7f8fa; color: #293448; }
.page-main { flex: 1; width: 100%; max-width: 1640px; margin: 0 auto; padding: 30px 32px 38px; }
.app-footer { display: flex; justify-content: space-between; padding: 12px 32px 18px; color: #a4abb5; font-size: 12px; }
.app-footer span:first-child { font-weight: 700; }

/* Typography and common page elements */
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.page-heading h1 { margin: 6px 0 4px; color: #202a39; font-size: clamp(29px, 2.4vw, 36px); font-weight: 760; letter-spacing: -.055em; line-height: 1.2; }
.page-description { margin: 0; color: #858e9c; font-size: 14px; }
.eyebrow { display: flex; align-items: center; gap: 7px; color: #929baa; font-size: 10px; font-weight: 800; letter-spacing: .13em; }
.eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px rgba(255,90,31,.11); }
.heading-date { margin-left: 7px; padding-left: 11px; border-left: 1px solid #e2e6eb; color: #a1a9b4; font-weight: 550; letter-spacing: .01em; }
.wave { display: inline-block; color: var(--brand); font-size: 25px; transform: rotate(-8deg); }
.heading-actions { display: flex; align-items: center; gap: 9px; }
.btn { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 14px; border: 1px solid transparent; border-radius: 9px; font-size: 13px; line-height: 1; font-weight: 700; white-space: nowrap; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { color: #fff; background: var(--brand); box-shadow: 0 3px 7px rgba(255,90,31,.16); }
.btn-primary:hover { color: #fff; background: var(--brand-hover); box-shadow: 0 5px 11px rgba(255,90,31,.22); }
.btn-secondary { color: #596475; background: #fff; border-color: #e4e8ed; box-shadow: 0 1px 2px rgba(25,35,50,.025); }
.btn-secondary:hover { color: #2e394a; background: #fbfcfd; border-color: #d4dbe3; }
.btn-quiet { color: #7c8695; background: transparent; border-color: transparent; }
.btn-quiet:hover { background: #f3f5f7; color: #3e4a5b; }
.btn-danger { color: #fff; background: #d95858; }
.btn-sm { min-height: 31px; padding: 0 10px; border-radius: 7px; font-size: 12px; }
.btn-block { width: 100%; min-height: 44px; margin-top: 5px; }
.surface-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-heading { min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 17px 19px 12px; }
.card-heading h2 { margin: 0; color: #293445; font-size: 15px; font-weight: 750; letter-spacing: -.02em; }
.card-heading p { margin: 3px 0 0; color: #9aa2ae; font-size: 12px; }
.subtle-link, .metric-link { display: inline-flex; align-items: center; gap: 5px; color: #7e8999; font-size: 12px; font-weight: 650; white-space: nowrap; transition: color .15s ease; }
.subtle-link:hover, .metric-link:hover { color: var(--brand); }
.status-pill, .priority-pill, .status-tag { width: max-content; display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 999px; font-size: 10px; line-height: 1.3; font-weight: 700; white-space: nowrap; }
.status-orange { color: #bf551f; background: #fff0e8; }
.status-new { color: #486dc3; background: #edf3ff; }
.status-contacted { color: #187ba0; background: #eaf8fc; }
.status-follow-up { color: #a16b15; background: #fff6e6; }
.status-meeting-fixed { color: #7053b3; background: #f2efff; }
.status-trial { color: #13835e; background: #e8f7f1; }
.status-negotiation { color: #bf6a19; background: #fff1e5; }
.status-converted { color: #16815e; background: #e5f6ee; }
.status-lost { color: #aa5860; background: #fff0f1; }
.priority-pill { padding: 4px 8px; font-size: 10px; }
.priority-pill i { width: 5px; height: 5px; display: inline-block; border-radius: 50%; background: currentColor; }
.priority-hot { color: #d64f3e; background: #fff0ee; }
.priority-warm { color: #b57a19; background: #fff6e5; }
.priority-cold { color: #5272ae; background: #eff4ff; }
.empty-state { min-height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px; text-align: center; }
.empty-state-compact { min-height: 200px; }
.empty-icon { width: 43px; height: 43px; display: grid; place-items: center; margin-bottom: 11px; color: #c3a28f; background: #fff2ec; border-radius: 13px; }
.empty-state strong { color: #485364; font-size: 14px; }
.empty-state p { max-width: 280px; margin: 5px 0 13px; color: #9aa2ae; font-size: 12px; }

/* Dashboard */
.dashboard-heading { margin-bottom: 22px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.metric-card { min-height: 139px; display: flex; flex-direction: column; padding: 15px 16px 13px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease; }
.metric-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(26,38,57,.065); }
.metric-top { display: flex; align-items: center; justify-content: space-between; }
.metric-label { color: #7f8998; font-size: 12px; font-weight: 650; }
.metric-icon { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; }
.metric-icon-orange { color: var(--brand); background: #fff1e9; }
.metric-icon-blue { color: #5578cb; background: #edf2ff; }
.metric-icon-red { color: #d65349; background: #fff0ed; }
.metric-icon-green { color: #1b956b; background: #eaf7f1; }
.metric-value { margin: 7px 0 3px; color: #202a39; font-size: 31px; line-height: 1.1; font-weight: 760; letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.metric-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.metric-hint { color: #a0a7b1; font-size: 10px; }
.trend-up { display: inline-flex; align-items: center; gap: 2px; margin-right: 3px; color: #16976d; font-weight: 750; }
.metric-sparkline { height: 19px; display: flex; align-items: flex-end; gap: 3px; }
.metric-sparkline i { width: 4px; min-height: 3px; display: block; border-radius: 4px 4px 1px 1px; opacity: .65; }
.spark-orange i { background: #ff9c75; }
.metric-featured .metric-value { color: #1c2634; }
.quick-stat-row { min-height: 63px; display: flex; align-items: center; gap: 16px; margin: 13px 0 16px; padding: 9px 15px; background: #fff; border: 1px solid var(--line); border-radius: 11px; box-shadow: var(--shadow-sm); }
.quick-stat { display: flex; align-items: center; gap: 7px; color: #8992a0; font-size: 12px; white-space: nowrap; }
.quick-stat strong { margin-left: 1px; color: #354052; font-size: 15px; font-weight: 750; font-variant-numeric: tabular-nums; }
.quick-stat small { color: #adb4be; font-size: 10px; }
.quick-stat-dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; }
.dot-blue { background: #6086de; }.dot-purple { background: #9674dc; }.dot-green { background: #28a57d; }.dot-gray { background: #a8b0bb; }
.quick-stat-separator { width: 1px; height: 25px; flex: 0 0 auto; background: #edf0f3; }
.quick-stat-end { min-width: 125px; display: grid; gap: 4px; margin-left: auto; }
.open-pipeline-label { color: #929baa; font-size: 10px; text-align: right; }
.open-pipeline-track { height: 4px; overflow: hidden; background: #f0f2f5; border-radius: 4px; }
.open-pipeline-track i { height: 100%; display: block; background: linear-gradient(90deg,#ff9b73,var(--brand)); border-radius: inherit; }
.dashboard-grid { display: grid; gap: 14px; }
.dashboard-grid-primary { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); }
.dashboard-grid-secondary { grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr); margin-top: 14px; }
.pipeline-card, .activity-card, .followup-card, .recent-card { overflow: hidden; }
.pipeline-list { padding: 2px 19px 8px; }
.pipeline-row { display: grid; grid-template-columns: 119px minmax(50px, 1fr) 34px; align-items: center; gap: 12px; min-height: 28px; color: #6c7787; font-size: 12px; transition: color .15s ease; }
.pipeline-row:hover { color: var(--brand); }
.pipeline-stage { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.pipeline-stage-dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: #a8b1bf; }
.stage-new { background: #6789dc; }.stage-active { background: #ff9a76; }.stage-converted { background: #1eaa7b; }.stage-lost { background: #d28a92; }
.pipeline-bar { height: 6px; display: block; overflow: hidden; background: #f1f3f6; border-radius: 10px; }
.pipeline-bar i { height: 100%; display: block; min-width: 2px; border-radius: inherit; transition: width .5s cubic-bezier(.2,.7,.2,1); }
.bar-new { background: #7393e1; }.bar-active { background: linear-gradient(90deg,#ffb08f,#ff7b4b); }.bar-converted { background: #59bc98; }.bar-lost { background: #d99aa1; }
.pipeline-row strong { color: #4c5767; text-align: right; font-size: 12px; font-variant-numeric: tabular-nums; }
.pipeline-caption { display: flex; align-items: center; justify-content: space-between; margin: 7px 19px 14px; padding-top: 10px; border-top: 1px solid #f0f2f5; color: #a3aab4; font-size: 10px; }
.pipeline-caption > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }.legend-orange { background: var(--brand); }
.chart-total { display: flex; align-items: baseline; gap: 4px; color: #9aa2ae; font-size: 10px; }
.chart-total strong { color: #2c3747; font-size: 21px; font-weight: 750; letter-spacing: -.04em; }
.chart-wrap { height: 158px; display: flex; padding: 8px 17px 0 15px; }
.chart-y-labels { width: 20px; display: flex; flex-direction: column; justify-content: space-between; padding: 1px 0 24px; color: #a9b0ba; font-size: 10px; text-align: right; }
.bar-chart { flex: 1; display: flex; align-items: stretch; justify-content: space-around; position: relative; padding: 0 3px; background: repeating-linear-gradient(to bottom, transparent 0, transparent 36px, #f1f3f6 37px, transparent 38px); }
.bar-column { width: 35px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; gap: 8px; }
.chart-bar { width: 17px; min-height: 5px; display: block; background: linear-gradient(180deg,#ffc2a9,#ff8a62); border-radius: 5px 5px 2px 2px; transition: height .4s ease; }
.chart-bar-current { background: linear-gradient(180deg,#ff895f,var(--brand)); box-shadow: 0 2px 8px rgba(255,90,31,.18); }
.bar-column > span { position: absolute; bottom: 0; transform: translateY(17px); color: #9ca5b1; font-size: 10px; }
.bar-tooltip { position: absolute; bottom: calc(var(--bar-height, 25%) + 25px); z-index: 1; opacity: 0; padding: 4px 6px; color: #fff; background: #303b4a; border-radius: 5px; font-size: 10px; white-space: nowrap; pointer-events: none; transition: opacity .15s ease; }
.bar-column:hover .bar-tooltip { opacity: 1; }
.chart-footer { display: flex; align-items: center; justify-content: space-between; margin: 24px 18px 13px; color: #a5acb6; font-size: 10px; }
.chart-legend { display: inline-flex; align-items: center; gap: 6px; }.chart-legend i { width: 7px; height: 7px; border-radius: 2px; background: var(--brand); }
.upcoming-list, .recent-list { padding: 0 13px 10px; }
.upcoming-item { min-height: 56px; display: flex; align-items: center; gap: 10px; padding: 7px 6px; border-top: 1px solid #f1f3f6; transition: background .15s ease; }
.upcoming-item:hover, .recent-item:hover { background: #fafbfc; border-radius: 8px; }
.upcoming-date { width: 35px; height: 38px; display: grid; align-content: center; justify-items: center; flex: 0 0 auto; color: #677284; background: #f5f7fa; border-radius: 8px; line-height: 1.15; }
.upcoming-date strong { font-size: 14px; font-weight: 750; }.upcoming-date small { font-size: 10px; color: #a0a8b3; text-transform: uppercase; }
.upcoming-today { color: #c75222; background: #fff0e8; }.upcoming-today small { color: #d3815d; }
.upcoming-details { min-width: 0; flex: 1; display: grid; gap: 2px; }.upcoming-details strong { overflow: hidden; color: #3b4656; font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }.upcoming-details small { overflow: hidden; color: #a0a8b3; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.mini-sep { padding: 0 3px; color: #d3d7de; }
.upcoming-time { color: #8791a0; font-size: 10px; white-space: nowrap; }.upcoming-chevron { color: #c1c7cf; }
.recent-item { min-height: 48px; display: flex; align-items: center; gap: 9px; padding: 6px 6px; border-top: 1px solid #f1f3f6; }
.recent-item .avatar { width: 30px; height: 30px; font-size: 10px; }
.recent-main { min-width: 80px; flex: 1; display: grid; gap: 1px; }.recent-main strong { color: #3d4858; font-size: 12px; font-weight: 700; }.recent-main small { color: #a2aab5; font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-date { width: 56px; color: #a7aeb8; text-align: right; font-size: 10px; }

/* Forms and alerts */
.form-card { padding: 21px; }
.form-section + .form-section { margin-top: 22px; padding-top: 20px; border-top: 1px solid #eef0f3; }
.form-section-title { margin: 0 0 14px; color: #394455; font-size: 14px; font-weight: 750; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 15px; }
.form-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-field { min-width: 0; display: grid; align-content: start; gap: 6px; }
.field-label { color: #596475; font-size: 12px; font-weight: 700; }
.field-label .required { color: var(--brand); }
.field-hint { margin-top: -2px; color: #9aa2ad; font-size: 10px; }
.form-control, .select-control, .textarea-control { width: 100%; min-height: 39px; padding: 9px 11px; border: 1px solid #e2e7ed; border-radius: 8px; outline: none; color: #374254; background: #fff; font-size: 13px; transition: border .15s ease, box-shadow .15s ease; }
.form-control::placeholder, .textarea-control::placeholder { color: #b0b7c1; }
.form-control:focus, .select-control:focus, .textarea-control:focus { border-color: #f5a17e; box-shadow: 0 0 0 3px rgba(255,90,31,.08); }
.select-control { appearance: none; padding-right: 32px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23939CAA' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.textarea-control { min-height: 105px; resize: vertical; line-height: 1.55; }
.field-error { color: #c54444; font-size: 12px; }
.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 22px; padding-top: 16px; border-top: 1px solid #eff1f4; }
.form-actions-between { justify-content: space-between; }
.form-error-summary { margin-bottom: 16px; padding: 11px 13px; color: #ad4343; background: #fff0ef; border: 1px solid #fad8d6; border-radius: 8px; font-size: 13px; }
.alert { display: flex; align-items: center; gap: 9px; margin: 0 0 16px; padding: 11px 12px; border-radius: 8px; font-size: 13px; }
.alert-error { color: #a94444; background: #fff1f0; border: 1px solid #fad9d7; }
.alert-success { color: #23795f; background: #eef9f4; border: 1px solid #d7efe4; }
.toast { max-width: 460px; min-height: 42px; display: flex; align-items: center; gap: 9px; position: fixed; top: 82px; right: 25px; z-index: 100; padding: 9px 12px; border: 1px solid #d7efe4; border-radius: 10px; background: #f5fcf8; color: #24765c; box-shadow: var(--shadow-md); font-size: 13px; animation: toast-in .28s ease both; }
.toast-error { color: #aa4747; background: #fff6f5; border-color: #f4d7d5; }.toast > span { flex: 1; }.toast button { display: grid; place-items: center; width: 24px; height: 24px; color: inherit; border: 0; background: transparent; cursor: pointer; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-7px); } to { opacity: 1; transform: translateY(0); } }

/* Authentication */
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 30px 18px; overflow: hidden; background: radial-gradient(ellipse at 50% 7%, rgba(255,137,88,.14), transparent 31%), radial-gradient(ellipse at 80% 84%, rgba(255,90,31,.065), transparent 27%), #f7f8fa; }
.auth-wrap { width: min(100%, 410px); }
.brand-auth { margin: 0 auto 23px; display: flex; justify-content: center; }
.brand-auth .brand-mark { width: 40px; height: 40px; border-radius: 13px; }
.brand-auth .brand-copy strong { font-size: 18px; }
.auth-card { padding: 30px; border: 1px solid #e9edf1; border-radius: 17px; background: rgba(255,255,255,.96); box-shadow: 0 18px 55px rgba(35,42,56,.08), 0 2px 5px rgba(35,42,56,.025); }
.auth-eyebrow { display: flex; align-items: center; gap: 8px; color: #939caa; font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.auth-eyebrow .eyebrow-dot { width: 5px; height: 5px; }
.auth-card h1 { margin: 11px 0 5px; color: #222d3b; font-size: 29px; font-weight: 760; letter-spacing: -.055em; }
.text-brand { color: var(--brand); }
.auth-subtitle { margin: 0 0 21px; color: #8b95a3; font-size: 13px; }
.form-stack { display: flex; flex-direction: column; gap: 8px; }
.input-icon { min-height: 43px; display: flex; align-items: center; gap: 9px; padding: 0 11px; border: 1px solid #e2e7ed; border-radius: 8px; color: #a0a8b4; transition: border .15s ease, box-shadow .15s ease; }
.input-icon:focus-within { border-color: #f5a17e; box-shadow: 0 0 0 3px rgba(255,90,31,.08); }
.input-icon input { width: 100%; min-width: 0; height: 40px; border: 0; outline: 0; color: #354052; background: transparent; font-size: 13px; }
.input-icon input::placeholder { color: #b0b7c1; }
.input-action { width: 25px; height: 25px; display: grid; place-items: center; border: 0; color: #a1aab5; background: transparent; cursor: pointer; }
.field-row { display: flex; align-items: center; justify-content: space-between; }
.field-between { margin-top: 5px; }
.link-subtle { color: #d45c2d; font-size: 12px; font-weight: 650; }
.link-subtle:hover { color: var(--brand); text-decoration: underline; }
.check-label { display: flex; align-items: center; gap: 8px; margin: 6px 0 7px; color: #818b99; font-size: 12px; cursor: pointer; }
.check-label input { position: absolute; opacity: 0; pointer-events: none; }
.check-box { width: 15px; height: 15px; display: grid; place-items: center; border: 1px solid #d8dee6; border-radius: 4px; background: #fff; }
.check-label input:checked + .check-box { background: var(--brand); border-color: var(--brand); }
.check-label input:checked + .check-box::after { content: "✓"; color: #fff; font-size: 12px; font-weight: 800; }
.check-label input:focus-visible + .check-box { outline: 3px solid rgba(255,90,31,.24); }
.auth-assurance { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 20px; padding-top: 16px; border-top: 1px solid #f0f2f5; color: #a0a8b3; font-size: 10px; }
.auth-assurance .icon { color: #67a78d; }
.auth-foot { display: flex; justify-content: space-between; margin: 14px 2px 0; color: #a5acb6; font-size: 10px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 17px; color: #848e9c; font-size: 12px; font-weight: 650; }
.back-link:hover { color: var(--brand); }
.auth-icon-box { width: 38px; height: 38px; display: grid; place-items: center; margin-bottom: 11px; color: var(--brand); background: #fff0e9; border-radius: 11px; }

/* Lead table and filtering */
.toolbar-card { margin-bottom: 14px; padding: 13px; background: #fff; border: 1px solid var(--line); border-radius: 11px; box-shadow: var(--shadow-sm); }
.lead-toolbar { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.table-search { width: 245px; height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 10px; color: #a3aab5; border: 1px solid #e6eaf0; border-radius: 8px; background: #fff; }
.table-search:focus-within { border-color: #f4aa8a; box-shadow: 0 0 0 3px rgba(255,90,31,.07); }
.table-search input { width: 100%; min-width: 0; border: 0; outline: 0; color: #3b4656; font-size: 12px; }
.table-search input::placeholder { color: #a8b0bb; }
.filter-select { height: 36px; min-width: 110px; padding: 0 29px 0 10px; color: #657080; font-size: 12px; border: 1px solid #e6eaf0; border-radius: 8px; background-color: #fff; }
.filter-date { width: 132px; height: 36px; padding: 0 8px; color: #657080; border: 1px solid #e6eaf0; border-radius: 8px; font-size: 12px; }
.toolbar-spacer { flex: 1; }
.toolbar-divider { width: 1px; height: 25px; margin: 0 1px; background: #edf0f3; }
.bulk-toolbar { display: none; align-items: center; gap: 8px; margin-top: 11px; padding: 9px 10px; color: #657080; border-radius: 7px; background: #fff6f1; font-size: 12px; }
.bulk-toolbar.is-visible { display: flex; }
.bulk-toolbar strong { color: #d25726; }
.table-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 11px; box-shadow: var(--shadow-sm); }
.table-scroll { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12px; }
.data-table th { height: 40px; padding: 0 11px; text-align: left; color: #959eab; background: #fafbfc; border-bottom: 1px solid #edf0f3; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.data-table td { height: 57px; padding: 8px 11px; border-bottom: 1px solid #f0f2f5; color: #667181; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr { transition: background .12s ease; }
.data-table tbody tr:hover { background: #fcfcfd; }
.data-table .check-cell { width: 38px; padding-left: 15px; padding-right: 5px; }
.row-checkbox, .select-all { width: 14px; height: 14px; accent-color: var(--brand); cursor: pointer; }
.lead-cell { min-width: 190px; display: flex; align-items: center; gap: 9px; }
.lead-cell .avatar { width: 30px; height: 30px; font-size: 10px; }
.lead-cell-text { min-width: 0; display: grid; gap: 1px; }
.lead-cell-text a, .lead-cell-text strong { color: #364152; font-size: 12px; font-weight: 720; }
.lead-cell-text a:hover { color: var(--brand); }
.lead-cell-text small { color: #a1a9b4; font-size: 10px; }
.gym-cell { min-width: 130px; display: grid; gap: 1px; }
.gym-cell strong { color: #596475; font-size: 12px; font-weight: 630; }
.gym-cell small, .table-muted { color: #a2aab5; font-size: 10px; }
.phone-link { color: #667181; font-variant-numeric: tabular-nums; white-space: nowrap; }
.phone-link:hover { color: var(--brand); }
.assignee-cell { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }.assignee-cell .avatar { width: 23px; height: 23px; font-size: 10px; }
.row-actions { display: inline-flex; align-items: center; gap: 3px; }
.row-action { width: 26px; height: 26px; display: grid; place-items: center; color: #a4acb7; border: 0; border-radius: 6px; background: transparent; cursor: pointer; }
.row-action:hover { color: #485465; background: #f0f2f5; }.row-action.danger:hover { color: #c94747; background: #fff0ef; }
.table-footer { min-height: 51px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 15px; border-top: 1px solid #edf0f3; color: #9aa2ae; font-size: 10px; }
.pagination-links { display: flex; align-items: center; gap: 4px; }
.pagination-links a, .pagination-links span { min-width: 27px; height: 27px; display: inline-grid; place-items: center; padding: 0 7px; border-radius: 6px; color: #818b99; font-size: 10px; }
.pagination-links a { border: 1px solid #e8ebf0; background: #fff; }.pagination-links a:hover { color: var(--brand); border-color: #f5c3ae; }.pagination-links .active { color: #fff; background: var(--brand); border: 1px solid var(--brand); }
.pagination-links .disabled { color: #c3c8d0; border: 1px solid #eef0f3; }
.filter-chips { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 9px; }
.filter-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; color: #657080; background: #f5f7f9; border-radius: 6px; font-size: 10px; }
.filter-chip strong { color: #364153; }
.filter-chip a { color: #929baa; }.filter-chip a:hover { color: var(--red); }

/* Lead detail */
.breadcrumb { display: flex; align-items: center; gap: 7px; margin: -9px 0 16px; color: #9ca4af; font-size: 12px; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb .icon { color: #c2c8d0; }
.detail-heading { align-items: flex-start; }
.detail-title-line { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.detail-title-line h1 { margin-top: 3px; }
.detail-subline { display: flex; align-items: center; gap: 8px; color: #929baa; font-size: 13px; }
.detail-subline .icon { color: #a7aeb8; }
.detail-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(285px, .85fr); gap: 14px; align-items: start; }
.detail-main-stack, .detail-side-stack { display: grid; gap: 14px; }
.detail-profile { padding: 18px 20px; }
.detail-profile-head { display: flex; align-items: flex-start; gap: 13px; }
.detail-profile-head .avatar { width: 46px; height: 46px; border-radius: 13px; font-size: 16px; }
.detail-profile-copy { flex: 1; min-width: 0; }
.detail-profile-copy h2 { margin: 1px 0 3px; color: #2f3b4b; font-size: 17px; font-weight: 760; letter-spacing: -.025em; }
.detail-profile-copy p { margin: 0; color: #929baa; font-size: 12px; }
.detail-profile-meta { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 9px; margin-top: 18px; padding-top: 14px; border-top: 1px solid #eff1f4; }
.detail-meta-item { min-width: 0; display: grid; gap: 4px; }
.detail-meta-item span { color: #9aa2ae; font-size: 10px; }
.detail-meta-item strong, .detail-meta-item a { overflow: hidden; color: #596475; font-size: 12px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.detail-meta-item a:hover { color: var(--brand); }
.detail-panel { padding: 0 18px 17px; }
.detail-panel .card-heading { padding-right: 0; padding-left: 0; }
.notes-content { padding: 11px 12px; color: #727d8d; border: 1px solid #edf0f3; border-radius: 8px; background: #fbfcfd; font-size: 12px; white-space: pre-line; }
.timeline { position: relative; padding: 5px 0 2px 22px; }
.timeline::before { content: ""; width: 1px; position: absolute; top: 12px; bottom: 15px; left: 7px; background: #e9edf2; }
.timeline-item { position: relative; padding: 0 0 17px; }
.timeline-item:last-child { padding-bottom: 2px; }
.timeline-dot { width: 15px; height: 15px; position: absolute; top: 2px; left: -22px; display: grid; place-items: center; color: #fff; border: 2px solid #fff; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 1px #f5c8b6; }
.timeline-dot .icon { width: 8px; height: 8px; stroke-width: 2.4; }
.timeline-dot.event-green { background: #21a176; box-shadow: 0 0 0 1px #b7e3d2; }.timeline-dot.event-blue { background: #5d83d6; box-shadow: 0 0 0 1px #c6d4f7; }.timeline-dot.event-purple { background: #8969ca; box-shadow: 0 0 0 1px #d4c9f1; }
.timeline-item-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.timeline-item-head strong { color: #566172; font-size: 12px; font-weight: 700; }
.timeline-item-head time { color: #a5acb6; font-size: 10px; white-space: nowrap; }
.timeline-item p { margin: 3px 0 0; color: #9099a6; font-size: 10px; line-height: 1.5; }
.timeline-author { margin-top: 4px; color: #acb3bc; font-size: 10px; }
.status-form { display: flex; gap: 7px; margin-top: 8px; }
.status-form .select-control { flex: 1; min-width: 0; height: 34px; min-height: 34px; font-size: 12px; }
.status-form .btn { height: 34px; min-height: 34px; }
.action-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.action-tile { min-height: 58px; display: flex; align-items: center; gap: 9px; padding: 9px 10px; border: 1px solid #e9edf1; border-radius: 9px; background: #fff; transition: border .15s ease, background .15s ease; }
.action-tile:hover { border-color: #ffd0bd; background: #fffaf7; }
.action-tile-icon { width: 29px; height: 29px; display: grid; place-items: center; color: #d45b2c; background: #fff0e9; border-radius: 8px; }
.action-tile-icon.whatsapp { color: #21845e; background: #eaf7f0; }
.action-tile strong { display: block; color: #566172; font-size: 12px; }.action-tile small { display: block; color: #a5acb6; font-size: 10px; }
.followup-mini { display: flex; align-items: center; gap: 9px; padding: 9px 0; border-top: 1px solid #f0f2f5; }
.followup-mini:first-of-type { border-top: 0; }
.followup-mini-date { width: 32px; height: 35px; display: grid; place-items: center; align-content: center; color: #b95424; background: #fff1e9; border-radius: 7px; line-height: 1.1; }.followup-mini-date strong { font-size: 13px; }.followup-mini-date small { font-size: 10px; text-transform: uppercase; }
.followup-mini-copy { flex: 1; min-width: 0; display: grid; gap: 2px; }.followup-mini-copy strong { color: #596475; font-size: 10px; }.followup-mini-copy small { color: #a4abb6; font-size: 10px; }
.note-form { display: grid; gap: 8px; margin-top: 10px; }.note-form .textarea-control { min-height: 68px; font-size: 12px; }.note-form .btn { justify-self: end; }

/* Follow-up management */
.tab-bar { display: flex; align-items: center; gap: 4px; padding: 4px; border: 1px solid #e9edf1; border-radius: 9px; background: #f7f8fa; }
.tab-link { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; color: #8992a0; border-radius: 6px; font-size: 12px; font-weight: 650; white-space: nowrap; }
.tab-link:hover { color: #3c4858; }.tab-link.active { color: #bc4f20; background: #fff; box-shadow: 0 1px 3px rgba(30,40,55,.08); }
.tab-count { min-width: 17px; height: 17px; display: inline-grid; place-items: center; padding: 0 4px; border-radius: 5px; color: #a1a8b3; background: #f2f4f6; font-size: 10px; }
.tab-link.active .tab-count { color: #c15a2c; background: #fff0e8; }
.followup-list { display: grid; gap: 9px; }
.followup-row-card { display: grid; grid-template-columns: 4px minmax(175px, 1.2fr) minmax(120px, .85fr) minmax(130px, .8fr) auto; align-items: center; gap: 13px; padding: 14px 15px 14px 0; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-sm); }
.followup-accent { width: 4px; height: 100%; min-height: 48px; background: #f5b06e; }.followup-accent.overdue { background: #de6767; }.followup-accent.completed { background: #45b58b; }.followup-accent.meeting { background: #8770d0; }.followup-accent.trial { background: #3ba98c; }
.followup-lead-info, .followup-when, .followup-owner { min-width: 0; display: grid; gap: 3px; }
.followup-lead-info strong { color: #3e4958; font-size: 13px; }.followup-lead-info a:hover { color: var(--brand); }.followup-lead-info small, .followup-when small, .followup-owner small { color: #a0a8b3; font-size: 10px; }
.followup-when strong { color: #5a6575; font-size: 12px; font-weight: 700; }.followup-owner { display: flex; align-items: center; gap: 7px; }.followup-owner .avatar { width: 24px; height: 24px; font-size: 10px; }
.followup-controls { display: flex; align-items: center; gap: 5px; }
.complete-form { display: flex; gap: 5px; }
.followup-result { max-width: 190px; color: #748091; font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Calendar */
.calendar-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 15px; }
.calendar-nav { display: flex; align-items: center; gap: 7px; }.calendar-nav h2 { min-width: 145px; margin: 0; color: #394455; text-align: center; font-size: 16px; font-weight: 750; letter-spacing: -.025em; }
.calendar-controls { display: flex; align-items: center; gap: 9px; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); border-top: 1px solid #edf0f3; border-left: 1px solid #edf0f3; }
.calendar-weekday { min-height: 34px; display: grid; place-items: center; color: #a1a9b4; background: #fbfcfd; border-right: 1px solid #edf0f3; border-bottom: 1px solid #edf0f3; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.calendar-day { min-height: 119px; padding: 8px; border-right: 1px solid #edf0f3; border-bottom: 1px solid #edf0f3; background: #fff; }
.calendar-day.is-outside { background: #fafbfc; }.calendar-day.is-outside .calendar-day-number { color: #c5cad2; }.calendar-day.is-today { background: #fffaf7; }
.calendar-day-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.calendar-day-number { width: 22px; height: 22px; display: grid; place-items: center; color: #687384; border-radius: 50%; font-size: 10px; }.is-today .calendar-day-number { color: #fff; background: var(--brand); font-weight: 800; }
.calendar-day-events { display: grid; gap: 4px; }
.calendar-event { display: flex; align-items: center; gap: 4px; min-width: 0; padding: 4px 5px; border-radius: 5px; color: #5b6777; background: #f1f4fb; font-size: 10px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.calendar-event::before { content: ""; width: 5px; height: 5px; flex: 0 0 auto; border-radius: 50%; background: #718bd0; }
.calendar-event.event-follow_up { color: #a96820; background: #fff5e9; }.calendar-event.event-follow_up::before { background: #e89a4d; }
.calendar-event.event-meeting { color: #7259b2; background: #f1edff; }.calendar-event.event-meeting::before { background: #8b72d3; }
.calendar-event.event-trial { color: #1a8261; background: #eaf7f1; }.calendar-event.event-trial::before { background: #36a37d; }
.calendar-more { color: #929baa; font-size: 10px; padding-left: 5px; }
.agenda-list { display: grid; gap: 8px; padding: 15px; }
.agenda-day { padding: 10px; border: 1px solid #edf0f3; border-radius: 9px; }.agenda-day h3 { margin: 0 0 7px; color: #687384; font-size: 12px; }.agenda-event { display: flex; align-items: center; gap: 9px; padding: 7px 5px; border-top: 1px solid #f2f4f6; font-size: 12px; }.agenda-event time { width: 60px; color: #8993a1; }.agenda-event strong { color: #4c5767; }.agenda-event small { color: #a2aab5; }

/* Import wizard */
.import-layout { max-width: 920px; margin: 0 auto; }
.import-steps { display: flex; align-items: center; justify-content: center; gap: 0; margin: 6px 0 22px; }
.import-step { display: flex; align-items: center; gap: 8px; color: #a1a9b4; font-size: 12px; font-weight: 650; }
.import-step-number { width: 25px; height: 25px; display: grid; place-items: center; color: #9aa2ae; border: 1px solid #e3e7ec; border-radius: 50%; background: #fff; font-size: 10px; font-weight: 750; }
.import-step.active { color: #c45223; }.import-step.active .import-step-number { color: #fff; background: var(--brand); border-color: var(--brand); box-shadow: 0 3px 7px rgba(255,90,31,.2); }
.import-step.complete { color: #238262; }.import-step.complete .import-step-number { color: #fff; background: #36a37d; border-color: #36a37d; }
.import-step-line { width: clamp(24px, 7vw, 72px); height: 1px; margin: 0 11px; background: #e5e9ee; }
.upload-zone { min-height: 217px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 25px; border: 1.5px dashed #d9dfe7; border-radius: 12px; background: #fcfcfd; text-align: center; transition: border .16s ease, background .16s ease; }
.upload-zone.is-dragging { border-color: var(--brand); background: #fff7f3; }
.upload-zone input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.upload-icon { width: 49px; height: 49px; display: grid; place-items: center; margin-bottom: 11px; color: var(--brand); background: #fff0e8; border-radius: 14px; }
.upload-zone strong { color: #465264; font-size: 14px; }.upload-zone p { margin: 4px 0 11px; color: #99a1ad; font-size: 12px; }.upload-zone .btn { min-height: 32px; }
.upload-meta { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 11px; color: #adb4bd; font-size: 10px; }.upload-meta span { display: inline-flex; align-items: center; gap: 4px; }
.mapping-table { width: 100%; border-collapse: collapse; }.mapping-table th { padding: 9px; color: #9aa2ae; background: #fafbfc; text-align: left; font-size: 10px; letter-spacing: .07em; text-transform: uppercase; }.mapping-table td { padding: 8px 9px; border-top: 1px solid #f0f2f5; color: #667181; font-size: 12px; }.mapping-sample { color: #a1a9b4; }.validation-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 13px; }.validation-stat { padding: 13px; background: #fafbfc; border: 1px solid #edf0f3; border-radius: 9px; }.validation-stat strong { display: block; color: #374354; font-size: 22px; }.validation-stat small { color: #9ca4af; font-size: 10px; }.validation-stat.stat-green strong { color: #16825d; }.validation-stat.stat-red strong { color: #c64d4d; }
.validation-errors { max-height: 220px; overflow: auto; margin-top: 10px; border: 1px solid #f1dedb; border-radius: 8px; }.validation-error-row { display: grid; grid-template-columns: 54px 1fr; gap: 9px; padding: 8px 10px; border-top: 1px solid #f5e9e7; color: #a7564b; font-size: 10px; }.validation-error-row:first-child { border-top: 0; }.validation-error-row strong { color: #9d5046; }
.import-summary { padding: 27px; text-align: center; }.summary-success-icon { width: 54px; height: 54px; display: grid; place-items: center; margin: 0 auto 13px; color: #fff; background: #29a378; border-radius: 50%; box-shadow: 0 0 0 8px #e9f7f1; }.import-summary h2 { margin: 0; color: #344052; font-size: 23px; letter-spacing: -.04em; }.import-summary p { color: #929baa; font-size: 13px; }.summary-stats { display: flex; align-items: center; justify-content: center; gap: 25px; margin: 20px auto; }.summary-stat strong { display: block; color: #344052; font-size: 21px; }.summary-stat small { color: #9ca4af; font-size: 10px; }

/* Reports */
.report-kpi-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 11px; margin-bottom: 14px; }
.report-kpi { min-height: 99px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 11px; box-shadow: var(--shadow-sm); }.report-kpi-top { display: flex; align-items: center; justify-content: space-between; color: #8791a0; font-size: 10px; }.report-kpi strong { display: block; margin: 7px 0 2px; color: #2b3646; font-size: 26px; line-height: 1; letter-spacing: -.05em; }.report-kpi small { color: #a2aab5; font-size: 10px; }.report-chart-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }.report-card { overflow: hidden; }.report-card .card-heading { min-height: 61px; }.report-bars { display: grid; gap: 12px; padding: 8px 18px 18px; }.report-bar-row { display: grid; grid-template-columns: 94px minmax(50px,1fr) 35px; align-items: center; gap: 10px; color: #778190; font-size: 10px; }.report-bar-track { height: 8px; overflow: hidden; background: #f0f2f5; border-radius: 8px; }.report-bar-fill { height: 100%; min-width: 2px; display: block; border-radius: inherit; background: linear-gradient(90deg,#ffad8c,var(--brand)); }.report-bar-fill.fill-blue { background: linear-gradient(90deg,#a9beef,#6287db); }.report-bar-fill.fill-green { background: linear-gradient(90deg,#9edec6,#35a47d); }.report-bar-fill.fill-purple { background: linear-gradient(90deg,#cbb9f5,#886bd0); }.report-bar-fill.fill-yellow { background: linear-gradient(90deg,#f7d599,#dfa340); }.report-bar-row strong { color: #5d6878; text-align: right; font-size: 10px; }.report-card-foot { display: flex; align-items: center; justify-content: space-between; margin: 0 18px 14px; padding-top: 9px; border-top: 1px solid #f0f2f5; color: #9ca4af; font-size: 10px; }
.conversion-panel { display: flex; align-items: center; gap: 20px; padding: 13px 18px 18px; }.conversion-ring { width: 100px; height: 100px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: conic-gradient(var(--brand) var(--conversion, 0%), #f0f2f5 0); position: relative; }.conversion-ring::before { content: ""; width: 76px; height: 76px; position: absolute; border-radius: 50%; background: #fff; }.conversion-ring span { z-index: 1; color: #344052; font-size: 21px; font-weight: 760; letter-spacing: -.04em; }.conversion-copy h3 { margin: 0 0 4px; color: #455163; font-size: 13px; }.conversion-copy p { margin: 0; color: #9ba3ae; font-size: 10px; }.conversion-legend { display: grid; gap: 7px; margin-top: 11px; }.conversion-legend span { display: flex; align-items: center; gap: 6px; color: #7d8795; font-size: 10px; }.conversion-legend i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }.conversion-legend .legend-gray { background: #c7cdd5; }
.report-empty { min-height: 130px; display: grid; place-items: center; padding: 20px; color: #a0a8b4; text-align: center; font-size: 12px; }

/* Settings */
.settings-layout { display: grid; grid-template-columns: minmax(0, 1fr) 245px; gap: 15px; align-items: start; }.settings-nav { display: grid; gap: 4px; padding: 8px; }.settings-nav a { display: flex; align-items: center; gap: 9px; padding: 9px; color: #778190; border-radius: 7px; font-size: 12px; }.settings-nav a:hover, .settings-nav a.active { color: #bf5122; background: #fff2eb; }.settings-nav a .icon { color: #9da5b0; }.settings-nav a.active .icon { color: var(--brand); }
.settings-info-card { padding: 15px; }.settings-info-card h3 { margin: 0 0 5px; color: #455163; font-size: 13px; }.settings-info-card p { margin: 0; color: #9da5b0; font-size: 10px; }.setting-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-top: 1px solid #f0f2f5; }.setting-line:first-of-type { margin-top: 8px; }.setting-line strong { color: #5c6777; font-size: 12px; }.setting-line small { display: block; margin-top: 2px; color: #9da5b0; font-size: 10px; }
.toggle { width: 34px; height: 19px; position: relative; display: inline-block; }.toggle input { width: 1px; height: 1px; position: absolute; opacity: 0; }.toggle-track { position: absolute; inset: 0; border-radius: 20px; background: #dfe4ea; cursor: pointer; transition: background .15s ease; }.toggle-track::after { content: ""; width: 13px; height: 13px; position: absolute; top: 3px; left: 3px; border-radius: 50%; background: white; box-shadow: 0 1px 2px rgba(0,0,0,.16); transition: transform .15s ease; }.toggle input:checked + .toggle-track { background: var(--brand); }.toggle input:checked + .toggle-track::after { transform: translateX(15px); }.toggle input:focus-visible + .toggle-track { outline: 3px solid rgba(255,90,31,.2); }
.team-table { width: 100%; border-collapse: collapse; }.team-table th { padding: 9px 12px; color: #9ca4af; background: #fafbfc; text-align: left; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }.team-table td { padding: 10px 12px; border-top: 1px solid #eff1f4; color: #687384; font-size: 12px; }.team-member { display: flex; align-items: center; gap: 8px; }.team-member .avatar { width: 29px; height: 29px; font-size: 10px; }.team-member strong { display: block; color: #4a5666; font-size: 12px; }.team-member small { display: block; color: #a0a8b3; font-size: 10px; }.role-badge { display: inline-flex; padding: 4px 7px; color: #6a7482; background: #f2f4f7; border-radius: 5px; font-size: 10px; font-weight: 700; }.role-badge.admin { color: #ad5428; background: #fff0e8; }.role-badge.manager { color: #6752a8; background: #f1edff; }

/* Responsive behavior */
@media (max-width: 1220px) {
    :root { --sidebar-width: 230px; }
    .topbar { padding-right: 23px; padding-left: 23px; }
    .page-main { padding-right: 23px; padding-left: 23px; }
    .metric-grid { gap: 9px; }
    .metric-card { padding-right: 13px; padding-left: 13px; }
    .quick-stat-row { gap: 11px; }
    .followup-row-card { grid-template-columns: 4px minmax(150px,1.1fr) minmax(110px,.8fr) minmax(100px,.7fr) auto; gap: 10px; }
}
@media (max-width: 1050px) {
    .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .dashboard-grid-primary, .dashboard-grid-secondary { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .dashboard-grid-primary > *, .dashboard-grid-secondary > * { min-width: 0; }
    .quick-stat-row { flex-wrap: wrap; padding: 12px; }
    .quick-stat-end { display: none; }
    .report-kpi-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .lead-toolbar { gap: 7px; }
    .table-search { width: 210px; }
    .filter-select { min-width: 95px; }
    .detail-grid { grid-template-columns: minmax(0,1.25fr) minmax(260px,.85fr); }
}
@media (max-width: 820px) {
    .sidebar { width: 270px; position: fixed; left: 0; top: 0; height: 100dvh; transform: translateX(-102%); transition: transform .22s cubic-bezier(.2,.7,.2,1); box-shadow: 8px 0 30px rgba(25,35,50,.12); }
    .sidebar.is-open { transform: translateX(0); }
    .sidebar-close, .mobile-menu { display: inline-grid; }
    .sidebar-scrim { display: block; position: fixed; inset: 0; z-index: 45; background: rgba(24,33,46,.28); opacity: 0; visibility: hidden; transition: opacity .18s ease, visibility .18s ease; }
    .sidebar-scrim.is-visible { opacity: 1; visibility: visible; }
    .main-column { width: 100%; }
    .topbar { height: 61px; flex-basis: 61px; padding: 0 18px; }
    .topbar-left { gap: 5px; }.topbar-crumb { font-size: 12px; }
    .page-main { padding: 24px 18px 30px; }
    .app-footer { padding-right: 18px; padding-left: 18px; }
    .global-search { width: 210px; }
    .detail-grid { grid-template-columns: 1fr; }
    .detail-side-stack { grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; }
    .settings-layout { grid-template-columns: minmax(0,1fr) 205px; }
    .followup-row-card { grid-template-columns: 4px minmax(130px,1.2fr) minmax(105px,.85fr) auto; }
    .followup-owner { display: none; }
}
@media (max-width: 620px) {
    .topbar { padding: 0 12px; }.topbar-crumb > span, .topbar-crumb > .icon { display: none; }.topbar-crumb strong { font-size: 13px; }
    .topbar-actions { gap: 7px; }.global-search { width: 35px; height: 35px; padding: 0; justify-content: center; border-color: transparent; background: transparent; }.global-search input, .global-search kbd { display: none; }.global-search:focus-within { width: 170px; justify-content: flex-start; padding: 0 8px; background: #fff; border-color: #e7ebf0; }.global-search:focus-within input { display: block; }.profile-trigger-copy, .profile-trigger > .icon, .topbar-divider { display: none; }
    .page-main { padding: 20px 12px 24px; }.app-footer { padding: 10px 12px 15px; font-size: 10px; }
    .page-heading { align-items: flex-start; flex-direction: column; gap: 13px; margin-bottom: 18px; }.page-heading h1 { font-size: 29px; }.page-description { font-size: 13px; }.heading-date { display: none; }.heading-actions { width: 100%; }.heading-actions .btn { flex: 1; }
    .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }.metric-card { min-height: 119px; padding: 12px; }.metric-value { font-size: 28px; }.metric-label { font-size: 10px; }.metric-icon { width: 28px; height: 28px; }.metric-hint { font-size: 10px; }
    .quick-stat-row { justify-content: space-between; gap: 8px 10px; padding: 10px; }.quick-stat { gap: 5px; font-size: 10px; }.quick-stat strong { font-size: 13px; }.quick-stat small { display: none; }.quick-stat-separator { height: 20px; }
    .dashboard-grid-primary, .dashboard-grid-secondary { grid-template-columns: 1fr; gap: 10px; }.dashboard-grid-secondary { margin-top: 10px; }.card-heading { padding-right: 13px; padding-left: 13px; }.pipeline-list { padding-right: 13px; padding-left: 13px; }.pipeline-row { grid-template-columns: 105px minmax(35px,1fr) 26px; gap: 8px; font-size: 10px; }.pipeline-caption { margin-right: 13px; margin-left: 13px; }.chart-wrap { height: 144px; }
    .table-card { margin-right: -1px; margin-left: -1px; }.data-table { min-width: 760px; }.toolbar-card { padding: 10px; }.lead-toolbar { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }.table-search { width: 100%; grid-column: 1 / -1; }.filter-select { width: 100%; }.filter-date { width: 100%; }.toolbar-spacer, .toolbar-divider { display: none; }.lead-toolbar > .btn { width: 100%; }.table-footer { align-items: flex-start; flex-direction: column; }
    .detail-profile { padding: 14px; }.detail-profile-meta { grid-template-columns: repeat(2,minmax(0,1fr)); }.detail-actions { width: 100%; }.detail-actions .btn { flex: 1; padding: 0 9px; }.detail-side-stack { grid-template-columns: 1fr; }.detail-title-line h1 { font-size: 26px; }
    .form-card { padding: 14px; }.form-grid, .form-grid-three { grid-template-columns: 1fr; }.form-actions { flex-wrap: wrap; }.form-actions .btn { flex: 1; }
    .followup-tabs-row { align-items: flex-start; flex-direction: column; }.tab-bar { width: 100%; overflow-x: auto; }.tab-link { padding: 7px 8px; }.followup-row-card { grid-template-columns: 4px minmax(0,1fr) auto; gap: 9px; padding-right: 9px; }.followup-when { grid-column: 2; }.followup-controls { grid-column: 3; grid-row: 1 / span 2; flex-direction: column; }.followup-result { display: none; }
    .calendar-toolbar { align-items: flex-start; flex-direction: column; }.calendar-controls { width: 100%; justify-content: space-between; }.calendar-grid { overflow: auto; grid-template-columns: repeat(7,minmax(76px,1fr)); }.calendar-day { min-height: 85px; padding: 5px; }.calendar-event { font-size: 10px; }.calendar-weekday { min-height: 29px; }
    .import-steps { justify-content: flex-start; overflow-x: auto; padding-bottom: 5px; }.import-step { gap: 5px; font-size: 10px; white-space: nowrap; }.import-step-number { width: 22px; height: 22px; }.import-step-line { width: 18px; margin: 0 5px; flex: 0 0 18px; }.mapping-table-wrap { overflow-x: auto; }.mapping-table { min-width: 560px; }.validation-summary { gap: 6px; }.validation-stat { padding: 9px; }.validation-stat strong { font-size: 18px; }
    .report-kpi-grid { gap: 8px; }.report-kpi { min-height: 88px; padding: 11px; }.report-kpi strong { font-size: 23px; }.report-chart-grid { grid-template-columns: 1fr; gap: 10px; }.report-bar-row { grid-template-columns: 78px minmax(40px,1fr) 27px; gap: 7px; }
    .settings-layout { grid-template-columns: 1fr; }.settings-layout > aside { order: -1; }.settings-nav { display: flex; overflow-x: auto; }.settings-nav a { flex: 0 0 auto; }.team-table-wrap { overflow-x: auto; }.team-table { min-width: 580px; }
    .auth-card { padding: 23px 19px; }.auth-foot { gap: 10px; flex-direction: column; text-align: center; }.toast { top: 70px; right: 10px; left: 10px; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Cross-page finishing states */
.heading-count { display: inline-grid; vertical-align: 4px; min-width: 25px; height: 21px; place-items: center; padding: 0 6px; color: #9aa2ae; background: #eff2f5; border-radius: 6px; font-size: 12px; font-weight: 700; letter-spacing: 0; }
.metric-icon-purple { color: #825fc9; background: #f2eeff; }
.text-muted { color: #9da5b0; }
.text-brand { color: var(--brand); }
.btn:disabled { cursor: not-allowed; opacity: .48; transform: none; box-shadow: none; }
.toast-leaving { opacity: 0; transform: translateY(-6px); transition: opacity .18s ease, transform .18s ease; }
.has-file { border-color: #f6a27f; background: #fff8f4; }
.has-file [data-upload-name] { color: #c55121; }
.followup-tabs-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.complete-details { position: relative; }
.complete-details > summary { list-style: none; cursor: pointer; }
.complete-details > summary::-webkit-details-marker { display: none; }
.complete-details[open] > summary { color: #fff; background: var(--brand); border-color: var(--brand); }
.complete-panel { width: min(400px, calc(100vw - 34px)); display: grid; gap: 9px; position: absolute; top: calc(100% + 7px); right: 0; z-index: 25; padding: 14px; border: 1px solid #e8ebf0; border-radius: 11px; background: #fff; box-shadow: var(--shadow-md); }
.complete-panel > strong { color: #394556; font-size: 13px; }
.complete-panel .form-field { gap: 4px; }
.complete-panel [data-next-followup-field][hidden], .complete-panel [data-meeting-field][hidden], .complete-panel [data-lost-reason-field][hidden] { display: none !important; }
.complete-panel .form-control, .complete-panel .select-control { min-height: 34px; padding-top: 7px; padding-bottom: 7px; font-size: 12px; }
.complete-panel .textarea-control { min-height: 57px; font-size: 12px; }
.complete-panel .form-grid { gap: 8px; }
.complete-actions { display: flex; justify-content: flex-end; padding-top: 4px; }
.calendar-legend { display: inline-flex; align-items: center; gap: 11px; color: #929baa; font-size: 10px; }
.calendar-legend span { display: inline-flex; align-items: center; gap: 5px; }
.calendar-legend i { width: 7px; height: 7px; display: inline-block; border-radius: 50%; }
.legend-follow { background: #e89a4d; }.legend-meeting { background: #8b72d3; }.legend-trial { background: #36a37d; }
.calendar-week-view { grid-template-columns: repeat(7, minmax(0,1fr)); }
.calendar-week-day { min-width: 0; min-height: 340px; padding: 9px; border-right: 1px solid #edf0f3; border-bottom: 1px solid #edf0f3; background: #fff; }
.calendar-week-day:last-child { border-right: 0; }
.calendar-week-head { display: grid; justify-items: center; gap: 3px; margin: 0 auto 10px; color: #9ba4af; font-size: 10px; text-transform: uppercase; }
.calendar-week-head strong { width: 25px; height: 25px; display: grid; place-items: center; color: #687384; border-radius: 50%; font-size: 12px; }
.calendar-week-head.is-today strong { color: #fff; background: var(--brand); }
.calendar-week-day .calendar-day-events { gap: 6px; }
.calendar-week-day .calendar-event { display: block; padding: 6px; line-height: 1.4; white-space: normal; }
.calendar-week-day .calendar-event::before { display: inline-block; margin-right: 4px; vertical-align: 1px; }
.calendar-empty-cell { color: #c2c8d0; font-size: 10px; }
.calendar-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 15px; color: #a0a8b3; font-size: 10px; }
.agenda-event { flex-wrap: wrap; }
.agenda-event .calendar-event { max-width: 135px; }
.agenda-event .calendar-event::before { display: none; }
.event-stat-block { min-width: 85px; display: grid; justify-items: center; gap: 4px; }
.event-stat-block .metric-icon { width: 34px; height: 34px; }
.event-stat-block strong { color: #364153; font-size: 25px; line-height: 1; letter-spacing: -.04em; }
.event-stat-block small { color: #9ca4af; font-size: 10px; }
.event-stat-divider { width: 1px; height: 70px; background: #edf0f3; }
.team-permission-form { display: flex; align-items: center; gap: 5px; }
.team-permission-form .filter-select { height: 30px; min-width: 96px; font-size: 10px; }
.pagination-links { flex-wrap: wrap; }
@media (max-width: 820px) {
    .calendar-legend { gap: 7px; }
    .calendar-week-view { overflow-x: auto; grid-template-columns: repeat(7, minmax(90px,1fr)); }
    .calendar-week-day { min-height: 265px; padding: 6px; }
    .followup-tabs-row { align-items: flex-start; }
}
@media (max-width: 620px) {
    .followup-tabs-row { display: grid; }
    .followup-tabs-row .table-search { width: 100%; }
    .complete-panel { position: fixed; top: 20vh; right: 50%; max-height: 68vh; overflow: auto; transform: translateX(50%); }
    .calendar-footer { align-items: flex-start; flex-direction: column; }
    .calendar-legend { flex-wrap: wrap; }
}
button.is-loading { position: relative; color: transparent !important; pointer-events: none; }
button.is-loading .icon { opacity: 0; }
button.is-loading::after { content: ""; width: 14px; height: 14px; position: absolute; top: 50%; left: 50%; margin: -7px 0 0 -7px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; color: #fff; animation: crm-spin .7s linear infinite; }
.btn-secondary.is-loading::after, .btn-quiet.is-loading::after { color: #687384; }
@keyframes crm-spin { to { transform: rotate(360deg); } }
.settings-main-stack, .settings-side-stack { display: grid; gap: 14px; }
.delete-lead-form { display: flex; justify-content: flex-end; }


/* Readability pass: larger type and touch targets across every CRM screen. */
:root { --sidebar-width: 270px; }
.sidebar { padding: 25px 16px 16px; }
.nav-link { min-height: 45px; padding-right: 14px; padding-left: 14px; }
.workspace-switcher { padding: 12px 13px; }
.topbar { height: 74px; flex-basis: 74px; padding-right: 36px; padding-left: 36px; }
.global-search { width: 280px; height: 42px; }
.page-main { padding: 36px 40px 46px; }
.app-footer { padding: 14px 40px 20px; }
.btn { min-height: 44px; padding-right: 16px; padding-left: 16px; }
.btn-sm { min-height: 36px; padding-right: 12px; padding-left: 12px; }
.icon-button { width: 40px; height: 40px; }
.card-heading { min-height: 68px; padding: 19px 22px 14px; }
.metric-grid { gap: 16px; }
.metric-card { min-height: 158px; padding: 18px 19px 16px; }
.metric-icon { width: 36px; height: 36px; }
.quick-stat-row { min-height: 70px; gap: 18px; padding: 12px 18px; }
.toolbar-card { padding: 16px; }
.table-search, .filter-select, .filter-date { min-height: 42px; height: 42px; }
.data-table th { height: 48px; padding-right: 14px; padding-left: 14px; }
.data-table td { height: 64px; padding: 10px 14px; }
.form-control, .select-control, .textarea-control { min-height: 46px; padding: 11px 13px; }
.form-card { padding: 25px; }
.status-pill, .priority-pill, .status-tag { padding: 5px 9px; }

@media (max-width: 1220px) {
    .topbar { padding-right: 28px; padding-left: 28px; }
    .page-main { padding-right: 28px; padding-left: 28px; }
}
@media (max-width: 820px) {
    .topbar { height: 68px; flex-basis: 68px; padding-right: 22px; padding-left: 22px; }
    .page-main { padding: 28px 22px 36px; }
    .app-footer { padding-right: 22px; padding-left: 22px; }
    .metric-grid { gap: 12px; }
}
@media (max-width: 620px) {
    .topbar { height: 64px; flex-basis: 64px; padding-right: 14px; padding-left: 14px; }
    .page-main { padding: 22px 15px 28px; }
    .app-footer { padding: 12px 15px 18px; }
    .metric-grid { gap: 10px; }
    .metric-card { min-height: 132px; padding: 14px; }
    .toolbar-card { padding: 12px; }
    .form-card { padding: 18px; }
    .data-table { min-width: 820px; }
}

/* Self-hosted Poppins UI font and Space Grotesk wordmark font. */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-latin-500.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-latin-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-latin-700.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-latin-ext-400.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-latin-ext-500.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-latin-ext-600.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-latin-ext-700.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-devanagari-400.woff2") format("woff2"); unicode-range: U+0900-097F, U+1CD0-1CF4, U+1CF7-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B0A; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-devanagari-500.woff2") format("woff2"); unicode-range: U+0900-097F, U+1CD0-1CF4, U+1CF7-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B0A; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-devanagari-600.woff2") format("woff2"); unicode-range: U+0900-097F, U+1CD0-1CF4, U+1CF7-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B0A; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-devanagari-700.woff2") format("woff2"); unicode-range: U+0900-097F, U+1CD0-1CF4, U+1CF7-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B0A; }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/space-grotesk-latin-variable.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* GymXBook visual refresh — typographic scale, surfaces, navigation and page systems. */
:root {
    color-scheme: light;
    --brand: #ff5a1f;
    --brand-hover: #e94b16;
    --brand-soft: #fff0e9;
    --brand-line: #ffd7c6;
    --ink: #202a35;
    --ink-strong: #17212b;
    --muted: #667383;
    --muted-2: #8b96a4;
    --canvas: #f3f5f7;
    --surface: #ffffff;
    --line: #e4e8ed;
    --line-strong: #d6dce3;
    --green: #16845f;
    --green-soft: #e8f6ef;
    --blue: #416fc4;
    --blue-soft: #edf3ff;
    --purple: #7658bc;
    --purple-soft: #f1edfc;
    --yellow: #a86c13;
    --yellow-soft: #fff5e5;
    --red: #c84f50;
    --red-soft: #fff0ef;
    --shadow-sm: 0 1px 2px rgba(28, 39, 52, .035), 0 8px 24px rgba(28, 39, 52, .045);
    --shadow-md: 0 16px 40px rgba(24, 35, 48, .14);
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 22px;
    --sidebar-width: 264px;
    --font-ui: "Poppins", "Segoe UI", Arial, sans-serif;
    --font-display: "Poppins", "Segoe UI", Arial, sans-serif;
    --font-brand: "Space Grotesk", "Poppins", "Segoe UI", sans-serif;
}

html { min-width: 320px; scroll-behavior: smooth; font-size: 16px; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: var(--font-ui); font-size: 16px; font-weight: 400; line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid rgba(255, 90, 31, .27); outline-offset: 2px; }
::selection { color: #202a35; background: rgba(255, 90, 31, .18); }

/* A darker, calmer workspace rail anchors every authenticated page. */
.app-body { min-height: 100vh; background: var(--canvas); }
.app-shell { min-height: 100vh; align-items: stretch; }
.sidebar { width: var(--sidebar-width); flex-basis: var(--sidebar-width); padding: 24px 16px 16px; color: #e9edf2; background: linear-gradient(180deg, #202b37 0%, #19232d 100%); border: 0; box-shadow: 7px 0 26px rgba(29, 41, 53, .06); }
.sidebar-top { padding: 0 7px 22px; border-bottom: 1px solid rgba(255,255,255,.09); }
.brand { gap: 11px; }
.brand-mark { width: 39px; height: 39px; color: #fff; background: linear-gradient(145deg, #ff8758, var(--brand) 62%, #e84b18); border-radius: 12px; box-shadow: 0 7px 18px rgba(255, 90, 31, .22); }
.brand-copy strong { color: #f7f8fa; font-family: var(--font-display); font-size: 18px; font-weight: 700; letter-spacing: -.035em; }
.brand-copy small { color: #96a1ae; font-size: 10px; letter-spacing: .17em; }
.workspace-switcher { min-height: 62px; margin: 17px 0 27px; padding: 10px 11px; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.085); border-radius: 12px; cursor: default; }
.workspace-avatar { width: 34px; height: 34px; color: #ffe3d6; background: rgba(255, 90, 31, .18); border: 1px solid rgba(255, 153, 113, .17); border-radius: 10px; font-size: 11px; }
.workspace-copy strong { color: #f0f2f5; font-size: 13px; font-weight: 650; }
.workspace-copy small { color: #9ca7b3; font-size: 11px; }
.workspace-state { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: #39b486; box-shadow: 0 0 0 4px rgba(57,180,134,.12); }
.nav-label { margin: 0 0 9px; padding: 0 11px; color: #8793a1; font-size: 10px; font-weight: 750; letter-spacing: .13em; }
.primary-nav { gap: 5px; }
.nav-link { position: relative; min-height: 45px; gap: 12px; padding: 0 12px; color: #b2bdc8; border: 1px solid transparent; border-radius: 10px; font-size: 14px; font-weight: 550; }
.nav-link .icon { color: #96a2af; }
.nav-link:hover { color: #fff; background: rgba(255,255,255,.055); }
.nav-link.active { color: #ffb293; background: rgba(255, 90, 31, .14); border-color: rgba(255, 133, 88, .15); font-weight: 650; }
.nav-link.active::before { content: ""; width: 3px; position: absolute; top: 9px; bottom: 9px; left: -1px; border-radius: 0 4px 4px 0; background: #ff8152; }
.nav-link.active .icon { color: #ff9b76; }
.nav-counter { color: #8b97a5; font-size: 12px; }
.nav-badge { color: #ffbd9f; background: rgba(255,90,31,.19); font-size: 11px; }
.nav-new { color: #aeb9c4; border-color: rgba(255,255,255,.15); font-size: 9px; }
.sidebar-bottom { margin-top: auto; }
.sidebar-help { margin: 20px 2px 14px; padding: 15px; border-color: rgba(255,255,255,.095); background: linear-gradient(145deg, rgba(255,255,255,.065), rgba(255,255,255,.025)); border-radius: 13px; }
.help-orbit { width: 32px; height: 32px; color: #ff9a72; background: rgba(255,90,31,.14); border-radius: 10px; }
.sidebar-help strong { color: #edf0f3; font-size: 13px; font-weight: 650; }
.sidebar-help p { color: #9ba7b3; font-size: 12px; line-height: 1.55; }
.sidebar-help a { color: #ff9a72; font-size: 12px; }
.sidebar-user { min-height: 58px; gap: 10px; padding: 13px 4px 2px; border-color: rgba(255,255,255,.1); }
.sidebar-user-copy strong { color: #f0f2f5; font-size: 13px; font-weight: 620; }
.sidebar-user-copy small { color: #9ba6b2; font-size: 11px; }
.logout-button { color: #abb5bf; }
.logout-button:hover { color: #fff; background: rgba(255,255,255,.1); }
.avatar { font-family: var(--font-ui); font-weight: 700; }
.main-column { min-width: 0; background: var(--canvas); }
.topbar { height: 72px; flex-basis: 72px; padding: 0 clamp(22px, 3vw, 46px); background: rgba(255,255,255,.96); border-bottom-color: #e7eaee; backdrop-filter: blur(16px); }
.topbar-crumb { gap: 10px; color: #8994a1; font-size: 13px; }
.topbar-crumb strong { color: #293541; font-size: 13px; font-weight: 650; }
.topbar-actions { gap: 15px; }
.global-search { width: min(310px, 28vw); height: 40px; padding: 0 10px 0 12px; color: #8b96a3; background: #f7f8fa; border-color: #e6e9ed; border-radius: 11px; }
.global-search input { color: #28333f; font-family: var(--font-ui); font-size: 13px; }
.global-search input::placeholder { color: #929ca8; }
kbd { padding: 3px 6px; color: #778391; background: #fff; border-color: #e2e6eb; border-radius: 5px; font-size: 10px; }
.topbar-divider { height: 30px; background: #e8ebef; }
.icon-button { width: 38px; height: 38px; color: #657180; border-radius: 10px; }
.icon-button:hover { color: #25313d; background: #f1f3f5; }
.notification-ping { top: 6px; right: 6px; width: 8px; height: 8px; box-shadow: 0 0 0 2px #fff; }
.profile-trigger { gap: 10px; padding: 4px 3px 4px 6px; }
.profile-trigger-copy strong { color: #293541; font-size: 13px; font-weight: 650; }
.profile-trigger-copy small { color: #8b96a3; font-size: 11px; }
.dropdown-panel { border-color: #e1e6eb; border-radius: 14px; box-shadow: 0 18px 50px rgba(25,36,48,.15); }
.dropdown-heading strong { font-size: 14px; }
.dropdown-note { color: #738091; font-size: 13px; line-height: 1.5; }
.profile-menu a, .profile-menu form button { min-height: 39px; font-size: 13px; }
.page-main { width: 100%; max-width: 1680px; padding: 36px clamp(24px, 3.3vw, 52px) 50px; }
.app-footer { padding: 15px clamp(24px, 3.3vw, 52px) 21px; color: #8994a1; font-size: 12px; }
.app-footer span:first-child { color: #586574; font-weight: 650; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 200; padding: 10px 14px; color: #fff; background: #202a35; border-radius: 8px; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

/* Page titles, actions and shared surfaces. */
.page-heading { align-items: center; gap: 22px; margin-bottom: 29px; }
.page-heading h1 { margin: 5px 0 5px; color: #202a35; font-family: var(--font-display); font-size: clamp(29px, 2.3vw, 36px); font-weight: 700; letter-spacing: -.045em; line-height: 1.14; }
.page-description { max-width: 680px; color: #657383; font-size: 15px; line-height: 1.55; }
.eyebrow { gap: 8px; color: #788594; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; }
.eyebrow-dot { width: 7px; height: 7px; background: var(--brand); box-shadow: 0 0 0 4px rgba(255,90,31,.11); }
.heading-date { color: #798594; border-left-color: #dce1e6; }
.heading-actions, .detail-actions { gap: 10px; }
.wave { font-size: 24px; }
.breadcrumb { margin: -8px 0 17px; color: #788594; font-size: 13px; }
.breadcrumb .icon { color: #a0aab5; }
.btn { min-height: 42px; gap: 9px; padding: 0 16px; border-radius: 10px; font-family: var(--font-ui); font-size: 14px; font-weight: 650; letter-spacing: -.005em; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: #fff; background: var(--brand); border-color: var(--brand); box-shadow: 0 5px 12px rgba(255,90,31,.16); }
.btn-primary:hover { color: #fff; background: var(--brand-hover); border-color: var(--brand-hover); box-shadow: 0 7px 16px rgba(255,90,31,.2); }
.btn-secondary { color: #364351; background: #fff; border-color: #dfe4e9; box-shadow: 0 1px 2px rgba(24,35,48,.035); }
.btn-secondary:hover { color: #1e2a35; background: #fafbfc; border-color: #cdd5de; }
.btn-quiet { color: #687585; }
.btn-danger { background: #c84f50; }
.btn-sm { min-height: 35px; padding: 0 12px; font-size: 13px; }
.btn-block { min-height: 48px; }
.surface-card, .table-card, .toolbar-card, .report-kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-heading { min-height: 72px; gap: 18px; padding: 20px 22px 16px; }
.card-heading h2 { color: #25313d; font-family: var(--font-display); font-size: 17px; font-weight: 680; letter-spacing: -.025em; }
.card-heading p { color: #748191; font-size: 13px; line-height: 1.45; }
.subtle-link, .metric-link { gap: 6px; color: #677585; font-size: 13px; font-weight: 650; }
.subtle-link:hover, .metric-link:hover { color: var(--brand); }
.status-pill, .priority-pill, .status-tag { gap: 6px; padding: 5px 9px; border: 1px solid transparent; border-radius: 999px; font-size: 11px; font-weight: 650; }
.status-orange { color: #ad4319; background: #fff0e8; border-color: #ffe2d5; }
.status-new { color: #3d63aa; background: #edf3ff; }
.status-contacted { color: #176a8e; background: #eaf7fb; }
.status-follow-up { color: #8e5d11; background: #fff5e5; }
.status-meeting-fixed { color: #6447a8; background: #f1edfc; }
.status-trial { color: #147650; background: #e8f6ef; }
.status-negotiation { color: #a85b16; background: #fff1e4; }
.status-converted { color: #14724f; background: #e7f5ee; }
.status-lost { color: #a4484d; background: #fff0ef; }
.priority-pill { padding: 5px 9px; }
.empty-state { min-height: 260px; padding: 34px 24px; }
.empty-state strong { color: #334150; font-size: 15px; font-weight: 650; }
.empty-state p { max-width: 360px; color: #748191; font-size: 13px; line-height: 1.55; }
.empty-icon { width: 48px; height: 48px; color: #c35d34; background: #fff0e8; border-radius: 15px; }

/* Overview: clear metrics and softer, high-contrast data panels. */
.dashboard-heading { position: relative; margin-bottom: 26px; }
.dashboard-heading h1 { font-size: clamp(31px, 2.6vw, 39px); }
.metric-grid { gap: 16px; }
.metric-card { min-height: 155px; position: relative; overflow: hidden; padding: 19px 20px 17px; border-color: #e4e8ed; border-radius: 16px; box-shadow: var(--shadow-sm); }
.metric-card::after { content: ""; width: 92px; height: 92px; position: absolute; right: -38px; bottom: -54px; border-radius: 50%; background: rgba(255,90,31,.055); pointer-events: none; }
.metric-card:nth-child(2)::after { background: rgba(65,111,196,.055); }
.metric-card:nth-child(3)::after { background: rgba(200,79,80,.05); }
.metric-card:nth-child(4)::after { background: rgba(22,132,95,.055); }
.metric-featured { border-top: 3px solid var(--brand); background: linear-gradient(135deg, #fff 0%, #fffaf7 100%); }
.metric-top { position: relative; z-index: 1; }
.metric-label { color: #657383; font-size: 13px; font-weight: 600; }
.metric-icon { width: 37px; height: 37px; border-radius: 11px; }
.metric-icon-orange { color: #d84d19; background: #fff0e8; }
.metric-icon-blue { color: #416fc4; background: #edf3ff; }
.metric-icon-red { color: #c84f50; background: #fff0ef; }
.metric-icon-green { color: #16845f; background: #e8f6ef; }
.metric-icon-purple { color: #7658bc; background: #f1edfc; }
.metric-value { position: relative; z-index: 1; margin: 9px 0 3px; color: #202a35; font-family: var(--font-display); font-size: 34px; font-weight: 700; letter-spacing: -.05em; }
.metric-foot { position: relative; z-index: 1; gap: 8px; }
.metric-hint { color: #748191; font-size: 12px; }
.metric-caption { color: #687585; font-size: 12px; font-weight: 650; }
.metric-link { font-size: 12px; }
.quick-stat-row { min-height: 70px; gap: 18px; margin: 15px 0 18px; padding: 11px 17px; background: #fff; border-color: #e5e9ed; border-radius: 14px; box-shadow: var(--shadow-sm); }
.quick-stat { gap: 8px; color: #677585; font-size: 13px; }
.quick-stat strong { color: #273440; font-size: 16px; font-weight: 700; }
.quick-stat small { color: #8792a0; font-size: 11px; }
.quick-stat-dot { width: 8px; height: 8px; }
.quick-stat-separator { background: #e8ebef; }
.open-pipeline-label { color: #677585; font-size: 11px; }
.open-pipeline-track { height: 6px; background: #edf0f3; }
.dashboard-grid { gap: 18px; }
.dashboard-grid-secondary { margin-top: 18px; }
.pipeline-card, .activity-card, .followup-card, .recent-card { border-radius: 16px; }
.pipeline-list { padding: 1px 22px 10px; }
.pipeline-row { min-height: 35px; grid-template-columns: 132px minmax(50px, 1fr) 38px; gap: 14px; color: #5e6b7a; font-size: 13px; }
.pipeline-stage-dot { width: 8px; height: 8px; }
.pipeline-bar { height: 8px; background: #eff2f4; }
.pipeline-row strong { color: #34414d; font-size: 13px; }
.pipeline-caption { margin: 8px 22px 16px; padding-top: 13px; color: #788493; font-size: 12px; }
.chart-total { color: #778391; font-size: 12px; }
.chart-total strong { color: #283541; font-size: 25px; }
.chart-wrap { height: 185px; padding: 12px 22px 0 18px; }
.chart-y-labels { color: #7e8996; font-size: 11px; }
.bar-chart { background: repeating-linear-gradient(to bottom, transparent 0, transparent 43px, #edf0f3 44px, transparent 45px); }
.chart-bar { width: 21px; background: linear-gradient(180deg,#ffc1a6,#ff966d); }
.chart-bar-current { background: linear-gradient(180deg,#ff9369,var(--brand)); }
.bar-column > span { color: #687585; font-size: 11px; }
.chart-footer { margin: 27px 22px 17px; color: #778391; font-size: 11px; }
.upcoming-list, .recent-list { padding: 0 17px 12px; }
.upcoming-item { min-height: 64px; gap: 13px; padding: 9px 8px; border-top-color: #edf0f3; }
.upcoming-date { width: 42px; height: 45px; color: #364451; background: #f2f4f6; border-radius: 11px; }
.upcoming-date strong { font-size: 16px; }
.upcoming-date small { color: #778391; font-size: 10px; }
.upcoming-today { color: #b84517; background: #fff0e8; }
.upcoming-details { gap: 3px; }
.upcoming-details strong { color: #2d3945; font-size: 14px; }
.upcoming-details small { color: #788493; font-size: 12px; }
.upcoming-time { color: #596777; font-size: 12px; }
.upcoming-chevron { color: #98a3ae; }
.recent-item { min-height: 57px; gap: 11px; padding: 8px; border-top-color: #edf0f3; }
.recent-item .avatar { width: 34px; height: 34px; font-size: 12px; }
.recent-main strong { color: #2d3945; font-size: 13px; }
.recent-main small { color: #7b8794; font-size: 12px; }
.recent-date { width: auto; color: #7b8794; font-size: 11px; }

/* Forms: clearer groups, stronger labels, comfortable controls. */
.form-card { padding: 27px; }
.form-section + .form-section { margin-top: 25px; padding-top: 24px; border-top-color: #e8ebef; }
.form-section-title { margin-bottom: 16px; color: #2b3743; font-family: var(--font-display); font-size: 17px; font-weight: 680; }
.form-grid { gap: 18px 20px; }
.form-field { gap: 7px; }
.field-label { color: #465462; font-size: 13px; font-weight: 620; }
.field-hint { color: #748191; font-size: 12px; line-height: 1.45; }
.form-control, .select-control, .textarea-control { min-height: 44px; padding: 10px 13px; color: #24313d; background-color: #fff; border-color: #dbe1e7; border-radius: 10px; font-family: var(--font-ui); font-size: 14px; line-height: 1.45; }
.form-control::placeholder, .textarea-control::placeholder { color: #97a1ad; }
.form-control:focus, .select-control:focus, .textarea-control:focus { border-color: #ff9b75; box-shadow: 0 0 0 4px rgba(255,90,31,.1); }
.textarea-control { min-height: 122px; }
.field-error { font-size: 12px; font-weight: 550; }
.form-actions { gap: 10px; margin-top: 25px; padding-top: 20px; border-top-color: #e8ebef; }
.form-error-summary, .alert { padding: 13px 15px; border-radius: 11px; font-size: 14px; }
.form-error-summary { color: #9d3e3f; background: #fff1f0; border-color: #f3d8d6; }
.alert-error { color: #9d3e3f; background: #fff1f0; border-color: #f3d8d6; }
.alert-success { color: #176e4e; background: #edf8f2; border-color: #d4ebde; }
.toast { top: 86px; right: 30px; min-height: 48px; padding: 12px 15px; border-radius: 12px; font-size: 14px; }

/* Leads list and record tables. */
.toolbar-card { margin-bottom: 17px; padding: 16px; border-radius: 15px; }
.lead-toolbar { gap: 9px; }
.table-search { width: 260px; height: 42px; gap: 9px; padding: 0 12px; color: #75818f; border-color: #dfe4e9; border-radius: 10px; }
.table-search input { color: #27333f; font-family: var(--font-ui); font-size: 13px; }
.table-search input::placeholder { color: #8b96a4; }
.filter-select, .filter-date { height: 42px; min-height: 42px; padding-left: 12px; color: #4e5b69; background-color: #fff; border-color: #dfe4e9; border-radius: 10px; font-family: var(--font-ui); font-size: 13px; }
.filter-date { padding-right: 9px; }
.bulk-toolbar { margin-top: 13px; padding: 12px 14px; color: #5c6876; background: #fff6f1; border: 1px solid #ffe3d6; border-radius: 10px; font-size: 13px; }
.table-card { border-radius: 16px; }
.table-scroll { scrollbar-color: #cad1d9 transparent; scrollbar-width: thin; }
.data-table { font-size: 13px; }
.data-table th { height: 48px; padding: 0 14px; color: #718090; background: #f7f8fa; border-bottom-color: #e5e9ed; font-size: 11px; letter-spacing: .06em; }
.data-table td { height: 66px; padding: 10px 14px; color: #4d5a68; border-bottom-color: #edf0f3; font-size: 13px; }
.data-table tbody tr:hover { background: #fafbfc; }
.data-table .check-cell { padding-left: 18px; }
.lead-cell { gap: 11px; }
.lead-cell .avatar { width: 36px; height: 36px; font-size: 12px; }
.lead-cell-text a, .lead-cell-text strong { color: #25313d; font-size: 13px; font-weight: 650; }
.lead-cell-text small, .gym-cell small, .table-muted { color: #788493; font-size: 12px; }
.gym-cell strong { color: #374451; font-size: 13px; font-weight: 600; }
.phone-link { color: #465565; font-size: 13px; }
.assignee-cell { gap: 8px; font-size: 12px; }
.assignee-cell .avatar { width: 28px; height: 28px; font-size: 11px; }
.row-action { width: 32px; height: 32px; color: #75818e; border-radius: 9px; }
.row-action:hover { color: var(--brand); background: #fff0e8; }
.table-footer { min-height: 58px; padding: 10px 18px; color: #73808e; border-top-color: #e8ebef; font-size: 12px; }
.pagination-links { gap: 5px; }
.pagination-links a, .pagination-links span { min-width: 32px; height: 32px; border-radius: 8px; color: #596675; font-size: 12px; }
.pagination-links a { border-color: #e1e6eb; }
.pagination-links .active { color: #fff; background: var(--brand); border-color: var(--brand); }
.filter-chip { padding: 5px 9px; color: #536170; background: #f1f3f5; font-size: 11px; }

/* Lead details: a readable overview and purposeful activity column. */
.detail-heading { align-items: flex-start; }
.detail-title-line h1 { margin: 3px 0; }
.detail-subline { gap: 9px; color: #637181; font-size: 14px; }
.detail-grid { gap: 18px; }
.detail-main-stack, .detail-side-stack { gap: 18px; }
.detail-profile { padding: 23px; border-radius: 16px; }
.detail-profile-head { align-items: center; gap: 15px; }
.detail-profile-head .avatar { width: 54px; height: 54px; border-radius: 16px; font-size: 18px; }
.detail-profile-copy h2 { color: #26333f; font-family: var(--font-display); font-size: 20px; font-weight: 680; }
.detail-profile-copy p { color: #748191; font-size: 13px; }
.detail-profile-meta { gap: 14px; margin-top: 21px; padding-top: 18px; border-top-color: #e9edf0; }
.detail-meta-item { gap: 5px; }
.detail-meta-item span { color: #788493; font-size: 12px; }
.detail-meta-item strong, .detail-meta-item a { color: #34414d; font-size: 13px; font-weight: 600; }
.detail-panel { padding: 0 21px 21px; border-radius: 16px; }
.detail-panel .card-heading { min-height: 72px; }
.notes-content { padding: 15px; color: #4b5967; background: #f8f9fa; border-color: #e7ebef; border-radius: 11px; font-size: 14px; line-height: 1.6; }
.timeline { padding-left: 25px; }
.timeline::before { left: 8px; background: #dfe5ea; }
.timeline-dot { width: 18px; height: 18px; left: -25px; }
.timeline-item { padding-bottom: 22px; }
.timeline-item-head strong { color: #34414d; font-size: 14px; }
.timeline-item-head time, .timeline-item p, .timeline-author { color: #748191; font-size: 12px; }
.action-grid { gap: 10px; }
.action-tile { min-height: 70px; gap: 11px; padding: 12px; border-color: #e2e7eb; border-radius: 12px; }
.action-tile-icon { width: 36px; height: 36px; border-radius: 11px; }
.action-tile strong { color: #2e3a46; font-size: 13px; }
.action-tile small { color: #788493; font-size: 11px; }
.followup-mini { gap: 11px; padding: 12px 0; border-top-color: #e9edf0; }
.followup-mini-date { width: 40px; height: 42px; border-radius: 10px; }
.followup-mini-date strong { font-size: 15px; }
.followup-mini-copy strong { color: #394653; font-size: 12px; }
.followup-mini-copy small { color: #788493; font-size: 11px; }
.note-form .textarea-control { min-height: 92px; font-size: 14px; }

/* Follow-up queue and tabs. */
.followup-tabs-row { min-height: 65px; margin-bottom: 18px; padding: 10px 13px; border-radius: 15px; }
.tab-bar { gap: 3px; padding: 4px; background: #f1f3f5; border-color: #e5e9ed; border-radius: 11px; }
.tab-link { min-height: 36px; gap: 7px; padding: 7px 12px; color: #5e6b79; border-radius: 8px; font-size: 13px; font-weight: 550; }
.tab-link.active { color: #b74218; background: #fff; box-shadow: 0 1px 4px rgba(27,38,50,.11); }
.tab-count { min-width: 20px; height: 20px; color: #687585; background: #edf0f3; border-radius: 6px; font-size: 11px; }
.tab-link.active .tab-count { color: #aa431b; background: #fff0e8; }
.followup-list { gap: 11px; }
.followup-row-card { grid-template-columns: 4px minmax(190px,1.15fr) minmax(145px,.85fr) minmax(140px,.8fr) auto; gap: 16px; padding: 16px 17px 16px 0; border-color: #e4e8ed; border-radius: 14px; box-shadow: var(--shadow-sm); }
.followup-accent { min-height: 58px; }
.followup-lead-info strong { color: #293642; font-size: 14px; font-weight: 650; }
.followup-lead-info small, .followup-when small, .followup-owner small { color: #788493; font-size: 12px; }
.followup-when strong { color: #36434f; font-size: 13px; font-weight: 650; }
.followup-owner .avatar { width: 32px; height: 32px; font-size: 12px; }
.followup-controls { gap: 7px; }
.complete-panel { width: min(440px, calc(100vw - 36px)); gap: 12px; padding: 18px; border-color: #dfe4e9; border-radius: 15px; }
.complete-panel > strong { color: #2c3844; font-size: 15px; }

/* Calendar month, week and agenda views. */
.calendar-toolbar { padding: 17px 20px; }
.calendar-nav { gap: 9px; }
.calendar-nav h2 { min-width: 170px; color: #26333f; font-family: var(--font-display); font-size: 19px; font-weight: 680; }
.calendar-controls { gap: 13px; }
.calendar-grid { border-color: #e5e9ed; }
.calendar-weekday { min-height: 42px; color: #697686; background: #f7f8fa; border-color: #e5e9ed; font-size: 11px; }
.calendar-day { min-height: 132px; padding: 10px; border-color: #e5e9ed; }
.calendar-day.is-outside { background: #fafbfc; }
.calendar-day.is-today { background: #fff9f5; }
.calendar-day-number { width: 27px; height: 27px; color: #44515f; font-size: 12px; }
.is-today .calendar-day-number { background: var(--brand); }
.calendar-day-events { gap: 5px; }
.calendar-event { gap: 6px; padding: 6px 7px; border-radius: 7px; font-size: 11px; }
.calendar-event::before { width: 6px; height: 6px; }
.calendar-footer { padding: 14px 19px; color: #758190; border-top: 1px solid #e8ebef; font-size: 12px; }
.calendar-legend { gap: 12px; color: #687585; font-size: 12px; }
.calendar-legend i { width: 8px; height: 8px; }
.agenda-list { gap: 11px; padding: 18px; }
.agenda-day { padding: 15px; border-color: #e3e8ed; border-radius: 13px; }
.agenda-day h3 { color: #34414d; font-size: 14px; }
.agenda-event { gap: 12px; padding: 10px 6px; border-top-color: #edf0f3; font-size: 13px; }
.agenda-event time { color: #677585; }
.agenda-event strong { color: #283541; }
.agenda-event small { color: #788493; }
.calendar-week-day { border-color: #e5e9ed; }
.calendar-week-head { color: #748191; font-size: 11px; }
.calendar-week-head strong { width: 30px; height: 30px; font-size: 13px; }
.calendar-week-head.is-today strong { background: var(--brand); }

/* Import flow, previews and validation states. */
.import-layout { max-width: 1040px; }
.import-steps { margin: 8px 0 25px; }
.import-step { gap: 9px; color: #6e7b89; font-size: 13px; font-weight: 600; }
.import-step-number { width: 30px; height: 30px; color: #5f6c7a; border-color: #dfe4e9; font-size: 12px; }
.import-step.active { color: #b7471b; }
.import-step.active .import-step-number { background: var(--brand); border-color: var(--brand); }
.import-step.complete { color: #176f50; }
.import-step-line { width: clamp(24px, 7vw, 82px); background: #dfe4e9; }
.upload-zone { min-height: 245px; border-color: #cfd7df; border-radius: 16px; background: #f9fafb; }
.upload-zone:hover, .upload-zone.is-dragging { border-color: var(--brand); background: #fff8f4; }
.upload-icon { width: 54px; height: 54px; color: #c84f1d; background: #fff0e8; border-radius: 16px; }
.upload-zone strong { color: #34414d; font-size: 16px; }
.upload-zone p { color: #6e7b89; font-size: 13px; }
.upload-meta { gap: 16px; color: #6e7b89; font-size: 12px; }
.mapping-table th { padding: 12px; color: #647181; background: #f7f8fa; font-size: 11px; }
.mapping-table td { padding: 11px 12px; border-color: #e8ebef; color: #44515f; font-size: 13px; }
.mapping-sample { color: #758191; }
.validation-summary { gap: 13px; }
.validation-stat { padding: 17px; background: #f8f9fa; border-color: #e4e8ed; border-radius: 12px; }
.validation-stat strong { color: #283541; font-family: var(--font-display); font-size: 26px; }
.validation-stat small { color: #718090; font-size: 12px; }
.validation-errors { border-color: #f0d9d7; border-radius: 11px; }
.validation-error-row { padding: 10px 13px; border-color: #f3e7e5; font-size: 12px; line-height: 1.45; }
.import-summary { padding: 38px 30px; border-radius: 18px; }
.summary-success-icon { width: 60px; height: 60px; margin-bottom: 17px; }
.import-summary h2 { color: #27343f; font-family: var(--font-display); font-size: 27px; }
.import-summary p { color: #6e7b89; font-size: 15px; }
.summary-stats { gap: 38px; margin: 25px auto; }
.summary-stat strong { color: #2b3743; font-size: 24px; }
.summary-stat small { color: #718090; font-size: 12px; }

/* Reports: consistent scorecards, chart tracks and numeric hierarchy. */
.report-kpi-grid { gap: 15px; margin-bottom: 18px; }
.report-kpi { min-height: 125px; padding: 18px; border-radius: 15px; }
.report-kpi-top { color: #687585; font-size: 13px; }
.report-kpi-top .metric-icon { width: 35px; height: 35px; }
.report-kpi strong { margin: 10px 0 4px; color: #202b36; font-family: var(--font-display); font-size: 31px; font-weight: 700; }
.report-kpi small { color: #758191; font-size: 12px; }
.report-chart-grid { gap: 17px; }
.report-card { border-radius: 16px; }
.report-card .card-heading { min-height: 75px; }
.report-bars { gap: 15px; padding: 12px 22px 20px; }
.report-bar-row { grid-template-columns: 110px minmax(50px,1fr) 38px; gap: 12px; color: #566474; font-size: 13px; }
.report-bar-track { height: 9px; background: #edf0f3; }
.report-bar-row strong { color: #34414d; font-size: 13px; }
.report-card-foot { margin: 0 22px 18px; padding-top: 12px; color: #718090; border-top-color: #e9edf0; font-size: 11px; }
.conversion-panel { gap: 23px; padding: 18px 22px 22px; }
.conversion-ring { width: 112px; height: 112px; }
.conversion-ring::before { width: 86px; height: 86px; }
.conversion-ring span { color: #27343f; font-family: var(--font-display); font-size: 24px; }
.conversion-copy h3 { color: #34414d; font-size: 15px; }
.conversion-copy p { color: #718090; font-size: 12px; }
.conversion-legend { gap: 8px; }
.conversion-legend span { color: #5f6d7c; font-size: 12px; }
.event-stat-block { gap: 8px; }
.event-stat-block .metric-icon { width: 42px; height: 42px; }
.event-stat-block strong { color: #2d3944; font-size: 29px; }
.event-stat-block small { color: #718090; font-size: 12px; }

/* Settings and team access. */
.settings-layout { grid-template-columns: minmax(0,1fr) 270px; gap: 18px; }
.settings-main-stack, .settings-side-stack { gap: 18px; }
.settings-nav { gap: 5px; padding: 9px; border-radius: 14px; }
.settings-nav a { min-height: 42px; gap: 10px; padding: 10px 12px; color: #596777; border-radius: 9px; font-size: 13px; }
.settings-nav a:hover, .settings-nav a.active { color: #a94018; background: #fff0e8; }
.settings-info-card { padding: 19px; border-radius: 15px; }
.settings-info-card h3 { color: #2b3743; font-size: 15px; font-weight: 680; }
.settings-info-card p { color: #6e7b89; font-size: 13px; line-height: 1.5; }
.setting-line { gap: 14px; padding: 15px 0; border-top-color: #e8ebef; }
.setting-line strong { color: #374450; font-size: 13px; }
.setting-line small { color: #72808e; font-size: 12px; line-height: 1.45; }
.toggle { width: 42px; height: 24px; flex: 0 0 auto; }
.toggle-track::after { width: 18px; height: 18px; top: 3px; left: 3px; }
.toggle input:checked + .toggle-track::after { transform: translateX(18px); }
.team-table { min-width: 720px; }
.team-table th { padding: 13px 15px; color: #657383; background: #f7f8fa; font-size: 11px; }
.team-table td { padding: 14px 15px; color: #4f5c69; border-top-color: #e8ebef; font-size: 13px; }
.team-member { gap: 11px; }
.team-member .avatar { width: 36px; height: 36px; font-size: 12px; }
.team-member strong { color: #2b3743; font-size: 13px; }
.team-member small { color: #72808e; font-size: 12px; }
.role-badge { padding: 5px 9px; border-radius: 7px; font-size: 11px; }
.team-permission-form { gap: 7px; }
.team-permission-form .filter-select { height: 36px; min-height: 36px; font-size: 12px; }

/* Sign-in, recovery and reset screens share a new two-panel layout. */
.auth-page { min-height: 100vh; display: block; overflow: auto; padding: 0; background: #f3f5f7; }
.auth-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(360px, .88fr) minmax(0, 1.12fr); }
.auth-story { min-height: 100vh; display: flex; flex-direction: column; position: relative; overflow: hidden; padding: clamp(30px, 4vw, 58px); color: #f4f6f8; background: radial-gradient(circle at 12% 90%, rgba(255,90,31,.17), transparent 30%), radial-gradient(circle at 90% 10%, rgba(123,151,176,.12), transparent 26%), linear-gradient(150deg, #202c38 0%, #18232d 100%); }
.auth-story::after { content: ""; width: 410px; height: 410px; position: absolute; right: -230px; bottom: -250px; border: 1px solid rgba(255,255,255,.09); border-radius: 50%; box-shadow: 0 0 0 35px rgba(255,255,255,.025), 0 0 0 75px rgba(255,255,255,.02); pointer-events: none; }
.brand-auth { position: relative; z-index: 1; align-self: flex-start; margin: 0; }
.brand-auth .brand-mark { width: 42px; height: 42px; border-radius: 13px; }
.brand-auth .brand-copy strong { color: #fff; font-size: 19px; }
.brand-auth .brand-copy small { color: #a4afbb; }
.auth-story-content { width: min(100%, 520px); position: relative; z-index: 1; margin: auto 0; padding: 50px 0; }
.auth-story-kicker { display: inline-flex; align-items: center; gap: 9px; color: #c3ccd5; font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.auth-story-kicker i { width: 8px; height: 8px; border-radius: 50%; background: #ff8a5e; box-shadow: 0 0 0 5px rgba(255,90,31,.14); }
.auth-story-content h2 { margin: 22px 0 16px; color: #fff; font-family: var(--font-display); font-size: clamp(40px, 5vw, 65px); font-weight: 650; letter-spacing: -.055em; line-height: 1.02; }
.auth-story-content h2 span { color: #ff9c75; }
.auth-story-content > p { max-width: 410px; margin: 0; color: #b5c0cb; font-size: 16px; line-height: 1.65; }
.auth-story-points { display: grid; gap: 15px; margin-top: 32px; }
.auth-story-points div { display: flex; align-items: center; gap: 11px; color: #d6dde4; font-size: 14px; }
.auth-story-points .icon { color: #ff9a73; }
.auth-story-footer { display: flex; align-items: center; gap: 11px; position: relative; z-index: 1; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); color: #dfe5ea; font-size: 12px; font-weight: 600; }
.auth-story-footer small { color: #9daab6; font-size: 11px; font-weight: 400; }
.auth-story-stamp { width: 35px; height: 35px; display: grid; place-items: center; color: #ffd8c9; background: rgba(255,90,31,.16); border: 1px solid rgba(255,153,113,.2); border-radius: 11px; font-size: 11px; font-weight: 800; }
.auth-main { min-width: 0; display: grid; place-items: center; padding: clamp(28px, 5vw, 76px); }
.auth-wrap { width: min(100%, 470px); }
.auth-card { padding: clamp(27px, 3.5vw, 42px); border: 1px solid #e2e7ec; border-radius: 21px; background: #fff; box-shadow: 0 18px 50px rgba(31,43,56,.075); }
.auth-eyebrow { gap: 9px; color: #657383; font-size: 11px; letter-spacing: .13em; }
.auth-card h1 { margin: 14px 0 7px; color: #202b36; font-family: var(--font-display); font-size: 32px; font-weight: 700; letter-spacing: -.045em; line-height: 1.15; }
.auth-subtitle { margin: 0 0 24px; color: #667483; font-size: 15px; line-height: 1.5; }
.form-stack { gap: 10px; }
.input-icon { min-height: 46px; gap: 11px; padding: 0 13px; color: #748191; border-color: #dce2e8; border-radius: 11px; }
.input-icon input { height: 44px; color: #25313d; font-family: var(--font-ui); font-size: 14px; }
.link-subtle { color: #b94a20; font-size: 13px; }
.check-label { gap: 9px; margin: 8px 0; color: #5f6c7a; font-size: 13px; }
.check-box { width: 17px; height: 17px; border-color: #cfd7df; border-radius: 5px; }
.auth-assurance { gap: 8px; margin-top: 22px; padding-top: 18px; color: #758190; border-top-color: #e9edf0; font-size: 12px; }
.auth-foot { justify-content: space-between; gap: 10px; margin: 16px 2px 0; color: #758190; font-size: 11px; }
.auth-icon-box { width: 44px; height: 44px; margin-bottom: 15px; border-radius: 13px; }
.back-link { margin-bottom: 20px; color: #5f6d7b; font-size: 13px; }

/* Shared polish for status feedback, quick actions and minor controls. */
.heading-count { min-width: 30px; height: 25px; vertical-align: 4px; color: #596675; background: #edf0f3; border-radius: 8px; font-size: 13px; }
.action-tile:hover, .recent-item:hover, .upcoming-item:hover { background: #f8fafb; }
.status-form .select-control { min-height: 42px; height: 42px; font-size: 13px; }
.status-form .btn { min-height: 42px; height: 42px; }
.complete-details > summary { display: inline-flex; align-items: center; }
.upload-zone input:focus-visible + .upload-icon { outline: 3px solid rgba(255,90,31,.25); }
.text-muted { color: #758190; }
.text-brand { color: var(--brand); }
.btn:disabled { cursor: not-allowed; opacity: .5; transform: none; box-shadow: none; }
.pagination-links .disabled { color: #9aa4af; border-color: #e4e8ed; }

/* Responsive layout system: sidebar drawer, stacked pages and scroll-safe tables. */
@media (max-width: 1220px) {
    :root { --sidebar-width: 246px; }
    .page-main { padding-right: 30px; padding-left: 30px; }
    .topbar { padding-right: 30px; padding-left: 30px; }
    .metric-grid { gap: 12px; }
    .metric-card { padding-right: 16px; padding-left: 16px; }
    .quick-stat-row { gap: 12px; }
    .followup-row-card { grid-template-columns: 4px minmax(145px,1fr) minmax(130px,.9fr) auto; }
    .followup-owner { display: none; }
}
@media (max-width: 1050px) {
    .metric-grid, .report-kpi-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .dashboard-grid-primary, .dashboard-grid-secondary { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .quick-stat-row { flex-wrap: wrap; }
    .quick-stat-end { display: none; }
    .detail-grid { grid-template-columns: minmax(0,1.2fr) minmax(260px,.85fr); }
    .settings-layout { grid-template-columns: minmax(0,1fr) 235px; }
    .report-chart-grid { gap: 13px; }
}
@media (max-width: 820px) {
    .sidebar { width: 278px; flex-basis: 278px; position: fixed; left: 0; top: 0; z-index: 60; height: 100dvh; transform: translateX(-103%); transition: transform .24s cubic-bezier(.2,.7,.2,1); box-shadow: 12px 0 38px rgba(15,24,32,.24); }
    .sidebar.is-open { transform: translateX(0); }
    .sidebar-close, .mobile-menu { display: inline-grid; }
    .sidebar-scrim { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(18,27,36,.46); opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease; }
    .sidebar-scrim.is-visible { opacity: 1; visibility: visible; }
    .main-column { width: 100%; }
    .topbar { height: 66px; flex-basis: 66px; padding: 0 22px; }
    .page-main { padding: 28px 22px 38px; }
    .app-footer { padding-right: 22px; padding-left: 22px; }
    .global-search { width: min(260px, 34vw); }
    .detail-grid { grid-template-columns: 1fr; }
    .detail-side-stack { grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; }
    .settings-layout { grid-template-columns: minmax(0,1fr) 220px; }
    .followup-row-card { grid-template-columns: 4px minmax(140px,1fr) minmax(120px,.85fr) auto; }
    .followup-owner { display: none; }
    .calendar-grid { overflow-x: auto; }
}
@media (max-width: 620px) {
    .auth-layout { grid-template-columns: 1fr; }
    .auth-story { min-height: auto; padding: 22px 22px 24px; }
    .auth-story-content { width: 100%; margin: 28px 0 10px; padding: 0; }
    .auth-story-content h2 { margin: 13px 0 8px; font-size: clamp(30px, 9vw, 40px); line-height: 1.04; }
    .auth-story-content > p { font-size: 13px; }
    .auth-story-points { display: none; }
    .auth-story-footer { display: none; }
    .auth-main { padding: 22px 15px 28px; }
    .auth-card { padding: 25px 21px; border-radius: 18px; }
    .auth-card h1 { font-size: 28px; }
    .auth-foot { flex-direction: column; text-align: center; }
    .topbar { padding: 0 13px; }
    .topbar-crumb > span, .topbar-crumb > .icon { display: none; }
    .topbar-crumb strong { font-size: 13px; }
    .topbar-actions { gap: 6px; }
    .global-search { width: 38px; height: 38px; padding: 0; justify-content: center; background: transparent; border-color: transparent; }
    .global-search input, .global-search kbd { display: none; }
    .global-search:focus-within { width: 170px; justify-content: flex-start; padding: 0 9px; background: #fff; border-color: #dfe4e9; }
    .global-search:focus-within input { display: block; }
    .profile-trigger-copy, .profile-trigger > .icon, .topbar-divider { display: none; }
    .page-main { padding: 22px 14px 30px; }
    .app-footer { padding: 12px 14px 17px; font-size: 11px; }
    .page-heading { align-items: flex-start; flex-direction: column; gap: 13px; margin-bottom: 22px; }
    .page-heading h1 { font-size: 30px; }
    .page-description { font-size: 14px; }
    .heading-date { display: none; }
    .heading-actions { width: 100%; flex-wrap: wrap; }
    .heading-actions .btn { flex: 1 1 auto; }
    .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
    .metric-card { min-height: 137px; padding: 14px; }
    .metric-label { font-size: 12px; }
    .metric-value { font-size: 30px; }
    .metric-icon { width: 33px; height: 33px; }
    .metric-hint, .metric-caption { font-size: 11px; }
    .quick-stat-row { justify-content: space-between; gap: 10px 12px; padding: 12px; }
    .quick-stat { gap: 6px; font-size: 11px; }
    .quick-stat strong { font-size: 14px; }
    .quick-stat small, .quick-stat-separator { display: none; }
    .dashboard-grid-primary, .dashboard-grid-secondary { grid-template-columns: 1fr; gap: 13px; }
    .dashboard-grid-secondary { margin-top: 13px; }
    .card-heading { min-height: 66px; padding: 16px; }
    .card-heading h2 { font-size: 16px; }
    .card-heading p { font-size: 12px; }
    .pipeline-list { padding: 3px 16px 9px; }
    .pipeline-row { grid-template-columns: 112px minmax(40px,1fr) 31px; gap: 8px; font-size: 11px; }
    .pipeline-caption { margin-right: 16px; margin-left: 16px; }
    .chart-wrap { height: 160px; padding-right: 14px; padding-left: 11px; }
    .chart-footer { margin-right: 16px; margin-left: 16px; }
    .table-card { margin-right: 0; margin-left: 0; }
    .data-table { min-width: 820px; }
    .toolbar-card { padding: 12px; }
    .lead-toolbar { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
    .table-search { width: 100%; grid-column: 1 / -1; }
    .filter-select, .filter-date { width: 100%; min-width: 0; }
    .toolbar-spacer, .toolbar-divider { display: none; }
    .lead-toolbar > .btn { width: 100%; }
    .table-footer { align-items: flex-start; flex-direction: column; }
    .detail-profile { padding: 16px; }
    .detail-profile-head { align-items: flex-start; flex-wrap: wrap; }
    .detail-profile-meta { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .detail-actions { width: 100%; }
    .detail-actions .btn { flex: 1; padding: 0 10px; }
    .detail-side-stack { grid-template-columns: 1fr; }
    .detail-title-line h1 { font-size: 27px; }
    .form-card { padding: 17px; }
    .form-grid, .form-grid-three { grid-template-columns: 1fr; }
    .form-actions { flex-wrap: wrap; }
    .form-actions .btn { flex: 1; }
    .followup-tabs-row { align-items: stretch; flex-direction: column; }
    .tab-bar { width: 100%; overflow-x: auto; }
    .tab-link { padding: 7px 9px; }
    .followup-row-card { grid-template-columns: 4px minmax(0,1fr) auto; gap: 10px; padding-right: 10px; }
    .followup-when { grid-column: 2; }
    .followup-controls { grid-column: 3; grid-row: 1 / span 2; flex-direction: column; }
    .followup-result { display: none; }
    .calendar-toolbar { align-items: flex-start; flex-direction: column; }
    .calendar-controls { width: 100%; justify-content: space-between; flex-wrap: wrap; }
    .calendar-grid { grid-template-columns: repeat(7,minmax(78px,1fr)); }
    .calendar-day { min-height: 94px; padding: 6px; }
    .calendar-event { font-size: 10px; }
    .calendar-weekday { min-height: 32px; }
    .calendar-footer { align-items: flex-start; flex-direction: column; }
    .calendar-legend { flex-wrap: wrap; }
    .import-steps { justify-content: flex-start; overflow-x: auto; padding-bottom: 7px; }
    .import-step { gap: 6px; font-size: 11px; white-space: nowrap; }
    .import-step-number { width: 25px; height: 25px; flex: 0 0 auto; }
    .import-step-line { width: 20px; margin: 0 5px; flex: 0 0 20px; }
    .mapping-table { min-width: 580px; }
    .validation-summary { gap: 7px; }
    .validation-stat { padding: 11px; }
    .validation-stat strong { font-size: 20px; }
    .upload-zone { min-height: 205px; padding: 18px; }
    .upload-meta { flex-wrap: wrap; gap: 8px 12px; }
    .report-kpi-grid { gap: 9px; }
    .report-kpi { min-height: 110px; padding: 13px; }
    .report-kpi strong { font-size: 26px; }
    .report-chart-grid { grid-template-columns: 1fr; gap: 12px; }
    .report-bar-row { grid-template-columns: 92px minmax(35px,1fr) 30px; gap: 8px; }
    .conversion-panel { gap: 14px; padding-right: 15px; padding-left: 15px; }
    .conversion-ring { width: 94px; height: 94px; }
    .conversion-ring::before { width: 70px; height: 70px; }
    .settings-layout { grid-template-columns: 1fr; }
    .settings-layout > aside { order: -1; }
    .settings-nav { display: flex; overflow-x: auto; }
    .settings-nav a { flex: 0 0 auto; }
    .team-table-wrap { overflow-x: auto; }
    .team-table { min-width: 720px; }
    .complete-panel { position: fixed; top: 15vh; right: 50%; max-height: 70vh; overflow: auto; transform: translateX(50%); }
    .toast { top: 76px; right: 12px; left: 12px; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Brand wordmark treatment and a genuinely scrollable navigation rail. */
.brand-copy strong, .brand-auth .brand-copy strong, .brand-word { font-family: var(--font-brand); font-weight: 600; letter-spacing: -.035em; }
.brand-word { display: inline; }
.sidebar { min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior-y: contain; scrollbar-color: rgba(218,226,234,.36) transparent; scrollbar-width: thin; }
.sidebar::-webkit-scrollbar { width: 7px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(218,226,234,.28); border: 2px solid #1d2833; border-radius: 10px; }
.sidebar::-webkit-scrollbar-thumb:hover { background: rgba(218,226,234,.5); }
.sidebar-top, .workspace-switcher, .primary-nav { flex-shrink: 0; }
.sidebar-bottom { flex: 0 0 auto; }
@media (max-width: 820px) {
    .sidebar { min-height: 0; height: 100dvh; overflow-y: auto; overscroll-behavior-y: contain; }
}

/* Light grouped sidebar redesign — deliberately replaces the previous dark rail. */
.sidebar.sidebar-light { color: #2b3542; background: #fff; border-right: 1px solid #e9edf1; box-shadow: 5px 0 24px rgba(34, 46, 60, .035); }
.sidebar-light::-webkit-scrollbar-thumb { background: rgba(117, 129, 144, .26); border-color: #fff; }
.sidebar-light::-webkit-scrollbar-thumb:hover { background: rgba(117, 129, 144, .45); }
.sidebar-light .sidebar-top { padding: 0 4px 21px; border-bottom: 1px solid #eff1f4; }
.sidebar-light .brand-copy strong { color: #202a35; }
.sidebar-light .brand-copy small { color: #9ba4ae; }
.sidebar-light .workspace-switcher { min-height: 58px; margin: 17px 0 23px; padding: 9px 10px; background: linear-gradient(120deg, #fff9f6, #fff); border: 1px solid #f4e8e1; border-radius: 13px; }
.sidebar-light .workspace-avatar { color: #b74c21; background: #ffebe2; border-color: #ffe1d4; }
.sidebar-light .workspace-copy strong { color: #343f4c; font-weight: 650; }
.sidebar-light .workspace-copy small { color: #929daa; }
.sidebar-light .workspace-state { width: 7px; height: 7px; background: #38a982; box-shadow: 0 0 0 4px #e9f7f0; }
.sidebar-navigation { display: grid; align-content: start; gap: 22px; flex: 1 0 auto; padding-top: 20px; }
.nav-group { display: grid; gap: 3px; }
.sidebar-light .nav-label { margin: 0 0 7px; padding: 8px 11px; color: #a4acb6; font-size: 9px; font-weight: 700; letter-spacing: .16em; }
.sidebar-light .nav-link { min-height: 43px; gap: 11px; padding: 0 11px; color: #697584; border: 1px solid transparent; border-radius: 10px; font-size: 13px; font-weight: 500; }
.sidebar-light .nav-link .icon { color: #98a2af; }
.sidebar-light .nav-link:hover { color: #293542; background: #f6f7f9; }
.sidebar-light .nav-link.active { color: #dd4c1b; background: #fff2ec; border-color: #ffebe1; box-shadow: 0 2px 5px rgba(198, 86, 43, .035); font-weight: 650; }
.sidebar-light .nav-link.active::before { content: ""; width: 3px; position: absolute; top: 9px; bottom: 9px; left: -1px; border-radius: 0 4px 4px 0; background: #ff6a35; }
.sidebar-light .nav-link.active .icon { color: #e55725; }
.sidebar-light .nav-counter { margin-left: auto; color: #a4acb6; font-size: 11px; font-weight: 600; }
.nav-counter:empty { display: none; }
.sidebar-light .nav-badge { color: #ba552a; background: #fff0e8; font-size: 10px; }
.sidebar-bottom { margin-top: auto; flex: 0 0 auto; }
.sidebar-light .nav-settings { margin-bottom: 12px; }
.sidebar-light .sidebar-help { margin: 0 0 14px; padding: 14px 13px 13px; border: 1px solid #f0e8e2; background: linear-gradient(145deg, #fffaf7, #fff 78%); border-radius: 14px; }
.sidebar-light .help-orbit { width: 30px; height: 30px; margin-bottom: 10px; color: #ec6634; background: #fff0e8; border-radius: 10px; }
.sidebar-light .sidebar-help strong { color: #394553; font-size: 12px; font-weight: 650; }
.sidebar-light .sidebar-help p { margin: 5px 0 9px; color: #8792a0; font-size: 11px; line-height: 1.55; }
.sidebar-light .sidebar-help a { color: #d8582a; font-size: 11px; font-weight: 650; }
.sidebar-light .sidebar-user { min-height: 56px; gap: 9px; padding: 12px 2px 1px; border-top: 1px solid #edf0f3; }
.sidebar-light .sidebar-user-copy strong { color: #34404d; font-size: 12px; font-weight: 650; }
.sidebar-light .sidebar-user-copy small { color: #929daa; font-size: 10px; }
.sidebar-light .logout-button { color: #8b95a1; }
.sidebar-light .logout-button:hover { color: #343f4c; background: #f1f3f5; }

/* Leads: compact pipeline controls, inline edit/preview dialogs and async states. */
.leads-page-heading { align-items: center; }
.lead-workspace { position: relative; min-width: 0; }
.leads-filterbar { position: relative; z-index: 8; margin: 0 0 14px; padding: 9px 11px; border: 1px solid #e4e8ed; border-radius: 15px; background: #fff; box-shadow: 0 4px 15px rgba(30, 42, 56, .035); }
.leads-filterbar-main { min-height: 44px; display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
.lead-search-control { height: 42px; min-width: 175px; flex: 1 1 285px; display: flex; align-items: center; gap: 9px; padding: 0 11px; color: #97a1ad; border: 1px solid #e5e9ee; border-radius: 10px; background: #fafbfc; transition: border-color .16s ease, box-shadow .16s ease, background .16s ease; }
.lead-search-control:focus-within { background: #fff; border-color: #f3b49a; box-shadow: 0 0 0 3px rgba(255, 90, 31, .065); }
.lead-search-control > .icon { color: #8e99a7; }
.lead-search-control input { width: 100%; min-width: 0; border: 0; outline: 0; padding: 0; color: #33404d; background: transparent; font-size: 12px; }
.lead-search-control input::placeholder { color: #a2abb6; }
.lead-search-spinner { width: 15px; height: 15px; flex: 0 0 15px; border: 2px solid #f6d6c9; border-right-color: var(--brand); border-radius: 50%; animation: crm-spin .68s linear infinite; }
.lead-search-spinner[hidden] { display: none; }
.lead-inline-filter { height: 42px; min-width: 0; width: 142px; flex: 0 0 auto; padding: 0 30px 0 11px; color: #566372; border: 1px solid #e5e9ee; border-radius: 10px; background-color: #fff; font-size: 12px; font-weight: 550; }
.lead-inline-filter:focus, .filter-select:focus, .filter-date:focus { outline: 0; border-color: #f3b49a; box-shadow: 0 0 0 3px rgba(255, 90, 31, .06); }
.lead-more-filters { flex: 0 0 auto; gap: 6px; white-space: nowrap; }
.filter-count { min-width: 18px; height: 18px; display: inline-grid; place-items: center; padding: 0 4px; color: #fff; background: #e65a29; border-radius: 99px; font-size: 10px; font-weight: 700; }
.filter-count[hidden] { display: none; }
.lead-reset-filters { min-width: 42px; flex: 0 0 auto; justify-content: center; padding-right: 8px; padding-left: 8px; }
.lead-apply-filters { flex: 0 0 auto; gap: 6px; white-space: nowrap; }
.lead-live-count { margin-left: auto; color: #85909d; font-size: 11px; font-weight: 550; white-space: nowrap; }
.lead-filter-popover { position: absolute; top: calc(100% + 10px); right: 12px; z-index: 30; width: min(650px, calc(100vw - 36px)); padding: 18px; border: 1px solid #e2e7ec; border-radius: 16px; background: #fff; box-shadow: 0 18px 50px rgba(25, 37, 51, .16); animation: lead-pop-in .16s ease both; }
.lead-filter-popover[hidden] { display: none !important; }
.lead-filter-popover-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.lead-filter-popover-heading > div { display: grid; gap: 3px; }
.lead-filter-popover-heading strong { color: #2d3946; font-size: 14px; font-weight: 650; }
.lead-filter-popover-heading small { color: #8994a1; font-size: 11px; }
.lead-advanced-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.lead-advanced-grid .form-field { gap: 6px; }
.lead-advanced-grid .field-label { color: #697584; font-size: 11px; font-weight: 600; }
.lead-advanced-grid .filter-select, .lead-advanced-grid .filter-date { width: 100%; min-width: 0; height: 40px; min-height: 40px; color: #465362; border-color: #e3e7ec; border-radius: 9px; background-color: #fff; font-size: 12px; }
.bulk-toolbar { min-height: 44px; display: flex; align-items: center; gap: 9px; margin: -2px 0 12px; padding: 8px 11px; border: 1px solid #f2dfd7; border-radius: 11px; color: #75808e; background: #fff8f4; font-size: 12px; }
.bulk-toolbar[hidden] { display: none !important; }
.bulk-toolbar:not([hidden]) { display: flex; }
.bulk-toolbar strong { color: #c74f22; font-size: 12px; font-weight: 700; }
.bulk-toolbar .toolbar-spacer { flex: 1; }
.lead-table-card { border-color: #e3e7ec; border-radius: 16px; }
.lead-table-card .data-table { min-width: 1120px; }
.lead-table-card .data-table th { white-space: nowrap; }
.lead-table-card .lead-cell { min-width: 175px; }
.lead-table-card .gym-cell { min-width: 135px; }
.assignee-cell { display: inline-flex; align-items: center; gap: 7px; max-width: 142px; color: #576474; white-space: nowrap; }
.assignee-cell .avatar { width: 26px; height: 26px; font-size: 9px; }
.assignee-cell > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.phone-link { color: #526170; white-space: nowrap; }
.phone-link:hover { color: var(--brand); }
.row-actions { gap: 2px; }
.inline-row-form { display: inline-flex; margin: 0; }
.row-action { flex: 0 0 auto; }
.row-action.danger { color: #ac7880; }
.lead-table-card .table-footer { min-height: 60px; }
.lead-table-card .table-footer > span { white-space: nowrap; }
.heading-count[data-total-leads] { min-width: 30px; }

/* Lead create/edit/preview dialog */
.lead-dialog-backdrop, .confirm-backdrop { position: fixed; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(22, 31, 42, .48); backdrop-filter: blur(4px); }
.lead-dialog-backdrop { z-index: 110; }
.lead-dialog-backdrop[hidden], .confirm-backdrop[hidden] { display: none !important; }
.lead-dialog { width: min(100%, 820px); max-height: min(90vh, 920px); overflow: auto; position: relative; border: 1px solid rgba(255,255,255,.78); border-radius: 22px; background: #fff; box-shadow: 0 28px 90px rgba(14, 23, 34, .27); animation: lead-dialog-in .2s cubic-bezier(.2,.7,.2,1) both; }
.lead-dialog-header { display: grid; grid-template-columns: 42px minmax(0,1fr) 36px; align-items: start; gap: 13px; padding: 22px 25px 19px; border-bottom: 1px solid #edf0f3; }
.lead-dialog-heading-mark { width: 42px; height: 42px; display: grid; place-items: center; color: #df5b2b; background: #fff0e8; border: 1px solid #ffe3d5; border-radius: 13px; }
.lead-dialog-header .eyebrow { margin: 0 0 4px; color: #8994a1; font-size: 9px; }
.lead-dialog-header h2 { margin: 0; color: #222e39; font-size: 21px; font-weight: 650; letter-spacing: -.035em; line-height: 1.3; }
.lead-dialog-header p { margin: 4px 0 0; color: #7e8996; font-size: 12px; line-height: 1.45; }
.lead-dialog-header > .icon-button { width: 34px; height: 34px; border: 1px solid #eceff2; background: #fff; }
.lead-modal-form { padding: 3px 25px 23px; }
.lead-modal-form .form-section + .form-section { margin-top: 19px; padding-top: 18px; }
.lead-modal-form .form-section-title { margin-bottom: 12px; font-size: 14px; }
.lead-modal-form .form-grid { gap: 13px 15px; }
.lead-modal-form .form-control, .lead-modal-form .select-control { height: 42px; min-height: 42px; font-size: 12px; }
.lead-modal-form .textarea-control { min-height: 86px; font-size: 12px; }
.lead-modal-form .field-label { font-size: 11px; }
.lead-modal-form .field-hint { font-size: 10px; }
.lead-modal-form .form-actions { margin-top: 18px; padding-top: 15px; }
.field-optional { color: #9ba4af; font-size: 10px; font-weight: 450; }
.lead-form-alert { margin: 15px 0 0; padding: 10px 12px; color: #a64444; border: 1px solid #f3d5d2; border-radius: 9px; background: #fff4f2; font-size: 12px; }
.lead-form-alert[hidden] { display: none !important; }
[aria-invalid="true"] { border-color: #da6464 !important; box-shadow: 0 0 0 3px rgba(200, 79, 80, .08) !important; }
.lead-preview-body { padding: 21px 25px 8px; }
.lead-preview-hero { display: flex; align-items: center; gap: 13px; padding: 16px; border: 1px solid #f0e8e2; border-radius: 15px; background: linear-gradient(115deg, #fffaf7, #fff 82%); }
.lead-preview-hero > .avatar { width: 46px; height: 46px; font-size: 15px; }
.lead-preview-title { min-width: 0; flex: 1; }
.lead-preview-title h3 { margin: 0; overflow: hidden; color: #293541; font-size: 17px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.lead-preview-title p { margin: 3px 0 0; overflow: hidden; color: #7c8794; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.lead-preview-hero > .status-pill { flex: 0 0 auto; }
.lead-preview-facts { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0; margin: 17px 0 0; border: 1px solid #edf0f3; border-radius: 13px; background: #fff; }
.lead-preview-facts > div { min-width: 0; display: grid; align-content: center; gap: 5px; min-height: 68px; padding: 11px 14px; border-bottom: 1px solid #edf0f3; }
.lead-preview-facts > div:nth-child(3n + 2), .lead-preview-facts > div:nth-child(3n + 3) { border-left: 1px solid #edf0f3; }
.lead-preview-facts > div:nth-last-child(-n + 3) { border-bottom: 0; }
.lead-preview-facts > div > span { color: #929daa; font-size: 10px; font-weight: 550; }
.lead-preview-facts strong, .lead-preview-facts a { max-width: 100%; overflow: hidden; color: #465361; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.lead-preview-facts a:hover { color: var(--brand); }
.lead-preview-notes { margin: 14px 0 0; padding: 13px 15px; border: 1px solid #edf0f3; border-radius: 12px; background: #fbfcfd; }
.lead-preview-notes > span { color: #929daa; font-size: 10px; font-weight: 600; }
.lead-preview-notes p { margin: 5px 0 0; color: #52606e; font-size: 12px; line-height: 1.6; white-space: pre-line; }
.lead-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 18px 25px 22px; }
.lead-dialog-actions .btn { min-height: 39px; font-size: 12px; }
.lead-modal-loading { min-height: 260px; display: grid; place-content: center; justify-items: center; gap: 13px; color: #798592; font-size: 12px; }
.lead-spinner-large { width: 28px; height: 28px; border: 3px solid #ffe0d1; border-top-color: var(--brand); border-radius: 50%; animation: crm-spin .72s linear infinite; }
.lead-modal-error { min-height: 250px; display: flex; align-items: center; flex-direction: column; justify-content: center; gap: 8px; padding: 24px; text-align: center; }
.lead-modal-error .confirm-dialog-icon { margin-bottom: 2px; }
.lead-modal-error strong { color: #303c49; font-size: 16px; }
.lead-modal-error p { margin: 0 0 7px; color: #788493; font-size: 12px; }
.lead-dialog-open, .confirmation-open { overflow: hidden; }

/* Application-wide, keyboard-accessible confirmation modal */
.confirm-backdrop { z-index: 130; background: rgba(19, 29, 40, .46); }
.confirm-dialog { width: min(100%, 470px); display: grid; grid-template-columns: 48px minmax(0,1fr); align-items: start; gap: 15px; padding: 23px; border: 1px solid rgba(255,255,255,.8); border-radius: 19px; background: #fff; box-shadow: 0 24px 75px rgba(15, 24, 35, .25); animation: lead-dialog-in .18s cubic-bezier(.2,.7,.2,1) both; }
.confirm-dialog-icon { width: 44px; height: 44px; display: grid; place-items: center; color: #c34e50; background: #fff0ef; border: 1px solid #f9dedc; border-radius: 13px; }
.confirm-dialog-copy { padding-top: 1px; }
.confirm-dialog-copy .eyebrow { margin-bottom: 4px; font-size: 9px; }
.confirm-dialog-copy h2 { margin: 0; color: #2c3743; font-size: 17px; font-weight: 650; line-height: 1.35; }
.confirm-dialog-copy p { margin: 6px 0 0; color: #778391; font-size: 12px; line-height: 1.55; }
.confirm-dialog-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; margin-top: 5px; padding-top: 15px; border-top: 1px solid #eff1f3; }
.confirm-dialog-actions .btn { min-height: 38px; font-size: 12px; }
.ajax-toast { max-width: min(450px, calc(100vw - 30px)); min-height: 44px; display: flex; align-items: center; position: fixed; top: 84px; right: 24px; z-index: 150; padding: 10px 15px; border: 1px solid #d9efe4; border-radius: 12px; color: #277557; background: #f5fcf8; box-shadow: 0 14px 35px rgba(25, 37, 51, .15); font-size: 12px; font-weight: 550; animation: toast-in .22s ease both; }
.ajax-toast-error { color: #a34547; border-color: #f1d8d6; background: #fff7f6; }
.ajax-toast[hidden] { display: none !important; }
.ajax-toast.is-leaving { opacity: 0; transform: translateY(-5px); transition: opacity .18s ease, transform .18s ease; }
@keyframes lead-dialog-in { from { opacity: 0; transform: translateY(10px) scale(.99); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes lead-pop-in { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1120px) {
    .lead-live-count { display: none; }
    .leads-filterbar-main { gap: 7px; }
    .lead-search-control { flex-basis: 205px; }
    .lead-inline-filter { width: 128px; }
}
@media (max-width: 900px) {
    .leads-filterbar { padding: 8px 9px; }
    .leads-filterbar-main { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #cbd3dc transparent; }
    .lead-search-control { flex: 0 0 205px; }
    .lead-inline-filter { flex: 0 0 126px; }
    .lead-more-filters { min-width: 112px; }
}
@media (max-width: 700px) {
    .leads-page-heading { align-items: flex-start; }
    .lead-filter-popover { right: 0; width: min(620px, calc(100vw - 26px)); padding: 15px; }
    .lead-advanced-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 11px; }
    .lead-dialog-backdrop, .confirm-backdrop { padding: 10px; }
    .lead-dialog { max-height: 94dvh; border-radius: 18px; }
    .lead-dialog-header { grid-template-columns: 38px minmax(0,1fr) 32px; gap: 10px; padding: 17px 16px 14px; }
    .lead-dialog-heading-mark { width: 38px; height: 38px; }
    .lead-dialog-header h2 { font-size: 18px; }
    .lead-modal-form { padding: 1px 16px 18px; }
    .lead-modal-form .form-grid, .lead-modal-form .form-grid-three { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .lead-modal-form .form-section + .form-section { margin-top: 16px; padding-top: 15px; }
    .lead-preview-body { padding: 16px 16px 5px; }
    .lead-preview-facts { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .lead-preview-facts > div:nth-child(3n + 2), .lead-preview-facts > div:nth-child(3n + 3) { border-left: 0; }
    .lead-preview-facts > div:nth-child(2n) { border-left: 1px solid #edf0f3; }
    .lead-preview-facts > div:nth-last-child(-n + 3) { border-bottom: 1px solid #edf0f3; }
    .lead-preview-facts > div:nth-last-child(-n + 2) { border-bottom: 0; }
    .lead-dialog-actions { flex-wrap: wrap; padding: 15px 16px 18px; }
    .lead-dialog-actions .btn { flex: 1 1 auto; justify-content: center; }
    .ajax-toast { top: 72px; right: 12px; }
}
@media (max-width: 520px) {
    .leads-filterbar { margin-bottom: 11px; }
    .leads-filterbar-main { gap: 6px; }
    .lead-search-control { width: 56vw; min-width: 165px; flex-basis: 56vw; position: sticky; left: 0; z-index: 2; background: #fafbfc; box-shadow: 5px 0 7px -6px rgba(35,45,58,.35); }
    .lead-inline-filter { width: 120px; flex-basis: 120px; }
    .lead-more-filters { min-width: 108px; padding-right: 9px; padding-left: 9px; }
    .lead-reset-filters { min-width: 38px; }
    .lead-apply-filters { min-width: 68px; }
    .lead-advanced-grid { grid-template-columns: 1fr; }
    .bulk-toolbar { flex-wrap: wrap; gap: 6px; }
    .bulk-toolbar > span:not(.toolbar-spacer) { display: none; }
    .bulk-toolbar .toolbar-spacer { flex: 1; }
    .bulk-toolbar .btn { min-height: 33px; padding: 0 9px; }
    .lead-table-card { margin-right: -1px; margin-left: -1px; }
    .lead-table-card .table-footer { align-items: flex-start; flex-direction: column; gap: 8px; }
    .lead-table-card .table-footer > span { white-space: normal; }
    .lead-modal-form .form-grid, .lead-modal-form .form-grid-three { grid-template-columns: 1fr; }
    .lead-modal-form .form-actions { flex-direction: row; }
    .lead-preview-hero { align-items: flex-start; flex-wrap: wrap; padding: 12px; }
    .lead-preview-title { flex-basis: calc(100% - 62px); }
    .lead-preview-hero > .status-pill { margin-left: 58px; }
    .lead-preview-facts > div { min-height: 62px; padding: 9px 10px; }
    .lead-dialog-actions .btn { flex-basis: 100%; }
    .confirm-dialog { grid-template-columns: 40px minmax(0,1fr); gap: 11px; padding: 18px; }
    .confirm-dialog-icon { width: 40px; height: 40px; }
    .confirm-dialog-actions .btn { flex: 1; }
}
.delete-success-state { min-height: 360px; display: flex; align-items: center; flex-direction: column; justify-content: center; gap: 10px; padding: 36px 24px; text-align: center; border-radius: 18px; }
.delete-success-state .confirm-dialog-icon { color: #23845d; border-color: #d8eee3; background: #eef9f3; }
.delete-success-state h1 { margin: 2px 0 0; color: #2e3b47; font-size: 24px; font-weight: 650; }
.delete-success-state p { margin: 0 0 9px; color: #798593; font-size: 13px; }

/* Wide, two-column lead form for a landscape workflow with minimal vertical scroll. */
.lead-dialog { max-height: min(92dvh, 920px); overflow: auto; }
.lead-dialog.lead-dialog-form-mode { width: min(1180px, calc(100vw - 52px)); }
.lead-dialog-header { grid-template-columns: 42px minmax(0,1fr) 36px; padding: 18px 29px 15px; }
.lead-dialog-heading-mark { width: 40px; height: 40px; }
.lead-dialog-header h2 { font-size: 20px; }
.lead-modal-form { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(0,.92fr); align-items: start; gap: 14px 20px; padding: 15px 28px 21px; }
.lead-modal-form .lead-form-alert { grid-column: 1 / -1; margin: 0; }
.lead-modal-form .form-section { min-width: 0; margin: 0; padding: 14px; border: 1px solid #edf0f3; border-radius: 13px; background: #fbfcfd; }
.lead-modal-form .form-section + .form-section { margin: 0; padding: 14px; border: 1px solid #edf0f3; }
.lead-modal-form .lead-form-section-contact { grid-column: 1; }
.lead-modal-form .lead-form-section-qualification { grid-column: 2; }
.lead-modal-form .lead-form-section-notes { grid-column: 1 / -1; }
.lead-modal-form .form-section-title { margin-bottom: 11px; color: #35414d; font-size: 13px; }
.lead-modal-form .form-grid, .lead-modal-form .form-grid-three { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px 12px; }
.lead-modal-form .form-field { gap: 4px; }
.lead-modal-form .field-label { font-size: 11px; }
.lead-modal-form .form-control, .lead-modal-form .select-control { height: 40px; min-height: 40px; padding: 8px 10px; font-size: 12px; }
.lead-modal-form .select-control { padding-right: 27px; background-position: right 8px center; }
.lead-modal-form .textarea-control { height: 68px; min-height: 68px; padding: 8px 10px; resize: vertical; font-size: 12px; }
.lead-modal-form .field-hint { display: none; }
.lead-modal-form .field-error { font-size: 10px; }
.lead-modal-form .form-actions { grid-column: 1 / -1; margin: 0; padding-top: 12px; border-top: 1px solid #edf0f3; }
.lead-modal-form .form-actions .btn { min-height: 38px; font-size: 12px; }

/* Minimal, polished authentication screens without the illustrated/story panel. */
.auth-minimal-page { min-height: 100svh; display: grid; place-items: center; overflow-y: auto; padding: 36px 18px; background: #f5f6f7; }
.auth-minimal-shell { width: min(100%, 448px); }
.auth-minimal-brand { display: flex; justify-content: center; margin: 0 0 22px; }
.auth-minimal-page .brand-auth { margin: 0; }
.auth-minimal-page .brand-auth .brand-copy strong { color: #202a35; }
.auth-minimal-page .brand-auth .brand-copy small { color: #8a95a2; }
.auth-minimal-page .auth-wrap { width: 100%; }
.auth-minimal-page .auth-card { padding: 35px; border: 1px solid #e2e7ec; border-radius: 17px; background: #fff; box-shadow: 0 12px 36px rgba(34,45,58,.065); }
.auth-minimal-page .auth-card h1 { margin-top: 11px; font-size: 29px; font-weight: 650; letter-spacing: -.04em; }
.auth-minimal-page .auth-subtitle { margin-bottom: 23px; font-size: 13px; }
.auth-minimal-page .auth-eyebrow { font-size: 10px; letter-spacing: .14em; }
.auth-minimal-page .input-icon { min-height: 45px; border-radius: 9px; }
.auth-minimal-page .input-icon input { height: 43px; font-size: 13px; }
.auth-minimal-page .btn-block { width: 100%; margin-top: 3px; }
.auth-minimal-page .auth-assurance { justify-content: flex-start; margin-top: 18px; padding-top: 14px; font-size: 11px; }
.auth-minimal-page .auth-foot { justify-content: center; gap: 7px; flex-wrap: wrap; margin-top: 16px; text-align: center; font-size: 10px; }

@media (max-width: 760px) {
    .lead-dialog { width: min(100%, 700px); max-height: calc(100dvh - 20px); }
    .lead-modal-form { grid-template-columns: 1fr; gap: 10px; padding: 12px 16px 17px; }
    .lead-modal-form .lead-form-section-contact,
    .lead-modal-form .lead-form-section-qualification,
    .lead-modal-form .lead-form-section-notes,
    .lead-modal-form .form-actions,
    .lead-modal-form .lead-form-alert { grid-column: 1; }
    .lead-modal-form .form-section { padding: 12px; }
    .lead-modal-form .form-section + .form-section { padding: 12px; }
}
@media (max-width: 520px) {
    .lead-dialog { width: calc(100vw - 14px); max-height: calc(100dvh - 14px); }
    .lead-dialog-header { padding: 14px 13px 12px; }
    .lead-modal-form { padding: 10px 12px 14px; }
    .lead-modal-form .form-grid, .lead-modal-form .form-grid-three { grid-template-columns: 1fr; }
    .auth-minimal-page { padding: 25px 14px; }
    .auth-minimal-brand { margin-bottom: 18px; }
    .auth-minimal-page .auth-card { padding: 26px 21px; }
}

/* Team panel: staff overview, live presence and responsive access controls. */
.staff-overview-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; margin: 0 0 16px; }
.staff-overview-card { min-width: 0; min-height: 100px; display: flex; align-items: center; gap: 13px; padding: 17px; border: 1px solid #e7ebef; border-radius: 14px; background: #fff; box-shadow: 0 3px 12px rgba(26,38,50,.035); }
.staff-overview-icon { width: 38px; height: 38px; display: grid; flex: 0 0 auto; place-items: center; color: #d75a2c; border-radius: 11px; background: #fff0e8; }
.staff-overview-icon-green { color: #258463; background: #eaf7f1; }
.staff-overview-icon-online { background: #eaf7f1; }
.staff-overview-card > div { min-width: 0; display: grid; gap: 2px; }
.staff-overview-card small { color: #7c8895; font-size: 11px; font-weight: 600; }
.staff-overview-card strong { color: #263541; font-family: var(--font-display); font-size: 25px; font-weight: 720; line-height: 1.15; }
.staff-overview-card span:not(.staff-overview-icon) { overflow: hidden; color: #8d98a3; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.staff-table-heading { min-height: 74px; }
.staff-table-heading .status-pill { flex: 0 0 auto; }
.team-table-wrap { overflow-x: auto; }
.staff-table { min-width: 1040px; }
.staff-table th { white-space: nowrap; }
.staff-table th:first-child { min-width: 220px; }
.staff-table th:nth-child(3) { min-width: 105px; }
.staff-table th:nth-child(4), .staff-table th:nth-child(5) { min-width: 145px; }
.staff-table th:last-child { min-width: 310px; }
.staff-table td { vertical-align: middle; }
.staff-lead-count { min-width: 34px; display: inline-flex; justify-content: center; padding: 5px 8px; color: #586674; border-radius: 7px; background: #f3f5f7; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.presence-state { display: inline-flex; align-items: center; gap: 7px; color: #677584; font-size: 12px; font-weight: 650; white-space: nowrap; }
.presence-dot { width: 8px; height: 8px; display: inline-block; flex: 0 0 auto; border-radius: 50%; background: #aab3bd; }
.presence-online { color: #217b5c; }
.presence-online .presence-dot, .staff-overview-icon-online .presence-dot { background: #2a9d72; box-shadow: 0 0 0 3px rgba(42,157,114,.12); }
.presence-offline .presence-dot { background: #a9b2bc; }
.presence-unknown { color: #84909d; }
.presence-unknown .presence-dot { background: #d1d6dc; }
.staff-presence-detail { display: block; margin: 4px 0 0 15px; color: #98a2ad; font-size: 10px; white-space: nowrap; }
.staff-login-date { display: block; color: #566473; font-size: 12px; font-weight: 650; white-space: nowrap; }
.staff-login-never { color: #929eaa; font-weight: 550; }
.staff-login-date + .staff-presence-detail { margin-left: 0; }
.staff-access-note { display: flex; align-items: flex-start; gap: 9px; margin: 0 18px 17px; padding: 11px 12px; color: #6d7885; border: 1px solid #edf0f2; border-radius: 9px; background: #fafbfc; font-size: 11px; line-height: 1.5; }
.staff-access-note > .icon { flex: 0 0 auto; margin-top: 1px; color: #d15a2c; }
.staff-access-note strong { color: #465462; }
.staff-add-card { align-self: start; }
.staff-add-card form { display: grid; gap: 15px; }
.staff-add-card .form-actions { margin-top: 3px; }
.staff-add-heading { align-items: flex-start; justify-content: flex-start; gap: 11px; min-height: auto; padding: 0 0 18px; }
.staff-add-icon { width: 34px; height: 34px; display: grid; flex: 0 0 auto; place-items: center; color: #c95021; border-radius: 10px; background: #fff0e8; }
.staff-add-heading h2 { margin: 0; color: #2b3743; font-size: 16px; }
.staff-add-heading p { margin: 3px 0 0; color: #7d8995; font-size: 12px; }
.staff-add-card .field-hint { color: #84909c; line-height: 1.45; }

@media (max-width: 820px) {
    .staff-overview-grid { gap: 9px; }
    .staff-overview-card { min-height: 92px; gap: 9px; padding: 12px; }
    .staff-overview-card strong { font-size: 22px; }
    .staff-table { min-width: 1040px; }
}
@media (max-width: 620px) {
    .staff-overview-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .staff-overview-card { min-height: 88px; }
    .staff-overview-card:last-child { grid-column: 1 / -1; }
    .staff-access-note { margin-right: 12px; margin-left: 12px; }
    .staff-add-card { padding: 20px; }
}
@media (max-width: 390px) {
    .staff-overview-grid { grid-template-columns: 1fr; }
    .staff-overview-card:last-child { grid-column: auto; }
}

/* Team management modals and asynchronous row actions. */
.staff-team-card .card-heading { align-items: center; }
.staff-table-controls { display: flex; align-items: center; gap: 9px; }
.staff-table-controls .btn { min-height: 38px; }
.staff-row-actions { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.staff-row-actions .btn { min-height: 34px; }
.staff-row-actions .icon { flex: 0 0 auto; }
.staff-remove-btn { color: #a9484b; border-color: #f0dedd; background: #fff; }
.staff-remove-btn:hover { color: #9b3538; border-color: #ebc7c5; background: #fff6f5; }
.team-modal-backdrop { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; overflow-y: auto; padding: 22px; background: rgba(22,31,42,.5); backdrop-filter: blur(5px); }
.team-modal-backdrop[hidden] { display: none !important; }
.team-modal { width: min(100%, 650px); max-height: min(92dvh, 850px); overflow-y: auto; border: 1px solid rgba(255,255,255,.82); border-radius: 21px; background: #fff; box-shadow: 0 28px 85px rgba(14,23,34,.27); animation: lead-dialog-in .2s cubic-bezier(.2,.7,.2,1) both; }
.team-modal-header { display: grid; grid-template-columns: 42px minmax(0,1fr) 34px; align-items: start; gap: 13px; padding: 22px 24px 18px; border-bottom: 1px solid #edf0f3; }
.team-modal-mark { width: 42px; height: 42px; display: grid; place-items: center; color: #d75a2c; border: 1px solid #ffe3d5; border-radius: 13px; background: #fff0e8; }
.team-modal-header .eyebrow { margin: 1px 0 4px; color: #8a95a1; font-size: 9px; letter-spacing: .12em; }
.team-modal-header h2 { margin: 0; color: #25313d; font-size: 20px; font-weight: 660; letter-spacing: -.03em; }
.team-modal-header p { margin: 4px 0 0; color: #788593; font-size: 12px; line-height: 1.45; }
.team-modal-header .icon-button { width: 32px; height: 32px; color: #84909d; border: 1px solid #edf0f3; border-radius: 9px; }
.team-modal-form { padding: 20px 24px 22px; }
.team-form-error-summary { margin: 0 0 15px; }
.team-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px 13px; }
.team-form-grid .form-field { min-width: 0; }
.team-form-grid .select-control, .team-form-grid .form-control { min-height: 43px; }
.team-password-fields { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.team-modal-edit-only[hidden], .team-password-fields[hidden] { display: none !important; }
.team-modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 21px; padding-top: 16px; border-top: 1px solid #edf0f3; }
.team-modal-actions .btn { min-height: 40px; }
.team-modal-open { overflow: hidden; }

@media (max-width: 700px) {
    .staff-table-heading { align-items: flex-start; flex-direction: column; }
    .staff-table-controls { width: 100%; justify-content: space-between; }
    .team-modal-backdrop { padding: 12px; }
    .team-modal { max-height: calc(100dvh - 24px); border-radius: 17px; }
    .team-modal-header { grid-template-columns: 38px minmax(0,1fr) 32px; gap: 10px; padding: 17px 16px 14px; }
    .team-modal-mark { width: 38px; height: 38px; }
    .team-modal-header h2 { font-size: 18px; }
    .team-modal-form { padding: 16px; }
}
@media (max-width: 520px) {
    .team-form-grid, .team-password-fields { grid-template-columns: 1fr; }
    .team-password-fields { grid-column: 1; }
    .team-modal-actions { flex-direction: column-reverse; }
    .team-modal-actions .btn { width: 100%; justify-content: center; }
    .staff-row-actions { align-items: flex-start; flex-direction: column; }
}

/* Google Places discovery: transient results, durable Place IDs and CRM-owned work state. */
.google-places-settings-card { display: grid; gap: 18px; }
.google-settings-heading, .google-usage-heading { align-items: flex-start; }
.google-key-status { padding: 11px 13px; color: #526271; border: 1px solid #e7edf1; border-radius: 11px; background: #f8fafb; font-size: 12px; line-height: 1.55; }
.google-key-form { display: grid; gap: 12px; }
.google-key-input-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 9px; }
.google-key-input-row .btn { min-height: 42px; }
.google-key-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.google-key-actions .google-test-note { color: #7b8996; font-size: 10px; line-height: 1.4; }
.google-disconnect-btn { color: #a4484d; }
.google-disconnect-btn[hidden] { display: none !important; }
.google-cloud-help-link { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; color: #596b79; font-size: 12px; font-weight: 550; text-decoration: none; }
.google-cloud-help-link:hover { color: #d34d1b; }
.google-usage-panel { padding: 17px; border: 1px solid #e9edf0; border-radius: 14px; background: #fbfcfd; }
.google-usage-heading { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 15px; }
.google-usage-heading h3 { margin: 0; color: #293744; font-size: 14px; }
.google-usage-heading p { margin: 4px 0 0; color: #778592; font-size: 11px; }
.google-usage-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.google-usage-item { min-width: 0; padding: 12px; border: 1px solid #edf0f2; border-radius: 11px; background: #fff; }
.google-usage-item-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; color: #536271; font-size: 11px; }
.google-usage-item-heading strong { color: #27333e; font-size: 12px; white-space: nowrap; }
.google-usage-item-heading small { color: #8a95a0; font-size: 10px; font-weight: 500; }
.google-usage-track { height: 6px; overflow: hidden; margin: 11px 0 8px; border-radius: 10px; background: #edf1f3; }
.google-usage-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#ff8c45,#ff5a1f); transition: width .25s ease; }
.google-usage-item > small { color: #8a95a0; font-size: 10px; line-height: 1.4; }
.google-usage-warning { display: flex; align-items: flex-start; gap: 8px; margin: 14px 0 0; color: #79623e; font-size: 11px; line-height: 1.55; }
.google-usage-warning .icon { flex: 0 0 auto; margin-top: 1px; color: #cc862b; }

.place-page-heading { margin-bottom: 18px; }
.place-summary-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; margin-bottom: 17px; }
.place-summary-card { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 16px; border: 1px solid #e9edf0; border-radius: 15px; background: #fff; box-shadow: 0 3px 14px rgba(28,43,55,.035); }
.place-summary-icon { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; color: #d75a2c; border: 1px solid #ffe3d5; border-radius: 12px; background: #fff0e8; }
.place-summary-icon-active { color: #178565; border-color: #d8f1e6; background: #edfaf4; }
.place-summary-icon-converted { color: #426cb0; border-color: #dae7fb; background: #eff5ff; }
.place-summary-card small { display: block; margin-bottom: 3px; color: #7c8996; font-size: 11px; }
.place-summary-card strong { color: #293744; font-size: 20px; font-weight: 680; letter-spacing: -.03em; }
.place-search-card, .place-results-card, .place-prospect-queue { margin-bottom: 16px; padding: 20px; }
.place-search-heading, .place-results-heading, .place-queue-heading { align-items: center; padding: 0 0 15px; }
.place-search-heading h2, .place-results-heading h2, .place-queue-heading h2 { margin: 0; color: #293744; font-size: 17px; font-weight: 650; }
.place-search-heading p, .place-results-heading p, .place-queue-heading p { margin: 4px 0 0; color: #7b8996; font-size: 12px; line-height: 1.5; }
.lead-place-prospect-section { margin-top: 17px; }
.place-leads-eyebrow { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; color: #a0715d; font-size: 9px; font-weight: 750; letter-spacing: .09em; }
.place-source-badge { display: inline-flex; align-items: center; padding: 4px 7px; color: #c14d22; border: 1px solid #ffe0d2; border-radius: 999px; background: #fff3ec; font-size: 9px; letter-spacing: .02em; white-space: nowrap; }
.place-source-table-tag { padding: 5px 8px; font-size: 10px; }
.place-source-inline { display: inline-block; padding: 1px 5px; color: #bf551f; border-radius: 999px; background: #fff0e8; font-family: inherit; font-weight: 700; }
.place-leads-heading-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; flex: 0 0 auto; }
.place-assignment-success { display: flex; align-items: flex-start; gap: 9px; margin: 0 0 12px; padding: 11px 13px; color: #246b50; border: 1px solid #d4efe1; border-radius: 11px; background: #f1fbf5; font-size: 12px; line-height: 1.5; }
.place-assignment-success .icon { flex: 0 0 auto; margin-top: 1px; color: #29936a; }
.place-search-icon { width: 38px; height: 38px; display: grid; place-items: center; color: #d75a2c; border: 1px solid #ffe3d5; border-radius: 12px; background: #fff0e8; }
.place-search-form { display: grid; grid-template-columns: minmax(0,1fr) 150px auto; align-items: end; gap: 12px; }
.place-search-form .form-field { min-width: 0; }
.place-search-form .form-control { min-height: 43px; }
.place-search-submit { min-height: 43px; white-space: nowrap; }
.place-radius-input { position: relative; }
.place-radius-input .form-control { padding-right: 38px; }
.place-radius-input > span { position: absolute; top: 50%; right: 13px; color: #778592; font-size: 12px; transform: translateY(-50%); }
.place-api-notice { display: flex; align-items: flex-start; gap: 9px; margin: 0 0 14px; padding: 11px 13px; border: 1px solid #e8edf0; border-radius: 10px; font-size: 12px; line-height: 1.55; }
.place-api-notice .icon { flex: 0 0 auto; margin-top: 1px; }
.place-api-notice-warning { color: #8d632e; border-color: #f0e2c9; background: #fffaf0; }
.place-api-notice-neutral { color: #586b7a; background: #f8fafb; }
.place-api-notice a { color: #c64d21; font-weight: 650; }
.place-search-feedback { display: flex; align-items: center; gap: 10px; min-height: 24px; margin-top: 13px; color: #637483; font-size: 12px; }
.place-search-feedback[hidden], .place-results-card[hidden], .place-live-details-row[hidden] { display: none !important; }
.place-progress-spinner { position: relative; display: inline-grid; width: 19px; height: 19px; flex: 0 0 auto; place-items: center; }
.place-progress-spinner::before, .place-progress-spinner::after { position: absolute; content: ""; border-radius: 50%; }
.place-progress-spinner::before { inset: 0; border: 2px solid #ffe2d5; border-top-color: #ff5a1f; animation: place-spinner .75s linear infinite; }
.place-progress-spinner::after { inset: 5px; border: 2px solid transparent; border-bottom-color: #f7a783; animation: place-spinner .95s linear infinite reverse; }
.place-progress-spinner[hidden], .place-search-progress[hidden] { display: none !important; }
.place-search-progress { position: relative; width: 88px; height: 4px; overflow: hidden; margin-left: auto; border-radius: 10px; background: #f2e6e0; }
.place-search-progress > span { position: absolute; inset: 0 auto 0 -40%; width: 40%; border-radius: inherit; background: linear-gradient(90deg,#ffb38f,#ff5a1f); animation: place-progress-sweep 1.25s ease-in-out infinite; }
@keyframes place-spinner { to { transform: rotate(360deg); } }
@keyframes place-progress-sweep { to { transform: translateX(350%); } }
button.is-place-loading { position: relative; pointer-events: none; }
button.is-place-loading::after { display: inline-block; width: 14px; height: 14px; flex: 0 0 auto; margin-left: 8px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; content: ""; animation: place-spinner .7s linear infinite; }
.btn-primary.is-place-loading::after { border-color: rgba(255,255,255,.48); border-right-color: transparent; border-top-color: #fff; }
.btn-secondary.is-place-loading::after, .btn-quiet.is-place-loading::after { border-color: #c3ccd4; border-right-color: transparent; border-top-color: #627382; }
.place-reassign-form .btn.is-place-loading .icon, .place-status-form .btn.is-place-loading .icon { opacity: 0; }
.place-reassign-form .btn.is-place-loading::after, .place-status-form .btn.is-place-loading::after { position: absolute; top: 50%; left: 50%; margin: -7px 0 0 -7px; }
.place-search-skeleton-row td { padding-top: 13px !important; padding-bottom: 13px !important; }
.place-skeleton-block { display: block; height: 12px; border-radius: 7px; background: linear-gradient(100deg,#f1f3f5 28%,#fafbfc 42%,#f1f3f5 58%); background-size: 220% 100%; animation: place-shimmer 1.25s ease-in-out infinite; }
.place-skeleton-column-1 { width: 16px; height: 16px; margin: auto; border-radius: 5px; }
.place-skeleton-column-2 { width: min(180px,100%); }
.place-skeleton-column-3 { width: min(270px,100%); }
.place-skeleton-column-4 { width: 75px; }
.place-skeleton-column-5 { width: 58px; }
@keyframes place-shimmer { to { background-position: -220% 0; } }
.place-result-count { flex: 0 0 auto; padding: 5px 9px; color: #536574; border-radius: 999px; background: #f0f3f5; font-size: 11px; font-weight: 650; }
.place-results-notice { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 13px; padding: 10px 12px; color: #617483; border: 1px solid #e7edf1; border-radius: 10px; background: #f8fafb; font-size: 11px; line-height: 1.5; }
.place-results-notice .icon { flex: 0 0 auto; margin-top: 1px; color: #71879a; }
.place-results-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 12px 13px; border: 1px solid #e9edf0; border-bottom: 0; border-radius: 12px 12px 0 0; background: #fbfcfd; }
.place-select-all { display: inline-flex; align-items: center; gap: 7px; color: #536271; font-size: 11px; font-weight: 600; }
.place-select-all input, .place-results-table input[type="checkbox"] { width: 15px; height: 15px; accent-color: #ff5a1f; }
.place-selection-count { color: #85919d; font-size: 11px; }
.place-assignment-controls { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.place-assignment-controls .select-control { width: min(220px,35vw); min-height: 37px; font-size: 12px; }
.place-assignment-controls .btn { min-height: 37px; white-space: nowrap; }
.place-results-table-wrap, .place-queue-table-wrap { width: 100%; overflow-x: auto; border: 1px solid #e9edf0; border-radius: 0 0 12px 12px; }
.place-results-table, .place-prospect-table { width: 100%; border-collapse: separate; border-spacing: 0; text-align: left; }
.place-results-table { min-width: 760px; }
.place-prospect-table { min-width: 860px; }
.place-results-table thead th, .place-prospect-table thead th { padding: 10px 11px; color: #87929d; border-bottom: 1px solid #edf0f2; background: #fbfcfd; font-size: 9px; font-weight: 700; letter-spacing: .075em; text-transform: uppercase; white-space: nowrap; }
.place-results-table tbody td, .place-prospect-table tbody td { padding: 11px; color: #4e5d6b; border-bottom: 1px solid #eff2f4; font-size: 12px; vertical-align: middle; }
.place-results-table tbody tr:last-child td, .place-prospect-table tbody tr:last-child td { border-bottom: 0; }
.place-results-table tbody tr:hover, .place-prospect-table tbody tr:hover { background: #fcfdfd; }
.place-results-table tbody tr.is-place-duplicate { background: #fafbfc; }
.place-results-table tbody tr.is-place-duplicate td { color: #89949e; }
.place-results-table td:nth-child(2) { min-width: 190px; max-width: 250px; color: #344452; font-weight: 620; }
.place-results-table td:nth-child(3) { min-width: 250px; max-width: 340px; }
.place-results-table td:nth-child(4), .place-results-table td:nth-child(5) { white-space: nowrap; }
.place-result-status { display: inline-flex; padding: 4px 7px; color: #73808c; border-radius: 20px; background: #f1f3f5; font-size: 10px; white-space: nowrap; }
.place-result-status.is-duplicate { color: #8e5d11; background: #fff5e5; }
.place-map-link { display: inline-flex; align-items: center; gap: 5px; color: #3d6e9f; font-size: 11px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.place-map-link:hover { color: #d34d1b; text-decoration: underline; }
.place-review-count { color: #3d4f5d; font-variant-numeric: tabular-nums; }
.place-results-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; padding: 12px 2px 0; }
.google-maps-attribution { display: inline-block; color: #5e5e5e; font-family: Arial, sans-serif; font-size: 12px; font-style: normal; font-weight: 400; letter-spacing: normal; line-height: 1.3; white-space: nowrap; }
.place-live-only-label { color: #8a96a0; font-size: 10px; }
.place-results-footer > button { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; margin-left: auto; }
.place-results-footer > button:disabled { opacity: .55; cursor: not-allowed; }
.place-results-footer .spinner[hidden] { display: none !important; }
.place-prospect-identity { display: flex; align-items: center; gap: 9px; }
.place-prospect-mark { width: 31px; height: 31px; display: grid; place-items: center; flex: 0 0 auto; color: #d65a2b; border: 1px solid #ffe5d9; border-radius: 10px; background: #fff4ee; }
.place-prospect-identity strong { display: block; color: #334350; font-size: 12px; font-weight: 650; }
.place-prospect-identity small { display: block; margin-top: 3px; color: #8b96a0; font-size: 10px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.place-owner-name { color: #4c5b68; font-size: 12px; }
.place-reassign-form, .place-status-form { display: flex; align-items: center; gap: 6px; min-width: 150px; }
.place-reassign-form .select-control, .place-status-form .select-control { width: 100%; min-width: 120px; min-height: 34px; height: 34px; padding: 0 25px 0 9px; font-size: 11px; }
.place-reassign-form .btn, .place-status-form .btn { width: 32px; min-width: 32px; min-height: 32px; padding: 0; justify-content: center; }
.place-added-date { color: #758391; font-size: 11px; white-space: nowrap; }
.place-prospect-actions { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.place-prospect-actions .btn { min-height: 32px; padding: 0 9px; font-size: 10px; }
.place-prospect-empty td { padding: 26px !important; }
.place-queue-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 13px; color: #85919d; font-size: 11px; }
.place-queue-pagination-actions { display: flex; gap: 7px; }
.place-queue-pagination .btn { min-height: 34px; }
.place-live-details-row > td { padding: 0 12px 13px !important; background: #f8fafb; }
.place-live-details-content { padding: 14px; border: 1px solid #e8edf0; border-radius: 11px; background: #fff; }
.place-live-details-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 11px; }
.place-live-details-item { min-width: 0; }
.place-live-details-item small { display: block; margin-bottom: 4px; color: #87929c; font-size: 9px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.place-live-details-item strong, .place-live-details-item a { color: #374854; font-size: 12px; font-weight: 560; line-height: 1.5; overflow-wrap: anywhere; }
.place-live-details-item a { color: #3d6e9f; text-decoration: none; }
.place-live-details-item a:hover { text-decoration: underline; }
.place-details-attribution { display: flex; align-items: center; gap: 9px; margin-top: 12px; padding-top: 10px; border-top: 1px solid #edf0f2; }
.place-details-notice { color: #8a96a0; font-size: 10px; }
.place-details-attribution a { color: #3d6e9f; font-size: 10px; font-weight: 650; text-decoration: none; }
.place-details-attribution a:hover { text-decoration: underline; }
.place-details-loading { display: flex; align-items: center; gap: 9px; min-height: 40px; color: #758390; font-size: 12px; }
.place-details-skeleton { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 11px; margin-top: 7px; }
.place-details-skeleton span { display: block; height: 38px; border: 1px solid #eef0f2; border-radius: 9px; background: linear-gradient(100deg,#f4f5f6 28%,#fff 43%,#f4f5f6 58%); background-size: 220% 100%; animation: place-shimmer 1.25s ease-in-out infinite; }
.place-details-error { color: #a4484d; font-size: 12px; }
.place-api-notice-neutral { margin-top: 0; }
.google-verification-note { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 15px; padding: 10px 12px; color: #536a7c; border: 1px solid #e3edf4; border-radius: 10px; background: #f5faff; font-size: 11px; line-height: 1.55; }
.google-verification-note .icon { flex: 0 0 auto; margin-top: 1px; color: #527ca0; }
.google-verification-attestation { margin: -3px 0 16px; }
.google-verification-attestation label { display: flex; align-items: flex-start; gap: 8px; color: #536271; font-size: 11px; line-height: 1.5; cursor: pointer; }
.google-verification-attestation input { width: 15px; height: 15px; flex: 0 0 auto; margin: 1px 0 0; accent-color: #ff5a1f; }
.status-not_interested { color: #a4484d; background: #fff0ef; }

@media (max-width: 980px) {
    .google-usage-grid { grid-template-columns: 1fr; }
    .place-live-details-grid, .place-details-skeleton { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 700px) {
    .place-search-card, .place-results-card, .place-prospect-queue { padding: 15px; }
    .place-search-form { grid-template-columns: minmax(0,1fr) 115px; }
    .place-search-submit { grid-column: 1 / -1; justify-content: center; }
    .place-results-toolbar { align-items: flex-start; }
    .place-assignment-controls { width: 100%; margin-left: 0; }
    .place-assignment-controls .select-control { width: 100%; flex: 1; }
    .place-queue-heading { align-items: flex-start; flex-direction: column; }
    .place-leads-heading-actions { width: 100%; justify-content: space-between; flex-wrap: wrap; }
    .google-cloud-help-link { margin-left: 0; }
}
@media (max-width: 520px) {
    .place-summary-grid { grid-template-columns: 1fr; gap: 9px; }
    .place-summary-card { padding: 12px; }
    .place-search-form { grid-template-columns: 1fr; }
    .place-radius-field, .place-search-submit { grid-column: auto; }
    .place-assignment-controls { align-items: stretch; flex-direction: column; }
    .place-assignment-controls .btn { justify-content: center; }
    .place-results-footer { align-items: flex-start; }
    .place-results-footer > button { width: 100%; justify-content: center; margin: 5px 0 0; }
    .place-live-details-grid, .place-details-skeleton { grid-template-columns: 1fr; }
    .place-search-progress { width: 58px; }
    .google-key-input-row { grid-template-columns: 1fr; }
    .google-key-input-row .btn { justify-content: center; }
    .google-usage-heading { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
    .place-progress-spinner::before, .place-progress-spinner::after, button.is-place-loading::after, .place-search-progress > span, .place-skeleton-block, .place-details-skeleton span { animation: none !important; }
}
