
*{margin:0;padding:0;box-sizing:border-box}
body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;background:#f0f4f8;min-height:100vh}

/* ===== 顶部栏 ===== */
.top-navbar{background:linear-gradient(135deg,#1565c0,#1976d2);color:#fff;padding:0 24px;display:flex;align-items:center;height:56px;position:sticky;top:0;z-index:100;box-shadow:0 2px 8px rgba(0,0,0,.15)}
.navbar-brand{font-size:18px;font-weight:700;color:#fff;text-decoration:none;display:flex;align-items:center;gap:8px}
.navbar-right{display:flex;align-items:center;gap:12px;margin-left:auto}
.user-badge{padding:5px 14px;background:rgba(255,255,255,.2);color:#fff;border-radius:16px;font-size:13px;font-weight:500}
.btn-nav{padding:5px 14px;border:1px solid rgba(255,255,255,.4);background:transparent;color:#fff;border-radius:6px;font-size:13px;cursor:pointer;transition:all .2s}
.btn-nav:hover{background:rgba(255,255,255,.15)}
.btn-nav-logout{border-color:rgba(255,100,100,.6)}
.btn-nav-logout:hover{background:rgba(255,50,50,.3)}

/* ===== 左侧导航 + 内容区 ===== */
.layout{display:flex;min-height:calc(100vh - 56px);position:relative}
.sidebar{width:200px;background:#fff;padding:16px 0;box-shadow:2px 0 8px rgba(0,0,0,.06);flex-shrink:0}
.sidebar-item{padding:12px 24px;cursor:pointer;font-size:14px;color:#555;transition:all .2s;border-left:3px solid transparent}
.sidebar-item:hover{background:#f5f9ff;color:#1976d2}
.sidebar-item.active{background:#e3f2fd;color:#1976d2;border-left-color:#1976d2;font-weight:600}
.sidebar-item.admin-only{display:none}
.sidebar-item.admin-only.show{display:block}

.main-content{flex:1;padding:24px;overflow-y:auto}

/* ===== 通用组件 ===== */
.card{background:#fff;border-radius:12px;padding:20px;margin-bottom:16px;box-shadow:0 1px 4px rgba(0,0,0,.06)}
.card-title{font-size:17px;font-weight:600;color:#333;margin-bottom:16px}
.stats-grid{display:flex;flex-wrap:wrap;justify-content:center;gap:24px;margin-bottom:20px}
.stat-card{background:#fff;padding:16px 28px;border-radius:16px;text-align:center;box-shadow:0 2px 8px rgba(0,0,0,.08);min-width:120px;transition:transform .2s}
.stat-icon{font-size:32px;margin-bottom:6px;width:52px;height:52px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;margin:0 auto 6px;line-height:52px}
.stat-value{font-size:28px;font-weight:800;color:#333;margin:4px 0}
.stat-label{font-size:13px;color:#888;font-weight:500}

.form-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin-bottom:10px}
.form-row-2col{grid-template-columns:1fr 1fr}
.form-row-3col{grid-template-columns:1fr 1fr 1fr}
.form-group{display:flex;flex-direction:column;margin-bottom:10px}
.form-label{font-size:13px;color:#666;margin-bottom:4px}
.form-input,.form-select{width:100%;box-sizing:border-box;padding:9px 12px;border:1px solid #e0e0e0;border-radius:8px;font-size:14px;outline:none}
.form-input:focus,.form-select:focus{border-color:#1976d2}

/* 财务人员复选框网格布局（2列） */
.personnel-checkboxes-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:8px;
  max-height:120px;
  overflow-y:auto;
  padding:8px;
  border:1px solid #e0e0e0;
  border-radius:8px;
  background:#fafafa;
}

/* 财务人员复选框网格布局（3列） */
.personnel-checkboxes-grid-3col{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
  max-height:80px;
  overflow-y:auto;
  padding:8px;
  border:1px solid #e0e0e0;
  border-radius:8px;
  background:#fafafa;
}

/* 核心专家选择列表（可滚动复选框） */
.core-expert-list{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:6px;
  max-height:120px;
  overflow-y:auto;
  padding:8px;
  border:1px solid #e0e0e0;
  border-radius:8px;
  background:#fafafa;
}
.core-expert-list label{display:flex;align-items:center;gap:5px;font-size:12px;cursor:pointer;padding:2px 4px;border-radius:4px;transition:background .15s}
.core-expert-list label:hover{background:#e3f2fd}
.core-expert-list .expert-title-tag{font-size:10px;color:#78909c;margin-left:2px}

/* 负责人可搜索下拉 */
.leader-search-wrap{position:relative}
.leader-dropdown{display:none;position:absolute;top:100%;left:0;right:0;z-index:60;background:#fff;border:1px solid #e0e0e0;border-radius:8px;box-shadow:0 4px 12px rgba(0,0,0,.1);max-height:200px;overflow-y:auto;margin-top:2px}
.leader-dd-item{padding:8px 12px;font-size:13px;cursor:pointer;display:flex;align-items:center;gap:6px;transition:background .12s}
.leader-dd-item:hover{background:#e3f2fd}
.leader-dd-title{font-size:10px;color:#78909c;background:#f5f5f5;padding:1px 5px;border-radius:3px}
.leader-dd-empty{padding:10px 12px;font-size:12px;color:#999;text-align:center}
.search-input-sm{width:100%;font-size:12px;padding:6px 10px}
.mb-6{margin-bottom:6px}

.btn-primary{background:#1976d2;color:#fff;border:none;padding:10px 24px;border-radius:8px;cursor:pointer;font-size:14px;font-weight:500;transition:background .2s}
.btn-primary:hover{background:#1565c0}
.btn-secondary{background:#fff;color:#1976d2;border:1px solid #1976d2;padding:7px 14px;border-radius:6px;cursor:pointer;font-size:13px;transition:all .2s}
.btn-secondary:hover{background:#e3f2fd}
    .btn-secondary.active{background:#1976d2;color:#fff}
.btn-danger{background:#d32f2f;color:#fff;border:none;padding:7px 14px;border-radius:6px;cursor:pointer;font-size:13px}
.btn-sm{padding:5px 12px;font-size:12px}
.btn-disabled{opacity:.4;cursor:not-allowed}

table{width:100%;border-collapse:collapse}
th,td{padding:10px 14px;text-align:left;border-bottom:1px solid #eee;font-size:14px}
th{color:#666;font-weight:500;font-size:12px;background:#fafafa}
tbody tr:nth-child(even){background:#fafbfc}
tr:hover{background:#f0f7ff}

.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center;z-index:1000;opacity:0;visibility:hidden;transition:opacity .2s}
.modal-overlay.active{opacity:1;visibility:visible}
.modal-content{background:#fff;padding:24px;border-radius:16px;max-width:420px;width:92%}
.modal-title{font-size:18px;font-weight:600;color:#333;margin-bottom:16px;display:flex;align-items:center;justify-content:space-between}
    .modal-close{background:none;border:none;font-size:22px;cursor:pointer;color:#999;padding:0 4px;line-height:1}
    .modal-close:hover{color:#333}
.modal-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:16px}

.project-list{display:grid;gap:12px}
.project-item{padding:16px 18px;border:2px solid #e8e8e8;border-radius:12px;cursor:pointer;transition:all .2s;position:relative}
.project-item:hover{border-color:#1976d2;background:#f5f9ff}
.project-header{display:flex;justify-content:space-between;margin-bottom:6px}
.project-name{font-size:16px;font-weight:600;color:#1976d2}
.project-date{font-size:12px;color:#aaa}
.project-status-badge{display:inline-block;padding:2px 8px;border-radius:10px;font-size:11px;font-weight:500;white-space:nowrap}
.project-status-badge.status-active{background:#e8f5e9;color:#2e7d32}
.project-status-badge.status-surplus{background:#fff3e0;color:#e65100}
.project-status-badge.status-ended{background:#f5f5f5;color:#757575}
.project-status-badge.status-unknown{background:#eceff1;color:#607d8b}
.project-stats{display:flex;gap:16px;font-size:13px;color:#666}
.project-progress{margin-top:6px;height:4px;background:#e8e8e8;border-radius:2px;overflow:hidden;position:relative}
.project-progress-bar{height:100%;border-radius:2px;transition:width .3s}
/* 项目状态筛选标签 */
.status-filter-tabs{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:12px}
.status-filter-tab{padding:4px 12px;border-radius:14px;font-size:12px;cursor:pointer;border:1px solid #e0e0e0;background:#fff;color:#666;transition:all .15s}
.status-filter-tab:hover{border-color:#1976d2;color:#1976d2}
.status-filter-tab.active{background:#1976d2;color:#fff;border-color:#1976d2}
/* 常用科目快捷标签 */
.quick-tag{display:inline-block;padding:3px 10px;border-radius:12px;font-size:11px;font-weight:500;cursor:pointer;background:var(--tag-bg,#f5f5f5);color:var(--tag-color,#666);border:1px solid transparent;transition:all .15s}
.quick-tag:hover{border-color:var(--tag-color,#999);transform:translateY(-1px)}
/* 迷你趋势图 */
.mini-trend-chart{display:flex;align-items:flex-end;gap:4px;height:60px;padding:0 4px}
.mini-trend-col{flex:1;display:flex;flex-direction:column;align-items:center;height:100%}
.mini-trend-bar-wrap{flex:1;width:100%;display:flex;align-items:flex-end;justify-content:center}
.mini-trend-bar{width:70%;min-width:8px;border-radius:2px 2px 0 0;transition:height .3s}
.mini-trend-label{font-size:9px;color:#999;margin-top:2px;white-space:nowrap}
.mini-trend-val{font-size:8px;color:#666;margin-top:1px;white-space:nowrap}
/* 到期预警图标动画 */
.expiry-icon{animation:pulse-warn 2s infinite}
@keyframes pulse-warn{0%,100%{opacity:1}50%{opacity:.5}}
.project-progress-label{font-size:11px;color:#999;margin-top:2px;text-align:right}
.project-actions{display:flex;gap:8px;margin-top:8px;align-items:center}

/* 项目配置下拉菜单 */
.dropdown-wrap{position:relative;display:inline-block}
/* 操作日志时间线 */
.timeline{position:relative;padding-left:24px}
.timeline::before{content:'';position:absolute;left:7px;top:4px;bottom:4px;width:2px;background:#e0e0e0}
.timeline-item{position:relative;padding-bottom:16px}
.timeline-item:last-child{padding-bottom:0}
.timeline-item::before{content:'';position:absolute;left:-20px;top:4px;width:10px;height:10px;border-radius:50%;background:#1976d2;border:2px solid #fff;box-shadow:0 0 0 2px #e0e0e0;z-index:1}
.timeline-item.action-add::before{background:#4caf50}
.timeline-item.action-update::before{background:#ff9800}
.timeline-item.action-delete::before{background:#f44336}
.timeline-item.action-login::before{background:#9e9e9e}
.timeline-time{font-size:11px;color:#999;margin-bottom:2px}
.timeline-head{font-size:13px;color:#333;margin-bottom:2px}
.timeline-head strong{color:#1976d2;font-weight:600}
.timeline-head .action-tag{display:inline-block;padding:1px 6px;border-radius:3px;font-size:11px;font-weight:500;margin:0 4px;background:#e3f2fd;color:#1565c0}
.timeline-detail{font-size:12px;color:#888;margin-top:2px;word-break:break-all}
.dropdown-menu{display:none;position:absolute;top:100%;right:0;background:#fff;border:1px solid #e0e0e0;border-radius:8px;box-shadow:0 4px 16px rgba(0,0,0,.12);min-width:148px;z-index:50;overflow:hidden;margin-top:4px}
.dropdown-wrap.open .dropdown-menu{display:block;animation:ddFadeIn .15s ease}
.dropdown-item{padding:10px 16px;font-size:13px;cursor:pointer;transition:background .15s;white-space:nowrap}
.dropdown-item:hover{background:#f5f9ff}
.dropdown-item-danger{color:#d32f2f}
.dropdown-item-danger:hover{background:#ffebee}
@keyframes ddFadeIn{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}

.tab-nav{display:flex;gap:8px;margin-bottom:16px}
.tab-btn{padding:8px 18px;border-radius:8px;font-size:14px;color:#555;background:#fff;border:1px solid #e0e0e0;cursor:pointer;transition:all .2s}
.tab-btn:hover{border-color:#1976d2;color:#1976d2}
.tab-btn.active{background:#1976d2;color:#fff;border-color:#1976d2}
.tab-content{display:none}
.tab-content.active{display:block}
#page-scholars{position:absolute;left:200px;top:0;right:0;bottom:0;padding:24px;overflow-y:auto;background:#f0f4f8;z-index:2}

.user-list-item{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;border-bottom:1px solid #f0f0f0}
.user-list-name{font-size:14px;font-weight:500}
.user-list-role{font-size:12px;color:#888}

.no-access{text-align:center;padding:60px 20px;color:#999}
.modal-lg{max-width:900px}
.footer{text-align:center;padding:20px;color:#999;font-size:13px;border-top:1px solid #eee;margin-top:40px}

/* 底部 Tab 导航（移动端） */
.bottom-nav{display:none}
.bottom-nav-item{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:11px;color:#888;cursor:pointer;gap:2px;padding:6px 0;transition:all .2s;border-top:2px solid transparent}
.bottom-nav-item.active{color:#1976d2;border-top-color:#1976d2;background:#f5f9ff}
.bottom-nav-item span{font-size:11px}

/* Toast 通知 */
.toast-container{position:fixed;top:20px;left:50%;transform:translateX(-50%);z-index:9999;display:flex;flex-direction:column;gap:8px;align-items:center}
.toast{padding:14px 28px;border-radius:8px;color:#fff;font-size:15px;font-weight:600;box-shadow:0 4px 16px rgba(0,0,0,.2);animation:toast-in .3s ease;max-width:400px;word-break:break-all;text-align:center}
.toast-success{background:#4caf50}
.toast-error{background:#d32f2f}
.toast-warning{background:#ff9800}
.toast-info{background:#1976d2}
.toast-fade{animation:toast-out .3s ease forwards}
@keyframes toast-in{from{opacity:0;transform:translateY(-20px)}to{opacity:1;transform:translateY(0)}}
@keyframes toast-out{from{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(-20px)}}

/* 表格排序 */
th.sortable{cursor:pointer;user-select:none;position:relative;padding-right:20px}
th.sortable:hover{color:#1976d2;background:#e8f0fe}
th.sortable::after{content:'↕';position:absolute;right:4px;font-size:11px;color:#aaa}
th.sortable.asc::after{content:'↑';color:#1976d2}
th.sortable.desc::after{content:'↓';color:#1976d2}

/* 项目详情弹窗 */
.modal-mask{position:fixed;inset:0;background:rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center;z-index:1000;padding:16px}
.modal-box{background:#fff;border-radius:16px;width:100%;max-width:480px;max-height:86vh;overflow:auto;box-shadow:0 10px 40px rgba(0,0,0,.2)}
.modal-header{display:flex;justify-content:space-between;align-items:center;padding:14px 20px;border-bottom:1px solid #eee;font-weight:700;font-size:16px}
.modal-body{padding:16px 20px}
/* 两栏信息网格 */
.modal-info-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px 16px;margin-bottom:14px}
.modal-info-cell{display:flex;justify-content:space-between;align-items:center;padding:6px 10px;background:#f8f9fb;border-radius:6px;font-size:13px}
.modal-info-cell.modal-info-full{grid-column:1/-1}
.modal-info-label{color:#888}
.modal-info-val{color:#222;font-weight:500}
/* 经费概览紧凑行 */
.modal-budget-compact{margin-bottom:12px}
.modal-budget-row{display:flex;justify-content:space-between;align-items:center;font-size:13px;margin-bottom:6px;gap:8px;flex-wrap:wrap}
.modal-progress-bar{height:8px;background:#eee;border-radius:6px;overflow:hidden}
.modal-progress-fill{height:100%;border-radius:6px}
/* 科目明细 */
.modal-cats{border-top:1px solid #f0f0f0;padding-top:10px;margin-top:2px}
.modal-cat-row{display:flex;justify-content:space-between;font-size:13px;padding:4px 0;border-bottom:1px dashed #f0f0f0}
.modal-footer{display:flex;gap:10px;padding:12px 20px;border-top:1px solid #eee}
.modal-footer button{flex:1;padding:9px;border-radius:10px;border:none;font-size:14px;cursor:pointer}

/* ===== 工具类：布局 ===== */
.flex-between{display:flex;justify-content:space-between;align-items:center}
.flex-center{display:flex;justify-content:center;align-items:center}
.flex-col{display:flex;flex-direction:column;gap:10px}
.flex-row{display:flex;gap:10px;align-items:center}
.flex-wrap{flex-wrap:wrap}
.flex-gap-6{gap:6px}
.align-items-center{align-items:center}

/* ===== 工具类：文本 ===== */
.text-muted{color:#999}
.text-danger{color:#f44336}
.text-success{color:#2e7d32}
.text-primary{color:#1976d2}
.text-warning{color:#e65100}
.text-center{text-align:center}
.text-bold{font-weight:700}
.text-sm{font-size:13px}
.text-xs{font-size:12px}

/* ===== 工具类：间距 ===== */
.mb-4{margin-bottom:4px}
.mb-6{margin-bottom:6px}
.mb-8{margin-bottom:8px}
.mb-10{margin-bottom:10px}
.mb-12{margin-bottom:12px}
.mb-16{margin-bottom:16px}
.mt-0{margin-top:0}
.ml-4{margin-left:4px}
.mr-4{margin-right:4px}
.p-20{text-align:center;padding:20px}
.p-40{text-align:center;padding:40px}

/* ===== 工具类：占位/提示 ===== */
.loading-placeholder{text-align:center;padding:40px;color:#999}
.error-placeholder{text-align:center;padding:40px;color:#f44336}
.info-placeholder{text-align:center;padding:20px;color:#999}

/* ===== 工具类：搜索框 ===== */
.search-input{width:180px;font-size:13px;padding:6px 10px}
.search-input-md{width:220px;font-size:13px}
.search-input-lg{width:240px;font-size:13px}

/* ===== 工具类：标签/徽章 ===== */
.badge{font-size:11px;padding:1px 6px;border-radius:4px;vertical-align:middle}
.badge-danger{color:#e74c3c;background:#fde8e8}
.badge-warning{color:#f57c00;background:#fff3e0}

/* ===== 工具类：图标背景配色 ===== */
.icon-bg-green{background:#e8f5e9;color:#4caf50}
.icon-bg-orange{background:#fff3e0;color:#ff9800}
.icon-bg-gray{background:#f5f5f5;color:#9e9e9e}
.icon-bg-blue{background:#e3f2fd;color:#1976d2}
.icon-bg-red{background:#ffebee;color:#d32f2f}
.icon-bg-light-green{background:#e8f5e9;color:#2e7d32}

/* ===== 工具类：经费概览栏 ===== */
.budget-overview-bar{display:flex;gap:16px;flex-wrap:wrap;padding:12px 16px;background:#f5f7fa;border-radius:8px;margin-bottom:14px;font-size:13px;align-items:center}

/* ===== 工具类：科目卡片网格 ===== */
.cat-cards-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}

/* ===== 工具类：按钮组间距 ===== */
.flex-gap-8{gap:8px}

/* ===== 工具类：图表区域 ===== */
.chart-section{margin-bottom:16px;padding:16px;background:#f8fafc;border-radius:10px;border:1px solid #e8edf2}
.chart-card{background:#fff;border-radius:8px;padding:12px}

/* ===== 工具类：小按钮 ===== */
.btn-xs{font-size:12px}
.text-sm{font-size:13px}
.text-info{color:#1565c0}
.text-dark{color:#333}
.my-3{margin:3px 0}

/* ===== 工具类：按钮增强 ===== */
.btn-cancel { background: #eee; color: #333; border-color: #ccc; }

/* ===== 工具类：滚动容器 ===== */
.max-height-300 { max-height: 300px; }
.max-height-200 { max-height: 200px; }
.overflow-y-auto { overflow-y: auto; }

/* ===== 工具类：输入框增强 ===== */
.min-height-16 { min-height: 16px; }
.pt-4 { padding-top: 4px; }
.pb-4 { padding-bottom: 4px; }

/* ===== 工具类：警告/信息增强 ===== */
.font-size-12 { font-size: 12px; }
.pt-12 { padding-top: 12px; }
.pb-12 { padding-bottom: 12px; }
.mb-12-flex { margin-bottom: 12px; }
.mt-12 { margin-top: 12px; }
.mr-4 { margin-right: 4px; }
.vertical-align-neg2 { vertical-align: -2px; }

/* ===== 工具类：预警框 ===== */
.warning-box{padding:10px 14px;border-left:4px solid;border-radius:6px;margin-bottom:10px}
.warning-green{background:#e8f5e9;border-color:#4caf50}
.warning-blue{background:#e3f2fd;border-color:#1976d2}
.warning-orange{background:#fff3e0;border-color:#e65100}
.warning-red{background:#ffebee;border-color:#d32f2f}
.warning-red-sm{padding:6px 12px;border-left:3px solid #d32f2f;border-radius:4px;margin-bottom:4px;font-size:13px;background:#ffebee}

/* ===== 工具类：科目卡片 ===== */
.cat-card{padding:12px;border-radius:8px;background:#fff;border:2px solid #e0e0e0;cursor:pointer;transition:all 0.2s}
.cat-card.cat-card-selected{border-color:#1976d2;box-shadow:0 0 0 2px rgba(25,118,210,0.2)}
.cat-card-name{font-weight:600;font-size:14px;color:#333}
.cat-card-info{font-size:11px;margin-top:4px}

/* ===== 工具类：图表工具栏 ===== */
.chart-toolbar{display:flex;justify-content:flex-end;align-items:center;margin-bottom:12px;flex-wrap:wrap;gap:8px}
.chart-btn-group{display:flex;gap:6px}
.chart-btn-active{background:#1976d2;color:#fff}

/* ===== 工具类：会泽卡片 ===== */
.huize-card{padding:16px;background:#fff;border-radius:10px;border:1px solid #e8edf2}
.huize-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px;padding-bottom:12px;border-bottom:2px solid #e8edf2;flex-wrap:wrap;gap:8px}
tr.hz-summary-row[onclick]:hover{background:#f0f4ff}
tr.hz-summary-row[onclick]:hover td{color:#1976d2!important}
.hz-toggle-arrow{font-size:10px;color:#999;display:inline-block;transition:transform .2s}
.select-sm{padding:6px 12px;border:1px solid #e0e0e0;border-radius:6px;font-size:13px;background:#fff}

/* ===== 工具类：状态标签 ===== */
.modal-status-tag-xs{font-size:12px}
.modal-status-tag-padded{padding:2px 8px}
.modal-status-tag-rounded{border-radius:10px}
.bg-light-gray{background:#f5f5f5}
.bg-light-green{background:#e8f5e9}
.text-green-dark{color:#2e7d32}
.text-gray-medium-alt{color:#999}
.text-red-dark{color:#d32f2f}
.font-weight-bold{font-weight:500}

/* ===== 工具类：进度条 ===== */
.modal-progress-row{display:flex;align-items:center;gap:12px}
.modal-progress-text{font-size:13px;font-weight:600}
.modal-progress-bar-full{width:100%}
.modal-progress-bar-bg{height:8px;background:#e0e0e0;border-radius:4px;overflow:hidden}
.modal-progress-bar-fill{height:100%;border-radius:4px;transition:width .3s}

/* ===== 工具类：预算概览 ===== */
.budget-overview-row{display:flex;align-items:center;gap:16px}
.budget-amount-total{color:#1976d2;font-size:15px}
.budget-amount-used{color:#d32f2f}
.budget-amount-remaining{color:#2e7d32}

/* ===== 工具类：剩余预算详情 ===== */
.remaining-budget-header{font-size:14px;color:#666;margin-bottom:12px}
.remaining-budget-highlight{color:#1976d2;font-weight:700;font-size:16px}
.remaining-budget-used{color:#d32f2f;font-weight:700}
.remaining-budget-left{color:#2e7d32;font-weight:700}
.remaining-budget-warning{color:#d32f2f}
.remaining-budget-success{color:#4caf50}
.remaining-budget-caution{color:#f57f17}

/* ===== 工具类：项目详情 ===== */
.project-detail-section{padding:12px;background:#fff8e1;border-radius:8px;margin-bottom:12px;border:1px solid #ffe0b2}
.project-detail-grid{display:grid;gap:10px}
.project-detail-card{background:#f9f9f9;padding:12px 16px;border-radius:8px}
.project-detail-info-row{display:flex;justify-content:space-between;font-size:14px;margin-bottom:6px}
.project-detail-exec-rate{font-size:12px;color:#888;margin-top:4px}

/* ===== 工具类：配置页面 ===== */
.config-tab-content{display:none}
.config-permission-denied{text-align:center;padding:40px;color:#999}
.config-log-search{width:160px}
.config-project-status{padding:2px 8px;border-radius:10px;font-size:12px}
.config-project-status-ended{background:#ffebee;color:#d32f2f}
.config-project-status-residual{background:#fff3e0;color:#e65100}
.config-project-status-active{background:#e8f5e9;color:#2e7d32}
.config-user-checkbox{margin-right:12px;font-size:14px}

/* ===== 工具类：会泽统计 ===== */
.huize-stat-card{padding:16px;background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);border-radius:8px;color:#fff;margin-bottom:16px}
.huize-stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(100px,1fr));gap:12px}
.huize-stat-item{background:rgba(255,255,255,0.2);padding:10px;border-radius:6px;text-align:center}
.huize-stat-label{font-size:11px;opacity:0.9}
.huize-stat-value{font-size:18px;font-weight:700}
.huize-stat-item-padded{padding:16px}

/* ===== 工具类：预算进度条 ===== */
.modal-progress-fill{width:var(--progress-width);background:var(--progress-color)}

/* ===== 工具类：子类型选择 ===== */
.sub-type-card{flex:1;padding:10px 6px;border-radius:8px;text-align:center;font-size:14px;font-weight:500;cursor:pointer;transition:all 0.2s}
.sub-type-card-unselected{border:2px solid #e0e0e0;background:#fff;color:#333}
.sub-type-card-selected{border:2px solid #1976d2;background:#e3f2fd;color:#1976d2}

/* ===== 工具类：明细按钮 ===== */
.detail-btn{padding:12px 16px;border:2px dashed #1976d2;border-radius:8px;background:#e3f2fd;color:#1976d2;font-size:14px;font-weight:500;cursor:pointer;text-align:center;transition:all 0.2s}
.detail-amount-display{font-size:14px;color:#666}
.detail-amount-value{font-weight:700;color:#d32f2f}

/* ===== 工具类：布局 ===== */
.flex-gap-10{display:flex;gap:10px}
.mb-10{margin-bottom:10px}
.mt-8{margin-top:8px}
.ml-8{margin-left:8px}

/* ===== 工具类：按钮增强 ===== */
.btn-warning{background:#e65100;color:#fff;border:none;border-radius:4px;cursor:pointer}
.btn-xs{padding:4px 10px;font-size:12px}
.mr-6{margin-right:6px}
.text-red-dark{color:#d32f2f}
.border-red-dark{border-color:#d32f2f}
.w-120{width:120px}
.w-140{width:140px}
.w-180{width:180px}
.w-auto{width:auto}
.sub-type-tag{font-size:10px;padding:1px 5px;border-radius:3px}

/* ===== 工具类：剩余预算 ===== */
.remaining-budget-row{display:flex;align-items:center;gap:16px}
.remaining-budget-amount{font-size:14px;color:#666;margin-bottom:12px}
.remaining-budget-total{color:#1976d2;font-weight:700;font-size:16px}
.remaining-budget-used-amount{color:#d32f2f;font-weight:700}
.remaining-budget-left-amount{color:#2e7d32;font-weight:700}
.warning-red-bold{color:#d32f2f;font-weight:bold}
.bg-yellow-light{background:#fff8e1}
.border-yellow-light{border:1px solid #ffe0b2}
.project-detail-grid{display:grid;gap:10px}
.project-detail-card{background:#f9f9f9;padding:12px 16px;border-radius:8px}
.project-detail-info-row{display:flex;justify-content:space-between;font-size:14px;margin-bottom:6px}
.progress-bar-bg{height:8px;background:#e0e0e0;border-radius:4px;overflow:hidden}
.progress-bar-fill{height:100%;border-radius:4px}
.project-detail-exec-rate{font-size:12px;color:#888;margin-top:4px}

/* ===== 工具类：分页 ===== */
.pagination-bar{display:flex;justify-content:center;align-items:center;gap:6px;margin-top:20px;padding-top:16px;border-top:1px solid #eee}
.pagination-current{min-width:30px;text-align:center;padding:4px 10px;border-radius:6px;background:#1976d2;color:#fff;font-weight:700;font-size:13px}
.pagination-ellipsis{color:#999;font-size:13px}

/* ===== #5: 记录筛选栏 ===== */
.rec-filter-bar{display:flex;align-items:center;gap:8px;margin-bottom:10px;flex-wrap:wrap}
.rec-filter-label{font-size:12px;color:#999;white-space:nowrap}
.rec-filter-select{padding:4px 8px;font-size:12px;border:1px solid #ddd;border-radius:4px;background:#fff;color:#333;min-width:100px}
.rec-filter-select:focus{border-color:#1976d2;outline:none}

/* ===== #6: 新记录高亮动画 ===== */
@keyframes recHighlight{0%{background:rgba(76,175,80,.18)}100%{background:transparent}}
tr.rec-new-highlight{animation:recHighlight 5s ease-out forwards}
tr.rec-new-highlight td{font-weight:500}

/* ===== #7: 实时预算消耗提示 ===== */
.budget-consum-hint{margin-top:10px;padding:8px 12px;background:#f5f7fa;border-radius:6px;font-size:13px;line-height:1.6;border-left:3px solid #1976d2}
.budget-consum-hint:empty{display:none}

/* ===== 工具类：确认按钮 ===== */
.confirm-btn{padding:10px 24px}

/* ===== 工具类：配置页面 ===== */
.config-tab-content-hidden{display:none}
.config-permission-denied-centered{text-align:center;padding:40px;color:#999}
.config-user-list-flex{display:flex;align-items:center;gap:6px}
.progress-bar-with-transition{height:4px;background:var(--bar-color);border-radius:2px;transition:width .3s}

/* ===== 工具类：状态指示（替代 Emoji） ===== */
.mark-ok{color:#4caf50;font-weight:700}
.mark-err{color:#f44336;font-weight:700}
.status-normal{font-size:15px;font-weight:700;color:#2e7d32}
.status-warning{font-size:15px;font-weight:700;color:#1565c0;margin-bottom:6px}
.status-danger{font-size:14px;font-weight:600;color:#e65100;margin-bottom:8px}

/* ===== 工具类：模态框 ===== */
.modal-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.5);z-index:999;display:flex;align-items:center;justify-content:center}
.modal-box-sm{background:#fff;border-radius:12px;padding:24px;width:420px;max-width:90vw}
.justify-between{display:flex;justify-content:space-between}
.items-center{align-items:center}
.font-size-17{font-size:17px}
.font-weight-bold{font-weight:600}
.mb-16-flex{margin-bottom:16px}
.flex-gap-10{display:flex;gap:10px}
.mb-16-flex{margin-bottom:16px}
.mt-4{margin-top:4px}
.text-gray-medium-alt{font-size:13px;color:#666}
.text-gray-light-alt{font-size:12px;color:#999}
.normal-detail-modal{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.5);z-index:999;display:flex;align-items:center;justify-content:center;padding:16px;box-sizing:border-box}
.normal-detail-modal-box{background:#fff;border-radius:12px;padding:24px;width:420px;max-width:100%;position:relative;max-height:calc(100vh - 32px);overflow-y:auto;box-sizing:border-box}
.travel-detail-modal-box{background:#fff;border-radius:12px;padding:24px;width:520px;max-width:100%;position:relative;max-height:calc(100vh - 32px);overflow-y:auto;box-sizing:border-box}

/* ===== 工具类：区块标题 ===== */
.section-title{font-size:16px;font-weight:600;color:#1a237e;margin-bottom:10px}
.section-title-sm{font-size:14px;font-weight:600;color:#1a237e;margin-bottom:10px}
.section-title-dark{font-size:16px;font-weight:600;color:#222;border-left:4px solid;padding-left:10px;margin:16px 0 8px}

/* ===== 工具类：卡片标题行 ===== */
.card-title-row{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px}

/* ===== 工具类：表格 ===== */
.table-scroll{overflow-x:auto}
.th-min120{min-width:120px}

/* ===== 确认弹窗（替代原生 confirm） ===== */
.confirm-modal-overlay{z-index:2000}
.confirm-modal-box{max-width:380px;text-align:center;padding:28px 24px 20px}
.confirm-modal-box .modal-title{justify-content:center;margin-bottom:8px}
.confirm-modal-box .modal-close{position:absolute;top:10px;right:14px}

/* ===== 编辑记录弹窗 ===== */
.edit-modal-box{background:#fff;border-radius:12px;padding:24px;width:480px;max-width:100%;position:relative;max-height:calc(100vh - 32px);overflow-y:auto;overflow-x:hidden}
.edit-modal-header{font-size:17px;font-weight:600;margin-bottom:16px;display:flex;align-items:center;justify-content:space-between}
.edit-modal-close{cursor:pointer;font-size:22px;color:#999;line-height:1;padding:4px;background:none;border:none;transition:color .15s}
.edit-modal-close:hover{color:#333}
.edit-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:10px}
.edit-grid-3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px;margin-bottom:10px}
.edit-fg-narrow{min-width:0;margin-bottom:10px}
.edit-toggle-bar{margin-bottom:12px;padding:10px 14px;border:1px solid;border-radius:8px;display:flex;align-items:center;gap:10px}
.edit-toggle-bar-meeting{background:#fff8e1;border-color:#ffe0b2}
.edit-toggle-bar-travel{background:#fff3e0;border-color:#ffe0b2}
.edit-toggle-bar-labor{background:#e8f5e9;border-color:#c8e6c9}
.edit-toggle-label{display:flex;align-items:center;gap:8px;cursor:pointer;font-size:14px;font-weight:600;margin:0}
.edit-toggle-label-warm{color:#e65100}
.edit-toggle-label-green{color:#2e7d32}
.edit-toggle-check{width:16px;height:16px;cursor:pointer}
.edit-toggle-hint{font-size:12px;color:#999}
.edit-total-display{padding:10px 12px;background:#f5f5f5;border-radius:6px;font-size:15px;font-weight:700;color:#d32f2f;text-align:center}
.edit-radio-group{display:flex;gap:10px;margin-bottom:10px}
.edit-radio-label{display:flex;align-items:center;gap:6px;cursor:pointer;font-size:13px}
.edit-modal-footer{display:flex;gap:10px;justify-content:flex-end;margin-top:16px}

/* ===== 工具类：历史调整记录 ===== */
.adj-item{padding:8px;background:#fff;border-radius:6px;margin-bottom:6px;font-size:13px}
.adj-row{display:flex;justify-content:space-between}
.adj-meta{font-size:12px;color:#888;margin-top:2px}

/* ===== 工具类：表单行 ===== */
.form-row-inline{display:flex;gap:10px;align-items:center}
.form-input-compact{flex:1;padding:8px;border:1px solid #e0e0e0;border-radius:6px}

/* ===== 登录页面样式 ===== */
.login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #1976d2 0%, #42a5f5 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    box-sizing: border-box;
    padding: 20px;
}

.login-page * {
    box-sizing: border-box;
    margin: 0;
}

.login-container {
    background: white;
    padding: 48px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
    z-index: 10; /* 确保在其他元素之上 */
}

.login-copyright {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: 12px;
    background: rgba(255,255,255,0.9);
    border-top: 1px solid #e0e0e0;
    font-size: 13px;
    color: #666;
    z-index: 999;
}
.logo { text-align: center; margin-bottom: 32px; }
.logo-icon { font-size: 48px; margin-bottom: 16px; }
.logo h1 { color: #1976d2; font-size: 24px; font-weight: 600; }
.logo p { color: #999; font-size: 14px; margin-top: 8px; }
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 14px; font-weight: 500; color: #333; margin-bottom: 8px; }
.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e3f2fd;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
}
.form-input:focus { outline: none; border-color: #1976d2; }
.btn-login {
    width: 100%;
    padding: 14px;
    background: #1976d2;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}
.btn-login:hover { background: #1565c0; }
.btn-login:disabled { background: #ccc; cursor: not-allowed; }
.error-message {
    background: #ffebee;
    color: #d32f2f;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
    display: none;
}
@media(max-width:480px) {
    .login-container { padding: 24px 16px; }
    .logo h1 { font-size: 20px; }
    .logo-icon { font-size: 36px; }
}

/* ===== 工具类：尺寸 ===== */
.logo-sm { width: 38px; height: 38px; }
.logo-md { width: 60px; height: 60px; }
.w-220 { width: 220px; }

/* ===== 工具类：布局增强 ===== */
.flex-gap-12 { gap: 12px; }
.mb-16-flex { margin-bottom: 16px; }
.mr-10 { margin-right: 10px; }
.pt-10 { padding-top: 10px; }
.pb-10 { padding-bottom: 10px; }
.pl-16 { padding-left: 16px; }
.pr-16 { padding-right: 16px; }
.p-10-16 { padding: 10px 16px; }
.text-center-pt { padding-top: 40px; }
.overflow-x-auto { overflow-x: auto; }
.w-full { width: 100%; }
.table-collapse { border-collapse: collapse; }
.font-size-13 { font-size: 13px; }
.p-10 { padding: 10px; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.border-bottom-2-solid-e0e0e0 { border-bottom: 2px solid #e0e0e0; }
.border-bottom-1-solid-f0f0f0 { border-bottom: 1px solid #f0f0f0; }
.border-top-2-solid-e0e0e0 { border-top: 2px solid #e0e0e0; }
.bg-f5f5f5 { background: #f5f5f5; }
.bg-f8fafc { background: #f8fafc; }
.justify-flex-end { justify-content: flex-end; }
.flex-row { display: flex; }
.flex-justify-space-between { justify-content: space-between; }
.flex-items-center { align-items: center; }
.mb-10 { margin-bottom: 10px; }
.grid-cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid-cols-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.mb-10-grid { margin-bottom: 10px; }
.flex-1 { flex: 1; }

/* ===== 工具类：文本增强 ===== */
.text-blue { color: #1976d2; }
.text-gray-light { color: #ddd; }
.text-gray-medium { color: #888; }
.text-gray-dark { color: #999; }
.text-gray-lighter { color: #bbb; }
.font-size-12 { font-size: 12px; }
.font-size-13 { font-size: 13px; }
.font-size-14 { font-size: 14px; }
.font-size-24 { font-size: 24px; }

/* ===== 工具类：边框增强 ===== */
.border-ddd { border: 1px solid #ddd; }
.border-radius-8 { border-radius: 8px; }
.border-top-dashed { border-top: 1px dashed #e0e0e0; }

/* ===== 工具类：通用工具 ===== */
.m-0 { margin: 0; }
.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-4 { margin-top: 4px; }
.mb-25 { margin-bottom: 25px; }
.m-20-0-16 { margin: 20px 0 16px; }
.p-20-0 { padding: 20px 0; }
.d-none { display: none; }
.text-white { color: #fff; }
.text-white-opacity-8 { color: rgba(255,255,255,0.8); }
.opacity-6 { opacity: 0.6; }
.opacity-90 { opacity: 0.9; }
.text-center { text-align: center; }

/* ===== 工具类：专家表单 ===== */
.scholars-search-input { padding: 10px 16px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; width: 220px; }
.scholars-pagination-flex { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.scholars-loading-text { text-align: center; padding: 40px; color: #999; }

/* ===== 登录页面额外样式 ===== */
.logo-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

/* 修复登录页面容器居中问题 */
.login-container {
    background: white;
    padding: 48px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
    /* 确保在 flex 容器中居中 */
    margin: 0 auto;
}

.login-copyright {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: 12px;
    background: rgba(255,255,255,0.9);
    border-top: 1px solid #e0e0e0;
    font-size: 13px;
    color: #666;
    z-index: 999;
}

/* ===== SVG 图标系统 ===== */
.icon{display:inline-block;vertical-align:middle;flex-shrink:0}
.icon-sm{width:16px;height:16px}
.icon-md{width:20px;height:20px}
.icon-lg{width:24px;height:24px}
.icon-xl{width:28px;height:28px}
.icon-nav{width:24px;height:24px;margin-bottom:2px}
.icon-menu{width:22px;height:22px;margin-right:10px}
.icon-circle{width:36px;height:36px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;margin-right:12px;flex-shrink:0}

/* ===== 工具类：其他 ===== */
.opacity-40{opacity:.4}
.cursor-pointer{cursor:pointer}

/* ===== 工具类：个人中心 ===== */
.profile-header{display:flex;align-items:center;gap:16px;margin-bottom:24px}
.profile-avatar{width:56px;height:56px;border-radius:50%;background:linear-gradient(135deg,#1976d2,#1565c0);display:flex;align-items:center;justify-content:center;font-size:24px;color:#fff;flex-shrink:0}
.profile-name{font-size:18px;font-weight:600}
.profile-role{font-size:13px;color:#888;margin-top:2px}
.menu-item{padding:12px 16px;background:#fff;border:1px solid #e0e0e0;border-radius:8px;cursor:pointer;font-size:14px;color:#333;display:flex;align-items:center}
.menu-item-config{padding:12px 16px;background:#e3f2fd;border-radius:8px;cursor:pointer;font-size:14px;color:#1976d2;font-weight:500;display:flex;align-items:center}
.btn-logout{padding:12px 16px;background:#d32f2f;color:#fff;border:none;border-radius:8px;cursor:pointer;font-size:14px;font-weight:500;margin-top:12px;display:flex;align-items:center}

/* ===== #4: 提交确认弹窗信息行 ===== */
.confirm-info-grid{margin:8px 0}
.confirm-info-row{display:flex;justify-content:space-between;align-items:baseline;padding:10px 0;border-bottom:1px solid #f0f0f0}
.confirm-info-row:last-child{border-bottom:none}
.confirm-info-label{color:#888;font-size:13px;flex-shrink:0;width:50px}
.confirm-info-value{color:#333;font-size:14px;text-align:right;word-break:break-all}

/* ===== #5: 个人中心统计面板 ===== */
.profile-stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:12px;margin-bottom:20px}
.profile-stat-card{background:#fff;padding:16px;border-radius:10px;text-align:center;box-shadow:0 1px 4px rgba(0,0,0,.06);transition:transform .2s}
.profile-stat-card:hover{transform:translateY(-2px);box-shadow:0 4px 12px rgba(0,0,0,.1)}
.profile-stat-icon{font-size:24px;margin-bottom:4px}
.profile-stat-value{font-size:26px;font-weight:800;color:#333;margin:2px 0}
.profile-stat-label{font-size:12px;color:#888;font-weight:500}
.profile-recent-list{list-style:none;padding:0;margin:0}
.profile-recent-item{display:flex;justify-content:space-between;align-items:center;padding:10px 0;border-bottom:1px solid #f5f5f5}
.profile-recent-item:last-child{border-bottom:none}
.profile-recent-desc{font-size:13px;color:#333;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-right:12px}
.profile-recent-amount{font-size:13px;font-weight:600;color:#d32f2f;flex-shrink:0}
.profile-recent-date{font-size:12px;color:#999;margin-left:12px;flex-shrink:0}
.profile-chart-wrap{max-width:360px;margin:0 auto}

@media(max-width:768px){
  .sidebar{display:none}
  .layout{flex-direction:column}
  .main-content{padding:12px 12px 72px 12px}
  #page-scholars{left:0;position:relative;padding:12px 12px 72px 12px}

  /* 底部导航 */
  .bottom-nav{display:flex;position:fixed;bottom:0;left:0;right:0;height:56px;background:#fff;box-shadow:0 -2px 8px rgba(0,0,0,.08);z-index:100}

  /* 顶部栏 */
  .top-navbar{padding:0 12px;height:48px}
  .navbar-brand{font-size:15px}
  .user-badge{padding:4px 10px;font-size:12px}
  .btn-nav{display:none}

  /* 统计卡片 */
  .stats-grid{gap:10px}
  .stat-card{padding:12px 16px;min-width:auto;flex:1;min-width:90px}
  .stat-icon{font-size:24px;width:40px;height:40px;line-height:40px}
  .stat-value{font-size:22px}
  .stat-label{font-size:11px}

  /* 表格横向滚动 */
  .card{padding:14px}
  table{min-width:600px;font-size:13px}
  th,td{padding:8px 10px}

  /* 项目列表 */
  .project-stats{flex-wrap:wrap;gap:8px}
  .project-header{flex-wrap:wrap}
  .project-actions{flex-wrap:wrap}

  /* 表单 */
  .form-row{grid-template-columns:1fr}

  /* 模态框 */
  .modal-content{width:95%;max-width:none;padding:16px;max-height:90vh;overflow-y:auto}
  .modal-lg{max-width:none}
  .modal-box{max-width:95vw}
  .modal-title{font-size:16px}

  /* 标签页 */
  .tab-nav{flex-wrap:wrap;gap:6px}
  .tab-btn{padding:6px 14px;font-size:13px}

  /* 按钮组 */
  .btn-primary{padding:8px 16px;font-size:13px}
  .btn-secondary{padding:6px 12px;font-size:12px}

  /* 分页 */
  .pagination{flex-wrap:wrap;gap:4px}
  .pagination button{padding:6px 10px;font-size:12px}

  /* 移动端图表响应式 */
  .chart-area{padding:10px !important}
  .chart-area canvas{max-height:200px}
  .profile-stats-grid{grid-template-columns:repeat(2,1fr);gap:8px}
  .profile-stat-card{padding:12px}
  .profile-stat-value{font-size:22px}
  .profile-chart-wrap{max-width:100%}
}
