:root {
  color-scheme: light;
  --lora-bg: #f4f7fb;
  --lora-panel: #ffffff;
  --lora-border: rgba(17, 24, 39, 0.08);
  --lora-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  --lora-accent: #4f8cff;
  --lora-accent-2: #67d9b1;
}

html, body {
  min-height: 100%;
}

body {
  background:
    radial-gradient(circle at top left, rgba(79, 140, 255, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(103, 217, 177, 0.12), transparent 28%),
    var(--lora-bg);
}

.lora-container {
  width: min(1000px, calc(100% - 1.5rem));
  margin-inline: auto;
}

code {
  color: #4f8cff;
}

.site-logo {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
}

.site-logo-sm {
  width: 38px;
  height: 38px;
}

.auth-card,
.panel,
.card {
  background: var(--lora-panel);
  border-color: var(--lora-border) !important;
  box-shadow: var(--lora-shadow);
}

.auth-card {
  width: min(520px, 100%);
}

.navbar {
  backdrop-filter: blur(8px);
}

.nav-pills .nav-link {
  border-radius: 999px;
  border: 1px solid var(--lora-border);
  background: #fff;
  color: #334155;
  padding: 0.8rem 1.25rem;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.nav-pills .nav-link.active {
  background: linear-gradient(135deg, var(--lora-accent), var(--lora-accent-2));
  color: #fff;
}

.advanced-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.advanced-arrow {
  font-size: 1.1rem;
  line-height: 1;
}

.tab-panels .panel {
  display: none;
}

.tab-panels .panel.active {
  display: block;
}

.start-btn {
  min-width: 180px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.875rem;
}

.results-grid-fill {
  min-height: 560px;
  align-content: start;
}

.results-placeholder {
  min-height: 560px;
  border: 1px dashed rgba(79, 140, 255, 0.25);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  color: #94a3b8;
  background: #f8fafc;
}

.result-card {
  border: 1px solid var(--lora-border);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.result-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  cursor: pointer;
  background: #eef2f7;
}

.result-actions {
  padding: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.result-meta {
  display: grid;
  gap: 0.55rem;
}

.result-name {
  font-size: 0.8rem;
  color: #475569;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.progress {
  background-color: #e9eef6;
}

.progress-bar {
  background: linear-gradient(90deg, var(--lora-accent), var(--lora-accent-2));
}

.text-secondary {
  color: #6b7280 !important;
}

.bg-body-tertiary {
  background-color: #f8fafc !important;
}

.collapse .card-body {
  background: #f8fafc;
}

@media (max-width: 991px) {
  .start-btn {
    width: 100%;
  }
}
