/* Look for MAS (auth.m.mrcr.zip) pages, in the house style (ink + lime, small corners, Inter), with no app or brand names. Tokens from ui/base.css. MAS's layout is left alone:
   only colours, type, corners and the buttons change. Light by default, dark when the window/system is dark. */
:root{--mx-lime:#c5f03c;--mx-ink:#14170a;--mx-bg:#f6f7f1;--mx-surface:#fff;--mx-surface2:#eef0e6;--mx-line:#dfe2d3;--mx-line-strong:#858a72;
  --mx-text:#181a10;--mx-muted:#5a5f4a;--mx-accent:#14170a;--mx-on-accent:#c5f03c;--mx-accent-hover:#262a14;--mx-focus:#14170a;color-scheme:light}
@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--mx-bg:#0b0c08;--mx-surface:#14170a;--mx-surface2:#1b1f0e;--mx-line:#2b3017;--mx-line-strong:#6b7157;
  --mx-text:#eef0e4;--mx-muted:#a2a78d;--mx-accent:#c5f03c;--mx-on-accent:#14170a;--mx-accent-hover:#d6f76a;--mx-focus:#c5f03c;color-scheme:dark}}
:root[data-theme=dark]{--mx-bg:#0b0c08;--mx-surface:#14170a;--mx-surface2:#1b1f0e;--mx-line:#2b3017;--mx-line-strong:#6b7157;
  --mx-text:#eef0e4;--mx-muted:#a2a78d;--mx-accent:#c5f03c;--mx-on-accent:#14170a;--mx-accent-hover:#d6f76a;--mx-focus:#c5f03c;color-scheme:dark}

html,body{background:var(--mx-bg)!important;color:var(--mx-text)!important;font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif!important;-webkit-font-smoothing:antialiased}
body::before{content:"";position:fixed;left:0;right:0;top:0;height:4px;background:var(--mx-lime);z-index:5}

.header .title{color:var(--mx-text)!important;font-size:26px!important;line-height:1.15!important;font-weight:650!important;letter-spacing:-.02em!important}
.header .title span{color:inherit!important}
.header .text{color:var(--mx-muted)!important;font-size:14px!important;line-height:1.5!important}
.header .text span{color:var(--mx-text)!important;font-weight:600!important}

/* the app tile: a neutral ink tile with the app's icon, the same for every app (no app is branded) */
.consent-client-icon.generic{background-color:var(--mx-ink)!important;color:var(--mx-lime)!important;border-radius:14px!important;
  box-shadow:0 2px 10px rgba(20,23,10,.25)}

.consent-scope-list li{background:var(--mx-surface2);border-radius:3px;color:var(--mx-text)}
.consent-scope-list li svg{color:var(--mx-muted)}

/* the signed-in person */
.layout-container section.rounded-xl{border:1px solid var(--mx-line)!important;border-radius:4px!important;background:var(--mx-surface)!important}
.avatar-placeholder{border-radius:4px!important;color:#fff!important;font-weight:650!important}
.avatar-placeholder[data-color="0"]{background:#bd5151!important}.avatar-placeholder[data-color="1"]{background:#a6623f!important}
.avatar-placeholder[data-color="2"]{background:#946e38!important}.avatar-placeholder[data-color="3"]{background:#817431!important}
.avatar-placeholder[data-color="4"]{background:#677a2e!important}.avatar-placeholder[data-color="5"]{background:#4c8131!important}
.avatar-placeholder[data-color="6"]{background:#318159!important}.avatar-placeholder[data-color="7"]{background:#3b8a62!important}
.avatar-placeholder[data-color="8"]{background:#bb4a85!important}.avatar-placeholder[data-color="9"]{background:#bc4e85!important}
.text-primary{color:var(--mx-text)!important}.text-secondary{color:var(--mx-muted)!important}

/* buttons */
.cpd-button:not([href*=upstream]){border-radius:3px!important;font-weight:600!important;letter-spacing:.01em!important}
.cpd-button[data-kind=primary]:not([href*=upstream]){background:var(--mx-accent)!important;color:var(--mx-on-accent)!important;border:1px solid var(--mx-accent)!important}
.cpd-button[data-kind=primary]:not([href*=upstream]):hover{background:var(--mx-accent-hover)!important;border-color:var(--mx-accent-hover)!important}
.cpd-button[data-kind=secondary]:not([href*=upstream]){background:transparent!important;color:var(--mx-text)!important;border:1px solid var(--mx-line-strong)!important}
.cpd-button[data-kind=secondary]:not([href*=upstream]):hover{background:var(--mx-surface2)!important}
.cpd-button[data-kind=tertiary]:not([href*=upstream]){background:transparent!important;color:var(--mx-muted)!important;text-decoration:underline;text-underline-offset:3px}
.cpd-button[data-kind=tertiary]:not([href*=upstream]):hover{color:var(--mx-text)!important}
form:has(>.cpd-button[data-kind=tertiary]:not([href*=upstream])){display:flex;justify-content:center}

.cpd-button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid var(--mx-focus)!important;outline-offset:2px!important}
input[type=text],input[type=password],input[type=email]{border-radius:3px!important}
