:root {
    --bg: #F3F7FB;
    --bg-deep: #E6EFF7;
    --surface: #FFFFFF;
    --surface-soft: #DCEBF5;
    --ink: #10263A;
    --text: #263B4C;
    --muted: #60788C;
    --soft: #8094A5;
    --brand: #3B9FE0;
    --brand-bright: #67B9EC;
    --steel: #1E6FB8;
    --ice: #B8DDF3;
    --mint: #39A69C;
    --border: rgba(30,111,184,.16);
    --border-strong: rgba(59,159,224,.38);
    --shadow: 0 14px 36px rgba(16,38,58,.08);
    --radius: 14px;
    --bar-height: 72px;
    --content-width: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
    margin: 0;
    min-width: 0;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 16px;
    line-height: 1.8;
}
body.overlay-open { overflow: hidden; }
a { color: var(--steel); text-decoration: none; }
a:hover { color: var(--brand); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
    outline: 3px solid rgba(59,159,224,.34);
    outline-offset: 3px;
}
button, input { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }

.skip-link {
    position: fixed;
    left: 16px;
    top: -80px;
    z-index: 200;
    padding: 10px 14px;
    background: var(--ink);
    color: #fff;
    border-radius: 8px;
}
.skip-link:focus { top: 12px; color: #fff; }
.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;
}

.brand-bar {
    position: sticky;
    top: 0;
    z-index: 90;
    height: var(--bar-height);
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,.92);
    box-shadow: 0 8px 24px rgba(16,38,58,.05);
    backdrop-filter: blur(12px);
}
.brand-bar-inner {
    width: min(calc(100% - 32px), var(--content-width));
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}
.brand-home {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 16px;
    color: var(--ink);
}
.brand-logo, .panel-logo, .footer-logo {
    width: auto;
    height: 34px;
    max-width: 220px;
    object-fit: contain;
}
.brand-text-fallback { font-weight: 800; letter-spacing: .04em; color: var(--ink); }
.brand-status { color: var(--muted); font-size: 14px; white-space: nowrap; }
.brand-actions { display: flex; align-items: center; gap: 8px; }
.icon-button, .app-link-top, .rail-all-button, .close-button, .search-all-button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid var(--border-strong);
    padding: 0 16px;
    background: #fff;
    color: var(--steel);
    font-weight: 700;
}
.icon-button:hover, .app-link-top:hover, .rail-all-button:hover, .close-button:hover, .search-all-button:hover {
    border-color: var(--brand);
    background: #eef8ff;
    color: var(--steel);
}
.app-link-top {
    border: 0;
    background: linear-gradient(135deg,#67B9EC 0%,#3B9FE0 52%,#1E6FB8 100%);
    color: #fff;
}
.app-link-top:hover { color: #fff; filter: brightness(.98); }

.site-main { min-height: 70vh; }
.page-shell {
    width: min(calc(100% - 32px), var(--content-width));
    margin: 0 auto;
    padding: 32px 0 80px;
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}
.category-rail { min-width: 0; }
.rail-card {
    position: sticky;
    top: calc(var(--bar-height) + 22px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255,255,255,.94);
    box-shadow: var(--shadow);
    padding: 14px;
}
.rail-group + .rail-group { margin-top: 18px; }
.rail-group h2 {
    margin: 0 0 2px;
    font-size: 13px;
    letter-spacing: .12em;
    color: var(--steel);
}
.rail-group p {
    margin: 0 0 9px;
    color: var(--soft);
    font-size: 12px;
    line-height: 1.55;
}
.rail-group nav { display: grid; gap: 3px; }
.rail-group nav a {
    min-height: 38px;
    display: flex;
    align-items: center;
    padding: 7px 10px 7px 12px;
    border-left: 3px solid transparent;
    color: var(--text);
    border-radius: 4px 9px 9px 4px;
    font-size: 14px;
}
.rail-group nav a:hover { background: #eef7fd; }
.rail-group nav a.is-current {
    border-left-color: var(--steel);
    background: #e2f1fb;
    color: var(--ink);
    font-weight: 800;
}
.rail-all-button { width: 100%; margin-top: 16px; }
.content-column { min-width: 0; }

.breadcrumbs {
    margin-bottom: 16px;
    color: var(--soft);
    font-size: 14px;
}
.breadcrumbs a { color: var(--muted); }
.page-hero, .home-hero, .section-card, .article-card, .notice-card, .content-band, .task-card, .media-card, .soft-panel {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}
.page-hero { padding: clamp(24px, 4vw, 44px); margin-bottom: 26px; }
.page-hero .eyebrow, .home-hero .eyebrow, .section-eyebrow {
    margin: 0 0 8px;
    color: var(--steel);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}
h1, h2, h3 { color: var(--ink); line-height: 1.32; }
h1 { margin: 0 0 18px; font-size: clamp(30px, 4vw, 38px); letter-spacing: -.025em; }
h2 { margin: 0 0 14px; font-size: clamp(22px, 3vw, 28px); }
h3 { margin: 0 0 10px; font-size: 19px; }
p { margin-top: 0; }
.lead { max-width: 820px; margin-bottom: 0; font-size: 18px; color: var(--muted); }
.hero-actions, .action-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.primary-button, .secondary-button, .text-link-button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border-radius: 10px;
    font-weight: 800;
}
.primary-button { background: linear-gradient(135deg,#67B9EC 0%,#3B9FE0 52%,#1E6FB8 100%); color: #fff; }
.primary-button:hover { color: #fff; filter: brightness(.98); }
.secondary-button { border: 1px solid var(--border-strong); background: #fff; color: var(--steel); }
.text-link-button { padding: 0; color: var(--steel); }

.media-frame, .banner-frame, .portrait-frame, .icon-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: linear-gradient(135deg, #f8fbfe, #e6f1f8);
}
.media-frame { min-height: 210px; max-height: 360px; }
.banner-frame { min-height: 220px; max-height: 420px; }
.portrait-frame { min-height: 300px; max-height: 460px; }
.icon-frame { width: 72px; height: 72px; border-radius: 18px; }
.media-frame img, .banner-frame img, .portrait-frame img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.icon-frame img { width: 64px; height: 64px; object-fit: contain; }
.media-fallback, .banner-fallback, .portrait-fallback, .icon-fallback {
    color: var(--ink);
    font-weight: 800;
    text-align: center;
    letter-spacing: .04em;
}
.media-fallback { min-height: 220px; padding: 30px; }
.banner-fallback { min-height: 260px; padding: 40px; background: linear-gradient(135deg,#dff1fb,#b8ddf3); }
.portrait-fallback { min-height: 380px; padding: 40px; }
.icon-fallback { width: 72px; height: 72px; }

.home-hero { overflow: hidden; margin-bottom: 30px; }
.home-hero-copy { padding: clamp(24px, 4vw, 42px); }
.home-hero h1 { max-width: 880px; }
.home-hero .lead { max-width: 860px; }

.section-block { margin-top: 32px; }
.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 14px;
}
.section-heading p { max-width: 640px; margin: 0; color: var(--muted); }
.section-card, .article-card, .soft-panel { padding: clamp(20px, 3vw, 30px); }
.soft-panel { background: linear-gradient(180deg,#fdfefe,#edf6fb); }
.task-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.task-card { padding: 18px; min-width: 0; }
.task-card .task-number { color: var(--steel); font-weight: 900; font-size: 14px; }
.task-card p { margin-bottom: 14px; color: var(--muted); }
.task-card a { font-weight: 800; }
.task-card .mini-media { margin-bottom: 14px; }

.editor-grid { display: grid; grid-template-columns: 1.3fr .85fr .85fr; gap: 14px; }
.editor-main { grid-row: span 2; }
.editor-card { padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.editor-card p:last-child { margin-bottom: 0; }

.channel-stack { display: grid; gap: 18px; }
.content-band {
    display: grid;
    grid-template-columns: minmax(260px, .85fr) minmax(0, 1.15fr);
    gap: 24px;
    padding: 18px;
    align-items: center;
}
.content-band.is-reverse .media-frame { order: 2; }
.content-band.is-reverse .band-copy { order: 1; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.tag {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 3px 10px;
    border-radius: 8px;
    background: #eaf5fb;
    color: var(--steel);
    font-size: 13px;
    font-weight: 700;
}

.people-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 20px; align-items: center; }
.node-list { display: grid; gap: 12px; }
.node { padding: 16px 18px; border-left: 4px solid var(--mint); background: #f4fbfa; border-radius: 0 12px 12px 0; }
.node:nth-child(2) { border-left-color: var(--brand); background: #f2f8fd; }
.node:nth-child(3) { border-left-color: var(--steel); background: #eef5fb; }

.mosaic { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px; }
.mosaic article { min-height: 150px; padding: 20px; border-radius: var(--radius); border: 1px solid var(--border); background: #e9f4fb; }
.mosaic article:nth-child(1) { grid-column: span 7; background: #dceff9; }
.mosaic article:nth-child(2) { grid-column: span 5; background: #edf7f5; }
.mosaic article:nth-child(3) { grid-column: span 4; background: #f2f6f9; }
.mosaic article:nth-child(4) { grid-column: span 4; background: #e4f1fa; }
.mosaic article:nth-child(5) { grid-column: span 4; background: #dff3ef; }
.mosaic article:nth-child(6) { grid-column: span 12; min-height: 120px; background: #eef4f8; }
.mosaic .big-index { display: block; color: var(--steel); font-weight: 900; letter-spacing: .08em; }

.dual-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.shelf-list { display: grid; gap: 10px; }
.shelf-row { padding: 14px 16px; border-bottom: 1px solid var(--border); background: #f8fbfd; }
.shelf-row strong { display: block; color: var(--ink); }
.chart-list { display: grid; gap: 8px; }
.chart-item { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.chart-num { font-size: 28px; line-height: 1; font-weight: 900; color: var(--steel); }

.lab-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.lab-item { padding: 20px; border: 1px solid var(--border); background: #fff; border-radius: var(--radius); }
.demo-toggle { margin-top: 12px; min-height: 44px; padding: 0 14px; border: 1px solid var(--border-strong); border-radius: 10px; background: #fff; color: var(--steel); font-weight: 800; }
.compact-reading .content-column p { line-height: 1.58; }
.compact-reading .section-card, .compact-reading .article-card { padding-top: 18px; padding-bottom: 18px; }

.app-experience { display: grid; grid-template-columns: minmax(260px,.8fr) minmax(0,1.2fr); gap: 24px; align-items: center; }
.app-copy-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.feature-list { display: grid; gap: 10px; padding: 0; margin: 0; list-style: none; }
.feature-list li { padding: 12px 14px; border-left: 3px solid var(--brand); background: #f6fbfe; border-radius: 0 10px 10px 0; }

.boundary-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.boundary-grid article { padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.boundary-grid article:last-child { grid-column: 1 / -1; background: linear-gradient(135deg,#eef7fc,#edf7f5); }

.page-sections { display: grid; gap: 18px; }
.split-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.triple-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.step-list { counter-reset: steps; display: grid; gap: 12px; }
.step-item { position: relative; padding: 20px 20px 20px 74px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.step-item::before {
    counter-increment: steps;
    content: counter(steps, decimal-leading-zero);
    position: absolute;
    left: 18px;
    top: 18px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--steel);
    color: #fff;
    font-weight: 900;
}
.kicker { color: var(--steel); font-size: 13px; font-weight: 900; letter-spacing: .08em; }
.callout { padding: 18px 20px; border-left: 4px solid var(--mint); background: #edf8f6; border-radius: 0 12px 12px 0; }
.callout.blue { border-left-color: var(--steel); background: #edf6fc; }
.related-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.related-links a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px; border: 1px solid var(--border); border-radius: 10px; background: #fff; font-weight: 700; }
.page-action { margin-top: 24px; padding: 24px; border-radius: var(--radius); background: linear-gradient(135deg,#10263A,#1E6FB8); color: #fff; }
.page-action h2, .page-action p { color: #fff; }
.page-action a { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

.timeline-board { display: grid; gap: 12px; }
.timeline-column { padding: 20px; border-radius: var(--radius); border: 1px solid var(--border); background: #fff; }
.timeline-column h3 { display: flex; justify-content: space-between; gap: 10px; }
.timeline-column h3 span { color: var(--steel); font-size: 13px; }
.process-grid { display: grid; grid-template-columns: repeat(7, minmax(120px,1fr)); gap: 10px; overflow: visible; }
.process-item { min-width: 0; padding: 18px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.process-item strong { display: block; color: var(--steel); margin-bottom: 8px; }
.map-path { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.map-node { position: relative; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.map-node::after { content: ""; position: absolute; right: -13px; top: 50%; width: 13px; height: 1px; background: var(--border-strong); }
.map-node:last-child::after { display: none; }

.faq-list { display: grid; gap: 10px; }
details { border: 1px solid var(--border); border-radius: 12px; background: #fff; overflow: hidden; }
summary { min-height: 54px; display: flex; align-items: center; padding: 12px 18px; color: var(--ink); font-weight: 800; cursor: pointer; }
details p { padding: 0 18px 18px; margin: 0; color: var(--muted); }

.site-footer { background: #10263A; color: #CFE0EC; }
.footer-inner { width: min(calc(100% - 32px), var(--content-width)); margin: 0 auto; padding: 42px 0 34px; }
.footer-brand { display: flex; gap: 14px; align-items: center; margin-bottom: 28px; }
.footer-brand-link { min-height: 44px; display: flex; align-items: center; }
.footer-logo { filter: brightness(0) invert(1); }
.footer-brand strong { display: block; color: #fff; font-size: 20px; }
.footer-brand span { color: #98B4C9; font-size: 13px; letter-spacing: .08em; }
.footer-groups { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 28px; }
.footer-groups h2 { color: #fff; font-size: 15px; margin-bottom: 10px; }
.footer-groups nav { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.footer-groups a { color: #C7D8E6; min-height: 32px; display: inline-flex; align-items: center; }
.footer-groups a:hover { color: #fff; }
.footer-note { margin: 30px 0 10px; max-width: 920px; color: #B8CCDA; }
.copyright { margin: 0; color: #8EA9BD; font-size: 14px; }

.overlay {
    position: fixed;
    inset: 0;
    z-index: 110;
    background: rgba(16,38,58,.42);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;
}
.overlay.is-open { visibility: visible; opacity: 1; pointer-events: auto; }
.site-panel {
    position: fixed;
    left: 50%;
    bottom: 18px;
    z-index: 120;
    width: min(calc(100% - 32px), 980px);
    max-height: 82vh;
    overflow: auto;
    transform: translate(-50%, 24px);
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 28px 70px rgba(16,38,58,.22);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.site-panel.is-open { visibility: visible; opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.panel-head, .search-head {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid var(--border);
}
.panel-brand { display: flex; align-items: center; gap: 14px; }
.panel-brand strong, .search-head strong { display: block; color: var(--ink); font-size: 19px; }
.panel-brand span, .search-head span { display: block; color: var(--muted); font-size: 13px; }
.panel-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; padding: 20px; }
.panel-grid h2 { font-size: 16px; }
.panel-links { display: grid; gap: 8px; }
.panel-links a { display: block; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: #f9fcfe; color: var(--text); }
.panel-links a.is-current { border-color: var(--brand); background: #e8f4fc; }
.panel-links strong { display: block; color: var(--ink); }
.panel-links span { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.5; }

.search-dialog {
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 120;
    width: min(calc(100% - 32px), 640px);
    max-height: min(82vh, 720px);
    overflow: auto;
    transform: translate(-50%, -46%);
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 28px 70px rgba(16,38,58,.22);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.search-dialog.is-open { visibility: visible; opacity: 1; pointer-events: auto; transform: translate(-50%, -50%); }
.search-field { display: block; padding: 18px 20px 10px; }
.search-field input { width: 100%; min-height: 50px; border: 1px solid var(--border-strong); border-radius: 10px; padding: 0 14px; color: var(--ink); background: #f9fcfe; }
.search-presets { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 20px 20px; }
.search-presets a { display: block; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.search-presets strong { display: block; color: var(--ink); }
.search-presets span { display: block; color: var(--muted); font-size: 13px; }
.search-empty { margin: 0 20px 16px; padding: 14px; background: #eef6fb; color: var(--muted); border-radius: 10px; }
.search-all-button { margin: 0 20px 20px; width: calc(100% - 40px); }
.mobile-bottom-nav { display: none; }

@media (max-width: 1100px) {
    .page-shell { grid-template-columns: 210px minmax(0,1fr); gap: 20px; }
    .task-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .process-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
}

@media (max-width: 960px) {
    .page-shell { display: block; }
    .category-rail { display: none; }
    .panel-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .editor-grid { grid-template-columns: 1fr 1fr; }
    .editor-main { grid-column: 1 / -1; grid-row: auto; }
    .people-layout, .app-experience { grid-template-columns: 1fr; }
    .map-path { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .map-node:nth-child(2)::after { display: none; }
    .footer-groups { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 760px) {
    :root { --bar-height: 68px; }
    body { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
    .brand-bar-inner, .page-shell, .footer-inner { width: calc(100% - 32px); }
    .brand-status, .app-link-top { display: none; }
    .brand-logo { max-width: 160px; height: 30px; }
    .brand-actions { margin-left: auto; }
    .icon-button { padding: 0 12px; }
    .page-shell { padding-top: 22px; padding-bottom: 56px; }
    .page-hero { padding: 22px 18px; }
    h1 { font-size: 30px; }
    h2 { font-size: 22px; }
    .lead { font-size: 16px; }
    .banner-frame { min-height: 180px; max-height: none; }
    .banner-frame img, .media-frame img, .portrait-frame img { height: auto; max-height: none; }
    .media-frame, .portrait-frame { min-height: 0; max-height: none; }
    .media-fallback { min-height: 190px; }
    .portrait-fallback { min-height: 300px; }
    .task-grid, .editor-grid, .dual-layout, .lab-grid, .boundary-grid, .split-grid, .triple-grid { grid-template-columns: 1fr; }
    .editor-main { grid-column: auto; }
    .content-band { grid-template-columns: 1fr; padding: 14px; }
    .content-band.is-reverse .media-frame, .content-band.is-reverse .band-copy { order: initial; }
    .mosaic { grid-template-columns: 1fr; }
    .mosaic article, .mosaic article:nth-child(n) { grid-column: auto; min-height: 0; }
    .boundary-grid article:last-child { grid-column: auto; }
    .process-grid { grid-template-columns: 1fr; }
    .map-path { grid-template-columns: 1fr; }
    .map-node::after { display: none; }
    .panel-grid { grid-template-columns: 1fr; }
    .site-panel { bottom: 0; width: 100%; max-height: 82vh; border-radius: 18px 18px 0 0; }
    .search-presets { grid-template-columns: 1fr; }
    .search-dialog { width: calc(100% - 32px); }
    .mobile-bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 80;
        height: calc(58px + env(safe-area-inset-bottom));
        padding-bottom: env(safe-area-inset-bottom);
        display: grid;
        grid-template-columns: repeat(5, minmax(0,1fr));
        border-top: 1px solid var(--border);
        background: rgba(255,255,255,.97);
        box-shadow: 0 -8px 24px rgba(16,38,58,.08);
    }
    .mobile-bottom-nav a { min-width: 0; display: flex; align-items: center; justify-content: center; padding: 0 4px; color: var(--muted); font-size: 13px; font-weight: 800; white-space: nowrap; }
    .mobile-bottom-nav a.is-current { background: var(--steel); color: #fff; }
    .footer-groups { grid-template-columns: 1fr 1fr; gap: 20px; }
}

@media (max-width: 390px) {
    .brand-bar-inner { gap: 8px; }
    .brand-logo { max-width: 120px; }
    .icon-button { padding: 0 9px; font-size: 14px; }
    .footer-groups { grid-template-columns: 1fr; }
    .hero-actions .primary-button, .hero-actions .secondary-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
.responsive-media {
    width: 100%;
    height: 100%;
    max-height: inherit;
    object-fit: contain;
    object-position: center;
}
div.responsive-media {
    min-height: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    color: var(--ink);
    font-weight: 800;
    text-align: center;
    background: linear-gradient(135deg,#f8fbfe,#e1eef7);
}
.icon-frame .responsive-media { width: 100%; height: 100%; }
