:root {
    --bg: #E6E2DA;
    --bg-deep: #D4CFC6;
    --surface: #F4F1EA;
    --surface-soft: #EBE7DF;
    --text: #3A3732;
    --title: #2C2A28;
    --muted: #6A645C;
    --quiet: #8A847A;
    --elephant: #B8B3A8;
    --moss: #6A7A58;
    --clay: #A65A3A;
    --footer: #241F1C;
    --border: rgba(44, 42, 40, 0.14);
    --accent-border: rgba(166, 90, 58, 0.36);
    --shadow: 0 12px 28px rgba(44, 42, 40, 0.08);
    --radius: 8px;
    --shell: 980px;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 0;
    background: var(--bg);
    scroll-behavior: smooth;
}

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", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.7;
}

body.ui-locked {
    overflow: hidden;
}

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

a:hover {
    color: var(--clay);
}

button,
input {
    font: inherit;
}

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

button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 3px solid rgba(166, 90, 58, 0.34);
    outline-offset: 3px;
}

img {
    display: block;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
}

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

h1 {
    margin-bottom: 18px;
    color: var(--title);
    font-size: 24px;
    line-height: 1.3;
    letter-spacing: 0.01em;
}

h2 {
    margin-bottom: 14px;
    color: var(--title);
    font-size: 20px;
    line-height: 1.4;
}

h3 {
    margin-bottom: 9px;
    color: var(--title);
    font-size: 16px;
    line-height: 1.45;
}

p {
    margin-bottom: 14px;
}

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

.skip-link {
    position: fixed;
    top: -70px;
    left: 16px;
    z-index: 300;
    padding: 10px 14px;
    border-radius: 0 0 6px 6px;
    background: var(--surface);
    color: var(--title);
    box-shadow: var(--shadow);
}

.skip-link:focus {
    top: 0;
}

.site-header {
    position: relative;
    z-index: 80;
}

.newsbar,
.masthead,
.stepnav {
    position: fixed;
    left: 0;
    width: 100%;
}

.newsbar {
    top: 0;
    z-index: 83;
    height: 20px;
    background: var(--title);
    color: var(--surface);
    font-size: 12px;
    line-height: 20px;
}

.newsbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 20px;
}

.text-button {
    min-width: 44px;
    height: 44px;
    margin: -12px 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--surface);
    cursor: pointer;
    font-size: 12px;
}

.text-button:hover {
    text-decoration: underline;
}

.masthead {
    top: 20px;
    z-index: 82;
    height: 54px;
    border-bottom: 1px solid rgba(44, 42, 40, 0.22);
    background: var(--elephant);
}

.masthead-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 54px;
}

.brand-link {
    display: inline-flex;
    min-width: 88px;
    min-height: 44px;
    align-items: center;
    color: var(--title);
}

.brand-logo,
.drawer-logo,
.footer-logo {
    width: auto;
    height: 24px;
    max-width: 170px;
    object-fit: contain;
}

.brand-text {
    color: var(--title);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.mast-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-app-link,
.drawer-button,
.close-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    border-radius: 6px;
    font-size: 13px;
}

.header-app-link {
    padding: 0 14px;
    border: 1px solid rgba(44, 42, 40, 0.26);
    background: var(--surface);
    color: var(--title);
}

.drawer-button,
.close-button {
    min-width: 60px;
    padding: 0 13px;
    border: 1px solid rgba(44, 42, 40, 0.3);
    background: transparent;
    color: var(--title);
    cursor: pointer;
}

.header-app-link:hover,
.drawer-button:hover,
.close-button:hover {
    border-color: var(--clay);
    color: var(--clay);
}

.stepnav {
    top: 74px;
    z-index: 81;
    height: 46px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

.stepnav-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 28px;
    height: 46px;
}

.stepnav-link {
    position: relative;
    display: inline-flex;
    height: 46px;
    align-items: center;
    gap: 7px;
    color: var(--title);
    font-size: 13px;
}

.stepnav-link span {
    color: var(--clay);
    font-size: 12px;
}

.stepnav-link.is-current::after {
    position: absolute;
    right: 0;
    bottom: 6px;
    left: 0;
    height: 2px;
    background: var(--clay);
    content: "";
}

.stepnav-link.is-current span {
    color: var(--title);
}

.site-main {
    min-height: 65vh;
    padding-top: 154px;
    padding-bottom: 72px;
}

.page-intro {
    padding: 38px 0 30px;
}

.page-intro.compact {
    padding-bottom: 20px;
}

.kicker,
.eyebrow {
    display: block;
    margin-bottom: 9px;
    color: var(--clay);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.hero-number {
    margin-bottom: 10px;
    color: var(--clay);
    font-size: 58px;
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.04em;
}

.hero-line {
    max-width: 720px;
    margin-bottom: 12px;
    color: var(--title);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.5;
}

.lead {
    max-width: 820px;
    color: var(--muted);
    font-size: 16px;
}

.page-copy {
    max-width: 820px;
    color: var(--muted);
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.btn {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border-radius: 7px;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 700;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.btn:hover {
    transform: translateY(-1px);
    color: inherit;
    box-shadow: var(--shadow);
}

.btn-primary {
    background: linear-gradient(135deg, #B8B3A8 0%, #2C2A28 100%);
    color: var(--surface);
}

.btn-primary:hover {
    color: var(--surface);
}

.btn-secondary {
    border: 1px solid var(--clay);
    background: var(--surface);
    color: var(--title);
}

.section-block {
    margin-top: 34px;
    padding: 30px 0;
}

.section-block + .section-block {
    border-top: 1px solid var(--border);
}

.section-title-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}

.section-title-row p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.media-slot {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--elephant);
}

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

.media-wide {
    height: 180px;
}

.media-medium {
    height: 240px;
}

.media-portrait {
    height: 320px;
    background: var(--surface);
}

.media-banner {
    height: 200px;
    background: var(--elephant);
}

.media-small {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 10px;
    background: var(--surface-soft);
}

.feature-strip {
    margin-top: 26px;
}

.feature-strip .media-slot {
    margin-bottom: 18px;
}

.vertical-steps {
    position: relative;
    display: grid;
    gap: 0;
}

.step-item {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
}

.step-item:first-child {
    border-top: 1px solid var(--border);
}

.step-number {
    color: var(--clay);
    font-size: 27px;
    font-weight: 700;
    line-height: 1.1;
}

.step-body p:last-child {
    margin-bottom: 0;
}

.step-body .media-slot {
    margin: 15px 0 4px;
}

.quote-pair {
    display: grid;
    gap: 16px;
}

.quote-card {
    padding: 24px 26px;
    border-left: 3px solid var(--clay);
    border-radius: 0 var(--radius) var(--radius) 0;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.quote-card blockquote {
    margin-bottom: 10px;
    color: var(--title);
    font-size: 18px;
    line-height: 1.65;
}

.quote-card p:last-child {
    margin-bottom: 0;
}

.quote-card .media-slot {
    margin: 18px 0 2px;
    box-shadow: none;
}

.shelf-head {
    margin-bottom: 18px;
}

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

.info-card,
.center-card,
.term-card,
.topic-card,
.help-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.info-card {
    padding: 22px;
}

.info-card p:last-child {
    margin-bottom: 0;
}

.period-list {
    display: grid;
    gap: 10px;
}

.period-row {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    padding: 16px 18px;
    border-left: 4px solid var(--moss);
    background: var(--surface-soft);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.period-row strong {
    color: var(--title);
}

.period-row p {
    margin: 0;
}

.status-list {
    display: grid;
    gap: 11px;
}

.status-row {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    min-height: 64px;
    padding: 12px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.status-badge {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--bg-deep);
    color: var(--title);
    font-size: 12px;
    font-weight: 700;
}

.status-row p {
    margin: 0;
}

.product-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
    gap: 28px;
    align-items: center;
}

.product-visual {
    display: grid;
    gap: 12px;
}

.product-icon-line {
    display: flex;
    align-items: center;
    gap: 12px;
}

.product-icon-line strong {
    color: var(--title);
    font-size: 16px;
}

.inline-links {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 16px;
}

.inline-links a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    padding: 0 13px;
    border: 1px solid var(--accent-border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--title);
    font-size: 13px;
}

.inline-links a:hover {
    border-color: var(--clay);
    color: var(--clay);
}

.single-column {
    display: grid;
    gap: 18px;
}

.single-section {
    padding: 22px 0;
    border-top: 1px solid var(--border);
}

.single-section:last-child {
    border-bottom: 1px solid var(--border);
}

.single-section p:last-child {
    margin-bottom: 0;
}

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

.memo-list li {
    position: relative;
    padding: 18px 20px 18px 52px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface-soft);
}

.memo-list li::before {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 18px;
    height: 18px;
    border: 2px solid var(--moss);
    border-radius: 4px;
    content: "";
}

.memo-list strong {
    display: block;
    margin-bottom: 5px;
    color: var(--title);
}

.method-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 24px;
    align-items: start;
}

.method-main {
    display: grid;
    gap: 14px;
}

.method-card {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.method-card:first-child {
    border-top: 1px solid var(--border);
}

.method-aside {
    position: sticky;
    top: 144px;
    padding: 20px;
    border: 1px solid var(--accent-border);
    border-radius: var(--radius);
    background: var(--surface);
}

.method-aside p:last-child {
    margin-bottom: 0;
}

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

.topic-card {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 20px;
    padding: 20px 22px;
}

.topic-label {
    color: var(--clay);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.center-stack {
    display: grid;
    gap: 18px;
    max-width: 760px;
    margin: 0 auto;
}

.center-card {
    padding: 26px;
    text-align: center;
}

.center-card p {
    max-width: 620px;
    margin-right: auto;
    margin-left: auto;
}

.center-card p:last-child {
    margin-bottom: 0;
}

.center-card .inline-links {
    justify-content: center;
}

.terms {
    display: grid;
    gap: 14px;
}

.term-card {
    padding: 22px 24px;
}

.term-card h2,
.term-card h3 {
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.term-card p:last-child,
.term-card ul:last-child {
    margin-bottom: 0;
}

.term-card ul {
    padding-left: 20px;
}

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

.faq-item {
    padding: 22px 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.faq-item h2,
.faq-item h3 {
    margin-bottom: 10px;
    font-size: 16px;
}

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

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

.help-card {
    padding: 22px;
}

.help-card p:last-child {
    margin-bottom: 0;
}

.notice-box {
    margin-top: 20px;
    padding: 20px 22px;
    border: 1px solid var(--accent-border);
    border-radius: var(--radius);
    background: var(--surface-soft);
}

.notice-box p:last-child {
    margin-bottom: 0;
}

.brand-statement {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px;
    align-items: start;
}

.brand-statement-copy {
    min-width: 0;
}

.brand-statement .media-slot {
    background: var(--surface);
}

.site-footer {
    border-top: 1px solid rgba(184, 179, 168, 0.26);
    background: var(--footer);
    color: var(--bg);
    font-size: 13px;
}

.footer-shell {
    padding: 36px 0 26px;
}

.footer-brand {
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(230, 226, 218, 0.16);
}

.footer-brand-line {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-brand-line .brand-text {
    color: var(--bg);
}

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

.footer-brand-line strong {
    color: var(--surface);
    font-size: 15px;
}

.footer-brand-line span {
    color: #CFC9C0;
    font-size: 11px;
    letter-spacing: 0.12em;
}

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

.footer-groups h2 {
    margin-bottom: 10px;
    color: var(--surface);
    font-size: 13px;
}

.footer-groups a {
    display: flex;
    min-height: 44px;
    align-items: center;
    color: #D7D1C8;
}

.footer-groups a:hover {
    color: var(--surface);
    text-decoration: underline;
}

.footer-note {
    max-width: 820px;
    margin-bottom: 12px;
    color: #CFC9C0;
}

.footer-copy {
    margin: 0;
    color: #BEB7AD;
}

.screen-overlay {
    position: fixed;
    inset: 0;
    z-index: 110;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    background: rgba(36, 31, 28, 0.46);
    transition: opacity 180ms ease, visibility 180ms ease;
}

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

.site-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 120;
    width: 320px;
    max-width: 86vw;
    visibility: hidden;
    overflow: hidden;
    pointer-events: none;
    transform: translateX(-102%);
    background: var(--surface);
    box-shadow: 20px 0 42px rgba(44, 42, 40, 0.18);
    transition: transform 220ms ease, visibility 220ms ease;
}

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

.drawer-head {
    display: flex;
    min-height: 70px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--elephant);
}

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

.drawer-brand strong {
    overflow: hidden;
    color: var(--title);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.drawer-scroll {
    height: calc(100% - 70px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 18px 16px 32px;
}

.drawer-group + .drawer-group {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.drawer-group h2 {
    margin-bottom: 9px;
    color: var(--clay);
    font-size: 12px;
    letter-spacing: 0.12em;
}

.drawer-group a {
    display: block;
    min-height: 58px;
    padding: 9px 2px;
    border-bottom: 1px solid rgba(44, 42, 40, 0.08);
}

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

.drawer-group a strong {
    color: var(--title);
    font-size: 14px;
}

.drawer-group a span {
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

.search-layer {
    position: fixed;
    top: 74px;
    left: 50%;
    z-index: 130;
    width: min(calc(100% - 32px), 680px);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -12px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

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

.search-card {
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 0 0 var(--radius) var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.search-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.search-head h2 {
    margin-bottom: 13px;
}

.search-label {
    display: block;
    margin-bottom: 7px;
    color: var(--muted);
    font-size: 12px;
}

.search-input-row {
    display: flex;
    gap: 8px;
}

.search-input-row input {
    min-width: 0;
    min-height: 44px;
    flex: 1;
    padding: 0 13px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #FFFDF8;
    color: var(--title);
}

.search-input-row button {
    min-width: 72px;
    min-height: 44px;
    border: 1px solid var(--title);
    border-radius: 6px;
    background: var(--title);
    color: var(--surface);
    cursor: pointer;
}

.search-status {
    margin: 10px 0 6px;
    color: var(--muted);
    font-size: 12px;
}

.search-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.search-presets a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    padding: 0 13px;
    border: 1px solid var(--accent-border);
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--title);
}

.search-presets a[hidden] {
    display: none;
}

.mobile-nav {
    display: none;
}

.home-hero {
    padding-top: 42px;
}

.home-hero .lead {
    max-width: 760px;
}

.home-long-copy {
    max-width: 840px;
}

.home-faq {
    display: grid;
    gap: 10px;
}

.home-faq .faq-item {
    box-shadow: none;
}

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

.split-note > div {
    padding: 20px 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface-soft);
}

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

    .shell,
    .page-shell {
        width: calc(100% - 32px);
    }

    .stepnav {
        display: none;
    }

    .site-main {
        padding-top: 100px;
        padding-bottom: 48px;
    }

    .masthead-inner {
        gap: 10px;
    }

    .brand-link {
        min-width: 0;
        flex: 1;
    }

    .brand-logo {
        max-width: 132px;
    }

    .brand-text {
        font-size: 15px;
    }

    .mast-actions {
        flex: 0 0 auto;
        gap: 5px;
    }

    .header-app-link,
    .drawer-button {
        min-width: 0;
        padding: 0 10px;
    }

    .page-intro {
        padding-top: 28px;
    }

    .hero-number {
        font-size: 48px;
    }

    .hero-line {
        font-size: 20px;
    }

    .section-title-row {
        display: block;
    }

    .section-title-row p {
        margin-top: -5px;
    }

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

    .step-number {
        font-size: 22px;
    }

    .shelf-cards,
    .contact-list,
    .help-grid,
    .split-note {
        grid-template-columns: 1fr;
    }

    .period-row,
    .status-row,
    .topic-card {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .product-layout,
    .brand-statement,
    .method-grid {
        grid-template-columns: 1fr;
    }

    .method-aside {
        position: static;
    }

    .media-portrait {
        height: 300px;
    }

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

    .search-layer {
        top: 0;
        left: 0;
        z-index: 130;
        width: 100%;
        height: 100%;
        transform: none;
        background: var(--title);
    }

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

    .search-card {
        min-height: 100%;
        padding: 28px 16px 80px;
        border: 0;
        border-radius: 0;
        background: var(--title);
        color: var(--surface);
        box-shadow: none;
    }

    .search-head h2,
    .search-head .eyebrow,
    .search-label,
    .search-status {
        color: var(--surface);
    }

    .search-card .close-button {
        border-color: rgba(244, 241, 234, 0.5);
        color: var(--surface);
    }

    .search-input-row input {
        border-color: rgba(244, 241, 234, 0.28);
        background: var(--surface);
    }

    .search-input-row button {
        border-color: var(--surface);
        background: var(--surface);
        color: var(--title);
    }

    .search-presets a {
        border-color: rgba(244, 241, 234, 0.34);
        background: rgba(244, 241, 234, 0.08);
        color: var(--surface);
    }

    .mobile-nav {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 90;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        height: calc(48px + env(safe-area-inset-bottom));
        padding-bottom: env(safe-area-inset-bottom);
        border-top: 1px solid var(--border);
        background: var(--surface);
    }

    .mobile-nav a {
        display: flex;
        min-width: 0;
        min-height: 48px;
        align-items: center;
        justify-content: center;
        color: var(--title);
        font-size: 13px;
    }

    .mobile-nav a.is-current {
        background: var(--title);
        color: var(--surface);
    }
}

@media (max-width: 420px) {
    .newsbar-inner > span {
        max-width: 72%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .footer-groups {
        grid-template-columns: 1fr 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
