.ex-workspace{max-width:1360px;margin:0 auto;min-width:0}.ex-workspace h2{font-size:18px;margin:0}.ex-workspace fieldset{border:0;padding:0;margin:0;min-width:0}.ex-workspace .panel{padding:20px;margin-bottom:16px}.ex-workspace .form-grid{gap:12px 16px;margin:10px 0}.ex-workspace input,.ex-workspace select,.ex-workspace textarea{width:100%;min-width:0}.ex-workspace textarea{resize:vertical}.ex-workspace button{white-space:normal}.ex-toolbar{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap}.ex-toolbar>label{min-width:180px;flex:1}.ex-toolbar>label:first-child{flex:2}.ex-inline-panel{background:#f6f8fb;border:1px solid #dbe4f0;border-radius:10px;padding:16px;margin:16px 0}.ex-inline-panel>button{margin:10px 8px 0 0}.ex-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;flex-wrap:wrap}.ex-section-heading h2 small{font-size:13px;color:#6b7e92;margin-left:6px;font-weight:400}.ex-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.ex-list-filters{display:flex;gap:10px;align-items:center;flex-wrap:wrap;border-top:1px solid #e1e7f0;padding-top:18px;margin-top:20px}.ex-list-filters>input{flex:2;min-width:200px}.ex-list-filters>select{flex:1;min-width:135px}.ex-list-filters details{position:relative}.ex-list-filters details[open]{min-width:180px}.ex-list-filters summary{cursor:pointer;color:#4966af;font-size:13px}.ex-result-line{display:flex;justify-content:space-between;margin:22px 0 12px;font-size:13px}.ex-record-list{display:grid;gap:10px}.ex-record-row{border:1px solid #dce5f0;border-radius:10px;padding:16px;display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:18px;align-items:center;background:#fbfcfe}.ex-record-row p{margin:6px 0;font-size:13px;color:#6b7e92}.ex-record-row small{color:#7c8b9e;font-size:12px;overflow-wrap:anywhere}.ex-record-name{font-size:16px;font-weight:650;text-align:left;overflow-wrap:anywhere}.ex-record-states{display:flex;flex-wrap:wrap;gap:6px;max-width:200px}.ex-record-states small{flex-basis:100%}.ex-editor-heading{display:flex;align-items:center;gap:16px;margin:14px 0 20px;flex-wrap:wrap}.ex-editor-heading>div{flex:1;min-width:140px}.ex-editor-heading h1{font-size:24px;margin:0 0 5px;overflow-wrap:anywhere}.ex-editor-heading p{margin:0;font-size:12px;color:#75879a;overflow-wrap:anywhere}.ex-editor>.panel{scroll-margin-top:20px}.ex-contact-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(260px,1fr);gap:18px;align-items:stretch}.ex-contact-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px}.ex-files{border:1px solid #dbe4f0;border-radius:9px;background:#f8fafc;padding:12px;min-width:0}.ex-files-title{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:13px;flex-wrap:wrap}.ex-file-button{position:relative;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;min-height:36px;border:1px solid #c9d7eb;background:#fff;color:#3f5fb0;padding:6px 10px;border-radius:7px;font-size:13px;font-weight:500;overflow:hidden;white-space:nowrap}.ex-file-button:focus-within{outline:2px solid #3f5fb0;outline-offset:2px}.ex-file-button input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.ex-file-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:9px;margin-top:10px}.ex-file-tile{min-width:0;background:white;border:1px solid #e1e7f0;border-radius:7px;padding:5px}.ex-image-button{display:block;width:100%;padding:0!important;border:0!important;border-radius:5px;background:#eff3f7;min-height:0!important}.ex-file-tile img{display:block;width:100%;height:150px;object-fit:contain;border-radius:5px;background:#f4f6f9}.ex-file-tile audio{width:100%;min-width:150px;height:40px}.ex-file-caption{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-top:5px;font-size:11px;color:#7b8a9d;min-width:0}.ex-file-caption>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ex-file-caption button{font-size:11px;min-height:30px;padding:0 3px}.ex-file-empty{font-size:12px;color:#8191a5;margin:20px 0 12px;line-height:1.7}.ex-files[data-category=voice]{margin-top:9px;padding:8px 10px;background:transparent}.ex-files[data-category=voice] .ex-file-grid{grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}.ex-files[data-category=voice] .ex-file-empty{display:none}.ex-files[data-category=voice] .ex-files-title{font-size:12px;color:#75879a}.ex-optional{margin-top:16px;border-top:1px solid #e1e7f0;padding-top:12px}.ex-optional summary{font-size:12px;color:#6c7e93;cursor:pointer}.ex-optional[open]>.ex-files{margin-top:12px}.ex-convert{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap;margin-top:16px}.ex-convert>label{flex:1;min-width:130px}.ex-convert>small{flex-basis:100%}.ex-converted{padding:12px 0;color:#367e65;font-size:13px}.ex-sample{border-top:1px solid #e1e7f0;padding-top:18px;margin-top:18px}.ex-sample>.ex-section-heading{margin-bottom:8px}.ex-sample .tag{margin-right:6px}.ex-sample-body{display:flex;align-items:flex-start;gap:16px}.ex-company-photo{width:175px;flex-shrink:0;text-align:center;border:1px solid #e1e7f0;border-radius:8px;padding:8px}.ex-company-photo img{width:100%;height:160px;object-fit:contain;cursor:zoom-in}.ex-company-photo small{font-size:11px;color:#8995a4}.ex-sample-inputs{flex:1;min-width:0}.ex-sample-inputs>.ex-files{margin-bottom:12px}.ex-voice-row{margin:9px 0 0}.ex-voice-row button{font-size:12px;padding:6px 10px;min-height:34px}.ex-empty{color:#7b8b9f;text-align:center;padding:20px;font-size:13px}.ex-sample-search{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.ex-sample-search>input{flex:1;min-width:180px}.ex-picker-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px;max-height:460px;overflow:auto}.ex-picker-grid article{display:flex;gap:10px;background:white;border:1px solid #dce5f0;border-radius:7px;padding:9px;min-width:0}.ex-picker-grid img{width:70px;height:78px;object-fit:contain}.ex-picker-grid article>div{min-width:0;flex:1}.ex-picker-grid article p{font-size:12px;line-height:1.45;color:#75879a;margin:3px 0 7px;overflow-wrap:anywhere}.ex-picker-grid article button{font-size:12px;padding:5px 8px;min-height:32px}.ex-camera{position:relative;max-width:450px;margin:12px auto}.ex-camera video{width:100%;max-height:300px;background:#17243e;border-radius:8px}.ex-camera>button{position:absolute;bottom:15px;right:12px;background:white}.ex-add-task{display:flex;gap:10px;margin:20px 0 10px}.ex-add-task input{flex:1}.ex-task{margin:12px 0;padding:14px;border:1px solid #dce5f0;border-radius:8px;background:#fbfcfe}.ex-task-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:10px 0}.ex-task label{font-size:12px}.ex-conclusion{display:block;margin-top:20px}.ex-add-follow{display:flex;gap:10px;align-items:flex-end;margin-top:18px}.ex-add-follow textarea{flex:1}.ex-timeline{max-height:420px;overflow:auto;margin-top:16px}.ex-timeline article{padding:10px 0;border-top:1px solid #e8edf4;font-size:12px}.ex-timeline article>div{display:flex;gap:8px;align-items:center;justify-content:space-between;flex-wrap:wrap}.ex-timeline small{color:#8b98aa;font-size:11px}.ex-timeline p{color:#6b7e92;line-height:1.7;margin:5px 0;white-space:pre-wrap;overflow-wrap:anywhere}.ex-save-bar{position:sticky;bottom:0;z-index:12;display:flex;align-items:center;gap:10px;background:rgba(255,255,255,.97);border:1px solid #dce5f0;border-radius:9px;padding:12px 16px;box-shadow:0 -4px 18px #19274308}.ex-save-bar>span{flex:1;font-size:12px;color:#608876}.ex-save-bar>span.unsaved{color:#986e31}.ex-error{position:sticky;bottom:78px;z-index:13;background:#fff4f0;padding:12px;border:1px solid #edc8bf;border-radius:8px;font-size:13px;overflow-wrap:anywhere}.ex-conflict,.ex-recovery{padding:12px 14px;background:#fff7e8;border:1px solid #eed6a9;border-radius:8px;font-size:13px;margin:12px 0}.ex-qr-panel{display:flex;gap:22px;align-items:center;padding:20px;margin:18px 0;background:#f7f9fc;border:1px solid #dbe4f0;border-radius:10px}.ex-qr-panel>img{width:210px;height:210px;image-rendering:pixelated;border:8px solid white}.ex-qr-panel>div{flex:1;min-width:0}.ex-qr-panel p{font-size:13px;color:#6b7e92}.ex-qr-panel input{margin-bottom:12px;font-size:11px}.ex-qr-panel small{font-size:11px;color:#8996a9;display:block;margin-top:8px}.ex-qr-panel a.button{display:inline-flex;align-items:center;text-decoration:none;border:1px solid #c9d7eb;padding:8px 12px;border-radius:7px;color:#3f5fb0;background:white;font-size:13px}.ex-lightbox{position:fixed;inset:0;z-index:1000;background:#101e33ee;display:flex;align-items:center;justify-content:center;padding:45px 20px}.ex-lightbox>img{max-width:100%;max-height:100%;object-fit:contain}.ex-lightbox>.close{position:absolute;top:12px;right:15px;background:white;width:38px;height:38px}.ex-public{max-width:570px;margin:0 auto;padding:35px 18px;min-height:100dvh}.ex-public-brand{font-size:25px;color:#192743;font-weight:700;letter-spacing:2px;padding:8px 0 25px}.ex-public-brand span{font-size:11px;letter-spacing:3px;color:#7c8da5;margin-left:12px}.ex-public .panel{padding:28px}.ex-public h1{font-size:26px;margin-top:0}.ex-public .panel>p{font-size:13px;color:#718198;margin-bottom:24px}.ex-public form{display:grid;gap:14px}.ex-public label{font-size:13px}.ex-public small{font-size:12px;color:#7d8a9d}.ex-public-footer{text-align:center;font-size:10px;letter-spacing:1px;color:#8998ab;margin:25px 0}.ex-honeypot{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.ex-public input,.ex-public textarea{width:100%;min-width:0}
@media(max-width:980px){.ex-contact-grid{grid-template-columns:minmax(0,1.2fr) minmax(210px,1fr)}.ex-contact-fields{grid-template-columns:1fr}.ex-task-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.ex-workspace .panel{padding:15px 12px;border-radius:10px;margin-bottom:12px}.ex-workspace .page-heading p{font-size:13px}.ex-workspace .form-grid{gap:12px}.ex-toolbar{gap:9px}.ex-toolbar>label,.ex-toolbar>label:first-child{flex-basis:calc(50% - 9px);min-width:115px}.ex-toolbar>button{font-size:12px;min-height:38px}.ex-list-filters{gap:8px}.ex-list-filters>input{flex-basis:100%;min-width:0}.ex-list-filters>select{min-width:110px}.ex-record-row{grid-template-columns:minmax(0,1fr) auto;gap:10px;padding:12px}.ex-record-row>div:first-child{grid-column:1/-1}.ex-record-states{max-width:none}.ex-record-name{font-size:15px}.ex-record-row>button{font-size:12px;padding:6px 9px;min-height:36px}.ex-editor-heading{gap:10px;margin-top:12px}.ex-editor-heading>.back-link{flex-basis:100%;text-align:left;padding-left:0}.ex-editor-heading h1{font-size:21px}.ex-editor-heading>button.primary{font-size:12px;padding:8px 10px}.ex-section-heading{gap:8px;margin-bottom:12px}.ex-section-heading h2{font-size:16px}.ex-section-heading>.subtle{font-size:11px}.ex-section-heading .ex-actions{width:100%}.ex-section-heading .ex-actions>button{flex:1;font-size:13px;padding:9px 6px}.ex-contact-grid{grid-template-columns:1fr;gap:14px}.ex-contact-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.ex-contact-fields label{font-size:12px}.ex-contact-panel .ex-files[data-category=wechat]{background:#f4f7fc;border-color:#cddcf1}.ex-file-tile img{height:145px}.ex-file-grid{grid-template-columns:repeat(auto-fit,minmax(110px,1fr))}.ex-files[data-category=voice] .ex-file-grid{grid-template-columns:1fr}.ex-optional summary{line-height:1.7}.ex-sample-body{flex-direction:column;gap:10px}.ex-company-photo{width:100%;display:flex;align-items:center;gap:12px;padding:8px}.ex-company-photo img{width:105px;height:105px}.ex-sample-inputs{width:100%}.ex-sample>.ex-section-heading b{font-size:11px;overflow-wrap:anywhere}.ex-sample>.ex-section-heading>div{min-width:0;flex:1}.ex-sample>.ex-section-heading>.link{font-size:11px}.ex-sample-inputs .form-grid{grid-template-columns:1fr}.ex-sample-search>input{min-width:0;flex-basis:100%}.ex-picker-grid{grid-template-columns:1fr;max-height:400px}.ex-inline-panel{padding:11px}.ex-task{padding:10px}.ex-task-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.ex-add-task{gap:8px}.ex-add-task button{font-size:12px;padding:8px;min-width:72px}.ex-add-follow{flex-direction:column;align-items:stretch}.ex-save-bar{border-radius:8px;padding:10px;gap:7px;flex-wrap:wrap;bottom:env(safe-area-inset-bottom,0px)}.ex-save-bar>span{flex-basis:100%;font-size:11px}.ex-save-bar>button{flex:1;min-height:40px;font-size:13px}.ex-error{bottom:106px}.ex-qr-panel{flex-direction:column;padding:14px;gap:8px}.ex-qr-panel>div{width:100%}.ex-qr-panel>img{width:195px;height:195px}.ex-qr-panel h2{font-size:16px}.ex-qr-panel .ex-actions{gap:7px}.ex-qr-panel .ex-actions>button,.ex-qr-panel a.button{font-size:12px;min-height:34px;padding:7px 9px}.ex-public{padding:20px 12px}.ex-public .panel{padding:20px 16px}.ex-public h1{font-size:23px}}
@media(max-width:350px){.ex-contact-fields{grid-template-columns:1fr}.ex-task-fields{grid-template-columns:1fr}.ex-workspace .form-grid{grid-template-columns:1fr}.ex-editor-heading h1{font-size:19px}.ex-file-grid{grid-template-columns:1fr}}

.ex-files[data-category=voice]{border:0;padding:0;margin-top:10px}.ex-files[data-category=voice] .ex-files-title>.ex-actions{gap:7px}.ex-files[data-category=voice] .ex-files-title button{min-height:32px;font-size:12px;padding:5px 9px}.ex-files[data-category=voice] .ex-file-button{min-height:32px;font-size:12px;padding:5px 8px}

/* V0.7.1: keep capture actions, filters and the current sample visually distinct. */
.ex-heading-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.ex-page-heading p{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.ex-page-heading p button{min-height:24px;padding:0 4px;font-size:12px}.ex-query-form{display:grid;gap:14px}.ex-filter-row{display:grid;grid-template-columns:minmax(150px,1.4fr) repeat(3,minmax(105px,1fr)) auto;gap:12px;align-items:end}.ex-filter-row>label+label{margin:0}.ex-filter-row>label{font-size:12px}.ex-query-actions{display:flex;gap:8px}.ex-query-actions button{min-height:42px}.ex-result-line{align-items:center;justify-content:flex-start;gap:20px;margin:16px 0 10px}.ex-result-line .check{margin:0;font-size:12px}.ex-result-line>span{margin-left:auto}.ex-table-wrap{max-width:100%;overflow:auto}.ex-record-table{table-layout:fixed;width:100%;min-width:0}.ex-record-table th,.ex-record-table td{padding:13px 10px;overflow-wrap:anywhere;min-width:0}.ex-record-table th:first-child{width:24%}.ex-record-table th:nth-child(2){width:18%}.ex-record-table th:last-child{width:115px}.ex-record-table .ex-record-row{display:table-row;border:0;border-radius:0;padding:0;background:white}.ex-record-table .ex-record-row:hover{background:#f8fafc}.ex-record-table .ex-record-name{font-size:14px;text-align:left;padding:0;min-height:24px}.ex-record-table td p{margin:3px 0;font-size:12px}.ex-record-table td small{display:block;font-size:10px;margin-top:4px}.ex-record-table .ex-row-action button{font-size:12px;min-height:36px;padding:7px 9px}.ex-record-table .tag{font-size:11px;white-space:nowrap}.ex-editor-heading p button{padding:0 3px;min-height:24px;font-size:11px}.ex-overview-panel textarea{display:block;width:100%;margin-top:8px}.ex-first-followup{display:flex;justify-content:space-between;align-items:center;gap:16px;border-top:1px solid #e1e7f0;margin-top:15px;padding-top:13px}.ex-first-followup b{font-size:12px}.ex-follow-options{display:flex;gap:7px;margin-top:8px}.ex-follow-options button{font-size:12px;min-height:34px;padding:6px 12px}.ex-follow-options .selected{color:#fff;background:#3f5fb0;border-color:#3f5fb0}.ex-first-status{display:flex;flex-direction:column;align-items:flex-end;gap:7px}.ex-first-status small{font-size:11px;color:#75879a}.ex-first-status small.form-error{color:#b04c38}.ex-first-status button{font-size:12px;min-height:32px;padding:5px 10px}.ex-sample-step-actions{display:flex;gap:9px;justify-content:flex-end;margin-top:14px}.ex-sample-step-actions button{font-size:13px;min-height:38px}.ex-active-sample{background:#f8faff;border:1px solid #d7e1f1;border-radius:9px;padding:14px;margin-top:14px;scroll-margin:20px}.ex-added-samples{margin-top:14px;border-top:1px solid #e1e7f0;padding-top:9px}.ex-samples-toggle{font-size:12px;text-align:left}.ex-sample-summaries{display:grid;gap:8px;margin-top:8px}.ex-sample-summary{display:flex;gap:12px;width:100%;padding:10px;text-align:left;align-items:center;white-space:normal}.ex-sample-summary img{width:48px;height:48px;object-fit:contain}.ex-sample-summary>div{flex:1;min-width:0}.ex-sample-summary b{font-size:12px;overflow-wrap:anywhere}.ex-sample-summary p{font-size:12px;font-weight:400;color:#75879a;margin:4px 0;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.ex-sample-summary>span{font-size:11px;flex-shrink:0}.ex-follow-panel>summary,.ex-occurrences>summary{cursor:pointer;font-size:16px;font-weight:650;list-style-position:inside}.ex-follow-panel>summary .subtle,.ex-occurrences>summary .subtle{font-size:12px;font-weight:400;margin-left:8px}.ex-follow-panel[open]>summary{margin-bottom:16px}.ex-modal-mask{position:fixed;inset:0;z-index:140;background:#17243e66;display:flex;align-items:center;justify-content:center;padding:24px}.ex-context-dialog{max-width:720px;width:100%;max-height:90dvh;overflow:auto}.ex-context-dialog>.form-grid{margin-bottom:18px}.ex-context-dialog .ex-qr-panel{margin-bottom:0}.ex-context-dialog .ex-qr-panel>img{width:185px;height:185px}.ex-dictionary{padding:22px;min-width:0}.ex-dictionary input,.ex-dictionary select{width:100%;min-width:0}.ex-dictionary .check input{width:auto}.ex-dictionary .ex-section-heading p{font-size:12px;margin:5px 0}.ex-dictionary h2{font-size:18px}.ex-occurrences{margin-top:20px;border-top:1px solid #e1e7f0;padding-top:16px}.ex-occurrences[open]>summary{margin-bottom:15px}
@media(max-width:1100px){.ex-filter-row{grid-template-columns:repeat(4,minmax(0,1fr))}.ex-query-actions{grid-column:1/-1;justify-content:flex-end}.ex-record-table th:first-child{width:23%}.ex-record-table th:nth-child(2){width:15%}.ex-record-table th:last-child{width:100px}}
@media(max-width:760px){.ex-page-heading{display:block}.ex-heading-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;width:100%;margin-top:12px}.ex-heading-actions button{font-size:13px;min-height:42px;padding:8px}.ex-query-form{gap:11px}.ex-filter-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.ex-query-actions{justify-content:stretch}.ex-query-actions>button{flex:1}.ex-table-wrap{overflow:visible}.ex-record-table,.ex-record-table tbody{display:block}.ex-record-table thead{display:none}.ex-record-table .ex-record-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:12px;margin:0 0 10px;border:1px solid #dce5f0;border-radius:9px;background:#fbfcfe}.ex-record-table td{display:block;padding:0;border:0;font-size:12px;min-width:0}.ex-record-table td[data-label]::before{content:attr(data-label);display:block;color:#8b98aa;font-size:10px;margin-bottom:3px}.ex-record-table td.ex-customer-cell{grid-column:1/-1;border-bottom:1px solid #e4eaf2;padding-bottom:8px}.ex-record-table td.ex-row-action{display:flex;justify-content:flex-end;align-items:end}.ex-record-table .ex-record-name{font-size:15px}.ex-first-followup{align-items:flex-start;flex-direction:column;gap:8px}.ex-first-status{align-items:flex-start;flex-direction:row;align-items:center;flex-wrap:wrap}.ex-first-followup>div:first-child{width:100%}.ex-follow-options button{flex:1;min-height:38px}.ex-sample-step-actions{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr)}.ex-sample-step-actions button{min-width:0;padding:8px 6px;font-size:12px}.ex-follow-panel>summary{font-size:15px}.ex-follow-panel>summary .subtle{display:block;margin:7px 0 0 16px}.ex-modal-mask{padding:12px}.ex-context-dialog{max-height:92dvh}.ex-context-dialog>.form-grid{grid-template-columns:1fr}.ex-dictionary{padding:15px 12px}.ex-dictionary .form-grid{grid-template-columns:1fr}.ex-dictionary td,.ex-dictionary th{padding:12px 8px;min-width:0;font-size:12px}.ex-dictionary .ex-inline-panel{margin-left:0;margin-right:0}}

.ex-result-line{flex-wrap:wrap;column-gap:16px;row-gap:8px}.ex-result-line label.check{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;flex:none}.ex-result-line input[type=checkbox]{width:15px;height:15px;min-width:15px;flex:none}.ex-editor-heading>.back-link{justify-content:flex-start}.ex-follow-options button.selected:disabled{opacity:1;color:#fff!important;background:#6b7fa9}.ex-delete{color:#b04c38!important}

.ex-data-confirmation,.ex-contact-actions,.ex-transfer-panel{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:16px}.ex-transfer-panel{border-top:1px solid var(--line,#e5e7eb);padding-top:16px;justify-content:space-between}.ex-transfer-panel p{margin:0;max-width:650px}.dev-workspace fieldset{border:0;padding:0;margin:0;min-width:0}.dev-workspace .ex-record-table td p{margin:0 0 4px}.dev-workspace .ex-error button{margin-left:12px}.ex-first-contact-panel fieldset{border:0;padding:0;min-width:0}@media(max-width:600px){.ex-data-confirmation,.ex-contact-actions,.ex-transfer-panel{gap:10px}.ex-transfer-panel button{width:100%}.dev-workspace .ex-task-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* D26: explicit selection, quiet help, single save area and mobile safe edges. */
.ex-workspace .selected,.ex-actions button.selected {background:#163f70!important;color:#fff!important;border:2px solid #163f70!important}
.ex-actions button[aria-pressed="false"]{background:#fff;color:#163f70;border:1px solid #8298b2}
.ex-info{display:inline-block;position:relative;font-size:14px;color:#465b73;margin:0 6px}
.ex-info>summary{cursor:pointer;list-style:none;font-size:19px}.ex-info[open]>p{padding:12px;background:#f1f5fa;border:1px solid #c8d3df;border-radius:8px;max-width:420px;color:#34465a}
.ex-image-entry{margin:12px 0;border:1px solid #dce3ed;border-radius:9px;padding:12px}.ex-image-entry>summary{cursor:pointer;font-weight:600;min-height:26px}
.ex-file-empty{display:none}.ex-heading-main{min-width:0;flex:1}.ex-heading-main h1{overflow-wrap:anywhere}.ex-heading-main p{display:block;white-space:normal}.ex-number b{white-space:nowrap}.ex-number{display:flex!important;flex-wrap:wrap;gap:8px;align-items:center}
.ex-flow-action{width:100%;min-height:48px;font-weight:700}.ex-flow-action:disabled{background:#e2e6ed!important;border-color:#d2d9e2!important;color:#788495!important;opacity:1}
.ex-data-confirmation{display:block}.ex-save-bar button{background:#fff!important;color:#26456a!important;border:1px solid #9aacc0!important;min-height:44px}.ex-more summary{cursor:pointer;white-space:nowrap}.ex-sample-summary{cursor:default!important}
@media(max-width:700px){.ex-editor{padding:0 16px!important;box-sizing:border-box;min-width:0}.ex-editor-heading{display:flex!important;flex-wrap:wrap;gap:12px!important;padding:16px 0!important}.ex-editor-heading>.back-link{flex-basis:100%}.ex-editor-heading>.ex-heading-main{flex-basis:calc(100% - 90px)}.ex-editor-heading h1{font-size:24px;line-height:1.35;margin:0 0 10px}.ex-editor .panel{min-width:0;max-width:100%;box-sizing:border-box}.ex-contact-fields{display:grid;grid-template-columns:1fr!important;gap:12px}.ex-contact-fields .span2{grid-column:auto}.ex-save-bar{left:0;right:0;width:auto;padding:12px max(16px,env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));box-sizing:border-box;flex-wrap:wrap}.ex-save-bar>span{flex-basis:100%}.ex-save-bar>button{flex:1;font-size:14px;white-space:normal}.ex-editor{padding-bottom:150px!important}.ex-sample-summary{flex-wrap:wrap}.ex-sample-summary>.ex-actions{margin-left:auto}.ex-first-contact-panel .ex-transfer-panel{display:block}.ex-first-contact-panel .ex-transfer-panel button{margin-top:10px}}

.ex-analysis-panel .agent-results>summary,.ex-analysis-panel .agent-results>.integration-actions{display:none}.ex-analysis-panel .agent-results{border:0;box-shadow:none;padding:0;margin:12px 0 0}.ex-analysis-panel .agent-entry{margin-top:0}

/* V0.7.8 D29 — confirmed record layout, inline help and public catalogue page. */
.ex-workspace,.dev-workspace,.ex-list-panel,.ex-table-wrap{box-sizing:border-box;min-width:0;max-width:100%}
.ex-record-table th:last-child{width:182px}.ex-record-table .ex-row-action{white-space:normal;text-align:right}.ex-record-table .ex-row-action button{max-width:100%;margin:3px;vertical-align:middle;white-space:normal;overflow-wrap:anywhere}.ex-record-table .ex-row-action .ex-delete{display:inline-flex;min-width:44px;justify-content:center}
.ex-editor-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:nowrap}.ex-editor-heading>.ex-heading-main{flex:1;min-width:0}.ex-editor-heading>.ex-editor-controls{display:flex;flex:0 0 auto;min-width:0;flex-direction:column;align-items:flex-end;gap:10px}.ex-editor-controls .ex-delete{border:1px solid #d8a49c;background:white;padding:9px 14px;border-radius:9px}.ex-editor-controls .back-link{font-size:13px;padding:4px 0;min-height:28px}.ex-editor-heading .ex-number{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:9px 0 6px;font-size:13px}.ex-editor-heading .ex-number b{font-size:20px;font-weight:750;color:#21364f;overflow-wrap:anywhere}.ex-editor-heading .ex-fair-name{font-size:13px;line-height:1.5}
.section-title-info{display:inline-flex;align-items:center;gap:10px;position:relative;min-width:0;max-width:100%}.section-title-info>h1,.section-title-info>h2,.section-title-info>h3{margin:0}.section-title-info>.ex-info{flex:none;margin:0;position:static;line-height:1}.section-title-info>.ex-info>summary{display:flex;align-items:center;justify-content:center;width:24px;height:28px;font-size:19px}.section-title-info>.ex-info>p{position:absolute;left:0;top:100%;z-index:45;width:min(360px,calc(100vw - 64px));box-sizing:border-box;line-height:1.65;font-size:13px;margin:8px 0 0;box-shadow:0 10px 25px #1a30431a}.ex-analysis-panel .ex-section-heading>button{margin-left:auto}.ex-ocr-message{margin:12px 0;line-height:1.6}
.country-name-field{position:relative;min-width:0}.country-name-input{display:flex;align-items:stretch;position:relative}.country-name-input>input{padding-right:42px!important;min-width:0;width:100%;box-sizing:border-box}.country-name-input>button{position:absolute;right:1px;top:1px;bottom:1px;border:0;background:transparent;color:#63768e;min-width:38px;min-height:0;padding:0 8px;font-size:21px}.country-name-options{position:absolute;z-index:55;left:0;right:0;top:100%;list-style:none;max-height:248px;overflow:auto;margin:5px 0 0;padding:5px;background:#fff;border:1px solid #cfdae5;border-radius:10px;box-shadow:0 8px 24px #122b4626;font-size:14px}.country-name-options>li{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 10px;line-height:1.35;cursor:pointer;overflow-wrap:anywhere}.country-name-options>li[aria-selected=true]{background:#edf3fb;border-radius:6px}.country-name-options small{color:#748295;font-size:11px;flex:none}.country-name-message{display:block;font-size:12px;color:#92603d;margin:5px 0 0}
.ex-catalogue-page{width:100%;max-width:720px;margin:0 auto;padding:0 0 32px;background:#f8f7f5;box-sizing:border-box;color:#102136;font-family:Arial,Helvetica,sans-serif;min-height:100dvh}.ex-catalogue-banner{width:100%;aspect-ratio:3.35/1;overflow:hidden;background:#14283f}.ex-catalogue-banner>img{display:block;width:100%;height:100%;object-fit:cover;object-position:center top}.ex-catalogue-page>.ex-catalogue-card{position:relative;border:0;margin:-10px 18px 0;padding:26px 22px 24px;border-radius:20px;background:#fff;box-shadow:0 18px 40px #1a263b0b}.ex-catalogue-accent{width:34px;height:4px;border-radius:4px;background:#ff273b;margin:0 0 15px}.ex-catalogue-card h1{font-size:clamp(24px,5.1vw,36px);line-height:1.18;letter-spacing:-.7px;margin:0 0 10px;color:#07192b;font-weight:750}.ex-catalogue-card .ex-catalogue-intro{font-size:15px;line-height:1.5;color:#6c7a8c;margin:0 0 25px}.ex-catalogue-page .public-customer-fields{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}.ex-catalogue-page .public-customer-fields>label{display:block;font-size:14px;font-weight:600;line-height:1.4;color:#162b43;margin:0}.ex-catalogue-page input,.ex-catalogue-page textarea{display:block;box-sizing:border-box;width:100%;min-width:0;border:1px solid #cbd5df;border-radius:9px;background:#fcfcfc;box-shadow:none;padding:11px 12px;font-size:15px;line-height:1.4;margin-top:5px;color:#17283d;font-family:inherit}.ex-catalogue-page input{height:45px}.ex-catalogue-page input:focus,.ex-catalogue-page textarea:focus{outline:2px solid #354f70;outline-offset:1px}.ex-catalogue-page textarea{min-height:78px;resize:vertical}.ex-catalogue-page .country-name-input>button{top:6px}.ex-catalogue-page .country-name-options{font-weight:400}.ex-catalogue-page .ex-catalogue-submit{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;margin-top:22px;background:#172b44;border:1px solid #172b44;border-radius:10px;color:#fff;min-height:49px;font-size:16px;font-weight:600;padding:12px 18px}.ex-catalogue-submit>span{font-size:22px;font-weight:400;line-height:1}.ex-catalogue-page .ex-public-footer{font-size:9px;line-height:1.5;text-align:center;color:#8792a1;margin:18px 0 0;letter-spacing:.1px}.ex-catalogue-page .ex-honeypot{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important}
@media(max-width:760px){.ex-record-table .ex-row-action{grid-column:1/-1;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.ex-record-table .ex-row-action button{margin:0}.ex-editor-heading{flex-wrap:nowrap!important;gap:12px!important}.ex-editor-heading>.ex-heading-main{flex-basis:auto!important}.ex-editor-heading>.ex-editor-controls{flex-basis:auto!important;max-width:132px}.ex-editor-heading h1{font-size:22px!important}.ex-editor-heading .ex-number b{font-size:18px}.ex-editor-controls .ex-delete{font-size:12px;padding:8px 10px}.ex-editor-controls .back-link{font-size:12px;line-height:1.5;text-align:right;white-space:normal}.section-title-info{gap:8px}.ex-analysis-panel .ex-section-heading>button{margin-left:0}.ex-catalogue-page>.ex-catalogue-card{margin:-8px 14px 0;padding:23px 19px 22px}}
@media(min-width:761px){.ex-record-table .ex-row-action .ex-delete{margin-left:8px}.ex-catalogue-page{margin:32px auto;border-radius:20px;overflow:hidden;min-height:0;box-shadow:0 20px 80px #12263d12}}

/* Public customer brand page must override the legacy system-wide flat panel/button rules. */
.ex-public.ex-catalogue-page>.panel.ex-catalogue-card{border:0!important;border-radius:20px!important;box-shadow:0 18px 40px #1a263b0b!important;background:#fff!important;padding:26px 22px 24px!important;margin:-10px 18px 0!important}.ex-public.ex-catalogue-page .ex-catalogue-submit.primary{background:#172b44!important;border-color:#172b44!important;color:#fff!important;border-radius:10px!important}.ex-public.ex-catalogue-page .ex-catalogue-card .public-customer-fields>label{color:#162b43!important;font-weight:600!important}.ex-public.ex-catalogue-page .public-customer-fields input,.ex-public.ex-catalogue-page .public-customer-fields textarea{border-radius:9px!important;background:#fcfcfc!important;border:1px solid #cbd5df!important}.ex-public.ex-catalogue-page .country-name-input>button{background:transparent!important;color:#63768e!important;border:0!important}@media(max-width:760px){.ex-public.ex-catalogue-page>.panel.ex-catalogue-card{padding:23px 19px 22px!important;margin:-8px 14px 0!important}}

.ex-quote-panel .ex-section-heading{flex-wrap:wrap}.ex-context-dialog{max-height:88vh;overflow-y:auto}
/* Quote dialog FIX01: scoped sizing avoids full-width form inputs and generic panel overrides. */
#app .ex-quote-dialog{box-sizing:border-box;width:min(1120px,100%);max-width:1120px;max-height:calc(100vh - 64px);max-height:calc(100dvh - 64px);min-width:0;display:flex;flex-direction:column;overflow:hidden;background:#fff;border:1px solid #d6dfeb;border-radius:16px;box-shadow:0 24px 80px #15263e33;color:#243a53;text-align:left;outline:none}
#app .ex-quote-dialog button{width:auto;min-height:38px;padding:8px 15px;white-space:nowrap;font-size:13px}
#app .ex-quote-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:24px 26px 20px;flex:none;border-bottom:1px solid #e4eaf2}
#app .ex-quote-header>div{min-width:0}#app .ex-quote-header h2{font-size:20px;font-weight:650;line-height:1.4;margin:0;color:#1c304a}
#app .ex-quote-header p{font-size:13px;font-weight:400;line-height:1.6;margin:6px 0 0;color:#718297}#app .ex-quote-close{flex:none}
#app .ex-quote-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 26px;flex:none;background:#f8fafc;border-bottom:1px solid #e4eaf2;font-size:12px;color:#718297}
#app .ex-quote-toolbar>span{min-width:0;overflow-wrap:anywhere;text-align:right}#app .ex-quote-select-all{display:inline-flex;align-items:center;gap:9px;flex:none;font-size:13px;cursor:pointer}
#app .ex-quote-dialog input[type=checkbox]{box-sizing:border-box;width:18px;min-width:18px;max-width:18px;height:18px;min-height:18px;max-height:18px;flex:0 0 18px;padding:0;margin:0;accent-color:#3f5fb0;cursor:pointer}
#app .ex-quote-list{overflow-y:auto;overflow-x:hidden;min-height:0;padding:8px 16px;overscroll-behavior:contain}
#app .ex-quote-columns,#app .ex-quote-choice{display:grid;grid-template-columns:minmax(185px,.8fr) minmax(0,1.35fr) minmax(0,1fr) minmax(0,1fr);column-gap:16px}
#app .ex-quote-columns{flex:none;padding:12px 29px 4px;color:#718297;font-size:12px;font-weight:600}
#app .ex-quote-choice{box-sizing:border-box;align-items:center;padding:14px 12px;margin:6px 0;border:1px solid #e0e7ef;border-radius:10px;background:#fff;text-align:left;min-width:0;transition:background .12s,border-color .12s}
#app .ex-quote-choice:hover{border-color:#a8bad6;background:#f8faff}#app .ex-quote-choice.is-selected{border-color:#b8cbe6;background:#f4f8ff}#app .ex-quote-choice:focus-within{outline:2px solid #4968ae;outline-offset:1px}
#app .ex-quote-item-select{display:grid;grid-template-columns:18px 72px minmax(0,1fr);align-items:center;gap:14px;min-width:0;cursor:pointer}
#app .ex-quote-item-select>img,#app .ex-quote-no-photo{box-sizing:border-box;width:72px;height:72px;min-width:72px;object-fit:contain;background:#fff;border:1px solid #e4eaf1;border-radius:8px;padding:5px}
#app .ex-quote-no-photo{display:grid;place-items:center;color:#b2bdca;background:#f8fafc}#app .ex-quote-no-photo>svg{width:28px;height:28px}
#app .ex-quote-item-select>b{font-size:13px;font-weight:650;line-height:1.5;color:#273e59;overflow-wrap:anywhere;min-width:0}
#app .ex-quote-field{display:block;min-width:0}#app .ex-quote-field>span{display:none}
#app .ex-quote-field>textarea{box-sizing:border-box;display:block;width:100%;min-width:0;height:88px;min-height:66px;max-height:180px;resize:vertical;margin:0;padding:9px 10px;border:1px solid #ced9e7;border-radius:7px;background:#fff;color:#314860;font-size:13px;font-weight:400;line-height:1.55;overflow-wrap:anywhere}
#app .ex-quote-field>textarea:focus{border-color:#6b88bc;outline:2px solid #4d73b51f;outline-offset:0}
#app .ex-quote-footer{display:flex;align-items:center;justify-content:space-between;gap:12px 20px;flex-wrap:wrap;flex:none;padding:18px 26px;border-top:1px solid #e1e8f0;background:#fff}
#app .ex-quote-footer>.form-error{flex:0 0 100%;margin:0;font-size:13px;overflow-wrap:anywhere;max-height:90px;overflow:auto}
#app .ex-quote-selected{font-size:13px;font-weight:400;color:#718297}#app .ex-quote-selected>b{color:#3f5fb0;font-size:17px;margin:0 3px}#app .ex-quote-selected>span{font-size:12px}
#app .ex-quote-footer-actions{display:flex;gap:10px;align-items:center;margin-left:auto}#app .ex-quote-footer-actions>.primary{min-width:150px}#app .ex-quote-empty{font-size:13px;color:#718297;text-align:center;padding:24px 0}
@media(max-width:820px){#app .ex-quote-columns{display:none}#app .ex-quote-choice{grid-template-columns:minmax(0,1fr);gap:12px;padding:14px 12px}#app .ex-quote-item-select{grid-template-columns:18px 60px minmax(0,1fr);gap:12px}#app .ex-quote-item-select>img,#app .ex-quote-no-photo{width:60px;height:60px;min-width:60px}#app .ex-quote-field>span{display:block;font-size:12px;font-weight:600;line-height:1.5;margin-bottom:5px;color:#718297}#app .ex-quote-field>textarea{height:70px;min-height:56px;font-size:16px;line-height:1.5}}
@media(max-width:600px){#app .ex-quote-mask{padding:12px}#app .ex-quote-dialog{max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);border-radius:12px}#app .ex-quote-header{padding:18px 16px 14px;gap:12px}#app .ex-quote-header h2{font-size:18px}#app .ex-quote-header p{font-size:12px}#app .ex-quote-dialog button{padding:8px 12px}#app .ex-quote-toolbar{padding:12px 16px;gap:12px}#app .ex-quote-list{padding:6px 10px}#app .ex-quote-footer{padding:14px 16px;gap:10px}#app .ex-quote-selected{flex-basis:100%}#app .ex-quote-footer-actions{width:100%;margin:0;gap:8px}#app .ex-quote-footer-actions>button{flex:1;min-width:0;min-height:42px}}

/* D31: folding changes visibility only; the original forms and components stay mounted. */
.ex-fold-toggle{display:inline-flex;align-items:center;gap:8px;background:transparent;border:0;padding:0;min-height:36px;font:inherit;font-weight:inherit;color:inherit;cursor:pointer;text-align:left;box-shadow:none}
.ex-fold-toggle:hover{background:transparent;color:#365ba8}
.ex-fold-toggle:focus-visible{outline:2px solid #365ba8;outline-offset:4px;border-radius:4px}
.ex-fold-toggle>span{font-size:14px;width:14px;text-align:center;flex:none}
.ex-task-card>.ex-fold-body>.todo-board{margin:0;padding:0;border:0;box-shadow:none;background:transparent}
.ex-task-card .todo-board-header>div:first-child{display:none}
.ex-task-card .todo-board-header{justify-content:flex-end}
.ex-business-card-panel .ex-ocr-message{margin-top:10px}

/* V0.7.10 quotation source facts are preserved separately from the editable final Description. */
#app .quote-source-details{border-top:1px solid #e1e7ef;padding-top:12px;margin-top:4px;color:#64788f;font-size:12px}
#app .quote-source-details>summary{cursor:pointer;font-weight:500}
#app .quote-source-facts{display:grid;gap:10px;margin-top:12px}
#app .quote-source-facts b{font-size:11px;color:#7c8da1}
#app .quote-source-facts p{white-space:pre-wrap;overflow-wrap:anywhere;margin:4px 0 0;line-height:1.55;font-size:12px}

/* V0.7.16: direct archive action stays visible outside the folded customer form. */
#app .ex-customer-archive>.ex-section-heading{align-items:center;margin-bottom:0}
#app .ex-customer-archive .ex-section-heading p{margin:5px 0 0}
#app .ex-archive-body{margin-top:18px;padding-top:18px;border-top:1px solid #e1e7ef}
#app .ex-archive-preview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 20px;margin:0 0 16px}
#app .ex-archive-preview>div{min-width:0}
#app .ex-archive-preview dt{font-size:12px;color:#6d7e91;margin-bottom:4px}
#app .ex-archive-preview dd{margin:0;font-size:14px;overflow-wrap:anywhere}
#app .ex-archive-check{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:14px 0;font-size:13px;color:#355570}
#app .ex-archive-help{padding:10px 12px;background:#fff8e9;color:#795d2e;border-radius:7px;font-size:13px}
#app .ex-archive-matches{display:grid;gap:10px;margin-bottom:18px}
#app .ex-archive-matches>article{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px;background:#f5f8fc;border:1px solid #e0e7ef;border-radius:8px;min-width:0}
#app .ex-archive-matches>article>div{min-width:0;overflow-wrap:anywhere}
#app .ex-archive-matches p{margin:5px 0 0;font-size:12px;color:#6d7e91}
#app .ex-archive-footer{display:flex;justify-content:flex-end;gap:10px;margin-top:14px}
@media(max-width:650px){#app .ex-customer-archive>.ex-section-heading{align-items:flex-start}#app .ex-archive-preview{grid-template-columns:minmax(0,1fr)}#app .ex-archive-matches>article{align-items:flex-start;flex-direction:column;gap:10px}#app .ex-archive-footer>button{flex:1;min-width:0}#app .ex-archive-check{align-items:flex-start}}
