.sequence-dialog{width:min(1180px,96vw);max-height:94dvh;overflow:auto;padding:18px}
.sequence-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:12px}.sequence-heading h2{margin:0;font-size:17px}.sequence-heading button{min-width:110px}
.sequence-size{grid-template-columns:repeat(4,minmax(0,1fr));align-items:end;padding-top:0}.sequence-size label{margin:0}.sequence-size button{min-height:39px}
.sequence-body{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(300px,1fr);gap:18px;margin:14px 0}.sequence-preview{min-width:0}.sequence-preview svg{width:100%;height:48dvh;min-height:260px;background:#071522;border-radius:10px;color:#244f67}.sequence-editor{max-height:53dvh;overflow:auto;padding-right:5px;min-width:0}.sequence-rowbar{display:flex;gap:8px}.sequence-rowbar button{flex:1}
#seqRows{display:flex;flex-wrap:wrap;gap:5px;margin:10px 0}#seqRows button{font-size:12px;padding:7px 10px}#seqRows button[aria-pressed=true]{background:#17607a;border-color:#73cfdd}
#seqFields{padding-top:4px}#seqFields label{font-size:12px}#seqError{color:#ffb5a5;min-height:20px}.sequence-save{grid-template-columns:1fr 1fr 1fr;align-items:end;padding-top:0}.sequence-save label{margin:0}.sequence-save button{min-height:40px;background:#17607a}
#sequenceOpen{grid-column:1/-1;font-weight:700}
@media(max-width:760px){.sequence-body{grid-template-columns:1fr}.sequence-preview svg{height:32dvh;min-height:210px}.sequence-editor{max-height:none;overflow:visible}.sequence-size,.sequence-save{grid-template-columns:1fr 1fr}.sequence-save button{grid-column:1/-1}.sequence-dialog{padding:12px}#seqFields{grid-template-columns:1fr 1fr}}

.sequence-repeat{grid-template-columns:repeat(4,minmax(0,1fr));align-items:end;padding-top:8px}.sequence-repeat label{margin:0}.sequence-repeat button{min-height:39px}#seqGroupNote{line-height:1.5;margin:10px 0}
@media(max-width:760px){.sequence-repeat{grid-template-columns:1fr 1fr}}

.sequence-hatches{margin-top:14px;padding:10px;border:1px solid #426275;border-radius:10px}.sequence-hatches summary{cursor:pointer;font-weight:700;color:#f1d275;margin-bottom:10px}#seqHatches{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0}#seqHatches button[aria-pressed=true]{background:#17607a}#seqHatchFields label{font-size:12px}#seqHatchFields{padding-top:4px}
#templateOpen{grid-column:1/-1}.template-dialog{width:min(900px,94vw);max-height:94dvh;overflow:auto;padding:18px}.template-dialog p{line-height:1.5}.template-dialog svg{width:100%;height:38dvh;min-height:230px;background:#071522;border-radius:10px;color:#d9d0b9}.template-dialog #templateSave{width:100%;background:#17607a}.template-dialog #templateError{color:#ffb5a5;min-height:20px}

#seqProfiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:12px 0}#seqProfiles button{display:flex;align-items:center;justify-content:center;gap:12px;padding:8px;color:#d9d0b9;font-size:12px}#seqProfiles svg{height:64px;width:34px;flex:none}#seqProfiles span{color:#f1d275}@media(max-width:760px){#seqProfiles{grid-template-columns:1fr 1fr}#seqProfiles button{gap:6px}}
#seqProfiles svg{color:#b1e7e7}#seqProfiles svg *{vector-effect:non-scaling-stroke;stroke-width:1px}
.sequence-heading{position:sticky;top:-18px;z-index:3;background:#0b2233;padding:10px 0}.sequence-save{position:static;background:#0b2233;padding:12px 0;border-top:1px solid #405866}.sequence-drawbar{display:grid;grid-template-columns:1fr 1fr;gap:7px;align-items:end}.sequence-drawbar label{margin:0;font-size:12px}.sequence-drawbar button{font-size:12px;padding:8px}#seqCancelDraw{grid-column:1/-1}#seqDrawStatus{min-height:36px;line-height:1.5}#seqView{touch-action:none;cursor:crosshair}#seqView .seq-selected-shape{stroke:#c2492d;stroke-width:2px}#seqLibraryPanel{margin:10px 0;border:1px solid #426275;border-radius:8px;padding:10px}#seqLibraryPanel summary{cursor:pointer;color:#f1d275;font-weight:700}.sequence-library{display:grid;grid-template-columns:2fr 1fr 1fr;gap:8px;padding-top:10px}#seqHandleFields label{font-size:12px}#seqLibrary{min-width:0}@media(max-width:760px){.sequence-library{grid-template-columns:1fr 1fr}#seqLibrary{grid-column:1/-1}.sequence-heading{top:-12px}}
.sequence-save{position:static}.sequence-dialog{scroll-padding-top:75px}

.sequence-size{grid-template-columns:repeat(5,minmax(0,1fr))}@media(max-width:760px){.sequence-size{grid-template-columns:1fr 1fr}}

.channel-tool-legend{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0;font-size:12px;color:#dcebf4}.channel-tool-legend>span{display:inline-flex;align-items:center;gap:6px;max-width:100%;overflow-wrap:anywhere}.channel-tool-legend i{display:inline-block;width:16px;height:16px;border:1px solid #dcebf4;border-radius:4px;flex-shrink:0}

#seqView .seq-area-shape{stroke-dasharray:7 4;stroke:#35596e}#seqView .seq-area-shape.seq-selected-shape{stroke:#e65b4f}

.sequence-drawer{border:1px solid #426275;border-radius:9px;padding:10px;margin:9px 0}.sequence-drawer>summary{cursor:pointer;color:#f1d275;font-weight:700}.sequence-drawer[open]>summary{margin-bottom:10px}#seqTemplates{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}#seqTemplates button{display:flex;align-items:center;gap:12px;min-width:0;text-align:left;padding:10px}#seqTemplates svg{width:42px;height:76px;flex-shrink:0}#seqTemplates button[aria-pressed=true]{border-color:#7fdfeb;box-shadow:inset 0 0 0 1px #7fdfeb;background:#17546b}#seqTemplateApply{background:#17607a;min-height:42px;width:100%}.sequence-preview #seqView{height:62dvh;min-height:340px}.sequence-editor{max-height:70dvh}.sequence-editor #seqEditPanel{margin:10px 0;border:1px solid #426275;border-radius:9px;padding:10px}.sequence-editor #seqEditPanel summary{cursor:pointer;color:#f1d275;font-weight:700}.sequence-editor #seqEditPanel .parameter-grid{grid-template-columns:1fr 1fr}.sequence-editor #seqProfilePanel #seqProfiles{grid-template-columns:repeat(2,minmax(0,1fr))}@media(max-width:760px){#seqTemplates{grid-template-columns:repeat(2,minmax(0,1fr))}.sequence-preview #seqView{height:52dvh;min-height:280px}.sequence-editor{max-height:none}}
@media(min-width:761px){.sequence-body{grid-template-columns:minmax(0,1.7fr) minmax(270px,.85fr)}}
#seqTemplates svg{color:#b1e7e7}#seqTemplates svg *{vector-effect:non-scaling-stroke;stroke-width:1px}

.quick-handle-bar{grid-column:1/-1;display:flex;align-items:center;gap:12px;flex-wrap:wrap;border:1px solid #426275;border-radius:8px;padding:10px}.quick-handle-bar label{display:flex;align-items:center;gap:8px;font-weight:700;color:#f1d275}.quick-handle-bar input[type=checkbox]{width:18px;height:18px}.quick-handle-dialog{width:min(640px,94vw);max-height:90dvh;overflow:auto;padding:18px;background:#0b2233;color:#dcebf4;border:1px solid #ad934f;border-radius:12px}.quick-handle-dialog .parameter-grid{grid-template-columns:1fr 1fr}.quick-handle-dialog input[readonly]{opacity:.65}.quick-handle-tool{grid-column:1/-1}.quick-handle-actions{display:flex;gap:10px;margin-top:12px}.quick-handle-actions button{flex:1}#qhApply{background:#17607a}#qhError{color:#ffb5a5}.quick-handle-dialog summary{cursor:pointer;color:#f1d275}@media(max-width:480px){.quick-handle-dialog{padding:12px}.quick-handle-dialog .parameter-grid{grid-template-columns:1fr}.quick-handle-dialog .sequence-heading h2{font-size:16px}}

.workshop-panel-button{display:block;width:100%;min-height:42px;margin:8px 0;text-align:left;font-weight:700;color:#f1d275;border:1px solid #426275;border-radius:9px;padding:10px 13px}.workshop-panel-button:hover,.workshop-panel-button[aria-expanded=true]{background:#17546b;border-color:#7fdfeb}.workshop-panel-dialog{width:min(700px,94vw);max-height:90dvh;overflow:auto;padding:18px;background:#0b2233;color:#dcebf4;border:1px solid #ad934f;border-radius:12px}.workshop-panel-wide{width:min(1100px,96vw)}.workshop-panel-dialog>details{border:0;padding:0;margin:0}.workshop-panel-dialog>details>summary{display:none}.workshop-panel-dialog .parameter-grid,.workshop-panel-dialog .sequence-size,.workshop-panel-dialog .sequence-repeat{grid-template-columns:repeat(2,minmax(0,1fr))}.workshop-panel-dialog .parameter-grid>*{min-width:0}.workshop-panel-dialog .sequence-library{grid-template-columns:1fr 1fr}.workshop-panel-dialog #seqLibrary{grid-column:1/-1}.workshop-panel-dialog #seqProfiles{grid-template-columns:repeat(4,minmax(0,1fr))}.workshop-panel-done{display:block;width:100%;background:#17607a;margin-top:14px;min-height:42px}.workshop-panel-error{color:#ffb5a5}.quick-handle-bar>.workshop-panel-button{width:auto;margin:0;min-height:38px;font-size:12px}.sequence-drawbar .quick-handle-bar label{display:flex;flex-direction:row;width:auto;margin:0;white-space:nowrap}.quick-handle-bar button{min-height:38px}.sequence-editor>.workshop-panel-button{margin:9px 0}@media(max-width:600px){.workshop-panel-dialog{padding:12px}.workshop-panel-dialog .parameter-grid,.workshop-panel-dialog .sequence-size,.workshop-panel-dialog .sequence-repeat{grid-template-columns:1fr}.workshop-panel-dialog #seqProfiles{grid-template-columns:1fr 1fr}.quick-handle-bar>.workshop-panel-button{width:100%}}
.workshop-panel-dialog .sequence-size,.workshop-panel-dialog .sequence-repeat{display:grid;gap:10px}.workshop-panel-dialog .template-settings{grid-template-columns:repeat(3,minmax(0,1fr));margin:12px 0}.template-settings label{min-width:0}@media(max-width:600px){.workshop-panel-dialog .template-settings{grid-template-columns:1fr}}
