:root{
  /* カラー（好みで変えてOK） */
  --bg: #0b1220;
  --panel: rgba(255,255,255,.06);
  --panel2: rgba(255,255,255,.08);
  --border: rgba(255,255,255,.14);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.68);

  --primary: #7c3aed;   /* 紫 */
  --primary2:#a78bfa;   /* 薄紫 */
  --accent:  #22c55e;   /* 緑 */
  --warn:    #f59e0b;   /* オレンジ */
  --danger:  #ef4444;   /* 赤 */

  --radius: 16px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}

*{ box-sizing: border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Noto Sans JP", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 800px at 20% -10%, rgba(124,58,237,.35), transparent 60%),
    radial-gradient(1000px 700px at 95% 10%, rgba(34,197,94,.18), transparent 60%),
    radial-gradient(900px 700px at 50% 110%, rgba(59,130,246,.18), transparent 60%),
    var(--bg);
}

.header{
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: linear-gradient(to bottom, rgba(11,18,32,.92), rgba(11,18,32,.68));
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 18px 18px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
}

.brand{
  display:flex;
  gap: 12px;
  align-items:center;
  min-width: 240px;
}
.logo{
  width: 44px; height: 44px;
  display:grid; place-items:center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(124,58,237,.65), rgba(167,139,250,.25));
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 8px 20px rgba(124,58,237,.18);
}
h1{
  font-size: 16px;
  margin: 0;
  letter-spacing: .2px;
}
.subtitle{
  margin: 2px 0 0 0;
  font-size: 12px;
  color: var(--muted);
}

.actions{ display:flex; gap: 8px; flex-wrap: wrap; }

.container{
  max-width: 1100px;
  margin: 18px auto 40px;
  padding: 0 18px;
  display: grid;
  gap: 14px;
}

.card{
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
}

.card-head{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.card h2{
  margin:0;
  font-size: 14px;
  letter-spacing: .2px;
}
.hint{
  font-size: 12px;
  color: var(--muted);
}

.textarea{
  width:100%;
  min-height: 170px;
  resize: vertical;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.18);
  color: var(--text);
  outline: none;
  line-height: 1.5;
}
.textarea:focus{
  border-color: rgba(167,139,250,.5);
  box-shadow: 0 0 0 4px rgba(124,58,237,.18);
}

.row{
  margin-top: 10px;
  display:flex;
  align-items:center;
  gap: 8px;
  flex-wrap: wrap;
}
.status{
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
}

.btn{
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: transform .06s ease, background .15s ease, border-color .15s ease;
}
.btn:active{ transform: translateY(1px); }
.btn:hover{ background: rgba(255,255,255,.10); }

.btn-primary{
  background: linear-gradient(135deg, rgba(124,58,237,.92), rgba(167,139,250,.35));
  border-color: rgba(167,139,250,.35);
}
.btn-primary:hover{
  background: linear-gradient(135deg, rgba(124,58,237,1), rgba(167,139,250,.40));
}

.btn-secondary{
  background: rgba(0,0,0,.18);
}
.btn-ghost{
  background: transparent;
  border-color: rgba(255,255,255,.10);
}

.output{ width:100%; }
.empty{
  padding: 18px;
  border-radius: 14px;
  border: 1px dashed rgba(255,255,255,.18);
  color: var(--muted);
  background: rgba(0,0,0,.12);
}

.table{
  width:100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.14);
}
.table th, .table td{
  padding: 10px;
  border-bottom: 1px solid rgba(255,255,255,.10);
  vertical-align: top;
}
.table th{
  text-align: left;
  font-size: 12px;
  color: var(--muted);
  background: rgba(255,255,255,.04);
}
.table tr:last-child td{ border-bottom: none; }
.table a{ color: rgba(167,139,250,.95); text-decoration: none; }
.table a:hover{ text-decoration: underline; }

.pill{
  display:inline-flex;
  align-items:center;
  gap: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  margin-right: 8px;
}
.pill i{
  width: 7px; height: 7px; border-radius: 50%;
  display:inline-block;
}
.pill.high i{ background: var(--accent); }
.pill.med  i{ background: var(--warn); }
.pill.low  i{ background: rgba(255,255,255,.45); }

code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Noto Sans Mono", monospace;
  font-size: 12px;
  color: rgba(255,255,255,.86);
}

.footer{
  display:flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}
.dot{ opacity: .5; }

.group{
  margin-top: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.12);
}

.group summary{
  cursor: pointer;
  list-style: none;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.group summary::-webkit-details-marker{
  display: none;
}

.group-meta{
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
}

.group[open] summary{
  border-bottom: 1px solid rgba(255,255,255,.10);
}
