/*
 * The OAuth consent screen, where people connect Claude, ChatGPT and other MCP
 * clients (app/views/doorkeeper/authorizations, layout "oauth"). Connecting an
 * app is a single decision, so the whole page is one card in the middle of the
 * screen, with Balzac and the app side by side at the top.
 *
 * Colors come from the gray palette variables, which dark-mode.css inverts; the
 * two surfaces that need more than that are overridden there.
 */

.consent-shell {
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: 40px 16px 56px;
  background: var(--color-gray-100);
}

.consent-card {
  width: min(424px, 100%);
  padding: 28px 28px 22px;
  border: 1px solid var(--color-gray-200);
  border-radius: 20px;
  background: #fff;
  box-shadow:
    0 1px 2px rgb(17 17 19 / 0.04),
    0 18px 44px -28px rgb(17 17 19 / 0.4);
}

.consent-lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  margin-bottom: 20px;
}

.consent-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex: none;
}

/* The tile for the app asking: its logo, or a monogram when it can't be identified. */
.consent-mark-client {
  display: grid;
  place-items: center;
  border: 1px solid var(--color-gray-200);
  background: var(--color-gray-50);
  font-size: 20px;
  font-weight: 600;
  color: var(--color-gray-800);
}

/* Logos are drawn for light backgrounds, so their tile stays white in dark mode too. */
.consent-mark-logo {
  padding: 8px;
  background: #fff;
  object-fit: contain;
}

/* The smaller tile used in the profile's list of connected apps. */
.consent-mark-sm {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  font-size: 15px;
}

.consent-mark-sm.consent-mark-logo {
  padding: 6px;
}

.consent-link {
  display: flex;
  gap: 4px;
}

.consent-link i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--color-gray-500);
}

.consent-title {
  margin: 0;
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-gray-800);
  text-wrap: balance;
}

.consent-identity {
  margin: 10px 0 0;
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-gray-500);
}

.consent-identity b {
  font-weight: 500;
  color: var(--color-gray-800);
}

.consent-only {
  margin: 8px 0 0;
  text-align: center;
  font-size: 13px;
  line-height: 1.45;
  color: var(--color-gray-500);
}

.consent-switch {
  margin-top: 6px;
  text-align: center;
}

.consent-switch button {
  padding: 2px 4px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 13px;
  color: var(--color-gray-500);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.consent-switch button:hover {
  color: var(--color-gray-800);
}

.consent-scopes {
  margin-top: 20px;
  padding: 16px 16px 18px;
  border: 1px solid var(--color-gray-200);
  border-radius: 14px;
  background: var(--color-gray-50);
}

.consent-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-gray-500);
}

.consent-list {
  display: grid;
  gap: 9px;
  margin: 11px 0 0;
  padding: 0;
  list-style: none;
}

.consent-list li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--color-gray-800);
}

.consent-list svg {
  flex: none;
  margin-top: 2px;
  color: #16a34a;
}

.consent-actions {
  display: grid;
  gap: 9px;
  margin-top: 20px;
}

.consent-foot {
  margin: 16px 0 0;
  text-align: center;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--color-gray-500);
}

.consent-notice {
  margin: 20px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgb(234 179 8 / 0.2);
  font-size: 14px;
  color: #a16207;
}

@media (max-width: 720px) {
  .consent-card {
    padding: 26px 20px 22px;
  }
}
