:root {
  color-scheme: dark;
  --bg: #09090b;
  --panel: #111113;
  --panel-soft: #151518;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --line: #27272a;
  --line-strong: #3f3f46;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(99, 102, 241, 0.14), transparent 34vw),
    radial-gradient(circle at 90% 10%, rgba(20, 184, 166, 0.10), transparent 30vw),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.shell { width: min(1120px, calc(100vw - 32px)); margin: 0 auto; padding: 56px 0; }
.hidden { display: none !important; }
.eyebrow { margin: 0 0 6px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .14em; }
h1 { margin: 0; font-size: clamp(34px, 5vw, 64px); letter-spacing: -0.06em; line-height: .9; }
.muted { color: var(--muted); line-height: 1.5; }

.auth-card {
  width: min(440px, 100%);
  margin: 12vh auto 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.field { display: grid; gap: 8px; margin: 22px 0 12px; color: var(--muted); font-size: 13px; }
input, button { font: inherit; }
input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel-soft);
  color: var(--text);
  padding: 13px 15px;
  outline: none;
}
input::placeholder { color: #71717a; }
input:focus { border-color: var(--line-strong); box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12); }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  width: 100%;
  margin-top: 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.button:hover { transform: translateY(-1px); }
.button.primary { background: #f4f4f5; color: #09090b; }
.button.ghost { background: rgba(255, 255, 255, 0.02); border-color: var(--line); color: var(--text); }
.button.ghost:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, 0.04); }
.button.compact { width: auto; min-height: 42px; padding: 0 18px; margin: 0; }
.message { min-height: 22px; color: var(--muted); }

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 34px;
}
.actions { display: flex; align-items: center; gap: 12px; }
.search { width: min(300px, 42vw); border-radius: 999px; background: rgba(17, 17, 19, 0.86); }
.groups { display: grid; gap: 26px; }
.group-title { margin: 0 0 12px; color: var(--muted); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.app-card {
  display: grid;
  min-height: 126px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)), var(--panel);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.035) inset;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}
.app-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)), var(--panel); }
.dot { width: 12px; height: 12px; border-radius: 999px; background: var(--accent); }
.app-name { align-self: end; font-size: 19px; font-weight: 650; letter-spacing: -0.03em; }
.app-url { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 720px) {
  .shell { padding-top: 28px; }
  .topbar { align-items: stretch; flex-direction: column; }
  .actions { align-items: stretch; flex-direction: column; }
  .search, .button.compact { width: 100%; }
}
