:root {
    --canvas: #ffffff;
    --canvas-subtle: #f6f8fa;
    --border: #d0d7de;
    --border-muted: #d8dee4;
    --border-subtle: #eaeef2;
    --text: #24292f;
    --muted: #57606a;
    --accent: #0969da;
    --success: #2da44e;
    --success-hover: #2c974b;
    --success-soft: #dafbe1;
    --danger: #cf222e;
    --danger-soft: #ffebe9;
    --warning: #9a6700;
    --warning-soft: #fff8c5;
    --shadow: 0 8px 24px rgba(140, 149, 159, 0.18);
    --shadow-small: 0 1px 2px rgba(27, 31, 36, 0.08);
    --radius: 6px;
    --radius-lg: 8px;
    --focus: 0 0 0 3px rgba(9, 105, 218, 0.18);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    min-height: 100vh;
    padding: 32px 20px;
    background: var(--canvas-subtle);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

button,
input,
textarea {
    font: inherit;
    letter-spacing: 0;
}

button {
    touch-action: manipulation;
}

svg {
    max-width: 100%;
}

[hidden] {
    display: none !important;
}

.landing-shell,
.page-shell {
    width: min(100%, 1120px);
    margin: 0 auto;
}

.landing-shell {
    display: grid;
    min-height: calc(100vh - 64px);
    align-items: center;
}

.landing-shell-investor {
    gap: 24px;
    align-items: stretch;
    padding: 16px 0 32px;
}

.landing-card,
.page-card,
.section-card,
.live-price-card,
.kline-card,
.market-panel,
.market-history-card,
.market-orders-card,
.nodes-panel,
.bots-panel,
.admin-auth-card,
.admin-access-card,
.admin-section,
.process-speed-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--canvas);
    box-shadow: var(--shadow-small);
}

.landing-card {
    display: grid;
    justify-items: start;
    gap: 20px;
    max-width: 860px;
    padding: 56px;
}

.landing-hero,
.landing-section,
.landing-cta {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    background: var(--canvas);
    box-shadow: var(--shadow-small);
}

.landing-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    gap: 32px;
    align-items: center;
    min-height: 620px;
    padding: 48px;
    overflow: hidden;
    background:
        radial-gradient(circle at 78% 22%, rgba(45, 164, 78, 0.16), transparent 32%),
        linear-gradient(135deg, #ffffff 0%, #f4f7f2 52%, #eef5ff 100%);
}

.landing-hero-copy,
.landing-section-head,
.landing-cta {
    display: grid;
    gap: 16px;
}

.landing-hero h1,
.landing-section h2,
.landing-cta h2 {
    margin: 0;
    color: var(--text);
    letter-spacing: 0;
}

.landing-hero h1 {
    max-width: 760px;
    font-size: 62px;
    line-height: 1.02;
}

.landing-hero-lead {
    max-width: 700px;
}

.landing-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 4px;
}

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

.landing-metrics div {
    min-width: 0;
    padding: 16px;
    border: 1px solid rgba(27, 31, 36, 0.08);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.72);
}

.landing-metrics dt {
    color: var(--text);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.1;
}

.landing-metrics dd {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
}

.landing-visual {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 430px;
    border: 1px solid rgba(27, 31, 36, 0.08);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(rgba(9, 105, 218, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(9, 105, 218, 0.08) 1px, transparent 1px),
        rgba(255, 255, 255, 0.68);
    background-size: 34px 34px;
    overflow: hidden;
}

.landing-visual-cover {
    min-height: 0;
    padding: 18px;
    border-color: transparent;
    background: transparent;
}

.landing-visual-cover::before,
.landing-visual-cover::after {
    display: none;
}

.landing-visual-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: calc(var(--radius-lg) - 6px);
}

.landing-visual::before,
.landing-visual::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(45, 164, 78, 0.26);
    border-radius: 50%;
}

.landing-visual::before {
    width: 280px;
    height: 280px;
}

.landing-visual::after {
    width: 390px;
    height: 390px;
}

.landing-visual-core,
.landing-visual-node {
    position: relative;
    z-index: 1;
    border: 1px solid rgba(27, 31, 36, 0.12);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 34px rgba(27, 31, 36, 0.10);
}

.landing-visual-core {
    display: grid;
    justify-items: center;
    gap: 8px;
    width: 180px;
    padding: 24px 18px;
    border-radius: var(--radius-lg);
    text-align: center;
}

.landing-visual-core img {
    display: block;
    width: 72px;
    height: 72px;
}

.landing-visual-core strong {
    font-size: 28px;
    line-height: 1;
}

.landing-visual-core span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
}

.landing-visual-node {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.landing-visual-node-a { top: 62px; left: 50%; transform: translateX(-50%); }
.landing-visual-node-b { top: 154px; right: 36px; }
.landing-visual-node-c { right: 58px; bottom: 94px; }
.landing-visual-node-d { bottom: 48px; left: 50%; transform: translateX(-50%); }
.landing-visual-node-e { bottom: 108px; left: 44px; }
.landing-visual-node-f { top: 150px; left: 34px; }

.landing-section,
.landing-cta {
    padding: 36px;
}

.landing-section-head {
    max-width: 820px;
}

.landing-section h2,
.landing-cta h2 {
    font-size: 34px;
    line-height: 1.15;
}

.landing-section p,
.landing-cta p,
.landing-feature-card p,
.landing-flow-list p,
.landing-check-list,
.landing-risk-list {
    color: var(--muted);
}

.landing-section-head p,
.landing-cta p {
    margin: 0;
    font-size: 17px;
    line-height: 1.65;
}

.landing-feature-grid,
.landing-split-grid {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

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

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

.landing-feature-card {
    display: grid;
    align-content: start;
    gap: 12px;
    padding: 20px;
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-lg);
    background: var(--canvas-subtle);
}

.landing-feature-card h3,
.landing-flow-list strong {
    margin: 0;
    color: var(--text);
    font-size: 19px;
    line-height: 1.25;
}

.landing-feature-card p,
.landing-flow-list p {
    margin: 0;
    line-height: 1.6;
}

.landing-market-card,
.landing-buyback-card {
    background: linear-gradient(180deg, #ffffff 0%, #f6f8fa 100%);
}

.landing-flow-list {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.landing-flow-list li {
    display: grid;
    gap: 10px;
    min-width: 0;
    padding: 20px;
    border: 1px solid rgba(45, 164, 78, 0.22);
    border-radius: var(--radius-lg);
    background: rgba(218, 251, 225, 0.35);
}

.landing-flow-list span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #2da44e;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
}

.landing-check-list,
.landing-risk-list {
    display: grid;
    gap: 12px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.landing-check-list li,
.landing-risk-list li {
    position: relative;
    padding: 14px 16px 14px 42px;
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-lg);
    background: var(--canvas-subtle);
    line-height: 1.55;
}

.landing-check-list li::before,
.landing-risk-list li::before {
    position: absolute;
    left: 16px;
    top: 14px;
    font-weight: 700;
}

.landing-check-list li::before {
    content: "+";
    color: var(--success);
}

.landing-risk-list li::before {
    content: "!";
    color: var(--warning);
}

.landing-check-list strong {
    color: var(--text);
}

.landing-risk-section {
    border-color: rgba(154, 103, 0, 0.24);
    background: #fffdf4;
}

.landing-cta {
    background:
        radial-gradient(circle at 88% 12%, rgba(9, 105, 218, 0.14), transparent 28%),
        linear-gradient(135deg, #ffffff 0%, #f2fbf5 100%);
}

.landing-card-wide {
    max-width: 760px;
}

.eyebrow {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1 {
    margin: 0;
    color: var(--text);
    font-size: 56px;
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: 0;
}

.lead-text,
.page-lead {
    margin: 0;
    max-width: 760px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.6;
}

.site-footer {
    width: min(100%, 1120px);
    margin: 16px auto 0;
}

.site-footer-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 4px 0;
    border-top: 1px solid var(--border-subtle);
    color: var(--muted);
}

.site-footer-brand-block {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.site-footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
}

.site-footer-logo {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.site-footer-brand:hover {
    text-decoration: none;
}

.site-footer-copy {
    margin: 0;
    font-size: 13px;
    line-height: 1;
}

.site-footer-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    flex-wrap: wrap;
}

.site-footer-link,
.site-footer-button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 13px;
    line-height: 1.4;
    text-decoration: none;
    cursor: pointer;
}

.site-footer-link:hover,
.site-footer-button:hover {
    color: var(--text);
    text-decoration: none;
}

.site-footer-button:focus-visible,
.site-footer-link:focus-visible {
    outline: none;
    box-shadow: var(--focus);
    border-radius: var(--radius);
}

.button-row,
.page-footer-links {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.enter-button,
.secondary-link,
.menu-bar-link,
.market-all-button,
.telegram-login-menu-link,
.telegram-login-menu-button,
.telegram-login-logout-button,
.telegram-login-bybit-save-button,
.admin-action-button,
.admin-logout-button,
.market-cancel-button,
.market-buy-button,
.market-confirm-no-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 6px 14px;
    border: 1px solid rgba(27, 31, 36, 0.15);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease, color 120ms ease;
}

.enter-button {
    background: var(--success);
    color: #ffffff;
    box-shadow: var(--shadow-small);
}

.enter-button:hover {
    background: var(--success-hover);
    color: #ffffff;
    text-decoration: none;
}

.secondary-link,
.menu-bar-link,
.market-all-button,
.telegram-login-menu-link,
.telegram-login-menu-button,
.telegram-login-logout-button,
.market-confirm-no-button,
.admin-logout-button,
.admin-action-button-secondary {
    background: var(--canvas-subtle);
    color: var(--text);
}

.secondary-link:hover,
.menu-bar-link:hover,
.market-all-button:hover,
.telegram-login-menu-link:hover,
.telegram-login-menu-button:hover,
.telegram-login-logout-button:hover,
.market-confirm-no-button:hover,
.admin-logout-button:hover,
.admin-action-button-secondary:hover {
    background: #f3f4f6;
    border-color: rgba(27, 31, 36, 0.24);
    text-decoration: none;
}

.enter-button:focus-visible,
.secondary-link:focus-visible,
.menu-bar-link:focus-visible,
.market-all-button:focus-visible,
.telegram-login-button:focus-visible,
.telegram-login-profile-trigger:focus-visible,
.telegram-login-menu-link:focus-visible,
.telegram-login-menu-button:focus-visible,
.telegram-login-logout-button:focus-visible,
.telegram-login-bybit-save-button:focus-visible,
.admin-action-button:focus-visible,
.admin-logout-button:focus-visible,
.market-cancel-button:focus-visible,
.market-buy-button:focus-visible,
.market-confirm-no-button:focus-visible,
.process-speed-toggle-button:focus-visible,
.nodes-panel-tab:focus-visible,
.market-input:focus,
.telegram-login-bybit-input:focus,
.admin-control-input:focus {
    outline: none;
    box-shadow: var(--focus);
}

.page-card {
    padding: 32px;
}

.page-card-compact {
    padding: 24px;
}

.page-header {
    max-width: 840px;
}

.page-header-compact {
    max-width: none;
    text-align: center;
}

.page-header-cover {
    position: relative;
    padding: 18px 12px 10px;
    border-radius: 18px;
    background-color: #ffffff;
    overflow: hidden;
}

.page-header-cover::before,
.page-header-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.page-header-cover::before {
    background-image: url("/assets/ETHpool_cover.webp");
    background-position: center 42%;
    background-repeat: no-repeat;
    background-size: 41% auto;
    opacity: 0.5;
}

.page-header-cover::after {
    background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.2) 38%, rgba(255, 255, 255, 0.2) 62%, rgba(255, 255, 255, 0.95) 100%);
}

.page-header-cover .page-title {
    color: var(--text);
    text-shadow: none;
}

.page-title-link {
    color: inherit;
    text-decoration: none;
}

.page-title-link:hover,
.page-title-link:focus-visible {
    text-decoration: none;
}

.page-header-cover .page-header,
.page-header-cover .price-strip {
    position: relative;
    z-index: 1;
}

.page-header-cover .price-strip {
    margin-top: 6px;
}

.page-title {
    margin: 0;
    color: var(--text);
    font-size: 40px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: 0;
}

.page-lead {
    margin-top: 12px;
}

.section-grid {
    display: grid;
    gap: 16px;
    margin-top: 28px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.section-card {
    padding: 20px;
}

.section-card h2 {
    margin: 0 0 8px;
    font-size: 20px;
    line-height: 1.25;
}

.section-card p,
.section-card li {
    color: var(--muted);
    line-height: 1.6;
}

.section-card p {
    margin: 0;
}

.section-card ul {
    margin: 0;
    padding-left: 20px;
}

.about-content {
    margin-top: 28px;
}

.about-section + .about-section {
    margin-top: 28px;
}

.about-section h2 {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.25;
}

.about-section p,
.about-section li {
    color: var(--muted);
    line-height: 1.65;
}

.about-section p {
    margin: 0;
}

.about-section p + p,
.about-section p + ul,
.about-section ul + p {
    margin-top: 12px;
}

.about-section ul {
    margin: 0;
    padding-left: 20px;
}

.price-strip {
    display: grid;
    justify-items: center;
    gap: 4px;
    margin-top: 10px;
}

.price-strip-value {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0;
    font-size: 34px;
    font-weight: 600;
    line-height: 1.1;
    color: var(--text);
}

.price-strip-price {
    color: var(--text);
}

.price-strip-change {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 4px 14px;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    transform: translateY(4px);
}

.price-strip-change[data-direction="up"] {
    color: #1a7f37;
    background: rgba(26, 127, 55, 0.10);
    border-color: rgba(26, 127, 55, 0.25);
}

.price-strip-change[data-direction="down"] {
    color: #cf222e;
    background: rgba(207, 34, 46, 0.10);
    border-color: rgba(207, 34, 46, 0.25);
}

.live-price-card,
.kline-card,
.market-panel,
.market-history-card,
.market-orders-card,
.nodes-panel,
.bots-panel {
    margin-top: 24px;
    padding: 20px;
}

.live-price-head,
.kline-card-head,
.market-panel-head,
.market-orders-head,
.bots-panel-head,
.admin-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.live-price-title,
.kline-title,
.market-panel-title,
.bots-panel-title,
.admin-section-title {
    margin: 0;
    color: var(--text);
    font-size: 24px;
    line-height: 1.25;
    font-weight: 600;
}

.live-status,
.bot-card-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--canvas-subtle);
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
    white-space: nowrap;
}

.live-status[data-tone="live"],
.bot-card-status[data-state="running"],
.bot-card-status[data-state="new"],
.bot-card-status[data-state="initializing"] {
    color: #116329;
    background: var(--success-soft);
    border-color: #aceebb;
}

.live-status[data-tone="pending"],
.bot-card-status[data-state="cancelling"] {
    color: var(--warning);
    background: var(--warning-soft);
    border-color: #d4a72c;
}

.live-status[data-tone="error"] {
    color: var(--danger);
    background: var(--danger-soft);
    border-color: #ff8182;
}

.live-price-grid,
.kline-summary-grid {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.live-price-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
}

.live-price-main,
.live-price-stat,
.kline-summary-item,
.market-step,
.nodes-creation-progress,
.node-popover-metric,
.admin-total-progress-card,
.bot-card,
.telegram-login-menu-note {
    border: 1px solid var(--border-muted);
    border-radius: var(--radius);
    background: var(--canvas-subtle);
}

.live-price-main,
.live-price-stat,
.kline-summary-item,
.market-step,
.nodes-creation-progress,
.admin-total-progress-card,
.bot-card {
    padding: 16px;
}

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

.live-price-stat-wide,
.kline-summary-wide {
    grid-column: 1 / -1;
}

.live-price-label,
.live-price-stat-label,
.kline-summary-label,
.process-speed-caption,
.admin-control-label,
.bot-card-metric-label,
.node-popover-label,
.market-panel-eyebrow {
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.live-price-value {
    margin: 8px 0 0;
    font-size: 44px;
    font-weight: 700;
    line-height: 1.05;
}

.live-price-change,
.market-panel-copy,
.market-orders-empty,
.bots-panel-note,
.nodes-panel-note,
.admin-auth-status,
.admin-section-note,
.admin-section-count,
.process-speed-range,
.process-speed-updated {
    color: var(--muted);
}

.live-price-change {
    margin: 10px 0 0;
    font-size: 16px;
}

.live-price-change[data-direction="up"] {
    color: #116329;
}

.live-price-change[data-direction="down"] {
    color: var(--danger);
}

.live-price-stat strong,
.kline-summary-item strong {
    display: block;
    margin-top: 8px;
    color: var(--text);
    font-size: 18px;
}

.kline-card-compact {
    margin-top: 12px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.kline-chart-wrap {
    margin-top: 16px;
}

.kline-chart-wrap-compact {
    margin-top: 4px;
}

.kline-chart-surface {
    position: relative;
    z-index: 1;
    min-height: 280px;
    overflow-x: auto;
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-lg);
    background: var(--canvas);
}

.kline-card-compact .kline-chart-surface {
    border-color: var(--border-subtle);
    overflow: hidden;
}

.kline-chart {
    display: block;
    width: 100%;
    height: 280px;
}

.kline-candle,
.kline-hitbox {
    cursor: pointer;
}

.kline-candle:focus {
    outline: none;
}

.kline-candle:focus rect:not(.kline-hitbox),
.kline-candle:hover rect:not(.kline-hitbox) {
    filter: brightness(0.95);
}

.menu-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 20;
    gap: 16px;
    margin-top: 18px;
    padding: 0;
    border: 0;
    background: transparent;
}

.menu-bar-links {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
    padding: 4px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    background: #eef2f7;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.menu-bar-link {
    min-height: 36px;
    padding: 7px 16px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #5b6677;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    box-shadow: none;
}

.menu-bar-link:hover {
    background: rgba(255, 255, 255, 0.55);
    border-color: transparent;
    color: var(--text);
}

.menu-bar-link[aria-current="page"] {
    background: #ffffff;
    color: #111827;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(15, 23, 42, 0.06);
}

.menu-bar-link[aria-current="page"]:hover {
    background: #ffffff;
}

.menu-bar-link:focus-visible {
    border-color: transparent;
    box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.18);
}

.menu-bar + .nodes-panel {
    margin-top: 14px;
}

.nodes-panel-intro {
    margin-top: 14px;
    max-width: none;
}

.nodes-panel-intro + .nodes-panel {
    margin-top: 14px;
}

.telegram-login-panel {
    display: grid;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    z-index: 21;
    gap: 6px;
    min-width: 0;
}

.telegram-login-status {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
    text-align: right;
}

.telegram-login-widget {
    min-width: 0;
    justify-self: end;
    position: relative;
    z-index: 22;
}

.telegram-login-widget[hidden],
.telegram-login-profile[hidden] {
    display: none !important;
}

.telegram-login-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 23;
    gap: 8px;
    min-height: 34px;
    padding: 6px 14px;
    border: 1px solid rgba(27, 31, 36, 0.15);
    border-radius: var(--radius);
    background: #0969da;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--shadow-small);
}

.telegram-login-button:hover {
    background: #0757b8;
    text-decoration: none;
}

.telegram-login-button-compact {
    min-height: 32px;
    padding: 5px 10px;
    font-size: 12px;
}

.telegram-login-button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.telegram-login-button-compact .telegram-login-button-icon {
    width: 16px;
    height: 16px;
}

.telegram-login-button-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.telegram-login-button-label {
    white-space: nowrap;
}

.telegram-login-profile {
    position: relative;
    justify-self: end;
}

.telegram-login-profile-trigger {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.telegram-login-profile-metrics {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.telegram-login-profile-balance,
.telegram-login-profile-node-balance {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #5b6677;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.telegram-login-profile-balance-value,
.telegram-login-profile-node-balance-value {
    color: #111827;
    font-weight: 700;
}

.telegram-login-avatar-image,
.telegram-login-avatar-fallback {
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.telegram-login-avatar-image {
    object-fit: cover;
    border: 1px solid var(--border);
}

.telegram-login-avatar-fallback {
    display: grid;
    place-items: center;
    background: var(--canvas-subtle);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
}

.telegram-login-profile-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    display: grid;
    gap: 8px;
    min-width: 220px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--canvas);
    box-shadow: var(--shadow);
    z-index: 30;
}

.telegram-login-profile-name {
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
}

.telegram-login-profile-meta,
.telegram-login-menu-note-text,
.telegram-login-menu-copy-status,
.telegram-login-bybit-message {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.telegram-login-menu-copy-status {
    color: #116329;
}

.telegram-login-menu-note {
    display: grid;
    gap: 6px;
    padding: 10px 12px;
}

.telegram-login-menu-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.telegram-login-menu-inline-link,
.telegram-login-menu-inline-button {
    color: var(--accent);
    font: inherit;
    font-weight: 600;
}

.telegram-login-menu-inline-link {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

.telegram-login-menu-inline-link:hover {
    opacity: 0.86;
}

.telegram-login-menu-bybit-logo {
    display: block;
    width: 42px;
    height: auto;
}

.telegram-login-menu-inline-button {
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.telegram-login-bybit-save-button,
.admin-action-button {
    background: var(--success);
    color: #ffffff;
}

.telegram-login-bybit-save-button:hover,
.admin-action-button:hover {
    background: var(--success-hover);
    text-decoration: none;
}

.telegram-login-bybit-form {
    display: grid;
    gap: 8px;
    margin-top: 2px;
}

.telegram-login-bybit-input,
.market-input,
.admin-control-input {
    width: 100%;
    min-width: 0;
    min-height: 36px;
    padding: 7px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--canvas);
    color: var(--text);
    font: inherit;
}

.telegram-login-bybit-input::placeholder,
.market-input::placeholder,
.admin-control-input::placeholder {
    color: #6e7781;
}

.telegram-login-bybit-save-button[disabled],
.market-cancel-button[disabled],
.market-buy-button[disabled],
.market-confirm-no-button[disabled],
.enter-button[disabled],
.admin-action-button[disabled] {
    opacity: 0.7;
    cursor: wait;
}

.telegram-login-disabled .telegram-login-widget {
    display: none;
}

.market-panel-copy {
    margin: 12px 0 0;
    line-height: 1.6;
}

.market-status,
.admin-action-status {
    margin: 16px 0 0;
    padding: 10px 12px;
    border: 1px solid var(--border-muted);
    border-radius: var(--radius);
    background: var(--canvas-subtle);
    color: var(--text);
    font-size: 13px;
    line-height: 1.45;
}

.market-status[data-tone="error"] {
    color: var(--danger);
    background: var(--danger-soft);
    border-color: #ff8182;
}

.market-status[data-tone="success"] {
    color: #116329;
    background: var(--success-soft);
    border-color: #aceebb;
}

.market-form {
    display: grid;
    gap: 16px;
    margin-top: 18px;
}

.market-step {
    display: grid;
    gap: 12px;
}

.market-label {
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
}

.market-input-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.market-balance,
.market-hint {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.tether-badge {
    display: inline-block;
    width: 0.95em;
    height: 0.95em;
    flex: 0 0 auto;
    vertical-align: -0.12em;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Ccircle cx='32' cy='32' r='32' fill='%2326A17B'/%3E%3Cpath fill='%23fff' d='M37.9 27.2v-5.3h12.2v-8H13.9v8H26v5.3C15.9 27.7 8.3 29.9 8.3 32.5c0 2.7 7.6 4.9 17.7 5.3v17h11.9v-17c10-.4 17.6-2.6 17.6-5.3 0-2.6-7.6-4.8-17.6-5.3zm0 8.7c-.3 0-1.8.1-4.9.1-2.5 0-4.2-.1-4.9-.1-9.7-.4-16.9-2-16.9-3.9 0-1.9 7.2-3.5 16.9-3.9v6.1c.7.1 2.5.2 4.9.2 2.9 0 4.5-.1 4.9-.2v-6.1c9.7.4 16.9 2 16.9 3.9 0 1.9-7.2 3.5-16.9 3.9z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.market-price-value {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.market-orders-empty {
    margin: 14px 0 0;
    line-height: 1.6;
}

.market-orders-table-wrap,
.admin-table-wrap {
    margin-top: 16px;
    overflow-x: auto;
}

.market-cancel-button {
    color: var(--danger);
    background: var(--danger-soft);
    border-color: #ff8182;
}

.market-cancel-button:hover {
    background: #ffd7d5;
    text-decoration: none;
}

.market-buy-button {
    color: #ffffff;
    background: var(--success);
}

.market-buy-button:hover {
    background: var(--success-hover);
    text-decoration: none;
}

.market-confirm-box {
    display: grid;
    gap: 8px;
    max-width: 280px;
}

.market-confirm-text {
    margin: 0;
    color: var(--text);
    font-size: 13px;
    line-height: 1.45;
}

.market-confirm-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.market-history-note {
    max-width: 680px;
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.6;
}

.market-history-card {
    background:
        radial-gradient(circle at 88% 6%, rgba(45, 164, 78, 0.10), transparent 26%),
        var(--canvas);
}

.market-history-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.28fr) minmax(292px, 0.72fr);
    gap: 16px;
    margin-top: 18px;
    align-items: stretch;
}

.market-history-chart-card,
.market-history-list {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.78);
}

.market-history-chart-card {
    display: grid;
    align-items: center;
    min-width: 0;
    padding: 16px 18px 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.market-history-chart {
    display: block;
    width: 100%;
    min-height: 280px;
    aspect-ratio: 760 / 280;
    overflow: visible;
}

.market-history-gridline,
.market-history-axis {
    stroke: rgba(15, 23, 42, 0.10);
    stroke-width: 1;
}

.market-history-line {
    fill: none;
    stroke: #2da44e;
    stroke-width: 3.25;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.market-history-point {
    fill: #2da44e;
    stroke: #ffffff;
    stroke-width: 2.25;
}

.market-history-label {
    fill: #6b7280;
    font-size: 11px;
    font-weight: 700;
}

.market-history-value-label {
    fill: #0f172a;
    font-size: 11px;
    font-weight: 700;
}

.market-history-list {
    display: grid;
    align-content: start;
    gap: 8px;
    padding: 12px;
    max-height: 380px;
    overflow: auto;
    scrollbar-gutter: stable;
}

.market-history-item {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.market-history-item-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.market-history-item-price {
    margin: 0;
    color: var(--text);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
}

.market-history-item-meta,
.market-history-item-date {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.market-history-item-date {
    flex: 0 0 auto;
    padding: 3px 7px;
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
    background: var(--canvas-subtle);
    font-size: 9px;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
}

.nodes-panel {
    position: relative;
    z-index: 1;
}

.nodes-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.nodes-panel-eta-menu {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    flex: 0 1 auto;
    max-width: 100%;
    padding: 4px 8px 4px 4px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    background: #eef2f7;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.nodes-panel-eta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    appearance: none;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 8px;
    background: #ffffff;
    color: #111827;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(15, 23, 42, 0.06);
    cursor: pointer;
}

.nodes-panel-eta-icon svg {
    width: 16px;
    height: 16px;
}

.nodes-panel-eta-icon:hover {
    background: #f8fafc;
}

.nodes-panel-eta-icon:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.18), 0 1px 2px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(15, 23, 42, 0.06);
}

.nodes-panel-eta-copy {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: nowrap;
    min-width: 0;
    gap: 6px;
    color: #5b6677;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

.nodes-panel-menu {
    display: inline-flex;
    align-items: stretch;
    gap: 4px;
    width: auto;
    flex: 0 1 auto;
    max-width: 100%;
    margin-left: auto;
    padding: 4px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    background: #eef2f7;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.nodes-panel-eta-label {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    white-space: nowrap;
}

.nodes-panel-eta-value {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    white-space: nowrap;
}

.nodes-panel-eta-history {
    display: grid;
    gap: 8px;
    width: 100%;
    margin-top: 10px;
}

.nodes-panel-eta-history-card {
    display: grid;
    gap: 8px;
    padding: 12px 14px 10px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, #f8fbff 100%);
}

.nodes-panel-eta-history-copy {
    display: grid;
    gap: 4px;
    max-width: 360px;
}

.nodes-panel-eta-history-title {
    margin: 0;
    color: #0f172a;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
}

.nodes-panel-eta-history-note {
    margin: 0;
    color: #667085;
    font-size: 13px;
    line-height: 1.45;
}

.nodes-panel-eta-history-empty {
    margin: 0;
    color: #667085;
    font-size: 12px;
    line-height: 1.35;
}

.nodes-panel-eta-history-chart {
    display: block;
    width: 100%;
    min-height: 190px;
    aspect-ratio: 420 / 190;
    box-sizing: border-box;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
}

.nodes-panel-eta-history-axis {
    stroke: rgba(15, 23, 42, 0.12);
    stroke-width: 1;
}

.nodes-panel-eta-history-wick {
    stroke: rgba(15, 23, 42, 0.4);
    stroke-width: 2;
    stroke-linecap: round;
}

.nodes-panel-eta-history-candle {
    fill: #dbe4ee;
    stroke: rgba(15, 23, 42, 0.14);
    stroke-width: 1;
}

.nodes-panel-eta-history-candle.is-positive {
    fill: #34d399;
    stroke: rgba(5, 150, 105, 0.3);
}

.nodes-panel-eta-history-candle.is-negative {
    fill: #f97316;
    stroke: rgba(194, 65, 12, 0.3);
}

.nodes-panel-eta-history-candle.is-live {
    filter: brightness(1.02);
}

.nodes-panel-eta-history-label {
    fill: #667085;
    font-size: 11px;
    font-weight: 700;
}

.nodes-panel-eta-history-value {
    fill: #111827;
    font-size: 11px;
    font-weight: 700;
}

.nodes-panel-tabs {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.nodes-panel-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 7px 16px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #5b6677;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    box-shadow: none;
    cursor: pointer;
}

.nodes-panel-tab:last-child {
    border-right: 0;
}

.nodes-panel-tab:hover {
    background: rgba(255, 255, 255, 0.55);
    color: var(--text);
}

.nodes-panel-tab.is-active {
    background: #ffffff;
    color: #111827;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(15, 23, 42, 0.06);
}

.nodes-panel-title {
    margin: 0;
    font-size: inherit;
    line-height: inherit;
}

.nodes-panel-status {
    position: relative;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    min-height: 12px;
    min-width: 176px;
    text-align: right;
}

.nodes-panel-status[data-loading="1"] {
    color: transparent;
}

.nodes-panel-status[data-loading="1"]::before {
    content: "";
    position: absolute;
    inset: 50% 0 auto;
    height: 2px;
    border-radius: 999px;
    background: var(--border-muted);
    transform: translateY(-50%);
}

.nodes-panel-status[data-loading="1"]::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 34px;
    height: 2px;
    border-radius: 999px;
    background: var(--success);
    transform: translateY(-50%);
    animation: nodes-status-slider 1.2s ease-in-out infinite;
}

.nodes-panel-rate {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.2;
    min-width: 0;
    text-align: left;
    white-space: nowrap;
}

.nodes-speed-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 36px;
    min-width: 0;
    padding: 0 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #5b6677;
    text-decoration: none;
}

.nodes-speed-mini:hover {
    background: rgba(255, 255, 255, 0.55);
    text-decoration: none;
}

.nodes-panel-menu-sparkline {
    flex: 0 1 auto;
}

.nodes-speed-mini[data-empty="1"] {
    opacity: 0.7;
}

.nodes-speed-mini-chart-surface {
    display: block;
    width: 176px;
    flex: 0 0 176px;
    height: 24px;
}

.nodes-speed-mini-chart-line,
.process-speed-chart-line {
    fill: none;
    stroke: var(--success);
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nodes-speed-mini-chart-line {
    stroke-width: 1.8;
}

.nodes-speed-mini-chart-area,
.process-speed-chart-area {
    fill: rgba(45, 164, 78, 0.12);
}

.nodes-speed-mini-chart-point,
.process-speed-chart-point {
    fill: var(--success);
    stroke: var(--canvas);
}

.nodes-active-list {
    margin-top: 18px;
}

[data-eth-nodes-widget][data-nodes-view="list"] .nodes-grid,
[data-eth-nodes-widget][data-nodes-view="list"] .node-detail-card,
[data-eth-nodes-widget][data-nodes-view="list"] .nodes-flow-map {
    display: none !important;
}

.nodes-active-list-table-wrap {
    margin-top: 18px;
}

.nodes-active-table {
    min-width: 100%;
}

.nodes-active-table-status-cell {
    text-align: center;
}

.nodes-active-status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 0 rgba(45, 164, 78, 0.34);
    animation: nodes-active-status-pulse 1.4s ease-in-out infinite;
}

.nodes-creation-progress {
    display: grid;
    gap: 12px;
}

.nodes-creation-progress-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.nodes-creation-progress-title {
    margin: 0;
    font-size: 15px;
    line-height: 1.2;
}

.nodes-creation-progress-percent {
    color: #116329;
    font-size: 16px;
    line-height: 1;
}

.nodes-creation-progress-meta {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}

.nodes-creation-progress-track {
    position: relative;
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: var(--border-subtle);
}

.nodes-creation-progress-fill {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--success);
    transition: width 240ms ease;
}

.node-detail-card {
    position: absolute;
    z-index: 8;
    width: min(260px, calc(100% - 20px));
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--canvas);
    box-shadow: var(--shadow);
}

.node-detail-card::after {
    content: "";
    position: absolute;
    left: var(--node-popover-arrow-left, 28px);
    width: 14px;
    height: 14px;
    background: var(--canvas);
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    transform: translateX(-50%) rotate(45deg);
}

.node-detail-card[data-placement="top"]::after {
    bottom: -8px;
}

.node-detail-card[data-placement="bottom"]::after {
    top: -8px;
    transform: translateX(-50%) rotate(225deg);
}

.node-popover-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.node-popover-title,
.node-popover-state {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.2;
}

.node-popover-state[data-state="active"] {
    color: #116329;
}

.node-popover-state[data-state="inactive"] {
    color: var(--muted);
}

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

.node-popover-metric {
    padding: 10px;
}

.node-popover-value {
    display: block;
    margin-top: 4px;
    color: var(--text);
    font-size: 16px;
    line-height: 1.2;
}

.node-popover-meta {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.35;
}

.nodes-flow-map {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}

.nodes-flow-path-base {
    fill: none;
    stroke: #8c959f;
    stroke-width: 1.2;
    opacity: 0.38;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nodes-flow-path-stream {
    fill: none;
    stroke: var(--flow-color, #2da44e);
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: calc(var(--flow-segment-length, 36) * 1px) calc(var(--flow-path-length, 220) * 1px);
    stroke-dashoffset: 0;
    animation: node-flow-stream 2.8s linear infinite;
    animation-delay: var(--flow-delay, 0s);
}

.nodes-grid {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 12px;
    margin-top: 20px;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    justify-items: center;
}

.node-tile {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    overflow: visible;
}

.node-progress-inline {
    position: absolute;
    top: 50%;
    left: calc(100% + 6px);
    transform: translateY(-50%);
    color: #116329;
    font-size: 9px;
    line-height: 1;
    font-weight: 600;
    white-space: nowrap;
    pointer-events: none;
}

.node-circle {
    position: relative;
    overflow: hidden;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--canvas-subtle);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.node-tile[data-active="1"] .node-circle {
    border-color: #1a7f37;
    background: radial-gradient(circle at 30% 30%, #aff5b4, #2da44e 58%, #1a7f37 100%);
    box-shadow: 0 0 0 3px rgba(45, 164, 78, 0.12);
}

.node-tile[data-active="1"] .node-circle::after {
    content: "";
    position: absolute;
    inset: 9px;
    z-index: 2;
    border-radius: 999px;
    pointer-events: none;
    background: rgba(36, 41, 47, 0.56);
}

.node-tile[data-active="0"] .node-circle,
.node-tile[data-flow-target="1"][data-active="0"] .node-circle {
    opacity: 1;
    border-color: #8c959f;
    background: linear-gradient(
        to top,
        color-mix(in srgb, var(--node-progress-color, #2da44e) 82%, transparent) 0%,
        color-mix(in srgb, var(--node-progress-color, #2da44e) 68%, transparent) var(--node-progress-percent, 0%),
        var(--canvas-subtle) var(--node-progress-percent, 0%),
        var(--canvas-subtle) 100%
    );
}

.node-tile[data-flow-source="1"] .node-circle,
.node-tile[data-flow-target="1"] .node-circle,
.node-tile[data-selected="1"] .node-circle {
    box-shadow: 0 0 0 4px rgba(45, 164, 78, 0.14);
}

.node-tile[data-flow-target="1"] .node-circle {
    animation: node-work-pulse 2.2s ease-in-out infinite;
}

.node-tile[data-flow-target="1"][data-active="0"] .node-circle::after {
    content: "";
    position: absolute;
    inset: 6px;
    z-index: 2;
    border-radius: 999px;
    pointer-events: none;
    background: rgba(36, 41, 47, 0.32);
}

.node-tile:hover .node-circle {
    transform: translateY(-1px) scale(1.04);
}

.node-tile:focus-visible {
    outline: none;
}

.node-tile:focus-visible .node-circle {
    box-shadow: var(--focus);
}

.process-speed-page {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.process-speed-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 20px;
}

.process-speed-toolbar,
.process-speed-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.process-speed-summary {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.process-speed-value {
    margin: 0;
    font-size: 32px;
    line-height: 1;
    font-weight: 600;
}

.process-speed-toggle {
    display: inline-flex;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--canvas);
}

.process-speed-toggle-button {
    min-height: 34px;
    padding: 6px 14px;
    border: 0;
    border-right: 1px solid var(--border);
    background: var(--canvas);
    color: var(--muted);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.process-speed-toggle-button:last-child {
    border-right: 0;
}

.process-speed-toggle-button:hover {
    background: var(--canvas-subtle);
    color: var(--text);
}

.process-speed-toggle-button.is-active {
    background: var(--accent);
    color: #ffffff;
}

.process-speed-chart-wrap {
    position: relative;
    min-height: 320px;
    padding: 8px 0 0;
}

.process-speed-chart-surface {
    display: block;
    width: 100%;
    height: 320px;
}

.process-speed-chart-grid {
    stroke: var(--border-muted);
    stroke-width: 1;
}

.process-speed-chart-line {
    stroke-width: 3;
}

.process-speed-chart-point {
    stroke-width: 2;
}

.process-speed-chart-candle-wick {
    stroke-width: 2;
    stroke-linecap: round;
}

.process-speed-chart-candle-wick-up {
    stroke: rgba(45, 164, 78, 0.95);
}

.process-speed-chart-candle-wick-down {
    stroke: rgba(207, 34, 46, 0.82);
}

.process-speed-chart-candle-body {
    stroke-width: 1.2;
    cursor: pointer;
}

.process-speed-chart-candle-body-up {
    fill: rgba(45, 164, 78, 0.16);
    stroke: rgba(45, 164, 78, 0.95);
}

.process-speed-chart-candle-body-down {
    fill: rgba(207, 34, 46, 0.12);
    stroke: rgba(207, 34, 46, 0.86);
}

.process-speed-chart-candle-body:focus-visible {
    outline: none;
    stroke-width: 2;
}

.process-speed-tooltip,
.process-speed-current-marker {
    position: absolute;
    z-index: 4;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--canvas);
    box-shadow: var(--shadow);
    pointer-events: none;
}

.process-speed-tooltip {
    min-width: 132px;
    max-width: 180px;
    padding: 10px 12px;
}

.process-speed-tooltip-label,
.process-speed-tooltip-value {
    margin: 0;
}

.process-speed-tooltip-label {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.process-speed-tooltip-value {
    margin-top: 4px;
    color: var(--text);
    font-size: 14px;
    line-height: 1.2;
}

.process-speed-current-marker {
    transform: translateX(-50%);
    padding: 6px 10px;
    color: var(--text);
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
}

.process-speed-empty {
    position: absolute;
    inset: 50% auto auto 50%;
    margin: 0;
    color: var(--muted);
    transform: translate(-50%, -50%);
    text-align: center;
}

.bots-grid {
    display: grid;
    gap: 14px;
    margin-top: 16px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.bot-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.bot-card-symbol {
    margin: 0;
    font-size: 18px;
    line-height: 1.1;
}

.bot-card-id {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.bot-card-metrics {
    display: grid;
    gap: 12px;
    margin-top: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bot-card-metric {
    min-width: 0;
}

.bot-card-metric-value {
    display: block;
    margin-top: 6px;
    color: var(--text);
    font-size: 15px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.admin-page-card {
    padding: 24px;
}

.admin-auth-card,
.admin-access-card,
.admin-section {
    margin-top: 20px;
    padding: 20px;
}

.admin-auth-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.admin-auth-copy,
.admin-widget-host {
    min-width: 0;
}

.admin-auth-title {
    display: block;
    color: var(--text);
    font-size: 16px;
    font-weight: 700;
}

.admin-control-row {
    display: flex;
    align-items: end;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.admin-control-row-compact {
    margin-top: 12px;
}

.admin-control-row-stack {
    align-items: stretch;
}

.admin-control-group {
    display: grid;
    gap: 8px;
    min-width: 180px;
}

.admin-control-group-wide {
    flex: 1 1 100%;
    min-width: min(100%, 520px);
}

.admin-control-textarea {
    min-height: 112px;
    resize: vertical;
    line-height: 1.45;
}

.admin-action-button-secondary {
    color: var(--text);
}

.admin-action-button-danger {
    min-width: 36px;
    padding-left: 12px;
    padding-right: 12px;
    background: var(--danger-soft);
    border-color: #ff8182;
    color: var(--danger);
}

.admin-action-button-danger:hover {
    background: #ffd7d5;
}

.admin-total-progress {
    margin-top: 16px;
}

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

.admin-total-progress-value {
    display: block;
    color: var(--text);
    font-size: 18px;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.admin-table {
    width: 100%;
    min-width: 720px;
    border-spacing: 0;
    border-collapse: separate;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--canvas);
}

.admin-table th,
.admin-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-subtle);
    text-align: left;
    font-size: 13px;
    line-height: 1.45;
    vertical-align: top;
}

.admin-table th {
    color: var(--muted);
    background: var(--canvas-subtle);
    font-size: 12px;
    font-weight: 600;
}

.admin-table td {
    color: var(--text);
}

.admin-table tr:last-child td {
    border-bottom: 0;
}

.admin-table-row-highlight td {
    background: var(--success-soft);
}

.admin-table-row-out-of-range td {
    background: var(--danger-soft);
    color: var(--danger);
}

.admin-table-input {
    min-height: 34px;
    padding: 7px 10px;
    width: 100%;
    min-width: 140px;
}

.admin-table-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-action-button-small {
    min-height: 32px;
    padding: 5px 10px;
    font-size: 12px;
}

@keyframes nodes-active-status-pulse {
    0%,
    100% {
        opacity: 0.9;
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(45, 164, 78, 0.3);
    }

    55% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 0 7px rgba(45, 164, 78, 0);
    }
}

@keyframes node-flow-stream {
    from {
        stroke-dashoffset: 0;
    }

    to {
        stroke-dashoffset: calc((var(--flow-path-length, 220) + var(--flow-segment-length, 36)) * -1px);
    }
}

@keyframes node-work-pulse {
    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }
}

@keyframes nodes-status-slider {
    0% {
        transform: translateY(-50%) translateX(0);
    }

    50% {
        transform: translateY(-50%) translateX(74px);
    }

    100% {
        transform: translateY(-50%) translateX(0);
    }
}

@media (max-width: 980px) {
    body {
        padding: 24px 16px;
    }

    .landing-hero {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .landing-feature-grid,
    .landing-flow-list {
        grid-template-columns: 1fr;
    }

    .live-price-grid {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 760px) {
    .landing-hero h1 {
        font-size: 46px;
    }

    .landing-metrics,
    .landing-split-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 640px) {
    body {
        padding: 16px 12px;
        font-size: 15px;
    }

    .landing-shell {
        min-height: calc(100vh - 32px);
    }

    .landing-shell-investor {
        gap: 16px;
        padding: 0 0 20px;
    }

    .landing-card,
    .page-card,
    .page-card-compact,
    .admin-page-card {
        padding: 20px;
    }

    .landing-hero,
    .landing-section,
    .landing-cta {
        padding: 20px;
    }

    .landing-hero h1 {
        font-size: 38px;
    }

    .landing-section h2,
    .landing-cta h2 {
        font-size: 27px;
    }

    .landing-section-head p,
    .landing-cta p {
        font-size: 16px;
    }

    .landing-visual {
        min-height: 360px;
    }

    .landing-visual-cover {
        min-height: 0;
        padding: 14px;
    }

    .landing-visual::before {
        width: 220px;
        height: 220px;
    }

    .landing-visual::after {
        width: 310px;
        height: 310px;
    }

    .landing-visual-node {
        min-width: 74px;
        min-height: 32px;
        padding: 7px 9px;
        font-size: 11px;
    }

    .landing-visual-node-a { top: 38px; }
    .landing-visual-node-b { top: 132px; right: 12px; }
    .landing-visual-node-c { right: 18px; bottom: 82px; }
    .landing-visual-node-d { bottom: 30px; }
    .landing-visual-node-e { bottom: 92px; left: 12px; }
    .landing-visual-node-f { top: 132px; left: 10px; }

    h1 {
        font-size: 42px;
    }

    .page-title {
        font-size: 30px;
    }

    .lead-text,
    .page-lead {
        font-size: 16px;
    }

    .enter-button,
    .secondary-link,
    .landing-actions .enter-button,
    .landing-actions .secondary-link,
    .market-start-button,
    .market-next-button,
    .market-submit-button,
    .market-all-button {
        width: 100%;
    }

    .site-footer-shell,
    .button-row,
    .page-footer-links {
        align-items: stretch;
        flex-direction: column;
    }

    .live-price-card,
    .kline-card,
    .market-panel,
    .market-history-card,
    .market-orders-card,
    .nodes-panel,
    .bots-panel,
    .process-speed-card,
    .admin-auth-card,
    .admin-access-card,
    .admin-section {
        padding: 16px;
    }

    .live-price-head,
    .kline-card-head,
    .market-panel-head,
    .market-orders-head,
    .nodes-panel-head,
    .bots-panel-head,
    .admin-auth-card,
    .admin-section-head,
    .process-speed-toolbar,
    .process-speed-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .live-price-meta,
    .kline-summary-grid,
    .bot-card-metrics,
    .admin-total-progress-grid {
        grid-template-columns: 1fr;
    }

    .market-history-layout {
        grid-template-columns: 1fr;
    }

    .market-history-chart {
        min-height: 220px;
    }

    .market-history-item-head {
        flex-direction: column;
        gap: 6px;
    }

    .market-history-item-date {
        align-self: flex-start;
    }

    .site-footer-links {
        justify-content: flex-start;
    }

    .menu-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .menu-bar-links {
        width: 100%;
        justify-content: stretch;
    }

    .menu-bar-link {
        flex: 1 1 0;
    }

    .menu-bar + .nodes-panel {
        margin-top: 12px;
    }

    .nodes-panel-intro {
        margin-top: 12px;
    }

    .nodes-panel-intro + .nodes-panel {
        margin-top: 12px;
    }

    .telegram-login-panel {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
    }

    .telegram-login-status {
        text-align: center;
    }

    .telegram-login-widget {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .telegram-login-profile {
        justify-self: center;
    }

    .telegram-login-profile-menu {
        right: 50%;
        transform: translateX(50%);
    }

    .market-input-row {
        grid-template-columns: 1fr;
    }

    .kline-chart-surface,
    .kline-chart {
        min-height: 220px;
        height: 220px;
    }

    .price-strip {
        justify-items: stretch;
    }

    .page-header-cover {
        padding-left: 8px;
        padding-right: 8px;
    }

    .page-header-cover::before {
        background-size: 100% auto;
    }

    .price-strip-value {
        width: 100%;
        gap: 8px;
        flex-wrap: nowrap;
        font-size: 15px;
    }

    .price-strip-price {
        font-size: 17px;
    }

    .price-strip-change {
        flex: 0 0 auto;
        min-height: 24px;
        padding: 4px 10px;
        font-size: 12px;
        transform: translateY(0);
    }

    .kline-card-compact {
        margin-top: 10px;
        margin-left: -20px;
        margin-right: -20px;
    }

    .kline-chart-wrap-compact {
        margin-top: 0;
    }

    .kline-card-compact .kline-chart-surface {
        width: 100%;
        border: 0;
        border-radius: 0;
        background: transparent;
        overflow: hidden;
    }

    .nodes-panel-head {
        align-items: stretch;
    }

    .nodes-panel-menu {
        width: 100%;
        flex-wrap: wrap;
        margin-left: 0;
    }

    .nodes-panel-eta-menu {
        width: 100%;
        padding: 4px 8px 4px 4px;
    }

    .nodes-panel-eta-copy {
        min-width: 0;
        gap: 4px;
        flex-wrap: wrap;
        line-height: 1.2;
    }

    .nodes-panel-eta-label,
    .nodes-panel-eta-value {
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .nodes-panel-tabs {
        width: 100%;
        min-width: 0;
    }

    .nodes-panel-tab {
        flex: 1 1 0;
        min-width: 0;
    }

    .nodes-panel-title {
        min-width: 0;
        overflow-wrap: anywhere;
        text-align: center;
    }

    .nodes-panel-menu-sparkline {
        width: 100%;
        min-width: 0;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        row-gap: 6px;
    }

    .nodes-speed-mini,
    .nodes-panel-rate {
        min-width: 0;
        text-align: left;
    }

    .nodes-panel-rate {
        white-space: nowrap;
        overflow-wrap: normal;
    }

    .nodes-speed-mini-chart-surface {
        width: min(148px, 44vw);
        flex-basis: min(148px, 44vw);
    }

    .node-detail-card {
        width: min(220px, calc(100% - 16px));
    }

    .node-popover-grid {
        grid-template-columns: 1fr;
    }

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

    .node-tile {
        max-width: 72px;
    }

    .process-speed-chart-wrap,
    .process-speed-chart-surface {
        min-height: 250px;
        height: 250px;
    }

    .admin-control-row {
        align-items: stretch;
    }

    .admin-control-group,
    .admin-auth-actions {
        width: 100%;
    }
}



