/* The RC tools inherit the shop's reading type, paper and semantic colors. */
body.storefront #flash[data-active-flash-subtab="controller"] .flash-layout { display:block; }
body.storefront #flash .controller-console { padding:28px; background:#fff; color:#182336; border:1px solid #e2e8f0; border-radius:14px; box-shadow:none; overflow:visible; }
body.storefront #flash .controller-console::after,
body.storefront #flash .controller-console-section::before,
body.storefront #flash .controller-stop-button::before,
body.storefront #flash .controller-card-label::before { display:none; }
body.storefront #flash .controller-console * { text-shadow:none; }
body.storefront #flash .controller-console-header { display:flex; flex-wrap:wrap; gap:20px; align-items:center; justify-content:space-between; margin:0; padding:0; }
body.storefront #flash .controller-title-cluster { display:block; }
body.storefront #flash .controller-title-cluster h3 { font:600 22px/1.4 YSTBody,sans-serif; color:#182336; }
body.storefront #flash .controller-profile-line { display:flex; gap:6px 12px; margin:8px 0 0; padding:0; background:none; }
body.storefront #flash .controller-profile-line :is(span,strong) { font:400 14px/1.5 YSTBody,sans-serif; color:#5d6880; text-transform:none; }
body.storefront #flash .controller-profile-line strong { color:#182336; font-weight:600; }
body.storefront #flash .controller-test-actions { display:flex; flex-direction:column-reverse; align-items:flex-end; gap:8px; }
body.storefront #flash .controller-stop-button { min-height:48px; padding:12px 22px; background:#0057d9; color:#fff; border:0; border-radius:10px; font:600 16px/1.5 YSTBody,sans-serif; box-shadow:0 4px 8px #1823361f; }
body.storefront #flash .controller-stop-button:hover:not(:disabled) { background:#0048b5; }
body.storefront #flash .controller-stop-button:disabled { color:#5d6880; background:#edf1f6; box-shadow:none; cursor:not-allowed; }
body.storefront #flash .controller-status-pill { min-width:0; min-height:0; padding:0; background:none; border:0; color:#5d6880; font:500 14px/1.5 YSTBody,sans-serif; max-width:370px; text-align:right; }
body.storefront #flash .controller-status-pill::before { width:8px; height:8px; box-shadow:none; }
body.storefront #flash .controller-status-pill[data-state="good"] { color:#08724c; background:none; }
body.storefront #flash .controller-status-pill[data-state="busy"] { color:#0057d9; background:none; }
body.storefront #flash .controller-status-pill[data-state="warn"] { color:#805000; background:none; }
body.storefront #flash .controller-status-pill[data-state="bad"] { color:#b42335; background:none; }
body.storefront #flash .controller-connection-hint { margin:20px 0 12px; padding:14px 16px; color:#5d6880; font-size:14px; line-height:1.65; background:#f4f7fc; border-radius:10px; }
body.storefront #flash .controller-console[data-connection="warn"] .controller-connection-hint { background:#fff7e6; color:#805000; }
body.storefront #flash .controller-console[data-connection="bad"] .controller-connection-hint { background:#fff0f2; color:#b42335; }
body.storefront #flash .controller-live-meta { display:flex; flex-wrap:wrap; gap:8px 24px; color:#5d6880; font-size:14px; font-variant-numeric:tabular-nums; margin-bottom:28px; }
body.storefront #flash .controller-signal-guide { display:flex; flex-wrap:wrap; gap:4px 20px; justify-content:space-between; margin-bottom:14px; font-size:14px; line-height:1.6; color:#5d6880; }
body.storefront #flash .controller-signal-guide strong { font-size:18px; font-weight:600; }
body.storefront #flash .controller-test-grid { display:block; margin:0; }
body.storefront #flash .controller-console-section { background:none; border:0; border-radius:0; padding:0; box-shadow:none; }
body.storefront #flash .controller-metric-table h4 { display:none; }
body.storefront #flash .controller-metric-head,
body.storefront #flash .controller-metric-row { display:grid; grid-template-columns:170px minmax(120px,1fr) minmax(140px,220px) 90px; align-items:center; gap:20px; margin:0; padding:18px 0; border:0; border-bottom:1px solid #e2e8f0; border-radius:0; background:none; }
body.storefront #flash .controller-metric-head { padding:8px 0 12px; font:500 14px/1.5 YSTBody,sans-serif; color:#5d6880; text-transform:none; }
body.storefront #flash .controller-metric-row :is(span:first-child,strong,em) { font:500 16px/1.5 YSTBody,sans-serif; color:#182336; letter-spacing:0; text-transform:none; }
body.storefront #flash .controller-metric-row em { font-variant-numeric:tabular-nums; text-align:right; font-style:normal; }
body.storefront #flash .controller-metric-row strong { font-size:14px; color:#0057d9; }
body.storefront #flash .controller-metric-row[data-signal="missing"] :is(strong,em) { color:#5d6880; }
body.storefront #flash .controller-meter { display:block; position:relative; height:12px; border:0; border-radius:4px; background:#edf1f6; overflow:visible; }
body.storefront #flash .controller-meter::before { content:""; position:absolute; width:2px; height:20px; left:50%; top:-4px; background:#a9b8ce; box-shadow:none; z-index:1; }
body.storefront #flash .controller-meter[data-centered="false"]::before { display:none; }
body.storefront #flash .controller-meter-fill { position:absolute; left:0; top:0; width:100%; height:100%; background:#0057d9; border-radius:3px; transform-origin:left center; transition:none; box-shadow:none; }
body.storefront #flash .controller-meter[data-centered="true"] .controller-meter-fill { left:50%; width:50%; background:#0057d9; }
body.storefront #flash .controller-more { margin:28px 0 0; }
body.storefront #flash .controller-more>summary { cursor:pointer; padding:14px 0; min-height:48px; color:#0057d9; font-size:16px; font-weight:600; }
body.storefront #flash .controller-simulation-note { font-size:14px; margin:12px 0 18px; line-height:1.6; }
body.storefront #flash .controller-dashboard-grid { display:flex; flex-wrap:wrap; gap:16px 28px; margin-bottom:28px; padding:16px; border-radius:10px; background:#f4f7fc; }
body.storefront #flash .controller-gauge-card { flex:1 1 140px; padding:0; min-height:0; border:0; border-radius:0; background:none; box-shadow:none; }
body.storefront #flash .controller-gauge-card::before,
body.storefront #flash .controller-gauge-card::after,
body.storefront #flash .controller-speed-bar-block,
body.storefront #flash .controller-rpm-scale,
body.storefront #flash .controller-rpm-ticks { display:none; }
body.storefront #flash .controller-card-label { display:block; font:400 14px/1.5 YSTBody,sans-serif; color:#5d6880; text-transform:none; letter-spacing:0; margin-bottom:6px; }
body.storefront #flash .controller-gauge-card strong { font:600 18px/1.5 YSTBody,sans-serif; color:#182336; letter-spacing:0; }
body.storefront #flash .controller-speed-layout,
body.storefront #flash .controller-big-readout { display:flex; align-items:baseline; gap:6px; }
body.storefront #flash .controller-big-readout>span { font-size:14px; color:#5d6880; }
body.storefront #flash .controller-side-stack { margin-bottom:28px; }
body.storefront #flash .controller-console-section h4 { font:600 18px/1.5 YSTBody,sans-serif; color:#182336; padding:0; margin:0 0 12px; }
body.storefront #flash .controller-event-grid,
body.storefront #flash .controller-light-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:0 24px; }
body.storefront #flash :is(.controller-event-grid,.controller-light-grid)>div { min-height:76px; border:0; border-bottom:1px solid #e2e8f0; border-radius:0; background:none; box-shadow:none; padding:14px 0 14px 32px; position:relative; display:block; }
body.storefront #flash :is(.controller-event-grid,.controller-light-grid)>div::before { left:0; top:16px; width:20px; height:20px; margin:0; background-color:#5d6880; box-shadow:none; }
body.storefront #flash :is(.controller-event-grid,.controller-light-grid) :is(span,strong) { display:block; font:400 14px/1.5 YSTBody,sans-serif; color:#5d6880; text-transform:none; letter-spacing:0; }
body.storefront #flash :is(.controller-event-grid,.controller-light-grid) span { color:#182336; font-weight:500; }
body.storefront #flash :is(.controller-event-grid,.controller-light-grid)>div[data-active="true"] { background:none; border-color:#e2e8f0; box-shadow:none; }
body.storefront #flash :is(.controller-event-grid,.controller-light-grid)>div[data-active="true"]::before { background-color:#08724c; }
body.storefront #flash :is(.controller-event-grid,.controller-light-grid)>div[data-active="true"] strong { color:#08724c; font-weight:600; }
body.storefront #flash .controller-test-note { margin:24px 0 0; padding:16px; border:0; border-radius:10px; background:#f4f7fc; font-size:14px; line-height:1.7; }
body.storefront #flash .controller-console[data-model="excavator"] :is(.controller-speed-card,.controller-gear-card,[data-controller-event="forward"],[data-controller-event="reverse"],[data-controller-event="brake"],[data-controller-event="indicator"]) { display:none; }
body.storefront #flash :is(button,summary,input,select):focus-visible { outline:2px solid #0057d9; outline-offset:3px; }
body.storefront #flash .excavator-quick-guide { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); list-style:none; padding:20px 24px; margin:0 0 24px; background:#f4f7fc; border-radius:12px; gap:20px 28px; }
body.storefront #flash .excavator-quick-guide[hidden] { display:none; }
body.storefront #flash .excavator-quick-guide li { display:flex; flex-direction:column; gap:6px; font-size:14px; line-height:1.6; color:#5d6880; }
body.storefront #flash .excavator-quick-guide strong { font-size:16px; }
body.storefront #flash .excavator-quick-guide button { color:#0057d9; background:none; padding:8px 0; min-height:44px; text-align:left; border:0; border-radius:4px; font:600 14px/1.5 YSTBody,sans-serif; text-decoration:underline; text-underline-offset:4px; cursor:pointer; align-self:flex-start; }
body.storefront #flash[data-active-flash-subtab="excavator"] .flash-sound-panel { padding:24px; }
body.storefront #flash[data-active-flash-subtab="excavator"] .flash-manual-header { display:grid; grid-template-columns:minmax(0,1fr) 240px; align-items:start; gap:24px; padding-bottom:24px; }
body.storefront #flash[data-active-flash-subtab="excavator"] .preset-block { width:100%; }
body.storefront #flash[data-active-flash-subtab="excavator"] .panel-note { font-size:14px; line-height:1.7; }
body.storefront #flash .excavator-group-heading { margin:28px 0 0; padding:0 0 12px; font:600 18px/1.5 YSTBody,sans-serif; border-bottom:1px solid #e2e8f0; color:#182336; }
body.storefront #flash .excavator-group-heading:first-child { margin-top:0; }
body.storefront #flash .excavator-sound-row { display:grid; grid-template-columns:156px minmax(0,1fr) 110px; gap:12px 16px; align-items:center; padding:20px 0; border-color:#edf1f6; }
body.storefront #flash .excavator-sound-row .sound-label { grid-column:1; grid-row:1 / 3; }
body.storefront #flash .excavator-sound-row .sound-select-wrap { grid-column:2; grid-row:1; min-width:0; }
body.storefront #flash .excavator-sound-row .preview-button { grid-column:3; grid-row:1; min-height:44px; width:100%; padding:10px 12px; }
body.storefront #flash .excavator-sound-row .sound-select { min-height:44px; width:100%; font-size:16px; padding:10px 12px; }
body.storefront #flash .excavator-sound-row .sound-label-title { font-size:14px; line-height:1.5; }
body.storefront #flash .excavator-sound-row .sound-label-subtitle { display:none; }
body.storefront #flash .excavator-sound-volume { grid-column:2 / 4; grid-row:2; display:flex; flex-wrap:wrap; align-items:center; gap:8px 20px; width:100%; }
body.storefront #flash .excavator-volume-line { display:flex; align-items:center; gap:12px; flex:1 1 200px; min-width:0; }
body.storefront #flash .excavator-volume-label { color:#5d6880; font-size:14px; }
body.storefront #flash .excavator-volume-slider { flex:1; min-width:60px; width:100%; min-height:32px; accent-color:#0057d9; cursor:pointer; }
body.storefront #flash .excavator-volume-value { display:inline; color:#182336; font-size:14px; font-weight:600; width:44px; text-align:right; font-variant-numeric:tabular-nums; }
body.storefront #flash .excavator-mute-chip { display:flex; align-items:center; gap:8px; min-height:44px; padding:8px 10px; border:0; border-radius:6px; background:#f4f7fc; color:#182336; cursor:pointer; }
body.storefront #flash .excavator-mute-chip input { position:static; opacity:1; width:18px; height:18px; margin:0; accent-color:#0057d9; }
body.storefront #flash .excavator-mute-text { font-size:14px; color:#182336; }
body.storefront #flash .excavator-sound-volume[data-muted="1"] .excavator-volume-line { opacity:.65; }
body.storefront #flash .excavator-mute-chip.is-muted { background:#fff7e6; }
body.storefront #flash .excavator-mute-chip.is-muted .excavator-mute-text { color:#805000; }
/* Undo inherited full-width labels/input padding so these are one compact row. */
body.storefront #flash[data-active-flash-subtab="excavator"] #flashSoundRows { display:block; }
body.storefront #flash .excavator-sound-row { padding:16px 0; margin:0; border-top:0; }
body.storefront #flash .excavator-sound-row .sound-label { grid-row:1; }
body.storefront #flash .excavator-mute-chip { box-sizing:border-box; width:auto; min-width:0; flex:0 0 auto; height:44px; justify-content:center; }
body.storefront #flash .excavator-mute-chip input { min-width:18px; min-height:18px; max-width:18px; max-height:18px; padding:0; flex:0 0 18px; }
body.storefront #flash .excavator-volume-slider { padding:0; border:0; box-shadow:none; }
body.storefront #flash .excavator-volume-label { white-space:nowrap; }
body.storefront #flash .device-progress-region[data-mode="idle"] .flash-progress-shell span { transform:scaleX(0); }
@media(max-width:1100px) {
  body.storefront #flash .controller-metric-row,
  body.storefront #flash .controller-metric-head { grid-template-columns:150px minmax(100px,1fr) minmax(120px,180px) 80px; gap:16px; }
  body.storefront #flash .controller-event-grid,
  body.storefront #flash .controller-light-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media(max-width:700px) {
  body.storefront #flash .controller-console { padding:20px 16px; }
  body.storefront #flash .controller-console-header { display:block; }
  body.storefront #flash .controller-title-cluster h3 { font-size:20px; }
  body.storefront #flash .controller-test-actions { align-items:stretch; margin-top:20px; }
  body.storefront #flash .controller-status-pill { text-align:left; justify-content:flex-start; max-width:none; }
  body.storefront #flash .controller-live-meta { gap:6px 16px; margin-bottom:24px; }
  body.storefront #flash .controller-metric-head { display:none; }
  body.storefront #flash .controller-metric-row { grid-template-columns:minmax(0,1fr) auto; gap:10px 12px; padding:18px 0; }
  body.storefront #flash .controller-metric-row>[data-metric-name] { grid-column:1; grid-row:1; }
  body.storefront #flash .controller-metric-row>[data-metric-pulse] { grid-column:2; grid-row:1; }
  body.storefront #flash .controller-metric-row>.controller-meter { grid-column:1 / -1; grid-row:2; margin:4px 0; }
  body.storefront #flash .controller-metric-row>[data-metric-status] { grid-column:1 / -1; grid-row:3; }
  body.storefront #flash .controller-event-grid,
  body.storefront #flash .controller-light-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 16px; }
  body.storefront #flash .excavator-quick-guide { grid-template-columns:1fr; gap:16px; padding:20px; }
  body.storefront #flash[data-active-flash-subtab="excavator"] .flash-sound-panel { padding:20px 16px; }
  body.storefront #flash[data-active-flash-subtab="excavator"] .flash-manual-header { grid-template-columns:1fr; gap:16px; }
  body.storefront #flash .excavator-sound-row { grid-template-columns:minmax(0,1fr) 110px; gap:12px; }
  body.storefront #flash .excavator-sound-row .sound-label { grid-column:1; grid-row:1; }
  body.storefront #flash .excavator-sound-row .preview-button { grid-column:2; grid-row:1; }
  body.storefront #flash .excavator-sound-row .sound-select-wrap { grid-column:1 / -1; grid-row:2; }
  body.storefront #flash .excavator-sound-volume { grid-column:1 / -1; grid-row:3; gap:0 8px; }
  body.storefront #flash .excavator-volume-line { flex-basis:160px; gap:8px; }
  body.storefront #flash .controller-dashboard-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  body.storefront #flash .controller-metric-row { padding:14px 0; gap:8px 12px; }
}
@media(prefers-reduced-motion:reduce) {
  body.storefront #flash .controller-console *,
  body.storefront #flash .excavator-sound-row * { animation:none!important; transition:none!important; }
}
