.research-panel{margin:18px 0;border:1px solid var(--hairline,#d9d9df);border-radius:14px;background:var(--bg-surface,#fff);color:var(--ink,#1d1d1f)}.research-panel>summary{padding:16px 18px;cursor:pointer;font-weight:650}.research-panel>summary:focus-visible,.research-panel :is(button,input,select,.research-scroll):focus-visible{outline:2px solid var(--ink,#1d1d1f);outline-offset:3px}.research-body{padding:0 18px 18px}.research-note,.research-scope{font-size:.8rem;line-height:1.6;color:var(--ink-2,#62626c)}.research-form{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end;margin:16px 0}.research-form label{display:flex;flex-direction:column;gap:6px;font-size:.8rem;max-width:100%}.research-form :is(input,select,button){font:inherit;min-height:40px;border:1px solid var(--hairline,#d9d9df);border-radius:8px;padding:8px 10px;background:var(--bg-surface,#fff);color:inherit;max-width:100%}.research-form select[name=mode]{max-width:440px}.research-form button{cursor:pointer;font-weight:650}.research-output{font-size:.82rem;line-height:1.6}.research-scroll{overflow:auto;max-height:420px;border:1px solid var(--hairline,#d9d9df);border-radius:8px}.research-scroll table{border-collapse:collapse;min-width:100%;font-variant-numeric:tabular-nums;white-space:nowrap}.research-scroll th,.research-scroll td{text-align:right;padding:9px 12px;border-bottom:1px solid var(--hairline,#d9d9df)}.research-scroll th:first-child,.research-scroll td:first-child{text-align:left}.research-scroll thead{position:sticky;top:0;background:var(--bg-surface,#fff)}.research-empty{padding:16px;border:1px dashed var(--hairline,#d9d9df);border-radius:8px}@media(max-width:640px){.research-body{padding:0 12px 12px}.research-form label:first-child{width:100%}.research-form select[name=mode]{width:100%}.research-form :is(input,select,button){min-height:44px}.research-form label{flex:1 1 140px}}@media print{.research-form{display:none}.research-scroll{max-height:none;overflow:visible}}
.research-output label{display:inline-flex;flex-direction:column;gap:5px;margin:12px 12px 12px 0;max-width:100%}.research-panel button,.research-output select,.research-output input{min-height:38px;padding:7px 10px;border:1px solid var(--hairline,#d9d9df);border-radius:7px;background:var(--bg-surface,#fff);color:inherit;font:inherit}.research-panel button{cursor:pointer}.research-panel button:disabled{opacity:.45;cursor:default}.research-question-results{flex:1 1 100%;display:flex;flex-wrap:wrap;gap:6px;max-height:180px;overflow:auto}.research-question-results button{text-align:left;font-size:.8rem}.research-scroll th button{border:0;min-height:32px;background:transparent;font-weight:650;white-space:nowrap}.research-scroll th[aria-sort=ascending] button:after{content:' ↑'}.research-scroll th[aria-sort=descending] button:after{content:' ↓'}.research-pages,.research-transfers{display:flex;flex-wrap:wrap;align-items:center;gap:9px;margin:12px 0}.research-pages span{font-variant-numeric:tabular-nums}.research-audit,.research-pin,.research-inputs{padding:10px 0;border-top:1px solid var(--hairline,#d9d9df);margin:12px 0}.research-audit summary,.research-pin summary,.research-inputs summary{cursor:pointer;font-weight:600}.research-fallback{width:min(100%,820px);min-height:160px;max-height:360px;padding:12px;background:var(--bg-surface,#fff);color:inherit;border:1px solid var(--hairline,#d9d9df);border-radius:8px;font:12px/1.6 ui-monospace,monospace;resize:vertical}.research-transfer{overflow-wrap:anywhere}.research-panel summary:focus-visible,.research-fallback:focus-visible{outline:2px solid currentColor;outline-offset:3px}@media(max-width:640px){.research-panel button,.research-output select,.research-output input{min-height:44px}.research-transfers button{flex:1 1 150px}.research-output label{max-width:100%}.research-output input{max-width:100%}}@media print{.research-pages,.research-page-size,.research-transfers,.research-output>label{display:none}}

.research-recipes{margin:16px 0;padding:12px;border:1px solid var(--hairline,#ddd);border-radius:8px}.research-recipes button{margin:4px}.research-recipes h3{font-size:.9rem}.research-recipes p{font-size:.8rem;overflow-wrap:anywhere}
.research-recipe-import{margin:14px 0}.research-recipe-import label{display:flex}.research-recipe-import textarea{min-height:100px;width:min(100%,650px);background:var(--bg-surface,#fff);color:inherit}.research-recipe-import pre{white-space:pre-wrap;overflow-wrap:anywhere}
.research-number-filter{display:flex;flex-wrap:wrap;gap:8px;align-items:end;margin:16px 0;border:1px solid var(--hairline,#ddd);border-radius:8px;min-width:0}.research-number-filter input{width:130px}.research-number-filter legend{font-size:.8rem}
.research-shortcut,.research-coverage,.research-readiness,.research-event-neighborhood{font-size:.8rem;line-height:1.6;color:var(--ink-2,#62626c)}
.research-periods{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.research-periods button{margin:0}
.research-source-links p{overflow-wrap:anywhere}
.research-pin-warning{border:1px dashed var(--ink-2,#888);padding:10px;border-radius:8px}
.research-tool-group{margin:12px 0;border:1px solid var(--hairline,#ddd);border-radius:10px}.research-tool-group>summary{padding:12px;cursor:pointer;font-weight:650}.research-tool-content{padding:0 12px 12px;overflow-wrap:anywhere}.research-tool-content>button{margin:4px}.research-tool-content :is(input,select,textarea){max-width:100%;min-width:0}.research-tool-content>details{padding:10px 0}.research-tool-content>details>summary{cursor:pointer;font-weight:600}@media(max-width:640px){.research-tool-content{padding:0 8px 10px}.research-tool-content>button{min-height:44px}.research-tool-content>label{display:flex;width:100%;margin-right:0}.research-number-filter{flex-direction:column;align-items:stretch}.research-number-filter input{width:100%}.research-tool-group>summary{min-height:44px;box-sizing:border-box}}@media print{.research-tool-group{display:none}}
