.peer-builder{margin-top:25px}.builder-heading{display:flex;justify-content:space-between;align-items:start;gap:20px}.builder-heading .button{font-size:12px;white-space:nowrap}.peer-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:20px}.peer-controls input{width:100%;padding:10px 12px;border:1px solid #cbd8d3;border-radius:5px;color:var(--ink)}.peer-controls [hidden]{display:none}.cohort-summary{padding:13px 15px;border-left:3px solid var(--teal);background:#edf2ef;font-weight:650;font-size:14px;margin:20px 0 6px}.peer-builder summary{cursor:pointer;font-size:13px;font-weight:650;padding-top:12px}.peer-actions{display:flex;gap:15px;align-items:end;margin:20px 0}.peer-actions label{flex:1}.peer-actions .button{font-size:11px}.table-scroll{max-height:420px;overflow:auto}.table-scroll th{position:sticky;top:0;background:#edf2ef;text-align:left}.table-scroll td{text-align:left;font-size:11px;max-width:250px;white-space:normal;vertical-align:top}.exclude-button{font:inherit;color:#a65a3c;background:white;border:1px solid #dbc4b7;border-radius:3px;padding:5px 8px;cursor:pointer}.peer-builder .notice{margin-bottom:0}.lower table{font-size:11px}.lower td{overflow-wrap:anywhere}@media(max-width:1000px){.peer-controls{grid-template-columns:repeat(2,minmax(0,1fr))}.builder-heading{flex-wrap:wrap}}@media(max-width:550px){.peer-controls{grid-template-columns:1fr}.peer-actions{flex-wrap:wrap}.peer-actions label{flex-basis:100%}}

.lower{grid-template-columns:1fr}.history{margin-top:24px}.history-controls{display:grid;grid-template-columns:110px 110px minmax(180px,1fr) minmax(220px,1fr);gap:16px;margin-top:20px}.history-insights{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:14px;margin:20px 0}.history-insights strong{font-size:21px}#history-chart svg{display:block;width:100%;height:auto;min-height:220px}.history-table{overflow-x:auto}.history-table table{min-width:950px;font-size:12px}.history-table th{text-align:right}.history-table th:first-child{text-align:left}.history-table td:first-child{min-width:190px}.history-actions{display:flex;gap:15px;flex-wrap:wrap}.button:disabled{opacity:.5;cursor:default}#api-refresh{grid-column:1/-1}.history-controls select{font-size:12px}@media(max-width:1000px){.history-controls{grid-template-columns:1fr 1fr}}@media(max-width:550px){.history-controls{grid-template-columns:1fr}#history-chart{overflow-x:auto}#history-chart svg{min-width:650px}}

.header-links{display:flex;flex-direction:column;gap:8px}.header-links .source-link{padding-top:4px}
