.peptide-workspace{--pep-paper:#fffdf8;--pep-soft:#f4f6f4;--pep-ink:#142d32;--pep-muted:#4b6167;--pep-rule:#cdd9d7;--pep-accent:#00685f;width:min(1560px,calc(100% - 48px));margin:36px auto 72px;color:var(--pep-ink)}
body[data-theme="dark"] .peptide-workspace{--pep-paper:#14282f;--pep-soft:#19333a;--pep-ink:#ecf3f1;--pep-muted:#b4cbcd;--pep-rule:#466169;--pep-accent:#83dfce}
.peptide-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;margin-bottom:25px}.peptide-kicker{font-size:11px;letter-spacing:.21em;font-weight:750;color:var(--pep-accent);margin:0 0 8px}.peptide-heading h1{font-size:clamp(28px,3vw,40px);line-height:1.2;margin:0 0 12px;letter-spacing:-.035em}.peptide-heading p:last-child{color:var(--pep-muted);margin:0;max-width:850px}.peptide-language{display:flex;gap:3px;flex:none;border:1px solid var(--pep-rule);border-radius:6px;padding:3px}.peptide-language button{border:0;border-radius:3px;background:transparent;color:var(--pep-muted);padding:6px 10px;cursor:pointer}.peptide-language button[aria-pressed="true"]{background:var(--pep-ink);color:var(--pep-paper)}
.peptide-tabs{display:flex;gap:4px;border-bottom:2px solid var(--pep-rule);overflow:auto;white-space:nowrap}.peptide-tabs button{border:0;border-bottom:3px solid transparent;background:transparent;color:var(--pep-muted);padding:13px 18px;margin-bottom:-2px;font:inherit;font-weight:650;cursor:pointer}.peptide-tabs button[aria-pressed="true"]{color:var(--pep-accent);border-bottom-color:var(--pep-accent)}.peptide-status{font-size:13px;color:var(--pep-muted);min-height:21px;margin:13px 0}.peptide-status[data-error="true"]{color:#9b3225}body[data-theme="dark"] .peptide-status[data-error="true"]{color:#ffb4a5}
.peptide-panel{background:var(--pep-paper);border:1px solid var(--pep-rule);border-radius:8px;padding:24px}.peptide-panel h2{margin:0 0 12px;font-size:24px}.peptide-panel p{line-height:1.8}.peptide-workspace label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:650;color:var(--pep-muted);min-width:0}.peptide-query-row{display:flex;gap:12px;align-items:flex-end}.peptide-grow{flex:1}.peptide-query-row>label:nth-child(2){width:180px}.peptide-workspace input,.peptide-workspace select,.peptide-workspace textarea{font:inherit;color:var(--pep-ink);background:var(--pep-paper);border:1px solid var(--pep-rule);border-radius:5px;padding:10px 12px;min-height:42px;max-width:100%;box-sizing:border-box}.peptide-workspace input[type="search"]{font-size:17px}.peptide-workspace textarea{width:100%;font-family:Consolas,"SFMono-Regular",monospace;line-height:1.7;resize:vertical;margin:8px 0 16px}.peptide-workspace select{padding-right:20px}.peptide-workspace input:focus,.peptide-workspace select:focus,.peptide-workspace textarea:focus,.peptide-workspace button:focus-visible,.peptide-workspace a:focus-visible{outline:2px solid var(--pep-accent);outline-offset:3px}.peptide-workspace input::placeholder,.peptide-workspace textarea::placeholder{color:var(--pep-muted);opacity:.8}.peptide-filters{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:15px 12px;border-top:1px solid var(--pep-rule);margin-top:20px;padding-top:18px}.peptide-filters label:has(input[type="number"]){max-width:180px}.peptide-examples{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:19px;font-size:12px}.peptide-examples>span{color:var(--pep-muted);margin-right:6px}.peptide-examples button,.peptide-text-button{background:transparent;border:1px solid var(--pep-rule);color:var(--pep-accent);border-radius:4px;font:inherit;font-size:12px;padding:7px 10px;cursor:pointer}.peptide-filters>.peptide-text-button{align-self:end;min-height:42px}.peptide-note{font-size:13px;line-height:1.8;color:var(--pep-muted);margin:14px 0}.peptide-workspace .button,.peptide-dialog .button{border-radius:5px;white-space:normal;padding:10px 15px;font-size:13px;font-weight:650;min-height:42px;line-height:1.5;cursor:pointer;box-shadow:none}.peptide-workspace .button.primary,.peptide-workspace .button.primary:visited,.peptide-workspace .button.primary:hover,.peptide-workspace .button.primary:focus{background:#00685f;color:#fff;border:1px solid #00685f}.peptide-workspace .button.secondary,.peptide-dialog .button.secondary{color:var(--pep-ink,var(--text));background:var(--pep-paper,var(--bg));border:1px solid var(--pep-rule,var(--line))}.peptide-workspace button:disabled{opacity:.5;cursor:default}.peptide-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.peptide-results-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:20px 0 12px}.peptide-results-toolbar>strong{font-size:14px}.peptide-columns{position:relative}.peptide-columns summary{font-size:12px;cursor:pointer;padding:10px}.peptide-columns>div{position:absolute;top:40px;right:0;z-index:10;background:var(--pep-paper);border:1px solid var(--pep-rule);padding:12px;min-width:210px;box-shadow:0 8px 24px #152d3220}.peptide-columns label{flex-direction:row;align-items:center;padding:3px;white-space:nowrap}.peptide-columns input{min-height:auto;width:16px;height:16px}
.peptide-table-wrap{width:100%;overflow:auto;border:1px solid var(--pep-rule);border-radius:6px;background:var(--pep-paper);max-height:900px}.peptide-workspace table,.peptide-dialog table{border-collapse:collapse;width:100%;font-size:13px;line-height:1.6;text-align:left}.peptide-workspace th,.peptide-workspace td,.peptide-dialog th,.peptide-dialog td{padding:13px 15px;border-bottom:1px solid var(--pep-rule,var(--line));vertical-align:top}.peptide-workspace th{color:var(--pep-muted);background:var(--pep-soft);font-size:11px;font-weight:750;position:sticky;top:0;z-index:1;white-space:nowrap}.peptide-workspace tr:last-child td{border-bottom:0}.peptide-workspace tbody tr:hover{background:var(--pep-soft)}.peptide-sequence{font-family:Consolas,"SFMono-Regular",monospace;letter-spacing:.025em;word-break:break-all;min-width:220px;max-width:450px}.peptide-record-name{font-weight:650;min-width:190px;max-width:300px}.peptide-record-name small,.peptide-workspace td small{display:block;color:var(--pep-muted);font-size:11px;font-weight:400;margin-top:5px}.peptide-record-link{border:0;background:transparent;color:var(--pep-accent);font:inherit;padding:0;text-align:left;cursor:pointer;text-decoration:underline;text-underline-offset:3px}.peptide-tags{display:flex;flex-wrap:wrap;gap:5px;min-width:145px}.peptide-tag{display:inline-block;background:var(--pep-soft);border:1px solid var(--pep-rule);border-radius:3px;color:var(--pep-ink);font-size:11px;padding:1px 6px;white-space:nowrap}.peptide-context{color:var(--pep-muted);font-size:11px;margin-top:7px}.peptide-pagination{display:flex;gap:14px;align-items:center;justify-content:flex-end;flex-wrap:wrap;margin:16px 0}.peptide-pagination label{flex-direction:row;align-items:center;gap:8px}.peptide-pagination input{width:85px}.peptide-pagination select{width:85px}.peptide-pagination>span{font-size:13px}.peptide-source-summary{border-top:1px solid var(--pep-rule);padding:18px 0;margin-top:26px;color:var(--pep-muted);font-size:12px;line-height:1.9}.peptide-source-summary strong{color:var(--pep-ink)}
.peptide-document{background:var(--pep-paper);border:1px solid var(--pep-rule);border-radius:8px;padding:28px 32px;line-height:1.85}.peptide-document h2{font-size:25px;line-height:1.35;margin:0 0 16px}.peptide-document h3{font-size:18px;margin:32px 0 12px;padding-top:18px;border-top:1px solid var(--pep-rule)}.peptide-document p{max-width:1150px;margin:12px 0}.peptide-document code{background:var(--pep-soft);color:var(--pep-ink);padding:2px 5px;word-break:break-word;font-size:12px}.peptide-document pre{background:var(--pep-soft);padding:16px;overflow:auto;border-left:3px solid var(--pep-accent)}.peptide-document a,.peptide-dialog a{color:var(--pep-accent,var(--accent));text-decoration:underline;text-underline-offset:3px}.peptide-resource-summary{display:flex;gap:12px;flex-wrap:wrap}.peptide-resource-summary a{font-size:13px}.peptide-document .peptide-table-wrap{margin:20px 0}.peptide-document table{min-width:760px}.peptide-document td{max-width:500px}.peptide-document li{margin:7px 0}.peptide-empty{text-align:center;padding:36px;color:var(--pep-muted)}.peptide-output-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:24px 0 12px}.peptide-output-heading h3{margin:0;font-size:17px}.peptide-output-tools{display:flex;align-items:end;gap:10px;flex-wrap:wrap}.peptide-output-tools input{max-width:300px}.peptide-output-summary{font-size:13px;color:var(--pep-muted)}.peptide-score{font-family:Consolas,monospace;font-size:14px;font-weight:650;white-space:nowrap}.peptide-score small{font-family:inherit;white-space:normal}
.peptide-dialog{--pep-paper:#fffdf8;--pep-ink:#142d32;--pep-muted:#4b6167;--pep-rule:#cdd9d7;--pep-accent:#00685f;--pep-soft:#f4f6f4;width:min(1080px,calc(100vw - 36px));max-height:90vh;border:1px solid var(--pep-rule);border-radius:8px;background:var(--pep-paper);color:var(--pep-ink);padding:0;box-shadow:0 15px 80px #081c3250}.peptide-dialog::backdrop{background:#0a202675;backdrop-filter:blur(3px)}body[data-theme="dark"] .peptide-dialog{--pep-paper:#14282f;--pep-soft:#19333a;--pep-ink:#ecf3f1;--pep-muted:#b4cbcd;--pep-rule:#466169;--pep-accent:#83dfce}.peptide-dialog-bar{position:sticky;top:0;background:var(--pep-paper);border-bottom:1px solid var(--pep-rule);z-index:2;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 24px}#peptide-detail-body{padding:24px;line-height:1.85}.peptide-dialog h2{font-size:25px;line-height:1.4;margin:0 0 10px}.peptide-dialog h3{font-size:17px;border-top:1px solid var(--pep-rule);padding-top:18px;margin-top:26px}.peptide-detail-meta{display:grid;grid-template-columns:140px 1fr;gap:8px 18px;margin:18px 0;font-size:13px}.peptide-detail-meta dt{color:var(--pep-muted)}.peptide-detail-meta dd{margin:0;overflow-wrap:anywhere}.peptide-detail-sequence{font-family:Consolas,monospace;word-break:break-all;letter-spacing:.04em;background:var(--pep-soft);padding:15px;border:1px solid var(--pep-rule);max-width:none;font-size:14px}.peptide-dialog .peptide-table-wrap{max-height:480px}.peptide-evidence{font-size:12px;color:var(--pep-muted)}.peptide-dialog .peptide-note{color:var(--pep-muted)}
@media(min-width:1800px){.peptide-workspace{width:min(1700px,calc(100% - 80px))}}
@media(max-width:1100px){.peptide-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.peptide-results-toolbar{align-items:flex-start;flex-direction:column}.peptide-document{padding:24px}.peptide-heading h1{font-size:32px}}
@media(max-width:640px){.peptide-workspace{width:calc(100% - 24px);margin:24px auto 48px}.peptide-heading{gap:12px;flex-direction:column}.peptide-heading h1{font-size:28px}.peptide-panel{padding:16px}.peptide-query-row{flex-wrap:wrap}.peptide-query-row .peptide-grow{flex-basis:100%}.peptide-query-row>label:nth-child(2){flex:1}.peptide-filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 9px}.peptide-tabs button{padding:12px 13px;font-size:13px}.peptide-workspace input,.peptide-workspace select{font-size:13px;padding:9px 7px}.peptide-actions{gap:8px}.peptide-pagination{justify-content:flex-start;gap:9px}.peptide-document{padding:20px 16px}.peptide-document h2{font-size:23px}.peptide-detail-meta{grid-template-columns:90px 1fr;gap:7px 12px}#peptide-detail-body{padding:18px}.peptide-dialog-bar{padding:12px 18px}.peptide-output-heading{align-items:flex-start;flex-direction:column}.peptide-workspace input[type="file"]{width:100%}.peptide-results-toolbar .button{font-size:12px;padding:9px 10px}}
@media(prefers-reduced-motion:reduce){.peptide-workspace *,.peptide-dialog *{scroll-behavior:auto;animation:none;transition:none}}
#peptide-results td[data-column-cell="length"]{white-space:nowrap;min-width:76px}#peptide-results td[data-column-cell="feature"]{min-width:105px}#peptide-results td[data-column-cell="source"]{min-width:75px}#peptide-results td[data-column-cell="organism"]{min-width:170px;max-width:300px}
body[data-tool-page="bioactive-peptides"][data-theme="dark"]{background:#0d1d24;color:#ecf3f1}body[data-tool-page="bioactive-peptides"][data-theme="dark"]>.footer{color:#b4cbcd}
