body.modules-page.modules-system.modules-tool .tm-app #poly_custom_select{width:570px;max-width:100%}
body.modules-page.modules-system.modules-tool .tm-app input[type=number]{width:10ch;min-width:0;max-width:10ch;min-height:44px}
body.modules-page.modules-system.modules-tool .tm-app .tm-input-heading{display:flex;gap:12px 24px;flex-wrap:wrap;align-items:center}
body.modules-page.modules-system.modules-tool .tm-app .tm-input-heading h2{margin:0;font-size:22px}
.tm-note,.tm-method{font-size:16px;color:#606067;margin:12px 0 20px}
.tm-input-modes{display:flex;gap:8px;margin:12px 0 20px}
body.modules-page.modules-system.modules-tool .tm-app .tm-input-modes button{padding:10px 16px;border:0;border-radius:6px;min-height:44px;font:inherit;background:#eeeef0;color:#343438}
body.modules-page.modules-system.modules-tool .tm-app .tm-input-modes button[aria-pressed=true]{background:#df0089!important;color:white!important}
body.modules-page.modules-system.modules-tool .tm-app :is(#tm-example,#tm-batch-add,.tm-open-structures){border:0;background:transparent;padding:8px 0;min-height:44px;font:inherit;font-weight:600;color:#bf0075}
body.modules-page.modules-system.modules-tool .tm-app [hidden]{display:none!important}
#tm-batch-panel{max-width:800px;margin-bottom:20px}
#tm-batch-panel label{display:block;font-size:16px;margin-bottom:8px}
#tm-batch-text{display:block;width:100%;max-width:100%;resize:vertical;padding:12px;font:16px/1.5 monospace;border:1px solid #ddd;border-radius:6px}
.tm-pair-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.tm-pair-heading label{display:flex;align-items:center;gap:12px;font-size:16px;color:#626269}
.tm-pair-name{font:inherit;width:20ch;max-width:100%;height:44px;border:0;padding:8px;background:#f5f5f7;color:#292932}
body.modules-page.modules-system.modules-tool .tm-app .remove-insert-btn{position:static;min-width:44px;min-height:44px;border:0;background:transparent;color:#666}
body.modules-page.modules-system.modules-tool .tm-app .tm-primer-grid .tool-input{width:100%;min-width:0;min-height:44px;font-size:16px}
body.modules-page.modules-system.modules-tool .tm-app .dimer-warning{font-size:16px;color:#a22d49;margin:10px 0;overflow-wrap:anywhere}
body.modules-page.modules-system.modules-tool .tm-app .tm-method{margin-top:24px;max-width:none}
@media(max-width:760px){
.tm-pair-heading label{flex-wrap:wrap;gap:4px}
}

body.modules-page.modules-system.modules-tool .tm-app .tm-primer-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 24px;align-items:start}
.tm-sequence-field{min-width:0}
.tm-sequence-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;font-size:16px}
.tm-tail-label{display:flex;align-items:center;gap:6px;color:#68686e;white-space:nowrap}
body.modules-page.modules-system.modules-tool .tm-app .tm-tail-label input{width:5ch;max-width:5ch;min-height:36px;height:36px;padding:4px;text-align:center;border:0;background:#f5f5f7;font:inherit}
body.modules-page.modules-system.modules-tool .tm-app .tm-primer-grid textarea.tool-input{font-family:ui-monospace,SFMono-Regular,Consolas,monospace!important;font-size:16px;line-height:24px;letter-spacing:.02em;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-all;resize:none;min-height:44px;height:44px;overflow:hidden;padding:10px 12px;border:0!important;border-radius:4px;background:#f5f5f7!important;color:#24242c;box-sizing:border-box}
.tm-caret-status{font:14px/1.4 ui-monospace,SFMono-Regular,Consolas,monospace;color:#666;min-height:0;margin-top:6px}
.tm-caret-status:empty{display:none}
.tm-ta,.tm-delta{font-size:16px}
@media(min-width:761px){#poly_custom_select .airy-select-text{white-space:nowrap}}
@media(max-width:900px){body.modules-page.modules-system.modules-tool .tm-app .tm-primer-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:380px){.tm-sequence-heading{flex-wrap:wrap;gap:0 8px}}
body.modules-page.modules-system.modules-tool .tm-app .tm-input-heading a{color:var(--brand-color,#bf0075)}

.tm-sequence-editor{position:relative;min-width:0;border-radius:4px;background:#f5f5f7}
body.modules-page.modules-system.modules-tool .tm-app .tm-sequence-highlight{position:absolute;inset:0;pointer-events:none;overflow:hidden;box-sizing:border-box;padding:10px 12px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace!important;font-size:16px;font-weight:400;line-height:24px;letter-spacing:.02em;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-all;color:transparent}
body.modules-page.modules-system.modules-tool .tm-app .tm-primer-grid .has-tail textarea.tool-input{position:relative;background:transparent!important;font-weight:400;caret-color:#24242c}
.tm-sequence-highlight mark{color:transparent;font:inherit;padding:0;border:0;border-radius:0}
.tm-tail-mark{background:#f9d9ec}
.tm-annealing-mark{background:#e0f0e9}
.tm-tail-legend{display:flex;flex-wrap:wrap;gap:4px 16px;font-size:16px;margin-top:6px}
.tm-tail-key{color:#973569}
.tm-annealing-key{color:#316e54}
.tm-tail-key:before,.tm-annealing-key:before{content:'';display:inline-block;width:10px;height:10px;margin-right:6px;background:#f9d9ec}
.tm-annealing-key:before{background:#e0f0e9}
.secondary-analysis-box{width:100%}
body.modules-page.modules-system.modules-tool .tm-app #tm-structure-dialog{position:fixed;inset:0 0 0 auto;width:min(920px,95vw);height:100dvh;max-height:100dvh;max-width:95vw;margin:0;padding:24px;border:0;background:white;color:#24242c;overflow:auto}
#tm-structure-dialog::backdrop{background:#0005}
#tm-structure-dialog header{display:flex;align-items:center;justify-content:space-between;gap:16px}
#tm-structure-dialog h2{font-size:24px}
#tm-structure-close{font-size:28px;border:0;background:transparent;min-width:44px;min-height:44px}
#tm-structure-dialog .tm-results-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.mix-row{display:grid;grid-template-columns:minmax(120px,20ch) minmax(0,1fr) 100px 44px;gap:8px 16px;align-items:start;margin:12px 0}
.mix-row label{display:block;font-size:16px;color:#626269;margin-bottom:4px}
.mix-row input,.mix-row textarea{display:block;margin-top:6px;width:100%;box-sizing:border-box}
.mix-row .mix-name{font:inherit;min-height:44px;padding:8px 10px;border:0;background:#f5f5f7}
body.modules-page.modules-system.modules-tool .tm-app .mix-row .mix-tail{width:6ch;max-width:6ch;font:inherit;padding:8px;border:0;background:#f5f5f7}
body.modules-page.modules-system.modules-tool .tm-app .mix-row .mix-seq{font:400 16px/24px ui-monospace,SFMono-Regular,Consolas,monospace!important;letter-spacing:.02em;white-space:pre-wrap;word-break:break-all;overflow-wrap:anywhere;resize:none;min-height:44px;height:44px;padding:10px 12px;border:0!important;background:transparent!important;overflow:hidden;position:relative;margin:0}
.mix-remove{margin-top:24px;font-size:24px;border:0;background:transparent;min-width:44px;min-height:44px;color:#555}
.mix-caret{grid-column:2;font:14px/1.4 monospace;color:#666}
.mix-caret:empty{display:none}
.mix-actions{display:flex;flex-wrap:wrap;gap:24px}
body.modules-page.modules-system.modules-tool .tm-app :is(.mix-actions button,#mix-example,#mix-import-add){border:0;background:transparent;font:inherit;font-weight:600;color:#bf0075;min-height:44px;padding:6px 0}
#mix-import-panel{margin:12px 0;max-width:850px}
#mix-import-panel textarea{display:block;box-sizing:border-box;width:100%;font:16px/1.5 monospace;padding:12px}
#mix-status,.mix-legend,#mix-import-panel label{font-size:16px;color:#606067}
.mix-matrix-scroll,.mix-table-scroll{overflow:auto;max-width:100%}
.mix-matrix,.mix-summary{border-collapse:collapse;width:100%;font-size:16px}
.mix-matrix th,.mix-matrix td,.mix-summary th,.mix-summary td{padding:6px;border-bottom:1px solid #e8e8eb;text-align:left}
.mix-matrix th[scope=row]{min-width:10ch;max-width:20ch;overflow-wrap:anywhere;font-weight:600}
.mix-matrix th[scope=col]{text-align:center}
.mix-matrix th[scope=col]:first-child{text-align:left}
.mix-matrix td{padding:3px}
.mix-cell{font:inherit;font-weight:600;min-height:44px;min-width:44px;width:100%;background:#f5f5f7;border:0;border-radius:4px;color:#64646a;padding:6px}
.mix-cell.has-extension{background:#f9d9ec;color:#8b245d}
.mix-cell.has-dimer{background:#f5f5f7;color:#343438}
.mix-summary button{border:0;background:transparent;color:#973569;font:inherit;min-height:44px}
.mix-detail{border-top:1px solid #ddd;padding:16px 0}
.mix-detail p{margin:8px 0;font-size:16px}
.mix-alignment{overflow:auto;max-width:100%}
.mix-alignment svg{display:block;min-width:360px;width:100%}
.mix-product{font:16px/1.7 monospace;overflow-wrap:anywhere;white-space:pre-wrap}
.mix-product mark{background:#e0f0e9;color:inherit}
@media(max-width:760px){#tm-structure-dialog .tm-results-columns{grid-template-columns:minmax(0,1fr)}.mix-row{grid-template-columns:minmax(0,1fr) 96px 44px;gap:6px 12px}.mix-row .tm-sequence-field{grid-column:1/-1;grid-row:2}.mix-caret{grid-column:1/-1}.mix-tail-label{grid-column:2;grid-row:1}.mix-remove{grid-column:3;grid-row:1}.mix-summary{font-size:16px}.mix-summary th{overflow-wrap:anywhere}}
#mix-rows{max-width:1100px}
.mix-row label{line-height:24px}
.mix-row input{margin-top:4px}
.mix-matrix{width:auto;min-width:320px}
.mix-matrix th[scope=col]:not(:first-child){min-width:52px}
.mix-summary{max-width:850px}
#mix-results h3{margin:24px 0 8px}

.mix-export{display:flex;align-items:center;flex-wrap:wrap;gap:8px 20px;margin:12px 0}
.mix-export button{font:inherit;font-size:16px;border:0;background:transparent;color:#973569;min-height:44px;padding:6px 0}
.mix-export [role=status]{font-size:16px;color:#606067}
.mix-cell{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:72px;min-height:56px;font-variant-numeric:tabular-nums}
.mix-cell strong{font-size:17px;color:#24242c}
.mix-cell .mix-end-tm{font-size:16px;font-weight:400;white-space:nowrap;color:#555}

@media(max-width:760px){.mix-matrix{min-width:0}.mix-matrix th[scope=row]{min-width:7ch;max-width:9ch}.mix-cell{min-width:60px;padding:4px}.mix-matrix th[scope=col]:not(:first-child){min-width:48px}}

/* Conditions share one compact row on desktop; numeric fields keep their natural width. */
body.modules-page.modules-system.modules-tool .tm-app .tm-conditions-grid{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px 20px}
body.modules-page.modules-system.modules-tool .tm-app .tm-polymerase{flex:0 1 570px;min-width:0;max-width:100%}
body.modules-page.modules-system.modules-tool .tm-app #poly_custom_select{width:570px;max-width:100%}
.tm-salt-fields{gap:12px 20px;align-items:flex-end;flex-wrap:wrap}
.tm-conditions-grid .tool-label{display:block;white-space:nowrap;margin-bottom:6px}
.tm-entry-modes{align-items:center;flex-wrap:wrap}
body.modules-page.modules-system.modules-tool .tm-app .tm-entry-modes button{background:transparent;border:1px solid #ddd;color:#343438;padding:8px 12px}
body.modules-page.modules-system.modules-tool .tm-app .tm-entry-modes button[aria-pressed=true]{background:#eeeef0!important;color:#24242c!important;border-color:#aaa}
.tm-app .tm-method p{max-width:none}
@media(max-width:760px){body.modules-page.modules-system.modules-tool .tm-app .tm-polymerase{flex-basis:100%}.tm-conditions-grid .airy-select-text{white-space:normal}.tm-salt-fields{gap:12px}.tm-entry-modes>span{flex-basis:100%}}
.mix-priority{margin:16px 0 24px;border-block:1px solid #e4e4e7;padding:12px 0}
.mix-priority p{font-size:16px;color:#62626b}
.mix-priority>div{display:flex;flex-wrap:wrap;gap:8px 18px}
.mix-priority button{display:flex;flex-direction:column;text-align:left;gap:4px;font:inherit;color:inherit;border:0;background:#f5f5f6;border-radius:6px;padding:10px 12px;max-width:100%;overflow-wrap:anywhere;cursor:pointer}
.mix-priority button span{font-size:16px;color:#62626b}
#tm-order-export[hidden]{display:none!important}
#tm-import-status:empty{display:none}
