/*
 * Calculator styles.
 *
 * Scoped under .siled-root and built from custom properties so a shop can
 * retheme it without touching this file.
 *
 * SISUPPLIES' OWN LOOK (the owner, 2026-09-23: "Color scheme of the entire
 * software should match our color scheme at sisupplies.ca ... Red black and
 * white ... the Montserrat font only"): the site's red (#d10404, its buttons;
 * #b12028 its brand red), black text, white and light-grey grounds, and
 * Montserrat, which the site's theme already serves in every weight - so
 * nothing is loaded here. Light only, like the site: no dark scheme.
 */

/* (the Guide sits on the body, outside the root: the same colours there) */
.siled-root,
.siled-guide {
	--siled-ink: #111111;
	--siled-ink-2: #424242;
	--siled-ink-3: #757575;
	--siled-ground: #ffffff;
	/* ONE GREY, THE SITE HEADER'S (the owner, 2026-09-28: "make all the gray
	   used in the plugin match the gray in the header of the site", "all the
	   gray except the gray text"): #f5f5f5 for fills, lines, box outlines,
	   the grey buttons and the border round the tool. Text greys unchanged;
	   so are the drawings of real parts (track, angle, wires, LEDs), a
	   button's darker grey while pointed at, and the Help Text switch when
	   off, which would vanish on white. */
	--siled-sunk: #f5f5f5;
	--siled-rule: #f5f5f5;
	--siled-accent: #d10404;
	--siled-accent-deep: #b12028;
	--siled-font: Montserrat, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	/* The LED as the part looks: a white or light-grey body with a
	   greyish lens. These three travel INTO the <use> that clones the
	   module shape - custom properties inherit where a fill would not -
	   so the states below recolour the LED by redefining them. */
	--siled-mod: #f4f5f6;
	--siled-mod-edge: #8b9096;
	/* every LED's outline on the workbench and the page, drawn the same width on
	   the screen at any zoom (modDefs) - a marked LED's ring over it, wider */
	--siled-mod-outline: #6f757b;
	--siled-mod-lens: #c9ced3;
	/* A halo LED (lit onto the wall behind the letter): the same part,
	   drawn warm so the two sets read apart on a face-and-halo sign. */
	--siled-halo: #fbe3b8;
	--siled-halo-edge: #a86d12;
	--siled-halo-lens: #f0c46e;
	--siled-warn-bg: #f5f5f5;
	--siled-warn-ink: #111111;
	--siled-alert-bg: #fdecec;
	--siled-alert-ink: #b12028;
	--siled-radius: 6px;

	color: var(--siled-ink);
	background: var(--siled-ground);
	font-family: var(--siled-font);
	font-size: 15px;
	line-height: 1.5;
	container-type: inline-size;
}

/* one typeface throughout, the form controls too */
.siled-root input,
.siled-root select,
.siled-root button,
.siled-root textarea { font-family: var(--siled-font); }

.siled-root *,
.siled-root *::before,
.siled-root *::after { box-sizing: border-box; }

.siled-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--siled-rule); margin-bottom: 20px; }

/*
 * THE HEADER BAR: the sign tabs, Imperial / Metric and the Guide read as one
 * bar (the owner, 2026-09-24: "Guide button looks out of place. fix the UI").
 * Where they fit they share one row over one rule - tabs, then Units, then
 * the Guide at the right end, all centred on the tabs. Where they do not, the
 * tabs and the Guide keep the row and Units drops under the rule: the Guide
 * never wraps into the Units row.
 */
.siled-head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas: "tabs guide" "units units";
	align-items: center;
	column-gap: 8px;
	margin-bottom: 20px;
}
/* the bar's rule, under the first row alone */
.siled-head::before {
	content: "";
	grid-area: 1 / 1 / 2 / -1;
	align-self: stretch;
	border-bottom: 1px solid var(--siled-rule);
	pointer-events: none;
}
.siled-head > .siled-tabs { grid-area: tabs; align-self: end; border-bottom: 0; margin-bottom: 0; flex-wrap: nowrap; min-width: 0; }
/* the red line of the tab shown sits ON the rule */
.siled-head .siled-tab { margin-bottom: 0; white-space: nowrap; }
.siled-head > .siled-units { grid-area: units; justify-self: start; padding: 10px 2px 0; }
.siled-head > .siled-guide-btn { grid-area: guide; }
@container (min-width: 760px) {
	.siled-head { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "tabs units guide"; }
	.siled-head > .siled-units { padding: 0 14px 0 12px; border-right: 1px solid var(--siled-rule); }
}
/* a phone: tighter tabs, and the Guide's "?" alone (its name stays for a screen reader);
   the narrowest (about 320 px) lets the last tab take a second line rather than
   run under the "?" and off the page */
/* THE TABS IN ONE LINE (the owner, 2026-09-28, of the phone view: "I dont like the
   menuts being stacked like that. They should be in 1 line. Move the guide and help
   toggle"): below the width that holds them all in one row, the units, the Help Text
   switch and the Guide go on a row of their own above, and the tabs take the whole
   row under them, the bar's rule under the tabs */
@container (max-width: 759px) {
	/* ROOM TO TAP THE TABS (the owner, 2026-09-30: "On mobile often if i click off
	   cabinet its hard to click on it again. Add a bit of space above the cabinet,
	   letters and vector menus"): clear space between the units row and the tabs,
	   and each tab a full finger's height (44 px) */
	.siled-head { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "units guide" "tabs tabs"; row-gap: 18px; }
	.siled-head::before { grid-area: 2 / 1 / 3 / -1; }
	.siled-head > .siled-units { padding: 0 2px; }
	.siled-head > .siled-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
	.siled-head .siled-tab { min-height: 44px; }
}
/* the narrowest phones: the three tabs still in one line, the units' words on one */
@container (max-width: 330px) {
	.siled-head .siled-tab { padding: 8px 4px !important; font-size: 12.5px !important; }
	.siled-head > .siled-units .siled-seg__b { white-space: nowrap; font-size: 12px; padding-left: 6px; padding-right: 6px; }
}
@container (max-width: 479px) {
	.siled-head .siled-tab { padding: 9px 6px; font-size: 13.5px; }
	.siled-head .siled-guide-btn { padding: 6px; }
	.siled-guide-btn__t { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
		clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
}
.siled-units { display: flex; align-items: center; gap: 14px; padding: 0 2px 9px; font-size: 0.92em; }
.siled-units__lab { font-weight: 600; color: var(--siled-ink-2); }
.siled-radio { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: var(--siled-ink); }
.siled-radio input { margin: 0; width: 16px; height: 16px; accent-color: var(--siled-accent); cursor: pointer; }
.siled-radio input:focus-visible { outline: 2px solid var(--siled-accent); outline-offset: 2px; }

.siled-tab {
	appearance: none;
	background: none;
	border: 0;
	border-bottom: 2px solid transparent;
	padding: 9px 16px;
	font: inherit;
	font-weight: 600;
	color: var(--siled-ink-2);
	cursor: pointer;
	margin-bottom: -1px;
}
.siled-tab:hover { color: var(--siled-ink); }
.siled-tab.is-on { color: var(--siled-ink); border-bottom-color: var(--siled-accent); }
.siled-tab:focus-visible { outline: 2px solid var(--siled-accent); outline-offset: -2px; }
/* Populate / Clear / PDF - nothing is laid out until the customer asks */
.siled-run { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.siled-empty { color: var(--siled-ink-2); margin: 8px 0 0; }
/* GREY TEXT, NO RED LINE (the owner, 2026-09-27: "Make it gray text instead
   of the red line thing like the power supply text we did earlier, also if
   that red line is anywhere else continue the gray text theme") - the notes,
   the advice, the warnings and this one */
.siled-stale {
	margin-bottom: 12px;
	font-size: 13px;
	color: var(--siled-ink-3);
}
/* the progress bar while the LEDs are placed */
.siled-progwrap { margin: 4px 0 12px; }
.siled-progress {
	height: 10px;
	border-radius: 999px;
	background: var(--siled-sunk);
	border: 1px solid var(--siled-rule);
	overflow: hidden;
}
.siled-progress__bar {
	height: 100%;
	width: 0;
	background: var(--siled-accent);
	border-radius: 999px;
	transition: width 0.2s linear;
}
@media (prefers-reduced-motion: reduce) {
	.siled-progress__bar { transition: none; }
}
.siled-progwrap .siled-busy { margin: 6px 0 0; }
.siled-progwrap .siled-muted { margin: 2px 0 0; font-size: 13px; }
/* Layout / Materials & info */
.siled-tabs--out { margin-bottom: 14px; }
.siled-out-foot { margin: 10px 0 0; font-size: 13px; }
/* the Front / Halo view switch over a face-and-halo drawing */
.siled-tabs--views { margin-bottom: 10px; flex-wrap: wrap; }
.siled-tabs--views .siled-tab { padding: 6px 12px; font-size: 0.9em; }
/* ... and the Face / Halo switch over the workbench: which set of LEDs is on the bench */
.siled-tabs--bench { margin-bottom: 6px; }
.siled-tabs--bench .siled-tab { font-weight: 600; }
.siled-legend--bench { margin: 0 0 8px; }

.siled-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; grid-template-areas: "ctl" "run" "out"; }
.siled-controls { grid-area: ctl; }
.siled-runbox { grid-area: run; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.siled-runbox .siled-run { margin-bottom: 0; }
/* the three buttons the width of the column (the owner, 2026-09-29: "make sure
   those 3 buttons also fit the width of the area you put them nicely"): Place
   LEDs the widest, Clear and PDF sharing the rest */
.siled-runbox .siled-run { display: grid; grid-template-columns: 2fr 1fr 1fr; }
.siled-runbox .siled-run > .siled-btn { width: 100%; min-width: 0; padding-left: 8px; padding-right: 8px; justify-content: center; text-align: center; }
.siled-output { grid-area: out; }
/* PLACE LEDs, CLEAR AND PDF OVER THE SETTINGS, THE WORKBENCH UP BESIDE THEM
   (the owner, 2026-09-29: "Put the place leds, clear and PDF buttons on top
   of all the inputs and move up the design table"); on a phone they stay
   just over the workbench, after the settings (above). From 640 px across,
   so a tablet held upright has the two columns as well (the owner, the same
   day, of a tablet: "I like this better") */
@container (min-width: 640px) {
	.siled-cols { grid-template-columns: 280px minmax(0, 1fr); gap: 16px 32px; align-items: start;
		grid-template-areas: "run out" "ctl out"; grid-template-rows: auto 1fr; }
	/* the workbench stays in view while the settings scroll (layout.js stickOut) */
	.siled-output.is-sticky { position: sticky; top: 16px; }
}

.siled-controls { display: flex; flex-direction: column; gap: 14px; }
.siled-field { display: flex; flex-direction: column; gap: 5px; }
.siled-label { font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--siled-ink-2); }
.siled-hint { font-size: 12px; color: var(--siled-ink-3); }

.siled-input {
	width: 100%;
	padding: 8px 10px;
	font: inherit;
	color: var(--siled-ink);
	background: var(--siled-ground);
	border: 1px solid var(--siled-rule);
	border-radius: var(--siled-radius);
}
.siled-input:focus-visible { outline: 2px solid var(--siled-accent); outline-offset: 1px; border-color: var(--siled-accent); }
/* "Your text" takes several lines (the owner, 2026-10-06: "I should be able to
   put multiple lines of text"): drawn as the one-line box was - one line tall,
   a line taller with each line (its rows, layout.js) - with no handle to drag
   and no scrollbar; a long line runs on, as it does in a one-line box */
textarea.siled-input {
	display: block;
	height: auto;
	min-height: 0;
	margin: 0;
	resize: none;
	overflow: hidden;
	white-space: pre;
	line-height: inherit;
	box-sizing: border-box;
}
/* a number outside its limits (App.prototype.number) */
.siled-input.is-bad { border-color: var(--siled-accent); box-shadow: 0 0 0 1px var(--siled-accent); }
.siled-fielderr { font-size: 12px; font-weight: 600; color: var(--siled-accent-deep); }

/* the LED picker: each module with its drawing under its name (as eZLayout) */
.siled-pick { position: relative; }
.siled-pick__btn { display: flex; align-items: center; gap: 10px; text-align: left; cursor: pointer; min-height: 38px; }
.siled-pick__now { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.siled-pick__caret { flex: none; color: var(--siled-ink-3); font-size: 12px; }
.siled-pick__art { display: block; flex: none; max-width: 100%; height: auto; }
.siled-pick__list {
	position: absolute; z-index: 50; left: 0; top: calc(100% + 4px);
	width: max(100%, 340px); max-width: calc(100vw - 32px);
	max-height: 380px; overflow-y: auto; overscroll-behavior: contain;
	background: var(--siled-ground); border: 1px solid var(--siled-rule); border-radius: var(--siled-radius);
	box-shadow: 0 8px 24px rgba(0, 0, 0, .14); padding: 4px 0;
}
.siled-pick__opt { display: flex; flex-direction: column; align-items: stretch; gap: 6px; padding: 9px 12px;
	cursor: pointer; border-bottom: 1px solid var(--siled-sunk); }
.siled-pick__top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.siled-pick__price { flex: none; font-size: 13px; font-weight: 600; color: var(--siled-ink-2); font-variant-numeric: tabular-nums; }
/* the drawing, and the Recommended badge under it (the owner, 2026-09-23) */
.siled-pick__low { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-height: 14px; min-width: 0; }
.siled-pick__top { min-width: 0; }
.siled-pick__name { min-width: 0; }
.siled-pick__tag { flex: none; font-size: 11px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase;
	color: var(--siled-accent-deep); background: var(--siled-alert-bg); border: 1px solid currentColor; border-radius: 999px; padding: 1px 7px; }
.siled-pick__opt:last-child { border-bottom: 0; }
.siled-pick__opt:hover, .siled-pick__opt:focus { background: var(--siled-sunk); outline: none; }
.siled-pick__opt:focus-visible { box-shadow: inset 3px 0 0 var(--siled-accent); }
.siled-pick__opt.is-on { box-shadow: inset 3px 0 0 var(--siled-accent); }
.siled-pick__opt.is-on .siled-pick__name { font-weight: 600; }
.siled-pick__name { font-size: 14px; color: var(--siled-ink); overflow-wrap: anywhere; }

/* THE POWER CHOICES (the owner, 2026-09-24): Install / Wall voltage / Class 2
   PSU / Warranty / Priority, each a segmented group (below); a choice with no
   supply for the LED greyed. (.siled-radio is the look from before them.) */
.siled-power { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.siled-power > legend { padding: 0; margin-bottom: 4px; }
.siled-power__row { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 4px 10px; align-items: center; }
.siled-power__lab { font-size: 13px; font-weight: 600; color: var(--siled-ink-2); }
.siled-power__opts { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; }
.siled-radio.is-off { color: var(--siled-ink-3); }
.siled-radio:has(input:disabled), .siled-radio input:disabled { cursor: not-allowed; }
.siled-radio.is-off input:disabled + span { text-decoration: line-through; text-decoration-color: var(--siled-ink-3); }
.siled-input.is-off { color: var(--siled-ink-3); border-color: var(--siled-accent); }
.siled-power__why { font-size: 12px; color: var(--siled-ink-3); }
/* the customer's own picks have no supply: plain grey text, as the line a
   greyed button's click shows in the same spot (the owner, 2026-09-27: "If
   its in the same exact spot as that text it should also be gray") */
.siled-power__blocked { margin: 0; font-size: 12px; font-weight: 400; color: var(--siled-ink-3); }

/* the Custom vector tab's upload */
.siled-upload { display: flex; flex-direction: column; gap: 8px; }
.siled-file { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; opacity: 0; }
.siled-filepick { position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; }
.siled-filepick__btn { flex: none; cursor: pointer; margin: 0; }
/* THE SAME SIZE AS THE OTHER BUTTONS (the owner, 2026-09-27: "choose file
   button is so much bigger than the other buttons. fix that"): drawn like a
   Single / Double button - grey, 13 px, 36 px tall - whatever the site's
   theme does to a label */
.siled-root .siled-filepick__btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 36px; padding: 6px 14px; box-sizing: border-box;
	font: inherit; font-size: 13px; font-weight: 500; line-height: 1.2; letter-spacing: normal; text-transform: none;
	color: var(--siled-ink); background: var(--siled-sunk); border: 1px solid transparent; box-shadow: none;
}
.siled-root .siled-filepick__btn:hover { background: #e2e2e2; color: var(--siled-ink); }
.siled-filepick__btn.is-off { opacity: .5; pointer-events: none; }
.siled-file:focus-visible + .siled-filepick__btn { outline: 2px solid var(--siled-accent); outline-offset: 2px; }
.siled-filepick__name { min-width: 0; font-size: 13px; color: var(--siled-ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.siled-file::file-selector-button {
	font: inherit; font-weight: 600; margin-right: 10px; padding: 7px 12px; cursor: pointer;
	color: #fff; background: var(--siled-ink); border: 0; border-radius: var(--siled-radius);
}
.siled-file::file-selector-button:hover { background: var(--siled-accent); }
.siled-upinfo { margin: 0; font-size: 13px; color: var(--siled-ink-2); overflow-wrap: anywhere; }
.siled-upload .siled-note { margin: 0; }

.siled-note {
	margin: -4px 0 0;
	font-size: 12px;
	color: var(--siled-ink-3);
}

.siled-output { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.siled-muted { color: var(--siled-ink-3); }
.siled-busy { font-size: 13px; color: var(--siled-ink-3); }

.siled-plate {
	margin: 0;
	padding: 10px;
	background: var(--siled-sunk);
	border: 1px solid var(--siled-rule);
	border-radius: var(--siled-radius);
	overflow-x: auto;
}
.siled-dwg { display: block; width: 100%; height: auto; }
.siled-face { fill: var(--siled-ground); stroke: var(--siled-ink); }
/* The shape sets its own fill and stroke from the properties above;
   what is left here is the hit area and the cursor. */
.siled-mod { fill: var(--siled-mod); stroke: var(--siled-mod-edge); }
/* a track the modules clip onto, and the run numbers under the runs */
.siled-track { fill: #c3c5c8; stroke: #4a4d52; }
/* a 1 in aluminum angle across the structure where two track lengths join */
.siled-angle { fill: #9a9ea3; stroke: #3d4045; }
.siled-runno { fill: var(--siled-ink-2); font-weight: 600; font-family: var(--siled-font); }
.siled-mod--halo {
	/* over a module drawn as its drawing: a warm wash and ring */
	--siled-mod-tint: rgba(240, 180, 80, 0.35);
	--siled-mod-ring: var(--siled-halo-edge);
	--siled-mod: var(--siled-halo);
	--siled-mod-edge: var(--siled-halo-edge);
	--siled-mod-lens: var(--siled-halo-lens);
}
.siled-legend { display: flex; gap: 1rem; flex-wrap: wrap; font-size: 0.85em; color: var(--siled-ink-2); margin: 0.4rem 0 0; }
.siled-legend__sw { display: inline-block; width: 0.9em; height: 0.9em; border-radius: 3px; vertical-align: -0.1em; margin-right: 0.35em; border: 1px solid var(--siled-mod-edge); background: var(--siled-mod); }
.siled-legend__sw--halo { border-color: var(--siled-halo-edge); background: var(--siled-halo); }
.siled-count { fill: var(--siled-ink-3); font-family: inherit; font-weight: 600; }

/* A letter held for us to lay out: its outline only, and "ask us" for a count. */
.siled-face--contact { fill: var(--siled-sunk); stroke: var(--siled-alert-ink); stroke-dasharray: 1 0.6; }
.siled-count--contact { fill: var(--siled-alert-ink); }
.siled-contact {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 16px;
	margin: 0;
	padding: 12px 14px;
	background: var(--siled-alert-bg);
	color: var(--siled-alert-ink);
	border-radius: var(--siled-radius);
}
.siled-contact__msg { margin: 0; flex: 1 1 260px; font-weight: 500; }
.siled-btn[disabled] { opacity: .55; cursor: not-allowed; }
a.siled-btn { text-decoration: none; display: inline-block; }

.siled-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
	gap: 1px;
	background: var(--siled-rule);
	border: 1px solid var(--siled-rule);
	border-radius: var(--siled-radius);
	overflow: hidden;
}
.siled-tile { background: var(--siled-ground); padding: 11px 12px; display: flex; flex-direction: column; gap: 2px; }
.siled-tnum { font-size: 22px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.siled-tlab { font-size: 11px; color: var(--siled-ink-3); }

.siled-advice, .siled-warn, .siled-alert {
	margin: 0;
	padding: 10px 12px;
	font-size: 13.5px;
	border-radius: var(--siled-radius);
}
.siled-advice, .siled-warn { padding: 0; font-size: 13px; color: var(--siled-ink-3); }
.siled-alert { background: var(--siled-alert-bg); color: var(--siled-alert-ink); font-weight: 500; }

/* an LED too big for the letters: said under the LED list, with a button
   for each LED that fits (layout.js tooBig / tooBigNote) */
.siled-toobig { margin: 6px 0 0; padding: 10px 12px; border-radius: var(--siled-radius);
	background: var(--siled-alert-bg); color: var(--siled-alert-ink); font-size: 13.5px; }
.siled-toobig__text { margin: 0 0 8px; font-weight: 500; }
.siled-toobig__fits { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.siled-toobig__lab { font-weight: 600; color: var(--siled-ink); }
.siled-btn--fit { padding: 6px 12px; font-size: 13px; }
.siled-pick__tag--big { color: var(--siled-alert-ink); }

.siled-bomwrap { overflow-x: auto; }
.siled-bom { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.siled-bom th, .siled-bom td { padding: 9px 8px; text-align: right; border-bottom: 1px solid var(--siled-rule); vertical-align: top; }
.siled-bom thead th { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--siled-ink-3); font-weight: 600; }
.siled-bom td:first-child, .siled-bom th:first-child { text-align: left; }
.siled-bom tbody td:first-child { display: flex; flex-direction: column; gap: 2px; }
.siled-sku { font-size: 11.5px; color: var(--siled-ink-3); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.siled-detail { font-size: 12.5px; color: var(--siled-ink-2); }
.siled-bom tfoot th, .siled-bom tfoot td { border-bottom: 0; border-top: 2px solid var(--siled-ink); font-weight: 700; }

.siled-sugg { margin-top: 10px; font-size: 13.5px; color: var(--siled-ink-2); }
.siled-sugg summary { cursor: pointer; font-weight: 600; color: var(--siled-ink); }
.siled-sugg p { display: flex; flex-direction: column; gap: 2px; margin: 8px 0 0; }
/* a tick and a quantity for each suggested extra (the owner, 2026-09-28) */
.siled-sugg__row { display: grid; grid-template-columns: auto auto 1fr; gap: 10px; align-items: start; margin: 12px 0 0; }
.siled-sugg__row input[type="checkbox"] { width: 18px; height: 18px; margin: 9px 0 0; accent-color: var(--siled-accent); cursor: pointer; }
.siled-root .siled-sugg__qty { width: calc(3ch + 16px); padding: 6px 7px; text-align: center; font-variant-numeric: tabular-nums;
	-moz-appearance: textfield; appearance: textfield; }
/* three digits and no more (the owner: "made the width fit only up to 999"): no up/down arrows */
.siled-root .siled-sugg__qty::-webkit-inner-spin-button,
.siled-root .siled-sugg__qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.siled-sugg__text { display: flex; flex-direction: column; gap: 2px; padding-top: 2px; cursor: pointer; }
.siled-sugg__text strong { color: var(--siled-ink); }
.siled-sugg__total { font-variant-numeric: tabular-nums; }
.siled-sugg__row.is-off .siled-sugg__text { opacity: .55; }

.siled-actions { display: flex; flex-wrap: wrap; gap: 8px; }
/* stale: where the cart buttons go, the line on its own row over Place LEDs */
.siled-actions--stale { align-items: center; }
.siled-actions--stale .siled-stale--cart { flex-basis: 100%; margin: 0; }
.siled-btn {
	appearance: none;
	font: inherit;
	font-weight: 600;
	padding: 10px 16px;
	border-radius: var(--siled-radius);
	border: 1px solid var(--siled-rule);
	background: var(--siled-ground);
	color: var(--siled-ink);
	cursor: pointer;
}
.siled-btn { border-color: var(--siled-ink); }
.siled-btn:hover { background: var(--siled-ink); color: #fff; }
.siled-btn[disabled]:hover { background: var(--siled-ground); color: var(--siled-ink); }
.siled-btn:focus-visible { outline: 2px solid var(--siled-accent); outline-offset: 2px; }
.siled-btn--primary { background: var(--siled-accent); border-color: var(--siled-accent); color: #fff; }
.siled-btn--primary:hover { background: var(--siled-accent-deep); border-color: var(--siled-accent-deep); color: #fff; }
.siled-btn--primary[disabled]:hover { background: var(--siled-accent); border-color: var(--siled-accent); }

@media (prefers-reduced-motion: reduce) {
	.siled-root * { transition: none !important; animation: none !important; }
}

/*
 * THE WORKBENCH (editor.js). It sits where the drawing sits, so it inherits
 * the same properties and the same dark mode; only the canvas is new.
 *
 * touch-action: none on the canvas is load-bearing - without it the browser
 * takes a one-finger drag for a page scroll and an LED can never be moved on
 * a phone.
 */
.siled-ed { margin: 0 0 14px; border: 1px solid var(--siled-rule); border-radius: var(--siled-radius); overflow: hidden; }

.siled-ed__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	padding: 8px;
	background: var(--siled-sunk);
	border-bottom: 1px solid var(--siled-rule);
}
.siled-ed__gap { width: 10px; }

.siled-ed__btn {
	appearance: none;
	font: inherit;
	font-size: 13px;
	line-height: 1.2;
	min-height: 36px;
	padding: 7px 11px;
	border: 1px solid var(--siled-rule);
	border-radius: var(--siled-radius);
	background: var(--siled-ground);
	color: var(--siled-ink);
	cursor: pointer;
}
.siled-ed__btn:hover { border-color: var(--siled-accent); }
.siled-ed__btn:focus-visible { outline: 2px solid var(--siled-accent); outline-offset: 2px; }
.siled-ed__btn[disabled] { opacity: .45; cursor: not-allowed; }
.siled-ed__btn.is-on { background: var(--siled-accent); border-color: var(--siled-accent); color: #fff; }
.siled-ed__btn--icon { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; padding: 7px 9px; }
/* A SHORT BUBBLE ON HOVER (the owner, 2026-09-27): 2-4 words (data-tip),
   under the button, over the drawing - and with the keyboard on the
   button. Drawn by the one rule set of every bubble ("A SMALL BUBBLE ON
   EVERY BUTTON", further down) since 1.6.58. */
.siled-ed__btn[data-tip] { position: relative; }

.siled-ed__stage { background: var(--siled-sunk); }
.siled-ed__stage.is-panning { cursor: grabbing; }
.siled-ed__svg {
	display: block;
	width: 100%;
	height: min(62vh, 520px);
	touch-action: none;
	-webkit-user-select: none;
	user-select: none;
	cursor: crosshair;
}
.siled-ed__svg:focus-visible { outline: 2px solid var(--siled-accent); outline-offset: -2px; }

.siled-ed__face { fill: var(--siled-ground); stroke: var(--siled-ink); }
/* a wire as stretched as it is (the owner): black, orange near the lead, red at it */
.siled-ed__wire { fill: none; stroke: #3c3f43; stroke-linejoin: round; stroke-linecap: round; }
/* darker than a warning colour, so they read without jumping out of the black */
.siled-ed__wire.is-warm { stroke: #8a5410; }
.siled-ed__wire.is-taut { stroke: #8e1b1b; }
/* the wires on the drawing and in the PDF */
.siled-wire { stroke: #111111; stroke-linejoin: round; stroke-linecap: round; opacity: .85; }
.siled-ed__wire.is-stale { opacity: .3; stroke-dasharray: .2 .2; }
.siled-ed__mod { fill: var(--siled-mod); stroke: var(--siled-mod-edge); cursor: move; }
/* a measurement on the workbench */
/* a measurement only shows: a click goes through it to the LED or wire under it */
.siled-ed__measure { pointer-events: none; }
.siled-ed__measure line { stroke: #1a5fb4; }
.siled-ed__measure.is-live line { stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; }
/* blue, as its line (the owner, 2026-09-27: "leave measurements as that blue line") */
.siled-ed__measure-t { fill: #1a5fb4; font-weight: 700; font-family: var(--siled-font); paint-order: stroke; stroke: #ffffff; stroke-width: 0.35em; }
/* the note beside a clicked red dot */
.siled-tip { position: fixed; z-index: 100000; background: #111111; color: #ffffff; font: 13px/1.4 var(--siled-font, system-ui, sans-serif);
	padding: 8px 10px; border-radius: 6px; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); pointer-events: auto; }
.siled-tip[hidden] { display: none; }
/* the Guide: a quiet help control in the ink of the tabs - a "?" in a ring
   and the word - with the page's own radius, hover ground and focus ring */
.siled-guide-btn {
	appearance: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 32px;
	padding: 6px 8px;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	color: var(--siled-ink-2);
	background: none;
	border: 0;
	border-radius: var(--siled-radius);
	cursor: pointer;
}
.siled-guide-btn__q {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border: 1.5px solid currentColor;
	border-radius: 50%;
	font-size: 11px;
	font-weight: 700;
}
.siled-guide-btn:hover { color: var(--siled-ink); background: var(--siled-sunk); }
.siled-guide-btn:focus-visible { outline: 2px solid var(--siled-accent); outline-offset: 2px; }
.siled-guide { position: fixed; inset: 0; z-index: 99999; background: rgba(17, 17, 17, .45); display: flex; align-items: flex-start;
	justify-content: center; padding: 4vh 16px; overflow-y: auto; }
.siled-guide__box { background: #ffffff; color: #111111; max-width: 720px; width: 100%; border-radius: 10px; padding: 18px 22px 22px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .3); font: 14px/1.5 var(--siled-font, system-ui, sans-serif); }
.siled-guide__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 2px solid var(--siled-accent);
	padding-bottom: 8px; margin-bottom: 6px; }
.siled-guide__top h2 { margin: 0; font-size: 1.25em; }
.siled-guide__x { font-size: 1.6em; line-height: 1; background: none; border: 0; cursor: pointer; color: #111111; padding: 0 4px; }
.siled-guide__sec h3 { font-size: 1em; margin: 14px 0 6px; color: var(--siled-accent); text-transform: uppercase; letter-spacing: .04em; }
.siled-guide__sec ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.siled-guide__item { display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: start; }
.siled-guide__sw { display: inline-block; width: 18px; height: 12px; margin-top: 4px; border-radius: 2px; }
.siled-guide__sw--none { visibility: hidden; }
/* the first LED of each run, where its power lead connects: outlined in red */
.siled-mod--feed { --siled-mod-ring: var(--siled-accent); --siled-mod-ring-w: 1.8px; cursor: pointer; }
.siled-ed__mod.is-feed { --siled-mod-ring: var(--siled-accent); --siled-mod-ring-w: 1.8px; }
/* an edge-lit cabinet's sides to light */
.siled-sides { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
.siled-sides__one { display: inline-flex; align-items: center; gap: 2px; font-size: 0.92em; white-space: nowrap; cursor: pointer; }
.siled-sides .siled-link { background: none; border: 0; padding: 0; color: var(--siled-accent); text-decoration: underline; cursor: pointer; font: inherit; font-size: 0.92em; }
/* the box dragged round LEDs to pick them all up */
.siled-ed__box { fill: rgba(209, 4, 4, 0.08); stroke: var(--siled-accent); stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; }
.siled-ed__mod.is-picked { --siled-mod-ring-w: 2px; --siled-mod-edge: var(--siled-accent); stroke: var(--siled-accent); --siled-mod-ring: var(--siled-accent); --siled-mod-tint: rgba(209, 4, 4, 0.12); }
/* the rest of the line in the hand - what Line - LED / + LED changes */
.siled-ed__mod.is-line { --siled-mod: #fde2e2; --siled-mod-edge: #111111; stroke: #111111; --siled-mod-ring: #111111; --siled-mod-tint: rgba(209, 4, 4, 0.1); }
.siled-ed__grp { display: inline-flex; align-items: center; gap: 4px; padding: 0 4px 0 8px;
	border-left: 1px solid var(--siled-rule); margin-left: 4px; }
.siled-ed__lab { font-size: 0.85em; font-weight: 600; color: var(--siled-ink-2); margin-right: 2px; }
.siled-ed__mod.is-out {
	--siled-mod-tint: rgba(209, 4, 4, 0.35);
	--siled-mod-ring: var(--siled-alert-ink);
	--siled-mod: var(--siled-alert-bg);
	--siled-mod-lens: var(--siled-alert-ink);
	--siled-mod-edge: var(--siled-alert-ink);
	fill: var(--siled-alert-bg); stroke: var(--siled-alert-ink);
}
/* the handle's arm starts at the LED's centre: it must not take the press
   meant for the LED (a picked LED dragged again panned the drawing) */
.siled-ed__arm { stroke: var(--siled-accent); pointer-events: none; }
.siled-ed__knob { fill: var(--siled-ground); stroke: var(--siled-accent); cursor: alias; }
/* a fault's ring is drawn over the LEDs it is about: it only shows, so the
   LED under it can still be picked up and moved off the fault */
.siled-ed__mark { fill: none; stroke: var(--siled-alert-ink); stroke-dasharray: .35 .25; pointer-events: none; }

.siled-ed__status {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	padding: 8px 10px;
	font-size: 13px;
	color: var(--siled-ink-2);
	border-top: 1px solid var(--siled-rule);
	background: var(--siled-sunk);
}
.siled-ed__busy { color: var(--siled-ink-3); }
.siled-ed__bad { color: var(--siled-alert-ink); }
.siled-ed__good { color: var(--siled-accent); }
.siled-ed__help { margin: 8px 10px 10px; font-size: 12.5px; color: var(--siled-ink-3); }
.siled-ed__help:empty { display: none; }
.siled-ed__count { color: var(--siled-ink); font-weight: 700; }

@media (max-width: 640px) {
	.siled-ed__svg { height: min(56vh, 420px); }
	.siled-ed__help { font-size: 12px; }
}

/* The owner's folded-away copy of every disclosure the engine wrote. A
   customer is not served it at all (Layout_Service adds `owner` to an
   administrator's response alone), so this only ever styles his own reading.
   Built like .siled-sugg above, the page's other <details>: quiet text on the
   sunk ground, NOT .siled-warn - eleven amber boxes behind a toggle is the
   same wall, folded. */
.siled-details { margin-top: 10px; font-size: 13.5px; color: var(--siled-ink-2); }
.siled-details > summary { cursor: pointer; font-weight: 600; color: var(--siled-ink-3); }
/* .siled-note already is that; only its negative top margin - it sits under a
   field there - and its accent rule are wrong for a list of them. */
.siled-note--full { margin: 8px 0 0; }

/*
 * SEGMENTED BUTTON GROUPS (the owner, 2026-09-24, of the power choices: "I
 * dont like how this looks. I prefer something like this" - a picture of rows
 * with a short label on the left and the options side by side as equal-width
 * buttons, the one picked filled). Every choice of a few options on the page
 * is one (App.seg): the options in the page's quiet grey, the one picked in
 * the site's red with white bold text, a greyed one struck through. In our
 * light theme, not the picture's dark one.
 */
.siled-seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; min-width: 0; }
.siled-seg__b {
	appearance: none;
	font: inherit;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.2;
	min-height: 36px;
	padding: 6px 6px;
	border: 1px solid transparent;
	border-radius: 4px;
	background: var(--siled-sunk);
	color: var(--siled-ink);
	cursor: pointer;
	text-align: center;
	overflow-wrap: anywhere;
}
.siled-seg__b:hover { background: #e2e2e2; }
.siled-seg__b.is-on { background: var(--siled-accent); color: #ffffff; font-weight: 700; cursor: default; }
.siled-seg__b:focus-visible { outline: 2px solid var(--siled-ink); outline-offset: 2px; }
.siled-seg__b.is-off { background: var(--siled-sunk); color: #8a8a8a; cursor: not-allowed; text-decoration: line-through; text-decoration-color: #b5b5b5; }
.siled-seg__b.is-off:hover { background: var(--siled-sunk); }
/* the customer's own pick, kept though no supply meets it: still picked, marked */
.siled-seg__b.is-warn { background: var(--siled-accent-deep); outline: 2px dashed var(--siled-accent-deep); outline-offset: 2px; }
/* a row: its label on the left, the group on the right - above it where the
   column is narrow (a phone, or the settings column at its narrowest) */
.siled-segrow { display: grid; grid-template-columns: minmax(0, 1fr); gap: 5px 10px; align-items: center; }
.siled-segrow__lab { font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--siled-ink-2); }
.siled-segrow__hint { grid-column: 1 / -1; }
.siled-controls { container-type: inline-size; }
/* label beside the group on a screen wider than a phone, where the column
   has room; on a phone, the label above and the group the full width */
@media (min-width: 560px) {
	@container (min-width: 300px) {
		.siled-segrow { grid-template-columns: 88px minmax(0, 1fr); }
	}
}
/* the settings column a little wider on a wide page, for a label and three buttons */
@container (min-width: 960px) {
	.siled-cols { grid-template-columns: 340px minmax(0, 1fr); }
}
/* the power choices: the rows of the owner's picture, no paragraph of help,
   IN A BOX OF THEIR OWN (the owner, 2026-09-27: the heading "doesnt fit in
   well, it should be in a box or something"): the heading its title bar, the
   LED's voltage a tag in it. The legend floats, so it sits inside the box's
   border as the box's first row, not cut into its top line. */
.siled-root fieldset.siled-power { gap: 10px; border: 1px solid var(--siled-rule); border-radius: var(--siled-radius);
	padding: 0 0 10px; margin: 0; background: var(--siled-ground); }
/* THE TITLE BAR THE BOX'S FULL WIDTH on any theme (the owner, 2026-09-27:
   "the gray part of the power supplies thing is glitched" - his theme held
   a legend to 100%, so one widened past the box's padding stopped short): the
   box has no side padding, the bar is exactly its width, and the rows keep
   their own margins */
.siled-root .siled-power > legend.siled-power__head { float: left; box-sizing: border-box; width: 100%; max-width: none; margin: 0 0 2px;
	padding: 9px 10px; border-top: 0; border-left: 0; border-right: 0; line-height: 1.3; font-size: inherit; color: inherit; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px;
	background: var(--siled-sunk); border-bottom: 1px solid var(--siled-rule);
	border-radius: var(--siled-radius) var(--siled-radius) 0 0; }
.siled-power__title { font-size: 14px; font-weight: 700; color: var(--siled-ink); }
.siled-power__volts { font-size: 12px; font-weight: 400; color: var(--siled-ink-2); background: var(--siled-ground);
	border: 1px solid var(--siled-rule); border-radius: 999px; padding: 2px 9px; }
/* the voltage in bold (the owner, 2026-09-27: "put the 12v or 24v in bold") */
.siled-power__volts strong { font-weight: 700; color: var(--siled-ink); }
.siled-power .siled-segrow { gap: 4px 10px; }
.siled-power > :not(.siled-power__head) { margin-left: 10px; margin-right: 10px; }
/* room for three buttons beside the label inside the box: a bold "Minimum"
   picked broke in two ("Minimu m") - the buttons a little wider, and a word
   never split */
.siled-power .siled-seg__b { padding-left: 3px; padding-right: 3px; overflow-wrap: normal; }
@media (min-width: 560px) {
	@container (min-width: 300px) {
		.siled-power .siled-segrow { grid-template-columns: 84px minmax(0, 1fr); column-gap: 8px; }
	}
}
.siled-power__notes { display: flex; flex-direction: column; gap: 4px; }
.siled-power__notes:empty { display: none; }
/* what a greyed power choice's click says (layout.js powerChoices say): plain
   grey text, as the notes (the owner, 2026-09-27: "leave it as just grey text") */
.siled-power__said { margin: 0; font-size: 12px; color: var(--siled-ink-3); }
.siled-power__said:empty { display: none; }
/* Units in the header bar: the two options as wide as their words */
.siled-units .siled-seg { grid-auto-columns: auto; }
.siled-units .siled-seg__b { min-height: 30px; padding: 4px 10px; font-size: 12.5px; }
/* the Face / Halo switches over a drawing */
.siled-segrow--bench { margin-bottom: 8px; max-width: 460px; }

/* THE WORKBENCH'S WIRES YOU CAN POINT AT (the owner, 2026-09-24: "right click
   on the wire and select cut wire"): a wide clear line over each wire takes
   the click, the right-click and the long press */
.siled-ed__whit { fill: none; stroke: transparent; pointer-events: stroke; cursor: pointer; }
/* a wire the server flagged - past its lead, over an LED, out of the letter:
   kept, never cut, and drawn red until it is fixed */
.siled-ed__wire.is-flag { stroke: var(--siled-accent); }
.siled-ed__wire.is-sel { stroke: var(--siled-accent); }
/* connecting: the string ends that can take the wire */
.siled-ed__mod.is-target { --siled-mod-ring: #a86d12; --siled-mod-tint: rgba(240, 180, 80, 0.35); stroke: #a86d12; }
.siled-ed__svg { -webkit-touch-callout: none; }

/* THE RIGHT-CLICK MENU and the "Start again?" question: on the page's body,
   outside .siled-root, so the page's own values are set on them here */
.siled-ed__menu,
.siled-ed__veil {
	--siled-ink: #111111;
	--siled-ink-2: #424242;
	--siled-ink-3: #757575;
	--siled-ground: #ffffff;
	--siled-sunk: #f5f5f5;
	--siled-rule: #f5f5f5;
	--siled-accent: #d10404;
	--siled-accent-deep: #b12028;
	--siled-radius: 6px;
	--siled-font: Montserrat, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-family: var(--siled-font);
	box-sizing: border-box;
}
.siled-ed__menu *, .siled-ed__veil * { box-sizing: border-box; }
.siled-ed__menu {
	position: fixed;
	z-index: 100001;
	min-width: 210px;
	max-width: min(320px, calc(100vw - 16px));
	padding: 4px;
	background: var(--siled-ground);
	color: var(--siled-ink);
	border: 1px solid var(--siled-rule);
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
	font-size: 14px;
	line-height: 1.35;
}
.siled-ed__menu-i {
	appearance: none;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	width: 100%;
	min-height: 40px;
	padding: 9px 12px;
	border: 0;
	border-radius: 6px;
	background: none;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}
.siled-ed__menu-i:hover, .siled-ed__menu-i:focus { background: var(--siled-sunk); outline: none; }
.siled-ed__menu-i:focus-visible { box-shadow: inset 3px 0 0 var(--siled-accent); }
.siled-ed__menu-i[aria-disabled="true"] { color: #8a8a8a; cursor: not-allowed; }
.siled-ed__menu-why { font-size: 12px; color: var(--siled-ink-3); margin-top: 2px; }
.siled-ed__menu-note { margin: 4px 4px 6px; padding: 7px 9px; font-size: 12.5px; color: var(--siled-accent-deep); background: #fdecec; border-radius: 6px; }
.siled-ed__veil {
	position: fixed;
	inset: 0;
	z-index: 100002;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(17, 17, 17, .45);
}
.siled-ed__dialog {
	width: 100%;
	max-width: 420px;
	padding: 20px 22px;
	background: var(--siled-ground);
	color: var(--siled-ink);
	border-radius: 10px;
	box-shadow: 0 12px 36px rgba(0, 0, 0, .25);
}
.siled-ed__dialog-t { margin: 0 0 8px; font-size: 18px; line-height: 1.3; }
.siled-ed__dialog-d { margin: 0 0 18px; font-size: 14px; line-height: 1.5; color: var(--siled-ink-2); }
.siled-ed__dialog-b { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.siled-ed__btn--danger { background: var(--siled-accent); border-color: var(--siled-accent); color: #ffffff; font-weight: 700; }
.siled-ed__btn--danger:hover { background: var(--siled-accent-deep); border-color: var(--siled-accent-deep); }
/* the Guide's strip of the workbench's buttons (a quick start, as Tetra's) */
.siled-guide__tools { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 10px; }
.siled-guide__tool { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; min-height: 30px; padding: 4px 8px;
	border: 1px solid var(--siled-rule); border-radius: var(--siled-radius); background: var(--siled-ground); color: var(--siled-ink); font-size: 12px; }
/* the workbench before any layout (layout.js emptyBench): an empty drawing, what to do in it */
.siled-ed__stage--empty { display: flex; align-items: center; justify-content: center; height: min(62vh, 520px); }
.siled-ed__emptymsg { margin: 0 16px; max-width: 380px; text-align: center; font-size: 14px; color: var(--siled-ink-3); }
/* FULL SCREEN (the owner, 2026-09-27): the whole tool on the page's ground, scrolling */
.siled-root:fullscreen { background: #ffffff; overflow: auto; padding: 16px 20px; }
.siled-root:-webkit-full-screen { background: #ffffff; overflow: auto; padding: 16px 20px; }
.siled-root::backdrop { background: #ffffff; }
/* LESS ROUNDED BUTTONS (the owner, 2026-09-27: "make all the buttons less rounded") -
   every button on the page, the workbench, its dialogs and the Guide */
.siled-root .siled-btn, .siled-root .siled-seg__b, .siled-root .siled-ed__btn,
.siled-root .siled-filepick__btn, .siled-ed__dialog .siled-ed__btn, .siled-guide .siled-guide__tool { border-radius: 3px; }
/* channel letters on the workbench: each letter's LED count under it, their height down the left (editor.js drawLetterMarks) */
.siled-ed__lmarks { pointer-events: none; }
.siled-ed__count-t { fill: var(--siled-ink); font-family: var(--siled-font); font-weight: 600; }
.siled-ed__count-t.is-bad { fill: var(--siled-alert-ink); }
.siled-ed__height { stroke: var(--siled-ink-3); }
.siled-ed__height-t { fill: var(--siled-ink-2); font-family: var(--siled-font); font-weight: 600; paint-order: stroke; stroke: var(--siled-sunk); stroke-width: 0.5em; }

/* THE LIT SIDES A PICK MEANS, flashed red on the drawing for two slow pulses
   (the owner, 2026-09-27: "highlight the part of the box its talking about in
   red kind of in a slow flashing way for a seconds or two"; layout.js flashSides) */
.siled-flash { fill: none; stroke: #d10404; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; animation: siled-flash .9s ease-in-out 2; }
@keyframes siled-flash { 0%, 100% { opacity: .15; } 50% { opacity: 1; } }
.siled-flashsketch { display: block; width: 100%; max-height: 180px; margin: 0 auto 10px; }
.siled-flashsketch .siled-face { fill: #ffffff; stroke: #333333; }

/* (THE FIRST AND THE LAST BUTTON'S BUBBLE - the owner, 2026-09-27: "the
   text is cut off here at undo" - had rules of their own here; every
   bubble is kept inside the window by one helper since 1.6.58) */
/* WHITE SPACE UNDER THE TOOL, before the site's footer (the owner, the same
   day: "there still isnt white space under the plugin thing") */
.siled-root { padding-bottom: 64px; }
/* A BORDER ROUND THE WHOLE TOOL (the owner, 2026-09-29: "Add a borer around
   the entire software that is the same width as this red marked rectangle"
   - the 32 px between the settings and the workbench - "Border should also
   help move the plugins menu away from the actual website menu" and "the
   border should be the same gray color use for the metric button"): 32 px of
   the buttons' grey, white inside it, and the white space under the tool
   outside it. None on a phone, or in full screen.
   NO WHITE OUTSIDE THE BORDER (the owner, 2026-09-28, on the live page:
   "How do we remove these white areas"): the grey border now meets the
   site's menu and footer directly - it does the separating the white space
   used to do. A phone has no border, so it keeps its white space below. */
.siled-root { border: 32px solid var(--siled-sunk); padding: 20px 24px 28px; margin: 0; box-sizing: border-box; }
/* narrower on a tablet (the owner, 2026-09-29: "on tablet make the gray less wied") */
@media (min-width: 641px) and (max-width: 1024px) {
	.siled-root { border-width: 16px; padding: 16px 18px 24px; }
}
/* BREATHING ROOM ON A PHONE (the owner, 2026-09-28: "On mobile everything is
   so close and stuck to the edges except the power supply section. Give it
   some breathing room like the buttons are from the edge for the power supply
   section"): the whole tool kept 14 px in from each edge of a narrow screen,
   about where the power box keeps its buttons. Not in full screen, which has
   its own. */
@media (max-width: 640px) {
	/* no grey border on a phone (the owner, 2026-09-29: "No need for the gray on mobile").
	   ROOM ABOVE THE FIRST ROW all the same (the owner, 2026-10-05, of his phone: "on mobile
	   there should be more space above the tool so it's not so close to the search bar"):
	   the border had been all the room the tool kept from the site's header, and the page
	   gives none - the units' row stood right under the search box. 18 px, the gap the tool
	   keeps between that row and its tabs. Full screen keeps its own (the stronger rule). */
	.siled-root { padding-left: 14px; padding-right: 14px; box-sizing: border-box; border: 0; padding-top: 18px; margin-top: 0; margin-bottom: 64px; }
	.siled-root:fullscreen, .siled-root:-webkit-full-screen { padding-left: 0; padding-right: 0; }
}
.siled-root:fullscreen { padding-bottom: 0; border: 0; margin: 0; }
.siled-root:-webkit-full-screen { padding-bottom: 0; border: 0; margin: 0; }
.siled-stock { display: block; margin-top: 2px; font-size: 12px; font-weight: 600; color: var(--siled-alert-ink); }

/* A SMALL BUBBLE ON EVERY BUTTON (the owner, 2026-09-27: "Make it so there is
   a small description for every button that can be pressed to help clarify
   things to people"): data-tip, under the button.
   ONE RULE SET FOR EVERY BUBBLE, AND EVERY BUBBLE INSIDE THE WINDOW (the
   owner, 2026-10-05, of his phone - the bubble under "Left & right" ran out
   of the screen: "Check for all bubbles on led layout tool to see if they
   can get cut off like this one and fix it"). WHEN one shows is as it was:
   the pointer on its button (a tap, on a touch screen), or the keyboard on
   a workbench button; none while Help Text is off. WHERE: the page works
   out a place for it (layout.js tipPlace) and hands it over on the button
   (--siled-tip-x / -y / -w, the arrow's -ax / -ay, data-tip-at "down" or
   "up"); it is then drawn FIXED there - moved sideways just as far as the
   window asks, no wider than the window, above its button where there is
   no room under it, its arrow on its own button, and out of every parent
   that hides what runs over (the phone's strip of tabs, the workbench's
   frame, the list of LEDs). A button the page has not placed shows its
   bubble under its middle, as every bubble did. The rules that moved one
   button's bubble or another's (the Guide, Help Text, the run bar's and
   the workbench bar's first and last) are gone: one way for all. */
.siled-root [data-tip] { position: relative; }
.siled-root [data-tip]:hover::after,
.siled-root .siled-ed__btn[data-tip]:focus-visible::after {
	content: attr(data-tip); position: absolute; z-index: 60; left: 50%; top: calc(100% + 7px); transform: translateX(-50%);
	box-sizing: border-box; width: max-content; max-width: 230px; padding: 5px 9px; border-radius: 6px; background: #222222; color: #ffffff;
	font: 500 12px/1.35 var(--siled-font, system-ui, sans-serif); text-align: center; white-space: normal; overflow-wrap: anywhere;
	letter-spacing: normal; text-transform: none; text-decoration: none; pointer-events: none; box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}
.siled-root [data-tip]:hover::before,
.siled-root .siled-ed__btn[data-tip]:focus-visible::before {
	content: ''; position: absolute; z-index: 60; left: 50%; top: calc(100% + 2px); transform: translateX(-50%);
	width: 0; height: 0; border: 5px solid transparent; border-top: 0; border-bottom-color: #222222; pointer-events: none;
}
/* (a greyed button is drawn faded, and its bubble with it, as one piece:
   while the pointer is on it that piece is lifted over the buttons that
   come after it, which were drawn over its bubble - on a phone the
   workbench's buttons stand in rows, and the bubble hangs over the next) */
.siled-root [data-tip]:disabled:hover { z-index: 61; }
.siled-root [data-tip][data-tip-at]:hover::after,
.siled-root .siled-ed__btn[data-tip][data-tip-at]:focus-visible::after {
	position: fixed; z-index: 100000; left: var(--siled-tip-x); top: var(--siled-tip-y); transform: none; max-width: var(--siled-tip-w, 230px);
}
.siled-root [data-tip][data-tip-at]:hover::before,
.siled-root .siled-ed__btn[data-tip][data-tip-at]:focus-visible::before {
	position: fixed; z-index: 100000; left: var(--siled-tip-ax); top: var(--siled-tip-ay); transform: none;
}
.siled-root [data-tip][data-tip-at="up"]:hover::before,
.siled-root .siled-ed__btn[data-tip][data-tip-at="up"]:focus-visible::before { border-top: 5px solid #222222; border-bottom: 0; }
/* the box the page measures a bubble's words in (layout.js tipProbe): the
   bubble's own padding and type, never seen */
.siled-tip-probe { position: fixed; left: 0; top: 0; z-index: -1; visibility: hidden; pointer-events: none; box-sizing: border-box;
	width: max-content; max-width: 230px; padding: 5px 9px; font: 500 12px/1.35 system-ui, sans-serif; text-align: center;
	white-space: normal; overflow-wrap: anywhere; letter-spacing: normal; text-transform: none; }
/* ITS LAST BUTTON (PDF) opens its bubble towards the settings, and the bar
   sits over the workbench beside it (the owner, 2026-09-29: "the bubble for
   the pdf button gets hidden under the canvas") */
/* one step over the workbench beside it, and under every bubble (z-index 60): the tabs'
   bubbles over it show whole (the owner, 2026-09-29) */
.siled-runbox { position: relative; z-index: 1; }

/* THE HELP BUBBLES SWITCH, beside the Guide (layout.js tipsOff: this page
   alone, nothing stored) - off, no bubble shows anywhere in the tool */
.siled-head > .siled-helpbar { grid-area: guide; display: flex; align-items: center; gap: 2px; }
.siled-tipsw {
	appearance: none; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 6px 8px;
	font: inherit; font-size: 13px; font-weight: 600; line-height: 1; white-space: nowrap; color: var(--siled-ink-2);
	background: none; border: 0; cursor: pointer;
}
.siled-tipsw:focus-visible { outline: 2px solid var(--siled-accent); outline-offset: 2px; }
.siled-tipsw__track { position: relative; flex: none; width: 28px; height: 16px; border-radius: 8px; background: #c4c4c4; transition: background .15s; }
.siled-tipsw__knob { position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #ffffff; transition: left .15s; }
.siled-tipsw.is-on .siled-tipsw__track { background: var(--siled-accent); }
.siled-tipsw.is-on .siled-tipsw__knob { left: 14px; }
.siled-root.siled-notips [data-tip]:hover::after, .siled-root.siled-notips [data-tip]:hover::before,
.siled-root.siled-notips [data-tip]:focus-visible::after, .siled-root.siled-notips [data-tip]:focus-visible::before { display: none; }
@container (max-width: 479px) {
	.siled-tipsw__t { display: none; }
}

/* a file dragged over the Custom vector artwork area (renderOutput) */
.siled-output.is-drop { outline: 2px dashed var(--siled-accent); outline-offset: 4px; border-radius: var(--siled-radius); background: rgba(204, 0, 0, 0.03); }

/* THE POWER WIRING (layout.js feedGeometry; the owner, 2026-09-30, his
   WRONG WAY / BEST WAY sheets): the wires added so the long chains get
   power at both ends, where they leave each letter, and a grey box for each
   power supply, numbered in sign order, with a lead from each exit.
   GREY, AND AT THE BACK (the owner, 2026-09-30: "make the wire that comes
   from the LEDs be a gray slightly darker. have the wires always show
   forthest back behind all the other elements"): a medium grey - a little
   darker than the supplies' boxes, lighter than the LEDs' own wires - with
   a slightly darker edge, so two wires crossing read as crossing; no red,
   so it never reads as a picked wire (solid thick red) or a flagged one
   (red dashes). Drawn over the letters' faces and under the LEDs' own
   wires, the LEDs and every label; only the exits' rings and the boxes are
   on top. A dot (--siled-feed-dot) is where wires are twisted together: a
   splice. It takes no press but a box's, so dragging LEDs and panning are
   as before.
   THINNER AND A LIGHTER GREY (the owner, 2026-10-05, of 1.6.56: "the wires
   are too thick and too dark gray"): a light grey with a slightly darker
   edge - about as light as the supplies' boxes, well lighter than the
   LEDs' own black wires, still plain on the white faces and the grey
   ground - on lines a little over half as wide as they were (layout.js
   FEED_W). It was #7f8286 edged #606367, its dots #424242. The page, the
   workbench (editor.js has the same values for where this sheet is not
   loaded) and the PDF (layout.js FEED_INK) alike: change them together.
   OFF UNTIL IT IS TURNED ON (the owner, the same day: "I want wire diagram
   toggle to be off by default"): all of it shows only while the root has
   .siled-feedon, which the workbench's "Wire diagram" button sets, for
   this visit only (layout.js setFeed). Without it the LEDs, their own
   wires and the Class 2 line are all there is.
   GREEN, AND A BIT CURVED (the owner, 2026-10-05, of 1.6.57: "have them be
   a bit curved like the ones between the leds. Also make them green so its
   easy to spot them and where they are connected"): the wires one clear
   green with a darker green edge - it was the light grey #b4b7bb edged
   #96999e - and with them every point where they connect: the dots where
   wires are twisted together (a darker green; they were #55585c), the
   exits' rings (edged in the ink before) and the dots where the leads meet
   the supplies' boxes (ticks in the ink before). Still no red, and nothing
   like the LEDs' own wires, which stay black (orange or dark red when too
   long). The curves are layout.js's (feedDrawn). Page, workbench
   (editor.js) and PDF (FEED_INK) alike: change them together. */
.siled-root,
.siled-guide {
	--siled-feed: #1faa52;
	--siled-feed-case: #15803d;
	--siled-feed-dot: #116b32;
	--siled-psu: #a7a9ac;
	--siled-psu-edge: #424242;
	--siled-psu-ink: #111111;
}
.siled-root:not(.siled-feedon) .siled-feed { display: none; }
/* a letter's (a cabinet's) own line, drawn again over the added wires */
.siled-face.siled-face--edge,
.siled-ed__face.siled-ed__face--edge { fill: none; pointer-events: none; }
.siled-feed,
.siled-feed * { pointer-events: none; }
.siled-feed .siled-psu__hit { pointer-events: all; cursor: pointer; fill: transparent; stroke: none; }
.siled-feed .siled-psu__hit:focus { outline: none; }
.siled-feed .siled-psu__hit:focus-visible { fill: rgba(209, 4, 4, 0.12); }
.siled-feed__case { fill: none; stroke: var(--siled-feed-case); stroke-linecap: round; stroke-linejoin: round; }
.siled-feed__core { fill: none; stroke: var(--siled-feed); stroke-linecap: round; stroke-linejoin: round; }
/* a one-row letter's return, thinner and fainter: it is not a second chain */
.siled-feed__ret.is-thin { opacity: 0.7; }
/* where wires are twisted together: an added wire on an LED wire (a tap),
   two chain ends and the wire that feeds them (a splice) */
.siled-feed__tap,
.siled-feed__splice { fill: var(--siled-feed-dot); }
.siled-feed__ring { fill: #ffffff; stroke: var(--siled-feed-case); }
.siled-feed__dot { fill: var(--siled-feed); }
/* ... and an exit whose lead is spliced on there: its centre the splice's dot */
.siled-feed__exit.is-splice .siled-feed__dot { fill: var(--siled-feed-dot); }
.siled-feed__tag { fill: var(--siled-ink); font-family: var(--siled-font); font-weight: 700;
	paint-order: stroke; stroke: #ffffff; stroke-width: 0.3em; stroke-linejoin: round; }
/* a letter waiting for its new wiring (an edit renumbered its LEDs): its
   lead pale and dashed all the way, from its foot (a pale green since
   1.6.58; it was the pale grey #e5e6e8 round #d2d4d7) */
.siled-feed__lead.is-stale .siled-feed__case { stroke: #dcefe2; }
.siled-feed__lead.is-stale .siled-feed__core { stroke: #b9dcc5; }
.siled-psu__box { fill: var(--siled-psu); stroke: var(--siled-psu-edge); }
/* where a lead meets its supply's box: a dot of the wires' green */
.siled-psu__port { fill: var(--siled-feed-dot); }
.siled-psu__name { fill: var(--siled-psu-ink); font-family: var(--siled-font); font-weight: 700; }
.siled-psu__sub { fill: var(--siled-psu-ink); font-family: var(--siled-font); font-weight: 400; }
/* compact (many supplies, or a narrow screen): "#n" alone; a tap says the rest */
.siled-psu.is-compact .siled-psu__name { font-weight: 700; }
/* a supply of side 2 of a double-sided cabinet (the owner, 2026-09-30:
   "each side should go on its own power supply"): that side is not drawn,
   so its box is paler, its edge broken (layout.js sets the dashes), and no
   lead comes to it */
.siled-psu.is-side2 .siled-psu__box { fill: #dcdddf; }
/* a box tapped: its wires heavier (layout.js sets the width) and edged in
   the ink, its LEDs tinted, until the next press */
.siled-feed .is-hot .siled-feed__case { stroke: var(--siled-ink); }
.siled-feed .is-hot .siled-feed__core { stroke: var(--siled-feed); }
.siled-feed__ret.is-thin.is-hot { opacity: 1; }
.siled-feed__tap.is-hot,
.siled-feed__splice.is-hot { fill: var(--siled-ink); }
.siled-mod.is-psu,
.siled-ed__mod.is-psu { --siled-mod: #fde2e2; --siled-mod-tint: rgba(209, 4, 4, 0.18); }
/* while the workbench waits for an edit's answer, the wiring shown is the last one */
.siled-feed.is-waiting { opacity: 0.45; }
/* the legend's swatch: a short line of the wires' green, as thin as they
   are; and the exit's mark in its words, in that green */
.siled-legend__sw--wire { width: 1.4em; height: 2px; border: 0; border-radius: 1px; vertical-align: 0.3em;
	background: var(--siled-feed-case); }
.siled-legend__ring { color: var(--siled-feed-case); }
.siled-legend--class2 { color: var(--siled-ink); }
/* NO SWITCH OVER THE DRAWING (the owner, 2026-10-05: "i dont like how you
   currently have the wire diagram located. I want it as a box next to start
   again and before the full screen thing"): "Wire diagram" is a button of
   the workbench's toolbar, after Start again (editor.js chrome), with the
   toolbar's own pressed look (.siled-ed__btn.is-on). The Face / Halo row is
   alone over the workbench again, as before 1.6.55. */

/* An LED's tags in the list, on one line; "Edge lit" a plain grey one beside "Recommended" (the owner, 2026-10-07:
   edge lit is an LED on the list, not a third kind of cabinet) */
.siled-pick__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.siled-pick__tag--kind { color: #111111; background: #ffffff; border: 1px solid #111111; padding: 1px 7px; }
