:root {
  --bg: #f4f7fb;
  --panel: #ffffff;
  --text: #18202b;
  --muted: #64748b;
  --line: #d8e1ee;
  --pri-a: #4f46e5;
  --pri-b: #0f766e;
  --accent: #ec4899;
  --warn: #f59e0b;
  --danger: #ef4444;
  --success: #10b981;
  --shadow: 0 18px 40px rgba(79,70,229,.10);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: Inter, Segoe UI, Arial, sans-serif; background: var(--bg); color: var(--text); }
a { text-decoration: none; }
.app-shell { display: grid; grid-template-columns: 290px 1fr; min-height: 100vh; }
.sidebar {
  background: linear-gradient(180deg, #1e1b4b 0%, #312e81 45%, #134e4a 100%);
  color: #fff; padding: 20px; position: sticky; top: 0; height: 100vh;
}
.brand-card { display: flex; gap: 14px; align-items: center; margin-bottom: 22px; }
.brand-mark { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-weight: 800; font-size: 24px; background: linear-gradient(135deg, #a78bfa, #22c55e); box-shadow: var(--shadow); }
.brand-title { font-size: 22px; font-weight: 800; }
.brand-subtitle { font-size: 13px; color: rgba(255,255,255,.82); }
.nav-links { display: grid; gap: 10px; }
.nav-link { color: #eef2ff; padding: 12px 14px; border: 1px solid rgba(255,255,255,.12); border-radius: 16px; background: rgba(255,255,255,.05); font-weight: 600; }
.nav-link.active, .nav-link:hover { background: linear-gradient(135deg, rgba(236,72,153,.25), rgba(34,197,94,.18)); border-color: rgba(255,255,255,.22); transform: translateY(-1px); }
.side-note { margin-top: 24px; padding: 16px; border-radius: 18px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); }
.side-note h4 { margin: 0 0 8px; }
.side-note p { margin: 0; line-height: 1.5; color: rgba(255,255,255,.82); }
.main-panel { padding: 22px; }
.hero { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 24px; border-radius: 28px; background: linear-gradient(135deg, #eef2ff 0%, #fdf2f8 55%, #ecfeff 100%); border: 2px solid #dbe3f2; box-shadow: var(--shadow); }
.eyebrow { display: inline-block; margin-bottom: 8px; color: var(--pri-a); font-weight: 800; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.hero h1 { margin: 0 0 8px; font-size: 34px; }
.hero p { margin: 0; color: var(--muted); max-width: 780px; line-height: 1.55; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; border-radius: 16px; font-weight: 800; border: 0; }
.btn-primary { background: linear-gradient(135deg, var(--pri-a), var(--pri-b)); color: #fff; box-shadow: var(--shadow); }
.btn-soft { background: #fff; color: var(--pri-a); border: 2px solid #d7dcfb; }
.filter-panel, .panel-card { background: var(--panel); border: 2px solid var(--line); border-radius: 24px; padding: 20px; box-shadow: 0 8px 22px rgba(15,23,42,.04); }
.filter-panel { margin-top: 18px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.panel-head h2 { margin: 0; font-size: 20px; }
.filter-grid, .kpi-grid, .content-grid { display: grid; gap: 16px; }
.filter-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.field span { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 800; text-transform: uppercase; color: var(--muted); }
.field input { width: 100%; height: 46px; border-radius: 14px; border: 2px solid #cdd8ea; padding: 0 14px; background: #fbfdff; font-weight: 600; }
.kpi-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 18px 0; }
.kpi-card { background: linear-gradient(180deg, #fff, #fafcff); border: 2px solid var(--line); border-radius: 22px; padding: 18px; }
.kpi-label { color: var(--muted); font-weight: 700; font-size: 13px; }
.kpi-value { margin-top: 8px; font-size: 32px; font-weight: 900; color: var(--pri-a); }
.kpi-value small { font-size: 14px; color: var(--muted); }
.kpi-hint { margin-top: 8px; color: #0f766e; font-size: 13px; font-weight: 700; }
.two-col { grid-template-columns: 1.3fr 1fr; }
.three-col { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.status-groups { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.status-box { border-radius: 18px; padding: 18px; color: #fff; }
.status-box p { margin: 8px 0 0; line-height: 1.5; }
.status-box.dirty { background: linear-gradient(135deg, #f97316, #ea580c); }
.status-box.inspect { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.status-box.ooo { background: linear-gradient(135deg, #ef4444, #be123c); }
.check-list { margin: 0; padding-left: 20px; }
.check-list li { margin-bottom: 10px; line-height: 1.55; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; }
thead th { background: linear-gradient(135deg, var(--pri-a), var(--pri-b)); color: #fff; text-align: left; padding: 12px; font-size: 13px; }
tbody td { padding: 12px; border-bottom: 1px solid #e6edf7; border-right: 1px solid #eef3fa; }
tbody tr:hover { background: #fafcff; }
.badge, .chip { display: inline-flex; padding: 7px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; background: #eef2ff; color: var(--pri-a); }
.chip-accent { background: #fdf2f8; color: var(--accent); }
.kanban-grid { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.task-card { border: 2px solid #e7ecf6; background: linear-gradient(180deg, #fff, #fafcff); border-radius: 18px; padding: 14px; margin-bottom: 12px; }
.task-card p { margin: 6px 0; color: var(--muted); }
.task-meta { display: flex; justify-content: space-between; gap: 10px; color: #0f766e; font-size: 12px; font-weight: 700; }
.info-card p { margin: 0; color: var(--muted); line-height: 1.6; }
.footer { display: flex; justify-content: space-between; gap: 12px; padding: 18px 8px 0; color: var(--muted); font-size: 13px; }
@media (max-width: 1200px) {
  .filter-grid, .kpi-grid, .kanban-grid, .three-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 920px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: relative; height: auto; }
  .hero { flex-direction: column; align-items: flex-start; }
  .status-groups, .filter-grid, .kpi-grid, .kanban-grid, .three-col { grid-template-columns: 1fr; }
  .footer { flex-direction: column; }
}
