* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f5f5f4; color: #1d1d1b; }

.header { background: #0c2340; color: #fff; padding: 14px 24px; display: flex; justify-content: space-between; align-items: center; }
.header h1 { font-size: 18px; font-weight: 500; }
.header .meta { font-size: 12px; opacity: 0.7; }
.header nav { display: flex; gap: 16px; }
.header nav a { color: #fff; text-decoration: none; font-size: 13px; padding: 4px 12px; border-radius: 4px; opacity: 0.8; }
.header nav a:hover, .header nav a.active { opacity: 1; background: rgba(255,255,255,0.15); }

.dash { max-width: 1400px; margin: 0 auto; padding: 20px 24px; }

.section-label { font-size: 11px; font-weight: 600; color: #8c8c89; letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 10px; margin-top: 1.5rem; }
.section-label:first-child { margin-top: 0; }

.metric-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 1.5rem; }
.metric { background: #fff; border-radius: 8px; padding: 16px; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.metric .label { font-size: 12px; color: #8c8c89; margin-bottom: 4px; }
.metric .value { font-size: 24px; font-weight: 600; color: #1d1d1b; }
.metric .sub { font-size: 11px; margin-top: 4px; }
.sub.up { color: #27500A; }
.sub.down { color: #791F1F; }
.sub.neutral { color: #8c8c89; }

.charts-row { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); gap: 16px; margin-bottom: 1.5rem; }
.charts-row.equal { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
.chart-card { background: #fff; border-radius: 8px; padding: 16px 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.chart-title { font-size: 14px; font-weight: 500; color: #1d1d1b; margin-bottom: 12px; }

.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 10px; font-size: 12px; color: #8c8c89; }
.legend span { display: flex; align-items: center; gap: 4px; }
.legend .dot { width: 10px; height: 10px; border-radius: 2px; }

.sla-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 1.5rem; }
.sla-card { background: #fff; border-radius: 8px; padding: 16px; box-shadow: 0 1px 3px rgba(0,0,0,0.06); text-align: center; }
.sla-card .tier { font-size: 12px; font-weight: 500; color: #8c8c89; margin-bottom: 2px; }
.sla-card .pct { font-size: 22px; font-weight: 600; }
.sla-card .target { font-size: 11px; color: #8c8c89; margin-top: 2px; }
.bar-mini { height: 4px; border-radius: 2px; background: #ececea; margin-top: 8px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 2px; }

.bottom-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 16px; margin-bottom: 1.5rem; }

.list-item { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid #f0f0ee; font-size: 13px; }
.list-item:last-child { border-bottom: none; }
.list-item a { color: #185FA5; text-decoration: none; font-weight: 500; margin-right: 6px; }
.list-item a:hover { text-decoration: underline; }

.pill { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 4px; font-weight: 500; }
.p-blocker { background: #FCEBEB; color: #791F1F; }
.p-high { background: #FAEEDA; color: #633806; }
.p-medium { background: #E6F1FB; color: #0C447C; }
.p-low { background: #f0f0ee; color: #5f5e5a; }
.p-open { background: #FAEEDA; color: #633806; }
.p-done { background: #EAF3DE; color: #27500A; }
.p-wip { background: #E6F1FB; color: #0C447C; }

.metric-sm { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-bottom: 16px; }
.ms { background: #f5f5f4; border-radius: 6px; padding: 12px; text-align: center; }
.ms .v { font-size: 20px; font-weight: 600; color: #1d1d1b; }
.ms .l { font-size: 11px; color: #8c8c89; margin-top: 2px; }

.footer { text-align: center; font-size: 11px; color: #8c8c89; padding: 16px; }
.footer a { color: #185FA5; text-decoration: none; }

@media (max-width: 900px) {
  .metric-row, .sla-row { grid-template-columns: repeat(2, 1fr); }
  .charts-row, .bottom-row { grid-template-columns: 1fr; }
}
