:root {
    --bg-grad-top: #eef4f8;
    --bg-grad-mid: #f5f8fb;
    --bg-grad-bottom: #edf3ec;
    --panel: rgba(255, 255, 255, 0.86);
    --panel-strong: rgba(255, 255, 255, 0.95);
    --line: #d7e3eb;
    --line-soft: #ebf1f5;
    --text: #14212d;
    --muted: #627487;
    --brand: #145ca8;
    --brand-soft: #e7f0ff;
    --brand-deep: #112f54;
    --brand-night: #10243f;
    --brand-teal: #187a88;
    --peak: #b42318;
    --fire: #c45b16;
    --warn: #d88f18;
    --shadow: 0 18px 46px rgba(17, 33, 51, 0.10);
    --shadow-soft: 0 10px 26px rgba(17, 33, 51, 0.06);
    --hero-shadow: 0 28px 64px rgba(16, 30, 53, 0.22);
    --panel-glow: linear-gradient(135deg, rgba(20, 92, 168, 0.12) 0%, rgba(24, 122, 136, 0.06) 46%, rgba(255, 255, 255, 0) 100%);
}

html,
body {
    margin: 0;
    min-height: 100%;
    background:
        radial-gradient(1180px 520px at 88% -110px, rgba(158, 206, 255, 0.70) 0%, transparent 52%),
        radial-gradient(900px 420px at -8% -80px, rgba(197, 233, 214, 0.78) 0%, transparent 44%),
        radial-gradient(820px 300px at 54% 0%, rgba(255, 236, 206, 0.22) 0%, transparent 55%),
        linear-gradient(180deg, var(--bg-grad-top) 0%, var(--bg-grad-mid) 48%, var(--bg-grad-bottom) 100%);
    color: var(--text);
    font-family: "Avenir Next", "IBM Plex Sans", "PingFang SC", "Hiragino Sans GB", sans-serif;
    overflow-x: hidden;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: auto;
    pointer-events: none;
    z-index: -1;
}

body::before {
    top: 96px;
    right: -120px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(20, 92, 168, 0.12) 0%, rgba(20, 92, 168, 0.04) 38%, rgba(20, 92, 168, 0) 72%);
    filter: blur(10px);
}

body::after {
    left: -140px;
    bottom: 120px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(28, 132, 123, 0.10) 0%, rgba(28, 132, 123, 0.03) 42%, rgba(28, 132, 123, 0) 74%);
    filter: blur(12px);
}

body.popup-open {
    overflow: hidden;
}

* {
    box-sizing: border-box;
}

a {
    color: inherit;
}

button {
    font: inherit;
}

button,
a,
.analysis-link,
.pm-link {
    -webkit-tap-highlight-color: transparent;
}

:where(button, a, .analysis-link, .pm-link, .popup-close, .windy-toggle, .tool-card-social):focus-visible {
    outline: 0;
    box-shadow: 0 0 0 3px rgba(43, 125, 205, 0.18);
    border-color: rgba(77, 147, 216, 0.85);
}

.page-shell {
    width: 100%;
    position: relative;
}

.main-content {
    padding: 0 18px 30px;
    min-height: calc(100vh - 86px);
}

.top-nav {
    position: sticky;
    top: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 72px;
    padding: 12px 22px;
    margin: 0 auto 16px;
    border: 1px solid rgba(208, 220, 231, 0.88);
    border-top: 0;
    border-radius: 0 0 22px 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(247, 251, 253, 0.90) 100%);
    box-shadow: 0 14px 34px rgba(14, 34, 58, 0.08);
    backdrop-filter: blur(14px);
    overflow: hidden;
}

.top-nav .left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.top-nav__shine {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(420px 120px at 22% 0%, rgba(20, 92, 168, 0.10) 0%, transparent 66%),
        radial-gradient(360px 120px at 82% 0%, rgba(24, 122, 136, 0.10) 0%, transparent 62%);
    pointer-events: none;
}

.top-nav-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
    justify-content: center;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.nav-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(208, 221, 232, 0.94);
    background: rgba(255, 255, 255, 0.74);
    color: #34506b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.nav-chip-live {
    color: #0f5c57;
    border-color: rgba(152, 214, 204, 0.95);
    background: rgba(233, 250, 245, 0.92);
}

.nav-chip-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(180deg, #2fd39b 0%, #17986b 100%);
    box-shadow: 0 0 0 4px rgba(47, 211, 155, 0.15);
    animation: pulseDot 1.8s ease-in-out infinite;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 900;
    color: #fff;
    background: linear-gradient(145deg, #103a6d 0%, #1666b4 52%, #26a08a 100%);
    box-shadow: 0 12px 26px rgba(17, 63, 120, 0.30);
    flex: 0 0 auto;
    position: relative;
}

.brand-mark span {
    position: relative;
    z-index: 1;
    letter-spacing: .08em;
}

.brand-mark::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 13px;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.brand-title {
    font-size: 17px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: .01em;
    color: var(--brand-deep);
}

.brand-copy small {
    color: var(--muted);
    font-weight: 700;
    letter-spacing: .02em;
    white-space: nowrap;
}

.nav-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.nav-btn {
    border: 1px solid rgba(206, 220, 232, 0.94);
    background: rgba(255, 255, 255, 0.82);
    color: #28415a;
    border-radius: 999px;
    padding: 8px 13px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .03em;
    white-space: nowrap;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease, color .18s ease;
    box-shadow: 0 3px 10px rgba(20, 46, 78, 0.04);
}

.nav-btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.nav-btn-social {
    color: #ffffff;
    border-color: rgba(18, 53, 89, 0.82);
    background: linear-gradient(135deg, #10243f 0%, #154d82 100%);
    box-shadow: 0 10px 22px rgba(16, 36, 63, 0.16);
}

.nav-btn:hover {
    border-color: #90b8df;
    background: #f4f8fd;
    transform: translateY(-1px);
    color: #18375b;
}

.nav-btn.active {
    color: #0f2e4f;
    border-color: rgba(118, 177, 233, 0.82);
    background: linear-gradient(180deg, rgba(238, 246, 255, 1) 0%, rgba(221, 236, 252, 0.98) 100%);
    box-shadow: inset 0 0 0 1px rgba(173, 207, 236, 0.55), 0 6px 16px rgba(38, 96, 158, 0.08);
}

.nav-btn-social:hover {
    color: #ffffff;
    border-color: rgba(28, 104, 171, 0.92);
    background: linear-gradient(135deg, #0f2744 0%, #1a5f9e 100%);
}

.nav-btn-social-telegram {
    border-color: rgba(19, 125, 183, 0.82);
    background: linear-gradient(135deg, #0a6ea8 0%, #1aa1d8 100%);
    box-shadow: 0 10px 22px rgba(14, 108, 168, 0.16);
}

.nav-btn-social-telegram:hover {
    color: #ffffff;
    border-color: rgba(39, 168, 223, 0.92);
    background: linear-gradient(135deg, #0b78b6 0%, #22aee5 100%);
}

.nav-btn-toolbar {
    min-height: 40px;
    padding: 9px 14px;
    border-color: rgba(183, 207, 226, 0.96);
    background: linear-gradient(180deg, #f9fcfe 0%, #eef5fa 100%);
    color: #1e425f;
}

.nav-btn-toolbar-soft {
    background: linear-gradient(180deg, #ffffff 0%, #f4f8fb 100%);
    color: #30526d;
}

.page-hero {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 24px;
    margin-bottom: 14px;
    border: 1px solid rgba(22, 67, 116, 0.18);
    border-radius: 26px;
    background:
        radial-gradient(540px 220px at 84% 12%, rgba(79, 179, 255, 0.22) 0%, transparent 62%),
        radial-gradient(360px 160px at 8% 0%, rgba(59, 219, 181, 0.16) 0%, transparent 60%),
        linear-gradient(135deg, #132b49 0%, #183d67 42%, #174967 100%);
    box-shadow: var(--hero-shadow);
    position: relative;
    overflow: hidden;
}

.hero-copy {
    min-width: 0;
    flex: 1 1 auto;
    position: relative;
    z-index: 1;
}

.page-hero__mesh {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.05) 0%, transparent 32%),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: auto, 28px 28px, 28px 28px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.96) 0%, rgba(0, 0, 0, 0.55) 100%);
    pointer-events: none;
}

.hero-kicker-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(231, 240, 255, 0.16);
    color: #d7ebff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    border: 1px solid rgba(182, 210, 236, 0.20);
}

.hero-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(228, 255, 247, 0.12);
    color: #c7f3df;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    border: 1px solid rgba(148, 225, 198, 0.18);
}

.page-hero h1 {
    margin: 0 0 8px;
    font-size: 34px;
    line-height: 1.02;
    color: #f9fcff;
    letter-spacing: -.03em;
    max-width: 11ch;
}

.page-hero p {
    margin: 0;
    max-width: 820px;
    color: rgba(231, 241, 250, 0.86);
    line-height: 1.58;
    font-size: 14px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.hero-side {
    width: min(340px, 34vw);
    min-width: 260px;
    display: grid;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.hero-badge {
    border: 1px solid rgba(200, 223, 241, 0.16);
    border-radius: 999px;
    padding: 7px 11px;
    background: rgba(255, 255, 255, 0.09);
    color: #e6f0f7;
    font-size: 12px;
    font-weight: 700;
    backdrop-filter: blur(6px);
}

.hero-stat-card {
    padding: 16px 18px;
    border-radius: 20px;
    border: 1px solid rgba(188, 214, 236, 0.14);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(240, 248, 255, 0.07) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    animation: floatCard 7s ease-in-out infinite;
}

.hero-stat-card strong {
    display: block;
    margin-top: 6px;
    color: #ffffff;
    font-size: 25px;
    line-height: 1.02;
    letter-spacing: -.03em;
}

.hero-stat-card small {
    display: block;
    margin-top: 8px;
    color: rgba(223, 235, 246, 0.76);
    line-height: 1.45;
    font-size: 12px;
}

.hero-stat-card-accent {
    background:
        linear-gradient(135deg, rgba(255, 231, 204, 0.16) 0%, rgba(255, 255, 255, 0.06) 100%);
    animation-delay: .7s;
}

.hero-stat-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(217, 230, 242, 0.78);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

#page-content {
    min-height: 320px;
}

.alert-box {
    margin-bottom: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid transparent;
    box-shadow: var(--shadow-soft);
    font-size: 13px;
    line-height: 1.45;
    backdrop-filter: blur(8px);
}

.alert-warning {
    background: #fff6e9;
    border-color: #f2d39e;
    color: #8a4b00;
}

.alert-info {
    background: #eef6ff;
    border-color: #cfe1fb;
    color: #1f4f8d;
}

.status-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.dialog-status-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.status-card,
.metric-card {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 252, 255, 0.92) 100%);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.status-card::before,
.metric-card::before,
.table-panel::before,
.content-panel::before,
.tool-card::before,
.city-grid-item::before,
.popup-card::before,
.popup-section::before,
.chart-card::before,
.mini-chart-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--panel-glow);
    pointer-events: none;
    opacity: .72;
}

.status-card > *,
.metric-card > *,
.table-panel > *,
.content-panel > *,
.tool-card > *,
.city-grid-item > *,
.popup-card > *,
.popup-section > *,
.chart-card > *,
.mini-chart-card > * {
    position: relative;
    z-index: 1;
}

.status-card {
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.status-card .label,
.metric-label {
    font-size: 11px;
    font-weight: 800;
    color: var(--muted);
    letter-spacing: .03em;
}

.status-card .value,
.metric-value {
    font-size: 20px;
    font-weight: 800;
    color: var(--brand-deep);
    line-height: 1.1;
}

.status-card .meta {
    font-size: 12px;
    color: #718093;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

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

.metric-card {
    padding: 10px 12px;
}

.status-card:hover,
.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(16, 34, 57, 0.08);
    border-color: #c8dae6;
}

.table-panel,
.content-panel,
.tool-card,
.city-grid-item,
.popup-card {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 252, 255, 0.92) 100%);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.table-panel,
.content-panel {
    padding: 14px;
}

.table-panel-monitor {
    border-radius: 22px;
    border-color: rgba(198, 215, 229, 0.92);
    box-shadow: 0 20px 48px rgba(16, 35, 59, 0.08);
}

.content-panel-orderbook {
    border-radius: 22px;
    border-color: rgba(200, 217, 231, 0.94);
    box-shadow: 0 18px 42px rgba(18, 36, 59, 0.07);
}

.table-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    border-radius: 18px;
    border: 1px solid rgba(223, 233, 241, 0.95);
    background: linear-gradient(180deg, rgba(250, 252, 255, 0.96) 0%, rgba(244, 249, 252, 0.96) 100%);
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable both-edges;
    overscroll-behavior-x: contain;
    overscroll-behavior-y: auto;
    touch-action: pan-x pan-y;
}

.monitor-floating-head {
    position: fixed;
    z-index: 190;
    display: none;
    pointer-events: none;
}

.monitor-floating-head.visible {
    display: block;
}

.monitor-floating-head__viewport {
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    border: 1px solid rgba(205, 221, 233, 0.95);
    background: linear-gradient(180deg, rgba(246, 250, 253, 0.98) 0%, rgba(241, 247, 251, 0.98) 100%);
    box-shadow: 0 14px 30px rgba(15, 35, 62, 0.10);
}

.monitor-floating-head__inner {
    will-change: transform;
}

.arb-table {
    width: max-content;
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.88);
}

.arb-table thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    padding-top: 11px;
    padding-bottom: 11px;
    background: linear-gradient(180deg, rgba(248, 251, 254, 0.99) 0%, rgba(238, 245, 250, 0.99) 100%);
    font-weight: 800;
    color: var(--brand-deep);
    box-shadow: inset 0 -1px 0 rgba(214, 227, 236, 0.96);
}

.arb-table-floating thead th {
    position: static;
    top: auto;
}

.arb-table th,
.arb-table td {
    padding: 9px 10px;
    border-bottom: 1px solid var(--line-soft);
    white-space: nowrap;
    text-align: left;
    vertical-align: middle;
}

.arb-table.monitor-table-tight {
    font-size: 12px;
}

.arb-table.monitor-table-tight th,
.arb-table.monitor-table-tight td {
    padding: 7px 7px;
}

.arb-table.monitor-table-ultra-tight {
    font-size: 11px;
}

.arb-table.monitor-table-ultra-tight th,
.arb-table.monitor-table-ultra-tight td {
    padding: 6px 5px;
}

.arb-table tbody tr:nth-child(even) {
    background: rgba(246, 250, 253, 0.58);
}

.arb-table tbody tr:hover {
    background: rgba(236, 245, 255, 0.78);
    box-shadow: inset 0 0 0 1px rgba(213, 228, 241, 0.72);
}

.td-live {
    color: #16558f;
    font-weight: 700;
    background: linear-gradient(180deg, rgba(237, 245, 255, 0.88) 0%, rgba(231, 241, 255, 0.88) 100%);
}

.city-name {
    font-weight: 800;
    color: #18314d;
    letter-spacing: -.01em;
}

.city-risk-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    padding: 2px 7px;
    border-radius: 999px;
    border: 1px solid rgba(234, 170, 170, 0.9);
    background: rgba(255, 238, 238, 0.92);
    color: #ba1f1f;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .05em;
}

.pm-link,
.analysis-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 6px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    border: 1px solid #d6e5f0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
    transition: background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease, color .18s ease;
}

.pm-link {
    color: #0f5fb8;
    background: linear-gradient(180deg, #f2f8ff 0%, #e9f2ff 100%);
}

.analysis-link {
    color: #ffffff;
    border-color: rgba(194, 84, 22, 0.92);
    background: linear-gradient(135deg, #c45b16 0%, #e58b2d 100%);
    cursor: pointer;
}

.pm-link:hover,
.analysis-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(16, 38, 61, 0.08);
}

.analysis-link:hover {
    color: #ffffff;
    background: linear-gradient(135deg, #b54f0f 0%, #da7b16 100%);
    border-color: rgba(214, 114, 34, 0.96);
}

.pm-link:hover {
    background: linear-gradient(180deg, #edf5ff 0%, #dfeeff 100%);
    border-color: #bfd6ec;
}

.sig-spark {
    display: inline-flex;
    align-items: center;
    padding: 3px 7px;
    border-radius: 999px;
    font-family: "SF Mono", "Menlo", monospace;
    font-size: 13px;
    line-height: 1;
    letter-spacing: .04em;
    border: 1px solid transparent;
}

.sig-spark-flat {
    color: #586a7c;
    background: #f1f4f7;
    border-color: #dfe7ee;
}

.sig-spark-warm {
    color: #9f3412;
    background: #fff0df;
    border-color: #ffd8b0;
}

.sig-spark-cool {
    color: #0a5b84;
    background: #e8f6ff;
    border-color: #c3e5f8;
}

.sig-flat {
    color: #6d7f91;
    font-weight: 700;
}

.empty-state {
    padding: 32px 18px;
    text-align: center;
    color: var(--muted);
    font-weight: 700;
}

.caption-line {
    margin-top: 10px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.content-panel .caption-line:first-child,
.table-panel .caption-line:first-child {
    margin-top: 0;
}

.chart-meta-stack {
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid #e3ebf2;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(248, 251, 253, 0.96) 0%, rgba(242, 247, 251, 0.96) 100%);
}

.chart-meta-line {
    margin-top: 6px;
    padding-left: 0;
    line-height: 1.45;
}

.chart-meta-line:first-child {
    margin-top: 0;
}

.caption-line:empty {
    display: none;
}

.orderbook-jump-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 14px 0 16px;
    padding: 14px 16px;
    border: 1px solid rgba(208, 221, 231, 0.95);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(249, 252, 254, 0.98) 0%, rgba(242, 247, 251, 0.98) 100%);
    box-shadow: 0 12px 28px rgba(16, 34, 57, 0.05);
}

.orderbook-jump-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.orderbook-jump-copy strong {
    color: var(--brand-deep);
    font-size: 14px;
    letter-spacing: -.01em;
}

.orderbook-jump-copy span {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.orderbook-jump-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.orderbook-city-select {
    min-width: 200px;
    min-height: 40px;
    padding: 0 12px;
    border-radius: 12px;
    border: 1px solid rgba(198, 215, 228, 0.96);
    background: linear-gradient(180deg, #ffffff 0%, #f5f9fc 100%);
    color: #1f4059;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

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

.city-grid-item {
    padding: 14px;
    content-visibility: auto;
    contain-intrinsic-size: 300px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.city-grid-item:hover {
    transform: translateY(-2px);
    border-color: #c6d8e5;
    box-shadow: 0 16px 34px rgba(15, 35, 59, 0.08);
}

.city-grid-item.city-card-jump-hit {
    border-color: #7fb1dd;
    box-shadow: 0 0 0 3px rgba(61, 132, 201, 0.14), 0 18px 36px rgba(19, 52, 84, 0.12);
    transform: translateY(-2px);
}

.city-grid-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--brand-deep);
    margin-bottom: 12px;
    letter-spacing: -.01em;
}

.city-grid-empty {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.table-scroll-lite {
    overflow-x: auto;
    overflow-y: hidden;
    border-radius: 14px;
    border: 1px solid rgba(224, 234, 241, 0.96);
    background: rgba(250, 252, 255, 0.92);
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    overscroll-behavior-y: auto;
    touch-action: pan-x pan-y;
}

.table-fixed-width {
    width: 100%;
}

.cell-txt {
    display: inline-block;
    max-width: 100%;
}

.city-depth-table {
    min-width: 100%;
}

.dir-yes {
    color: #0d7a4d;
    font-weight: 800;
}

.dir-no {
    color: #9a3412;
    font-weight: 800;
}

.tool-card {
    padding: 28px 30px;
    border-radius: 24px;
    border-color: rgba(196, 214, 228, 0.92);
    box-shadow: 0 24px 52px rgba(15, 36, 58, 0.08);
}

.tool-card h3 {
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--brand-deep);
}

.tool-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
    max-width: 680px;
}

.tool-card-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid #d4e2ed;
    background: #fff;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.tool-card-social:hover {
    transform: translateY(-1px);
    border-color: #b7d0e2;
    box-shadow: 0 8px 20px rgba(15, 35, 62, 0.08);
}

.tool-card-social svg {
    width: 16px;
    height: 16px;
    fill: #172431;
}

.announcement-overlay {
    position: fixed;
    inset: 0;
    z-index: 460;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(520px 240px at 28% 12%, rgba(56, 142, 208, 0.20) 0%, transparent 62%),
        rgba(8, 16, 28, 0.54);
    backdrop-filter: blur(10px);
}

.announcement-modal {
    width: min(560px, calc(100vw - 32px));
    max-height: min(780px, calc(100vh - 32px));
    display: flex;
    flex-direction: column;
    border-radius: 28px;
    border: 1px solid rgba(204, 220, 233, 0.94);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.995) 0%, rgba(244, 249, 252, 0.985) 100%);
    box-shadow: 0 34px 86px rgba(10, 22, 35, 0.26);
    overflow: hidden;
}

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

.announcement-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 11px;
    border-radius: 999px;
    border: 1px solid rgba(190, 212, 229, 0.88);
    background: linear-gradient(180deg, #f8fbfe 0%, #eef5fa 100%);
    color: #275070;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.announcement-card {
    flex: 1 1 auto;
    padding: 12px 18px 20px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.announcement-card h3 {
    margin: 0 0 10px;
    color: var(--brand-deep);
    font-size: 28px;
    letter-spacing: -.03em;
}

.announcement-card p {
    margin: 0;
    color: #4d6176;
    line-height: 1.7;
    font-size: 15px;
}

.announcement-intro {
    margin-bottom: 14px;
    padding: 12px 14px 12px 16px;
    border-radius: 16px;
    border: 1px solid rgba(228, 127, 127, 0.96);
    border-left: 5px solid #c62828;
    background: linear-gradient(180deg, rgba(255, 236, 236, 0.99) 0%, rgba(255, 225, 225, 0.99) 100%);
    color: #9f1212;
    font-weight: 800;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.announcement-feature-block {
    padding: 14px 15px;
    border-radius: 18px;
    border: 1px solid rgba(216, 228, 237, 0.96);
    background: linear-gradient(180deg, rgba(250, 252, 254, 0.98) 0%, rgba(243, 248, 251, 0.98) 100%);
}

.announcement-feature-block strong {
    display: block;
    margin-bottom: 10px;
    color: var(--brand-deep);
    font-size: 14px;
    letter-spacing: -.01em;
}

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

.announcement-feature-item {
    padding: 11px 12px;
    border-radius: 14px;
    border: 1px solid rgba(218, 229, 237, 0.94);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.announcement-feature-item span {
    display: block;
    color: #1d4566;
    font-size: 13px;
    font-weight: 800;
}

.announcement-feature-item small {
    display: block;
    margin-top: 5px;
    color: #607386;
    font-size: 12px;
    line-height: 1.55;
}

.announcement-contact {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.announcement-contact span {
    color: #36536d;
    font-size: 13px;
    font-weight: 800;
}

.announcement-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(620px 320px at 22% 10%, rgba(70, 137, 214, 0.18) 0%, transparent 62%),
        rgba(11, 20, 33, 0.50);
    backdrop-filter: blur(10px);
    overscroll-behavior: contain;
}

.popup-modal {
    width: min(1200px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 18px;
    border-radius: 28px;
    border: 1px solid rgba(210, 224, 234, 0.92);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.995) 0%, rgba(244, 249, 252, 0.985) 100%);
    box-shadow: 0 34px 86px rgba(10, 22, 35, 0.26);
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
}

.popup-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 2;
    margin: -4px -4px 4px;
    padding: 6px 6px 14px;
    background: linear-gradient(180deg, rgba(245, 250, 253, 0.995) 0%, rgba(245, 250, 253, 0.96) 72%, rgba(245, 250, 253, 0) 100%);
    backdrop-filter: blur(8px);
}

.popup-close {
    border: 1px solid #d8e5ee;
    background: linear-gradient(180deg, #ffffff 0%, #f4f8fb 100%);
    border-radius: 999px;
    padding: 8px 12px;
    cursor: pointer;
    font-weight: 700;
    transition: background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.popup-close:hover {
    transform: translateY(-1px);
    background: #f8fbfd;
    box-shadow: 0 10px 20px rgba(13, 32, 55, 0.08);
}

.popup-section {
    margin-top: 14px;
    padding: 14px;
    border-radius: 20px;
    border: 1px solid rgba(214, 226, 235, 0.92);
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 10px 26px rgba(18, 34, 57, 0.04);
    position: relative;
    overflow: hidden;
    content-visibility: auto;
    contain-intrinsic-size: 280px;
}

.dialog-hero {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dialog-kicker {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--brand);
}

.dialog-title-line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.dialog-title {
    font-size: 28px;
    line-height: 1.05;
    font-weight: 800;
    color: var(--brand-deep);
    letter-spacing: -.03em;
}

.dialog-local {
    font-size: 14px;
    color: var(--muted);
    font-weight: 700;
}

.dialog-meta-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dialog-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #d9e5ef;
    background: linear-gradient(180deg, #fbfdfe 0%, #f4f8fb 100%);
    color: #35506c;
    font-size: 12px;
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.dialog-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dialog-links a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(210, 223, 235, 0.95);
    background: linear-gradient(180deg, #fbfdff 0%, #f3f8fc 100%);
    color: var(--brand);
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.dialog-links a:hover {
    transform: translateY(-1px);
    border-color: #b7cfe1;
    box-shadow: 0 10px 18px rgba(16, 38, 61, 0.08);
}

.dialog-highlight {
    margin-bottom: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid #f2d6b2;
    background: linear-gradient(180deg, #fffaf2 0%, #fff3e5 100%);
    color: #8b4f1a;
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.dialog-vol-badge {
    margin-top: 10px;
}

.dialog-vol-badge span {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 700;
}

.dialog-weather-line {
    margin-top: 10px;
    color: #51667b;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.6;
}

.dialog-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.dialog-section-head h4 {
    margin: 0;
    font-size: 16px;
    color: var(--brand-deep);
    letter-spacing: -.01em;
}

.dialog-section-head span {
    color: var(--muted);
    font-size: 12px;
}

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

.chart-card {
    padding: 10px;
    border-radius: 16px;
    border: 1px solid #e3ebf2;
    background: linear-gradient(180deg, #fcfdff 0%, #f7fbfd 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
    overflow: hidden;
    position: relative;
}

.chart-stage {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.chart-stage-obs {
    height: 260px;
}

.chart-stage-ecmwf {
    height: 360px;
}

.chart-loading {
    height: 100%;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}

.chart-loading-shimmer {
    height: 100%;
    min-height: 120px;
    border-radius: 12px;
    background:
        linear-gradient(90deg, rgba(233, 240, 246, 0.95) 0%, rgba(247, 250, 253, 0.98) 46%, rgba(233, 240, 246, 0.95) 100%);
    background-size: 220% 100%;
    animation: chartShimmer 1.1s linear infinite;
}

.chart-loading-label {
    text-align: center;
    color: #607284;
    font-size: 12px;
    font-weight: 800;
}

.chart-svg {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
}

.mini-chart-svg {
    display: block;
    width: 100%;
    height: auto;
}

.svg-axis-label {
    fill: #7a8896;
    font-size: 10px;
    font-weight: 700;
}

.svg-axis-title {
    fill: #7a8896;
    font-size: 11px;
    font-weight: 800;
}

.svg-axis-title-right {
    font-size: 9px;
    opacity: 0.92;
}

.svg-axis-value {
    font-size: 9px;
    opacity: 0.88;
}

.svg-legend-label {
    fill: #5d6d7c;
    font-size: 10px;
    font-weight: 700;
}

.svg-data-label {
    font-size: 10px;
    font-weight: 700;
}

.dialog-frame {
    border-radius: 16px;
    border: 1px solid #e5edf4;
    background: linear-gradient(180deg, #fcfdff 0%, #f7fbfd 100%);
    -webkit-overflow-scrolling: touch;
}

.ecmwf-fallback {
    padding: 18px;
    color: var(--muted);
}

.mini-chart-grid {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.mini-chart-grid:empty,
.mini-chart-grid[hidden] {
    display: none;
}

.mini-chart-card {
    padding: 10px;
    border-radius: 16px;
    border: 1px solid #e5edf4;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
    position: relative;
    overflow: hidden;
}

.mini-chart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.mini-chart-head strong {
    color: #173754;
    font-size: 12px;
    font-weight: 800;
}

.mini-chart-head span {
    color: #5f7183;
    font-size: 12px;
    font-weight: 800;
}

.mini-chart-empty {
    padding: 20px 0 12px;
    text-align: center;
    color: var(--muted);
    font-size: 12px;
}

.windy-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid #dce7ef;
    background: linear-gradient(180deg, #fbfdff 0%, #f3f8fc 100%);
    cursor: pointer;
    font-weight: 800;
    color: #28415a;
    transition: background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.windy-toggle:hover {
    background: #f1f7fb;
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(16, 38, 61, 0.08);
}

.windy-frame {
    margin-top: 12px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #dce7ef;
    background: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.windy-frame iframe {
    width: 100%;
    height: 260px;
    border: 0;
    display: block;
}

.loading {
    padding: 26px 18px;
    text-align: center;
    color: var(--muted);
    font-weight: 700;
}

@keyframes pulseDot {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(0.82);
        opacity: .76;
    }
}

@keyframes floatCard {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

@keyframes chartShimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -20% 0;
    }
}

code {
    padding: 1px 6px;
    border-radius: 8px;
    background: #eef4f8;
    color: #27425c;
}

*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

*::-webkit-scrollbar-thumb {
    background: #d4e0ea;
    border-radius: 8px;
}

*::-webkit-scrollbar-thumb:hover {
    background: #bdd0de;
}

@media (max-width: 1080px) {
    .top-nav {
        flex-wrap: wrap;
    }

    .top-nav-meta {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .page-hero {
        flex-direction: column;
    }

    .hero-side {
        width: 100%;
        min-width: 0;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .status-strip,
    .dialog-status-strip,
    .metric-grid,
    .city-grid,
    .popup-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .main-content {
        padding: 0 12px 20px;
    }

    .top-nav {
        padding: 10px 14px;
        margin-bottom: 10px;
        border-radius: 0 0 18px 18px;
    }

    .top-nav,
    .page-hero,
    .popup-topbar,
    .dialog-title-line {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-actions,
    .hero-badges,
    .top-nav-meta {
        width: 100%;
    }

    .orderbook-jump-panel,
    .orderbook-jump-actions {
        width: 100%;
    }

    .orderbook-jump-panel,
    .orderbook-jump-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .orderbook-city-select {
        width: 100%;
        min-width: 0;
    }

    .top-nav-meta {
        justify-content: flex-start;
    }

    .nav-actions {
        gap: 6px;
    }

    .nav-btn,
    .nav-chip {
        font-size: 10px;
    }

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

    .page-hero h1 {
        font-size: 28px;
        max-width: none;
    }

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

    .status-strip,
    .dialog-status-strip,
    .metric-grid,
    .metric-grid.three,
    .city-grid,
    .popup-grid,
    .mini-chart-grid {
        grid-template-columns: 1fr;
    }

    .popup-overlay {
        padding: 10px;
    }

    .announcement-overlay {
        padding: 8px 10px;
    }

    .announcement-modal {
        width: min(420px, calc(100vw - 24px));
        max-height: calc(100vh - 52px);
        border-radius: 20px;
    }

    .announcement-topbar {
        padding: 12px 12px 0;
    }

    .announcement-card {
        padding: 8px 12px 12px;
    }

    .announcement-card h3 {
        margin-bottom: 6px;
        font-size: 20px;
    }

    .announcement-card p {
        font-size: 13px;
        line-height: 1.5;
    }

    .announcement-intro {
        margin-bottom: 10px;
        padding: 9px 10px 9px 12px;
        border-left-width: 4px;
    }

    .announcement-feature-block {
        padding: 10px;
    }

    .announcement-feature-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .announcement-feature-item {
        padding: 8px 9px;
    }

    .announcement-feature-item span {
        font-size: 11px;
    }

    .announcement-feature-item small {
        font-size: 10px;
        line-height: 1.35;
    }

    .announcement-contact,
    .announcement-actions {
        gap: 6px;
    }

    .announcement-actions {
        margin-top: 10px;
    }

    .popup-modal {
        width: calc(100vw - 20px);
        max-height: calc(100vh - 20px);
        padding: 14px;
        border-radius: 18px;
    }

    .popup-topbar {
        margin: -2px -2px 0;
        padding: 2px 2px 10px;
    }

    .popup-section {
        margin-top: 12px;
        padding: 12px;
        border-radius: 16px;
    }

    .chart-card,
    .mini-chart-card {
        padding: 8px;
    }

    .chart-stage-obs {
        height: 236px;
    }

    .chart-stage-ecmwf {
        height: 320px;
    }
}

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

    .nav-btn,
    .analysis-link,
    .popup-close,
    .windy-toggle,
    .tool-card-social,
    .chart-loading-shimmer,
    .hero-stat-card,
    .nav-chip-dot {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}
