.string-planner{background:#fff;color:#1d2429;font:14px/1.45 "Segoe UI",system-ui,sans-serif;padding:24px;max-width:1600px;margin:auto;min-width:0;accent-color:#a84213}
.string-planner *{box-sizing:border-box}.string-planner h2{font-size:28px;line-height:1.2;margin:0}.string-planner h3{font-size:19px;margin:0 0 12px}.string-planner h4{font-size:16px;margin:20px 0 10px}.string-planner p{margin:8px 0;max-width:75ch}.string-planner small,.sp-hint{color:#5b666d}.string-planner .button{min-height:44px;white-space:normal;text-align:left}.string-planner button:disabled{opacity:.5;cursor:not-allowed}.string-planner :focus-visible{outline:3px solid #146b8c;outline-offset:3px}.string-planner ::selection{background:#fff0e4;color:#1d2429}.string-planner input{caret-color:#a84213}
.sp-header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding-bottom:20px;margin-bottom:24px;border-bottom:1px solid #d9dedb}.sp-header p{color:#5b666d}.sp-section-heading,.sp-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.sp-section-heading{justify-content:space-between;gap:12px}.sp-section-heading h3,.sp-section-heading h4{margin:0}.sp-input{display:flex;flex-direction:column;gap:6px;min-width:0;color:#1d2429}.sp-input input,.sp-input select{font:inherit;border:1px solid #b8c2bf;border-radius:6px;padding:10px;min-height:44px;width:100%;color:#1d2429;background:#fff}.sp-input input::placeholder{color:#5b666d}.sp-input input[type=number]{font-variant-numeric:tabular-nums}
.sp-device-row{display:grid;grid-template-columns:50px minmax(200px,1fr) auto minmax(180px,1fr) auto auto;gap:12px;align-items:end;margin-top:16px;padding-bottom:16px;border-bottom:1px solid #d9dedb}.sp-device-row>strong{align-self:center}.sp-battery-status{grid-column:2/-1;font-size:14px}.sp-add-device{display:flex;gap:12px;align-items:end;max-width:700px;margin-top:18px}.sp-add-device .sp-input{flex:1}.sp-catalog{margin:16px 0 24px}.string-planner summary{cursor:pointer;min-height:44px;padding:12px 0;font-weight:600}.sp-catalog-list{max-height:320px;overflow:auto;padding-right:8px}.sp-catalog-list>div{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 0;border-top:1px solid #d9dedb}.sp-catalog-list small{display:block;margin-top:4px}
.sp-plan-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid #d9dedb;padding:20px 0 8px}.sp-plan-toolbar strong{font-size:19px;font-variant-numeric:tabular-nums}.sp-plan-toolbar p{font-size:14px}.sp-status{font-size:12px;font-weight:600}.sp-status.ok{color:#246348}.sp-status.warn{color:#79500b}.sp-status.fail,.sp-feedback.fail,.sp-checks .fail,.sp-battery-status.fail{color:#a52929}.sp-feedback,.sp-confirm{padding:14px 16px;border:1px solid #d9dedb;border-radius:6px;margin-bottom:16px;background:#f4f4f1}.sp-feedback.fail{background:#fff3f1;border-color:#dba9a4}.sp-confirm{background:#fff0e4;border-color:#c79370}.sp-confirm p{margin:0 0 10px}.sp-checks{border-bottom:1px solid #d9dedb;margin-bottom:20px}.sp-checks ul{padding-left:22px;margin:4px 0 18px;max-width:100ch}.sp-checks li{margin:9px 0}.sp-checks .warn{color:#74551d}.sp-parameters{margin-bottom:8px}.sp-parameters form{padding-bottom:16px}.sp-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;max-width:960px}.sp-parameters .sp-form-grid{grid-template-columns:repeat(3,minmax(0,1fr));max-width:1100px}
.sp-workspace{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(330px,1fr);gap:28px;align-items:start}.sp-selection{position:sticky;top:12px;min-width:0}.sp-photo{background:#20282b;line-height:0;border-radius:6px;overflow:hidden;margin-top:14px}.sp-photo svg{width:100%;height:auto;max-height:520px}.sp-photo polygon{cursor:pointer;transition:fill 100ms ease-out}.sp-photo polygon:hover{stroke:#ff9b50;stroke-width:3}.sp-photo polygon:focus{outline:none;stroke:#ff9b50;stroke-width:4}.sp-group-actions{display:flex;gap:4px;flex-wrap:wrap;margin-top:8px}.sp-group-actions .button{font-size:14px}.sp-move-bar{padding:16px;background:#f4f4f1;border-radius:6px;display:flex;flex-wrap:wrap;gap:12px;align-items:end;margin-top:12px}.sp-move-bar>strong{width:100%;font-variant-numeric:tabular-nums}.sp-move-bar .sp-input{flex:1;min-width:180px}.sp-trackers{margin-bottom:28px}.sp-tracker{border-top:1px solid #b8c2bf;padding:12px 0}.sp-tracker small{font-variant-numeric:tabular-nums}.sp-empty{padding:10px 0;color:#5b666d}.sp-string{padding:16px 0;border-bottom:1px solid #d9dedb}.sp-string:last-child{border-bottom:0}.sp-string-heading{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.sp-string-select{font:inherit;border:0;background:transparent;padding:6px 0;min-height:44px;display:flex;align-items:center;gap:8px;cursor:pointer;color:#1d2429}.sp-string-select:hover{text-decoration:underline;text-underline-offset:3px}.sp-string-swatch{width:14px;height:14px;border-radius:4px;flex:none}.sp-string-heading .sp-delete{margin-left:auto;font-size:12px}.sp-string-values{display:flex;gap:20px;flex-wrap:wrap;margin:12px 0;font-variant-numeric:tabular-nums}.sp-string-values dt{font-size:12px;color:#5b666d}.sp-string-values dd{margin:3px 0 0;font-weight:600}.sp-string>.sp-input{font-size:12px;max-width:360px}.sp-footer{border-top:1px solid #d9dedb;padding-top:20px;margin-top:28px;display:flex;gap:20px;justify-content:space-between;align-items:center}.sp-footer p{font-size:14px;color:#5b666d;max-width:80ch}
.sp-device-editor{padding-bottom:24px}.sp-device-editor>.sp-hint{margin:12px 0 20px}.sp-mppt-form{margin:20px 0;border:1px solid #b8c2bf;border-radius:6px;padding:16px}.sp-mppt-form legend{font-weight:600;padding:0 6px}.sp-mppt-form .button{margin-top:8px}.sp-check,.sp-compat-list label{display:flex;align-items:flex-start;gap:10px;padding:10px 0;cursor:pointer}.sp-check input,.sp-compat-list input{width:20px;height:20px;flex:none;margin:0}.sp-check{margin:10px 0 18px}.sp-compat-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px;max-width:960px;margin-bottom:16px}.sp-battery-port{margin:20px 0}
.sp-header{position:sticky;top:0;z-index:4;background:#fff;padding-top:12px}.sp-inline-error{color:#a52929;font-size:14px}.string-planner section,.string-planner article,.string-planner form,.sp-photo,.sp-confirm{scroll-margin-top:140px}
@media(min-width:781px){.sp-selection{top:118px}.sp-photo svg{max-height:min(460px,calc(100dvh - 430px))}}
.sp-photo-controls{display:flex;gap:8px;align-items:end;flex-wrap:wrap;margin-top:16px}.sp-photo-controls .sp-input{flex:1;min-width:180px}.sp-photo-controls .button{font-size:12px}.sp-photo svg{touch-action:none}.sp-photo svg:active{cursor:grabbing}
.sp-selection{position:static}.sp-move-bar{margin:16px 0}.sp-footer .sp-actions{flex:none}
@media(max-width:1100px){.sp-device-row{grid-template-columns:50px minmax(200px,1fr) auto}.sp-device-row>label:nth-of-type(2){grid-column:2}.sp-workspace{grid-template-columns:minmax(0,1fr) minmax(300px,1fr);gap:20px}}
@media(max-width:780px){.string-planner{padding:16px}.sp-header{align-items:start;flex-wrap:wrap;margin-bottom:20px}.sp-header .button{width:100%}.sp-section-heading{align-items:flex-start}.sp-device-row{grid-template-columns:1fr;gap:8px}.sp-device-row>label:nth-of-type(2),.sp-battery-status{grid-column:auto}.sp-device-row>.button{justify-content:flex-start}.sp-add-device{align-items:stretch;flex-direction:column}.sp-plan-toolbar{align-items:stretch;flex-direction:column;gap:10px}.sp-plan-toolbar>.sp-actions>.button{width:100%}.sp-workspace{grid-template-columns:1fr}.sp-selection{position:static}.sp-photo svg{max-height:450px}.sp-form-grid,.sp-parameters .sp-form-grid,.sp-compat-list{grid-template-columns:1fr}.sp-footer{align-items:stretch;flex-direction:column}.sp-string-heading .sp-delete{margin-left:0}.sp-catalog-list>div{align-items:flex-start}.sp-catalog-list strong{overflow-wrap:anywhere}.sp-move-bar>.button{flex:1}.sp-trackers{overflow-wrap:anywhere}}
@media(prefers-reduced-motion:reduce){.sp-photo polygon{transition:none}}

/* Task workspace: the roof remains visible while devices and checks live in the inspector. */
#string-planner-dialog{width:calc(100vw - 24px);height:calc(100dvh - 24px);max-height:none;max-width:none;margin:12px;border-radius:8px;overflow:hidden}
#string-planner-host{height:100%;min-height:0}
.sp-studio{height:100%;max-width:none;display:flex;flex-direction:column;padding:0;overflow:hidden;font:14px/1.4 "Segoe UI",system-ui,sans-serif;background:#fff;color:#1d2429}
.sp-studio *{box-sizing:border-box}.sp-studio [hidden]{display:none!important}
.sp-studio h2{font-size:23px}.sp-studio h3{font-size:17px}.sp-studio h4{font-size:15px}.sp-studio p{max-width:none}
.sp-studio .sp-header{position:static;flex:none;padding:14px 20px;margin:0;align-items:center;border-bottom:1px solid #d9dedb;gap:12px}
.sp-studio .sp-header p{font-size:13px;margin:3px 0}.sp-studio .sp-header .sp-save-status{font-size:12px;margin:0}
.sp-studio .button{border-radius:5px;min-height:44px;justify-content:center;gap:7px;white-space:normal}.sp-studio .button svg{flex:none}
.sp-studio .is-current{background:#edf2dd;border:1px solid #a84213;color:#334000}
.sp-nav{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 20px;border-bottom:1px solid #d9dedb;flex:none}
.sp-tabs{display:flex;gap:4px;align-items:center}.sp-tabs .button{min-width:80px}
.sp-studio .sp-workspace{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) 350px;gap:0;overflow:hidden}
.sp-studio .sp-selection{position:static;min-height:0;display:flex;flex-direction:column;padding:12px 18px;background:#f4f6f2;overflow:auto}
.sp-studio .sp-photo-controls{margin:0 0 10px;display:flex;align-items:end;gap:10px;flex-wrap:wrap}
.sp-studio .sp-photo-controls .sp-input{min-width:125px;flex:1;font-size:12px}.sp-studio .sp-photo-controls select{padding:7px 9px}
.sp-studio .sp-photo{flex:1;min-height:180px;position:relative;margin:8px 0 0;background:#303b3d;border-radius:4px;overflow:hidden}
.sp-studio .sp-photo svg{width:100%;height:100%;max-height:none;display:block;touch-action:none}
.sp-studio .sp-photo svg[data-sp-mode="draw"]{cursor:crosshair}.sp-studio .sp-photo svg[data-sp-mode="pan"]{cursor:grab}.sp-studio .sp-photo svg[data-sp-mode="pan"] polygon{cursor:grab}
.sp-studio .sp-photo svg[data-sp-mode="pan"]:active{cursor:grabbing}.sp-studio .sp-photo polygon{transition:none}
.sp-active{flex:none;padding:10px 12px;background:#fff;border:1px solid #c5cec3;border-radius:5px;min-height:70px}
.sp-active-title{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.sp-active-title strong{font-size:16px}.sp-active-title .sp-status{margin-left:auto}
.sp-active .sp-actions{margin-top:9px}.sp-active p{font-size:12px;margin:5px 0}.sp-active-empty{display:flex;flex-direction:column;gap:4px}.sp-active-empty span{font-size:12px;color:#53605b}
.sp-transfer-note{color:#74551d;font-weight:600}
.sp-canvas-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:7px}.sp-canvas-tools p{font-size:12px;color:#53605b;max-width:48ch;margin:0}.sp-canvas-tools .button{font-size:12px}
.sp-selection-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:7px;flex:none;font-size:12px}.sp-selection-actions .button{font-size:12px}.sp-selection-actions>span{margin-right:auto}
.sp-plan-note{font-size:11px!important;color:#53605b;margin:5px 0 0!important;flex:none}
.sp-inspector{padding:18px 16px;overflow:auto;min-height:0;border-left:1px solid #d9dedb;background:#fff;scrollbar-color:#9aa69b #f4f6f2;scrollbar-width:thin}
.sp-studio .sp-trackers{margin-bottom:24px}.sp-studio .sp-trackers>h3{font-size:15px;overflow-wrap:anywhere;margin-bottom:15px}
.sp-studio .sp-tracker{padding:12px 0}.sp-studio .sp-tracker h4{margin:0}.sp-studio .sp-tracker small{font-size:11px;color:#53605b}
.sp-studio .sp-tracker>.sp-section-heading{gap:6px}.sp-studio .sp-tracker>.sp-section-heading .button{font-size:12px}
.sp-studio .sp-string{padding:7px 0;border:0;border-bottom:1px solid #e2e7e1}.sp-studio .sp-string.is-active{background:#f2f5eb;padding:10px;margin:6px -4px;border:1px solid #bac4ae;border-radius:5px}
.sp-studio .sp-string-select{width:100%;text-align:left;flex-wrap:wrap;padding:4px;gap:6px}.sp-studio .sp-string-select .sp-status{width:100%;padding-left:20px;font-weight:400}
.sp-studio .sp-string p{font-size:12px;margin:6px 0}.sp-studio .sp-string>.sp-input{font-size:12px;max-width:none}.sp-studio .sp-string .sp-actions{margin-top:8px}
.sp-studio .sp-string-values{gap:10px;margin:10px 0}.sp-string-values dd{font-size:13px}.sp-string-values dt{font-size:11px}
.sp-check-list{padding:0;list-style:none}.sp-check-list li{padding:12px 0;border-bottom:1px solid #d9dedb}.sp-check-list p{font-size:13px;margin:6px 0}.sp-check-list .fail>strong{color:#a52929}.sp-check-list .warn>strong{color:#74551d}
.sp-studio .sp-device-row{display:flex;flex-direction:column;align-items:stretch;gap:8px}.sp-studio .sp-device-row .button{justify-content:flex-start}.sp-studio .sp-add-device{flex-direction:column;align-items:stretch}.sp-studio .sp-add-device .sp-input{width:100%}
.sp-studio .sp-form-grid,.sp-studio .sp-parameters .sp-form-grid,.sp-studio .sp-compat-list{grid-template-columns:1fr;gap:12px}
.sp-studio .sp-device-editor h4{margin-top:22px}.sp-studio .sp-catalog-list{max-height:none}.sp-studio .sp-catalog-list>div{align-items:flex-start}.sp-studio .sp-catalog-list strong{overflow-wrap:anywhere}.sp-studio .sp-catalog-list .button{font-size:12px}
.sp-studio .sp-footer{flex:none;padding:7px 20px;margin:0;border-top:1px solid #d9dedb;font-size:11px;color:#53605b;min-height:30px;display:flex;flex-direction:row}
.sp-studio .sp-feedback,.sp-studio .sp-confirm{flex:none;margin:0;padding:9px 20px;border-radius:0;border:0;border-bottom:1px solid #d9dedb;font-size:13px}
.sp-proposal{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 20px;background:#f1f7d8;border-bottom:1px solid #b3c580;flex:none}.sp-proposal p{font-size:12px;margin:4px 0 0}
.sp-studio :focus-visible{outline:3px solid #146b8c;outline-offset:2px}.sp-studio input{caret-color:#a84213}
@media(min-width:781px){.sp-studio[data-panel="devices"] .sp-workspace{grid-template-columns:minmax(0,1fr) 420px}}
@media(max-width:1100px) and (min-width:781px){.sp-studio .sp-workspace{grid-template-columns:minmax(0,1fr) 310px}.sp-studio .sp-header .button{font-size:12px;padding:8px}.sp-canvas-tools{align-items:flex-start;flex-direction:column}.sp-canvas-tools p{max-width:none}.sp-studio .sp-photo-controls .sp-actions{width:100%}}
@media(max-width:780px){
 #string-planner-dialog{width:100vw;height:100dvh;max-height:100dvh;margin:0;border-radius:0}
 .sp-studio .sp-header{padding:9px 12px;align-items:start;flex-wrap:nowrap;gap:6px}.sp-studio .sp-header h2{font-size:19px}.sp-studio .sp-header>div:first-child{flex:1;min-width:0}.sp-studio .sp-header>.sp-actions{max-width:145px;gap:2px;justify-content:flex-end}.sp-studio .sp-header .button{width:auto;font-size:0;padding:8px;min-width:44px}.sp-studio .sp-header .button span{font-size:0}.sp-studio .sp-header .button svg{width:18px}.sp-studio .sp-header [data-sp-action="export-pdf"]{display:none}
 .sp-nav{padding:6px 8px;display:flex;flex-direction:column;align-items:stretch;gap:6px}.sp-tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:3px}.sp-tabs .button{min-width:0;font-size:12px;padding:7px 5px}.sp-nav>.sp-actions{justify-content:space-between}.sp-nav>.sp-actions .button{font-size:12px}.sp-nav [data-sp-action="export"]{margin-left:auto}
 .sp-studio .sp-workspace{display:flex;flex-direction:column}.sp-studio .sp-selection{flex:1;padding:8px;overflow:auto}.sp-studio .sp-inspector{display:none;border:0;padding:14px;flex:1}.sp-studio:not([data-panel="plan"]) .sp-selection{display:none}.sp-studio:not([data-panel="plan"]) .sp-inspector{display:block}
 .sp-studio .sp-photo-controls{gap:6px;margin-bottom:6px}.sp-studio .sp-photo-controls .sp-input{font-size:11px;min-width:115px}.sp-studio .sp-photo-controls .sp-actions{gap:2px}.sp-studio .sp-photo-controls .button{font-size:0;padding:7px;min-width:44px}.sp-studio .sp-photo-controls .button span{font-size:0}
 .sp-active{padding:8px;min-height:60px}.sp-active-title{font-size:12px;gap:6px}.sp-active-title strong{font-size:14px}.sp-active-title .sp-status{margin-left:0}.sp-active .sp-actions{gap:4px;margin-top:6px}.sp-active .button{font-size:11px;padding:7px}.sp-active p{font-size:11px}
 .sp-canvas-tools{margin-top:5px;gap:4px;align-items:stretch;flex-direction:column}.sp-canvas-tools .button{font-size:11px;padding:7px}.sp-canvas-tools p{display:none}
 .sp-studio .sp-photo{min-height:200px;margin-top:5px}.sp-selection-actions{font-size:11px;gap:3px}.sp-selection-actions .button{font-size:11px;padding:6px}.sp-plan-note{font-size:10px!important}
 .sp-studio .sp-footer{padding:5px 8px;font-size:10px;min-height:25px}.sp-proposal{padding:8px;align-items:stretch;flex-direction:column;gap:6px}.sp-proposal .button{font-size:12px}.sp-proposal p{font-size:11px}.sp-studio .sp-feedback{padding:7px 10px;font-size:12px}
 .sp-studio .sp-input input,.sp-studio .sp-input select{font-size:16px}
}
@media(max-height:650px) and (min-width:781px){.sp-studio .sp-header{padding:8px 16px}.sp-studio .sp-header h2{font-size:19px}.sp-nav{padding:4px 16px}.sp-active p{display:none}.sp-canvas-tools p{display:none}.sp-studio .sp-photo{min-height:140px}.sp-studio .sp-footer{padding:4px 16px}.sp-plan-note{display:none}}

.sp-studio .sp-workspace{align-items:stretch}.sp-studio .sp-photo{flex:1 1 0}.sp-studio .sp-photo svg{position:absolute;inset:0}

.sp-studio [data-sp-action="export-pdf-mobile"]{display:none}
@media(max-width:780px){
 .sp-studio [data-sp-action="export-pdf-mobile"]{display:inline-flex}
 .sp-studio .sp-photo-controls{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;align-items:end}
 .sp-studio .sp-photo-controls .sp-input{min-width:0}
 .sp-studio .sp-photo-controls .sp-actions{display:flex;flex-direction:column;gap:0}
 .sp-studio .sp-photo-controls .sp-actions .button{min-height:44px;width:44px;min-width:44px;padding:5px}
 .sp-studio .sp-photo-controls .sp-actions{flex-direction:row;flex-wrap:nowrap}
 .sp-studio .sp-photo-controls{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 .sp-studio .sp-photo-controls .sp-actions{grid-column:1/-1}
 .sp-studio .sp-active p.sp-hint{font-size:10px;line-height:1.25}
 .sp-studio .sp-active .sp-inline-error{display:none}
 .sp-studio .sp-active [data-sp-action="show-checks"]{display:none}
 .sp-studio .sp-active .button{font-size:11px;padding:6px}
 .sp-studio .sp-selection-actions{flex-wrap:wrap}
}
@media(max-height:650px) and (min-width:781px){.sp-studio .sp-active{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:0;padding:8px}.sp-studio .sp-active .sp-actions{margin:0}.sp-studio .sp-active [data-sp-action="show-checks"]{display:none}.sp-studio .sp-active-title{font-size:12px}.sp-studio .sp-active-title strong{font-size:14px}}
.sp-studio .sp-selection-actions:not(.has-selection){display:none}
@media(max-width:780px){.sp-studio .sp-active:not(.is-drawing) .sp-hint{display:none}.sp-studio .sp-active [data-sp-action="reverse-string"]{display:none}}

.sp-canvas-tools select{font:inherit;font-size:12px;min-height:44px;border:1px solid #b8c2bf;border-radius:5px;padding:6px;background:#fff;color:#1d2429;max-width:170px}
@media(max-width:780px){.sp-studio .sp-canvas-tools .sp-actions{gap:4px;flex-wrap:nowrap;width:100%}.sp-studio .sp-canvas-tools .button{padding:6px;font-size:11px}.sp-studio .sp-canvas-tools select{font-size:11px;width:110px;min-width:0;flex:1}.sp-studio .sp-active.is-drawing+.sp-canvas-tools select{display:none}.sp-studio .sp-canvas-tools .button svg{width:15px;height:15px}}

@media(max-width:780px){.sp-studio .sp-photo-controls{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:3px}.sp-studio .sp-photo-controls .sp-actions{grid-column:auto}.sp-studio .sp-feedback:not(.fail){white-space:nowrap;overflow:hidden;text-overflow:ellipsis}}

@media(max-width:780px){.sp-studio .sp-nav>.sp-actions{gap:4px;flex-wrap:nowrap}.sp-studio .sp-nav [data-sp-action="export"]{padding:6px;margin-left:0}}

@media(min-width:781px) and (max-width:1100px){.sp-studio .sp-photo-controls .sp-actions{width:auto;flex:none}.sp-studio .sp-photo-controls .sp-input{min-width:110px}.sp-studio .sp-canvas-tools p{display:none}}

/* Walter: Zuordnung zuerst, technische Einzelheiten auf Nachfrage. */
.sp-studio .button.primary:disabled{background:#e4e8e1;color:#626b61;border-color:#ccd3c9;opacity:1}
.sp-studio .sp-device-details,.sp-studio .sp-string-technical,.sp-studio .sp-technical{border-top:1px solid #dfe4dc;margin-top:12px;padding-top:10px}
.sp-studio details>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;gap:8px;color:#34443b;font-weight:600}
.sp-studio details>summary:before{content:'›';font-size:20px;line-height:1}
.sp-studio details[open]>summary:before{transform:rotate(90deg)}
.sp-studio .sp-device-details .sp-actions{margin-top:8px}
.sp-studio .sp-technical{font-size:12px;line-height:1.55;color:#53615a}
.sp-studio .sp-technical ul{padding-left:18px}
.sp-studio[data-space-pan=true] .sp-photo,.sp-studio[data-space-pan=true] .sp-photo *{cursor:grab!important}
.sp-studio[data-panning=true] .sp-photo,.sp-studio[data-panning=true] .sp-photo *{cursor:grabbing!important}
.sp-studio .sp-catalog-list small{display:block;color:#58635b;line-height:1.5}
.sp-studio .sp-string-technical .sp-input{margin-bottom:10px}
@media(max-width:780px){.sp-studio .sp-more-export>summary{font-size:12px}.sp-studio .sp-technical{font-size:12px}.sp-studio details>summary{white-space:normal}.sp-studio .sp-footer{flex-wrap:wrap}}

.sp-tigo-task{display:flex;align-items:center;justify-content:space-between;gap:12px}
.sp-studio .sp-tigo-task p{display:block}
.sp-studio .sp-canvas-tools .sp-actions{flex-wrap:wrap}
@media(max-width:780px){
 .sp-studio .sp-canvas-tools .sp-actions{display:grid;grid-template-columns:auto auto auto minmax(0,1fr)}
 .sp-studio .sp-canvas-tools select{width:100%}
 .sp-tigo-task{gap:8px}
}
.sp-canvas-tools[data-tool="tigo"] select{display:none}

.sp-studio .sp-planning-actions{align-items:flex-end}
.sp-studio .sp-quick-device{margin:0;min-width:0;max-width:245px}
.sp-studio .sp-quick-device select,.sp-studio .sp-draw-target select{min-height:44px;max-width:100%}
.sp-studio .sp-photo-controls .sp-input[hidden],.sp-studio .sp-active:empty{display:none}
.sp-studio .sp-photo-controls .sp-draw-target{flex:0 1 230px;min-width:140px}
.sp-studio .sp-footer [data-sp-action="schematic"]{margin-left:auto}
@media(max-width:780px){
 .sp-studio .sp-header>.sp-actions{max-width:none;flex-wrap:nowrap}
 .sp-studio .sp-nav>.sp-planning-actions{align-items:end;gap:5px}
 .sp-studio .sp-quick-device{flex:1;max-width:none;font-size:11px}
 .sp-studio .sp-quick-device select{width:100%;padding:7px 4px;font-size:13px}
 .sp-studio .sp-proposal .sp-actions{flex-wrap:wrap}
 .sp-studio .sp-photo-controls{display:flex;flex-wrap:wrap;align-items:end;gap:4px}
 .sp-studio .sp-photo-controls .sp-input{flex:1 1 95px;min-width:0}
 .sp-studio .sp-photo-controls .sp-draw-target{flex:1 1 135px;min-width:0}
 .sp-studio .sp-photo-controls .sp-actions{margin-left:auto}
 .sp-studio .sp-footer{gap:4px}
 .sp-studio .sp-footer [data-sp-action="schematic"]{font-size:12px;padding:7px 10px}
}

@media(min-width:781px){
 .sp-studio[data-panel="plan"][data-has-inverter="false"] .sp-workspace{grid-template-columns:minmax(0,1fr)}
 .sp-studio[data-panel="plan"][data-has-inverter="false"] .sp-inspector{display:none}
}
.sp-studio .sp-photo-controls [data-sp-action="start-next"]{font-size:13px;min-height:44px}
.sp-studio .sp-photo-controls [data-sp-action="start-next"] span{font-size:inherit}

/* Daily planning keeps the roof visible; the tabs expose the detailed equipment and tracker lists. */
.sp-studio [hidden]{display:none!important}
.sp-studio[data-panel="plan"] .sp-workspace{grid-template-columns:minmax(0,1fr)}
.sp-studio[data-panel="plan"] .sp-inspector,.sp-studio[data-proposal="true"] .sp-selection-actions{display:none}
.sp-studio[data-panel="strings"] .sp-selection{display:none}
.sp-studio[data-panel="strings"] .sp-workspace{display:block}
.sp-studio[data-panel="strings"] .sp-inspector{display:block;height:100%;overflow:auto;max-width:60rem;margin:auto}
.sp-add-another>summary{cursor:pointer;padding:12px 0}

.sp-studio .sp-nav .sp-planning-actions{order:-1;margin-right:auto}
.sp-studio .sp-photo-controls .sp-zoom{margin-left:auto;flex-wrap:nowrap}
.sp-studio .sp-zoom .button{min-width:44px;padding:8px}
.sp-studio .sp-zoom .button span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.sp-studio .sp-photo-controls [data-id="tigo"],.sp-studio .sp-photo-controls [data-sp-action="tools"]{font-size:13px}
.sp-studio .sp-photo-controls [data-id="tigo"] span,.sp-studio .sp-photo-controls [data-sp-action="tools"] span{font-size:inherit}
.sp-studio .sp-open-link{color:#34443b;text-decoration:underline;text-underline-offset:3px;min-height:44px}
.sp-studio .sp-proposal strong{display:block}
.sp-studio .sp-proposal .sp-open-link{padding:5px 0}
.sp-studio .sp-no-modules{padding:12px 0 16px}
.sp-studio .sp-no-modules h3{margin-bottom:8px}
.sp-studio .sp-footer:has(span:empty){justify-content:flex-end}
@media(max-width:1050px){
 .sp-studio:not([data-panel="plan"]) .sp-workspace{display:block}
 .sp-studio:not([data-panel="plan"]) .sp-selection{display:none}
 .sp-studio:not([data-panel="plan"]) .sp-inspector{display:block;height:100%;overflow:auto}
}
@media(max-width:780px){
 .sp-studio .sp-nav .sp-planning-actions{order:0;width:100%}
 .sp-studio .sp-photo-controls .sp-open-link{font-size:12px}
 .sp-studio .sp-photo-controls .sp-open-link span{font-size:inherit}
}

.sp-studio .sp-header [data-sp-action="undo"]:disabled,.sp-studio .sp-header [data-sp-action="redo"]:disabled,.sp-studio[data-proposal="true"] .sp-header [data-sp-action^="export-pdf"]{display:none}
.sp-studio .sp-photo-controls .sp-input:not(.sp-draw-target){max-width:28rem}

@media(min-width:781px) and (max-width:1000px){
 .sp-studio .sp-tabs .button{min-width:64px;padding:6px 8px;white-space:nowrap}
 .sp-studio .sp-nav>.sp-planning-actions{flex-wrap:nowrap}
}
.sp-studio[data-proposal="true"] .sp-save-status:not(.failed){display:none}

.sp-studio .sp-proposal[data-result="empty"]{background:#fff7e8;border-color:#dfc795;color:#43321d}
.sp-string-length{font-size:14px;line-height:1.4}
.sp-studio>.sp-string-length{padding:8px 20px;background:#faf8f4;border-bottom:1px solid #ded7c9}
.sp-string-length strong{display:block;font-size:15px}
.sp-studio .sp-string-length p{margin:3px 0;font-size:14px;line-height:1.4}
.sp-string-length summary{cursor:pointer;width:fit-content;padding:6px 0;color:#4d453a;text-decoration:underline;text-underline-offset:3px}
.sp-string-length details[open]{margin-bottom:6px}
.sp-studio .sp-active.is-drawing .sp-inline-error{display:block;font-size:14px}
@media(max-width:780px){.sp-studio>.sp-string-length{padding:6px 10px}}

#string-planner-dialog[open]{inset:0;margin:0;width:100%;height:100dvh;max-height:100dvh;max-width:none;border-radius:0}
.sp-limits{padding:8px 10px;background:white;line-height:1.55;border:1px solid #d9dedb;border-radius:4px}
.sp-roof-rail{display:contents}
.sp-studio .sp-selection{scrollbar-gutter:stable;overflow-anchor:none}
@media(min-width:781px) and (orientation:landscape), (min-width:1101px){
 .sp-studio[data-panel="plan"] .sp-selection{display:grid;grid-template-columns:minmax(0,1fr) clamp(260px,26vw,370px);grid-template-rows:minmax(0,1fr);gap:12px;overflow:hidden;scrollbar-gutter:auto}
 .sp-studio[data-panel="plan"] .sp-selection>.sp-roof-rail{grid-column:2;grid-row:1;min-height:0;display:flex;flex-direction:column;gap:8px;overflow:auto;scrollbar-gutter:stable}
 .sp-roof-rail>*{flex-shrink:0}
 .sp-studio[data-panel="plan"] .sp-photo{grid-column:1;grid-row:1;position:relative;height:100%;min-height:0;margin:0}
}
@media(max-width:780px), (max-width:1100px) and (orientation:portrait){
 .sp-studio .sp-selection .sp-photo{order:-2;flex:0 0 46dvh;margin:0}
 .sp-studio .sp-selection .sp-limits{flex:none}
}
.sp-length-guidance:not(:empty){position:absolute;bottom:6px;left:8px;max-width:calc(100% - 16px);padding:4px 8px;border-radius:4px;background:#17262b;color:white;line-height:1.4;font-weight:600;pointer-events:none}

/* Keep the roof stationary while the local Tigo tool owns the next action. */
.sp-studio .sp-footer[data-tigo-active=true] [data-sp-action="schematic"]{visibility:hidden}

.sp-studio .sp-roof-rail>.sp-proposal{display:block;padding:10px 12px;border:1px solid #b3c580;border-radius:4px}
.sp-studio .sp-roof-rail>.sp-proposal .sp-actions{margin-top:5px;flex-wrap:wrap}
.sp-studio>.sp-inline-error{padding:8px 20px;margin:0}
@media(max-width:780px){
 .sp-studio>.sp-inline-error{padding:8px 12px}
 .sp-studio .sp-plan-note{font-size:12px!important;line-height:1.45}
}

.sp-roof-navigation{min-width:0;background:#fff;border:1px solid #d5dcd8;border-radius:5px}
.sp-photo-strip{display:flex;gap:6px;overflow-x:auto;padding:8px;scrollbar-width:thin}
.sp-photo-choice{display:grid;grid-template-columns:46px minmax(0,1fr);grid-template-rows:1fr 1fr;align-items:end;column-gap:7px;text-align:left;min-height:44px;min-width:104px;max-width:180px;flex-shrink:0;border:1px solid #ccd3cf;border-radius:4px;padding:3px 8px 3px 3px;background:#fff;color:#2d3732;font:inherit;cursor:pointer}
.sp-photo-choice[aria-pressed=true],.sp-roof-choice[aria-pressed=true]{background:#fff0e4;color:#74310e}
.sp-photo-choice[aria-pressed=true]{border:2px solid #a84213;padding:2px 7px 2px 2px}
.sp-photo-choice img{width:46px;height:36px;object-fit:cover;display:block;border-radius:2px}
.sp-roof-heading{padding:6px 12px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #dce1de;min-height:39px}
.sp-photo-strip+.sp-roof-heading{border-top:1px solid #e1e5e3}
.sp-roof-heading h3{margin:0;font-size:15px;line-height:1.3;font-weight:650}
.sp-studio .sp-roof-heading .button{min-height:36px;padding:2px 4px;font-size:12px}
.sp-roof-list{max-height:232px;overflow:auto;scrollbar-width:thin}
.sp-roof-choice{appearance:none;display:grid;grid-template-columns:58px minmax(0,1fr) auto;grid-template-rows:auto auto;align-content:center;gap:4px 8px;text-align:left;width:100%;min-height:54px;border:0;border-bottom:1px solid #e0e5e2;padding:6px 12px;background:#fff;color:#26352d;font:inherit;cursor:pointer}
.sp-roof-choice:last-child{border-bottom:0}
.sp-roof-choice strong{min-width:0;overflow-wrap:anywhere;font-weight:600;line-height:1.25}
.sp-roof-choice>span:not(.sp-roof-count){font-size:12px;align-self:center}
.sp-roof-count{display:flex;grid-column:2/-1;background:#e4e9e6;height:4px;border-radius:2px;overflow:hidden}
.sp-roof-count i{display:block;height:100%}
.sp-photo-choice:hover,.sp-roof-choice:hover{background:#f4f6f3}
.sp-photo-choice:focus-visible,.sp-roof-choice:focus-visible{outline:2px solid #146b8c;outline-offset:-3px}
.sp-empty-photo{margin:4px;padding:6px}
.sp-studio details>summary{list-style:none}
.sp-studio details>summary::-webkit-details-marker{display:none}
.sp-studio details>summary:before,.sp-studio details[open]>summary:before{content:none}
.sp-studio details>summary{color:#235968;text-decoration:underline;text-underline-offset:3px}
.sp-studio .sp-roof-rail>.sp-proposal{background:#fff;border-color:#cdd5d0;color:#25332c}
.sp-studio .sp-string-length strong{font-weight:500;font-size:14px}
@media(max-width:780px),(max-width:1100px) and (orientation:portrait){
 .sp-roof-list{display:flex;overflow-x:auto;max-height:none}
 .sp-roof-choice{min-width:135px;width:auto;flex:1 0 auto;grid-template-columns:1fr;border:0;border-right:1px solid #e0e5e2}
 .sp-roof-choice:last-child{border:0}
 .sp-roof-heading{min-height:32px}
 .sp-photo-strip{padding:4px 7px}
}

.sp-roof-crop{grid-column:1;grid-row:1/3;align-self:center;display:block;width:54px;height:38px;border-radius:3px;overflow:hidden;background:#dce1de}
.sp-roof-crop canvas{width:100%;height:100%;display:block}
@media(max-width:780px),(max-width:1100px) and (orientation:portrait){
 .sp-roof-choice{grid-template-columns:46px minmax(0,1fr);grid-template-rows:auto auto 3px;min-width:160px;gap:2px 6px}
 .sp-roof-choice .sp-roof-crop{width:44px;height:36px;grid-row:1/4}
 .sp-roof-choice>span:not(.sp-roof-count):not(.sp-roof-crop){grid-column:2}
}

.sp-photo-choice b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sp-studio .sp-roof-rail>.sp-feedback{margin:0}
@media(min-width:781px) and (orientation:landscape),(min-width:1101px){
 .sp-studio[data-panel="plan"] .sp-photo-controls{order:-1}
 .sp-studio[data-panel="plan"] .sp-roof-navigation{order:-2}
}

.sp-studio .sp-limits{padding:10px 12px}
.sp-studio .sp-limits h3{margin:0;font-size:15px}
.sp-device-label{margin-top:3px;color:#425147}
.sp-studio .sp-limits p{margin:2px 0 8px;font-size:12px;color:#44564d}
.sp-tracker-row{padding:8px 0;border-top:1px solid #e0e5e2}
.sp-tracker-row:last-child{padding-bottom:0}
.sp-tracker-heading{display:flex;align-items:baseline;gap:6px;flex-wrap:wrap}
.sp-tracker-heading span{font-size:13px;color:#3c4840}
.sp-ports{display:flex;flex-wrap:wrap;gap:4px;margin-top:3px}
.sp-studio .button.sp-port{display:inline-flex;align-items:center;min-height:44px;background:white;border:1px solid #aebcb5;padding:6px 9px;border-radius:4px;box-shadow:none;color:#273d32}
.sp-studio .button.sp-port.used:before{content:'';width:14px;height:4px;display:inline-block;background:var(--wire)}
.sp-studio .button.sp-port:disabled{opacity:1;color:#47534d;border-color:#dbe1dc;background:#f4f6f3}
.sp-studio .sp-ports .button:hover:enabled{border-color:#a84213;color:#883a13}

.sp-roof-map{position:relative;display:flex;flex-direction:column;min-width:0;min-height:0;flex:1}
.sp-map-tools{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:3px 6px;border:1px solid #d5dcd8;border-radius:4px 4px 0 0;background:#fff;flex:none}
.sp-studio .sp-roof-map>.sp-photo{width:100%;margin:0;flex:1 1 0;min-height:0;height:auto;border-radius:0 0 4px 4px}
.sp-map-tools .sp-zoom{display:flex;flex-flow:row nowrap;gap:0}
.sp-tigo-toggle{font:inherit;display:inline-flex;gap:6px;align-items:center;background:transparent;color:#25332c;border:1px solid transparent;border-radius:4px;min-height:44px;padding:4px 10px;cursor:pointer}
.sp-tigo-toggle b{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#183e46;color:white;font-size:13px}
.sp-tigo-toggle[aria-pressed=true]{border-color:#a84213;background:#fff0e4;color:#74310e}
.sp-tigo-toggle:hover:enabled{background:#f4f6f3}
.sp-tigo-toggle:disabled{opacity:.5;cursor:default}
@media(min-width:781px) and (orientation:landscape),(min-width:1101px){
 .sp-studio[data-panel="plan"] .sp-roof-map{grid-column:1;grid-row:1}
}
@media(max-width:780px),(max-width:1100px) and (orientation:portrait){
 .sp-studio .sp-selection .sp-roof-map{order:-2;flex:0 0 46dvh}
}

.sp-studio .sp-map-tools .sp-tigo-task{margin-right:auto;display:inline;color:#425147;font-size:12px}
.sp-studio .sp-map-tools .sp-tigo-task:empty{display:none}
.sp-studio .sp-map-tools .sp-zoom{margin-left:auto}
@media(min-width:781px){
 .sp-studio .sp-header{padding-block:8px}
 .sp-studio .sp-header>div:first-child{display:grid;grid-template-columns:auto auto;align-items:baseline;column-gap:12px}
 .sp-studio .sp-header .sp-save-status{grid-column:1/-1}
 .sp-studio .sp-quick-device{display:flex;flex-direction:row;align-items:center;max-width:330px}
 .sp-studio .sp-quick-device select{width:auto;min-width:0}
}
@media(min-width:781px) and (max-width:1099px){
 .sp-studio .sp-quick-device{flex-direction:column;align-items:start}
}

.sp-photo-choice>[data-sp-thumbnail]{grid-row:1/3;align-self:center}
.sp-photo-choice small{align-self:start;color:#43534a;line-height:1.2;font-size:12px}

@media(min-width:781px) and (max-width:1100px) and (orientation:portrait){
 .sp-studio .sp-nav{display:flex;flex-direction:column;align-items:stretch;gap:4px;padding:4px 16px}
 .sp-studio .sp-nav .sp-tabs{order:0}
 .sp-studio .sp-nav .sp-planning-actions{order:1;margin:0;justify-content:flex-start;align-items:center}
 .sp-studio .sp-nav .sp-quick-device{flex-direction:row;align-items:center;max-width:min(65%,400px)}
 .sp-studio .sp-nav .sp-quick-device select{width:auto;max-width:100%}
}

.sp-draw-target{display:flex;align-items:center;gap:.45rem;font-weight:600;min-width:0}
.sp-draw-target select{min-width:0;max-width:100%;width:auto}
.sp-map-tools .sp-tigo-toggle[hidden]{display:none}
.sp-photo-jumps{display:flex;gap:4px;max-width:100%;overflow-x:auto}
.sp-photo-jumps:empty{display:none}
.sp-photo-jumps .button{white-space:nowrap;flex:none}
@media(max-width:650px){.sp-map-tools:has(.sp-photo-jumps:not(:empty)){flex-wrap:wrap}.sp-photo-jumps:not(:empty){order:5;flex-basis:100%}}
@media(max-width:600px){.sp-draw-target{display:grid;gap:0;font-size:.8rem}}
