.pathology-tools{--font-body:var(--font-inter),system-ui,sans-serif;--font-mono:var(--font-jetbrains-mono),monospace;--path-ink:#282333;--path-secondary:#625d70;--path-muted:#716b7d;--path-accent:#67418a;--path-border:#e6e1ec;--path-surface:#f7f5fa;isolation:isolate;min-height:100vh;color:var(--path-ink);--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;font-family:var(--font-body);background:#f6f5f8;padding:40px clamp(16px,3vw,48px) 64px;font-size:14px;line-height:1.6;position:relative}.pathology-tools.is-embedded{min-height:0}.pathology-tools *,.pathology-tools :before,.pathology-tools :after{box-sizing:border-box}.pathology-container{max-width:1600px;margin:0 auto}.pathology-heading{justify-content:space-between;align-items:center;gap:32px;margin-bottom:28px;display:flex}.pathology-eyebrow{color:var(--path-accent);letter-spacing:.12em;text-transform:uppercase;margin:0 0 8px;font-size:11px;font-weight:700}.pathology-heading h2{font:650 clamp(28px,3vw,38px)/1.2 var(--font-body);letter-spacing:-.045em;margin:0 0 12px}.pathology-heading>div>p:last-child{color:var(--path-secondary);max-width:640px;margin:0;font-size:14px;line-height:1.7}.pathology-workflow{color:var(--path-secondary);flex-shrink:0;align-items:center;gap:12px;font-size:12px;display:flex}.pathology-workflow span{align-items:center;gap:8px;display:inline-flex}.pathology-workflow b{width:26px;height:26px;color:var(--path-accent);background:#fff;border:1px solid #d9cce5;border-radius:50%;place-items:center;font-size:11px;font-weight:600;display:grid}.pathology-workflow i{background:#d9cce5;width:20px;height:1px}.pathology-metrics{border:1px solid var(--path-border);background:#fff;border-radius:12px;grid-template-columns:repeat(4,minmax(0,1fr));margin:0 0 28px;display:grid}.pathology-metrics>div{flex-direction:column;gap:6px;padding:18px 24px;display:flex}.pathology-metrics>div+div{border-left:1px solid var(--path-border)}.pathology-metrics dt{color:var(--path-secondary);font-size:12px}.pathology-metrics dd{letter-spacing:-.03em;font-variant-numeric:tabular-nums;margin:0;font-size:26px;font-weight:650;line-height:1.3}.pathology-metrics .pathology-format{color:var(--path-accent);letter-spacing:-.01em;font-size:17px;font-weight:550;line-height:2}.pathology-builder{grid-template-columns:350px minmax(0,1fr);align-items:start;gap:24px;display:grid}.pathology-builder>*,.pathology-tools .flex>*,.pathology-tools .grid>*{min-width:0}.pathology-tools .text-text-primary{color:var(--path-ink)}.pathology-tools .text-text-secondary{color:var(--path-secondary)}.pathology-tools [class*=text-text-muted]{color:var(--path-muted)}.pathology-tools .text-accent{color:var(--path-accent)}.pathology-tools [class*=bg-bg-secondary]{background-color:var(--path-surface)}.pathology-tools .bg-bg-card{background-color:#fff}.pathology-tools [class*=border-border-subtle]{border-color:var(--path-border)}.pathology-tools [class*=border-accent]{border-color:#cbb8dc}.pathology-tools [class*=bg-accent\/]{background-color:#f0e9f6}.pathology-tools .bg-accent{background-color:var(--path-accent);color:#fff;border-color:var(--path-accent)}.pathology-tools [class*=text-amber-]{color:#865817}.pathology-tools [class*=text-emerald-],.pathology-tools .text-success{color:#26704d}.pathology-tools [class*=text-red-],.pathology-tools .text-error{color:#b33d4b}.pathology-tools [class*=text-slate-]{color:#586477}.pathology-tools .glass-card{border:1px solid var(--path-border);-webkit-backdrop-filter:none;backdrop-filter:none;background:#fff;border-radius:12px;transition:none;box-shadow:0 2px 4px #28233303}.pathology-tools .glass-card:hover{border-color:var(--path-border);background:#fff}.pathology-source{padding:24px}.pathology-panel-title{align-items:center;gap:12px;display:flex}.pathology-section-icon{width:36px;height:36px;color:var(--path-accent);font:500 11px var(--font-mono);background:#f6f1fa;border:1px solid #e3d8ed;border-radius:10px;flex-shrink:0;place-items:center;display:grid}.pathology-panel-title h3{letter-spacing:-.015em;margin:0;font-size:15px;font-weight:650;line-height:1.5}.pathology-panel-title p{color:var(--path-muted);margin:2px 0 0;font-size:12px}.pathology-upload-grid{border-bottom:1px solid var(--path-border);gap:8px;padding-bottom:20px;display:grid}.pathology-upload{color:var(--path-accent);cursor:pointer;background:#fcfafe;border:1px dashed #cebedc;border-radius:8px;align-items:center;gap:12px;padding:11px 14px;font-size:12px;font-weight:600;transition:background .15s,border-color .15s;display:flex;position:relative}.pathology-upload:hover{border-color:var(--path-accent);background:#f1eaf7}.pathology-upload svg{flex-shrink:0}.pathology-upload span{justify-content:space-between;align-items:baseline;gap:8px;width:100%;display:flex}.pathology-upload small{color:var(--path-muted);font-size:10px;font-weight:400}.pathology-tools .pathology-upload input[type=file]{opacity:0;cursor:pointer;width:100%;height:100%;position:absolute;inset:0}.pathology-upload:focus-within{outline-offset:3px;outline:3px solid #a384c0}.pathology-source-fields{gap:14px;display:grid}.pathology-source-fields label{font-size:12px;font-weight:550;display:block}.pathology-optional{color:var(--path-muted);font-weight:400}.pathology-tools input:not([type=checkbox]):not([type=file]),.pathology-tools select,.pathology-tools textarea{min-width:0;max-width:100%;color:var(--path-ink);font-family:var(--font-body);background-color:#fff;border:1px solid #dcd5e5;border-radius:7px;padding:9px 11px;font-size:13px;line-height:1.6}.pathology-tools input::placeholder,.pathology-tools textarea::placeholder{color:#8a8394;opacity:1}.pathology-tools textarea{resize:vertical}.pathology-tools .pathology-rule-text{min-height:280px;font:12px/1.8 var(--font-mono);background:#faf9fc}.pathology-rule-label{margin-bottom:6px;font-size:12px;font-weight:550;display:block}.pathology-tools input[type=checkbox]{accent-color:var(--path-accent);flex-shrink:0;width:16px;height:16px}.pathology-tools label:has(input[type=checkbox]){cursor:pointer;align-items:center;gap:8px;margin:0;line-height:1.6;display:inline-flex}.pathology-tools button{min-height:34px;font-family:var(--font-body);cursor:pointer;font-weight:550;line-height:1.4;transition:background .15s,color .15s,border-color .15s}.pathology-tools button:disabled{cursor:not-allowed;opacity:.45}.pathology-tools button:not(:disabled):hover{filter:brightness(.96)}.pathology-tools :focus-visible{outline-offset:3px;outline:3px solid #a384c0}.pathology-tools .pathology-primary{background:var(--path-accent);color:#fff;border:1px solid var(--path-accent);white-space:nowrap;border-radius:7px;justify-content:center;align-items:center;gap:10px;min-height:39px;padding:10px 16px;font-size:12px;font-weight:600;display:inline-flex}.pathology-source-actions{padding-top:4px}.pathology-source-actions .pathology-primary{margin-right:auto}.pathology-source p,.pathology-flow-card p{overflow-wrap:anywhere}.pathology-output{min-width:0}.pathology-toolbar{padding:22px 24px 0}.pathology-output-heading{justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px;display:flex}.pathology-toolbar-row{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:14px;padding-bottom:18px;display:flex}.pathology-view-switch{border:1px solid var(--path-border);background:var(--path-surface);border-radius:8px;flex-wrap:wrap;gap:3px;padding:4px;display:flex}.pathology-view-switch button{min-height:32px;color:var(--path-secondary);background:0 0;border:1px solid #0000;border-radius:5px;padding:7px 10px;font-size:11px}.pathology-view-switch button[aria-pressed=true]{color:var(--path-accent);background:#fff;border-color:#e1d6eb;box-shadow:0 1px 3px #2823330a}.pathology-output-actions{gap:8px}.pathology-output-actions button{padding:6px 9px;font-size:11px}.pathology-options{border-top:1px solid var(--path-border)}.pathology-options>summary{cursor:pointer;color:var(--path-secondary);justify-content:space-between;align-items:center;gap:16px;padding:16px 0;font-size:12px;font-weight:600;list-style:none;display:flex}.pathology-options>summary::-webkit-details-marker{display:none}.pathology-options summary small{color:var(--path-muted);margin-left:10px;font-size:11px;font-weight:400}.pathology-options-chevron{color:var(--path-accent);font-size:20px;line-height:1}.pathology-options[open] .pathology-options-chevron{transform:rotate(180deg)}.pathology-options-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:4px 0 24px;display:grid}.pathology-option-group{border:1px solid var(--path-border);background:#faf9fc;border-radius:8px;flex-direction:column;align-items:stretch;gap:12px;min-width:0;padding:16px;display:flex}.pathology-option-group h4{color:var(--path-ink);margin:0;font-size:12px;font-weight:650}.pathology-option-group label{font-size:12px}.pathology-option-group>.border{background:0 0;border:0;padding:0}.pathology-option-group .font-mono{font-family:var(--font-body);letter-spacing:0;text-transform:none}.pathology-feedback{border-top:1px solid var(--path-border);color:#26704d;margin:0;padding:12px 0;font-size:12px}.pathology-empty{text-align:center;flex-direction:column;justify-content:center;align-items:center;min-height:420px;padding:40px;display:flex}.pathology-empty-diagram{color:#ab94c1;margin-bottom:24px}.pathology-empty h3{letter-spacing:-.025em;margin:0 0 10px;font-size:20px;font-weight:600}.pathology-empty p{max-width:360px;color:var(--path-secondary);margin:0;font-size:13px;line-height:1.8}.pathology-empty-hint{max-width:350px;color:var(--path-muted);margin-top:24px;font-size:11px;display:block}.pathology-empty-hint strong{color:var(--path-accent);font-weight:550}.pathology-flow-card{padding:24px}.pathology-tools .pathology-flow-card.is-checked{background:#f5faf7;border-color:#b7d6c4}.pathology-flow-heading{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.pathology-tools .pathology-flow-heading>input[type=text]{letter-spacing:-.02em;background:0 0;border:1px solid #0000;border-radius:3px;flex:1 0 100%;margin:0 0 8px;padding:6px 0;font-size:19px;font-weight:600}.pathology-tools .pathology-flow-heading>input:hover{border-bottom-color:#cbb8dc}.pathology-flow-heading>button:last-child{margin-left:auto}.pathology-flow-scope{padding:12px 0}.pathology-chart{border:1px solid var(--path-border);scrollbar-color:#c4b4d3 #f7f5fa;background:#fff;border-radius:8px;padding:24px 12px;overflow-x:auto}.pathology-chart-inner{min-width:700px}.pathology-chart-help{color:var(--path-muted);margin:12px 0 8px;font-size:11px;display:none}.pathology-chart-inner svg{width:100%;max-width:900px;height:auto;margin:0 auto;display:block}.pathology-node-editor{border-top:1px solid var(--path-border);padding-top:20px}.pathology-node-editor>div:first-child{margin-bottom:14px}.pathology-node-editor>div+div{padding:14px}.pathology-node-editor label{display:block}.pathology-node-editor select,.pathology-node-editor input{width:100%}.pathology-node-editor button[title=Move\ up],.pathology-node-editor button[title=Move\ down]{min-width:28px;min-height:28px}.pathology-node-editor>div>.flex>span{flex-shrink:0}@media (min-width:1600px){.pathology-builder{grid-template-columns:380px minmax(0,1fr);gap:28px}}@media (max-width:1199px){.pathology-workflow{display:none}.pathology-builder{grid-template-columns:310px minmax(0,1fr);gap:20px}.pathology-source,.pathology-flow-card{padding:20px}.pathology-toolbar{padding:20px 20px 0}.pathology-options summary small{margin:3px 0 0;display:block}.pathology-options-grid{grid-template-columns:1fr}}@media (max-width:960px){.pathology-chart-help{display:block}.pathology-builder{grid-template-columns:1fr}.pathology-upload-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.pathology-upload{padding:12px}.pathology-upload span,.pathology-upload small{display:block}.pathology-source-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.pathology-tools .pathology-rule-text{min-height:200px}.pathology-options-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:600px){.pathology-tools{padding:28px 16px 48px}.pathology-heading{margin-bottom:22px}.pathology-heading h2{font-size:29px}.pathology-heading>div>p:last-child{font-size:13px}.pathology-metrics{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:20px}.pathology-metrics>div{padding:14px 16px}.pathology-metrics>div:nth-child(3){border-left:0}.pathology-metrics>div:nth-child(n+3){border-top:1px solid var(--path-border)}.pathology-metrics dt{font-size:11px}.pathology-metrics dd{font-size:24px}.pathology-source,.pathology-flow-card{padding:18px}.pathology-upload-grid{gap:6px}.pathology-upload{flex-direction:column;align-items:flex-start;gap:8px;padding:10px 8px;font-size:10px;display:flex}.pathology-upload small{margin-top:4px;font-size:9px;line-height:1.5}.pathology-source-fields,.pathology-options-grid{grid-template-columns:1fr}.pathology-toolbar{padding:18px 18px 0}.pathology-output-heading{flex-wrap:wrap;align-items:flex-start}.pathology-output-heading>.pathology-primary,.pathology-view-switch{width:100%}.pathology-view-switch button{flex:1;padding:7px 4px;font-size:10px}.pathology-output-actions{grid-template-columns:repeat(2,minmax(0,1fr));width:100%;display:grid}.pathology-output-actions button{padding:8px}.pathology-empty{min-height:340px;padding:32px 20px}.pathology-empty h3{font-size:18px}.pathology-tools .pathology-flow-heading>input[type=text]{font-size:17px}.pathology-flow-heading button{padding:7px 9px;font-size:11px}.pathology-node-editor>div>.flex{flex-wrap:wrap}.pathology-node-editor>div>.flex>input{flex-basis:calc(100% - 42px);order:2}}@media (prefers-reduced-motion:reduce){.pathology-tools *,.pathology-tools :before,.pathology-tools :after{scroll-behavior:auto;transition:none}}
