:root {
  --bg: #ffffff;
  --bg-subtle: #fafafa;
  --bg-hover: #f4f4f5;
  --border: #e4e4e7;
  --border-strong: #d4d4d8;
  --text: #09090b;
  --text-muted: #71717a;
  --text-subtle: #a1a1aa;
  --accent: #18181b;
  --accent-hover: #27272a;
  --blue: #2563eb;
  --blue-soft: #eff6ff;
  --green: #16a34a;
  --green-soft: #f0fdf4;
  --red: #dc2626;
  --red-soft: #fef2f2;
  --amber: #d97706;
  --amber-soft: #fffbeb;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.03);
  --shadow: 0 4px 12px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; letter-spacing: -0.02em;
}
.brand-title { font-weight: 600; font-size: 14px; letter-spacing: -0.01em; }
.brand-sub { font-size: 12px; color: var(--text-muted); margin-top: 1px; }
.header-status { font-size: 12px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.header-status .dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); margin-right: 6px; vertical-align: middle;
}

.container { max-width: 1100px; margin: 0 auto; padding: 24px; }

h1.page-title { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 6px; }
.page-sub { color: var(--text-muted); font-size: 13px; margin-bottom: 24px; }

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.card + .card { margin-top: 14px; }
.card-title {
  font-size: 13px; font-weight: 600; color: var(--text);
  margin-bottom: 4px;
}
.card-sub { font-size: 12px; color: var(--text-muted); margin-bottom: 16px; }

.menu-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  margin-bottom: 24px;
}
.menu-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 18px; cursor: pointer; text-align: left;
  transition: all .15s ease;
  font-family: inherit; color: inherit;
}
.menu-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.menu-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--bg-subtle); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px; font-size: 18px;
}
.menu-card h3 { font-size: 14px; font-weight: 600; margin-bottom: 4px; letter-spacing: -0.01em; }
.menu-card p { font-size: 12px; color: var(--text-muted); line-height: 1.5; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.stat {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 16px;
}
.stat-label { font-size: 11px; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px; }
.stat-value { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat-meta { font-size: 11px; color: var(--text-subtle); margin-top: 4px; }

.panel-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.panel {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 18px;
}
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.panel-title { font-size: 13px; font-weight: 600; }
.panel-count {
  font-size: 11px; color: var(--text-muted); font-weight: 600;
  padding: 3px 8px; background: var(--bg-subtle); border: 1px solid var(--border); border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.panel-section-label {
  font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
  margin: 12px 0 8px; color: var(--text-muted);
  display: flex; align-items: center; gap: 6px;
}
.panel-section-label:first-child { margin-top: 0; }
.panel-section-label .dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
}
.panel-section-label.ok .dot { background: var(--green); }
.panel-section-label.no .dot { background: var(--red); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; min-height: 24px; }
.chip {
  font-size: 11px; font-weight: 600; padding: 4px 8px; border-radius: 6px;
  border: 1px solid var(--border); background: var(--bg-subtle); color: var(--text);
  font-variant-numeric: tabular-nums;
}
.chip.ok    { background: var(--green-soft); border-color: #bbf7d0; color: #15803d; }
.chip.no    { background: var(--red-soft);   border-color: #fecaca; color: #b91c1c; }
.chip.muted { color: var(--text-subtle); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: var(--radius); font-size: 13px; font-weight: 500;
  border: 1px solid var(--border); background: var(--bg); color: var(--text);
  cursor: pointer; transition: all .12s ease;
  text-decoration: none;
  font-family: inherit;
}
.btn:hover { background: var(--bg-hover); border-color: var(--border-strong); }
.btn-primary {
  background: var(--accent); color: #fff; border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

.skeleton { display: inline-block; height: 14px; width: 60px;
  background: linear-gradient(90deg, #f4f4f5 0%, #e4e4e7 50%, #f4f4f5 100%);
  background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 4px;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.footer {
  text-align: center; padding: 24px; color: var(--text-subtle); font-size: 11px;
  letter-spacing: 0.04em;
}

@media (max-width: 900px) {
  .menu-grid { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .panel-row { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .container { padding: 16px; }
  .header { padding: 12px 16px; }
  .menu-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
}
