* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    margin: 0;
    background: #f7f7f5;
    color: #171717;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    line-height: 1.45;
    overflow-x: hidden;
}

a {
    color: #0f5c6d;
}

.brand-link {
    color: inherit;
    text-decoration: none;
}

.shell {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0 48px;
}

.visual-page {
    background:
        linear-gradient(180deg, rgba(232, 242, 238, .92), rgba(247, 247, 245, 0) 520px),
        #f8f7f2;
    color: #1b1d1b;
}

.visual-shell {
    width: min(1180px, calc(100% - 32px));
    padding-bottom: 72px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}

.visual-topbar {
    position: sticky;
    top: 0;
    z-index: 5;
    border-bottom: 1px solid rgba(31, 54, 48, .12);
    background: rgba(248, 247, 242, .88);
    backdrop-filter: blur(14px);
    margin: 0 0 34px;
    padding: 18px 16px;
}

.brand {
    display: grid;
    gap: 4px;
}

.brand strong {
    font-size: 22px;
}

.brand span {
    color: #62625d;
    font-size: 14px;
}

.nav {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.nav a {
    border: 1px solid #d8d7d0;
    border-radius: 6px;
    padding: 8px 10px;
    text-decoration: none;
    background: #fff;
}

.visual-page .nav a {
    background: rgba(255, 255, 255, .72);
}

.nav a[aria-current="page"] {
    border-color: #171717;
    color: #171717;
}

.manual-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr);
    gap: 42px;
    align-items: center;
    min-height: 560px;
    padding: 34px 0 70px;
}

.manual-copy h1 {
    max-width: 820px;
    margin: 0 0 20px;
    color: #111412;
    font-size: clamp(40px, 6.2vw, 74px);
    line-height: .98;
    letter-spacing: 0;
    overflow-wrap: break-word;
}

.manual-copy h1 span {
    display: block;
    color: #0f5c55;
}

.manual-copy .lead {
    max-width: 720px;
    color: #3f4641;
    font-size: clamp(19px, 2vw, 23px);
}

.hero-object {
    display: grid;
    gap: 18px;
    justify-items: center;
    min-width: 0;
}

.nfc-card {
    position: relative;
    display: grid;
    align-content: start;
    width: min(100%, 380px);
    min-height: 470px;
    border: 1px solid rgba(20, 60, 54, .18);
    border-radius: 28px;
    background:
        radial-gradient(circle at 82% 14%, rgba(223, 181, 72, .22), transparent 130px),
        linear-gradient(145deg, #ffffff, #e8f2ee);
    box-shadow: 0 28px 70px rgba(25, 50, 45, .16);
    padding: 34px;
}

.nfc-card strong {
    margin-top: 120px;
    color: #102a26;
    font-size: 42px;
    line-height: 1;
}

.nfc-card small {
    margin-top: 8px;
    color: #55625e;
    font-size: 17px;
}

.nfc-wave,
.nfc-wave::before,
.nfc-wave::after {
    position: absolute;
    border: 2px solid #0f5c55;
    border-left: 0;
    border-radius: 0 999px 999px 0;
    content: "";
}

.nfc-wave {
    top: 42px;
    right: 42px;
    width: 38px;
    height: 70px;
}

.nfc-wave::before {
    top: 11px;
    right: 10px;
    width: 24px;
    height: 44px;
}

.nfc-wave::after {
    top: 23px;
    right: 20px;
    width: 12px;
    height: 20px;
}

.mini-qr {
    position: absolute;
    right: 34px;
    bottom: 34px;
    display: grid;
    grid-template-columns: repeat(3, 18px);
    gap: 7px;
    padding: 13px;
    border: 1px solid rgba(16, 42, 38, .16);
    border-radius: 12px;
    background: #fff;
}

.mini-qr i {
    width: 18px;
    height: 18px;
    background: #102a26;
}

.mini-qr i:nth-child(2),
.mini-qr i:nth-child(6),
.mini-qr i:nth-child(8) {
    background: #d9e6df;
}

.hero-caption {
    max-width: 380px;
    color: #59635f;
    font-size: 15px;
    text-align: center;
}

.visual-section {
    margin: 74px 0;
}

.centered {
    max-width: 780px;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.section-head p {
    color: #4f5b56;
}

.big-flow {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr) auto minmax(220px, 1fr);
    gap: 16px;
    align-items: center;
    margin-top: 26px;
}

.flow-node,
.flow-stack,
.use-card,
.visual-steps article,
.house-card,
.write-card,
.next-panel {
    border: 1px solid rgba(31, 54, 48, .13);
    border-radius: 18px;
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 16px 45px rgba(27, 45, 40, .08);
}

.flow-node {
    display: grid;
    place-items: center;
    min-height: 170px;
    padding: 22px;
    text-align: center;
}

.flow-node span {
    color: #65716c;
    font-size: 14px;
}

.flow-node strong {
    color: #102a26;
    font-size: 28px;
}

.flow-node.identity {
    background: #0f5c55;
    color: #fff;
}

.flow-node.identity span,
.flow-node.identity strong {
    color: #fff;
}

.flow-arrow,
.tech-chain b,
.mini-flow b,
.independence-diagram b,
.create-preview b {
    color: #b78a21;
    font-size: 28px;
    line-height: 1;
}

.flow-stack {
    display: grid;
    gap: 10px;
    padding: 18px;
}

.flow-stack div {
    border-radius: 10px;
    background: #edf4f0;
    color: #173d38;
    padding: 15px 16px;
    font-weight: 750;
}

.step-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.visual-steps article {
    min-height: 230px;
    padding: 22px;
}

.step-number {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #0f5c55;
    color: #fff;
    font-weight: 800;
}

.visual-steps h3,
.use-card h3,
.house-card h3 {
    margin: 18px 0 8px;
    color: #121614;
    font-size: 22px;
}

.section-cta {
    display: flex;
    justify-content: center;
    margin-top: 22px;
}

.use-grid,
.house-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.house-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.use-card,
.house-card {
    padding: 22px;
}

.mini-flow,
.same-id,
.tech-chain,
.independence-diagram,
.create-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.mini-flow span,
.tech-chain span,
.create-preview span,
.independence-diagram span,
.independence-diagram em {
    border: 1px solid rgba(15, 92, 85, .18);
    border-radius: 999px;
    background: #edf4f0;
    color: #173d38;
    padding: 9px 12px;
    font-style: normal;
    font-weight: 750;
}

.plain-note {
    max-width: 820px;
    margin: 18px auto 0;
    color: #4f5b56;
    text-align: center;
}

.house-section {
    border-radius: 28px;
    background: #eef4f1;
    padding: 46px;
}

.same-id {
    border-radius: 14px;
    background: #f8f7f2;
    color: #173d38;
    padding: 14px;
    font-weight: 750;
}

.storage-illustration {
    position: relative;
    height: 120px;
    margin-top: 18px;
}

.storage-illustration::before,
.storage-illustration::after {
    position: absolute;
    content: "";
}

.storage-illustration.disk::before {
    left: 50%;
    top: 14px;
    width: 150px;
    height: 74px;
    border: 2px solid #0f5c55;
    border-radius: 16px;
    background: #fff;
    transform: translateX(-50%);
}

.storage-illustration.disk::after {
    left: 50%;
    top: 44px;
    width: 88px;
    height: 10px;
    border-radius: 999px;
    background: #d6b35a;
    transform: translateX(-50%);
}

.storage-illustration.nas::before {
    left: 50%;
    top: 8px;
    width: 166px;
    height: 86px;
    border: 2px solid #0f5c55;
    border-radius: 18px;
    background: linear-gradient(90deg, #fff 0 46%, #edf4f0 46% 54%, #fff 54%);
    transform: translateX(-50%);
}

.storage-illustration.nas::after {
    left: calc(50% + 42px);
    top: 42px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d6b35a;
}

.independence {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(300px, 1.1fr);
    gap: 28px;
    align-items: center;
}

.independence h2 {
    margin: 0 0 12px;
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1;
}

.independence-diagram {
    justify-content: center;
    border: 1px solid rgba(31, 54, 48, .13);
    border-radius: 24px;
    background: #fff;
    padding: 28px;
}

.independence-diagram div {
    display: grid;
    gap: 10px;
}

.developer-close {
    border-top: 1px solid rgba(31, 54, 48, .12);
    padding-top: 58px;
}

.tech-chain {
    justify-content: center;
    margin: 22px 0;
}

.centered-actions {
    justify-content: center;
}

.create-hero {
    min-height: 460px;
}

.create-preview {
    justify-content: center;
    min-height: 300px;
    border: 1px solid rgba(31, 54, 48, .13);
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.9), rgba(237,244,240,.9));
    padding: 28px;
    box-shadow: 0 20px 55px rgba(27, 45, 40, .1);
}

.visual-examples .panel {
    border-radius: 18px;
    box-shadow: 0 16px 45px rgba(27, 45, 40, .08);
}

.content-icon {
    display: inline-grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: #edf4f0;
    color: #0f5c55;
    font-weight: 850;
}

.content-icon.photo {
    position: relative;
}

.content-icon.photo::before {
    width: 28px;
    height: 20px;
    border: 2px solid #0f5c55;
    border-radius: 4px;
    content: "";
}

.content-icon.photo::after {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d6b35a;
    content: "";
    transform: translate(8px, -5px);
}

.write-section {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(300px, 1.15fr);
    gap: 24px;
    align-items: center;
}

.write-section h2 {
    margin: 0 0 12px;
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1;
}

.write-card {
    display: grid;
    gap: 12px;
    padding: 22px;
}

.write-card span {
    color: #173d38;
    font-weight: 800;
}

.toolkit-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: end;
    margin: 52px 0 30px;
}

.toolkit-hero h1 {
    margin: 0 0 10px;
    color: #111412;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1;
    overflow-wrap: break-word;
}

.mode-tabs {
    display: inline-flex;
    gap: 8px;
    border: 1px solid rgba(31, 54, 48, .13);
    border-radius: 999px;
    background: #fff;
    padding: 6px;
}

.mode-tab {
    width: auto;
    border-radius: 999px;
    background: transparent;
    color: #173d38;
    padding: 10px 16px;
}

.mode-tab.is-active {
    background: #0f5c55;
    color: #fff;
}

.toolkit-workspace {
    margin-bottom: 64px;
    min-width: 0;
}

.wizard-progress {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 28px;
}

.wizard-progress span {
    border: 1px solid rgba(31, 54, 48, .13);
    border-radius: 999px;
    background: #fff;
    color: #59635f;
    padding: 10px 12px;
    text-align: center;
    font-size: 14px;
    font-weight: 750;
}

.wizard-progress span.is-active,
.wizard-progress span.is-done {
    border-color: #0f5c55;
    background: #edf4f0;
    color: #0f5c55;
}

.wizard-step {
    display: none;
}

.wizard-step.is-active {
    display: block;
}

.choice-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.choice-card {
    display: grid;
    gap: 10px;
    min-height: 170px;
    width: 100%;
    border: 1px solid rgba(31, 54, 48, .13);
    border-radius: 20px;
    background: rgba(255, 255, 255, .82);
    color: #111412;
    box-shadow: 0 14px 38px rgba(27, 45, 40, .07);
    padding: 22px;
    text-align: left;
    overflow: hidden;
}

.choice-card strong {
    font-size: 22px;
    line-height: 1.1;
    overflow-wrap: break-word;
}

.choice-card span {
    color: #4f5b56;
    overflow-wrap: break-word;
}

.choice-card:hover,
.choice-card.is-selected {
    border-color: #0f5c55;
    background: #edf4f0;
}

.muted-choice {
    border-style: dashed;
    box-shadow: none;
}

.assistant-form,
.summary-card,
.result-panel {
    border: 1px solid rgba(31, 54, 48, .13);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 16px 45px rgba(27, 45, 40, .08);
    padding: 24px;
}

.assistant-form {
    max-width: 720px;
}

.assistant-form label small,
.panel label small {
    display: block;
    color: #66716c;
    line-height: 1.35;
}

.summary-flow {
    border-radius: 16px;
    background: #edf4f0;
    color: #173d38;
    padding: 18px;
    font-size: clamp(20px, 3vw, 32px);
    font-weight: 850;
}

.summary-card dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0 0;
}

.summary-card dl div {
    border: 1px solid rgba(31, 54, 48, .1);
    border-radius: 14px;
    padding: 14px;
}

.summary-card dt {
    color: #59635f;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.summary-card dd {
    margin: 4px 0 0;
    color: #111412;
    font-weight: 750;
}

.result-layout {
    display: grid;
    grid-template-columns: minmax(260px, .7fr) minmax(0, 1.3fr);
    gap: 24px;
    align-items: start;
}

.qr-result {
    display: grid;
    gap: 14px;
    max-width: 320px;
}

.qr-result img {
    width: 100%;
    aspect-ratio: 1;
    border: 1px solid rgba(31, 54, 48, .13);
    border-radius: 20px;
    background: #fff;
}

.result-panel h3 {
    margin: 0 0 12px;
    font-size: 24px;
}

.result-panel pre {
    margin-bottom: 14px;
}

.how-to-write {
    margin-top: 20px;
    border-top: 1px solid rgba(31, 54, 48, .13);
    padding-top: 18px;
}

.how-to-write h4 {
    margin: 0 0 8px;
}

.how-to-write ol {
    margin: 0;
    padding-left: 20px;
}

.backup-link {
    display: inline-flex;
    margin-top: 16px;
    color: #0f5c55;
    font-weight: 800;
}

.context-note {
    border: 1px solid rgba(15, 92, 85, .16);
    border-radius: 14px;
    background: #edf4f0;
    color: #173d38;
    margin: 12px 0;
    padding: 14px;
}

.music-search-panel {
    display: grid;
    gap: 12px;
    margin-top: 12px;
}

.music-search-status {
    min-height: 20px;
    color: #59635f;
    font-size: 14px;
    font-weight: 700;
}

.music-search-status[data-tone="success"] {
    color: #0f5c55;
}

.music-search-status[data-tone="error"] {
    color: #8a2c1b;
}

.music-search-results {
    display: grid;
    gap: 10px;
}

.music-result {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    border: 1px solid rgba(31, 54, 48, .13);
    border-radius: 12px;
    background: #fff;
    padding: 14px;
}

.music-result.is-selected {
    border-color: #0f5c55;
    background: #edf4f0;
}

.music-result strong,
.music-result span,
.music-result small {
    display: block;
    overflow-wrap: anywhere;
}

.music-result strong {
    font-size: 17px;
    line-height: 1.2;
}

.music-result span {
    margin-top: 4px;
    color: #4f5b56;
}

.music-result small {
    margin-top: 6px;
    color: #66716c;
}

.context-note strong {
    display: block;
    margin-bottom: 4px;
}

.context-note p {
    margin: 0;
    color: #3f514b;
}

.context-note small {
    display: block;
    margin-top: 6px;
    color: #66716c;
}

.form-warning {
    border: 1px solid rgba(116, 87, 26, .28);
    border-radius: 12px;
    background: #fff7e6;
    color: #624715;
    margin: 14px 0;
    padding: 12px 14px;
    font-weight: 700;
}

.portable-tree {
    display: grid;
    gap: 4px;
    margin: 12px 0;
    border: 1px solid rgba(31, 54, 48, .12);
    border-radius: 12px;
    background: #fff;
    color: #173d38;
    padding: 14px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
    overflow-x: auto;
}

.capability-map {
    margin: 18px 0 34px;
}

.capability-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    max-width: 100%;
    overflow: hidden;
}

.capability-grid article {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    border: 1px solid rgba(31, 54, 48, .12);
    border-radius: 16px;
    background: rgba(255, 255, 255, .78);
    padding: 16px;
}

.capability-grid h3 {
    margin: 10px 0 8px;
    font-size: 18px;
}

.capability-grid p,
.capability-grid li {
    margin: 0;
    color: #46534e;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
}

.capability-grid ul {
    display: grid;
    gap: 7px;
    margin: 0;
    padding-left: 18px;
}

.tag {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 800;
}

.tag.ok {
    background: #e6f2ed;
    color: #0f5c55;
}

.tag.advanced {
    background: #f4eee0;
    color: #74571a;
}

.tag.soon {
    background: #f0f0f0;
    color: #565650;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
    gap: 28px;
    align-items: center;
    margin: 28px 0 18px;
}

.compact-hero {
    align-items: start;
}

.hero h1,
.spec-intro h1 {
    max-width: 780px;
    margin: 0 0 16px;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 1;
}

.compact-hero h1 {
    font-size: clamp(36px, 6vw, 62px);
}

.lead {
    max-width: 760px;
    color: #3d3d38;
    font-size: 20px;
}

.eyebrow {
    margin: 0 0 10px;
    color: #62625d;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.button,
.inline-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 6px;
    background: #171717;
    color: #fff;
    padding: 10px 14px;
    text-decoration: none;
}

.button.secondary,
.inline-action {
    border: 1px solid #d8d7d0;
    background: #fff;
    color: #171717;
}

.signal-panel {
    border: 1px solid #deddd6;
    border-radius: 8px;
    background: #fff;
    padding: 18px;
}

.tag-face {
    display: grid;
    place-items: center;
    min-height: 220px;
    border: 1px solid #cfcfc8;
    border-radius: 8px;
    background: linear-gradient(135deg, #f9f7ed, #e6f2f2);
    color: #171717;
    text-align: center;
}

.tag-face span,
.tag-face small {
    color: #62625d;
}

.tag-face strong {
    font-size: 34px;
}

.path-grid,
.examples-grid,
.snippet-grid,
.mode-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.path-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 18px 0 44px;
}

.section {
    margin: 52px 0;
}

.section-head {
    margin-bottom: 16px;
}

.section-head h2,
.split h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.08;
}

.flow {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.flow article {
    min-height: 150px;
    border: 1px solid #deddd6;
    border-radius: 8px;
    background: #fff;
    padding: 16px;
}

.flow strong {
    display: block;
    margin-bottom: 8px;
}

.split {
    display: grid;
    grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr);
    gap: 24px;
}

.reference-note {
    margin-bottom: 24px;
}

.check-list,
.steps {
    margin: 16px 0 0;
    padding-left: 20px;
}

.check-list li,
.steps li {
    margin: 8px 0;
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 10px;
}

.link-grid a {
    border: 1px solid #d8d7d0;
    border-radius: 6px;
    background: #fff;
    color: #171717;
    padding: 13px 14px;
    text-decoration: none;
}

.link-grid a:hover,
.nav a:hover,
.button.secondary:hover,
.inline-action:hover {
    border-color: #9fa59b;
}

.snippet-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 10px;
}

.snippet-head h3 {
    margin: 0;
}

.snippet-head button {
    width: auto;
    padding: 8px 10px;
    font-size: 14px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.panel {
    background: #fff;
    border: 1px solid #deddd6;
    border-radius: 8px;
    padding: 18px;
}

.panel h1,
.panel h2 {
    margin: 0 0 12px;
    font-size: 20px;
}

.panel p {
    margin: 0 0 12px;
    color: #4f4f49;
}

label {
    display: grid;
    gap: 6px;
    margin: 12px 0;
    color: #33332f;
    font-size: 14px;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid #cfcfc8;
    border-radius: 6px;
    padding: 10px;
    font: inherit;
    background: #fff;
    color: #171717;
}

textarea {
    min-height: 112px;
    resize: vertical;
}

button {
    border: 0;
    border-radius: 6px;
    background: #171717;
    color: #fff;
    padding: 10px 14px;
    font: inherit;
    cursor: pointer;
}

button.secondary {
    background: #ecebe4;
    color: #171717;
}

.actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.output {
    grid-column: 1 / -1;
}

pre {
    margin: 0;
    min-height: 0;
    overflow: auto;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    background: #171717;
    color: #f5f5ef;
    border-radius: 8px;
    padding: 16px;
    font-size: 13px;
}

.qr-wrap {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.qr-wrap img {
    width: 260px;
    height: 260px;
    background: #fff;
    border: 1px solid #deddd6;
}

.status {
    color: #62625d;
    font-size: 13px;
}

.full {
    grid-column: 1 / -1;
}

@media (max-width: 820px) {
    .grid,
    .capability-grid,
    .qr-wrap,
    .hero,
    .manual-hero,
    .big-flow,
    .path-grid,
    .examples-grid,
    .snippet-grid,
    .split,
    .mode-list,
    .flow,
    .step-grid,
    .use-grid,
    .house-grid,
    .independence,
    .write-section,
    .toolkit-hero,
    .choice-grid,
    .summary-card dl,
    .result-layout {
        grid-template-columns: 1fr;
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero h1,
    .spec-intro h1 {
        font-size: 42px;
    }

    .lead,
    .manual-copy .lead {
        font-size: 17px;
    }

    .visual-shell {
        width: min(1180px, calc(100% - 24px));
    }

    .visual-topbar {
        position: static;
        padding-top: 14px;
    }

    .manual-hero {
        min-height: 0;
        padding: 12px 0 44px;
    }

    .manual-copy h1 {
        max-width: 330px;
        font-size: 30px;
        line-height: 1.02;
    }

    .manual-copy {
        max-width: 330px;
    }

    .manual-copy .lead,
    .manual-copy .actions {
        max-width: 330px;
    }

    .manual-hero > *,
    .visual-section,
    .section-head,
    .lead {
        min-width: 0;
        max-width: 100%;
    }

    .nfc-card {
        width: 100%;
        min-height: 380px;
        border-radius: 22px;
    }

    .nfc-card strong {
        margin-top: 92px;
        font-size: 34px;
    }

    .flow-arrow {
        justify-self: center;
        transform: rotate(90deg);
    }

    .visual-section {
        margin: 52px 0;
    }

    .house-section {
        padding: 26px 16px;
    }

    .tech-chain,
    .mini-flow,
    .create-preview,
    .independence-diagram {
        align-items: stretch;
        flex-direction: column;
    }

    .tech-chain b,
    .mini-flow b,
    .create-preview b,
    .independence-diagram b {
        align-self: center;
        transform: rotate(90deg);
    }

    .button,
    .inline-action {
        width: 100%;
    }

    .centered-actions {
        align-items: stretch;
    }

    .toolkit-hero {
        align-items: start;
        margin-top: 34px;
    }

    .toolkit-hero h1 {
        max-width: 330px;
        font-size: 32px;
        line-height: 1.04;
    }

    .toolkit-hero .lead,
    .toolkit-workspace,
    .choice-grid {
        max-width: 330px;
    }

    .mode-tabs {
        justify-self: start;
    }

    .wizard-progress {
        max-width: 330px;
        grid-template-columns: 1fr;
    }

    .choice-card {
        min-height: 0;
        max-width: 100%;
    }

    .assistant-form,
    .summary-card,
    .result-panel {
        padding: 18px;
    }

    .music-result {
        grid-template-columns: 1fr;
    }

    .qr-result {
        max-width: 100%;
    }
}
