:root {
  --paper: #f1eee5;
  --panel: #fffdf8;
  --ink: #14211d;
  --muted: #69756f;
  --line: #d4d8cf;
  --soft-line: #e7e8e2;
  --coral: #f26e55;
  --coral-dark: #b94734;
  --coral-soft: #ffe2da;
  --blue: #3f72ee;
  --blue-dark: #2754b5;
  --blue-soft: #e5edff;
  --green: #08a77c;
  --green-dark: #087257;
  --green-soft: #dcf5eb;
  --yellow: #f2c34f;
  --yellow-dark: #84600d;
  --yellow-soft: #fff1c2;
  --gray-soft: #eef0eb;
  --shadow: 0 24px 65px rgb(34 43 37 / 12%);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 0 4%, rgb(63 114 238 / 13%), transparent 25%),
    radial-gradient(circle at 100% 5%, rgb(242 110 85 / 16%), transparent 28%),
    var(--paper);
  font-family: Inter, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}
button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible {
  outline: 4px solid rgb(63 114 238 / 25%);
  outline-offset: 3px;
}
.page { width: min(1560px, calc(100% - 40px)); margin: 0 auto; padding: 28px 0 44px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(430px, .65fr);
  align-items: end;
  gap: 12px 28px;
  padding: 0 4px 24px;
}
.hero-title { grid-column: 1 / -1; min-width: 0; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 9px; color: var(--blue-dark); font-size: 11px; font-weight: 900; letter-spacing: .14em; }
.eyebrow i { position: relative; width: 30px; height: 22px; background: var(--panel); border: 2px solid currentColor; border-radius: 5px; }
.eyebrow i::before, .eyebrow i::after { position: absolute; top: 4px; width: 6px; height: 10px; border: 2px solid; border-radius: 3px; content: ""; }
.eyebrow i::before { left: 4px; color: var(--coral); }
.eyebrow i::after { right: 4px; color: var(--green); }
h1 { margin: 0; font-family: "Arial Black", Inter, sans-serif; font-size: clamp(50px, 6vw, 90px); line-height: .95; letter-spacing: normal; }
h1 span { color: var(--coral-dark); }
.lead { margin: 0; color: var(--muted); font-size: clamp(16px, 1.35vw, 23px); font-weight: 800; line-height: 1.5; }
.lead strong { color: var(--ink); }
.hero-actions { display: flex; justify-content: flex-end; align-items: center; gap: 9px; }
.native-badge, .utility-button { display: inline-flex; align-items: center; min-height: 44px; border-radius: 13px; font-size: 10px; font-weight: 900; white-space: nowrap; }
.native-badge { gap: 8px; padding: 0 14px; color: var(--green-dark); background: var(--green-soft); border: 1px solid #98dac5; }
.native-badge i { width: 9px; height: 9px; background: currentColor; border-radius: 50%; box-shadow: 0 0 0 4px rgb(8 167 124 / 13%); }
.utility-button { justify-content: center; padding: 0 15px; background: var(--panel); border: 1px solid var(--line); cursor: pointer; }
.utility-button--dark { color: #fff; background: var(--ink); border-color: var(--ink); }

.lab-grid { display: grid; grid-template-columns: minmax(520px, .92fr) minmax(0, 1.08fr); gap: 18px; align-items: stretch; }
.form-panel, .payload-panel, .matrix-panel, .code-panel { min-width: 0; overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: 25px; box-shadow: var(--shadow); }
.panel-head { display: flex; align-items: center; min-height: 78px; gap: 12px; padding: 16px 20px; background: var(--panel); border-bottom: 1px solid var(--line); }
.panel-head > div { min-width: 0; }
.panel-head p, .code-head span { margin: 0 0 3px; color: var(--coral-dark); font-size: 10px; font-weight: 900; letter-spacing: .11em; }
.panel-head h2, .code-head h2 { margin: 0; font-size: clamp(18px, 1.45vw, 25px); line-height: 1.15; }
.section-mark { display: grid; flex: 0 0 47px; width: 47px; height: 47px; place-items: center; color: #fff; border-radius: 15px; font-size: 11px; font-weight: 900; }
.section-mark--coral { background: var(--coral); }
.section-mark--blue { background: var(--blue); }
.section-mark--green { background: var(--green); }
.panel-tag { margin-left: auto; padding: 8px 11px; color: var(--coral-dark); background: var(--coral-soft); border-radius: 999px; font-size: 10px; font-weight: 900; white-space: nowrap; }

.browser-frame { margin: 18px; overflow: hidden; background: #f6f7f3; border: 1px solid var(--line); border-radius: 18px; }
.browser-bar { display: flex; align-items: center; gap: 5px; height: 31px; padding: 0 11px; background: #e7e7e1; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 7px; height: 7px; background: var(--coral); border-radius: 50%; }
.browser-bar i:nth-child(2) { background: var(--yellow); }
.browser-bar i:nth-child(3) { background: var(--green); }
.browser-bar span { margin-left: auto; color: var(--muted); font-size: 10px; font-weight: 800; }
#stateForm { display: grid; gap: 9px; padding: 15px; }
.field-row { display: grid; grid-template-columns: 100px minmax(135px, .62fr) minmax(150px, 1fr) 54px; align-items: center; gap: 10px; min-height: 67px; padding: 10px 11px; background: #fff; border: 1px solid var(--line); border-radius: 13px; transition: border-color .25s, box-shadow .25s, translate .25s var(--ease); }
.field-row:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgb(63 114 238 / 12%); translate: 0 -1px; }
.field-state { font: 900 10px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.field-copy { display: grid; gap: 3px; }
.field-copy b { font-size: 12px; }
.field-copy small { color: var(--muted); font-size: 10px; font-weight: 700; }
.field-row input { width: 100%; min-width: 0; min-height: 42px; padding: 0 11px; color: var(--ink); background: #fff; border: 1px solid #bfc5bd; border-radius: 10px; font-size: 12px; font-weight: 800; }
.field-row input[disabled] { color: #808983; background: #e9ebe7; border-color: #d4d7d1; opacity: 1; }
.field-row input[readonly] { background: var(--blue-soft); border-color: #adbef0; }
.field-row input[aria-disabled="true"] { background: var(--yellow-soft); border-color: #dfbd5d; }
.normal-field .field-state { color: var(--green-dark); }
.field-row--disabled { background: #f2f3ef; }
.field-row--disabled .field-state { color: #737c76; }
.field-row--readonly { background: #f4f7ff; border-color: #bfcef5; }
.field-row--readonly .field-state { color: var(--blue-dark); }
.field-row--aria { background: #fff9e8; border-color: #e3c76e; }
.field-row--aria .field-state { color: var(--yellow-dark); }
.route-state { display: grid; min-height: 28px; place-items: center; border-radius: 999px; font-size: 10px; font-weight: 900; }
.route-state--pass { color: var(--green-dark); background: var(--green-soft); }
.route-state--stop { color: #707872; background: #dde0da; text-decoration: line-through; }
.route-state--warn { color: var(--yellow-dark); background: var(--yellow-soft); }
.form-controls { display: grid; grid-template-columns: 1fr 180px; gap: 9px; margin-top: 3px; }
.mirror-switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 61px; padding: 9px 12px; background: var(--coral-soft); border: 1px solid #edb1a2; border-radius: 13px; cursor: pointer; }
.mirror-switch > span { display: grid; gap: 3px; }
.mirror-switch b { font-size: 11px; }
.mirror-switch small { color: var(--coral-dark); font-size: 10px; font-weight: 700; }
.mirror-switch input { position: absolute; opacity: 0; pointer-events: none; }
.mirror-switch i { position: relative; flex: 0 0 46px; width: 46px; height: 27px; background: #c9cbc6; border: 1px solid #b7bab4; border-radius: 999px; transition: background .25s; }
.mirror-switch i::before { position: absolute; top: 3px; left: 3px; width: 19px; height: 19px; background: #fff; border-radius: 50%; box-shadow: 0 2px 6px rgb(20 33 29 / 18%); transition: translate .3s var(--ease); content: ""; }
.mirror-switch input:checked + i { background: var(--coral); border-color: var(--coral); }
.mirror-switch input:checked + i::before { translate: 19px 0; }
.mirror-switch:has(input:focus-visible) { outline: 4px solid rgb(63 114 238 / 25%); outline-offset: 3px; }
.submit-button { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 61px; color: #fff; background: var(--ink); border: 1px solid var(--ink); border-radius: 13px; cursor: pointer; font-size: 11px; font-weight: 900; transition: translate .2s var(--ease), box-shadow .2s; }
.submit-button:hover { translate: 0 -2px; box-shadow: 0 9px 18px rgb(20 33 29 / 15%); }
.submit-button i { display: grid; width: 24px; height: 24px; place-items: center; color: var(--ink); background: var(--yellow); border-radius: 8px; font-style: normal; }
.focus-note { display: flex; align-items: center; gap: 12px; min-height: 56px; margin: 0 18px 18px; padding: 10px 13px; background: var(--yellow-soft); border: 1px solid #e0bf60; border-radius: 13px; }
.focus-note span { flex: 0 0 auto; color: var(--yellow-dark); font-size: 10px; font-weight: 900; }
.focus-note p { margin: 0; color: #5f563d; font-size: 10px; font-weight: 700; line-height: 1.5; }

.panel-head--dark { color: #fff; background: var(--ink); border-bottom-color: rgb(255 255 255 / 12%); }
.panel-head--dark p { color: #9fb5ff; }
.entry-count { display: inline-flex; align-items: baseline; gap: 4px; margin-left: auto; padding: 8px 11px; color: #d8e2ff; background: #26332e; border: 1px solid #384942; border-radius: 999px; font-size: 10px; font-weight: 900; white-space: nowrap; }
.entry-count b { color: #fff; font-size: 16px; }
.payload-stage { min-height: 510px; padding: 18px; background-image: linear-gradient(var(--soft-line) 1px, transparent 1px), linear-gradient(90deg, var(--soft-line) 1px, transparent 1px); background-size: 24px 24px; }
.flow-map { display: grid; grid-template-columns: repeat(4, minmax(65px, 1fr)) minmax(112px, .8fr); align-items: center; gap: 8px; margin-bottom: 16px; padding: 12px; background: rgb(255 253 248 / 96%); border: 1px solid var(--line); border-radius: 14px; }
.source-node { position: relative; display: grid; min-width: 0; min-height: 51px; place-items: center; color: var(--green-dark); background: var(--green-soft); border: 1px solid #a8ddcc; border-radius: 11px; }
.source-node span { overflow: hidden; max-width: calc(100% - 10px); font-size: 10px; font-weight: 900; text-overflow: ellipsis; }
.source-node i { position: absolute; top: 50%; right: -10px; z-index: 2; width: 11px; height: 2px; background: var(--green); }
.source-node--disabled { color: #717a74; background: #eaebe7; border-color: #d2d5cf; }
.source-node--disabled i { background: #a9afa9; }
.source-node--disabled b { position: absolute; z-index: 3; right: -13px; display: grid; width: 17px; height: 17px; place-items: center; color: #fff; background: var(--coral); border-radius: 50%; font-size: 10px; }
.source-node--readonly { color: var(--blue-dark); background: var(--blue-soft); border-color: #aebff0; }
.source-node--readonly i { background: var(--blue); }
.source-node--aria { color: var(--yellow-dark); background: var(--yellow-soft); border-color: #e2c46c; }
.source-node--aria i { background: var(--yellow); }
.destination-node { display: grid; min-height: 65px; place-items: center; align-content: center; gap: 3px; color: #fff; background: var(--ink); border-radius: 12px; }
.destination-node span { font-size: 10px; font-weight: 900; }
.destination-node b { color: #9ce1ca; font-size: 10px; }
.terminal { overflow: hidden; background: #0d1713; border: 1px solid #0d1713; border-radius: 18px; box-shadow: 10px 12px 0 rgb(20 33 29 / 10%); }
.terminal-top { display: flex; align-items: center; gap: 10px; min-height: 49px; padding: 0 15px; color: #fff; border-bottom: 1px solid rgb(255 255 255 / 13%); }
.terminal-top span { padding: 6px 8px; color: #092b21; background: #8ee0c5; border-radius: 8px; font-size: 10px; font-weight: 900; }
.terminal-top code { font: 800 11px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.terminal-top b { margin-left: auto; color: #aab9b1; font-size: 10px; }
.payload-rows { display: grid; min-height: 229px; padding: 10px; }
.payload-row { display: grid; grid-template-columns: minmax(105px, .43fr) minmax(0, 1fr); align-items: center; gap: 12px; min-height: 51px; padding: 8px 10px; color: #d8e2dd; border-bottom: 1px solid rgb(255 255 255 / 8%); }
.payload-row:last-child { border-bottom: 0; }
.payload-row code { overflow: hidden; font: 800 11px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; text-overflow: ellipsis; white-space: nowrap; }
.payload-row span { overflow: hidden; color: #fff; font-size: 12px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.payload-row--hidden { margin: 4px 0; color: #fff; background: linear-gradient(90deg, rgb(242 110 85 / 30%), rgb(242 195 79 / 17%)); border: 1px solid #c66c57; border-radius: 10px; animation: rowIn .48s var(--ease) both; }
.payload-row--hidden code::before { margin-right: 7px; color: #ffb2a1; content: "HIDDEN"; font-family: Inter, sans-serif; font-size: 10px; }
.payload-message { display: flex; align-items: center; gap: 13px; min-height: 56px; margin-top: 16px; padding: 12px 14px; background: rgb(255 253 248 / 96%); border: 1px solid var(--line); border-radius: 13px; }
.payload-message > span { flex: 0 0 auto; color: var(--green-dark); font-size: 10px; font-weight: 900; }
.payload-message p { margin: 0; color: var(--muted); font-size: 11px; font-weight: 700; line-height: 1.5; }
.payload-message strong { color: var(--ink); }
.payload-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; padding: 17px; }
.payload-summary > div { display: flex; min-width: 0; min-height: 58px; align-items: end; justify-content: space-between; gap: 7px; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 13px; }
.payload-summary span { color: var(--blue-dark); font-size: 10px; font-weight: 900; }
.payload-summary b { overflow: hidden; font-size: clamp(10px, .9vw, 14px); text-align: right; text-overflow: ellipsis; }
.payload-panel[data-state="sent"] .terminal { animation: terminalPulse .55s var(--ease); }
.payload-panel[data-mirror="on"] .source-node--disabled { color: var(--coral-dark); background: var(--coral-soft); border-color: #efad9d; }
.payload-panel[data-mirror="on"] .source-node--disabled i { background: var(--coral); }
.payload-panel[data-mirror="on"] .source-node--disabled b { display: none; }

.matrix-panel { margin-top: 18px; }
.panel-head--matrix { min-height: 75px; }
.same-look-badge { margin-left: auto; padding: 8px 11px; color: var(--green-dark); background: var(--green-soft); border-radius: 999px; font-size: 10px; font-weight: 900; white-space: nowrap; }
.matrix-wrap { padding: 18px 18px 0; overflow-x: auto; }
.matrix-grid { display: grid; min-width: 850px; grid-template-columns: minmax(180px, 1.2fr) repeat(4, minmax(130px, 1fr)); gap: 7px; }
.matrix-row { display: contents; }
.matrix-row > div { min-height: 64px; border: 1px solid var(--line); border-radius: 13px; }
.matrix-corner { display: grid; align-content: center; gap: 4px; padding: 12px; color: #fff; background: var(--ink); border-color: var(--ink) !important; }
.matrix-corner span { color: #9ce1ca; font-size: 10px; font-weight: 900; }
.matrix-corner b { font-size: 13px; }
.matrix-heading { display: flex; align-items: center; justify-content: center; gap: 8px; background: #f1f2ee; }
.matrix-icon { position: relative; display: block; flex: 0 0 28px; width: 28px; height: 28px; color: var(--blue-dark); background: var(--blue-soft); border-radius: 9px; }
.matrix-icon::before,
.matrix-icon::after { position: absolute; top: 50%; left: 50%; content: ""; }
.matrix-icon--edit::before { width: 12px; height: 4px; border: 2px solid currentColor; border-radius: 2px; transform: translate(-50%, -50%) rotate(-45deg); }
.matrix-icon--focus::before { width: 12px; height: 12px; border: 2px solid currentColor; border-radius: 50%; transform: translate(-50%, -50%); }
.matrix-icon--focus::after { width: 4px; height: 4px; background: currentColor; border-radius: 50%; transform: translate(-50%, -50%); }
.matrix-icon--send::before { width: 13px; height: 2px; background: currentColor; border-radius: 2px; transform: translate(-50%, -50%); }
.matrix-icon--send::after { width: 6px; height: 6px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: translate(0, -50%) rotate(45deg); }
.matrix-icon--check::before { width: 11px; height: 6px; border-bottom: 2px solid currentColor; border-left: 2px solid currentColor; transform: translate(-50%, -65%) rotate(-45deg); }
.matrix-heading span { font-size: 11px; font-weight: 900; }
.matrix-state { display: grid; align-content: center; gap: 4px; padding: 12px; }
.matrix-state code { font: 900 13px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.matrix-state small { font-size: 10px; font-weight: 700; }
.matrix-state--disabled { background: #eceee9; }
.matrix-state--readonly { color: var(--blue-dark); background: var(--blue-soft); border-color: #aebff0 !important; }
.matrix-state--aria { color: var(--yellow-dark); background: var(--yellow-soft); border-color: #e2c46c !important; }
.matrix-cell { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 9px; background: #fff; }
.matrix-cell b { position: relative; display: block; flex: 0 0 27px; width: 27px; height: 27px; border-radius: 50%; font-size: 0; }
.matrix-cell b::before,
.matrix-cell b::after { position: absolute; top: 50%; left: 50%; content: ""; }
.matrix-cell--no b::before,
.matrix-cell--no b::after { width: 10px; height: 2px; background: currentColor; border-radius: 2px; }
.matrix-cell--no b::before { transform: translate(-50%, -50%) rotate(45deg); }
.matrix-cell--no b::after { transform: translate(-50%, -50%) rotate(-45deg); }
.matrix-cell--yes b::before,
.matrix-cell--warn b::before { width: 9px; height: 9px; border: 2px solid currentColor; border-radius: 50%; transform: translate(-50%, -50%); }
.matrix-cell span { font-size: 10px; font-weight: 800; }
.matrix-cell--no b { color: #fff; background: #858e88; }
.matrix-cell--yes b { color: #fff; background: var(--blue); }
.matrix-cell--warn { background: #fffbef; border-color: #e7cf82 !important; }
.matrix-cell--warn b { color: #433208; background: var(--yellow); }
.matrix-cell--strong { box-shadow: inset 0 -5px 0 rgb(8 167 124 / 18%); }
.aria-caution { margin: 14px 18px 18px; padding: 13px 15px; color: #5d522f; background: var(--yellow-soft); border: 1px solid #dfbd5f; border-radius: 13px; font-size: 11px; font-weight: 700; line-height: 1.55; }
.aria-caution strong { color: var(--ink); }

.code-panel { margin-top: 18px; color: #f8fbf9; background: #101a16; border-color: #101a16; }
.code-head { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 14px; padding: 15px 19px; border-bottom: 1px solid rgb(255 255 255 / 13%); }
.code-head span { color: var(--yellow); }
.code-head button { min-height: 41px; padding: 0 14px; color: #fff; background: var(--coral); border: 0; border-radius: 11px; cursor: pointer; font-size: 10px; font-weight: 900; }
.code-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 14px; padding: 15px; }
.code-main { min-width: 0; }
.code-picker { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-bottom: 10px; padding: 4px; background: #26302b; border: 1px solid #39443f; border-radius: 12px; }
.code-picker button { z-index: 1; min-height: 39px; padding: 0 10px; color: #aab6af; background: transparent; border: 0; border-radius: 8px; cursor: pointer; font-size: 10px; font-weight: 900; }
.code-picker button[aria-pressed="true"] { color: var(--ink); anchor-name: --active-code; }
.code-picker i { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 16px) / 3); background: var(--green-soft); border-radius: 8px; box-shadow: 0 3px 9px rgb(0 0 0 / 20%); transition: translate .35s var(--ease); }
.code-picker[data-mode="readonly"] i { translate: calc(100% + 4px) 0; }
.code-picker[data-mode="aria"] i { translate: calc(200% + 8px) 0; }
@supports (position-anchor: --active-code) {
  .code-picker i {
    left: anchor(--active-code left);
    width: anchor-size(--active-code width);
    position-anchor: --active-code;
    translate: 0 0 !important;
    transition: left .35s var(--ease), width .35s var(--ease);
  }
}
.code-main pre { min-height: 280px; margin: 0; overflow: auto; padding: 19px; background: #07100c; border: 1px solid rgb(255 255 255 / 12%); border-radius: 15px; }
.code-main code { color: #e4eee8; font: 700 11px/1.75 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre; }
.code-guide { padding: 20px; background: #1b263e; border: 1px solid #35466c; border-radius: 15px; }
.code-guide > span { color: #9db6ff; font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.code-guide h3 { margin: 10px 0 12px; font-size: clamp(20px, 1.8vw, 28px); line-height: 1.25; }
.code-guide > p { margin: 0; color: #bdc8c2; font-size: 11px; font-weight: 700; line-height: 1.65; }
.guide-result { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 18px 0; }
.guide-result span { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 10px; color: #aeb9b3; background: #101728; border: 1px solid #35415b; border-radius: 10px; font-size: 10px; font-weight: 900; }
.guide-result b { color: #fff; font-size: 12px; }
.server-note { padding: 12px !important; color: #e7d8ac !important; background: rgb(242 195 79 / 10%); border: 1px solid rgb(242 195 79 / 25%); border-radius: 10px; }
.server-note strong { display: block; margin-bottom: 3px; color: var(--yellow); font-size: 10px; }

.toast { position: fixed; z-index: 30; right: 22px; bottom: 22px; padding: 12px 16px; color: #fff; background: var(--ink); border-radius: 12px; box-shadow: var(--shadow); opacity: 0; translate: 0 12px; pointer-events: none; font-size: 11px; font-weight: 900; transition: .25s var(--ease); }
.toast[data-visible="true"] { opacity: 1; translate: 0 0; }

@keyframes rowIn { from { opacity: 0; translate: 22px 0; } to { opacity: 1; translate: 0 0; } }
@keyframes terminalPulse { 45% { box-shadow: 0 0 0 5px rgb(63 114 238 / 22%), 10px 12px 0 rgb(20 33 29 / 10%); } }

@media (max-width: 1120px) {
  .lab-grid { grid-template-columns: 1fr; }
  .payload-stage { min-height: 0; }
}

@media (max-width: 820px) {
  .page { width: min(100% - 20px, 680px); padding: 18px 0 28px; }
  .hero { grid-template-columns: 1fr; padding: 0 4px 18px; }
  .hero-title { grid-column: auto; }
  h1 { font-size: clamp(42px, 13vw, 62px); }
  .hero-actions { justify-content: stretch; flex-wrap: wrap; }
  .native-badge { display: none; }
  .utility-button { flex: 1; }
  .field-row { grid-template-columns: 88px minmax(0, 1fr) 52px; }
  .field-copy { display: none; }
  .form-controls { grid-template-columns: 1fr; }
  .payload-stage { padding: 13px; }
  .flow-map { grid-template-columns: repeat(4, 1fr); }
  .destination-node { grid-column: 1 / -1; min-height: 48px; }
  .source-node i { top: auto; right: 50%; bottom: -10px; width: 2px; height: 11px; }
  .source-node--disabled b { right: calc(50% - 8px); bottom: -13px; }
  .code-layout { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .panel-head { min-height: 72px; padding: 13px; }
  .section-mark { flex-basis: 42px; width: 42px; height: 42px; border-radius: 13px; }
  .panel-tag, .same-look-badge { display: none; }
  .browser-frame { margin: 12px; }
  #stateForm { padding: 10px; }
  .field-row { grid-template-columns: 1fr 48px; gap: 7px; min-height: 92px; }
  .field-state { align-self: end; }
  .field-row input { grid-column: 1 / -1; grid-row: 2; }
  .route-state { grid-column: 2; grid-row: 1; }
  .focus-note { margin: 0 12px 12px; align-items: flex-start; flex-direction: column; gap: 4px; }
  .payload-summary { grid-template-columns: 1fr; padding: 12px; }
  .payload-summary > div { min-height: 50px; }
  .flow-map { gap: 5px; padding: 8px; }
  .source-node { min-height: 47px; }
  .source-node span { font-size: 10px; }
  .payload-row { grid-template-columns: 100px minmax(0, 1fr); }
  .matrix-wrap { padding-inline: 12px; }
  .aria-caution { margin-inline: 12px; }
  .code-picker button { padding: 0 4px; }
  .code-head { padding: 13px; }
  .code-layout { padding: 11px; }
  .toast { right: 12px; bottom: 12px; left: 12px; text-align: center; }
}

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