/* V84AL: scoped to native CRM, inherits TIX palette and theme. */
#tix-commercial-crm-v84al{display:grid;gap:16px;min-width:0}
#tix-commercial-crm-v84al .metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:12px;margin:0}
#tix-commercial-crm-v84al .metric{min-height:94px;min-width:0}
#tix-commercial-crm-v84al .c84-form{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px;margin:12px 0}
#tix-commercial-crm-v84al .c84-form .cols{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;flex:1 1 620px;margin:0}
#tix-commercial-crm-v84al label{display:grid;gap:6px;min-width:0;flex:1 1 180px}
#tix-commercial-crm-v84al :is(input,select){min-width:0;width:100%;box-sizing:border-box;max-width:100%}
#tix-commercial-crm-v84al .c84-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
#tix-commercial-crm-v84al .c84-table-wrap{overflow-x:auto;margin-top:12px}
#tix-commercial-crm-v84al td{vertical-align:top;overflow-wrap:anywhere}
#tix-commercial-crm-v84al .c84-btn{white-space:normal;text-align:left;min-height:36px}
#tix-commercial-crm-v84al [hidden]{display:none!important}
#tix-commercial-crm-v84al #v84al-detail input{margin:8px 0}
@media(max-width:600px){#tix-commercial-crm-v84al .metrics{grid-template-columns:repeat(2,minmax(0,1fr))}#tix-commercial-crm-v84al .c84-form .cols{grid-template-columns:1fr}#tix-commercial-crm-v84al .c84-table-wrap table{min-width:640px}}

/* V84BG: scoped commercial pipeline, six stages in one row. */
[data-tix-v84bf-commercial] .c84-board.compact{grid-template-columns:repeat(6,minmax(178px,1fr));gap:10px;overflow-x:auto;align-items:start;padding-bottom:10px}
[data-tix-v84bf-commercial] .c84-column{min-height:150px;min-width:0;border-top-color:var(--c84-edge);gap:8px}
[data-tix-v84bf-commercial] .c84-column header{align-items:flex-start;min-height:34px}
[data-tix-v84bf-commercial] .c84-person small{display:block;overflow-wrap:anywhere;word-break:normal;font-size:11px;line-height:1.4}
[data-tix-v84bf-commercial] .c84-lead{cursor:default;min-width:0}
