/* Expert workspace: role-scoped queues, explicit decisions and nearby feedback.
   Brand colours and typography inherit the shared theme. */
.expert-workspace{min-width:0}
.expert-role-panel{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px;border:1px solid var(--border);border-radius:16px;background:#fff}
.expert-role-copy{display:flex;align-items:flex-start;gap:16px;min-width:0}
.expert-role-icon{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;background:color-mix(in srgb,var(--green) 7%,white);color:var(--green);border-radius:12px}
.expert-role-copy h2{font-size:19px;color:var(--ink);line-height:1.6;margin:0 0 6px}
.expert-role-copy p{font-size:13px;color:var(--muted);line-height:1.9;margin:0}
.expert-role-copy small{display:block;font-size:12px;color:var(--muted);margin-top:8px;line-height:1.8}
.expert-role-switch{flex:0 0 226px;margin:0}
.expert-role-switch select{font-size:13px}
.expert-demo-note{display:flex;align-items:flex-start;gap:8px;color:var(--muted);font-size:12px;line-height:1.9;margin:14px 0 24px}
.expert-demo-note .icon{flex-shrink:0;margin-top:3px;color:var(--green)}
.expert-nav{margin-bottom:24px;gap:24px}
.expert-nav button{font-size:13px;min-height:46px}
.expert-queue-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 20px}
.expert-queue-head h2{font-size:19px;color:var(--ink);line-height:1.8;margin:0}
.expert-queue-head p{font-size:13px;color:var(--muted);margin:4px 0 0}
.expert-result-count{display:inline-block;font-size:12px;font-weight:500;color:var(--muted);margin-inline-start:10px}
.expert-queue-head>.text-link{flex-shrink:0;font-size:12px}
.expert-tools{border:1px solid var(--border);border-radius:14px;padding:20px;background:#fff;margin-bottom:20px}
.expert-scope{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding-bottom:20px;margin-bottom:20px;border-bottom:1px solid var(--border)}
.expert-scope button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:9px 14px;font-size:13px;color:var(--muted);border:1px solid transparent;border-radius:10px;line-height:1.7}
.expert-scope button:hover{background:color-mix(in srgb,var(--green) 4%,white);color:var(--green)}
.expert-scope button.active{border-color:color-mix(in srgb,var(--green) 18%,white);background:color-mix(in srgb,var(--green) 7%,white);color:var(--green);font-weight:600}
.expert-scope button>span{display:grid;place-items:center;min-width:22px;height:22px;border-radius:6px;background:color-mix(in srgb,var(--border) 60%,white);font-size:12px;line-height:1}
.expert-scope button.active>span{background:#fff}
.expert-filters{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,240px);gap:16px;align-items:end}
.expert-filters .field{min-width:0;margin:0}
.expert-filters label{font-size:13px;color:var(--ink)}
.expert-search-input{position:relative}
.expert-search-input>.icon{position:absolute;inset-inline-start:14px;top:15px;color:var(--muted);pointer-events:none}
.expert-search-input input{padding-inline-start:42px;font-size:14px}
.expert-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.expert-case{display:flex;flex-direction:column;min-width:0;background:#fff;border:1px solid var(--border);border-radius:14px;padding:20px}
.expert-case-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.expert-case-head>div{min-width:0}
.expert-case-head h3{font-size:17px;color:var(--ink);line-height:1.8;margin:4px 0 0;overflow-wrap:anywhere}
.expert-case-head>.badge{font-size:11px;flex-shrink:0;margin-top:2px}
.expert-case-id{display:block;font-size:12px;color:var(--muted);text-align:right;overflow-wrap:anywhere}
.expert-case-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:20px 0;margin-bottom:16px;border-bottom:1px solid var(--border)}
.expert-case-facts>div{display:flex;flex-direction:column;gap:4px;min-width:0}
.expert-case-facts span{font-size:12px;color:var(--muted);line-height:1.8}
.expert-case-facts strong{font-size:13px;font-weight:500;color:var(--ink);line-height:1.85;overflow-wrap:anywhere}
.expert-case-facts .ltr{direction:ltr;text-align:right}
.expert-case-facts strong small{font-size:12px;color:var(--muted)}
.expert-case-next{display:flex;align-items:flex-start;gap:10px;margin-bottom:20px}
.expert-case-next>span{flex-shrink:0;margin-top:3px;color:var(--green)}
.expert-case-next strong{display:block;font-size:13px;font-weight:600;color:var(--ink);line-height:1.8}
.expert-case-next p{font-size:12px;color:var(--muted);line-height:1.9;margin:4px 0 0}
.expert-case-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:auto}
.expert-case-footer .btn{min-height:44px;font-size:12px;white-space:normal}
.expert-case-footer .badge{font-size:11px}
.expert-empty{text-align:center;padding:40px 24px}
.expert-empty h2{font-size:21px;color:var(--ink);line-height:1.8;margin:16px 0 8px}
.expert-empty p{max-width:520px;margin:0 auto 20px;font-size:13px;line-height:1.9;color:var(--muted)}
.expert-empty .empty-icon{margin-inline:auto}

.expert-dialog{max-width:min(850px,calc(100vw - 24px));color:var(--ink)}
.expert-dialog .dialog-head{gap:12px}
.expert-dialog .dialog-head h2{font-size:19px;line-height:1.8}
.expert-dialog .dialog-body{padding:24px}
.expert-detail-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;padding-bottom:20px;border-bottom:1px solid var(--border)}
.expert-detail-summary>div{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.expert-detail-summary span{font-size:12px;color:var(--muted)}
.expert-detail-summary strong{font-size:14px;color:var(--ink);font-weight:600;line-height:1.8;overflow-wrap:anywhere}
.expert-detail-summary .badge{font-size:12px}
.expert-detail-next{padding:16px 18px;margin:20px 0;background:color-mix(in srgb,var(--green) 5%,white);border-radius:10px}
.expert-detail-next strong{display:block;font-size:14px;color:var(--green);line-height:1.8}
.expert-detail-next p{font-size:13px;color:var(--muted);line-height:1.9;margin:4px 0 0}
.expert-detail-section{margin:24px 0 0;padding:0;border:0}
.expert-detail-section>h3,.expert-review-heading h3{font-size:16px;color:var(--ink);line-height:1.8;margin:0 0 8px}
.expert-review-heading p,.expert-section-hint{font-size:13px;color:var(--muted);line-height:1.9;margin:0 0 20px}
.expert-doc-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.expert-doc-review{min-width:0;padding:18px;border:1px solid var(--border);border-radius:12px;background:#fff}
.expert-doc-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:16px;min-width:0}
.expert-doc-heading>div{min-width:0}
.expert-doc-heading h4{font-size:14px;font-weight:600;color:var(--ink);margin:0 0 5px;line-height:1.8}
.expert-doc-heading p{font-size:12px;color:var(--muted);line-height:1.9;margin:0;overflow-wrap:anywhere}
.expert-doc-heading .badge{font-size:11px;flex-shrink:0}
.expert-doc-review .field{margin:0;min-width:0}
.expert-doc-review label{font-size:12px;line-height:1.9}
.expert-doc-review select,.expert-doc-review input{font-size:13px;min-height:46px}
.expert-correction{display:grid;gap:16px;margin-top:16px;padding-top:16px;border-top:1px solid var(--border)}
.expert-correction[hidden]{display:none!important}
.expert-correction small{font-size:12px;color:var(--muted)}
.expert-correction .hint{font-size:12px;margin:7px 0 0;color:var(--muted)}
.expert-dialog .form-grid{margin-top:20px;gap:20px}
.expert-dialog .field label{font-size:13px;color:var(--ink)}
.expert-dialog input,.expert-dialog select,.expert-dialog textarea{max-width:100%}
.expert-dialog [disabled]{cursor:default;background:color-mix(in srgb,var(--border) 25%,white);color:var(--muted)}
.expert-dialog .btn[disabled]{opacity:.6;box-shadow:none}
.expert-review-error{display:block;font-size:12px;color:var(--red);line-height:1.9;margin-top:7px;white-space:normal}
.expert-review-error:empty{margin:0}
.expert-dialog [aria-invalid=true]{border-color:var(--red);box-shadow:none}
.expert-access-note{display:flex;align-items:flex-start;gap:8px;font-size:12px;color:var(--muted);line-height:1.9;margin:20px 0 0}
.expert-access-note>.icon{flex-shrink:0;margin-top:3px}
.expert-guarantor{margin-top:20px;font-size:13px;align-items:flex-start}
.expert-guarantor input{margin-top:6px;flex-shrink:0}
.expert-guarantor small{display:block;font-size:12px;color:var(--muted)}
.expert-review-actions{padding-top:20px;margin-top:24px;gap:12px;background:#fff}
.expert-review-actions .btn{min-height:46px;font-size:13px}
.expert-finance-notice{margin:20px 0}
.expert-dialog .receipt-line{font-size:13px;gap:12px;flex-wrap:wrap}
.expert-dialog .receipt-line small{font-size:12px}
.expert-dialog #finance-form .hint{font-size:12px;line-height:1.9}
.expert-dialog .summary-row{font-size:13px;gap:16px;flex-wrap:wrap}

@media(max-width:1100px){
 .expert-list{grid-template-columns:1fr}
 .expert-role-panel{align-items:flex-start;gap:20px}
 .expert-role-switch{flex-basis:210px}
}
@media(max-width:600px){
 .expert-role-panel{flex-direction:column;padding:20px;gap:20px;border-radius:14px}
 .expert-role-copy{gap:12px}
 .expert-role-copy h2{font-size:18px}
 .expert-role-copy p,.expert-role-copy small{font-size:12px}
 .expert-role-switch{flex:auto;width:100%}
 .expert-role-switch select{font-size:16px;min-height:48px}
 .expert-nav{gap:20px}
 .expert-queue-head{flex-wrap:wrap;gap:8px;margin-bottom:16px}
 .expert-queue-head h2{font-size:18px}
 .expert-queue-head p{font-size:12px}
 .expert-tools{padding:16px;margin-bottom:16px}
 .expert-scope{gap:8px;margin-bottom:16px;padding-bottom:16px}
 .expert-scope button{font-size:12px;padding:9px 10px;flex:1 1 auto;gap:6px}
 .expert-filters{grid-template-columns:1fr;gap:16px}
 .expert-filters input,.expert-filters select{font-size:16px;min-height:48px}
 .expert-list{gap:16px}
 .expert-case{padding:18px}
 .expert-case-head{flex-wrap:wrap;gap:10px}
 .expert-case-head h3{font-size:16px}
 .expert-case-facts{gap:16px 12px;padding:16px 0}
 .expert-case-facts strong{font-size:13px}
 .expert-case-footer{flex-wrap:wrap}
 .expert-case-footer .btn{min-height:46px;font-size:13px;flex:1}
 .expert-empty{padding:28px 20px}
 .expert-empty h2{font-size:19px}
 .expert-dialog .dialog-head{padding:16px}
 .expert-dialog .dialog-head h2{font-size:17px}
 .expert-dialog .dialog-body{padding:20px 16px}
 .expert-detail-summary{gap:16px}
 .expert-detail-summary strong{font-size:13px}
 .expert-detail-next{padding:14px 16px;margin:20px 0}
 .expert-detail-next p{font-size:12px}
 .expert-doc-list{grid-template-columns:1fr}
 .expert-doc-review{padding:16px}
 .expert-dialog .field label{font-size:13px}
 .expert-dialog input,.expert-dialog select,.expert-dialog textarea{font-size:16px;min-height:48px}
 .expert-review-actions{flex-wrap:wrap;gap:10px}
 .expert-review-actions .btn{flex:1 1 100%;font-size:13px}
 .expert-review-actions .btn.ghost{order:1}
 .expert-dialog .summary-row{font-size:12px}
}
@media(max-width:350px){
 .expert-role-panel,.expert-case{padding:16px}
 .expert-role-copy{flex-direction:column}
 .expert-case-facts,.expert-detail-summary{grid-template-columns:1fr}
 .expert-case-footer>.badge{width:100%;justify-content:center}
 .expert-case-footer .btn{width:100%;flex-basis:100%}
 .expert-role-icon{width:40px;height:40px;flex-basis:40px}
}

/* ---- «خودروهای دلخواه» — on/off list of the car database (admin) ---- */
.cars-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:10px}
.cars-stats>div{display:grid;gap:2px;padding:12px;border:1px solid var(--border);border-radius:14px;background:var(--brand-soft);text-align:center}
.cars-stats strong{font-size:22px;color:var(--brand);line-height:1.2}
.cars-stats span{font-size:12px;color:var(--muted)}
.cars-tools{display:grid;gap:12px;margin:16px 0}
.cars-search{position:relative;display:block}
.cars-search>.icon{position:absolute;inset-block:0;inset-inline-start:14px;margin:auto 0;color:var(--muted);pointer-events:none}
.cars-search .input{width:100%;min-height:48px;padding-inline-start:42px;font-size:16px}
.cars-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.cars-meta .pol-state{min-height:20px}
.cars-list{display:grid;gap:8px}
.cars-brand{border:1px solid var(--border);border-radius:16px;background:#fff;overflow:hidden}
.cars-brand.is-off>.cars-row .cars-name{opacity:.62}
.cars-row{display:flex;align-items:center;gap:10px;min-height:60px;padding:6px 12px}
.cars-exp{flex:1 1 auto;min-width:0;display:flex;align-items:center;gap:8px;min-height:48px;padding:0;background:none;border:0;color:inherit;font:inherit;text-align:start;cursor:pointer}
.cars-exp>.icon{flex:0 0 auto;width:18px;height:18px;color:var(--muted);transition:transform .18s}
.cars-exp[aria-expanded="true"]>.icon{transform:rotate(-90deg)}
.cars-exp:focus-visible{outline:2px solid #7181cb;outline-offset:2px;border-radius:8px}
.cars-name{display:grid;gap:2px;min-width:0}
.cars-row>.cars-name{flex:1 1 auto}
.cars-name b{font-size:15px;font-weight:700;overflow-wrap:anywhere}
.cars-name small{font-size:12px;color:var(--muted);overflow-wrap:anywhere}
.cars-tag{flex:0 0 auto;font-style:normal;font-size:11px;padding:3px 9px;border-radius:999px;background:#f1f3f8;color:var(--muted);white-space:nowrap}
.cars-tag.chg{background:#fff4dc;color:#7a5a12}
.cars-body{display:grid;gap:6px;padding:4px 10px 12px;border-top:1px solid var(--border);background:#fafbfe}
.cars-bulk{display:flex;flex-wrap:wrap;gap:8px;padding:8px 2px}
.cars-bulk .chip-btn{flex:0 0 auto;white-space:nowrap;padding-inline:12px;font-size:13px}
.cars-model{border:1px solid var(--border);border-radius:12px;background:#fff}
.cars-model.is-off>.cars-row .cars-name{opacity:.6}
.cars-model>.cars-body{border-radius:0 0 12px 12px;padding-inline:8px}
.cars-trim{min-height:52px;border-bottom:1px dashed var(--border)}
.cars-trim:last-child{border-bottom:0}
.cars-trim.is-off .cars-name{opacity:.6}
.cars-warn,.cars-empty{margin:6px 4px;font-size:13px;color:#7a5a12}
.cars-empty{color:var(--muted);text-align:center;padding:24px 0}
.cars-sw{position:relative;flex:0 0 auto;display:inline-block;width:48px;height:28px;cursor:pointer}
.cars-sw input{position:absolute;top:-10px;right:-6px;bottom:-10px;left:-6px;width:calc(100% + 12px);height:calc(100% + 20px);margin:0;opacity:0;cursor:pointer;z-index:1}
.cars-sw span{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:14px;background:#cdd4e6;transition:background .18s}
.cars-sw span:after{content:"";position:absolute;top:3px;inset-inline-start:3px;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0a235733;transition:transform .18s}
.cars-sw input:checked+span{background:var(--brand)}
.cars-sw input:checked+span:after{transform:translateX(-20px)}
.cars-sw input:focus-visible+span{outline:2px solid #7181cb;outline-offset:3px}
.cars-sw.is-dim input:checked+span{background:#8f9bd0}
@media(max-width:520px){
 .cars-stats strong{font-size:19px}
 .cars-row{gap:8px;padding:6px 10px}
 .cars-tag{display:none}
 .cars-body{padding-inline:6px}
}
@media(prefers-reduced-motion:reduce){.cars-exp>.icon,.cars-sw span,.cars-sw span:after{transition:none}}
