/* ============================================================
   EclipseBot — 基于 ElevenLabs Design System
   暖灰底色 · Waldenburg/Inter 字体 · 克制编辑感
   ============================================================ */

:root {
    --primary: #292524;
    --primary-active: #0c0a09;
    --ink: #0c0a09;
    --body: #4e4e4e;
    --body-strong: #292524;
    --muted: #777169;
    --muted-soft: #a8a29e;
    --on-primary: #ffffff;

    --canvas: #f5f5f5;
    --canvas-soft: #fafafa;
    --surface-card: #ffffff;
    --surface-strong: #f0efed;

    --hairline: #e7e5e4;
    --hairline-soft: #f0efed;
    --hairline-strong: #d6d3d1;

    --gradient-mint: #a7e5d3;
    --gradient-peach: #f4c5a8;
    --gradient-lavender: #c8b8e0;
    --gradient-sky: #a8c8e8;

    --semantic-error: #dc2626;
    --semantic-success: #16a34a;

    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-xxl: 24px;
    --radius-pill: 9999px;

    --space-xs: 8px;
    --space-sm: 12px;
    --space-base: 16px;
    --space-md: 20px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-xxl: 48px;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'Cascadia Code', 'Cascadia Mono', 'JetBrains Mono', 'Fira Code', monospace;
}


/* ─── Reset ─── */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0.16px;
    color: var(--body);
    background: var(--canvas);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--primary); }

/* ─── Vue 加载前隐藏 ─── */
[v-cloak] { display: none; }


/* ─── Container ─── */

.app-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    min-height: 100vh;
}


/* ─── Nav ─── */

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
    border-bottom: 1px solid var(--hairline);
    background: var(--canvas);
}

.logo {
    font-family: var(--font-sans);
    font-size: 20px;
    font-weight: 600;
    color: var(--ink);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.user-info {
    font-size: 15px;
    font-weight: 500;
    color: var(--muted);
}

.role-badge {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.96px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    background: var(--surface-strong);
    color: var(--ink);
}

.btn-link {
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 500;
    color: var(--muted);
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
}
.btn-link:hover { color: var(--ink); text-decoration: none; }


/* ─── Flash ─── */

.flash {
    padding: 10px 14px;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-base);
    font-size: 14px;
    background: var(--surface-card);
    color: var(--body);
}
.flash.error { border-left: 2px solid var(--semantic-error); color: var(--semantic-error); }
.flash.success { border-left: 2px solid var(--semantic-success); color: var(--semantic-success); }


/* ─── Buttons ─── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    border-radius: var(--radius-pill);
    padding: 10px 20px;
    height: 40px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
    text-decoration: none;
}
.btn:disabled { opacity: 0.35; cursor: not-allowed; }

.btn-primary {
    background: var(--primary);
    color: var(--on-primary);
    border-color: var(--primary);
}
.btn-primary:hover:not(:disabled) { background: var(--primary-active); border-color: var(--primary-active); }

.btn-secondary {
    background: var(--surface-card);
    color: var(--ink);
    border-color: var(--hairline);
}
.btn-secondary:hover:not(:disabled) { border-color: var(--hairline-strong); }

.btn-outline {
    background: transparent;
    color: var(--ink);
    border-color: var(--hairline);
}
.btn-outline:hover:not(:disabled) { border-color: var(--muted); }

.btn-sm {
    padding: 7px 16px;
    height: 34px;
    font-size: 14px;
}

.btn-danger {
    background: transparent;
    color: var(--semantic-error);
    border-color: var(--hairline);
}
.btn-danger:hover:not(:disabled) { border-color: var(--semantic-error); }


/* ─── Inputs ─── */

.input {
    width: 100%;
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--ink);
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    height: 44px;
    outline: none;
    transition: border-color 0.15s;
}
.input:focus { border-color: var(--ink); }
.input::placeholder { color: var(--muted-soft); }


/* ─── Auth ─── */

.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}

.auth-card {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    width: 100%;
    max-width: 380px;
}

.auth-card h2 {
    font-family: var(--font-sans);
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: var(--space-lg);
}

.form-group { margin-bottom: var(--space-base); }

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: var(--muted);
    margin-bottom: 4px;
}

.auth-link {
    margin-top: var(--space-base);
    text-align: center;
    font-size: 14px;
    color: var(--muted);
}
.auth-link a { color: var(--ink); font-weight: 500; }


/* ─── Dashboard ─── */

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-xl) 0 var(--space-lg);
}

.dashboard-header h1 {
    font-family: var(--font-sans);
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
}

.dashboard-header-actions { display: flex; gap: var(--space-sm); }

.main-content { padding-bottom: var(--space-xxl); }

.section-label {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.96px;
    text-transform: uppercase;
    color: var(--muted-soft);
    margin-bottom: var(--space-sm);
}


/* ─── Bot Grid ─── */

.bot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--space-base);
    margin-bottom: var(--space-xxl);
}

.bot-card {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    transition: border-color 0.2s;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.bot-card:hover { border-color: var(--hairline-strong); }

.bot-card.clickable { cursor: pointer; }

.bot-card-title {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.18px;
    color: var(--ink);
    line-height: 1.44;
}

/* Tags */
.bot-card-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.tag-outline {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.96px;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    background: var(--surface-strong);
    color: var(--ink);
    line-height: 1.4;
}
.tag-outline.tag-running { background: #f0fdf4; color: var(--semantic-success); }
.tag-outline.tag-crashed { background: #fef2f2; color: var(--semantic-error); }
.tag-outline.tag-muted { background: var(--surface-strong); color: var(--muted-soft); }

.tag-outline.tag-label {
    cursor: pointer;
    transition: background 0.15s;
    border-color: transparent;
}
.tag-outline.tag-label:hover {
    background: var(--surface-strong);
}

/* Meta */
.bot-card-time {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.5;
}
.bot-card-time .meta-label { color: var(--muted-soft); margin-right: 4px; }

/* Action icons */
.bot-card-actions {
    display: flex;
    gap: 4px;
    padding-top: 12px;
    border-top: 1px solid var(--hairline);
    margin-top: auto;
}

.btn-icon-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--muted-soft);
    border-radius: var(--radius-full, 50%);
    cursor: pointer;
    transition: all 0.15s;
}
.btn-icon-action:hover { background: var(--surface-strong); color: var(--ink); }
.btn-icon-action.active { background: var(--surface-strong); color: var(--ink); }
.btn-icon-danger:hover { color: var(--semantic-error); }


/* ─── Status badge (process page) ─── */

.status-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.96px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    background: var(--surface-strong);
    color: var(--muted);
}
.status-badge.running { color: var(--semantic-success); }
.status-badge.crashed { color: var(--semantic-error); }


/* ─── Terminal ─── */

.terminal-section { margin-bottom: var(--space-xl); }

.terminal-container {
    background: #0d1117;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

#xterm-host { flex: 1; min-height: 0; width:100%; }
#xterm-host .xterm { height: 100%; box-sizing: border-box; }


/* ─── 详情页布局（LAYOUT.md）─── */

/* 网格定义 — LAYOUT.md */
.process-layout {
    display: grid;
    grid-template-columns: 3fr 1fr 2fr;
    grid-template-rows: 2fr 1fr auto;
    gap: var(--space-md);
    min-height: 600px;
}
.process-terminal { grid-row: 1/4; grid-column: 1; display: flex; flex-direction: column; min-height: 0; }
.process-terminal .terminal-container { flex: 1; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.sidebar-script { grid-row: 1/3; grid-column: 2; overflow: hidden; }
.sidebar-minimap { grid-row: 1/2; grid-column: 3; width: 300px; height: 300px; overflow: hidden; }
.sidebar-minimap .sidebar-card { background: transparent; border: none; padding: 0; border-radius: var(--radius-lg); height: 100%; }
.sidebar-minimap .section-label { position: relative; z-index: 1; }
.sidebar-health { grid-row: 2/3; grid-column: 3; width: 300px; overflow: hidden; }
.sidebar-inventory { grid-row: 3/4; grid-column: 2 / -1; overflow: hidden; width: 538px; }
.sidebar-inventory .sidebar-card { background: #1a1a2e url('backpack-gui.png') 50% 50%/100% 100% no-repeat; image-rendering: pixelated; padding: 0; border: none; flex: none; height: 270px; }
.sidebar-cell { display: flex; flex-direction: column; overflow: hidden; }
.sidebar-cell .section-label { margin-bottom: var(--space-xs); }
.sidebar-card { flex: 1; background: var(--surface-card); border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: var(--space-md); display: flex; flex-direction: column; overflow: hidden; }

/* 9×4 物品格 */
.inv-grid {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 0;
    height: 100%;
    padding: 0 3.98%;
}

.inv-grid > :nth-child(n+1):nth-child(-n+9) {
    margin-top: 2px !important;
}

.inv-grid > :nth-child(n+10):nth-child(-n+18) {
    margin-top: -4px !important;
}

.inv-grid > :nth-child(n+19):nth-child(-n+27) {
    margin-top: -14px !important;
}

.inv-grid > :nth-child(n+28) {
    margin-top: 0 !important;
}

.inv-slot {
    display: flex;
    align-items: center;
    justify-content: center;
}

.inv-item-wrapper {
    position: relative;
    display: inline-flex;
}

.inv-slot-icon {
    width: 48px;
    height: 48px;
    image-rendering: pixelated;
    display: block;
}

.inv-slot-count {
    position: absolute;
    bottom: -2px;
    right: -2px;
    font-family: var(--font-mono);
    font-size: 14px;
    color: #fff;
    text-shadow: 0 0 3px #000, 0 0 2px #000;
    font-weight: 700;
    line-height: 1;
}
.sidebar-inventory .inv-item { border-bottom: 1px solid rgba(255,255,255,0.05); }
.sidebar-inventory .inv-item:hover { background: rgba(255,255,255,0.08); }
.sidebar-inventory .inv-name { color: #e0e0e0; }
.sidebar-inventory .inv-count { color: #a0a0a0; }

/* 脚本列表 */
.script-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px;
    border-radius: var(--radius-sm);
    transition: background 0.15s;
}
.script-item:hover { background: var(--surface-soft); }

.script-name {
    flex: 1;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--body);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}




/* ─── 血量饱食度面板 ─── */

.stat-panel {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.stat-label { color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.stat-icon { width: 18px; height: 18px; image-rendering: pixelated; }

/* HUD 图标行 */
.hud-block {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.hud-label {
    font-size: 11px;
    color: var(--muted-soft);
    width: 38px;
    flex-shrink: 0;
}

.hud-icons {
    display: flex;
    gap: 1px;
}

.hud-icon {
    width: 12px;
    height: 12px;
    image-rendering: pixelated;
}

.hud-number {
    font-size: 12px;
    font-weight: 600;
    color: var(--body);
    flex-shrink: 0;
}
.stat-value { color: var(--ink); font-weight: 600; }

.stat-bar {
    height: 6px;
    background: var(--surface-strong);
    border-radius: 3px;
    overflow: hidden;
}

.stat-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
}

.stat-bar-fill.health { background: #ef4444; }
.stat-bar-fill.armor { background: #8b9dc3; }
.stat-bar-fill.food { background: #eab308; }


/* ─── 背包面板 ─── */

.inventory-panel {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 240px;
    overflow-y: auto;
}

.inv-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 3px 8px;
    font-size: 13px;
    border-radius: var(--radius-sm);
    transition: background 0.15s;
}
.inv-item:hover { background: var(--surface-soft); }

.inv-icon {
    width: 20px;
    height: 20px;
    image-rendering: pixelated;
    flex-shrink: 0;
}

.inv-name {
    color: var(--body);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.inv-count {
    color: var(--muted-soft);
    flex-shrink: 0;
}


/* ─── Relay Log ─── */

.relay-section { margin-bottom: var(--space-xl); }

.relay-log-container {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    padding: 4px 0;
    max-height: 360px;
    overflow-y: auto;
}

.relay-log-item {
    display: flex;
    gap: var(--space-sm);
    padding: 5px var(--space-lg);
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.5;
    color: var(--body);
}
.relay-log-item:hover { background: var(--surface-strong); }
.relay-log-item.failed { color: var(--semantic-error); }

.log-time { color: var(--muted-soft); flex-shrink: 0; }
.log-arrow { color: var(--gradient-lavender); flex-shrink: 0; }
.log-command { flex: 1; word-break: break-all; }
.log-status { flex-shrink: 0; color: var(--semantic-success); }
.log-status.failed { color: var(--semantic-error); }

.empty-state {
    padding: var(--space-xl) var(--space-lg);
    text-align: center;
    color: var(--muted-soft);
    font-size: 14px;
}


/* ─── User Management ─── */

.settings-section { margin-bottom: var(--space-xl); }

.user-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.user-table th,
.user-table td {
    padding: 10px var(--space-base);
    text-align: left;
    font-size: 14px;
}

.user-table th {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.96px;
    text-transform: uppercase;
    color: var(--muted);
    border-bottom: 1px solid var(--hairline);
    background: var(--canvas);
}

.user-table td { color: var(--body); border-bottom: 1px solid var(--hairline); }
.user-table tr:last-child td { border-bottom: none; }

.create-user-form {
    display: flex;
    gap: var(--space-sm);
    align-items: flex-end;
    margin-top: var(--space-base);
}

.create-user-form .form-group { flex: 1; margin-bottom: 0; }

.create-user-form .form-group select {
    width: 100%;
    font-family: var(--font-sans);
    font-size: 16px;
    color: var(--ink);
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    height: 44px;
    outline: none;
}


/* ─── Modal ─── */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.modal-card {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    width: 100%;
    max-width: 480px;
}

.modal-card h3 {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.18px;
    color: var(--ink);
    margin-bottom: var(--space-base);
}

.modal-actions {
    display: flex;
    gap: var(--space-sm);
    justify-content: flex-end;
    margin-top: var(--space-lg);
}


/* ─── Utility ─── */

.text-muted { color: var(--muted); }
.text-sm { font-size: 14px; }
.mt-md { margin-top: var(--space-base); }
.mb-md { margin-bottom: var(--space-base); }
.mb-lg { margin-bottom: var(--space-lg); }


/* ─── Scrollbar ─── */

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--hairline-strong); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted-soft); }


/* ═══════════════════════════════════════════════════
   终端覆盖层与错误卡片
   ═══════════════════════════════════════════════════ */

.terminal-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(30, 30, 46, 0.85);
    z-index: 10;
    border-radius: var(--radius-md);
}

.terminal-loading {
    color: var(--muted-soft);
    font-size: 14px;
    font-family: var(--font-sans);
}

.error-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100;
}

.error-card {
    background: var(--surface-card);
    border: 1px solid var(--hairline-strong);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    max-width: 480px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.error-card h3 {
    font-family: var(--font-sans);
    font-size: 18px;
    font-weight: 600;
    color: var(--semantic-error);
    margin-bottom: var(--space-sm);
}

.error-card p {
    font-size: 14px;
    color: var(--body);
    margin-bottom: var(--space-sm);
}

.error-card .error-detail {
    background: var(--surface-strong);
    border-radius: var(--radius-sm);
    padding: var(--space-sm);
    margin-bottom: var(--space-md);
}

.error-card .error-detail pre {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--body);
    white-space: pre-wrap;
    word-break: break-all;
}

.error-card .error-tips {
    margin-bottom: var(--space-md);
}

.error-card .error-tips ul {
    padding-left: var(--space-lg);
    font-size: 13px;
    color: var(--muted);
}

.error-card .error-tips li {
    margin-bottom: 4px;
}

.error-card .error-actions {
    display: flex;
    gap: var(--space-sm);
    justify-content: flex-end;
}


/* ═══════════════════════════════════════════════════
   文件管理
   ═══════════════════════════════════════════════════ */

.file-toolbar {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
    margin-bottom: var(--space-base);
}

.btn-disabled {
    opacity: 0.35;
    pointer-events: none;
}

.file-list-container {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    overflow: hidden;
    max-height: 400px;
    overflow-y: auto;
}

.file-row {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 8px var(--space-base);
    border-bottom: 1px solid var(--hairline-soft);
    transition: background 0.15s;
}

.file-row:last-child {
    border-bottom: none;
}

.file-row:hover {
    background: var(--canvas-soft);
}

.file-name {
    flex: 1;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-size {
    flex-shrink: 0;
    min-width: 60px;
    text-align: right;
}

.file-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.15s;
}

.file-row:hover .file-actions,
.litematic-row:hover .file-actions {
    opacity: 1;
}

.file-editor {
    width: 100%;
    min-height: 450px;
    max-height: 70vh;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.5;
    color: var(--ink);
    background: var(--canvas-soft);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-md);
    padding: var(--space-sm);
    resize: vertical;
    outline: none;
    tab-size: 4;
}

.file-editor:focus {
    border-color: var(--ink);
}


/* ═══════════════════════════════════════════════════
   实例锁定状态
   ═══════════════════════════════════════════════════ */

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--space-base);
}

.status-card {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    padding: var(--space-base) var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.status-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-bot-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--ink);
}

.status-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.96px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
}

.status-badge.unlocked {
    background: #f0fdf4;
    color: var(--semantic-success);
}

.status-badge.locked {
    background: #fef2f2;
    color: var(--semantic-error);
}

.status-card-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.status-label {
    color: var(--muted-soft);
}

.status-value {
    color: var(--body);
    font-family: var(--font-mono);
}


/* ═══════════════════════════════════════════════════
   服务器信息横幅
   ═══════════════════════════════════════════════════ */

.server-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    padding: var(--space-base) var(--space-xl);
}

.server-banner-left {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.server-banner-address {
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
}

.server-banner-right {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.server-banner-stat {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.server-banner-label {
    font-size: 13px;
    color: var(--muted-soft);
}

.server-banner-value {
    font-size: 15px;
    font-weight: 500;
    color: var(--ink);
    font-family: var(--font-mono);
}


/* ═══════════════════════════════════════════════════
   传送点
   ═══════════════════════════════════════════════════ */

.teleport-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-sm);
}

.teleport-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-md);
    padding: 8px 12px;
}

.teleport-name {
    font-size: 14px;
    color: var(--ink);
}

.teleport-code {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--muted);
}


/* ═══════════════════════════════════════════════════
   投影共享
   ═══════════════════════════════════════════════════ */

.litematic-list-container {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    overflow: hidden;
    max-height: 400px;
    overflow-y: auto;
}

.litematic-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px var(--space-base);
    border-bottom: 1px solid var(--hairline-soft);
    transition: background 0.15s;
}

.litematic-row:last-child {
    border-bottom: none;
}

.litematic-row:hover {
    background: var(--canvas-soft);
}

.litematic-info {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex: 1;
    min-width: 0;
}

.litematic-name {
    font-size: 14px;
    color: var(--ink);
}

.litematic-uploader {
    font-size: 12px;
    color: var(--muted-soft);
    background: var(--surface-strong);
    padding: 2px 8px;
    border-radius: var(--radius-pill);
}

.litematic-breadcrumb {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: var(--space-sm);
    font-size: 13px;
}

.breadcrumb-item {
    color: var(--ink);
    cursor: pointer;
    padding: 2px 4px;
    border-radius: var(--radius-xs);
    transition: background 0.15s;
}

.breadcrumb-item:hover {
    background: var(--surface-strong);
}

.breadcrumb-sep {
    color: var(--muted-soft);
}


/* ═══════════════════════════════════════════════════
   个人信息
   ═══════════════════════════════════════════════════ */

.profile-card {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
}

.profile-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--hairline-soft);
}

.profile-row:last-child {
    border-bottom: none;
}

.profile-label {
    font-size: 14px;
    color: var(--muted);
}

.profile-value {
    font-size: 14px;
    color: var(--ink);
}


/* ═══════════════════════════════════════════════════
   路径点列表
   ═══════════════════════════════════════════════════ */

.location-list-container {
    background: var(--surface-card);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    overflow: hidden;
    max-height: 400px;
    overflow-y: auto;
}

.location-row {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 8px var(--space-base);
    border-bottom: 1px solid var(--hairline-soft);
    transition: background 0.15s;
}

.location-row:last-child {
    border-bottom: none;
}

.location-row:hover {
    background: var(--canvas-soft);
}

.location-info {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex: 1;
    min-width: 0;
}

.location-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    flex-shrink: 0;
}

.location-coords {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--body);
    white-space: nowrap;
}

.location-dim {
    font-size: 11px;
    padding: 2px 8px;
    flex-shrink: 0;
}

.location-comment {
    flex: 1;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
