:root{font-family:Roboto,'Noto Sans SC','Segoe UI','Microsoft YaHei',system-ui,sans-serif;color:#1a1b22;background:var(--theme-page,#f8f8ff);line-height:1.5}*{box-sizing:border-box}body{margin:0}header{background:var(--theme-field,#f0f1fa);display:flex;align-items:center;justify-content:space-between;padding:22px max(5%,calc((100vw - 1450px)/2));border-bottom:1px solid var(--theme-outline,#dfe1ec)}h1{font-size:24px;font-weight:600;letter-spacing:.2px;margin:0 0 4px}header span,.hint{color:#606476;font-size:13px}main{max-width:1450px;margin:24px auto;padding:0 22px}nav{display:flex;gap:8px;margin-bottom:20px;overflow:auto}button{border:0;border-radius:24px;background:var(--theme-primary,#405da9);color:white;padding:10px 20px;min-height:40px;cursor:pointer;font:inherit;white-space:nowrap;transition:box-shadow .15s,background .15s}button:hover{box-shadow:0 2px 5px #27314d35}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--theme-focus,#aabef5);outline-offset:2px}button.secondary,nav button{color:var(--theme-ink,#304d95);background:var(--theme-tonal,#e0e7ff)}nav button.active{background:var(--theme-primary,#405da9);color:white}.tab{display:none;background:#fff;padding:28px;border-radius:24px;box-shadow:0 2px 9px #34395415}.tab.active{display:block}.toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap}input,select,textarea{border:1px solid #aeb4c5;border-radius:8px;padding:10px;font:inherit;background:#fff;color:#1a1b22}input#search{min-width:min(300px,100%)}textarea{width:100%;margin-bottom:16px}.tablewrap{overflow:auto;border-radius:12px}table{width:100%;border-collapse:collapse;font-size:14px}th,td{padding:14px 12px;text-align:left;border-bottom:1px solid #e5e6ef;vertical-align:top}th{color:#565e72;background:var(--theme-surface,#f1f3fb);white-space:nowrap;font-weight:600}button.link{padding:0;min-height:0;background:none;color:var(--theme-ink,#3155a5);text-align:left;border-radius:0;white-space:normal}button.link:hover{box-shadow:none;text-decoration:underline}h2{font-size:20px;font-weight:600;margin:4px 0 14px}#detail{border-top:1px solid var(--theme-outline,#dfe1ec);margin-top:24px;padding-top:22px}#detail h3{margin-top:24px}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px}.card{background:var(--theme-surface,#f1f3fb);padding:16px;border-radius:14px;overflow-wrap:anywhere}.card small{color:#606a7e;display:block;margin-bottom:5px}pre,.report{white-space:pre-wrap;overflow-wrap:anywhere;background:var(--theme-surface,#f1f3fb);padding:18px;border-radius:14px;font:inherit;line-height:1.6}#message:not(:empty){padding:14px 18px;margin-bottom:12px;background:#fff2cd;border-radius:14px}#rules input[type=text]{width:150px}#rules input[type=number]{width:75px}#rules select{max-width:155px}.muted{color:#747d8d}@media(max-width:650px){header{padding:18px;gap:12px}header span{display:none}main{padding:0 12px}.tab{padding:18px;border-radius:18px}h1{font-size:19px}}
:root{--sidebar-width:210px}.shell{display:grid;grid-template-columns:var(--sidebar-width) minmax(0,1fr);min-height:calc(100vh - 100px)}.shell nav{display:flex;position:sticky;top:0;align-self:start;flex-direction:column;gap:6px;margin:0;padding:24px 14px;overflow:visible}.nav-label{padding:4px 14px 12px;color:#687085;font-size:13px;font-weight:600}.shell nav button{width:100%;text-align:left;background:transparent;color:#40475b}.shell nav button.active{background:var(--theme-tonal-hover,#dfe6fc);color:var(--theme-selected-ink,#244587);font-weight:700}.shell main{width:100%;max-width:none;min-width:0;margin:24px auto;padding:0 24px 32px 0}.section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.section-heading .hint{margin-top:0}.summary-wrap{margin-top:12px;max-height:65vh;border:1px solid var(--theme-outline,#e3e6f0)}.summary-table{width:max-content;min-width:100%}.summary-table th,.summary-table td{min-width:130px;max-width:280px;white-space:normal;overflow-wrap:anywhere}.summary-table th{position:sticky;top:0;z-index:1}.summary-table td:first-child,.summary-table th:first-child{position:sticky;left:0;background:var(--theme-surface-light,#f8f9ff);z-index:1}.summary-table th:first-child{z-index:2}.summary-table .file-list{display:flex;flex-direction:column;align-items:flex-start;gap:6px}.pagination{display:flex;align-items:center;gap:12px;margin-top:18px;font-size:14px;color:#606476}.pagination button:disabled{opacity:.45;cursor:not-allowed;box-shadow:none}#importResult[hidden],#showAll[hidden]{display:none}#importStatus{min-height:1.5em}.error-text{color:#a82626}@media(max-width:650px){:root{--sidebar-width:86.4px}.shell nav{padding:18px 6px}.shell nav button{padding:10px 12px;font-size:13px;white-space:normal}.shell main{padding:0 10px 24px 0;margin-top:18px}.section-heading{flex-wrap:wrap}}
.shell{min-height:100vh}.shell nav{height:100vh}.shell nav .key-button{margin-top:auto;border-top:1px solid var(--theme-outline,#dfe1ec);border-radius:0;padding-top:16px}.shell main{margin-top:24px}.settings-tabs{margin-bottom:24px}.provider-card{padding:16px;margin:12px 0;background:var(--theme-surface,#f1f3fb);border-radius:14px;display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px}.provider-card label{display:flex;flex-direction:column;gap:4px;font-size:13px;color:#535e75}.provider-card input,.provider-card select{width:100%}.compare{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.compare pre{max-height:420px;overflow:auto;font-size:13px}.tab[hidden], [hidden]{display:none!important}@media(max-width:650px){.compare{grid-template-columns:1fr}}
.subnav{display:flex;flex-direction:column;padding-left:14px;border-left:1px solid #d5dbeb;margin-left:15px}.shell nav .subnav button{min-height:36px;font-size:13px}.shell nav .subnav button.active{background:var(--theme-tonal-hover,#dfe6fc)}.input-choices{display:flex;flex-direction:column;gap:12px}.switch-line{display:inline-flex;align-items:center;gap:14px;cursor:pointer}.switch-line input{position:absolute;opacity:0;width:1px;height:1px}.switch-track{width:46px;height:26px;border-radius:20px;background:#aab0c0;position:relative;transition:background .2s}.switch-track:after{content:'';position:absolute;width:20px;height:20px;left:3px;top:3px;border-radius:50%;background:white;transition:transform .2s}.switch-line input:checked+.switch-track{background:var(--theme-primary,#405da9)}.switch-line input:checked+.switch-track:after{background:var(--md-on-primary);transform:translateX(20px)}.switch-line input:focus-visible+.switch-track{outline:3px solid var(--theme-focus,#aabef5)}dialog{width:min(960px,92vw);max-height:90vh;border:0;border-radius:20px;padding:24px;box-shadow:0 12px 40px #12182e55}dialog::backdrop{background:#141b2c88}.dialog-head{display:flex;justify-content:space-between;align-items:start;gap:12px}.dialog-head p{overflow-wrap:anywhere}.md-preview{max-height:55vh;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere}
.config-list{display:flex;flex-direction:column;gap:8px;margin:16px 0}.config-row{display:flex;align-items:center;gap:12px;min-height:58px;padding:8px 12px;border:1px solid #e1e5f0;border-radius:14px;background:var(--theme-surface-light,#f8f9ff)}.config-row:hover{border-color:#a9b8df}.drag-handle{font-size:22px;color:#8792a9;cursor:grab;letter-spacing:-4px;padding-right:6px}.config-name{font-weight:600;flex:1;text-align:left}.default-badge{font-size:12px;padding:3px 9px;border-radius:12px;background:var(--theme-tonal,#dfe9ff);color:var(--theme-ink,#3157a1)}.row-actions{display:flex;gap:4px}.row-actions button{padding:4px 9px;min-height:32px}.row-actions button:disabled{opacity:.35;cursor:default}.config-editor{margin-top:20px;padding:20px;background:var(--theme-surface,#f1f3fb);border-radius:16px}.config-editor h4{margin:0 0 14px}.config-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin-bottom:16px}.config-fields label,.editor-label{display:flex;flex-direction:column;gap:6px;font-size:13px;color:#535e75}.config-fields input,.config-fields select,.editor-label input{width:100%}.editor-label{margin:12px 0}
.matches{margin-top:12px}.matches button{margin:0 8px 8px 0}.test-files{margin:16px 0}.file-group{margin:14px 0;padding:12px 16px;background:var(--theme-surface-light,#f8f9ff);border:1px solid var(--theme-outline,#e3e6f0);border-radius:14px}.file-group h4{margin:0 0 8px}.test-file-row{display:grid;grid-template-columns:minmax(0,1fr) max-content;align-items:center;gap:12px;padding:12px 0;border-top:1px solid var(--theme-outline,#e3e6f0)}.test-file-info,.test-item-label{min-width:0;overflow-wrap:anywhere}.test-file-info strong,.test-file-info small,.test-item-label strong,.test-item-label small{display:block}.test-file-info small,.test-item-label small{color:#6b7487;margin-top:4px}.test-file-row .toolbar{justify-content:flex-end}.test-file-row button{font-size:13px;padding:8px 12px}.composer{border:1px solid var(--theme-outline-strong,#c4cbdc);border-radius:14px;padding:12px;margin-bottom:16px}.composer textarea{border:0;margin:0;min-height:110px;resize:vertical}.test-items{display:flex;flex-direction:column;gap:8px}.test-item{display:flex;align-items:center;gap:10px;background:var(--theme-tonal,#e8edfb);border-radius:12px;padding:12px;position:relative}.test-item-label{flex:1;padding-right:24px}.item-remove{position:absolute;right:4px;top:2px;padding:0;width:26px;min-height:26px;background:transparent;color:#5c6681;font-size:20px}.item-move{display:flex;gap:3px;margin-top:18px}.item-move button{padding:3px 8px;min-height:30px}.item-move button:disabled{opacity:.35}
/* Material-inspired surfaces, type, and filled text fields */
:root{--md-primary:var(--theme-primary,#445eb2);--md-on-primary:var(--theme-on-primary,#fff);--md-surface:#fff;--md-surface-container:var(--theme-surface,#f1f2fa);--md-on-surface:#1a1b25;--md-outline:#b8bdd0;--md-sidebar:var(--theme-sidebar,#e9ecf6);--sidebar-width:185.6px;color-scheme:light}
body{background:var(--theme-page,#f5f6fb);color:var(--md-on-surface)}
.shell{gap:0}.shell nav{background:var(--md-sidebar);padding:26px 14px 18px;overflow-y:auto}.nav-label{font-size:12px;letter-spacing:.1em;color:#65708a;padding:2px 16px 18px}.shell nav button{min-height:46px;padding:10px 17px;border-radius:24px;font-size:14px;font-weight:550;transition:background .16s ease,color .16s ease}.shell nav button:hover{background:var(--theme-tonal-hover,#dce2f2);box-shadow:none}.shell nav button.active{background:var(--theme-selected,#cfddfb);color:var(--theme-selected-ink,#1f3d82);font-weight:700}.shell nav .subnav{border-color:var(--theme-outline-strong,#bdc9df)}.shell nav .key-button{border-top:1px solid var(--theme-outline-strong,#c9d0df);border-radius:0;margin-top:auto;color:var(--theme-ink,#465d92);font-size:13px}.shell main{padding:0 30px 32px;margin-top:30px}.tab{padding:32px 34px;border-radius:26px;background:var(--md-surface);box-shadow:0 1px 3px #1d29400a,0 8px 28px #39475c0b}
h2{font-size:24px;letter-spacing:0;line-height:1.3;margin-bottom:12px}h3{font-size:17px;font-weight:650;line-height:1.4;margin-top:28px}h4{font-size:15px}p{line-height:1.65}.hint{color:#667185;font-size:13px;line-height:1.55}.toolbar{gap:10px}
button{min-height:42px;border-radius:22px;padding:10px 20px;font-size:14px;font-weight:500;line-height:1.4;background:var(--md-primary);color:var(--md-on-primary);box-shadow:none;transition:background .16s,box-shadow .16s,transform .16s}button:hover:not(:disabled){background:var(--theme-hover,#38539f);box-shadow:0 2px 7px #263b6a27}button:active:not(:disabled){transform:translateY(1px)}button.secondary{background:var(--theme-tonal,#e3eafb);color:var(--theme-ink,#345292)}button.secondary:hover:not(:disabled){background:var(--theme-tonal-hover,#d6e1fa)}button:disabled{opacity:.45;cursor:not-allowed;box-shadow:none}button.link{background:transparent;color:var(--theme-ink,#3458a8);border-radius:4px;min-height:0;padding:0}button.link:hover{background:transparent;box-shadow:none;color:var(--theme-ink,#1f3f8f)}
input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea{font-family:inherit;font-size:15px;line-height:1.45;min-height:48px;background:var(--theme-field,#f0f1f8);border:1px solid transparent;border-radius:12px;color:#1d2536;padding:12px 14px;transition:background .16s,border-color .16s,box-shadow .16s}input:not([type=checkbox]):not([type=radio]):not([type=file]):hover,select:hover,textarea:hover{background:var(--theme-field-hover,#e9ecf5);border-color:transparent}input:not([type=checkbox]):not([type=radio]):not([type=file]):focus,select:focus,textarea:focus{outline:2px solid var(--theme-focus,#9bb0e7);outline-offset:1px;background:var(--theme-field-hover,#eef1fb);border-color:transparent;box-shadow:none}input::placeholder,textarea::placeholder{color:#758097;opacity:1}select{padding-right:34px;cursor:pointer}textarea{min-height:112px;line-height:1.65;resize:vertical}input[type=file]{max-width:100%;padding:9px;border:1px dashed #aeb8ce;border-radius:12px;background:var(--theme-surface-light,#f7f8fd);color:#525d72}input[type=file]::file-selector-button{border:0;border-radius:18px;padding:8px 14px;margin-right:12px;background:var(--theme-tonal,#e3eafb);color:var(--theme-ink,#345292);cursor:pointer}input[type=checkbox]{accent-color:var(--theme-primary,#445eb2);width:17px;height:17px}
.config-fields label,.editor-label,.model-field>label{font-size:12px;font-weight:600;color:#59657b;gap:7px}.config-editor{background:var(--theme-surface,#f4f6fc);border:1px solid var(--theme-outline,#e5e9f4);border-radius:18px;padding:22px}.config-row{background:var(--theme-surface-light,#fbfbff);border-color:var(--theme-outline,#e4e7f0)}.config-row:hover{background:var(--theme-surface,#f2f5fd)}.card,.report,pre{background:var(--theme-surface,#f2f4fa);border-radius:16px}.summary-wrap{border-color:var(--theme-outline,#e3e7f0)}th{background:var(--theme-surface,#f2f4fa);color:#596477}td{border-color:#edf0f5}.summary-table td:first-child,.summary-table th:first-child{background:var(--theme-surface-light,#f7f8fd)}.file-group{background:var(--theme-surface-light,#fafbff)}.composer{border:1px solid var(--theme-outline-strong,#cbd2e2);background:var(--theme-surface-light,#fafbff)}.composer textarea{background:transparent;border:0;box-shadow:none}.composer textarea:focus{background:transparent;box-shadow:none}.settings-tabs{padding:5px;border-radius:24px;background:var(--theme-surface,#f2f4fa);width:fit-content}.settings-tabs button{min-height:38px;padding:8px 16px}.model-field{display:flex;flex-direction:column;gap:7px}.model-field>label{display:flex;flex-direction:column}.model-actions{display:flex;gap:8px;align-items:center}.model-actions select{min-width:0;flex:1}.model-field small{color:#667185;line-height:1.4}.model-actions button{white-space:nowrap}
@media(max-width:650px){:root{--sidebar-width:86.4px}.shell nav{padding:16px 6px}.shell nav button{padding:10px 12px}.shell main{padding:0 10px 24px 0;margin-top:16px}.tab{padding:20px;border-radius:20px}.model-actions{align-items:stretch;flex-direction:column}}
.settings-tabs button.secondary{background:transparent;color:#56627b}.settings-tabs button.secondary.selected{background:var(--theme-selected,#dbe5fb);color:var(--theme-selected-ink,#29498f);font-weight:700}.settings-tabs button.secondary:hover{background:var(--theme-tonal-hover,#e5ebf9)}
.input-choices{gap:4px;max-width:440px}.input-choices label{display:flex;align-items:center;gap:14px;min-height:50px;padding:8px 12px;border-radius:12px;color:#343d50;cursor:pointer;transition:background .16s}.input-choices label:hover{background:var(--theme-surface,#f0f3fb)}.input-choices input[type=checkbox]{appearance:none;-webkit-appearance:none;display:grid;place-content:center;flex:none;width:20px;height:20px;margin:0;border:2px solid #78839a;border-radius:4px;background:transparent;cursor:pointer;transition:background .16s,border-color .16s}.input-choices input[type=checkbox]::after{content:'';width:9px;height:5px;border-left:2px solid var(--md-on-primary);border-bottom:2px solid var(--md-on-primary);transform:translateY(-1px) rotate(-45deg) scale(0);transition:transform .12s}.input-choices input[type=checkbox]:checked{background:var(--theme-primary,#445eb2);border-color:var(--theme-primary,#445eb2)}.input-choices input[type=checkbox]:checked::after{transform:translateY(-1px) rotate(-45deg) scale(1)}.input-choices input[type=checkbox]:focus-visible{outline:3px solid var(--theme-focus,#aabef5);outline-offset:3px}
.summary-toolbar{margin-bottom:8px}.summary-wrap{max-height:calc(100vh - 190px);min-height:110px;margin-top:8px}.summary-table th,.summary-table td{padding:6px 10px;height:38px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}.summary-table th{height:40px}.summary-table td .link{max-width:250px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:middle}.summary-file-cell{display:flex;align-items:center;gap:5px;min-width:0}.summary-file-cell .file-link{flex:0 1 auto;min-width:0;max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.summary-file-cell .more-files-button{flex:none;width:28px;min-height:28px;padding:0;border-radius:50%;font-size:18px;line-height:1;background:var(--theme-tonal,#e6ebf7);color:var(--theme-ink,#405ca3)}.summary-footer{display:flex;align-items:center;justify-content:space-between;min-height:32px;margin-top:8px}.summary-footer .hint{font-size:12px}.more-files-list{display:flex;flex-direction:column;gap:0;max-height:55vh;overflow:auto}.more-file-row{padding:10px 4px;border-bottom:1px solid #e8ebf3}.more-file-row .file-link{overflow-wrap:anywhere}*{scrollbar-width:thin;scrollbar-color:#aab5cd transparent}*::-webkit-scrollbar{width:9px;height:9px}*::-webkit-scrollbar-track{background:transparent;border-radius:10px}*::-webkit-scrollbar-thumb{background:#b4bfd3;border:2px solid transparent;background-clip:padding-box;border-radius:10px}*::-webkit-scrollbar-thumb:hover{background:#8f9dbb;border:2px solid transparent;background-clip:padding-box}*::-webkit-scrollbar-corner{background:transparent}@media(max-width:650px){.summary-wrap{max-height:calc(100vh - 220px)}.summary-table th,.summary-table td{height:36px}}
.summary-table{font-variant-numeric:tabular-nums;line-height:1.45}.summary-table tbody td{height:76px}.summary-table .summary-features{display:block;min-width:180px;max-height:60px;overflow-y:auto;white-space:normal;overflow-wrap:anywhere;line-height:20px}@media(max-width:650px){.summary-table tbody td{height:72px}}
.summary-table .summary-communication-owners { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; white-space:normal; overflow-wrap:anywhere; line-height:20px; }
.force-toolbar{margin-bottom:20px}

.shell nav button[data-tab], .shell nav .nav-menu-toggle { font-size: 16.8px; }
.shell nav .nav-menu-toggle { display:flex; align-items:center; justify-content:space-between; gap:4px; }
.nav-menu-toggle[aria-expanded="true"] .nav-caret { transform:rotate(180deg); }
.shell nav .subnav button { font-size: 15.6px; }
@media (max-width: 650px) {
  .shell nav button { padding-inline: 6px; }
  .shell nav .subnav { margin-left: 6px; padding-left: 5px; }
  .shell nav .nav-menu-toggle { font-size:12px; padding-inline:4px; gap:2px; }
}
.force-toolbar .update-spinner:not([hidden]) {
  display: inline-block; width: 1em; height: 1em; margin-inline-end: .45em;
  vertical-align: -.13em; border: 2px solid currentColor; border-inline-end-color: transparent;
  border-radius: 50%; animation: full-update-spin .75s linear infinite;
}
.force-toolbar .stop-update { background: #fce4e4; color: #8e2929; }
@keyframes full-update-spin { to { transform: rotate(1turn); } }
@media (prefers-reduced-motion: reduce) {
  .force-toolbar .update-spinner { animation: none; }
}

.auto-recent-range label { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.auto-recent-range input { width:min(9rem, 100%); }
.auto-switches { display: flex; flex-direction: column; align-items: stretch; gap: 12px; max-width: 440px; margin: 12px 0 16px; }
.auto-switches .switch-line { justify-content: space-between; min-height: 32px; }
.auto-switches .switch-track { flex-shrink: 0; }
.auto-switches .switch-line:has(input:disabled) { opacity: .55; cursor: not-allowed; }

.summary-controls { display:flex; flex-wrap:wrap; gap:8px; margin-inline-start:auto; }
.summary-table .summary-sort { padding:0; min-height:30px; background:transparent; color:inherit; border-radius:6px; text-align:left; font:inherit; }
.summary-table .summary-sort:hover { color:var(--theme-ink,#405da9); }
.summary-table .summary-sort span { display:inline-block; width:1em; color:var(--theme-ink,#405da9); }
.summary-table .inquiry-toggle { display:block; min-height:27px; padding:3px 9px; margin-top:3px; font-size:12px; background:var(--theme-tonal,#e7edfa); color:var(--theme-ink,#304d95); }
.summary-table :is(th,td).summary-id-cell { width:180px; min-width:180px; max-width:180px; }
.summary-table .summary-id-cell .link { max-width:100%; }
.summary-table .summary-id-cell .inquiry-toggle { max-width:100%; padding-inline:6px; white-space:normal; text-align:left; }
#summaryWrap { scrollbar-width:auto; scrollbar-color:auto; }
#summaryWrap::-webkit-scrollbar { width:9px; height:13.5px; }
.summary-inquiry-label { display:block; color:#616d86; margin-top:4px; }
.summary-chat-groups { display:grid; gap:4px; max-height:62px; min-width:230px; overflow:auto; }
.summary-chat-owner { flex:none; max-width:110px; overflow:hidden; text-overflow:ellipsis; color:#495670; font-weight:600; }
.summary-chat-groups .summary-file-cell { min-height:24px; }
.summary-table tbody .summary-inquiry-row td { height:52px; background:#f3f6fd; }
.summary-table tbody .summary-inquiry-row td:first-child { box-shadow:inset 3px 0 var(--theme-outline-strong,#c6d4f4); }
.summary-dialog { width:min(740px, calc(100vw - 30px)); }
.summary-dialog .toolbar { margin-top:14px; }
.summary-filter-rule, .summary-sort-settings { display:grid; gap:10px; align-items:end; margin:12px 0; }
.summary-filter-rule { grid-template-columns:minmax(0, 1fr) minmax(100px, .65fr) minmax(0, 1fr) auto; }
.summary-sort-settings { grid-template-columns:repeat(2, minmax(0, 1fr)); }
.summary-sort-settings label { display:grid; gap:6px; }
.summary-dialog :is(select, input:not([type=checkbox])) { min-width:0; width:100%; }
.summary-views-control { position:relative; }
#summaryViewsButton { display:flex; align-items:center; gap:8px; max-width:min(240px, 60vw); }
#summaryViewsLabel { overflow:hidden; text-overflow:ellipsis; }
.summary-views-menu { position:absolute; z-index:12; right:0; left:auto; top:calc(100% + 6px); width:min(156px, 54vw); max-height:55vh; overflow:auto; padding:5px 0; border:1px solid var(--theme-outline,#dfe5f3); border-radius:14px; background:var(--theme-surface-light,#fbfcff); box-shadow:0 8px 24px #24345b29; }
.summary-views-menu .summary-view-choice { display:flex; align-items:center; justify-content:flex-end; gap:8px; width:100%; min-height:36px; padding:7px 10px; border-radius:0; background:transparent; color:#35415e; text-align:right; white-space:normal; overflow-wrap:anywhere; box-shadow:none; }
.summary-views-menu .summary-view-check { flex:0 0 12px; }
.summary-views-menu .summary-view-choice:hover, .summary-views-menu .summary-view-choice:focus-visible { background:#e9effb; outline:none; }
.summary-views-menu .summary-view-choice[aria-checked="true"], .summary-views-menu .summary-view-create { color:var(--theme-ink,#304d95); }
.summary-views-menu .summary-view-create { border-top:1px solid var(--theme-outline,#dfe5f3); padding-right:30px; }
.summary-view-list { display:grid; gap:2px; max-height:min(360px, 48vh); overflow:auto; }
.summary-view-option { display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; min-height:38px; padding:8px 12px; text-align:left; color:#35415e; background:transparent; border-radius:12px; }
.summary-view-option span:first-child { overflow-wrap:anywhere; }
.summary-view-option:hover, .summary-view-option[aria-current="true"] { background:var(--theme-tonal-hover,#e6edfc); color:var(--theme-selected-ink,#294685); }
.summary-view-add { width:100%; margin-top:4px; border-top:1px solid var(--theme-outline,#dfe5f3); border-radius:0 0 12px 12px; text-align:left; }
.summary-view-layout { display:grid; grid-template-columns:minmax(0, 1fr) minmax(155px, .46fr); gap:20px; }
.summary-view-layout h3 { margin:8px 0 4px; overflow-wrap:anywhere; }
.summary-view-sidebar { min-width:0; background:var(--theme-surface,#f3f6fc); border-radius:16px; padding:10px; }
.summary-view-sidebar h3, .summary-view-sidebar p { padding-inline:8px; }
.summary-view-editor .summary-column-actions { margin:8px 0 10px; }
.summary-view-columns { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); max-width:none; max-height:46vh; overflow:auto; padding:4px; }
.summary-view-columns label { min-height:42px; gap:8px; padding:6px 8px; overflow-wrap:anywhere; }
.summary-view-name-dialog { width:min(420px, calc(100vw - 30px)); }
.summary-view-name-label { display:block; margin:12px 0 6px; }
#summaryViewDelete { color:#9a3030; background:#fae9e9; }
.management-dialog { width:min(600px, calc(100vw - 28px)); }
.management-field { display:grid; gap:6px; margin:12px 0; max-width:480px; color:#465470; }
.management-field input,.management-field select { width:100%; }
.management-form .toolbar { margin:8px 0; }
.management-enable { display:flex; align-items:center; gap:10px; margin:14px 0; }
.management-permissions { max-width:none; display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); }
.management-list { display:grid; gap:8px; margin:12px 0; }
.management-row { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; padding:12px 15px; border-radius:14px; background:var(--theme-surface,#f2f5fc); overflow-wrap:anywhere; }
.management-row small { display:block; color:#59657b; }
.batch-heading { justify-content:space-between; margin-bottom:20px; }
.composer-file-tools { margin-bottom:8px; }
.composer:focus-visible { outline:2px solid var(--theme-focus,#9bb0e7); outline-offset:2px; }
.batch-heading h2 { margin-block:0; }
.batch-view-switch { margin-bottom:0; }
.batch-pane { display:grid; gap:20px; }
.batch-module { min-width:0; padding:clamp(14px, 2vw, 24px); background:var(--theme-surface-light,#fafbff); border:1px solid var(--theme-outline,#d9e1f1); border-radius:18px; scroll-margin-top:16px; }
.batch-module > h3 { margin:0 0 14px; color:#283b62; }
.batch-module h4 { margin:16px 0 8px; }
.batch-result { border-top:1px solid var(--theme-outline,#d9e1f1); margin-top:20px; padding-top:14px; scroll-margin-top:16px; }
.batch-result > h4 { margin-top:0; }
.batch-details > summary { cursor:pointer; font-weight:650; padding:8px 0; }
.batch-filters { display:grid; gap:8px; margin-bottom:10px; max-width:900px; }
.batch-filter { display:grid; grid-template-columns:minmax(130px,1fr) minmax(110px,.7fr) minmax(140px,1.35fr) auto; gap:8px; align-items:center; }
.batch-filter :is(select,input) { min-width:0; width:100%; }
.batch-choices,.batch-kinds { margin-block:12px; }
.batch-kinds { display:flex; flex-flow:row wrap; max-width:none; }
#batchLimit { width:100px; min-width:0; }
.batch-file { overflow-wrap:anywhere; }
.batch-files { display:grid; gap:5px; max-height:440px; overflow:auto; margin-block:8px; }
.batch-file { display:grid; grid-template-columns:minmax(0,1fr) max-content; gap:8px 16px; align-items:center; padding:8px 12px; background:var(--theme-surface,#f3f6fc); border-radius:12px; }
.batch-file small { display:block; color:#59657b; }
.batch-file-actions,.batch-export-actions { margin-block:0; }
.batch-file-actions,.test-file-row .toolbar { flex-wrap:nowrap; }
#batchHistory .batch-export-actions { min-width:min(330px, 60vw); }
.batch-download { display:inline-flex; min-height:36px; align-items:center; color:var(--theme-ink,#344e98); padding:5px 12px; border-radius:20px; font-weight:600; }
.batch-download:hover { background:var(--theme-tonal-hover,#e5ebfa); }
#batchPrompt { margin-bottom:8px; }
@media (max-width:650px) {
  .summary-controls { margin-inline-start:0; }
  .summary-filter-rule { grid-template-columns:repeat(2, minmax(0, 1fr)); }
  .summary-view-layout { grid-template-columns:1fr; gap:12px; }
  .summary-view-sidebar .summary-view-list { max-height:22vh; }
  .batch-filter { grid-template-columns:repeat(2,minmax(0,1fr)); }

}

.proxy-node-wrap{max-height:420px;overflow:auto}.proxy-node-wrap td:first-child{min-width:180px;overflow-wrap:anywhere}.proxy-node-wrap .row-actions{white-space:nowrap}

.test-file-info,.batch-file-info { min-width:0; }
:is(.test-file-info,.batch-file-info,.test-item-label) :is(strong,small) { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.test-file-row .toolbar button,.batch-file-actions :is(button,a),.test-item .item-move,.dialog-head > button { flex:none; }
.dialog-head > :first-child { min-width:0; overflow-wrap:anywhere; }
#detail .file-link,#detail .file-link + .muted { max-width:100%; overflow-wrap:anywhere; }
.test-history-api { overflow-wrap:anywhere; }
.test-history-api small { display:block; color:#59657b; }
[data-history-more] { margin-top:12px; }
#testHistoryDetailBody { max-height:65vh; overflow:auto; overflow-wrap:anywhere; padding-right:8px; }
#testHistorySources { list-style:none; padding:0; }
.history-source-row { display:grid; grid-template-columns:minmax(0,1fr) max-content; align-items:center; gap:12px; padding:8px 0; border-bottom:1px solid var(--theme-outline,#e5e9f2); }
.history-source-name { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.history-source-row button { padding:7px 12px; }
.history-detail-heading { justify-content:space-between; margin-top:20px; }
.history-detail-heading h3 { margin:0; }
#testHistorySourceName { margin-bottom:8px; }
@media (max-width:880px) {
  .batch-file { grid-template-columns:minmax(0,1fr); }
  .batch-file-actions { flex-wrap:wrap; }
}
@media (max-width:650px) {
  .test-file-row { grid-template-columns:minmax(0,1fr); }
  .test-file-row .toolbar { justify-content:flex-start; flex-wrap:wrap; }
}

.queue-actions { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:start; gap:10px; margin:12px 0; }
.queue-table td { overflow-wrap:anywhere; vertical-align:middle; }
.queue-table .queue-prompt { display:block; max-width:180px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.queue-table .queue-cell-status { min-width:100px; }
.queue-table .queue-cell-result { min-width:160px; }
.queue-table :is(.queue-cell-status,.queue-cell-result) small { display:block; color:#59657b; }
.queue-confirm-files { display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:6px 12px; list-style:none; padding:0; }
.queue-file-marker { display:inline-block; width:1.2em; color:var(--theme-ink,#405da9); }
#queueConfirmPrompt { max-height:28vh; }
#queueOverwriteChoice { min-width:0; margin:12px 0 20px; padding:0; border:0; }
#queueOverwriteChoice legend { padding:0; margin-bottom:10px; font-weight:650; }
.queue-overwrite-options { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr)); gap:10px; }
.queue-overwrite-option { position:relative; display:flex; align-items:center; justify-content:center; min-height:46px; padding:9px 14px; border:1px solid transparent; border-radius:22px; background:var(--theme-tonal,#e0e7ff); color:var(--theme-ink,#304d95); font-weight:600; text-align:center; cursor:pointer; }
.queue-overwrite-option:hover { background:var(--theme-selected,#d2defb); }
.queue-overwrite-option:has(input:checked) { background:var(--theme-primary,#405da9); color:var(--md-on-primary); }
.queue-overwrite-option:has(input:focus-visible) { outline:3px solid var(--theme-focus,#aabef5); outline-offset:2px; }
.queue-overwrite-option input,.queue-file-status { position:absolute; width:1px; height:1px; padding:0; margin:0; border:0; clip-path:inset(50%); overflow:hidden; }

.test-workspace { display:grid; }
:is(#researchTest,#multiCustomerTest,#batchTest) {
  --test-surface:#fff;
  --test-container:var(--theme-surface,#f0f3fa);
  --test-outline:var(--theme-outline,#dce3f0);
  --test-heading:#213453;
  background:var(--theme-surface,#f6f8fc);
}
:is(#researchTest,#multiCustomerTest) .test-workspace,#batchTest .batch-pane { gap:clamp(20px,2.2vw,30px); }
#testWorkPane > .batch-module[aria-labelledby="testConfigTitle"],#batchAI {
  background:var(--theme-surface-light,#fbfcff);
  border-color:var(--theme-outline-strong,#cad7ef);
}
:is(#testWorkPane,#batchWorkPane) > .batch-module > h3 {
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:20px;
}
:is(#testWorkPane,#batchWorkPane) > .batch-module > h3::before {
  content:"";
  flex:0 0 4px;
  block-size:18px;
  border-radius:4px;
  background:var(--theme-marker,#6681ba);
}
:is(#researchTest,#multiCustomerTest,#batchTest) .batch-module {
  padding:clamp(16px,2.3vw,28px);
  border:1px solid var(--test-outline);
  border-radius:24px;
  background:var(--test-surface);
}
:is(#researchTest,#multiCustomerTest,#batchTest) .batch-module > :is(h3,.batch-heading) {
  margin:0 0 16px;
  color:var(--test-heading);
}
:is(#researchTest,#multiCustomerTest,#batchTest) .batch-module > h3,
:is(#researchTest,#multiCustomerTest,#batchTest) .batch-module > .batch-heading h3 {
  font-size:19px;
  line-height:1.35;
}
:is(#researchTest,#multiCustomerTest,#batchTest) .batch-module > .batch-heading h3 { margin:0; }
:is(#researchTest,#multiCustomerTest,#batchTest) .batch-view-switch { background:var(--theme-surface,#e9eef8); }
:is(#researchTest,#multiCustomerTest,#batchTest) .batch-view-switch button:not(.selected) { background:transparent; }
:is(#researchTest,#multiCustomerTest,#batchTest) .batch-view-switch button.selected { background:var(--theme-selected,#d8e4ff); color:var(--theme-selected-ink,#233f77); }
.test-module,.test-block,.test-results,.test-composer { min-width:0; text-align:left; }
#batchTest .batch-result {
  min-width:0;
  padding:clamp(14px,1.9vw,22px);
  border:0;
  border-radius:20px;
  background:var(--test-container);
}
#batchTest .test-block + .test-block {
  margin-block-start:clamp(16px,1.8vw,24px);
  padding-block-start:clamp(16px,1.8vw,24px);
  border-block-start:1px solid var(--test-outline);
}
#batchTest :is(.test-block,.batch-result) > h4 {
  margin:0 0 12px;
  font-size:16px;
  color:var(--test-heading);
}
.test-module .hint { text-align:left; }
.test-module :is(.test-files,.matches):empty { display:none; }
:is(#testFiles,#multiCustomerFiles) { margin-block:14px 0; }
:is(#testFiles,#multiCustomerFiles) > h3 { margin:0 0 10px; font-size:16px; }
:is(#testFiles,#multiCustomerFiles) .file-group { margin-block:8px; padding:3px 12px; }
:is(#testFiles,#multiCustomerFiles) .file-group > h4 { margin-bottom:1px; line-height:1.25; }
:is(#testFiles,#multiCustomerFiles) .test-file-row { padding-block:8.5px; line-height:1.3; }
:is(#testFiles,#multiCustomerFiles) .test-file-info small { margin-top:1px; }
:is(#testFiles,#multiCustomerFiles) .test-file-row .toolbar { gap:8px; }
:is(#testFiles,#multiCustomerFiles) .test-file-row button { min-height:32px; padding:4px 10px; }
.test-api-picker {
  min-width:0;
  border:0;
  border-block-end:1px solid var(--test-outline);
  padding:0 0 16px;
  margin:0 0 16px;
}
.test-api-picker legend,.test-template-label,.test-prompt-label { padding:0; font-weight:650; color:#3c4a65; }
.test-api-picker .hint { margin:4px 0 10px; }
.test-api-options { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr)); gap:8px; }
.test-api-option { display:grid; grid-template-columns:auto minmax(0,1fr); align-items:start; gap:10px; min-height:44px; padding:10px 12px; border:1px solid var(--test-outline); border-radius:16px; background:var(--test-surface); cursor:pointer; text-align:left; }
.test-api-option:has(input:checked) { border-color:var(--theme-outline-strong,#c6d6f7); background:var(--theme-tonal,#e3ecff); color:var(--theme-selected-ink,#213a67); }
.test-api-option input { margin:4px 0 0; accent-color:var(--theme-primary,#405da9); }
.test-api-option :is(strong,small) { display:block; overflow-wrap:anywhere; }
.test-api-option small { color:#536079; }
.test-template-label { display:grid; width:min(420px,100%); gap:6px; margin:0 0 14px; }
.test-template-label select { width:100%; }
.test-prompt-label { display:block; margin:0 0 6px; }
.test-prompt { display:block; resize:vertical; text-align:left; }
.test-composer { margin-bottom:0; border-color:var(--test-outline); border-radius:18px; background:var(--test-surface); }
.test-composer .test-items > .hint { margin:2px 0; }
.test-composer textarea { display:block; min-height:3.4rem; margin-top:9px; border-top:1px solid var(--theme-outline,#dfe5f3); border-radius:0; text-align:left; }
@supports (field-sizing:content) {
  .test-composer textarea { field-sizing:content; max-height:50vh; }
}
.test-run-toolbar p { margin:0; }
.test-results { display:grid; gap:12px; }
.test-results > .hint { margin:0; }
.test-result-card { min-width:0; padding:16px; border:1px solid var(--test-outline); border-radius:18px; background:var(--test-surface); }
.test-result-card h4 { margin:0; overflow-wrap:anywhere; }
.test-result-card .hint { margin:3px 0 10px; overflow-wrap:anywhere; }
.test-result-card .report { text-align:left; margin:0; background:var(--theme-surface,#f6f8fc); }
#batchTest .batch-choices { align-items:end; }
#batchTest .batch-choices label { display:grid; gap:6px; text-align:left; }

/* Sidebar dock and theme picker */
.shell nav { height:100dvh; overflow:hidden; }
.nav-scroll {
  display:flex; flex:1; flex-direction:column; gap:6px; min-height:0;
  overflow:auto; padding:2px 3px; margin-inline:-3px;
}
.nav-scroll > * { flex-shrink:0; }
.account-controls {
  display:grid; flex:none; gap:6px; padding-top:10px;
  border-top:1px solid var(--theme-outline-strong,#c9d0df);
}
.shell nav .theme-trigger {
  display:flex; align-items:center; gap:8px; min-height:36px; padding:6px 10px;
  background:var(--theme-tonal,#e3eafb); color:var(--theme-selected-ink,#29498f);
}
.shell nav .theme-trigger:hover { background:var(--theme-selected,#dbe5fb); }
.theme-swatch {
  display:inline-block; flex:none; width:14px; height:14px; border-radius:50%;
  background:var(--swatch,var(--md-primary));
}
.theme-current-name {
  min-width:0; margin-inline-start:auto; overflow:hidden; text-overflow:ellipsis;
  font-size:12px; font-weight:500;
}
.account-actions { display:flex; gap:4px; min-width:0; }
.shell nav .account-actions > :is(button,.account-name) {
  min-width:0; min-height:36px; padding:0 5px; border-radius:12px;
  background:var(--theme-tonal,#e3eafb); color:var(--theme-selected-ink,#29498f);
  text-align:center; white-space:nowrap; font-size:12px; font-weight:550; line-height:36px;
}
.account-name {
  display:block; flex:1; overflow:hidden; text-overflow:ellipsis;
}
.shell nav .account-actions button {
  display:inline-flex; flex:none; width:auto; align-items:center; justify-content:center;
}
.shell nav .account-actions button:is(:hover,.active) {
  background:var(--theme-selected,#dbe5fb);
}
.shell nav .account-actions #loginButton {
  flex:1; padding-block:5px; line-height:1.35; white-space:normal;
}
.account-action-icon { display:none; width:15px; height:15px; flex:none; }
.theme-dialog {
  inset:auto auto 14px max(12px,calc(var(--sidebar-width) - 10px)); margin:0;
  width:min(450px,calc(100vw - var(--sidebar-width) - 14px)); max-height:calc(100dvh - 28px);
  color:var(--md-on-surface); background:var(--md-surface);
  border:1px solid var(--theme-outline,#e3e6f0);
}
.theme-dialog h2 { margin:0; }
.theme-dialog .hint { margin:4px 0 0; }
.theme-choices {
  display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin-top:17px;
}
.theme-choices .theme-option {
  display:flex; align-items:center; gap:7px; justify-content:flex-start;
  padding:8px; min-height:44px; border:1px solid var(--theme-outline,#e3e6f0);
  border-radius:12px; background:var(--theme-surface-light,#f7f8fd);
  color:var(--md-on-surface); white-space:normal;
}
.theme-choices .theme-option:hover { background:var(--theme-tonal,#e3eafb); box-shadow:none; }
.theme-choices .theme-option[aria-pressed="true"] {
  background:var(--theme-tonal,#e3eafb);
  border-color:var(--theme-ink,var(--md-primary)); color:var(--theme-selected-ink,#29498f);
}
.theme-check { display:none; margin-inline-start:auto; }
.theme-check::before { content:"✓"; }
.theme-option[aria-pressed="true"] .theme-check { display:inline; }
@media (max-width:650px) {
  .shell nav .theme-trigger { justify-content:center; padding-inline:5px; }
  .theme-current-name { display:none; }
  .account-actions { gap:3px; }
  .shell nav .account-actions > :is(button,.account-name) { padding-inline:3px; font-size:11px; }
  .shell nav .account-actions :is(#manageButton,#logoutButton) { width:22px; }
  .account-action-label { display:none; }
  .account-action-icon { display:block; }
  .theme-dialog { inset:auto 12px 12px; width:auto; padding:16px; }
}
@media (max-width:350px) {
  .theme-choices { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

.multi-selection-head { margin-bottom:8px; }
.multi-customer-list { display:grid; gap:8px; }
.multi-customer-card {
  min-width:0; padding:10px 12px; border:1px solid var(--theme-outline,#dce3f0);
  border-radius:14px; background:var(--theme-surface-light,#f7f8fd);
}
.multi-customer-card summary { cursor:pointer; overflow-wrap:anywhere; }
.multi-customer-card summary small { margin-inline-start:7px; }
.multi-customer-card .multi-files { margin:8px 0 0; padding:0; list-style:none; }
.multi-customer-card .multi-file-row {
  display:flex; align-items:center; gap:8px; justify-content:space-between;
  padding:4px 0; border-top:1px solid var(--theme-outline,#dce3f0);
}
.multi-file-row > span { min-width:0; overflow-wrap:anywhere; }
.multi-customer-card button { flex:none; min-height:32px; padding:4px 10px; }
.multi-customer-card .multi-result-body { margin-top:10px; }
.multi-limit-row { margin:8px 0 12px; }
.multi-limit-row label { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.multi-limit-row .hint { margin:0; }

.pipeline-settings { min-width:0; }
.pipeline-settings > .settings-tabs { margin-bottom:8px; }
#settings.pipeline-page { padding:0; background:transparent; box-shadow:none; }
.pipeline-page > .settings-module {
  padding:32px 34px; border-radius:26px; background:var(--md-surface);
  box-shadow:0 1px 3px #1d29400a,0 8px 28px #39475c0b;
}
@media(max-width:650px) {
  .pipeline-page > .settings-module { padding:20px; border-radius:20px; }
}
.pipeline-settings-content {
  display:grid; grid-template-columns:minmax(0,1fr); align-items:start; padding:3px 5px 8px;
}
.pipeline-settings-content > div { grid-area:1 / 1; min-width:0; }
.pipeline-settings-content > [aria-hidden="true"] { visibility:hidden; }
.pipeline-settings-content > div > h3:first-child { margin-top:10px; }
.pipeline-queue {
  margin-top:18px; padding:clamp(12px,2vw,22px); border-radius:18px;
  background:var(--theme-surface-light,#f7f8fd); border:1px solid var(--theme-outline,#e3e6f0);
}
.pipeline-queue > h3 { margin:0 0 12px; }
#queueActionStatus:empty { display:none; }

.codex-authorization{margin:8px 0 16px;padding:16px 18px;border:1px solid var(--theme-outline,#e5e9f4);border-radius:14px;background:var(--theme-surface-light,#fbfbff)}
.codex-authorization h4{margin-bottom:6px}
.codex-authorization p{margin:6px 0 10px}
.codex-authorization .toolbar{flex-wrap:wrap;gap:8px;margin:8px 0}
.codex-device code{font-size:1.2em;letter-spacing:.09em;user-select:all}
.codex-device a{color:var(--theme-ink,#3157a1);font-weight:600}

.score-detail-positive { color: #2e7d32; font-weight: 700; }
.score-detail-negative { color: #b3261e; font-weight: 700; }
:is(.score-detail-positive, .score-detail-negative) .muted { color: inherit; }

#queuePagination { flex-wrap:wrap; }
#queuePageJump { display:flex; align-items:center; gap:8px; margin:0; }
#queuePageNumber { width:6em; min-width:0; }
