*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --bg: #0D0D0D;
    --bg-deep: #070707;
    --panel: #171717;
    --panel-2: #222222;
    --text: #C8C8C8;
    --text-strong: #F2F2F2;
    --text-soft: #9A9A9A;
    --text-dim: #6E6E6E;
    --silver: #C8C8C8;
    --silver-bright: #E8E8E8;
    --ink: #1A1A1A;
    --mist-red: #B85A5A;
    --line: rgba(232,232,232,0.12);
    --line-strong: rgba(232,232,232,0.36);
    --shadow: 0 12px 28px rgba(0,0,0,0.45);
    --content: 1120px;
    --radius: 12px;
}

html {
    background: var(--bg);
    color-scheme: dark;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 0;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 20% 0%, rgba(232,232,232,0.035), transparent 30%),
        linear-gradient(180deg, #0D0D0D 0%, #101010 42%, #0D0D0D 100%);
    color: var(--text);
    font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 15px;
    line-height: 1.7;
    padding-top: 122px;
}

body.modal-open,
body.search-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button,
input {
    font: inherit;
}

img {
    display: block;
    max-width: 100%;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--silver-bright);
    outline-offset: 3px;
}

.site-header {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    right: 0;
}

.inkline {
    height: 22px;
    background: var(--bg-deep);
    border-bottom: 1px solid var(--line);
    color: var(--silver);
    font-size: 12px;
}

.top-inner,
.material-inner,
.case-tabs-inner,
.site-main,
.footer-inner {
    width: min(var(--content), calc(100% - 32px));
    margin: 0 auto;
}

.top-inner {
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: relative;
}

.ink-search-btn {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--silver-bright);
    cursor: pointer;
    position: relative;
    min-width: 58px;
    min-height: 44px;
    margin-top: 0;
    padding: 0 8px;
    z-index: 2;
}

.materialbar {
    height: 60px;
    background: var(--ink);
    border-bottom: 1px solid var(--line-strong);
    box-shadow: 0 6px 18px rgba(0,0,0,0.28);
}

.material-inner {
    height: 60px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 18px;
}

.brand-link {
    justify-self: start;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    min-width: 120px;
}

.brand-link img,
.drawer-brand img,
.footer-brand img {
    height: 28px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    object-position: left center;
}

.brand-fallback {
    font-size: 16px;
    font-weight: 700;
    color: var(--silver-bright);
    letter-spacing: .12em;
}

.drawer-trigger,
.panel-close {
    min-height: 44px;
    border: 1px solid var(--line-strong);
    background: #111;
    color: var(--silver-bright);
    border-radius: 10px;
    padding: 0 18px;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.drawer-trigger:hover,
.panel-close:hover {
    border-color: var(--silver-bright);
    background: var(--panel-2);
}

.drawer-trigger {
    justify-self: center;
    font-size: 14px;
    min-width: 92px;
}

.app-link {
    justify-self: end;
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border-radius: 10px;
    background: linear-gradient(135deg,#E8E8E8 0%,#C8C8C8 55%,#8A8A8A 100%);
    color: #0D0D0D;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
    transition: filter .2s ease, transform .2s ease;
}

.app-link:hover,
.btn-primary:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.case-tabs {
    height: 40px;
    background: #101010;
    border-bottom: 1px solid var(--line);
}

.case-tabs-inner {
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 6px;
}

.case-tabs a {
    min-width: 110px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--text-soft);
    border-left: 1px solid transparent;
    border-right: 1px solid transparent;
}

.case-tabs a:hover {
    color: var(--silver-bright);
    background: #171717;
}

.case-tabs a.is-current {
    background: var(--silver);
    color: #0D0D0D;
    font-weight: 700;
}

.site-main {
    padding: 32px 0 64px;
    min-height: 70vh;
}

.page-hero {
    position: relative;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(34,34,34,.95), rgba(18,18,18,.96));
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 26px;
}

.page-hero::after {
    content: "";
    position: absolute;
    right: -40px;
    top: -52px;
    width: 180px;
    height: 180px;
    border: 1px solid rgba(184,90,90,.18);
    border-radius: 50%;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--silver);
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.eyebrow::before {
    content: "";
    width: 24px;
    height: 1px;
    background: var(--mist-red);
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 12px;
    color: var(--text-strong);
    font-size: 24px;
    line-height: 1.3;
}

h2 {
    color: var(--text-strong);
    font-size: 20px;
    line-height: 1.4;
}

h3 {
    color: var(--text-strong);
    font-size: 16px;
    line-height: 1.5;
}

.page-hero p {
    max-width: 820px;
    margin-bottom: 0;
    color: var(--text);
}

.hero-actions,
.card-actions,
.inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.btn-primary,
.btn-secondary {
    min-height: 42px;
    padding: 0 18px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    white-space: nowrap;
    transition: all .2s ease;
}

.btn-primary {
    background: linear-gradient(135deg,#E8E8E8 0%,#C8C8C8 55%,#8A8A8A 100%);
    color: #0D0D0D;
    font-weight: 700;
}

.btn-secondary {
    background: #111;
    border: 1px solid var(--line-strong);
    color: var(--silver-bright);
}

.btn-secondary:hover {
    border-color: var(--silver-bright);
    background: var(--panel-2);
}

.section {
    margin-top: 30px;
}

.section-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: end;
    margin-bottom: 14px;
}

.section-head p {
    color: var(--text-soft);
    margin: 0;
    max-width: 620px;
}

.section-kicker {
    color: var(--mist-red);
    font-size: 12px;
    letter-spacing: .12em;
}

.grid-2,
.grid-3,
.grid-4 {
    display: grid;
    gap: 16px;
}

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

.card {
    min-width: 0;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: 0 8px 22px rgba(0,0,0,.22);
}

.card:hover {
    border-color: rgba(232,232,232,.22);
}

.card p:last-child,
.copy-block p:last-child,
.ledger-item p:last-child,
.shelf-item p:last-child,
.timeline-content p:last-child {
    margin-bottom: 0;
}

.card-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--silver);
    color: #0D0D0D;
    font-weight: 800;
    font-size: 13px;
    margin-bottom: 14px;
}

.card-meta {
    color: var(--text-soft);
    font-size: 13px;
    margin-bottom: 8px;
}

.media-slot {
    width: 100%;
    min-height: 170px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background:
        linear-gradient(135deg, rgba(232,232,232,.025), rgba(232,232,232,.006)),
        #1A1A1A;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.media-slot img {
    width: 100%;
    height: 100%;
    max-height: inherit;
    object-fit: contain;
    object-position: center;
}

.media-banner {
    max-height: 260px;
}

.home-cover .media-slot {
    height: 260px;
}

.home-cover .media-slot img {
    max-height: 260px;
}

.feature-card .media-slot {
    height: 180px;
    margin-bottom: 16px;
}

.feature-card .media-slot img {
    max-height: 180px;
}

.wide-media .media-slot {
    height: 200px;
    margin-bottom: 18px;
}

.wide-media .media-slot img {
    max-height: 200px;
}

.app-media .media-slot {
    height: 340px;
}

.app-media .media-slot img {
    max-height: 340px;
}

.home-brand-copy {
    padding-top: 18px;
}

.home-brand-copy strong {
    display: block;
    color: var(--text-strong);
    font-size: 18px;
    margin-bottom: 4px;
}

.home-brand-copy .slogan {
    color: var(--silver-bright);
    font-size: 22px;
    line-height: 1.35;
    margin-bottom: 10px;
}

.copy-block {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    margin-bottom: 16px;
}

.copy-block .lead {
    color: var(--silver-bright);
    font-size: 16px;
}

.divider-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--text-soft);
    font-size: 12px;
    letter-spacing: .1em;
}

.divider-label::after {
    content: "";
    height: 1px;
    background: var(--line);
    flex: 1;
}

.ledger {
    display: grid;
    gap: 12px;
}

.ledger-item {
    display: grid;
    grid-template-columns: 56px minmax(0,1fr);
    gap: 18px;
    align-items: start;
    padding: 18px;
    border: 1px solid var(--line);
    background: var(--panel);
    border-radius: 12px;
}

.ledger-index {
    color: var(--silver-bright);
    font-size: 20px;
    line-height: 1;
    font-weight: 800;
    padding-top: 4px;
}

.ledger-item h2,
.ledger-item h3 {
    margin-bottom: 6px;
}

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

.shelf-item {
    display: grid;
    grid-template-columns: 88px minmax(0,1fr);
    gap: 16px;
    align-items: stretch;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
}

.shelf-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--panel-2);
    border-right: 1px solid var(--line);
    color: var(--silver-bright);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: .06em;
}

.shelf-copy {
    padding: 16px 16px 16px 0;
}

.timeline {
    position: relative;
    margin-left: 12px;
    padding-left: 28px;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 7px;
    width: 1px;
    background: var(--line-strong);
}

.timeline-item {
    position: relative;
    margin-bottom: 18px;
    padding: 18px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -27px;
    top: 24px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--silver);
    box-shadow: 0 0 0 5px rgba(200,200,200,.08);
}

.status {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    background: #111;
    border: 1px solid var(--line-strong);
    color: var(--silver-bright);
    font-size: 12px;
    margin-bottom: 8px;
}

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

.note {
    min-height: 190px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background:
        linear-gradient(180deg, rgba(232,232,232,.018), transparent),
        #151515;
}

.note h2 {
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.article-list {
    display: grid;
    gap: 12px;
}

.article-row {
    display: grid;
    grid-template-columns: 132px minmax(0,1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 16px 18px;
    border-radius: 12px;
    background: var(--panel);
    border: 1px solid var(--line);
}

.article-row .tag {
    color: var(--text-soft);
    font-size: 13px;
}

.article-row strong {
    color: var(--text-strong);
}

.article-row a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border: 1px solid var(--line-strong);
    border-radius: 9px;
    white-space: nowrap;
}

.article-row a:hover {
    background: var(--silver);
    color: #0D0D0D;
}

.faq-list {
    display: grid;
    gap: 12px;
}

.faq-item {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel);
}

.faq-item h2,
.faq-item h3 {
    margin-bottom: 8px;
}

.faq-item p {
    margin-bottom: 0;
}

.term-list {
    display: grid;
    gap: 14px;
}

.term-item {
    display: grid;
    grid-template-columns: 180px minmax(0,1fr);
    gap: 20px;
    padding: 20px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.term-item h2 {
    margin-bottom: 0;
}

.notice {
    border-left: 3px solid var(--mist-red);
    padding: 16px 18px;
    border-radius: 0 10px 10px 0;
    background: rgba(184,90,90,.06);
    color: var(--text);
}

.micro-list {
    display: grid;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.micro-list li {
    position: relative;
    padding-left: 18px;
}

.micro-list li::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--silver);
    position: absolute;
    left: 0;
    top: .72em;
}

.site-footer {
    background: var(--bg-deep);
    border-top: 1px solid var(--line);
    color: var(--text);
}

.footer-inner {
    padding: 34px 0 84px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 18px;
}

.footer-brand strong {
    color: var(--silver-bright);
    font-size: 16px;
}

.footer-brand span {
    color: var(--text-soft);
    font-size: 12px;
    letter-spacing: .12em;
}

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

.footer-columns section {
    min-width: 0;
}

.footer-columns h2 {
    font-size: 13px;
    color: var(--silver-bright);
    margin-bottom: 8px;
}

.footer-columns a {
    display: block;
    min-height: 32px;
    color: var(--text-soft);
    font-size: 13px;
}

.footer-columns a:hover {
    color: var(--silver-bright);
}

.footer-note,
.copyright {
    font-size: 13px;
}

.footer-note {
    margin: 22px 0 8px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--text-soft);
}

.copyright {
    margin-bottom: 0;
    color: var(--text-dim);
}

.material-drawer {
    position: fixed;
    z-index: 1300;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(400px, 86vw);
    background: #0E0E0E;
    border-right: 1px solid var(--line-strong);
    box-shadow: 18px 0 44px rgba(0,0,0,.52);
    transform: translateX(-105%);
    visibility: hidden;
    pointer-events: none;
    transition: transform .28s ease, visibility .28s ease;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.material-drawer.is-open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
}

.drawer-head {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(14,14,14,.97);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}

.drawer-brand {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.drawer-brand div {
    min-width: 0;
}

.drawer-brand strong,
.drawer-brand span {
    display: block;
}

.drawer-brand strong {
    color: var(--silver-bright);
}

.drawer-brand span {
    color: var(--text-soft);
    font-size: 11px;
    letter-spacing: .08em;
}

.drawer-groups {
    padding: 14px 14px 30px;
}

.drawer-groups section {
    margin-bottom: 18px;
}

.drawer-groups h2 {
    font-size: 13px;
    color: var(--text-soft);
    margin: 0 0 8px;
    letter-spacing: .08em;
}

.drawer-groups a {
    display: block;
    min-height: 56px;
    padding: 11px 12px;
    border: 1px solid transparent;
    border-radius: 10px;
}

.drawer-groups a:hover {
    background: var(--panel);
    border-color: var(--line);
}

.drawer-groups strong,
.drawer-groups span {
    display: block;
}

.drawer-groups strong {
    color: var(--silver-bright);
    font-size: 14px;
}

.drawer-groups span {
    margin-top: 2px;
    color: var(--text-soft);
    font-size: 12px;
    line-height: 1.6;
}

.screen-mask {
    position: fixed;
    z-index: 1200;
    inset: 0;
    background: rgba(0,0,0,.7);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;
}

.screen-mask.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.search-layer {
    position: fixed;
    z-index: 1250;
    top: 82px;
    left: 0;
    right: 0;
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.search-layer.is-open {
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
    transform: translateY(0);
}

.search-card {
    width: min(720px, calc(100% - 32px));
    margin: 12px auto 0;
    padding: 20px;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    background: #151515;
    box-shadow: var(--shadow);
}

.search-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
}

.search-head strong,
.search-head span {
    display: block;
}

.search-head strong {
    color: var(--text-strong);
    font-size: 18px;
}

.search-head span {
    color: var(--text-soft);
    font-size: 13px;
}

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

.search-presets a {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #101010;
    color: var(--silver-bright);
}

.search-presets a:hover {
    border-color: var(--line-strong);
    background: var(--panel-2);
}

.search-card > p {
    margin: 14px 0 0;
    color: var(--text-soft);
    font-size: 13px;
}

.mobile-bottom {
    display: none;
}

.home-cover,
.home-app {
    display: grid;
    grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr);
    gap: 18px;
    align-items: stretch;
}

.home-cover > .card,
.home-app > .card {
    height: 100%;
}

.brand-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.quote-line {
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #121212;
    color: var(--silver-bright);
    font-size: 16px;
}

.stateless-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--text-soft);
    font-size: 12px;
}

.page-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.page-links a {
    min-height: 40px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    border-radius: 9px;
    border: 1px solid var(--line-strong);
    color: var(--silver-bright);
    background: #111;
}

.page-links a:hover {
    background: var(--silver);
    color: #0D0D0D;
}

@media (max-width: 900px) {
    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

    .home-cover,
    .home-app {
        grid-template-columns: 1fr;
    }

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

    .article-row {
        grid-template-columns: 100px minmax(0,1fr);
    }

    .article-row a {
        grid-column: 2;
        justify-self: start;
    }
}

@media (max-width: 760px) {
    body {
        padding-top: 82px;
        padding-bottom: calc(56px + env(safe-area-inset-bottom));
    }

    .case-tabs {
        display: none;
    }

    .top-inner,
    .material-inner,
    .site-main,
    .footer-inner {
        width: calc(100% - 32px);
    }

    .material-inner {
        grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
        gap: 8px;
    }

    .brand-link {
        min-width: 0;
        max-width: 120px;
    }

    .brand-link img {
        max-width: 112px;
    }

    .brand-fallback {
        font-size: 14px;
        letter-spacing: .06em;
    }

    .drawer-trigger {
        min-width: 70px;
        padding: 0 12px;
    }

    .app-link {
        padding: 0 12px;
        font-size: 13px;
    }

    .site-main {
        padding-top: 22px;
        padding-bottom: 42px;
    }

    .page-hero {
        padding: 22px 18px;
    }

    h1 {
        font-size: 24px;
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .grid-2,
    .grid-3,
    .grid-4,
    .note-grid,
    .shelf {
        grid-template-columns: 1fr;
    }

    .ledger-item {
        grid-template-columns: 44px minmax(0,1fr);
        gap: 12px;
    }

    .term-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .article-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .article-row a {
        grid-column: auto;
        justify-self: start;
    }

    .search-layer {
        inset: 0;
        top: 0;
        background: #0B0B0B;
        transform: none;
        overflow-y: auto;
        padding: 18px 16px calc(72px + env(safe-area-inset-bottom));
    }

    .search-layer.is-open {
        transform: none;
    }

    .search-card {
        width: 100%;
        min-height: 100%;
        margin: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
        padding: 8px 0;
    }

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

    .mobile-bottom {
        position: fixed;
        z-index: 1100;
        left: 0;
        right: 0;
        bottom: 0;
        min-height: calc(48px + env(safe-area-inset-bottom));
        padding-bottom: env(safe-area-inset-bottom);
        display: grid;
        grid-template-columns: repeat(5, minmax(0,1fr));
        background: rgba(7,7,7,.97);
        border-top: 1px solid var(--line-strong);
        backdrop-filter: blur(8px);
    }

    .mobile-bottom a {
        min-width: 0;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        color: var(--text-soft);
    }

    .mobile-bottom a.is-current {
        background: var(--silver);
        color: #0D0D0D;
        font-weight: 700;
    }

    .footer-inner {
        padding-bottom: 24px;
    }

    .app-media .media-slot {
        height: 320px;
    }

    .app-media .media-slot img {
        max-height: 320px;
    }
}

@media (max-width: 520px) {
    .footer-columns {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        flex-wrap: wrap;
    }

    .page-hero {
        border-radius: 12px;
    }

    .card,
    .copy-block,
    .faq-item,
    .timeline-item {
        padding: 18px;
    }

    .shelf-item {
        grid-template-columns: 72px minmax(0,1fr);
    }

    .shelf-copy {
        padding-right: 14px;
    }

    .inkline {
        overflow: visible;
    }

    .top-inner > span {
        max-width: calc(100% - 64px);
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}
