/*!
 * ANE Schematic Designer - editor chrome.
 * The chrome has two themes, a dark and a light one:
 * --a-* tokens below, the older --sch-* names pointed at them.
 */

/*
 * Two themes: a dark workspace (the default) and a light one, switched from
 * the toolbar and remembered in the browser. The drawing itself does not
 * change with the theme - a schematic is a sheet of paper and a board is
 * copper on a dark ground in both; only the workspace and the panels around
 * them do.
 */
.ane-sch {
  /*
   * ---- dark: the default, graphite with a slight green tint ----
   * Layered surfaces a few steps apart, the ANE green for focus, the active
   * bar and the current item, and a lime reserved for highlights.
   */
  /* surfaces and borders */
  --a-window: #1D2320;        /* app ground, title row, toolbar, status bar */
  --a-border: #0E1310;        /* outer borders, dock / canvas separators */
  --a-border-in: #2A322E;     /* row lines, region separators */
  --a-panel: #232A26;         /* panel bodies */
  --a-panel-border: #2A322E;
  --a-caption: #1D2320;       /* panel caption bar */
  --a-caption-act: #26302B;   /* caption of the focused panel */
  --a-group: #1D2320;         /* strip behind the bottom group tabs */
  --a-header: #2A322E;        /* region header band, grid column header */
  --a-plain: #202724;         /* empty lists, dialog wells */
  --a-field: #171C19;
  --a-field-border: #6E7A73;
  --a-field-dis: #202724;
  /* text */
  --a-text: #E3E8E5;
  --a-text-strong: #F4F7F5;
  --a-text-faded: #A6AFAA;
  --a-text-dis: #78837D;
  --a-tab-text: #C3CBC6;      /* panel and document tabs that are not chosen */
  /* menus, separators, interaction */
  --a-menu: #262E2A;
  --a-menu-hover: #303833;
  --a-menu-hover-text: #F4F7F5;
  --a-sep-a: #2F3833;
  --a-sep-b: transparent;
  --a-hover: #2C3530;
  --a-press: #343E38;
  /* buttons */
  --a-btn-top: #2F3833;
  --a-btn-bot: #2F3833;
  --a-btn-hot-top: #39423D;
  --a-btn-hot-bot: #39423D;
  --a-btn-border: #6E7A73;
  --a-btn-text: #E3E8E5;
  --a-btn-glare: transparent;
  /* the one accent, focus and selection */
  --a-acc: #03B62E;
  --a-acc-strong: #025D23;
  --a-acc-text: #47CF6E;
  --a-focus: #BCD61A;
  --a-sel: #2B5A3C;
  --a-sel-text: #F4F7F5;
  --a-sel-border: transparent;
  --a-sel-inact: #36403B;
  --a-sel-2: #26352C;
  /* status, special purpose, tooltips */
  --a-close-hot: #7A1F1A;
  --a-close-press: #5E1713;
  --a-err: #FF8A80;
  --a-warn: #F2B84B;
  --a-ok: #5FD38A;
  --a-mixed: #E9D77A;
  --a-hit: #BCD61A;
  --a-hit-cur: #D7EC5A;
  --a-hit-text: #141A05;
  --a-tip-bg: #0B100D;
  --a-tip-border: #3A4640;
  --a-tip-text: #E3E8E5;
  /* scrollbars, drawing bar, previews, layer bar */
  --a-scroll: #66746C;
  --a-scroll-hot: #7D8B83;
  --a-abar-bg: rgba(23,29,26,.96);
  --a-abar-border: #3A4640;
  --a-abar-mark: #A6AFAA;     /* the multi-function chevron */
  --a-pv-top: #F9FBF9;
  --a-pv-bot: #F9FBF9;
  --a-sheet-edge: #C5CEC8;    /* the hairline round a drawing on the sheet's paper: the same in both themes */
  --a-layerbar: #1D2320;
  --a-layer-tab: #1D2320;
  --a-layer-tab-on: #26302B;
  --a-layer-text: #C3CBC6;
  --a-layer-border: #6E7A73;
  --a-layer-on-top: #03B62E;
  /* documents bar */
  --a-doc-strip: #131915;
  --a-doc-tab: #131915;
  --a-doc-tab-hot: #1F2723;
  --a-doc-tab-on: #232A26;
  /* around the canvases */
  --a-sch-desk: #101512;
  --a-pcb-desk: #161B18;
  /* ANE additions: hairline, icon ink, filled primary, bar, lime highlight, selected-row edges */
  --a-sep: #2F3833;
  --a-icon: #C3CBC6;
  --a-icon-acc: #47CF6E;
  --a-btn-pri: #025D23;
  --a-btn-pri-hot: #03702A;
  --a-btn-pri-press: #014A1C;
  --a-btn-pri-edge: #03B62E;
  --a-btn-pri-text: #F4F7F5;
  --a-bar: #03B62E;
  --a-hi: #BCD61A;
  --a-hi-edge: #BCD61A;
  --a-hi-wash: rgba(188,214,26,.16);
  --a-hi-text: #D7EC5A;
  --a-sel-edge: transparent;
  --a-sel-inact-edge: #7D8A83;
  --a-info: #47CF6E;
  --a-tip-key: #A6AFAA;
  --a-tip-key-bg: #1F2723;
  --a-icon-w: 2;
  /* shape, elevation, motion, type */
  --a-r: 0;                   /* docked edges, panels, strips, rows */
  --a-r-ctl: 4px;             /* buttons, inputs, selects, segmented ends */
  --a-r-pop: 4px;             /* menus, tooltips, dialogs, toasts, flyouts, the frame */
  --a-r-chip: 2px;            /* chips, keycaps, swatches */
  --a-r-abar: 4px;
  --a-shadow-menu: 0 4px 12px rgba(4, 8, 6, .45), 0 0 0 1px #0E1310;
  --a-shadow-dlg: 0 12px 32px rgba(4, 8, 6, .55);
  --a-shadow-abar: 0 2px 8px rgba(4, 8, 6, .40);
  --a-ease: cubic-bezier(0.23, 1, 0.32, 1);       /* strong ease-out: everything that fades in */
  --a-ease-move: cubic-bezier(0.77, 0, 0.175, 1); /* the phone drawer's slide only */
  --a-fast: 90ms;             /* hover and press colour changes */
  --a-med: 160ms;             /* tooltip and toast in */
  --a-dlg-in: 120ms;          /* dialog fade-in */
  --a-out: 110ms;             /* exits */
  --a-trans: background-color var(--a-fast) var(--a-ease), color var(--a-fast) var(--a-ease), border-color var(--a-fast) var(--a-ease), box-shadow var(--a-fast) var(--a-ease);
  --a-pop: opacity var(--a-med) var(--a-ease), transform var(--a-med) var(--a-ease);
  --a-font: system-ui, "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, "Noto Sans Hebrew", "Arial Hebrew", sans-serif;
  --a-font-mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace;
  --a-font-sheet: "Barlow Semi Condensed", Bahnschrift, "DIN Alternate", "Roboto Condensed", "Arial Narrow", "Liberation Sans Narrow", "DejaVu Sans Condensed", "Noto Sans Hebrew", sans-serif;
  --a-fs: 12px;
  --a-lh: 16px;
  --a-fs-sm: 11px;
  --a-fs-h: 13px;             /* dialog titles, panel region heads */

  /*
   * The names the rest of this sheet was written against, pointed at the
   * tokens above. They are declared once: a custom property that refers to
   * another resolves on the element itself, so the light block below only
   * has to restate the --a-* values and the few literals.
   */
  --sch-ink: var(--a-text);
  --sch-ink-2: #C3CBC6;
  --sch-ink-3: #8E9893;
  --sch-muted: var(--a-text-faded);
  --sch-line: var(--a-border);
  --sch-line-2: var(--a-border-in);
  --sch-bg: var(--a-panel);           /* panels */
  --sch-bg-2: var(--a-window);        /* toolbars, side panels, headers */
  --sch-bg-3: var(--a-hover);         /* hover */
  --sch-raised: var(--a-caption);     /* the chosen segment, chips */
  --sch-field: var(--a-field);        /* inputs */
  --sch-field-line: var(--a-field-border);
  --sch-field-hover: #8E9893;
  --sch-desk: var(--a-sch-desk);      /* the workspace behind the sheet */
  --sch-menubar: var(--a-window);
  --sch-menubar-ink: var(--a-text);
  --sch-menubar-hover: var(--a-menu-hover);
  --sch-overlay: var(--a-abar-bg);
  --sch-navy: #0B100D;
  --sch-gold: #F2B84B;
  --sch-acc: var(--a-acc);
  --sch-acc-ink: var(--a-acc-text);   /* accent as text */
  --sch-acc-strong: var(--a-acc-strong); /* accent under white text */
  --sch-acc-soft: rgba(3,182,46,.16);
  --sch-on-acc: #F4F7F5;
  --sch-warn: var(--a-warn);
  --sch-warn-soft: rgba(242,184,75,.12);
  --sch-warn-strong: #8A5300;
  --sch-err: var(--a-err);
  --sch-err-soft: rgba(255,138,128,.12);
  --sch-err-strong: #B42318;
  --sch-note-ink: #E9D77A;
  --sch-note-bg: rgba(188,214,26,.08);
  --sch-note-line: rgba(188,214,26,.30);
  --sch-bad-ink: #FF8A80;
  --sch-bad-bg: rgba(255,138,128,.10);
  --sch-bad-line: rgba(255,138,128,.34);
  /* a change sheet's own three kinds: added, dropped, changed */
  --sch-add-ink: #5FD38A;
  --sch-add-line: rgba(95,211,138,.45);
  --sch-drop-ink: #FF8A80;
  --sch-drop-line: rgba(255,138,128,.45);
  --sch-change-ink: #F2B84B;
  --sch-change-line: rgba(242,184,75,.45);
  --sch-scroll: var(--a-scroll);
  --sch-scroll-h: var(--a-scroll-hot);
  --sch-paper: #F9FBF9;       /* the schematic sheet, in both themes */
  --sch-paper-ink: #18201B;
  --sch-pcb-bg: #0C1A12;      /* the board, in both themes */
  --sch-r: var(--a-r-pop);
  --sch-r-sm: var(--a-r-chip);
  --sch-pill: var(--a-r-chip);
  --sch-shadow: var(--a-shadow-menu);
  --sch-pop: var(--a-shadow-menu), 0 0 0 1px var(--a-border);
  --sch-ease: var(--a-ease);
  --sch-side: 244px;
  --sch-panel: 292px;

  /*
   * The short names the inspector and the application panel were written
   * against, declared once so they follow the theme.
   */
  --ink: var(--sch-ink);
  --ink-2: var(--sch-ink-2);
  --ink-3: var(--sch-ink-3);
  --muted: var(--sch-muted);
  --line: var(--sch-line);
  --bg-2: var(--sch-bg-2);
  --bg-3: var(--sch-bg-3);
  --accent: var(--sch-acc);
  --accent-ink: var(--sch-acc-ink);
  --r-sm: var(--sch-r-sm);
  --r-pill: var(--sch-pill);

  display: grid;
  /* the title row (menus + document tools), the docks and sheet, the status bar */
  grid-template-rows: auto 1fr auto;
  height: var(--ane-sch-h, 720px);
  min-height: 460px;
  /* embedded in a page: a hairline frame and a low shadow, square corners */
  border: 1px solid var(--a-border);
  border-radius: var(--a-r-pop);
  background: var(--a-window);
  box-shadow: var(--a-shadow-abar);
  overflow: hidden;
  position: relative;
  color: var(--a-text);
  color-scheme: dark;
  font: 400 var(--a-fs)/var(--a-lh) var(--a-font);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

/* ---- light: the same family on a pale ground ---- */
.ane-sch[data-theme="light"] {
  --a-window: #E5ECE8;
  --a-border: #BDC3BF;
  --a-border-in: #D6DCD9;
  --a-panel: #F6FEF8;
  --a-panel-border: #D6DCD9;
  --a-caption: #E5ECE8;
  --a-caption-act: #DCE4DD;
  --a-group: #E5ECE8;
  --a-header: #E8F0E8;
  --a-plain: #EDF5EF;
  --a-field: #FBFFFC;
  --a-field-border: #7A837E;
  --a-field-dis: #E9F1EB;
  --a-text: #1B211E;
  --a-text-strong: #0E1310;
  --a-text-faded: #535955;
  --a-text-dis: #7E8681;
  --a-tab-text: #353C38;
  --a-menu: #FAFFFC;
  --a-menu-hover: #EAF2EC;
  --a-menu-hover-text: #0E1310;
  --a-sep-a: #C9CFCB;
  --a-sep-b: transparent;
  --a-hover: #EAF2EB;
  --a-press: #DDE5DF;
  --a-btn-top: #FAFFFC;
  --a-btn-bot: #FAFFFC;
  --a-btn-hot-top: #EEF6EE;
  --a-btn-hot-bot: #EEF6EE;
  --a-btn-border: #7A837E;
  --a-btn-text: #1B211E;
  --a-btn-glare: transparent;
  --a-acc-text: #037029;
  --a-focus: #04782E;
  --a-sel: #D5EBDB;
  --a-sel-text: #0E1310;
  --a-sel-border: transparent;
  --a-sel-inact: #E7EFE7;
  --a-sel-2: #E6EEE6;
  --a-err: #B42318;
  --a-warn: #8A5300;
  --a-ok: #07702F;
  --a-mixed: #6E5A00;
  --a-scroll: #8E9893;
  --a-scroll-hot: #6E7A73;
  --a-abar-bg: rgba(250,255,252,.97);
  --a-abar-border: #BDC3BF;
  --a-abar-mark: #535955;
  --a-pv-top: #F9FBF9;
  --a-pv-bot: #F9FBF9;
  --a-sheet-edge: #C5CEC8;    /* the hairline round a drawing on the sheet's paper: the same in both themes */
  --a-layerbar: #E5ECE8;
  --a-layer-tab: #E5ECE8;
  --a-layer-tab-on: #FAFFFC;
  --a-layer-text: #353C38;
  --a-layer-border: #7A837E;
  --a-layer-on-top: #048A33;
  --a-doc-strip: #EAF2EC;
  --a-doc-tab: #EAF2EC;
  --a-doc-tab-hot: #F4FCF4;
  --a-doc-tab-on: #F6FEF8;
  --a-sch-desk: #CBD1CD;
  --a-sep: #C9CFCB;
  --a-icon: #0E1310;
  --a-icon-acc: #037029;
  --a-btn-pri: #025D23;
  --a-btn-pri-hot: #03702A;
  --a-btn-pri-press: #014A1C;
  --a-btn-pri-edge: #025D23;
  --a-btn-pri-text: #F4F7F5;
  --a-acc: #03B62E;
  --a-acc-strong: #025D23;
  --a-bar: #048A33;
  --a-hi: #BCD61A;
  --a-hi-edge: #5E6E00;
  --a-hi-wash: rgba(188,214,26,.30);
  --a-hi-text: #4D5A00;
  --a-sel-edge: #048A33;
  --a-sel-inact-edge: #7A837E;
  --a-close-hot: #F6D9D6;
  --a-close-press: #EDC2BD;
  --a-info: #037029;
  --a-hit: #CFE05A;
  --a-hit-cur: #9DB80F;
  --a-hit-text: #141A05;
  --a-tip-bg: #17201B;
  --a-tip-border: #17201B;
  --a-tip-text: #EEF2EF;
  --a-tip-key: #B3BDB7;
  --a-tip-key-bg: #2A332E;
  --a-pcb-desk: #B9C4BC;
  --a-shadow-menu: 0 4px 12px rgba(27, 33, 30, .16), 0 0 0 1px #BDC3BF;
  --a-shadow-dlg: 0 12px 32px rgba(27, 33, 30, .22);
  --a-shadow-abar: 0 2px 8px rgba(27, 33, 30, .14);
  --sch-gold: #8A5300;

  --sch-ink-2: #353C38;
  --sch-ink-3: #66706A;
  --sch-field-hover: #5E6863;
  --sch-navy: #17201B;
  --sch-acc-soft: rgba(3,182,46,.14);
  --sch-warn-soft: #F6EEDC;
  --sch-warn-strong: #8A5300;
  --sch-err-soft: #F7E1DE;
  --sch-err-strong: #B42318;
  --sch-note-ink: #4D5A00;
  --sch-note-bg: #F3F7DF;
  --sch-note-line: #D5DE9E;
  --sch-bad-ink: #8E1F14;
  --sch-bad-bg: #FBEEEC;
  --sch-bad-line: #EBC9C3;
  --sch-add-ink: #07702F;
  --sch-add-line: #A9D9B7;
  --sch-drop-ink: #B42318;
  --sch-drop-line: #E6B3AC;
  --sch-change-ink: #8A5300;
  --sch-change-line: #DCC08A;
  color-scheme: light;
}

.ane-sch *,
.ane-sch *::before,
.ane-sch *::after { box-sizing: border-box; }

/* every control speaks in the panel's own font, not the browser's 13.33px Arial */
/* zero specificity: it still beats the UA's 13.33px Arial and buttontext,
   but every component rule that names its own colour or size wins over it */
:where(.ane-sch) :where(button, input, select, textarea) { font: inherit; color: inherit; }

:where(.ane-sch) :where(b, strong, th) { font-weight: 600; }
.ane-sch ::selection { background: var(--a-hi-wash); color: var(--a-text); }
.ane-sch :where(input, textarea, select, [contenteditable]) { caret-color: var(--a-acc-text); }
.ane-sch :where(a:not([class])) { color: var(--a-acc-text); text-underline-offset: 2px; }

.ane-sch :focus-visible {
  outline: 2px solid var(--a-focus);
  outline-offset: -2px;
}

/* Icons: Tabler Icons 3.35.0 (MIT) and ANE's EDA glyphs, 24 grid, stroke 2 (1.5 at >= 2dppx) */
.ane-sch { --a-icon-w: 2; }
@media (min-resolution: 2dppx) { .ane-sch { --a-icon-w: 1.5; } }
.ane-sch-i--c { overflow: visible; color: inherit; }
.ane-sch-i--c path { stroke-width: var(--a-icon-w); }
.ane-sch-i--c path.ane-sch-i__heavy { stroke-width: calc(var(--a-icon-w) * 1px + 1.5px); }
.ane-sch-i__k  { fill: none; stroke: currentColor; }
.ane-sch-i__a  { fill: none; stroke: var(--a-icon-acc); }
.ane-sch-i__af { fill: var(--a-icon-acc); stroke: none; }
.ane-sch-i__d  { fill: currentColor; fill-opacity: .14; stroke: none; }
.ane-sch :is(.ane-sch__b, .ane-sch__menu-b, .ane-sch__m-ic, .ane-sch__dock-b) { color: var(--a-icon); }
.ane-sch :is(.ane-sch__b, .ane-sch__dock-b):hover:not(:disabled) { color: var(--a-text-strong); }
.ane-sch :disabled .ane-sch-i--c :is(.ane-sch-i__a, .ane-sch-i__af) { stroke: currentColor; fill: currentColor; }
.ane-sch :is(.is-primary, .ane-sch__wide--acc, .ane-sch__simbtn--acc, .ane-sch__pv-b.is-primary) .ane-sch-i--c :is(.ane-sch-i__a, .ane-sch-i__k) { stroke: currentColor; }
.ane-sch :is(.is-primary, .ane-sch__wide--acc, .ane-sch__simbtn--acc, .ane-sch__pv-b.is-primary) .ane-sch-i--c .ane-sch-i__af { fill: currentColor; }
.ane-sch .is-danger:hover, .ane-sch [data-act="delete"]:hover { color: var(--a-err); }
.ane-sch :is(.ane-sch__b, .ane-sch__wide).is-danger:hover:not(:disabled) { color: var(--a-err); }
.ane-sch .ane-sch__m-i.is-danger:hover:not([disabled]) .ane-sch__m-ic { color: var(--a-err); }
[dir="rtl"] .ane-sch-i--flip { transform: scaleX(-1); }

/*
 * Motion: a hover only fades its colours, briefly and evenly;
 * nothing pops, scales or slides. Each rule that animates says so itself.
 */

/* scrollbars: an 8px rounded thumb inset in a 12px gutter, on no track */
.ane-sch ::-webkit-scrollbar { width: 12px; height: 12px; }
.ane-sch ::-webkit-scrollbar-track,
.ane-sch ::-webkit-scrollbar-corner { background: transparent; }
.ane-sch ::-webkit-scrollbar-thumb { background: var(--a-scroll); border-radius: 4px; border: 2px solid transparent; background-clip: padding-box; }
.ane-sch ::-webkit-scrollbar-thumb:hover { background: var(--a-scroll-hot); background-clip: padding-box; }
/* Chromium drops the ::-webkit-scrollbar skin as soon as either standard
   property is set, so the standard pair is for the browsers without it */
@supports not selector(::-webkit-scrollbar) {
  .ane-sch * { scrollbar-width: thin; scrollbar-color: var(--a-scroll) transparent; }
}

/* ---------------- title row and toolbar ---------------- */

/*
 * .ane-sch__top holds the menus, the document's name and the document tools,
 * in that order: the eye starts at the menus, the name says where you are,
 * the tools sit together at the end. A wide editor lays them out as one 32px
 * row of three cells (see the min-width: 1101px block below); a narrower one
 * stacks them, menus (and the name beside them) first.
 */
.ane-sch__top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  min-width: 0;
  background: var(--a-window);
}
.ane-sch__top > .ane-sch__menubar { grid-column: 1; grid-row: 1; }
.ane-sch__top > .ane-sch__docname { grid-column: 2; grid-row: 1; justify-self: end; }
.ane-sch__top > .ane-sch__bar { grid-column: 1 / -1; grid-row: 2; order: 3; }
.ane-sch__top > .ane-sch__util { grid-column: 3; grid-row: 1; display: flex; align-items: center; gap: 2px; padding-inline: 4px 6px; min-width: 0; }
.ane-sch__top > .ane-sch__util:empty { display: none; }
@media (min-width: 901px) {
  .ane-sch__top > .ane-sch__docname { justify-self: center; }
  .ane-sch__top > .ane-sch__util .ane-sch__b { width: 24px; height: 24px; }
  .ane-sch__top > .ane-sch__util .ane-sch__b--lang { width: auto; padding-inline: 6px; }
  .ane-sch__top > .ane-sch__util .ane-sch__app-b,
  .ane-sch__top > .ane-sch__util .ane-sch__panels-b { width: 24px; height: 24px; }
  .ane-sch__top > .ane-sch__util .ane-sch__site-b { margin-inline-start: 6px; }
}

.ane-sch__bar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: var(--sch-bg-2);
  border-bottom: 1px solid var(--sch-line);
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.ane-sch__bar::-webkit-scrollbar { display: none; }

.ane-sch__grp {
  display: flex;
  align-items: center;
  gap: 1px;
  flex: 0 0 auto;
}
/* groups part on one hairline */
.ane-sch__bar > .ane-sch__grp + .ane-sch__grp::before {
  content: "";
  flex: none;
  width: 1px;
  height: 14px;
  margin-inline: 6px;
  border-radius: 1px;
  background: var(--a-sep);
  box-shadow: none;
}

.ane-sch__grp--end { margin-inline-start: auto; }

.ane-sch__b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid transparent;
  border-radius: var(--a-r-ctl);
  background: transparent;
  color: var(--a-text);
  cursor: pointer;
  padding: 0;
  transition: var(--a-trans);
}
.ane-sch__b:hover { background: var(--a-hover); border-color: var(--a-btn-border); color: var(--a-text-strong); }
.ane-sch__b:active { background: var(--a-press); }
.ane-sch__b.is-on,
.ane-sch__b[aria-pressed="true"] {
  background: var(--a-press);
  border-color: var(--a-acc);
  color: var(--a-text-strong);
}
.ane-sch__b.is-on:hover { background: var(--a-press); border-color: var(--a-acc); }
.ane-sch__b[disabled] { opacity: .4; cursor: default; }
.ane-sch .ane-sch__b[disabled], .ane-sch .ane-sch__b[disabled]:hover { color: var(--a-text-dis); }
.ane-sch__b[disabled]:hover { background: transparent; border-color: transparent; color: var(--a-text-dis); }
.ane-sch__b--mobile { display: none; }

/* the language switch: the globe and the other language, named in itself */
.ane-sch__b--lang {
  width: auto;
  gap: 4px;
  padding: 0 6px 0 4px;
  font-size: var(--a-fs-sm);
  font-weight: 400;
  white-space: nowrap;
}
.ane-sch[dir="rtl"] .ane-sch__b--lang { padding: 0 4px 0 6px; }
.ane-sch__b--lang .ane-sch-i { flex: none; }
.ane-sch__b-lang { line-height: 1; }
/* a desktop row names the other language by its short form, "EN" / "עב";
   the full name stays the label's text (and the button says it in full) */
@media (min-width: 901px) {
  .ane-sch__bar .ane-sch__b--lang { gap: 3px; padding: 0 4px 0 3px; }
  .ane-sch[dir="rtl"] .ane-sch__bar .ane-sch__b--lang { padding: 0 3px 0 4px; }
  .ane-sch__b-lang[data-short] { font-size: 0; line-height: 1; }
  .ane-sch__b-lang[data-short]::before { content: attr(data-short); font-size: var(--a-fs-sm); line-height: 1; }
}


/* ---------------- export menu ---------------- */

.ane-sch__menu {
  position: absolute;
  z-index: 40;
  min-width: 220px;
  padding: 4px;
  background: var(--a-menu);
  border: 0;
  border-radius: var(--a-r-pop);
  box-shadow: var(--a-shadow-menu);
}
.ane-sch__menu[hidden] { display: none; }

.ane-sch__menu-b {
  display: grid;
  grid-template-columns: 16px 1fr;
  align-items: center;
  column-gap: 8px;
  width: 100%;
  height: 28px;
  padding: 0;
  padding-inline: 8px;
  border: 0;
  border-radius: var(--a-r-ctl);
  background: transparent;
  color: var(--a-text);
  font: inherit;
  text-align: start;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--a-trans);
}
.ane-sch__menu-b:hover,
.ane-sch__menu-b:focus-visible { background: var(--a-menu-hover); color: var(--a-menu-hover-text); }
.ane-sch__menu-b:active { background: var(--a-press); }
.ane-sch__menu-b .ane-sch-i { color: var(--a-text); width: 16px; height: 16px; }
.ane-sch__menu-b > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
@media (pointer: coarse) { .ane-sch__menu-b { height: auto; min-height: 36px; } }
/* the order row is an ordinary row under a separator; its icon carries the colour */
.ane-sch__menu-b--acc {
  color: var(--a-text);
  font-weight: 400;
}
/* a separator above it, as the menus have theirs: the menu's full width */
.ane-sch__menu-b--acc::before {
  content: "";
  position: absolute;
  top: -5px;
  inset-inline: -4px;
  height: 1px;
  background: var(--a-sep);
}
.ane-sch__menu-b--acc { position: relative; margin-top: 9px; }
.ane-sch__menu-b--acc .ane-sch-i { color: var(--a-acc-text); }
.ane-sch__menu-b--acc:hover .ane-sch-i,
.ane-sch__menu-b--acc:focus-visible .ane-sch-i { color: inherit; }

/* ---------------- body ---------------- */

.ane-sch__body {
  position: relative;
  display: grid;
  grid-template-columns: var(--sch-side) 1fr var(--sch-panel);
  min-height: 0;
  background: var(--a-border);
}

/* ---------------- parts palette ---------------- */

.ane-sch__side {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--a-panel);
  border-inline-end: 1px solid var(--a-border);
}

.ane-sch__search {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 4px;
  height: 24px;
  background: var(--a-field);
  border: 1px solid var(--a-field-border);
  border-radius: var(--a-r-ctl);
  color: var(--a-text-faded);
  transition: var(--a-trans);
}
.ane-sch__search .ane-sch-i { width: 16px; height: 16px; flex: none; }
.ane-sch__search:hover { border-color: var(--sch-field-hover); }
.ane-sch__search:focus-within { border-color: var(--a-focus); }
.ane-sch__search-i {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  color: var(--sch-ink);
  outline: none;
  /* the box takes both a Hebrew word and a part number, so it lays each one
     out the way that word reads rather than the way the panel does */
  unicode-bidi: plaintext;
}
.ane-sch__search-i::placeholder { color: var(--sch-muted); }
.ane-sch__search-i:placeholder-shown::-webkit-search-cancel-button { display: none; }
.ane-sch__search-i::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; width: 14px; height: 14px; margin: 0 0 0 4px; cursor: pointer; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18 6L6 18M6 6l12 12' stroke='%23000' stroke-width='2.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px 14px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18 6L6 18M6 6l12 12' stroke='%23000' stroke-width='2.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px 14px no-repeat; }

.ane-sch__palette { flex: 1; min-height: 0; overflow: auto; padding: 0 0 4px; }

/* ---------------- the board in three dimensions ---------------- */

.ane-sch__cv3d {
  position: absolute;
  top: var(--a-doc-h);
  inset-inline: 0;
  display: block;
  width: 100%;
  height: calc(100% - var(--a-doc-h));
  touch-action: none;
  cursor: grab;
}
/* an author rule beats the browser's own [hidden], so it has to be said here
   or the canvas keeps covering the flat board after switching back */
.ane-sch__cv3d[hidden] { display: none; }
.ane-sch__cv3d:active { cursor: grabbing; }
/* an inset shadow on a canvas is painted under its own bitmap, so the focus
   ring has to be a real outline or a keyboard user cannot see where they are */
.ane-sch__cv3d:focus-visible { outline: 2px solid var(--a-focus); outline-offset: -2px; }

/*
 * Segmented controls: joined push buttons - one gradient strip, a
 * 2px radius on its outer corners only, the chosen one in the accent.
 */
.ane-sch__seg {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 0;
  margin-bottom: 6px;
  border: 0;
  border-radius: 0;
  background: none;
}
.ane-sch__seg--wrap { flex-wrap: wrap; }
.ane-sch__seg-b {
  flex: 1 1 auto;
  min-width: 0;
  height: 22px;
  padding: 0 8px;
  border: 1px solid var(--a-btn-border);
  border-radius: 0;
  background: var(--a-btn-top);
  color: var(--a-btn-text);
  font-size: var(--a-fs);
  line-height: 20px;
  font-weight: 400;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--a-trans);
}
.ane-sch__seg-b + .ane-sch__seg-b { margin-inline-start: -1px; }
.ane-sch__seg-b:first-child { border-start-start-radius: var(--a-r-ctl); border-end-start-radius: var(--a-r-ctl); }
.ane-sch__seg-b:last-child { border-start-end-radius: var(--a-r-ctl); border-end-end-radius: var(--a-r-ctl); }
.ane-sch__seg-b:hover { background: var(--a-btn-hot-top); }
.ane-sch__seg-b:active { background: var(--a-press); }
.ane-sch__seg-b.is-on,
.ane-sch__seg-b.is-on:hover { position: relative; background: var(--a-sel); border-color: var(--a-btn-border); box-shadow: inset 0 -2px 0 var(--a-bar); color: var(--a-sel-text); }
.ane-sch__seg-b:focus-visible { position: relative; z-index: 1; outline: 2px solid var(--a-focus); outline-offset: -2px; }

/* ---------------- net classes, pairs and lengths ---------------- */

.ane-sch__nc {
  margin: 8px 0;
  padding: 8px;
  border: 1px solid var(--sch-line);
  border-radius: var(--a-r);
  background: var(--sch-bg-2);
}
.ane-sch__nc-h { display: flex; align-items: center; gap: 7px; }
.ane-sch__nc-h > input[type="text"] { flex: 1; min-width: 0; }
.ane-sch__nc-sw { width: 12px; height: 12px; border-radius: var(--a-r); flex: none; }
.ane-sch__nc-sub { font-size: var(--a-fs-sm); color: var(--sch-ink-2); }
.ane-sch__nc-x {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px; height: 24px;
  border: 1px solid transparent; border-radius: var(--a-r-ctl);
  background: transparent;
  color: var(--a-text-faded);
  cursor: pointer;
}
.ane-sch__nc-x:hover { background: var(--a-close-hot); border-color: var(--a-close-hot); color: var(--a-text-strong); }
.ane-sch__nc-x:focus-visible { outline: 2px solid var(--a-focus); outline-offset: 1px; }
.ane-sch__nc-r { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 7px; }
.ane-sch__ncf { display: grid; gap: 2px; min-width: 0; }
.ane-sch__ncf-l { font-size: var(--a-fs-sm); color: var(--sch-ink-2); }
.ane-sch__in--xs { height: 22px; font-size: var(--a-fs); padding: 0 4px; }
.ane-sch__nc-d { margin-top: 7px; font-size: var(--a-fs); }
.ane-sch__nc-d > summary { cursor: pointer; color: var(--sch-ink-2); }
.ane-sch__nc-nets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 8px;
  margin-top: 6px;
  max-height: 168px;
  overflow: auto;
}
.ane-sch__nc-net { display: flex; align-items: center; gap: 5px; font-size: var(--a-fs-sm); min-width: 0; }
.ane-sch__nc-net > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ane-sch__act--full { grid-column: 1 / -1; width: 100%; margin-top: 7px; }

.ane-sch__lentab { margin-top: 6px; border: 1px solid var(--sch-line); border-radius: var(--a-r); overflow: hidden; }
.ane-sch__len {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 6px;
  padding: 5px 8px;
  font-size: var(--a-fs-sm);
  border-top: 1px solid var(--sch-line);
}
.ane-sch__len:first-child { border-top: 0; }
.ane-sch__len--h { background: var(--sch-bg-2); font-weight: 400; color: var(--sch-ink-2); }
.ane-sch__len > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ane-sch__len > span:nth-child(2),
.ane-sch__len > span:nth-child(3) { font-variant-numeric: tabular-nums; direction: ltr; }

/* text only a screen reader reads */
.ane-sch__sr {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* a board page has no symbol library to offer, so the canvas takes the room */
/* a board has no symbol library, so its side panel is the project alone */
.ane-sch.is-board .ane-sch__ptab--lib { display: none; }
/* the wire button stays: on a board it is the route tool */
/* the drawing bar of a board offers what a board does: select, route, align, erase. A part comes onto it from the
   schematic, and a ground symbol, a bus, a net name, a port and a note belong to the drawing, not the copper. */
.ane-sch.is-board .ane-sch__b[data-tool="label"],
.ane-sch.is-board .ane-sch__b[data-tool="note"],
.ane-sch.is-board .ane-sch__b[data-tool="bus"],
.ane-sch.is-board .ane-sch__b[data-tool="port"],
.ane-sch.is-board .ane-sch__b[data-act="ab-part"],
.ane-sch.is-board .ane-sch__b[data-act="ab-power"],
.ane-sch.is-board .ane-sch__ab-more[data-more="part"],
.ane-sch.is-board .ane-sch__ab-more[data-more="power"],
.ane-sch.is-board .ane-sch__abar-sep--sch { display: none; }
/* length tuning is a board tool: the schematic does not offer it */
.ane-sch:not(.is-board) .ane-sch__b[data-tool="tune"] { display: none; }

.ane-sch__cat-h {
  margin: 0 0 4px;
  font-size: var(--a-fs);
  line-height: 20px;
  font-weight: 600;
  color: var(--a-text-faded);
}

/* ---------------- stage ---------------- */

.ane-sch__stage { position: relative; min-width: 0; min-height: 0; background: var(--sch-desk); }

.ane-sch__svg {
  display: block;
  width: 100%;
  height: 100%;
  direction: ltr;
  touch-action: none;
  cursor: default;
}
/* A small cursor for every tool that places or draws; the arrow for select */
.ane-sch__stage[data-tool="wire"] .ane-sch__svg,
.ane-sch__stage[data-tool="bus"] .ane-sch__svg,
.ane-sch__stage[data-tool="label"] .ane-sch__svg,
.ane-sch__stage[data-tool="port"] .ane-sch__svg,
.ane-sch__stage[data-tool="note"] .ane-sch__svg,
.ane-sch__stage.is-placing .ane-sch__svg { cursor: crosshair; }
.ane-sch__stage[data-tool="erase"] .ane-sch__svg { cursor: not-allowed; }
/* the 2D board sits on its own desk (graphite in the dark theme, sage in the light one) */
.ane-sch.is-board .ane-sch__stage { background: var(--a-pcb-desk); }

/*
 * The board's live highlight: a dark stroke under a pale outline round what
 * the pointer is on. It is drawn at once and gone at once, with no fade; the
 * group is kept from frame to frame and refilled.
 */
.ane-sch .ane-pcb-live { pointer-events: none; transition: none; }

/*
 * The cursor readout: a small chip at the canvas's bottom-start corner, 48px in from the edge
 * (clear of the 32px drawing-tools bar and its 8px inset), growing upward. Its rows run
 * left to right whatever the language; the board is dark in both themes, so the chip is too.
 */
.ane-sch__hud {
  position: absolute; inset-inline-start: 48px; bottom: 8px; z-index: 2;
  display: flex; flex-direction: column-reverse; align-items: stretch; gap: 2px;
  pointer-events: none; user-select: none;
  padding: 4px 8px; border-radius: var(--a-r-pop);
  background: rgba(11, 17, 13, .86); box-shadow: var(--a-shadow-abar); text-shadow: none;
  font: 400 12px/16px var(--a-font-mono); color: var(--a-hud, #E3E8E5);
  font-variant-numeric: tabular-nums; white-space: pre;
}
.ane-sch__hud[hidden] { display: none; }
/* each row is left to right; the detail's parts are <bdi>s of their own inside it */
.ane-sch__hud-r { direction: ltr; unicode-bidi: isolate; text-align: left; }
.ane-sch__hud-r[hidden] { display: none; }
.ane-sch__hud-r--net { font-size: 11px; line-height: 14px; color: var(--a-hud-detail, #A8B5AD); }
.ane-sch.is-3d .ane-sch__hud { display: none; }

/*
 * Length tuning: the tool's bar, a raised chip at the canvas's top-start
 * corner beside the drawing-tools bar. Settings on two rows, then the
 * readout - current / target / tolerance in the mono numerals of the
 * cursor readout, green inside the tolerance, amber short of it, red past it.
 */
.ane-sch__stage[data-tool="tune"] .ane-sch__svg { cursor: crosshair; }
.ane-sch__tune {
  position: absolute; top: calc(var(--a-doc-h) + 8px); inset-inline-start: 48px; z-index: 15;
  display: flex; flex-direction: column; gap: 6px;
  max-width: calc(100% - 64px); padding: 6px 8px;
  background: var(--a-abar-bg); border: 1px solid var(--a-abar-border);
  border-radius: var(--a-r-pop); box-shadow: var(--a-shadow-abar);
  color: var(--a-text); font: 400 var(--a-fs)/var(--a-lh) var(--a-font);
}
.ane-sch__tune[hidden] { display: none; }
.ane-sch.is-3d .ane-sch__tune { display: none; }
.ane-sch__tune-r { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-width: 0; }
.ane-sch__tune-r--sets { padding-top: 6px; border-top: 1px solid var(--a-sep); }
.ane-sch__tune-r--sets[hidden] { display: none; }
.ane-sch__wide.ane-sch__tune-set { min-width: 0; width: 26px; padding: 0; }
.ane-sch__tune-set.is-open { background: var(--a-sel); color: var(--a-sel-text); box-shadow: inset 0 -2px 0 var(--a-bar); }
.ane-sch__tune .ane-sch__seg { margin: 0; flex-wrap: nowrap; }
.ane-sch__tune .ane-sch__seg-b { flex: none; }
.ane-sch__tune .ane-sch__check { margin: 0; }
.ane-sch__tune .ane-sch__check[hidden] { display: none; }
.ane-sch__tune-net { max-width: 220px; justify-content: flex-start; }
.ane-sch__tune-f { display: inline-flex; align-items: center; gap: 4px; }
.ane-sch__tune-l { color: var(--a-text-faded); white-space: nowrap; }
.ane-sch__tune-in { position: relative; display: inline-flex; align-items: center; }
.ane-sch__tune-in .ane-sch__in { width: 72px; padding-inline-end: 26px; font-variant-numeric: tabular-nums; }
.ane-sch__tune-u { position: absolute; inset-inline-end: 5px; color: var(--a-text-faded); font-size: var(--a-fs-sm); pointer-events: none; }
.ane-sch__tune-out { flex: 1 1 240px; display: grid; gap: 0; min-width: 0; }
.ane-sch__tune-read { font: 400 12px/16px var(--a-font-mono); font-variant-numeric: tabular-nums; color: var(--a-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ane-sch__tune-read[data-state="ok"] { color: var(--a-ok); }
.ane-sch__tune-read[data-state="short"] { color: var(--a-warn); }
.ane-sch__tune-read[data-state="over"], .ane-sch__tune-read[data-state="bad"] { color: var(--a-err); }
.ane-sch__tune-read[data-state="idle"] { font-family: var(--a-font); color: var(--a-text-faded); white-space: normal; }
.ane-sch__tune-note { color: var(--a-text-faded); font-size: var(--a-fs-sm); }
.ane-sch__tune-note[hidden] { display: none; }
.ane-sch__tune-acts { display: flex; gap: 6px; margin-inline-start: auto; }
/* the list of nets in its dialog */
.ane-sch__tune-list { display: grid; gap: 2px; margin-top: 8px; max-height: 50vh; overflow: auto; }
.ane-sch__tune-pick {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px; width: 100%;
  min-height: 24px; padding: 2px 8px; border: 1px solid transparent; border-radius: var(--a-r-ctl);
  background: transparent; color: var(--a-text); font: inherit; text-align: start; cursor: pointer;
  transition: var(--a-trans);
}
.ane-sch__tune-pick:hover { background: var(--a-hover); }
.ane-sch__tune-pick:focus-visible { outline: 2px solid var(--a-focus); outline-offset: -2px; }
.ane-sch__tune-pm { color: var(--a-text-faded); font-size: var(--a-fs-sm); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 900px), (pointer: coarse) {
  .ane-sch__tune { inset-inline: 8px; top: calc(var(--a-doc-h) + 8px); max-width: none; }
  .ane-sch__tune :is(.ane-sch__seg-b, .ane-sch__wide, .ane-sch__in) { min-height: 40px; }
  .ane-sch__tune-pick { min-height: 40px; }
}
/* a phone or a narrow window keeps the canvas as it was; the readout follows
   a pointer, and a touch screen has none to follow */
@media (max-width: 900px), (pointer: coarse) {
  .ane-sch__hud { display: none; }
}
/* the sheet takes a hairline when it has the keys, not a ring round the stage */
.ane-sch__svg:focus { outline: none; }
.ane-sch__svg:focus-visible { outline: 1px solid var(--a-focus); outline-offset: -1px; }

/* Command Status: a floating chip at the canvas's bottom centre that says what the keys do while a tool
   other than Select is in hand. A phone has no prompt in its status bar, so there it is always shown. */
.ane-sch__hint {
  position: absolute;
  inset-inline: 0;
  bottom: 8px;
  z-index: 14;
  width: fit-content;
  max-width: min(60%, 520px);
  height: 24px;
  margin-inline: auto;
  padding: 0 10px;
  border: 1px solid var(--a-abar-border);
  border-radius: var(--a-r-pop);
  background: var(--a-abar-bg);
  box-shadow: var(--a-shadow-abar);
  color: var(--a-text);
  font: 400 var(--a-fs)/22px var(--a-font);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}
.ane-sch__hint:empty { display: none; }
@media (min-width: 901px) and (pointer: fine) {
  .ane-sch__stage[data-tool="select"] .ane-sch__hint { display: none; }
}

/* the empty sheet's card: what this is and the two ways to begin, centred on the canvas */
.ane-sch__empty {
  position: absolute;
  inset: var(--a-doc-h) 0 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  padding: 16px;
}
.ane-sch__empty[hidden] { display: none; }
.ane-sch__empty { grid-template-columns: minmax(0, 1fr); }
.ane-sch__empty-c {
  display: grid;
  justify-items: start;
  gap: 4px;
  width: min(320px, 100%);
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: anywhere;
  padding: 16px;
  border: 1px solid var(--a-border-in);
  border-radius: var(--a-r-pop);
  background: var(--a-panel);
  background: color-mix(in srgb, var(--a-panel) 96%, transparent);
  box-shadow: var(--a-shadow-abar);
  text-align: start;
  /* a click anywhere on the card's ground reaches the sheet under it (the first wire or note may start there) */
  pointer-events: none;
}
.ane-sch__empty-b { pointer-events: auto; }
.ane-sch__empty-i { display: inline-flex; margin-bottom: 4px; color: var(--a-icon-acc); }
.ane-sch__empty-i .ane-sch-i { width: 24px; height: 24px; }
.ane-sch__empty-t { margin: 0; font-size: var(--a-fs-h); line-height: 18px; font-weight: 600; color: var(--a-text-strong); }
.ane-sch__empty-s { margin: 0; color: var(--a-text-faded); font-size: var(--a-fs); line-height: var(--a-lh); }
.ane-sch__empty-a { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
@media (max-width: 900px), (pointer: coarse) {
  .ane-sch__empty-a .ane-sch__wide { min-height: 40px; }
}

@keyframes ane-sch-toast-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
/* toasts: dark chips stacked above the Command Status chip at the canvas's bottom centre (two at most) */
.ane-sch__toasts {
  position: absolute;
  inset-inline: 0;
  width: fit-content;
  max-width: calc(100% - 16px);
  margin-inline: auto;
  bottom: 40px;
  z-index: 30;
  display: grid;
  gap: 8px;
  justify-items: center;
  pointer-events: none;
}
/* with the Select tool in hand there is no Command Status chip to stay above, so a toast takes its place */
@media (min-width: 901px) and (pointer: fine) {
  .ane-sch__stage[data-tool="select"] .ane-sch__toasts { bottom: 8px; }
}
/* on a board the heads-up readout sits at the bottom start corner: the toasts stay above its tallest form */
.ane-sch.is-board .ane-sch__toasts, .ane-sch.is-board .ane-sch__stage[data-tool="select"] .ane-sch__toasts { bottom: 76px; }
.ane-sch__toast {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: min(420px, 100%);
  padding: 8px 12px;
  border: 0;
  border-radius: var(--a-r-pop);
  background: var(--a-tip-bg);
  color: var(--a-tip-text);
  font-size: var(--a-fs);
  line-height: var(--a-lh);
  box-shadow: var(--a-shadow-menu), inset 0 0 0 1px var(--a-tip-border);
  animation: ane-sch-toast-in var(--a-med) var(--a-ease);
  transition: opacity var(--a-out) var(--a-ease);
}
.ane-sch__toast > span { min-width: 0; overflow-wrap: anywhere; }
.ane-sch__toast > .ane-sch-i { flex: none; width: 16px; height: 16px; }
.ane-sch__toast--ok > .ane-sch-i { color: #5FD38A; }
.ane-sch__toast--warn > .ane-sch-i { color: #F2B84B; }
.ane-sch__toast--err > .ane-sch-i { color: #FF8A80; }
.ane-sch__toast.is-out { opacity: 0; }
/* a message with a button stays until acted on (a save that is failing) */
.ane-sch__toast--act { pointer-events: auto; flex-wrap: wrap; align-items: center; max-width: min(520px, 100%); }
.ane-sch__toast--act > span { flex: 1 1 200px; }
.ane-sch__toast-b {
  flex: none; min-height: 28px; padding: 0 10px; border: 0; border-radius: var(--a-r-ctl);
  background: var(--a-acc); color: #fff; font: inherit; font-weight: 600; cursor: pointer;
}
.ane-sch__toast-b:hover { filter: brightness(1.1); }
.ane-sch__toast-x {
  flex: none; width: 24px; height: 24px; padding: 0; border: 0; border-radius: var(--a-r-ctl);
  background: transparent; color: inherit; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.ane-sch__toast-x:hover { background: rgba(255, 255, 255, .12); }
/*
 * A board job running in the worker (ane-pcb-jobs.js): the toast's dark chip
 * at the top centre of the canvas, clear of the toasts and the readout at the
 * bottom and of the drawing-tools bar at the inline-start edge. What runs,
 * the phase, a bar and the count, and Cancel. Not a dialog: the board under
 * it stays on screen and can be panned and zoomed.
 */
@keyframes ane-sch-job-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
@keyframes ane-sch-job-busy {
  from { transform: translateX(-100%); }
  to { transform: translateX(250%); }
}
@keyframes ane-sch-job-busy-rtl {
  from { transform: translateX(100%); }
  to { transform: translateX(-250%); }
}
.ane-sch__job {
  position: absolute;
  top: 8px;
  inset-inline: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(460px, calc(100% - 96px));
  margin-inline: auto;
  padding-block: 8px;
  padding-inline: 12px 8px;
  border-radius: var(--a-r-pop);
  background: var(--a-tip-bg);
  color: var(--a-tip-text);
  font-size: var(--a-fs);
  line-height: var(--a-lh);
  box-shadow: var(--a-shadow-menu), inset 0 0 0 1px var(--a-tip-border);
  animation: ane-sch-job-in var(--a-med) var(--a-ease);
  transition: opacity var(--a-out) var(--a-ease);
}
.ane-sch__job.is-out { opacity: 0; pointer-events: none; }
.ane-sch__job > .ane-sch-i { flex: none; width: 16px; height: 16px; color: #5FD38A; }
.ane-sch__job-m { flex: 1 1 auto; min-width: 0; display: grid; gap: 6px; }
.ane-sch__job-t { display: flex; gap: 8px; min-width: 0; margin: 0; white-space: nowrap; }
.ane-sch__job-t > b { flex: none; font-weight: 600; }
.ane-sch__job-p { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--a-tip-key); }
.ane-sch__job-bar { position: relative; height: 4px; overflow: hidden; background: rgba(255, 255, 255, .14); }
.ane-sch__job-bar > i {
  position: absolute;
  inset: 0;
  background: var(--a-bar);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--a-med) var(--a-ease);
}
[dir="rtl"] .ane-sch__job-bar > i { transform-origin: right center; }
/* a phase with no count: a short segment that travels, and no number */
.ane-sch__job-bar.is-busy > i { inset-inline-end: auto; width: 40%; transform: none; transition: none; animation: ane-sch-job-busy 1.2s cubic-bezier(.45, 0, .55, 1) infinite; }
[dir="rtl"] .ane-sch__job-bar.is-busy > i { animation-name: ane-sch-job-busy-rtl; }
.ane-sch__job-n { flex: none; min-width: 7ch; color: var(--a-tip-key); font-variant-numeric: tabular-nums; text-align: end; }
.ane-sch__job-n:empty { display: none; }
.ane-sch__job-x {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding-inline: 10px 6px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: var(--a-r-ctl);
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: var(--a-trans);
}
.ane-sch__job-x:hover { background: rgba(255, 255, 255, .10); border-color: rgba(255, 255, 255, .36); }
.ane-sch__job-x:active { background: rgba(255, 255, 255, .16); }
.ane-sch .ane-sch__job-x:focus-visible { outline: 2px solid var(--a-hit); outline-offset: 1px; }
.ane-sch__job-x > kbd {
  padding: 0 4px;
  border-radius: var(--a-r-chip);
  background: var(--a-tip-key-bg);
  color: var(--a-tip-key);
  font: 500 11px/16px var(--a-font-mono);
}
/* the board is locked while the job runs: the canvas says so with the cursor too */
.ane-sch.is-job .ane-sch__svg { cursor: progress; }
@media (max-width: 900px), (pointer: coarse) {
  .ane-sch__job { width: calc(100% - 16px); }
  .ane-sch__job-x { min-height: 40px; }
  .ane-sch__job-x > kbd { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ane-sch .ane-sch__job { transform: none !important; animation: none !important; transition: opacity 80ms linear !important; }
  .ane-sch .ane-sch__job-bar > i { transition: none !important; }
  .ane-sch .ane-sch__job-bar.is-busy > i { width: 100%; opacity: .45; animation: none !important; }
}
/* the question two tabs on one project put to the engineer: a bar across the top of the drawing */
.ane-sch__banner {
  position: absolute; inset-inline: 0; top: 0; z-index: 31;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  padding: 8px 12px; background: #4A3C12; color: #FFE9A8;
  border-bottom: 1px solid #8A6D1F; box-shadow: var(--a-shadow-menu);
  font-size: var(--a-fs); line-height: var(--a-lh);
}
.ane-sch[data-theme="light"] .ane-sch__banner { background: #FFF4D6; color: #4A3600; border-color: #E8C66A; }
.ane-sch__banner > .ane-sch-i { flex: none; width: 18px; height: 18px; }
.ane-sch__banner-t { flex: 1 1 240px; min-width: 0; }
.ane-sch__banner-b { display: flex; flex-wrap: wrap; gap: 6px; }
.ane-sch__banner-b .ane-sch__wide { width: auto; min-height: 30px; padding: 0 12px; }/* ---------------- properties / erc panel ---------------- */

.ane-sch__panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--a-panel);
  border-inline-start: 1px solid var(--a-border);
}

/*
 * The dock's header is its tab strip (28px): the group's panel names, then
 * the actions. The chosen tab is the panel's own ground with a 2px bar on
 * its bottom edge, the others sit on the strip. While the keys are inside
 * a dock the whole strip lifts. Tabs that do not fit scroll rather than
 * crush each other; the strip's bottom line belongs to the header, so the
 * edge fades never cover it.
 */
.ane-sch__dockh {
  --dh-bg: var(--a-caption);
  display: flex;
  align-items: stretch;
  flex: none;
  height: 28px;
  min-width: 0;
  background: var(--dh-bg);
  border-bottom: 1px solid var(--a-border);
  color: var(--a-text);
  user-select: none;
  transition: background-color var(--a-fast) var(--a-ease);
}
.ane-sch :is(.ane-sch__side, .ane-sch__panel):focus-within > .ane-sch__dockh { --dh-bg: var(--a-caption-act); }
.ane-sch__dockh > [role="tablist"] {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  height: auto;
  margin: 0;
  background: none;
  box-shadow: none;
  border: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}
.ane-sch__tabs::-webkit-scrollbar,
.ane-sch__ptabs::-webkit-scrollbar { display: none; }
.ane-sch__tab,
.ane-sch__ptab {
  flex: 0 0 auto;
  white-space: nowrap;
  height: auto;
  padding: 0 8px;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--a-tab-text);
  font: 400 var(--a-fs)/28px var(--a-font);
  cursor: pointer;
  transition: var(--a-trans);
}
.ane-sch__tab:hover,
.ane-sch__ptab:hover { color: var(--a-text); background-color: var(--a-caption-act); }
.ane-sch__tab[aria-selected="true"],
.ane-sch__ptab[aria-selected="true"] {
  color: var(--a-text-strong);
  font-weight: 600;
  background-color: var(--a-panel);
  box-shadow: inset 0 -2px 0 var(--a-bar);
}
.ane-sch__tab:focus-visible,
.ane-sch__ptab:focus-visible { outline: 2px solid var(--a-focus); outline-offset: -2px; }


.ane-sch__pane { flex: 1; min-height: 0; overflow: auto; padding: 6px 8px 10px; }
.ane-sch__pane[hidden] { display: none; }

.ane-sch__field { margin-bottom: 8px; }
/* The Properties panel: the name beside its value, not above it */
.ane-sch__field:has(> .ane-sch__lab + .ane-sch__in:last-child) {
  display: grid;
  grid-template-columns: 40% minmax(0, 1fr);
  align-items: center;
  column-gap: 6px;
}
.ane-sch__field:has(> .ane-sch__lab + .ane-sch__in:last-child) > .ane-sch__lab { margin: 0; }
.ane-sch__lab {
  display: block;
  margin-bottom: 2px;
  font-size: var(--a-fs);
  line-height: var(--a-lh);
  font-weight: 400;
  color: var(--a-text-faded);
}
.ane-sch__in {
  width: 100%;
  height: 22px;
  padding: 0 4px;
  border: 1px solid var(--a-field-border);
  border-radius: var(--a-r-ctl);
  background: var(--a-field);
  color: var(--a-text);
  font: inherit;
  transition: var(--a-trans);
}
.ane-sch__in:hover { border-color: var(--sch-field-hover); }
.ane-sch__in:focus {
  outline: none;
  border-color: var(--a-focus);
}
.ane-sch__in:disabled { background: var(--a-field-dis); color: var(--a-text-dis); }
.ane-sch__in::placeholder { color: var(--a-text-faded); }

.ane-sch__rule { height: 1px; margin: 12px 0; border: 0; background: var(--sch-line); }

.ane-sch__kindline {
  margin: 0 0 10px;
  font-weight: 600;
  font-size: 13px;
  line-height: 18px;
  color: var(--sch-ink);
}

.ane-sch__blank { padding: 6px 0; }
.ane-sch__blank-t { margin: 0 0 4px; font-weight: 600; color: var(--sch-ink); }
.ane-sch__blank-s { margin: 0; color: var(--sch-muted); font-size: var(--a-fs); }

.ane-sch__keys { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; }
.ane-sch__keys li { display: flex; align-items: center; gap: 8px; color: var(--sch-muted); font-size: var(--a-fs); }
/* a shortcut is plain faded text in menus and lists; the tooltip dresses its key as a keycap */
.ane-sch kbd {
  font: inherit;
  font-size: var(--a-fs);
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  color: var(--a-text-faded);
  direction: ltr;
  unicode-bidi: isolate;
}

.ane-sch__row:not(.ane-sch__field) { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 14px; }
/*
 * Push buttons, everywhere (spec 5.11): the 22px button - a grey
 * gradient with a 1px dark frame and a glare line along its top, 12px text.
 * Hover brightens the gradient, a press is flat. A primary button is the same
 * button with a blue frame: no coloured fill, its icon keeps its colours.
 * Each kind below keeps only what is its own (its width, its alignment).
 */
.ane-sch__wide,
.ane-sch__act,
.ane-sch__pact,
.ane-sch__go,
.ane-sch__simbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 22px;
  min-width: 64px;
  margin: 0;
  padding: 0 10px;
  border: 1px solid var(--a-btn-border);
  border-radius: var(--a-r-ctl);
  background: var(--a-btn-top);
  color: var(--a-btn-text);
  font: 400 var(--a-fs)/20px var(--a-font);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--a-trans);
}
:is(.ane-sch__wide, .ane-sch__act, .ane-sch__pact, .ane-sch__go, .ane-sch__simbtn) > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
:is(.ane-sch__wide, .ane-sch__act, .ane-sch__pact, .ane-sch__go, .ane-sch__simbtn) > .ane-sch-i { flex: none; width: 16px; height: 16px; }
:is(.ane-sch__wide, .ane-sch__act, .ane-sch__pact, .ane-sch__go, .ane-sch__simbtn):hover {
  background: var(--a-btn-hot-top);
  border-color: var(--a-btn-border);
  color: var(--a-btn-text);
}
.ane-sch[data-theme="light"] :is(.ane-sch__wide, .ane-sch__act, .ane-sch__pact, .ane-sch__go, .ane-sch__simbtn):hover { border-color: var(--a-text-faded); }
:is(.ane-sch__wide, .ane-sch__act, .ane-sch__pact, .ane-sch__go, .ane-sch__simbtn):active { background: var(--a-press); box-shadow: none; }
:is(.ane-sch__wide, .ane-sch__act, .ane-sch__pact, .ane-sch__go, .ane-sch__simbtn):focus-visible { outline: 2px solid var(--a-focus); outline-offset: 1px; }
:is(.ane-sch__wide, .ane-sch__act, .ane-sch__pact, .ane-sch__go, .ane-sch__simbtn):is([disabled], [aria-disabled="true"]) {
  opacity: .45;
  cursor: default;
  background: var(--a-btn-top);
  border-color: var(--a-btn-border);
}
/* Disclosure (spec 7.8): every details > summary carries the tri chevron as its first child, 90 degrees when open
   and mirrored in Hebrew by the icon's flip; the browser's solid triangle is hidden everywhere */
.ane-sch summary { list-style: none; cursor: pointer; }
.ane-sch summary::-webkit-details-marker { display: none; }
.ane-sch summary > .ane-sch__tri { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 12px; height: 16px; margin-inline-end: 4px; vertical-align: middle; }
.ane-sch summary > .ane-sch__tri .ane-sch-i { width: 10px; height: 10px; color: var(--a-text-faded); transition: none; }
.ane-sch summary:hover > .ane-sch__tri .ane-sch-i { color: var(--a-text); }
.ane-sch details[open] > summary > .ane-sch__tri .ane-sch-i { transform: rotate(90deg); }
.ane-sch summary:focus-visible { outline: 2px solid var(--a-focus); outline-offset: -2px; }
.ane-sch__simp-s > .ane-sch__simp-b { margin-inline-start: auto; }

/* the primary button of a form or a dialog: filled ANE green (one per view) */
.ane-sch :is(.is-primary, .ane-sch__wide--acc, .ane-sch__simbtn--acc),
.ane-sch :is(.is-primary, .ane-sch__wide--acc, .ane-sch__simbtn--acc):is([disabled], [aria-disabled="true"]) {
  background: var(--a-btn-pri);
  border-color: var(--a-btn-pri-edge);
  color: var(--a-btn-pri-text);
}
.ane-sch :is(.is-primary, .ane-sch__wide--acc, .ane-sch__simbtn--acc):hover,
.ane-sch[data-theme="light"] :is(.is-primary, .ane-sch__wide--acc, .ane-sch__simbtn--acc):hover {
  background: var(--a-btn-pri-hot);
  border-color: var(--a-btn-pri-edge);
  color: var(--a-btn-pri-text);
}
.ane-sch :is(.is-primary, .ane-sch__wide--acc, .ane-sch__simbtn--acc):active {
  background: var(--a-btn-pri-press);
  border-color: var(--a-btn-pri-edge);
  color: var(--a-btn-pri-text);
  transform: scale(.98);
  transition: background-color var(--a-fast) var(--a-ease), transform 100ms var(--a-ease);
}
.ane-sch :is(.is-primary, .ane-sch__wide--acc, .ane-sch__simbtn--acc):focus-visible { outline-offset: 2px; }

.ane-sch__pins { margin-top: 8px; border: 1px solid var(--a-border); border-radius: 0; overflow: hidden; }
.ane-sch__pins table { width: 100%; border-collapse: collapse; font-size: var(--a-fs); font-variant-numeric: tabular-nums; }
.ane-sch__pins th {
  height: 22px;
  padding: 0 4px;
  background: var(--a-header);
  color: var(--a-text);
  font-size: var(--a-fs);
  font-weight: 600;
  text-align: start;
}
.ane-sch__pins td { height: 20px; padding: 0 4px; border-top: 1px solid var(--a-border-in); color: var(--sch-ink-2); }
.ane-sch__net { color: var(--sch-acc-ink); font-weight: 400; }
.ane-sch__open { color: var(--sch-warn); }

/* erc: the Messages panel - a 24px bar of counts, then a grid of
   Class | Message | Document with one 20px row a message (spec 5.15) */
.ane-sch__pane--erc { padding: 0 0 10px; }
.ane-sch__ercbar {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 4px;
  margin: 0;
  border-bottom: 1px solid var(--a-border-in);
}
.ane-sch__pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 18px;
  padding: 0 6px 0 3px;
  border-radius: var(--a-r-chip);
  font-size: var(--a-fs-sm);
  line-height: 18px;
  font-weight: 400;
  color: var(--a-btn-pri-text);
  font-variant-numeric: tabular-nums;
}
.ane-sch__pill .ane-sch-i { width: 14px; height: 14px; flex: none; }
.ane-sch__pill--err { background: var(--sch-err-strong); color: var(--a-btn-pri-text); }
.ane-sch__pill--warn { background: var(--sch-warn-strong); color: var(--a-btn-pri-text); }

/* a clean check: one line with the tick */
.ane-sch__ok { padding: 22px 6px; text-align: center; color: var(--sch-acc-ink); }
.ane-sch__ok .ane-sch-i { color: var(--a-ok); margin-bottom: 8px; }
.ane-sch__pane--erc > .ane-sch__ok {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 22px;
  padding: 2px 8px;
  text-align: start;
  font-size: var(--a-fs);
  line-height: var(--a-lh);
  color: var(--a-text);
  border-bottom: 1px solid var(--a-border-in);
}
.ane-sch__pane--erc > .ane-sch__ok .ane-sch-i { margin: 0; flex: none; }

.ane-sch__erc { list-style: none; margin: 0; padding: 0; display: block; }
/*
 * A finding: the severity icon, the message and the document it is about. A dock of 420px or more
 * has it on one 24px line with the document at the row's end; a narrower one wraps the message to
 * two lines at most and puts the document under it. The detail opens under the row when it has the focus.
 */
.ane-sch__erc-b {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  column-gap: 0;
  width: 100%;
  min-height: 24px;
  padding: 3px 8px 3px 0;
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--a-border-in);
  border-radius: 0;
  background: transparent;
  color: var(--a-text);
  font: inherit;
  text-align: start;
  cursor: pointer;
  transition: var(--a-trans);
}
[dir="rtl"] .ane-sch__erc-b { padding: 3px 0 3px 8px; }
.ane-sch__erc-b > .ane-sch-i { grid-column: 1; grid-row: 1; justify-self: center; margin-top: 1px; }
.ane-sch__erc-b:hover { background: var(--a-hover); }
.ane-sch__erc-b:focus { background: var(--a-sel); color: var(--a-sel-text); box-shadow: inset 0 0 0 1px var(--a-sel-edge); outline: 0; }
.ane-sch__erc-b:focus-visible { outline: 2px solid var(--a-focus); outline-offset: -2px; }
.ane-sch__erc-i--error .ane-sch__erc-b .ane-sch-i { color: var(--sch-err); }
/* information rows: a part placed with its peripherals, and what its search came to */
.ane-sch__erc-note { display: flex; align-items: stretch; border-bottom: 1px solid var(--a-border-in); }
.ane-sch__erc-note > .ane-sch__erc-b { flex: 1 1 auto; min-width: 0; border-bottom: 0; }
.ane-sch__erc-note .ane-sch-i { color: var(--a-info); }
.ane-sch__erc-retry {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 26px;
  margin: 0;
  padding: 0;
  border: 0;
  border-inline-start: 1px solid var(--a-border-in);
  border-radius: 0;
  background: transparent;
  color: var(--a-acc-text);
  font: var(--a-fs)/19px var(--a-font);
  white-space: nowrap;
  cursor: pointer;
  transition: var(--a-trans);
}
.ane-sch__erc-retry svg { width: 14px; height: 14px; }
.ane-sch__erc-retry:hover { background: var(--a-hover); }
.ane-sch__erc-retry:focus-visible { outline: 1px solid var(--a-focus); outline-offset: -1px; }
.ane-sch__pane--erc > .ane-sch__erc--notes { border-top: 0; }
/* a finding that carries its answer: the row and its action side by side */
.ane-sch__erc-i.has-act { display: flex; align-items: stretch; border-bottom: 1px solid var(--a-border-in); }
.ane-sch__erc-i.has-act > .ane-sch__erc-b { flex: 1 1 auto; min-width: 0; border-bottom: 0; }
/* the peripherals placed for another operating point, in Properties */
.ane-sch__apps-dl { margin: 2px 0 6px; padding-inline-start: 16px; color: var(--a-text); }
.ane-sch__apps-dl > li { margin: 2px 0; overflow-wrap: anywhere; }
.ane-sch__erc-i--warn .ane-sch__erc-b .ane-sch-i { color: var(--sch-warn); }
.ane-sch__erc-t,
.ane-sch__erc-d,
.ane-sch__erc-doc { font-size: var(--a-fs); line-height: 18px; }
.ane-sch__erc-t {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  padding-inline: 4px;
  color: inherit;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  unicode-bidi: plaintext;
}
/* the document: a kind glyph and a name, under the message by default */
.ane-sch__erc-doc {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  padding-inline-start: 28px;
  font-size: var(--a-fs-sm);
  line-height: 16px;
  color: var(--a-text-faded);
  unicode-bidi: isolate;
}
.ane-sch__erc-doc > .ane-sch-i { flex: none; width: 14px; height: 14px; }
.ane-sch__erc-doc > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* what it is about stays in the tooltip; picked, the whole detail opens under the row */
.ane-sch__erc-d { display: none; grid-column: 2 / -1; grid-row: 3; padding: 0 4px 2px; font-size: var(--a-fs-sm); line-height: 15px; color: var(--a-text-faded); unicode-bidi: plaintext; white-space: normal; word-break: break-word; }
.ane-sch__erc-b:focus .ane-sch__erc-d { display: block; color: inherit; }
.ane-sch__erc-b:focus .ane-sch__erc-doc { color: inherit; }
.ane-sch__erc-b:focus .ane-sch__erc-t { -webkit-line-clamp: unset; line-clamp: unset; display: block; overflow-wrap: anywhere; }
@container dock (min-width: 420px) {
  .ane-sch__erc-b { grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; padding-block: 0; }
  .ane-sch__erc-t { display: block; white-space: nowrap; text-overflow: ellipsis; padding-block: 2px; }
  .ane-sch__erc-doc { grid-column: 3; grid-row: 1; padding-inline-start: 8px; }
  .ane-sch__erc-b:focus .ane-sch__erc-t { white-space: normal; }
  .ane-sch__erc-b:focus .ane-sch__erc-d { grid-column: 2 / -1; }
}

/* ---------------- status bar ---------------- */

/*
 * The status bar, 24px: the prompt takes the room, then the counts, on a
 * board the active layer, the cursor, the grid chip, the zoom and the save
 * state, which ends the bar. Sections are parted by 12px gaps and, before
 * the cursor and before the save state, one 12px hairline.
 */
.ane-sch__status {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 24px;
  min-height: 24px;
  padding: 0 8px;
  background: var(--a-window);
  border-top: 1px solid var(--a-border);
  color: var(--a-text-faded);
  font-size: var(--a-fs);
  line-height: 22px;
  font-variant-numeric: tabular-nums;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  white-space: nowrap;
}
.ane-sch__status::-webkit-scrollbar { display: none; }
/* an error or a warning colours its own count, never the bar */
.ane-sch__status .is-err { color: var(--a-err); font-weight: 400; }
.ane-sch__status .is-warn { color: var(--a-warn); font-weight: 400; }
.ane-sch__sp { flex: 1; }
.ane-sch__auto { display: inline-flex; flex: none; align-items: center; gap: 12px; color: var(--a-text-faded); }
.ane-sch__cnt { display: inline-flex; gap: 10px; flex: none; }
.ane-sch__zm { flex: none; }
.ane-sch__prompt {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--a-text);
  text-align: start;
}
.ane-sch__prompt--err { color: var(--a-err); }
.ane-sch__prompt--warn { color: var(--a-warn); }
.ane-sch__st-sep { flex: none; width: 1px; height: 12px; border-radius: 1px; background: var(--a-sep); box-shadow: none; }
/* the cursor reads left to right in either language: "4700, 4500 mil" never turns into "mil 4500 ,4700" */
.ane-sch__status .ane-sch__xy { flex: none; color: var(--a-text); font-family: var(--a-font-mono); font-size: var(--a-fs); direction: ltr; unicode-bidi: isolate; }
/* the grid chip: the icon, the word, and the value as its own left-to-right run */
.ane-sch__grid-c { display: inline-flex; flex: none; align-items: center; gap: 4px; border-radius: var(--a-r-chip); }
.ane-sch__grid-c .ane-sch-i { width: 14px; height: 14px; flex: none; }
.ane-sch__grid-c bdi { direction: ltr; unicode-bidi: isolate; color: var(--a-text); }
/* the board's active layer: its swatch (the layer's own colour in a 1px frame) and name */
.ane-sch__lay-c { display: inline-flex; flex: none; align-items: center; gap: 6px; color: var(--a-text); }
.ane-sch__lay-c[hidden] { display: none; }
.ane-sch__lay-sw { flex: none; width: 8px; height: 8px; box-sizing: border-box; border: 1px solid var(--a-layer-border); border-radius: var(--a-r-chip); }
@media (min-width: 901px) {
  .ane-sch__status .ane-sch__xy { min-width: 17ch; }
  .ane-sch__status .ane-sch__xy:empty { display: inline-block; }
}
@media (max-width: 900px) {
  .ane-sch__prompt { display: none; }
  .ane-sch__status { justify-content: space-between; }
  .ane-sch__st-sep, .ane-sch__lay-c, .ane-sch__xy, .ane-sch__grid-c { display: none; }
}

/* ---------------- responsive ---------------- */

@media (max-width: 1100px) {
  .ane-sch { --sch-side: 208px; --sch-panel: 258px; }
  .ane-sch__grid { grid-template-columns: repeat(2, 1fr); }
  .ane-sch__auto { display: none; }
}

@media (max-width: 900px) {
  .ane-sch { height: var(--ane-sch-h-mobile, 78vh); min-height: 520px; }
  .ane-sch__body { grid-template-columns: 1fr; }
  .ane-sch__b--mobile { display: inline-flex; }

  .ane-sch__side,
  .ane-sch__panel {
    position: absolute;
    top: 0;
    bottom: 0;
    width: min(86%, 320px);
    z-index: 25;
    box-shadow: var(--sch-pop);
    transition: transform 240ms var(--a-ease-move);
  }
  .ane-sch__side { inset-inline-start: 0; transform: translateX(var(--sch-off-start, -105%)); }
  .ane-sch__panel { inset-inline-end: 0; transform: translateX(var(--sch-off-end, 105%)); }
  .ane-sch[dir="rtl"] .ane-sch__side { --sch-off-start: 105%; }
  .ane-sch[dir="rtl"] .ane-sch__panel { --sch-off-end: -105%; }
  .ane-sch.is-parts .ane-sch__side { transform: none; }
  .ane-sch.is-panel .ane-sch__panel { transform: none; }
  .ane-sch__grid { grid-template-columns: repeat(3, 1fr); }
  .ane-sch__hint { max-width: calc(100% - 24px); }
}

@media (max-width: 700px) {
  /* a scrolling toolbar hides its own buttons, so it wraps instead, and the
     commands that already live in the menus leave the bar altogether */
  .ane-sch__bar { flex-wrap: wrap; overflow-x: visible; row-gap: 4px; column-gap: 8px; }
  /* a wrapped row has no way to know where its lines break, so the groups
     part on space alone rather than leave a divider at the start of a line */
  .ane-sch__bar > .ane-sch__grp + .ane-sch__grp::before { display: none; }
  .ane-sch__grp--file,
  .ane-sch__grp--act,
  .ane-sch__b--wide-only { display: none; }
}

@media (max-width: 560px) {
  .ane-sch__b { width: 40px; height: 40px; }
  .ane-sch__b--lang { width: auto; }
  .ane-sch__status { gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .ane-sch *,
  .ane-sch *::before,
  .ane-sch *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
  }
  /* no slide, no scale; the opacity fades that tell you something appeared stay, shortened */
  .ane-sch .ane-sch__dlg,
  .ane-sch .ane-sch__toast,
  .ane-sch .ane-sch__tip {
    transform: none !important;
    transition: opacity 80ms linear !important;
  }
  .ane-sch :is(.is-primary, .ane-sch__wide--acc, .ane-sch__simbtn--acc):active { transform: none; }
}

/*
 * Print. The page is swapped for the drawing: before the print the editor
 * puts one div (.ane-sch__print, a direct child of <body>) holding the sheet
 * as an SVG, and everything else is hidden. The paper is the printer's size
 * (A4 in Israel and Europe, Letter in the US); only the orientation is set.
 * In paged media 100vh is the page box's height, so the drawing fills the
 * page on any paper; the 1px keeps rounding from pushing a second page.
 */
.ane-sch__print { display: none; }
@media print {
  @page { size: landscape; margin: 10mm; }
  body > *:not(.ane-sch__print) { display: none !important; }
  .ane-sch__print { display: block !important; width: 100%; height: calc(100vh - 1px); overflow: hidden; break-inside: avoid; }
  .ane-sch__print svg { display: block; width: 100%; height: 100%; }
}

/* ---------------- menu bar ---------------- */

.ane-sch__menubar {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 4px;
  background: var(--a-window);
  border-bottom: 1px solid var(--a-border);
  color: var(--a-text);
  position: relative;
  z-index: 45;
}

.ane-sch__m { position: relative; display: flex; align-items: center; align-self: stretch; }

.ane-sch__m-t {
  height: 22px;
  padding: 0 8px;
  border: 0;
  border-radius: var(--a-r-ctl);
  background: transparent;
  color: var(--a-text);
  font: inherit;
  font-weight: 400;
  line-height: 22px;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--a-trans);
}
.ane-sch__m-t:hover { background: var(--a-menu-hover); color: var(--a-menu-hover-text); }
/* an open title keeps the hover tint, so the eye finds where the list came from */
.ane-sch__m.is-open .ane-sch__m-t { background: var(--a-menu-hover); color: var(--a-menu-hover-text); }

.ane-sch__m-l {
  position: absolute;
  top: 100%;
  inset-inline-start: 0;
  /* as wide as its longest row: a title is narrower than its list */
  width: max-content;
  min-width: 220px;
  max-width: none;
  padding: 4px;
  background: var(--a-menu);
  border: 0;
  border-radius: var(--a-r-pop);
  box-shadow: var(--a-shadow-menu);
  z-index: 50;
}
.ane-sch__m-l[hidden] { display: none; }

/*
 * A row: a 16px icon column (the pictogram, or the check of a setting that is
 * on), the words, the shortcut as a plain faded key at the far end, and a
 * chevron for a row that opens a submenu. The gaps are margins, not grid
 * gaps, so a row without a key or a chevron keeps no empty gap.
 */
.ane-sch__m-i {
  display: grid;
  grid-template-columns: 16px 1fr auto auto;
  align-items: center;
  width: 100%;
  height: 28px;
  padding: 0;
  padding-inline: 8px;
  border: 0;
  border-radius: var(--a-r-ctl);
  background: transparent;
  color: var(--a-text);
  font: inherit;
  line-height: var(--a-lh);
  text-align: start;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--a-trans);
}
.ane-sch__m-ic {
  grid-column: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  font-style: normal;
  color: var(--a-text);
}
.ane-sch__m-ic .ane-sch-i { width: 16px; height: 16px; flex: none; }
.ane-sch__m-i > span { grid-column: 2; margin-inline-start: 8px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ane-sch__m-i > kbd { grid-column: 3; margin-inline-start: 24px; color: var(--a-text-faded); background: none; }
/* a key is an isolated left-to-right run, so its own inline-start is its
   left: in Hebrew the 24px gap faces the words on its right */
.ane-sch[dir="rtl"] .ane-sch__m-i > kbd { margin-left: 0; margin-right: 24px; }
.ane-sch__m-sub { grid-column: 4; display: flex; align-items: center; justify-content: center; margin-inline-start: 4px; margin-inline-end: -4px; color: var(--a-icon); }
.ane-sch__m-tick { grid-column: 4; display: flex; align-items: center; justify-content: center; margin-inline-start: 8px; color: var(--a-acc-text); }
.ane-sch__m-tick .ane-sch-i { display: block; width: 16px; height: 16px; }
.ane-sch__m-sub .ane-sch-i { display: block; width: 16px; height: 16px; }
.ane-sch__m-i:hover,
.ane-sch__m-i:focus-visible,
.ane-sch__m-i.is-sub-open { background: var(--a-menu-hover); color: var(--a-menu-hover-text); }
.ane-sch__m-i:hover kbd,
.ane-sch__m-i:focus-visible kbd,
.ane-sch__m-i.is-sub-open kbd,
.ane-sch__m-i:hover .ane-sch__m-sub,
.ane-sch__m-i:focus-visible .ane-sch__m-sub,
.ane-sch__m-i.is-sub-open .ane-sch__m-sub { color: inherit; }
.ane-sch__m-i:hover .ane-sch__m-ic,
.ane-sch__m-i:focus-visible .ane-sch__m-ic { color: inherit; }
/* a setting that is on: the check icon in brand green, no frame */
.ane-sch .ane-sch__m-ck.is-ck,
.ane-sch .ane-sch__m-ic.is-on,
.ane-sch .ane-sch__m-i:hover .ane-sch__m-ic.is-on,
.ane-sch .ane-sch__m-i:hover .ane-sch__m-ck.is-ck,
.ane-sch .ane-sch__m-i:focus-visible .ane-sch__m-ck.is-ck { color: var(--a-acc-text); }
/* the tick of a setting that is on is a status mark, drawn a quarter heavier: at 16px and DPR 1 the thin check alone reads below 3:1 */
.ane-sch .ane-sch__m-ck.is-ck .ane-sch-i--c path,
.ane-sch .ane-sch__m-tick .ane-sch-i--c path { stroke-width: calc(var(--a-icon-w) * 1.25); }
.ane-sch__m-sep { height: 1px; margin: 4px 0; border: 0; background: var(--a-sep); box-shadow: none; }

/* the actions menu under the right button: at the pointer, as wide as its words */
.ane-sch__m-l.ane-sch__ctx {
  position: fixed;
  inset: auto;
  width: max-content;
  min-width: 220px;
  max-width: calc(100vw - 16px);
  max-height: calc(100vh - 16px);
  overflow-y: auto;
  overscroll-behavior: contain;
  z-index: 90;
}
/* a submenu stands over its parent */
.ane-sch__m-l.ane-sch__ctx--sub { z-index: 91; min-width: 180px; }
.ane-sch__ctx .ane-sch__m-i:focus-visible { outline: 0; }
.ane-sch__m-i[disabled] { color: var(--a-text-dis); cursor: default; }
.ane-sch__m-i[disabled] .ane-sch__m-ic { color: var(--a-text-dis); }
.ane-sch__m-i[disabled] .ane-sch-i { opacity: .4; }
.ane-sch__m-i[disabled]:hover { background: transparent; color: var(--a-text-dis); }
.ane-sch__m-i[disabled]:hover kbd { color: var(--a-text-faded); }
.ane-sch__m-i[disabled]:hover .ane-sch__m-sub { color: var(--a-text-faded); }
@media (pointer: coarse) {
  .ane-sch__m-i { height: auto; min-height: 36px; }
}

.ane-sch__docname {
  min-width: 0;
  align-self: center;
  padding-inline: 8px;
  color: var(--a-text);
  font-size: var(--a-fs);
  font-weight: 600;
  max-width: min(40ch, 100%);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  /* its direction is set per name from the editor (dir attribute), so the cut is always at the name's end */
}

/* ---------------- automation pane ---------------- */

.ane-sch__inrow { display: grid; grid-template-columns: 1fr auto; gap: 6px; }

.ane-sch__inrow > .ane-sch__in { height: 22px; }

.ane-sch__field--row .ane-sch__lab { display: flex; justify-content: space-between; gap: 8px; }
.ane-sch__unit { color: var(--sch-muted); font-weight: 400; }

.ane-sch__genform { margin-top: 4px; }

.ane-sch__report { margin: 8px 0; }
/* a name / value grid: 20px rows on the plain ground, a thin line between */
.ane-sch__rtab {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--a-border-in);
  border-radius: 0;
  background: var(--a-plain);
  font-size: var(--a-fs);
  line-height: 16px;
}
.ane-sch__rtab th {
  height: 20px;
  padding: 2px 6px;
  background: transparent;
  color: var(--a-text-faded);
  font-weight: 400;
  text-align: start;
  width: 58%;
}
.ane-sch__rtab td {
  height: 20px;
  padding: 2px 6px;
  color: var(--a-text);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  border-inline-start: 1px solid var(--a-border-in);
}
.ane-sch__rtab tr + tr th,
.ane-sch__rtab tr + tr td { border-top: 1px solid var(--a-border-in); }
.ane-sch__rtab tr.is-warn th { background: var(--sch-warn-soft); color: var(--sch-warn); }
.ane-sch__rtab tr.is-warn td { color: var(--sch-warn); }

.ane-sch__generr {
  margin: 12px 0;
  padding: 10px 12px;
  border-radius: var(--sch-r-sm);
  background: var(--sch-err-soft);
  color: var(--sch-err);
  font-size: var(--a-fs);
}

.ane-sch__acts { display: grid; gap: 4px; margin-bottom: 8px; }
/* a list of commands: one full-width button each, its words from the start
   edge, a long one free to take a second line */
.ane-sch__acts > .ane-sch__act,
.ane-sch__act--full {
  width: 100%;
  height: auto;
  min-height: 22px;
  padding: 2px 10px;
  justify-content: flex-start;
  line-height: 16px;
  text-align: start;
  white-space: normal;
}
.ane-sch__wide--full { width: 100%; margin-top: 4px; }

.ane-sch__bulk { display: grid; gap: 6px; }

@media (max-width: 900px) {
  /* stacked: the line between the menus and the tools is the tools' own top edge, so the name beside the menus needs none */
  .ane-sch__menubar { border-bottom: 0; }
  .ane-sch__top > .ane-sch__bar { border-top: 1px solid var(--a-border); }
}
@media (max-width: 700px) {
  .ane-sch__menubar { overflow-x: auto; scrollbar-width: none; }
  .ane-sch__menubar::-webkit-scrollbar { display: none; }
  .ane-sch__docname { display: none; }
  .ane-sch__m-t { height: auto; padding: 12px 11px; line-height: var(--a-lh); }
}

/* ---------------- live parts ---------------- */

.ane-sch__pstatus {
  margin: 0 0 10px;
  color: var(--sch-muted);
  font-size: var(--a-fs);
  min-height: 18px;
}

.ane-sch__link {
  border: 0;
  background: transparent;
  padding: 0 4px;
  color: var(--a-acc-text);
  font: inherit;
  font-size: var(--a-fs);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.ane-sch__link:hover { color: var(--a-text-strong); }

.ane-sch__presults { display: grid; gap: 8px; }

.ane-sch__part-row {
  padding: 10px 11px;
  border: 1px solid var(--sch-line);
  border-radius: var(--sch-r-sm);
  background: var(--sch-bg);
  transition: var(--a-trans);
}
.ane-sch__part-row:hover { border-color: var(--sch-field-hover); }

.ane-sch__pn {
  margin: 0;
  font-weight: 600;
  font-size: var(--a-fs);
  color: var(--sch-ink);
  word-break: break-all;
}
.ane-sch__pmfr { margin: 1px 0 0; font-size: var(--a-fs); color: var(--sch-acc-ink); }
.ane-sch__pdesc {
  margin: 4px 0 0;
  font-size: var(--a-fs-sm);
  line-height: 1.4;
  color: var(--sch-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ane-sch__pmeta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 7px 0 0;
  font-size: var(--a-fs);
  font-variant-numeric: tabular-nums;
}
.ane-sch__pstock { color: var(--sch-acc-ink); font-weight: 400; }
.ane-sch__pstock.is-low { color: var(--sch-warn); }
.ane-sch__pstock.is-out { color: var(--sch-err); }
.ane-sch__pprice { color: var(--sch-ink); font-weight: 400; }

.ane-sch__pacts { display: flex; gap: 4px; margin-top: 6px; flex-wrap: wrap; }
.ane-sch__pact { flex: 1 1 auto; }

.ane-sch__partbox {
  margin: 10px 0 2px;
  padding: 10px 11px;
  border: 1px solid var(--sch-line);
  border-radius: var(--sch-r-sm);
  background: var(--sch-bg-2);
}
.ane-sch__partbox .ane-sch__lab { margin-bottom: 3px; }

.ane-sch__pcost {
  margin-top: 10px;
  font-variant-numeric: tabular-nums;
}

/* ---------------- sheet tabs ---------------- */

/* the documents bar: 28px tabs and the strip's 1px line; the canvas starts under it */
.ane-sch__stage { --a-doc-h: 29px; padding-top: var(--a-doc-h); }
.ane-sch__sheets {
  position: absolute;
  top: 0;
  inset-inline: 0;
  z-index: 12;
  display: flex;
  align-items: flex-start;
  gap: 0;
  height: var(--a-doc-h);
  padding: 0;
  background: var(--a-doc-strip);
  border-bottom: 1px solid var(--a-border);
  overflow-x: auto;
  /* the strip only ever slides sideways: a focused tab must never nudge it up a pixel */
  overflow-y: hidden;
  scrollbar-width: none;
}
.ane-sch__sheets::-webkit-scrollbar { display: none; }
/* the tabs themselves are one list (a tab list holds only tabs); it lays them out as the strip did */
.ane-sch__sheets-tabs { display: flex; flex: 0 0 auto; align-items: flex-start; gap: 0; height: var(--a-doc-h); }
.ane-sch__sheets-tabs + .ane-sch__sheet--add { margin-inline-start: 2px; }

/* a document tab: the kind glyph and the name; the open one is lifted, weighs 600 and carries the 2px bar */
.ane-sch__sheet {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  height: 28px;
  max-width: 200px;
  margin-top: 0;
  padding: 0 10px 0 8px;
  border: 0;
  border-inline-end: 1px solid var(--a-border);
  border-radius: 0;
  background: var(--a-doc-tab);
  color: var(--a-tab-text);
  font: inherit;
  font-weight: 400;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: var(--a-trans);
}
.ane-sch[dir="rtl"] .ane-sch__sheet { padding: 0 8px 0 10px; }
.ane-sch__sheet:hover { background: var(--a-doc-tab-hot); color: var(--a-text); }
/* the open document */
.ane-sch__sheet.is-on {
  background: var(--a-doc-tab-on);
  color: var(--a-text-strong);
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--a-bar);
}
.ane-sch__sheet:focus-visible { outline: 2px solid var(--a-focus); outline-offset: -2px; }
/* a document tab says what kind of document it is: its schematic or board glyph first */
.ane-sch__sheet { gap: 6px; }
.ane-sch__sheet-i { display: inline-flex; flex: 0 0 auto; width: 16px; height: 16px; color: var(--a-icon); }
.ane-sch__sheet-i .ane-sch-i { width: 16px; height: 16px; }
.ane-sch__sheet--add {
  justify-content: center;
  width: 28px;
  min-width: 28px;
  height: 28px;
  padding: 0;
  border-inline-end: 0;
  background: transparent;
  color: var(--a-icon);
}
.ane-sch__sheet:not(.ane-sch__sheet--add) + .ane-sch__sheet--add { margin-inline-start: 2px; }
.ane-sch[dir="rtl"] .ane-sch__sheet--add { padding: 0; }
.ane-sch__sheet--add .ane-sch-i { width: 16px; height: 16px; }
.ane-sch__sheet--add:hover { background: var(--a-hover); color: var(--a-text-strong); }
/*
 * A document is its name; the glyph before it says whether it is a schematic
 * or a board. The span is isolated and takes the name's own direction
 * (dir="auto"), so a Hebrew name reads from the right and a Latin one from
 * the left, the same as in the Projects tree and the Checks rows.
 */
.ane-sch__sheet > span { white-space: nowrap; unicode-bidi: isolate; }

/*
 * Closing a document. An open tab ends in a small cross at its inline end
 * (the right in English, the left in Hebrew). The cross's room is always
 * kept, so a tab never changes width under the pointer; the cross itself
 * shows on the open document, on the tab under the pointer and on the tab
 * with the keys, and always on a touch screen. A closed document keeps its
 * (hidden) tab, so a tab's place in the strip is still its document's index.
 */
.ane-sch__sheet.is-closed { display: none !important; }
.ane-sch__sheet.has-x,
.ane-sch[dir="rtl"] .ane-sch__sheet.has-x { padding-inline-end: 4px; }
.ane-sch__sheet > .ane-sch__sheet-x {
  flex: 0 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  min-width: 16px;
  margin-inline-start: -1px;
  border-radius: var(--a-r-ctl);
  color: var(--a-icon);
  overflow: visible;
  visibility: hidden;
  transition: var(--a-trans);
}
.ane-sch__sheet > .ane-sch__sheet-x::after { content: none; }
.ane-sch__sheet-x svg { display: block; width: 16px; height: 16px; pointer-events: none; }
.ane-sch__sheet.is-on > .ane-sch__sheet-x,
.ane-sch__sheet:hover > .ane-sch__sheet-x,
.ane-sch__sheet.is-ctx > .ane-sch__sheet-x,
.ane-sch__sheet:focus-visible > .ane-sch__sheet-x { visibility: visible; }
.ane-sch__sheet.is-on > .ane-sch__sheet-x { color: var(--a-text); }
.ane-sch__sheet > .ane-sch__sheet-x:hover {
  background: color-mix(in srgb, var(--a-err) 22%, transparent);
  color: var(--a-err);
}
.ane-sch__sheet > .ane-sch__sheet-x:active { background: color-mix(in srgb, var(--a-err) 34%, transparent); }
/* the tab a menu was opened for stays marked while the menu is up */
.ane-sch__sheet.is-ctx:not(.is-on) { background: var(--a-doc-tab-hot); color: var(--a-text); }
/* no pointer that hovers: every open tab shows its cross, with a finger-sized target */
@media (max-width: 900px), (hover: none), (pointer: coarse) {
  .ane-sch__sheet.has-x,
  .ane-sch[dir="rtl"] .ane-sch__sheet.has-x { padding-inline-end: 2px; }
  .ane-sch__sheet > .ane-sch__sheet-x { visibility: visible; flex-basis: 20px; width: 20px; min-width: 20px; height: 22px; margin-inline-start: 6px; }
  /* a one-letter name is still a finger's width, and clear of the ×, so a tap on it opens the tab */
  .ane-sch__sheet > span:not(.ane-sch__sheet-i):not(.ane-sch__sheet-x) { min-width: 32px; text-align: center; }
}
/* a closed document in the Projects tree: still there, faded, one click from open */
.ane-sch__tree-i.is-closed { color: var(--a-text-faded); font-style: italic; }
.ane-sch__tree-i.is-closed > .ane-sch-i { opacity: .55; }


/* ---------------- board page ---------------- */

/*
 * The board's layer control, the last group of the drawing-tools bar: the
 * active-layer chip (the layer's colour and the digit that picks it), the
 * split segment under it that opens the layers popover, and the 2D / 3D
 * switch. In 3D the tools go and the group, with the four view angles, stays.
 */
.ane-sch__layers {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-top: 3px;
  padding-top: 3px;
  border-top: 1px solid var(--a-sep);
}
.ane-sch__layers[hidden] { display: none; }
.ane-sch.is-3d .ane-sch__abar .ane-sch__grp--tools { display: none; }
.ane-sch.is-3d .ane-sch__layers { margin-top: 0; padding-top: 0; border-top: 0; }
.ane-sch.is-3d .ane-sch__abar { display: flex; }

.ane-sch__lchip {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 24px;
  height: 24px;
  padding: 0;
  box-sizing: border-box;
  border: 1px solid var(--a-layer-border);
  border-radius: var(--a-r-chip);
  color: var(--a-pad-text, #0B110D);
  font: 600 11px/1 var(--a-font);
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}
/* the phone's chip also says which layer it is: the swatch, the digit and the short name */
.ane-sch__lchip::after { content: none; }
.ane-sch__lchip:hover { filter: brightness(1.08); }
.ane-sch__lchip:focus-visible, .ane-sch__lchip-more:focus-visible { outline: 2px solid var(--a-focus); outline-offset: 1px; }
.ane-sch__lchip-more {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 16px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0 0 var(--a-r-ctl) var(--a-r-ctl);
  background: transparent;
  color: var(--a-abar-mark);
  cursor: pointer;
  transition: var(--a-trans);
}
.ane-sch__lchip-more .ane-sch-i { width: 10px; height: 10px; }
.ane-sch__lchip-more:hover, .ane-sch__lchip-more[aria-expanded="true"] { background: var(--a-hover); color: var(--a-text-strong); }

/* 2D / 3D (and the 3D angles): joined 24px squares, stacked in the bar; the chosen one is on --a-sel with the bar on its inline-end edge */
.ane-sch__layers > .ane-sch__seg { flex-direction: column; flex-wrap: nowrap; margin: 4px 0 0; }
.ane-sch__layers > .ane-sch__seg-wrap-gap, .ane-sch__layers > .ane-sch__seg--wrap { margin-bottom: 0; }
.ane-sch__layers .ane-sch__seg-b {
  flex: none;
  width: 24px;
  height: 24px;
  padding: 0;
  font-size: var(--a-fs-sm);
  font-weight: 600;
  line-height: 22px;
  text-align: center;
}
.ane-sch__layers .ane-sch__seg-b + .ane-sch__seg-b { margin-inline-start: 0; margin-top: -1px; }
.ane-sch__layers .ane-sch__seg-b:first-child { border-radius: var(--a-r-ctl) var(--a-r-ctl) 0 0; }
.ane-sch__layers .ane-sch__seg-b:last-child { border-radius: 0 0 var(--a-r-ctl) var(--a-r-ctl); }
.ane-sch__layers .ane-sch__seg-b:only-child { border-radius: var(--a-r-ctl); }
.ane-sch__layers .ane-sch__seg-b.is-on,
.ane-sch__layers .ane-sch__seg-b.is-on:hover { box-shadow: inset -2px 0 0 var(--a-bar); }
.ane-sch[dir="rtl"] .ane-sch__layers .ane-sch__seg-b.is-on,
.ane-sch[dir="rtl"] .ane-sch__layers .ane-sch__seg-b.is-on:hover { box-shadow: inset 2px 0 0 var(--a-bar); }
.ane-sch__layers .ane-sch__seg-b .ane-sch-i { width: 16px; height: 16px; display: block; margin: 0 auto; stroke: currentColor; stroke-width: 1.5; }

/* the popover: beside the bar toward the canvas (above it on a phone), placed by the editor */
.ane-sch__lpop {
  position: fixed;
  z-index: 60;
  width: 240px;
  max-width: calc(100vw - 16px);
  box-sizing: border-box;
  padding: 4px 0;
  background: var(--a-menu);
  border-radius: var(--a-r-pop);
  box-shadow: var(--a-shadow-menu);
  color: var(--a-text);
  font-size: var(--a-fs);
  line-height: var(--a-lh);
  text-align: start;
}
.ane-sch__lpop[hidden] { display: none; }
.ane-sch__lpop-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 28px; padding: 0 4px 0 12px; }
.ane-sch[dir="rtl"] .ane-sch__lpop-h { padding: 0 12px 0 4px; }
.ane-sch__lpop-t { font-weight: 600; color: var(--a-text-strong); }
.ane-sch__lpop-sep { height: 1px; margin: 4px 0; border: 0; background: var(--a-sep); }
.ane-sch__ls {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 6px;
  border: 0;
  border-radius: var(--a-r-ctl);
  background: transparent;
  color: var(--a-text);
  font: inherit;
  font-size: var(--a-fs-sm);
  cursor: pointer;
  transition: var(--a-trans);
}
.ane-sch__ls > i { display: inline-flex; flex: none; }
.ane-sch__ls .ane-sch-i { flex: none; width: 16px; height: 16px; }
.ane-sch__ls .ane-sch-i:last-child { width: 10px; height: 10px; }
.ane-sch__ls span { unicode-bidi: isolate; white-space: nowrap; }
.ane-sch__ls:hover, .ane-sch__ls[aria-expanded="true"] { background: var(--a-menu-hover); color: var(--a-menu-hover-text); }
.ane-sch__ls:focus-visible { outline: 2px solid var(--a-focus); outline-offset: -2px; }

.ane-sch__layer { display: flex; align-items: center; height: 28px; padding-inline: 4px 4px; background: transparent; }
.ane-sch__layer:hover { background: var(--a-menu-hover); }
/* the layer in hand: the selected-row ground (and, in the light theme, its 1px inset edge), a heavier name */
.ane-sch__layer.is-on { background: var(--a-sel); box-shadow: inset 0 0 0 1px var(--a-sel-edge); }
.ane-sch__layer-p {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 100%;
  padding: 0 4px 0 8px;
  border: 0;
  border-radius: var(--a-r-ctl);
  background: transparent;
  color: var(--a-layer-text);
  font: inherit;
  font-weight: 400;
  text-align: start;
  cursor: pointer;
  white-space: nowrap;
}
.ane-sch__layer-p i { flex: 0 0 auto; width: 12px; height: 12px; box-sizing: border-box; border: 1px solid var(--a-layer-border); border-radius: var(--a-r-chip); }
.ane-sch__layer-p > span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; unicode-bidi: isolate; }
.ane-sch__layer-p .ane-sch__kc {
  flex: none;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  box-sizing: border-box;
  border-radius: var(--a-r-chip);
  background: var(--a-tip-key-bg);
  color: var(--a-tip-key);
  font: 500 11px/16px var(--a-font-mono);
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.ane-sch__layer:hover .ane-sch__layer-p { color: var(--a-text); }
.ane-sch__layer.is-on .ane-sch__layer-p { color: var(--a-sel-text); font-weight: 600; }
/* a hidden layer's swatch and name step back */
.ane-sch__layer.is-hidden .ane-sch__layer-p > i,
.ane-sch__layer.is-hidden .ane-sch__layer-p > span { opacity: .45; }
.ane-sch__layer-p:focus-visible { outline: 2px solid var(--a-focus); outline-offset: -2px; }
.ane-sch__layer-e {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--a-r-ctl);
  background: transparent;
  color: var(--a-text-faded);
  cursor: pointer;
  transition: var(--a-trans);
}
.ane-sch__layer-e:hover { background: var(--a-hover); color: var(--a-text-strong); }
.ane-sch__layer-e.is-off { color: var(--a-text-dis); }
.ane-sch__layer-e:focus-visible { outline: 2px solid var(--a-focus); outline-offset: -2px; }
.ane-sch__layer-e > .ane-sch-i { width: 14px; height: 14px; }

.ane-sch__sheet--pcb { font-style: normal; }

.ane-sch__pcbres {
  margin: 8px 0 0;
  padding: 9px 11px;
  border-radius: var(--sch-r-sm);
  background: var(--sch-bg-2);
  color: var(--sch-ink);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}


/* ================= layer stack-up ================= */

.ane-sch__stk-top {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: end;
  gap: 6px;
  margin-top: 7px;
}
.ane-sch__ncf--wide { min-width: 0; }
.ane-sch__stk-sum { margin: 8px 0 0; font-size: var(--a-fs); color: var(--sch-ink-2); }
.ane-sch__stk-sum b { color: var(--sch-ink); }
.ane-sch__stk-off { color: var(--sch-drop-ink); }

.ane-sch__stk {
  display: grid;
  gap: 4px;
  margin-top: 8px;
  padding: 6px;
  border: 1px solid var(--sch-line);
  border-radius: var(--a-r);
  background: var(--sch-bg-2);
  /* an eight layer build is seventeen rows; it scrolls here rather than
     pushing the impedance table off the end of the pane */
  max-height: 380px;
  overflow: auto;
}
.ane-sch__stk-r {
  display: grid;
  gap: 6px;
  padding: 7px 8px;
  border-radius: var(--a-r);
}
.ane-sch__stk-h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}
/* a field narrower than this hides the digits that matter, so the row wraps
   onto a second line rather than letting 0.0254 read as 4 */
.ane-sch__stk-c {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
  align-items: end;
  gap: 6px;
}
.ane-sch__stk-t { font-size: var(--a-fs-sm); color: var(--sch-ink-2); white-space: nowrap; unicode-bidi: isolate; }
.ane-sch__in--num { text-align: start; }
/* the sandwich reads as one: metal is solid, insulation is recessed */
.ane-sch__stk-r--cu { background: rgba(214, 90, 60, 0.12); }
.ane-sch__stk-r--di { background: rgba(150, 150, 150, 0.12); }
.ane-sch__stk-r--mask { background: rgba(3, 182, 46, 0.12); }
.ane-sch__stk-n {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--a-fs-sm);
  min-width: 0;
}
.ane-sch__stk-sw { width: 10px; height: 10px; border-radius: var(--a-r-chip); flex: none; }

.ane-sch__ztab {
  display: grid;
  gap: 4px;
  margin-top: 8px;
  font-size: var(--a-fs-sm);
}
.ane-sch__ztab-r {
  display: grid;
  gap: 5px;
  padding: 7px 8px;
  border: 1px solid var(--sch-line);
  border-radius: var(--a-r);
}
.ane-sch__ztab-h {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.ane-sch__ztab-l { font-weight: 400; flex: none; }
.ane-sch__ztab-m {
  flex: 1;
  min-width: 0;
  color: var(--sch-ink-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ane-sch__ztab-c {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
  gap: 4px 8px;
}
.ane-sch__ztab-f { display: grid; gap: 1px; min-width: 0; }
.ane-sch__ztab-fl { font-size: var(--a-fs-sm); font-style: normal; color: var(--sch-ink-2); white-space: nowrap; }
.ane-sch__ztab-v { font-variant-numeric: tabular-nums; font-weight: 400; white-space: nowrap; }
.ane-sch__ztab-b {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px; height: 24px;
  border: 1px solid var(--sch-line);
  border-radius: var(--a-r-ctl);
  background: transparent;
  color: var(--sch-ink-2);
  cursor: pointer;
}
.ane-sch__ztab-b:hover { border-color: var(--sch-acc); color: var(--sch-ink); }
.ane-sch__ztab-b:focus-visible { outline: 2px solid var(--a-focus); outline-offset: 1px; }

.ane-sch__nc-z { margin: 6px 0 0; font-size: var(--a-fs-sm); color: var(--sch-ink-2); }
.ane-sch__nc-z--off { color: var(--sch-drop-ink); }

@media (max-width: 900px) {
  .ane-sch__stk-c { grid-template-columns: repeat(auto-fit, minmax(76px, 1fr)); }
  .ane-sch__ztab-c { grid-template-columns: repeat(auto-fit, minmax(66px, 1fr)); }
}

.ane-sch__ztab-s {
  flex: none;
  max-width: 96px;
  height: 24px;
  border: 1px solid var(--sch-line);
  border-radius: var(--a-r-ctl);
  background: var(--sch-bg);
  color: var(--sch-ink-2);
  font: inherit;
  font-size: var(--a-fs-sm);
  padding: 0 4px;
  cursor: pointer;
}
.ane-sch__ztab-s:hover { border-color: var(--sch-acc); color: var(--sch-ink); }
.ane-sch__ztab-s:focus-visible { outline: 2px solid var(--a-focus); outline-offset: 1px; }

/* ================= buses and sheet ports ================= */

.ane-sch__ports { display: grid; gap: 4px; margin-top: 8px; }
.ane-sch__port {
  display: grid;
  gap: 4px;
  padding: 7px 8px;
  border: 1px solid var(--sch-line);
  border-radius: var(--a-r);
  font-size: var(--a-fs-sm);
}
/* a port that turns up on one sheet only goes nowhere, and says so */
.ane-sch__port--lone { border-style: dashed; }
.ane-sch__port-n { font-variant-numeric: tabular-nums; }
.ane-sch__port-s { display: flex; flex-wrap: wrap; gap: 4px; }
.ane-sch__port-b {
  height: 20px;
  padding: 0 7px;
  border: 1px solid var(--a-btn-border);
  border-radius: var(--a-r-ctl);
  background: var(--a-btn-top);
  color: var(--a-btn-text);
  font: 400 var(--a-fs-sm)/18px var(--a-font);
  cursor: pointer;
  transition: var(--a-trans);
}
.ane-sch__port-b i { font-style: normal; opacity: 0.7; }
.ane-sch__port-b:hover { background: var(--a-btn-hot-top); color: var(--a-btn-text); }
.ane-sch[data-theme="light"] .ane-sch__port-b:hover { border-color: var(--a-text-faded); }
.ane-sch__port-b:active { background: var(--a-press); box-shadow: none; }
.ane-sch__port-b:focus-visible { outline: 2px solid var(--a-focus); outline-offset: 1px; }

/* ================= the change sheet ================= */

.ane-sch__eco {
  padding: 9px 10px 10px;
  margin-bottom: 10px;
  border: 1px solid var(--sch-acc);
  border-radius: var(--a-r);
  background: var(--sch-bg-2);
}
.ane-sch__eco > .ane-sch__cat-h { margin-top: 0; }
.ane-sch__eco-sum { display: flex; flex-wrap: wrap; gap: 5px; margin: 6px 0 2px; }
.ane-sch__eco-p {
  font-size: var(--a-fs-sm);
  padding: 2px 8px;
  border-radius: var(--a-r-ctl);
  border: 1px solid var(--sch-line);
}
.ane-sch__eco-p--add { color: var(--sch-add-ink); border-color: var(--sch-add-line); }
.ane-sch__eco-p--drop { color: var(--sch-drop-ink); border-color: var(--sch-drop-line); }
.ane-sch__eco-p--change { color: var(--sch-change-ink); border-color: var(--sch-change-line); }
.ane-sch__eco-warn { margin: 6px 0 0; font-size: var(--a-fs-sm); color: var(--sch-drop-ink); }
.ane-sch__eco-h { margin: 9px 0 3px; font-size: var(--a-fs-sm); color: var(--sch-ink-2); }
.ane-sch__eco-l {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
  max-height: 210px;
  overflow: auto;
}
.ane-sch__eco-i {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: var(--a-fs-sm);
  padding: 3px 7px;
  border-radius: var(--a-r-ctl);
  background: var(--sch-bg);
  overflow-wrap: anywhere;
}
.ane-sch__eco-t { min-width: 0; }
.ane-sch__eco-i > .ane-sch-i { flex: none; width: 12px; height: 12px; margin-top: 2px; }
.ane-sch__eco-i--add > .ane-sch-i { color: var(--sch-add-ink); }
.ane-sch__eco-i--drop > .ane-sch-i { color: var(--sch-drop-ink); }
.ane-sch__eco-i--change > .ane-sch-i { color: var(--sch-change-ink); }

/* ================= vias that stop inside the board ================= */

.ane-sch__check {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 9px;
  font-size: var(--a-fs);
  cursor: pointer;
}
.ane-sch__check input { accent-color: var(--a-acc-strong); }

.ane-sch__spans { display: grid; gap: 3px; margin-top: 8px; }
.ane-sch__span {
  display: grid;
  grid-template-columns: minmax(58px, auto) minmax(0, 1fr) 46px 52px auto;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: var(--a-r);
  font-size: var(--a-fs-sm);
  border: 1px solid transparent;
}
.ane-sch__span:nth-child(even) { background: var(--sch-bg-2); }
/* a span the board is already using reads as settled, not as an option */
.ane-sch__span.is-used {
  border-color: var(--sch-acc);
  background: var(--sch-acc-soft);
}
.ane-sch__span-n { font-variant-numeric: tabular-nums; }
.ane-sch__span-k { color: var(--sch-ink-2); }
.ane-sch__span-v { font-variant-numeric: tabular-nums; color: var(--sch-ink-2); }
.ane-sch__span-u {
  font-style: normal;
  font-size: var(--a-fs-sm);
  min-width: 18px;
  padding: 1px 5px;
  border-radius: var(--a-r-ctl);
  text-align: center;
  background: var(--sch-acc-strong);
  color: var(--sch-on-acc);
}

@media (max-width: 900px) {
  .ane-sch__span { grid-template-columns: minmax(52px, auto) minmax(0, 1fr) 44px auto; }
  .ane-sch__span > :nth-child(4) { display: none; }
}

/* ================= rooms and net colour ================= */

.ane-sch__check--s { margin-top: 0; font-size: var(--a-fs-sm); }
.ane-sch__nc-v {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
/* a highlight that is on says so, because everything else on the board has
   just stepped back and the engineer needs to know why */
.ane-sch__act.is-on,
.ane-sch__act.is-on:hover,
.ane-sch[data-theme="light"] .ane-sch__act.is-on:hover {
  border-color: var(--a-btn-pri-edge);
  background: var(--a-btn-pri);
  box-shadow: none;
  color: var(--a-btn-pri-text);
}

/* ---------- simulation ---------- */

.ane-sch__plotwrap {
  margin: 10px 0 6px;
  border: 1px solid var(--sch-line);
  border-radius: var(--sch-r-sm);
  overflow: hidden;
  background: var(--sch-paper);
}

.ane-sch__plot {
  display: block;
  width: 100%;
  height: auto;
}

.ane-sch__dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-inline-end: 6px;
  vertical-align: -1px;
  /* a ring of paper round the probe colour: navy on a dark panel is lost */
  box-shadow: 0 0 0 1.5px var(--sch-paper);
}

/* ---------- מפקח הרכיב: סמל, תבנית וגוף תלת-ממדי ---------- */
/* שלוש תשובות לאותה שאלה, לכן מסגרת אחת ובורר אחד ולא שלושה חלונות. */
.ane-sch__insp { margin: 10px 0 12px; }

/* the inspector's Symbol / Footprint / 3D switch: three equal buttons */
.ane-sch__insp > .ane-sch__seg .ane-sch__seg-b { flex: 1 1 0; }

.ane-sch__insp-stage {
  position: relative;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.ane-sch__insp-v {
  display: grid;
  place-items: center;
  height: 168px;
  padding: 10px;
}
.ane-sch__insp-v[hidden] { display: none; }
.ane-sch__insp-v--sheet { background: var(--sch-paper); }
.ane-sch.is-dark-sheet .ane-sch__insp-v--sheet { background: #171D1A; }
.ane-sch__insp-v--board { background: var(--sch-pcb-bg); padding: 0; }
.ane-sch__insp-v--three { background: var(--sch-desk); padding: 0; position: relative; }
.ane-sch__insp-v svg { width: 100%; height: 100%; display: block; }
.ane-sch__insp-cv { width: 100%; height: 168px; display: block; touch-action: none; cursor: grab; }
.ane-sch__insp-cv:active { cursor: grabbing; }


.ane-sch__insp-none {
  margin: 0; font-size: var(--a-fs); color: var(--muted); text-align: center;
}
.ane-sch__insp-v--board .ane-sch__insp-none { color: var(--a-text-faded); }
.ane-sch__insp-hint {
  margin: 6px 0 0; font-size: var(--a-fs-sm); color: var(--muted); text-align: center;
}

.ane-sch__insp-fold { margin: 10px 0; }
.ane-sch__insp-fold > summary {
  cursor: pointer; font-size: var(--a-fs); font-weight: 600; color: var(--ink-2);
  padding: 4px 0;
}
.ane-sch__insp-fold > summary:focus-visible { outline: 2px solid var(--a-focus); outline-offset: 2px; }
.ane-sch__insp-tbl { width: 100%; border-collapse: collapse; font-size: var(--a-fs); margin-top: 4px; }
.ane-sch__insp-tbl th {
  text-align: start; font-weight: 600; color: var(--muted);
  padding: 3px 6px; border-bottom: 1px solid var(--line); font-size: var(--a-fs-sm);
}
.ane-sch__insp-tbl td { padding: 3px 6px; border-bottom: 1px solid var(--bg-3); }
.ane-sch__insp-tbl tr.is-missing td { color: var(--sch-err); }

.ane-sch__insp-dl {
  display: grid; grid-template-columns: auto 1fr; gap: 3px 10px;
  margin: 6px 0 0; font-size: var(--a-fs);
}
.ane-sch__insp-dl dt { color: var(--muted); }
.ane-sch__insp-dl dd { margin: 0; font-weight: 400; color: var(--ink); }
.ane-sch__insp-dl dd.is-warn { color: var(--sch-warn); }
.ane-sch__insp-dl dd.is-bad { color: var(--sch-err); }
.ane-sch__insp-note {
  margin: 8px 0 0; padding: 7px 10px; font-size: var(--a-fs-sm); line-height: 1.5;
  color: var(--sch-note-ink); background: var(--sch-note-bg);
  border: 1px solid var(--sch-note-line); border-radius: var(--sch-r-sm);
}
.ane-sch__part-row .ane-sch__pstock.is-none { color: var(--sch-warn); }
.ane-sch__insp-warn {
  margin: 8px 0 0; padding: 7px 10px; font-size: var(--a-fs); font-weight: 400;
  color: var(--sch-bad-ink); background: var(--sch-bad-bg); border: 1px solid var(--sch-bad-line);
  border-radius: var(--r-sm);
}
.ane-sch__insp-buy { margin-top: 12px; }

/* ---------- מעגל טיפוסי: מה הרכיב צריך סביבו ---------- */
.ane-sch__apps { margin-top: 14px; }
.ane-sch__apps-fam {
  margin: 2px 0 2px; font-size: var(--a-fs); font-weight: 600; color: var(--accent-ink);
}
.ane-sch__apps-assumed {
  margin: 6px 0 0; padding: 6px 9px; font-size: var(--a-fs-sm); color: var(--sch-note-ink);
  background: var(--sch-note-bg); border: 1px solid var(--sch-note-line); border-radius: var(--r-sm);
}
.ane-sch__apps-list { list-style: none; margin: 9px 0 0; padding: 0; display: grid; gap: 7px; }
.ane-sch__apps-i {
  padding: 8px 10px; background: var(--bg-3);
  border-radius: var(--r-sm); border: 1px solid transparent;
  transition: var(--a-trans);
}
.ane-sch__apps-i:hover { border-color: var(--line); }
.ane-sch__apps-h { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.ane-sch__apps-h b { font-size: var(--a-fs); color: var(--ink); }
.ane-sch__apps-v {
  font-size: var(--a-fs); font-weight: 400; color: var(--accent-ink);
  font-variant-numeric: tabular-nums;
}
.ane-sch__apps-tag {
  font-style: normal; font-size: var(--a-fs-sm); font-weight: 400; color: var(--muted);
  background: var(--sch-raised); border: 1px solid var(--line);
  padding: 1px 6px; border-radius: var(--r-pill);
}
.ane-sch__apps-why {
  margin: 4px 0 0; font-size: var(--a-fs-sm); line-height: 1.5; color: var(--ink-2);
}
/* in-panel notes (spec 7.9): a tinted ground and a leading status icon, no side stripe */
.ane-sch__apps-note {
  display: flex; align-items: flex-start; gap: 6px;
  margin: 8px 0 0; padding: 7px 10px; font-size: var(--a-fs-sm); line-height: 1.5;
  color: var(--ink-2); background: var(--sch-acc-soft);
  border-radius: var(--a-r-ctl);
}
.ane-sch__apps-note > .ane-sch-i { flex: none; width: 14px; height: 14px; margin-top: 2px; }
.ane-sch__apps-note.is-warn {
  color: var(--sch-note-ink); background: var(--sch-note-bg);
}

/*
 * Anything that can hold a part number.
 *
 * A part number is Latin text that often ends in a plus or a dash, and in a
 * right to left panel those trailing characters move to the front: PGA-105+
 * displays as +PGA-105, which is not a number anybody can order. `plaintext`
 * lays each string out by its own first strong character, so a number reads
 * left to right and a Hebrew line beside it still reads right to left.
 */
.ane-sch__pn,
.ane-sch__pmfr,
.ane-sch__insp-dl dd,
.ane-sch__partbox .ane-sch__pn,
.ane-sch__apps-i b,
.ane-sch__apps-v { unicode-bidi: plaintext; }

.ane-sch__pact.is-apps, .ane-sch__pact.is-apps:hover { border-color: var(--a-acc); font-weight: 400; }

/* ---- every source that answered for a part, by name ---- */
.ane-sch__offers-h { margin: 10px 0 4px; }
.ane-sch__nw { white-space: nowrap; }
.ane-sch__insp-dl dd .ane-sch__insp-src {
  display: block; font-weight: 400; font-size: var(--a-fs-sm); color: var(--sch-muted); unicode-bidi: plaintext;
}
.ane-sch__offers {
  list-style: none; margin: 0; padding: 0;
  border: 1px solid var(--sch-line); border-radius: var(--sch-r-sm); overflow: hidden;
}
.ane-sch__offer {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "n q" "p a";
  gap: 1px 10px; padding: 6px 9px; font-size: var(--a-fs-sm);
  border-top: 1px solid var(--sch-line-2);
}
.ane-sch__offer:first-child { border-top: 0; }
.ane-sch__offer.is-best { background: var(--sch-acc-soft); }
.ane-sch__offer-n { grid-area: n; display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.ane-sch__offer-n bdi {
  font-weight: 400; color: var(--sch-ink); min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ane-sch__offer-k { font-style: normal; font-size: var(--a-fs-sm); color: var(--sch-muted); }
.ane-sch__offer-p .ane-sch__offer-k + span::before { content: "\00b7"; margin-inline: 5px; }
.ane-sch__offer-q {
  grid-area: q; justify-self: end; font-weight: 400; font-variant-numeric: tabular-nums;
  color: var(--sch-ink-2); unicode-bidi: plaintext;
}
.ane-sch__offer-q.is-ok { color: var(--sch-acc-ink); }
.ane-sch__offer-q.is-bad { color: var(--sch-err); }
.ane-sch__offer-p {
  grid-area: p; min-width: 0; color: var(--sch-muted); font-variant-numeric: tabular-nums;
}
.ane-sch__offer-p > span { unicode-bidi: isolate; }
.ane-sch__offer-a, .ane-sch__olink {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--sch-acc-ink); text-decoration: underline; text-underline-offset: 2px;
  border-radius: var(--a-r);
}
.ane-sch__offer-a { grid-area: a; justify-self: end; font-size: var(--a-fs-sm); }
.ane-sch__offer-a:focus-visible, .ane-sch__olink:focus-visible { outline: 2px solid var(--a-focus); outline-offset: 2px; }
[dir="rtl"] .ane-sch__offer-a svg, [dir="rtl"] .ane-sch__olink svg { transform: scaleX(-1); }
.ane-sch__olinks { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 8px 0 0; font-size: var(--a-fs-sm); }

.ane-sch__insp-live { margin: 6px 0 0; font-size: var(--a-fs-sm); color: var(--sch-muted); min-height: 1em; }
/* empty, it still exists for a screen reader - it only takes no room */
.ane-sch__insp-live:empty {
  position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.ane-sch__insp-live.is-busy::before {
  content: ""; display: inline-block; width: 6px; height: 6px; margin-inline-end: 6px;
  border-radius: 50%; background: var(--sch-acc); vertical-align: 1px;
  animation: ane-sch-live 900ms var(--sch-ease) infinite alternate;
}
@keyframes ane-sch-live { from { opacity: .25; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .ane-sch__pal-p { transition: none; }
  .ane-sch__pal-apps { transition: none; }
  .ane-sch__insp-live.is-busy::before { animation: none; }
}

/* ---- the operating point the answer above was solved from ---- */
.ane-sch__apps-host { display: block; }
.ane-sch__insp-errs:empty { display: none; }
.ane-sch__apps-op {
  margin: 10px 0 0; padding: 0; background: var(--bg-2);
  border: 1px solid var(--line); border-radius: var(--r-sm);
}
.ane-sch__apps-op > summary {
  list-style: none; cursor: pointer; padding: 8px 10px;
  font-size: var(--a-fs); font-weight: 600; color: var(--ink);
  display: flex; align-items: center; gap: 7px; user-select: none;
  border-radius: var(--r-sm);
  transition: var(--a-trans);
}
.ane-sch__apps-op > summary:hover { background: var(--bg-3); }
.ane-sch__apps-op > *:not(summary) { margin-inline: 10px; }
.ane-sch__apps-op > p { margin-bottom: 10px; }
.ane-sch__apps-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 7px; margin-top: 2px;
}
/*
 * The label wraps rather than clipping, because the first thing an ellipsis
 * eats is the unit - and a frequency field with no unit on it is the
 * difference between five hundred megahertz and five hundred kilohertz.
 */
.ane-sch__apps-f {
  display: grid; grid-template-rows: 1fr auto; gap: 3px; min-width: 0;
}
.ane-sch__apps-fl {
  font-size: var(--a-fs-sm); font-weight: 600; color: var(--muted);
  line-height: 1.3; align-self: end; overflow-wrap: break-word;
}
.ane-sch__apps-fl em {
  font-style: normal; font-weight: 400; color: var(--ink-3);
  white-space: nowrap;
}
/*
 * The number runs left to right whichever way the panel does, because a
 * minus sign laid out right to left prints -10 as 10- and reads as ten.
 */
.ane-sch__apps-fi {
  width: 100%; min-width: 0; font-variant-numeric: tabular-nums;
  padding-block: 5px; padding-inline: 8px; font-size: var(--a-fs);
  direction: ltr; text-align: end;
}
/* a value nobody entered must not be able to pass for one that was */
.ane-sch__apps-fi::placeholder {
  color: var(--ink-3); opacity: 1; font-style: italic; font-weight: 400;
}

@media (max-width: 380px) {
  .ane-sch__apps-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .ane-sch__apps-op > summary { transition: none; }
}

/* ================= the workspace ================= */

/* the status line's content keeps the bar's own flex layout */
.ane-sch__st { display: contents; }
.ane-sch__xy {
  flex: 0 0 auto;
  min-width: 0;
  color: var(--sch-ink-2);
  font-variant-numeric: tabular-nums;
  direction: ltr;
  unicode-bidi: isolate;
}
.ane-sch__xy:empty { display: none; }

/*
 * The drawing tools: a vertical 32px bar on the canvas's inline-start edge
 * (the left in English, the right in Hebrew), 8px in from the corner of the
 * canvas. Select, then place (a part, a power port), connect, annotate,
 * arrange, erase. A tool with a flyout has its chevron segment under it;
 * the tool in hand is washed in lime with a 2px edge on the side that
 * faces the canvas.
 */
.ane-sch__abar {
  position: absolute;
  top: calc(var(--a-doc-h) + 8px);
  inset-inline-start: 8px;
  z-index: 15;
  display: flex;
  flex-direction: column;
  width: 32px;
  padding: 3px;
  backdrop-filter: none;
  background: var(--a-abar-bg);
  border: 1px solid var(--a-abar-border);
  border-radius: var(--a-r-pop);
  box-shadow: var(--a-shadow-abar);
}
.ane-sch__abar .ane-sch__grp { display: flex; flex-direction: column; align-items: center; gap: 2px; border: 0; padding: 0; }
.ane-sch__abar .ane-sch__b { width: 24px; height: 24px; border-radius: var(--a-r-ctl); }
.ane-sch__abar .ane-sch__b > .ane-sch-i { width: 16px; height: 16px; }
.ane-sch__abar .ane-sch__b.is-on {
  background: var(--a-hi-wash);
  border-color: transparent;
  box-shadow: inset -2px 0 0 var(--a-hi-edge);
  color: var(--a-text-strong);
}
.ane-sch[dir="rtl"] .ane-sch__abar .ane-sch__b.is-on { box-shadow: inset 2px 0 0 var(--a-hi-edge); }
/* a button whose flyout is open stays down while the list is up */
.ane-sch__abar .ane-sch__b[aria-expanded="true"] { background: var(--a-press); border-color: var(--a-btn-border); color: var(--a-text-strong); }
.ane-sch.is-board .ane-sch__abar { top: calc(var(--a-doc-h) + 8px); }
.ane-sch__abar-sep { flex: none; width: 16px; height: 1px; margin-block: 3px; align-self: center; border-radius: 1px; background: var(--a-sep); }
/* the chevron segment: not a tool, it opens its tool's flyout */
.ane-sch__ab-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 24px;
  height: 16px;
  margin: -2px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0 0 var(--a-r-ctl) var(--a-r-ctl);
  background: transparent;
  color: var(--a-icon);
  cursor: pointer;
  transition: var(--a-trans);
}
.ane-sch__ab-more .ane-sch-i { width: 10px; height: 10px; }
.ane-sch__ab-more:hover,
.ane-sch__ab-more[aria-expanded="true"] { background: var(--a-hover); color: var(--a-text-strong); }
.ane-sch__ab-more:focus-visible { outline: 2px solid var(--a-focus); outline-offset: -2px; }

/* the side panel's two faces, Components and Projects: their tabs share the
   group-tab skin above, along the foot of the dock */
.ane-sch__side-head[hidden], .ane-sch__palette[hidden], .ane-sch__proj[hidden] { display: none; }


/* dialogs: the Import Wizard and the Output Center */
.ane-sch__dlg {
  width: min(560px, calc(100vw - 32px));
  max-height: min(86vh, 720px);
  padding: 0;
  border: 1px solid var(--a-border);
  border-radius: var(--a-r-pop);
  background: var(--a-panel);
  color: var(--a-text);
  box-shadow: var(--a-shadow-dlg);
  overflow: hidden;
  /* a dialog fades in, opacity only: the same by mouse and by keyboard */
  opacity: 1;
  transition: opacity var(--a-dlg-in) var(--a-ease);
}
@starting-style { .ane-sch__dlg[open] { opacity: 0; } }
.ane-sch__dlg[open] { display: flex; flex-direction: column; }
.ane-sch__dlg::backdrop { background: rgba(4, 8, 6, .40); }
/* the header (spec 7.10): 32px on the panel ground; ANE's mark of a dialog is the
   2px bar in the brand green under the title's text, 40px wide, at the start */
.ane-sch__dlg-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex: none;
  position: relative;
  z-index: 3;
  height: 32px;
  padding: 0 4px 0 12px;
  background: var(--a-panel);
  box-shadow: 0 1px 0 var(--a-border);
  user-select: none;
}
[dir="rtl"] .ane-sch__dlg-h { padding: 0 12px 0 4px; }
.ane-sch__dlg-t {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
  min-width: 0;
  margin: 0;
  font-size: var(--a-fs-h);
  line-height: var(--a-lh);
  font-weight: 600;
  color: var(--a-text-strong);
}
.ane-sch__dlg-t::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: var(--a-bar);
}
.ane-sch__dlg-x {
  display: grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: var(--a-r-ctl);
  background: transparent;
  color: var(--a-text);
  cursor: pointer;
  transition: var(--a-trans);
}
.ane-sch__dlg-x .ane-sch-i { width: 16px; height: 16px; }
.ane-sch__dlg-x:hover { background: var(--a-close-hot); color: var(--a-text-strong); }
.ane-sch__dlg-x:active { background: var(--a-close-press); color: var(--a-text-strong); }
.ane-sch__dlg-x:focus-visible { outline: 2px solid var(--a-focus); outline-offset: -2px; }
.ane-sch__dlg-b { padding: 8px 10px; overflow: auto; font-size: var(--a-fs); line-height: var(--a-lh); }
/* Find (Ctrl+F): one field, the matches under it, a line on the keys at the foot */
.ane-sch__dlg--find { width: min(560px, calc(100vw - 32px)); }
.ane-sch__find-in { width: 100%; box-sizing: border-box; min-height: 36px; font-size: 14px; }
.ane-sch__find-l { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; max-height: min(50vh, 420px); overflow: auto; }
.ane-sch__find-l[hidden] { display: none; }
.ane-sch__find-r {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center;
  width: 100%; padding: 6px 10px; border: 1px solid transparent; border-radius: var(--a-r-ctl);
  background: transparent; color: var(--a-text); font: inherit; text-align: start; cursor: pointer;
}
.ane-sch__find-r:hover, .ane-sch__find-r.is-cur { background: var(--a-sel-2); border-color: var(--a-sel); }
.ane-sch__find-r:focus-visible { outline: 2px solid var(--a-focus); outline-offset: -2px; }
.ane-sch__find-k {
  grid-row: 1 / span 2; min-width: 44px; padding: 2px 6px; border-radius: var(--a-r-ctl);
  background: var(--a-sel-inact); color: var(--a-text-faded); font-size: 11px; text-align: center; white-space: nowrap;
}
.ane-sch__find-t { font-weight: 600; color: var(--a-text-strong); }
.ane-sch__find-s { font-size: 12px; color: var(--a-text-faded); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ane-sch__find-h { margin: 8px 0 0; }
/*
 * Saved projects and Version history (ane-sch-projects.js): a search row, then
 * one row per project - the first sheet small on its paper, the name with the
 * project's dates under it, its actions at the end - and the storage line.
 */
.ane-sch__dlg--proj, .ane-sch__dlg--hist { width: min(720px, calc(100vw - 32px)); }
.ane-sch__dlg--ver { width: min(440px, calc(100vw - 32px)); }
.ane-sch__sp-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ane-sch__sp-top .ane-sch__wide { height: 28px; flex: 0 0 auto; }
.ane-sch__sp-q { flex: 1 1 200px; min-width: 160px; height: 28px; font-size: 13px; }
.ane-sch__sp-l, .ane-sch__hi-l {
  display: flex; flex-direction: column; gap: 2px;
  margin: 8px 0 0; padding: 0; list-style: none;
  max-height: min(54vh, 460px); overflow: auto;
}
.ane-sch__sp-r {
  display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; column-gap: 10px;
  min-height: 48px; padding: 4px 8px; border: 1px solid transparent; border-radius: var(--a-r-ctl);
  transition: var(--a-trans);
}
.ane-sch__sp-r:hover { background: var(--a-hover); }
.ane-sch__sp-r.is-cur { background: var(--a-sel-inact); }
.ane-sch__sp-th {
  display: grid; place-items: center; width: 56px; height: 38px; overflow: hidden;
  border: 1px solid var(--a-border-in); border-radius: var(--a-r-chip); background: var(--a-pv-top); color: var(--a-text-faded);
}
.ane-sch__sp-th img { display: block; width: 56px; height: 38px; object-fit: contain; }
.ane-sch__sp-m { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ane-sch__sp-h { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ane-sch__sp-n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--a-text-strong); }
.ane-sch__sp-chip {
  flex: none; padding: 0 6px; border-radius: var(--a-r-chip); background: var(--a-header);
  color: var(--a-text); font-size: var(--a-fs-sm); line-height: 16px;
}
.ane-sch__sp-s { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--a-fs-sm); color: var(--a-text-faded); font-variant-numeric: tabular-nums; }
.ane-sch__sp-a { display: flex; align-items: center; gap: 2px; }
.ane-sch__sp-a .ane-sch__wide { min-width: 0; height: 24px; margin-inline-end: 4px; }
.ane-sch__sp-a .ane-sch__ib { flex: none; }
.ane-sch__sp-rin { height: 24px; max-width: 320px; font-weight: 600; }
.ane-sch__sp-none { padding: 14px 8px; color: var(--a-text-faded); background: var(--a-plain); border-radius: var(--a-r-ctl); }
.ane-sch__sp-said { margin: 6px 0 0; min-height: 16px; font-size: var(--a-fs-sm); color: var(--a-text-faded); }
.ane-sch__sp-said:empty { min-height: 0; margin: 0; }
.ane-sch__sp-use {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 10px; padding-top: 8px;
  border-top: 1px solid var(--a-border-in); font-size: var(--a-fs-sm); color: var(--a-text-faded); font-variant-numeric: tabular-nums;
}
.ane-sch__sp-use:empty { display: none; }
.ane-sch__sp-bar { position: relative; flex: 1 1 120px; max-width: 200px; height: 4px; overflow: hidden; border-radius: var(--a-r-chip); background: var(--a-border-in); }
.ane-sch__sp-bar > i { position: absolute; inset-block: 0; inset-inline-start: 0; background: var(--a-acc); }
.ane-sch__sp-use.is-warn .ane-sch__sp-bar > i { background: var(--sch-warn); }
.ane-sch__sp-warn {
  display: flex; align-items: flex-start; gap: 6px; flex: 1 1 100%; padding: 6px 8px;
  border-radius: var(--a-r-ctl); background: var(--sch-note-bg); color: var(--a-text); font-size: var(--a-fs);
}
.ane-sch__sp-warn .ane-sch-i { flex: none; color: var(--sch-warn); }
.ane-sch__sp-off { display: flex; align-items: flex-start; gap: 8px; padding: 8px 10px; border-radius: var(--a-r-ctl); background: var(--a-plain); line-height: 1.45; }
.ane-sch__sp-off .ane-sch-i { flex: none; margin-top: 1px; color: var(--a-icon-acc); }
.ane-sch__hi-r {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; column-gap: 12px;
  min-height: 36px; padding: 4px 8px; border-radius: var(--a-r-ctl);
}
.ane-sch__hi-r:hover { background: var(--a-hover); }
.ane-sch__hi-m { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; min-width: 0; }
.ane-sch__hi-t { color: var(--a-text-strong); font-variant-numeric: tabular-nums; }
.ane-sch__hi-k { padding: 0 6px; border-radius: var(--a-r-chip); background: var(--a-header); font-size: var(--a-fs-sm); line-height: 16px; }
.ane-sch__hi-r--manual .ane-sch__hi-k { background: var(--sch-acc-soft); }
.ane-sch__hi-n { flex: 1 1 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--a-text-faded); }
.ane-sch__hi-z { font-size: var(--a-fs-sm); color: var(--a-text-faded); font-variant-numeric: tabular-nums; }
.ane-sch__hi-cap { margin: 8px 0 0; }
.ane-sch__ver-in { height: 28px; font-size: 13px; }
@media (max-width: 560px) {
  .ane-sch__sp-r { grid-template-columns: 58px minmax(0, 1fr); row-gap: 4px; }
  .ane-sch__sp-a { grid-column: 1 / -1; justify-content: flex-end; flex-wrap: wrap; }
  .ane-sch__hi-r { grid-template-columns: minmax(0, 1fr) auto; row-gap: 4px; }
  .ane-sch__hi-r > .ane-sch__sp-a { grid-column: 1 / -1; justify-content: flex-end; }
}
@media (pointer: coarse) {
  .ane-sch__sp-a .ane-sch__ib { width: 40px; height: 40px; }
  .ane-sch__sp-a .ane-sch__wide, .ane-sch__sp-top .ane-sch__wide, .ane-sch__sp-q { height: 40px; }
}
/* a heading inside a dialog: 12px bold, no band */
.ane-sch__dlg-b h3.ane-sch__cat-h,
.ane-sch__dlg-b h4 { display: block; height: auto; margin: 10px 0 4px; padding: 0; border: 0; background: none; font-size: var(--a-fs); line-height: var(--a-lh); font-weight: 600; color: var(--a-text); }
.ane-sch__dlg-b > h3.ane-sch__cat-h:first-child { margin-top: 0; }
/*
 * The dialog's button row (spec 5.12): the buttons at the end, 6px apart,
 * under a thin line, on the dialog's own grey. It stays in sight at the foot
 * of a dialog whose body scrolls.
 */
.ane-sch__dlg .ane-sch__dlg-acts {
  position: sticky;
  bottom: -8px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin: 10px -10px -8px;
  padding: 8px 10px;
  border-top: 1px solid var(--a-border-in);
  background: var(--a-panel);
}
.ane-sch__dlg .ane-sch__dlg-acts > * { flex: 0 0 auto; width: auto; min-width: 75px; margin: 0; }
/* the window's own row, under the body, for a dialog with no row of its own */
.ane-sch__dlg-f {
  display: flex;
  flex: none;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  padding: 8px 10px;
  border-top: 1px solid var(--a-border-in);
  background: var(--a-panel);
}
.ane-sch__dlg-f > .ane-sch__wide { min-width: 75px; }
.ane-sch__dlg-b { flex: 1 1 auto; min-height: 0; }
.ane-sch__dlg:has(.ane-sch__dlg-acts) > .ane-sch__dlg-f,
.ane-sch__dlg--wiz > .ane-sch__dlg-f { display: none; }
.ane-sch__dlg-say { min-height: 1.2em; margin: 8px 0 4px; font-size: var(--a-fs); color: var(--sch-warn); }
.ane-sch__dlg-say:empty { margin: 0; }

.ane-sch__drop {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 16px 12px;
  border: 1px dashed var(--a-field-border);
  border-radius: 0;
  background: var(--a-plain);
  color: var(--a-text);
  text-align: center;
  cursor: pointer;
  transition: var(--a-trans);
}
.ane-sch__drop .ane-sch-i { color: var(--a-acc-text); }
.ane-sch__drop:hover, .ane-sch__drop.is-over { border-color: var(--a-acc); background: var(--a-sel-2); }
.ane-sch__drop > .ane-sch__wide { min-width: 75px; }
.ane-sch__drop:focus-within { outline: 2px solid var(--a-focus); outline-offset: 2px; }

/* the formats and the outputs: grid rows in one framed list, not cards */
.ane-sch__fmts, .ane-sch__outs {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  display: grid;
  gap: 0;
  border: 1px solid var(--a-border-in);
  background: var(--a-plain);
}
.ane-sch__fmts li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-height: 22px;
  padding: 2px 8px;
  border-bottom: 1px solid var(--a-border-in);
  font-size: var(--a-fs);
  line-height: 16px;
}
.ane-sch__fmts li:last-child, .ane-sch__outs > li:last-child { border-bottom: 0; }
.ane-sch__fmts li b { font-weight: 400; color: var(--a-text); }
.ane-sch__fmts li span { color: var(--a-text-faded); direction: ltr; unicode-bidi: isolate; text-align: right; }
/* the extensions keep to the row's outer edge when they wrap */
[dir="rtl"] .ane-sch__fmts li span { text-align: left; }
.ane-sch__out {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 28px;
  padding: 2px 3px 2px 8px;
  border: 0;
  border-bottom: 1px solid var(--a-border-in);
  border-radius: 0;
  background: transparent;
  transition: var(--a-trans);
}
.ane-sch__out:hover { background: var(--a-hover); }
[dir="rtl"] .ane-sch__out { padding: 2px 8px 2px 3px; }
.ane-sch__out-n { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; min-width: 0; font-size: var(--a-fs); line-height: 16px; }
.ane-sch__out-n b { font-weight: 400; color: var(--a-text); }
/* a name that is a tool's own - ODB++, IPC-2581 - reads the way it is written, on a Hebrew page too */
.ane-sch__out-n b, .ane-sch__fmts li b { unicode-bidi: plaintext; }
.ane-sch__out-n em { font-style: normal; font-size: var(--a-fs-sm); color: var(--a-text-faded); direction: ltr; unicode-bidi: isolate; }
.ane-sch__out-n i { font-style: normal; font-size: var(--a-fs-sm); color: var(--a-warn); }
.ane-sch[data-theme="light"] .ane-sch__out-n i { color: var(--sch-warn-strong); }
.ane-sch__out .ane-sch__pact { flex: 0 0 auto; min-width: 75px; }
.ane-sch__out-n small { flex-basis: 100%; font-size: var(--a-fs-sm); color: var(--a-text-faded); }

/* "Drawing colours" at the top of the group of outputs to print and read: three joined options, and one faded line while Automatic is chosen */
.ane-sch__out-ink { display: grid; gap: 4px; margin: 0 0 8px; }
.ane-sch__out-ink-l { font-size: var(--a-fs-sm); color: var(--a-text-faded); }
.ane-sch__out-ink > .ane-sch__seg,
.ane-sch__dlg .ane-sch__out-ink > .ane-sch__seg { margin: 0; }
.ane-sch__out-ink .ane-sch__seg-b { flex: 1 1 0; height: 28px; line-height: 26px; }
.ane-sch__out-hint { font-size: var(--a-fs-sm); line-height: 16px; color: var(--a-text-faded); }
.ane-sch__out-hint[hidden] { display: none; }
@media (pointer: coarse) {
  .ane-sch__out-ink .ane-sch__seg-b { height: 40px; line-height: 38px; }
}

/* the wizard and the output center hold more than a form: a little wider */
.ane-sch__dlg--imp, .ane-sch__dlg--out { width: min(620px, calc(100vw - 32px)); }
.ane-sch__dlg-say.is-ok { color: var(--sch-muted); }
.ane-sch__drop.is-busy { cursor: progress; }
.ane-sch__drop.is-busy > * { opacity: .55; }
.ane-sch__drop.is-busy .ane-sch-i { animation: ane-sch-pulse 1.1s var(--sch-ease) infinite alternate; }
@keyframes ane-sch-pulse { to { opacity: .35; } }

/* what a set of files holds, before it replaces anything */
.ane-sch__imp {
  display: grid;
  gap: 8px;
  margin: 4px 0 10px;
  padding: 8px 10px;
  border: 1px solid var(--a-border-in);
  border-radius: 0;
  background: var(--a-plain);
}
.ane-sch__imp[hidden] { display: none; }
.ane-sch__imp-h { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-size: var(--a-fs); }
.ane-sch__imp-h .ane-sch-i { flex: 0 0 auto; }
.ane-sch__imp-h b { font-weight: 600; color: var(--a-text); }
.ane-sch__imp-h span { color: var(--a-text-faded); font-size: var(--a-fs); }
.ane-sch__imp-st {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 4px;
  margin: 0;
}
.ane-sch__imp-st > div {
  display: grid;
  gap: 0;
  padding: 3px 8px;
  border: 1px solid var(--a-border-in);
  border-radius: 0;
  background: var(--a-plain);
}
.ane-sch__imp .ane-sch__imp-st > div { background: var(--a-panel); }
.ane-sch__imp-st dt { font-size: var(--a-fs); line-height: 16px; color: var(--a-text-faded); }
.ane-sch__imp-st dd { margin: 0; font-size: var(--a-fs); line-height: 16px; font-weight: 400; font-variant-numeric: tabular-nums; color: var(--a-text); }
.ane-sch__imp-w { border-top: 1px solid var(--a-border-in); padding-top: 6px; font-size: var(--a-fs); }
.ane-sch__imp-w summary {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 20px;
  color: var(--a-warn);
  cursor: pointer;
  list-style: none;
}
.ane-sch[data-theme="light"] .ane-sch__imp-w summary { color: var(--sch-warn-strong); }
/* a long title wraps inside its own span; the icon and the chevron keep their size and stay inside the box */
.ane-sch__imp-w summary > svg { flex: none; }
.ane-sch__imp-w summary > span { flex: 0 1 auto; min-width: 0; overflow-wrap: anywhere; }
.ane-sch__imp-w ul { margin: 4px 0 0; padding-inline-start: 18px; display: grid; gap: 1px; color: var(--a-text); max-height: 180px; overflow: auto; }
/* the card's own buttons: at its end, like a dialog's */
.ane-sch__imp-a { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; margin: 0 -10px -8px; padding: 6px 10px; border-top: 1px solid var(--a-border-in); }
.ane-sch__imp-a .ane-sch__wide { flex: 0 0 auto; min-width: 75px; }

/* the output center, while its writers load */
.ane-sch__outs-wait { display: flex; align-items: center; gap: 10px; padding: 18px 4px; color: var(--sch-muted); font-size: var(--a-fs); }
.ane-sch__spin {
  width: 16px;
  height: 16px;
  border: 2px solid var(--sch-line);
  border-top-color: var(--sch-acc);
  border-radius: 50%;
  animation: ane-sch-spin 700ms linear infinite;
}
@keyframes ane-sch-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .ane-sch__drop.is-busy .ane-sch-i, .ane-sch__spin { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ane-sch__ptab, .ane-sch__tree-i, .ane-sch__drop { transition: none; }
}

/*
 * Rows that scroll sideways - the panel tabs, the document tabs, the layer
 * strip, a phone's menu bar - fade out at an end that has more behind it.
 * The fades are sticky ends of the row itself, not a mask, so a menu list
 * hanging out of the bar is never cut by them.
 */
.ane-sch__tabs, .ane-sch__ptabs { --strip-bg: var(--dh-bg, var(--a-caption)); }
.ane-sch__sheets { --strip-bg: var(--a-doc-strip); }
.ane-sch__menubar { --strip-bg: var(--a-window); }
.ane-sch__strip::before,
.ane-sch__strip::after {
  content: "";
  position: sticky;
  z-index: 2;
  flex: 0 0 28px;
  width: 28px;
  align-self: stretch;
  pointer-events: none;
  opacity: 0;
  transition: none;
}
.ane-sch__strip::before {
  order: -1;
  inset-inline-start: 0;
  margin-inline-end: -28px;
  background: linear-gradient(to right, var(--strip-bg) 20%, transparent);
}
.ane-sch__strip::after {
  order: 99;
  inset-inline-end: 0;
  margin-inline-start: -28px;
  background: linear-gradient(to left, var(--strip-bg) 20%, transparent);
}
[dir="rtl"] .ane-sch__strip::before { background: linear-gradient(to left, var(--strip-bg) 20%, transparent); }
[dir="rtl"] .ane-sch__strip::after { background: linear-gradient(to right, var(--strip-bg) 20%, transparent); }
/*
 * A panel's group tabs scroll a whole tab at a time, so the first one seen
 * always starts at the strip's start edge: the fades there are only as wide
 * as a tab's padding and never cover a label. The header's bottom line is
 * the header's own border, outside the strip, so the fades never cover it.
 */
.ane-sch__tabs.ane-sch__strip::before,
.ane-sch__tabs.ane-sch__strip::after,
.ane-sch__ptabs.ane-sch__strip::before,
.ane-sch__ptabs.ane-sch__strip::after { flex-basis: 10px; width: 10px; }
.ane-sch__tabs.ane-sch__strip::before,
.ane-sch__ptabs.ane-sch__strip::before {
  margin-inline-end: -10px;
  background: linear-gradient(to right, var(--strip-bg) 20%, transparent);
}
.ane-sch__tabs.ane-sch__strip::after,
.ane-sch__ptabs.ane-sch__strip::after {
  margin-inline-start: -10px;
  background: linear-gradient(to left, var(--strip-bg) 20%, transparent);
}
[dir="rtl"] .ane-sch__tabs.ane-sch__strip::before,
[dir="rtl"] .ane-sch__ptabs.ane-sch__strip::before {
  background: linear-gradient(to left, var(--strip-bg) 20%, transparent);
}
[dir="rtl"] .ane-sch__tabs.ane-sch__strip::after,
[dir="rtl"] .ane-sch__ptabs.ane-sch__strip::after {
  background: linear-gradient(to right, var(--strip-bg) 20%, transparent);
}
.ane-sch__strip.is-more-s::before,
.ane-sch__strip.is-more-e::after { opacity: 1; }


/* a dialog appears in place, the way a desktop window does */
.ane-sch__dlg:focus { outline: none; }
.ane-sch__out.is-off b, .ane-sch__out.is-off em { color: var(--a-text-faded); }

@media (prefers-reduced-motion: reduce) {
  .ane-sch__strip::before, .ane-sch__strip::after, .ane-sch__pj-a, .ane-sch__pj-a .ane-sch-i { transition: none; }
}

/* a long sheet name ends in an ellipsis rather than in half a letter */
.ane-sch__sheet > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* ---------------- the whole build, the order list, a review, your data ---------------- */

/* a line under a field that says what it is for */
.ane-sch__fhint { margin: -2px 0 10px; font-size: var(--a-fs-sm); line-height: 1.45; color: var(--sch-muted); }

.ane-sch__build { margin-top: 12px; }
.ane-sch__build .ane-sch__in { max-width: 120px; justify-self: end; font-variant-numeric: tabular-nums; }

/* the cost of the build: what it is for, the sum, then how it is made up */
.ane-sch__pcost {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 2px 10px;
  margin: 4px 0 8px;
  padding: 4px 8px;
  border: 1px solid var(--a-border-in);
  border-radius: 0;
  background: var(--a-plain);
  font-variant-numeric: tabular-nums;
}
.ane-sch__pcost-l { font-size: var(--a-fs); color: var(--sch-ink-2); }
.ane-sch__pcost-v { font-size: var(--a-fs); line-height: 16px; font-weight: 600; color: var(--a-text); unicode-bidi: plaintext; }
.ane-sch__pcost-s { grid-column: 1 / -1; font-size: var(--a-fs-sm); color: var(--sch-muted); }
.ane-sch__pcost-s:empty { display: none; }

/* where a part is in its life, beside the figure it qualifies */
.ane-sch__life {
  display: inline-block;
  align-self: center;
  padding: 0 6px;
  border-radius: var(--sch-pill);
  font-size: var(--a-fs-sm);
  font-weight: 400;
  line-height: 1.6;
  white-space: nowrap;
  unicode-bidi: isolate;
}
.ane-sch__life.is-warn { background: var(--sch-warn-soft); color: var(--sch-warn); }
.ane-sch__life.is-bad { background: var(--sch-err-soft); color: var(--sch-err); }
.ane-sch__pal-t .ane-sch__life { align-self: flex-start; justify-self: start; margin-top: 2px; }

/* dialogs that hold a short form or a short list */
.ane-sch__dlg-lead { margin: 0 0 8px; font-size: var(--a-fs); line-height: 16px; color: var(--a-text); }
.ane-sch__dlg--ord .ane-sch__imp-st { margin-bottom: 12px; }
.ane-sch__ord-w { margin-bottom: 8px; }
.ane-sch__ord-w .ane-sch__wide { margin-top: 6px; }
.ane-sch__ord-w.is-life summary { color: var(--a-err); }
.ane-sch[data-theme="light"] .ane-sch__ord-w.is-life summary { color: var(--sch-err-strong); }
.ane-sch__ord-note { margin: 4px 0 0; font-size: var(--a-fs); color: var(--a-text-faded); }
.ane-sch__dlg-acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; margin: 10px 0 6px; }
.ane-sch__dlg-acts > * { flex: 0 0 auto; }
a.ane-sch__wide { text-decoration: none; }

.ane-sch__field--stack { display: block; }
.ane-sch__in--area { height: auto; min-height: 60px; padding: 2px 4px; line-height: 16px; resize: vertical; }
.ane-sch__rev .ane-sch__wide--full { margin-top: 6px; }
.ane-sch__chk {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 8px 0 4px;
  font-size: var(--a-fs);
  line-height: 16px;
  color: var(--a-text);
  cursor: pointer;
}
.ane-sch__chk input { flex: 0 0 auto; margin: 1px 0 0; }
/* the field only a form robot fills in: out of sight and out of the tab order */
.ane-sch__hp { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); border: 0; opacity: 0; }
.ane-sch__rev-ok { padding: 16px 6px 12px; }
.ane-sch__rev-ok .ane-sch__blank-t { unicode-bidi: plaintext; }

/* under the findings: asking an engineer */
.ane-sch__revcta { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--a-border-in); }
.ane-sch__revcta .ane-sch__blank-s { margin-bottom: 6px; font-size: var(--a-fs); }
.ane-sch__pane--erc > .ane-sch__revcta { margin: 10px 8px 0; border-top: 0; padding-top: 0; }

/* questions and their answers */
.ane-sch__faq { display: grid; gap: 2px; margin: 0 0 8px; }
.ane-sch__faq dt { margin-top: 8px; font-size: var(--a-fs); line-height: 16px; font-weight: 600; color: var(--a-text); }
.ane-sch__faq dt:first-child { margin-top: 0; }
.ane-sch__faq dd { margin: 0; font-size: var(--a-fs); line-height: 16px; color: var(--a-text); }

/* a copy in a file, offered in the status bar */
/* a flat status-bar button: the floppy and the words, a hover ground */
.ane-sch__bak {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 4px;
  height: 20px;
  padding: 0 6px;
  border: 0;
  border-radius: var(--a-r-ctl);
  background: transparent;
  color: var(--a-text);
  font: inherit;
  font-weight: 400;
  cursor: pointer;
  transition: var(--a-trans);
}
.ane-sch__bak .ane-sch-i { width: 14px; height: 14px; flex: none; }
.ane-sch__bak:hover { background: var(--a-hover); color: var(--a-text-strong); }
.ane-sch__bak:focus-visible { outline: 2px solid var(--a-focus); outline-offset: -2px; }
@media (prefers-reduced-motion: reduce) {
  .ane-sch__bak { transition: none; }
}
/* a narrow dialog puts each label above its field */
@media (max-width: 560px) {
  .ane-sch__rev > .ane-sch__field:has(> .ane-sch__lab + .ane-sch__in:last-child) { display: block; }
  .ane-sch__rev > .ane-sch__field:has(> .ane-sch__lab + .ane-sch__in:last-child) > .ane-sch__lab { margin: 0 0 4px; }
}

/* ---------- placement file check ---------- */
.ane-sch__dlg--cpl .ane-sch__imp-st { margin-bottom: 12px; }
.ane-sch__cpl-pick { margin-bottom: 10px; }
.ane-sch__cpl {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  border: 1px solid var(--a-border-in);
  border-radius: 0;
  background: var(--a-plain);
  max-height: min(46vh, 420px);
  overflow: auto;
  overscroll-behavior: contain;
}
.ane-sch__cpl-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 4px 6px;
}
.ane-sch__cpl-row + .ane-sch__cpl-row { border-top: 1px solid var(--a-border-in); }
.ane-sch__cpl-row:hover { background: var(--a-hover); }
.ane-sch__cpl-row.is-warn { background: var(--sch-warn-soft); }
.ane-sch__cpl-pic {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 0;
  background: var(--sch-bg-2);
  box-shadow: inset 0 0 0 1px var(--sch-line-2);
}
.ane-sch__cpl-fp { display: block; width: 100%; height: 100%; padding: 6px; box-sizing: border-box; }
.ane-sch__cpl-body { fill: none; stroke: var(--sch-muted); stroke-width: 1; stroke-dasharray: 3 2; }
.ane-sch__cpl-pad { fill: var(--sch-ink-2); opacity: .55; }
.ane-sch__cpl-p1 { fill: var(--sch-acc); }
.ane-sch__cpl-np { fill: none; stroke: var(--sch-muted); stroke-width: 1; }
.ane-sch__cpl-t { display: flex; flex-direction: column; gap: 0; min-width: 0; font-size: var(--a-fs); line-height: 16px; color: var(--a-text-faded); }
.ane-sch__cpl-t b { color: var(--a-text); font-size: var(--a-fs); font-weight: 600; overflow-wrap: anywhere; }
.ane-sch__cpl-t em { display: inline-flex; align-items: center; gap: 4px; font-style: normal; color: var(--a-text); }
.ane-sch__cpl-row.is-warn .ane-sch__cpl-t em { color: var(--sch-warn); }
.ane-sch[data-theme="light"] .ane-sch__cpl-row.is-warn .ane-sch__cpl-t em { color: var(--sch-warn-strong); }
.ane-sch__cpl-row.is-hand .ane-sch__cpl-t em { color: var(--sch-acc-ink); }
.ane-sch__cpl-t em .ane-sch-i { flex: none; }
.ane-sch__cpl-a { display: flex; gap: 1px; }
.ane-sch__ib {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--a-r-ctl);
  background: transparent;
  color: var(--a-text);
  cursor: pointer;
  transition: var(--a-trans);
}
.ane-sch__ib .ane-sch-i { width: 16px; height: 16px; }
.ane-sch__ib:hover { border-color: var(--a-btn-border); background: var(--a-hover); color: var(--a-text-strong); }
.ane-sch__ib:active { background: var(--a-press); }
.ane-sch__ib:focus-visible { outline: 2px solid var(--a-focus); outline-offset: -2px; }
@media (max-width: 520px) {
  .ane-sch__cpl-row { grid-template-columns: 40px minmax(0, 1fr); }
  .ane-sch__cpl-pic { width: 40px; height: 40px; }
  .ane-sch__cpl-a { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) {
  .ane-sch__ib { transition: none; }
}

/* ---------- keyboard shortcuts: a flat two-column table per group ---------- */
.ane-sch__dlg--keys { width: min(780px, calc(100vw - 32px)); }
.ane-sch__dlg .ane-sch__seg { margin: 0 0 8px; }
.ane-sch__dlg .ane-sch__seg-b { min-width: max-content; }
/* the shortcut layout: a caption over a vertical list of radio rows (28px, 40px on touch) */
.ane-sch__keys-cap { margin: 0 0 4px; font-size: var(--a-fs); font-weight: 600; color: var(--a-text-strong); }
.ane-sch__radios { display: flex; flex-direction: column; align-items: stretch; width: 100%; max-width: 320px; margin: 0 0 10px; }
.ane-sch__radio {
  display: flex; align-items: center; gap: 8px; height: 28px; margin: 0; padding: 0 8px;
  border: 0; border-radius: var(--a-r-ctl); background: transparent; color: var(--a-text);
  font: inherit; font-size: var(--a-fs); text-align: start; cursor: pointer; transition: var(--a-trans);
}
.ane-sch__radio:hover { background: var(--a-hover); color: var(--a-text-strong); }
.ane-sch__radio:focus-visible { outline: 2px solid var(--a-focus); outline-offset: -2px; }
.ane-sch__radio > i {
  flex: none; box-sizing: border-box; width: 14px; height: 14px; border: 2px solid var(--a-field-border); border-radius: 50%;
  background: transparent; transition: var(--a-trans);
}
.ane-sch__radio.is-on { color: var(--a-text-strong); }
.ane-sch__radio.is-on > i { border-color: var(--a-acc-text); background: radial-gradient(circle, var(--a-acc-text) 0 3px, transparent 3.5px); }
@media (max-width: 900px), (pointer: coarse) { .ane-sch__radio { height: 40px; } }
@media (prefers-reduced-motion: reduce) { .ane-sch__radio, .ane-sch__radio > i { transition: none; } }
.ane-sch__keys-c { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 8px 10px; align-items: start; }
.ane-sch__keys-s { min-width: 0; border: 1px solid var(--a-border-in); background: var(--a-plain); }
/* the group's name: a header band, like a region of the Properties panel */
.ane-sch__keys-s > h3.ane-sch__cat-h {
  display: flex;
  align-items: center;
  height: 22px;
  margin: 0;
  padding: 0 6px;
  border: 0;
  border-bottom: 1px solid var(--a-border);
  background: var(--a-header);
  font-size: var(--a-fs);
  line-height: 20px;
  font-weight: 600;
  color: var(--a-text);
}
/* Action | Shortcut, the grid's own column header */
.ane-sch__keys-hd,
.ane-sch__keys-l {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(104px, 42%);
  margin: 0;
  font-size: var(--a-fs);
  line-height: 16px;
}
.ane-sch__keys-hd > span {
  min-height: 20px;
  padding: 2px 6px;
  border-bottom: 1px solid var(--a-border-in);
  color: var(--a-text-faded);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ane-sch__keys-hd > span + span { border-inline-start: 1px solid var(--a-border-in); }
/* each pair is one row: the action in the first column, its keys in the second */
.ane-sch__keys-l { grid-auto-flow: row dense; }
/* the single-letter shortcuts switch sits under the layouts, a hint beneath it */
.ane-sch__keys-single { margin: 10px 0 2px; }
/* Parts and nets (F8): a plain table, the pins of a part as a list in its cell */
.ane-sch__a11y-t { width: 100%; border-collapse: collapse; font-size: var(--a-fs); line-height: var(--a-lh); }
.ane-sch__a11y-t th, .ane-sch__a11y-t td { padding: 4px 6px; border-bottom: 1px solid var(--a-border-in); text-align: start; vertical-align: top; }
.ane-sch__a11y-t thead th { color: var(--a-text-faded); font-weight: 600; font-size: var(--a-fs-sm); }
.ane-sch__a11y-t tbody th { font-weight: 600; color: var(--a-text-strong); white-space: nowrap; }
.ane-sch__a11y-pins { margin: 0; padding: 0; list-style: none; }
.ane-sch__a11y-nc { color: var(--a-text-faded); }
.ane-sch__a11y-nets { margin: 4px 0 0; }
.ane-sch__a11y-nets dt { font-weight: 600; color: var(--a-text-strong); margin-top: 6px; }
.ane-sch__a11y-nets dd { margin: 0; color: var(--a-text); }
.ane-sch__dlg--a11y .ane-sch__dlg-lead + .ane-sch__dlg-lead { margin-top: 8px; }
/* the keyboard cursor on the sheet is drawn by the editor; nothing to style here beyond the class hook */
.ane-sch__kcur { pointer-events: none; }
.ane-sch__keys-l dd { grid-column: 1; }
.ane-sch__keys-l dt { grid-column: 2; }
.ane-sch__keys-l dt,
.ane-sch__keys-l dd {
  min-width: 0;
  min-height: 20px;
  margin: 0;
  padding: 2px 6px;
  border-bottom: 1px solid var(--a-border-in);
}
.ane-sch__keys-l dd { color: var(--a-text); }
/* a flex row drops the space between two keys; the comma below stands for it */
.ane-sch__keys-l dt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0; border-inline-start: 1px solid var(--a-border-in); color: var(--a-text-faded); }
.ane-sch__keys-l dt:last-of-type, .ane-sch__keys-l dd:last-of-type { border-bottom: 0; }
/* the keys are plain text in the faded colour, two keys for one action read "X, M" */
.ane-sch__keys-l kbd { white-space: nowrap; color: var(--a-text-faded); }
.ane-sch__keys-l kbd + kbd::before { content: ","; margin-right: .3em; }
/* in Hebrew the second key sits to the left of the first: its comma goes on
   its right, between the two (each key itself reads left to right) */
.ane-sch[dir="rtl"] .ane-sch__keys-l kbd + kbd::before { content: none; }
.ane-sch[dir="rtl"] .ane-sch__keys-l kbd + kbd::after { content: ","; }
.ane-sch[dir="rtl"] .ane-sch__keys-l kbd + kbd { margin-right: .3em; }

/* ---------- after an import ---------- */
.ane-sch__impchk-ok {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 0 0 10px;
  font-size: var(--a-fs);
  color: var(--sch-acc-ink);
}
.ane-sch__impchk-ok .ane-sch-i { flex: none; margin-top: 1px; }
.ane-sch__ord-w > .ane-sch__wide { margin-top: 8px; }

/* ================= simulation: what to check, settings, results ================= */

.ane-sch__simempty {
  margin: 8px 0;
  padding: 8px 10px;
  border: 1px dashed var(--a-field-border);
  border-radius: 0;
  background: var(--a-plain);
  color: var(--a-text);
  font-size: var(--a-fs);
  line-height: 16px;
}

/* the kinds of check: option tiles with a radio mark, flat and framed */
.ane-sch__simk { display: grid; gap: 2px; margin-bottom: 8px; }
.ane-sch__simk-b {
  position: relative;
  display: grid;
  gap: 0;
  width: 100%;
  padding: 4px 8px 4px 26px;
  border: 1px solid var(--a-border-in);
  border-radius: 0;
  background: var(--a-plain);
  color: var(--a-text);
  font: 400 var(--a-fs)/16px var(--a-font);
  text-align: start;
  cursor: pointer;
  transition: var(--a-trans);
}
[dir="rtl"] .ane-sch__simk-b, .ane-sch[dir="rtl"] .ane-sch__simk-b { padding: 4px 26px 4px 8px; }
.ane-sch__simk-b::before {
  content: '';
  position: absolute;
  inset-inline-start: 8px;
  top: 6px;
  width: 12px;
  height: 12px;
  border: 1px solid var(--a-field-border);
  border-radius: 50%;
  background: var(--a-field);
  transition: var(--a-trans);
}
.ane-sch__simk-b:hover { border-color: var(--a-field-border); background: var(--a-hover); }
.ane-sch__simk-b:focus-visible { outline: 2px solid var(--a-focus); outline-offset: -2px; }
.ane-sch__simk-b.is-on { border-color: var(--a-acc); background: var(--a-sel-2); }
.ane-sch__simk-b.is-on::before { border-color: var(--a-acc); box-shadow: inset 0 0 0 2px var(--a-field), inset 0 0 0 6px var(--a-acc); }
.ane-sch__simk-t { font-size: var(--a-fs); font-weight: 600; line-height: 16px; }
.ane-sch__simk-d { font-size: var(--a-fs-sm); line-height: 14px; color: var(--a-text-faded); }
.ane-sch__simk-b.is-on .ane-sch__simk-d { color: var(--a-text); }

/* a group of settings: a region with a header band, like the Properties panel's */
.ane-sch__simsec {
  margin: 0 0 6px;
  padding: 0 8px 4px;
  border: 1px solid var(--a-border-in);
  border-radius: 0;
  background: transparent;
}
.ane-sch__simsec-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 22px; margin: 0 -8px 4px; padding: 0 2px 0 6px; border-bottom: 1px solid var(--a-border-in); background: var(--a-header); }
[dir="rtl"] .ane-sch__simsec-h { padding: 0 6px 0 2px; }
.ane-sch__simsec-t { display: flex; align-items: center; min-height: 22px; margin: 0 0 4px; padding: 0 6px; border: 1px solid var(--a-border-in); background: var(--a-header); font-size: var(--a-fs); line-height: 16px; font-weight: 600; color: var(--a-text); }
.ane-sch__simsec > .ane-sch__simsec-t { margin: 0 -8px 4px; border-width: 0 0 1px; }
.ane-sch__simsec-h .ane-sch__simsec-t { margin: 0; padding: 0; border: 0; background: none; }
details.ane-sch__simsec > summary { cursor: pointer; margin: 0 -8px 4px; border-width: 0 0 1px; line-height: 20px; }
details.ane-sch__simsec:not([open]) { padding-bottom: 0; }
details.ane-sch__simsec:not([open]) > summary { margin-bottom: 0; border-bottom: 0; }

.ane-sch__simlink {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  padding: 0 4px;
  border: 1px solid transparent;
  border-radius: var(--a-r-ctl);
  background: transparent;
  color: var(--a-acc-text);
  font: 400 var(--a-fs-sm)/16px var(--a-font);
  cursor: pointer;
  transition: var(--a-trans);
}
.ane-sch__simlink:hover { background: var(--a-hover); border-color: var(--a-btn-border); }
.ane-sch__simlink:focus-visible { outline: 2px solid var(--a-focus); outline-offset: 1px; }

/* a setting: its name, its value and unit, and a line of what it is */
.ane-sch__simf, .ane-sch__simpf { margin-bottom: 9px; }
.ane-sch__simf-l {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 3px;
  font-size: var(--a-fs-sm);
  font-weight: 400;
  color: var(--sch-ink-2);
}
.ane-sch__simauto {
  padding: 0 5px;
  border-radius: var(--a-r-ctl);
  background: var(--a-plain);
  box-shadow: inset 0 0 0 1px var(--a-border-in);
  color: var(--a-text-faded);
  font-size: var(--a-fs-sm);
  font-weight: 400;
  line-height: 16px;
}
.ane-sch__simf-r { display: flex; align-items: center; gap: 6px; }
.ane-sch__simf-r > .ane-sch__in { flex: 1; min-width: 0; font-variant-numeric: tabular-nums; }
/* a number with a unit: the unit sits inside the box (.ane-sch__inw), as in Properties */
.ane-sch__simf-r > .ane-sch__inw { flex: 1; min-width: 0; }
.ane-sch__simf-r > .ane-sch__inw > .ane-sch__in { font-variant-numeric: tabular-nums; }
.ane-sch__simf-u { flex: none; min-width: 22px; font-size: var(--a-fs-sm); color: var(--a-text-faded); direction: ltr; }
.ane-sch__simf-h { margin: 2px 0 0; font-size: var(--a-fs-sm); line-height: 14px; color: var(--a-text-faded); }

.ane-sch__simsrc-c { padding: 8px 0 2px; border-top: 1px solid var(--sch-line-2); }
.ane-sch__simsrc-c:first-of-type { border-top: 0; padding-top: 0; }
.ane-sch__simsrc-h { margin: 0 0 6px; font-size: var(--a-fs); font-weight: 600; color: var(--sch-ink); direction: ltr; text-align: start; unicode-bidi: plaintext; }

.ane-sch__simwarn, .ane-sch__simerr, .ane-sch__simlib-say {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 4px 0 8px;
  padding: 4px 8px;
  border-radius: var(--a-r-ctl);
  font-size: var(--a-fs);
  line-height: 16px;
}
.ane-sch__simwarn > .ane-sch-i, .ane-sch__simerr > .ane-sch-i, .ane-sch__simlib-say > .ane-sch-i { flex: none; width: 14px; height: 14px; margin-top: 1px; }
.ane-sch__simwarn > span, .ane-sch__simerr > span, .ane-sch__simlib-say > span { min-width: 0; }
.ane-sch__simwarn { background: var(--sch-warn-soft); color: var(--sch-warn); }
.ane-sch__simerr { background: var(--sch-err-soft); color: var(--sch-err); font-weight: 400; }
/* the unrouted-nets warning: the button drops under the text when the pane is narrow, never clipped */
.ane-sch__simwarn--route { flex-wrap: wrap; }
.ane-sch__simwarn--route > span:not(.ane-sch-i) { flex: 1 1 14em; }
.ane-sch__simwarn--route > .ane-sch__simbtn { flex: 0 0 auto; max-width: 100%; }
.ane-sch__simwarn--route > .ane-sch__simbtn > span { overflow: visible; text-overflow: clip; white-space: nowrap; }

.ane-sch__simrun { display: grid; gap: 4px; margin: 4px 0 8px; }
.ane-sch__simgo { justify-content: center; font-weight: 400; }
.ane-sch__simstop { justify-content: center; }
.ane-sch__simprog { height: 6px; border: 1px solid var(--a-field-border); border-radius: 0; background: var(--a-field); overflow: hidden; }
.ane-sch__simprog > i { display: block; height: 100%; background: var(--a-acc); transition: none; }
.ane-sch__simrun > .ane-sch__fhint { margin: 0; }

.ane-sch__simres { margin: 0 0 12px; }
.ane-sch__simsaid { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 2px; }
.ane-sch__simsaid li {
  padding: 3px 8px;
  border-radius: var(--a-r-ctl);
  background: var(--sch-acc-soft);
  color: var(--a-text);
  font-size: var(--a-fs);
  line-height: 16px;
  font-variant-numeric: tabular-nums;
}

.ane-sch__simchips { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 8px; }
.ane-sch__simchips-pads { margin: 0 0 8px; }
.ane-sch__simchips-pads > summary { display: flex; width: fit-content; align-items: center; height: 20px; padding: 0 4px; list-style: none; cursor: pointer; color: var(--a-acc-text); font: 400 var(--a-fs-sm)/16px var(--a-font); border-radius: var(--a-r-ctl); }
.ane-sch__simchips-pads > summary::-webkit-details-marker { display: none; }
.ane-sch__simchips-pads > summary:focus-visible { outline: 2px solid var(--a-focus); outline-offset: 1px; }
.ane-sch__simchips-pads > .ane-sch__simchips { margin: 4px 0 0; }
.ane-sch__simchip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  height: 20px;
  padding: 0 7px 0 5px;
  border: 1px solid var(--a-border-in);
  border-radius: var(--a-r-ctl);
  background: var(--a-plain);
  color: var(--a-text);
  font: 400 var(--a-fs-sm)/16px var(--a-font);
  direction: ltr;
  cursor: pointer;
  transition: var(--a-trans);
}
.ane-sch__simchip:hover { border-color: var(--a-field-border); background: var(--a-hover); }
.ane-sch__simchip:focus-visible { outline: 2px solid var(--a-focus); outline-offset: -2px; }
.ane-sch__simchip.is-on { border-color: var(--a-acc); background: var(--a-sel-2); color: var(--a-text-strong); font-weight: 400; }
.ane-sch__simchip .ane-sch__dot { box-shadow: 0 0 0 1.5px var(--sch-line); }

.ane-sch__plot-t { margin: 8px 0 2px; font-size: var(--a-fs-sm); font-weight: 400; color: var(--sch-ink-2); }
.ane-sch__plotwrap:focus-visible { outline: 2px solid var(--a-focus); outline-offset: 2px; }
.ane-sch__plotwrap { touch-action: pan-y; cursor: crosshair; }
.ane-sch__plotwrap--sq { max-width: 260px; margin-inline: auto; border-radius: 50%; border: 0; background: transparent; cursor: default; }
.ane-sch__plot-read {
  min-height: 16px;
  margin: 0 0 4px;
  font-size: var(--a-fs-sm);
  color: var(--sch-ink-2);
  direction: ltr;
  text-align: start;
  font-variant-numeric: tabular-nums;
}
/* the logic cursor's line has words of the language in it: it runs in the language's direction, every number and name an island of its own */
.ane-sch__plot-read.is-rtl { direction: rtl; }
.ane-sch__simtab tr.is-probe td { color: var(--sch-ink); font-weight: 400; }
.ane-sch__simtab td[dir="ltr"] { text-align: start; }
.ane-sch__simleg { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 2px 0 8px; padding: 0; font-size: var(--a-fs-sm); color: var(--sch-ink-2); direction: ltr; }
.ane-sch__simacts { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 4px; }

/* the board under a simulation: the mode, the legend of solid and dashed curves, the table of what was taken from the copper, the build */
.ane-sch__simleg li { display: inline-flex; align-items: center; gap: 5px; }
.ane-sch__simleg-sw { display: inline-block; width: 24px; height: 0; border-top: 2px solid var(--a-text-faded); }
.ane-sch__simleg-sw.is-dash { border-top-style: dashed; }
.ane-sch__simleg-sw.is-dot { border-top-style: dotted; opacity: .7; }
.ane-sch__simmode { margin: 0 0 8px; padding: 0 8px 6px; border: 1px solid var(--a-border-in); border-radius: 0; background: transparent; }
.ane-sch__simmode > .ane-sch__simsec-t { margin: 0 -8px 6px; border-width: 0 0 1px; }
.ane-sch__simmode .ane-sch__seg { margin: 0 0 4px; }
.ane-sch__simmode .ane-sch__seg-b { flex: 1 1 0; min-width: 0; }
.ane-sch__simmode .ane-sch__check { margin: 4px 0 0; }
.ane-sch__simstat { margin: 4px 0 0; font-size: var(--a-fs-sm); line-height: 16px; color: var(--sch-ink-2); }
.ane-sch__simstat .ane-sch__simlink { height: 16px; padding: 0 2px; text-decoration: underline; }
.ane-sch__simcard { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 8px; padding: 6px 8px; border-radius: var(--a-r-ctl); background: var(--sch-acc-soft); color: var(--a-text); font-size: var(--a-fs); line-height: 16px; }
.ane-sch__simcard > span { flex: 1; min-width: 0; }
.ane-sch__simeff-t { margin: 8px 0 4px; font-size: var(--a-fs); font-weight: 600; color: var(--a-text); }
.ane-sch__simtbl-wrap { max-width: 100%; overflow-x: auto; border: 1px solid var(--a-border-in); border-radius: var(--a-r-ctl); }
.ane-sch__simtbl { width: 100%; border-collapse: collapse; font-size: var(--a-fs-sm); font-variant-numeric: tabular-nums; }
.ane-sch__simtbl caption { padding: 4px 6px; text-align: start; caption-side: bottom; color: var(--a-text-faded); line-height: 14px; }
.ane-sch__simtbl th { position: sticky; top: 0; padding: 2px 6px; background: var(--a-header); border-bottom: 1px solid var(--a-border-in); text-align: start; font-weight: 600; white-space: nowrap; color: var(--a-text); }
.ane-sch__simtbl td { padding: 2px 6px; border-top: 1px solid var(--a-border-in); color: var(--sch-ink-2); white-space: nowrap; }
.ane-sch__simtbl td.is-note { white-space: normal; min-width: 120px; }
.ane-sch__simtbl td[dir="ltr"] { text-align: start; }
.ane-sch__simtbl tr.is-warn td { color: var(--sch-warn); }
.ane-sch__simtbl .ane-sch-i { width: 12px; height: 12px; vertical-align: -2px; margin-inline-end: 3px; }
.ane-sch__simstk-r { display: grid; grid-template-columns: minmax(70px, 30%) 1fr; gap: 4px 8px; align-items: center; padding: 3px 0; border-top: 1px solid var(--a-border-in); }
.ane-sch__simstk-r:first-of-type { border-top: 0; }
.ane-sch__simstk-n { font-size: var(--a-fs-sm); color: var(--sch-ink-2); line-height: 14px; }
.ane-sch__simstk-n small { display: block; color: var(--a-text-faded); }
.ane-sch__simstk-f { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 4px 6px; min-width: 0; }
.ane-sch__simstk-f > label { display: grid; align-content: end; gap: 1px; flex: 1 1 92px; min-width: 0; font-size: var(--a-fs-sm); color: var(--a-text-faded); line-height: 14px; }
.ane-sch__simstk-f .ane-sch__in { width: 100%; min-width: 0; }
.ane-sch__simstk-f .ane-sch__in[aria-invalid="true"] { border-color: var(--sch-err); }
.ane-sch__simstk-s { margin: 0 0 6px; font-size: var(--a-fs-sm); color: var(--sch-ink-2); line-height: 14px; }
.ane-sch__simba { margin: 8px 0 0; padding: 4px 8px 6px; border: 1px solid var(--a-border-in); border-radius: var(--a-r-ctl); }
.ane-sch__simba .ane-sch__simsaid { margin-bottom: 4px; }
.ane-sch__simba-b { display: flex; flex-wrap: wrap; gap: 4px; }
@media (max-width: 360px) { .ane-sch__simstk-r { grid-template-columns: 1fr; } }

.ane-sch__simnotes {
  margin: 8px 0 0;
  padding: 4px 8px;
  border: 1px solid var(--sch-note-line);
  border-radius: 0;
  background: var(--sch-note-bg);
  color: var(--sch-note-ink);
  font-size: var(--a-fs-sm);
  line-height: 14px;
}
.ane-sch__simnotes-h { margin: 0 0 4px; font-weight: 600; }
.ane-sch__simnotes ul { margin: 0; padding-inline-start: 16px; display: grid; gap: 3px; }

.ane-sch__dlg--sim { width: min(960px, calc(100vw - 32px)); max-height: min(92vh, 980px); }
.ane-sch__dlg--sim .ane-sch__plotwrap--sq { max-width: 440px; }

/* ================= a part's own simulation settings ================= */

.ane-sch__simp {
  margin: 8px 0;
  border: 1px solid var(--a-border-in);
  border-radius: 0;
  background: var(--a-plain);
}
.ane-sch__simp-s {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 22px;
  padding: 0 8px;
  background: var(--a-header);
  font-size: var(--a-fs);
  font-weight: 600;
  color: var(--a-text);
  cursor: pointer;
  list-style: none;
}
.ane-sch__simp-s::-webkit-details-marker { display: none; }
.ane-sch__simp-s:focus-visible { outline: 2px solid var(--a-focus); outline-offset: -2px; border-radius: 0; }
.ane-sch__simp > :not(summary) { margin-inline: 8px; }
.ane-sch__simp > :last-child { margin-bottom: 8px; }
.ane-sch__simp-b {
  padding: 1px 8px;
  border-radius: var(--sch-pill);
  font-size: var(--a-fs-sm);
  font-weight: 400;
  line-height: 17px;
  background: var(--sch-bg-3);
  color: var(--sch-ink-2);
}
.ane-sch__simp-b--part, .ane-sch__simp-b--spice, .ane-sch__simp-b--sparam { background: var(--sch-acc-soft); color: var(--sch-acc-ink); }
.ane-sch__simp-b--none { background: var(--sch-warn-soft); color: var(--sch-warn); }
.ane-sch__simp-src { margin: 0 11px 10px; font-size: var(--a-fs-sm); line-height: 1.45; color: var(--sch-ink-2); }

.ane-sch__simreset {
  display: grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  border: 1px solid transparent;
  border-radius: var(--a-r-ctl);
  background: transparent;
  color: var(--a-text-faded);
  cursor: pointer;
  transition: var(--a-trans);
}
.ane-sch__simreset:hover { background: var(--a-hover); border-color: var(--a-btn-border); color: var(--a-text-strong); }
.ane-sch__simreset:focus-visible { outline: 2px solid var(--a-focus); outline-offset: 1px; }
.ane-sch__simfrom {
  display: inline-block;
  margin-inline-start: 4px;
  padding: 0 5px;
  border-radius: var(--sch-pill);
  background: var(--sch-bg-3);
  color: var(--sch-ink-3);
  font-size: var(--a-fs-sm);
  font-weight: 400;
  line-height: 15px;
  white-space: nowrap;
}
.ane-sch__simfrom--user { background: var(--sch-acc-soft); color: var(--sch-acc-ink); }
.ane-sch__simfrom--part { color: var(--sch-ink-2); }

.ane-sch__simp-adv, .ane-sch__simp-m, .ane-sch__simpins {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--sch-line);
}
.ane-sch__simp-adv > summary, .ane-sch__simp-m > summary, .ane-sch__simpins > summary {
  margin-bottom: 8px;
  font-size: var(--a-fs);
  font-weight: 400;
  color: var(--sch-ink-2);
  cursor: pointer;
}
.ane-sch__simpins { border-top-style: dashed; }
.ane-sch__simatt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 6px;
  padding: 3px 6px;
  border: 1px solid var(--a-acc);
  border-radius: 0;
  background: var(--a-sel-2);
  font-size: var(--a-fs);
}
.ane-sch__simatt p { margin: 0; min-width: 0; color: var(--sch-ink); }
.ane-sch__simatt span { color: var(--sch-ink-2); }
.ane-sch__simpick { margin: 0 0 8px; }
.ane-sch__simpick > .ane-sch__in { margin-bottom: 6px; }
.ane-sch__simbtns { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 6px; }
.ane-sch__simta { height: auto; min-height: 96px; padding: 2px 4px; font-family: var(--a-font-mono); font-size: var(--a-fs-sm); font-weight: 400; resize: vertical; margin-bottom: 6px; }
.ane-sch__simlinks { list-style: none; margin: 0 0 4px; padding: 0; display: grid; gap: 2px; }
.ane-sch__simlinks a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 0;
  color: var(--sch-acc-ink);
  font-size: var(--a-fs);
  text-decoration: none;
}
.ane-sch__simlinks a:hover span { text-decoration: underline; text-underline-offset: 2px; }
.ane-sch__simlinks a:focus-visible { outline: 2px solid var(--a-focus); outline-offset: 1px; border-radius: var(--a-r); }
.ane-sch__simpinr { display: grid; grid-template-columns: minmax(56px, 34%) minmax(0, 1fr); align-items: center; gap: 8px; margin-bottom: 5px; }
.ane-sch__simpinr > label { font-size: var(--a-fs-sm); font-weight: 400; color: var(--sch-ink-2); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; text-align: start; }

/* the project's own models, in the simulation pane (1.24) */
.ane-sch__simlib > summary { margin-bottom: 6px; }
.ane-sch__simdrop { gap: 4px; margin: 0 0 8px; padding: 10px 8px; }
.ane-sch__simdrop-t { font-size: var(--a-fs); font-weight: 400; color: var(--sch-ink); }
/* the whole zone is the button; the one drawn in it only says so */
.ane-sch__simdrop .ane-sch__simbtn { pointer-events: none; }
.ane-sch__simdrop-f { font-size: var(--a-fs-sm); line-height: 1.4; color: var(--sch-muted); direction: ltr; unicode-bidi: isolate; }
.ane-sch__simlib-say {
  margin: 0 0 8px;
  background: var(--sch-acc-soft);
  color: var(--a-text);
  font-size: var(--a-fs);
  line-height: 16px;
}
.ane-sch__simlib-say.is-warn { background: var(--sch-warn-soft); }
.ane-sch__simlib-l { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 0; border: 1px solid var(--a-border-in); background: var(--a-plain); }
.ane-sch__simlib-l:empty { display: none; }
.ane-sch__simlib-i {
  padding: 4px 6px 6px;
  border: 0;
  border-bottom: 1px solid var(--a-border-in);
  border-radius: 0;
  background: transparent;
}
.ane-sch__simlib-i:last-child { border-bottom: 0; }
.ane-sch__simlib-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.ane-sch__simlib-n { min-width: 0; padding-top: 3px; font-size: var(--a-fs); line-height: 1.3; color: var(--sch-ink); overflow-wrap: anywhere; unicode-bidi: isolate; text-align: start; }
.ane-sch__simlib-x {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin: -1px -2px 0 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--a-r-ctl);
  background: transparent;
  color: var(--a-text-faded);
  cursor: pointer;
  transition: var(--a-trans);
}
[dir="rtl"] .ane-sch__simlib-x { margin: -1px 0 0 -2px; }
.ane-sch__simlib-x:hover { background: var(--a-close-hot); border-color: var(--a-close-hot); color: var(--a-text-strong); }
.ane-sch__simlib-x:focus-visible { outline: 2px solid var(--a-focus); outline-offset: 1px; }
.ane-sch__simlib-m { margin: 2px 0 0; font-size: var(--a-fs-sm); line-height: 1.4; color: var(--sch-muted); overflow-wrap: anywhere; }
.ane-sch__simlib-u { display: flex; align-items: center; gap: 5px; margin: 4px 0 0; font-size: var(--a-fs-sm); color: var(--sch-muted); }
.ane-sch__simlib-i.is-used .ane-sch__simlib-u { color: var(--sch-acc-ink); font-weight: 400; }
.ane-sch__simlib-i > .ane-sch__in { width: 100%; margin-top: 7px; }
.ane-sch__simlib-i > .ane-sch__fhint { margin: 6px 0 0; }
@media (pointer: coarse) {
  .ane-sch__simlib-x { width: 36px; height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  .ane-sch__simk-b, .ane-sch__simchip, .ane-sch__simbtn, .ane-sch__simprog > i, .ane-sch__simlib-x { transition: none; }
}

/* ================= the design wizard (1.24) ================= */

.ane-sch__dlg--wiz { width: min(1060px, calc(100vw - 32px)); max-height: min(92vh, 980px); }
.ane-sch__dlg--wiz .ane-sch__dlg-b { padding: 0; display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; overflow: hidden; }
.ane-sch__dlg--wiz .ane-sch__wiz-sec { flex: 1 1 auto; min-height: 0; }
.ane-sch__wiz { font-size: var(--a-fs); }
.ane-sch__wiz-steps {
  display: flex;
  align-items: stretch;
  flex: none;
  gap: 4px;
  height: 33px;
  padding: 0 8px;
  border-bottom: 1px solid var(--a-border);
  background: var(--a-panel);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}
/* the steps: a number and a label, flat on the strip; the one in hand is 600 with a
   2px bar under it, the ones ahead are faded. No raised or joined tab, no ground of its own */
.ane-sch__wiz-step {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  margin: 0;
  padding: 0 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--a-text-faded);
  font: 400 var(--a-fs)/16px var(--a-font);
  white-space: nowrap;
  cursor: pointer;
  transition: var(--a-trans);
}
.ane-sch__wiz-step:hover:not([disabled]) { background: var(--a-hover); color: var(--a-text); }
.ane-sch__wiz-step[disabled] { color: var(--a-text-dis); cursor: default; }
.ane-sch__wiz-step:focus-visible { outline: 2px solid var(--a-focus); outline-offset: -2px; }
.ane-sch__wiz-n {
  display: grid;
  place-items: center;
  flex: none;
  box-sizing: border-box;
  width: 16px;
  height: 16px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: var(--a-fs-sm);
  line-height: 14px;
  font-variant-numeric: tabular-nums;
}
.ane-sch__wiz-n .ane-sch-i { width: 10px; height: 10px; }
.ane-sch__wiz-step.is-on,
.ane-sch__wiz-step.is-on:hover:not([disabled]) { font-weight: 600; background: transparent; box-shadow: inset 0 -2px 0 var(--a-bar); color: var(--a-text-strong); }
.ane-sch__wiz-step.is-done { color: var(--a-text); }
.ane-sch__wiz-step.is-done .ane-sch__wiz-n { border-color: var(--a-acc-text); color: var(--a-acc-text); }

.ane-sch__wiz-sec { padding: 10px 12px 8px; overflow: auto; }
.ane-sch__wiz-h { margin: 0 0 4px; font-size: var(--a-fs); line-height: 16px; font-weight: 600; color: var(--a-text); }
.ane-sch__wiz-k { margin-inline-start: 6px; padding: 0 6px; border: 1px solid var(--a-border-in); border-radius: var(--a-r-ctl); background: var(--a-plain); color: var(--a-text); font-size: var(--a-fs-sm); line-height: 16px; font-weight: 400; vertical-align: 1px; }
.ane-sch__wiz-pn { display: grid; gap: 2px; max-width: 520px; margin: 4px 0 10px; }
.ane-sch__wiz-pn .ane-sch__in { height: 22px; font-size: var(--a-fs); font-weight: 400; }
.ane-sch__wiz-pn .ane-sch__go { display: inline-flex; align-items: center; gap: 5px; }
.ane-sch__wiz-kinds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; margin-bottom: 8px; }
.ane-sch__wiz-kind { padding-top: 6px; padding-bottom: 6px; border-radius: var(--a-r-ctl); }
.ane-sch__wiz-kind.is-on { border-color: var(--a-border-in); background: var(--a-sel); box-shadow: inset 0 -2px 0 var(--a-bar); }
.ane-sch__wiz-kind.is-on .ane-sch__simk-t { color: var(--a-sel-text); }
.ane-sch__wiz-kind .ane-sch__simk-t { font-size: var(--a-fs); }
.ane-sch__wiz-ex { margin-top: 2px; font-size: var(--a-fs-sm); color: var(--a-text-faded); text-align: start; unicode-bidi: plaintext; }

.ane-sch__wiz-msg {
  display: grid;
  gap: 6px;
  max-width: 640px;
  margin: 0 0 10px;
  padding: 8px 10px;
  border: 1px solid var(--a-border-in);
  border-radius: 0;
  background: var(--a-plain);
}
.ane-sch__wiz-msg.is-warn { border-color: var(--sch-note-line); background: var(--sch-note-bg); }
.ane-sch__wiz-msg p { margin: 0; line-height: 16px; }
.ane-sch__wiz-msg .ane-sch__wide { justify-self: start; }
.ane-sch__wiz-sub { font-size: var(--a-fs); color: var(--a-text-faded); }
.ane-sch__wiz-chips { display: flex; flex-wrap: wrap; gap: 4px; }
/* a choice tile: flat, framed, on the plain ground */
.ane-sch__wiz-chip {
  padding: 3px 8px;
  border: 1px solid var(--a-border-in);
  border-radius: 0;
  background: var(--a-plain);
  color: var(--a-text);
  font: 400 var(--a-fs)/16px var(--a-font);
  cursor: pointer;
  transition: var(--a-trans);
}
.ane-sch__wiz-chip:hover { border-color: var(--a-field-border); background: var(--a-hover); }
.ane-sch__wiz-chip:active { background: var(--a-press); }
.ane-sch__wiz-chip:focus-visible { outline: 2px solid var(--a-focus); outline-offset: 1px; }

.ane-sch__wiz-filter { max-width: 320px; margin: 2px 0 8px; }
.ane-sch__wiz-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 4px; margin-bottom: 8px; }
.ane-sch__wiz-item { position: relative; display: grid; }
.ane-sch__wiz-dev {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0 10px;
  width: 100%;
  padding: 5px 8px 24px;
  border: 1px solid var(--a-border-in);
  border-radius: 0;
  background: var(--a-plain);
  color: var(--a-text);
  font: 400 var(--a-fs)/16px var(--a-font);
  text-align: start;
  cursor: pointer;
  transition: var(--a-trans);
}
.ane-sch__wiz-dev:hover { border-color: var(--a-field-border); background: var(--a-hover); }
.ane-sch__wiz-dev:focus-visible { outline: 2px solid var(--a-focus); outline-offset: -2px; }
.ane-sch__wiz-dev.is-on { border-color: var(--a-acc); background: var(--a-sel-2); }
.ane-sch__wiz-dev-pn { font-size: var(--a-fs); font-weight: 600; text-align: left; }
.ane-sch__wiz-dev-mk { align-self: center; font-size: var(--a-fs-sm); color: var(--a-text-faded); white-space: nowrap; }
.ane-sch__wiz-dev-t { grid-column: 1 / -1; font-size: var(--a-fs); color: var(--a-text); line-height: 16px; }
.ane-sch__wiz-dev-s { grid-column: 1 / -1; font-size: var(--a-fs-sm); color: var(--a-text-faded); font-variant-numeric: tabular-nums; text-align: left; }
.ane-sch__wiz-dev-life { grid-column: 1 / -1; justify-self: start; padding: 0 6px; border-radius: var(--a-r-ctl); background: var(--sch-warn-soft); color: var(--sch-warn); font-size: var(--a-fs-sm); font-weight: 400; }
.ane-sch__wiz-ds {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--a-acc-text);
  font-size: var(--a-fs);
  font-weight: 400;
  text-decoration: none;
  white-space: nowrap;
}
.ane-sch__wiz-ds:hover span { text-decoration: underline; text-underline-offset: 2px; }
.ane-sch__wiz-ds:focus-visible { outline: 2px solid var(--a-focus); outline-offset: 2px; border-radius: var(--a-r); }
.ane-sch__wiz-item .ane-sch__wiz-ds { position: absolute; inset-inline-end: 8px; bottom: 5px; }
.ane-sch__wiz-other { margin: 4px 0 8px; max-width: 680px; }
.ane-sch__wiz-other summary { cursor: pointer; font-weight: 400; color: var(--a-text); }
.ane-sch__wiz-other p { margin: 6px 0; line-height: 16px; }
.ane-sch__wiz-other .ane-sch__wide { width: auto; margin-inline-end: 4px; }

.ane-sch__wiz-dhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 12px;
  border-bottom: 1px solid var(--a-border-in);
  background: var(--a-header);
}
.ane-sch__wiz-dpn { font-size: var(--a-fs); line-height: 16px; font-weight: 600; color: var(--a-text); text-align: start; unicode-bidi: plaintext; }
.ane-sch__wiz-dmk { margin-top: 0; font-size: var(--a-fs); line-height: 16px; color: var(--a-text-faded); }
.ane-sch__wiz-cols { display: grid; grid-template-columns: minmax(250px, 300px) minmax(0, 1fr); min-height: 0; flex: 1 1 auto; overflow: hidden; }
.ane-sch__wiz-form { padding: 8px 10px 8px 12px; border-inline-end: 1px solid var(--a-border); overflow: auto; }
.ane-sch__wiz-out { padding: 8px 12px; overflow: auto; }
.ane-sch__wiz-f { display: grid; gap: 2px; margin-bottom: 6px; }
.ane-sch__wiz-f .ane-sch__in { height: 22px; font-variant-numeric: tabular-nums; }
.ane-sch__wiz-f input.ane-sch__in { text-align: left; }
.ane-sch__wiz-f .ane-sch__lab { margin: 0; }
.ane-sch__wiz-help { margin: 0; font-size: var(--a-fs-sm); line-height: 14px; color: var(--a-text-faded); }
.ane-sch__wiz-opts { margin: 6px 0 0; padding: 4px 8px 2px; border: 1px solid var(--a-border-in); border-radius: 0; }
.ane-sch__wiz-opts legend { padding: 0 4px; font-size: var(--a-fs); font-weight: 600; color: var(--a-text); }
.ane-sch__wiz-chk { display: flex; align-items: flex-start; gap: 6px; margin-bottom: 4px; cursor: pointer; line-height: 16px; }
.ane-sch__wiz-chk input { margin-top: 1px; }
.ane-sch__wiz-chk small { display: block; font-size: var(--a-fs-sm); color: var(--a-text-faded); }

.ane-sch__wiz-ban {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  padding: 4px 8px;
  border: 1px solid;
  border-radius: 0;
  font-weight: 400;
  line-height: 16px;
}
.ane-sch__wiz-ban .ane-sch-i { flex: none; }
.ane-sch__wiz-ban.is-ok { border-color: var(--sch-add-line); background: var(--sch-acc-soft); color: var(--sch-acc-ink); }
.ane-sch__wiz-ban.is-warn { border-color: var(--sch-note-line); background: var(--sch-note-bg); color: var(--sch-note-ink); }
.ane-sch__wiz-ban.is-err { border-color: var(--sch-bad-line); background: var(--sch-bad-bg); color: var(--sch-bad-ink); }
.ane-sch__wiz-topo { margin: 0 0 8px; line-height: 16px; color: var(--a-text); }
.ane-sch__wiz-topo b { color: var(--a-text-strong); }
.ane-sch__wiz-checks { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 0; }
.ane-sch__wiz-checks li { display: flex; align-items: flex-start; gap: 6px; min-height: 20px; padding: 2px 0; line-height: 16px; color: var(--a-text); }
.ane-sch__wiz-checks li .ane-sch-i { flex: none; margin-top: 0; }
.ane-sch__wiz-checks li.is-warn { color: var(--sch-note-ink); }
.ane-sch__wiz-checks li.is-error { color: var(--sch-bad-ink); font-weight: 400; }
.ane-sch__wiz-sh { display: flex; align-items: center; height: 22px; margin: 10px 0 0; padding: 0 6px; border: 1px solid var(--a-border-in); border-bottom-color: var(--a-border); background: var(--a-header); font-size: var(--a-fs); font-weight: 600; color: var(--a-text); }
.ane-sch__wiz-dl { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 0; margin: 0; }
.ane-sch__wiz-dl dt, .ane-sch__wiz-dl dd { margin: 0; min-height: 20px; padding: 2px 6px; border-bottom: 1px solid var(--a-border-in); line-height: 16px; }
.ane-sch__wiz-dl dt { color: var(--a-text-faded); padding-inline-end: 10px; }
.ane-sch__wiz-dl dd { font-weight: 400; color: var(--a-text); font-variant-numeric: tabular-nums; }
.ane-sch__wiz-dl dd.is-warn { color: var(--sch-note-ink); }
.ane-sch__wiz-tw { overflow-x: auto; }
.ane-sch__wiz-bom { width: 100%; border-collapse: collapse; }
.ane-sch__wiz-bom th, .ane-sch__wiz-bom td { padding: 2px 6px; border-bottom: 1px solid var(--a-border-in); text-align: start; vertical-align: top; line-height: 16px; }
[dir="rtl"] .ane-sch__wiz-bom th, [dir="rtl"] .ane-sch__wiz-bom td, .ane-sch[dir="rtl"] .ane-sch__wiz-bom th, .ane-sch[dir="rtl"] .ane-sch__wiz-bom td { padding: 2px 6px; }
.ane-sch__wiz-bom thead th { height: 22px; padding-block: 3px; border-bottom-color: var(--a-border); background: var(--a-header); font-size: var(--a-fs); font-weight: 600; color: var(--a-text); vertical-align: middle; }
.ane-sch__wiz-bom thead th + th { border-inline-start: 1px solid var(--a-border-in); }
.ane-sch__wiz-bom tbody tr:hover > * { background: var(--a-hover); }
.ane-sch__wiz-bom tbody th { width: 28%; font-weight: 400; color: var(--a-text); }
.ane-sch__wiz-bom small { display: block; margin-top: 0; font-size: var(--a-fs-sm); font-weight: 400; color: var(--a-text-faded); text-align: start; unicode-bidi: plaintext; }
.ane-sch__wiz-v { width: 18%; white-space: nowrap; }
.ane-sch__wiz-v b { font-size: var(--a-fs); color: var(--a-text); }
.ane-sch__wiz-why { font-size: var(--a-fs); color: var(--a-text); }
.ane-sch__wiz-src { display: inline-block; margin-inline-end: 4px; padding: 0 5px; border-radius: var(--a-r-ctl); font-size: var(--a-fs-sm); font-weight: 400; line-height: 15px; vertical-align: 1px; }
.ane-sch__wiz-src.is-ds { background: var(--sch-acc-soft); color: var(--a-acc-text); }
.ane-sch__wiz-src.is-calc { background: var(--a-plain); color: var(--a-text); box-shadow: inset 0 0 0 1px var(--a-border-in); }
.ane-sch__wiz-facts { margin: 10px 0 4px; }
.ane-sch__wiz-facts summary { cursor: pointer; font-size: var(--a-fs); font-weight: 600; color: var(--a-text); }
.ane-sch__wiz-facts .ane-sch__wiz-dl { margin-top: 6px; }

/* the wizard's button row: Back, the side ways and the way forward, at the end */
.ane-sch__wiz-acts {
  display: flex;
  flex: none;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  padding: 8px 10px;
  border-top: 1px solid var(--a-border-in);
  background: var(--a-panel);
}
.ane-sch__wiz-sec .ane-sch__wiz-acts { margin: 8px -12px -8px; position: sticky; bottom: -8px; z-index: 2; }
.ane-sch__wiz-acts .ane-sch__wide { width: auto; min-width: 75px; }

/* the way in, on the automation tab */
.ane-sch__wizcard {
  display: grid;
  gap: 2px;
  margin: 0 0 8px;
  padding: 6px 8px 8px;
  border: 1px solid var(--a-border-in);
  border-radius: 0;
  background: var(--a-plain);
}
.ane-sch__wizcard-t { font-size: var(--a-fs); line-height: 16px; font-weight: 600; color: var(--a-text); }
.ane-sch__wizcard-s { margin: 0 0 4px; font-size: var(--a-fs); line-height: 16px; color: var(--a-text-faded); }

@media (max-width: 760px) {
  .ane-sch__wiz-kinds { grid-template-columns: minmax(0, 1fr); }
  .ane-sch__wiz-cols { grid-template-columns: minmax(0, 1fr); overflow: auto; }
  .ane-sch__wiz-form { border-inline-end: 0; border-bottom: 1px solid var(--sch-line-2); overflow: visible; }
  .ane-sch__wiz-out { overflow: visible; }
  .ane-sch__wiz-list { grid-template-columns: minmax(0, 1fr); }
  .ane-sch__wiz-bom thead { display: none; }
  .ane-sch__wiz-bom, .ane-sch__wiz-bom tbody, .ane-sch__wiz-bom tr, .ane-sch__wiz-bom th, .ane-sch__wiz-bom td { display: block; width: auto; }
  .ane-sch__wiz-bom tr { padding: 8px 0; border-bottom: 1px solid var(--sch-line-2); }
  .ane-sch__wiz-bom th, .ane-sch__wiz-bom td { padding: 1px 0; border: 0; }
  .ane-sch__wiz-v { white-space: normal; }
  /* the step names do not fit side by side on a phone: the one you are on keeps its name */
  .ane-sch__wiz-step:not(.is-on) { padding: 5px; }
  .ane-sch__wiz-step:not(.is-on) > span:not(.ane-sch__wiz-n) {
    position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  /* back and the side ways share a row, the way forward takes a full row of its own */
  .ane-sch__wiz-acts { flex-wrap: wrap; }
  .ane-sch__wiz-acts .ane-sch__wide { flex: 1 1 auto; min-width: 0; min-height: 44px; }
  .ane-sch__wiz-acts .ane-sch__wide--acc { flex: 1 1 100%; order: 3; }
  .ane-sch__wiz-acts .ane-sch__wide span { white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  .ane-sch__wiz-step, .ane-sch__wiz-dev { transition: none; }
}
.ane-sch__wiz-src.is-opt { background: var(--sch-warn-soft); color: var(--sch-note-ink); }
.ane-sch__wiz-pn .ane-sch__in::placeholder { font-weight: 400; font-size: var(--a-fs); color: var(--a-text-faded); }

/* ---- the wizard: a part from its own datasheet (1.25) ---- */
.ane-sch__wiz-cols--wide { grid-template-columns: minmax(320px, 400px) minmax(0, 1fr); }
.ane-sch__wiz-clead { margin: 0 0 8px; font-size: var(--a-fs); line-height: 16px; color: var(--a-text); }
/* a segmented control: joined flat buttons, the chosen one on the selection ground with a bar under it */
.ane-sch__wiz-seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; padding: 0; border: 0; border-radius: 0; background: none; }
.ane-sch__wiz-segb {
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid var(--a-btn-border);
  border-radius: 0;
  background: var(--a-btn-top);
  color: var(--a-btn-text);
  font: 400 var(--a-fs)/20px var(--a-font);
  cursor: pointer;
  transition: var(--a-trans);
}
.ane-sch__wiz-segb + .ane-sch__wiz-segb { margin-inline-start: -1px; }
.ane-sch__wiz-segb:first-child { border-start-start-radius: var(--a-r-ctl); border-end-start-radius: var(--a-r-ctl); }
.ane-sch__wiz-segb:last-child { border-start-end-radius: var(--a-r-ctl); border-end-end-radius: var(--a-r-ctl); }
.ane-sch__wiz-segb:hover { background: var(--a-btn-hot-top); color: var(--a-btn-text); }
.ane-sch__wiz-segb.is-on,
.ane-sch__wiz-segb.is-on:hover { position: relative; background: var(--a-sel); border-color: var(--a-btn-border); box-shadow: inset 0 -2px 0 var(--a-bar); color: var(--a-sel-text); font-weight: 400; }
.ane-sch__wiz-segb:focus-visible { position: relative; z-index: 1; outline: 2px solid var(--a-focus); outline-offset: -2px; }
.ane-sch__wiz-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 10px; }
.ane-sch__wiz-grid2 > .ane-sch__wiz-f { align-content: start; }
.ane-sch__wiz-cset { margin: 4px 0 8px; padding: 4px 8px 0; border: 1px solid var(--a-border-in); border-radius: 0; min-width: 0; }
.ane-sch__wiz-cset legend { padding: 0 4px; font-size: var(--a-fs); font-weight: 600; color: var(--a-text); }
.ane-sch__wiz-cset > .ane-sch__wiz-help { margin-bottom: 8px; }
.ane-sch__wiz-pins { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); column-gap: 8px; }
.ane-sch__wiz-pf .ane-sch__lab { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ane-sch__wiz-pf .ane-sch__in { text-align: center; }
.ane-sch__wiz-opt { font-size: var(--a-fs-sm); font-weight: 400; color: var(--a-text-faded); }
.ane-sch__wiz-src.is-user { background: var(--sch-note-bg); color: var(--sch-note-ink); box-shadow: inset 0 0 0 1px var(--sch-note-line); }
.ane-sch__wiz-wait { margin-top: 10px; }
@media (max-width: 760px) {
  .ane-sch__wiz-cols--wide { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 420px) {
  .ane-sch__wiz-grid2 { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .ane-sch__wiz-segb { transition: none; }
}
.ane-sch__wiz-pnotes { margin: -2px 0 10px; }
.ane-sch__wiz-pf .ane-sch__in::placeholder { font-size: var(--a-fs-sm); color: var(--a-text-faded); }
/* an odd last kind takes the whole row rather than sitting alone in half of it */
.ane-sch__wiz-kind:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* ---------------- a saved design (wizard / Automation block) ---------------- */
.ane-sch__blk {
  display: grid;
  gap: 4px;
  margin: 0 0 12px;
  padding: 10px 11px;
  border: 1px solid var(--sch-add-line);
  border-radius: var(--sch-r-sm);
  background: var(--sch-acc-soft);
}
.ane-sch__blk-k { display: flex; align-items: center; gap: 6px; margin: 0; font-size: var(--a-fs-sm); font-weight: 400; color: var(--sch-acc-ink); }
.ane-sch__blk-t { margin: 0; font-size: var(--a-fs); font-weight: 600; color: var(--sch-ink); overflow-wrap: anywhere; }
.ane-sch__blk-s { margin: 0; font-size: var(--a-fs); line-height: 1.45; color: var(--sch-ink-2); }
.ane-sch__blk-w { margin: 2px 0 0; padding: 6px 8px; border-radius: var(--sch-r-sm); background: var(--sch-note-bg); color: var(--sch-note-ink); font-size: var(--a-fs-sm); line-height: 1.45; }
.ane-sch__blk-a { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.ane-sch__blk-a .ane-sch__wide { flex: 1 1 auto; }
.ane-sch__blk--edit .ane-sch__wide { justify-self: start; margin-top: 4px; }

/* suggested edits in the wizard */
.ane-sch__wiz-sug { margin: 0 0 8px; padding: 6px 8px 8px; border: 1px solid var(--a-border-in); border-radius: 0; background: var(--a-plain); }
.ane-sch__wiz-sug h4 { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; font-size: var(--a-fs); line-height: 16px; font-weight: 600; color: var(--a-text); }
.ane-sch__wiz-sug p { margin: 0 0 6px; font-size: var(--a-fs-sm); line-height: 14px; color: var(--a-text-faded); }
.ane-sch__wiz-sug .ane-sch__wiz-chip { text-align: start; line-height: 16px; background: var(--a-panel); }
.ane-sch__wiz-sug .ane-sch__wiz-chip:hover { background: var(--a-hover); }
.ane-sch__wiz-sug .ane-sch__wiz-chip small { display: block; font-weight: 400; color: var(--a-text-faded); }
.ane-sch__wiz-alts { display: grid; gap: 4px; margin-top: 6px; }
.ane-sch__wiz-alts:empty { display: none; }
.ane-sch__wiz-sug > .ane-sch__wide { margin-top: 6px; }
.ane-sch__wiz-sug .ane-sch__wiz-chips + .ane-sch__wide { margin-top: 6px; }
.ane-sch__wiz-edit { display: flex; align-items: flex-start; gap: 6px; margin: 8px 12px 0; padding: 4px 8px; flex: none; border: 1px solid var(--a-acc); border-radius: 0; background: var(--a-sel-2); color: var(--a-text); line-height: 16px; }
.ane-sch__wiz-edit .ane-sch-i { flex: none; margin-top: 0; }
.ane-sch__wiz-edit b { color: var(--a-text-strong); }
/* the mode beside the button while both read in full, the button under it when they would not */
.ane-sch__blk-b { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.ane-sch__blk-b .ane-sch__in { flex: 1 1 190px; min-width: 0; }
.ane-sch__blk-b > button { flex: 1 0 auto; }
.ane-sch__blk-b .ane-sch__in { height: 22px; }

/* a design's connections to the rest of the schematic */
.ane-sch__wiz-connbox { margin-top: 10px; }
.ane-sch__wiz-connbox:empty { display: none; }
.ane-sch__wiz-connbox > .ane-sch__wiz-help { margin: 0 0 8px; }
.ane-sch__wiz-conn { display: grid; gap: 2px; margin-bottom: 6px; }
.ane-sch__wiz-conn .ane-sch__lab small { font-weight: 400; color: var(--a-text-faded); }
.ane-sch__wiz-conn .ane-sch__in { height: 22px; }
.ane-sch__wiz-opts + .ane-sch__wiz-opts { margin-top: 10px; }
.ane-sch__wiz-chk span small { display: block; font-size: var(--a-fs-sm); color: var(--sch-ink-3); }
.ane-sch__wiz-out .ane-sch__rtab td { font-variant-numeric: tabular-nums; }

/* ================= 1.42: the workspace ================= */

/* ---- full window ---- */
html.ane-sch-app-open,
html.ane-sch-app-open body { overflow: hidden !important; }
.ane-sch.is-app {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  min-height: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.ane-sch__app-b,
.ane-sch__dock-b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  border: 0;
  background: transparent;
  color: var(--a-text-faded);
  cursor: pointer;
  transition: var(--a-trans);
}
/* full screen is an icon button like its neighbours at every width; its
   words stay in the button as a visually hidden span */
.ane-sch__app-b { position: relative; width: 32px; height: 32px; padding: 0; margin-inline-start: 1px; border: 1px solid transparent; border-radius: var(--a-r-ctl); color: var(--a-text); font: inherit; font-size: var(--a-fs); font-weight: 400; white-space: nowrap; }
@media (max-width: 560px) { .ane-sch__app-b { width: 40px; height: 40px; min-width: 40px; } }
.ane-sch__app-b:hover { background: var(--a-hover); border-color: var(--a-btn-border); color: var(--a-text-strong); }
.ane-sch__app-b[aria-pressed="true"] { background: var(--a-press); border-color: var(--a-acc); color: var(--a-text-strong); }
.ane-sch__app-b:focus-visible,
.ane-sch__dock-b:focus-visible { outline: 2px solid var(--a-focus); outline-offset: -2px; }

/*
 * ---- the dock header's actions ----
 * Two 22px buttons at the strip's end: the dock menu (⋯) and the collapse
 * button, which points at the dock's own edge. A dock narrower than 200px
 * keeps only the menu, which also holds Hide to the side.
 */
.ane-sch__side,
.ane-sch__panel { container-type: inline-size; container-name: dock; }
.ane-sch__dockh-acts {
  display: flex;
  align-items: center;
  flex: none;
  gap: 2px;
  padding-inline: 4px;
}
.ane-sch__dockh-acts .ane-sch__dock-b {
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: var(--a-r-ctl);
  color: var(--a-icon);
}
.ane-sch__dockh-acts .ane-sch-i { width: 16px; height: 16px; }
.ane-sch__dockh-acts .ane-sch__dock-b:hover,
.ane-sch__dockh-acts .ane-sch__dock-b[aria-expanded="true"] { background: var(--a-hover); color: var(--a-text-strong); }
@container dock (max-width: 199px) {
  .ane-sch__dockh-acts [data-act^="dock-"] { display: none; }
}

/* ---- the grid the docks sit in ---- */
.ane-sch__rail { display: none; }

@media (min-width: 901px) {
  .ane-sch__body {
    grid-template-columns: var(--sch-side-c, var(--sch-side)) minmax(0, 1fr) var(--sch-panel-c, var(--sch-panel));
    grid-template-rows: minmax(0, 1fr);
  }
  .ane-sch__side, .ane-sch__rail--side { grid-column: 1; grid-row: 1; }
  .ane-sch__stage { grid-column: 2; grid-row: 1; }
  .ane-sch__panel, .ane-sch__rail--panel { grid-column: 3; grid-row: 1; }

  .ane-sch__side, .ane-sch__panel { position: relative; }

  /* a dock's edge, for its width: a 4px grip over the dock's 1px border line */
  .ane-sch__split {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    z-index: 16;
    cursor: col-resize;
    touch-action: none;
  }
  /* inside the dock's own edge, so the sheet keeps every pixel of its own;
     its line lies on the dock's border, not beside it */
  .ane-sch__split--side { inset-inline-end: -1px; }
  .ane-sch__split--panel { inset-inline-start: -1px; }
  .ane-sch__split::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--a-border);
    transition: var(--a-trans);
  }
  .ane-sch__split--side::after { inset-inline-end: 0; }
  .ane-sch__split--panel::after { inset-inline-start: 0; }
  .ane-sch__split:hover::after,
  .ane-sch__split:focus-visible::after,
  .ane-sch.is-resizing .ane-sch__split::after { background: var(--a-acc); }
  /* a 4px handle shows its focus as a ring round itself, not only as the hairline's colour */
  .ane-sch__split:focus-visible { outline: 2px solid var(--a-focus); outline-offset: 0; }
  .ane-sch.is-resizing { cursor: col-resize; user-select: none; }
  .ane-sch.is-resizing .ane-sch__svg,
  .ane-sch.is-resizing .ane-sch__stage { pointer-events: none; }

  /* a hidden dock leaves a 22px strip of tabs (the pop-up edge buttons) */
  .ane-sch.is-side-hidden { --sch-side-c: 32px; }
  .ane-sch.is-panel-hidden { --sch-panel-c: 32px; }
  .ane-sch.is-side-hidden .ane-sch__rail--side,
  .ane-sch.is-panel-hidden .ane-sch__rail--panel { display: flex; }
  .ane-sch__rail {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: none;
    background: var(--a-window);
  }
  .ane-sch__rail--side { border-inline-end: 1px solid var(--a-border); }
  .ane-sch__rail--panel { border-inline-start: 1px solid var(--a-border); }
  .ane-sch__rail-b {
    display: inline-flex;
    align-items: center;
    flex: none;
    gap: 6px;
    width: 32px;
    writing-mode: vertical-rl;
    direction: ltr;
    padding: 10px 0;
    border: 0;
    border-bottom: 1px solid var(--a-border);
    border-radius: 0;
    background: transparent;
    color: var(--a-tab-text);
    font: inherit;
    font-size: var(--a-fs);
    font-weight: 400;
    line-height: 20px;
    white-space: nowrap;
    cursor: pointer;
    transition: var(--a-trans);
  }
  /* the label reads top to bottom in Hebrew too, the icon above it */
  .ane-sch__rail-b > span { direction: ltr; unicode-bidi: bidi-override; }
  .ane-sch__rail-b > .ane-sch-i { width: 16px; height: 16px; flex: none; color: var(--a-icon); }
  .ane-sch__rail-b:hover { color: var(--a-text); background: var(--a-hover); }
  /* the panel flown out: its own ground and the 2px bar on the edge that faces the canvas */
  .ane-sch__rail-b[aria-selected="true"] { color: var(--a-text-strong); font-weight: 600; background: var(--a-panel); box-shadow: inset -2px 0 var(--a-bar); }
  .ane-sch__rail--panel .ane-sch__rail-b[aria-selected="true"] { box-shadow: inset 2px 0 var(--a-bar); }
  .ane-sch[dir="rtl"] .ane-sch__rail--side .ane-sch__rail-b[aria-selected="true"] { box-shadow: inset 2px 0 var(--a-bar); }
  .ane-sch[dir="rtl"] .ane-sch__rail--panel .ane-sch__rail-b[aria-selected="true"] { box-shadow: inset -2px 0 var(--a-bar); }
  .ane-sch__rail-b:focus-visible { outline: 2px solid var(--a-focus); outline-offset: -2px; }

  /* and flies out over the sheet from its strip */
  .ane-sch.is-side-hidden .ane-sch__side,
  .ane-sch.is-panel-hidden .ane-sch__panel {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 30;
    box-shadow: var(--a-shadow-dlg);
    visibility: hidden;
    opacity: 0;
    transition: none;
  }
  .ane-sch.is-side-hidden .ane-sch__side { inset-inline-start: 32px; width: var(--sch-side); transform: translateX(var(--sch-fly-s, -10px)); border-radius: 0; }
  .ane-sch.is-panel-hidden .ane-sch__panel { inset-inline-end: 32px; width: var(--sch-panel); transform: translateX(var(--sch-fly-e, 10px)); border-radius: 0; }
  .ane-sch[dir="rtl"] { --sch-fly-s: 10px; --sch-fly-e: -10px; }
  .ane-sch.is-side-fly .ane-sch__side,
  .ane-sch.is-panel-fly .ane-sch__panel {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: none;
  }
  .ane-sch.is-side-hidden .ane-sch__split--side,
  .ane-sch.is-panel-hidden .ane-sch__split--panel { display: none; }
}
@media (max-width: 900px) {
  .ane-sch__split, [data-act^="dock-"], .ane-sch__rail { display: none !important; }
}

/* ---- Arrange panels: the last of the document tools in the title row, an icon button ---- */
.ane-sch__panels-b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 24px;
  height: 24px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--a-r-ctl);
  background: transparent;
  color: var(--a-icon);
  font: inherit;
  cursor: pointer;
  transition: var(--a-trans);
}
.ane-sch__panels-b .ane-sch-i { width: 16px; height: 16px; }
.ane-sch__panels-b:hover,
.ane-sch__panels-b[aria-expanded="true"] { background: var(--a-hover); color: var(--a-text-strong); }
.ane-sch__panels-b:focus-visible { outline: 2px solid var(--a-focus); outline-offset: 1px; }

/* ---- pop-up menus: headings and ticks ---- */
.ane-sch__m-h {
  height: 20px;
  padding: 0 8px 0 32px;
  color: var(--a-text-faded);
  font-size: var(--a-fs);
  line-height: 20px;
  font-weight: 600;
  white-space: nowrap;
}
.ane-sch[dir="rtl"] .ane-sch__m-h { padding: 0 32px 0 8px; }

/* ---- tooltips with the key ---- */
/* A dark chip in both themes: the name, then the key as a keycap ("Wire  W").
   The first tip waits; it is committed at rest (opacity 0, 2px low) and the
   .is-shown class lifts it in; the tips after it carry .is-instant. */
.ane-sch__tip {
  position: fixed;
  z-index: 96;
  display: block;
  max-width: 300px;
  padding: 4px 8px;
  border: 1px solid var(--a-tip-border);
  border-radius: var(--a-r-pop);
  background: var(--a-tip-bg);
  color: var(--a-tip-text);
  font: 400 var(--a-fs)/var(--a-lh) var(--a-font);
  box-shadow: var(--a-shadow-menu);
  /* the tip sits 8px under its button, over the next button of a vertical bar:
     it must not take the pointer from that button (the bar's own tips move
     along it at once, spec 4.x), so it is not itself hoverable; Escape puts it
     away and it shows on keyboard focus too */
  pointer-events: none;
  opacity: 0;
  transform: translateY(2px);
  transition: var(--a-pop);
}
.ane-sch__tip[hidden] { display: none; }
.ane-sch__tip.is-shown { opacity: 1; transform: none; }
.ane-sch__tip.is-instant { transition-duration: 0s; }
.ane-sch__tip[hidden] { display: none; }
.ane-sch__tip kbd {
  display: inline-block;
  margin-inline-start: 8px;
  padding: 0 4px;
  border-radius: var(--a-r-chip);
  background: var(--a-tip-key-bg);
  color: var(--a-tip-key);
  font: 500 11px/16px var(--a-font-mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ane-sch__tip kbd::before,
.ane-sch__tip kbd::after { content: none; }
/* the key is an isolated left-to-right run: in Hebrew it sits to the left of
   the word, so its gap is on its right side (a physical side on purpose: the
   key's own direction is LTR, the gap faces the Hebrew word) */
.ane-sch[dir="rtl"] .ane-sch__tip kbd { margin-inline-start: 0; margin-right: 8px; }

/* ---- the Components panel: a full-width search with the List / Tiles buttons at its end,
   library chips in up to two rows and the full library select, one-line rows under sticky
   group heads, and one preview well at the foot ---- */
.ane-sch__side-head {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 6px;
  padding: 6px 8px;
  background: var(--a-panel);
  border-bottom: 1px solid var(--a-border-in);
}
.ane-sch__srow { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-width: 0; }
.ane-sch__srow > .ane-sch__palv { margin-inline-start: auto; }
.ane-sch__side-head .ane-sch__search { flex: 1 1 160px; min-width: 0; height: 24px; }
.ane-sch__libs { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-width: 0; }
.ane-sch__libchip {
  flex: 0 1 auto;
  max-width: 100%;
  height: 24px;
  padding: 0 8px;
  border: 1px solid var(--a-btn-border);
  border-radius: var(--a-r-chip);
  background: transparent;
  color: var(--a-text);
  font: 400 var(--a-fs)/22px var(--a-font);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: var(--a-trans);
}
.ane-sch__libchip[hidden] { display: none; }
.ane-sch__libchip:hover { background: var(--a-hover); color: var(--a-text-strong); }
.ane-sch__libchip[aria-pressed="true"],
.ane-sch__libchip[aria-pressed="true"]:hover {
  background: var(--a-sel);
  border-color: var(--a-sel-edge);
  color: var(--a-sel-text);
  font-weight: 600;
}
.ane-sch__libchip:focus-visible { outline: 2px solid var(--a-focus); outline-offset: 1px; }
.ane-sch__libsel {
  flex: 1 1 96px;
  min-width: 96px;
  max-width: 100%;
  height: 24px;
  margin: 0;
  padding-block: 0;
  padding-inline: 8px 22px;
  background-color: var(--a-field);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6l6 -6' fill='none' stroke='%23A9B4AE' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 6px center;
  background-size: 10px 10px;
  border: 1px solid var(--a-field-border);
  border-radius: var(--a-r-ctl);
  color: var(--a-text);
  font: var(--a-fs)/22px var(--a-font);
  text-overflow: ellipsis;
  white-space: nowrap;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: var(--a-trans);
}
.ane-sch[dir="rtl"] .ane-sch__libsel { background-position: left 6px center; }
.ane-sch[data-theme="light"] .ane-sch__libsel {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6l6 -6' fill='none' stroke='%235A6660' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.ane-sch__libsel:hover { border-color: var(--sch-field-hover); }
.ane-sch__libsel:focus { outline: 0; border-color: var(--a-focus); }
.ane-sch__libsel:focus-visible { outline: 0; border-color: var(--a-focus); box-shadow: inset 0 0 0 1px var(--a-focus); }
.ane-sch__libsel option { background: var(--a-field); color: var(--a-text); }
.ane-sch__palv { display: inline-flex; flex: none; gap: 1px; border: 0; border-radius: 0; }
.ane-sch__palv-b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--a-r-ctl);
  background: transparent;
  color: var(--a-icon);
  cursor: pointer;
  transition: var(--a-trans);
}
.ane-sch__palv-b .ane-sch-i { width: 16px; height: 16px; }
.ane-sch__palv-b:hover { background: var(--a-hover); border-color: var(--a-btn-border); color: var(--a-text-strong); }
.ane-sch__palv-b[aria-pressed="true"] { background: var(--a-press); border-color: var(--a-acc); color: var(--a-text-strong); }
.ane-sch__palv-b:focus-visible { outline: 2px solid var(--a-focus); outline-offset: -2px; }

/* the Components face: the list over the preview; it is the dock's growing pane */
.ane-sch__comps { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; overflow: auto; background: var(--a-panel); }
.ane-sch__comps[hidden] { display: none; }
.ane-sch__palette { background: var(--a-panel); }

/* a group: a grey band with a triangle, its name and how many it holds */
.ane-sch__cat { padding: 0; }
.ane-sch__cat[hidden] { display: none; }
.ane-sch__palette .ane-sch__cat-h {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  margin: 0;
  padding: 0 8px;
  background: var(--a-header);
  border-top: 1px solid var(--a-border-in);
  border-bottom: 1px solid var(--a-border-in);
  color: var(--a-text);
  font: 600 var(--a-fs)/22px var(--a-font);
  text-transform: none;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: var(--a-trans);
}
.ane-sch__palette .ane-sch__cat-h:hover { background-color: var(--a-hover); color: var(--a-text); }
.ane-sch__palette .ane-sch__cat-h:focus-visible { outline: 2px solid var(--a-focus); outline-offset: -2px; }
/* the disclosure is a real button inside the heading; it fills the heading and takes its look */
.ane-sch__palette .ane-sch__cat-h:has(> .ane-sch__cat-b) { padding: 0; }
.ane-sch__cat-b {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: start;
  white-space: nowrap;
  cursor: pointer;
}
.ane-sch__cat-b:focus-visible { outline: 2px solid var(--a-focus); outline-offset: -2px; }
.ane-sch__cat-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ane-sch__cat-n { flex: none; font-weight: 400; color: var(--a-text-faded); font-variant-numeric: tabular-nums; }
.ane-sch__cat-h[role="button"] { cursor: pointer; user-select: none; border-radius: 0; }
.ane-sch__cat-ch { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 10px; height: 10px; }
.ane-sch__cat-ch .ane-sch-i { width: 10px; height: 10px; color: var(--a-text-faded); transform: rotate(90deg); transition: none; }
.ane-sch__cat.is-shut .ane-sch__cat-ch .ane-sch-i { transform: none; }
.ane-sch[dir="rtl"] .ane-sch__cat.is-shut .ane-sch__cat-ch .ane-sch-i { transform: scaleX(-1); }
.ane-sch__cat.is-shut > :not(.ane-sch__cat-h) { display: none; }

/* tiles: 64x66, each symbol on a scrap of sheet paper */
.ane-sch__grid { display: grid; grid-template-columns: repeat(auto-fill, 64px); gap: 2px; padding: 4px 8px; }
.ane-sch__part {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  height: 66px;
  padding: 2px;
  border: 1px solid var(--a-border-in);
  border-radius: 0;
  background: var(--a-panel);
  color: var(--a-text);
  font: inherit;
  cursor: pointer;
  transition: var(--a-trans);
}
.ane-sch__part:hover { background: var(--a-hover); }
/* a part's thumbnail lies on the sheet's paper and is drawn with the sheet's set, so it never changes with the chrome theme */
.ane-sch__thumb {
  display: block;
  flex: none;
  width: 56px;
  height: 40px;
  background: var(--a-pv-top);
  border: 0;
  /* the hairline is a ring just outside the chip, so the pixels round the chip belong to it and not to the row behind */
  box-shadow: 0 0 0 1px var(--a-sheet-edge);
  border-radius: var(--a-r-chip);
}
.ane-sch.is-dark-sheet { --a-pv-top: #171D1A; --a-sheet-edge: #2D3631; }
/* the title block's mark: its bar takes the accent on screen (a file gets the colour as an attribute) */
.ane-sch__tb-bar { fill: var(--a-acc); }
.ane-sch__part-n {
  display: block;
  max-width: 100%;
  font-size: var(--a-fs-sm);
  line-height: 14px;
  text-align: center;
  color: var(--a-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ane-sch__part-d { display: none; }

/* the list: one 24px line a part, the thumbnail chip, the name, then the value and footprint faded */
.ane-sch.is-pal-list .ane-sch__grid { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0; }
.ane-sch.is-pal-list .ane-sch__part {
  display: grid;
  grid-template-columns: 22px fit-content(60%) minmax(0, 1fr);
  align-items: center;
  column-gap: 6px;
  height: 24px;
  padding: 0 8px;
  border: 0;
  border-radius: 0;
  background: var(--a-panel);
  text-align: start;
}
.ane-sch.is-pal-list .ane-sch__part:hover { background: var(--a-hover); }
.ane-sch.is-pal-list .ane-sch__thumb { width: 22px; height: 16px; }
.ane-sch.is-pal-list .ane-sch__part-n {
  min-width: 0;
  padding: 0;
  font-size: var(--a-fs);
  line-height: 16px;
  text-align: start;
  color: var(--a-text);
}
.ane-sch.is-pal-list .ane-sch__part-d,
.ane-sch__tpl-b .ane-sch__part-d {
  display: block;
  min-width: 0;
  padding: 0;
  font-size: var(--a-fs-sm);
  line-height: 16px;
  color: var(--a-text-faded);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: start;
}
/* a description is a value and a footprint name, Latin as often as not: it
   takes the direction of its own first letter, so "10k · Potentiometer_3pin"
   is cut at its end and "3 רכיבים" still reads right to left */
.ane-sch__part-d, .ane-sch__pv-d, .ane-sch__pv-n { unicode-bidi: plaintext; }
.ane-sch[dir="rtl"] .ane-sch__part-d, .ane-sch[dir="rtl"] .ane-sch__pv-d, .ane-sch[dir="rtl"] .ane-sch__pv-n { text-align: right; }
/*
 * Selected rows: one rule for every list. The row last picked is the selection
 * colour (outlined in the light theme); the row being previewed is the quieter
 * "inactive" ground with its own outline, so the two never read as one.
 * A selected row has no side stripe and no left bar.
 */
/* rows are used hundreds of times a day: their ground changes at once */
.ane-sch :is(.ane-sch__part, .ane-sch__tpl-b, .ane-sch__pal-p) { transition: none; }
.ane-sch :is(.ane-sch__part, .ane-sch__tpl-b, .ane-sch__pal-p):is([aria-selected="true"], .is-sel) {
  background: var(--a-sel);
  color: var(--a-sel-text);
  box-shadow: inset 0 0 0 1px var(--a-sel-edge);
}
.ane-sch :is(.ane-sch__part, .ane-sch__tpl-b, .ane-sch__pal-p):is(.is-preview, [aria-current="true"]):not(.is-sel):not([aria-selected="true"]) {
  background: var(--a-sel-inact);
  color: var(--a-sel-text);
  box-shadow: inset 0 0 0 1px var(--a-sel-inact-edge);
}
.ane-sch :is(.is-sel, .is-preview, [aria-selected="true"]) :is(.ane-sch__part-n, .ane-sch__part-d, .ane-sch__pal-m, .ane-sch__pal-s, .ane-sch__cat-n, .ane-sch__erc-d, small, .is-faded) { color: var(--a-sel-text); }
.ane-sch :is(.ane-sch__part, .ane-sch__tpl-b, .ane-sch__pal-p):focus-visible { outline: 2px solid var(--a-focus); outline-offset: -2px; }

/* Snippets: plain rows, the snippet icon, its name and how many parts it puts down */
.ane-sch__tpl { display: grid; gap: 0; }
.ane-sch__tpl-b {
  display: grid;
  grid-template-columns: 22px fit-content(60%) minmax(0, 1fr);
  align-items: center;
  column-gap: 6px;
  width: 100%;
  height: 24px;
  padding: 0 8px;
  border: 0;
  border-radius: 0;
  background: var(--a-panel);
  color: var(--a-text);
  font: var(--a-fs)/16px var(--a-font);
  text-align: start;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--a-trans);
}
.ane-sch__tpl-b > span:not(.ane-sch__part-d) { min-width: 0; padding: 0; overflow: hidden; text-overflow: ellipsis; }
.ane-sch__tpl-b:hover { background: var(--a-hover); }
.ane-sch__tpl-i { display: inline-flex; align-items: center; justify-content: center; }
.ane-sch__tpl-i .ane-sch-i { width: 16px; height: 16px; }

.ane-sch__none { margin: 0; padding: 8px; color: var(--a-text-faded); }
.ane-sch__none[hidden] { display: none; }

/* the catalogue's real parts, found from the same box: the same dense rows */
.ane-sch__pal-cat { display: grid; gap: 0; }
.ane-sch__pal-cat > .ane-sch__blank-s { margin: 0; padding: 4px 8px; }
.ane-sch__pal-p {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  column-gap: 6px;
  width: 100%;
  min-width: 0;
  min-height: 24px;
  padding: 2px 8px;
  border: 0;
  border-radius: 0;
  background: var(--a-panel);
  color: var(--a-text);
  font: inherit;
  text-align: start;
  cursor: pointer;
  transition: var(--a-trans);
}
.ane-sch__pal-p:hover { background: var(--a-hover); }
.ane-sch__pal-p .ane-sch__thumb { width: 22px; height: 16px; align-self: start; margin-top: 1px; }
.ane-sch__pal-t {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 6px;
  align-items: baseline;
  min-width: 0;
  padding-inline-start: 2px;
}
/*
 * A part number is Latin text that often ends in a plus or a dash, and in a
 * right to left panel those trailing characters move to the front: GALI-6+
 * becomes +GALI-6, which is not the number anybody can order. The number and
 * the maker are laid out left to right and isolated from the panel around
 * them; only their alignment follows the reading direction.
 */
.ane-sch__pal-t b, .ane-sch__pal-m { direction: ltr; unicode-bidi: isolate; text-align: left; }
[dir="rtl"] .ane-sch__pal-t b, [dir="rtl"] .ane-sch__pal-m { text-align: right; }
.ane-sch__pal-t b {
  font-size: var(--a-fs);
  font-weight: 400;
  line-height: 16px;
  color: inherit;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ane-sch__pal-m, .ane-sch__pal-s {
  min-width: 0;
  font-size: var(--a-fs-sm);
  line-height: 14px;
  color: var(--a-text-faded);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ane-sch__pal-s {
  grid-column: 1 / -1;
  font-variant-numeric: tabular-nums;
  white-space: normal;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  unicode-bidi: plaintext;
}
.ane-sch__pal-s.is-bad { color: var(--a-err); font-weight: 400; }
/* a part the distributor does not carry is a sourcing note, not a failure */
.ane-sch__pal-s.is-soft { color: var(--a-warn); }
.ane-sch__pal-t .ane-sch__life { grid-column: 1 / -1; justify-self: start; align-self: center; margin: 1px 0; }
.ane-sch__life { padding: 0 4px; border-radius: var(--a-r-ctl); font-size: var(--a-fs-sm); line-height: 14px; }
.ane-sch__pal-more {
  display: block;
  width: 100%;
  height: 20px;
  margin: 0;
  padding: 0 4px;
  padding-inline-start: 28px;
  background: var(--a-panel);
  border: 0;
  border-radius: 0;
  color: var(--a-acc-text);
  font: var(--a-fs)/20px var(--a-font);
  text-align: start;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.ane-sch__pal-more:hover { background: var(--a-hover); }
.ane-sch__pal-more:focus-visible { outline: 2px solid var(--a-focus); outline-offset: -2px; }
/* a part and the parts it needs around it: a link under its row */
.ane-sch__pal-row { display: grid; }
.ane-sch__pal-apps {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  min-width: 0;
  min-height: 20px;
  margin: 0;
  padding: 0 4px;
  padding-inline-start: 28px;
  background: var(--a-panel);
  border: 0;
  border-radius: 0;
  color: var(--a-acc-text);
  font: var(--a-fs)/16px var(--a-font);
  font-weight: 400;
  text-align: start;
  cursor: pointer;
  transition: var(--a-trans);
}
.ane-sch__pal-apps span { text-decoration: underline; text-underline-offset: 2px; }
.ane-sch__pal-apps svg { flex: 0 0 auto; width: 12px; height: 12px; }
.ane-sch__pal-apps em {
  margin-inline-start: auto;
  padding: 0 4px;
  min-width: 18px;
  text-align: center;
  font-style: normal;
  font-variant-numeric: tabular-nums;
  font-size: var(--a-fs-sm);
  line-height: 14px;
  color: var(--a-acc-text);
  background: var(--a-sel-2);
  border-radius: var(--a-r-ctl);
}
.ane-sch__pal-apps:hover { background: var(--a-hover); }
.ane-sch__pal-apps:focus-visible { outline: 2px solid var(--a-focus); outline-offset: -2px; }

/* the preview at the foot: the bar that sizes it, the drawing, then the name and Place */
.ane-sch__pv-split {
  position: relative;
  flex: none;
  height: 4px;
  background: var(--a-panel);
  cursor: ns-resize;
  touch-action: none;
}
.ane-sch__pv-split::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background: var(--a-border);
  transition: var(--a-trans);
}
.ane-sch__pv-split:hover::after,
.ane-sch__pv-split:focus-visible::after,
.ane-sch.is-resizing-v .ane-sch__pv-split::after { background: var(--a-acc); }
.ane-sch__pv-split:focus-visible { outline: 2px solid var(--a-focus); outline-offset: 0; }
.ane-sch.is-resizing-v { cursor: ns-resize; user-select: none; }
.ane-sch__pv {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
  max-height: 60%;
  padding: 8px;
  overflow: hidden;
  background-color: var(--a-panel);
  color: var(--a-text);
}
.ane-sch__pv[hidden], .ane-sch__pv-split[hidden] { display: none; }
/* Symbol / Footprint: one at a time; a region of 360px or more shows both and drops the switch */
.ane-sch__pv-seg { flex: none; margin: 0; }
.ane-sch__pv-seg .ane-sch__seg-b { flex: 1 1 0; height: 24px; line-height: 22px; }
.ane-sch__pv-seg .ane-sch__seg-b[aria-disabled="true"] { opacity: .5; cursor: default; }
.ane-sch__pv.is-stack .ane-sch__pv-seg, .ane-sch__pv-seg[hidden] { display: none; }
/* one well on the sheet's paper; the symbol and, below it when the region allows, the land pattern */
.ane-sch__pv-art {
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: minmax(0, 1fr);
  gap: 1px;
  min-height: 0;
  padding: 0;
  background: var(--a-pv-top);
  box-shadow: 0 0 0 1px var(--a-sheet-edge);
  border-radius: var(--a-r-chip);
  overflow: hidden;
}
.ane-sch__pv-art.is-two { background: var(--a-sheet-edge); }
.ane-sch__pv-sym, .ane-sch__pv-fp { min-width: 0; min-height: 0; padding: 8px; overflow: hidden; background: var(--a-pv-top); }
.ane-sch__pv-sym[hidden], .ane-sch__pv-fp[hidden] { display: none; }
.ane-sch__pv-sym > svg, .ane-sch__pv-fp > svg { display: block; width: 100%; height: 100%; }
.ane-sch__pv-why { flex: none; margin: 0; font-size: var(--a-fs-sm); line-height: 16px; color: var(--a-text-faded); }
.ane-sch__pv-i { display: flex; flex: none; align-items: baseline; min-width: 0; }
.ane-sch__pv-t { display: flex; flex: 1 1 auto; align-items: baseline; gap: 6px; min-width: 0; }
.ane-sch__pv-n, .ane-sch__pv-d { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--a-fs); line-height: 16px; }
.ane-sch__pv-n { flex: 0 1 auto; font-weight: 600; color: var(--a-text); }
.ane-sch__pv-d { flex: 1 1 0; font-weight: 400; color: var(--a-text-faded); }
.ane-sch__pv-act { display: flex; flex: none; align-items: center; gap: 6px; min-width: 0; }
.ane-sch__pv-b {
  flex: none;
  height: 24px;
  min-width: 64px;
  padding: 0 12px;
  border: 1px solid var(--a-btn-border);
  border-radius: var(--a-r-ctl);
  background: var(--a-btn-top);
  color: var(--a-btn-text);
  font: var(--a-fs)/22px var(--a-font);
  white-space: nowrap;
  cursor: pointer;
  transition: var(--a-trans);
}
.ane-sch__pv-b:hover { background: var(--a-btn-hot-top); }
.ane-sch__pv-b:active { background: var(--a-press); box-shadow: none; }
.ane-sch__pv-b:focus-visible { outline: 2px solid var(--a-focus); outline-offset: 1px; }
.ane-sch[data-theme="light"] .ane-sch__pv-b:hover { border-color: var(--a-text-faded); }
.ane-sch__pv-none { margin: auto; padding: 8px; color: var(--a-text-faded); text-align: center; }
/* the part with its peripherals: a second action next to Place */
.ane-sch__pv-apps,
.ane-sch__part-apps {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  height: 24px;
  padding: 0 8px 0 6px;
  border: 1px solid transparent;
  border-radius: var(--a-r-ctl);
  background: transparent;
  color: var(--a-acc-text);
  font: var(--a-fs)/20px var(--a-font);
  white-space: nowrap;
  cursor: pointer;
  transition: var(--a-trans);
}
.ane-sch__pv-apps svg, .ane-sch__part-apps svg { flex: 0 0 auto; width: 12px; height: 12px; }
.ane-sch__pv-apps span, .ane-sch__part-apps span { overflow: hidden; text-overflow: ellipsis; }
.ane-sch__pv-apps em, .ane-sch__part-apps em {
  padding: 0 4px;
  min-width: 16px;
  text-align: center;
  font-style: normal;
  font-variant-numeric: tabular-nums;
  font-size: var(--a-fs-sm);
  line-height: 14px;
  color: var(--a-acc-text);
  background: var(--a-sel-2);
  border-radius: var(--a-r-ctl);
}
.ane-sch__pv-apps:hover, .ane-sch__part-apps:hover { background: var(--a-hover); border-color: var(--a-btn-border); }
.ane-sch__pv-apps:active, .ane-sch__part-apps:active { background: var(--a-press); }
.ane-sch__pv-apps:focus-visible, .ane-sch__part-apps:focus-visible { outline: 2px solid var(--a-focus); outline-offset: -2px; }
/* the palette's own copy of it is for the phone, where the preview is not shown */
.ane-sch__part-apps { display: none; }
@media (max-width: 900px) {
  .ane-sch__pv, .ane-sch__pv-split { display: none !important; }
  .ane-sch__part-apps {
    display: flex;
    grid-column: 1 / -1;
    justify-self: stretch;
    height: 32px;
    padding-inline: 34px 10px;
    border-radius: 0;
  }
  .ane-sch__part-apps em { margin-inline-start: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .ane-sch__part, .ane-sch__tpl-b, .ane-sch__libsel, .ane-sch__pv-b, .ane-sch__pv-split::after,
  .ane-sch__palette .ane-sch__cat-h { transition: none; }
}

/* the tiles keep the narrower layouts' columns (spec 10) */
@media (max-width: 1100px) { .ane-sch__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .ane-sch__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---- the Projects panel (WP7): a row of the project's commands, then the tree ---- */
.ane-sch__proj { flex: 1; min-height: 0; overflow: auto; padding: 0; background: var(--a-panel); }
.ane-sch__pj-acts {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 1px;
  height: 32px;
  padding: 0 8px;
  background: var(--a-panel);
  border-bottom: 1px solid var(--a-border-in);
}
.ane-sch__pj-a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--a-r-ctl);
  background: transparent;
  color: var(--a-text);
  cursor: pointer;
  transition: var(--a-trans);
}
.ane-sch__pj-a .ane-sch-i { flex: none; width: 16px; height: 16px; }
.ane-sch__pj-a:hover { background: var(--a-hover); border-color: var(--a-btn-border); }
.ane-sch__pj-a:active { background: var(--a-press); }
.ane-sch__pj-a:focus-visible { outline: 2px solid var(--a-focus); outline-offset: -2px; }
.ane-sch__tree { display: block; padding: 2px 0; }
.ane-sch__tree-l { display: block; padding: 0; }
.ane-sch__tree-g[hidden], .ane-sch__tree-l[hidden] { display: none; }
.ane-sch__tree-r, .ane-sch__tree-g, .ane-sch__tree-i {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  min-width: 0;
  height: 24px;
  margin: 0;
  padding-block: 0;
  padding-inline: 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--a-text);
  font: 400 var(--a-fs)/16px var(--a-font);
  text-align: start;
  white-space: nowrap;
  cursor: default;
  transition: var(--a-trans);
}
/* 8px, then 16px a level */
.ane-sch__tree [data-depth="1"] { padding-inline-start: 24px; }
.ane-sch__tree [data-depth="2"] { padding-inline-start: 40px; }
.ane-sch__tree-r { font-weight: 600; }
.ane-sch__tree-i { cursor: pointer; }
.ane-sch__tree-r:hover, .ane-sch__tree-g:hover, .ane-sch__tree-i:hover,
.ane-sch__tree-r.is-ctx, .ane-sch__tree-g.is-ctx, .ane-sch__tree-i.is-ctx { background: var(--a-hover); }
.ane-sch__tree-r:focus-visible, .ane-sch__tree-g:focus-visible, .ane-sch__tree-i:focus-visible { outline: 2px solid var(--a-focus); outline-offset: -2px; }
.ane-sch__tree-r > .ane-sch-i, .ane-sch__tree-g > .ane-sch-i, .ane-sch__tree-i > .ane-sch-i { flex: none; width: 16px; height: 16px; }
.ane-sch__tree-x { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 12px; height: 16px; cursor: pointer; }
.ane-sch__tree-x .ane-sch-i { width: 12px; height: 12px; color: var(--a-text-faded); transition: none; }
.ane-sch .ane-sch__tree [aria-expanded="true"] > .ane-sch__tree-x .ane-sch-i { transform: rotate(90deg); }
.ane-sch__tree-i bdi, .ane-sch__tree-r bdi, .ane-sch__tree-g span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* the open document: the quiet selection while the panel is elsewhere, the selection colour when it has the keys */
.ane-sch__tree-i.is-on { background: var(--a-sel-inact); color: var(--a-sel-text); box-shadow: inset 0 0 0 1px var(--a-sel-inact-edge); font-weight: 400; }
.ane-sch__side:focus-within .ane-sch__tree-i.is-on { background: var(--a-sel); color: var(--a-sel-text); box-shadow: inset 0 0 0 1px var(--a-sel-edge); }
.ane-sch__tree-i.is-on .ane-sch-i { color: inherit; }
@media (prefers-reduced-motion: reduce) {
  .ane-sch__tree-r, .ane-sch__tree-g, .ane-sch__tree-i, .ane-sch__pj-a { transition: none; }
}

/* ---- the Properties panel says what it shows ---- */

@media (prefers-reduced-motion: reduce) {
  .ane-sch.is-side-hidden .ane-sch__side,
  .ane-sch.is-panel-hidden .ane-sch__panel { transition: none; transform: none; }
}

@media (max-width: 900px) {
  /* a phone's panels are drawers opened from the toolbar */
  .ane-sch__panels-b { display: none; }
  /* and its larger toolbar and drawing-bar targets carry the 16px pictograms at 20px */
  .ane-sch__b > .ane-sch-i { width: 20px; height: 20px; }
}

/*
 * The density on a desktop screen: a 28px toolbar row of 22px buttons
 * with 16px pictograms, and the drawing bar's 24px buttons in a 30px strip.
 * A phone keeps its own, larger targets (the narrow rules above).
 */
@media (min-width: 901px) {
  .ane-sch__bar { min-height: 28px; padding: 2px 4px; gap: 0; }
  /* 24px: the smallest target WCAG 2.5.8 allows, in the same 28px row */
  .ane-sch__bar .ane-sch__b { width: 24px; height: 24px; }
  /* the end group holds only the phone's drawer buttons: no divider before nothing */
  .ane-sch__bar > .ane-sch__grp--end::before { display: none; }
  .ane-sch__bar .ane-sch__b--lang { width: auto; }
  .ane-sch__bar .ane-sch-i,
  .ane-sch__app-b .ane-sch-i { width: 16px; height: 16px; }
  .ane-sch__app-b { width: 24px; height: 24px; margin-inline-start: 0; }
}

/*
 * The title row (spec 3, WP3). From 901px the menus are a 24px row with no
 * line of their own; the document tools under them is the 28px row
 * that closes the pair with the border.
 */
@media (min-width: 901px) {
  .ane-sch__menubar { height: 24px; border-bottom: 0; }
}
/*
 * Wide (1101px and up, and the editor itself that wide - .is-top2 marks one
 * set into a narrower column): one 32px row of three cells - the menus at the
 * start, the document's name centred in the free space between them and the
 * tools, and the document tools (the toolbar, role and label kept) at the end.
 */
@media (min-width: 1101px) {
  .ane-sch:not(.is-top2) .ane-sch__top {
    grid-template-columns: auto minmax(0, 1fr) auto;
    height: 32px;
    padding: 0 4px;
    border-bottom: 1px solid var(--a-border);
  }
  .ane-sch:not(.is-top2) .ane-sch__top > .ane-sch__menubar {
    grid-column: 1;
    grid-row: 1;
    height: auto;
    align-self: stretch;
    padding: 0;
    background: transparent;
    border: 0;
  }
  .ane-sch:not(.is-top2) .ane-sch__top > .ane-sch__docname { grid-column: 2; justify-self: center; }
  .ane-sch:not(.is-top2) .ane-sch__top > .ane-sch__bar {
    grid-column: 3;
    grid-row: 1;
    padding: 0;
    background: transparent;
    border: 0;
    overflow: visible;
  }
  .ane-sch:not(.is-top2) .ane-sch__m-t { height: 26px; }
}

/* =====================================================================
 * The Properties panel (spec 7.11): a search box, a type
 * line, General | Pins for a part, then regions that fold under grey
 * bands. Every row is a label at 40% and a 20px field beside it.
 * ===================================================================== */
.ane-sch__pane--props {
  display: flex;
  flex-direction: column;
  padding: 0;
  background: var(--a-panel);
}
.ane-sch__pane--props > * { flex: none; }
.ane-sch__pane--props .ane-sch__rule { display: none; }

/* ---- the header: the first row (name, kind chip, the search button); it stays at the top ---- */
.ane-sch__phead {
  position: sticky;
  top: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  background: var(--a-panel);
  border-bottom: 1px solid var(--a-border);
}
.ane-sch__ptitle {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  height: 32px;
  margin: 0;
  padding: 0 8px;
  font-size: var(--a-fs-h);
  line-height: 20px;
  font-weight: 600;
  color: var(--a-text-strong);
  white-space: nowrap;
  overflow: hidden;
}
.ane-sch__ptitle-v { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.ane-sch__ptitle-v.is-faded { font-weight: 400; color: var(--a-text-faded); }
.ane-sch__ptitle-k {
  flex: none;
  padding: 0 6px;
  border-radius: var(--a-r-chip);
  background: var(--a-header);
  box-shadow: inset 0 0 0 1px var(--a-border-in);
  font-size: var(--a-fs-sm);
  line-height: 18px;
  font-weight: 600;
  color: var(--a-text);
}
.ane-sch__psearch-b {
  grid-column: 2;
  grid-row: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-inline: 0 6px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--a-r-ctl);
  background: transparent;
  color: var(--a-icon);
  cursor: pointer;
  transition: var(--a-trans);
}
.ane-sch__psearch-b:hover { background: var(--a-hover); border-color: var(--a-btn-border); color: var(--a-text-strong); }
.ane-sch__psearch-b.is-on { background: var(--a-press); border-color: var(--a-acc); color: var(--a-text-strong); }
.ane-sch__psearch-b:focus-visible { outline: 2px solid var(--a-focus); outline-offset: -2px; }
.ane-sch__psearch { grid-column: 1 / -1; grid-row: 2; position: relative; display: block; margin: 0; padding: 0 8px 6px; }
.ane-sch__psearch[hidden] { display: none; }
.ane-sch__psearch > .ane-sch-i {
  position: absolute;
  inset-inline-start: 14px;
  top: 12px;
  margin-top: -8px;
  color: var(--a-text-faded);
  pointer-events: none;
}
.ane-sch__psearch-i {
  display: block;
  width: 100%;
  height: 24px;
  margin: 0;
  padding-block: 0;
  padding-inline: 26px 26px;
  border: 1px solid var(--a-field-border);
  border-radius: var(--a-r-ctl);
  background: var(--a-field);
  color: var(--a-text);
  font: inherit;
  transition: var(--a-trans);
  -webkit-appearance: none;
  appearance: none;
}
.ane-sch__psearch-i::placeholder { color: var(--a-text-faded); opacity: 1; }
.ane-sch__psearch-i:hover { border-color: var(--sch-field-hover); }
.ane-sch__psearch-i:focus { outline: 0; border-color: var(--a-focus); }
.ane-sch__psearch-i::-webkit-search-cancel-button,
.ane-sch__psearch-i::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.ane-sch__psearch-x {
  position: absolute;
  inset-inline-end: 12px;
  top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  padding: 0;
  border: 0;
  border-radius: var(--a-r-ctl);
  background: transparent;
  color: var(--a-text-faded);
  cursor: pointer;
  transition: var(--a-trans);
}
.ane-sch__psearch-x > .ane-sch-i { width: 14px; height: 14px; }
.ane-sch__psearch-x:hover { background-color: var(--a-hover); color: var(--a-text); }
.ane-sch__psearch-x[hidden] { display: none; }
.ane-sch__psearch-none { margin: 8px; font-size: var(--a-fs); color: var(--a-text-faded); }

/* ---- regions ---- */
.ane-sch__sec { display: block; }
.ane-sch__sec-h {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  height: 26px;
  margin: 0;
  padding: 0 8px;
  border: 0;
  border-top: 1px solid var(--a-border-in);
  border-radius: 0;
  background: var(--a-header);
  color: var(--a-text);
  font: 600 var(--a-fs-h)/24px var(--a-font);
  text-align: start;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--a-trans);
}
.ane-sch__sec-h:hover { background-color: var(--a-hover); }
.ane-sch__sec-h:focus-visible { outline: 2px solid var(--a-focus); outline-offset: -2px; }
.ane-sch__sec-h > .ane-sch-i { flex: none; width: 10px; height: 10px; color: var(--a-text-faded); transition: none; }
.ane-sch .ane-sch__sec-h[aria-expanded="true"] > .ane-sch-i { transform: rotate(90deg); }
.ane-sch__sec-t { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ane-sch__sec-tag {
  flex: none;
  margin-inline-start: auto;
  padding: 0 5px;
  border-radius: var(--a-r-ctl);
  background: var(--a-sel-2);
  color: var(--a-acc-text);
  font-size: var(--a-fs-sm);
  font-weight: 400;
  line-height: 16px;
}
.ane-sch__sec-tag--none { background: var(--sch-warn-soft); color: var(--sch-warn); }
.ane-sch__sec-b { padding: 2px 8px 6px; }
.ane-sch__sec-b[hidden] { display: none; }
.ane-sch__sec.is-nomatch,
.ane-sch__sec-b > .is-nomatch { display: none !important; }
.ane-sch__pane--props > .ane-sch__sec:last-of-type { border-bottom: 1px solid var(--a-border-in); }
/* the Automation pane folds the same way; its regions run edge to edge */
.ane-sch__pane:not(.ane-sch__pane--props) > .ane-sch__sec { margin-inline: -8px; }
.ane-sch__pane:not(.ane-sch__pane--props) > .ane-sch__sec + :not(.ane-sch__sec) { margin-top: 8px; }
.ane-sch__pane:not(.ane-sch__pane--props) > :not(.ane-sch__sec) + .ane-sch__sec { margin-top: 8px; }
.ane-sch__sec-b > .ane-sch__acts:first-child,
.ane-sch__sec-b > .ane-sch__row:not(.ane-sch__field):first-child { margin-top: 4px; }

/* ---- rows: the name at 40%, regular and grey, the value beside it ---- */
.ane-sch__pane--props .ane-sch__field,
.ane-sch__pane--props .ane-sch__field:has(> .ane-sch__lab + .ane-sch__in:last-child) {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  column-gap: 8px;
  align-items: center;
  min-height: 26px;
  margin: 0 -8px;
  padding: 1px 8px;
}
.ane-sch__pane--props .ane-sch__field > :only-child { grid-column: 1 / -1; }
.ane-sch__pane--props .ane-sch__lab {
  display: block;
  min-width: 0;
  margin: 0;
  font: 400 var(--a-fs)/16px var(--a-font);
  color: var(--a-text-faded);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ane-sch__pane--props .ane-sch__lab.is-hit {
  justify-self: start;
  max-width: 100%;
  margin-inline-start: -2px;
  padding: 0 2px;
  background: var(--a-hit);
  color: var(--a-hit-text);
}
.ane-sch__pane--props .ane-sch__in {
  height: 24px;
  padding: 0 6px;
  border: 1px solid var(--a-field-border);
  border-radius: var(--a-r-ctl);
  background-color: var(--a-field);
  color: var(--a-text);
  font: inherit;
  line-height: 22px;
  font-variant-numeric: tabular-nums;
}
.ane-sch__pane--props .ane-sch__in:focus { outline: 0; border-color: var(--a-focus); }
.ane-sch__pane--props textarea.ane-sch__in { height: auto; min-height: 60px; padding: 2px 4px; line-height: 16px; }
.ane-sch__pane--props input[type="number"].ane-sch__in { -moz-appearance: textfield; }
.ane-sch__pane--props input[type="number"].ane-sch__in::-webkit-inner-spin-button,
.ane-sch__pane--props input[type="number"].ane-sch__in::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.ane-sch__in.is-mixed::placeholder { color: var(--a-mixed); opacity: 1; }
/* a drop-down shows a small solid triangle, not the browser's */
.ane-sch__pane--props select.ane-sch__in {
  -webkit-appearance: none;
  appearance: none;
  padding-inline-end: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cpath d='M0.5 2h7L4 6z' fill='%23BBBBBB'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  background-size: 8px 8px;
  cursor: pointer;
}
.ane-sch[dir="rtl"] .ane-sch__pane--props select.ane-sch__in { background-position: left 4px center; }
.ane-sch[data-theme="light"] .ane-sch__pane--props select.ane-sch__in {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cpath d='M0.5 2h7L4 6z' fill='%235A5A5A'/%3E%3C/svg%3E");
}
.ane-sch__pane--props select.ane-sch__in option { background: var(--a-field); color: var(--a-text); }
/* a number carries its unit inside the box: "100 mil", "1.6 mm" */
.ane-sch__inw { position: relative; display: block; min-width: 0; }
.ane-sch__inw > .ane-sch__in { width: 100%; padding-right: 30px; text-align: left; }
.ane-sch__inw > .ane-sch__unit {
  position: absolute;
  top: 0;
  right: 5px;
  bottom: 0;
  display: flex;
  align-items: center;
  font-size: var(--a-fs);
  color: var(--a-text-faded);
  pointer-events: none;
}
.ane-sch__ro {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--a-text);
  font-variant-numeric: tabular-nums;
  unicode-bidi: plaintext;
}
.ane-sch__pane--props input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  flex: none;
  width: 13px;
  height: 13px;
  margin: 0;
  border: 1px solid var(--a-field-border);
  border-radius: 0;
  background: var(--a-field) center / 9px 9px no-repeat;
  vertical-align: middle;
  cursor: pointer;
}
.ane-sch__pane--props input[type="checkbox"]:checked {
  background-color: var(--a-btn-pri);
  border-color: var(--a-btn-pri-edge);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='9' viewBox='0 0 9 9'%3E%3Cpath d='M1 4.6l2.3 2.3L8 1.8' fill='none' stroke='%23F4F7F5' stroke-width='1.6'/%3E%3C/svg%3E");
}
.ane-sch[data-theme="light"] .ane-sch__pane--props input[type="checkbox"]:checked {
  background-color: var(--a-btn-pri);
  border-color: var(--a-btn-pri-edge);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='9' viewBox='0 0 9 9'%3E%3Cpath d='M1 4.6l2.3 2.3L8 1.8' fill='none' stroke='%23F4F7F5' stroke-width='1.6'/%3E%3C/svg%3E");
}
.ane-sch__pane--props input[type="checkbox"]:focus-visible { outline: 2px solid var(--a-focus); outline-offset: 0; }

/* ---- buttons in the panel: the 22px push buttons ---- */
.ane-sch__pane--props .ane-sch__wide,
.ane-sch__pane--props .ane-sch__pact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 22px;
  min-width: 64px;
  margin: 0;
  padding: 0 10px;
  border: 1px solid var(--a-btn-border);
  border-radius: var(--a-r-ctl);
  background: var(--a-btn-top);
  color: var(--a-btn-text);
  font: 400 var(--a-fs)/20px var(--a-font);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: var(--a-trans);
}
.ane-sch__pane--props .ane-sch__wide > span,
.ane-sch__pane--props .ane-sch__pact > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ane-sch__pane--props .ane-sch__wide .ane-sch-i { flex: none; width: 16px; height: 16px; }
.ane-sch__pane--props .ane-sch__wide:hover,
.ane-sch__pane--props .ane-sch__pact:hover {
  background: var(--a-btn-hot-top);
  border-color: var(--a-btn-border);
  color: var(--a-btn-text);
}
.ane-sch[data-theme="light"] .ane-sch__pane--props .ane-sch__wide:hover,
.ane-sch[data-theme="light"] .ane-sch__pane--props .ane-sch__pact:hover { border-color: var(--a-text-faded); }
.ane-sch__pane--props .ane-sch__wide:active,
.ane-sch__pane--props .ane-sch__pact:active { background: var(--a-press); box-shadow: none; }
.ane-sch__pane--props .ane-sch__wide[disabled],
.ane-sch__pane--props .ane-sch__pact[disabled] { opacity: .45; cursor: default; }
.ane-sch__pane--props .ane-sch__wide--acc,
.ane-sch__pane--props .ane-sch__wide--acc:hover { border-color: var(--a-acc); }
.ane-sch__pane--props .ane-sch__wide--full { width: 100%; margin-top: 4px; }
.ane-sch__pane--props .ane-sch__row:not(.ane-sch__field) { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 4px 0 2px; }
.ane-sch__pane--props .ane-sch__row:not(.ane-sch__field) > .ane-sch__wide { min-width: 0; }

/* ---- Rotate, Mirror, Duplicate, Delete: the last region, two to a row ---- */
.ane-sch__acts-g .ane-sch__wide { justify-content: flex-start; gap: 6px; }

/* ---- Pins, a region: a grid ---- */
.ane-sch__sec-b > .ane-sch__pins { margin: 2px -8px 0; border: 0; border-top: 1px solid var(--a-border-in); }
.ane-sch__pane--props .ane-sch__pins table { table-layout: fixed; }
.ane-sch__pins-n { width: 40px; }
.ane-sch__pane--props .ane-sch__pins th {
  height: 24px;
  padding: 0 6px;
  border-bottom: 1px solid var(--a-border);
  border-inline-end: 1px solid var(--a-border-in);
  background: var(--a-header);
  color: var(--a-text);
  font-weight: 600;
  white-space: nowrap;
}
.ane-sch__pane--props .ane-sch__pins td {
  height: 24px;
  padding: 0 6px;
  border-top: 0;
  border-bottom: 1px solid var(--a-border-in);
  color: var(--a-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ane-sch__pane--props .ane-sch__pins tbody tr:hover td { background: var(--a-hover); }

/* ---- Pins: a transistor's pin order in its package, the pins in a row as seen from the front ---- */
.ane-sch__qpin { display: grid; gap: 6px; margin: 4px 0 8px; padding: 8px; border: 1px solid var(--a-border-in); border-radius: var(--a-r-ctl); background: var(--a-plain); }
.ane-sch__qpin[data-st="split"], .ane-sch__qpin[data-st="unknown"] { border-color: color-mix(in srgb, var(--sch-warn) 55%, var(--a-border-in)); }
.ane-sch__qpin-h { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ane-sch__qpin-t { font-size: var(--a-fs); font-weight: 600; line-height: 18px; color: var(--a-text); white-space: nowrap; }
.ane-sch__qpin-pkg { padding: 0 5px; border: 1px solid var(--a-border-in); border-radius: var(--a-r-ctl); font-size: var(--a-fs-sm); line-height: 16px; color: var(--a-text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ane-sch__qpin-tag { display: inline-flex; align-items: center; gap: 4px; margin-inline-start: auto; padding: 0 6px; border-radius: var(--a-r-ctl); background: var(--a-sel-2); color: var(--a-acc-text); font-size: var(--a-fs-sm); line-height: 18px; white-space: nowrap; }
.ane-sch__qpin-tag .ane-sch-i { flex: none; }
.ane-sch__qpin[data-st="default"] .ane-sch__qpin-tag, .ane-sch__qpin[data-st="hand"] .ane-sch__qpin-tag { background: transparent; color: var(--a-text-faded); box-shadow: inset 0 0 0 1px var(--a-border-in); }
.ane-sch__qpin[data-st="split"] .ane-sch__qpin-tag, .ane-sch__qpin[data-st="unknown"] .ane-sch__qpin-tag { background: var(--sch-warn-soft); color: var(--sch-warn); }
.ane-sch__qpin-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; }
.ane-sch__qpin-pad { display: grid; grid-template-columns: auto auto; justify-content: space-between; align-items: baseline; column-gap: 4px; min-width: 0; padding: 4px 6px 5px; border: 1px solid var(--a-border-in); border-radius: var(--a-r-ctl); background: var(--a-header); }
.ane-sch__qpin-n { font-size: 15px; font-weight: 600; line-height: 18px; color: var(--a-text); font-variant-numeric: tabular-nums; }
.ane-sch__qpin-l { font-size: var(--a-fs); font-weight: 600; line-height: 18px; color: var(--a-acc-text); }
.ane-sch__qpin-w { grid-column: 1 / -1; overflow: hidden; font-size: var(--a-fs-sm); line-height: 14px; color: var(--a-text-faded); white-space: nowrap; text-overflow: ellipsis; }
.ane-sch__qpin-pad.is-tab { border-style: dashed; }
/* an order the tool cannot vouch for: the pads it will use, drawn open, not as a fact */
.ane-sch__qpin-row.is-open .ane-sch__qpin-pad { border-style: dashed; background: transparent; }
.ane-sch__qpin-row.is-open .ane-sch__qpin-l { color: var(--a-text-faded); }
.ane-sch__qpin-mk { margin: 2px 0 -2px; font-size: var(--a-fs-sm); font-weight: 600; line-height: 16px; color: var(--a-text); }
.ane-sch__qpin-s { margin: 0; font-size: var(--a-fs-sm); line-height: 16px; color: var(--a-text-faded); }
/* the source line: the document, and the link to it at the line's end */
.ane-sch__qpin-s.is-src { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.ane-sch__qpin[data-st="split"] .ane-sch__qpin-s, .ane-sch__qpin[data-st="unknown"] .ane-sch__qpin-s { color: var(--a-text); }
.ane-sch__qpin-a { display: inline-flex; align-items: center; gap: 4px; margin-inline-start: auto; color: var(--a-acc-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; white-space: nowrap; }
.ane-sch__qpin-a:hover { text-decoration-thickness: 2px; }
.ane-sch__qpin-a:focus-visible { outline: 2px solid var(--a-focus); outline-offset: 2px; border-radius: 2px; }
.ane-sch__qpin-f { margin: 0; font-size: var(--a-fs-sm); line-height: 16px; color: var(--a-text-faded); }

/* ---- the document's keys, as a plain two column list ---- */
.ane-sch__pane--props .ane-sch__blank { padding: 2px 0; }
.ane-sch__pane--props .ane-sch__blank-t { margin: 2px 0; font-size: var(--a-fs); font-weight: 600; color: var(--a-text); }
.ane-sch__pane--props .ane-sch__blank-s { margin: 2px 0 4px; font-size: var(--a-fs); line-height: 16px; color: var(--a-text-faded); }
.ane-sch__pane--props .ane-sch__keys { gap: 0; margin: 4px 0 6px; }
.ane-sch__pane--props .ane-sch__keys li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  min-height: 20px;
  border-bottom: 1px solid var(--a-border-in);
  color: var(--a-text);
}
.ane-sch__pane--props .ane-sch__keys li > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- Models: the three views ---- */
.ane-sch__sec-b > .ane-sch__insp { margin: 4px 0; }
.ane-sch__sec-b > .ane-sch__insp > .ane-sch__seg { margin-bottom: 0; }
.ane-sch__sec-b .ane-sch__insp-stage { margin-top: 4px; border: 1px solid var(--a-border); border-radius: 0; }
.ane-sch__sec-b .ane-sch__insp-v { height: 152px; }
.ane-sch__sec-b .ane-sch__insp-cv { height: 152px; }
.ane-sch__sec-b .ane-sch__insp-hint { margin: 3px 0 0; color: var(--a-text-faded); }
.ane-sch__sec-b > .ane-sch__insp-fold { margin: 2px 0; }
.ane-sch__sec-b > .ane-sch__insp-fold > summary { padding: 2px 0; font-weight: 400; color: var(--a-text); line-height: 18px; }
.ane-sch__sec-b .ane-sch__insp-tbl th { height: 20px; padding: 0 6px; background: var(--a-header); color: var(--a-text); font-size: var(--a-fs); border-bottom: 1px solid var(--a-border); }
.ane-sch__sec-b .ane-sch__insp-tbl td { height: 20px; padding: 0 6px; border-bottom: 1px solid var(--a-border-in); }
.ane-sch__sec-b .ane-sch__insp-warn,
.ane-sch__sec-b .ane-sch__insp-note { margin: 4px 0; padding: 4px 8px; border-radius: 0; }

/* ---- Supply Chain: name / value rows, 22px buttons ---- */
.ane-sch__sec-b > .ane-sch__insp-buy { margin: 0; }
.ane-sch__sec-b > .ane-sch__insp-buy .ane-sch__insp-buy-b > .ane-sch__cat-h:first-child { display: none; }
.ane-sch__sec-b .ane-sch__insp-dl {
  grid-template-columns: 40% minmax(0, 1fr);
  gap: 0 6px;
  align-items: baseline;
  margin: 2px 0 0;
}
.ane-sch__sec-b .ane-sch__insp-dl dt,
.ane-sch__sec-b .ane-sch__insp-dl dd { min-height: 20px; padding: 2px 0; line-height: 16px; }
.ane-sch__sec-b .ane-sch__insp-dl dt { color: var(--a-text-faded); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ane-sch__sec-b .ane-sch__insp-dl dd { color: var(--a-text); }
.ane-sch__sec-b .ane-sch__offers-h { margin: 6px 0 2px; }
.ane-sch__sec-b .ane-sch__offers { border-radius: 0; }
.ane-sch__pane--props .ane-sch__partbox {
  display: grid;
  grid-template-columns: 40% minmax(0, 1fr);
  column-gap: 6px;
  align-items: center;
  margin: 6px 0 0;
  padding: 4px 0 0;
  border: 0;
  border-top: 1px solid var(--a-border-in);
  border-radius: 0;
  background: transparent;
}
.ane-sch__pane--props .ane-sch__partbox > p { min-width: 0; margin: 0; min-height: 20px; line-height: 20px; }
.ane-sch__pane--props .ane-sch__partbox .ane-sch__lab { margin: 0; line-height: 20px; }
.ane-sch__pane--props .ane-sch__partbox .ane-sch__pn,
.ane-sch__pane--props .ane-sch__partbox .ane-sch__pmfr {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: normal;
  font-size: var(--a-fs);
  font-weight: 400;
  color: var(--a-text);
  unicode-bidi: plaintext;
}
.ane-sch__pane--props .ane-sch__partbox .ane-sch__pmeta,
.ane-sch__pane--props .ane-sch__partbox .ane-sch__blank-s,
.ane-sch__pane--props .ane-sch__partbox .ane-sch__pacts { grid-column: 1 / -1; }
.ane-sch__pane--props .ane-sch__partbox .ane-sch__pmeta { display: flex; justify-content: space-between; gap: 8px; font-size: var(--a-fs); }
.ane-sch__pane--props .ane-sch__partbox .ane-sch__pstock { color: var(--a-text); }
.ane-sch__pane--props .ane-sch__partbox .ane-sch__pstock.is-out { color: var(--a-err); }
.ane-sch__pane--props .ane-sch__partbox .ane-sch__blank-s { min-height: 0; margin: 0; line-height: 16px; font-size: var(--a-fs-sm); }
.ane-sch__pane--props .ane-sch__pacts { display: flex; gap: 4px; margin: 4px 0 2px; }
.ane-sch__pane--props .ane-sch__pacts > .ane-sch__pact { flex: 1 1 0; min-width: 0; }

/* ---- Application Circuit: the region names it, so its own heading steps aside ---- */
.ane-sch__sec-b > .ane-sch__apps-host > .ane-sch__apps { margin-top: 0; }
.ane-sch__sec-b > .ane-sch__apps-host > .ane-sch__apps > .ane-sch__cat-h:first-child { display: none; }

/* ---- Simulation: the region is the fold; its rows are name / value rows ---- */
.ane-sch__sec-b > .ane-sch__simp { margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.ane-sch__sec-b > .ane-sch__simp > .ane-sch__simp-s { display: none; }
.ane-sch__sec-b > .ane-sch__simp > :not(summary) { margin-inline: 0; }
.ane-sch__sec-b > .ane-sch__simp > :last-child { margin-bottom: 0; }
.ane-sch__sec-b > .ane-sch__simp > .ane-sch__simp-src { margin: 2px 0 4px; color: var(--a-text-faded); }
.ane-sch__sec-b .ane-sch__simpf {
  display: grid;
  grid-template-columns: 40% minmax(0, 1fr);
  column-gap: 6px;
  align-items: center;
  min-height: 24px;
  margin: 0;
}
.ane-sch__sec-b .ane-sch__simf-l { min-width: 0; margin: 0; font-size: var(--a-fs); color: var(--a-text-faded); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ane-sch__sec-b .ane-sch__simf-r { min-width: 0; gap: 4px; }
.ane-sch__sec-b .ane-sch__simf-h { grid-column: 1 / -1; margin: 0 0 4px; color: var(--a-text-faded); }
.ane-sch__sec-b .ane-sch__simreset { width: 20px; height: 20px; border-radius: var(--a-r-ctl); }
.ane-sch__sec-b .ane-sch__simp-adv,
.ane-sch__sec-b .ane-sch__simp-m,
.ane-sch__sec-b .ane-sch__simpins { margin-top: 2px; padding-top: 2px; border-top-color: var(--a-border-in); }
.ane-sch__sec-b .ane-sch__simp-adv > summary,
.ane-sch__sec-b .ane-sch__simp-m > summary,
.ane-sch__sec-b .ane-sch__simpins > summary { margin: 0; min-height: 20px; line-height: 20px; color: var(--a-text); }

/* ---- Design Block: flat, its buttons in one 22px row ---- */
.ane-sch__pane--props .ane-sch__blk {
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
  margin: 2px 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.ane-sch__pane--props .ane-sch__blk-k { color: var(--a-text-faded); }
.ane-sch__pane--props .ane-sch__blk-t { color: var(--a-text); }
.ane-sch__pane--props .ane-sch__blk-s { color: var(--a-text-faded); line-height: 16px; }
.ane-sch__pane--props .ane-sch__blk-w { border-radius: 0; }
.ane-sch__pane--props .ane-sch__blk-a { gap: 4px; margin-top: 4px; flex-wrap: nowrap; }
.ane-sch__pane--props .ane-sch__blk-a .ane-sch__wide { flex: 1 1 0; min-width: 0; }
.ane-sch__pane--props .ane-sch__blk-b { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px; align-items: center; margin-top: 4px; }
.ane-sch__pane--props .ane-sch__blk-b .ane-sch__in { height: 20px; }

/* ---- the board's side, as a two button segment ---- */
.ane-sch__seg--side { flex-wrap: nowrap; margin: 0; }
.ane-sch__seg--side .ane-sch__seg-b { flex: 1 1 0; height: 20px; line-height: 18px; }


/* the panel's other push buttons take the same 22px skin */
.ane-sch__pane--props .ane-sch__acts { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0; }
.ane-sch__pane--props .ane-sch__act {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  flex: 1 1 auto;
  height: 22px;
  min-width: 64px;
  padding: 0 10px;
  border: 1px solid var(--a-btn-border);
  border-radius: var(--a-r-ctl);
  background: var(--a-btn-top);
  color: var(--a-btn-text);
  font: 400 var(--a-fs)/20px var(--a-font);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ane-sch__pane--props .ane-sch__act:hover { background: var(--a-btn-hot-top); border-color: var(--a-btn-border); }
.ane-sch[data-theme="light"] .ane-sch__pane--props .ane-sch__act:hover { border-color: var(--a-text-faded); }
.ane-sch__pane--props .ane-sch__act:active { background: var(--a-press); box-shadow: none; }
.ane-sch__pane--props .ane-sch__act[disabled] { opacity: .45; cursor: default; }
/* the circuit around a part: plain rows, not cards */
.ane-sch__sec-b .ane-sch__apps-list { gap: 0; margin: 4px 0 0; border-top: 1px solid var(--a-border-in); }
.ane-sch__sec-b .ane-sch__apps-i { padding: 4px 0; border: 0; border-bottom: 1px solid var(--a-border-in); border-radius: 0; background: transparent; }
.ane-sch__sec-b .ane-sch__apps-i:hover { background: var(--a-hover); border-color: var(--a-border-in); }
.ane-sch__sec-b .ane-sch__apps-op { margin: 4px 0 0; border: 0; border-radius: 0; background: transparent; }
.ane-sch__sec-b .ane-sch__apps-op > summary { min-height: 20px; padding: 2px 0; border-radius: 0; font-weight: 400; color: var(--a-text); }
.ane-sch__sec-b .ane-sch__apps-op > summary:hover { background: transparent; color: var(--a-text-strong); }
.ane-sch__sec-b .ane-sch__apps-op > *:not(summary) { margin-inline: 0; }
.ane-sch__sec-b .ane-sch__apps-tag { border-radius: var(--a-r-ctl); }
.ane-sch__sec-b .ane-sch__apps-note,
.ane-sch__sec-b .ane-sch__apps-assumed { border-radius: 0; }
/* the simulation region's own buttons follow the same push-button skin */
.ane-sch__pane--props .ane-sch__simbtns { gap: 4px; margin: 2px 0 4px; }
.ane-sch__pane--props .ane-sch__simbtn {
  height: 22px;
  padding: 0 10px;
  border: 1px solid var(--a-btn-border);
  border-radius: var(--a-r-ctl);
  background: var(--a-btn-top);
  color: var(--a-btn-text);
  line-height: 20px;
  white-space: nowrap;
}
.ane-sch__pane--props .ane-sch__simbtn:hover { background: var(--a-btn-hot-top); border-color: var(--a-btn-border); }
.ane-sch__pane--props .ane-sch__simbtn:active { background: var(--a-press); box-shadow: none; }
.ane-sch__pane--props .ane-sch__simbtn--acc,
.ane-sch__pane--props .ane-sch__simbtn--acc:hover { border-color: var(--a-acc); color: var(--a-btn-text); }

/* ================= WP11: controls everywhere (spec 5.13, 5.14) ================= */

/*
 * Every drop-down, outside the Properties panel too: a dark field with
 * a small solid triangle at its end instead of the browser's own.
 */
.ane-sch select.ane-sch__in,
.ane-sch select.ane-sch__ztab-s {
  -webkit-appearance: none;
  appearance: none;
  padding-inline: 4px 16px;
  background-color: var(--a-field);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cpath d='M0.5 2h7L4 6z' fill='%23BBBBBB'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  background-size: 8px 8px;
  text-overflow: ellipsis;
  cursor: pointer;
}
.ane-sch[dir="rtl"] select.ane-sch__in,
.ane-sch[dir="rtl"] select.ane-sch__ztab-s { background-position: left 4px center; }
.ane-sch[data-theme="light"] select.ane-sch__in,
.ane-sch[data-theme="light"] select.ane-sch__ztab-s {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cpath d='M0.5 2h7L4 6z' fill='%235A5A5A'/%3E%3C/svg%3E");
}
.ane-sch select.ane-sch__in option,
.ane-sch select.ane-sch__ztab-s option { background: var(--a-field); color: var(--a-text); }
/* the zone tab's small drop-down: a field like the others */
.ane-sch__ztab-s { height: 22px; border-color: var(--a-field-border); color: var(--a-text); font-size: var(--a-fs); }
.ane-sch__ztab-s:hover { border-color: var(--sch-field-hover); color: var(--a-text); }
/* a field's typed number shows no spinner: the value is typed */
.ane-sch input[type="number"].ane-sch__in { -moz-appearance: textfield; }
.ane-sch input[type="number"].ane-sch__in::-webkit-inner-spin-button,
.ane-sch input[type="number"].ane-sch__in::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.ane-sch__in:focus-visible { outline: 0; border-color: var(--a-focus); box-shadow: inset 0 0 0 1px var(--a-focus); }

/* every tick box: 13px, square, a dark well, the tick drawn in the strong ink */
.ane-sch input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  flex: none;
  width: 13px;
  height: 13px;
  margin: 1px 0 0;
  border: 1px solid var(--a-field-border);
  border-radius: 0;
  background: var(--a-field) center / 9px 9px no-repeat;
  vertical-align: middle;
  cursor: pointer;
}
.ane-sch input[type="checkbox"]:hover { border-color: var(--sch-field-hover); }
.ane-sch input[type="checkbox"]:checked {
  background-color: var(--a-btn-pri);
  border-color: var(--a-btn-pri-edge);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='9' viewBox='0 0 9 9'%3E%3Cpath d='M1 4.6l2.3 2.3L8 1.8' fill='none' stroke='%23F4F7F5' stroke-width='1.6'/%3E%3C/svg%3E");
}
.ane-sch[data-theme="light"] input[type="checkbox"]:checked {
  background-color: var(--a-btn-pri);
  border-color: var(--a-btn-pri-edge);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='9' viewBox='0 0 9 9'%3E%3Cpath d='M1 4.6l2.3 2.3L8 1.8' fill='none' stroke='%23F4F7F5' stroke-width='1.6'/%3E%3C/svg%3E");
}
.ane-sch input[type="checkbox"]:disabled { background-color: var(--a-field-dis); cursor: default; }
.ane-sch input[type="checkbox"]:focus-visible { outline: 2px solid var(--a-focus); outline-offset: 0; }
.ane-sch input[type="radio"] { accent-color: var(--a-acc); }
.ane-sch[data-theme="light"] input[type="radio"] { accent-color: var(--a-acc-strong); }

/* a touch screen keeps buttons a finger can hit, as before (spec 10) */
@media (pointer: coarse) {
  .ane-sch__wide, .ane-sch__act, .ane-sch__pact, .ane-sch__go, .ane-sch__simbtn { min-height: 36px; }
  .ane-sch__ib, .ane-sch__simreset, .ane-sch__simlib-x { width: 36px; height: 36px; }
}

/* ---- a peripheral in Properties: what it has to be, and whether a part was found ---- */
.ane-sch__peri { display: grid; gap: 2px; padding: 4px 0 6px; border-bottom: 1px solid var(--a-border-in); margin-bottom: 4px; }
.ane-sch__peri p { margin: 0; }
.ane-sch__peri-s { color: var(--a-text); font-variant-numeric: tabular-nums; }
.ane-sch__peri-st { color: var(--a-text-faded); }
.ane-sch__peri-st.is-ok { color: var(--a-text); }
.ane-sch__peri-st.is-ok::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-inline-end: 6px; border-radius: 50%; background: var(--a-acc); vertical-align: 1px; }
.ane-sch__peri-st.is-none { color: var(--sch-warn); }
.ane-sch__peri-unv { color: var(--sch-warn); font-size: var(--a-fs-sm); line-height: 15px; }
.ane-sch__peri .ane-sch__pacts { margin-top: 4px; }
@media (prefers-reduced-motion: reduce) {
  .ane-sch__pv-apps, .ane-sch__part-apps, .ane-sch__erc-retry { transition: none; }
}

/* Help > About: version, maker, credits and the trademark notice */
.ane-sch__dlg--about { width: min(440px, calc(100vw - 32px)); }
.ane-sch__about p { margin: 0 0 10px; font-size: var(--a-fs); line-height: 18px; color: var(--a-text); overflow-wrap: anywhere; }
.ane-sch__about-v { font-weight: 600; color: var(--a-text-strong); }
.ane-sch__about-tail { white-space: nowrap; }
.ane-sch__about-a { color: var(--a-acc-text); text-underline-offset: 2px; white-space: nowrap; }
.ane-sch__about-a:hover { color: var(--a-text-strong); }
.ane-sch__about-tm { margin-bottom: 0; color: var(--a-text-faded); font-size: var(--a-fs-sm); line-height: 16px; }
/* what the tool is and is not, and the site's legal pages (About, Your data, Outputs, the shop) */
.ane-sch__about-disc { margin: 0 0 8px; font-size: var(--a-fs-sm); line-height: 1.45; color: var(--sch-muted); }
.ane-sch__legal { margin: 0 0 8px; font-size: var(--a-fs-sm); line-height: 16px; }
.ane-sch__legal-a, .ane-enc__disc a, .ane-mech__disc a, .ane-sch__rev-notice a, .ane-sch__out-legal a { color: var(--a-acc-text); text-decoration: underline; text-underline-offset: 2px; }
.ane-sch__legal-a:hover, .ane-enc__disc a:hover, .ane-mech__disc a:hover, .ane-sch__rev-notice a:hover, .ane-sch__out-legal a:hover { color: var(--a-text-strong); }
.ane-sch__legal-sep { color: var(--a-text-faded); }
.ane-sch__rev-notice { margin: 0 0 8px; }
.ane-sch__out-legal { margin: -4px 0 8px; }
.ane-enc__disc, .ane-mech__disc { margin: 4px 0 8px; font-size: var(--a-fs-sm); line-height: 1.45; color: var(--sch-muted); }
.ane-enc__code, .ane-mech__code { margin: 4px 0 8px; font-size: var(--a-fs-sm); line-height: 1.45; color: var(--sch-muted); overflow-wrap: anywhere; }
.ane-enc__code code, .ane-mech__code code { font-family: var(--a-font-mono); font-size: var(--a-fs-sm); color: var(--a-text-strong); letter-spacing: .03em; }
.ane-enc__restore, .ane-mech__restore { margin: 6px 0 0; }
.ane-enc__restore-b, .ane-mech__restore-b { font-size: var(--a-fs-sm); }
.ane-enc__restore-row, .ane-mech__restore-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
.ane-enc__restore-row .ane-sch__in, .ane-mech__restore-row .ane-sch__in { flex: 1 1 200px; min-width: 0; font-family: var(--a-font-mono); }
.ane-enc__restore-row .ane-sch__wide, .ane-mech__restore-row .ane-sch__wide { width: auto; }
.ane-enc__restore-row .ane-sch__dlg-say, .ane-mech__restore-row .ane-sch__dlg-say { flex-basis: 100%; margin: 0; }

/* Help > How the simulation works */
.ane-sch__dlg--simhelp { width: min(560px, calc(100vw - 32px)); }
.ane-sch__simhelp p, .ane-sch__simhelp li { margin: 0 0 8px; font-size: var(--a-fs); line-height: 18px; color: var(--a-text); overflow-wrap: anywhere; }
.ane-sch__simhelp-h { margin: 14px 0 6px; font-size: var(--a-fs); line-height: 18px; font-weight: 600; color: var(--a-text-strong); }
.ane-sch__simhelp-h:first-child { margin-top: 0; }
.ane-sch__simhelp-l { margin: 0 0 4px; padding: 0; list-style: none; }
.ane-sch__simhelp-l li { margin-bottom: 6px; }
.ane-sch__simhelp-l strong { font-weight: 600; color: var(--a-text-strong); }
.ane-sch__simhelp-end { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--a-border-in); color: var(--a-text-faded); }
.ane-sch__simhelplink { margin: -4px 0 8px; }
.ane-sch__simforced { margin: 0 0 8px; }
.ane-sch__simres:focus { outline: none; }
.ane-sch__simres:focus-visible { outline: 2px solid var(--a-focus); outline-offset: 2px; border-radius: var(--a-r-ctl); }

/* a phone draws the 24-grid icons at 20px where a finger presses: toolbar, drawing tools, dock header (menus keep 16) */
@media (max-width: 560px) {
  .ane-sch :is(.ane-sch__bar, .ane-sch__abar, .ane-sch__cap) button > .ane-sch-i--c { width: 20px; height: 20px; }
}

/* ================= ID5: phone and touch sizes, one block per component ================= */

/* a finger gets 40px: dock tabs and header actions, the Command Status chip, the drawing tools */
@media (max-width: 900px), (pointer: coarse) {
  .ane-sch :is(.ane-sch__dockh [role="tab"], .ane-sch__dockh-acts .ane-sch__dock-b, .ane-sch .ane-sch__hint,
    .ane-sch__abar .ane-sch__b) { min-height: 40px; }
  .ane-sch :is(.ane-sch__dockh-acts .ane-sch__dock-b, .ane-sch__abar .ane-sch__b) { min-width: 40px; }
  .ane-sch__dockh { height: 40px; }
  .ane-sch__tab, .ane-sch__ptab { line-height: 40px; }
  .ane-sch .ane-sch__hint, .ane-sch.is-board .ane-sch__hint { height: 40px; line-height: 38px; }
  .ane-sch__ab-more { min-width: 20px; min-height: 36px; }
}
/* a touch screen wider than a phone: the same bar, with finger-sized buttons */
@media (min-width: 901px) and (pointer: coarse) {
  .ane-sch__abar { width: 48px; }
  .ane-sch__abar .ane-sch__b { width: 40px; height: 40px; }
  .ane-sch__ab-more { width: 40px; height: 24px; min-height: 0; border-radius: 0 0 var(--a-r-ctl) var(--a-r-ctl); }
  .ane-sch__abar-sep { width: 24px; }
  .ane-sch .ane-sch__hint, .ane-sch.is-board .ane-sch__hint { bottom: 8px; }
  .ane-sch__toasts, .ane-sch.is-board .ane-sch__toasts { bottom: 56px; }
}
@media (max-width: 900px) {
  /* the bar turns into a row docked along the canvas's bottom edge; the tool in hand carries its bar on top */
  .ane-sch .ane-sch__abar, .ane-sch.is-board .ane-sch__abar {
    top: auto;
    bottom: 0;
    inset-inline: 0;
    width: auto;
    height: 48px;
    flex-direction: row;
    align-items: center;
    padding: 3px 4px;
    border-width: 1px 0 0;
    border-radius: 0;
    box-shadow: none;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .ane-sch__abar::-webkit-scrollbar { display: none; }
  .ane-sch__abar .ane-sch__grp { flex-direction: row; flex: none; margin-inline: auto; gap: 2px; }
  .ane-sch__abar .ane-sch__b { width: 40px; height: 40px; }
  .ane-sch__abar .ane-sch__b.is-on,
  .ane-sch[dir="rtl"] .ane-sch__abar .ane-sch__b.is-on { box-shadow: inset 0 2px 0 var(--a-hi-edge); }
  .ane-sch__ab-more {
    width: 20px;
    height: 40px;
    margin: 0 0 0 -2px;
    border-radius: 0 var(--a-r-ctl) var(--a-r-ctl) 0;
  }
  [dir="rtl"] .ane-sch__ab-more { margin: 0 -2px 0 0; border-radius: var(--a-r-ctl) 0 0 var(--a-r-ctl); }
  .ane-sch__ab-more .ane-sch-i { transform: rotate(180deg); }
  .ane-sch__abar-sep { width: 1px; height: 24px; margin: 0 3px; }
  /* the Command Status chip and the toasts sit above the docked bar */
  .ane-sch .ane-sch__hint, .ane-sch.is-board .ane-sch__hint { bottom: 56px; max-width: calc(100% - 24px); }
  .ane-sch__toasts, .ane-sch.is-board .ane-sch__toasts { bottom: 104px; }
  /* the empty sheet's card sits at the top so the toasts never cover its buttons */
  .ane-sch__empty { place-items: start center; }
}
@media (max-width: 560px) {
  /* a phone keeps the drawing tools themselves; placing and aligning are in the menus, and press-and-hold still opens a flyout */
  .ane-sch__ab-more,
  .ane-sch__abar [data-act^="ab-"],
  .ane-sch__abar-sep--ab { display: none; }
}

/* ================= ID7: Components, Properties, Projects, Checks ================= */

/* Properties, Layers region: a swatch, the name, and the Show checkbox */
.ane-sch__vis-row { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; align-items: center; column-gap: 8px; min-height: 26px; margin: 0 -8px; padding: 1px 8px; }
.ane-sch__vis-sw { display: block; width: 12px; height: 12px; border-radius: var(--a-r-chip); box-shadow: inset 0 0 0 1px var(--a-layer-border); }
.ane-sch__vis-n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--a-text); }
.ane-sch__vis-row:hover { background: var(--a-hover); }
.ane-sch__sec-tag--n { background: transparent; color: var(--a-text-faded); font-variant-numeric: tabular-nums; }

/* a finger gets 40px: library chips and select, the view buttons, the Properties search, tree rows and findings */
@media (max-width: 900px), (pointer: coarse) {
  .ane-sch :is(.ane-sch__libchip, .ane-sch__libsel, .ane-sch__palv-b, .ane-sch__psearch-b, .ane-sch__pj-a) { min-height: 40px; }
  .ane-sch :is(.ane-sch__palv-b, .ane-sch__psearch-b, .ane-sch__pj-a) { min-width: 40px; }
  .ane-sch__side-head .ane-sch__search { height: 40px; }
  .ane-sch__libchip { line-height: 38px; padding: 0 12px; }
  .ane-sch__libsel { line-height: 38px; }
  .ane-sch__ptitle { height: 40px; }
  .ane-sch__pj-acts { height: 48px; }
  .ane-sch__tree-r, .ane-sch__tree-g, .ane-sch__tree-i { height: 40px; }
  .ane-sch__palette .ane-sch__cat-h { height: 32px; line-height: 30px; }
  .ane-sch.is-pal-list .ane-sch__part, .ane-sch__tpl-b { height: 40px; }
  .ane-sch__pal-p { min-height: 40px; }
  .ane-sch__sec-h { height: 36px; line-height: 34px; }
  .ane-sch__pane--props .ane-sch__field, .ane-sch__vis-row { min-height: 40px; }
  .ane-sch__pane--props .ane-sch__in { height: 32px; }
  .ane-sch__erc-b { min-height: 40px; }
  .ane-sch__vis-c { width: 20px; height: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .ane-sch__libchip, .ane-sch__psearch-b { transition: none; }
}

/* ================= ID9: the board's layer control, phone and touch sizes ================= */

/* a finger gets 40px: the popover's rows and their eyes */
@media (max-width: 900px), (pointer: coarse) {
  .ane-sch__layer { height: 40px; }
  .ane-sch__layer-e { width: 40px; height: 40px; }
  .ane-sch__lpop-h { min-height: 40px; }
  .ane-sch__ls { height: 36px; padding: 0 8px; }
}
/* a touch screen wider than a phone: the same vertical bar, finger-sized */
@media (min-width: 901px) and (pointer: coarse) {
  .ane-sch__lchip { width: 40px; height: 40px; font-size: 13px; }
  .ane-sch__lchip-more { width: 40px; height: 24px; }
  .ane-sch__layers .ane-sch__seg-b { width: 40px; height: 40px; font-size: 12px; line-height: 38px; }
}
@media (max-width: 900px) {
  /* the group ends the row and stays in sight while the tools scroll under it */
  .ane-sch__layers {
    flex: none;
    flex-direction: row;
    align-items: center;
    margin: 0;
    padding: 0 0 0 4px;
    padding-inline: 4px 0;
    border-top: 0;
    border-inline-start: 1px solid var(--a-sep);
    position: sticky;
    inset-inline-end: 0;
    z-index: 2;
    background: var(--a-abar-bg);
  }
  .ane-sch.is-3d .ane-sch__layers { margin-inline: auto; border-inline-start: 0; padding-inline: 0; position: static; }
  .ane-sch__lchip {
    width: auto;
    min-width: 40px;
    max-width: 96px;
    height: 40px;
    padding: 0 8px;
    gap: 6px;
    font-size: 13px;
  }
  .ane-sch__lchip::after {
    content: attr(data-short);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
    font-weight: 600;
  }
  .ane-sch__lchip-more { width: 20px; height: 40px; border-radius: 0 var(--a-r-ctl) var(--a-r-ctl) 0; }
  [dir="rtl"] .ane-sch__lchip-more { border-radius: var(--a-r-ctl) 0 0 var(--a-r-ctl); }
  /* the popover opens upward from the row, so the chevron points up */
  .ane-sch__lchip-more .ane-sch-i { transform: rotate(180deg); }
  .ane-sch__layers > .ane-sch__seg { flex-direction: row; margin: 0 0 0 4px; margin-inline: 4px 0; }
  .ane-sch__layers .ane-sch__seg-b { width: 40px; height: 40px; line-height: 38px; font-size: 12px; }
  .ane-sch__layers .ane-sch__seg-b + .ane-sch__seg-b { margin-top: 0; margin-inline-start: -1px; }
  .ane-sch__layers .ane-sch__seg-b:first-child { border-radius: var(--a-r-ctl) 0 0 var(--a-r-ctl); }
  .ane-sch__layers .ane-sch__seg-b:last-child { border-radius: 0 var(--a-r-ctl) var(--a-r-ctl) 0; }
  [dir="rtl"] .ane-sch__layers .ane-sch__seg-b:first-child { border-radius: 0 var(--a-r-ctl) var(--a-r-ctl) 0; }
  [dir="rtl"] .ane-sch__layers .ane-sch__seg-b:last-child { border-radius: var(--a-r-ctl) 0 0 var(--a-r-ctl); }
  .ane-sch__layers .ane-sch__seg-b.is-on,
  .ane-sch__layers .ane-sch__seg-b.is-on:hover,
  .ane-sch[dir="rtl"] .ane-sch__layers .ane-sch__seg-b.is-on,
  .ane-sch[dir="rtl"] .ane-sch__layers .ane-sch__seg-b.is-on:hover { box-shadow: inset 0 -2px 0 var(--a-bar); }
}

/* ---------- logic waveforms ---------- */

/* time reads left to right in both languages, like the plots (the scroll area and its axis); the name column sits on the inline-start side, so on the right in Hebrew; the interface's own colours, so it follows the theme */
.ane-sch__wv {
  margin: 10px 0 6px;
  border: 1px solid var(--sch-line);
  border-radius: var(--sch-r-sm);
  background: var(--a-field);
  color: var(--a-text);
  overflow: hidden;
}
.ane-sch__wv:focus-visible { outline: 2px solid var(--a-focus); outline-offset: 2px; }
.ane-sch__wv-bar {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px 4px;
  border-bottom: 1px solid var(--sch-line);
  background: var(--a-field);
}
.ane-sch__wv-bar .ane-sch__simreset { color: var(--a-text-faded); }
.ane-sch__wv-bar .ane-sch__simreset:hover { background: var(--a-header); color: var(--a-text); }
.ane-sch__wv-leg {
  margin-inline-start: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding-inline: 6px;
  font-size: var(--a-fs-sm);
  color: var(--a-text-faded);
}
.ane-sch__wv-sw { display: inline-block; width: 14px; height: 10px; border: 1px solid var(--a-err); border-radius: 2px; background: color-mix(in srgb, var(--a-err) 35%, transparent); }
.ane-sch__wv-sw + .ane-sch__wv-sw, .ane-sch__wv-sw.is-z { margin-inline-start: 4px; }
.ane-sch__wv-sw.is-z { height: 0; width: 16px; border: 0; border-top: 2px dashed var(--a-text-faded); border-radius: 0; background: none; }
.ane-sch__wv-body { display: flex; align-items: stretch; min-width: 0; position: relative; }
.ane-sch__wv-labels { flex: none; width: 72px; border-inline-end: 1px solid var(--sch-line); background: var(--a-field); position: relative; z-index: 1; }
.ane-sch__wv-labels::before { content: ""; display: block; height: 22px; border-bottom: 1px solid var(--sch-line); }
.ane-sch__wv-lab { display: flex; align-items: center; gap: 2px; padding-inline: 4px; font-size: var(--a-fs-sm); border-bottom: 1px solid var(--sch-line); box-sizing: border-box; overflow: hidden; }
.ane-sch__wv-lab.is-pin { padding-inline-start: 12px; color: var(--a-text-faded); font-size: 11px; }
.ane-sch__wv-lab.is-indent { padding-inline-start: 12px; }
.ane-sch__wv-n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 11px; direction: ltr; unicode-bidi: isolate; }
.ane-sch__wv-tg {
  display: grid; place-items: center; flex: none; width: 16px; height: 16px; padding: 0;
  border: 0; border-radius: 2px; background: transparent; color: var(--a-text-faded); cursor: pointer;
}
.ane-sch__wv-tg svg { transform: rotate(-90deg); transition: transform .12s ease-out; }
.ane-sch__wv-tg[aria-expanded="true"] svg { transform: rotate(0deg); }
.ane-sch__wv-tg:hover { background: var(--a-header); }
.ane-sch__wv-tg:focus-visible { outline: 2px solid var(--a-focus); outline-offset: 0; }
.ane-sch__wv-scroll { direction: ltr; flex: 1 1 0; min-width: 0; overflow-x: auto; overflow-y: hidden; touch-action: pan-x pinch-zoom; cursor: crosshair; }
.ane-sch__wv-svg { direction: ltr; display: block; max-width: none; }
.ane-sch__wvmix { display: flex; flex-direction: column; gap: 4px; margin: 6px 0; }
.ane-sch__wvmix-r { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ane-sch__wvmix-n { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: var(--a-fs-sm); color: var(--sch-ink-2); direction: ltr; }
.ane-sch__wv-stripw { margin-top: 0; cursor: default; }
.ane-sch__wv-strip { display: block; width: 100%; height: auto; }
.ane-sch__simp-b--placeholder, .ane-sch__simfrom--ph { background: var(--sch-warn-soft); color: var(--sch-warn); }
@media (max-width: 900px), (pointer: coarse) {
  .ane-sch__wv-tg { width: 26px; height: 26px; }
  .ane-sch__wv-labels { width: 86px; }
  .ane-sch__wv-lab { padding-inline: 2px; gap: 0; }
  .ane-sch__wv-n { font-size: 10px; letter-spacing: -.2px; }
}
@media (prefers-reduced-motion: reduce) {
  .ane-sch__wv-tg svg { transition: none; }
}

/* ---- hover help: the card that opens after three seconds on a function ---- */
.ane-sch__help {
  position: fixed;
  z-index: 97;
  width: 300px;
  max-width: calc(100vw - 12px);
  overflow: hidden;
  border: 1px solid var(--a-tip-border);
  border-radius: var(--a-r-pop);
  background: var(--a-menu);
  color: var(--a-text);
  font: 400 var(--a-fs)/var(--a-lh) var(--a-font);
  box-shadow: var(--a-shadow-menu);
  opacity: 0;
  transform: translateY(3px);
  transition: var(--a-pop);
}
.ane-sch__help[hidden] { display: none; }
.ane-sch__help.is-shown { opacity: 1; transform: none; }
.ane-sch__help-clip { background: var(--a-plain); border-bottom: 1px solid var(--a-border-in); line-height: 0; }
.ane-sch__help-svg { display: block; width: 100%; height: auto; }
.ane-sch__help-b { padding: 10px 12px 8px; }
.ane-sch__help h5 { margin: 0 0 4px; color: var(--a-text-strong); font: 600 13px/1.35 var(--a-font); }
.ane-sch__help h5 kbd {
  margin-inline-start: 8px; padding: 0 4px; border-radius: var(--a-r-chip);
  background: var(--a-tip-key-bg); color: var(--a-tip-key); font: 500 11px/16px var(--a-font-mono); white-space: nowrap;
}
.ane-sch__help p { margin: 0 0 6px; color: var(--a-text); }
.ane-sch__help ol { margin: 0 0 6px; padding-inline-start: 18px; color: var(--a-text); }
.ane-sch__help li { margin: 0 0 2px; }
.ane-sch__help .ane-sch__help-n { color: var(--a-text-faded); font-size: 11.5px; }
.ane-sch__help-f {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 5px 12px 7px; border-top: 1px solid var(--a-border-in); color: var(--a-text-faded); font-size: 11px;
}
.ane-sch__help-off {
  padding: 0; border: 0; background: none; color: var(--a-acc-text); font: inherit; cursor: pointer; text-decoration: underline;
}
.ane-sch__help-off:hover { color: var(--a-text-strong); }
/* the scenes: ink and paper follow the theme through the same tokens as the sheet */
.ane-sch__help-svg .stage { fill: var(--a-plain); }
.ane-sch__help-svg .ink { stroke: var(--a-text); stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ane-sch__help-svg .ink.fillp { fill: var(--a-panel); }
.ane-sch__help-svg .ink-t { fill: var(--a-text-faded); font: 500 11px var(--a-font); stroke: none; }
.ane-sch__help-svg .wire { stroke: var(--a-acc); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ane-sch__help-svg .sel { stroke: var(--a-acc); stroke-width: 1.4; stroke-dasharray: 4 3; fill: rgba(3,182,46,.12); }
.ane-sch__help-svg .dim { stroke: var(--a-text-faded); stroke-width: 1; fill: none; stroke-dasharray: 3 3; }
.ane-sch__help-svg .accf { fill: var(--a-acc); stroke: none; }
.ane-sch__help-svg .errf { fill: var(--a-err); stroke: none; }
.ane-sch__help-svg .warnf { fill: var(--a-warn); stroke: none; }
.ane-sch__help-svg .paperf { fill: var(--a-plain); stroke: none; }
.ane-sch__help-svg .pcb { fill: #1c4a36; stroke: #0E1310; stroke-width: 1; }
.ane-sch__help-svg .copper { fill: #c9a24a; stroke: none; }
.ane-sch__help-svg .track { stroke: #d8b45e; stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ane-sch__help-svg .track2 { stroke: #5aa0e0; stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ane-sch__help-svg .cur { fill: #fff; stroke: #111; stroke-width: 1; stroke-linejoin: round; }
@media (prefers-reduced-motion: reduce) { .ane-sch__help { transition: opacity 80ms linear; transform: none; } }

/* Back to the site: a link in the document tools; icon plus words on a wide screen, the icon alone below */
.ane-sch__site-b {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; flex: none; gap: 6px;
  min-width: 32px; height: 32px; padding: 0 8px; box-sizing: border-box;
  border: 1px solid var(--a-btn-border); border-radius: var(--a-r-ctl);
  color: var(--a-text); background: transparent; text-decoration: none;
  font: inherit; font-size: var(--a-fs); font-weight: 400; white-space: nowrap; cursor: pointer;
  transition: var(--a-trans);
}
.ane-sch__site-b:hover { background: var(--a-hover); color: var(--a-text-strong); }
.ane-sch__site-b:focus-visible { outline: 2px solid var(--a-acc); outline-offset: 1px; }
.ane-sch__site-b .ane-sch-i { width: 16px; height: 16px; flex: none; }
@media (max-width: 1100px) {
  .ane-sch__site-b { padding: 0; width: 32px; }
  .ane-sch__site-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 560px) { .ane-sch__site-b { width: 40px; height: 40px; min-width: 40px; } }
@media (min-width: 901px) {
  .ane-sch__site-b { height: 22px; min-width: 22px; }
  .ane-sch__site-b:not(:hover) { border-color: transparent; }
}
@media (min-width: 901px) and (max-width: 1100px) { .ane-sch__site-b { width: 22px; } }

/* The field solver block in the stack-up pane */
.ane-sch__fs { margin: 12px 0 4px; border-top: 1px solid var(--a-border); padding-top: 8px; }
.ane-sch__fs-t { cursor: pointer; font-weight: 600; color: var(--a-text-strong); padding: 4px 0; }
.ane-sch__fs-h { margin: 6px 0; font-size: calc(var(--a-fs) - 1px); color: var(--a-text-faded); line-height: 1.45; }
.ane-sch__fs-c { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 6px 10px; margin: 8px 0; }
.ane-sch__fs-b { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.ane-sch__fs-o { margin-top: 8px; }
.ane-sch__fs-r { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; border-bottom: 1px solid var(--a-border); font-size: var(--a-fs); }
.ane-sch__fs-l { color: var(--a-text); min-width: 0; overflow-wrap: anywhere; }
.ane-sch__fs-v { color: var(--a-text-strong); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ane-sch__fs-cv { display: block; width: 100%; height: auto; margin-top: 8px; border: 1px solid var(--a-border); border-radius: var(--a-r-ctl); background: #07130d; }

/* ---------- the enclosure designer ---------- */
.ane-sch__dlg--enc { width: min(1040px, calc(100vw - 32px)); }
.ane-enc { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.ane-enc__l { position: sticky; top: 0; display: grid; gap: 8px; min-width: 0; }
.ane-enc__pv { position: relative; height: clamp(260px, 46vh, 460px); border: 1px solid var(--a-border-in); background: var(--a-plain); }
.ane-enc__cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
.ane-enc__cv:active { cursor: grabbing; }
.ane-enc__cv:focus-visible { outline: 2px solid var(--sch-acc); outline-offset: -2px; }
.ane-enc__bar { display: flex; flex-wrap: wrap; gap: 4px; }
.ane-enc__bar .ane-sch__wide { flex: 0 0 auto; min-width: 0; }
.ane-enc__bar .ane-sch__wide.is-on { background: var(--a-sel); border-color: var(--a-btn-border); box-shadow: inset 0 -2px 0 var(--a-bar); color: var(--a-sel-text); }
.ane-enc__hint { margin: 0; font-size: var(--a-fs-sm); line-height: 16px; color: var(--a-text-faded); }
.ane-enc__src { display: grid; gap: 4px; margin-top: 8px; padding: 8px 10px; border: 1px solid var(--sch-line); border-inline-start-width: 3px; border-radius: var(--a-r); font-size: var(--a-fs-sm); line-height: 16px; color: var(--sch-muted); }
.ane-enc__src p { margin: 0; }
.ane-enc__src strong { color: var(--a-text, inherit); font-weight: 600; }
.ane-enc__src[data-conf="datasheet"] { border-inline-start-color: var(--sch-ok, #2f9e44); }
.ane-enc__src[data-conf="derived"] { border-inline-start-color: var(--sch-acc); }
.ane-enc__src[data-conf="typical"] { border-inline-start-color: var(--sch-warn, #e8590c); }
.ane-enc__src .ane-enc__note { overflow-wrap: anywhere; }
.ane-enc__ver { display: grid; gap: 6px; margin-top: 8px; padding: 8px 10px; border: 1px solid var(--sch-line); border-inline-start-width: 3px; border-radius: var(--a-r); font-size: var(--a-fs-sm); line-height: 16px; }
.ane-enc__ver[data-ver="todo"] { border-inline-start-color: var(--sch-warn, #e8590c); }
.ane-enc__ver[data-ver="ok"] { border-inline-start-color: var(--sch-ok, #2f9e44); }
.ane-enc__vertxt { margin: 0; color: var(--a-text, inherit); }
.ane-enc__status { margin: 0; min-height: 16px; font-size: var(--a-fs); color: var(--sch-muted); }
.ane-enc__status.is-err { color: var(--sch-err); }
.ane-enc__status.is-busy::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-inline-end: 6px; border: 2px solid var(--sch-line); border-top-color: var(--sch-acc); border-radius: 50%; vertical-align: -1px; animation: ane-enc-spin .8s linear infinite; }
@keyframes ane-enc-spin { to { transform: rotate(360deg); } }
.ane-enc__rep { display: grid; gap: 6px; }
.ane-enc__dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin: 0; font-size: var(--a-fs); }
.ane-enc__dl dt { color: var(--a-text-faded); }
.ane-enc__dl dd { margin: 0; direction: ltr; unicode-bidi: isolate; }
.ane-enc__note { margin: 0; padding: 6px 8px; font-size: var(--a-fs-sm); line-height: 16px; color: var(--sch-note-ink); background: var(--sch-note-bg); border: 1px solid var(--sch-note-line); }
.ane-enc__imp { display: grid; gap: 4px; }
.ane-enc__imp:empty { display: none; }
.ane-enc__nl { margin: 0; padding-inline-start: 18px; font-size: var(--a-fs-sm); line-height: 16px; color: var(--a-text-faded); }
.ane-enc__r { display: grid; gap: 4px; min-width: 0; }
.ane-enc__sec { display: grid; gap: 6px; margin-bottom: 8px; }
.ane-enc__list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--a-border-in); background: var(--a-plain); }
.ane-enc__item, .ane-enc__orow { display: flex; align-items: center; gap: 8px; min-height: 30px; padding: 3px 8px; border-bottom: 1px solid var(--a-border-in); font-size: var(--a-fs); }
.ane-enc__item:last-child { border-bottom: 0; }
.ane-enc__empty { padding: 10px; font-size: var(--a-fs); color: var(--a-text-faded); line-height: 18px; }
.ane-enc__nm, .ane-enc__oref { flex: 1 1 auto; min-width: 0; display: grid; }
.ane-enc__nm b, .ane-enc__oref b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ane-enc__nm em, .ane-enc__oref em { font-style: normal; font-size: var(--a-fs-sm); color: var(--a-text-faded); }
.ane-enc__dims { display: flex; gap: 3px; }
.ane-enc__dims .ane-sch__in { width: 52px; }
.ane-enc__act { display: flex; gap: 2px; }
.ane-enc__sq { flex: 0 0 auto; min-width: 28px; width: 28px; padding: 0; }
.ane-enc__acts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ane-enc__acts .ane-sch__in { width: auto; max-width: 100%; }
.ane-enc__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; }
.ane-enc__f { display: grid; gap: 2px; min-width: 0; }
.ane-enc__f .ane-sch__in { width: 100%; }
.ane-enc__chk { display: flex; align-items: center; gap: 8px; font-size: var(--a-fs); min-height: 24px; }
.ane-enc__orow .ane-sch__in { width: 46%; flex: 0 0 auto; }
.ane-enc__opens { display: grid; gap: 6px; }
.ane-enc__opens > .ane-enc__orow { border: 1px solid var(--a-border-in); background: var(--a-plain); }
.ane-enc__rf { display: grid; gap: 6px; }
.ane-enc__rfv { display: grid; gap: 6px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.ane-enc__fig { margin: 0; display: grid; gap: 2px; min-width: 0; }
.ane-enc__fig figcaption { font-size: var(--a-fs-sm); color: var(--a-text-faded); }
.ane-enc__rfc { width: 100%; height: auto; border: 1px solid var(--a-border-in); background: var(--a-plain); color: var(--a-text); }
.ane-enc__rfc:focus-visible { outline: 2px solid var(--sch-acc-ink, #1971c2); outline-offset: 1px; }
.ane-enc__sub { margin: 8px 0 0; font-size: var(--a-fs); font-weight: 500; }
.ane-enc__shop { display: grid; gap: 6px; }
.ane-enc__paid, .ane-enc__price { margin: 0; font-size: var(--a-fs); }
.ane-enc__paid { color: var(--sch-acc-ink); }
a.ane-sch__wide { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
@media (max-width: 760px) {
  .ane-enc { grid-template-columns: minmax(0, 1fr); }
  .ane-enc__l { position: static; }
  .ane-enc__pv { height: 280px; }
}
@media (prefers-reduced-motion: reduce) { .ane-enc__status.is-busy::before { animation: none; } }

/* ---------- the mechanical studio ---------- */
.ane-sch__dlg--mech { width: min(1320px, calc(100vw - 24px)); }
.ane-mech { display: grid; gap: 8px; min-width: 0; }
.ane-mech__top { display: flex; flex-wrap: wrap; gap: 4px; padding-bottom: 8px; border-bottom: 1px solid var(--a-border); }
.ane-mech__top .ane-sch__wide, .ane-mech__vbar .ane-sch__wide { flex: 0 0 auto; min-width: 0; }
.ane-mech__main { display: grid; grid-template-columns: 232px minmax(0, 1fr) 372px; gap: 12px; align-items: start; }
.ane-mech__tree-col, .ane-mech__view-col, .ane-mech__side-col { display: grid; gap: 6px; min-width: 0; align-content: start; }
.ane-mech__view-col { position: sticky; top: 0; }
.ane-mech__row { display: flex; flex-wrap: wrap; gap: 4px; align-items: end; }
.ane-mech__row--tight { flex-wrap: nowrap; }
.ane-mech__row .ane-sch__in { width: 100%; }
.ane-mech__sq { flex: 1 1 0; min-width: 28px; padding-inline: 0; }
.ane-mech__sq svg { width: 14px; height: 14px; stroke: currentColor; display: block; margin: auto; }
.ane-mech__sq.is-flip svg { transform: rotate(180deg); }
.ane-mech__hint { margin: 0; font-size: var(--a-fs-sm); line-height: 16px; color: var(--a-text-faded); }
.ane-mech__empty { margin: 0; padding: 10px; font-size: var(--a-fs); line-height: 18px; color: var(--a-text-faded); }
.ane-mech__start { display: grid; gap: 6px; align-content: start; }
.ane-mech__start-h { margin: 0 0 2px; font-size: var(--a-fs); font-weight: 600; color: var(--a-text); }
.ane-mech__start-i { display: grid; gap: 2px; width: 100%; padding: 8px 10px; border: 1px solid var(--a-border-in); background: var(--a-plain); color: var(--a-text); font: inherit; text-align: start; cursor: pointer; transition: background-color .12s ease-out, border-color .12s ease-out, transform .12s ease-out; }
.ane-mech__start-i b { font-size: var(--a-fs); font-weight: 600; }
.ane-mech__start-i span { font-size: var(--a-fs-sm); line-height: 16px; color: var(--a-text-faded); }
.ane-mech__start-i:hover { background: var(--a-hover, rgba(0, 0, 0, .04)); border-color: var(--sch-acc); }
.ane-mech__start-i:active { transform: scale(.985); }
.ane-mech__start-i:focus-visible { outline: 2px solid var(--sch-acc); outline-offset: 1px; }
@media (prefers-reduced-motion: reduce) { .ane-mech__start-i { transition: none; } .ane-mech__start-i:active { transform: none; } }
.ane-mech__txt { min-height: 52px; font-family: inherit; }
.ane-mech__txtrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 8px; align-items: start; margin-block: 4px; }
.ane-mech__txtrow .ane-mech__txt { grid-row: span 2; min-height: 56px; resize: vertical; }
.ane-mech__txtrow .ane-mech__txtfol { grid-column: 1 / -1; }
@media (max-width: 640px) { .ane-mech__txtrow { grid-template-columns: minmax(0, 1fr); } .ane-mech__txtrow .ane-mech__txt { grid-row: auto; } }
.ane-mech__swrow { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.ane-mech__colb { width: 22px; height: 22px; padding: 0; border: 1px solid rgba(0, 0, 0, .35); background: #fff; cursor: pointer; transition: transform .12s ease-out, outline-color .12s ease-out; outline: 2px solid transparent; outline-offset: 1px; }
.ane-mech__colb:hover { transform: scale(1.08); }
.ane-mech__colb:active { transform: scale(.94); }
.ane-mech__colb.is-on { outline-color: var(--sch-acc); }
.ane-mech__colb:focus-visible { outline-color: var(--sch-acc); }
.ane-mech__colin { width: 28px; height: 24px; padding: 0; border: 1px solid var(--a-border-in); background: transparent; cursor: pointer; }
.ane-mech__fontbox { gap: 4px; }
.ane-mech__fontbox.is-drop { outline: 2px dashed var(--sch-acc); outline-offset: 2px; }
.ane-mech__fontdrop { opacity: .85; }
.ane-mech__fonts { display: grid; gap: 6px; min-width: min(420px, 82vw); }
.ane-mech__fontlist { list-style: none; margin: 0; padding: 0; max-height: 320px; overflow: auto; border: 1px solid var(--a-border-in); background: var(--a-plain); }
.ane-mech__fontb { display: block; width: 100%; padding: 5px 8px; border: 0; border-bottom: 1px solid var(--a-border-in); background: transparent; color: var(--a-text); font: inherit; font-size: var(--a-fs); text-align: start; cursor: pointer; }
.ane-mech__fontb:hover { background: var(--a-hover, rgba(0, 0, 0, .04)); }
.ane-mech__fontb:focus-visible { outline: 2px solid var(--sch-acc); outline-offset: -2px; }
.ane-mech__chip.is-paint { font-style: italic; }
@media (prefers-reduced-motion: reduce) { .ane-mech__colb { transition: none; } .ane-mech__colb:hover, .ane-mech__colb:active { transform: none; } }
.ane-mech__tree { list-style: none; margin: 0; padding: 0; border: 1px solid var(--a-border-in); background: var(--a-plain); max-height: clamp(180px, 38vh, 380px); overflow: auto; }
.ane-mech__item { border-bottom: 1px solid var(--a-border-in); }
.ane-mech__item:last-child { border-bottom: 0; }
.ane-mech__item-b { display: flex; align-items: baseline; gap: 6px; width: 100%; min-height: 30px; padding: 4px 8px; border: 0; background: transparent; color: var(--a-text); font: inherit; font-size: var(--a-fs); text-align: start; cursor: pointer; }
.ane-mech__item-b:hover { background: var(--a-hover, rgba(0, 0, 0, .04)); }
.ane-mech__item-b:focus-visible { outline: 2px solid var(--sch-acc); outline-offset: -2px; }
.ane-mech__item.is-sel .ane-mech__item-b { background: var(--a-sel); color: var(--a-sel-text); }
.ane-mech__item.is-off .ane-mech__item-b b { opacity: .55; text-decoration: line-through; }
.ane-mech__ty { flex: 0 0 auto; font-size: var(--a-fs-sm); color: var(--a-text-faded); min-width: 52px; }
.ane-mech__item.is-sel .ane-mech__ty { color: inherit; opacity: .8; }
.ane-mech__item-b b { flex: 1 1 auto; min-width: 0; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ane-mech__item-b i { font-style: normal; font-weight: 600; }
.ane-mech__item-b em { font-style: normal; font-size: var(--a-fs-sm); opacity: .7; }
.ane-mech__item-b u { text-decoration: none; font-weight: 700; color: var(--sch-err); }
.ane-mech__item.is-sel .ane-mech__item-b u { color: inherit; }
.ane-mech__grp { padding: 0; background: var(--a-border-in); border-bottom: 1px solid var(--a-border-in); }
.ane-mech__grp button { width: 100%; padding: 3px 8px; border: 0; background: transparent; font: inherit; font-size: var(--a-fs-sm); font-weight: 600; color: var(--a-text-faded); text-align: start; cursor: pointer; }
.ane-mech__tabs { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 1px solid var(--a-border); }
.ane-mech__tab { flex: 1 1 auto; min-width: 0; padding: 6px 5px; white-space: nowrap; border: 0; border-bottom: 2px solid transparent; background: transparent; font: inherit; font-size: var(--a-fs); color: var(--a-text-faded); cursor: pointer; }
.ane-mech__tab:hover { color: var(--a-text); }
.ane-mech__tab.is-on { color: var(--a-text-strong); border-bottom-color: var(--sch-acc); font-weight: 600; }
.ane-mech__tab:focus-visible { outline: 2px solid var(--sch-acc); outline-offset: -2px; }
.ane-mech__pane { display: grid; gap: 8px; align-content: start; max-height: clamp(300px, 62vh, 640px); overflow: auto; padding-top: 6px; padding-inline-end: 2px; }
.ane-mech__pane[hidden], .ane-mech__msg[hidden], .ane-mech__bodies[hidden], .ane-mech__sec[hidden] { display: none; }
.ane-mech__form { display: grid; gap: 8px; }
.ane-mech__f { display: grid; gap: 2px; min-width: 0; }
.ane-mech__lab { font-size: var(--a-fs-sm); color: var(--a-text-faded); }
.ane-mech__f .ane-sch__in, .ane-mech__f input[type="text"] { width: 100%; }
.ane-mech__num { font-variant-numeric: tabular-nums; direction: ltr; text-align: start; }
.ane-mech .ane-sch__in.is-bad { border-color: var(--sch-err); box-shadow: inset 0 0 0 1px var(--sch-err); }
.ane-mech__vec { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.ane-mech__grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 8px; }
.ane-mech__prof { display: grid; gap: 6px; padding: 8px; border: 1px solid var(--a-border-in); background: var(--a-plain); }
.ane-mech__ta { height: auto; min-height: 80px; padding: 4px 6px; resize: vertical; font-family: ui-monospace, Menlo, Consolas, monospace; }
.ane-mech__chk { display: flex; align-items: center; gap: 8px; font-size: var(--a-fs); min-height: 24px; }
.ane-mech__chips, .ane-mech__bodies { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.ane-mech__chip { display: inline-flex; align-items: center; gap: 4px; font-size: var(--a-fs); }
.ane-mech__sw { display: inline-block; width: 10px; height: 10px; border: 1px solid rgba(0, 0, 0, .3); }
.ane-mech__err { margin: 0; padding: 6px 8px; font-size: var(--a-fs-sm); line-height: 16px; color: var(--sch-err); border: 1px solid var(--sch-err); }
.ane-mech__vals { display: grid; gap: 4px; }
.ane-mech__vrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto 28px; gap: 4px; align-items: center; }
.ane-mech__vres { font-size: var(--a-fs-sm); color: var(--a-text-faded); min-width: 44px; direction: ltr; font-variant-numeric: tabular-nums; }
.ane-mech__vres.is-bad { color: var(--sch-err); }
.ane-mech__vbar { display: flex; flex-wrap: wrap; gap: 4px; }
.ane-mech__vbar .ane-sch__wide.is-on, .ane-mech__top .ane-sch__wide.is-on { background: var(--a-sel); border-color: var(--a-btn-border); box-shadow: inset 0 -2px 0 var(--a-bar); color: var(--a-sel-text); }
.ane-mech__pv { position: relative; height: clamp(280px, calc(100vh - 480px), 640px); border: 1px solid var(--a-border-in); background: var(--a-plain); overflow: hidden; }
.ane-mech__cv, .ane-mech__ov { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ane-mech__cv { touch-action: none; cursor: grab; }
.ane-mech__cv:active { cursor: grabbing; }
.ane-mech__cv:focus-visible { outline: 2px solid var(--sch-acc); outline-offset: -2px; }
.ane-mech__ov { pointer-events: none; }
.ane-mech__msg { position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 24px; text-align: center; background: color-mix(in srgb, var(--a-plain) 88%, transparent); font-size: var(--a-fs); line-height: 20px; }
.ane-mech__msg p { margin: 0; max-width: 46ch; }
.ane-mech__bar { width: min(280px, 70vw); height: 4px; background: var(--a-border-in); overflow: hidden; }
.ane-mech__bar i { display: block; width: 0; height: 100%; background: var(--sch-acc); transition: width .2s ease-out; }
.ane-mech__msg.is-spin .ane-mech__bar i:only-child { min-width: 8%; }
.ane-mech__status { margin: 0; min-height: 16px; font-size: var(--a-fs); color: var(--sch-muted); }
.ane-mech__status.is-err { color: var(--sch-err); }
.ane-mech__status.is-busy::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-inline-end: 6px; border: 2px solid var(--sch-line); border-top-color: var(--sch-acc); border-radius: 50%; vertical-align: -1px; animation: ane-enc-spin .8s linear infinite; }
.ane-mech__sec { align-items: center; flex-wrap: nowrap; }
.ane-mech__sec .ane-sch__in { width: auto; flex: 0 0 auto; }
.ane-mech__sec input[type="range"] { flex: 1 1 auto; min-width: 0; }
.ane-mech__pick { display: grid; gap: 6px; }
.ane-mech__pick .ane-mech__row { align-items: end; }
.ane-mech__pick .ane-mech__f { flex: 1 1 90px; }
.ane-mech__step { margin-top: 2px; }
.ane-mech__dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin: 0; font-size: var(--a-fs); }
.ane-mech__dl dt { color: var(--a-text-faded); }
.ane-mech__dl dd { margin: 0; direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; }
.ane-mech__tbl { width: 100%; border-collapse: collapse; font-size: var(--a-fs); }
.ane-mech__tbl th, .ane-mech__tbl td { padding: 3px 6px; border-bottom: 1px solid var(--a-border-in); text-align: start; }
.ane-mech__tbl th { font-weight: 500; color: var(--a-text-faded); }
.ane-mech__sub { margin: 6px 0 0; font-size: var(--a-fs); font-weight: 600; }
.ane-mech__nl { margin: 0; padding-inline-start: 18px; font-size: var(--a-fs-sm); line-height: 17px; color: var(--a-text); display: grid; gap: 3px; }
.ane-mech__nl .is-warn { color: var(--sch-note-ink); }
.ane-mech__nl.is-err { color: var(--sch-err); }
.ane-mech__shop { display: grid; gap: 6px; }
.ane-mech__dls { display: grid; gap: 6px; }
.ane-mech__dls .ane-sch__wide { justify-content: flex-start; text-align: start; }
.ane-mech__paid, .ane-mech__price { margin: 0; font-size: var(--a-fs); }
.ane-mech__paid { color: var(--sch-acc-ink); }
.ane-mech__note { margin: 0; padding: 6px 8px; font-size: var(--a-fs-sm); line-height: 16px; color: var(--sch-note-ink); background: var(--sch-note-bg); border: 1px solid var(--sch-note-line); }
.ane-mech__row--c { justify-content: center; }
.ane-mech__card { display: grid; gap: 8px; padding: 8px; border: 1px solid var(--a-border-in); background: var(--a-plain); }
.ane-mech__card-h { display: flex; align-items: center; gap: 6px; font-size: var(--a-fs); }
.ane-mech__mate { display: grid; gap: 6px; padding: 8px; border: 1px solid var(--a-border-in); background: var(--a-face, transparent); }
.ane-mech__mate .ane-mech__row { flex-wrap: nowrap; }
.ane-mech__mate .ane-mech__row .ane-mech__f { flex: 1 1 auto; }
.ane-mech__sq-end { flex: 0 0 34px; min-width: 34px; padding-inline: 0; }
.ane-mech__sq-end svg { width: 14px; height: 14px; stroke: currentColor; display: block; margin: auto; }
.ane-mech__det { border: 1px solid var(--a-border-in); background: var(--a-plain); }
.ane-mech__det > summary { padding: 6px 8px; font-size: var(--a-fs); font-weight: 600; cursor: pointer; }
.ane-mech__det > summary:focus-visible { outline: 2px solid var(--sch-acc); outline-offset: -2px; }
.ane-mech__det > .ane-mech__form { padding: 4px 8px 10px; }
.ane-mech__res { display: grid; gap: 6px; min-width: 0; }
.ane-mech__ok, .ane-mech__warn { margin: 0; padding: 6px 8px; font-size: var(--a-fs-sm); line-height: 16px; border: 1px solid; }
.ane-mech__ok { color: var(--sch-acc-ink); border-color: var(--sch-acc-line, var(--a-border-in)); background: var(--sch-acc-bg, transparent); }
.ane-mech__warn { color: var(--sch-err); border-color: var(--sch-err); }
.ane-mech__guide { display: block; margin-top: 2px; color: var(--a-text-faded); }
.ane-mech__guide-a { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.ane-mech__guide-a .ane-sch__wide { min-height: 24px; padding-block: 0; }
.ane-mech__diag { display: grid; gap: 6px; max-width: 52ch; text-align: start; max-height: 40vh; overflow: auto; }
.ane-mech__failbox { display: grid; gap: 6px; }
.ane-mech__stack { display: grid; gap: 8px; }
.ane-mech__nl li .ane-sch__wide { min-height: 24px; padding-block: 0; margin-inline-start: 6px; }
.ane-mech__pop-b { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .35); }
.ane-mech__pop { width: min(560px, 100%); max-height: 90vh; overflow: auto; display: grid; gap: 10px; padding: 14px; background: var(--a-menu, #fff); border: 1px solid var(--a-border); box-shadow: 0 8px 28px rgba(0, 0, 0, .28); }
.ane-mech__pop-t { margin: 0; font-size: 15px; font-weight: 600; }
.ane-mech__pop-a { justify-content: flex-end; }
@media (max-width: 1100px) {
  .ane-mech__main { grid-template-columns: 220px minmax(0, 1fr); }
  .ane-mech__side-col { grid-column: 1 / -1; }
  .ane-mech__pane { max-height: none; }
}
@media (max-width: 760px) {
  .ane-mech__main { grid-template-columns: minmax(0, 1fr); }
  .ane-mech__view-col { position: static; order: -1; }
  .ane-mech__pv { height: 300px; }
  .ane-mech__grid2 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .ane-mech__status.is-busy::before { animation: none; } .ane-mech__bar i { transition: none; } }

/* mechanical studio: added masses and the stress colours */
.ane-mech__xrow { display: grid; gap: 6px; padding: 8px; border: 1px solid var(--a-border-in); background: var(--a-face, transparent); }
.ane-mech__xrow .ane-mech__row { flex-wrap: nowrap; }
.ane-mech__xrow .ane-mech__row .ane-sch__in:first-child { flex: 1 1 auto; min-width: 0; }
.ane-mech__legend { display: flex; height: 10px; border: 1px solid var(--a-border-in); }
.ane-mech__legend i { flex: 1 1 0; display: block; }
.ane-mech__res .ane-mech__row .ane-sch__wide[aria-pressed="true"] { cursor: default; }
.ane-mech__form .ane-sch__wide[hidden] { display: none; }
/* the enclosure kit tab of the mechanical studio */
.ane-mech__ksec { border: 1px solid var(--a-border); background: var(--a-face, transparent); }
.ane-mech__ksec + .ane-mech__ksec { margin-top: 6px; }
.ane-mech__ksum { padding: 7px 10px; font-size: var(--a-fs); font-weight: 600; cursor: pointer; color: var(--a-text-strong); }
.ane-mech__ksum:focus-visible { outline: 2px solid var(--sch-acc); outline-offset: -2px; }
.ane-mech__ksec[open] > .ane-mech__ksum { border-bottom: 1px solid var(--a-border); }
.ane-mech__kbody { display: grid; gap: 8px; padding: 10px; }
.ane-mech__kact { align-items: center; gap: 6px; }
.ane-mech__ksum2 { display: grid; gap: 4px; padding-top: 6px; border-top: 1px solid var(--a-border); }
.ane-mech__sub2 { margin: 4px 0 0; font-size: var(--a-fs); font-weight: 600; color: var(--a-text); }
.ane-mech__grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px 8px; }
.ane-mech__kopen { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.ane-mech__kopen li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 5px 0; border-top: 1px solid var(--a-border); font-size: var(--a-fs-sm); }
.ane-mech__kname { font-weight: 600; flex: 1 1 100%; overflow-wrap: anywhere; }
.ane-mech__kmeta { color: var(--a-text-faded); flex: 1 1 auto; }
.ane-mech__mini { min-height: 24px; padding-block: 0; }
.ane-mech__nl li .ane-mech__mini { margin-inline-start: 6px; }
.ane-mech__key { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.ane-mech__keyi { display: inline-flex; align-items: center; gap: 5px; font-size: var(--a-fs-sm); }
.ane-mech__keyi .ane-mech__sw { width: 12px; height: 12px; }
.ane-mech__chip.is-ref { font-style: italic; }
.ane-mech__expl { display: inline-flex; align-items: center; gap: 6px; font-size: var(--a-fs); margin-inline-start: auto; }
.ane-mech__expl input[type="range"] { width: 110px; accent-color: var(--sch-acc); }
.ane-mech__hint.is-warn { color: var(--sch-note-ink); }
/* the board-changed notice, the command palette */
.ane-mech__notice { display: grid; gap: 6px; padding: 8px 10px; border: 1px solid var(--sch-note-ink, var(--a-border)); border-inline-start-width: 4px; background: var(--a-panel, transparent); }
.ane-mech__notice[hidden] { display: none; }
.ane-mech__notice-t { margin: 0; font-size: var(--a-fs); font-weight: 600; color: var(--a-text-strong); }
.ane-mech__notice .ane-mech__chk { font-size: var(--a-fs-sm); }
.ane-mech__cmdbtn { margin-inline-start: auto; }
.ane-mech__cmd-b { position: fixed; inset: 0; z-index: 21; display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; background: rgba(0, 0, 0, .35); }
.ane-mech__cmd { width: min(560px, 100%); display: grid; gap: 6px; padding: 10px; background: var(--a-menu, #fff); border: 1px solid var(--a-border); box-shadow: 0 8px 28px rgba(0, 0, 0, .28); }
.ane-mech__cmd-in { width: 100%; box-sizing: border-box; min-height: 34px; font-size: 14px; }
.ane-mech__cmd-l { margin: 0; padding: 0; list-style: none; display: grid; max-height: 46vh; overflow: auto; border-top: 1px solid var(--a-border); }
.ane-mech__cmd-i { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 8px; cursor: pointer; font-size: var(--a-fs); border-bottom: 1px solid var(--a-border-in); }
.ane-mech__cmd-i { color: var(--a-text); }
.ane-mech__cmd-i.is-on { background: var(--a-sel); color: var(--a-sel-text); box-shadow: inset 3px 0 0 var(--a-bar); }
.ane-mech__cmd-i:hover:not(.is-on) { background: var(--a-hover, rgba(127, 127, 127, .12)); }
.ane-mech__cmd-t { overflow-wrap: anywhere; }
.ane-mech__cmd-g { flex: 0 0 auto; font-size: var(--a-fs-sm); color: var(--a-text-faded); }
.ane-mech__cmd-i.is-on .ane-mech__cmd-g { color: inherit; opacity: .8; }
.ane-mech__cmd-none { padding: 10px 8px; color: var(--a-text-faded); font-size: var(--a-fs); }
.ane-mech__cmd-h { margin: 0; font-size: var(--a-fs-sm); }
@media (max-width: 760px) {
  .ane-mech__grid3 { grid-template-columns: 1fr 1fr 1fr; }
}

/* ================= the phone layout (ane-sch-phone.js): a screen under 600px wide ================= */

/*
 * One 44px row at the top (the menu bar), the drawing, the status line and
 * a bottom bar with select, wire, part, undo, redo and More. Every window is
 * a bottom sheet over the bottom of the editor: 45% of the work area (all of
 * the editor below the top row), 90% when dragged up, one at a time. The new
 * parts do not exist on a wider screen.
 */
.ane-sch__pbar, .ane-sch__pmore, .ane-sch__grab { display: none; }
.ane-sch { --ph-shadow: 0 -6px 24px rgba(4, 8, 6, .5), 0 0 0 1px #0E1310; }
.ane-sch[data-theme="light"] { --ph-shadow: 0 -6px 24px rgba(27, 33, 30, .18), 0 0 0 1px #BDC3BF; }

@media (max-width: 599px) {
  /* the top row's height with its hairline: the sheets' heights are worked out from it */
  .ane-sch { --ph-top: 45px; grid-template-rows: auto minmax(0, 1fr) auto auto; }
  /* the visible screen, never the one behind the browser's bars */
  .ane-sch:not(.is-app) { max-height: 100dvh; }
  html.ane-sch-app-open, html.ane-sch-app-open body { overscroll-behavior: none; }
  .ane-sch.is-app { padding-top: env(safe-area-inset-top, 0px); }
  /* the sheets wait below the bar: nothing may scroll the editor itself to bring one (or a field in one) into view */
  .ane-sch { overflow: hidden; overflow: clip; }

  /* the top: one row, the menus; they share it out and scroll sideways (with the faded ends) only when it is too narrow */
  .ane-sch__top { grid-template-columns: minmax(0, 1fr); min-height: 44px; border-bottom: 1px solid var(--a-border); }
  .ane-sch__top > .ane-sch__bar,
  .ane-sch__top > .ane-sch__docname,
  .ane-sch__top > .ane-sch__util { display: none; }
  .ane-sch__top > .ane-sch__menubar {
    grid-column: 1; grid-row: 1; height: 44px; padding: 0;
    scroll-snap-type: x proximity; overscroll-behavior-x: contain;
  }
  .ane-sch__menubar > .ane-sch__m { flex: 1 0 auto; scroll-snap-align: start; }
  .ane-sch__menubar .ane-sch__m-t {
    width: 100%; height: 44px; padding: 0 7px; border-radius: 0;
    font-size: 13px; line-height: 44px;
  }
  .ane-sch__menubar .ane-sch__m.is-open .ane-sch__m-t { box-shadow: inset 0 -2px 0 var(--a-bar); }
  .ane-sch__m-l .ane-sch__m-i { min-height: 44px; }
  .ane-sch__m-l { overscroll-behavior: contain; }

  /* the drawing tools live in the bottom bar and More; on a board the bar keeps only the layers, floating in the corner */
  .ane-sch__abar .ane-sch__grp--tools { display: none; }
  .ane-sch:not(.is-board) .ane-sch__abar { display: none; }
  .ane-sch.is-board .ane-sch__abar {
    inset-inline: 8px auto; bottom: 8px; width: auto; max-width: calc(100% - 16px); height: auto;
    padding: 2px; border-width: 1px; border-radius: var(--a-r-pop); box-shadow: var(--a-shadow-abar);
  }
  .ane-sch.is-board .ane-sch__abar .ane-sch__layers { border-inline-start: 0; padding: 0; }
  .ane-sch .ane-sch__hint, .ane-sch.is-board .ane-sch__hint { bottom: 8px; }
  .ane-sch.is-board .ane-sch__hint { bottom: 64px; }
  /* the hint shows for a moment when the tool changes, then gives the drawing back */
  .ane-sch .ane-sch__hint {
    opacity: 0; visibility: hidden; transform: translateY(4px);
    transition: opacity 180ms cubic-bezier(0.23, 1, 0.32, 1), transform 180ms cubic-bezier(0.23, 1, 0.32, 1), visibility 0s linear 180ms;
  }
  .ane-sch.is-phint .ane-sch__hint { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .ane-sch .ane-sch__toasts, .ane-sch .ane-sch__stage[data-tool] .ane-sch__toasts { bottom: 56px; }
  .ane-sch.is-board .ane-sch__toasts, .ane-sch.is-board .ane-sch__stage[data-tool] .ane-sch__toasts { bottom: 112px; }
  .ane-sch.is-psheet .ane-sch__stage[data-tool] .ane-sch__toasts { top: calc(var(--a-doc-h) + 8px); bottom: auto; }
  .ane-sch.is-job .ane-sch__hint { display: none; }

  /* the bottom bar: six finger-sized buttons, each with its word, clear of the home indicator */
  .ane-sch__pbar {
    position: relative; z-index: 20; grid-row: 4;
    display: flex; align-items: stretch; justify-content: space-around; gap: 2px;
    padding: 2px 4px calc(2px + env(safe-area-inset-bottom, 0px));
    background: var(--a-window);
    border-top: 1px solid var(--a-border);
  }
  .ane-sch__pb {
    flex: 1 1 0; min-width: 44px; max-width: 96px; min-height: 52px;
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    padding: 4px 2px; border: 0; border-radius: var(--a-r-ctl);
    background: transparent; color: var(--a-text-faded);
    font: 500 11px/14px var(--a-font); white-space: nowrap; cursor: pointer;
    transition: var(--a-trans);
  }
  .ane-sch__pb .ane-sch-i { width: 20px; height: 20px; flex: none; color: var(--a-icon); }
  .ane-sch__pb:active:not(:disabled) { background: var(--a-press); }
  .ane-sch__pb[aria-pressed="true"] { background: var(--a-hi-wash); color: var(--a-text-strong); box-shadow: inset 0 2px 0 var(--a-hi-edge); }
  .ane-sch__pb[aria-pressed="true"] .ane-sch-i { color: var(--a-text-strong); }
  .ane-sch__pb[aria-expanded="true"] { background: var(--a-press); color: var(--a-text-strong); box-shadow: inset 0 2px 0 var(--a-bar); }
  .ane-sch__pb:disabled { color: var(--a-text-dis); cursor: default; }
  .ane-sch__pb:disabled .ane-sch-i { color: var(--a-text-dis); opacity: .5; }
  .ane-sch__pb:focus-visible { outline: 2px solid var(--a-focus); outline-offset: -2px; }

  /* every window is a bottom sheet over the editor's bottom edge */
  .ane-sch__body { position: static; }
  .ane-sch .ane-sch__psheet {
    position: absolute; top: auto; bottom: 0; left: 0; right: 0; inset-inline: 0; z-index: 40;
    display: flex; flex-direction: column;
    width: auto; min-width: 0; max-width: none; max-height: none; min-height: 0;
    height: calc((100% - var(--ph-top)) * .45);
    margin: 0; padding: 0 0 env(safe-area-inset-bottom, 0px);
    background: var(--a-panel); color: var(--a-text);
    border: 0; border-radius: var(--a-r-pop) var(--a-r-pop) 0 0;
    box-shadow: var(--ph-shadow);
    overflow: hidden; overscroll-behavior: contain;
    transform: translateY(calc(100% + 24px)); visibility: hidden; opacity: 1;
    transition: transform 220ms var(--a-ease), visibility 0s linear 220ms;
  }
  .ane-sch.is-parts .ane-sch__side.ane-sch__psheet,
  .ane-sch.is-panel .ane-sch__panel.ane-sch__psheet,
  .ane-sch.is-pmore .ane-sch__pmore,
  .ane-sch.is-pfind .ane-sch__dlg--find.ane-sch__psheet {
    transform: none; visibility: visible;
    transition: transform 220ms var(--a-ease), visibility 0s;
  }
  .ane-sch[data-psnap="full"] .ane-sch__psheet { height: calc((100% - var(--ph-top)) * .9); }
  .ane-sch.is-pdrag .ane-sch__psheet { transition: none; }
  .ane-sch__psheet .ane-sch__split, .ane-sch__psheet .ane-sch__pv-split, .ane-sch__psheet .ane-sch__pv { display: none; }
  .ane-sch__psheet .ane-sch__dockh { flex: none; }
  /* the dock's own button is the sheet's close box here (ane-sch-phone.js gives it the cross) */
  .ane-sch .ane-sch__psheet .ane-sch__dockh-acts [data-act^="dock-"] { display: inline-flex !important; }
  .ane-sch .ane-sch__psheet .ane-sch__dockh-acts .ane-sch__dock-b { width: 44px; min-width: 44px; height: 40px; }
  /* the library chips keep to one row that scrolls, so the list keeps the room */
  .ane-sch__psheet .ane-sch__side-head { flex: none; }
  .ane-sch__psheet .ane-sch__libs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .ane-sch__psheet .ane-sch__libs::-webkit-scrollbar { display: none; }
  .ane-sch__psheet .ane-sch__libchip { flex: none; }

  /* the handle: the sheet's whole width, a 36 x 4 bar in it */
  .ane-sch__grab {
    display: block; flex: none; position: relative; order: -1;
    width: 100%; height: 28px; margin: 0; padding: 0; border: 0; border-radius: var(--a-r-pop) var(--a-r-pop) 0 0;
    background: transparent; cursor: grab; touch-action: none;
  }
  .ane-sch__grab::before {
    content: ""; position: absolute; top: 12px; left: 50%;
    width: 36px; height: 4px; margin-left: -18px;
    border-radius: var(--a-r-chip); background: var(--a-scroll);
  }
  .ane-sch__grab:active::before, .ane-sch.is-pdrag .ane-sch__grab::before { background: var(--a-scroll-hot); }
  .ane-sch.is-pdrag .ane-sch__grab { cursor: grabbing; }
  .ane-sch__grab:focus-visible { outline: 2px solid var(--a-focus); outline-offset: -2px; }

  /* More: the rest of the toolbar as labelled tiles, in sections */
  .ane-sch__pmore { display: flex; }
  .ane-sch__pmore-h {
    flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px;
    min-height: 44px; padding-inline: 16px 4px; border-bottom: 1px solid var(--a-border-in);
  }
  .ane-sch__pmore-t { margin: 0; color: var(--a-text-strong); font: 600 15px/20px var(--a-font); }
  .ane-sch__pmore-x {
    display: inline-flex; align-items: center; justify-content: center; flex: none;
    width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--a-r-ctl);
    background: transparent; color: var(--a-icon); cursor: pointer; transition: var(--a-trans);
  }
  .ane-sch__pmore-x:active { background: var(--a-press); }
  .ane-sch__pmore-x:focus-visible { outline: 2px solid var(--a-focus); outline-offset: -2px; }
  .ane-sch__pmore-b { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 12px 16px; }
  .ane-sch__pmore-st { margin: 16px 4px 6px; color: var(--a-text-faded); font: 600 12px/16px var(--a-font); }
  .ane-sch__pmore-g { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 4px; }
  .ane-sch__pt {
    display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 6px;
    min-width: 0; min-height: 68px; padding: 10px 4px 8px;
    border: 0; border-radius: var(--a-r-ctl); background: transparent;
    color: var(--a-text); font: 400 12px/15px var(--a-font); text-align: center; text-decoration: none;
    cursor: pointer; transition: var(--a-trans);
  }
  .ane-sch__pt .ane-sch-i { width: 20px; height: 20px; flex: none; color: var(--a-icon); }
  .ane-sch__pt-l { max-width: 100%; overflow-wrap: anywhere; }
  .ane-sch__pt:active:not(:disabled) { background: var(--a-press); }
  .ane-sch__pt[aria-pressed="true"] { background: var(--a-hi-wash); color: var(--a-text-strong); box-shadow: inset 0 2px 0 var(--a-hi-edge); }
  .ane-sch__pt.is-danger .ane-sch-i { color: var(--a-err); }
  .ane-sch__pt:disabled { color: var(--a-text-dis); cursor: default; }
  .ane-sch__pt:disabled .ane-sch-i { color: var(--a-text-dis); opacity: .5; }
  .ane-sch__pt:focus-visible { outline: 2px solid var(--a-focus); outline-offset: -2px; }

  /* Find: the same window, a sheet without a backdrop; its Close row gives way to the handle and the cross */
  .ane-sch .ane-sch__dlg--find.ane-sch__psheet { opacity: 1; }
  .ane-sch__dlg--find.ane-sch__psheet .ane-sch__dlg-f { display: none; }
  .ane-sch__dlg--find.ane-sch__psheet .ane-sch__dlg-h { flex: none; }
  .ane-sch__dlg--find.ane-sch__psheet .ane-sch__dlg-b { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
  .ane-sch__dlg--find.ane-sch__psheet .ane-sch__find-l { max-height: none; }

  /* the length-tuning bar and a running job rise from the bottom of the drawing; an open sheet puts them away */
  .ane-sch .ane-sch__tune {
    top: auto; bottom: 0; inset-inline: 0; max-width: none; max-height: calc(100% - 40px); overflow-y: auto;
    padding: 10px 12px 12px; border-width: 1px 0 0; border-radius: var(--a-r-pop) var(--a-r-pop) 0 0;
    background: var(--a-panel); box-shadow: var(--ph-shadow); z-index: 32;
  }
  /* the bar says what to do itself: the Command Status chip would sit on its edge */
  .ane-sch__stage[data-tool="tune"] .ane-sch__hint { display: none; }
  .ane-sch .ane-sch__job { top: auto; bottom: 8px; }
  .ane-sch.is-psheet .ane-sch__tune, .ane-sch.is-psheet .ane-sch__job { visibility: hidden; }
}
@media (max-width: 599px) and (hover: hover) and (pointer: fine) {
  .ane-sch__pb:hover:not(:disabled), .ane-sch__pt:hover:not(:disabled), .ane-sch__pmore-x:hover { background: var(--a-hover); color: var(--a-text-strong); }
}
/* a finger: no tap flash, no zoom into a field (16px), no text selected on a control by a long press */
@media (max-width: 599px), (pointer: coarse) {
  .ane-sch { -webkit-tap-highlight-color: transparent; }
  .ane-sch :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]), select, textarea) { font-size: 16px; }
  .ane-sch :is(button, [role="button"], [role="tab"], [role="menuitem"], .ane-sch__pt) {
    touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
  }
  .ane-sch__svg { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
  /* the sheet's handle is dragged, not panned: it keeps every axis to itself */
  .ane-sch .ane-sch__grab.ane-sch__grab { touch-action: none; }
}
@media (max-width: 599px) and (prefers-reduced-motion: reduce) {
  .ane-sch .ane-sch__psheet, .ane-sch.is-parts .ane-sch__side.ane-sch__psheet, .ane-sch.is-panel .ane-sch__panel.ane-sch__psheet,
  .ane-sch.is-pmore .ane-sch__pmore, .ane-sch.is-pfind .ane-sch__dlg--find.ane-sch__psheet { transition: none !important; }
  .ane-sch .ane-sch__hint { transform: none; transition: none; }
}
