/* Consent and connected apps share the saved Modus palette.
 * Only consent uses the focused, navigation-free shell. */
body.oauth-page {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
}
.oauth-shell {
  max-width: 1040px;
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
.oauth-site-header {
  padding: 28px clamp(20px, 5vw, 44px);
  border-bottom: 1px solid var(--line);
}
.oauth-site-header .brand { display: inline-block; }
.oauth-main {
  flex: 1;
  min-height: auto;
  width: 100%;
  max-width: 680px;
  padding: clamp(26px, 6vh, 70px) 18px 48px;
}
.oauth-panel {
  padding: clamp(24px, 4vw, 38px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 8px 36px rgb(0 0 0 / 5%);
}
.oauth-panel .eyebrow { margin: 0 0 12px; }
.oauth-panel h1 {
  font-size: clamp(26px, 4.5vw, 34px);
  margin: 0 0 12px;
}
.oauth-lede {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 22px;
}
.oauth-permission {
  display: flex;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--wash);
  align-items: flex-start;
}
.oauth-permission-icon {
  flex: 0 0 27px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: var(--modus-bg-green-intense);
  color: var(--modus-fg-main);
  text-align: center;
  font-weight: 700;
  line-height: 27px;
}
.oauth-permission strong { font-size: 14px; }
.oauth-permission p { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.oauth-detail {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
  margin: 19px 0 23px;
}
.oauth-actions,
.oauth-app-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.oauth-actions button { min-height: 43px; }
.oauth-primary {
  flex: 1 1 235px;
}
button.oauth-secondary {
  background: var(--paper);
  color: var(--accent);
  border: 1px solid var(--line);
}
button.oauth-secondary:hover { background: var(--wash); }
button.oauth-danger {
  background: var(--paper);
  color: var(--danger);
  border: 1px solid var(--danger);
}
button.oauth-danger:hover { background: var(--wash); }
.oauth-status {
  font-size: 13px;
  padding: 12px;
  margin: 15px 0 0;
  border-left: 3px solid var(--accent);
  background: var(--wash);
  color: var(--ink);
}
.oauth-status[hidden] { display: none; }
.oauth-page button:disabled,
.oauth-connections button:disabled {
  opacity: 0.65;
  cursor: wait;
}
.oauth-footer {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 22px clamp(20px, 5vw, 44px) 30px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid var(--line);
}
.oauth-app {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.oauth-app-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.oauth-app h2 { margin: 0 0 5px; font-size: 18px; }
.oauth-app-meta { color: var(--muted); font-size: 12px; }
.oauth-app-status {
  color: var(--modus-green);
  font-weight: 600;
  font-size: 12px;
}
.oauth-app-permission { font-size: 13px; margin: 14px 0 15px; }
.oauth-duplicate-notice {
  border-left: 3px solid var(--modus-yellow);
  background: var(--wash);
  padding: 12px 14px;
  color: var(--ink);
  font-size: 13px;
  margin: 0 0 16px;
}
.oauth-app-actions form { margin: 0; }
.oauth-app-actions button { min-height: 38px; }
.oauth-empty {
  border: 1px dashed var(--line);
  border-radius: 7px;
  background: var(--wash);
  padding: 24px;
  text-align: center;
}
.oauth-empty p { color: var(--muted); margin: 8px 0 0; font-size: 13px; }
@media (max-width: 560px) {
  .oauth-site-header { padding: 18px 22px; }
  .oauth-main { padding: 28px 14px; }
  .oauth-panel { padding: 24px 18px; }
  .oauth-actions { flex-direction: column; align-items: stretch; }
  .oauth-primary, .oauth-secondary { flex: auto; }
  .oauth-app-actions { align-items: stretch; flex-direction: column; }
  .oauth-app-actions button { width: 100%; }
}

.oauth-connections { max-width: 680px; margin: 0 auto; }
