/* ============================================================
   我的账号 / 控制台 — 仪表盘 v2（浅色 SaaS）
   ============================================================ */

/* —— 未登录门禁（全屏居中大卡片） —— */
html.maclogin-account-locked #page-wode-zhanghao.page-account.page-main {
    display: flex;
    flex-direction: column;
}

html.maclogin-account-locked .account-gate-shell {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    padding:
        clamp(28px, 6vh, 56px)
        max(20px, env(safe-area-inset-right, 0px))
        clamp(36px, 8vh, 72px)
        max(20px, env(safe-area-inset-left, 0px));
}

html.maclogin-account-locked .account-gate {
    width: 100%;
    max-width: min(640px, 100%);
    margin: 0 auto;
    text-align: left;
    padding: clamp(28px, 4.5vw, 44px) clamp(24px, 4vw, 40px);
    border-radius: 24px;
    box-sizing: border-box;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background:
        linear-gradient(165deg, rgba(255, 255, 255, 0.99) 0%, rgba(248, 250, 255, 0.94) 45%, rgba(239, 246, 255, 0.88) 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.95) inset,
        0 28px 64px rgba(15, 23, 42, 0.09),
        0 10px 28px rgba(37, 99, 235, 0.06);
    backdrop-filter: blur(12px) saturate(1.2);
    -webkit-backdrop-filter: blur(12px) saturate(1.2);
}

html.maclogin-account-locked .account-gate.sketch-box:hover {
    transform: none;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.95) inset,
        0 28px 64px rgba(15, 23, 42, 0.09),
        0 10px 28px rgba(37, 99, 235, 0.06);
}

html.maclogin-account-locked .account-gate-eyebrow {
    display: inline-block;
    margin: 0 0 18px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.05em;
    color: #15803d;
    background: rgba(34, 197, 94, 0.14);
    border: 1px solid rgba(34, 197, 94, 0.28);
}

html.maclogin-account-locked .account-gate-eyebrow[hidden] {
    display: none;
}

html.maclogin-account-locked .account-gate--post-checkout .account-gate-eyebrow {
    color: #1d4ed8;
    background: rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.22);
}

html.maclogin-account-locked .account-gate-hero {
    display: flex;
    gap: clamp(16px, 3vw, 24px);
    align-items: flex-start;
    margin-bottom: clamp(20px, 3vw, 28px);
}

html.maclogin-account-locked .account-gate-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    color: var(--primary, #2563eb);
    background: linear-gradient(145deg, rgba(37, 99, 235, 0.14), rgba(14, 165, 233, 0.1));
    border: 1px solid rgba(37, 99, 235, 0.2);
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.12);
}

html.maclogin-account-locked .account-gate-icon .lucide {
    width: 28px;
    height: 28px;
}

html.maclogin-account-locked .account-gate-hero-copy {
    min-width: 0;
    flex: 1;
}

html.maclogin-account-locked .account-gate-title {
    margin: 0 0 12px;
    font-size: clamp(1.45rem, 2.8vw, 1.85rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: #0f172a;
}

html.maclogin-account-locked .account-gate-lead {
    margin: 0;
    font-size: clamp(15px, 1.9vw, 17px);
    line-height: 1.65;
    color: #475569;
}

html.maclogin-account-locked .account-gate-hints {
    list-style: none;
    margin: 0 0 clamp(24px, 3.5vw, 32px);
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

html.maclogin-account-locked .account-gate-hints li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin: 0;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(241, 245, 249, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.22);
    font-size: 14px;
    line-height: 1.55;
    color: #334155;
}

html.maclogin-account-locked .account-gate-hint-ico {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary, #2563eb);
    border: 1px solid rgba(37, 99, 235, 0.12);
}

html.maclogin-account-locked .account-gate-hint-ico .lucide {
    width: 18px;
    height: 18px;
}

html.maclogin-account-locked .account-gate-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 20px;
}

html.maclogin-account-locked .account-gate-cta {
    flex: 1 1 auto;
    min-width: min(200px, 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 650;
    border-radius: 14px;
}

html.maclogin-account-locked .account-gate-back {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary, #2563eb);
    text-decoration: none;
    padding: 10px 4px;
}

html.maclogin-account-locked .account-gate-back:hover {
    text-decoration: underline;
}

@media (max-width: 520px) {
    html.maclogin-account-locked .account-gate-hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    html.maclogin-account-locked .account-gate-hero-copy {
        text-align: center;
    }

    html.maclogin-account-locked .account-gate-hints li {
        font-size: 13px;
    }

    html.maclogin-account-locked .account-gate-actions {
        flex-direction: column;
        align-items: stretch;
    }

    html.maclogin-account-locked .account-gate-back {
        text-align: center;
    }
}

html.maclogin-account-locked .account-dashboard-wrap {
    display: none;
}

html.maclogin-account-ok .account-gate {
    display: none;
}

html.maclogin-account-ok .account-dashboard-wrap {
    display: block;
}

.page-account.page-main {
    background: linear-gradient(180deg, #eef4ff 0%, #f1f5f9 42%, #f8fafc 100%);
    min-height: 100vh;
}

html[data-page-js="page-wode-zhanghao.js"] .footer-cta {
    background: url('../images/dibubeijingtu.png') center center / cover no-repeat;
}

.account-v2 {
    --acc-blue: #2563eb;
    --acc-blue-soft: #e8f0fe;
    --acc-sky: #38bdf8;
    --acc-text: #0f172a;
    --acc-muted: #64748b;
    --acc-border: rgba(15, 23, 42, 0.08);
    --acc-radius: 16px;
    --acc-shadow: 0 14px 40px rgba(15, 23, 42, 0.07), 0 2px 8px rgba(15, 23, 42, 0.04);
    padding-bottom: 56px;
}

/* ----- Page header ----- */
.account-v2__head {
    padding: 28px 0 20px;
}

.account-v2__head-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.account-v2__crumb {
    font-size: 13px;
    color: var(--acc-muted);
    margin: 0 0 8px;
}

.account-v2__title {
    margin: 0;
    font-size: clamp(26px, 4vw, 34px);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--acc-text);
}

/* ----- Top tabs ----- */
.account-v2__tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    margin-bottom: 22px;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(14px) saturate(1.3);
    -webkit-backdrop-filter: blur(14px) saturate(1.3);
    border: 1px solid var(--acc-border);
    border-radius: 14px;
    box-shadow: var(--acc-shadow);
}

.account-v2__tabs a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--acc-muted);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.account-v2__tabs a[data-dash-view] {
    position: relative;
    display: inline-grid;
    place-items: center;
    min-height: 44px;
    padding: 0;
    overflow: hidden;
    isolation: isolate;
    color: var(--acc-muted);
    transition: color 0.28s ease, box-shadow 0.28s ease;
    --account-tab-spring: linear(
        0, .1004, .1819, .2532, .3173, .3756, .4291, .4785, .5243, .5669,
        .6067, .6439, .6787, .7113, .7419, .7705, .7974, .8226, .8462, .8683,
        .8889, .9083, .9263, .9431, .9587, .9732, .9866, .9989, 1.0102, 1.0206,
        1.0301, 1.0386, 1.0462, 1.053, 1.059, 1.0642, 1.0686, 1.0723, 1.0752,
        1.0774, 1.0789, 1.0798, 1.08, 1.0797, 1.079, 1.0779, 1.0765, 1.0747,
        1.0725, 1.0701, 1.0675, 1.0647, 1.0618, 1.0589, 1.056, 1.053, 1.0502,
        1.0473, 1.0446, 1.042, 1.0394, 1.037, 1.0346, 1.0324, 1.0302, 1.0282,
        1.0262, 1.0244, 1.0226, 1.021, 1.0194, 1.0179, 1.0164, 1.0151, 1.0138,
        1.0126, 1.0115, 1.0104, 1.0094, 1.0085, 1.0076, 1.0068, 1.006, 1.0053,
        1.0047, 1.0041, 1.0035, 1.003, 1.0025, 1.0021, 1.0017, 1.0014, 1.0011,
        1.0008, 1.0006, 1.0004, 1.0003, 1.0001, 1.0001, 1, 1
    );
}

.account-v2__tabs a[data-dash-view] .account-tab-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    background: rgba(255, 255, 255, 0);
    transform: scale(1);
    transform-origin: center;
    transition: background 0.5s cubic-bezier(.88, 0, .12, 1),
                transform 0.5s cubic-bezier(.88, 0, .12, 1),
                box-shadow 0.5s cubic-bezier(.88, 0, .12, 1);
}

.account-tab-inner {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
}

.account-tab-inner svg,
.account-tab-inner i {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform 0.3s ease, color 0.28s ease;
}

.account-tab-label {
    display: grid;
    place-items: center;
    overflow: hidden;
    white-space: nowrap;
}

.account-tab-text {
    display: flex;
    grid-row: 1;
    grid-column: 1;
}

.account-tab-text--d {
    color: currentColor;
}

.account-tab-text--h {
    color: #fff;
    pointer-events: none;
}

.account-tab-c {
    display: inline-block;
    transition: transform 0.26s cubic-bezier(.5, 0, 0, 1),
                opacity 0.26s cubic-bezier(.5, 0, 0, 1);
}

.account-tab-text--d .account-tab-c {
    opacity: 1;
    transform: translateY(0);
}

.account-tab-text--h .account-tab-c {
    opacity: 0;
    transform: translateY(55%);
}

.account-tab-stroke {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 8px;
    z-index: 2;
    height: 1.5px;
    border-radius: 1px;
    background: rgba(255, 255, 255, 0.78);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.52s cubic-bezier(.5, 0, 0, 1);
    pointer-events: none;
}

.account-v2__tabs a[data-dash-view].active {
    color: #fff;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}

.account-v2__tabs a[data-dash-view].active .account-tab-bg {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
}

@media (hover: hover) {
    .account-v2__tabs a[data-dash-view]:hover {
        color: #fff;
        box-shadow: 0 8px 28px rgba(37, 99, 235, 0.42);
    }

    .account-v2__tabs a[data-dash-view]:hover .account-tab-bg {
        background: var(--acc-blue);
        transform: scale(1.12);
        transition-duration: 0.8s;
        transition-timing-function: var(--account-tab-spring);
    }

    .account-v2__tabs a[data-dash-view]:hover .account-tab-inner svg,
    .account-v2__tabs a[data-dash-view]:hover .account-tab-inner i {
        transform: translateY(-1px);
    }

    .account-v2__tabs a[data-dash-view]:hover .account-tab-text--d .account-tab-c {
        opacity: 0;
        transform: translateY(-50%);
    }

    .account-v2__tabs a[data-dash-view]:hover .account-tab-text--h .account-tab-c {
        opacity: 1;
        transform: translateY(0);
    }

    .account-v2__tabs a[data-dash-view]:hover .account-tab-text--h .account-tab-c:nth-child(1) { transition-delay: 0s; }
    .account-v2__tabs a[data-dash-view]:hover .account-tab-text--h .account-tab-c:nth-child(2) { transition-delay: 0.07s; }
    .account-v2__tabs a[data-dash-view]:hover .account-tab-text--h .account-tab-c:nth-child(3) { transition-delay: 0.14s; }
    .account-v2__tabs a[data-dash-view]:hover .account-tab-text--h .account-tab-c:nth-child(4) { transition-delay: 0.21s; }

    .account-v2__tabs a[data-dash-view]:hover .account-tab-stroke {
        transform: scaleX(1);
        transition-delay: 0.18s;
    }
}

.account-v2__tabs a[data-dash-view]:focus-visible {
    outline: 2px solid rgba(37, 99, 235, 0.45);
    outline-offset: 2px;
}

.account-v2__tab-logout {
    margin-left: auto;
    color: #b91c1c !important;
}

.account-v2__tab-logout:hover {
    background: rgba(185, 28, 28, 0.08) !important;
}

.account-v2__tab-badge {
    min-width: 1.1rem;
    height: 1.1rem;
    padding: 0 5px;
    border-radius: 99px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.1rem;
    text-align: center;
}

/* ----- Dashboard surface ----- */
.account-v2 .dashboard-main-surface {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.account-v2 .dashboard-main-surface.sketch-box {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    padding: 0;
    box-shadow: none;
}

.account-v2 .dashboard-main-surface.sketch-box:hover {
    transform: none;
    box-shadow: none;
}

/* ----- Hero 基准布局 ----- */
.account-hero {
    position: relative;
    width: 1400px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    display: grid;
    grid-template-columns: 1fr minmax(140px, 220px);
    gap: 24px;
    align-items: stretch;
    padding: 26px 28px 0;
    margin-bottom: 22px;
    border-radius: var(--acc-radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.65);
    background:
        linear-gradient(90deg, rgba(37, 99, 235, 0.34) 0%, rgba(14, 165, 233, 0.12) 48%, rgba(14, 165, 233, 0) 100%),
        linear-gradient(165deg, #1d4ed8 0%, #0ea5e9 48%, #38bdf8 100%);
    box-shadow: var(--acc-shadow);
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
}

.account-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(90deg, rgba(238, 248, 255, 0.82) 0%, rgba(238, 248, 255, 0.58) 28%, rgba(238, 248, 255, 0.14) 58%, rgba(238, 248, 255, 0) 100%),
        linear-gradient(180deg, rgba(255, 255, 255, 0) 48%, rgba(239, 248, 255, 0.74) 100%),
        radial-gradient(ellipse 80% 60% at 12% 20%, rgba(255, 255, 255, 0.38) 0%, transparent 55%),
        radial-gradient(ellipse 50% 40% at 88% 10%, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

/* ----- Hero（控制台）：清爽面板 + 身份区 + 统计条 ----- */
.account-hero--console {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 26px 26px 0;
    margin-bottom: 22px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.82);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.97) 0%, rgba(248, 251, 255, 0.92) 52%, rgba(239, 246, 255, 0.78) 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.92) inset,
        0 22px 52px -18px rgba(15, 23, 42, 0.12),
        0 10px 26px -14px rgba(59, 130, 246, 0.08);
}

.account-hero--console .account-hero__art {
    position: absolute;
    right: clamp(14px, 2.2vw, 26px);
    top: 50%;
    transform: translateY(-55%);
    width: clamp(160px, 22vw, 240px);
    max-width: 34%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: visible;
    opacity: 0.95;
    filter: drop-shadow(0 18px 38px rgba(15, 23, 42, 0.18));
}

.account-hero--console::before {
    z-index: 0;
    background:
        radial-gradient(ellipse 120% 90% at 100% 0%, rgba(147, 197, 253, 0.38) 0%, transparent 52%),
        radial-gradient(ellipse 90% 70% at 0% 100%, rgba(224, 242, 254, 0.65) 0%, transparent 48%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, transparent 42%);
    pointer-events: none;
}

.account-hero--console::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    /* 背景图四周渐变（自然融入），同时保持图片比例不变 */
    background-image:
        /* 左侧与内容区的过渡（避免硬边） */
        linear-gradient(90deg, rgba(248, 251, 255, 0.98) 0%, rgba(248, 251, 255, 0.82) 26%, rgba(248, 251, 255, 0.35) 52%, rgba(248, 251, 255, 0) 72%),
        /* 轻微暗角：让四周更柔和 */
        radial-gradient(closest-side at 58% 50%, rgba(248, 251, 255, 0) 58%, rgba(248, 251, 255, 0.9) 100%),
        url('../images/wodezhanghao.png');
    background-repeat: no-repeat, no-repeat, no-repeat;
    background-position: left center, center center, right center;
    background-size: 100% 100%, 100% 100%, cover;
    opacity: 0.95;
    pointer-events: none;
    mix-blend-mode: normal;
}

.account-hero--console::before {
    /* 左侧表单可读性：叠一层柔和白雾 */
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.7) 38%, rgba(255, 255, 255, 0.22) 64%, rgba(255, 255, 255, 0) 100%),
        radial-gradient(ellipse 120% 90% at 100% 0%, rgba(147, 197, 253, 0.28) 0%, transparent 52%),
        radial-gradient(ellipse 90% 70% at 0% 100%, rgba(224, 242, 254, 0.55) 0%, transparent 48%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.25) 0%, transparent 42%);
    pointer-events: none;
}

.account-hero--console .account-hero__main,
.account-hero--console .account-hero-stats {
    position: relative;
    z-index: 2;
}

.account-hero__meta {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
}

.account-hero--console .account-hero__profile {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    column-gap: 22px;
    row-gap: 0;
}

.account-hero--console .account-hero__avatar {
    align-self: start;
}

.account-hero--console .account-hero__meta {
    grid-column: 2;
    align-self: stretch;
    gap: 6px;
}

.account-hero--console .account-hero__name-row {
    margin-bottom: 0;
}

.account-hero--console .account-hero__lines {
    width: 100%;
}

.account-hero--console .account-hero__line--email {
    width: 100%;
    gap: 0;
    align-items: flex-start;
}

.account-hero--console .account-hero__email-chip {
    display: inline-flex;
    align-self: flex-start;
    width: auto;
    max-width: min(100%, 20rem);
    box-sizing: border-box;
    padding: 7px 10px 7px 10px;
    min-height: 44px;
    align-items: center;
}

.account-hero--console .account-hero__email-chip code {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 15rem;
}

.account-hero__line--email {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    max-width: 100%;
}

.account-hero__email-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    max-width: min(100%, 440px);
    padding: 8px 10px 8px 10px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

.account-hero__email-chip-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 11px;
    background: linear-gradient(145deg, #eff6ff 0%, #dbeafe 100%);
    color: #2563eb;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.account-hero__email-chip-icon .lucide {
    width: 15px;
    height: 15px;
}

.account-hero__line--email code {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    font-size: 13.5px;
    font-weight: 650;
    padding: 4px 4px 4px 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #0f172a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-hero__email-chip .account-copy-btn {
    flex-shrink: 0;
    margin-left: auto;
    padding: 8px;
    border-radius: 10px;
    background: rgba(37, 99, 235, 0.08);
    color: #2563eb;
}

.account-hero__email-chip .account-copy-btn:hover {
    background: rgba(37, 99, 235, 0.14);
}

/* ----- 控制台总排版 v3 ----- */
.account-v2.account-console {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.account-console__masthead {
    padding: 24px 0 18px;
    margin-bottom: 4px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

.account-console__masthead-row {
    align-items: center;
}

.account-console__crumb-sep {
    opacity: 0.45;
}

.account-console__titles .account-v2__title {
    font-size: clamp(24px, 3.2vw, 30px);
}

/* Tab 条：移动端可横向滑动 */
.account-console__tabs {
    margin-top: 18px;
    margin-bottom: 22px;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
}

.account-console__tabs::-webkit-scrollbar {
    height: 6px;
}

.account-console__tabs::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.12);
    border-radius: 99px;
}

.account-console__tabs a[data-dash-view] {
    scroll-snap-align: start;
    flex-shrink: 0;
}

/* 「我的账号」主区：主栏 + 侧栏 */
.account-account-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 24px;
    align-items: start;
}

.account-account-split__main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.account-account-split__aside {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: sticky;
    top: 88px;
}

.account-grid--console {
    margin-bottom: 0;
    grid-template-columns: 1fr;
}

.account-activity--console {
    margin-bottom: 0;
}

.account-support-banner--console {
    margin-bottom: 0;
}

@media (max-width: 1023px) {
    .account-account-split {
        grid-template-columns: 1fr;
    }

    .account-account-split__aside {
        position: static;
    }
}

@media (max-width: 640px) {
    .account-hero--console {
        grid-template-columns: 1fr;
    }

    .account-hero--console .account-hero__profile {
        column-gap: 16px;
        padding: 18px 16px;
    }

    .account-hero--console .account-hero__art {
        display: none;
    }
}

@media (max-width: 420px) {
    .account-hero--console .account-hero__profile {
        grid-template-columns: 1fr;
        row-gap: 12px;
    }

    .account-hero--console .account-hero__meta {
        width: 100%;
    }

    .account-hero--console .account-hero__avatar {
        justify-self: center;
    }
}

/* 机器空状态：推荐卡片 */
.account-v2 .machine-empty-state {
    padding: 22px 22px 20px;
    border-radius: var(--acc-radius);
    background: #fff;
    border: 1px solid var(--acc-border);
    box-shadow: var(--acc-shadow);
    min-width: 0;
    box-sizing: border-box;
    overflow-wrap: break-word;
}

.account-v2 .machine-recommend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 14px;
    margin-top: 12px;
}

.account-v2 .machine-rec-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    grid-template-rows: auto auto minmax(0, 1fr);
    column-gap: 14px;
    row-gap: 8px;
    align-items: start;
    padding: 18px 18px 18px 16px;
    min-height: 124px;
    text-decoration: none;
    color: inherit;
    border-radius: 16px;
    border: 1px solid var(--acc-border);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 255, 0.92) 100%);
    transition: border-color 0.2s, box-shadow 0.22s ease, transform 0.2s;
    min-width: 0;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* 与通用 .sketch-box 叠加时：统一为控制台轻卡片，避免过大内边距与强玻璃blur */
.account-v2 .machine-rec-card.sketch-box {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 18px 18px 18px 16px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.92) inset,
        0 8px 26px rgba(15, 23, 42, 0.06),
        0 2px 8px rgba(59, 130, 246, 0.05);
}

.account-v2 .machine-rec-card:hover,
.account-v2 .machine-rec-card.sketch-box:hover {
    border-color: rgba(37, 99, 235, 0.3);
    transform: translateY(-2px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.95) inset,
        0 14px 40px rgba(15, 23, 42, 0.09),
        0 4px 14px rgba(37, 99, 235, 0.08);
}

.account-v2 .machine-rec-badge {
    grid-column: 2;
    grid-row: 1;
    justify-self: start;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    padding: 4px 9px;
    border-radius: 8px;
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
    line-height: 1.2;
}

.account-v2 .machine-rec-ico {
    grid-column: 1;
    grid-row: 1 / -1;
    align-self: center;
    justify-self: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    color: var(--acc-blue);
}

.account-v2 .machine-rec-ico.lucide,
.account-v2 .machine-rec-ico svg {
    width: 32px;
    height: 32px;
}

.account-v2 .machine-rec-card strong {
    grid-column: 2;
    grid-row: 2;
    font-size: 15px;
    font-weight: 750;
    line-height: 1.3;
    letter-spacing: -0.02em;
    margin: 0;
    color: var(--acc-text);
}

.account-v2 .machine-rec-card > span:last-of-type {
    grid-column: 2;
    grid-row: 3;
    font-size: 13px;
    color: var(--acc-muted);
    line-height: 1.5;
}

.account-v2 .machine-empty-note {
    margin: clamp(20px, 3.5vw, 28px) 0 0;
    font-size: 13px;
    line-height: 1.55;
}

/* 各面板标题行统一 */
.account-v2 .dash-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.account-v2 .dash-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.account-hero__main {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: min(720px, 100%);
    padding-bottom: 22px;
    display: flex;
    flex-direction: column;
    gap: 26px;
    min-width: 0;
}

.account-hero__details {
    width: 100%;
    min-width: 0;
}

.account-hero__details-title {
    margin: 0 0 14px;
    padding-bottom: 10px;
    font-size: 15px;
    font-weight: 750;
    color: #0f172a;
    letter-spacing: -0.01em;
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
    display: flex;
    align-items: center;
    gap: 10px;
}

.account-hero__details-title::before {
    content: '';
    width: 4px;
    height: 1.05em;
    border-radius: 4px;
    background: linear-gradient(180deg, #3b82f6 0%, #6366f1 100%);
}

.account-hero__details:has(.account-dash-reset) .account-hero__details-title {
    margin-bottom: 14px;
    font-size: 16px;
    font-weight: 750;
}

/* 修改密码区：白净卡片嵌在浅色底上 */
.account-dash-reset {
    width: 100%;
    max-width: 100%;
    padding: 0;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(203, 213, 225, 0.75);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.05), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.account-dash-reset-lead {
    margin: 0;
    padding: 16px 20px 14px;
    font-size: 13px;
    line-height: 1.55;
    color: #64748b;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.95) 0%, rgba(255, 255, 255, 0.5) 100%);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.account-dash-reset-form .auth-field {
    margin: 0;
    padding: 14px 20px;
    border-bottom: 1px solid #e8eef5;
}

.account-dash-reset-form .auth-field:last-of-type {
    border-bottom: none;
}

.account-dash-reset-form .auth-field label {
    color: #64748b;
    font-weight: 650;
    font-size: 13px;
    margin-bottom: 8px;
}

.account-dash-reset .auth-input-wrap {
    border: 1px solid #d5e5f8;
    border-radius: 12px;
    background: #fff;
    box-shadow: none;
}

.account-dash-reset .auth-input-wrap:focus-within {
    border-color: #93b9eb;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14);
    background: #fff;
}

.account-dash-reset .auth-input-wrap .field-icon {
    color: #64748b;
}

.account-dash-reset .auth-code-row .auth-input-wrap {
    border-radius: 12px;
}

.account-dash-reset .auth-send-code {
    align-self: stretch;
    min-height: 44px;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 650;
    letter-spacing: 0.02em;
    border-radius: 12px;
    border: 1px solid rgba(37, 99, 235, 0.38);
    background: #fff;
    color: #2563eb;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.account-dash-reset .auth-send-code:hover:not(:disabled) {
    background: #eff6ff;
    border-color: #2563eb;
    color: #1d4ed8;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.12);
}

.account-dash-reset .auth-send-code:focus-visible {
    outline: 2px solid rgba(37, 99, 235, 0.45);
    outline-offset: 2px;
}

.account-dash-reset .auth-send-code:active:not(:disabled) {
    transform: translateY(1px);
}

.account-dash-reset .auth-toggle-pw {
    color: #2563eb;
}

.account-dash-reset .auth-toggle-pw:hover {
    color: #1d4ed8;
}

.account-dash-reset-form .auth-submit.account-dash-reset-submit {
    display: block;
    width: calc(100% - 40px);
    box-sizing: border-box;
    margin: 18px 20px 8px;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.015em;
    color: #fff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 52%, #1d4ed8 100%);
    box-shadow:
        0 4px 18px rgba(37, 99, 235, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    transition: filter 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.account-dash-reset-form .auth-submit.account-dash-reset-submit:hover {
    filter: brightness(1.06);
    box-shadow:
        0 8px 26px rgba(37, 99, 235, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
}

.account-dash-reset-form .auth-submit.account-dash-reset-submit:focus-visible {
    outline: 2px solid rgba(37, 99, 235, 0.55);
    outline-offset: 2px;
}

.account-dash-reset-form .auth-submit.account-dash-reset-submit:active {
    transform: translateY(1px);
}

.account-dash-reset-form .auth-msg {
    padding: 4px 20px 18px;
    margin-top: 0;
    min-height: 0;
}

.account-kv--hero {
    width: 100%;
    max-width: min(720px, 100%);
    background: rgba(255, 255, 255, 0.52);
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 14px;
    padding: 0 14px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.account-kv--hero .account-kv__row {
    border-bottom-color: rgba(15, 23, 42, 0.06);
}

.account-kv--hero .account-kv__row:last-child {
    border-bottom: none;
}

.account-hero__edit-btn {
    margin-top: 12px;
}

.account-hero__profile {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
    padding: 20px 22px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow:
        0 1px 3px rgba(15, 23, 42, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.account-hero__avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow:
        0 0 0 1px rgba(148, 163, 184, 0.35),
        0 12px 32px rgba(59, 130, 246, 0.2);
    flex-shrink: 0;
}

.account-hero__avatar--local {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    color: #1d4ed8;
    background: linear-gradient(155deg, #f0f9ff 0%, #e0f2fe 45%, #dbeafe 100%);
}

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

.account-hero__name {
    margin: 0;
    font-size: clamp(20px, 2.5vw, 26px);
    font-weight: 750;
    letter-spacing: -0.03em;
    color: #0f172a;
    line-height: 1.2;
}

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

.account-hero__line {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #2f4f75;
    font-weight: 600;
}

.account-hero__line code {
    background: rgba(15, 23, 42, 0.07);
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid rgba(37, 99, 235, 0.12);
    font-family: ui-monospace, monospace;
    font-size: 13px;
    color: #2d486b;
}

.account-hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.account-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
}

.account-hero__badge--ok {
    background: rgba(204, 251, 241, 0.86);
    color: #0f766e;
    border: 1px solid rgba(13, 148, 136, 0.28);
}

.account-copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border: none;
    border-radius: 8px;
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
    cursor: pointer;
}

.account-copy-btn:hover {
    background: rgba(37, 99, 235, 0.18);
}

.account-hero__art {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    visibility: hidden;
}

.account-hero__art svg {
    width: 100%;
    max-width: 180px;
    height: auto;
    filter: drop-shadow(0 16px 32px rgba(15, 23, 42, 0.2));
}

/* Hero stats bar */
.account-hero-stats {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2px;
    margin: 0 -28px -2px;
    padding: 16px 20px;
    background: rgba(242, 249, 255, 0.78);
    backdrop-filter: blur(16px) saturate(1.28);
    -webkit-backdrop-filter: blur(16px) saturate(1.28);
    border-top: 1px solid rgba(37, 99, 235, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.account-hero-stat {
    padding: 8px 12px;
    text-align: left;
}

.account-hero-stat__label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #476b91;
    margin-bottom: 4px;
    font-weight: 650;
}

.account-hero-stat__value {
    font-size: 17px;
    font-weight: 700;
    color: #17345f;
}

.account-hero-stat__link {
    display: inline-block;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
}

.account-hero-stat__link:hover {
    text-decoration: underline;
}

.account-hero--console .account-hero-stats {
    margin: 24px -26px 0;
    padding: 18px 20px 20px;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    background: rgba(248, 250, 252, 0.85);
    border-top: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        inset 0 0 0 1px rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.account-hero--console .account-hero-stat {
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(226, 232, 240, 0.95);
}

/* ----- Grid cards ----- */
.account-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-bottom: 22px;
}

@media (max-width: 900px) {
    .account-grid {
        grid-template-columns: 1fr;
    }
    .account-hero {
        grid-template-columns: 1fr;
    }
    .account-hero__art {
        display: none;
    }
    .account-hero-stats {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

.account-card {
    background: #fff;
    border: 1px solid var(--acc-border);
    border-radius: var(--acc-radius);
    padding: 22px 22px 18px;
    box-shadow: var(--acc-shadow);
}

.account-card__title {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 700;
    color: var(--acc-text);
}

.account-kv {
    display: grid;
    gap: 0;
}

.account-kv__row {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    font-size: 14px;
}

@media (max-width: 520px) {
    .account-kv__row {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

.account-kv__row:last-child {
    border-bottom: none;
}

.account-kv__k {
    font-size: 13px;
    color: var(--acc-muted);
}

.account-kv__v {
    color: var(--acc-text);
    font-weight: 500;
}

.account-kv__action {
    border: none;
    background: transparent;
    padding: 6px;
    border-radius: 8px;
    color: var(--acc-blue);
    cursor: pointer;
}

.account-kv__action:hover {
    background: var(--acc-blue-soft);
}

.account-card__btn {
    display: block;
    width: 100%;
    margin-top: 16px;
    padding: 12px 16px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.28);
}

.account-card__btn--secondary {
    background: #f1f5f9;
    color: var(--acc-text);
    box-shadow: none;
}

.account-card__btn--secondary:hover {
    background: #e2e8f0;
}

.account-card__btn.account-hero__edit-btn {
    width: 100%;
    max-width: min(720px, 100%);
}

.account-status-ok {
    color: #059669;
    font-weight: 600;
}

.account-btn-inline {
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid rgba(37, 99, 235, 0.35);
    background: #fff;
    color: var(--acc-blue);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

.account-btn-inline:hover {
    background: var(--acc-blue-soft);
}

/* Payment mini summary */
.account-bill-summary {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    background: linear-gradient(180deg, #eff6ff 0%, #e0f2fe 100%);
    border: 1px solid rgba(37, 99, 235, 0.12);
}

.account-bill-summary__title {
    font-size: 12px;
    font-weight: 700;
    color: var(--acc-blue);
    margin: 0 0 10px;
}

.account-bill-summary__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    font-size: 13px;
}

@media (max-width: 520px) {
    .account-bill-summary__grid {
        grid-template-columns: 1fr;
    }
}

.account-bill-summary__grid dt {
    margin: 0;
    color: var(--acc-muted);
    font-size: 12px;
}

.account-bill-summary__grid dd {
    margin: 4px 0 0;
    font-weight: 700;
    color: var(--acc-text);
}

/* Preferences */
.account-pref__field {
    margin-bottom: 14px;
}

.account-pref__field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--acc-muted);
    margin-bottom: 6px;
}

.account-pref__select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--acc-border);
    font-size: 14px;
    background: #fff;
}

.account-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
    font-size: 14px;
}

.account-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    font-size: 14px;
    font-weight: 500;
}

.account-switch {
    position: relative;
    width: 44px;
    height: 26px;
    flex-shrink: 0;
}

.account-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.account-switch__ui {
    position: absolute;
    inset: 0;
    background: #cbd5e1;
    border-radius: 99px;
    transition: background 0.2s;
    cursor: pointer;
}

.account-switch__ui::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
    transition: transform 0.2s;
}

.account-switch input:checked + .account-switch__ui {
    background: var(--acc-blue);
}

.account-switch input:checked + .account-switch__ui::after {
    transform: translateX(17px);
}

/* Activity table */
.account-activity {
    background: #fff;
    border: 1px solid var(--acc-border);
    border-radius: var(--acc-radius);
    padding: 22px;
    box-shadow: var(--acc-shadow);
    margin-bottom: 22px;
}

.account-activity__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.account-activity__title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.account-table-wrap {
    overflow-x: auto;
}

.account-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.account-table th,
.account-table td {
    padding: 12px 10px;
    text-align: left;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.account-table th {
    font-size: 12px;
    font-weight: 600;
    color: var(--acc-muted);
    background: #f8fafc;
}

.account-table tr:last-child td {
    border-bottom: none;
}

.account-act-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.account-act-ok {
    color: #059669;
    font-weight: 600;
}

.account-activity__foot {
    margin-top: 14px;
    text-align: right;
}

.account-activity__foot a {
    font-size: 14px;
    font-weight: 600;
    color: var(--acc-blue);
    text-decoration: none;
}

.account-activity__foot a:hover {
    text-decoration: underline;
}

/* Support banner */
.account-support-banner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 22px 26px;
    border-radius: var(--acc-radius);
    background:
        linear-gradient(135deg, rgba(224, 242, 254, 0.95) 0%, rgba(219, 234, 254, 0.92) 50%, rgba(191, 219, 254, 0.65) 100%);
    border: 1px solid rgba(37, 99, 235, 0.15);
    box-shadow: var(--acc-shadow);
    position: relative;
    overflow: hidden;
}

.account-support-banner::after {
    content: '';
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    width: 180px;
    height: 100px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.85) 0%, transparent 70%);
    pointer-events: none;
}

.account-support-banner__text {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.account-support-banner__text .ico {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--acc-blue);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.15);
}

.account-support-banner__text h3 {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 700;
    color: var(--acc-text);
}

.account-support-banner__text p {
    margin: 0;
    font-size: 14px;
    color: var(--acc-muted);
    line-height: 1.5;
}

.account-support-banner__actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.account-support-banner__actions .btn-solid {
    padding: 11px 18px;
    border-radius: 11px;
    border: none;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.28);
}

.account-support-banner__actions .btn-light {
    padding: 11px 18px;
    border-radius: 11px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: #fff;
    color: var(--acc-text);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}

@media (max-width: 720px) {
    .account-support-banner {
        grid-template-columns: 1fr;
    }
}

.account-v2 .account-card.sketch-box {
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: box-shadow 0.22s ease, border-color 0.22s ease;
}

.account-v2 .account-card.sketch-box:hover {
    transform: none;
    box-shadow:
        0 18px 44px rgba(15, 27, 50, 0.09),
        0 4px 12px rgba(15, 27, 42, 0.05);
    border-color: rgba(120, 170, 220, 0.22);
}

/* —— Workbench panels (机器 / 账单 / 工单) —— */
.account-v2 .dash-panel {
    animation: accPanelIn 0.35s ease both;
}

@keyframes accPanelIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.account-v2 .dash-header {
    margin-bottom: 18px;
}

.account-v2 .dash-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--acc-text);
}

/* —— 账单清单：登机牌式合并卡片 —— */
.billing-blocks--ticket {
    margin-top: 4px;
}

.billing-ticket {
    --billing-punch-bg: #f8fafc;
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: 200px;
    border-radius: 20px;
    overflow: visible;
    border: 1px solid rgba(148, 163, 184, 0.45);
    box-shadow:
        0 18px 48px rgba(15, 23, 42, 0.08),
        0 4px 14px rgba(59, 130, 246, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
    background: linear-gradient(
        165deg,
        rgba(255, 255, 255, 0.78) 0%,
        rgba(224, 242, 254, 0.55) 38%,
        rgba(191, 219, 254, 0.34) 100%
    );
}

/* 左右侧「打孔」 */
.billing-ticket::before,
.billing-ticket::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 18px;
    height: 18px;
    margin-top: -9px;
    border-radius: 50%;
    background: var(--billing-punch-bg);
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.28);
    z-index: 4;
    pointer-events: none;
}

.billing-ticket::before {
    left: -9px;
}

.billing-ticket::after {
    right: -9px;
}

.billing-ticket__stub {
    flex: 0 0 112px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 12px;
    text-align: center;
    border-right: 1px dashed rgba(59, 130, 246, 0.35);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.45) 0%, rgba(219, 234, 254, 0.35) 100%);
}

.billing-ticket__plane {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1d4ed8;
    filter: drop-shadow(0 4px 10px rgba(37, 99, 235, 0.25));
}

.billing-ticket__plane .lucide {
    width: 36px;
    height: 36px;
}

.billing-ticket__stub-en {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: #1e40af;
    line-height: 1.25;
}

.billing-ticket__stub-zh {
    font-size: 13px;
    font-weight: 750;
    color: #173e8f;
}

.billing-ticket__stub-stars {
    font-size: 10px;
    letter-spacing: 0.35em;
    color: rgba(37, 99, 235, 0.55);
}

.billing-ticket__main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px 20px 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(248, 250, 252, 0.28) 100%);
}

.billing-ticket__head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.billing-ticket__head-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(145deg, #1e40af 0%, #2563eb 55%, #3b82f6 100%);
    color: #fff;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.3);
}

.billing-ticket__head-icon .lucide {
    width: 20px;
    height: 20px;
}

.billing-ticket__head-copy {
    min-width: 0;
}

.billing-ticket__title {
    margin: 0 0 6px;
    font-size: clamp(17px, 2.2vw, 19px);
    font-weight: 750;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.billing-ticket__lead {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: #64748b;
}

.billing-ticket__sheet {
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(226, 232, 240, 0.92);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        0 1px 6px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.billing-ticket__panel {
    padding: 14px 16px 16px;
}

.billing-ticket__panel-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 750;
    color: #1e3a8a;
}

.billing-ticket__panel-title .lucide {
    flex-shrink: 0;
    color: #3b82f6;
}

.billing-ticket__body {
    border-radius: 10px;
    overflow-x: hidden;
    min-width: 0;
    -webkit-overflow-scrolling: touch;
}

/* 发票表格可能较宽；订单区仅为登机牌列表，禁止横向滚动条 */
#billing-invoices-body.billing-ticket__body {
    overflow-x: auto;
}

.billing-ticket .billing-table th {
    background: linear-gradient(180deg, #eff6ff 0%, #e0f2fe 100%);
    color: #475569;
}

.billing-ticket__panel-sep {
    height: 1px;
    margin: 0;
    border: none;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(59, 130, 246, 0.2) 20%,
        rgba(59, 130, 246, 0.2) 80%,
        transparent 100%
    );
}

.billing-ticket .billing-block-body--scroll {
    max-height: 280px;
    overflow-y: auto;
}

#billing-orders-body.billing-block-body--scroll {
    overflow-x: hidden;
}

#billing-invoices-body.billing-block-body--scroll {
    overflow-x: auto;
}

/* Firefox：细滚动条 + 与账单面板协调的配色 */
.billing-ticket #billing-orders-body.billing-block-body--scroll,
.billing-ticket #billing-invoices-body.billing-block-body--scroll {
    scrollbar-width: thin;
    scrollbar-color: rgba(59, 130, 246, 0.42) rgba(226, 232, 240, 0.35);
}

/* WebKit / Chromium：订单 / 发票列表右侧（及发票底部）滚动条 */
.billing-ticket #billing-orders-body.billing-block-body--scroll::-webkit-scrollbar,
.billing-ticket #billing-invoices-body.billing-block-body--scroll::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

.billing-ticket #billing-orders-body.billing-block-body--scroll::-webkit-scrollbar-track,
.billing-ticket #billing-invoices-body.billing-block-body--scroll::-webkit-scrollbar-track {
    background: rgba(241, 245, 249, 0.45);
    border-radius: 100px;
}

.billing-ticket #billing-orders-body.billing-block-body--scroll::-webkit-scrollbar-thumb,
.billing-ticket #billing-invoices-body.billing-block-body--scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(
        180deg,
        rgba(59, 130, 246, 0.35) 0%,
        rgba(100, 116, 139, 0.48) 100%
    );
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.billing-ticket #billing-orders-body.billing-block-body--scroll::-webkit-scrollbar-thumb:hover,
.billing-ticket #billing-invoices-body.billing-block-body--scroll::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(
        180deg,
        rgba(37, 99, 235, 0.52) 0%,
        rgba(59, 130, 246, 0.6) 100%
    );
    border-color: rgba(255, 255, 255, 0.5);
}

.billing-ticket #billing-invoices-body.billing-block-body--scroll::-webkit-scrollbar-corner {
    background: transparent;
}

.billing-ticket #billing-orders-body.billing-block-body--scroll::-webkit-scrollbar-button,
.billing-ticket #billing-invoices-body.billing-block-body--scroll::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}

.billing-ticket .billing-empty,
.billing-ticket .billing-loading {
    margin: 0;
    padding: 16px 8px;
    font-size: 13px;
    line-height: 1.55;
    color: #64748b;
}

/* —— 单笔订单：登机牌式票卡 —— */
.billing-ticket .order-ticket-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
    /* 票卡左右打孔略突出，留白避免触发父级横向 overflow */
    padding: 0 8px;
    box-sizing: border-box;
}

.billing-ticket .order-ticket {
    --order-ticket-punch-bg: rgba(248, 250, 252, 0.98);
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: 118px;
    border-radius: 16px;
    overflow: visible;
    border: 1px solid rgba(148, 163, 184, 0.42);
    box-shadow:
        0 12px 34px rgba(15, 23, 42, 0.07),
        0 2px 10px rgba(59, 130, 246, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    background: linear-gradient(
        152deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(224, 242, 254, 0.55) 42%,
        rgba(191, 219, 254, 0.35) 100%
    );
}

.billing-ticket .order-ticket::before,
.billing-ticket .order-ticket::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 14px;
    height: 14px;
    margin-top: -7px;
    border-radius: 50%;
    background: var(--order-ticket-punch-bg);
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.28);
    z-index: 3;
    pointer-events: none;
}

.billing-ticket .order-ticket::before {
    left: -7px;
}

.billing-ticket .order-ticket::after {
    right: -7px;
}

.billing-ticket .order-ticket__stub {
    flex: 0 0 104px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 14px 10px 16px;
    text-align: center;
    border-right: none;
    background: linear-gradient(
        185deg,
        rgba(255, 255, 255, 0.55) 0%,
        rgba(219, 234, 254, 0.42) 55%,
        rgba(191, 219, 254, 0.28) 100%
    );
    position: relative;
}

.billing-ticket .order-ticket__stub::after {
    content: '★ ★ ★';
    margin-top: auto;
    padding-top: 6px;
    font-size: 8px;
    letter-spacing: 0.28em;
    color: rgba(37, 99, 235, 0.45);
}

.billing-ticket .order-ticket__stub-brand {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #1e40af;
}

.billing-ticket .order-ticket__stub-plane {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    filter: drop-shadow(0 4px 12px rgba(37, 99, 235, 0.28));
}

.billing-ticket .order-ticket__stub-plane .lucide {
    width: 28px;
    height: 28px;
}

.billing-ticket .order-ticket__stub-kicker {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.22em;
    color: #1e3a8a;
}

.billing-ticket .order-ticket__stub-id {
    font-size: 12px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #0f172a;
}

/* 虚线撕票线 + 上下半圆切口 */
.billing-ticket .order-ticket__rip {
    position: relative;
    flex: 0 0 20px;
    background: rgba(255, 255, 255, 0.12);
}

.billing-ticket .order-ticket__rip::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 12px;
    bottom: 12px;
    width: 0;
    border-left: 1px dashed rgba(59, 130, 246, 0.42);
    transform: translateX(-50%);
}

.billing-ticket .order-ticket__notch {
    position: absolute;
    left: 50%;
    width: 13px;
    height: 13px;
    margin-left: -6.5px;
    border-radius: 50%;
    background: var(--order-ticket-punch-bg);
    box-shadow:
        inset 0 0 0 1px rgba(148, 163, 184, 0.3),
        0 1px 2px rgba(15, 23, 42, 0.06);
    z-index: 2;
}

.billing-ticket .order-ticket__notch--top {
    top: -6.5px;
}

.billing-ticket .order-ticket__notch--bottom {
    bottom: -6.5px;
}

.billing-ticket .order-ticket__main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 18px 16px 8px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, rgba(248, 250, 252, 0.55) 100%);
}

.billing-ticket .order-ticket__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px 14px;
}

.billing-ticket .order-ticket__product {
    margin: 0;
    flex: 1;
    min-width: 0;
    font-size: clamp(16px, 2.1vw, 18px);
    font-weight: 750;
    letter-spacing: -0.02em;
    line-height: 1.35;
    color: #0f172a;
}

.billing-ticket .order-ticket__status {
    flex-shrink: 0;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
}

.billing-ticket .order-ticket__status--pending {
    color: #b45309;
    background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
    border-color: rgba(245, 158, 11, 0.38);
}

.billing-ticket .order-ticket__status--active {
    color: #047857;
    background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 100%);
    border-color: rgba(16, 185, 129, 0.35);
}

.billing-ticket .order-ticket__status--cancelled {
    color: #64748b;
    background: rgba(241, 245, 249, 0.95);
    border-color: rgba(148, 163, 184, 0.35);
}

.billing-ticket .order-ticket__status--suspended {
    color: #6b21a8;
    background: linear-gradient(180deg, #faf5ff 0%, #f3e8ff 100%);
    border-color: rgba(168, 85, 247, 0.35);
}

.billing-ticket .order-ticket__status--danger {
    color: #b91c1c;
    background: linear-gradient(180deg, #fef2f2 0%, #fee2e2 100%);
    border-color: rgba(239, 68, 68, 0.35);
}

.billing-ticket .order-ticket__status--default {
    color: #1e40af;
    background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
    border-color: rgba(59, 130, 246, 0.32);
}

.billing-ticket .order-ticket__config {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: #475569;
}

.billing-ticket .order-ticket__dl {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 18px;
}

.billing-ticket .order-ticket__row {
    display: contents;
}

.billing-ticket .order-ticket__row dt {
    margin: 0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #94a3b8;
}

.billing-ticket .order-ticket__row dd {
    margin: 2px 0 0;
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
}

.billing-ticket .order-ticket__amount {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    color: #1e3a8a;
}

@media (max-width: 720px) {
    .billing-ticket {
        flex-direction: column;
    }

    .billing-ticket__stub {
        flex: none;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px 20px;
        padding: 16px;
        border-right: none;
        border-bottom: 1px dashed rgba(59, 130, 246, 0.35);
    }

    .billing-ticket__stub-en,
    .billing-ticket__stub-zh {
        display: inline;
    }

    .billing-ticket .order-ticket {
        flex-direction: column;
    }

    .billing-ticket .order-ticket::before,
    .billing-ticket .order-ticket::after {
        top: auto;
        left: 50%;
        margin-top: 0;
        margin-left: -7px;
    }

    .billing-ticket .order-ticket::before {
        top: -7px;
        left: 50%;
    }

    .billing-ticket .order-ticket::after {
        top: auto;
        bottom: -7px;
        left: 50%;
        right: auto;
    }

    .billing-ticket .order-ticket__stub {
        flex: none;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        width: 100%;
        padding: 14px 16px;
        border-bottom: 1px dashed rgba(59, 130, 246, 0.35);
    }

    .billing-ticket .order-ticket__stub::after {
        width: 100%;
        text-align: center;
        margin-top: 0;
        padding-top: 8px;
    }

    .billing-ticket .order-ticket__rip {
        flex: 0 0 14px;
        width: 100%;
        min-height: 14px;
    }

    .billing-ticket .order-ticket__rip::before {
        left: 18px;
        right: 18px;
        top: 50%;
        bottom: auto;
        width: auto;
        height: 0;
        border-left: none;
        border-top: 1px dashed rgba(59, 130, 246, 0.42);
        transform: translateY(-50%);
    }

    .billing-ticket .order-ticket__notch--top {
        top: 50%;
        left: -6.5px;
        margin-top: -6.5px;
        margin-left: 0;
    }

    .billing-ticket .order-ticket__notch--bottom {
        top: 50%;
        right: -6.5px;
        left: auto;
        bottom: auto;
        margin-top: -6.5px;
    }

    .billing-ticket .order-ticket__main {
        padding: 14px 16px 16px;
    }

    .billing-ticket .order-ticket__dl {
        grid-template-columns: minmax(0, auto) minmax(0, 1fr);
    }
}

/* —— 账单 / 订单表格（JS 渲染 billing-table）—— 固定列宽，长商品名换行不挤歪其它列 */
.billing-block-body {
    overflow-x: hidden;
    min-width: 0;
    -webkit-overflow-scrolling: touch;
}

#billing-invoices-body.billing-block-body {
    overflow-x: auto;
}

.billing-table {
    width: 100%;
    min-width: 500px;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 13px;
    line-height: 1.45;
}

.billing-table th,
.billing-table td {
    box-sizing: border-box;
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.billing-table th {
    font-weight: 600;
    color: #64748b;
    background: #f8fafc;
    font-size: 12px;
}

.billing-table td {
    color: #0f172a;
}

/* 6 列：# · 商品 · 周期 · 金额 · 状态 · 创建时间 */
.billing-table tr > th:nth-child(1):nth-last-child(6),
.billing-table tr > td:nth-child(1):nth-last-child(6) {
    width: 5%;
}

.billing-table tr > th:nth-child(2):nth-last-child(5),
.billing-table tr > td:nth-child(2):nth-last-child(5) {
    width: 30%;
}

.billing-table tr > th:nth-child(3):nth-last-child(4),
.billing-table tr > td:nth-child(3):nth-last-child(4) {
    width: 11%;
    white-space: nowrap;
}

.billing-table tr > th:nth-child(4):nth-last-child(3),
.billing-table tr > td:nth-child(4):nth-last-child(3) {
    width: 14%;
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.billing-table tr > th:nth-child(5):nth-last-child(2),
.billing-table tr > td:nth-child(5):nth-last-child(2) {
    width: 12%;
    white-space: nowrap;
}

.billing-table tr > th:nth-child(6):nth-last-child(1),
.billing-table tr > td:nth-child(6):nth-last-child(1) {
    width: 28%;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* 7 列发票表 */
.billing-table tr > th:nth-child(1):nth-last-child(7),
.billing-table tr > td:nth-child(1):nth-last-child(7) {
    width: 5%;
}

.billing-table tr > th:nth-child(2):nth-last-child(6),
.billing-table tr > td:nth-child(2):nth-last-child(6) {
    width: 16%;
}

.billing-table tr > th:nth-child(3):nth-last-child(5),
.billing-table tr > td:nth-child(3):nth-last-child(5) {
    width: 11%;
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.billing-table tr > th:nth-child(4):nth-last-child(4),
.billing-table tr > td:nth-child(4):nth-last-child(4) {
    width: 10%;
    white-space: nowrap;
}

.billing-table tr > th:nth-child(5):nth-last-child(3),
.billing-table tr > td:nth-child(5):nth-last-child(3) {
    width: 13%;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.billing-table tr > th:nth-child(6):nth-last-child(2),
.billing-table tr > td:nth-child(6):nth-last-child(2) {
    width: 13%;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.billing-table tr > th:nth-child(7):nth-last-child(1),
.billing-table tr > td:nth-child(7):nth-last-child(1) {
    width: 32%;
}

/* 发票表「操作」：表头与单元格同右对齐，内容与占位「—」共用 slot 避免错位 */
.billing-table tr > th:nth-child(7):nth-last-child(1) {
    text-align: right;
}

.billing-table td.billing-invoice-actions {
    vertical-align: middle;
}

.billing-inv-act-slot {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    min-height: 1.35em;
}

.billing-inv-act-slot .billing-invoice-pay-btn {
    flex-shrink: 0;
}

/* 账单表格「支付」：紧凑 pill、轻阴影，避免大号主按钮 + sketch-box 抢眼 */
.billing-table .billing-invoice-pay-btn.btn-primary {
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    gap: 6px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 4px rgba(37, 99, 235, 0.14);
}

@media (prefers-reduced-motion: no-preference) {
    @media (hover: hover) {
        .billing-table .billing-invoice-pay-btn.btn-primary:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(37, 99, 235, 0.22);
        }
    }
}

.billing-table .billing-invoice-pay-btn.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(37, 99, 235, 0.16);
}

.account-sr-hint {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================================
   「算力与远程连接」— 与控制台浅色 SaaS / 账单登机牌统一
   ============================================================ */
.account-v2 #dash-panel-machines.dash-panel--machines-cyber {
    --mc-accent: var(--acc-blue);
    --mc-accent-soft: var(--acc-blue-soft);
    --mc-ok: #059669;
    --mc-ok-soft: #ecfdf5;
    --mc-line: rgba(148, 163, 184, 0.4);
    --mc-line-strong: rgba(37, 99, 235, 0.22);
    --mc-text: var(--acc-text);
    --mc-muted: var(--acc-muted);
    --mc-panel: rgba(255, 255, 255, 0.92);
    margin-top: 8px;
    padding: clamp(16px, 3.5vw, 24px) clamp(14px, 3vw, 24px) clamp(18px, 3.5vw, 28px);
    border-radius: var(--acc-radius);
    border: 1px solid var(--mc-line);
    background: linear-gradient(
        165deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(224, 242, 254, 0.55) 42%,
        rgba(239, 246, 255, 0.75) 100%
    );
    box-shadow: var(--acc-shadow);
    color: var(--mc-text);
    min-width: 0;
    box-sizing: border-box;
}

.account-v2 #dash-panel-machines.dash-panel--machines-cyber .dash-header.dash-header--machines-cyber {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
    padding-bottom: 0;
    border: none;
}

.account-v2 #dash-panel-machines .dash-header--machines-cyber__titles {
    flex: 1 1 200px;
    min-width: 0;
}

.account-v2 #dash-panel-machines .dash-header--machines-cyber .btn-machines-book {
    flex-shrink: 0;
}

.account-v2 #dash-panel-machines .dash-header--machines-cyber__titles h2 {
    margin: 0 0 6px;
    font-size: clamp(22px, 3vw, 26px);
    font-weight: 750;
    letter-spacing: -0.02em;
    color: var(--mc-text);
    overflow-wrap: break-word;
}

.account-v2 #dash-panel-machines .dash-header--machines-cyber__lead {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--mc-muted);
    overflow-wrap: break-word;
}

.account-v2 .btn-machines-book {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 12px;
    font-weight: 650;
    font-size: 14px;
    border: 1px solid rgba(37, 99, 235, 0.28);
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: #fff;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.22);
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.15s;
}

.account-v2 .btn-machines-book:hover {
    box-shadow: 0 10px 26px rgba(37, 99, 235, 0.32);
    transform: translateY(-1px);
}

.account-v2 .btn-machines-book .lucide {
    width: 16px;
    height: 16px;
}

@media (max-width: 560px) {
    .account-v2 #dash-panel-machines.dash-header.dash-header--machines-cyber {
        flex-direction: column;
        align-items: stretch;
    }

    .account-v2 #dash-panel-machines .dash-header--machines-cyber .btn-machines-book {
        width: 100%;
        justify-content: center;
    }

    .account-v2 .machine-empty-state {
        padding: 18px 14px 16px;
    }

    .account-v2 .machine-rec-card,
    .account-v2 .machine-rec-card.sketch-box {
        padding: 16px 14px 16px 14px;
        min-height: 0;
    }
}

.account-v2 .machine-empty-state--cyber {
    background: #fff;
    border: 1px solid var(--acc-border);
    color: inherit;
    box-shadow: var(--acc-shadow);
}

.account-v2 .machine-empty-state--cyber .machine-empty-title {
    color: var(--acc-text);
}

.account-v2 .machine-empty-state--cyber .machine-empty-lead,
.account-v2 .machine-empty-state--cyber .machine-empty-eyebrow,
.account-v2 .machine-empty-state--cyber .machine-empty-note {
    color: var(--acc-muted);
}

.account-v2 .machine-empty-state--cyber .machine-rec-card {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.99) 0%, rgba(241, 248, 255, 0.72) 100%);
    border-color: rgba(148, 163, 184, 0.35);
    color: inherit;
}

.account-v2 .machine-empty-state--cyber .machine-empty-icon {
    color: var(--acc-blue);
}

.machines-cyber-wrap {
    min-width: 0;
}

.machines-cyber-loading,
.machine-api-err,
.machines-cyber-msg {
    margin: 0;
    padding: 18px 20px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--mc-muted);
    border: 1px solid var(--mc-line);
    background: var(--mc-panel);
    box-shadow: 0 1px 6px rgba(15, 23, 42, 0.04);
}

.machine-api-err {
    color: #b91c1c;
    border-color: rgba(248, 113, 113, 0.45);
    background: #fef2f2;
}

.machines-cyber {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.machines-cyber__toolbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.machines-run-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--mc-accent);
    border: 1px solid rgba(37, 99, 235, 0.25);
    background: rgba(37, 99, 235, 0.06);
}

.machines-inst-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.machines-inst-card {
    flex: 1 1 200px;
    max-width: 280px;
    min-width: min(100%, 200px);
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto auto;
    column-gap: 12px;
    row-gap: 4px;
    align-items: center;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--mc-line);
    background: var(--mc-panel);
    color: inherit;
    text-align: left;
    cursor: pointer;
    font: inherit;
    box-shadow: 0 1px 8px rgba(15, 23, 42, 0.05);
    transition:
        border-color 0.2s,
        box-shadow 0.22s,
        transform 0.18s;
}

.machines-inst-card:hover {
    border-color: rgba(37, 99, 235, 0.32);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.machines-inst-card.is-selected {
    border-width: 2px;
    border-color: var(--mc-accent);
    box-shadow:
        0 0 0 1px rgba(37, 99, 235, 0.12),
        0 12px 36px rgba(37, 99, 235, 0.12);
}

.machines-inst-card__ico {
    grid-row: span 3;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 4px;
    color: var(--mc-accent);
}

.machines-inst-card__ico .lucide {
    width: 22px;
    height: 22px;
}

.machines-inst-card__name {
    grid-column: 2;
    font-weight: 750;
    font-size: 14px;
    line-height: 1.35;
}

.machines-inst-card__loc {
    grid-column: 2;
    font-size: 12px;
    color: var(--mc-muted);
}

.machines-inst-card__state {
    grid-column: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 650;
}

.machines-inst-card__state--ok {
    color: var(--mc-ok);
}

.machines-inst-card__state--wait {
    color: var(--mc-muted);
}

.machines-inst-card__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.95;
}

.machines-detail {
    border-radius: 18px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.96) 100%);
    padding: 22px 22px 20px;
    box-shadow:
        0 18px 48px rgba(15, 23, 42, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.machines-detail__hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 20px;
}

.machines-detail__iconbox {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(145deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid rgba(37, 99, 235, 0.2);
    color: var(--mc-accent);
}

.machines-detail__iconbox .lucide {
    width: 26px;
    height: 26px;
}

.machines-detail__iconbox--muted {
    border-color: var(--mc-line);
    background: #f8fafc;
    color: var(--mc-muted);
}

.machines-detail__hero-copy {
    flex: 1;
    min-width: 0;
}

.machines-detail__title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
}

.machines-detail__title {
    margin: 0;
    font-size: clamp(18px, 2.5vw, 22px);
    font-weight: 780;
    letter-spacing: -0.02em;
}

.machines-detail__meta {
    margin: 8px 0 0;
    font-size: 13px;
    color: var(--mc-muted);
}

.machines-detail__pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid rgba(37, 99, 235, 0.22);
    background: rgba(37, 99, 235, 0.06);
    color: #1d4ed8;
}

.machines-detail__pill--ok {
    border-color: rgba(5, 150, 105, 0.35);
    background: var(--mc-ok-soft);
    color: var(--mc-ok);
}

.machines-detail__pill-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.machines-detail__pill--status.status-tone--orange {
    border-color: rgba(245, 158, 11, 0.4);
    background: #fffbeb;
    color: #b45309;
}

.machines-detail__pill--status.status-tone--red {
    border-color: rgba(248, 113, 113, 0.45);
    background: #fef2f2;
    color: #b91c1c;
}

.machines-detail__vnc {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 650;
    font-size: 13px;
    text-decoration: none;
    border: 1px solid var(--mc-line);
    background: #fff;
    color: var(--mc-text);
    margin-left: auto;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.machines-detail__vnc:hover {
    border-color: rgba(37, 99, 235, 0.35);
    color: var(--mc-accent);
}

.machines-detail__vnc .lucide {
    width: 16px;
    height: 16px;
}

.machines-detail__vnc--off {
    opacity: 0.5;
    cursor: default;
}

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

@media (max-width: 900px) {
    .machines-spec-diamond {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.machines-spec-cell {
    padding: 14px 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: rgba(248, 250, 252, 0.65);
}

.machines-spec-cell__ico {
    display: flex;
    margin-bottom: 8px;
    color: var(--mc-accent);
}

.machines-spec-cell__ico .lucide {
    width: 18px;
    height: 18px;
}

.machines-spec-cell__lab {
    display: block;
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--mc-muted);
    margin-bottom: 4px;
}

.machines-spec-cell strong {
    font-size: 14px;
    font-weight: 750;
    color: var(--mc-text);
}

.machines-session {
    margin-top: 4px;
}

.machines-session__bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.machines-session__eyebrow {
    margin: 0;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.28em;
    color: var(--mc-muted);
}

.machines-session__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 16px;
}

@media (max-width: 840px) {
    .machines-session__grid {
        grid-template-columns: 1fr;
    }
}

.machines-session__grid--pending .machines-term {
    opacity: 0.88;
}

.machines-term {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #0f172a;
}

.machines-term__chrome {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.machines-term__dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.machines-term__dot--r {
    background: #ff5f57;
}
.machines-term__dot--y {
    background: #febc2e;
}
.machines-term__dot--g {
    background: #28c840;
}

.machines-term__title {
    margin-left: auto;
    font-size: 11px;
    letter-spacing: 0.12em;
    color: #94a3b8;
}

.machines-term__body {
    margin: 0;
    padding: 14px 16px 18px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
    font-size: 11px;
    line-height: 1.65;
    color: #b8e9c9;
    min-height: 120px;
    white-space: pre-wrap;
}

.machines-term__g {
    color: #5eead4;
}
.machines-term__y {
    color: #fde047;
}
.machines-term__b {
    color: #93c5fd;
}
.machines-term__dim {
    color: rgba(148, 163, 184, 0.85);
}

.machines-creds {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.machines-cred-row {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

@media (max-width: 480px) {
    .machines-cred-row {
        grid-template-columns: 1fr;
    }
}

.machines-cred-label {
    font-size: 12px;
    font-weight: 650;
    color: var(--mc-muted);
}

.machines-cred-val {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 10px 12px;
    border-radius: 11px;
    border: 1px solid rgba(226, 232, 240, 0.98);
    background: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.machines-cred-val code {
    flex: 1;
    min-width: 0;
    font-size: 12px;
    word-break: break-all;
    color: #0f172a;
}

.machines-cred-copy {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 9px;
    background: var(--mc-accent-soft);
    color: var(--mc-accent);
    cursor: pointer;
}

.machines-cred-copy:hover {
    background: #dbeafe;
}

.machines-cred-copy .lucide {
    width: 15px;
    height: 15px;
}

.machines-cred-val.machines-cred-val--pw {
    flex-wrap: nowrap;
    gap: 0;
}

.machines-cred-val--pw .machine-pw-strong {
    flex: 1;
    min-width: 0;
    display: block;
    font-weight: inherit;
}

.machines-cred-val--pw .machine-pw-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
}

.machines-cred-val--pw .machine-pw-inline .machine-pw-value {
    flex: 1 1 auto;
    min-width: 0;
}

.machines-creds--muted .machines-cred-placeholder {
    font-size: 13px;
    color: var(--mc-muted);
}

.machines-power-hint {
    margin: 14px 0 0;
    font-size: 12px;
    line-height: 1.55;
    color: var(--mc-muted);
}

.machines-power-hint.muted {
    opacity: 1;
}

.machines-pending-body {
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--mc-muted);
}

.machines-pending-body code {
    font-size: 12px;
    color: #475569;
}

.machines-cyber-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(226, 232, 240, 0.95);
}

.account-v2 .btn-machines-power {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 650;
    border: 1px solid var(--mc-line);
    background: #fff;
    color: var(--mc-text);
    cursor: pointer;
    box-shadow: 0 1px 6px rgba(15, 23, 42, 0.05);
}

.account-v2 .btn-machines-power:hover {
    border-color: rgba(37, 99, 235, 0.35);
    color: var(--mc-accent);
}

.account-v2 .btn-machines-power .lucide {
    width: 15px;
    height: 15px;
}

.account-v2 #dash-panel-machines .machine-list-dismiss-btn {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid rgba(239, 68, 68, 0.25);
    background: #fff;
    color: #dc2626;
    cursor: pointer;
}

.account-v2 #dash-panel-machines .machine-list-dismiss-btn:hover {
    background: #fef2f2;
}

.account-v2 #dash-panel-machines .machine-list-dismiss-btn .lucide {
    width: 17px;
    height: 17px;
}

.machines-cyber .machine-list-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 6px 0 4px;
    border: none;
    background: transparent;
}

.machines-cyber .machine-list-pager-nav {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 11px;
    border: 1px solid var(--mc-line);
    background: var(--mc-panel);
    color: var(--mc-text);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 1px 6px rgba(15, 23, 42, 0.04);
}

.machines-cyber .machine-list-pager-nav:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.machines-cyber .machine-list-pager-nav:not(:disabled):hover {
    border-color: rgba(37, 99, 235, 0.32);
    color: var(--mc-accent);
}

.machines-cyber .machine-list-pager-center {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--mc-muted);
}

.machines-cyber .machine-list-pager-input {
    width: 52px;
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid var(--mc-line);
    background: #fff;
    color: var(--mc-text);
    font-weight: 650;
}

.account-v2 #dash-panel-machines.dash-panel--machines-cyber .machines-detail code.machine-secret {
    background: transparent;
    padding: 0;
}

.account-v2 #dash-panel-machines.dash-panel--machines-cyber .machines-detail .machine-pw-eye {
    flex-shrink: 0;
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--mc-accent);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.account-v2 #dash-panel-machines.dash-panel--machines-cyber .machines-detail .machine-pw-eye:hover {
    background: rgba(37, 99, 235, 0.08);
}

.account-v2 #dash-panel-machines.dash-panel--machines-cyber .machines-detail .machine-pw-eye:focus-visible {
    outline: 2px solid rgba(37, 99, 235, 0.45);
    outline-offset: 1px;
}

.account-v2 #dash-panel-machines.dash-panel--machines-cyber .machines-detail .machine-pw-eye .lucide {
    width: 18px;
    height: 18px;
}

.account-v2 #dash-panel-machines.dash-panel--machines-cyber[hidden] {
    display: none !important;
}

/* ── 工单中心 #support ── */
.account-v2 #dash-panel-support.dash-panel--support .dash-header--support__titles {
    flex: 1;
    min-width: 0;
}

.account-v2 #dash-panel-support .dash-header__lead--support {
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 1.62;
    color: var(--acc-muted);
    max-width: 52rem;
}

.support-tips-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

@media (max-width: 980px) {
    .support-tips-strip {
        grid-template-columns: 1fr;
    }
}

.support-tip-chip {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.95) 0%, rgba(239, 246, 255, 0.75) 100%);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

.support-tip-chip__ico {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-top: 2px;
    border-radius: 12px;
    background: linear-gradient(145deg, #1e40af 0%, #2563eb 70%, #3b82f6 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.support-tip-chip__ico .lucide {
    width: 20px;
    height: 20px;
}

.support-tip-chip__text {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 13px;
    line-height: 1.48;
    color: #475569;
    min-width: 0;
}

.support-tip-chip__text strong {
    font-size: 14px;
    font-weight: 750;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.support-tip-chip__sub {
    display: block;
    color: var(--acc-muted);
    font-weight: 500;
}

.support-hub {
    margin-top: 4px;
}

.support-panel.support-panel--main {
    position: relative;
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.42);
    background: linear-gradient(
        168deg,
        rgba(255, 255, 255, 0.94) 0%,
        rgba(224, 242, 254, 0.45) 45%,
        rgba(239, 246, 255, 0.92) 100%
    );
    box-shadow:
        0 20px 50px rgba(15, 23, 42, 0.08),
        0 4px 14px rgba(59, 130, 246, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.account-v2 .support-panel.support-panel--main.sketch-box {
    background: linear-gradient(
        168deg,
        rgba(255, 255, 255, 0.94) 0%,
        rgba(224, 242, 254, 0.45) 45%,
        rgba(239, 246, 255, 0.92) 100%
    );
}

.support-panel-header {
    padding: 20px 22px 12px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(248, 250, 252, 0.42) 100%);
}

.support-panel-header-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.support-panel-title {
    margin: 0;
    font-size: clamp(17px, 2.4vw, 19px);
    font-weight: 750;
    color: var(--acc-text);
    letter-spacing: -0.02em;
}

.support-panel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.support-panel-actions .btn-dash,
.support-panel-actions .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    font-size: 14px;
    font-weight: 650;
}

.support-panel-actions .btn-dash svg,
.support-panel-actions .btn-primary svg,
.support-panel-actions .btn-dash i,
.support-panel-actions .btn-primary i {
    flex-shrink: 0;
}

.support-panel-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}

.support-tickets-filter-label {
    font-size: 13px;
    font-weight: 650;
    color: #475569;
}

.support-status-dropdown,
.support-order-dropdown {
    position: relative;
}

.support-status-trigger,
.support-order-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 160px;
    padding: 9px 12px;
    border-radius: 11px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: rgba(255, 255, 255, 0.96);
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.support-status-trigger:hover,
.support-order-trigger:hover {
    border-color: rgba(37, 99, 235, 0.45);
}

.support-status-trigger:focus-visible,
.support-order-trigger:focus-visible {
    outline: 2px solid rgba(37, 99, 235, 0.45);
    outline-offset: 1px;
}

.support-status-chevron,
.support-order-chevron {
    width: 18px !important;
    height: 18px !important;
    margin-left: auto;
    color: #64748b;
}

.support-status-menu,
.support-order-menu {
    position: absolute;
    z-index: 30;
    top: calc(100% + 6px);
    left: 0;
    min-width: 220px;
    max-height: min(260px, 70vh);
    overflow-y: auto;
    margin: 0;
    padding: 6px;
    list-style: none;
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: #fff;
    box-shadow:
        0 16px 40px rgba(15, 23, 42, 0.12),
        0 4px 12px rgba(15, 23, 42, 0.06);
    display: none;
}

.support-status-dropdown.open .support-status-menu,
.support-order-dropdown.open .support-order-menu {
    display: block;
}

.support-status-option,
.support-order-option {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 12px;
    border: none;
    border-radius: 8px;
    background: transparent;
    font-size: 14px;
    color: #334155;
    cursor: pointer;
    transition: background 0.15s ease;
}

.support-status-option:hover,
.support-status-option:focus-visible,
.support-order-option:hover,
.support-order-option:focus-visible {
    background: rgba(37, 99, 235, 0.08);
    outline: none;
}

.support-new-panel {
    margin: 0 22px;
    padding: 16px 16px 20px;
    border-radius: 14px;
    border: 1px dashed rgba(59, 130, 246, 0.4);
    background: rgba(255, 255, 255, 0.88);
    margin-top: 8px;
    margin-bottom: 8px;
}

.support-new-panel-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.support-new-panel-title {
    font-size: 15px;
    font-weight: 750;
    color: var(--acc-text);
}

.support-form-field {
    margin-bottom: 14px;
}

.support-form-label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 650;
    color: #475569;
}

.support-form-req {
    color: #dc2626;
    margin-left: 2px;
}

.support-form-input,
.support-form-textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 14px;
    border-radius: 11px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    font-size: 14px;
    line-height: 1.48;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.98);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.support-form-input:focus,
.support-form-textarea:focus {
    outline: none;
    border-color: rgba(37, 99, 235, 0.55);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.support-form-textarea {
    resize: vertical;
    min-height: 120px;
}

.support-form-hint {
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 1.56;
    color: var(--acc-muted);
}

.support-form-sublabel {
    margin: 6px 0 0;
    font-size: 12px;
    line-height: 1.5;
    color: #94a3b8;
}

.support-form-err {
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(254, 226, 226, 0.8);
    color: #991b1b;
    font-size: 13px;
}

.support-form-ok {
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(220, 252, 231, 0.9);
    color: #166534;
    font-size: 13px;
}

.support-form-actions {
    padding-top: 4px;
}

.support-list-section {
    padding: 18px 22px 8px;
}

.support-list-section__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 20px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.75);
}

.support-list-heading {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 750;
    color: #1e3a8a;
}

.support-list-heading::before {
    content: '';
    width: 4px;
    height: 1em;
    border-radius: 3px;
    background: linear-gradient(180deg, #3b82f6 0%, #6366f1 100%);
}

.support-list-lead {
    margin: 0;
    font-size: 13px;
    color: var(--acc-muted);
    flex: 1;
    min-width: 220px;
}

.support-tickets-body {
    min-height: 48px;
}

.support-tickets-table-wrap {
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: rgba(255, 255, 255, 0.96);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.support-tickets-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    font-size: 14px;
}

.support-tickets-table thead th {
    padding: 11px 14px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
    background: linear-gradient(180deg, #eff6ff 0%, #e0f2fe 100%);
    border-bottom: 1px solid rgba(226, 232, 240, 0.95);
    white-space: nowrap;
}

.support-tickets-table tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(241, 245, 249, 0.95);
    vertical-align: top;
    color: #334155;
}

.support-tickets-table tbody tr:last-child td {
    border-bottom: none;
}

.support-ticket-row {
    cursor: pointer;
    outline: none;
}

.support-ticket-row:hover td {
    background: rgba(239, 246, 255, 0.7);
}

.support-ticket-row:focus-visible td:first-child {
    box-shadow: inset 3px 0 0 #2563eb;
}

.support-ticket-row--active td {
    background: rgba(219, 234, 254, 0.55);
}

.support-ticket-id {
    font-weight: 700;
    color: #1e40af;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.support-ticket-date {
    white-space: nowrap;
    font-size: 13px;
    color: #64748b;
    font-variant-numeric: tabular-nums;
}

.support-tickets-body--scroll {
    max-height: min(440px, 58vh);
    overflow-y: auto;
}

.support-ticket-fresh-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    color: #b45309;
    background: rgba(253, 230, 138, 0.65);
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.support-ticket-fresh-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ea580c;
}

.support-ticket-title-stack {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.support-ticket-subj-text {
    color: #0f172a;
    font-weight: 600;
}

.support-tickets-placeholder,
.support-tickets-empty {
    margin: 0;
    padding: 16px;
    font-size: 14px;
    line-height: 1.56;
    color: var(--acc-muted);
    text-align: center;
}

.support-tickets-err {
    margin: 0;
    padding: 14px;
    border-radius: 10px;
    background: rgba(254, 226, 226, 0.75);
    color: #991b1b;
    font-size: 13px;
    text-align: center;
}

.support-ticket-detail {
    margin: 0 22px 20px;
    padding: 18px 18px 20px;
    border-radius: 16px;
    border: 1px solid rgba(59, 130, 246, 0.28);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.96) 100%);
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.07);
}

.support-ticket-detail-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.support-ticket-detail-title {
    margin: 0;
    font-size: 17px;
    font-weight: 750;
    color: var(--acc-text);
    letter-spacing: -0.02em;
}

.support-ticket-detail-meta {
    margin: 0 0 14px;
    font-size: 13px;
    color: var(--acc-muted);
}

.support-ticket-detail-thread {
    margin-bottom: 16px;
    padding: 12px 12px 10px;
    border-radius: 12px;
    background: rgba(248, 250, 252, 0.95);
    border: 1px solid rgba(226, 232, 240, 0.9);
    max-height: min(360px, 48vh);
    overflow-y: auto;
}

.support-msg {
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    max-width: 100%;
}

.support-msg:last-child {
    margin-bottom: 0;
}

.support-msg--staff {
    margin-right: 12%;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.support-msg--client {
    margin-left: 12%;
    background: linear-gradient(145deg, rgba(219, 234, 254, 0.65) 0%, rgba(191, 219, 254, 0.45) 100%);
    border: 1px solid rgba(96, 165, 250, 0.45);
}

.support-msg-meta {
    font-size: 11px;
    font-weight: 650;
    color: #64748b;
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.support-msg-body {
    font-size: 14px;
    line-height: 1.55;
    color: #1e293b;
    word-break: break-word;
}

.support-ticket-reply-form .support-form-label {
    margin-top: 4px;
}

.support-ticket-reply-actions {
    margin-top: 10px;
}

.support-footnote {
    margin: 0;
    padding: 12px 22px 20px;
    font-size: 12px;
    line-height: 1.55;
    color: #94a3b8;
    border-top: 1px solid rgba(226, 232, 240, 0.75);
}

.account-v2 #dash-panel-support.dash-panel--support[hidden] {
    display: none !important;
}
