:root{
  --bg:#0b0c10;
  --card:#12141b;
  --text:#e7e9ee;
  --muted:#a6adbb;
  --line:#232635;

  --bad:#ff5c7a;
  --warn:#ffcc66;
  --good:#58e08a;

  --shadow: 0 12px 30px rgba(0,0,0,.35);
  --radius: 18px;
}

*{ box-sizing:border-box; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  background: radial-gradient(1200px 800px at 10% 10%, #151b2f 0%, var(--bg) 55%) fixed;
  color:var(--text);
}

.header{
  padding: 22px 20px 10px;
  max-width: 1100px;
  margin: 0 auto;
}
h1{
  margin: 0 0 6px;
  font-size: 22px;
  letter-spacing:.2px;
}
.sub{ color:var(--muted); font-weight:600; font-size:14px; }
.desc{ margin: 0; color:var(--muted); line-height:1.5; }

.grid{
  max-width:1100px;
  margin: 14px auto 22px;
  padding: 0 20px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 980px){
  .grid{ grid-template-columns:1fr; }
}

.card{
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}
.card h2{
  margin: 0 0 10px;
  font-size: 16px;
}
.hint{ margin: 0 0 10px; color:var(--muted); font-size: 13px; line-height:1.45; }

textarea{
  width: 100%;
  height: 280px;
  resize: vertical;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #0e1016;
  color: var(--text);
  padding: 12px 12px;
  outline: none;
  font-size: 13px;
  line-height: 1.5;
}

.row{ display:flex; gap:10px; margin-top: 10px; flex-wrap:wrap; }
.btn{
  border: 1px solid var(--line);
  background: #151825;
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  cursor:pointer;
  font-weight:700;
}
.btn:hover{ filter: brightness(1.08); }
.btn.primary{
  border-color: rgba(88,224,138,.45);
  background: rgba(88,224,138,.16);
}
.btn.ghost{
  background: transparent;
  color: var(--muted);
}

.details{
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}
.details summary{ cursor:pointer; }

.summary{
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: rgba(0,0,0,.18);
}

.meter{ display:grid; gap: 8px; }
.meter-label{ color:var(--muted); font-weight:700; font-size: 12px; }
.meter-bar{
  height: 10px;
  background: #0e1016;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow:hidden;
}
.meter-fill{
  height: 100%;
  background: linear-gradient(90deg, var(--good), var(--warn), var(--bad));
}
.meter-value{ font-weight:900; font-size: 18px; }

.stats{
  margin-top: 12px;
  display:grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
@media (max-width: 980px){
  .stats{ grid-template-columns: repeat(3, 1fr); }
}
.stat{
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  background: rgba(255,255,255,.02);
}
.stat .k{ display:block; color:var(--muted); font-size: 12px; font-weight:700; }
.stat .v{ display:block; font-size: 18px; font-weight:900; margin-top: 4px; }

.comment{
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.tabs{
  margin-top: 12px;
  display:flex;
  gap: 8px;
}
.tab{
  border: 1px solid var(--line);
  background: #121526;
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 10px;
  cursor:pointer;
  font-weight:800;
  font-size: 12px;
}
.tab.active{
  background: rgba(255,255,255,.06);
  color: var(--text);
}

.panel{
  margin-top: 10px;
  display:none;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: rgba(0,0,0,.16);
}
.panel.active{ display:block; }

.listItem{
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.02);
  margin-bottom: 8px;
}
.badTag{ color: var(--bad); font-weight:900; }
.warnTag{ color: var(--warn); font-weight:900; }
.goodTag{ color: var(--good); font-weight:900; }

.path{
  display:block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.tree{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Noto Sans Mono", monospace;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre;
}
.hl-bad{ color: var(--bad); font-weight:900; }
.hl-warn{ color: var(--warn); font-weight:900; }
.hl-good{ color: var(--good); }

.footer{
  max-width:1100px;
  margin: 0 auto;
  padding: 0 20px 18px;
  color: var(--muted);
}
