:root {
    color-scheme: dark;
    --bg: #081016;
    --panel: #111c23;
    --panel-2: #17242d;
    --text: #eef7f5;
    --muted: #95aaa6;
    --gold: #e6bf69;
    --mint: #56d8bf;
    --line: rgba(255, 255, 255, .12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: Inter, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
    color: var(--text);
    background: radial-gradient(circle at 70% 8%, rgba(86, 216, 191, .2), transparent 34%), linear-gradient(135deg, #081016 0%, #111b1e 48%, #0f1918 100%);
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px clamp(20px, 5vw, 72px);
    background: rgba(8, 16, 22, .82);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.brand, .admin-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: .04em;
}

.brand img, .admin-brand img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

.site-header .brand, .site-header .brand span { color: #fff; }

.brand-wrap {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: var(--muted);
    font-size: 14px;
}

nav a:hover { color: var(--gold); }

.home-page {
    --home-accent: #56d8bf;
    --home-accent-soft: #90f0dd;
    --home-primary-text: #10211d;
    --home-surface-tint: rgba(86, 216, 191, .11);
    --home-surface-border: rgba(86, 216, 191, .32);
    --home-glow: rgba(86, 216, 191, .24);
    --home-bg:
        radial-gradient(circle at 72% 16%, rgba(86, 216, 191, .24), transparent 38%),
        radial-gradient(circle at 18% 82%, rgba(230, 191, 105, .12), transparent 40%),
        linear-gradient(132deg, #071015 0%, #0d1a1f 43%, #12261f 100%);
    background: var(--home-bg);
}

.home-page.theme-tech {
    --home-accent: #56d8bf;
    --home-accent-soft: #90f0dd;
    --home-primary-text: #10211d;
    --home-surface-tint: rgba(86, 216, 191, .11);
    --home-surface-border: rgba(86, 216, 191, .32);
    --home-glow: rgba(86, 216, 191, .24);
    --home-bg:
        radial-gradient(circle at 72% 16%, rgba(86, 216, 191, .24), transparent 38%),
        radial-gradient(circle at 18% 82%, rgba(230, 191, 105, .12), transparent 40%),
        linear-gradient(132deg, #071015 0%, #0d1a1f 43%, #12261f 100%);
}

.home-page.theme-business {
    --home-accent: #e6bf69;
    --home-accent-soft: #f5ddb0;
    --home-primary-text: #241d0f;
    --home-surface-tint: rgba(230, 191, 105, .12);
    --home-surface-border: rgba(230, 191, 105, .34);
    --home-glow: rgba(230, 191, 105, .22);
    --home-bg:
        radial-gradient(circle at 72% 18%, rgba(230, 191, 105, .22), transparent 40%),
        radial-gradient(circle at 14% 74%, rgba(114, 188, 171, .16), transparent 42%),
        linear-gradient(132deg, #101315 0%, #1a1b18 45%, #252318 100%);
}

.home-page main {
    position: relative;
    isolation: isolate;
}

.home-page .hero-copy {
    position: relative;
    z-index: 1;
    max-width: 880px;
}

.home-page .theme-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .03);
}

.home-page .theme-switch--header {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 6px;
    border-radius: 10px;
}

.home-page .theme-switch-row {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.home-page .theme-chip {
    min-height: 30px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: #d7ebe6;
    background: transparent;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.home-page .theme-chip:hover {
    border-color: var(--home-surface-border);
    color: #fff;
}

.home-page .theme-chip.is-active,
.home-page .theme-chip[aria-pressed="true"] {
    border-color: var(--home-surface-border);
    color: var(--home-primary-text);
    background: linear-gradient(135deg, var(--home-accent), var(--home-accent-soft));
}

.home-page .theme-chip:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .16);
}

.home-page .site-header nav a:hover {
    color: var(--home-accent-soft);
}

.home-page .hero-actions .button {
    border-radius: 10px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.home-page .hero-actions .button:hover {
    transform: translateY(-2px);
}

.home-page .hero-actions .button.primary:hover {
    box-shadow: 0 14px 30px var(--home-glow);
}

.home-page .hero-actions .button.ghost:hover {
    border-color: var(--home-surface-border);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .16);
}

.home-page .hero-actions .button.primary {
    color: var(--home-primary-text);
    background: linear-gradient(135deg, var(--home-accent), var(--home-accent-soft));
}

.home-page .hero-actions .button.claim {
    color: #eef8f5;
    border-color: var(--home-surface-border);
    background: rgba(255, 255, 255, .04);
}

.home-page .hero-actions .button.claim:hover {
    border-color: var(--home-accent-soft);
    background: rgba(255, 255, 255, .1);
    box-shadow: 0 12px 26px rgba(0, 0, 0, .18);
}

.home-page .coin-stage {
    min-height: 560px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.home-page .metrics {
    position: static;
    width: min(100%, 820px);
    margin-top: 14px;
}

.home-page .coin-stage::before {
    content: '';
    position: absolute;
    inset: 10% 14% auto;
    height: 62%;
    border-radius: 50%;
    background: radial-gradient(circle, var(--home-glow), transparent 72%);
    filter: blur(12px);
    z-index: -1;
}

.home-page .coin-orbit {
    border-color: var(--home-surface-border);
    background: radial-gradient(circle, var(--home-surface-tint), rgba(86, 216, 191, .1) 45%, transparent 70%);
    box-shadow: 0 40px 120px var(--home-glow);
}

.home-page .metrics div {
    backdrop-filter: blur(8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .2);
}

.home-page .metrics strong {
    color: var(--home-accent);
}

.home-page .notice {
    border-color: var(--home-surface-border);
    background: linear-gradient(120deg, var(--home-surface-tint), rgba(17, 28, 35, .78));
}

.home-page .allocation-card,
.home-page .feature-grid article,
.home-page .content-card,
.home-page .timeline article,
.home-page .stack-list div,
.home-page .info-panel {
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.home-page .allocation-card:hover,
.home-page .feature-grid article:hover,
.home-page .content-card:hover,
.home-page .timeline article:hover,
.home-page .stack-list div:hover,
.home-page .info-panel:hover {
    transform: translateY(-4px);
    border-color: var(--home-surface-border);
    box-shadow: 0 20px 48px rgba(0, 0, 0, .22);
}

.home-page .section.band {
    background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015));
}

.home-page .timeline article {
    border-top-color: var(--home-accent);
}

.hero {
    min-height: calc(100vh - 80px);
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
    align-items: center;
    gap: clamp(36px, 6vw, 90px);
    padding: clamp(56px, 7vw, 110px) clamp(20px, 6vw, 86px) 48px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--gold);
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .12em;
}

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

h1 {
    max-width: 900px;
    margin-bottom: 18px;
    font-size: clamp(46px, 7vw, 94px);
    line-height: .96;
    letter-spacing: 0;
}

h2 {
    max-width: 820px;
    margin-bottom: 18px;
    font-size: clamp(30px, 4vw, 54px);
    line-height: 1.08;
}

h3 { margin-bottom: 10px; font-size: 21px; }

.lead {
    max-width: 780px;
    color: #d9ebe7;
    font-size: clamp(20px, 2.2vw, 30px);
    line-height: 1.45;
}

.intro, .section p {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.85;
}

.hero-actions { display: flex; gap: 14px; margin-top: 32px; }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-weight: 800;
}

.button.primary {
    background: linear-gradient(135deg, var(--gold), #f7e2a7);
    color: #172016;
    border-color: transparent;
}

.button.ghost { color: #e6f4f1; }

.coin-stage {
    position: relative;
    min-height: 520px;
    display: grid;
    place-items: center;
}

.coin-orbit {
    width: min(74vw, 430px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border: 1px solid rgba(230, 191, 105, .35);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(230, 191, 105, .18), rgba(86, 216, 191, .12) 45%, transparent 70%);
    box-shadow: 0 40px 120px rgba(86, 216, 191, .18);
}

.coin-orbit img {
    width: 64%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .42);
}

.metrics {
    position: absolute;
    bottom: 14px;
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.metrics div, .notice, .info-panel, .allocation-card, .feature-grid article, .stack-list div, .timeline article {
    background: rgba(17, 28, 35, .76);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.metrics div { padding: 18px; }
.metrics strong, .stack-list strong { display: block; color: var(--gold); font-size: 24px; }
.metrics span, .stack-list span { color: var(--muted); font-size: 13px; }

.notice {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 0 clamp(20px, 6vw, 86px);
    padding: 18px 22px;
}

.notice span { color: var(--muted); }

.section {
    padding: clamp(70px, 8vw, 116px) clamp(20px, 6vw, 86px);
}

.split {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(320px, 1.05fr);
    gap: clamp(30px, 5vw, 76px);
    align-items: start;
}

.info-panel { padding: 12px; }
dl { margin: 0; }
dl div {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 18px;
    padding: 18px;
    border-bottom: 1px solid var(--line);
}
dl div:last-child { border-bottom: 0; }
dt { color: var(--muted); }
dd { margin: 0; overflow-wrap: anywhere; font-weight: 750; }
.mono { font-family: Consolas, Monaco, monospace; font-size: 14px; white-space: normal; overflow-wrap: anywhere; word-break: break-word; }

.allocation-grid, .feature-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin-top: 30px;
}

.allocation-card { padding: 22px; min-height: 260px; }
.allocation-card code { display: block; color: var(--muted); overflow-wrap: anywhere; font-size: 12px; }
.ring {
    width: 82px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    border-radius: 50%;
    background: conic-gradient(var(--gold) calc(var(--value) * 1%), rgba(255, 255, 255, .1) 0);
    color: #fff;
    font-weight: 900;
}

.band { background: rgba(255, 255, 255, .035); }
.feature-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.feature-grid article { padding: 26px; }

.decentralization-section {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 88% 14%, var(--home-glow), transparent 28%),
        linear-gradient(135deg, rgba(8, 20, 24, .96), rgba(15, 39, 36, .78));
}

.decentralization-section::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(var(--home-surface-border) 1px, transparent 1px), linear-gradient(90deg, var(--home-surface-border) 1px, transparent 1px);
    background-size: 52px 52px;
    opacity: .09;
}

.decentralization-copy, .decentralization-grid { position: relative; z-index: 1; }
.decentralization-copy { max-width: 900px; }

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

.decentralization-grid article {
    min-height: 240px;
    padding: 28px;
    border: 1px solid var(--home-surface-border);
    border-radius: 8px;
    background: rgba(17, 28, 35, .82);
    transition: transform .2s ease, border-color .2s ease;
}

.decentralization-grid article:hover { transform: translateY(-4px); border-color: var(--home-accent); }
.decentralization-mark { display: block; margin-bottom: 32px; color: var(--home-accent); font: 800 13px/1 Consolas, monospace; letter-spacing: .16em; }
.decentralization-grid h3 { color: #fff; font-size: 24px; }
.decentralization-grid .rich-content { color: var(--muted); line-height: 1.8; }

.stack-list { display: grid; gap: 14px; }
.stack-list div { padding: 26px; }

.timeline {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}

.timeline article { padding: 26px; border-top: 3px solid var(--gold); }
.timeline span { color: var(--gold); font-size: 24px; font-weight: 900; }

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 28px clamp(20px, 6vw, 86px);
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.page-shell {
    min-height: calc(100vh - 160px);
    padding: clamp(42px, 6vw, 86px) clamp(20px, 6vw, 86px);
}

.auth-page .page-shell {
    display: grid;
    place-items: center;
}

.auth-page {
    background: linear-gradient(145deg, #071015 0%, #10201d 55%, #171c18 100%);
}

.auth-card {
    width: min(520px, 100%);
    padding: clamp(28px, 5vw, 48px);
    box-shadow: 0 32px 100px rgba(0, 0, 0, .36);
    border-top: 3px solid var(--gold);
}

.auth-card h1 {
    margin-bottom: 10px;
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.05;
}

.auth-subtitle {
    margin-bottom: 26px;
    color: var(--muted);
    line-height: 1.7;
}

.status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: #dce9e6;
    font-size: 12px;
    font-weight: 800;
}

.status-approved, .status-completed { color: #aef6e7; background: rgba(86, 216, 191, .12); }
.status-pending { color: #ffe5a1; background: rgba(230, 191, 105, .12); }
.status-rejected { color: #ffc6c6; background: rgba(189, 52, 52, .15); }

.rich-editor {
    margin-top: 8px;
    overflow: hidden;
    border: 1px solid #d6e0dd;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 35, 42, .05);
}

.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    min-height: 44px;
    padding: 7px 10px;
    border-bottom: 1px solid #e0e8e5;
    background: #f8faf9;
}

.editor-button {
    min-width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 5px;
    color: #667672;
    background: transparent;
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
}

.editor-button:hover { color: #0d8f76; background: #eaf5f2; }
.editor-button:focus { outline: none; }
.editor-button:focus-visible { box-shadow: inset 0 0 0 1px #0d8f76; }
.editor-divider { width: 1px; height: 20px; margin: 0 3px; background: #dbe4e1; }
.editor-upload-control { display: inline-flex; }
.editor-file-input { display: none; }

.editor-color {
    width: 34px;
    height: 30px;
    margin: 0;
    overflow: hidden;
    border: 1px solid #d8e2df;
    border-radius: 5px;
    background: #fff;
    cursor: pointer;
}

.editor-color input {
    width: 48px;
    height: 46px;
    margin: -6px;
    padding: 0;
    border: 0;
    cursor: pointer;
}

.editor-content {
    position: relative;
    min-height: 320px;
    padding: 18px 20px;
    color: #27343f;
    background: #fff;
    font-size: 16px;
    font-weight: 400;
    cursor: text;
    user-select: text;
    white-space: pre-wrap;
    line-height: 1.75;
    outline: none;
}
.editor-content:empty::before {
    content: attr(data-placeholder);
    color: #8a9894;
    pointer-events: none;
}
.editor-content:focus { box-shadow: inset 0 0 0 2px rgba(13, 143, 118, .16); }
.editor-content p { margin: 0 0 1em; font-size: 16px; font-weight: 400; }
.editor-content h2 { margin: .4em 0 .6em; color: #17201f; font-size: 24px; line-height: 1.35; }
.editor-content blockquote { margin: 1em 0; padding: 10px 14px; border-left: 3px solid #e6bf69; color: #53635e; background: #fff8e8; }
.editor-content img { max-width: 100%; height: auto; border-radius: 6px; }

.editor-source-hidden { display: none; }

.rich-content h2, .rich-content h3 { margin: 1.4em 0 .6em; }
.rich-content p { margin: 0 0 1em; }
.rich-content ul, .rich-content ol { padding-left: 24px; line-height: 1.8; }
.rich-content blockquote { margin: 1.4em 0; padding: 14px 18px; border-left: 3px solid var(--gold); background: rgba(230, 191, 105, .08); }
.rich-content a { color: var(--mint); text-decoration: underline; }

.dashboard-grid .panel {
    position: relative;
    overflow: hidden;
}

.dashboard-grid .panel::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: var(--gold);
}

.profile-panel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(280px, .48fr);
    align-items: center;
    gap: 28px;
    position: relative;
    overflow: hidden;
}

.profile-panel::after {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, #e6bf69, #0d8f76);
}

.profile-avatar-wrap {
    position: relative;
    display: grid;
    place-items: center;
    width: 132px;
    height: 132px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff8df, #e8f4f0);
    box-shadow: inset 0 0 0 1px #ead9a8;
}
.profile-avatar-wrap::after {
    content: '';
    position: absolute;
    inset: 7px;
    border: 1px solid rgba(13, 143, 118, .18);
    border-radius: 50%;
    pointer-events: none;
}
.profile-avatar { width: 108px; height: 108px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; box-shadow: 0 14px 32px rgba(21, 51, 43, .18); }
.profile-kicker { color: var(--gold); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.profile-summary h2 { margin: 5px 0 8px; }
.profile-summary p { margin-bottom: 8px; }
.avatar-form { min-width: 0; padding-left: 28px; border-left: 1px solid #e3ebe8; }
.avatar-upload-card {
    display: grid;
    gap: 12px;
    padding: 22px;
    border: 1px solid #dbe5e2;
    border-radius: 8px;
    background: linear-gradient(180deg, #fbfdfc, #f3f8f6);
}
.avatar-upload-card strong { color: #1e302b; font-size: 18px; }
.avatar-upload-card p { margin: 0; color: #72817d; font-size: 13px; line-height: 1.6; }
.avatar-picker {
    display: grid;
    gap: 9px;
    margin: 2px 0 0;
    color: #53635e;
    font-weight: 800;
}
.avatar-picker > span { font-size: 13px; }
.avatar-input {
    margin: 0;
    padding: 8px;
    border: 1px dashed #bfd3cd;
    background: #fff;
    cursor: pointer;
}
.avatar-input::file-selector-button {
    min-height: 36px;
    margin-right: 12px;
    padding: 0 14px;
    border: 0;
    border-radius: 6px;
    color: #fff;
    background: #15342c;
    font: inherit;
    font-size: 13px;
    font-weight: 900;
    cursor: pointer;
}
.avatar-input:hover { border-color: #0d8f76; background: #f7fbfa; }
.avatar-input:hover::file-selector-button { background: #0d8f76; }
.avatar-submit { width: fit-content; min-width: 108px; }

.space-page { --space-accent: #43cbb0; --space-cover: #14372f; background: #eef4f1; color: #1c2926; }
.space-page.theme-gold { --space-accent: #d7a743; --space-cover: #41351e; }
.space-page.theme-graphite { --space-accent: #8ea5a0; --space-cover: #26312f; }
.space-page .site-header { position: relative; }
.space-page .site-footer { color: #657570; background: #fff; border-color: #dbe5e2; }

.space-shell { width: min(1180px, calc(100% - 32px)); margin: 28px auto 70px; }
.space-cover { position: relative; min-height: 330px; overflow: hidden; border-radius: 8px; color: #fff; background: var(--space-cover); box-shadow: 0 22px 60px rgba(22, 44, 38, .18); }
.space-cover-pattern { position: absolute; inset: 0; opacity: .24; background: repeating-linear-gradient(120deg, transparent 0 38px, rgba(255,255,255,.08) 38px 39px); }
.space-cover::after { content: 'USHCC'; position: absolute; top: 28px; right: 38px; color: rgba(255,255,255,.1); font-size: clamp(64px, 11vw, 150px); font-weight: 900; }
.space-identity { position: absolute; z-index: 1; left: clamp(26px, 5vw, 58px); right: 190px; bottom: 40px; display: flex; align-items: center; gap: 24px; }
.space-avatar { flex: 0 0 auto; width: 126px; height: 126px; border-radius: 50%; object-fit: cover; border: 5px solid rgba(255,255,255,.88); box-shadow: 0 12px 36px rgba(0,0,0,.24); }
.space-identity h1 { margin: 7px 0 8px; font-size: clamp(34px, 5vw, 60px); line-height: 1; }
.space-identity p { max-width: 680px; margin: 0; color: rgba(255,255,255,.75); font-size: 16px; }
.verified-mark { display: inline-flex; padding: 5px 9px; border: 1px solid rgba(255,255,255,.26); border-radius: 999px; color: #fff; font-size: 11px; font-weight: 900; }
.space-manage-button { position: absolute; z-index: 2; right: 34px; bottom: 42px; color: #17231f; background: #fff; }
.space-follow-form { margin: 0; }
.space-follow-form .space-manage-button { cursor: pointer; }

.space-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 18px; margin-top: 18px; align-items: start; }
.space-sidebar { display: grid; gap: 14px; }
.space-widget, .moment-card, .empty-space { border: 1px solid #dbe5e2; border-radius: 8px; background: #fff; box-shadow: 0 8px 26px rgba(39, 67, 59, .05); }
.space-widget { padding: 22px; }
.widget-label { color: var(--space-accent); font-size: 12px; font-weight: 900; }
.space-widget h3 { margin: 7px 0 5px; }
.space-widget p { color: #71817c; line-height: 1.7; }
.space-stats { display: grid; grid-template-columns: 1fr 1fr; margin-top: 18px; padding-top: 18px; border-top: 1px solid #e7eeec; }
.space-stats div { display: grid; text-align: center; }
.space-stats a { display: grid; color: inherit; text-align: center; }
.space-stats > * + * { border-left: 1px solid #e7eeec; }
.space-stats.three { grid-template-columns: repeat(3, 1fr); }
.space-stats strong { color: var(--space-accent); font-size: 22px; }
.space-stats span { color: #83918d; font-size: 11px; }
.notice-widget { border-top: 3px solid var(--space-accent); }

.moment-stream { min-width: 0; }
.stream-heading { margin: 4px 0 15px; }
.stream-heading span { color: var(--space-accent); font-size: 12px; font-weight: 900; }
.stream-heading h2 { margin: 3px 0 0; color: #1f302c; font-size: 28px; }
.moment-card { margin-bottom: 14px; padding: 24px; }
.moment-author { display: flex; align-items: center; gap: 12px; }
.moment-author img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.moment-author div { display: grid; gap: 3px; }
.moment-author time { color: #8a9894; font-size: 12px; }
.moment-content { padding: 20px 0; color: #2e3d39; font-size: 16px; line-height: 1.85; }
.moment-actions { display: flex; align-items: center; gap: 16px; padding-top: 14px; border-top: 1px solid #e9efed; color: #7c8c87; font-size: 12px; }
.moment-actions form { margin-left: auto; }
.moment-actions button, .moment-comment-form button, .text-button { border: 0; color: var(--space-accent); background: transparent; font-weight: 900; cursor: pointer; }
.moment-comments { margin-top: 14px; padding: 13px; border-radius: 6px; background: #f4f8f6; }
.moment-comments > div { display: flex; gap: 9px; padding: 7px 0; }
.moment-comments img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.moment-comments p { margin: 0; color: #52625e; font-size: 13px; }
.moment-comments strong { margin-right: 8px; color: #20312d; }
.moment-comment-form { display: flex; gap: 8px; margin-top: 12px; }
.moment-comment-form input { margin: 0; color: #263531; background: #f7faf9; border-color: #dce6e3; }
.moment-comment-form button { padding: 0 12px; }
.empty-space { padding: 70px 30px; text-align: center; }
.empty-space strong { color: #23332f; font-size: 24px; }
.empty-space p { color: #7b8b86; }

.space-admin-shell { max-width: 1240px; margin: 0 auto; }
.space-manage-grid { display: grid; grid-template-columns: minmax(300px, .75fr) minmax(0, 1.25fr); gap: 16px; align-items: start; }
.space-settings-panel, .moment-publisher { margin: 0; max-width: none; }
.space-settings-panel h2, .moment-publisher h2 { margin: 5px 0 22px; font-size: 28px; }
.publisher-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; }
.inline-check { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-weight: 800; }
.inline-check input { width: auto; min-height: auto; margin: 0; }
.publisher-footer span { color: var(--muted); font-size: 12px; }
.my-moments { padding-left: 0; padding-right: 0; }
.manage-moment-list { display: grid; gap: 12px; }
.manage-moment-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.manage-moment-meta time { color: var(--muted); font-size: 12px; }
.review-note { padding: 10px 12px; border-left: 3px solid var(--gold); color: #ffe4a2; background: rgba(230,191,105,.08); }

.compact { padding-top: 20px; padding-bottom: 42px; }

.panel {
    background: rgba(17, 28, 35, .76);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 24px;
}

.form-panel {
    max-width: 680px;
    margin: 0 auto;
}

label {
    display: block;
    margin-bottom: 16px;
    color: var(--muted);
    font-weight: 750;
}

input, textarea, select {
    width: 100%;
    margin-top: 8px;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--text);
    background: rgba(255, 255, 255, .06);
    font: inherit;
    outline: none;
}

textarea { resize: vertical; }

input:focus, textarea:focus, select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(230, 191, 105, .16);
}

button.button { cursor: pointer; }

.alert {
    padding: 13px 16px;
    border-radius: 6px;
    font-weight: 750;
    border: 1px solid var(--line);
}

.alert.error { color: #9f2525; background: #fff0f0; border: 1px solid #f1b8b8; }
.alert.warning { color: #7a5200; background: #fff7df; border: 1px solid #edd392; }
.alert.success { color: #08715e; background: #e9fbf6; border: 1px solid #a9e8d8; }

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

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

.content-card {
    min-height: 190px;
    padding: 24px;
    background: rgba(17, 28, 35, .76);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.news-preview-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 0;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(23, 36, 45, .9), rgba(12, 22, 28, .92));
    box-shadow: 0 18px 50px rgba(0, 0, 0, .16);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.news-preview-card:hover {
    transform: translateY(-4px);
    border-color: rgba(230, 191, 105, .45);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .25);
}

.content-card-media {
    display: block;
    position: relative;
    overflow: hidden;
    background: #10211d;
}

.content-card-body { padding: 22px; }

.content-card time, .article-view time, .comment-list time {
    display: block;
    margin-bottom: 12px;
    color: var(--gold);
    font-size: 13px;
    font-weight: 800;
}

.article-view {
    max-width: 920px;
    margin: 0 auto;
    padding: clamp(28px, 5vw, 54px);
    background: rgba(17, 28, 35, .76);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.article-body {
    color: #d7e9e5;
    font-size: 18px;
    line-height: 1.9;
}

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

.wide { grid-column: 1 / -1; }
.inline-form { margin-top: 22px; }
.comment-list { display: grid; gap: 12px; margin-bottom: 18px; }

.table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(17, 28, 35, .76);
}

th, td {
    padding: 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

th { color: var(--gold); }
td { color: #d7e9e5; }

@media (max-width: 980px) {
    .site-header { align-items: flex-start; flex-direction: column; }
    .brand-wrap { width: 100%; align-items: flex-start; justify-content: space-between; }
    .hero, .split { grid-template-columns: 1fr; }
    .coin-stage { min-height: 420px; }
    .allocation-grid, .feature-grid, .decentralization-grid, .timeline, .content-grid, .dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .profile-panel { grid-template-columns: auto minmax(0, 1fr); }
    .avatar-form { grid-column: 1 / -1; padding: 20px 0 0; border-left: 0; border-top: 1px solid #e3ebe8; }
    .space-layout, .space-manage-grid { grid-template-columns: 1fr; }
    .space-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 981px) {
    .home-page .site-header {
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .home-page .site-header nav {
        gap: 10px;
    }

    .home-page .site-header nav a {
        padding: 7px 12px;
        border: 1px solid transparent;
        border-radius: 999px;
        transition: color .2s ease, border-color .2s ease, background-color .2s ease;
    }

    .home-page .site-header nav a:hover {
        color: #ffe1a1;
        border-color: rgba(230, 191, 105, .32);
        background: rgba(230, 191, 105, .08);
    }

    .home-page .hero {
        gap: clamp(46px, 7vw, 110px);
        padding-top: clamp(64px, 8vw, 126px);
    }

    .home-page h1 {
        font-size: clamp(54px, 6.6vw, 102px);
        letter-spacing: -.01em;
    }
}

@media (max-width: 640px) {
    .home-page .theme-switch {
        display: flex;
        flex-wrap: wrap;
        width: auto;
        gap: 6px;
        margin-top: 0;
        border-radius: 12px;
    }

    .home-page .theme-switch--header {
        padding: 6px 8px;
    }

    .home-page .theme-switch-row {
        width: 100%;
    }

    .home-page .theme-chip {
        flex: 1;
        min-width: 58px;
    }

    nav { gap: 12px; font-size: 13px; }
    .hero-actions, .notice, .site-footer { flex-direction: column; }
    .metrics, .allocation-grid, .feature-grid, .decentralization-grid, .timeline, .content-grid, .dashboard-grid { grid-template-columns: 1fr; }
    .decentralization-grid article { min-height: 0; }
    .section-head { align-items: start; flex-direction: column; }
    dl div { grid-template-columns: 1fr; gap: 8px; }
    .profile-panel { grid-template-columns: 1fr; text-align: center; }
    .profile-avatar-wrap { margin: 0 auto; }
    .profile-summary .hero-actions { justify-content: center; }
    .space-shell { width: min(100% - 20px, 1180px); margin-top: 10px; }
    .space-cover { min-height: 420px; }
    .space-identity { left: 22px; right: 22px; bottom: 82px; flex-direction: column; align-items: flex-start; }
    .space-avatar { width: 96px; height: 96px; }
    .space-manage-button { right: 22px; left: 22px; bottom: 22px; }
    .space-sidebar { grid-template-columns: 1fr; }
    .moment-card { padding: 18px; }
    .publisher-footer { align-items: stretch; flex-direction: column; }
}

/* Secondary website pages */
.inner-page { color-scheme: light; color: #1b2926; background: #f1f5f3; }
.inner-page .site-header { background: #0b1517; border-color: rgba(255,255,255,.09); }
.inner-page .site-footer { color: #71817c; background: #fff; border-color: #dce6e3; }
.inner-page .site-footer strong { color: #1e302b; }
.inner-page .site-footer a { color: #0d8f76; }
.inner-page .eyebrow { color: #b98b32; }
.inner-page .rich-content a { color: #0d8f76; }
.inner-page .status { color: #53635e; border-color: #d4dfdc; }
.inner-page .status-approved, .inner-page .status-completed { color: #08715e; background: #def7ef; }
.inner-page .status-pending { color: #8a6200; background: #fff3cd; }
.inner-page .status-rejected { color: #a12d2d; background: #ffe7e7; }

.inner-hero { position: relative; min-height: 350px; display: flex; align-items: flex-end; overflow: hidden; padding: 70px max(24px, calc((100vw - 1180px) / 2)) 62px; color: #fff; background: #12241f; }
.inner-hero::before { content: ''; position: absolute; inset: 0; opacity: .32; background: repeating-linear-gradient(118deg, transparent 0 52px, rgba(255,255,255,.065) 52px 53px); }
.inner-hero-copy { position: relative; z-index: 1; max-width: 780px; }
.inner-hero-copy > span { display: block; margin-bottom: 13px; color: #e6bf69; font-size: 12px; font-weight: 900; letter-spacing: .12em; }
.inner-hero-copy h1 { margin: 0 0 16px; font-size: clamp(44px, 7vw, 82px); line-height: .98; }
.inner-hero-copy p { max-width: 680px; margin: 0; color: rgba(255,255,255,.72); font-size: 18px; line-height: 1.75; }
.inner-hero-mark { position: absolute; right: max(24px, calc((100vw - 1180px) / 2)); bottom: 22px; color: rgba(255,255,255,.07); font-size: clamp(82px, 14vw, 190px); font-weight: 900; }
.compact-hero { min-height: 290px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.compact-hero .inner-hero-copy h1 { font-size: clamp(40px, 6vw, 68px); }
.inner-actions { display: flex; gap: 10px; margin-top: 26px; }
.inner-page .button.primary { color: #16231f; background: #e6bf69; }
.inner-page .button.ghost { color: #fff; border-color: rgba(255,255,255,.25); }

.inner-container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 62px 0 90px; }
.content-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.content-toolbar span, .compose-heading span { color: #b98b32; font-size: 12px; font-weight: 900; letter-spacing: .08em; }
.content-toolbar h2, .compose-heading h2 { margin: 5px 0 0; color: #1b2b27; font-size: 32px; }
.content-toolbar > strong { color: #71817c; font-size: 13px; }
.content-type { display: inline-flex; color: #0d8f76; font-size: 12px; font-weight: 900; }

.news-list { border-top: 1px solid #ccd9d5; }
.news-row { display: grid; grid-template-columns: 90px minmax(0,1fr) 50px; gap: 26px; align-items: center; min-height: 190px; padding: 28px 12px; border-bottom: 1px solid #d7e2df; transition: background .2s ease; }
.news-row:hover { background: #fff; }
.news-row.featured { min-height: 240px; background: #fff; border-left: 3px solid #0d8f76; }
.news-date { display: grid; text-align: center; }
.news-date strong { color: #17312a; font-size: 42px; line-height: 1; }
.news-date span { margin-top: 7px; color: #86938f; font-size: 11px; }
.news-copy h3 { margin: 9px 0; color: #1c2d29; font-size: clamp(23px, 3vw, 34px); line-height: 1.2; }
.news-copy p { max-width: 760px; margin: 0; color: #6c7b77; line-height: 1.7; }
.arrow-link { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #ccd9d5; border-radius: 50%; color: #0d8f76; font-size: 22px; }

.article-shell { width: min(1080px, calc(100% - 40px)); margin: 0 auto; padding: 34px 0 90px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 28px; color: #84928e; font-size: 13px; }
.breadcrumb a:hover { color: #0d8f76; }
.editorial-article { overflow: hidden; border: 1px solid #d9e3e0; border-radius: 8px; background: #fff; box-shadow: 0 18px 50px rgba(33,58,51,.07); }
.editorial-article > header { padding: clamp(32px,6vw,70px); border-bottom: 1px solid #e1e9e7; }
.editorial-article h1 { margin: 14px 0 20px; color: #172823; font-size: clamp(38px,6vw,66px); line-height: 1.1; }
.article-meta { display: flex; flex-wrap: wrap; gap: 18px; color: #81908c; font-size: 13px; }
.article-meta a { color: #0d8f76; font-weight: 800; }
.article-summary { max-width: 760px; margin: 24px 0 0; padding-left: 18px; border-left: 3px solid #e6bf69; color: #63736e; font-size: 17px; line-height: 1.8; }
.editorial-article .article-body { padding: clamp(32px,6vw,70px); color: #34433f; font-size: 17px; line-height: 1.95; }
.editorial-article > footer { display: flex; justify-content: space-between; gap: 18px; padding: 22px clamp(32px,6vw,70px); color: #75847f; background: #f6f9f8; font-size: 13px; }
.editorial-article > footer a { color: #0d8f76; font-weight: 800; }

.community-hero { background: #162823; }
.community-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 22px; align-items: start; }
.notice-strip { margin: 0 0 14px; padding: 13px 16px; border-left: 3px solid #e6bf69; color: #7b5b18; background: #fff8e6; font-size: 13px; }
.discussion-list { display: grid; gap: 10px; }
.discussion-item { display: grid; grid-template-columns: 50px minmax(0,1fr); gap: 16px; padding: 24px; border: 1px solid #dbe5e2; border-radius: 8px; background: #fff; transition: transform .2s ease, box-shadow .2s ease; }
.discussion-item:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(37,65,57,.08); }
.discussion-avatar, .author-avatar, .comment-avatar { display: grid; place-items: center; border-radius: 50%; color: #fff; background: #0d8f76; font-weight: 900; }
.discussion-avatar { width: 50px; height: 50px; }
.discussion-meta { display: flex; gap: 12px; color: #84928e; font-size: 12px; }
.discussion-meta a { color: #0d8f76; font-weight: 800; }
.discussion-copy h3 { margin: 9px 0; color: #1d2d29; font-size: 23px; }
.discussion-copy p { margin: 0; color: #697974; line-height: 1.75; }
.discussion-stats { display: flex; justify-content: space-between; gap: 14px; margin-top: 16px; padding-top: 14px; border-top: 1px solid #edf1f0; color: #87958f; font-size: 12px; }
.discussion-stats a { color: #0d8f76; font-weight: 800; }
.community-aside { display: grid; gap: 12px; position: sticky; top: 95px; }
.community-aside section { padding: 24px; border: 1px solid #dbe5e2; border-radius: 8px; background: #fff; }
.community-aside span { color: #b98b32; font-size: 11px; font-weight: 900; }
.community-aside h3 { margin: 8px 0; color: #1e302b; }
.community-aside p { color: #74837f; line-height: 1.7; }
.community-aside .button { margin-top: 8px; }

.discussion-detail-layout { display: grid; grid-template-columns: minmax(0,1fr) 240px; gap: 18px; align-items: start; }
.discussion-article h1 { font-size: clamp(34px,5vw,56px); }
.author-card { position: sticky; top: 96px; padding: 26px; border: 1px solid #d9e3e0; border-radius: 8px; text-align: center; background: #fff; }
.author-avatar-link { display: inline-block; margin: 0 auto 14px; border-radius: 50%; }
.author-avatar-link:focus-visible { outline: 3px solid rgba(13, 143, 118, .24); outline-offset: 3px; }
.author-avatar { width: 72px; height: 72px; margin: 0 auto 14px; font-size: 26px; }
.author-avatar-link .author-avatar { margin: 0; }
.author-avatar-image { display: block; object-fit: cover; }
.author-card > span { color: #9a7a32; font-size: 11px; font-weight: 900; }
.author-card h3 { margin: 7px 0 10px; }
.author-card a { color: #0d8f76; font-size: 13px; font-weight: 800; }
.author-official-row { display: flex; justify-content: center; margin: 0 0 14px; }
.author-official-row .official-badge { padding-right: 12px; }
.author-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 18px 0 0; overflow: hidden; border: 1px solid #e1e9e7; border-radius: 8px; background: #f8fbfa; }
.author-stats div { display: grid; gap: 4px; padding: 13px 8px; color: #21342f; }
.author-stats div + div { border-left: 1px solid #e1e9e7; }
.author-stats strong { color: #0d8f76; font-size: 20px; line-height: 1; }
.author-stats span { color: #7b8b86; font-size: 12px; font-weight: 800; }
.appreciation-box { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 0 clamp(32px,6vw,70px) 50px; padding: 22px; border: 1px solid #ead9b1; border-radius: 8px; color: #745a1d; background: #fffaf0; }
.appreciation-box button { min-height: 42px; padding: 0 20px; border: 0; border-radius: 6px; color: #18231f; background: #e6bf69; font-weight: 900; cursor: pointer; }
.comments-section { max-width: 820px; margin-top: 38px; }
.comment-list { display: grid; gap: 10px; }
.comment-item { display: grid; grid-template-columns: 42px minmax(0,1fr); gap: 13px; padding: 20px; border: 1px solid #dbe5e2; border-radius: 8px; background: #fff; }
.comment-avatar { width: 42px; height: 42px; }
.comment-item header { display: flex; justify-content: space-between; gap: 10px; }
.comment-item time { color: #8a9894; font-size: 11px; }
.comment-item p { margin: 8px 0 0; color: #596965; line-height: 1.7; }
.comment-editor { margin-top: 16px; padding: 24px; border: 1px solid #dbe5e2; border-radius: 8px; background: #fff; }
.inner-page .comment-editor label, .inner-page .compose-form label, .inner-page .service-form label, .inner-page .account-card label { color: #53635e; }
.inner-page .comment-editor input, .inner-page .comment-editor textarea, .inner-page .compose-form input, .inner-page .compose-form textarea, .inner-page .service-form input, .inner-page .service-form textarea, .inner-page .account-card input, .inner-page .account-card textarea, .inner-page .account-card select { color: #1e2e2a; background: #f8faf9; border-color: #d4dfdc; }
.compose-shell { width: min(900px, calc(100% - 40px)); margin: 0 auto; padding: 56px 0 90px; }
.compose-heading { margin-bottom: 18px; }
.compose-form { max-width: none; color: #1d2d29; background: #fff; border-color: #d9e3e0; }
.compose-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; }
.compose-footer span { color: #7b8985; font-size: 12px; }

.auth-page { color-scheme: dark; background: #091315; }
.auth-page .site-footer { color: #758984; background: #091315; border-color: rgba(255,255,255,.1); }
.auth-page .site-footer strong { color: #d9e6e2; }
.auth-shell { min-height: calc(100vh - 80px); display: grid; grid-template-columns: minmax(0,1.1fr) minmax(420px,.7fr); width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 70px 0; align-items: center; gap: clamp(40px,8vw,110px); }
.auth-intro img { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; }
.auth-intro > span { display: block; margin: 26px 0 10px; color: #e6bf69; font-size: 12px; font-weight: 900; }
.auth-intro h1 { max-width: 680px; margin-bottom: 20px; color: #fff; font-size: clamp(48px,7vw,86px); line-height: .98; }
.auth-intro p { max-width: 630px; color: #9eb0ab; font-size: 18px; line-height: 1.8; }
.auth-points { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 28px; }
.auth-points span { padding: 8px 12px; border: 1px solid rgba(255,255,255,.13); border-radius: 999px; color: #d8e5e1; font-size: 12px; }
.auth-shell .auth-card { width: 100%; color: #1c2d29; background: #fff; border: 0; border-top: 3px solid #e6bf69; }
.auth-card h2 { margin: 5px 0 8px; color: #192925; font-size: 36px; }
.auth-card label { color: #53635e; }
.auth-card input { color: #192925; background: #f6f9f8; border-color: #d5dfdc; }
.full-button { width: 100%; }
.auth-switch { margin: 20px 0 0; color: #73827e; text-align: center; font-size: 13px; }
.auth-switch a { color: #0d8f76; font-weight: 900; }

.account-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 34px 0 90px; }
.account-banner { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: clamp(30px,5vw,56px); border-radius: 8px; color: #fff; background: linear-gradient(135deg, #12261f 0%, #19352e 68%, #26351f 100%); box-shadow: 0 20px 60px rgba(23, 53, 45, .16); }
.account-banner > div > span { color: #e6bf69; font-size: 12px; font-weight: 900; }
.account-banner h1 { margin: 6px 0 10px; font-size: clamp(40px,6vw,68px); }
.account-banner p { margin: 0; color: #9eb1ab; }
.account-balance { min-width: 240px; padding-left: 32px; border-left: 1px solid rgba(255,255,255,.15); }
.account-balance span, .account-balance small { display: block; color: #9fb1ac; font-size: 12px; }
.account-balance strong { display: block; max-width: 100%; margin: 4px 0; color: #e6bf69; font-size: clamp(28px, 4.5vw, 42px); line-height: 1.08; overflow-wrap: anywhere; }
.account-nav { position: sticky; top: 82px; z-index: 5; display: flex; gap: 6px; margin: 14px 0 26px; padding: 8px; overflow-x: auto; border: 1px solid #d9e3e0; border-radius: 8px; background: rgba(255, 255, 255, .92); box-shadow: 0 10px 28px rgba(37, 65, 57, .06); backdrop-filter: blur(14px); }
.account-nav a { flex: 0 0 auto; padding: 10px 15px; border-radius: 5px; color: #63736e; font-size: 13px; font-weight: 800; }
.account-nav a:hover { color: #fff; background: #0d8f76; }
.account-section { margin-top: 24px; }
.account-section > h2 { margin-bottom: 14px; color: #1d2e29; font-size: 28px; }
.account-card, .inner-page .profile-panel { color: #263632; background: #fff; border-color: #d9e3e0; box-shadow: 0 12px 34px rgba(36,62,55,.06); }
.account-card h3, .profile-panel h2 { color: #1e2f2a; }
.account-card p, .profile-panel p { color: #657570; overflow-wrap: anywhere; }
.account-card strong { overflow-wrap: anywhere; }
.account-card { transition: transform .2s ease, box-shadow .2s ease; }
.account-card:hover { transform: translateY(-2px); box-shadow: 0 18px 44px rgba(36,62,55,.09); }
.verified-copy a { color: #0d8f76; font-weight: 800; }
.account-page .table-wrap { border-color: #d9e3e0; background: #fff; }
.account-page table { background: #fff; }
.account-page th { color: #8b6a25; background: #f7f9f8; }
.account-page td { color: #384843; border-color: #e5ecea; }
.account-page .button.ghost { color: #0d8f76; border-color: #bfd6d0; }
.account-page .avatar-input { color: #52635e; background: #fff; border-color: #bfd3cd; }
.account-page .mono, .account-page code { white-space: normal; overflow-wrap: anywhere; word-break: break-word; }
.account-record-table .record-amount { color: #1e302b; font-weight: 900; }
.account-record-table .record-address, .account-record-table .record-hash { max-width: 320px; }

.service-shell { display: grid; grid-template-columns: 300px minmax(0,1fr); gap: 18px; width: min(1000px, calc(100% - 40px)); margin: 0 auto; padding: 56px 0 90px; align-items: start; }
.service-steps, .wallet-summary, .service-form { padding: 28px; border: 1px solid #d9e3e0; border-radius: 8px; background: #fff; }
.service-steps > span, .wallet-summary > span { color: #b98b32; font-size: 12px; font-weight: 900; }
.service-steps ol { margin: 24px 0 0; padding: 0; list-style: none; }
.service-steps li { display: flex; gap: 12px; padding: 13px 0; color: #84918e; }
.service-steps li > strong { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #d4dfdc; border-radius: 50%; }
.service-steps li.active > strong { color: #fff; background: #0d8f76; border-color: #0d8f76; }
.service-steps li div { display: grid; gap: 3px; }
.service-steps b { color: #263632; }
.service-steps small { color: #8b9995; }
.service-form h2 { margin: 8px 0 24px; color: #1d2d29; font-size: 32px; }
.service-form form { max-width: 620px; }
.service-form label small { display: block; margin-top: 7px; color: #879590; font-weight: 400; }
.wallet-summary > strong { display: block; margin: 12px 0 0; color: #0d8f76; font-size: 44px; }
.wallet-summary > small { color: #7d8c87; }
.wallet-summary > div { margin: 28px 0 18px; padding-top: 18px; border-top: 1px solid #e1e9e7; }
.wallet-summary b { display: block; margin-bottom: 8px; }
.wallet-summary code { display: block; color: #657570; overflow-wrap: anywhere; }
.wallet-summary a { color: #0d8f76; font-size: 13px; font-weight: 900; }

.connections-tabs { display: flex; gap: 8px; margin-bottom: 22px; padding: 7px; border: 1px solid #d9e3e0; border-radius: 8px; background: #fff; }
.connections-tabs a { padding: 10px 16px; border-radius: 5px; color: #657570; font-size: 13px; font-weight: 800; }
.connections-tabs a.active { color: #fff; background: #0d8f76; }
.connections-tabs a:last-child { margin-left: auto; color: #0d8f76; }
.connections-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.connections-grid article { display: grid; grid-template-columns: 64px minmax(0,1fr) auto; gap: 15px; align-items: center; padding: 20px; border: 1px solid #d9e3e0; border-radius: 8px; background: #fff; }
.connections-grid article img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }

.name-with-badge { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; vertical-align: middle; }
.name-with-badge .official-badge { flex: 0 0 auto; }
.official-badge { position: relative; display: inline-flex; align-items: center; gap: 6px; width: fit-content; min-height: 24px; padding: 0 10px 0 5px; overflow: hidden; border: 1px solid rgba(198, 143, 36, .92); border-radius: 999px; color: #6b4304; background: linear-gradient(180deg, #fff8d8 0%, #f2d074 48%, #d8a138 100%); font-size: 12px; font-weight: 900; line-height: 1; box-shadow: inset 0 1px 0 rgba(255,255,255,.82), inset 0 -1px 3px rgba(96, 57, 0, .16), 0 4px 14px rgba(156, 103, 13, .22); text-shadow: 0 1px 0 rgba(255,255,255,.48); vertical-align: middle; }
.official-badge::before { content: 'V'; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; color: #fff9dc; background: radial-gradient(circle at 34% 22%, #fff2a8 0 8%, #c98d1b 43%, #684000 100%); font-family: Georgia, 'Times New Roman', serif; font-size: 11px; font-weight: 900; line-height: 1; text-shadow: 0 1px 1px rgba(76, 43, 0, .42); box-shadow: inset 0 1px 0 rgba(255,255,255,.58), 0 1px 3px rgba(87, 48, 0, .22); }
.official-badge::after { content: ''; position: absolute; inset: 1px 8px auto 26px; height: 7px; border-radius: 999px; background: linear-gradient(180deg, rgba(255,255,255,.58), rgba(255,255,255,0)); opacity: .7; pointer-events: none; }
.profile-official-badge { transform: translateY(1px); }
.content-card-image { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .28s ease; }
.news-preview-card:hover .content-card-image { transform: scale(1.04); }
.news-row { grid-template-columns: 90px 180px minmax(0,1fr) 50px; }
.news-thumb { display: block; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 8px; background: #eef4f1; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-cover { display: block; width: 100%; max-height: 460px; object-fit: cover; border-bottom: 1px solid #e1e8e5; }
.space-post-heading { margin-top: 28px; }
.space-post-card .moment-actions a { color: var(--space-accent); font-weight: 900; }
.connections-grid article h3 { margin: 0 0 5px; color: #1d2e29; }
.connections-grid article p { margin: 0; color: #788783; font-size: 13px; }
.connections-grid article > a { color: #0d8f76; font-size: 13px; font-weight: 900; }

@media (max-width: 900px) {
    .community-layout, .discussion-detail-layout, .auth-shell, .service-shell { grid-template-columns: 1fr; }
    .community-aside, .author-card { position: static; }
    .community-aside { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .auth-intro { padding-top: 20px; }
    .auth-shell { gap: 35px; }
}

@media (max-width: 640px) {
    .inner-hero { min-height: 310px; padding-left: 20px; padding-right: 20px; }
    .inner-container, .article-shell, .compose-shell, .account-shell, .service-shell { width: min(100% - 24px, 1180px); }
    .news-row { grid-template-columns: 58px minmax(0,1fr); gap: 14px; padding: 22px 6px; }
    .news-thumb { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
    .news-date strong { font-size: 30px; }
    .arrow-link { display: none; }
    .discussion-item { grid-template-columns: 1fr; }
    .community-aside { grid-template-columns: 1fr; }
    .editorial-article > header, .editorial-article .article-body { padding: 26px 20px; }
    .editorial-article > footer, .appreciation-box, .compose-footer, .account-banner { align-items: stretch; flex-direction: column; }
    .appreciation-box { margin: 0 20px 28px; }
    .auth-shell { width: min(100% - 24px,1180px); padding: 38px 0; }
    .auth-intro h1 { font-size: 48px; }
    .account-balance { padding: 22px 0 0; border-top: 1px solid rgba(255,255,255,.15); border-left: 0; }
    .account-balance strong { font-size: clamp(24px, 8vw, 32px); }
    .account-card p { font-size: 14px; line-height: 1.75; }
    .account-card strong { font-size: 14px; }
    .account-card .button { width: 100%; margin: 4px 0; }
    .account-records-wrap {
        overflow: visible;
        border: 0;
        background: transparent;
        box-shadow: none;
    }
    .account-record-table {
        display: grid;
        min-width: 0;
        gap: 12px;
        background: transparent;
    }
    .account-record-table tr {
        display: grid;
        gap: 10px;
        padding: 18px;
        border: 1px solid #d9e3e0;
        border-radius: 8px;
        background: #fff;
        box-shadow: 0 12px 30px rgba(36,62,55,.06);
    }
    .account-record-table tr:first-child { display: none; }
    .account-record-table th { display: none; }
    .account-record-table td {
        display: grid;
        grid-template-columns: 82px minmax(0, 1fr);
        gap: 12px;
        align-items: start;
        padding: 0;
        border: 0;
        font-size: 14px;
        line-height: 1.55;
    }
    .account-record-table td::before {
        content: attr(data-label);
        color: #8b6a25;
        font-size: 12px;
        font-weight: 900;
    }
    .transfer-record-table .record-amount {
        grid-template-columns: 1fr;
        gap: 4px;
        padding-bottom: 12px;
        border-bottom: 1px solid #edf2f0;
        color: #17332b;
        font-size: 22px;
        line-height: 1.15;
    }
    .transfer-record-table .record-amount::before {
        color: #b98b32;
        font-size: 12px;
    }
    .transfer-record-table .record-address,
    .transfer-record-table .record-hash {
        display: block;
        max-width: none;
        padding: 12px;
        border-radius: 7px;
        color: #40514c;
        background: #f6faf8;
        font-size: 12px;
        line-height: 1.7;
    }
    .transfer-record-table .record-address::before,
    .transfer-record-table .record-hash::before {
        display: block;
        margin-bottom: 6px;
        color: #8b6a25;
        font-size: 12px;
        font-family: Inter, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
    }
    .connections-grid { grid-template-columns: 1fr; }
    .connections-grid article { grid-template-columns: 52px minmax(0,1fr); }
    .connections-grid article img { width: 52px; height: 52px; }
    .connections-grid article > a { grid-column: 2; }
}

/* Frontend H5 polish */
@media (max-width: 640px) {
    html { scroll-padding-top: 12px; }
    body { min-width: 0; }
    h1 { font-size: clamp(34px, 11vw, 48px); line-height: 1.04; }
    h2 { font-size: clamp(26px, 8vw, 36px); line-height: 1.12; }
    h3 { font-size: 20px; line-height: 1.25; }

    .site-header {
        position: relative;
        gap: 14px;
        padding: 16px 14px 14px;
        border-bottom-color: rgba(255,255,255,.08);
    }
    .brand {
        width: 100%;
        gap: 10px;
        font-size: 16px;
        line-height: 1.2;
    }
    .brand img { width: 40px; height: 40px; }
    .site-header nav {
        width: 100%;
        display: flex;
        flex-wrap: nowrap;
        gap: 8px;
        overflow-x: auto;
        padding: 2px 0 4px;
        scrollbar-width: none;
    }
    .site-header nav::-webkit-scrollbar { display: none; }
    .site-header nav a {
        flex: 0 0 auto;
        padding: 7px 9px;
        border: 1px solid rgba(255,255,255,.08);
        border-radius: 999px;
        background: rgba(255,255,255,.035);
        color: #b9cbc7;
        font-size: 12px;
    }

    .button {
        width: 100%;
        min-height: 44px;
        padding: 0 16px;
        text-align: center;
    }

    .hero {
        min-height: auto;
        gap: 26px;
        padding: 34px 16px 28px;
    }
    .lead { font-size: 18px; line-height: 1.55; }
    .intro, .section p { font-size: 15px; line-height: 1.75; }
    .hero-actions { gap: 10px; margin-top: 22px; }
    .coin-stage { min-height: 300px; }
    .coin-orbit { width: min(78vw, 260px); }
    .metrics {
        position: static;
        grid-template-columns: 1fr;
        width: 100%;
        margin-top: 14px;
    }
    .metrics div { padding: 14px 16px; }
    .metrics strong, .stack-list strong { font-size: 21px; overflow-wrap: anywhere; }
    .notice {
        margin: 0 16px;
        padding: 16px;
        border-radius: 8px;
    }
    .section { padding: 42px 16px; }
    .section-head { gap: 12px; margin-bottom: 16px; }
    .section-head .button { width: 100%; }
    .info-panel, .allocation-card, .feature-grid article, .stack-list div, .timeline article, .content-card {
        border-radius: 8px;
    }
    .allocation-card { min-height: auto; padding: 18px; }
    .ring { width: 70px; margin-bottom: 14px; }
    .content-card-body { padding: 18px; }
    .content-card { min-height: auto; padding: 18px; }
    .news-preview-card { padding: 0; }
    .timeline article { padding: 20px; }
    .site-footer {
        padding: 24px 16px;
        font-size: 13px;
        line-height: 1.7;
    }

    .inner-page { background: #eef4f1; }
    .inner-hero {
        min-height: 230px;
        padding: 42px 18px 38px;
        align-items: flex-end;
    }
    .inner-hero-copy h1 { font-size: clamp(34px, 10vw, 48px); }
    .inner-hero-copy p { font-size: 15px; line-height: 1.7; }
    .inner-hero-copy > span { font-size: 11px; }
    .inner-hero-mark { display: none; }
    .compact-hero { min-height: 210px; padding-top: 38px; padding-bottom: 38px; }
    .inner-actions {
        flex-direction: column;
        gap: 9px;
        margin-top: 18px;
    }
    .inner-container { padding: 38px 0 58px; }
    .content-toolbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        margin-bottom: 16px;
    }
    .content-toolbar h2, .compose-heading h2 { font-size: 28px; }

    .news-list { border-top: 0; display: grid; gap: 12px; }
    .news-row {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 0;
        overflow: hidden;
        border: 1px solid #d9e3e0;
        border-radius: 8px;
        background: #fff;
        box-shadow: 0 12px 28px rgba(36,62,55,.06);
    }
    .news-row.featured { min-height: auto; border-left: 0; border-top: 3px solid #0d8f76; }
    .news-date {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 14px 16px 0;
        text-align: left;
    }
    .news-date strong { font-size: 28px; }
    .news-date span { margin: 0; }
    .news-copy { padding: 0 16px 18px; }
    .news-copy h3 { font-size: 22px; }
    .article-shell { padding: 18px 0 58px; }
    .breadcrumb { margin-bottom: 14px; font-size: 12px; }
    .editorial-article {
        border-radius: 8px;
        box-shadow: 0 12px 30px rgba(33,58,51,.06);
    }
    .editorial-article h1 { font-size: clamp(30px, 9vw, 42px); }
    .article-summary { margin-top: 18px; font-size: 15px; }
    .editorial-article .article-body { font-size: 16px; line-height: 1.85; }
    .article-cover { max-height: 260px; }

    .community-layout { padding-top: 38px; }
    .discussion-list { gap: 12px; }
    .discussion-item {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 12px;
        padding: 18px;
        box-shadow: 0 10px 26px rgba(37,65,57,.05);
    }
    .discussion-avatar { width: 44px; height: 44px; }
    .discussion-meta {
        flex-direction: column;
        gap: 4px;
    }
    .discussion-copy h3 { font-size: 20px; }
    .discussion-stats {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
    .community-aside section { padding: 18px; }
    .discussion-detail-layout { gap: 16px; }
    .author-card { padding: 20px; }
    .comments-section { max-width: none; margin-top: 28px; }
    .comment-item {
        grid-template-columns: 36px minmax(0, 1fr);
        padding: 16px;
    }
    .comment-avatar { width: 36px; height: 36px; }
    .comment-item header {
        align-items: flex-start;
        flex-direction: column;
    }
    .comment-editor { padding: 18px; }

    .compose-shell { padding: 36px 0 58px; }
    .compose-form { padding: 18px; }
    .editor-toolbar { gap: 3px; padding: 6px; }
    .editor-button { min-width: 28px; height: 28px; }
    .editor-content { min-height: 260px; padding: 15px; }

    .auth-page .site-header { background: #0b1517; }
    .auth-shell {
        min-height: auto;
        gap: 22px;
        padding: 32px 0 50px;
    }
    .auth-intro img { width: 70px; height: 70px; }
    .auth-intro > span { margin-top: 18px; }
    .auth-intro h1 { font-size: clamp(36px, 11vw, 48px); }
    .auth-intro p { font-size: 15px; }
    .auth-points span { font-size: 11px; }
    .auth-shell .auth-card { padding: 24px 20px; }
    .auth-card h2 { font-size: 30px; }

    .service-shell {
        gap: 12px;
        padding: 38px 0 58px;
    }
    .service-steps, .wallet-summary, .service-form { padding: 20px; }
    .service-form h2 { font-size: 28px; }
    .wallet-summary > strong { font-size: clamp(28px, 9vw, 38px); overflow-wrap: anywhere; }

    .account-shell { padding-top: 18px; }
    .account-banner {
        gap: 18px;
        padding: 24px 20px;
    }
    .account-banner h1 { font-size: clamp(34px, 10vw, 46px); }
    .account-nav {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin: 12px 0 24px;
        overflow: visible;
    }
    .account-nav a {
        justify-content: center;
        text-align: center;
    }
    .profile-panel { padding: 22px 18px; }
    .profile-summary h2 { font-size: 28px; overflow-wrap: anywhere; }
    .avatar-upload-card { padding: 18px; text-align: left; }

    .space-shell {
        width: min(100% - 20px, 1180px);
        margin: 10px auto 52px;
    }
    .space-cover {
        min-height: 390px;
        border-radius: 8px;
    }
    .space-cover::after {
        top: 18px;
        right: 18px;
        font-size: 68px;
    }
    .space-identity {
        left: 20px;
        right: 20px;
        bottom: 86px;
        gap: 14px;
    }
    .space-identity h1 { font-size: 34px; overflow-wrap: anywhere; }
    .space-identity p { font-size: 14px; }
    .space-avatar { width: 92px; height: 92px; }
    .space-manage-button {
        right: 20px;
        left: 20px;
        bottom: 20px;
        width: auto;
    }
    .space-layout { gap: 12px; }
    .space-widget, .moment-card, .empty-space {
        border-radius: 8px;
        box-shadow: 0 10px 24px rgba(39,67,59,.05);
    }
    .space-widget { padding: 18px; }
    .moment-card { padding: 18px; }
    .moment-author { align-items: flex-start; }
    .moment-content { font-size: 15px; }
    .moment-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }
    .moment-actions form { margin-left: 0; }
    .moment-comment-form {
        align-items: stretch;
        flex-direction: column;
    }
    .space-manage-grid { gap: 12px; }
    .publisher-footer { gap: 10px; }

    .connections-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    .connections-tabs a {
        text-align: center;
    }
    .connections-tabs a:last-child {
        grid-column: 1 / -1;
        margin-left: 0;
    }
    .connections-grid article {
        grid-template-columns: 52px minmax(0, 1fr);
        padding: 16px;
    }
    .connections-grid article > a {
        grid-column: 1 / -1;
        display: inline-flex;
        justify-content: center;
        min-height: 38px;
        padding: 0 14px;
        border: 1px solid #bfd6d0;
        border-radius: 6px;
        align-items: center;
    }
}

@media (max-width: 420px) {
    .site-header { padding-left: 12px; padding-right: 12px; }
    .brand { font-size: 15px; }
    .hero, .section { padding-left: 12px; padding-right: 12px; }
    .notice { margin-left: 12px; margin-right: 12px; }
    .inner-container, .article-shell, .compose-shell, .account-shell, .service-shell { width: min(100% - 20px, 1180px); }
    .profile-avatar-wrap { width: 116px; height: 116px; }
    .profile-avatar { width: 94px; height: 94px; }
    .transfer-record-table .record-amount { font-size: 20px; }
}
