.hc-entry{margin:16px 20px;padding:15px 16px;background:linear-gradient(120deg,#eff6ff,#eefaf6);border:1px solid #c6dfeb;border-radius:12px;display:flex;gap:12px;align-items:center;flex-wrap:wrap;color:#244a78}
.hc-entry span{display:block;font-size:12px;margin-top:5px}
.hc-entry button,.hc-dialog button{border:1px solid #cddae5;background:#fff;color:#245d81;border-radius:8px;padding:9px 13px;cursor:pointer;font:inherit;font-size:13px;line-height:1.5}
.hc-entry button{margin-left:auto}
.hc-dialog{padding:0;border:1px solid #e1e9f2;border-radius:18px;width:min(1000px,96vw);height:min(880px,94dvh);max-width:96vw;max-height:94vh;background:#f4f7fb;color:#263b50;box-shadow:0 24px 80px #061b3c55;font:14px/1.6 system-ui,-apple-system,"Microsoft YaHei",sans-serif;overflow:hidden;margin:auto}
.hc-dialog[open]{display:flex;flex-direction:column}
.hc-dialog::backdrop{background:#0b2039aa;backdrop-filter:blur(3px)}
.hc-dialog *{box-sizing:border-box;min-width:0}
.hc-dialog [hidden]{display:none!important}
.hc-dialog .hc-header{display:flex;justify-content:space-between;align-items:flex-start;padding:21px 26px;background:linear-gradient(115deg,#214679,#286383);color:#fff;gap:16px;flex-shrink:0}
.hc-dialog .hc-header button{background:#ffffff1a;color:#fff;border-color:#ffffff44;font-size:25px;line-height:1;width:38px;height:38px;padding:4px;flex-shrink:0}
.hc-dialog h2{font-size:24px;line-height:1.4;margin:4px 0 6px;font-weight:700;color:inherit}
.hc-dialog .hc-header p{margin:0;color:#dceaff;font-size:12px}
.hc-eyebrow{font-size:11px;letter-spacing:1.2px;font-weight:500}
.hc-dialog .hc-steps{display:flex;list-style:none;margin:0;padding:13px 26px;border-bottom:1px solid #e1e9f2;background:#fff;flex-shrink:0;gap:20px}
.hc-steps li{display:flex;align-items:center;gap:8px;flex:1;color:#718498;font-size:13px}
.hc-steps li:not(:last-child)::after{content:"";height:1px;flex:1;background:#e0e8f0;margin-left:10px}
.hc-steps li>span{display:inline-grid;place-items:center;width:27px;height:27px;border-radius:50%;background:#eef2f7;color:#718498;font-size:11px;font-weight:700;flex-shrink:0}
.hc-steps .hc-current{color:#087c68;font-weight:650}
.hc-steps .hc-current>span{background:#0b947d;color:#fff;box-shadow:0 0 0 3px #e0f5ef}
.hc-steps .hc-done{color:#258775}
.hc-steps .hc-done>span{color:#087c68;background:#e4f5ef}
.hc-body{padding:20px 24px;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;flex:1;min-height:0;scrollbar-gutter:stable}
.hc-workspace{display:grid;grid-template-columns:1.08fr 1fr;gap:18px;align-items:start}
.hc-body section{background:#fff;border:1px solid #dfe7ef;border-radius:13px;padding:20px;margin-bottom:18px;box-shadow:0 3px 10px #27436304}
.hc-section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}
.hc-dialog h3{font-size:16px;line-height:1.5;margin:0;font-weight:650;color:#263b50}
.hc-dialog p{font-size:13px;margin:10px 0;overflow-wrap:anywhere}
.hc-dialog small,.hc-dialog .hc-muted{font-size:12px;color:#63768a;font-weight:400}
.hc-dialog .hc-link-button{padding:4px 0;border:0;color:#117a73;background:transparent;white-space:nowrap;font-size:12px}
.hc-input-spec{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:14px}
.hc-input-spec span{font-size:11px;padding:3px 7px;border-radius:5px;background:#f1f5f9;color:#526e85}
.hc-upload{position:relative;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;padding:20px 12px;border:1px dashed #a3c6d4;border-radius:10px;background:linear-gradient(125deg,#f4f9ff,#f1fbf7);text-align:center;cursor:pointer}
.hc-upload>span:not(.hc-upload-icon){font-size:12px;color:#637c90}
.hc-upload strong{font-size:14px;color:#2e6174}
.hc-upload .hc-upload-icon{font-size:24px;line-height:34px;height:34px;width:34px;color:#138473;background:#dff2ec;border-radius:9px;margin-bottom:3px}
.hc-upload input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.hc-upload:focus-within{outline:3px solid #65b1ff;outline-offset:2px}
.hc-upload:hover,.hc-upload.hc-dragover{border-color:#0b947d;background:#eaf8f3}
.hc-upload.hc-disabled{opacity:.6;cursor:wait}
.hc-upload.hc-disabled input{cursor:wait}
.hc-selected-file{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px;padding:9px 11px;border:1px solid #c8e6dc;border-radius:8px;background:#f3fbf7}
.hc-selected-file strong{display:block;font-size:12px;color:#216b5e;overflow-wrap:anywhere}
.hc-selected-file small{display:block}
.hc-selected-file button{padding:3px 8px;flex-shrink:0;font-size:12px}
.hc-options{display:grid;grid-template-columns:1.2fr 1fr;gap:12px;margin-top:18px}
.hc-dialog label{font-size:12px;font-weight:500}
.hc-dialog input:not([type="file"]),.hc-dialog select{display:block;width:100%;margin-top:6px;padding:9px 10px;border:1px solid #cddae5;border-radius:8px;background:#fff;color:#263b50;font:inherit;font-size:13px;line-height:1.5;height:40px}
.hc-dialog input::placeholder{color:#8395a6}
.hc-dialog input:disabled,.hc-dialog select:disabled{background:#f4f7fa;color:#738497}
.hc-model{padding:11px 12px;border:1px solid #e4ebf2;border-radius:8px;background:#f8fafc;margin-bottom:9px;font-size:12px}
.hc-model-title{display:flex;align-items:center;justify-content:space-between;gap:10px}
.hc-model-title strong{font-size:13px;font-weight:600}
.hc-badge{display:inline-block;font-size:11px;line-height:1.6;border-radius:5px;padding:2px 6px;white-space:nowrap}
.hc-badge.hc-ready{color:#087757;background:#e1f5ec}
.hc-badge.hc-pending{color:#915c18;background:#fff1d9}
.hc-model p{margin:5px 0 0;font-size:12px;color:#63778b}
.hc-model details{margin-top:6px}
.hc-dialog details{font-size:12px;color:#637488}
.hc-dialog summary{cursor:pointer;overflow-wrap:anywhere}
.hc-method-label{display:block;margin-top:15px}
.hc-actions{display:grid;grid-template-columns:1fr 1.2fr;gap:8px;margin-top:16px}
.hc-dialog .hc-primary{background:linear-gradient(100deg,#098b75,#0b9f83);color:#fff;border-color:#098b75}
.hc-dialog button:not(:disabled):hover{filter:brightness(.96)}
.hc-dialog button:disabled{opacity:.5;cursor:not-allowed}
.hc-dialog button:focus-visible,.hc-dialog input:focus-visible,.hc-dialog select:focus-visible,.hc-dialog summary:focus-visible,.hc-dialog .hc-table:focus-visible{outline:3px solid #65b1ff;outline-offset:2px}
.hc-status-heading{display:flex;align-items:center;gap:8px;margin-top:15px;font-size:11px;color:#697e90}
.hc-spinner{display:none;width:13px;height:13px;border:2px solid #bfdfd5;border-top-color:#087c68;border-radius:50%;animation:hc-spin .8s linear infinite}
.hc-busy .hc-spinner{display:block}
@keyframes hc-spin{to{transform:rotate(360deg)}}
.hc-dialog #hc-message{padding:10px 11px;margin:6px 0 0;background:#f0f6fc;border:1px solid #e2edf7;border-radius:8px;color:#4b657d;font-size:12px;overflow-wrap:anywhere}
.hc-dialog #hc-message.hc-error{background:#fff2f0;border-color:#f8d7d1;color:#a6372a}
.hc-validation{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:9px;color:#526b7f;font-size:11px}
.hc-validation>span{padding:7px;background:#f2f7fa;border-radius:6px;text-align:center}
.hc-validation strong{color:#117c68;font-size:15px;margin-left:3px}
.hc-dialog #hc-results{scroll-margin-top:4px}
.hc-dialog #hc-results .hc-eyebrow{color:#138c77;margin-bottom:3px}
.hc-result-context{display:flex;flex-wrap:wrap;gap:6px 18px;margin:0 0 16px;font-size:12px;color:#60758a;overflow-wrap:anywhere}
.hc-result-context>span:first-child{color:#325d76}
.hc-stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}
.hc-stat{padding:15px;border:1px solid #e0e9f1;border-radius:10px;background:#f8fafc}
.hc-stat>span{display:block;color:#576f83;font-size:12px}
.hc-stat>strong{display:block;color:#147966;font-size:28px;line-height:1.35;margin:6px 0;font-variant-numeric:tabular-nums}
.hc-stat em{font-style:normal;font-size:17px;font-weight:400;color:#768b9b}
.hc-stat small{display:block}
.hc-stat-total{background:linear-gradient(120deg,#effbf5,#f4f9ff);border-color:#cbe9db}
.hc-result-tools{display:flex;align-items:end;flex-wrap:wrap;gap:12px;margin:20px 0 12px}
.hc-result-tools .hc-search-label{flex:1 1 200px}
.hc-result-tools label:not(.hc-search-label){flex:0 1 170px}
.hc-result-tools #hc-result-count{margin-left:auto;padding-bottom:8px;white-space:nowrap}
.hc-table{overflow:auto;max-height:330px;border:1px solid #e0e8f0;border-radius:9px;overscroll-behavior:contain}
.hc-table table{width:100%;border-collapse:separate;border-spacing:0;font-size:12px}
.hc-table th,.hc-table td{text-align:left;padding:11px 13px;border-bottom:1px solid #e8eef3;overflow-wrap:anywhere;vertical-align:top;min-width:100px}
.hc-table thead th{background:#f0f5fa;position:sticky;top:0;z-index:1;font-weight:600;color:#476279}
.hc-table tbody th{font-weight:500;max-width:230px}
.hc-table tbody tr:nth-child(even){background:#fbfcfe}
.hc-table tbody tr:hover{background:#f0f9f6}
.hc-table tbody tr:last-child th,.hc-table tbody tr:last-child td{border-bottom:0}
.hc-table .hc-number{font-variant-numeric:tabular-nums;color:#245e71;white-space:nowrap}
.hc-table td:last-child{min-width:130px;max-width:300px}
.hc-row-note{display:block;margin-top:5px}
.hc-table .hc-empty{text-align:center;padding:28px 16px;color:#728396}
.hc-quality-note{margin-top:6px;max-width:240px}
.hc-quality-note summary{color:#98732e;font-size:11px}
.hc-notice{font-size:12px;background:#fff9ec;color:#86652c;border:1px solid #f3e8c8;border-radius:8px;padding:10px 12px;margin-top:12px}
.hc-export-row{display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid #edf1f6;padding:8px 0}
.hc-export-row button{flex-shrink:0}
.hc-dialog .hc-model-notes{padding:12px 16px;border:1px solid #e0e8f0;border-radius:10px;background:#fff}
.hc-model-notes summary{font-weight:500}
.hc-model-notes ul{padding-left:18px;margin-bottom:0}
.hc-model-notes li{margin:8px 0;overflow-wrap:anywhere}
@media(max-width:760px){
  .hc-workspace{grid-template-columns:1fr;gap:0}
  .hc-body{padding:16px}
  .hc-dialog .hc-header{padding:18px 20px}
  .hc-dialog .hc-steps{padding:12px 20px;gap:12px}
}
@media(max-width:480px){
  .hc-dialog{border-radius:13px;height:94dvh}
  .hc-dialog .hc-header{padding:15px}
  .hc-dialog h2{font-size:22px}
  .hc-dialog .hc-header p{font-size:11px}
  .hc-dialog .hc-steps{padding:11px 14px;gap:8px}
  .hc-steps li{gap:6px;font-size:11px}
  .hc-steps li:not(:last-child)::after{display:none}
  .hc-steps li>span{width:24px;height:24px;font-size:10px}
  .hc-body{padding:12px;scrollbar-gutter:auto}
  .hc-body section{padding:15px;margin-bottom:12px}
  .hc-options{grid-template-columns:1fr;gap:12px}
  .hc-entry{margin:12px}
  .hc-stat-grid{grid-template-columns:1fr}
  .hc-stat{padding:12px 14px}
  .hc-stat>strong{font-size:25px}
  .hc-result-tools{gap:9px}
  .hc-result-tools .hc-search-label{flex-basis:100%}
  .hc-result-tools label:not(.hc-search-label){flex-basis:170px}
  .hc-export-row{align-items:stretch;flex-direction:column;gap:0;padding:5px 0 12px}
  .hc-table th,.hc-table td{padding:9px;min-width:88px}
  .hc-dialog input:not([type="file"]),.hc-dialog select{font-size:16px}
}
@media(prefers-reduced-motion:reduce){.hc-spinner{animation:none}}
