/* ==================== 4. 纸上控制台 ==================== */
/* 侧栏略加宽；长德语等不换行时勿将 Lucide 图标 flex 压成 0 */
        
.sidebar {
    position: sticky; top: 120px; display: flex; flex-direction: column; gap: 40px;
    background: #fff; padding: 32px 18px; border-right: none;
    min-width: 0;
    z-index: 2;
}
.sidebar-menu li a {
    display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; font-size: 19px; font-weight: 700; color: var(--ink);
    border-radius: var(--sketch-radius-2); transition: var(--transition); margin-bottom: 4px;
    min-width: 0;
    overflow-wrap: anywhere;
    hyphens: auto;
    line-height: 1.35;
}
.sidebar-menu li a > i,
.sidebar-menu li a > svg {
    flex-shrink: 0;
    flex-grow: 0;
    width: 22px;
    height: 22px;
    margin-top: 3px;
}
.sidebar-menu li a > i svg {
    width: 22px;
    height: 22px;
}
.sidebar-menu li a.sidebar-nav-link--badge {
    position: relative;
    padding-right: 40px;
}
.sidebar-menu li a.sidebar-nav-link--badge > span:not(.sidebar-nav-badge) {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}
.sidebar-nav-badge {
    position: absolute;
    top: 6px;
    right: 10px;
    z-index: 1;
    pointer-events: none;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 6px;
    box-sizing: border-box;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.15rem;
    letter-spacing: -0.02em;
    text-align: center;
    color: #fff;
    background: linear-gradient(145deg, #f43f5e 0%, #e11d48 45%, #be123c 100%);
    border: 2px solid var(--ink);
    border-radius: 999px;
    box-shadow: 2px 2px 0 var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.sidebar-nav-badge[hidden] {
    display: none !important;
}
.sidebar-menu li a:hover { background: var(--paper-dot); transform: translateX(5px);}
.sidebar-menu li a.active { background: var(--marker-yellow); border: 2px solid var(--ink); box-shadow: 2px 2px 0 var(--ink);}

.dash-panel[hidden] {
    display: none !important;
}

.dash-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; border-bottom: 3px dashed var(--ink); padding-bottom: 20px; flex-wrap: wrap; gap: 16px;}
.dash-header h2 { font-size: clamp(22px, 4vw, 36px); font-weight: 700;}
.dash-header .btn-primary {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* 总览大厅：登录邮箱高亮，便于一眼识别 */
#dashboard-welcome-email {
    display: inline-block;
    max-width: 100%;
    padding: 3px 10px 4px;
    margin: 0 0.12em;
    font-weight: 800;
    font-size: 1.08em;
    letter-spacing: 0.01em;
    color: var(--ink);
    background: var(--marker-yellow);
    border: 2px solid var(--ink);
    border-radius: var(--sketch-radius-2);
    box-shadow: 3px 3px 0 rgba(43, 43, 43, 0.14);
    word-break: break-word;
    overflow-wrap: anywhere;
}
.dash-stat-label {
    font-size: 14px;
    font-weight: 800;
    color: var(--ink-light);
    letter-spacing: 0.04em;
}
.dash-stat-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.2;
}
.dash-stat-hint {
    font-size: 14px;
    font-weight: 700;
    color: var(--ink-light);
    line-height: 1.45;
}
.dash-overview-orders-body { overflow-x: auto; }
.dash-overview-orders-more {
    margin: 12px 0 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--ink-light);
}

/* ---------- 工单中心（单卡片：工具栏 + 可折叠新建 + 列表 + 详情） ---------- */
.support-hub {
    max-width: 56rem;
    margin: 0 auto;
}
.support-panel {
    padding: 0;
    overflow: visible;
    background: #fff;
}
.support-panel-header {
    padding: 20px 22px 18px;
    border-bottom: 2px dashed var(--ink-light);
    background: linear-gradient(180deg, #f7f6f2 0%, #fff 72%);
}
.support-panel-header-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}
.support-panel-title {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.02em;
}
.support-panel-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.support-panel-actions .btn-dash,
.support-panel-actions .btn-primary {
    margin: 0;
}
.support-panel-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
}
.support-tickets-filter-label {
    font-size: 14px;
    font-weight: 800;
    color: var(--ink);
}
/* 工单状态筛选 — Aurora 暗色主题 */
.support-status-dropdown {
    position: relative;
    z-index: 6;
    max-width: 280px;
    min-width: 0;
}
.support-status-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    min-width: 120px;
    max-width: 280px;
    margin: 0;
    padding: 8px 14px;
    box-sizing: border-box;
    font-size: 0.84rem;
    font-weight: 700;
    font-family: inherit;
    color: rgba(233, 223, 255, 0.92);
    background: rgba(12, 8, 24, 0.55);
    border: 1px solid var(--aurora-border);
    border-radius: 12px;
    box-shadow: none;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    text-align: start;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
.support-status-trigger:hover {
    transform: none;
    background: var(--accent-soft);
    border-color: rgba(167, 139, 250, 0.38);
    box-shadow: none;
}
.support-status-trigger:focus-visible {
    outline: 2px solid rgba(167, 139, 250, 0.6);
    outline-offset: 2px;
}
.support-status-trigger-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.support-status-trigger .support-status-chevron,
.support-status-trigger .lucide.support-status-chevron {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    color: rgba(167, 139, 250, 0.7);
    transition: transform 0.2s ease;
}
.support-status-dropdown.open .support-status-trigger {
    border-color: rgba(167, 139, 250, 0.45);
    background: var(--accent-soft);
}
.support-status-dropdown.open .support-status-chevron {
    transform: rotate(180deg);
}
.support-status-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 100%;
    margin: 0;
    padding: 6px;
    list-style: none;
    box-sizing: border-box;
    background: rgba(18, 12, 38, 0.96);
    border: 1px solid rgba(167, 139, 250, 0.22);
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), 0 2px 8px rgba(99, 102, 241, 0.12);
    -webkit-backdrop-filter: blur(20px) saturate(1.1);
    backdrop-filter: blur(20px) saturate(1.1);
    display: none;
    flex-direction: column;
    gap: 2px;
    z-index: 25;
}
.support-status-dropdown.open .support-status-menu {
    display: flex;
}
.support-status-option {
    display: block;
    width: 100%;
    margin: 0;
    padding: 9px 14px;
    box-sizing: border-box;
    font-size: 0.84rem;
    font-weight: 600;
    font-family: inherit;
    color: rgba(203, 195, 227, 0.85);
    text-align: start;
    background: transparent;
    border: none;
    border-radius: 9px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    text-decoration: none;
}
.support-status-option:hover {
    color: rgba(233, 223, 255, 0.96);
    background: rgba(99, 102, 241, 0.18);
}
.support-status-option[aria-selected="true"] {
    color: #e9d5ff;
    background: linear-gradient(120deg, rgba(99, 102, 241, 0.32), rgba(139, 92, 246, 0.22));
    font-weight: 700;
}
.support-status-option:focus-visible {
    outline: 2px solid rgba(167, 139, 250, 0.55);
    outline-offset: 1px;
}

.support-order-dropdown {
    position: relative;
    z-index: 8;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}
.support-order-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 12px 14px;
    box-sizing: border-box;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    color: var(--ink);
    background: var(--paper-dot);
    border: var(--border-width) solid var(--ink);
    border-radius: var(--sketch-radius-2);
    box-shadow: 3px 3px 0 var(--ink);
    cursor: pointer;
    transition: var(--transition);
    text-align: start;
}
.support-order-trigger:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 var(--ink);
}
.support-order-trigger:focus {
    outline: 2px solid var(--marker-blue);
    outline-offset: 2px;
}
.support-order-trigger-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.support-order-trigger .support-order-chevron,
.support-order-trigger .lucide.support-order-chevron {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
.support-order-dropdown.open .support-order-chevron {
    transform: rotate(180deg);
}
.support-order-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    min-width: 100%;
    max-height: min(18rem, 55vh);
    margin: 0;
    padding: 8px;
    list-style: none;
    box-sizing: border-box;
    background: #fff;
    border: var(--border-width) solid var(--ink);
    border-radius: var(--sketch-radius-3);
    box-shadow: var(--shadow-sketch);
    display: none;
    flex-direction: column;
    gap: 4px;
    z-index: 40;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.support-order-dropdown.open .support-order-menu {
    display: flex;
}
.support-order-option {
    display: block;
    width: 100%;
    margin: 0;
    padding: 10px 14px;
    box-sizing: border-box;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    line-height: 1.45;
    color: var(--ink-light);
    text-align: start;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    white-space: normal;
    overflow-wrap: anywhere;
    hyphens: auto;
}
.support-order-option:hover,
.support-order-option[aria-selected="true"] {
    color: var(--ink);
    background: var(--marker-yellow);
}
.support-order-option:focus {
    outline: 2px solid var(--marker-blue);
    outline-offset: 1px;
}
.support-new-panel-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--ink);
}
/* ══ 新建工单模态弹窗 ═════════════════════════════════ */
.support-new-ticket-modal[hidden] { display: none !important; }
.support-new-ticket-modal {
    position: fixed;
    inset: 0;
    z-index: 8500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.support-new-ticket-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 8, 24, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.support-new-ticket-card {
    position: relative;
    z-index: 1;
    width: 560px;
    max-width: 100%;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    background: linear-gradient(155deg,
        rgba(30, 27, 60, 0.98) 0%,
        rgba(20, 18, 45, 0.98) 100%
    );
    border: 1px solid rgba(167, 139, 250, 0.2);
    border-radius: 18px;
    box-shadow: 0 32px 72px -12px rgba(0, 0, 0, 0.65),
                0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    animation: supportNewModalIn 0.2s cubic-bezier(0.34, 1.35, 0.64, 1) both;
}
@keyframes supportNewModalIn {
    from { opacity: 0; transform: scale(0.9) translateY(16px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
/* 顶部彩虹条 */
.support-new-ticket-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, #818cf8, #a78bfa, #c084fc, #e879f9);
    border-radius: 18px 18px 0 0;
    pointer-events: none;
}

/* ── 头部 ─────────────────────────────────────────── */
.support-new-ticket-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 22px 16px 22px;
    background: linear-gradient(135deg,
        rgba(99,102,241,0.18) 0%,
        rgba(139,92,246,0.08) 60%,
        transparent 100%
    );
    border-bottom: 1px solid rgba(167,139,250,0.12);
    flex-shrink: 0;
}
.support-new-ticket-head-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.support-new-ticket-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(99,102,241,0.14);
    border: 1px solid rgba(129,140,248,0.22);
    color: rgba(165,180,252,0.9);
    flex-shrink: 0;
}
.support-new-ticket-icon svg,
.support-new-ticket-icon i { width: 17px; height: 17px; }
.support-new-ticket-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    background: linear-gradient(110deg, #f0e6ff 10%, #a5b4fc 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.support-new-ticket-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(167,139,250,0.15);
    color: rgba(196,181,253,0.5);
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.18s, border-color 0.18s, color 0.18s;
}
.support-new-ticket-close svg,
.support-new-ticket-close i { width: 15px; height: 15px; }
.support-new-ticket-close:hover {
    background: rgba(244,114,182,0.14);
    border-color: rgba(244,114,182,0.32);
    color: rgba(252,165,165,0.9);
}

/* ── 表单区域（scoped） ──────────────────────────── */
#support-new-ticket-modal .support-ticket-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px 24px 24px;
    background: transparent;
    max-width: none;
    margin: 0;
}
#support-new-ticket-modal .support-form-hint {
    margin: 0;
    padding: 10px 14px;
    font-size: 0.8rem;
    line-height: 1.6;
    color: rgba(167,139,250,0.6);
    background: rgba(99,102,241,0.06);
    border: 1px solid rgba(129,140,248,0.12);
    border-radius: 8px;
}
#support-new-ticket-modal .support-form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: rgba(196,181,253,0.75);
}
#support-new-ticket-modal .support-form-req {
    color: rgba(248,113,113,0.8);
    margin-left: 3px;
}
#support-new-ticket-modal .support-form-sublabel {
    margin: 5px 0 0;
    font-size: 0.74rem;
    color: rgba(139,116,184,0.55);
}
#support-new-ticket-modal .support-form-input,
#support-new-ticket-modal .support-form-textarea {
    width: 100%;
    box-sizing: border-box;
    background: rgba(7, 5, 16, 0.55) !important;
    border: 1px solid rgba(129,140,248,0.22) !important;
    border-radius: 10px;
    color: rgba(225,217,248,0.92);
    font-size: 0.88rem;
    font-family: inherit;
    padding: 10px 14px;
    box-shadow: none !important;
    outline: none;
    transition: border-color 0.18s, box-shadow 0.18s;
    resize: vertical;
}
#support-new-ticket-modal .support-form-input::placeholder,
#support-new-ticket-modal .support-form-textarea::placeholder {
    color: rgba(139,116,184,0.45);
}
#support-new-ticket-modal .support-form-input:focus,
#support-new-ticket-modal .support-form-textarea:focus {
    border-color: rgba(129,140,248,0.55) !important;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.15) !important;
    outline: none !important;
    background: rgba(7,5,16,0.68) !important;
}
/* 关联订单下拉 */
#support-new-ticket-modal .support-order-trigger {
    width: 100%;
    box-sizing: border-box;
    background: rgba(7,5,16,0.55) !important;
    border: 1px solid rgba(129,140,248,0.22) !important;
    border-radius: 10px;
    color: rgba(196,181,253,0.8);
    font-size: 0.88rem;
    padding: 10px 14px;
    box-shadow: none !important;
    transition: border-color 0.18s;
}
#support-new-ticket-modal .support-order-trigger:hover {
    transform: none;
    box-shadow: none !important;
    border-color: rgba(129,140,248,0.42) !important;
}
#support-new-ticket-modal .support-order-menu {
    background: rgba(18, 15, 44, 0.98);
    border: 1px solid rgba(129,140,248,0.22) !important;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.5);
    box-sizing: border-box;
    padding: 6px;
    gap: 2px;
}
#support-new-ticket-modal .support-order-option {
    padding: 9px 12px;
    font-size: 0.84rem;
    font-weight: 500;
    color: rgba(196,181,253,0.75);
    background: transparent;
    border-radius: 7px;
    border: none;
    transition: background 0.15s, color 0.15s;
}
#support-new-ticket-modal .support-order-option:hover,
#support-new-ticket-modal .support-order-option[aria-selected="true"] {
    color: rgba(225,217,248,0.95);
    background: rgba(99,102,241,0.18);
}
#support-new-ticket-modal .support-order-option:focus {
    outline: none;
    background: rgba(99,102,241,0.14);
    color: rgba(225,217,248,0.95);
}
/* 错误/成功提示 */
#support-new-ticket-modal .support-form-err[hidden] { display: none !important; }
#support-new-ticket-modal .support-form-err {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 9px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(252,165,165,0.92);
    background: rgba(220,38,38,0.1);
    border: 1px solid rgba(248,113,113,0.25);
    border-radius: 8px;
}
#support-new-ticket-modal .support-form-err::before {
    content: '!';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(248,113,113,0.25);
    color: rgba(252,165,165,0.9);
    font-size: 0.7rem;
    font-weight: 800;
    flex-shrink: 0;
}
#support-new-ticket-modal .support-form-ok[hidden] { display: none !important; }
#support-new-ticket-modal .support-form-ok {
    margin: 0;
    padding: 9px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(134,239,172,0.9);
    background: rgba(16,185,129,0.1);
    border: 1px solid rgba(52,211,153,0.22);
    border-radius: 8px;
}
/* 提交按钮 */
#support-new-ticket-modal .support-form-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 4px;
}
#support-new-ticket-modal .support-form-actions .btn-primary,
#support-new-ticket-modal .support-form-actions .ac-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px;
    padding: 0.55rem 1.25rem;
    font-size: 0.88rem;
    font-weight: 700;
    font-family: inherit;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    border-radius: 10px;
    box-shadow: none;
    transition: background 0.2s, box-shadow 0.2s, border-color 0.2s;
}
#support-new-ticket-modal .support-form-actions .btn-primary.sketch-box,
#support-new-ticket-modal .support-form-actions .btn-primary,
#support-new-ticket-modal .support-form-actions .ac-btn--primary {
    background: linear-gradient(135deg, rgba(79,70,229,0.82), rgba(109,40,217,0.72));
    border: 1px solid rgba(167,139,250,0.4);
    color: #ede9fe;
    box-shadow: 0 2px 12px rgba(99,102,241,0.22);
}
#support-new-ticket-modal .support-form-actions .btn-primary.sketch-box:hover,
#support-new-ticket-modal .support-form-actions .btn-primary:hover,
#support-new-ticket-modal .support-form-actions .ac-btn--primary:hover {
    transform: none;
    background: linear-gradient(135deg, rgba(99,102,241,0.9), rgba(139,92,246,0.8));
    box-shadow: 0 4px 20px rgba(99,102,241,0.36);
}
#support-new-ticket-modal .support-form-actions .btn-primary i,
#support-new-ticket-modal .support-form-actions .btn-primary svg,
#support-new-ticket-modal .support-form-actions .ac-btn i,
#support-new-ticket-modal .support-form-actions .ac-btn svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}
.support-list-section {
    padding: 20px 22px 22px;
}
.support-list-heading {
    margin: 0 0 12px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-light);
}
.support-tickets-body {
    min-height: 100px;
    margin-bottom: 0;
}
.support-tickets-body--scroll {
    max-height: 22rem;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    border: var(--border-width) solid var(--ink-light);
    border-radius: var(--sketch-radius-2);
    padding: 4px 0;
}
.support-tickets-placeholder,
.support-tickets-empty {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.55;
    color: var(--ink-light);
}
.support-tickets-err {
    margin: 0;
    padding: 12px 14px;
    font-size: 15px;
    font-weight: 800;
    color: #9f1239;
    background: #fff1f2;
    border: var(--border-width) solid #9f1239;
    border-radius: var(--sketch-radius-2);
}
.support-tickets-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    font-weight: 700;
}
.support-tickets-table th,
.support-tickets-table td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 2px solid var(--paper-dot);
    vertical-align: top;
}
.support-tickets-table th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ink-light);
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
    box-shadow: 0 2px 0 var(--paper-dot);
}
.support-tickets-table tr:last-child td {
    border-bottom: none;
}
.support-ticket-row {
    cursor: pointer;
    transition: background 0.12s ease;
}
.support-ticket-row:hover,
.support-ticket-row:focus-visible {
    background: var(--paper-dot);
    outline: none;
}
.support-ticket-row--active {
    background: rgba(147, 197, 253, 0.2);
}
.support-ticket-row--fresh {
    background: linear-gradient(90deg, rgba(251, 191, 36, 0.22) 0%, rgba(255, 255, 255, 0) 52%);
    box-shadow: inset 4px 0 0 #f59e0b;
}
.support-ticket-row--fresh:hover,
.support-ticket-row--fresh:focus-visible {
    background: linear-gradient(90deg, rgba(251, 191, 36, 0.35) 0%, var(--paper-dot) 55%);
}
.support-ticket-title-stack {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
}
.support-ticket-subj-text {
    flex: 1 1 8rem;
    min-width: 0;
}
.support-ticket-fresh-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding: 4px 10px 4px 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #9a3412;
    background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%);
    border: 2px solid #ea580c;
    border-radius: 999px;
    box-shadow: 2px 2px 0 rgba(234, 88, 12, 0.35);
}
.support-ticket-fresh-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ea580c;
    border: 2px solid var(--ink);
    box-shadow: 0 0 0 2px #fff;
    animation: support-fresh-pulse 1.8s ease-in-out infinite;
}
@keyframes support-fresh-pulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.75;
        transform: scale(0.92);
    }
}
.support-ticket-id {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.support-ticket-subj {
    word-break: break-word;
    max-width: 12rem;
}
@media (min-width: 640px) {
    .support-ticket-subj {
        max-width: none;
    }
}
.support-ticket-date {
    white-space: nowrap;
    font-size: 13px;
    color: var(--ink-light);
}
.support-ticket-detail {
    margin-top: 0;
    padding: 18px 22px 24px;
}
.support-ticket-detail-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}
.support-ticket-detail-title {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
    flex: 1;
    min-width: 0;
}
.support-ticket-detail-head-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* 回复切换按钮 */

.support-ticket-detail-close {
    flex-shrink: 0;
    margin: 0;
    padding: 6px 10px;
}
.support-ticket-detail-meta {
    margin: 0 0 14px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink-light);
}
.support-ticket-detail-thread {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
    margin-bottom: 18px;
    max-height: 26rem;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 6px 12px;
}
.support-msg {
    padding: 14px 18px 16px;
    border: var(--border-width) solid var(--ink);
    border-radius: var(--sketch-radius-2);
    background: var(--paper);
    max-width: min(40rem, 96%);
    width: fit-content;
    min-width: 0;
    box-sizing: border-box;
}
.support-msg--staff {
    align-self: flex-start;
    margin-right: auto;
    background: #f0fdf4;
    border-color: #166534;
    border-top-left-radius: 4px;
}
.support-msg--client {
    align-self: flex-end;
    margin-left: auto;
    background: #fff;
    border-top-right-radius: 4px;
    box-shadow: 2px 2px 0 rgba(26, 26, 26, 0.08);
}
.support-msg-meta {
    font-size: 13px;
    font-weight: 800;
    color: var(--ink-light);
    margin-bottom: 8px;
}
.support-msg--client .support-msg-meta {
    text-align: right;
}
.support-msg-body {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.65;
    color: var(--ink);
    white-space: pre-wrap;
    word-break: break-word;
}
.support-msg--client .support-msg-body {
    text-align: left;
}
.support-ticket-reply-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.support-ticket-reply-textarea {
    min-height: 100px;
    margin: 0;
}
.support-ticket-reply-actions .btn-primary {
    margin: 0;
}

.support-ticket-form {
    padding: 24px 22px 28px;
    max-width: 44em;
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: #fff;
}
.support-form-hint {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.55;
    color: var(--ink-light);
}
.support-form-req {
    color: #b91c1c;
    font-weight: 800;
}
.support-form-err {
    margin: 0;
    padding: 12px 14px;
    font-size: 15px;
    font-weight: 800;
    color: #9f1239;
    background: #fff1f2;
    border: var(--border-width) solid #9f1239;
}
.support-form-ok {
    margin: 0;
    padding: 12px 14px;
    font-size: 15px;
    font-weight: 800;
    color: #14532d;
    background: #ecfdf5;
    border: var(--border-width) solid #166534;
}
.support-form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}
.support-form-sublabel {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--ink-light);
}
.support-form-label {
    font-size: 16px;
    font-weight: 800;
    color: var(--ink);
}
.support-form-input,
.support-form-textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    color: var(--ink);
    background: var(--paper-dot);
    border: var(--border-width) solid var(--ink);
    border-radius: var(--sketch-radius-2);
    box-shadow: 3px 3px 0 var(--ink);
}
.support-form-textarea {
    resize: vertical;
    min-height: 180px;
    line-height: 1.55;
}
.support-form-input:focus,
.support-form-textarea:focus {
    outline: 2px solid var(--marker-blue);
    outline-offset: 2px;
}
.support-form-input::placeholder,
.support-form-textarea::placeholder {
    color: var(--ink-light);
    font-weight: 600;
}
.support-form-actions {
    margin-top: 4px;
}
.support-form-actions .btn-primary {
    margin: 0;
}
        
/* 我的机器：≤2 张/页单列，≥3 张/页双列；窄屏强制单列；分页条占满一行 */
.server-list {
    display: grid;
    gap: 20px;
    align-items: start;
}
.server-list--cols-1 {
    grid-template-columns: 1fr;
}
.machine-list-pager {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px 20px;
    padding: 12px 18px;
    margin: 10px 0 0;
    background: #f4f3ef;
    border: 1px solid #d8d4cb;
    border-radius: 12px;
    box-shadow: none;
}
.machine-list-pager-nav {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    color: #1a1a1a;
    background: #fff;
    border: 1px solid #c9c5bc;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.machine-list-pager-nav:hover:not(:disabled) {
    background: #fafaf8;
    border-color: #9ca3af;
}
.machine-list-pager-nav:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.machine-list-pager-nav svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.machine-list-pager-center {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 8px;
    font-size: 14px;
    font-weight: 600;
    color: #57534e;
}
.machine-list-pager-prefix {
    color: #78716c;
}
.machine-list-pager-suffix {
    color: #57534e;
}
.machine-list-pager-total {
    color: #78716c;
    font-weight: 500;
}
.machine-list-pager-input {
    width: 3rem;
    min-width: 2.75rem;
    padding: 6px 4px;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    color: #1a1a1a;
    background: #fff;
    border: 1px solid #b8b4ab;
    border-radius: 6px;
    -moz-appearance: textfield;
}
.machine-list-pager-input::-webkit-outer-spin-button,
.machine-list-pager-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.machine-list-pager-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}

/* 单列（≤2 张/页纵向堆叠）时略收紧，避免两张大卡占满一屏 */
#machine-list-api.server-list--cols-1 {
    gap: 14px;
}
#machine-list-api.server-list--cols-1 .server-card--api.sketch-box.server-card {
    padding: 14px 16px 40px;
    gap: 10px;
}
#machine-list-api.server-list--cols-1 .machine-list-dismiss-btn {
    width: 36px;
    height: 36px;
    right: 10px;
    bottom: 8px;
}
#machine-list-api.server-list--cols-1 .machine-list-dismiss-btn svg {
    width: 18px;
    height: 18px;
}
#machine-list-api.server-list--cols-1 .server-card--api .server-title-wrap h3.server-card-title-host {
    font-size: 20px;
}
#machine-list-api.server-list--cols-1 .server-card--api .server-specs-grid {
    padding: 10px 12px;
    gap: 8px 12px;
}
#machine-list-api.server-list--cols-1 .server-card--api .server-card-footer {
    padding-top: 8px;
    gap: 6px;
}
#machine-list-api.server-list--cols-1 .server-card--api .server-card-footer .btn-dash {
    padding: 5px 10px;
    font-size: 13px;
}

/* 未开通机器：推荐下单与文档 */
.machine-empty-state {
    padding: 8px 0 24px;
    max-width: 920px;
    margin-inline: auto;
    width: 100%;
}
.machine-empty-head {
    text-align: center;
    margin-bottom: 28px;
}
.machine-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    border: var(--border-width) solid var(--ink);
    border-radius: var(--sketch-radius-3);
    background: var(--paper-dot);
    box-shadow: 3px 3px 0 var(--ink);
}
.machine-empty-icon i {
    width: 32px;
    height: 32px;
    stroke-width: 2.25px;
}
.machine-empty-title {
    margin: 0 0 12px;
    font-size: 28px;
    font-weight: 800;
    color: var(--ink);
}
.machine-empty-lead {
    margin: 0 auto;
    max-width: 36em;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.65;
    color: var(--ink-light);
}
.machine-empty-eyebrow {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: 0.06em;
}
.machine-recommend-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}
.machine-rec-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 22px 20px;
    text-decoration: none;
    color: inherit;
    background: #fff;
    position: relative;
    transition: var(--transition);
}
.machine-rec-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--ink);
    color: inherit;
}
.machine-rec-card.sketch-box:hover {
    transform: translate(-2px, -2px);
}
.machine-rec-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 10px;
    border: 2px solid var(--ink);
    border-radius: var(--sketch-radius-2);
    background: var(--marker-yellow);
}
.machine-rec-ico {
    width: 28px;
    height: 28px;
    stroke-width: 2.25px;
}
.machine-rec-card strong {
    font-size: 19px;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.3;
}
.machine-rec-card > span:last-of-type {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--ink-light);
}
.machine-empty-note {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 700;
    color: var(--ink-light);
    line-height: 1.5;
}

@media (max-width: 900px) {
    .machine-recommend-grid {
        grid-template-columns: 1fr;
    }
}
.server-card { padding: 32px; display: flex; flex-direction: column; gap: 24px; background: #fff;}
        
.server-card-header { display: flex; justify-content: space-between; align-items: flex-start;}
.server-title-wrap h3 { font-size: 28px; font-weight: 700; display: flex; align-items: center; gap: 12px; margin-bottom: 4px;}
.server-title-wrap p { font-size: 16px; color: var(--ink-light); }
        
/* 我的机器 · 状态胶囊：绿 / 橙 / 红 + 圆点 + 横向文案 */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px 8px 14px;
    border: 2px solid var(--ink);
    border-radius: 999px;
    font-weight: 800;
    box-shadow: 3px 3px 0 rgba(17, 17, 17, 0.1);
    max-width: 100%;
}
.status-badge-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 2px solid var(--ink);
    flex-shrink: 0;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}
.status-badge-label {
    font-size: 15px;
    line-height: 1.25;
    letter-spacing: 0.02em;
    white-space: nowrap;
}
/* 绿：可连接 */
.status-tone--green {
    color: var(--ink);
    background: linear-gradient(145deg, #ecfdf5 0%, #d1fae5 55%, #a7f3d0 100%);
}
.status-tone--green .status-badge-dot {
    background: #16a34a;
    border-color: #14532d;
}
/* 橙：待开通 / 已激活等数据 / 已暂停 */
.status-tone--orange {
    color: var(--ink);
    background: linear-gradient(145deg, #fffbeb 0%, #ffedd5 50%, #fdba74 100%);
}
.status-tone--orange .status-badge-dot {
    background: #ea580c;
    border-color: #7c2d12;
}
/* 红：开通失败 / 已取消 / 未知 */
.status-tone--red {
    color: var(--ink);
    background: linear-gradient(145deg, #fef2f2 0%, #fecaca 55%, #f87171 100%);
}
.status-tone--red .status-badge-dot {
    background: #dc2626;
    border-color: #7f1d1d;
}
        
.server-specs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; background: var(--paper); padding: 24px; border: 2px dashed var(--ink-light); border-radius: var(--sketch-radius-1);}
.spec-item { display: flex; flex-direction: column; gap: 4px; }
.spec-item span { font-size: 16px; color: var(--ink-light); }
.spec-item strong { font-size: 22px; font-weight: 700; color: var(--ink);}

.server-card-footer { display: flex; justify-content: flex-end; gap: 16px; border-top: 2px solid var(--ink); padding-top: 24px;}
.server-card-footer--wrap {
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
}
.machine-ticket-hint {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--ink-light);
    line-height: 1.45;
}
.server-card--api .machine-ticket-hint { margin-top: 4px; }
.btn-dash {
    background: #fff; color: var(--ink); border: 2.5px solid var(--ink); padding: 10px 20px; font-size: 18px; font-weight: 700; border-radius: var(--sketch-radius-2); cursor: pointer; transition: var(--transition); display: inline-flex; align-items: center; gap: 8px; box-shadow: 3px 3px 0 var(--ink);
}
.btn-dash:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.btn-dash.primary { background: var(--marker-yellow); }


/* 账单清单 · 后台订单与发票 */
.dash-header-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}
.dash-header-actions .btn-primary {
    margin: 0;
}
.billing-fetch-err {
    padding: 14px 18px;
    margin-bottom: 20px;
    font-weight: 800;
    color: #9f1239;
    background: #fff1f2;
    border: var(--border-width) solid #9f1239;
}
.billing-blocks {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 20px;
}
.billing-block {
    padding: 22px 20px;
    background: #fff;
}
.billing-block-title {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px dashed var(--ink-light);
}
.billing-block-body {
    overflow-x: auto;
}
/* 订单/发票超过 5 条时由 JS 加上此类：表体区域纵向滚动，表头吸顶 */
.billing-block-body--scroll {
    max-height: 17.5rem;
    overflow-y: auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 0 0 var(--sketch-radius-2) var(--sketch-radius-2);
}
.billing-block-body--scroll .billing-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #fff;
    box-shadow: 0 2px 0 var(--paper-dot);
}
.billing-loading,
.billing-empty {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--ink-light);
}
.billing-footnote {
    font-size: 14px;
    font-weight: 700;
    color: var(--ink-light);
    margin: 0;
    max-width: 52em;
    line-height: 1.5;
}
.billing-footnote code {
    font-size: 12px;
    word-break: break-all;
}
.billing-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    font-size: 15px;
    font-weight: 700;
}
.billing-table th,
.billing-table td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 2px solid var(--paper-dot);
    vertical-align: top;
}
.billing-table th {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ink-light);
}
.billing-table tr:last-child td {
    border-bottom: none;
}
.billing-table--compact {
    min-width: 0;
    font-size: 14px;
}
.billing-table--compact th,
.billing-table--compact td {
    padding: 8px 10px;
}
.billing-invoice-actions,
.billing-table td:has(.billing-status-pill) {
    white-space: nowrap;
    vertical-align: middle;
}
.billing-invoice-pay-btn {
    margin: 0;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 800;
}

/* 发票去支付 · 多网关选择（与定价页一致） */
body.pay-method-modal-open {
    overflow: hidden;
}
.pay-method-modal {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}
.pay-method-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(43, 43, 43, 0.4);
    cursor: pointer;
}
.pay-method-modal-panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    padding: 28px 24px 22px;
    background: var(--paper);
}
.pay-method-modal-title {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 10px;
    text-align: center;
}
.pay-method-modal-lead {
    font-size: 15px;
    color: var(--ink-light);
    line-height: 1.5;
    margin: 0 0 20px;
    text-align: center;
}
.pay-method-modal-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}
.pay-method-option {
    width: 100%;
    text-align: left;
    padding: 16px 18px;
    cursor: pointer;
    font: inherit;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    transition: var(--transition);
    background: #fff;
}
.pay-method-option-ico {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--ink);
}
.pay-method-option-ico img,
.pay-method-option-ico svg {
    display: block;
    max-width: 28px;
    max-height: 28px;
    object-fit: contain;
}
.pay-method-option-textcol {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}
.pay-method-option:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--ink);
}
.pay-method-option-main {
    font-size: 17px;
    font-weight: 800;
    color: var(--ink);
}
.pay-method-option-sub {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-light);
}
.pay-method-cancel {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 4px;
    padding: 8px;
    border: none;
    background: none;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}
.machine-empty-api-hint {
    margin: 12px 0 0;
    padding: 12px 14px;
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    background: var(--marker-blue);
    border: var(--border-width) solid var(--ink);
    border-radius: var(--sketch-radius-2);
}
.machine-api-loading,
.machine-api-err {
    margin: 0;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    color: var(--ink-light);
}
.machine-api-err { color: var(--ink); }
.machine-pending-body {
    font-size: 16px;
    font-weight: 700;
    color: var(--ink-light);
    line-height: 1.55;
    padding: 8px 0 0;
}
.machine-pending-body p { margin: 0 0 10px; }
.machine-dc-line {
    font-size: 15px;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 12px !important;
}
.machine-row-note {
    margin: 8px 0 0;
    font-size: 14px;
    color: var(--ink);
    word-break: break-word;
}
.machine-cmd,
.machine-secret {
    font-size: 14px;
    font-weight: 700;
    word-break: break-all;
    display: inline-block;
    max-width: 100%;
}
.spec-item--password-row .machine-pw-strong {
    display: block;
    margin-top: 4px;
    font-weight: 700;
}
.machine-pw-inline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    max-width: 100%;
}
.machine-pw-eye {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 2px solid var(--ink);
    border-radius: var(--sketch-radius-2);
    background: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 2px 0 var(--ink);
    transition: var(--transition);
    color: var(--ink);
}
.machine-pw-eye:hover {
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0 var(--ink);
    background: var(--paper-dot);
}
.machine-pw-eye:focus-visible {
    outline: 3px solid var(--marker-yellow);
    outline-offset: 2px;
}
.machine-pw-eye svg {
    width: 20px;
    height: 20px;
}
.server-list > .server-card--api {
    margin-bottom: 0;
}
.server-card--api.sketch-box.server-card {
    position: relative;
    padding: 18px 20px 44px;
    gap: 12px;
}
.machine-list-dismiss-btn {
    position: absolute;
    right: 12px;
    bottom: 10px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    margin: 0;
    font: inherit;
    color: var(--ink-light);
    background: #fff;
    border: 2px solid var(--ink-light);
    border-radius: var(--sketch-radius-2);
    cursor: pointer;
    box-shadow: 2px 2px 0 var(--ink-light);
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.machine-list-dismiss-btn:hover {
    color: #9f1239;
    border-color: #9f1239;
    background: #fff1f2;
}
.machine-list-dismiss-btn:focus-visible {
    outline: 3px solid var(--marker-yellow);
    outline-offset: 2px;
}
.machine-list-dismiss-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
.machine-api-all-dismissed {
    margin: 0;
    padding: 16px 18px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.55;
    color: var(--ink);
}
.server-card--api .server-title-wrap h3.server-card-title-host {
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 8px;
    row-gap: 2px;
    margin-bottom: 2px;
    font-size: 22px;
    line-height: 1.25;
}
.server-card--api .server-card-title-host .server-host-text {
    word-break: break-all;
}
.server-card--api .server-head-dc {
    font-size: 16px;
    font-weight: 800;
    color: var(--ink-light);
    white-space: nowrap;
}
.server-card--api .server-title-wrap p {
    font-size: 14px;
    line-height: 1.4;
    margin-top: 2px;
}
.server-card--api .status-badge {
    padding: 7px 14px 7px 11px;
    gap: 8px;
    flex-shrink: 0;
}
.server-card--api .status-badge-label {
    font-size: 13px;
    letter-spacing: 0.04em;
}
.server-card--api .status-badge-dot {
    width: 10px;
    height: 10px;
}
@media (max-width: 520px) {
    .server-card--api .status-badge-label {
        white-space: normal;
        max-width: 6.5em;
        text-align: left;
    }
}
.server-card--api .server-specs-grid {
    padding: 12px 14px;
    gap: 10px 14px;
}
.server-card--api .spec-item {
    gap: 2px;
}
.server-card--api .spec-item span {
    font-size: 13px;
}
.server-card--api .spec-item strong {
    font-size: 16px;
}
.server-card--api .machine-cmd,
.server-card--api .machine-secret {
    font-size: 13px;
}
.server-card--api .machine-ticket-hint {
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 0;
}
.server-card--api .server-card-footer {
    padding-top: 12px;
    gap: 8px;
}
.server-card--api .server-card-footer .btn-dash {
    padding: 6px 12px;
    font-size: 14px;
    box-shadow: 2px 2px 0 var(--ink);
}
.server-card--api .server-card-footer .btn-dash:hover {
    box-shadow: 3px 3px 0 var(--ink);
}
.server-card--api .machine-pw-eye svg {
    width: 18px;
    height: 18px;
}
@media (max-width: 900px) {
    .server-card--api .server-specs-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ---------- 状态监控 ---------- */
/* 监控卡片区与「我的机器」共用 .server-list 列数规则；分页条见 .machine-list-pager */
/* 超过 5 条：约 5 行高度 + 行间 gap，超出部分垂直滚动（单行/折行标题下略作余量） */

/* =====================================================================
   实例管理：列表在上、详情在下（inst-* 结构层；Apple 主题色见 -apple.css）
   ===================================================================== */

.inst-mgmt {
    display: flex;
    flex-direction: column;
    border: 1px solid #e5e5ea;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
}

.inst-sidebar {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid #e5e5ea;
}

.inst-sidebar-head {
    padding: 0.65rem 1rem;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #86868b;
    background: #fafafa;
    border-bottom: 1px solid #e5e5ea;
}

.inst-sidebar-body {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 12px;
}

.inst-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    min-height: 110px;
    padding: 14px;
    cursor: pointer;
    border: 1px solid #e5e5ea;
    border-radius: 12px;
    background: #fafafa;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.inst-item:hover {
    border-color: #d2d2d7;
    background: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px -6px rgba(0, 0, 0, 0.08);
}

.inst-item:focus-visible {
    outline: 2px solid rgba(41, 151, 255, 0.45);
    outline-offset: 2px;
}

.inst-item.active {
    border-color: #1d1d1f;
    background: #fff;
    box-shadow: 0 0 0 1px #1d1d1f;
}

.inst-item-label {
    display: flex;
}

.inst-item-value {
    font-size: 1rem;
    font-weight: 700;
    color: #1d1d1f;
    line-height: 1.25;
    word-break: break-word;
}

.inst-item-spec {
    font-size: 13px;
    font-weight: 600;
    color: #515154;
    line-height: 1.35;
}

.inst-item-hint {
    font-size: 11px;
    font-weight: 500;
    color: #86868b;
    line-height: 1.45;
}

.inst-item-label .inst-status-pill {
    padding: 4px 10px;
    font-size: 11px;
    gap: 5px;
}

.inst-item-label .inst-status-dot {
    width: 6px;
    height: 6px;
}

.inst-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.inst-status-dot--green { background: #248a3d; }
.inst-status-dot--orange { background: #bf4800; }
.inst-status-dot--red { background: #d70015; }

.inst-detail {
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: #fafafa;
    border-top: 1px solid #e5e5ea;
}

.inst-detail-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 22px 16px;
    background: #fff;
    border-bottom: 1px solid #e5e5ea;
}

.inst-detail-head--pending {
    background: linear-gradient(110deg, #fff 0%, #fff8eb 100%);
}

.inst-detail-head-info {
    flex: 1 1 0;
    min-width: 0;
}

.inst-detail-head-art {
    flex-shrink: 0;
    width: min(280px, 38%);
    min-width: 0;
}

.inst-pending-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 14px;
    background: #fff8eb;
    border: 1px solid rgba(191, 72, 0, 0.18);
    border-radius: 12px;
}

.inst-pending-info__dc {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: #bf4800;
}

.inst-pending-info__dc svg,
.inst-pending-info__dc i {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.inst-pending-info__lead,
.inst-pending-info__support {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: #515154;
}

.inst-pending-info__err {
    margin: 0;
    font-size: 12px;
    color: #d70015;
}

.inst-pending-info__support a {
    color: #0066cc;
    font-weight: 600;
}

.inst-detail-title {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 4px;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    color: #1d1d1f;
    word-break: break-word;
}

.inst-detail-title svg,
.inst-detail-title i {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.inst-detail-order-tag {
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 600;
    color: #86868b;
}

.inst-detail-status-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.inst-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.inst-status-pill svg,
.inst-status-pill i {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.inst-status-pill--running {
    color: #248a3d;
    background: rgba(36, 138, 61, 0.1);
    border-color: rgba(36, 138, 61, 0.22);
}

.inst-status-pill--pending {
    color: #bf4800;
    background: rgba(191, 72, 0, 0.1);
    border-color: rgba(191, 72, 0, 0.22);
}

.inst-status-pill--order {
    color: #515154;
    background: #f5f5f7;
    border-color: #d2d2d7;
}

.inst-detail-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 20px;
    padding: 20px 22px 24px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.inst-info-text {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.55;
    color: #515154;
}

.inst-info-text strong {
    color: #1d1d1f;
    font-weight: 700;
}

.inst-info-text a {
    color: #0066cc;
}

.inst-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.inst-section-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #86868b;
}

.inst-section-title svg,
.inst-section-title i {
    width: 14px;
    height: 14px;
}

.inst-power-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.inst-power-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    color: #1d1d1f;
    background: #fff;
    border: 1px solid #d2d2d7;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.inst-power-btn:hover:not(:disabled) {
    border-color: #86868b;
    background: #f5f5f7;
}

.inst-power-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    color: #aeaeb2;
    background: #f5f5f7;
    border-color: #e5e5ea;
}

.inst-power-btn svg,
.inst-power-btn i {
    width: 15px;
    height: 15px;
}

.inst-connect-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.inst-connect-row {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px 12px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #e5e5ea;
    border-radius: 12px;
}

.inst-connect-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 8px;
    background: #f5f5f7;
    color: #515154;
}

.inst-connect-icon svg,
.inst-connect-icon i {
    width: 14px;
    height: 14px;
}

.inst-connect-label {
    min-width: 3em;
    font-size: 13px;
    font-weight: 700;
    color: #1d1d1f;
}

.inst-connect-value {
    min-width: 0;
    font-size: 13px;
    font-weight: 500;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    color: #515154;
    word-break: break-all;
}

.inst-connect-value--empty {
    color: #aeaeb2;
    font-style: italic;
}

.inst-connect-value--vnc {
    color: #248a3d;
}

.inst-connect-row--vnc-ready {
    border-color: rgba(36, 138, 61, 0.28);
    background: rgba(36, 138, 61, 0.06);
}

.inst-connect-status {
    font-size: 12px;
    font-weight: 600;
    color: #86868b;
    white-space: nowrap;
}

.inst-connect-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.inst-connect-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    color: #1d1d1f;
    background: #fff;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.inst-connect-btn:hover {
    background: #f5f5f7;
    border-color: #86868b;
}

.inst-connect-btn svg,
.inst-connect-btn i {
    width: 12px;
    height: 12px;
}

.inst-pw-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 13px;
    color: #515154;
    letter-spacing: 0.04em;
}

#machine-list-api .machine-pw-eye.inst-connect-btn {
    width: 30px;
    height: 30px;
    padding: 0;
    justify-content: center;
    box-shadow: none;
}

#machine-list-api .machine-pw-eye.inst-connect-btn svg,
#machine-list-api .machine-pw-eye.inst-connect-btn i {
    width: 14px;
    height: 14px;
}

.inst-sidebar-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 10px 16px 14px;
    border-top: 1px solid #e5e5ea;
    background: #fff;
}

.inst-sidebar-pager-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 13px;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    color: #1d1d1f;
    background: #fff;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.inst-sidebar-pager-btn:hover:not(:disabled) {
    background: #f5f5f7;
    border-color: #86868b;
}

.inst-sidebar-pager-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    color: #aeaeb2;
}

.inst-sidebar-pager-btn svg,
.inst-sidebar-pager-btn i {
    width: 13px;
    height: 13px;
}

.inst-sidebar-pager-info {
    font-size: 12px;
    font-weight: 600;
    color: #86868b;
}

@media (max-width: 900px) {
    .inst-sidebar-body {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .inst-detail-head {
        flex-direction: column;
        align-items: stretch;
    }

    .inst-detail-head-art {
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .inst-detail-body {
        padding: 14px 16px 18px;
    }

    .inst-connect-row {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
    }

    .inst-connect-label {
        grid-column: 1;
    }

    .inst-connect-value {
        grid-column: 1 / -1;
    }

    .inst-connect-actions,
    .inst-connect-status {
        grid-column: 2;
        justify-self: end;
    }
}

