/* Add-on sheet for blog/google-oauth-gmail-api-errors (wave "refonte lot 1", December 2026).
   Loaded after the shared gmail-oauth-articles.css. Prefix uem-oe- (OAuth errors), scoped by .uem-sec.
   Terminal card, quoted error messages, compact error cards, redirect URI diff, numbered steps,
   "unverified app" screen mockup, Admin console path. Charter: no box-shadow, no clamp(). */

/* ---------- Extra status colors for error codes ---------- */
.uem-sec.uem-sec .uem-err-code--400 { background: rgba(251, 188, 4, 0.15); color: #8a6a00; }
.uem-sec.uem-sec .uem-err-code--401 { background: rgba(66, 133, 244, 0.12); color: #3367d6; }
.uem-sec.uem-sec .uem-err-code--403b { background: rgba(234, 67, 53, 0.12); color: #c5342a; }
.uem-sec.uem-sec .uem-err-row span a, .uem-sec.uem-sec .uem-oe-li a, .uem-sec.uem-sec .uem-check a { color: #2aaa7e; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.uem-sec.uem-sec .uem-err-row code, .uem-sec.uem-sec .uem-oe-li code { font-family: 'Courier New', monospace; background: rgba(59, 185, 139, 0.1); color: #2da077; padding: 1px 5px; border-radius: 4px; font-size: 0.85rem; overflow-wrap: anywhere; }

/* ---------- Terminal card (hero) ---------- */
.uem-sec.uem-sec .uem-oe-term { background: #0d1117; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 16px; overflow: hidden; min-width: 0; }
.uem-sec.uem-sec .uem-oe-term-bar { background: #161b22; padding: 12px 18px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.uem-sec.uem-sec .uem-oe-term-body { padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; font-family: 'Courier New', monospace; font-size: 13.5px; line-height: 1.7; color: #e6edf3; min-width: 0; }
.uem-sec.uem-sec .uem-oe-term-body * { font-family: 'Courier New', monospace; }
.uem-sec.uem-sec .uem-oe-term-body > span { display: block; overflow-wrap: anywhere; font-family: 'Courier New', monospace; }
.uem-sec.uem-sec .uem-oe-term-body .t-mute { color: #8b949e; }
.uem-sec.uem-sec .uem-oe-term-body .t-err { color: #ff7b72; font-weight: 700; }
.uem-sec.uem-sec .uem-oe-term-body .t-key { color: #79c0ff; }
.uem-sec.uem-sec .uem-oe-term-body .t-str { color: #a5d6ff; }
.uem-sec.uem-sec .uem-oe-term-body .t-in { padding-left: 18px; }
.uem-sec.uem-sec .uem-oe-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 22px 20px; }
.uem-sec.uem-sec .uem-oe-chip { font-family: 'Courier New', monospace; font-size: 12px; font-weight: 700; color: #DDDF4C; background: rgba(221, 223, 76, 0.12); border-radius: 6px; padding: 4px 9px; line-height: 1.4; overflow-wrap: anywhere; }

/* Inline codes in the hero description */
.uem-rhero.uem-rhero .uem-hero-desc code { font-family: 'Courier New', monospace; font-weight: 700; color: #DDDF4C; overflow-wrap: anywhere; }

/* ---------- Quoted error message (text, not code) ---------- */
.uem-sec.uem-sec .uem-oe-msg { background: #ffffff; border: 1px solid #e5e7eb; border-left: 3px solid #EA4335; border-radius: 12px; padding: 16px 20px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.uem-sec.uem-sec .uem-oe-msg-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: #94a3b8; line-height: 1.4; }
.uem-sec.uem-sec .uem-oe-msg-text { font-family: 'Courier New', monospace; font-size: 14px; font-weight: 700; line-height: 1.6; color: #0f2736; overflow-wrap: anywhere; }
.uem-sec.uem-sec .uem-oe-msg-text + .uem-oe-msg-text { padding-top: 6px; border-top: 1px dashed #e5e7eb; }

/* ---------- Glance grid: compact cards with stage + anchor link ---------- */
.uem-sec.uem-sec .uem-oe-mini { background: #ffffff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; min-width: 0; transition: border-color 0.2s ease; }
.uem-sec.uem-sec .uem-oe-mini:hover { border-color: #b8ba2e; }
.uem-sec.uem-sec .uem-oe-mini-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.uem-sec.uem-sec .uem-oe-mini-code { font-family: 'Courier New', monospace; font-size: 14px; font-weight: 700; color: #0f2736; line-height: 1.4; overflow-wrap: anywhere; min-width: 0; }
.uem-sec.uem-sec .uem-oe-mini-text { font-size: 14px; line-height: 1.55; color: #383838; overflow-wrap: break-word; }

/* ---------- Redirect URI diff ---------- */
.uem-sec.uem-sec .uem-oe-diff { background: #ffffff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.uem-sec.uem-sec .uem-oe-diff-row { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.uem-sec.uem-sec .uem-oe-diff-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: #94a3b8; line-height: 1.4; }
.uem-sec.uem-sec .uem-oe-diff-val { font-family: 'Courier New', monospace; font-size: 14px; font-weight: 700; color: #0f2736; background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 8px; padding: 9px 12px; line-height: 1.5; overflow-wrap: anywhere; }
.uem-sec.uem-sec .uem-oe-diff-val mark { background: rgba(234, 67, 53, 0.15); color: #c5342a; border-radius: 3px; padding: 0 2px; font-family: 'Courier New', monospace; }
.uem-sec.uem-sec .uem-oe-diff-val ins { background: rgba(59, 185, 139, 0.15); color: #2aaa7e; text-decoration: none; border-radius: 3px; padding: 0 2px; font-family: 'Courier New', monospace; }
.uem-sec.uem-sec .uem-oe-diff-tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- Numbered steps ---------- */
.uem-sec.uem-sec .uem-oe-steps { display: flex; flex-direction: column; gap: 12px; counter-reset: oe; }
.uem-sec.uem-sec .uem-oe-li { position: relative; padding-left: 40px; font-size: 15.5px; line-height: 1.65; color: #383838; counter-increment: oe; overflow-wrap: break-word; min-height: 28px; }
.uem-sec.uem-sec .uem-oe-li::before { content: counter(oe); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 8px; background: rgba(221, 223, 76, 0.25); color: #6f7118; font-family: 'Poppins', Helvetica, Arial, sans-serif; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.uem-sec.uem-sec .uem-oe-li strong { color: #1e293b; font-weight: 600; }

/* ---------- "Google hasn't verified this app" screen mockup ---------- */
.uem-sec.uem-sec .uem-oe-warn { background: #ffffff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.uem-sec.uem-sec .uem-oe-warn-icon { width: 40px; height: 40px; border-radius: 50%; background: rgba(234, 67, 53, 0.12); color: #c5342a; display: flex; align-items: center; justify-content: center; }
.uem-sec.uem-sec .uem-oe-warn-icon svg { width: 20px; height: 20px; }
.uem-sec.uem-sec .uem-oe-warn-title { font-family: 'Poppins', Helvetica, Arial, sans-serif; font-size: 20px; font-weight: 700; color: #0f2736; line-height: 1.3; }
.uem-sec.uem-sec .uem-oe-warn-text { font-size: 14.5px; line-height: 1.6; color: #475569; overflow-wrap: break-word; }
.uem-sec.uem-sec .uem-oe-warn-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid #f0f2f5; }
.uem-sec.uem-sec .uem-oe-warn-link { font-size: 13px; font-weight: 600; color: #64748b; }
.uem-sec.uem-sec .uem-oe-warn-btn { font-size: 13px; font-weight: 700; color: #ffffff; background: #3367d6; border-radius: 6px; padding: 8px 16px; line-height: 1.3; }

/* ---------- Admin console path (breadcrumb pills) ---------- */
.uem-sec.uem-sec .uem-oe-path { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.uem-sec.uem-sec .uem-oe-path span { font-size: 12.5px; font-weight: 600; color: #0f2736; background: #f4f5f7; border: 1px solid #e5e7eb; border-radius: 6px; padding: 4px 9px; line-height: 1.4; }
.uem-sec.uem-sec .uem-oe-path i { font-style: normal; color: #94a3b8; font-size: 12px; }
.uem-sec.uem-sec .uem-oe-app { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; border: 1px solid #e5e7eb; border-radius: 12px; padding: 12px 14px; }
.uem-sec.uem-sec .uem-oe-app b { font-size: 14px; font-weight: 700; color: #0f2736; line-height: 1.35; }
.uem-sec.uem-sec .uem-oe-app small { display: block; font-size: 12px; color: #64748b; line-height: 1.4; }
.uem-sec.uem-sec .uem-oe-opts { display: flex; flex-wrap: wrap; gap: 6px; }

@media (max-width: 600px) {
  .uem-sec.uem-sec .uem-oe-term-body { padding: 16px; font-size: 12px; }
  .uem-sec.uem-sec .uem-oe-chips { padding: 0 16px 16px; }
  .uem-sec.uem-sec .uem-oe-warn, .uem-sec.uem-sec .uem-oe-diff { padding: 20px; }
  .uem-sec.uem-sec .uem-oe-msg-text { font-size: 13px; }
}
@media (max-width: 900px) and (min-width: 601px) {
  .uem-sec.uem-sec .uem-grid3.uem-oe-gl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
