:root {
  --ink: #20221f;
  --ink-soft: #657067;
  --muted: #879087;
  --paper: #f5f3ed;
  --paper-bright: #fffefa;
  --panel: #e7eee7;
  --line: #d8ded6;
  --green: #397356;
  --green-pale: #e0eee3;
  --accent: #f2795e;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  font-family: "DM Sans", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); }
body { min-width: 320px; margin: 0; background: var(--paper); font-size: 16px; }
button, a { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 3px solid rgba(57, 115, 86, .36); outline-offset: 3px; }
[hidden] { display: none !important; }

.app-shell { min-height: 100vh; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; justify-content: space-between; width: min(1080px, 100%); min-height: 76px; margin: 0 auto; padding: 18px 28px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 8px; color: var(--paper-bright); background: var(--ink); font: 500 11px var(--mono); letter-spacing: -.08em; }
.brand-copy { display: grid; gap: 3px; }
.brand-copy strong { font-size: 15px; line-height: 1; }
.brand-copy small { color: var(--ink-soft); font: 11px var(--mono); letter-spacing: .06em; }
.topbar-status { display: flex; align-items: center; gap: 14px; }
.connection-chip { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.connection-chip.is-connected { color: var(--green); }
.status-dot, .save-dot { width: 7px; height: 7px; border-radius: 50%; background: #a8b0a8; }
.connection-chip.is-connected .status-dot { background: #46bd80; box-shadow: 0 0 0 4px rgba(70, 189, 128, .14); }
.icon-button { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink-soft); background: var(--paper-bright); }
.icon-button:hover { border-color: var(--ink-soft); color: var(--ink); }
.icon-button svg { width: 16px; height: 16px; }

.wizard { width: min(1120px, calc(100% - 48px)); margin: 0 auto; padding: 68px 0 80px; }
.intro-block { max-width: 610px; }
.eyebrow { color: var(--ink-soft); font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.intro-block h1 { margin: 18px 0 13px; font: 400 clamp(42px, 7vw, 72px)/.98 Georgia, "Times New Roman", serif; letter-spacing: -.06em; }
.intro-block h1 span { color: var(--green); }
.intro-block p { max-width: 540px; margin: 0; color: var(--ink-soft); font-size: 17px; line-height: 1.75; }

.setup-shell { display: grid; grid-template-columns: 218px minmax(0, 1fr); align-items: start; gap: 54px; margin-top: 53px; }
.setup-sidebar { position: sticky; top: 24px; display: grid; gap: 7px; }
.setup-step-tab { display: grid; grid-template-columns: 35px minmax(0, 1fr); align-items: center; gap: 11px; width: 100%; min-height: 66px; border: 1px solid transparent; border-radius: 8px; padding: 10px 12px; color: var(--muted); text-align: left; background: transparent; transition: background .18s ease, border-color .18s ease, color .18s ease; }
.setup-step-tab:hover { border-color: var(--line); color: var(--ink); background: rgba(255, 254, 250, .58); }
.setup-step-tab > span:first-child { display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid #bcc6bd; border-radius: 50%; font: 11px var(--mono); }
.setup-step-tab > span:last-child { display: grid; gap: 4px; min-width: 0; }
.setup-step-tab strong { color: inherit; font-size: 14px; font-weight: 700; }
.setup-step-tab small { overflow-wrap: anywhere; color: inherit; font-size: 11px; line-height: 1.35; }
.setup-step-tab.is-current { border-color: #b7cbb9; color: var(--green); background: var(--green-pale); }
.setup-step-tab.is-current > span:first-child { border-color: var(--green); color: var(--paper-bright); background: var(--green); }
.setup-step-tab.is-complete:not(.is-current) > span:first-child { border-color: var(--green); color: var(--green); background: #f4faf3; }
.setup-content { min-width: 0; }

.progress-nav { display: flex; align-items: center; margin: 45px 0 31px; }
.progress-item { display: grid; gap: 7px; color: #a1aaa1; white-space: nowrap; }
.progress-item span { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #bcc6bd; border-radius: 50%; font: 11px var(--mono); }
.progress-item small { font-size: 12px; }
.progress-item.is-current, .progress-item.is-complete { color: var(--green); }
.progress-item.is-current span { border-color: var(--green); color: var(--paper-bright); background: var(--green); }
.progress-item.is-complete span { border-color: var(--green); background: var(--green-pale); }
.progress-line { flex: 1; height: 1px; margin: 0 14px 23px; background: var(--line); }

.wizard-step { border-top: 1px solid var(--line); padding-top: 26px; animation: step-in .32s ease both; }
@keyframes step-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
.step-kicker { display: flex; align-items: center; gap: 12px; color: var(--muted); font: 12px var(--mono); letter-spacing: .04em; }
.step-kicker span:first-child { color: var(--green); }
.step-layout { display: grid; gap: 44px; margin-top: 37px; }
.step-layout-simple { grid-template-columns: minmax(0, 520px); }
.step-copy { max-width: 520px; }
.step-heading { display: flex; align-items: center; gap: 14px; min-height: 48px; }
.step-icon { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #b7cbb9; border-radius: 12px; color: var(--green); background: var(--green-pale); }
.step-icon svg { width: 20px; height: 20px; }
.step-copy h2, .config-header h2 { margin: 22px 0 11px; font: 400 clamp(32px, 5vw, 48px)/1.05 Georgia, "Times New Roman", serif; letter-spacing: -.05em; }
.step-heading h2 { margin: 0; }
.step-copy p, .config-header p { max-width: 500px; margin: 0; color: var(--ink-soft); font-size: 16px; line-height: 1.8; }
.step-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.fallback-note, .status-note { margin-top: 17px !important; color: var(--muted) !important; font-size: 13px !important; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border: 0; border-radius: 7px; padding: 0 19px; font-size: 15px; font-weight: 700; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:active:not(:disabled) { transform: translateY(0); }
.button:disabled { cursor: not-allowed; opacity: .43; }
.button svg { width: 16px; height: 16px; stroke-width: 1.9; }
.button-primary { color: var(--paper-bright); background: var(--ink); }
.button-primary:hover:not(:disabled) { background: #343831; }
.button-secondary { border: 1px solid #c8d1c8; color: var(--ink); background: var(--paper-bright); }
.button-secondary:hover:not(:disabled) { border-color: var(--green); background: #f8fcf7; }
.button-dark { color: var(--paper-bright); background: var(--ink); }
.button-accent { color: #29140e; background: var(--accent); }
.button-wide { min-width: 205px; margin-top: 25px; }
.button-save { min-width: 142px; color: var(--paper-bright); background: var(--green); }
.button-quiet { min-height: 34px; margin-top: 21px; padding: 0 2px; color: var(--ink-soft); background: transparent; font-size: 11px; font-weight: 500; }
.button-quiet:hover:not(:disabled) { color: var(--ink); transform: none; }
.button-quiet svg { width: 14px; height: 14px; }
.step-footer { display: flex; align-items: center; }

.pairing-copy { max-width: 690px; }
.pairing-steps { display: grid; gap: 12px; margin-top: 27px; }
.pairing-action { display: grid; grid-template-columns: 31px minmax(0, 1fr) auto; align-items: center; gap: 13px; border-top: 1px solid var(--line); padding-top: 15px; }
.pairing-action .action-number, .advanced-connect-action .action-number { align-self: start; margin-top: 2px; }
.pairing-action h3 { margin: 0 0 4px; font-size: 15px; }
.pairing-action p { margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.6; }
.pairing-action .button { min-height: 40px; padding: 0 13px; font-size: 13px; }
.action-number { display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid #b7cbb9; border-radius: 50%; color: var(--green); background: var(--green-pale); font: 11px var(--mono); }

.input-method-view { min-width: 0; }
.input-method-intro { max-width: 690px; }
.input-method-list { display: grid; gap: 10px; max-width: 690px; margin-top: 29px; }
.input-method-option { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto 18px; align-items: center; gap: 13px; width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 15px 17px; color: var(--ink); text-align: left; background: var(--paper-bright); transition: border-color .18s ease, transform .18s ease, background .18s ease; }
.input-method-option:hover { border-color: var(--green); background: #f8fcf7; transform: translateY(-1px); }
.input-method-option > span:nth-child(2) { display: grid; gap: 4px; min-width: 0; }
.input-method-option strong { font-size: 15px; }
.input-method-option small { color: var(--ink-soft); font-size: 12px; line-height: 1.45; }
.input-method-option > svg { width: 16px; color: var(--muted); }
.input-method-mark { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 10px; color: #fff; background: #1f9d66; font-weight: 700; }
.input-method-mark img { display: block; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.default-label { color: var(--green); font: 11px var(--mono); }
.wechat-guide { max-width: 760px; }
.guide-back { margin: 0 0 25px; }
.guide-heading { display: flex; align-items: flex-start; gap: 14px; }
.guide-heading h2 { margin: 9px 0 7px; font: 400 clamp(31px, 4vw, 44px)/1.08 Georgia, "Times New Roman", serif; letter-spacing: -.05em; }
.guide-heading p { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.7; }
.guide-step { border-top: 1px solid var(--line); margin-top: 29px; padding-top: 18px; }
.guide-step-copy { display: grid; grid-template-columns: 27px minmax(0, 1fr); gap: 12px; align-items: start; }
.guide-step-copy h3 { margin: 1px 0 5px; font-size: 16px; }
.guide-step-copy p { margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.65; }
.guide-step > img { display: block; width: 100%; max-width: 720px; height: auto; margin-top: 16px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper-bright); }
.guide-download-step { margin-top: 25px; }
.download-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 17px; padding-left: 39px; }
.download-actions .button { margin-top: 0; }
.wechat-settings { min-width: 0; }
.guide-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.guide-actions .button { margin-top: 0; }
.setup-complete { display: flex; align-items: flex-start; gap: 10px; margin-top: 21px; border: 1px solid #b7cbb9; border-radius: 7px; padding: 13px 15px; color: var(--green); background: var(--green-pale); }
.setup-complete svg { flex: 0 0 auto; width: 18px; margin-top: 1px; }
.setup-complete div { display: grid; gap: 3px; }
.setup-complete span { color: var(--ink-soft); font-size: 13px; }

.advanced-connect { max-width: 760px; }
.advanced-connect-copy h2 { margin: 13px 0 10px; font: 400 clamp(31px, 4vw, 46px)/1.08 Georgia, "Times New Roman", serif; letter-spacing: -.05em; }
.advanced-connect-copy p { max-width: 620px; margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.75; }
.advanced-connect-action { display: grid; grid-template-columns: 27px minmax(0, 1fr) auto; align-items: center; gap: 13px; margin-top: 28px; border-top: 1px solid var(--line); padding-top: 18px; }
.advanced-connect-action div { display: grid; gap: 4px; }
.advanced-connect-action strong { font-size: 15px; }
.advanced-connect-action small { color: var(--ink-soft); font-size: 12px; line-height: 1.5; }
.advanced-connect-action .button { min-height: 42px; font-size: 13px; }

.step-layout-power { grid-template-columns: minmax(280px, 1fr) minmax(240px, .78fr); align-items: center; gap: 48px; }
.device-visual { position: relative; min-height: 370px; display: grid; place-items: center; overflow: hidden; }
.device-visual::before { display: none; }
.device-visual img { position: relative; z-index: 1; width: 80%; max-width: 300px; max-height: 325px; object-fit: contain; filter: contrast(1.04) saturate(.9); }
.device-visual img[src*="trunon"] { width: min(88%, 360px); max-width: 360px; max-height: 360px; }
.visual-label { position: absolute; top: 18px; left: 19px; color: var(--green); font: 10px var(--mono); letter-spacing: .08em; }
.switch-callout { position: absolute; z-index: 2; left: 19%; top: 51%; width: 70px; height: 70px; color: var(--green); }
.switch-arrow { position: absolute; left: 26px; top: 64px; display: grid; place-items: center; width: 28px; height: 28px; }
.switch-arrow svg { width: 16px; height: 16px; stroke-width: 2.4; }
.switch-hand { position: absolute; left: -12px; top: 76px; width: 25px; height: 25px; color: var(--ink); transform: rotate(60deg); transform-origin: center; animation: switch-hand-prompt 1.4s ease-in-out infinite; }
@keyframes switch-hand-prompt {
  0%, 100% { opacity: .78; transform: rotate(60deg) translate(0, 0) scale(1); }
  50% { opacity: 1; transform: rotate(60deg) translate(-3px, -3px) scale(1.08); }
}
.power-copy-block { padding-right: 8px; }
.pairing-instructions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 23px; color: var(--ink-soft); font: 13px var(--mono); }
.pairing-instructions span:nth-child(odd) { display: grid; place-items: center; width: 21px; height: 21px; border: 1px solid #b7cbb9; border-radius: 50%; color: var(--green); background: var(--green-pale); }
.connection-sequence { display: grid; gap: 10px; margin-top: 24px; }
.connection-phase { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 11px; border-top: 1px solid var(--line); padding-top: 13px; }
.connection-phase-number { display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid #b7cbb9; border-radius: 50%; color: var(--green); background: var(--green-pale); font: 11px var(--mono); }
.connection-phase div { display: grid; gap: 3px; min-width: 0; }
.connection-phase strong { font-size: 14px; }
.connection-phase small { color: var(--ink-soft); font-size: 12px; line-height: 1.5; }
.connection-phase .button { min-height: 36px; padding: 0 12px; font-size: 12px; }

.config-step { padding-bottom: 5px; }
.demo-badge { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.demo-badge > span { width: 6px; height: 6px; border-radius: 50%; background: #d59c42; }
.config-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 34px 0 22px; }
.config-header h2 { margin: 0 0 9px; }
.config-header p { font-size: 14px; }
.progress-count { color: var(--ink-soft); font: 12px var(--mono); white-space: nowrap; }
.key-map { position: relative; width: min(100%, 610px); margin: 0 auto 20px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #dfe3e7; box-shadow: 0 10px 24px rgba(32, 34, 31, .08); }
.key-map img { display: block; width: 100%; height: auto; }
.key-hotspot { position: absolute; left: var(--x); top: var(--y); z-index: 2; display: grid; place-items: center; width: clamp(42px, 7vw, 58px); aspect-ratio: 1; border: 0; border-radius: 50%; padding: 0; color: var(--paper-bright); background: transparent; transform: translate(-50%, -50%); }
.key-hotspot:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.hotspot-number { position: relative; z-index: 2; display: grid; place-items: center; width: 31px; height: 31px; border: 2px solid var(--paper-bright); border-radius: 50%; color: var(--paper-bright); background: var(--ink); box-shadow: 0 3px 8px rgba(0, 0, 0, .28); font: 500 12px var(--mono); }
.key-hotspot.is-selected .hotspot-number { border-color: #fff5ee; color: #fff; background: var(--accent); }
.hotspot-ring { position: absolute; inset: 3px; border: 2px solid var(--accent); border-radius: 50%; opacity: 0; transform: scale(.42); }
.key-hotspot.is-selected .hotspot-ring { animation: hotspot-ripple 1.6s ease-out infinite; }
.key-hotspot > svg { position: absolute; right: -2px; bottom: -1px; z-index: 3; width: 19px; height: 19px; padding: 3px; border-radius: 50%; color: var(--ink); background: var(--paper-bright); box-shadow: 0 2px 7px rgba(0, 0, 0, .24); opacity: 0; transform: rotate(-18deg) translate(4px, 4px); }
.key-hotspot.is-selected > svg { opacity: 1; animation: hotspot-point 1.6s ease-in-out infinite; }
@keyframes hotspot-ripple { 0% { opacity: .8; transform: scale(.42); } 75%, 100% { opacity: 0; transform: scale(1.12); } }
@keyframes hotspot-point { 0%, 100% { transform: rotate(-18deg) translate(4px, 4px); } 50% { transform: rotate(-18deg) translate(0, 0); } }
.key-list { display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "record delete" "send paste"; gap: 9px; }
.key-row[data-key="record"] { grid-area: record; }
.key-row[data-key="send"] { grid-area: send; }
.key-row[data-key="delete"] { grid-area: delete; }
.key-row[data-key="paste"] { grid-area: paste; }
.key-row { display: grid; grid-template-columns: 35px minmax(0, 1fr) auto 16px; align-items: center; gap: 10px; min-height: 72px; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; color: var(--ink); text-align: left; background: var(--paper-bright); transition: border-color .18s ease, transform .18s ease, background .18s ease; }
.key-row:hover { border-color: #a7b0a7; transform: translateY(-1px); }
.key-row.is-selected { border-color: var(--green); background: #edf5ed; box-shadow: inset 3px 0 var(--green); }
.key-row-number, .selected-number { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 5px; color: var(--ink-soft); background: #eef0ea; font: 10px var(--mono); }
.key-row.is-selected .key-row-number, .selected-number { color: var(--paper-bright); background: var(--ink); }
.key-row-copy { display: grid; gap: 5px; min-width: 0; }
.key-row-copy strong, .key-row-copy span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.key-row-copy strong { font-size: 15px; }
.key-row-copy span { color: var(--ink-soft); font-size: 13px; }
.key-row kbd { justify-self: end; }
.key-row > svg { width: 14px; height: 14px; color: #a3aba3; }
kbd { display: inline-flex; align-items: center; min-height: 29px; border: 1px solid #d1d5cc; border-bottom-width: 2px; border-radius: 4px; padding: 0 8px; color: #545a54; background: #f7f6f0; font: 12px var(--mono); white-space: nowrap; }

.selected-key { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 17px; margin-top: 18px; border: 1px solid var(--line); border-radius: 9px; padding: 18px; background: var(--paper-bright); }
.selected-number { width: 40px; height: 40px; }
.selected-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.edit-state { color: var(--green); font: 12px var(--mono); }
.edit-state.is-dirty { color: var(--accent); }
.selected-content h3 { margin: 11px 0 6px; font-size: 19px; letter-spacing: -.03em; }
.selected-content p { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.7; }
.assignment-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: 18px; }
.assignment-preview { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.assignment-label { width: 100%; color: var(--muted); font: 12px var(--mono); }
.assignment-preview strong { font-size: 15px; }
.capture-area { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 17px; border-top: 1px solid var(--line); padding-top: 14px; }
.capture-copy { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 8px; row-gap: 3px; color: var(--ink-soft); font-size: 13px; }
.capture-copy strong { grid-column: 2; color: var(--ink); font: 17px var(--mono); }
.capture-pulse { grid-row: 1 / span 2; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(242, 121, 94, .14); animation: pulse 1.3s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(242, 121, 94, .02); } }
.save-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; border-top: 1px solid var(--line); padding-top: 18px; }
.save-status { display: flex; align-items: center; gap: 10px; min-width: 0; }
.save-dot { flex: 0 0 auto; }
.save-dot.is-dirty { background: var(--accent); box-shadow: 0 0 0 4px rgba(242, 121, 94, .13); }
.save-status div { display: grid; gap: 3px; min-width: 0; }
.save-status strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.save-status span:last-child { color: var(--ink-soft); font-size: 12px; }
.protocol-note { display: flex; align-items: center; gap: 7px; margin: 18px 0 0; color: var(--muted); font-size: 13px; }
.protocol-note svg { width: 14px; height: 14px; color: var(--green); }
.footer-note { display: flex; justify-content: space-between; gap: 16px; width: min(1080px, 100%); margin: auto auto 0; border-top: 1px solid var(--line); padding: 15px 28px; color: var(--muted); font: 11px var(--mono); letter-spacing: .06em; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 10; max-width: 320px; border: 1px solid rgba(255,255,255,.15); border-radius: 7px; padding: 13px 16px; color: var(--paper-bright); background: var(--ink); font-size: 14px; opacity: 0; pointer-events: none; transform: translateY(9px); transition: opacity .2s ease, transform .2s ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 680px) {
  .topbar { min-height: 68px; padding: 15px 20px; }
  .wizard { width: calc(100% - 40px); max-width: 520px; padding: 43px 0 60px; }
  .setup-shell { display: block; margin-top: 36px; }
  .setup-sidebar { position: static; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; margin-bottom: 27px; }
  .setup-step-tab { display: grid; grid-template-columns: 1fr; justify-items: center; gap: 6px; min-height: 74px; padding: 7px 4px; text-align: center; }
  .setup-step-tab > span:last-child { display: block; width: 100%; }
  .setup-step-tab strong { display: block; overflow-wrap: anywhere; font-size: 11px; line-height: 1.25; }
  .setup-step-tab small { display: none; }
  .setup-step-tab > span:first-child { width: 28px; height: 28px; font-size: 10px; }
  .wizard-step, .step-layout, .step-copy, .intro-block { width: 100%; max-width: 100%; min-width: 0; }
  .step-layout-simple { grid-template-columns: minmax(0, 1fr); }
  .intro-block h1 { font-size: 47px; }
  .intro-block p { font-size: 15px; }
  .progress-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; min-width: 0; margin: 34px 0 26px; gap: 6px; }
  .progress-item { min-width: 0; }
  .progress-item small { max-width: 65px; white-space: normal; line-height: 1.4; font-size: 12px; overflow-wrap: anywhere; }
  .progress-line { display: none; }
  .step-layout-power { grid-template-columns: 1fr; gap: 27px; }
  .device-visual { min-height: 310px; }
  .device-visual img { width: 67%; max-height: 265px; }
  .device-visual img[src*="trunon"] { width: 86%; max-height: 300px; }
  .switch-callout { left: 19%; top: 51%; }
  .power-copy-block { padding: 0; }
  .step-copy h2, .config-header h2 { font-size: 35px; }
  .step-heading { align-items: flex-start; }
  .step-heading h2 { font-size: 35px; }
  .step-actions { flex-direction: column; align-items: stretch; }
  .step-actions .button, .button-wide { width: 100%; }
  .step-actions, .button-wide { max-width: 100%; }
  .intro-block p, .step-copy p { overflow-wrap: anywhere; }
  .pairing-action { grid-template-columns: 27px minmax(0, 1fr); }
  .pairing-action .button { grid-column: 2; justify-self: start; margin-top: 4px; }
  .input-method-option { grid-template-columns: 39px minmax(0, 1fr) 18px; padding: 13px; }
  .input-method-option .default-label { grid-column: 2; grid-row: 2; justify-self: start; }
  .guide-heading h2, .advanced-connect-copy h2 { font-size: 35px; }
  .advanced-connect-action { grid-template-columns: 27px minmax(0, 1fr); }
  .advanced-connect-action .button { grid-column: 2; justify-self: start; margin-top: 4px; }
  .guide-actions { flex-direction: column; align-items: stretch; }
  .guide-actions .button { width: 100%; }
  .guide-step > img { max-width: 100%; }
  .download-actions { align-items: stretch; flex-direction: column; padding-left: 39px; }
  .download-actions .button { width: 100%; }
  .pairing-instructions { gap: 7px; line-height: 1.5; }
  .connection-phase { grid-template-columns: 28px minmax(0, 1fr); }
  .connection-phase .button { grid-column: 2; justify-self: start; }
  .config-header { align-items: flex-start; flex-direction: column; gap: 11px; }
  .key-map { width: 100%; margin-bottom: 17px; }
  .hotspot-number { width: 28px; height: 28px; font-size: 11px; }
  .key-list { grid-template-columns: 1fr; grid-template-areas: "record" "send" "delete" "paste"; }
  .assignment-row, .capture-area, .save-bar { align-items: stretch; flex-direction: column; }
  .assignment-row .button, .capture-area .button, .save-bar .button { width: 100%; }
  .footer-note { align-items: flex-start; flex-direction: column; padding: 13px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
