.admin-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.admin-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-shrink: 0;
}

.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e5e7eb;
  color: #111827;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 12px;
  text-decoration: none;
}

.ghost-link:hover {
  background: #d1d5db;
}

.admin-project-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-project-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.admin-project-name {
  font-weight: 800;
  font-size: 17px;
}

.admin-project-id {
  color: var(--muted);
  margin-top: 6px;
  font-size: 14px;
}

.switch-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  white-space: nowrap;
}

.switch-row input {
  width: 20px;
  height: 20px;
}

.json-preview {
  background: #0f172a;
  color: #e5e7eb;
  padding: 16px;
  border-radius: 14px;
  overflow-x: auto;
  max-height: 420px;
  font-size: 13px;
  line-height: 1.6;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.toyota-model-add-box {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  gap: 14px;
  align-items: end;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fafc;
  margin-bottom: 18px;
}

.toyota-model-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toyota-model-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 0.8fr auto auto;
  gap: 14px;
  align-items: end;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.toyota-model-status {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;
}

.status-pill.active {
  background: #dcfce7;
  color: #166534;
}

.status-pill.inactive {
  background: #fee2e2;
  color: #991b1b;
}

.toyota-model-actions {
  display: flex;
  justify-content: flex-end;
  align-items: end;
}

.add-button-field {
  display: flex;
  align-items: end;
}

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 24px;
}

.login-card .field {
  margin-bottom: 16px;
}

.login-actions {
  margin-top: 8px;
}

.login-notice {
  display: block;
  margin-bottom: 16px;
}

@media (max-width: 900px) {
  .toyota-model-add-box,
  .toyota-model-row {
    grid-template-columns: 1fr;
  }

  .toyota-model-status {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .admin-header {
    flex-direction: column;
  }

  .admin-actions {
    width: 100%;
  }

  .admin-actions button,
  .admin-actions a {
    flex: 1;
  }

  .admin-project-row {
    align-items: flex-start;
    flex-direction: column;
  }
}