:root{font-family:Inter,ui-sans-serif,system-ui,sans-serif;color:#102e36;background:#f5faf8;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0;min-height:100vh}.shell{max-width:1120px;margin:auto;padding:32px 22px}.topbar{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #d9e8e4;padding-bottom:22px}.brand{font-size:21px;font-weight:800;letter-spacing:-.04em}.brand span{color:#0e9387}.tag{font-size:12px;color:#627b80}.intro{padding:50px 0 26px}.eyebrow{text-transform:uppercase;letter-spacing:.12em;color:#128f83;font-size:11px;font-weight:800}.intro h1{font-size:clamp(32px,5vw,52px);line-height:1.04;letter-spacing:-.055em;margin:12px 0}.intro p{color:#60777b;max-width:650px;line-height:1.6}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.card{background:#fff;border:1px solid #dfebe7;border-radius:14px;padding:20px;box-shadow:0 8px 24px #113b3710}.metric{font-size:30px;font-weight:800;letter-spacing:-.04em}.label{font-size:13px;color:#698086;margin-top:6px}.workspace{margin-top:24px;display:grid;grid-template-columns:1fr 1.3fr;gap:16px}.workspace h2{font-size:18px;margin:0 0 16px}.field{width:100%;border:1px solid #ceded9;border-radius:9px;padding:12px 13px;font:inherit;color:#16343b;background:#fff}.med-list{display:grid;gap:7px;margin:10px 0}.med-option{border:1px solid #e0ebe8;border-radius:8px;background:#fbfdfc;padding:9px 11px;text-align:left;color:#183940;cursor:pointer}.med-option:hover{border-color:#0f9c8d}.selected{display:flex;gap:7px;flex-wrap:wrap;margin:12px 0}.pill{background:#e1f5ef;border-radius:30px;padding:6px 10px;font-size:13px;display:inline-flex;align-items:center;gap:8px}.pill-remove{border:0;background:transparent;color:#31575a;font-size:18px;line-height:1;cursor:pointer;padding:0 2px}.pill-remove:hover{color:#a02a28}.button{border:0;background:#087f76;color:white;padding:12px 16px;border-radius:9px;font:inherit;font-weight:700;cursor:pointer}.button:disabled{opacity:.45;cursor:not-allowed}.muted{color:#73878a;font-size:13px;line-height:1.6}.result{white-space:pre-wrap;line-height:1.65;color:#24454b}.error{color:#a02a28}.notice{border-left:3px solid #e9a83d;padding:10px 12px;background:#fff8e9;font-size:13px;line-height:1.5;margin-top:14px}.footer{padding:30px 0;color:#829498;font-size:12px}@media(max-width:700px){.shell{padding:20px 15px}.stats{grid-template-columns:1fr}.workspace{grid-template-columns:1fr}.intro{padding-top:34px}}
.token-setup{margin:18px 0;padding:16px 18px;border:1px solid var(--line,#d7e2df);border-radius:12px;background:rgba(255,255,255,.68)}.token-setup summary{cursor:pointer;font-weight:700}.token-setup form{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:14px}.token-setup .field{flex:1;min-width:240px}.token-setup .muted{font-size:.85rem}
[hidden]{display:none!important}.auth-panel{max-width:560px;margin:32px auto}.auth-panel form{display:grid;gap:12px}.auth-panel .field{width:100%}.text-button{border:0;background:transparent;color:var(--accent,#087f73);font:inherit;font-weight:700;cursor:pointer;padding:8px}.account-bar{display:flex;justify-content:flex-end;align-items:center;gap:14px;margin:14px 0}
.history-opt-in{display:flex;align-items:center;gap:8px;font-weight:700}.history-opt-in input{width:18px;height:18px;accent-color:var(--accent,#087f73)}.history-panel{margin-top:24px}.history-heading{display:flex;align-items:center;justify-content:space-between;gap:14px}.history-entry{padding:16px 0;border-top:1px solid var(--line,#d7e2df)}.history-entry p{margin:8px 0}.history-list{margin-top:16px}
.history-entry details p{white-space:pre-wrap;overflow-wrap:anywhere;max-height:420px;overflow:auto}
.history-entry{padding:18px 0;border-top:1px solid var(--line,#d7e2df)}
.history-entry-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-wrap:wrap}
.history-entry-pair{font-size:16px;color:#16343b}
.history-status{display:inline-flex;align-items:center;border-radius:999px;padding:5px 10px;font-size:12px;font-weight:700;background:#e5f3ee;color:#1d675d}
.history-status-no_record{background:#fff5df;color:#75500b}
.history-date{margin:7px 0 12px}
.history-no-record{margin:12px 0;padding:12px 14px;border-left:3px solid #e2a43b;background:#fff8e9;color:#54441f;line-height:1.55}
.history-findings{display:grid;gap:12px;margin:12px 0}
.history-result-section{border:1px solid #e0ebe8;border-radius:10px;padding:12px 14px}
.history-result-section h4{margin:0 0 8px;color:#1b5554;font-size:14px}
.history-result-item+.history-result-item{border-top:1px solid #e7efec;margin-top:10px;padding-top:10px}
.history-result-item p{margin:5px 0;line-height:1.5}
.history-related{font-weight:700;color:#244e52}
.history-recommendation{color:#3f5659}
.history-source-note{font-size:12px;color:#73878a;margin:12px 0}
.history-original{margin:12px 0;color:#526a6d}
.history-original summary{cursor:pointer;font-weight:600}
.history-original p{white-space:pre-wrap;line-height:1.55}
.history-actions{display:flex;justify-content:flex-end;margin-top:10px}
@media(max-width:700px){.history-entry-heading{align-items:flex-start}.history-status{white-space:normal}.history-result-section{padding:11px}}
.account-danger{margin-top:18px;border-color:#d9a6a6}.account-danger summary{cursor:pointer;font-weight:700;color:#9d3232}.account-danger form{display:grid;gap:10px;margin-top:14px}.danger-button{background:#9d3232;border-color:#9d3232}
.account-settings{margin-top:18px}.account-settings summary{cursor:pointer;font-weight:700}.account-settings form{display:grid;gap:10px;margin-top:14px}

.result-pair{font-weight:700;color:#102e36;margin:0 0 8px}.provenance-note{display:block;color:#73878a;font-size:12px;margin-top:12px}
