/* ============================================================
   幸存 - 末日生存助手
   简约风格 | 主色橙色 | 4px基础间距
   ============================================================ */

:root {
    --c-primary: #F59E0B;
    --c-primary-hover: #D97706;
    --c-primary-light: #FEF3C7;
    --c-success: #10B981;
    --c-success-light: #D1FAE5;
    --c-danger: #EF4444;
    --c-danger-light: #FEE2E2;
    --c-warning: #F59E0B;
    --c-warning-light: #FEF3C7;
    --c-info: #3B82F6;
    --c-info-light: #DBEAFE;

    --c-bg: #FAFAF9;
    --c-bg-hover: #F5F5F4;
    --c-card: #FFFFFF;
    --c-border: #E7E5E4;
    --c-text: #1C1917;
    --c-text-secondary: #78716C;
    --c-text-muted: #A8A29E;

    --radius: 8px;
    --radius-sm: 4px;
    --space: 4px;

    --font: -apple-system, BlinkMacSystemFont, "Microsoft YaHei", "PingFang SC", sans-serif;
    --font-mono: "SF Mono", "Fira Code", "Consolas", monospace;
}

[data-theme="dark"] {
    --c-primary: #F59E0B;
    --c-primary-hover: #FBBF24;
    --c-primary-light: #3D2E0A;
    --c-success: #34D399;
    --c-success-light: #064E3B;
    --c-danger: #F87171;
    --c-danger-light: #450A0A;
    --c-warning: #FBBF24;
    --c-warning-light: #3D2E0A;
    --c-info: #60A5FA;
    --c-info-light: #0C1B33;

    --c-bg: #181715;
    --c-bg-hover: #1F1C1A;
    --c-card: #292524;
    --c-border: #44403C;
    --c-text: #FAFAF9;
    --c-text-secondary: #A8A29E;
    --c-text-muted: #78716C;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 14px; }
body {
    font-family: var(--font);
    color: var(--c-text);
    background: var(--c-bg);
    line-height: 1.6;
    min-height: 100vh;
}

a { color: var(--c-primary); text-decoration: none; }
a:hover { color: var(--c-primary-hover); }

/* ---- Navbar ---- */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 200;
    height: 56px;
    background: var(--c-card);
    border-bottom: 1px solid var(--c-border);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 24px;
}
.navbar-brand {
    font-size: 20px; font-weight: 700; color: var(--c-primary);
    letter-spacing: 2px;
}
.navbar-nav { display: flex; gap: 24px; list-style: none; align-items: center; }
.navbar-nav a { color: var(--c-text-secondary); font-size: 14px; transition: color 150ms; }
.navbar-nav a:hover, .navbar-nav a.active { color: var(--c-primary); }

.navbar-user {
    display: flex; align-items: center; gap: 12px;
}
.theme-toggle {
    width: 32px; height: 32px; border-radius: 50%;
    border: 1px solid var(--c-border); background: none;
    cursor: pointer; font-size: 16px; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    transition: background 150ms, border-color 150ms;
    color: var(--c-text-secondary);
}
.theme-toggle:hover { background: var(--c-bg); border-color: var(--c-primary); }
.navbar-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--c-primary-light); color: var(--c-primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 600;
}

/* ---- Page ---- */
.page { padding-top: 56px; min-height: 100vh; display: flex; flex-direction: column; }
.page-content { max-width: 960px; margin: 0 auto; padding: 24px; width: 100%; }
.page-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 24px;
}
.page-title { font-size: 24px; font-weight: 700; }

/* ---- Hero (未登录首页) ---- */
.hero {
    text-align: center; padding: 80px 24px 48px;
}
.hero-title {
    font-size: 36px; font-weight: 800; color: var(--c-text);
    margin-bottom: 12px;
}
.hero-title span { color: var(--c-primary); }
.hero-desc {
    font-size: 16px; color: var(--c-text-secondary);
    max-width: 480px; margin: 0 auto 16px;
}
.hero-tagline {
    font-size: 13px; color: var(--c-text-muted);
    max-width: 480px; margin: 0 auto 32px;
}


/* ---- Card ---- */
.card {
    background: var(--c-card); border: 1px solid var(--c-border);
    border-radius: var(--radius); padding: 20px;
}
.card-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 16px;
}
.card-title { font-size: 16px; font-weight: 600; }

/* ---- Stat Cards ---- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-card {
    background: var(--c-card); border: 1px solid var(--c-border);
    border-radius: var(--radius); padding: 20px; text-align: center;
}
.stat-card .stat-num { font-size: 28px; font-weight: 700; color: var(--c-primary); }
.stat-card .stat-label { font-size: 12px; color: var(--c-text-secondary); margin-top: 4px; }
.stat-card.warn .stat-num { color: var(--c-warning); }
.stat-card.warn { border-color: var(--c-warning); background: var(--c-warning-light); }

/* ---- Badge ---- */
.badge {
    display: inline-block; padding: 2px 8px; border-radius: 12px;
    font-size: 11px; font-weight: 500;
}
.badge-success { background: var(--c-success-light); color: var(--c-success); }
.badge-warning { background: var(--c-warning-light); color: var(--c-warning); }
.badge-danger { background: var(--c-danger-light); color: var(--c-danger); }
.badge-info { background: var(--c-info-light); color: var(--c-info); }
.badge-muted { background: var(--c-bg-hover); color: var(--c-text-muted); }

/* ---- Button ---- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: 36px; padding: 0 16px; border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 500; cursor: pointer;
    border: 1px solid transparent; transition: all 150ms;
    white-space: nowrap;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--c-primary); color: #FFF; border-color: var(--c-primary); }
.btn-primary:hover { background: var(--c-primary-hover); border-color: var(--c-primary-hover); }
.btn-outline {
    background: transparent; color: var(--c-primary); border-color: var(--c-primary);
}
.btn-outline:hover { background: var(--c-primary-light); }
.btn-danger { background: var(--c-danger); color: #FFF; border-color: var(--c-danger); }
.btn-danger:hover { background: #DC2626; }
.btn-ghost { background: transparent; color: var(--c-text-secondary); }
.btn-ghost:hover { background: var(--c-bg-hover); }
.btn-sm { height: 28px; padding: 0 12px; font-size: 12px; }
.btn-lg { height: 48px; padding: 0 24px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---- Form ---- */
.form-group { margin-bottom: 16px; }
.form-label {
    display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px;
}
.form-label .required { color: var(--c-danger); margin-left: 2px; }
.form-input, .form-select, .form-textarea {
    width: 100%; height: 36px; padding: 0 12px;
    border: 1px solid var(--c-border); border-radius: var(--radius-sm);
    font-size: 14px; font-family: var(--font); color: var(--c-text);
    background: var(--c-card); transition: border-color 150ms;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none; border-color: var(--c-primary);
    box-shadow: 0 0 0 3px var(--c-primary-light);
}
.form-textarea { height: auto; padding: 8px 12px; min-height: 80px; resize: vertical; }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%2378716C'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.form-hint { font-size: 12px; color: var(--c-text-muted); margin-top: 4px; }
.form-error { font-size: 12px; color: var(--c-danger); margin-top: 4px; }

.form-row { display: grid; grid-template-columns: 1fr 120px; gap: 12px; }

/* ---- Table ---- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead th {
    text-align: left; padding: 12px 16px; font-size: 12px; font-weight: 600;
    color: var(--c-text-secondary); background: var(--c-bg); border-bottom: 1px solid var(--c-border);
    position: sticky; top: 0; white-space: nowrap;
}
tbody td {
    padding: 12px 16px; border-bottom: 1px solid var(--c-border);
    font-size: 14px;
}
tbody tr:hover { background: var(--c-bg); }

/* ---- Category Tabs ---- */
.cat-tabs {
    display: flex; gap: 0; ;
}
.cat-tab {
    padding: 8px 16px; font-size: 14px; color: var(--c-text-secondary);
    cursor: pointer; white-space: nowrap; background: none; border-top: none; border-left: none; border-right: none;
    transition: color 150ms, border-color 150ms;
}
.cat-tab:hover { color: var(--c-primary); }
.cat-tab.active { color: var(--c-primary); border-bottom-color: var(--c-primary); font-weight: 600; }
.cat-tab .count { color: var(--c-text-muted); font-weight: 400; margin-left: 4px; font-size: 12px; }

/* ---- Page with left sidebar tabs ---- */
.page-with-sidebar {
    display: flex; gap: 32px;
}
.page-sidebar {
    width: 140px; flex-shrink: 0;
}
.page-main {
    flex: 1; min-width: 0;
}
.cat-tabs-vert {
    display: flex; flex-direction: column; gap: 0;

    overflow: visible;
}
.cat-tabs-vert .cat-tab {
    padding: 8px 12px; font-size: 14px; color: var(--c-text-secondary);
    cursor: pointer; white-space: nowrap; background: none;
    border-top: none; border-right: none; border-bottom: none;
    text-align: left; transition: color 150ms, border-color 150ms, background 150ms;
    border-radius: 0;
}
.cat-tabs-vert .cat-tab:hover { color: var(--c-primary); background: var(--c-bg); }
.cat-tabs-vert .cat-tab.active {
    color: var(--c-primary); border-left-color: var(--c-primary); font-weight: 600;
    background: var(--c-primary-light);
}

/* ---- Supply Row ---- */
.supply-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px; background: var(--c-card); border: 1px solid var(--c-border);
    border-radius: var(--radius); margin-bottom: 8px;
}
.supply-info { flex: 1; }
.supply-name { font-size: 15px; font-weight: 600; }
.supply-meta { font-size: 12px; color: var(--c-text-secondary); margin-top: 4px; }
.supply-meta span { margin-right: 16px; }
.supply-actions { display: flex; gap: 8px; }

/* ---- Skill Card ---- */
.skill-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.skill-card {
    background: var(--c-card); border: 1px solid var(--c-border);
    border-radius: var(--radius); padding: 20px;
    transition: border-color 150ms, box-shadow 150ms;
}
.skill-card:hover { border-color: var(--c-primary); box-shadow: 0 2px 12px rgba(245,158,11,0.1); }
.skill-card-header { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.skill-card-cover {
    width: 64px; height: 64px; border-radius: var(--radius-sm);
    background: var(--c-primary-light); flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; color: var(--c-primary);
}
.skill-card-title { font-size: 16px; font-weight: 600; line-height: 1.4; }
.skill-card-meta { display: flex; gap: 16px; margin-top: 6px; }
.skill-card-meta span { font-size: 12px; color: var(--c-text-secondary); }
.skill-card-desc { font-size: 13px; color: var(--c-text-secondary); margin-top: 8px; line-height: 1.5; }

/* ---- Template Card ---- */
.template-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.template-card {
    background: var(--c-card); border: 1px solid var(--c-border);
    border-radius: var(--radius); padding: 24px;
}
.template-card .template-icon {
    width: 48px; height: 48px; border-radius: var(--radius);
    background: var(--c-primary-light); display: flex; align-items: center;
    justify-content: center; font-size: 24px; margin-bottom: 12px;
}
.template-card .template-name { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.template-card .template-desc { font-size: 13px; color: var(--c-text-secondary); margin-bottom: 8px; }
.template-card .template-meta { font-size: 12px; color: var(--c-text-muted); }

/* ---- Skill Detail ---- */
.skill-detail { max-width: 720px; }
.skill-cover {
    width: 100%; height: 260px; border-radius: var(--radius);
    background: var(--c-primary-light); display: flex; align-items: center;
    justify-content: center; font-size: 48px; color: var(--c-primary);
    margin-bottom: 24px;
}
.skill-meta-bar {
    display: flex; gap: 24px; padding: 12px 0;
    border-bottom: 1px solid var(--c-border); margin-bottom: 24px;
}
.skill-meta-item { font-size: 14px; color: var(--c-text-secondary); }
.skill-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.skill-tag {
    padding: 2px 10px; background: var(--c-bg-hover); border-radius: 12px;
    font-size: 12px; color: var(--c-text-secondary);
}
.skill-section { margin-bottom: 32px; }
.skill-section-title { font-size: 18px; font-weight: 600; margin-bottom: 16px; }
.skill-section p { color: var(--c-text); line-height: 1.8; margin-bottom: 12px; }

.step-box {
    background: var(--c-card); border: 1px solid var(--c-border);
    border-radius: var(--radius); padding: 20px; margin-bottom: 12px;
}
.step-box .step-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--c-primary); color: #FFF; font-size: 14px; font-weight: 600;
    margin-bottom: 8px;
}
.step-box .step-title { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.step-box .step-content { font-size: 14px; color: var(--c-text-secondary); line-height: 1.8; }

.material-list {
    list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
}
.material-item {
    padding: 8px 12px; background: var(--c-bg); border-radius: var(--radius-sm);
    font-size: 13px; color: var(--c-text);
}
.material-item .material-tag { font-size: 11px; margin-left: 6px; }
.material-item .material-tag.required { color: var(--c-danger); }
.material-item .material-tag.optional { color: var(--c-text-muted); }

.video-placeholder {
    width: 100%; height: 320px; background: #1C1917; border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; color: var(--c-text-secondary);
}

/* ---- Comment ---- */
.comment-list { margin-top: 24px; }
.comment-item { padding: 16px 0; border-bottom: 1px solid var(--c-border); }
.comment-item:last-child { border-bottom: none; }
.comment-header { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.comment-user { font-size: 14px; font-weight: 600; }
.comment-time { font-size: 12px; color: var(--c-text-muted); }
.comment-body { font-size: 14px; color: var(--c-text); line-height: 1.6; }
.comment-reply {
    margin-left: 40px; padding: 12px 16px; background: var(--c-bg);
    border-radius: var(--radius-sm); margin-top: 8px;
}
.comment-form { margin-top: 24px; }
.comment-form textarea {
    width: 100%; min-height: 80px; padding: 12px;
    border: 1px solid var(--c-border); border-radius: var(--radius-sm);
    font-size: 14px; font-family: var(--font); resize: vertical;
}
.comment-form textarea:focus { outline: none; border-color: var(--c-primary); }
.comment-actions { display: flex; justify-content: flex-end; margin-top: 8px; }

/* ---- Login ---- */
.login-page {
    display: flex; min-height: 100vh;
}
.login-brand {
    flex: 1; background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    display: flex; align-items: center; justify-content: center;
    padding: 80px 60px;
}
.login-brand-inner { text-align: center; }
.login-logo {
    display: flex; justify-content: center; margin-bottom: 24px;
}
.login-logo-icon {
    width: 80px; height: 80px; border-radius: 20px;
    background: rgba(255,255,255,0.2); color: #FFF;
    display: flex; align-items: center; justify-content: center;
    font-size: 36px; font-weight: 800; backdrop-filter: blur(8px);
}
.login-brand-title {
    font-size: 40px; font-weight: 800; color: #FFF;
    letter-spacing: 8px; margin-bottom: 12px;
}
.login-brand-desc {
    font-size: 18px; color: rgba(255,255,255,0.85); margin-bottom: 32px;
}
.login-brand-features {
    display: flex; align-items: center; justify-content: center; gap: 0;
}
.login-brand-item {
    font-size: 14px; color: rgba(255,255,255,0.75);
    padding: 0 16px;
}
.login-brand-sep {
    width: 1px; height: 12px; background: rgba(255,255,255,0.3);
}

.login-form-side {
    flex: 1; display: flex; align-items: center; justify-content: center;
    background: var(--c-bg); padding: 80px 60px;
}
.login-form-card { width: 100%; max-width: 400px; }
.login-form-title {
    font-size: 28px; font-weight: 700; color: var(--c-text);
    margin-bottom: 4px;
}
.login-form-subtitle {
    font-size: 15px; color: var(--c-text-secondary); margin-bottom: 40px;
}
.login-form-footer {
    text-align: center; font-size: 13px; color: var(--c-text-muted); margin-top: 32px;
}

.form-input-lg { height: 48px; font-size: 15px; padding: 0 16px; }
.btn-xl { height: 48px; font-size: 16px; font-weight: 600; letter-spacing: 4px; }

@media (max-width: 768px) {
    .login-page { flex-direction: column; }
    .login-brand { padding: 48px 24px; }
    .login-brand-title { font-size: 28px; letter-spacing: 4px; }
    .login-brand-desc { font-size: 15px; }
    .login-form-side { padding: 40px 24px; }
    .login-form-title { font-size: 22px; }
}

/* ---- Settings ---- */
.settings-row {
    display: flex; align-items: flex-start; justify-content: space-between;
    padding: 16px 0; border-bottom: 1px solid var(--c-border);
}
.settings-row:first-of-type { padding-top: 0; }
.settings-row:last-of-type { border-bottom: none; padding-bottom: 0; }
.settings-label { font-size: 14px; font-weight: 500; padding-top: 6px; flex-shrink: 0; }
.settings-control { width: 220px; }

/* ---- Profile ---- */
.profile-card {
    text-align: center; padding: 40px;
}
.profile-avatar {
    width: 80px; height: 80px; border-radius: 50%;
    background: var(--c-primary-light); color: var(--c-primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 32px; font-weight: 700; margin: 0 auto 16px;
}
.profile-name { font-size: 20px; font-weight: 600; }
.profile-phone { font-size: 13px; color: var(--c-text-secondary); margin-top: 4px; }
.profile-stats {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
    margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--c-border);
}
.profile-stat .stat-val { font-size: 24px; font-weight: 700; color: var(--c-primary); }
.profile-stat .stat-label { font-size: 12px; color: var(--c-text-secondary); margin-top: 2px; }
.profile-links { margin-top: 32px; }
.profile-link {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px; border-bottom: 1px solid var(--c-border);
    font-size: 14px; color: var(--c-text); cursor: pointer;
    transition: background 150ms;
}
.profile-link:last-child { border-bottom: none; }
.profile-link:hover { background: var(--c-bg); }
.profile-link .link-arrow { color: var(--c-text-muted); }

/* ---- Empty State ---- */
.empty-state {
    text-align: center; padding: 80px 24px;
}
.empty-state p { color: var(--c-text-secondary); font-size: 14px; margin-bottom: 16px; }

/* ---- Expiring Alert ---- */
.expiring-alert {
    background: var(--c-warning-light); border: 1px solid var(--c-warning);
    border-radius: var(--radius); padding: 12px 16px; margin-bottom: 24px;
}
.expiring-alert .alert-title { font-size: 14px; font-weight: 600; color: var(--c-warning); margin-bottom: 4px; }
.expiring-alert .alert-item { font-size: 13px; color: var(--c-text-secondary); }

/* ---- Quick Actions ---- */
.quick-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.quick-action {
    text-align: center; padding: 16px; background: var(--c-card);
    border: 1px solid var(--c-border); border-radius: var(--radius);
    cursor: pointer; transition: border-color 150ms;
}
.quick-action:hover { border-color: var(--c-primary); }
.quick-action .action-icon {
    width: 40px; height: 40px; border-radius: var(--radius);
    background: var(--c-primary-light); display: flex; align-items: center;
    justify-content: center; margin: 0 auto 8px; font-size: 20px;
}
.quick-action .action-label { font-size: 13px; font-weight: 500; }

/* ---- Feature Grid ---- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0 0 48px; }
.feature-card {
    background: var(--c-card); border: 1px solid var(--c-border);
    border-radius: var(--radius); padding: 28px 24px;
    text-align: center; transition: border-color 150ms, box-shadow 150ms;
}
.feature-card:hover { border-color: var(--c-primary); box-shadow: 0 2px 16px rgba(245,158,11,0.08); }
.feature-icon {
    width: 56px; height: 56px; border-radius: 12px;
    background: var(--c-primary-light); color: var(--c-primary);
    display: flex; align-items: center;
    justify-content: center; margin: 0 auto 16px;
    font-size: 24px; font-weight: 700;
}
.feature-title { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.feature-desc { font-size: 13px; color: var(--c-text-secondary); line-height: 1.7; }

/* ---- Scenario Grid ---- */
.scenario-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; }
.scenario-card {
    background: var(--c-card); border: 1px solid var(--c-border);
    border-radius: var(--radius); padding: 24px;
    transition: border-color 150ms;
}
.scenario-card:hover { border-color: var(--c-primary); }
.scenario-title { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.scenario-desc { font-size: 13px; color: var(--c-text-secondary); line-height: 1.7; }

/* ---- Section Title ---- */
.section-title {
    font-size: 18px; font-weight: 600; margin: 32px 0 16px;
}

/* ---- Toast ---- */
.toast {
    position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 500;
    padding: 8px 20px; border-radius: var(--radius); font-size: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15); animation: toastIn 200ms ease-out;
}
@keyframes toastIn { from { opacity: 0; transform: translateX(-50%) translateY(-8px); } }
.toast-success { background: var(--c-success); color: #FFF; }
.toast-error { background: var(--c-danger); color: #FFF; }
.toast-warning { background: var(--c-warning); color: #FFF; }

/* ---- Loading Mask ---- */
.loading-mask {
    position: fixed; inset: 0; z-index: 300;
    background: rgba(255,255,255,0.7);
    display: flex; align-items: center; justify-content: center;
}
.loading-spinner {
    width: 36px; height: 36px; border: 3px solid var(--c-border);
    border-top-color: var(--c-primary); border-radius: 50%;
    animation: spin 600ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Footer ---- */
.footer {
    text-align: center; padding: 24px; font-size: 12px;
    color: var(--c-text-muted); border-top: 1px solid var(--c-border);
    margin-top: auto;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-grid { grid-template-columns: 1fr; }
    .scenario-grid { grid-template-columns: 1fr; }
    .skill-grid { grid-template-columns: 1fr; }
    .template-grid { grid-template-columns: 1fr; }
    .quick-actions { grid-template-columns: repeat(2, 1fr); }
    .material-list { grid-template-columns: 1fr; }
    .page-content { padding: 16px; }
    .navbar { padding: 0 16px; }
    .navbar-nav { gap: 12px; }
    .hero-title { font-size: 28px; }
    .hero-tagline { font-size: 12px; }
    .supply-item { flex-direction: column; align-items: flex-start; gap: 12px; }
    .profile-stats { grid-template-columns: repeat(3, 1fr); }
    .page-with-sidebar { flex-direction: column; gap: 16px; }
    .page-sidebar { width: 100%; }
    .cat-tabs-vert { flex-direction: row; border-left: none;     overflow-x: auto; }
    .cat-tabs-vert .cat-tab { border-left: none;  margin-left: 0; margin-bottom: -2px; }
    .cat-tabs-vert .cat-tab.active { border-left-color: transparent; border-bottom-color: var(--c-primary); }
}
