/**
 * Bitget H5 操盘中心 — 品牌 UI + 列表/详情/导航交互
 * body: bitget-ui [bitget-ui--mesh] [bitget-page--nav]
 */
:root {
    --bg-page: #0b0e11;
    --bg-elevated: #14181c;
    --bg-card: #1c2127;
    --bg-card-inner: rgba(255, 255, 255, 0.03);
    --bg-input: #0f1318;
    --border: rgba(255, 255, 255, 0.08);
    --border-accent: rgba(0, 240, 255, 0.35);
    --text: #f2f4f7;
    --text-muted: #8b929e;
    --accent: #00f0ff;
    --accent-dim: rgba(0, 240, 255, 0.12);
    --accent-hover: #5ff6ff;
    --on-accent: #050708;
    --danger: #f6465d;
    --success: #0ecb81;
    --radius: 14px;
    --radius-lg: 18px;
    --tap-min: 48px;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

.bitget-ui {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Helvetica Neue", sans-serif;
    background: var(--bg-page);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
}

.bitget-ui--mesh {
    background:
        radial-gradient(ellipse 100% 70% at 50% -15%, rgba(0, 240, 255, 0.14), transparent 55%),
        radial-gradient(ellipse 60% 40% at 100% 0%, rgba(0, 200, 220, 0.08), transparent 45%),
        var(--bg-page);
}

/* —— 顶部主导航（sticky + 安全区；与底栏四个入口一致） —— */
.bitget-top-nav {
    position: sticky;
    top: 0;
    z-index: 55;
    /* 避免 backdrop-filter 在部分机型上让下方整块内容发蒙、对比度发灰 */
    background: rgba(11, 14, 17, 0.98);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.22);
}
.bitget-top-nav__safe {
    padding-top: max(8px, env(safe-area-inset-top, 0px));
    padding-bottom: 10px;
    padding-left: max(clamp(16px, 3vw, 36px), env(safe-area-inset-left, 0px));
    padding-right: max(clamp(16px, 3vw, 36px), env(safe-area-inset-right, 0px));
}
.bitget-top-nav__inner {
    max-width: none;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
}
.bitget-top-nav__brand {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 4px 8px 4px 0;
    border-radius: 10px;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}
.bitget-top-nav__brand-img {
    flex-shrink: 0;
    height: 26px;
    width: auto;
    max-width: min(118px, 38vw);
    object-fit: contain;
    object-position: left center;
    display: block;
}
.bitget-top-nav__brand:active {
    opacity: 0.88;
}
.bitget-top-nav__scroll {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.bitget-top-nav__scroll::-webkit-scrollbar {
    display: none;
    height: 0;
}
.bitget-top-nav__a {
    flex-shrink: 0;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s, background 0.15s;
    -webkit-tap-highlight-color: transparent;
}
.bitget-top-nav__a:active {
    background: rgba(255, 255, 255, 0.06);
    opacity: 1;
}
.bitget-top-nav__a.is-active {
    color: var(--accent);
    background: var(--accent-dim);
}

.bitget-wrap {
    max-width: none;
    width: 100%;
    margin: 0 auto;
    padding: 12px clamp(16px, 3vw, 36px) 24px;
    box-sizing: border-box;
}

.bitget-ui a {
    color: var(--accent);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}
/* 勿对整卡列表链用透明按压，否则整块委托卡片会像「消失」 */
.bitget-ui a:active:not(.bitget-list-link) {
    opacity: 0.88;
}

/* —— 顶栏 / 返回 —— */
.bitget-topbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    min-height: 36px;
}
.bitget-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--tap-min);
    padding: 0 12px 0 2px;
    margin: 0 0 0 -4px;
    font-size: 14px;
    font-weight: 500;
    color: var(--accent);
    border-radius: 10px;
    transition: background 0.15s var(--ease-out), color 0.15s;
}
.bitget-back:active {
    background: var(--accent-dim);
    opacity: 1;
}

.bitget-page-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 10px;
    letter-spacing: -0.03em;
    line-height: 1.25;
}
.bitget-page-title--inline {
    margin-bottom: 0;
    flex: 1;
}
.bitget-page-title--sub {
    font-size: 17px;
    margin-top: 2px;
    margin-bottom: 10px;
}

/* —— 统一页头（各页标题行等高对齐） —— */
.bitget-app-header {
    margin: 0 0 12px;
}
.bitget-app-header__inner {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
}
.bitget-app-header__start {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
.bitget-app-header__back.bitget-back {
    margin: 0 0 0 -4px;
}
.bitget-app-header .bitget-page-title {
    flex: 1;
    margin-top: 0;
    margin-bottom: 0;
    min-width: 0;
}
.bitget-app-header .bitget-page-title--sub {
    margin-top: 0;
    margin-bottom: 0;
}
.bitget-app-header__end {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* —— 说明条 —— */
.bitget-callout {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.55;
    padding: 12px 14px;
    margin-bottom: 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    border-left: 3px solid var(--accent);
}
.bitget-callout--tight {
    margin-bottom: 10px;
    padding: 10px 12px;
    font-size: 12px;
}

/* —— 登录 —— */
.bitget-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    padding-bottom: max(14px, env(safe-area-inset-bottom, 0px));
}
.bitget-login-card {
    width: 100%;
    max-width: 360px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 20px 16px;
    box-shadow: 0 20px 56px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 240, 255, 0.06);
}
.bitget-login-headline {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.bitget-login-logo-wrap {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(0, 240, 255, 0.18), rgba(0, 180, 200, 0.06));
    border: 1px solid var(--border-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
    box-sizing: border-box;
}
.bitget-login-logo {
    width: 36px;
    height: 36px;
    display: block;
    object-fit: contain;
}
.bitget-login-headline h1 {
    flex: 1;
    min-width: 0;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.bitget-login-tagline {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0 0 14px;
    line-height: 1.35;
}
.bitget-login-card input[type="text"],
.bitget-login-card input[type="password"] {
    width: 100%;
    padding: 11px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-input);
    color: var(--text);
    margin-bottom: 10px;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
.bitget-login-card input[type="text"]::placeholder,
.bitget-login-card input[type="password"]::placeholder {
    color: var(--text-muted);
    opacity: 0.75;
}
.bitget-login-card input[type="text"]:focus,
.bitget-login-card input[type="password"]:focus {
    outline: none;
    border-color: var(--border-accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}
/* 覆盖 .bitget-ui label / input 全局规则，避免复选框被拉成满宽输入框 */
.bitget-ui label.bitget-login-remember {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    margin: 0 0 8px;
    padding: 0;
    font-size: 11px;
    font-weight: 400;
    color: var(--text-muted);
    line-height: 1.25;
    cursor: pointer;
    user-select: none;
}
.bitget-ui label.bitget-login-remember:hover span {
    opacity: 0.92;
}
.bitget-login-remember input[type="checkbox"] {
    width: 14px;
    height: 14px;
    min-width: 14px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 3px;
    background: transparent;
    box-shadow: none;
    accent-color: var(--accent);
    cursor: pointer;
    flex-shrink: 0;
}
.bitget-login-remember input[type="checkbox"]:focus {
    outline: none;
    box-shadow: none;
}
.bitget-login-remember span {
    flex: 1;
    min-width: 0;
    opacity: 0.68;
    transition: opacity 0.15s ease;
}

/* 交易设置 · 暂停交易（覆盖 .bitget-ui label / input 全局样式） */
.bitget-ui label.bitget-trade-pause {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    margin: 12px 0 14px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-card-inner);
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.35;
    cursor: pointer;
    user-select: none;
}
.bitget-trade-pause input[type="checkbox"] {
    width: 17px;
    height: 17px;
    min-width: 17px;
    margin: 2px 0 0;
    padding: 0;
    border: none;
    border-radius: 4px;
    background: transparent;
    box-shadow: none;
    accent-color: var(--accent);
    cursor: pointer;
    flex-shrink: 0;
}
.bitget-trade-pause input[type="checkbox"]:focus {
    outline: none;
    box-shadow: none;
}
.bitget-trade-pause > span {
    flex: 1;
    min-width: 0;
}
.bitget-trade-pause-sub {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    font-weight: 400;
    color: var(--text-muted);
    line-height: 1.4;
}

.bitget-login-card button[type="submit"] {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #00f0ff, #00c4dc);
    color: var(--on-accent);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 2px;
    min-height: var(--tap-min);
    transition: transform 0.12s var(--ease-out), filter 0.15s;
    box-shadow: 0 4px 20px rgba(0, 240, 255, 0.22);
}
.bitget-login-card button[type="submit"]:active {
    transform: scale(0.98);
    filter: brightness(0.95);
}
.bitget-login-foot {
    margin-top: 12px;
    text-align: center;
    font-size: 10px;
    color: var(--text-muted);
    line-height: 1.35;
}
.bitget-err {
    color: #ff9aa8;
    font-size: 12px;
    margin-bottom: 10px;
    padding: 8px 10px;
    background: rgba(246, 70, 93, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(246, 70, 93, 0.22);
    line-height: 1.4;
}

/* —— 首页 · 快捷入口 —— */
.bitget-meta {
    margin-top: 14px;
    font-size: 11px;
    color: var(--text-muted);
    opacity: 0.9;
}
.bitget-meta.bitget-meta--flush {
    margin-top: 0;
    margin-bottom: 12px;
}

.bitget-tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 4px;
}
.bitget-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 92px;
    padding: 12px 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: transform 0.15s var(--ease-out), border-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.bitget-tile:active {
    transform: scale(0.97);
    border-color: var(--border-accent);
}
.bitget-tile-ic {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    background: var(--bg-card-inner);
    border: 1px solid var(--border);
}
.bitget-tile-ic .bitget-svg {
    color: inherit;
}
.bitget-tile--accent .bitget-tile-ic {
    background: var(--accent-dim);
    border-color: rgba(0, 240, 255, 0.25);
}
.bitget-tile--muted {
    color: var(--text-muted);
}
.bitget-tile--muted .bitget-tile-ic {
    opacity: 0.85;
}

/* —— 卡片通用 —— */
.bitget-ui .card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 16px 14px;
    margin-bottom: 12px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.28);
    transition: transform 0.15s var(--ease-out), box-shadow 0.2s;
}
.bitget-ui .card--pressable:active {
    transform: scale(0.992);
}

.bitget-ui .sym {
    font-weight: 700;
    font-size: 16px;
    color: var(--text);
    letter-spacing: -0.02em;
}
.bitget-ui .row {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 6px;
}
.bitget-ui .row--tight {
    margin-top: 4px;
}
.bitget-ui .row--spaced {
    margin-top: 10px;
}
.bitget-ui .side-buy {
    color: var(--success);
}
.bitget-ui .side-sell {
    color: var(--danger);
}
.bitget-ui .side-pill {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    vertical-align: middle;
    margin-left: 6px;
    letter-spacing: 0.04em;
}
.bitget-ui .side-pill--buy {
    background: rgba(14, 203, 129, 0.15);
    color: var(--success);
    border: 1px solid rgba(14, 203, 129, 0.35);
}
.bitget-ui .side-pill--sell {
    background: rgba(246, 70, 93, 0.12);
    color: #ff9aa8;
    border: 1px solid rgba(246, 70, 93, 0.35);
}

.bitget-ui .badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 8px;
    background: var(--accent-dim);
    color: var(--accent);
    margin-top: 8px;
    border: 1px solid rgba(0, 240, 255, 0.22);
}
.bitget-ui .hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
    line-height: 1.5;
}
.bitget-hint-tight {
    margin-top: -6px !important;
}
.bitget-ui .text-danger {
    color: #ff9aa8 !important;
}

/* —— 列表行 —— */
.bitget-row-card {
    position: relative;
    margin-bottom: 12px;
}
.bitget-row-card .card {
    margin-bottom: 0;
    padding-right: 36px;
}
.bitget-list-link {
    text-decoration: none;
    color: inherit;
    display: block;
    outline: none;
}
/* 委托列表：整行是可点 <a>，必须覆盖全局 a 的强调色与浏览器 :visited 变暗，否则在深色底上像「没字」 */
.bitget-ui a.bitget-list-link,
.bitget-ui a.bitget-list-link:visited,
.bitget-ui a.bitget-list-link:hover {
    color: var(--text);
    opacity: 1;
}
.bitget-ui a.bitget-list-link .card {
    color: var(--text);
}
.bitget-ui a.bitget-list-link .row {
    color: #b8c0cc;
}
.bitget-ui a.bitget-list-link .hint.row--tight {
    color: #9aa3b0;
}
.bitget-list-link:focus-visible .card {
    box-shadow: 0 0 0 2px var(--accent);
}
.bitget-list-link:active .card {
    transform: scale(0.992);
}
.bitget-list-tab-count {
    margin: 0 0 12px;
    font-size: 12px;
}
.bitget-list-tab-count strong {
    color: var(--accent);
    font-weight: 700;
}
.bitget-list-head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.bitget-list-serial {
    flex-shrink: 0;
    min-width: 28px;
    height: 28px;
    margin-top: 1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    color: #c5ced9;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
}
.bitget-list-head .sym {
    flex: 1;
    min-width: 0;
}
.bitget-list-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 4px;
}
.bitget-list-chevron {
    position: absolute;
    right: 18px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--text-muted);
    border-top: 2px solid var(--text-muted);
    transform: translateY(-50%) rotate(45deg);
    opacity: 0.55;
    pointer-events: none;
}

/* —— 详情头 / 指标格 —— */
.bitget-detail-head {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.bitget-detail-head__row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.bitget-detail-subline {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    line-height: 1.45;
    color: var(--text-muted);
    max-width: 100%;
    min-width: 0;
}
.bitget-detail-subline .dg-lmi {
    overflow-wrap: anywhere;
    word-break: break-word;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--text);
}
.bitget-detail-symbol {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
}
.bitget-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
    margin-top: 4px;
}
.bitget-detail-cell {
    background: var(--bg-card-inner);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
}
.bitget-detail-cell label {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    margin: 0 0 4px;
    text-transform: none;
}
.bitget-detail-cell span {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    word-break: break-all;
}
.bitget-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
    padding-top: 4px;
}
.bitget-detail-actions form {
    display: inline-block;
    margin: 0;
}
.bitget-detail-actions--stack {
    flex-direction: column;
    align-items: stretch;
}
.bitget-form-reprice {
    width: 100%;
    box-sizing: border-box;
}
.bitget-reprice-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.bitget-reprice-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.bitget-input-reprice {
    flex: 1;
    min-width: 120px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text);
    font-size: 15px;
}

/* —— Tab —— */
.bitget-tabs-wrap {
    position: sticky;
    top: 0;
    z-index: 30;
    margin: 0 -16px 10px;
    padding: 6px 16px 8px;
    /* 与顶栏同理：去掉 blur，避免列表区域像被半透明层糊住 */
    background: var(--bg-page);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}
.bitget-ui .tabs {
    display: flex;
    gap: 8px;
    padding: 3px;
    background: var(--bg-elevated);
    border-radius: 12px;
    border: 1px solid var(--border);
}
.bitget-ui .tabs a {
    flex: 1;
    text-align: center;
    padding: 11px 6px;
    border-radius: 10px;
    background: transparent;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid transparent;
    transition: color 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
    min-height: var(--tap-min);
    display: flex;
    align-items: center;
    justify-content: center;
}
.bitget-ui .tabs a:active {
    transform: scale(0.97);
}
.bitget-ui .tabs a.on {
    background: var(--accent-dim);
    color: var(--accent);
    border-color: var(--border-accent);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.09);
}

.bitget-ui .tabs.tabs--five {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 3px;
}
.bitget-ui .tabs.tabs--five a {
    min-height: 40px;
    padding: 6px 2px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.22;
    letter-spacing: -0.02em;
    hyphens: auto;
    word-break: keep-all;
}

/* 委托列表页签与层叠样式已迁至 includes/delegates_simple.css（dg-* 极简布局） */

/* 旧版「已挂单」子行（保留类名以防外链样式依赖；新 UI 已不用） */
.bitget-book-filter {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}
.bitget-ui .tabs.tabs--book {
    gap: 6px;
    padding: 3px;
    margin-bottom: 6px;
}
.bitget-ui .tabs.tabs--book a {
    flex: 1;
    padding: 9px 6px;
    font-size: 12px;
    min-height: 40px;
}
.bitget-book-filter-hint {
    margin: 0;
    font-size: 11px;
    line-height: 1.45;
    color: var(--text-muted);
    padding: 0 2px 4px;
}

/* —— 按钮 —— */
.bitget-ui .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    margin-right: 0;
    padding: 12px 18px;
    border-radius: 12px;
    border: none;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    min-height: var(--tap-min);
    transition: transform 0.12s var(--ease-out), filter 0.15s, box-shadow 0.2s;
    -webkit-tap-highlight-color: transparent;
}
.bitget-ui .btn-primary {
    background: linear-gradient(135deg, #00f0ff, #00c4dc);
    color: var(--on-accent);
    box-shadow: 0 4px 18px rgba(0, 240, 255, 0.2);
}
.bitget-ui .btn-primary:active {
    transform: scale(0.98);
    filter: brightness(0.96);
}
.bitget-ui .btn-danger {
    background: rgba(246, 70, 93, 0.12);
    color: #ff9aa8;
    border: 1px solid rgba(246, 70, 93, 0.38);
}
.bitget-ui .btn-danger:active {
    transform: scale(0.98);
    background: rgba(246, 70, 93, 0.2);
}

/* —— Flash —— */
.bitget-ui .flash {
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.45;
    border: 1px solid transparent;
    border-left-width: 3px;
    animation: bitget-flash-in 0.35s var(--ease-out) both;
}
@keyframes bitget-flash-in {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.bitget-ui .flash-ok {
    background: rgba(14, 203, 129, 0.1);
    color: #7bedc4;
    border-color: rgba(14, 203, 129, 0.28);
    border-left-color: var(--success);
}
.bitget-ui .flash-err {
    background: rgba(246, 70, 93, 0.1);
    color: #ff9aa8;
    border-color: rgba(246, 70, 93, 0.28);
    border-left-color: var(--danger);
}
.bitget-ui .flash-warn {
    background: rgba(255, 184, 77, 0.08);
    color: #ffd08a;
    border-color: rgba(255, 184, 77, 0.22);
    border-left-color: #ffb84d;
}

/* —— 空状态 —— */
.bitget-empty {
    text-align: center;
    padding: 36px 20px 32px;
    background: var(--bg-card);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    margin-bottom: 12px;
}
.bitget-empty-ic {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    border-radius: 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    opacity: 0.95;
}
.bitget-empty-ic .bitget-svg--empty {
    margin: 0;
}
.bitget-empty-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--text);
}
.bitget-empty-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

/* —— 底部导航 —— */
.bitget-ui .navb {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(17, 21, 26, 0.98);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    padding: 10px 10px calc(14px + env(safe-area-inset-bottom, 0px));
    font-size: 13px;
    font-weight: 600;
    z-index: 50;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35);
}
.bitget-ui .navb a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: var(--tap-min);
    padding: 6px 6px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 12px;
    transition: color 0.2s, background 0.2s;
    -webkit-tap-highlight-color: transparent;
}
.bitget-ui .navb a:active {
    background: rgba(255, 255, 255, 0.06);
    opacity: 1;
}
.bitget-ui .navb a.is-active {
    color: var(--accent);
}
.bitget-ui .navb a.is-active .navb-ic {
    opacity: 1;
    transform: scale(1.06);
}
.bitget-ui .navb-ic {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 28px;
    opacity: 0.8;
    transition: transform 0.2s var(--ease-out), opacity 0.2s;
}
.bitget-svg {
    display: block;
    flex-shrink: 0;
}
.bitget-svg--nav {
    width: 26px;
    height: 26px;
}
.bitget-svg--tile {
    width: 24px;
    height: 24px;
}
.bitget-svg--empty {
    width: 40px;
    height: 40px;
    stroke-width: 1.5;
}
.bitget-ui .navb-t {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

.bitget-ui .pnl-pos {
    color: var(--success);
    font-weight: 700;
}
.bitget-ui .pnl-neg {
    color: var(--danger);
    font-weight: 700;
}

/* 主容器外、底部导航之上：模块版本（各页统一） */
.bitget-layout-foot-version {
    max-width: none;
    width: 100%;
    margin: 28px auto 0;
    padding: 0 clamp(16px, 3vw, 36px);
    box-sizing: border-box;
    text-align: center;
    font-size: 10px;
    line-height: 1.35;
    color: var(--text-muted);
    opacity: 0.42;
    letter-spacing: 0.06em;
}

.bitget-ui.bitget-page--nav {
    padding-bottom: 92px;
}

/* —— 表单类子页（交易设置 / API 授权）：与主导航页共用 bitget-wrap —— */
.bitget-ui .bitget-wrap--form-page {
    max-width: none;
    padding-bottom: 96px;
}
.bitget-ui .page-title {
    color: var(--text);
    font-size: 23px;
    font-weight: 700;
    margin: 4px 0 6px;
    letter-spacing: -0.03em;
}
.bitget-ui .page-sub {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 18px;
}
.bitget-ui .card-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 12px;
    color: var(--text);
}
.bitget-ui .kv {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
}
.bitget-ui .kv:last-child {
    border-bottom: none;
}
.bitget-ui .kv span:first-child {
    color: var(--text-muted);
}
.bitget-ui .kv span:last-child {
    color: var(--text);
    font-weight: 500;
    text-align: right;
    max-width: 62%;
    word-break: break-all;
}
.bitget-ui label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin: 14px 0 6px;
}
.bitget-ui label:first-of-type {
    margin-top: 0;
}
.bitget-ui input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]) {
    width: 100%;
    padding: 14px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 16px;
    background: var(--bg-input);
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.bitget-ui input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):focus {
    outline: none;
    border-color: var(--border-accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

.bitget-ui .bitget-wrap--form-page .btn,
.bitget-ui .bitget-wrap--form-page a.btn {
    display: flex;
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    margin-right: 0;
    text-align: center;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
}
.bitget-ui .bitget-wrap--form-page a.btn-primary {
    margin-top: 18px;
}
.bitget-ui .bitget-wrap--form-page a.btn-ghost {
    margin-top: 10px;
}
.bitget-ui .bitget-wrap--form-page form .btn-primary {
    margin-top: 18px;
}
.bitget-ui .btn-primary {
    background: linear-gradient(135deg, #00f0ff, #00c4dc);
    color: var(--on-accent);
    border: none;
}
.bitget-ui .btn-primary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    filter: none;
    transform: none;
    box-shadow: none;
}
.bitget-ui .btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
    margin-top: 10px;
    box-shadow: none;
}
.bitget-ui .btn-ghost:hover {
    border-color: var(--border-accent);
    color: var(--accent);
}
.bitget-ui .credential-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--accent-dim);
    color: var(--accent);
    margin-left: 6px;
    vertical-align: middle;
    border: 1px solid rgba(0, 240, 255, 0.22);
}
.bitget-ui .status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}
.bitget-ui .status-on {
    background: var(--success);
    box-shadow: 0 0 0 2px rgba(14, 203, 129, 0.25);
}
.bitget-ui .status-off {
    background: var(--text-muted);
}
.bitget-ui code {
    font-size: 11px;
    background: var(--bg-elevated);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid var(--border);
}

/* —— 会员中心 —— */
.bitget-member-card {
    padding: 4px 16px 6px;
}
.bitget-member-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
    transition: background 0.15s;
    -webkit-tap-highlight-color: transparent;
}
.bitget-member-link:last-child {
    border-bottom: none;
}
.bitget-member-link:active {
    background: rgba(255, 255, 255, 0.05);
}
.bitget-member-link-t {
    flex: 1;
    font-size: 17px;
    font-weight: 600;
}
.bitget-member-chevron {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--text-muted);
    border-top: 2px solid var(--text-muted);
    transform: rotate(45deg);
    opacity: 0.55;
}
/* 退出登录：与上方列表项区分，居中、弱提示样式 */
.bitget-member-link--logout {
    justify-content: center;
    margin-top: 10px;
    padding-top: 20px;
    padding-bottom: 20px;
    border-top: 1px solid var(--border);
    border-bottom: none;
}
.bitget-member-link--logout .bitget-member-link-t {
    flex: 0 1 auto;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}
.bitget-member-link--logout:active {
    background: rgba(246, 70, 93, 0.08);
}
.bitget-member-link--logout:active .bitget-member-link-t {
    color: var(--danger);
}

/* —— 收益统计 —— */
.bitget-ui .navb--tri {
    padding-left: 12px;
    padding-right: 12px;
}
.bitget-ui .navb--tri .navb-t {
    letter-spacing: 0;
    font-size: 13px;
}
.bitget-wrap--stats {
    padding-bottom: 96px;
}
.bitget-stat-toolbar {
    margin-bottom: 12px;
}
.bitget-stat-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.bitget-stat-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text-muted);
}
.bitget-stat-chip a {
    color: inherit;
    text-decoration: none;
    margin: 0 -12px;
    padding: 8px 12px;
    border-radius: 999px;
}
.bitget-stat-chip.is-on {
    border-color: var(--border-accent);
    color: var(--accent);
    background: var(--accent-dim);
}
.bitget-stat-custom {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px 12px;
    padding: 12px;
    margin-bottom: 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.bitget-stat-custom-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    color: var(--text-muted);
}
.bitget-stat-custom-field input[type="date"] {
    min-height: var(--tap-min);
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-input);
    color: var(--text);
    font-size: 14px;
}
.bitget-ui .btn--stat {
    min-height: var(--tap-min);
    padding: 0 18px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}
.bitget-stat-symbol {
    margin-bottom: 8px;
}
.bitget-stat-symbol-label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
}
.bitget-stat-symbol-label select {
    min-height: var(--tap-min);
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-input);
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
}
.bitget-stat-period {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0 0 16px;
    line-height: 1.45;
}
.bitget-stat-h2 {
    font-size: 15px;
    font-weight: 700;
    margin: 20px 0 10px;
    letter-spacing: -0.02em;
    color: var(--text);
}
.bitget-stat-kpi-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 14px 16px 12px;
    margin-bottom: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}
.bitget-stat-kpi-head {
    margin-bottom: 8px;
}
.bitget-stat-kpi-ccy {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
}
.bitget-stat-kpi-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.bitget-stat-kpi-label {
    font-size: 12px;
    color: var(--text-muted);
}
.bitget-stat-kpi-val {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
}
.bitget-stat-kpi-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 13px;
    color: var(--text-muted);
}
.bitget-stat-kpi-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 6px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.bitget-stat-kpi-list li:first-of-type {
    border-top: none;
}
.bitget-stat-kpi-warn {
    color: var(--danger);
}
.bitget-stat-hint {
    font-weight: 400;
    font-size: 11px;
    opacity: 0.85;
}
.bitget-stat-side-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 8px;
}
.bitget-stat-side-cell {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.bitget-stat-side-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
}
.bitget-stat-side-cell strong {
    font-size: 18px;
    color: var(--text);
}
.bitget-stat-side-sub {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.35;
}
.bitget-stat-side-pnl {
    font-size: 13px;
    font-weight: 700;
}
.bitget-stat-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-elevated);
}
.bitget-stat-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    min-width: 420px;
}
.bitget-stat-table th,
.bitget-stat-table td {
    padding: 10px 8px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.bitget-stat-table th {
    color: var(--text-muted);
    font-weight: 600;
    white-space: nowrap;
}
.bitget-stat-table td {
    color: var(--text);
}
.bitget-stat-table tbody tr:last-child td {
    border-bottom: none;
}
.bitget-stat-table-sub td {
    font-size: 11px;
    color: var(--danger);
    padding-top: 4px;
    padding-bottom: 10px;
    background: rgba(246, 70, 93, 0.06);
}
.bitget-stat-table-foot-total td {
    font-weight: 700;
    border-top: 1px solid var(--border);
    background: var(--bg-card-inner);
}

/* 收益统计：强化表头（排行、浮动快照共用）+ 外层略加深顶区 */
.bitget-stat-table-wrap--stat-head-emphasis {
    background: linear-gradient(180deg, rgba(28, 33, 39, 0.45) 0%, var(--bg-elevated) 32%);
}
.bitget-stat-table--stat-head-emphasis thead th {
    padding-top: 12px;
    padding-bottom: 12px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.035em;
    color: rgba(242, 244, 247, 0.94);
    background: linear-gradient(180deg, rgba(34, 40, 48, 1) 0%, rgba(24, 28, 33, 0.98) 100%);
    border-bottom: 1px solid rgba(0, 240, 255, 0.28);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 2px 8px rgba(0, 0, 0, 0.2);
}
.bitget-stat-table--stat-head-emphasis tbody tr:not(.bitget-stat-table-foot-total) td {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

/* 配对未平卖腿 · 浮动快照表：合计行（低调灰条，与正文区分泌别） */
.bitget-stat-table--snapshot-float tbody tr.bitget-stat-table-foot-total td {
    padding-top: 10px;
    padding-bottom: 10px;
    font-weight: 600;
    letter-spacing: normal;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.035);
    border-top: 1px solid var(--border);
    border-bottom: none;
    box-shadow: none;
}
.bitget-stat-table--snapshot-float tbody tr.bitget-stat-table-foot-total td:not(.pnl-pos):not(.pnl-neg) {
    color: rgba(242, 244, 247, 0.72);
}
.bitget-stat-table--snapshot-float tbody tr.bitget-stat-table-foot-total .pnl-pos,
.bitget-stat-table--snapshot-float tbody tr.bitget-stat-table-foot-total .pnl-neg {
    font-weight: 600;
}
.bitget-empty--compact {
    padding: 16px;
}
.bitget-stat-footnote {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 16px 0;
    padding: 12px;
    background: var(--bg-elevated);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

/* —— 收益子导航 / 排行表 / 图表页 —— */
.bitget-stat-subnav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 12px;
}
.bitget-stat-subnav__on {
    color: var(--accent);
    font-weight: 700;
}
.bitget-stat-subnav__sep {
    color: var(--border);
    font-weight: 400;
    user-select: none;
}
.bitget-stat-subnav a {
    color: var(--text-muted);
    font-weight: 600;
}
.bitget-stat-subnav a:hover,
.bitget-stat-subnav a:focus-visible {
    color: var(--accent-hover);
}
.bitget-stat-subnav a:active {
    color: var(--accent);
}
.bitget-stat-table-wrap--rank {
    margin-bottom: 12px;
}
.bitget-stat-rank-table {
    min-width: 100%;
}
.bitget-stat-table--compact {
    min-width: 0;
}
.bitget-stat-col-rank {
    width: 36px;
    text-align: center;
    white-space: nowrap;
}
.bitget-rank-n {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
    background: var(--bg-card-inner);
    color: var(--text-muted);
}
.bitget-rank-n--1 {
    background: rgba(0, 240, 255, 0.18);
    color: var(--accent);
}
.bitget-rank-n--2 {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
}
.bitget-rank-n--3 {
    background: rgba(180, 130, 80, 0.2);
    color: #e8c08c;
}
.bitget-chart-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 14px 12px 16px;
    margin-bottom: 16px;
}
.bitget-chart-card h3 {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}
.bitget-chart-canvas-wrap {
    position: relative;
    height: 280px;
    width: 100%;
}
.bitget-chart-canvas-wrap--tall {
    height: 320px;
}
.bitget-chart-empty {
    font-size: 13px;
    color: var(--text-muted);
    padding: 24px 12px;
    text-align: center;
}
.bitget-wrap--stats-charts {
    padding-bottom: 96px;
}

/* —— 收益统计 · 标题行筛选 / 底部时间弹层 —— */
.bitget-stat-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
}
.bitget-stat-title-row .bitget-page-title {
    flex: 1;
    margin-bottom: 0;
    min-width: 0;
}
.bitget-stat-filter-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--tap-min);
    height: var(--tap-min);
    margin: 0;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--bg-elevated);
    color: var(--accent);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.bitget-stat-filter-btn:active {
    opacity: 0.88;
    background: var(--accent-dim);
}
.bitget-stat-filter-btn .bitget-svg {
    display: block;
}
.bitget-stat-toolbar--compact {
    margin-bottom: 8px;
}
.bitget-stat-toolbar--compact .bitget-stat-symbol {
    margin-bottom: 0;
}
body.bitget-pnl-sheet-open {
    overflow: hidden;
}
.bitget-pnl-sheet {
    position: fixed;
    inset: 0;
    z-index: 3000;
    visibility: hidden;
    pointer-events: none;
}
.bitget-pnl-sheet.is-open {
    visibility: visible;
    pointer-events: auto;
}
.bitget-pnl-sheet__backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: rgba(0, 0, 0, 0.52);
    opacity: 0;
    transition: opacity 0.22s ease;
}
.bitget-pnl-sheet.is-open .bitget-pnl-sheet__backdrop {
    opacity: 1;
}
.bitget-pnl-sheet__panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    max-height: 88vh;
    overflow-x: hidden;
    overflow-y: auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-bottom: none;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.35);
    transform: translateY(105%);
    transition: transform 0.28s var(--ease-out);
    padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
}
.bitget-pnl-sheet.is-open .bitget-pnl-sheet__panel {
    transform: translateY(0);
}
.bitget-pnl-sheet__head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 14px 12px;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--bg-card);
    z-index: 2;
}
.bitget-pnl-sheet__title {
    flex: 1;
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
}
.bitget-pnl-sheet__x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--tap-min);
    height: var(--tap-min);
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.bitget-pnl-sheet__x:active {
    background: var(--bg-elevated);
}
.bitget-pnl-sheet__body {
    padding: 16px 14px 8px;
}
.bitget-pnl-sheet__section-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin: 0 0 10px;
}
.bitget-pnl-sheet__section-label:not(:first-child) {
    margin-top: 8px;
}
.bitget-stat-chips--sheet {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}
.bitget-stat-chips--sheet .bitget-stat-chip {
    min-height: 38px;
}
.bitget-stat-custom--sheet {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 0;
    padding: 14px;
    gap: 12px;
}
.bitget-stat-custom--sheet .bitget-stat-custom-field {
    width: 100%;
}
.bitget-stat-custom--sheet .bitget-stat-custom-field input[type="date"] {
    width: 100%;
    box-sizing: border-box;
}
.bitget-stat-custom--sheet .btn--stat {
    width: 100%;
    margin-top: 4px;
}

/* 委托详情：本地采样价迷你走势（bitget_spot_symbol_price_history） */
.dg-price-spark {
    margin: 10px 0 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
}
.dg-price-spark__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px 10px;
    margin-bottom: 6px;
}
.dg-price-spark__title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}
.dg-price-spark__hint {
    font-size: 11px;
    color: var(--text-muted);
    max-width: 100%;
}
.dg-price-spark__chart {
    width: 100%;
    overflow: hidden;
}
.dg-price-spark__chart svg {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    color: var(--accent, #5b8cff);
}
.dg-price-spark__line {
    stroke: currentColor;
    opacity: 0.92;
}
.dg-price-spark__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 10px;
    margin-top: 6px;
    font-size: 11px;
    color: var(--text-muted);
}
.dg-price-spark__pr {
    font-variant-numeric: tabular-nums;
    color: var(--text);
    font-weight: 500;
}

/* 盈亏统计：交易对旁走势图入口（小图标，不撑高表行） */
.bitget-pnl-sym-inline {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
    line-height: 1.2;
}
.bitget-pnl-sym-inline strong {
    font-weight: 700;
}
.bitget-ph-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-elevated);
    color: var(--accent, #5b8cff);
    cursor: pointer;
    vertical-align: middle;
    flex-shrink: 0;
    line-height: 0;
    -webkit-tap-highlight-color: transparent;
    transition:
        background 0.15s var(--ease-out),
        border-color 0.15s var(--ease-out),
        color 0.15s var(--ease-out),
        filter 0.12s ease;
}
.bitget-ph-icon-btn svg {
    width: 12px;
    height: 12px;
    display: block;
    flex-shrink: 0;
}
.bitget-ph-icon-btn:hover {
    background: var(--bg-card);
    border-color: var(--border-accent);
    color: var(--accent-hover);
}
.bitget-ph-icon-btn:active {
    filter: brightness(0.9);
}
.bitget-ph-icon-btn:focus {
    outline: none;
}
.bitget-ph-icon-btn:focus-visible {
    outline: 2px solid var(--border-accent);
    outline-offset: 2px;
}
/* 委托列表标题行：与币种名、买卖方向同一行对齐 */
.dg-item-title-cluster .bitget-ph-icon-btn {
    align-self: center;
}
.bitget-stat-table td:has(.bitget-pnl-sym-inline) {
    vertical-align: middle;
}
.bitget-stat-table--snapshot-float .bitget-pnl-market-flat-form {
    display: inline;
    margin: 0;
    padding: 0;
}
.bitget-chart-sym-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    font-size: 13px;
}

/* 收益统计·浮动快照表：平仓提交表单元格 */
.bitget-stat-table--snapshot-float td:has(.bitget-pnl-market-flat-form) {
    vertical-align: middle;
    white-space: nowrap;
}
.bitget-chart-sym-strip__item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}

.bitget-ph-dialog {
    border: none;
    padding: 0;
    margin: auto;
    max-width: calc(100vw - 20px);
    width: min(540px, 100%);
    background: transparent;
}
.bitget-ph-dialog::backdrop {
    background: rgba(0, 0, 0, 0.52);
}
.bitget-ph-dialog__panel {
    display: flex;
    flex-direction: column;
    max-height: min(90vh, 760px);
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}
.bitget-ph-dialog__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 14px 12px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.bitget-ph-dialog__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}
.bitget-ph-dialog__close {
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: var(--text-muted);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}
.bitget-ph-dialog__close:active {
    background: var(--bg-elevated);
}
.bitget-ph-dialog__body {
    padding: 12px 14px 18px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.bitget-ph-loading {
    margin: 12px 0;
    color: var(--text-muted);
    font-size: 14px;
}
.bitget-ph-empty {
    margin: 12px 0;
    font-size: 14px;
    color: var(--text-muted);
}

.bitget-ph-modal-inner {
    font-size: 13px;
}
.bitget-ph-modal-lead {
    margin: 0 0 10px;
    color: var(--text-muted);
    line-height: 1.45;
}
.bitget-ph-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    margin: 0 -6px;
    padding: 6px 6px 10px;
    outline: none;
    scroll-snap-type: none;
}
.bitget-ph-scroll__inner {
    display: inline-block;
    vertical-align: top;
}
.bitget-ph-scroll__inner svg {
    display: block;
    max-width: none;
    height: auto;
    max-height: 240px;
    color: var(--accent, #5b8cff);
}
.bitget-ph-scroll__inner .dg-price-spark__line {
    stroke: currentColor;
    stroke-width: 2.1;
}
.bitget-ph-modal-axis {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
    font-size: 11px;
    color: var(--text-muted);
}
.bitget-ph-modal-axis__t {
    font-variant-numeric: tabular-nums;
    max-width: 42%;
    word-break: break-all;
}
.bitget-ph-modal-axis__hint {
    flex: 1 1 auto;
    text-align: center;
    color: var(--text-muted);
    opacity: 0.9;
}
.bitget-ph-modal-dl {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px 14px;
    margin: 14px 0 4px;
    padding: 12px;
    border-radius: 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
}
.bitget-ph-modal-dl dt {
    margin: 0;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}
.bitget-ph-modal-dl dd {
    margin: 4px 0 0;
    font-size: 14px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--text);
}
