/* ============================== TOUCH_CARDS_2026Q4 (R4T) ==================================
   Touch tool cards (spec touchcards/spec.md, owner-approved 2026-10-28). Touch only: every rule is scoped html.tye-ts and
   body[data-tc], which phase_touch_cards.js sets only while the touch layout runs (its kill switch, localStorage tye_tc_off = '1',
   leaves it off). The desktop dock (tool_dock.css, html.tye-tdock:not(.tye-ts)) is not touched.
   phase_touch_cards.js writes:
     body[data-tc-mode] = sheet | side-left | side-right   bottom sheet (phone, tablet upright) / left side card (tablet landscape) /
                                                           side card beside the rail (phone on its side)
     body[data-tc-acc]  = 3d | solid | drawing             the area accent (3D blue, Sketch Solid violet, Drawing red)
     body[data-tc-open] = <key>                            the card in front; data-tc-full: a phone card at its full detent (the rail
                                                           steps aside); data-tc-pill0: a phone card took the sheet pill's band;
                                                           data-tc-pdover: the Pro Tools dock was shown over the card on purpose;
                                                           data-tc-yield-tree: a tablet's tree steps aside under an upright sheet;
                                                           data-tc-cube: a bottom sheet covers all of the view cube but a strip
                                                           under 44 px (a phone's full detent: the cube takes no finger)
     --tc-w / --tc-right                                   a side card's width / its right edge beside the rail
     on a card: data-tc-card=<key>, data-tc-on (shown on its screen), data-tc-detent = peek | half | full, --tc-h (its height),
     --tc-dy (the closing distance while dragged under peek), data-tc-more (the body scrolls on: a fade over the footer),
     data-tc-park (FEA result waiting), data-tc-min (FEA run minimised to the live pill), data-tc-grey (Configurations without a part)
     on its parts: data-tc-head, data-tc-row, data-tc-foot, data-tc-hide, data-tc-pri / -sec / -quiet / -dng, data-tc-x (+ data-tc-xword)
   $C (in the template) is every card's id (one :is() - an id's weight, so these rules win over the panels' own id rules). Tokens: tokens.md. */

/* ---------- 0. tokens (tokens.md 2-6, 13-16; the desktop dock's values at touch size) ---------- */
html.tye-ts body[data-tc] {
  --tc-sheet: #ffffff; --tc-ink: #101114; --tc-ink2: #3b3f46; --tc-ink3: #636a76; --tc-line: rgba(17, 20, 28, .10); --tc-press: rgba(17, 20, 28, .07);
  --tc-field: #f4f5f7; --tc-shadow: 0 10px 30px rgba(17, 20, 28, .12), 0 2px 8px rgba(17, 20, 28, .06);
  --tc-pri-bg: #101114; --tc-pri-fg: #ffffff; --tc-danger: #c42b23; --tc-seg-on: #ffffff; --tc-seg-sh: 0 1px 3px rgba(0, 0, 0, .12);
  --tc-glass: rgba(255, 255, 255, .94); --tc-font: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif; --tc-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --tc-acc: #185fa5; --tc-acc-icon: #378add; --tc-acc-ink: #185fa5; --tc-tint: rgba(55, 138, 221, .12);
  --tc-ok: #16a34a; --tc-ok-t: rgba(22, 163, 74, .10); --tc-warn: #b45309; --tc-warn-t: rgba(180, 83, 9, .10); --tc-crit: #c42b23; --tc-crit-t: rgba(229, 50, 42, .10);
  --tc-ease: cubic-bezier(.32, .72, 0, 1);
  --tc-dis-ink: rgba(59, 63, 70, .45); --tc-dis-pri: rgba(16, 17, 20, .45); --tc-dis-pri-fg: #ffffff; --tc-dis-field: rgba(244, 245, 247, .45);
}
html.tye-ts body[data-tc][data-tc-acc="solid"] { --tc-acc: #7c3aed; --tc-acc-icon: #7c3aed; --tc-acc-ink: #7c3aed; --tc-tint: rgba(124, 58, 237, .09); }
html.tye-ts body[data-tc][data-tc-acc="drawing"] { --tc-acc: #e5322a; --tc-acc-icon: #e5322a; --tc-acc-ink: #c42b23; --tc-tint: rgba(229, 50, 42, .09); }
html.tye-ts[data-theme="dark"] body[data-tc] {
  --tc-sheet: #1c1d21; --tc-ink: #f2f3f5; --tc-ink2: #c9cdd4; --tc-ink3: #9aa1ad; --tc-line: rgba(255, 255, 255, .10); --tc-press: rgba(255, 255, 255, .10);
  --tc-field: #25272c; --tc-shadow: 0 12px 34px rgba(0, 0, 0, .55), 0 2px 10px rgba(0, 0, 0, .35);
  /* (the on segment: white at 8 %, not 14 % - the Sketch Solid and Drawing accent inks reach 4.5:1 on it only there, 5.4 / 4.6) */
  --tc-pri-bg: #f2f3f5; --tc-pri-fg: #101114; --tc-danger: #ff7a71; --tc-seg-on: rgba(255, 255, 255, .08); --tc-seg-sh: none; --tc-glass: rgba(30, 31, 35, .92);
  --tc-acc: #7dd3fc; --tc-acc-icon: #7dd3fc; --tc-acc-ink: #7dd3fc; --tc-tint: rgba(125, 211, 252, .14);
  --tc-ok: #5fd08a; --tc-ok-t: rgba(95, 208, 138, .10); --tc-warn: #fbbf24; --tc-warn-t: rgba(251, 191, 36, .10); --tc-crit: #ff7a71; --tc-crit-t: rgba(229, 50, 42, .10);
  --tc-dis-ink: rgba(201, 205, 212, .45); --tc-dis-pri: rgba(242, 243, 245, .45); --tc-dis-pri-fg: #17181b; --tc-dis-field: rgba(37, 39, 44, .45);
}
html.tye-ts[data-theme="dark"] body[data-tc][data-tc-acc="solid"] { --tc-acc: #a78bfa; --tc-acc-icon: #a78bfa; --tc-acc-ink: #b9a3fc; --tc-tint: rgba(167, 139, 250, .16); }
html.tye-ts[data-theme="dark"] body[data-tc][data-tc-acc="drawing"] { --tc-acc: #ff4d42; --tc-acc-icon: #ff4d42; --tc-acc-ink: #ff7a71; --tc-tint: rgba(255, 77, 66, .14); }
/* (the band a sheet may use, measured by phase_touch_cards.js: its width is the rail's top, its height the space the tab bar keeps; the
   probe carries the same as an inline style, so it measures right before body[data-tc] is set again - fix round 2) */
html.tye-ts body[data-tc] #tye-tc-probe { position: fixed; left: 0; top: 0; width: var(--ts-rail-top); height: var(--ts-space); visibility: hidden; pointer-events: none; z-index: -1; }

/* ---------- 1. the card: one plane (z 9005), sheet colour, hairline, radius 18; the module's colour tokens point at ours ---------- */
html.tye-ts body[data-tc] :is(#tye-section-dialog, #tye-explode-dialog, #tye-3dfea-mat-dialog, #tye-3dfea-progress, #tye-3dfea-result-dialog, #tye-motion-panel, #tye-cfdpro-panel, #tye-mates-panel, #tye-pdm-panel, #tye-cmp-panel, #tye-configs-panel, #tye-cstr-panel, #tye-tc-classa)[data-tc-card] {
  position: fixed !important; z-index: 9005 !important; box-sizing: border-box !important; margin: 0 !important; padding: 0 !important;
  transform: none !important; background: var(--tc-sheet) !important; color: var(--tc-ink) !important; border: 1px solid var(--tc-line) !important;
  border-radius: 18px !important; box-shadow: var(--tc-shadow) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  font-family: var(--tc-font) !important; font-size: 14px !important; line-height: 1.3 !important; letter-spacing: 0 !important; text-align: left !important;
  flex-direction: column !important; flex-wrap: nowrap !important; align-items: stretch !important; justify-content: flex-start !important; gap: 0 !important;
  overflow-x: hidden !important; overflow-y: auto !important; overscroll-behavior: contain !important; scrollbar-width: none !important;
  scroll-padding-top: var(--tc-spt, 0px) !important; scroll-padding-bottom: var(--tc-spb, 0px) !important;
  min-width: 0 !important; min-height: 0 !important; max-width: none !important; outline: none !important; opacity: 1 !important;
  -webkit-tap-highlight-color: transparent; cursor: default !important; animation: none !important;
  --secp-bg: var(--tc-sheet); --secp-line: var(--tc-line); --secp-ink: var(--tc-ink); --secp-ink2: var(--tc-ink2); --secp-ink3: var(--tc-ink3);
  --secp-fld: var(--tc-field); --secp-fline: var(--tc-line); --secp-card: var(--tc-press); --secp-trk: var(--tc-press);
  --fea-bg: var(--tc-sheet); --fea-line: var(--tc-line); --fea-line2: var(--tc-line); --fea-txt: var(--tc-ink); --fea-txt2: var(--tc-ink2); --fea-txt3: var(--tc-ink3);
  --fea-card: var(--tc-field); --fea-card-h: var(--tc-press); --fea-acc: var(--tc-acc); --fea-acc-icon: var(--tc-acc-icon); --fea-acc-badge: var(--tc-tint);
  --fea-acc-line: var(--tc-acc); --fea-acc-tint: var(--tc-tint); --fea-acc-ring: var(--tc-tint); --fea-foot: transparent; --fea-btn-line: var(--tc-line); --fea-btn-h: var(--tc-press);
  --tp-surface: var(--tc-sheet); --tp-elev: var(--tc-field); --tp-ink: var(--tc-ink); --tp-ink2: var(--tc-ink2); --tp-ink3: var(--tc-ink3); --tp-line: var(--tc-line);
  --tp-line2: var(--tc-line); --tp-accent: var(--tc-acc); --tp-accent2: var(--tc-acc); --tp-soft: var(--tc-tint); --tp-hover: var(--tc-press);
  --cfd-bg: var(--tc-sheet); --cfd-line: var(--tc-line); --cfd-line2: var(--tc-line); --cfd-txt: var(--tc-ink); --cfd-txt2: var(--tc-ink2); --cfd-txt3: var(--tc-ink3);
  --cfd-card: var(--tc-field); --cfd-hov: var(--tc-press);
}
html.tye-ts body[data-tc] :is(#tye-section-dialog, #tye-explode-dialog, #tye-3dfea-mat-dialog, #tye-3dfea-progress, #tye-3dfea-result-dialog, #tye-motion-panel, #tye-cfdpro-panel, #tye-mates-panel, #tye-pdm-panel, #tye-cmp-panel, #tye-configs-panel, #tye-cstr-panel, #tye-tc-classa)[data-tc-card]::-webkit-scrollbar { display: none; }
/* shown: each module keeps its own open / closed state (an inline display, a class, or the node itself) */
html.tye-ts body[data-tc] :is(#tye-section-dialog, #tye-explode-dialog, #tye-motion-panel, #tye-mates-panel)[data-tc-card]:not([style*="display: none"]):not([style*="display:none"]),
html.tye-ts body[data-tc] :is(#tye-cfdpro-panel, #tye-pdm-panel)[data-tc-card].open,
html.tye-ts body[data-tc] :is(#tye-3dfea-mat-dialog, #tye-3dfea-progress, #tye-3dfea-result-dialog, #tye-cmp-panel, #tye-configs-panel, #tye-cstr-panel)[data-tc-card],
html.tye-ts body[data-tc] #tye-tc-classa[data-tc-card]:not([hidden]) { display: flex !important; }
html.tye-ts body[data-tc] #tye-tc-classa[hidden] { display: none !important; }
/* (Versions and CFD Pro close by their class; Versions then slides out for 260 ms before it goes - the card goes at once, it does not
   linger in place under a transform it no longer has) */
html.tye-ts body[data-tc] :is(#tye-cfdpro-panel, #tye-pdm-panel)[data-tc-card]:not(.open) { visibility: hidden !important; pointer-events: none !important; }
/* not in front: another card took the place (FEA's run and result), parked, minimised, or another screen */
html.tye-ts body[data-tc] :is(#tye-section-dialog, #tye-explode-dialog, #tye-3dfea-mat-dialog, #tye-3dfea-progress, #tye-3dfea-result-dialog, #tye-motion-panel, #tye-cfdpro-panel, #tye-mates-panel, #tye-pdm-panel, #tye-cmp-panel, #tye-configs-panel, #tye-cstr-panel, #tye-tc-classa)[data-tc-card]:not([data-tc-on]),
html.tye-ts body[data-tc] :is(#tye-section-dialog, #tye-explode-dialog, #tye-3dfea-mat-dialog, #tye-3dfea-progress, #tye-3dfea-result-dialog, #tye-motion-panel, #tye-cfdpro-panel, #tye-mates-panel, #tye-pdm-panel, #tye-cmp-panel, #tye-configs-panel, #tye-cstr-panel, #tye-tc-classa)[data-tc-card][data-tc-park],
html.tye-ts body[data-tc] :is(#tye-section-dialog, #tye-explode-dialog, #tye-3dfea-mat-dialog, #tye-3dfea-progress, #tye-3dfea-result-dialog, #tye-motion-panel, #tye-cfdpro-panel, #tye-mates-panel, #tye-pdm-panel, #tye-cmp-panel, #tye-configs-panel, #tye-cstr-panel, #tye-tc-classa)[data-tc-card][data-tc-min] { visibility: hidden !important; pointer-events: none !important; }
/* the rail's panels (a sheet column) open over the cards: the body-level cards step aside, as shipped (TS:499-514) */
html.tye-ts.ts-casc-open body[data-tc] :is(#tye-tc-classa, #tye-tc-pill) { visibility: hidden !important; pointer-events: none !important; }
html.tye-ts body[data-tc] #tye-pdm-drawer-bg { display: none !important; }

/* ---------- 2. placement: one card, three placements (spec 1.1) ---------- */
/* a bottom sheet: a phone upright (x 8-382, its bottom 10 px over the tab bar) and a tablet upright (600 wide, centred, the tools
   sheets' rule); its height is the detent (phase_touch_cards.js --tc-h); the sheet curve, none under reduced motion */
html.tye-ts body[data-tc][data-tc-mode="sheet"] :is(#tye-section-dialog, #tye-explode-dialog, #tye-3dfea-mat-dialog, #tye-3dfea-progress, #tye-3dfea-result-dialog, #tye-motion-panel, #tye-cfdpro-panel, #tye-mates-panel, #tye-pdm-panel, #tye-cmp-panel, #tye-configs-panel, #tye-cstr-panel, #tye-tc-classa)[data-tc-card] {
  left: max(calc(env(safe-area-inset-left, 0px) + 8px), calc(50% - 300px)) !important; right: max(calc(env(safe-area-inset-right, 0px) + 8px), calc(50% - 300px)) !important;
  width: auto !important; top: auto !important; bottom: var(--ts-space) !important; height: var(--tc-h, 360px) !important;
  max-height: calc(100dvh - var(--ts-rail-top) - var(--ts-space) - 8px) !important;
  translate: 0 var(--tc-dy, 0px); transition: none !important;
}
/* (the sheet curve only where motion is welcome: under prefers-reduced-motion the card jumps - spec 2.2 / 5.5; fix round 1: the reduce
   rule below lost to this one's weight while the transition sat here) */
@media (prefers-reduced-motion: no-preference) {
  html.tye-ts body[data-tc][data-tc-mode="sheet"] :is(#tye-section-dialog, #tye-explode-dialog, #tye-3dfea-mat-dialog, #tye-3dfea-progress, #tye-3dfea-result-dialog, #tye-motion-panel, #tye-cfdpro-panel, #tye-mates-panel, #tye-pdm-panel, #tye-cmp-panel, #tye-configs-panel, #tye-cstr-panel, #tye-tc-classa)[data-tc-card]:not(.tc-drag) { transition: height .26s var(--tc-ease), translate .26s var(--tc-ease) !important; }
}
/* the on-screen keyboard: the sheet's bottom edge rides 8 px over it, its height clamps to the band above (spec 2.3) */
html.tye-ts.ts-kb body[data-tc][data-tc-mode="sheet"] :is(#tye-section-dialog, #tye-explode-dialog, #tye-3dfea-mat-dialog, #tye-3dfea-progress, #tye-3dfea-result-dialog, #tye-motion-panel, #tye-cfdpro-panel, #tye-mates-panel, #tye-pdm-panel, #tye-cmp-panel, #tye-configs-panel, #tye-cstr-panel, #tye-tc-classa)[data-tc-card] {
  bottom: calc(var(--ts-kbh, 0px) + 8px) !important; max-height: calc(100dvh - var(--ts-kbh, 0px) - 8px - var(--ts-rail-top) - 8px) !important;
}
/* at peek the body is not in sight: the header and the footer only */
html.tye-ts body[data-tc][data-tc-mode="sheet"] :is(#tye-section-dialog, #tye-explode-dialog, #tye-3dfea-mat-dialog, #tye-3dfea-progress, #tye-3dfea-result-dialog, #tye-motion-panel, #tye-cfdpro-panel, #tye-mates-panel, #tye-pdm-panel, #tye-cmp-panel, #tye-configs-panel, #tye-cstr-panel, #tye-tc-classa)[data-tc-card][data-tc-detent="peek"] { overflow-y: hidden !important; }
/* a side card: a tablet in landscape at the left, where the desktop dock sits (360, 320 in a pane under 760); content height */
html.tye-ts body[data-tc][data-tc-mode="side-left"] :is(#tye-section-dialog, #tye-explode-dialog, #tye-3dfea-mat-dialog, #tye-3dfea-progress, #tye-3dfea-result-dialog, #tye-motion-panel, #tye-cfdpro-panel, #tye-mates-panel, #tye-pdm-panel, #tye-cmp-panel, #tye-configs-panel, #tye-cstr-panel, #tye-tc-classa)[data-tc-card] {
  left: calc(env(safe-area-inset-left, 0px) + 16px) !important; right: auto !important; top: var(--ts-rail-top) !important; bottom: auto !important;
  width: var(--tc-w, 360px) !important; height: auto !important; translate: none !important;
  max-height: calc(100dvh - var(--ts-rail-top) - var(--ts-space) - 8px) !important;
}
/* a phone on its side: beside the rail at the right (no room for detents: 274 px of height) */
html.tye-ts body[data-tc][data-tc-mode="side-right"] :is(#tye-section-dialog, #tye-explode-dialog, #tye-3dfea-mat-dialog, #tye-3dfea-progress, #tye-3dfea-result-dialog, #tye-motion-panel, #tye-cfdpro-panel, #tye-mates-panel, #tye-pdm-panel, #tye-cmp-panel, #tye-configs-panel, #tye-cstr-panel, #tye-tc-classa)[data-tc-card] {
  left: auto !important; right: var(--tc-right, 74px) !important; top: var(--ts-rail-top) !important; bottom: auto !important;
  width: var(--tc-w, 360px) !important; height: auto !important; translate: none !important;
  max-height: calc(100dvh - var(--ts-rail-top) - var(--ts-space) - 8px) !important;
}
html.tye-ts.ts-kb body[data-tc]:is([data-tc-mode="side-left"], [data-tc-mode="side-right"]) :is(#tye-section-dialog, #tye-explode-dialog, #tye-3dfea-mat-dialog, #tye-3dfea-progress, #tye-3dfea-result-dialog, #tye-motion-panel, #tye-cfdpro-panel, #tye-mates-panel, #tye-pdm-panel, #tye-cmp-panel, #tye-configs-panel, #tye-cstr-panel, #tye-tc-classa)[data-tc-card] { max-height: calc(100dvh - var(--ts-kbh, 0px) - var(--ts-rail-top) - 8px) !important; }
@media (prefers-reduced-motion: reduce) {
  html.tye-ts body[data-tc] :is(#tye-section-dialog, #tye-explode-dialog, #tye-3dfea-mat-dialog, #tye-3dfea-progress, #tye-3dfea-result-dialog, #tye-motion-panel, #tye-cfdpro-panel, #tye-mates-panel, #tye-pdm-panel, #tye-cmp-panel, #tye-configs-panel, #tye-cstr-panel, #tye-tc-classa)[data-tc-card], html.tye-ts body[data-tc][data-tc-mode] :is(#tye-section-dialog, #tye-explode-dialog, #tye-3dfea-mat-dialog, #tye-3dfea-progress, #tye-3dfea-result-dialog, #tye-motion-panel, #tye-cfdpro-panel, #tye-mates-panel, #tye-pdm-panel, #tye-cmp-panel, #tye-configs-panel, #tye-cstr-panel, #tye-tc-classa)[data-tc-card][data-tc-card] { transition: none !important; }
  html.tye-ts body[data-tc] #cad-panel .v3d-viewcube, html.tye-ts body[data-tc] #ts-quick { transition: none !important; }
  /* (inside the cards and the pill too: the modules' own segment, button and progress-bar transitions - state changes are instant,
     spec 5.5; fix round 3. No module in scope waits for a transitionend / animationend) */
  html.tye-ts body[data-tc] :is(#tye-section-dialog, #tye-explode-dialog, #tye-3dfea-mat-dialog, #tye-3dfea-progress, #tye-3dfea-result-dialog, #tye-motion-panel, #tye-cfdpro-panel, #tye-mates-panel, #tye-pdm-panel, #tye-cmp-panel, #tye-configs-panel, #tye-cstr-panel, #tye-tc-classa)[data-tc-card] *, html.tye-ts body[data-tc] :is(#tye-section-dialog, #tye-explode-dialog, #tye-3dfea-mat-dialog, #tye-3dfea-progress, #tye-3dfea-result-dialog, #tye-motion-panel, #tye-cfdpro-panel, #tye-mates-panel, #tye-pdm-panel, #tye-cmp-panel, #tye-configs-panel, #tye-cstr-panel, #tye-tc-classa)[data-tc-card] *::before, html.tye-ts body[data-tc] :is(#tye-section-dialog, #tye-explode-dialog, #tye-3dfea-mat-dialog, #tye-3dfea-progress, #tye-3dfea-result-dialog, #tye-motion-panel, #tye-cfdpro-panel, #tye-mates-panel, #tye-pdm-panel, #tye-cmp-panel, #tye-configs-panel, #tye-cstr-panel, #tye-tc-classa)[data-tc-card] *::after,
  html.tye-ts body[data-tc] #tye-tc-pill *, html.tye-ts body[data-tc] #tye-tc-pill *::before, html.tye-ts body[data-tc] #tye-tc-pill *::after { transition: none !important; animation: none !important; }
}
/* a focused control's ring never animates in: the modules' 'transition: .12s' (all properties) on their buttons faded it in from the
   button's text colour, unseen on a greyed button (fix round 3) - its colours may still ease */
html.tye-ts body[data-tc] :is(#tye-section-dialog, #tye-explode-dialog, #tye-3dfea-mat-dialog, #tye-3dfea-progress, #tye-3dfea-result-dialog, #tye-motion-panel, #tye-cfdpro-panel, #tye-mates-panel, #tye-pdm-panel, #tye-cmp-panel, #tye-configs-panel, #tye-cstr-panel, #tye-tc-classa)[data-tc-card] :focus-visible { transition-property: background-color, color, opacity !important; }

/* ---------- 3. the header: 62 px + hairline, the 36 px icon chip, the title and its line, the state chip, the 44 px close ---------- */
html.tye-ts body[data-tc] :is(#tye-section-dialog, #tye-explode-dialog, #tye-3dfea-mat-dialog, #tye-3dfea-progress, #tye-3dfea-result-dialog, #tye-motion-panel, #tye-cfdpro-panel, #tye-mates-panel, #tye-pdm-panel, #tye-cmp-panel, #tye-configs-panel, #tye-cstr-panel, #tye-tc-classa)[data-tc-card] > [data-tc-head] {
  position: sticky !important; top: 0 !important; z-index: 30 !important; order: 0 !important; flex: none !important; box-sizing: border-box !important;
  min-height: 63px !important; height: auto !important; max-height: none !important; margin: 0 !important; padding: 9px 10px 9px 14px !important;
  background: var(--tc-sheet) !important; border: 0 !important; border-bottom: 1px solid var(--tc-line) !important; border-radius: 0 !important;
  box-shadow: none !important; cursor: default !important; touch-action: none; user-select: none; -webkit-user-select: none;
}
html.tye-ts body[data-tc] :is(#tye-section-dialog, #tye-explode-dialog, #tye-3dfea-mat-dialog, #tye-3dfea-progress, #tye-3dfea-result-dialog, #tye-motion-panel, #tye-cfdpro-panel, #tye-mates-panel, #tye-pdm-panel, #tye-cmp-panel, #tye-configs-panel, #tye-cstr-panel, #tye-tc-classa)[data-tc-card] [data-tc-row] {
  display: flex !important; flex-direction: row !important; align-items: center !important; gap: 12px !important; width: 100% !important; min-width: 0 !important;
  margin: 0 !important; box-sizing: border-box !important; flex-wrap: nowrap !important;
}
/* (a row inside the header - Versions / Compare / Configurations / Constraints - is bare; a header that IS the row keeps its sheet fill and
   hairline from the header rule: the body scrolls under it) */
html.tye-ts body[data-tc] :is(#tye-section-dialog, #tye-explode-dialog, #tye-3dfea-mat-dialog, #tye-3dfea-progress, #tye-3dfea-result-dialog, #tye-motion-panel, #tye-cfdpro-panel, #tye-mates-panel, #tye-pdm-panel, #tye-cmp-panel, #tye-configs-panel, #tye-cstr-panel, #tye-tc-classa)[data-tc-card] [data-tc-row]:not([data-tc-head]) { padding: 0 !important; background: transparent !important; border: 0 !important; }
html.tye-ts body[data-tc] :is(#tye-section-dialog, #tye-explode-dialog, #tye-3dfea-mat-dialog, #tye-3dfea-progress, #tye-3dfea-result-dialog, #tye-motion-panel, #tye-cfdpro-panel, #tye-mates-panel, #tye-pdm-panel, #tye-cmp-panel, #tye-configs-panel, #tye-cstr-panel, #tye-tc-classa)[data-tc-card] > [data-tc-head][data-tc-row] { padding: 9px 10px 9px 14px !important; }
/* the grab handle: 38 x 5, 8 px under the top of a bottom sheet; the header grows by its 18 px zone (side cards have none) */
html.tye-ts body[data-tc][data-tc-mode="sheet"] :is(#tye-section-dialog, #tye-explode-dialog, #tye-3dfea-mat-dialog, #tye-3dfea-progress, #tye-3dfea-result-dialog, #tye-motion-panel, #tye-cfdpro-panel, #tye-mates-panel, #tye-pdm-panel, #tye-cmp-panel, #tye-configs-panel, #tye-cstr-panel, #tye-tc-classa)[data-tc-card] > [data-tc-head] { padding-top: 27px !important; min-height: 81px !important; }
html.tye-ts body[data-tc][data-tc-mode="sheet"] :is(#tye-section-dialog, #tye-explode-dialog, #tye-3dfea-mat-dialog, #tye-3dfea-progress, #tye-3dfea-result-dialog, #tye-motion-panel, #tye-cfdpro-panel, #tye-mates-panel, #tye-pdm-panel, #tye-cmp-panel, #tye-configs-panel, #tye-cstr-panel, #tye-tc-classa)[data-tc-card] > [data-tc-head]::after {
  content: '' !important; display: block !important; position: absolute !important; top: 8px !important; left: 50% !important; width: 38px !important; height: 5px !important;
  margin: 0 0 0 -19px !important; border-radius: 3px !important; background: var(--tc-line) !important; pointer-events: none !important; opacity: 1 !important;
}
html.tye-ts[data-theme="dark"] body[data-tc][data-tc-mode="sheet"] :is(#tye-section-dialog, #tye-explode-dialog, #tye-3dfea-mat-dialog, #tye-3dfea-progress, #tye-3dfea-result-dialog, #tye-motion-panel, #tye-cfdpro-panel, #tye-mates-panel, #tye-pdm-panel, #tye-cmp-panel, #tye-configs-panel, #tye-cstr-panel, #tye-tc-classa)[data-tc-card] > [data-tc-head]::after { background: rgba(255, 255, 255, .18) !important; }
html.tye-ts body[data-tc] :is(#tye-section-dialog, #tye-explode-dialog, #tye-3dfea-mat-dialog, #tye-3dfea-progress, #tye-3dfea-result-dialog, #tye-motion-panel, #tye-cfdpro-panel, #tye-mates-panel, #tye-pdm-panel, #tye-cmp-panel, #tye-configs-panel, #tye-cstr-panel, #tye-tc-classa)[data-tc-card] [data-tc-hide] { display: none !important; }
html.tye-ts body[data-tc] :is(#tye-section-dialog, #tye-explode-dialog, #tye-3dfea-mat-dialog, #tye-3dfea-progress, #tye-3dfea-result-dialog, #tye-motion-panel, #tye-cfdpro-panel, #tye-mates-panel, #tye-pdm-panel, #tye-cmp-panel, #tye-configs-panel, #tye-cstr-panel, #tye-tc-classa)[data-tc-card] [data-tc-row] > div:not([data-tc-hide]):not(.tc-hd) {
  display: flex !important; align-items: center !important; gap: 8px !important; flex: none !important; margin: 0 0 0 auto !important; padding: 0 !important; background: transparent !important; border: 0 !important;
}
html.tye-ts body[data-tc] :is(#tye-section-dialog, #tye-explode-dialog, #tye-3dfea-mat-dialog, #tye-3dfea-progress, #tye-3dfea-result-dialog, #tye-motion-panel, #tye-cfdpro-panel, #tye-mates-panel, #tye-pdm-panel, #tye-cmp-panel, #tye-configs-panel, #tye-cstr-panel, #tye-tc-classa)[data-tc-card] .tc-hd { display: flex !important; align-items: center !important; gap: 12px !important; flex: 1 1 auto !important; min-width: 0 !important; }
html.tye-ts body[data-tc] :is(#tye-section-dialog, #tye-explode-dialog, #tye-3dfea-mat-dialog, #tye-3dfea-progress, #tye-3dfea-result-dialog, #tye-motion-panel, #tye-cfdpro-panel, #tye-mates-panel, #tye-pdm-panel, #tye-cmp-panel, #tye-configs-panel, #tye-cstr-panel, #tye-tc-classa)[data-tc-card] .tc-ic {
  display: flex !important; align-items: center !important; justify-content: center !important; flex: none !important; width: 36px !important; height: 36px !important;
  border-radius: 11px !important; background: var(--tc-tint) !important; color: var(--tc-acc-icon) !important;
}
html.tye-ts body[data-tc] :is(#tye-section-dialog, #tye-explode-dialog, #tye-3dfea-mat-dialog, #tye-3dfea-progress, #tye-3dfea-result-dialog, #tye-motion-panel, #tye-cfdpro-panel, #tye-mates-panel, #tye-pdm-panel, #tye-cmp-panel, #tye-configs-panel, #tye-cstr-panel, #tye-tc-classa)[data-tc-card] .tc-ic i { font-size: 20px !important; line-height: 1 !important; color: inherit !important; }
html.tye-ts body[data-tc] :is(#tye-section-dialog, #tye-explode-dialog, #tye-3dfea-mat-dialog, #tye-3dfea-progress, #tye-3dfea-result-dialog, #tye-motion-panel, #tye-cfdpro-panel, #tye-mates-panel, #tye-pdm-panel, #tye-cmp-panel, #tye-configs-panel, #tye-cstr-panel, #tye-tc-classa)[data-tc-card] .tc-tt { display: flex !important; flex-direction: column !important; gap: 3px !important; flex: 1 1 auto !important; min-width: 0 !important; }
html.tye-ts body[data-tc] :is(#tye-section-dialog, #tye-explode-dialog, #tye-3dfea-mat-dialog, #tye-3dfea-progress, #tye-3dfea-result-dialog, #tye-motion-panel, #tye-cfdpro-panel, #tye-mates-panel, #tye-pdm-panel, #tye-cmp-panel, #tye-configs-panel, #tye-cstr-panel, #tye-tc-classa)[data-tc-card] .tc-t { display: block !important; font: 600 15px/1.2 var(--tc-font) !important; color: var(--tc-ink) !important; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; }
html.tye-ts body[data-tc] :is(#tye-section-dialog, #tye-explode-dialog, #tye-3dfea-mat-dialog, #tye-3dfea-progress, #tye-3dfea-result-dialog, #tye-motion-panel, #tye-cfdpro-panel, #tye-mates-panel, #tye-pdm-panel, #tye-cmp-panel, #tye-configs-panel, #tye-cstr-panel, #tye-tc-classa)[data-tc-card] .tc-s { display: block !important; font: 400 12px/1.3 var(--tc-font) !important; color: var(--tc-ink3) !important; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; }
html.tye-ts body[data-tc] :is(#tye-section-dialog, #tye-explode-dialog, #tye-3dfea-mat-dialog, #tye-3dfea-progress, #tye-3dfea-result-dialog, #tye-motion-panel, #tye-cfdpro-panel, #tye-mates-panel, #tye-pdm-panel, #tye-cmp-panel, #tye-configs-panel, #tye-cstr-panel, #tye-tc-classa)[data-tc-card] .tc-s:empty { display: none !important; }
/* a narrow side card (320 in a pane under 760, a phone on its side): the title comes first - no area chip, 8 px gaps - and the subline
   takes two lines rather than an ellipsis (spec 1.2; fix round 2) */
html.tye-ts body[data-tc][data-tc-narrow] :is(#tye-section-dialog, #tye-explode-dialog, #tye-3dfea-mat-dialog, #tye-3dfea-progress, #tye-3dfea-result-dialog, #tye-motion-panel, #tye-cfdpro-panel, #tye-mates-panel, #tye-pdm-panel, #tye-cmp-panel, #tye-configs-panel, #tye-cstr-panel, #tye-tc-classa)[data-tc-card] .tc-ic { display: none !important; }
html.tye-ts body[data-tc][data-tc-narrow] :is(#tye-section-dialog, #tye-explode-dialog, #tye-3dfea-mat-dialog, #tye-3dfea-progress, #tye-3dfea-result-dialog, #tye-motion-panel, #tye-cfdpro-panel, #tye-mates-panel, #tye-pdm-panel, #tye-cmp-panel, #tye-configs-panel, #tye-cstr-panel, #tye-tc-classa)[data-tc-card] :is([data-tc-row], .tc-hd) { gap: 8px !important; }
html.tye-ts body[data-tc][data-tc-narrow] :is(#tye-section-dialog, #tye-explode-dialog, #tye-3dfea-mat-dialog, #tye-3dfea-progress, #tye-3dfea-result-dialog, #tye-motion-panel, #tye-cfdpro-panel, #tye-mates-panel, #tye-pdm-panel, #tye-cmp-panel, #tye-configs-panel, #tye-cstr-panel, #tye-tc-classa)[data-tc-card] .tc-s:not(:empty) {
  white-space: normal !important; display: -webkit-box !important; -webkit-line-clamp: 2 !important; -webkit-box-orient: vertical !important; text-overflow: clip !important; overflow: hidden !important;
}
html.tye-ts body[data-tc][data-tc-narrow] :is(#tye-section-dialog, #tye-explode-dialog, #tye-3dfea-mat-dialog, #tye-3dfea-progress, #tye-3dfea-result-dialog, #tye-motion-panel, #tye-cfdpro-panel, #tye-mates-panel, #tye-pdm-panel, #tye-cmp-panel, #tye-configs-panel, #tye-cstr-panel, #tye-tc-classa)[data-tc-card] .tc-chip { max-width: 96px !important; }
html.tye-ts body[data-tc] :is(#tye-section-dialog, #tye-explode-dialog, #tye-3dfea-mat-dialog, #tye-3dfea-progress, #tye-3dfea-result-dialog, #tye-motion-panel, #tye-cfdpro-panel, #tye-mates-panel, #tye-pdm-panel, #tye-cmp-panel, #tye-configs-panel, #tye-cstr-panel, #tye-tc-classa)[data-tc-card] .tc-chip {
  display: inline-flex !important; align-items: center !important; flex: none !important; box-sizing: border-box !important; height: 26px !important; max-width: 120px !important;
  padding: 0 8px !important; border-radius: 9px !important; background: var(--tc-tint) !important; color: var(--tc-acc-ink) !important;
  font: 600 12px/1 var(--tc-font) !important; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important;
}
html.tye-ts body[data-tc] :is(#tye-section-dialog, #tye-explode-dialog, #tye-3dfea-mat-dialog, #tye-3dfea-progress, #tye-3dfea-result-dialog, #tye-motion-panel, #tye-cfdpro-panel, #tye-mates-panel, #tye-pdm-panel, #tye-cmp-panel, #tye-configs-panel, #tye-cstr-panel, #tye-tc-classa)[data-tc-card] .tc-chip[hidden] { display: none !important; }
/* the FEA result's verdict in the module's verdict colour on a tenth of itself (spec 5.4) */
html.tye-ts body[data-tc] #tye-3dfea-result-dialog[data-tc-verdict="safe"] .tc-chip { background: var(--tc-ok-t) !important; color: var(--tc-ok) !important; }
html.tye-ts body[data-tc] #tye-3dfea-result-dialog[data-tc-verdict="warn"] .tc-chip { background: var(--tc-warn-t) !important; color: var(--tc-warn) !important; }
html.tye-ts body[data-tc] #tye-3dfea-result-dialog[data-tc-verdict="crit"] .tc-chip { background: var(--tc-crit-t) !important; color: var(--tc-crit) !important; }
html.tye-ts body[data-tc]:not([data-tc-mode="sheet"]) .tc-vh { display: none !important; }
/* a keyboard open leaves the focus on the card itself: its ring, outside the edge (spec 5.5, the desktop data-tdock-kb rule) */
html.tye-ts body[data-tc] :is(#tye-section-dialog, #tye-explode-dialog, #tye-3dfea-mat-dialog, #tye-3dfea-progress, #tye-3dfea-result-dialog, #tye-motion-panel, #tye-cfdpro-panel, #tye-mates-panel, #tye-pdm-panel, #tye-cmp-panel, #tye-configs-panel, #tye-cstr-panel, #tye-tc-classa)[data-tc-card][data-tc-kb]:focus { outline: 2px solid var(--tc-acc) !important; outline-offset: 2px !important; }
html.tye-ts body[data-tc] .tc-vh { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; border: 0 !important; }
/* (the detent button is a Tab stop: while the keyboard is on it, it is a pill over the handle - fix round 2) */
html.tye-ts body[data-tc][data-tc-mode="sheet"] :is(#tye-section-dialog, #tye-explode-dialog, #tye-3dfea-mat-dialog, #tye-3dfea-progress, #tye-3dfea-result-dialog, #tye-motion-panel, #tye-cfdpro-panel, #tye-mates-panel, #tye-pdm-panel, #tye-cmp-panel, #tye-configs-panel, #tye-cstr-panel, #tye-tc-classa)[data-tc-card] .tc-det:focus-visible {
  top: 2px !important; left: 50% !important; transform: translateX(-50%) !important; width: auto !important; height: 22px !important; min-height: 0 !important; max-height: 22px !important; min-width: 80px !important; margin: 0 !important;
  padding: 0 12px !important; clip: auto !important; overflow: visible !important; border-radius: 11px !important; background: var(--tc-pri-bg) !important; color: var(--tc-pri-fg) !important;
  font: 600 12px/22px var(--tc-font) !important; text-align: center !important; z-index: 40 !important; outline: 2px solid var(--tc-acc) !important; outline-offset: 2px !important;
}
/* the close: 44 x 44 round, top right; Section's and Explode's is the word Cancel (its shipped meaning: remove the cut / put the parts back) */
html.tye-ts body[data-tc] :is(#tye-section-dialog, #tye-explode-dialog, #tye-3dfea-mat-dialog, #tye-3dfea-progress, #tye-3dfea-result-dialog, #tye-motion-panel, #tye-cfdpro-panel, #tye-mates-panel, #tye-pdm-panel, #tye-cmp-panel, #tye-configs-panel, #tye-cstr-panel, #tye-tc-classa)[data-tc-card] [data-tc-x] {
  display: inline-flex !important; align-items: center !important; justify-content: center !important; flex: none !important; box-sizing: border-box !important;
  width: 44px !important; height: 44px !important; min-width: 44px !important; min-height: 44px !important; margin: 0 !important; padding: 0 !important;
  border: 0 !important; border-radius: 22px !important; background: transparent !important; color: var(--tc-ink2) !important; box-shadow: none !important;
  cursor: pointer !important; position: relative !important; touch-action: manipulation; opacity: 1 !important; transform: none !important;
}
html.tye-ts body[data-tc] :is(#tye-section-dialog, #tye-explode-dialog, #tye-3dfea-mat-dialog, #tye-3dfea-progress, #tye-3dfea-result-dialog, #tye-motion-panel, #tye-cfdpro-panel, #tye-mates-panel, #tye-pdm-panel, #tye-cmp-panel, #tye-configs-panel, #tye-cstr-panel, #tye-tc-classa)[data-tc-card] [data-tc-x]:active { background: var(--tc-press) !important; }
/* (for 350 ms after the rail starts to step aside - a phone's full detent - the close takes no finger: it sits where the rail's buttons were,
   and a tap aimed at the fading rail closed the card, or Cancelled Section's cut; phase_touch_cards.js data-tc-fresh, fix round 3. Not when
   the user's own handle tap, drag or detent button put the card there (data-tc-fresh="own"): the X works at once - fix round 6; Section's
   and Explode's Cancel too, except where the rail stood: the shield over that place takes the tap and never passes it to a close drawn as
   the word Cancel (phase_touch_cards.js shieldX) - fix round 8) */
html.tye-ts body[data-tc][data-tc-fresh=""] :is(#tye-section-dialog, #tye-explode-dialog, #tye-3dfea-mat-dialog, #tye-3dfea-progress, #tye-3dfea-result-dialog, #tye-motion-panel, #tye-cfdpro-panel, #tye-mates-panel, #tye-pdm-panel, #tye-cmp-panel, #tye-configs-panel, #tye-cstr-panel, #tye-tc-classa)[data-tc-card] [data-tc-x] { pointer-events: none !important; }
html.tye-ts body[data-tc] :is(#tye-section-dialog, #tye-explode-dialog, #tye-3dfea-mat-dialog, #tye-3dfea-progress, #tye-3dfea-result-dialog, #tye-motion-panel, #tye-cfdpro-panel, #tye-mates-panel, #tye-pdm-panel, #tye-cmp-panel, #tye-configs-panel, #tye-cstr-panel, #tye-tc-classa)[data-tc-card] [data-tc-x] :is(i, svg) { font-size: 18px !important; width: 18px !important; height: 18px !important; color: inherit !important; line-height: 1 !important; }
html.tye-ts body[data-tc] :is(#tye-section-dialog, #tye-explode-dialog, #tye-3dfea-mat-dialog, #tye-3dfea-progress, #tye-3dfea-result-dialog, #tye-motion-panel, #tye-cfdpro-panel, #tye-mates-panel, #tye-pdm-panel, #tye-cmp-panel, #tye-configs-panel, #tye-cstr-panel, #tye-tc-classa)[data-tc-card] [data-tc-x][data-tc-xword] { width: auto !important; padding: 0 14px !important; font: 500 14px/1 var(--tc-font) !important; }
html.tye-ts body[data-tc] :is(#tye-section-dialog, #tye-explode-dialog, #tye-3dfea-mat-dialog, #tye-3dfea-progress, #tye-3dfea-result-dialog, #tye-motion-panel, #tye-cfdpro-panel, #tye-mates-panel, #tye-pdm-panel, #tye-cmp-panel, #tye-configs-panel, #tye-cstr-panel, #tye-tc-classa)[data-tc-card] [data-tc-x][data-tc-xword] > :is(i, svg) { display: none !important; }
html.tye-ts body[data-tc] :is(#tye-section-dialog, #tye-explode-dialog, #tye-3dfea-mat-dialog, #tye-3dfea-progress, #tye-3dfea-result-dialog, #tye-motion-panel, #tye-cfdpro-panel, #tye-mates-panel, #tye-pdm-panel, #tye-cmp-panel, #tye-configs-panel, #tye-cstr-panel, #tye-tc-classa)[data-tc-card] [data-tc-x] .tc-xw { display: inline !important; font: inherit !important; color: inherit !important; }
html.tye-ts body[data-tc] :is(#tye-section-dialog, #tye-explode-dialog, #tye-3dfea-mat-dialog, #tye-3dfea-progress, #tye-3dfea-result-dialog, #tye-motion-panel, #tye-cfdpro-panel, #tye-mates-panel, #tye-pdm-panel, #tye-cmp-panel, #tye-configs-panel, #tye-cstr-panel, #tye-tc-classa)[data-tc-card] [data-tc-add] {
  display: inline-flex !important; align-items: center !important; justify-content: center !important; flex: none !important; width: 44px !important; height: 44px !important;
  min-width: 44px !important; min-height: 44px !important; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 22px !important;
  background: var(--tc-field) !important; color: var(--tc-ink2) !important; box-shadow: none !important; transform: none !important;
}
html.tye-ts body[data-tc] :is(#tye-section-dialog, #tye-explode-dialog, #tye-3dfea-mat-dialog, #tye-3dfea-progress, #tye-3dfea-result-dialog, #tye-motion-panel, #tye-cfdpro-panel, #tye-mates-panel, #tye-pdm-panel, #tye-cmp-panel, #tye-configs-panel, #tye-cstr-panel, #tye-tc-classa)[data-tc-card] [data-tc-add] i { font-size: 18px !important; color: inherit !important; }

/* ---------- 4. the body: the panel's own controls, padding 14; the card is the one scroller under the sticky header and footer ---------- */
html.tye-ts body[data-tc] :is(#tye-section-dialog, #tye-explode-dialog, #tye-3dfea-mat-dialog, #tye-3dfea-progress, #tye-3dfea-result-dialog, #tye-motion-panel, #tye-cfdpro-panel, #tye-mates-panel, #tye-pdm-panel, #tye-cmp-panel, #tye-configs-panel, #tye-cstr-panel, #tye-tc-classa)[data-tc-card] > :not([data-tc-head]):not([data-tc-foot]) {
  order: 10; flex: none !important; max-height: none !important; height: auto !important; overflow: visible !important; min-height: 0 !important; z-index: auto !important;
  box-sizing: border-box !important; background: transparent !important; border-color: transparent !important; color: var(--tc-ink) !important;
}
html.tye-ts body[data-tc] :is(#tye-section-dialog, #tye-explode-dialog, #tye-3dfea-mat-dialog, #tye-3dfea-progress, #tye-3dfea-result-dialog, #tye-motion-panel, #tye-cfdpro-panel, #tye-mates-panel, #tye-pdm-panel, #tye-cmp-panel, #tye-configs-panel, #tye-cstr-panel, #tye-tc-classa)[data-tc-card] .tc-sh,
html.tye-ts body[data-tc] :is(#tye-section-dialog, #tye-explode-dialog, #tye-3dfea-mat-dialog, #tye-3dfea-progress, #tye-3dfea-result-dialog, #tye-motion-panel, #tye-cfdpro-panel, #tye-mates-panel, #tye-pdm-panel, #tye-cmp-panel, #tye-configs-panel, #tye-cstr-panel, #tye-tc-classa)[data-tc-card] :is(.fea-msh, .cat-h .lbl, .fea-res-label) {
  font: 600 11px/18px var(--tc-font) !important; letter-spacing: .06em !important; text-transform: uppercase !important; color: var(--tc-ink3) !important;
}
/* ---------- 5. the footer: sticky, 12 / 14 px, a hairline over it - the thumb zone, in sight at every detent ---------- */
html.tye-ts body[data-tc] :is(#tye-section-dialog, #tye-explode-dialog, #tye-3dfea-mat-dialog, #tye-3dfea-progress, #tye-3dfea-result-dialog, #tye-motion-panel, #tye-cfdpro-panel, #tye-mates-panel, #tye-pdm-panel, #tye-cmp-panel, #tye-configs-panel, #tye-cstr-panel, #tye-tc-classa)[data-tc-card] [data-tc-foot] {
  position: sticky !important; bottom: 0 !important; z-index: 30 !important; order: 50 !important; flex: none !important; box-sizing: border-box !important;
  display: flex !important; flex-direction: row !important; align-items: center !important; justify-content: flex-end !important; flex-wrap: wrap !important; gap: 8px !important;
  margin: auto 0 0 !important; padding: 12px 14px !important; min-height: 69px !important; width: auto !important;
  background: var(--tc-sheet) !important; border: 0 !important; border-top: 1px solid var(--tc-line) !important; border-radius: 0 !important; box-shadow: none !important;
}
html.tye-ts body[data-tc] :is(#tye-section-dialog, #tye-explode-dialog, #tye-3dfea-mat-dialog, #tye-3dfea-progress, #tye-3dfea-result-dialog, #tye-motion-panel, #tye-cfdpro-panel, #tye-mates-panel, #tye-pdm-panel, #tye-cmp-panel, #tye-configs-panel, #tye-cstr-panel, #tye-tc-classa)[data-tc-card][data-tc-more] [data-tc-foot]::before {
  content: '' !important; display: block !important; position: absolute !important; left: 0 !important; right: 0 !important; bottom: 100% !important; height: 28px !important;
  margin: 0 !important; background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--tc-sheet)) !important; pointer-events: none !important; border: 0 !important;
}
html.tye-ts[data-theme="dark"] body[data-tc] :is(#tye-section-dialog, #tye-explode-dialog, #tye-3dfea-mat-dialog, #tye-3dfea-progress, #tye-3dfea-result-dialog, #tye-motion-panel, #tye-cfdpro-panel, #tye-mates-panel, #tye-pdm-panel, #tye-cmp-panel, #tye-configs-panel, #tye-cstr-panel, #tye-tc-classa)[data-tc-card][data-tc-more] [data-tc-foot]::before { background: linear-gradient(to bottom, rgba(28, 29, 33, 0), var(--tc-sheet)) !important; }

/* ---------- 6. buttons: 44 px; primary = the house pill (one per card, at the right), secondary on the field, quiet, destructive words ---------- */
html.tye-ts body[data-tc] :is(#tye-section-dialog, #tye-explode-dialog, #tye-3dfea-mat-dialog, #tye-3dfea-progress, #tye-3dfea-result-dialog, #tye-motion-panel, #tye-cfdpro-panel, #tye-mates-panel, #tye-pdm-panel, #tye-cmp-panel, #tye-configs-panel, #tye-cstr-panel, #tye-tc-classa)[data-tc-card] :is([data-tc-pri], [data-tc-sec], [data-tc-quiet], [data-tc-dng]) {
  display: inline-flex !important; align-items: center !important; justify-content: center !important; gap: 8px !important; flex: 0 0 auto;
  box-sizing: border-box !important; height: 44px !important; min-height: 44px !important; min-width: 0 !important; margin: 0 !important; padding: 0 16px !important;
  border: 0 !important; border-radius: 22px !important; box-shadow: none !important; filter: none !important; transform: none !important; background-image: none !important;
  font: 500 14px/1 var(--tc-font) !important; letter-spacing: 0 !important; text-transform: none !important; white-space: nowrap !important; cursor: pointer !important;
  outline-offset: 2px; touch-action: manipulation; opacity: 1;
}
html.tye-ts body[data-tc] :is(#tye-section-dialog, #tye-explode-dialog, #tye-3dfea-mat-dialog, #tye-3dfea-progress, #tye-3dfea-result-dialog, #tye-motion-panel, #tye-cfdpro-panel, #tye-mates-panel, #tye-pdm-panel, #tye-cmp-panel, #tye-configs-panel, #tye-cstr-panel, #tye-tc-classa)[data-tc-card] [data-tc-pri] { background-color: var(--tc-pri-bg) !important; color: var(--tc-pri-fg) !important; font-weight: 600 !important; padding: 0 18px !important; order: 4; }
html.tye-ts body[data-tc] :is(#tye-section-dialog, #tye-explode-dialog, #tye-3dfea-mat-dialog, #tye-3dfea-progress, #tye-3dfea-result-dialog, #tye-motion-panel, #tye-cfdpro-panel, #tye-mates-panel, #tye-pdm-panel, #tye-cmp-panel, #tye-configs-panel, #tye-cstr-panel, #tye-tc-classa)[data-tc-card] [data-tc-sec] { background-color: var(--tc-field) !important; color: var(--tc-ink) !important; order: 3; }
html.tye-ts body[data-tc] :is(#tye-section-dialog, #tye-explode-dialog, #tye-3dfea-mat-dialog, #tye-3dfea-progress, #tye-3dfea-result-dialog, #tye-motion-panel, #tye-cfdpro-panel, #tye-mates-panel, #tye-pdm-panel, #tye-cmp-panel, #tye-configs-panel, #tye-cstr-panel, #tye-tc-classa)[data-tc-card] [data-tc-quiet] { background-color: transparent !important; color: var(--tc-ink2) !important; padding: 0 14px !important; order: 2; }
html.tye-ts body[data-tc] :is(#tye-section-dialog, #tye-explode-dialog, #tye-3dfea-mat-dialog, #tye-3dfea-progress, #tye-3dfea-result-dialog, #tye-motion-panel, #tye-cfdpro-panel, #tye-mates-panel, #tye-pdm-panel, #tye-cmp-panel, #tye-configs-panel, #tye-cstr-panel, #tye-tc-classa)[data-tc-card] [data-tc-dng] { background-color: transparent !important; color: var(--tc-danger) !important; padding: 0 14px !important; order: 1; }
html.tye-ts body[data-tc] :is(#tye-section-dialog, #tye-explode-dialog, #tye-3dfea-mat-dialog, #tye-3dfea-progress, #tye-3dfea-result-dialog, #tye-motion-panel, #tye-cfdpro-panel, #tye-mates-panel, #tye-pdm-panel, #tye-cmp-panel, #tye-configs-panel, #tye-cstr-panel, #tye-tc-classa)[data-tc-card] [data-tc-foot] [data-tc-dng] { margin-right: auto !important; }
/* (a footer with quiet buttons and no destructive one: the quiet ones at the left edge, away from the primary - boards 2 and 5; the last
   of them is marked by phase_touch_cards.js - fix round 2) */
html.tye-ts body[data-tc] :is(#tye-section-dialog, #tye-explode-dialog, #tye-3dfea-mat-dialog, #tye-3dfea-progress, #tye-3dfea-result-dialog, #tye-motion-panel, #tye-cfdpro-panel, #tye-mates-panel, #tye-pdm-panel, #tye-cmp-panel, #tye-configs-panel, #tye-cstr-panel, #tye-tc-classa)[data-tc-card] [data-tc-foot] > [data-tc-qend] { margin-right: auto !important; }
html.tye-ts body[data-tc] :is(#tye-section-dialog, #tye-explode-dialog, #tye-3dfea-mat-dialog, #tye-3dfea-progress, #tye-3dfea-result-dialog, #tye-motion-panel, #tye-cfdpro-panel, #tye-mates-panel, #tye-pdm-panel, #tye-cmp-panel, #tye-configs-panel, #tye-cstr-panel, #tye-tc-classa)[data-tc-card] [data-tc-pri]:active { opacity: .85 !important; }
html.tye-ts body[data-tc] :is(#tye-section-dialog, #tye-explode-dialog, #tye-3dfea-mat-dialog, #tye-3dfea-progress, #tye-3dfea-result-dialog, #tye-motion-panel, #tye-cfdpro-panel, #tye-mates-panel, #tye-pdm-panel, #tye-cmp-panel, #tye-configs-panel, #tye-cstr-panel, #tye-tc-classa)[data-tc-card] :is([data-tc-sec], [data-tc-quiet], [data-tc-dng]):active { background-color: var(--tc-press) !important; }
html.tye-ts body[data-tc] :is(#tye-section-dialog, #tye-explode-dialog, #tye-3dfea-mat-dialog, #tye-3dfea-progress, #tye-3dfea-result-dialog, #tye-motion-panel, #tye-cfdpro-panel, #tye-mates-panel, #tye-pdm-panel, #tye-cmp-panel, #tye-configs-panel, #tye-cstr-panel, #tye-tc-classa)[data-tc-card] :is([data-tc-pri], [data-tc-sec], [data-tc-quiet], [data-tc-dng]) :is(i, svg) { font-size: 16px !important; color: inherit !important; line-height: 1 !important; flex: none !important; vertical-align: 0 !important; }
html.tye-ts body[data-tc] :is(#tye-section-dialog, #tye-explode-dialog, #tye-3dfea-mat-dialog, #tye-3dfea-progress, #tye-3dfea-result-dialog, #tye-motion-panel, #tye-cfdpro-panel, #tye-mates-panel, #tye-pdm-panel, #tye-cmp-panel, #tye-configs-panel, #tye-cstr-panel, #tye-tc-classa)[data-tc-card] :is([data-tc-pri], [data-tc-sec], [data-tc-quiet], [data-tc-dng]):is(:disabled, [aria-disabled="true"]) { opacity: .45 !important; cursor: not-allowed !important; }
html.tye-ts body[data-tc] :is(#tye-section-dialog, #tye-explode-dialog, #tye-3dfea-mat-dialog, #tye-3dfea-progress, #tye-3dfea-result-dialog, #tye-motion-panel, #tye-cfdpro-panel, #tye-mates-panel, #tye-pdm-panel, #tye-cmp-panel, #tye-configs-panel, #tye-cstr-panel, #tye-tc-classa)[data-tc-card] :focus-visible { outline: 2px solid var(--tc-acc) !important; outline-offset: -2px !important; }
html.tye-ts body[data-tc] :is(#tye-section-dialog, #tye-explode-dialog, #tye-3dfea-mat-dialog, #tye-3dfea-progress, #tye-3dfea-result-dialog, #tye-motion-panel, #tye-cfdpro-panel, #tye-mates-panel, #tye-pdm-panel, #tye-cmp-panel, #tye-configs-panel, #tye-cstr-panel, #tye-tc-classa)[data-tc-card] :is([data-tc-pri], input[type=range]):focus-visible { outline-offset: 2px !important; }

/* ---------- 7. fields, selects, segments, sliders at touch size (16 px text: no iOS zoom) ---------- */
html.tye-ts body[data-tc] :is(#tye-section-dialog, #tye-explode-dialog, #tye-3dfea-mat-dialog, #tye-3dfea-progress, #tye-3dfea-result-dialog, #tye-motion-panel, #tye-cfdpro-panel, #tye-mates-panel, #tye-pdm-panel, #tye-cmp-panel, #tye-configs-panel, #tye-cstr-panel, #tye-tc-classa)[data-tc-card] :is(input:not([type=range]):not([type=checkbox]):not([type=radio]):not([type=color]):not([type=file]), select) {
  height: 44px !important; min-height: 44px !important; box-sizing: border-box !important; margin: 0 !important; padding: 0 12px !important;
  background: var(--tc-field) !important; color: var(--tc-ink) !important; border: 1px solid var(--tc-line) !important; border-radius: 12px !important;
  box-shadow: none !important; font: 500 16px/1 var(--tc-font) !important; letter-spacing: 0 !important; outline: none;
}
html.tye-ts body[data-tc] :is(#tye-section-dialog, #tye-explode-dialog, #tye-3dfea-mat-dialog, #tye-3dfea-progress, #tye-3dfea-result-dialog, #tye-motion-panel, #tye-cfdpro-panel, #tye-mates-panel, #tye-pdm-panel, #tye-cmp-panel, #tye-configs-panel, #tye-cstr-panel, #tye-tc-classa)[data-tc-card] :is(input:not([type=range]):not([type=checkbox]):not([type=radio]):not([type=color]):not([type=file]), select):is(select) { padding-right: 30px !important; }
html.tye-ts body[data-tc] :is(#tye-section-dialog, #tye-explode-dialog, #tye-3dfea-mat-dialog, #tye-3dfea-progress, #tye-3dfea-result-dialog, #tye-motion-panel, #tye-cfdpro-panel, #tye-mates-panel, #tye-pdm-panel, #tye-cmp-panel, #tye-configs-panel, #tye-cstr-panel, #tye-tc-classa)[data-tc-card] :is(input:not([type=range]):not([type=checkbox]):not([type=radio]):not([type=color]):not([type=file]), select):focus { border-color: var(--tc-acc) !important; }
html.tye-ts body[data-tc] :is(#tye-section-dialog, #tye-explode-dialog, #tye-3dfea-mat-dialog, #tye-3dfea-progress, #tye-3dfea-result-dialog, #tye-motion-panel, #tye-cfdpro-panel, #tye-mates-panel, #tye-pdm-panel, #tye-cmp-panel, #tye-configs-panel, #tye-cstr-panel, #tye-tc-classa)[data-tc-card] input::placeholder { color: var(--tc-ink3) !important; opacity: 1 !important; font-weight: 400 !important; }
/* sliders: a 44 px hit box, a 4 px track (filled part accent), a 22 px thumb (spec 1.2) */
html.tye-ts body[data-tc] :is(#tye-section-dialog, #tye-explode-dialog, #tye-3dfea-mat-dialog, #tye-3dfea-progress, #tye-3dfea-result-dialog, #tye-motion-panel, #tye-cfdpro-panel, #tye-mates-panel, #tye-pdm-panel, #tye-cmp-panel, #tye-configs-panel, #tye-cstr-panel, #tye-tc-classa)[data-tc-card] input[type=range] {
  -webkit-appearance: none !important; appearance: none !important; height: 44px !important; min-height: 44px !important; margin: 0 !important; padding: 0 !important;
  border: 0 !important; box-shadow: none !important; cursor: pointer; touch-action: none; accent-color: var(--tc-acc) !important;
  background: linear-gradient(to right, var(--tc-acc) 0 var(--p, 50%), var(--tc-press) var(--p, 50%) 100%) center / 100% 4px no-repeat !important; border-radius: 2px !important;
}
html.tye-ts body[data-tc] :is(#tye-section-dialog, #tye-explode-dialog, #tye-3dfea-mat-dialog, #tye-3dfea-progress, #tye-3dfea-result-dialog, #tye-motion-panel, #tye-cfdpro-panel, #tye-mates-panel, #tye-pdm-panel, #tye-cmp-panel, #tye-configs-panel, #tye-cstr-panel, #tye-tc-classa)[data-tc-card] input[type=range]::-webkit-slider-runnable-track { height: 4px !important; background: transparent !important; border: 0 !important; box-shadow: none !important; }
html.tye-ts body[data-tc] :is(#tye-section-dialog, #tye-explode-dialog, #tye-3dfea-mat-dialog, #tye-3dfea-progress, #tye-3dfea-result-dialog, #tye-motion-panel, #tye-cfdpro-panel, #tye-mates-panel, #tye-pdm-panel, #tye-cmp-panel, #tye-configs-panel, #tye-cstr-panel, #tye-tc-classa)[data-tc-card] input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none !important; appearance: none !important; width: 22px !important; height: 22px !important; margin-top: -9px !important; border-radius: 11px !important;
  box-sizing: border-box !important; background: var(--tc-sheet) !important; border: 2px solid var(--tc-acc) !important; box-shadow: 0 1px 3px rgba(0, 0, 0, .18) !important;
}
html.tye-ts body[data-tc] :is(#tye-section-dialog, #tye-explode-dialog, #tye-3dfea-mat-dialog, #tye-3dfea-progress, #tye-3dfea-result-dialog, #tye-motion-panel, #tye-cfdpro-panel, #tye-mates-panel, #tye-pdm-panel, #tye-cmp-panel, #tye-configs-panel, #tye-cstr-panel, #tye-tc-classa)[data-tc-card] input[type=range]::-moz-range-track { height: 4px !important; background: transparent !important; border: 0 !important; }
html.tye-ts body[data-tc] :is(#tye-section-dialog, #tye-explode-dialog, #tye-3dfea-mat-dialog, #tye-3dfea-progress, #tye-3dfea-result-dialog, #tye-motion-panel, #tye-cfdpro-panel, #tye-mates-panel, #tye-pdm-panel, #tye-cmp-panel, #tye-configs-panel, #tye-cstr-panel, #tye-tc-classa)[data-tc-card] input[type=range]::-moz-range-thumb { width: 22px !important; height: 22px !important; border-radius: 11px !important; box-sizing: border-box !important; background: var(--tc-sheet) !important; border: 2px solid var(--tc-acc) !important; box-shadow: 0 1px 3px rgba(0, 0, 0, .18) !important; }
/* Section's offset is centred at 0: the fill runs from the centre to the thumb */
html.tye-ts body[data-tc] #tye-section-dialog[data-tc-card] input[type=range] {
  background: linear-gradient(to right, var(--tc-press) 0 min(50%, var(--p, 50%)), var(--tc-acc) min(50%, var(--p, 50%)) max(50%, var(--p, 50%)), var(--tc-press) max(50%, var(--p, 50%)) 100%) center / 100% 4px no-repeat !important;
}
/* the segmented control (the tools-sheet tabs at 44 px): field track, the on segment on the sheet in the accent ink */
html.tye-ts body[data-tc] :is(#tye-section-dialog, #tye-explode-dialog, #tye-3dfea-mat-dialog, #tye-3dfea-progress, #tye-3dfea-result-dialog, #tye-motion-panel, #tye-cfdpro-panel, #tye-mates-panel, #tye-pdm-panel, #tye-cmp-panel, #tye-configs-panel, #tye-cstr-panel, #tye-tc-classa)[data-tc-card] :is(.v3d-sect-seg, .tc-seg) {
  display: flex !important; gap: 3px !important; padding: 3px !important; margin: 0 !important; border: 0 !important; border-radius: 12px !important;
  background: var(--tc-field) !important; box-shadow: none !important; position: relative !important; box-sizing: border-box !important;
}
html.tye-ts body[data-tc] :is(#tye-section-dialog, #tye-explode-dialog, #tye-3dfea-mat-dialog, #tye-3dfea-progress, #tye-3dfea-result-dialog, #tye-motion-panel, #tye-cfdpro-panel, #tye-mates-panel, #tye-pdm-panel, #tye-cmp-panel, #tye-configs-panel, #tye-cstr-panel, #tye-tc-classa)[data-tc-card] .secp-thumb { display: none !important; }
html.tye-ts body[data-tc] :is(#tye-section-dialog, #tye-explode-dialog, #tye-3dfea-mat-dialog, #tye-3dfea-progress, #tye-3dfea-result-dialog, #tye-motion-panel, #tye-cfdpro-panel, #tye-mates-panel, #tye-pdm-panel, #tye-cmp-panel, #tye-configs-panel, #tye-cstr-panel, #tye-tc-classa)[data-tc-card] :is(.v3d-sect-ax, .tc-seg > button) {
  flex: 1 1 0 !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; gap: 8px !important;
  height: 44px !important; min-height: 44px !important; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 9px !important;
  background: transparent !important; color: var(--tc-ink2) !important; box-shadow: none !important; font: 500 13px/1 var(--tc-font) !important; letter-spacing: .04em !important;
  cursor: pointer !important; touch-action: manipulation;
}
html.tye-ts body[data-tc] :is(#tye-section-dialog, #tye-explode-dialog, #tye-3dfea-mat-dialog, #tye-3dfea-progress, #tye-3dfea-result-dialog, #tye-motion-panel, #tye-cfdpro-panel, #tye-mates-panel, #tye-pdm-panel, #tye-cmp-panel, #tye-configs-panel, #tye-cstr-panel, #tye-tc-classa)[data-tc-card] :is(.v3d-sect-ax.on, .tc-seg > button.on) { background: var(--tc-seg-on) !important; color: var(--tc-acc-ink) !important; font-weight: 600 !important; box-shadow: var(--tc-seg-sh) !important; }
html.tye-ts body[data-tc] :is(#tye-section-dialog, #tye-explode-dialog, #tye-3dfea-mat-dialog, #tye-3dfea-progress, #tye-3dfea-result-dialog, #tye-motion-panel, #tye-cfdpro-panel, #tye-mates-panel, #tye-pdm-panel, #tye-cmp-panel, #tye-configs-panel, #tye-cstr-panel, #tye-tc-classa)[data-tc-card] .v3d-sect-ax::before { background: currentColor !important; }

/* ---------- 8. per card ---------- */
/* Section View / Explode (phase_section_panel.js): the axis segment, the slider and its value box, Flip / Center, Collapse / Full 2-up */
html.tye-ts body[data-tc] :is(#tye-section-dialog, #tye-explode-dialog)[data-tc-card] :is(.v3d-section, .v3d-explode) { display: block !important; padding: 14px !important; margin: 0 !important; }
html.tye-ts body[data-tc] :is(#tye-section-dialog, #tye-explode-dialog)[data-tc-card] :is(#v3d-section-controls, #v3d-explode-controls):not([style*="display: none"]) {
  display: flex !important; flex-wrap: wrap !important; align-items: center !important; gap: 12px 8px !important; padding: 0 !important; margin: 0 !important; background: transparent !important; border: 0 !important;
}
html.tye-ts body[data-tc] #tye-section-dialog[data-tc-card] .v3d-sect-seg { flex: 1 1 100% !important; }
html.tye-ts body[data-tc] :is(#tye-section-dialog, #tye-explode-dialog)[data-tc-card] input[type=range] { flex: 1 1 200px !important; width: auto !important; min-width: 0 !important; }
html.tye-ts body[data-tc] #tye-explode-dialog[data-tc-card] input[type=range] { flex: 1 1 100% !important; }
html.tye-ts body[data-tc] #tye-section-dialog[data-tc-card] .v3d-section-val {
  display: inline-flex !important; align-items: center !important; justify-content: flex-end !important; flex: 0 0 88px !important; width: 88px !important; height: 44px !important;
  box-sizing: border-box !important; padding: 0 12px !important; margin: 0 !important; background: var(--tc-field) !important; border: 1px solid var(--tc-line) !important;
  border-radius: 12px !important; color: var(--tc-ink) !important; font: 600 16px/1 var(--tc-font) !important; white-space: nowrap !important;
}
html.tye-ts body[data-tc] :is(#tye-section-dialog, #tye-explode-dialog)[data-tc-card] :is(.v3d-sect-ibtn, .secp-qbtn) { flex: 1 1 calc(50% - 4px) !important; }
html.tye-ts body[data-tc] :is(#tye-section-dialog, #tye-explode-dialog)[data-tc-card] .v3d-sect-ibtn::after { font: 500 14px/1 var(--tc-font) !important; color: inherit !important; }
html.tye-ts body[data-tc] :is(#tye-section-dialog, #tye-explode-dialog)[data-tc-card] :is(.v3d-sect-ibtn, .secp-qbtn) i { color: var(--tc-ink2) !important; }
/* Explode on a one-body part opens (shipped) with nothing to spread: the slider waits */
html.tye-ts body[data-tc] #tye-explode-dialog[data-tc-card][data-tc-onebody] :is(input[type=range], .secp-qbtn) { opacity: .45 !important; pointer-events: none !important; }

/* FEA - the material picker (cad_sketch3d.js): METALS / OTHER, two tiles to a row, the selected tile tinted with a check */
html.tye-ts body[data-tc] #tye-3dfea-mat-dialog[data-tc-card] .fea-mbody { padding: 4px 14px 12px !important; display: block !important; }
html.tye-ts body[data-tc] #tye-3dfea-mat-dialog[data-tc-card] .fea-msec { --ma: var(--tc-acc); --mt: var(--tc-tint); --mt2: var(--tc-tint); --mr: transparent; margin: 0 !important; padding: 0 !important; background: transparent !important; border: 0 !important; }
html.tye-ts body[data-tc] #tye-3dfea-mat-dialog[data-tc-card] .fea-msh { display: flex !important; align-items: center !important; justify-content: space-between !important; padding: 12px 2px 8px !important; margin: 0 !important; background: transparent !important; border: 0 !important; }
html.tye-ts body[data-tc] #tye-3dfea-mat-dialog[data-tc-card] .fea-msh::before { content: none !important; display: none !important; }
html.tye-ts body[data-tc] #tye-3dfea-mat-dialog[data-tc-card] .fea-mcnt { height: 18px !important; padding: 0 7px !important; border-radius: 9px !important; background: var(--tc-field) !important; color: var(--tc-ink2) !important; font: 600 11px/18px var(--tc-font) !important; letter-spacing: 0 !important; margin: 0 !important; }
html.tye-ts body[data-tc] #tye-3dfea-mat-dialog[data-tc-card] .fea-mgrid { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 6px !important; }
html.tye-ts body[data-tc] #tye-3dfea-mat-dialog[data-tc-card] .fea-mat-card {
  display: flex !important; align-items: center !important; gap: 10px !important; min-width: 0 !important; min-height: 56px !important; padding: 8px 10px !important; margin: 0 !important;
  box-sizing: border-box !important; border: 1px solid transparent !important; border-radius: 12px !important; background: var(--tc-field) !important; box-shadow: none !important;
  color: var(--tc-ink) !important; cursor: pointer !important; transform: none !important; touch-action: manipulation; position: relative !important;
}
html.tye-ts body[data-tc] #tye-3dfea-mat-dialog[data-tc-card] .fea-mat-card:active { background: var(--tc-press) !important; }
html.tye-ts body[data-tc] #tye-3dfea-mat-dialog[data-tc-card] .fea-mat-card.is-selected { background: var(--tc-tint) !important; border-color: var(--tc-acc) !important; }
html.tye-ts body[data-tc] #tye-3dfea-mat-dialog[data-tc-card] .fea-mchip {
  display: flex !important; align-items: center !important; justify-content: center !important; flex: none !important; width: 36px !important; height: 36px !important; border-radius: 11px !important;
  background: var(--tc-sheet) !important; color: var(--tc-ink2) !important; box-shadow: none !important; border: 0 !important; margin: 0 !important;
}
html.tye-ts body[data-tc] #tye-3dfea-mat-dialog[data-tc-card] .fea-mchip i { font-size: 20px !important; color: inherit !important; }
html.tye-ts body[data-tc] #tye-3dfea-mat-dialog[data-tc-card] .fea-mat-card.is-selected .fea-mchip { background: var(--tc-acc) !important; color: var(--tc-sheet) !important; }
html.tye-ts body[data-tc] #tye-3dfea-mat-dialog[data-tc-card] .fea-mat-card.is-selected .fea-mchip i { color: var(--tc-sheet) !important; }
html.tye-ts body[data-tc] #tye-3dfea-mat-dialog[data-tc-card] .fea-mat-card.is-selected .fea-mchip i::before { content: "\ea5e" !important; }
html.tye-ts body[data-tc] #tye-3dfea-mat-dialog[data-tc-card] .fea-mck { display: none !important; }
html.tye-ts body[data-tc] #tye-3dfea-mat-dialog[data-tc-card] .fea-mtx { display: flex !important; flex-direction: column !important; gap: 2px !important; min-width: 0 !important; flex: 1 1 auto !important; }
html.tye-ts body[data-tc] #tye-3dfea-mat-dialog[data-tc-card] .fea-mat-name { font: 500 14px/1.2 var(--tc-font) !important; color: var(--tc-ink) !important; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; }
html.tye-ts body[data-tc] #tye-3dfea-mat-dialog[data-tc-card] .fea-mat-props { font: 400 12px/1.3 var(--tc-font) !important; color: var(--tc-ink3) !important; white-space: normal !important; overflow: visible !important; text-overflow: clip !important; }
html.tye-ts body[data-tc] #tye-3dfea-mat-dialog[data-tc-card] [data-tc-pri] svg { width: 12px !important; height: 12px !important; }
/* under 320 px: one tile to a row (the desktop data-tdock-narrow rule) */
@media (max-width: 335px) {
  html.tye-ts body[data-tc] #tye-3dfea-mat-dialog[data-tc-card] .fea-mgrid, html.tye-ts body[data-tc] #tye-cfdpro-panel[data-tc-card] .grid { grid-template-columns: minmax(0, 1fr) !important; }
}

/* FEA - running (peek only): the stage in the subline, the percent in the state chip, the header's hairline is the 4 px progress
   track; the footer holds the step line and Cancel FEA (destructive words) */
html.tye-ts body[data-tc] #tye-3dfea-progress[data-tc-card] > .fea-body { justify-content: space-between !important; flex-wrap: nowrap !important; }
html.tye-ts body[data-tc] #tye-3dfea-progress[data-tc-card] .fea-prog-track {
  position: absolute !important; left: 0 !important; right: 0 !important; top: -4px !important; height: 4px !important; margin: 0 !important; border-radius: 0 !important;
  background: var(--tc-press) !important; overflow: hidden !important; border: 0 !important;
}
html.tye-ts body[data-tc] #tye-3dfea-progress[data-tc-card] .fea-prog-fill { height: 100% !important; border-radius: 0 !important; }
html.tye-ts body[data-tc] #tye-3dfea-progress[data-tc-card] .fea-prog-fill:not([style*="background"]) { background: var(--tc-acc) !important; }
html.tye-ts body[data-tc] #tye-3dfea-progress[data-tc-card] .fea-prog-info {
  display: flex !important; align-items: center !important; gap: 0 !important; flex: 1 1 auto !important; min-width: 0 !important; margin: 0 !important; padding: 0 !important;
  font: 400 13px/1.3 var(--tc-font) !important; color: var(--tc-ink2) !important; white-space: nowrap !important; overflow: hidden !important;
}
html.tye-ts body[data-tc] #tye-3dfea-progress[data-tc-card] .fea-prog-info > span { overflow: hidden !important; text-overflow: ellipsis !important; color: inherit !important; font: inherit !important; }
html.tye-ts body[data-tc] #tye-3dfea-progress[data-tc-card] #tye-3dfea-elapsed::before { content: '\00a0\00b7\00a0' !important; }
html.tye-ts body[data-tc] #tye-3dfea-progress[data-tc-card] .fea-actions { display: flex !important; flex: none !important; margin: 0 !important; padding: 0 !important; order: 4 !important; }

/* FEA - the result: the module's three result cards on the field (data colours kept), Done in a footer */
html.tye-ts body[data-tc] #tye-3dfea-result-dialog[data-tc-card] > .fea-body { display: flex !important; flex-direction: column !important; gap: 8px !important; padding: 14px !important; }
html.tye-ts body[data-tc] #tye-3dfea-result-dialog[data-tc-card] .fea-res-card { margin: 0 !important; padding: 12px 14px !important; border-radius: 12px !important; background: var(--tc-field) !important; border: 0 !important; box-shadow: none !important; }
html.tye-ts body[data-tc] #tye-3dfea-result-dialog[data-tc-card] .fea-res-yield, html.tye-ts body[data-tc] #tye-3dfea-result-dialog[data-tc-card] .fea-res-pct { font: 400 12px/1.3 var(--tc-font) !important; color: var(--tc-ink3) !important; }
html.tye-ts body[data-tc] #tye-3dfea-result-dialog[data-tc-card] .fea-res-unit { color: var(--tc-ink3) !important; }
html.tye-ts body[data-tc] #tye-3dfea-result-dialog[data-tc-card] .fea-res-badge { font: 600 11px/1 var(--tc-font) !important; padding: 6px 8px !important; border-radius: 9px !important; }
html.tye-ts body[data-tc] #tye-3dfea-result-dialog[data-tc-card] .fea-mesh { margin: 0 !important; padding: 6px 2px !important; background: transparent !important; border: 0 !important; display: flex !important; gap: 8px !important; justify-content: space-between !important; align-items: center !important; flex-wrap: wrap !important; }
html.tye-ts body[data-tc] #tye-3dfea-result-dialog[data-tc-card] .fea-mesh .c2 { font: 400 12px/1.4 var(--tc-font) !important; color: var(--tc-ink3) !important; }
html.tye-ts body[data-tc] #tye-3dfea-result-dialog[data-tc-card] .fea-mesh .tc-gi { font-size: 14px !important; margin-right: 4px !important; vertical-align: -2px !important; }
html.tye-ts body[data-tc] #tye-3dfea-result-dialog[data-tc-card] .tc-foot-own { justify-content: flex-end !important; }
/* (in light, the result's numbers a shade darker than the module's data colours - 22 px bold needs 3:1 on the field - and the verdict badge
   and the Converged line darker still, small text needs 4.5:1; the stress bar and the dark theme keep the module's colours - fix round 2) */
html.tye-ts:not([data-theme="dark"]) body[data-tc] #tye-3dfea-result-dialog[data-tc-card] .fea-res-val[style*="#f59e0b"] { color: #b45309 !important; }
html.tye-ts:not([data-theme="dark"]) body[data-tc] #tye-3dfea-result-dialog[data-tc-card] .fea-res-val[style*="#ef4444"] { color: #c42b23 !important; }
html.tye-ts:not([data-theme="dark"]) body[data-tc] #tye-3dfea-result-dialog[data-tc-card] .fea-res-val[style*="#10b981"] { color: #047857 !important; }
html.tye-ts:not([data-theme="dark"]) body[data-tc] #tye-3dfea-result-dialog[data-tc-card] .fea-res-val[style*="#5eead4"] { color: #0f766e !important; }
html.tye-ts:not([data-theme="dark"]) body[data-tc] #tye-3dfea-result-dialog[data-tc-card] .fea-res-badge[style*="badge-c:#f59e0b"] { color: #92400e !important; }
html.tye-ts:not([data-theme="dark"]) body[data-tc] #tye-3dfea-result-dialog[data-tc-card] .fea-res-badge[style*="badge-c:#ef4444"] { color: #a4221b !important; }
html.tye-ts:not([data-theme="dark"]) body[data-tc] #tye-3dfea-result-dialog[data-tc-card] .fea-res-badge[style*="badge-c:#10b981"] { color: #166534 !important; }
html.tye-ts:not([data-theme="dark"]) body[data-tc] #tye-3dfea-result-dialog[data-tc-card] .fea-conv[style*="conv:#10b981"] { color: #047857 !important; }
html.tye-ts:not([data-theme="dark"]) body[data-tc] #tye-3dfea-result-dialog[data-tc-card] .fea-conv[style*="conv:#f59e0b"] { color: #92400e !important; }
/* (in dark, the CRITICAL / UNRESOLVED and SAFE badges in the dark critical / ok tokens: the module's #ef4444 and #10b981 at 11 px on the
   card's field and their tints measured 3.3 and 4.4:1; CAUTION's #f59e0b passes there, 4.9 - fix round 3) */
html.tye-ts[data-theme="dark"] body[data-tc] #tye-3dfea-result-dialog[data-tc-card] .fea-res-badge[style*="badge-c:#ef4444"] { color: #ff7a71 !important; }
html.tye-ts[data-theme="dark"] body[data-tc] #tye-3dfea-result-dialog[data-tc-card] .fea-res-badge[style*="badge-c:#10b981"] { color: #5fd08a !important; }

/* Motion Study (phase_motion_occt.js): DRIVERS, ADD A DRIVER, the gears row; the footer Speed / Stop / Play (Play at the right) */
html.tye-ts body[data-tc] #tye-motion-panel[data-tc-card] .list { padding: 12px 14px 4px !important; display: block !important; }
html.tye-ts body[data-tc] #tye-motion-panel[data-tc-card] .list::before { content: 'Drivers' !important; display: block !important; margin: 0 0 8px 2px !important; font: 600 11px/18px var(--tc-font) !important; letter-spacing: .06em !important; text-transform: uppercase !important; color: var(--tc-ink3) !important; }
html.tye-ts body[data-tc] #tye-motion-panel[data-tc-card] .item {
  display: flex !important; align-items: center !important; gap: 8px !important; min-height: 52px !important; margin: 0 0 6px !important; padding: 4px 4px 4px 12px !important;
  border: 0 !important; border-radius: 12px !important; background: var(--tc-field) !important; color: var(--tc-ink) !important; box-sizing: border-box !important;
}
html.tye-ts body[data-tc] #tye-motion-panel[data-tc-card] .item .nm { flex: 1 1 auto !important; min-width: 0 !important; font: 500 14px/1.2 var(--tc-font) !important; color: var(--tc-ink) !important; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; }
html.tye-ts body[data-tc] #tye-motion-panel[data-tc-card] .item input.r { width: 64px !important; flex: none !important; padding: 0 10px !important; background: var(--tc-sheet) !important; text-align: right !important; }
html.tye-ts body[data-tc] #tye-motion-panel[data-tc-card] .item > span:not(.nm):not(.dir):not(.del) { font: 400 12px/1 var(--tc-font) !important; color: var(--tc-ink3) !important; flex: none !important; }
html.tye-ts body[data-tc] #tye-motion-panel[data-tc-card] .item :is(.dir, .del) {
  display: inline-flex !important; align-items: center !important; justify-content: center !important; flex: none !important; width: 44px !important; height: 44px !important;
  margin: 0 !important; padding: 0 !important; border-radius: 22px !important; color: var(--tc-ink2) !important; background: transparent !important; font-size: 0 !important; cursor: pointer !important; opacity: 1 !important;
}
html.tye-ts body[data-tc] #tye-motion-panel[data-tc-card] .item :is(.dir, .del):active { background: var(--tc-press) !important; }
html.tye-ts body[data-tc] #tye-motion-panel[data-tc-card] .item :is(.dir, .del)::before { font: 18px/1 'tabler-icons' !important; speak: none; -webkit-font-smoothing: antialiased; }
html.tye-ts body[data-tc] #tye-motion-panel[data-tc-card] .item .dir::before { content: "\eb15" !important; }
html.tye-ts body[data-tc] #tye-motion-panel[data-tc-card] .item .del::before { content: "\eb55" !important; }
html.tye-ts body[data-tc] #tye-motion-panel[data-tc-card] .empty { padding: 6px 4px 10px !important; color: var(--tc-ink3) !important; font: 400 13px/1.5 var(--tc-font) !important; text-align: left !important; }
html.tye-ts body[data-tc] #tye-motion-panel[data-tc-card] .empty b { color: var(--tc-ink2) !important; font-weight: 500 !important; }
html.tye-ts body[data-tc] #tye-motion-panel[data-tc-card] .addrow { display: flex !important; flex-wrap: wrap !important; align-items: center !important; gap: 8px !important; padding: 8px 14px 4px !important; border: 0 !important; }
html.tye-ts body[data-tc] #tye-motion-panel[data-tc-card] .addrow::before { content: 'Add a driver' !important; flex: 1 1 100% !important; display: block !important; margin: 4px 0 0 2px !important; font: 600 11px/18px var(--tc-font) !important; letter-spacing: .06em !important; text-transform: uppercase !important; color: var(--tc-ink3) !important; }
html.tye-ts body[data-tc] #tye-motion-panel[data-tc-card] .addrow .bsel { flex: 1 1 100% !important; width: 100% !important; min-width: 0 !important; }
html.tye-ts body[data-tc] #tye-motion-panel[data-tc-card] .addrow .kind { flex: 0 0 120px !important; width: 120px !important; }
html.tye-ts body[data-tc] #tye-motion-panel[data-tc-card] .addrow .rpm { flex: 0 0 72px !important; width: 72px !important; }
html.tye-ts body[data-tc] #tye-motion-panel[data-tc-card] .addrow .addbtn { flex: 1 1 0 !important; }
html.tye-ts body[data-tc] #tye-motion-panel[data-tc-card] .gactrow { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px !important; padding: 8px 14px 14px !important; border: 0 !important; }
html.tye-ts body[data-tc] #tye-motion-panel[data-tc-card] .gactrow .gact { width: 100% !important; }
html.tye-ts body[data-tc] #tye-motion-panel[data-tc-card] .foot { flex-wrap: nowrap !important; }
html.tye-ts body[data-tc] #tye-motion-panel[data-tc-card] .foot .sp {
  order: 0 !important; flex: 1 1 auto !important; min-width: 0 !important; display: flex !important; align-items: center !important; gap: 8px !important; margin: 0 !important;
  font: 500 12px/1 var(--tc-font) !important; color: var(--tc-ink3) !important;
}
html.tye-ts body[data-tc] #tye-motion-panel[data-tc-card] .foot .sp input { flex: 1 1 auto !important; width: auto !important; min-width: 48px !important; }

/* CFD Pro (phase_cfd_protools_panel.js): its scenario tiles keep their own colours (data), two to a row */
html.tye-ts body[data-tc] #tye-cfdpro-panel[data-tc-card] > .body { padding: 6px 14px 12px !important; display: block !important; }
html.tye-ts body[data-tc] #tye-cfdpro-panel[data-tc-card] .cat-h { display: flex !important; align-items: center !important; gap: 8px !important; padding: 12px 2px 8px !important; margin: 0 !important; background: transparent !important; border: 0 !important; }
html.tye-ts body[data-tc] #tye-cfdpro-panel[data-tc-card] .cat-h .dot { display: none !important; }
html.tye-ts body[data-tc] #tye-cfdpro-panel[data-tc-card] .cat-h .lbl { flex: 1 1 auto !important; }
html.tye-ts body[data-tc] #tye-cfdpro-panel[data-tc-card] .cat-h .cnt { height: 18px !important; padding: 0 7px !important; border-radius: 9px !important; background: var(--tc-field) !important; color: var(--tc-ink2) !important; font: 600 11px/18px var(--tc-font) !important; }
html.tye-ts body[data-tc] #tye-cfdpro-panel[data-tc-card] .grid { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 6px !important; }
html.tye-ts body[data-tc] #tye-cfdpro-panel[data-tc-card] .sc {
  display: flex !important; align-items: center !important; gap: 10px !important; min-height: 64px !important; min-width: 0 !important; padding: 8px 10px !important; margin: 0 !important;
  box-sizing: border-box !important; border: 1px solid transparent !important; border-radius: 12px !important; background: var(--tc-field) !important; box-shadow: none !important; cursor: pointer !important; transform: none !important;
}
html.tye-ts body[data-tc] #tye-cfdpro-panel[data-tc-card] .sc:active { background: var(--tc-press) !important; }
html.tye-ts body[data-tc] #tye-cfdpro-panel[data-tc-card] .sc .ic2 { display: flex !important; align-items: center !important; justify-content: center !important; flex: none !important; width: 36px !important; height: 36px !important; border-radius: 11px !important; background: var(--c-t) !important; color: var(--c) !important; }
html.tye-ts body[data-tc] #tye-cfdpro-panel[data-tc-card] .sc .ic2 i { font-size: 20px !important; color: inherit !important; }
html.tye-ts[data-theme="dark"] body[data-tc] #tye-cfdpro-panel[data-tc-card] .sc[data-id="real-mrf"] { --c: #c77dde !important; --c-t: rgba(199, 125, 222, .18) !important; }
html.tye-ts body[data-tc] #tye-cfdpro-panel[data-tc-card] .sc .tx { display: flex !important; flex-direction: column !important; gap: 2px !important; min-width: 0 !important; }
html.tye-ts body[data-tc] #tye-cfdpro-panel[data-tc-card] .sc .name { word-break: normal !important; overflow-wrap: break-word !important; font: 600 13px/1.2 var(--tc-font) !important; color: var(--tc-ink) !important; white-space: normal !important; overflow: hidden !important; display: -webkit-box !important; -webkit-line-clamp: 2 !important; -webkit-box-orient: vertical !important; text-overflow: clip !important; }
html.tye-ts body[data-tc] #tye-cfdpro-panel[data-tc-card] .sc .desc { font: 400 11px/1.3 var(--tc-font) !important; color: var(--tc-ink3) !important; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; }
html.tye-ts body[data-tc] #tye-cfdpro-panel[data-tc-card] .result:empty { display: none !important; }
html.tye-ts body[data-tc] #tye-cfdpro-panel[data-tc-card] .foot [data-tc-pri] { flex: 0 0 auto !important; }

/* Mates (phase_assembly_mates.js): the list, the DOF line (the pick prompts), Insert / Mesh in the body; Clear and + Mate in the footer */
html.tye-ts body[data-tc] #tye-mates-panel[data-tc-card] .list { padding: 12px 14px 4px !important; display: block !important; }
html.tye-ts body[data-tc] #tye-mates-panel[data-tc-card] .item {
  display: flex !important; align-items: center !important; gap: 10px !important; min-height: 52px !important; margin: 0 0 6px !important; padding: 4px 4px 4px 12px !important;
  border: 0 !important; border-radius: 12px !important; background: var(--tc-field) !important; box-sizing: border-box !important;
}
html.tye-ts body[data-tc] #tye-mates-panel[data-tc-card] .item .ttl { font: 500 14px/1.2 var(--tc-font) !important; color: var(--tc-ink) !important; }
html.tye-ts body[data-tc] #tye-mates-panel[data-tc-card] .item .sub { font: 400 12px/1.3 var(--tc-font) !important; color: var(--tc-ink3) !important; }
html.tye-ts body[data-tc] #tye-mates-panel[data-tc-card] .item .body { flex: 1 1 auto !important; min-width: 0 !important; }
html.tye-ts body[data-tc] :is(#tye-mates-panel, #tye-configs-panel, #tye-cstr-panel)[data-tc-card] .item .del {
  display: inline-flex !important; align-items: center !important; justify-content: center !important; flex: none !important; width: 44px !important; height: 44px !important; margin: 0 !important;
  padding: 0 !important; border-radius: 22px !important; color: var(--tc-ink2) !important; background: transparent !important; font-size: 0 !important; opacity: 1 !important; cursor: pointer !important;
}
html.tye-ts body[data-tc] :is(#tye-mates-panel, #tye-configs-panel, #tye-cstr-panel)[data-tc-card] .item .del::before { content: "\eb55" !important; font: 18px/1 'tabler-icons' !important; }
html.tye-ts body[data-tc] :is(#tye-mates-panel, #tye-configs-panel, #tye-cstr-panel, #tye-pdm-panel, #tye-motion-panel)[data-tc-card] .empty {
  padding: 18px 8px !important; color: var(--tc-ink3) !important; font: 400 13px/1.5 var(--tc-font) !important; text-align: center !important;
}
html.tye-ts body[data-tc] :is(#tye-mates-panel, #tye-configs-panel, #tye-cstr-panel, #tye-pdm-panel)[data-tc-card] .empty .ico { color: var(--tc-ink3) !important; opacity: .5 !important; font-size: 28px !important; margin: 0 0 6px !important; }
html.tye-ts body[data-tc] :is(#tye-mates-panel, #tye-configs-panel, #tye-cstr-panel, #tye-pdm-panel, #tye-cmp-panel)[data-tc-card] .empty > span { opacity: 1 !important; color: var(--tc-ink3) !important; font-size: 13px !important; }
html.tye-ts body[data-tc] #tye-mates-panel[data-tc-card] .dof { padding: 10px 14px !important; border: 0 !important; color: var(--tc-ink3) !important; font: 500 12px/1.5 var(--tc-font) !important; display: flex !important; flex-wrap: wrap !important; align-items: center !important; gap: 6px !important; }
html.tye-ts body[data-tc] :is(#tye-mates-panel, #tye-cstr-panel)[data-tc-card] .dofnum { color: var(--tc-acc-ink) !important; font: 500 11.5px/1 var(--tc-mono) !important; }
html.tye-ts body[data-tc] #tye-mates-panel[data-tc-card] .dof .prompt { color: var(--tc-ink) !important; font-weight: 600 !important; }
html.tye-ts body[data-tc] #tye-mates-panel[data-tc-card] .dof .tbtn {
  height: 44px !important; min-height: 44px !important; padding: 0 14px !important; margin: 0 !important; border: 0 !important; border-radius: 22px !important;
  background: var(--tc-field) !important; color: var(--tc-ink) !important; font: 500 14px/1 var(--tc-font) !important; box-shadow: none !important;
}
html.tye-ts body[data-tc] #tye-mates-panel[data-tc-card] .dof input { width: 88px !important; }
html.tye-ts body[data-tc] :is(#tye-section-dialog, #tye-explode-dialog, #tye-3dfea-mat-dialog, #tye-3dfea-progress, #tye-3dfea-result-dialog, #tye-motion-panel, #tye-cfdpro-panel, #tye-mates-panel, #tye-pdm-panel, #tye-cmp-panel, #tye-configs-panel, #tye-cstr-panel, #tye-tc-classa)[data-tc-card] .tc-row { display: flex !important; align-items: center !important; gap: 8px !important; padding: 4px 14px 12px !important; }
html.tye-ts body[data-tc] :is(#tye-section-dialog, #tye-explode-dialog, #tye-3dfea-mat-dialog, #tye-3dfea-progress, #tye-3dfea-result-dialog, #tye-motion-panel, #tye-cfdpro-panel, #tye-mates-panel, #tye-pdm-panel, #tye-cmp-panel, #tye-configs-panel, #tye-cstr-panel, #tye-tc-classa)[data-tc-card] .tc-row.tc-two > * { flex: 1 1 0 !important; }

/* Versions (phase_pdm_ui.js): the branch row, the counts, TIMELINE, Export / Import at the end of the body; the message field and Commit
   are the footer (they sit on the keyboard); the drawer's backdrop is not used */
html.tye-ts body[data-tc] #tye-pdm-panel[data-tc-card] .tc-pdm { order: 10 !important; padding: 12px 14px 4px !important; }
html.tye-ts body[data-tc] #tye-pdm-panel[data-tc-card] .tc-selw { position: relative !important; display: flex !important; flex: 0 0 140px !important; }
html.tye-ts body[data-tc] #tye-pdm-panel[data-tc-card] .tc-selw select { -webkit-appearance: none !important; appearance: none !important; width: 100% !important; }
html.tye-ts body[data-tc] #tye-pdm-panel[data-tc-card] .tc-selw i { position: absolute !important; right: 10px !important; top: 13px !important; font-size: 18px !important; color: var(--tc-ink3) !important; pointer-events: none !important; }
html.tye-ts body[data-tc] #tye-pdm-panel[data-tc-card] .tc-pdm [data-tc-sec] { flex: 0 0 auto !important; }
html.tye-ts body[data-tc] #tye-pdm-panel[data-tc-card] .chipsbar { order: 11 !important; display: flex !important; flex-wrap: wrap !important; gap: 6px !important; padding: 0 14px !important; min-height: 44px !important; align-items: center !important; border: 0 !important; }
html.tye-ts body[data-tc] #tye-pdm-panel[data-tc-card] .chipsbar .chip { display: inline-flex !important; align-items: center !important; height: 36px !important; padding: 0 12px !important; border: 0 !important; border-radius: 12px !important; background: var(--tc-field) !important; color: var(--tc-ink2) !important; font: 500 12px/1 var(--tc-font) !important; }
html.tye-ts body[data-tc] #tye-pdm-panel[data-tc-card] .timeline { order: 12 !important; padding: 8px 14px 4px !important; display: block !important; }
html.tye-ts body[data-tc] #tye-pdm-panel[data-tc-card] .timeline::before { content: 'Timeline' !important; display: block !important; margin: 4px 0 8px 2px !important; font: 600 11px/18px var(--tc-font) !important; letter-spacing: .06em !important; text-transform: uppercase !important; color: var(--tc-ink3) !important; }
html.tye-ts body[data-tc] #tye-pdm-panel[data-tc-card] .timeline .empty { text-align: center !important; padding: 4px 8px 8px !important; }
html.tye-ts body[data-tc] #tye-pdm-panel[data-tc-card] .timeline .empty .ico { display: inline-block !important; font-size: 18px !important; margin: 0 6px 0 0 !important; vertical-align: -3px !important; opacity: .7 !important; }
html.tye-ts body[data-tc] #tye-pdm-panel[data-tc-card] .timeline .commit {
  display: flex !important; align-items: center !important; gap: 8px !important; min-height: 52px !important; margin: 0 0 6px !important; padding: 4px 4px 4px 12px !important;
  border: 0 !important; border-radius: 12px !important; background: var(--tc-field) !important; box-sizing: border-box !important;
}
html.tye-ts body[data-tc] #tye-pdm-panel[data-tc-card] .timeline .commit .msg { font: 500 14px/1.25 var(--tc-font) !important; color: var(--tc-ink) !important; }
html.tye-ts body[data-tc] #tye-pdm-panel[data-tc-card] .timeline .commit .meta { font: 400 12px/1.3 var(--tc-font) !important; color: var(--tc-ink3) !important; }
html.tye-ts body[data-tc] #tye-pdm-panel[data-tc-card] .timeline .commit .info { flex: 1 1 auto !important; min-width: 0 !important; }
html.tye-ts body[data-tc] #tye-pdm-panel[data-tc-card] .timeline .commit .acts { opacity: 1 !important; pointer-events: auto !important; position: static !important; transform: none !important; display: flex !important; gap: 0 !important; flex: none !important; background: transparent !important; }
html.tye-ts body[data-tc] #tye-pdm-panel[data-tc-card] .timeline .commit .acts button {
  width: 44px !important; height: 44px !important; min-height: 44px !important; padding: 0 !important; margin: 0 !important; border: 0 !important; border-radius: 22px !important;
  background: transparent !important; color: var(--tc-ink2) !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; transform: none !important;
}
html.tye-ts body[data-tc] #tye-pdm-panel[data-tc-card] .timeline .commit .acts button i { font-size: 18px !important; }
html.tye-ts body[data-tc] #tye-pdm-panel[data-tc-card] > .foot { order: 40 !important; display: flex !important; gap: 8px !important; justify-content: flex-start !important; padding: 4px 14px 14px !important; border: 0 !important; }
html.tye-ts body[data-tc] #tye-pdm-panel[data-tc-card] .quick { flex-wrap: nowrap !important; }
html.tye-ts body[data-tc] #tye-pdm-panel[data-tc-card] .quick .msg { flex: 1 1 auto !important; min-width: 0 !important; width: auto !important; }
html.tye-ts body[data-tc] #tye-pdm-panel[data-tc-card] .quick .commit-btn > span:first-child { display: none !important; }

/* Compare / Configurations / Constraints (phase_drawing_compare.js, phase_configurations.js, phase_constraints_pro.js) */
html.tye-ts body[data-tc] #tye-cmp-panel[data-tc-card] .status { padding: 12px 14px 4px !important; color: var(--tc-ink3) !important; font: 400 12px/1.4 var(--tc-font) !important; border: 0 !important; }
html.tye-ts body[data-tc] #tye-cmp-panel[data-tc-card] .stats { padding: 8px 14px 12px !important; display: block !important; }
html.tye-ts body[data-tc] #tye-cmp-panel[data-tc-card] .stats .row { display: flex !important; align-items: center !important; gap: 10px !important; min-height: 44px !important; margin: 0 0 6px !important; padding: 6px 12px 6px 8px !important; border: 0 !important; border-radius: 12px !important; background: var(--tc-field) !important; box-sizing: border-box !important; opacity: 1 !important; }
html.tye-ts body[data-tc] #tye-cmp-panel[data-tc-card] .stats .row * { opacity: 1 !important; }
html.tye-ts body[data-tc] #tye-cmp-panel[data-tc-card] .stats .row .ttl { flex: 1 1 auto !important; font: 500 14px/1.2 var(--tc-font) !important; color: var(--tc-ink) !important; }
html.tye-ts body[data-tc] #tye-cmp-panel[data-tc-card] .stats .row .n { font: 600 14px/1 var(--tc-font) !important; color: var(--tc-ink2) !important; }
html.tye-ts body[data-tc] #tye-cmp-panel[data-tc-card] .foot .clear:empty::after,
html.tye-ts body[data-tc] #tye-cmp-panel[data-tc-card] .foot .clear::after { content: 'Clear' !important; }
html.tye-ts body[data-tc] #tye-cmp-panel[data-tc-card] .foot .clear i { display: none !important; }
html.tye-ts body[data-tc] :is(#tye-configs-panel, #tye-cstr-panel)[data-tc-card] .list { padding: 12px 14px 4px !important; display: block !important; }
html.tye-ts body[data-tc] :is(#tye-configs-panel, #tye-cstr-panel)[data-tc-card] .item {
  display: flex !important; align-items: center !important; gap: 10px !important; min-height: 52px !important; margin: 0 0 6px !important; padding: 4px 4px 4px 12px !important;
  border: 0 !important; border-radius: 12px !important; background: var(--tc-field) !important; box-sizing: border-box !important; color: var(--tc-ink) !important;
}
html.tye-ts body[data-tc] #tye-configs-panel[data-tc-card] .item.active { background: var(--tc-tint) !important; }
html.tye-ts body[data-tc] #tye-configs-panel[data-tc-card] .item .name { flex: 1 1 auto !important; font: 500 14px/1.2 var(--tc-font) !important; color: var(--tc-ink) !important; }
html.tye-ts body[data-tc] #tye-configs-panel[data-tc-card] .item .npar { font: 400 12px/1 var(--tc-font) !important; color: var(--tc-ink3) !important; background: transparent !important; }
html.tye-ts body[data-tc] #tye-configs-panel[data-tc-card] .item .npar::after { content: ' params' !important; }
html.tye-ts body[data-tc] #tye-configs-panel[data-tc-card] .item .dot { border-color: var(--tc-ink3) !important; }
html.tye-ts body[data-tc] #tye-configs-panel[data-tc-card] .item.active .dot { border-color: var(--tc-acc) !important; background: var(--tc-acc) !important; box-shadow: none !important; }
html.tye-ts body[data-tc] #tye-configs-panel[data-tc-card] .foot .load { order: 1 !important; }
html.tye-ts body[data-tc] #tye-configs-panel[data-tc-card] .foot .save { order: 2 !important; }
/* (a narrow card - a 360 px phone's sheet: Load and Save closer in, so Load, Save and Design Table keep one row - fix round 3) */
html.tye-ts body[data-tc][data-tc-narrow] #tye-configs-panel[data-tc-card] [data-tc-foot] > [data-tc-quiet] { padding: 0 10px !important; }
html.tye-ts body[data-tc] #tye-configs-panel[data-tc-card][data-tc-grey] .tc-chip { background: var(--tc-field) !important; color: var(--tc-ink3) !important; }
/* (greyed by colour, not by opacity - the same look as .45, while the focus ring keeps its full contrast; fix round 2) */
html.tye-ts body[data-tc] #tye-configs-panel[data-tc-card][data-tc-grey] :is([data-tc-pri], [data-tc-sec], [data-tc-quiet], [data-tc-dng], [data-tc-add])[aria-disabled="true"] { opacity: 1 !important; color: var(--tc-dis-ink) !important; }
html.tye-ts body[data-tc] #tye-configs-panel[data-tc-card][data-tc-grey] [data-tc-pri][aria-disabled="true"] { background-color: var(--tc-dis-pri) !important; color: var(--tc-dis-pri-fg) !important; }
html.tye-ts body[data-tc] #tye-configs-panel[data-tc-card][data-tc-grey] [data-tc-add][aria-disabled="true"] { background-color: var(--tc-dis-field) !important; }
html.tye-ts body[data-tc] #tye-cstr-panel[data-tc-card] .dof { display: flex !important; align-items: center !important; gap: 8px !important; padding: 10px 14px !important; border: 0 !important; color: var(--tc-ink3) !important; font: 500 12px/1 var(--tc-font) !important; }
html.tye-ts body[data-tc] #tye-cstr-panel[data-tc-card] .dof .state { font: 600 11px/18px var(--tc-font) !important; padding: 0 7px !important; border-radius: 9px !important; background: var(--tc-field) !important; color: var(--tc-ink2) !important; }

/* Class-A analysis (new, phase_touch_cards.js): the mode segment, the curvature ramp or the zebra note, Clear analysis and Done */
html.tye-ts body[data-tc] #tye-tc-classa .tc-own-hd { display: flex !important; }
html.tye-ts body[data-tc] #tye-tc-classa .tc-own-bd { display: flex !important; flex-direction: column !important; gap: 14px !important; padding: 14px !important; }
html.tye-ts body[data-tc] #tye-tc-classa .tc-legend[hidden], html.tye-ts body[data-tc] #tye-tc-classa .tc-note[hidden] { display: none !important; }
html.tye-ts body[data-tc] #tye-tc-classa .tc-ramp { height: 8px; border-radius: 4px; border: 1px solid var(--tc-line); background: linear-gradient(to right, rgb(26, 115, 255), #ffffff 50%, rgb(255, 38, 26)); }
html.tye-ts body[data-tc] #tye-tc-classa .tc-ends { display: flex; justify-content: space-between; margin-top: 6px; font: 400 12px/1.3 var(--tc-font); color: var(--tc-ink3); }
html.tye-ts body[data-tc] #tye-tc-classa .tc-note { margin: 0; font: 400 13px/1.5 var(--tc-font); color: var(--tc-ink3); }
html.tye-ts body[data-tc] #tye-tc-classa button { -webkit-tap-highlight-color: transparent; }

/* ---------- 9. around the card ---------- */
/* the rail: its sheet button lit while a card from that sheet is open (the area tint and accent icon, as the boards draw it), the 7 px in-use dot while a tool stays
   live with its card closed; at a phone's full detent the card has the rail's place and the rail steps aside */
html.tye-ts body[data-tc] #ts-quick button.tc-lit { background: var(--tc-tint) !important; color: var(--tc-acc-icon) !important; }
html.tye-ts body[data-tc] #ts-quick button.tc-dot { position: relative; }
html.tye-ts body[data-tc] #ts-quick button.tc-dot::after { content: ''; position: absolute; top: 7px; right: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--ts-dot); box-shadow: 0 0 0 2px var(--ts-sheet); pointer-events: none; }
html.tye-ts body[data-tc] #ts-quick { transition: opacity .22s ease, transform .26s var(--tc-ease), visibility 0s linear 0s; }
/* (hidden after its fade, not only faded: its buttons leave the Tab order and a screen reader's swipe - fix round 1) */
html.tye-ts body[data-tc][data-tc-full] #ts-quick {
  opacity: 0 !important; transform: translateX(24px) !important; pointer-events: none !important; visibility: hidden !important;
  transition: opacity .22s ease, transform .26s var(--tc-ease), visibility 0s linear .26s;
}
/* the open sheet's rows: in use for every live tool (the shipped in-use look) */
html.tye-ts body[data-tc] #ts-casc .ts-cp-row.tc-live .ts-cp-ic { color: var(--ts-dot); }
html.tye-ts body[data-tc] #ts-casc .ts-cp-row.tc-live:not(.is-act)::after { content: ''; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--ts-dot); }
/* a phone card takes the sheet pill's band: the pill steps aside, the cards and toasts keep the tab bar's line */
html.tye-ts body[data-tc][data-tc-pill0] { --ts-pill: 0px !important; }
html.tye-ts body[data-tc][data-tc-pill0] :is(#tye-ss-tabs, #tye-sheet-tabs) { visibility: hidden !important; pointer-events: none !important; }
html.tye-ts body[data-tc][data-tc-pill0] #toast#toast#toast#toast, html.tye-ts body[data-tc][data-tc-pill0] #mem-toast#mem-toast#mem-toast#mem-toast { bottom: calc(var(--ts-space) + 12px) !important; }
/* (a bottom sheet at half / peek: the toast rises over its top edge instead of covering the footer, the thumb zone - fix round 1. Not
   #mem-toast: touch_shell.css hides it by a slide below the screen's edge, which a raised bottom would leave in sight over the card) */
html.tye-ts body[data-tc][data-tc-lift] #toast#toast#toast#toast { bottom: var(--tc-lift, calc(var(--ts-space) + 12px)) !important; }
/* (R4C's model chip right of a side card - its mcPlace() puts it at left 16 + --tc-w + 16 whenever body[data-tc-open] is set in the
   side-left placement, and its wide rule keeps it on the tab bar's band - ran onto the centred sheet pill while a part built: a tap on the
   pill's Sheet 1 tab hit the chip, whose action went to the Chat. There it takes R4C's own narrow rule, 10 px over a pill that is showing
   (touch_shell.css --ts-pill: 54 px while #tye-ss-tabs.on / #tye-sheet-tabs is up, 0 without one), unless the card stepped the pill aside
   (data-tc-pill0) - all in CSS, so in the same frame as the pill and the card. Not !important: R4C's own inline bottom - over the R4T live
   pill - still wins. A first try measured the pill in the scan and left the chip on the band for a moment when the pill came back after
   the card (a build's Drawing -> Model switch) - fix round 10) */
html.tye-ts body[data-tc][data-tc-mode="side-left"][data-tc-open]:not([data-tc-pill0]) #tye-bc-mchip:not([data-at="desk"]) { bottom: calc(var(--ts-space, 78px) + var(--ts-pill, 0px)); }
/* the Pro Tools / Solid dock steps aside while a card is open; shown on purpose (its button) it stays over the card until that closes */
html.tye-ts body[data-tc][data-tc-open]:not([data-tc-pdover]) #tye-pro-dock { visibility: hidden !important; pointer-events: none !important; }
/* (shown on purpose it is in sight even where touch_shell.css steps it aside for Section / Explode / FEA / Versions / CFD Pro, whose
   panels are cards now - fix round 1. Only then: every other layer the shell steps it aside for - a rail sheet, the Profile sheet, a
   page, the tools sheets, a modal or overlay, the tree, the Properties card, a solid build - keeps it aside (a blanket rule left the Mode
   sheet's rows under the dock, measured) */
html.tye-ts:not(.ts-casc-open):not(.ts-sheet-open):not(.ts-page) body[data-tc][data-tc-pdover]:not(.mobile-panel-open):not(:has(> #mcm-sheet.open, > #dcm-sheet.open, .sk-panel:not([style*="display: none"]), .sk-ed2, #v3d-rp.rpd-open, #rp.rpd-open, .sk-modal-ov, .sp-panel.open, .pmi-panel.open, .moss-popup-ov, .tye-share-ov, .bs-popover.open, #mem-overlay.open, #pay-overlay.open, #search-modal:not(.d-none), #prompt-modal.show, #confirm-modal.show, #tye-solid-prog:not([style*="display: none"]), #terminal-panel[style*="display: flex"], #tasks-panel[style*="display: flex"], #plugin-panel[style*="display: flex"], .tye-dlg, body > .tye-popup)) #tye-pro-dock#tye-pro-dock { visibility: visible !important; pointer-events: auto !important; }
/* a tablet held upright: the tree steps aside while the centred sheet is over its column */
html.tye-ts body[data-tc][data-tc-yield-tree] :is(.sk-panel, .sk-ed2) { visibility: hidden !important; pointer-events: none !important; }
/* a tablet in landscape: the view cube slides right of the side card */
html.tye-ts body[data-tc] #cad-panel .v3d-viewcube { transition: left .26s var(--tc-ease); }
/* (a bottom sheet that covers all of the view cube but a strip thinner than a finger's target - a phone's full detent, 26 px of the cube
   in sight above the card: the browser's touch adjustment took a finger on the card's handle zone to the cube's 3D top face, under the
   card, and the camera turned to Top; the cube and its faces take no finger meanwhile - phase_touch_cards.js data-tc-cube, fix round 7.
   Not while most of the cube is in sight - a short phone's half: there the cube works, and a handle tap the browser gives to it is the
   card's (phase_touch_cards.js cubeCard) - fix round 8) */
html.tye-ts body[data-tc][data-tc-cube] #cad-panel .v3d-viewcube, html.tye-ts body[data-tc][data-tc-cube] #cad-panel .v3d-viewcube * { pointer-events: none !important; }
html.tye-ts body[data-tc][data-tc-mode="side-left"]:is([data-tc-open="s"], [data-tc-open="e"], [data-tc-open="fea"], [data-tc-open="feap"], [data-tc-open="fear"], [data-tc-open="motion"], [data-tc-open="cfd"], [data-tc-open="mates"], [data-tc-open="classa"]) #cad-panel .v3d-viewcube {
  left: calc(env(safe-area-inset-left, 0px) + 16px + var(--tc-w, 360px) + 16px) !important;
}

/* the live pill: Motion playing / an FEA run with no card in sight (44 px glass, bottom left, 10 px over the tab bar) */
html.tye-ts body[data-tc] #tye-tc-pill {
  position: fixed; left: calc(env(safe-area-inset-left, 0px) + 8px); bottom: calc(var(--ts-space) + var(--ts-pill, 0px)); z-index: 9005; display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 8px;
}
html.tye-ts body[data-tc] #tye-tc-pill[hidden], html.tye-ts body[data-tc] #tye-tc-pill .tc-pill[hidden] { display: none !important; }
html.tye-ts.ts-kb body[data-tc] #tye-tc-pill { display: none !important; }
html.tye-ts body[data-tc] #tye-tc-pill .tc-pill {
  display: inline-flex; align-items: center; height: 44px; box-sizing: border-box; margin: 0; padding: 0; border-radius: 22px;
  background: var(--tc-glass); -webkit-backdrop-filter: saturate(170%) blur(22px); backdrop-filter: saturate(170%) blur(22px); outline: 1px solid var(--tc-line); outline-offset: -1px;
  box-shadow: var(--tc-shadow); color: var(--tc-ink); -webkit-tap-highlight-color: transparent;
}
html.tye-ts body[data-tc] #tye-tc-pill :is(.tc-pm, .tc-pz) {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; min-height: 44px; box-sizing: border-box; margin: 0; border: 0; border-radius: 22px;
  background: transparent; color: inherit; font: 600 13px/1 var(--tc-font); cursor: pointer; touch-action: manipulation; box-shadow: none;
}
html.tye-ts body[data-tc] #tye-tc-pill .tc-pm { padding: 0 16px 0 12px; }
html.tye-ts body[data-tc] #tye-tc-pill .tc-pill[data-pill="motion"] .tc-pm { padding: 0 6px 0 12px; }
html.tye-ts body[data-tc] #tye-tc-pill .tc-pm > i { font-size: 20px; color: var(--tc-acc-icon); }
html.tye-ts body[data-tc] #tye-tc-pill .tc-pz { width: 44px; padding: 0; color: var(--tc-ink2); }
html.tye-ts body[data-tc] #tye-tc-pill .tc-pz i { font-size: 18px; }
html.tye-ts body[data-tc] #tye-tc-pill :is(.tc-pm, .tc-pz):active { background-color: var(--tc-press); }
html.tye-ts body[data-tc] #tye-tc-pill :focus-visible { outline: 2px solid var(--ts-dot); outline-offset: -2px; }
/* END TOUCH_CARDS_2026Q4 */
