.material-compare{display:grid;grid-template-columns:minmax(0,1fr) 360px;grid-template-areas:"result input";align-items:start;gap:16px;padding-top:24px;padding-bottom:40px}
.material-compare [hidden]{display:none}
.material-input{grid-area:input}
.material-result{grid-area:result}
.material-panel{min-width:0;padding:17px;border:1px solid #dce4ef;border-radius:14px;background:#fff}
.material-panel h2,.material-panel h3{margin:0;color:#1e3553;font-size:17px}
.material-panel h3{font-size:15px}
.material-panel-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.material-button{min-height:34px;padding:6px 9px;border:1px solid #cad6e6;border-radius:7px;background:#fff;color:#263b58;cursor:pointer;font:inherit;font-size:12px;white-space:nowrap}
.material-button:hover{background:#eef4fc}
.material-button:disabled{cursor:default;opacity:.55}
.material-button[aria-pressed=true]{background:#eaf2ff;border-color:#8cb4f5;color:#164f9e}
.material-presets{display:flex;flex-wrap:wrap;gap:5px;margin:8px 0 15px}
.material-selects{display:grid;gap:8px;margin-top:8px}
.material-picker{min-width:0;margin:0;border:1px solid #cbd6e5;border-radius:8px;background:#fff}
.material-picker summary{display:grid;grid-template-columns:auto minmax(0,1fr) 8px;gap:8px;align-items:center;min-height:42px;padding:7px 10px;list-style:none;color:#142844;font-size:14px;cursor:pointer}
.material-picker summary::-webkit-details-marker{display:none}
.material-picker summary::after{content:"";width:6px;height:6px;border-right:1.5px solid #435675;border-bottom:1.5px solid #435675;transform:rotate(45deg) translateY(-2px)}
.material-picker[open] summary::after{transform:rotate(225deg)}
.material-picker-label{color:#536780;font-size:12px}
.material-picker summary strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.material-picker-body{display:grid;gap:5px;padding:8px;border-top:1px solid #dce4ef;background:#f8faff;border-radius:0 0 8px 8px}
.material-picker:not([open]) .material-picker-body{display:none}
.material-picker .material-match{margin:0;color:#495d78;font-size:12px}
.material-match:empty{display:none}
.material-options:empty{display:none}
.material-options{max-height:208px;overflow-y:auto;overscroll-behavior:contain}
.material-option-group{display:grid;gap:2px;margin:0 0 5px}
.material-option-heading{padding:2px 6px;color:#536780;font-size:12px;font-weight:650}
.material-option{min-height:34px;padding:6px;border:0;border-radius:5px;background:#fff;color:#263b58;text-align:left;font:inherit;font-size:13px;cursor:pointer}
.material-option:hover,.material-option[aria-current=true]{background:#eaf2ff;color:#164f9e}
.material-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:12px}
.material-field{display:grid;min-width:0;gap:4px;color:#42536b;font-size:12px;font-weight:650}
.material-field input,.material-picker-body input,#material-feedback textarea{width:100%;min-width:0;min-height:38px;padding:6px 8px;border:1px solid #cbd6e5;border-radius:7px;background:#fff;color:#142844;font:inherit;font-size:14px;font-weight:400}
.material-field input[aria-invalid=true]{border-color:#a83530}
.material-compare :is(button,input,select,summary,a,textarea):focus-visible{outline:2px solid #2563eb;outline-offset:2px}
.material-note,.material-input p,.material-sources{margin:8px 0 0;color:#495d78;font-size:13px;line-height:1.6;overflow-wrap:anywhere}
.material-note:empty{display:none}
#material-input-status{color:#922c24}
.material-table{width:100%;margin-top:12px;border-collapse:collapse;table-layout:fixed;color:#253a56;font-size:14px;line-height:1.5}
.material-table th,.material-table td{padding:8px 9px;border-bottom:1px solid #dce4ef;text-align:left;overflow-wrap:anywhere;vertical-align:top}
.material-table th:first-child{width:28%}
.material-table thead{background:#eef4fc;color:#1e3553}
.material-table tbody th{font-size:13px;font-weight:650;color:#435675}
.material-weight{padding:12px;margin-top:15px;border:1px solid #c9dafa;border-radius:9px;background:#f5f9ff}
.material-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0 0;font-variant-numeric:tabular-nums}
.material-metrics div{min-width:0;padding:8px;border:1px solid #dce4ef;border-radius:8px;background:#fff;overflow-wrap:anywhere}
.material-metrics dt{color:#435675;font-size:12px}
.material-metrics dd{margin:3px 0 0;color:#17489d;font-size:clamp(16px,3vw,24px);font-weight:750}
.material-sources{margin-top:13px;padding-top:9px;border-top:1px solid #dce4ef}
.material-sources summary{color:#1e3553;font-weight:650;cursor:pointer}
.material-sources p{margin:5px 0}
.material-sources ul{margin:5px 0 0;padding-left:20px}
.material-compare a{color:#174fb0}
#material-feedback textarea{display:block;margin-top:5px;min-height:95px}
@media(max-width:900px){.material-compare{grid-template-columns:minmax(0,1fr);grid-template-areas:"input" "result"}}
@media(max-width:420px){.material-panel{padding:11px}.material-table{font-size:12px}.material-table th,.material-table td{padding:6px 4px}.material-table tbody th{font-size:12px}}
