.expert-mode-panel,
.expert-document-panel{
  margin-top:18px;
  border:1px solid #cdddf0;
  border-radius:8px;
  background:rgba(248,251,255,.92);
  overflow:hidden;
}
.expert-mode-panel summary,
.expert-document-panel summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:18px 20px;
  cursor:pointer;
  list-style:none;
}
.expert-mode-panel summary::-webkit-details-marker,
.expert-document-panel summary::-webkit-details-marker{display:none}
.expert-mode-panel summary span:first-child,
.expert-document-panel summary span:first-child{min-width:0}
.expert-mode-panel summary strong,
.expert-document-panel summary strong{display:block;color:#10284a;font-size:16px}
.expert-mode-panel summary small,
.expert-document-panel summary small{display:block;margin-top:5px;color:#536985;font-size:13px;line-height:1.5}
.expert-mode-optional{
  flex:0 0 auto;
  padding:6px 10px;
  border-radius:999px;
  background:#e8f2ff;
  color:#155da8;
  font-size:11px;
  font-weight:800;
  text-transform:uppercase;
}
.expert-mode-body{padding:4px 20px 20px;border-top:1px solid #dce7f3}
.expert-field-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  padding-top:18px;
}
.expert-field{display:flex;flex-direction:column;gap:7px;min-width:0}
.expert-field>span{font-size:13px;font-weight:700;color:#243e60}
.expert-field input,
.expert-field select{
  width:100%;
  min-width:0;
  min-height:48px;
  padding:11px 13px;
  border:1px solid #c7d9ed;
  border-radius:7px;
  background:#fff;
  color:#10284a;
  font:inherit;
}
.expert-local-note,
.expert-import-status{margin:14px 0 0;color:#5a6f89;font-size:12px;line-height:1.55}
.expert-import-row{
  display:flex;
  justify-content:space-between;
  gap:24px;
  align-items:flex-start;
  margin-top:18px;
  padding-top:18px;
  border-top:1px solid #dce7f3;
}
.expert-import-row strong{color:#10284a}
.expert-import-row p{max-width:680px;margin:5px 0 0;color:#536985;font-size:13px;line-height:1.5}
.expert-import-actions,
.expert-document-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.expert-file-button{display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
.expert-hidden-file{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important}
.expert-table-wrap{width:100%;max-width:100%;margin-top:14px;overflow-x:auto;border:1px solid #d9e5f1;border-radius:7px;background:#fff}
.expert-workday-summary{width:100%;min-width:640px;border-collapse:collapse;font-size:12px}
.expert-workday-summary th,
.expert-workday-summary td{padding:9px 10px;border-bottom:1px solid #edf2f7;text-align:right}
.expert-workday-summary th:first-child{text-align:left}
.expert-workday-summary thead th{background:#f1f6fc;color:#294d77;font-weight:800}
.expert-result{margin-top:18px;border-color:#bdd2eb;background:linear-gradient(180deg,#fff 0%,#f7fbff 100%)}
.expert-result-head{display:flex;justify-content:space-between;align-items:flex-start;gap:22px}
.expert-result-head>div{min-width:0}
.expert-result-head>div>strong{font-size:17px;color:#10284a}
.expert-result-head p,
.expert-route-summary{margin:6px 0 0;color:#536985;line-height:1.6}
.expert-route-badge{
  flex:0 0 auto;
  padding:7px 11px;
  border-radius:999px;
  background:#e8f5ee;
  color:#176544;
  font-size:12px;
  font-weight:800;
}
.expert-result[data-route="document"] .expert-route-badge{background:#fff6dd;color:#805b00}
.expert-result[data-route="specialist"] .expert-route-badge,
.expert-result[data-route="authority"] .expert-route-badge{background:#fff0ed;color:#9a3c2e}
.expert-reason-list{display:grid;gap:8px;margin:14px 0 0;padding-left:20px;color:#2e496a;line-height:1.5}
.expert-next-action{margin-top:16px;padding:14px 16px;border-left:3px solid #2476cc;background:#edf6ff}
.expert-next-action strong{color:#164f8f}
.expert-next-action p{margin:4px 0 0;color:#314f72;line-height:1.55}
.expert-coverage{margin-top:18px}
.expert-coverage>strong,
.expert-source-area>strong{color:#10284a}
.expert-coverage-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin-top:10px;
}
.expert-coverage-item{padding:13px;border:1px solid #d8e5f2;border-radius:7px;background:#fff}
.expert-coverage-item strong{color:#183b65;font-size:13px}
.expert-coverage-item p{margin:5px 0 0;color:#5a6f89;font-size:12px;line-height:1.5}
.expert-source-area{margin-top:18px}
.expert-source-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:9px}
.expert-source-links a{padding:7px 9px;border:1px solid #d1e0ef;border-radius:6px;background:#fff;color:#175fae;font-size:12px;font-weight:700;text-decoration:none}
.expert-document-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  padding-top:18px;
}
.expert-document-item{display:flex;gap:9px;align-items:flex-start;color:#2b4668;font-size:13px;line-height:1.4}
.expert-document-item input{width:18px;height:18px;flex:0 0 auto;margin-top:1px}
.expert-document-actions{margin-top:16px}

@media(max-width:760px){
  .expert-field-grid,
  .expert-coverage-grid,
  .expert-document-grid{grid-template-columns:1fr}
  .expert-mode-panel summary,
  .expert-document-panel summary,
  .expert-result-head,
  .expert-import-row{align-items:stretch;flex-direction:column}
  .expert-mode-optional{align-self:flex-start}
  .expert-import-actions,
  .expert-document-actions{display:grid;grid-template-columns:1fr;width:100%}
  .expert-import-actions .btn-primary,
  .expert-import-actions .btn-ghost,
  .expert-document-actions .btn-ghost{width:100%;min-width:0;white-space:normal}
  .expert-field select{padding-right:34px;font-size:14px}
}

@media print{
  .expert-mode-panel,
  .expert-result{break-inside:avoid}
  .expert-print-card{margin-top:12px}
}
