/* =====================================================================
   HomeStudio 全站样式
   设计语言：浅色工作台 + 靛蓝主色，编辑器使用深色专业界面
   ===================================================================== */
:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --primary-light: #eef2ff;
    --success: #16a34a;
    --warning: #d97706;
    --danger: #dc2626;
    --info: #0ea5e9;
    --text: #111827;
    --text-2: #4b5563;
    --text-3: #9ca3af;
    --border: #e5e7eb;
    --border-strong: #d1d5db;
    --bg: #f5f6f8;
    --bg-soft: #fafbfc;
    --white: #ffffff;
    --radius: 10px;
    --radius-sm: 6px;
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
    --shadow: 0 4px 16px rgba(16, 24, 40, .08);
    --shadow-lg: 0 16px 48px rgba(16, 24, 40, .16);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 14px;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
img { max-width: 100%; display: block; }
button { font-family: inherit; font-size: inherit; }
input, select, textarea { font-family: inherit; font-size: 14px; color: var(--text); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(107, 114, 128, .35); border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- 登录 / 注册 ---------- */
.auth-wrap {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    background: var(--white);
}
.auth-side {
    background: linear-gradient(150deg, #1e1b4b 0%, #4338ca 55%, #6366f1 100%);
    color: #fff;
    padding: 56px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}
.auth-side::after {
    content: "";
    position: absolute;
    width: 520px; height: 520px;
    right: -140px; bottom: -180px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .07);
}
.auth-side h1 { font-size: 40px; line-height: 1.2; letter-spacing: -.5px; }
.auth-side p { color: rgba(255, 255, 255, .75); font-size: 15px; line-height: 1.8; max-width: 420px; }
.auth-features { display: grid; gap: 14px; margin-top: 32px; }
.auth-feature { display: flex; gap: 12px; align-items: center; color: rgba(255,255,255,.9); font-size: 14px; }
.auth-feature i {
    width: 26px; height: 26px; border-radius: 50%;
    background: rgba(255,255,255,.16); display: grid; place-items: center;
    font-style: normal; font-size: 13px;
}
.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px; }
.auth-box { width: 100%; max-width: 380px; }
.auth-box h2 { font-size: 26px; margin-bottom: 6px; }
.auth-box .sub { color: var(--text-3); margin-bottom: 28px; }
.auth-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 40px; font-weight: 700; font-size: 17px; }
.auth-brand .logo { width: 32px; height: 32px; }
@media (max-width: 900px) {
    .auth-wrap { grid-template-columns: 1fr; }
    .auth-side { display: none; }
    .auth-main { padding: 24px; }
}

/* ---------- 表单 ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 6px; font-weight: 500; }
.field .hint { font-size: 12px; color: var(--text-3); margin-top: 5px; }
.input, .select, .textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--white);
    transition: border-color .15s, box-shadow .15s;
    outline: none;
}
.input:focus, .select:focus, .textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, .12);
}
.textarea { resize: vertical; min-height: 80px; }
.input-group { display: flex; gap: 10px; }
.input-group .input { flex: 1; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 9px 16px; border-radius: var(--radius-sm);
    border: 1px solid transparent; background: var(--primary); color: #fff;
    cursor: pointer; font-weight: 500; white-space: nowrap;
    transition: background .15s, border-color .15s, box-shadow .15s, transform .05s;
}
.btn:hover { background: var(--primary-dark); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-block { width: 100%; }
.btn-lg { padding: 11px 20px; font-size: 15px; }
.btn-sm { padding: 5px 10px; font-size: 12.5px; }
.btn-ghost { background: var(--white); border-color: var(--border-strong); color: var(--text-2); }
.btn-ghost:hover { background: var(--bg-soft); color: var(--text); border-color: var(--text-3); }
.btn-danger { background: var(--danger); }
.btn-danger:hover { background: #b91c1c; }
.btn-soft { background: var(--primary-light); color: var(--primary); }
.btn-soft:hover { background: #e0e7ff; color: var(--primary-dark); }
.btn-link { background: none; border: none; color: var(--primary); padding: 0; cursor: pointer; }

/* ---------- 布局 ---------- */
.app { display: flex; min-height: 100vh; }
.sidebar {
    width: 224px; flex: 0 0 224px;
    background: var(--white);
    border-right: 1px solid var(--border);
    display: flex; flex-direction: column;
    position: sticky; top: 0; height: 100vh;
}
.sidebar .brand {
    display: flex; align-items: center; gap: 10px;
    padding: 20px 20px 16px; font-weight: 700; font-size: 16px;
}
.sidebar .brand .logo { width: 28px; height: 28px; }
.nav { padding: 8px 12px; flex: 1; overflow-y: auto; }
.nav-label { font-size: 11px; text-transform: uppercase; color: var(--text-3); letter-spacing: .6px; padding: 14px 10px 6px; }
.nav a {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px; border-radius: 8px; color: var(--text-2);
    margin-bottom: 2px; font-weight: 500;
}
.nav a:hover { background: var(--bg); color: var(--text); }
.nav a.active { background: var(--primary-light); color: var(--primary); }
.nav a .ico { width: 18px; text-align: center; opacity: .9; }
.sidebar .foot { padding: 14px 18px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-3); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
    height: 60px; background: rgba(255,255,255,.9); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 24px; position: sticky; top: 0; z-index: 20;
}
.topbar h2 { font-size: 16px; }
.topbar .spacer { flex: 1; }
.topbar .actions { display: flex; align-items: center; gap: 12px; }
.user-chip { display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 4px 8px; border-radius: 20px; }
.user-chip:hover { background: var(--bg); }
.avatar {
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--primary-light); color: var(--primary);
    display: grid; place-items: center; font-weight: 600; font-size: 13px;
}
.points-chip {
    display: inline-flex; align-items: center; gap: 6px;
    background: #fffbeb; color: #b45309; border: 1px solid #fde68a;
    padding: 5px 10px; border-radius: 20px; font-size: 12.5px; font-weight: 600;
}
.content { padding: 24px; flex: 1; }
.content-narrow { max-width: 1100px; margin: 0 auto; }

.page-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; gap: 16px; flex-wrap: wrap; }
.page-head h1 { font-size: 22px; }
.page-head p { margin: 6px 0 0; color: var(--text-3); font-size: 13px; }

/* ---------- 卡片 / 表格 ---------- */
.card {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.card-head {
    padding: 14px 18px; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.card-head h3 { font-size: 14.5px; }
.card-body { padding: 18px; }
.card-body.tight { padding: 0; }
.grid { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.stat { padding: 18px; }
.stat .label { color: var(--text-3); font-size: 12.5px; margin-bottom: 10px; }
.stat .value { font-size: 26px; font-weight: 700; letter-spacing: -.5px; }
.stat .value small { font-size: 13px; color: var(--text-3); font-weight: 500; margin-left: 4px; }
.stat .foot { margin-top: 8px; font-size: 12px; color: var(--text-3); }

.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 13px; }
table.table th {
    text-align: left; padding: 10px 14px; color: var(--text-3);
    font-weight: 500; background: var(--bg-soft); border-bottom: 1px solid var(--border);
    white-space: nowrap; font-size: 12.5px;
}
table.table td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.table tr:last-child td { border-bottom: none; }
table.table tr:hover td { background: #fcfcfd; }
table.table .nowrap { white-space: nowrap; }
table.table .actions { white-space: nowrap; display: flex; gap: 6px; }

.badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 2px 8px; border-radius: 20px; font-size: 12px; font-weight: 500;
    background: #f3f4f6; color: var(--text-2);
}
.badge.pending { background: #fffbeb; color: #b45309; }
.badge.running { background: #eff6ff; color: #1d4ed8; }
.badge.dispatched { background: #eef2ff; color: #4338ca; }
.badge.success { background: #ecfdf5; color: #15803d; }
.badge.failed { background: #fef2f2; color: #b91c1c; }
.badge.canceled, .badge.offline { background: #f3f4f6; color: #6b7280; }
.badge.timeout { background: #fff7ed; color: #c2410c; }
.badge.online { background: #ecfdf5; color: #15803d; }
.badge.approved { background: #ecfdf5; color: #15803d; }
.badge.rejected { background: #fef2f2; color: #b91c1c; }
.badge.member { background: linear-gradient(135deg,#fef3c7,#fde68a); color: #92400e; }

.empty { padding: 56px 20px; text-align: center; color: var(--text-3); }
.empty .big { font-size: 34px; margin-bottom: 10px; opacity: .5; }

/* ---------- 项目卡片 ---------- */
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: 16px; }
.project-card {
    background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; transition: box-shadow .18s, transform .18s, border-color .18s;
    display: flex; flex-direction: column;
}
.project-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--border-strong); }
.project-thumb {
    height: 150px; background: linear-gradient(135deg, #eef2ff, #f8fafc);
    display: grid; place-items: center; position: relative; overflow: hidden;
    color: var(--primary); font-size: 30px;
}
.project-thumb img { width: 100%; height: 100%; object-fit: cover; }
.project-thumb .badge { position: absolute; top: 10px; right: 10px; }
.project-info { padding: 13px 14px; flex: 1; display: flex; flex-direction: column; }
.project-info h4 { font-size: 14px; margin-bottom: 6px; }
.project-meta { color: var(--text-3); font-size: 12px; display: flex; gap: 10px; flex-wrap: wrap; }
.project-actions { display: flex; gap: 6px; padding: 0 14px 14px; }
.project-actions .btn { flex: 1; }

/* ---------- 编辑器 ---------- */
body.editor-body { background: #14161b; color: #e5e7eb; overflow: hidden; }
.editor-shell { display: grid; grid-template-rows: 52px 1fr; height: 100vh; }
.editor-top {
    display: flex; align-items: center; gap: 14px; padding: 0 14px;
    background: #1c1f26; border-bottom: 1px solid #2a2f3a;
}
.editor-top .brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: #f9fafb; }
.editor-top .project-name {
    background: transparent; border: 1px solid transparent; color: #e5e7eb;
    padding: 5px 8px; border-radius: 6px; font-size: 13.5px; min-width: 180px;
}
.editor-top .project-name:hover, .editor-top .project-name:focus { border-color: #374151; outline: none; background: #23272f; }
.editor-main { display: grid; grid-template-columns: 268px 1fr 292px; min-height: 0; }
.panel {
    background: #1c1f26; border-right: 1px solid #2a2f3a;
    display: flex; flex-direction: column; min-height: 0; overflow: hidden;
}
.panel.right { border-right: none; border-left: 1px solid #2a2f3a; }
.panel-tabs { display: flex; border-bottom: 1px solid #2a2f3a; flex: 0 0 auto; }
.panel-tabs button {
    flex: 1; background: none; border: none; color: #9ca3af; padding: 11px 6px;
    cursor: pointer; font-size: 12.5px; border-bottom: 2px solid transparent;
}
.panel-tabs button.active { color: #fff; border-bottom-color: #6366f1; background: #23272f; }
.panel-body { flex: 1; overflow-y: auto; padding: 14px; }
.panel-body.dense { padding: 10px; }
.stage-wrap { position: relative; background: #0f1116; min-width: 0; }
.marquee {
    position: absolute; border: 1px solid #6366f1; background: rgba(99, 102, 241, .14);
    pointer-events: none; z-index: 6; border-radius: 2px;
}
.walk-hint {
    position: absolute; left: 50%; bottom: 54px; transform: translateX(-50%);
    background: rgba(17, 24, 39, .88); color: #e5e7eb; padding: 7px 14px;
    border-radius: 8px; font-size: 12.5px; z-index: 7; white-space: nowrap;
    border: 1px solid #374151;
}
.mat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mat-grid .dark-field { margin-bottom: 0; }
.mat-row { display: flex; gap: 6px; align-items: center; }
.mat-row .dark-btn { flex: 1; }
#viewport { width: 100%; height: 100%; display: block; }
.toolbar {
    position: absolute; top: 12px; left: 12px; display: flex; gap: 6px;
    background: rgba(28,31,38,.94); border: 1px solid #2f3542; border-radius: 8px; padding: 5px;
    backdrop-filter: blur(6px); z-index: 5;
}
.toolbar .tool {
    width: 34px; height: 32px; display: grid; place-items: center;
    background: transparent; border: none; color: #9ca3af; border-radius: 6px; cursor: pointer;
    font-size: 14px;
}
.toolbar .tool:hover { background: #2a2f3a; color: #fff; }
.toolbar .tool.active { background: #4f46e5; color: #fff; }
.toolbar .sep { width: 1px; background: #2f3542; margin: 4px 2px; }
.view-actions { position: absolute; top: 12px; right: 12px; display: flex; gap: 6px; z-index: 5; }
.view-actions .btn { background: rgba(28,31,38,.94); border-color: #2f3542; color: #d1d5db; }
.view-actions .btn:hover { background: #2a2f3a; }
.view-actions .btn.active { background: #4f46e5; border-color: #4f46e5; color: #fff; }
.stage-hint {
    position: absolute; bottom: 12px; left: 12px; color: #6b7280; font-size: 12px;
    background: rgba(20,22,27,.8); padding: 5px 9px; border-radius: 6px; pointer-events: none;
}
.status-bar {
    position: absolute; bottom: 12px; right: 12px; display: flex; gap: 14px;
    color: #9ca3af; font-size: 12px; background: rgba(20,22,27,.8);
    padding: 5px 10px; border-radius: 6px; pointer-events: none;
}
/* 相机视角控件 */
.cam-panel {
    position: absolute; right: 12px; bottom: 44px; display: flex; align-items: center; gap: 6px;
    background: rgba(20,22,27,.86); border: 1px solid #2f3542; border-radius: 8px;
    padding: 4px 6px; z-index: 6;
}
.cam-panel .cam-btn {
    width: 26px; height: 26px; border: 0; border-radius: 6px; background: #2a2f3a;
    color: #d1d5db; font-size: 14px; line-height: 1; cursor: pointer; padding: 0;
}
.cam-panel .cam-btn:hover { background: #4f46e5; color: #fff; }
.cam-panel .cam-val { min-width: 40px; text-align: center; color: #9ca3af; font-size: 12px; }
.panel h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: #6b7280; margin: 16px 0 8px; }
.panel h4:first-child { margin-top: 0; }
.asset-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.asset-item {
    background: #23272f; border: 1px solid #2f3542; border-radius: 7px;
    padding: 8px; cursor: grab; text-align: center; transition: border-color .15s, background .15s;
    user-select: none;
}
.asset-item:hover { border-color: #6366f1; background: #272c36; }
.asset-item .thumb { height: 52px; display: grid; place-items: center; font-size: 22px; color: #818cf8; }
.asset-item .name { font-size: 11.5px; color: #d1d5db; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.section-label { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.section-label span { color: #9ca3af; font-size: 12px; }
.dark-field { margin-bottom: 12px; }
.dark-field label { display: block; font-size: 12px; color: #9ca3af; margin-bottom: 5px; }
.dark-input, .dark-select {
    width: 100%; background: #23272f; border: 1px solid #333a47; color: #e5e7eb;
    border-radius: 6px; padding: 7px 9px; outline: none; font-size: 13px;
}
.dark-input:focus, .dark-select:focus { border-color: #6366f1; }
.dark-range { width: 100%; accent-color: #6366f1; }
.swatch-row { display: flex; flex-wrap: wrap; gap: 6px; }
.swatch { width: 24px; height: 24px; border-radius: 5px; border: 1px solid #3f4654; cursor: pointer; }
.swatch.active { box-shadow: 0 0 0 2px #6366f1; }
.material-chip {
    display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 6px;
    border: 1px solid #2f3542; background: #23272f; cursor: pointer; margin-bottom: 6px;
}
.material-chip:hover { border-color: #6366f1; }
.material-chip .dot { width: 26px; height: 26px; border-radius: 4px; flex: 0 0 auto; border: 1px solid #3f4654; }
.material-chip .t { font-size: 12px; color: #d1d5db; }
.kv { display: flex; justify-content: space-between; font-size: 12.5px; padding: 5px 0; color: #9ca3af; }
.kv b { color: #e5e7eb; font-weight: 500; }
.render-toggle { display: flex; gap: 6px; margin-bottom: 12px; }
.render-toggle button {
    flex: 1; padding: 8px; background: #23272f; border: 1px solid #333a47; color: #9ca3af;
    border-radius: 6px; cursor: pointer; font-size: 12.5px;
}
.render-toggle button.active { background: #312e81; border-color: #6366f1; color: #fff; }
.cost-box {
    background: #23272f; border: 1px solid #333a47; border-radius: 8px; padding: 10px 12px;
    margin: 12px 0; font-size: 12.5px; color: #9ca3af;
}
.cost-box b { color: #fbbf24; font-size: 16px; }
.dark-btn {
    width: 100%; padding: 9px; border-radius: 7px; border: 1px solid #333a47;
    background: #23272f; color: #e5e7eb; cursor: pointer; font-size: 13px;
}
.dark-btn.primary { background: #4f46e5; border-color: #4f46e5; color: #fff; font-weight: 600; }
.dark-btn.primary:hover { background: #4338ca; }
.dark-btn:hover { border-color: #4b5563; }
.mini-list { display: flex; flex-direction: column; gap: 6px; }
.mini-row {
    display: flex; align-items: center; justify-content: space-between;
    background: #23272f; border: 1px solid #2f3542; border-radius: 6px;
    padding: 7px 9px; font-size: 12.5px; color: #d1d5db;
}
.mini-row .dim { color: #6b7280; font-size: 11.5px; }
.toast-stack { position: fixed; top: 68px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }

/* ---------- 素材 / 渲染记录 ---------- */
.render-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.render-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.render-preview { height: 168px; background: #f3f4f6; position: relative; display: grid; place-items: center; color: var(--text-3); }
.render-preview img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.render-preview .badge { position: absolute; top: 10px; left: 10px; }
.render-body { padding: 12px 14px; }
.render-body h4 { font-size: 13.5px; margin-bottom: 6px; }
.progress { height: 5px; background: #eef0f3; border-radius: 3px; overflow: hidden; margin: 8px 0; }
.progress > i { display: block; height: 100%; background: var(--primary); border-radius: 3px; transition: width .4s; }
.render-actions { display: flex; gap: 6px; margin-top: 10px; }
.render-actions .btn { flex: 1; }

/* ---------- 弹窗 ---------- */
.modal-mask {
    position: fixed; inset: 0; background: rgba(17, 24, 39, .45);
    display: none; align-items: center; justify-content: center; z-index: 1000; padding: 20px;
}
.modal-mask.show { display: flex; }
.modal {
    background: var(--white); border-radius: 12px; box-shadow: var(--shadow-lg);
    width: 100%; max-width: 480px; max-height: 88vh; display: flex; flex-direction: column;
    animation: modalIn .16s ease-out;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-head { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.modal-head h3 { font-size: 15.5px; }
.modal-head .x { background: none; border: none; font-size: 20px; color: var(--text-3); cursor: pointer; line-height: 1; }
.modal-body { padding: 20px; overflow-y: auto; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; }
.modal-wide { max-width: 760px; }
.img-viewer { max-width: 92vw; max-height: 90vh; background: #000; border-radius: 8px; overflow: auto; }
.img-viewer img { max-width: 100%; max-height: 90vh; object-fit: contain; }

/* ---------- 提示 ---------- */
.toast {
    padding: 10px 14px; border-radius: 8px; background: var(--white);
    box-shadow: var(--shadow); font-size: 13px; border-left: 3px solid var(--primary);
    min-width: 220px; max-width: 380px; animation: toastIn .2s ease-out;
}
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }
@keyframes toastIn { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.tabs button {
    background: none; border: none; padding: 9px 14px; color: var(--text-3);
    cursor: pointer; border-bottom: 2px solid transparent; font-size: 13.5px; font-weight: 500;
}
.tabs button.active { color: var(--primary); border-bottom-color: var(--primary); }
.toolbar-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.toolbar-row .input, .toolbar-row .select { width: auto; min-width: 140px; }
.muted { color: var(--text-3); }
.small { font-size: 12px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.right { text-align: right; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; }
.flex { display: flex; } .flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-1 { gap: 8px; } .gap-2 { gap: 16px; }
.hidden { display: none !important; }

/* 分享页 */
.share-shell { height: 100vh; display: flex; flex-direction: column; background: #0f1116; }
.share-head {
    height: 56px; display: flex; align-items: center; justify-content: space-between;
    padding: 0 20px; background: #1c1f26; border-bottom: 1px solid #2a2f3a; color: #e5e7eb;
}
.share-head .title { font-weight: 600; font-size: 14.5px; }
.share-head .meta { color: #9ca3af; font-size: 12px; margin-left: 12px; }
.share-stage { flex: 1; position: relative; }
.access-box {
    position: absolute; inset: 0; display: grid; place-items: center;
    background: rgba(15,17,22,.92); z-index: 10;
}

/* 打印导出（PDF）隐藏 UI */
@media print {
    .sidebar, .topbar, .no-print { display: none !important; }
    .content { padding: 0; }
}
