:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --border: #e2e5ea;
  --text: #1f2937;
  --muted: #6b7280;
  --accent: #2563eb;
  --green: #16a34a;
  --yellow: #ca8a04;
  --red: #dc2626;
  --green-bg: #dcfce7;
  --yellow-bg: #fef9c3;
  --red-bg: #fee2e2;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.45; }
.header { background: var(--surface); border-bottom: 1px solid var(--border); }
.header-inner { max-width: 1400px; margin: 0 auto; padding: 16px 20px; }
.header h1 { margin: 0; font-size: 20px; font-weight: 600; }
.subtitle { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.main { max-width: 1400px; margin: 0 auto; padding: 20px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.toolbar input, .toolbar select { padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); font-size: 14px; }
.toolbar input { flex: 1 1 240px; min-width: 200px; }
.rowcount { color: var(--muted); font-size: 13px; margin-left: auto; }
.status { padding: 12px 0; color: var(--muted); }
.status.error { color: var(--red); }
.status.empty { color: var(--muted); font-style: italic; }
.table-wrap { overflow: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; max-height: calc(100vh - 200px); }
table { width: 100%; border-collapse: collapse; min-width: 900px; }
thead th { position: sticky; top: 0; background: #f1f3f6; z-index: 2; text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); font-weight: 600; font-size: 13px; white-space: nowrap; cursor: pointer; user-select: none; }
thead th:hover { background: #e8ebf0; }
thead th .sort { font-size: 10px; margin-left: 4px; color: var(--muted); }
tbody td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; font-size: 13px; }
tbody tr:hover { background: #fafbfc; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge.high { background: var(--green-bg); color: var(--green); }
.badge.medium { background: var(--yellow-bg); color: var(--yellow); }
.badge.low { background: var(--red-bg); color: var(--red); }
.badge.confirmed { background: var(--green-bg); color: var(--green); }
.cell-text { white-space: pre-wrap; word-break: break-word; }
.cell-trunc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.expand-btn { background: none; border: none; color: var(--accent); cursor: pointer; font-size: 12px; padding: 0; margin-top: 4px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
@media (max-width: 600px) {
  .header-inner, .main { padding: 12px; }
  table { min-width: 700px; }
}