:root {
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #f6f7fb;
  color: #172033;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(99, 102, 241, 0.18), transparent 34rem),
    linear-gradient(180deg, #ffffff 0%, #f6f7fb 44%, #eef2ff 100%);
}

[hidden] {
  display: none !important;
}

.not-found {
  min-height: 100vh;
  background: #fff;
  color: #000;
  padding: 32px;
  font-family: Arial, Helvetica, sans-serif;
}

.not-found h1 {
  margin: 0 0 16px;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: normal;
}

.not-found p {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.45;
  color: #000;
}

.not-found hr {
  width: 100%;
  height: 1px;
  margin: 16px 0;
  border: 0;
  background: #ddd;
}

.not-found address {
  font-size: 14px;
  font-style: italic;
  color: #555;
}

.shell {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0;
}

.hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 10px;
  color: #4f46e5;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.subtitle {
  max-width: 560px;
  margin: 18px 0 0;
  color: #64748b;
  font-size: 18px;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  padding: 12px 22px;
  cursor: pointer;
  box-shadow: 0 16px 30px rgba(17, 24, 39, 0.18);
}

button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.panel {
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
  padding: 24px;
}

.toolbar {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 360px);
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
}

.summary {
  font-size: 22px;
  font-weight: 800;
}

.meta {
  margin-top: 6px;
  color: #64748b;
  font-size: 14px;
}

input {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.36);
  border-radius: 16px;
  background: #fff;
  padding: 12px 14px;
  outline: none;
}

input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

.error {
  margin-bottom: 16px;
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 16px;
  background: #fff1f2;
  color: #be123c;
  padding: 14px 16px;
}

.models {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.model-card {
  min-height: 142px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 22px;
  background: #fff;
  padding: 18px;
}

.model-card h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.model-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.copy-btn {
  padding: 6px 10px;
  border: 1px solid rgba(99, 102, 241, 0.18);
  background: #f8fafc;
  color: #475569;
  box-shadow: none;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.copy-btn:hover,
.copy-btn.copied {
  background: #eef2ff;
  color: #3730a3;
}

.model-card p {
  margin: 8px 0 0;
  color: #64748b;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 700;
}

.badge.muted {
  background: #f1f5f9;
  color: #64748b;
}

.empty {
  grid-column: 1 / -1;
  border: 1px dashed rgba(148, 163, 184, 0.6);
  border-radius: 20px;
  color: #64748b;
  padding: 36px;
  text-align: center;
}

@media (max-width: 720px) {
  .shell {
    padding: 32px 0;
  }

  .hero,
  .toolbar {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }
}
