/* Sign in with Veil (1 November 2026): the consent page /oidc/authorize, the apps of /developers and the signed-in apps of
   /account. An app screen of the card pages' family (app.css, flow.css, me.css; design/DESIGN.md "Il sistema"): on the
   consent page the app's logo and name are the page's head on the ground, then the lead (4 of the 6 columns: what the app
   gets, what it never gets, the signature) beside the card that signs (2, a quiet list). No new colour: the accent stays on
   verified data, and an app's verification is the server's word on a domain proof, so it is said in the text's own tones. */

/* ---------- the consent page ---------- */
.oidc-head { display: flex; align-items: center; gap: var(--s4); }
.oidc-head .oidc-logo { width: 56px; height: 56px; font-size: var(--fs-section); font-weight: 600; }
.oidc-head .oidc-logo img { width: 56px; height: 56px; object-fit: cover; }
.oidc-sub { margin-top: var(--s1); }
.oidc-verified { display: inline-flex; align-items: center; gap: var(--s1); color: var(--text); }
.oidc-verified svg { width: 14px; height: 14px; color: var(--muted); flex: none; }
.oidc-unverified { color: var(--muted); }

/* what the app gets: one ruled row per scope, its icon, what it is, and what this card holds of it */
.grants { display: grid; }
.grants li { display: grid; grid-template-columns: 16px minmax(0, 1fr); column-gap: var(--s3); align-items: start; padding: var(--s3) 0; }
.grants li + li { border-top: 1px solid var(--rule); }
.grants li > svg { width: 16px; height: 16px; margin-top: 2px; color: var(--muted); }
.grants .t { font-weight: 500; }
.grants .s { margin-top: 2px; color: var(--muted); overflow-wrap: anywhere; }
.never-h { margin-top: var(--s5); }
.grants.never { margin-top: var(--s1); }
.grants.compact li { padding: var(--s2) 0; }
.grants.compact .s { font-size: var(--fs-small); line-height: var(--lh-small); }

/* without a card: the two ways in, each with its button at the row's end */
.oidc-ways { display: grid; margin-top: var(--s4); }
.oidc-ways li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: var(--s5); padding: var(--s4) 0; border-top: 1px solid var(--rule); }
.oidc-ways .t { font-weight: 500; }
.oidc-ways .s { margin-top: 2px; color: var(--muted); max-width: 56ch; }

/* who signs in: the card, then its key and its version as the rows of /login's "This browser" */
.oidc-card { display: flex; align-items: center; gap: var(--s3); padding-bottom: var(--s3); }
.oidc-card .avatar { width: 40px; height: 40px; font-size: var(--fs-body); }
.oidc-card .t { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oidc-card .s { margin-top: 2px; color: var(--muted); font-size: var(--fs-small); line-height: var(--lh-small); }
.oidc-grid #who .pv-rows { border-top: 1px solid var(--rule); }
.oidc-grid #who .pv-rows .s.mono { color: var(--muted); }

@media (max-width: 760px) {
  .oidc-head { align-items: flex-start; }
  .oidc-head .oidc-logo, .oidc-head .oidc-logo img { width: 48px; height: 48px; }
  .oidc-ways li { grid-template-columns: minmax(0, 1fr); row-gap: var(--s3); }
  .oidc-ways .btn { justify-self: stretch; }
}

/* ---------- /developers: the apps of Sign in with Veil ---------- */
.oidc-apps .api-register-head p { max-width: 72ch; }
.oidc-app { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; column-gap: var(--s4); align-items: start; padding: var(--s4) 0; border-top: 1px solid var(--rule); }
.oidc-app:last-of-type { border-bottom: 1px solid var(--rule); }
.oidc-app .avatar.org { width: 40px; height: 40px; border-radius: var(--radius-nested); font-size: var(--fs-small); }
.oidc-app .avatar.org img { width: 40px; height: 40px; object-fit: cover; }
.oidc-app h3 { font-size: var(--fs-body); line-height: var(--lh-body); font-weight: 600; }
.oidc-app .s { margin-top: 2px; color: var(--muted); font-size: var(--fs-small); line-height: var(--lh-small); overflow-wrap: anywhere; }
.oidc-app .facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: var(--s1) var(--s4); margin-top: var(--s3); }
.oidc-app .facts dt { color: var(--muted); }
.oidc-app .facts dd { min-width: 0; overflow-wrap: anywhere; }
.oidc-app .acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--s2) var(--s4); }
.oidc-app .confirm { grid-column: 2 / -1; }
.oidc-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4) var(--gap); margin-top: var(--s4); }
.oidc-form .wide { grid-column: 1 / -1; }
.oidc-form textarea { min-height: 76px; resize: vertical; font-family: var(--mono); font-size: var(--fs-small); } /* taste-skill-ignore: redirect URIs are addresses typed exactly */
.oidc-form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.oidc-form legend { padding: 0; margin-bottom: var(--s2); font-weight: 500; }
.oidc-form .opt { min-height: 28px; }
.oidc-form .opt span small { display: block; color: var(--muted); font-weight: 400; font-size: var(--fs-small); line-height: var(--lh-small); }
.oidc-secret code { overflow-wrap: anywhere; }
/* the form's pieces, scoped here: /developers does not load flow.css, whose general rules would move its other sections */
.oidc-apps .field { display: grid; gap: var(--s2); min-width: 0; align-content: start; }
.oidc-apps .field label, .oidc-apps .field .label { font-weight: 500; }
.oidc-apps .field input[type="text"], .oidc-apps .field select, .oidc-apps .field textarea { width: 100%; background: var(--ground); }
.oidc-apps .hint { color: var(--muted); font-size: var(--fs-small); line-height: var(--lh-small); }
.oidc-apps .err { color: var(--pill-negative-ink); font-size: var(--fs-small); line-height: var(--lh-small); }
.oidc-apps .actions-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s4); }
.oidc-apps .file-pick { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: var(--s2) var(--s3); }
.oidc-apps .file-pick input[type="file"] { position: absolute; left: 0; top: 0; width: 1px; height: 1px; min-height: 0; padding: 0; border: 0; opacity: 0; overflow: hidden; }
.oidc-apps .file-pick input[type="file"]:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.oidc-apps .file-shown { min-width: 0; color: var(--muted); overflow-wrap: anywhere; }
.oidc-apps .opt { display: flex; align-items: flex-start; gap: var(--s3); padding: var(--s1) 0; cursor: pointer; }
.oidc-apps .opt input { width: 16px; height: 16px; min-height: 0; margin: 2px 0 0; padding: 0; accent-color: var(--primary); flex: none; }
.oidc-apps .kv { display: grid; gap: var(--s2); margin-top: var(--s3); }
.oidc-apps .kv > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: var(--s3); align-items: baseline; }
.oidc-apps .kv dt { color: var(--muted); }
.oidc-apps .kv dd { min-width: 0; overflow-wrap: anywhere; }
.oidc-apps .kv code { font-family: var(--mono); font-size: var(--fs-small); }
.oidc-apps .confirm { margin-top: var(--s3); padding: var(--s3) var(--s4); border-radius: var(--radius-nested); background: var(--pill-negative-bg); }
.oidc-apps .confirm b { color: var(--pill-negative-ink); font-weight: 600; }
.oidc-apps .confirm .actions-row { margin-top: var(--s3); }
.oidc-list:empty { display: none; }
.oidc-list > .apps-empty { padding: var(--s3) 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); color: var(--muted); }
@media (max-width: 760px) {
  .oidc-form { grid-template-columns: minmax(0, 1fr); }
  .oidc-app { grid-template-columns: 40px minmax(0, 1fr); }
  .oidc-app .acts { grid-column: 2; justify-content: flex-start; margin-top: var(--s3); }
}

/* ---------- /account: the signed-in apps ---------- */
.apps-list { display: grid; }
.app-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; column-gap: var(--s3); align-items: start; padding: var(--s3) 0; }
.app-row + .app-row { border-top: 1px solid var(--rule); }
.app-row .org-logo img { width: 24px; height: 24px; object-fit: cover; }
.app-row .t { font-weight: 500; }
.app-row .s { margin-top: 2px; color: var(--muted); font-size: var(--fs-small); line-height: var(--lh-small); }
.app-row details { grid-column: 2 / -1; margin-top: var(--s2); }
.app-row summary { cursor: pointer; color: var(--muted); font-size: var(--fs-small); }
.app-row summary:hover { color: var(--text); }
.app-row .logins { display: grid; gap: var(--s2); margin-top: var(--s2); }
.app-row .login { padding: var(--s3) var(--s4); border-radius: var(--radius-nested); background: var(--raised); }
.app-row .login pre { margin-top: var(--s2); white-space: pre-wrap; overflow-wrap: anywhere; font-size: var(--fs-small); }
.app-row .confirm { grid-column: 2 / -1; max-width: none; }
.apps-empty { color: var(--muted); }
/* the kind of app is a fieldset: its legend sits where a label does, so it lines up with the field beside it */
.oidc-apps fieldset.field > legend { float: left; width: 100%; margin: 0 0 var(--s2); }
.oidc-apps fieldset.field > legend + * { clear: both; }
.oidc-apps .oidc-secret .api-secret-state:empty { display: none; }

/* under a refused or expired request: what did not happen, as the ruled rows of /me's "What your card's page lets you do" */
.oidc-after { margin-top: var(--sec-gap); }
.oidc-after h2 { margin-bottom: var(--gap-in); }
/* "Register an app" with the guide beside it, as a panel's link that leads elsewhere (1 November 2026) */
.oidc-new-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: var(--s1) var(--s4); margin: 0 0 var(--s3); }
.api-create-row .oidc-new-head h3 { margin: 0; }
