@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800;900&display=swap');

:root{
  --bg:#0b1220;
  --panel:#111a2e;
  --text:#e5e7eb;
  --muted:#9ca3af;
  --stroke:rgba(255,255,255,.08);
  --green:#3b82f6;
  --green2:#2563eb;
  --chip:#0f1a33;
  --shadow: 0 12px 30px rgba(0,0,0,.32);
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;font-family:'Inter',system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;background:var(--bg);color:var(--text)}
a{color:inherit}
.top{
  padding:14px 14px 10px 14px;
  border-bottom:1px solid var(--stroke);
  background:linear-gradient(180deg, rgba(17,26,46,.95), rgba(11,18,32,.95));
  position:sticky; top:0; backdrop-filter: blur(10px);
}
.back{
  display:inline-block;
  text-decoration:none;
  color:var(--muted);
  font-weight:700;
  font-size:12px;
  margin-bottom:10px;
}
.title{display:flex;gap:12px;align-items:center}
.logo{width:44px;height:44px;border-radius:14px;background:rgba(59,130,246,.12);display:grid;place-items:center;font-size:22px;border:1px solid rgba(59,130,246,.25)}
.title h1{margin:0;font-size:16px;line-height:1.2}
.title p{margin:2px 0 0 0;font-size:12px;color:var(--muted)}
.tools{margin-top:10px}
#q{
  width:100%;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--stroke);
  background:rgba(0,0,0,.18);
  color:var(--text);
  outline:none;
}
#q:focus{border-color: rgba(59,130,246,.35)}
.chips{
  display:flex;
  gap:10px;
  overflow:auto;
  padding:10px 14px;
  border-bottom:1px solid var(--stroke);
}
.chips button{
  white-space:nowrap;
  border:1px solid var(--stroke);
  background:var(--chip);
  color:var(--text);
  padding:10px 12px;
  border-radius:999px;
  cursor:pointer;
  font-weight:800;
  font-size:12px;
}
.chips button.active{border-color: rgba(59,130,246,.45); background: rgba(59,130,246,.12)}
.wrap{max-width:980px;margin:0 auto;padding:14px}
.section{
  margin:14px 0;
  border:1px solid var(--stroke);
  background:var(--panel);
  border-radius:22px;
  box-shadow: var(--shadow);
  overflow:hidden;
}
.section-head{
  padding:14px 14px 10px 14px;
  border-bottom:1px solid var(--stroke);
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
}
.section-head h2{margin:0;font-size:14px}
.section-head .hint{color:var(--muted);font-size:12px;margin-top:4px}
.badges{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.badge{
  font-size:11px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--stroke);
  color:var(--muted);
}
.badge.premium{border-color: rgba(59,130,246,.35); color: rgba(59,130,246,.9); background: rgba(59,130,246,.08)}
.grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap:12px;
  padding:12px;
}
.card{
  border:1px solid var(--stroke);
  border-radius:18px;
  padding:12px;
  background:rgba(0,0,0,.15);
}
.card h3{margin:0;font-size:13px}
.card p{margin:6px 0 10px 0;color:var(--muted);font-size:12px;line-height:1.35}
.actions{display:grid;gap:8px}
.actions a{
  text-decoration:none;
  padding:10px 12px;
  border-radius:14px;
  background:rgba(59,130,246,.16);
  border:1px solid rgba(59,130,246,.30);
  font-weight:900;
  font-size:12px;
  color:var(--text);
  text-align:center;
}
.actions a:hover{background:rgba(59,130,246,.22)}
.actions a.primary{background:var(--green); color:#00120a; border-color: rgba(59,130,246,.55)}
.actions a.primary:hover{background:var(--green2)}
.sep{height:1px;background:var(--stroke); margin:0 12px}
.subhead{
  padding:10px 14px 0 14px;
  color:var(--muted);
  font-weight:800;
  font-size:12px;
  display:flex; justify-content:space-between; align-items:center;
}
.subhead .label{display:flex; gap:8px; align-items:center}
.subhead .pill{
  font-size:11px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--stroke);
  color:var(--muted);
}
.subhead .pill.premium{border-color: rgba(59,130,246,.35); color: rgba(59,130,246,.9); background: rgba(59,130,246,.08)}
.foot{
  border-top:1px solid var(--stroke);
  padding:18px 14px;
  color:var(--muted);
  font-size:12px;
  text-align:center;
}
.foot code{background:rgba(255,255,255,.06); padding:2px 6px; border-radius:8px; border:1px solid var(--stroke)}


/* ML-only override */
.actions a.primary{color:#ffffff;}
