:root {
    --bg: #f6f0e6;
    --bg-soft: #fbf7f1;
    --surface: rgba(255, 255, 255, 0.78);
    --surface-strong: #fffdf9;
    --line: rgba(20, 32, 51, 0.1);
    --text: #142033;
    --muted: #5f6e82;
    --teal: #0f766e;
    --gold: #d4a017;
    --orange: #f97316;
    --shadow: 0 24px 60px rgba(20, 32, 51, 0.09);
    --radius-xl: 30px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --shell: 1180px;
    --chat-panel: rgba(11, 20, 27, 0.9);
    --chat-panel-strong: rgba(7, 16, 23, 0.96);
    --chat-text: #dce8ef;
    --chat-muted: #7c95a6;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Noto Sans KR", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(15, 118, 110, 0.14), transparent 26%),
        radial-gradient(circle at 90% 20%, rgba(212, 160, 23, 0.18), transparent 24%),
        linear-gradient(180deg, #fffaf2 0%, var(--bg) 100%);
}

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

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

.page-shell {
    min-height: 100vh;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(16px);
    background: rgba(251, 247, 241, 0.78);
    border-bottom: 1px solid rgba(20, 32, 51, 0.06);
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 0;
}

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

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    font-family: "Sora", sans-serif;
    font-weight: 800;
    color: white;
    background: linear-gradient(135deg, var(--teal), var(--gold));
    box-shadow: var(--shadow);
}

.brand-copy {
    display: flex;
    flex-direction: column;
}

.brand-copy strong,
.site-nav a,
.hero-copy h1,
.section-header h2,
.sub-hero h1,
.auth-card h1,
.detail-hero h1,
.vip-tier-card h2 {
    font-family: "Sora", sans-serif;
}

.brand-copy small {
    color: var(--muted);
}

.site-nav,
.nav-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.site-nav a,
.ghost-link,
.primary-link {
    padding: 10px 14px;
    border-radius: 999px;
    transition: 180ms ease;
}

.site-nav a:hover,
.ghost-link:hover,
.primary-link:hover {
    background: rgba(20, 32, 51, 0.05);
}

.site-nav .is-active {
    background: rgba(15, 118, 110, 0.1);
    color: var(--teal);
}

.primary-link,
.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--teal), #18a7a0);
    color: white;
    border: none;
    border-radius: 999px;
    padding: 14px 22px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 20px 40px rgba(15, 118, 110, 0.22);
}

.ghost-link.filled {
    background: rgba(20, 32, 51, 0.06);
}

.hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
    padding: 64px 0 42px;
}

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

.hero-copy h1,
.sub-hero h1,
.detail-hero h1,
.dashboard-hero h1 {
    font-size: clamp(2.4rem, 5vw, 4.8rem);
    line-height: 1.05;
    margin: 0 0 16px;
}

.hero-text,
.sub-hero p,
.vip-copy p,
.detail-hero p {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.metric-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 34px;
}

.metric-card,
.story-card,
.notice-item,
.event-card,
.exchange-card,
.vip-tier-card,
.auth-card,
.apply-panel,
.dashboard-row,
.detail-hero,
.dashboard-hero,
.tier-chip {
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.metric-card {
    border-radius: var(--radius-lg);
    padding: 18px 20px;
}

.metric-card span,
.metric-card small,
.exchange-card small,
.event-card small,
.application-item p,
.footer-grid p,
.footer-grid a {
    color: var(--muted);
}

.metric-card strong {
    display: block;
    margin-top: 8px;
    font-size: 1.8rem;
}

.hero-art {
    position: relative;
    min-height: 560px;
    display: grid;
    place-items: center;
}

.hero-art img,
.vip-art img,
.vip-hero img {
    position: relative;
    z-index: 2;
    width: min(100%, 520px);
    filter: drop-shadow(0 30px 70px rgba(20, 32, 51, 0.16));
}

.hero-orb {
    position: absolute;
    inset: 14% 7% 8% 12%;
    border-radius: 48px;
    background:
        radial-gradient(circle at 30% 20%, rgba(255,255,255,0.9), transparent 36%),
        linear-gradient(135deg, rgba(15, 118, 110, 0.22), rgba(212, 160, 23, 0.22));
    transform: rotate(-10deg);
}

.floating-note {
    position: absolute;
    z-index: 3;
    padding: 12px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    font-weight: 700;
}

.note-top {
    top: 12%;
    left: 5%;
}

.note-bottom {
    bottom: 14%;
    right: 0;
}

.section {
    padding: 34px 0 24px;
}

.section-soft {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.2));
    border-top: 1px solid rgba(20, 32, 51, 0.05);
    border-bottom: 1px solid rgba(20, 32, 51, 0.05);
}

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

.section-header.left {
    justify-content: start;
}

.section-header h2 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 3rem);
}

.exchange-grid,
.event-grid,
.info-grid,
.story-grid,
.vip-tier-stack {
    display: grid;
    gap: 18px;
}

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

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

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

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

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

.story-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 22px;
}

.story-card,
.notice-item,
.event-card,
.exchange-card,
.vip-tier-card {
    border-radius: var(--radius-lg);
    padding: 24px;
}

.exchange-card,
.event-card,
.detail-hero {
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--card-from, #0f766e) 13%, white), color-mix(in srgb, var(--card-to, #d4a017) 11%, white)),
        var(--surface);
}

.exchange-card-top,
.notice-badge-row,
.apply-head,
.apply-actions,
.dashboard-row,
.dashboard-hero,
.cta-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.pill,
.mini-badge,
.application-status,
.status-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 700;
}

.pill {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--text);
    font-size: 12px;
}

.pill.neutral {
    background: rgba(20, 32, 51, 0.06);
}

.mini-badge,
.application-status,
.status-chip {
    padding: 7px 11px;
    background: rgba(15, 118, 110, 0.12);
    color: var(--teal);
    font-size: 12px;
}

.exchange-card strong,
.event-card strong,
.story-card strong,
.notice-item h3,
.notice-item h2,
.auth-card h1,
.apply-head h3 {
    font-size: 1.2rem;
    margin: 0;
}

.exchange-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

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

.exchange-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.exchange-meta span {
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(20, 32, 51, 0.05);
    color: var(--muted);
    font-size: 0.92rem;
}

.split-layout {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 22px;
    align-items: start;
}

.apply-panel {
    padding: 28px;
    border-radius: var(--radius-xl);
}

.apply-head {
    align-items: start;
    margin-bottom: 22px;
}

.apply-head p,
.micro-copy p,
.notice-body {
    color: var(--muted);
    line-height: 1.7;
}

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

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field-wide {
    grid-column: 1 / -1;
}

.field span {
    font-weight: 700;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    border: 1px solid rgba(20, 32, 51, 0.12);
    border-radius: 16px;
    padding: 14px 15px;
    background: rgba(255, 255, 255, 0.84);
    color: var(--text);
    font: inherit;
}

.field small {
    color: #be123c;
}

.apply-actions {
    margin-top: 20px;
}

.success-panel {
    text-align: center;
}

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

.success-grid > div {
    padding: 16px;
    border-radius: 18px;
    background: rgba(20, 32, 51, 0.04);
}

.notice-list {
    display: grid;
    gap: 16px;
}

.notice-item.long h2 {
    margin-top: 10px;
}

.notice-body {
    margin: 12px 0;
}

.vip-banner {
    display: grid;
    grid-template-columns: 1fr 0.7fr;
    gap: 24px;
    align-items: center;
}

.vip-tier-row {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.tier-chip {
    padding: 18px;
    border-radius: 20px;
}

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

.application-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid var(--line);
}

.subpage {
    padding: 42px 0 60px;
}

.sub-hero,
.dashboard-hero {
    margin-bottom: 26px;
}

.vip-hero {
    display: grid;
    grid-template-columns: 1fr 0.6fr;
    gap: 22px;
    align-items: center;
}

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

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

.timeline-step {
    padding: 22px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
}

.detail-hero {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 22px;
    padding: 30px;
    border-radius: var(--radius-xl);
}

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

.detail-stats > div {
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.7);
}

.cta-block {
    align-items: center;
    padding: 26px;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
}

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

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

.auth-shell .site-header {
    position: static;
}

.auth-page {
    width: min(calc(100% - 40px), 720px);
    margin: 0 auto;
    padding: 56px 0 72px;
}

.auth-card {
    padding: 34px;
    border-radius: var(--radius-xl);
}

.auth-card.wide {
    width: 100%;
}

.auth-form {
    display: grid;
    gap: 16px;
    margin: 20px 0;
}

.dev-login-panel {
    display: grid;
    gap: 10px;
    margin-top: 18px;
    padding: 14px;
    border: 1px dashed rgba(20, 32, 51, 0.22);
    background: #f8fafc;
}

.dev-login-panel > span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

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

.dev-login-actions form {
    display: grid;
}

.dev-login-button {
    display: grid;
    gap: 4px;
    min-height: 62px;
    padding: 12px 14px;
    border: 1px solid rgba(20, 32, 51, 0.12);
    background: #ffffff;
    color: #142033;
    font: inherit;
    font-weight: 900;
    text-align: left;
    cursor: pointer;
    transition: 180ms ease;
}

.dev-login-button small {
    color: var(--muted);
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
    letter-spacing: 0.08em;
}

.dev-login-button.user {
    border-color: rgba(15, 118, 110, 0.2);
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.12), #ffffff 68%);
}

.dev-login-button.admin {
    border-color: rgba(245, 158, 11, 0.26);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), #ffffff 68%);
}

.dev-login-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(20, 32, 51, 0.1);
}

.flash {
    padding: 14px 16px;
    border-radius: 16px;
    margin-top: 16px;
}

.flash.success {
    background: rgba(15, 118, 110, 0.1);
    color: var(--teal);
}

.flash.danger {
    background: rgba(190, 18, 60, 0.1);
    color: #be123c;
}

.dashboard-table {
    display: grid;
    gap: 10px;
}

.dashboard-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 0.8fr 1fr;
    padding: 18px 20px;
    border-radius: 18px;
}

.dashboard-row-head {
    font-weight: 700;
    background: rgba(20, 32, 51, 0.06);
    box-shadow: none;
}

.site-footer {
    margin-top: 42px;
    padding: 32px 0 48px;
    border-top: 1px solid rgba(20, 32, 51, 0.06);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.8fr;
    gap: 18px;
}

.footer-brand,
.footer-heading {
    font-family: "Sora", sans-serif;
    font-weight: 700;
    margin: 0 0 10px;
}

.footer-grid a {
    display: block;
    margin-bottom: 8px;
}

.menu-toggle {
    display: none;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.72);
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: var(--text);
}

@media (max-width: 1080px) {
    .hero,
    .split-layout,
    .vip-banner,
    .detail-hero,
    .vip-hero {
        grid-template-columns: 1fr;
    }

    .exchange-grid,
    .event-grid,
    .story-grid,
    .info-grid,
    .vip-tier-row,
    .timeline,
    .vip-tier-stack {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .site-nav,
    .nav-actions {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    body.nav-open .site-nav,
    body.nav-open .nav-actions {
        display: flex;
        position: absolute;
        top: 76px;
        left: 20px;
        right: 20px;
        flex-direction: column;
        align-items: stretch;
        padding: 18px;
        background: rgba(255, 252, 247, 0.96);
        border-radius: 24px;
        border: 1px solid var(--line);
        box-shadow: var(--shadow);
    }

    body.nav-open .nav-actions {
        top: 316px;
    }

    .metric-row,
    .form-grid,
    .success-grid,
    .dev-login-actions,
    .dashboard-row,
    .footer-grid,
    .exchange-grid,
    .event-grid,
    .story-grid,
    .info-grid,
    .vip-tier-row,
    .timeline,
    .vip-tier-stack {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 40px;
    }

    .hero-art {
        min-height: 360px;
    }

    .apply-actions,
    .section-header,
    .cta-block,
    .dashboard-hero,
    .topbar {
        align-items: start;
        flex-direction: column;
    }
}

.chat-home {
    --chat-bg: #071117;
    --chat-panel: rgba(11, 20, 27, 0.9);
    --chat-panel-strong: rgba(7, 16, 23, 0.96);
    --chat-line: rgba(148, 163, 184, 0.12);
    --chat-glow: rgba(52, 211, 153, 0.3);
    --chat-text: #dce8ef;
    --chat-muted: #7c95a6;
    --chat-accent: #34d399;
    --chat-accent-soft: rgba(52, 211, 153, 0.12);
    color: var(--chat-text);
    background:
        radial-gradient(circle at top left, rgba(52, 211, 153, 0.16), transparent 28%),
        radial-gradient(circle at 90% 0%, rgba(251, 191, 36, 0.14), transparent 22%),
        linear-gradient(180deg, #071117 0%, #0a141d 48%, #09121a 100%);
}

.chat-home .site-header {
    background: rgba(7, 17, 23, 0.82);
    border-bottom-color: rgba(148, 163, 184, 0.12);
}

.chat-home .brand-copy small,
.chat-home .site-nav a,
.chat-home .ghost-link,
.chat-home .terminal-meta,
.chat-home .chat-hint,
.chat-home .terminal-card p,
.chat-home .mini-feed-item small,
.chat-home .market-chip span,
.chat-home .pulse-stats small,
.chat-home .footer-grid p,
.chat-home .footer-grid a {
    color: var(--chat-muted);
}

.chat-home .site-nav .is-active,
.chat-home .site-nav a:hover,
.chat-home .ghost-link:hover,
.chat-home .primary-link:hover {
    background: rgba(52, 211, 153, 0.12);
    color: var(--chat-accent);
}

.chat-home .ghost-link.filled {
    background: rgba(255, 255, 255, 0.06);
}

.chat-home .primary-link,
.chat-home .primary-button {
    background: linear-gradient(135deg, #0f766e, #34d399);
    box-shadow: 0 18px 40px rgba(52, 211, 153, 0.18);
}

.chat-shell {
    padding: 36px 0 58px;
}

.chat-intro-card,
.terminal-card,
.chat-room,
.dashboard-chat-feed,
.dashboard-empty {
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: var(--chat-panel);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px);
}

.chat-intro-card {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 26px;
    align-items: center;
    border-radius: 30px;
    padding: 28px;
    margin-bottom: 24px;
}

.chat-intro-copy h1,
.chat-room-head h2,
.dashboard-chat-author,
.terminal-card-head strong,
.chat-home .footer-brand,
.chat-home .footer-heading,
.chat-home .dashboard-hero h1 {
    font-family: "Sora", sans-serif;
}

.chat-intro-copy h1 {
    margin: 0 0 14px;
    font-size: clamp(2.2rem, 4vw, 4rem);
    line-height: 1.08;
}

.chat-intro-copy p {
    margin: 0;
    color: var(--chat-muted);
    line-height: 1.85;
}

.chat-intro-art {
    display: grid;
    place-items: center;
    min-height: 240px;
}

.chat-intro-art img {
    width: min(100%, 420px);
    opacity: 0.9;
    filter: drop-shadow(0 20px 60px rgba(52, 211, 153, 0.16));
}

.chat-intro-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.terminal-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(52, 211, 153, 0.08);
    border: 1px solid rgba(52, 211, 153, 0.16);
    color: var(--chat-text);
    font-family: "JetBrains Mono", monospace;
    font-size: 0.92rem;
}

.chat-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr) 280px;
    gap: 18px;
    align-items: start;
}

.chat-sidebar {
    display: grid;
    gap: 16px;
}

.terminal-card {
    border-radius: 24px;
    padding: 18px;
}

.terminal-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-family: "JetBrains Mono", monospace;
    color: #d8fce7;
}

.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 18px rgba(52, 211, 153, 0.6);
}

.terminal-list {
    margin: 0;
    padding-left: 18px;
    color: var(--chat-muted);
    line-height: 1.8;
}

.mini-feed,
.presence-list {
    display: grid;
    gap: 10px;
}

.mini-feed-item {
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
}

.mini-feed-item strong {
    display: block;
    margin: 6px 0;
    color: var(--chat-text);
}

.mini-feed-badge {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
    font-size: 12px;
    font-weight: 700;
}

.market-chip-grid {
    display: grid;
    gap: 10px;
}

.market-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    font-family: "JetBrains Mono", monospace;
}

.market-chip strong,
.pulse-stats strong {
    color: #fbbf24;
}

.chat-room {
    padding: 20px;
    border-radius: 28px;
}

.chat-room-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.chat-room-head h2 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 3rem);
}

.chat-room-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-family: "JetBrains Mono", monospace;
}

.status-chip.live {
    background: rgba(52, 211, 153, 0.12);
    color: #6ee7b7;
}

.chat-log,
.dashboard-chat-feed {
    display: grid;
    gap: 6px;
    min-height: 520px;
    max-height: 520px;
    overflow-y: auto;
    padding: 14px;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(5, 12, 18, 0.96), rgba(10, 19, 28, 0.98)),
        rgba(7, 16, 23, 0.94);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.chat-line,
.dashboard-chat-line {
    display: grid;
    grid-template-columns: 56px 140px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.94rem;
    line-height: 1.65;
    padding: 4px 0;
}

.chat-line-time,
.dashboard-chat-time {
    color: #94a3b8;
}

.chat-line-author,
.dashboard-chat-author {
    color: #6ee7b7;
    word-break: break-word;
}

.chat-line-body,
.dashboard-chat-body {
    color: var(--chat-text);
    word-break: break-word;
}

.chat-line.is-system .chat-line-author,
.chat-line.is-system .chat-line-body {
    color: #fbbf24;
}

.chat-line.is-self .chat-line-author {
    color: #38bdf8;
}

.chat-composer {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    margin-top: 16px;
}

.composer-prefix {
    display: grid;
    gap: 2px;
    min-width: 150px;
    font-family: "JetBrains Mono", monospace;
    color: #6ee7b7;
}

.chat-composer input {
    width: 100%;
    border: 1px solid rgba(52, 211, 153, 0.22);
    border-radius: 16px;
    padding: 14px 16px;
    background: rgba(5, 12, 18, 0.92);
    color: var(--chat-text);
    font: inherit;
}

.chat-composer input::placeholder {
    color: #64748b;
}

.presence-item {
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    color: #d8fce7;
    font-family: "JetBrains Mono", monospace;
}

.nickname-form {
    display: grid;
    gap: 12px;
}

.field.compact span {
    color: var(--chat-muted);
    font-size: 0.9rem;
}

.field.compact input[disabled] {
    opacity: 0.7;
}

.vip-mini-art {
    width: 100%;
    max-width: 180px;
    margin: 0 auto 12px;
    opacity: 0.88;
}

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

.pulse-stats > div,
.dashboard-empty {
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
}

.chat-home .site-footer {
    border-top-color: rgba(148, 163, 184, 0.12);
}

.chat-home .footer-grid a:hover {
    color: #6ee7b7;
}

.dashboard-chat-feed {
    padding: 16px;
    border-radius: 24px;
}

.dashboard-empty {
    color: var(--chat-muted);
}

@media (max-width: 1180px) {
    .chat-layout {
        grid-template-columns: 1fr;
    }

    .chat-intro-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .chat-composer,
    .chat-room-head,
    .chat-line,
    .dashboard-chat-line {
        grid-template-columns: 1fr;
    }

    .chat-composer {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .chat-log,
    .dashboard-chat-feed {
        min-height: 420px;
        max-height: 420px;
    }

    .chat-home.nav-open .site-nav,
    .chat-home.nav-open .nav-actions {
        background: rgba(7, 17, 23, 0.98);
        border-color: rgba(148, 163, 184, 0.12);
    }
}

/* Korean community refresh */

:root {
    --bg: #edf1f5;
    --bg-soft: #f7f9fc;
    --surface: #ffffff;
    --surface-strong: #ffffff;
    --line: #d2d9e3;
    --text: #1f2b3a;
    --muted: #647487;
    --teal: #254d93;
    --gold: #ad7018;
    --orange: #c25e16;
    --shadow: none;
    --radius-xl: 0;
    --radius-lg: 0;
    --radius-md: 0;
    --shell: 1280px;
}

body {
    font-family: "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
    color: var(--text);
    background: #edf1f5;
}

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #cfd6df;
    backdrop-filter: none;
}

.utility-bar {
    background: #2c3748;
    border-bottom: 1px solid #1b2230;
    color: #d8e0ea;
    font-size: 12px;
}

.utility-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 32px;
    gap: 16px;
}

.utility-links,
.utility-user {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.utility-label {
    color: #ffffff;
    font-weight: 700;
}

.utility-links a,
.utility-user a {
    color: #d8e0ea;
}

.topbar {
    gap: 18px;
    padding: 12px 0;
}

.brand {
    gap: 10px;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
}

.brand-mark img {
    display: block;
    width: 100%;
    height: 100%;
}

.brand-copy strong,
.site-nav a,
.hero-copy h1,
.section-header h2,
.sub-hero h1,
.auth-card h1,
.detail-hero h1,
.vip-tier-card h2 {
    font-family: "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}

.brand-copy strong {
    font-size: 1.45rem;
    letter-spacing: -0.03em;
}

.brand-copy small {
    color: #667789;
    font-size: 12px;
}

.board-search {
    flex: 1;
    display: flex;
    justify-content: center;
}

.board-search input {
    width: min(100%, 540px);
    height: 38px;
    padding: 0 12px;
    border: 1px solid #b1bccb;
    background: #f7f9fc;
    color: #6d7b8a;
    font: inherit;
}

.main-nav {
    background: #254d93;
    border-top: 1px solid #1b3d73;
    border-bottom: 1px solid #16325f;
}

.nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 42px;
}

.site-nav,
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0;
}

.site-nav a,
.ghost-link,
.primary-link {
    border-radius: 0;
    transition: 160ms ease;
}

.site-nav a {
    padding: 11px 16px;
    color: #eff4fb;
    border-right: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 14px;
    font-weight: 700;
}

.site-nav a:hover,
.site-nav .is-active {
    background: #17386f;
    color: #ffffff;
}

.nav-actions {
    gap: 8px;
}

.ghost-link {
    padding: 9px 14px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #eff4fb;
}

.ghost-link:hover {
    background: rgba(255, 255, 255, 0.08);
}

.ghost-link.filled {
    background: #f7f9fc;
    border-color: #cfd6df;
    color: #23344a;
}

.primary-link,
.primary-button {
    padding: 10px 16px;
    border: 1px solid #183c75;
    background: #214c96;
    color: #ffffff;
    box-shadow: none;
    font-weight: 700;
}

.primary-link:hover,
.primary-button:hover {
    background: #173d7c;
    color: #ffffff;
}

.compact-button {
    width: 100%;
    justify-content: center;
}

.metric-card,
.story-card,
.notice-item,
.event-card,
.exchange-card,
.vip-tier-card,
.auth-card,
.apply-panel,
.dashboard-row,
.detail-hero,
.dashboard-hero,
.tier-chip,
.success-grid > div,
.application-item,
.timeline-step,
.detail-stats > div,
.cta-block,
.flash {
    border-radius: 0;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: none;
    backdrop-filter: none;
}

.field input,
.field select,
.field textarea,
.menu-toggle,
.exchange-meta span,
.pill,
.mini-badge,
.application-status,
.status-chip,
.dashboard-row,
.site-nav a,
.ghost-link,
.primary-link,
.primary-button {
    border-radius: 0;
}

.field input,
.field select,
.field textarea {
    background: #ffffff;
}

.pill,
.mini-badge,
.application-status,
.status-chip {
    box-shadow: none;
}

.menu-toggle {
    border: 1px solid #cfd6df;
    background: #ffffff;
}

.site-footer {
    margin-top: 28px;
    padding: 24px 0 34px;
    border-top: 1px solid #cfd6df;
    background: #eef2f6;
}

.community-footer {
    display: grid;
    gap: 10px;
}

.community-footer-brand strong {
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
}

.community-footer-brand p,
.community-footer-copy {
    margin: 0;
    color: #667789;
    font-size: 12px;
}

.community-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 13px;
    font-weight: 700;
}

.chat-home {
    color: var(--text);
    background: #edf1f5;
}

.chat-home .site-header {
    background: #ffffff;
    border-bottom: 1px solid #cfd6df;
}

.chat-home .brand-copy small {
    color: #667789;
}

.chat-home .site-nav a {
    color: #eff4fb;
}

.chat-home .site-nav a:hover,
.chat-home .site-nav .is-active {
    background: #17386f;
    color: #ffffff;
}

.chat-home .ghost-link {
    border-color: rgba(255, 255, 255, 0.3);
    color: #eff4fb;
}

.chat-home .ghost-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #eff4fb;
}

.chat-home .ghost-link.filled {
    background: #f7f9fc;
    border-color: #cfd6df;
    color: #23344a;
}

.chat-home .primary-link,
.chat-home .primary-button {
    background: #214c96;
    border: 1px solid #183c75;
    box-shadow: none;
    color: #ffffff;
}

.chat-home .primary-link:hover,
.chat-home .primary-button:hover {
    background: #173d7c;
    color: #ffffff;
}

.chat-home .site-footer {
    border-color: #cfd6df;
    background: #eef2f6;
}

.community-shell {
    padding: 10px 0 32px;
}

.board-box {
    border: 1px solid #cfd6df;
    background: #ffffff;
}

.community-ticker {
    display: flex;
    align-items: stretch;
    margin-bottom: 10px;
}

.ticker-label {
    display: inline-grid;
    place-items: center;
    width: 64px;
    background: #1f4f9c;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
}

.ticker-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 40px;
    padding: 0 12px;
    flex: 1;
}

.ticker-link {
    min-width: 0;
    color: #1f2b3a;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ticker-stats {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    color: #677789;
    font-size: 12px;
}

.ticker-stats span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ticker-stats em {
    font-style: normal;
    color: #7a8796;
}

.mini-market-value.is-rise,
.price-change.is-rise,
.overview-cell em.is-rise {
    color: #cf3b2f;
}

.mini-market-value.is-fall,
.price-change.is-fall,
.overview-cell em.is-fall {
    color: #1f67c1;
}

.mini-market-value.is-even,
.price-change.is-even,
.overview-cell em.is-even {
    color: #667789;
}

.community-layout {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr) 260px;
    gap: 10px;
    align-items: start;
}

.community-side,
.community-main {
    display: grid;
    gap: 10px;
}

.board-box-title {
    padding: 10px 12px;
    border-bottom: 1px solid #d7dde6;
    background: #f5f7fb;
    font-size: 13px;
    font-weight: 700;
}

.menu-list,
.bullet-list,
.side-note-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.menu-list li,
.bullet-list li,
.side-note-list li {
    padding: 9px 12px;
    border-top: 1px solid #eef2f6;
    font-size: 13px;
    line-height: 1.5;
}

.menu-list li:first-child,
.bullet-list li:first-child,
.side-note-list li:first-child {
    border-top: none;
}

.menu-list .is-active {
    background: #eef4ff;
    color: #17386f;
    font-weight: 700;
}

.side-note-list strong {
    color: #17386f;
}

.market-link-list {
    display: grid;
}

.market-link-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 10px 12px;
    border-top: 1px solid #eef2f6;
}

.market-link-item:first-child {
    border-top: none;
}

.market-link-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.market-link-copy strong {
    color: #1f2b3a;
    font-size: 13px;
}

.market-link-copy span {
    color: #738292;
    font-size: 11px;
}

.market-link-meta {
    display: grid;
    justify-items: end;
    gap: 3px;
    text-align: right;
}

.market-price {
    color: #1f2b3a;
    font-size: 13px;
}

.price-change {
    font-size: 12px;
    font-weight: 700;
}

.market-link-meta small {
    color: #738292;
    font-size: 11px;
}

.market-link-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-top: 1px solid #d7dde6;
    background: #f9fbff;
    color: #667789;
    font-size: 12px;
}

.market-link-foot strong {
    color: #1f2b3a;
}

.community-hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 14px;
    padding: 16px;
    align-items: center;
}

.hero-category {
    display: inline-block;
    margin-bottom: 10px;
    color: #2b5ba8;
    font-size: 12px;
    font-weight: 700;
}

.community-hero-copy h1 {
    margin: 0 0 10px;
    font-size: clamp(1.8rem, 3vw, 2.35rem);
    line-height: 1.28;
    letter-spacing: -0.03em;
}

.community-hero-copy p {
    margin: 0;
    color: #5f6f82;
    font-size: 14px;
    line-height: 1.7;
}

.community-hero-copy p strong {
    color: #17386f;
}

.hero-keypoints {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.hero-keypoints span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border: 1px solid #d7dde6;
    background: #f8fafc;
    color: #617183;
    font-size: 12px;
}

.hero-keypoints b {
    color: #17386f;
}

.community-hero-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.community-hero-art {
    border: 1px solid #d7dde6;
    background: #f7f9fc;
    padding: 10px;
}

.community-hero-art img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.overview-cell {
    padding: 12px;
    border-right: 1px solid #eef2f6;
}

.overview-cell:last-child {
    border-right: none;
}

.overview-cell small {
    display: block;
    margin-bottom: 6px;
    color: #6b7a8b;
    font-size: 12px;
}

.overview-cell strong {
    display: block;
    font-size: 18px;
}

.overview-cell em {
    display: inline-block;
    margin-top: 8px;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
}

.chat-board .board-headline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px;
    border-bottom: 1px solid #d7dde6;
}

.board-title-group strong {
    display: block;
    margin-bottom: 3px;
    font-size: 18px;
}

.board-title-group span {
    color: #6c7b8b;
    font-size: 12px;
}

.board-tabs {
    display: flex;
    align-items: center;
}

.board-tabs span {
    padding: 8px 10px;
    border: 1px solid #d7dde6;
    border-left: none;
    background: #ffffff;
    font-size: 12px;
}

.board-tabs span:first-child {
    border-left: 1px solid #d7dde6;
}

.board-tabs .is-active {
    background: #254d93;
    border-color: #254d93;
    color: #ffffff;
}

.board-meta-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px 12px;
    border-bottom: 1px solid #eef2f6;
    background: #fafbfd;
    color: #647487;
    font-size: 12px;
}

.status-chip {
    padding: 4px 8px;
    background: #e7eefb;
    color: #214c96;
}

.status-chip.live {
    background: #e7eefb;
    color: #214c96;
}

.board-table,
.board-table-head {
    display: grid;
    grid-template-columns: 78px 140px minmax(0, 1fr);
    column-gap: 12px;
    align-items: start;
}

.board-table-head {
    padding: 0 12px;
    border-bottom: 1px solid #d7dde6;
    background: #f4f6fa;
    color: #435161;
    font-size: 12px;
    font-weight: 700;
}

.board-table-head span {
    padding: 8px 0;
}

.chat-log {
    min-height: 520px;
    max-height: 520px;
    padding: 0;
    background: #ffffff;
    border: none;
}

.chat-line {
    padding: 8px 12px;
    border-bottom: 1px solid #f1f3f7;
    font-family: "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
    font-size: 13px;
    line-height: 1.55;
}

.chat-line-time {
    color: #748293;
}

.chat-line-author {
    color: #1e3d74;
    font-weight: 700;
}

.chat-line-body {
    color: #1f2b3a;
}

.chat-line.is-system {
    background: #fffaf1;
}

.chat-line.is-system .chat-line-author,
.chat-line.is-system .chat-line-body {
    color: #ab6d11;
}

.chat-line.is-self {
    background: #f7fbff;
}

.chat-line.is-self .chat-line-author {
    color: #0a67b2;
}

.board-composer {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr) 88px;
    gap: 10px;
    align-items: center;
    margin-top: 0;
    padding: 10px 12px;
    border-top: 1px solid #d7dde6;
    background: #f6f8fb;
}

.composer-prefix {
    display: grid;
    gap: 4px;
    min-width: 0;
    color: #5a6b7e;
    font-family: "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
    font-size: 12px;
}

.composer-prefix strong {
    color: #214c96;
    font-size: 13px;
}

.chat-composer input {
    padding: 10px 12px;
    border: 1px solid #b9c3d0;
    background: #ffffff;
    color: #1f2b3a;
}

.chat-composer input::placeholder {
    color: #798797;
}

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

.board-list {
    display: grid;
}

.board-list-row {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr) 92px;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-top: 1px solid #eef2f6;
    font-size: 13px;
}

.board-list-row:first-child {
    border-top: none;
}

.board-list-row strong {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.board-list-row span:last-child {
    color: #778493;
    font-size: 12px;
    text-align: right;
}

.row-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 6px;
    border: 1px solid #d9e3f4;
    background: #eef3fb;
    color: #1f4f9c;
    font-size: 11px;
    font-weight: 700;
}

.row-badge.emphasis {
    border-color: #f0dbc2;
    background: #fff4e8;
    color: #a66116;
}

.row-badge.news {
    border-color: #d9e3f4;
    background: #eef3fb;
    color: #1f4f9c;
}

.row-badge.economy {
    border-color: #d8eadc;
    background: #eef9f1;
    color: #2f6d44;
}

.news-feed-grid {
    margin-top: 10px;
}

.news-box-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.news-box-title small {
    color: #6f7f90;
    font-size: 11px;
    font-weight: 600;
}

.news-row strong {
    white-space: normal;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-height: 1.45;
}

.nickname-form {
    padding: 12px;
}

.field.compact span {
    color: #617183;
    font-size: 12px;
    font-weight: 700;
}

.login-meta {
    padding: 0 12px 12px;
    color: #69798b;
    font-size: 12px;
}

.login-meta strong {
    color: #1e3d74;
}

.login-shortcut {
    display: flex;
    gap: 8px;
    padding: 0 12px 12px;
}

.login-shortcut a {
    flex: 1;
    padding: 8px 0;
    border: 1px solid #cfd6df;
    background: #fafbfd;
    text-align: center;
    font-size: 13px;
}

.presence-list {
    display: grid;
    gap: 0;
    max-height: 260px;
    overflow-y: auto;
}

.presence-item {
    padding: 8px 12px;
    border-top: 1px solid #eef2f6;
    background: #ffffff;
    color: #233142;
    font-family: "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
    font-size: 13px;
}

.presence-item:first-child {
    border-top: none;
}

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

.stats-grid > div {
    padding: 12px;
    border-top: 1px solid #eef2f6;
    border-right: 1px solid #eef2f6;
}

.stats-grid > div:nth-child(-n+2) {
    border-top: none;
}

.stats-grid > div:nth-child(2n) {
    border-right: none;
}

.stats-grid small {
    display: block;
    margin-bottom: 6px;
    color: #6b7a8b;
    font-size: 12px;
}

.stats-grid strong {
    font-size: 18px;
}

.side-banner img {
    width: 100%;
    height: 220px;
    border-top: 1px solid #eef2f6;
    object-fit: cover;
}

@media (max-width: 1180px) {
    .community-layout {
        grid-template-columns: 1fr;
    }

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

    .community-hero,
    .community-board-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    body.nav-open .site-nav,
    body.nav-open .nav-actions,
    .chat-home.nav-open .site-nav,
    .chat-home.nav-open .nav-actions {
        position: absolute;
        left: 20px;
        right: 20px;
        background: #ffffff;
        border: 1px solid #cfd6df;
        border-radius: 0;
        box-shadow: none;
    }

    body.nav-open .site-nav,
    .chat-home.nav-open .site-nav {
        top: 74px;
    }

    body.nav-open .nav-actions,
    .chat-home.nav-open .nav-actions {
        top: 292px;
    }

    .utility-inner,
    .topbar,
    .nav-row,
    .ticker-body,
    .chat-board .board-headline {
        align-items: flex-start;
        flex-direction: column;
    }

    .board-search {
        width: 100%;
        justify-content: stretch;
    }

    .board-search input {
        width: 100%;
    }

    .community-side {
        grid-template-columns: 1fr;
    }

    .overview-grid,
    .community-board-grid {
        grid-template-columns: 1fr;
    }

    .board-table,
    .board-table-head {
        grid-template-columns: 64px 100px minmax(0, 1fr);
    }

    .board-composer {
        grid-template-columns: 1fr;
    }

    .chat-log {
        min-height: 420px;
        max-height: 420px;
    }

    .board-list-row {
        grid-template-columns: 72px minmax(0, 1fr);
    }

    .board-list-row span:last-child {
        grid-column: 2;
        text-align: left;
    }

    .nav-actions {
        width: 100%;
        gap: 6px;
    }

    .nav-actions a {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 560px) {
    .ticker-body {
        padding: 10px 12px;
    }

    .ticker-stats,
    .hero-keypoints,
    .community-hero-links,
    .community-footer-links {
        gap: 8px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid > div {
        border-right: none;
    }

    .stats-grid > div:nth-child(2) {
        border-top: 1px solid #eef2f6;
    }

    .board-table,
    .board-table-head {
        grid-template-columns: 56px 90px minmax(0, 1fr);
        column-gap: 8px;
    }

    .chat-line {
        padding: 8px 10px;
    }
}

body.community-body {
    background: #e8edf4;
    color: #1f2b3a;
}

.community-body .shell {
    width: min(calc(100% - 24px), 1320px);
}

.community-body .site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: #ffffff;
    border-bottom: 1px solid #cfd6df;
}

.community-body .brand-mark,
.community-body .site-nav a,
.community-body .ghost-link,
.community-body .primary-link,
.community-body .primary-button,
.community-body .header-search-button,
.community-body .topic-status,
.community-body .topic-badge {
    border-radius: 0;
}

.community-body .brand-mark {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
    box-shadow: none;
}

.community-body .brand-copy strong {
    font-size: 1.5rem;
}

.community-body .brand-copy small {
    font-size: 12px;
}

.community-body .board-search {
    gap: 0;
}

.community-body .board-search input {
    max-width: 560px;
    border-right: none;
    background: #f7f9fc;
}

.header-search-button {
    height: 38px;
    padding: 0 18px;
    border: 1px solid #16325f;
    background: #254d93;
    color: #ffffff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.community-body .main-nav {
    box-shadow: none;
}

.spot-major-nav {
    border-top: 1px solid #d8e0ea;
    border-bottom: 1px solid #d8e0ea;
    background: #f7f9fc;
}

.spot-major-shell {
    display: flex;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 0;
    overflow-x: auto;
}

.spot-major-label {
    flex: 0 0 auto;
    padding: 10px 14px;
    border-right: 1px solid #d8e0ea;
    background: #eef3fb;
    color: #214c96;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.spot-major-nav a {
    flex: 0 0 auto;
    display: grid;
    gap: 3px;
    min-width: 190px;
    padding: 10px 14px;
    border-right: 1px solid #e4eaf2;
    color: #223244;
}

.spot-major-nav a strong {
    font-size: 13px;
}

.spot-major-nav a span {
    color: #6e7d8f;
    font-size: 11px;
    white-space: nowrap;
}

.spot-major-nav a:hover,
.spot-major-nav a.is-active {
    background: #ffffff;
    color: #17386f;
}

.spot-major-nav a.is-active span {
    color: #17386f;
}

.community-body .primary-link,
.community-body .primary-button {
    padding: 11px 16px;
    background: #214c96;
    box-shadow: none;
}

.community-body .primary-link:hover,
.community-body .primary-button:hover,
.header-search-button:hover {
    background: #16386f;
}

.community-body .ghost-link {
    box-shadow: none;
}

.community-body .site-footer {
    margin-top: 16px;
    background: #ffffff;
    border-top: 1px solid #cfd6df;
}

.community-body .community-footer {
    display: grid;
    gap: 10px;
    padding: 18px 0 26px;
}

.community-body .community-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.community-body .community-footer-copy {
    margin: 0;
    color: #68798b;
    font-size: 12px;
}

.portal-shell {
    padding: 12px 0 24px;
}

.portal-breaking-strip {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    margin-bottom: 12px;
    background: #ffffff;
    border: 1px solid #cfd6df;
    font-size: 13px;
}

.portal-breaking-strip strong {
    color: #214c96;
    white-space: nowrap;
}

.portal-breaking-strip a {
    min-width: 0;
    color: #243446;
}

.portal-layout {
    display: grid;
    grid-template-columns: 208px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.subpage-portal .portal-layout {
    grid-template-columns: 208px minmax(0, 1fr) 258px;
}

.portal-main,
.portal-side-stack,
.chat-side-wrap {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.portal-sidebar {
    display: grid;
    gap: 12px;
}

.portal-panel,
.portal-card {
    background: #ffffff;
    border: 1px solid #cfd6df;
}

.portal-panel-title,
.portal-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-bottom: 1px solid #dfe5ec;
}

.portal-panel-title,
.portal-card-head strong {
    color: #1c315d;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.portal-card-head span,
.portal-card-head a {
    color: #69798b;
    font-size: 12px;
}

.portal-card-head a:hover {
    color: #214c96;
}

.portal-menu-list {
    display: grid;
}

.portal-menu-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-top: 1px solid #eef2f6;
}

.portal-menu-list a:first-child {
    border-top: none;
}

.portal-menu-list a:hover,
.portal-menu-list a.is-active {
    background: #f4f7fc;
}

.portal-menu-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.portal-menu-copy strong {
    font-size: 13px;
}

.portal-menu-copy small {
    color: #748395;
    font-size: 11px;
}

.portal-menu-meta {
    display: grid;
    justify-items: end;
    gap: 2px;
    text-align: right;
}

.portal-menu-meta em {
    color: #214c96;
    font-size: 11px;
    font-style: normal;
}

.portal-menu-meta b {
    color: #627385;
    font-size: 11px;
}

.portal-panel.guide p {
    margin: 0;
    padding: 10px 12px 0;
    color: #516274;
    font-size: 12px;
    line-height: 1.7;
}

.portal-panel.guide p:last-child {
    padding-bottom: 12px;
}

.portal-grid-top {
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.92fr;
    gap: 12px;
}

.portal-grid-middle,
.portal-grid-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 258px;
    gap: 12px;
}

.portal-feature-link,
.board-feature-link {
    display: block;
    padding: 16px;
    border-bottom: 1px solid #eef2f6;
    background: #fbfcfe;
}

.portal-feature-link h1,
.board-feature-link h2,
.topic-detail-card h1 {
    margin: 10px 0 8px;
    font-size: 28px;
    line-height: 1.25;
    letter-spacing: -0.03em;
}

.portal-feature-link p,
.board-feature-link p,
.topic-detail-summary,
.topic-row-main p,
.detail-benefit-grid p,
.flow-guide-grid p {
    margin: 0;
    color: #55667a;
    line-height: 1.7;
}

.portal-mini-list,
.portal-ordered-list,
.portal-link-list,
.portal-board-links,
.portal-topic-grid,
.portal-stat-grid,
.board-topic-list,
.faq-strip-list,
.exchange-tier-list {
    display: grid;
}

.portal-mini-list a,
.portal-link-list a,
.portal-board-links a,
.portal-topic-grid a {
    display: block;
    padding: 10px 12px;
    border-top: 1px solid #eef2f6;
}

.portal-mini-list a:first-child,
.portal-link-list a:first-child,
.portal-board-links a:first-child,
.portal-topic-grid a:first-child {
    border-top: none;
}

.portal-mini-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.portal-mini-list strong,
.portal-ordered-list strong,
.portal-link-list strong,
.portal-topic-grid strong {
    display: block;
    font-size: 14px;
}

.portal-mini-list span,
.portal-ordered-list span,
.portal-link-list span,
.portal-topic-grid p {
    color: #68798b;
    font-size: 12px;
}

.portal-ordered-list a {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
    border-top: 1px solid #eef2f6;
}

.portal-ordered-list a:first-child {
    border-top: none;
}

.portal-ordered-list b {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    background: #f0f4fb;
    color: #214c96;
    font-size: 12px;
}

.portal-link-list a,
.portal-topic-grid a {
    display: grid;
    gap: 5px;
}

.portal-link-list.subtle a strong,
.portal-topic-grid strong {
    font-size: 13px;
}

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

.portal-topic-grid a:nth-child(odd) {
    border-right: 1px solid #eef2f6;
}

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

.portal-stat-grid > div {
    padding: 12px;
    border-top: 1px solid #eef2f6;
    border-right: 1px solid #eef2f6;
}

.portal-stat-grid > div:nth-child(-n + 2) {
    border-top: none;
}

.portal-stat-grid > div:nth-child(2n) {
    border-right: none;
}

.portal-stat-grid small,
.detail-benefit-grid small,
.topic-fact-grid small,
.board-hero-stats small,
.error-meta span {
    display: block;
    color: #728295;
    font-size: 11px;
}

.portal-stat-grid strong,
.board-hero-stats strong,
.topic-fact-grid strong,
.detail-benefit-grid strong,
.flow-guide-grid strong,
.error-meta strong {
    display: block;
    margin-top: 4px;
    font-size: 17px;
}

.portal-stat-grid span {
    display: block;
    margin-top: 6px;
    color: #68798b;
    font-size: 12px;
    line-height: 1.55;
}

.portal-table {
    display: grid;
}

.portal-table-row {
    display: grid;
    grid-template-columns: 92px minmax(0, 1.2fr) minmax(0, 1fr) 84px;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    border-top: 1px solid #eef2f6;
}

.portal-table-row.heading {
    border-top: none;
    background: #f4f6fa;
    color: #4f5e70;
    font-size: 12px;
    font-weight: 700;
}

.portal-table-row strong {
    min-width: 0;
    font-size: 13px;
}

.portal-table-row em {
    color: #667789;
    font-size: 12px;
    font-style: normal;
}

.topic-badge,
.topic-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-width: 56px;
    padding: 5px 8px;
    border: 1px solid #d4dde8;
    background: #f5f8fc;
    color: #345786;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.topic-status.tone-blue {
    background: #edf4ff;
    border-color: #c8daf8;
    color: #214c96;
}

.topic-status.tone-red {
    background: #fff0f0;
    border-color: #f4cccc;
    color: #b42828;
}

.topic-status.tone-emerald {
    background: #edf8f3;
    border-color: #c7e7d7;
    color: #1f7a53;
}

.topic-status.tone-gold {
    background: #fff8ea;
    border-color: #ecd59e;
    color: #9a6a13;
}

.topic-status.tone-indigo {
    background: #eef1ff;
    border-color: #ccd5ff;
    color: #4058bf;
}

.topic-status.tone-violet {
    background: #f4efff;
    border-color: #dccff7;
    color: #6940b5;
}

.topic-status.tone-slate {
    background: #f5f7fa;
    border-color: #d9e0e8;
    color: #566476;
}

.board-hero-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 18px;
}

.board-hero-copy {
    padding: 18px;
}

.board-hero-copy h1 {
    margin: 10px 0 10px;
    font-size: 32px;
    letter-spacing: -0.04em;
}

.board-hero-copy p {
    margin: 0;
    color: #55667a;
    line-height: 1.75;
}

.board-hero-code {
    display: inline-block;
    padding: 5px 8px;
    background: #1f4f9c;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
}

.board-hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-left: 1px solid #e5ebf2;
}

.board-hero-stats > div {
    padding: 16px;
    border-bottom: 1px solid #eef2f6;
}

.board-hero-stats > div:nth-child(odd) {
    border-right: 1px solid #eef2f6;
}

.board-topic-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 228px;
    gap: 16px;
    padding: 14px 16px;
    border-top: 1px solid #eef2f6;
}

.board-topic-row:first-child {
    border-top: none;
}

.topic-row-main {
    display: grid;
    gap: 7px;
}

.topic-row-main strong {
    font-size: 16px;
    line-height: 1.45;
}

.topic-row-meta {
    display: grid;
    align-content: center;
    justify-items: end;
    gap: 7px;
    color: #6a7b8e;
    font-size: 12px;
    text-align: right;
}

.topic-detail-card h1 {
    padding: 0 18px;
}

.topic-detail-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 18px 18px 0;
}

.topic-detail-summary {
    padding: 0 18px 16px;
}

.topic-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 18px 14px;
    border-bottom: 1px solid #eef2f6;
    color: #68798b;
    font-size: 12px;
}

.topic-fact-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    padding: 18px;
    background: #f7f9fc;
    border-bottom: 1px solid #eef2f6;
}

.topic-fact-grid > div {
    padding: 12px;
    border: 1px solid #dde5ee;
    background: #ffffff;
}

.topic-detail-body {
    padding: 18px 18px 8px;
}

.topic-detail-body p {
    margin: 0 0 16px;
    line-height: 1.9;
}

.topic-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 18px 18px;
}

.ranking-table {
    display: grid;
}

.ranking-row {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-top: 1px solid #eef2f6;
}

.ranking-row.heading {
    border-top: none;
    background: #f4f6fa;
    color: #4f5e70;
    font-size: 12px;
    font-weight: 700;
}

.ranking-row > span:first-child {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    background: #f2f5fb;
    color: #1f4f9c;
    font-size: 11px;
    font-weight: 800;
}

.ranking-row.heading > span:first-child {
    width: auto;
    height: auto;
    background: transparent;
}

.ranking-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.ranking-copy strong {
    font-size: 13px;
}

.ranking-copy small {
    color: #718194;
    font-size: 11px;
}

.ranking-row em {
    color: #214c96;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    text-align: right;
}

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

.chat-portal-card .portal-card-head {
    padding-bottom: 12px;
}

.chat-inline-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: #657588;
    font-size: 12px;
}

.chat-inline-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.chat-inline-meta em {
    color: #7b8b9a;
    font-style: normal;
}

.chat-portal-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 226px;
    gap: 12px;
    padding: 0 12px 12px;
}

.chat-board-wrap,
.chat-side-wrap {
    min-width: 0;
}

.chat-board-wrap {
    border: 1px solid #d8e0ea;
}

.portal-table-head {
    border-bottom: 1px solid #d7dde6;
    background: #f4f6fa;
}

.chat-log.board-log {
    min-height: 520px;
    max-height: 520px;
}

.board-composer.portal-composer {
    border-top: 1px solid #d7dde6;
}

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

.detail-benefit-grid article,
.flow-guide-grid article {
    padding: 14px;
    border: 1px solid #dee6ef;
    background: #fafbfd;
}

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

.flow-guide-grid b {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    margin-bottom: 10px;
    background: #214c96;
    color: #ffffff;
    font-size: 12px;
}

.exchange-tier-row {
    display: grid;
    gap: 4px;
    padding: 10px 12px;
    border-top: 1px solid #eef2f6;
}

.exchange-tier-row:first-child {
    border-top: none;
}

.exchange-tier-row strong {
    font-size: 13px;
}

.exchange-tier-row span {
    color: #6f8092;
    font-size: 12px;
}

.faq-strip-list div {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 12px;
    padding: 12px 16px;
    border-top: 1px solid #eef2f6;
}

.faq-strip-list div:first-child {
    border-top: none;
}

.faq-strip-list b {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    background: #f0f4fb;
    color: #214c96;
    font-size: 11px;
}

.faq-strip-list p {
    margin: 0;
    line-height: 1.75;
}

.empty-discover-card {
    padding-bottom: 8px;
}

.error-card {
    max-width: 860px;
    margin: 40px auto;
}

.error-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 18px;
    background: #f7f9fc;
    border-top: 1px solid #eef2f6;
}

@media (max-width: 1220px) {
    .portal-layout,
    .subpage-portal .portal-layout,
    .portal-grid-top,
    .portal-grid-middle,
    .portal-grid-bottom,
    .ranking-board-grid,
    .chat-portal-grid,
    .detail-benefit-grid,
    .flow-guide-grid {
        grid-template-columns: 1fr;
    }

    .board-hero-card,
    .board-topic-row {
        grid-template-columns: 1fr;
    }

    .board-hero-stats {
        border-left: none;
        border-top: 1px solid #e5ebf2;
    }

    .portal-topic-grid a:nth-child(odd) {
        border-right: none;
    }
}

@media (max-width: 820px) {
    .community-body .topbar,
    .community-body .nav-row {
        align-items: flex-start;
    }

    .community-body .board-search {
        width: 100%;
    }

    .community-body .board-search input {
        width: 100%;
        max-width: none;
    }

    .portal-breaking-strip {
        overflow-x: auto;
        white-space: nowrap;
    }

    .portal-card-head,
    .chat-inline-meta,
    .topic-detail-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .portal-table-row,
    .board-table,
    .board-table-head {
        grid-template-columns: 72px 98px minmax(0, 1fr);
    }

    .portal-table-row {
        grid-template-columns: 82px minmax(0, 1fr);
    }

    .portal-table-row em,
    .portal-table-row span:last-child {
        grid-column: 2;
    }

    .topic-fact-grid,
    .portal-stat-grid,
    .error-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .community-body .shell {
        width: min(calc(100% - 16px), 1320px);
    }

    .community-body .utility-inner,
    .community-body .topbar,
    .community-body .nav-row {
        gap: 10px;
    }

    .community-body .brand-copy strong {
        font-size: 1.28rem;
    }

    .board-hero-copy h1,
    .portal-feature-link h1,
    .board-feature-link h2,
    .topic-detail-card h1 {
        font-size: 24px;
    }

    .topic-fact-grid,
    .portal-stat-grid,
    .error-meta {
        grid-template-columns: 1fr;
    }

    .portal-stat-grid > div,
    .board-hero-stats > div {
        border-right: none;
    }

    .board-topic-row,
    .portal-ordered-list a,
    .faq-strip-list div {
        gap: 10px;
    }

    .chat-log.board-log {
        min-height: 420px;
        max-height: 420px;
    }
}

.portal-priority-stack {
    display: grid;
    gap: 10px;
    margin-bottom: 10px;
}

.portal-priority-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.14fr) minmax(380px, 0.86fr);
    gap: 12px;
    margin-bottom: 12px;
}

.market-terminal-card {
    min-width: 0;
}

.market-terminal-card-home .portal-card-head,
.priority-chat-card-home .portal-card-head {
    padding-bottom: 8px;
}

.chart-terminal-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #647588;
    font-size: 12px;
}

.market-priority-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-bottom: 1px solid #e4ebf2;
}

.market-terminal-card-home .market-priority-stat {
    gap: 3px;
    padding: 10px 12px;
}

.market-priority-stat {
    display: grid;
    gap: 5px;
    padding: 14px 16px;
    border-right: 1px solid #eef2f6;
}

.market-priority-stat:last-child {
    border-right: none;
}

.market-priority-stat small,
.market-chart-current small,
.pair-selector-label span,
.market-chart-credit,
.market-chart-credit a {
    color: #748396;
    font-size: 11px;
}

.market-priority-stat strong {
    font-size: 18px;
    line-height: 1.3;
}

.market-terminal-card-home .market-priority-stat strong {
    font-size: 15px;
}

.market-priority-stat span,
.market-priority-stat em {
    font-size: 12px;
    font-style: normal;
}

.market-priority-stat .is-rise,
.market-chart-current .is-rise {
    color: #cf3b2f;
}

.market-priority-stat .is-fall,
.market-chart-current .is-fall {
    color: #1f67c1;
}

.market-priority-stat .is-even,
.market-chart-current .is-even {
    color: #667789;
}

.pair-selector-row {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 12px 14px;
    border-bottom: 1px solid #e4ebf2;
}

.market-terminal-card-home .pair-selector-row {
    gap: 10px;
    padding: 8px 12px;
}

.pair-selector-label {
    display: grid;
    gap: 4px;
}

.pair-selector-label strong {
    color: #1e396c;
    font-size: 13px;
}

.pair-selector {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
}

.pair-selector-shell {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    gap: 8px;
    align-items: center;
    min-width: 0;
}

.pair-selector-scrollable {
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #9fb7dc #eef3f9;
}

.pair-selector-scrollable::-webkit-scrollbar {
    height: 8px;
}

.pair-selector-scrollable::-webkit-scrollbar-track {
    background: #eef3f9;
}

.pair-selector-scrollable::-webkit-scrollbar-thumb {
    background: #9fb7dc;
}

.pair-scroll-button {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid #d3dce7;
    background: #f6f9fd;
    color: #214c96;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.pair-selector button,
.pair-selector a,
.market-side-pair {
    appearance: none;
    border: 1px solid #d3dce7;
    background: #ffffff;
    color: #223244;
    cursor: pointer;
    font: inherit;
}

.pair-selector button,
.pair-selector a {
    display: grid;
    gap: 3px;
    flex: 0 0 auto;
    min-width: 108px;
    padding: 9px 12px;
    text-align: left;
}

.pair-selector button strong,
.pair-selector a strong {
    font-size: 13px;
}

.pair-selector button span,
.pair-selector a span {
    font-size: 12px;
}

.pair-selector button:hover,
.pair-selector button.is-active,
.pair-selector a:hover,
.pair-selector a.is-active,
.market-side-pair:hover,
.market-side-pair.is-active {
    background: #f1f6fe;
    border-color: #9fb7dc;
}

.pair-scroll-button:hover {
    background: #edf4fe;
    border-color: #9fb7dc;
}

.market-chart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 248px;
    gap: 12px;
    padding: 14px;
}

.market-chart-layout-home {
    grid-template-columns: 1fr;
    align-items: start;
    padding: 10px 12px 12px;
}

.market-chart-stage,
.market-chart-side {
    min-width: 0;
}

.market-chart-stage {
    display: grid;
    gap: 10px;
}

.market-chart-summary {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.market-chart-summary-home {
    align-items: center;
}

.market-chart-current {
    display: grid;
    gap: 4px;
}

.market-terminal-card-home .market-chart-current {
    gap: 2px;
}

.market-chart-current strong {
    font-size: 30px;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.market-terminal-card-home .market-chart-current strong {
    font-size: 22px;
}

.market-chart-current span {
    font-size: 14px;
    font-weight: 700;
}

.market-chart-meta-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    color: #697a8d;
    font-size: 12px;
}

.market-chart-meta-strip span {
    padding: 5px 8px;
    border: 1px solid #e1e7ef;
    background: #f7f9fc;
}

.market-chart-container {
    width: 100%;
    height: 360px;
    border: 1px solid #dbe3ed;
    background: #ffffff;
}

.market-terminal-card-home .market-chart-container {
    height: 190px;
}

.market-chart-credit {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    line-height: 1.5;
}

.market-terminal-card-home .market-chart-credit {
    justify-content: flex-start;
    gap: 16px;
}

.market-chart-credit a {
    text-decoration: underline;
}

.market-chart-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 1px solid #dbe3ed;
}

.market-chart-facts-inline {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 8px;
}

.market-chart-facts > div {
    padding: 12px;
    border-right: 1px solid #edf1f6;
    border-bottom: 1px solid #edf1f6;
    background: #fafbfd;
}

.market-chart-facts-inline > div {
    padding: 8px 10px;
}

.market-chart-facts > div:nth-child(2n) {
    border-right: none;
}

.market-chart-facts-inline > div:nth-child(2n) {
    border-right: 1px solid #edf1f6;
}

.market-chart-facts-inline > div:nth-child(4n) {
    border-right: none;
}

.market-chart-facts > div:nth-last-child(-n + 2) {
    border-bottom: none;
}

.market-chart-facts-inline > div:nth-last-child(-n + 4) {
    border-bottom: none;
}

.market-chart-facts strong {
    margin-top: 5px;
    font-size: 16px;
}

.market-chart-facts-inline strong {
    font-size: 13px;
}

.market-side-panel .portal-link-list {
    border-top: none;
}

.market-side-pair {
    display: grid;
    gap: 5px;
    width: 100%;
    padding: 10px 12px;
    border-top: 1px solid #eef2f6;
    text-align: left;
}

.market-side-pair:first-child {
    border-top: none;
}

.market-side-pair strong {
    font-size: 13px;
}

.market-side-pair span:last-child {
    color: #6d7d8f;
    font-size: 12px;
}

.priority-chat-card .chat-portal-grid {
    grid-template-columns: minmax(0, 1fr) 220px;
}

.priority-chat-card .chat-log.board-log {
    min-height: 470px;
    max-height: 470px;
}

.chat-portal-grid-home {
    grid-template-columns: minmax(0, 1fr) 280px;
}

.priority-chat-card-home .chat-log.board-log {
    min-height: 340px;
    max-height: 340px;
}

.priority-chat-card-home .chat-side-wrap {
    display: grid;
    gap: 12px;
}

@media (max-width: 1380px) {
    .portal-priority-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1220px) {
    .market-chart-layout,
    .priority-chat-card .chat-portal-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .market-priority-strip,
    .pair-selector-row,
    .market-chart-facts,
    .market-chart-facts-inline {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pair-selector-row {
        grid-template-columns: 1fr;
    }

    .pair-selector-shell {
        grid-template-columns: 30px minmax(0, 1fr) 30px;
    }

    .market-chart-summary,
    .market-chart-credit {
        align-items: flex-start;
        flex-direction: column;
    }

    .market-chart-meta-strip {
        justify-content: flex-start;
    }

    .market-chart-facts-inline > div:nth-child(2n) {
        border-right: none;
    }
}

@media (max-width: 560px) {
    .market-priority-strip,
    .market-chart-facts,
    .market-chart-facts-inline {
        grid-template-columns: 1fr;
    }

    .market-priority-stat,
    .market-chart-facts > div {
        border-right: none;
    }

    .market-chart-facts-inline > div {
        border-right: none;
    }

    .market-priority-stat {
        border-bottom: 1px solid #eef2f6;
    }

    .market-priority-stat:last-child {
        border-bottom: none;
    }

    .market-chart-current strong {
        font-size: 24px;
    }

    .market-chart-container {
        height: 300px;
    }

    .market-terminal-card-home .market-chart-container {
        height: 170px;
    }
}

.portal-inline-note {
    margin-top: 10px;
    color: #6a7b8e;
    font-size: 12px;
    line-height: 1.6;
}

.service-promo-section {
    margin-bottom: 10px;
}

.service-promo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 0 12px 12px;
}

.service-promo-card,
.sidebar-promo-card,
.vertical-tower-card,
.admin-slot-item {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, var(--promo-from, #1d4ed8), var(--promo-to, #0f766e));
}

.service-promo-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 140px;
    gap: 14px;
    min-height: 190px;
    padding: 18px;
}

.service-promo-card.no-image {
    grid-template-columns: 1fr;
}

.service-promo-card img {
    align-self: end;
    width: 100%;
    height: 140px;
    object-fit: cover;
    opacity: 0.88;
    filter: saturate(0.9);
}

.service-promo-copy,
.vertical-tower-copy,
.admin-slot-copy {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 8px;
}

.service-promo-badge,
.sidebar-promo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 5px 9px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.service-promo-card strong,
.sidebar-promo-card strong,
.vertical-tower-card strong,
.admin-slot-item strong {
    font-size: 22px;
    line-height: 1.32;
    letter-spacing: -0.03em;
}

.service-promo-card p,
.sidebar-promo-card small,
.vertical-tower-card p,
.vertical-tower-card small,
.admin-slot-item p {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
    line-height: 1.65;
}

.service-promo-card small,
.service-promo-card em,
.admin-slot-item small {
    color: rgba(255, 255, 255, 0.76);
    font-size: 12px;
    font-style: normal;
    line-height: 1.6;
}

.sidebar-promo-stack {
    display: grid;
    gap: 10px;
    padding: 12px;
}

.sidebar-promo-card {
    display: grid;
    gap: 8px;
    padding: 14px;
}

.sidebar-promo-card strong {
    font-size: 16px;
}

.sidebar-promo-card em {
    color: rgba(255, 255, 255, 0.82);
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
}

.vertical-tower-panel .portal-panel-title {
    border-bottom-color: #d9e1ea;
}

.vertical-tower-stack {
    display: grid;
    gap: 10px;
    padding: 12px;
}

.vertical-tower-card {
    display: grid;
    align-content: end;
    min-height: 320px;
    padding: 16px 14px;
    isolation: isolate;
}

.vertical-tower-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 34%),
        linear-gradient(180deg, rgba(8, 15, 35, 0.08), rgba(8, 15, 35, 0.82));
    z-index: 0;
}

.vertical-tower-card::after {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    z-index: 0;
}

.vertical-tower-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.34;
    filter: saturate(1.08) contrast(1.02);
    z-index: -1;
}

.vertical-tower-copy {
    gap: 9px;
}

.vertical-tower-card strong {
    font-size: 20px;
}

.vertical-tower-card small {
    font-size: 12px;
}

.vertical-tower-card p {
    font-size: 12px;
    line-height: 1.7;
}

.vertical-tower-card em {
    color: rgba(255, 255, 255, 0.84);
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
}

.admin-shell {
    display: grid;
    gap: 12px;
}

.admin-hero-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 18px;
}

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

.admin-metric-card {
    padding: 16px;
}

.admin-metric-card small {
    color: #6d7d8f;
    font-size: 12px;
}

.admin-metric-card strong {
    display: block;
    margin-top: 8px;
    font-size: 24px;
}

.admin-metric-card span {
    display: block;
    margin-top: 8px;
    color: #617183;
    font-size: 12px;
    line-height: 1.6;
}

.admin-console-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 12px;
}

.admin-form-card {
    padding-bottom: 12px;
}

.admin-settings-form,
.admin-promo-form {
    display: grid;
    gap: 14px;
    padding: 0 12px;
}

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

.admin-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 10px 12px;
    border: 1px solid #dce4ee;
    background: #fafbfd;
    color: #203143;
    font-size: 13px;
    font-weight: 700;
}

.admin-toggle input {
    width: 16px;
    height: 16px;
    margin: 0;
}

.admin-note-field textarea {
    min-height: 88px;
}

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

.field-span-2 {
    grid-column: span 2;
}

.admin-checkbox-field {
    align-items: center;
}

.admin-checkbox-field input {
    width: 18px;
    height: 18px;
    margin-top: 10px;
}

.admin-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-slot-card {
    padding-bottom: 12px;
}

.admin-slot-list {
    display: grid;
    gap: 10px;
    padding: 0 12px;
}

.admin-slot-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    padding: 16px;
}

.admin-slot-actions {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    justify-content: flex-end;
    gap: 8px;
}

.admin-slot-actions form {
    margin: 0;
}

.admin-slot-actions .ghost-link {
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.admin-slot-actions .ghost-link:hover {
    background: rgba(255, 255, 255, 0.2);
}

.admin-danger {
    border-color: rgba(255, 219, 219, 0.35);
}

.compact-feed {
    max-height: 340px;
}

.admin-exchange-stack {
    margin-top: 12px;
}

@media (max-width: 1220px) {
    .service-promo-grid,
    .admin-metric-grid,
    .admin-console-grid,
    .admin-hero-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .service-promo-card,
    .vertical-tower-card,
    .admin-slot-item,
    .admin-toggle-grid,
    .admin-form-grid {
        grid-template-columns: 1fr;
    }

    .vertical-tower-card {
        min-height: 260px;
    }

    .field-span-2 {
        grid-column: auto;
    }
}

.paper-shell {
    display: grid;
    gap: 14px;
}

.paper-hero-card {
    align-items: start;
    background:
        radial-gradient(circle at top right, rgba(15, 118, 110, 0.12), transparent 36%),
        linear-gradient(135deg, #fbfcfe 0%, #f3f7fb 100%);
}

.paper-hero-contract-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 200px;
    gap: 12px;
    margin-top: 18px;
}

.paper-hero-contract,
.paper-hero-risk {
    padding: 14px 16px;
    border: 1px solid rgba(20, 32, 51, 0.08);
    background: rgba(255, 255, 255, 0.86);
}

.paper-hero-contract small,
.paper-hero-risk small {
    display: block;
    color: #607184;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.paper-hero-contract strong,
.paper-hero-risk strong {
    display: block;
    margin-top: 6px;
    color: #132033;
    font-size: 18px;
}

.paper-hero-contract span,
.paper-hero-risk span {
    display: block;
    margin-top: 6px;
    color: #6d7d90;
    font-size: 12px;
}

.paper-hero-risk {
    align-content: center;
    justify-items: start;
}

.paper-summary-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.paper-summary-card {
    padding: 14px 16px;
}

.paper-summary-card.is-risk-card {
    background: linear-gradient(180deg, #f8fbff 0%, #eef5fd 100%);
}

.paper-summary-card small {
    display: block;
    color: #607184;
    font-size: 12px;
}

.paper-summary-card strong {
    display: block;
    margin-top: 8px;
    font-size: 22px;
    color: #1b2230;
}

.paper-summary-card span {
    display: block;
    margin-top: 6px;
    color: #708195;
    font-size: 12px;
}

.paper-market-card {
    padding-bottom: 12px;
    background:
        linear-gradient(180deg, rgba(241, 245, 249, 0.78) 0%, rgba(255, 255, 255, 1) 22%),
        #ffffff;
}

.paper-pair-selector-row {
    padding: 0 12px;
}

.paper-market-signal-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    padding: 12px;
}

.paper-signal-card {
    min-height: 96px;
    padding: 14px 15px;
    border: 1px solid #dce5ef;
    background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
}

.paper-signal-card small {
    display: block;
    color: #6b7c8e;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.paper-signal-card strong {
    display: block;
    margin-top: 8px;
    color: #102033;
    font-size: 18px;
    line-height: 1.2;
}

.paper-signal-card span {
    display: block;
    margin-top: 8px;
    color: #607184;
    font-size: 12px;
}

.paper-terminal-grid {
    display: grid;
    grid-template-columns: 252px minmax(0, 1fr) 332px;
    gap: 10px;
    padding: 0 10px 10px;
}

.paper-orderbook-panel,
.paper-ticket-panel,
.paper-tape-panel {
    border: 1px solid #d8e0ea;
    background: #ffffff;
}

.paper-mini-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 0 12px 10px;
    color: #617183;
    font-size: 12px;
}

.paper-mini-meta em {
    color: #7c8da0;
    font-style: normal;
}

.paper-orderbook-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid #eef2f6;
    border-bottom: 1px solid #eef2f6;
}

.paper-orderbook-summary span {
    padding: 8px 10px;
    color: #607083;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.paper-orderbook-summary b {
    margin-left: 6px;
    color: #1a2433;
}

.paper-orderbook-head {
    display: grid;
    grid-template-columns: 1.08fr 0.72fr 0.72fr;
    gap: 6px;
    padding: 7px 10px 6px;
    border-bottom: 1px solid #eef2f6;
    background: #f8fafc;
    color: #7a899b;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.paper-orderbook-head span:nth-child(2),
.paper-orderbook-head span:nth-child(3) {
    text-align: right;
}

.paper-orderbook {
    display: grid;
}

.paper-orderbook-row {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: 1.08fr 0.72fr 0.72fr;
    gap: 6px;
    align-items: center;
    padding: 4px 10px;
    border-top: 1px solid #f0f4f8;
    background: #ffffff;
    color: #223244;
    text-align: left;
    cursor: pointer;
    font-size: 11px;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
}

.paper-orderbook-row:first-child {
    border-top: none;
}

.paper-orderbook-row::before {
    content: "";
    position: absolute;
    top: 1px;
    right: 0;
    bottom: 1px;
    width: var(--depth, 0%);
    z-index: 0;
    pointer-events: none;
}

.paper-orderbook-row span,
.paper-orderbook-row strong,
.paper-orderbook-row em {
    position: relative;
    z-index: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.paper-orderbook-row strong,
.paper-orderbook-row em,
.paper-book-size,
.paper-book-total {
    justify-self: end;
    font-style: normal;
}

.paper-book-price {
    font-weight: 700;
}

.paper-book-size {
    color: #223244;
    font-weight: 700;
}

.paper-book-total {
    color: #738396;
}

.paper-orderbook-row.is-ask::before {
    background: linear-gradient(90deg, rgba(220, 78, 96, 0) 0%, rgba(220, 78, 96, 0.05) 25%, rgba(220, 78, 96, 0.18) 100%);
}

.paper-orderbook-row.is-bid::before {
    background: linear-gradient(90deg, rgba(24, 148, 106, 0) 0%, rgba(24, 148, 106, 0.05) 25%, rgba(24, 148, 106, 0.18) 100%);
}

.paper-orderbook-row.is-ask .paper-book-price {
    color: #d24b62;
}

.paper-orderbook-row.is-bid .paper-book-price {
    color: #168b67;
}

.paper-orderbook-row:hover {
    background: #f9fbfd;
}

.paper-last-price-board {
    display: grid;
    justify-items: center;
    gap: 4px;
    padding: 10px 8px;
    border-top: 1px solid #dfe7ef;
    border-bottom: 1px solid #dfe7ef;
    background: linear-gradient(180deg, #fbfcfd 0%, #f3f6fa 100%);
}

.paper-last-price-board small {
    color: #637487;
    font-size: 11px;
}

.paper-last-price-board strong {
    font-size: 22px;
    color: #172233;
    line-height: 1.1;
}

.paper-last-price-board span {
    font-weight: 800;
    font-size: 12px;
}

.paper-last-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
}

.paper-last-meta b {
    padding: 3px 6px;
    border: 1px solid #dce4ec;
    background: #ffffff;
    color: #4c5c70;
    font-size: 10px;
    font-weight: 700;
}

.paper-chart-wrap {
    display: grid;
    gap: 12px;
}

.paper-chart-container {
    min-height: 320px;
}

.paper-chart-facts {
    border-top: 1px solid #eef2f6;
}

.paper-tape-panel .portal-panel-title,
.paper-orderbook-panel .portal-panel-title,
.paper-ticket-panel .portal-panel-title {
    padding-bottom: 8px;
}

.paper-trade-tape {
    display: grid;
    max-height: 280px;
    overflow-y: auto;
    border-top: 1px solid #eef2f6;
}

.paper-trade-row {
    display: grid;
    grid-template-columns: 0.9fr 1fr 0.8fr 1fr;
    gap: 8px;
    padding: 9px 12px;
    border-top: 1px solid #eef2f6;
    font-size: 12px;
    color: #223244;
}

.paper-trade-row:first-child {
    border-top: none;
}

.paper-trade-row strong,
.paper-trade-row b,
.paper-trade-row em {
    font-style: normal;
    justify-self: end;
}

.paper-ticket-meta {
    display: grid;
    gap: 6px;
    padding: 0 12px 12px;
    color: #526476;
    font-size: 12px;
}

.paper-ticket-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 0 12px 12px;
}

.paper-ticket-head small {
    display: block;
    color: #6b7c8e;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.paper-ticket-head strong {
    display: block;
    margin-top: 4px;
    color: #132033;
    font-size: 16px;
}

.paper-ticket-head span {
    display: block;
    margin-top: 6px;
    color: #6d7d90;
    font-size: 12px;
}

.paper-ticket-head em {
    flex-shrink: 0;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef3f8;
    color: #203247;
    font-style: normal;
    font-size: 12px;
    font-weight: 800;
}

.paper-ticket-meta b {
    margin-left: 6px;
    color: #122033;
}

.paper-side-toggle,
.paper-type-toggle {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 0 12px 10px;
}

.paper-type-toggle {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.paper-side-toggle button,
.paper-type-toggle button,
.paper-quick-size button {
    min-height: 36px;
    border: 1px solid #d4dde8;
    background: #f7f9fb;
    color: #223244;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.paper-side-toggle button {
    display: grid;
    gap: 2px;
    padding: 10px 8px;
}

.paper-side-toggle button strong {
    font-size: 14px;
    line-height: 1;
}

.paper-side-toggle button span {
    font-size: 11px;
    font-weight: 600;
    color: #66778b;
}

.paper-side-toggle button.is-active span {
    color: rgba(255, 255, 255, 0.82);
}

.paper-side-toggle button.is-active,
.paper-type-toggle button.is-active {
    border-color: #16325f;
    background: #16325f;
    color: #ffffff;
}

.paper-side-toggle button[data-paper-side="BUY"].is-active {
    border-color: #cf3b2f;
    background: linear-gradient(180deg, #d94437 0%, #c73529 100%);
}

.paper-side-toggle button[data-paper-side="SELL"].is-active {
    border-color: #1559aa;
    background: linear-gradient(180deg, #1f67c1 0%, #1958a8 100%);
}

.paper-order-form {
    display: grid;
    gap: 12px;
    padding: 0 12px 12px;
}

.paper-limit-field.is-hidden,
.paper-conditional-field.is-hidden {
    display: none;
}

.checkbox-line {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #223244;
}

.checkbox-line input {
    width: 16px;
    height: 16px;
}

.paper-quick-size {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}

.paper-preview-box {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    border: 1px solid #dce4ee;
    background: #fafbfd;
    padding: 12px;
}

.paper-preview-box small {
    display: block;
    color: #647487;
    font-size: 11px;
}

.paper-preview-box strong {
    display: block;
    margin-top: 4px;
    color: #152133;
    font-size: 15px;
}

.paper-risk-meter {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 12px;
    border: 1px solid #dbe5ef;
    background: linear-gradient(180deg, #f8fbfe 0%, #f1f6fb 100%);
}

.paper-risk-meter small {
    display: block;
    color: #6d7d90;
    font-size: 11px;
}

.paper-risk-meter strong {
    display: block;
    margin-top: 4px;
    color: #132033;
    font-size: 15px;
}

.paper-ticket-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.paper-submit-button {
    min-height: 42px;
}

.paper-submit-button.paper-submit-sell {
    background: #1f67c1;
    border-color: #1b5bac;
}

.paper-ops-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 12px 12px;
}

.paper-ops-strip .topic-status {
    max-width: 100%;
    justify-content: flex-start;
    text-align: left;
    line-height: 1.35;
    white-space: normal;
}

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

.paper-table {
    display: grid;
}

.paper-table-row {
    display: grid;
    grid-template-columns: 1fr 1fr 0.9fr 0.9fr 1fr 1fr;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-top: 1px solid #eef2f6;
    color: #223244;
    font-size: 13px;
}

.paper-positions-table .paper-table-row {
    grid-template-columns: 0.9fr 1fr 1fr 0.7fr 1.25fr 1fr auto;
}

.paper-fills-table .paper-table-row {
    grid-template-columns: 1fr 0.9fr 1fr 0.9fr 0.8fr 1fr 1fr;
}

.paper-table-row.heading {
    background: #f8fafc;
    border-top: none;
    color: #69798c;
    font-size: 12px;
    font-weight: 700;
}

.paper-table-row strong,
.paper-table-row em {
    font-style: normal;
}

.paper-table-row em {
    font-weight: 800;
}

.paper-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    margin-right: 8px;
    padding: 5px 8px;
    border-radius: 999px;
    background: #eef3f8;
    color: #33475c;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.paper-pill.is-rise {
    background: rgba(246, 70, 93, 0.12);
    color: #d53552;
}

.paper-pill.is-fall {
    background: rgba(14, 203, 129, 0.12);
    color: #078753;
}

.paper-close-position-button,
.paper-cancel-all-button {
    min-height: 34px;
    border: 1px solid rgba(214, 53, 82, 0.18);
    background: rgba(246, 70, 93, 0.08);
    color: #c52f4b;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.paper-close-position-button:hover,
.paper-cancel-all-button:hover {
    background: rgba(246, 70, 93, 0.14);
}

.paper-subline {
    display: block;
    margin-top: 4px;
    color: #6e7e91;
    font-size: 11px;
    font-weight: 600;
}

.paper-notice-card .portal-link-list a {
    pointer-events: none;
}

.paper-terminal-body {
    background:
        radial-gradient(circle at 8% 0%, rgba(15, 118, 110, 0.08), transparent 24%),
        linear-gradient(180deg, #eef3f7 0%, #e7edf4 100%);
}

.paper-terminal-body .shell {
    width: min(calc(100% - 16px), 1720px);
}

.paper-terminal-body .site-header {
    background: rgba(245, 248, 251, 0.86);
}

.paper-shell {
    gap: 8px;
    padding-top: 8px;
}

.paper-shell .portal-card,
.paper-shell .portal-panel {
    border-radius: 0;
    box-shadow: none;
}

.paper-hero-card {
    grid-template-columns: minmax(0, 1fr) minmax(520px, 0.72fr);
    align-items: start;
    gap: 8px;
    padding: 10px;
    border-color: #cfd9e5;
    background:
        linear-gradient(90deg, rgba(12, 20, 33, 0.04) 0%, rgba(255, 255, 255, 0.86) 38%),
        #ffffff;
}

.paper-hero-card .board-hero-copy {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    align-items: center;
    gap: 4px 8px;
    padding: 0;
}

.paper-hero-card .board-hero-code {
    grid-column: 1;
    margin-bottom: 4px;
    font-size: 10px;
}

.paper-hero-card .board-hero-copy h1 {
    grid-column: 1;
    margin: 0;
    font-size: clamp(19px, 1.5vw, 24px);
    line-height: 1.04;
    letter-spacing: -0.045em;
}

.paper-hero-card .board-hero-copy p {
    display: none;
}

.paper-hero-contract-row {
    grid-column: 2;
    grid-row: 1 / span 2;
    grid-template-columns: minmax(0, 1fr) 112px;
    gap: 6px;
    margin-top: 0;
}

.paper-hero-contract,
.paper-hero-risk {
    padding: 6px 8px;
}

.paper-hero-contract strong,
.paper-hero-risk strong {
    margin-top: 3px;
    font-size: 14px;
}

.paper-hero-contract span,
.paper-hero-risk span {
    margin-top: 3px;
    font-size: 11px;
}

.paper-hero-card .board-hero-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-self: start;
    border-left: 1px solid #e3e9f0;
}

.paper-hero-card .board-hero-stats > div {
    min-height: 0;
    padding: 6px 8px;
}

.paper-hero-card .board-hero-stats small {
    font-size: 10px;
}

.paper-hero-card .board-hero-stats strong {
    margin-top: 4px;
    font-size: 15px;
    line-height: 1.15;
}

.paper-summary-strip {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px;
}

.paper-summary-card {
    min-height: 0;
    padding: 8px 10px;
}

.paper-summary-card small {
    font-size: 10px;
    letter-spacing: -0.01em;
}

.paper-summary-card strong {
    margin-top: 4px;
    font-size: 15px;
    line-height: 1.14;
}

.paper-summary-card span {
    margin-top: 2px;
    font-size: 10px;
    line-height: 1.25;
}

.paper-market-card {
    padding-bottom: 6px;
    border-color: #cfd9e5;
}

.paper-market-card > .portal-card-head {
    padding: 8px 10px;
    border-bottom: 1px solid #e5ebf2;
}

.paper-market-card > .portal-card-head strong {
    font-size: 13px;
    letter-spacing: 0.04em;
}

.paper-market-card > .portal-card-head span {
    font-size: 11px;
}

.paper-pair-selector-row {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 6px 8px;
}

.paper-pair-selector-row .pair-selector-label {
    display: none;
}

.paper-pair-selector-row .pair-selector-shell {
    grid-template-columns: 28px minmax(0, 1fr) 28px;
}

.paper-pair-selector-row .pair-selector {
    gap: 5px;
}

.paper-pair-selector-row .pair-selector button {
    min-width: 126px;
    padding: 6px 8px;
}

.paper-pair-selector-row .pair-selector button strong {
    font-size: 12px;
}

.paper-pair-selector-row .pair-selector button span {
    font-size: 10px;
}

.paper-market-signal-strip {
    grid-template-columns: repeat(6, minmax(130px, 1fr));
    gap: 4px;
    padding: 0 8px 6px;
}

.paper-signal-card {
    min-height: 0;
    padding: 7px 8px;
}

.paper-signal-card small {
    font-size: 9px;
    letter-spacing: 0.04em;
}

.paper-signal-card strong {
    margin-top: 3px;
    font-size: 13px;
    line-height: 1.12;
}

.paper-signal-card span {
    margin-top: 3px;
    font-size: 10px;
    line-height: 1.2;
}

.paper-terminal-grid {
    grid-template-columns: 282px minmax(500px, 1fr) 336px;
    gap: 6px;
    padding: 0 8px 8px;
    align-items: start;
}

.paper-orderbook-panel,
.paper-ticket-panel,
.paper-tape-panel {
    border-color: #cfd9e5;
}

.paper-tape-panel .portal-panel-title,
.paper-orderbook-panel .portal-panel-title,
.paper-ticket-panel .portal-panel-title {
    padding: 7px 9px;
    font-size: 12px;
}

.paper-mini-meta {
    padding: 0 9px 6px;
    font-size: 10px;
}

.paper-orderbook-summary span {
    padding: 5px 8px;
    font-size: 10px;
}

.paper-orderbook-head {
    padding: 4px 8px;
    font-size: 9px;
}

.paper-orderbook-row {
    min-height: 19px;
    padding: 2px 8px;
    font-size: 10px;
    line-height: 1.05;
}

.paper-last-price-board {
    grid-template-columns: minmax(0, 1fr) auto auto;
    justify-items: start;
    align-items: center;
    gap: 6px;
    padding: 7px 8px;
}

.paper-last-price-board small {
    font-size: 10px;
}

.paper-last-price-board strong {
    font-size: 16px;
}

.paper-last-price-board > span {
    font-size: 11px;
}

.paper-last-meta {
    grid-column: 1 / -1;
    justify-content: flex-start;
}

.paper-last-meta b {
    padding: 2px 5px;
    font-size: 9px;
}

.paper-chart-wrap {
    gap: 6px;
}

.paper-chart-wrap .market-chart-stage {
    padding: 8px;
    border-color: #cfd9e5;
}

.paper-chart-wrap .market-chart-summary {
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.paper-chart-wrap .market-chart-current {
    gap: 1px;
}

.paper-chart-wrap .market-chart-current strong {
    font-size: 23px;
}

.paper-chart-wrap .market-chart-current span {
    font-size: 12px;
}

.paper-chart-wrap .market-chart-meta-strip {
    gap: 4px;
    font-size: 10px;
}

.paper-chart-wrap .market-chart-meta-strip span {
    padding: 3px 6px;
}

.paper-chart-container {
    height: 310px;
    min-height: 310px;
}

.paper-chart-facts {
    margin-top: 5px;
}

.paper-chart-facts > div {
    padding: 6px 8px;
}

.paper-chart-facts small {
    font-size: 9px;
}

.paper-chart-facts strong {
    margin-top: 2px;
    font-size: 11px;
}

.paper-trade-tape {
    max-height: 150px;
}

.paper-trade-row {
    grid-template-columns: 0.82fr 1fr 0.72fr 0.95fr;
    gap: 6px;
    padding: 5px 8px;
    font-size: 10px;
}

.paper-ticket-head {
    align-items: center;
    padding: 7px 9px 6px;
}

.paper-ticket-head small {
    font-size: 9px;
    letter-spacing: 0.05em;
}

.paper-ticket-head strong {
    margin-top: 2px;
    font-size: 13px;
}

.paper-ticket-head span {
    margin-top: 2px;
    font-size: 10px;
}

.paper-ticket-head em {
    padding: 4px 7px;
    font-size: 10px;
}

.paper-ticket-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    padding: 0 9px 7px;
    font-size: 10px;
}

.paper-ticket-meta span {
    padding: 4px 6px;
    border: 1px solid #e1e7ef;
    background: #f8fafc;
}

.paper-ticket-meta b {
    float: right;
    margin-left: 4px;
}

.paper-side-toggle,
.paper-type-toggle {
    gap: 4px;
    padding: 0 9px 6px;
}

.paper-type-toggle {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.paper-side-toggle button,
.paper-type-toggle button,
.paper-quick-size button {
    min-height: 28px;
    font-size: 11px;
}

.paper-side-toggle button {
    padding: 7px 6px;
}

.paper-side-toggle button strong {
    font-size: 12px;
}

.paper-side-toggle button span {
    font-size: 9px;
}

.paper-order-form {
    gap: 6px;
    padding: 0 9px 8px;
}

.paper-ticket-panel .field.compact {
    gap: 3px;
}

.paper-ticket-panel .field.compact span {
    font-size: 10px;
}

.paper-ticket-panel .field.compact input,
.paper-ticket-panel .field.compact select {
    min-height: 30px;
    padding: 6px 8px;
    font-size: 12px;
}

.checkbox-line {
    min-height: 30px;
    font-size: 11px;
}

.checkbox-line input {
    width: 14px;
    height: 14px;
}

.paper-quick-size {
    gap: 4px;
}

.paper-preview-box {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    padding: 0;
}

.paper-preview-box > div {
    padding: 7px 6px;
    border-right: 1px solid #e6edf4;
}

.paper-preview-box > div:last-child {
    border-right: none;
}

.paper-preview-box small {
    font-size: 9px;
}

.paper-preview-box strong {
    margin-top: 2px;
    font-size: 11px;
    line-height: 1.12;
}

.paper-risk-meter {
    display: none;
}

.paper-ticket-actions {
    gap: 5px;
}

.paper-submit-button {
    min-height: 34px;
}

.paper-ops-strip {
    gap: 6px;
    padding: 0 9px 8px;
}

.paper-ops-strip .ghost-link {
    min-height: 30px;
    padding: 6px 8px;
    font-size: 11px;
}

.paper-ops-strip .topic-status {
    padding: 5px 7px;
    font-size: 10px;
}

.paper-lower-grid {
    gap: 6px;
}

.paper-lower-grid > .portal-card {
    border-color: #cfd9e5;
}

.paper-lower-grid .portal-card-head {
    padding: 8px 10px;
}

.paper-lower-grid .portal-card-head strong {
    font-size: 13px;
}

.paper-lower-grid .portal-card-head span {
    font-size: 10px;
}

.paper-table-row {
    gap: 6px;
    padding: 7px 9px;
    font-size: 11px;
}

.paper-table-row.heading {
    font-size: 10px;
}

.paper-pill {
    min-width: 48px;
    margin-right: 5px;
    padding: 3px 6px;
    font-size: 9px;
}

.paper-subline {
    margin-top: 2px;
    font-size: 9px;
}

.paper-close-position-button,
.paper-cancel-all-button,
.paper-cancel-button {
    min-height: 28px;
    padding: 5px 8px;
    font-size: 10px;
}

.paper-history-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
}

.paper-notice-card .portal-link-list a {
    padding: 8px 10px;
}

.paper-notice-card .portal-link-list strong {
    font-size: 12px;
}

.paper-notice-card .portal-link-list span {
    font-size: 10px;
    line-height: 1.35;
}

@media (max-width: 1280px) {
    .paper-market-signal-strip,
    .paper-summary-strip,
    .paper-lower-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .paper-terminal-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .paper-hero-card .board-hero-copy,
    .paper-hero-contract-row,
    .paper-market-signal-strip,
    .paper-summary-strip,
    .paper-lower-grid,
    .paper-preview-box,
    .paper-risk-meter,
    .paper-ticket-actions,
    .paper-side-toggle,
    .paper-type-toggle,
    .paper-quick-size {
        grid-template-columns: 1fr;
    }

    .paper-table-row,
    .paper-positions-table .paper-table-row,
    .paper-fills-table .paper-table-row,
    .paper-trade-row {
        grid-template-columns: 1fr;
    }

    .paper-orderbook-head,
    .paper-orderbook-row {
        grid-template-columns: 1.08fr 0.72fr 0.72fr;
    }
}

.paper-chart-tools {
    display: inline-grid;
    grid-template-columns: repeat(6, minmax(34px, 1fr));
    gap: 3px;
    align-items: center;
}

.paper-chart-tools button,
.paper-price-tools button,
.paper-trigger-helper button,
.paper-leverage-presets button,
.paper-amount-mode button {
    min-height: 26px;
    border: 1px solid #d5dee9;
    background: #f7fafc;
    color: #26384c;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
    font-variant-numeric: tabular-nums;
}

.paper-chart-tools button.is-active,
.paper-amount-mode button.is-active {
    border-color: #132033;
    background: #132033;
    color: #ffffff;
}

.paper-price-tools,
.paper-trigger-helper,
.paper-leverage-presets,
.paper-amount-mode {
    display: grid;
    gap: 4px;
}

.paper-price-tools {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.paper-trigger-helper,
.paper-leverage-presets {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.paper-ticket-meta i {
    font-style: normal;
}

.paper-trigger-helper.is-hidden,
.paper-notional-field.is-hidden {
    display: none;
}

.paper-leverage-desk {
    display: grid;
    gap: 5px;
    padding: 7px 8px;
    border: 1px solid #dfe7ef;
    background: #fbfdff;
}

.paper-range-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    gap: 8px;
    align-items: center;
}

.paper-range-row input[type="range"] {
    width: 100%;
    accent-color: #132033;
}

.paper-range-row output {
    justify-self: end;
    color: #132033;
    font-size: 12px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

.paper-secondary-quantity {
    opacity: 0.78;
}

.paper-risk-preview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid #dce4ee;
    background: #ffffff;
}

.paper-risk-preview > div {
    padding: 7px 6px;
    border-right: 1px solid #e6edf4;
}

.paper-risk-preview > div:last-child {
    border-right: none;
}

.paper-risk-preview small {
    display: block;
    color: #647487;
    font-size: 9px;
}

.paper-risk-preview strong {
    display: block;
    margin-top: 2px;
    color: #152133;
    font-size: 11px;
    line-height: 1.12;
}

.paper-position-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(44px, 1fr));
    gap: 4px;
}

.paper-reverse-position-button {
    min-height: 28px;
    padding: 5px 8px;
    border: 1px solid rgba(22, 50, 95, 0.16);
    background: rgba(22, 50, 95, 0.07);
    color: #16325f;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

@media (max-width: 1280px) {
    .paper-chart-tools {
        justify-self: start;
    }
}

@media (max-width: 820px) {
    .paper-chart-tools,
    .paper-price-tools,
    .paper-trigger-helper,
    .paper-leverage-presets,
    .paper-risk-preview,
    .paper-position-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .paper-range-row,
    .paper-amount-mode {
        grid-template-columns: 1fr;
    }
}
