/* VERIQON Connect — isolated OAuth consent skin. Brand tokens match veriqon.tech.
   No external fonts, JS, tracking, remote images or ERP/Filament dependencies. */
:root {
  color-scheme: light;
  --canvas: #f8faf9;
  --surface: #fff;
  --ink: #182a32;
  --ink-soft: #536771;
  --petrol: #284a58;
  --petrol-hover: #193a48;
  --line: #c9d2d5;
  --line-subtle: #e5ecee;
  --focus: #44768a;
}
* { box-sizing: border-box; }
html { font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
body { margin: 0; color: var(--ink); background: var(--canvas); line-height: 1.55; -webkit-font-smoothing: antialiased; }
button, a { font: inherit; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.shell { min-height: 100vh; display: flex; flex-direction: column; }
.topbar { width: min(1220px, 100%); margin: 0 auto; padding: 18px clamp(20px, 4vw, 56px); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: block; line-height: 0; border-radius: 3px; }
.brand img { width: 172px; height: 57px; display: block; object-fit: contain; }
.topbar-right { display: flex; align-items: center; gap: clamp(14px, 3vw, 32px); }
.secure { color: var(--ink-soft); font-size: 12px; letter-spacing: .01em; display: flex; align-items: center; white-space: nowrap; gap: 8px; }
.secure-dot { background: #21634e; width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.languages { border-left: 1px solid var(--line); padding-left: 16px; display: flex; align-items: center; gap: 12px; }
.languages a { font-size: 12px; color: var(--ink-soft); font-weight: 650; text-decoration: none; padding: 8px 2px; }
.languages a[aria-current="page"] { color: var(--ink); border-bottom: 2px solid var(--petrol); }
.languages a:hover { color: var(--petrol); }
.main { width: min(1150px, 100%); flex: 1; display: grid; grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr); gap: clamp(40px, 8vw, 112px); align-items: start; margin: auto; padding: 58px clamp(20px, 4vw, 56px) 88px; }
.intro { padding-top: clamp(12px, 4vw, 58px); }
.eyebrow, .overline { color: var(--petrol); font-size: 11px; font-weight: 750; letter-spacing: .18em; text-transform: uppercase; }
.intro h1 { font: 400 clamp(34px, 4vw, 53px)/1.13 "Source Serif 4", Georgia, "Times New Roman", serif; max-width: 510px; letter-spacing: -.025em; margin: 28px 0 20px; }
.intro-text { max-width: 365px; font-size: 16px; line-height: 1.8; color: var(--ink-soft); margin: 0; }
.rule { background: var(--line); height: 1px; margin: 46px 0 20px; width: 68px; }
.intro-foot { color: var(--ink-soft); display: flex; align-items: center; gap: 9px; font-size: 12px; }
.tiny-lock { color: #21634e; font-weight: 750; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: clamp(24px, 4.2vw, 44px); min-width: 0; box-shadow: 0 16px 42px rgba(24,42,50,.045); }
.card-head { margin: 0 0 22px; }
.overline { margin: 0 0 10px; }
.card h2 { margin: 0; font: 400 clamp(25px, 2.5vw, 33px)/1.2 "Source Serif 4", Georgia, serif; letter-spacing: -.017em; }
.muted { margin-top: 18px; color: var(--ink-soft); line-height: 1.8; }
.connection { background: #f8faf9; border: 1px solid var(--line-subtle); padding: 18px 20px; border-radius: 3px; }
.connection-node { display: flex; align-items: center; gap: 13px; min-width: 0; }
.app-avatar, .product-avatar { width: 42px; height: 42px; border: 1px solid var(--line); background: white; color: var(--petrol); flex: 0 0 auto; display: flex; justify-content: center; align-items: center; font-weight: 700; font-size: 21px; border-radius: 3px; }
.product-avatar { background: white; border-color: var(--line); }
.product-avatar img { width: 30px; height: 30px; object-fit: contain; }
.connection-copy { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.connection-copy strong { font-size: 15px; line-height: 1.4; font-weight: 700; overflow-wrap: anywhere; }
.connection-copy span { color: var(--ink-soft); font-size: 12px; line-height: 1.5; }
.connection-arrow { display: block; margin: 4px 0 4px 17px; color: var(--ink-soft); font-size: 19px; line-height: 1.1; }
.identity { margin: 18px 0 22px; padding: 0 1px; }
.identity > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line-subtle); }
.identity dt { color: var(--ink-soft); font-size: 12px; flex: 0 0 auto; }
.identity dd { margin: 0; text-align: right; font-size: 13px; font-weight: 650; overflow-wrap: anywhere; }
.identity .domain { font-weight: 500; }
.permission-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0 11px; }
.permission-heading h3 { margin: 0; font-size: 14px; font-weight: 750; }
.permission-total { font-size: 11px; font-weight: 700; border: 1px solid var(--line); padding: 2px 9px; border-radius: 20px; }
.permission-list { list-style: none; padding: 0; margin: 0; max-height: 270px; overflow: auto; overscroll-behavior: contain; border: 1px solid var(--line-subtle); border-radius: 3px; scrollbar-color: #9baeb7 transparent; }
.permission { display: grid; grid-template-columns: 82px 1fr; gap: 14px; padding: 13px 14px; align-items: start; }
.permission + .permission { border-top: 1px solid var(--line-subtle); }
.permission-type { font-size: 9px; font-weight: 800; letter-spacing: .07em; padding: 4px 6px; border-radius: 2px; text-align: center; color: #21634e; background: #edf7f2; }
.permission-type--write, .permission-type--delegate { color: #765019; background: #faf3e8; }
.permission-scope { font-size: 12px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.permission-description { font-size: 12px; color: var(--ink-soft); line-height: 1.5; margin: 3px 0 0; }
.scope-note, .caution, .bottom-help { font-size: 11.5px; line-height: 1.65; color: var(--ink-soft); }
.scope-note { margin: 10px 0 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button { min-height: 49px; border: 1px solid var(--petrol); border-radius: 2px; cursor: pointer; padding: 12px 18px; font-weight: 700; font-size: 13px; display: inline-flex; gap: 16px; justify-content: center; align-items: center; text-decoration: none; transition: background-color .15s, color .15s; }
.button-primary { background: var(--petrol); color: white; flex: 1 1 auto; }
.button-primary:hover { background: var(--petrol-hover); }
.button-secondary { background: transparent; color: var(--petrol); flex: 0 0 auto; }
.button-secondary:hover { background: #edf2f3; }
.button:active { transform: translateY(1px); }
.caution { margin: 16px 0 0; border-left: 2px solid var(--line); padding-left: 10px; }
.bottom-help { margin: 13px 0 0; }
footer { width: min(1220px,100%); margin: 0 auto; padding: 20px clamp(20px,4vw,56px) 26px; border-top: 1px solid var(--line-subtle); font-size: 11px; letter-spacing: .03em; color: var(--ink-soft); }
@media(max-width:900px) {
  .main { grid-template-columns: 1fr; gap: 26px; max-width: 710px; padding-top: 28px; padding-bottom: 48px; }
  .intro { padding: 0; }
  .intro h1 { margin: 12px 0 10px; max-width: none; font-size: clamp(29px, 5vw, 39px); }
  .intro-text { max-width: 570px; }
  .rule,.intro-foot { display: none; }
}
@media(max-width:520px) {
  .topbar { padding-top: 12px; padding-bottom: 4px; gap: 6px; }
  .brand img { width: 116px; height: 48px; }
  .topbar-right { gap: 8px; }
  .secure { display: none; }
  .languages { gap: 9px; padding-left: 9px; }
  .languages a { padding: 10px 0; }
  .main { gap: 20px; padding-top: 28px; }
  .intro h1 { font-size: 30px; }
  .intro-text { font-size: 14px; }
  .card { padding: 21px; }
  .connection { padding: 14px; }
  .permission { grid-template-columns: 68px 1fr; gap: 10px; padding: 12px 10px; }
  .permission-type { font-size: 8px; }
  .actions { flex-direction: column; }
  .button { width: 100%; }
  .identity > div { align-items: start; }
}
@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Shared, unchanged VERIQON mark followed by the product name. */
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 44px; height: 44px; flex: 0 0 auto; }
.connect-brand-name { font: 500 25px/1.1 Arial, sans-serif; letter-spacing: -.025em; }
