/* Compact document tabs: one selected library and one panel at a time. */
#hypothesis-market .library-tabs{display:flex;flex-wrap:nowrap;gap:3px;align-items:end;margin:22px 0 0;padding:0 0 0 5px;border-bottom:1px solid #90a8b9;overflow-x:auto;max-width:100%}
#hypothesis-market .library-tabs [role=tab]{flex:0 0 auto;margin:0;padding:9px 15px;min-height:38px;border:1px solid #9aaebc;border-bottom:0;border-radius:5px 5px 0 0;background:linear-gradient(#eff3f6,#d6e0e8);color:#25455c;font:650 12px/1.3 system-ui;white-space:nowrap;cursor:pointer}
#hypothesis-market .library-tabs [aria-selected=true]{position:relative;background:#fff;color:#123b57;border-top:3px solid #249cd1;padding-top:7px;box-shadow:0 1px 0 #fff;z-index:1}
#hypothesis-market .library-tabs [role=tab]:focus-visible{outline:2px solid #56d8ff;outline-offset:-4px}
#hypothesis-market .library-panel{min-width:0;padding-top:15px;scroll-margin-top:100px}
#hypothesis-market [role=tabpanel][hidden]{display:none!important}
/* Old positional widths predated the Ranking column and made context 430px wide. */
#hypothesis-market .ai-hypothesis-table,#literature .ai-hypothesis-table{width:100%;min-width:0;table-layout:fixed}
#hypothesis-market .ai-hypothesis-table th,#hypothesis-market .ai-hypothesis-table td,#literature .ai-hypothesis-table th,#literature .ai-hypothesis-table td{min-width:0;width:auto;overflow-wrap:anywhere;word-break:normal;padding:11px 9px}
#hypothesis-market .ai-hypothesis-table td:first-child,#literature .ai-hypothesis-table td:first-child{min-width:0}
.ai-library-table .col-rank{width:6%}.ai-library-table .col-context{width:13%}.ai-library-table .col-claim{width:36%}.ai-library-table .col-source{width:12%}.ai-library-table .col-status{width:11%}.ai-library-table .col-action{width:11%}
.literature-library-table .col-lit-rank{width:6%}.literature-library-table .col-lit-organ{width:10%}.literature-library-table .col-lit-disease{width:13%}.literature-library-table .col-lit-claim{width:37%}.literature-library-table .col-lit-source{width:12%}.literature-library-table .col-lit-action{width:11%}
.user-library-table .col-user-context{width:14%}.user-library-table .col-user-claim{width:40%}.user-library-table .col-user-version{width:16%}.user-library-table .col-user-action{width:10%}
#hypothesis-market .ai-hypothesis-use{white-space:normal;padding:7px;max-width:100%;box-sizing:border-box}
#hypothesis-market .ai-hypothesis-table td:nth-child(4),#literature .ai-hypothesis-table td:nth-child(4){font-size:11px;color:#cedbe4}
#hypothesis-market .user-library-table td:first-child{font-weight:500;color:#cedbe4}
#hypothesis-market .user-library-actions{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin:12px 0}
#hypothesis-market .user-library-actions button,#hypothesis-market .user-library-retry{padding:8px 12px;border:1px solid #315873;border-radius:6px;background:#0a2232;color:#e8f4fa;cursor:pointer}
#hypothesis-market .user-library-empty{padding:22px;border:1px dashed #315873;border-radius:8px;color:#bed3e1}
#hypothesis-market .user-library-empty h3{font-size:16px;margin:0 0 8px}
@media(max-width:700px){#hypothesis-market .library-tabs [role=tab]{font-size:11px;padding-left:11px;padding-right:11px}#hypothesis-market .ai-hypothesis-table colgroup,#literature .ai-hypothesis-table colgroup{display:none}#hypothesis-market .ai-hypothesis-table td[data-label]:before,#literature .ai-hypothesis-table td[data-label]:before{content:attr(data-label);display:block;font-size:10px;color:#80acc5;font-weight:700;text-transform:uppercase;margin-bottom:4px}#hypothesis-market .ai-hypothesis-table tr,#hypothesis-market .ai-hypothesis-table td{box-sizing:border-box}}

.library-entry-actions{display:flex;gap:14px;flex-wrap:wrap;align-items:center}.library-entry-actions a{white-space:nowrap}
/* Unified, compact library surface; shared by all three existing datasets. */
#hypothesis-market{color-scheme:light;background:#f5f8fc;color:#20354e;border-top:1px solid #d9e3ee;scroll-margin-top:72px}
#hypothesis-market .section-heading{align-items:center;gap:20px;margin-bottom:20px}
#hypothesis-market .section-heading h2{font:650 26px/1.2 system-ui;letter-spacing:-.035em;margin:7px 0;color:#172e48}
#hypothesis-market .kicker{color:#477390;font-size:10px}
#hypothesis-market .primary-link{color:#126fac;font-size:12px}
#hypothesis-market .library-tabs{padding:0;gap:24px;border-bottom:1px solid #d5e0eb;margin-top:16px}
#hypothesis-market .library-tabs [role=tab]{border:0;border-bottom:2px solid transparent;border-radius:0;background:none;box-shadow:none;padding:12px 0;min-height:44px;color:#657a91;font:600 12px/1.4 system-ui}
#hypothesis-market .library-tabs [aria-selected=true]{color:#0875bd;border-bottom-color:#0875bd;padding-top:12px}
#hypothesis-market .ai-library-tools,#hypothesis-market #literature .tools{display:flex;flex-wrap:wrap;gap:10px;align-items:center;background:none;border:0;border-radius:0;padding:0;margin:8px 0 12px}
#hypothesis-market .ai-library-tools label{color:#5d738b;font-size:12px;flex:0 0 auto}
#hypothesis-market input,#hypothesis-market select{box-sizing:border-box;min-width:0;max-width:100%;min-height:42px;background:white;color:#20354e;border:1px solid #cedbe7;border-radius:7px;padding:9px 12px;font:13px system-ui}
#hypothesis-market .ai-library-tools input{flex:1;min-width:200px}
#hypothesis-market #literature .tools input{flex:1;min-width:220px}
#hypothesis-market #literature h1{font-size:17px;margin:2px 0 5px;color:#294962}
#hypothesis-market #literature>p,#hypothesis-market .ai-library-status,#hypothesis-market .ai-library-attribution,#hypothesis-market #market-status{color:#61778e;font-size:11px;line-height:1.6}
#hypothesis-market .ai-hypothesis-table-wrap{max-width:100%;max-height:650px;overflow:auto;border:1px solid #d4dfea;border-radius:8px;background:white;scrollbar-gutter:stable;overscroll-behavior-x:contain}
#hypothesis-market table.ai-hypothesis-table{display:table!important;table-layout:fixed;width:100%;min-width:1080px!important;border-collapse:separate;border-spacing:0}
#hypothesis-market .ai-hypothesis-table colgroup{display:table-column-group!important}
#hypothesis-market .ai-hypothesis-table thead{display:table-header-group!important}
#hypothesis-market .ai-hypothesis-table tbody{display:table-row-group!important}
#hypothesis-market .ai-hypothesis-table tr{display:table-row!important;padding:0;border:0}
#hypothesis-market .ai-hypothesis-table th,#hypothesis-market .ai-hypothesis-table td{display:table-cell!important;width:auto;min-width:0!important;border:0;border-bottom:1px solid #e4ebf2;padding:12px!important;text-align:left;vertical-align:top;font:12px/1.55 system-ui!important;color:#425c73;overflow-wrap:anywhere}
#hypothesis-market .ai-hypothesis-table th{background:#edf3f8;color:#546d85;font:600 10px/1.45 system-ui!important;position:sticky;top:0;z-index:2;letter-spacing:.03em;border-bottom-color:#d4dfea}
#hypothesis-market .ai-hypothesis-table tr:last-child td{border-bottom:0}
#hypothesis-market .ai-hypothesis-table tbody tr:hover td{background:#f5faff}
#hypothesis-market .ai-hypothesis-table a,#hypothesis-market .ai-hypothesis-table button{color:#126fa8}
#hypothesis-market .ai-hypothesis-claim>a{font-weight:650;font-size:13px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
#hypothesis-market .ai-hypothesis-claim>p{margin:7px 0 0;color:#637b91;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
#hypothesis-market .ai-hypothesis-claim.library-expanded>a,#hypothesis-market .ai-hypothesis-claim.library-expanded>p{display:block;overflow:visible}
#hypothesis-market .library-read-more{display:block;border:0;background:none;padding:5px 0;min-height:30px;cursor:pointer;color:#1578b0;font:600 11px system-ui}
#hypothesis-market .ai-hypothesis-table small{color:#73889c;font-size:10px;line-height:1.5}
#hypothesis-market .ai-hypothesis-table .library-ranking strong{color:#1d6f9b!important;font-weight:700}
#hypothesis-market .ai-hypothesis-table details{margin-top:8px;font:11px/1.6 system-ui;color:#5b748b}
#hypothesis-market .ai-hypothesis-table details summary{cursor:pointer;color:#2777a6;font-size:10px}
#hypothesis-market .ai-hypothesis-table details dl{max-height:250px;overflow:auto;background:#f2f7fb;padding:12px;border-radius:6px}
#hypothesis-market .ai-hypothesis-table details dd{margin:4px 0 12px}
#hypothesis-market .ai-hypothesis-use,#hypothesis-market #literature td button{background:#edf6fd;color:#126fa8!important;border:1px solid #c4dcef;border-radius:6px;padding:8px!important;font:600 11px/1.4 system-ui;white-space:normal;cursor:pointer;min-height:38px}
#hypothesis-market .ai-library-pagination button,#hypothesis-market .tools button,#hypothesis-market .user-library-actions button,#hypothesis-market .user-library-retry{background:#fff;color:#315d7c;border:1px solid #c9dae7;border-radius:6px;min-height:40px;padding:8px 13px;font-size:12px}
#hypothesis-market .ai-library-pagination span{color:#5b748c}
#hypothesis-market .user-library-empty{background:white;border-color:#c4d7e6;color:#567189}
#hypothesis-market .ai-hypothesis-table td[data-label]:before{display:none!important;content:none!important}
#hypothesis-market .library-scroll-hint{margin:5px 0 10px;color:#71879a;font:11px/1.5 system-ui}
#hypothesis-market :focus-visible{outline:2px solid #228aca;outline-offset:3px}
@media(max-width:700px){#hypothesis-market{padding:22px 14px!important}#hypothesis-market .library-tabs{gap:19px}#hypothesis-market .library-tabs [role=tab]{font-size:11px}#hypothesis-market .ai-library-tools{display:grid!important;grid-template-columns:minmax(0,1fr)!important}#hypothesis-market input,#hypothesis-market select{font-size:16px!important;min-height:44px}#hypothesis-market #literature .tools input{min-width:100%}#hypothesis-market #literature .tools select{flex:1;max-width:100%;width:100%}#hypothesis-market .ai-hypothesis-table-wrap{max-height:65dvh}#hypothesis-market .ai-hypothesis-table th,#hypothesis-market .ai-hypothesis-table td{font-size:12px!important}#hypothesis-market .library-read-more,#hypothesis-market .ai-hypothesis-use,#hypothesis-market #literature td button{min-height:44px}#hypothesis-market .ai-library-pagination{justify-content:space-between;gap:8px}#hypothesis-market .section-heading h2{font-size:23px!important}}
#hypothesis-market .library-entry-actions .primary-link{background:#fff;color:#126fa8!important;border:1px solid #c7dce9;box-shadow:none;padding:9px 12px;border-radius:6px;font-size:12px}
#hypothesis-market .ai-hypothesis-table button.library-read-more{display:block;background:transparent!important;border:0!important;color:#1578b0!important;padding:5px 0!important;min-height:30px;border-radius:0;font:600 11px/1.5 system-ui!important;text-align:left}
@media(max-width:700px){#hypothesis-market .ai-hypothesis-table button.library-read-more{min-height:44px}}
#hypothesis-market .ai-hypothesis-claim>a,#hypothesis-market .ai-hypothesis-claim>p{white-space:normal;text-overflow:clip}
