/* CRM demonstration: scoped application UI. All names and metrics are fictitious. */
.crm-demo-page { padding-bottom: 0; }
.crm-intro { padding-top: clamp(60px,9vw,130px); padding-bottom: clamp(46px,6vw,86px); }
.crm-intro__eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 25px; font: 700 11px/1.4 var(--font-mono); letter-spacing: .12em; }
.crm-dot { background: #416a54; width: 8px; height: 8px; border-radius: 50%; }
.crm-intro h1 { max-width: 1240px; font-size: clamp(38px, 5.5vw, 88px); letter-spacing: -.065em; line-height: 1.04; margin: 0 0 32px; font-weight: 700; }
.crm-intro h1 em { font-style: normal; color: #878780; }
.crm-intro__split { display: grid; grid-template-columns: 1.1fr .75fr; align-items: start; gap: clamp(24px, 7vw, 120px); max-width: 1200px; }
.crm-intro__split > p { max-width: 680px; margin: 0; font-size: clamp(17px,1.6vw,23px); line-height: 1.5; }
.crm-intro__note { border-left: 1px solid #bcbcb3; padding-left: 19px; color: #545650; font-size: 13px; line-height: 1.7; }
.crm-intro__note strong { display: block; margin-bottom: 8px; font: 700 11px/1.5 var(--font-mono); letter-spacing: .035em; color: #222; }
.crm-intro__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.crm-demo { padding-bottom: clamp(45px, 8vw, 112px); }
.crm-app { --crm-bg: #121513; --crm-panel: #191d1a; --crm-raised: #222823; --crm-line: #323a33; --crm-muted: #a0aaa2; --crm-accent: #e8ff3a; display: grid; grid-template-columns: 210px minmax(0,1fr); background: var(--crm-bg); border: 1px solid #121512; border-radius: 14px; min-height: 670px; color: #f5f8ef; box-shadow: 0 26px 55px #151b1619; overflow: clip; }
.crm-app button, .crm-dialog button { cursor: pointer; }
.crm-app button:focus-visible, .crm-dialog button:focus-visible, .crm-app input:focus-visible, .crm-dialog input:focus-visible, .crm-dialog select:focus-visible { outline: 2px solid var(--crm-accent,#e8ff3a); outline-offset: 2px; }
.crm-sidebar { background: #171a17; display: flex; flex-direction: column; border-right: 1px solid var(--crm-line); min-width: 0; }
.crm-sidebar__brand { display: flex; align-items: center; gap: 11px; padding: 27px 20px 37px; font-size: 16px; line-height: 1.15; letter-spacing: -.04em; font-weight: 750; }
.crm-sidebar__brand small { display: block; margin-top: 5px; color: #94a092; font: 9px/1.2 var(--font-mono); letter-spacing: .035em; }
.crm-mark { display: grid; place-items: center; background: var(--crm-accent); color: #101610; font: 900 20px/1 var(--font-mono); width: 40px; height: 40px; border-radius: 8px; }
.crm-mark span { color: #3f6543; }
.crm-sidebar__group-label { padding: 0 20px 14px; color: #7c887e; font: 10px/1.4 var(--font-mono); letter-spacing: .09em; }
.crm-sidebar__nav { display: flex; align-items: center; gap: 13px; text-align: left; border: 0; border-left: 2px solid transparent; background: transparent; color: #b4bdb5; margin: 2px 11px; padding: 11px 10px; font-size: 13px; border-radius: 3px 7px 7px 3px; min-height: 42px; }
.crm-sidebar__nav > span:first-child { font-size: 19px; width: 20px; display: inline-block; line-height: 1; }
.crm-sidebar__nav:hover { background: #262c26; color: #fff; }
.crm-sidebar__nav.is-active { border-left-color: var(--crm-accent); background: #2a302a; color: #fff; font-weight: 650; }
.crm-sidebar__count { font: 11px/1 var(--font-mono); margin-left: auto; border-radius: 5px; background: #333d34; padding: 5px 7px; color: #d8e8d8; }
.crm-sidebar__footer { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 18px 14px; border-top: 1px solid var(--crm-line); font-size: 11px; }
.crm-sidebar__footer strong, .crm-sidebar__footer small { display: block; }
.crm-sidebar__footer small { margin-top: 4px; color: var(--crm-muted); font-size: 10px; }
.crm-avatar { background: #414943; border: 1px solid #5c6e5f; border-radius: 50%; width: 35px; height: 35px; display: grid; place-items: center; color: #fff; font: 12px/1 var(--font-mono); }
.crm-main { min-width: 0; }
.crm-topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 26px 28px 22px; }
.crm-overline { font: 10px/1.3 var(--font-mono); letter-spacing: .09em; color: #9fa99f; margin: 0 0 7px; }
.crm-topbar h2 { font-size: clamp(21px,2vw,28px); line-height: 1.2; letter-spacing: -.04em; margin: 0; color: #f5f8ef; font-weight: 700; }
.crm-top-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: end; }
.crm-online-dot { color: #b4c1ac; font: 11px/1 var(--font-mono); padding: 0 12px; white-space: nowrap; }
.crm-online-dot::before { content: ""; display: inline-block; background: #8adf92; height: 6px; width: 6px; border-radius: 50%; margin-right: 8px; vertical-align: 2px; }
.crm-btn { border: 1px solid #455047; border-radius: 7px; padding: 10px 14px; min-height: 37px; font: 650 11px/1.3 var(--font-sans); white-space: nowrap; }
.crm-btn--ghost { color: #e7f0e4; background: #222822; }
.crm-btn--ghost:hover { background: #333c34; }
.crm-btn--primary { border-color: var(--crm-accent,#e8ff3a); background: var(--crm-accent,#e8ff3a); color: #171c13; }
.crm-btn--primary:hover { background: #f3ff93; border-color: #f3ff93; }
.crm-metrics { padding: 0 28px 24px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.crm-metric { border: 1px solid #333c34; background: #1d231e; padding: 18px 16px 15px; min-width: 0; border-radius: 8px; }
.crm-metric > span { display: block; color: #b3bcb1; font: 9px/1.45 var(--font-mono); letter-spacing: .085em; }
.crm-metric > strong { display: block; color: #f4f7ed; font-size: clamp(20px,2.35vw,33px); letter-spacing: -.05em; margin: 6px 0; line-height: 1.2; }
.crm-metric > small { color: #91a090; font-size: 10px; }
.crm-toolbar { border-top: 1px solid #2d352e; border-bottom: 1px solid #2d352e; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 28px; }
.crm-toolbar__tabs { display: flex; align-items: center; gap: 3px; }
.crm-toolbar__tabs button { color: #aab4ac; background: transparent; border: none; border-radius: 6px; padding: 10px 14px; font-size: 12px; }
.crm-toolbar__tabs button[aria-selected=true] { color: #121810; background: #ddebba; font-weight: 700; }
.crm-toolbar__search { position: relative; width: min(100%,285px); }
.crm-toolbar__search span { position: absolute; left: 10px; top: 4px; font-size: 22px; line-height: 30px; color: #a4b3a5; }
.crm-toolbar__search input { width: 100%; padding: 9px 12px 9px 35px; border-radius: 7px; border: 1px solid #455048; background: #191f1a; color: #fff; font-size: 12px; outline: none; min-height: 36px; }
.crm-toolbar__search input::placeholder { color: #9fa79f; }
.crm-sr-only { border: 0; clip: rect(0,0,0,0); height: 1px; overflow: hidden; padding: 0; position: absolute; white-space: nowrap; width: 1px; }
.crm-notice { color: #ddf6ba; font-size: 12px; padding: 0 28px; max-height: 0; opacity: 0; overflow: hidden; transition: opacity .12s, padding .12s; }
.crm-notice.is-visible { padding-top: 10px; max-height: 90px; opacity: 1; }
.crm-board { padding: 24px 16px 40px 28px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; align-items: start; overflow-x: auto; }
.crm-column { min-width: 0; }
.crm-column__heading { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; padding: 2px 3px; }
.crm-column__heading > div { display: flex; align-items: center; gap: 8px; min-width: 0; }
.crm-column__heading h3 { font-size: 12px; font-weight: 700; white-space: nowrap; margin: 0; }
.crm-column__heading small { font-size: 10px; color: #c0cec0; padding: 3px 7px; background: #303a31; border-radius: 5px; }
.crm-column__heading strong { color: #96a696; font: 11px/1.2 var(--font-mono); white-space: nowrap; font-weight: 400; padding-left: 14px; }
.crm-stage-dot { display: block; width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; background: #afbcaa; }
.crm-stage-dot--new { background: #b8bdb4; }
.crm-stage-dot--qualified { background: #b3c9f4; }
.crm-stage-dot--proposal { background: #e8ff3a; }
.crm-stage-dot--won { background: #85dda1; }
.crm-column__cards { display: grid; gap: 10px; }
.crm-card { border: 1px solid #3c473c; background: #242b25; border-radius: 8px; padding: 13px; min-width: 0; }
.crm-card:hover { border-color: #72816e; }
.crm-card__head { display: flex; align-items: center; justify-content: space-between; gap: 5px; margin-bottom: 12px; }
.crm-card__icon { background: #3b493e; border: 1px solid #637363; display: grid; place-items: center; width: 29px; height: 29px; border-radius: 6px; color: #cbe0c6; font: 13px/1 var(--font-mono); }
.crm-card__tag { background: #343d35; padding: 5px 7px; border-radius: 4px; color: #d2dcd1; font: 9px/1.2 var(--font-mono); white-space: nowrap; text-overflow: ellipsis; overflow: hidden; max-width: 100px; }
.crm-card h4 { font-size: 13px; letter-spacing: -.02em; margin: 0 0 4px; overflow-wrap: anywhere; }
.crm-card__contact { font-size: 11px; color: #9ea99c; margin: 0; }
.crm-card__value { font: 700 19px/1.3 var(--font-sans); letter-spacing: -.035em; margin: 16px 0 12px; }
.crm-card__next { border-top: 1px solid #3c493d; padding-top: 11px; color: #d8e4d6; font-size: 10.5px; min-height: 42px; margin: 0 0 10px; }
.crm-card__next span { color: #a8dd81; font-size: 14px; }
.crm-card__footer { display: flex; justify-content: space-between; align-items: center; gap: 4px; flex-wrap: wrap; }
.crm-card__footer span { font-size: 9px; white-space: nowrap; }
.crm-card__todo { color: #c8e989; }
.crm-card__neutral { color: #9ba89b; }
.crm-card__footer button { background: transparent; border: 0; color: #f0f7e9; font: 600 10px/1.4 var(--font-sans); padding: 4px 0; }
.crm-card__footer button:hover { color: var(--crm-accent); }
.crm-empty { border: 1px dashed #485447; padding: 26px 12px; text-align: center; font-size: 11px; color: #9ca99a; border-radius: 8px; }
.crm-bottom { border-top: 1px solid #2f3831; padding: 16px 28px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: #9ba79a; font: 10px/1.5 var(--font-mono); }
.crm-bottom a { color: #effce1; text-decoration: underline; text-underline-offset: 4px; }
.crm-bottom__light { display: inline-block; background: #88b98e; border-radius: 50%; width: 6px; height: 6px; margin-right: 5px; }
.crm-tasks-view { padding: 22px 28px 36px; min-height: 390px; }
.crm-task-header { display: flex; justify-content: space-between; gap: 15px; align-items: start; border-bottom: 1px solid #323c33; padding: 0 0 15px; }
.crm-task-header h3 { font-size: 18px; margin: 0 0 5px; }
.crm-task-header p { margin: 0; color: #a3b09f; font-size: 12px; }
.crm-task-header > span { color: #b2c1b0; font: 10px/1.5 var(--font-mono); }
.crm-task { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid #303b33; }
.crm-task__check { width: 26px; height: 26px; color: #c9dcbc; font-size: 22px; flex: 0 0 auto; }
.crm-task > div { flex: 1; min-width: 0; }
.crm-task h4 { font-size: 13px; margin: 0 0 4px; }
.crm-task p { color: #9ba99b; margin: 0; font-size: 11px; }
.crm-task p span { margin: 0 5px; }
.crm-task > button { border: 1px solid #5f7559; color: #d9f1d4; border-radius: 6px; padding: 8px 12px; background: transparent; font-size: 11px; flex: 0 0 auto; }
.crm-task > button:hover { color: #131a0e; background: var(--crm-accent); }
.crm-task-empty { color: #a9b9a9; padding: 55px 15px; text-align: center; font-size: 13px; }
.crm-demo-explain { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(35px,6vw,90px); padding-block: 50px 100px; }
.crm-demo-explain h2 { margin: 0; font-size: clamp(28px,4vw,55px); letter-spacing: -.05em; line-height: 1.1; }
.crm-demo-explain__list { display: grid; gap: 19px; }
.crm-demo-explain__list article { border-top: 1px solid #b5b8ac; padding: 20px 0 0; display: grid; grid-template-columns: 35px 1fr; column-gap: 15px; }
.crm-demo-explain__list article span { grid-row: span 2; font: 11px/1 var(--font-mono); color: #777; }
.crm-demo-explain__list h3 { font-size: 17px; margin: 0 0 6px; }
.crm-demo-explain__list p { color: #585c55; margin: 0; font-size: 13px; line-height: 1.6; max-width: 570px; }
.crm-demo-cta { display: flex; align-items: flex-end; justify-content: space-between; gap: 35px; background: #e2e3d9; padding-top: 55px; padding-bottom: 65px; }
.crm-demo-cta h2 { max-width: 700px; font-size: clamp(30px,4.5vw,56px); letter-spacing: -.05em; line-height: 1.1; margin: 0 0 15px; }
.crm-demo-cta p:not(.eyebrow) { max-width: 650px; font-size: 15px; color: #50544f; }
.crm-demo-cta > div:last-child { display: flex; flex-direction: column; align-items: start; gap: 18px; flex: 0 0 auto; padding-bottom: 10px; }
.crm-dialog { width: min(100% - 28px, 520px); padding: 0; border: 1px solid #58675b; border-radius: 12px; background: #1b211b; color: #fff; box-shadow: 0 40px 90px #0008; }
.crm-dialog::backdrop { background: #0b100bd9; backdrop-filter: blur(5px); }
.crm-dialog__head { display: flex; align-items: start; justify-content: space-between; gap: 15px; padding: 24px; border-bottom: 1px solid #39443a; }
.crm-dialog__head h2 { font-size: 22px; letter-spacing: -.03em; margin: 0; }
.crm-dialog__close { border: 1px solid #4f5b4e; background: transparent; color: #fff; font-size: 22px; border-radius: 7px; width: 34px; height: 34px; line-height: 1; }
.crm-dialog__body { padding: 21px 24px 17px; display: grid; gap: 7px; }
.crm-dialog__body > label { font: 600 12px/1.4 var(--font-sans); margin-top: 8px; color: #d9e1d8; }
.crm-dialog__body input:not([type=checkbox]), .crm-dialog__body select { background: #2b342c; border: 1px solid #526153; border-radius: 7px; padding: 11px 12px; color: #fff; width: 100%; font-size: 13px; }
.crm-dialog__body input::placeholder { color: #a6b3a8; }
.crm-dialog__body select option { background: #252f25; }
.crm-dialog__checks { display: flex; align-items: center; gap: 10px; margin: 12px 0 4px; font-size: 12px; }
.crm-dialog__checks label { cursor: pointer; }
.crm-dialog__checks input { width: 18px; height: 18px; accent-color: #e8ff3a; }
.crm-dialog__help { color: #abb6ab; font-size: 11px; margin: 6px 0 0; line-height: 1.5; }
.crm-error { color: #ffd6ba; font-size: 12px; margin: 0; min-height: 16px; }
.crm-dialog__actions { border-top: 1px solid #39443a; padding: 17px 24px; display: flex; justify-content: end; gap: 8px; }
@media (max-width: 1120px) {
  .crm-app { grid-template-columns: 175px minmax(0,1fr); }
  .crm-sidebar__brand { padding-inline: 14px; }
  .crm-board { grid-template-columns: repeat(4,minmax(198px,1fr)); }
  .crm-topbar, .crm-toolbar { padding-inline: 19px; }
  .crm-metrics { padding-inline: 19px; }
}
@media (max-width: 820px) {
  .crm-intro__split { grid-template-columns: 1fr; gap: 16px; }
  .crm-app { grid-template-columns: 1fr; }
  .crm-sidebar { border-right: 0; border-bottom: 1px solid #384138; flex-direction: row; align-items: center; min-height: 65px; padding: 0 12px; }
  .crm-sidebar__brand { padding: 10px 12px; margin-right: auto; font-size: 13px; }
  .crm-sidebar__brand small { font-size: 8px; }
  .crm-mark { width: 32px; height: 32px; font-size: 16px; }
  .crm-sidebar__group-label, .crm-sidebar__footer { display: none; }
  .crm-sidebar__nav { margin: 0 3px; padding: 10px 8px; min-height: 40px; font-size: 11px; }
  .crm-sidebar__nav > span:first-child { display: none; }
  .crm-sidebar__count { margin-left: 2px; }
  .crm-board { grid-template-columns: repeat(4,minmax(215px,1fr)); padding: 18px; gap: 10px; }
  .crm-demo-explain { grid-template-columns: 1fr; }
  .crm-demo-cta { display: grid; }
}
@media (max-width: 580px) {
  .crm-intro { padding-top: 45px; }
  .crm-intro h1 { font-size: 37px; line-height: 1.05; }
  .crm-demo.shell { padding-inline: 10px; }
  .crm-app { border-radius: 9px; }
  .crm-sidebar { padding: 0 6px; }
  .crm-sidebar__brand { padding-inline: 6px; gap: 6px; }
  .crm-sidebar__brand small { display: none; }
  .crm-sidebar__nav { padding: 10px 6px; font-size: 10px; gap: 4px; }
  .crm-topbar { flex-direction: column; align-items: start; padding: 23px 17px 17px; gap: 14px; }
  .crm-top-actions { justify-content: start; }
  .crm-online-dot { padding-left: 0; font-size: 10px; }
  .crm-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; padding: 0 11px 17px; }
  .crm-metric { padding: 12px 8px; }
  .crm-metric > span { font-size: 8px; min-height: 33px; }
  .crm-metric > strong { font-size: 19px; white-space: normal; }
  .crm-metric > small { display: none; }
  .crm-toolbar { flex-direction: column; align-items: stretch; padding: 11px; }
  .crm-toolbar__tabs button { flex: 1; }
  .crm-toolbar__search { width: 100%; max-width: none; }
  .crm-board { grid-template-columns: 1fr; gap: 20px; overflow: visible; padding: 18px 13px 25px; }
  .crm-column { width: 100%; }
  .crm-column__heading { flex-direction: row; align-items: center; justify-content: space-between; }
  .crm-column__cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .crm-card { padding: 10px; }
  .crm-card__value { font-size: 17px; }
  .crm-card__head { gap: 3px; }
  .crm-card__tag { max-width: 74px; font-size: 8px; }
  .crm-card__footer { align-items: start; }
  .crm-tasks-view { padding: 12px; }
  .crm-task { gap: 9px; }
  .crm-task-header { flex-direction: column; }
  .crm-bottom { padding-inline: 13px; }
  .crm-demo-explain { padding-block: 25px 70px; }
  .crm-demo-cta { padding-block: 44px 53px; }
}
@media (max-width: 380px) {
  .crm-card__tag { max-width: 60px; }
  .crm-column__cards { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .crm-notice { transition: none; }
}
