/* ═══════════════════════════════════════════════════════════
   全局变量 & 重置
═══════════════════════════════════════════════════════════ */
:root {
    --green:        #2ecc71;
    --green-dark:   #27ae60;
    --green-glow:   rgba(46,204,113,0.35);
    --bg:           #080b10;
    --bg-2:         #0d1018;
    --card:         rgba(18,22,32,0.82);
    --glass-border: rgba(255,255,255,0.07);
    --border-green: rgba(46,204,113,0.22);
    --text:         #eef1f8;
    --muted:        #7a8494;
    --danger:       #ff5252;
    --purple:       #8b5cf6;
}
*,*::before,*::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'SF Pro Text','PingFang SC','Hiragino Sans GB',system-ui,sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════
   AI 光晕背景
═══════════════════════════════════════════════════════════ */
.aura {
    position: fixed; inset: 0;
    pointer-events: none; z-index: 0; overflow: hidden;
}
.aura-blob {
    position: absolute; border-radius: 50%;
    filter: blur(90px); opacity: 0.45;
    animation: aura-float 22s ease-in-out infinite;
}
.aura-blob-1 {
    width: 55vw; height: 55vw;
    background: radial-gradient(circle, rgba(46,204,113,0.28), rgba(139,92,246,0.15));
    top: -25vh; left: -15vw;
}
.aura-blob-2 {
    width: 65vw; height: 65vw;
    background: radial-gradient(circle, rgba(46,204,113,0.18), transparent);
    bottom: -35vh; right: -20vw;
    animation-delay: -8s; animation-duration: 18s;
}
@keyframes aura-float {
    0%,100% { transform: translate(0,0) scale(1); }
    50%      { transform: translate(4%,6%) scale(1.06); }
}

/* ═══════════════════════════════════════════════════════════
   布局骨架 (三栏，右侧可折叠)
═══════════════════════════════════════════════════════════ */
.layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr) 0px;
    grid-template-rows: 64px 1fr;
    height: 100vh;
    position: relative; z-index: 1;
}
.layout.with-right-panel {
    grid-template-columns: 260px minmax(0, 1fr) 320px;
}
/* 右侧边栏默认隐藏，通过类控制显示 */
.right-panel {
    width: 320px;
    background: rgba(10,13,20,0.95);
    border-left: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
    position: relative;
    z-index: 20;
}
.right-panel.open {
    transform: translateX(0);
}
.right-panel-content {
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.panel-section {
    background: var(--card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 20px;
}
.section-title {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.85rem; font-weight: 600;
    color: var(--green);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--glass-border);
}
.file-upload-zone {
    background: rgba(255,255,255,0.03);
    border: 2px dashed var(--glass-border);
    border-radius: 16px;
    padding: 32px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 16px;
}
.file-upload-zone:hover {
    background: rgba(46,204,113,0.05);
    border-color: var(--border-green);
}
.file-upload-zone.scanning {
    border-color: var(--border-green);
    box-shadow: 0 0 0 1px rgba(46,204,113,0.25), 0 0 24px rgba(46,204,113,0.22) inset;
    background:
      linear-gradient(120deg, transparent 0%, rgba(46,204,113,0.18) 45%, transparent 60%),
      rgba(46,204,113,0.06);
    background-size: 220% 100%, auto;
    animation: uploadScanSweep 1.2s linear infinite;
}
@keyframes uploadScanSweep {
    0% { background-position: 200% 0, 0 0; }
    100% { background-position: -40% 0, 0 0; }
}
.upload-hint { font-size: 0.9rem; font-weight: 500; margin-bottom: 4px; }
.upload-subhint { font-size: 0.75rem; color: var(--muted); }
.uploaded-files { display: flex; flex-direction: column; gap: 10px; }
.file-item {
    display: flex; align-items: center; gap: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 10px;
}
.file-icon { font-size: 1.2rem; }
.file-details { flex: 1; }
.file-name { font-size: 0.8rem; font-weight: 500; }
.file-size { font-size: 0.7rem; color: var(--muted); }
.file-remove { background: none; border: none; color: var(--muted); cursor: pointer; padding: 4px; }
.file-remove:hover { color: var(--danger); }
.analysis-preview {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 16px;
    min-height: 100px;
}
.preview-empty { text-align: center; color: var(--muted); }
.analysis-card { animation: fadeInScale 0.3s ease; }
.analysis-header { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.analysis-header h4 { font-size: 0.85rem; font-weight: 600; color: var(--green); }
.metric-row { display: flex; justify-content: space-between; font-size: 0.75rem; margin-bottom: 8px; }
.metric-value.highlight { color: var(--green); }
.metric-value.warning { color: #f59e0b; }
.privacy-badge {
    display: flex; align-items: center; gap: 8px;
    padding: 12px;
    background: rgba(46,204,113,0.05);
    border: 1px solid var(--border-green);
    border-radius: 12px;
    font-size: 0.7rem;
    color: var(--muted);
}

/* 头部 */
.header {
    grid-column: 1 / -1;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 20px;
    background: rgba(8,11,16,0.80);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    position: relative; z-index: 40;
    min-height: 64px;
}
.header-left {
    display: flex; align-items: center;
    height: 64px;
    padding: 0;
    gap: 10px;
}
.topbar-left { flex: 0 0 auto; min-width: 240px; }
.topbar-center { flex: 1; display: flex; align-items: center; justify-content: center; padding: 0 18px; }
.topbar-right { flex: 0 0 auto; display: flex; align-items: center; gap: 14px; }
.logo-img { height: 28px; object-fit: contain; }
.brand-name {
    font-size: 1.18rem; font-weight: 700; letter-spacing: -0.4px;
    background: linear-gradient(130deg,#fff 30%, var(--green));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.badge {
    font-size: 0.65rem; padding: 2px 8px; border-radius: 40px;
    background: rgba(46,204,113,0.15);
    color: var(--green); font-weight: 600; letter-spacing: 0.04em;
}
.header-right { display: flex; align-items: center; gap: 12px; }
.chat-tools-group, .account-hub-group {
    display: flex; align-items: center; gap: 10px;
}
.topbar-divider {
    width: 1px; height: 24px;
    background: var(--glass-border);
    opacity: 0.9;
}
.status-pill {
    display: flex; align-items: center; gap: 6px;
    padding: 5px 13px; border-radius: 40px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--glass-border);
    font-size: 0.78rem; color: var(--muted);
    height: 32px;
}
.pulse {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--green); box-shadow: 0 0 6px var(--green);
    animation: pulse-ani 1.6s ease-in-out infinite alternate;
}
@keyframes pulse-ani { from { opacity: 0.4; transform: scale(0.8); } to { opacity: 1; transform: scale(1.2); } }
.hbtn {
    display: flex; align-items: center; gap: 6px;
    height: 32px;
    padding: 0 12px; border-radius: 40px;
    border: 1px solid var(--glass-border);
    background: transparent; color: var(--muted);
    font-size: 0.82rem; font-weight: 500; cursor: pointer; transition: all 0.2s; font-family: inherit;
}
.hbtn:hover { border-color: var(--green); color: var(--green); background: rgba(46,204,113,0.07); }
.new-chat-btn {
    display: flex; align-items: center; gap: 6px;
    height: 32px;
    padding: 0 12px; border-radius: 40px;
    background: rgba(46,204,113,0.12); border: 1px solid var(--border-green);
    color: var(--green); font-size: 0.82rem; font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.avatar-btn {
    width: 34px; height: 34px; border-radius: 50%;
    background: linear-gradient(135deg,var(--green-dark),var(--purple));
    border: 1.5px solid var(--border-green);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.78rem; font-weight: 700; color: white; cursor: pointer; transition: all 0.2s;
}
.sidebar-trigger {
    background: none; border: none; color: var(--muted);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px;
    padding: 0; border-radius: 8px; transition: all 0.2s;
}
.sidebar-trigger:hover { background: rgba(255,255,255,0.05); color: var(--green); }

.user-dropdown-wrap { position: relative; display: inline-block; }
.user-avatar-btn { min-width: 98px; justify-content: flex-start; }
.user-dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: rgba(10,13,20,0.98);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 6px;
    min-width: 132px;
    z-index: 100;
    box-shadow: 0 10px 24px rgba(0,0,0,0.35);
}
.user-dropdown-wrap:hover .user-dropdown-menu,
.user-dropdown-wrap:focus-within .user-dropdown-menu { display: block; }
.logout-btn {
    width: 100%;
    text-align: left;
    padding: 8px 12px;
    background: transparent;
    border: none;
    color: #fca5a5;
    cursor: pointer;
    border-radius: 6px;
    font-size: 12px;
    font-family: inherit;
}
.logout-btn:hover { background: rgba(226,75,74,0.14); color: #fecaca; }

/* 左侧边栏：会话可滚 · 底栏钉死 */
.sidebar {
    background: rgba(10,13,20,0.7); border-right: 1px solid var(--glass-border);
    display: flex; flex-direction: column; overflow: hidden; min-height: 0;
}
.sidebar-section { padding: 16px 14px 8px; flex-shrink: 0; }
.sidebar-label {
    font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em;
    color: var(--muted); text-transform: uppercase; padding: 0 6px; margin-bottom: 8px;
}
.cat-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 10px; flex-shrink: 0; }
.cat-tab {
    display: flex; align-items: center; gap: 5px;
    padding: 5px 10px; border-radius: 8px;
    background: rgba(255,255,255,0.04); border: 1px solid var(--glass-border);
    font-size: 0.72rem; color: var(--muted); cursor: pointer; transition: all 0.18s;
}
.cat-tab:hover, .cat-tab.active {
    background: rgba(46,204,113,0.1); border-color: var(--border-green); color: var(--green);
}
.session-list { flex: 1; min-height: 0; overflow-y: auto; padding: 6px 10px; scrollbar-width: thin; }
.session-empty {
    padding: 18px 12px; font-size: 0.75rem; color: var(--muted); text-align: center; line-height: 1.5;
}
.session-item .session-icon { font-size: 0.95rem; width: 28px; text-align: center; flex-shrink: 0; }
.session-item .session-title {
    font-size: 0.82rem; font-weight: 600; color: var(--text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 148px;
}
.session-item .session-meta { font-size: 0.68rem; color: var(--muted); margin-top: 2px; }
.session-item {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 10px 10px; border-radius: 12px; cursor: pointer; transition: all 0.18s; margin-bottom: 3px;
    border: 1px solid transparent;
}
.session-item:hover { background: rgba(255,255,255,0.04); border-color: var(--glass-border); }
.session-item.active { background: rgba(46,204,113,0.08); border-color: var(--border-green); }
.session-icon {
    width: 30px; height: 30px; border-radius: 8px;
    background: rgba(255,255,255,0.06); display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem; flex-shrink: 0;
}
.session-info { flex: 1; min-width: 0; }
.session-title {
    font-size: 0.8rem; font-weight: 500; color: var(--text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.session-meta { font-size: 0.7rem; color: var(--muted); margin-top: 2px; }

/* 左下角：用户 + 齿轮 → 账户中心（Cursor 式常规入口 · 钉底） */
.sidebar-footer {
    padding: 10px 12px 14px; border-top: 1px solid var(--glass-border);
    flex-shrink: 0; background: rgba(10,13,20,0.92);
    position: relative; z-index: 2;
}
.sidebar-footer-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 9px 12px; border-radius: 10px;
    background: rgba(255,255,255,0.03); border: 1px solid var(--glass-border);
    color: var(--muted); font-size: 0.8rem; font-weight: 500;
    cursor: pointer; transition: all 0.2s; font-family: inherit;
}
.sidebar-footer-btn:hover { color: #fff; background: rgba(255,255,255,0.08); }
.sidebar-account-btn {
    display: flex; align-items: center; gap: 10px;
    width: 100%; padding: 8px 10px; border-radius: 10px;
    background: transparent; border: 1px solid transparent;
    color: inherit; font-family: inherit; text-align: left;
    cursor: pointer; transition: background .15s, border-color .15s;
}
.sidebar-account-btn:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.08);
}
.sidebar-account-av {
    width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
    background: rgba(16,185,129,0.15); border: 1.5px solid rgba(16,185,129,0.45);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700; color: #6ee7b7;
}
.sidebar-account-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sidebar-account-name {
    font-size: 12.5px; font-weight: 600; color: #e8eef8;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sidebar-account-sub {
    font-size: 10px; color: var(--muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sidebar-account-gear {
    width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--muted); transition: color .15s, background .15s;
}
.sidebar-account-btn:hover .sidebar-account-gear {
    color: #d1d5db; background: rgba(255,255,255,0.06);
}

/* 中央聊天区 */
.main { display: flex; flex-direction: column; overflow: hidden; position: relative; min-width: 0; }
.chat-stream { flex: 1; overflow-y: auto; padding: 24px 0; scrollbar-width: thin; }
.welcome { max-width: 720px; margin: 40px auto 0; padding: 0 24px; text-align: center; }
.welcome-icon {
    width: 64px; height: 64px; margin: 0 auto 20px;
    background: rgba(46,204,113,0.1); border: 1px solid var(--border-green);
    border-radius: 20px; display: flex; align-items: center; justify-content: center;
}
.welcome h2 {
    font-size: 1.7rem; font-weight: 700; letter-spacing: -0.5px;
    background: linear-gradient(135deg,#fff 40%,var(--green));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 10px;
}
.welcome p { font-size: 0.92rem; color: var(--muted); margin-bottom: 28px; }
.prompt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; text-align: left; margin-top: 8px; }
.prompt-pill {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border); cursor: pointer; transition: all 0.2s; color: var(--text);
}
.prompt-pill:hover { background: rgba(46,204,113,0.07); border-color: var(--border-green); transform: translateY(-2px); }
.prompt-pill .icon { font-size: 1.3rem; flex-shrink: 0; }
.prompt-pill strong { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 3px; }
.prompt-pill span { font-size: 0.76rem; color: var(--muted); }

/* 消息气泡 */
.msg-bubble p { margin-bottom: 12px; line-height: 1.6; }
.msg-bubble p:last-child { margin-bottom: 0; }
.msg-bubble strong { color: var(--green); font-weight: 700; background: rgba(46,204,113,0.1); padding: 0 4px; border-radius: 4px; }
.msg-bubble ul, .msg-bubble ol { margin: 8px 0 16px 20px; padding: 0; }
.msg-bubble li { margin-bottom: 8px; line-height: 1.5; }
.msg-bubble li::marker { color: var(--green); }
.msg-bubble h1, .msg-bubble h2, .msg-bubble h3 { font-size: 1.05rem; font-weight: 700; margin: 16px 0 8px; color: #fff; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 4px; }

.msg-wrap {
    max-width: 1100px; margin: 0 auto 4px;
    padding: 4px 24px; display: flex; gap: 12px; animation: msg-in 0.25s ease;
}
@keyframes msg-in { from { opacity:0; transform: translateY(8px); } to { opacity:1; transform: translateY(0); } }
.msg-wrap.user { flex-direction: row-reverse; }
.msg-avatar { width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; }
.msg-avatar.ai-av { background: linear-gradient(135deg,rgba(46,204,113,0.3),rgba(139,92,246,0.2)); border: 1px solid var(--border-green); }
.msg-avatar.user-av { background: linear-gradient(135deg,var(--green-dark),var(--purple)); font-weight: 700; font-size: 0.72rem; color: white; }
.msg-bubble { max-width: calc(100% - 80px); padding: 12px 16px; border-radius: 16px; font-size: 0.88rem; line-height: 1.65; }
.msg-bubble.ai { background: var(--card); border: 1px solid var(--glass-border); border-top-left-radius: 4px; }
.msg-bubble.user { background: rgba(46,204,113,0.14); border: 1px solid var(--border-green); border-top-right-radius: 4px; color: var(--text); }
.hengai-loading,
.typing-loader {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: linear-gradient(
        120deg,
        rgba(16, 185, 129, 0.08),
        rgba(16, 185, 129, 0.03),
        rgba(16, 185, 129, 0.08)
    );
    background-size: 160% 100%;
    animation: hengaiLoadingDrift 2.6s linear infinite;
}

.hengai-loading .typing-dot,
.typing-loader .typing-dot {
    width: 5px;
    height: 5px;
    background: #10B981;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.95);
    animation: dotPulse 1.4s infinite ease-in-out;
}

.hengai-loading .typing-dot:nth-child(2),
.typing-loader .typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.hengai-loading .typing-dot:nth-child(3),
.typing-loader .typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

@keyframes hengaiLoadingDrift {
    0% {
        background-position: 0% 0;
    }
    100% {
        background-position: 160% 0;
    }
}

/* 输入框：微创手术 - 居中对齐中岛 */
.input-dock {
    padding: 12px 20px 16px;
    background: linear-gradient(to top, rgba(8,11,16,0.98) 70%, transparent);
}
.input-dock-center {
    max-width: 1100px; /* 与聊天气泡完美对齐 */
    margin: 0 auto;
}

/* 输入区上方：语义深链提示（默认隐藏，不主动打断对话） */
.context-oracle-bar {
    display: none;
    align-items: stretch;
    margin-bottom: 6px;
    padding: 4px 0;
    border: none;
    background: transparent;
    box-shadow: none;
}
.context-oracle-bar.is-visible { display: flex; }
.context-oracle-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    flex: 1;
    min-width: 0;
}
.context-oracle-sigil { display: none; }
.context-oracle-label { display: none; }
.context-oracle-chips {
    font-size: 0.68rem;
    color: var(--muted);
    flex: 1;
    min-width: 0;
    opacity: 0.75;
}
.context-oracle-links a {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    padding: 0;
    border: none;
    background: transparent;
}
.context-oracle-links a:hover {
    color: #d4a84b;
    text-decoration: underline;
}
.context-oracle-dismiss { display: none; }

.input-wrapper {
    display: flex; align-items: center; gap: 10px;
    background: rgba(18,22,32,0.9); border: 1px solid var(--glass-border);
    border-radius: 16px; padding: 10px 12px;
}
.input-wrapper:focus-within { border-color: var(--border-green); }
.attach-btn { background: none; border: none; color: var(--muted); cursor: pointer; padding: 4px; display: flex; align-items: center; }
.attach-btn:hover { color: var(--green); }
.chat-attach-preview {
    display: flex; flex-wrap: wrap; gap: 8px; padding: 0 4px 8px; width: 100%;
}
.chat-attach-preview[hidden] { display: none !important; }
.chat-attach-chip {
    position: relative; width: 64px; height: 64px; border-radius: 10px; overflow: hidden;
    border: 1px solid var(--glass-border); background: rgba(0,0,0,.35);
}
.chat-attach-chip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.chat-attach-x {
    position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border: none;
    border-radius: 50%; background: rgba(0,0,0,.65); color: #fff; font-size: 12px;
    line-height: 1; cursor: pointer; padding: 0;
}
.msg-bubble.user .msg-attach-img {
    display: block; max-width: min(280px, 70vw); max-height: 220px; border-radius: 10px;
    margin-top: 8px; border: 1px solid rgba(255,255,255,.12); object-fit: contain; background: #0a0c12;
}
#messageInput { flex: 1; background: none; border: none; outline: none; color: var(--text); font-size: 0.9rem; font-family: inherit; resize: none; height: 24px; max-height: 120px; overflow-y: auto; }
#messageInput::placeholder { color: var(--muted); }
.send-btn { width: 34px; height: 34px; border-radius: 10px; background: var(--green); border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; flex-shrink: 0; }
.send-btn:hover { background: var(--green-dark); transform: scale(1.05); }
.input-footer { text-align: center; font-size: 0.68rem; color: var(--muted); margin-top: 8px; }

/* =========================================================
   模态框 & 抽屉、Widget 样式完全保留原版不变
========================================================= */
/* 全域中心 · 深色玻璃态 Modal（居中） */
.drawer-overlay{
    position:fixed;inset:0;z-index:200;
    background:rgba(4,8,14,0.62);
    backdrop-filter:blur(12px);
    display:flex;align-items:center;justify-content:center;
    padding:20px 16px;
    opacity:0;pointer-events:none;transition:opacity 0.28s ease;
}
.drawer-overlay.open{opacity:1;pointer-events:auto;}
.hub-modal-shell{
    width:min(560px,100%);
    max-height:min(90vh,880px);
    display:flex;flex-direction:column;
    border-radius:18px;overflow:hidden;
    background:rgba(10,14,22,0.88);
    backdrop-filter:blur(24px);
    border:1px solid rgba(255,255,255,0.1);
    box-shadow:0 24px 80px rgba(0,0,0,.52), inset 0 1px 0 rgba(255,255,255,0.06);
}
.hub-modal-topbar{display:flex;align-items:center;justify-content:space-between;padding:16px 18px 14px;border-bottom:1px solid rgba(255,255,255,0.08);flex-shrink:0;}
.hub-modal-title{font-size:1.12rem;font-weight:700;color:#f0f4fc;letter-spacing:0.4px;}
.hub-modal-x{
    width:40px;height:40px;border-radius:12px;border:1px solid rgba(255,255,255,0.12);
    background:rgba(255,255,255,0.06);color:#cbd5e1;font-size:18px;cursor:pointer;
    display:flex;align-items:center;justify-content:center;font-family:inherit;transition:border-color .2s,color .2s;
}
.hub-modal-x:hover{color:#fff;border-color:rgba(201,168,76,0.38);background:rgba(255,255,255,0.1);}
.hub-modal-scroll{overflow-y:auto;overflow-x:hidden;flex:1;min-height:0;padding:20px 18px 24px;-webkit-overflow-scrolling:touch;}
.drawer{position:fixed;top:0;right:0;bottom:0;width:85vw;max-width:1400px;background:rgba(10,13,20,0.97);border-left:1px solid var(--glass-border);z-index:201;overflow-y:auto;transform:translateX(100%);transition:transform 0.35s cubic-bezier(0.4,0,0.2,1);}
.drawer.open{transform:translateX(0);}
.drawer-header{position:sticky;top:0;display:flex;align-items:center;justify-content:space-between;padding:18px 28px;background:rgba(10,13,20,0.95);border-bottom:1px solid var(--glass-border);backdrop-filter:blur(12px);}
.drawer-title{font-size:1rem;font-weight:700;background:linear-gradient(135deg,#fff,var(--green));-webkit-background-clip:text;-webkit-text-fill-color:transparent;}
.drawer-close{width:32px;height:32px;border-radius:9px;background:rgba(255,255,255,0.06);border:1px solid var(--glass-border);color:var(--muted);cursor:pointer;display:flex;align-items:center;justify-content:center;}
.drawer-close:hover{color:var(--danger);}
.drawer-body{padding:24px 28px;display:flex;flex-direction:column;gap:20px;}
.d-card{background:rgba(18,22,32,0.8);border:1px solid var(--glass-border);border-radius:20px;padding:22px 24px;}
.d-card-title{display:flex;align-items:center;gap:9px;font-size:0.72rem;font-weight:700;text-transform:uppercase;color:var(--green);border-left:2px solid var(--green);padding-left:12px;margin-bottom:18px;}
.d-field{margin-bottom:14px;}
.d-label{font-size:0.7rem;text-transform:uppercase;color:var(--muted);margin-bottom:4px;}
.d-val{font-size:0.92rem;font-weight:500;color:var(--text);}
.plan-tag{display:inline-flex;padding:4px 12px;border-radius:40px;font-size:0.76rem;font-weight:700;}
.pt-free{background:rgba(255,255,255,0.07);color:#999;border:1px solid rgba(255,255,255,0.1);}
.pt-pro{background:rgba(139,92,246,0.16);color:#b08aff;border:1px solid rgba(139,92,246,0.32);}
.plan-hero-row{display:flex;justify-content:space-between;margin-bottom:16px;padding-bottom:16px;border-bottom:1px solid var(--glass-border);}
.plan-big-name{font-size:1.3rem;font-weight:700;}
.plan-big-price{font-size:1.8rem;font-weight:800;color:var(--green);line-height:1;}
.quota-block{margin-bottom:16px;}
.quota-row{display:flex;justify-content:space-between;font-size:0.76rem;margin-bottom:6px;}
.quota-track{height:5px;background:rgba(255,255,255,0.07);border-radius:40px;overflow:hidden;}
.quota-fill{height:100%;border-radius:40px;background:linear-gradient(90deg,var(--green),#5de89a);transition:width 0.9s;}
.d-btn-row{display:flex;gap:10px;}
.d-btn{flex:1;display:flex;align-items:center;justify-content:center;gap:7px;padding:9px 16px;border-radius:40px;font-size:0.82rem;font-weight:600;cursor:pointer;transition:all 0.2s;font-family:inherit;}
.d-btn-primary{background:var(--green);color:#080b10;border:none;}
.d-btn-primary:hover{background:var(--green-dark);transform:translateY(-1px);}
.d-btn-ghost{background:transparent;color:var(--danger);border:1px solid rgba(255,82,82,0.3);}
.d-stats-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:20px;}
.d-stat{background:rgba(0,0,0,0.3);border:1px solid var(--glass-border);border-radius:14px;padding:14px 16px;}
.d-stat.hi{border-color:var(--border-green);background:rgba(46,204,113,0.05);}
.d-stat-label{font-size:0.68rem;text-transform:uppercase;color:var(--muted);margin-bottom:6px;}
.d-stat-val{font-size:1.7rem;font-weight:800;color:var(--text);line-height:1;}
.d-chart-wrap{height:160px;margin-top:6px;}
.api-row{display:flex;justify-content:space-between;align-items:center;background:rgba(0,0,0,0.35);border:1px solid var(--glass-border);border-radius:12px;padding:10px 14px;margin-bottom:8px;}
.api-key-txt{font-family:monospace;font-size:0.8rem;color:var(--green);}
.api-btns{display:flex;gap:5px;}
.api-btn{background:rgba(255,255,255,0.05);border:1px solid var(--glass-border);border-radius:7px;padding:5px 9px;color:var(--muted);cursor:pointer;font-size:0.72rem;}
.api-btn:hover{color:var(--green);border-color:var(--border-green);}
.sec-input-group{display:flex;flex-direction:column;gap:6px;margin-bottom:12px;}
.sec-input-group input{background:rgba(0,0,0,0.4);border:1px solid var(--glass-border);border-radius:10px;padding:9px 13px;color:var(--text);outline:none;}
.sec-input-group input:focus{border-color:var(--border-green);}

.modal-overlay{position:fixed;inset:0;z-index:300;background:rgba(0,0,0,0.65);backdrop-filter:blur(6px);display:flex;align-items:center;justify-content:center;padding:16px;box-sizing:border-box;opacity:0;pointer-events:none;transition:opacity 0.25s;}
.modal-overlay.open{opacity:1;pointer-events:auto;}
.modal{position:relative;background:rgba(12,15,22,0.98);border:1px solid var(--glass-border);border-radius:24px;padding:24px 28px;width:420px;max-width:min(92vw,420px);max-height:min(92vh,720px);overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch;transform:scale(0.95) translateY(12px);transition:transform 0.28s cubic-bezier(0.34,1.56,0.64,1);box-sizing:border-box;}
.modal-overlay.open .modal{transform:scale(1) translateY(0);}
.modal-close{position:absolute;top:12px;right:12px;width:30px;height:30px;border-radius:8px;background:rgba(255,255,255,0.06);border:1px solid var(--glass-border);color:var(--muted);cursor:pointer;display:flex;align-items:center;justify-content:center;z-index:2;}
.modal-close:hover{color:var(--danger);}
.modal-title{font-size:1.2rem;font-weight:700;margin-bottom:6px;padding-right:28px;}
.modal-sub{font-size:0.84rem;color:var(--muted);margin-bottom:24px;}
.m-input-group{display:flex;flex-direction:column;gap:6px;margin-bottom:14px;}
.m-input-group input{background:rgba(0,0,0,0.45);border:1px solid var(--glass-border);border-radius:12px;padding:11px 14px;color:var(--text);outline:none;}
.m-btn{width:100%;padding:11px;border-radius:12px;font-size:0.92rem;font-weight:700;cursor:pointer;font-family:inherit;border:none;}
.m-btn-primary{background:var(--green);color:#080b10;margin-bottom:12px;}
.m-btn-primary:hover{background:var(--green-dark);box-shadow:0 6px 20px var(--green-glow);}
.m-switch{font-size:0.82rem;color:var(--muted);text-align:center;}
.m-switch a{color:var(--green);cursor:pointer;text-decoration:none;}
.privacy-row{display:flex;align-items:flex-start;gap:8px;margin-bottom:14px;}
.privacy-row input{accent-color:var(--green);margin-top:2px;}
.privacy-row label{font-size:0.78rem;color:var(--muted);line-height:1.5;}
.compliance-mandatory-row label{font-size:0.76rem;color:var(--ink2,#c8d0e0);}
.compliance-mandatory-row label a{color:var(--green,#10b981);text-decoration:underline;text-underline-offset:2px;}
.compliance-sovereignty-note{font-size:0.68rem;line-height:1.55;color:var(--muted,#6b7a90);margin:-6px 0 14px;padding-left:2px;opacity:.92;}
/* 注册字段较多：压紧间距，弹窗可滚动，避免撑出视口 */
#authModal .modal-sub,#resetPasswordModal .modal-sub{font-size:12px;line-height:1.45;margin-bottom:12px;}
#authModal .m-input-group,#resetPasswordModal .m-input-group{margin-bottom:10px;}
#authModal .m-input-group input,#resetPasswordModal .m-input-group input{padding:9px 12px;}
#authModal .compliance-sovereignty-note{font-size:0.62rem;line-height:1.4;margin:-2px 0 10px;}
#authModal .privacy-row.compliance-mandatory-row{margin-bottom:8px;}
#authModal .privacy-row.compliance-mandatory-row label{font-size:11px;line-height:1.4;}

.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%) translateY(16px);z-index:999;min-width:240px;max-width:420px;padding:11px 20px;border-radius:12px;font-size:0.84rem;font-weight:500;backdrop-filter:blur(12px);opacity:0;pointer-events:none;transition:all 0.28s cubic-bezier(0.34,1.56,0.64,1);}
.toast.show{opacity:1;transform:translateX(-50%) translateY(0);}
.toast-err{background:rgba(255,60,60,0.22);border:1px solid rgba(255,82,82,0.4);color:#ffbcbc;}
.toast-ok{background:rgba(46,204,113,0.18);border:1px solid rgba(46,204,113,0.4);color:#a3ffca;}
.gm-reward-toast{
    position:fixed; top:18px; right:20px; z-index:1300;
    padding:11px 14px; border-radius:999px;
    border:1px solid rgba(46,204,113,0.45);
    background:linear-gradient(135deg, rgba(16,42,24,0.92), rgba(10,22,16,0.92));
    color:#d8ffe7; font-size:12px; font-weight:700;
    box-shadow:0 0 20px rgba(46,204,113,0.35), inset 0 0 12px rgba(46,204,113,0.14);
    animation: gm-toast-in .35s ease, gm-toast-out .35s ease 2.65s forwards;
}
@keyframes gm-toast-in{from{opacity:0;transform:translateY(10px) scale(.96)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes gm-toast-out{from{opacity:1;transform:translateY(0) scale(1)}to{opacity:0;transform:translateY(-8px) scale(.98)}}

.champion-modal-overlay{
    position:fixed; inset:0; z-index:1250;
    display:none; align-items:flex-start; justify-content:center;
    overflow-y:auto; padding:40px 20px;
    background:rgba(4,8,14,0.68); backdrop-filter:blur(8px);
}
.champion-modal-overlay.open{display:flex; animation: champion-fade-in .25s ease;}
/* 星火成就档案 · 全屏深潜 */
.achievement-passport-overlay{
    position:fixed; inset:0; z-index:1400; display:none; flex-direction:column;
    background:linear-gradient(165deg, rgba(6,8,15,0.97) 0%, rgba(4,6,12,0.99) 100%);
    backdrop-filter:blur(12px);
}
.achievement-passport-overlay.open{display:flex;}
.achievement-passport-overlay .ap-close{
    position:fixed; top:16px; right:20px; z-index:1410;
    width:44px; height:44px; border-radius:12px; border:1px solid rgba(255,255,255,0.12);
    background:rgba(255,255,255,0.06); color:#e8edf5; font-size:18px; cursor:pointer;
    display:flex; align-items:center; justify-content:center; transition:background .2s, border-color .2s;
}
.achievement-passport-overlay .ap-close:hover{background:rgba(255,255,255,0.12); border-color:rgba(201,168,76,0.35);}
.achievement-passport-overlay .ap-scroll{
    flex:1; overflow-y:auto; overflow-x:hidden; -webkit-overflow-scrolling:touch;
    padding:64px 16px 40px; overscroll-behavior:contain;
}
.achievement-passport-overlay .ap-inner{max-width:560px; margin:0 auto; display:flex; flex-direction:column; gap:14px; padding-bottom:32px;}
.champion-modal-overlay .champion-modal-card{
    width:min(500px,92vw); border-radius:22px; overflow:hidden;
    background:rgba(10,14,24,0.97); border:1px solid rgba(201,168,76,0.22);
    box-shadow:0 20px 50px rgba(0,0,0,0.45);
    transform:scale(.95); animation: champion-card-in .25s ease forwards;
}
@keyframes champion-fade-in{from{opacity:0}to{opacity:1}}
@keyframes champion-card-in{from{transform:scale(.95);opacity:.7}to{transform:scale(1);opacity:1}}

/* 上下文记忆条与 Widget 卡片 */
.context-memory-bar {
    position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    padding: 10px 24px; background: rgba(8,11,16, 0.9); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    transform: translateY(-100%); opacity: 0; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.context-memory-bar.visible { transform: translateY(0); opacity: 1; }
.memory-label { font-size: 0.75rem; color: var(--muted); }
.context-tag {
    background: rgba(46,204,113,0.1); border: 1px solid var(--border-green);
    color: var(--green); padding: 3px 10px; border-radius: 6px; font-size: 0.72rem; font-weight: 600;
}
.chat-widget {
    margin-top: 14px; padding: 18px; border-radius: 14px;
    background: rgba(12,15,22,0.6); border: 1px solid var(--glass-border);
    max-width: 420px; box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.widget-title { font-size: 0.9rem; font-weight: 700; color: var(--green); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.widget-input {
    width: 100%; padding: 11px 14px; margin-bottom: 12px;
    background: rgba(0,0,0,0.4); border: 1px solid var(--glass-border);
    border-radius: 10px; color: var(--text); outline: none; font-size: 0.85rem;
}
.widget-input:focus { border-color: var(--green); }
.widget-btn {
    width: 100%; padding: 12px; border-radius: 10px;
    background: var(--green); color: #080b10; font-weight: 800; font-size: 0.9rem;
    border: none; cursor: pointer; transition: all 0.2s; font-family: inherit;
}
.widget-btn:hover { background: var(--green-dark); box-shadow: 0 4px 15px var(--green-glow); transform: translateY(-1px); }
.widget-alert { background: rgba(255,82,82,0.08); border-color: rgba(255,82,82,0.3); }
.widget-alert .widget-title { color: var(--danger); }
.alert-amount { font-size: 2rem; font-weight: 800; color: var(--danger); margin: 12px 0; letter-spacing: -1px; }
.glow-active { animation: pulse-glow 1.5s infinite alternate !important; border-color: var(--green) !important; background: rgba(46,204,113,0.08) !important; }
@keyframes pulse-glow { 0% { box-shadow: 0 0 0px rgba(46,204,113,0); } 100% { box-shadow: 0 0 25px rgba(46,204,113,0.35); } }

@media (max-width: 900px) {
    .layout { grid-template-columns: 1fr; }
    .sidebar, .right-panel { display: none; }
    .right-panel { position: fixed !important; top: 0; bottom: 0; right: 0; width: 85% !important; z-index: 200 !important; box-shadow: -10px 0 30px rgba(0,0,0,0.8); }
    .right-panel.open { display: flex; width: 100%; }
}

/* 海报预览模态框 (Z-index 提升至 11000，确保压制全域中心与黑曜石碑) */
.poster-modal-overlay { position:fixed; inset:0; background:rgba(0,0,0,0.9); backdrop-filter:blur(15px); z-index:11000; display:none; flex-direction:column; align-items:center; justify-content:center; opacity:0; transition:opacity 0.4s ease; }
.poster-modal-overlay.show { display:flex; opacity:1; }

/* 1. 海报母体与物理边界 */
.social-poster { width: 340px; height: 600px; border-radius: 16px; position: relative; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 30px 60px rgba(0,0,0,0.9), 0 0 0 1px rgba(255,255,255,0.08); transform: translateY(20px); transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1); background: #02040a; }
.poster-modal-overlay.show .social-poster { transform: translateY(0); }

/* 2. Z-Index = 1：艺术底图与破晓光影层 (The Dawn Horizon) */
.poster-art-layer { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  /* 当有真实图片时，取消下面这行的注释并修改路径 */
  /* background-image: url('./hero-bg-art.png'); background-size: cover; background-position: center; */
  /* 当前：用纯 CSS 徒手渲染 Gemini 风格的破晓地平线与深海绿晕 */
  background:
    radial-gradient(ellipse at 50% 65%, rgba(201, 168, 76, 0.25) 0%, transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(16, 185, 129, 0.2) 0%, transparent 60%),
    linear-gradient(180deg, #02040a 0%, #061210 50%, #02040a 100%);
}
/* 地平线金线 */
.poster-horizon-line { position: absolute; top: 60%; left: 0; width: 100%; height: 1px; background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.6), transparent); box-shadow: 0 0 20px rgba(201, 168, 76, 0.8); z-index: 1; }

/* 3. Z-Index = 2：所有动态数据层 (必须相对定位才能浮在图片上) */
.poster-content-layer { position: relative; z-index: 2; display: flex; flex-direction: column; height: 100%; padding: 32px 24px 24px; }

/* 顶部：双徽标与权威背书 */
.poster-top-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.poster-brand-logo { height: 26px; filter: drop-shadow(0 0 10px rgba(16,185,129,0.3)); }
.poster-auth-tags { display: flex; gap: 8px; border: 1px solid rgba(255,255,255,0.15); padding: 4px 10px; border-radius: 4px; background: rgba(0,0,0,0.3); backdrop-filter: blur(4px); }
.poster-auth-tags span { font-size: 10px; color: #fff; font-family: 'Inter', sans-serif; font-weight: 600; letter-spacing: 1px; }
.poster-accord-title { text-align: center; font-family: monospace; font-size: 9px; color: #c9a84c; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 30px; opacity: 0.9; }

/* 中部：个人荣誉与震撼数据 */
.poster-hero-data { text-align: center; flex: 1; }
.poster-citizen-name { font-size: 12px; color: #e8edf5; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 12px; }
.poster-citizen-name strong { color: #fff; font-size: 14px; font-weight: 600; margin-left: 4px; }
.poster-huge-number { font-size: 52px; font-weight: 900; background: linear-gradient(180deg, #ffffff 0%, #10B981 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; line-height: 1; font-family: 'Inter', sans-serif; filter: drop-shadow(0 10px 30px rgba(16,185,129,0.4)); margin-bottom: 4px; }
.poster-huge-number .decimals { font-size: 28px; background: linear-gradient(180deg, rgba(255,255,255,0.8) 0%, rgba(16,185,129,0.8) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.poster-huge-number .unit { font-size: 16px; color: #10B981; font-weight: 700; letter-spacing: 1px; margin-left: 4px; -webkit-text-fill-color: initial; }
.poster-metric-label { font-size: 9px; color: #8b949e; letter-spacing: 2px; font-family: monospace; margin-bottom: 24px; }

/* 中下部：生命等效 3宫格 (全透明玻璃态，透出底图) */
.poster-life-title { font-size: 10px; color: #c9a84c; text-align: center; letter-spacing: 4px; font-weight: 700; margin-bottom: 12px; text-shadow: 0 2px 4px rgba(0,0,0,0.8); }
.poster-life-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 30px; }
.poster-life-card { background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; padding: 12px 4px; text-align: center; backdrop-filter: blur(8px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.05); }
.poster-life-val { font-size: 13px; font-weight: 800; color: #fff; margin-bottom: 4px; }
.poster-life-desc { font-size: 9px; color: #8b949e; line-height: 1.4; }

/* 底部：宣言与方舟碳盾防伪 */
.poster-bottom-footer { display: flex; justify-content: space-between; align-items: flex-end; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.06); }
.poster-quote-text { font-size: 11px; color: #e8edf5; line-height: 1.7; font-style: italic; font-family: 'Playfair Display', serif; width: 65%; text-shadow: 0 2px 4px rgba(0,0,0,0.8); }
.poster-quote-text strong { color: #10B981; font-weight: 600; font-style: normal; }
.poster-shield-area { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.poster-qr-real { width: 50px; height: 50px; background: #fff; padding: 3px; border-radius: 4px; box-shadow: 0 0 15px rgba(255,255,255,0.2); }
.poster-shield-label { font-size: 8px; color: #c9a84c; font-family: monospace; letter-spacing: 0.5px; display: flex; align-items: center; gap: 4px; text-shadow: 0 2px 4px rgba(0,0,0,0.8); }

/* 全域中心主内容区路由容器 */
.hub-page-container { display: none; width: 100%; height: 100%; animation: fadeIn 0.3s ease; }
.hub-page-container.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* 侧边栏菜单激活状态 */
.sidebar-menu-item { cursor: pointer; transition: all 0.2s; }
.sidebar-menu-item.active { background: rgba(16, 185, 129, 0.1); border-left: 3px solid #10B981; color: #fff; font-weight: 600; }
.sidebar-menu-item.active .menu-dot { color: #10B981; }

/* 强化 GM 钱包点击引导 */
#co2lion-hub-overlay .gm-chip {
    cursor: pointer;
    text-decoration: underline dashed rgba(201,168,76,0.6);
    text-underline-offset: 4px;
    transition: all 0.2s;
}
#co2lion-hub-overlay .gm-chip:hover {
    filter: brightness(1.15);
    box-shadow: 0 0 0 1px rgba(201,168,76,0.35) inset;
}


/* ===== Deep Dive Module: GM Wallet (scoped) ===== */
#page-gm-wallet {
    --night:#06080f;--panel:#0d1220;--p2:#111827;--b:rgba(255,255,255,0.07);--b2:rgba(255,255,255,0.13);
    --ink:#e8edf5;--ink2:#8a95a8;--ink3:#4a5568;--gold:#c9a84c;--gl:#f0d080;--gd:rgba(201,168,76,0.11);
    --green:#3b9e4a;--greenl:#7dd98a;--greend:rgba(59,158,74,0.1);--teal:#1d9e75;--teall:#6dd5b0;--teald:rgba(29,158,117,0.09);--blue:#185fa5;--bluel:#93c5fd;
}
#page-gm-wallet .gmw-topbar{position:sticky;top:0;z-index:5;background:rgba(6,8,15,0.94);backdrop-filter:blur(14px);border-bottom:1px solid var(--b);padding:0 28px;height:50px;display:flex;align-items:center;justify-content:space-between}
#page-gm-wallet .gmw-tl,#page-gm-wallet .gmw-tr{display:flex;align-items:center;gap:10px}
#page-gm-wallet .gmw-tt{font-size:14px;font-weight:500}
#page-gm-wallet .gmw-pill{display:inline-flex;align-items:center;font-size:10px;font-weight:600;padding:2px 8px;border-radius:20px}
#page-gm-wallet .gmw-pl-y{background:var(--gd);color:var(--gl);border:1px solid rgba(201,168,76,0.3)}
#page-gm-wallet .gmw-tb-btn{padding:5px 13px;border-radius:7px;font-size:11.5px;font-weight:500;border:1px solid var(--b2);background:transparent;color:var(--ink);cursor:pointer}
#page-gm-wallet .gmw-tb-btn.gmw-pri{background:var(--gd);border-color:rgba(201,168,76,0.4);color:var(--gl)}
#page-gm-wallet .gmw-page{padding:24px 28px 40px;max-width:1060px}
#page-gm-wallet .wallet-hero{background:var(--panel);border:1px solid rgba(201,168,76,0.28);border-radius:18px;overflow:hidden}
#page-gm-wallet .wh-top{padding:24px 26px 20px;display:flex;align-items:flex-start;gap:20px;background:linear-gradient(160deg,rgba(201,168,76,0.06) 0%,transparent 60%)}
#page-gm-wallet .wh-main{flex:1}
#page-gm-wallet .wh-label{font-size:9.5px;font-weight:700;letter-spacing:2px;text-transform:uppercase;color:var(--gold);margin-bottom:6px}
#page-gm-wallet .wh-balance{font-family:'DM Mono',monospace;font-size:48px;font-weight:700;letter-spacing:-2px;line-height:1;color:var(--gold)}
#page-gm-wallet .wh-unit{font-size:16px;font-weight:400;color:rgba(201,168,76,0.55);margin-left:6px}
#page-gm-wallet .wh-sub{font-size:12px;color:var(--ink2);margin-top:6px;display:flex;align-items:center;gap:12px;flex-wrap:wrap}
#page-gm-wallet .wh-sub-item{display:flex;align-items:center;gap:5px}
#page-gm-wallet .wh-dot{width:6px;height:6px;border-radius:50%}
#page-gm-wallet .wh-right{min-width:260px}
#page-gm-wallet .wh-addr{background:rgba(0,0,0,0.35);border:1px solid var(--b2);border-radius:10px;padding:11px 14px;margin-bottom:10px}
#page-gm-wallet .wh-addr-label{font-size:9.5px;color:var(--ink3);font-weight:600;letter-spacing:.5px;text-transform:uppercase;margin-bottom:4px}
#page-gm-wallet .wh-addr-val{font-family:'DM Mono',monospace;font-size:11px;color:var(--ink2);line-height:1.5}
#page-gm-wallet .wh-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px}
#page-gm-wallet .wa-btn{padding:8px 10px;border-radius:9px;font-size:12px;font-weight:600;border:none;cursor:pointer;font-family:inherit}
#page-gm-wallet .wa-send{background:rgba(29,158,117,0.16);border:1px solid rgba(29,158,117,0.4);color:var(--teall)}
#page-gm-wallet .wa-recv{background:rgba(24,95,165,0.13);border:1px solid rgba(24,95,165,0.35);color:var(--bluel)}
#page-gm-wallet .wa-hist{background:rgba(255,255,255,0.05);border:1px solid var(--b2);color:var(--ink2)}
#page-gm-wallet .wa-earn{background:var(--gd);border:1px solid rgba(201,168,76,0.38);color:var(--gl)}
#page-gm-wallet .wh-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:var(--b);border-top:1px solid var(--b)}
#page-gm-wallet .whs-box{background:rgba(10,14,24,0.9);padding:14px 18px;text-align:center}
#page-gm-wallet .whs-val{font-family:'DM Mono',monospace;font-size:20px;font-weight:700;line-height:1;margin-bottom:3px}
#page-gm-wallet .whs-unit{font-size:10px;font-weight:400;opacity:.6}
#page-gm-wallet .whs-label{font-size:10px;color:var(--ink3)}
#page-gm-wallet .whs-delta{font-size:10px;font-weight:600;margin-top:3px}
#page-gm-wallet .g2{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px}
#page-gm-wallet .card{background:var(--panel);border:1px solid var(--b);border-radius:14px;padding:18px 20px}
#page-gm-wallet .sh{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
#page-gm-wallet .sh-t{font-size:11px;font-weight:700;color:var(--ink3);letter-spacing:1.1px;text-transform:uppercase;display:flex;align-items:center;gap:8px}
#page-gm-wallet .sh-line{flex:1;height:1px;background:var(--b)}
#page-gm-wallet .sh-a{font-size:11px;color:var(--teall);cursor:pointer}
#page-gm-wallet .pill{display:inline-flex;align-items:center;font-size:10px;font-weight:600;padding:2px 8px;border-radius:20px}
#page-gm-wallet .pl-g{background:var(--greend);color:var(--greenl);border:1px solid rgba(59,158,74,0.3)}
#page-gm-wallet .pl-b{background:rgba(24,95,165,0.1);color:var(--bluel);border:1px solid rgba(24,95,165,0.3)}
#page-gm-wallet .pl-y{background:var(--gd);color:var(--gl);border:1px solid rgba(201,168,76,0.3)}
#page-gm-wallet .pl-t{background:rgba(29,158,117,0.09);color:var(--teall);border:1px solid rgba(29,158,117,0.3)}
#page-gm-wallet .earn-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
#page-gm-wallet .earn-card{background:rgba(0,0,0,0.25);border:1px solid var(--b);border-radius:11px;padding:13px 14px;display:flex;flex-direction:column;gap:7px;position:relative}
#page-gm-wallet .earn-card::before{content:'';position:absolute;top:0;left:0;bottom:0;width:3px}
#page-gm-wallet .earn-card.c-g::before{background:var(--green)}
#page-gm-wallet .earn-card.c-b::before{background:var(--bluel)}
#page-gm-wallet .earn-card.c-y::before{background:var(--gold)}
#page-gm-wallet .earn-card.c-t::before{background:var(--teal)}
#page-gm-wallet .ec-head{display:flex;align-items:center;justify-content:space-between}
#page-gm-wallet .ec-title{font-size:12.5px;font-weight:600}
#page-gm-wallet .ec-desc{font-size:11px;color:var(--ink2);line-height:1.55}
#page-gm-wallet .ec-prog{height:4px;background:rgba(255,255,255,0.06);border-radius:2px;overflow:hidden}
#page-gm-wallet .ec-pfill{height:100%}
#page-gm-wallet .mini-txt{font-size:10px;color:var(--ink3)}
#page-gm-wallet .distrib{display:flex;flex-direction:column;gap:9px}
#page-gm-wallet .db-row{display:flex;align-items:center;gap:10px}
#page-gm-wallet .db-label{width:100px;flex-shrink:0}
#page-gm-wallet .db-name{font-size:12px;font-weight:500}
#page-gm-wallet .db-sub{font-size:9.5px;color:var(--ink3)}
#page-gm-wallet .db-bar-track{flex:1;height:8px;background:rgba(255,255,255,0.06);border-radius:4px;overflow:hidden}
#page-gm-wallet .db-bar-fill{height:100%}
#page-gm-wallet .db-val{font-family:'DM Mono',monospace;font-size:12px;font-weight:600;width:80px;text-align:right}
#page-gm-wallet .db-pct{font-size:10.5px;color:var(--ink3);width:32px;text-align:right}
#page-gm-wallet .tx-list{display:flex;flex-direction:column}
#page-gm-wallet .tx-item{display:grid;grid-template-columns:1fr 2fr auto;gap:12px;align-items:center;padding:11px 14px;border-bottom:1px solid rgba(255,255,255,0.04)}
#page-gm-wallet .tx-item:last-child{border-bottom:none}
#page-gm-wallet .tx-title{font-size:12.5px;font-weight:500}
#page-gm-wallet .tx-desc{font-size:10.5px;color:var(--ink2)}
#page-gm-wallet .tx-val{font-size:14px;font-weight:700;font-family:'DM Mono',monospace}
#page-gm-wallet .modal-bg{display:none;position:fixed;inset:0;background:rgba(0,0,0,0.65);z-index:200;align-items:center;justify-content:center}
#page-gm-wallet .modal-bg.open{display:flex}
#page-gm-wallet .modal{background:var(--p2);border:1px solid var(--b2);border-radius:18px;padding:26px 28px;max-width:440px;width:92%;position:relative}
#page-gm-wallet .modal-close{position:absolute;top:14px;right:16px;background:none;border:none;color:var(--ink3);font-size:18px;cursor:pointer}
#page-gm-wallet .modal-title{font-size:15px;font-weight:600;margin-bottom:4px}
#page-gm-wallet .modal-sub{font-size:12px;color:var(--ink2);margin-bottom:20px}
#page-gm-wallet .m-field{display:flex;flex-direction:column;gap:5px;margin-bottom:14px}
#page-gm-wallet .m-label{font-size:11.5px;font-weight:500}
#page-gm-wallet .m-input{background:rgba(0,0,0,0.35);border:1px solid var(--b2);border-radius:9px;padding:10px 13px;color:var(--ink);outline:none}
#page-gm-wallet .m-preview{background:rgba(0,0,0,0.25);border:1px solid var(--b);border-radius:9px;padding:11px 13px;margin-bottom:14px}
#page-gm-wallet .m-prev-row{display:flex;justify-content:space-between;font-size:12px}
#page-gm-wallet .m-prev-label{color:var(--ink2)}
#page-gm-wallet .m-confirm{width:100%;padding:11px;border-radius:10px;font-size:13px;font-weight:600;border:none;background:var(--gd);border:1px solid rgba(201,168,76,0.4);color:var(--gl);cursor:pointer}

/* ===== Deep Dive Module: EU Customs (scoped) ===== */
#page-eu-customs {
    --night:#06080f;--panel:#0d1220;--b:rgba(255,255,255,0.07);--b2:rgba(255,255,255,0.13);
    --ink:#e8edf5;--ink2:#8a95a8;--ink3:#4a5568;--gold:#c9a84c;--greenl:#7dd98a;--teall:#6dd5b0;--bluel:#93c5fd;--blued:rgba(24,95,165,0.1);--blue:#185fa5;--greend:rgba(59,158,74,0.1);
}
#page-eu-customs .euc-topbar{position:sticky;top:0;z-index:5;background:rgba(6,8,15,0.94);backdrop-filter:blur(14px);border-bottom:1px solid var(--b);padding:0 28px;height:50px;display:flex;align-items:center;justify-content:space-between}
#page-eu-customs .euc-tl,#page-eu-customs .euc-tr{display:flex;align-items:center;gap:10px}
#page-eu-customs .euc-tt{font-size:14px;font-weight:500}
#page-eu-customs .euc-pill{display:inline-flex;align-items:center;font-size:10px;font-weight:600;padding:2px 8px;border-radius:20px}
#page-eu-customs .euc-pl-g{background:var(--greend);color:var(--greenl);border:1px solid rgba(59,158,74,0.3)}
#page-eu-customs .euc-pl-b{background:var(--blued);color:var(--bluel);border:1px solid rgba(24,95,165,0.3)}
#page-eu-customs .euc-tb-btn{padding:5px 13px;border-radius:7px;font-size:11.5px;font-weight:500;border:1px solid var(--b2);background:transparent;color:var(--ink);cursor:pointer}
#page-eu-customs .euc-tb-btn.euc-pri{background:var(--blued);border-color:rgba(24,95,165,0.45);color:var(--bluel)}
#page-eu-customs .euc-page{padding:24px 28px 40px;max-width:1060px}
#page-eu-customs .conn-hero{background:var(--panel);border:1px solid rgba(24,95,165,0.3);border-radius:16px;overflow:hidden}
#page-eu-customs .ch-inner{padding:20px 24px;background:linear-gradient(135deg,rgba(24,95,165,0.07) 0%,transparent 60%)}
#page-eu-customs .ch-ey{font-size:9.5px;font-weight:700;letter-spacing:2px;text-transform:uppercase;color:var(--bluel);margin-bottom:8px}
#page-eu-customs .ch-title{font-size:18px;font-weight:600;color:var(--ink);margin-bottom:6px}
#page-eu-customs .ch-sub{font-size:12px;color:var(--ink2);line-height:1.7}
#page-eu-customs .status-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:var(--b);border-top:1px solid var(--b)}
#page-eu-customs .ss-box{background:rgba(8,12,22,0.95);padding:13px 16px;text-align:center}
#page-eu-customs .ss-val{font-family:'DM Mono',monospace;font-size:18px;font-weight:700;line-height:1;margin-bottom:3px}
#page-eu-customs .ss-label{font-size:10px;color:var(--ink3)}
#page-eu-customs .ss-sub{font-size:9.5px;font-weight:600;margin-top:3px}
#page-eu-customs .g2{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px}
#page-eu-customs .card{background:var(--panel);border:1px solid var(--b);border-radius:14px;padding:18px 20px}
#page-eu-customs .sh{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
#page-eu-customs .sh-t{font-size:11px;font-weight:700;color:var(--ink3);letter-spacing:1.1px;text-transform:uppercase;display:flex;align-items:center;gap:8px}
#page-eu-customs .sh-line{flex:1;height:1px;background:var(--b)}
#page-eu-customs .sh-a{font-size:11px;color:var(--teall);cursor:pointer}
#page-eu-customs .decl-table{width:100%;border-collapse:collapse}
#page-eu-customs .decl-table th{font-size:10px;color:var(--ink3);font-weight:600;text-transform:uppercase;padding:8px 12px;border-bottom:1px solid var(--b);text-align:left}
#page-eu-customs .decl-table td{padding:11px 12px;border-bottom:1px solid rgba(255,255,255,0.04);font-size:12.5px}
#page-eu-customs .decl-table tr:last-child td{border-bottom:none}
#page-eu-customs .status-badge{display:inline-flex;align-items:center;font-size:10.5px;font-weight:600;padding:3px 9px;border-radius:20px}
#page-eu-customs .sb-accepted{background:var(--greend);color:var(--greenl);border:1px solid rgba(59,158,74,0.3)}
#page-eu-customs .sb-draft{background:rgba(255,255,255,0.05);color:var(--ink2);border:1px solid var(--b)}
#page-eu-customs .wizard-steps{display:flex;align-items:center;gap:0;margin-bottom:20px}
#page-eu-customs .ws-item{display:flex;align-items:center;flex:1}
#page-eu-customs .ws-dot{width:26px;height:26px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700}
#page-eu-customs .ws-done{background:var(--greend);border:1.5px solid var(--green);color:var(--greenl)}
#page-eu-customs .ws-active{background:var(--blued);border:1.5px solid var(--bluel);color:var(--bluel)}
#page-eu-customs .ws-lock{background:rgba(255,255,255,0.03);border:1.5px solid var(--b2);color:var(--ink3)}
#page-eu-customs .ws-line{flex:1;height:1px;background:var(--b)}
#page-eu-customs .ws-line.done{background:rgba(59,158,74,0.4)}
#page-eu-customs .f-group{display:flex;flex-direction:column;gap:5px;margin-bottom:12px}
#page-eu-customs .f-label{font-size:11.5px;font-weight:500}
#page-eu-customs .f-input{background:rgba(0,0,0,0.3);border:1px solid var(--b2);border-radius:9px;padding:9px 12px;color:var(--ink);outline:none}
#page-eu-customs .ins{padding:11px 14px;border-radius:9px;font-size:11.5px;line-height:1.75;margin-bottom:14px}
#page-eu-customs .ins-g{background:var(--greend);border:1px solid rgba(59,158,74,0.2);color:var(--greenl)}
#page-eu-customs .submit-btn{width:100%;padding:13px;border-radius:11px;font-size:14px;font-weight:600;border:none;cursor:pointer;background:linear-gradient(135deg,var(--blue),rgba(24,95,165,0.7));color:#fff}

/* ===== Deep Dive Module: DLD Credit (scoped) ===== */
#page-dld-credit {
    --night:#06080f;--panel:#0d1220;--b:rgba(255,255,255,0.07);--b2:rgba(255,255,255,0.13);
    --ink:#e8edf5;--ink2:#8a95a8;--ink3:#4a5568;--gold:#c9a84c;--greenl:#7dd98a;--teall:#6dd5b0;--bluel:#93c5fd;--greend:rgba(59,158,74,0.1);--gd:rgba(201,168,76,0.11);
}
#page-dld-credit .dld-topbar{position:sticky;top:0;z-index:5;background:rgba(6,8,15,0.94);backdrop-filter:blur(14px);border-bottom:1px solid var(--b);padding:0 28px;height:50px;display:flex;align-items:center;justify-content:space-between}
#page-dld-credit .dld-tl,#page-dld-credit .dld-tr{display:flex;align-items:center;gap:10px}
#page-dld-credit .dld-tt{font-size:14px;font-weight:500}
#page-dld-credit .dld-pill{display:inline-flex;align-items:center;font-size:10px;font-weight:600;padding:2px 8px;border-radius:20px}
#page-dld-credit .dld-pl-g{background:var(--greend);color:var(--greenl);border:1px solid rgba(59,158,74,0.3)}
#page-dld-credit .dld-pl-y{background:var(--gd);color:#f0d080;border:1px solid rgba(201,168,76,0.3)}
#page-dld-credit .dld-tb-btn{padding:5px 13px;border-radius:7px;font-size:11.5px;font-weight:500;border:1px solid var(--b2);background:transparent;color:var(--ink);cursor:pointer}
#page-dld-credit .dld-tb-btn.dld-pri{background:var(--greend);border-color:rgba(59,158,74,0.45);color:var(--greenl)}
#page-dld-credit .dld-page{padding:24px 28px 40px;max-width:1060px}
#page-dld-credit .asset-hero{background:var(--panel);border:1px solid rgba(59,158,74,0.28);border-radius:16px;overflow:hidden}
#page-dld-credit .ah-inner{padding:22px 26px;background:linear-gradient(135deg,rgba(59,158,74,0.07) 0%,transparent 60%)}
#page-dld-credit .ah-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:var(--b);border-top:1px solid var(--b)}
#page-dld-credit .ahk{background:rgba(8,12,22,0.95);padding:13px 16px;text-align:center}
#page-dld-credit .ahk-v{font-family:'DM Mono',monospace;font-size:19px;font-weight:700;line-height:1;margin-bottom:3px}
#page-dld-credit .ahk-l{font-size:10px;color:var(--ink3)}
#page-dld-credit .ahk-s{font-size:9.5px;font-weight:600;margin-top:3px}
#page-dld-credit .g2{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px}
#page-dld-credit .card{background:var(--panel);border:1px solid var(--b);border-radius:14px;padding:18px 20px}
#page-dld-credit .sh{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
#page-dld-credit .sh-t{font-size:11px;font-weight:700;color:var(--ink3);letter-spacing:1.1px;text-transform:uppercase;display:flex;align-items:center;gap:8px}
#page-dld-credit .sh-line{flex:1;height:1px;background:var(--b)}
#page-dld-credit .credit-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:16px}
#page-dld-credit .credit-card{border-radius:13px;padding:16px 16px;border:1px solid;position:relative;overflow:hidden}
#page-dld-credit .cc-green{background:rgba(59,158,74,0.07);border-color:rgba(59,158,74,0.3)}
#page-dld-credit .cc-blue{background:rgba(24,95,165,0.07);border-color:rgba(24,95,165,0.28)}
#page-dld-credit .cc-teal{background:rgba(29,158,117,0.07);border-color:rgba(29,158,117,0.28)}
#page-dld-credit .cc-tag{font-size:9px;font-weight:700;letter-spacing:1.5px;text-transform:uppercase;margin-bottom:8px;color:var(--ink2)}
#page-dld-credit .cc-val{font-family:'DM Mono',monospace;font-size:26px;font-weight:700;line-height:1;margin-bottom:3px}
#page-dld-credit .cc-unit{font-size:11px;font-weight:400;color:var(--ink2)}
#page-dld-credit .cc-label{font-size:11px;margin-bottom:10px}
#page-dld-credit .cc-sub{font-size:10px;color:var(--ink2)}
#page-dld-credit .asset-table{width:100%;border-collapse:collapse}
#page-dld-credit .asset-table th{font-size:10px;color:var(--ink3);font-weight:600;text-transform:uppercase;padding:8px 12px;border-bottom:1px solid var(--b);text-align:left}
#page-dld-credit .asset-table td{padding:11px 12px;border-bottom:1px solid rgba(255,255,255,0.04);font-size:12.5px}
#page-dld-credit .asset-table tr:last-child td{border-bottom:none}
#page-dld-credit .pill{display:inline-flex;align-items:center;font-size:10px;font-weight:600;padding:2px 8px;border-radius:20px}
#page-dld-credit .pl-g{background:var(--greend);color:var(--greenl);border:1px solid rgba(59,158,74,0.3)}
#page-dld-credit .pl-y{background:var(--gd);color:#f0d080;border:1px solid rgba(201,168,76,0.3)}
#page-dld-credit .apply-card{background:var(--greend);border:1px solid rgba(59,158,74,0.25);border-radius:14px;padding:18px 20px}
#page-dld-credit .f-group{display:flex;flex-direction:column;gap:5px;margin-bottom:11px}
#page-dld-credit .f-label{font-size:11.5px;font-weight:500}
#page-dld-credit .f-input,#page-dld-credit .f-select{background:rgba(0,0,0,0.3);border:1px solid var(--b2);border-radius:9px;padding:9px 12px;color:var(--ink);outline:none}
#page-dld-credit .apply-btn{width:100%;padding:12px;border-radius:10px;font-size:13px;font-weight:600;border:1px solid rgba(59,158,74,0.5);cursor:pointer;background:rgba(59,158,74,0.2);color:var(--greenl)}

/* 强制解除弹窗形态，回归页面流 */
#page-eu-customs > div, #page-dld-credit > div, #page-gm-wallet > div {
    position: relative !important;
    inset: auto !important;
    z-index: 1 !important;
    background: transparent !important;
    backdrop-filter: none !important;
    width: 100% !important;
    height: 100% !important;
    display: flex;
    flex-direction: column;
    padding: 20px;
    transform: none !important;
}

/* ===== CBAM 测算工具（隔离） ===== */
#page-calc .cbam-content { padding: 22px 28px 60px; max-width: 960px; }
#page-calc .cbam-step-head { display:flex; align-items:center; gap:8px; margin-bottom:18px; }
#page-calc .cbam-step-head .sh-item { display:flex; align-items:center; gap:6px; }
#page-calc .cbam-step-head .sh-dot { width:26px; height:26px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:11px; font-weight:700; }
#page-calc .cbam-step-head .sh-active { background: rgba(24,95,165,0.12); border:1.5px solid #93c5fd; color:#93c5fd; }
#page-calc .cbam-step-head .sh-lock { background: rgba(255,255,255,0.03); border:1.5px solid rgba(255,255,255,0.13); color:#4a5568; }
#page-calc .cbam-step-head .sh-label { font-size:10px; color:#7a8494; }
#page-calc .cbam-step-head .sh-label.active { color:#93c5fd; }
#page-calc .cbam-step-head .sh-line { flex:1; height:1px; background:rgba(255,255,255,0.07); }
#page-calc .cbam-insight { padding:11px 14px; border-radius:9px; margin-bottom:14px; background:rgba(29,158,117,0.1); border:1px solid rgba(29,158,117,0.2); color:#6dd5b0; font-size:11.5px; line-height:1.75; }
#page-calc .cbam-g2 { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:16px; }
#page-calc .cbam-card { background:#0d1220; border:1px solid rgba(255,255,255,0.07); border-radius:14px; padding:18px 20px; }
#page-calc .cbam-card-title { font-size:11px; font-weight:600; color:#4a5568; letter-spacing:1.1px; text-transform:uppercase; margin-bottom:14px; }
#page-calc .cbam-field { display:flex; flex-direction:column; gap:6px; margin-bottom:12px; }
#page-calc .cbam-field label { font-size:12px; color:#e8edf5; }
#page-calc .cbam-field input, #page-calc .cbam-field select { width:100%; background:rgba(0,0,0,0.35); border:1px solid rgba(255,255,255,0.13); border-radius:9px; padding:10px 13px; color:#e8edf5; outline:none; }
#page-calc .cbam-conf { margin-top:6px; font-size:10.5px; color:#fcd34d; }
#page-calc .cbam-actions { display:flex; justify-content:flex-end; margin-top:12px; }
#page-calc .cbam-btn { padding:11px 32px; font-size:13px; border:none; border-radius:11px; background:linear-gradient(135deg,#1d9e75,#3b9e4a); color:#fff; cursor:pointer; }

/* ===== 法规知识库 + 算力表盘（隔离） ===== */
#page-knowledge .knowledge-content { padding: 22px 28px 60px; max-width: 1100px; }
#page-knowledge .fuel-gauge-panel { position:sticky; top:0; z-index:3; background:#0d1220; border:1px solid rgba(255,255,255,0.07); border-radius:14px; padding:16px 18px; margin-bottom:16px; }
#page-knowledge .fg-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; }
#page-knowledge .fg-title { font-size:13px; font-weight:600; color:#e8edf5; }
#page-knowledge .fg-sub { font-size:10px; color:#8a95a8; }
#page-knowledge .fg-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
#page-knowledge .fg-item { background:rgba(0,0,0,0.22); border:1px solid rgba(255,255,255,0.07); border-radius:10px; padding:10px 12px; }
#page-knowledge .fg-name { font-size:10.5px; color:#8a95a8; margin-bottom:3px; }
#page-knowledge .fg-val { font-size:12px; font-weight:600; color:#e8edf5; margin-bottom:6px; }
#page-knowledge .fg-note { font-size:10px; color:#6dd5b0; }
#page-knowledge .fg-bar { height:5px; border-radius:3px; background:rgba(255,255,255,0.06); overflow:hidden; }
#page-knowledge .fg-bar span { display:block; height:100%; background:#1d9e75; border-radius:3px; }
#page-knowledge .knowledge-search { display:flex; gap:10px; align-items:center; margin-bottom:14px; }
#page-knowledge .knowledge-search input { flex:1; background:#0d1220; border:1px solid rgba(255,255,255,0.13); border-radius:12px; padding:10px 14px; color:#e8edf5; outline:none; }
#page-knowledge .knowledge-search button { padding:9px 12px; border-radius:8px; border:1px solid rgba(29,158,117,0.4); background:rgba(29,158,117,0.1); color:#6dd5b0; cursor:pointer; }
#page-knowledge .knowledge-tabs { display:flex; gap:6px; flex-wrap:wrap; margin-bottom:14px; }
#page-knowledge .knowledge-tabs span { padding:5px 13px; border-radius:20px; font-size:11.5px; border:1px solid rgba(255,255,255,0.07); color:#8a95a8; background:rgba(255,255,255,0.04); }
#page-knowledge .knowledge-tabs span.active { color:#6dd5b0; border-color:rgba(29,158,117,0.4); background:rgba(29,158,117,0.1); }
#page-knowledge .knowledge-alert { background:rgba(226,75,74,0.1); border:1px solid rgba(226,75,74,0.28); border-radius:12px; padding:12px 16px; margin-bottom:14px; color:#fca5a5; }
#page-knowledge .knowledge-alert p { margin-top:4px; font-size:11.5px; color:rgba(252,165,165,0.75); }
#page-knowledge .knowledge-list { display:flex; flex-direction:column; gap:10px; }
#page-knowledge .k-card { background:#0d1220; border:1px solid rgba(255,255,255,0.07); border-left:3px solid rgba(255,255,255,0.2); border-radius:12px; padding:14px 16px; }
#page-knowledge .k-card.relevant { border-left-color:#1d9e75; }
#page-knowledge .k-title { font-size:13px; font-weight:600; color:#e8edf5; margin-bottom:6px; }
#page-knowledge .k-impact { font-size:11.5px; line-height:1.7; color:#8a95a8; }

/* ═══════════════════════════════════════════════════════════
   工业原厂 · 因子精算战情室 (#hi-suite) — 模块隔离 · 全域配色
═══════════════════════════════════════════════════════════ */
html:has(#hi-suite.hi-warroom) body {
    overflow: auto;
    background: var(--bg0, #06080f);
}
html[data-embed="1"]:has(#hi-suite) body {
    overflow: auto;
    background: var(--bg0, #06080f);
}
html[data-embed="1"] #hi-suite.hi-warroom {
    overflow-y: auto;
    min-height: 100%;
    height: 100%;
}
/* embed 顶栏隐藏 · main-pad → hi-hub-align.css */

#hi-suite.hi-warroom {
    min-height: 100vh;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--bg0);
    color: var(--ink);
    font-family: 'Noto Sans SC', 'PingFang SC', system-ui, sans-serif;
    font-size: 13px;
    line-height: 1.55;
}
#hi-suite * { box-sizing: border-box; }
#hi-suite .hi-glass {
    background: var(--bg3);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    position: relative;
    border-radius: 14px;
}
#hi-suite .hi-glass::before {
    content: '';
    position: absolute;
    inset: 0;
    /* 轻量顶光，避免战情室绿雾与全域卡片气质冲突 */
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0%, transparent 42%);
    pointer-events: none;
    border-radius: inherit;
}
#hi-suite .hi-num-gold { color: var(--gold-l); }
#hi-suite .gold { color: var(--gold-l); }
#hi-suite .green { color: var(--green-l); }
#hi-suite .warn { color: var(--gold); }

#hi-suite .hi-topbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    margin: 10px 14px 0;
    flex-shrink: 0;
    z-index: 2;
}
#hi-suite .hi-context-trail {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin: 8px 14px 0;
    padding: 8px 14px;
    flex-shrink: 0;
    z-index: 2;
    font-size: 11.5px;
}
#hi-suite .hi-context-trail[hidden] { display: none !important; }
#hi-suite .hi-ctx-back {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: var(--green-l);
    border-radius: 8px;
    padding: 5px 12px;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
#hi-suite .hi-ctx-back:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: var(--green-l);
}
#hi-suite .hi-ctx-arrow { color: var(--ink3); font-size: 10px; }
#hi-suite .hi-ctx-here { color: var(--gold-l); font-weight: 600; }
#hi-suite .hi-ctx-hint { color: var(--ink3); font-size: 10.5px; margin-left: auto; }
html[data-embed="1"] #hi-suite .hi-ctx-hint { display: none; }
#hi-suite .hi-brand { display: flex; align-items: center; gap: 10px; position: relative; z-index: 1; }
#hi-suite .hi-enterprise-mark {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 8px;
    background: rgba(16, 185, 129, 0.16);
    border: none;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    z-index: 2;
    isolation: isolate;
}
#hi-suite .hi-enterprise-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
#hi-suite .hi-enterprise-logo-fb {
    font-size: 14px;
    font-weight: 700;
    color: var(--teal-l);
    letter-spacing: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
#hi-suite .hi-brand-title { font-size: 14px; font-weight: 700; color: var(--ink); }
#hi-suite .hi-brand-en { font-size: 9px; color: var(--ink3); letter-spacing: 0.6px; margin-top: 2px; }
#hi-suite .hi-tag-war {
    font-size: 10px;
    padding: 2px 8px;
    margin-left: 6px;
    border-radius: 6px;
    background: var(--gold-d);
    border: 1px solid var(--gold-b);
    color: var(--gold-l);
    font-weight: 600;
}
#hi-suite .hi-sovereign-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 20px;
    background: var(--green-d);
    border: 1px solid var(--green-b);
    font-size: 11px;
    color: var(--green-l);
    position: relative;
    z-index: 1;
}
#hi-suite .hi-pulse-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
    animation: hiPulse 1.6s ease-in-out infinite;
}
@keyframes hiPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}
#hi-suite .hi-local-calc { color: var(--ink2); font-size: 10px; }
#hi-suite .hi-sovereignty-lamp {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
    white-space: nowrap;
}
#hi-suite .hi-lamp-red {
    background: var(--red-d);
    border: 1px solid var(--red-b);
    color: var(--red-l);
}
#hi-suite .hi-lamp-amber {
    background: var(--gold-d);
    border: 1px solid var(--gold-b);
    color: var(--gold-l);
}
#hi-suite .hi-lamp-green {
    background: var(--green-d);
    border: 1px solid var(--green-b);
    color: var(--green-l);
}
#hi-suite .hi-claim-gate {
    margin: 20px auto;
    max-width: 820px;
    padding: 36px 40px 40px;
    border-radius: 16px;
    border: 1px solid var(--gold-b);
    box-shadow: 0 0 28px rgba(201, 168, 76, 0.12);
}
#hi-suite .hi-claim-preview-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 16px;
    margin: 0 0 14px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(201, 168, 76, 0.35);
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.1), rgba(59, 130, 246, 0.06));
}
#hi-suite .hi-cpb-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--gold-l);
    margin-bottom: 4px;
}
#hi-suite .hi-cpb-sub {
    font-size: 12px;
    color: var(--ink2);
    line-height: 1.6;
    max-width: 640px;
}
#hi-suite .hi-claim-wizard-box {
    max-width: 560px;
    max-height: min(90vh, 820px);
    overflow-y: auto;
    padding: 28px 26px 24px;
    position: relative;
    text-align: left;
}
#hi-suite .hi-claim-wizard-steps {
    font-size: 11px;
    color: var(--teal-l);
    margin: 0 0 10px;
    letter-spacing: 0.2px;
}
#hi-suite .hi-claim-wizard-box .hi-claim-inner {
    max-width: 100%;
    margin: 0;
    text-align: left;
}
#hi-suite .hi-body {
    position: relative;
}
#hi-suite .hi-calc-deferred-lock {
    position: absolute;
    inset: 0;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(6, 8, 15, 0.78);
    backdrop-filter: blur(3px);
}
#hi-suite .hi-calc-deferred-inner {
    max-width: 420px;
    padding: 22px 20px;
    text-align: center;
    border: 1px solid var(--border);
}
#hi-suite .hi-calc-deferred-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 8px;
}
#hi-suite .hi-calc-deferred-sub {
    font-size: 12px;
    color: var(--ink2);
    line-height: 1.65;
    margin-bottom: 14px;
}
#hi-suite .hi-eb-action.hi-eb-action-click {
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}
#hi-suite.hi-mode-claim .hi-claim-gate {
    display: none !important;
}
#hi-suite .hi-claim-inner { max-width: 100%; margin: 0 auto; text-align: center; }
#hi-suite .hi-claim-help {
    margin: 0 0 22px;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.28);
    text-align: left;
}
#hi-suite .hi-claim-help summary {
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: var(--blue-l);
    list-style: none;
}
#hi-suite .hi-claim-help summary::-webkit-details-marker { display: none; }
#hi-suite .hi-claim-help-body {
    margin-top: 12px;
    font-size: 14px;
    color: var(--ink2);
    line-height: 1.65;
}
#hi-suite .hi-claim-help-body ul { margin: 8px 0; padding-left: 20px; }
#hi-suite .hi-claim-help-body li { margin-bottom: 6px; }
#hi-suite .hi-claim-help-note {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(201, 168, 76, 0.08);
    border: 1px dashed var(--gold-b);
    color: var(--ink3);
    font-size: 13px;
}
#hi-suite .hi-claim-template {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px dashed var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--blue-l);
    font-size: 14px;
    cursor: pointer;
}
#hi-suite .hi-claim-template:hover { border-color: var(--blue-l); }
#hi-suite .hi-claim-template-pre {
    margin: 12px 0;
    padding: 14px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border);
    font-family: 'SimSun', serif;
    font-size: 13px;
    line-height: 1.65;
    color: var(--ink2);
    white-space: pre-wrap;
    max-height: 320px;
    overflow: auto;
    text-align: left;
}
#hi-suite .hi-claim-template-foot {
    font-size: 13px;
    color: var(--ink3);
    line-height: 1.5;
    text-align: left;
}
#hi-suite .hi-claim-seal {
    font-family: 'DM Mono', monospace;
    font-size: 13px;
    letter-spacing: 4px;
    color: var(--gold-l);
    opacity: 0.7;
    margin-bottom: 10px;
}
#hi-suite .hi-claim-title { font-size: 26px; color: var(--gold-l); margin: 0 0 12px; font-weight: 700; }
#hi-suite .hi-claim-desc { font-size: 15px; color: var(--ink2); line-height: 1.65; margin: 0 0 24px; }
#hi-suite .hi-claim-form { text-align: left; display: flex; flex-direction: column; gap: 18px; }
#hi-suite .hi-claim-field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--ink2); }
#hi-suite .hi-claim-field > span:first-child {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
}
#hi-suite .hi-claim-inp {
    width: 100%;
    max-width: none;
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.35);
    color: var(--ink);
    font: inherit;
    font-size: 16px;
    font-family: inherit;
    text-align: left;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}
#hi-suite .hi-claim-inp:focus {
    outline: none;
    border-color: var(--gold-b);
    box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.2);
    background: rgba(0, 0, 0, 0.45);
}
#hi-suite .hi-claim-inp::placeholder { color: var(--ink3); font-size: 15px; }
#hi-suite .hi-claim-file {
    font-size: 14px;
    color: var(--ink2);
    padding: 12px;
    border: 1px dashed var(--border);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
}
#hi-suite .hi-claim-file-hint { font-size: 13px; color: var(--ink3); line-height: 1.5; }
#hi-suite .hi-claim-submit {
    width: 100%;
    margin-top: 6px;
    padding: 15px 18px;
    font-size: 16px;
    font-weight: 600;
}
#hi-suite .hi-pending-banner {
    margin: 12px 14px 0;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid var(--gold-b);
    background: var(--gold-d);
    font-size: 14px;
    color: var(--gold-l);
    line-height: 1.55;
    text-align: center;
}
#hi-suite .hi-enterprise-mark-btn {
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s, transform 0.15s;
}
#hi-suite .hi-enterprise-mark-btn:hover {
    background: rgba(16, 185, 129, 0.24);
    transform: scale(1.03);
}
#hi-suite .hi-claim-confirm-lead {
    font-size: 15px;
    color: var(--ink2);
    line-height: 1.65;
    margin: 0 0 16px;
    text-align: left;
}
#hi-suite .hi-claim-confirm-dl {
    margin: 0 0 16px;
    text-align: left;
    font-size: 14px;
}
#hi-suite .hi-claim-confirm-dl > div {
    display: flex;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}
#hi-suite .hi-claim-confirm-dl dt {
    flex: 0 0 140px;
    color: var(--ink3);
    font-weight: 600;
    font-size: 14px;
}
#hi-suite .hi-claim-confirm-dl dd {
    margin: 0;
    color: var(--ink);
    font-size: 15px;
    word-break: break-all;
}
#hi-suite .hi-claim-confirm-preview {
    margin-bottom: 12px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    max-height: 180px;
}
#hi-suite .hi-claim-confirm-preview img {
    width: 100%;
    max-height: 180px;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.25);
}
#hi-suite .hi-claim-confirm-check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 14px;
    color: var(--ink2);
    line-height: 1.55;
    text-align: left;
    margin-bottom: 16px;
    cursor: pointer;
}
#hi-suite .hi-claim-confirm-check input { margin-top: 3px; width: 16px; height: 16px; flex-shrink: 0; }
#hi-suite .hi-claim-success-icon { font-size: 36px; margin-bottom: 8px; }
#hi-suite .hi-claim-success-steps {
    text-align: left;
    font-size: 11px;
    color: var(--ink2);
    line-height: 1.65;
    margin: 12px 0;
    padding-left: 18px;
}
#hi-suite .hi-claim-success-note {
    font-size: 10px;
    color: var(--ink3);
    text-align: left;
    line-height: 1.45;
}
#hi-suite .hi-dossier-status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 14px;
}
#hi-suite .hi-dossier-pending { background: var(--gold-d); color: var(--gold-l); border: 1px solid var(--gold-b); }
#hi-suite .hi-dossier-approved { background: var(--green-d); color: var(--green-l); border: 1px solid var(--green-b); }
#hi-suite .hi-dossier-rejected { background: var(--red-d); color: var(--red-l); border: 1px solid var(--red-b); }
#hi-suite .hi-dossier-none { background: var(--red-d); color: var(--red-l); border: 1px solid var(--red-b); }
#hi-suite .hi-dossier-actions { flex-wrap: wrap; }
#hi-suite .hi-audit-log {
    margin-top: 4px;
    padding: 10px 10px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid var(--border);
}
#hi-suite .hi-audit-head {
    font-size: 11px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 8px;
}
#hi-suite .hi-audit-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
#hi-suite .hi-audit-item {
    font-size: 10px;
    line-height: 1.45;
    padding: 6px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--border);
}
#hi-suite .hi-audit-item.hi-audit-ok { border-left-color: var(--green); }
#hi-suite .hi-audit-item.hi-audit-wait { border-left-color: var(--gold-l); }
#hi-suite .hi-audit-item.hi-audit-idle { border-left-color: var(--ink3); opacity: 0.85; }
#hi-suite .hi-audit-ts {
    display: block;
    font-family: 'DM Mono', monospace;
    color: var(--ink3);
    font-size: 9px;
    margin-bottom: 2px;
}
#hi-suite .hi-audit-txt { color: var(--ink2); }
#hi-suite .hi-delta-idle { opacity: 0.55; }
#hi-suite .hi-phase-tag {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--bg4);
    color: var(--ink2);
}
#hi-suite .hi-topbar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    position: relative;
    z-index: 1;
}
#hi-suite .hi-bell {
    position: relative;
    background: var(--bg4);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 6px 10px;
    color: var(--ink2);
    cursor: pointer;
}
#hi-suite .hi-bell-badge {
    position: absolute;
    top: -4px; right: -4px;
    background: var(--red);
    color: #fff;
    font-size: 9px;
    padding: 1px 5px;
    border-radius: 8px;
}
#hi-suite .hi-topbar-user { display: flex; align-items: center; gap: 8px; }
#hi-suite .hi-uavatar {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--green-d);
    border: 1px solid var(--green-b);
    color: var(--green-l);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 13px;
}
#hi-suite .hi-uname { font-size: 12px; font-weight: 600; color: var(--ink); }
#hi-suite .hi-urole { font-size: 10px; color: var(--ink3); margin-top: 1px; }

#hi-suite .hi-resonance {
    flex: 0 0 min(36vh, 272px);
    margin: 10px 14px 0;
    padding: 14px 16px 16px;
    overflow: hidden;
    border-top: 2px solid var(--blue-b);
    box-shadow:
        0 0 0 1px var(--border),
        0 0 28px var(--blue-d),
        inset 0 1px 0 rgba(147, 197, 253, 0.12);
}
#hi-suite .hi-res-header {
    font-size: 12px;
    color: var(--ink2);
    margin-bottom: 8px;
    line-height: 1.55;
    position: relative;
    z-index: 1;
}
#hi-suite .hi-res-header-count {
    color: var(--gold-l);
    font-family: 'DM Mono', monospace;
    font-size: 15px;
}
#hi-suite .hi-res-section-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--blue-l);
    letter-spacing: 1.2px;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

#hi-suite .hi-influence {
    flex-shrink: 0;
    margin: 8px 14px 0;
    padding: 12px 14px 10px;
    border-top: 2px solid rgba(16, 185, 129, 0.35);
    box-shadow: 0 0 0 1px var(--border);
    overflow: hidden;
}
#hi-suite .hi-inf-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 12px;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}
#hi-suite .hi-btn-policy-hint,
#hi-suite .hi-btn-leader-audit {
    flex: 0 0 auto;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: box-shadow 0.15s, transform 0.12s;
}
#hi-suite .hi-btn-policy-hint.hi-btn-policy-hint-polish {
    border: 1px solid rgba(16, 185, 129, 0.35);
    background: rgba(16, 185, 129, 0.1);
    color: var(--teal-l);
}
#hi-suite .hi-btn-policy-hint.hi-btn-policy-hint-polish:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
}
#hi-suite .hi-btn-leader-audit {
    border: 1px solid var(--purple-b);
    background: linear-gradient(135deg, var(--purple-d), var(--gold-d));
    color: var(--gold-l);
}
#hi-suite .hi-btn-leader-audit:hover { transform: translateY(-1px); box-shadow: 0 0 14px var(--gold-d); }
#hi-suite .hi-btn-leader-audit.hi-btn-leader-on {
    border-color: var(--gold-b);
    background: var(--gold-d);
    color: var(--gold-l);
    cursor: default;
    box-shadow: 0 0 16px var(--gold-d);
}
#hi-suite .hi-inf-pending-badge {
    font-size: 9px;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(120, 120, 120, 0.25);
    color: var(--ink3);
    border: 1px dashed var(--border2);
}
#hi-suite .hi-inf-leader-badge {
    font-size: 9px;
    padding: 2px 8px;
    border-radius: 6px;
    background: var(--gold-d);
    color: var(--gold-l);
    border: 1px solid var(--gold-b);
    font-weight: 700;
    box-shadow: 0 0 10px var(--gold-d);
}
#hi-suite .hi-inf-pending-mark {
    display: block;
    font-size: 8px;
    color: var(--ink3);
    margin-top: 2px;
    letter-spacing: 0.3px;
}
#hi-suite .hi-inf-audit-pending::after {
    content: '⚠️ 待核验';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-18deg);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    color: rgba(255, 255, 255, 0.06);
    letter-spacing: 4px;
    pointer-events: none;
    z-index: 2;
    white-space: nowrap;
}
#hi-suite .hi-influence { position: relative; }
#hi-suite.hi-leader-pending .hi-inf-me {
    background: linear-gradient(90deg, rgba(80, 80, 80, 0.2), rgba(0, 0, 0, 0.2) 55%);
    border-color: var(--border2);
    box-shadow: none;
}
#hi-suite.hi-leader-audited .hi-inf-me {
    border-color: var(--gold-b);
    box-shadow: 0 0 20px var(--gold-d);
}
#hi-suite .hi-kpi-locked {
    font-size: clamp(11px, 1.4vw, 13px) !important;
    color: var(--ink3) !important;
    letter-spacing: 0.2px;
    line-height: 1.35;
}
#hi-suite .hi-kpi-locked-wrap { justify-content: center; }
#hi-suite .hi-sovereign-lock {
    position: fixed;
    inset: 0;
    z-index: 9990;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
#hi-suite .hi-sovereign-lock[hidden] { display: none !important; }

#hi-suite.hi-sovereign-active::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 9985;
    background:
        linear-gradient(135deg, rgba(201, 168, 76, 0.12), rgba(0, 0, 0, 0.55) 55%),
        rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    pointer-events: auto;
}

#hi-suite .hi-lock-scrim {
    position: absolute;
    inset: 0;
    background: rgba(4, 6, 12, 0.82);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}
#hi-suite .hi-lock-panel {
    position: relative;
    z-index: 1;
    max-width: 480px;
    width: 100%;
    padding: 28px 26px 22px;
    border: 1px solid var(--gold-b);
    box-shadow: 0 0 40px var(--gold-d), 0 24px 60px rgba(0, 0, 0, 0.55);
    text-align: center;
}
#hi-suite .hi-lock-seal {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    letter-spacing: 3px;
    color: var(--gold-l);
    opacity: 0.7;
    margin-bottom: 10px;
}
#hi-suite .hi-lock-title {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 700;
    color: var(--gold-l);
    text-shadow: 0 0 20px rgba(240, 208, 128, 0.35);
}
#hi-suite .hi-lock-pressure {
    margin: 0 0 8px;
    font-size: 14px;
    color: var(--ink);
}
#hi-suite .hi-lock-pressure strong {
    font-family: 'DM Mono', monospace;
    font-size: 22px;
    color: var(--gold-l);
}
#hi-suite .hi-lock-desc {
    margin: 0 0 14px;
    font-size: 12px;
    color: var(--ink2);
    line-height: 1.65;
}
#hi-suite .hi-lock-kpi-preview {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}
#hi-suite .hi-lock-kpi-item {
    font-size: 11px;
    color: var(--ink3);
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border);
}
#hi-suite .hi-lock-cta {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--gold-b);
    background: linear-gradient(145deg, var(--gold-d), rgba(201, 168, 76, 0.08));
    color: var(--gold-l);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 0 18px var(--gold-d);
}
#hi-suite .hi-lock-cta:hover { transform: translateY(-1px); }
#hi-suite .hi-lock-foot {
    margin: 12px 0 0;
    font-size: 9.5px;
    color: var(--ink3);
}
#hi-suite .hi-commerce-modal {
    position: fixed;
    inset: 0;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.88);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
#hi-suite .hi-commerce-modal.show { display: flex; }
#hi-suite .hi-commerce-modal[hidden] { display: none !important; }
#hi-suite .hi-commerce-modal.show[hidden] { display: flex !important; }
#hi-suite .hi-commerce-box {
    max-width: 440px;
    width: 100%;
    padding: 22px 20px;
    border: 1px solid var(--gold-b);
}
#hi-suite .hi-claim-confirm-box,
#hi-suite .hi-claim-success-box,
#hi-suite .hi-dossier-box {
    max-width: 520px;
    padding: 28px 26px;
    position: relative;
}
#hi-suite .hi-modal-close-x {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--ink2);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}
#hi-suite .hi-modal-close-x:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--ink);
}
#hi-suite .hi-dossier-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
}
#hi-suite .hi-claim-confirm-box h2,
#hi-suite .hi-claim-success-box h2,
#hi-suite .hi-dossier-box h2 {
    font-size: 20px;
}
#hi-suite .hi-commerce-box h2 {
    margin: 0 0 12px;
    font-size: 16px;
    color: var(--gold-l);
    position: relative;
    z-index: 1;
}
#hi-suite .hi-commerce-box p {
    margin: 0 0 12px;
    font-size: 12px;
    color: var(--ink2);
    line-height: 1.65;
    position: relative;
    z-index: 1;
}
#hi-suite .hi-commerce-list {
    margin: 0 0 14px;
    padding-left: 18px;
    font-size: 11px;
    color: var(--ink2);
    line-height: 1.7;
    position: relative;
    z-index: 1;
}
#hi-suite .hi-commerce-actions {
    display: flex;
    gap: 10px;
    position: relative;
    z-index: 1;
}
#hi-suite .hi-press-fx {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.72);
    pointer-events: none;
}
#hi-suite .hi-press-fx[hidden] { display: none !important; }
#hi-suite .hi-press-machine {
    position: relative;
    width: 220px;
    height: 220px;
}
#hi-suite .hi-press-plate {
    position: absolute;
    inset: 20px;
    border-radius: 8px;
    border: 2px solid var(--gold-b);
    background: linear-gradient(145deg, rgba(201, 168, 76, 0.15), rgba(0, 0, 0, 0.5));
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.5);
}
#hi-suite .hi-press-stamp {
    position: absolute;
    left: 50%;
    top: -40px;
    width: 120px;
    height: 120px;
    margin-left: -60px;
    border-radius: 50%;
    border: 4px solid var(--gold-l);
    background: radial-gradient(circle at 35% 35%, var(--gold-l), #8a6e28);
    color: #1a1204;
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.25;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    transform: translateY(-80px) scale(1.1);
    opacity: 0;
}
#hi-suite .hi-press-stamp.hi-press-hit {
    animation: hiPressStamp 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes hiPressStamp {
    0% { transform: translateY(-80px) scale(1.15); opacity: 0; }
    35% { transform: translateY(28px) scale(1); opacity: 1; }
    55% { transform: translateY(22px) scale(0.96); }
    100% { transform: translateY(24px) scale(1); opacity: 1; }
}
#hi-suite .hi-inf-title-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
#hi-suite .hi-inf-title {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    color: var(--gold-l);
    letter-spacing: 0.8px;
}
#hi-suite .hi-inf-badge {
    font-size: 9px;
    padding: 2px 7px;
    border-radius: 6px;
    background: var(--gold-d);
    border: 1px solid var(--gold-b);
    color: var(--gold-l);
    font-weight: 600;
}
#hi-suite .hi-inf-ind {
    font-size: 10px;
    color: var(--ink2);
    font-weight: 600;
}
#hi-suite .hi-inf-formula {
    margin: 0;
    font-size: 9.5px;
    color: var(--ink3);
    font-family: 'DM Mono', monospace;
}
#hi-suite .hi-inf-body {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    grid-template-rows: auto auto;
    gap: 10px 12px;
    position: relative;
    z-index: 1;
}
#hi-suite .hi-inf-podium {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    align-items: end;
}
#hi-suite .hi-inf-side { min-width: 0; }
#hi-suite .hi-inf-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
#hi-suite .hi-inf-row {
    display: grid;
    grid-template-columns: 28px 1fr auto auto 36px;
    align-items: center;
    gap: 6px 8px;
    padding: 7px 10px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid var(--border);
    font-size: 10.5px;
    position: relative;
}

#hi-suite .hi-inf-row.hi-row-pending {
    opacity: 0.78;
    filter: grayscale(0.25);
}

#hi-suite .hi-inf-row.hi-row-pending::after {
    content: '⚠️ 待核验';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%) rotate(-8deg);
    font-size: 10px;
    font-family: 'DM Mono', monospace;
    color: rgba(255, 255, 255, 0.16);
    pointer-events: none;
    white-space: nowrap;
}
#hi-suite .hi-inf-rank-num {
    font-family: 'DM Mono', monospace;
    font-weight: 700;
    color: var(--ink2);
    font-size: 11px;
}
#hi-suite .hi-inf-alias {
    color: var(--ink);
    font-weight: 500;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#hi-suite .hi-inf-alias em {
    font-style: normal;
    color: var(--ink3);
    font-size: 9.5px;
    margin-left: 4px;
}
#hi-suite .hi-inf-metric {
    font-size: 9.5px;
    color: var(--ink2);
    white-space: nowrap;
}
#hi-suite .hi-inf-metric strong { color: var(--green-l); font-family: 'DM Mono', monospace; }
#hi-suite .hi-inf-m-lbl { color: var(--ink3); margin-right: 3px; }
#hi-suite .hi-inf-eis {
    font-family: 'DM Mono', monospace;
    font-weight: 700;
    font-size: 11px;
    color: var(--gold-l);
    text-align: right;
}
#hi-suite .hi-pod-card {
    position: relative;
    padding: 10px 10px 9px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.28);
    text-align: center;
    min-height: 118px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
    overflow: hidden;
}
#hi-suite .hi-pod-card.hi-pod-ghost {
    opacity: 0.55;
    border-style: dashed !important;
    filter: saturate(0.45);
    box-shadow: none !important;
}
#hi-suite .hi-pod-card.hi-pod-ghost .hi-pod-eis-val,
#hi-suite .hi-inf-row.hi-inf-row-ghost strong,
#hi-suite .hi-inf-row.hi-inf-row-ghost .hi-inf-eis {
    color: var(--ink3) !important;
}
#hi-suite .hi-inf-row.hi-inf-row-ghost {
    opacity: 0.55;
    border-style: dashed;
}
#hi-suite .hi-pod-card.hi-pod-gold {
    border: 1px solid var(--gold-b);
    box-shadow: 0 0 18px var(--gold-d), inset 0 0 24px rgba(201, 168, 76, 0.06);
    min-height: 132px;
}
#hi-suite .hi-pod-card.hi-pod-silver {
    border: 1px solid rgba(192, 200, 212, 0.45);
    box-shadow: 0 0 12px rgba(192, 200, 212, 0.12);
}
#hi-suite .hi-pod-card.hi-pod-bronze {
    border: 1px solid rgba(180, 120, 72, 0.55);
    box-shadow: 0 0 12px rgba(180, 120, 72, 0.15);
}
#hi-suite .hi-pod-stamp {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'DM Mono', monospace;
    font-size: 9px;
    font-weight: 700;
    opacity: 0.85;
    border: 1px solid currentColor;
}
#hi-suite .hi-pod-gold .hi-pod-stamp { color: var(--gold-l); background: var(--gold-d); }
#hi-suite .hi-pod-silver .hi-pod-stamp { color: #c8d0dc; background: rgba(192, 200, 212, 0.12); }
#hi-suite .hi-pod-bronze .hi-pod-stamp { color: #c89460; background: rgba(180, 120, 72, 0.12); }
#hi-suite .hi-pod-rank {
    font-family: 'DM Mono', monospace;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    margin-top: 4px;
}
#hi-suite .hi-pod-gold .hi-pod-rank { color: var(--gold-l); text-shadow: 0 0 12px rgba(240, 208, 128, 0.4); }
#hi-suite .hi-pod-silver .hi-pod-rank { color: #d4dce8; }
#hi-suite .hi-pod-bronze .hi-pod-rank { color: #c89460; }
#hi-suite .hi-pod-alias {
    font-size: 10px;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.35;
    max-width: 100%;
}
#hi-suite .hi-pod-tag {
    display: block;
    font-size: 9px;
    color: var(--ink3);
    font-weight: 500;
    font-family: 'DM Mono', monospace;
}
#hi-suite .hi-pod-eis {
    display: flex;
    align-items: baseline;
    gap: 3px;
    margin: 2px 0;
}
#hi-suite .hi-pod-eis-val {
    font-family: 'DM Mono', monospace;
    font-size: 20px;
    font-weight: 700;
    color: var(--green-l);
}
#hi-suite .hi-pod-eis-lbl { font-size: 9px; color: var(--ink3); }
#hi-suite .hi-pod-metrics {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 9px;
    color: var(--ink2);
    width: 100%;
}
#hi-suite .hi-pod-metrics strong {
    color: var(--ink);
    font-family: 'DM Mono', monospace;
}
#hi-suite .hi-inf-me {
    grid-column: 1 / -1;
    padding: 10px 12px;
    border-radius: 12px;
    background: linear-gradient(90deg, var(--gold-d), rgba(0, 0, 0, 0.2) 55%);
    border: 1px solid var(--gold-b);
    box-shadow: 0 0 16px var(--gold-d);
}
#hi-suite .hi-inf-me-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    font-size: 11px;
}
#hi-suite .hi-inf-me-badge {
    font-size: 9px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    background: var(--gold-d);
    color: var(--gold-l);
    border: 1px solid var(--gold-b);
}
#hi-suite .hi-inf-me-rank {
    color: var(--ink);
    font-weight: 600;
}
#hi-suite .hi-inf-me-rank strong {
    color: var(--gold-l);
    font-family: 'DM Mono', monospace;
    font-size: 14px;
}
#hi-suite .hi-inf-me-alias {
    color: var(--ink2);
    font-family: 'DM Mono', monospace;
    font-size: 10px;
}
#hi-suite .hi-inf-me-metric {
    color: var(--ink2);
    font-size: 10px;
}
#hi-suite .hi-inf-me-metric strong {
    color: var(--green-l);
    font-family: 'DM Mono', monospace;
}
#hi-suite .hi-inf-tip {
    margin: 8px 0 0;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 10.5px;
    color: var(--blue-l);
    line-height: 1.45;
}
#hi-suite .hi-inf-tip strong {
    color: var(--gold-l);
    font-family: 'DM Mono', monospace;
}
#hi-suite .hi-inf-tip-ready { color: var(--green-l); }
@keyframes hiInfHash {
    0% { opacity: 1; filter: blur(0); transform: translateY(0); }
    30% { opacity: 0.25; filter: blur(3px); letter-spacing: 1px; transform: translateY(2px); }
    55% { opacity: 0.1; filter: blur(4px); }
    80% { opacity: 0.5; filter: blur(1px); }
    100% { opacity: 1; filter: blur(0); transform: translateY(0); }
}
#hi-suite .hi-inf-body.hi-inf-flip {
    animation: hiInfHash 0.45s ease;
}
@media (max-width: 1000px) {
    #hi-suite .hi-inf-body { grid-template-columns: 1fr; }
    #hi-suite .hi-inf-podium { grid-template-columns: 1fr; }
    #hi-suite .hi-pod-card { min-height: 100px; }
    #hi-suite .hi-pod-card.hi-pod-gold { min-height: 100px; }
    #hi-suite .hi-inf-row {
        grid-template-columns: 28px 1fr auto;
        grid-template-rows: auto auto;
    }
    #hi-suite .hi-inf-eis { grid-column: 3; grid-row: 1 / 3; align-self: center; }
}
#hi-suite .hi-res-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 0.9fr) minmax(0, 0.82fr);
    gap: 12px 14px;
    position: relative;
    z-index: 1;
    align-items: stretch;
}
#hi-suite .hi-res-grid-core {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 20px;
}
#hi-suite .hi-res-grid-core .hi-kpi-block {
    background: transparent;
    border: none;
    min-height: 0;
    padding: 0;
    align-items: flex-start;
    text-align: left;
}
#hi-suite .hi-res-grid-extra {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin-top: 4px;
}
#hi-suite .hi-res-grid-extra .hi-kpi-block {
    background: rgba(255, 255, 255, 0.02);
    border: none;
    min-height: 0;
}
#hi-suite .hi-kpi-block {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 88px;
}
#hi-suite .hi-kpi-block:not(.hi-kpi-hero) .hi-kpi-lead,
#hi-suite .hi-kpi-block:not(.hi-kpi-hero) .hi-kpi-desc,
#hi-suite .hi-kpi-block:not(.hi-kpi-hero) .hi-delta {
    width: 100%;
}
#hi-suite .hi-kpi-block:not(.hi-kpi-hero) .hi-res-kpi-num {
    display: flex;
    justify-content: center;
    align-items: baseline;
    flex-wrap: wrap;
}
#hi-suite .hi-kpi-hero {
    background: transparent;
    border-color: transparent;
    padding: 4px 6px;
    min-height: 0;
}
@media (max-width: 1100px) {
    #hi-suite .hi-res-grid { grid-template-columns: 1fr 1fr; }
    #hi-suite .hi-topbar { grid-template-columns: 1fr; }
}
#hi-suite .hi-kpi-lead {
    font-size: 11px;
    color: var(--ink2);
    line-height: 1.45;
    margin: 0 0 4px;
}
#hi-suite .hi-kpi-desc {
    font-size: 11px;
    color: var(--ink2);
    line-height: 1.5;
    margin: 6px 0 0;
}
#hi-suite .hi-kpi-lead + .hi-res-kpi-num {
    margin-top: 2px;
}
#hi-suite .hi-res-kpi-num {
    font-size: clamp(28px, 3.2vw, 36px);
    font-weight: 700;
    font-family: 'DM Mono', 'Consolas', monospace;
    line-height: 1.05;
    margin: 2px 0;
}
#hi-suite .hi-res-unit { font-size: 16px; font-weight: 500; margin-left: 2px; color: var(--ink2); }
#hi-suite .hi-delta {
    font-size: 10.5px;
    margin: 6px 0 0;
    color: var(--green-l);
}
#hi-suite .hi-delta-val { font-family: 'DM Mono', monospace; font-weight: 600; }
#hi-suite .hi-motto-shield {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 10px;
    border-radius: 12px;
    background: linear-gradient(90deg, var(--gold-d), transparent 70%);
    border: 1px solid var(--gold-b);
    box-shadow: 0 0 20px var(--gold-d);
    height: 100%;
}
#hi-suite .hi-motto-visual {
    width: 64px;
    height: 64px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 0 14px rgba(201, 168, 76, 0.55));
}
#hi-suite .hi-motto-text { margin: 0; }
#hi-suite .hi-motto-line {
    font-size: 11.5px;
    color: var(--ink2);
    line-height: 1.55;
    margin: 0;
}
#hi-suite .hi-motto-accent {
    font-size: 18px;
    font-weight: 700;
    color: var(--gold-l);
    letter-spacing: 3px;
    margin-top: 4px;
    text-shadow: 0 0 16px rgba(240, 208, 128, 0.45);
}
#hi-suite .hi-logo-clone.hi-logo-missing { opacity: 0.4; }
#hi-suite .hi-honor-block {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}
#hi-suite .hi-honor-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--gold-d);
    border: 1px solid var(--gold-b);
    box-shadow: 0 0 16px var(--gold-d);
}
#hi-suite .hi-honor-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(201, 168, 76, 0.5));
}
#hi-suite .hi-honor-title { font-size: 12px; font-weight: 700; color: var(--gold-l); }
#hi-suite .hi-honor-sub { font-size: 10px; color: var(--ink2); margin-top: 2px; }
#hi-suite .hi-honor-done { font-size: 9px; color: var(--ink3); margin-top: 2px; }
#hi-suite .hi-honor-badge.hi-honor-on { box-shadow: 0 0 20px var(--gold-d); }
#hi-suite .hi-honor-badge.hi-honor-on .hi-honor-done { color: var(--green-l); }
#hi-suite .hi-honor-badge:not(.hi-honor-on) { opacity: 0.72; }
#hi-suite .hi-honor-btn {
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid var(--gold-b);
    background: var(--gold-d);
    color: var(--gold-l);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}
#hi-suite .hi-res-kpi-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--ink2);
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
#hi-suite .hi-donut-block,
#hi-suite .hi-honor-block {
    padding: 4px 0;
    border-radius: 0;
    background: transparent;
    border: none;
}
#hi-suite .hi-donut-wrap { display: flex; align-items: center; gap: 14px; margin-top: 4px; }
#hi-suite .hi-donut-svg { width: 88px; height: 88px; flex-shrink: 0; }
#hi-suite .hi-donut-legend { list-style: none; font-size: 11px; color: var(--ink2); padding: 0; }
#hi-suite .hi-donut-legend li { margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
#hi-suite .hi-donut-legend strong { color: var(--ink); font-family: 'DM Mono', monospace; }
#hi-suite .hi-leg-dot { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
#hi-suite .hi-leg-dot.steel { background: var(--blue-l); }
#hi-suite .hi-leg-dot.al { background: var(--gold-l); }
#hi-suite .hi-leg-dot.cement { background: var(--teal-l); }

#hi-suite .hi-body {
    flex: 1;
    display: flex;
    gap: 10px;
    margin: 10px 14px;
    min-height: 0;
    overflow: hidden;
}
#hi-suite .hi-center {
    flex: 1;
    min-width: 0;
    border-radius: 14px;
    padding: 12px 14px 14px;
    box-shadow: 0 0 0 1px var(--border), inset 0 0 18px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
#hi-suite .hi-gauge-col {
    flex: 0 0 30%;
    max-width: 380px;
    min-width: 240px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
}
#hi-suite .hi-gauge-panel {
    flex: 1 1 auto;
    min-height: 0;
    border-radius: 14px;
    padding: 14px 14px;
    box-shadow: 0 0 0 1px var(--green-b), 0 0 22px var(--green-d);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
#hi-suite .hi-draft-status {
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px dashed var(--border);
}
#hi-suite .hi-draft-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: var(--gold-l);
    background: rgba(201, 168, 76, 0.12);
    border: 1px solid var(--gold-b);
    padding: 3px 8px;
    border-radius: 6px;
}
#hi-suite .hi-draft-badge.hi-draft-idle { color: var(--ink2); background: rgba(255,255,255,0.04); border-color: var(--border); }
#hi-suite .hi-draft-badge.hi-draft-certified { color: var(--green-l); background: var(--green-d); border-color: var(--green-b); }
#hi-suite .hi-draft-note {
    margin: 6px 0 0;
    font-size: 10px;
    color: var(--ink2);
    line-height: 1.45;
}
#hi-suite .hi-policy-card {
    flex: 0 0 auto;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.35);
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    transform: translateX(24px);
    opacity: 0;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
    pointer-events: none;
}
#hi-suite .hi-policy-card.hi-policy-show {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}
#hi-suite .hi-policy-head {
    font-size: 11px;
    font-weight: 700;
    color: var(--blue-l);
    margin-bottom: 6px;
}
#hi-suite .hi-policy-body {
    margin: 0;
    font-size: 10px;
    color: var(--ink2);
    line-height: 1.5;
}
#hi-suite .hi-policy-foot {
    margin: 8px 0 0;
    font-size: 10px;
    color: var(--ink3);
    line-height: 1.4;
}
#hi-suite .hi-policy-link {
    margin-top: 8px;
    padding: 0;
    border: none;
    background: none;
    color: var(--gold-l);
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}
#hi-suite .hi-policy-link:hover { text-decoration: underline; }
@media (max-width: 1100px) {
    #hi-suite .hi-body { flex-direction: column; }
    #hi-suite .hi-gauge-col { flex: none; max-width: none; width: 100%; }
}

#hi-suite .hi-matrix-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}
#hi-suite .hi-ind-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
#hi-suite .hi-ind-tabs.hi-ind-tabs-single { gap: 0; }
#hi-suite .hi-ind-tabs.hi-ind-tabs-single .hi-tab { cursor: default; }
#hi-suite .hi-tab {
    padding: 7px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg2);
    color: var(--ink2);
    cursor: pointer;
    font: inherit;
    font-size: 11px;
    font-weight: 600;
}
#hi-suite .hi-tab.on {
    background: var(--green-d);
    border-color: var(--green-b);
    color: var(--green-l);
}
#hi-suite .hi-matrix-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
#hi-suite .hi-tool-month { font-size: 11px; color: var(--ink2); display: flex; align-items: center; gap: 6px; }
#hi-suite .hi-inp-month { max-width: 130px; }
#hi-suite .hi-tool-btn {
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg4);
    color: var(--ink2);
    font-size: 11px;
    cursor: pointer;
    font-family: inherit;
}
#hi-suite .hi-tool-btn:disabled { opacity: 0.45; cursor: not-allowed; }
#hi-suite .hi-center-foot {
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 1;
}
#hi-suite .hi-vault-note {
    font-size: 10px;
    color: var(--ink3);
    margin: 0 0 8px;
    text-align: center;
}

#hi-suite .hi-matrix-panel {
    flex: 1;
    flex-direction: column;
    min-height: 0;
    position: relative;
    z-index: 1;
    display: none;
}
#hi-suite .hi-matrix-panel.hi-panel-on {
    display: flex;
}
#hi-suite .hi-matrix-panel[hidden] {
    display: none !important;
}
#hi-suite .hi-matrix-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: 0.4px;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}
#hi-suite .hi-matrix-title span {
    font-size: 11px;
    font-weight: 400;
    color: var(--ink2);
    margin-left: 8px;
}
#hi-suite .hi-ring-unit-label {
    text-align: center;
    font-size: 10px;
    color: var(--ink3);
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
}
#hi-suite .hi-flow {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    padding: 8px 4px 12px;
    scrollbar-width: thin;
}
#hi-suite .hi-p-node {
    flex-shrink: 0;
    text-align: center;
    padding: 6px 8px;
    border-radius: 10px;
    background: var(--bg2);
    border: 1px solid var(--border);
    min-width: 56px;
}
#hi-suite .hi-p-ico { display: block; font-size: 16px; line-height: 1.2; }
#hi-suite .hi-p-name { display: block; font-size: 9px; color: var(--ink2); margin-top: 2px; white-space: nowrap; }
#hi-suite .hi-p-arrow { flex-shrink: 0; color: var(--green); opacity: 0.7; font-size: 14px; font-weight: 700; }

#hi-suite .hi-matrix-scroll { overflow: auto; flex: 1; }
#hi-suite .hi-matrix { width: 100%; border-collapse: collapse; font-size: 11px; }
#hi-suite .hi-matrix th,
#hi-suite .hi-matrix td {
    padding: 8px 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    vertical-align: middle;
}
#hi-suite .hi-m-corner,
#hi-suite .hi-m-row-h {
    text-align: left;
    color: var(--ink2);
    font-weight: 600;
    white-space: nowrap;
    padding-left: 4px;
}
#hi-suite .hi-m-col-h { color: var(--ink2); font-size: 10px; font-weight: 600; }
#hi-suite .hi-m-emit-val {
    font-family: 'DM Mono', monospace;
    color: var(--green-l);
    font-weight: 600;
}
#hi-suite .hi-col-calc {
    padding: 4px 8px;
    font-size: 10px;
    border-radius: 6px;
    border: 1px solid var(--green-b);
    background: var(--green-d);
    color: var(--green-l);
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}

#hi-suite .hi-inp-under {
    width: 100%;
    min-width: 52px;
    max-width: 88px;
    padding: 6px 4px 5px;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 0;
    background: rgba(0, 0, 0, 0.35);
    color: var(--ink);
    font: inherit;
    font-size: 11px;
    font-family: 'DM Mono', monospace;
    text-align: center;
    transition: border-color 0.15s, box-shadow 0.15s;
}
#hi-suite .hi-inp-under:focus {
    outline: none;
    border-bottom-color: var(--green);
    box-shadow: 0 2px 12px var(--green-d);
    background: var(--bg2);
}
#hi-suite .hi-inp-under::placeholder { color: var(--ink3); }

#hi-suite .hi-yoy-inline {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: end;
    gap: 10px 16px;
    font-size: 11px;
}
#hi-suite .hi-yoy-lbl {
    color: var(--ink2);
    display: flex;
    flex-direction: column;
    gap: 4px;
    justify-self: start;
}
#hi-suite .hi-yoy-lbl .hi-inp-under {
    max-width: none;
    width: min(100%, 140px);
}
#hi-suite .hi-yoy-sep {
    color: var(--ink2);
    justify-self: center;
    align-self: center;
    padding-bottom: 6px;
}
#hi-suite .hi-yoy-val {
    font-family: 'DM Mono', monospace;
    font-size: 14px;
    justify-self: end;
    align-self: center;
    padding-bottom: 4px;
}

#hi-suite .hi-gauge-head {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.6px;
    color: var(--ink);
    text-align: center;
    position: relative;
    z-index: 1;
}
#hi-suite .hi-spark-months {
    display: flex;
    justify-content: space-between;
    font-size: 8px;
    color: var(--ink3);
    margin-top: 4px;
    font-family: 'DM Mono', monospace;
}
#hi-suite .hi-ring-wrap {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto;
    z-index: 1;
}
#hi-suite .hi-ring-svg { width: 100%; height: 100%; }
#hi-suite .hi-ring-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
#hi-suite .hi-ring-num {
    font-size: 26px;
    font-weight: 700;
    font-family: 'DM Mono', monospace;
    color: var(--green-l);
}
#hi-suite .hi-ring-unit { font-size: 10px; color: var(--ink2); }
#hi-suite .hi-bench { display: flex; flex-direction: column; gap: 8px; position: relative; z-index: 1; }
#hi-suite .hi-bench-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid var(--border);
}
#hi-suite .hi-bench-lbl { font-size: 11px; color: var(--ink2); }
#hi-suite .hi-bench-val { font-family: 'DM Mono', monospace; font-weight: 700; color: var(--ink); }
#hi-suite .hi-bench-best .hi-bench-val.green { color: var(--green-l); }
#hi-suite .hi-struct-block { position: relative; z-index: 1; }
#hi-suite .hi-struct-head { font-size: 11px; color: var(--ink2); margin-bottom: 6px; }
#hi-suite .hi-struct-bar {
    display: flex;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    background: var(--bg2);
    border: 1px solid var(--border);
}
#hi-suite .hi-struct-seg { display: block; height: 100%; min-width: 0; transition: width 0.2s; }
#hi-suite .hi-struct-seg.direct { background: var(--blue); }
#hi-suite .hi-struct-seg.indirect { background: var(--green); }
#hi-suite .hi-struct-seg.process { background: var(--gold); }
#hi-suite .hi-struct-legend {
    list-style: none;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 6px;
    font-size: 10px;
    color: var(--ink2);
    padding: 0;
}
#hi-suite .hi-struct-legend .dot {
    width: 6px; height: 6px; border-radius: 2px;
    display: inline-block; margin-right: 4px;
}
#hi-suite .hi-struct-legend .dot.direct { background: var(--blue); }
#hi-suite .hi-struct-legend .dot.indirect { background: var(--green); }
#hi-suite .hi-struct-legend .dot.process { background: var(--gold); }
#hi-suite .hi-struct-legend strong { color: var(--ink); }
#hi-suite .hi-spark-block { position: relative; z-index: 1; }
#hi-suite .hi-spark-head {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--ink2);
    margin-bottom: 6px;
}
#hi-suite .hi-spark-pct { font-family: 'DM Mono', monospace; font-size: 13px; }
#hi-suite .hi-spark-svg { width: 100%; height: 48px; display: block; }

#hi-suite .hi-bottom {
    flex-shrink: 0;
    padding-bottom: 8px;
}
#hi-suite .hi-sovereignty {
    margin: 8px 14px 0;
    padding: 10px 14px 12px;
    border: 1px solid var(--blue-b);
    box-shadow: 0 0 16px var(--blue-d);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
#hi-suite .hi-iso-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}
#hi-suite .hi-iso-head {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0;
    flex: 0 0 auto;
}
#hi-suite .hi-iso-head-ico { font-size: 16px; opacity: 0.9; }
#hi-suite .hi-iso-title {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    color: var(--blue-l);
    letter-spacing: 0.4px;
}
#hi-suite .hi-iso-pipeline {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    flex: 1 1 280px;
    min-width: 0;
    max-width: 100%;
}
#hi-suite .hi-iso-pipeline-compact {
    justify-content: space-evenly;
    flex: 1 1 auto;
    width: 100%;
    gap: 6px 10px;
    padding: 0 4px 0 8px;
}
#hi-suite .hi-iso-pipeline-compact .hi-iso-node {
    flex: 0 0 auto;
    min-width: 72px;
    max-width: none;
    padding: 0 8px;
}
#hi-suite .hi-iso-pipeline-compact .hi-iso-node-3 {
    min-width: 128px;
    padding-left: 10px;
    padding-right: 10px;
}
#hi-suite .hi-iso-pipeline-compact .hi-iso-node-ring {
    width: 32px;
    height: 32px;
    margin-bottom: 4px;
    border-radius: 10px;
}
#hi-suite .hi-iso-pipeline-compact .hi-iso-node-ico { font-size: 16px; }
#hi-suite .hi-iso-pipeline-compact .hi-iso-node-title { font-size: 10px; margin-bottom: 2px; }
#hi-suite .hi-iso-pipeline-compact .hi-iso-node-sub {
    font-size: 9px;
    line-height: 1.35;
    white-space: nowrap;
}
#hi-suite .hi-iso-pipeline-compact .hi-iso-connector {
    flex: 1 1 28px;
    min-width: 18px;
    max-width: 52px;
    padding-top: 12px;
}
#hi-suite .hi-iso-node {
    flex: 1 1 0;
    min-width: 72px;
    max-width: 110px;
    text-align: center;
    padding: 0 2px;
}
#hi-suite .hi-iso-node-ring {
    width: 40px;
    height: 40px;
    margin: 0 auto 6px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg2);
    border: 1px solid var(--border2);
    box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.35);
}
#hi-suite .hi-iso-node-1 .hi-iso-node-ring { border-color: var(--green-b); box-shadow: 0 0 12px var(--green-d); }
#hi-suite .hi-iso-node-2 .hi-iso-node-ring { border-color: var(--blue-b); }
#hi-suite .hi-iso-node-3 .hi-iso-node-ring { border-color: var(--gold-b); box-shadow: 0 0 12px var(--gold-d); }
#hi-suite .hi-iso-node-ico { font-size: 20px; line-height: 1; }
#hi-suite .hi-iso-node-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 3px;
}
#hi-suite .hi-iso-node-sub {
    font-size: 9.5px;
    color: var(--ink2);
    line-height: 1.4;
}
#hi-suite .hi-iso-node-sub code {
    font-size: 9px;
    color: var(--green-l);
    font-family: 'DM Mono', monospace;
    background: var(--green-d);
    padding: 1px 5px;
    border-radius: 4px;
}
#hi-suite .hi-iso-connector {
    flex: 1 1 12px;
    min-width: 10px;
    max-width: 36px;
    display: flex;
    align-items: center;
    padding-top: 16px;
}
#hi-suite .hi-iso-line {
    display: block;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--blue-b), var(--green-b));
    opacity: 0.8;
}
#hi-suite .hi-iso-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 12px;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    font-size: 10px;
    color: var(--ink3);
    line-height: 1.4;
    width: 100%;
}
#hi-suite .hi-iso-footnote { flex: 1 1 160px; min-width: 0; max-width: none; text-align: center; }
#hi-suite .hi-iso-cert { flex: 0 0 auto; color: var(--ink2); white-space: nowrap; }
#hi-suite .hi-action-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 0.85fr);
    gap: 12px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    align-items: stretch;
}
#hi-suite .hi-card-budget {
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.18), rgba(16, 185, 129, 0.12));
    border: 1px solid rgba(59, 130, 246, 0.45);
    box-shadow: 0 0 18px rgba(59, 130, 246, 0.15);
}
#hi-suite .hi-card-budget .hi-card-title { color: var(--blue-l); }
#hi-suite .hi-commerce-actions-col {
    flex-direction: column;
    align-items: stretch;
}
#hi-suite .hi-convert-advice {
    font-size: 12px;
    color: var(--ink2);
    line-height: 1.5;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(201, 168, 76, 0.08);
    border: 1px dashed var(--gold-b);
}
#hi-suite .hi-inf-soft-badge {
    display: inline-block;
    font-size: 9px;
    padding: 2px 7px;
    border-radius: 5px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.35);
    color: var(--blue-l);
    margin-left: 6px;
}
#hi-suite .hi-attest-zone {
    display: flex;
    flex-direction: row;
    gap: 12px;
    min-width: 0;
    align-items: stretch;
}
#hi-suite .hi-attest-pricing {
    flex: 0 0 240px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px dashed var(--gold-b);
    font-size: 10px;
    color: var(--ink2);
    line-height: 1.5;
}
#hi-suite .hi-price-tag {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.6px;
    color: var(--gold-l);
    background: var(--gold-d);
    border: 1px solid var(--gold-b);
    padding: 2px 8px;
    border-radius: 6px;
    margin-bottom: 4px;
}
#hi-suite .hi-price-line { margin: 0; }
#hi-suite .hi-price-line strong { color: var(--gold-l); font-family: 'DM Mono', monospace; }
#hi-suite .hi-price-line em { font-style: normal; color: var(--ink3); }
#hi-suite .hi-sovereign-note {
    position: relative;
    min-height: 108px;
    padding: 12px 14px 28px;
    border: 2px solid var(--gold-b);
    background:
        repeating-linear-gradient(105deg, transparent, transparent 8px, rgba(201, 168, 76, 0.04) 8px, rgba(201, 168, 76, 0.04) 9px),
        linear-gradient(145deg, rgba(201, 168, 76, 0.18), rgba(0, 0, 0, 0.45));
    box-shadow: 0 4px 24px var(--gold-d), inset 0 0 0 1px rgba(240, 208, 128, 0.12);
    overflow: hidden;
    border-radius: 4px 4px 2px 18px;
}
#hi-suite .hi-sovereign-note::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 6px;
    background: repeating-linear-gradient(90deg, var(--gold-b) 0, var(--gold-b) 6px, transparent 6px, transparent 12px);
    opacity: 0.5;
}
#hi-suite .hi-note-watermark {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 6px;
    color: rgba(201, 168, 76, 0.07);
    pointer-events: none;
    transform: rotate(-12deg);
}
#hi-suite .hi-note-corner {
    position: absolute;
    top: 6px;
    left: 8px;
    font-size: 8px;
    font-family: 'DM Mono', monospace;
    color: var(--gold-l);
    letter-spacing: 0.5px;
    opacity: 0.85;
}
#hi-suite .hi-note-serial {
    position: absolute;
    right: 10px;
    bottom: 10px;
    font-size: 8px;
    font-family: 'DM Mono', monospace;
    color: var(--ink3);
}
#hi-suite .hi-sovereign-note .hi-card-title { color: var(--gold-l); }
#hi-suite .hi-sovereign-note.hi-note-disabled { opacity: 0.72; filter: grayscale(0.25); }
#hi-suite .hi-action-hero .hi-card-btn:not(.hi-sovereign-note) {
    min-height: 78px;
    padding: 14px 16px 12px;
    align-items: center;
    text-align: center;
    justify-content: center;
}
#hi-suite .hi-sovereign-note.hi-card-btn {
    align-items: center;
    text-align: center;
    justify-content: center;
}
#hi-suite .hi-action-hero .hi-card-ico { font-size: 26px; margin-bottom: 4px; }
#hi-suite .hi-action-hero .hi-card-title { font-size: 13px; width: 100%; }
#hi-suite .hi-action-hero .hi-card-sub { font-size: 10px; width: 100%; line-height: 1.35; }
#hi-suite .hi-page-foot {
    margin: 4px 14px 0;
    padding: 6px 8px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 16px;
    font-size: 9.5px;
    color: var(--ink3);
    border-top: 1px solid var(--border);
}
#hi-suite .hi-page-foot-cert {
    font-family: 'DM Mono', monospace;
    color: var(--gold-l);
}
#hi-suite .hi-action-cards:not(.hi-action-hero) {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
}
#hi-suite .hi-pledge-strip {
    flex-shrink: 0;
    margin: 6px 14px 0;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 11px;
    color: var(--ink2);
    border-radius: 10px;
    background: var(--bg3);
    border: 1px solid var(--border);
}
@media (max-width: 900px) {
    #hi-suite .hi-iso-banner { flex-direction: column; align-items: stretch; }
    #hi-suite .hi-iso-pipeline { justify-content: center; }
    #hi-suite .hi-iso-pipeline-compact .hi-iso-node-sub { white-space: normal; }
    #hi-suite .hi-iso-pipeline-compact .hi-iso-node-3 { min-width: 0; }
    #hi-suite .hi-action-hero { grid-template-columns: 1fr; }
    #hi-suite .hi-action-hero .hi-card-btn:not(.hi-sovereign-note) { min-height: 64px; }
    #hi-suite .hi-yoy-inline {
        grid-template-columns: 1fr;
        justify-items: stretch;
        text-align: center;
    }
    #hi-suite .hi-yoy-lbl { justify-self: stretch; align-items: center; }
    #hi-suite .hi-yoy-lbl .hi-inp-under { width: 100%; margin: 0 auto; }
    #hi-suite .hi-yoy-sep,
    #hi-suite .hi-yoy-val { justify-self: center; }
    #hi-suite .hi-iso-pipeline { flex-wrap: wrap; row-gap: 8px; justify-content: center; }
}
#hi-suite .hi-card-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 12px 16px;
    min-width: 140px;
    border-radius: 12px;
    cursor: pointer;
    font: inherit;
    text-align: left;
    transition: transform 0.12s, box-shadow 0.12s;
}
#hi-suite .hi-card-btn:hover { transform: translateY(-1px); }
#hi-suite .hi-card-ico { font-size: 18px; }
#hi-suite .hi-card-title { font-size: 12px; font-weight: 700; color: var(--ink); }
#hi-suite .hi-card-sub { font-size: 10px; color: var(--ink2); }
#hi-suite .hi-card-blue .hi-card-sub { color: var(--blue-l); opacity: 0.85; }
#hi-suite .hi-card-gold {
    border: 1px solid var(--gold-b);
    background: linear-gradient(145deg, var(--gold-d), var(--green-d));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
#hi-suite .hi-card-gold .hi-card-title { color: var(--gold-l); }
#hi-suite .hi-card-blue {
    border: 2px solid var(--blue-b);
    background: var(--blue-d);
}
#hi-suite .hi-card-purple {
    border: 1px solid var(--purple-b);
    background: var(--purple-d);
}
#hi-suite .hi-card-purple .hi-card-title { color: var(--purple-l); }
#hi-suite .hi-enterprise-mark-btn:focus{outline:2px solid rgba(16,185,129,.45);outline-offset:2px}
#hi-suite .hi-enterprise-mark-btn:focus:not(:focus-visible){outline:none}
#hi-suite .hi-card-outline {
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.06);
    color: var(--ink);
}
#hi-suite .hi-card-muted {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.06);
    color: var(--ink2);
}
#hi-suite .hi-pledge-sign {
    padding: 8px 16px;
    border-radius: 10px;
    border: 1px solid var(--gold-b);
    background: var(--gold-d);
    color: var(--gold-l);
    font-weight: 600;
    font-size: 11px;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}

#hi-suite .hi-pledge {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
#hi-suite .hi-pledge.show { display: flex; }
#hi-suite .hi-pledge-box {
    max-width: 520px;
    width: 100%;
    padding: 32px 28px;
    border-radius: 18px;
}
#hi-suite .hi-pledge-box h2 { font-size: 17px; color: var(--gold-l); margin-bottom: 16px; position: relative; z-index: 1; }
#hi-suite .hi-pledge-box p { font-size: 12.5px; color: var(--ink2); line-height: 1.9; margin-bottom: 12px; position: relative; z-index: 1; }
#hi-suite .hi-pledge-actions { display: flex; gap: 10px; margin-top: 20px; position: relative; z-index: 1; }

#hi-suite .hi-golden-seal-modal {
    position: fixed;
    inset: 0;
    z-index: 10060;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
#hi-suite .hi-golden-seal-modal.show { display: flex; }
#hi-suite .hi-golden-seal-modal[hidden] { display: none !important; }
#hi-suite .hi-golden-seal-modal.show[hidden] { display: flex !important; }
#hi-suite .hi-golden-seal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
}
#hi-suite .hi-golden-seal-stage {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 420px;
    width: 100%;
}
#hi-suite .hi-golden-seal-glow {
    position: absolute;
    left: 50%;
    top: 42%;
    width: 280px;
    height: 280px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(201, 168, 76, 0.55), transparent 70%);
    filter: blur(8px);
    animation: hiSealPulse 2.4s ease-in-out infinite;
}
@keyframes hiSealPulse {
    0%, 100% { opacity: 0.65; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}
#hi-suite .hi-golden-seal-coin {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    transform-style: preserve-3d;
    animation: hiSealCoinIn 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes hiSealCoinIn {
    0% { transform: perspective(800px) rotateX(68deg) rotateY(-24deg) scale(0.4); opacity: 0; }
    100% { transform: perspective(800px) rotateX(12deg) rotateY(8deg) scale(1); opacity: 1; }
}
#hi-suite .hi-golden-seal-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 4px solid var(--gold);
    box-shadow:
        0 0 40px rgba(201, 168, 76, 0.55),
        inset 0 0 24px rgba(201, 168, 76, 0.25);
    background: linear-gradient(145deg, #2a2010, #1a1408 45%, #3d3018);
}
#hi-suite .hi-golden-seal-core {
    position: absolute;
    inset: 18px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 2px solid rgba(201, 168, 76, 0.45);
    background: radial-gradient(circle at 30% 25%, rgba(240, 208, 128, 0.22), rgba(0, 0, 0, 0.35));
}
#hi-suite .hi-golden-seal-label {
    font-size: 11px;
    letter-spacing: 3px;
    color: var(--gold-l);
}
#hi-suite .hi-golden-seal-id {
    font-family: 'DM Mono', monospace;
    font-size: 18px;
    color: #fff;
    letter-spacing: 1px;
}
#hi-suite .hi-golden-seal-sub {
    font-size: 9px;
    color: var(--ink3);
    max-width: 140px;
    line-height: 1.4;
}
#hi-suite .hi-golden-seal-title {
    margin: 0 0 8px;
    font-size: 20px;
    color: var(--gold-l);
}
#hi-suite .hi-golden-seal-desc {
    margin: 0 0 18px;
    font-size: 12px;
    color: var(--ink2);
    line-height: 1.65;
}

#hi-suite .hi-golden-flash {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 10001;
    background: radial-gradient(circle at 50% 40%, rgba(240, 208, 128, 0.45), transparent 65%);
    opacity: 0;
    animation: hiGoldenFlash 2.8s ease-out forwards;
}
@keyframes hiGoldenFlash {
    0% { opacity: 0; }
    15% { opacity: 1; }
    100% { opacity: 0; }
}
#hi-suite .hi-badge-toast,
.hi-badge-toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10002;
    padding: 12px 22px;
    border-radius: 12px;
    background: rgba(201, 168, 76, 0.2);
    border: 1px solid rgba(201, 168, 76, 0.5);
    color: var(--gold-l, #f0d080);
    font-weight: 600;
    display: none;
}
#hi-suite .hi-badge-toast.show,
.hi-badge-toast.show {
    display: block;
    animation: hiBadgeToast 3.2s ease-out forwards;
}
@keyframes hiBadgeToast {
    0%, 12% { opacity: 1; transform: translateX(-50%) translateY(0); }
    88%, 100% { opacity: 0; transform: translateX(-50%) translateY(-12px); }
}
#hi-suite #hi-pdf-root {
    position: fixed;
    left: -9999px;
    top: 0;
    width: 794px;
    padding: 0;
    background: #ffffff;
    color: #111111;
    visibility: hidden;
    pointer-events: none;
}
