.tracking-intro h2{max-width:none}
.crm{margin:30px 0 23px;background:#fff;border:1px solid #b5cdc1;border-radius:14px;overflow:hidden;box-shadow:0 8px 28px #164a3910}
.crm [hidden],#crm-file [hidden],.crm[hidden],#crm-file:not([open]){display:none}
.crm button,#crm-file button{font-family:inherit;cursor:pointer}
.crm-head,.crm-tools,.crm-bottom,.file-bar,.file-tabs,.crm-views{display:flex;align-items:center}
.crm-head{padding:20px clamp(16px,2.7vw,35px);justify-content:space-between;gap:14px;border-bottom:1px solid var(--hair)}
.crm-title{display:flex;align-items:center;gap:12px}.crm-title span,#file-id{font-size:.86rem;color:var(--muted);font-weight:600}.crm-title h3{font-size:clamp(1.4rem,2.35vw,2rem);margin-top:3px}
.crm-link,.file-bar button{border:0;color:var(--blue);background:transparent;font-size:.93rem;font-weight:680;padding:10px 2px;text-underline-offset:4px}
.crm-link:hover,.file-bar button:hover{text-decoration:underline}
.crm-views,.file-tabs{gap:clamp(12px,2vw,27px);border-bottom:1px solid var(--hair);padding-inline:clamp(16px,2.7vw,35px)}
.crm-views button,.file-tabs button{display:flex;align-items:center;gap:6px;min-height:46px;padding:9px 0;background:none;border:0;border-bottom:3px solid transparent;color:var(--muted);font-size:.94rem;font-weight:680}
.crm-views [aria-pressed=true],.file-tabs [aria-pressed=true]{color:var(--blue);border-color:var(--blue)}
.crm-views span{padding:0 6px;border-radius:5px;background:#eef2f2;color:var(--ink);font-size:.82rem}.crm-views [aria-pressed=true] span{background:#e3edff;color:var(--blue)}
.crm-tools{padding:15px clamp(16px,2.7vw,35px);gap:14px;align-items:flex-end}
.crm-tools label,#crm-file label{display:grid;gap:5px;margin:0;font-size:.91rem;font-weight:650;color:var(--ink)}
.crm-tools input,.crm-tools select,#crm-file :is(input,select,textarea){font:inherit;color:var(--ink);background-color:white;border:1px solid #b1c5c4;border-radius:7px;padding:9px 12px;min-width:0;width:100%}
.crm-tools select,#crm-file select{padding-right:30px}
.crm-search{flex:auto;max-width:375px}.crm-stage{width:min(210px,37%)}
.crm-table{width:100%;border-collapse:collapse;text-align:left;font-size:.98rem}
.crm-table thead{background:#f2f6f5;color:#435b63}.crm-table thead th{white-space:nowrap;font-size:.86rem;font-weight:680;padding-block:9px}
.crm-table :is(th,td){padding:12px 14px;vertical-align:middle}.crm-table :is(th,td):first-child{padding-left:clamp(16px,2.7vw,35px)}
.crm-table tbody tr{border-top:1px solid #e0e8e4;cursor:pointer}.crm-table tbody tr:hover,.crm-table tbody tr:focus-within{background:#f3f7fc}
.crm-open{background:none;border:0;color:var(--blue);font-size:1.04rem;font-weight:720;text-align:left;padding:3px 0;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}
.crm-table small,#history-list small{display:block;font-size:.87rem;color:var(--muted);font-weight:450;margin-top:2px}
.crm-pill,.owner-tag{display:inline-block;border-radius:7px;padding:4px 8px;font-size:.88rem;font-weight:670;line-height:1.3}
.tone-quote{background:#ddeaff;color:#16498c}.tone-approval{background:#ffe2d5;color:#773b24}.tone-confirmed{background:#d4f2df;color:#1c6245}.tone-waiting{background:#e8e4fb;color:#514187}.tone-closed{background:#eaedee;color:#425768}.owner-tag{padding:0}
.crm-bottom{justify-content:space-between;gap:14px;border-top:1px solid var(--hair);padding:10px clamp(16px,2.7vw,35px);font-size:.85rem;color:var(--muted);background:#fafcfb}
.crm-empty{padding:22px;text-align:center}.crm-lock{overflow:hidden}
#crm-file{position:fixed;inset:0 0 0 auto;margin:0;width:min(530px,100%);max-width:100%;height:100%;max-height:100dvh;border:0;border-left:1px solid #b4c9c2;padding:0;background:#fff;color:var(--ink);box-shadow:-8px 0 45px #10274928;overscroll-behavior:contain}
#crm-file::backdrop{background:#10274966}#crm-file[open]{animation:drawer-in .18s ease-out}
.file-bar{position:sticky;top:0;z-index:1;justify-content:space-between;background:#edf5f0;border-bottom:1px solid var(--hair);padding:5px 24px;font-weight:650;font-size:.92rem}.file-bar button{min-height:44px}.file-bar button span{font-size:1.2rem;margin-left:5px}
.file-wrap{padding:22px clamp(18px,3vw,32px)}.file-title h3{margin:4px 0 7px;font-size:2.2rem}.file-title p,.file-blurb{color:var(--muted)}
.file-blurb{margin:15px 0;line-height:1.5}.file-tabs{padding:0;margin:0 0 20px}.file-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}
#crm-file form{display:grid;gap:15px}#crm-file form .btn{justify-self:start;padding:11px 18px}#crm-file label :is(input,select,textarea){font-weight:450;font-size:1rem}
#history-list{margin:20px 0 0;padding:0;list-style:none}#history-list li{border-top:1px solid var(--hair);padding:12px 0}#history-list small{color:var(--blue);font-weight:650}
.file-feedback{color:#20583f;font-weight:650;margin-top:14px}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@keyframes drawer-in{from{transform:translateX(25px);opacity:.4}to{transform:none;opacity:1}}
@media(max-width:720px){
 .crm-head{align-items:flex-start}.crm-title img{width:30px;height:30px}.crm-title{gap:8px}.crm-head .crm-link{max-width:90px;text-align:right;font-size:.84rem}.crm-views{gap:12px;flex-wrap:wrap}.crm-views button{font-size:.88rem}.crm-table :is(th,td){padding:8px 10px}
 .crm-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.crm-table tbody,.crm-table tr,.crm-table tbody th,.crm-table{display:block}
 .crm-table tbody tr{padding:10px 16px}.crm-table tbody th:first-child,.crm-table tbody td{padding:3px 0}.crm-table td{display:grid;grid-template-columns:7rem 1fr;gap:10px;align-items:baseline}.crm-table td::before{content:attr(data-label);color:var(--muted);font-size:.85rem}.crm-table td>*{justify-self:start}
 .crm-bottom{flex-wrap:wrap;gap:2px 10px}.crm-tools{gap:8px}.crm-stage{min-width:124px}.crm-title h3{font-size:1.28rem}
}
@media(max-width:440px){.crm-views{gap:0;justify-content:space-between;padding-inline:10px}.crm-views button{gap:3px;font-size:.80rem}.crm-views span{padding:0 4px}.crm-head{padding:12px}.crm-title img{display:none}.crm-tools{flex-wrap:wrap}.crm-tools label{width:100%;max-width:none}.file-fields{grid-template-columns:1fr}.crm-table td{grid-template-columns:6.3rem 1fr}}
@media(prefers-reduced-motion:reduce){#crm-file[open]{animation:none}}
