/* Aethelix mobile token detail — premium chart, intelligence and trade workflow. */
:root {
    --aethelix-bg: var(--web-bg, #000000);
    --aethelix-surface: var(--web-panel, #111113);
    --aethelix-surface-raised: #18181B;
    --aethelix-blue: #273CFF;
    --aethelix-violet: #8B5CF6;
    --aethelix-border: rgba(255, 255, 255, .10);
    --aethelix-text: var(--web-text, #FFFFFF);
    --aethelix-muted: #8E8E93;
    --aethelix-success: #00CC66;
    --aethelix-danger: #FF3333;
    --aethelix-warning: #FFB800;
}

body:not(.desktop-mode) #mobile-chart-page {
    background: var(--aethelix-bg) !important;
    color: var(--aethelix-text);
}

body:not(.desktop-mode) #mobile-chart-content {
    background: var(--web-bg, #000) !important;
    padding: 0 0 calc(126px + env(safe-area-inset-bottom)) !important;
    scrollbar-width: none;
}

body:not(.desktop-mode) #mobile-chart-content::-webkit-scrollbar { display: none; }

body:not(.desktop-mode) .mobile-alpha-hero {
    margin: 0;
    padding: 22px 20px 8px;
    background: transparent;
    border: 0;
}

body:not(.desktop-mode) .mobile-alpha-identity {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) 44px;
    gap: 14px;
    align-items: center;
}

body:not(.desktop-mode) .mobile-alpha-logo {
    width: 58px;
    height: 58px;
    border-radius: 19px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: #18181B;
    box-shadow: 0 16px 36px rgba(0, 0, 0, .34);
    overflow: hidden;
}

body:not(.desktop-mode) .mobile-alpha-logo img,
body:not(.desktop-mode) .mobile-alpha-logo span { width: 100%; height: 100%; object-fit: cover; }

body:not(.desktop-mode) .mobile-alpha-token-copy { min-width: 0; }

body:not(.desktop-mode) .mobile-alpha-name-row {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

body:not(.desktop-mode) .mobile-alpha-name {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-size: 22px;
    font-weight: 750;
    letter-spacing: -.035em;
}

body:not(.desktop-mode) .mobile-alpha-ticker {
    display: inline-flex;
    align-items: center;
    color: #273CFF !important;
    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 760;
}

body:not(.desktop-mode) .mobile-alpha-ticker-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    margin-top: 4px;
}

body:not(.desktop-mode) .mobile-alpha-age {
    flex: 0 0 auto;
    color: #8E8E93;
    font-family: "Inter", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .01em;
    white-space: nowrap;
}

body:not(.desktop-mode) .mobile-alpha-share {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 50%;
    background: #171719;
    color: #C7C7CC;
}

body:not(.desktop-mode) .aethelix-chart-summary {
    padding: 18px 20px 0;
}

body:not(.desktop-mode) .aethelix-chart-price {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

body:not(.desktop-mode) .aethelix-chart-price > .hero-price-main {
    display: block !important;
    flex: 1 1 auto;
    min-width: 0;
}

body:not(.desktop-mode) .aethelix-chart-price-main {
    min-width: 0;
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-size: clamp(38px, 11.5vw, 52px);
    line-height: .98;
    font-weight: 690;
    letter-spacing: -.055em;
    white-space: nowrap;
}

body:not(.desktop-mode) .aethelix-chart-change {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    color: var(--aethelix-success);
    font-family: "JetBrains Mono", monospace;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

body:not(.desktop-mode) .aethelix-chart-change.is-negative { color: var(--aethelix-danger); }
body:not(.desktop-mode) .aethelix-chart-change small { color: var(--aethelix-muted); font-family: "Inter", sans-serif; font-weight: 650; }
body:not(.desktop-mode) .aethelix-chart-absolute:empty { display: none; }

body:not(.desktop-mode) .aethelix-chart-mode {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
    padding: 3px;
    border: 1px solid var(--aethelix-border);
    border-radius: 12px;
    background: rgba(13, 21, 32, .88);
}

body:not(.desktop-mode) .aethelix-chart-mode button {
    min-width: 66px;
    height: 34px;
    padding: 0 10px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--aethelix-muted);
    font-size: 11px;
    font-weight: 800;
}

body:not(.desktop-mode) .aethelix-chart-mode button.active {
    background: linear-gradient(135deg, rgba(39, 60, 255, .96), rgba(139, 92, 246, .92));
    color: var(--web-text, #fff);
    box-shadow: 0 7px 18px rgba(39, 60, 255, .24);
}

body:not(.desktop-mode) .mobile-alpha-chart-section {
    padding: 0;
    margin: 0;
    background: transparent;
}

body:not(.desktop-mode) .mobile-alpha-chart-toolbar {
    display: block;
    padding: 8px 16px 2px;
}

body:not(.desktop-mode) .mobile-alpha-tf-group {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr)) 42px;
    gap: 2px;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
}

body:not(.desktop-mode) .mobile-alpha-tf {
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: var(--aethelix-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .02em;
}

body:not(.desktop-mode) .mobile-alpha-tf.active {
    background: var(--web-raised, #1C1C1E);
    color: var(--web-text, #FFFFFF);
    box-shadow: inset 0 0 0 1px rgba(139, 92, 246, .55);
}

body:not(.desktop-mode) .aethelix-chart-style-toggle {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    justify-self: end;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 12px;
    background: #171719;
    color: #A7A7AC;
}

body:not(.desktop-mode) .aethelix-chart-style-toggle.is-candles {
    border-color: rgba(111, 124, 255, .58);
    background: rgba(39, 60, 255, .18);
    color: #AEB6FF;
}

body:not(.desktop-mode) .aethelix-chart-style-toggle.is-line .aethelix-style-line-icon,
body:not(.desktop-mode) .aethelix-chart-style-toggle.is-candles .aethelix-style-candle-icon { display: none; }

body:not(.desktop-mode) .mobile-alpha-chart-shell {
    position: relative;
    height: clamp(280px, 74vw, 350px);
    margin-top: 0;
    background: var(--web-bg, #000);
    border: 0;
    border-radius: 0;
    overflow: hidden;
}

body:not(.desktop-mode) .aethelix-chart-value-switch {
    position: static;
    z-index: auto;
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
    padding: 3px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 12px;
    background: rgba(17, 17, 19, .88);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .24);
    backdrop-filter: blur(18px) saturate(150%);
    margin-top: 2px;
}

body:not(.desktop-mode) .aethelix-chart-value-switch button {
    min-width: 51px;
    height: 29px;
    padding: 0 10px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #7E8796;
    font-family: "Inter", sans-serif;
    font-size: 10px;
    font-weight: 820;
    letter-spacing: .02em;
}

body:not(.desktop-mode) .aethelix-chart-value-switch button.active {
    background: #273CFF;
    color: var(--web-text, #fff);
    box-shadow: 0 5px 16px rgba(39, 60, 255, .34);
}

body:not(.desktop-mode) .mobile-alpha-native-chart { height: 100% !important; min-height: 280px; background: var(--web-bg, #000) !important; }
body:not(.desktop-mode) .native-chart-alpha-watermark { display: none !important; }
body:not(.desktop-mode) .native-chart-alpha-tooltip { min-width: 178px !important; padding: 12px !important; border-radius: 14px !important; }

body:not(.desktop-mode) .aethelix-line-chart {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--web-bg, #000);
    touch-action: pan-y;
    user-select: none;
}

body:not(.desktop-mode) .aethelix-line-canvas {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    cursor: crosshair;
    touch-action: pan-y;
}

body:not(.desktop-mode) .aethelix-line-axis {
    position: absolute;
    right: 17px;
    bottom: 7px;
    left: 17px;
    display: flex;
    justify-content: space-between;
    color: #636366;
    font-family: "Inter", sans-serif;
    font-size: 10px;
    font-weight: 680;
    pointer-events: none;
}

body:not(.desktop-mode) .aethelix-line-time {
    position: absolute;
    z-index: 4;
    top: 7px;
    min-width: 82px;
    padding: 5px 8px;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 8px;
    background: rgba(28, 28, 30, .94);
    color: #D1D1D6;
    font-size: 10px;
    font-weight: 760;
    text-align: center;
    opacity: 0;
    transform: translateX(-50%) translateY(-4px);
    transition: opacity .12s ease, transform .12s ease;
    pointer-events: none;
}

body:not(.desktop-mode) .aethelix-line-time.visible { opacity: 1; transform: translateX(-50%) translateY(0); }

body:not(.desktop-mode) .aethelix-line-state {
    position: absolute;
    z-index: 5;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--web-bg, #000);
    color: #8E8E93;
    font-size: 12px;
    font-weight: 700;
}

body:not(.desktop-mode) .aethelix-line-state[hidden] { display: none; }
body:not(.desktop-mode) .aethelix-line-spinner { width: 24px; height: 24px; border: 2px solid rgba(111, 124, 255, .2); border-top-color: #6F7CFF; border-radius: 50%; animation: aethelix-chart-spin .8s linear infinite; }
body:not(.desktop-mode) .aethelix-line-state button { min-width: 86px; height: 38px; border: 1px solid rgba(111,124,255,.42); border-radius: 11px; background: rgba(39,60,255,.14); color: #AEB6FF; font-size: 12px; font-weight: 800; }
@keyframes aethelix-chart-spin { to { transform: rotate(360deg); } }

body:not(.desktop-mode) .mobile-alpha-market {
    margin: 22px 16px 0;
    padding: 20px 0 0;
    background: transparent;
    border: 0;
    border-top: 1px solid var(--aethelix-border);
}

body:not(.desktop-mode) .mobile-alpha-market-price,
body:not(.desktop-mode) .mobile-alpha-gain-row { display: none !important; }

body:not(.desktop-mode) .mobile-alpha-section-title,
body:not(.desktop-mode) .aethelix-section-kicker {
    color: #76859B;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .16em;
    text-transform: uppercase;
}

body:not(.desktop-mode) .mobile-alpha-section-title { margin-bottom: 12px; }

body:not(.desktop-mode) .mobile-alpha-stat-grid.three {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 8px;
}

body:not(.desktop-mode) .mobile-alpha-stat-grid .stat-col {
    min-width: 0;
    min-height: 72px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 15px;
    background: var(--web-panel, #111113);
}

body:not(.desktop-mode) .mobile-alpha-stat-grid .stat-label {
    display: block;
    margin-bottom: 9px;
    color: #738198;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .08em;
}

body:not(.desktop-mode) .mobile-alpha-stat-grid .stat-value {
    display: block;
    overflow: hidden;
    color: var(--web-text, #fff);
    font-family: "JetBrains Mono", monospace;
    font-size: 13px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body:not(.desktop-mode) .mobile-alpha-pressure { margin: 16px 0 0; }
body:not(.desktop-mode) .mobile-alpha-pressure > div:first-child { color: var(--aethelix-muted); }
body:not(.desktop-mode) .mobile-alpha-pressure-bar { height: 5px; border-radius: 999px; overflow: hidden; }

body:not(.desktop-mode) .mobile-alpha-badges {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 16px;
}

body:not(.desktop-mode) .mobile-alpha-badges > span {
    min-width: 0;
    min-height: 72px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 15px;
    background: var(--web-panel, #111113);
    color: var(--web-text, #fff);
    font-family: "JetBrains Mono", monospace;
}

body:not(.desktop-mode) .mobile-alpha-badges > span small {
    color: #738198;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .06em;
}

body:not(.desktop-mode) .mobile-alpha-badges > span strong {
    color: var(--web-text, #fff);
    font-size: 14px;
    font-weight: 760;
}

body:not(.desktop-mode) .aethelix-intelligence,
body:not(.desktop-mode) .chart-forensics-card.mobile,
body:not(.desktop-mode) .aethelix-trending {
    margin: 30px 16px 0 !important;
    padding: 0 !important;
}

body:not(.desktop-mode) .aethelix-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

body:not(.desktop-mode) .aethelix-section-heading h2 {
    margin: 4px 0 0;
    color: var(--web-text, #fff);
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-size: 21px;
    line-height: 1.1;
    font-weight: 730;
    letter-spacing: -.025em;
}

body:not(.desktop-mode) .aethelix-live-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--aethelix-success);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

body:not(.desktop-mode) .aethelix-live-chip i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--aethelix-success);
    box-shadow: 0 0 11px rgba(0, 204, 102, .7);
}

body:not(.desktop-mode) .aethelix-info-card {
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid var(--aethelix-border);
    border-radius: 18px;
    background: var(--web-panel, #111113);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .18);
}

body:not(.desktop-mode) .aethelix-info-card-primary { border-color: rgba(111, 124, 255, .3); }

body:not(.desktop-mode) .aethelix-info-row {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(30, 42, 58, .75);
}

body:not(.desktop-mode) .aethelix-info-row:last-child { border-bottom: 0; }
body:not(.desktop-mode) .aethelix-info-label { color: #8D9AB0; font-size: 13px; font-weight: 620; }

body:not(.desktop-mode) .aethelix-info-value-wrap {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
}

body:not(.desktop-mode) .aethelix-info-value {
    overflow: hidden;
    color: var(--web-text, #fff);
    font-family: "JetBrains Mono", monospace;
    font-size: 12px;
    font-weight: 760;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body:not(.desktop-mode) .aethelix-info-value.is-safe { color: var(--aethelix-success); }
body:not(.desktop-mode) .aethelix-info-value.is-danger { color: var(--aethelix-danger); }
body:not(.desktop-mode) .aethelix-info-value.is-warning { color: var(--aethelix-warning); }
body:not(.desktop-mode) .aethelix-info-meta { color: #637189; font-size: 10px; font-weight: 750; }

body:not(.desktop-mode) .aethelix-info-copy {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid var(--aethelix-border);
    border-radius: 9px;
    background: var(--web-raised, #1C1C1E);
    color: #A8B3C5;
}

body:not(.desktop-mode) .aethelix-info-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
body:not(.desktop-mode) .aethelix-info-links a {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--aethelix-border);
    border-radius: 14px;
    background: var(--web-panel, #111113);
    color: #DCE2EC;
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
}

body:not(.desktop-mode) .chart-forensics-card.mobile {
    overflow: hidden;
    border: 1px solid var(--aethelix-border) !important;
    border-radius: 20px !important;
    background: var(--web-panel, #111113) !important;
    box-shadow: 0 22px 50px rgba(0, 0, 0, .2) !important;
}

body:not(.desktop-mode) .chart-forensics-card.mobile .cf-head { padding: 18px !important; }
body:not(.desktop-mode) .chart-forensics-card.mobile .cf-title { font-family: "Space Grotesk", sans-serif; font-size: 17px; }
body:not(.desktop-mode) .chart-forensics-card.mobile .cf-sub { color: var(--aethelix-muted); }
body:not(.desktop-mode) .chart-forensics-card.mobile .cf-analyze-btn {
    border: 0 !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, var(--aethelix-blue), var(--aethelix-violet)) !important;
    box-shadow: 0 12px 28px rgba(39, 60, 255, .24) !important;
}
body:not(.desktop-mode) .chart-forensics-card.mobile .cf-status { border-color: var(--aethelix-border) !important; color: var(--aethelix-muted) !important; }
body:not(.desktop-mode) .chart-forensics-card.mobile .cf-body { background: #0A0A0B !important; }

body:not(.desktop-mode) .aethelix-trending-list {
    overflow: hidden;
    border: 1px solid var(--aethelix-border);
    border-radius: 19px;
    background: var(--web-panel, #111113);
}

body:not(.desktop-mode) .aethelix-trending-row {
    width: 100%;
    min-height: 76px;
    display: grid;
    grid-template-columns: 24px 43px minmax(0, 1fr) 78px;
    align-items: center;
    gap: 9px;
    padding: 11px 14px;
    box-sizing: border-box;
    border: 0;
    border-bottom: 1px solid rgba(30, 42, 58, .72);
    background: transparent;
    text-align: left;
}
body:not(.desktop-mode) .aethelix-trending-row:last-child { border-bottom: 0; }
body:not(.desktop-mode) .aethelix-trending-rank { color: #738198; font-family: "JetBrains Mono", monospace; font-size: 11px; font-weight: 800; }
body:not(.desktop-mode) .aethelix-trending-logo { width: 43px; height: 43px; border-radius: 14px; object-fit: cover; background: var(--aethelix-surface); }
body:not(.desktop-mode) .aethelix-trending-copy { min-width: 0; }
body:not(.desktop-mode) .aethelix-trending-copy strong { display: block; overflow: hidden; color: var(--web-text, #fff); font-size: 14px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
body:not(.desktop-mode) .aethelix-trending-copy span { display: block; margin-top: 4px; color: #6F7E94; font-family: "JetBrains Mono", monospace; font-size: 10px; }
body:not(.desktop-mode) .aethelix-trending-gain {
    min-width: 78px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-self: end;
    color: var(--aethelix-success);
    font-family: "JetBrains Mono", monospace;
    font-variant-numeric: tabular-nums;
    text-align: right;
}
body:not(.desktop-mode) .aethelix-trending-gain strong { font-size: 13px; font-weight: 800; line-height: 1.15; white-space: nowrap; }
body:not(.desktop-mode) .aethelix-trending-gain small { margin-top: 5px; color: #59667A; font-family: "Inter", sans-serif; font-size: 9px; font-weight: 800; letter-spacing: .08em; }
body:not(.desktop-mode) .aethelix-trending-gain.is-negative { color: var(--aethelix-danger); }

body:not(.desktop-mode) .aethelix-trade-dock {
    position: fixed;
    z-index: 1001;
    right: max(14px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    left: max(14px, env(safe-area-inset-left));
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    padding: 8px;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 21px;
    background: rgba(17, 17, 19, .88);
    box-shadow: 0 18px 48px rgba(0, 0, 0, .46), 0 0 0 1px rgba(39, 60, 255, .06);
    backdrop-filter: blur(24px) saturate(160%);
    transition: opacity .2s ease, transform .2s ease;
}

body:not(.desktop-mode) .aethelix-trade-dock button {
    height: 50px;
    border: 0;
    border-radius: 15px;
    color: var(--web-text, #fff);
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-size: 15px;
    font-weight: 780;
}
body:not(.desktop-mode) .aethelix-trade-buy { background: linear-gradient(135deg, var(--aethelix-blue), #5364FF); box-shadow: 0 10px 24px rgba(39, 60, 255, .28); }
body:not(.desktop-mode) .aethelix-trade-sell { border: 1px solid rgba(255, 51, 51, .32) !important; background: rgba(255, 51, 51, .1); color: #FF7777 !important; }
body:not(.desktop-mode).mobile-swap-open .aethelix-trade-dock { opacity: 0; pointer-events: none; transform: translateY(20px); }

body:not(.desktop-mode) #mobile-swap-backdrop { background: rgba(0, 0, 0, .7) !important; }
body:not(.desktop-mode) #mobile-swap-drawer {
    top: 0;
    bottom: auto !important;
    height: 100dvh;
    max-height: 100dvh;
    border: 0 !important;
    border-radius: 0 !important;
    background: var(--aethelix-bg) !important;
    box-shadow: none !important;
}

body:not(.desktop-mode) .aethelix-swap-drawer-head {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: 42px 1fr 42px;
    align-items: center;
    padding: max(10px, env(safe-area-inset-top)) 14px 10px;
    border-bottom: 1px solid var(--aethelix-border);
    background: rgba(0, 0, 0, .97);
}
body:not(.desktop-mode) .aethelix-swap-drawer-head strong { text-align: center; font-size: 15px; }
body:not(.desktop-mode) .aethelix-swap-drawer-head button { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--aethelix-border); border-radius: 12px; background: var(--aethelix-surface); color: var(--web-text, #fff); }
body:not(.desktop-mode) .aethelix-swap-drawer-head span { justify-self: center; width: 34px; height: 4px; border-radius: 999px; background: #4B5669; }

body:not(.desktop-mode) .aethelix-swap-drawer-body { flex: 1; min-height: 0; display: flex; padding: 0 16px !important; overflow: hidden; }
body:not(.desktop-mode) .aethelix-swap-drawer-body > * { width: 100%; }
body:not(.desktop-mode) #mobile-swap-scroll-inner { overscroll-behavior: contain; padding-bottom: calc(132px + env(safe-area-inset-bottom)) !important; }

body:not(.desktop-mode) .aethelix-trade-side-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin: 14px 0 12px;
    padding: 4px;
    border: 1px solid var(--aethelix-border);
    border-radius: 14px;
    background: var(--aethelix-surface);
}
body:not(.desktop-mode) .aethelix-trade-side-tabs button { height: 38px; border: 0; border-radius: 10px; background: transparent; color: var(--aethelix-muted); font-size: 12px; font-weight: 850; }
body:not(.desktop-mode) .aethelix-trade-side-tabs button.active[data-side="buy"] { background: rgba(39, 60, 255, .22); color: #BBC1FF; }
body:not(.desktop-mode) .aethelix-trade-side-tabs button.active[data-side="sell"] { background: rgba(255, 51, 51, .14); color: #FF7777; }

body:not(.desktop-mode) #mobile-swap-amt-in {
    appearance: textfield;
    -moz-appearance: textfield;
    caret-color: #7180FF;
}
body:not(.desktop-mode) #mobile-swap-amt-in::-webkit-outer-spin-button,
body:not(.desktop-mode) #mobile-swap-amt-in::-webkit-inner-spin-button { appearance: none; margin: 0; }

body:not(.desktop-mode) #mobile-swap-footer {
    position: absolute !important;
    padding: 14px 0 max(16px, env(safe-area-inset-bottom)) !important;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .94) 22%, var(--web-bg, #000) 45%) !important;
}

body:not(.desktop-mode).swap-keyboard-open #mobile-swap-footer { display: none !important; }
body:not(.desktop-mode).swap-keyboard-open #mobile-swap-scroll-inner { padding-bottom: 26px !important; }
body:not(.desktop-mode).swap-keyboard-open .aethelix-swap-drawer-head { padding-top: 6px; padding-bottom: 6px; }

@media (max-width: 360px) {
    body:not(.desktop-mode) .mobile-alpha-name { font-size: 20px; }
    body:not(.desktop-mode) .aethelix-chart-price-main { font-size: 34px; }
    body:not(.desktop-mode) .mobile-alpha-stat-grid .stat-col { padding: 10px 8px; }
    body:not(.desktop-mode) .mobile-alpha-stat-grid .stat-value { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
    body:not(.desktop-mode) #mobile-swap-drawer,
    body:not(.desktop-mode) #mobile-swap-backdrop { transition-duration: .01ms !important; }
}

/* Intelligence freshness is not always live: prevent stale snapshots from
   receiving a green indicator. */
body:not(.desktop-mode) .aethelix-live-chip.is-aging { color: #ff9f0a; }
body:not(.desktop-mode) .aethelix-live-chip.is-aging i { background: #ff9f0a; box-shadow: 0 0 11px rgba(255,159,10,.7); }
body:not(.desktop-mode) .aethelix-live-chip.is-stale { color: #ff453a; }
body:not(.desktop-mode) .aethelix-live-chip.is-stale i { background: #ff453a; box-shadow: 0 0 11px rgba(255,69,58,.7); }
