:root {
  --bg: #f3f6fb;
  --surface: rgba(255,255,255,.94);
  --surface-solid: #ffffff;
  --surface-2: #f8fafc;
  --text: #0f172a;
  --muted: #64748b;
  --border: #dde5ef;
  --border-strong: #cdd8e6;
  --primary: #00a65a;
  --primary-dark: #066145;
  --danger: #dc2626;
  --ok: #15803d;
  --bg-accent: linear-gradient(135deg, #0f172a 0%, #102b56 55%, #0c7b55 100%);
  --shadow-lg: 0 24px 60px rgba(15,23,42,.10);
  --shadow-md: 0 10px 28px rgba(15,23,42,.07);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --max: 1460px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(14,116,144,.10), transparent 26%),
    radial-gradient(circle at top left, rgba(0,166,90,.10), transparent 26%),
    var(--bg);
  color: var(--text);
}
a { color: #0c6aa6; text-decoration: none; }
a:hover { text-decoration: underline; }
.shell { min-height: 100vh; display: flex; flex-direction: column; }
.header {
  position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px);
  background: rgba(11,16,32,.78); border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner {
  max-width: var(--max); margin: 0 auto; padding: 14px 24px; display: flex;
  align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 14px;
  background: linear-gradient(135deg, #00a65a 0%, #14b86a 45%, #0ea5e9 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 8px 24px rgba(0,166,90,.25);
  display: grid; place-items: center; color: white; font-weight: 900;
}
.brand-title { color: white; font-size: 18px; font-weight: 800; }
.brand-subtitle { color: rgba(255,255,255,.72); font-size: 12px; }
.nav { display: flex; gap: 10px; flex-wrap: wrap; }
.nav a {
  color: rgba(255,255,255,.92); padding: 10px 14px; border-radius: 999px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.10);
}
.nav a.active, .nav a:hover { background: rgba(255,255,255,.18); text-decoration: none; }
.lang-switch {
  display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.10);
}
.lang-switch a {
  color: rgba(255,255,255,.80); font-size: 12px; font-weight: 700;
  padding: 8px 12px; border-radius: 999px; text-transform: uppercase;
}
.lang-switch a.active { color: white; background: rgba(255,255,255,.18); text-decoration: none; }
.container { max-width: var(--max); margin: 0 auto; padding: 28px 24px 32px; width: 100%; }
.hero {
  background: var(--bg-accent); color: white; border-radius: 28px; padding: 28px;
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.hero h1 { margin: 0; font-size: clamp(28px, 5vw, 38px); line-height: 1.1; }
.hero p { margin: 14px 0 0; max-width: 860px; color: rgba(255,255,255,.83); }
.hero-meta { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; }
.grid { display: grid; gap: 16px; }
.stats { grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: 20px; box-shadow: var(--shadow-md); backdrop-filter: blur(10px);
}
.metric-value { font-size: 34px; font-weight: 800; line-height: 1.05; }
.metric-label { margin-top: 8px; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 28px 0 14px; flex-wrap: wrap; }
.section-title { margin: 0; font-size: 22px; font-weight: 800; }
.section-text { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; flex-wrap: wrap; }
.toolbar-controls { display: flex; gap: 12px; flex-wrap: wrap; flex: 1; justify-content: flex-end; }
.search { flex: 1 1 420px; }
.search input, select {
  width: 100%; padding: 13px 15px; border-radius: 14px; border: 1px solid var(--border-strong);
  background: var(--surface-solid); font-size: 14px; color: var(--text);
}
.table-wrap { overflow-x: auto; border-radius: 22px; border: 1px solid var(--border); background: var(--surface-solid); box-shadow: var(--shadow-md); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 13px 14px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
th { background: linear-gradient(180deg, #fbfdff 0%, #f3f7fb 100%); color: #334155; font-weight: 800; }
tr:hover td { background: #fbfefc; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 800; border: 1px solid transparent; }
.badge.success { color: #065f46; background: #dcfce7; border-color: #bbf7d0; }
.badge.failed { color: #991b1b; background: #fee2e2; border-color: #fecaca; }
.badge.unknown { color: #334155; background: #e2e8f0; border-color: #cbd5e1; }
.badge.warn { color: #92400e; background: #fef3c7; border-color: #fde68a; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--border); background: white; color: var(--muted); font-size: 12px; font-weight: 700; }
.kv { display: grid; grid-template-columns: 220px 1fr; gap: 10px 16px; }
.kv .k { color: var(--muted); font-size: 13px; }
.file-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 16px; }
.file-list { list-style: none; padding: 0; margin: 0; }
.file-list li { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.file-list li:last-child { border-bottom: 0; }
.file-meta { color: var(--muted); font-size: 12px; white-space: nowrap; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.path { word-break: break-all; }
pre.log {
  background: linear-gradient(180deg, #0b1020 0%, #0f172a 100%); color: #dbeafe;
  padding: 18px; border-radius: 20px; overflow: auto; line-height: 1.5; font-size: 13px;
  border: 1px solid #22304d;
}
.breadcrumbs { color: var(--muted); margin-bottom: 14px; font-size: 13px; }
.breadcrumbs a { color: var(--muted); }
.notice { padding: 12px 14px; border-radius: 14px; border: 1px solid #fde68a; background: #fff7d6; color: #7c4a03; margin: 14px 0; font-size: 14px; }
.empty-box { padding: 28px; text-align: center; color: var(--muted); border: 1px dashed var(--border-strong); border-radius: 18px; background: linear-gradient(180deg, rgba(255,255,255,.75), rgba(248,250,252,.9)); }
.footer { margin-top: auto; color: var(--muted); font-size: 13px; padding: 0 24px 36px; }
.footer-inner { max-width: var(--max); margin: 0 auto; border-top: 1px solid var(--border); padding-top: 18px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.small { color: var(--muted); font-size: 13px; }

.trace-grid { display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 14px; }
.trace-card { border: 1px solid var(--border); border-radius: 18px; background: linear-gradient(180deg,#fff,#f8fafc); padding: 14px; }
.trace-card .label { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.trace-card .value { margin-top: 8px; font-weight: 800; }
.pkg-table .hash { max-width: 360px; word-break: break-all; }
.pkg-links { display: flex; gap: 8px; flex-wrap: wrap; }
.pkg-links a { display: inline-flex; padding: 6px 9px; border: 1px solid var(--border); border-radius: 999px; background: white; font-size: 12px; font-weight: 800; }
.signature-ok { color: #065f46; font-weight: 800; }
.signature-warn { color: #92400e; font-weight: 800; }
.provenance-note { margin-top: 12px; padding: 12px 14px; border: 1px solid #bfdbfe; background: #eff6ff; color: #1e3a8a; border-radius: 16px; font-size: 13px; }
@media (max-width: 1140px) { .stats, .file-grid, .trace-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) { .container { padding: 20px 16px 28px; } .stats, .file-grid, .trace-grid { grid-template-columns: 1fr; } .kv { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .nav { width: 100%; } .nav a { flex: 1 1 auto; text-align: center; } .toolbar-controls { width: 100%; } .search { flex-basis: 100%; } }
