

:root {
  --bg: #0b0c0f;
  --panel: #13161a;
  --muted: #9aa4b2;
  --text: #e8eef6;
  --brand: #4da3ff;
  --ok: #2ecc71;
  --warn: #ffcc00;
  --error: #ff6b6b;
  --border: #22262c;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius: 12px;
}
html, body { height: 100%; }
body {
  margin: 0; font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, Apple Color Emoji, Segoe UI Emoji;
  background: radial-gradient(1200px 600px at 20% -10%, #10233d55, transparent),
              radial-gradient(1200px 600px at 120% 10%, #2a124655, transparent),
              var(--bg);
  color: var(--text);
}
.wrap { max-width: 1100px; margin: 40px auto; padding: 0 20px; }
.wrap > * + * { margin-top: 20px; }
header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
header .left { display: flex; align-items: center; gap: 12px; }
h1 { font-size: 1.4rem; font-weight: 700; letter-spacing: .3px; margin: 0; }
.logo { height: 28px; width: auto; display: block; }
.card { background: linear-gradient(180deg, #151922, #0f1216); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.pad { padding: 18px; }
.pad > * + * { margin-top: 20px; }
.muted { color: var(--muted); }
.hint { font-size: .95rem; color: var(--muted); }
.row { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; }
.controls { display: flex; gap: 8px; flex-wrap: wrap; }
button, .btn {
  appearance: none; border: 1px solid var(--border); background: #10141a; color: var(--text);
  padding: 10px 14px; border-radius: 10px; font-weight: 600; cursor: pointer; transition: .15s ease; text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
}
button.primary, .btn.primary { background: linear-gradient(180deg, #4da3ff, #1a7af7); color: #0b0c0f; border: none; }
button:disabled, .btn:disabled { opacity: .5; cursor: not-allowed; }
.ghost { background: transparent; }
button:hover:not(:disabled), .btn:hover:not(:disabled) { transform: translateY(-1px); }
.drop {
  border: 1.5px dashed #2a313a; border-radius: var(--radius); padding: 26px; text-align: center; background: #0d1015;
  display: grid; gap: 8px; place-items: center; cursor: pointer;
}
.drop.drag { border-color: var(--brand); background: #0e1722; }
.drop input { display: none; }
.drop .big { font-size: 1.05rem; }

/* Tables */
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
thead th { text-align: left; font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--border); color: #cbd5e1; }
tbody td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; color: #dbe5f0; }
.file { color: #bcd0ff; word-break: break-all; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; color: #b3becd; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 999px; background: #0e1622; border: 1px solid #223047; color: #a9c8ff; font-size: .8rem; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--border); background: #0e1217; }
.good { color: var(--ok); }
.warn { color: var(--warn); }
.error { color: var(--error); }
footer { margin-top: 18px; color: var(--muted); font-size: .9rem; }
.hidden { display: none !important; }
.truncate { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Portal grid */
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

@media (max-width: 1100px) {
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .tool-grid { grid-template-columns: 1fr; }
}
.tool-card { display: grid; gap: 12px; }
.tool-card h3 { margin: 0; font-size: 1.05rem; }
.tool-card p { margin: 0; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tool-card .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.badge { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border); background: #000; font-size: .75rem; color: #b3becd; display: inline-block; width: auto; }

/* Utility */
.center { display: grid; place-items: center; }
.maxw { max-width: 720px; }
/* Helper for empty/coming soon cards */
.coming-soon-card { min-height: 140px; display: grid; place-items: center; }