/* ReInk: from designer-preview/css/facelift.css @ 827d893 (oldDesigner-redesign). Everything below this line is that file,
   unchanged. When the prototype changes it, carry the change across: docs/syncing.md. */
/*
	designer-preview/css/facelift.css

	A style-only facelift layer for the customer Designer, in the manner of a modern online design editor:
	a light grey workspace and rail around white panels, one ink colour for icons and labels,
	thin line icons on a 24 grid, rounded tiles for hover / pressed / selected, almost no
	borders and very faint shadows, all in Sterling red rgb(234 0 41), near-black and white.

	This file is loaded LAST (after cdn/toastr.min.css in index.html) and only overrides
	colours, borders, shadows, backgrounds and icon images. The production files
	(cdn/, vendor/, js/, mock/, css/preview.css, site.app.css, newsite.css) are untouched,
	and the engine (SMPdesigner.js) sees exactly the same DOM ids, classes and geometry.

	Rules this file keeps (see the facelift spec, sections 3 and 4):
	  - nothing moves or resizes: no position / float / display / flex / margin / width /
	    height / font-* / letter-spacing / text-transform / line-height / transform on page
	    elements. The only exceptions are the out-of-flow logo <img>, the two pseudo-element
	    tiles, layout-neutral position:relative on three containers, and border/padding pairs
	    on fixed-size controls whose per-side sums are kept equal;
	  - click areas never change: no control, modal or toast gets a larger border-radius than
	    the baseline (browsers hit-test against the rounded box). Rounded tiles, rings and field
	    borders are PAINTED with a 9-slice border-image (section 1b), which neither takes layout
	    nor affects hit-testing; its white corner pieces hide the square tile corners;
	  - typography changes colour only;
	  - every selected / pushed / checked look is driven by the same class or state as before
	    (.selectedLabel, .pushedButton, :checked + label, .ui-tabs-active);
	  - red means "on" (pushed, checked, active, primary); keyboard focus is an ink ring;
	  - no rest or hover tile paints outside its own hit box (focus-visible rings excepted);
	  - the canvases and rulers are never styled (the only filter is on #canvasBackground).
*/

/* ===== 1. Tokens ===== */
:root {
  /* brand */
  --sm-red: rgb(234 0 41);             /* #EA0029 primary fill, active glyph, pushed ring */
  --sm-red-hover: rgb(207 0 36);       /* hover on red fills */
  --sm-red-press: rgb(176 0 31);       /* pressed red fill; red text on --sm-red-tint-strong */
  --sm-red-text: rgb(207 0 36);        /* red TEXT on white (5.71) and on tint (5.00) */
  --sm-red-tint: rgb(253 236 238);     /* selected / pushed / active-tab tile */
  --sm-red-tint-strong: rgb(250 214 220); /* hover on a pushed tile, disclaimer error */
  --sm-on-red: rgb(255 255 255);
  /* ink */
  --sm-ink: rgb(4 0 0);                /* logo black: headings, product name, active rail label, focus ring */
  --sm-ink-2: rgb(31 28 28);           /* body/field text; stroke baked into icon files (#1F1C1C) */
  --sm-ink-3: rgb(84 87 92);           /* captions, control labels, help text; caption fill in icons (#54575C) */
  --sm-ink-4: rgb(110 113 119);        /* hints, placeholders, white surfaces only */
  /* surfaces */
  --sm-surface: rgb(255 255 255);
  --sm-workspace: rgb(243 244 246);    /* rail column + canvas surround */
  --sm-ruler: rgb(238 238 238);        /* FIXED: engine paints rulers #eee (SMPdesigner.js:3409) */
  --sm-subtle: rgb(250 250 251);       /* dropzone rest */
  --sm-tile: rgb(237 238 241);         /* secondary button / neutral chip */
  --sm-tile-hover: rgb(226 228 232);
  --sm-tile-press: rgb(214 217 222);
  --sm-hover: rgb(4 0 0 / 0.06);       /* translucent hover tile */
  --sm-press: rgb(4 0 0 / 0.10);
  --sm-hover-solid: rgb(240 241 243);  /* opaque hover (floating buttons) */
  /* lines */
  --sm-hairline: rgb(228 230 234);     /* decorative dividers only */
  --sm-divider: rgb(218 220 224);      /* rail / panel edge */
  --sm-track: rgb(213 215 220);        /* slider track (decorative; the thumb carries the state) */
  --sm-border: rgb(134 137 144);       /* control boundary at rest: 3.50:1 on white (fallback; painted by border-image) */
  --sm-border-strong: rgb(84 87 92);   /* control boundary on hover: 7.25:1 */
  --sm-swatch-edge: rgb(4 0 0 / 0.45); /* swatch boundary: 3.34:1 for white on white */
  --sm-focus: rgb(4 0 0);              /* keyboard focus = ink (19:1 on white), never red: red rings mean "on" */
  --sm-scrim: rgb(4 0 0 / 0.20);
  /* semantic (toasts only) */
  --sm-error: rgb(176 0 31); --sm-success: rgb(30 122 76); --sm-warning: rgb(154 91 0); --sm-info: rgb(31 28 28);
  /* radii: only for boxes that are not click targets (pseudo-element tiles, containers, the glyph chip) */
  --sm-r-xs: 4px; --sm-r-sm: 6px; --sm-r-md: 8px; --sm-r-bar: 10px; --sm-r-lg: 12px;
  /* elevation */
  --sm-shadow-artboard: drop-shadow(0 1px 1px rgb(4 0 0 / 0.08)) drop-shadow(0 3px 12px rgb(4 0 0 / 0.07)); /* FILTER value */
  --sm-shadow-card: 0 1px 2px rgb(4 0 0 / 0.08), 0 4px 16px rgb(4 0 0 / 0.08);
  --sm-shadow-float: 0 1px 2px rgb(4 0 0 / 0.08), 0 6px 20px rgb(4 0 0 / 0.10);
  --sm-shadow-modal: 0 2px 8px rgb(4 0 0 / 0.08), 0 24px 64px rgb(4 0 0 / 0.20);
  --sm-ring-pushed: inset 0 0 0 2px rgb(234 0 41);     /* solid: 4.06 vs tint, 4.64 vs white (non-hit-tested boxes only) */
  /* type: REFERENCE ONLY, never applied to page elements */
  --sm-font-ui: Arial, Helvetica, sans-serif;
  /* sizes */
  --sm-logo-h: 40px; --sm-logo-w: 133.33px;   /* 220:66 */
  --sm-icon-tool: 24px; --sm-icon-savebar: 22px; --sm-icon-float: 18px;
  --sm-icon-close: 20px; --sm-icon-toast: 24px;
  --sm-rail-tile-w: 40px; --sm-rail-tile-h: 30px;
  --sm-ease: 120ms ease;
}

/* ===== 1b. Painted corners, rings and field borders (9-slice border-image, 1:1 corners) =====
   Each image is drawn at its intrinsic size and sliced so the corners render 1:1 at any box size.
   White corner pieces hide the square corners of the tile colour (background-color) underneath,
   so the visible tile is rounded while the element and its click area stay square, as in the
   baseline. Rings (pushed, keyboard focus, field boundary) are drawn in the same image.
   Generated by build/r3/genbi.py. Used as: border-image: var(--sm-bi-*) <slice> / <slice>px / 0 stretch */
:root {
  --sm-bi-tool: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpath fill='%23fff' fill-rule='evenodd' d='M5 5H23V23H5ZM13 5H15A8 8 0 0 1 23 13V15A8 8 0 0 1 15 23H13A8 8 0 0 1 5 15V13A8 8 0 0 1 13 5Z'/%3E%3C/svg%3E"); /* icon tool: tile corners */
  --sm-bi-tool-push: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpath fill='%23fff' fill-rule='evenodd' d='M5 5H23V23H5ZM13 5H15A8 8 0 0 1 23 13V15A8 8 0 0 1 15 23H13A8 8 0 0 1 5 15V13A8 8 0 0 1 13 5Z'/%3E%3Crect x='6' y='6' width='16' height='16' rx='7' fill='none' stroke='rgb(234,0,41)' stroke-width='2'/%3E%3C/svg%3E"); /* icon tool pushed/checked: + 2px red ring on the tile edge */
  --sm-bi-tool-focus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpath fill='%23fff' fill-rule='evenodd' d='M5 5H23V23H5ZM13 5H15A8 8 0 0 1 23 13V15A8 8 0 0 1 15 23H13A8 8 0 0 1 5 15V13A8 8 0 0 1 13 5Z'/%3E%3Crect x='2' y='2' width='24' height='24' rx='11' fill='none' stroke='rgb(4,0,0)' stroke-width='2'/%3E%3C/svg%3E"); /* icon tool keyboard focus: + 2px ink ring 1-3px inside the box (outside the tile) */
  --sm-bi-tool-push-focus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpath fill='%23fff' fill-rule='evenodd' d='M5 5H23V23H5ZM13 5H15A8 8 0 0 1 23 13V15A8 8 0 0 1 15 23H13A8 8 0 0 1 5 15V13A8 8 0 0 1 13 5Z'/%3E%3Crect x='6' y='6' width='16' height='16' rx='7' fill='none' stroke='rgb(234,0,41)' stroke-width='2'/%3E%3Crect x='2' y='2' width='24' height='24' rx='11' fill='none' stroke='rgb(4,0,0)' stroke-width='2'/%3E%3C/svg%3E"); /* pushed + focused */
  --sm-bi-r8: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cpath fill='%23fff' fill-rule='evenodd' d='M0 0H18V18H0ZM8 0H10A8 8 0 0 1 18 8V10A8 8 0 0 1 10 18H8A8 8 0 0 1 0 10V8A8 8 0 0 1 8 0Z'/%3E%3C/svg%3E"); /* r8 tile corners */
  --sm-bi-r8-push: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cpath fill='%23fff' fill-rule='evenodd' d='M0 0H18V18H0ZM8 0H10A8 8 0 0 1 18 8V10A8 8 0 0 1 10 18H8A8 8 0 0 1 0 10V8A8 8 0 0 1 8 0Z'/%3E%3Crect x='1' y='1' width='16' height='16' rx='7' fill='none' stroke='rgb(234,0,41)' stroke-width='2'/%3E%3C/svg%3E"); /* r8 checked chip: + 2px red ring */
  --sm-bi-r8-focus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cpath fill='%23fff' fill-rule='evenodd' d='M0 0H18V18H0ZM8 0H10A8 8 0 0 1 18 8V10A8 8 0 0 1 10 18H8A8 8 0 0 1 0 10V8A8 8 0 0 1 8 0Z'/%3E%3Crect x='1' y='1' width='16' height='16' rx='7' fill='none' stroke='rgb(4,0,0)' stroke-width='2'/%3E%3Crect x='2.5' y='2.5' width='13' height='13' rx='5.5' fill='none' stroke='%23fff' stroke-width='1'/%3E%3C/svg%3E"); /* r8 keyboard focus: 2px ink ring + 1px white gap */
  --sm-bi-r8-focus-out: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 26 26'%3E%3Cpath fill='%23fff' fill-rule='evenodd' d='M4 4H22V22H4ZM12 4H14A8 8 0 0 1 22 12V14A8 8 0 0 1 14 22H12A8 8 0 0 1 4 14V12A8 8 0 0 1 12 4Z'/%3E%3Crect x='1' y='1' width='24' height='24' rx='11' fill='none' stroke='rgb(4,0,0)' stroke-width='2'/%3E%3C/svg%3E"); /* r8 keyboard focus: ink ring 2-4px outside the box (use slice 12, outset 4px) */
  --sm-bi-r8-gap: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cpath fill='%23fff' fill-rule='evenodd' d='M0 0H18V18H0ZM8 2H10A6 6 0 0 1 16 8V10A6 6 0 0 1 10 16H8A6 6 0 0 1 2 10V8A6 6 0 0 1 8 2Z'/%3E%3C/svg%3E"); /* r8 tile inset by a 2px white frame (stacked Best Fit / Apply to all Text) */
  --sm-bi-r8-gap-focus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18'%3E%3Cpath fill='%23fff' fill-rule='evenodd' d='M0 0H18V18H0ZM8 2H10A6 6 0 0 1 16 8V10A6 6 0 0 1 10 16H8A6 6 0 0 1 2 10V8A6 6 0 0 1 8 2Z'/%3E%3Crect x='1' y='1' width='16' height='16' rx='7' fill='none' stroke='rgb(4,0,0)' stroke-width='2'/%3E%3C/svg%3E"); /* inset tile + 2px ink ring around it */
  --sm-bi-r10: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22'%3E%3Cpath fill='%23fff' fill-rule='evenodd' d='M0 0H22V22H0ZM10 0H12A10 10 0 0 1 22 10V12A10 10 0 0 1 12 22H10A10 10 0 0 1 0 12V10A10 10 0 0 1 10 0Z'/%3E%3C/svg%3E"); /* saveBar button corners */
  --sm-bi-r10-focus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3E%3Cpath fill='%23fff' fill-rule='evenodd' d='M4 4H26V26H4ZM14 4H16A10 10 0 0 1 26 14V16A10 10 0 0 1 16 26H14A10 10 0 0 1 4 16V14A10 10 0 0 1 14 4Z'/%3E%3Crect x='1' y='1' width='28' height='28' rx='13' fill='none' stroke='rgb(4,0,0)' stroke-width='2'/%3E%3C/svg%3E"); /* saveBar keyboard focus: ink ring 2-4px outside the box (use slice 14, outset 4px) */
  --sm-bi-r6: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='%23fff' fill-rule='evenodd' d='M0 0H14V14H0ZM6 0H8A6 6 0 0 1 14 6V8A6 6 0 0 1 8 14H6A6 6 0 0 1 0 8V6A6 6 0 0 1 6 0Z'/%3E%3C/svg%3E"); /* r6 tile corners */
  --sm-bi-r6-focus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='%23fff' fill-rule='evenodd' d='M0 0H14V14H0ZM6 0H8A6 6 0 0 1 14 6V8A6 6 0 0 1 8 14H6A6 6 0 0 1 0 8V6A6 6 0 0 1 6 0Z'/%3E%3Crect x='1' y='1' width='12' height='12' rx='5' fill='none' stroke='rgb(4,0,0)' stroke-width='2'/%3E%3C/svg%3E"); /* r6 keyboard focus */
  --sm-bi-r6-focus-out: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Cpath fill='%23fff' fill-rule='evenodd' d='M3 3H17V17H3ZM9 3H11A6 6 0 0 1 17 9V11A6 6 0 0 1 11 17H9A6 6 0 0 1 3 11V9A6 6 0 0 1 9 3Z'/%3E%3Crect x='1' y='1' width='18' height='18' rx='8' fill='none' stroke='rgb(4,0,0)' stroke-width='2'/%3E%3C/svg%3E"); /* r6 keyboard focus: ink ring 1-3px outside the box (use slice 9, outset 3px) */
  --sm-bi-r12: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 26 26'%3E%3Cpath fill='%23fff' fill-rule='evenodd' d='M0 0H26V26H0ZM12 0H14A12 12 0 0 1 26 12V14A12 12 0 0 1 14 26H12A12 12 0 0 1 0 14V12A12 12 0 0 1 12 0Z'/%3E%3C/svg%3E"); /* r12 tile corners */
  --sm-bi-r12-focus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 26 26'%3E%3Cpath fill='%23fff' fill-rule='evenodd' d='M0 0H26V26H0ZM12 0H14A12 12 0 0 1 26 12V14A12 12 0 0 1 14 26H12A12 12 0 0 1 0 14V12A12 12 0 0 1 12 0Z'/%3E%3Crect x='1' y='1' width='24' height='24' rx='11' fill='none' stroke='rgb(4,0,0)' stroke-width='2'/%3E%3Crect x='2.5' y='2.5' width='21' height='21' rx='9.5' fill='none' stroke='%23fff' stroke-width='1'/%3E%3C/svg%3E"); /* r12 keyboard focus */
  --sm-bi-field: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='%23fff' fill-rule='evenodd' d='M0 0H14V14H0ZM6 0H8A6 6 0 0 1 14 6V8A6 6 0 0 1 8 14H6A6 6 0 0 1 0 8V6A6 6 0 0 1 6 0Z'/%3E%3Crect x='0.5' y='0.5' width='13' height='13' rx='5.5' fill='none' stroke='rgb(134,137,144)' stroke-width='1'/%3E%3C/svg%3E"); /* field rest: 1px rgb(134 137 144) ring (3.50:1) */
  --sm-bi-field-hover: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='%23fff' fill-rule='evenodd' d='M0 0H14V14H0ZM6 0H8A6 6 0 0 1 14 6V8A6 6 0 0 1 8 14H6A6 6 0 0 1 0 8V6A6 6 0 0 1 6 0Z'/%3E%3Crect x='0.5' y='0.5' width='13' height='13' rx='5.5' fill='none' stroke='rgb(84,87,92)' stroke-width='1'/%3E%3C/svg%3E"); /* field hover: ink-3 ring (7.25:1) */
  --sm-bi-field-focus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='%23fff' fill-rule='evenodd' d='M0 0H14V14H0ZM6 0H8A6 6 0 0 1 14 6V8A6 6 0 0 1 8 14H6A6 6 0 0 1 0 8V6A6 6 0 0 1 6 0Z'/%3E%3Crect x='1' y='1' width='12' height='12' rx='5' fill='none' stroke='rgb(234,0,41)' stroke-width='2'/%3E%3C/svg%3E"); /* field focus: 2px red ring inside the box */
  --sm-bi-qty: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%23fff' fill-rule='evenodd' d='M0 0H10V10H0ZM4 0H6A4 4 0 0 1 10 4V6A4 4 0 0 1 6 10H4A4 4 0 0 1 0 6V4A4 4 0 0 1 4 0Z'/%3E%3Crect x='0.5' y='0.5' width='9' height='9' rx='3.5' fill='none' stroke='rgb(134,137,144)' stroke-width='1'/%3E%3C/svg%3E"); /* quantity rest */
  --sm-bi-qty-hover: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%23fff' fill-rule='evenodd' d='M0 0H10V10H0ZM4 0H6A4 4 0 0 1 10 4V6A4 4 0 0 1 6 10H4A4 4 0 0 1 0 6V4A4 4 0 0 1 4 0Z'/%3E%3Crect x='0.5' y='0.5' width='9' height='9' rx='3.5' fill='none' stroke='rgb(84,87,92)' stroke-width='1'/%3E%3C/svg%3E"); /* quantity hover */
  --sm-bi-qty-focus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%23fff' fill-rule='evenodd' d='M0 0H10V10H0ZM4 0H6A4 4 0 0 1 10 4V6A4 4 0 0 1 6 10H4A4 4 0 0 1 0 6V4A4 4 0 0 1 4 0Z'/%3E%3Crect x='1' y='1' width='8' height='8' rx='3' fill='none' stroke='rgb(234,0,41)' stroke-width='2'/%3E%3C/svg%3E"); /* quantity focus */
  --sm-bi-drop: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 34 34'%3E%3Cpath fill='%23fff' fill-rule='evenodd' d='M0 0H34V34H0ZM12 0H22A12 12 0 0 1 34 12V22A12 12 0 0 1 22 34H12A12 12 0 0 1 0 22V12A12 12 0 0 1 12 0Z'/%3E%3Cpath d='M1 12A11 11 0 0 1 12 1M22 1A11 11 0 0 1 33 12M33 22A11 11 0 0 1 22 33M12 33A11 11 0 0 1 1 22M14 1H20M14 33H20M1 14V20M33 14V20' fill='none' stroke='rgb(134,137,144)' stroke-width='2'/%3E%3C/svg%3E"); /* dropzone rest */
  --sm-bi-drop-hover: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 34 34'%3E%3Cpath fill='%23fff' fill-rule='evenodd' d='M0 0H34V34H0ZM12 0H22A12 12 0 0 1 34 12V22A12 12 0 0 1 22 34H12A12 12 0 0 1 0 22V12A12 12 0 0 1 12 0Z'/%3E%3Cpath d='M1 12A11 11 0 0 1 12 1M22 1A11 11 0 0 1 33 12M33 22A11 11 0 0 1 22 33M12 33A11 11 0 0 1 1 22M14 1H20M14 33H20M1 14V20M33 14V20' fill='none' stroke='rgba(234,0,41,0.55)' stroke-width='2'/%3E%3C/svg%3E"); /* dropzone hover */
  --sm-bi-drop-drag: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 34 34'%3E%3Cpath fill='%23fff' fill-rule='evenodd' d='M0 0H34V34H0ZM12 0H22A12 12 0 0 1 34 12V22A12 12 0 0 1 22 34H12A12 12 0 0 1 0 22V12A12 12 0 0 1 12 0Z'/%3E%3Cpath d='M1 12A11 11 0 0 1 12 1M22 1A11 11 0 0 1 33 12M33 22A11 11 0 0 1 22 33M12 33A11 11 0 0 1 1 22M14 1H20M14 33H20M1 14V20M33 14V20' fill='none' stroke='rgb(234,0,41)' stroke-width='2'/%3E%3C/svg%3E"); /* dropzone drag-over */
  --sm-bi-rail-focus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Crect x='2' y='2' width='20' height='20' rx='9' fill='none' stroke='rgb(4,0,0)' stroke-width='2'/%3E%3C/svg%3E"); /* rail tab keyboard focus ring */
}

/* ===== 2.0 Global ===== */
html, html a { -webkit-font-smoothing: antialiased !important; -moz-osx-font-smoothing: grayscale; } /* verified 0-move */
aside ::selection, .modalEl ::selection { background-color: rgb(234 0 41 / 0.16); }

/* ===== 2.1 aside and logo block ===== */
aside { background-color: var(--sm-surface); }                 /* nothing else on aside */
/* (the logo block moved to the top bar, css/topbar.css; the rules below keep the logo's link behaviour, and place it only if it is in the aside) */
/* The transparent stand-in text still sizes the wrapper, but only the painted logo is a click target. */
a.sterlingLogo, a.sterlingLogo:hover, a.sterlingLogo:focus, a.sterlingLogo:visited {
  color: transparent; text-decoration: none; -webkit-user-select: none; user-select: none; forced-color-adjust: none; pointer-events: none; }
a.sterlingLogo > img { pointer-events: auto; }
aside > div:first-child { position: relative; }
aside a.sterlingLogo > img { position: absolute; top: 50%; left: 50%; display: block;
  width: var(--sm-logo-w); height: var(--sm-logo-h); margin: -20px 0 0 -66.665px; }
/* above 888px the wrapper is one line (45.72px): a 34px logo leaves ~6px of air above and below */
@media not all and (max-width: 888px) { aside a.sterlingLogo > img { width: 113.33px; height: 34px; margin: -17px 0 0 -56.665px; } }
/* at <=700px the floating bar (bottom edge y 560) overlaps the top of the 71.44px wrapper: sit the logo at its bottom */
@media (max-width: 700px) { aside a.sterlingLogo > img { top: auto; bottom: 6px; margin-top: 0; } }
a.sterlingLogo:focus { outline: none; }
a.sterlingLogo:focus-visible > img { outline: 2px solid var(--sm-focus); outline-offset: 3px; }

/* ===== 2.2 #saveBar (header band) ===== */
#saveBar { border-top-color: transparent; border-bottom-color: transparent; /* widths stay 3px */
  background-color: var(--sm-surface);
  background-image: linear-gradient(var(--sm-hairline), var(--sm-hairline));
  background-repeat: no-repeat; background-size: 100% 1px; background-position: 0 100%;
  background-origin: border-box; background-clip: border-box; }          /* 1px hairline at the very bottom */
#saveBar ul li:nth-child(even) { background-color: var(--sm-hairline); background-clip: content-box; padding: 13px 0; } /* 2px x 24px divider; li stays 2x50 */
#saveBar ul li button { background-color: transparent; color: var(--sm-ink-3); box-shadow: none;
  border-image: var(--sm-bi-r10) 10 / 10px / 0 stretch; }                 /* r10 hover tile, square click box */
#saveBar ul li button:focus { background-color: transparent; color: var(--sm-ink-3); box-shadow: none; }
#saveBar ul li button:hover { background-color: var(--sm-hover); color: var(--sm-ink); box-shadow: none; }
#saveBar ul li button:active { background-color: var(--sm-press); box-shadow: none; }
#saveBar ul li button:focus-visible { outline: none; border-image: var(--sm-bi-r10-focus) 14 / 14px / 4px stretch; }   /* ring 2-4px outside: paint only (ink overflow) */
#saveBar ul li button .mui-btn__ripple-container { border-radius: var(--sm-r-bar); }   /* pointer-events:none (MUI) */
/* glyph swap: the ligature keeps font-size 24px (the <i> stays 24x24 on its baseline); only its colour goes transparent */
#saveBar ul li button .material-icons { color: transparent; text-shadow: none; background-repeat: no-repeat; background-position: center; background-size: var(--sm-icon-savebar) var(--sm-icon-savebar); }
#saveBar ul li button[onclick^="saveDesign"] .material-icons { background-image: url("../icons/save.svg"); }
#saveBar ul li button[onclick^="preview"]  .material-icons { background-image: url("../icons/cart-add-white.svg"); }
#saveBar ul li button[onclick^="undo"]     .material-icons { background-image: url("../icons/undo.svg"); }
#saveBar ul li button[onclick^="redo"]     .material-icons { background-image: url("../icons/redo.svg"); }
/* Add To Cart = the CTA: red label and a solid red 24x24 chip (the <i> box itself) behind an 18px white cart glyph.
   The button box keeps its metrics and the chip stays clear of the label line, so the label is never framed edge-to-edge. */
#saveBar ul li button[onclick^="preview"], #saveBar ul li button[onclick^="preview"]:focus { background-color: transparent; color: var(--sm-red-text); box-shadow: none; }
#saveBar ul li button[onclick^="preview"]:hover { background-color: var(--sm-hover); color: var(--sm-red-press); }
#saveBar ul li button[onclick^="preview"]:active { background-color: var(--sm-press); color: var(--sm-red-press); }
#saveBar ul li button[onclick^="preview"] .material-icons { background-color: var(--sm-red); background-size: 18px 18px; border-radius: var(--sm-r-sm); } /* inside the button: still normalises to the same click target */
#saveBar ul li button[onclick^="preview"]:hover .material-icons { background-color: var(--sm-red-hover); }
#saveBar ul li button[onclick^="preview"]:active .material-icons { background-color: var(--sm-red-press); }

/* ===== 2.3 Vertical tab rail ===== */
.ui-tabs-vertical .ui-tabs-nav { background: var(--sm-workspace); box-shadow: inset -1px 0 0 var(--sm-divider); }   /* beats .ui-widget-header #e9e9e9; 1px edge at x 59-60 */
.ui-tabs-vertical .ui-tabs-nav li.ui-state-default,
.ui-tabs-vertical .ui-tabs-nav li.ui-state-hover,
.ui-tabs-vertical .ui-tabs-nav li.ui-state-focus,
.ui-tabs-vertical .ui-tabs-nav li.ui-tabs-active { background: transparent; }
.ui-tabs-vertical .ui-tabs-nav li a { color: var(--sm-ink-3); -webkit-tap-highlight-color: transparent; }
.ui-tabs-vertical .ui-tabs-nav li a:focus { outline: none; }
.ui-tabs-vertical .ui-tabs-nav li:focus-visible,
.ui-tabs-vertical .ui-tabs-nav li a:focus-visible { outline: none; border-image: var(--sm-bi-rail-focus) 11 / 11px / 0 stretch; }
.ui-tabs-vertical .ui-tabs-nav .menuIcon { position: relative; z-index: 0; }   /* layout-neutral; stacking context */
.ui-tabs-vertical .ui-tabs-nav .menuIcon::before { content: ""; position: absolute; z-index: -1; top: 0; left: 50%;
  width: var(--sm-rail-tile-w); height: var(--sm-rail-tile-h); margin-left: -20px; border-radius: var(--sm-r-md);
  background-color: transparent; pointer-events: none; }           /* 40x30 tile inside the 60x60 anchor (not hit-tested) */
.ui-tabs-vertical .ui-tabs-nav li.ui-state-hover .menuIcon::before,
.ui-tabs-vertical .ui-tabs-nav li.ui-state-focus .menuIcon::before { background-color: var(--sm-hover); }
.ui-tabs-vertical .ui-tabs-nav li.ui-state-hover a,
.ui-tabs-vertical .ui-tabs-nav li.ui-state-focus a { color: var(--sm-ink-2); }
/* active LAST (jQuery leaves ui-state-focus on the clicked li); the 2px red ring is a shape cue, not hue only */
.ui-tabs-vertical .ui-tabs-nav li.ui-tabs-active .menuIcon::before { background-color: var(--sm-red-tint); box-shadow: var(--sm-ring-pushed); }
.ui-tabs-vertical .ui-tabs-nav li.ui-tabs-active a { color: var(--sm-red-text); }   /* 5.18:1 on the rail; keeps it apart from the ink-3 panel label beside it */
.ui-tabs-vertical .ui-tabs-nav li.ui-tabs-active .menuIcon { color: var(--sm-red); }
.ui-tabs-vertical .ui-tabs-nav li.ui-state-disabled .menuIcon::before { background-color: transparent; box-shadow: none; } /* keep jQuery opacity .35 */

/* ===== 2.4 Tab panels (base text) ===== */
.ui-tabs-vertical .ui-tabs-panel { color: var(--sm-ink-3); background-color: var(--sm-surface); }
#productSpecs, #productOptionsDiv .optionTitle { color: var(--sm-ink); }
#cSize { color: var(--sm-ink-3); }
.colours-note, aside .specInputLabel, #textBoxes { color: var(--sm-ink-3); }

/* ===== 2.5 Buttons: primary (red) and secondary (neutral tile) ===== */
.mui-btn, .mui-btn:hover, .mui-btn:focus, .mui-btn:active, .mui-btn:active:hover { box-shadow: none; }
.mui-btn:focus-visible { outline: 2px solid var(--sm-focus); outline-offset: 2px; }   /* fallback; tiles below draw their ring inside */
.mui-btn .mui-ripple { background-color: rgb(4 0 0 / 0.4); }
.mui-btn--primary .mui-ripple { background-color: rgb(255 255 255); }
.mui-btn--primary .mui-btn__ripple-container, .mui-btn--accent .mui-btn__ripple-container { border-radius: var(--sm-r-md); } /* pointer-events:none (MUI) */
/* r8 tile: square click box (baseline radius 0), rounded paint */
.mui-btn--primary, .mui-btn--accent { border-image: var(--sm-bi-r8) 8 / 8px / 0 stretch; --sm-bi-push-k: var(--sm-bi-r8-push); }
.mui-btn--primary:focus-visible { outline: none; border-image: var(--sm-bi-r8-focus) 8 / 8px / 0 stretch; }
/* the ink-filled accent button: an ink ring inside it would vanish, so its ring sits 2-4px OUTSIDE the box (paint only) */
.mui-btn--accent:focus-visible { outline: none; border-image: var(--sm-bi-r8-focus-out) 12 / 12px / 4px stretch; }
.mui-btn--primary { background-color: var(--sm-red); color: var(--sm-on-red); }
.mui-btn--primary:focus { background-color: var(--sm-red); color: var(--sm-on-red); }
.mui-btn--primary:hover { background-color: var(--sm-red-hover); color: var(--sm-on-red); }
.mui-btn--primary:active { background-color: var(--sm-red-press); color: var(--sm-on-red); }
/* SECONDARY: neutral tile (one red primary per panel). These elements keep class mui-btn--primary. */
:is(#btnResetCharSpacing, #smCurveReset, #smSnapToggle, #bestFitBtn, #AppLines, #simpleDesignerButton, #advancedDesignerButton, #curveSwitchInputLbl,
    #curvedTextMenu button[onclick^="setCurveSpacing"], #curvedTextMenu button[onclick^="setCurveRadius"],
    #toolsMenu button[onclick^="toggleGuides"], #previewDiv .previewCloseButtonContainer .mui-btn),
.modalEl .previewResultLinks :is(button.mui-btn:not(.mui-btn--primary):not(.mui-btn--accent), a.mui-btn--primary)
  { background-color: var(--sm-tile); color: var(--sm-ink-2); }
:is(#btnResetCharSpacing, #smCurveReset, #smSnapToggle, #bestFitBtn, #AppLines, #simpleDesignerButton, #advancedDesignerButton, #curveSwitchInputLbl,
    #curvedTextMenu button[onclick^="setCurveSpacing"], #curvedTextMenu button[onclick^="setCurveRadius"],
    #toolsMenu button[onclick^="toggleGuides"], #previewDiv .previewCloseButtonContainer .mui-btn):focus,
.modalEl .previewResultLinks :is(button.mui-btn:not(.mui-btn--primary):not(.mui-btn--accent), a.mui-btn--primary):focus
  { background-color: var(--sm-tile); color: var(--sm-ink-2); }
:is(#btnResetCharSpacing, #smCurveReset, #smSnapToggle, #bestFitBtn, #AppLines, #simpleDesignerButton, #advancedDesignerButton, #curveSwitchInputLbl,
    #curvedTextMenu button[onclick^="setCurveSpacing"], #curvedTextMenu button[onclick^="setCurveRadius"],
    #toolsMenu button[onclick^="toggleGuides"], #previewDiv .previewCloseButtonContainer .mui-btn):hover,
.modalEl .previewResultLinks :is(button.mui-btn:not(.mui-btn--primary):not(.mui-btn--accent), a.mui-btn--primary):hover
  { background-color: var(--sm-tile-hover); color: var(--sm-ink-2); }
:is(#btnResetCharSpacing, #smCurveReset, #smSnapToggle, #bestFitBtn, #AppLines, #simpleDesignerButton, #advancedDesignerButton, #curveSwitchInputLbl,
    #curvedTextMenu button[onclick^="setCurveSpacing"], #curvedTextMenu button[onclick^="setCurveRadius"],
    #toolsMenu button[onclick^="toggleGuides"], #previewDiv .previewCloseButtonContainer .mui-btn):active,
.modalEl .previewResultLinks :is(button.mui-btn:not(.mui-btn--primary):not(.mui-btn--accent), a.mui-btn--primary):active
  { background-color: var(--sm-tile-press); color: var(--sm-ink-2); }
:is(#btnResetCharSpacing, #smCurveReset, #smSnapToggle, #bestFitBtn, #AppLines, #simpleDesignerButton, #advancedDesignerButton, #curveSwitchInputLbl,
    #curvedTextMenu button[onclick^="setCurveSpacing"], #curvedTextMenu button[onclick^="setCurveRadius"],
    #toolsMenu button[onclick^="toggleGuides"], #previewDiv .previewCloseButtonContainer .mui-btn) .mui-ripple,
.modalEl .previewResultLinks :is(button.mui-btn:not(.mui-btn--primary):not(.mui-btn--accent), a.mui-btn--primary) .mui-ripple
  { background-color: rgb(4 0 0 / 0.4); }   /* dark ripple on grey tiles (MUI's primary ripple is white) */
.modalEl .previewResultLinks button.mui-btn:not(.mui-btn--primary):not(.mui-btn--accent) { border-image: var(--sm-bi-r8) 8 / 8px / 0 stretch; }
.modalEl .previewResultLinks button.mui-btn:not(.mui-btn--primary):not(.mui-btn--accent):focus-visible { outline: none; border-image: var(--sm-bi-r8-focus) 8 / 8px / 0 stretch; }
/* simple mode: Best Fit and Apply to all Text are stacked with no gap; a 2px white frame keeps the two tiles apart */
#bestFitBtn, #AppLines { border-image: var(--sm-bi-r8-gap) 8 / 8px / 0 stretch; }
#bestFitBtn:focus-visible, #AppLines:focus-visible { border-image: var(--sm-bi-r8-gap-focus) 8 / 8px / 0 stretch; }

/* ===== 2.6 Icon tools and their pushed/checked states ===== */
aside input[type="image"], aside .iconButton { background-color: transparent; color: var(--sm-ink-2); cursor: pointer; }
aside input[type="image"].iconButtonBig, aside label.iconButton.iconButtonBig {
  border: 5px solid transparent; background-clip: padding-box;          /* 50x50 border-box, 40x40 tile, square click box */
  border-image: var(--sm-bi-tool) 13 / 13px / 0 stretch; --sm-bi-push-k: var(--sm-bi-tool-push); }  /* rounded r8 tile corners */
aside input[type="image"].iconButtonBig { padding: 8px; }                  /* 24px glyph */
aside input[type="image"].iconButtonBig[onclick*="changeLayer"],
aside input[type="image"].iconButtonBig[onclick^="addShape"] { padding: 0; }   /* captioned 40x40 art fills the tile (24px glyph + caption) */
#zoomIn, #ZoomOut, #ActualSize, #FitScreen { padding: 8px !important; }    /* beats inline padding:5px */
aside label.iconButton.iconButtonBig { background-size: var(--sm-icon-tool) var(--sm-icon-tool); background-repeat: no-repeat; background-position: center; }
aside input[type="image"][onclick^="deleteObject"] { border: 0; padding: 5px; border-image: var(--sm-bi-r8) 8 / 8px / 0 stretch; } /* inline 30x30, 20px glyph */
aside input[type="image"]:hover, aside .iconButton:hover { background-color: var(--sm-hover); color: var(--sm-ink-2); }
aside input[type="image"]:active, aside .iconButton:active { background-color: var(--sm-press); }
aside input[type="image"][onclick^="deleteObject"]:hover { background-color: var(--sm-red-tint); }
aside input[type="image"]:focus { outline: none; }
/* keyboard focus: an INK ring outside the tile (1-3px in from the box edge); red rings mean "on" */
aside input[type="image"].iconButtonBig:focus-visible { border-image: var(--sm-bi-tool-focus) 13 / 13px / 0 stretch; }
aside input[type="image"][onclick^="deleteObject"]:focus-visible { border-image: var(--sm-bi-r8-focus) 8 / 8px / 0 stretch; }
/* pushed (B/I/U via engine .pushedButton) + checked radios/checkboxes (align labels, Border, Direction):
   tint tile + 2px red ring on the tile edge, painted by the element's own kit (--sm-bi-push-k) */
aside .pushedButton, aside .iconButtonRadio:checked + label {
  background-color: var(--sm-red-tint) !important; box-shadow: none !important; border-image-source: var(--sm-bi-push-k, none) !important; color: var(--sm-red-text) !important; }
aside .pushedButton:hover, aside .iconButtonRadio:checked + label:hover {
  background-color: var(--sm-red-tint-strong) !important; color: var(--sm-red-press) !important; }  /* 5.48:1 */
aside input[type="image"].iconButtonBig.pushedButton:focus-visible { border-image-source: var(--sm-bi-tool-push-focus) !important; }  /* on AND focused */
/* Border toggle (text chip, keeps uppercase + padding 0 15px) */
#borderSwitchInputLbl { background-color: var(--sm-tile); color: var(--sm-ink-2); border-image: var(--sm-bi-r8) 8 / 8px / 0 stretch; --sm-bi-push-k: var(--sm-bi-r8-push); }
#borderSwitchInputLbl:hover { background-color: var(--sm-tile-hover); color: var(--sm-ink-2); }

/* ===== 2.7 Fields (no UA-dependent metric changes) ===== */
/* The visible boundary is painted (border-image: 1px ring, r6); the CSS border keeps its width and acts as fallback. */
/* Text inputs: site.app.css fixes 2px border + padding 3px 0 3px 3px => C2 keeps every per-side sum (5/2/5/5) */
aside input[type="text"] { border: 1px solid var(--sm-border); padding: 4px 1px 4px 4px; background-color: var(--sm-surface); color: var(--sm-ink-2);
  border-image: var(--sm-bi-field) 6 / 6px / 0 stretch; }
aside input[type="text"]:hover { border-color: var(--sm-border-strong); border-image: var(--sm-bi-field-hover) 6 / 6px / 0 stretch; }
/* beats site.app's input[type=text]:focus (2px border shorthand); the ring is drawn INSIDE the box, so nothing is clipped at the aside edge */
aside input[type="text"]:focus { border: 1px solid var(--sm-red); padding: 4px 1px 4px 4px; box-shadow: none; background-color: var(--sm-surface); outline: none;
  border-image: var(--sm-bi-field-focus) 6 / 6px / 0 stretch; }
/* .specInputNumber: site.app.css fixes border 0 0 1px + padding 3px => top 3 / bottom 4 kept; width 80 is border-box */
aside input[type="number"].specInputNumber { border: 1px solid var(--sm-border); padding: 2px 4px 3px; background-color: var(--sm-surface); color: var(--sm-ink-2);
  border-image: var(--sm-bi-field) 6 / 6px / 0 stretch; }
/* #textSize/#textSize-curve: inline 65x24, border-box => size cannot change */
#textSize, #textSize-curve { border: 1px solid var(--sm-border); padding: 1px 4px; background-color: var(--sm-surface); color: var(--sm-ink-2);
  border-image: var(--sm-bi-field) 6 / 6px / 0 stretch; }
aside input[type="number"].specInputNumber:hover, #textSize:hover, #textSize-curve:hover { border-color: var(--sm-border-strong); border-image: var(--sm-bi-field-hover) 6 / 6px / 0 stretch; }
aside input[type="number"].specInputNumber:focus, #textSize:focus, #textSize-curve:focus { border-color: var(--sm-red); box-shadow: none; outline: none; border-image: var(--sm-bi-field-focus) 6 / 6px / 0 stretch; }
/* UA-sized number inputs (#quantity; engine-built ones in production): UA border WIDTH and padding untouched; r4 ring at the outer edge */
aside input[type="number"]:not(.specInputNumber):not(#textSize):not(#textSize-curve) {
  border-style: solid; border-color: transparent; background-color: var(--sm-surface); color: var(--sm-ink-2);
  border-image: var(--sm-bi-qty) 4 / 4px / 0 stretch; }
aside input[type="number"]:not(.specInputNumber):not(#textSize):not(#textSize-curve):hover { border-image: var(--sm-bi-qty-hover) 4 / 4px / 0 stretch; }
aside input[type="number"]:not(.specInputNumber):not(#textSize):not(#textSize-curve):focus { outline: none; border-image: var(--sm-bi-qty-focus) 4 / 4px / 0 stretch; }
@media (forced-colors: active) { aside input[type="number"]:not(.specInputNumber):not(#textSize):not(#textSize-curve) { border-color: ButtonBorder; } }
aside input::placeholder { color: var(--sm-ink-4); }
/* Selects: COLOUR-ONLY metrics. No appearance, padding, line-height, border-width or height changes; native arrow stays.
   The painted ring also replaces Firefox's inset fallback bevel (author border-colour turns native theming off there). */
#fontDropDown, #fontDropDown-curve { border-color: var(--sm-border); background-color: var(--sm-surface); color: var(--sm-ink-2); cursor: pointer;
  border-image: var(--sm-bi-field) 6 / 6px / 0 stretch; }
#productVariationDiv select:not([multiple]) { border-color: var(--sm-border); color: var(--sm-ink-2); cursor: pointer;
  border-image: var(--sm-bi-field) 6 / 6px / 0 stretch; } /* no background-color: keeps site.app required/invalid/valid colours; covers #productOptionsDiv selects and production select[name="Variation"] */
#productVariationDiv select:required:invalid { color: rgb(0 0 0); }   /* text on site.app's red invalid fill stays black (5.25:1) */
#productVariationDiv select[multiple] { border-color: var(--sm-border); border-image: var(--sm-bi-field) 6 / 6px / 0 stretch; }
#fontDropDown:hover, #fontDropDown-curve:hover, #productVariationDiv select:hover { border-color: var(--sm-border-strong); border-image: var(--sm-bi-field-hover) 6 / 6px / 0 stretch; }
#fontDropDown:focus, #fontDropDown-curve:focus, #productVariationDiv select:focus { border-color: var(--sm-red); box-shadow: none; outline: none; border-image: var(--sm-bi-field-focus) 6 / 6px / 0 stretch; }

/* ===== 2.7b Position, size and stroke fields (Images, Shapes): one aligned grid =====
   The markup sets each label and field inline, separated by <br>s, so labels of different widths started their fields
   at different x. Here every row uses the same tracks: label | field | x | label | field, and the Fill / Stroke row
   below uses them too (its colour box fills a field track). The grid spans the icon rows above it: the 50px icon cells
   draw their tiles 5px in, so x 65..355 in the 340px panel. */
.smSpecGrid, #shapesMenu .fillStrokeContainer {
  display: grid; grid-template-columns: 46px minmax(0, 1fr) 10px 46px minmax(0, 1fr); column-gap: 8px; align-items: center;
  max-width: 290px; margin: 6px 5px 0; }
.smSpecGrid { row-gap: 8px; }
.smSpecGrid > br { display: none; }
.smSpecGrid .specInputLabel { grid-column: 1; width: auto; padding: 0; line-height: 20px; white-space: nowrap; }
.smSpecGrid .specInputNumber { grid-column: 2; width: 100%; min-width: 0; margin: 0; }
.smSpecGrid .specInputLabel[for$="Width"] { grid-column: 4; }
.smSpecGrid .specInputNumber[id$="Width"] { grid-column: 5; }
.smSpecTimes { grid-column: 3; justify-self: center; color: var(--sm-ink-3); }
/* Fill / Stroke: label left, colour box in the field track. The button's 5px padding (its hover and active tile) hangs
   out of the track by the same 5px, so its text and box line up with the labels and fields above. */
#shapesMenu .fillStrokeContainer { margin-top: 3px; }
#shapesMenu .fillStrokeContainer .colorMenuButton { display: grid; grid-template-columns: 46px minmax(0, 1fr); column-gap: 8px;
  align-items: center; margin: 0 -5px; padding: 5px; }
#shapesMenu .fillStrokeContainer .colorMenuButton[data-selectedType="fill"] { grid-column: 1 / span 2; }
#shapesMenu .fillStrokeContainer .colorMenuButton[data-selectedType="stroke"] { grid-column: 4 / span 2; }
#shapesMenu .fillStrokeContainer .colorMenuButton > div { grid-row: 1; grid-column: 1; line-height: 20px; white-space: nowrap; }
#shapesMenu .fillStrokeContainer .colorMenuButton > :is(#fillColorSelect, #strokeColorSelect) { grid-column: 2; box-sizing: border-box;
  width: 100%; height: 23px; border-radius: 6px; }
#shapesMenu .fillStrokeContainer .colorMenuButton:not(.active) { color: var(--sm-ink-3); }

/* ===== 2.8 Range sliders (recolour only; thumb box unchanged) ===== */
/* A centre notch on the two sliders whose middle means "none" (Character spacing, Curve): a 2px tick behind the
   track, taller than it, so the way back to 0 shows while the thumb is away (the Reset button still exists).
   Painted on the input's own box, which both browsers draw under their track and thumb; nothing moves. */
aside :is(#charSpacing, #smCurve) { background: linear-gradient(rgb(134 137 144), rgb(134 137 144)) no-repeat center / 2px 14px; }
/* Literal colours inside the UA pseudo-elements, so nothing depends on custom-property inheritance there.
   Never declare width / height / border-width / box-sizing / margin-top on the thumb or track. */
aside input[type="range"] { cursor: pointer; background-color: transparent; }   /* height 20, margin 6px 0 kept */
/* track: a 3.04:1 mid grey, so the slider's extent (min to max) stays visible */
aside input[type="range"]::-webkit-slider-runnable-track,
aside input[type="range"]:focus::-webkit-slider-runnable-track { background: rgb(145 148 155); border-radius: 999px; }  /* height 6 kept */
/* knob: 12px red core, 4px white ring, 1px rgb(134 137 144) edge (3.50:1) = the 20px grab box plus its edge */
aside input[type="range"]::-webkit-slider-thumb { border-color: rgb(255 255 255); background: rgb(234 0 41);
  box-shadow: 0 1px 3px rgb(4 0 0 / 0.30), 0 0 0 1px rgb(134 137 144); }   /* width/height 20, border-width 4, margin-top -7 untouched */
aside input[type="range"]:hover::-webkit-slider-thumb { background: rgb(207 0 36); }
aside input[type="range"]:active::-webkit-slider-thumb { background: rgb(176 0 31); }
/* keyboard focus: a solid ink ring with a white gap (box-shadow only, the thumb box is unchanged) */
aside input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 1px 3px rgb(4 0 0 / 0.30), 0 0 0 1px rgb(134 137 144), 0 0 0 2px rgb(255 255 255), 0 0 0 4px rgb(4 0 0); }
aside input[type="range"]::-moz-range-track { background: rgb(145 148 155); border-radius: 999px; }
/* Firefox's thumb is site.app's 20px CONTENT box plus its 4px border (28px). Its box is untouched: the border is made
   transparent and the same knob as Chromium (12px core, white ring to 20px, 1px edge) is painted centred in it,
   with a soft halo instead of the offset drop shadow, and the focus ring at the 28px edge. */
aside input[type="range"]::-moz-range-thumb { border-color: transparent; box-shadow: none;
  background: radial-gradient(circle closest-side, rgb(234 0 41) 5.75px, rgb(255 255 255) 6.25px 9.75px, rgb(134 137 144) 10.25px 10.75px, rgb(4 0 0 / 0.10) 11.25px, rgb(4 0 0 / 0) 12.5px) border-box no-repeat; }
aside input[type="range"]:hover::-moz-range-thumb { background: radial-gradient(circle closest-side, rgb(207 0 36) 5.75px, rgb(255 255 255) 6.25px 9.75px, rgb(134 137 144) 10.25px 10.75px, rgb(4 0 0 / 0.10) 11.25px, rgb(4 0 0 / 0) 12.5px) border-box no-repeat; }
aside input[type="range"]:active::-moz-range-thumb { background: radial-gradient(circle closest-side, rgb(176 0 31) 5.75px, rgb(255 255 255) 6.25px 9.75px, rgb(134 137 144) 10.25px 10.75px, rgb(4 0 0 / 0.10) 11.25px, rgb(4 0 0 / 0) 12.5px) border-box no-repeat; }
aside input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: none; background: radial-gradient(circle closest-side, rgb(234 0 41) 5.75px, rgb(255 255 255) 6.25px 9.75px, rgb(134 137 144) 10.25px 10.75px, rgb(255 255 255) 11.25px 11.75px, rgb(4 0 0) 12.25px) border-box no-repeat; }
aside input[type="range"]:focus-visible:hover::-moz-range-thumb { background: radial-gradient(circle closest-side, rgb(207 0 36) 5.75px, rgb(255 255 255) 6.25px 9.75px, rgb(134 137 144) 10.25px 10.75px, rgb(255 255 255) 11.25px 11.75px, rgb(4 0 0) 12.25px) border-box no-repeat; }
aside input[type="range"]:focus-visible:active::-moz-range-thumb { background: radial-gradient(circle closest-side, rgb(176 0 31) 5.75px, rgb(255 255 255) 6.25px 9.75px, rgb(134 137 144) 10.25px 10.75px, rgb(255 255 255) 11.25px 11.75px, rgb(4 0 0) 12.25px) border-box no-repeat; }

/* ===== 2.9 Ink swatches (engine-built labels in #colourMenu) ===== */
/* Selected look follows the engine's .selectedLabel only; every ring is drawn inside the 30px label. */
#colourMenu .colSwatchContainer > label { box-shadow: inset 0 0 0 1px var(--sm-swatch-edge); cursor: pointer; } /* replaces .unselectedLabel's grey drop shadow; white ink 3.34:1 */
#colourMenu .colSwatchContainer > label:hover { box-shadow: inset 0 0 0 2px var(--sm-surface), inset 0 0 0 3px var(--sm-swatch-edge); }
#colourMenu .colSwatchContainer > label.selectedLabel,
#colourMenu .colSwatchContainer > label.selectedLabel:hover { border-color: var(--sm-red); box-shadow: inset 0 0 0 2px var(--sm-surface); }

/* ===== 2.10 Shape fill swatches (.colors palette, absolutely positioned) ===== */
/* Square, as in the baseline (their live ink is an inline background, so no painted corners). */
#shapesMenu .colors-group .btn-color { border-color: rgb(4 0 0 / 0.45) !important; }  /* recolours the inline 1px black borders only; 3.34:1 for white */
#shapesMenu .colors-group .btn-color:hover { box-shadow: inset 0 0 0 2px rgb(255 255 255 / 0.9), inset 0 0 0 3px rgb(4 0 0 / 0.35); }
#shapesMenu .colors-group .btn-color:focus { box-shadow: none; }
/* keyboard focus: 2px ink band at the edge + 2px white band inside it, so a 2px ring shows on any live ink (black, white, colour) */
#shapesMenu .colors-group .btn-color:focus-visible { box-shadow: inset 0 0 0 2px var(--sm-focus), inset 0 0 0 4px var(--sm-surface); outline: none; }

/* Fill / Stroke buttons that open the shape colours (Designer.cfm's .fillStrokeContainer; paint only) */
#shapesMenu .colorMenuButton { border-radius: var(--sm-r-md, 8px); color: var(--sm-ink-2); cursor: pointer; }
#shapesMenu .colorMenuButton:hover { background-color: var(--sm-hover); }
#shapesMenu .colorMenuButton.active { background-color: var(--sm-red-tint); box-shadow: inset 0 0 0 1px var(--sm-red); color: var(--sm-red-press); }
#shapesMenu :is(#fillColorSelect, #strokeColorSelect) { border-color: rgb(4 0 0 / 0.45); border-radius: 4px; }
#shapesMenu #colorMenu { border-radius: var(--sm-r-md, 8px); background-color: var(--sm-surface-2, rgb(246 247 249)); }

/* ===== 2.11 Dropzone ===== */
.dropzone { border-style: dashed; border-color: var(--sm-border); background-color: var(--sm-subtle); color: var(--sm-ink-3);
  border-image: var(--sm-bi-drop) 12 / 12px / 0 round; } /* width stays 2px; rounded dashed edge painted */
.dropzone:hover { border-color: rgb(234 0 41 / 0.55); background-color: rgb(253 236 238 / 0.5); border-image: var(--sm-bi-drop-hover) 12 / 12px / 0 round; }
.dropzone.dz-drag-hover { border-style: dashed; border-color: var(--sm-red); background-color: var(--sm-red-tint); border-image: var(--sm-bi-drop-drag) 12 / 12px / 0 round; }
/* The engine's message (an <h3> and help text) made quiet, like a modern upload area: a small upload icon
   (the rail's Images icon), a 14px charcoal line in the panel's own font, and smaller grey help text */
.dropzone .dz-message { cursor: pointer; margin: 20px 0; font-size: 12.5px; line-height: 1.5; color: var(--sm-ink-3); }
.dropzone .dz-message::before { content: ""; display: block; width: 28px; height: 28px; margin: 0 auto 8px; background-color: var(--sm-ink-3);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-3 -3 30 30' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 14.5V18.5A1.5 1.5 0 0 0 5.5 20H18.5A1.5 1.5 0 0 0 20 18.5V14.5'/%3E%3Cpath d='M12 15V4M7.75 8.25L12 4L16.25 8.25'/%3E%3C/svg%3E") center / 28px 28px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-3 -3 30 30' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 14.5V18.5A1.5 1.5 0 0 0 5.5 20H18.5A1.5 1.5 0 0 0 20 18.5V14.5'/%3E%3Cpath d='M12 15V4M7.75 8.25L12 4L16.25 8.25'/%3E%3C/svg%3E") center / 28px 28px no-repeat; }
.dropzone:hover .dz-message::before, .dropzone.dz-drag-hover .dz-message::before { background-color: var(--sm-red); }
.dropzone .dz-message h3 { margin: 0 0 6px; color: rgb(52 56 64); font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.35; letter-spacing: 0; } /* 10.9:1 on the dropzone */

/* ===== 2.12 Simple-mode line clear button (.btn_x, 20x30) ===== */
#textBoxes .btn_x { color: transparent; text-shadow: none; background-color: var(--sm-tile); background-image: url("../icons/close.svg");
  background-repeat: no-repeat; background-position: center; background-size: var(--sm-icon-close) var(--sm-icon-close);
  border-color: transparent; border-image: var(--sm-bi-r6) 6 / 6px / 0 stretch; }      /* resting r6 tile like the other secondary tiles; 1px border width kept; the "X" text node stays */
#textBoxes .btn_x:hover { background-color: var(--sm-red-tint); color: transparent; }
#textBoxes .btn_x:active { background-color: var(--sm-red-tint-strong); }
#textBoxes .btn_x:focus-visible { outline: none; border-image: var(--sm-bi-r6-focus) 6 / 6px / 0 stretch; }

/* ===== 2.13 Rulers area and main frame ===== */
/* No rule touches the ruler canvases: no filter, no overlay, no pseudo-element. */
main { border-color: var(--sm-hairline); }      /* width stays 1px */
#changeRulerUnitButton { background-color: var(--sm-ruler); color: var(--sm-ink-3); border-radius: 0; box-shadow: none; }
#changeRulerUnitButton:focus { background-color: var(--sm-ruler); color: var(--sm-ink-3); }
#changeRulerUnitButton:hover { background-color: rgb(228 229 231); color: var(--sm-ink); }
#changeRulerUnitButton:active { background-color: rgb(218 219 222); }
#changeRulerUnitButton:focus-visible { outline: 2px solid var(--sm-focus); outline-offset: -3px; }

/* ===== 2.14 Workspace and artboard ===== */
#canvasParent { background: var(--sm-workspace); }   /* shorthand at (1,0,0) clears the 4 blue grid layers */
#canvasBackground { filter: var(--sm-shadow-artboard); }  /* StaticCanvas, takes no input; round stamps paint it transparent, so no square shadow */

/* ===== 2.15 Floating zoom bar (restyled in place: box, width, radius and hit area unchanged) ===== */
#floatingMenu { background-color: var(--sm-surface); box-shadow: 0 0 0 1px var(--sm-hairline), var(--sm-shadow-float); }
#floatingMenu .floatingMenuButton button { background-color: transparent; color: var(--sm-ink-3); box-shadow: none;
  border-image: var(--sm-bi-r6) 6 / 6px / 0 stretch; }
#floatingMenu .floatingMenuButton button:focus { background-color: transparent; box-shadow: none; }
#floatingMenu .floatingMenuButton button:hover { background-color: var(--sm-hover-solid); }   /* tile = the 24x22 button box */
#floatingMenu .floatingMenuButton button:active { background-color: var(--sm-tile-hover); }
#floatingMenu .floatingMenuButton button:focus-visible { outline: none; border-image: var(--sm-bi-r6-focus-out) 9 / 9px / 3px stretch; }   /* ring 1-3px outside the box (paint only), clear of the glyph */
#floatingMenu .floatingMenuButton button .mui-btn__ripple-container { border-radius: var(--sm-r-sm); }   /* pointer-events:none (MUI) */
#floatingMenu .floatingMenuButton .material-icons { color: transparent; text-shadow: none; background-repeat: no-repeat; background-position: center; background-size: var(--sm-icon-float) var(--sm-icon-float); }
#floatingMenu button[onclick^="zoomInBy"] .material-icons   { background-image: url("../icons/zoom-actual.svg"); }
#floatingMenu button[onclick^="zoomMinus"] .material-icons  { background-image: url("../icons/zoom-out.svg"); }
#floatingMenu button[onclick^="zoomPlus"] .material-icons   { background-image: url("../icons/zoom-in.svg"); }
#floatingMenu button[onclick^="fitToScreen"] .material-icons { background-image: url("../icons/zoom-fit.svg"); }
#floatingMenu button[onclick^="preview"] .material-icons    { background-image: url("../icons/preview.svg"); }
#zoomPercent { color: var(--sm-ink-3); }
#pageSelectButtonContainer > label { color: var(--sm-ink-3); background-color: transparent; border-image: var(--sm-bi-r8) 8 / 8px / 0 stretch; }
#pageSelectButtonContainer > label:hover { background-color: var(--sm-hover-solid); }
#pageSelectButtonContainer input[type="radio"]:checked + label { background-color: var(--sm-red-tint); color: var(--sm-red-text); border-image: var(--sm-bi-r8-push) 8 / 8px / 0 stretch; }

/* ===== 2.16 Modals (MUI overlay, .modalEl variants, preview, shim result panel) ===== */
/* .modalEl and #previewDiv stay square: a rounded corner would let a click there reach #mui-overlay, which closes the modal. */
#mui-overlay { background-color: var(--sm-scrim); }   /* stays 20%; no transition */
.modalEl { color: var(--sm-ink-2); border-color: transparent; box-shadow: var(--sm-shadow-modal); }
.modalEl h1, .modalEl h3 { color: var(--sm-ink); }    /* sizes untouched */
.modalEl h2 { color: var(--sm-red-text); }             /* engine ERROR headings stay red: upload canceled/timeout, upload errors, Colour configuration error */
.modalEl .previewResult h2 { color: var(--sm-ink); }   /* shim success panel (not an error) */
.modalEl #dropboxProgress { color: var(--sm-ink); }
.modalEl #dropboxError { color: var(--sm-ink-3); }
.modalEl a:not(.mui-btn) { color: var(--sm-red-text); }
#previewDiv { box-shadow: var(--sm-shadow-modal); }
#previewDiv h1 { color: var(--sm-ink); }
#previewDiv .templateThumbnail, #previewDiv .templateThumbnailMulti, #previewDiv .cycle-slideshow { box-shadow: var(--sm-shadow-card); border-color: var(--sm-hairline); }
#previewDiv .previewDisclaimer { color: var(--sm-ink-2); }
#previewDiv input[type="checkbox"] { accent-color: var(--sm-red); }
/* disclaimer error: tint-strong fill + solid 2px red ring (3.47 inside / 4.64 outside), drawn inside a 4px white frame so no red
   touches the red Add To Cart tile that abuts it. The tint is an inset layer too, so the outer edge is white on white (no fringe). */
#previewDiv .previewDisclaimerContainer[style*="background-color"] { background-color: var(--sm-surface) !important; border-radius: var(--sm-r-lg);
  box-shadow: inset 0 0 0 4px var(--sm-surface), inset 0 0 0 6px var(--sm-red), inset 0 0 0 999px var(--sm-red-tint-strong); } /* container, not a click target */
#previewDiv .previewAddToCartButton { border-image: var(--sm-bi-r12) 12 / 12px / 0 stretch; }
#previewDiv .previewAddToCartButton:focus-visible { outline: none; border-image: var(--sm-bi-r12-focus) 12 / 12px / 0 stretch; }
#previewDiv .previewAddToCartButton .mui-btn__ripple-container { border-radius: var(--sm-r-lg); }
#previewDiv .previewAddToCartButton .material-icons { color: transparent; text-shadow: none; background: url("../icons/cart-add-white.svg") center / 24px 24px no-repeat; }
#previewDiv .center a { color: var(--sm-ink-2); }
#previewDiv .center a:hover { color: var(--sm-red-text); }
.modalEl .previewResultTable td, .modalEl .previewResult code { color: var(--sm-ink-2); }
/* shim result panel: the file links are neutral tiles (section 2.5); "Reopen as saved design" is the one filled button */
.modalEl .previewResultLinks .mui-btn--accent { background-color: var(--sm-ink); color: var(--sm-on-red); }
.modalEl .previewResultLinks .mui-btn--accent:hover, .modalEl .previewResultLinks .mui-btn--accent:focus { background-color: var(--sm-ink-2); color: var(--sm-on-red); }
.previewResultHint { color: var(--sm-ink-4); }

/* ===== 2.16b Tools tab: page settings only (Dave's review) =====
   Zoom lives in the zoom bar, and every object's own tab (Text, Images, Shapes) has the alignment and layer rows,
   so the copies here only confused. Border, Toggle Guides and Snap to Grid stay: they are about the page, not an
   object. Hidden, not removed: delete this rule to bring the rows back. */
#toolsMenu .flexBoxLeftAlign { display: none; }

/* ===== 2.16c Eyedropper beside each custom colour picker (js/eyedropper.js; Chrome and Edge only) ===== */
.smEyedropper { display: inline-block; vertical-align: middle; width: 30px; height: 30px; margin: 0 0 0 6px; padding: 4px; box-sizing: border-box;
  border: 1px solid var(--sm-hairline, rgb(218 220 224)); border-radius: 6px; background-color: var(--sm-surface, rgb(255 255 255)); cursor: pointer; line-height: 0; }
.smEyedropper > img { display: block; width: 20px; height: 20px; }
.smEyedropper:hover { border-color: rgb(134 137 144); background-color: rgb(241 242 245); }
.smEyedropper:active { background-color: rgb(229 231 235); }
.smEyedropper:focus { outline: none; }
.smEyedropper:focus-visible { outline: 2px solid var(--sm-focus, rgb(4 0 0)); outline-offset: 2px; }

/* ===== 2.16d The other designer (foot of the Text tab), the simple designer's size field, engraved plate tiles ===== */
aside .smDesignerSwitch { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--sm-hairline); }
aside .smDesignerSwitch p { margin: 0 0 10px; font-size: 13px; line-height: 1.45; color: var(--sm-ink-3); }
aside .smDesignerSwitch .mui-btn { display: block; width: 100%; margin: 0; }
@media (max-width: 700px) { aside .smDesignerSwitch { margin-right: 12px; } } /* the phone-width pane has no right gutter of its own */
aside #textSize[readonly] { color: var(--sm-ink-3); background-color: var(--sm-tile); cursor: default; }
aside #textSize[readonly]:hover, aside #textSize[readonly]:focus { border-color: var(--sm-border); border-image: var(--sm-bi-field) 6 / 6px / 0 stretch; box-shadow: none; outline: none; }
/* engraved plate tiles (js/preview-shim.js adds .smPlates; the stamps' ink dots keep the engine's layout) */
#colourMenu .colSwatchContainer.smPlates { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2px; padding: 0 0 8px; }
#colourMenu .colSwatchContainer > label.colSwatch { border-radius: 6px; }
#colourMenu .colSwatchContainer > label.colSwatch .colSwatchImg { border-radius: 6px !important; }
/* the chosen plate: a red ring painted above the chip (an outline; a box-shadow sits under it) */
#colourMenu .colSwatchContainer > label.colSwatch.smPlateChosen { box-shadow: inset 0 0 0 2px var(--sm-surface); outline: 2px solid var(--sm-red); outline-offset: -4px; }
/* the keyboard focus ring (Tab, the arrow keys), not a mouse click: the radio's :focus-visible */
#colourMenu .colSwatchContainer > label.colSwatch:has(input:focus-visible) { box-shadow: 0 0 0 2px var(--sm-surface), 0 0 0 4px var(--sm-ink); }
#colourMenu .colSwatchContainer > label.colSwatch.smPlateChosen:has(input:focus-visible) { box-shadow: inset 0 0 0 2px var(--sm-surface), 0 0 0 2px var(--sm-surface), 0 0 0 4px var(--sm-ink); }

/* ===== 2.17 toastr, .blocker splash, motion ===== */
/* toasts keep toastr's 3px radius: a larger one would pass corner clicks through to the page */
#toast-container > .toast { opacity: 1; box-shadow: var(--sm-shadow-float); }
#toast-container > .toast:hover { opacity: 1; box-shadow: var(--sm-shadow-modal); }
#toast-container > .toast-error { background-color: var(--sm-error); background-image: url("../icons/alert.svg") !important; background-size: var(--sm-icon-toast) var(--sm-icon-toast); }
#toast-container > .toast-success { background-color: var(--sm-success); }
#toast-container > .toast-warning { background-color: var(--sm-warning); }
#toast-container > .toast-info { background-color: var(--sm-info); }
#toast-container > .toast .toast-progress { background-color: rgb(255 255 255); opacity: 0.45; }
.blocker { background-color: var(--sm-surface); color: var(--sm-ink-3); }
.blocker > div { position: relative; }   /* text does not move */
.blocker > div::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 200px; height: 60px; margin: 0 0 24px -100px;
  background: url("../assets/sterling-logo.svg") center / contain no-repeat; pointer-events: none; }
/* Motion: colour-only transitions; nothing scales, translates or moves. None on #mui-overlay, .modalEl or the canvases. */
@media (prefers-reduced-motion: no-preference) {
  .mui-btn, aside input[type="image"], aside .iconButton, .ui-tabs-vertical .ui-tabs-nav li a, .ui-tabs-vertical .ui-tabs-nav .menuIcon::before,
  aside input[type="text"], aside input[type="number"], aside select, .dropzone, #colourMenu .colSwatchContainer > label, #textBoxes .btn_x, #floatingMenu .floatingMenuButton button
  { transition: background-color var(--sm-ease), color var(--sm-ease), box-shadow var(--sm-ease), border-color var(--sm-ease); }
}
@media (prefers-reduced-motion: reduce) {
  .mui-btn, aside input[type="image"], aside .iconButton, .ui-tabs-vertical .ui-tabs-nav li a, .ui-tabs-vertical .ui-tabs-nav .menuIcon::before,
  aside input[type="text"], aside input[type="number"], aside select, .dropzone, #colourMenu .colSwatchContainer > label, #textBoxes .btn_x, #floatingMenu .floatingMenuButton button
  { transition: none; }
}

/* ===== 2.18 Windows High Contrast / forced colours ===== */
/* The painted white corner pieces would show on a dark system canvas, so every kit except the icon tools is
   switched off and the system draws plain borders and outlines. The icon tools opt out of colour forcing and
   keep a light tile, because their glyphs are near-black images that forced colours cannot recolour. */
@media (forced-colors: active) {
  .dropzone .dz-message::before { forced-color-adjust: none; background-color: CanvasText; }
  :root {
    --sm-bi-r8: none; --sm-bi-r8-push: none; --sm-bi-r8-focus: none; --sm-bi-r8-gap: none; --sm-bi-r8-gap-focus: none;
    --sm-bi-r8-focus-out: none; --sm-bi-r10: none; --sm-bi-r10-focus: none; --sm-bi-r6: none; --sm-bi-r6-focus: none; --sm-bi-r6-focus-out: none; --sm-bi-r12: none; --sm-bi-r12-focus: none;
    --sm-bi-field: none; --sm-bi-field-hover: none; --sm-bi-field-focus: none; --sm-bi-qty: none; --sm-bi-qty-hover: none; --sm-bi-qty-focus: none;
    --sm-bi-drop: none; --sm-bi-drop-hover: none; --sm-bi-drop-drag: none; --sm-bi-rail-focus: none;
  }
  aside input[type="image"], aside label.iconButton.iconButtonBig { forced-color-adjust: none; background-color: rgb(255 255 255); border-color: transparent; }
  aside input[type="image"]:hover, aside label.iconButton.iconButtonBig:hover { background-color: var(--sm-hover-solid); }
  aside input[type="image"]:active, aside label.iconButton.iconButtonBig:active { background-color: var(--sm-tile-press); }
  /* Highlight marks "on" (pushed, checked, active tab, page chip); keyboard focus is CanvasText, so the two never look alike */
  aside input[type="image"]:focus-visible { outline: 2px solid CanvasText; outline-offset: -3px; }
  aside input[type="image"].pushedButton, aside .iconButtonRadio:checked + label.iconButtonBig { box-shadow: inset 0 0 0 3px Highlight !important; border-image-source: var(--sm-bi-tool) !important; }
  aside .iconButtonRadio:checked + label:not(.iconButtonBig) { outline: 3px solid Highlight; outline-offset: -3px; }
  .ui-tabs-vertical .ui-tabs-nav li.ui-tabs-active .menuIcon::before { outline: 2px solid Highlight; outline-offset: -2px; }
  #pageSelectButtonContainer input[type="radio"]:checked + label { outline: 3px solid Highlight; outline-offset: -3px; }
  #colourMenu .colSwatchContainer > label.colSwatch .colSwatchImg { forced-color-adjust: none; } /* literal plate colours, like the icon tiles */
  #colourMenu label.colSwatch { outline: 1px solid ButtonText; outline-offset: -1px; }
  #colourMenu label.colSwatch.smPlateChosen { outline: 3px solid Highlight; outline-offset: -3px; }
  /* focus rings are painted by the (now disabled) kits: give every one of them a system outline, at the same specificity */
  .ui-tabs-vertical .ui-tabs-nav li:focus-visible, .ui-tabs-vertical .ui-tabs-nav li a:focus-visible,
  .mui-btn:focus-visible, .mui-btn--primary:focus-visible, .mui-btn--accent:focus-visible, #bestFitBtn:focus-visible, #AppLines:focus-visible,
  .modalEl .previewResultLinks button.mui-btn:not(.mui-btn--primary):not(.mui-btn--accent):focus-visible,
  #saveBar ul li button:focus-visible, #floatingMenu .floatingMenuButton button:focus-visible,
  #previewDiv .previewAddToCartButton:focus-visible, #textBoxes .btn_x:focus-visible,
  aside input[type="text"]:focus, aside input[type="number"].specInputNumber:focus, #textSize:focus, #textSize-curve:focus,
  aside input[type="number"]:not(.specInputNumber):not(#textSize):not(#textSize-curve):focus,
  #fontDropDown:focus, #fontDropDown-curve:focus, #productVariationDiv select:focus { outline: 2px solid CanvasText; outline-offset: -2px; }
  /* focus styles that are box-shadows elsewhere (forced colours drops them): sliders and shape swatches.
     The swatch rule repeats the (1,3,0) selector of section 2.10, so this later rule wins. */
  aside input[type="range"]:focus-visible { outline: 2px solid CanvasText; outline-offset: 2px; }
  aside :is(#charSpacing, #smCurve) { background-image: linear-gradient(CanvasText, CanvasText); }
  .smEyedropper { border-color: ButtonText; }
  #shapesMenu .colors-group .btn-color:focus-visible { outline: 2px solid CanvasText; outline-offset: -2px; }
  a.sterlingLogo > img, .blocker > div::before { forced-color-adjust: none; background-color: rgb(255 255 255); }
}
