.td-project-header,
.td-project-header * ,
.td-project-mobile-nav,
.td-project-mobile-nav * { box-sizing: border-box; }

.td-project-header {
    position: sticky;
    z-index: 2400;
    top: 0;
    border-bottom: 1px solid rgba(255,255,255,.07);
    background: rgba(7,15,28,.97);
    color: #edf3fb;
    font-family: -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
    backdrop-filter: blur(18px);
}

.td-project-header__inner {
    display: grid;
    width: min(100%,1180px);
    min-height: 72px;
    margin: 0 auto;
    padding: 9px 16px;
    grid-template-columns: auto minmax(0,1fr) auto auto;
    align-items: center;
    gap: 12px;
}

.td-project-data-time {
    display: grid;
    min-width: 244px;
    min-height: 52px;
    padding: 7px 13px;
    grid-template-columns: minmax(0,1fr) auto;
    align-content: center;
    column-gap: 10px;
    border: 1px solid rgba(86,151,255,.34);
    border-radius: 11px;
    background: rgba(31,91,180,.14);
    box-shadow: inset 0 1px rgba(255,255,255,.04);
}

.td-project-data-time > span,
.td-project-data-time > time,
.td-project-data-time > small { white-space: nowrap; }
.td-project-data-time > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #9fc2ff;
    font-size: 10px;
    font-weight: 750;
}
.td-project-data-time > span svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.td-project-data-time > time {
    grid-row: 2;
    color: #f6f9ff;
    font-size: 14px;
    font-weight: 850;
    letter-spacing: .01em;
}
.td-project-data-time > small {
    grid-column: 2;
    grid-row: 2;
    align-self: center;
    color: #8192a9;
    font-size: 9px;
    font-weight: 700;
}
.td-project-data-time[data-state="ready"] > span::after {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #55d798;
    box-shadow: 0 0 0 3px rgba(85,215,152,.12);
    content: "";
}
.td-project-data-time[data-state="unavailable"] {
    border-color: rgba(224,171,79,.34);
    background: rgba(132,91,27,.14);
}

.td-project-brand {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 9px;
    color: inherit;
    text-decoration: none;
}

.td-project-brand img {
    display: block;
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    object-fit: cover;
}

.td-project-header.is-onebit .td-project-brand img {
    border: 1px solid rgba(16, 35, 65, .2);
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(16, 35, 65, .12);
}

.td-project-brand__copy { min-width: 0; }
.td-project-brand__copy strong,
.td-project-brand__copy small { display: block; white-space: nowrap; }
.td-project-brand__copy strong { font-size: 15px; font-weight: 800; line-height: 1.2; }
.td-project-brand__copy small { margin-top: 4px; overflow: hidden; color: #e0b763; font-size: 9px; font-weight: 650; text-overflow: ellipsis; }

.td-project-account {
    display: inline-flex;
    min-width: 70px;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid #29415d;
    border-radius: 9px;
    background: #0b1726;
    color: #c7d3e2;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.td-project-secondary-nav {
    display: none;
    width: 100%;
    min-height: 46px;
    padding: 0 16px;
    align-items: stretch;
    justify-content: center;
    gap: 4px;
    border-top: 1px solid rgba(255,255,255,.055);
    background: #081321;
}

.td-project-secondary-nav a {
    display: inline-flex;
    min-width: 84px;
    min-height: 45px;
    padding: 0 14px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #8fa0b4;
    font-size: 12px;
    font-weight: 650;
    text-decoration: none;
}

.td-project-secondary-nav a svg,
.td-project-mobile-nav a svg {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.td-project-secondary-nav a.is-active { color: #5b98ff; background: rgba(47,118,255,.08); }

.td-project-mobile-nav {
    position: fixed;
    z-index: 2450;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    min-height: calc(66px + env(safe-area-inset-bottom));
    padding: 7px 8px env(safe-area-inset-bottom);
    grid-template-columns: repeat(var(--td-project-nav-count,4),minmax(0,1fr));
    border-top: 1px solid #172638;
    background: rgba(3,8,14,.97);
    box-shadow: 0 -12px 30px rgba(0,0,0,.34);
    font-family: -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
    backdrop-filter: blur(18px);
}

.td-project-mobile-nav a {
    display: flex;
    min-width: 44px;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    color: #8a95a4;
    font-size: 9.5px;
    line-height: 1.4;
    text-decoration: none;
}

.td-project-mobile-nav a.is-active { color: #3783ff; }
body.td-has-project-shell { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }

body.td-has-project-shell > .xdao-page > .xdao-topbar,
body.td-has-project-shell > .onebit-header,
body.td-has-project-shell > .site-header,
body.td-has-project-shell > main > .topbar,
body.td-has-project-shell > main > .page-header,
body.td-has-project-shell > .container > .back-button {
    display: none !important;
}

html body.td-has-project-shell #td-contact-widget,
html body.td-has-project-shell > .qq-group-badge,
html body.td-has-project-shell .tongdao-member-entry.is-floating {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

@media (max-width: 767px) {
    .td-project-header__inner { grid-template-columns: auto minmax(0,1fr) auto; }
    .td-project-home { grid-column: 1; grid-row: 1; }
    .td-project-brand { grid-column: 2; grid-row: 1; }
    .td-project-account { grid-column: 3; grid-row: 1; }
    .td-project-data-time {
        width: 100%;
        min-width: 0;
        min-height: 46px;
        grid-column: 1 / -1;
        grid-row: 2;
        padding: 6px 11px;
    }
    .td-project-data-time > time { font-size: 13px; }
    body.td-has-project-shell .xdao-nav { display: none !important; }
}

@media (min-width: 768px) {
    .td-project-header__inner { min-height: 76px; padding: 8px 24px; }
    .td-project-brand img { width: 56px; height: 56px; flex-basis: 56px; }
    .td-project-brand__copy strong { font-size: 17px; }
    .td-project-brand__copy small { font-size: 10px; }
    .td-project-secondary-nav { display: flex; }
    .td-project-mobile-nav { display: none; }
    body.td-has-project-shell { padding-bottom: 0; }

    .td-project-header.is-onebit {
        border-bottom-color: #dfe5e1;
        background: rgba(255,255,255,.98);
        color: #17231d;
        box-shadow: 0 5px 18px rgba(32,52,41,.045);
    }

    .td-project-header.is-onebit .td-project-header__inner {
        width: 100%;
        padding-inline: 28px;
    }

    .td-project-header.is-onebit .td-project-brand__copy strong {
        font-size: 22px;
        letter-spacing: -.025em;
    }

    .td-project-header.is-onebit .td-project-brand__copy small {
        color: #7b857f;
        font-size: 10px;
        font-weight: 700;
    }

    .td-project-header.is-onebit .td-project-account {
        border-color: #d7ded9;
        background: #f8faf9;
        color: #45534b;
    }

    .td-project-header.is-onebit .td-project-data-time {
        border-color: #cbded1;
        background: #f4faf6;
        box-shadow: none;
    }

    .td-project-header.is-onebit .td-project-data-time > span { color: #34704a; }
    .td-project-header.is-onebit .td-project-data-time > time { color: #172f21; }
    .td-project-header.is-onebit .td-project-data-time > small { color: #738078; }
}

/* 已上线项目统一入口：只重排导航，不覆盖原页面的数据、图表或权限。 */
body.td-unified-project-v2 {
    --td-project-accent: #c58d34;
    --td-project-accent-soft: #fff6e6;
    --td-project-accent-ink: #8a5b15;
    overflow-x: hidden;
}
body.td-unified-project-v2[data-td-project-id="afi"] {
    --td-project-accent: #7654d8;
    --td-project-accent-soft: #f3efff;
    --td-project-accent-ink: #5940aa;
}
body.td-unified-project-v2[data-td-project-id="caishendao"] {
    --td-project-accent: #8d5ee8;
    --td-project-accent-soft: #f5efff;
    --td-project-accent-ink: #6840bd;
}
body.td-unified-project-v2[data-td-project-id="cloveros"] {
    --td-project-accent: #258458;
    --td-project-accent-soft: #edf8f2;
    --td-project-accent-ink: #17623f;
}
body.td-unified-project-v2[data-td-project-id="gana"],
body.td-unified-project-v2[data-td-project-id="ark"] {
    --td-project-accent: #2879ed;
    --td-project-accent-soft: #eef5ff;
    --td-project-accent-ink: #195ab8;
}
body.td-unified-project-v2[data-td-project-id="pro"] {
    --td-project-accent: #8056e8;
    --td-project-accent-soft: #f3efff;
    --td-project-accent-ink: #6040b6;
}
body.td-unified-project-v2[data-td-project-id="ark"],
body.td-unified-project-v2[data-td-project-id="pro"] {
    padding: 0 0 calc(72px + env(safe-area-inset-bottom)) !important;
}
body.td-unified-project-v2[data-td-project-id="ark"] > .container,
body.td-unified-project-v2[data-td-project-id="pro"] > .container {
    padding: 20px;
}

body.td-unified-project-v2 .td-project-header {
    border-bottom-color: rgba(255,255,255,.08);
    background:
        radial-gradient(circle at 88% -45%, color-mix(in srgb, var(--td-project-accent) 25%, transparent), transparent 48%),
        rgba(5,15,29,.985);
    color: #f4f7fb;
    box-shadow: 0 8px 28px rgba(2,10,20,.16);
}

body.td-unified-project-v2 .td-project-header__inner {
    grid-template-columns: auto minmax(0,1fr) auto auto;
    gap: 12px;
}

.td-project-home {
    display: inline-flex;
    min-width: 66px;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid #263a52;
    border-radius: 10px;
    background: #0c1a2a;
    color: #d5deea;
    font-size: 11px;
    font-weight: 750;
    text-decoration: none;
}
.td-project-home svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.td-project-home:hover { border-color: #3b5a7a; color: #fff; }

body.td-unified-project-v2 .td-project-brand { pointer-events: none; }
body.td-unified-project-v2 .td-project-brand img {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    border: 0;
    border-radius: 11px;
    object-fit: contain;
    box-shadow: 0 5px 16px rgba(0,0,0,.16);
}
body.td-unified-project-v2[data-td-project-id="onebit"] .td-project-brand img { border-radius: 50%; }
body.td-unified-project-v2 .td-project-brand__copy strong {
    overflow: hidden;
    color: #f7f9fc;
    font-size: 16px;
    letter-spacing: -.015em;
    text-overflow: ellipsis;
}
body.td-unified-project-v2 .td-project-brand__copy small {
    color: color-mix(in srgb, var(--td-project-accent) 74%, #fff);
    font-size: 9px;
}
body.td-unified-project-v2 .td-project-account {
    min-width: 62px;
    border-color: #29415d;
    background: #0b1726;
    color: #c7d3e2;
}
body.td-unified-project-v2 .td-project-data-time {
    border-color: color-mix(in srgb, var(--td-project-accent) 34%, #314a69);
    background: color-mix(in srgb, var(--td-project-accent) 11%, #0d1b2c);
    box-shadow: inset 0 1px rgba(255,255,255,.04);
}
body.td-unified-project-v2 .td-project-data-time > span {
    color: color-mix(in srgb, var(--td-project-accent) 60%, #c9ddff);
}
body.td-unified-project-v2 .td-project-data-time > time { color: #f6f9ff; }
body.td-unified-project-v2 .td-project-data-time > small { color: #8192a9; }
body.td-unified-project-v2 .td-project-secondary-nav { background: #07121f; }
body.td-unified-project-v2 .td-project-secondary-nav a.is-active {
    color: color-mix(in srgb, var(--td-project-accent) 72%, #fff);
    background: color-mix(in srgb, var(--td-project-accent) 10%, transparent);
}
body.td-unified-project-v2 .td-project-mobile-nav a.is-active { color: color-mix(in srgb, var(--td-project-accent) 80%, #fff); }

.td-feature-banner {
    position: relative;
    z-index: 30;
    border-bottom: 1px solid #e5e9ee;
    background: rgba(255,255,255,.985);
    color: #102033;
    font-family: -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
}
.td-feature-banner > div {
    display: grid;
    width: min(100%,1180px);
    min-height: 62px;
    margin: 0 auto;
    padding: 9px 18px;
    grid-template-columns: auto minmax(0,1fr) auto;
    align-items: center;
    gap: 11px;
}
.td-feature-banner__mark {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 10px;
    background: var(--td-project-accent-soft);
    color: var(--td-project-accent-ink);
    font-size: 12px;
    font-weight: 850;
}
.td-feature-banner p { min-width: 0; margin: 0; }
.td-feature-banner strong,
.td-feature-banner small { display: block; }
.td-feature-banner strong { font-size: 13px; }
.td-feature-banner small {
    margin-top: 3px;
    overflow: hidden;
    color: #667386;
    font-size: 10px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.td-feature-banner button {
    min-height: 38px;
    padding: 0 13px;
    border: 1px solid color-mix(in srgb, var(--td-project-accent) 34%, #d9e0e8);
    border-radius: 9px;
    background: var(--td-project-accent-soft);
    color: var(--td-project-accent-ink);
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.td-feature-center[hidden] { display: none !important; }
.td-feature-center {
    position: fixed;
    z-index: 3200;
    inset: 0;
    display: grid;
    align-items: end;
    font-family: -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
}
.td-feature-center__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(3,11,21,.58);
    cursor: default;
    backdrop-filter: blur(5px);
}
.td-feature-center__panel {
    position: relative;
    display: grid;
    width: 100%;
    max-height: min(88dvh,820px);
    padding-bottom: env(safe-area-inset-bottom);
    grid-template-rows: auto auto auto minmax(0,1fr) auto;
    overflow: hidden;
    border: 1px solid #dfe5ec;
    border-bottom: 0;
    border-radius: 22px 22px 0 0;
    background: #f7f9fc;
    color: #112033;
    box-shadow: 0 -26px 70px rgba(4,16,31,.28);
}
.td-feature-center__header {
    display: grid;
    min-height: 116px;
    padding: 20px 18px 15px;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 16px;
    border-bottom: 1px solid #e5e9ef;
    background: #fff;
}
.td-feature-center__header span {
    color: var(--td-project-accent-ink);
    font-size: 10px;
    font-weight: 800;
}
.td-feature-center__header h2 {
    margin: 4px 0 5px;
    padding: 0;
    border: 0;
    color: #112033;
    font-size: 21px;
    line-height: 1.2;
    letter-spacing: -.025em;
    text-align: left;
}
.td-feature-center__header p {
    margin: 0;
    color: #667386;
    font-size: 11px;
    line-height: 1.55;
}
.td-feature-center__close {
    align-self: start;
    min-width: 52px;
    min-height: 36px;
    border: 1px solid #dce2e9;
    border-radius: 9px;
    background: #f5f7fa;
    color: #4f5f72;
    font-size: 11px;
    font-weight: 750;
    cursor: pointer;
}
.td-feature-center__status {
    display: grid;
    min-height: 67px;
    margin: 12px 14px 9px;
    padding: 11px 13px;
    grid-template-columns: auto minmax(0,1fr);
    align-items: center;
    gap: 2px 11px;
    border: 1px solid #cfe6d8;
    border-radius: 12px;
    background: #edf8f2;
}
.td-feature-center__status strong {
    grid-row: 1 / 3;
    color: #1e7650;
    font-size: 18px;
}
.td-feature-center__status span { color: #1d5e43; font-size: 12px; font-weight: 800; }
.td-feature-center__status small { color: #688074; font-size: 9.5px; }
.td-feature-filters {
    display: flex;
    gap: 6px;
    padding: 0 14px 9px;
    overflow-x: auto;
    scrollbar-width: none;
}
.td-feature-filters::-webkit-scrollbar { display: none; }
.td-feature-filters button {
    min-height: 33px;
    padding: 0 12px;
    flex: 0 0 auto;
    border: 1px solid #dce2e9;
    border-radius: 999px;
    background: #fff;
    color: #5d6a7b;
    font-size: 10px;
    font-weight: 750;
    cursor: pointer;
}
.td-feature-filters button.is-active {
    border-color: color-mix(in srgb, var(--td-project-accent) 38%, #dce2e9);
    background: var(--td-project-accent-soft);
    color: var(--td-project-accent-ink);
}
.td-feature-list {
    display: flex;
    min-height: 0;
    padding: 0 14px 14px;
    flex-direction: column;
    gap: 7px;
    overflow-y: auto;
    overscroll-behavior: contain;
}
.td-feature-row {
    display: grid;
    min-height: 72px;
    padding: 11px 12px;
    grid-template-columns: minmax(0,1fr) auto;
    align-items: center;
    gap: 9px;
    border: 1px solid #e0e5ec;
    border-radius: 12px;
    background: #fff;
    color: #142337;
    text-decoration: none;
}
.td-feature-row[hidden] { display: none; }
.td-feature-row__copy { min-width: 0; }
.td-feature-row__copy > span {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
}
.td-feature-row__copy b {
    display: inline-flex;
    min-height: 21px;
    padding: 0 7px;
    flex: 0 0 auto;
    align-items: center;
    border-radius: 6px;
    background: var(--td-project-accent-soft);
    color: var(--td-project-accent-ink);
    font-size: 9px;
}
.td-feature-row__copy strong {
    overflow: hidden;
    font-size: 12px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.td-feature-row__copy small {
    display: block;
    margin-top: 6px;
    overflow: hidden;
    color: #718093;
    font-size: 9.5px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.td-feature-row > em {
    min-width: 46px;
    color: #248159;
    font-size: 9px;
    font-style: normal;
    font-weight: 800;
    text-align: right;
    white-space: nowrap;
}
.td-feature-row > em.is-permission { color: #a06b19; }
.td-feature-row:hover { border-color: color-mix(in srgb, var(--td-project-accent) 34%, #dce2e9); }
.td-project-switcher {
    border-top: 1px solid #e2e7ee;
    background: #fff;
}
.td-project-switcher summary {
    min-height: 48px;
    padding: 0 18px;
    align-content: center;
    color: #4e5d70;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}
.td-project-switcher > div {
    display: grid;
    padding: 0 14px 14px;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 7px;
}
.td-project-switcher a {
    display: flex;
    min-height: 40px;
    padding: 0 10px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid #dde3ea;
    border-radius: 9px;
    background: #f8fafc;
    color: #405064;
    font-size: 10px;
    font-weight: 750;
    text-decoration: none;
}
.td-project-switcher a.is-current {
    border-color: color-mix(in srgb, var(--td-project-accent) 38%, #dde3ea);
    background: var(--td-project-accent-soft);
    color: var(--td-project-accent-ink);
}
.td-project-switcher a small { font-size: 8px; font-weight: 800; }
body.td-feature-center-open { overflow: hidden !important; }

body[data-td-project-id="cloveros"] .app-header { display: none; }

@media (max-width: 767px) {
    body.td-unified-project-v2 .td-project-header__inner {
        min-height: 98px;
        padding: 8px 12px;
        grid-template-columns: auto minmax(0,1fr) auto;
        gap: 8px;
    }
    body.td-unified-project-v2 .td-project-home { grid-column: 1; grid-row: 1; }
    body.td-unified-project-v2 .td-project-brand { grid-column: 2; grid-row: 1; }
    .td-project-home {
        width: 43px;
        min-width: 43px;
        height: 43px;
        min-height: 43px;
        flex-direction: column;
        gap: 1px;
        font-size: 8px;
    }
    .td-project-home svg { width: 16px; height: 16px; }
    body.td-unified-project-v2 .td-project-brand { gap: 8px; }
    body.td-unified-project-v2 .td-project-brand img {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
        border-radius: 9px;
    }
    body.td-unified-project-v2 .td-project-brand__copy strong { font-size: 13px; }
    body.td-unified-project-v2 .td-project-brand__copy small { margin-top: 3px; font-size: 8px; }
    body.td-unified-project-v2 .td-project-account {
        grid-column: 3;
        grid-row: 1;
        width: 48px;
        min-width: 48px;
        min-height: 42px;
        padding: 0 7px;
        font-size: 10px;
    }
    body.td-unified-project-v2 .td-project-data-time {
        min-height: 39px;
        padding: 5px 9px;
        grid-column: 1 / -1;
        grid-row: 2;
    }
    body.td-unified-project-v2 .td-project-data-time > span { font-size: 9px; }
    body.td-unified-project-v2 .td-project-data-time > time { font-size: 12px; }
    .td-feature-banner > div { min-height: 56px; padding: 8px 12px; gap: 9px; }
    .td-feature-banner__mark { width: 31px; height: 31px; border-radius: 9px; font-size: 11px; }
    .td-feature-banner strong { font-size: 12px; }
    .td-feature-banner small { max-width: 205px; font-size: 9px; }
    .td-feature-banner button { min-height: 34px; padding: 0 10px; font-size: 10px; }
    body[data-td-project-id="cloveros"] .primary-nav { display: none; }
    body[data-td-project-id="cloveros"] .main-content { padding-top: 12px; }
    body[data-td-project-id="onebit"] .onebit-panorama-nav { display: none !important; }
    body.td-unified-project-v2[data-td-project-id="ark"] > .container,
    body.td-unified-project-v2[data-td-project-id="pro"] > .container { padding: 20px; }
}

@media (min-width: 768px) {
    body.td-unified-project-v2[data-td-project-id="ark"],
    body.td-unified-project-v2[data-td-project-id="pro"] { padding: 0 !important; }
    body.td-unified-project-v2 .td-project-header__inner { min-height: 76px; }
    body.td-unified-project-v2 .td-project-brand img { width: 48px; height: 48px; flex-basis: 48px; }
    body.td-unified-project-v2 .td-project-brand__copy strong { font-size: 18px; }
    body.td-unified-project-v2 .td-project-brand__copy small { font-size: 9px; }
    .td-feature-center { justify-items: end; align-items: stretch; }
    .td-feature-center__panel {
        width: min(520px,100%);
        max-height: none;
        border-width: 0 0 0 1px;
        border-radius: 0;
        box-shadow: -28px 0 70px rgba(4,16,31,.24);
    }
    body[data-td-project-id="cloveros"] .primary-nav { top: 122px; }
}

@media (prefers-reduced-motion: no-preference) {
    .td-feature-center:not([hidden]) .td-feature-center__panel { animation: td-feature-panel-in .2s ease-out both; }
    @keyframes td-feature-panel-in {
        from { opacity: .2; transform: translateY(18px); }
        to { opacity: 1; transform: translateY(0); }
    }
    @media (min-width: 768px) {
        .td-feature-center:not([hidden]) .td-feature-center__panel { animation-name: td-feature-panel-in-desktop; }
        @keyframes td-feature-panel-in-desktop {
            from { opacity: .2; transform: translateX(22px); }
            to { opacity: 1; transform: translateX(0); }
        }
    }
}

/* 已上线项目公共数据专区。 */
body.td-unified-project-v3 {
    --td-template-ink: #071525;
    --td-template-text: #0b1727;
    --td-template-muted: #6b7582;
    --td-template-line: #e5e8eb;
    --td-template-surface: #f7f9f8;
    --td-template-green: #16875a;
    --td-template-green-soft: #edf7f2;
    --td-template-coral: #e4483c;
    --td-template-gold: #e7b864;
    --td-template-amber: #b96a08;
    --td-template-amber-soft: #fff3e2;
    --td-template-blue: #2f5da8;
    margin: 0 !important;
    overflow-x: hidden;
    background: #fff;
    color: var(--td-template-text);
    font-family: -apple-system,BlinkMacSystemFont,"PingFang SC","Noto Sans CJK SC","Microsoft YaHei",sans-serif;
    font-variant-numeric: tabular-nums;
}
body.td-unified-project-v3[data-td-project-id="afi"] { --td-project-accent: #7654d8; }
body.td-unified-project-v3[data-td-project-id="onebit"] { --td-project-accent: #b47a24; }
body.td-unified-project-v3[data-td-project-id="caishendao"] { --td-project-accent: #b96a08; }
body.td-unified-project-v3[data-td-project-id="cloveros"] { --td-project-accent: #16875a; }
body.td-unified-project-v3[data-td-project-id="gana"],
body.td-unified-project-v3[data-td-project-id="ark"] { --td-project-accent: #2f5da8; }
body.td-unified-project-v3[data-td-project-id="pro"] { --td-project-accent: #7b4cb3; }

body.td-unified-project-v3 > .td-project-legacy-root { display: none !important; }
body.td-unified-project-v3.td-legacy-open > .td-template-overview { display: none !important; }
body.td-unified-project-v3.td-legacy-open > .td-project-legacy-root { display: block !important; }
body.td-unified-project-v3.td-legacy-open[data-td-project-id="ark"] > .td-project-legacy-root,
body.td-unified-project-v3.td-legacy-open[data-td-project-id="pro"] > .td-project-legacy-root { padding: 20px !important; }
body.td-unified-project-v3.td-legacy-open[data-td-project-id="onebit"] .onebit-panorama-nav { display: flex !important; }
body.td-unified-project-v3.td-legacy-open[data-td-project-id="cloveros"] .primary-nav { display: flex !important; }

body.td-unified-project-v3 .td-project-header {
    position: relative;
    z-index: 2300;
    border-bottom: 3px solid var(--td-project-accent);
    background: var(--td-template-ink);
    color: #fff;
    box-shadow: none;
}
body.td-unified-project-v3 .td-template-header__inner {
    display: grid;
    width: min(100%,920px);
    min-height: 104px;
    margin: 0 auto;
    padding: calc(env(safe-area-inset-top) + 8px) 18px 15px;
    grid-template-columns: auto auto minmax(0,1fr);
    align-items: center;
    gap: 10px;
}
body.td-unified-project-v3 .td-project-home {
    display: inline-flex;
    width: 54px;
    min-width: 54px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    flex-direction: row;
    gap: 4px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 12px;
    background: rgba(255,255,255,.08);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}
body.td-unified-project-v3 .td-project-home i { font-size: 16px; }
.td-template-brand-avatar {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 10px;
    object-fit: contain;
    background: rgba(255,255,255,.06);
    box-shadow: 0 0 0 1px rgba(231,184,100,.2);
    grid-column: 2;
    grid-row: 1;
}
body.td-unified-project-v3[data-td-project-id="onebit"] .td-template-brand-avatar { border-radius: 50%; }
body.td-unified-project-v3 .td-template-project-switch {
    display: flex;
    min-width: 0;
    min-height: 44px;
    padding: 0;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    border: 0;
    background: transparent;
    color: #fff;
    text-align: left;
    pointer-events: auto;
    cursor: pointer;
    grid-column: 3;
    grid-row: 1;
}
body.td-unified-project-v3 .td-template-project-switch .td-project-brand__copy { min-width: 0; }
body.td-unified-project-v3 .td-template-project-switch .td-project-brand__copy strong {
    overflow: hidden;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}
body.td-unified-project-v3 .td-template-project-switch > i {
    flex: 0 0 auto;
    color: var(--td-template-gold);
    font-size: 15px;
}
.td-template-freshness {
    display: flex;
    min-width: 0;
    grid-column: 1 / -1;
    align-items: center;
    gap: 8px;
    margin-top: 1px;
    color: #aeb9c7;
    font-size: 12px;
    line-height: 1.4;
}
.td-template-freshness > span {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: var(--td-project-accent);
}
.td-template-freshness strong { color: var(--td-template-gold); font-weight: 700; }
.td-template-freshness > i { width: 1px; height: 13px; background: rgba(255,255,255,.18); }
.td-template-freshness time { min-width: 0; overflow-wrap: anywhere; }
body.td-unified-project-v3 .td-project-secondary-nav {
    border-top-color: rgba(255,255,255,.08);
    background: #06111e;
}

.td-template-overview {
    width: min(100%,920px);
    min-height: 100vh;
    margin: 0 auto;
    padding: 0 0 28px;
    background: #fff;
    color: var(--td-template-text);
    box-sizing: border-box;
}
.td-template-overview button { font: inherit; }
body.td-unified-project-v3 .td-template-overview h1,
body.td-unified-project-v3 .td-template-overview h2,
body.td-unified-project-v3 .td-template-overview h3 {
    margin-right: 0;
    margin-left: 0;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    color: var(--td-template-text);
    text-align: left;
}
.td-template-intro { padding: 20px 18px 14px; }
.td-template-intro p { margin: 0; color: var(--td-template-text); font-size: 16px; font-weight: 650; line-height: 1.55; }

.td-template-metric-grid {
    display: grid;
    margin: 0 18px 20px;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    border-top: 1px solid var(--td-template-line);
    border-bottom: 1px solid var(--td-template-line);
}
.td-template-metric {
    display: grid;
    min-width: 0;
    min-height: 104px;
    padding: 18px 12px 16px 0;
    grid-template-columns: 24px minmax(0,1fr);
    align-items: start;
    gap: 10px;
    background: #fff;
}
.td-template-metric:nth-child(odd) { border-right: 1px solid var(--td-template-line); }
.td-template-metric:nth-child(n+3) { border-top: 1px solid var(--td-template-line); }
.td-template-metric:nth-child(even) { padding-left: 14px; }
.td-template-metric__icon { width: 22px; margin-top: 3px; color: #a97328; font-size: 20px; text-align: center; }
.td-template-metric > div > span { display: block; margin-bottom: 8px; color: #3d4652; font-size: 13px; font-weight: 600; }
.td-template-metric strong {
    display: block;
    min-width: 0;
    color: var(--td-template-text);
    font-size: clamp(17px,4.9vw,22px);
    font-weight: 760;
    letter-spacing: -.03em;
    line-height: 1.12;
    overflow-wrap: anywhere;
}
.td-template-metric strong.is-long { font-size: clamp(15px,4.1vw,18px); white-space: nowrap; }
.td-template-metric small { display: block; margin-top: 4px; color: #525d6a; font-size: 12px; font-weight: 600; }
.td-template-metric.is-warning strong { display: inline-flex; padding: 7px 9px; border-radius: 9px; background: var(--td-template-amber-soft); color: var(--td-template-amber); font-size: 14px; letter-spacing: 0; }
.td-template-metric.is-unknown strong { color: var(--td-template-amber); font-size: 14px; letter-spacing: 0; }

.td-template-daily {
    margin: 0 14px 20px;
    padding: 18px 16px 14px;
    scroll-margin-top: 12px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 6px 24px rgba(5,18,32,.07);
}
.td-template-daily h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; color: var(--td-template-text); font-size: 17px; line-height: 1.2; }
.td-template-daily h2 i { font-size: 17px; }
.td-template-daily-values { display: grid; grid-template-columns: 1fr 1fr; }
.td-template-daily-values > div { min-width: 0; padding: 2px 10px 4px; text-align: center; }
.td-template-daily-values > div + div { border-left: 1px solid var(--td-template-line); }
.td-template-daily-values span,
.td-template-daily-values small { display: block; color: #3e4855; font-size: 12px; }
.td-template-daily-values strong { display: block; margin: 7px 0 2px; font-size: clamp(18px,6vw,25px); line-height: 1.05; overflow-wrap: anywhere; }
.td-template-daily-values strong.is-long { font-size: 18px; letter-spacing: -.025em; }
.td-template-daily-values strong.is-positive { color: var(--td-template-green); }
.td-template-daily-values strong.is-negative { color: var(--td-template-coral); }
.td-template-daily-values strong.is-neutral { color: var(--td-template-blue); }
.td-template-daily-values strong.is-unknown { color: var(--td-template-amber); font-size: 15px; line-height: 1.25; }
.td-template-daily-breakdowns { display: grid; margin-top: 13px; padding-top: 12px; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; border-top: 1px solid var(--td-template-line); }
.td-template-daily-breakdowns span { min-width: 0; padding: 8px 5px; border-radius: 9px; background: var(--td-template-surface); text-align: center; }
.td-template-daily-breakdowns small,
.td-template-daily-breakdowns strong { display: block; }
.td-template-daily-breakdowns small { color: var(--td-template-muted); font-size: 11px; }
.td-template-daily-breakdowns strong { margin-top: 5px; color: #394654; font-size: 11px; overflow-wrap: anywhere; }
.td-template-daily > p { margin: 13px 0 0; padding-top: 11px; border-top: 1px solid var(--td-template-line); color: var(--td-template-muted); font-size: 12px; line-height: 1.5; text-align: center; }

.td-template-section { padding: 21px 18px; scroll-margin-top: 12px; border-top: 8px solid var(--td-template-surface); }
.td-template-section-heading { display: flex; margin-bottom: 16px; align-items: center; justify-content: space-between; gap: 12px; }
.td-template-section-heading > div > p { margin: 0 0 4px; color: var(--td-template-green); font-size: 12px; font-weight: 750; letter-spacing: .03em; }
.td-template-section-heading h2 { margin: 0; color: var(--td-template-text); font-size: 19px; line-height: 1.25; }
.td-template-period { display: inline-grid; padding: 3px; grid-auto-flow: column; gap: 3px; border-radius: 12px; background: #eef0f2; }
.td-template-period button { min-width: 52px; min-height: 44px; padding: 0 13px; border: 0; border-radius: 9px; background: transparent; color: #525d6a; font-size: 14px; font-weight: 700; cursor: pointer; }
.td-template-period button.is-active { background: var(--td-template-ink); color: #fff; }
.td-template-period button.is-link { color: var(--td-project-accent); }
.td-template-period button.is-link::after { content: '›'; margin-left: 3px; }
.td-template-period-note { display: flex; margin: 0 0 14px; padding: 10px 11px; align-items: flex-start; gap: 7px; border-radius: 9px; background: #eef6fb; color: #456276; font-size: 11px; line-height: 1.55; }
.td-template-period-note i { margin-top: 2px; color: var(--td-project-accent); }
.td-template-trend-plot { display: grid; gap: 18px; }
.td-template-chart-lane { min-width: 0; padding-bottom: 17px; }
.td-template-chart-lane.is-secondary { padding-top: 2px; border-top: 1px solid var(--td-template-line); }
.td-template-lane-heading { display: flex; margin-bottom: 8px; align-items: center; justify-content: space-between; gap: 12px; color: #323c48; font-size: 12px; }
.td-template-lane-heading > span { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; }
.td-template-lane-heading small { color: var(--td-template-muted); font-size: 12px; }
.td-template-legend { width: 9px; height: 9px; border-radius: 3px; background: var(--td-project-accent); }
.td-template-legend.is-secondary { background: var(--td-template-coral); }
.td-template-chart-scroll { min-width: 0; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; scrollbar-color: #c8d0d8 transparent; }
.td-template-bar-grid { display: grid; width: 100%; min-width: max(100%,calc(var(--td-template-point-count) * 44px)); padding: 7px 0 0; grid-template-columns: repeat(var(--td-template-point-count),minmax(0,1fr)); align-items: end; gap: 5px; border-bottom: 1px solid #cfd5da; }
.td-template-bar-column { display: grid; min-width: 0; align-content: end; justify-items: center; }
.td-template-bar-number { margin-bottom: 4px; color: #485360; font-size: 12px; line-height: 1; }
.td-template-bar { display: block; width: min(22px,65%); height: var(--td-template-bar-size); min-height: 8px; border-radius: 4px 4px 0 0; background: var(--td-project-accent); }
.td-template-bar.is-secondary { width: min(20px,58%); background: var(--td-template-coral); }
.td-template-bar-label { margin: 5px 0 -17px; color: #697380; font-size: 12px; white-space: nowrap; }
.td-template-trend-conclusion { margin: 15px 0 0; padding: 11px 12px; border-radius: 10px; background: var(--td-template-surface); color: #53606d; font-size: 12px; line-height: 1.55; }
.td-template-flow-combo { min-width: 0; }
.td-template-flow-combo__legend { display: flex; margin: 0 0 5px; flex-wrap: wrap; align-items: center; gap: 8px 14px; color: #566371; font-size: 11px; font-weight: 700; }
.td-template-flow-combo__legend span { display: inline-flex; align-items: center; gap: 6px; }
.td-template-flow-combo__legend i { position: relative; display: inline-block; width: 19px; height: 8px; }
.td-template-flow-combo__legend i.is-primary::before,
.td-template-flow-combo__legend i.is-secondary::before { content: ''; position: absolute; top: 3px; right: 0; left: 0; height: 2px; border-radius: 2px; background: var(--td-template-green); }
.td-template-flow-combo__legend i.is-primary::after,
.td-template-flow-combo__legend i.is-secondary::after { content: ''; position: absolute; top: 1px; left: 7px; width: 6px; height: 6px; border: 1px solid #fff; border-radius: 50%; background: var(--td-template-green); }
.td-template-flow-combo__legend i.is-secondary::before,
.td-template-flow-combo__legend i.is-secondary::after { background: var(--td-template-coral); }
.td-template-flow-combo__legend i.is-net::before { content: ''; position: absolute; top: 3px; right: 0; left: 0; height: 2px; border-radius: 2px; background: #16324a; }
.td-template-flow-combo__legend i.is-net::after { content: ''; position: absolute; top: 1px; left: 7px; width: 6px; height: 6px; border: 1px solid #fff; border-radius: 50%; background: #16324a; }
.td-template-flow-combo.is-net-bar-lines .td-template-flow-combo__legend i.is-net::before { top: 0; right: auto; left: 4px; width: 5px; height: 8px; border-radius: 3px 3px 1px 1px; background: var(--td-template-green); }
.td-template-flow-combo.is-net-bar-lines .td-template-flow-combo__legend i.is-net::after { top: 2px; left: 11px; width: 5px; height: 6px; border: 0; border-radius: 1px 1px 3px 3px; background: var(--td-template-coral); }
.td-template-flow-combo__chart { display: flex; width: 100%; height: 290px; align-items: center; justify-content: center; border: 1px solid #edf0f3; border-radius: 12px; overflow: hidden; background: linear-gradient(180deg,#fff 0%,#fcfdfe 100%); color: var(--td-template-muted); font-size: 12px; }
.td-template-flow-combo.is-lines-only .td-template-flow-combo__chart { height: 252px; }
.td-template-flow-combo__chart.is-error { background: var(--td-template-amber-soft); color: #78551d; }
.td-template-flow-combo__guide { margin: 7px 0 0; color: #71808e; font-size: 11px; line-height: 1.45; text-align: center; }
.td-template-net-lane { min-width: 0; }
.td-template-net-legend { display: flex; margin: -2px 0 8px; justify-content: flex-end; gap: 14px; color: var(--td-template-muted); font-size: 11px; }
.td-template-net-legend span { display: inline-flex; align-items: center; gap: 5px; }
.td-template-net-legend i { width: 8px; height: 8px; border-radius: 2px; }
.td-template-net-legend i.is-positive,
.td-template-legend.is-net-positive { background: var(--td-template-green); }
.td-template-net-legend i.is-negative { background: var(--td-template-coral); }
.td-template-net-scroll { min-width: 0; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; scrollbar-color: #c8d0d8 transparent; }
.td-template-net-grid {
    position: relative;
    display: grid;
    width: 100%;
    min-width: max(100%,calc(var(--td-template-point-count) * 44px));
    height: 176px;
    padding: 0 2px;
    grid-template-columns: repeat(var(--td-template-point-count),minmax(0,1fr));
    gap: 4px;
}
.td-template-net-zero { position: absolute; z-index: 0; top: 76px; right: 0; left: 0; border-top: 1px solid #bfc8d1; }
.td-template-net-zero b { position: absolute; top: -8px; left: 0; padding-right: 4px; background: #fff; color: #7b8793; font-size: 9px; font-weight: 700; line-height: 14px; }
.td-template-net-column { position: relative; z-index: 1; display: grid; min-width: 0; grid-template-rows: 76px 76px 24px; justify-items: center; }
.td-template-net-column.is-muted { opacity: .36; }
.td-template-net-column.is-active { border-radius: 8px; background: color-mix(in srgb,var(--td-project-accent) 9%,transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb,var(--td-project-accent) 24%,transparent); }
.td-template-net-half { display: flex; width: 100%; min-width: 0; align-items: center; }
.td-template-net-half.is-positive { flex-direction: column; justify-content: flex-end; }
.td-template-net-half.is-negative { flex-direction: column; justify-content: flex-start; }
.td-template-net-value { color: var(--td-template-green); font-size: 10px; font-weight: 750; font-variant-numeric: tabular-nums; line-height: 1; white-space: nowrap; }
.td-template-net-half.is-positive .td-template-net-value { margin-bottom: 4px; }
.td-template-net-half.is-negative .td-template-net-value { margin-top: 4px; }
.td-template-net-value.is-negative { color: var(--td-template-coral); }
.td-template-net-value.is-zero { color: #77828e; }
.td-template-net-bar { display: block; width: min(22px,62%); height: var(--td-template-net-size); min-height: 2px; border-radius: 4px 4px 0 0; background: var(--td-template-green); box-shadow: 0 3px 10px rgba(13,130,89,.12); }
.td-template-net-bar.is-negative { border-radius: 0 0 4px 4px; background: var(--td-template-coral); box-shadow: 0 3px 10px rgba(222,92,82,.12); }
.td-template-net-bar.is-zero { border-radius: 2px; background: #8d98a4; box-shadow: none; }
.td-template-net-label { padding-top: 6px; color: #697380; font-size: 10px; line-height: 1.2; text-align: center; white-space: nowrap; }
.td-template-flow-detail { margin-top: 13px; border: 1px solid var(--td-template-line); border-radius: 10px; background: #fff; }
.td-template-flow-detail > summary { display: flex; min-height: 44px; padding: 0 12px; align-items: center; justify-content: space-between; gap: 10px; color: #4d5966; font-size: 12px; font-weight: 750; cursor: pointer; list-style: none; }
.td-template-flow-detail > summary::-webkit-details-marker { display: none; }
.td-template-flow-detail > summary::after { content: '+'; color: var(--td-project-accent); font-size: 18px; font-weight: 500; }
.td-template-flow-detail[open] > summary::after { content: '−'; }
.td-template-flow-detail > .td-template-trend-plot { padding: 12px 12px 18px; border-top: 1px solid var(--td-template-line); }
.td-template-net-unavailable { display: flex; margin: 13px 0 0; padding: 10px 11px; align-items: flex-start; gap: 7px; border-radius: 9px; background: var(--td-template-amber-soft); color: #78551d; font-size: 11px; line-height: 1.5; }
.td-template-net-unavailable i { margin-top: 2px; color: var(--td-template-amber); }

/* 资金优先：移动端先完整阅读当日资金与趋势，项目规模随后出现。 */
.td-template-priority-layout { display: grid; min-width: 0; }
.td-template-flow-card {
    min-width: 0;
    margin: 0 14px 20px;
    overflow: hidden;
    border: 1px solid #e2e8ee;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(5,18,32,.08);
}
.td-template-flow-card.is-unavailable { border-color: #ead8b8; box-shadow: 0 8px 26px rgba(124,83,25,.08); }
.td-template-flow-card .td-template-daily {
    margin: 0;
    padding: 18px 16px 15px;
    border-radius: 0;
    box-shadow: none;
}
.td-template-daily-eyebrow {
    margin: 0 0 6px !important;
    padding: 0 !important;
    border: 0 !important;
    color: var(--td-template-green) !important;
    font-size: 11px !important;
    font-weight: 800;
    letter-spacing: .04em;
    text-align: left !important;
}
.td-template-flow-card.is-unavailable .td-template-daily-eyebrow { color: var(--td-template-amber) !important; }
.td-template-flow-card .td-template-daily h2 { margin-bottom: 18px; }
.td-template-flow-card .td-template-daily-values strong {
    font-size: clamp(22px,6vw,30px);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.td-template-flow-card .td-template-daily-values strong.is-long { font-size: clamp(18px,4.8vw,23px); }
.td-template-flow-card .td-template-daily-values strong.is-unknown { white-space: normal; }
.td-template-flow-summary {
    display: grid;
    min-height: 48px;
    margin: 14px 0 0;
    padding: 10px 12px;
    grid-template-columns: minmax(0,1fr) auto auto;
    align-items: center;
    gap: 6px;
    border-radius: 10px;
    background: var(--td-template-surface);
}
.td-template-flow-summary span { color: #56616d; font-size: 12px; font-weight: 700; }
.td-template-flow-summary strong { color: var(--td-template-text); font-size: 16px; overflow-wrap: anywhere; }
.td-template-flow-summary small { color: #68737f; font-size: 10px; font-weight: 700; }
.td-template-flow-summary.is-positive strong { color: var(--td-template-green); }
.td-template-flow-summary.is-negative strong { color: var(--td-template-coral); }
.td-template-flow-card .td-template-trend {
    padding: 18px 16px 20px;
    border-top: 1px solid var(--td-template-line);
}
.td-template-flow-card .td-template-section-heading { margin-bottom: 18px; }
.td-template-flow-card .td-template-section-heading h2 { font-size: 17px; }
.td-template-trend-summary {
    display: grid;
    margin-top: 15px;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 7px;
}
.td-template-trend-summary > span {
    min-width: 0;
    padding: 9px 10px;
    border-radius: 9px;
    background: var(--td-template-surface);
}
.td-template-trend-summary > span:last-child:nth-child(odd) { grid-column: 1 / -1; }
.td-template-trend-summary small,
.td-template-trend-summary strong { display: block; }
.td-template-trend-summary small { color: var(--td-template-muted); font-size: 10px; }
.td-template-trend-summary strong { margin-top: 4px; color: #364352; font-size: 11px; line-height: 1.35; overflow-wrap: anywhere; }
.td-template-trend-summary .is-positive strong { color: var(--td-template-green); }
.td-template-trend-summary .is-negative strong { color: var(--td-template-coral); }
.td-template-trend-summary .is-unknown strong { color: var(--td-template-amber); }
.td-template-snapshot {
    min-width: 0;
    padding: 20px 18px 0;
    border-top: 8px solid var(--td-template-surface);
}
.td-template-snapshot-heading { margin-bottom: 12px; }
.td-template-snapshot-heading p { margin: 0 0 4px; color: var(--td-project-accent); font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.td-template-snapshot-heading h2 { margin: 0; font-size: 19px; line-height: 1.25; }
.td-template-snapshot .td-template-metric-grid { margin: 0; }

.td-template-support-state { display: inline-flex; min-height: 44px; padding: 8px 9px; align-items: center; gap: 5px; border: 0; border-radius: 9px; background: var(--td-template-amber-soft); color: var(--td-template-amber); font-size: 12px; font-weight: 700; cursor: pointer; }
.td-template-support-state.is-ready { background: var(--td-template-green-soft); color: var(--td-template-green); }
.td-template-support-state.is-not-live,
.td-template-support-state.is-stale { background: #eef0f2; color: #56616d; }
.td-template-market-quotes { display: grid; grid-template-columns: 1fr 1fr; }
.td-template-quote { display: grid; min-width: 0; padding: 8px 12px 8px 0; grid-template-columns: 44px minmax(0,1fr); align-items: center; gap: 10px; }
.td-template-quote + .td-template-quote { padding-left: 13px; border-left: 1px solid var(--td-template-line); }
.td-template-asset-chip { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: var(--td-template-blue); color: #fff; font-size: 11px; font-weight: 800; }
.td-template-asset-chip.is-green { background: var(--td-template-green); }
.td-template-asset-chip.is-gold { background: #d98108; }
.td-template-quote > div > span { display: block; margin-bottom: 8px; color: #3d4652; font-size: 13px; font-weight: 600; }
.td-template-quote strong { display: block; color: var(--td-template-text); font-size: 18px; white-space: nowrap; }
.td-template-quote strong small { display: block; margin-top: 4px; color: #525d6a; font-size: 12px; font-weight: 600; }
.td-template-market-note { margin: 13px 0 0; padding: 11px 12px; border-radius: 10px; background: var(--td-template-surface); color: #53606d; font-size: 12px; line-height: 1.55; }
.td-template-market-note[hidden] { display: none; }

.td-template-state-card { display: grid; padding: 15px; grid-template-columns: 34px minmax(0,1fr); align-items: start; gap: 11px; border: 1px solid #ead8b8; border-radius: 12px; background: #fffaf1; color: #654b25; }
.td-template-state-card > i { color: var(--td-template-amber); font-size: 21px; text-align: center; }
.td-template-state-card strong,
.td-template-state-card p { display: block; margin: 0; }
.td-template-state-card strong { font-size: 14px; }
.td-template-state-card p { margin-top: 5px; color: #74634c; font-size: 12px; line-height: 1.55; }
.td-template-capability-grid { display: grid; gap: 8px; }
.td-template-capability {
    display: grid;
    width: 100%;
    min-height: 64px;
    padding: 10px 12px;
    grid-template-columns: 34px minmax(0,1fr) 18px;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--td-template-line);
    border-radius: 12px;
    background: #fff;
    color: var(--td-template-text);
    text-align: left;
    cursor: pointer;
}
.td-template-capability > i:first-child { color: var(--td-project-accent); font-size: 21px; text-align: center; }
.td-template-capability > i:last-child { color: #8a949f; font-size: 15px; }
.td-template-capability__title { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.td-template-capability strong { font-size: 14px; }
.td-template-capability em { padding: 3px 6px; border-radius: 6px; background: var(--td-template-green-soft); color: var(--td-template-green); font-size: 10px; font-style: normal; font-weight: 750; }
.td-template-capability small { display: block; margin-top: 4px; color: var(--td-template-muted); font-size: 12px; line-height: 1.4; }

.td-template-preservation { display: grid; margin: 18px 16px 0; padding: 14px; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 12px; border: 1px solid #cfe6dc; border-radius: 13px; background: var(--td-template-green-soft); }
.td-template-preservation > div { display: grid; grid-template-columns: 22px minmax(0,1fr); align-items: start; gap: 9px; }
.td-template-preservation i { color: var(--td-template-green); font-size: 20px; }
.td-template-preservation strong,
.td-template-preservation small { display: block; }
.td-template-preservation strong { font-size: 13px; }
.td-template-preservation small { margin-top: 4px; color: #557164; font-size: 11px; line-height: 1.4; }
.td-template-preservation button { display: inline-flex; min-height: 44px; padding: 0 4px 0 9px; align-items: center; gap: 5px; border: 0; background: transparent; color: var(--td-template-green); font-size: 12px; font-weight: 750; cursor: pointer; }
.td-template-preservation button i { font-size: 14px; }
.td-template-shortcuts { display: grid; margin: 10px 16px 0; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 8px; }
.td-template-shortcuts button { display: grid; min-width: 0; min-height: 76px; padding: 11px; grid-template-columns: 24px minmax(0,1fr) 16px; align-items: center; gap: 8px; border: 1px solid var(--td-template-line); border-radius: 12px; background: #fff; color: var(--td-template-text); text-align: left; cursor: pointer; }
.td-template-shortcuts button > i:first-child { color: var(--td-project-accent); font-size: 20px; }
.td-template-shortcuts button > i:last-child { color: #8b96a0; font-size: 14px; }
.td-template-shortcuts strong,
.td-template-shortcuts small { display: block; }
.td-template-shortcuts strong { font-size: 13px; line-height: 1.3; }
.td-template-shortcuts small { margin-top: 5px; color: var(--td-template-muted); font-size: 10px; line-height: 1.3; }
.td-template-actions { display: grid; padding: 20px 18px 8px; gap: 8px; }
.td-template-primary-action,
.td-template-secondary-action,
.td-template-text-action { display: flex; width: 100%; min-height: 52px; align-items: center; justify-content: center; gap: 10px; border-radius: 12px; font-weight: 750; cursor: pointer; }
.td-template-primary-action { border: 0; background: var(--td-template-ink); color: var(--td-template-gold); font-size: 16px; }
.td-template-secondary-action { border: 1px solid #c8d4e5; background: #f4f7fb; color: var(--td-template-blue); font-size: 14px; }
.td-template-text-action { border: 0; background: transparent; color: #405066; font-size: 14px; }
.td-template-continue { margin: 8px 0 0; color: #89919b; font-size: 12px; text-align: center; }

.td-template-legacy-bar[hidden] { display: none !important; }
.td-template-legacy-bar {
    display: flex;
    width: min(100%,1180px);
    min-height: 58px;
    margin: 0 auto;
    padding: 8px 18px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #dfe5ec;
    background: #f8fafc;
    color: #536174;
    font-size: 12px;
    box-sizing: border-box;
}
.td-template-legacy-bar button { display: inline-flex; min-height: 42px; padding: 0 13px; align-items: center; gap: 7px; border: 1px solid #c8d4e5; border-radius: 10px; background: #fff; color: var(--td-template-blue); font-weight: 750; cursor: pointer; }

.td-project-picker[hidden] { display: none !important; }
.td-project-picker { position: fixed; z-index: 3300; inset: 0; display: grid; align-items: end; color: var(--td-template-text); font-family: -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif; }
.td-project-picker__backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(3,11,21,.58); backdrop-filter: blur(5px); }
.td-project-picker__panel { position: relative; width: 100%; max-height: min(82dvh,720px); padding-bottom: calc(env(safe-area-inset-bottom) + 14px); overflow: auto; border-radius: 22px 22px 0 0; background: #fff; box-shadow: 0 -26px 70px rgba(4,16,31,.28); }
.td-project-picker__panel > header { display: grid; min-height: 112px; padding: 20px 18px 15px; grid-template-columns: minmax(0,1fr) auto; gap: 16px; border-bottom: 1px solid var(--td-template-line); }
.td-project-picker__panel > header span { color: var(--td-project-accent); font-size: 10px; font-weight: 800; }
.td-project-picker__panel > header h2 { margin: 4px 0 5px; color: var(--td-template-text); font-size: 21px; line-height: 1.2; }
.td-project-picker__panel > header p { margin: 0; color: var(--td-template-muted); font-size: 11px; line-height: 1.55; }
.td-project-picker__panel > header button { align-self: start; min-width: 52px; min-height: 36px; border: 1px solid #dce2e9; border-radius: 9px; background: #f5f7fa; color: #4f5f72; font-size: 11px; font-weight: 750; cursor: pointer; }
.td-project-picker__list { padding: 0 18px; }
.td-project-picker__list a { display: grid; min-height: 58px; grid-template-columns: minmax(0,1fr) auto 16px; align-items: center; gap: 9px; border-bottom: 1px solid var(--td-template-line); color: var(--td-template-text); font-size: 15px; font-weight: 650; text-decoration: none; }
.td-project-picker__list a small { color: var(--td-template-muted); font-size: 11px; font-weight: 600; }
.td-project-picker__list a > i { color: #8793a0; font-size: 13px; }
.td-project-picker__list a.is-current small { color: var(--td-template-green); font-weight: 750; }
.td-project-picker__note { margin: 14px 18px 0; color: var(--td-template-muted); font-size: 12px; line-height: 1.5; }
body.td-project-picker-open { overflow: hidden !important; }

body.td-unified-project-v3 .td-project-mobile-nav { background: var(--td-template-ink); border-top-color: rgba(255,255,255,.08); box-shadow: 0 -1px 0 rgba(255,255,255,.07); }
body.td-unified-project-v3 .td-project-mobile-nav a { color: #aeb8c5; font-size: 12px; }
body.td-unified-project-v3 .td-project-mobile-nav a.is-active { color: var(--td-template-gold); }
body.td-unified-project-v3 .td-project-mobile-nav a svg { width: 21px; height: 21px; }

.td-template-overview button:focus-visible,
body.td-unified-project-v3 .td-project-home:focus-visible,
body.td-unified-project-v3 .td-template-project-switch:focus-visible,
.td-template-legacy-bar button:focus-visible,
.td-project-picker button:focus-visible,
.td-project-picker a:focus-visible { outline: 3px solid #4da3ff; outline-offset: 2px; }

@media (max-width: 767px) {
    .td-template-flow-card .td-template-section-heading { flex-direction: column; align-items: stretch; }
    .td-template-flow-card .td-template-period { width: 100%; grid-auto-columns: minmax(0,1fr); }
    .td-template-flow-card .td-template-period button { min-width: 0; padding: 0 8px; white-space: nowrap; }
}

@media (max-width: 380px) {
    body.td-unified-project-v3 .td-template-header__inner,
    .td-template-intro,
    .td-template-section { padding-right: 14px; padding-left: 14px; }
    .td-template-metric-grid { margin-right: 14px; margin-left: 14px; }
    .td-template-metric strong { font-size: 17px; }
}

@media (min-width: 768px) {
    body.td-unified-project-v3 { background: #f1f4f6; }
    body.td-unified-project-v3 .td-project-secondary-nav { display: flex !important; }
    body.td-unified-project-v3 .td-template-header__inner { min-height: 96px; padding: 13px 24px 14px; }
    body.td-unified-project-v3 .td-template-project-switch .td-project-brand__copy strong { font-size: 20px; }
    .td-template-overview { margin-top: 18px; margin-bottom: 28px; border: 1px solid #e1e6eb; border-radius: 18px; overflow: hidden; box-shadow: 0 14px 40px rgba(5,18,32,.07); }
    .td-template-priority-layout { padding: 0 18px 22px; grid-template-columns: minmax(0,1.35fr) minmax(300px,.75fr); align-items: start; gap: 16px; }
    .td-template-flow-card { margin: 0; }
    .td-template-flow-card .td-template-daily { padding: 22px 20px 18px; }
    .td-template-flow-card .td-template-trend { padding: 20px; }
    .td-template-snapshot { padding: 18px; border: 1px solid #e2e8ee; border-radius: 16px; background: #fff; box-shadow: 0 10px 30px rgba(5,18,32,.065); }
    .td-template-metric strong { font-size: 21px; }
    .td-template-metric strong.is-long { font-size: 17px; }
    .td-project-picker { justify-items: end; align-items: stretch; }
    .td-project-picker__panel { width: min(480px,100%); max-height: none; border-radius: 0; }
}

@media (prefers-reduced-motion: no-preference) {
    .td-project-picker:not([hidden]) .td-project-picker__panel { animation: td-template-picker-in .2s ease-out both; }
    @keyframes td-template-picker-in { from { opacity: .2; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
    @media (min-width: 768px) {
        .td-project-picker:not([hidden]) .td-project-picker__panel { animation-name: td-template-picker-in-desktop; }
        @keyframes td-template-picker-in-desktop { from { opacity: .2; transform: translateX(22px); } to { opacity: 1; transform: translateX(0); } }
    }
}
