/* ── Dashboard ── */
.dash-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;min-width:0;}
.dash-grid.wide{grid-template-columns:1fr;}
.dash-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:16px 18px;box-shadow:var(--shadow);min-width:0;overflow:hidden;word-break:break-word;}
.dash-card-title{font-family:'Unbounded',sans-serif;font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.07em;color:var(--hint);margin-bottom:12px;display:flex;align-items:center;gap:7px;}
.dash-card-title span{font-size:15px;}

.dash-kpi-row{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:16px;}
.dash-kpi{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:14px 16px;position:relative;overflow:hidden;min-width:0;}
.dash-kpi-label{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:var(--hint);margin-bottom:6px;}
.dash-kpi-value{font-family:'Unbounded',sans-serif;font-size:clamp(14px,4vw,22px);font-weight:600;letter-spacing:-.03em;line-height:1.1;}
.dash-kpi-sub{font-size:11px;color:var(--muted);margin-top:4px;}
.dash-kpi-icon{position:absolute;right:14px;top:14px;font-size:22px;opacity:.15;}

.dash-task-item{display:flex;align-items:flex-start;gap:10px;padding:9px 0;border-bottom:1px solid var(--border2);}
.dash-task-item:last-child{border-bottom:none;padding-bottom:0;}
.dash-task-check{width:18px;height:18px;border-radius:50%;border:2px solid var(--border);flex-shrink:0;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:9px;margin-top:1px;transition:background var(--tr),border-color var(--tr);}
.dash-task-check:hover{border-color:var(--muted);}
.dash-task-body{flex:1;min-width:0;}
.dash-task-title{font-size:13px;font-weight:500;color:var(--text);line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.dash-task-meta{font-size:11px;color:var(--hint);margin-top:2px;display:flex;align-items:center;gap:6px;flex-wrap:wrap;}
.dash-task-deadline{font-size:11px;font-weight:500;padding:1px 6px;border-radius:20px;}
.dash-task-deadline.overdue{background:#FDECEA;color:#c0392b;}
.dash-task-deadline.today{background:#FFF3E0;color:#e67e22;}
.dash-task-deadline.tomorrow{background:#E8F0FF;color:#1A3A9A;}
[data-theme="dark"] .dash-task-deadline.overdue{background:#2A0D0D;color:#ff7055;}
[data-theme="dark"] .dash-task-deadline.today{background:#3D2800;color:#ffaa55;}
[data-theme="dark"] .dash-task-deadline.tomorrow{background:#0D1A3D;color:#7AAAF5;}

.dash-fin-bar{height:6px;border-radius:3px;background:var(--border);margin:8px 0 4px;overflow:hidden;}
.dash-fin-bar-fill{height:100%;border-radius:3px;background:#c0392b;transition:width .4s;}
.dash-fin-row{display:flex;justify-content:space-between;font-size:12px;color:var(--muted);}
.dash-fin-row strong{color:var(--text);}

.dash-expense-item{display:flex;align-items:center;gap:8px;padding:7px 0;border-bottom:1px solid var(--border2);}
.dash-expense-item:last-child{border-bottom:none;}
.dash-expense-icon{width:28px;height:28px;border-radius:7px;display:flex;align-items:center;justify-content:center;font-size:14px;flex-shrink:0;}
.dash-expense-name{flex:1;font-size:13px;color:var(--text);}
.dash-expense-amount{font-size:13px;font-weight:600;color:#c0392b;}
.dash-expense-bar-wrap{width:60px;height:4px;background:var(--border);border-radius:2px;overflow:hidden;flex-shrink:0;}
.dash-expense-bar{height:100%;border-radius:2px;}

.dash-section-item{padding:8px 0;border-bottom:1px solid var(--border2);}
.dash-section-item:last-child{border-bottom:none;}
.dash-section-header{display:flex;align-items:center;gap:8px;margin-bottom:5px;}
.dash-section-name{flex:1;font-size:13px;font-weight:500;color:var(--text);}
.dash-section-count{font-size:11px;color:var(--hint);}
.dash-progress{height:4px;background:var(--border);border-radius:2px;overflow:hidden;}
.dash-progress-fill{height:100%;border-radius:2px;transition:width .4s;}

.dash-note-item{padding:9px 0;border-bottom:1px solid var(--border2);cursor:pointer;}
.dash-note-item:last-child{border-bottom:none;padding-bottom:0;}
.dash-note-title{font-size:13px;font-weight:500;color:var(--text);margin-bottom:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.dash-note-preview{font-size:11.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.dash-note-date{font-size:11px;color:var(--hint);margin-top:2px;}

.dash-empty{text-align:center;padding:20px;color:var(--hint);font-size:13px;}
.dash-see-all{display:block;text-align:center;font-size:12px;color:var(--muted);margin-top:10px;cursor:pointer;padding:6px;border-radius:var(--radius-sm);transition:background var(--tr);}
.dash-see-all:hover{background:var(--surface2);color:var(--text);}
.dash-greeting{font-family:'Unbounded',sans-serif;font-size:clamp(14px,2.5vw,20px);font-weight:600;margin-bottom:4px;}
.dash-date{font-size:13px;color:var(--muted);margin-bottom:20px;}

@media(max-width:700px){
  .dash-kpi-row{grid-template-columns:1fr 1fr;}
  .dash-grid{grid-template-columns:1fr;width:100%;}
}
@media(max-width:480px){
  .dash-kpi-row{grid-template-columns:1fr 1fr;gap:8px;}
  .dash-kpi{padding:11px 12px;}
  .dash-kpi-value{font-size:16px;}
  .dash-kpi-icon{font-size:18px;right:10px;top:10px;}
  .dash-card{padding:13px 14px;}
  .dash-greeting{font-size:16px;}
  .dash-card table{table-layout:fixed;width:100%;}
  .dash-task-title,.dash-note-title,.dash-expense-name,.dash-section-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%;}
  .dash-fin-row{flex-wrap:wrap;gap:2px;}
}
