body { margin:0; min-height:100vh; background:var(--background); font-family:var(--font-sans); color:var(--foreground); }
.page { max-width:900px; margin:0 auto; padding:20px 20px 60px; }

/* Header */
.page-hdr { display:flex; align-items:center; justify-content:space-between; margin-bottom:20px; flex-wrap:wrap; gap:12px; }
.page-hdr h1 { font-size:20px; font-weight:700; margin:0; }
.page-hdr p { font-size:13px; color:var(--muted-fg); margin:2px 0 0; }

/* Filter Bar for Inputs */
.filter-bar { display:flex; gap:10px; align-items:center; flex-wrap:wrap; padding:20px; background:var(--card); border:1px solid var(--border); border-radius:10px; margin-bottom:24px; box-shadow:0 1px 3px rgba(0,0,0,0.05); }
.filter-bar input {
  flex:1; padding:10px 14px; border:1px solid var(--border); border-radius:8px; font:inherit; font-size:14px; background:var(--background); color:var(--foreground); outline:none;
}
.filter-bar input:focus { border-color:var(--primary); box-shadow:0 0 0 3px rgba(59,89,152,0.08); }
.filter-actions { display:flex; gap:10px; }

/* Stats Cards */
.stats-row { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-bottom:24px; display:none; }
.stat-card { background:var(--card); border:1px solid var(--border); border-radius:10px; padding:18px 20px; box-shadow:0 1px 3px rgba(0,0,0,0.05); }
.stat-card .label { font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:.04em; color:var(--muted-fg); margin-bottom:8px; }
.stat-card .value { font-size:28px; font-weight:700; line-height:1.1; }
.stat-card .sub { font-size:12px; color:var(--muted-fg); margin-top:6px; }
.stat-card .value.success { color:var(--success); }
.stat-card .value.warn { color:var(--warn); }
.stat-card .value.error { color:var(--error); }
.stat-card .value.primary { color:var(--primary); }

/* Progress bar */
.progress-bar-wrap { background:var(--muted); border-radius:6px; height:8px; overflow:hidden; margin-top:12px; }
.progress-bar-fill { height:100%; border-radius:6px; background:var(--primary); transition:width .5s ease; }
.progress-bar-fill.danger { background:var(--error); }
.progress-bar-fill.warn { background:var(--warn); }

/* Status message */
.status-msg { padding:14px 16px; border-radius:8px; margin-bottom:20px; font-size:14px; font-weight:500; display:none; }
.status-msg.success { background:var(--success-light); color:var(--success); border:1px solid rgba(16, 185, 129, 0.2); }
.status-msg.error { background:var(--warn-light); color:var(--error); border:1px solid rgba(239, 68, 68, 0.2); }

@keyframes spin { to { transform:rotate(360deg); } }
.spinner-sm { display:inline-block; width:18px; height:18px; border:2px solid var(--border); border-top-color:var(--primary); border-radius:50%; animation:spin .6s linear infinite; }

@media (max-width:768px) {
  .stats-row { grid-template-columns:repeat(2,1fr); }
  .filter-bar { flex-direction:column; align-items:stretch; }
  .filter-actions { justify-content:flex-end; }
}