@layer components.application{.c-cable-test{--on:var(--site-color-content-heading-highlight);--white:var(--site-color-heading);--canvas:var(--site-color-background);--source-width:calc(7 * var(--site-grid-step-inline-size) - var(--site-grid-gap-inline));--unit-start:calc(8 * var(--site-grid-step-inline-size));--unit-width:calc(9 * var(--site-grid-step-inline-size) - var(--site-grid-gap-inline));--outlet-start:calc(18 * var(--site-grid-step-inline-size));--off:#ffffff2e;--edge:#ffffff4d;--wire-input:var(--off);--wire-output:var(--off);--wire-battery:var(--off);--unit:#0f2c23;--key:#45514c;--led:#e5483c;--fault:#f0b9b5;--unit-accent:var(--on);min-width:0}.c-cable-test [hidden]{display:none}.c-cable-test:where([data-phase]:not([data-phase=start])){--wire-input:var(--on)}.c-cable-test[data-red]{--wire-output:var(--on)}.c-cable-test[data-inverter]:not([data-red]){--wire-battery:var(--on)}.c-cable-test[data-phase=failed]{--unit-accent:var(--fault);--wire-input:var(--fault);--wire-output:var(--fault)}.c-cable-test__diagram{height:400px;font-family:var(--site-font-family-heading);color:var(--white);position:relative}.c-cable-test__diagram button{cursor:pointer;font:inherit;color:inherit;background:0 0;border:0;padding:0}.c-cable-test__diagram button:focus-visible{outline:2px solid var(--site-color-focus);outline-offset:3px}.c-cable-test[data-phase=failed] .c-cable-test__keys button:focus-visible{outline-color:var(--fault)}.c-cable-test__controls{z-index:4;position:absolute;top:21px;right:0}.c-cable-test__caption{color:#fff9;letter-spacing:.16em;text-transform:uppercase;margin-bottom:8px;font-size:11px;font-weight:700;line-height:1;display:block}.c-cable-test__toolbar,.c-cable-test__modes{align-items:center;display:flex}.c-cable-test__toolbar{color:#ffffffbf;gap:16px;font-size:14px;font-weight:600}.c-cable-test__modes{box-shadow:inset 0 0 0 1px var(--off);background:#ffffff14;padding:3px}.c-cable-test__modes button{height:34px;padding-inline:14px;transition:background .2s,color .2s}.c-cable-test__modes [aria-pressed=true]{color:var(--canvas);background:var(--on)}.c-cable-test__modes [data-action=defective][aria-pressed=true]{background:var(--site-color-status-error);color:var(--white)}.c-cable-test [data-action=restart]:where(:not([hidden])){align-items:center;gap:6px;min-height:40px;display:flex}.c-cable-test [data-action=restart] svg{width:15px;height:15px}.c-cable-test__toolbar [data-action=restart]{transition:color .2s}.c-cable-test__toolbar [data-action=restart]:focus-visible{color:var(--site-color-link)}@media (hover:hover) and (pointer:fine){.c-cable-test__toolbar [data-action=restart]:hover{color:var(--site-color-link)}}.c-cable-test__wires{pointer-events:none;position:absolute;overflow:visible}.c-cable-test__wires.wire-input{left:calc(var(--source-width) + 15px);width:calc(var(--unit-start) + var(--unit-width) / 2 - var(--source-width) - 15px);height:54px;top:96px}.c-cable-test__wires.wire-output{left:calc(var(--unit-start) + var(--unit-width));width:calc(var(--outlet-start) - var(--unit-start) - var(--unit-width));height:4px;top:198px}.c-cable-test__wires.wire-battery{left:var(--source-width);width:calc((100% + var(--outlet-start)) / 2 - var(--source-width));height:48px;top:256px}.c-cable-test__wires path{stroke:currentColor;stroke-width:4px;stroke-linecap:round;vector-effect:non-scaling-stroke}.c-cable-test .wire-input{color:var(--wire-input)}.c-cable-test .wire-output{color:var(--wire-output)}.c-cable-test .wire-battery{color:var(--wire-battery)}.c-cable-test :is(.wire-input,.wire-output,.wire-battery){transition:color .45s}.c-cable-test__vertical{display:none}.c-cable-test__diagram .c-cable-test__box{z-index:2;border:2px solid var(--edge);background:var(--canvas);text-align:left;flex-direction:column;justify-content:center;align-items:flex-start;gap:6px;height:112px;padding:0 20px;transition:border-color .45s;display:flex;position:absolute}.c-cable-test__station,.c-cable-test__inverter{width:var(--source-width);left:0}.c-cable-test__station{top:40px}.c-cable-test__inverter{top:248px}.c-cable-test__outlet{left:var(--outlet-start);width:calc(100% - var(--outlet-start));top:144px}.c-cable-test__diagram :is(.c-cable-test__outlet,.c-cable-test__unit){padding-block:10px 0}.c-cable-test__diagram .c-cable-test__outlet{grid-template-rows:20px 36px minmax(0,1fr);grid-template-columns:minmax(0,1fr);align-content:start;align-items:start;row-gap:3px;display:grid}.c-cable-test__outlet .c-cable-test__label{grid-row:1}.c-cable-test__outlet :is([data-voltage],[data-output=outlet-value]){grid-row:2;align-self:center}.c-cable-test__outlet :is([data-output=source],.c-cable-test__warning){grid-row:3}.c-cable-test__diagram .c-cable-test__unit{--unit-border-width:2px;top:144px;left:var(--unit-start);width:var(--unit-width);border-width:var(--unit-border-width);border-color:var(--unit);background:var(--unit);justify-content:flex-start;align-items:center;gap:10px}.c-cable-test:where([data-phase]:not([data-phase=start])) .c-cable-test__station,.c-cable-test[data-inverter] .c-cable-test__inverter,.c-cable-test[data-energized] .c-cable-test__outlet{border-color:var(--on)}.c-cable-test:where([data-phase]:not([data-phase=start])) .c-cable-test__unit{border-color:var(--unit-accent)}.c-cable-test__unit .c-cable-test__repeat{inset:calc(-1 * var(--unit-border-width));border:var(--unit-border-width) solid transparent;color:var(--unit-accent);background:#000c padding-box padding-box;justify-content:center;font-size:1rem;font-weight:600;position:absolute}@media (prefers-reduced-motion:no-preference){.c-cable-test__repeat:not([hidden]){animation:.2s ease-out cable-repeat-in}}@keyframes cable-repeat-in{0%{opacity:0}to{opacity:1}}.c-cable-test__label{color:#ffffffb8;font-size:15px;font-weight:500;line-height:1.3}.c-cable-test__volts{font-variant-numeric:tabular-nums;font-size:32px;font-weight:700;line-height:1.1}.c-cable-test__volts small{color:#ffffffb8;font-size:18px;font-weight:500}.c-cable-test__box [data-output]{font-family:var(--site-font-family-body);color:#fff9;font-size:13px;line-height:1.35}.c-cable-test__box .c-cable-test__value{color:#fffc;font-size:19px}.c-cable-test__warning{align-items:center;gap:6px;font-size:14px;line-height:1.3;display:flex}.c-cable-test__warning svg{flex:none;width:16px;height:16px}.c-cable-test[data-phase=failed] .c-cable-test__outlet :is(.c-cable-test__value,strong){color:var(--fault)}.c-cable-test__keys{align-items:center;gap:14px;display:flex}.c-cable-test__keys button{background:var(--key);width:84px;height:40px;font:11px var(--site-font-family-mono);letter-spacing:.06em;border-radius:20px}.c-cable-test__led{background:var(--key);border-radius:50%;width:24px;height:24px;transition:background .2s,box-shadow .3s}.c-cable-test[data-red] .c-cable-test__led{background:var(--led);box-shadow:0 0 16px #e5483cbf}.c-cable-test[data-phase=start] .c-cable-test__station{animation:cable-station var(--station-duration,1.8s) ease-in-out var(--pulse-count,infinite)}.c-cable-test:is([data-phase=after-plug],[data-phase=after-test]) [data-action=reset],.c-cable-test[data-phase=after-reset] [data-action=test]{animation:cable-key var(--key-duration,1.6s) ease-in-out var(--pulse-count,infinite)}@keyframes cable-station{0%,to{background-color:var(--canvas)}50%{background-color:#0e5a34}}@keyframes cable-key{0%,to{background-color:var(--key);box-shadow:0 0 #0000}50%{background-color:#1f7a4d;box-shadow:0 0 0 3px #a9efc88c}}.c-cable-test__plug{z-index:1;left:calc(var(--source-width) + 14px);width:27px;height:22px;color:var(--wire-input);transition:transform .5s cubic-bezier(.3,.8,.2,1);position:absolute;top:85px}.c-cable-test__plug:after{content:"";position:absolute;inset:-11px -9px}.c-cable-test__plug-shape{background:var(--wire-input);border-radius:3px 7px 7px 3px;transition:background .45s;position:absolute;inset:0 0 0 9px}.c-cable-test__plug-shape:before{content:"";background:inherit;width:9px;height:3px;color:var(--wire-input);border-radius:2px;transition:color .45s;position:absolute;top:5px;right:100%;box-shadow:0 9px}.c-cable-test[data-phase=start] .c-cable-test__plug-shape{--wire-input:#fff9}.c-cable-test[data-phase]:not([data-phase=start]) .c-cable-test__plug{transform:translate(-23px)}.c-cable-test__cee{z-index:1;left:calc(var(--outlet-start) - 22px);background:#fff9;border-radius:8px 4px 4px 8px;justify-content:center;align-items:center;gap:3px;width:24px;height:28px;transition:background .45s;display:flex;position:absolute;top:186px}.c-cable-test[data-red] .c-cable-test__cee{background:var(--wire-output)}.c-cable-test__cee i{background:var(--canvas);border-radius:50%;width:3px;height:3px}.c-cable-test__steps{margin-top:var(--site-space-2xl)}.c-cable-test__number-short{display:none}.c-cable-test__step{--line:var(--on);--number:var(--on);--title:var(--white);--body:#fffc;border-top:2px solid var(--line);padding-top:20px;transition:border-color .3s}.c-cable-test__step[data-state=pending]{--line:#ffffff29;--number:var(--off);--title:#fff9;--body:#ffffff8c}.c-cable-test__step[data-state=current]{--line:#a9efc88c}.c-cable-test__step[data-state=failed]{--line:var(--led);--number:var(--fault);--title:var(--fault);--body:var(--fault)}.c-cable-test__marker{color:var(--number);justify-content:space-between;align-items:center;margin-bottom:18px;transition:color .3s;display:flex}.c-cable-test__number{font:800 clamp(32px, 3vw, 40px) / 1 var(--site-font-family-heading);letter-spacing:-.02em}.c-cable-test__marker svg{stroke-width:2.6px;width:22px;height:22px}.c-cable-test__check,.c-cable-test__cross{display:none}[data-state=done] .c-cable-test__check,[data-state=failed] .c-cable-test__cross{display:flex}.c-cable-test__step h3{font:800 clamp(20px, 1.8vw, 24px) / 1.15 var(--site-font-family-heading);letter-spacing:-.02em;color:var(--title);margin:0 0 10px;transition:color .3s}.c-cable-test__description{color:var(--body);font-size:16px;line-height:1.6;transition:color .3s}@media (width<=900px){.c-cable-test__diagram{--link-space:calc(2 * var(--site-space-xl));grid-template-columns:minmax(0,1fr);grid-template-rows:auto var(--site-space-xl) auto var(--link-space) auto var(--link-space) auto var(--link-space) auto;height:auto;margin-block-start:var(--site-space-2xl);display:grid}.c-cable-test__diagram>*{grid-column:1}.c-cable-test__controls{grid-row:1;justify-self:end;position:static}.c-cable-test__wires{display:none}.c-cable-test__vertical{background:currentColor;justify-self:center;width:4px;display:block}.c-cable-test__vertical.wire-input{grid-row:4;margin-top:15px}.c-cable-test__vertical.wire-output{grid-row:6}.c-cable-test__vertical.wire-battery{grid-row:8}.c-cable-test__diagram .c-cable-test__box{width:100%;height:7rem;position:static}.c-cable-test__station{grid-row:3}.c-cable-test__diagram .c-cable-test__unit{grid-row:5;position:relative;inset:auto}.c-cable-test__outlet{grid-row:7}.c-cable-test__inverter{grid-row:9}.c-cable-test__cee{border-radius:8px 8px 4px 4px;grid-row:6;width:28px;height:24px;top:auto;bottom:-2px;left:calc(50% - 14px)}.c-cable-test__plug{grid-row:4;width:22px;height:27px;top:14px;left:calc(50% - 11px)}.c-cable-test__plug:after{inset:-9px -11px}.c-cable-test__plug-shape{border-radius:3px 3px 7px 7px;inset:9px 0 0}.c-cable-test__plug-shape:before{width:3px;height:9px;inset:auto auto 100% 5px;box-shadow:9px 0}.c-cable-test[data-phase]:not([data-phase=start]) .c-cable-test__plug{transform:translateY(-23px)}}@container layout-content (width<40rem){.c-cable-test__step{border:0;border-bottom:1px solid var(--off);grid-template-columns:32px 1fr;align-items:start;gap:18px;padding:16px 14px;display:grid}.c-cable-test__step[data-state=current]{background:#a9efc81a}.c-cable-test__step[data-state=failed]{background:#e5483c24}.c-cable-test__marker{justify-content:center;min-height:28px;margin:0}.c-cable-test__number{display:none}.c-cable-test__number-short{font:800 28px / 1 var(--site-font-family-heading);display:block}.c-cable-test:not([data-editing]) .c-cable-test__step h3{clip-path:inset(50%);width:1px;height:1px;position:absolute;overflow:hidden}.c-cable-test[data-editing] .c-cable-test__description{grid-column:2}.c-cable-test__step:is([data-state=done],[data-state=failed]) .c-cable-test__number-short{display:none}}@media (prefers-reduced-motion:reduce){.c-cable-test{--station-duration:0s;--key-duration:0s;--pulse-count:1}.c-cable-test[data-phase] :is(.c-cable-test__diagram,.c-cable-test__steps) *,.c-cable-test[data-phase] .c-cable-test__plug-shape:before{transition-duration:0s}}}
