/* Tools Hub main UI */
:root{
  --bg:#f6f8ff;
  --card:#ffffff;
  --ink:#0b1220;
  --muted:#5a6b87;
  --line:#e6ecff;
  --blue:#2563eb;
  --blue2:#1d4ed8;
  --shadow:0 14px 44px rgba(12,24,60,.12);
  --radius:22px;
  --radius2:16px;
  --focus:0 0 0 4px rgba(37,99,235,.18);
}
*{box-sizing:border-box}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color:var(--ink);
  background:
    radial-gradient(1200px 600px at 25% -15%, rgba(37,99,235,.18), transparent 60%),
    radial-gradient(1200px 600px at 80% -5%, rgba(59,130,246,.10), transparent 60%),
    var(--bg);
}
a{color:inherit}
.wrap{max-width:100%;padding:0 0 70px}
.hero{
  display:flex; gap:16px; align-items:flex-start; justify-content:space-between; flex-wrap:wrap;
  padding:18px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.70);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.brand{display:flex; gap:12px; align-items:flex-start}
.logo{
  width:52px;height:52px;border-radius:18px;display:grid;place-items:center;
  background:linear-gradient(135deg, rgba(37,99,235,.14), rgba(59,130,246,.18));
  border:1px solid rgba(37,99,235,.18);
  font-size:22px;
}
h1{margin:0;font-size:24px;letter-spacing:-.4px}
.sub{margin:6px 0 0;color:var(--muted);font-size:13px;line-height:1.55;max-width:680px}
.search{display:flex; gap:10px; align-items:center; flex-wrap:wrap}
.search input{
  width:min(420px, 80vw);
  border:1px solid var(--line);
  border-radius:14px;
  padding:11px 12px;
  outline:none;
  background:#fff;
}
.search input:focus{box-shadow:var(--focus);border-color:rgba(37,99,235,.35)}
.kbd{
  font-size:12px;color:var(--muted);
  border:1px solid var(--line);
  border-radius:10px;
  padding:6px 8px;
  background:#fff;
}
.grid{
  margin-top:16px;
  display:grid;
  grid-template-columns: 360px 1fr;
  gap:14px;
}
@media (max-width: 980px){ .grid{grid-template-columns:1fr} }
.sidebar{
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:rgba(255,255,255,.70);
  box-shadow:var(--shadow);
  overflow:hidden;
}
.side-item{
  display:flex; gap:12px; align-items:center; justify-content:space-between;
  padding:14px 14px;
  border-bottom:1px solid var(--line);
}
.side-item:last-child{border-bottom:none}
.side-left{display:flex; gap:12px; align-items:center}
.ico{
  width:38px;height:38px;border-radius:14px;display:grid;place-items:center;
  background:rgba(37,99,235,.08);
  border:1px solid rgba(37,99,235,.18);
}
.side-title{font-weight:860}
.side-sub{font-size:12px;color:var(--muted);margin-top:2px}
.badge{
  font-size:12px;font-weight:850;
  padding:6px 10px;border-radius:999px;
  border:1px solid rgba(37,99,235,.25);
  background:rgba(37,99,235,.08);
  color:#1e40af;
}
.badge.dim{border-color:rgba(148,163,184,.35);background:rgba(148,163,184,.12);color:#334155}
.content{
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:rgba(255,255,255,.70);
  box-shadow:var(--shadow);
  padding:16px;
}
.section{margin:0 0 16px}
.section:last-child{margin-bottom:0}
.h2{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin:0 0 10px}
.h2 h2{margin:0;font-size:16px}
.h2 p{margin:0;color:var(--muted);font-size:12px}
.cards{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap:12px;
}
@media (max-width: 980px){ .cards{grid-template-columns:1fr} }
.tool{
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff;
  padding:14px;
  display:flex; gap:12px; align-items:flex-start; justify-content:space-between;
}
.tool .tleft{display:flex; gap:12px; align-items:flex-start}
.tool .tico{
  width:40px;height:40px;border-radius:16px;display:grid;place-items:center;
  background:linear-gradient(135deg, rgba(37,99,235,.10), rgba(59,130,246,.12));
  border:1px solid rgba(37,99,235,.18);
}
.tool h3{margin:0;font-size:14px}
.tool p{margin:6px 0 0;color:var(--muted);font-size:12px;line-height:1.45}
.tool .meta{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.pill{
  font-size:12px;font-weight:820;
  padding:5px 8px;border-radius:999px;
  border:1px solid rgba(37,99,235,.20);
  background:rgba(37,99,235,.08);
  color:#1e40af;
}
.pill.off{border-color:rgba(148,163,184,.35);background:rgba(148,163,184,.12);color:#334155}
.btn{
  text-decoration:none;
  border:1px solid rgba(37,99,235,.25);
  background:#fff;
  color:var(--ink);
  padding:8px 10px;
  border-radius:12px;
  font-weight:760;
  font-size:12px;
  display:inline-flex; align-items:center; gap:6px;
  white-space:nowrap;
}
.btn:hover{border-color:rgba(37,99,235,.45)}
.btn.primary{background:linear-gradient(135deg,var(--blue),var(--blue2));border-color:transparent;color:#fff}
.btn:focus{outline:none;box-shadow:var(--focus)}
.note{
  margin-top:14px;
  background:#eff6ff;
  border:1px solid rgba(37,99,235,.22);
  padding:12px 14px;
  border-radius:16px;
  color:#1e40af;
  line-height:1.55;
  font-size:12px;
}
.footer{
  margin-top:16px;
  color:var(--muted);
  font-size:12px;
  line-height:1.6;
}
.hl{font-weight:900;color:#0b1220}
.hidden{display:none!important}
