:root{font-family:Inter,system-ui,sans-serif;color:#172e42;background:#edf2f6;font-size:16px}*{box-sizing:border-box}body{margin:0}header{height:76px;background:#122c40;color:white;display:flex;align-items:center;justify-content:space-between;padding:0 32px}header>div{display:flex;gap:16px;align-items:center}header strong{font-size:21px}.mark{background:#178bc3;border-radius:8px;font-weight:800;padding:7px 12px}.tag{font-size:12px;letter-spacing:1px;color:#aad3e9}main{max-width:1600px;margin:auto;padding:24px 32px}button,select,input{font:inherit}button{cursor:pointer;border:1px solid #b8cad7;background:white;color:#173e58;border-radius:6px;padding:8px 13px}button:hover{background:#e1eff7}select,input[type=number]{background:white;border:1px solid #b8cad7;border-radius:5px;padding:8px;max-width:100%}label{font-size:14px;font-weight:600;display:block;margin-bottom:7px}.toolbar{display:flex;gap:24px;align-items:end;margin-bottom:20px}.toolbar>div{min-width:160px}.toolbar .comparison{margin-left:auto}.comparison strong{margin-right:14px}.panel{background:white;border:1px solid #d4e0e8;border-radius:9px;overflow:hidden}.panelhead{display:flex;align-items:center;justify-content:space-between;padding:14px 20px;border-bottom:1px solid #e3ebf0;gap:12px}.panelhead>div{display:flex;gap:8px}h2{font-size:16px;margin:0;font-weight:700}.workspace{display:grid;grid-template-columns:1.2fr 1fr;gap:20px}#viewer{height:420px;position:relative;background:#0d1d2c}#tree{height:385px;overflow:auto;padding:0 16px}.hint{font-size:14px;color:#526d80;line-height:1.5;padding:0 20px}.mapping{padding:10px 20px;font-size:13px;color:#526d80}.legend{display:flex;align-items:center;gap:20px;margin:18px 0;font-size:13px}.legend strong{font-size:14px}#legend{display:flex;flex:1}#legend>div{flex:1;text-align:center;font-size:12px;padding-top:8px;border-top:10px solid}.legend>span{color:#647888}.alignment{margin-bottom:20px}#msa{overflow:auto;max-height:310px;padding-bottom:10px}.msa-row{display:flex;width:max-content;min-width:100%;height:29px;align-items:center;font-family:monospace;font-size:14px;opacity:.4}.msa-row.active,.msa-row.reference{opacity:1}.msa-name{position:sticky;left:0;z-index:2;background:#f2f6fa;width:205px;min-width:205px;padding:5px 12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.reference .msa-name{font-weight:bold;color:#0075b5}.cell{display:inline-flex;width:23px;height:26px;justify-content:center;align-items:center;border:0;border-radius:0;padding:0;color:white;text-shadow:0 1px 2px #333;cursor:pointer}.cell.selected{outline:3px solid #ffbb3e;outline-offset:-3px}.ruler{opacity:1;color:#687f8e}.ruler .cell{color:#526d80;background:white;text-shadow:none;font-size:11px}.detail{padding:18px 20px;margin-bottom:20px}.detail h2{margin-bottom:15px}.sitegrid{display:flex;gap:35px;flex-wrap:wrap;margin-bottom:12px}.sitegrid label{color:#697e8d;font-weight:400}.sitegrid strong{font-size:19px}table{border-collapse:collapse;font-size:14px;min-width:310px}td,th{text-align:left;padding:6px 18px 6px 0;border-bottom:1px solid #e5edf2}.loader{padding:18px 20px}.loader summary{cursor:pointer;font-weight:600}.loader p{font-size:14px}.files,.mappingcontrols{display:flex;gap:24px;flex-wrap:wrap;margin:20px 0}.files input{display:block;font-size:14px;width:260px;margin-top:8px}.mappingcontrols select{display:block;margin-top:7px}.mappingcontrols{align-items:end}footer{font-size:13px;color:#5f7687;margin:20px 0}a{color:#117db3}#message:not(:empty){padding:12px 16px;background:#fff1cd;color:#59430b;border-radius:6px;margin-bottom:16px}.node{cursor:pointer}.node text{font-size:14px;fill:#36566d}.node:hover text{fill:#0079b4}.node circle{fill:white;stroke:#4a7c98;stroke-width:2}.node.chosen circle{fill:#108fc8;stroke:#108fc8}.branch{stroke:#a4bbc9;fill:none;stroke-width:1.5}.check{font-weight:400;margin:0}.check input{vertical-align:middle}@media(max-width:950px){main{padding:16px}.toolbar{flex-wrap:wrap;gap:12px}.toolbar .comparison{margin-left:0}.workspace{grid-template-columns:1fr}.legend{flex-wrap:wrap}#legend{min-width:100%}header{padding:0 16px}.tag{display:none}#viewer{height:350px}}

img.mark{width:40px;height:40px;padding:0;background:none}.viewcontrols{display:flex;gap:14px;flex-wrap:wrap;padding:12px 20px;border-bottom:1px solid #e3ebf0}.viewcontrols .hint{padding:0;margin:0;font-size:12px;width:100%}.treecontrols{display:flex;gap:8px;flex-wrap:wrap;align-items:end;padding:12px 20px 0}.treecontrols label{margin:0}.treecontrols select{display:block;margin-top:6px;font-size:14px}.treecontrols button{font-size:14px}button:disabled{opacity:.45;cursor:default}.rootmark{font-size:12px!important;fill:#687f8e!important}

.cladeassignment{padding:12px 20px;border-bottom:1px solid #e3ebf0}.cladeassignment[hidden]{display:none}.assignbuttons,.cladechips{display:flex;gap:8px;flex-wrap:wrap}.assignbuttons button{font-size:14px}.cladechips{margin-top:10px;font-size:13px}.cladechips span{padding:6px 10px;border-radius:5px;max-width:100%;overflow-wrap:anywhere}#assign1,#clade1Summary{color:#165ec1;border-color:#8db5e4;background:#edf4ff}#assign2,#clade2Summary{color:#b5303d;border-color:#e6a6ab;background:#fff0f0}.node.clade1 circle{fill:#2473d4;stroke:#2473d4}.node.clade2 circle{fill:#d64c57;stroke:#d64c57}.node.clade1.clade2 circle{fill:#9a62b0}.node.chosen circle{stroke:#e3a32a;stroke-width:3}.node.clade1 text{fill:#165ec1}.node.clade2 text{fill:#b5303d}.msa-name.clade1{background:#e7f0fe;border-left:4px solid #8bb5e8}.msa-name.clade2{background:#fcebec;border-left:4px solid #e4a0a5}.msa-name.clade1.clade2{background:linear-gradient(100deg,#e7f0fe 0%,#e7f0fe 48%,#fcebec 52%,#fcebec 100%);border-left:4px solid #ac93c6}.reference .msa-name{color:#173e58}.detail{overflow-x:auto}#overlap{padding:0;margin:8px 0 0}#overlap:empty{display:none}select:disabled{opacity:.6}#legend{gap:3px}#legend>div{border-bottom:1px solid #d4e0e8}@media(max-width:600px){.legend #legend{flex-wrap:wrap}.legend #legend>div{min-width:45%;margin-bottom:8px}header strong{font-size:16px}.toolbar .comparison{max-width:100%}}

.legend #legend>div{line-height:1.4;padding:8px 5px 5px;min-width:0}.legend{align-items:flex-start}#legend{min-width:0}

input:disabled{opacity:.55;background:#edf1f4;color:#768796}.filestats{margin-top:16px}.statgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding:14px;background:#f3f7fa;border-radius:6px}.statgrid span{font-size:14px;overflow-wrap:anywhere}.statgrid label{color:#526d80}.structuremetadata{margin-top:16px}.structuremetadata h3{font-size:15px;margin:22px 0 10px}.structuremetadata #structureMetadata{overflow-x:auto}.metadatafields{margin-top:16px;width:100%;min-width:0}.metadatafields th{width:170px}.metadatafields td{overflow-wrap:anywhere}.structuremetadata .hint{padding:0}.structuremetadata p{font-size:14px}@media(max-width:600px){.statgrid{grid-template-columns:1fr 1fr}}

.overlapcontrol{margin:12px 0 8px}

.structure .panelhead{flex-wrap:wrap}.structure .panelhead>div{flex-wrap:wrap;align-items:center}
