/* CRM workspace: operational projection, not demonstration storage. */
html.pilot-mode .crmws{max-width:1440px;margin:0 auto;color:var(--ink)}
html.pilot-mode .crmws-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin:4px 0 27px}
html.pilot-mode .crmws-heading h1{font-size:29px;line-height:1.15;letter-spacing:-.035em;margin:5px 0 7px}
html.pilot-mode .crmws-heading p{color:var(--muted);font-size:13px;margin:0}
html.pilot-mode .crmws-eyebrow{font-size:11px!important;letter-spacing:.09em;text-transform:uppercase;color:var(--muted);font-weight:600}
html.pilot-mode .crmws-tabs{display:flex;gap:24px;overflow-x:auto;overscroll-behavior-inline:contain;border-bottom:1px solid var(--line);scrollbar-width:thin}
html.pilot-mode .crmws-tabs button{flex:none;min-height:48px;padding:0 2px;border:0;border-bottom:2px solid transparent;background:transparent;color:var(--muted);font:inherit;font-size:13px;cursor:pointer}
html.pilot-mode .crmws-tabs button:hover{color:var(--ink)}
html.pilot-mode .crmws-tabs button[aria-current=page]{color:var(--ink);font-weight:650;border-bottom-color:var(--link)}
html.pilot-mode .crmws-content{padding-top:22px}
html.pilot-mode .crmws-filters{display:flex;align-items:end;gap:10px;flex-wrap:wrap}
html.pilot-mode .crmws-filters label{display:grid;gap:6px;color:var(--muted);font-size:11px}
html.pilot-mode .crmws-search{flex:1 1 280px}
html.pilot-mode .crmws-filters input,html.pilot-mode .crmws-filters select{width:100%;min-height:42px;padding:9px 12px;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--ink);font:inherit;font-size:13px}
html.pilot-mode .crmws-filters select{min-width:200px}
html.pilot-mode .crmws-summary{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:54px;color:var(--muted);font-size:12px}
html.pilot-mode .crmws-text-button,html.pilot-mode .crmws-open{border:0;background:none;color:var(--link);font:inherit;cursor:pointer;padding:8px 0}
html.pilot-mode .crmws-table-wrap{overflow-x:auto;overscroll-behavior-inline:contain;border-top:1px solid var(--line)}
html.pilot-mode .crmws-table{width:100%;border-collapse:collapse;text-align:left}
html.pilot-mode .crmws-table th{position:relative;padding:14px 10px;color:var(--muted);font-size:11px;font-weight:500;border-bottom:1px solid var(--line)}
html.pilot-mode .crmws-table td{padding:16px 10px;border-bottom:1px solid var(--line);font-size:13px;vertical-align:middle}
html.pilot-mode .crmws-table td:first-child{width:38%;padding-left:0}
html.pilot-mode .crmws-table td:last-child{text-align:right}
html.pilot-mode .crmws-table td small{display:block;color:var(--muted);font-size:11px;margin-top:5px}
html.pilot-mode .crmws-person{display:flex;align-items:center;gap:12px;max-width:100%;border:0;background:none;color:var(--ink);font:inherit;text-align:left;cursor:pointer;padding:2px 0}
html.pilot-mode .crmws-person:hover strong,html.pilot-mode .crmws-open:hover{text-decoration:underline;text-underline-offset:3px}
html.pilot-mode .crmws-person strong{display:block;overflow-wrap:anywhere;font-size:13px;font-weight:600}
html.pilot-mode .crmws-avatar{display:grid;place-items:center;flex:none;width:38px;height:38px;border-radius:13px;background:var(--surface);border:1px solid var(--line);color:var(--link);font-size:11px;font-weight:650}
html.pilot-mode .crmws-avatar-large{width:48px;height:48px;font-size:13px}
html.pilot-mode .crmws-empty,html.pilot-mode .crmws-notice{padding:30px 0;border-top:1px solid var(--line);max-width:650px}
html.pilot-mode .crmws-empty h2,html.pilot-mode .crmws-notice h2{font-size:17px;margin:0 0 8px}
html.pilot-mode .crmws-empty p,html.pilot-mode .crmws-notice p{color:var(--muted);font-size:13px;line-height:1.6;margin:0 0 18px}
html.pilot-mode .crmws-person-summary{display:flex;gap:14px;align-items:flex-start;padding:4px 0 20px}
html.pilot-mode .crmws-person-summary>div{flex:1;min-width:0}.crmws-person-summary p{margin:4px 0;font-weight:600;overflow-wrap:anywhere}.crmws-person-summary small{display:block;line-height:1.6;color:var(--muted)}
html.pilot-mode .crmws-person-detail>section{border-top:1px solid var(--line);padding:18px 0}
html.pilot-mode .crmws-person-detail>section h3{margin:0 0 12px;font-size:15px}
html.pilot-mode .crmws-person-detail>section .button{margin:0 6px 6px 0}
html.pilot-mode .crmws-person-extra{padding:12px 0 18px;color:var(--muted);font-size:12px}
html.pilot-mode .crmws-person-extra summary{cursor:pointer;color:var(--link)}
html.pilot-mode .crmws-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
html.pilot-mode .crmws :focus-visible{outline:2px solid var(--link);outline-offset:3px}
@media(max-width:700px){html.pilot-mode .crmws-heading{margin:4px 0 16px;gap:12px}html.pilot-mode .crmws-heading h1{font-size:25px}html.pilot-mode .crmws-heading .button{flex:none}html.pilot-mode .crmws-tabs{gap:19px;margin-right:-12px;padding-right:12px}html.pilot-mode .crmws-table{min-width:610px}html.pilot-mode .crmws-filters label{flex:1 1 100%}html.pilot-mode .crmws-person-summary{flex-wrap:wrap}html.pilot-mode .crmws-person-summary .button{margin-left:62px}}
@media(prefers-reduced-motion:reduce){html.pilot-mode .crmws *{scroll-behavior:auto!important;transition:none!important}}
html.pilot-mode .crmws-pipeline-top{display:flex;justify-content:flex-start;align-items:end;gap:16px;margin-bottom:20px}
html.pilot-mode .crmws-pipeline-top label{margin-right:auto;display:grid;gap:6px;color:var(--muted);font-size:11px}
html.pilot-mode .crmws-pipeline-top select{min-height:42px;min-width:200px;padding:8px 12px;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:10px;font:inherit;font-size:13px}
html.pilot-mode .crmws-segment{display:flex;gap:2px;padding:3px;border:1px solid var(--line);border-radius:11px;background:var(--surface)}
html.pilot-mode .crmws-segment button,html.pilot-mode .crmws-quick button{border:0;background:transparent;color:var(--muted);font:inherit;font-size:12px;cursor:pointer}
html.pilot-mode .crmws-segment button{padding:8px 13px;border-radius:8px}
html.pilot-mode .crmws-segment button[aria-pressed=true]{background:var(--ink);color:var(--surface)}
html.pilot-mode .crmws-quick{display:flex;gap:7px;overflow-x:auto;padding:0 0 16px}
html.pilot-mode .crmws-quick button{flex:none;padding:8px 11px;border:1px solid var(--line);border-radius:999px}
html.pilot-mode .crmws-quick button[aria-pressed=true]{color:var(--link);border-color:var(--link)}
html.pilot-mode .crmws-quick button:disabled{opacity:.5;cursor:not-allowed}
html.pilot-mode .crmws-board{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(260px,300px);gap:14px;overflow-x:auto;overscroll-behavior-inline:contain;padding:4px 2px 18px;align-items:start}
html.pilot-mode .crmws-column{min-height:220px;padding:13px;background:var(--surface);border:1px solid var(--line);border-radius:13px}
html.pilot-mode .crmws-column header{display:flex;align-items:center;justify-content:space-between;gap:10px}
html.pilot-mode .crmws-column h2{margin:0;font-size:14px;line-height:1.3}
html.pilot-mode .crmws-column header span{color:var(--muted);font-size:12px}
html.pilot-mode .crmws-column>p{color:var(--muted);font-size:11px;line-height:1.5;margin:8px 0 14px}
html.pilot-mode .crmws-deal{margin:8px 0;background:var(--canvas);border:1px solid var(--line);border-radius:10px}
html.pilot-mode .crmws-deal:hover{border-color:var(--link)}
html.pilot-mode .crmws-deal-open{display:grid;gap:6px;width:100%;padding:13px;text-align:left;border:0;background:transparent;color:var(--ink);font:inherit;cursor:pointer}
html.pilot-mode .crmws-deal-open small,html.pilot-mode .crmws-deal-open span,html.pilot-mode .crmws-deal-next small,html.pilot-mode .crmws-deal-next span{color:var(--muted);font-size:11px}
html.pilot-mode .crmws-deal-open strong{font-size:13px;overflow-wrap:anywhere}
html.pilot-mode .crmws-deal-open b{font-size:13px;font-weight:600}
html.pilot-mode .crmws-deal-next{display:grid;gap:5px;padding:10px 13px 13px;border-top:1px solid var(--line);font-size:12px}
html.pilot-mode .crmws-deal-next strong{font-weight:500;overflow-wrap:anywhere}
html.pilot-mode .crmws-activity-group{padding:10px 0 18px}
html.pilot-mode .crmws-activity-group h2{font-size:15px;margin:10px 0}
html.pilot-mode .crmws-activity-group h2 small{color:var(--muted);font-weight:400}
html.pilot-mode .crmws-activity,.crmws-related{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:15px 0;border-top:1px solid var(--line);font-size:13px}
html.pilot-mode .crmws-activity p{margin:5px 0;color:var(--muted)}
html.pilot-mode .crmws-activity small,html.pilot-mode .crmws-related small{display:block;color:var(--muted);margin-top:5px;line-height:1.5}
html.pilot-mode .crmws-description{font-size:13px;line-height:1.5;color:var(--muted)}
html.pilot-mode .crmws-opportunity-detail section{padding:18px 0;border-top:1px solid var(--line)}
html.pilot-mode .crmws-opportunity-detail h3{font-size:15px;margin:0 0 12px}
html.pilot-mode .crmws-opportunity-summary{padding:4px 0 20px}
html.pilot-mode .crmws-opportunity-summary p{margin:8px 0}
html.pilot-mode .crmws-opportunity-value{font-size:22px;font-weight:600}
html.pilot-mode .crmws-opportunity-summary small{color:var(--muted)}
@media(max-width:700px){html.pilot-mode .crmws-pipeline-top{align-items:stretch;flex-direction:column}html.pilot-mode .crmws-pipeline-top label{margin-right:0}html.pilot-mode .crmws-segment{align-self:flex-start}html.pilot-mode .crmws-board{grid-auto-columns:minmax(245px,85vw)}html.pilot-mode .crmws-activity{align-items:flex-start;flex-direction:column}}

html.pilot-mode .crmws-unplaced{padding:22px 0}
html.pilot-mode .crmws-unplaced h2{font-size:15px;margin:0 0 8px}
html.pilot-mode .crmws-unplaced p,html.pilot-mode .crmws-unplaced h2 small{color:var(--muted);font-size:12px}
html.pilot-mode .crmws-unplaced-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(245px,1fr));gap:12px}
html.pilot-mode .crmws-duplicate{border-top:1px solid var(--line);padding:18px 0;font-size:13px}
html.pilot-mode .crmws-duplicate header{display:flex;justify-content:space-between;gap:10px}
html.pilot-mode .crmws-duplicate header span,html.pilot-mode .crmws-duplicate p{color:var(--muted);font-size:12px}
html.pilot-mode .crmws-duplicate-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:15px}
html.pilot-mode .crmws-duplicate-pair>div{padding:13px;background:var(--surface);border:1px solid var(--line);border-radius:10px;overflow-wrap:anywhere}
@media(max-width:500px){html.pilot-mode .crmws-duplicate-pair{grid-template-columns:1fr}}
@media(max-width:700px){
 html.pilot-mode .crmws-pipeline-top{flex-direction:row;flex-wrap:wrap;gap:8px;align-items:center}
 html.pilot-mode .crmws-pipeline-top label{flex:1 1 100%}
 html.pilot-mode .crmws-pipeline-top label select{width:100%}
 html.pilot-mode .crmws-pipeline-top>.button{flex:1 1 auto;min-height:40px;padding:8px 10px}
 html.pilot-mode .crmws-pipeline-top .crmws-segment{margin-left:auto}
 html.pilot-mode .crmws-filters label:not(.crmws-search){flex:1 1 135px;min-width:0}
 html.pilot-mode .crmws-filters select{min-width:0}
}

html.pilot-mode .crmws-deal-next .crmws-overdue{color:var(--amber);font-weight:600}
@media(prefers-reduced-motion:no-preference){html.pilot-mode .crmws-deal,html.pilot-mode .crmws-quick button,html.pilot-mode .crmws-tabs button{transition:border-color 150ms ease,color 150ms ease}}

html.pilot-mode .crmws-check{display:block;padding:8px 0}

html.pilot-mode .crmws-activity-heading{display:flex;justify-content:flex-end;margin-bottom:16px}

html.pilot-mode .crmws-legacy{margin:25px 0;padding:15px 0;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}html.pilot-mode .crmws-legacy summary{cursor:pointer;color:var(--link)}

html.pilot-mode .crmws-deal[draggable=true]{cursor:grab}html.pilot-mode .crmws-dragging{opacity:.55}html.pilot-mode .crmws-drop-ready{outline:2px solid var(--link);outline-offset:-2px}

html.pilot-mode .crmws-deal{position:relative}html.pilot-mode .crmws-grip{position:absolute;right:10px;top:8px;color:var(--muted);cursor:grab;padding:3px 5px;font-size:15px;line-height:1}html.pilot-mode .crmws-deal-open{padding-right:34px}
[data-activity-due][hidden],[data-activity-completes][hidden]{display:none!important}

html.pilot-mode .crmws-deal-open strong{font-size:14px}html.pilot-mode .crmws-deal-open small,html.pilot-mode .crmws-deal-open span,html.pilot-mode .crmws-deal-next small,html.pilot-mode .crmws-deal-next span{font-size:12px}html.pilot-mode .crmws-deal-next .crmws-text-button{text-align:left}
@media(max-width:700px){html.pilot-mode .crmws-filters input,html.pilot-mode .crmws-filters select,html.pilot-mode .crmws-pipeline-top select{font-size:16px}html.pilot-mode .crmws-quick button,html.pilot-mode .crmws-tabs button,html.pilot-mode .crmws-segment button{min-height:44px}}

html.pilot-mode .crmws-migration{margin:0 0 20px;padding:12px 16px;border:1px solid var(--line);border-radius:10px;background:var(--surface);font-size:13px;line-height:1.5}html.pilot-mode .crmws-migration p{margin:0 0 6px}

html.pilot-mode .crmws-config-desktop{display:flex;gap:8px;align-items:center}
html.pilot-mode .crmws-config-mobile,html.pilot-mode .crmws-filter-toggle{display:none}
@media(max-width:700px){
 html.pilot-mode .crmws-config-desktop{display:none}
 html.pilot-mode .crmws-config-mobile{display:block;position:relative}
 html.pilot-mode .crmws-config-mobile summary{display:grid;place-items:center;min-height:44px;padding:0 15px;border:1px solid var(--line);border-radius:10px;list-style:none;cursor:pointer;font-size:13px}
 html.pilot-mode .crmws-config-mobile summary::-webkit-details-marker{display:none}
 html.pilot-mode .crmws-config-mobile>div{position:absolute;z-index:4;left:0;top:calc(100% + 5px);min-width:180px;padding:5px;background:var(--surface);border:1px solid var(--line);border-radius:10px;box-shadow:var(--shadow)}
 html.pilot-mode .crmws-config-mobile button{display:block;width:100%;min-height:44px;padding:8px 10px;text-align:left;border:0;border-radius:7px;background:none;color:var(--ink);font:inherit}
 html.pilot-mode .crmws-config-mobile button:hover{background:var(--tint)}
 html.pilot-mode .crmws-filter-toggle{display:block;flex:1 1 100%;min-height:44px;text-align:left;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:9px;padding:8px 12px;font:inherit;font-size:13px}
 html.pilot-mode .crmws-pipeline-filters:not(.filters-expanded) label:not(.crmws-search){display:none}
}

html.pilot-mode .crmws-scroll-hint{display:none}
@media(max-width:600px){html.pilot-mode .crmws-scroll-hint{display:block;margin:0 0 9px;color:var(--muted);font-size:11px;line-height:1.4}html.pilot-mode .crmws-scroll-hint span{padding-left:3px}}
@media(max-width:700px){html.pilot-mode .crmws-text-button,html.pilot-mode .crmws-open{min-height:44px}}
html.pilot-mode .crmws-text-button:hover{text-decoration:underline;text-underline-offset:3px}

/* Composição do trabalho comercial: filtros compactos, etapas e ações legíveis. */
html.pilot-mode .crmws-heading{margin-bottom:18px}
html.pilot-mode .crmws-content{padding-top:16px}
html.pilot-mode .crmws-pipeline-top{align-items:end;gap:10px;margin-bottom:14px}
html.pilot-mode .crmws-pipeline-top label{margin-right:auto}
html.pilot-mode .crmws-quick{padding-bottom:12px}
html.pilot-mode .crmws-filters{gap:8px}
html.pilot-mode .crmws-summary{min-height:48px}
html.pilot-mode .crmws-board{grid-auto-columns:minmax(270px,1fr);gap:12px;padding:4px 2px 18px}
html.pilot-mode .crmws-column{background:transparent;border:0;border-radius:0;padding:0 3px;min-width:0}
html.pilot-mode .crmws-column header{padding:9px 4px 8px;border-bottom:2px solid var(--control-border)}
html.pilot-mode .crmws-column h2{font-size:14px;font-weight:650;letter-spacing:-.01em}
html.pilot-mode .crmws-column header span{display:grid;place-items:center;min-width:23px;height:23px;padding:0 5px;border-radius:50%;background:var(--tint);color:var(--ink);font-variant-numeric:tabular-nums}
html.pilot-mode .crmws-column>p{min-height:28px;margin:8px 4px 10px;font-size:11px}
html.pilot-mode .crmws-deal{position:relative;margin:9px 0;background:var(--surface);border:1px solid var(--line);border-radius:11px;box-shadow:0 2px 6px #00000009}
html.pilot-mode .crmws-deal-open{gap:5px;padding:14px 15px 11px}
html.pilot-mode .crmws-deal-open strong{font-size:14px;line-height:1.35;padding-right:12px}
html.pilot-mode .crmws-deal-open b{font-size:14px;font-variant-numeric:tabular-nums}
html.pilot-mode .crmws-deal-next{gap:5px;padding:11px 15px 12px}
html.pilot-mode .crmws-deal-next strong{font-size:12px;line-height:1.4}
html.pilot-mode .crmws-deal-next .crmws-text-button{text-decoration:underline;text-underline-offset:3px;justify-self:start;min-height:36px}
html.pilot-mode .crmws-opportunity-summary>div{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
html.pilot-mode .crmws-opportunity-detail .crmws-text-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:9px 14px;border:1px solid var(--control-border);border-radius:9px;background:var(--surface);color:var(--ink);text-align:left;line-height:1.3}
html.pilot-mode .crmws-opportunity-detail .crmws-text-button:hover{background:var(--tint);border-color:var(--link)}
html.pilot-mode .crmws-opportunity-detail .crmws-text-button:focus-visible{outline:2px solid var(--focus);outline-offset:3px}
html.pilot-mode .crmws-opportunity-detail section>button[data-pilot=crmws-activity-create]{margin-bottom:14px}
html.pilot-mode .crmws-opportunity-detail .crmws-activity{flex-wrap:wrap}
@media(max-width:700px){html.pilot-mode .crmws-board{grid-auto-columns:minmax(250px,82vw)}html.pilot-mode .crmws-opportunity-summary>div>*{flex:1 1 180px}html.pilot-mode .crmws-opportunity-detail .crmws-activity{gap:8px}}

html.pilot-mode .crmws-opportunity-detail .crmws-activity{justify-content:flex-start;gap:8px}
html.pilot-mode .crmws-opportunity-detail .crmws-activity>div:first-child{flex:1 1 220px}
html.pilot-mode .crmws-migration{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;padding:10px 14px;margin-bottom:14px}
html.pilot-mode .crmws-migration p{flex:1 1 340px;margin:0;line-height:1.45}
html.pilot-mode .crmws-migration button{min-height:40px}

html.pilot-mode .crmws-board{grid-auto-columns:minmax(304px,1fr)}
html.pilot-mode .crmws-deal-open span{font-size:13px;line-height:1.35}
html.pilot-mode .crmws-deal-next small,html.pilot-mode .crmws-deal-next span{font-size:12px;line-height:1.35}
html.pilot-mode .crmws-deal-next strong{font-size:13px}
@media(max-width:700px){html.pilot-mode .crmws-board{grid-auto-columns:calc(100% - 24px)}}

html.pilot-mode .crmws-stage-navigation{display:none}
@media(max-width:700px){html.pilot-mode .crmws-stage-navigation{display:flex;align-items:center;gap:10px;margin:0 0 10px;font-size:12px;color:var(--muted)}html.pilot-mode .crmws-stage-navigation select{flex:1;min-width:0;min-height:44px;padding:8px 12px;border:1px solid var(--control-border);border-radius:8px;background:var(--surface);color:var(--ink);font:inherit;font-size:13px}}
html.pilot-mode .crmws-heading h1{font-size:26px;line-height:1.25}
html.pilot-mode .crmws-heading p{font-size:14px;line-height:1.45}
html.pilot-mode .crmws-filters label,html.pilot-mode .crmws-pipeline-top label{font-size:13px}
html.pilot-mode .crmws-column>p{font-size:12px;line-height:1.45}
@media(max-width:700px){html.pilot-mode .crmws-heading h1{font-size:26px}}
/* A pessoa é a entrada visual; cada negócio conserva sua identidade e ação. */
.crmws-person-card{min-width:0;margin:0 0 12px;border:1px solid var(--line);border-radius:16px;background:var(--surface);overflow:hidden}
.crmws-person-head{display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:14px 14px 8px}
.crmws-person-open{appearance:none;border:0;padding:0;background:transparent;color:inherit;font:inherit;font-weight:650;text-align:left;cursor:pointer}
.crmws-person-open:hover{text-decoration:underline;text-underline-offset:3px}.crmws-person-open:focus-visible{outline:2px solid var(--focus);outline-offset:4px}
.crmws-person-head small{font-size:12px;color:var(--muted);line-height:1.35}.crmws-person-card .crmws-deal{margin:0 10px 10px}
html.pilot-mode .crmws-person-card .crmws-deal{margin:0;border:0;border-top:1px solid var(--line);border-radius:0;box-shadow:none;background:transparent}
html.pilot-mode .crmws-person-card .crmws-deal-open span{display:none}
html.pilot-mode .crmws-person-card .crmws-deal-open{padding-top:11px;padding-bottom:8px}
html.pilot-mode .crmws-person-card .crmws-deal-next{padding-top:8px}
html.pilot-mode .crmws-person-deals>summary{display:flex;align-items:center;min-height:44px;padding:6px 14px;border-top:1px solid var(--line);font-size:13px;cursor:pointer}
html.pilot-mode .crmws-person-deals>summary::after{content:'⌄';margin-left:auto;font-size:15px}html.pilot-mode .crmws-person-deals[open]>summary::after{content:'⌃'}
html.pilot-mode .crmws-person-deals>summary:hover{background:var(--hover,#8882)}html.pilot-mode .crmws-person-deals>summary:focus-visible{outline:2px solid var(--focus);outline-offset:-3px}
/* Uma faixa de trabalho; filtros avançados só ocupam espaço quando abertos. */
html.pilot-mode .crmws-pipeline-top{display:grid;grid-template-columns:minmax(150px,190px) auto minmax(180px,1fr) auto auto;gap:10px;align-items:end}
html.pilot-mode .crmws-pipeline-top>label:first-child{grid-column:1;margin:0}
html.pilot-mode .crmws-pipeline-top>.crmws-segment{grid-column:2;grid-row:1}
html.pilot-mode .crmws-pipeline-top>.crmws-search{grid-column:3;grid-row:1;margin:0;min-width:0}
html.pilot-mode .crmws-pipeline-top>.crmws-filter-toggle{grid-column:4;grid-row:1;display:block;min-height:44px;max-width:200px;padding:8px 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);font:inherit;font-size:13px;cursor:pointer}
html.pilot-mode .crmws-pipeline-top>.crmws-config-desktop{grid-column:5;grid-row:1}
html.pilot-mode .crmws-pipeline-top>.crmws-search input{width:100%;min-width:0;min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);font:inherit;font-size:14px}
html.pilot-mode .crmws-pipeline-filters:not(.filters-expanded){display:none}
@media(max-width:1000px){html.pilot-mode .crmws-pipeline-top{display:flex;flex-wrap:wrap;align-items:end}html.pilot-mode .crmws-pipeline-top>label:first-child{flex:1 1 170px}html.pilot-mode .crmws-pipeline-top>.crmws-search{flex:1 1 180px}html.pilot-mode .crmws-pipeline-top>.crmws-filter-toggle{flex:0 1 auto}}
@media(max-width:700px){html.pilot-mode .crmws-pipeline-top>label:first-child{flex:1 1 100%}html.pilot-mode .crmws-pipeline-top>.crmws-search{flex:1 1 54%;order:4}html.pilot-mode .crmws-pipeline-top>.crmws-filter-toggle{flex:1 1 36%;order:5;max-width:none;font-size:12px}html.pilot-mode .crmws-pipeline-top>.crmws-search input{font-size:16px}html.pilot-mode .crmws-pipeline-top .crmws-segment{margin-left:auto}}
html.pilot-mode .crmws-pipeline-top>label:first-child select{width:100%;min-width:0}
html.pilot-mode .crmws-person-open{max-width:100%;overflow-wrap:anywhere;line-height:1.35}
html.pilot-mode .crmws-person-head small,html.pilot-mode .crmws-deal-open strong,html.pilot-mode .crmws-deal-open small{max-width:100%;overflow-wrap:anywhere}

/* Controles secundários recolhidos no telefone, com recorte ativo explícito. */
html.pilot-mode .crmws-mobile-tools-toggle{display:none}
html.pilot-mode .crmws-migration-disclosure{display:block}
html.pilot-mode .crmws-migration-disclosure>summary{min-height:44px;display:flex;align-items:center;gap:8px;cursor:pointer;font-size:13px;font-weight:600;line-height:1.3}
html.pilot-mode .crmws-migration-disclosure>summary::after{content:'⌄';margin-left:auto;font-size:16px}
html.pilot-mode .crmws-migration-disclosure[open]>summary::after{content:'⌃'}
html.pilot-mode .crmws-migration-disclosure>p{margin:4px 0 10px}
@media(max-width:700px){
 html.pilot-mode .crmws-migration-disclosure{margin-bottom:10px;padding:0 12px}
 html.pilot-mode .crmws-pipeline-top>.crmws-mobile-tools-toggle{display:flex;align-items:center;justify-content:space-between;flex:1 1 100%;min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--ink);font:inherit;font-size:13px;text-align:left;cursor:pointer;order:3}
 html.pilot-mode .crmws-mobile-tools-toggle::after{content:'⌄';font-size:16px;margin-left:8px}
 html.pilot-mode .crmws-mobile-tools-toggle[aria-expanded=true]::after{content:'⌃'}
 html.pilot-mode .crmws-content:has(.crmws-mobile-tools-toggle[aria-expanded=false]) .crmws-search,html.pilot-mode .crmws-content:has(.crmws-mobile-tools-toggle[aria-expanded=false]) .crmws-filter-toggle,html.pilot-mode .crmws-content:has(.crmws-mobile-tools-toggle[aria-expanded=false]) .crmws-quick,html.pilot-mode .crmws-content:has(.crmws-mobile-tools-toggle[aria-expanded=false]) .crmws-pipeline-filters,html.pilot-mode .crmws-content:has(.crmws-mobile-tools-toggle[aria-expanded=false]) .crmws-summary{display:none}
}

html.pilot-mode .crmws-mobile-tools-toggle:focus-visible,html.pilot-mode .crmws-migration-disclosure>summary:focus-visible{outline:2px solid var(--focus);outline-offset:2px}

/* Controles do funil: busca sempre disponível e filtros em um único painel. */
html.pilot-mode .crmws-pipeline-top>.crmws-config-desktop{display:none}
html.pilot-mode .crmws-pipeline-top>.crmws-config-mobile{display:block;grid-column:5;grid-row:1;position:relative;order:5}
html.pilot-mode .crmws-config-mobile>summary{min-width:44px;min-height:44px;display:flex;align-items:center;justify-content:center;cursor:pointer}
html.pilot-mode .crmws-pipeline-top>.crmws-filter-toggle{order:4}
html.pilot-mode .crmws-pipeline-filters>.crmws-quick{flex:1 1 100%;padding-bottom:2px}
html.pilot-mode .crmws-active-slice{font-size:13px;color:var(--muted)}
@media(max-width:700px){
 html.pilot-mode .crmws-pipeline-top{display:flex;flex-direction:row;flex-wrap:wrap;align-items:end;gap:8px;margin-bottom:8px}
 html.pilot-mode .crmws-pipeline-top>label:first-child{flex:1 1 140px;min-width:0;order:0}
 html.pilot-mode .crmws-pipeline-top>label:first-child>span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
 html.pilot-mode .crmws-pipeline-top>.crmws-segment{order:1;flex:none;margin:0}
 html.pilot-mode .crmws-pipeline-top>.crmws-search{order:2;flex:1 1 100px;min-width:0}
 html.pilot-mode .crmws-pipeline-top>.crmws-search>span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
 html.pilot-mode .crmws-pipeline-top>.crmws-filter-toggle{order:3;flex:0 0 auto;max-width:100%;font-size:0}
 html.pilot-mode .crmws-pipeline-top>.crmws-filter-toggle::before{content:'Filtros';font-size:13px}
 html.pilot-mode .crmws-pipeline-top>.crmws-config-mobile{order:4;flex:none}
 html.pilot-mode .crmws-summary{margin:4px 0 8px}
}

/* O menu de funis usa a mesma superfície em desktop e telefone. */
html.pilot-mode .crmws-config-mobile summary{display:grid;place-items:center;min-height:44px;padding:0 15px;border:1px solid var(--line);border-radius:10px;list-style:none;cursor:pointer;font-size:13px}
html.pilot-mode .crmws-config-mobile summary::-webkit-details-marker{display:none}
html.pilot-mode .crmws-config-mobile>div{position:absolute;z-index:4;right:0;top:calc(100% + 5px);min-width:180px;padding:5px;background:var(--surface);border:1px solid var(--line);border-radius:10px;box-shadow:var(--shadow)}
html.pilot-mode .crmws-config-mobile button{display:block;width:100%;min-height:44px;padding:8px 10px;text-align:left;border:0;border-radius:7px;background:none;color:var(--ink);font:inherit}
html.pilot-mode .crmws-config-mobile button:hover{background:var(--tint)}

@media(max-width:700px){html.pilot-mode .crmws-pipeline-top>label:first-child{flex:1 1 110px}html.pilot-mode .crmws-pipeline-top>.crmws-filter-toggle{font-size:13px}html.pilot-mode .crmws-pipeline-top>.crmws-filter-toggle::before{content:none}}

@media(max-width:700px){html.pilot-mode .crmws-summary{display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px;min-height:0;margin:2px 0 6px}html.pilot-mode .crmws-summary>span{flex:1 1 145px}html.pilot-mode .crmws-summary>.crmws-stage-navigation{flex:0 1 105px;min-width:80px;margin:0}html.pilot-mode .crmws-summary>.crmws-stage-navigation span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}html.pilot-mode .crmws-summary>.crmws-stage-navigation select{width:100%;font-size:16px}html.pilot-mode .crmws-summary>.crmws-text-button{min-height:44px}}
html.pilot-mode .crmws-config-mobile>div{left:auto;right:0}

/* Continuidade: contexto, ferramentas e quadro têm papéis visuais distintos. */
html.pilot-mode .crmws-heading{align-items:center;margin-bottom:14px}
html.pilot-mode .crmws-tabs{gap:22px}
html.pilot-mode .crmws-tabs button{min-height:44px}
html.pilot-mode .crmws-content{padding-top:14px}
html.pilot-mode .crmws-pipeline-top{gap:8px;margin-bottom:8px}
html.pilot-mode .crmws-pipeline-top>.crmws-search input,
html.pilot-mode .crmws-pipeline-top>label:first-child select,
html.pilot-mode .crmws-pipeline-top>.crmws-filter-toggle{border-radius:15px}
html.pilot-mode .crmws-summary{line-height:1.5;margin:2px 0 8px}
html.pilot-mode .crmws-board{gap:16px;scroll-snap-type:x proximity;scroll-padding-inline:2px}
html.pilot-mode .crmws-column{scroll-snap-align:start;padding:0 4px}
html.pilot-mode .crmws-column>header{min-height:36px;border-bottom:1px solid var(--line)}
html.pilot-mode .crmws-column>header h2{font-size:14px;letter-spacing:-.01em}
html.pilot-mode .crmws-column>header span{min-width:24px;height:24px;display:grid;place-items:center;border-radius:50%;background:color-mix(in srgb,var(--link) 10%,var(--surface));color:var(--ink);font-variant-numeric:tabular-nums}
html.pilot-mode .crmws-column>p{margin:8px 0 11px;line-height:1.45}
html.pilot-mode .crmws-person-card{border-radius:18px 18px 18px 6px;background:var(--surface);box-shadow:0 2px 9px #24151b0c;transition:border-color 180ms ease,box-shadow 180ms ease}
html.pilot-mode .crmws-person-card:focus-within{border-color:var(--focus);box-shadow:0 0 0 1px var(--focus)}
html.pilot-mode .crmws-person-head{padding:13px 14px 10px;gap:3px}
html.pilot-mode .crmws-person-head .crmws-person-open{font-size:15px;letter-spacing:-.015em}
html.pilot-mode .crmws-person-card .crmws-deal-open{padding:10px 14px 9px;gap:5px}
html.pilot-mode .crmws-person-card .crmws-deal-open b{font-variant-numeric:tabular-nums;letter-spacing:-.01em}
html.pilot-mode .crmws-person-card .crmws-deal-next{padding:10px 14px 12px;gap:4px;background:color-mix(in srgb,var(--canvas) 38%,var(--surface))}
html.pilot-mode .crmws-person-card .crmws-deal-next .crmws-text-button{min-height:38px}
@media(hover:hover){html.pilot-mode .crmws-person-card:hover{border-color:color-mix(in srgb,var(--link) 48%,var(--line));box-shadow:0 5px 18px #24151b14}}
@media(max-width:700px){html.pilot-mode .crmws-heading{gap:12px;margin-bottom:10px}html.pilot-mode .crmws-content{padding-top:10px}html.pilot-mode .crmws-board{gap:12px}html.pilot-mode .crmws-person-card .crmws-deal-next .crmws-text-button{min-height:44px}}
@media(prefers-reduced-motion:reduce){html.pilot-mode .crmws-person-card{transition:none}}
/* Negócio e valor compartilham uma linha quando há espaço, sem ocultar referência. */
html.pilot-mode .crmws-person-card .crmws-deal-open{grid-template-columns:minmax(0,1fr) auto;align-items:start;column-gap:10px}
html.pilot-mode .crmws-person-card .crmws-deal-open>strong{grid-column:1;grid-row:1;min-width:0}
html.pilot-mode .crmws-person-card .crmws-deal-open>b{grid-column:2;grid-row:1;text-align:right;white-space:nowrap}
html.pilot-mode .crmws-person-card .crmws-deal-open>small{grid-column:1/-1}
@media(max-width:350px){html.pilot-mode .crmws-person-card .crmws-deal-open{grid-template-columns:minmax(0,1fr)}html.pilot-mode .crmws-person-card .crmws-deal-open>b{grid-column:1;grid-row:auto;text-align:left}}
html.pilot-mode .crmws-person-card .crmws-deal-open>b{max-width:10rem;white-space:normal;overflow-wrap:anywhere}
html.pilot-mode .crmws-person-card .crmws-deal[draggable=true] .crmws-deal-open{padding-right:36px}
/* O valor só divide a linha quando o próprio cartão comporta o título. */
html.pilot-mode .crmws-person-card{container-type:inline-size}
html.pilot-mode .crmws-person-card .crmws-deal-open{grid-template-columns:minmax(0,1fr)}
html.pilot-mode .crmws-person-card .crmws-deal-open>b{grid-column:1;grid-row:auto;text-align:left}
@container (min-width:380px){html.pilot-mode .crmws-person-card .crmws-deal-open{grid-template-columns:minmax(0,1fr) auto}html.pilot-mode .crmws-person-card .crmws-deal-open>b{grid-column:2;grid-row:1;text-align:right}}
