.app-main:has(#searchView.active){background:#fff}
#searchView{container-type:inline-size}
.preview-search{min-width:0;min-height:calc(100dvh - 160px);display:flex;flex-direction:column;justify-content:center;align-items:center;padding:20px 0 70px;color:#23332e}
.preview-search[hidden]{display:none}
.search-cover-heading{text-align:center;margin-bottom:28px}
.search-cover-brand{display:flex;align-items:center;justify-content:center;gap:20px}
.search-cover-art{display:block;flex:0 0 128px;width:128px;height:128px;margin:0;background:url('/database/static/assets/database-portals.png') 0 0 / 200% 200% no-repeat}
.search-cover-verse{display:flex;justify-content:center;align-items:baseline;gap:9px;margin:16px 0 0;font-size:13px;line-height:1.8;color:#697970;white-space:nowrap;letter-spacing:0}
.search-cover-verse cite{font-style:normal;color:#7b8881}
.preview-search[data-partition=habitable_environment] .search-cover-art{background-position:100% 0}
.preview-search[data-partition=life_components] .search-cover-art{background-position:0 100%}
.preview-search[data-partition=planetary] .search-cover-art{background-position:100% 100%}
.search-cover-heading h1{font-size:38px;line-height:1.25;font-weight:600;letter-spacing:0;margin:0;color:var(--accent);overflow-wrap:anywhere}
.search-form{width:min(800px,100%);position:relative;z-index:5}
.search-cover-bar{display:flex;align-items:center;min-height:58px;border:1px solid #ccd7d2;border-radius:30px;background:#fff;box-shadow:0 3px 14px rgb(30 50 40 / 6%);padding:5px 9px 5px 16px;gap:8px}
.search-cover-bar:focus-within{border-color:var(--accent);box-shadow:0 3px 14px rgb(30 50 40 / 10%)}
.search-cover-bar>select{flex:0 1 210px;width:210px;min-width:90px;min-height:36px;border:0;border-right:1px solid #e2e8e5;border-radius:0;padding:6px 16px 6px 0;background:transparent;font-size:13px;text-overflow:ellipsis}
.search-cover-bar>input{flex:1;min-width:0;min-height:40px;border:0;background:transparent;font-size:16px;padding:8px 3px;box-shadow:none;outline:none}
.search-cover-bar .search-submit{flex:0 0 42px;width:42px;height:42px;min-height:42px;border:0;border-radius:50%;padding:10px;display:flex;align-items:center;justify-content:center}
.search-submit svg{width:21px;height:21px}.search-submit span{display:none}
.search-settings{position:relative;flex:0 0 34px}
.search-settings summary{list-style:none;display:flex;align-items:center;justify-content:center;width:34px;height:34px;cursor:pointer;color:#61736b;border-radius:4px}
.search-settings summary::-webkit-details-marker{display:none}.search-settings summary:hover{background:#edf3f0}
.search-settings summary svg{width:19px;height:19px}
.search-settings-options{position:absolute;right:0;top:42px;width:260px;background:#fff;border:1px solid #d5dfda;border-radius:6px;box-shadow:0 8px 24px rgb(20 35 28 / 15%);padding:16px;display:grid;gap:12px;z-index:20}
.search-settings:not([open]) .search-settings-options{display:none}
.search-settings-options>label:not(.search-exact){display:flex;flex-direction:column;gap:6px;font-size:13px}
.search-exact,.search-page-check{display:flex;align-items:center;gap:7px;font-size:13px;white-space:nowrap}
.search-exact input,.search-page-check input,.search-row-check{width:16px!important;height:16px!important;min-height:0!important;margin:0;accent-color:var(--accent)}
.search-status{width:100%;font-size:14px;line-height:1.6;overflow-wrap:anywhere;margin-top:16px;text-align:center}
.search-status:empty{display:none}.search-error,.search-warning{color:#9e332e}
.preview-search.has-results{justify-content:flex-start;align-items:stretch;padding-top:0;min-height:0}
.has-results .search-cover-heading{text-align:left;margin:0 0 20px}
.has-results .search-cover-brand{justify-content:flex-start;gap:12px}
.has-results .search-cover-verse{justify-content:flex-start;margin-top:7px;font-size:12px}
.has-results .search-cover-art{width:56px;height:56px;margin:0;flex:0 0 56px}
.has-results .search-cover-heading h1{font-size:25px}.has-results .search-form{width:min(900px,100%)}.has-results .search-status{text-align:left}
.search-selection-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:10px;width:100%;padding:14px 0;margin-top:10px;border-top:1px solid #dce4df;font-size:13px}
.search-selection-toolbar>button:not(.icon-button){display:flex;align-items:center;justify-content:center;gap:6px;font-size:13px;min-height:34px;padding:6px 10px}
.search-selection-toolbar svg{width:16px;height:16px}#searchSelectionCount{margin-right:auto;color:#4d6659}
#sampleSearchResults{width:100%;min-width:0}
.search-table-scroll{overflow:auto;max-height:540px;margin-top:6px;border-block:1px solid #d9e1df}
.search-table{width:100%;border-collapse:collapse;font-size:13px;table-layout:fixed;min-width:860px}
.search-table th,.search-table td{padding:10px 12px;vertical-align:top;border-bottom:1px solid #e1e7e4;text-align:left;overflow-wrap:anywhere;white-space:normal;line-height:1.5}
.search-table thead th{position:sticky;top:0;background:#f1f5f3;font-weight:600;z-index:1}
.search-table th:first-child{width:60px}.search-table th:nth-child(2){width:22%}.search-table th:nth-child(3){width:19%}.search-table th:last-child{width:50px}
.search-table small{display:block;color:#61736b;margin-top:4px}.search-table .icon-button{width:30px;height:30px;padding:4px}.search-structure-class{color:#5b4566}
.search-pagination{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:10px;min-height:36px;font-size:13px}
.search-pagination:has(span:empty){display:none}.search-empty{font-size:14px;margin-top:14px;color:#61736b}
.search-detail-dialog{width:min(900px,calc(100% - 32px));max-height:85dvh;padding:20px;border:1px solid #c6d1cd;border-radius:6px;box-sizing:border-box;overflow:auto}
.search-detail-dialog::backdrop,.search-export-dialog::backdrop{background:rgb(20 35 30 / 45%)}
.search-detail-dialog .search-table{min-width:0;table-layout:fixed}.search-detail-dialog .search-table th{width:45%}.search-detail-dialog .search-table td{width:55%;white-space:pre-wrap}
.search-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.search-heading h2{font-size:19px;margin:0;letter-spacing:0}
.search-detail-dialog .search-heading{position:sticky;top:-20px;background:white;padding:10px 0;z-index:2}
.search-export-dialog{width:min(440px,calc(100% - 28px));border:1px solid #c6d1cd;border-radius:6px;padding:24px}
.search-export-dialog form{display:grid;gap:18px}.search-export-dialog h2{font-size:20px;margin:0}.search-export-dialog label{display:grid;gap:6px;font-size:13px}
.search-selection-toolbar button:disabled{opacity:.4;cursor:default}
.preview-search:not(.has-results) .search-cover-heading{width:100%}
.preview-search:not(.has-results) .search-cover-brand{display:grid;grid-template-columns:minmax(0,256px) minmax(0,304px);gap:20px;width:min(100%,580px);margin-inline:auto}
.preview-search:not(.has-results) .search-cover-art{width:100%;height:auto;aspect-ratio:1;min-width:0}
.preview-search:not(.has-results) .search-cover-heading h1{font-size:76px;min-width:0;text-align:left}
@container(max-width:620px){.preview-search:not(.has-results) .search-cover-brand{grid-template-columns:minmax(0,256px) 152px;width:min(100%,428px)}}
@media(max-width:680px){.preview-search:not(.has-results) .search-cover-brand{grid-template-columns:minmax(0,160px) 120px;gap:12px;width:min(100%,292px)}.preview-search:not(.has-results) .search-cover-heading h1{font-size:60px}}
.plot-head-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px}
#backToSearchButton{display:flex;align-items:center;gap:6px}
#backToSearchButton svg{width:16px;height:16px}
@media(max-width:680px){.preview-search{min-height:calc(100dvh - 165px);padding:24px 0 70px}.search-cover-art{width:80px;height:80px;flex-basis:80px}.search-cover-brand{gap:12px}.search-cover-heading h1{font-size:30px}.search-cover-verse{font-size:12px;gap:6px}.search-cover-bar{flex-wrap:wrap;padding:8px;border-radius:24px;gap:4px}.search-cover-bar>select{flex-basis:100%;width:100%;border:0;border-bottom:1px solid #e2e8e5;padding:4px 10px;min-height:32px}.search-cover-bar>input{font-size:15px;padding-left:8px}.search-settings-options{right:-45px}.search-selection-toolbar{gap:9px}.search-selection-toolbar>button:not(.icon-button){min-height:36px}.has-results .search-cover-art{width:45px;height:45px;flex-basis:45px}.has-results .search-cover-heading h1{font-size:23px}.search-detail-dialog{padding:12px}.search-table-scroll{max-height:460px}.search-page-check{min-height:34px}#searchSelectionCount{flex-basis:100%;order:0}#searchNavButton span{display:none}#plotView>.view-head{align-items:flex-start;gap:12px;flex-wrap:wrap}.plot-head-actions{justify-content:flex-start}}
