/* ShortBar visual system. Presentation only; device and configuration logic live in the existing modules. */
:root {
  color-scheme: light;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  color: #1d1d1f;
  background: #f5f5f7;
  --ink: #1d1d1f;
  --muted: #626266;
  --surface: #f5f5f7;
  --line: #dedee2;
  --field: #818185;
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23626266' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; }
body { margin: 0; font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
img { display: block; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 5px; }
button, input, select { font: inherit; }
button, summary { cursor: pointer; }
button, a, select, input, summary { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4, h5, p { margin: 0; }
h1, h2, h3 { font-weight: 650; line-height: 1.05; letter-spacing: -.045em; }
p { color: var(--muted); }
main { width: min(1060px, calc(100% - 64px)); margin-inline: auto; }
footer, .header-inner { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.site-header { background: #fff; border-bottom: 1px solid #eeeeef; }
.header-inner { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 13px; }
.brand:hover { text-decoration: none; }
.brand-symbol { width: 47px; height: auto; }
.brand .brand-wordmark { width: 137px; height: auto; max-width: none; }
.header-inner nav { display: flex; align-items: center; gap: 30px; font-size: 14px; font-weight: 500; }
.header-note { font-size: 12px; color: var(--muted); letter-spacing: .08em; }
button, .button {
  min-height: 46px; padding: 12px 20px; border: 1px solid var(--line); border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: #fff; color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.4;
  text-align: center; white-space: normal;
}
.button:hover { text-decoration: none; }
button:hover:not(:disabled), .button:hover { border-color: var(--field); background: #fafafa; }
.primary, .button.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.primary:hover:not(:disabled), .button.dark:hover { background: #363638; border-color: #363638; }
.button.small { min-height: 40px; padding: 9px 17px; border-radius: 10px; font-size: 13px; }
button:disabled { cursor: default; color: #65656a; background: #e9e9ec; border-color: transparent; }
button:focus-visible, select:focus-visible, summary:focus-visible, input:focus-visible, a:focus-visible {
  outline: 3px solid var(--ink); outline-offset: 4px;
}
select, input[type=text], input[type=number] {
  min-width: 0; width: 100%; min-height: 46px; padding: 10px 13px;
  border: 1px solid var(--field); border-radius: 9px; color: var(--ink); background-color: #fff; font-size: 14px;
}
select { appearance: none; padding-right: 40px; background-image: var(--chevron); background-repeat: no-repeat; background-position: right 13px center; }
input[type=checkbox] { accent-color: var(--ink); width: 15px; height: 15px; flex-shrink: 0; margin: 0; }
fieldset { border: 0; min-width: 0; padding: 0; margin: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: 16px; z-index: 10; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { width: auto; height: auto; padding: 12px; border: 2px solid var(--ink); background: #fff; clip-path: none; overflow: visible; }
.intro { padding-top: 58px; padding-bottom: 34px; }
.eyebrow { font-size: 12px; font-weight: 650; letter-spacing: .1em; color: var(--muted); margin-bottom: 18px; }
.intro h1 { font-family: inherit; font-size: 64px; font-weight: 700; line-height: 1.05; letter-spacing: -.045em; }
.intro h1 em { font-style: normal; color: inherit; }
.intro > p:last-child { font-size: 19px; line-height: 1.55; margin-top: 18px; max-width: 650px; }
.device-panel { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px 30px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.device-copy, .device-info { min-width: 0; }
.device-panel h2 { font-size: 30px; margin-top: 12px; }
.device-panel p { font-size: 13px; margin-top: 9px; }
.device-art { display: none; }
.device-actions { display: flex; align-items: center; justify-content: flex-end; gap: 18px; flex-wrap: wrap; }
.battery { font-size: 12px; color: var(--muted); max-width: 300px; }
.device-panel .battery { font-size: 12px; }
.status-pill { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--muted); }
.status-pill:before { content: ""; width: 7px; height: 7px; flex-shrink: 0; border: 1px solid #77777d; border-radius: 50%; background: #d1d1d6; }
.status-pill.connected { color: var(--ink); }
.status-pill.connected:before { background: var(--ink); border-color: var(--ink); }
#message { padding: 17px 4px; min-height: 55px; color: var(--muted); font-size: 14px; line-height: 1.6; white-space: pre-line; }
#message.success { color: var(--ink); font-weight: 600; }
#message.error, .notice { color: #8e2929; }
.notice { padding: 16px 18px; margin-top: 18px; background: #fff; border: 1px solid #d6b7b7; border-radius: 12px; font-size: 14px; line-height: 1.6; }
.diagnostics { border-top: 1px solid var(--line); margin-top: 16px; font-size: 12px; color: var(--muted); }
.diagnostics summary { font-size: 12px; font-weight: 500; padding: 18px 26px 18px 0; }
.diagnostics summary:after { font-size: 18px; top: 13px; }
.diagnostics pre { font-family: ui-monospace, Consolas, monospace; font-size: 12px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0 0 18px; }
summary { position: relative; list-style: none; padding: 18px 28px 18px 0; font-weight: 600; line-height: 1.4; }
summary::-webkit-details-marker { display: none; }
summary:after { content: "+"; position: absolute; right: 0; top: 13px; font-size: 22px; font-weight: 400; }
details[open] > summary:after { content: "−"; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin: 30px 0 18px; }
.section-heading h2 { font-size: 30px; }
.section-heading .eyebrow { margin-bottom: 8px; }
.editor-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 16px; }
.tag { font-size: 12px; color: var(--muted); }
.hint { font-size: 14px; line-height: 1.65; color: var(--muted); margin: 14px 0 22px; }
#editor > .hint { max-width: 900px; }
.layout-field { display: block; max-width: 300px; font-size: 14px; font-weight: 600; margin: 18px 0; }
.layout-field select { display: block; margin-top: 9px; }
/* Equal outer columns keep the logo at the true centre even when the label wraps. */
.editing-context {
  position: sticky; top: 12px; z-index: 2; display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  align-items: center; column-gap: 20px; padding: 16px 24px; margin: 0 0 16px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 3px 12px #00000005;
}
.editing-context > div { grid-column: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.editing-context > div > span { font-size: 10px; font-weight: 600; letter-spacing: .12em; color: var(--muted); }
#editing-label { font-size: 15px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.editing-logo { grid-column: 2; justify-self: center; width: 190px; height: auto; color: var(--ink); }
.editing-logo .is-active { fill: currentColor; }
#mapping-fields { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px 30px; }
.button-tabs, #button-layout { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; margin: 0 0 26px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.button-tab, #button-layout a { min-width: 0; padding: 13px 8px; background: #f8f8f9; color: var(--ink); border: 1px solid var(--line); border-radius: 11px; display: flex; align-items: center; justify-content: center; gap: 9px; font-size: 13px; font-weight: 400; line-height: 1.45; text-decoration: none; }
.button-tab span { font-weight: 650; }
.button-tab[aria-pressed=true], .button-tab[aria-pressed=true]:hover, .button-tab[aria-pressed=true]:focus-visible, #button-layout a[aria-current=true] { background: var(--ink); color: #fff; border-color: var(--ink); }
.button-tab:hover:not(:disabled):not([aria-pressed=true]) { background: #eeeef1; border-color: #b4b4ba; }
.button-tab:disabled { opacity: .55; }
#controls, #combos { min-width: 0; }
.control { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px 32px; min-width: 0; padding: 0; margin: 0; scroll-margin-top: 112px; }
.control > h3 { grid-column: 1 / -1; font-size: 23px; line-height: 1.3; margin: 0; }
.control-number { display: none; }
.mapping { display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding: 0; margin: 0; min-width: 0; }
.mapping > h4 { font-size: 14px; font-weight: 600; line-height: 1.5; margin: 0; }
.mapping > .action-picker { margin: 0; width: 100%; min-height: 46px; }
.mapping > .action-summary { color: var(--muted); font-size: 12px; line-height: 1.6; margin: 0; overflow-wrap: anywhere; }
.keyboard-options { min-width: 0; }
.modifiers { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; }
.modifiers label { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; line-height: 1.5; min-height: 24px; }
.keyboard-options > details { margin-top: 13px; }
.keyboard-options summary { font-size: 12px; font-weight: 500; color: var(--muted); padding: 0 24px 0 0; }
.keyboard-options summary:after { font-size: 16px; top: -4px; }
.extra-keys { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin: 14px 0; }
.extra-keys label { font-size: 12px; color: var(--muted); }
.extra-keys select { margin-top: 6px; }
.reserved { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 16px; margin: 0; font-size: 13px; line-height: 1.6; }
.combos { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 0; }
.combos > summary { font-size: 14px; padding-top: 22px; padding-bottom: 0; }
.combos > summary span { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 9px; }
.combos > .hint { margin: 12px 0 0; font-size: 14px; }
.combo-tabs { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; padding: 22px 0 26px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.combo-tab { min-width: 0; min-height: 48px; padding: 13px 8px; display: flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid var(--line); border-radius: 11px; background: #f8f8f9; color: var(--ink); font-size: 14px; font-weight: 400; }
.combo-tab span { font-weight: 650; white-space: nowrap; }
.combo-tab[aria-pressed=true], .combo-tab[aria-pressed=true]:hover, .combo-tab[aria-pressed=true]:focus-visible { background: var(--ink); color: #fff; border-color: var(--ink); }
.combo-tab:hover:not(:disabled):not([aria-pressed=true]) { background: #eeeef1; border-color: #b4b4ba; }
.combo-tab:disabled { opacity: .55; }
.shortcut-add { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.shortcut-add select { flex: 1 1 180px; width: auto; min-width: 0; }
.shortcut-add button { flex: 0 1 auto; }
#combos .control > button { grid-column: 1 / -1; justify-self: start; font-size: 12px; min-height: 36px; padding: 8px 12px; color: var(--muted); }
/* Custom fields use the original macro editor; only their layout is changed. */
.mapping.custom-mapping { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 32px; row-gap: 14px; }
.custom-mapping > h4 { grid-column: 1 / -1; }
.custom-mapping > .action-picker { grid-column: 1; }
.custom-mapping > .macro-editor, .custom-mapping > .action-summary { grid-column: 1 / -1; }
.macro-editor { min-width: 0; border-top: 1px solid var(--line); padding-top: 24px; margin-top: 10px; }
.macro-editor .hint { margin: 0 0 20px; max-width: 750px; }
.macro-editor > div > label { display: block; font-size: 14px; font-weight: 600; margin: 20px 0 12px; }
.macro-editor > div > label > input, .macro-editor > div > label > select { display: block; margin-top: 9px; }
.macro-editor > div > label > select { max-width: 280px; }
.macro-editor button { min-height: 38px; padding: 9px 13px; border-radius: 8px; font-size: 13px; }
.macro-editor > div > button { background: var(--ink); color: #fff; border-color: var(--ink); padding: 10px 17px; margin-top: 2px; }
.macro-editor > div > button:hover:not(:disabled) { background: #363638; }
.macro-editor > div > button:disabled { color: #65656a; background: #e9e9ec; border-color: transparent; }
.sequence-step { display: grid; grid-template-columns: minmax(0,1fr) 210px; column-gap: 32px; row-gap: 16px; background: #f8f8fa; border: 1px solid #e2e2e6; border-radius: 16px; padding: 24px; margin: 0 0 16px; }
.sequence-step h5 { grid-column: 1 / -1; grid-row: 1; font-size: 16px; line-height: 1.3; letter-spacing: -.02em; font-weight: 650; margin: 0 0 2px; }
.sequence-step .step-chord { grid-column: 1; grid-row: 2; display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; min-width: 0; }
.sequence-step .step-chord:before { content: "Keys"; flex-basis: 100%; font-size: 14px; font-weight: 600; line-height: 1.5; }
.sequence-step .step-chord select { width: min(180px,100%); }
.sequence-step > .modifiers { grid-column: 1; grid-row: 3; margin: 0; gap: 12px 18px; }
.sequence-step .modifiers label { font-size: 12px; font-weight: 500; white-space: nowrap; }
.sequence-step > details { grid-column: 1; grid-row: 4; min-width: 0; }
.sequence-step > details summary { font-size: 12px; font-weight: 500; color: var(--muted); padding: 0 25px 0 0; max-width: 220px; }
.sequence-step > details summary:after { font-size: 16px; top: -4px; }
.sequence-step > details .modifiers { margin-top: 14px; }
.sequence-step > button { grid-column: 1; grid-row: 5; justify-self: start; }
.sequence-step > label { grid-column: 2; grid-row: 2 / 4; align-self: start; font-size: 14px; font-weight: 600; display: block; }
.sequence-step > label > select { margin-top: 8px; }
.sequence-step > input[type=number] { grid-column: 2; grid-row: 4; align-self: start; }
.sequence-step:has(>input[type=number]:not([hidden])):after { content: "Custom wait in seconds"; grid-column: 2; grid-row: 5; font-size: 12px; color: var(--muted); align-self: start; }
.sequence-step .step-actions { grid-column: 1 / -1; grid-row: 6; display: flex; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 2px; }
.sequence-step .step-actions button:last-child { margin-left: auto; background: transparent; color: var(--muted); }
.rotary-control { grid-column: 1 / -1; }
.rotary-knob { grid-column: 1 / -1; width: 86px; height: 86px; margin: 0 auto 6px; border: 8px solid var(--ink); border-radius: 50%; background: #f5f5f7; position: relative; }
.rotary-knob:before { content: ""; position: absolute; width: 4px; height: 17px; top: 6px; left: calc(50% - 2px); border-radius: 2px; background: var(--ink); }
.scroll-settings { display: flex; flex-wrap: wrap; align-items: start; gap: 18px; margin: 22px 0 0; min-width: 0; }
.scroll-settings label { display: grid; gap: 8px; font-size: 14px; font-weight: 600; flex: 1 1 150px; min-width: 0; }
.mapping > .scroll-settings { margin: 2px 0; }
.mapping > .hint { margin: 0; font-size: 12px; }
.custom-mapping > .scroll-settings, .custom-mapping > .hint { grid-column: 1 / -1; }
.save-panel { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 25px 2px; }
.save-panel strong { font-size: 14px; font-weight: 600; }
.save-panel p { font-size: 12px; margin-top: 5px; }
.actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.save-panel button { min-height: 42px; padding: 10px 15px; font-size: 13px; }
.utilities { display: flex; align-items: center; gap: 26px; border-top: 1px solid var(--line); padding: 22px 0; flex-wrap: wrap; }
.utilities button { min-height: 30px; padding: 3px 0; border: 0; border-radius: 0; background: none; color: var(--muted); font-size: 12px; font-weight: 400; text-decoration: underline; text-underline-offset: 3px; }
.utilities button:hover:not(:disabled) { background: none; color: var(--ink); }
.utilities button:disabled { opacity: .5; }
.steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 48px; margin: 40px 0 64px; }
.steps article > span { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: #fff; font-size: 13px; font-weight: 600; margin-bottom: 22px; }
.steps h3 { font-size: 22px; line-height: 1.2; margin-bottom: 14px; letter-spacing: -.025em; }
.steps p { font-size: 14px; line-height: 1.6; }
.setup-help { display: flex; justify-content: space-between; gap: 24px; margin: 22px 0 50px; color: var(--muted); font-size: 12px; }
.setup-help a { text-decoration: underline; text-underline-offset: 3px; }
footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding-block: 32px; color: var(--muted); font-size: 12px; border-top: 1px solid var(--line); margin-top: 26px; }
footer .brand-wordmark { width: 115px; height: auto; }

@media(max-width:900px) {
  main, footer, .header-inner { width: calc(100% - 48px); }
  .header-inner nav { gap: 20px; }
  .intro h1 { font-size: 56px; }
  .device-actions { flex-direction: column; align-items: flex-end; gap: 10px; }
  .editor-actions { gap: 8px; }
  .editor-actions .tag { max-width: 130px; }
  .button-tab { flex-direction: column; gap: 1px; }
  .combo-tab { flex-direction: column; gap: 2px; }
  .combo-tab span { font-size: 16px; }
  .sequence-step { grid-template-columns: minmax(0,1fr) 175px; gap: 16px 20px; padding: 20px; }
  .save-panel { align-items: flex-start; }
  .save-panel .actions { justify-content: flex-end; }
  .steps { gap: 28px; }
}
@media(max-width:600px) {
  main, footer, .header-inner { width: calc(100% - 40px); }
  html { scroll-padding-top: 130px; }
  .header-inner { min-height: 72px; flex-wrap: wrap; justify-content: center; gap: 14px; padding-top: 18px; padding-bottom: 16px; }
  .brand { gap: 8px; }
  .brand-symbol { width: 35px; }
  .brand .brand-wordmark { width: 117px; }
  .header-inner nav { width: 100%; justify-content: center; gap: 18px; font-size: 12px; }
  .header-inner nav .button.small { min-height: 35px; font-size: 11px; padding: 8px 10px; }
  .intro { padding-top: 36px; padding-bottom: 26px; }
  .intro h1 { font-size: 43px; }
  .intro > p:last-child { font-size: 17px; }
  .eyebrow { font-size: 10px; margin-bottom: 16px; }
  .device-panel { padding: 22px 20px; flex-direction: column; align-items: stretch; gap: 20px; }
  .device-panel h2 { font-size: 28px; }
  .device-actions { flex-direction: row; align-items: center; justify-content: space-between; }
  .device-actions .battery { flex-basis: 100%; max-width: none; }
  #message { padding: 16px 2px; font-size: 13px; min-height: 0; }
  .section-heading { margin: 26px 0 18px; gap: 14px; align-items: flex-start; }
  .section-heading h2 { font-size: 26px; }
  .section-heading .eyebrow { font-size: 9px; }
  .editor-actions { max-width: 128px; flex-direction: column; align-items: flex-end; }
  .editor-actions button { font-size: 12px; min-height: 40px; padding: 9px 12px; }
  .editor-actions .tag { font-size: 11px; text-align: right; }
  .hint { font-size: 13px; }
  .editing-context { top: 8px; grid-template-columns: minmax(0,1fr); gap: 10px; padding: 12px 16px; border-radius: 12px; text-align: center; }
  .editing-context > div { grid-column: 1; grid-row: 1; gap: 2px; }
  .editing-context > div > span { font-size: 9px; }
  #editing-label { font-size: 13px; }
  .editing-logo { grid-column: 1; grid-row: 2; width: 160px; justify-self: center; }
  #mapping-fields { padding: 20px 16px; border-radius: 18px; }
  .button-tabs, #button-layout { gap: 6px; padding-bottom: 20px; margin-bottom: 20px; }
  .button-tab { padding: 10px 4px; font-size: 10px; border-radius: 8px; }
  .button-tab span { font-size: 17px; }
  #button-layout:has(>.button-tab:nth-child(6)) { gap: 4px; }
  #button-layout:has(>.button-tab:nth-child(6)) .button-tab { padding-inline: 2px; font-size: 9px; }
  .control { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .control > h3 { font-size: 23px; }
  select, input[type=text], input[type=number] { font-size: 16px; }
  .modifiers { gap: 10px 14px; }
  .extra-keys { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .combos > summary { font-size: 14px; }
  .combos > summary span { display: block; margin-left: 0; margin-top: 5px; }
  .combo-tabs { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; padding: 20px 0; margin-bottom: 20px; }
  .combo-tab { flex-direction: row; gap: 8px; padding: 12px 8px; border-radius: 9px; font-size: 12px; }
  .combo-tab span { font-size: 15px; }
  .shortcut-add { gap: 10px; }
  .shortcut-add select { flex-basis: calc(50% - 5px); }
  .shortcut-add button { width: 100%; }
  .mapping.custom-mapping { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .macro-editor { padding-top: 20px; }
  .sequence-step { grid-template-columns: minmax(0,1fr); padding: 18px 14px; row-gap: 16px; }
  .sequence-step h5 { grid-column: 1; }
  .sequence-step .step-chord select { width: 100%; }
  .sequence-step .step-chord { gap: 8px; }
  .sequence-step > .modifiers { gap: 12px; }
  .sequence-step > label { grid-column: 1; grid-row: 6; }
  .sequence-step > input[type=number] { grid-column: 1; grid-row: 7; }
  .sequence-step .step-actions { grid-column: 1; grid-row: 8; gap: 8px; }
  .sequence-step .step-actions button { font-size: 11px; padding: 8px; }
  .sequence-step .step-actions button:last-child { margin-left: 0; }
  .sequence-step:has(>input[type=number]:not([hidden])):after { grid-column: 1; grid-row: 8; }
  .sequence-step:has(>input[type=number]:not([hidden])) .step-actions { grid-row: 9; }
  .save-panel { flex-direction: column; align-items: stretch; padding-block: 24px; gap: 18px; }
  .save-panel .actions { display: grid; grid-template-columns: 1fr 1fr; }
  .save-panel button { font-size: 12px; padding: 10px 8px; }
  .utilities { gap: 18px 22px; }
  .utilities button { font-size: 12px; }
  .steps { grid-template-columns: minmax(0,1fr); margin-top: 34px; gap: 32px; }
  .steps article { position: relative; padding-left: 52px; }
  .steps article > span { position: absolute; left: 0; top: 0; }
  .steps h3 { font-size: 22px; margin-bottom: 10px; }
  .steps p { font-size: 15px; }
  .setup-help { flex-direction: column; gap: 12px; margin-bottom: 36px; }
  footer { padding-block: 26px; display: grid; grid-template-columns: 1fr auto; gap: 16px; }
  footer > span { grid-row: 2; grid-column: 1 / -1; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior: auto; } }

/* Scroll uses its own rounded-square and circular product mark. */
.editing-logo-scroll { width: 54px; }
@media(max-width:600px) { .editing-logo-scroll { width: 50px; } }
