/* Approved consultation mockup; vehicle-matching workbench is untouched. */
.db-consult-designed{height:100%;min-height:0;display:flex;flex-direction:column;background:#fff}
.db-consult-designed [hidden]{display:none!important}
.db-consult-designed .db-consult-controls{flex-shrink:0;display:grid;grid-template-columns:1fr 1.08fr 1.14fr;gap:0;padding:0;margin:15px 21px 0;border:1px solid #dfe7f4;border-radius:7px;background:#fff;min-height:56px;box-sizing:border-box}
.db-consult-designed .db-consult-controls label{display:flex;flex-direction:row;align-items:center;gap:10px;min-width:0;padding:10px 13px;font-size:10px;color:#60789c;border:0;position:relative}
.db-consult-designed .db-consult-controls label+label::before{content:'';position:absolute;top:10px;bottom:10px;left:0;border-left:1px solid #d9e3f2}
.floating-window.db-detail-drawer .db-consult-designed .db-consult-controls :is(select,input){flex:1;min-width:0;width:100%;max-width:100%;font-size:11px;font-weight:600;height:29px;min-height:29px;padding:4px 6px;background:transparent;border:1px solid transparent;border-radius:5px;box-shadow:none;color:#213d66}
.floating-window.db-detail-drawer .db-consult-designed .db-consult-controls select[data-db-status]{color:#0966e8;background:#e3efff;border-color:#e3efff}
.floating-window.db-detail-drawer .db-consult-designed .db-consult-controls select[data-consult-meta=callState]{color:#28664e;background:#ecf7f0}
.db-consult-designed .db-consult-controls input:focus-visible,.db-consult-designed .db-consult-controls select:focus-visible{outline:2px solid #79aaff;outline-offset:1px}
.db-consult-designed .db-consult-context{display:flex;align-items:center;flex-shrink:0;gap:9px;margin:8px 21px 0;padding:9px 13px;min-height:41px;border:1px solid #e0e8f4;border-radius:6px;background:#fff;color:#7189a9;box-sizing:border-box;font-size:11px}
.db-consult-context>svg{width:25px;height:25px;flex:none;color:#58779e}.db-consult-designed .db-consult-context .db-consult-vehicle-label{font-size:10px;color:#788faf;white-space:nowrap}.db-consult-designed .db-consult-context strong{font-size:12px;color:#243f67;max-width:49%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.db-consult-designed .db-consult-context>span:not(.db-consult-vehicle-label){font-size:10px;border-left:1px solid #dee7f4;padding-left:9px;color:#9aabc2}.db-consult-designed .db-consult-context small{display:none}
.db-consult-designed .db-vehicle-shortcut{margin-left:auto;padding:5px 10px;border:1px solid #90b8ff;border-radius:5px;color:#1769e6;background:#fff;font-size:10px;font-weight:600;white-space:nowrap}
.db-consult-important{flex-shrink:0;display:flex;align-items:flex-start;gap:12px;margin:8px 21px 0;padding:11px 14px;border:1px solid #cce0ff;border-radius:7px;background:linear-gradient(120deg,#eff6ff,#edf7ff);color:#245fbc;box-sizing:border-box;min-height:76px}
.db-consult-important>svg{width:24px;height:24px;flex:none;color:#126bf4;margin-top:1px}.db-consult-important>div{flex:1;min-width:0}.db-consult-important header{display:flex;align-items:center;gap:12px}.db-consult-important h4{font-size:13px;font-weight:700;margin:0;color:#1269eb}.db-consult-important p{margin:5px 0 2px;font-size:12px;font-weight:600;color:#27446b;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.db-consult-important small{font-size:9px;color:#859cb9;line-height:1.5}.db-consult-important [data-consult-ui=unpin]{border:0;background:transparent;color:#7b9bc5;font-size:9px;padding:0;cursor:pointer}.db-consult-next-chip{display:inline-flex;align-items:center;align-self:center;max-width:28%;padding:5px 9px;border:1px solid #c4ddff;border-radius:15px;background:#e8f2ff;color:#2674e4;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.db-consult-designed .db-consult-log{position:relative;flex:1;min-height:90px;margin:9px 21px 0;padding:0 10px 8px 14px;border:1px solid #e0e8f4;border-radius:7px;overflow:auto;background:#fff;scrollbar-width:thin;overscroll-behavior:contain}
.db-consult-designed .db-consult-log>header{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:42px;margin:0 0 3px;padding:5px 0;background:#fff;box-sizing:border-box}.db-consult-designed .db-consult-log>header h4{font-size:15px;font-weight:750;color:#152e53;margin:0;white-space:nowrap}.db-consult-designed .db-consult-log>header h4 small{font-size:10px;font-weight:400;color:#8ba0be;margin-left:7px}
.db-consult-filters{display:flex;gap:5px}.db-consult-filters button{min-width:48px;min-height:27px;padding:5px 10px;border:0;border-radius:17px;background:#f0f4fa;color:#6d83a2;font-size:10px;line-height:1.4}.db-consult-filters button[aria-pressed=true]{background:#0969f6;color:#fff;box-shadow:0 3px 8px #1677ff16}
.db-consult-timeline{position:relative;min-width:0}.db-consult-designed .db-consult-entry{position:relative;display:grid;grid-template-columns:73px minmax(0,1fr);gap:13px;padding:0 0 8px;margin:0;border:0;min-width:0}.db-consult-designed .db-consult-entry::before{content:'';position:absolute;top:15px;bottom:-2px;left:66px;width:1px;background:#dce6f3}.db-consult-designed .db-consult-entry:last-child::before{bottom:19px}.db-consult-designed .db-consult-entry::after{content:'';position:absolute;top:15px;left:62px;width:9px;height:9px;border-radius:50%;background:#237bfa;box-shadow:0 0 0 4px #fff}.db-consult-designed .db-consult-entry.is-legacy::after{background:#afbed3}
.db-consult-designed .db-consult-entry time{display:flex;flex-direction:column;gap:3px;padding-top:12px;line-height:1.5;min-width:0;overflow-wrap:anywhere;color:#91a3bd}.db-consult-designed .db-consult-entry time b{font-size:10px;font-weight:650;color:#35547c}.db-consult-designed .db-consult-entry time span{font-size:9px;color:#7a91b1}
.db-consult-note-card{padding:10px 12px;border:1px solid #e0e8f4;border-radius:7px;min-width:0;background:#fff}.db-consult-note-card>header{display:flex;align-items:center;gap:10px;min-height:24px}.db-consult-kind{padding:3px 8px;border-radius:13px;background:#edf4ff;color:#3775cb;font-size:9px;font-weight:600;white-space:nowrap}.db-consult-entry[data-note-kind=phone] .db-consult-kind{background:#dcecff;color:#0965e2}.db-consult-entry.is-legacy .db-consult-kind{background:#eef2f8;color:#8093af}.db-consult-designed .db-consult-note-card>header>strong{font-size:12px;font-weight:700;color:#233e65;min-width:0}.db-consult-note-card [data-consult-ui=pin]{margin-left:auto;display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;min-width:26px;min-height:26px;background:transparent;border:0;border-radius:5px;color:#a4b6ce;padding:4px;cursor:pointer}.db-consult-note-card [data-consult-ui=pin] svg{width:18px;height:18px}.db-consult-note-card [data-consult-ui=pin]:hover,.db-consult-note-card [data-consult-ui=pin][aria-pressed=true]{background:#eaf3ff;color:#136df1}
.db-consult-designed .db-consult-note-card :is(.db-consult-note-text,.db-consult-preview){font-size:11px;font-weight:400;color:#6883a7;line-height:1.65;margin:6px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}.db-consult-designed .db-consult-note-card .db-consult-preview{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.db-consult-full summary{font-size:9px;color:#3d80df;cursor:pointer;margin-top:5px;list-style:none}.db-consult-full[open] summary{margin-bottom:8px}.db-consult-fulltext{font-family:inherit;font-size:11px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;margin:0;color:#58779e}.db-consult-filter-empty{font-size:11px;color:#9aaac1;padding:20px 10px;text-align:center;line-height:1.6}
.db-consult-designed .db-consult-composer{position:relative;flex-shrink:0;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;border:1px solid #cfe0f8;border-radius:8px 8px 0 0;margin:10px 0 0;padding:12px 21px 0;background:#fff;box-shadow:0 -4px 15px #347ce50b;box-sizing:border-box}
.db-consult-designed .db-consult-composer>label{font-size:15px;font-weight:750;color:#142d52;line-height:1.5}.db-consult-designed .db-consult-composer>small{font-size:9px;color:#8ca0bb;align-self:center}.db-consult-template-row{display:flex;align-items:center;gap:7px;grid-column:1/-1;padding-top:8px;border-top:1px solid #e5ecf6;min-width:0}.db-consult-template-row>span{font-size:10px;color:#6e88aa;white-space:nowrap;margin-right:6px}.db-consult-template-row button{font-size:10px;color:#425f89;line-height:1.5;min-height:25px;padding:3px 13px;border:1px solid #e1e8f2;border-radius:15px;background:#f3f6fb;white-space:nowrap}.db-consult-template-row button:hover{background:#e7f0ff;border-color:#c1d9ff;color:#1b6ee9}
.db-consult-designed .db-consult-composer textarea{height:88px;min-height:0;max-height:160px;resize:vertical;font-family:inherit;font-size:12px;line-height:1.65;border:1px solid #cfdbed;border-radius:6px;color:#29466f;background:#fff;padding:9px 11px;box-sizing:border-box}.db-consult-designed .db-consult-composer textarea::placeholder{font-size:11px;color:#9baec6}.db-consult-designed .db-consult-composer textarea:focus{outline:1px solid #6e9fec;border-color:#83adf0;box-shadow:0 0 0 2px #82b3ff0a}
.db-consult-designed .db-consult-feedback{font-size:10px;line-height:1.5;margin:0;color:#b75a55}.db-consult-designed .db-consult-composer footer{min-height:46px;margin:0 -21px;padding:5px 21px 8px;border:0;background:#fff;display:flex;gap:7px}.db-consult-designed .db-consult-composer footer>span{font-size:9px;color:#7a95b8;margin-right:auto}.db-consult-designed .db-consult-composer footer>button{height:32px;min-height:32px;min-width:88px;padding:5px 15px;font-size:11px;font-weight:600;border:1px solid #e5ebf3;border-radius:5px;background:#f1f5fa;color:#59769e}.db-consult-designed .db-consult-composer footer>button.primary{background:#086af8;border-color:#086af8;color:#fff;box-shadow:0 2px 5px #146ef012}
.db-consult-designed :is(button,summary):focus-visible{outline:2px solid #77a9f7;outline-offset:2px}
@media(min-height:900px){.db-consult-designed .db-consult-controls{min-height:62px;margin-top:18px}.db-consult-important{min-height:87px;padding-top:14px;padding-bottom:14px}.db-consult-designed .db-consult-composer textarea{height:100px}.db-consult-designed .db-consult-note-card{padding:13px}.db-consult-designed .db-consult-entry{padding-bottom:10px}.db-consult-designed .db-consult-note-card :is(.db-consult-note-text,.db-consult-preview){font-size:12px}.db-consult-designed .db-consult-log>header{min-height:47px}}
@media(max-height:850px){.db-consult-designed .db-consult-controls{margin-top:10px;min-height:49px}.db-consult-designed .db-consult-controls label{padding-top:6px;padding-bottom:6px}.db-consult-important{min-height:65px;padding-top:8px;padding-bottom:8px}.db-consult-important p{font-size:11px;margin-top:3px}.db-consult-important small{font-size:8px}.db-consult-designed .db-consult-context{min-height:37px;padding-top:6px;padding-bottom:6px}.db-consult-designed .db-consult-composer{margin-top:7px;padding-top:9px;gap:6px}.db-consult-designed .db-consult-composer textarea{height:70px}.db-consult-designed .db-consult-composer footer{min-height:41px;padding-bottom:6px}.db-consult-designed .db-consult-log>header{min-height:37px}}
@media(max-width:1150px){.db-consult-designed .db-consult-controls label{flex-direction:column;align-items:flex-start;gap:4px;padding:8px;font-size:9px}.db-consult-designed .db-consult-controls{grid-template-columns:.9fr .9fr 1.3fr}.db-consult-next-chip{font-size:8px;max-width:26%;padding:4px 7px}.db-consult-important{gap:9px}.db-consult-designed .db-consult-composer>small{font-size:8px}.db-consult-template-row{gap:5px}.db-consult-template-row button{padding-left:9px;padding-right:9px}}
@media(max-width:600px){.db-consult-designed :is(.db-consult-controls,.db-consult-context,.db-consult-important,.db-consult-log){margin-left:12px;margin-right:12px}.db-consult-designed .db-consult-composer{padding-left:12px;padding-right:12px}.db-consult-designed .db-consult-composer footer{margin-left:-12px;margin-right:-12px;padding-left:12px;padding-right:12px}.db-consult-designed .db-consult-entry{grid-template-columns:52px minmax(0,1fr);gap:9px}.db-consult-designed .db-consult-entry::before{left:48px}.db-consult-designed .db-consult-entry::after{left:44px}.db-consult-designed .db-consult-note-card{padding:8px}.db-consult-note-card>header{gap:5px}.db-consult-kind{font-size:8px;padding:3px 5px}.db-consult-important small{display:none}.db-consult-next-chip{max-width:30%}.db-consult-designed .db-consult-context strong{max-width:40%}}

/* Explicit consultation stages: no inference from contacts or prior records. */
.db-consult-stage{display:inline-flex;flex:none;padding:3px 7px;border-radius:12px;font-size:9px;font-weight:650;line-height:1.4;white-space:nowrap;background:#eaf3ff;color:#2868b8}
.db-consult-stage.is-second{background:#edf1ff;color:#5a59ad}.db-consult-stage.is-unclassified{background:#f0f2f6;color:#7b899e}
.db-consult-designed .db-consult-composer>.db-consult-stage-field{grid-column:1/-1;display:flex;align-items:center;gap:8px;font-size:11px;font-weight:650;color:#35547b}
.db-consult-stage-heading{flex:none;display:flex;flex-direction:column;gap:2px}.db-consult-stage-heading small{font-size:9px;color:#a85d52}
.db-consult-stage-choices{display:flex;flex:1;gap:7px;min-width:0}
.floating-window.db-detail-drawer .db-consult-designed .db-consult-stage-choice{display:flex;flex:1;min-width:0;min-height:43px;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:6px 8px;border:1px solid #cfdbed;border-radius:6px;background:#fff;color:#50647e;cursor:pointer}
.db-consult-stage-choice strong{font-size:12px;font-weight:650}.db-consult-stage-choice small{font-size:9px;line-height:1.3;color:inherit}
.floating-window.db-detail-drawer .db-consult-designed .db-consult-stage-choice[aria-pressed="true"]{border-color:#3478c4;background:#eaf3ff;color:#205f9f;box-shadow:inset 0 0 0 1px #3478c4}
.db-consult-designed .db-consult-stage-choice:focus-visible{outline:2px solid #79aaff;outline-offset:2px}
.db-consult-designed .db-consult-stage-choice:disabled{opacity:.65;cursor:wait}
.db-consult-filters{flex-wrap:wrap;justify-content:flex-end}.db-consult-filters button{min-width:36px;padding-left:8px;padding-right:8px}
.db-consult-note-card>header{flex-wrap:wrap;gap:6px}

/* Imported text stays immutable; literal date labels and content previews only. */
.db-consult-designed .db-consult-entry.is-source .db-consult-note-card{border-color:#d9e5f2;background:#fbfdff}
.db-consult-designed .db-consult-entry.is-source time b,.db-consult-designed .db-consult-entry.is-legacy time b{font-size:11px;font-weight:700;line-height:1.5}
.db-consult-designed .db-consult-entry.is-source time span,.db-consult-designed .db-consult-entry.is-legacy time span{font-size:9px;line-height:1.5;color:#74849a}
.db-consult-designed .db-consult-entry.is-source .db-consult-preview,.db-consult-designed .db-consult-entry.is-legacy .db-consult-preview{-webkit-line-clamp:3;color:#476481}
.db-consult-designed .db-consult-entry.is-source .db-consult-kind{background:#e9f1fa;color:#456a91}

/* Compact composer: prioritize reading past consultation records. */
.floating-window.db-detail-drawer .db-consult-designed .db-consult-composer{grid-template-columns:auto minmax(0,1fr);gap:5px;margin-top:6px;padding:8px 12px 0}
.floating-window.db-detail-drawer .db-consult-designed .db-consult-composer>label{grid-column:1;grid-row:1;align-self:center;font-size:12px;line-height:1.5}
.floating-window.db-detail-drawer .db-consult-designed .db-consult-composer>small{display:none}
.floating-window.db-detail-drawer .db-consult-designed .db-consult-composer>.db-consult-stage-field{grid-column:2;grid-row:1;justify-content:flex-end;gap:4px}
.floating-window.db-detail-drawer .db-consult-designed .db-consult-stage-heading{display:none}
.floating-window.db-detail-drawer .db-consult-designed .db-consult-stage-choices{flex:initial;gap:4px}
.floating-window.db-detail-drawer .db-consult-designed .db-consult-stage-choice{position:relative;flex:initial;min-height:25px;min-width:64px;padding:3px 9px;flex-direction:row;border-radius:5px;gap:0}
.floating-window.db-detail-drawer .db-consult-designed .db-consult-stage-choice strong{font-size:11px;line-height:1.4}
.floating-window.db-detail-drawer .db-consult-designed .db-consult-stage-choice small{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.floating-window.db-detail-drawer .db-consult-designed .db-consult-template-row{padding-top:0;border-top:0;gap:5px}
.floating-window.db-detail-drawer .db-consult-designed .db-consult-template-row>span{display:none}
.floating-window.db-detail-drawer .db-consult-designed .db-consult-template-row button{min-height:22px;padding:2px 9px;font-size:10px}
.floating-window.db-detail-drawer .db-consult-designed .db-consult-composer textarea{grid-column:1/-1;height:52px;min-height:52px;max-height:160px;padding:7px 9px}
.floating-window.db-detail-drawer .db-consult-designed .db-consult-composer textarea:focus{height:72px}
.floating-window.db-detail-drawer .db-consult-designed .db-consult-feedback{grid-column:1/-1}
.floating-window.db-detail-drawer .db-consult-designed .db-consult-feedback:empty{display:none}
.floating-window.db-detail-drawer .db-consult-designed .db-consult-composer footer{grid-column:1/-1;min-height:32px;margin:0 -12px;padding:3px 12px 6px;align-items:center}
.floating-window.db-detail-drawer .db-consult-designed .db-consult-composer footer>button{height:27px;min-height:27px;min-width:70px;padding:3px 11px}
@media(max-width:420px){.db-consult-designed .db-consult-composer{padding-left:8px;padding-right:8px}.floating-window.db-detail-drawer .db-consult-designed .db-consult-stage-choice{min-width:55px;padding:3px 6px}.db-consult-designed .db-consult-composer>label{font-size:11px}.db-consult-designed .db-consult-composer footer{margin-left:-8px;margin-right:-8px;padding-left:8px;padding-right:8px}}
