/* Shared CRM visual language · 2026-09-13.1
 * Presentation only. No routing, bridge, call state or data changes.
 * #app specificity also covers legacy component styles inserted by app.js.
 */
:root {
  --brand: #6950cf;
  --brand-hover: #5940b9;
  --brand-pressed: #49329e;
  --brand-soft: #f0ebfc;
  --brand-border: #d8cdf2;
  --muted: #777383;
  --line: #e9e5ef;
  --input-border: #ded8e8;
  --text-tertiary: #918a9e;
  --panel: #fff;
  --radius: 24px;
  --design-shadow: 0 8px 32px rgba(49, 35, 78, .045);
  --design-ink: #25222d;
  --bl-brand-primary: #6950cf;
  --bl-brand-hover: #5940b9;
  --bl-brand-soft: #f0ebfc;
  --bl-brand-border: #d8cdf2;
  --bl-background: #f6f3fa;
  --bl-text-primary: #25222d;
  --bl-text-secondary: #777383;
  --bl-border: #e9e5ef;
  --bl-input-border: #ded8e8;
  --bl-focus-ring: #6950cf;
}
html { background: #f6f3fa; }
body { color: var(--design-ink); line-height: 1.5; }
::selection { background: #e5dcfb; color: #392666; }
#app .shell { background: radial-gradient(ellipse at 95% 0, #eee7fa 0, transparent 46%), #f6f3fa; }
#app .content { padding-top: 32px; padding-bottom: 40px; }
#app .page { max-width: 1500px; }
#app .page-head { gap: 20px; margin-bottom: 28px; align-items: center; }
#app .page-head h1 { color: var(--design-ink); font-size: clamp(30px, 3.2vw, 48px); line-height: 1.12; font-weight: 750; letter-spacing: -.045em; }
#app .page-head p { margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.6; }
#app h2 { letter-spacing: -.025em; }
#app .section-title { color: #5e566e; font-weight: 650; letter-spacing: .01em; }
#app .topbar { min-height: 80px; background: rgba(255,255,255,.96); border-bottom-color: #e9e3f1; box-shadow: 0 4px 20px #36214f04; }
#app .brand strong { letter-spacing: .055em; color: #312742; font-weight: 750; }
#app .brand img { border-radius: 12px; box-shadow: 0 5px 16px #6950cf14; }
#app .brand > div { min-width: 0; }
#app .brand strong { overflow: hidden; text-overflow: ellipsis; }
#app .tabs { background: #f3f0f7; border: 1px solid #ebe5f2; padding: 4px; border-radius: 14px; }
#app .tab { min-height: 42px; border-radius: 10px; color: #726a80; font-weight: 600; }
#app .tab.active { color: #fff; background: var(--brand); box-shadow: 0 3px 10px #6950cf25; }
#app .tab:hover:not(.active) { color: var(--brand); background: #eae3f7; }
#app .presence-control { background: #fcfbfe; border-color: var(--line); border-radius: 12px; }
#app .profile-button:hover { background: var(--brand-soft); }
#app .card, #app .modern-card, #app .settings-card, #app .enterprise-card,
#app .user-card, #app .ig-card, #app .yr-panel, #app .yr-info-card {
  border-color: var(--line); border-radius: 24px; background: #fff; box-shadow: var(--design-shadow);
}
#app .card-pad { padding: 26px; }
#app .primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 4px 12px #6950cf1a; }
#app .primary:hover:not(:disabled) { background: var(--brand-hover); border-color: var(--brand-hover); }
#app .primary:active:not(:disabled) { background: var(--brand-pressed); }
#app .secondary, #app .ghost { border-color: var(--line); background: #fff; color: #62586f; }
#app .secondary:hover:not(:disabled), #app .ghost:hover:not(:disabled) { background: #f6f2fc; border-color: var(--brand-border); color: var(--brand); }
#app .primary, #app .secondary, #app .ghost, #app .danger { border-radius: 12px; font-weight: 600; }
#app button { transition: background-color .15s, border-color .15s, box-shadow .15s; }
#app button:disabled { cursor: not-allowed; }
#app :focus-visible, .modal :focus-visible { outline: 3px solid #957ddd; outline-offset: 3px; }
#app input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]),
#app select, #app textarea {
  color: var(--design-ink); border-color: var(--input-border); border-radius: 11px; background-color: #fdfcfe;
}
#app input:focus, #app select:focus, #app textarea:focus { border-color: #9d86d8; box-shadow: 0 0 0 3px #6950cf0e; }
#app input::placeholder, #app textarea::placeholder { color: #96909e; }
#app .field label { color: #777080; font-size: 12px; font-weight: 550; }
#app .status-badge, #app .role-badge, #app .lead-chip { border-radius: 8px; }
#app .table { border-color: var(--line); border-radius: 16px; }
#app .table th, #app .modern-table th { background: #faf8fd; color: #82798f; text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 600; }
#app .table td, #app .modern-table td { padding-top: 15px; padding-bottom: 15px; border-bottom-color: #f0ecf5; }
#app .table tbody tr:hover, #app .modern-table tbody tr:hover { background: #fcfaff; }
#app .table tr:last-child td, #app .modern-table tr:last-child td { border-bottom: 0; }
#app .metric, #app .modern-kpis article { border-radius: 20px; border-color: var(--line); box-shadow: var(--design-shadow); padding: 22px; }
#app .metric b, #app .modern-kpis strong { font-size: 32px; font-weight: 700; letter-spacing: -.035em; color: #33283f; font-variant-numeric: tabular-nums; }
#app .modern-reports { --mr-ink: #30283d; --mr-muted: #80768d; --mr-border: #e9e3f1; --mr-purple: #6950cf; }
#app .modern-card { padding: 26px; margin-bottom: 22px; }
#app .modern-card h2 { font-size: 21px; font-weight: 600; }
#app .modern-card-head p { font-size: 13px; line-height: 1.6; }
#app .modern-report-filters { border-color: var(--line); border-radius: 18px; box-shadow: none; padding: 16px; }
#app .modern-report-filters > select { width: auto; flex: 1 1 180px; min-width: 150px; }
#app .modern-filter-title { flex: 1 0 100%; }
#app .modern-report-filters .date-filter input { width: auto; }
#app .modern-report-nav { gap: 8px; padding-bottom: 18px; }
#app .modern-report-nav-item { border-radius: 11px; font-size: 13px; font-weight: 550; }
#app .modern-report-nav-item.active { color: var(--brand); background: var(--brand-soft); border-color: var(--brand-border); box-shadow: none; }
#app .modern-kpis { gap: 18px; margin-bottom: 22px; }
#app .modern-kpis em { color: #867c94; }
#app .period-chip, #app .chart-total { background: #f6f2fb; color: #766487; font-weight: 550; }
#app .project-tile, #app .result-summary-grid article { border-color: var(--line); border-radius: 15px; padding: 16px; }
#app .hour-chart { overflow-x: auto; }
#app .crm-main-toolbar { background: #fff; border-color: var(--line); box-shadow: var(--design-shadow); border-radius: 18px; padding: 12px; flex-wrap: wrap; }
#app .crm-view-switch { border-color: var(--line); background: #f5f1fa; border-radius: 12px; }
#app .crm-view-switch button.active { background: #fff; color: var(--brand); box-shadow: 0 2px 6px #39264f0c; }
#app .crm-column { background: #eee9f5; border: 1px solid #e7e0ef; border-radius: 20px; }
#app .crm-column > header { color: #584d67; padding: 18px 16px; }
#app .crm-column > header > span { background: #fff; color: var(--brand); border-radius: 8px; font-variant-numeric: tabular-nums; }
#app .crm-lead-card { border: 1px solid #e9e2f1; border-radius: 15px; box-shadow: 0 3px 10px #39204f04; padding: 17px; }
#app .crm-lead-card:hover { border-color: #c8b9e6; box-shadow: 0 5px 18px #39204f0b; }
#app .crm-lead-head b { color: #342b40; font-size: 14px; line-height: 1.45; }
#app .crm-phone { color: var(--brand); }
#app .crm-card-foot { border-top-color: #f0ebf5; }
#app .crm-empty { color: #8e839c; padding: 24px 14px; text-align: center; }
#app .lead-layout { gap: 24px; }
#app .lead-card, #app .workflow-card { border-radius: 24px; }
#app .lead-head h1 { color: #30263e; letter-spacing: -.035em; }
#app .lead-data-section { border-color: var(--line); border-radius: 16px; }
#app .lead-data-section { background: #faf8fd; }
#app .workflow-tabs { background: #f4f0f9; border-radius: 13px; }
#app .workflow-tab { font-weight: 600; border-radius: 10px; }
#app .workflow-tab.active { background: #fff; color: var(--brand); box-shadow: 0 2px 8px #39264f0a; }
#app .workflow-tab.active > b { background: var(--brand-soft); color: var(--brand); }
#app .result { border-color: var(--line); border-radius: 12px; }
#app .result.selected { background: var(--brand-soft); border-color: #b7a3df; color: #5d3fb0; }
#app .campaign-layout { gap: 24px; }
#app .campaign-item { border-radius: 14px; }
#app .campaign-toggle { position: relative; }
#app .campaign-toggle input { width: 1px; height: 1px; min-height: 0; top: 0; left: 0; overflow: hidden; clip-path: inset(50%); }
#app .campaign-toggle:focus-within { outline: 3px solid #957ddd; outline-offset: 3px; }
#app .campaign-item.active { background: var(--brand-soft); border-color: var(--brand-border); }
#app .campaign-tabs { gap: 5px; }
#app .campaign-tabs button { font-size: 14px; font-weight: 600; }
#app .campaign-tabs button.active { background: var(--brand-soft); color: var(--brand); border-radius: 11px; }
#app .settings-stack { gap: 20px; }
#app .settings-card { padding: 24px; }
#app .schedule-grid { gap: 10px; }
#app .slot { border-color: var(--line); border-radius: 12px; }
#app .slot.on { background: var(--brand-soft); color: var(--brand); border-color: var(--brand-border); }
#app .empty-state, #app .empty-panel { color: #85788f; }
#app .waiting > div { padding: 36px; border: 1px solid #e8e0f1; border-radius: 28px; background: #ffffffb8; box-shadow: var(--design-shadow); max-width: 560px; }
#app .waiting h2 { font-weight: 650; color: #352842; }
#app .waiting p { color: #81738e; line-height: 1.65; }
.modal-backdrop { background: rgba(37, 27, 50, .35); }
.modal { border-color: #e9e2f1; border-radius: 24px; box-shadow: 0 28px 90px #28153d2e; }
.modal h2 { color: #33253f; font-weight: 650; letter-spacing: -.025em; }
.modal .field input, .modal .field select, .modal .field textarea { border-color: #ded8e8; border-radius: 11px; }
.modal .primary { background: #6950cf; border-color: #6950cf; border-radius: 12px; }
#app .messenger, #app .messenger-drawer { border-color: var(--line); border-radius: 24px; box-shadow: var(--design-shadow); }
#app .messenger-sidebar { background: #fcfafe; border-right-color: var(--line); }
#app .messenger-messages { background: #f8f5fc; }
#app .messenger-dialog-head, #app .messenger-compose { background: #fff; border-color: var(--line); }
#app .messenger-contact.active { background: var(--brand-soft); }
#app .messenger-empty { color: #82738f; }
#app .messenger-send { background: var(--brand); border-radius: 12px; }
body .bl-msg-drawer { border: 1px solid #e9e2f1; border-radius: 24px; box-shadow: 0 28px 90px #28153d2e; }
body .bl-msg-sidebar { background: #fcfafe; border-color: #e9e2f1; }
body .bl-msg-top, body .bl-msg-person-head, body .bl-msg-compose { border-color: #ece5f3; }
body .bl-msg-stream { background: #f9f6fc; }
body .bl-msg-person.is-active { background: #eee7f9; }
body .bl-msg-person:hover { background: #f4eefb; }
body .bl-msg-person .avatar, body .bl-msg-person-head .avatar { background: #eee6fa; color: #7454b5; }
body .bl-msg-call, body .bl-msg-send { background: #6950cf; color: #fff; }
body .bl-msg-empty { color: #887995; }
body .bl-msg-compose textarea { border-color: #e3daec; border-radius: 14px; background: #fdfbff; }
body .bl-msg-search input { border-color: #e3daec; background: #fff; border-radius: 12px; }
body .bl-msg-drawer :focus-visible { outline: 3px solid #957ddd; outline-offset: 3px; }
#app .ig-page { --ig-brand: #6950cf; }
#app .ig-page h1 { font-size: clamp(30px, 3.2vw, 44px); line-height: 1.15; letter-spacing: -.04em; }
#app .ig-intro { background: #f1ebfb; border-color: #e2d6f4; border-radius: 24px; }
#app .ig-eyebrow, #app .ig-steps .current { color: var(--brand); }
#app .ig-guide { background: #f8f5fc; border-radius: 20px; }
#app .ig-steps .current span, #app .ig-steps .complete span { background: var(--brand); }
#app .ig-choice.selected { background: var(--brand-soft); border-color: var(--brand-border); }
#app .ig-hero { border-radius: 24px; }
#app .ig-provider, #app .ig-panel { border-color: var(--line); border-radius: 20px; box-shadow: var(--design-shadow); }
#app .yr-page { color: #30293c; }
#app .yr-hero { border-radius: 24px; }
#app .yr-panel > header h2 { font-size: 18px; }
#app .yr-nav { border-color: var(--line); border-radius: 15px; background: #fff; }
#app .yr-nav button { font-size: 12px; min-height: 44px; }
#app .yr-kpi { border-radius: 20px; }
#app .yr-kpi-copy > span, #app .yr-kpi-copy > small { font-size: 11px; }
#app .yr-flat-card { border-radius: 16px; }
#app .yr-event-main b { font-size: 13px; }
#app .yr-event-main small, #app .yr-event-change span, #app .yr-event-day time, #app .yr-event-person { font-size: 11px; }
#app .yr-event-change strong { font-size: 12px; }
#app .yr-event-type { font-size: 9px; }
#app .yr-compact-panel { border-radius: 18px; }
#app .yr-compact-panel dt, #app .yr-compact-panel dd, #app .yr-compact-history small { font-size: 11px; }
#app .yr-compact-history b, #app .yr-compact-panel > header h3 { font-size: 13px; }
#app .login { background: radial-gradient(ellipse at 75% 15%, #e9dff8, transparent 58%), #f7f4fb; }
#app .login-card { border: 1px solid #e9e2f1; border-radius: 28px; box-shadow: 0 20px 65px #48316410; }
#app .login-card h1 { color: #2e233b; font-weight: 700; letter-spacing: -.035em; }
#app .marketing { --mk-brand: #6950cf; --mk-brand-dark: #5940b9; --mk-ink: #2b2335; --mk-muted: #80738e; --mk-line: #e8e0ef; --mk-bg: #f7f3fa; background: var(--mk-bg); }
#app .mk-nav { background: #ffffffed; border-color: #e8e0ef; }
#app .mk-hero { background: radial-gradient(ellipse at 85% 20%, #e8dff6, transparent 52%), #f7f3fa; }
#app .mk-product-window { transform: none; border-color: #e5dcec; border-radius: 26px; box-shadow: 0 22px 60px #4a2f6b10; }
#app .mk-btn { font-weight: 650; box-shadow: 0 4px 14px #6950cf14; }
#app .mk-btn:hover { transform: none; }
#app .mk-btn-secondary, #app .mk-btn-link { box-shadow: none; }
#app .mk-section-head h2 { letter-spacing: -.035em; }
#app .mk-section-soft { background: #f2ebf9; }
#app .mk-section-dark { background: #30243f; }
#app .mk-cta-box { background: linear-gradient(120deg, #6344b0, #8060cd); box-shadow: 0 20px 60px #6542a21a; }
#app .mk-auth { background: #2b1d3d55; }
#app .mk-auth-card { border: 1px solid #e7ddee; border-radius: 26px; box-shadow: 0 28px 90px #28153d2e; }
#app .mk-feature, #app .mk-step, #app .mk-role, #app .mk-download { border-color: var(--line); border-radius: 22px; box-shadow: var(--design-shadow); }
#app .mk-hero h1 { letter-spacing: -.05em; }
.downloads-page { max-width: 1080px; margin: 0 auto; padding: 36px 28px 28px; }
.downloads-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #372944; font-size: 13px; font-weight: 750; letter-spacing: .06em; }
.downloads-brand img { width: 36px; height: 36px; border-radius: 12px; }
.downloads-heading { padding: 56px 0 36px; }
.downloads-eyebrow { color: #857099; font-size: 11px; font-weight: 750; letter-spacing: .12em; }
.downloads-heading h1 { margin: 14px 0; font-size: clamp(38px, 5vw, 62px); line-height: 1.1; letter-spacing: -.05em; color: #292031; }
.downloads-heading p { margin: 0; color: #86798f; font-size: 16px; line-height: 1.7; }
.downloads-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.download-option { position: relative; padding: 28px; border: 1px solid #e8e0ef; border-radius: 26px; background: #fff; box-shadow: var(--design-shadow); }
.download-os { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; color: #7255b6; background: #f2ecfa; font-size: 30px; line-height: 1; }
.download-tag { display: block; margin-top: 22px; color: #8c7f98; font-size: 12px; }
.download-option h2 { margin: 7px 0 9px; font-size: 22px; font-weight: 650; letter-spacing: -.025em; color: #34253f; }
.download-option p { min-height: 48px; margin: 0 0 22px; color: #887a93; font-size: 13px; line-height: 1.65; }
.download-option a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 12px 16px; border-radius: 12px; background: #6950cf; color: #fff; text-decoration: none; font-size: 14px; font-weight: 600; }
.download-option a:hover { background: #5940b9; }
.download-option a:focus-visible, .downloads-page a:focus-visible { outline: 3px solid #a28add; outline-offset: 4px; }
.download-legacy a { background: #f1ebf9; color: #71588d; }
.download-legacy a:hover { background: #e8dff3; }
.downloads-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding: 28px 0 8px; color: #93859f; font-size: 12px; }
.downloads-footer a { color: #776288; text-decoration: none; }
@media (max-width: 600px) {
  .downloads-page { padding: 24px 18px; }
  .downloads-heading { padding: 40px 0 28px; }
  .downloads-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .download-option { padding: 24px; border-radius: 22px; }
}
@media (max-width: 1100px) {
  #app .lead-layout, #app .campaign-layout { gap: 18px; }
  #app .page-head h1 { font-size: 36px; }
  #app .modern-kpis { gap: 12px; }
}
@media (max-width: 760px) {
  #app .content { padding: 22px max(16px, env(safe-area-inset-right)) 32px max(16px, env(safe-area-inset-left)); }
  #app .page-head { align-items: flex-start; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
  #app .page-head h1 { font-size: 32px; }
  #app .page-head p { font-size: 13px; margin-top: 8px; }
  #app .card, #app .lead-card, #app .workflow-card, #app .modern-card, #app .settings-card { border-radius: 20px; }
  #app .card-pad, #app .modern-card, #app .settings-card { padding: 20px; }
  #app .modern-card-head { flex-wrap: wrap; gap: 10px; }
  #app .modern-card h2 { font-size: 19px; }
  #app .modern-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #app .modern-kpis article { gap: 9px; padding: 15px; flex-wrap: wrap; }
  #app .modern-kpis strong { font-size: 28px; }
  #app .modern-report-filters { gap: 12px; }
  #app .date-filter { flex-wrap: wrap; max-width: 100%; }
  #app .crm-main-toolbar > * { max-width: 100%; }
  #app .campaign-layout { grid-template-columns: minmax(0, 1fr); }
  #app .campaign-header .actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); width: 100%; gap: 10px; }
  #app .campaign-header .actions > * { width: auto; min-width: 0; min-height: 46px; justify-content: center; font-size: 13px; padding: 10px; }
  #app .campaign-header .actions > .icon-action { width: 46px; justify-self: end; }
  #app .campaign-tabs button { font-size: 13px; }
  #app .waiting > div { padding: 28px 20px; }
  .modal { border-radius: 20px; padding: 20px; }
  #app input:not([type=checkbox]):not([type=radio]):not([type=range]), #app select, #app textarea { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  #app button { transition: none; }
}
